diff --git a/setup.py b/setup.py index 296c026113..8ac38d2812 100644 --- a/setup.py +++ b/setup.py @@ -53,7 +53,7 @@ install_requires=[ "plotly>=5.10.0", "statsmodels>=0.12.2", - "scikit-learn>=1.0.1", + "scikit-learn>=1.0.1,<1.6.0", "pandas[parquet]>=1.3.5", "numpy>=1.22.0,<2.1", "nltk>=3.6.7", diff --git a/src/evidently/_version.py b/src/evidently/_version.py index e2daf5a945..c6f687b45d 100644 --- a/src/evidently/_version.py +++ b/src/evidently/_version.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # coding: utf-8 -version_info = (0, 5, 0) +version_info = (0, 5, 1) __version__ = ".".join(map(str, version_info)) diff --git a/src/evidently/nbextension/static/index.js b/src/evidently/nbextension/static/index.js index 6f0850fa44..454a613b99 100644 --- a/src/evidently/nbextension/static/index.js +++ b/src/evidently/nbextension/static/index.js @@ -6,7 +6,7 @@ var fZ=Object.defineProperty;var pZ=(e,t,n)=>t in e?fZ(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Qm=Symbol.for("react.element"),mZ=Symbol.for("react.portal"),gZ=Symbol.for("react.fragment"),vZ=Symbol.for("react.strict_mode"),yZ=Symbol.for("react.profiler"),bZ=Symbol.for("react.provider"),xZ=Symbol.for("react.context"),wZ=Symbol.for("react.forward_ref"),_Z=Symbol.for("react.suspense"),TZ=Symbol.for("react.memo"),SZ=Symbol.for("react.lazy"),BO=Symbol.iterator;function kZ(e){return e===null||typeof e!="object"?null:(e=BO&&e[BO]||e["@@iterator"],typeof e=="function"?e:null)}var W$={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},q$=Object.assign,U$={};function gf(e,t,n){this.props=e,this.context=t,this.refs=U$,this.updater=n||W$}gf.prototype.isReactComponent={};gf.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};gf.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function H$(){}H$.prototype=gf.prototype;function CC(e,t,n){this.props=e,this.context=t,this.refs=U$,this.updater=n||W$}var MC=CC.prototype=new H$;MC.constructor=CC;q$(MC,gf.prototype);MC.isPureReactComponent=!0;var WO=Array.isArray,V$=Object.prototype.hasOwnProperty,PC={current:null},G$={key:!0,ref:!0,__self:!0,__source:!0};function Y$(e,t,n){var r,l={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)V$.call(t,r)&&!G$.hasOwnProperty(r)&&(l[r]=t[r]);var a=arguments.length-2;if(a===1)l.children=n;else if(1{try{return e()}catch{}},Are=(e="mui")=>rre(e);function Kw(e,t,n,r){if(!t)return;t=t===!0?{}:t;const l=r==="dark"?"dark":"light";if(!n){e[r]=az({...t,palette:{mode:l,...t==null?void 0:t.palette}});return}const{palette:i,...o}=my({...n,palette:{mode:l,...t==null?void 0:t.palette}});return e[r]={...t,palette:i,opacity:{...nz(l),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||rz(l)},o}function KM(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:l=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:o=oz,colorSchemeSelector:a=n.light&&n.dark?"media":void 0,rootSelector:s=":root",...u}=e,c=Object.keys(n)[0],d=r||(n.light&&c!=="light"?"light":c),f=Are(i),{[d]:p,light:h,dark:g,...b}=n,v={...b};let m=p;if((d==="dark"&&!("dark"in n)||d==="light"&&!("light"in n))&&(m=!0),!m)throw new Error(Ho(21,d));const y=Kw(v,m,u,d);h&&!v.light&&Kw(v,h,void 0,"light"),g&&!v.dark&&Kw(v,g,void 0,"dark");let x={defaultColorScheme:d,...y,cssVarPrefix:i,colorSchemeSelector:a,rootSelector:s,getCssVar:f,colorSchemes:v,font:{...gre(y.typography),...y.font},spacing:Ore(u.spacing)};Object.keys(x.colorSchemes).forEach(C=>{const T=x.colorSchemes[C].palette,M=O=>{const D=O.split("-"),P=D[1],E=D[2];return f(O,T[P][E])};if(T.mode==="light"&&(Zt(T.common,"background","#fff"),Zt(T.common,"onBackground","#000")),T.mode==="dark"&&(Zt(T.common,"background","#000"),Zt(T.common,"onBackground","#fff")),Pre(T,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),T.mode==="light"){Zt(T.Alert,"errorColor",Nr(T.error.light,.6)),Zt(T.Alert,"infoColor",Nr(T.info.light,.6)),Zt(T.Alert,"successColor",Nr(T.success.light,.6)),Zt(T.Alert,"warningColor",Nr(T.warning.light,.6)),Zt(T.Alert,"errorFilledBg",M("palette-error-main")),Zt(T.Alert,"infoFilledBg",M("palette-info-main")),Zt(T.Alert,"successFilledBg",M("palette-success-main")),Zt(T.Alert,"warningFilledBg",M("palette-warning-main")),Zt(T.Alert,"errorFilledColor",gl(()=>T.getContrastText(T.error.main))),Zt(T.Alert,"infoFilledColor",gl(()=>T.getContrastText(T.info.main))),Zt(T.Alert,"successFilledColor",gl(()=>T.getContrastText(T.success.main))),Zt(T.Alert,"warningFilledColor",gl(()=>T.getContrastText(T.warning.main))),Zt(T.Alert,"errorStandardBg",Fr(T.error.light,.9)),Zt(T.Alert,"infoStandardBg",Fr(T.info.light,.9)),Zt(T.Alert,"successStandardBg",Fr(T.success.light,.9)),Zt(T.Alert,"warningStandardBg",Fr(T.warning.light,.9)),Zt(T.Alert,"errorIconColor",M("palette-error-main")),Zt(T.Alert,"infoIconColor",M("palette-info-main")),Zt(T.Alert,"successIconColor",M("palette-success-main")),Zt(T.Alert,"warningIconColor",M("palette-warning-main")),Zt(T.AppBar,"defaultBg",M("palette-grey-100")),Zt(T.Avatar,"defaultBg",M("palette-grey-400")),Zt(T.Button,"inheritContainedBg",M("palette-grey-300")),Zt(T.Button,"inheritContainedHoverBg",M("palette-grey-A100")),Zt(T.Chip,"defaultBorder",M("palette-grey-400")),Zt(T.Chip,"defaultAvatarColor",M("palette-grey-700")),Zt(T.Chip,"defaultIconColor",M("palette-grey-700")),Zt(T.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Zt(T.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Zt(T.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Zt(T.LinearProgress,"primaryBg",Fr(T.primary.main,.62)),Zt(T.LinearProgress,"secondaryBg",Fr(T.secondary.main,.62)),Zt(T.LinearProgress,"errorBg",Fr(T.error.main,.62)),Zt(T.LinearProgress,"infoBg",Fr(T.info.main,.62)),Zt(T.LinearProgress,"successBg",Fr(T.success.main,.62)),Zt(T.LinearProgress,"warningBg",Fr(T.warning.main,.62)),Zt(T.Skeleton,"bg",`rgba(${M("palette-text-primaryChannel")} / 0.11)`),Zt(T.Slider,"primaryTrack",Fr(T.primary.main,.62)),Zt(T.Slider,"secondaryTrack",Fr(T.secondary.main,.62)),Zt(T.Slider,"errorTrack",Fr(T.error.main,.62)),Zt(T.Slider,"infoTrack",Fr(T.info.main,.62)),Zt(T.Slider,"successTrack",Fr(T.success.main,.62)),Zt(T.Slider,"warningTrack",Fr(T.warning.main,.62));const O=g0(T.background.default,.8);Zt(T.SnackbarContent,"bg",O),Zt(T.SnackbarContent,"color",gl(()=>T.getContrastText(O))),Zt(T.SpeedDialAction,"fabHoverBg",g0(T.background.paper,.15)),Zt(T.StepConnector,"border",M("palette-grey-400")),Zt(T.StepContent,"border",M("palette-grey-400")),Zt(T.Switch,"defaultColor",M("palette-common-white")),Zt(T.Switch,"defaultDisabledColor",M("palette-grey-100")),Zt(T.Switch,"primaryDisabledColor",Fr(T.primary.main,.62)),Zt(T.Switch,"secondaryDisabledColor",Fr(T.secondary.main,.62)),Zt(T.Switch,"errorDisabledColor",Fr(T.error.main,.62)),Zt(T.Switch,"infoDisabledColor",Fr(T.info.main,.62)),Zt(T.Switch,"successDisabledColor",Fr(T.success.main,.62)),Zt(T.Switch,"warningDisabledColor",Fr(T.warning.main,.62)),Zt(T.TableCell,"border",Fr(m0(T.divider,1),.88)),Zt(T.Tooltip,"bg",m0(T.grey[700],.92))}if(T.mode==="dark"){Zt(T.Alert,"errorColor",Fr(T.error.light,.6)),Zt(T.Alert,"infoColor",Fr(T.info.light,.6)),Zt(T.Alert,"successColor",Fr(T.success.light,.6)),Zt(T.Alert,"warningColor",Fr(T.warning.light,.6)),Zt(T.Alert,"errorFilledBg",M("palette-error-dark")),Zt(T.Alert,"infoFilledBg",M("palette-info-dark")),Zt(T.Alert,"successFilledBg",M("palette-success-dark")),Zt(T.Alert,"warningFilledBg",M("palette-warning-dark")),Zt(T.Alert,"errorFilledColor",gl(()=>T.getContrastText(T.error.dark))),Zt(T.Alert,"infoFilledColor",gl(()=>T.getContrastText(T.info.dark))),Zt(T.Alert,"successFilledColor",gl(()=>T.getContrastText(T.success.dark))),Zt(T.Alert,"warningFilledColor",gl(()=>T.getContrastText(T.warning.dark))),Zt(T.Alert,"errorStandardBg",Nr(T.error.light,.9)),Zt(T.Alert,"infoStandardBg",Nr(T.info.light,.9)),Zt(T.Alert,"successStandardBg",Nr(T.success.light,.9)),Zt(T.Alert,"warningStandardBg",Nr(T.warning.light,.9)),Zt(T.Alert,"errorIconColor",M("palette-error-main")),Zt(T.Alert,"infoIconColor",M("palette-info-main")),Zt(T.Alert,"successIconColor",M("palette-success-main")),Zt(T.Alert,"warningIconColor",M("palette-warning-main")),Zt(T.AppBar,"defaultBg",M("palette-grey-900")),Zt(T.AppBar,"darkBg",M("palette-background-paper")),Zt(T.AppBar,"darkColor",M("palette-text-primary")),Zt(T.Avatar,"defaultBg",M("palette-grey-600")),Zt(T.Button,"inheritContainedBg",M("palette-grey-800")),Zt(T.Button,"inheritContainedHoverBg",M("palette-grey-700")),Zt(T.Chip,"defaultBorder",M("palette-grey-700")),Zt(T.Chip,"defaultAvatarColor",M("palette-grey-300")),Zt(T.Chip,"defaultIconColor",M("palette-grey-300")),Zt(T.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Zt(T.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Zt(T.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Zt(T.LinearProgress,"primaryBg",Nr(T.primary.main,.5)),Zt(T.LinearProgress,"secondaryBg",Nr(T.secondary.main,.5)),Zt(T.LinearProgress,"errorBg",Nr(T.error.main,.5)),Zt(T.LinearProgress,"infoBg",Nr(T.info.main,.5)),Zt(T.LinearProgress,"successBg",Nr(T.success.main,.5)),Zt(T.LinearProgress,"warningBg",Nr(T.warning.main,.5)),Zt(T.Skeleton,"bg",`rgba(${M("palette-text-primaryChannel")} / 0.13)`),Zt(T.Slider,"primaryTrack",Nr(T.primary.main,.5)),Zt(T.Slider,"secondaryTrack",Nr(T.secondary.main,.5)),Zt(T.Slider,"errorTrack",Nr(T.error.main,.5)),Zt(T.Slider,"infoTrack",Nr(T.info.main,.5)),Zt(T.Slider,"successTrack",Nr(T.success.main,.5)),Zt(T.Slider,"warningTrack",Nr(T.warning.main,.5));const O=g0(T.background.default,.98);Zt(T.SnackbarContent,"bg",O),Zt(T.SnackbarContent,"color",gl(()=>T.getContrastText(O))),Zt(T.SpeedDialAction,"fabHoverBg",g0(T.background.paper,.15)),Zt(T.StepConnector,"border",M("palette-grey-600")),Zt(T.StepContent,"border",M("palette-grey-600")),Zt(T.Switch,"defaultColor",M("palette-grey-300")),Zt(T.Switch,"defaultDisabledColor",M("palette-grey-600")),Zt(T.Switch,"primaryDisabledColor",Nr(T.primary.main,.55)),Zt(T.Switch,"secondaryDisabledColor",Nr(T.secondary.main,.55)),Zt(T.Switch,"errorDisabledColor",Nr(T.error.main,.55)),Zt(T.Switch,"infoDisabledColor",Nr(T.info.main,.55)),Zt(T.Switch,"successDisabledColor",Nr(T.success.main,.55)),Zt(T.Switch,"warningDisabledColor",Nr(T.warning.main,.55)),Zt(T.TableCell,"border",Nr(m0(T.divider,1),.68)),Zt(T.Tooltip,"bg",m0(T.grey[700],.92))}Hl(T.background,"default"),Hl(T.background,"paper"),Hl(T.common,"background"),Hl(T.common,"onBackground"),Hl(T,"divider"),Object.keys(T).forEach(O=>{const D=T[O];D&&typeof D=="object"&&(D.main&&Zt(T[O],"mainChannel",kh(Ch(D.main))),D.light&&Zt(T[O],"lightChannel",kh(Ch(D.light))),D.dark&&Zt(T[O],"darkChannel",kh(Ch(D.dark))),D.contrastText&&Zt(T[O],"contrastTextChannel",kh(Ch(D.contrastText))),O==="text"&&(Hl(T[O],"primary"),Hl(T[O],"secondary")),O==="action"&&(D.active&&Hl(T[O],"active"),D.selected&&Hl(T[O],"selected")))})}),x=t.reduce((C,T)=>oo(C,T),x);const _={prefix:i,disableCssColorScheme:l,shouldSkipGeneratingVar:o,getSelector:Mre(x)},{vars:w,generateThemeVars:S,generateStyleSheets:k}=ire(x,_);return x.vars=w,Object.entries(x.colorSchemes[x.defaultColorScheme]).forEach(([C,T])=>{x[C]=T}),x.generateThemeVars=S,x.generateStyleSheets=k,x.generateSpacing=function(){return LM(u.spacing,RM(this))},x.getColorSchemeSelector=lre(a),x.spacing=x.generateSpacing(),x.shouldSkipGeneratingVar=o,x.unstable_sxConfig={...ig,...u==null?void 0:u.unstable_sxConfig},x.unstable_sx=function(T){return au({sx:T,theme:this})},x.toRuntimeSource=tz,x}function EA(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:GM({...n===!0?{}:n.palette,mode:t})})}function Sc(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:l=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...o}=e,a=i||"light",s=l==null?void 0:l[a],u={...l,...n?{[a]:{...typeof s!="boolean"&&s,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return my(e,...t);let c=n;"palette"in e||u[a]&&(u[a]!==!0?c=u[a].palette:a==="dark"&&(c={mode:"dark"}));const d=my({...e,palette:c},...t);return d.defaultColorScheme=a,d.colorSchemes=u,d.palette.mode==="light"&&(d.colorSchemes.light={...u.light!==!0&&u.light,palette:d.palette},EA(d,"dark",u.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:d.palette},EA(d,"light",u.light)),d}return!n&&!("light"in u)&&a==="light"&&(u.light=!0),KM({...o,colorSchemes:u,defaultColorScheme:a,...typeof r!="boolean"&&r},...t)}function Dre(e,...t){return Sc(oo({unstable_strictMode:!0},e),...t)}let RA=!1;function Ere(e){return RA||(console.warn(["MUI: createStyles from @mui/material/styles is deprecated.","Please use @mui/styles/createStyles"].join(` `)),RA=!0),e}function LA(e){return String(parseFloat(e)).length===String(e).length}function ZM(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function Xl(e){return parseFloat(e)}function Rre(e){return(t,n)=>{const r=ZM(t);if(r===n)return t;let l=Xl(t);r!=="px"&&(r==="em"||r==="rem")&&(l=Xl(t)*Xl(e));let i=l;if(n!=="px")if(n==="em")i=l/Xl(e);else if(n==="rem")i=l/Xl(e);else return t;return parseFloat(i.toFixed(5))+n}}function Lre({size:e,grid:t}){const n=e-e%t,r=n+t;return e-n{let u=t+a*s;i!==null&&(u=i(u)),o[`@media (min-width:${s}px)`]={[e]:`${Math.round(u*1e4)/1e4}${r}`}}),o}function Nre(e,t={}){const{breakpoints:n=["sm","md","lg"],disableAlign:r=!1,factor:l=2,variants:i=["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]}=t,o={...e};o.typography={...o.typography};const a=o.typography,s=Rre(a.htmlFontSize),u=n.map(c=>o.breakpoints.values[c]);return i.forEach(c=>{const d=a[c];if(!d)return;const f=parseFloat(s(d.fontSize,"rem"));if(f<=1)return;const p=f,h=1+(p-1)/l;let{lineHeight:g}=d;if(!LA(g)&&!r)throw new Error(Ho(6));LA(g)||(g=parseFloat(s(g,"rem"))/parseFloat(f));let b=null;r||(b=v=>Lre({size:v,grid:Ire({pixels:4,lineHeight:g,htmlFontSize:a.htmlFontSize})})),a[c]={...d,...$re({cssProperty:"fontSize",min:h,max:p,unit:"rem",breakpoints:u,transform:b})}}),o}const bb=Sc();function pi(){const e=lg(bb);return e[Di]||e}function Tr({props:e,name:t}){return Cne({props:e,name:t,defaultTheme:bb,themeId:Di})}function lz(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Go=e=>lz(e)&&e!=="classes",Dt=wne({themeId:Di,defaultTheme:bb,rootShouldForwardProp:Go});function IA({theme:e,...t}){const n=Di in e?e[Di]:void 0;return Te.jsx(Yj,{...t,themeId:n?Di:void 0,theme:n||e})}const v0={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:sz,useColorScheme:QM,getInitColorSchemeScript:Fre}=nre({themeId:Di,theme:()=>Sc({cssVariables:!0}),colorSchemeStorageKey:v0.colorSchemeStorageKey,modeStorageKey:v0.modeStorageKey,defaultColorScheme:{light:v0.defaultLightColorScheme,dark:v0.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:YM(e.palette,e.typography)};return t.unstable_sx=function(r){return au({sx:r,theme:this})},t}});function jre(e){return Te.jsx(sz,{...e})}let $A=!1;const zre=e=>($A||(console.warn(["MUI: The getInitColorSchemeScript function has been deprecated.","","You should use `import InitColorSchemeScript from '@mui/material/InitColorSchemeScript'`","and replace the function call with `` instead."].join(` `)),$A=!0),Fre(e)),uz=sz;function cz({theme:e,...t}){return typeof e=="function"?Te.jsx(IA,{theme:e,...t}):"colorSchemes"in(Di in e?e[Di]:e)?Te.jsx(uz,{theme:e,...t}):Te.jsx(IA,{theme:e,...t})}function Bre(){throw new Error(Ho(14))}function Wre(){throw new Error(Ho(15))}function qre(){throw new Error(Ho(16))}let NA=!1;function Ure(...e){return NA||(console.warn(["MUI: The `experimental_extendTheme` has been stabilized.","","You should use `import { extendTheme } from '@mui/material/styles'`"].join(` -`)),NA=!0),KM(...e)}function Hre(){throw new Error(Ho(19))}const Vre=Object.freeze(Object.defineProperty({__proto__:null,CssVarsProvider:uz,Experimental_CssVarsProvider:jre,StyledEngineProvider:cte,THEME_ID:Di,ThemeProvider:cz,adaptV4Theme:sre,alpha:ar,createColorScheme:az,createMuiTheme:kre,createStyles:Ere,createTheme:Sc,createTransitions:ez,css:hs,darken:Il,decomposeColor:Ll,duration:XM,easing:Jj,emphasize:jj,experimentalStyled:Dt,experimental_extendTheme:Ure,experimental_sx:Hre,extendTheme:KM,getContrastRatio:Fj,getInitColorSchemeScript:zre,getLuminance:fy,getOverlayAlpha:gy,hexToRgb:Nj,hslToRgb:qM,keyframes:il,lighten:$l,makeStyles:Bre,private_createMixins:Qj,private_createTypography:YM,private_excludeVariablesFromRoot:iz,recomposeColor:sg,responsiveFontSizes:Nre,rgbToHex:Rne,shouldSkipGeneratingVar:oz,styled:Dt,unstable_createBreakpoints:AM,unstable_createMuiStrictModeTheme:Dre,unstable_getUnit:ZM,unstable_toUnitless:Xl,useColorScheme:QM,useTheme:pi,useThemeProps:Tr,withStyles:Wre,withTheme:qre},Symbol.toStringTag,{value:"Module"}));function Gre(e){return Te.jsx(dne,{...e,defaultTheme:bb,themeId:Di})}function JM(e){return function(n){return Te.jsx(Gre,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function Yre(){return FM}const Fn=Kne;function jn(e){return Xne(e)}function Xre(e){return gn("MuiSvgIcon",e)}fn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Kre=e=>{const{color:t,fontSize:n,classes:r}=e,l={root:["root",t!=="inherit"&&`color${Qt(t)}`,`fontSize${Qt(n)}`]};return vn(l,Xre,r)},Zre=Dt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Qt(n.color)}`],t[`fontSize${Qt(n.fontSize)}`]]}})(Fn(({theme:e})=>{var t,n,r,l,i,o,a,s,u,c,d,f,p,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(l=(t=e.transitions)==null?void 0:t.create)==null?void 0:l.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:g=>!g.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((o=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:o.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((s=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:s.call(a,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((c=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,g])=>g&&g.main).map(([g])=>{var b,v;return{props:{color:g},style:{color:(v=(b=(e.vars??e).palette)==null?void 0:b[g])==null?void 0:v.main}}}),{props:{color:"action"},style:{color:(f=(d=(e.vars??e).palette)==null?void 0:d.action)==null?void 0:f.active}},{props:{color:"disabled"},style:{color:(h=(p=(e.vars??e).palette)==null?void 0:p.action)==null?void 0:h.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),vy=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiSvgIcon"}),{children:l,className:i,color:o="inherit",component:a="svg",fontSize:s="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:f="0 0 24 24",...p}=r,h=ge.isValidElement(l)&&l.type==="svg",g={...r,color:o,component:a,fontSize:s,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:f,hasSvgAsChild:h},b={};c||(b.viewBox=f);const v=Kre(g);return Te.jsxs(Zre,{as:a,className:ln(v.root,i),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...b,...p,...h&&l.props,ownerState:g,children:[h?l.props.children:l,d?Te.jsx("title",{children:d}):null]})});vy&&(vy.muiName="SvgIcon");function kr(e,t){function n(r,l){return Te.jsx(vy,{"data-testid":`${t}Icon`,ref:l,...r,children:e})}return n.muiName=vy.muiName,ge.memo(ge.forwardRef(n))}const Qre={configure:e=>{jM.configure(e)}},Jre=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Qt,createChainedFunction:yS,createSvgIcon:kr,debounce:ug,deprecatedPropType:Lne,isMuiElement:hv,ownerDocument:qa,ownerWindow:Ni,requirePropFactory:Ine,setRef:py,unstable_ClassNameGenerator:Qre,unstable_memoTheme:Fn,unstable_useEnhancedEffect:Vo,unstable_useId:ls,unsupportedProp:Fne,useControlled:ou,useEventCallback:ho,useForkRef:Er},Symbol.toStringTag,{value:"Module"}));function tr(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,i;for(i=0;i=0)&&(n[l]=e[l]);return n}function yy(e,t){return yy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,l){return r.__proto__=l,r},yy(e,t)}function xb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,yy(e,t)}function eae(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function tae(e,t){e.classList?e.classList.add(t):eae(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function FA(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function nae(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=FA(e.className,t):e.setAttribute("class",FA(e.className&&e.className.baseVal||"",t))}const jA={disabled:!1},by=Ke.createContext(null);var dz=function(t){return t.scrollTop},Mh="unmounted",Ou="exited",Au="entering",od="entered",bS="exiting",qi=function(e){xb(t,e);function t(r,l){var i;i=e.call(this,r,l)||this;var o=l,a=o&&!o.isMounting?r.enter:r.appear,s;return i.appearStatus=null,r.in?a?(s=Ou,i.appearStatus=Au):s=od:r.unmountOnExit||r.mountOnEnter?s=Mh:s=Ou,i.state={status:s},i.nextCallback=null,i}t.getDerivedStateFromProps=function(l,i){var o=l.in;return o&&i.status===Mh?{status:Ou}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(l){var i=null;if(l!==this.props){var o=this.state.status;this.props.in?o!==Au&&o!==od&&(i=Au):(o===Au||o===od)&&(i=bS)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var l=this.props.timeout,i,o,a;return i=o=a=l,l!=null&&typeof l!="number"&&(i=l.exit,o=l.enter,a=l.appear!==void 0?l.appear:o),{exit:i,enter:o,appear:a}},n.updateStatus=function(l,i){if(l===void 0&&(l=!1),i!==null)if(this.cancelNextCallback(),i===Au){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Sh.findDOMNode(this);o&&dz(o)}this.performEnter(l)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ou&&this.setState({status:Mh})},n.performEnter=function(l){var i=this,o=this.props.enter,a=this.context?this.context.isMounting:l,s=this.props.nodeRef?[a]:[Sh.findDOMNode(this),a],u=s[0],c=s[1],d=this.getTimeouts(),f=a?d.appear:d.enter;if(!l&&!o||jA.disabled){this.safeSetState({status:od},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Au},function(){i.props.onEntering(u,c),i.onTransitionEnd(f,function(){i.safeSetState({status:od},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var l=this,i=this.props.exit,o=this.getTimeouts(),a=this.props.nodeRef?void 0:Sh.findDOMNode(this);if(!i||jA.disabled){this.safeSetState({status:Ou},function(){l.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:bS},function(){l.props.onExiting(a),l.onTransitionEnd(o.exit,function(){l.safeSetState({status:Ou},function(){l.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(l,i){i=this.setNextCallback(i),this.setState(l,i)},n.setNextCallback=function(l){var i=this,o=!0;return this.nextCallback=function(a){o&&(o=!1,i.nextCallback=null,l(a))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(l,i){this.setNextCallback(i);var o=this.props.nodeRef?this.props.nodeRef.current:Sh.findDOMNode(this),a=l==null&&!this.props.addEndListener;if(!o||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],u=s[0],c=s[1];this.props.addEndListener(u,c)}l!=null&&setTimeout(this.nextCallback,l)},n.render=function(){var l=this.state.status;if(l===Mh)return null;var i=this.props,o=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=tr(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ke.createElement(by.Provider,{value:null},typeof o=="function"?o(l,a):Ke.cloneElement(Ke.Children.only(o),a))},t}(Ke.Component);qi.contextType=by;qi.propTypes={};function Xc(){}qi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Xc,onEntering:Xc,onEntered:Xc,onExit:Xc,onExiting:Xc,onExited:Xc};qi.UNMOUNTED=Mh;qi.EXITED=Ou;qi.ENTERING=Au;qi.ENTERED=od;qi.EXITING=bS;var rae=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return tae(t,r)})},Zw=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return nae(t,r)})},e5=function(e){xb(t,e);function t(){for(var r,l=arguments.length,i=new Array(l),o=0;oe.scrollTop;function Gd(e,t){const{timeout:n,easing:r,style:l={}}=e;return{duration:l.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:l.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:l.transitionDelay}}function pz(e){return gn("MuiCollapse",e)}const uae=fn("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]),cae=uae,dae=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return vn(r,pz,n)},fae=Dt("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(Fn(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),pae=Dt("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),hae=Dt("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),xS=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiCollapse"}),{addEndListener:l,children:i,className:o,collapsedSize:a="0px",component:s,easing:u,in:c,onEnter:d,onEntered:f,onEntering:p,onExit:h,onExited:g,onExiting:b,orientation:v="vertical",style:m,timeout:y=XM.standard,TransitionComponent:x=qi,..._}=r,w={...r,orientation:v,collapsedSize:a},S=dae(w),k=pi(),C=Wu(),T=ge.useRef(null),M=ge.useRef(),O=typeof a=="number"?`${a}px`:a,D=v==="horizontal",P=D?"width":"height",E=ge.useRef(null),I=Er(n,E),A=L=>W=>{if(L){const H=E.current;W===void 0?L(H):L(H,W)}},F=()=>T.current?T.current[D?"clientWidth":"clientHeight"]:0,j=A((L,W)=>{T.current&&D&&(T.current.style.position="absolute"),L.style[P]=O,d&&d(L,W)}),B=A((L,W)=>{const H=F();T.current&&D&&(T.current.style.position="");const{duration:G,easing:te}=Gd({style:m,timeout:y,easing:u},{mode:"enter"});if(y==="auto"){const ee=k.transitions.getAutoHeightDuration(H);L.style.transitionDuration=`${ee}ms`,M.current=ee}else L.style.transitionDuration=typeof G=="string"?G:`${G}ms`;L.style[P]=`${H}px`,L.style.transitionTimingFunction=te,p&&p(L,W)}),z=A((L,W)=>{L.style[P]="auto",f&&f(L,W)}),N=A(L=>{L.style[P]=`${F()}px`,h&&h(L)}),R=A(g),q=A(L=>{const W=F(),{duration:H,easing:G}=Gd({style:m,timeout:y,easing:u},{mode:"exit"});if(y==="auto"){const te=k.transitions.getAutoHeightDuration(W);L.style.transitionDuration=`${te}ms`,M.current=te}else L.style.transitionDuration=typeof H=="string"?H:`${H}ms`;L.style[P]=O,L.style.transitionTimingFunction=G,b&&b(L)}),Y=L=>{y==="auto"&&C.start(M.current||0,L),l&&l(E.current,L)};return Te.jsx(x,{in:c,onEnter:j,onEntered:z,onEntering:B,onExit:N,onExited:R,onExiting:q,addEndListener:Y,nodeRef:E,timeout:y==="auto"?null:y,..._,children:(L,W)=>Te.jsx(fae,{as:s,className:ln(S.root,o,{entered:S.entered,exited:!c&&O==="0px"&&S.hidden}[L]),style:{[D?"minWidth":"minHeight"]:O,...m},ref:I,...W,ownerState:{...w,state:L},children:Te.jsx(pae,{ownerState:{...w,state:L},className:S.wrapper,ref:T,children:Te.jsx(hae,{ownerState:{...w,state:L},className:S.wrapperInner,children:i})})})})});xS&&(xS.muiSupportAuto=!0);const wb=xS,mae=Object.freeze(Object.defineProperty({__proto__:null,collapseClasses:cae,default:wb,getCollapseUtilityClass:pz},Symbol.toStringTag,{value:"Module"}));function hz(e){return gn("MuiPaper",e)}const gae=fn("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]),vae=gae,yae=e=>{const{square:t,elevation:n,variant:r,classes:l}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return vn(i,hz,l)},bae=Dt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Fn(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),xae=ge.forwardRef(function(t,n){var p;const r=jn({props:t,name:"MuiPaper"}),l=pi(),{className:i,component:o="div",elevation:a=1,square:s=!1,variant:u="elevation",...c}=r,d={...r,component:o,elevation:a,square:s,variant:u},f=yae(d);return Te.jsx(bae,{as:o,ownerState:d,className:ln(f.root,i),ref:n,...c,style:{...u==="elevation"&&{"--Paper-shadow":(l.vars||l).shadows[a],...l.vars&&{"--Paper-overlay":(p=l.vars.overlays)==null?void 0:p[a]},...!l.vars&&l.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${ar("#fff",gy(a))}, ${ar("#fff",gy(a))})`}},...c.style}})}),pu=xae,wae=Object.freeze(Object.defineProperty({__proto__:null,default:pu,getPaperUtilityClass:hz,paperClasses:vae},Symbol.toStringTag,{value:"Module"}));function Io(e,t){const{className:n,elementType:r,ownerState:l,externalForwardedProps:i,getSlotOwnerState:o,internalForwardedProps:a,...s}=t,{component:u,slots:c={[e]:void 0},slotProps:d={[e]:void 0},...f}=i,p=c[e]||r,h=Uj(d[e],l),{props:{component:g,...b},internalRef:v}=qj({className:n,...s,externalForwardedProps:e==="root"?f:void 0,externalSlotProps:h}),m=Er(v,h==null?void 0:h.ref,t.ref),y=o?o(b):{},x={...l,...y},_=e==="root"?g||u:g,w=wd(p,{...e==="root"&&!u&&!c[e]&&a,...e!=="root"&&!c[e]&&a,...b,..._&&{as:_},ref:m},x);return Object.keys(y).forEach(S=>{delete w[S]}),[p,w]}class xy{constructor(){Cs(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new xy}static use(){const t=zj(xy.create).current,[n,r]=ge.useState(!1);return t.shouldMount=n,t.setShouldMount=r,ge.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=Tae(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function _ae(){return xy.use()}function Tae(){let e,t;const n=new Promise((r,l)=>{e=r,t=l});return n.resolve=e,n.reject=t,n}function Sae(e){const{className:t,classes:n,pulsate:r=!1,rippleX:l,rippleY:i,rippleSize:o,in:a,onExited:s,timeout:u}=e,[c,d]=ge.useState(!1),f=ln(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+i,left:-(o/2)+l},h=ln(n.child,c&&n.childLeaving,r&&n.childPulsate);return!a&&!c&&d(!0),ge.useEffect(()=>{if(!a&&s!=null){const g=setTimeout(s,u);return()=>{clearTimeout(g)}}},[s,a,u]),Te.jsx("span",{className:f,style:p,children:Te.jsx("span",{className:h})})}const xi=fn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),wS=550,kae=80,Cae=il` +`)),NA=!0),KM(...e)}function Hre(){throw new Error(Ho(19))}const Vre=Object.freeze(Object.defineProperty({__proto__:null,CssVarsProvider:uz,Experimental_CssVarsProvider:jre,StyledEngineProvider:cte,THEME_ID:Di,ThemeProvider:cz,adaptV4Theme:sre,alpha:ar,createColorScheme:az,createMuiTheme:kre,createStyles:Ere,createTheme:Sc,createTransitions:ez,css:hs,darken:Il,decomposeColor:Ll,duration:XM,easing:Jj,emphasize:jj,experimentalStyled:Dt,experimental_extendTheme:Ure,experimental_sx:Hre,extendTheme:KM,getContrastRatio:Fj,getInitColorSchemeScript:zre,getLuminance:fy,getOverlayAlpha:gy,hexToRgb:Nj,hslToRgb:qM,keyframes:il,lighten:$l,makeStyles:Bre,private_createMixins:Qj,private_createTypography:YM,private_excludeVariablesFromRoot:iz,recomposeColor:sg,responsiveFontSizes:Nre,rgbToHex:Rne,shouldSkipGeneratingVar:oz,styled:Dt,unstable_createBreakpoints:AM,unstable_createMuiStrictModeTheme:Dre,unstable_getUnit:ZM,unstable_toUnitless:Xl,useColorScheme:QM,useTheme:pi,useThemeProps:Tr,withStyles:Wre,withTheme:qre},Symbol.toStringTag,{value:"Module"}));function Gre(e){return Te.jsx(dne,{...e,defaultTheme:bb,themeId:Di})}function JM(e){return function(n){return Te.jsx(Gre,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function Yre(){return FM}const Fn=Kne;function jn(e){return Xne(e)}function Xre(e){return gn("MuiSvgIcon",e)}fn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Kre=e=>{const{color:t,fontSize:n,classes:r}=e,l={root:["root",t!=="inherit"&&`color${Qt(t)}`,`fontSize${Qt(n)}`]};return vn(l,Xre,r)},Zre=Dt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Qt(n.color)}`],t[`fontSize${Qt(n.fontSize)}`]]}})(Fn(({theme:e})=>{var t,n,r,l,i,o,a,s,u,c,d,f,p,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(l=(t=e.transitions)==null?void 0:t.create)==null?void 0:l.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:g=>!g.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((o=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:o.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((s=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:s.call(a,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((c=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,g])=>g&&g.main).map(([g])=>{var b,v;return{props:{color:g},style:{color:(v=(b=(e.vars??e).palette)==null?void 0:b[g])==null?void 0:v.main}}}),{props:{color:"action"},style:{color:(f=(d=(e.vars??e).palette)==null?void 0:d.action)==null?void 0:f.active}},{props:{color:"disabled"},style:{color:(h=(p=(e.vars??e).palette)==null?void 0:p.action)==null?void 0:h.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),vy=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiSvgIcon"}),{children:l,className:i,color:o="inherit",component:a="svg",fontSize:s="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:f="0 0 24 24",...p}=r,h=ge.isValidElement(l)&&l.type==="svg",g={...r,color:o,component:a,fontSize:s,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:f,hasSvgAsChild:h},b={};c||(b.viewBox=f);const v=Kre(g);return Te.jsxs(Zre,{as:a,className:ln(v.root,i),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...b,...p,...h&&l.props,ownerState:g,children:[h?l.props.children:l,d?Te.jsx("title",{children:d}):null]})});vy&&(vy.muiName="SvgIcon");function kr(e,t){function n(r,l){return Te.jsx(vy,{"data-testid":`${t}Icon`,ref:l,...r,children:e})}return n.muiName=vy.muiName,ge.memo(ge.forwardRef(n))}const Qre={configure:e=>{jM.configure(e)}},Jre=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Qt,createChainedFunction:yS,createSvgIcon:kr,debounce:ug,deprecatedPropType:Lne,isMuiElement:hv,ownerDocument:qa,ownerWindow:Ni,requirePropFactory:Ine,setRef:py,unstable_ClassNameGenerator:Qre,unstable_memoTheme:Fn,unstable_useEnhancedEffect:Vo,unstable_useId:ls,unsupportedProp:Fne,useControlled:ou,useEventCallback:ho,useForkRef:Er},Symbol.toStringTag,{value:"Module"}));function tr(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,i;for(i=0;i=0)&&(n[l]=e[l]);return n}function yy(e,t){return yy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,l){return r.__proto__=l,r},yy(e,t)}function xb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,yy(e,t)}function eae(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function tae(e,t){e.classList?e.classList.add(t):eae(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function FA(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function nae(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=FA(e.className,t):e.setAttribute("class",FA(e.className&&e.className.baseVal||"",t))}const jA={disabled:!1},by=Xe.createContext(null);var dz=function(t){return t.scrollTop},Mh="unmounted",Ou="exited",Au="entering",od="entered",bS="exiting",qi=function(e){xb(t,e);function t(r,l){var i;i=e.call(this,r,l)||this;var o=l,a=o&&!o.isMounting?r.enter:r.appear,s;return i.appearStatus=null,r.in?a?(s=Ou,i.appearStatus=Au):s=od:r.unmountOnExit||r.mountOnEnter?s=Mh:s=Ou,i.state={status:s},i.nextCallback=null,i}t.getDerivedStateFromProps=function(l,i){var o=l.in;return o&&i.status===Mh?{status:Ou}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(l){var i=null;if(l!==this.props){var o=this.state.status;this.props.in?o!==Au&&o!==od&&(i=Au):(o===Au||o===od)&&(i=bS)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var l=this.props.timeout,i,o,a;return i=o=a=l,l!=null&&typeof l!="number"&&(i=l.exit,o=l.enter,a=l.appear!==void 0?l.appear:o),{exit:i,enter:o,appear:a}},n.updateStatus=function(l,i){if(l===void 0&&(l=!1),i!==null)if(this.cancelNextCallback(),i===Au){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Sh.findDOMNode(this);o&&dz(o)}this.performEnter(l)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ou&&this.setState({status:Mh})},n.performEnter=function(l){var i=this,o=this.props.enter,a=this.context?this.context.isMounting:l,s=this.props.nodeRef?[a]:[Sh.findDOMNode(this),a],u=s[0],c=s[1],d=this.getTimeouts(),f=a?d.appear:d.enter;if(!l&&!o||jA.disabled){this.safeSetState({status:od},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Au},function(){i.props.onEntering(u,c),i.onTransitionEnd(f,function(){i.safeSetState({status:od},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var l=this,i=this.props.exit,o=this.getTimeouts(),a=this.props.nodeRef?void 0:Sh.findDOMNode(this);if(!i||jA.disabled){this.safeSetState({status:Ou},function(){l.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:bS},function(){l.props.onExiting(a),l.onTransitionEnd(o.exit,function(){l.safeSetState({status:Ou},function(){l.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(l,i){i=this.setNextCallback(i),this.setState(l,i)},n.setNextCallback=function(l){var i=this,o=!0;return this.nextCallback=function(a){o&&(o=!1,i.nextCallback=null,l(a))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(l,i){this.setNextCallback(i);var o=this.props.nodeRef?this.props.nodeRef.current:Sh.findDOMNode(this),a=l==null&&!this.props.addEndListener;if(!o||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],u=s[0],c=s[1];this.props.addEndListener(u,c)}l!=null&&setTimeout(this.nextCallback,l)},n.render=function(){var l=this.state.status;if(l===Mh)return null;var i=this.props,o=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=tr(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Xe.createElement(by.Provider,{value:null},typeof o=="function"?o(l,a):Xe.cloneElement(Xe.Children.only(o),a))},t}(Xe.Component);qi.contextType=by;qi.propTypes={};function Xc(){}qi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Xc,onEntering:Xc,onEntered:Xc,onExit:Xc,onExiting:Xc,onExited:Xc};qi.UNMOUNTED=Mh;qi.EXITED=Ou;qi.ENTERING=Au;qi.ENTERED=od;qi.EXITING=bS;var rae=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return tae(t,r)})},Zw=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return nae(t,r)})},e5=function(e){xb(t,e);function t(){for(var r,l=arguments.length,i=new Array(l),o=0;oe.scrollTop;function Gd(e,t){const{timeout:n,easing:r,style:l={}}=e;return{duration:l.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:l.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:l.transitionDelay}}function pz(e){return gn("MuiCollapse",e)}const uae=fn("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]),cae=uae,dae=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return vn(r,pz,n)},fae=Dt("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(Fn(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),pae=Dt("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),hae=Dt("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),xS=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiCollapse"}),{addEndListener:l,children:i,className:o,collapsedSize:a="0px",component:s,easing:u,in:c,onEnter:d,onEntered:f,onEntering:p,onExit:h,onExited:g,onExiting:b,orientation:v="vertical",style:m,timeout:y=XM.standard,TransitionComponent:x=qi,..._}=r,w={...r,orientation:v,collapsedSize:a},S=dae(w),k=pi(),C=Wu(),T=ge.useRef(null),M=ge.useRef(),O=typeof a=="number"?`${a}px`:a,D=v==="horizontal",P=D?"width":"height",E=ge.useRef(null),I=Er(n,E),A=L=>W=>{if(L){const H=E.current;W===void 0?L(H):L(H,W)}},F=()=>T.current?T.current[D?"clientWidth":"clientHeight"]:0,j=A((L,W)=>{T.current&&D&&(T.current.style.position="absolute"),L.style[P]=O,d&&d(L,W)}),B=A((L,W)=>{const H=F();T.current&&D&&(T.current.style.position="");const{duration:G,easing:te}=Gd({style:m,timeout:y,easing:u},{mode:"enter"});if(y==="auto"){const ee=k.transitions.getAutoHeightDuration(H);L.style.transitionDuration=`${ee}ms`,M.current=ee}else L.style.transitionDuration=typeof G=="string"?G:`${G}ms`;L.style[P]=`${H}px`,L.style.transitionTimingFunction=te,p&&p(L,W)}),z=A((L,W)=>{L.style[P]="auto",f&&f(L,W)}),N=A(L=>{L.style[P]=`${F()}px`,h&&h(L)}),R=A(g),q=A(L=>{const W=F(),{duration:H,easing:G}=Gd({style:m,timeout:y,easing:u},{mode:"exit"});if(y==="auto"){const te=k.transitions.getAutoHeightDuration(W);L.style.transitionDuration=`${te}ms`,M.current=te}else L.style.transitionDuration=typeof H=="string"?H:`${H}ms`;L.style[P]=O,L.style.transitionTimingFunction=G,b&&b(L)}),Y=L=>{y==="auto"&&C.start(M.current||0,L),l&&l(E.current,L)};return Te.jsx(x,{in:c,onEnter:j,onEntered:z,onEntering:B,onExit:N,onExited:R,onExiting:q,addEndListener:Y,nodeRef:E,timeout:y==="auto"?null:y,..._,children:(L,W)=>Te.jsx(fae,{as:s,className:ln(S.root,o,{entered:S.entered,exited:!c&&O==="0px"&&S.hidden}[L]),style:{[D?"minWidth":"minHeight"]:O,...m},ref:I,...W,ownerState:{...w,state:L},children:Te.jsx(pae,{ownerState:{...w,state:L},className:S.wrapper,ref:T,children:Te.jsx(hae,{ownerState:{...w,state:L},className:S.wrapperInner,children:i})})})})});xS&&(xS.muiSupportAuto=!0);const wb=xS,mae=Object.freeze(Object.defineProperty({__proto__:null,collapseClasses:cae,default:wb,getCollapseUtilityClass:pz},Symbol.toStringTag,{value:"Module"}));function hz(e){return gn("MuiPaper",e)}const gae=fn("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]),vae=gae,yae=e=>{const{square:t,elevation:n,variant:r,classes:l}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return vn(i,hz,l)},bae=Dt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Fn(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),xae=ge.forwardRef(function(t,n){var p;const r=jn({props:t,name:"MuiPaper"}),l=pi(),{className:i,component:o="div",elevation:a=1,square:s=!1,variant:u="elevation",...c}=r,d={...r,component:o,elevation:a,square:s,variant:u},f=yae(d);return Te.jsx(bae,{as:o,ownerState:d,className:ln(f.root,i),ref:n,...c,style:{...u==="elevation"&&{"--Paper-shadow":(l.vars||l).shadows[a],...l.vars&&{"--Paper-overlay":(p=l.vars.overlays)==null?void 0:p[a]},...!l.vars&&l.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${ar("#fff",gy(a))}, ${ar("#fff",gy(a))})`}},...c.style}})}),pu=xae,wae=Object.freeze(Object.defineProperty({__proto__:null,default:pu,getPaperUtilityClass:hz,paperClasses:vae},Symbol.toStringTag,{value:"Module"}));function Io(e,t){const{className:n,elementType:r,ownerState:l,externalForwardedProps:i,getSlotOwnerState:o,internalForwardedProps:a,...s}=t,{component:u,slots:c={[e]:void 0},slotProps:d={[e]:void 0},...f}=i,p=c[e]||r,h=Uj(d[e],l),{props:{component:g,...b},internalRef:v}=qj({className:n,...s,externalForwardedProps:e==="root"?f:void 0,externalSlotProps:h}),m=Er(v,h==null?void 0:h.ref,t.ref),y=o?o(b):{},x={...l,...y},_=e==="root"?g||u:g,w=wd(p,{...e==="root"&&!u&&!c[e]&&a,...e!=="root"&&!c[e]&&a,...b,..._&&{as:_},ref:m},x);return Object.keys(y).forEach(S=>{delete w[S]}),[p,w]}class xy{constructor(){Cs(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new xy}static use(){const t=zj(xy.create).current,[n,r]=ge.useState(!1);return t.shouldMount=n,t.setShouldMount=r,ge.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=Tae(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function _ae(){return xy.use()}function Tae(){let e,t;const n=new Promise((r,l)=>{e=r,t=l});return n.resolve=e,n.reject=t,n}function Sae(e){const{className:t,classes:n,pulsate:r=!1,rippleX:l,rippleY:i,rippleSize:o,in:a,onExited:s,timeout:u}=e,[c,d]=ge.useState(!1),f=ln(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+i,left:-(o/2)+l},h=ln(n.child,c&&n.childLeaving,r&&n.childPulsate);return!a&&!c&&d(!0),ge.useEffect(()=>{if(!a&&s!=null){const g=setTimeout(s,u);return()=>{clearTimeout(g)}}},[s,a,u]),Te.jsx("span",{className:f,style:p,children:Te.jsx("span",{className:h})})}const xi=fn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),wS=550,kae=80,Cae=il` 0% { transform: scale(0); opacity: 0.1; @@ -285,14 +285,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann ${(e.vars||e).palette.action.hover}, transparent )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:Jce||{"&::after":{animation:`${FS} 2s linear 0.5s infinite`}}}]}})),tde=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiSkeleton"}),{animation:l="pulse",className:i,component:o="span",height:a,style:s,variant:u="text",width:c,...d}=r,f={...r,animation:l,component:o,variant:u,hasChildren:!!d.children},p=Zce(f);return Te.jsx(ede,{as:o,ref:n,className:ln(p.root,i),ownerState:f,...d,style:{width:c,height:a,...s}})});function sB(e){return gn("MuiTooltip",e)}const nde=fn("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),la=nde;function rde(e){return Math.round(e*1e5)/1e5}const ade=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:l,placement:i}=e,o={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",l&&"touch",`tooltipPlacement${Qt(i.split("-")[0])}`],arrow:["arrow"]};return vn(o,sB,t)},ode=Dt(c5,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Fn(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${la.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${la.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${la.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${la.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${la.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${la.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${la.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${la.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),ide=Dt("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Qt(n.placement.split("-")[0])}`]]}})(Fn(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:ar(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${la.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${la.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${la.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${la.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${rde(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${la.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${la.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${la.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${la.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${la.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${la.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${la.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${la.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${la.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${la.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),lde=Dt("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(Fn(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:ar(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let w0=!1;const v7=new yb;let mp={x:0,y:0};function _0(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const sde=ge.forwardRef(function(t,n){var We,Ge,ot;const r=jn({props:t,name:"MuiTooltip"}),{arrow:l=!1,children:i,classes:o,components:a={},componentsProps:s={},describeChild:u=!1,disableFocusListener:c=!1,disableHoverListener:d=!1,disableInteractive:f=!1,disableTouchListener:p=!1,enterDelay:h=100,enterNextDelay:g=0,enterTouchDelay:b=700,followCursor:v=!1,id:m,leaveDelay:y=0,leaveTouchDelay:x=1500,onClose:_,onOpen:w,open:S,placement:k="bottom",PopperComponent:C,PopperProps:T={},slotProps:M={},slots:O={},title:D,TransitionComponent:P=Jd,TransitionProps:E,...I}=r,A=ge.isValidElement(i)?i:Te.jsx("span",{children:i}),F=pi(),j=Tc(),[B,z]=ge.useState(),[N,R]=ge.useState(null),q=ge.useRef(!1),Y=f||v,L=Wu(),W=Wu(),H=Wu(),G=Wu(),[te,ee]=ou({controlled:S,default:!1,name:"Tooltip",state:"open"});let U=te;const Q=ls(m),V=ge.useRef(),X=ho(()=>{V.current!==void 0&&(document.body.style.WebkitUserSelect=V.current,V.current=void 0),G.clear()});ge.useEffect(()=>X,[X]);const K=Je=>{v7.clear(),w0=!0,ee(!0),w&&!U&&w(Je)},ne=ho(Je=>{v7.start(800+y,()=>{w0=!1}),ee(!1),_&&U&&_(Je),L.start(F.transitions.duration.shortest,()=>{q.current=!1})}),ae=Je=>{q.current&&Je.type!=="touchstart"||(B&&B.removeAttribute("title"),W.clear(),H.clear(),h||w0&&g?W.start(w0?g:h,()=>{K(Je)}):K(Je))},ie=Je=>{W.clear(),H.start(y,()=>{ne(Je)})},[,se]=ge.useState(!1),pe=Je=>{hy(Je.target)||(se(!1),ie(Je))},ke=Je=>{B||z(Je.currentTarget),hy(Je.target)&&(se(!0),ae(Je))},Ce=Je=>{q.current=!0;const st=A.props;st.onTouchStart&&st.onTouchStart(Je)},Oe=Je=>{Ce(Je),H.clear(),L.clear(),X(),V.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",G.start(b,()=>{document.body.style.WebkitUserSelect=V.current,ae(Je)})},Pe=Je=>{A.props.onTouchEnd&&A.props.onTouchEnd(Je),X(),H.start(x,()=>{ne(Je)})};ge.useEffect(()=>{if(!U)return;function Je(st){st.key==="Escape"&&ne(st)}return document.addEventListener("keydown",Je),()=>{document.removeEventListener("keydown",Je)}},[ne,U]);const ce=Er(_f(A),z,n);!D&&D!==0&&(U=!1);const we=ge.useRef(),Z=Je=>{const st=A.props;st.onMouseMove&&st.onMouseMove(Je),mp={x:Je.clientX,y:Je.clientY},we.current&&we.current.update()},re={},de=typeof D=="string";u?(re.title=!U&&de&&!d?D:null,re["aria-describedby"]=U?Q:null):(re["aria-label"]=de?D:null,re["aria-labelledby"]=U&&!de?Q:null);const _e={...re,...I,...A.props,className:ln(I.className,A.props.className),onTouchStart:Ce,ref:ce,...v?{onMouseMove:Z}:{}},ue={};p||(_e.onTouchStart=Oe,_e.onTouchEnd=Pe),d||(_e.onMouseOver=_0(ae,_e.onMouseOver),_e.onMouseLeave=_0(ie,_e.onMouseLeave),Y||(ue.onMouseOver=ae,ue.onMouseLeave=ie)),c||(_e.onFocus=_0(ke,_e.onFocus),_e.onBlur=_0(pe,_e.onBlur),Y||(ue.onFocus=ke,ue.onBlur=pe));const me=ge.useMemo(()=>{var st;let Je=[{name:"arrow",enabled:!!N,options:{element:N,padding:4}}];return(st=T.popperOptions)!=null&&st.modifiers&&(Je=Je.concat(T.popperOptions.modifiers)),{...T.popperOptions,modifiers:Je}},[N,T]),xe={...r,isRtl:j,arrow:l,disableInteractive:Y,placement:k,PopperComponentProp:C,touch:q.current},ye=ade(xe),Se=O.popper??a.Popper??ode,Ae=O.transition??a.Transition??P??Jd,Le=O.tooltip??a.Tooltip??ide,Re=O.arrow??a.Arrow??lde,Ie=wd(Se,{...T,...M.popper??s.popper,className:ln(ye.popper,T==null?void 0:T.className,(We=M.popper??s.popper)==null?void 0:We.className)},xe),Ne=wd(Ae,{...E,...M.transition??s.transition},xe),ze=wd(Le,{...M.tooltip??s.tooltip,className:ln(ye.tooltip,(Ge=M.tooltip??s.tooltip)==null?void 0:Ge.className)},xe),qe=wd(Re,{...M.arrow??s.arrow,className:ln(ye.arrow,(ot=M.arrow??s.arrow)==null?void 0:ot.className)},xe);return Te.jsxs(ge.Fragment,{children:[ge.cloneElement(A,_e),Te.jsx(Se,{as:C??c5,placement:k,anchorEl:v?{getBoundingClientRect:()=>({top:mp.y,left:mp.x,right:mp.x,bottom:mp.y,width:0,height:0})}:B,popperRef:we,open:B?U:!1,id:Q,transition:!0,...ue,...Ie,popperOptions:me,children:({TransitionProps:Je})=>Te.jsx(Ae,{timeout:F.transitions.duration.shorter,...Je,...Ne,children:Te.jsxs(Le,{...ze,children:[D,l?Te.jsx(Re,{...qe,ref:R}):null]})})})]})}),ude=sde,cde=Object.freeze(Object.defineProperty({__proto__:null,default:ude,getTooltipUtilityClass:sB,tooltipClasses:la},Symbol.toStringTag,{value:"Module"}));function dde(e){return gn("MuiTab",e)}const yi=fn("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),fde=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:l,icon:i,label:o,selected:a,disabled:s}=e,u={root:["root",i&&o&&"labelIcon",`textColor${Qt(n)}`,r&&"fullWidth",l&&"wrapped",a&&"selected",s&&"disabled"],icon:["iconWrapper","icon"]};return vn(u,dde,t)},pde=Dt(Nl,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Qt(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${yi.iconWrapper}`]:t.iconWrapper},{[`& .${yi.icon}`]:t.icon}]}})(Fn(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="top",style:{[`& > .${yi.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${yi.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${yi.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${yi.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${yi.selected}`]:{opacity:1},[`&.${yi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${yi.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${yi.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${yi.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${yi.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),jS=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiTab"}),{className:l,disabled:i=!1,disableFocusRipple:o=!1,fullWidth:a,icon:s,iconPosition:u="top",indicator:c,label:d,onChange:f,onClick:p,onFocus:h,selected:g,selectionFollowsFocus:b,textColor:v="inherit",value:m,wrapped:y=!1,...x}=r,_={...r,disabled:i,disableFocusRipple:o,selected:g,icon:!!s,iconPosition:u,label:!!d,fullWidth:a,textColor:v,wrapped:y},w=fde(_),S=s&&d&&ge.isValidElement(s)?ge.cloneElement(s,{className:ln(w.icon,s.props.className)}):s,k=T=>{!g&&f&&f(T,m),p&&p(T)},C=T=>{b&&!g&&f&&f(T,m),h&&h(T)};return Te.jsxs(pde,{focusRipple:!o,className:ln(w.root,l),ref:n,role:"tab","aria-selected":g,disabled:i,onClick:k,onFocus:C,ownerState:_,tabIndex:g?0:-1,...x,children:[u==="top"||u==="start"?Te.jsxs(ge.Fragment,{children:[S,d]}):Te.jsxs(ge.Fragment,{children:[d,S]}),c]})}),uB=ge.createContext();function cB(e){return gn("MuiTable",e)}const hde=fn("MuiTable",["root","stickyHeader"]),mde=hde,gde=e=>{const{classes:t,stickyHeader:n}=e;return vn({root:["root",n&&"stickyHeader"]},cB,t)},vde=Dt("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(Fn(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),y7="table",yde=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiTable"}),{className:l,component:i=y7,padding:o="normal",size:a="medium",stickyHeader:s=!1,...u}=r,c={...r,component:i,padding:o,size:a,stickyHeader:s},d=gde(c),f=ge.useMemo(()=>({padding:o,size:a,stickyHeader:s}),[o,a,s]);return Te.jsx(uB.Provider,{value:f,children:Te.jsx(vde,{as:i,role:i===y7?null:"table",ref:n,className:ln(d.root,l),ownerState:c,...u})})}),h5=yde,bde=Object.freeze(Object.defineProperty({__proto__:null,default:h5,getTableUtilityClass:cB,tableClasses:mde},Symbol.toStringTag,{value:"Module"})),pg=ge.createContext();function dB(e){return gn("MuiTableBody",e)}const xde=fn("MuiTableBody",["root"]),wde=xde,_de=e=>{const{classes:t}=e;return vn({root:["root"]},dB,t)},Tde=Dt("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Sde={variant:"body"},b7="tbody",kde=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiTableBody"}),{className:l,component:i=b7,...o}=r,a={...r,component:i},s=_de(a);return Te.jsx(pg.Provider,{value:Sde,children:Te.jsx(Tde,{className:ln(s.root,l),as:i,ref:n,role:i===b7?null:"rowgroup",ownerState:a,...o})})}),m5=kde,Cde=Object.freeze(Object.defineProperty({__proto__:null,default:m5,getTableBodyUtilityClass:dB,tableBodyClasses:wde},Symbol.toStringTag,{value:"Module"}));function fB(e){return gn("MuiTableCell",e)}const Mde=fn("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),pB=Mde,Pde=e=>{const{classes:t,variant:n,align:r,padding:l,size:i,stickyHeader:o}=e,a={root:["root",n,o&&"stickyHeader",r!=="inherit"&&`align${Qt(r)}`,l!=="normal"&&`padding${Qt(l)}`,`size${Qt(i)}`]};return vn(a,fB,t)},Ode=Dt("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Qt(n.size)}`],n.padding!=="normal"&&t[`padding${Qt(n.padding)}`],n.align!=="inherit"&&t[`align${Qt(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(Fn(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?$l(ar(e.palette.divider,1),.88):Il(ar(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${pB.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),Ade=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiTableCell"}),{align:l="inherit",className:i,component:o,padding:a,scope:s,size:u,sortDirection:c,variant:d,...f}=r,p=ge.useContext(uB),h=ge.useContext(pg),g=h&&h.variant==="head";let b;o?b=o:b=g?"th":"td";let v=s;b==="td"?v=void 0:!v&&g&&(v="col");const m=d||h&&h.variant,y={...r,align:l,component:b,padding:a||(p&&p.padding?p.padding:"normal"),size:u||(p&&p.size?p.size:"medium"),sortDirection:c,stickyHeader:m==="head"&&p&&p.stickyHeader,variant:m},x=Pde(y);let _=null;return c&&(_=c==="asc"?"ascending":"descending"),Te.jsx(Ode,{as:b,ref:n,className:ln(x.root,i),"aria-sort":_,scope:v,ownerState:y,...f})}),Mi=Ade,Dde=Object.freeze(Object.defineProperty({__proto__:null,default:Mi,getTableCellUtilityClass:fB,tableCellClasses:pB},Symbol.toStringTag,{value:"Module"}));function Ede(e){return gn("MuiTableContainer",e)}fn("MuiTableContainer",["root"]);const Rde=e=>{const{classes:t}=e;return vn({root:["root"]},Ede,t)},Lde=Dt("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Ide=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiTableContainer"}),{className:l,component:i="div",...o}=r,a={...r,component:i},s=Rde(a);return Te.jsx(Lde,{ref:n,as:i,className:ln(s.root,l),ownerState:a,...o})});function hB(e){return gn("MuiTableFooter",e)}const $de=fn("MuiTableFooter",["root"]),Nde=$de,Fde=e=>{const{classes:t}=e;return vn({root:["root"]},hB,t)},jde=Dt("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),zde={variant:"footer"},x7="tfoot",Bde=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiTableFooter"}),{className:l,component:i=x7,...o}=r,a={...r,component:i},s=Fde(a);return Te.jsx(pg.Provider,{value:zde,children:Te.jsx(jde,{as:i,className:ln(s.root,l),ref:n,role:i===x7?null:"rowgroup",ownerState:a,...o})})}),Wde=Bde,qde=Object.freeze(Object.defineProperty({__proto__:null,default:Wde,getTableFooterUtilityClass:hB,tableFooterClasses:Nde},Symbol.toStringTag,{value:"Module"}));function mB(e){return gn("MuiTableHead",e)}const Ude=fn("MuiTableHead",["root"]),Hde=Ude,Vde=e=>{const{classes:t}=e;return vn({root:["root"]},mB,t)},Gde=Dt("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Yde={variant:"head"},w7="thead",Xde=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiTableHead"}),{className:l,component:i=w7,...o}=r,a={...r,component:i},s=Vde(a);return Te.jsx(pg.Provider,{value:Yde,children:Te.jsx(Gde,{as:i,className:ln(s.root,l),ref:n,role:i===w7?null:"rowgroup",ownerState:a,...o})})}),g5=Xde,Kde=Object.freeze(Object.defineProperty({__proto__:null,default:g5,getTableHeadUtilityClass:mB,tableHeadClasses:Hde},Symbol.toStringTag,{value:"Module"}));function gB(e){return gn("MuiToolbar",e)}const Zde=fn("MuiToolbar",["root","gutters","regular","dense"]),Qde=Zde,Jde=e=>{const{classes:t,disableGutters:n,variant:r}=e;return vn({root:["root",!n&&"gutters",r]},gB,t)},efe=Dt("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(Fn(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),tfe=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiToolbar"}),{className:l,component:i="div",disableGutters:o=!1,variant:a="regular",...s}=r,u={...r,component:i,disableGutters:o,variant:a},c=Jde(u);return Te.jsx(efe,{as:i,className:ln(c.root,l),ref:n,ownerState:u,...s})}),vB=tfe,nfe=Object.freeze(Object.defineProperty({__proto__:null,default:vB,getToolbarUtilityClass:gB,toolbarClasses:Qde},Symbol.toStringTag,{value:"Module"})),yB=kr(Te.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),bB=kr(Te.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),rfe=ge.forwardRef(function(t,n){const{backIconButtonProps:r,count:l,disabled:i=!1,getItemAriaLabel:o,nextIconButtonProps:a,onPageChange:s,page:u,rowsPerPage:c,showFirstButton:d,showLastButton:f,slots:p={},slotProps:h={},...g}=t,b=Tc(),v=z=>{s(z,0)},m=z=>{s(z,u-1)},y=z=>{s(z,u+1)},x=z=>{s(z,Math.max(0,Math.ceil(l/c)-1))},_=p.firstButton??Fo,w=p.lastButton??Fo,S=p.nextButton??Fo,k=p.previousButton??Fo,C=p.firstButtonIcon??$ce,T=p.lastButtonIcon??Nce,M=p.nextButtonIcon??bB,O=p.previousButtonIcon??yB,D=b?w:_,P=b?S:k,E=b?k:S,I=b?_:w,A=b?h.lastButton:h.firstButton,F=b?h.nextButton:h.previousButton,j=b?h.previousButton:h.nextButton,B=b?h.firstButton:h.lastButton;return Te.jsxs("div",{ref:n,...g,children:[d&&Te.jsx(D,{onClick:v,disabled:i||u===0,"aria-label":o("first",u),title:o("first",u),...A,children:b?Te.jsx(T,{...h.lastButtonIcon}):Te.jsx(C,{...h.firstButtonIcon})}),Te.jsx(P,{onClick:m,disabled:i||u===0,color:"inherit","aria-label":o("previous",u),title:o("previous",u),...F??r,children:b?Te.jsx(M,{...h.nextButtonIcon}):Te.jsx(O,{...h.previousButtonIcon})}),Te.jsx(E,{onClick:y,disabled:i||(l!==-1?u>=Math.ceil(l/c)-1:!1),color:"inherit","aria-label":o("next",u),title:o("next",u),...j??a,children:b?Te.jsx(O,{...h.previousButtonIcon}):Te.jsx(M,{...h.nextButtonIcon})}),f&&Te.jsx(I,{onClick:x,disabled:i||u>=Math.ceil(l/c)-1,"aria-label":o("last",u),title:o("last",u),...B,children:b?Te.jsx(C,{...h.firstButtonIcon}):Te.jsx(T,{...h.lastButtonIcon})})]})});function xB(e){return gn("MuiTablePagination",e)}const afe=fn("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),Ed=afe;var _7;const ofe=Dt(Mi,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(Fn(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),ife=Dt(vB,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({[`& .${Ed.actions}`]:t.actions,...t.toolbar})})(Fn(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Ed.actions}`]:{flexShrink:0,marginLeft:20}}))),lfe=Dt("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),sfe=Dt("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(Fn(({theme:e})=>({...e.typography.body2,flexShrink:0}))),ufe=Dt(Tf,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({[`& .${Ed.selectIcon}`]:t.selectIcon,[`& .${Ed.select}`]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Ed.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),cfe=Dt(Yh,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),dfe=Dt("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(Fn(({theme:e})=>({...e.typography.body2,flexShrink:0})));function ffe({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function pfe(e){return`Go to ${e} page`}const hfe=e=>{const{classes:t}=e;return vn({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},xB,t)},mfe=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiTablePagination"}),{ActionsComponent:l=rfe,backIconButtonProps:i,className:o,colSpan:a,component:s=Mi,count:u,disabled:c=!1,getItemAriaLabel:d=pfe,labelDisplayedRows:f=ffe,labelRowsPerPage:p="Rows per page:",nextIconButtonProps:h,onPageChange:g,onRowsPerPageChange:b,page:v,rowsPerPage:m,rowsPerPageOptions:y=[10,25,50,100],SelectProps:x={},showFirstButton:_=!1,showLastButton:w=!1,slotProps:S={},slots:k={},...C}=r,T=r,M=hfe(T),O=(S==null?void 0:S.select)??x,D=O.native?"option":cfe;let P;(s===Mi||s==="td")&&(P=a||1e3);const E=ls(O.id),I=ls(O.labelId),A=()=>u===-1?(v+1)*m:m===-1?u:Math.min(u,(v+1)*m);return Te.jsx(ofe,{colSpan:P,ref:n,as:s,ownerState:T,className:ln(M.root,o),...C,children:Te.jsxs(ife,{className:M.toolbar,children:[Te.jsx(lfe,{className:M.spacer}),y.length>1&&Te.jsx(sfe,{className:M.selectLabel,id:I,children:p}),y.length>1&&Te.jsx(ufe,{variant:"standard",...!O.variant&&{input:_7||(_7=Te.jsx(Pb,{}))},value:m,onChange:b,id:E,labelId:I,...O,classes:{...O.classes,root:ln(M.input,M.selectRoot,(O.classes||{}).root),select:ln(M.select,(O.classes||{}).select),icon:ln(M.selectIcon,(O.classes||{}).icon)},disabled:c,children:y.map(F=>ge.createElement(D,{...!_y(D)&&{ownerState:T},className:M.menuItem,key:F.label?F.label:F,value:F.value?F.value:F},F.label?F.label:F))}),Te.jsx(dfe,{className:M.displayedRows,children:f({from:u===0?0:v*m+1,to:A(),count:u===-1?-1:u,page:v})}),Te.jsx(l,{className:M.actions,backIconButtonProps:i,count:u,nextIconButtonProps:h,onPageChange:g,page:v,rowsPerPage:m,showFirstButton:_,showLastButton:w,slotProps:S.actions,slots:k.actions,getItemAriaLabel:d,disabled:c})]})})}),gfe=mfe,vfe=Object.freeze(Object.defineProperty({__proto__:null,default:gfe,getTablePaginationUtilityClass:xB,tablePaginationClasses:Ed},Symbol.toStringTag,{value:"Module"}));function wB(e){return gn("MuiTableRow",e)}const yfe=fn("MuiTableRow",["root","selected","hover","head","footer"]),zS=yfe,bfe=e=>{const{classes:t,selected:n,hover:r,head:l,footer:i}=e;return vn({root:["root",n&&"selected",r&&"hover",l&&"head",i&&"footer"]},wB,t)},xfe=Dt("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(Fn(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${zS.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${zS.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ar(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ar(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),T7="tr",wfe=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiTableRow"}),{className:l,component:i=T7,hover:o=!1,selected:a=!1,...s}=r,u=ge.useContext(pg),c={...r,component:i,hover:o,selected:a,head:u&&u.variant==="head",footer:u&&u.variant==="footer"},d=bfe(c);return Te.jsx(xfe,{as:i,ref:n,className:ln(d.root,l),role:i===T7?null:"row",ownerState:c,...s})}),Cm=wfe,_fe=Object.freeze(Object.defineProperty({__proto__:null,default:Cm,getTableRowUtilityClass:wB,tableRowClasses:zS},Symbol.toStringTag,{value:"Module"})),Tfe=kr(Te.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function _B(e){return gn("MuiTableSortLabel",e)}const Sfe=fn("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc","directionDesc","directionAsc"]),yv=Sfe,kfe=e=>{const{classes:t,direction:n,active:r}=e,l={root:["root",r&&"active",`direction${Qt(n)}`],icon:["icon",`iconDirection${Qt(n)}`]};return vn(l,_B,t)},Cfe=Dt(Nl,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})(Fn(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${yv.icon}`]:{opacity:.5}},[`&.${yv.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${yv.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}}))),Mfe=Dt("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${Qt(n.direction)}`]]}})(Fn(({theme:e})=>({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none",variants:[{props:{direction:"desc"},style:{transform:"rotate(0deg)"}},{props:{direction:"asc"},style:{transform:"rotate(180deg)"}}]}))),Pfe=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiTableSortLabel"}),{active:l=!1,children:i,className:o,direction:a="asc",hideSortIcon:s=!1,IconComponent:u=Tfe,...c}=r,d={...r,active:l,direction:a,hideSortIcon:s,IconComponent:u},f=kfe(d);return Te.jsxs(Cfe,{className:ln(f.root,o),component:"span",disableRipple:!0,ownerState:d,ref:n,...c,children:[i,s&&!l?null:Te.jsx(Mfe,{as:u,className:ln(f.icon),ownerState:d})]})}),Ofe=Pfe,Afe=Object.freeze(Object.defineProperty({__proto__:null,default:Ofe,getTableSortLabelUtilityClass:_B,tableSortLabelClasses:yv},Symbol.toStringTag,{value:"Module"}));function Dfe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Efe(e,t,n,r={},l=()=>{}){const{ease:i=Dfe,duration:o=300}=r;let a=null;const s=t[e];let u=!1;const c=()=>{u=!0},d=f=>{if(u){l(new Error("Animation cancelled"));return}a===null&&(a=f);const p=Math.min(1,(f-a)/o);if(t[e]=i(p)*(n-s)+s,p>=1){requestAnimationFrame(()=>{l(null)});return}requestAnimationFrame(d)};return s===n?(l(new Error("Element already at target position")),c):(requestAnimationFrame(d),c)}const Rfe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Lfe(e){const{onChange:t,...n}=e,r=ge.useRef(),l=ge.useRef(null),i=()=>{r.current=l.current.offsetHeight-l.current.clientHeight};return Vo(()=>{const o=ug(()=>{const s=r.current;i(),s!==r.current&&t(r.current)}),a=Ni(l.current);return a.addEventListener("resize",o),()=>{o.clear(),a.removeEventListener("resize",o)}},[t]),ge.useEffect(()=>{i(),t(r.current)},[t]),Te.jsx("div",{style:Rfe,ref:l,...n})}function Ife(e){return gn("MuiTabScrollButton",e)}const $fe=fn("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Nfe=e=>{const{classes:t,orientation:n,disabled:r}=e;return vn({root:["root",n,r&&"disabled"]},Ife,t)},Ffe=Dt(Nl,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${$fe.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),jfe=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiTabScrollButton"}),{className:l,slots:i={},slotProps:o={},direction:a,orientation:s,disabled:u,...c}=r,d=Tc(),f={isRtl:d,...r},p=Nfe(f),h=i.StartScrollButtonIcon??yB,g=i.EndScrollButtonIcon??bB,b=ic({elementType:h,externalSlotProps:o.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f}),v=ic({elementType:g,externalSlotProps:o.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f});return Te.jsx(Ffe,{component:"div",className:ln(p.root,l),ref:n,role:null,ownerState:f,tabIndex:null,...c,style:{...c.style,...s==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${d?-90:90}deg)`}},children:a==="left"?Te.jsx(h,{...b}):Te.jsx(g,{...v})})});function zfe(e){return gn("MuiTabs",e)}const bv=fn("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),S7=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,k7=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,T0=(e,t,n)=>{let r=!1,l=n(e,t);for(;l;){if(l===e.firstChild){if(r)return;r=!0}const i=l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||i)l=n(e,l);else{l.focus();return}}},Bfe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:l,scrollableY:i,centered:o,scrollButtonsHideMobile:a,classes:s}=e;return vn({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",l&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",o&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[l&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},zfe,s)},Wfe=Dt("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${bv.scrollButtons}`]:t.scrollButtons},{[`& .${bv.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(Fn(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${bv.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),qfe=Dt("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),Ufe=Dt("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),Hfe=Dt("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(Fn(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),Vfe=Dt(Lfe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),C7={},TB=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiTabs"}),l=pi(),i=Tc(),{"aria-label":o,"aria-labelledby":a,action:s,centered:u=!1,children:c,className:d,component:f="div",allowScrollButtonsMobile:p=!1,indicatorColor:h="primary",onChange:g,orientation:b="horizontal",ScrollButtonComponent:v=jfe,scrollButtons:m="auto",selectionFollowsFocus:y,slots:x={},slotProps:_={},TabIndicatorProps:w={},TabScrollButtonProps:S={},textColor:k="primary",value:C,variant:T="standard",visibleScrollbar:M=!1,...O}=r,D=T==="scrollable",P=b==="vertical",E=P?"scrollTop":"scrollLeft",I=P?"top":"left",A=P?"bottom":"right",F=P?"clientHeight":"clientWidth",j=P?"height":"width",B={...r,component:f,allowScrollButtonsMobile:p,indicatorColor:h,orientation:b,vertical:P,scrollButtons:m,textColor:k,variant:T,visibleScrollbar:M,fixed:!D,hideScrollbar:D&&!M,scrollableX:D&&!P,scrollableY:D&&P,centered:u&&!D,scrollButtonsHideMobile:!p},z=Bfe(B),N=ic({elementType:x.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:B}),R=ic({elementType:x.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:B}),[q,Y]=ge.useState(!1),[L,W]=ge.useState(C7),[H,G]=ge.useState(!1),[te,ee]=ge.useState(!1),[U,Q]=ge.useState(!1),[V,X]=ge.useState({overflow:"hidden",scrollbarWidth:0}),K=new Map,ne=ge.useRef(null),ae=ge.useRef(null),ie=()=>{const ye=ne.current;let Se;if(ye){const Le=ye.getBoundingClientRect();Se={clientWidth:ye.clientWidth,scrollLeft:ye.scrollLeft,scrollTop:ye.scrollTop,scrollWidth:ye.scrollWidth,top:Le.top,bottom:Le.bottom,left:Le.left,right:Le.right}}let Ae;if(ye&&C!==!1){const Le=ae.current.children;if(Le.length>0){const Re=Le[K.get(C)];Ae=Re?Re.getBoundingClientRect():null}}return{tabsMeta:Se,tabMeta:Ae}},se=ho(()=>{const{tabsMeta:ye,tabMeta:Se}=ie();let Ae=0,Le;P?(Le="top",Se&&ye&&(Ae=Se.top-ye.top+ye.scrollTop)):(Le=i?"right":"left",Se&&ye&&(Ae=(i?-1:1)*(Se[Le]-ye[Le]+ye.scrollLeft)));const Re={[Le]:Ae,[j]:Se?Se[j]:0};if(typeof L[Le]!="number"||typeof L[j]!="number")W(Re);else{const Ie=Math.abs(L[Le]-Re[Le]),Ne=Math.abs(L[j]-Re[j]);(Ie>=1||Ne>=1)&&W(Re)}}),pe=(ye,{animation:Se=!0}={})=>{Se?Efe(E,ne.current,ye,{duration:l.transitions.duration.standard}):ne.current[E]=ye},ke=ye=>{let Se=ne.current[E];P?Se+=ye:Se+=ye*(i?-1:1),pe(Se)},Ce=()=>{const ye=ne.current[F];let Se=0;const Ae=Array.from(ae.current.children);for(let Le=0;Leye){Le===0&&(Se=ye);break}Se+=Re[F]}return Se},Oe=()=>{ke(-1*Ce())},Pe=()=>{ke(Ce())},ce=ge.useCallback(ye=>{X({overflow:null,scrollbarWidth:ye})},[]),we=()=>{const ye={};ye.scrollbarSizeListener=D?Te.jsx(Vfe,{onChange:ce,className:ln(z.scrollableX,z.hideScrollbar)}):null;const Ae=D&&(m==="auto"&&(H||te)||m===!0);return ye.scrollButtonStart=Ae?Te.jsx(v,{slots:{StartScrollButtonIcon:x.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:N},orientation:b,direction:i?"right":"left",onClick:Oe,disabled:!H,...S,className:ln(z.scrollButtons,S.className)}):null,ye.scrollButtonEnd=Ae?Te.jsx(v,{slots:{EndScrollButtonIcon:x.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:R},orientation:b,direction:i?"left":"right",onClick:Pe,disabled:!te,...S,className:ln(z.scrollButtons,S.className)}):null,ye},Z=ho(ye=>{const{tabsMeta:Se,tabMeta:Ae}=ie();if(!(!Ae||!Se)){if(Ae[I]Se[A]){const Le=Se[E]+(Ae[A]-Se[A]);pe(Le,{animation:ye})}}}),re=ho(()=>{D&&m!==!1&&Q(!U)});ge.useEffect(()=>{const ye=ug(()=>{ne.current&&se()});let Se;const Ae=Ie=>{Ie.forEach(Ne=>{Ne.removedNodes.forEach(ze=>{Se==null||Se.unobserve(ze)}),Ne.addedNodes.forEach(ze=>{Se==null||Se.observe(ze)})}),ye(),re()},Le=Ni(ne.current);Le.addEventListener("resize",ye);let Re;return typeof ResizeObserver<"u"&&(Se=new ResizeObserver(ye),Array.from(ae.current.children).forEach(Ie=>{Se.observe(Ie)})),typeof MutationObserver<"u"&&(Re=new MutationObserver(Ae),Re.observe(ae.current,{childList:!0})),()=>{ye.clear(),Le.removeEventListener("resize",ye),Re==null||Re.disconnect(),Se==null||Se.disconnect()}},[se,re]),ge.useEffect(()=>{const ye=Array.from(ae.current.children),Se=ye.length;if(typeof IntersectionObserver<"u"&&Se>0&&D&&m!==!1){const Ae=ye[0],Le=ye[Se-1],Re={root:ne.current,threshold:.99},Ie=We=>{G(!We[0].isIntersecting)},Ne=new IntersectionObserver(Ie,Re);Ne.observe(Ae);const ze=We=>{ee(!We[0].isIntersecting)},qe=new IntersectionObserver(ze,Re);return qe.observe(Le),()=>{Ne.disconnect(),qe.disconnect()}}},[D,m,U,c==null?void 0:c.length]),ge.useEffect(()=>{Y(!0)},[]),ge.useEffect(()=>{se()}),ge.useEffect(()=>{Z(C7!==L)},[Z,L]),ge.useImperativeHandle(s,()=>({updateIndicator:se,updateScrollButtons:re}),[se,re]);const de=Te.jsx(Hfe,{...w,className:ln(z.indicator,w.className),ownerState:B,style:{...L,...w.style}});let _e=0;const ue=ge.Children.map(c,ye=>{if(!ge.isValidElement(ye))return null;const Se=ye.props.value===void 0?_e:ye.props.value;K.set(Se,_e);const Ae=Se===C;return _e+=1,ge.cloneElement(ye,{fullWidth:T==="fullWidth",indicator:Ae&&!q&&de,selected:Ae,selectionFollowsFocus:y,onChange:g,textColor:k,value:Se,..._e===1&&C===!1&&!ye.props.tabIndex?{tabIndex:0}:{}})}),me=ye=>{const Se=ae.current,Ae=qa(Se).activeElement;if(Ae.getAttribute("role")!=="tab")return;let Re=b==="horizontal"?"ArrowLeft":"ArrowUp",Ie=b==="horizontal"?"ArrowRight":"ArrowDown";switch(b==="horizontal"&&i&&(Re="ArrowRight",Ie="ArrowLeft"),ye.key){case Re:ye.preventDefault(),T0(Se,Ae,k7);break;case Ie:ye.preventDefault(),T0(Se,Ae,S7);break;case"Home":ye.preventDefault(),T0(Se,null,S7);break;case"End":ye.preventDefault(),T0(Se,null,k7);break}},xe=we();return Te.jsxs(Wfe,{className:ln(z.root,d),ownerState:B,ref:n,as:f,...O,children:[xe.scrollButtonStart,xe.scrollbarSizeListener,Te.jsxs(qfe,{className:z.scroller,ownerState:B,style:{overflow:V.overflow,[P?`margin${i?"Left":"Right"}`:"marginBottom"]:M?void 0:-V.scrollbarWidth},ref:ne,children:[Te.jsx(Ufe,{"aria-label":o,"aria-labelledby":a,"aria-orientation":b==="vertical"?"vertical":null,className:z.flexContainer,ownerState:B,onKeyDown:me,ref:ae,role:"tablist",children:ue}),q&&de]}),xe.scrollButtonEnd]})});function SB(e){return gn("MuiTextField",e)}const Gfe=fn("MuiTextField",["root"]),Yfe=Gfe,Xfe={standard:ky,filled:Sy,outlined:My},Kfe=e=>{const{classes:t}=e;return vn({root:["root"]},SB,t)},Zfe=Dt(zz,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Qfe=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiTextField"}),{autoComplete:l,autoFocus:i=!1,children:o,className:a,color:s="primary",defaultValue:u,disabled:c=!1,error:d=!1,FormHelperTextProps:f,fullWidth:p=!1,helperText:h,id:g,InputLabelProps:b,inputProps:v,InputProps:m,inputRef:y,label:x,maxRows:_,minRows:w,multiline:S=!1,name:k,onBlur:C,onChange:T,onFocus:M,placeholder:O,required:D=!1,rows:P,select:E=!1,SelectProps:I,slots:A={},slotProps:F={},type:j,value:B,variant:z="outlined",...N}=r,R={...r,autoFocus:i,color:s,disabled:c,error:d,fullWidth:p,multiline:S,required:D,select:E,variant:z},q=Kfe(R),Y=ls(g),L=h&&Y?`${Y}-helper-text`:void 0,W=x&&Y?`${Y}-label`:void 0,H=Xfe[z],G={slots:A,slotProps:{input:m,inputLabel:b,htmlInput:v,formHelperText:f,select:I,...F}},te={},ee=G.slotProps.inputLabel;z==="outlined"&&(ee&&typeof ee.shrink<"u"&&(te.notched=ee.shrink),te.label=x),E&&((!I||!I.native)&&(te.id=void 0),te["aria-describedby"]=void 0);const[U,Q]=Io("input",{elementType:H,externalForwardedProps:G,additionalProps:te,ownerState:R}),[V,X]=Io("inputLabel",{elementType:Kz,externalForwardedProps:G,ownerState:R}),[K,ne]=Io("htmlInput",{elementType:"input",externalForwardedProps:G,ownerState:R}),[ae,ie]=Io("formHelperText",{elementType:Uz,externalForwardedProps:G,ownerState:R}),[se,pe]=Io("select",{elementType:Tf,externalForwardedProps:G,ownerState:R}),ke=Te.jsx(U,{"aria-describedby":L,autoComplete:l,autoFocus:i,defaultValue:u,fullWidth:p,multiline:S,name:k,rows:P,maxRows:_,minRows:w,type:j,value:B,id:Y,inputRef:y,onBlur:C,onChange:T,onFocus:M,placeholder:O,inputProps:ne,slots:{input:A.htmlInput?K:void 0},...Q});return Te.jsxs(Zfe,{className:ln(q.root,a),disabled:c,error:d,fullWidth:p,ref:n,required:D,color:s,variant:z,ownerState:R,...N,children:[x!=null&&x!==""&&Te.jsx(V,{htmlFor:Y,id:W,...X,children:x}),E?Te.jsx(se,{"aria-describedby":L,id:Y,labelId:W,value:B,input:ke,...pe,children:o}):ke,h&&Te.jsx(ae,{id:L,...ie,children:h})]})}),Jfe=Qfe,epe=Object.freeze(Object.defineProperty({__proto__:null,default:Jfe,getTextFieldUtilityClass:SB,textFieldClasses:Yfe},Symbol.toStringTag,{value:"Module"})),{transitions:Kc}=Sc(),gp="#ed0500",tpe=Sc({cssVariables:{colorSchemeSelector:"class"},colorSchemes:{light:{palette:{text:{primary:"#09090b"},primary:{main:"#09090b",light:cv[200]},secondary:{main:gp,dark:"#c10400",light:cv[200]}}},dark:{palette:{text:{primary:"#fafafa"},primary:{main:"#fafafa",light:cv[900]},secondary:{main:gp}}}},shape:{borderRadius:5},components:{MuiInputBase:{styleOverrides:{input:{"&:-webkit-autofill":{transitionDelay:"9999s",transitionProperty:"background-color, box-shadow, color"}}}},MuiLink:{styleOverrides:{root:{transition:Kc.create("color",{duration:Kc.duration.enteringScreen}),"&:hover":{color:gp}}}},MuiTabs:{styleOverrides:{flexContainer:{gap:"10px"},indicator:{backgroundColor:gp}}},MuiTab:{defaultProps:{color:"secondary"},styleOverrides:{root:{fontSize:"1rem",borderRadius:"5px"}}},MuiIconButton:{styleOverrides:{root:{transition:Kc.create("color",{duration:Kc.duration.enteringScreen}),color:"inherit","&:hover":{color:gp}}}},MuiSwitch:{defaultProps:{color:"secondary"}},MuiToggleButton:{defaultProps:{color:"secondary"},styleOverrides:{root:{transition:Kc.create("color",{duration:Kc.duration.enteringScreen}),color:"inherit","&.Mui-disabled":{border:"unset"}}}},MuiLinearProgress:{defaultProps:{color:"secondary"}},MuiPaper:{defaultProps:{sx:{border:"1px solid",borderColor:e=>e.palette.divider}},styleOverrides:{root:{boxShadow:"unset"}}}},typography:{fontFamily:["-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),button:{fontWeight:"bold",textTransform:"none"}}}),M7=kr(Te.jsx("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"}),"DarkMode"),P7=kr(Te.jsx("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"}),"LightMode"),hg=()=>{const{mode:e}=QM(),t=vb("(prefers-color-scheme: dark)");return!e||e==="system"?t?"dark":"light":e},v5=()=>{const e=hg();return ge.useMemo(()=>e==="dark"?{tooltip:{container:{background:"#000",color:"#fff"}}}:void 0,[e])},npe=()=>{const{mode:e,setMode:t}=QM(),n=hg(),[r,l]=ge.useState(null),i=u=>l(u.currentTarget),o=()=>l(null),a=!!r,s=a?"simple-popover":void 0;return e?Te.jsxs("div",{children:[Te.jsx(Fo,{"aria-describedby":s,onClick:i,children:n==="dark"?Te.jsx(M7,{}):Te.jsx(P7,{})}),Te.jsx(Ab,{id:s,open:a,anchorEl:r,onClose:o,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:Te.jsxs(Tf,{size:"small",value:e,onChange:u=>{t(u.target.value),o()},children:[Te.jsx(Yh,{value:"system",children:"System"}),Te.jsx(Yh,{value:"light",children:"Light"}),Te.jsx(Yh,{value:"dark",children:"Dark"})]})})]}):Te.jsx(Fo,{"aria-describedby":s,children:n==="dark"?Te.jsx(M7,{}):Te.jsx(P7,{})})};class rpe{constructor(t){Cs(this,"cachedGraphs");Cs(this,"cachedWidgets");Cs(this,"inner");this.inner=t,this.cachedGraphs=new Map,this.cachedWidgets=new Map}async getAdditionGraphData(t){let n=this.cachedGraphs.get(t);return n!==void 0||(n=await this.inner.getAdditionGraphData(t),this.cachedGraphs.set(t,n)),n}async getAdditionWidgetData(t){let n=this.cachedWidgets.get(t);return n!==void 0||(n=await this.inner.getAdditionWidgetData(t),this.cachedWidgets.set(t,n)),n}}const y5=Ke.createContext({getAdditionGraphData:()=>new Promise((e,t)=>t("default context doesn't contain methods to get data")),getAdditionWidgetData:()=>new Promise((e,t)=>t("default context doesn't contain methods to get data"))});function ape(e){return new rpe(e)}var xv=(e=>(e[e.Small=0]="Small",e[e.Medium=1]="Medium",e[e.Big=2]="Big",e))(xv||{}),kB={exports:{}};(function(e,t){/*! For license information please see plotly-cartesian.min.js.LICENSE.txt */(function(n,r){e.exports=r()})(self,function(){return function(){var n={98847:function(i,o,a){var s=a(71828),u={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var c in u){var d=c.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");s.addStyleRule(d,u[c])}},98222:function(i,o,a){i.exports=a(82887)},27206:function(i,o,a){i.exports=a(60822)},5224:function(i,o,a){i.exports=a(83832)},59509:function(i,o,a){i.exports=a(72201)},49866:function(i,o,a){i.exports=a(99442)},19548:function(i,o,a){i.exports=a(8729)},61039:function(i,o,a){i.exports=a(14382)},24296:function(i,o,a){i.exports=a(43102)},58872:function(i,o,a){i.exports=a(92165)},65591:function(i,o,a){i.exports=a(36071)},69738:function(i,o,a){i.exports=a(43905)},92650:function(i,o,a){i.exports=a(35902)},73434:function(i,o,a){i.exports=a(94507)},760:function(i,o,a){var s=a(19548);s.register([a(27206),a(5224),a(58872),a(65591),a(69738),a(92650),a(49866),a(25743),a(6197),a(73434),a(54201),a(98222),a(61039),a(24296),a(66398),a(59509)]),i.exports=s},54201:function(i,o,a){i.exports=a(58810)},25743:function(i,o,a){i.exports=a(52979)},66398:function(i,o,a){i.exports=a(32275)},6197:function(i,o,a){i.exports=a(47462)},82884:function(i){i.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},50215:function(i,o,a){var s=a(82884),u=a(41940),c=a(85555),d=a(44467).templatedArray;a(24695),i.exports=d("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:u({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:s.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:s.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",c.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",c.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",c.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",c.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:u({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},3749:function(i,o,a){var s=a(71828),u=a(89298),c=a(92605).draw;function d(p){var h=p._fullLayout;s.filterVisible(h.annotations).forEach(function(g){var b=u.getFromId(p,g.xref),v=u.getFromId(p,g.yref),m=u.getRefType(g.xref),y=u.getRefType(g.yref);g._extremes={},m==="range"&&f(g,b),y==="range"&&f(g,v)})}function f(p,h){var g,b=h._id,v=b.charAt(0),m=p[v],y=p["a"+v],x=p[v+"ref"],_=p["a"+v+"ref"],w=p["_"+v+"padplus"],S=p["_"+v+"padminus"],k={x:1,y:-1}[v]*p[v+"shift"],C=3*p.arrowsize*p.arrowwidth||0,T=C+k,M=C-k,O=3*p.startarrowsize*p.arrowwidth||0,D=O+k,P=O-k;if(_===x){var E=u.findExtremes(h,[h.r2c(m)],{ppadplus:T,ppadminus:M}),I=u.findExtremes(h,[h.r2c(y)],{ppadplus:Math.max(w,D),ppadminus:Math.max(S,P)});g={min:[E.min[0],I.min[0]],max:[E.max[0],I.max[0]]}}else D=y?D+y:D,P=y?P-y:P,g=u.findExtremes(h,[h.r2c(m)],{ppadplus:Math.max(w,T,D),ppadminus:Math.max(S,M,P)});p._extremes[b]=g}i.exports=function(p){var h=p._fullLayout;if(s.filterVisible(h.annotations).length&&p._fullData.length)return s.syncOrAsync([c,d],p)}},44317:function(i,o,a){var s=a(71828),u=a(73972),c=a(44467).arrayEditor;function d(p,h){var g,b,v,m,y,x,_,w=p._fullLayout.annotations,S=[],k=[],C=[],T=(h||[]).length;for(g=0;g0||g.explicitOff.length>0},onClick:function(p,h){var g,b,v=d(p,h),m=v.on,y=v.off.concat(v.explicitOff),x={},_=p._fullLayout.annotations;if(m.length||y.length){for(g=0;g.6666666666666666?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[rt]}for(var ye=!1,Se=["x","y"],Ae=0;Ae1)&&(Ge===We?((et=ot.r2fraction(T["a"+qe]))<0||et>1)&&(ye=!0):ye=!0),Le=ot._offset+ot.r2p(T[qe]),Ne=.5}else{var ct=St==="domain";qe==="x"?(Ie=T[qe],Le=ct?ot._offset+ot._length*Ie:Le=F.l+F.w*Ie):(Ie=1-T[qe],Le=ct?ot._offset+ot._length*Ie:Le=F.t+F.h*Ie),Ne=T.showarrow?.5:Ie}if(T.showarrow){it.head=Le;var ht=T["a"+qe];if(ze=st*xe(.5,T.xanchor)-bt*xe(.5,T.yanchor),Ge===We){var $t=p.getRefType(Ge);$t==="domain"?(qe==="y"&&(ht=1-ht),it.tail=ot._offset+ot._length*ht):$t==="paper"?qe==="y"?(ht=1-ht,it.tail=F.t+F.h*ht):it.tail=F.l+F.w*ht:it.tail=ot._offset+ot.r2p(ht),Re=ze}else it.tail=Le+ht,Re=ze+ht;it.text=it.tail+ze;var kt=A[qe==="x"?"width":"height"];if(We==="paper"&&(it.head=d.constrain(it.head,1,kt-1)),Ge==="pixel"){var Wt=-Math.max(it.tail-3,it.text),wt=Math.min(it.tail+3,it.text)-kt;Wt>0?(it.tail+=Wt,it.text+=Wt):wt>0&&(it.tail-=wt,it.text-=wt)}it.tail+=tt,it.head+=tt}else Re=ze=Be*xe(Ne,je),it.text=Le+ze;it.text+=tt,ze+=tt,Re+=tt,T["_"+qe+"padplus"]=Be/2+Re,T["_"+qe+"padminus"]=Be/2-Re,T["_"+qe+"size"]=Be,T["_"+qe+"shift"]=ze}if(ye)ee.remove();else{var be=0,Me=0;if(T.align!=="left"&&(be=(de-Z)*(T.align==="center"?.5:1)),T.valign!=="top"&&(Me=(_e-re)*(T.valign==="middle"?.5:1)),ce)Pe.select("svg").attr({x:V+be-1,y:V+Me}).call(g.setClipUrl,K?q:null,C);else{var Ve=V+Me-we.top,Ue=V+be-we.left;se.call(v.positionText,Ue,Ve).call(g.setClipUrl,K?q:null,C)}ne.select("rect").call(g.setRect,V,V,de,_e),X.call(g.setRect,U/2,U/2,ue-U,me-U),ee.call(g.setTranslate,Math.round(Y.x.text-ue/2),Math.round(Y.y.text-me/2)),H.attr({transform:"rotate("+L+","+Y.x.text+","+Y.y.text+")"});var Ze,Ye=function(Qe,rt){W.selectAll(".annotation-arrow-g").remove();var ut=Y.x.head,gt=Y.y.head,nt=Y.x.tail+Qe,Nt=Y.y.tail+rt,Gt=Y.x.text+Qe,Ct=Y.y.text+rt,Ft=d.rotationXYMatrix(L,Gt,Ct),Et=d.apply2DTransform(Ft),mt=d.apply2DTransform2(Ft),pt=+X.attr("width"),yt=+X.attr("height"),qt=Gt-.5*pt,Rt=qt+pt,jt=Ct-.5*yt,Tt=jt+yt,Pt=[[qt,jt,qt,Tt],[qt,Tt,Rt,Tt],[Rt,Tt,Rt,jt],[Rt,jt,qt,jt]].map(mt);if(!Pt.reduce(function(cn,hn){return cn^!!d.segmentsIntersect(ut,gt,ut+1e6,gt+1e6,hn[0],hn[1],hn[2],hn[3])},!1)){Pt.forEach(function(cn){var hn=d.segmentsIntersect(nt,Nt,ut,gt,cn[0],cn[1],cn[2],cn[3]);hn&&(nt=hn.x,Nt=hn.y)});var Ot=T.arrowwidth,It=T.arrowcolor,Lt=T.arrowside,zt=W.append("g").style({opacity:h.opacity(It)}).classed("annotation-arrow-g",!0),Xt=zt.append("path").attr("d","M"+nt+","+Nt+"L"+ut+","+gt).style("stroke-width",Ot+"px").call(h.stroke,h.rgb(It));if(_(Xt,Lt,T),j.annotationPosition&&Xt.node().parentNode&&!O){var Kt=ut,Bt=gt;if(T.standoff){var Ut=Math.sqrt(Math.pow(ut-nt,2)+Math.pow(gt-Nt,2));Kt+=T.standoff*(nt-ut)/Ut,Bt+=T.standoff*(Nt-gt)/Ut}var on,yn,pn=zt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(nt-Kt)+","+(Nt-Bt),transform:f(Kt,Bt)}).style("stroke-width",Ot+6+"px").call(h.stroke,"rgba(0,0,0,0)").call(h.fill,"rgba(0,0,0,0)");y.init({element:pn.node(),gd:C,prepFn:function(){var cn=g.getTranslate(ee);on=cn.x,yn=cn.y,D&&D.autorange&&z(D._name+".autorange",!0),P&&P.autorange&&z(P._name+".autorange",!0)},moveFn:function(cn,hn){var Jt=Et(on,yn),_n=Jt[0]+cn,sn=Jt[1]+hn;ee.call(g.setTranslate,_n,sn),N("x",S(D,cn,"x",F,T)),N("y",S(P,hn,"y",F,T)),T.axref===T.xref&&N("ax",S(D,cn,"ax",F,T)),T.ayref===T.yref&&N("ay",S(P,hn,"ay",F,T)),zt.attr("transform",f(cn,hn)),H.attr({transform:"rotate("+L+","+_n+","+sn+")"})},doneFn:function(){u.call("_guiRelayout",C,R());var cn=document.querySelector(".js-notes-box-panel");cn&&cn.redraw(cn.selectedObj)}})}}};T.showarrow&&Ye(0,0),G&&y.init({element:ee.node(),gd:C,prepFn:function(){Ze=H.attr("transform")},moveFn:function(Qe,rt){var ut="pointer";if(T.showarrow)T.axref===T.xref?N("ax",S(D,Qe,"ax",F,T)):N("ax",T.ax+Qe),T.ayref===T.yref?N("ay",S(P,rt,"ay",F.w,T)):N("ay",T.ay+rt),Ye(Qe,rt);else{if(O)return;var gt,nt;if(D)gt=S(D,Qe,"x",F,T);else{var Nt=T._xsize/F.w,Gt=T.x+(T._xshift-T.xshift)/F.w-Nt/2;gt=y.align(Gt+Qe/F.w,Nt,0,1,T.xanchor)}if(P)nt=S(P,rt,"y",F,T);else{var Ct=T._ysize/F.h,Ft=T.y-(T._yshift+T.yshift)/F.h-Ct/2;nt=y.align(Ft-rt/F.h,Ct,0,1,T.yanchor)}N("x",gt),N("y",nt),D&&P||(ut=y.getCursor(D?.5:gt,P?.5:nt,T.xanchor,T.yanchor))}H.attr({transform:f(Qe,rt)+Ze}),m(ee,ut)},clickFn:function(Qe,rt){T.captureevents&&C.emit("plotly_clickannotation",pe(rt))},doneFn:function(){m(ee),u.call("_guiRelayout",C,R());var Qe=document.querySelector(".js-notes-box-panel");Qe&&Qe.redraw(Qe.selectedObj)}})}}}i.exports={draw:function(C){var T=C._fullLayout;T._infolayer.selectAll(".annotation").remove();for(var M=0;M=0,O=b.indexOf("end")>=0,D=S.backoff*C+v.standoff,P=k.backoff*T+v.startstandoff;if(w.nodeName==="line"){m={x:+g.attr("x1"),y:+g.attr("y1")},y={x:+g.attr("x2"),y:+g.attr("y2")};var E=m.x-y.x,I=m.y-y.y;if(_=(x=Math.atan2(I,E))+Math.PI,D&&P&&D+P>Math.sqrt(E*E+I*I))return void W();if(D){if(D*D>E*E+I*I)return void W();var A=D*Math.cos(x),F=D*Math.sin(x);y.x+=A,y.y+=F,g.attr({x2:y.x,y2:y.y})}if(P){if(P*P>E*E+I*I)return void W();var j=P*Math.cos(x),B=P*Math.sin(x);m.x-=j,m.y-=B,g.attr({x1:m.x,y1:m.y})}}else if(w.nodeName==="path"){var z=w.getTotalLength(),N="";if(z1){v=!0;break}}v?d.fullLayout._infolayer.select(".annotation-"+d.id+'[data-index="'+g+'"]').remove():(b._pdata=u(d.glplot.cameraParams,[f.xaxis.r2l(b.x)*p[0],f.yaxis.r2l(b.y)*p[1],f.zaxis.r2l(b.z)*p[2]]),s(d.graphDiv,b,g,d.id,b._xa,b._ya))}}},2468:function(i,o,a){var s=a(73972),u=a(71828);i.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:a(26997)}}},layoutAttributes:a(26997),handleDefaults:a(20226),includeBasePlot:function(c,d){var f=s.subplotsRegistry.gl3d;if(f)for(var p=f.attrRegex,h=Object.keys(c),g=0;g=0)))return b;if(_===3)y[_]>1&&(y[_]=1);else if(y[_]>=1)return b}var w=Math.round(255*y[0])+", "+Math.round(255*y[1])+", "+Math.round(255*y[2]);return x?"rgba("+w+", "+y[3]+")":"rgb("+w+")"}d.tinyRGB=function(b){var v=b.toRgb();return"rgb("+Math.round(v.r)+", "+Math.round(v.g)+", "+Math.round(v.b)+")"},d.rgb=function(b){return d.tinyRGB(s(b))},d.opacity=function(b){return b?s(b).getAlpha():0},d.addOpacity=function(b,v){var m=s(b).toRgb();return"rgba("+Math.round(m.r)+", "+Math.round(m.g)+", "+Math.round(m.b)+", "+v+")"},d.combine=function(b,v){var m=s(b).toRgb();if(m.a===1)return s(b).toRgbString();var y=s(v||h).toRgb(),x=y.a===1?y:{r:255*(1-y.a)+y.r*y.a,g:255*(1-y.a)+y.g*y.a,b:255*(1-y.a)+y.b*y.a},_={r:x.r*(1-m.a)+m.r*m.a,g:x.g*(1-m.a)+m.g*m.a,b:x.b*(1-m.a)+m.b*m.a};return s(_).toRgbString()},d.contrast=function(b,v,m){var y=s(b);return y.getAlpha()!==1&&(y=s(d.combine(b,h))),(y.isDark()?v?y.lighten(v):h:m?y.darken(m):p).toString()},d.stroke=function(b,v){var m=s(v);b.style({stroke:d.tinyRGB(m),"stroke-opacity":m.getAlpha()})},d.fill=function(b,v){var m=s(v);b.style({fill:d.tinyRGB(m),"fill-opacity":m.getAlpha()})},d.clean=function(b){if(b&&typeof b=="object"){var v,m,y,x,_=Object.keys(b);for(v=0;v<_.length;v++)if(x=b[y=_[v]],y.substr(y.length-5)==="color")if(Array.isArray(x))for(m=0;m0?wt>=Ze:wt<=Ze));be++)wt>Qe&&wt0?wt>=Ze:wt<=Ze));be++)wt>Wt[0]&&wt1){var bt=Math.pow(10,Math.floor(Math.log(st)/Math.LN10));ot*=bt*h.roundUp(st/bt,[2,5,10]),(Math.abs(Z.start)/Z.size+1e-6)%1<2e-6&&(We.tick0=0)}We.dtick=ot}We.domain=R?[ze+V/se.h,ze+ye-V/se.h]:[ze+Q/se.w,ze+ye-Q/se.w],We.setScale(),B.attr("transform",g(Math.round(se.l),Math.round(se.t)));var Be,je=B.select("."+P.cbtitleunshift).attr("transform",g(-Math.round(se.l),-Math.round(se.t))),tt=We.ticklabelposition,it=We.title.font.size,St=B.select("."+P.cbaxis),et=0,ct=0;function ht($t,kt){var Wt={propContainer:We,propName:z._propPrefix+"title",traceIndex:z._traceIndex,_meta:z._meta,placeholder:ie._dfltTitle.colorbar,containerGroup:B.select("."+P.cbtitle)},wt=$t.charAt(0)==="h"?$t.substr(1):"h"+$t;B.selectAll("."+wt+",."+wt+"-math-group").remove(),x.draw(N,$t,b(Wt,kt||{}))}return h.syncOrAsync([c.previousPromises,function(){var $t,kt;(R&&Ge||!R&&!Ge)&&(Oe==="top"&&($t=Q+se.l+Se*X,kt=V+se.t+Ae*(1-ze-ye)+3+.75*it),Oe==="bottom"&&($t=Q+se.l+Se*X,kt=V+se.t+Ae*(1-ze)-3-.25*it),Oe==="right"&&(kt=V+se.t+Ae*K+3+.75*it,$t=Q+se.l+Se*ze),ht(We._id+"title",{attributes:{x:$t,y:kt,"text-anchor":R?"start":"middle"}}))},function(){if(!R&&!Ge||R&&Ge){var $t,kt=B.select("."+P.cbtitle),Wt=kt.select("text"),wt=[-H/2,H/2],be=kt.select(".h"+We._id+"title-math-group").node(),Me=15.6;if(Wt.node()&&(Me=parseInt(Wt.node().style.fontSize,10)*M),be?($t=m.bBox(be),ct=$t.width,(et=$t.height)>Me&&(wt[1]-=(et-Me)/2)):Wt.node()&&!Wt.classed(P.jsPlaceholder)&&($t=m.bBox(Wt.node()),ct=$t.width,et=$t.height),R){if(et){if(et+=5,Oe==="top")We.domain[1]-=et/se.h,wt[1]*=-1;else{We.domain[0]+=et/se.h;var Ve=_.lineCount(Wt);wt[1]+=(1-Ve)*Me}kt.attr("transform",g(wt[0],wt[1])),We.setScale()}}else ct&&(Oe==="right"&&(We.domain[0]+=(ct+it/2)/se.w),kt.attr("transform",g(wt[0],wt[1])),We.setScale())}B.selectAll("."+P.cbfills+",."+P.cblines).attr("transform",R?g(0,Math.round(se.h*(1-We.domain[1]))):g(Math.round(se.w*We.domain[0]),0)),St.attr("transform",R?g(0,Math.round(-se.t)):g(Math.round(-se.l),0));var Ue=B.select("."+P.cbfills).selectAll("rect."+P.cbfill).attr("style","").data(de);Ue.enter().append("rect").classed(P.cbfill,!0).attr("style",""),Ue.exit().remove();var Ze=Pe.map(We.c2p).map(Math.round).sort(function(gt,nt){return gt-nt});Ue.each(function(gt,nt){var Nt=[nt===0?Pe[0]:(de[nt]+de[nt-1])/2,nt===de.length-1?Pe[1]:(de[nt]+de[nt+1])/2].map(We.c2p).map(Math.round);R&&(Nt[1]=h.constrain(Nt[1]+(Nt[1]>Nt[0])?1:-1,Ze[0],Ze[1]));var Gt=s.select(this).attr(R?"x":"y",Le).attr(R?"y":"x",s.min(Nt)).attr(R?"width":"height",Math.max(ue,2)).attr(R?"height":"width",Math.max(s.max(Nt)-s.min(Nt),2));if(z._fillgradient)m.gradient(Gt,N,z._id,R?"vertical":"horizontalreversed",z._fillgradient,"fill");else{var Ct=we(gt).replace("e-","");Gt.attr("fill",u(Ct).toHexString())}});var Ye=B.select("."+P.cblines).selectAll("path."+P.cbline).data(ke.color&&ke.width?_e:[]);Ye.enter().append("path").classed(P.cbline,!0),Ye.exit().remove(),Ye.each(function(gt){var nt=Le,Nt=Math.round(We.c2p(gt))+ke.width/2%1;s.select(this).attr("d","M"+(R?nt+","+Nt:Nt+","+nt)+(R?"h":"v")+ue).call(m.lineGroupStyle,ke.width,ce(gt),ke.dash)}),St.selectAll("g."+We._id+"tick,path").remove();var Qe=Le+ue+(H||0)/2-(z.ticks==="outside"?1:0),rt=f.calcTicks(We),ut=f.getTickSigns(We)[2];return f.drawTicks(N,We,{vals:We.ticks==="inside"?f.clipEnds(We,rt):rt,layer:St,path:f.makeTickPath(We,Qe,ut),transFn:f.makeTransTickFn(We)}),f.drawLabels(N,We,{vals:rt,layer:St,transFn:f.makeTransTickLabelFn(We),labelFns:f.makeLabelFns(We,Qe)})},function(){if(R&&!Ge||!R&&Ge){var $t,kt,Wt=We.position||0,wt=We._offset+We._length/2;if(Oe==="right")kt=wt,$t=se.l+Se*Wt+10+it*(We.showticklabels?1:.5);else if($t=wt,Oe==="bottom"&&(kt=se.t+Ae*Wt+10+(tt.indexOf("inside")===-1?We.tickfont.size:0)+(We.ticks!=="intside"&&z.ticklen||0)),Oe==="top"){var be=Ce.text.split("
").length;kt=se.t+Ae*Wt+10-ue-M*it*be}ht((R?"h":"v")+We._id+"title",{avoid:{selection:s.select(N).selectAll("g."+We._id+"tick"),side:Oe,offsetTop:R?0:se.t,offsetLeft:R?se.l:0,maxShift:R?ie.width:ie.height},attributes:{x:$t,y:kt,"text-anchor":"middle"},transform:{rotate:R?-90:0,offset:0}})}},c.previousPromises,function(){var $t,kt=ue+H/2;tt.indexOf("inside")===-1&&($t=m.bBox(St.node()),kt+=R?$t.width:$t.height),Be=je.select("text");var Wt=0,wt=R&&Oe==="top",be=!R&&Oe==="right",Me=0;if(Be.node()&&!Be.classed(P.jsPlaceholder)){var Ve,Ue=je.select(".h"+We._id+"title-math-group").node();Ue&&(R&&Ge||!R&&!Ge)?(Wt=($t=m.bBox(Ue)).width,Ve=$t.height):(Wt=($t=m.bBox(je.node())).right-se.l-(R?Le:qe),Ve=$t.bottom-se.t-(R?qe:Le),R||Oe!=="top"||(kt+=$t.height,Me=$t.height)),be&&(Be.attr("transform",g(Wt/2+it/2,0)),Wt*=2),kt=Math.max(kt,R?Wt:Ve)}var Ze=2*(R?Q:V)+kt+G+H/2,Ye=0;!R&&Ce.text&&U==="bottom"&&K<=0&&(Ze+=Ye=Ze/2,Me+=Ye),ie._hColorbarMoveTitle=Ye,ie._hColorbarMoveCBTitle=Me;var Qe=G+H,rt=(R?Le:qe)-Qe/2-(R?Q:0),ut=(R?qe:Le)-(R?xe:V+Me-Ye);B.select("."+P.cbbg).attr("x",rt).attr("y",ut).attr(R?"width":"height",Math.max(Ze-Ye,2)).attr(R?"height":"width",Math.max(xe+Qe,2)).call(y.fill,te).call(y.stroke,z.bordercolor).style("stroke-width",G);var gt=be?Math.max(Wt-10,0):0;B.selectAll("."+P.cboutline).attr("x",(R?Le:qe+Q)+gt).attr("y",(R?qe+V-xe:Le)+(wt?et:0)).attr(R?"width":"height",Math.max(ue,2)).attr(R?"height":"width",Math.max(xe-(R?2*V+et:2*Q+gt),2)).call(y.stroke,z.outlinecolor).style({fill:"none","stroke-width":H});var nt=R?Re*Ze:0,Nt=R?0:(1-Ie)*Ze-Me;if(nt=ae?se.l-nt:-nt,Nt=ne?se.t-Nt:-Nt,B.attr("transform",g(nt,Nt)),!R&&(G||u(te).getAlpha()&&!u.equals(ie.paper_bgcolor,te))){var Gt=St.selectAll("text"),Ct=Gt[0].length,Ft=B.select("."+P.cbbg).node(),Et=m.bBox(Ft),mt=m.getTranslate(B);Gt.each(function(Lt,zt){var Xt=Ct-1;if(zt===0||zt===Xt){var Kt,Bt=m.bBox(this),Ut=m.getTranslate(this);if(zt===Xt){var on=Bt.right+Ut.x;(Kt=Et.right+mt.x+qe-G-2+X-on)>0&&(Kt=0)}else if(zt===0){var yn=Bt.left+Ut.x;(Kt=Et.left+mt.x+qe+G+2-yn)<0&&(Kt=0)}Kt&&(Ct<3?this.setAttribute("transform","translate("+Kt+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var pt={},yt=O[ee],qt=D[ee],Rt=O[U],jt=D[U],Tt=Ze-ue;R?(Y==="pixels"?(pt.y=K,pt.t=xe*Rt,pt.b=xe*jt):(pt.t=pt.b=0,pt.yt=K+q*Rt,pt.yb=K-q*jt),W==="pixels"?(pt.x=X,pt.l=Ze*yt,pt.r=Ze*qt):(pt.l=Tt*yt,pt.r=Tt*qt,pt.xl=X-L*yt,pt.xr=X+L*qt)):(Y==="pixels"?(pt.x=X,pt.l=xe*yt,pt.r=xe*qt):(pt.l=pt.r=0,pt.xl=X+q*yt,pt.xr=X-q*qt),W==="pixels"?(pt.y=1-K,pt.t=Ze*Rt,pt.b=Ze*jt):(pt.t=Tt*Rt,pt.b=Tt*jt,pt.yt=K-L*Rt,pt.yb=K+L*jt));var Pt=z.y<.5?"b":"t",Ot=z.x<.5?"l":"r";N._fullLayout._reservedMargin[z._id]={};var It={r:ie.width-rt-nt,l:rt+pt.r,b:ie.height-ut-Nt,t:ut+pt.b};ae&&ne?c.autoMargin(N,z._id,pt):ae?N._fullLayout._reservedMargin[z._id][Pt]=It[Pt]:ne||R?N._fullLayout._reservedMargin[z._id][Ot]=It[Ot]:N._fullLayout._reservedMargin[z._id][Pt]=It[Pt]}],N)}(F,A,E);j&&j.then&&(E._promises||[]).push(j),E._context.edits.colorbarPosition&&function(B,z,N){var R,q,Y,L=z.orientation==="v",W=N._fullLayout._size;p.init({element:B.node(),gd:N,prepFn:function(){R=B.attr("transform"),v(B)},moveFn:function(H,G){B.attr("transform",R+g(H,G)),q=p.align((L?z._uFrac:z._vFrac)+H/W.w,L?z._thickFrac:z._lenFrac,0,1,z.xanchor),Y=p.align((L?z._vFrac:1-z._uFrac)-G/W.h,L?z._lenFrac:z._thickFrac,0,1,z.yanchor);var te=p.getCursor(q,Y,z.xanchor,z.yanchor);v(B,te)},doneFn:function(){if(v(B),q!==void 0&&Y!==void 0){var H={};H[z._propPrefix+"x"]=q,H[z._propPrefix+"y"]=Y,z._traceIndex!==void 0?d.call("_guiRestyle",N,H,z._traceIndex):d.call("_guiRelayout",N,H)}}})}(F,A,E)}),I.exit().each(function(A){c.autoMargin(E,A._id)}).remove(),I.order()}}},76228:function(i,o,a){var s=a(71828);i.exports=function(u){return s.isPlainObject(u.colorbar)}},12311:function(i,o,a){i.exports={moduleType:"component",name:"colorbar",attributes:a(63583),supplyDefaults:a(62499),draw:a(98981).draw,hasColorbar:a(76228)}},50693:function(i,o,a){var s=a(63583),u=a(30587).counter,c=a(78607),d=a(63282).scales;function f(p){return"`"+p+"`"}c(d),i.exports=function(p,h){p=p||"";var g,b=(h=h||{}).cLetter||"c",v=("onlyIfNumerical"in h&&h.onlyIfNumerical,"noScale"in h?h.noScale:p==="marker.line"),m="showScaleDflt"in h?h.showScaleDflt:b==="z",y=typeof h.colorscaleDflt=="string"?d[h.colorscaleDflt]:null,x=h.editTypeOverride||"",_=p?p+".":"";"colorAttr"in h?(g=h.colorAttr,h.colorAttr):f(_+(g={z:"z",c:"color"}[b]));var w=b+"auto",S=b+"min",k=b+"max",C=b+"mid",T={};T[S]=T[k]=void 0;var M={};M[w]=!1;var O={};return g==="color"&&(O.color={valType:"color",arrayOk:!0,editType:x||"style"},h.anim&&(O.color.anim=!0)),O[w]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:T},O[S]={valType:"number",dflt:null,editType:x||"plot",impliedEdits:M},O[k]={valType:"number",dflt:null,editType:x||"plot",impliedEdits:M},O[C]={valType:"number",dflt:null,editType:"calc",impliedEdits:T},O.colorscale={valType:"colorscale",editType:"calc",dflt:y,impliedEdits:{autocolorscale:!1}},O.autocolorscale={valType:"boolean",dflt:h.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},O.reversescale={valType:"boolean",dflt:!1,editType:"plot"},v||(O.showscale={valType:"boolean",dflt:m,editType:"calc"},O.colorbar=s),h.noColorAxis||(O.coloraxis={valType:"subplotid",regex:u("coloraxis"),dflt:null,editType:"calc"}),O}},78803:function(i,o,a){var s=a(92770),u=a(71828),c=a(52075).extractOpts;i.exports=function(d,f,p){var h,g=d._fullLayout,b=p.vals,v=p.containerStr,m=v?u.nestedProperty(f,v).get():f,y=c(m),x=y.auto!==!1,_=y.min,w=y.max,S=y.mid,k=function(){return u.aggNums(Math.min,null,b)},C=function(){return u.aggNums(Math.max,null,b)};_===void 0?_=k():x&&(_=m._colorAx&&s(_)?Math.min(_,k()):k()),w===void 0?w=C():x&&(w=m._colorAx&&s(w)?Math.max(w,C()):C()),x&&S!==void 0&&(w-S>S-_?_=S-(w-S):w-S=0?g.colorscale.sequential:g.colorscale.sequentialminus,y._sync("colorscale",h))}},33046:function(i,o,a){var s=a(71828),u=a(52075).hasColorscale,c=a(52075).extractOpts;i.exports=function(d,f){function p(x,_){var w=x["_"+_];w!==void 0&&(x[_]=w)}function h(x,_){var w=_.container?s.nestedProperty(x,_.container).get():x;if(w)if(w.coloraxis)w._colorAx=f[w.coloraxis];else{var S=c(w),k=S.auto;(k||S.min===void 0)&&p(w,_.min),(k||S.max===void 0)&&p(w,_.max),S.autocolorscale&&p(w,"colorscale")}}for(var g=0;g=0;k--,C++){var T=_[k];S[C]=[1-T[0],T[1]]}return S}function y(_,w){w=w||{};for(var S=_.domain,k=_.range,C=k.length,T=new Array(C),M=0;M1.3333333333333333-p?f:p}},70461:function(i,o,a){var s=a(71828),u=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];i.exports=function(c,d,f,p){return c=f==="left"?0:f==="center"?1:f==="right"?2:s.constrain(Math.floor(3*c),0,2),d=p==="bottom"?0:p==="middle"?1:p==="top"?2:s.constrain(Math.floor(3*d),0,2),u[d][c]}},64505:function(i,o){o.selectMode=function(a){return a==="lasso"||a==="select"},o.drawMode=function(a){return a==="drawclosedpath"||a==="drawopenpath"||a==="drawline"||a==="drawrect"||a==="drawcircle"},o.openMode=function(a){return a==="drawline"||a==="drawopenpath"},o.rectMode=function(a){return a==="select"||a==="drawline"||a==="drawrect"||a==="drawcircle"},o.freeMode=function(a){return a==="lasso"||a==="drawclosedpath"||a==="drawopenpath"},o.selectingOrDrawing=function(a){return o.freeMode(a)||o.rectMode(a)}},28569:function(i,o,a){var s=a(48956),u=a(57035),c=a(38520),d=a(71828).removeElement,f=a(85555),p=i.exports={};p.align=a(92807),p.getCursor=a(70461);var h=a(26041);function g(){var v=document.createElement("div");v.className="dragcover";var m=v.style;return m.position="fixed",m.left=0,m.right=0,m.top=0,m.bottom=0,m.zIndex=999999999,m.background="none",document.body.appendChild(v),v}function b(v){return s(v.changedTouches?v.changedTouches[0]:v,document.body)}p.unhover=h.wrapped,p.unhoverRaw=h.raw,p.init=function(v){var m,y,x,_,w,S,k,C,T=v.gd,M=1,O=T._context.doubleClickDelay,D=v.element;T._mouseDownTime||(T._mouseDownTime=0),D.style.pointerEvents="all",D.onmousedown=E,c?(D._ontouchstart&&D.removeEventListener("touchstart",D._ontouchstart),D._ontouchstart=E,D.addEventListener("touchstart",E,{passive:!1})):D.ontouchstart=E;var P=v.clampFn||function(F,j,B){return Math.abs(F)O&&(M=Math.max(M-1,1)),T._dragged)v.doneFn&&v.doneFn();else if(v.clickFn&&v.clickFn(M,S),!C){var j;try{j=new MouseEvent("click",F)}catch{var B=b(F);(j=document.createEvent("MouseEvents")).initMouseEvent("click",F.bubbles,F.cancelable,F.view,F.detail,F.screenX,F.screenY,B[0],B[1],F.ctrlKey,F.altKey,F.shiftKey,F.metaKey,F.button,F.relatedTarget)}k.dispatchEvent(j)}T._dragging=!1,T._dragged=!1}else T._dragged=!1}},p.coverSlip=g},26041:function(i,o,a){var s=a(11086),u=a(79990),c=a(24401).getGraphDiv,d=a(26675),f=i.exports={};f.wrapped=function(p,h,g){(p=c(p))._fullLayout&&u.clear(p._fullLayout._uid+d.HOVERID),f.raw(p,h,g)},f.raw=function(p,h){var g=p._fullLayout,b=p._hoverdata;h||(h={}),h.target&&!p._dragged&&s.triggerHandler(p,"plotly_beforehover",h)===!1||(g._hoverlayer.selectAll("g").remove(),g._hoverlayer.selectAll("line").remove(),g._hoverlayer.selectAll("circle").remove(),p._hoverdata=void 0,h.target&&b&&p.emit("plotly_unhover",{event:h,points:b}))}},79952:function(i,o){o.P={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},o.u={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},91424:function(i,o,a){var s=a(39898),u=a(71828),c=u.numberFormat,d=a(92770),f=a(84267),p=a(73972),h=a(7901),g=a(21081),b=u.strTranslate,v=a(63893),m=a(77922),y=a(18783).LINE_SPACING,x=a(37822).DESELECTDIM,_=a(34098),w=a(39984),S=a(23469).appendArrayPointValue,k=i.exports={};function C(ce,we,Z){var re=we.fillpattern,de=re&&k.getPatternAttr(re.shape,0,"");if(de){var _e=k.getPatternAttr(re.bgcolor,0,null),ue=k.getPatternAttr(re.fgcolor,0,null),me=re.fgopacity,xe=k.getPatternAttr(re.size,0,8),ye=k.getPatternAttr(re.solidity,0,.3),Se=we.uid;k.pattern(ce,"point",Z,Se,de,xe,ye,void 0,re.fillmode,_e,ue,me)}else we.fillcolor&&ce.call(h.fill,we.fillcolor)}k.font=function(ce,we,Z,re){u.isPlainObject(we)&&(re=we.color,Z=we.size,we=we.family),we&&ce.style("font-family",we),Z+1&&ce.style("font-size",Z+"px"),re&&ce.call(h.fill,re)},k.setPosition=function(ce,we,Z){ce.attr("x",we).attr("y",Z)},k.setSize=function(ce,we,Z){ce.attr("width",we).attr("height",Z)},k.setRect=function(ce,we,Z,re,de){ce.call(k.setPosition,we,Z).call(k.setSize,re,de)},k.translatePoint=function(ce,we,Z,re){var de=Z.c2p(ce.x),_e=re.c2p(ce.y);return!!(d(de)&&d(_e)&&we.node())&&(we.node().nodeName==="text"?we.attr("x",de).attr("y",_e):we.attr("transform",b(de,_e)),!0)},k.translatePoints=function(ce,we,Z){ce.each(function(re){var de=s.select(this);k.translatePoint(re,de,we,Z)})},k.hideOutsideRangePoint=function(ce,we,Z,re,de,_e){we.attr("display",Z.isPtWithinRange(ce,de)&&re.isPtWithinRange(ce,_e)?null:"none")},k.hideOutsideRangePoints=function(ce,we){if(we._hasClipOnAxisFalse){var Z=we.xaxis,re=we.yaxis;ce.each(function(de){var _e=de[0].trace,ue=_e.xcalendar,me=_e.ycalendar,xe=p.traceIs(_e,"bar-like")?".bartext":".point,.textpoint";ce.selectAll(xe).each(function(ye){k.hideOutsideRangePoint(ye,s.select(this),Z,re,ue,me)})})}},k.crispRound=function(ce,we,Z){return we&&d(we)?ce._context.staticPlot?we:we<1?1:Math.round(we):Z||0},k.singleLineStyle=function(ce,we,Z,re,de){we.style("fill","none");var _e=(((ce||[])[0]||{}).trace||{}).line||{},ue=Z||_e.width||0,me=de||_e.dash||"";h.stroke(we,re||_e.color),k.dashLine(we,me,ue)},k.lineGroupStyle=function(ce,we,Z,re){ce.style("fill","none").each(function(de){var _e=(((de||[])[0]||{}).trace||{}).line||{},ue=we||_e.width||0,me=re||_e.dash||"";s.select(this).call(h.stroke,Z||_e.color).call(k.dashLine,me,ue)})},k.dashLine=function(ce,we,Z){Z=+Z||0,we=k.dashStyle(we,Z),ce.style({"stroke-dasharray":we,"stroke-width":Z+"px"})},k.dashStyle=function(ce,we){we=+we||1;var Z=Math.max(we,3);return ce==="solid"?ce="":ce==="dot"?ce=Z+"px,"+Z+"px":ce==="dash"?ce=3*Z+"px,"+3*Z+"px":ce==="longdash"?ce=5*Z+"px,"+5*Z+"px":ce==="dashdot"?ce=3*Z+"px,"+Z+"px,"+Z+"px,"+Z+"px":ce==="longdashdot"&&(ce=5*Z+"px,"+2*Z+"px,"+Z+"px,"+2*Z+"px"),ce},k.singleFillStyle=function(ce,we){var Z=s.select(ce.node());C(ce,((Z.data()[0]||[])[0]||{}).trace||{},we)},k.fillGroupStyle=function(ce,we){ce.style("stroke-width",0).each(function(Z){var re=s.select(this);Z[0].trace&&C(re,Z[0].trace,we)})};var T=a(90998);k.symbolNames=[],k.symbolFuncs=[],k.symbolBackOffs=[],k.symbolNeedLines={},k.symbolNoDot={},k.symbolNoFill={},k.symbolList=[],Object.keys(T).forEach(function(ce){var we=T[ce],Z=we.n;k.symbolList.push(Z,String(Z),ce,Z+100,String(Z+100),ce+"-open"),k.symbolNames[Z]=ce,k.symbolFuncs[Z]=we.f,k.symbolBackOffs[Z]=we.backoff||0,we.needLine&&(k.symbolNeedLines[Z]=!0),we.noDot?k.symbolNoDot[Z]=!0:k.symbolList.push(Z+200,String(Z+200),ce+"-dot",Z+300,String(Z+300),ce+"-open-dot"),we.noFill&&(k.symbolNoFill[Z]=!0)});var M=k.symbolNames.length;function O(ce,we,Z,re){var de=ce%100;return k.symbolFuncs[de](we,Z,re)+(ce>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}k.symbolNumber=function(ce){if(d(ce))ce=+ce;else if(typeof ce=="string"){var we=0;ce.indexOf("-open")>0&&(we=100,ce=ce.replace("-open","")),ce.indexOf("-dot")>0&&(we+=200,ce=ce.replace("-dot","")),(ce=k.symbolNames.indexOf(ce))>=0&&(ce+=we)}return ce%100>=M||ce>=400?0:Math.floor(Math.max(ce,0))};var D={x1:1,x2:0,y1:0,y2:0},P={x1:0,x2:0,y1:1,y2:0},E=c("~f"),I={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:D},horizontalreversed:{node:"linearGradient",attrs:D,reversed:!0},vertical:{node:"linearGradient",attrs:P},verticalreversed:{node:"linearGradient",attrs:P,reversed:!0}};k.gradient=function(ce,we,Z,re,de,_e){for(var ue=de.length,me=I[re],xe=new Array(ue),ye=0;ye=0&&ce.i===void 0&&(ce.i=_e.i),we.style("opacity",re.selectedOpacityFn?re.selectedOpacityFn(ce):ce.mo===void 0?ue.opacity:ce.mo),re.ms2mrc){var xe;xe=ce.ms==="various"||ue.size==="various"?3:re.ms2mrc(ce.ms),ce.mrc=xe,re.selectedSizeFn&&(xe=ce.mrc=re.selectedSizeFn(ce));var ye=k.symbolNumber(ce.mx||ue.symbol)||0;ce.om=ye%200>=100;var Se=Pe(ce,Z),Ae=V(ce,Z);we.attr("d",O(ye,xe,Se,Ae))}var Le,Re,Ie,Ne=!1;if(ce.so)Ie=me.outlierwidth,Re=me.outliercolor,Le=ue.outliercolor;else{var ze=(me||{}).width;Ie=(ce.mlw+1||ze+1||(ce.trace?(ce.trace.marker.line||{}).width:0)+1)-1||0,Re="mlc"in ce?ce.mlcc=re.lineScale(ce.mlc):u.isArrayOrTypedArray(me.color)?h.defaultLine:me.color,u.isArrayOrTypedArray(ue.color)&&(Le=h.defaultLine,Ne=!0),Le="mc"in ce?ce.mcc=re.markerScale(ce.mc):ue.color||ue.colors||"rgba(0,0,0,0)",re.selectedColorFn&&(Le=re.selectedColorFn(ce))}if(ce.om)we.call(h.stroke,Le).style({"stroke-width":(Ie||1)+"px",fill:"none"});else{we.style("stroke-width",(ce.isBlank?0:Ie)+"px");var qe=ue.gradient,We=ce.mgt;We?Ne=!0:We=qe&&qe.type,u.isArrayOrTypedArray(We)&&(We=We[0],I[We]||(We=0));var Ge=ue.pattern,ot=Ge&&k.getPatternAttr(Ge.shape,ce.i,"");if(We&&We!=="none"){var Je=ce.mgc;Je?Ne=!0:Je=qe.color;var st=Z.uid;Ne&&(st+="-"+ce.i),k.gradient(we,de,st,We,[[0,Je],[1,Le]],"fill")}else if(ot){var bt=!1,Be=Ge.fgcolor;!Be&&_e&&_e.color&&(Be=_e.color,bt=!0);var je=k.getPatternAttr(Be,ce.i,_e&&_e.color||null),tt=k.getPatternAttr(Ge.bgcolor,ce.i,null),it=Ge.fgopacity,St=k.getPatternAttr(Ge.size,ce.i,8),et=k.getPatternAttr(Ge.solidity,ce.i,.3);bt=bt||ce.mcc||u.isArrayOrTypedArray(Ge.shape)||u.isArrayOrTypedArray(Ge.bgcolor)||u.isArrayOrTypedArray(Ge.fgcolor)||u.isArrayOrTypedArray(Ge.size)||u.isArrayOrTypedArray(Ge.solidity);var ct=Z.uid;bt&&(ct+="-"+ce.i),k.pattern(we,"point",de,ct,ot,St,et,ce.mcc,Ge.fillmode,tt,je,it)}else u.isArrayOrTypedArray(Le)?h.fill(we,Le[ce.i]):h.fill(we,Le);Ie&&h.stroke(we,Re)}},k.makePointStyleFns=function(ce){var we={},Z=ce.marker;return we.markerScale=k.tryColorscale(Z,""),we.lineScale=k.tryColorscale(Z,"line"),p.traceIs(ce,"symbols")&&(we.ms2mrc=_.isBubble(ce)?w(ce):function(){return(Z.size||6)/2}),ce.selectedpoints&&u.extendFlat(we,k.makeSelectedPointStyleFns(ce)),we},k.makeSelectedPointStyleFns=function(ce){var we={},Z=ce.selected||{},re=ce.unselected||{},de=ce.marker||{},_e=Z.marker||{},ue=re.marker||{},me=de.opacity,xe=_e.opacity,ye=ue.opacity,Se=xe!==void 0,Ae=ye!==void 0;(u.isArrayOrTypedArray(me)||Se||Ae)&&(we.selectedOpacityFn=function(ot){var Je=ot.mo===void 0?de.opacity:ot.mo;return ot.selected?Se?xe:Je:Ae?ye:x*Je});var Le=de.color,Re=_e.color,Ie=ue.color;(Re||Ie)&&(we.selectedColorFn=function(ot){var Je=ot.mcc||Le;return ot.selected?Re||Je:Ie||Je});var Ne=de.size,ze=_e.size,qe=ue.size,We=ze!==void 0,Ge=qe!==void 0;return p.traceIs(ce,"symbols")&&(We||Ge)&&(we.selectedSizeFn=function(ot){var Je=ot.mrc||Ne/2;return ot.selected?We?ze/2:Je:Ge?qe/2:Je}),we},k.makeSelectedTextStyleFns=function(ce){var we={},Z=ce.selected||{},re=ce.unselected||{},de=ce.textfont||{},_e=Z.textfont||{},ue=re.textfont||{},me=de.color,xe=_e.color,ye=ue.color;return we.selectedTextColorFn=function(Se){var Ae=Se.tc||me;return Se.selected?xe||Ae:ye||(xe?Ae:h.addOpacity(Ae,x))},we},k.selectedPointStyle=function(ce,we){if(ce.size()&&we.selectedpoints){var Z=k.makeSelectedPointStyleFns(we),re=we.marker||{},de=[];Z.selectedOpacityFn&&de.push(function(_e,ue){_e.style("opacity",Z.selectedOpacityFn(ue))}),Z.selectedColorFn&&de.push(function(_e,ue){h.fill(_e,Z.selectedColorFn(ue))}),Z.selectedSizeFn&&de.push(function(_e,ue){var me=ue.mx||re.symbol||0,xe=Z.selectedSizeFn(ue);_e.attr("d",O(k.symbolNumber(me),xe,Pe(ue,we),V(ue,we))),ue.mrc2=xe}),de.length&&ce.each(function(_e){for(var ue=s.select(this),me=0;me0?Z:0}function N(ce,we,Z){return Z&&(ce=H(ce)),we?q(ce[1]):R(ce[0])}function R(ce){var we=s.round(ce,2);return A=we,we}function q(ce){var we=s.round(ce,2);return F=we,we}function Y(ce,we,Z,re){var de=ce[0]-we[0],_e=ce[1]-we[1],ue=Z[0]-we[0],me=Z[1]-we[1],xe=Math.pow(de*de+_e*_e,.25),ye=Math.pow(ue*ue+me*me,.25),Se=(ye*ye*de-xe*xe*ue)*re,Ae=(ye*ye*_e-xe*xe*me)*re,Le=3*ye*(xe+ye),Re=3*xe*(xe+ye);return[[R(we[0]+(Le&&Se/Le)),q(we[1]+(Le&&Ae/Le))],[R(we[0]-(Re&&Se/Re)),q(we[1]-(Re&&Ae/Re))]]}k.textPointStyle=function(ce,we,Z){if(ce.size()){var re;if(we.selectedpoints){var de=k.makeSelectedTextStyleFns(we);re=de.selectedTextColorFn}var _e=we.texttemplate,ue=Z._fullLayout;ce.each(function(me){var xe=s.select(this),ye=_e?u.extractOption(me,we,"txt","texttemplate"):u.extractOption(me,we,"tx","text");if(ye||ye===0){if(_e){var Se=we._module.formatLabels,Ae=Se?Se(me,we,ue):{},Le={};S(Le,we,me.i);var Re=we._meta||{};ye=u.texttemplateString(ye,Ae,ue._d3locale,Le,me,Re)}var Ie=me.tp||we.textposition,Ne=z(me,we),ze=re?re(me):me.tc||we.textfont.color;xe.call(k.font,me.tf||we.textfont.family,Ne,ze).text(ye).call(v.convertToTspans,Z).call(B,Ie,Ne,me.mrc)}else xe.remove()})}},k.selectedTextStyle=function(ce,we){if(ce.size()&&we.selectedpoints){var Z=k.makeSelectedTextStyleFns(we);ce.each(function(re){var de=s.select(this),_e=Z.selectedTextColorFn(re),ue=re.tp||we.textposition,me=z(re,we);h.fill(de,_e);var xe=p.traceIs(we,"bar-like");B(de,ue,me,re.mrc2||re.mrc,xe)})}},k.smoothopen=function(ce,we){if(ce.length<3)return"M"+ce.join("L");var Z,re="M"+ce[0],de=[];for(Z=1;Z=xe||ot>=Se&&ot<=xe)&&(Je<=Ae&&Je>=ye||Je>=Ae&&Je<=ye)&&(ce=[ot,Je])}return ce}k.steps=function(ce){var we=L[ce]||W;return function(Z){for(var re="M"+R(Z[0][0])+","+q(Z[0][1]),de=Z.length,_e=1;_e=1e4&&(k.savedBBoxes={},G=0),Z&&(k.savedBBoxes[Z]=Re),G++,u.extendFlat({},Re)},k.setClipUrl=function(ce,we,Z){ce.attr("clip-path",ee(we,Z))},k.getTranslate=function(ce){var we=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(Z,re,de){return[re,de].join(" ")}).split(" ");return{x:+we[0]||0,y:+we[1]||0}},k.setTranslate=function(ce,we,Z){var re=ce.attr?"attr":"getAttribute",de=ce.attr?"attr":"setAttribute",_e=ce[re]("transform")||"";return we=we||0,Z=Z||0,_e=_e.replace(/(\btranslate\(.*?\);?)/,"").trim(),_e=(_e+=b(we,Z)).trim(),ce[de]("transform",_e),_e},k.getScale=function(ce){var we=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(Z,re,de){return[re,de].join(" ")}).split(" ");return{x:+we[0]||1,y:+we[1]||1}},k.setScale=function(ce,we,Z){var re=ce.attr?"attr":"getAttribute",de=ce.attr?"attr":"setAttribute",_e=ce[re]("transform")||"";return we=we||1,Z=Z||1,_e=_e.replace(/(\bscale\(.*?\);?)/,"").trim(),_e=(_e+="scale("+we+","+Z+")").trim(),ce[de]("transform",_e),_e};var U=/\s*sc.*/;k.setPointGroupScale=function(ce,we,Z){if(we=we||1,Z=Z||1,ce){var re=we===1&&Z===1?"":"scale("+we+","+Z+")";ce.each(function(){var de=(this.getAttribute("transform")||"").replace(U,"");de=(de+=re).trim(),this.setAttribute("transform",de)})}};var Q=/translate\([^)]*\)\s*$/;function V(ce,we){var Z;return ce&&(Z=ce.mf),Z===void 0&&(Z=we.marker&&we.marker.standoff||0),we._geo||we._xA?Z:-Z}k.setTextPointsScale=function(ce,we,Z){ce&&ce.each(function(){var re,de=s.select(this),_e=de.select("text");if(_e.node()){var ue=parseFloat(_e.attr("x")||0),me=parseFloat(_e.attr("y")||0),xe=(de.attr("transform")||"").match(Q);re=we===1&&Z===1?[]:[b(ue,me),"scale("+we+","+Z+")",b(-ue,-me)],xe&&re.push(xe),de.attr("transform",re.join(""))}})},k.getMarkerStandoff=V;var X,K,ne,ae,ie,se,pe=Math.atan2,ke=Math.cos,Ce=Math.sin;function Oe(ce,we){var Z=we[0],re=we[1];return[Z*ke(ce)-re*Ce(ce),Z*Ce(ce)+re*ke(ce)]}function Pe(ce,we){var Z,re,de=ce.ma;de===void 0&&(de=we.marker.angle||0);var _e=we.marker.angleref;if(_e==="previous"||_e==="north"){if(we._geo){var ue=we._geo.project(ce.lonlat);Z=ue[0],re=ue[1]}else{var me=we._xA,xe=we._yA;if(!me||!xe)return 90;Z=me.c2p(ce.x),re=xe.c2p(ce.y)}if(we._geo){var ye,Se=ce.lonlat[0],Ae=ce.lonlat[1],Le=we._geo.project([Se,Ae+1e-5]),Re=we._geo.project([Se+1e-5,Ae]),Ie=pe(Re[1]-re,Re[0]-Z),Ne=pe(Le[1]-re,Le[0]-Z);if(_e==="north")ye=de/180*Math.PI;else if(_e==="previous"){var ze=Se/180*Math.PI,qe=Ae/180*Math.PI,We=X/180*Math.PI,Ge=K/180*Math.PI,ot=We-ze,Je=ke(Ge)*Ce(ot),st=Ce(Ge)*ke(qe)-ke(Ge)*Ce(qe)*ke(ot);ye=-pe(Je,st)-Math.PI,X=Se,K=Ae}var bt=Oe(Ie,[ke(ye),0]),Be=Oe(Ne,[Ce(ye),0]);de=pe(bt[1]+Be[1],bt[0]+Be[0])/Math.PI*180,_e!=="previous"||se===we.uid&&ce.i===ie+1||(de=null)}if(_e==="previous"&&!we._geo)if(se===we.uid&&ce.i===ie+1&&d(Z)&&d(re)){var je=Z-ne,tt=re-ae,it=we.line&&we.line.shape||"",St=it.slice(it.length-1);St==="h"&&(tt=0),St==="v"&&(je=0),de+=pe(tt,je)/Math.PI*180+90}else de=null}return ne=Z,ae=re,ie=ce.i,se=we.uid,de}k.getMarkerAngle=Pe},90998:function(i,o,a){var s,u,c,d,f=a(95616),p=a(39898).round,h="M0,0Z",g=Math.sqrt(2),b=Math.sqrt(3),v=Math.PI,m=Math.cos,y=Math.sin;function x(w){return w===null}function _(w,S,k){if(!(w&&w%360!=0||S))return k;if(c===w&&d===S&&s===k)return u;function C(N,R){var q=m(N),Y=y(N),L=R[0],W=R[1]+(S||0);return[L*q-W*Y,L*Y+W*q]}c=w,d=S,s=k;for(var T=w/180*v,M=0,O=0,D=f(k),P="",E=0;E0,y=f._context.staticPlot;p.each(function(x){var _,w=x[0].trace,S=w.error_x||{},k=w.error_y||{};w.ids&&(_=function(O){return O.id});var C=d.hasMarkers(w)&&w.marker.maxdisplayed>0;k.visible||S.visible||(x=[]);var T=s.select(this).selectAll("g.errorbar").data(x,_);if(T.exit().remove(),x.length){S.visible||T.selectAll("path.xerror").remove(),k.visible||T.selectAll("path.yerror").remove(),T.style("opacity",1);var M=T.enter().append("g").classed("errorbar",!0);m&&M.style("opacity",0).transition().duration(g.duration).style("opacity",1),c.setClipUrl(T,h.layerClipId,f),T.each(function(O){var D=s.select(this),P=function(B,z,N){var R={x:z.c2p(B.x),y:N.c2p(B.y)};return B.yh!==void 0&&(R.yh=N.c2p(B.yh),R.ys=N.c2p(B.ys),u(R.ys)||(R.noYS=!0,R.ys=N.c2p(B.ys,!0))),B.xh!==void 0&&(R.xh=z.c2p(B.xh),R.xs=z.c2p(B.xs),u(R.xs)||(R.noXS=!0,R.xs=z.c2p(B.xs,!0))),R}(O,b,v);if(!C||O.vis){var E,I=D.select("path.yerror");if(k.visible&&u(P.x)&&u(P.yh)&&u(P.ys)){var A=k.width;E="M"+(P.x-A)+","+P.yh+"h"+2*A+"m-"+A+",0V"+P.ys,P.noYS||(E+="m-"+A+",0h"+2*A),I.size()?m&&(I=I.transition().duration(g.duration).ease(g.easing)):I=D.append("path").style("vector-effect",y?"none":"non-scaling-stroke").classed("yerror",!0),I.attr("d",E)}else I.remove();var F=D.select("path.xerror");if(S.visible&&u(P.y)&&u(P.xh)&&u(P.xs)){var j=(S.copy_ystyle?k:S).width;E="M"+P.xh+","+(P.y-j)+"v"+2*j+"m0,-"+j+"H"+P.xs,P.noXS||(E+="m0,-"+j+"v"+2*j),F.size()?m&&(F=F.transition().duration(g.duration).ease(g.easing)):F=D.append("path").style("vector-effect",y?"none":"non-scaling-stroke").classed("xerror",!0),F.attr("d",E)}else F.remove()}})}})}},62662:function(i,o,a){var s=a(39898),u=a(7901);i.exports=function(c){c.each(function(d){var f=d[0].trace,p=f.error_y||{},h=f.error_x||{},g=s.select(this);g.selectAll("path.yerror").style("stroke-width",p.thickness+"px").call(u.stroke,p.color),h.copy_ystyle&&(h=p),g.selectAll("path.xerror").style("stroke-width",h.thickness+"px").call(u.stroke,h.color)})}},77914:function(i,o,a){var s=a(41940),u=a(528).hoverlabel,c=a(1426).extendFlat;i.exports={hoverlabel:{bgcolor:c({},u.bgcolor,{arrayOk:!0}),bordercolor:c({},u.bordercolor,{arrayOk:!0}),font:s({arrayOk:!0,editType:"none"}),align:c({},u.align,{arrayOk:!0}),namelength:c({},u.namelength,{arrayOk:!0}),editType:"none"}}},30732:function(i,o,a){var s=a(71828),u=a(73972);function c(d,f,p,h){h=h||s.identity,Array.isArray(d)&&(f[0][p]=h(d))}i.exports=function(d){var f=d.calcdata,p=d._fullLayout;function h(y){return function(x){return s.coerceHoverinfo({hoverinfo:x},{_module:y._module},p)}}for(var g=0;g=0&&b.indexde[0]._length||ht<0||ht>_e[0]._length)return y.unhoverRaw(ae,ie)}else ct="xpx"in ie?ie.xpx:de[0]._length/2,ht="ypx"in ie?ie.ypx:_e[0]._length/2;if(ie.pointerX=ct+de[0]._offset,ie.pointerY=ht+_e[0]._offset,Re="xval"in ie?w.flat(Ce,ie.xval):w.p2c(de,ct),Ie="yval"in ie?w.flat(Ce,ie.yval):w.p2c(_e,ht),!u(Re[0])||!u(Ie[0]))return d.warn("Fx.hover failed",ie,ae),y.unhoverRaw(ae,ie)}var Wt=1/0;function wt(Jt,_n){for(ze=0;zeje&&(tt.splice(0,je),Wt=tt[0].distance),we&&Le!==0&&tt.length===0){Be.distance=Le,Be.index=!1;var Wn=We._module.hoverPoints(Be,st,bt,"closest",{hoverLayer:Oe._hoverlayer});if(Wn&&(Wn=Wn.filter(function(Mr){return Mr.spikeDistance<=Le})),Wn&&Wn.length){var On,qn=Wn.filter(function(Mr){return Mr.xa.showspikes&&Mr.xa.spikesnap!=="hovered data"});if(qn.length){var br=qn[0];u(br.x0)&&u(br.y0)&&(On=Me(br),(!St.vLinePoint||St.vLinePoint.spikeDistance>On.spikeDistance)&&(St.vLinePoint=On))}var Za=Wn.filter(function(Mr){return Mr.ya.showspikes&&Mr.ya.spikesnap!=="hovered data"});if(Za.length){var lo=Za[0];u(lo.x0)&&u(lo.y0)&&(On=Me(lo),(!St.hLinePoint||St.hLinePoint.spikeDistance>On.spikeDistance)&&(St.hLinePoint=On))}}}}}function be(Jt,_n,sn){for(var en,Nn=null,An=1/0,Wn=0;Wn0&&Math.abs(Jt.distance)Nt-1;Gt--)mt(tt[Gt]);tt=Ct,Ze()}var pt=ae._hoverdata,yt=[],qt=te(ae),Rt=ee(ae);for(Ne=0;Ne1||tt.length>1)||Se==="closest"&&et&&tt.length>1,yn=m.combine(Oe.plot_bgcolor||m.background,Oe.paper_bgcolor),pn=z(tt,{gd:ae,hovermode:Se,rotateLabels:on,bgColor:yn,container:Oe._hoverlayer,outerContainer:Oe._paper.node(),commonLabelOpts:Oe.hoverlabel,hoverdistance:Oe.hoverdistance}),cn=pn.hoverLabels;if(w.isUnifiedHover(Se)||(function(Jt,_n,sn,en){var Nn,An,Wn,On,qn,br,Za,lo=_n?"xa":"ya",Mr=_n?"ya":"xa",cl=0,aa=1,Or=Jt.size(),Zr=new Array(Or),Qa=0,zn=en.minX,dn=en.maxX,Zn=en.minY,oa=en.maxY,Vn=function(Dn){return Dn*sn._invScaleX},Qn=function(Dn){return Dn*sn._invScaleY};function Kn(Dn){var ia=Dn[0],Ko=Dn[Dn.length-1];if(An=ia.pmin-ia.pos-ia.dp+ia.size,Wn=Ko.pos+Ko.dp+Ko.size-ia.pmax,An>.01){for(qn=Dn.length-1;qn>=0;qn--)Dn[qn].dp+=An;Nn=!1}if(!(Wn<.01)){if(An<-.01){for(qn=Dn.length-1;qn>=0;qn--)Dn[qn].dp-=Wn;Nn=!1}if(Nn){var _a=0;for(On=0;Onia.pmax&&_a++;for(On=Dn.length-1;On>=0&&!(_a<=0);On--)(br=Dn[On]).pos>ia.pmax-1&&(br.del=!0,_a--);for(On=0;On=0;qn--)Dn[qn].dp-=Wn;for(On=Dn.length-1;On>=0&&!(_a<=0);On--)(br=Dn[On]).pos+br.dp+br.size>ia.pmax&&(br.del=!0,_a--)}}}for(Jt.each(function(Dn){var ia=Dn[lo],Ko=Dn[Mr],_a=ia._id.charAt(0)==="x",_s=ia.range;Qa===0&&_s&&_s[0]>_s[1]!==_a&&(aa=-1);var Ts=0,Bl=_a?sn.width:sn.height;if(sn.hovermode==="x"||sn.hovermode==="y"){var dl,Gi,Wl=R(Dn,_n),Kf=Dn.anchor,Bc=Kf==="end"?-1:1;if(Kf==="middle")Gi=(dl=Dn.crossPos+(_a?Qn(Wl.y-Dn.by/2):Vn(Dn.bx/2+Dn.tx2width/2)))+(_a?Qn(Dn.by):Vn(Dn.bx));else if(_a)Gi=(dl=Dn.crossPos+Qn(E+Wl.y)-Qn(Dn.by/2-E))+Qn(Dn.by);else{var Zf=Vn(Bc*E+Wl.x),bu=Zf+Vn(Bc*Dn.bx);dl=Dn.crossPos+Math.min(Zf,bu),Gi=Dn.crossPos+Math.max(Zf,bu)}_a?Zn!==void 0&&oa!==void 0&&Math.min(Gi,oa)-Math.max(dl,Zn)>1&&(Ko.side==="left"?(Ts=Ko._mainLinePosition,Bl=sn.width):Bl=Ko._mainLinePosition):zn!==void 0&&dn!==void 0&&Math.min(Gi,dn)-Math.max(dl,zn)>1&&(Ko.side==="top"?(Ts=Ko._mainLinePosition,Bl=sn.height):Bl=Ko._mainLinePosition)}Zr[Qa++]=[{datum:Dn,traceIndex:Dn.trace.index,dp:0,pos:Dn.pos,posref:Dn.posref,size:Dn.by*(_a?O:1)/2,pmin:Ts,pmax:Bl}]}),Zr.sort(function(Dn,ia){return Dn[0].posref-ia[0].posref||aa*(ia[0].traceIndex-Dn[0].traceIndex)});!Nn&&cl<=Or;){for(cl++,Nn=!0,On=0;On.01&&Vr.pmin===Qr.pmin&&Vr.pmax===Qr.pmax){for(qn=pa.length-1;qn>=0;qn--)pa[qn].dp+=An;for(or.push.apply(or,pa),Zr.splice(On+1,1),Za=0,qn=or.length-1;qn>=0;qn--)Za+=or[qn].dp;for(Wn=Za/or.length,qn=or.length-1;qn>=0;qn--)or[qn].dp-=Wn;Nn=!1}else On++}Zr.forEach(Kn)}for(On=Zr.length-1;On>=0;On--){var mi=Zr[On];for(qn=mi.length-1;qn>=0;qn--){var Ao=mi[qn],Ja=Ao.datum;Ja.offset=Ao.dp,Ja.del=Ao.del}}}(cn,on,Oe,pn.commonLabelBoundingBox),q(cn,on,Oe._invScaleX,Oe._invScaleY)),ke&&ke.tagName){var hn=_.getComponentMethod("annotations","hasClickToShow")(ae,yt);b(s.select(ke),hn?"pointer":"")}ke&&!pe&&function(Jt,_n,sn){if(!sn||sn.length!==Jt._hoverdata.length)return!0;for(var en=sn.length-1;en>=0;en--){var Nn=sn[en],An=Jt._hoverdata[en];if(Nn.curveNumber!==An.curveNumber||String(Nn.pointNumber)!==String(An.pointNumber)||String(Nn.pointNumbers)!==String(An.pointNumbers))return!0}return!1}(ae,0,pt)&&(pt&&ae.emit("plotly_unhover",{event:ie,points:pt}),ae.emit("plotly_hover",{event:ie,points:ae._hoverdata,xaxes:de,yaxes:_e,xvals:Re,yvals:Ie}))})(Q,V,X,K,ne)})},o.loneHover=function(Q,V){var X=!0;Array.isArray(Q)||(X=!1,Q=[Q]);var K=V.gd,ne=te(K),ae=ee(K),ie=z(Q.map(function(ke){var Ce=ke._x0||ke.x0||ke.x||0,Oe=ke._x1||ke.x1||ke.x||0,Pe=ke._y0||ke.y0||ke.y||0,ce=ke._y1||ke.y1||ke.y||0,we=ke.eventData;if(we){var Z=Math.min(Ce,Oe),re=Math.max(Ce,Oe),de=Math.min(Pe,ce),_e=Math.max(Pe,ce),ue=ke.trace;if(_.traceIs(ue,"gl3d")){var me=K._fullLayout[ue.scene]._scene.container,xe=me.offsetLeft,ye=me.offsetTop;Z+=xe,re+=xe,de+=ye,_e+=ye}we.bbox={x0:Z+ae,x1:re+ae,y0:de+ne,y1:_e+ne},V.inOut_bbox&&V.inOut_bbox.push(we.bbox)}else we=!1;return{color:ke.color||m.defaultLine,x0:ke.x0||ke.x||0,x1:ke.x1||ke.x||0,y0:ke.y0||ke.y||0,y1:ke.y1||ke.y||0,xLabel:ke.xLabel,yLabel:ke.yLabel,zLabel:ke.zLabel,text:ke.text,name:ke.name,idealAlign:ke.idealAlign,borderColor:ke.borderColor,fontFamily:ke.fontFamily,fontSize:ke.fontSize,fontColor:ke.fontColor,nameLength:ke.nameLength,textAlign:ke.textAlign,trace:ke.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:ke.hovertemplate||!1,hovertemplateLabels:ke.hovertemplateLabels||!1,eventData:we}}),{gd:K,hovermode:"closest",rotateLabels:!1,bgColor:V.bgColor||m.background,container:s.select(V.container),outerContainer:V.outerContainer||V.container}).hoverLabels,se=0,pe=0;return ie.sort(function(ke,Ce){return ke.y0-Ce.y0}).each(function(ke,Ce){var Oe=ke.y0-ke.by/2;ke.offset=Oe-5([\s\S]*)<\/extra>/;function z(Q,V){var X=V.gd,K=X._fullLayout,ne=V.hovermode,ae=V.rotateLabels,ie=V.bgColor,se=V.container,pe=V.outerContainer,ke=V.commonLabelOpts||{};if(Q.length===0)return[[]];var Ce=V.fontFamily||S.HOVERFONT,Oe=V.fontSize||S.HOVERFONTSIZE,Pe=Q[0],ce=Pe.xa,we=Pe.ya,Z=ne.charAt(0),re=Z+"Label",de=Pe[re];if(de===void 0&&ce.type==="multicategory")for(var _e=0;_eK.width-jt?(pt=K.width-jt,Nt.attr("d","M"+(jt-E)+",0L"+jt+","+Rt+E+"v"+Rt+(2*I+qt.height)+"H-"+jt+"V"+Rt+E+"H"+(jt-2*E)+"Z")):Nt.attr("d","M0,0L"+E+","+Rt+E+"H"+jt+"v"+Rt+(2*I+qt.height)+"H-"+jt+"V"+Rt+E+"H-"+E+"Z"),ze.minX=pt-jt,ze.maxX=pt+jt,ce.side==="top"?(ze.minY=yt-(2*I+qt.height),ze.maxY=yt-I):(ze.minY=yt+I,ze.maxY=yt+(2*I+qt.height))}else{var Tt,Pt,Ot;we.side==="right"?(Tt="start",Pt=1,Ot="",pt=ce._offset+ce._length):(Tt="end",Pt=-1,Ot="-",pt=ce._offset),yt=we._offset+(Pe.y0+Pe.y1)/2,Gt.attr("text-anchor",Tt),Nt.attr("d","M0,0L"+Ot+E+","+E+"V"+(I+qt.height/2)+"h"+Ot+(2*I+qt.width)+"V-"+(I+qt.height/2)+"H"+Ot+E+"V-"+E+"Z"),ze.minY=yt-(I+qt.height/2),ze.maxY=yt+(I+qt.height/2),we.side==="right"?(ze.minX=pt+E,ze.maxX=pt+E+(2*I+qt.width)):(ze.minX=pt-E-(2*I+qt.width),ze.maxX=pt-E);var It,Lt=qt.height/2,zt=me-qt.top-Lt,Xt="clip"+K._uid+"commonlabel"+we._id;if(pt=0?ht:$t+wt=0?$t:rt+wt=0?et:ct+be=0?ct:ut+be=0,nt.idealAlign!=="top"&&on||!yn?on?(Lt+=Xt/2,nt.anchor="start"):nt.anchor="middle":(Lt-=Xt/2,nt.anchor="end"),nt.crossPos=Lt;else{if(nt.pos=Lt,on=It+zt/2+pn<=xe,yn=It-zt/2-pn>=0,nt.idealAlign!=="left"&&on||!yn)if(on)It+=zt/2,nt.anchor="start";else{nt.anchor="middle";var cn=pn/2,hn=It+cn-xe,Jt=It-cn;hn>0&&(It-=hn),Jt<0&&(It+=-Jt)}else It-=zt/2,nt.anchor="end";nt.crossPos=It}Rt.attr("text-anchor",nt.anchor),Tt&&jt.attr("text-anchor",nt.anchor),Nt.attr("transform",f(It,Lt)+(ae?p(T):""))}),{hoverLabels:gt,commonLabelBoundingBox:ze}}function N(Q,V,X,K,ne,ae){var ie="",se="";Q.nameOverride!==void 0&&(Q.name=Q.nameOverride),Q.name&&(Q.trace._meta&&(Q.name=d.templateString(Q.name,Q.trace._meta)),ie=H(Q.name,Q.nameLength));var pe=X.charAt(0),ke=pe==="x"?"y":"x";Q.zLabel!==void 0?(Q.xLabel!==void 0&&(se+="x: "+Q.xLabel+"
"),Q.yLabel!==void 0&&(se+="y: "+Q.yLabel+"
"),Q.trace.type!=="choropleth"&&Q.trace.type!=="choroplethmapbox"&&(se+=(se?"z: ":"")+Q.zLabel)):V&&Q[pe+"Label"]===ne?se=Q[ke+"Label"]||"":Q.xLabel===void 0?Q.yLabel!==void 0&&Q.trace.type!=="scattercarpet"&&(se=Q.yLabel):se=Q.yLabel===void 0?Q.xLabel:"("+Q.xLabel+", "+Q.yLabel+")",!Q.text&&Q.text!==0||Array.isArray(Q.text)||(se+=(se?"
":"")+Q.text),Q.extraText!==void 0&&(se+=(se?"
":"")+Q.extraText),ae&&se===""&&!Q.hovertemplate&&(ie===""&&ae.remove(),se=ie);var Ce=Q.hovertemplate||!1;if(Ce){var Oe=Q.hovertemplateLabels||Q;Q[pe+"Label"]!==ne&&(Oe[pe+"other"]=Oe[pe+"Val"],Oe[pe+"otherLabel"]=Oe[pe+"Label"]),se=(se=d.hovertemplateString(Ce,Oe,K._d3locale,Q.eventData[0]||{},Q.trace._meta)).replace(B,function(Pe,ce){return ie=H(ce,Q.nameLength),""})}return[se,ie]}function R(Q,V){var X=0,K=Q.offset;return V&&(K*=-P,X=Q.offset*D),{x:X,y:K}}function q(Q,V,X,K){var ne=function(ie){return ie*X},ae=function(ie){return ie*K};Q.each(function(ie){var se=s.select(this);if(ie.del)return se.remove();var pe,ke,Ce,Oe,Pe=se.select("text.nums"),ce=ie.anchor,we=ce==="end"?-1:1,Z=(Oe=(Ce=(ke={start:1,end:-1,middle:0}[(pe=ie).anchor])*(E+I))+ke*(pe.txwidth+I),pe.anchor==="middle"&&(Ce-=pe.tx2width/2,Oe+=pe.txwidth/2+I),{alignShift:ke,textShiftX:Ce,text2ShiftX:Oe}),re=R(ie,V),de=re.x,_e=re.y,ue=ce==="middle";se.select("path").attr("d",ue?"M-"+ne(ie.bx/2+ie.tx2width/2)+","+ae(_e-ie.by/2)+"h"+ne(ie.bx)+"v"+ae(ie.by)+"h-"+ne(ie.bx)+"Z":"M0,0L"+ne(we*E+de)+","+ae(E+_e)+"v"+ae(ie.by/2-E)+"h"+ne(we*ie.bx)+"v-"+ae(ie.by)+"H"+ne(we*E+de)+"V"+ae(_e-E)+"Z");var me=de+Z.textShiftX,xe=_e+ie.ty0-ie.by/2+I,ye=ie.textAlign||"auto";ye!=="auto"&&(ye==="left"&&ce!=="start"?(Pe.attr("text-anchor","start"),me=ue?-ie.bx/2-ie.tx2width/2+I:-ie.bx-I):ye==="right"&&ce!=="end"&&(Pe.attr("text-anchor","end"),me=ue?ie.bx/2-ie.tx2width/2-I:ie.bx+I)),Pe.call(g.positionText,ne(me),ae(xe)),ie.tx2width&&(se.select("text.name").call(g.positionText,ne(Z.text2ShiftX+Z.alignShift*I+de),ae(_e+ie.ty0-ie.by/2+I)),se.select("rect").call(v.setRect,ne(Z.text2ShiftX+(Z.alignShift-1)*ie.tx2width/2+de),ae(_e-ie.by/2-1),ne(ie.tx2width),ae(ie.by+2)))})}function Y(Q,V){var X=Q.index,K=Q.trace||{},ne=Q.cd[0],ae=Q.cd[X]||{};function ie(Pe){return Pe||u(Pe)&&Pe===0}var se=Array.isArray(X)?function(Pe,ce){var we=d.castOption(ne,X,Pe);return ie(we)?we:d.extractOption({},K,"",ce)}:function(Pe,ce){return d.extractOption(ae,K,Pe,ce)};function pe(Pe,ce,we){var Z=se(ce,we);ie(Z)&&(Q[Pe]=Z)}if(pe("hoverinfo","hi","hoverinfo"),pe("bgcolor","hbg","hoverlabel.bgcolor"),pe("borderColor","hbc","hoverlabel.bordercolor"),pe("fontFamily","htf","hoverlabel.font.family"),pe("fontSize","hts","hoverlabel.font.size"),pe("fontColor","htc","hoverlabel.font.color"),pe("nameLength","hnl","hoverlabel.namelength"),pe("textAlign","hta","hoverlabel.align"),Q.posref=V==="y"||V==="closest"&&K.orientation==="h"?Q.xa._offset+(Q.x0+Q.x1)/2:Q.ya._offset+(Q.y0+Q.y1)/2,Q.x0=d.constrain(Q.x0,0,Q.xa._length),Q.x1=d.constrain(Q.x1,0,Q.xa._length),Q.y0=d.constrain(Q.y0,0,Q.ya._length),Q.y1=d.constrain(Q.y1,0,Q.ya._length),Q.xLabelVal!==void 0&&(Q.xLabel="xLabel"in Q?Q.xLabel:x.hoverLabelText(Q.xa,Q.xLabelVal,K.xhoverformat),Q.xVal=Q.xa.c2d(Q.xLabelVal)),Q.yLabelVal!==void 0&&(Q.yLabel="yLabel"in Q?Q.yLabel:x.hoverLabelText(Q.ya,Q.yLabelVal,K.yhoverformat),Q.yVal=Q.ya.c2d(Q.yLabelVal)),Q.zLabelVal!==void 0&&Q.zLabel===void 0&&(Q.zLabel=String(Q.zLabelVal)),!(isNaN(Q.xerr)||Q.xa.type==="log"&&Q.xerr<=0)){var ke=x.tickText(Q.xa,Q.xa.c2l(Q.xerr),"hover").text;Q.xerrneg!==void 0?Q.xLabel+=" +"+ke+" / -"+x.tickText(Q.xa,Q.xa.c2l(Q.xerrneg),"hover").text:Q.xLabel+=" ± "+ke,V==="x"&&(Q.distance+=1)}if(!(isNaN(Q.yerr)||Q.ya.type==="log"&&Q.yerr<=0)){var Ce=x.tickText(Q.ya,Q.ya.c2l(Q.yerr),"hover").text;Q.yerrneg!==void 0?Q.yLabel+=" +"+Ce+" / -"+x.tickText(Q.ya,Q.ya.c2l(Q.yerrneg),"hover").text:Q.yLabel+=" ± "+Ce,V==="y"&&(Q.distance+=1)}var Oe=Q.hoverinfo||Q.trace.hoverinfo;return Oe&&Oe!=="all"&&((Oe=Array.isArray(Oe)?Oe:Oe.split("+")).indexOf("x")===-1&&(Q.xLabel=void 0),Oe.indexOf("y")===-1&&(Q.yLabel=void 0),Oe.indexOf("z")===-1&&(Q.zLabel=void 0),Oe.indexOf("text")===-1&&(Q.text=void 0),Oe.indexOf("name")===-1&&(Q.name=void 0)),Q}function L(Q,V,X){var K,ne,ae=X.container,ie=X.fullLayout,se=ie._size,pe=X.event,ke=!!V.hLinePoint,Ce=!!V.vLinePoint;if(ae.selectAll(".spikeline").remove(),Ce||ke){var Oe=m.combine(ie.plot_bgcolor,ie.paper_bgcolor);if(ke){var Pe,ce,we=V.hLinePoint;K=we&&we.xa,(ne=we&&we.ya).spikesnap==="cursor"?(Pe=pe.pointerX,ce=pe.pointerY):(Pe=K._offset+we.x,ce=ne._offset+we.y);var Z,re,de=c.readability(we.color,Oe)<1.5?m.contrast(Oe):we.color,_e=ne.spikemode,ue=ne.spikethickness,me=ne.spikecolor||de,xe=x.getPxPosition(Q,ne);if(_e.indexOf("toaxis")!==-1||_e.indexOf("across")!==-1){if(_e.indexOf("toaxis")!==-1&&(Z=xe,re=Pe),_e.indexOf("across")!==-1){var ye=ne._counterDomainMin,Se=ne._counterDomainMax;ne.anchor==="free"&&(ye=Math.min(ye,ne.position),Se=Math.max(Se,ne.position)),Z=se.l+ye*se.w,re=se.l+Se*se.w}ae.insert("line",":first-child").attr({x1:Z,x2:re,y1:ce,y2:ce,"stroke-width":ue,stroke:me,"stroke-dasharray":v.dashStyle(ne.spikedash,ue)}).classed("spikeline",!0).classed("crisp",!0),ae.insert("line",":first-child").attr({x1:Z,x2:re,y1:ce,y2:ce,"stroke-width":ue+2,stroke:Oe}).classed("spikeline",!0).classed("crisp",!0)}_e.indexOf("marker")!==-1&&ae.insert("circle",":first-child").attr({cx:xe+(ne.side!=="right"?ue:-ue),cy:ce,r:ue,fill:me}).classed("spikeline",!0)}if(Ce){var Ae,Le,Re=V.vLinePoint;K=Re&&Re.xa,ne=Re&&Re.ya,K.spikesnap==="cursor"?(Ae=pe.pointerX,Le=pe.pointerY):(Ae=K._offset+Re.x,Le=ne._offset+Re.y);var Ie,Ne,ze=c.readability(Re.color,Oe)<1.5?m.contrast(Oe):Re.color,qe=K.spikemode,We=K.spikethickness,Ge=K.spikecolor||ze,ot=x.getPxPosition(Q,K);if(qe.indexOf("toaxis")!==-1||qe.indexOf("across")!==-1){if(qe.indexOf("toaxis")!==-1&&(Ie=ot,Ne=Le),qe.indexOf("across")!==-1){var Je=K._counterDomainMin,st=K._counterDomainMax;K.anchor==="free"&&(Je=Math.min(Je,K.position),st=Math.max(st,K.position)),Ie=se.t+(1-st)*se.h,Ne=se.t+(1-Je)*se.h}ae.insert("line",":first-child").attr({x1:Ae,x2:Ae,y1:Ie,y2:Ne,"stroke-width":We,stroke:Ge,"stroke-dasharray":v.dashStyle(K.spikedash,We)}).classed("spikeline",!0).classed("crisp",!0),ae.insert("line",":first-child").attr({x1:Ae,x2:Ae,y1:Ie,y2:Ne,"stroke-width":We+2,stroke:Oe}).classed("spikeline",!0).classed("crisp",!0)}qe.indexOf("marker")!==-1&&ae.insert("circle",":first-child").attr({cx:Ae,cy:ot-(K.side!=="top"?We:-We),r:We,fill:Ge}).classed("spikeline",!0)}}}function W(Q,V){return!V}function H(Q,V){return g.plainText(Q||"",{len:V,allowedTags:["br","sub","sup","b","i","em"]})}function G(Q,V,X){var K=V[Q+"a"],ne=V[Q+"Val"],ae=V.cd[0];if(K.type==="category"||K.type==="multicategory")ne=K._categoriesMap[ne];else if(K.type==="date"){var ie=V.trace[Q+"periodalignment"];if(ie){var se=V.cd[V.index],pe=se[Q+"Start"];pe===void 0&&(pe=se[Q]);var ke=se[Q+"End"];ke===void 0&&(ke=se[Q]);var Ce=ke-pe;ie==="end"?ne+=Ce:ie==="middle"&&(ne+=Ce/2)}ne=K.d2c(ne)}return ae&&ae.t&&ae.t.posLetter===K._id&&(X.boxmode!=="group"&&X.violinmode!=="group"||(ne+=ae.t.dPos)),ne}function te(Q){return Q.offsetTop+Q.clientTop}function ee(Q){return Q.offsetLeft+Q.clientLeft}function U(Q,V){var X=Q._fullLayout,K=V.getBoundingClientRect(),ne=K.left,ae=K.top,ie=ne+K.width,se=ae+K.height,pe=d.apply3DTransform(X._invTransform)(ne,ae),ke=d.apply3DTransform(X._invTransform)(ie,se),Ce=pe[0],Oe=pe[1],Pe=ke[0],ce=ke[1];return{x:Ce,y:Oe,width:Pe-Ce,height:ce-Oe,top:Math.min(Oe,ce),left:Math.min(Ce,Pe),right:Math.max(Ce,Pe),bottom:Math.max(Oe,ce)}}},38048:function(i,o,a){var s=a(71828),u=a(7901),c=a(23469).isUnifiedHover;i.exports=function(d,f,p,h){h=h||{};var g=f.legend;function b(v){h.font[v]||(h.font[v]=g?f.legend.font[v]:f.font[v])}f&&c(f.hovermode)&&(h.font||(h.font={}),b("size"),b("family"),b("color"),g?(h.bgcolor||(h.bgcolor=u.combine(f.legend.bgcolor,f.paper_bgcolor)),h.bordercolor||(h.bordercolor=f.legend.bordercolor)):h.bgcolor||(h.bgcolor=f.paper_bgcolor)),p("hoverlabel.bgcolor",h.bgcolor),p("hoverlabel.bordercolor",h.bordercolor),p("hoverlabel.namelength",h.namelength),s.coerceFont(p,"hoverlabel.font",h.font),p("hoverlabel.align",h.align)}},98212:function(i,o,a){var s=a(71828),u=a(528);i.exports=function(c,d){function f(p,h){return d[p]!==void 0?d[p]:s.coerce(c,d,u,p,h)}return f("clickmode"),f("hovermode")}},30211:function(i,o,a){var s=a(39898),u=a(71828),c=a(28569),d=a(23469),f=a(528),p=a(88335);i.exports={moduleType:"component",name:"fx",constants:a(26675),schema:{layout:f},attributes:a(77914),layoutAttributes:f,supplyLayoutGlobalDefaults:a(22774),supplyDefaults:a(54268),supplyLayoutDefaults:a(34938),calc:a(30732),getDistanceFunction:d.getDistanceFunction,getClosest:d.getClosest,inbox:d.inbox,quadrature:d.quadrature,appendArrayPointValue:d.appendArrayPointValue,castHoverOption:function(h,g,b){return u.castOption(h,g,"hoverlabel."+b)},castHoverinfo:function(h,g,b){return u.castOption(h,b,"hoverinfo",function(v){return u.coerceHoverinfo({hoverinfo:v},{_module:h._module},g)})},hover:p.hover,unhover:c.unhover,loneHover:p.loneHover,loneUnhover:function(h){var g=u.isD3Selection(h)?h:s.select(h);g.selectAll("g.hovertext").remove(),g.selectAll(".spikeline").remove()},click:a(75914)}},528:function(i,o,a){var s=a(26675),u=a(41940),c=u({editType:"none"});c.family.dflt=s.HOVERFONT,c.size.dflt=s.HOVERFONTSIZE,i.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:c,grouptitlefont:u({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},34938:function(i,o,a){var s=a(71828),u=a(528),c=a(98212),d=a(38048);i.exports=function(f,p){function h(m,y){return s.coerce(f,p,u,m,y)}c(f,p)&&(h("hoverdistance"),h("spikedistance")),h("dragmode")==="select"&&h("selectdirection");var g=p._has("mapbox"),b=p._has("geo"),v=p._basePlotModules.length;p.dragmode==="zoom"&&((g||b)&&v===1||g&&b&&v===2)&&(p.dragmode="pan"),d(f,p,h),s.coerceFont(h,"hoverlabel.grouptitlefont",p.hoverlabel.font)}},22774:function(i,o,a){var s=a(71828),u=a(38048),c=a(528);i.exports=function(d,f){u(d,f,function(p,h){return s.coerce(d,f,c,p,h)})}},83312:function(i,o,a){var s=a(71828),u=a(30587).counter,c=a(27670).Y,d=a(85555).idRegex,f=a(44467),p={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[u("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[d.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[d.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:c({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function h(v,m,y){var x=m[y+"axes"],_=Object.keys((v._splomAxes||{})[y]||{});return Array.isArray(x)?x:_.length?_:void 0}function g(v,m,y,x,_,w){var S=m(v+"gap",y),k=m("domain."+v);m(v+"side",x);for(var C=new Array(_),T=k[0],M=(k[1]-T)/(_-S),O=M*(1-S),D=0;D<_;D++){var P=T+M*D;C[w?_-1-D:D]=[P,P+O]}return C}function b(v,m,y,x,_){var w,S=new Array(y);function k(C,T){m.indexOf(T)!==-1&&x[T]===void 0?(S[C]=T,x[T]=C):S[C]=""}if(Array.isArray(v))for(w=0;w1){k||C||T||B("pattern")==="independent"&&(k=!0),O._hasSubplotGrid=k;var E,I,A=B("roworder")==="top to bottom",F=k?.2:.1,j=k?.3:.1;M&&m._splomGridDflt&&(E=m._splomGridDflt.xside,I=m._splomGridDflt.yside),O._domains={x:g("x",B,F,E,P),y:g("y",B,j,I,D,A)}}else delete m.grid}function B(z,N){return s.coerce(y,O,p,z,N)}},contentDefaults:function(v,m){var y=m.grid;if(y&&y._domains){var x,_,w,S,k,C,T,M=v.grid||{},O=m._subplots,D=y._hasSubplotGrid,P=y.rows,E=y.columns,I=y.pattern==="independent",A=y._axisMap={};if(D){var F=M.subplots||[];C=y.subplots=new Array(P);var j=1;for(x=0;x(b==="legend"?1:0));if(j===!1&&(m[b]=void 0),(j!==!1||x.uirevision)&&(w("uirevision",m.uirevision),j!==!1)){w("borderwidth");var B,z,N,R=w("orientation")==="h",q=w("yref")==="paper",Y=w("xref")==="paper",L="left";if(R?(B=0,s.getComponentMethod("rangeslider","isVisible")(v.xaxis)?q?(z=1.1,N="bottom"):(z=1,N="top"):q?(z=-.1,N="top"):(z=0,N="bottom")):(z=1,N="auto",Y?B=1.02:(B=1,L="right")),u.coerce(x,_,{x:{valType:"number",editType:"legend",min:Y?-2:0,max:Y?3:1,dflt:B}},"x"),u.coerce(x,_,{y:{valType:"number",editType:"legend",min:q?-2:0,max:q?3:1,dflt:z}},"y"),w("traceorder",P),h.isGrouped(m[b])&&w("tracegroupgap"),w("entrywidth"),w("entrywidthmode"),w("itemsizing"),w("itemwidth"),w("itemclick"),w("itemdoubleclick"),w("groupclick"),w("xanchor",L),w("yanchor",N),w("valign"),u.noneOrAll(x,_,["x","y"]),w("title.text")){w("title.side",R?"left":"top");var W=u.extendFlat({},S,{size:u.bigFont(S.size)});u.coerceFont(w,"title.font",W)}}}}i.exports=function(b,v,m){var y,x=m.slice(),_=v.shapes;if(_)for(y=0;y<_.length;y++){var w=_[y];if(w.showlegend){var S={_input:w._input,visible:w.visible,showlegend:w.showlegend,legend:w.legend};x.push(S)}}var k=["legend"];for(y=0;y1)}var K=W.hiddenlabels||[];if(!(G||W.showlegend&&te.length))return Y.selectAll("."+H).remove(),W._topdefs.select("#"+q).remove(),c.autoMargin(N,H);var ne=u.ensureSingle(Y,"g",H,function(ce){G||ce.attr("pointer-events","all")}),ae=u.ensureSingleById(W._topdefs,"clipPath",q,function(ce){ce.append("rect")}),ie=u.ensureSingle(ne,"rect","bg",function(ce){ce.attr("shape-rendering","crispEdges")});ie.call(g.stroke,L.bordercolor).call(g.fill,L.bgcolor).style("stroke-width",L.borderwidth+"px");var se,pe=u.ensureSingle(ne,"g","scrollbox"),ke=L.title;L._titleWidth=0,L._titleHeight=0,ke.text?((se=u.ensureSingle(pe,"text",H+"titletext")).attr("text-anchor","start").call(h.font,ke.font).text(ke.text),F(se,pe,N,L,T)):pe.selectAll("."+H+"titletext").remove();var Ce=u.ensureSingle(ne,"rect","scrollbar",function(ce){ce.attr(m.scrollBarEnterAttrs).call(g.fill,m.scrollBarColor)}),Oe=pe.selectAll("g.groups").data(te);Oe.enter().append("g").attr("class","groups"),Oe.exit().remove();var Pe=Oe.selectAll("g.traces").data(u.identity);Pe.enter().append("g").attr("class","traces"),Pe.exit().remove(),Pe.style("opacity",function(ce){var we=ce[0].trace;return d.traceIs(we,"pie-like")?K.indexOf(ce[0].label)!==-1?.5:1:we.visible==="legendonly"?.5:1}).each(function(){s.select(this).call(E,N,L)}).call(k,N,L).each(function(){G||s.select(this).call(A,N,H)}),u.syncOrAsync([c.previousPromises,function(){return function(ce,we,Z,re){var de=ce._fullLayout,_e=z(re);re||(re=de[_e]);var ue=de._size,me=C.isVertical(re),xe=C.isGrouped(re),ye=re.entrywidthmode==="fraction",Se=re.borderwidth,Ae=2*Se,Le=m.itemGap,Re=re.itemwidth+2*Le,Ie=2*(Se+Le),Ne=B(re),ze=re.y<0||re.y===0&&Ne==="top",qe=re.y>1||re.y===1&&Ne==="bottom",We=re.tracegroupgap,Ge={};re._maxHeight=Math.max(ze||qe?de.height/2:ue.h,30);var ot=0;re._width=0,re._height=0;var Je=function(Ye){var Qe=0,rt=0,ut=Ye.title.side;return ut&&(ut.indexOf("left")!==-1&&(Qe=Ye._titleWidth),ut.indexOf("top")!==-1&&(rt=Ye._titleHeight)),[Qe,rt]}(re);if(me)Z.each(function(Ye){var Qe=Ye[0].height;h.setTranslate(this,Se+Je[0],Se+Je[1]+re._height+Qe/2+Le),re._height+=Qe,re._width=Math.max(re._width,Ye[0].width)}),ot=Re+re._width,re._width+=Le+Re+Ae,re._height+=Ie,xe&&(we.each(function(Ye,Qe){h.setTranslate(this,0,Qe*re.tracegroupgap)}),re._height+=(re._lgroupsLength-1)*re.tracegroupgap);else{var st=j(re),bt=re.x<0||re.x===0&&st==="right",Be=re.x>1||re.x===1&&st==="left",je=qe||ze,tt=de.width/2;re._maxWidth=Math.max(bt?je&&st==="left"?ue.l+ue.w:tt:Be?je&&st==="right"?ue.r+ue.w:tt:ue.w,2*Re);var it=0,St=0;Z.each(function(Ye){var Qe=D(Ye,re,Re);it=Math.max(it,Qe),St+=Qe}),ot=null;var et=0;if(xe){var ct=0,ht=0,$t=0;we.each(function(){var Ye=0,Qe=0;s.select(this).selectAll("g.traces").each(function(ut){var gt=D(ut,re,Re),nt=ut[0].height;h.setTranslate(this,Je[0],Je[1]+Se+Le+nt/2+Qe),Qe+=nt,Ye=Math.max(Ye,gt),Ge[ut[0].trace.legendgroup]=Ye});var rt=Ye+Le;ht>0&&rt+Se+ht>re._maxWidth?(et=Math.max(et,ht),ht=0,$t+=ct+We,ct=Qe):ct=Math.max(ct,Qe),h.setTranslate(this,ht,$t),ht+=rt}),re._width=Math.max(et,ht)+Se,re._height=$t+ct+Ie}else{var kt=Z.size(),Wt=St+Ae+(kt-1)*Le=re._maxWidth&&(et=Math.max(et,Ve),be=0,Me+=wt,re._height+=wt,wt=0),h.setTranslate(this,Je[0]+Se+be,Je[1]+Se+Me+Qe/2+Le),Ve=be+rt+Le,be+=ut,wt=Math.max(wt,Qe)}),Wt?(re._width=be+Ae,re._height=wt+Ie):(re._width=Math.max(et,Ve)+Ae,re._height+=wt+Ie)}}re._width=Math.ceil(Math.max(re._width+Je[0],re._titleWidth+2*(Se+m.titlePad))),re._height=Math.ceil(Math.max(re._height+Je[1],re._titleHeight+2*(Se+m.itemGap))),re._effHeight=Math.min(re._height,re._maxHeight);var Ue=ce._context.edits,Ze=Ue.legendText||Ue.legendPosition;Z.each(function(Ye){var Qe=s.select(this).select("."+_e+"toggle"),rt=Ye[0].height,ut=Ye[0].trace.legendgroup,gt=D(Ye,re,Re);xe&&ut!==""&&(gt=Ge[ut]);var nt=Ze?Re:ot||gt;me||ye||(nt+=Le/2),h.setRect(Qe,0,-rt/2,nt,rt)})}(N,Oe,Pe,L)},function(){var ce,we,Z,re,de=W._size,_e=L.borderwidth,ue=L.xref==="paper",me=L.yref==="paper";if(ke.text&&function(je,tt,it){if(tt.title.side==="top center"||tt.title.side==="top right"){var St=tt.title.font.size*x,et=0,ct=je.node(),ht=h.bBox(ct).width;tt.title.side==="top center"?et=.5*(tt._width-2*it-2*m.titlePad-ht):tt.title.side==="top right"&&(et=tt._width-2*it-2*m.titlePad-ht),b.positionText(je,it+m.titlePad+et,it+St)}}(se,L,_e),!G){var xe,ye;xe=ue?de.l+de.w*L.x-_[j(L)]*L._width:W.width*L.x-_[j(L)]*L._width,ye=me?de.t+de.h*(1-L.y)-_[B(L)]*L._effHeight:W.height*(1-L.y)-_[B(L)]*L._effHeight;var Se=function(je,tt,it,St){var et=je._fullLayout,ct=et[tt],ht=j(ct),$t=B(ct),kt=ct.xref==="paper",Wt=ct.yref==="paper";je._fullLayout._reservedMargin[tt]={};var wt=ct.y<.5?"b":"t",be=ct.x<.5?"l":"r",Me={r:et.width-it,l:it+ct._width,b:et.height-St,t:St+ct._effHeight};if(kt&&Wt)return c.autoMargin(je,tt,{x:ct.x,y:ct.y,l:ct._width*_[ht],r:ct._width*w[ht],b:ct._effHeight*w[$t],t:ct._effHeight*_[$t]});kt?je._fullLayout._reservedMargin[tt][wt]=Me[wt]:Wt||ct.orientation==="v"?je._fullLayout._reservedMargin[tt][be]=Me[be]:je._fullLayout._reservedMargin[tt][wt]=Me[wt]}(N,H,xe,ye);if(Se)return;if(W.margin.autoexpand){var Ae=xe,Le=ye;xe=ue?u.constrain(xe,0,W.width-L._width):Ae,ye=me?u.constrain(ye,0,W.height-L._effHeight):Le,xe!==Ae&&u.log("Constrain "+H+".x to make legend fit inside graph"),ye!==Le&&u.log("Constrain "+H+".y to make legend fit inside graph")}h.setTranslate(ne,xe,ye)}if(Ce.on(".drag",null),ne.on("wheel",null),G||L._height<=L._maxHeight||N._context.staticPlot){var Re=L._effHeight;G&&(Re=L._height),ie.attr({width:L._width-_e,height:Re-_e,x:_e/2,y:_e/2}),h.setTranslate(pe,0,0),ae.select("rect").attr({width:L._width-2*_e,height:Re-2*_e,x:_e,y:_e}),h.setClipUrl(pe,q,N),h.setRect(Ce,0,0,0,0),delete L._scrollY}else{var Ie,Ne,ze,qe=Math.max(m.scrollBarMinHeight,L._effHeight*L._effHeight/L._height),We=L._effHeight-qe-2*m.scrollBarMargin,Ge=L._height-L._effHeight,ot=We/Ge,Je=Math.min(L._scrollY||0,Ge);ie.attr({width:L._width-2*_e+m.scrollBarWidth+m.scrollBarMargin,height:L._effHeight-_e,x:_e/2,y:_e/2}),ae.select("rect").attr({width:L._width-2*_e+m.scrollBarWidth+m.scrollBarMargin,height:L._effHeight-2*_e,x:_e,y:_e+Je}),h.setClipUrl(pe,q,N),Be(Je,qe,ot),ne.on("wheel",function(){Be(Je=u.constrain(L._scrollY+s.event.deltaY/We*Ge,0,Ge),qe,ot),Je!==0&&Je!==Ge&&s.event.preventDefault()});var st=s.behavior.drag().on("dragstart",function(){var je=s.event.sourceEvent;Ie=je.type==="touchstart"?je.changedTouches[0].clientY:je.clientY,ze=Je}).on("drag",function(){var je=s.event.sourceEvent;je.buttons===2||je.ctrlKey||(Ne=je.type==="touchmove"?je.changedTouches[0].clientY:je.clientY,Je=function(tt,it,St){var et=(St-it)/ot+tt;return u.constrain(et,0,Ge)}(ze,Ie,Ne),Be(Je,qe,ot))});Ce.call(st);var bt=s.behavior.drag().on("dragstart",function(){var je=s.event.sourceEvent;je.type==="touchstart"&&(Ie=je.changedTouches[0].clientY,ze=Je)}).on("drag",function(){var je=s.event.sourceEvent;je.type==="touchmove"&&(Ne=je.changedTouches[0].clientY,Je=function(tt,it,St){var et=(it-St)/ot+tt;return u.constrain(et,0,Ge)}(ze,Ie,Ne),Be(Je,qe,ot))});pe.call(bt)}function Be(je,tt,it){L._scrollY=N._fullLayout[H]._scrollY=je,h.setTranslate(pe,0,-je),h.setRect(Ce,L._width,m.scrollBarMargin+je*it,m.scrollBarWidth,tt),ae.select("rect").attr("y",_e+je)}N._context.edits.legendPosition&&(ne.classed("cursor-move",!0),p.init({element:ne.node(),gd:N,prepFn:function(){var je=h.getTranslate(ne);Z=je.x,re=je.y},moveFn:function(je,tt){var it=Z+je,St=re+tt;h.setTranslate(ne,it,St),ce=p.align(it,L._width,de.l,de.l+de.w,L.xanchor),we=p.align(St+L._height,-L._height,de.t+de.h,de.t,L.yanchor)},doneFn:function(){if(ce!==void 0&&we!==void 0){var je={};je[H+".x"]=ce,je[H+".y"]=we,d.call("_guiRelayout",N,je)}},clickFn:function(je,tt){var it=Y.selectAll("g.traces").filter(function(){var St=this.getBoundingClientRect();return tt.clientX>=St.left&&tt.clientX<=St.right&&tt.clientY>=St.top&&tt.clientY<=St.bottom});it.size()>0&&P(N,ne,it,je,tt)}}))}],N)}}function D(N,R,q){var Y=N[0],L=Y.width,W=R.entrywidthmode,H=Y.trace.legendwidth||R.entrywidth;return W==="fraction"?R._maxWidth*H:q+(H||L)}function P(N,R,q,Y,L){var W=q.data()[0][0].trace,H={event:L,node:q.node(),curveNumber:W.index,expandedIndex:W._expandedIndex,data:N.data,layout:N.layout,frames:N._transitionData._frames,config:N._context,fullData:N._fullData,fullLayout:N._fullLayout};W._group&&(H.group=W._group),d.traceIs(W,"pie-like")&&(H.label=q.datum()[0].label);var G=f.triggerHandler(N,"plotly_legendclick",H);if(Y===1){if(G===!1)return;R._clickTimeout=setTimeout(function(){N._fullLayout&&v(q,N,Y)},N._context.doubleClickDelay)}else Y===2&&(R._clickTimeout&&clearTimeout(R._clickTimeout),N._legendMouseDownTime=0,f.triggerHandler(N,"plotly_legenddoubleclick",H)!==!1&&G!==!1&&v(q,N,Y))}function E(N,R,q){var Y,L,W=z(q),H=N.data()[0][0],G=H.trace,te=d.traceIs(G,"pie-like"),ee=!q._inHover&&R._context.edits.legendText&&!te,U=q._maxNameLength;H.groupTitle?(Y=H.groupTitle.text,L=H.groupTitle.font):(L=q.font,q.entries?Y=H.text:(Y=te?H.label:G.name,G._meta&&(Y=u.templateString(Y,G._meta))));var Q=u.ensureSingle(N,"text",W+"text");Q.attr("text-anchor","start").call(h.font,L).text(ee?I(Y,U):Y);var V=q.itemwidth+2*m.itemGap;b.positionText(Q,V,0),ee?Q.call(b.makeEditable,{gd:R,text:Y}).call(F,N,R,q).on("edit",function(X){this.text(I(X,U)).call(F,N,R,q);var K=H.trace._fullInput||{},ne={};if(d.hasTransform(K,"groupby")){var ae=d.getTransformIndices(K,"groupby"),ie=ae[ae.length-1],se=u.keyedContainer(K,"transforms["+ie+"].styles","target","value.name");se.set(H.trace._group,X),ne=se.constructUpdate()}else ne.name=X;return K._isShape?d.call("_guiRelayout",R,"shapes["+G.index+"].name",ne.name):d.call("_guiRestyle",R,ne,G.index)}):F(Q,N,R,q)}function I(N,R){var q=Math.max(4,R);if(N&&N.trim().length>=q/2)return N;for(var Y=q-(N=N||"").length;Y>0;Y--)N+=" ";return N}function A(N,R,q){var Y,L=R._context.doubleClickDelay,W=1,H=u.ensureSingle(N,"rect",q+"toggle",function(G){R._context.staticPlot||G.style("cursor","pointer").attr("pointer-events","all"),G.call(g.fill,"rgba(0,0,0,0)")});R._context.staticPlot||(H.on("mousedown",function(){(Y=new Date().getTime())-R._legendMouseDownTimeL&&(W=Math.max(W-1,1)),P(R,G,N,W,s.event)}}))}function F(N,R,q,Y,L){Y._inHover&&N.attr("data-notex",!0),b.convertToTspans(N,q,function(){(function(W,H,G,te){var ee=W.data()[0][0];if(G._inHover||!ee||ee.trace.showlegend){var U=W.select("g[class*=math-group]"),Q=U.node(),V=z(G);G||(G=H._fullLayout[V]);var X,K,ne=G.borderwidth,ae=(te===T?G.title.font:ee.groupTitle?ee.groupTitle.font:G.font).size*x;if(Q){var ie=h.bBox(Q);X=ie.height,K=ie.width,te===T?h.setTranslate(U,ne,ne+.75*X):h.setTranslate(U,0,.25*X)}else{var se="."+V+(te===T?"title":"")+"text",pe=W.select(se),ke=b.lineCount(pe),Ce=pe.node();if(X=ae*ke,K=Ce?h.bBox(Ce).width:0,te===T)G.title.side==="left"&&(K+=2*m.itemGap),b.positionText(pe,ne+m.titlePad,ne+ae);else{var Oe=2*m.itemGap+G.itemwidth;ee.groupTitle&&(Oe=m.itemGap,K-=G.itemwidth),b.positionText(pe,Oe,-ae*((ke-1)/2-.3))}}te===T?(G._titleWidth=K,G._titleHeight=X):(ee.lineHeight=ae,ee.height=Math.max(X,16)+3,ee.width=K)}else W.remove()})(R,q,Y,L)})}function j(N){return u.isRightAnchor(N)?"right":u.isCenterAnchor(N)?"center":"left"}function B(N){return u.isBottomAnchor(N)?"bottom":u.isMiddleAnchor(N)?"middle":"top"}function z(N){return N._id||"legend"}i.exports=function(N,R){if(R)O(N,R);else{var q=N._fullLayout,Y=q._legends;q._infolayer.selectAll('[class^="legend"]').each(function(){var H=s.select(this),G=H.attr("class").split(" ")[0];G.match(M)&&Y.indexOf(G)===-1&&H.remove()});for(var L=0;Lj&&(F=j)}I[p][0]._groupMinRank=F,I[p][0]._preGroupSort=p}var B=function(Y,L){return Y.trace.legendrank-L.trace.legendrank||Y._preSort-L._preSort};for(I.forEach(function(Y,L){Y[0]._preGroupSort=L}),I.sort(function(Y,L){return Y[0]._groupMinRank-L[0]._groupMinRank||Y[0]._preGroupSort-L[0]._preGroupSort}),p=0;pk?k:w}i.exports=function(w,S,k){var C=S._fullLayout;k||(k=C.legend);var T=k.itemsizing==="constant",M=k.itemwidth,O=(M+2*m.itemGap)/2,D=d(O,0),P=function(A,F,j,B){var z;if(A+1)z=A;else{if(!(F&&F.width>0))return 0;z=F.width}return T?B:Math.min(z,j)};function E(A,F,j){var B=A[0].trace,z=B.marker||{},N=z.line||{},R=j?B.visible&&B.type===j:u.traceIs(B,"bar"),q=s.select(F).select("g.legendpoints").selectAll("path.legend"+j).data(R?[A]:[]);q.enter().append("path").classed("legend"+j,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),q.exit().remove(),q.each(function(Y){var L=s.select(this),W=Y[0],H=P(W.mlw,z.line,5,2);L.style("stroke-width",H+"px");var G=W.mcc;if(!k._inHover&&"mc"in W){var te=h(z),ee=te.mid;ee===void 0&&(ee=(te.max+te.min)/2),G=f.tryColorscale(z,"")(ee)}var U=G||W.mc||z.color,Q=z.pattern,V=Q&&f.getPatternAttr(Q.shape,0,"");if(V){var X=f.getPatternAttr(Q.bgcolor,0,null),K=f.getPatternAttr(Q.fgcolor,0,null),ne=Q.fgopacity,ae=_(Q.size,8,10),ie=_(Q.solidity,.5,1),se="legend-"+B.uid;L.call(f.pattern,"legend",S,se,V,ae,ie,G,Q.fillmode,X,K,ne)}else L.call(p.fill,U);H&&p.stroke(L,W.mlc||N.color)})}function I(A,F,j){var B=A[0],z=B.trace,N=j?z.visible&&z.type===j:u.traceIs(z,j),R=s.select(F).select("g.legendpoints").selectAll("path.legend"+j).data(N?[A]:[]);if(R.enter().append("path").classed("legend"+j,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),R.exit().remove(),R.size()){var q=z.marker||{},Y=P(v(q.line.width,B.pts),q.line,5,2),L="pieLike",W=c.minExtend(z,{marker:{line:{width:Y}}},L),H=c.minExtend(B,{trace:W},L);b(R,H,W,S)}}w.each(function(A){var F=s.select(this),j=c.ensureSingle(F,"g","layers");j.style("opacity",A[0].trace.opacity);var B=k.valign,z=A[0].lineHeight,N=A[0].height;if(B!=="middle"&&z&&N){var R={top:1,bottom:-1}[B]*(.5*(z-N+3));j.attr("transform",d(0,R))}else j.attr("transform",null);j.selectAll("g.legendfill").data([A]).enter().append("g").classed("legendfill",!0),j.selectAll("g.legendlines").data([A]).enter().append("g").classed("legendlines",!0);var q=j.selectAll("g.legendsymbols").data([A]);q.enter().append("g").classed("legendsymbols",!0),q.selectAll("g.legendpoints").data([A]).enter().append("g").classed("legendpoints",!0)}).each(function(A){var F,j=A[0].trace,B=[];if(j.visible)switch(j.type){case"histogram2d":case"heatmap":B=[["M-15,-2V4H15V-2Z"]],F=!0;break;case"choropleth":case"choroplethmapbox":B=[["M-6,-6V6H6V-6Z"]],F=!0;break;case"densitymapbox":B=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],F="radial";break;case"cone":B=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],F=!1;break;case"streamtube":B=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],F=!1;break;case"surface":B=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],F=!0;break;case"mesh3d":B=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],F=!1;break;case"volume":B=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],F=!0;break;case"isosurface":B=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],F=!1}var z=s.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(B);z.enter().append("path").classed("legend3dandfriends",!0).attr("transform",D).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(N,R){var q,Y=s.select(this),L=h(j),W=L.colorscale,H=L.reversescale;if(W){if(!F){var G=W.length;q=R===0?W[H?G-1:0][1]:R===1?W[H?0:G-1][1]:W[Math.floor((G-1)/2)][1]}}else{var te=j.vertexcolor||j.facecolor||j.color;q=c.isArrayOrTypedArray(te)?te[R]||te[0]:te}Y.attr("d",N[0]),q?Y.call(p.fill,q):Y.call(function(ee){if(ee.size()){var U="legendfill-"+j.uid;f.gradient(ee,S,U,y(H,F==="radial"),W,"fill")}})})}).each(function(A){var F=A[0].trace,j=F.type==="waterfall";if(A[0]._distinct&&j){var B=A[0].trace[A[0].dir].marker;return A[0].mc=B.color,A[0].mlw=B.line.width,A[0].mlc=B.line.color,E(A,this,"waterfall")}var z=[];F.visible&&j&&(z=A[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var N=s.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(z);N.enter().append("path").classed("legendwaterfall",!0).attr("transform",D).style("stroke-miterlimit",1),N.exit().remove(),N.each(function(R){var q=s.select(this),Y=F[R[0]].marker,L=P(void 0,Y.line,5,2);q.attr("d",R[1]).style("stroke-width",L+"px").call(p.fill,Y.color),L&&q.call(p.stroke,Y.line.color)})}).each(function(A){E(A,this,"funnel")}).each(function(A){E(A,this)}).each(function(A){var F=A[0].trace,j=s.select(this).select("g.legendpoints").selectAll("path.legendbox").data(F.visible&&u.traceIs(F,"box-violin")?[A]:[]);j.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),j.exit().remove(),j.each(function(){var B=s.select(this);if(F.boxpoints!=="all"&&F.points!=="all"||p.opacity(F.fillcolor)!==0||p.opacity((F.line||{}).color)!==0){var z=P(void 0,F.line,5,2);B.style("stroke-width",z+"px").call(p.fill,F.fillcolor),z&&p.stroke(B,F.line.color)}else{var N=c.minExtend(F,{marker:{size:T?12:c.constrain(F.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});j.call(f.pointStyle,N,S)}})}).each(function(A){I(A,this,"funnelarea")}).each(function(A){I(A,this,"pie")}).each(function(A){var F,j,B=x(A),z=B.showFill,N=B.showLine,R=B.showGradientLine,q=B.showGradientFill,Y=B.anyFill,L=B.anyLine,W=A[0],H=W.trace,G=h(H),te=G.colorscale,ee=G.reversescale,U=g.hasMarkers(H)||!Y?"M5,0":L?"M5,-2":"M5,-3",Q=s.select(this),V=Q.select(".legendfill").selectAll("path").data(z||q?[A]:[]);if(V.enter().append("path").classed("js-fill",!0),V.exit().remove(),V.attr("d",U+"h"+M+"v6h-"+M+"z").call(function(ne){if(ne.size())if(z)f.fillGroupStyle(ne,S);else{var ae="legendfill-"+H.uid;f.gradient(ne,S,ae,y(ee),te,"fill")}}),N||R){var X=P(void 0,H.line,10,5);j=c.minExtend(H,{line:{width:X}}),F=[c.minExtend(W,{trace:j})]}var K=Q.select(".legendlines").selectAll("path").data(N||R?[F]:[]);K.enter().append("path").classed("js-line",!0),K.exit().remove(),K.attr("d",U+(R?"l"+M+",0.0001":"h"+M)).call(N?f.lineGroupStyle:function(ne){if(ne.size()){var ae="legendline-"+H.uid;f.lineGroupStyle(ne),f.gradient(ne,S,ae,y(ee),te,"stroke")}})}).each(function(A){var F,j,B=x(A),z=B.anyFill,N=B.anyLine,R=B.showLine,q=B.showMarker,Y=A[0],L=Y.trace,W=!q&&!N&&!z&&g.hasText(L);function H(K,ne,ae,ie){var se=c.nestedProperty(L,K).get(),pe=c.isArrayOrTypedArray(se)&&ne?ne(se):se;if(T&&pe&&ie!==void 0&&(pe=ie),ae){if(peae[1])return ae[1]}return pe}function G(K){return Y._distinct&&Y.index&&K[Y.index]?K[Y.index]:K[0]}if(q||W||R){var te={},ee={};if(q){te.mc=H("marker.color",G),te.mx=H("marker.symbol",G),te.mo=H("marker.opacity",c.mean,[.2,1]),te.mlc=H("marker.line.color",G),te.mlw=H("marker.line.width",c.mean,[0,5],2),ee.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var U=H("marker.size",c.mean,[2,16],12);te.ms=U,ee.marker.size=U}R&&(ee.line={width:H("line.width",G,[0,10],5)}),W&&(te.tx="Aa",te.tp=H("textposition",G),te.ts=10,te.tc=H("textfont.color",G),te.tf=H("textfont.family",G)),F=[c.minExtend(Y,te)],(j=c.minExtend(L,ee)).selectedpoints=null,j.texttemplate=null}var Q=s.select(this).select("g.legendpoints"),V=Q.selectAll("path.scatterpts").data(q?F:[]);V.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",D),V.exit().remove(),V.call(f.pointStyle,j,S),q&&(F[0].mrc=3);var X=Q.selectAll("g.pointtext").data(W?F:[]);X.enter().append("g").classed("pointtext",!0).append("text").attr("transform",D),X.exit().remove(),X.selectAll("text").call(f.textPointStyle,j,S)}).each(function(A){var F=A[0].trace,j=s.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(F.visible&&F.type==="candlestick"?[A,A]:[]);j.enter().append("path").classed("legendcandle",!0).attr("d",function(B,z){return z?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",D).style("stroke-miterlimit",1),j.exit().remove(),j.each(function(B,z){var N=s.select(this),R=F[z?"increasing":"decreasing"],q=P(void 0,R.line,5,2);N.style("stroke-width",q+"px").call(p.fill,R.fillcolor),q&&p.stroke(N,R.line.color)})}).each(function(A){var F=A[0].trace,j=s.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(F.visible&&F.type==="ohlc"?[A,A]:[]);j.enter().append("path").classed("legendohlc",!0).attr("d",function(B,z){return z?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",D).style("stroke-miterlimit",1),j.exit().remove(),j.each(function(B,z){var N=s.select(this),R=F[z?"increasing":"decreasing"],q=P(void 0,R.line,5,2);N.style("fill","none").call(f.dashLine,R.line.dash,q),q&&p.stroke(N,R.line.color)})})}},42068:function(i,o,a){a(93348),i.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},26023:function(i,o,a){var s=a(73972),u=a(74875),c=a(41675),d=a(24255),f=a(34031).eraseActiveShape,p=a(71828),h=p._,g=i.exports={};function b(C,T){var M,O,D=T.currentTarget,P=D.getAttribute("data-attr"),E=D.getAttribute("data-val")||!0,I=C._fullLayout,A={},F=c.list(C,null,!0),j=I._cartesianSpikesEnabled;if(P==="zoom"){var B,z=E==="in"?.5:2,N=(1+z)/2,R=(1-z)/2;for(O=0;O1?(U=["toggleHover"],Q=["resetViews"]):A?(ee=["zoomInGeo","zoomOutGeo"],U=["hoverClosestGeo"],Q=["resetGeo"]):I?(U=["hoverClosest3d"],Q=["resetCameraDefault3d","resetCameraLastSave3d"]):N?(ee=["zoomInMapbox","zoomOutMapbox"],U=["toggleHover"],Q=["resetViewMapbox"]):B?U=["hoverClosestGl2d"]:F?U=["hoverClosestPie"]:Y?(U=["hoverClosestCartesian","hoverCompareCartesian"],Q=["resetViewSankey"]):U=["toggleHover"],E&&(U=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(se){for(var pe=0;pe0)){var S=function(C,T,M){for(var O=M.filter(function(I){return T[I].anchor===C._id}),D=0,P=0;P=Ce.max)pe=ne[ke+1];else if(se=Ce.pmax)pe=ne[ke+1];else if(seke._length||me+Ne<0)return;Le=ue+Ne,Re=me+Ne;break;case Pe:if(Ie="col-resize",ue+Ne>ke._length)return;Le=ue+Ne,Re=me;break;case ce:if(Ie="col-resize",me+Ne<0)return;Le=ue,Re=me+Ne;break;default:Ie="ew-resize",Le=_e,Re=_e+Ne}if(Re=0;B--){var z=T.append("path").attr(O).style("opacity",B?.1:D).call(d.stroke,E).call(d.fill,P).call(f.dashLine,B?"solid":A,B?4+I:I);if(y(z,_,k),F){var N=p(_.layout,"selections",k);z.style({cursor:"move"});var R={element:z.node(),plotinfo:C,gd:_,editHelpers:N,isActiveSelection:!0},q=s(M,_);u(q,z,R)}else z.style("pointer-events",B?"all":"none");j[B]=z}var Y=j[0];j[1].node().addEventListener("click",function(){return function(L,W){if(v(L)){var H=+W.node().getAttribute("data-index");if(H>=0){if(H===L._fullLayout._activeSelectionIndex)return void x(L);L._fullLayout._activeSelectionIndex=H,L._fullLayout._deactivateSelection=x,b(L)}}}(_,Y)})}(_._fullLayout._selectionLayer)}function y(_,w,S){var k=S.xref+S.yref;f.setClipUrl(_,"clip"+w._fullLayout._uid+k,w)}function x(_){v(_)&&_._fullLayout._activeSelectionIndex>=0&&(c(_),delete _._fullLayout._activeSelectionIndex,b(_))}i.exports={draw:b,drawOne:m,activateLastSelection:function(_){if(v(_)){var w=_._fullLayout.selections.length-1;_._fullLayout._activeSelectionIndex=w,_._fullLayout._deactivateSelection=x,b(_)}}}},53777:function(i,o,a){var s=a(79952).P,u=a(1426).extendFlat;i.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:u({},s,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},90849:function(i){i.exports=function(o,a,s){s("newselection.mode"),s("newselection.line.width")&&(s("newselection.line.color"),s("newselection.line.dash")),s("activeselection.fillcolor"),s("activeselection.opacity")}},35855:function(i,o,a){var s=a(64505).selectMode,u=a(51873).clearOutline,c=a(60165),d=c.readPaths,f=c.writePaths,p=c.fixDatesForPaths;i.exports=function(h,g){if(h.length){var b=h[0][0];if(b){var v=b.getAttribute("d"),m=g.gd,y=m._fullLayout.newselection,x=g.plotinfo,_=x.xaxis,w=x.yaxis,S=g.isActiveSelection,k=g.dragmode,C=(m.layout||{}).selections||[];if(!s(k)&&S!==void 0){var T=m._fullLayout._activeSelectionIndex;if(T-1,St=[];if(function(kt){return kt&&Array.isArray(kt)&&kt[0].hoverOnBox!==!0}(tt)){X(Se,Ae,Ne);var et=function(kt,Wt){var wt,be,Me=kt[0],Ve=-1,Ue=[];for(be=0;be0?function(kt,Wt){var wt,be,Me,Ve=[];for(Me=0;Me0&&Ve.push(wt);if(Ve.length===1&&Ve[0]===Wt.searchInfo&&(be=Wt.searchInfo.cd[0].trace).selectedpoints.length===Wt.pointNumbers.length){for(Me=0;Me1||(be+=Wt.selectedpoints.length)>1))return!1;return be===1}(qe)&&(st=se(et))){for(ze&&ze.remove(),je=0;je=0})(Ie)&&Ie._fullLayout._deactivateShape(Ie),function(Je){return Je._fullLayout._activeSelectionIndex>=0}(Ie)&&Ie._fullLayout._deactivateSelection(Ie);var Ne=Ie._fullLayout._zoomlayer,ze=m(Le),qe=x(Le);if(ze||qe){var We,Ge,ot=Ne.selectAll(".select-outline-"+Re.id);ot&&Ie._fullLayout._outlining&&(ze&&(We=O(ot,Se)),We&&c.call("_guiRelayout",Ie,{shapes:We}),qe&&!te(Se)&&(Ge=D(ot,Se)),Ge&&(Ie._fullLayout._noEmitSelectedAtStart=!0,c.call("_guiRelayout",Ie,{selections:Ge}).then(function(){Ae&&P(Ie)})),Ie._fullLayout._outlining=!1)}Re.selection={},Re.selection.selectionDefs=Se.selectionDefs=[],Re.selection.mergedPolygons=Se.mergedPolygons=[]}function ne(Se){return Se._id}function ae(Se,Ae,Le,Re){if(!Se.calcdata)return[];var Ie,Ne,ze,qe=[],We=Ae.map(ne),Ge=Le.map(ne);for(ze=0;ze0?Re[0]:Le;return!!Ae.selectedpoints&&Ae.selectedpoints.indexOf(Ie)>-1}function pe(Se,Ae,Le){var Re,Ie;for(Re=0;Re-1&&Ae;if(!Ne&&Ae){var Pt=re(Se,!0);if(Pt.length){var Ot=Pt[0].xref,It=Pt[0].yref;if(Ot&&It){var Lt=ue(Pt);me([j(Se,Ot,"x"),j(Se,It,"y")])(jt,Lt)}}Se._fullLayout._noEmitSelectedAtStart?Se._fullLayout._noEmitSelectedAtStart=!1:Tt&&xe(Se,jt),st._reselect=!1}if(!Ne&&st._deselect){var zt=st._deselect;(function(Xt,Kt,Bt){for(var Ut=0;Ut=0)bt._fullLayout._deactivateShape(bt);else if(!Ge){var Lt=Be.clickmode;F.done(Rt).then(function(){if(F.clear(Rt),Ot===2){for(Ft.remove(),Me=0;Me-1&&ee(It,bt,Re.xaxes,Re.yaxes,Re.subplot,Re,Ft),Lt==="event"&&xe(bt,void 0);p.click(bt,It,St.id)}).catch(E.error)}},Re.doneFn=function(){yt.remove(),F.done(Rt).then(function(){F.clear(Rt),!je&&be&&Re.selectionDefs&&(be.subtract=Ct,Re.selectionDefs.push(be),Re.mergedPolygons.length=0,[].push.apply(Re.mergedPolygons,wt)),(je||Ge)&&K(Re,je),Re.doneFnCompleted&&Re.doneFnCompleted(jt),ot&&xe(bt,Ue)}).catch(E.error)}},clearOutline:k,clearSelectionsCache:K,selectOnClick:ee}},89827:function(i,o,a){var s=a(50215),u=a(41940),c=a(82196).line,d=a(79952).P,f=a(1426).extendFlat,p=a(44467).templatedArray,h=(a(24695),a(9012)),g=a(5386).R,b=a(37281);i.exports=p("shape",{visible:f({},h.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:f({},h.legend,{editType:"calc+arraydraw"}),legendgroup:f({},h.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:f({},h.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:u({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:f({},h.legendrank,{editType:"calc+arraydraw"}),legendwidth:f({},h.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:f({},s.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},yref:f({},s.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:f({},c.color,{editType:"arraydraw"}),width:f({},c.width,{editType:"calc+arraydraw"}),dash:f({},d,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:g({},{keys:Object.keys(b)}),font:u({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})},5627:function(i,o,a){var s=a(71828),u=a(89298),c=a(21459),d=a(30477);function f(b){return h(b.line.width,b.xsizemode,b.x0,b.x1,b.path,!1)}function p(b){return h(b.line.width,b.ysizemode,b.y0,b.y1,b.path,!0)}function h(b,v,m,y,x,_){var w=b/2,S=_;if(v==="pixel"){var k=x?d.extractPathCoords(x,_?c.paramIsY:c.paramIsX):[m,y],C=s.aggNums(Math.max,null,k),T=s.aggNums(Math.min,null,k),M=T<0?Math.abs(T)+w:w,O=C>0?C+w:w;return{ppad:w,ppadplus:S?M:O,ppadminus:S?O:M}}return{ppad:w}}function g(b,v,m,y,x){var _=b.type==="category"||b.type==="multicategory"?b.r2c:b.d2c;if(v!==void 0)return[_(v),_(m)];if(y){var w,S,k,C,T=1/0,M=-1/0,O=y.match(c.segmentRE);for(b.type==="date"&&(_=d.decodeDate(_)),w=0;wM&&(M=C)));return M>=T?[T,M]:void 0}}i.exports=function(b){var v=b._fullLayout,m=s.filterVisible(v.shapes);if(m.length&&b._fullData.length)for(var y=0;y=ne?ae-se:se-ae,-180/Math.PI*Math.atan2(pe,ke)}(M,D,O,P):0),A.call(function(ne){return ne.call(d.font,I).attr({}),c.convertToTspans(ne,v),ne});var Q=function(ne,ae,ie,se,pe,ke,Ce){var Oe,Pe,ce,we,Z=pe.label.textposition,re=pe.label.textangle,de=pe.label.padding,_e=pe.type,ue=Math.PI/180*ke,me=Math.sin(ue),xe=Math.cos(ue),ye=pe.label.xanchor,Se=pe.label.yanchor;if(_e==="line"){Z==="start"?(Oe=ne,Pe=ae):Z==="end"?(Oe=ie,Pe=se):(Oe=(ne+ie)/2,Pe=(ae+se)/2),ye==="auto"&&(ye=Z==="start"?re==="auto"?ie>ne?"left":iene?"right":iene?"right":iene?"left":ie1&&(Oe.length!==2||Oe[1][0]!=="Z")&&(Y===0&&(Oe[0][0]="M"),E[q]=Oe,B(),z())}}()}}function ne(pe,ke){(function(Ce,Oe){if(E.length)for(var Pe=0;PePe?(Z=Ce,ue="y0",re=Pe,me="y1"):(Z=Pe,ue="y1",re=Ce,me="y0"),ct(wt),kt(se,ae),function(be,Me,Ve){var Ue=Me.xref,Ze=Me.yref,Ye=d.getFromId(Ve,Ue),Qe=d.getFromId(Ve,Ze),rt="";Ue==="paper"||Ye.autorange||(rt+=Ue),Ze==="paper"||Qe.autorange||(rt+=Ze),v.setClipUrl(be,rt?"clip"+Ve._fullLayout._uid+rt:null,Ve)}(ne,ae,K),et.moveFn=Ae==="move"?ht:$t,et.altKey=wt.altKey)},doneFn:function(){C(K)||(x(ne),Wt(se),O(ne,K,ae),u.call("_guiRelayout",K,pe.getUpdateObj()))},clickFn:function(){C(K)||Wt(se)}};function ct(wt){if(C(K))Ae=null;else if(ze)Ae=wt.target.tagName==="path"?"move":wt.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var be=et.element.getBoundingClientRect(),Me=be.right-be.left,Ve=be.bottom-be.top,Ue=wt.clientX-be.left,Ze=wt.clientY-be.top,Ye=!qe&&Me>Le&&Ve>Re&&!wt.shiftKey?y.getCursor(Ue/Me,1-Ze/Ve):"move";x(ne,Ye),Ae=Ye.split("-")[0]}}function ht(wt,be){if(ae.type==="path"){var Me=function(Ze){return Ze},Ve=Me,Ue=Me;Ie?We("xanchor",ae.xanchor=tt(ce+wt)):(Ve=function(Ze){return tt(Be(Ze)+wt)},ot&&ot.type==="date"&&(Ve=w.encodeDate(Ve))),Ne?We("yanchor",ae.yanchor=it(we+be)):(Ue=function(Ze){return it(je(Ze)+be)},st&&st.type==="date"&&(Ue=w.encodeDate(Ue))),We("path",ae.path=D(Se,Ve,Ue))}else Ie?We("xanchor",ae.xanchor=tt(ce+wt)):(We("x0",ae.x0=tt(ke+wt)),We("x1",ae.x1=tt(Oe+wt))),Ne?We("yanchor",ae.yanchor=it(we+be)):(We("y0",ae.y0=it(Ce+be)),We("y1",ae.y1=it(Pe+be)));ne.attr("d",S(K,ae)),kt(se,ae),h(K,ie,ae,Ge)}function $t(wt,be){if(qe){var Me=function(pt){return pt},Ve=Me,Ue=Me;Ie?We("xanchor",ae.xanchor=tt(ce+wt)):(Ve=function(pt){return tt(Be(pt)+wt)},ot&&ot.type==="date"&&(Ve=w.encodeDate(Ve))),Ne?We("yanchor",ae.yanchor=it(we+be)):(Ue=function(pt){return it(je(pt)+be)},st&&st.type==="date"&&(Ue=w.encodeDate(Ue))),We("path",ae.path=D(Se,Ve,Ue))}else if(ze){if(Ae==="resize-over-start-point"){var Ze=ke+wt,Ye=Ne?Ce-be:Ce+be;We("x0",ae.x0=Ie?Ze:tt(Ze)),We("y0",ae.y0=Ne?Ye:it(Ye))}else if(Ae==="resize-over-end-point"){var Qe=Oe+wt,rt=Ne?Pe-be:Pe+be;We("x1",ae.x1=Ie?Qe:tt(Qe)),We("y1",ae.y1=Ne?rt:it(rt))}}else{var ut=function(pt){return Ae.indexOf(pt)!==-1},gt=ut("n"),nt=ut("s"),Nt=ut("w"),Gt=ut("e"),Ct=gt?Z+be:Z,Ft=nt?re+be:re,Et=Nt?de+wt:de,mt=Gt?_e+wt:_e;Ne&&(gt&&(Ct=Z-be),nt&&(Ft=re-be)),(!Ne&&Ft-Ct>Re||Ne&&Ct-Ft>Re)&&(We(ue,ae[ue]=Ne?Ct:it(Ct)),We(me,ae[me]=Ne?Ft:it(Ft))),mt-Et>Le&&(We(xe,ae[xe]=Ie?Et:tt(Et)),We(ye,ae[ye]=Ie?mt:tt(mt)))}ne.attr("d",S(K,ae)),kt(se,ae),h(K,ie,ae,Ge)}function kt(wt,be){(Ie||Ne)&&function(){var Me=be.type!=="path",Ve=wt.selectAll(".visual-cue").data([0]);Ve.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var Ue=Be(Ie?be.xanchor:c.midRange(Me?[be.x0,be.x1]:w.extractPathCoords(be.path,_.paramIsX))),Ze=je(Ne?be.yanchor:c.midRange(Me?[be.y0,be.y1]:w.extractPathCoords(be.path,_.paramIsY)));if(Ue=w.roundPositionForSharpStrokeRendering(Ue,1),Ze=w.roundPositionForSharpStrokeRendering(Ze,1),Ie&&Ne){var Ye="M"+(Ue-1-1)+","+(Ze-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ve.attr("d",Ye)}else if(Ie){var Qe="M"+(Ue-1-1)+","+(Ze-9-1)+"v18 h2 v-18 Z";Ve.attr("d",Qe)}else{var rt="M"+(Ue-9-1)+","+(Ze-1-1)+"h18 v2 h-18 Z";Ve.attr("d",rt)}}()}function Wt(wt){wt.selectAll(".visual-cue").remove()}y.init(et),St.node().onmousemove=ct}(E,Q,F,I,z,ee):F.editable===!0&&Q.style("pointer-events",G||b.opacity(Y)*q<=.5?"stroke":"all");Q.node().addEventListener("click",function(){return function(K,ne){if(T(K)){var ae=+ne.node().getAttribute("data-index");if(ae>=0){if(ae===K._fullLayout._activeShapeIndex)return void P(K);K._fullLayout._activeShapeIndex=ae,K._fullLayout._deactivateShape=P,k(K)}}}(E,Q)})}F._input&&F.visible===!0&&(F.layer!=="below"?B(E._fullLayout._shapeUpperLayer):F.xref==="paper"||F.yref==="paper"?B(E._fullLayout._shapeLowerLayer):j._hadPlotinfo?B((j.mainplotinfo||j).shapelayer):B(E._fullLayout._shapeLowerLayer))}function O(E,I,A){var F=(A.xref+A.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");v.setClipUrl(E,F?"clip"+I._fullLayout._uid+F:null,I)}function D(E,I,A){return E.replace(_.segmentRE,function(F){var j=0,B=F.charAt(0),z=_.paramIsX[B],N=_.paramIsY[B],R=_.numParams[B];return B+F.substr(1).replace(_.paramRE,function(q){return j>=R||(z[j]?q=I(q):N[j]&&(q=A(q)),j++),q})})}function P(E){T(E)&&E._fullLayout._activeShapeIndex>=0&&(g(E),delete E._fullLayout._activeShapeIndex,k(E))}i.exports={draw:k,drawOne:M,eraseActiveShape:function(E){if(T(E)){g(E);var I=E._fullLayout._activeShapeIndex,A=(E.layout||{}).shapes||[];if(I0&&MU&&(V="X"),V});return H>U&&(Q=Q.replace(/[\s,]*X.*/,""),u.log("Ignoring extra params in segment "+W)),G+Q})}(f,h,b);if(f.xsizemode==="pixel"){var M=h(f.xanchor);v=M+f.x0,m=M+f.x1}else v=h(f.x0),m=h(f.x1);if(f.ysizemode==="pixel"){var O=b(f.yanchor);y=O-f.y0,x=O-f.y1}else y=b(f.y0),x=b(f.y1);if(_==="line")return"M"+v+","+y+"L"+m+","+x;if(_==="rect")return"M"+v+","+y+"H"+m+"V"+x+"H"+v+"Z";var D=(v+m)/2,P=(y+x)/2,E=Math.abs(D-v),I=Math.abs(P-y),A="A"+E+","+I,F=D+E+","+P;return"M"+F+A+" 0 1,1 "+D+","+(P-I)+A+" 0 0,1 "+F+"Z"}},89853:function(i,o,a){var s=a(34031);i.exports={moduleType:"component",name:"shapes",layoutAttributes:a(89827),supplyLayoutDefaults:a(84726),supplyDrawNewShapeDefaults:a(45547),includeBasePlot:a(76325)("shapes"),calcAutorange:a(5627),draw:s.draw,drawOne:s.drawOne}},37281:function(i){function o(c,d){return d?d.d2l(c):c}function a(c,d){return d?d.l2d(c):c}function s(c,d){return o(c.x1,d)-o(c.x0,d)}function u(c,d,f){return o(c.y1,f)-o(c.y0,f)}i.exports={x0:function(c){return c.x0},x1:function(c){return c.x1},y0:function(c){return c.y0},y1:function(c){return c.y1},slope:function(c,d,f){return c.type!=="line"?void 0:u(c,0,f)/s(c,d)},dx:s,dy:u,width:function(c,d){return Math.abs(s(c,d))},height:function(c,d,f){return Math.abs(u(c,0,f))},length:function(c,d,f){return c.type!=="line"?void 0:Math.sqrt(Math.pow(s(c,d),2)+Math.pow(u(c,0,f),2))},xcenter:function(c,d){return a((o(c.x1,d)+o(c.x0,d))/2,d)},ycenter:function(c,d,f){return a((o(c.y1,f)+o(c.y0,f))/2,f)}}},75067:function(i,o,a){var s=a(41940),u=a(35025),c=a(1426).extendDeepAll,d=a(30962).overrideAll,f=a(85594),p=a(44467).templatedArray,h=a(98292),g=p("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});i.exports=d(p("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:g,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:c(u({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:f.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:s({})},font:s({}),activebgcolor:{valType:"color",dflt:h.gripBgActiveColor},bgcolor:{valType:"color",dflt:h.railBgColor},bordercolor:{valType:"color",dflt:h.railBorderColor},borderwidth:{valType:"number",min:0,dflt:h.railBorderWidth},ticklen:{valType:"number",min:0,dflt:h.tickLength},tickcolor:{valType:"color",dflt:h.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:h.minorTickLength}}),"arraydraw","from-root")},98292:function(i){i.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},12343:function(i,o,a){var s=a(71828),u=a(85501),c=a(75067),d=a(98292).name,f=c.steps;function p(g,b,v){function m(S,k){return s.coerce(g,b,c,S,k)}for(var y=u(g,b,{name:"steps",handleItemDefaults:h}),x=0,_=0;_0&&(H=H.transition().duration(N.transition.duration).ease(N.transition.easing)),H.attr("transform",p(W-.5*b.gripWidth,N._dims.currentValueTotalHeight))}}function A(z,N){var R=z._dims;return R.inputAreaStart+b.stepInset+(R.inputAreaLength-2*b.stepInset)*Math.min(1,Math.max(0,N))}function F(z,N){var R=z._dims;return Math.min(1,Math.max(0,(N-b.stepInset-R.inputAreaStart)/(R.inputAreaLength-2*b.stepInset-2*R.inputAreaStart)))}function j(z,N,R){var q=R._dims,Y=f.ensureSingle(z,"rect",b.railTouchRectClass,function(L){L.call(P,N,z,R).style("pointer-events","all")});Y.attr({width:q.inputAreaLength,height:Math.max(q.inputAreaWidth,b.tickOffset+R.ticklen+q.labelHeight)}).call(c.fill,R.bgcolor).attr("opacity",0),d.setTranslate(Y,0,q.currentValueTotalHeight)}function B(z,N){var R=N._dims,q=R.inputAreaLength-2*b.railInset,Y=f.ensureSingle(z,"rect",b.railRectClass);Y.attr({width:q,height:b.railWidth,rx:b.railRadius,ry:b.railRadius,"shape-rendering":"crispEdges"}).call(c.stroke,N.bordercolor).call(c.fill,N.bgcolor).style("stroke-width",N.borderwidth+"px"),d.setTranslate(Y,b.railInset,.5*(R.inputAreaWidth-b.railWidth)+R.currentValueTotalHeight)}i.exports=function(z){var N=z._context.staticPlot,R=z._fullLayout,q=function(te,ee){for(var U=te[b.name],Q=[],V=0;V0?[0]:[]);function L(te){te._commandObserver&&(te._commandObserver.remove(),delete te._commandObserver),u.autoMargin(z,_(te))}if(Y.enter().append("g").classed(b.containerClassName,!0).style("cursor",N?null:"ew-resize"),Y.exit().each(function(){s.select(this).selectAll("g."+b.groupClassName).each(L)}).remove(),q.length!==0){var W=Y.selectAll("g."+b.groupClassName).data(q,w);W.enter().append("g").classed(b.groupClassName,!0),W.exit().each(L).remove();for(var H=0;H0||Oe<0){var Z={left:[-Pe,0],right:[Pe,0],top:[0,-Pe],bottom:[0,Pe]}[O.side];Q.attr("transform",p(Z[0],Z[1]))}}}return H.call(G),Y&&(B?H.on(".opacity",null):(A=0,F=!0,H.text(T).on("mouseover.opacity",function(){s.select(this).transition().duration(v.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){s.select(this).transition().duration(v.HIDE_PLACEHOLDER).style("opacity",0)})),H.call(b.makeEditable,{gd:x}).on("edit",function(U){M!==void 0?d.call("_guiRestyle",x,C,U,M):d.call("_guiRelayout",x,C,U)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(G)}).on("input",function(U){this.text(U||" ").call(b.positionText,D.x,D.y)})),H.classed("js-placeholder",F),E}}},7163:function(i,o,a){var s=a(41940),u=a(22399),c=a(1426).extendFlat,d=a(30962).overrideAll,f=a(35025),p=a(44467).templatedArray,h=p("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});i.exports=d(p("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:h,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:c(f({editType:"arraydraw"}),{}),font:s({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:u.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},75909:function(i){i.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},64897:function(i,o,a){var s=a(71828),u=a(85501),c=a(7163),d=a(75909).name,f=c.buttons;function p(g,b,v){function m(y,x){return s.coerce(g,b,c,y,x)}m("visible",u(g,b,{name:"buttons",handleItemDefaults:h}).length>0)&&(m("active"),m("direction"),m("type"),m("showactive"),m("x"),m("y"),s.noneOrAll(g,b,["x","y"]),m("xanchor"),m("yanchor"),m("pad.t"),m("pad.r"),m("pad.b"),m("pad.l"),s.coerceFont(m,"font",v.font),m("bgcolor",v.paper_bgcolor),m("bordercolor"),m("borderwidth"))}function h(g,b){function v(m,y){return s.coerce(g,b,f,m,y)}v("visible",g.method==="skip"||Array.isArray(g.args))&&(v("method"),v("args"),v("args2"),v("label"),v("execute"))}i.exports=function(g,b){u(g,b,{name:d,handleItemDefaults:p})}},13689:function(i,o,a){var s=a(39898),u=a(74875),c=a(7901),d=a(91424),f=a(71828),p=a(63893),h=a(44467).arrayEditor,g=a(18783).LINE_SPACING,b=a(75909),v=a(25849);function m(A){return A._index}function y(A,F){return+A.attr(b.menuIndexAttrName)===F._index}function x(A,F,j,B,z,N,R,q){F.active=R,h(A.layout,b.name,F).applyUpdate("active",R),F.type==="buttons"?w(A,B,null,null,F):F.type==="dropdown"&&(z.attr(b.menuIndexAttrName,"-1"),_(A,B,z,N,F),q||w(A,B,z,N,F))}function _(A,F,j,B,z){var N=f.ensureSingle(F,"g",b.headerClassName,function(H){H.style("pointer-events","all")}),R=z._dims,q=z.active,Y=z.buttons[q]||b.blankHeaderOpts,L={y:z.pad.t,yPad:0,x:z.pad.l,xPad:0,index:0},W={width:R.headerWidth,height:R.headerHeight};N.call(S,z,Y,A).call(E,z,L,W),f.ensureSingle(F,"text",b.headerArrowClassName,function(H){H.attr("text-anchor","end").call(d.font,z.font).text(b.arrowSymbol[z.direction])}).attr({x:R.headerWidth-b.arrowOffsetX+z.pad.l,y:R.headerHeight/2+b.textOffsetY+z.pad.t}),N.on("click",function(){j.call(I,String(y(j,z)?-1:z._index)),w(A,F,j,B,z)}),N.on("mouseover",function(){N.call(M)}),N.on("mouseout",function(){N.call(O,z)}),d.setTranslate(F,R.lx,R.ly)}function w(A,F,j,B,z){j||(j=F).attr("pointer-events","all");var N=function(Q){return+Q.attr(b.menuIndexAttrName)==-1}(j)&&z.type!=="buttons"?[]:z.buttons,R=z.type==="dropdown"?b.dropdownButtonClassName:b.buttonClassName,q=j.selectAll("g."+R).data(f.filterVisible(N)),Y=q.enter().append("g").classed(R,!0),L=q.exit();z.type==="dropdown"?(Y.attr("opacity","0").transition().attr("opacity","1"),L.transition().attr("opacity","0").remove()):L.remove();var W=0,H=0,G=z._dims,te=["up","down"].indexOf(z.direction)!==-1;z.type==="dropdown"&&(te?H=G.headerHeight+b.gapButtonHeader:W=G.headerWidth+b.gapButtonHeader),z.type==="dropdown"&&z.direction==="up"&&(H=-b.gapButtonHeader+b.gapButton-G.openHeight),z.type==="dropdown"&&z.direction==="left"&&(W=-b.gapButtonHeader+b.gapButton-G.openWidth);var ee={x:G.lx+W+z.pad.l,y:G.ly+H+z.pad.t,yPad:b.gapButton,xPad:b.gapButton,index:0},U={l:ee.x+z.borderwidth,t:ee.y+z.borderwidth};q.each(function(Q,V){var X=s.select(this);X.call(S,z,Q,A).call(E,z,ee),X.on("click",function(){s.event.defaultPrevented||(Q.execute&&(Q.args2&&z.active===V?(x(A,z,0,F,j,B,-1),u.executeAPICommand(A,Q.method,Q.args2)):(x(A,z,0,F,j,B,V),u.executeAPICommand(A,Q.method,Q.args))),A.emit("plotly_buttonclicked",{menu:z,button:Q,active:z.active}))}),X.on("mouseover",function(){X.call(M)}),X.on("mouseout",function(){X.call(O,z),q.call(T,z)})}),q.call(T,z),te?(U.w=Math.max(G.openWidth,G.headerWidth),U.h=ee.y-U.t):(U.w=ee.x-U.l,U.h=Math.max(G.openHeight,G.headerHeight)),U.direction=z.direction,B&&(q.size()?function(Q,V,X,K,ne,ae){var ie,se,pe,ke=ne.direction,Ce=ke==="up"||ke==="down",Oe=ne._dims,Pe=ne.active;if(Ce)for(se=0,pe=0;pe0?[0]:[]);if(z.enter().append("g").classed(b.containerClassName,!0).style("cursor","pointer"),z.exit().each(function(){s.select(this).selectAll("g."+b.headerGroupClassName).each(B)}).remove(),j.length!==0){var N=z.selectAll("g."+b.headerGroupClassName).data(j,m);N.enter().append("g").classed(b.headerGroupClassName,!0);for(var R=f.ensureSingle(z,"g",b.dropdownButtonGroupClassName,function(H){H.style("pointer-events","all")}),q=0;qE,F=f.barLength+2*f.barPad,j=f.barWidth+2*f.barPad,B=S,z=C+T;z+j>m&&(z=m-j);var N=this.container.selectAll("rect.scrollbar-horizontal").data(A?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-horizontal",!0).call(u.fill,f.barColor),A?(this.hbar=N.attr({rx:f.barRadius,ry:f.barRadius,x:B,y:z,width:F,height:j}),this._hbarXMin=B+F/2,this._hbarTranslateMax=E-F):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var R=T>I,q=f.barWidth+2*f.barPad,Y=f.barLength+2*f.barPad,L=S+k,W=C;L+q>v&&(L=v-q);var H=this.container.selectAll("rect.scrollbar-vertical").data(R?[0]:[]);H.exit().on(".drag",null).remove(),H.enter().append("rect").classed("scrollbar-vertical",!0).call(u.fill,f.barColor),R?(this.vbar=H.attr({rx:f.barRadius,ry:f.barRadius,x:L,y:W,width:q,height:Y}),this._vbarYMin=W+Y/2,this._vbarTranslateMax=I-Y):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var G=this.id,te=y-.5,ee=R?x+q+.5:x+.5,U=_-.5,Q=A?w+j+.5:w+.5,V=b._topdefs.selectAll("#"+G).data(A||R?[0]:[]);if(V.exit().remove(),V.enter().append("clipPath").attr("id",G).append("rect"),A||R?(this._clipRect=V.select("rect").attr({x:Math.floor(te),y:Math.floor(U),width:Math.ceil(ee)-Math.floor(te),height:Math.ceil(Q)-Math.floor(U)}),this.container.call(c.setClipUrl,G,this.gd),this.bg.attr({x:S,y:C,width:k,height:T})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(c.setClipUrl,null),delete this._clipRect),A||R){var X=s.behavior.drag().on("dragstart",function(){s.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(X);var K=s.behavior.drag().on("dragstart",function(){s.event.sourceEvent.preventDefault(),s.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));A&&this.hbar.on(".drag",null).call(K),R&&this.vbar.on(".drag",null).call(K)}this.setTranslate(h,g)},f.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(c.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},f.prototype._onBoxDrag=function(){var p=this.translateX,h=this.translateY;this.hbar&&(p-=s.event.dx),this.vbar&&(h-=s.event.dy),this.setTranslate(p,h)},f.prototype._onBoxWheel=function(){var p=this.translateX,h=this.translateY;this.hbar&&(p+=s.event.deltaY),this.vbar&&(h+=s.event.deltaY),this.setTranslate(p,h)},f.prototype._onBarDrag=function(){var p=this.translateX,h=this.translateY;if(this.hbar){var g=p+this._hbarXMin,b=g+this._hbarTranslateMax;p=(d.constrain(s.event.x,g,b)-g)/(b-g)*(this.position.w-this._box.w)}if(this.vbar){var v=h+this._vbarYMin,m=v+this._vbarTranslateMax;h=(d.constrain(s.event.y,v,m)-v)/(m-v)*(this.position.h-this._box.h)}this.setTranslate(p,h)},f.prototype.setTranslate=function(p,h){var g=this.position.w-this._box.w,b=this.position.h-this._box.h;if(p=d.constrain(p||0,0,g),h=d.constrain(h||0,0,b),this.translateX=p,this.translateY=h,this.container.call(c.setTranslate,this._box.l-this.position.l-p,this._box.t-this.position.t-h),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+p-.5),y:Math.floor(this.position.t+h-.5)}),this.hbar){var v=p/g;this.hbar.call(c.setTranslate,p+v*this._hbarTranslateMax,h)}if(this.vbar){var m=h/b;this.vbar.call(c.setTranslate,p,h+m*this._vbarTranslateMax)}}},18783:function(i){i.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},24695:function(i){i.exports={axisRefDescription:function(o,a,s){return["If set to a",o,"axis id (e.g. *"+o+"* or","*"+o+"2*), the `"+o+"` position refers to a",o,"coordinate. If set to *paper*, the `"+o+"`","position refers to the distance from the",a,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",a,"("+s+"). If set to a",o,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",a,"of the domain of that axis: e.g.,","*"+o+"2 domain* refers to the domain of the second",o," axis and a",o,"position of 0.5 refers to the","point between the",a,"and the",s,"of the domain of the","second",o,"axis."].join(" ")}}},31562:function(i){i.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},74808:function(i){i.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},37822:function(i){i.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},50606:function(i){i.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},32396:function(i,o){o.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],o.STYLE=o.CSS_DECLARATIONS.map(function(a){return a.join(": ")+"; "}).join("")},77922:function(i,o){o.xmlns="http://www.w3.org/2000/xmlns/",o.svg="http://www.w3.org/2000/svg",o.xlink="http://www.w3.org/1999/xlink",o.svgAttrs={xmlns:o.svg,"xmlns:xlink":o.xlink}},8729:function(i,o,a){o.version=a(11506).version,a(7417),a(98847);for(var s=a(73972),u=o.register=s.register,c=a(10641),d=Object.keys(c),f=0;f",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},99863:function(i,o){o.isLeftAnchor=function(a){return a.xanchor==="left"||a.xanchor==="auto"&&a.x<=.3333333333333333},o.isCenterAnchor=function(a){return a.xanchor==="center"||a.xanchor==="auto"&&a.x>.3333333333333333&&a.x<.6666666666666666},o.isRightAnchor=function(a){return a.xanchor==="right"||a.xanchor==="auto"&&a.x>=.6666666666666666},o.isTopAnchor=function(a){return a.yanchor==="top"||a.yanchor==="auto"&&a.y>=.6666666666666666},o.isMiddleAnchor=function(a){return a.yanchor==="middle"||a.yanchor==="auto"&&a.y>.3333333333333333&&a.y<.6666666666666666},o.isBottomAnchor=function(a){return a.yanchor==="bottom"||a.yanchor==="auto"&&a.y<=.3333333333333333}},26348:function(i,o,a){var s=a(64872),u=s.mod,c=s.modHalf,d=Math.PI,f=2*d;function p(v){return Math.abs(v[1]-v[0])>f-1e-14}function h(v,m){return c(m-v,f)}function g(v,m){if(p(m))return!0;var y,x;m[0](x=u(x,f))&&(x+=f);var _=u(v,f),w=_+f;return _>=y&&_<=x||w>=y&&w<=x}function b(v,m,y,x,_,w,S){_=_||0,w=w||0;var k,C,T,M,O,D=p([y,x]);function P(F,j){return[F*Math.cos(j)+_,w-F*Math.sin(j)]}D?(k=0,C=d,T=f):y=_&&v<=w);var _,w},pathArc:function(v,m,y,x,_){return b(null,v,m,y,x,_,0)},pathSector:function(v,m,y,x,_){return b(null,v,m,y,x,_,1)},pathAnnulus:function(v,m,y,x,_,w){return b(v,m,y,x,_,w,1)}}},73627:function(i,o){var a=Array.isArray,s=ArrayBuffer,u=DataView;function c(p){return s.isView(p)&&!(p instanceof u)}function d(p){return a(p)||c(p)}function f(p,h,g){if(d(p)){if(d(p[0])){for(var b=g,v=0;vw.max?x.set(_):x.set(+y)}},integer:{coerceFunction:function(y,x,_,w){y%1||!s(y)||w.min!==void 0&&yw.max?x.set(_):x.set(+y)}},string:{coerceFunction:function(y,x,_,w){if(typeof y!="string"){var S=typeof y=="number";w.strict!==!0&&S?x.set(String(y)):x.set(_)}else w.noBlank&&!y?x.set(_):x.set(y)}},color:{coerceFunction:function(y,x,_){u(y).isValid()?x.set(y):x.set(_)}},colorlist:{coerceFunction:function(y,x,_){Array.isArray(y)&&y.length&&y.every(function(w){return u(w).isValid()})?x.set(y):x.set(_)}},colorscale:{coerceFunction:function(y,x,_){x.set(d.get(y,_))}},angle:{coerceFunction:function(y,x,_){y==="auto"?x.set("auto"):s(y)?x.set(b(+y,360)):x.set(_)}},subplotid:{coerceFunction:function(y,x,_,w){var S=w.regex||g(_);typeof y=="string"&&S.test(y)?x.set(y):x.set(_)},validateFunction:function(y,x){var _=x.dflt;return y===_||typeof y=="string"&&!!g(_).test(y)}},flaglist:{coerceFunction:function(y,x,_,w){if((w.extras||[]).indexOf(y)===-1)if(typeof y=="string"){for(var S=y.split("+"),k=0;k=s&&N<=u?N:g}if(typeof N!="string"&&typeof N!="number")return g;N=String(N);var W=T(R),H=N.charAt(0);!W||H!=="G"&&H!=="g"||(N=N.substr(1),R="");var G=W&&R.substr(0,7)==="chinese",te=N.match(G?k:S);if(!te)return g;var ee=te[1],U=te[3]||"1",Q=Number(te[5]||1),V=Number(te[7]||0),X=Number(te[9]||0),K=Number(te[11]||0);if(W){if(ee.length===2)return g;var ne;ee=Number(ee);try{var ae=_.getComponentMethod("calendars","getCal")(R);if(G){var ie=U.charAt(U.length-1)==="i";U=parseInt(U,10),ne=ae.newDate(ee,ae.toMonthIndex(ee,U,ie),Q)}else ne=ae.newDate(ee,Number(U),Q)}catch{return g}return ne?(ne.toJD()-x)*b+V*v+X*m+K*y:g}ee=ee.length===2?(Number(ee)+2e3-C)%100+C:Number(ee),U-=1;var se=new Date(Date.UTC(2e3,U,Q,V,X));return se.setUTCFullYear(ee),se.getUTCMonth()!==U||se.getUTCDate()!==Q?g:se.getTime()+K*y},s=o.MIN_MS=o.dateTime2ms("-9999"),u=o.MAX_MS=o.dateTime2ms("9999-12-31 23:59:59.9999"),o.isDateTime=function(N,R){return o.dateTime2ms(N,R)!==g};var O=90*b,D=3*v,P=5*m;function E(N,R,q,Y,L){if((R||q||Y||L)&&(N+=" "+M(R,2)+":"+M(q,2),(Y||L)&&(N+=":"+M(Y,2),L))){for(var W=4;L%10==0;)W-=1,L/=10;N+="."+M(L,W)}return N}o.ms2DateTime=function(N,R,q){if(typeof N!="number"||!(N>=s&&N<=u))return g;R||(R=0);var Y,L,W,H,G,te,ee=Math.floor(10*p(N+.05,1)),U=Math.round(N-ee/10);if(T(q)){var Q=Math.floor(U/b)+x,V=Math.floor(p(N,b));try{Y=_.getComponentMethod("calendars","getCal")(q).fromJD(Q).formatDate("yyyy-mm-dd")}catch{Y=w("G%Y-%m-%d")(new Date(U))}if(Y.charAt(0)==="-")for(;Y.length<11;)Y="-0"+Y.substr(1);else for(;Y.length<10;)Y="0"+Y;L=R=s+b&&N<=u-b))return g;var R=Math.floor(10*p(N+.05,1)),q=new Date(Math.round(N-R/10));return E(c("%Y-%m-%d")(q),q.getHours(),q.getMinutes(),q.getSeconds(),10*q.getUTCMilliseconds()+R)},o.cleanDate=function(N,R,q){if(N===g)return R;if(o.isJSDate(N)||typeof N=="number"&&isFinite(N)){if(T(q))return f.error("JS Dates and milliseconds are incompatible with world calendars",N),R;if(!(N=o.ms2DateTimeLocal(+N))&&R!==void 0)return R}else if(!o.isDateTime(N,q))return f.error("unrecognized date",N),R;return N};var I=/%\d?f/g,A=/%h/g,F={1:"1",2:"1",3:"2",4:"2"};function j(N,R,q,Y){N=N.replace(I,function(W){var H=Math.min(+W.charAt(1)||6,6);return(R/1e3%1+2).toFixed(H).substr(2).replace(/0+$/,"")||"0"});var L=new Date(Math.floor(R+.05));if(N=N.replace(A,function(){return F[q("%q")(L)]}),T(Y))try{N=_.getComponentMethod("calendars","worldCalFmt")(N,R,Y)}catch{return"Invalid"}return q(N)(L)}var B=[59,59.9,59.99,59.999,59.9999];o.formatDate=function(N,R,q,Y,L,W){if(L=T(L)&&L,!R)if(q==="y")R=W.year;else if(q==="m")R=W.month;else{if(q!=="d")return function(H,G){var te=p(H+.05,b),ee=M(Math.floor(te/v),2)+":"+M(p(Math.floor(te/m),60),2);if(G!=="M"){d(G)||(G=0);var U=(100+Math.min(p(H/y,60),B[G])).toFixed(G).substr(1);G>0&&(U=U.replace(/0+$/,"").replace(/[\.]$/,"")),ee+=":"+U}return ee}(N,q)+` + ${e.palette.mode==="light"?$l(ar(e.palette.divider,1),.88):Il(ar(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${pB.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),Ade=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiTableCell"}),{align:l="inherit",className:i,component:o,padding:a,scope:s,size:u,sortDirection:c,variant:d,...f}=r,p=ge.useContext(uB),h=ge.useContext(pg),g=h&&h.variant==="head";let b;o?b=o:b=g?"th":"td";let v=s;b==="td"?v=void 0:!v&&g&&(v="col");const m=d||h&&h.variant,y={...r,align:l,component:b,padding:a||(p&&p.padding?p.padding:"normal"),size:u||(p&&p.size?p.size:"medium"),sortDirection:c,stickyHeader:m==="head"&&p&&p.stickyHeader,variant:m},x=Pde(y);let _=null;return c&&(_=c==="asc"?"ascending":"descending"),Te.jsx(Ode,{as:b,ref:n,className:ln(x.root,i),"aria-sort":_,scope:v,ownerState:y,...f})}),Mi=Ade,Dde=Object.freeze(Object.defineProperty({__proto__:null,default:Mi,getTableCellUtilityClass:fB,tableCellClasses:pB},Symbol.toStringTag,{value:"Module"}));function Ede(e){return gn("MuiTableContainer",e)}fn("MuiTableContainer",["root"]);const Rde=e=>{const{classes:t}=e;return vn({root:["root"]},Ede,t)},Lde=Dt("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Ide=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiTableContainer"}),{className:l,component:i="div",...o}=r,a={...r,component:i},s=Rde(a);return Te.jsx(Lde,{ref:n,as:i,className:ln(s.root,l),ownerState:a,...o})});function hB(e){return gn("MuiTableFooter",e)}const $de=fn("MuiTableFooter",["root"]),Nde=$de,Fde=e=>{const{classes:t}=e;return vn({root:["root"]},hB,t)},jde=Dt("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),zde={variant:"footer"},x7="tfoot",Bde=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiTableFooter"}),{className:l,component:i=x7,...o}=r,a={...r,component:i},s=Fde(a);return Te.jsx(pg.Provider,{value:zde,children:Te.jsx(jde,{as:i,className:ln(s.root,l),ref:n,role:i===x7?null:"rowgroup",ownerState:a,...o})})}),Wde=Bde,qde=Object.freeze(Object.defineProperty({__proto__:null,default:Wde,getTableFooterUtilityClass:hB,tableFooterClasses:Nde},Symbol.toStringTag,{value:"Module"}));function mB(e){return gn("MuiTableHead",e)}const Ude=fn("MuiTableHead",["root"]),Hde=Ude,Vde=e=>{const{classes:t}=e;return vn({root:["root"]},mB,t)},Gde=Dt("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Yde={variant:"head"},w7="thead",Xde=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiTableHead"}),{className:l,component:i=w7,...o}=r,a={...r,component:i},s=Vde(a);return Te.jsx(pg.Provider,{value:Yde,children:Te.jsx(Gde,{as:i,className:ln(s.root,l),ref:n,role:i===w7?null:"rowgroup",ownerState:a,...o})})}),g5=Xde,Kde=Object.freeze(Object.defineProperty({__proto__:null,default:g5,getTableHeadUtilityClass:mB,tableHeadClasses:Hde},Symbol.toStringTag,{value:"Module"}));function gB(e){return gn("MuiToolbar",e)}const Zde=fn("MuiToolbar",["root","gutters","regular","dense"]),Qde=Zde,Jde=e=>{const{classes:t,disableGutters:n,variant:r}=e;return vn({root:["root",!n&&"gutters",r]},gB,t)},efe=Dt("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(Fn(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),tfe=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiToolbar"}),{className:l,component:i="div",disableGutters:o=!1,variant:a="regular",...s}=r,u={...r,component:i,disableGutters:o,variant:a},c=Jde(u);return Te.jsx(efe,{as:i,className:ln(c.root,l),ref:n,ownerState:u,...s})}),vB=tfe,nfe=Object.freeze(Object.defineProperty({__proto__:null,default:vB,getToolbarUtilityClass:gB,toolbarClasses:Qde},Symbol.toStringTag,{value:"Module"})),yB=kr(Te.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),bB=kr(Te.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),rfe=ge.forwardRef(function(t,n){const{backIconButtonProps:r,count:l,disabled:i=!1,getItemAriaLabel:o,nextIconButtonProps:a,onPageChange:s,page:u,rowsPerPage:c,showFirstButton:d,showLastButton:f,slots:p={},slotProps:h={},...g}=t,b=Tc(),v=z=>{s(z,0)},m=z=>{s(z,u-1)},y=z=>{s(z,u+1)},x=z=>{s(z,Math.max(0,Math.ceil(l/c)-1))},_=p.firstButton??Fo,w=p.lastButton??Fo,S=p.nextButton??Fo,k=p.previousButton??Fo,C=p.firstButtonIcon??$ce,T=p.lastButtonIcon??Nce,M=p.nextButtonIcon??bB,O=p.previousButtonIcon??yB,D=b?w:_,P=b?S:k,E=b?k:S,I=b?_:w,A=b?h.lastButton:h.firstButton,F=b?h.nextButton:h.previousButton,j=b?h.previousButton:h.nextButton,B=b?h.firstButton:h.lastButton;return Te.jsxs("div",{ref:n,...g,children:[d&&Te.jsx(D,{onClick:v,disabled:i||u===0,"aria-label":o("first",u),title:o("first",u),...A,children:b?Te.jsx(T,{...h.lastButtonIcon}):Te.jsx(C,{...h.firstButtonIcon})}),Te.jsx(P,{onClick:m,disabled:i||u===0,color:"inherit","aria-label":o("previous",u),title:o("previous",u),...F??r,children:b?Te.jsx(M,{...h.nextButtonIcon}):Te.jsx(O,{...h.previousButtonIcon})}),Te.jsx(E,{onClick:y,disabled:i||(l!==-1?u>=Math.ceil(l/c)-1:!1),color:"inherit","aria-label":o("next",u),title:o("next",u),...j??a,children:b?Te.jsx(O,{...h.previousButtonIcon}):Te.jsx(M,{...h.nextButtonIcon})}),f&&Te.jsx(I,{onClick:x,disabled:i||u>=Math.ceil(l/c)-1,"aria-label":o("last",u),title:o("last",u),...B,children:b?Te.jsx(C,{...h.firstButtonIcon}):Te.jsx(T,{...h.lastButtonIcon})})]})});function xB(e){return gn("MuiTablePagination",e)}const afe=fn("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),Ed=afe;var _7;const ofe=Dt(Mi,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(Fn(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),ife=Dt(vB,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({[`& .${Ed.actions}`]:t.actions,...t.toolbar})})(Fn(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Ed.actions}`]:{flexShrink:0,marginLeft:20}}))),lfe=Dt("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),sfe=Dt("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(Fn(({theme:e})=>({...e.typography.body2,flexShrink:0}))),ufe=Dt(Tf,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({[`& .${Ed.selectIcon}`]:t.selectIcon,[`& .${Ed.select}`]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Ed.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),cfe=Dt(Yh,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),dfe=Dt("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(Fn(({theme:e})=>({...e.typography.body2,flexShrink:0})));function ffe({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function pfe(e){return`Go to ${e} page`}const hfe=e=>{const{classes:t}=e;return vn({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},xB,t)},mfe=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiTablePagination"}),{ActionsComponent:l=rfe,backIconButtonProps:i,className:o,colSpan:a,component:s=Mi,count:u,disabled:c=!1,getItemAriaLabel:d=pfe,labelDisplayedRows:f=ffe,labelRowsPerPage:p="Rows per page:",nextIconButtonProps:h,onPageChange:g,onRowsPerPageChange:b,page:v,rowsPerPage:m,rowsPerPageOptions:y=[10,25,50,100],SelectProps:x={},showFirstButton:_=!1,showLastButton:w=!1,slotProps:S={},slots:k={},...C}=r,T=r,M=hfe(T),O=(S==null?void 0:S.select)??x,D=O.native?"option":cfe;let P;(s===Mi||s==="td")&&(P=a||1e3);const E=ls(O.id),I=ls(O.labelId),A=()=>u===-1?(v+1)*m:m===-1?u:Math.min(u,(v+1)*m);return Te.jsx(ofe,{colSpan:P,ref:n,as:s,ownerState:T,className:ln(M.root,o),...C,children:Te.jsxs(ife,{className:M.toolbar,children:[Te.jsx(lfe,{className:M.spacer}),y.length>1&&Te.jsx(sfe,{className:M.selectLabel,id:I,children:p}),y.length>1&&Te.jsx(ufe,{variant:"standard",...!O.variant&&{input:_7||(_7=Te.jsx(Pb,{}))},value:m,onChange:b,id:E,labelId:I,...O,classes:{...O.classes,root:ln(M.input,M.selectRoot,(O.classes||{}).root),select:ln(M.select,(O.classes||{}).select),icon:ln(M.selectIcon,(O.classes||{}).icon)},disabled:c,children:y.map(F=>ge.createElement(D,{...!_y(D)&&{ownerState:T},className:M.menuItem,key:F.label?F.label:F,value:F.value?F.value:F},F.label?F.label:F))}),Te.jsx(dfe,{className:M.displayedRows,children:f({from:u===0?0:v*m+1,to:A(),count:u===-1?-1:u,page:v})}),Te.jsx(l,{className:M.actions,backIconButtonProps:i,count:u,nextIconButtonProps:h,onPageChange:g,page:v,rowsPerPage:m,showFirstButton:_,showLastButton:w,slotProps:S.actions,slots:k.actions,getItemAriaLabel:d,disabled:c})]})})}),gfe=mfe,vfe=Object.freeze(Object.defineProperty({__proto__:null,default:gfe,getTablePaginationUtilityClass:xB,tablePaginationClasses:Ed},Symbol.toStringTag,{value:"Module"}));function wB(e){return gn("MuiTableRow",e)}const yfe=fn("MuiTableRow",["root","selected","hover","head","footer"]),zS=yfe,bfe=e=>{const{classes:t,selected:n,hover:r,head:l,footer:i}=e;return vn({root:["root",n&&"selected",r&&"hover",l&&"head",i&&"footer"]},wB,t)},xfe=Dt("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(Fn(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${zS.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${zS.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ar(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ar(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),T7="tr",wfe=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiTableRow"}),{className:l,component:i=T7,hover:o=!1,selected:a=!1,...s}=r,u=ge.useContext(pg),c={...r,component:i,hover:o,selected:a,head:u&&u.variant==="head",footer:u&&u.variant==="footer"},d=bfe(c);return Te.jsx(xfe,{as:i,ref:n,className:ln(d.root,l),role:i===T7?null:"row",ownerState:c,...s})}),Cm=wfe,_fe=Object.freeze(Object.defineProperty({__proto__:null,default:Cm,getTableRowUtilityClass:wB,tableRowClasses:zS},Symbol.toStringTag,{value:"Module"})),Tfe=kr(Te.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function _B(e){return gn("MuiTableSortLabel",e)}const Sfe=fn("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc","directionDesc","directionAsc"]),yv=Sfe,kfe=e=>{const{classes:t,direction:n,active:r}=e,l={root:["root",r&&"active",`direction${Qt(n)}`],icon:["icon",`iconDirection${Qt(n)}`]};return vn(l,_B,t)},Cfe=Dt(Nl,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})(Fn(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${yv.icon}`]:{opacity:.5}},[`&.${yv.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${yv.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}}))),Mfe=Dt("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${Qt(n.direction)}`]]}})(Fn(({theme:e})=>({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none",variants:[{props:{direction:"desc"},style:{transform:"rotate(0deg)"}},{props:{direction:"asc"},style:{transform:"rotate(180deg)"}}]}))),Pfe=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiTableSortLabel"}),{active:l=!1,children:i,className:o,direction:a="asc",hideSortIcon:s=!1,IconComponent:u=Tfe,...c}=r,d={...r,active:l,direction:a,hideSortIcon:s,IconComponent:u},f=kfe(d);return Te.jsxs(Cfe,{className:ln(f.root,o),component:"span",disableRipple:!0,ownerState:d,ref:n,...c,children:[i,s&&!l?null:Te.jsx(Mfe,{as:u,className:ln(f.icon),ownerState:d})]})}),Ofe=Pfe,Afe=Object.freeze(Object.defineProperty({__proto__:null,default:Ofe,getTableSortLabelUtilityClass:_B,tableSortLabelClasses:yv},Symbol.toStringTag,{value:"Module"}));function Dfe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Efe(e,t,n,r={},l=()=>{}){const{ease:i=Dfe,duration:o=300}=r;let a=null;const s=t[e];let u=!1;const c=()=>{u=!0},d=f=>{if(u){l(new Error("Animation cancelled"));return}a===null&&(a=f);const p=Math.min(1,(f-a)/o);if(t[e]=i(p)*(n-s)+s,p>=1){requestAnimationFrame(()=>{l(null)});return}requestAnimationFrame(d)};return s===n?(l(new Error("Element already at target position")),c):(requestAnimationFrame(d),c)}const Rfe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Lfe(e){const{onChange:t,...n}=e,r=ge.useRef(),l=ge.useRef(null),i=()=>{r.current=l.current.offsetHeight-l.current.clientHeight};return Vo(()=>{const o=ug(()=>{const s=r.current;i(),s!==r.current&&t(r.current)}),a=Ni(l.current);return a.addEventListener("resize",o),()=>{o.clear(),a.removeEventListener("resize",o)}},[t]),ge.useEffect(()=>{i(),t(r.current)},[t]),Te.jsx("div",{style:Rfe,ref:l,...n})}function Ife(e){return gn("MuiTabScrollButton",e)}const $fe=fn("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Nfe=e=>{const{classes:t,orientation:n,disabled:r}=e;return vn({root:["root",n,r&&"disabled"]},Ife,t)},Ffe=Dt(Nl,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${$fe.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),jfe=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiTabScrollButton"}),{className:l,slots:i={},slotProps:o={},direction:a,orientation:s,disabled:u,...c}=r,d=Tc(),f={isRtl:d,...r},p=Nfe(f),h=i.StartScrollButtonIcon??yB,g=i.EndScrollButtonIcon??bB,b=ic({elementType:h,externalSlotProps:o.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f}),v=ic({elementType:g,externalSlotProps:o.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f});return Te.jsx(Ffe,{component:"div",className:ln(p.root,l),ref:n,role:null,ownerState:f,tabIndex:null,...c,style:{...c.style,...s==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${d?-90:90}deg)`}},children:a==="left"?Te.jsx(h,{...b}):Te.jsx(g,{...v})})});function zfe(e){return gn("MuiTabs",e)}const bv=fn("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),S7=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,k7=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,T0=(e,t,n)=>{let r=!1,l=n(e,t);for(;l;){if(l===e.firstChild){if(r)return;r=!0}const i=l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||i)l=n(e,l);else{l.focus();return}}},Bfe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:l,scrollableY:i,centered:o,scrollButtonsHideMobile:a,classes:s}=e;return vn({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",l&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",o&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[l&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},zfe,s)},Wfe=Dt("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${bv.scrollButtons}`]:t.scrollButtons},{[`& .${bv.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(Fn(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${bv.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),qfe=Dt("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),Ufe=Dt("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),Hfe=Dt("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(Fn(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),Vfe=Dt(Lfe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),C7={},TB=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiTabs"}),l=pi(),i=Tc(),{"aria-label":o,"aria-labelledby":a,action:s,centered:u=!1,children:c,className:d,component:f="div",allowScrollButtonsMobile:p=!1,indicatorColor:h="primary",onChange:g,orientation:b="horizontal",ScrollButtonComponent:v=jfe,scrollButtons:m="auto",selectionFollowsFocus:y,slots:x={},slotProps:_={},TabIndicatorProps:w={},TabScrollButtonProps:S={},textColor:k="primary",value:C,variant:T="standard",visibleScrollbar:M=!1,...O}=r,D=T==="scrollable",P=b==="vertical",E=P?"scrollTop":"scrollLeft",I=P?"top":"left",A=P?"bottom":"right",F=P?"clientHeight":"clientWidth",j=P?"height":"width",B={...r,component:f,allowScrollButtonsMobile:p,indicatorColor:h,orientation:b,vertical:P,scrollButtons:m,textColor:k,variant:T,visibleScrollbar:M,fixed:!D,hideScrollbar:D&&!M,scrollableX:D&&!P,scrollableY:D&&P,centered:u&&!D,scrollButtonsHideMobile:!p},z=Bfe(B),N=ic({elementType:x.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:B}),R=ic({elementType:x.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:B}),[q,Y]=ge.useState(!1),[L,W]=ge.useState(C7),[H,G]=ge.useState(!1),[te,ee]=ge.useState(!1),[U,Q]=ge.useState(!1),[V,X]=ge.useState({overflow:"hidden",scrollbarWidth:0}),K=new Map,ne=ge.useRef(null),ae=ge.useRef(null),ie=()=>{const ye=ne.current;let Se;if(ye){const Le=ye.getBoundingClientRect();Se={clientWidth:ye.clientWidth,scrollLeft:ye.scrollLeft,scrollTop:ye.scrollTop,scrollWidth:ye.scrollWidth,top:Le.top,bottom:Le.bottom,left:Le.left,right:Le.right}}let Ae;if(ye&&C!==!1){const Le=ae.current.children;if(Le.length>0){const Re=Le[K.get(C)];Ae=Re?Re.getBoundingClientRect():null}}return{tabsMeta:Se,tabMeta:Ae}},se=ho(()=>{const{tabsMeta:ye,tabMeta:Se}=ie();let Ae=0,Le;P?(Le="top",Se&&ye&&(Ae=Se.top-ye.top+ye.scrollTop)):(Le=i?"right":"left",Se&&ye&&(Ae=(i?-1:1)*(Se[Le]-ye[Le]+ye.scrollLeft)));const Re={[Le]:Ae,[j]:Se?Se[j]:0};if(typeof L[Le]!="number"||typeof L[j]!="number")W(Re);else{const Ie=Math.abs(L[Le]-Re[Le]),Ne=Math.abs(L[j]-Re[j]);(Ie>=1||Ne>=1)&&W(Re)}}),pe=(ye,{animation:Se=!0}={})=>{Se?Efe(E,ne.current,ye,{duration:l.transitions.duration.standard}):ne.current[E]=ye},ke=ye=>{let Se=ne.current[E];P?Se+=ye:Se+=ye*(i?-1:1),pe(Se)},Ce=()=>{const ye=ne.current[F];let Se=0;const Ae=Array.from(ae.current.children);for(let Le=0;Leye){Le===0&&(Se=ye);break}Se+=Re[F]}return Se},Oe=()=>{ke(-1*Ce())},Pe=()=>{ke(Ce())},ce=ge.useCallback(ye=>{X({overflow:null,scrollbarWidth:ye})},[]),we=()=>{const ye={};ye.scrollbarSizeListener=D?Te.jsx(Vfe,{onChange:ce,className:ln(z.scrollableX,z.hideScrollbar)}):null;const Ae=D&&(m==="auto"&&(H||te)||m===!0);return ye.scrollButtonStart=Ae?Te.jsx(v,{slots:{StartScrollButtonIcon:x.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:N},orientation:b,direction:i?"right":"left",onClick:Oe,disabled:!H,...S,className:ln(z.scrollButtons,S.className)}):null,ye.scrollButtonEnd=Ae?Te.jsx(v,{slots:{EndScrollButtonIcon:x.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:R},orientation:b,direction:i?"left":"right",onClick:Pe,disabled:!te,...S,className:ln(z.scrollButtons,S.className)}):null,ye},Z=ho(ye=>{const{tabsMeta:Se,tabMeta:Ae}=ie();if(!(!Ae||!Se)){if(Ae[I]Se[A]){const Le=Se[E]+(Ae[A]-Se[A]);pe(Le,{animation:ye})}}}),re=ho(()=>{D&&m!==!1&&Q(!U)});ge.useEffect(()=>{const ye=ug(()=>{ne.current&&se()});let Se;const Ae=Ie=>{Ie.forEach(Ne=>{Ne.removedNodes.forEach(ze=>{Se==null||Se.unobserve(ze)}),Ne.addedNodes.forEach(ze=>{Se==null||Se.observe(ze)})}),ye(),re()},Le=Ni(ne.current);Le.addEventListener("resize",ye);let Re;return typeof ResizeObserver<"u"&&(Se=new ResizeObserver(ye),Array.from(ae.current.children).forEach(Ie=>{Se.observe(Ie)})),typeof MutationObserver<"u"&&(Re=new MutationObserver(Ae),Re.observe(ae.current,{childList:!0})),()=>{ye.clear(),Le.removeEventListener("resize",ye),Re==null||Re.disconnect(),Se==null||Se.disconnect()}},[se,re]),ge.useEffect(()=>{const ye=Array.from(ae.current.children),Se=ye.length;if(typeof IntersectionObserver<"u"&&Se>0&&D&&m!==!1){const Ae=ye[0],Le=ye[Se-1],Re={root:ne.current,threshold:.99},Ie=We=>{G(!We[0].isIntersecting)},Ne=new IntersectionObserver(Ie,Re);Ne.observe(Ae);const ze=We=>{ee(!We[0].isIntersecting)},qe=new IntersectionObserver(ze,Re);return qe.observe(Le),()=>{Ne.disconnect(),qe.disconnect()}}},[D,m,U,c==null?void 0:c.length]),ge.useEffect(()=>{Y(!0)},[]),ge.useEffect(()=>{se()}),ge.useEffect(()=>{Z(C7!==L)},[Z,L]),ge.useImperativeHandle(s,()=>({updateIndicator:se,updateScrollButtons:re}),[se,re]);const de=Te.jsx(Hfe,{...w,className:ln(z.indicator,w.className),ownerState:B,style:{...L,...w.style}});let _e=0;const ue=ge.Children.map(c,ye=>{if(!ge.isValidElement(ye))return null;const Se=ye.props.value===void 0?_e:ye.props.value;K.set(Se,_e);const Ae=Se===C;return _e+=1,ge.cloneElement(ye,{fullWidth:T==="fullWidth",indicator:Ae&&!q&&de,selected:Ae,selectionFollowsFocus:y,onChange:g,textColor:k,value:Se,..._e===1&&C===!1&&!ye.props.tabIndex?{tabIndex:0}:{}})}),me=ye=>{const Se=ae.current,Ae=qa(Se).activeElement;if(Ae.getAttribute("role")!=="tab")return;let Re=b==="horizontal"?"ArrowLeft":"ArrowUp",Ie=b==="horizontal"?"ArrowRight":"ArrowDown";switch(b==="horizontal"&&i&&(Re="ArrowRight",Ie="ArrowLeft"),ye.key){case Re:ye.preventDefault(),T0(Se,Ae,k7);break;case Ie:ye.preventDefault(),T0(Se,Ae,S7);break;case"Home":ye.preventDefault(),T0(Se,null,S7);break;case"End":ye.preventDefault(),T0(Se,null,k7);break}},xe=we();return Te.jsxs(Wfe,{className:ln(z.root,d),ownerState:B,ref:n,as:f,...O,children:[xe.scrollButtonStart,xe.scrollbarSizeListener,Te.jsxs(qfe,{className:z.scroller,ownerState:B,style:{overflow:V.overflow,[P?`margin${i?"Left":"Right"}`:"marginBottom"]:M?void 0:-V.scrollbarWidth},ref:ne,children:[Te.jsx(Ufe,{"aria-label":o,"aria-labelledby":a,"aria-orientation":b==="vertical"?"vertical":null,className:z.flexContainer,ownerState:B,onKeyDown:me,ref:ae,role:"tablist",children:ue}),q&&de]}),xe.scrollButtonEnd]})});function SB(e){return gn("MuiTextField",e)}const Gfe=fn("MuiTextField",["root"]),Yfe=Gfe,Xfe={standard:ky,filled:Sy,outlined:My},Kfe=e=>{const{classes:t}=e;return vn({root:["root"]},SB,t)},Zfe=Dt(zz,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Qfe=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiTextField"}),{autoComplete:l,autoFocus:i=!1,children:o,className:a,color:s="primary",defaultValue:u,disabled:c=!1,error:d=!1,FormHelperTextProps:f,fullWidth:p=!1,helperText:h,id:g,InputLabelProps:b,inputProps:v,InputProps:m,inputRef:y,label:x,maxRows:_,minRows:w,multiline:S=!1,name:k,onBlur:C,onChange:T,onFocus:M,placeholder:O,required:D=!1,rows:P,select:E=!1,SelectProps:I,slots:A={},slotProps:F={},type:j,value:B,variant:z="outlined",...N}=r,R={...r,autoFocus:i,color:s,disabled:c,error:d,fullWidth:p,multiline:S,required:D,select:E,variant:z},q=Kfe(R),Y=ls(g),L=h&&Y?`${Y}-helper-text`:void 0,W=x&&Y?`${Y}-label`:void 0,H=Xfe[z],G={slots:A,slotProps:{input:m,inputLabel:b,htmlInput:v,formHelperText:f,select:I,...F}},te={},ee=G.slotProps.inputLabel;z==="outlined"&&(ee&&typeof ee.shrink<"u"&&(te.notched=ee.shrink),te.label=x),E&&((!I||!I.native)&&(te.id=void 0),te["aria-describedby"]=void 0);const[U,Q]=Io("input",{elementType:H,externalForwardedProps:G,additionalProps:te,ownerState:R}),[V,X]=Io("inputLabel",{elementType:Kz,externalForwardedProps:G,ownerState:R}),[K,ne]=Io("htmlInput",{elementType:"input",externalForwardedProps:G,ownerState:R}),[ae,ie]=Io("formHelperText",{elementType:Uz,externalForwardedProps:G,ownerState:R}),[se,pe]=Io("select",{elementType:Tf,externalForwardedProps:G,ownerState:R}),ke=Te.jsx(U,{"aria-describedby":L,autoComplete:l,autoFocus:i,defaultValue:u,fullWidth:p,multiline:S,name:k,rows:P,maxRows:_,minRows:w,type:j,value:B,id:Y,inputRef:y,onBlur:C,onChange:T,onFocus:M,placeholder:O,inputProps:ne,slots:{input:A.htmlInput?K:void 0},...Q});return Te.jsxs(Zfe,{className:ln(q.root,a),disabled:c,error:d,fullWidth:p,ref:n,required:D,color:s,variant:z,ownerState:R,...N,children:[x!=null&&x!==""&&Te.jsx(V,{htmlFor:Y,id:W,...X,children:x}),E?Te.jsx(se,{"aria-describedby":L,id:Y,labelId:W,value:B,input:ke,...pe,children:o}):ke,h&&Te.jsx(ae,{id:L,...ie,children:h})]})}),Jfe=Qfe,epe=Object.freeze(Object.defineProperty({__proto__:null,default:Jfe,getTextFieldUtilityClass:SB,textFieldClasses:Yfe},Symbol.toStringTag,{value:"Module"})),{transitions:Kc}=Sc(),gp="#ed0500",tpe=Sc({cssVariables:{colorSchemeSelector:"class"},colorSchemes:{light:{palette:{text:{primary:"#09090b"},primary:{main:"#09090b",light:cv[200]},secondary:{main:gp,dark:"#c10400",light:cv[200]}}},dark:{palette:{text:{primary:"#fafafa"},primary:{main:"#fafafa",light:cv[900]},secondary:{main:gp}}}},shape:{borderRadius:5},components:{MuiInputBase:{styleOverrides:{input:{"&:-webkit-autofill":{transitionDelay:"9999s",transitionProperty:"background-color, box-shadow, color"}}}},MuiLink:{styleOverrides:{root:{transition:Kc.create("color",{duration:Kc.duration.enteringScreen}),"&:hover":{color:gp}}}},MuiTabs:{styleOverrides:{flexContainer:{gap:"10px"},indicator:{backgroundColor:gp}}},MuiTab:{defaultProps:{color:"secondary"},styleOverrides:{root:{fontSize:"1rem",borderRadius:"5px"}}},MuiIconButton:{styleOverrides:{root:{transition:Kc.create("color",{duration:Kc.duration.enteringScreen}),color:"inherit","&:hover":{color:gp}}}},MuiSwitch:{defaultProps:{color:"secondary"}},MuiToggleButton:{defaultProps:{color:"secondary"},styleOverrides:{root:{transition:Kc.create("color",{duration:Kc.duration.enteringScreen}),color:"inherit","&.Mui-disabled":{border:"unset"}}}},MuiLinearProgress:{defaultProps:{color:"secondary"}},MuiPaper:{defaultProps:{sx:{border:"1px solid",borderColor:e=>e.palette.divider}},styleOverrides:{root:{boxShadow:"unset"}}}},typography:{fontFamily:["-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),button:{fontWeight:"bold",textTransform:"none"}}}),M7=kr(Te.jsx("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"}),"DarkMode"),P7=kr(Te.jsx("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"}),"LightMode"),hg=()=>{const{mode:e}=QM(),t=vb("(prefers-color-scheme: dark)");return!e||e==="system"?t?"dark":"light":e},v5=()=>{const e=hg();return ge.useMemo(()=>e==="dark"?{tooltip:{container:{background:"#000",color:"#fff"}}}:void 0,[e])},npe=()=>{const{mode:e,setMode:t}=QM(),n=hg(),[r,l]=ge.useState(null),i=u=>l(u.currentTarget),o=()=>l(null),a=!!r,s=a?"simple-popover":void 0;return e?Te.jsxs("div",{children:[Te.jsx(Fo,{"aria-describedby":s,onClick:i,children:n==="dark"?Te.jsx(M7,{}):Te.jsx(P7,{})}),Te.jsx(Ab,{id:s,open:a,anchorEl:r,onClose:o,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:Te.jsxs(Tf,{size:"small",value:e,onChange:u=>{t(u.target.value),o()},children:[Te.jsx(Yh,{value:"system",children:"System"}),Te.jsx(Yh,{value:"light",children:"Light"}),Te.jsx(Yh,{value:"dark",children:"Dark"})]})})]}):Te.jsx(Fo,{"aria-describedby":s,children:n==="dark"?Te.jsx(M7,{}):Te.jsx(P7,{})})};class rpe{constructor(t){Cs(this,"cachedGraphs");Cs(this,"cachedWidgets");Cs(this,"inner");this.inner=t,this.cachedGraphs=new Map,this.cachedWidgets=new Map}async getAdditionGraphData(t){let n=this.cachedGraphs.get(t);return n!==void 0||(n=await this.inner.getAdditionGraphData(t),this.cachedGraphs.set(t,n)),n}async getAdditionWidgetData(t){let n=this.cachedWidgets.get(t);return n!==void 0||(n=await this.inner.getAdditionWidgetData(t),this.cachedWidgets.set(t,n)),n}}const y5=Xe.createContext({getAdditionGraphData:()=>new Promise((e,t)=>t("default context doesn't contain methods to get data")),getAdditionWidgetData:()=>new Promise((e,t)=>t("default context doesn't contain methods to get data"))});function ape(e){return new rpe(e)}var xv=(e=>(e[e.Small=0]="Small",e[e.Medium=1]="Medium",e[e.Big=2]="Big",e))(xv||{}),kB={exports:{}};(function(e,t){/*! For license information please see plotly-cartesian.min.js.LICENSE.txt */(function(n,r){e.exports=r()})(self,function(){return function(){var n={98847:function(i,o,a){var s=a(71828),u={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var c in u){var d=c.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");s.addStyleRule(d,u[c])}},98222:function(i,o,a){i.exports=a(82887)},27206:function(i,o,a){i.exports=a(60822)},5224:function(i,o,a){i.exports=a(83832)},59509:function(i,o,a){i.exports=a(72201)},49866:function(i,o,a){i.exports=a(99442)},19548:function(i,o,a){i.exports=a(8729)},61039:function(i,o,a){i.exports=a(14382)},24296:function(i,o,a){i.exports=a(43102)},58872:function(i,o,a){i.exports=a(92165)},65591:function(i,o,a){i.exports=a(36071)},69738:function(i,o,a){i.exports=a(43905)},92650:function(i,o,a){i.exports=a(35902)},73434:function(i,o,a){i.exports=a(94507)},760:function(i,o,a){var s=a(19548);s.register([a(27206),a(5224),a(58872),a(65591),a(69738),a(92650),a(49866),a(25743),a(6197),a(73434),a(54201),a(98222),a(61039),a(24296),a(66398),a(59509)]),i.exports=s},54201:function(i,o,a){i.exports=a(58810)},25743:function(i,o,a){i.exports=a(52979)},66398:function(i,o,a){i.exports=a(32275)},6197:function(i,o,a){i.exports=a(47462)},82884:function(i){i.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},50215:function(i,o,a){var s=a(82884),u=a(41940),c=a(85555),d=a(44467).templatedArray;a(24695),i.exports=d("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:u({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:s.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:s.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",c.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",c.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",c.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",c.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:u({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},3749:function(i,o,a){var s=a(71828),u=a(89298),c=a(92605).draw;function d(p){var h=p._fullLayout;s.filterVisible(h.annotations).forEach(function(g){var b=u.getFromId(p,g.xref),v=u.getFromId(p,g.yref),m=u.getRefType(g.xref),y=u.getRefType(g.yref);g._extremes={},m==="range"&&f(g,b),y==="range"&&f(g,v)})}function f(p,h){var g,b=h._id,v=b.charAt(0),m=p[v],y=p["a"+v],x=p[v+"ref"],_=p["a"+v+"ref"],w=p["_"+v+"padplus"],S=p["_"+v+"padminus"],k={x:1,y:-1}[v]*p[v+"shift"],C=3*p.arrowsize*p.arrowwidth||0,T=C+k,M=C-k,O=3*p.startarrowsize*p.arrowwidth||0,D=O+k,P=O-k;if(_===x){var E=u.findExtremes(h,[h.r2c(m)],{ppadplus:T,ppadminus:M}),I=u.findExtremes(h,[h.r2c(y)],{ppadplus:Math.max(w,D),ppadminus:Math.max(S,P)});g={min:[E.min[0],I.min[0]],max:[E.max[0],I.max[0]]}}else D=y?D+y:D,P=y?P-y:P,g=u.findExtremes(h,[h.r2c(m)],{ppadplus:Math.max(w,T,D),ppadminus:Math.max(S,M,P)});p._extremes[b]=g}i.exports=function(p){var h=p._fullLayout;if(s.filterVisible(h.annotations).length&&p._fullData.length)return s.syncOrAsync([c,d],p)}},44317:function(i,o,a){var s=a(71828),u=a(73972),c=a(44467).arrayEditor;function d(p,h){var g,b,v,m,y,x,_,w=p._fullLayout.annotations,S=[],k=[],C=[],T=(h||[]).length;for(g=0;g0||g.explicitOff.length>0},onClick:function(p,h){var g,b,v=d(p,h),m=v.on,y=v.off.concat(v.explicitOff),x={},_=p._fullLayout.annotations;if(m.length||y.length){for(g=0;g.6666666666666666?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[rt]}for(var ye=!1,Se=["x","y"],Ae=0;Ae1)&&(Ge===We?((et=ot.r2fraction(T["a"+qe]))<0||et>1)&&(ye=!0):ye=!0),Le=ot._offset+ot.r2p(T[qe]),Ne=.5}else{var ct=St==="domain";qe==="x"?(Ie=T[qe],Le=ct?ot._offset+ot._length*Ie:Le=F.l+F.w*Ie):(Ie=1-T[qe],Le=ct?ot._offset+ot._length*Ie:Le=F.t+F.h*Ie),Ne=T.showarrow?.5:Ie}if(T.showarrow){it.head=Le;var ht=T["a"+qe];if(ze=st*xe(.5,T.xanchor)-bt*xe(.5,T.yanchor),Ge===We){var $t=p.getRefType(Ge);$t==="domain"?(qe==="y"&&(ht=1-ht),it.tail=ot._offset+ot._length*ht):$t==="paper"?qe==="y"?(ht=1-ht,it.tail=F.t+F.h*ht):it.tail=F.l+F.w*ht:it.tail=ot._offset+ot.r2p(ht),Re=ze}else it.tail=Le+ht,Re=ze+ht;it.text=it.tail+ze;var kt=A[qe==="x"?"width":"height"];if(We==="paper"&&(it.head=d.constrain(it.head,1,kt-1)),Ge==="pixel"){var Wt=-Math.max(it.tail-3,it.text),wt=Math.min(it.tail+3,it.text)-kt;Wt>0?(it.tail+=Wt,it.text+=Wt):wt>0&&(it.tail-=wt,it.text-=wt)}it.tail+=tt,it.head+=tt}else Re=ze=Be*xe(Ne,je),it.text=Le+ze;it.text+=tt,ze+=tt,Re+=tt,T["_"+qe+"padplus"]=Be/2+Re,T["_"+qe+"padminus"]=Be/2-Re,T["_"+qe+"size"]=Be,T["_"+qe+"shift"]=ze}if(ye)ee.remove();else{var be=0,Me=0;if(T.align!=="left"&&(be=(de-Z)*(T.align==="center"?.5:1)),T.valign!=="top"&&(Me=(_e-re)*(T.valign==="middle"?.5:1)),ce)Pe.select("svg").attr({x:V+be-1,y:V+Me}).call(g.setClipUrl,K?q:null,C);else{var Ve=V+Me-we.top,Ue=V+be-we.left;se.call(v.positionText,Ue,Ve).call(g.setClipUrl,K?q:null,C)}ne.select("rect").call(g.setRect,V,V,de,_e),X.call(g.setRect,U/2,U/2,ue-U,me-U),ee.call(g.setTranslate,Math.round(Y.x.text-ue/2),Math.round(Y.y.text-me/2)),H.attr({transform:"rotate("+L+","+Y.x.text+","+Y.y.text+")"});var Ze,Ye=function(Qe,rt){W.selectAll(".annotation-arrow-g").remove();var ut=Y.x.head,gt=Y.y.head,nt=Y.x.tail+Qe,Nt=Y.y.tail+rt,Gt=Y.x.text+Qe,Ct=Y.y.text+rt,Ft=d.rotationXYMatrix(L,Gt,Ct),Et=d.apply2DTransform(Ft),mt=d.apply2DTransform2(Ft),pt=+X.attr("width"),yt=+X.attr("height"),qt=Gt-.5*pt,Rt=qt+pt,jt=Ct-.5*yt,Tt=jt+yt,Pt=[[qt,jt,qt,Tt],[qt,Tt,Rt,Tt],[Rt,Tt,Rt,jt],[Rt,jt,qt,jt]].map(mt);if(!Pt.reduce(function(cn,hn){return cn^!!d.segmentsIntersect(ut,gt,ut+1e6,gt+1e6,hn[0],hn[1],hn[2],hn[3])},!1)){Pt.forEach(function(cn){var hn=d.segmentsIntersect(nt,Nt,ut,gt,cn[0],cn[1],cn[2],cn[3]);hn&&(nt=hn.x,Nt=hn.y)});var Ot=T.arrowwidth,It=T.arrowcolor,Lt=T.arrowside,zt=W.append("g").style({opacity:h.opacity(It)}).classed("annotation-arrow-g",!0),Xt=zt.append("path").attr("d","M"+nt+","+Nt+"L"+ut+","+gt).style("stroke-width",Ot+"px").call(h.stroke,h.rgb(It));if(_(Xt,Lt,T),j.annotationPosition&&Xt.node().parentNode&&!O){var Kt=ut,Bt=gt;if(T.standoff){var Ut=Math.sqrt(Math.pow(ut-nt,2)+Math.pow(gt-Nt,2));Kt+=T.standoff*(nt-ut)/Ut,Bt+=T.standoff*(Nt-gt)/Ut}var on,yn,pn=zt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(nt-Kt)+","+(Nt-Bt),transform:f(Kt,Bt)}).style("stroke-width",Ot+6+"px").call(h.stroke,"rgba(0,0,0,0)").call(h.fill,"rgba(0,0,0,0)");y.init({element:pn.node(),gd:C,prepFn:function(){var cn=g.getTranslate(ee);on=cn.x,yn=cn.y,D&&D.autorange&&z(D._name+".autorange",!0),P&&P.autorange&&z(P._name+".autorange",!0)},moveFn:function(cn,hn){var Jt=Et(on,yn),_n=Jt[0]+cn,sn=Jt[1]+hn;ee.call(g.setTranslate,_n,sn),N("x",S(D,cn,"x",F,T)),N("y",S(P,hn,"y",F,T)),T.axref===T.xref&&N("ax",S(D,cn,"ax",F,T)),T.ayref===T.yref&&N("ay",S(P,hn,"ay",F,T)),zt.attr("transform",f(cn,hn)),H.attr({transform:"rotate("+L+","+_n+","+sn+")"})},doneFn:function(){u.call("_guiRelayout",C,R());var cn=document.querySelector(".js-notes-box-panel");cn&&cn.redraw(cn.selectedObj)}})}}};T.showarrow&&Ye(0,0),G&&y.init({element:ee.node(),gd:C,prepFn:function(){Ze=H.attr("transform")},moveFn:function(Qe,rt){var ut="pointer";if(T.showarrow)T.axref===T.xref?N("ax",S(D,Qe,"ax",F,T)):N("ax",T.ax+Qe),T.ayref===T.yref?N("ay",S(P,rt,"ay",F.w,T)):N("ay",T.ay+rt),Ye(Qe,rt);else{if(O)return;var gt,nt;if(D)gt=S(D,Qe,"x",F,T);else{var Nt=T._xsize/F.w,Gt=T.x+(T._xshift-T.xshift)/F.w-Nt/2;gt=y.align(Gt+Qe/F.w,Nt,0,1,T.xanchor)}if(P)nt=S(P,rt,"y",F,T);else{var Ct=T._ysize/F.h,Ft=T.y-(T._yshift+T.yshift)/F.h-Ct/2;nt=y.align(Ft-rt/F.h,Ct,0,1,T.yanchor)}N("x",gt),N("y",nt),D&&P||(ut=y.getCursor(D?.5:gt,P?.5:nt,T.xanchor,T.yanchor))}H.attr({transform:f(Qe,rt)+Ze}),m(ee,ut)},clickFn:function(Qe,rt){T.captureevents&&C.emit("plotly_clickannotation",pe(rt))},doneFn:function(){m(ee),u.call("_guiRelayout",C,R());var Qe=document.querySelector(".js-notes-box-panel");Qe&&Qe.redraw(Qe.selectedObj)}})}}}i.exports={draw:function(C){var T=C._fullLayout;T._infolayer.selectAll(".annotation").remove();for(var M=0;M=0,O=b.indexOf("end")>=0,D=S.backoff*C+v.standoff,P=k.backoff*T+v.startstandoff;if(w.nodeName==="line"){m={x:+g.attr("x1"),y:+g.attr("y1")},y={x:+g.attr("x2"),y:+g.attr("y2")};var E=m.x-y.x,I=m.y-y.y;if(_=(x=Math.atan2(I,E))+Math.PI,D&&P&&D+P>Math.sqrt(E*E+I*I))return void W();if(D){if(D*D>E*E+I*I)return void W();var A=D*Math.cos(x),F=D*Math.sin(x);y.x+=A,y.y+=F,g.attr({x2:y.x,y2:y.y})}if(P){if(P*P>E*E+I*I)return void W();var j=P*Math.cos(x),B=P*Math.sin(x);m.x-=j,m.y-=B,g.attr({x1:m.x,y1:m.y})}}else if(w.nodeName==="path"){var z=w.getTotalLength(),N="";if(z1){v=!0;break}}v?d.fullLayout._infolayer.select(".annotation-"+d.id+'[data-index="'+g+'"]').remove():(b._pdata=u(d.glplot.cameraParams,[f.xaxis.r2l(b.x)*p[0],f.yaxis.r2l(b.y)*p[1],f.zaxis.r2l(b.z)*p[2]]),s(d.graphDiv,b,g,d.id,b._xa,b._ya))}}},2468:function(i,o,a){var s=a(73972),u=a(71828);i.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:a(26997)}}},layoutAttributes:a(26997),handleDefaults:a(20226),includeBasePlot:function(c,d){var f=s.subplotsRegistry.gl3d;if(f)for(var p=f.attrRegex,h=Object.keys(c),g=0;g=0)))return b;if(_===3)y[_]>1&&(y[_]=1);else if(y[_]>=1)return b}var w=Math.round(255*y[0])+", "+Math.round(255*y[1])+", "+Math.round(255*y[2]);return x?"rgba("+w+", "+y[3]+")":"rgb("+w+")"}d.tinyRGB=function(b){var v=b.toRgb();return"rgb("+Math.round(v.r)+", "+Math.round(v.g)+", "+Math.round(v.b)+")"},d.rgb=function(b){return d.tinyRGB(s(b))},d.opacity=function(b){return b?s(b).getAlpha():0},d.addOpacity=function(b,v){var m=s(b).toRgb();return"rgba("+Math.round(m.r)+", "+Math.round(m.g)+", "+Math.round(m.b)+", "+v+")"},d.combine=function(b,v){var m=s(b).toRgb();if(m.a===1)return s(b).toRgbString();var y=s(v||h).toRgb(),x=y.a===1?y:{r:255*(1-y.a)+y.r*y.a,g:255*(1-y.a)+y.g*y.a,b:255*(1-y.a)+y.b*y.a},_={r:x.r*(1-m.a)+m.r*m.a,g:x.g*(1-m.a)+m.g*m.a,b:x.b*(1-m.a)+m.b*m.a};return s(_).toRgbString()},d.contrast=function(b,v,m){var y=s(b);return y.getAlpha()!==1&&(y=s(d.combine(b,h))),(y.isDark()?v?y.lighten(v):h:m?y.darken(m):p).toString()},d.stroke=function(b,v){var m=s(v);b.style({stroke:d.tinyRGB(m),"stroke-opacity":m.getAlpha()})},d.fill=function(b,v){var m=s(v);b.style({fill:d.tinyRGB(m),"fill-opacity":m.getAlpha()})},d.clean=function(b){if(b&&typeof b=="object"){var v,m,y,x,_=Object.keys(b);for(v=0;v<_.length;v++)if(x=b[y=_[v]],y.substr(y.length-5)==="color")if(Array.isArray(x))for(m=0;m0?wt>=Ze:wt<=Ze));be++)wt>Qe&&wt0?wt>=Ze:wt<=Ze));be++)wt>Wt[0]&&wt1){var bt=Math.pow(10,Math.floor(Math.log(st)/Math.LN10));ot*=bt*h.roundUp(st/bt,[2,5,10]),(Math.abs(Z.start)/Z.size+1e-6)%1<2e-6&&(We.tick0=0)}We.dtick=ot}We.domain=R?[ze+V/se.h,ze+ye-V/se.h]:[ze+Q/se.w,ze+ye-Q/se.w],We.setScale(),B.attr("transform",g(Math.round(se.l),Math.round(se.t)));var Be,je=B.select("."+P.cbtitleunshift).attr("transform",g(-Math.round(se.l),-Math.round(se.t))),tt=We.ticklabelposition,it=We.title.font.size,St=B.select("."+P.cbaxis),et=0,ct=0;function ht($t,kt){var Wt={propContainer:We,propName:z._propPrefix+"title",traceIndex:z._traceIndex,_meta:z._meta,placeholder:ie._dfltTitle.colorbar,containerGroup:B.select("."+P.cbtitle)},wt=$t.charAt(0)==="h"?$t.substr(1):"h"+$t;B.selectAll("."+wt+",."+wt+"-math-group").remove(),x.draw(N,$t,b(Wt,kt||{}))}return h.syncOrAsync([c.previousPromises,function(){var $t,kt;(R&&Ge||!R&&!Ge)&&(Oe==="top"&&($t=Q+se.l+Se*X,kt=V+se.t+Ae*(1-ze-ye)+3+.75*it),Oe==="bottom"&&($t=Q+se.l+Se*X,kt=V+se.t+Ae*(1-ze)-3-.25*it),Oe==="right"&&(kt=V+se.t+Ae*K+3+.75*it,$t=Q+se.l+Se*ze),ht(We._id+"title",{attributes:{x:$t,y:kt,"text-anchor":R?"start":"middle"}}))},function(){if(!R&&!Ge||R&&Ge){var $t,kt=B.select("."+P.cbtitle),Wt=kt.select("text"),wt=[-H/2,H/2],be=kt.select(".h"+We._id+"title-math-group").node(),Me=15.6;if(Wt.node()&&(Me=parseInt(Wt.node().style.fontSize,10)*M),be?($t=m.bBox(be),ct=$t.width,(et=$t.height)>Me&&(wt[1]-=(et-Me)/2)):Wt.node()&&!Wt.classed(P.jsPlaceholder)&&($t=m.bBox(Wt.node()),ct=$t.width,et=$t.height),R){if(et){if(et+=5,Oe==="top")We.domain[1]-=et/se.h,wt[1]*=-1;else{We.domain[0]+=et/se.h;var Ve=_.lineCount(Wt);wt[1]+=(1-Ve)*Me}kt.attr("transform",g(wt[0],wt[1])),We.setScale()}}else ct&&(Oe==="right"&&(We.domain[0]+=(ct+it/2)/se.w),kt.attr("transform",g(wt[0],wt[1])),We.setScale())}B.selectAll("."+P.cbfills+",."+P.cblines).attr("transform",R?g(0,Math.round(se.h*(1-We.domain[1]))):g(Math.round(se.w*We.domain[0]),0)),St.attr("transform",R?g(0,Math.round(-se.t)):g(Math.round(-se.l),0));var Ue=B.select("."+P.cbfills).selectAll("rect."+P.cbfill).attr("style","").data(de);Ue.enter().append("rect").classed(P.cbfill,!0).attr("style",""),Ue.exit().remove();var Ze=Pe.map(We.c2p).map(Math.round).sort(function(gt,nt){return gt-nt});Ue.each(function(gt,nt){var Nt=[nt===0?Pe[0]:(de[nt]+de[nt-1])/2,nt===de.length-1?Pe[1]:(de[nt]+de[nt+1])/2].map(We.c2p).map(Math.round);R&&(Nt[1]=h.constrain(Nt[1]+(Nt[1]>Nt[0])?1:-1,Ze[0],Ze[1]));var Gt=s.select(this).attr(R?"x":"y",Le).attr(R?"y":"x",s.min(Nt)).attr(R?"width":"height",Math.max(ue,2)).attr(R?"height":"width",Math.max(s.max(Nt)-s.min(Nt),2));if(z._fillgradient)m.gradient(Gt,N,z._id,R?"vertical":"horizontalreversed",z._fillgradient,"fill");else{var Ct=we(gt).replace("e-","");Gt.attr("fill",u(Ct).toHexString())}});var Ye=B.select("."+P.cblines).selectAll("path."+P.cbline).data(ke.color&&ke.width?_e:[]);Ye.enter().append("path").classed(P.cbline,!0),Ye.exit().remove(),Ye.each(function(gt){var nt=Le,Nt=Math.round(We.c2p(gt))+ke.width/2%1;s.select(this).attr("d","M"+(R?nt+","+Nt:Nt+","+nt)+(R?"h":"v")+ue).call(m.lineGroupStyle,ke.width,ce(gt),ke.dash)}),St.selectAll("g."+We._id+"tick,path").remove();var Qe=Le+ue+(H||0)/2-(z.ticks==="outside"?1:0),rt=f.calcTicks(We),ut=f.getTickSigns(We)[2];return f.drawTicks(N,We,{vals:We.ticks==="inside"?f.clipEnds(We,rt):rt,layer:St,path:f.makeTickPath(We,Qe,ut),transFn:f.makeTransTickFn(We)}),f.drawLabels(N,We,{vals:rt,layer:St,transFn:f.makeTransTickLabelFn(We),labelFns:f.makeLabelFns(We,Qe)})},function(){if(R&&!Ge||!R&&Ge){var $t,kt,Wt=We.position||0,wt=We._offset+We._length/2;if(Oe==="right")kt=wt,$t=se.l+Se*Wt+10+it*(We.showticklabels?1:.5);else if($t=wt,Oe==="bottom"&&(kt=se.t+Ae*Wt+10+(tt.indexOf("inside")===-1?We.tickfont.size:0)+(We.ticks!=="intside"&&z.ticklen||0)),Oe==="top"){var be=Ce.text.split("
").length;kt=se.t+Ae*Wt+10-ue-M*it*be}ht((R?"h":"v")+We._id+"title",{avoid:{selection:s.select(N).selectAll("g."+We._id+"tick"),side:Oe,offsetTop:R?0:se.t,offsetLeft:R?se.l:0,maxShift:R?ie.width:ie.height},attributes:{x:$t,y:kt,"text-anchor":"middle"},transform:{rotate:R?-90:0,offset:0}})}},c.previousPromises,function(){var $t,kt=ue+H/2;tt.indexOf("inside")===-1&&($t=m.bBox(St.node()),kt+=R?$t.width:$t.height),Be=je.select("text");var Wt=0,wt=R&&Oe==="top",be=!R&&Oe==="right",Me=0;if(Be.node()&&!Be.classed(P.jsPlaceholder)){var Ve,Ue=je.select(".h"+We._id+"title-math-group").node();Ue&&(R&&Ge||!R&&!Ge)?(Wt=($t=m.bBox(Ue)).width,Ve=$t.height):(Wt=($t=m.bBox(je.node())).right-se.l-(R?Le:qe),Ve=$t.bottom-se.t-(R?qe:Le),R||Oe!=="top"||(kt+=$t.height,Me=$t.height)),be&&(Be.attr("transform",g(Wt/2+it/2,0)),Wt*=2),kt=Math.max(kt,R?Wt:Ve)}var Ze=2*(R?Q:V)+kt+G+H/2,Ye=0;!R&&Ce.text&&U==="bottom"&&K<=0&&(Ze+=Ye=Ze/2,Me+=Ye),ie._hColorbarMoveTitle=Ye,ie._hColorbarMoveCBTitle=Me;var Qe=G+H,rt=(R?Le:qe)-Qe/2-(R?Q:0),ut=(R?qe:Le)-(R?xe:V+Me-Ye);B.select("."+P.cbbg).attr("x",rt).attr("y",ut).attr(R?"width":"height",Math.max(Ze-Ye,2)).attr(R?"height":"width",Math.max(xe+Qe,2)).call(y.fill,te).call(y.stroke,z.bordercolor).style("stroke-width",G);var gt=be?Math.max(Wt-10,0):0;B.selectAll("."+P.cboutline).attr("x",(R?Le:qe+Q)+gt).attr("y",(R?qe+V-xe:Le)+(wt?et:0)).attr(R?"width":"height",Math.max(ue,2)).attr(R?"height":"width",Math.max(xe-(R?2*V+et:2*Q+gt),2)).call(y.stroke,z.outlinecolor).style({fill:"none","stroke-width":H});var nt=R?Re*Ze:0,Nt=R?0:(1-Ie)*Ze-Me;if(nt=ae?se.l-nt:-nt,Nt=ne?se.t-Nt:-Nt,B.attr("transform",g(nt,Nt)),!R&&(G||u(te).getAlpha()&&!u.equals(ie.paper_bgcolor,te))){var Gt=St.selectAll("text"),Ct=Gt[0].length,Ft=B.select("."+P.cbbg).node(),Et=m.bBox(Ft),mt=m.getTranslate(B);Gt.each(function(Lt,zt){var Xt=Ct-1;if(zt===0||zt===Xt){var Kt,Bt=m.bBox(this),Ut=m.getTranslate(this);if(zt===Xt){var on=Bt.right+Ut.x;(Kt=Et.right+mt.x+qe-G-2+X-on)>0&&(Kt=0)}else if(zt===0){var yn=Bt.left+Ut.x;(Kt=Et.left+mt.x+qe+G+2-yn)<0&&(Kt=0)}Kt&&(Ct<3?this.setAttribute("transform","translate("+Kt+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var pt={},yt=O[ee],qt=D[ee],Rt=O[U],jt=D[U],Tt=Ze-ue;R?(Y==="pixels"?(pt.y=K,pt.t=xe*Rt,pt.b=xe*jt):(pt.t=pt.b=0,pt.yt=K+q*Rt,pt.yb=K-q*jt),W==="pixels"?(pt.x=X,pt.l=Ze*yt,pt.r=Ze*qt):(pt.l=Tt*yt,pt.r=Tt*qt,pt.xl=X-L*yt,pt.xr=X+L*qt)):(Y==="pixels"?(pt.x=X,pt.l=xe*yt,pt.r=xe*qt):(pt.l=pt.r=0,pt.xl=X+q*yt,pt.xr=X-q*qt),W==="pixels"?(pt.y=1-K,pt.t=Ze*Rt,pt.b=Ze*jt):(pt.t=Tt*Rt,pt.b=Tt*jt,pt.yt=K-L*Rt,pt.yb=K+L*jt));var Pt=z.y<.5?"b":"t",Ot=z.x<.5?"l":"r";N._fullLayout._reservedMargin[z._id]={};var It={r:ie.width-rt-nt,l:rt+pt.r,b:ie.height-ut-Nt,t:ut+pt.b};ae&&ne?c.autoMargin(N,z._id,pt):ae?N._fullLayout._reservedMargin[z._id][Pt]=It[Pt]:ne||R?N._fullLayout._reservedMargin[z._id][Ot]=It[Ot]:N._fullLayout._reservedMargin[z._id][Pt]=It[Pt]}],N)}(F,A,E);j&&j.then&&(E._promises||[]).push(j),E._context.edits.colorbarPosition&&function(B,z,N){var R,q,Y,L=z.orientation==="v",W=N._fullLayout._size;p.init({element:B.node(),gd:N,prepFn:function(){R=B.attr("transform"),v(B)},moveFn:function(H,G){B.attr("transform",R+g(H,G)),q=p.align((L?z._uFrac:z._vFrac)+H/W.w,L?z._thickFrac:z._lenFrac,0,1,z.xanchor),Y=p.align((L?z._vFrac:1-z._uFrac)-G/W.h,L?z._lenFrac:z._thickFrac,0,1,z.yanchor);var te=p.getCursor(q,Y,z.xanchor,z.yanchor);v(B,te)},doneFn:function(){if(v(B),q!==void 0&&Y!==void 0){var H={};H[z._propPrefix+"x"]=q,H[z._propPrefix+"y"]=Y,z._traceIndex!==void 0?d.call("_guiRestyle",N,H,z._traceIndex):d.call("_guiRelayout",N,H)}}})}(F,A,E)}),I.exit().each(function(A){c.autoMargin(E,A._id)}).remove(),I.order()}}},76228:function(i,o,a){var s=a(71828);i.exports=function(u){return s.isPlainObject(u.colorbar)}},12311:function(i,o,a){i.exports={moduleType:"component",name:"colorbar",attributes:a(63583),supplyDefaults:a(62499),draw:a(98981).draw,hasColorbar:a(76228)}},50693:function(i,o,a){var s=a(63583),u=a(30587).counter,c=a(78607),d=a(63282).scales;function f(p){return"`"+p+"`"}c(d),i.exports=function(p,h){p=p||"";var g,b=(h=h||{}).cLetter||"c",v=("onlyIfNumerical"in h&&h.onlyIfNumerical,"noScale"in h?h.noScale:p==="marker.line"),m="showScaleDflt"in h?h.showScaleDflt:b==="z",y=typeof h.colorscaleDflt=="string"?d[h.colorscaleDflt]:null,x=h.editTypeOverride||"",_=p?p+".":"";"colorAttr"in h?(g=h.colorAttr,h.colorAttr):f(_+(g={z:"z",c:"color"}[b]));var w=b+"auto",S=b+"min",k=b+"max",C=b+"mid",T={};T[S]=T[k]=void 0;var M={};M[w]=!1;var O={};return g==="color"&&(O.color={valType:"color",arrayOk:!0,editType:x||"style"},h.anim&&(O.color.anim=!0)),O[w]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:T},O[S]={valType:"number",dflt:null,editType:x||"plot",impliedEdits:M},O[k]={valType:"number",dflt:null,editType:x||"plot",impliedEdits:M},O[C]={valType:"number",dflt:null,editType:"calc",impliedEdits:T},O.colorscale={valType:"colorscale",editType:"calc",dflt:y,impliedEdits:{autocolorscale:!1}},O.autocolorscale={valType:"boolean",dflt:h.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},O.reversescale={valType:"boolean",dflt:!1,editType:"plot"},v||(O.showscale={valType:"boolean",dflt:m,editType:"calc"},O.colorbar=s),h.noColorAxis||(O.coloraxis={valType:"subplotid",regex:u("coloraxis"),dflt:null,editType:"calc"}),O}},78803:function(i,o,a){var s=a(92770),u=a(71828),c=a(52075).extractOpts;i.exports=function(d,f,p){var h,g=d._fullLayout,b=p.vals,v=p.containerStr,m=v?u.nestedProperty(f,v).get():f,y=c(m),x=y.auto!==!1,_=y.min,w=y.max,S=y.mid,k=function(){return u.aggNums(Math.min,null,b)},C=function(){return u.aggNums(Math.max,null,b)};_===void 0?_=k():x&&(_=m._colorAx&&s(_)?Math.min(_,k()):k()),w===void 0?w=C():x&&(w=m._colorAx&&s(w)?Math.max(w,C()):C()),x&&S!==void 0&&(w-S>S-_?_=S-(w-S):w-S=0?g.colorscale.sequential:g.colorscale.sequentialminus,y._sync("colorscale",h))}},33046:function(i,o,a){var s=a(71828),u=a(52075).hasColorscale,c=a(52075).extractOpts;i.exports=function(d,f){function p(x,_){var w=x["_"+_];w!==void 0&&(x[_]=w)}function h(x,_){var w=_.container?s.nestedProperty(x,_.container).get():x;if(w)if(w.coloraxis)w._colorAx=f[w.coloraxis];else{var S=c(w),k=S.auto;(k||S.min===void 0)&&p(w,_.min),(k||S.max===void 0)&&p(w,_.max),S.autocolorscale&&p(w,"colorscale")}}for(var g=0;g=0;k--,C++){var T=_[k];S[C]=[1-T[0],T[1]]}return S}function y(_,w){w=w||{};for(var S=_.domain,k=_.range,C=k.length,T=new Array(C),M=0;M1.3333333333333333-p?f:p}},70461:function(i,o,a){var s=a(71828),u=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];i.exports=function(c,d,f,p){return c=f==="left"?0:f==="center"?1:f==="right"?2:s.constrain(Math.floor(3*c),0,2),d=p==="bottom"?0:p==="middle"?1:p==="top"?2:s.constrain(Math.floor(3*d),0,2),u[d][c]}},64505:function(i,o){o.selectMode=function(a){return a==="lasso"||a==="select"},o.drawMode=function(a){return a==="drawclosedpath"||a==="drawopenpath"||a==="drawline"||a==="drawrect"||a==="drawcircle"},o.openMode=function(a){return a==="drawline"||a==="drawopenpath"},o.rectMode=function(a){return a==="select"||a==="drawline"||a==="drawrect"||a==="drawcircle"},o.freeMode=function(a){return a==="lasso"||a==="drawclosedpath"||a==="drawopenpath"},o.selectingOrDrawing=function(a){return o.freeMode(a)||o.rectMode(a)}},28569:function(i,o,a){var s=a(48956),u=a(57035),c=a(38520),d=a(71828).removeElement,f=a(85555),p=i.exports={};p.align=a(92807),p.getCursor=a(70461);var h=a(26041);function g(){var v=document.createElement("div");v.className="dragcover";var m=v.style;return m.position="fixed",m.left=0,m.right=0,m.top=0,m.bottom=0,m.zIndex=999999999,m.background="none",document.body.appendChild(v),v}function b(v){return s(v.changedTouches?v.changedTouches[0]:v,document.body)}p.unhover=h.wrapped,p.unhoverRaw=h.raw,p.init=function(v){var m,y,x,_,w,S,k,C,T=v.gd,M=1,O=T._context.doubleClickDelay,D=v.element;T._mouseDownTime||(T._mouseDownTime=0),D.style.pointerEvents="all",D.onmousedown=E,c?(D._ontouchstart&&D.removeEventListener("touchstart",D._ontouchstart),D._ontouchstart=E,D.addEventListener("touchstart",E,{passive:!1})):D.ontouchstart=E;var P=v.clampFn||function(F,j,B){return Math.abs(F)O&&(M=Math.max(M-1,1)),T._dragged)v.doneFn&&v.doneFn();else if(v.clickFn&&v.clickFn(M,S),!C){var j;try{j=new MouseEvent("click",F)}catch{var B=b(F);(j=document.createEvent("MouseEvents")).initMouseEvent("click",F.bubbles,F.cancelable,F.view,F.detail,F.screenX,F.screenY,B[0],B[1],F.ctrlKey,F.altKey,F.shiftKey,F.metaKey,F.button,F.relatedTarget)}k.dispatchEvent(j)}T._dragging=!1,T._dragged=!1}else T._dragged=!1}},p.coverSlip=g},26041:function(i,o,a){var s=a(11086),u=a(79990),c=a(24401).getGraphDiv,d=a(26675),f=i.exports={};f.wrapped=function(p,h,g){(p=c(p))._fullLayout&&u.clear(p._fullLayout._uid+d.HOVERID),f.raw(p,h,g)},f.raw=function(p,h){var g=p._fullLayout,b=p._hoverdata;h||(h={}),h.target&&!p._dragged&&s.triggerHandler(p,"plotly_beforehover",h)===!1||(g._hoverlayer.selectAll("g").remove(),g._hoverlayer.selectAll("line").remove(),g._hoverlayer.selectAll("circle").remove(),p._hoverdata=void 0,h.target&&b&&p.emit("plotly_unhover",{event:h,points:b}))}},79952:function(i,o){o.P={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},o.u={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},91424:function(i,o,a){var s=a(39898),u=a(71828),c=u.numberFormat,d=a(92770),f=a(84267),p=a(73972),h=a(7901),g=a(21081),b=u.strTranslate,v=a(63893),m=a(77922),y=a(18783).LINE_SPACING,x=a(37822).DESELECTDIM,_=a(34098),w=a(39984),S=a(23469).appendArrayPointValue,k=i.exports={};function C(ce,we,Z){var re=we.fillpattern,de=re&&k.getPatternAttr(re.shape,0,"");if(de){var _e=k.getPatternAttr(re.bgcolor,0,null),ue=k.getPatternAttr(re.fgcolor,0,null),me=re.fgopacity,xe=k.getPatternAttr(re.size,0,8),ye=k.getPatternAttr(re.solidity,0,.3),Se=we.uid;k.pattern(ce,"point",Z,Se,de,xe,ye,void 0,re.fillmode,_e,ue,me)}else we.fillcolor&&ce.call(h.fill,we.fillcolor)}k.font=function(ce,we,Z,re){u.isPlainObject(we)&&(re=we.color,Z=we.size,we=we.family),we&&ce.style("font-family",we),Z+1&&ce.style("font-size",Z+"px"),re&&ce.call(h.fill,re)},k.setPosition=function(ce,we,Z){ce.attr("x",we).attr("y",Z)},k.setSize=function(ce,we,Z){ce.attr("width",we).attr("height",Z)},k.setRect=function(ce,we,Z,re,de){ce.call(k.setPosition,we,Z).call(k.setSize,re,de)},k.translatePoint=function(ce,we,Z,re){var de=Z.c2p(ce.x),_e=re.c2p(ce.y);return!!(d(de)&&d(_e)&&we.node())&&(we.node().nodeName==="text"?we.attr("x",de).attr("y",_e):we.attr("transform",b(de,_e)),!0)},k.translatePoints=function(ce,we,Z){ce.each(function(re){var de=s.select(this);k.translatePoint(re,de,we,Z)})},k.hideOutsideRangePoint=function(ce,we,Z,re,de,_e){we.attr("display",Z.isPtWithinRange(ce,de)&&re.isPtWithinRange(ce,_e)?null:"none")},k.hideOutsideRangePoints=function(ce,we){if(we._hasClipOnAxisFalse){var Z=we.xaxis,re=we.yaxis;ce.each(function(de){var _e=de[0].trace,ue=_e.xcalendar,me=_e.ycalendar,xe=p.traceIs(_e,"bar-like")?".bartext":".point,.textpoint";ce.selectAll(xe).each(function(ye){k.hideOutsideRangePoint(ye,s.select(this),Z,re,ue,me)})})}},k.crispRound=function(ce,we,Z){return we&&d(we)?ce._context.staticPlot?we:we<1?1:Math.round(we):Z||0},k.singleLineStyle=function(ce,we,Z,re,de){we.style("fill","none");var _e=(((ce||[])[0]||{}).trace||{}).line||{},ue=Z||_e.width||0,me=de||_e.dash||"";h.stroke(we,re||_e.color),k.dashLine(we,me,ue)},k.lineGroupStyle=function(ce,we,Z,re){ce.style("fill","none").each(function(de){var _e=(((de||[])[0]||{}).trace||{}).line||{},ue=we||_e.width||0,me=re||_e.dash||"";s.select(this).call(h.stroke,Z||_e.color).call(k.dashLine,me,ue)})},k.dashLine=function(ce,we,Z){Z=+Z||0,we=k.dashStyle(we,Z),ce.style({"stroke-dasharray":we,"stroke-width":Z+"px"})},k.dashStyle=function(ce,we){we=+we||1;var Z=Math.max(we,3);return ce==="solid"?ce="":ce==="dot"?ce=Z+"px,"+Z+"px":ce==="dash"?ce=3*Z+"px,"+3*Z+"px":ce==="longdash"?ce=5*Z+"px,"+5*Z+"px":ce==="dashdot"?ce=3*Z+"px,"+Z+"px,"+Z+"px,"+Z+"px":ce==="longdashdot"&&(ce=5*Z+"px,"+2*Z+"px,"+Z+"px,"+2*Z+"px"),ce},k.singleFillStyle=function(ce,we){var Z=s.select(ce.node());C(ce,((Z.data()[0]||[])[0]||{}).trace||{},we)},k.fillGroupStyle=function(ce,we){ce.style("stroke-width",0).each(function(Z){var re=s.select(this);Z[0].trace&&C(re,Z[0].trace,we)})};var T=a(90998);k.symbolNames=[],k.symbolFuncs=[],k.symbolBackOffs=[],k.symbolNeedLines={},k.symbolNoDot={},k.symbolNoFill={},k.symbolList=[],Object.keys(T).forEach(function(ce){var we=T[ce],Z=we.n;k.symbolList.push(Z,String(Z),ce,Z+100,String(Z+100),ce+"-open"),k.symbolNames[Z]=ce,k.symbolFuncs[Z]=we.f,k.symbolBackOffs[Z]=we.backoff||0,we.needLine&&(k.symbolNeedLines[Z]=!0),we.noDot?k.symbolNoDot[Z]=!0:k.symbolList.push(Z+200,String(Z+200),ce+"-dot",Z+300,String(Z+300),ce+"-open-dot"),we.noFill&&(k.symbolNoFill[Z]=!0)});var M=k.symbolNames.length;function O(ce,we,Z,re){var de=ce%100;return k.symbolFuncs[de](we,Z,re)+(ce>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}k.symbolNumber=function(ce){if(d(ce))ce=+ce;else if(typeof ce=="string"){var we=0;ce.indexOf("-open")>0&&(we=100,ce=ce.replace("-open","")),ce.indexOf("-dot")>0&&(we+=200,ce=ce.replace("-dot","")),(ce=k.symbolNames.indexOf(ce))>=0&&(ce+=we)}return ce%100>=M||ce>=400?0:Math.floor(Math.max(ce,0))};var D={x1:1,x2:0,y1:0,y2:0},P={x1:0,x2:0,y1:1,y2:0},E=c("~f"),I={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:D},horizontalreversed:{node:"linearGradient",attrs:D,reversed:!0},vertical:{node:"linearGradient",attrs:P},verticalreversed:{node:"linearGradient",attrs:P,reversed:!0}};k.gradient=function(ce,we,Z,re,de,_e){for(var ue=de.length,me=I[re],xe=new Array(ue),ye=0;ye=0&&ce.i===void 0&&(ce.i=_e.i),we.style("opacity",re.selectedOpacityFn?re.selectedOpacityFn(ce):ce.mo===void 0?ue.opacity:ce.mo),re.ms2mrc){var xe;xe=ce.ms==="various"||ue.size==="various"?3:re.ms2mrc(ce.ms),ce.mrc=xe,re.selectedSizeFn&&(xe=ce.mrc=re.selectedSizeFn(ce));var ye=k.symbolNumber(ce.mx||ue.symbol)||0;ce.om=ye%200>=100;var Se=Pe(ce,Z),Ae=V(ce,Z);we.attr("d",O(ye,xe,Se,Ae))}var Le,Re,Ie,Ne=!1;if(ce.so)Ie=me.outlierwidth,Re=me.outliercolor,Le=ue.outliercolor;else{var ze=(me||{}).width;Ie=(ce.mlw+1||ze+1||(ce.trace?(ce.trace.marker.line||{}).width:0)+1)-1||0,Re="mlc"in ce?ce.mlcc=re.lineScale(ce.mlc):u.isArrayOrTypedArray(me.color)?h.defaultLine:me.color,u.isArrayOrTypedArray(ue.color)&&(Le=h.defaultLine,Ne=!0),Le="mc"in ce?ce.mcc=re.markerScale(ce.mc):ue.color||ue.colors||"rgba(0,0,0,0)",re.selectedColorFn&&(Le=re.selectedColorFn(ce))}if(ce.om)we.call(h.stroke,Le).style({"stroke-width":(Ie||1)+"px",fill:"none"});else{we.style("stroke-width",(ce.isBlank?0:Ie)+"px");var qe=ue.gradient,We=ce.mgt;We?Ne=!0:We=qe&&qe.type,u.isArrayOrTypedArray(We)&&(We=We[0],I[We]||(We=0));var Ge=ue.pattern,ot=Ge&&k.getPatternAttr(Ge.shape,ce.i,"");if(We&&We!=="none"){var Je=ce.mgc;Je?Ne=!0:Je=qe.color;var st=Z.uid;Ne&&(st+="-"+ce.i),k.gradient(we,de,st,We,[[0,Je],[1,Le]],"fill")}else if(ot){var bt=!1,Be=Ge.fgcolor;!Be&&_e&&_e.color&&(Be=_e.color,bt=!0);var je=k.getPatternAttr(Be,ce.i,_e&&_e.color||null),tt=k.getPatternAttr(Ge.bgcolor,ce.i,null),it=Ge.fgopacity,St=k.getPatternAttr(Ge.size,ce.i,8),et=k.getPatternAttr(Ge.solidity,ce.i,.3);bt=bt||ce.mcc||u.isArrayOrTypedArray(Ge.shape)||u.isArrayOrTypedArray(Ge.bgcolor)||u.isArrayOrTypedArray(Ge.fgcolor)||u.isArrayOrTypedArray(Ge.size)||u.isArrayOrTypedArray(Ge.solidity);var ct=Z.uid;bt&&(ct+="-"+ce.i),k.pattern(we,"point",de,ct,ot,St,et,ce.mcc,Ge.fillmode,tt,je,it)}else u.isArrayOrTypedArray(Le)?h.fill(we,Le[ce.i]):h.fill(we,Le);Ie&&h.stroke(we,Re)}},k.makePointStyleFns=function(ce){var we={},Z=ce.marker;return we.markerScale=k.tryColorscale(Z,""),we.lineScale=k.tryColorscale(Z,"line"),p.traceIs(ce,"symbols")&&(we.ms2mrc=_.isBubble(ce)?w(ce):function(){return(Z.size||6)/2}),ce.selectedpoints&&u.extendFlat(we,k.makeSelectedPointStyleFns(ce)),we},k.makeSelectedPointStyleFns=function(ce){var we={},Z=ce.selected||{},re=ce.unselected||{},de=ce.marker||{},_e=Z.marker||{},ue=re.marker||{},me=de.opacity,xe=_e.opacity,ye=ue.opacity,Se=xe!==void 0,Ae=ye!==void 0;(u.isArrayOrTypedArray(me)||Se||Ae)&&(we.selectedOpacityFn=function(ot){var Je=ot.mo===void 0?de.opacity:ot.mo;return ot.selected?Se?xe:Je:Ae?ye:x*Je});var Le=de.color,Re=_e.color,Ie=ue.color;(Re||Ie)&&(we.selectedColorFn=function(ot){var Je=ot.mcc||Le;return ot.selected?Re||Je:Ie||Je});var Ne=de.size,ze=_e.size,qe=ue.size,We=ze!==void 0,Ge=qe!==void 0;return p.traceIs(ce,"symbols")&&(We||Ge)&&(we.selectedSizeFn=function(ot){var Je=ot.mrc||Ne/2;return ot.selected?We?ze/2:Je:Ge?qe/2:Je}),we},k.makeSelectedTextStyleFns=function(ce){var we={},Z=ce.selected||{},re=ce.unselected||{},de=ce.textfont||{},_e=Z.textfont||{},ue=re.textfont||{},me=de.color,xe=_e.color,ye=ue.color;return we.selectedTextColorFn=function(Se){var Ae=Se.tc||me;return Se.selected?xe||Ae:ye||(xe?Ae:h.addOpacity(Ae,x))},we},k.selectedPointStyle=function(ce,we){if(ce.size()&&we.selectedpoints){var Z=k.makeSelectedPointStyleFns(we),re=we.marker||{},de=[];Z.selectedOpacityFn&&de.push(function(_e,ue){_e.style("opacity",Z.selectedOpacityFn(ue))}),Z.selectedColorFn&&de.push(function(_e,ue){h.fill(_e,Z.selectedColorFn(ue))}),Z.selectedSizeFn&&de.push(function(_e,ue){var me=ue.mx||re.symbol||0,xe=Z.selectedSizeFn(ue);_e.attr("d",O(k.symbolNumber(me),xe,Pe(ue,we),V(ue,we))),ue.mrc2=xe}),de.length&&ce.each(function(_e){for(var ue=s.select(this),me=0;me0?Z:0}function N(ce,we,Z){return Z&&(ce=H(ce)),we?q(ce[1]):R(ce[0])}function R(ce){var we=s.round(ce,2);return A=we,we}function q(ce){var we=s.round(ce,2);return F=we,we}function Y(ce,we,Z,re){var de=ce[0]-we[0],_e=ce[1]-we[1],ue=Z[0]-we[0],me=Z[1]-we[1],xe=Math.pow(de*de+_e*_e,.25),ye=Math.pow(ue*ue+me*me,.25),Se=(ye*ye*de-xe*xe*ue)*re,Ae=(ye*ye*_e-xe*xe*me)*re,Le=3*ye*(xe+ye),Re=3*xe*(xe+ye);return[[R(we[0]+(Le&&Se/Le)),q(we[1]+(Le&&Ae/Le))],[R(we[0]-(Re&&Se/Re)),q(we[1]-(Re&&Ae/Re))]]}k.textPointStyle=function(ce,we,Z){if(ce.size()){var re;if(we.selectedpoints){var de=k.makeSelectedTextStyleFns(we);re=de.selectedTextColorFn}var _e=we.texttemplate,ue=Z._fullLayout;ce.each(function(me){var xe=s.select(this),ye=_e?u.extractOption(me,we,"txt","texttemplate"):u.extractOption(me,we,"tx","text");if(ye||ye===0){if(_e){var Se=we._module.formatLabels,Ae=Se?Se(me,we,ue):{},Le={};S(Le,we,me.i);var Re=we._meta||{};ye=u.texttemplateString(ye,Ae,ue._d3locale,Le,me,Re)}var Ie=me.tp||we.textposition,Ne=z(me,we),ze=re?re(me):me.tc||we.textfont.color;xe.call(k.font,me.tf||we.textfont.family,Ne,ze).text(ye).call(v.convertToTspans,Z).call(B,Ie,Ne,me.mrc)}else xe.remove()})}},k.selectedTextStyle=function(ce,we){if(ce.size()&&we.selectedpoints){var Z=k.makeSelectedTextStyleFns(we);ce.each(function(re){var de=s.select(this),_e=Z.selectedTextColorFn(re),ue=re.tp||we.textposition,me=z(re,we);h.fill(de,_e);var xe=p.traceIs(we,"bar-like");B(de,ue,me,re.mrc2||re.mrc,xe)})}},k.smoothopen=function(ce,we){if(ce.length<3)return"M"+ce.join("L");var Z,re="M"+ce[0],de=[];for(Z=1;Z=xe||ot>=Se&&ot<=xe)&&(Je<=Ae&&Je>=ye||Je>=Ae&&Je<=ye)&&(ce=[ot,Je])}return ce}k.steps=function(ce){var we=L[ce]||W;return function(Z){for(var re="M"+R(Z[0][0])+","+q(Z[0][1]),de=Z.length,_e=1;_e=1e4&&(k.savedBBoxes={},G=0),Z&&(k.savedBBoxes[Z]=Re),G++,u.extendFlat({},Re)},k.setClipUrl=function(ce,we,Z){ce.attr("clip-path",ee(we,Z))},k.getTranslate=function(ce){var we=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(Z,re,de){return[re,de].join(" ")}).split(" ");return{x:+we[0]||0,y:+we[1]||0}},k.setTranslate=function(ce,we,Z){var re=ce.attr?"attr":"getAttribute",de=ce.attr?"attr":"setAttribute",_e=ce[re]("transform")||"";return we=we||0,Z=Z||0,_e=_e.replace(/(\btranslate\(.*?\);?)/,"").trim(),_e=(_e+=b(we,Z)).trim(),ce[de]("transform",_e),_e},k.getScale=function(ce){var we=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(Z,re,de){return[re,de].join(" ")}).split(" ");return{x:+we[0]||1,y:+we[1]||1}},k.setScale=function(ce,we,Z){var re=ce.attr?"attr":"getAttribute",de=ce.attr?"attr":"setAttribute",_e=ce[re]("transform")||"";return we=we||1,Z=Z||1,_e=_e.replace(/(\bscale\(.*?\);?)/,"").trim(),_e=(_e+="scale("+we+","+Z+")").trim(),ce[de]("transform",_e),_e};var U=/\s*sc.*/;k.setPointGroupScale=function(ce,we,Z){if(we=we||1,Z=Z||1,ce){var re=we===1&&Z===1?"":"scale("+we+","+Z+")";ce.each(function(){var de=(this.getAttribute("transform")||"").replace(U,"");de=(de+=re).trim(),this.setAttribute("transform",de)})}};var Q=/translate\([^)]*\)\s*$/;function V(ce,we){var Z;return ce&&(Z=ce.mf),Z===void 0&&(Z=we.marker&&we.marker.standoff||0),we._geo||we._xA?Z:-Z}k.setTextPointsScale=function(ce,we,Z){ce&&ce.each(function(){var re,de=s.select(this),_e=de.select("text");if(_e.node()){var ue=parseFloat(_e.attr("x")||0),me=parseFloat(_e.attr("y")||0),xe=(de.attr("transform")||"").match(Q);re=we===1&&Z===1?[]:[b(ue,me),"scale("+we+","+Z+")",b(-ue,-me)],xe&&re.push(xe),de.attr("transform",re.join(""))}})},k.getMarkerStandoff=V;var X,K,ne,ae,ie,se,pe=Math.atan2,ke=Math.cos,Ce=Math.sin;function Oe(ce,we){var Z=we[0],re=we[1];return[Z*ke(ce)-re*Ce(ce),Z*Ce(ce)+re*ke(ce)]}function Pe(ce,we){var Z,re,de=ce.ma;de===void 0&&(de=we.marker.angle||0);var _e=we.marker.angleref;if(_e==="previous"||_e==="north"){if(we._geo){var ue=we._geo.project(ce.lonlat);Z=ue[0],re=ue[1]}else{var me=we._xA,xe=we._yA;if(!me||!xe)return 90;Z=me.c2p(ce.x),re=xe.c2p(ce.y)}if(we._geo){var ye,Se=ce.lonlat[0],Ae=ce.lonlat[1],Le=we._geo.project([Se,Ae+1e-5]),Re=we._geo.project([Se+1e-5,Ae]),Ie=pe(Re[1]-re,Re[0]-Z),Ne=pe(Le[1]-re,Le[0]-Z);if(_e==="north")ye=de/180*Math.PI;else if(_e==="previous"){var ze=Se/180*Math.PI,qe=Ae/180*Math.PI,We=X/180*Math.PI,Ge=K/180*Math.PI,ot=We-ze,Je=ke(Ge)*Ce(ot),st=Ce(Ge)*ke(qe)-ke(Ge)*Ce(qe)*ke(ot);ye=-pe(Je,st)-Math.PI,X=Se,K=Ae}var bt=Oe(Ie,[ke(ye),0]),Be=Oe(Ne,[Ce(ye),0]);de=pe(bt[1]+Be[1],bt[0]+Be[0])/Math.PI*180,_e!=="previous"||se===we.uid&&ce.i===ie+1||(de=null)}if(_e==="previous"&&!we._geo)if(se===we.uid&&ce.i===ie+1&&d(Z)&&d(re)){var je=Z-ne,tt=re-ae,it=we.line&&we.line.shape||"",St=it.slice(it.length-1);St==="h"&&(tt=0),St==="v"&&(je=0),de+=pe(tt,je)/Math.PI*180+90}else de=null}return ne=Z,ae=re,ie=ce.i,se=we.uid,de}k.getMarkerAngle=Pe},90998:function(i,o,a){var s,u,c,d,f=a(95616),p=a(39898).round,h="M0,0Z",g=Math.sqrt(2),b=Math.sqrt(3),v=Math.PI,m=Math.cos,y=Math.sin;function x(w){return w===null}function _(w,S,k){if(!(w&&w%360!=0||S))return k;if(c===w&&d===S&&s===k)return u;function C(N,R){var q=m(N),Y=y(N),L=R[0],W=R[1]+(S||0);return[L*q-W*Y,L*Y+W*q]}c=w,d=S,s=k;for(var T=w/180*v,M=0,O=0,D=f(k),P="",E=0;E0,y=f._context.staticPlot;p.each(function(x){var _,w=x[0].trace,S=w.error_x||{},k=w.error_y||{};w.ids&&(_=function(O){return O.id});var C=d.hasMarkers(w)&&w.marker.maxdisplayed>0;k.visible||S.visible||(x=[]);var T=s.select(this).selectAll("g.errorbar").data(x,_);if(T.exit().remove(),x.length){S.visible||T.selectAll("path.xerror").remove(),k.visible||T.selectAll("path.yerror").remove(),T.style("opacity",1);var M=T.enter().append("g").classed("errorbar",!0);m&&M.style("opacity",0).transition().duration(g.duration).style("opacity",1),c.setClipUrl(T,h.layerClipId,f),T.each(function(O){var D=s.select(this),P=function(B,z,N){var R={x:z.c2p(B.x),y:N.c2p(B.y)};return B.yh!==void 0&&(R.yh=N.c2p(B.yh),R.ys=N.c2p(B.ys),u(R.ys)||(R.noYS=!0,R.ys=N.c2p(B.ys,!0))),B.xh!==void 0&&(R.xh=z.c2p(B.xh),R.xs=z.c2p(B.xs),u(R.xs)||(R.noXS=!0,R.xs=z.c2p(B.xs,!0))),R}(O,b,v);if(!C||O.vis){var E,I=D.select("path.yerror");if(k.visible&&u(P.x)&&u(P.yh)&&u(P.ys)){var A=k.width;E="M"+(P.x-A)+","+P.yh+"h"+2*A+"m-"+A+",0V"+P.ys,P.noYS||(E+="m-"+A+",0h"+2*A),I.size()?m&&(I=I.transition().duration(g.duration).ease(g.easing)):I=D.append("path").style("vector-effect",y?"none":"non-scaling-stroke").classed("yerror",!0),I.attr("d",E)}else I.remove();var F=D.select("path.xerror");if(S.visible&&u(P.y)&&u(P.xh)&&u(P.xs)){var j=(S.copy_ystyle?k:S).width;E="M"+P.xh+","+(P.y-j)+"v"+2*j+"m0,-"+j+"H"+P.xs,P.noXS||(E+="m0,-"+j+"v"+2*j),F.size()?m&&(F=F.transition().duration(g.duration).ease(g.easing)):F=D.append("path").style("vector-effect",y?"none":"non-scaling-stroke").classed("xerror",!0),F.attr("d",E)}else F.remove()}})}})}},62662:function(i,o,a){var s=a(39898),u=a(7901);i.exports=function(c){c.each(function(d){var f=d[0].trace,p=f.error_y||{},h=f.error_x||{},g=s.select(this);g.selectAll("path.yerror").style("stroke-width",p.thickness+"px").call(u.stroke,p.color),h.copy_ystyle&&(h=p),g.selectAll("path.xerror").style("stroke-width",h.thickness+"px").call(u.stroke,h.color)})}},77914:function(i,o,a){var s=a(41940),u=a(528).hoverlabel,c=a(1426).extendFlat;i.exports={hoverlabel:{bgcolor:c({},u.bgcolor,{arrayOk:!0}),bordercolor:c({},u.bordercolor,{arrayOk:!0}),font:s({arrayOk:!0,editType:"none"}),align:c({},u.align,{arrayOk:!0}),namelength:c({},u.namelength,{arrayOk:!0}),editType:"none"}}},30732:function(i,o,a){var s=a(71828),u=a(73972);function c(d,f,p,h){h=h||s.identity,Array.isArray(d)&&(f[0][p]=h(d))}i.exports=function(d){var f=d.calcdata,p=d._fullLayout;function h(y){return function(x){return s.coerceHoverinfo({hoverinfo:x},{_module:y._module},p)}}for(var g=0;g=0&&b.indexde[0]._length||ht<0||ht>_e[0]._length)return y.unhoverRaw(ae,ie)}else ct="xpx"in ie?ie.xpx:de[0]._length/2,ht="ypx"in ie?ie.ypx:_e[0]._length/2;if(ie.pointerX=ct+de[0]._offset,ie.pointerY=ht+_e[0]._offset,Re="xval"in ie?w.flat(Ce,ie.xval):w.p2c(de,ct),Ie="yval"in ie?w.flat(Ce,ie.yval):w.p2c(_e,ht),!u(Re[0])||!u(Ie[0]))return d.warn("Fx.hover failed",ie,ae),y.unhoverRaw(ae,ie)}var Wt=1/0;function wt(Jt,_n){for(ze=0;zeje&&(tt.splice(0,je),Wt=tt[0].distance),we&&Le!==0&&tt.length===0){Be.distance=Le,Be.index=!1;var Wn=We._module.hoverPoints(Be,st,bt,"closest",{hoverLayer:Oe._hoverlayer});if(Wn&&(Wn=Wn.filter(function(Mr){return Mr.spikeDistance<=Le})),Wn&&Wn.length){var On,qn=Wn.filter(function(Mr){return Mr.xa.showspikes&&Mr.xa.spikesnap!=="hovered data"});if(qn.length){var br=qn[0];u(br.x0)&&u(br.y0)&&(On=Me(br),(!St.vLinePoint||St.vLinePoint.spikeDistance>On.spikeDistance)&&(St.vLinePoint=On))}var Za=Wn.filter(function(Mr){return Mr.ya.showspikes&&Mr.ya.spikesnap!=="hovered data"});if(Za.length){var lo=Za[0];u(lo.x0)&&u(lo.y0)&&(On=Me(lo),(!St.hLinePoint||St.hLinePoint.spikeDistance>On.spikeDistance)&&(St.hLinePoint=On))}}}}}function be(Jt,_n,sn){for(var en,Nn=null,An=1/0,Wn=0;Wn0&&Math.abs(Jt.distance)Nt-1;Gt--)mt(tt[Gt]);tt=Ct,Ze()}var pt=ae._hoverdata,yt=[],qt=te(ae),Rt=ee(ae);for(Ne=0;Ne1||tt.length>1)||Se==="closest"&&et&&tt.length>1,yn=m.combine(Oe.plot_bgcolor||m.background,Oe.paper_bgcolor),pn=z(tt,{gd:ae,hovermode:Se,rotateLabels:on,bgColor:yn,container:Oe._hoverlayer,outerContainer:Oe._paper.node(),commonLabelOpts:Oe.hoverlabel,hoverdistance:Oe.hoverdistance}),cn=pn.hoverLabels;if(w.isUnifiedHover(Se)||(function(Jt,_n,sn,en){var Nn,An,Wn,On,qn,br,Za,lo=_n?"xa":"ya",Mr=_n?"ya":"xa",cl=0,aa=1,Or=Jt.size(),Zr=new Array(Or),Qa=0,zn=en.minX,dn=en.maxX,Zn=en.minY,oa=en.maxY,Vn=function(Dn){return Dn*sn._invScaleX},Qn=function(Dn){return Dn*sn._invScaleY};function Kn(Dn){var ia=Dn[0],Ko=Dn[Dn.length-1];if(An=ia.pmin-ia.pos-ia.dp+ia.size,Wn=Ko.pos+Ko.dp+Ko.size-ia.pmax,An>.01){for(qn=Dn.length-1;qn>=0;qn--)Dn[qn].dp+=An;Nn=!1}if(!(Wn<.01)){if(An<-.01){for(qn=Dn.length-1;qn>=0;qn--)Dn[qn].dp-=Wn;Nn=!1}if(Nn){var _a=0;for(On=0;Onia.pmax&&_a++;for(On=Dn.length-1;On>=0&&!(_a<=0);On--)(br=Dn[On]).pos>ia.pmax-1&&(br.del=!0,_a--);for(On=0;On=0;qn--)Dn[qn].dp-=Wn;for(On=Dn.length-1;On>=0&&!(_a<=0);On--)(br=Dn[On]).pos+br.dp+br.size>ia.pmax&&(br.del=!0,_a--)}}}for(Jt.each(function(Dn){var ia=Dn[lo],Ko=Dn[Mr],_a=ia._id.charAt(0)==="x",_s=ia.range;Qa===0&&_s&&_s[0]>_s[1]!==_a&&(aa=-1);var Ts=0,Bl=_a?sn.width:sn.height;if(sn.hovermode==="x"||sn.hovermode==="y"){var dl,Gi,Wl=R(Dn,_n),Kf=Dn.anchor,Bc=Kf==="end"?-1:1;if(Kf==="middle")Gi=(dl=Dn.crossPos+(_a?Qn(Wl.y-Dn.by/2):Vn(Dn.bx/2+Dn.tx2width/2)))+(_a?Qn(Dn.by):Vn(Dn.bx));else if(_a)Gi=(dl=Dn.crossPos+Qn(E+Wl.y)-Qn(Dn.by/2-E))+Qn(Dn.by);else{var Zf=Vn(Bc*E+Wl.x),bu=Zf+Vn(Bc*Dn.bx);dl=Dn.crossPos+Math.min(Zf,bu),Gi=Dn.crossPos+Math.max(Zf,bu)}_a?Zn!==void 0&&oa!==void 0&&Math.min(Gi,oa)-Math.max(dl,Zn)>1&&(Ko.side==="left"?(Ts=Ko._mainLinePosition,Bl=sn.width):Bl=Ko._mainLinePosition):zn!==void 0&&dn!==void 0&&Math.min(Gi,dn)-Math.max(dl,zn)>1&&(Ko.side==="top"?(Ts=Ko._mainLinePosition,Bl=sn.height):Bl=Ko._mainLinePosition)}Zr[Qa++]=[{datum:Dn,traceIndex:Dn.trace.index,dp:0,pos:Dn.pos,posref:Dn.posref,size:Dn.by*(_a?O:1)/2,pmin:Ts,pmax:Bl}]}),Zr.sort(function(Dn,ia){return Dn[0].posref-ia[0].posref||aa*(ia[0].traceIndex-Dn[0].traceIndex)});!Nn&&cl<=Or;){for(cl++,Nn=!0,On=0;On.01&&Vr.pmin===Qr.pmin&&Vr.pmax===Qr.pmax){for(qn=pa.length-1;qn>=0;qn--)pa[qn].dp+=An;for(or.push.apply(or,pa),Zr.splice(On+1,1),Za=0,qn=or.length-1;qn>=0;qn--)Za+=or[qn].dp;for(Wn=Za/or.length,qn=or.length-1;qn>=0;qn--)or[qn].dp-=Wn;Nn=!1}else On++}Zr.forEach(Kn)}for(On=Zr.length-1;On>=0;On--){var mi=Zr[On];for(qn=mi.length-1;qn>=0;qn--){var Ao=mi[qn],Ja=Ao.datum;Ja.offset=Ao.dp,Ja.del=Ao.del}}}(cn,on,Oe,pn.commonLabelBoundingBox),q(cn,on,Oe._invScaleX,Oe._invScaleY)),ke&&ke.tagName){var hn=_.getComponentMethod("annotations","hasClickToShow")(ae,yt);b(s.select(ke),hn?"pointer":"")}ke&&!pe&&function(Jt,_n,sn){if(!sn||sn.length!==Jt._hoverdata.length)return!0;for(var en=sn.length-1;en>=0;en--){var Nn=sn[en],An=Jt._hoverdata[en];if(Nn.curveNumber!==An.curveNumber||String(Nn.pointNumber)!==String(An.pointNumber)||String(Nn.pointNumbers)!==String(An.pointNumbers))return!0}return!1}(ae,0,pt)&&(pt&&ae.emit("plotly_unhover",{event:ie,points:pt}),ae.emit("plotly_hover",{event:ie,points:ae._hoverdata,xaxes:de,yaxes:_e,xvals:Re,yvals:Ie}))})(Q,V,X,K,ne)})},o.loneHover=function(Q,V){var X=!0;Array.isArray(Q)||(X=!1,Q=[Q]);var K=V.gd,ne=te(K),ae=ee(K),ie=z(Q.map(function(ke){var Ce=ke._x0||ke.x0||ke.x||0,Oe=ke._x1||ke.x1||ke.x||0,Pe=ke._y0||ke.y0||ke.y||0,ce=ke._y1||ke.y1||ke.y||0,we=ke.eventData;if(we){var Z=Math.min(Ce,Oe),re=Math.max(Ce,Oe),de=Math.min(Pe,ce),_e=Math.max(Pe,ce),ue=ke.trace;if(_.traceIs(ue,"gl3d")){var me=K._fullLayout[ue.scene]._scene.container,xe=me.offsetLeft,ye=me.offsetTop;Z+=xe,re+=xe,de+=ye,_e+=ye}we.bbox={x0:Z+ae,x1:re+ae,y0:de+ne,y1:_e+ne},V.inOut_bbox&&V.inOut_bbox.push(we.bbox)}else we=!1;return{color:ke.color||m.defaultLine,x0:ke.x0||ke.x||0,x1:ke.x1||ke.x||0,y0:ke.y0||ke.y||0,y1:ke.y1||ke.y||0,xLabel:ke.xLabel,yLabel:ke.yLabel,zLabel:ke.zLabel,text:ke.text,name:ke.name,idealAlign:ke.idealAlign,borderColor:ke.borderColor,fontFamily:ke.fontFamily,fontSize:ke.fontSize,fontColor:ke.fontColor,nameLength:ke.nameLength,textAlign:ke.textAlign,trace:ke.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:ke.hovertemplate||!1,hovertemplateLabels:ke.hovertemplateLabels||!1,eventData:we}}),{gd:K,hovermode:"closest",rotateLabels:!1,bgColor:V.bgColor||m.background,container:s.select(V.container),outerContainer:V.outerContainer||V.container}).hoverLabels,se=0,pe=0;return ie.sort(function(ke,Ce){return ke.y0-Ce.y0}).each(function(ke,Ce){var Oe=ke.y0-ke.by/2;ke.offset=Oe-5([\s\S]*)<\/extra>/;function z(Q,V){var X=V.gd,K=X._fullLayout,ne=V.hovermode,ae=V.rotateLabels,ie=V.bgColor,se=V.container,pe=V.outerContainer,ke=V.commonLabelOpts||{};if(Q.length===0)return[[]];var Ce=V.fontFamily||S.HOVERFONT,Oe=V.fontSize||S.HOVERFONTSIZE,Pe=Q[0],ce=Pe.xa,we=Pe.ya,Z=ne.charAt(0),re=Z+"Label",de=Pe[re];if(de===void 0&&ce.type==="multicategory")for(var _e=0;_eK.width-jt?(pt=K.width-jt,Nt.attr("d","M"+(jt-E)+",0L"+jt+","+Rt+E+"v"+Rt+(2*I+qt.height)+"H-"+jt+"V"+Rt+E+"H"+(jt-2*E)+"Z")):Nt.attr("d","M0,0L"+E+","+Rt+E+"H"+jt+"v"+Rt+(2*I+qt.height)+"H-"+jt+"V"+Rt+E+"H-"+E+"Z"),ze.minX=pt-jt,ze.maxX=pt+jt,ce.side==="top"?(ze.minY=yt-(2*I+qt.height),ze.maxY=yt-I):(ze.minY=yt+I,ze.maxY=yt+(2*I+qt.height))}else{var Tt,Pt,Ot;we.side==="right"?(Tt="start",Pt=1,Ot="",pt=ce._offset+ce._length):(Tt="end",Pt=-1,Ot="-",pt=ce._offset),yt=we._offset+(Pe.y0+Pe.y1)/2,Gt.attr("text-anchor",Tt),Nt.attr("d","M0,0L"+Ot+E+","+E+"V"+(I+qt.height/2)+"h"+Ot+(2*I+qt.width)+"V-"+(I+qt.height/2)+"H"+Ot+E+"V-"+E+"Z"),ze.minY=yt-(I+qt.height/2),ze.maxY=yt+(I+qt.height/2),we.side==="right"?(ze.minX=pt+E,ze.maxX=pt+E+(2*I+qt.width)):(ze.minX=pt-E-(2*I+qt.width),ze.maxX=pt-E);var It,Lt=qt.height/2,zt=me-qt.top-Lt,Xt="clip"+K._uid+"commonlabel"+we._id;if(pt=0?ht:$t+wt=0?$t:rt+wt=0?et:ct+be=0?ct:ut+be=0,nt.idealAlign!=="top"&&on||!yn?on?(Lt+=Xt/2,nt.anchor="start"):nt.anchor="middle":(Lt-=Xt/2,nt.anchor="end"),nt.crossPos=Lt;else{if(nt.pos=Lt,on=It+zt/2+pn<=xe,yn=It-zt/2-pn>=0,nt.idealAlign!=="left"&&on||!yn)if(on)It+=zt/2,nt.anchor="start";else{nt.anchor="middle";var cn=pn/2,hn=It+cn-xe,Jt=It-cn;hn>0&&(It-=hn),Jt<0&&(It+=-Jt)}else It-=zt/2,nt.anchor="end";nt.crossPos=It}Rt.attr("text-anchor",nt.anchor),Tt&&jt.attr("text-anchor",nt.anchor),Nt.attr("transform",f(It,Lt)+(ae?p(T):""))}),{hoverLabels:gt,commonLabelBoundingBox:ze}}function N(Q,V,X,K,ne,ae){var ie="",se="";Q.nameOverride!==void 0&&(Q.name=Q.nameOverride),Q.name&&(Q.trace._meta&&(Q.name=d.templateString(Q.name,Q.trace._meta)),ie=H(Q.name,Q.nameLength));var pe=X.charAt(0),ke=pe==="x"?"y":"x";Q.zLabel!==void 0?(Q.xLabel!==void 0&&(se+="x: "+Q.xLabel+"
"),Q.yLabel!==void 0&&(se+="y: "+Q.yLabel+"
"),Q.trace.type!=="choropleth"&&Q.trace.type!=="choroplethmapbox"&&(se+=(se?"z: ":"")+Q.zLabel)):V&&Q[pe+"Label"]===ne?se=Q[ke+"Label"]||"":Q.xLabel===void 0?Q.yLabel!==void 0&&Q.trace.type!=="scattercarpet"&&(se=Q.yLabel):se=Q.yLabel===void 0?Q.xLabel:"("+Q.xLabel+", "+Q.yLabel+")",!Q.text&&Q.text!==0||Array.isArray(Q.text)||(se+=(se?"
":"")+Q.text),Q.extraText!==void 0&&(se+=(se?"
":"")+Q.extraText),ae&&se===""&&!Q.hovertemplate&&(ie===""&&ae.remove(),se=ie);var Ce=Q.hovertemplate||!1;if(Ce){var Oe=Q.hovertemplateLabels||Q;Q[pe+"Label"]!==ne&&(Oe[pe+"other"]=Oe[pe+"Val"],Oe[pe+"otherLabel"]=Oe[pe+"Label"]),se=(se=d.hovertemplateString(Ce,Oe,K._d3locale,Q.eventData[0]||{},Q.trace._meta)).replace(B,function(Pe,ce){return ie=H(ce,Q.nameLength),""})}return[se,ie]}function R(Q,V){var X=0,K=Q.offset;return V&&(K*=-P,X=Q.offset*D),{x:X,y:K}}function q(Q,V,X,K){var ne=function(ie){return ie*X},ae=function(ie){return ie*K};Q.each(function(ie){var se=s.select(this);if(ie.del)return se.remove();var pe,ke,Ce,Oe,Pe=se.select("text.nums"),ce=ie.anchor,we=ce==="end"?-1:1,Z=(Oe=(Ce=(ke={start:1,end:-1,middle:0}[(pe=ie).anchor])*(E+I))+ke*(pe.txwidth+I),pe.anchor==="middle"&&(Ce-=pe.tx2width/2,Oe+=pe.txwidth/2+I),{alignShift:ke,textShiftX:Ce,text2ShiftX:Oe}),re=R(ie,V),de=re.x,_e=re.y,ue=ce==="middle";se.select("path").attr("d",ue?"M-"+ne(ie.bx/2+ie.tx2width/2)+","+ae(_e-ie.by/2)+"h"+ne(ie.bx)+"v"+ae(ie.by)+"h-"+ne(ie.bx)+"Z":"M0,0L"+ne(we*E+de)+","+ae(E+_e)+"v"+ae(ie.by/2-E)+"h"+ne(we*ie.bx)+"v-"+ae(ie.by)+"H"+ne(we*E+de)+"V"+ae(_e-E)+"Z");var me=de+Z.textShiftX,xe=_e+ie.ty0-ie.by/2+I,ye=ie.textAlign||"auto";ye!=="auto"&&(ye==="left"&&ce!=="start"?(Pe.attr("text-anchor","start"),me=ue?-ie.bx/2-ie.tx2width/2+I:-ie.bx-I):ye==="right"&&ce!=="end"&&(Pe.attr("text-anchor","end"),me=ue?ie.bx/2-ie.tx2width/2-I:ie.bx+I)),Pe.call(g.positionText,ne(me),ae(xe)),ie.tx2width&&(se.select("text.name").call(g.positionText,ne(Z.text2ShiftX+Z.alignShift*I+de),ae(_e+ie.ty0-ie.by/2+I)),se.select("rect").call(v.setRect,ne(Z.text2ShiftX+(Z.alignShift-1)*ie.tx2width/2+de),ae(_e-ie.by/2-1),ne(ie.tx2width),ae(ie.by+2)))})}function Y(Q,V){var X=Q.index,K=Q.trace||{},ne=Q.cd[0],ae=Q.cd[X]||{};function ie(Pe){return Pe||u(Pe)&&Pe===0}var se=Array.isArray(X)?function(Pe,ce){var we=d.castOption(ne,X,Pe);return ie(we)?we:d.extractOption({},K,"",ce)}:function(Pe,ce){return d.extractOption(ae,K,Pe,ce)};function pe(Pe,ce,we){var Z=se(ce,we);ie(Z)&&(Q[Pe]=Z)}if(pe("hoverinfo","hi","hoverinfo"),pe("bgcolor","hbg","hoverlabel.bgcolor"),pe("borderColor","hbc","hoverlabel.bordercolor"),pe("fontFamily","htf","hoverlabel.font.family"),pe("fontSize","hts","hoverlabel.font.size"),pe("fontColor","htc","hoverlabel.font.color"),pe("nameLength","hnl","hoverlabel.namelength"),pe("textAlign","hta","hoverlabel.align"),Q.posref=V==="y"||V==="closest"&&K.orientation==="h"?Q.xa._offset+(Q.x0+Q.x1)/2:Q.ya._offset+(Q.y0+Q.y1)/2,Q.x0=d.constrain(Q.x0,0,Q.xa._length),Q.x1=d.constrain(Q.x1,0,Q.xa._length),Q.y0=d.constrain(Q.y0,0,Q.ya._length),Q.y1=d.constrain(Q.y1,0,Q.ya._length),Q.xLabelVal!==void 0&&(Q.xLabel="xLabel"in Q?Q.xLabel:x.hoverLabelText(Q.xa,Q.xLabelVal,K.xhoverformat),Q.xVal=Q.xa.c2d(Q.xLabelVal)),Q.yLabelVal!==void 0&&(Q.yLabel="yLabel"in Q?Q.yLabel:x.hoverLabelText(Q.ya,Q.yLabelVal,K.yhoverformat),Q.yVal=Q.ya.c2d(Q.yLabelVal)),Q.zLabelVal!==void 0&&Q.zLabel===void 0&&(Q.zLabel=String(Q.zLabelVal)),!(isNaN(Q.xerr)||Q.xa.type==="log"&&Q.xerr<=0)){var ke=x.tickText(Q.xa,Q.xa.c2l(Q.xerr),"hover").text;Q.xerrneg!==void 0?Q.xLabel+=" +"+ke+" / -"+x.tickText(Q.xa,Q.xa.c2l(Q.xerrneg),"hover").text:Q.xLabel+=" ± "+ke,V==="x"&&(Q.distance+=1)}if(!(isNaN(Q.yerr)||Q.ya.type==="log"&&Q.yerr<=0)){var Ce=x.tickText(Q.ya,Q.ya.c2l(Q.yerr),"hover").text;Q.yerrneg!==void 0?Q.yLabel+=" +"+Ce+" / -"+x.tickText(Q.ya,Q.ya.c2l(Q.yerrneg),"hover").text:Q.yLabel+=" ± "+Ce,V==="y"&&(Q.distance+=1)}var Oe=Q.hoverinfo||Q.trace.hoverinfo;return Oe&&Oe!=="all"&&((Oe=Array.isArray(Oe)?Oe:Oe.split("+")).indexOf("x")===-1&&(Q.xLabel=void 0),Oe.indexOf("y")===-1&&(Q.yLabel=void 0),Oe.indexOf("z")===-1&&(Q.zLabel=void 0),Oe.indexOf("text")===-1&&(Q.text=void 0),Oe.indexOf("name")===-1&&(Q.name=void 0)),Q}function L(Q,V,X){var K,ne,ae=X.container,ie=X.fullLayout,se=ie._size,pe=X.event,ke=!!V.hLinePoint,Ce=!!V.vLinePoint;if(ae.selectAll(".spikeline").remove(),Ce||ke){var Oe=m.combine(ie.plot_bgcolor,ie.paper_bgcolor);if(ke){var Pe,ce,we=V.hLinePoint;K=we&&we.xa,(ne=we&&we.ya).spikesnap==="cursor"?(Pe=pe.pointerX,ce=pe.pointerY):(Pe=K._offset+we.x,ce=ne._offset+we.y);var Z,re,de=c.readability(we.color,Oe)<1.5?m.contrast(Oe):we.color,_e=ne.spikemode,ue=ne.spikethickness,me=ne.spikecolor||de,xe=x.getPxPosition(Q,ne);if(_e.indexOf("toaxis")!==-1||_e.indexOf("across")!==-1){if(_e.indexOf("toaxis")!==-1&&(Z=xe,re=Pe),_e.indexOf("across")!==-1){var ye=ne._counterDomainMin,Se=ne._counterDomainMax;ne.anchor==="free"&&(ye=Math.min(ye,ne.position),Se=Math.max(Se,ne.position)),Z=se.l+ye*se.w,re=se.l+Se*se.w}ae.insert("line",":first-child").attr({x1:Z,x2:re,y1:ce,y2:ce,"stroke-width":ue,stroke:me,"stroke-dasharray":v.dashStyle(ne.spikedash,ue)}).classed("spikeline",!0).classed("crisp",!0),ae.insert("line",":first-child").attr({x1:Z,x2:re,y1:ce,y2:ce,"stroke-width":ue+2,stroke:Oe}).classed("spikeline",!0).classed("crisp",!0)}_e.indexOf("marker")!==-1&&ae.insert("circle",":first-child").attr({cx:xe+(ne.side!=="right"?ue:-ue),cy:ce,r:ue,fill:me}).classed("spikeline",!0)}if(Ce){var Ae,Le,Re=V.vLinePoint;K=Re&&Re.xa,ne=Re&&Re.ya,K.spikesnap==="cursor"?(Ae=pe.pointerX,Le=pe.pointerY):(Ae=K._offset+Re.x,Le=ne._offset+Re.y);var Ie,Ne,ze=c.readability(Re.color,Oe)<1.5?m.contrast(Oe):Re.color,qe=K.spikemode,We=K.spikethickness,Ge=K.spikecolor||ze,ot=x.getPxPosition(Q,K);if(qe.indexOf("toaxis")!==-1||qe.indexOf("across")!==-1){if(qe.indexOf("toaxis")!==-1&&(Ie=ot,Ne=Le),qe.indexOf("across")!==-1){var Je=K._counterDomainMin,st=K._counterDomainMax;K.anchor==="free"&&(Je=Math.min(Je,K.position),st=Math.max(st,K.position)),Ie=se.t+(1-st)*se.h,Ne=se.t+(1-Je)*se.h}ae.insert("line",":first-child").attr({x1:Ae,x2:Ae,y1:Ie,y2:Ne,"stroke-width":We,stroke:Ge,"stroke-dasharray":v.dashStyle(K.spikedash,We)}).classed("spikeline",!0).classed("crisp",!0),ae.insert("line",":first-child").attr({x1:Ae,x2:Ae,y1:Ie,y2:Ne,"stroke-width":We+2,stroke:Oe}).classed("spikeline",!0).classed("crisp",!0)}qe.indexOf("marker")!==-1&&ae.insert("circle",":first-child").attr({cx:Ae,cy:ot-(K.side!=="top"?We:-We),r:We,fill:Ge}).classed("spikeline",!0)}}}function W(Q,V){return!V}function H(Q,V){return g.plainText(Q||"",{len:V,allowedTags:["br","sub","sup","b","i","em"]})}function G(Q,V,X){var K=V[Q+"a"],ne=V[Q+"Val"],ae=V.cd[0];if(K.type==="category"||K.type==="multicategory")ne=K._categoriesMap[ne];else if(K.type==="date"){var ie=V.trace[Q+"periodalignment"];if(ie){var se=V.cd[V.index],pe=se[Q+"Start"];pe===void 0&&(pe=se[Q]);var ke=se[Q+"End"];ke===void 0&&(ke=se[Q]);var Ce=ke-pe;ie==="end"?ne+=Ce:ie==="middle"&&(ne+=Ce/2)}ne=K.d2c(ne)}return ae&&ae.t&&ae.t.posLetter===K._id&&(X.boxmode!=="group"&&X.violinmode!=="group"||(ne+=ae.t.dPos)),ne}function te(Q){return Q.offsetTop+Q.clientTop}function ee(Q){return Q.offsetLeft+Q.clientLeft}function U(Q,V){var X=Q._fullLayout,K=V.getBoundingClientRect(),ne=K.left,ae=K.top,ie=ne+K.width,se=ae+K.height,pe=d.apply3DTransform(X._invTransform)(ne,ae),ke=d.apply3DTransform(X._invTransform)(ie,se),Ce=pe[0],Oe=pe[1],Pe=ke[0],ce=ke[1];return{x:Ce,y:Oe,width:Pe-Ce,height:ce-Oe,top:Math.min(Oe,ce),left:Math.min(Ce,Pe),right:Math.max(Ce,Pe),bottom:Math.max(Oe,ce)}}},38048:function(i,o,a){var s=a(71828),u=a(7901),c=a(23469).isUnifiedHover;i.exports=function(d,f,p,h){h=h||{};var g=f.legend;function b(v){h.font[v]||(h.font[v]=g?f.legend.font[v]:f.font[v])}f&&c(f.hovermode)&&(h.font||(h.font={}),b("size"),b("family"),b("color"),g?(h.bgcolor||(h.bgcolor=u.combine(f.legend.bgcolor,f.paper_bgcolor)),h.bordercolor||(h.bordercolor=f.legend.bordercolor)):h.bgcolor||(h.bgcolor=f.paper_bgcolor)),p("hoverlabel.bgcolor",h.bgcolor),p("hoverlabel.bordercolor",h.bordercolor),p("hoverlabel.namelength",h.namelength),s.coerceFont(p,"hoverlabel.font",h.font),p("hoverlabel.align",h.align)}},98212:function(i,o,a){var s=a(71828),u=a(528);i.exports=function(c,d){function f(p,h){return d[p]!==void 0?d[p]:s.coerce(c,d,u,p,h)}return f("clickmode"),f("hovermode")}},30211:function(i,o,a){var s=a(39898),u=a(71828),c=a(28569),d=a(23469),f=a(528),p=a(88335);i.exports={moduleType:"component",name:"fx",constants:a(26675),schema:{layout:f},attributes:a(77914),layoutAttributes:f,supplyLayoutGlobalDefaults:a(22774),supplyDefaults:a(54268),supplyLayoutDefaults:a(34938),calc:a(30732),getDistanceFunction:d.getDistanceFunction,getClosest:d.getClosest,inbox:d.inbox,quadrature:d.quadrature,appendArrayPointValue:d.appendArrayPointValue,castHoverOption:function(h,g,b){return u.castOption(h,g,"hoverlabel."+b)},castHoverinfo:function(h,g,b){return u.castOption(h,b,"hoverinfo",function(v){return u.coerceHoverinfo({hoverinfo:v},{_module:h._module},g)})},hover:p.hover,unhover:c.unhover,loneHover:p.loneHover,loneUnhover:function(h){var g=u.isD3Selection(h)?h:s.select(h);g.selectAll("g.hovertext").remove(),g.selectAll(".spikeline").remove()},click:a(75914)}},528:function(i,o,a){var s=a(26675),u=a(41940),c=u({editType:"none"});c.family.dflt=s.HOVERFONT,c.size.dflt=s.HOVERFONTSIZE,i.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:c,grouptitlefont:u({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},34938:function(i,o,a){var s=a(71828),u=a(528),c=a(98212),d=a(38048);i.exports=function(f,p){function h(m,y){return s.coerce(f,p,u,m,y)}c(f,p)&&(h("hoverdistance"),h("spikedistance")),h("dragmode")==="select"&&h("selectdirection");var g=p._has("mapbox"),b=p._has("geo"),v=p._basePlotModules.length;p.dragmode==="zoom"&&((g||b)&&v===1||g&&b&&v===2)&&(p.dragmode="pan"),d(f,p,h),s.coerceFont(h,"hoverlabel.grouptitlefont",p.hoverlabel.font)}},22774:function(i,o,a){var s=a(71828),u=a(38048),c=a(528);i.exports=function(d,f){u(d,f,function(p,h){return s.coerce(d,f,c,p,h)})}},83312:function(i,o,a){var s=a(71828),u=a(30587).counter,c=a(27670).Y,d=a(85555).idRegex,f=a(44467),p={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[u("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[d.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[d.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:c({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function h(v,m,y){var x=m[y+"axes"],_=Object.keys((v._splomAxes||{})[y]||{});return Array.isArray(x)?x:_.length?_:void 0}function g(v,m,y,x,_,w){var S=m(v+"gap",y),k=m("domain."+v);m(v+"side",x);for(var C=new Array(_),T=k[0],M=(k[1]-T)/(_-S),O=M*(1-S),D=0;D<_;D++){var P=T+M*D;C[w?_-1-D:D]=[P,P+O]}return C}function b(v,m,y,x,_){var w,S=new Array(y);function k(C,T){m.indexOf(T)!==-1&&x[T]===void 0?(S[C]=T,x[T]=C):S[C]=""}if(Array.isArray(v))for(w=0;w1){k||C||T||B("pattern")==="independent"&&(k=!0),O._hasSubplotGrid=k;var E,I,A=B("roworder")==="top to bottom",F=k?.2:.1,j=k?.3:.1;M&&m._splomGridDflt&&(E=m._splomGridDflt.xside,I=m._splomGridDflt.yside),O._domains={x:g("x",B,F,E,P),y:g("y",B,j,I,D,A)}}else delete m.grid}function B(z,N){return s.coerce(y,O,p,z,N)}},contentDefaults:function(v,m){var y=m.grid;if(y&&y._domains){var x,_,w,S,k,C,T,M=v.grid||{},O=m._subplots,D=y._hasSubplotGrid,P=y.rows,E=y.columns,I=y.pattern==="independent",A=y._axisMap={};if(D){var F=M.subplots||[];C=y.subplots=new Array(P);var j=1;for(x=0;x(b==="legend"?1:0));if(j===!1&&(m[b]=void 0),(j!==!1||x.uirevision)&&(w("uirevision",m.uirevision),j!==!1)){w("borderwidth");var B,z,N,R=w("orientation")==="h",q=w("yref")==="paper",Y=w("xref")==="paper",L="left";if(R?(B=0,s.getComponentMethod("rangeslider","isVisible")(v.xaxis)?q?(z=1.1,N="bottom"):(z=1,N="top"):q?(z=-.1,N="top"):(z=0,N="bottom")):(z=1,N="auto",Y?B=1.02:(B=1,L="right")),u.coerce(x,_,{x:{valType:"number",editType:"legend",min:Y?-2:0,max:Y?3:1,dflt:B}},"x"),u.coerce(x,_,{y:{valType:"number",editType:"legend",min:q?-2:0,max:q?3:1,dflt:z}},"y"),w("traceorder",P),h.isGrouped(m[b])&&w("tracegroupgap"),w("entrywidth"),w("entrywidthmode"),w("itemsizing"),w("itemwidth"),w("itemclick"),w("itemdoubleclick"),w("groupclick"),w("xanchor",L),w("yanchor",N),w("valign"),u.noneOrAll(x,_,["x","y"]),w("title.text")){w("title.side",R?"left":"top");var W=u.extendFlat({},S,{size:u.bigFont(S.size)});u.coerceFont(w,"title.font",W)}}}}i.exports=function(b,v,m){var y,x=m.slice(),_=v.shapes;if(_)for(y=0;y<_.length;y++){var w=_[y];if(w.showlegend){var S={_input:w._input,visible:w.visible,showlegend:w.showlegend,legend:w.legend};x.push(S)}}var k=["legend"];for(y=0;y1)}var K=W.hiddenlabels||[];if(!(G||W.showlegend&&te.length))return Y.selectAll("."+H).remove(),W._topdefs.select("#"+q).remove(),c.autoMargin(N,H);var ne=u.ensureSingle(Y,"g",H,function(ce){G||ce.attr("pointer-events","all")}),ae=u.ensureSingleById(W._topdefs,"clipPath",q,function(ce){ce.append("rect")}),ie=u.ensureSingle(ne,"rect","bg",function(ce){ce.attr("shape-rendering","crispEdges")});ie.call(g.stroke,L.bordercolor).call(g.fill,L.bgcolor).style("stroke-width",L.borderwidth+"px");var se,pe=u.ensureSingle(ne,"g","scrollbox"),ke=L.title;L._titleWidth=0,L._titleHeight=0,ke.text?((se=u.ensureSingle(pe,"text",H+"titletext")).attr("text-anchor","start").call(h.font,ke.font).text(ke.text),F(se,pe,N,L,T)):pe.selectAll("."+H+"titletext").remove();var Ce=u.ensureSingle(ne,"rect","scrollbar",function(ce){ce.attr(m.scrollBarEnterAttrs).call(g.fill,m.scrollBarColor)}),Oe=pe.selectAll("g.groups").data(te);Oe.enter().append("g").attr("class","groups"),Oe.exit().remove();var Pe=Oe.selectAll("g.traces").data(u.identity);Pe.enter().append("g").attr("class","traces"),Pe.exit().remove(),Pe.style("opacity",function(ce){var we=ce[0].trace;return d.traceIs(we,"pie-like")?K.indexOf(ce[0].label)!==-1?.5:1:we.visible==="legendonly"?.5:1}).each(function(){s.select(this).call(E,N,L)}).call(k,N,L).each(function(){G||s.select(this).call(A,N,H)}),u.syncOrAsync([c.previousPromises,function(){return function(ce,we,Z,re){var de=ce._fullLayout,_e=z(re);re||(re=de[_e]);var ue=de._size,me=C.isVertical(re),xe=C.isGrouped(re),ye=re.entrywidthmode==="fraction",Se=re.borderwidth,Ae=2*Se,Le=m.itemGap,Re=re.itemwidth+2*Le,Ie=2*(Se+Le),Ne=B(re),ze=re.y<0||re.y===0&&Ne==="top",qe=re.y>1||re.y===1&&Ne==="bottom",We=re.tracegroupgap,Ge={};re._maxHeight=Math.max(ze||qe?de.height/2:ue.h,30);var ot=0;re._width=0,re._height=0;var Je=function(Ye){var Qe=0,rt=0,ut=Ye.title.side;return ut&&(ut.indexOf("left")!==-1&&(Qe=Ye._titleWidth),ut.indexOf("top")!==-1&&(rt=Ye._titleHeight)),[Qe,rt]}(re);if(me)Z.each(function(Ye){var Qe=Ye[0].height;h.setTranslate(this,Se+Je[0],Se+Je[1]+re._height+Qe/2+Le),re._height+=Qe,re._width=Math.max(re._width,Ye[0].width)}),ot=Re+re._width,re._width+=Le+Re+Ae,re._height+=Ie,xe&&(we.each(function(Ye,Qe){h.setTranslate(this,0,Qe*re.tracegroupgap)}),re._height+=(re._lgroupsLength-1)*re.tracegroupgap);else{var st=j(re),bt=re.x<0||re.x===0&&st==="right",Be=re.x>1||re.x===1&&st==="left",je=qe||ze,tt=de.width/2;re._maxWidth=Math.max(bt?je&&st==="left"?ue.l+ue.w:tt:Be?je&&st==="right"?ue.r+ue.w:tt:ue.w,2*Re);var it=0,St=0;Z.each(function(Ye){var Qe=D(Ye,re,Re);it=Math.max(it,Qe),St+=Qe}),ot=null;var et=0;if(xe){var ct=0,ht=0,$t=0;we.each(function(){var Ye=0,Qe=0;s.select(this).selectAll("g.traces").each(function(ut){var gt=D(ut,re,Re),nt=ut[0].height;h.setTranslate(this,Je[0],Je[1]+Se+Le+nt/2+Qe),Qe+=nt,Ye=Math.max(Ye,gt),Ge[ut[0].trace.legendgroup]=Ye});var rt=Ye+Le;ht>0&&rt+Se+ht>re._maxWidth?(et=Math.max(et,ht),ht=0,$t+=ct+We,ct=Qe):ct=Math.max(ct,Qe),h.setTranslate(this,ht,$t),ht+=rt}),re._width=Math.max(et,ht)+Se,re._height=$t+ct+Ie}else{var kt=Z.size(),Wt=St+Ae+(kt-1)*Le=re._maxWidth&&(et=Math.max(et,Ve),be=0,Me+=wt,re._height+=wt,wt=0),h.setTranslate(this,Je[0]+Se+be,Je[1]+Se+Me+Qe/2+Le),Ve=be+rt+Le,be+=ut,wt=Math.max(wt,Qe)}),Wt?(re._width=be+Ae,re._height=wt+Ie):(re._width=Math.max(et,Ve)+Ae,re._height+=wt+Ie)}}re._width=Math.ceil(Math.max(re._width+Je[0],re._titleWidth+2*(Se+m.titlePad))),re._height=Math.ceil(Math.max(re._height+Je[1],re._titleHeight+2*(Se+m.itemGap))),re._effHeight=Math.min(re._height,re._maxHeight);var Ue=ce._context.edits,Ze=Ue.legendText||Ue.legendPosition;Z.each(function(Ye){var Qe=s.select(this).select("."+_e+"toggle"),rt=Ye[0].height,ut=Ye[0].trace.legendgroup,gt=D(Ye,re,Re);xe&&ut!==""&&(gt=Ge[ut]);var nt=Ze?Re:ot||gt;me||ye||(nt+=Le/2),h.setRect(Qe,0,-rt/2,nt,rt)})}(N,Oe,Pe,L)},function(){var ce,we,Z,re,de=W._size,_e=L.borderwidth,ue=L.xref==="paper",me=L.yref==="paper";if(ke.text&&function(je,tt,it){if(tt.title.side==="top center"||tt.title.side==="top right"){var St=tt.title.font.size*x,et=0,ct=je.node(),ht=h.bBox(ct).width;tt.title.side==="top center"?et=.5*(tt._width-2*it-2*m.titlePad-ht):tt.title.side==="top right"&&(et=tt._width-2*it-2*m.titlePad-ht),b.positionText(je,it+m.titlePad+et,it+St)}}(se,L,_e),!G){var xe,ye;xe=ue?de.l+de.w*L.x-_[j(L)]*L._width:W.width*L.x-_[j(L)]*L._width,ye=me?de.t+de.h*(1-L.y)-_[B(L)]*L._effHeight:W.height*(1-L.y)-_[B(L)]*L._effHeight;var Se=function(je,tt,it,St){var et=je._fullLayout,ct=et[tt],ht=j(ct),$t=B(ct),kt=ct.xref==="paper",Wt=ct.yref==="paper";je._fullLayout._reservedMargin[tt]={};var wt=ct.y<.5?"b":"t",be=ct.x<.5?"l":"r",Me={r:et.width-it,l:it+ct._width,b:et.height-St,t:St+ct._effHeight};if(kt&&Wt)return c.autoMargin(je,tt,{x:ct.x,y:ct.y,l:ct._width*_[ht],r:ct._width*w[ht],b:ct._effHeight*w[$t],t:ct._effHeight*_[$t]});kt?je._fullLayout._reservedMargin[tt][wt]=Me[wt]:Wt||ct.orientation==="v"?je._fullLayout._reservedMargin[tt][be]=Me[be]:je._fullLayout._reservedMargin[tt][wt]=Me[wt]}(N,H,xe,ye);if(Se)return;if(W.margin.autoexpand){var Ae=xe,Le=ye;xe=ue?u.constrain(xe,0,W.width-L._width):Ae,ye=me?u.constrain(ye,0,W.height-L._effHeight):Le,xe!==Ae&&u.log("Constrain "+H+".x to make legend fit inside graph"),ye!==Le&&u.log("Constrain "+H+".y to make legend fit inside graph")}h.setTranslate(ne,xe,ye)}if(Ce.on(".drag",null),ne.on("wheel",null),G||L._height<=L._maxHeight||N._context.staticPlot){var Re=L._effHeight;G&&(Re=L._height),ie.attr({width:L._width-_e,height:Re-_e,x:_e/2,y:_e/2}),h.setTranslate(pe,0,0),ae.select("rect").attr({width:L._width-2*_e,height:Re-2*_e,x:_e,y:_e}),h.setClipUrl(pe,q,N),h.setRect(Ce,0,0,0,0),delete L._scrollY}else{var Ie,Ne,ze,qe=Math.max(m.scrollBarMinHeight,L._effHeight*L._effHeight/L._height),We=L._effHeight-qe-2*m.scrollBarMargin,Ge=L._height-L._effHeight,ot=We/Ge,Je=Math.min(L._scrollY||0,Ge);ie.attr({width:L._width-2*_e+m.scrollBarWidth+m.scrollBarMargin,height:L._effHeight-_e,x:_e/2,y:_e/2}),ae.select("rect").attr({width:L._width-2*_e+m.scrollBarWidth+m.scrollBarMargin,height:L._effHeight-2*_e,x:_e,y:_e+Je}),h.setClipUrl(pe,q,N),Be(Je,qe,ot),ne.on("wheel",function(){Be(Je=u.constrain(L._scrollY+s.event.deltaY/We*Ge,0,Ge),qe,ot),Je!==0&&Je!==Ge&&s.event.preventDefault()});var st=s.behavior.drag().on("dragstart",function(){var je=s.event.sourceEvent;Ie=je.type==="touchstart"?je.changedTouches[0].clientY:je.clientY,ze=Je}).on("drag",function(){var je=s.event.sourceEvent;je.buttons===2||je.ctrlKey||(Ne=je.type==="touchmove"?je.changedTouches[0].clientY:je.clientY,Je=function(tt,it,St){var et=(St-it)/ot+tt;return u.constrain(et,0,Ge)}(ze,Ie,Ne),Be(Je,qe,ot))});Ce.call(st);var bt=s.behavior.drag().on("dragstart",function(){var je=s.event.sourceEvent;je.type==="touchstart"&&(Ie=je.changedTouches[0].clientY,ze=Je)}).on("drag",function(){var je=s.event.sourceEvent;je.type==="touchmove"&&(Ne=je.changedTouches[0].clientY,Je=function(tt,it,St){var et=(it-St)/ot+tt;return u.constrain(et,0,Ge)}(ze,Ie,Ne),Be(Je,qe,ot))});pe.call(bt)}function Be(je,tt,it){L._scrollY=N._fullLayout[H]._scrollY=je,h.setTranslate(pe,0,-je),h.setRect(Ce,L._width,m.scrollBarMargin+je*it,m.scrollBarWidth,tt),ae.select("rect").attr("y",_e+je)}N._context.edits.legendPosition&&(ne.classed("cursor-move",!0),p.init({element:ne.node(),gd:N,prepFn:function(){var je=h.getTranslate(ne);Z=je.x,re=je.y},moveFn:function(je,tt){var it=Z+je,St=re+tt;h.setTranslate(ne,it,St),ce=p.align(it,L._width,de.l,de.l+de.w,L.xanchor),we=p.align(St+L._height,-L._height,de.t+de.h,de.t,L.yanchor)},doneFn:function(){if(ce!==void 0&&we!==void 0){var je={};je[H+".x"]=ce,je[H+".y"]=we,d.call("_guiRelayout",N,je)}},clickFn:function(je,tt){var it=Y.selectAll("g.traces").filter(function(){var St=this.getBoundingClientRect();return tt.clientX>=St.left&&tt.clientX<=St.right&&tt.clientY>=St.top&&tt.clientY<=St.bottom});it.size()>0&&P(N,ne,it,je,tt)}}))}],N)}}function D(N,R,q){var Y=N[0],L=Y.width,W=R.entrywidthmode,H=Y.trace.legendwidth||R.entrywidth;return W==="fraction"?R._maxWidth*H:q+(H||L)}function P(N,R,q,Y,L){var W=q.data()[0][0].trace,H={event:L,node:q.node(),curveNumber:W.index,expandedIndex:W._expandedIndex,data:N.data,layout:N.layout,frames:N._transitionData._frames,config:N._context,fullData:N._fullData,fullLayout:N._fullLayout};W._group&&(H.group=W._group),d.traceIs(W,"pie-like")&&(H.label=q.datum()[0].label);var G=f.triggerHandler(N,"plotly_legendclick",H);if(Y===1){if(G===!1)return;R._clickTimeout=setTimeout(function(){N._fullLayout&&v(q,N,Y)},N._context.doubleClickDelay)}else Y===2&&(R._clickTimeout&&clearTimeout(R._clickTimeout),N._legendMouseDownTime=0,f.triggerHandler(N,"plotly_legenddoubleclick",H)!==!1&&G!==!1&&v(q,N,Y))}function E(N,R,q){var Y,L,W=z(q),H=N.data()[0][0],G=H.trace,te=d.traceIs(G,"pie-like"),ee=!q._inHover&&R._context.edits.legendText&&!te,U=q._maxNameLength;H.groupTitle?(Y=H.groupTitle.text,L=H.groupTitle.font):(L=q.font,q.entries?Y=H.text:(Y=te?H.label:G.name,G._meta&&(Y=u.templateString(Y,G._meta))));var Q=u.ensureSingle(N,"text",W+"text");Q.attr("text-anchor","start").call(h.font,L).text(ee?I(Y,U):Y);var V=q.itemwidth+2*m.itemGap;b.positionText(Q,V,0),ee?Q.call(b.makeEditable,{gd:R,text:Y}).call(F,N,R,q).on("edit",function(X){this.text(I(X,U)).call(F,N,R,q);var K=H.trace._fullInput||{},ne={};if(d.hasTransform(K,"groupby")){var ae=d.getTransformIndices(K,"groupby"),ie=ae[ae.length-1],se=u.keyedContainer(K,"transforms["+ie+"].styles","target","value.name");se.set(H.trace._group,X),ne=se.constructUpdate()}else ne.name=X;return K._isShape?d.call("_guiRelayout",R,"shapes["+G.index+"].name",ne.name):d.call("_guiRestyle",R,ne,G.index)}):F(Q,N,R,q)}function I(N,R){var q=Math.max(4,R);if(N&&N.trim().length>=q/2)return N;for(var Y=q-(N=N||"").length;Y>0;Y--)N+=" ";return N}function A(N,R,q){var Y,L=R._context.doubleClickDelay,W=1,H=u.ensureSingle(N,"rect",q+"toggle",function(G){R._context.staticPlot||G.style("cursor","pointer").attr("pointer-events","all"),G.call(g.fill,"rgba(0,0,0,0)")});R._context.staticPlot||(H.on("mousedown",function(){(Y=new Date().getTime())-R._legendMouseDownTimeL&&(W=Math.max(W-1,1)),P(R,G,N,W,s.event)}}))}function F(N,R,q,Y,L){Y._inHover&&N.attr("data-notex",!0),b.convertToTspans(N,q,function(){(function(W,H,G,te){var ee=W.data()[0][0];if(G._inHover||!ee||ee.trace.showlegend){var U=W.select("g[class*=math-group]"),Q=U.node(),V=z(G);G||(G=H._fullLayout[V]);var X,K,ne=G.borderwidth,ae=(te===T?G.title.font:ee.groupTitle?ee.groupTitle.font:G.font).size*x;if(Q){var ie=h.bBox(Q);X=ie.height,K=ie.width,te===T?h.setTranslate(U,ne,ne+.75*X):h.setTranslate(U,0,.25*X)}else{var se="."+V+(te===T?"title":"")+"text",pe=W.select(se),ke=b.lineCount(pe),Ce=pe.node();if(X=ae*ke,K=Ce?h.bBox(Ce).width:0,te===T)G.title.side==="left"&&(K+=2*m.itemGap),b.positionText(pe,ne+m.titlePad,ne+ae);else{var Oe=2*m.itemGap+G.itemwidth;ee.groupTitle&&(Oe=m.itemGap,K-=G.itemwidth),b.positionText(pe,Oe,-ae*((ke-1)/2-.3))}}te===T?(G._titleWidth=K,G._titleHeight=X):(ee.lineHeight=ae,ee.height=Math.max(X,16)+3,ee.width=K)}else W.remove()})(R,q,Y,L)})}function j(N){return u.isRightAnchor(N)?"right":u.isCenterAnchor(N)?"center":"left"}function B(N){return u.isBottomAnchor(N)?"bottom":u.isMiddleAnchor(N)?"middle":"top"}function z(N){return N._id||"legend"}i.exports=function(N,R){if(R)O(N,R);else{var q=N._fullLayout,Y=q._legends;q._infolayer.selectAll('[class^="legend"]').each(function(){var H=s.select(this),G=H.attr("class").split(" ")[0];G.match(M)&&Y.indexOf(G)===-1&&H.remove()});for(var L=0;Lj&&(F=j)}I[p][0]._groupMinRank=F,I[p][0]._preGroupSort=p}var B=function(Y,L){return Y.trace.legendrank-L.trace.legendrank||Y._preSort-L._preSort};for(I.forEach(function(Y,L){Y[0]._preGroupSort=L}),I.sort(function(Y,L){return Y[0]._groupMinRank-L[0]._groupMinRank||Y[0]._preGroupSort-L[0]._preGroupSort}),p=0;pk?k:w}i.exports=function(w,S,k){var C=S._fullLayout;k||(k=C.legend);var T=k.itemsizing==="constant",M=k.itemwidth,O=(M+2*m.itemGap)/2,D=d(O,0),P=function(A,F,j,B){var z;if(A+1)z=A;else{if(!(F&&F.width>0))return 0;z=F.width}return T?B:Math.min(z,j)};function E(A,F,j){var B=A[0].trace,z=B.marker||{},N=z.line||{},R=j?B.visible&&B.type===j:u.traceIs(B,"bar"),q=s.select(F).select("g.legendpoints").selectAll("path.legend"+j).data(R?[A]:[]);q.enter().append("path").classed("legend"+j,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),q.exit().remove(),q.each(function(Y){var L=s.select(this),W=Y[0],H=P(W.mlw,z.line,5,2);L.style("stroke-width",H+"px");var G=W.mcc;if(!k._inHover&&"mc"in W){var te=h(z),ee=te.mid;ee===void 0&&(ee=(te.max+te.min)/2),G=f.tryColorscale(z,"")(ee)}var U=G||W.mc||z.color,Q=z.pattern,V=Q&&f.getPatternAttr(Q.shape,0,"");if(V){var X=f.getPatternAttr(Q.bgcolor,0,null),K=f.getPatternAttr(Q.fgcolor,0,null),ne=Q.fgopacity,ae=_(Q.size,8,10),ie=_(Q.solidity,.5,1),se="legend-"+B.uid;L.call(f.pattern,"legend",S,se,V,ae,ie,G,Q.fillmode,X,K,ne)}else L.call(p.fill,U);H&&p.stroke(L,W.mlc||N.color)})}function I(A,F,j){var B=A[0],z=B.trace,N=j?z.visible&&z.type===j:u.traceIs(z,j),R=s.select(F).select("g.legendpoints").selectAll("path.legend"+j).data(N?[A]:[]);if(R.enter().append("path").classed("legend"+j,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),R.exit().remove(),R.size()){var q=z.marker||{},Y=P(v(q.line.width,B.pts),q.line,5,2),L="pieLike",W=c.minExtend(z,{marker:{line:{width:Y}}},L),H=c.minExtend(B,{trace:W},L);b(R,H,W,S)}}w.each(function(A){var F=s.select(this),j=c.ensureSingle(F,"g","layers");j.style("opacity",A[0].trace.opacity);var B=k.valign,z=A[0].lineHeight,N=A[0].height;if(B!=="middle"&&z&&N){var R={top:1,bottom:-1}[B]*(.5*(z-N+3));j.attr("transform",d(0,R))}else j.attr("transform",null);j.selectAll("g.legendfill").data([A]).enter().append("g").classed("legendfill",!0),j.selectAll("g.legendlines").data([A]).enter().append("g").classed("legendlines",!0);var q=j.selectAll("g.legendsymbols").data([A]);q.enter().append("g").classed("legendsymbols",!0),q.selectAll("g.legendpoints").data([A]).enter().append("g").classed("legendpoints",!0)}).each(function(A){var F,j=A[0].trace,B=[];if(j.visible)switch(j.type){case"histogram2d":case"heatmap":B=[["M-15,-2V4H15V-2Z"]],F=!0;break;case"choropleth":case"choroplethmapbox":B=[["M-6,-6V6H6V-6Z"]],F=!0;break;case"densitymapbox":B=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],F="radial";break;case"cone":B=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],F=!1;break;case"streamtube":B=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],F=!1;break;case"surface":B=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],F=!0;break;case"mesh3d":B=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],F=!1;break;case"volume":B=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],F=!0;break;case"isosurface":B=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],F=!1}var z=s.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(B);z.enter().append("path").classed("legend3dandfriends",!0).attr("transform",D).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(N,R){var q,Y=s.select(this),L=h(j),W=L.colorscale,H=L.reversescale;if(W){if(!F){var G=W.length;q=R===0?W[H?G-1:0][1]:R===1?W[H?0:G-1][1]:W[Math.floor((G-1)/2)][1]}}else{var te=j.vertexcolor||j.facecolor||j.color;q=c.isArrayOrTypedArray(te)?te[R]||te[0]:te}Y.attr("d",N[0]),q?Y.call(p.fill,q):Y.call(function(ee){if(ee.size()){var U="legendfill-"+j.uid;f.gradient(ee,S,U,y(H,F==="radial"),W,"fill")}})})}).each(function(A){var F=A[0].trace,j=F.type==="waterfall";if(A[0]._distinct&&j){var B=A[0].trace[A[0].dir].marker;return A[0].mc=B.color,A[0].mlw=B.line.width,A[0].mlc=B.line.color,E(A,this,"waterfall")}var z=[];F.visible&&j&&(z=A[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var N=s.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(z);N.enter().append("path").classed("legendwaterfall",!0).attr("transform",D).style("stroke-miterlimit",1),N.exit().remove(),N.each(function(R){var q=s.select(this),Y=F[R[0]].marker,L=P(void 0,Y.line,5,2);q.attr("d",R[1]).style("stroke-width",L+"px").call(p.fill,Y.color),L&&q.call(p.stroke,Y.line.color)})}).each(function(A){E(A,this,"funnel")}).each(function(A){E(A,this)}).each(function(A){var F=A[0].trace,j=s.select(this).select("g.legendpoints").selectAll("path.legendbox").data(F.visible&&u.traceIs(F,"box-violin")?[A]:[]);j.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),j.exit().remove(),j.each(function(){var B=s.select(this);if(F.boxpoints!=="all"&&F.points!=="all"||p.opacity(F.fillcolor)!==0||p.opacity((F.line||{}).color)!==0){var z=P(void 0,F.line,5,2);B.style("stroke-width",z+"px").call(p.fill,F.fillcolor),z&&p.stroke(B,F.line.color)}else{var N=c.minExtend(F,{marker:{size:T?12:c.constrain(F.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});j.call(f.pointStyle,N,S)}})}).each(function(A){I(A,this,"funnelarea")}).each(function(A){I(A,this,"pie")}).each(function(A){var F,j,B=x(A),z=B.showFill,N=B.showLine,R=B.showGradientLine,q=B.showGradientFill,Y=B.anyFill,L=B.anyLine,W=A[0],H=W.trace,G=h(H),te=G.colorscale,ee=G.reversescale,U=g.hasMarkers(H)||!Y?"M5,0":L?"M5,-2":"M5,-3",Q=s.select(this),V=Q.select(".legendfill").selectAll("path").data(z||q?[A]:[]);if(V.enter().append("path").classed("js-fill",!0),V.exit().remove(),V.attr("d",U+"h"+M+"v6h-"+M+"z").call(function(ne){if(ne.size())if(z)f.fillGroupStyle(ne,S);else{var ae="legendfill-"+H.uid;f.gradient(ne,S,ae,y(ee),te,"fill")}}),N||R){var X=P(void 0,H.line,10,5);j=c.minExtend(H,{line:{width:X}}),F=[c.minExtend(W,{trace:j})]}var K=Q.select(".legendlines").selectAll("path").data(N||R?[F]:[]);K.enter().append("path").classed("js-line",!0),K.exit().remove(),K.attr("d",U+(R?"l"+M+",0.0001":"h"+M)).call(N?f.lineGroupStyle:function(ne){if(ne.size()){var ae="legendline-"+H.uid;f.lineGroupStyle(ne),f.gradient(ne,S,ae,y(ee),te,"stroke")}})}).each(function(A){var F,j,B=x(A),z=B.anyFill,N=B.anyLine,R=B.showLine,q=B.showMarker,Y=A[0],L=Y.trace,W=!q&&!N&&!z&&g.hasText(L);function H(K,ne,ae,ie){var se=c.nestedProperty(L,K).get(),pe=c.isArrayOrTypedArray(se)&&ne?ne(se):se;if(T&&pe&&ie!==void 0&&(pe=ie),ae){if(peae[1])return ae[1]}return pe}function G(K){return Y._distinct&&Y.index&&K[Y.index]?K[Y.index]:K[0]}if(q||W||R){var te={},ee={};if(q){te.mc=H("marker.color",G),te.mx=H("marker.symbol",G),te.mo=H("marker.opacity",c.mean,[.2,1]),te.mlc=H("marker.line.color",G),te.mlw=H("marker.line.width",c.mean,[0,5],2),ee.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var U=H("marker.size",c.mean,[2,16],12);te.ms=U,ee.marker.size=U}R&&(ee.line={width:H("line.width",G,[0,10],5)}),W&&(te.tx="Aa",te.tp=H("textposition",G),te.ts=10,te.tc=H("textfont.color",G),te.tf=H("textfont.family",G)),F=[c.minExtend(Y,te)],(j=c.minExtend(L,ee)).selectedpoints=null,j.texttemplate=null}var Q=s.select(this).select("g.legendpoints"),V=Q.selectAll("path.scatterpts").data(q?F:[]);V.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",D),V.exit().remove(),V.call(f.pointStyle,j,S),q&&(F[0].mrc=3);var X=Q.selectAll("g.pointtext").data(W?F:[]);X.enter().append("g").classed("pointtext",!0).append("text").attr("transform",D),X.exit().remove(),X.selectAll("text").call(f.textPointStyle,j,S)}).each(function(A){var F=A[0].trace,j=s.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(F.visible&&F.type==="candlestick"?[A,A]:[]);j.enter().append("path").classed("legendcandle",!0).attr("d",function(B,z){return z?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",D).style("stroke-miterlimit",1),j.exit().remove(),j.each(function(B,z){var N=s.select(this),R=F[z?"increasing":"decreasing"],q=P(void 0,R.line,5,2);N.style("stroke-width",q+"px").call(p.fill,R.fillcolor),q&&p.stroke(N,R.line.color)})}).each(function(A){var F=A[0].trace,j=s.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(F.visible&&F.type==="ohlc"?[A,A]:[]);j.enter().append("path").classed("legendohlc",!0).attr("d",function(B,z){return z?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",D).style("stroke-miterlimit",1),j.exit().remove(),j.each(function(B,z){var N=s.select(this),R=F[z?"increasing":"decreasing"],q=P(void 0,R.line,5,2);N.style("fill","none").call(f.dashLine,R.line.dash,q),q&&p.stroke(N,R.line.color)})})}},42068:function(i,o,a){a(93348),i.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},26023:function(i,o,a){var s=a(73972),u=a(74875),c=a(41675),d=a(24255),f=a(34031).eraseActiveShape,p=a(71828),h=p._,g=i.exports={};function b(C,T){var M,O,D=T.currentTarget,P=D.getAttribute("data-attr"),E=D.getAttribute("data-val")||!0,I=C._fullLayout,A={},F=c.list(C,null,!0),j=I._cartesianSpikesEnabled;if(P==="zoom"){var B,z=E==="in"?.5:2,N=(1+z)/2,R=(1-z)/2;for(O=0;O1?(U=["toggleHover"],Q=["resetViews"]):A?(ee=["zoomInGeo","zoomOutGeo"],U=["hoverClosestGeo"],Q=["resetGeo"]):I?(U=["hoverClosest3d"],Q=["resetCameraDefault3d","resetCameraLastSave3d"]):N?(ee=["zoomInMapbox","zoomOutMapbox"],U=["toggleHover"],Q=["resetViewMapbox"]):B?U=["hoverClosestGl2d"]:F?U=["hoverClosestPie"]:Y?(U=["hoverClosestCartesian","hoverCompareCartesian"],Q=["resetViewSankey"]):U=["toggleHover"],E&&(U=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(se){for(var pe=0;pe0)){var S=function(C,T,M){for(var O=M.filter(function(I){return T[I].anchor===C._id}),D=0,P=0;P=Ce.max)pe=ne[ke+1];else if(se=Ce.pmax)pe=ne[ke+1];else if(seke._length||me+Ne<0)return;Le=ue+Ne,Re=me+Ne;break;case Pe:if(Ie="col-resize",ue+Ne>ke._length)return;Le=ue+Ne,Re=me;break;case ce:if(Ie="col-resize",me+Ne<0)return;Le=ue,Re=me+Ne;break;default:Ie="ew-resize",Le=_e,Re=_e+Ne}if(Re=0;B--){var z=T.append("path").attr(O).style("opacity",B?.1:D).call(d.stroke,E).call(d.fill,P).call(f.dashLine,B?"solid":A,B?4+I:I);if(y(z,_,k),F){var N=p(_.layout,"selections",k);z.style({cursor:"move"});var R={element:z.node(),plotinfo:C,gd:_,editHelpers:N,isActiveSelection:!0},q=s(M,_);u(q,z,R)}else z.style("pointer-events",B?"all":"none");j[B]=z}var Y=j[0];j[1].node().addEventListener("click",function(){return function(L,W){if(v(L)){var H=+W.node().getAttribute("data-index");if(H>=0){if(H===L._fullLayout._activeSelectionIndex)return void x(L);L._fullLayout._activeSelectionIndex=H,L._fullLayout._deactivateSelection=x,b(L)}}}(_,Y)})}(_._fullLayout._selectionLayer)}function y(_,w,S){var k=S.xref+S.yref;f.setClipUrl(_,"clip"+w._fullLayout._uid+k,w)}function x(_){v(_)&&_._fullLayout._activeSelectionIndex>=0&&(c(_),delete _._fullLayout._activeSelectionIndex,b(_))}i.exports={draw:b,drawOne:m,activateLastSelection:function(_){if(v(_)){var w=_._fullLayout.selections.length-1;_._fullLayout._activeSelectionIndex=w,_._fullLayout._deactivateSelection=x,b(_)}}}},53777:function(i,o,a){var s=a(79952).P,u=a(1426).extendFlat;i.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:u({},s,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},90849:function(i){i.exports=function(o,a,s){s("newselection.mode"),s("newselection.line.width")&&(s("newselection.line.color"),s("newselection.line.dash")),s("activeselection.fillcolor"),s("activeselection.opacity")}},35855:function(i,o,a){var s=a(64505).selectMode,u=a(51873).clearOutline,c=a(60165),d=c.readPaths,f=c.writePaths,p=c.fixDatesForPaths;i.exports=function(h,g){if(h.length){var b=h[0][0];if(b){var v=b.getAttribute("d"),m=g.gd,y=m._fullLayout.newselection,x=g.plotinfo,_=x.xaxis,w=x.yaxis,S=g.isActiveSelection,k=g.dragmode,C=(m.layout||{}).selections||[];if(!s(k)&&S!==void 0){var T=m._fullLayout._activeSelectionIndex;if(T-1,St=[];if(function(kt){return kt&&Array.isArray(kt)&&kt[0].hoverOnBox!==!0}(tt)){X(Se,Ae,Ne);var et=function(kt,Wt){var wt,be,Me=kt[0],Ve=-1,Ue=[];for(be=0;be0?function(kt,Wt){var wt,be,Me,Ve=[];for(Me=0;Me0&&Ve.push(wt);if(Ve.length===1&&Ve[0]===Wt.searchInfo&&(be=Wt.searchInfo.cd[0].trace).selectedpoints.length===Wt.pointNumbers.length){for(Me=0;Me1||(be+=Wt.selectedpoints.length)>1))return!1;return be===1}(qe)&&(st=se(et))){for(ze&&ze.remove(),je=0;je=0})(Ie)&&Ie._fullLayout._deactivateShape(Ie),function(Je){return Je._fullLayout._activeSelectionIndex>=0}(Ie)&&Ie._fullLayout._deactivateSelection(Ie);var Ne=Ie._fullLayout._zoomlayer,ze=m(Le),qe=x(Le);if(ze||qe){var We,Ge,ot=Ne.selectAll(".select-outline-"+Re.id);ot&&Ie._fullLayout._outlining&&(ze&&(We=O(ot,Se)),We&&c.call("_guiRelayout",Ie,{shapes:We}),qe&&!te(Se)&&(Ge=D(ot,Se)),Ge&&(Ie._fullLayout._noEmitSelectedAtStart=!0,c.call("_guiRelayout",Ie,{selections:Ge}).then(function(){Ae&&P(Ie)})),Ie._fullLayout._outlining=!1)}Re.selection={},Re.selection.selectionDefs=Se.selectionDefs=[],Re.selection.mergedPolygons=Se.mergedPolygons=[]}function ne(Se){return Se._id}function ae(Se,Ae,Le,Re){if(!Se.calcdata)return[];var Ie,Ne,ze,qe=[],We=Ae.map(ne),Ge=Le.map(ne);for(ze=0;ze0?Re[0]:Le;return!!Ae.selectedpoints&&Ae.selectedpoints.indexOf(Ie)>-1}function pe(Se,Ae,Le){var Re,Ie;for(Re=0;Re-1&&Ae;if(!Ne&&Ae){var Pt=re(Se,!0);if(Pt.length){var Ot=Pt[0].xref,It=Pt[0].yref;if(Ot&&It){var Lt=ue(Pt);me([j(Se,Ot,"x"),j(Se,It,"y")])(jt,Lt)}}Se._fullLayout._noEmitSelectedAtStart?Se._fullLayout._noEmitSelectedAtStart=!1:Tt&&xe(Se,jt),st._reselect=!1}if(!Ne&&st._deselect){var zt=st._deselect;(function(Xt,Kt,Bt){for(var Ut=0;Ut=0)bt._fullLayout._deactivateShape(bt);else if(!Ge){var Lt=Be.clickmode;F.done(Rt).then(function(){if(F.clear(Rt),Ot===2){for(Ft.remove(),Me=0;Me-1&&ee(It,bt,Re.xaxes,Re.yaxes,Re.subplot,Re,Ft),Lt==="event"&&xe(bt,void 0);p.click(bt,It,St.id)}).catch(E.error)}},Re.doneFn=function(){yt.remove(),F.done(Rt).then(function(){F.clear(Rt),!je&&be&&Re.selectionDefs&&(be.subtract=Ct,Re.selectionDefs.push(be),Re.mergedPolygons.length=0,[].push.apply(Re.mergedPolygons,wt)),(je||Ge)&&K(Re,je),Re.doneFnCompleted&&Re.doneFnCompleted(jt),ot&&xe(bt,Ue)}).catch(E.error)}},clearOutline:k,clearSelectionsCache:K,selectOnClick:ee}},89827:function(i,o,a){var s=a(50215),u=a(41940),c=a(82196).line,d=a(79952).P,f=a(1426).extendFlat,p=a(44467).templatedArray,h=(a(24695),a(9012)),g=a(5386).R,b=a(37281);i.exports=p("shape",{visible:f({},h.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:f({},h.legend,{editType:"calc+arraydraw"}),legendgroup:f({},h.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:f({},h.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:u({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:f({},h.legendrank,{editType:"calc+arraydraw"}),legendwidth:f({},h.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:f({},s.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},yref:f({},s.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:f({},c.color,{editType:"arraydraw"}),width:f({},c.width,{editType:"calc+arraydraw"}),dash:f({},d,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:g({},{keys:Object.keys(b)}),font:u({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})},5627:function(i,o,a){var s=a(71828),u=a(89298),c=a(21459),d=a(30477);function f(b){return h(b.line.width,b.xsizemode,b.x0,b.x1,b.path,!1)}function p(b){return h(b.line.width,b.ysizemode,b.y0,b.y1,b.path,!0)}function h(b,v,m,y,x,_){var w=b/2,S=_;if(v==="pixel"){var k=x?d.extractPathCoords(x,_?c.paramIsY:c.paramIsX):[m,y],C=s.aggNums(Math.max,null,k),T=s.aggNums(Math.min,null,k),M=T<0?Math.abs(T)+w:w,O=C>0?C+w:w;return{ppad:w,ppadplus:S?M:O,ppadminus:S?O:M}}return{ppad:w}}function g(b,v,m,y,x){var _=b.type==="category"||b.type==="multicategory"?b.r2c:b.d2c;if(v!==void 0)return[_(v),_(m)];if(y){var w,S,k,C,T=1/0,M=-1/0,O=y.match(c.segmentRE);for(b.type==="date"&&(_=d.decodeDate(_)),w=0;wM&&(M=C)));return M>=T?[T,M]:void 0}}i.exports=function(b){var v=b._fullLayout,m=s.filterVisible(v.shapes);if(m.length&&b._fullData.length)for(var y=0;y=ne?ae-se:se-ae,-180/Math.PI*Math.atan2(pe,ke)}(M,D,O,P):0),A.call(function(ne){return ne.call(d.font,I).attr({}),c.convertToTspans(ne,v),ne});var Q=function(ne,ae,ie,se,pe,ke,Ce){var Oe,Pe,ce,we,Z=pe.label.textposition,re=pe.label.textangle,de=pe.label.padding,_e=pe.type,ue=Math.PI/180*ke,me=Math.sin(ue),xe=Math.cos(ue),ye=pe.label.xanchor,Se=pe.label.yanchor;if(_e==="line"){Z==="start"?(Oe=ne,Pe=ae):Z==="end"?(Oe=ie,Pe=se):(Oe=(ne+ie)/2,Pe=(ae+se)/2),ye==="auto"&&(ye=Z==="start"?re==="auto"?ie>ne?"left":iene?"right":iene?"right":iene?"left":ie1&&(Oe.length!==2||Oe[1][0]!=="Z")&&(Y===0&&(Oe[0][0]="M"),E[q]=Oe,B(),z())}}()}}function ne(pe,ke){(function(Ce,Oe){if(E.length)for(var Pe=0;PePe?(Z=Ce,ue="y0",re=Pe,me="y1"):(Z=Pe,ue="y1",re=Ce,me="y0"),ct(wt),kt(se,ae),function(be,Me,Ve){var Ue=Me.xref,Ze=Me.yref,Ye=d.getFromId(Ve,Ue),Qe=d.getFromId(Ve,Ze),rt="";Ue==="paper"||Ye.autorange||(rt+=Ue),Ze==="paper"||Qe.autorange||(rt+=Ze),v.setClipUrl(be,rt?"clip"+Ve._fullLayout._uid+rt:null,Ve)}(ne,ae,K),et.moveFn=Ae==="move"?ht:$t,et.altKey=wt.altKey)},doneFn:function(){C(K)||(x(ne),Wt(se),O(ne,K,ae),u.call("_guiRelayout",K,pe.getUpdateObj()))},clickFn:function(){C(K)||Wt(se)}};function ct(wt){if(C(K))Ae=null;else if(ze)Ae=wt.target.tagName==="path"?"move":wt.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var be=et.element.getBoundingClientRect(),Me=be.right-be.left,Ve=be.bottom-be.top,Ue=wt.clientX-be.left,Ze=wt.clientY-be.top,Ye=!qe&&Me>Le&&Ve>Re&&!wt.shiftKey?y.getCursor(Ue/Me,1-Ze/Ve):"move";x(ne,Ye),Ae=Ye.split("-")[0]}}function ht(wt,be){if(ae.type==="path"){var Me=function(Ze){return Ze},Ve=Me,Ue=Me;Ie?We("xanchor",ae.xanchor=tt(ce+wt)):(Ve=function(Ze){return tt(Be(Ze)+wt)},ot&&ot.type==="date"&&(Ve=w.encodeDate(Ve))),Ne?We("yanchor",ae.yanchor=it(we+be)):(Ue=function(Ze){return it(je(Ze)+be)},st&&st.type==="date"&&(Ue=w.encodeDate(Ue))),We("path",ae.path=D(Se,Ve,Ue))}else Ie?We("xanchor",ae.xanchor=tt(ce+wt)):(We("x0",ae.x0=tt(ke+wt)),We("x1",ae.x1=tt(Oe+wt))),Ne?We("yanchor",ae.yanchor=it(we+be)):(We("y0",ae.y0=it(Ce+be)),We("y1",ae.y1=it(Pe+be)));ne.attr("d",S(K,ae)),kt(se,ae),h(K,ie,ae,Ge)}function $t(wt,be){if(qe){var Me=function(pt){return pt},Ve=Me,Ue=Me;Ie?We("xanchor",ae.xanchor=tt(ce+wt)):(Ve=function(pt){return tt(Be(pt)+wt)},ot&&ot.type==="date"&&(Ve=w.encodeDate(Ve))),Ne?We("yanchor",ae.yanchor=it(we+be)):(Ue=function(pt){return it(je(pt)+be)},st&&st.type==="date"&&(Ue=w.encodeDate(Ue))),We("path",ae.path=D(Se,Ve,Ue))}else if(ze){if(Ae==="resize-over-start-point"){var Ze=ke+wt,Ye=Ne?Ce-be:Ce+be;We("x0",ae.x0=Ie?Ze:tt(Ze)),We("y0",ae.y0=Ne?Ye:it(Ye))}else if(Ae==="resize-over-end-point"){var Qe=Oe+wt,rt=Ne?Pe-be:Pe+be;We("x1",ae.x1=Ie?Qe:tt(Qe)),We("y1",ae.y1=Ne?rt:it(rt))}}else{var ut=function(pt){return Ae.indexOf(pt)!==-1},gt=ut("n"),nt=ut("s"),Nt=ut("w"),Gt=ut("e"),Ct=gt?Z+be:Z,Ft=nt?re+be:re,Et=Nt?de+wt:de,mt=Gt?_e+wt:_e;Ne&&(gt&&(Ct=Z-be),nt&&(Ft=re-be)),(!Ne&&Ft-Ct>Re||Ne&&Ct-Ft>Re)&&(We(ue,ae[ue]=Ne?Ct:it(Ct)),We(me,ae[me]=Ne?Ft:it(Ft))),mt-Et>Le&&(We(xe,ae[xe]=Ie?Et:tt(Et)),We(ye,ae[ye]=Ie?mt:tt(mt)))}ne.attr("d",S(K,ae)),kt(se,ae),h(K,ie,ae,Ge)}function kt(wt,be){(Ie||Ne)&&function(){var Me=be.type!=="path",Ve=wt.selectAll(".visual-cue").data([0]);Ve.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var Ue=Be(Ie?be.xanchor:c.midRange(Me?[be.x0,be.x1]:w.extractPathCoords(be.path,_.paramIsX))),Ze=je(Ne?be.yanchor:c.midRange(Me?[be.y0,be.y1]:w.extractPathCoords(be.path,_.paramIsY)));if(Ue=w.roundPositionForSharpStrokeRendering(Ue,1),Ze=w.roundPositionForSharpStrokeRendering(Ze,1),Ie&&Ne){var Ye="M"+(Ue-1-1)+","+(Ze-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ve.attr("d",Ye)}else if(Ie){var Qe="M"+(Ue-1-1)+","+(Ze-9-1)+"v18 h2 v-18 Z";Ve.attr("d",Qe)}else{var rt="M"+(Ue-9-1)+","+(Ze-1-1)+"h18 v2 h-18 Z";Ve.attr("d",rt)}}()}function Wt(wt){wt.selectAll(".visual-cue").remove()}y.init(et),St.node().onmousemove=ct}(E,Q,F,I,z,ee):F.editable===!0&&Q.style("pointer-events",G||b.opacity(Y)*q<=.5?"stroke":"all");Q.node().addEventListener("click",function(){return function(K,ne){if(T(K)){var ae=+ne.node().getAttribute("data-index");if(ae>=0){if(ae===K._fullLayout._activeShapeIndex)return void P(K);K._fullLayout._activeShapeIndex=ae,K._fullLayout._deactivateShape=P,k(K)}}}(E,Q)})}F._input&&F.visible===!0&&(F.layer!=="below"?B(E._fullLayout._shapeUpperLayer):F.xref==="paper"||F.yref==="paper"?B(E._fullLayout._shapeLowerLayer):j._hadPlotinfo?B((j.mainplotinfo||j).shapelayer):B(E._fullLayout._shapeLowerLayer))}function O(E,I,A){var F=(A.xref+A.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");v.setClipUrl(E,F?"clip"+I._fullLayout._uid+F:null,I)}function D(E,I,A){return E.replace(_.segmentRE,function(F){var j=0,B=F.charAt(0),z=_.paramIsX[B],N=_.paramIsY[B],R=_.numParams[B];return B+F.substr(1).replace(_.paramRE,function(q){return j>=R||(z[j]?q=I(q):N[j]&&(q=A(q)),j++),q})})}function P(E){T(E)&&E._fullLayout._activeShapeIndex>=0&&(g(E),delete E._fullLayout._activeShapeIndex,k(E))}i.exports={draw:k,drawOne:M,eraseActiveShape:function(E){if(T(E)){g(E);var I=E._fullLayout._activeShapeIndex,A=(E.layout||{}).shapes||[];if(I0&&MU&&(V="X"),V});return H>U&&(Q=Q.replace(/[\s,]*X.*/,""),u.log("Ignoring extra params in segment "+W)),G+Q})}(f,h,b);if(f.xsizemode==="pixel"){var M=h(f.xanchor);v=M+f.x0,m=M+f.x1}else v=h(f.x0),m=h(f.x1);if(f.ysizemode==="pixel"){var O=b(f.yanchor);y=O-f.y0,x=O-f.y1}else y=b(f.y0),x=b(f.y1);if(_==="line")return"M"+v+","+y+"L"+m+","+x;if(_==="rect")return"M"+v+","+y+"H"+m+"V"+x+"H"+v+"Z";var D=(v+m)/2,P=(y+x)/2,E=Math.abs(D-v),I=Math.abs(P-y),A="A"+E+","+I,F=D+E+","+P;return"M"+F+A+" 0 1,1 "+D+","+(P-I)+A+" 0 0,1 "+F+"Z"}},89853:function(i,o,a){var s=a(34031);i.exports={moduleType:"component",name:"shapes",layoutAttributes:a(89827),supplyLayoutDefaults:a(84726),supplyDrawNewShapeDefaults:a(45547),includeBasePlot:a(76325)("shapes"),calcAutorange:a(5627),draw:s.draw,drawOne:s.drawOne}},37281:function(i){function o(c,d){return d?d.d2l(c):c}function a(c,d){return d?d.l2d(c):c}function s(c,d){return o(c.x1,d)-o(c.x0,d)}function u(c,d,f){return o(c.y1,f)-o(c.y0,f)}i.exports={x0:function(c){return c.x0},x1:function(c){return c.x1},y0:function(c){return c.y0},y1:function(c){return c.y1},slope:function(c,d,f){return c.type!=="line"?void 0:u(c,0,f)/s(c,d)},dx:s,dy:u,width:function(c,d){return Math.abs(s(c,d))},height:function(c,d,f){return Math.abs(u(c,0,f))},length:function(c,d,f){return c.type!=="line"?void 0:Math.sqrt(Math.pow(s(c,d),2)+Math.pow(u(c,0,f),2))},xcenter:function(c,d){return a((o(c.x1,d)+o(c.x0,d))/2,d)},ycenter:function(c,d,f){return a((o(c.y1,f)+o(c.y0,f))/2,f)}}},75067:function(i,o,a){var s=a(41940),u=a(35025),c=a(1426).extendDeepAll,d=a(30962).overrideAll,f=a(85594),p=a(44467).templatedArray,h=a(98292),g=p("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});i.exports=d(p("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:g,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:c(u({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:f.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:s({})},font:s({}),activebgcolor:{valType:"color",dflt:h.gripBgActiveColor},bgcolor:{valType:"color",dflt:h.railBgColor},bordercolor:{valType:"color",dflt:h.railBorderColor},borderwidth:{valType:"number",min:0,dflt:h.railBorderWidth},ticklen:{valType:"number",min:0,dflt:h.tickLength},tickcolor:{valType:"color",dflt:h.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:h.minorTickLength}}),"arraydraw","from-root")},98292:function(i){i.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},12343:function(i,o,a){var s=a(71828),u=a(85501),c=a(75067),d=a(98292).name,f=c.steps;function p(g,b,v){function m(S,k){return s.coerce(g,b,c,S,k)}for(var y=u(g,b,{name:"steps",handleItemDefaults:h}),x=0,_=0;_0&&(H=H.transition().duration(N.transition.duration).ease(N.transition.easing)),H.attr("transform",p(W-.5*b.gripWidth,N._dims.currentValueTotalHeight))}}function A(z,N){var R=z._dims;return R.inputAreaStart+b.stepInset+(R.inputAreaLength-2*b.stepInset)*Math.min(1,Math.max(0,N))}function F(z,N){var R=z._dims;return Math.min(1,Math.max(0,(N-b.stepInset-R.inputAreaStart)/(R.inputAreaLength-2*b.stepInset-2*R.inputAreaStart)))}function j(z,N,R){var q=R._dims,Y=f.ensureSingle(z,"rect",b.railTouchRectClass,function(L){L.call(P,N,z,R).style("pointer-events","all")});Y.attr({width:q.inputAreaLength,height:Math.max(q.inputAreaWidth,b.tickOffset+R.ticklen+q.labelHeight)}).call(c.fill,R.bgcolor).attr("opacity",0),d.setTranslate(Y,0,q.currentValueTotalHeight)}function B(z,N){var R=N._dims,q=R.inputAreaLength-2*b.railInset,Y=f.ensureSingle(z,"rect",b.railRectClass);Y.attr({width:q,height:b.railWidth,rx:b.railRadius,ry:b.railRadius,"shape-rendering":"crispEdges"}).call(c.stroke,N.bordercolor).call(c.fill,N.bgcolor).style("stroke-width",N.borderwidth+"px"),d.setTranslate(Y,b.railInset,.5*(R.inputAreaWidth-b.railWidth)+R.currentValueTotalHeight)}i.exports=function(z){var N=z._context.staticPlot,R=z._fullLayout,q=function(te,ee){for(var U=te[b.name],Q=[],V=0;V0?[0]:[]);function L(te){te._commandObserver&&(te._commandObserver.remove(),delete te._commandObserver),u.autoMargin(z,_(te))}if(Y.enter().append("g").classed(b.containerClassName,!0).style("cursor",N?null:"ew-resize"),Y.exit().each(function(){s.select(this).selectAll("g."+b.groupClassName).each(L)}).remove(),q.length!==0){var W=Y.selectAll("g."+b.groupClassName).data(q,w);W.enter().append("g").classed(b.groupClassName,!0),W.exit().each(L).remove();for(var H=0;H0||Oe<0){var Z={left:[-Pe,0],right:[Pe,0],top:[0,-Pe],bottom:[0,Pe]}[O.side];Q.attr("transform",p(Z[0],Z[1]))}}}return H.call(G),Y&&(B?H.on(".opacity",null):(A=0,F=!0,H.text(T).on("mouseover.opacity",function(){s.select(this).transition().duration(v.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){s.select(this).transition().duration(v.HIDE_PLACEHOLDER).style("opacity",0)})),H.call(b.makeEditable,{gd:x}).on("edit",function(U){M!==void 0?d.call("_guiRestyle",x,C,U,M):d.call("_guiRelayout",x,C,U)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(G)}).on("input",function(U){this.text(U||" ").call(b.positionText,D.x,D.y)})),H.classed("js-placeholder",F),E}}},7163:function(i,o,a){var s=a(41940),u=a(22399),c=a(1426).extendFlat,d=a(30962).overrideAll,f=a(35025),p=a(44467).templatedArray,h=p("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});i.exports=d(p("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:h,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:c(f({editType:"arraydraw"}),{}),font:s({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:u.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},75909:function(i){i.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},64897:function(i,o,a){var s=a(71828),u=a(85501),c=a(7163),d=a(75909).name,f=c.buttons;function p(g,b,v){function m(y,x){return s.coerce(g,b,c,y,x)}m("visible",u(g,b,{name:"buttons",handleItemDefaults:h}).length>0)&&(m("active"),m("direction"),m("type"),m("showactive"),m("x"),m("y"),s.noneOrAll(g,b,["x","y"]),m("xanchor"),m("yanchor"),m("pad.t"),m("pad.r"),m("pad.b"),m("pad.l"),s.coerceFont(m,"font",v.font),m("bgcolor",v.paper_bgcolor),m("bordercolor"),m("borderwidth"))}function h(g,b){function v(m,y){return s.coerce(g,b,f,m,y)}v("visible",g.method==="skip"||Array.isArray(g.args))&&(v("method"),v("args"),v("args2"),v("label"),v("execute"))}i.exports=function(g,b){u(g,b,{name:d,handleItemDefaults:p})}},13689:function(i,o,a){var s=a(39898),u=a(74875),c=a(7901),d=a(91424),f=a(71828),p=a(63893),h=a(44467).arrayEditor,g=a(18783).LINE_SPACING,b=a(75909),v=a(25849);function m(A){return A._index}function y(A,F){return+A.attr(b.menuIndexAttrName)===F._index}function x(A,F,j,B,z,N,R,q){F.active=R,h(A.layout,b.name,F).applyUpdate("active",R),F.type==="buttons"?w(A,B,null,null,F):F.type==="dropdown"&&(z.attr(b.menuIndexAttrName,"-1"),_(A,B,z,N,F),q||w(A,B,z,N,F))}function _(A,F,j,B,z){var N=f.ensureSingle(F,"g",b.headerClassName,function(H){H.style("pointer-events","all")}),R=z._dims,q=z.active,Y=z.buttons[q]||b.blankHeaderOpts,L={y:z.pad.t,yPad:0,x:z.pad.l,xPad:0,index:0},W={width:R.headerWidth,height:R.headerHeight};N.call(S,z,Y,A).call(E,z,L,W),f.ensureSingle(F,"text",b.headerArrowClassName,function(H){H.attr("text-anchor","end").call(d.font,z.font).text(b.arrowSymbol[z.direction])}).attr({x:R.headerWidth-b.arrowOffsetX+z.pad.l,y:R.headerHeight/2+b.textOffsetY+z.pad.t}),N.on("click",function(){j.call(I,String(y(j,z)?-1:z._index)),w(A,F,j,B,z)}),N.on("mouseover",function(){N.call(M)}),N.on("mouseout",function(){N.call(O,z)}),d.setTranslate(F,R.lx,R.ly)}function w(A,F,j,B,z){j||(j=F).attr("pointer-events","all");var N=function(Q){return+Q.attr(b.menuIndexAttrName)==-1}(j)&&z.type!=="buttons"?[]:z.buttons,R=z.type==="dropdown"?b.dropdownButtonClassName:b.buttonClassName,q=j.selectAll("g."+R).data(f.filterVisible(N)),Y=q.enter().append("g").classed(R,!0),L=q.exit();z.type==="dropdown"?(Y.attr("opacity","0").transition().attr("opacity","1"),L.transition().attr("opacity","0").remove()):L.remove();var W=0,H=0,G=z._dims,te=["up","down"].indexOf(z.direction)!==-1;z.type==="dropdown"&&(te?H=G.headerHeight+b.gapButtonHeader:W=G.headerWidth+b.gapButtonHeader),z.type==="dropdown"&&z.direction==="up"&&(H=-b.gapButtonHeader+b.gapButton-G.openHeight),z.type==="dropdown"&&z.direction==="left"&&(W=-b.gapButtonHeader+b.gapButton-G.openWidth);var ee={x:G.lx+W+z.pad.l,y:G.ly+H+z.pad.t,yPad:b.gapButton,xPad:b.gapButton,index:0},U={l:ee.x+z.borderwidth,t:ee.y+z.borderwidth};q.each(function(Q,V){var X=s.select(this);X.call(S,z,Q,A).call(E,z,ee),X.on("click",function(){s.event.defaultPrevented||(Q.execute&&(Q.args2&&z.active===V?(x(A,z,0,F,j,B,-1),u.executeAPICommand(A,Q.method,Q.args2)):(x(A,z,0,F,j,B,V),u.executeAPICommand(A,Q.method,Q.args))),A.emit("plotly_buttonclicked",{menu:z,button:Q,active:z.active}))}),X.on("mouseover",function(){X.call(M)}),X.on("mouseout",function(){X.call(O,z),q.call(T,z)})}),q.call(T,z),te?(U.w=Math.max(G.openWidth,G.headerWidth),U.h=ee.y-U.t):(U.w=ee.x-U.l,U.h=Math.max(G.openHeight,G.headerHeight)),U.direction=z.direction,B&&(q.size()?function(Q,V,X,K,ne,ae){var ie,se,pe,ke=ne.direction,Ce=ke==="up"||ke==="down",Oe=ne._dims,Pe=ne.active;if(Ce)for(se=0,pe=0;pe0?[0]:[]);if(z.enter().append("g").classed(b.containerClassName,!0).style("cursor","pointer"),z.exit().each(function(){s.select(this).selectAll("g."+b.headerGroupClassName).each(B)}).remove(),j.length!==0){var N=z.selectAll("g."+b.headerGroupClassName).data(j,m);N.enter().append("g").classed(b.headerGroupClassName,!0);for(var R=f.ensureSingle(z,"g",b.dropdownButtonGroupClassName,function(H){H.style("pointer-events","all")}),q=0;qE,F=f.barLength+2*f.barPad,j=f.barWidth+2*f.barPad,B=S,z=C+T;z+j>m&&(z=m-j);var N=this.container.selectAll("rect.scrollbar-horizontal").data(A?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-horizontal",!0).call(u.fill,f.barColor),A?(this.hbar=N.attr({rx:f.barRadius,ry:f.barRadius,x:B,y:z,width:F,height:j}),this._hbarXMin=B+F/2,this._hbarTranslateMax=E-F):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var R=T>I,q=f.barWidth+2*f.barPad,Y=f.barLength+2*f.barPad,L=S+k,W=C;L+q>v&&(L=v-q);var H=this.container.selectAll("rect.scrollbar-vertical").data(R?[0]:[]);H.exit().on(".drag",null).remove(),H.enter().append("rect").classed("scrollbar-vertical",!0).call(u.fill,f.barColor),R?(this.vbar=H.attr({rx:f.barRadius,ry:f.barRadius,x:L,y:W,width:q,height:Y}),this._vbarYMin=W+Y/2,this._vbarTranslateMax=I-Y):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var G=this.id,te=y-.5,ee=R?x+q+.5:x+.5,U=_-.5,Q=A?w+j+.5:w+.5,V=b._topdefs.selectAll("#"+G).data(A||R?[0]:[]);if(V.exit().remove(),V.enter().append("clipPath").attr("id",G).append("rect"),A||R?(this._clipRect=V.select("rect").attr({x:Math.floor(te),y:Math.floor(U),width:Math.ceil(ee)-Math.floor(te),height:Math.ceil(Q)-Math.floor(U)}),this.container.call(c.setClipUrl,G,this.gd),this.bg.attr({x:S,y:C,width:k,height:T})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(c.setClipUrl,null),delete this._clipRect),A||R){var X=s.behavior.drag().on("dragstart",function(){s.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(X);var K=s.behavior.drag().on("dragstart",function(){s.event.sourceEvent.preventDefault(),s.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));A&&this.hbar.on(".drag",null).call(K),R&&this.vbar.on(".drag",null).call(K)}this.setTranslate(h,g)},f.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(c.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},f.prototype._onBoxDrag=function(){var p=this.translateX,h=this.translateY;this.hbar&&(p-=s.event.dx),this.vbar&&(h-=s.event.dy),this.setTranslate(p,h)},f.prototype._onBoxWheel=function(){var p=this.translateX,h=this.translateY;this.hbar&&(p+=s.event.deltaY),this.vbar&&(h+=s.event.deltaY),this.setTranslate(p,h)},f.prototype._onBarDrag=function(){var p=this.translateX,h=this.translateY;if(this.hbar){var g=p+this._hbarXMin,b=g+this._hbarTranslateMax;p=(d.constrain(s.event.x,g,b)-g)/(b-g)*(this.position.w-this._box.w)}if(this.vbar){var v=h+this._vbarYMin,m=v+this._vbarTranslateMax;h=(d.constrain(s.event.y,v,m)-v)/(m-v)*(this.position.h-this._box.h)}this.setTranslate(p,h)},f.prototype.setTranslate=function(p,h){var g=this.position.w-this._box.w,b=this.position.h-this._box.h;if(p=d.constrain(p||0,0,g),h=d.constrain(h||0,0,b),this.translateX=p,this.translateY=h,this.container.call(c.setTranslate,this._box.l-this.position.l-p,this._box.t-this.position.t-h),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+p-.5),y:Math.floor(this.position.t+h-.5)}),this.hbar){var v=p/g;this.hbar.call(c.setTranslate,p+v*this._hbarTranslateMax,h)}if(this.vbar){var m=h/b;this.vbar.call(c.setTranslate,p,h+m*this._vbarTranslateMax)}}},18783:function(i){i.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},24695:function(i){i.exports={axisRefDescription:function(o,a,s){return["If set to a",o,"axis id (e.g. *"+o+"* or","*"+o+"2*), the `"+o+"` position refers to a",o,"coordinate. If set to *paper*, the `"+o+"`","position refers to the distance from the",a,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",a,"("+s+"). If set to a",o,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",a,"of the domain of that axis: e.g.,","*"+o+"2 domain* refers to the domain of the second",o," axis and a",o,"position of 0.5 refers to the","point between the",a,"and the",s,"of the domain of the","second",o,"axis."].join(" ")}}},31562:function(i){i.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},74808:function(i){i.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},37822:function(i){i.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},50606:function(i){i.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},32396:function(i,o){o.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],o.STYLE=o.CSS_DECLARATIONS.map(function(a){return a.join(": ")+"; "}).join("")},77922:function(i,o){o.xmlns="http://www.w3.org/2000/xmlns/",o.svg="http://www.w3.org/2000/svg",o.xlink="http://www.w3.org/1999/xlink",o.svgAttrs={xmlns:o.svg,"xmlns:xlink":o.xlink}},8729:function(i,o,a){o.version=a(11506).version,a(7417),a(98847);for(var s=a(73972),u=o.register=s.register,c=a(10641),d=Object.keys(c),f=0;f",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},99863:function(i,o){o.isLeftAnchor=function(a){return a.xanchor==="left"||a.xanchor==="auto"&&a.x<=.3333333333333333},o.isCenterAnchor=function(a){return a.xanchor==="center"||a.xanchor==="auto"&&a.x>.3333333333333333&&a.x<.6666666666666666},o.isRightAnchor=function(a){return a.xanchor==="right"||a.xanchor==="auto"&&a.x>=.6666666666666666},o.isTopAnchor=function(a){return a.yanchor==="top"||a.yanchor==="auto"&&a.y>=.6666666666666666},o.isMiddleAnchor=function(a){return a.yanchor==="middle"||a.yanchor==="auto"&&a.y>.3333333333333333&&a.y<.6666666666666666},o.isBottomAnchor=function(a){return a.yanchor==="bottom"||a.yanchor==="auto"&&a.y<=.3333333333333333}},26348:function(i,o,a){var s=a(64872),u=s.mod,c=s.modHalf,d=Math.PI,f=2*d;function p(v){return Math.abs(v[1]-v[0])>f-1e-14}function h(v,m){return c(m-v,f)}function g(v,m){if(p(m))return!0;var y,x;m[0](x=u(x,f))&&(x+=f);var _=u(v,f),w=_+f;return _>=y&&_<=x||w>=y&&w<=x}function b(v,m,y,x,_,w,S){_=_||0,w=w||0;var k,C,T,M,O,D=p([y,x]);function P(F,j){return[F*Math.cos(j)+_,w-F*Math.sin(j)]}D?(k=0,C=d,T=f):y=_&&v<=w);var _,w},pathArc:function(v,m,y,x,_){return b(null,v,m,y,x,_,0)},pathSector:function(v,m,y,x,_){return b(null,v,m,y,x,_,1)},pathAnnulus:function(v,m,y,x,_,w){return b(v,m,y,x,_,w,1)}}},73627:function(i,o){var a=Array.isArray,s=ArrayBuffer,u=DataView;function c(p){return s.isView(p)&&!(p instanceof u)}function d(p){return a(p)||c(p)}function f(p,h,g){if(d(p)){if(d(p[0])){for(var b=g,v=0;vw.max?x.set(_):x.set(+y)}},integer:{coerceFunction:function(y,x,_,w){y%1||!s(y)||w.min!==void 0&&yw.max?x.set(_):x.set(+y)}},string:{coerceFunction:function(y,x,_,w){if(typeof y!="string"){var S=typeof y=="number";w.strict!==!0&&S?x.set(String(y)):x.set(_)}else w.noBlank&&!y?x.set(_):x.set(y)}},color:{coerceFunction:function(y,x,_){u(y).isValid()?x.set(y):x.set(_)}},colorlist:{coerceFunction:function(y,x,_){Array.isArray(y)&&y.length&&y.every(function(w){return u(w).isValid()})?x.set(y):x.set(_)}},colorscale:{coerceFunction:function(y,x,_){x.set(d.get(y,_))}},angle:{coerceFunction:function(y,x,_){y==="auto"?x.set("auto"):s(y)?x.set(b(+y,360)):x.set(_)}},subplotid:{coerceFunction:function(y,x,_,w){var S=w.regex||g(_);typeof y=="string"&&S.test(y)?x.set(y):x.set(_)},validateFunction:function(y,x){var _=x.dflt;return y===_||typeof y=="string"&&!!g(_).test(y)}},flaglist:{coerceFunction:function(y,x,_,w){if((w.extras||[]).indexOf(y)===-1)if(typeof y=="string"){for(var S=y.split("+"),k=0;k=s&&N<=u?N:g}if(typeof N!="string"&&typeof N!="number")return g;N=String(N);var W=T(R),H=N.charAt(0);!W||H!=="G"&&H!=="g"||(N=N.substr(1),R="");var G=W&&R.substr(0,7)==="chinese",te=N.match(G?k:S);if(!te)return g;var ee=te[1],U=te[3]||"1",Q=Number(te[5]||1),V=Number(te[7]||0),X=Number(te[9]||0),K=Number(te[11]||0);if(W){if(ee.length===2)return g;var ne;ee=Number(ee);try{var ae=_.getComponentMethod("calendars","getCal")(R);if(G){var ie=U.charAt(U.length-1)==="i";U=parseInt(U,10),ne=ae.newDate(ee,ae.toMonthIndex(ee,U,ie),Q)}else ne=ae.newDate(ee,Number(U),Q)}catch{return g}return ne?(ne.toJD()-x)*b+V*v+X*m+K*y:g}ee=ee.length===2?(Number(ee)+2e3-C)%100+C:Number(ee),U-=1;var se=new Date(Date.UTC(2e3,U,Q,V,X));return se.setUTCFullYear(ee),se.getUTCMonth()!==U||se.getUTCDate()!==Q?g:se.getTime()+K*y},s=o.MIN_MS=o.dateTime2ms("-9999"),u=o.MAX_MS=o.dateTime2ms("9999-12-31 23:59:59.9999"),o.isDateTime=function(N,R){return o.dateTime2ms(N,R)!==g};var O=90*b,D=3*v,P=5*m;function E(N,R,q,Y,L){if((R||q||Y||L)&&(N+=" "+M(R,2)+":"+M(q,2),(Y||L)&&(N+=":"+M(Y,2),L))){for(var W=4;L%10==0;)W-=1,L/=10;N+="."+M(L,W)}return N}o.ms2DateTime=function(N,R,q){if(typeof N!="number"||!(N>=s&&N<=u))return g;R||(R=0);var Y,L,W,H,G,te,ee=Math.floor(10*p(N+.05,1)),U=Math.round(N-ee/10);if(T(q)){var Q=Math.floor(U/b)+x,V=Math.floor(p(N,b));try{Y=_.getComponentMethod("calendars","getCal")(q).fromJD(Q).formatDate("yyyy-mm-dd")}catch{Y=w("G%Y-%m-%d")(new Date(U))}if(Y.charAt(0)==="-")for(;Y.length<11;)Y="-0"+Y.substr(1);else for(;Y.length<10;)Y="0"+Y;L=R=s+b&&N<=u-b))return g;var R=Math.floor(10*p(N+.05,1)),q=new Date(Math.round(N-R/10));return E(c("%Y-%m-%d")(q),q.getHours(),q.getMinutes(),q.getSeconds(),10*q.getUTCMilliseconds()+R)},o.cleanDate=function(N,R,q){if(N===g)return R;if(o.isJSDate(N)||typeof N=="number"&&isFinite(N)){if(T(q))return f.error("JS Dates and milliseconds are incompatible with world calendars",N),R;if(!(N=o.ms2DateTimeLocal(+N))&&R!==void 0)return R}else if(!o.isDateTime(N,q))return f.error("unrecognized date",N),R;return N};var I=/%\d?f/g,A=/%h/g,F={1:"1",2:"1",3:"2",4:"2"};function j(N,R,q,Y){N=N.replace(I,function(W){var H=Math.min(+W.charAt(1)||6,6);return(R/1e3%1+2).toFixed(H).substr(2).replace(/0+$/,"")||"0"});var L=new Date(Math.floor(R+.05));if(N=N.replace(A,function(){return F[q("%q")(L)]}),T(Y))try{N=_.getComponentMethod("calendars","worldCalFmt")(N,R,Y)}catch{return"Invalid"}return q(N)(L)}var B=[59,59.9,59.99,59.999,59.9999];o.formatDate=function(N,R,q,Y,L,W){if(L=T(L)&&L,!R)if(q==="y")R=W.year;else if(q==="m")R=W.month;else{if(q!=="d")return function(H,G){var te=p(H+.05,b),ee=M(Math.floor(te/v),2)+":"+M(p(Math.floor(te/m),60),2);if(G!=="M"){d(G)||(G=0);var U=(100+Math.min(p(H/y,60),B[G])).toFixed(G).substr(1);G>0&&(U=U.replace(/0+$/,"").replace(/[\.]$/,"")),ee+=":"+U}return ee}(N,q)+` `+j(W.dayMonthYear,N,Y,L);R=W.dayMonth+` `+W.year}return j(R,N,Y,L)};var z=3*b;o.incrementMonth=function(N,R,q){q=T(q)&&q;var Y=p(N,b);if(N=Math.round(N-Y),q)try{var L=Math.round(N/b)+x,W=_.getComponentMethod("calendars","getCal")(q),H=W.fromJD(L);return R%12?W.add(H,R,"m"):W.add(H,R/12,"y"),(H.toJD()-x)*b+Y}catch{f.error("invalid ms "+N+" in calendar "+q)}var G=new Date(N+z);return G.setUTCMonth(G.getUTCMonth()+R)+Y-z},o.findExactDates=function(N,R){for(var q,Y,L=0,W=0,H=0,G=0,te=T(R)&&_.getComponentMethod("calendars","getCal")(R),ee=0;ee1||D<0||D>1?null:{x:h+w*D,y:g+C*D}}function p(h,g,b,v,m){var y=v*h+m*g;if(y<0)return v*v+m*m;if(y>b){var x=v-h,_=m-g;return x*x+_*_}var w=v*g-m*h;return w*w/b}o.segmentsIntersect=f,o.segmentDistance=function(h,g,b,v,m,y,x,_){if(f(h,g,b,v,m,y,x,_))return 0;var w=b-h,S=v-g,k=x-m,C=_-y,T=w*w+S*S,M=k*k+C*C,O=Math.min(p(w,S,T,m-h,y-g),p(w,S,T,x-h,_-g),p(k,C,M,h-m,g-y),p(k,C,M,b-m,v-y));return Math.sqrt(O)},o.getTextLocation=function(h,g,b,v){if(h===u&&v===c||(s={},u=h,c=v),s[b])return s[b];var m=h.getPointAtLength(d(b-v/2,g)),y=h.getPointAtLength(d(b+v/2,g)),x=Math.atan((y.y-m.y)/(y.x-m.x)),_=h.getPointAtLength(d(b,g)),w={x:(4*_.x+m.x+y.x)/6,y:(4*_.y+m.y+y.y)/6,theta:x};return s[b]=w,w},o.clearLocationCache=function(){u=null},o.getVisibleSegment=function(h,g,b){var v,m,y=g.left,x=g.right,_=g.top,w=g.bottom,S=0,k=h.getTotalLength(),C=k;function T(O){var D=h.getPointAtLength(O);O===0?v=D:O===k&&(m=D);var P=D.xx?D.x-x:0,E=D.y<_?_-D.y:D.y>w?D.y-w:0;return Math.sqrt(P*P+E*E)}for(var M=T(S);M;){if((S+=M+b)>C)return;M=T(S)}for(M=T(C);M;){if(S>(C-=M+b))return;M=T(C)}return{min:S,max:C,len:C-S,total:k,isClosed:S===0&&C===k&&Math.abs(v.x-m.x)<.1&&Math.abs(v.y-m.y)<.1}},o.findPointOnPath=function(h,g,b,v){for(var m,y,x,_=(v=v||{}).pathLength||h.getTotalLength(),w=v.tolerance||.001,S=v.iterationLimit||30,k=h.getPointAtLength(0)[b]>h.getPointAtLength(_)[b]?-1:1,C=0,T=0,M=_;C0?M=m:T=m,C++}return y}},23389:function(i){i.exports=function(o){return o}},39240:function(i){i.exports=function(o,a){if(!a)return o;var s=1/Math.abs(a),u=s>1?(s*o+s*a)/s:o+a,c=String(u).length;if(c>16){var d=String(a).length;if(c>=String(o).length+d){var f=parseFloat(u).toPrecision(12);f.indexOf("e+")===-1&&(u=+f)}}return u}},71828:function(i,o,a){var s=a(39898),u=a(84096).g0,c=a(60721).WU,d=a(92770),f=a(50606),p=f.FP_SAFE,h=-p,g=f.BADNUM,b=i.exports={};b.adjustFormat=function(V){return!V||/^\d[.]\df/.test(V)||/[.]\d%/.test(V)?V:V==="0.f"?"~f":/^\d%/.test(V)?"~%":/^\ds/.test(V)?"~s":!/^[~,.0$]/.test(V)&&/[&fps]/.test(V)?"~"+V:V};var v={};b.warnBadFormat=function(V){var X=String(V);v[X]||(v[X]=1,b.warn('encountered bad format: "'+X+'"'))},b.noFormat=function(V){return String(V)},b.numberFormat=function(V){var X;try{X=c(b.adjustFormat(V))}catch{return b.warnBadFormat(V),b.noFormat}return X},b.nestedProperty=a(65487),b.keyedContainer=a(66636),b.relativeAttr=a(6962),b.isPlainObject=a(41965),b.toLogRange=a(58163),b.relinkPrivateKeys=a(51332);var m=a(73627);b.isTypedArray=m.isTypedArray,b.isArrayOrTypedArray=m.isArrayOrTypedArray,b.isArray1D=m.isArray1D,b.ensureArray=m.ensureArray,b.concat=m.concat,b.maxRowLength=m.maxRowLength,b.minRowLength=m.minRowLength;var y=a(64872);b.mod=y.mod,b.modHalf=y.modHalf;var x=a(96554);b.valObjectMeta=x.valObjectMeta,b.coerce=x.coerce,b.coerce2=x.coerce2,b.coerceFont=x.coerceFont,b.coercePattern=x.coercePattern,b.coerceHoverinfo=x.coerceHoverinfo,b.coerceSelectionMarkerOpacity=x.coerceSelectionMarkerOpacity,b.validate=x.validate;var _=a(41631);b.dateTime2ms=_.dateTime2ms,b.isDateTime=_.isDateTime,b.ms2DateTime=_.ms2DateTime,b.ms2DateTimeLocal=_.ms2DateTimeLocal,b.cleanDate=_.cleanDate,b.isJSDate=_.isJSDate,b.formatDate=_.formatDate,b.incrementMonth=_.incrementMonth,b.dateTick0=_.dateTick0,b.dfltRange=_.dfltRange,b.findExactDates=_.findExactDates,b.MIN_MS=_.MIN_MS,b.MAX_MS=_.MAX_MS;var w=a(65888);b.findBin=w.findBin,b.sorterAsc=w.sorterAsc,b.sorterDes=w.sorterDes,b.distinctVals=w.distinctVals,b.roundUp=w.roundUp,b.sort=w.sort,b.findIndexOfMin=w.findIndexOfMin,b.sortObjectKeys=a(78607);var S=a(80038);b.aggNums=S.aggNums,b.len=S.len,b.mean=S.mean,b.median=S.median,b.midRange=S.midRange,b.variance=S.variance,b.stdev=S.stdev,b.interp=S.interp;var k=a(35657);b.init2dArray=k.init2dArray,b.transposeRagged=k.transposeRagged,b.dot=k.dot,b.translationMatrix=k.translationMatrix,b.rotationMatrix=k.rotationMatrix,b.rotationXYMatrix=k.rotationXYMatrix,b.apply3DTransform=k.apply3DTransform,b.apply2DTransform=k.apply2DTransform,b.apply2DTransform2=k.apply2DTransform2,b.convertCssMatrix=k.convertCssMatrix,b.inverseTransformMatrix=k.inverseTransformMatrix;var C=a(26348);b.deg2rad=C.deg2rad,b.rad2deg=C.rad2deg,b.angleDelta=C.angleDelta,b.angleDist=C.angleDist,b.isFullCircle=C.isFullCircle,b.isAngleInsideSector=C.isAngleInsideSector,b.isPtInsideSector=C.isPtInsideSector,b.pathArc=C.pathArc,b.pathSector=C.pathSector,b.pathAnnulus=C.pathAnnulus;var T=a(99863);b.isLeftAnchor=T.isLeftAnchor,b.isCenterAnchor=T.isCenterAnchor,b.isRightAnchor=T.isRightAnchor,b.isTopAnchor=T.isTopAnchor,b.isMiddleAnchor=T.isMiddleAnchor,b.isBottomAnchor=T.isBottomAnchor;var M=a(87642);b.segmentsIntersect=M.segmentsIntersect,b.segmentDistance=M.segmentDistance,b.getTextLocation=M.getTextLocation,b.clearLocationCache=M.clearLocationCache,b.getVisibleSegment=M.getVisibleSegment,b.findPointOnPath=M.findPointOnPath;var O=a(1426);b.extendFlat=O.extendFlat,b.extendDeep=O.extendDeep,b.extendDeepAll=O.extendDeepAll,b.extendDeepNoArrays=O.extendDeepNoArrays;var D=a(47769);b.log=D.log,b.warn=D.warn,b.error=D.error;var P=a(30587);b.counterRegex=P.counter;var E=a(79990);b.throttle=E.throttle,b.throttleDone=E.done,b.clearThrottle=E.clear;var I=a(24401);function A(V){var X={};for(var K in V)for(var ne=V[K],ae=0;aep||V=X)&&d(V)&&V>=0&&V%1==0},b.noop=a(64213),b.identity=a(23389),b.repeat=function(V,X){for(var K=new Array(X),ne=0;neK?Math.max(K,Math.min(X,V)):Math.max(X,Math.min(K,V))},b.bBoxIntersect=function(V,X,K){return K=K||0,V.left<=X.right+K&&X.left<=V.right+K&&V.top<=X.bottom+K&&X.top<=V.bottom+K},b.simpleMap=function(V,X,K,ne,ae){for(var ie=V.length,se=new Array(ie),pe=0;pe=Math.pow(2,K)?ae>10?(b.warn("randstr failed uniqueness"),ke):V(X,K,ne,(ae||0)+1):ke},b.OptionControl=function(V,X){V||(V={}),X||(X="opt");var K={optionList:[],_newoption:function(ne){ne[X]=V,K[ne.name]=ne,K.optionList.push(ne)}};return K["_"+X]=V,K},b.smooth=function(V,X){if((X=Math.round(X)||0)<2)return V;var K,ne,ae,ie,se=V.length,pe=2*se,ke=2*X-1,Ce=new Array(ke),Oe=new Array(se);for(K=0;K=pe&&(ae-=pe*Math.floor(ae/pe)),ae<0?ae=-1-ae:ae>=se&&(ae=pe-1-ae),ie+=V[ae]*Ce[ne];Oe[K]=ie}return Oe},b.syncOrAsync=function(V,X,K){var ne;function ae(){return b.syncOrAsync(V,X,K)}for(;V.length;)if((ne=(0,V.splice(0,1)[0])(X))&&ne.then)return ne.then(ae);return K&&K(X)},b.stripTrailingSlash=function(V){return V.substr(-1)==="/"?V.substr(0,V.length-1):V},b.noneOrAll=function(V,X,K){if(V){var ne,ae=!1,ie=!0;for(ne=0;ne0?ae:0})},b.fillArray=function(V,X,K,ne){if(ne=ne||b.identity,b.isArrayOrTypedArray(V))for(var ae=0;ae1?ae+se[1]:"";if(ie&&(se.length>1||pe.length>4||K))for(;ne.test(pe);)pe=pe.replace(ne,"$1"+ie+"$2");return pe+ke},b.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var q=/^\w*$/;b.templateString=function(V,X){var K={};return V.replace(b.TEMPLATE_STRING_REGEX,function(ne,ae){var ie;return q.test(ae)?ie=X[ae]:(K[ae]=K[ae]||b.nestedProperty(X,ae).get,ie=K[ae]()),b.isValidTextValue(ie)?ie:""})};var Y={max:10,count:0,name:"hovertemplate"};b.hovertemplateString=function(){return te.apply(Y,arguments)};var L={max:10,count:0,name:"texttemplate"};b.texttemplateString=function(){return te.apply(L,arguments)};var W=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/,H={max:10,count:0,name:"texttemplate",parseMultDiv:!0};b.texttemplateStringForShapes=function(){return te.apply(H,arguments)};var G=/^[:|\|]/;function te(V,X,K){var ne=this,ae=arguments;X||(X={});var ie={};return V.replace(b.TEMPLATE_STRING_REGEX,function(se,pe,ke){var Ce=pe==="_xother"||pe==="_yother",Oe=pe==="_xother_"||pe==="_yother_",Pe=pe==="xother_"||pe==="yother_",ce=pe==="xother"||pe==="yother"||Ce||Pe||Oe,we=pe;(Ce||Oe)&&(we=we.substring(1)),(Pe||Oe)&&(we=we.substring(0,we.length-1));var Z,re,de,_e=null,ue=null;if(ne.parseMultDiv){var me=function(Ae){var Le=Ae.match(W);return Le?{key:Le[1],op:Le[2],number:Number(Le[3])}:{key:Ae,op:null,number:null}}(we);we=me.key,_e=me.op,ue=me.number}if(ce){if((Z=X[we])===void 0)return""}else for(de=3;de=48&&se<=57,Ce=pe>=48&&pe<=57;if(ke&&(ne=10*ne+se-48),Ce&&(ae=10*ae+pe-48),!ke||!Ce){if(ne!==ae)return ne-ae;if(se!==pe)return se-pe}}return ae-ne};var ee=2e9;b.seedPseudoRandom=function(){ee=2e9},b.pseudoRandom=function(){var V=ee;return ee=(69069*ee+1)%4294967296,Math.abs(ee-V)<429496729?b.pseudoRandom():ee/4294967296},b.fillText=function(V,X,K){var ne=Array.isArray(K)?function(se){K.push(se)}:function(se){K.text=se},ae=b.extractOption(V,X,"htx","hovertext");if(b.isValidTextValue(ae))return ne(ae);var ie=b.extractOption(V,X,"tx","text");return b.isValidTextValue(ie)?ne(ie):void 0},b.isValidTextValue=function(V){return V||V===0},b.formatPercent=function(V,X){X=X||0;for(var K=(Math.round(100*V*Math.pow(10,X))*Math.pow(.1,X)).toFixed(X)+"%",ne=0;ne1&&(Ce=1):Ce=0,b.strTranslate(ae-Ce*(K+se),ie-Ce*(ne+pe))+b.strScale(Ce)+(ke?"rotate("+ke+(X?"":" "+K+" "+ne)+")":"")},b.setTransormAndDisplay=function(V,X){V.attr("transform",b.getTextTransform(X)),V.style("display",X.scale?null:"none")},b.ensureUniformFontSize=function(V,X){var K=b.extendFlat({},X);return K.size=Math.max(X.size,V._fullLayout.uniformtext.minsize||0),K},b.join2=function(V,X,K){var ne=V.length;return ne>1?V.slice(0,-1).join(X)+K+V[ne-1]:V.join(X)},b.bigFont=function(V){return Math.round(1.2*V)};var U=b.getFirefoxVersion(),Q=U!==null&&U<86;b.getPositionFromD3Event=function(){return Q?[s.event.layerX,s.event.layerY]:[s.event.offsetX,s.event.offsetY]}},41965:function(i){i.exports=function(o){return window&&window.process&&window.process.versions?Object.prototype.toString.call(o)==="[object Object]":Object.prototype.toString.call(o)==="[object Object]"&&Object.getPrototypeOf(o).hasOwnProperty("hasOwnProperty")}},66636:function(i,o,a){var s=a(65487),u=/^\w*$/;i.exports=function(c,d,f,p){var h,g,b;f=f||"name",p=p||"value";var v={};d&&d.length?(b=s(c,d),g=b.get()):g=c,d=d||"";var m={};if(g)for(h=0;h2)return v[w]=2|v[w],x.set(_,null);if(y){for(h=w;h1){var f=["LOG:"];for(d=0;d1){var p=[];for(d=0;d"),"long")}},c.warn=function(){var d;if(s.logging>0){var f=["WARN:"];for(d=0;d0){var p=[];for(d=0;d"),"stick")}},c.error=function(){var d;if(s.logging>0){var f=["ERROR:"];for(d=0;d0){var p=[];for(d=0;d"),"stick")}}},77310:function(i,o,a){var s=a(39898);i.exports=function(u,c,d){var f=u.selectAll("g."+d.replace(/\s/g,".")).data(c,function(h){return h[0].trace.uid});f.exit().remove(),f.enter().append("g").attr("class",d),f.order();var p=u.classed("rangeplot")?"nodeRangePlot3":"node3";return f.each(function(h){h[0][p]=s.select(this)}),f}},35657:function(i,o,a){var s=a(79576);o.init2dArray=function(u,c){for(var d=new Array(u),f=0;fa/2?o-Math.round(o/a)*a:o}}},65487:function(i,o,a){var s=a(92770),u=a(73627).isArrayOrTypedArray;function c(v,m){return function(){var y,x,_,w,S,k=v;for(w=0;w/g),x=0;xg||C===u||Cv||S&&m(w))}:function(w,S){var k=w[0],C=w[1];if(k===u||kg||C===u||Cv)return!1;var T,M,O,D,P,E=p.length,I=p[0][0],A=p[0][1],F=0;for(T=1;TMath.max(M,I)||C>Math.max(O,A)))if(Cx||Math.abs(s(b,w))>h)return!0;return!1},c.filter=function(d,f){var p=[d[0]],h=0,g=0;function b(v){d.push(v);var m=p.length,y=h;p.splice(g+1);for(var x=y+1;x1&&b(d.pop()),{addPt:b,raw:d,filtered:p}}},45142:function(i,o,a){var s=a(92770),u=a(35791);i.exports=function(c){var d;if(typeof(d=c&&c.hasOwnProperty("userAgent")?c.userAgent:function(){var m;return typeof navigator<"u"&&(m=navigator.userAgent),m&&m.headers&&typeof m.headers["user-agent"]=="string"&&(m=m.headers["user-agent"]),m}())!="string")return!0;var f=u({ua:{headers:{"user-agent":d}},tablet:!0,featureDetect:!1});if(!f){for(var p=d.split(" "),h=1;h-1;g--){var b=p[g];if(b.substr(0,8)==="Version/"){var v=b.substr(8).split(".")[0];if(s(v)&&(v=+v),v>=13)return!0}}}return f}},75138:function(i){i.exports=function(o,a){if(a instanceof RegExp){for(var s=a.toString(),u=0;uu.queueLength&&(d.undoQueue.queue.shift(),d.undoQueue.index--))},startSequence:function(d){d.undoQueue=d.undoQueue||{index:0,queue:[],sequence:!1},d.undoQueue.sequence=!0,d.undoQueue.beginSequence=!0},stopSequence:function(d){d.undoQueue=d.undoQueue||{index:0,queue:[],sequence:!1},d.undoQueue.sequence=!1,d.undoQueue.beginSequence=!1},undo:function(d){var f,p;if(!(d.undoQueue===void 0||isNaN(d.undoQueue.index)||d.undoQueue.index<=0)){for(d.undoQueue.index--,f=d.undoQueue.queue[d.undoQueue.index],d.undoQueue.inSequence=!0,p=0;p=d.undoQueue.queue.length)){for(f=d.undoQueue.queue[d.undoQueue.index],d.undoQueue.inSequence=!0,p=0;pm}function b(v,m){return v>=m}o.findBin=function(v,m,y){if(s(m.start))return y?Math.ceil((v-m.start)/m.size-f)-1:Math.floor((v-m.start)/m.size+f);var x,_,w=0,S=m.length,k=0,C=S>1?(m[S-1]-m[0])/(S-1):1;for(_=C>=0?y?p:h:y?b:g,v+=C*f*(y?-1:1)*(C>=0?1:-1);w90&&u.log("Long binary search..."),w-1},o.sorterAsc=function(v,m){return v-m},o.sorterDes=function(v,m){return m-v},o.distinctVals=function(v){var m,y=v.slice();for(y.sort(o.sorterAsc),m=y.length-1;m>-1&&y[m]===d;m--);for(var x,_=y[m]-y[0]||1,w=_/(m||1)/1e4,S=[],k=0;k<=m;k++){var C=y[k],T=C-x;x===void 0?(S.push(C),x=C):T>w&&(_=Math.min(_,T),S.push(C),x=C)}return{vals:S,minDiff:_}},o.roundUp=function(v,m,y){for(var x,_=0,w=m.length-1,S=0,k=y?0:1,C=y?1:0,T=y?Math.ceil:Math.floor;_0&&(x=1),y&&x)return v.sort(m)}return x?v:v.reverse()},o.findIndexOfMin=function(v,m){m=m||c;for(var y,x=1/0,_=0;_f.length)&&(p=f.length),s(d)||(d=!1),u(f[0])){for(g=new Array(p),h=0;hc.length-1)return c[c.length-1];var f=d%1;return f*c[Math.ceil(d)]+(1-f)*c[Math.floor(d)]}},3883:function(i,o,a){var s=a(32396),u=a(91424),c=a(71828),d=null;i.exports=function(){if(d!==null)return d;d=!1;var f=c.isIE()||c.isSafari()||c.isIOS();if(window.navigator.userAgent&&!f){var p=Array.from(s.CSS_DECLARATIONS).reverse(),h=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof h=="function")d=p.some(function(v){return h.apply(null,v)});else{var g=u.tester.append("image").attr("style",s.STYLE),b=window.getComputedStyle(g.node()).imageRendering;d=p.some(function(v){var m=v[1];return b===m||b===m.toLowerCase()}),g.remove()}}return d}},63893:function(i,o,a){var s=a(39898),u=a(71828),c=u.strTranslate,d=a(77922),f=a(18783).LINE_SPACING,p=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;o.convertToTspans=function(N,R,q){var Y=N.text(),L=!N.attr("data-notex")&&R&&R._context.typesetMath&&typeof MathJax<"u"&&Y.match(p),W=s.select(N.node().parentNode);if(!W.empty()){var H=N.attr("class")?N.attr("class").split(" ")[0]:"text";return H+="-math",W.selectAll("svg."+H).remove(),W.selectAll("g."+H+"-group").remove(),N.style("display",null).attr({"data-unformatted":Y,"data-math":"N"}),L?(R&&R._promises||[]).push(new Promise(function(te){N.style("display","none");var ee=parseInt(N.node().style.fontSize,10),U={fontSize:ee};(function(Q,V,X){var K,ne,ae,ie,se=parseInt((MathJax.version||"").split(".")[0]);if(se===2||se===3){var pe=function(){var Ce="math-output-"+u.randstr({},64),Oe=(ie=s.select("body").append("div").attr({id:Ce}).style({visibility:"hidden",position:"absolute","font-size":V.fontSize+"px"}).text(Q.replace(h,"\\lt ").replace(g,"\\gt "))).node();return se===2?MathJax.Hub.Typeset(Oe):MathJax.typeset([Oe])},ke=function(){var Ce=ie.select(se===2?".MathJax_SVG":".MathJax"),Oe=!Ce.empty()&&ie.select("svg").node();if(Oe){var Pe,ce=Oe.getBoundingClientRect();Pe=se===2?s.select("body").select("#MathJax_SVG_glyphs"):Ce.select("defs"),X(Ce,Pe,ce)}else u.log("There was an error in the tex syntax.",Q),X();ie.remove()};se===2?MathJax.Hub.Queue(function(){return ne=u.extendDeepAll({},MathJax.Hub.config),ae=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:b},displayAlign:"left"})},function(){if((K=MathJax.Hub.config.menuSettings.renderer)!=="SVG")return MathJax.Hub.setRenderer("SVG")},pe,ke,function(){if(K!=="SVG")return MathJax.Hub.setRenderer(K)},function(){return ae!==void 0&&(MathJax.Hub.processSectionDelay=ae),MathJax.Hub.Config(ne)}):se===3&&(ne=u.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=b,(K=MathJax.config.startup.output)!=="svg"&&(MathJax.config.startup.output="svg"),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){pe(),ke(),K!=="svg"&&(MathJax.config.startup.output=K),MathJax.config=ne}))}else u.warn("No MathJax version:",MathJax.version)})(L[2],U,function(Q,V,X){W.selectAll("svg."+H).remove(),W.selectAll("g."+H+"-group").remove();var K=Q&&Q.select("svg");if(!K||!K.node())return G(),void te();var ne=W.append("g").classed(H+"-group",!0).attr({"pointer-events":"none","data-unformatted":Y,"data-math":"Y"});ne.node().appendChild(K.node()),V&&V.node()&&K.node().insertBefore(V.node().cloneNode(!0),K.node().firstChild);var ae=X.width,ie=X.height;K.attr({class:H,height:ie,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var se=N.node().style.fill||"black",pe=K.select("g");pe.attr({fill:se,stroke:se});var ke=pe.node().getBoundingClientRect(),Ce=ke.width,Oe=ke.height;(Ce>ae||Oe>ie)&&(K.style("overflow","hidden"),Ce=(ke=K.node().getBoundingClientRect()).width,Oe=ke.height);var Pe=+N.attr("x"),ce=+N.attr("y"),we=-(ee||N.node().getBoundingClientRect().height)/4;if(H[0]==="y")ne.attr({transform:"rotate("+[-90,Pe,ce]+")"+c(-Ce/2,we-Oe/2)});else if(H[0]==="l")ce=we-Oe/2;else if(H[0]==="a"&&H.indexOf("atitle")!==0)Pe=0,ce=we;else{var Z=N.attr("text-anchor");Pe-=Ce*(Z==="middle"?.5:Z==="end"?1:0),ce=ce+we-Oe/2}K.attr({x:Pe,y:ce}),q&&q.call(N,ne),te(ne)})})):G(),N}function G(){W.empty()||(H=N.attr("class")+"-math",W.select("svg."+H).remove()),N.text("").style("white-space","pre");var te=function(ee,U){U=U.replace(w," ");var Q,V=!1,X=[],K=-1;function ne(){K++;var ue=document.createElementNS(d.svg,"tspan");s.select(ue).attr({class:"line",dy:K*f+"em"}),ee.appendChild(ue),Q=ue;var me=X;if(X=[{node:ue}],me.length>1)for(var xe=1;xe doesnt match end tag <"+ue+">. Pretending it did match.",U),Q=X[X.length-1].node}else u.log("Ignoring unexpected end tag .",U)}C.test(U)?ne():(Q=ee,X=[{node:ee}]);for(var pe=U.split(S),ke=0;ke|>|>)/g,b=[["$","$"],["\\(","\\)"]],v={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},m={sub:"0.3em",sup:"-0.6em"},y={sub:"-0.21em",sup:"0.42em"},x="​",_=["http:","https:","mailto:","",void 0,":"],w=o.NEWLINES=/(\r\n?|\n)/g,S=/(<[^<>]*>)/,k=/<(\/?)([^ >]*)(\s+(.*))?>/i,C=//i;o.BR_TAG_ALL=//gi;var T=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,M=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,O=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,D=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function P(N,R){if(!N)return null;var q=N.match(R),Y=q&&(q[3]||q[4]);return Y&&F(Y)}var E=/(^|;)\s*color:/;o.plainText=function(N,R){for(var q=(R=R||{}).len!==void 0&&R.len!==-1?R.len:1/0,Y=R.allowedTags!==void 0?R.allowedTags:["br"],L=N.split(S),W=[],H="",G=0,te=0;te3?W.push(ee.substr(0,X-3)+"..."):W.push(ee.substr(0,X));break}H=""}}return W.join("")};var I={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},A=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function F(N){return N.replace(A,function(R,q){return(q.charAt(0)==="#"?function(Y){if(!(Y>1114111)){var L=String.fromCodePoint;if(L)return L(Y);var W=String.fromCharCode;return Y<=65535?W(Y):W(55232+(Y>>10),Y%1024+56320)}}(q.charAt(1)==="x"?parseInt(q.substr(2),16):parseInt(q.substr(1),10)):I[q])||R})}function j(N){var R=encodeURI(decodeURI(N)),q=document.createElement("a"),Y=document.createElement("a");q.href=N,Y.href=R;var L=q.protocol,W=Y.protocol;return _.indexOf(L)!==-1&&_.indexOf(W)!==-1?R:""}function B(N,R,q){var Y,L,W,H=q.horizontalAlign,G=q.verticalAlign||"top",te=N.node().getBoundingClientRect(),ee=R.node().getBoundingClientRect();return L=G==="bottom"?function(){return te.bottom-Y.height}:G==="middle"?function(){return te.top+(te.height-Y.height)/2}:function(){return te.top},W=H==="right"?function(){return te.right-Y.width}:H==="center"?function(){return te.left+(te.width-Y.width)/2}:function(){return te.left},function(){Y=this.node().getBoundingClientRect();var U=W()-ee.left,Q=L()-ee.top,V=q.gd||{};if(q.gd){V._fullLayout._calcInverseTransform(V);var X=u.apply3DTransform(V._fullLayout._invTransform)(U,Q);U=X[0],Q=X[1]}return this.style({top:Q+"px",left:U+"px","z-index":1e3}),this}}o.convertEntities=F,o.sanitizeHTML=function(N){N=N.replace(w," ");for(var R=document.createElement("p"),q=R,Y=[],L=N.split(S),W=0;Wf.ts+c?g():f.timer=setTimeout(function(){g(),f.timer=null},c)},o.done=function(u){var c=a[u];return c&&c.timer?new Promise(function(d){var f=c.onDone;c.onDone=function(){f&&f(),d(),c.onDone=null}}):Promise.resolve()},o.clear=function(u){if(u)s(a[u]),delete a[u];else for(var c in a)o.clear(c)}},58163:function(i,o,a){var s=a(92770);i.exports=function(u,c){if(u>0)return Math.log(u)/Math.LN10;var d=Math.log(Math.min(c[0],c[1]))/Math.LN10;return s(d)||(d=Math.log(Math.max(c[0],c[1]))/Math.LN10-6),d}},37815:function(i){i.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},92177:function(i){i.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{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"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},14458:function(i,o,a){var s=a(73972);i.exports=function(u){for(var c,d,f=s.layoutArrayContainers,p=s.layoutArrayRegexes,h=u.split("[")[0],g=0;g0&&d.log("Clearing previous rejected promises from queue."),M._promises=[]},o.cleanLayout=function(M){var O,D;M||(M={}),M.xaxis1&&(M.xaxis||(M.xaxis=M.xaxis1),delete M.xaxis1),M.yaxis1&&(M.yaxis||(M.yaxis=M.yaxis1),delete M.yaxis1),M.scene1&&(M.scene||(M.scene=M.scene1),delete M.scene1);var P=(f.subplotsRegistry.cartesian||{}).attrRegex,E=(f.subplotsRegistry.polar||{}).attrRegex,I=(f.subplotsRegistry.ternary||{}).attrRegex,A=(f.subplotsRegistry.gl3d||{}).attrRegex,F=Object.keys(M);for(O=0;O3?(X.x=1.02,X.xanchor="left"):X.x<-2&&(X.x=-.02,X.xanchor="right"),X.y>3?(X.y=1.02,X.yanchor="bottom"):X.y<-2&&(X.y=-.02,X.yanchor="top")),y(M),M.dragmode==="rotate"&&(M.dragmode="orbit"),h.clean(M),M.template&&M.template.layout&&o.cleanLayout(M.template.layout),M},o.cleanData=function(M){for(var O=0;O0)return M.substr(0,O)}o.hasParent=function(M,O){for(var D=C(O);D;){if(D in M)return!0;D=C(D)}return!1};var T=["x","y","z"];o.clearAxisTypes=function(M,O,D){for(var P=0;P1&&c.warn("Full array edits are incompatible with other edits",x);var M=v[""][""];if(h(M))b.set(null);else{if(!Array.isArray(M))return c.warn("Unrecognized full array edit value",x,M),!0;b.set(M)}return!k&&(_(C,T),w(g),!0)}var O,D,P,E,I,A,F,j,B=Object.keys(v).map(Number).sort(d),z=b.get(),N=z||[],R=y(T,x).get(),q=[],Y=-1,L=N.length;for(O=0;ON.length-(F?0:1))c.warn("index out of range",x,P);else if(A!==void 0)I.length>1&&c.warn("Insertion & removal are incompatible with edits to the same index.",x,P),h(A)?q.push(P):F?(A==="add"&&(A={}),N.splice(P,0,A),R&&R.splice(P,0,{})):c.warn("Unrecognized full object edit value",x,P,A),Y===-1&&(Y=P);else for(D=0;D=0;O--)N.splice(q[O],1),R&&R.splice(q[O],1);if(N.length?z||b.set(N):b.set(null),k)return!1;if(_(C,T),S!==u){var W;if(Y===-1)W=B;else{for(L=Math.max(N.length,L),W=[],O=0;O=Y);O++)W.push(P);for(O=Y;O=ue.data.length||Se<-ue.data.length)throw new Error(xe+" must be valid indices for gd.data.");if(me.indexOf(Se,ye+1)>-1||Se>=0&&me.indexOf(-ue.data.length+Se)>-1||Se<0&&me.indexOf(ue.data.length+Se)>-1)throw new Error("each index in "+xe+" must be unique.")}}function R(ue,me,xe){if(!Array.isArray(ue.data))throw new Error("gd.data must be an array.");if(me===void 0)throw new Error("currentIndices is a required argument.");if(Array.isArray(me)||(me=[me]),N(ue,me,"currentIndices"),xe===void 0||Array.isArray(xe)||(xe=[xe]),xe!==void 0&&N(ue,xe,"newIndices"),xe!==void 0&&me.length!==xe.length)throw new Error("current and new indices must be of equal length.")}function q(ue,me,xe,ye,Se){(function(We,Ge,ot,Je){var st=d.isPlainObject(Je);if(!Array.isArray(We.data))throw new Error("gd.data must be an array");if(!d.isPlainObject(Ge))throw new Error("update must be a key:value object");if(ot===void 0)throw new Error("indices must be an integer or array of integers");for(var bt in N(We,ot,"indices"),Ge){if(!Array.isArray(Ge[bt])||Ge[bt].length!==ot.length)throw new Error("attribute "+bt+" must be an array of length equal to indices array length");if(st&&(!(bt in Je)||!Array.isArray(Je[bt])||Je[bt].length!==Ge[bt].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}})(ue,me,xe,ye);for(var Ae=function(We,Ge,ot,Je){var st,bt,Be,je,tt,it=d.isPlainObject(Je),St=[];for(var et in Array.isArray(ot)||(ot=[ot]),ot=z(ot,We.data.length-1),Ge)for(var ct=0;ct-1&&xe.indexOf("grouptitlefont")===-1?Re(xe,xe.replace("titlefont","title.font")):xe.indexOf("titleposition")>-1?Re(xe,xe.replace("titleposition","title.position")):xe.indexOf("titleside")>-1?Re(xe,xe.replace("titleside","title.side")):xe.indexOf("titleoffset")>-1&&Re(xe,xe.replace("titleoffset","title.offset")):Re(xe,xe.replace("title","title.text"));function Re(Ie,Ne){ue[Ne]=ue[Ie],delete ue[Ie]}}function U(ue,me,xe){ue=d.getGraphDiv(ue),O.clearPromiseQueue(ue);var ye={};if(typeof me=="string")ye[me]=xe;else{if(!d.isPlainObject(me))return d.warn("Relayout fail.",me,xe),Promise.reject();ye=d.extendFlat({},me)}Object.keys(ye).length&&(ue.changed=!0);var Se=ae(ue,ye),Ae=Se.flags;Ae.calc&&(ue.calcdata=void 0);var Le=[v.previousPromises];Ae.layoutReplot?Le.push(D.layoutReplot):Object.keys(ye).length&&(Q(ue,Ae,Se)||v.supplyDefaults(ue),Ae.legend&&Le.push(D.doLegend),Ae.layoutstyle&&Le.push(D.layoutStyles),Ae.axrange&&V(Le,Se.rangesAltered),Ae.ticks&&Le.push(D.doTicksRelayout),Ae.modebar&&Le.push(D.doModeBar),Ae.camera&&Le.push(D.doCamera),Ae.colorbars&&Le.push(D.doColorBars),Le.push(A)),Le.push(v.rehover,v.redrag,v.reselect),h.add(ue,U,[ue,Se.undoit],U,[ue,Se.redoit]);var Re=d.syncOrAsync(Le,ue);return Re&&Re.then||(Re=Promise.resolve(ue)),Re.then(function(){return ue.emit("plotly_relayout",Se.eventData),ue})}function Q(ue,me,xe){var ye,Se,Ae=ue._fullLayout;if(!me.axrange)return!1;for(var Le in me)if(Le!=="axrange"&&me[Le])return!1;var Re=function(Ge,ot){return d.coerce(ye,Se,x,Ge,ot)},Ie={};for(var Ne in xe.rangesAltered){var ze=m.id2name(Ne);if(ye=ue.layout[ze],Se=Ae[ze],y(ye,Se,Re,Ie),Se._matchGroup){for(var qe in Se._matchGroup)if(qe!==Ne){var We=Ae[m.id2name(qe)];We.autorange=Se.autorange,We.range=Se.range.slice(),We._input.range=Se.range.slice()}}}return!0}function V(ue,me){var xe=me?function(ye){var Se=[];for(var Ae in me){var Le=m.getFromId(ye,Ae);if(Se.push(Ae),(Le.ticklabelposition||"").indexOf("inside")!==-1&&Le._anchorAxis&&Se.push(Le._anchorAxis._id),Le._matchGroup)for(var Re in Le._matchGroup)me[Re]||Se.push(Re)}return m.draw(ye,Se,{skipTitle:!0})}:function(ye){return m.draw(ye,"redraw")};ue.push(C,D.doAutoRangeAndConstraints,xe,D.drawData,D.finalDraw)}var X=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,K=/^[xyz]axis[0-9]*\.autorange$/,ne=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function ae(ue,me){var xe,ye,Se,Ae=ue.layout,Le=ue._fullLayout,Re=Le._guiEditing,Ie=H(Le._preGUI,Re),Ne=Object.keys(me),ze=m.list(ue),qe=d.extendDeepAll({},me),We={};for(ee(me),Ne=Object.keys(me),ye=0;ye0&&typeof ct.parts[$t]!="string";)$t--;var kt=ct.parts[$t],Wt=ct.parts[$t-1]+"."+kt,wt=ct.parts.slice(0,$t).join("."),be=f(ue.layout,wt).get(),Me=f(Le,wt).get(),Ve=ct.get();if(ht!==void 0){bt[et]=ht,Be[et]=kt==="reverse"?ht:W(Ve);var Ue=b.getLayoutValObject(Le,ct.parts);if(Ue&&Ue.impliedEdits&&ht!==null)for(var Ze in Ue.impliedEdits)je(d.relativeAttr(et,Ze),Ue.impliedEdits[Ze]);if(["width","height"].indexOf(et)!==-1)if(ht){je("autosize",null);var Ye=et==="height"?"width":"height";je(Ye,Le[Ye])}else Le[et]=ue._initialAutoSize[et];else if(et==="autosize")je("width",ht?null:Le.width),je("height",ht?null:Le.height);else if(Wt.match(X))St(Wt),f(Le,wt+"._inputRange").set(null);else if(Wt.match(K)){St(Wt),f(Le,wt+"._inputRange").set(null);var Qe=f(Le,wt).get();Qe._inputDomain&&(Qe._input.domain=Qe._inputDomain.slice())}else Wt.match(ne)&&f(Le,wt+"._inputDomain").set(null);if(kt==="type"){tt=be;var rt=Me.type==="linear"&&ht==="log",ut=Me.type==="log"&&ht==="linear";if(rt||ut){if(tt&&tt.range)if(Me.autorange)rt&&(tt.range=tt.range[1]>tt.range[0]?[1,2]:[2,1]);else{var gt=tt.range[0],nt=tt.range[1];rt?(gt<=0&&nt<=0&&je(wt+".autorange",!0),gt<=0?gt=nt/1e6:nt<=0&&(nt=gt/1e6),je(wt+".range[0]",Math.log(gt)/Math.LN10),je(wt+".range[1]",Math.log(nt)/Math.LN10)):(je(wt+".range[0]",Math.pow(10,gt)),je(wt+".range[1]",Math.pow(10,nt)))}else je(wt+".autorange",!0);Array.isArray(Le._subplots.polar)&&Le._subplots.polar.length&&Le[ct.parts[0]]&&ct.parts[1]==="radialaxis"&&delete Le[ct.parts[0]]._subplot.viewInitial["radialaxis.range"],g.getComponentMethod("annotations","convertCoords")(ue,Me,ht,je),g.getComponentMethod("images","convertCoords")(ue,Me,ht,je)}else je(wt+".autorange",!0),je(wt+".range",null);f(Le,wt+"._inputRange").set(null)}else if(kt.match(E)){var Nt=f(Le,et).get(),Gt=(ht||{}).type;Gt&&Gt!=="-"||(Gt="linear"),g.getComponentMethod("annotations","convertCoords")(ue,Nt,Gt,je),g.getComponentMethod("images","convertCoords")(ue,Nt,Gt,je)}var Ct=M.containerArrayMatch(et);if(Ct){xe=Ct.array,ye=Ct.index;var Ft=Ct.property,Et=Ue||{editType:"calc"};ye!==""&&Ft===""&&(M.isAddVal(ht)?Be[et]=null:M.isRemoveVal(ht)?Be[et]=(f(Ae,xe).get()||[])[ye]:d.warn("unrecognized full object value",me)),P.update(st,Et),We[xe]||(We[xe]={});var mt=We[xe][ye];mt||(mt=We[xe][ye]={}),mt[Ft]=ht,delete me[et]}else kt==="reverse"?(be.range?be.range.reverse():(je(wt+".autorange",!0),be.range=[1,0]),Me.autorange?st.calc=!0:st.plot=!0):(et==="dragmode"&&(ht===!1&&Ve!==!1||ht!==!1&&Ve===!1)||Le._has("scatter-like")&&Le._has("regl")&&et==="dragmode"&&(ht==="lasso"||ht==="select")&&Ve!=="lasso"&&Ve!=="select"||Le._has("gl2d")?st.plot=!0:Ue?P.update(st,Ue):st.calc=!0,ct.set(ht))}}for(xe in We)M.applyContainerArrayChanges(ue,Ie(Ae,xe),We[xe],st,Ie)||(st.plot=!0);for(var pt in it){var yt=(tt=m.getFromId(ue,pt))&&tt._constraintGroup;if(yt)for(var qt in st.calc=!0,yt)it[qt]||(m.getFromId(ue,qt)._constraintShrinkable=!0)}(ie(ue)||me.height||me.width)&&(st.plot=!0);var Rt=Le.shapes;for(ye=0;ye1;)if(ye.pop(),(xe=f(me,ye.join(".")+".uirevision").get())!==void 0)return xe;return me.uirevision}function ce(ue,me){for(var xe=0;xe=Se.length?Se[0]:Se[Ne]:Se}function Re(Ne){return Array.isArray(Ae)?Ne>=Ae.length?Ae[0]:Ae[Ne]:Ae}function Ie(Ne,ze){var qe=0;return function(){if(Ne&&++qe===ze)return Ne()}}return ye._frameWaitingCnt===void 0&&(ye._frameWaitingCnt=0),new Promise(function(Ne,ze){function qe(){ue.emit("plotly_animating"),ye._lastFrameAt=-1/0,ye._timeToNext=0,ye._runningTransitions=0,ye._currentFrame=null;var et=function(){ye._animationRaf=window.requestAnimationFrame(et),Date.now()-ye._lastFrameAt>ye._timeToNext&&function(){ye._currentFrame&&ye._currentFrame.onComplete&&ye._currentFrame.onComplete();var ct=ye._currentFrame=ye._frameQueue.shift();if(ct){var ht=ct.name?ct.name.toString():null;ue._fullLayout._currentFrame=ht,ye._lastFrameAt=Date.now(),ye._timeToNext=ct.frameOpts.duration,v.transition(ue,ct.frame.data,ct.frame.layout,O.coerceTraceIndices(ue,ct.frame.traces),ct.frameOpts,ct.transitionOpts).then(function(){ct.onComplete&&ct.onComplete()}),ue.emit("plotly_animatingframe",{name:ht,frame:ct.frame,animation:{frame:ct.frameOpts,transition:ct.transitionOpts}})}else ue.emit("plotly_animated"),window.cancelAnimationFrame(ye._animationRaf),ye._animationRaf=null}()};et()}var We,Ge,ot=0;function Je(et){return Array.isArray(Se)?ot>=Se.length?et.transitionOpts=Se[ot]:et.transitionOpts=Se[0]:et.transitionOpts=Se,ot++,et}var st=[],bt=me==null,Be=Array.isArray(me);if(bt||Be||!d.isPlainObject(me)){if(bt||["string","number"].indexOf(typeof me)!==-1)for(We=0;We0&&itit)&&St.push(Ge);st=St}}st.length>0?function(et){if(et.length!==0){for(var ct=0;ct=0;ye--)if(d.isPlainObject(me[ye])){var We=me[ye].name,Ge=(Ie[We]||qe[We]||{}).name,ot=me[ye].name,Je=Ie[Ge]||qe[Ge];Ge&&ot&&typeof ot=="number"&&Je&&I<5&&(I++,d.warn('addFrames: overwriting frame "'+(Ie[Ge]||qe[Ge]).name+'" with a frame whose name of type "number" also equates to "'+Ge+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),I===5&&d.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),qe[We]={name:We},ze.push({frame:v.supplyFrameDefaults(me[ye]),index:xe&&xe[ye]!==void 0&&xe[ye]!==null?xe[ye]:Ne+ye})}ze.sort(function(et,ct){return et.index>ct.index?-1:et.index=0;ye--){if(typeof(Se=ze[ye].frame).name=="number"&&d.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!Se.name)for(;Ie[Se.name="frame "+ue._transitionData._counter++];);if(Ie[Se.name]){for(Ae=0;Ae=0;xe--)ye=me[xe],Ae.push({type:"delete",index:ye}),Le.unshift({type:"insert",index:ye,value:Se[ye]});var Re=v.modifyFrames,Ie=v.modifyFrames,Ne=[ue,Le],ze=[ue,Ae];return h&&h.add(ue,Re,Ne,Ie,ze),v.modifyFrames(ue,Ae)},o.addTraces=function ue(me,xe,ye){me=d.getGraphDiv(me);var Se,Ae,Le=[],Re=o.deleteTraces,Ie=ue,Ne=[me,Le],ze=[me,xe];for(function(qe,We,Ge){var ot,Je;if(!Array.isArray(qe.data))throw new Error("gd.data must be an array.");if(We===void 0)throw new Error("traces must be defined.");for(Array.isArray(We)||(We=[We]),ot=0;ot=0&&ze=0&&ze=B.length)return!1;if(E.dimensions===2){if(A++,I.length===A)return E;var z=I[A];if(!T(z))return!1;E=B[j][z]}else E=B[j]}else E=B}}return E}function T(E){return E===Math.round(E)&&E>=0}function M(){var E,I,A={};for(E in b(A,d),s.subplotsRegistry)if((I=s.subplotsRegistry[E]).layoutAttributes)if(Array.isArray(I.attr))for(var F=0;F=z.length)return!1;F=(A=(s.transformsRegistry[z[N].type]||{}).attributes)&&A[I[2]],B=3}else{var R=E._module;if(R||(R=(s.modules[E.type||c.type.dflt]||{})._module),!R)return!1;if(!(F=(A=R.attributes)&&A[j])){var q=R.basePlotModule;q&&q.attributes&&(F=q.attributes[j])}F||(F=c[j])}return C(F,I,B)},o.getLayoutValObject=function(E,I){var A=function(F,j){var B,z,N,R,q=F._basePlotModules;if(q){var Y;for(B=0;B=v&&(b._input||{})._templateitemname;y&&(m=v);var x,_=g+"["+m+"]";function w(){x={},y&&(x[_]={},x[_][c]=y)}function S(C,T){y?s.nestedProperty(x[_],C).set(T):x[_+"."+C]=T}function k(){var C=x;return w(),C}return w(),{modifyBase:function(C,T){x[C]=T},modifyItem:S,getUpdateObj:k,applyUpdate:function(C,T){C&&S(C,T);var M=k();for(var O in M)s.nestedProperty(h,O).set(M[O])}}}},61549:function(i,o,a){var s=a(39898),u=a(73972),c=a(74875),d=a(71828),f=a(63893),p=a(33306),h=a(7901),g=a(91424),b=a(92998),v=a(64168),m=a(89298),y=a(18783),x=a(99082),_=x.enforce,w=x.clean,S=a(71739).doAutoRange,k="start";function C(P,E,I){for(var A=0;A=P[1]||F[1]<=P[0])&&j[0]E[0])return!0}return!1}function T(P){var E,I,A,F,j,B,z=P._fullLayout,N=z._size,R=N.p,q=m.list(P,"",!0);if(z._paperdiv.style({width:P._context.responsive&&z.autosize&&!P._context._hasZeroWidth&&!P.layout.width?"100%":z.width+"px",height:P._context.responsive&&z.autosize&&!P._context._hasZeroHeight&&!P.layout.height?"100%":z.height+"px"}).selectAll(".main-svg").call(g.setSize,z.width,z.height),P._context.setBackground(P,z.paper_bgcolor),o.drawMainTitle(P),v.manage(P),!z._has("cartesian"))return c.previousPromises(P);function Y(Ne,ze,qe){var We=Ne._lw/2;return Ne._id.charAt(0)==="x"?ze?qe==="top"?ze._offset-R-We:ze._offset+ze._length+R+We:N.t+N.h*(1-(Ne.position||0))+We%1:ze?qe==="right"?ze._offset+ze._length+R+We:ze._offset-R-We:N.l+N.w*(Ne.position||0)+We%1}for(E=0;E.5?"t":"b",ee=Y._fullLayout.margin[te],U=0;return L.yref==="paper"?U=W+L.pad.t+L.pad.b:L.yref==="container"&&(U=function(Q,V,X,K,ne){var ae=0;return X==="middle"&&(ae+=ne/2),Q==="t"?(X==="top"&&(ae+=ne),ae+=K-V*K):(X==="bottom"&&(ae+=ne),ae+=V*K),ae}(te,H,G,Y._fullLayout.height,W)+L.pad.t+L.pad.b),U>ee?U:0}(P,I,R);q>0&&(function(Y,L,W,H){var G="title.automargin",te=Y._fullLayout.title,ee=te.y>.5?"t":"b",U={x:te.x,y:te.y,t:0,b:0},Q={};te.yref==="paper"&&function(V,X,K,ne,ae){var ie=X.yref==="paper"?V._fullLayout._size.h:V._fullLayout.height,se=d.isTopAnchor(X)?ne:ne-ae,pe=K==="b"?ie-se:se;return!(d.isTopAnchor(X)&&K==="t"||d.isBottomAnchor(X)&&K==="b")&&peN?D.push({code:"unused",traceType:A,templateCount:z,dataCount:N}):N>z&&D.push({code:"reused",traceType:A,templateCount:z,dataCount:N})}}else D.push({code:"data"});if(function R(q,Y){for(var L in q)if(L.charAt(0)!=="_"){var W=q[L],H=x(q,L,Y);u(W)?(Array.isArray(q)&&W._template===!1&&W.templateitemname&&D.push({code:"missing",path:H,templateitemname:W.templateitemname}),R(W,H)):Array.isArray(W)&&_(W)&&R(W,H)}}({data:E,layout:P},""),D.length)return D.map(w)}},403:function(i,o,a){var s=a(92770),u=a(72391),c=a(74875),d=a(71828),f=a(25095),p=a(5900),h=a(70942),g=a(11506).version,b={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};i.exports=function(v,m){var y,x,_,w;function S(N){return!(N in m)||d.validate(m[N],b[N])}if(m=m||{},d.isPlainObject(v)?(y=v.data||[],x=v.layout||{},_=v.config||{},w={}):(v=d.getGraphDiv(v),y=d.extendDeep([],v.data),x=d.extendDeep({},v.layout),_=v._context,w=v._fullLayout||{}),!S("width")&&m.width!==null||!S("height")&&m.height!==null)throw new Error("Height and width should be pixel values.");if(!S("format"))throw new Error("Export format is not "+d.join2(b.format.values,", "," or ")+".");var k={};function C(N,R){return d.coerce(m,k,b,N,R)}var T=C("format"),M=C("width"),O=C("height"),D=C("scale"),P=C("setBackground"),E=C("imageDataOnly"),I=document.createElement("div");I.style.position="absolute",I.style.left="-5000px",document.body.appendChild(I);var A=d.extendFlat({},x);M?A.width=M:m.width===null&&s(w.width)&&(A.width=w.width),O?A.height=O:m.height===null&&s(w.height)&&(A.height=w.height);var F=d.extendFlat({},_,{_exportedPlot:!0,staticPlot:!0,setBackground:P}),j=f.getRedrawFunc(I);function B(){return new Promise(function(N){setTimeout(N,f.getDelay(I._fullLayout))})}function z(){return new Promise(function(N,R){var q=p(I,T,D),Y=I._fullLayout.width,L=I._fullLayout.height;function W(){u.purge(I),document.body.removeChild(I)}if(T==="full-json"){var H=c.graphJson(I,!1,"keepdata","object",!0,!0);return H.version=g,H=JSON.stringify(H),W(),N(E?H:f.encodeJSON(H))}if(W(),T==="svg")return N(E?q:f.encodeSVG(q));var G=document.createElement("canvas");G.id=d.randstr(),h({format:T,width:Y,height:L,scale:D,canvas:G,svg:q,promise:!0}).then(N).catch(R)})}return new Promise(function(N,R){u.newPlot(I,y,A,F).then(j).then(B).then(z).then(function(q){N(function(Y){return E?Y.replace(f.IMAGE_URL_PREFIX,""):Y}(q))}).catch(function(q){R(q)})})}},84936:function(i,o,a){var s=a(71828),u=a(74875),c=a(86281),d=a(72075).dfltConfig,f=s.isPlainObject,p=Array.isArray,h=s.isArrayOrTypedArray;function g(S,k,C,T,M,O){O=O||[];for(var D=Object.keys(S),P=0;PF.length&&T.push(m("unused",M,I.concat(F.length)));var q,Y,L,W,H,G=F.length,te=Array.isArray(R);if(te&&(G=Math.min(G,R.length)),j.dimensions===2)for(Y=0;YF[Y].length&&T.push(m("unused",M,I.concat(Y,F[Y].length)));var ee=F[Y].length;for(q=0;q<(te?Math.min(ee,R[Y].length):ee);q++)L=te?R[Y][q]:R,W=A[Y][q],H=F[Y][q],s.validate(W,L)?H!==W&&H!==+W&&T.push(m("dynamic",M,I.concat(Y,q),W,H)):T.push(m("value",M,I.concat(Y,q),W))}else T.push(m("array",M,I.concat(Y),A[Y]));else for(Y=0;Y1&&O.push(m("object","layout"))),u.supplyDefaults(D);for(var P=D._fullData,E=C.length,I=0;I0&&Math.round(x)===x))return{vals:b};m=x}for(var _=h.calendar,w=v==="start",S=v==="end",k=p[g+"period0"],C=c(k,_)||0,T=[],M=[],O=[],D=b.length,P=0;PF;)A=d(A,-m,_);for(;A<=F;)A=d(A,m,_);I=d(A,-m,_)}else{for(A=C+(E=Math.round((F-C)/y))*y;A>F;)A-=y;for(;A<=F;)A+=y;I=A-y}T[P]=w?I:S?A:(I+A)/2,M[P]=I,O[P]=A}return{vals:T,starts:M,ends:O}}},89502:function(i){i.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},71739:function(i,o,a){var s=a(39898),u=a(92770),c=a(71828),d=a(50606).FP_SAFE,f=a(73972),p=a(91424),h=a(41675),g=h.getFromId,b=h.isLinked;function v(P,E){var I,A,F=[],j=P._fullLayout,B=y(j,E,0),z=y(j,E,1),N=_(P,E),R=N.min,q=N.max;if(R.length===0||q.length===0)return c.simpleMap(E.range,E.r2l);var Y=R[0].val,L=q[0].val;for(I=1;I0&&((V=ie-B(te)-z(ee))>se?X/V>pe&&(U=te,Q=ee,pe=X/V):X/ie>pe&&(U={val:te.val,nopad:1},Q={val:ee.val,nopad:1},pe=X/ie));if(Y===L){var ke=Y-1,Ce=Y+1;if(ne)if(Y===0)F=[0,1];else{var Oe=(Y>0?q:R).reduce(function(ce,we){return Math.max(ce,z(we))},0),Pe=Y/(1-Math.min(.5,Oe/ie));F=Y>0?[0,Pe]:[Pe,0]}else F=ae?[Math.max(0,ke),Math.max(1,Ce)]:[ke,Ce]}else ne?(U.val>=0&&(U={val:0,nopad:1}),Q.val<=0&&(Q={val:0,nopad:1})):ae&&(U.val-pe*B(U)<0&&(U={val:0,nopad:1}),Q.val<=0&&(Q={val:1,nopad:1})),pe=(Q.val-U.val-m(E,te.val,ee.val))/(ie-B(U)-z(Q)),F=[U.val-pe*B(U),Q.val+pe*z(Q)];return F=D(F,E),E.limitRange&&E.limitRange(),H&&F.reverse(),c.simpleMap(F,E.l2r||Number)}function m(P,E,I){var A=0;if(P.rangebreaks)for(var F=P.locateBreaks(E,I),j=0;j0?I.ppadplus:I.ppadminus)||I.ppad||0),K=V((P._m>0?I.ppadminus:I.ppadplus)||I.ppad||0),ne=V(I.vpadplus||I.vpad),ae=V(I.vpadminus||I.vpad);if(!U){if(q=1/0,Y=-1/0,ee)for(A=0;A0&&(q=F),F>Y&&F-d&&(q=F),F>Y&&F=pe;A--)se(A);return{min:L,max:W,opts:I}},concatExtremes:_};var x=3;function _(P,E,I){var A,F,j,B=E._id,z=P._fullData,N=P._fullLayout,R=[],q=[];function Y(te,ee){for(A=0;A=I&&(R.extrapad||!B)){z=!1;break}F(E,R.val)&&R.pad<=I&&(B||!R.extrapad)&&(P.splice(N,1),N--)}if(z){var q=j&&E===0;P.push({val:E,pad:q?0:I,extrapad:!q&&B})}}function C(P){return u(P)&&Math.abs(P)=E}function O(P,E,I){return E===void 0||I===void 0||(E=P.d2l(E))=N&&(j=N,I=N),B<=N&&(B=N,A=N)}}return I=function(R,q){var Y=q.autorangeoptions;return Y&&Y.minallowed!==void 0&&O(q,Y.minallowed,Y.maxallowed)?Y.minallowed:Y&&Y.clipmin!==void 0&&O(q,Y.clipmin,Y.clipmax)?Math.max(R,q.d2l(Y.clipmin)):R}(I,E),A=function(R,q){var Y=q.autorangeoptions;return Y&&Y.maxallowed!==void 0&&O(q,Y.minallowed,Y.maxallowed)?Y.maxallowed:Y&&Y.clipmax!==void 0&&O(q,Y.clipmin,Y.clipmax)?Math.min(R,q.d2l(Y.clipmax)):R}(A,E),[I,A]}},23074:function(i){i.exports=function(o,a,s){var u,c;if(s){var d=a==="reversed"||a==="min reversed"||a==="max reversed";u=s[d?1:0],c=s[d?0:1]}var f=o("autorangeoptions.minallowed",c===null?u:void 0),p=o("autorangeoptions.maxallowed",u===null?c:void 0);f===void 0&&o("autorangeoptions.clipmin"),p===void 0&&o("autorangeoptions.clipmax"),o("autorangeoptions.include")}},89298:function(i,o,a){var s=a(39898),u=a(92770),c=a(74875),d=a(73972),f=a(71828),p=f.strTranslate,h=a(63893),g=a(92998),b=a(7901),v=a(91424),m=a(13838),y=a(66287),x=a(50606),_=x.ONEMAXYEAR,w=x.ONEAVGYEAR,S=x.ONEMINYEAR,k=x.ONEMAXQUARTER,C=x.ONEAVGQUARTER,T=x.ONEMINQUARTER,M=x.ONEMAXMONTH,O=x.ONEAVGMONTH,D=x.ONEMINMONTH,P=x.ONEWEEK,E=x.ONEDAY,I=E/2,A=x.ONEHOUR,F=x.ONEMIN,j=x.ONESEC,B=x.MINUS_SIGN,z=x.BADNUM,N={K:"zeroline"},R={K:"gridline",L:"path"},q={K:"minor-gridline",L:"path"},Y={K:"tick",L:"path"},L={K:"tick",L:"text"},W={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},H=a(18783),G=H.MID_SHIFT,te=H.CAP_SHIFT,ee=H.LINE_SPACING,U=H.OPPOSITE_SIDE,Q=i.exports={};Q.setConvert=a(21994);var V=a(4322),X=a(41675),K=X.idSort,ne=X.isLinked;Q.id2name=X.id2name,Q.name2id=X.name2id,Q.cleanId=X.cleanId,Q.list=X.list,Q.listIds=X.listIds,Q.getFromId=X.getFromId,Q.getFromTrace=X.getFromTrace;var ae=a(71739);Q.getAutoRange=ae.getAutoRange,Q.findExtremes=ae.findExtremes;var ie=1e-4;function se(be){var Me=(be[1]-be[0])*ie;return[be[0]-Me,be[1]+Me]}Q.coerceRef=function(be,Me,Ve,Ue,Ze,Ye){var Qe=Ue.charAt(Ue.length-1),rt=Ve._fullLayout._subplots[Qe+"axis"],ut=Ue+"ref",gt={};return Ze||(Ze=rt[0]||(typeof Ye=="string"?Ye:Ye[0])),Ye||(Ye=Ze),rt=rt.concat(rt.map(function(nt){return nt+" domain"})),gt[ut]={valType:"enumerated",values:rt.concat(Ye?typeof Ye=="string"?[Ye]:Ye:[]),dflt:Ze},f.coerce(be,Me,gt,ut)},Q.getRefType=function(be){return be===void 0?be:be==="paper"?"paper":be==="pixel"?"pixel":/( domain)$/.test(be)?"domain":"range"},Q.coercePosition=function(be,Me,Ve,Ue,Ze,Ye){var Qe,rt;if(Q.getRefType(Ue)!=="range")Qe=f.ensureNumber,rt=Ve(Ze,Ye);else{var ut=Q.getFromId(Me,Ue);rt=Ve(Ze,Ye=ut.fraction2r(Ye)),Qe=ut.cleanPos}be[Ze]=Qe(rt)},Q.cleanPosition=function(be,Me,Ve){return(Ve==="paper"||Ve==="pixel"?f.ensureNumber:Q.getFromId(Me,Ve).cleanPos)(be)},Q.redrawComponents=function(be,Me){Me=Me||Q.listIds(be);var Ve=be._fullLayout;function Ue(Ze,Ye,Qe,rt){for(var ut=d.getComponentMethod(Ze,Ye),gt={},nt=0;ntVe&&nt2e-6||((Ve-be._forceTick0)/be._minDtick%1+1.000001)%1>2e-6)&&(be._minDtick=0)):be._minDtick=0},Q.saveRangeInitial=function(be,Me){for(var Ve=Q.list(be,"",!0),Ue=!1,Ze=0;Ze.3*zt||It(qt)||It(Rt))){var Xt=yt.dtick/2;mt+=mt+Xt.8){var Tt=Number(yt.substr(1));jt.exactYears>.8&&Tt%12==0?mt=Q.tickIncrement(mt,"M6","reverse")+1.5*E:jt.exactMonths>.8?mt=Q.tickIncrement(mt,"M1","reverse")+15.5*E:mt-=I;var Pt=Q.tickIncrement(mt,yt);if(Pt<=qt)return Pt}return mt}(Et,be,Ft,rt,Ze)),Ct=Et;Ct<=ut;)Ct=Q.tickIncrement(Ct,Ft,!1,Ze);return{start:Me.c2r(Et,0,Ze),end:Me.c2r(Ct,0,Ze),size:Ft,_dataSpan:ut-rt}},Q.prepMinorTicks=function(be,Me,Ve){if(!Me.minor.dtick){delete be.dtick;var Ue,Ze=Me.dtick&&u(Me._tmin);if(Ze){var Ye=Q.tickIncrement(Me._tmin,Me.dtick,!0);Ue=[Me._tmin,.99*Ye+.01*Me._tmin]}else{var Qe=f.simpleMap(Me.range,Me.r2l);Ue=[Qe[0],.8*Qe[0]+.2*Qe[1]]}if(be.range=f.simpleMap(Ue,Me.l2r),be._isMinor=!0,Q.prepTicks(be,Ve),Ze){var rt=u(Me.dtick),ut=u(be.dtick),gt=rt?Me.dtick:+Me.dtick.substring(1),nt=ut?be.dtick:+be.dtick.substring(1);rt&&ut?Oe(gt,nt)?gt===2*P&&nt===2*E&&(be.dtick=P):gt===2*P&&nt===3*E?be.dtick=P:gt!==P||(Me._input.minor||{}).nticks?Pe(gt/nt,2.5)?be.dtick=gt/2:be.dtick=gt:be.dtick=E:String(Me.dtick).charAt(0)==="M"?ut?be.dtick="M1":Oe(gt,nt)?gt>=12&&nt===2&&(be.dtick="M3"):be.dtick=Me.dtick:String(be.dtick).charAt(0)==="L"?String(Me.dtick).charAt(0)==="L"?Oe(gt,nt)||(be.dtick=Pe(gt/nt,2.5)?Me.dtick/2:Me.dtick):be.dtick="D1":be.dtick==="D2"&&+Me.dtick>1&&(be.dtick=1)}be.range=Me.range}Me.minor._tick0Init===void 0&&(be.tick0=Me.tick0)},Q.prepTicks=function(be,Me){var Ve=f.simpleMap(be.range,be.r2l,void 0,void 0,Me);if(be.tickmode==="auto"||!be.dtick){var Ue,Ze=be.nticks;Ze||(be.type==="category"||be.type==="multicategory"?(Ue=be.tickfont?f.bigFont(be.tickfont.size||12):15,Ze=be._length/Ue):(Ue=be._id.charAt(0)==="y"?40:80,Ze=f.constrain(be._length/Ue,4,9)+1),be._name==="radialaxis"&&(Ze*=2)),be.minor&&be.minor.tickmode!=="array"||be.tickmode==="array"&&(Ze*=100),be._roughDTick=Math.abs(Ve[1]-Ve[0])/Ze,Q.autoTicks(be,be._roughDTick),be._minDtick>0&&be.dtick<2*be._minDtick&&(be.dtick=be._minDtick,be.tick0=be.l2r(be._forceTick0))}be.ticklabelmode==="period"&&function(Ye){var Qe;function rt(){return!(u(Ye.dtick)||Ye.dtick.charAt(0)!=="M")}var ut=rt(),gt=Q.getTickFormat(Ye);if(gt){var nt=Ye._dtickInit!==Ye.dtick;/%[fLQsSMX]/.test(gt)||(/%[HI]/.test(gt)?(Qe=A,nt&&!ut&&Ye.dtick=(pt?0:1);yt--){var qt=!yt;yt?(be._dtickInit=be.dtick,be._tick0Init=be.tick0):(be.minor._dtickInit=be.minor.dtick,be.minor._tick0Init=be.minor.tick0);var Rt=yt?be:f.extendFlat({},be,be.minor);if(qt?Q.prepMinorTicks(Rt,be,Me):Q.prepTicks(Rt,Me),Rt.tickmode!=="array")if(Rt.tickmode!=="sync"){var jt=se(ut),Tt=jt[0],Pt=jt[1],Ot=u(Rt.dtick),It=Ze==="log"&&!(Ot||Rt.dtick.charAt(0)==="L"),Lt=Q.tickFirst(Rt,Me);if(yt){if(be._tmin=Lt,Lt=Pt:Bt<=Pt;Bt=Q.tickIncrement(Bt,Ut,gt,Ye)){if(yt&&zt++,Rt.rangebreaks&&!gt){if(Bt=Nt)break}if(Et.length>Gt||Bt===Kt)break;Kt=Bt;var on={value:Bt};yt?(It&&Bt!==(0|Bt)&&(on.simpleLabel=!0),Qe>1&&zt%Qe&&(on.skipLabel=!0),Et.push(on)):(on.minor=!0,mt.push(on))}}else Et=[],Ct=Z(be);else yt?(Et=[],Ct=re(be)):(mt=[],Ft=re(be))}if(pt&&!(be.minor.ticks==="inside"&&be.ticks==="outside"||be.minor.ticks==="outside"&&be.ticks==="inside")){for(var yn=Et.map(function(Mr){return Mr.value}),pn=[],cn=0;cn0?(Qa=Or-1,zn=Or):(Qa=Or,zn=Or);var dn,Zn=Mr[Qa].value,oa=Mr[zn].value,Vn=Math.abs(oa-Zn),Qn=aa||Vn,Kn=0;Qn>=S?Kn=Vn>=S&&Vn<=_?Vn:w:aa===C&&Qn>=T?Kn=Vn>=T&&Vn<=k?Vn:C:Qn>=D?Kn=Vn>=D&&Vn<=M?Vn:O:aa===P&&Qn>=P?Kn=P:Qn>=E?Kn=E:aa===I&&Qn>=I?Kn=I:aa===A&&Qn>=A&&(Kn=A),Kn>=Vn&&(Kn=Vn,dn=!0);var or=Zr+Kn;if(cl.rangebreaks&&Kn>0){for(var pa=0,Vr=0;Vr<84;Vr++){var Qr=(Vr+.5)/84;cl.maskBreaks(Zr*(1-Qr)+Qr*or)!==z&&pa++}(Kn*=pa/84)||(Mr[Or].drop=!0),dn&&Vn>P&&(Kn=Vn)}(Kn>0||Or===0)&&(Mr[Or].periodX=Zr+Kn/2)}}(Et,be,be._definedDelta),be.rangebreaks){var en=be._id.charAt(0)==="y",Nn=1;be.tickmode==="auto"&&(Nn=be.tickfont?be.tickfont.size:12);var An=NaN;for(Ve=Et.length-1;Ve>-1;Ve--)if(Et[Ve].drop)Et.splice(Ve,1);else{Et[Ve].value=$t(Et[Ve].value,be);var Wn=be.c2p(Et[Ve].value);(en?An>Wn-Nn:AnNt||qnNt&&(On.periodX=Nt),qn10||Ue.substr(5)!=="01-01"?be._tickround="d":be._tickround=+Me.substr(1)%12==0?"y":"m";else if(Me>=E&&Ze<=10||Me>=15*E)be._tickround="d";else if(Me>=F&&Ze<=16||Me>=A)be._tickround="M";else if(Me>=j&&Ze<=19||Me>=F)be._tickround="S";else{var Ye=be.l2r(Ve+Me).replace(/^-/,"").length;be._tickround=Math.max(Ze,Ye)-20,be._tickround<0&&(be._tickround=4)}}else if(u(Me)||Me.charAt(0)==="L"){var Qe=be.range.map(be.r2d||Number);u(Me)||(Me=Number(Me.substr(1))),be._tickround=2-Math.floor(Math.log(Me)/Math.LN10+.01);var rt=Math.max(Math.abs(Qe[0]),Math.abs(Qe[1])),ut=Math.floor(Math.log(rt)/Math.LN10+.01),gt=be.minexponent===void 0?3:be.minexponent;Math.abs(ut)>gt&&(Ne(be.exponentformat)&&!ze(ut)?be._tickexponent=3*Math.round((ut-1)/3):be._tickexponent=ut)}else be._tickround=null}function Re(be,Me,Ve){var Ue=be.tickfont||{};return{x:Me,dx:0,dy:0,text:Ve||"",fontSize:Ue.size,font:Ue.family,fontColor:Ue.color}}Q.autoTicks=function(be,Me,Ve){var Ue;function Ze(Nt){return Math.pow(Nt,Math.floor(Math.log(Me)/Math.LN10))}if(be.type==="date"){be.tick0=f.dateTick0(be.calendar,0);var Ye=2*Me;if(Ye>w)Me/=w,Ue=Ze(10),be.dtick="M"+12*Ae(Me,Ue,de);else if(Ye>O)Me/=O,be.dtick="M"+Ae(Me,1,_e);else if(Ye>E){if(be.dtick=Ae(Me,E,be._hasDayOfWeekBreaks?[1,2,7,14]:me),!Ve){var Qe=Q.getTickFormat(be),rt=be.ticklabelmode==="period";rt&&(be._rawTick0=be.tick0),/%[uVW]/.test(Qe)?be.tick0=f.dateTick0(be.calendar,2):be.tick0=f.dateTick0(be.calendar,1),rt&&(be._dowTick0=be.tick0)}}else Ye>A?be.dtick=Ae(Me,A,_e):Ye>F?be.dtick=Ae(Me,F,ue):Ye>j?be.dtick=Ae(Me,j,ue):(Ue=Ze(10),be.dtick=Ae(Me,Ue,de))}else if(be.type==="log"){be.tick0=0;var ut=f.simpleMap(be.range,be.r2l);if(be._isMinor&&(Me*=1.5),Me>.7)be.dtick=Math.ceil(Me);else if(Math.abs(ut[1]-ut[0])<1){var gt=1.5*Math.abs((ut[1]-ut[0])/Me);Me=Math.abs(Math.pow(10,ut[1])-Math.pow(10,ut[0]))/gt,Ue=Ze(10),be.dtick="L"+Ae(Me,Ue,de)}else be.dtick=Me>.3?"D2":"D1"}else be.type==="category"||be.type==="multicategory"?(be.tick0=0,be.dtick=Math.ceil(Math.max(Me,1))):ht(be)?(be.tick0=0,Ue=1,be.dtick=Ae(Me,Ue,Se)):(be.tick0=0,Ue=Ze(10),be.dtick=Ae(Me,Ue,de));if(be.dtick===0&&(be.dtick=1),!u(be.dtick)&&typeof be.dtick!="string"){var nt=be.dtick;throw be.dtick=1,"ax.dtick error: "+String(nt)}},Q.tickIncrement=function(be,Me,Ve,Ue){var Ze=Ve?-1:1;if(u(Me))return f.increment(be,Ze*Me);var Ye=Me.charAt(0),Qe=Ze*Number(Me.substr(1));if(Ye==="M")return f.incrementMonth(be,Qe,Ue);if(Ye==="L")return Math.log(Math.pow(10,be)+Qe)/Math.LN10;if(Ye==="D"){var rt=Me==="D2"?ye:xe,ut=be+.01*Ze,gt=f.roundUp(f.mod(ut,1),rt,Ve);return Math.floor(ut)+Math.log(s.round(Math.pow(10,gt),1))/Math.LN10}throw"unrecognized dtick "+String(Me)},Q.tickFirst=function(be,Me){var Ve=be.r2l||Number,Ue=f.simpleMap(be.range,Ve,void 0,void 0,Me),Ze=Ue[1] ")}else mt._prevDateHead=Tt,Pt+="
"+Tt;pt.text=Pt}(be,Ye,Ve,rt):ut==="log"?function(mt,pt,yt,qt,Rt){var jt=mt.dtick,Tt=pt.x,Pt=mt.tickformat,Ot=typeof jt=="string"&&jt.charAt(0);if(Rt==="never"&&(Rt=""),qt&&Ot!=="L"&&(jt="L3",Ot="L"),Pt||Ot==="L")pt.text=qe(Math.pow(10,Tt),mt,Rt,qt);else if(u(jt)||Ot==="D"&&f.mod(Tt+.01,1)<.1){var It=Math.round(Tt),Lt=Math.abs(It),zt=mt.exponentformat;zt==="power"||Ne(zt)&&ze(It)?(pt.text=It===0?1:It===1?"10":"10"+(It>1?"":B)+Lt+"",pt.fontSize*=1.25):(zt==="e"||zt==="E")&&Lt>2?pt.text="1"+zt+(It>0?"+":B)+Lt:(pt.text=qe(Math.pow(10,Tt),mt,"","fakehover"),jt==="D1"&&mt._id.charAt(0)==="y"&&(pt.dy-=pt.fontSize/6))}else{if(Ot!=="D")throw"unrecognized dtick "+String(jt);pt.text=String(Math.round(Math.pow(10,f.mod(Tt,1)))),pt.fontSize*=.75}if(mt.dtick==="D1"){var Xt=String(pt.text).charAt(0);Xt!=="0"&&Xt!=="1"||(mt._id.charAt(0)==="y"?pt.dx-=pt.fontSize/4:(pt.dy+=pt.fontSize/2,pt.dx+=(mt.range[1]>mt.range[0]?1:-1)*pt.fontSize*(Tt<0?.5:.25)))}}(be,Ye,0,rt,Ct):ut==="category"?function(mt,pt){var yt=mt._categories[Math.round(pt.x)];yt===void 0&&(yt=""),pt.text=String(yt)}(be,Ye):ut==="multicategory"?function(mt,pt,yt){var qt=Math.round(pt.x),Rt=mt._categories[qt]||[],jt=Rt[1]===void 0?"":String(Rt[1]),Tt=Rt[0]===void 0?"":String(Rt[0]);yt?pt.text=Tt+" - "+jt:(pt.text=jt,pt.text2=Tt)}(be,Ye,Ve):ht(be)?function(mt,pt,yt,qt,Rt){if(mt.thetaunit!=="radians"||yt)pt.text=qe(pt.x,mt,Rt,qt);else{var jt=pt.x/180;if(jt===0)pt.text="0";else{var Tt=function(Ot){function It(Kt,Bt){return Math.abs(Kt-Bt)<=1e-6}var Lt=function(Kt){for(var Bt=1;!It(Math.round(Kt*Bt)/Bt,Kt);)Bt*=10;return Bt}(Ot),zt=Ot*Lt,Xt=Math.abs(function Kt(Bt,Ut){return It(Ut,0)?Bt:Kt(Ut,Bt%Ut)}(zt,Lt));return[Math.round(zt/Xt),Math.round(Lt/Xt)]}(jt);if(Tt[1]>=100)pt.text=qe(f.deg2rad(pt.x),mt,Rt,qt);else{var Pt=pt.x<0;Tt[1]===1?Tt[0]===1?pt.text="π":pt.text=Tt[0]+"π":pt.text=["",Tt[0],"","⁄","",Tt[1],"","π"].join(""),Pt&&(pt.text=B+pt.text)}}}}(be,Ye,Ve,rt,Ct):function(mt,pt,yt,qt,Rt){Rt==="never"?Rt="":mt.showexponent==="all"&&Math.abs(pt.x/mt.dtick)<1e-6&&(Rt="hide"),pt.text=qe(pt.x,mt,Rt,qt)}(be,Ye,0,rt,Ct),Ue||(be.tickprefix&&!Gt(be.showtickprefix)&&(Ye.text=be.tickprefix+Ye.text),be.ticksuffix&&!Gt(be.showticksuffix)&&(Ye.text+=be.ticksuffix)),be.labelalias&&be.labelalias.hasOwnProperty(Ye.text)){var Ft=be.labelalias[Ye.text];typeof Ft=="string"&&(Ye.text=Ft)}if(be.tickson==="boundaries"||be.showdividers){var Et=function(mt){var pt=be.l2p(mt);return pt>=0&&pt<=be._length?mt:null};Ye.xbnd=[Et(Ye.x-.5),Et(Ye.x+be.dtick-.5)]}return Ye},Q.hoverLabelText=function(be,Me,Ve){Ve&&(be=f.extendFlat({},be,{hoverformat:Ve}));var Ue=Array.isArray(Me)?Me[0]:Me,Ze=Array.isArray(Me)?Me[1]:void 0;if(Ze!==void 0&&Ze!==Ue)return Q.hoverLabelText(be,Ue,Ve)+" - "+Q.hoverLabelText(be,Ze,Ve);var Ye=be.type==="log"&&Ue<=0,Qe=Q.tickText(be,be.c2l(Ye?-Ue:Ue),"hover").text;return Ye?Ue===0?"0":B+Qe:Qe};var Ie=["f","p","n","μ","m","","k","M","G","T"];function Ne(be){return be==="SI"||be==="B"}function ze(be){return be>14||be<-15}function qe(be,Me,Ve,Ue){var Ze=be<0,Ye=Me._tickround,Qe=Ve||Me.exponentformat||"B",rt=Me._tickexponent,ut=Q.getTickFormat(Me),gt=Me.separatethousands;if(Ue){var nt={exponentformat:Qe,minexponent:Me.minexponent,dtick:Me.showexponent==="none"?Me.dtick:u(be)&&Math.abs(be)||1,range:Me.showexponent==="none"?Me.range.map(Me.r2d):[0,be||1]};Le(nt),Ye=(Number(nt._tickround)||0)+4,rt=nt._tickexponent,Me.hoverformat&&(ut=Me.hoverformat)}if(ut)return Me._numFormat(ut)(be).replace(/-/g,B);var Nt,Gt=Math.pow(10,-Ye)/2;if(Qe==="none"&&(rt=0),(be=Math.abs(be))"+Nt+"":Qe==="B"&&rt===9?be+="B":Ne(Qe)&&(be+=Ie[rt/3+5])),Ze?B+be:be}function We(be,Me){if(be){var Ve=Object.keys(W).reduce(function(Ue,Ze){return Me.indexOf(Ze)!==-1&&W[Ze].forEach(function(Ye){Ue[Ye]=1}),Ue},{});Object.keys(be).forEach(function(Ue){Ve[Ue]||(Ue.length===1?be[Ue]=0:delete be[Ue])})}}function Ge(be,Me){for(var Ve=[],Ue={},Ze=0;Ze1&&Ve=Ze.min&&be=0,pt=nt(Gt,Ct[1])<=0;return(Ft||mt)&&(Et||pt)}if(be.tickformatstops&&be.tickformatstops.length>0)switch(be.type){case"date":case"linear":for(Me=0;Me=Qe(Ze)))){Ve=Ue;break}break;case"log":for(Me=0;Me=0&&Ze.unshift(Ze.splice(gt,1).shift())}});var Qe={false:{left:0,right:0}};return f.syncOrAsync(Ze.map(function(rt){return function(){if(rt){var ut=Q.getFromId(be,rt);Ve||(Ve={}),Ve.axShifts=Qe,Ve.overlayingShiftedAx=Ye;var gt=Q.drawOne(be,ut,Ve);return ut._shiftPusher&&wt(ut,ut._fullDepth||0,Qe,!0),ut._r=ut.range.slice(),ut._rl=f.simpleMap(ut._r,ut.r2l),gt}}}))},Q.drawOne=function(be,Me,Ve){var Ue,Ze,Ye,Qe=(Ve=Ve||{}).axShifts||{},rt=Ve.overlayingShiftedAx||[];Me.setScale();var ut=be._fullLayout,gt=Me._id,nt=gt.charAt(0),Nt=Q.counterLetter(gt),Gt=ut._plots[Me._mainSubplot];if(Gt){if(Me._shiftPusher=Me.autoshift||rt.indexOf(Me._id)!==-1||rt.indexOf(Me.overlaying)!==-1,Me._shiftPusher&Me.anchor==="free"){var Ct=Me.linewidth/2||0;Me.ticks==="inside"&&(Ct+=Me.ticklen),wt(Me,Ct,Qe,!0),wt(Me,Me.shift||0,Qe,!1)}Ve.skipTitle===!0&&Me._shift!==void 0||(Me._shift=function(zn,dn){return zn.autoshift?dn[zn.overlaying][zn.side]:zn.shift||0}(Me,Qe));var Ft=Gt[nt+"axislayer"],Et=Me._mainLinePosition,mt=Et+=Me._shift,pt=Me._mainMirrorPosition,yt=Me._vals=Q.calcTicks(Me),qt=[Me.mirror,mt,pt].join("_");for(Ue=0;Ue0?zn.bottom-Kn:0,or))));var pa=0,Vr=0;if(Me._shiftPusher&&(pa=Math.max(or,zn.height>0?Vn==="l"?Kn-zn.left:zn.right-Kn:0),Me.title.text!==ut._dfltTitle[nt]&&(Vr=(Me._titleStandoff||0)+(Me._titleScoot||0),Vn==="l"&&(Vr+=st(Me))),Me._fullDepth=Math.max(pa,Vr)),Me.automargin){dn={x:0,y:0,r:0,l:0,t:0,b:0};var Qr=[0,1],mi=typeof Me._shift=="number"?Me._shift:0;if(nt==="x"){if(Vn==="b"?dn[Vn]=Me._depth:(dn[Vn]=Me._depth=Math.max(zn.width>0?Kn-zn.top:0,or),Qr.reverse()),zn.width>0){var Ao=zn.right-(Me._offset+Me._length);Ao>0&&(dn.xr=1,dn.r=Ao);var Ja=Me._offset-zn.left;Ja>0&&(dn.xl=0,dn.l=Ja)}}else if(Vn==="l"?(Me._depth=Math.max(zn.height>0?Kn-zn.left:0,or),dn[Vn]=Me._depth-mi):(Me._depth=Math.max(zn.height>0?zn.right-Kn:0,or),dn[Vn]=Me._depth+mi,Qr.reverse()),zn.height>0){var Dn=zn.bottom-(Me._offset+Me._length);Dn>0&&(dn.yb=0,dn.b=Dn);var ia=Me._offset-zn.top;ia>0&&(dn.yt=1,dn.t=ia)}dn[Nt]=Me.anchor==="free"?Me.position:Me._anchorAxis.domain[Qr[0]],Me.title.text!==ut._dfltTitle[nt]&&(dn[Vn]+=st(Me)+(Me.title.standoff||0)),Me.mirror&&Me.anchor!=="free"&&((Zn={x:0,y:0,r:0,l:0,t:0,b:0})[Qn]=Me.linewidth,Me.mirror&&Me.mirror!==!0&&(Zn[Qn]+=or),Me.mirror===!0||Me.mirror==="ticks"?Zn[Nt]=Me._anchorAxis.domain[Qr[1]]:Me.mirror!=="all"&&Me.mirror!=="allticks"||(Zn[Nt]=[Me._counterDomainMin,Me._counterDomainMax][Qr[1]]))}Zr&&(oa=d.getComponentMethod("rangeslider","autoMarginOpts")(be,Me)),typeof Me.automargin=="string"&&(We(dn,Me.automargin),We(Zn,Me.automargin)),c.autoMargin(be,je(Me),dn),c.autoMargin(be,tt(Me),Zn),c.autoMargin(be,it(Me),oa)}),f.syncOrAsync(aa)}}function Qa(zn){var dn=gt+(zn||"tick");return Rt[dn]||(Rt[dn]=function(Zn,oa){var Vn,Qn,Kn,or;return Zn._selections[oa].size()?(Vn=1/0,Qn=-1/0,Kn=1/0,or=-1/0,Zn._selections[oa].each(function(){var pa=Be(this),Vr=v.bBox(pa.node().parentNode);Vn=Math.min(Vn,Vr.top),Qn=Math.max(Qn,Vr.bottom),Kn=Math.min(Kn,Vr.left),or=Math.max(or,Vr.right)})):(Vn=0,Qn=0,Kn=0,or=0),{top:Vn,bottom:Qn,left:Kn,right:or,height:Qn-Vn,width:or-Kn}}(Me,dn)),Rt[dn]}},Q.getTickSigns=function(be,Me){var Ve=be._id.charAt(0),Ue={x:"top",y:"right"}[Ve],Ze=be.side===Ue?1:-1,Ye=[-1,1,Ze,-Ze];return(Me?(be.minor||{}).ticks:be.ticks)!=="inside"==(Ve==="x")&&(Ye=Ye.map(function(Qe){return-Qe})),be.side&&Ye.push({l:-1,t:-1,r:1,b:1}[be.side.charAt(0)]),Ye},Q.makeTransTickFn=function(be){return be._id.charAt(0)==="x"?function(Me){return p(be._offset+be.l2p(Me.x),0)}:function(Me){return p(0,be._offset+be.l2p(Me.x))}},Q.makeTransTickLabelFn=function(be){var Me=function(Ze){var Ye=Ze.ticklabelposition||"",Qe=function(pt){return Ye.indexOf(pt)!==-1},rt=Qe("top"),ut=Qe("left"),gt=Qe("right"),nt=Qe("bottom"),Nt=Qe("inside"),Gt=nt||ut||rt||gt;if(!Gt&&!Nt)return[0,0];var Ct=Ze.side,Ft=Gt?(Ze.tickwidth||0)/2:0,Et=3,mt=Ze.tickfont?Ze.tickfont.size:12;return(nt||rt)&&(Ft+=mt*te,Et+=(Ze.linewidth||0)/2),(ut||gt)&&(Ft+=(Ze.linewidth||0)/2,Et+=3),Nt&&Ct==="top"&&(Et-=mt*(1-te)),(ut||rt)&&(Ft=-Ft),Ct!=="bottom"&&Ct!=="right"||(Et=-Et),[Gt?Ft:0,Nt?Et:0]}(be),Ve=Me[0],Ue=Me[1];return be._id.charAt(0)==="x"?function(Ze){return p(Ve+be._offset+be.l2p(ot(Ze)),Ue)}:function(Ze){return p(Ue,Ve+be._offset+be.l2p(ot(Ze)))}},Q.makeTickPath=function(be,Me,Ve,Ue){Ue||(Ue={});var Ze=Ue.minor;if(Ze&&!be.minor)return"";var Ye=Ue.len!==void 0?Ue.len:Ze?be.minor.ticklen:be.ticklen,Qe=be._id.charAt(0),rt=(be.linewidth||1)/2;return Qe==="x"?"M0,"+(Me+rt*Ve)+"v"+Ye*Ve:"M"+(Me+rt*Ve)+",0h"+Ye*Ve},Q.makeLabelFns=function(be,Me,Ve){var Ue=be.ticklabelposition||"",Ze=function(zt){return Ue.indexOf(zt)!==-1},Ye=Ze("top"),Qe=Ze("left"),rt=Ze("right"),ut=Ze("bottom")||Qe||Ye||rt,gt=Ze("inside"),nt=Ue==="inside"&&be.ticks==="inside"||!gt&&be.ticks==="outside"&&be.tickson!=="boundaries",Nt=0,Gt=0,Ct=nt?be.ticklen:0;if(gt?Ct*=-1:ut&&(Ct=0),nt&&(Nt+=Ct,Ve)){var Ft=f.deg2rad(Ve);Nt=Ct*Math.cos(Ft)+1,Gt=Ct*Math.sin(Ft)}be.showticklabels&&(nt||be.showline)&&(Nt+=.2*be.tickfont.size);var Et,mt,pt,yt,qt,Rt={labelStandoff:Nt+=(be.linewidth||1)/2*(gt?-1:1),labelShift:Gt},jt=0,Tt=be.side,Pt=be._id.charAt(0),Ot=be.tickangle;if(Pt==="x")yt=(qt=!gt&&Tt==="bottom"||gt&&Tt==="top")?1:-1,gt&&(yt*=-1),Et=Gt*yt,mt=Me+Nt*yt,pt=qt?1:-.2,Math.abs(Ot)===90&&(gt?pt+=G:pt=Ot===-90&&Tt==="bottom"?te:Ot===90&&Tt==="top"?G:.5,jt=G/2*(Ot/90)),Rt.xFn=function(zt){return zt.dx+Et+jt*zt.fontSize},Rt.yFn=function(zt){return zt.dy+mt+zt.fontSize*pt},Rt.anchorFn=function(zt,Xt){if(ut){if(Qe)return"end";if(rt)return"start"}return u(Xt)&&Xt!==0&&Xt!==180?Xt*yt<0!==gt?"end":"start":"middle"},Rt.heightFn=function(zt,Xt,Kt){return Xt<-60||Xt>60?-.5*Kt:be.side==="top"!==gt?-Kt:0};else if(Pt==="y"){if(yt=(qt=!gt&&Tt==="left"||gt&&Tt==="right")?1:-1,gt&&(yt*=-1),Et=Nt,mt=Gt*yt,pt=0,gt||Math.abs(Ot)!==90||(pt=Ot===-90&&Tt==="left"||Ot===90&&Tt==="right"?te:.5),gt){var It=u(Ot)?+Ot:0;if(It!==0){var Lt=f.deg2rad(It);jt=Math.abs(Math.sin(Lt))*te*yt,pt=0}}Rt.xFn=function(zt){return zt.dx+Me-(Et+zt.fontSize*pt)*yt+jt*zt.fontSize},Rt.yFn=function(zt){return zt.dy+mt+zt.fontSize*G},Rt.anchorFn=function(zt,Xt){return u(Xt)&&Math.abs(Xt)===90?"middle":qt?"end":"start"},Rt.heightFn=function(zt,Xt,Kt){return be.side==="right"&&(Xt*=-1),Xt<-30?-Kt:Xt<30?-.5*Kt:0}}return Rt},Q.drawTicks=function(be,Me,Ve){Ve=Ve||{};var Ue=Me._id+"tick",Ze=[].concat(Me.minor&&Me.minor.ticks?Ve.vals.filter(function(Qe){return Qe.minor&&!Qe.noTick}):[]).concat(Me.ticks?Ve.vals.filter(function(Qe){return!Qe.minor&&!Qe.noTick}):[]),Ye=Ve.layer.selectAll("path."+Ue).data(Ze,Je);Ye.exit().remove(),Ye.enter().append("path").classed(Ue,1).classed("ticks",1).classed("crisp",Ve.crisp!==!1).each(function(Qe){return b.stroke(s.select(this),Qe.minor?Me.minor.tickcolor:Me.tickcolor)}).style("stroke-width",function(Qe){return v.crispRound(be,Qe.minor?Me.minor.tickwidth:Me.tickwidth,1)+"px"}).attr("d",Ve.path).style("display",null),Wt(Me,[Y]),Ye.attr("transform",Ve.transFn)},Q.drawGrid=function(be,Me,Ve){if(Ve=Ve||{},Me.tickmode!=="sync"){var Ue=Me._id+"grid",Ze=Me.minor&&Me.minor.showgrid,Ye=Ze?Ve.vals.filter(function(pt){return pt.minor}):[],Qe=Me.showgrid?Ve.vals.filter(function(pt){return!pt.minor}):[],rt=Ve.counterAxis;if(rt&&Q.shouldShowZeroLine(be,Me,rt))for(var ut=Me.tickmode==="array",gt=0;gt=0;Ft--){var Et=Ft?Gt:Ct;if(Et){var mt=Et.selectAll("path."+Ue).data(Ft?Qe:Ye,Je);mt.exit().remove(),mt.enter().append("path").classed(Ue,1).classed("crisp",Ve.crisp!==!1),mt.attr("transform",Ve.transFn).attr("d",Ve.path).each(function(pt){return b.stroke(s.select(this),pt.minor?Me.minor.gridcolor:Me.gridcolor||"#ddd")}).style("stroke-dasharray",function(pt){return v.dashStyle(pt.minor?Me.minor.griddash:Me.griddash,pt.minor?Me.minor.gridwidth:Me.gridwidth)}).style("stroke-width",function(pt){return(pt.minor?Nt:Me._gw)+"px"}).style("display",null),typeof Ve.path=="function"&&mt.attr("d",Ve.path)}}Wt(Me,[R,q])}},Q.drawZeroLine=function(be,Me,Ve){Ve=Ve||Ve;var Ue=Me._id+"zl",Ze=Q.shouldShowZeroLine(be,Me,Ve.counterAxis),Ye=Ve.layer.selectAll("path."+Ue).data(Ze?[{x:0,id:Me._id}]:[]);Ye.exit().remove(),Ye.enter().append("path").classed(Ue,1).classed("zl",1).classed("crisp",Ve.crisp!==!1).each(function(){Ve.layer.selectAll("path").sort(function(Qe,rt){return K(Qe.id,rt.id)})}),Ye.attr("transform",Ve.transFn).attr("d",Ve.path).call(b.stroke,Me.zerolinecolor||b.defaultLine).style("stroke-width",v.crispRound(be,Me.zerolinewidth,Me._gw||1)+"px").style("display",null),Wt(Me,[N])},Q.drawLabels=function(be,Me,Ve){Ve=Ve||{};var Ue=be._fullLayout,Ze=Me._id,Ye=Ze.charAt(0),Qe=Ve.cls||Ze+"tick",rt=Ve.vals.filter(function(yt){return yt.text}),ut=Ve.labelFns,gt=Ve.secondary?0:Me.tickangle,nt=(Me._prevTickAngles||{})[Qe],Nt=Ve.layer.selectAll("g."+Qe).data(Me.showticklabels?rt:[],Je),Gt=[];function Ct(yt,qt){yt.each(function(Rt){var jt=s.select(this),Tt=jt.select(".text-math-group"),Pt=ut.anchorFn(Rt,qt),Ot=Ve.transFn.call(jt.node(),Rt)+(u(qt)&&+qt!=0?" rotate("+qt+","+ut.xFn(Rt)+","+(ut.yFn(Rt)-Rt.fontSize/2)+")":""),It=h.lineCount(jt),Lt=ee*Rt.fontSize,zt=ut.heightFn(Rt,u(qt)?+qt:0,(It-1)*Lt);if(zt&&(Ot+=p(0,zt)),Tt.empty()){var Xt=jt.select("text");Xt.attr({transform:Ot,"text-anchor":Pt}),Xt.style("opacity",1),Me._adjustTickLabelsOverflow&&Me._adjustTickLabelsOverflow()}else{var Kt=v.bBox(Tt.node()).width*{end:-.5,start:.5}[Pt];Tt.attr("transform",Ot+p(Kt,0))}})}Nt.enter().append("g").classed(Qe,1).append("text").attr("text-anchor","middle").each(function(yt){var qt=s.select(this),Rt=be._promises.length;qt.call(h.positionText,ut.xFn(yt),ut.yFn(yt)).call(v.font,yt.font,yt.fontSize,yt.fontColor).text(yt.text).call(h.convertToTspans,be),be._promises[Rt]?Gt.push(be._promises.pop().then(function(){Ct(qt,gt)})):Ct(qt,gt)}),Wt(Me,[L]),Nt.exit().remove(),Ve.repositionOnUpdate&&Nt.each(function(yt){s.select(this).select("text").call(h.positionText,ut.xFn(yt),ut.yFn(yt))}),Me._adjustTickLabelsOverflow=function(){var yt=Me.ticklabeloverflow;if(yt&&yt!=="allow"){var qt=yt.indexOf("hide")!==-1,Rt=Me._id.charAt(0)==="x",jt=0,Tt=Rt?be._fullLayout.width:be._fullLayout.height;if(yt.indexOf("domain")!==-1){var Pt=f.simpleMap(Me.range,Me.r2l);jt=Me.l2p(Pt[0])+Me._offset,Tt=Me.l2p(Pt[1])+Me._offset}var Ot=Math.min(jt,Tt),It=Math.max(jt,Tt),Lt=Me.side,zt=1/0,Xt=-1/0;for(var Kt in Nt.each(function(on){var yn=s.select(this);if(yn.select(".text-math-group").empty()){var pn=v.bBox(yn.node()),cn=0;Rt?(pn.right>It||pn.leftIt||pn.top+(Me.tickangle?0:on.fontSize/4)Me["_visibleLabelMin_"+Pt._id]?Ut.style("display","none"):It.K!=="tick"||Ot||Ut.style("display",null)})})})})},Ct(Nt,nt+1?nt:gt);var Ft=null;Me._selections&&(Me._selections[Qe]=Nt);var Et=[function(){return Gt.length&&Promise.all(Gt)}];Me.automargin&&Ue._redrawFromAutoMarginCount&&nt===90?(Ft=90,Et.push(function(){Ct(Nt,nt)})):Et.push(function(){if(Ct(Nt,gt),rt.length&&Ye==="x"&&!u(gt)&&(Me.type!=="log"||String(Me.dtick).charAt(0)!=="D")){Ft=0;var yt,qt=0,Rt=[];if(Nt.each(function(yn){qt=Math.max(qt,yn.fontSize);var pn=Me.l2p(yn.x),cn=Be(this),hn=v.bBox(cn.node());Rt.push({top:0,bottom:10,height:10,left:pn-hn.width/2,right:pn+hn.width/2+2,width:hn.width+2})}),Me.tickson!=="boundaries"&&!Me.showdividers||Ve.secondary){var jt=rt.length,Tt=Math.abs((rt[jt-1].x-rt[0].x)*Me._m)/(jt-1),Pt=Me.ticklabelposition||"",Ot=function(yn){return Pt.indexOf(yn)!==-1},It=Ot("top"),Lt=Ot("left"),zt=Ot("right"),Xt=Ot("bottom")||Lt||It||zt?(Me.tickwidth||0)+6:0,Kt=Tt<2.5*qt||Me.type==="multicategory"||Me._name==="realaxis";for(yt=0;yt1)for(rt=1;rt2*E}(x,m))return"date";var C=y.autotypenumbers!=="strict";return function(T,M){for(var O=T.length,D=b(O),P=0,E=0,I={},A=0;A2*P}(x,C)?"category":function(T,M){for(var O=T.length,D=0;D=2){var I,A,F="";if(E.length===2){for(I=0;I<2;I++)if(A=T(E[I])){F=w;break}}var j=P("pattern",F);if(j===w)for(I=0;I<2;I++)(A=T(E[I]))&&(O.bounds[I]=E[I]=A-1);if(j)for(I=0;I<2;I++)switch(A=E[I],j){case w:if(!s(A)||(A=+A)!==Math.floor(A)||A<0||A>=7)return void(O.enabled=!1);O.bounds[I]=E[I]=A;break;case S:if(!s(A)||(A=+A)<0||A>24)return void(O.enabled=!1);O.bounds[I]=E[I]=A}if(D.autorange===!1){var B=D.range;if(B[0]B[1])return void(O.enabled=!1)}else if(E[0]>B[0]&&E[1]h?1:-1:+(d.substr(1)||1)-+(f.substr(1)||1)},o.ref2id=function(d){return!!/^[xyz]/.test(d)&&d.split(" ")[0]},o.isLinked=function(d,f){return c(f,d._axisMatchGroups)||c(f,d._axisConstraintGroups)}},15258:function(i){i.exports=function(o,a,s,u){if(a.type==="category"){var c,d=o.categoryarray,f=Array.isArray(d)&&d.length>0;f&&(c="array");var p,h=s("categoryorder",c);h==="array"&&(p=s("categoryarray")),f||h!=="array"||(h=a.categoryorder="trace"),h==="trace"?a._initialCategories=[]:h==="array"?a._initialCategories=p.slice():(p=function(g,b){var v,m,y,x=b.dataAttr||g._id.charAt(0),_={};if(b.axData)v=b.axData;else for(v=[],m=0;mT?M.substr(T):O.substr(C))+D:M+O+S*k:D}function _(S,k){for(var C=k._size,T=C.h/C.w,M={},O=Object.keys(S),D=0;Dh*B)||q){for(C=0;CV&&aeU&&(U=ae);E/=(U-ee)/(2*Q),ee=O.l2r(ee),U=O.l2r(U),O.range=O._input.range=H=0?Math.min(ae,.9):1/(1/Math.max(ae,-.3)+3.222))}function H(ae,ie,se,pe,ke){return ae.append("path").attr("class","zoombox").style({fill:ie>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",h(se,pe)).attr("d",ke+"Z")}function G(ae,ie,se){return ae.append("path").attr("class","zoombox-corners").style({fill:b.background,stroke:b.defaultLine,"stroke-width":1,opacity:0}).attr("transform",h(ie,se)).attr("d","M0,0Z")}function te(ae,ie,se,pe,ke,Ce){ae.attr("d",pe+"M"+se.l+","+se.t+"v"+se.h+"h"+se.w+"v-"+se.h+"h-"+se.w+"Z"),ee(ae,ie,ke,Ce)}function ee(ae,ie,se,pe){se||(ae.transition().style("fill",pe>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),ie.transition().style("opacity",1).duration(200))}function U(ae){s.select(ae).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Q(ae){z&&ae.data&&ae._context.showTips&&(u.notifier(u._(ae,"Double-click to zoom back out"),"long"),z=!1)}function V(ae){var ie=Math.floor(Math.min(ae.b-ae.t,ae.r-ae.l,B)/2);return"M"+(ae.l-3.5)+","+(ae.t-.5+ie)+"h3v"+-ie+"h"+ie+"v-3h-"+(ie+3)+"ZM"+(ae.r+3.5)+","+(ae.t-.5+ie)+"h-3v"+-ie+"h"+-ie+"v-3h"+(ie+3)+"ZM"+(ae.r+3.5)+","+(ae.b+.5-ie)+"h-3v"+ie+"h"+-ie+"v3h"+(ie+3)+"ZM"+(ae.l-3.5)+","+(ae.b+.5-ie)+"h3v"+ie+"h"+ie+"v3h-"+(ie+3)+"Z"}function X(ae,ie,se,pe,ke){for(var Ce,Oe,Pe,ce,we=!1,Z={},re={},de=(ke||{}).xaHash,_e=(ke||{}).yaHash,ue=0;ue=0)Ot._fullLayout._deactivateShape(Ot);else{var It=Ot._fullLayout.clickmode;if(U(Ot),Tt!==2||je||mt(),Be)It.indexOf("select")>-1&&I(Pt,Ot,de,_e,ie.id,Ue),It.indexOf("event")>-1&&m.click(Ot,Pt,ie.id);else if(Tt===1&&je){var Lt=Oe?we:ce,zt=Oe==="s"||Pe==="w"?0:1,Xt=Lt._name+".range["+zt+"]",Kt=function(on,yn){var pn,cn=on.range[yn],hn=Math.abs(cn-on.range[1-yn]);return on.type==="date"?cn:on.type==="log"?(pn=Math.ceil(Math.max(0,-Math.log(hn)/Math.LN10))+3,c("."+pn+"g")(Math.pow(10,cn))):(pn=Math.floor(Math.log(Math.abs(cn))/Math.LN10)-Math.floor(Math.log(hn)/Math.LN10)+4,c("."+String(pn)+"g")(cn))}(Lt,zt),Bt="left",Ut="middle";if(Lt.fixedrange)return;Oe?(Ut=Oe==="n"?"top":"bottom",Lt.side==="right"&&(Bt="right")):Pe==="e"&&(Bt="right"),Ot._context.showAxisRangeEntryBoxes&&s.select(St).call(g.makeEditable,{gd:Ot,immediate:!0,background:Ot._fullLayout.paper_bgcolor,text:String(Kt),fill:Lt.tickfont?Lt.tickfont.color:"#444",horizontalAlign:Bt,verticalAlign:Ut}).on("edit",function(on){var yn=Lt.d2r(on);yn!==void 0&&p.call("_guiRelayout",Ot,Xt,yn)})}}}function Qe(Tt,Pt){if(ae._transitioningWithDuration)return!1;var Ot=Math.max(0,Math.min(xe,Je*Tt+et)),It=Math.max(0,Math.min(ye,st*Pt+ct)),Lt=Math.abs(Ot-et),zt=Math.abs(It-ct);function Xt(){wt="",ht.r=ht.l,ht.t=ht.b,Me.attr("d","M0,0Z")}if(ht.l=Math.min(et,Ot),ht.r=Math.max(et,Ot),ht.t=Math.min(ct,It),ht.b=Math.max(ct,It),Se.isSubplotConstrained)Lt>B||zt>B?(wt="xy",Lt/xe>zt/ye?(zt=Lt*ye/xe,ct>It?ht.t=ct-zt:ht.b=ct+zt):(Lt=zt*xe/ye,et>Ot?ht.l=et-Lt:ht.r=et+Lt),Me.attr("d",V(ht))):Xt();else if(Ae.isSubplotConstrained)if(Lt>B||zt>B){wt="xy";var Kt=Math.min(ht.l/xe,(ye-ht.b)/ye),Bt=Math.max(ht.r/xe,(ye-ht.t)/ye);ht.l=Kt*xe,ht.r=Bt*xe,ht.b=(1-Kt)*ye,ht.t=(1-Bt)*ye,Me.attr("d",V(ht))}else Xt();else!Re||zt0){var Ut;if(Ae.isSubplotConstrained||!Le&&Re.length===1){for(Ut=0;Ut1&&(It.maxallowed!==void 0&&Ne===(It.range[0]1&&(Lt.maxallowed!==void 0&&ze===(Lt.range[0]O[1]-.000244140625&&(d.domain=g),u.noneOrAll(c.domain,d.domain,g),d.tickmode==="sync"&&(d.tickmode="auto")}return f("layer"),d}},89426:function(i,o,a){var s=a(59652);i.exports=function(u,c,d,f,p){p||(p={});var h=p.tickSuffixDflt,g=s(u);d("tickprefix")&&d("showtickprefix",g),d("ticksuffix",h)&&d("showticksuffix",g)}},23608:function(i,o,a){var s=a(23074);i.exports=function(u,c,d,f){var p=c._template||{},h=c.type||p.type||"-";d("minallowed"),d("maxallowed");var g,b=d("range"),v=c.getAutorangeDflt(b,f),m=d("autorange",v);!b||(b[0]!==null||b[1]!==null)&&(b[0]!==null&&b[1]!==null||m!=="reversed"&&m!==!0)&&(b[0]===null||m!=="min"&&m!=="max reversed")&&(b[1]===null||m!=="max"&&m!=="min reversed")||(b=void 0,delete c.range,c.autorange=!0,g=!0),g||(m=d("autorange",v=c.getAutorangeDflt(b,f))),m&&(s(d,m,b),h!=="linear"&&h!=="-"||d("rangemode")),c.cleanRange()}},42449:function(i,o,a){var s=a(18783).FROM_BL;i.exports=function(u,c,d){d===void 0&&(d=s[u.constraintoward||"center"]);var f=[u.r2l(u.range[0]),u.r2l(u.range[1])],p=f[0]+(f[1]-f[0])*d;u.range=u._input.range=[u.l2r(p+(f[0]-p)*c),u.l2r(p+(f[1]-p)*c)],u.setScale()}},21994:function(i,o,a){var s=a(39898),u=a(84096).g0,c=a(71828),d=c.numberFormat,f=a(92770),p=c.cleanNumber,h=c.ms2DateTime,g=c.dateTime2ms,b=c.ensureNumber,v=c.isArrayOrTypedArray,m=a(50606),y=m.FP_SAFE,x=m.BADNUM,_=m.LOG_CLIP,w=m.ONEWEEK,S=m.ONEDAY,k=m.ONEHOUR,C=m.ONEMIN,T=m.ONESEC,M=a(41675),O=a(85555),D=O.HOUR_PATTERN,P=O.WEEKDAY_PATTERN;function E(A){return Math.pow(10,A)}function I(A){return A!=null}i.exports=function(A,F){F=F||{};var j=A._id||"x",B=j.charAt(0);function z(X,K){if(X>0)return Math.log(X)/Math.LN10;if(X<=0&&K&&A.range&&A.range.length===2){var ne=A.range[0],ae=A.range[1];return .5*(ne+ae-2*_*Math.abs(ne-ae))}return x}function N(X,K,ne,ae){if((ae||{}).msUTC&&f(X))return+X;var ie=g(X,ne||A.calendar);if(ie===x){if(!f(X))return x;X=+X;var se=Math.floor(10*c.mod(X+.05,1)),pe=Math.round(X-se/10);ie=g(new Date(pe))+se/10}return ie}function R(X,K,ne){return h(X,K,ne||A.calendar)}function q(X){return A._categories[Math.round(X)]}function Y(X){if(I(X)){if(A._categoriesMap===void 0&&(A._categoriesMap={}),A._categoriesMap[X]!==void 0)return A._categoriesMap[X];A._categories.push(typeof X=="number"?String(X):X);var K=A._categories.length-1;return A._categoriesMap[X]=K,K}return x}function L(X){if(A._categoriesMap)return A._categoriesMap[X]}function W(X){var K=L(X);return K!==void 0?K:f(X)?+X:void 0}function H(X){return f(X)?+X:L(X)}function G(X,K,ne){return s.round(ne+K*X,2)}function te(X,K,ne){return(X-ne)/K}var ee=function(X){return f(X)?G(X,A._m,A._b):x},U=function(X){return te(X,A._m,A._b)};if(A.rangebreaks){var Q=B==="y";ee=function(X){if(!f(X))return x;var K=A._rangebreaks.length;if(!K)return G(X,A._m,A._b);var ne=Q;A.range[0]>A.range[1]&&(ne=!ne);for(var ae=ne?-1:1,ie=ae*X,se=0,pe=0;peCe)){se=ie<(ke+Ce)/2?pe:pe+1;break}se=pe+1}var Oe=A._B[se]||0;return isFinite(Oe)?G(X,A._m2,Oe):0},U=function(X){var K=A._rangebreaks.length;if(!K)return te(X,A._m,A._b);for(var ne=0,ae=0;aeA._rangebreaks[ae].pmax&&(ne=ae+1);return te(X,A._m2,A._B[ne])}}A.c2l=A.type==="log"?z:b,A.l2c=A.type==="log"?E:b,A.l2p=ee,A.p2l=U,A.c2p=A.type==="log"?function(X,K){return ee(z(X,K))}:ee,A.p2c=A.type==="log"?function(X){return E(U(X))}:U,["linear","-"].indexOf(A.type)!==-1?(A.d2r=A.r2d=A.d2c=A.r2c=A.d2l=A.r2l=p,A.c2d=A.c2r=A.l2d=A.l2r=b,A.d2p=A.r2p=function(X){return A.l2p(p(X))},A.p2d=A.p2r=U,A.cleanPos=b):A.type==="log"?(A.d2r=A.d2l=function(X,K){return z(p(X),K)},A.r2d=A.r2c=function(X){return E(p(X))},A.d2c=A.r2l=p,A.c2d=A.l2r=b,A.c2r=z,A.l2d=E,A.d2p=function(X,K){return A.l2p(A.d2r(X,K))},A.p2d=function(X){return E(U(X))},A.r2p=function(X){return A.l2p(p(X))},A.p2r=U,A.cleanPos=b):A.type==="date"?(A.d2r=A.r2d=c.identity,A.d2c=A.r2c=A.d2l=A.r2l=N,A.c2d=A.c2r=A.l2d=A.l2r=R,A.d2p=A.r2p=function(X,K,ne){return A.l2p(N(X,0,ne))},A.p2d=A.p2r=function(X,K,ne){return R(U(X),K,ne)},A.cleanPos=function(X){return c.cleanDate(X,x,A.calendar)}):A.type==="category"?(A.d2c=A.d2l=Y,A.r2d=A.c2d=A.l2d=q,A.d2r=A.d2l_noadd=W,A.r2c=function(X){var K=H(X);return K!==void 0?K:A.fraction2r(.5)},A.l2r=A.c2r=b,A.r2l=H,A.d2p=function(X){return A.l2p(A.r2c(X))},A.p2d=function(X){return q(U(X))},A.r2p=A.d2p,A.p2r=U,A.cleanPos=function(X){return typeof X=="string"&&X!==""?X:b(X)}):A.type==="multicategory"&&(A.r2d=A.c2d=A.l2d=q,A.d2r=A.d2l_noadd=W,A.r2c=function(X){var K=W(X);return K!==void 0?K:A.fraction2r(.5)},A.r2c_just_indices=L,A.l2r=A.c2r=b,A.r2l=W,A.d2p=function(X){return A.l2p(A.r2c(X))},A.p2d=function(X){return q(U(X))},A.r2p=A.d2p,A.p2r=U,A.cleanPos=function(X){return Array.isArray(X)||typeof X=="string"&&X!==""?X:b(X)},A.setupMultiCategory=function(X){var K,ne,ae=A._traceIndices,ie=A._matchGroup;if(ie&&A._categories.length===0){for(var se in ie)if(se!==j){var pe=F[M.id2name(se)];ae=ae.concat(pe._traceIndices)}}var ke=[[0,{}],[0,{}]],Ce=[];for(K=0;Kpe[1]&&(ae[se?0:1]=ne)}},A.cleanRange=function(X,K){A._cleanRange(X,K),A.limitRange(X)},A._cleanRange=function(X,K){K||(K={}),X||(X="range");var ne,ae,ie=c.nestedProperty(A,X).get();if(ae=(ae=A.type==="date"?c.dfltRange(A.calendar):B==="y"?O.DFLTRANGEY:A._name==="realaxis"?[0,1]:K.dfltRange||O.DFLTRANGEX).slice(),A.rangemode!=="tozero"&&A.rangemode!=="nonnegative"||(ae[0]=0),ie&&ie.length===2){var se=ie[0]===null,pe=ie[1]===null;for(A.type!=="date"||A.autorange||(ie[0]=c.cleanDate(ie[0],x,A.calendar),ie[1]=c.cleanDate(ie[1],x,A.calendar)),ne=0;ne<2;ne++)if(A.type==="date"){if(!c.isDateTime(ie[ne],A.calendar)){A[X]=ae;break}if(A.r2l(ie[0])===A.r2l(ie[1])){var ke=c.constrain(A.r2l(ie[0]),c.MIN_MS+1e3,c.MAX_MS-1e3);ie[0]=A.l2r(ke-1e3),ie[1]=A.l2r(ke+1e3);break}}else{if(!f(ie[ne])){if(se||pe||!f(ie[1-ne])){A[X]=ae;break}ie[ne]=ie[1-ne]*(ne?10:.1)}if(ie[ne]<-y?ie[ne]=-y:ie[ne]>y&&(ie[ne]=y),ie[0]===ie[1]){var Ce=Math.max(1,Math.abs(1e-6*ie[0]));ie[0]-=Ce,ie[1]+=Ce}}}else c.nestedProperty(A,X).set(ae)},A.setScale=function(X){var K=F._size;if(A.overlaying){var ne=M.getFromId({_fullLayout:F},A.overlaying);A.domain=ne.domain}var ae=X&&A._r?"_r":"range",ie=A.calendar;A.cleanRange(ae);var se,pe,ke=A.r2l(A[ae][0],ie),Ce=A.r2l(A[ae][1],ie),Oe=B==="y";if(Oe?(A._offset=K.t+(1-A.domain[1])*K.h,A._length=K.h*(A.domain[1]-A.domain[0]),A._m=A._length/(ke-Ce),A._b=-A._m*Ce):(A._offset=K.l+A.domain[0]*K.w,A._length=K.w*(A.domain[1]-A.domain[0]),A._m=A._length/(Ce-ke),A._b=-A._m*ke),A._rangebreaks=[],A._lBreaks=0,A._m2=0,A._B=[],A.rangebreaks&&(A._rangebreaks=A.locateBreaks(Math.min(ke,Ce),Math.max(ke,Ce)),A._rangebreaks.length)){for(se=0;seCe&&(Pe=!Pe),Pe&&A._rangebreaks.reverse();var ce=Pe?-1:1;for(A._m2=ce*A._length/(Math.abs(Ce-ke)-A._lBreaks),A._B.push(-A._m2*(Oe?Ce:ke)),se=0;seae&&(ae+=7,ieae&&(ae+=24,ie=ne&&ie=ne&&X=Ae.min&&(meAe.max&&(Ae.max=xe),ye=!1)}ye&&pe.push({min:me,max:xe})}};for(ne=0;neg.duration?(function(){for(var D={},P=0;P rect").call(d.setTranslate,0,0).call(d.setScale,1,1),C.plot.call(d.setTranslate,T._offset,M._offset).call(d.setScale,1,1);var O=C.plot.selectAll(".scatterlayer .trace");O.selectAll(".point").call(d.setPointGroupScale,1,1),O.selectAll(".textpoint").call(d.setTextPointsScale,1,1),O.call(d.hideOutsideRangePoints,C)}function k(C,T){var M=C.plotinfo,O=M.xaxis,D=M.yaxis,P=O._length,E=D._length,I=!!C.xr1,A=!!C.yr1,F=[];if(I){var j=c.simpleMap(C.xr0,O.r2l),B=c.simpleMap(C.xr1,O.r2l),z=j[1]-j[0],N=B[1]-B[0];F[0]=(j[0]*(1-T)+T*B[0]-j[0])/(j[1]-j[0])*P,F[2]=P*(1-T+T*N/z),O.range[0]=O.l2r(j[0]*(1-T)+T*B[0]),O.range[1]=O.l2r(j[1]*(1-T)+T*B[1])}else F[0]=0,F[2]=P;if(A){var R=c.simpleMap(C.yr0,D.r2l),q=c.simpleMap(C.yr1,D.r2l),Y=R[1]-R[0],L=q[1]-q[0];F[1]=(R[1]*(1-T)+T*q[1]-R[1])/(R[0]-R[1])*E,F[3]=E*(1-T+T*L/Y),D.range[0]=O.l2r(R[0]*(1-T)+T*q[0]),D.range[1]=D.l2r(R[1]*(1-T)+T*q[1])}else F[1]=0,F[3]=E;f.drawOne(p,O,{skipTitle:!0}),f.drawOne(p,D,{skipTitle:!0}),f.redrawComponents(p,[O._id,D._id]);var W=I?P/F[2]:1,H=A?E/F[3]:1,G=I?F[0]:0,te=A?F[1]:0,ee=I?F[0]/F[2]*P:0,U=A?F[1]/F[3]*E:0,Q=O._offset-ee,V=D._offset-U;M.clipRect.call(d.setTranslate,G,te).call(d.setScale,1/W,1/H),M.plot.call(d.setTranslate,Q,V).call(d.setScale,W,H),d.setPointGroupScale(M.zoomScalePts,1/W,1/H),d.setTextPointsScale(M.zoomScaleTxt,1/W,1/H)}f.redrawComponents(p)}},951:function(i,o,a){var s=a(73972).traceIs,u=a(4322);function c(f){return{v:"x",h:"y"}[f.orientation||"v"]}function d(f,p){var h=c(f),g=s(f,"box-violin"),b=s(f._fullInput||{},"candlestick");return g&&!b&&p===h&&f[h]===void 0&&f[h+"0"]===void 0}i.exports=function(f,p,h,g){h("autotypenumbers",g.autotypenumbersDflt),h("type",(g.splomStash||{}).type)==="-"&&(function(b,v){if(b.type==="-"){var m,y=b._id,x=y.charAt(0);y.indexOf("scene")!==-1&&(y=x);var _=function(D,P,E){for(var I=0;I0&&(A["_"+E+"axes"]||{})[P]||(A[E+"axis"]||E)===P&&(d(A,E)||(A[E]||[]).length||A[E+"0"]))return A}}(v,y,x);if(_)if(_.type!=="histogram"||x!=={v:"y",h:"x"}[_.orientation||"v"]){var w=x+"calendar",S=_[w],k={noMultiCategory:!s(_,"cartesian")||s(_,"noMultiCategory")};if(_.type==="box"&&_._hasPreCompStats&&x==={h:"x",v:"y"}[_.orientation||"v"]&&(k.noMultiCategory=!0),k.autotypenumbers=b.autotypenumbers,d(_,x)){var C=c(_),T=[];for(m=0;m0?".":"")+m;u.isPlainObject(y)?p(y,g,x,v+1):g(x,m,y)}})}o.manageCommandObserver=function(h,g,b,v){var m={},y=!0;g&&g._commandObserver&&(m=g._commandObserver),m.cache||(m.cache={}),m.lookupTable={};var x=o.hasSimpleAPICommandBindings(h,b,m.lookupTable);if(g&&g._commandObserver){if(x)return m;if(g._commandObserver.remove)return g._commandObserver.remove(),g._commandObserver=null,m}if(x){c(h,x,m.cache),m.check=function(){if(y){var S=c(h,x,m.cache);return S.changed&&v&&m.lookupTable[S.value]!==void 0&&(m.disable(),Promise.resolve(v({value:S.value,type:x.type,prop:x.prop,traces:x.traces,index:m.lookupTable[S.value]})).then(m.enable,m.enable)),S.changed}};for(var _=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],w=0;w<_.length;w++)h._internalOn(_[w],m.check);m.remove=function(){for(var S=0;S<_.length;S++)h._removeInternalListener(_[S],m.check)}}else u.log("Unable to automatically bind plot updates to API command"),m.lookupTable={},m.remove=function(){};return m.disable=function(){y=!1},m.enable=function(){y=!0},g&&(g._commandObserver=m),m},o.hasSimpleAPICommandBindings=function(h,g,b){var v,m,y=g.length;for(v=0;v=W.width-20?(te["text-anchor"]="start",te.x=5):(te["text-anchor"]="end",te.x=W._paper.attr("width")-7),H.attr(te);var ee=H.select(".js-link-to-tool"),U=H.select(".js-link-spacer"),Q=H.select(".js-sourcelinks");L._context.showSources&&L._context.showSources(L),L._context.showLink&&function(V,X){X.text("");var K=X.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(V._context.linkText+" »");if(V._context.sendData)K.on("click",function(){T.sendDataToCloud(V)});else{var ne=window.location.pathname.split("/"),ae=window.location.search;K.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+ne[2].split(".")[0]+"/"+ne[1]+ae})}}(L,ee),U.text(ee.text()&&Q.text()?" - ":"")}},T.sendDataToCloud=function(L){var W=(window.PLOTLYENV||{}).BASE_URL||L._context.plotlyServerURL;if(W){L.emit("plotly_beforeexport");var H=s.select(L).append("div").attr("id","hiddenform").style("display","none"),G=H.append("form").attr({action:W+"/external",method:"post",target:"_blank"});return G.append("input").attr({type:"text",name:"data"}).node().value=T.graphJson(L,!1,"keepdata"),G.node().submit(),H.remove(),L.emit("plotly_afterexport"),!1}};var D=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],P=["year","month","dayMonth","dayMonthYear"];function E(L,W){var H=L._context.locale;H||(H="en-US");var G=!1,te={};function ee(ne){for(var ae=!0,ie=0;ie1&&Z.length>1){for(f.getComponentMethod("grid","sizeDefaults")(U,ee),te=0;te15&&Z.length>15&&ee.shapes.length===0&&ee.images.length===0,T.linkSubplots(V,ee,Q,G),T.cleanPlot(V,ee,Q,G);var me=!(!G._has||!G._has("gl2d")),xe=!(!ee._has||!ee._has("gl2d")),ye=!(!G._has||!G._has("cartesian"))||me,Se=!(!ee._has||!ee._has("cartesian"))||xe;ye&&!Se?G._bgLayer.remove():Se&&!ye&&(ee._shouldCreateBgLayer=!0),G._zoomlayer&&!L._dragging&&y({_fullLayout:G}),function(Ie,Ne){var ze,qe=[];Ne.meta&&(ze=Ne._meta={meta:Ne.meta,layout:{meta:Ne.meta}});for(var We=0;We0){var X=1-2*U;G=Math.round(X*G),te=Math.round(X*te)}}var K=T.layoutAttributes.width.min,ne=T.layoutAttributes.height.min;G1,ie=!W.height&&Math.abs(H.height-te)>1;(ie||ae)&&(ae&&(H.width=G),ie&&(H.height=te)),L._initialAutoSize||(L._initialAutoSize={width:G,height:te}),T.sanitizeMargins(H)},T.supplyLayoutModuleDefaults=function(L,W,H,G){var te,ee,U,Q=f.componentsRegistry,V=W._basePlotModules,X=f.subplotsRegistry.cartesian;for(te in Q)(U=Q[te]).includeBasePlot&&U.includeBasePlot(L,W);for(var K in V.length||V.push(X),W._has("cartesian")&&(f.getComponentMethod("grid","contentDefaults")(L,W),X.finalizeSubplots(L,W)),W._subplots)W._subplots[K].sort(g.subplotSort);for(ee=0;ee1&&(H.l/=ke,H.r/=ke)}if(ae){var Ce=(H.t+H.b)/ae;Ce>1&&(H.t/=Ce,H.b/=Ce)}var Oe=H.xl!==void 0?H.xl:H.x,Pe=H.xr!==void 0?H.xr:H.x,ce=H.yt!==void 0?H.yt:H.y,we=H.yb!==void 0?H.yb:H.y;ie[W]={l:{val:Oe,size:H.l+pe},r:{val:Pe,size:H.r+pe},b:{val:we,size:H.b+pe},t:{val:ce,size:H.t+pe}},se[W]=1}else delete ie[W],delete se[W];if(!G._replotting)return T.doAutoMargin(L)}},T.doAutoMargin=function(L){var W=L._fullLayout,H=W.width,G=W.height;W._size||(W._size={}),B(W);var te=W._size,ee=W.margin,U={t:0,b:0,l:0,r:0},Q=g.extendFlat({},te),V=ee.l,X=ee.r,K=ee.t,ne=ee.b,ae=W._pushmargin,ie=W._pushmarginIds,se=W.minreducedwidth,pe=W.minreducedheight;if(ee.autoexpand!==!1){for(var ke in ae)ie[ke]||delete ae[ke];var Ce=L._fullLayout._reservedMargin;for(var Oe in Ce)for(var Pe in Ce[Oe]){var ce=Ce[Oe][Pe];U[Pe]=Math.max(U[Pe],ce)}for(var we in ae.base={l:{val:0,size:V},r:{val:1,size:X},t:{val:1,size:K},b:{val:0,size:ne}},U){var Z=0;for(var re in ae)re!=="base"&&d(ae[re][we].size)&&(Z=ae[re][we].size>Z?ae[re][we].size:Z);var de=Math.max(0,ee[we]-Z);U[we]=Math.max(0,U[we]-de)}for(var _e in ae){var ue=ae[_e].l||{},me=ae[_e].b||{},xe=ue.val,ye=ue.size,Se=me.val,Ae=me.size,Le=H-U.r-U.l,Re=G-U.t-U.b;for(var Ie in ae){if(d(ye)&&ae[Ie].r){var Ne=ae[Ie].r.val,ze=ae[Ie].r.size;if(Ne>xe){var qe=(ye*Ne+(ze-Le)*xe)/(Ne-xe),We=(ze*(1-xe)+(ye-Le)*(1-Ne))/(Ne-xe);qe+We>V+X&&(V=qe,X=We)}}if(d(Ae)&&ae[Ie].t){var Ge=ae[Ie].t.val,ot=ae[Ie].t.size;if(Ge>Se){var Je=(Ae*Ge+(ot-Re)*Se)/(Ge-Se),st=(ot*(1-Se)+(Ae-Re)*(1-Ge))/(Ge-Se);Je+st>ne+K&&(ne=Je,K=st)}}}}}var bt=g.constrain(H-ee.l-ee.r,2,se),Be=g.constrain(G-ee.t-ee.b,2,pe),je=Math.max(0,H-bt),tt=Math.max(0,G-Be);if(je){var it=(V+X)/je;it>1&&(V/=it,X/=it)}if(tt){var St=(ne+K)/tt;St>1&&(ne/=St,K/=St)}if(te.l=Math.round(V)+U.l,te.r=Math.round(X)+U.r,te.t=Math.round(K)+U.t,te.b=Math.round(ne)+U.b,te.p=Math.round(ee.pad),te.w=Math.round(H)-te.l-te.r,te.h=Math.round(G)-te.t-te.b,!W._replotting&&(T.didMarginChange(Q,te)||function(ct){if("_redrawFromAutoMarginCount"in ct._fullLayout)return!1;var ht=m.list(ct,"",!0);for(var $t in ht)if(ht[$t].autoshift||ht[$t].shift)return!0;return!1}(L))){"_redrawFromAutoMarginCount"in W?W._redrawFromAutoMarginCount++:W._redrawFromAutoMarginCount=1;var et=3*(1+Object.keys(ie).length);if(W._redrawFromAutoMarginCount0&&(L._transitioningWithDuration=!0),L._transitionData._interruptCallbacks.push(function(){G=!0}),H.redraw&&L._transitionData._interruptCallbacks.push(function(){return f.call("redraw",L)}),L._transitionData._interruptCallbacks.push(function(){L.emit("plotly_transitioninterrupted",[])});var Q=0,V=0;function X(){return Q++,function(){var K;V++,G||V!==Q||(K=U,L._transitionData&&(function(ne){if(ne)for(;ne.length;)ne.shift()}(L._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(H.redraw)return f.call("redraw",L)}).then(function(){L._transitioning=!1,L._transitioningWithDuration=!1,L.emit("plotly_transitioned",[])}).then(K)))}}H.runFn(X),setTimeout(X())})}],ee=g.syncOrAsync(te,L);return ee&&ee.then||(ee=Promise.resolve()),ee.then(function(){return L})}T.didMarginChange=function(L,W){for(var H=0;H1)return!0}return!1},T.graphJson=function(L,W,H,G,te,ee){(te&&W&&!L._fullData||te&&!W&&!L._fullLayout)&&T.supplyDefaults(L);var U=te?L._fullData:L.data,Q=te?L._fullLayout:L.layout,V=(L._transitionData||{})._frames;function X(ae,ie){if(typeof ae=="function")return ie?"_function_":null;if(g.isPlainObject(ae)){var se,pe={};return Object.keys(ae).sort().forEach(function(ke){if(["_","["].indexOf(ke.charAt(0))===-1)if(typeof ae[ke]!="function"){if(H==="keepdata"){if(ke.substr(ke.length-3)==="src")return}else if(H==="keepstream"){if(typeof(se=ae[ke+"src"])=="string"&&se.indexOf(":")>0&&!g.isPlainObject(ae.stream))return}else if(H!=="keepall"&&typeof(se=ae[ke+"src"])=="string"&&se.indexOf(":")>0)return;pe[ke]=X(ae[ke],ie)}else ie&&(pe[ke]="_function")}),pe}return Array.isArray(ae)?ae.map(function(ke){return X(ke,ie)}):g.isTypedArray(ae)?g.simpleMap(ae,g.identity):g.isJSDate(ae)?g.ms2DateTimeLocal(+ae):ae}var K={data:(U||[]).map(function(ae){var ie=X(ae);return W&&delete ie.fit,ie})};if(!W&&(K.layout=X(Q),te)){var ne=Q._size;K.layout.computed={margin:{b:ne.b,l:ne.l,r:ne.r,t:ne.t}}}return V&&(K.frames=X(V)),ee&&(K.config=X(L._context,!0)),G==="object"?K:JSON.stringify(K)},T.modifyFrames=function(L,W){var H,G,te,ee=L._transitionData._frames,U=L._transitionData._frameHash;for(H=0;H=0;ee--)if(we[ee].enabled){H._indexToPoints=we[ee]._indexToPoints;break}G&&G.calc&&(ce=G.calc(L,H))}Array.isArray(ce)&&ce[0]||(ce=[{x:v,y:v}]),ce[0].t||(ce[0].t={}),ce[0].trace=H,X[Oe]=ce}}for(q(U,Q,V),te=0;te0){for(var p=[],h=0;h=D&&(E.min=0,I.min=0,A.min=0,_.aaxis&&delete _.aaxis.min,_.baxis&&delete _.baxis.min,_.caxis&&delete _.caxis.min)}function x(_,w,S,k){var C=v[w._name];function T(I,A){return c.coerce(_,w,C,I,A)}T("uirevision",k.uirevision),w.type="linear";var M=T("color"),O=M!==C.color.dflt?M:S.font.color,D=w._name.charAt(0).toUpperCase(),P="Component "+D,E=T("title.text",P);w._hovertitle=E===P?E:D,c.coerceFont(T,"title.font",{family:S.font.family,size:c.bigFont(S.font.size),color:O}),T("min"),g(_,w,T,"linear"),p(_,w,T,"linear"),f(_,w,T,"linear"),h(_,w,T,{outerTicks:!0}),T("showticklabels")&&(c.coerceFont(T,"tickfont",{family:S.font.family,size:S.font.size,color:O}),T("tickangle"),T("tickformat")),b(_,w,T,{dfltColor:M,bgColor:S.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:C}),T("hoverformat"),T("layer")}i.exports=function(_,w,S){d(_,w,S,{type:"ternary",attributes:v,handleDefaults:y,font:w.font,paper_bgcolor:w.paper_bgcolor})}},64380:function(i,o,a){var s=a(39898),u=a(84267),c=a(73972),d=a(71828),f=d.strTranslate,p=d._,h=a(7901),g=a(91424),b=a(21994),v=a(1426).extendFlat,m=a(74875),y=a(89298),x=a(28569),_=a(30211),w=a(64505),S=w.freeMode,k=w.rectMode,C=a(92998),T=a(47322).prepSelect,M=a(47322).selectOnClick,O=a(47322).clearOutline,D=a(47322).clearSelectionsCache,P=a(85555);function E(q,Y){this.id=q.id,this.graphDiv=q.graphDiv,this.init(Y),this.makeFramework(Y),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}i.exports=E;var I=E.prototype;I.init=function(q){this.container=q._ternarylayer,this.defs=q._defs,this.layoutId=q._uid,this.traceHash={},this.layers={}},I.plot=function(q,Y){var L=this,W=Y[L.id],H=Y._size;L._hasClipOnAxisFalse=!1;for(var G=0;GA*ie?H=(G=ie)*A:G=(H=ae)/A,te=K*H/ae,ee=ne*G/ie,L=Y.l+Y.w*V-H/2,W=Y.t+Y.h*(1-X)-G/2,U.x0=L,U.y0=W,U.w=H,U.h=G,U.sum=se,U.xaxis={type:"linear",range:[pe+2*Ce-se,se-pe-2*ke],domain:[V-te/2,V+te/2],_id:"x"},b(U.xaxis,U.graphDiv._fullLayout),U.xaxis.setScale(),U.xaxis.isPtWithinRange=function(xe){return xe.a>=U.aaxis.range[0]&&xe.a<=U.aaxis.range[1]&&xe.b>=U.baxis.range[1]&&xe.b<=U.baxis.range[0]&&xe.c>=U.caxis.range[1]&&xe.c<=U.caxis.range[0]},U.yaxis={type:"linear",range:[pe,se-ke-Ce],domain:[X-ee/2,X+ee/2],_id:"y"},b(U.yaxis,U.graphDiv._fullLayout),U.yaxis.setScale(),U.yaxis.isPtWithinRange=function(){return!0};var Oe=U.yaxis.domain[0],Pe=U.aaxis=v({},q.aaxis,{range:[pe,se-ke-Ce],side:"left",tickangle:(+q.aaxis.tickangle||0)-30,domain:[Oe,Oe+ee*A],anchor:"free",position:0,_id:"y",_length:H});b(Pe,U.graphDiv._fullLayout),Pe.setScale();var ce=U.baxis=v({},q.baxis,{range:[se-pe-Ce,ke],side:"bottom",domain:U.xaxis.domain,anchor:"free",position:0,_id:"x",_length:H});b(ce,U.graphDiv._fullLayout),ce.setScale();var we=U.caxis=v({},q.caxis,{range:[se-pe-ke,Ce],side:"right",tickangle:(+q.caxis.tickangle||0)+30,domain:[Oe,Oe+ee*A],anchor:"free",position:0,_id:"y",_length:H});b(we,U.graphDiv._fullLayout),we.setScale();var Z="M"+L+","+(W+G)+"h"+H+"l-"+H/2+",-"+G+"Z";U.clipDef.select("path").attr("d",Z),U.layers.plotbg.select("path").attr("d",Z);var re="M0,"+G+"h"+H+"l-"+H/2+",-"+G+"Z";U.clipDefRelative.select("path").attr("d",re);var de=f(L,W);U.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",de),U.clipDefRelative.select("path").attr("transform",null);var _e=f(L-ce._offset,W+G);U.layers.baxis.attr("transform",_e),U.layers.bgrid.attr("transform",_e);var ue=f(L+H/2,W)+"rotate(30)"+f(0,-Pe._offset);U.layers.aaxis.attr("transform",ue),U.layers.agrid.attr("transform",ue);var me=f(L+H/2,W)+"rotate(-30)"+f(0,-we._offset);U.layers.caxis.attr("transform",me),U.layers.cgrid.attr("transform",me),U.drawAxes(!0),U.layers.aline.select("path").attr("d",Pe.showline?"M"+L+","+(W+G)+"l"+H/2+",-"+G:"M0,0").call(h.stroke,Pe.linecolor||"#000").style("stroke-width",(Pe.linewidth||0)+"px"),U.layers.bline.select("path").attr("d",ce.showline?"M"+L+","+(W+G)+"h"+H:"M0,0").call(h.stroke,ce.linecolor||"#000").style("stroke-width",(ce.linewidth||0)+"px"),U.layers.cline.select("path").attr("d",we.showline?"M"+(L+H/2)+","+W+"l"+H/2+","+G:"M0,0").call(h.stroke,we.linecolor||"#000").style("stroke-width",(we.linewidth||0)+"px"),U.graphDiv._context.staticPlot||U.initInteractions(),g.setClipUrl(U.layers.frontplot,U._hasClipOnAxisFalse?null:U.clipId,U.graphDiv)},I.drawAxes=function(q){var Y=this,L=Y.graphDiv,W=Y.id.substr(7)+"title",H=Y.layers,G=Y.aaxis,te=Y.baxis,ee=Y.caxis;if(Y.drawAx(G),Y.drawAx(te),Y.drawAx(ee),q){var U=Math.max(G.showticklabels?G.tickfont.size/2:0,(ee.showticklabels?.75*ee.tickfont.size:0)+(ee.ticks==="outside"?.87*ee.ticklen:0)),Q=(te.showticklabels?te.tickfont.size:0)+(te.ticks==="outside"?te.ticklen:0)+3;H["a-title"]=C.draw(L,"a"+W,{propContainer:G,propName:Y.id+".aaxis.title",placeholder:p(L,"Click to enter Component A title"),attributes:{x:Y.x0+Y.w/2,y:Y.y0-G.title.font.size/3-U,"text-anchor":"middle"}}),H["b-title"]=C.draw(L,"b"+W,{propContainer:te,propName:Y.id+".baxis.title",placeholder:p(L,"Click to enter Component B title"),attributes:{x:Y.x0-Q,y:Y.y0+Y.h+.83*te.title.font.size+Q,"text-anchor":"middle"}}),H["c-title"]=C.draw(L,"c"+W,{propContainer:ee,propName:Y.id+".caxis.title",placeholder:p(L,"Click to enter Component C title"),attributes:{x:Y.x0+Y.w+Q,y:Y.y0+Y.h+.83*ee.title.font.size+Q,"text-anchor":"middle"}})}},I.drawAx=function(q){var Y,L=this,W=L.graphDiv,H=q._name,G=H.charAt(0),te=q._id,ee=L.layers[H],U=G+"tickLayout",Q=(Y=q).ticks+String(Y.ticklen)+String(Y.showticklabels);L[U]!==Q&&(ee.selectAll("."+te+"tick").remove(),L[U]=Q),q.setScale();var V=y.calcTicks(q),X=y.clipEnds(q,V),K=y.makeTransTickFn(q),ne=y.getTickSigns(q)[2],ae=d.deg2rad(30),ie=ne*(q.linewidth||1)/2,se=ne*q.ticklen,pe=L.w,ke=L.h,Ce=G==="b"?"M0,"+ie+"l"+Math.sin(ae)*se+","+Math.cos(ae)*se:"M"+ie+",0l"+Math.cos(ae)*se+","+-Math.sin(ae)*se,Oe={a:"M0,0l"+ke+",-"+pe/2,b:"M0,0l-"+pe/2+",-"+ke,c:"M0,0l-"+ke+","+pe/2}[G];y.drawTicks(W,q,{vals:q.ticks==="inside"?X:V,layer:ee,path:Ce,transFn:K,crisp:!1}),y.drawGrid(W,q,{vals:X,layer:L.layers[G+"grid"],path:Oe,transFn:K,crisp:!1}),y.drawLabels(W,q,{vals:V,layer:ee,transFn:K,labelFns:y.makeLabelFns(q,0,30)})};var F=P.MINZOOM/2+.87,j="m-0.87,.5h"+F+"v3h-"+(F+5.2)+"l"+(F/2+2.6)+",-"+(.87*F+4.5)+"l2.6,1.5l-"+F/2+","+.87*F+"Z",B="m0.87,.5h-"+F+"v3h"+(F+5.2)+"l-"+(F/2+2.6)+",-"+(.87*F+4.5)+"l-2.6,1.5l"+F/2+","+.87*F+"Z",z="m0,1l"+F/2+","+.87*F+"l2.6,-1.5l-"+(F/2+2.6)+",-"+(.87*F+4.5)+"l-"+(F/2+2.6)+","+(.87*F+4.5)+"l2.6,1.5l"+F/2+",-"+.87*F+"Z",N=!0;function R(q){s.select(q).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}I.clearOutline=function(){D(this.dragOptions),O(this.dragOptions.gd)},I.initInteractions=function(){var q,Y,L,W,H,G,te,ee,U,Q,V,X,K=this,ne=K.layers.plotbg.select("path").node(),ae=K.graphDiv,ie=ae._fullLayout._zoomlayer;function se(re){var de={};return de[K.id+".aaxis.min"]=re.a,de[K.id+".baxis.min"]=re.b,de[K.id+".caxis.min"]=re.c,de}function pe(re,de){var _e=ae._fullLayout.clickmode;R(ae),re===2&&(ae.emit("plotly_doubleclick",null),c.call("_guiRelayout",ae,se({a:0,b:0,c:0}))),_e.indexOf("select")>-1&&re===1&&M(de,ae,[K.xaxis],[K.yaxis],K.id,K.dragOptions),_e.indexOf("event")>-1&&_.click(ae,de,K.id)}function ke(re,de){return 1-de/K.h}function Ce(re,de){return 1-(re+(K.h-de)/Math.sqrt(3))/K.w}function Oe(re,de){return(re-(K.h-de)/Math.sqrt(3))/K.w}function Pe(re,de){var _e=L+re*q,ue=W+de*Y,me=Math.max(0,Math.min(1,ke(0,W),ke(0,ue))),xe=Math.max(0,Math.min(1,Ce(L,W),Ce(_e,ue))),ye=Math.max(0,Math.min(1,Oe(L,W),Oe(_e,ue))),Se=(me/2+ye)*K.w,Ae=(1-me/2-xe)*K.w,Le=(Se+Ae)/2,Re=Ae-Se,Ie=(1-me)*K.h,Ne=Ie-Re/A;Re.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),X.transition().style("opacity",1).duration(200),Q=!0),ae.emit("plotly_relayouting",se(te))}function ce(){R(ae),te!==H&&(c.call("_guiRelayout",ae,se(te)),N&&ae.data&&ae._context.showTips&&(d.notifier(p(ae,"Double-click to zoom back out"),"long"),N=!1))}function we(re,de){var _e=re/K.xaxis._m,ue=de/K.yaxis._m,me=[(te={a:H.a-ue,b:H.b+(_e+ue)/2,c:H.c-(_e-ue)/2}).a,te.b,te.c].sort(d.sorterAsc),xe=me.indexOf(te.a),ye=me.indexOf(te.b),Se=me.indexOf(te.c);me[0]<0&&(me[1]+me[0]/2<0?(me[2]+=me[0]+me[1],me[0]=me[1]=0):(me[2]+=me[0]/2,me[1]+=me[0]/2,me[0]=0),te={a:me[xe],b:me[ye],c:me[Se]},de=(H.a-te.a)*K.yaxis._m,re=(H.c-te.c-H.b+te.b)*K.xaxis._m);var Ae=f(K.x0+re,K.y0+de);K.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Ae);var Le=f(-re,-de);K.clipDefRelative.select("path").attr("transform",Le),K.aaxis.range=[te.a,K.sum-te.b-te.c],K.baxis.range=[K.sum-te.a-te.c,te.b],K.caxis.range=[K.sum-te.a-te.b,te.c],K.drawAxes(!1),K._hasClipOnAxisFalse&&K.plotContainer.select(".scatterlayer").selectAll(".trace").call(g.hideOutsideRangePoints,K),ae.emit("plotly_relayouting",se(te))}function Z(){c.call("_guiRelayout",ae,se(te))}this.dragOptions={element:ne,gd:ae,plotinfo:{id:K.id,domain:ae._fullLayout[K.id].domain,xaxis:K.xaxis,yaxis:K.yaxis},subplot:K.id,prepFn:function(re,de,_e){K.dragOptions.xaxes=[K.xaxis],K.dragOptions.yaxes=[K.yaxis],q=ae._fullLayout._invScaleX,Y=ae._fullLayout._invScaleY;var ue=K.dragOptions.dragmode=ae._fullLayout.dragmode;S(ue)?K.dragOptions.minDrag=1:K.dragOptions.minDrag=void 0,ue==="zoom"?(K.dragOptions.moveFn=Pe,K.dragOptions.clickFn=pe,K.dragOptions.doneFn=ce,function(me,xe,ye){var Se=ne.getBoundingClientRect();L=xe-Se.left,W=ye-Se.top,ae._fullLayout._calcInverseTransform(ae);var Ae=ae._fullLayout._invTransform,Le=d.apply3DTransform(Ae)(L,W);L=Le[0],W=Le[1],H={a:K.aaxis.range[0],b:K.baxis.range[1],c:K.caxis.range[1]},te=H,G=K.aaxis.range[1]-H.a,ee=u(K.graphDiv._fullLayout[K.id].bgcolor).getLuminance(),U="M0,"+K.h+"L"+K.w/2+", 0L"+K.w+","+K.h+"Z",Q=!1,V=ie.append("path").attr("class","zoombox").attr("transform",f(K.x0,K.y0)).style({fill:ee>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",U),X=ie.append("path").attr("class","zoombox-corners").attr("transform",f(K.x0,K.y0)).style({fill:h.background,stroke:h.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),K.clearOutline(ae)}(0,de,_e)):ue==="pan"?(K.dragOptions.moveFn=we,K.dragOptions.clickFn=pe,K.dragOptions.doneFn=Z,H={a:K.aaxis.range[0],b:K.baxis.range[1],c:K.caxis.range[1]},te=H,K.clearOutline(ae)):(k(ue)||S(ue))&&T(re,de,_e,K.dragOptions,ue)}},ne.onmousemove=function(re){_.hover(ae,re,K.id),ae._fullLayout._lasthover=ne,ae._fullLayout._hoversubplot=K.id},ne.onmouseout=function(re){ae._dragging||x.unhover(ae,re)},x.init(this.dragOptions)}},73972:function(i,o,a){var s=a(47769),u=a(64213),c=a(75138),d=a(41965),f=a(24401).addStyleRule,p=a(1426),h=a(9012),g=a(10820),b=p.extendFlat,v=p.extendDeepAll;function m(M){var O=M.name,D=M.categories,P=M.meta;if(o.modules[O])s.log("Type "+O+" already registered");else{o.subplotsRegistry[M.basePlotModule.name]||function(N){var R=N.name;if(o.subplotsRegistry[R])s.log("Plot type "+R+" already registered.");else for(var q in w(N),o.subplotsRegistry[R]=N,o.componentsRegistry)C(q,N.name)}(M.basePlotModule);for(var E={},I=0;I-1&&(x[w[g]].title={text:""});for(g=0;g")!==-1?"":I.html(F).text()});return I.remove(),A}(P)).replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(g,"'"),u.isIE()&&(P=(P=(P=P.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("#$2")')).replace(/(\\')/gi,'"')),P}},75341:function(i,o,a){var s=a(71828);i.exports=function(u,c){for(var d=0;dA+E||!s(I))}for(var j=0;jg))return f}return p!==void 0?p:d.dflt},o.coerceColor=function(d,f,p){return u(f).isValid()?f:p!==void 0?p:d.dflt},o.coerceEnumerated=function(d,f,p){return d.coerceNumber&&(f=+f),d.values.indexOf(f)!==-1?f:p!==void 0?p:d.dflt},o.getValue=function(d,f){var p;return Array.isArray(d)?f0?se+=pe:S<0&&(se-=pe)}return se}function ee(ie){var se=S,pe=ie.b,ke=te(ie);return s.inbox(pe-se,ke-se,F+(ke-se)/(ke-pe)-1)}var U=v[k+"a"],Q=v[C+"a"];O=Math.abs(U.r2c(U.range[1])-U.r2c(U.range[0]));var V=s.getDistanceFunction(x,T,M,function(ie){return(T(ie)+M(ie))/2});if(s.getClosest(D,V,v),v.index!==!1&&D[v.index].p!==h){z||(L=function(ie){return Math.min(N(ie),ie.p-E.bargroupwidth/2)},W=function(ie){return Math.max(R(ie),ie.p+E.bargroupwidth/2)});var X=D[v.index],K=P.base?X.b+X.s:X.s;v[C+"0"]=v[C+"1"]=Q.c2p(X[C],!0),v[C+"LabelVal"]=K;var ne=E.extents[E.extents.round(X.p)];v[k+"0"]=U.c2p(I?L(X):ne[0],!0),v[k+"1"]=U.c2p(I?W(X):ne[1],!0);var ae=X.orig_p!==void 0;return v[k+"LabelVal"]=ae?X.orig_p:X.p,v.labelLabel=p(U,v[k+"LabelVal"],P[k+"hoverformat"]),v.valueLabel=p(Q,v[C+"LabelVal"],P[C+"hoverformat"]),v.baseLabel=p(Q,X.b,P[C+"hoverformat"]),v.spikeDistance=(function(ie){var se=S,pe=ie.b,ke=te(ie);return s.inbox(pe-se,ke-se,j+(ke-se)/(ke-pe)-1)}(X)+function(ie){return H(N(ie),R(ie),j)}(X))/2,v[k+"Spike"]=U.c2p(X.p,!0),d(X,P,v),v.hovertemplate=P.hovertemplate,v}}function b(v,m){var y=m.mcc||v.marker.color,x=m.mlcc||v.marker.line.color,_=f(v,m);return c.opacity(y)?y:c.opacity(x)&&_?x:void 0}i.exports={hoverPoints:function(v,m,y,x,_){var w=g(v,m,y,x,_);if(w){var S=w.cd,k=S[0].trace,C=S[w.index];return w.color=b(k,C),u.getComponentMethod("errorbars","hoverInfo")(C,k,w),[w]}},hoverOnBars:g,getTraceColor:b}},60822:function(i,o,a){i.exports={attributes:a(1486),layoutAttributes:a(43641),supplyDefaults:a(90769).supplyDefaults,crossTraceDefaults:a(90769).crossTraceDefaults,supplyLayoutDefaults:a(13957),calc:a(92290),crossTraceCalc:a(11661).crossTraceCalc,colorbar:a(4898),arraysToCalcdata:a(75341),plot:a(17295).plot,style:a(16688).style,styleOnSelect:a(16688).styleOnSelect,hoverPoints:a(95423).hoverPoints,eventData:a(58065),selectPoints:a(81974),moduleType:"trace",name:"bar",basePlotModule:a(93612),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}},43641:function(i){i.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},13957:function(i,o,a){var s=a(73972),u=a(89298),c=a(71828),d=a(43641);i.exports=function(f,p,h){function g(k,C){return c.coerce(f,p,d,k,C)}for(var b=!1,v=!1,m=!1,y={},x=g("barmode"),_=0;_0}function I(j){return j==="auto"?0:j}function A(j,B){var z=Math.PI/180*B,N=Math.abs(Math.sin(z)),R=Math.abs(Math.cos(z));return{x:j.width*R+j.height*N,y:j.width*N+j.height*R}}function F(j,B,z,N,R,q){var Y=!!q.isHorizontal,L=!!q.constrained,W=q.angle||0,H=q.anchor||"end",G=H==="end",te=H==="start",ee=((q.leftToRight||0)+1)/2,U=1-ee,Q=R.width,V=R.height,X=Math.abs(B-j),K=Math.abs(N-z),ne=X>2*T&&K>2*T?T:0;X-=2*ne,K-=2*ne;var ae=I(W);W!=="auto"||Q<=X&&V<=K||!(Q>X||V>K)||(Q>K||V>X)&&Q.01?ye:function(Re,Ie,Ne){return Ne&&Re===Ie?Re:Math.abs(Re-Ie)>=2?ye(Re):Re>Ie?Math.ceil(Re):Math.floor(Re)};re=Se(re,de,ne),de=Se(de,re,ne),_e=Se(_e,ue,!ne),ue=Se(ue,_e,!ne)}var Ae=P(c.ensureSingle(we,"path"),W,R,q);if(Ae.style("vector-effect",H?"none":"non-scaling-stroke").attr("d",isNaN((de-re)*(ue-_e))||me&&j._context.staticPlot?"M0,0Z":"M"+re+","+_e+"V"+ue+"H"+de+"V"+_e+"Z").call(p.setClipUrl,B.layerClipId,j),!W.uniformtext.mode&&ae){var Le=p.makePointStyleFns(U);p.singlePointStyle(Ce,Ae,U,Le,j)}(function(Re,Ie,Ne,ze,qe,We,Ge,ot,Je,st,bt){var Be,je=Ie.xaxis,tt=Ie.yaxis,it=Re._fullLayout;function St(Et,mt,pt){return c.ensureSingle(Et,"text").text(mt).attr({class:"bartext bartext-"+Be,"text-anchor":"middle","data-notex":1}).call(p.font,pt).call(d.convertToTspans,Re)}var et=ze[0].trace,ct=et.orientation==="h",ht=function(Et,mt,pt,yt,qt){var Rt,jt=mt[0].trace;return Rt=jt.texttemplate?function(Tt,Pt,Ot,It,Lt){var zt=Pt[0].trace,Xt=c.castOption(zt,Ot,"texttemplate");if(!Xt)return"";var Kt,Bt,Ut,on,yn=zt.type==="histogram",pn=zt.type==="waterfall",cn=zt.type==="funnel",hn=zt.orientation==="h";function Jt(On){return g(on,on.c2l(On),!0).text}hn?(Kt="y",Bt=Lt,Ut="x",on=It):(Kt="x",Bt=It,Ut="y",on=Lt);var _n,sn=Pt[Ot],en={};en.label=sn.p,en.labelLabel=en[Kt+"Label"]=(_n=sn.p,g(Bt,Bt.c2l(_n),!0).text);var Nn=c.castOption(zt,sn.i,"text");(Nn===0||Nn)&&(en.text=Nn),en.value=sn.s,en.valueLabel=en[Ut+"Label"]=Jt(sn.s);var An={};C(An,zt,sn.i),(yn||An.x===void 0)&&(An.x=hn?en.value:en.label),(yn||An.y===void 0)&&(An.y=hn?en.label:en.value),(yn||An.xLabel===void 0)&&(An.xLabel=hn?en.valueLabel:en.labelLabel),(yn||An.yLabel===void 0)&&(An.yLabel=hn?en.labelLabel:en.valueLabel),pn&&(en.delta=+sn.rawS||sn.s,en.deltaLabel=Jt(en.delta),en.final=sn.v,en.finalLabel=Jt(en.final),en.initial=en.final-en.delta,en.initialLabel=Jt(en.initial)),cn&&(en.value=sn.s,en.valueLabel=Jt(en.value),en.percentInitial=sn.begR,en.percentInitialLabel=c.formatPercent(sn.begR),en.percentPrevious=sn.difR,en.percentPreviousLabel=c.formatPercent(sn.difR),en.percentTotal=sn.sumR,en.percenTotalLabel=c.formatPercent(sn.sumR));var Wn=c.castOption(zt,sn.i,"customdata");return Wn&&(en.customdata=Wn),c.texttemplateString(Xt,en,Tt._d3locale,An,en,zt._meta||{})}(Et,mt,pt,yt,qt):jt.textinfo?function(Tt,Pt,Ot,It){var Lt=Tt[0].trace,zt=Lt.orientation==="h",Xt=Lt.type==="waterfall",Kt=Lt.type==="funnel";function Bt(Wn){return g(zt?Ot:It,+Wn,!0).text}var Ut,on,yn=Lt.textinfo,pn=Tt[Pt],cn=yn.split("+"),hn=[],Jt=function(Wn){return cn.indexOf(Wn)!==-1};if(Jt("label")&&hn.push((on=Tt[Pt].p,g(zt?It:Ot,on,!0).text)),Jt("text")&&((Ut=c.castOption(Lt,pn.i,"text"))===0||Ut)&&hn.push(Ut),Xt){var _n=+pn.rawS||pn.s,sn=pn.v,en=sn-_n;Jt("initial")&&hn.push(Bt(en)),Jt("delta")&&hn.push(Bt(_n)),Jt("final")&&hn.push(Bt(sn))}if(Kt){Jt("value")&&hn.push(Bt(pn.s));var Nn=0;Jt("percent initial")&&Nn++,Jt("percent previous")&&Nn++,Jt("percent total")&&Nn++;var An=Nn>1;Jt("percent initial")&&(Ut=c.formatPercent(pn.begR),An&&(Ut+=" of initial"),hn.push(Ut)),Jt("percent previous")&&(Ut=c.formatPercent(pn.difR),An&&(Ut+=" of previous"),hn.push(Ut)),Jt("percent total")&&(Ut=c.formatPercent(pn.sumR),An&&(Ut+=" of total"),hn.push(Ut))}return hn.join("
")}(mt,pt,yt,qt):x.getValue(jt.text,pt),x.coerceString(S,Rt)}(it,ze,qe,je,tt);Be=function(Et,mt){var pt=x.getValue(Et.textposition,mt);return x.coerceEnumerated(k,pt)}(et,qe);var $t=st.mode==="stack"||st.mode==="relative",kt=ze[qe],Wt=!$t||kt._outmost;if(ht&&Be!=="none"&&(!kt.isBlank&&We!==Ge&&ot!==Je||Be!=="auto"&&Be!=="inside")){var wt=it.font,be=y.getBarColor(ze[qe],et),Me=y.getInsideTextFont(et,qe,wt,be),Ve=y.getOutsideTextFont(et,qe,wt),Ue=Ne.datum();ct?je.type==="log"&&Ue.s0<=0&&(We=je.range[0]0&&rt>0&&(Qe<=gt&&rt<=nt||Qe<=nt&&rt<=gt||(ct?gt>=Qe*(nt/rt):nt>=rt*(gt/Qe)))?Be="inside":(Be="outside",Ze.remove(),Ze=null)):Be="inside"),!Ze){var Nt=(Ze=St(Ne,ht,ut=c.ensureUniformFontSize(Re,Be==="outside"?Ve:Me))).attr("transform");if(Ze.attr("transform",""),Qe=(Ye=p.bBox(Ze.node())).width,rt=Ye.height,Ze.attr("transform",Nt),Qe<=0||rt<=0)return void Ze.remove()}var Gt,Ct=et.textangle;Gt=Be==="outside"?function(Et,mt,pt,yt,qt,Rt){var jt,Tt=!!Rt.isHorizontal,Pt=!!Rt.constrained,Ot=Rt.angle||0,It=qt.width,Lt=qt.height,zt=Math.abs(mt-Et),Xt=Math.abs(yt-pt);jt=Tt?Xt>2*T?T:0:zt>2*T?T:0;var Kt=1;Pt&&(Kt=Tt?Math.min(1,Xt/Lt):Math.min(1,zt/It));var Bt=I(Ot),Ut=A(qt,Bt),on=(Tt?Ut.x:Ut.y)/2,yn=(qt.left+qt.right)/2,pn=(qt.top+qt.bottom)/2,cn=(Et+mt)/2,hn=(pt+yt)/2,Jt=0,_n=0,sn=Tt?D(mt,Et):D(pt,yt);return Tt?(cn=mt-sn*jt,Jt=sn*on):(hn=yt+sn*jt,_n=-sn*on),{textX:yn,textY:pn,targetX:cn,targetY:hn,anchorX:Jt,anchorY:_n,scale:Kt,rotate:Bt}}(We,Ge,ot,Je,Ye,{isHorizontal:ct,constrained:et.constraintext==="both"||et.constraintext==="outside",angle:Ct}):F(We,Ge,ot,Je,Ye,{isHorizontal:ct,constrained:et.constraintext==="both"||et.constraintext==="inside",angle:Ct,anchor:et.insidetextanchor}),Gt.fontSize=ut.size,v(et.type==="histogram"?"bar":et.type,Gt,it),kt.transform=Gt;var Ft=P(Ze,it,st,bt);c.setTransormAndDisplay(Ft,Gt)}else Ne.select("text").remove()})(j,B,we,te,Oe,re,de,_e,ue,R,q),B.layerClipId&&p.hideOutsideRangePoint(Ce,we.select("text"),Y,L,U.xcalendar,U.ycalendar)});var ke=U.cliponaxis===!1;p.setClipUrl(ee,ke?null:B.layerClipId,j)});h.getComponentMethod("errorbars","plot")(j,G,B,R)},toMoveInsideBar:F}},81974:function(i){function o(a,s,u,c,d){var f=s.c2p(c?a.s0:a.p0,!0),p=s.c2p(c?a.s1:a.p1,!0),h=u.c2p(c?a.p0:a.s0,!0),g=u.c2p(c?a.p1:a.s1,!0);return d?[(f+p)/2,(h+g)/2]:c?[p,(h+g)/2]:[(f+p)/2,g]}i.exports=function(a,s){var u,c=a.cd,d=a.xaxis,f=a.yaxis,p=c[0].trace,h=p.type==="funnel",g=p.orientation==="h",b=[];if(s===!1)for(u=0;u1||P.bargap===0&&P.bargroupgap===0&&!E[0].trace.marker.line.width)&&s.select(this).attr("shape-rendering","crispEdges")}),O.selectAll("g.points").each(function(E){y(s.select(this),E[0].trace,M)}),f.getComponentMethod("errorbars","style")(O)},styleTextPoints:x,styleOnSelect:function(M,O,D){var P=O[0].trace;P.selectedpoints?function(E,I,A){c.selectedPointStyle(E.selectAll("path"),I),function(F,j,B){F.each(function(z){var N,R=s.select(this);if(z.selected){N=d.ensureUniformFontSize(B,_(R,z,j,B));var q=j.selected.textfont&&j.selected.textfont.color;q&&(N.color=q),c.font(R,N)}else c.selectedTextStyle(R,j)})}(E.selectAll("text"),I,A)}(D,P,M):(y(D,P,M),f.getComponentMethod("errorbars","style")(D))},getInsideTextFont:S,getOutsideTextFont:k,getBarColor:T,resizeText:p}},98340:function(i,o,a){var s=a(7901),u=a(52075).hasColorscale,c=a(1586),d=a(71828).coercePattern;i.exports=function(f,p,h,g,b){var v=h("marker.color",g),m=u(f,"marker");m&&c(f,p,b,h,{prefix:"marker.",cLetter:"c"}),h("marker.line.color",s.defaultLine),u(f,"marker.line")&&c(f,p,b,h,{prefix:"marker.line.",cLetter:"c"}),h("marker.line.width"),h("marker.opacity"),d(h,"marker.pattern",v,m),h("selected.marker.color"),h("unselected.marker.color")}},72597:function(i,o,a){var s=a(39898),u=a(71828);function c(d){return"_"+d+"Text_minsize"}i.exports={recordMinTextSize:function(d,f,p){if(p.uniformtext.mode){var h=c(d),g=p.uniformtext.minsize,b=f.scale*f.fontSize;f.hide=bz.uf};if(k._hasPreCompStats){var V=k[O],X=function(Ie){return M.d2c((k[Ie]||[])[C])},K=1/0,ne=-1/0;for(C=0;C=z.q1&&z.q3>=z.med){var ie=X("lowerfence");z.lf=ie!==f&&ie<=z.q1?ie:m(z,R,q);var se=X("upperfence");z.uf=se!==f&&se>=z.q3?se:y(z,R,q);var pe=X("mean");z.mean=pe!==f?pe:q?d.mean(R,q):(z.q1+z.q3)/2;var ke=X("sd");z.sd=pe!==f&&ke>=0?ke:q?d.stdev(R,q,z.mean):z.q3-z.q1,z.lo=x(z),z.uo=_(z);var Ce=X("notchspan");Ce=Ce!==f&&Ce>0?Ce:w(z,q),z.ln=z.med-Ce,z.un=z.med+Ce;var Oe=z.lf,Pe=z.uf;k.boxpoints&&R.length&&(Oe=Math.min(Oe,R[0]),Pe=Math.max(Pe,R[q-1])),k.notched&&(Oe=Math.min(Oe,z.ln),Pe=Math.max(Pe,z.un)),z.min=Oe,z.max=Pe}else{var ce;d.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+z.q1,"median = "+z.med,"q3 = "+z.q3].join(` -`)),ce=z.med!==f?z.med:z.q1!==f?z.q3!==f?(z.q1+z.q3)/2:z.q1:z.q3!==f?z.q3:0,z.med=ce,z.q1=z.q3=ce,z.lf=z.uf=ce,z.mean=z.sd=ce,z.ln=z.un=ce,z.min=z.max=ce}K=Math.min(K,z.min),ne=Math.max(ne,z.max),z.pts2=N.filter(Q),j.push(z)}}k._extremes[M._id]=u.findExtremes(M,[K,ne],{padded:!0})}else{var we=M.makeCalcdata(k,O),Z=function(Ie,Ne){for(var ze=Ie.length,qe=new Array(ze+1),We=0;We=0&&_e0){var Ae,Le;(z={}).pos=z[P]=ee[C],N=z.pts=de[C].sort(b),q=(R=z[O]=N.map(v)).length,z.min=R[0],z.max=R[q-1],z.mean=d.mean(R,q),z.sd=d.stdev(R,q,z.mean)*k.sdmultiple,z.med=d.interp(R,.5),q%2&&(ye||Se)?(ye?(Ae=R.slice(0,q/2),Le=R.slice(q/2+1)):Se&&(Ae=R.slice(0,q/2+1),Le=R.slice(q/2)),z.q1=d.interp(Ae,.5),z.q3=d.interp(Le,.5)):(z.q1=d.interp(R,.25),z.q3=d.interp(R,.75)),z.lf=m(z,R,q),z.uf=y(z,R,q),z.lo=x(z),z.uo=_(z);var Re=w(z,q);z.ln=z.med-Re,z.un=z.med+Re,ue=Math.min(ue,z.ln),me=Math.max(me,z.un),z.pts2=N.filter(Q),j.push(z)}k._extremes[M._id]=u.findExtremes(M,k.notched?we.concat([ue,me]):we,{padded:!0})}return function(Ie,Ne){if(d.isArrayOrTypedArray(Ne.selectedpoints))for(var ze=0;ze0?(j[0].t={num:I[B],dPos:U,posLetter:P,valLetter:O,labels:{med:p(S,"median:"),min:p(S,"min:"),q1:p(S,"q1:"),q3:p(S,"q3:"),max:p(S,"max:"),mean:k.boxmean==="sd"||k.sizemode==="sd"?p(S,"mean ± σ:").replace("σ",k.sdmultiple===1?"σ":k.sdmultiple+"σ"):p(S,"mean:"),lf:p(S,"lower fence:"),uf:p(S,"upper fence:")}},I[B]++,j):[{t:{empty:!0}}]};var h={text:"tx",hovertext:"htx"};function g(S,k,C){for(var T in h)d.isArrayOrTypedArray(k[T])&&(Array.isArray(C)?d.isArrayOrTypedArray(k[T][C[0]])&&(S[h[T]]=k[T][C[0]][C[1]]):S[h[T]]=k[T][C])}function b(S,k){return S.v-k.v}function v(S){return S.v}function m(S,k,C){return C===0?S.q1:Math.min(S.q1,k[Math.min(d.findBin(2.5*S.q1-1.5*S.q3,k,!0)+1,C-1)])}function y(S,k,C){return C===0?S.q3:Math.max(S.q3,k[Math.max(d.findBin(2.5*S.q3-1.5*S.q1,k),0)])}function x(S){return 4*S.q1-3*S.q3}function _(S){return 4*S.q3-3*S.q1}function w(S,k){return k===0?0:1.57*(S.q3-S.q1)/Math.sqrt(k)}},37188:function(i,o,a){var s=a(89298),u=a(71828),c=a(99082).getAxisGroup,d=["v","h"];function f(p,h,g,b){var v,m,y,x=h.calcdata,_=h._fullLayout,w=b._id,S=w.charAt(0),k=[],C=0;for(v=0;v1,P=1-_[p+"gap"],E=1-_[p+"groupgap"];for(v=0;v0){var ae=N.pointpos,ie=N.jitter,se=N.marker.size/2,pe=0;ae+ie>=0&&((pe=K*(ae+ie))>B?(ne=!0,V=se,U=pe):pe>te&&(V=se,U=B)),pe<=B&&(U=B);var ke=0;ae-ie<=0&&((ke=-K*(ae-ie))>z?(ne=!0,X=se,Q=ke):ke>ee&&(X=se,Q=z)),ke<=z&&(Q=z)}else U=B,Q=z;var Ce=new Array(y.length);for(m=0;m0?(D="v",P=I>0?Math.min(F,A):Math.min(A)):I>0?(D="h",P=Math.min(F)):P=0;if(P){m._length=P;var q=y("orientation",D);m._hasPreCompStats?q==="v"&&I===0?(y("x0",0),y("dx",1)):q==="h"&&E===0&&(y("y0",0),y("dy",1)):q==="v"&&I===0?y("x0"):q==="h"&&E===0&&y("y0"),u.getComponentMethod("calendars","handleTraceDefaults")(v,m,["x","y"],x)}else m.visible=!1}function b(v,m,y,x){var _=x.prefix,w=s.coerce2(v,m,h,"marker.outliercolor"),S=y("marker.line.outliercolor"),k="outliers";m._hasPreCompStats?k="all":(w||S)&&(k="suspectedoutliers");var C=y(_+"points",k);C?(y("jitter",C==="all"?.3:0),y("pointpos",C==="all"?-1.5:0),y("marker.symbol"),y("marker.opacity"),y("marker.size"),y("marker.angle"),y("marker.color",m.line.color),y("marker.line.color"),y("marker.line.width"),C==="suspectedoutliers"&&(y("marker.line.outliercolor",m.marker.color),y("marker.line.outlierwidth")),y("selected.marker.color"),y("unselected.marker.color"),y("selected.marker.size"),y("unselected.marker.size"),y("text"),y("hovertext")):delete m.marker;var T=y("hoveron");T!=="all"&&T.indexOf("points")===-1||y("hovertemplate"),s.coerceSelectionMarkerOpacity(m,y)}i.exports={supplyDefaults:function(v,m,y,x){function _(P,E){return s.coerce(v,m,h,P,E)}if(g(v,m,_,x),m.visible!==!1){d(v,m,x,_),_("xhoverformat"),_("yhoverformat");var w=m._hasPreCompStats;w&&(_("lowerfence"),_("upperfence")),_("line.color",(v.marker||{}).color||y),_("line.width"),_("fillcolor",c.addOpacity(m.line.color,.5));var S=!1;if(w){var k=_("mean"),C=_("sd");k&&k.length&&(S=!0,C&&C.length&&(S="sd"))}_("whiskerwidth");var T,M=_("sizemode");M==="quartiles"&&(T=_("boxmean",S)),_("showwhiskers",M==="quartiles"),M!=="sd"&&T!=="sd"||_("sdmultiple"),_("width"),_("quartilemethod");var O=!1;if(w){var D=_("notchspan");D&&D.length&&(O=!0)}else s.validate(v.notchwidth,h.notchwidth)&&(O=!0);_("notched",O)&&_("notchwidth"),b(v,m,_,{prefix:"box"})}},crossTraceDefaults:function(v,m){var y,x;function _(k){return s.coerce(x._input,x,h,k)}for(var w=0;wC.lo&&(R.so=!0)}return O});k.enter().append("path").classed("point",!0),k.exit().remove(),k.call(c.translatePoints,m,y)}function p(h,g,b,v){var m,y,x=g.val,_=g.pos,w=!!_.rangebreaks,S=v.bPos,k=v.bPosPxOffset||0,C=b.boxmean||(b.meanline||{}).visible;Array.isArray(v.bdPos)?(m=v.bdPos[0],y=v.bdPos[1]):(m=v.bdPos,y=v.bdPos);var T=h.selectAll("path.mean").data(b.type==="box"&&b.boxmean||b.type==="violin"&&b.box.visible&&b.meanline.visible?u.identity:[]);T.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),T.exit().remove(),T.each(function(M){var O=_.c2l(M.pos+S,!0),D=_.l2p(O-m)+k,P=_.l2p(O+y)+k,E=w?(D+P)/2:_.l2p(O)+k,I=x.c2p(M.mean,!0),A=x.c2p(M.mean-M.sd,!0),F=x.c2p(M.mean+M.sd,!0);b.orientation==="h"?s.select(this).attr("d","M"+I+","+D+"V"+P+(C==="sd"?"m0,0L"+A+","+E+"L"+I+","+D+"L"+F+","+E+"Z":"")):s.select(this).attr("d","M"+D+","+I+"H"+P+(C==="sd"?"m0,0L"+E+","+A+"L"+D+","+I+"L"+E+","+F+"Z":""))})}i.exports={plot:function(h,g,b,v){var m=h._context.staticPlot,y=g.xaxis,x=g.yaxis;u.makeTraceGroups(v,b,"trace boxes").each(function(_){var w,S,k=s.select(this),C=_[0],T=C.t,M=C.trace;T.wdPos=T.bdPos*M.whiskerwidth,M.visible!==!0||T.empty?k.remove():(M.orientation==="h"?(w=x,S=y):(w=y,S=x),d(k,{pos:w,val:S},M,T,m),f(k,{x:y,y:x},M,T),p(k,{pos:w,val:S},M,T))})},plotBoxAndWhiskers:d,plotPoints:f,plotBoxMean:p}},24626:function(i){i.exports=function(o,a){var s,u,c=o.cd,d=o.xaxis,f=o.yaxis,p=[];if(a===!1)for(s=0;sf.level||f.starts.length&&d===f.level)}break;case"constraint":if(u.prefixBoundary=!1,u.edgepaths.length)return;var p=u.x.length,h=u.y.length,g=-1/0,b=1/0;for(s=0;s":y>g&&(u.prefixBoundary=!0);break;case"<":(yg||u.starts.length&&m===b)&&(u.prefixBoundary=!0);break;case"][":v=Math.min(y[0],y[1]),m=Math.max(y[0],y[1]),vg&&(u.prefixBoundary=!0)}}}},90654:function(i,o,a){var s=a(21081),u=a(86068),c=a(53572);i.exports={min:"zmin",max:"zmax",calc:function(d,f,p){var h=f.contours,g=f.line,b=h.size||1,v=h.coloring,m=u(f,{isColorbar:!0});if(v==="heatmap"){var y=s.extractOpts(f);p._fillgradient=y.reversescale?s.flipScale(y.colorscale):y.colorscale,p._zrange=[y.min,y.max]}else v==="fill"&&(p._fillcolor=m);p._line={color:v==="lines"?m:g.color,width:h.showlines!==!1?g.width:0,dash:g.dash},p._levels={start:h.start,end:c(h),size:b}}}},36914:function(i){i.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},83179:function(i,o,a){var s=a(92770),u=a(14523),c=a(7901),d=c.addOpacity,f=c.opacity,p=a(74808),h=p.CONSTRAINT_REDUCTION,g=p.COMPARISON_OPS2;i.exports=function(b,v,m,y,x,_){var w,S,k,C=v.contours,T=m("contours.operation");C._operation=h[T],function(M,O){var D;g.indexOf(O.operation)===-1?(M("contours.value",[0,1]),Array.isArray(O.value)?O.value.length>2?O.value=O.value.slice(2):O.length===0?O.value=[0,1]:O.length<2?(D=parseFloat(O.value[0]),O.value=[D,D+1]):O.value=[parseFloat(O.value[0]),parseFloat(O.value[1])]:s(O.value)&&(D=parseFloat(O.value),O.value=[D,D+1])):(M("contours.value",0),s(O.value)||(Array.isArray(O.value)?O.value=parseFloat(O.value[0]):O.value=0))}(m,C),T==="="?w=C.showlines=!0:(w=m("contours.showlines"),k=m("fillcolor",d((b.line||{}).color||x,.5))),w&&(S=m("line.color",k&&f(k)?d(v.fillcolor,1):x),m("line.width",2),m("line.dash")),m("line.smoothing"),u(m,y,S,_)}},64237:function(i,o,a){var s=a(74808),u=a(92770);function c(p,h){var g,b=Array.isArray(h);function v(m){return u(m)?+m:null}return s.COMPARISON_OPS2.indexOf(p)!==-1?g=v(b?h[0]:h):s.INTERVAL_OPS.indexOf(p)!==-1?g=b?[v(h[0]),v(h[1])]:[v(h),v(h)]:s.SET_OPS.indexOf(p)!==-1&&(g=b?h.map(v):[v(h)]),g}function d(p){return function(h){h=c(p,h);var g=Math.min(h[0],h[1]),b=Math.max(h[0],h[1]);return{start:g,end:b,size:b-g}}}function f(p){return function(h){return{start:h=c(p,h),end:1/0,size:1/0}}}i.exports={"[]":d("[]"),"][":d("]["),">":f(">"),"<":f("<"),"=":f("=")}},67217:function(i){i.exports=function(o,a,s,u){var c=u("contours.start"),d=u("contours.end"),f=c===!1||d===!1,p=s("contours.size");!(f?a.autocontour=!0:s("autocontour",!1))&&p||s("ncontours")}},84857:function(i,o,a){var s=a(71828);function u(c){return s.extendFlat({},c,{edgepaths:s.extendDeep([],c.edgepaths),paths:s.extendDeep([],c.paths),starts:s.extendDeep([],c.starts)})}i.exports=function(c,d){var f,p,h,g=function(m){return m.reverse()},b=function(m){return m};switch(d){case"=":case"<":return c;case">":for(c.length!==1&&s.warn("Contour data invalid for the specified inequality operation."),p=c[0],f=0;f1e3){s.warn("Too many contours, clipping at 1000",d);break}return b}},53572:function(i){i.exports=function(o){return o.end+o.size/1e6}},81696:function(i,o,a){var s=a(71828),u=a(36914);function c(p,h,g,b){return Math.abs(p[0]-h[0])20&&ne?K===208||K===1114?ie=ae[0]===0?1:-1:se=ae[1]===0?1:-1:u.BOTTOMSTART.indexOf(K)!==-1?se=1:u.LEFTSTART.indexOf(K)!==-1?ie=1:u.TOPSTART.indexOf(K)!==-1?se=-1:ie=-1,[ie,se]}(x,g,h),w=[f(p,h,[-_[0],-_[1]])],S=p.z.length,k=p.z[0].length,C=h.slice(),T=_.slice();for(m=0;m<1e4;m++){if(x>20?(x=u.CHOOSESADDLE[x][(_[0]||_[1])<0?0:1],p.crossings[y]=u.SADDLEREMAINDER[x]):delete p.crossings[y],!(_=u.NEWDELTA[x])){s.log("Found bad marching index:",x,h,p.level);break}w.push(f(p,h,_)),h[0]+=_[0],h[1]+=_[1],y=h.join(","),c(w[w.length-1],w[w.length-2],b,v)&&w.pop();var M=_[0]&&(h[0]<0||h[0]>k-2)||_[1]&&(h[1]<0||h[1]>S-2);if(h[0]===C[0]&&h[1]===C[1]&&_[0]===T[0]&&_[1]===T[1]||g&&M)break;x=p.crossings[y]}m===1e4&&s.log("Infinite loop in contour?");var O,D,P,E,I,A,F,j,B,z,N,R,q,Y,L,W=c(w[0],w[w.length-1],b,v),H=0,G=.2*p.smoothing,te=[],ee=0;for(m=1;m=ee;m--)if((O=te[m])=ee&&O+te[D]j&&B--,p.edgepaths[B]=N.concat(w,z));break}X||(p.edgepaths[j]=w.concat(z))}for(j=0;j=T)&&(p<=C&&(p=C),h>=T&&(h=T),b=Math.floor((h-p)/g)+1,v=0),x=0;xC&&(S.unshift(C),k.unshift(k[0])),S[S.length-1]c?0:1)+(d[0][1]>c?0:2)+(d[1][1]>c?0:4)+(d[1][0]>c?0:8);return f===5||f===10?c>(d[0][0]+d[0][1]+d[1][0]+d[1][1])/4?f===5?713:1114:f===5?104:208:f===15?0:f}i.exports=function(c){var d,f,p,h,g,b,v,m,y,x=c[0].z,_=x.length,w=x[0].length,S=_===2||w===2;for(f=0;f<_-1;f++)for(h=[],f===0&&(h=h.concat(s.BOTTOMSTART)),f===_-2&&(h=h.concat(s.TOPSTART)),d=0;d=0&&(D=L,E=I):Math.abs(O[1]-D[1])<.01?Math.abs(O[1]-L[1])<.01&&(L[0]-O[0])*(D[0]-L[0])>=0&&(D=L,E=I):u.log("endpt to newendpt is not vert. or horz.",O,D,L)}if(O=D,E>=0)break;j+="L"+D}if(E===T.edgepaths.length){u.log("unclosed perimeter path");break}B=E,(N=z.indexOf(B)===-1)&&(B=z[0],j+="Z")}for(B=0;BD.center?D.right-I:I-D.left)/(j+Math.abs(Math.sin(F)*E)),N=(A>D.middle?D.bottom-A:A-D.top)/(Math.abs(B)+Math.cos(F)*E);if(z<1||N<1)return 1/0;var R=w.EDGECOST*(1/(z-1)+1/(N-1));R+=w.ANGLECOST*F*F;for(var q=I-j,Y=A-B,L=I+j,W=A+B,H=0;H2*w.MAXCOST)break;N&&(I/=2),A=(E=F-I/2)+1.5*I}if(z<=w.MAXCOST)return j},o.addLabelData=function(T,M,O,D){var P=M.fontSize,E=M.width+P/3,I=Math.max(0,M.height-P/3),A=T.x,F=T.y,j=T.theta,B=Math.sin(j),z=Math.cos(j),N=function(q,Y){return[A+q*z-Y*B,F+q*B+Y*z]},R=[N(-E/2,-I/2),N(-E/2,I/2),N(E/2,I/2),N(E/2,-I/2)];O.push({text:M.text,x:A,y:F,dy:M.dy,theta:j,level:M.level,width:E,height:I}),D.push(R)},o.drawLabels=function(T,M,O,D,P){var E=T.selectAll("text").data(M,function(F){return F.text+","+F.x+","+F.y+","+F.theta});if(E.exit().remove(),E.enter().append("text").attr({"data-notex":1,"text-anchor":"middle"}).each(function(F){var j=F.x+Math.sin(F.theta)*F.dy,B=F.y-Math.cos(F.theta)*F.dy;s.select(this).text(F.text).attr({x:j,y:B,transform:"rotate("+180*F.theta/Math.PI+" "+j+" "+B+")"}).call(f.convertToTspans,O)}),P){for(var I="",A=0;Ap.end&&(p.start=p.end=(p.start+p.end)/2),d._input.contours||(d._input.contours={}),u.extendFlat(d._input.contours,{start:p.start,end:p.end,size:p.size}),d._input.autocontour=!0}else if(p.type!=="constraint"){var v,m=p.start,y=p.end,x=d._input.contours;m>y&&(p.start=x.start=y,y=p.end=x.end=m,m=p.start),p.size>0||(v=m===y?1:c(m,y,d.ncontours).dtick,x.size=p.size=v)}}},84426:function(i,o,a){var s=a(39898),u=a(91424),c=a(70035),d=a(86068);i.exports=function(f){var p=s.select(f).selectAll("g.contour");p.style("opacity",function(h){return h[0].trace.opacity}),p.each(function(h){var g=s.select(this),b=h[0].trace,v=b.contours,m=b.line,y=v.size||1,x=v.start,_=v.type==="constraint",w=!_&&v.coloring==="lines",S=!_&&v.coloring==="fill",k=w||S?d(b):null;g.selectAll("g.contourlevel").each(function(M){s.select(this).selectAll("path").call(u.lineGroupStyle,m.width,w?k(M.level):m.color,m.dash)});var C=v.labelfont;if(g.selectAll("g.contourlabels text").each(function(M){u.font(s.select(this),{family:C.family,size:C.size,color:C.color||(w?k(M.level):m.color)})}),_)g.selectAll("g.contourfill path").style("fill",b.fillcolor);else if(S){var T;g.selectAll("g.contourfill path").style("fill",function(M){return T===void 0&&(T=M.level),k(M.level+.5*y)}),T===void 0&&(T=x),g.selectAll("g.contourbg path").style("fill",k(T-.5*y))}}),c(f)}},8724:function(i,o,a){var s=a(1586),u=a(14523);i.exports=function(c,d,f,p,h){var g,b=f("contours.coloring"),v="";b==="fill"&&(g=f("contours.showlines")),g!==!1&&(b!=="lines"&&(v=f("line.color","#000")),f("line.width",.5),f("line.dash")),b!=="none"&&(c.showlegend!==!0&&(d.showlegend=!1),d._dfltShowLegend=!1,s(c,d,p,f,{prefix:"",cLetter:"z"})),f("line.smoothing"),u(f,p,v,h)}},21606:function(i,o,a){var s=a(82196),u=a(9012),c=a(41940),d=a(12663).axisHoverFormat,f=a(5386).fF,p=a(5386).si,h=a(50693),g=a(1426).extendFlat;i.exports=g({z:{valType:"data_array",editType:"calc"},x:g({},s.x,{impliedEdits:{xtype:"array"}}),x0:g({},s.x0,{impliedEdits:{xtype:"scaled"}}),dx:g({},s.dx,{impliedEdits:{xtype:"scaled"}}),y:g({},s.y,{impliedEdits:{ytype:"array"}}),y0:g({},s.y0,{impliedEdits:{ytype:"scaled"}}),dy:g({},s.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:g({},s.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:g({},s.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:g({},s.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:g({},s.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:g({},s.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:g({},s.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:d("x"),yhoverformat:d("y"),zhoverformat:d("z",1),hovertemplate:f(),texttemplate:p({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:c({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:g({},u.showlegend,{dflt:!1})},{transforms:void 0},h("",{cLetter:"z",autoColorDflt:!1}))},90757:function(i,o,a){var s=a(73972),u=a(71828),c=a(89298),d=a(42973),f=a(17562),p=a(78803),h=a(68296),g=a(4742),b=a(824),v=a(43907),m=a(70769),y=a(50606).BADNUM;function x(_){for(var w=[],S=_.length,k=0;k1){var X=(V[V.length-1]-V[0])/(V.length-1),K=Math.abs(X/100);for(I=0;IK)return!1}return!0}(F.rangebreaks||j.rangebreaks)&&(E=function(V,X,K){for(var ne=[],ae=-1,ie=0;ie=0;h--)(g=((y[[(d=(p=x[h])[0])-1,f=p[1]]]||S)[2]+(y[[d+1,f]]||S)[2]+(y[[d,f-1]]||S)[2]+(y[[d,f+1]]||S)[2])/20)&&(b[p]=[d,f,g],x.splice(h,1),v=!0);if(!v)throw"findEmpties iterated with no new neighbors";for(p in b)y[p]=b[p],m.push(b[p])}return m.sort(function(C,T){return T[2]-C[2]})}},46248:function(i,o,a){var s=a(30211),u=a(71828),c=a(89298),d=a(21081).extractOpts;i.exports=function(f,p,h,g,b){b||(b={});var v,m,y,x,_=b.isContour,w=f.cd[0],S=w.trace,k=f.xa,C=f.ya,T=w.x,M=w.y,O=w.z,D=w.xCenter,P=w.yCenter,E=w.zmask,I=S.zhoverformat,A=T,F=M;if(f.index!==!1){try{y=Math.round(f.index[1]),x=Math.round(f.index[0])}catch{return void u.error("Error hovering on heatmap, pointNumber must be [row,col], found:",f.index)}if(y<0||y>=O[0].length||x<0||x>O.length)return}else{if(s.inbox(p-T[0],p-T[T.length-1],0)>0||s.inbox(h-M[0],h-M[M.length-1],0)>0)return;if(_){var j;for(A=[2*T[0]-T[1]],j=1;jT&&(O=Math.max(O,Math.abs(f[b][v]-C)/(M-T))))}return O}i.exports=function(f,p){var h,g=1;for(d(f,p),h=0;h.01;h++)g=d(f,p,c(g));return g>.01&&s.log("interp2d didn't converge quickly",g),f}},58623:function(i,o,a){var s=a(71828);i.exports=function(u,c){u("texttemplate");var d=s.extendFlat({},c.font,{color:"auto",size:"auto"});s.coerceFont(u,"textfont",d)}},70769:function(i,o,a){var s=a(73972),u=a(71828).isArrayOrTypedArray;i.exports=function(c,d,f,p,h,g){var b,v,m,y=[],x=s.traceIs(c,"contour"),_=s.traceIs(c,"histogram"),w=s.traceIs(c,"gl2d");if(u(d)&&d.length>1&&!_&&g.type!=="category"){var S=d.length;if(!(S<=h))return x?d.slice(0,h):d.slice(0,h+1);if(x||w)y=d.slice(0,h);else if(h===1)y=[d[0]-.5,d[0]+.5];else{for(y=[1.5*d[0]-.5*d[1]],m=1;m0;)z=A.c2p(V[Y]),Y--;for(z0;)q=F.c2p(X[Y]),Y--;q=A._length||z<=0||R>=F._length||q<=0)return H.selectAll("image").data([]).exit().remove(),void C(H);Oe==="fast"?(ce=pe,we=se):(ce=Z,we=re);var de=document.createElement("canvas");de.width=ce,de.height=we;var _e,ue,me=de.getContext("2d",{willReadFrequently:!0}),xe=m(te,{noNumericCheck:!0,returnArray:!0});Oe==="fast"?(_e=ke?function(_n){return pe-1-_n}:p.identity,ue=Ce?function(_n){return se-1-_n}:p.identity):(_e=function(_n){return p.constrain(Math.round(A.c2p(V[_n])-B),0,Z)},ue=function(_n){return p.constrain(Math.round(F.c2p(X[_n])-R),0,re)});var ye,Se,Ae,Le,Re=ue(0),Ie=[Re,Re],Ne=ke?0:1,ze=Ce?0:1,qe=0,We=0,Ge=0,ot=0;function Je(_n,sn){if(_n!==void 0){var en=xe(_n);return en[0]=Math.round(en[0]),en[1]=Math.round(en[1]),en[2]=Math.round(en[2]),qe+=sn,We+=en[0]*sn,Ge+=en[1]*sn,ot+=en[2]*sn,en}return[0,0,0,0]}function st(_n,sn,en,Nn){var An=_n[en.bin0];if(An===void 0)return Je(void 0,1);var Wn,On=_n[en.bin1],qn=sn[en.bin0],br=sn[en.bin1],Za=On-An||0,lo=qn-An||0;return Wn=On===void 0?br===void 0?0:qn===void 0?2*(br-An):2*(2*br-qn-An)/3:br===void 0?qn===void 0?0:2*(2*An-On-qn)/3:qn===void 0?2*(2*br-On-An)/3:br+An-On-qn,Je(An+en.frac*Za+Nn.frac*(lo+en.frac*Wn))}if(Oe!=="default"){var bt,Be=0;try{bt=new Uint8Array(ce*we*4)}catch{bt=new Array(ce*we*4)}if(Oe==="smooth"){var je,tt,it,St=K||V,et=ne||X,ct=new Array(St.length),ht=new Array(et.length),$t=new Array(Z),kt=K?M:T,Wt=ne?M:T;for(Y=0;Ymt||mt>F._length))for(L=Gt;Lyt||yt>A._length)){var qt=g({x:pt,y:Et},te,D._fullLayout);qt.x=pt,qt.y=Et;var Rt=G.z[Y][L];Rt===void 0?(qt.z="",qt.zLabel=""):(qt.z=Rt,qt.zLabel=f.tickText(ut,Rt,"hover").text);var jt=G.text&&G.text[Y]&&G.text[Y][L];jt!==void 0&&jt!==!1||(jt=""),qt.text=jt;var Tt=p.texttemplateString(Qe,qt,D._fullLayout._d3locale,qt,te._meta||{});if(Tt){var Pt=Tt.split("
"),Ot=Pt.length,It=0;for(W=0;W0&&(T=!0);for(var D=0;Dp){var h=p-d[u];return d[u]=p,h}}return 0},max:function(u,c,d,f){var p=f[c];if(s(p)){if(p=Number(p),!s(d[u]))return d[u]=p,p;if(d[u]h?x>d?x>1.1*u?u:x>1.1*c?c:d:x>f?f:x>p?p:h:Math.pow(10,Math.floor(Math.log(x)/Math.LN10))}function m(x,_,w,S,k,C){if(S&&x>d){var T=y(_,k,C),M=y(w,k,C),O=x===u?0:1;return T[O]!==M[O]}return Math.floor(w/x)-Math.floor(_/x)>.1}function y(x,_,w){var S=_.c2d(x,u,w).split("-");return S[0]===""&&(S.unshift(),S[0]="-"+S[0]),S}i.exports=function(x,_,w,S,k){var C,T,M=-1.1*_,O=-.1*_,D=x-O,P=w[0],E=w[1],I=Math.min(b(P+O,P+D,S,k),b(E+O,E+D,S,k)),A=Math.min(b(P+M,P+O,S,k),b(E+M,E+O,S,k));if(I>A&&Ad){var F=C===u?1:6,j=C===u?"M12":"M1";return function(B,z){var N=S.c2d(B,u,k),R=N.indexOf("-",F);R>0&&(N=N.substr(0,R));var q=S.d2c(N,0,k);if(qx.r2l(X)&&(ne=d.tickIncrement(ne,A.size,!0,T)),ee.start=x.l2r(ne),V||u.nestedProperty(y,P+".start").set(ee.start)}var ae=A.end,ie=x.r2l(te.end),se=ie!==void 0;if((A.endFound||se)&&ie!==x.r2l(ae)){var pe=se?ie:u.aggNums(Math.max,null,M);ee.end=x.l2r(pe),se||u.nestedProperty(y,P+".start").set(ee.end)}var ke="autobin"+_;return y._input[ke]===!1&&(y._input[P]=u.extendFlat({},y[P]||{}),delete y._input[ke],delete y[ke]),[ee,M]}i.exports={calc:function(m,y){var x,_,w,S,k=[],C=[],T=y.orientation==="h",M=d.getFromId(m,T?y.yaxis:y.xaxis),O=T?"y":"x",D={x:"y",y:"x"}[O],P=y[O+"calendar"],E=y.cumulative,I=v(m,y,M,O),A=I[0],F=I[1],j=typeof A.size=="string",B=[],z=j?B:A,N=[],R=[],q=[],Y=0,L=y.histnorm,W=y.histfunc,H=L.indexOf("density")!==-1;E.enabled&&H&&(L=L.replace(/ ?density$/,""),H=!1);var G,te=W==="max"||W==="min"?null:0,ee=p.count,U=h[L],Q=!1,V=function(re){return M.r2c(re,0,P)};for(u.isArrayOrTypedArray(y[D])&&W!=="count"&&(G=y[D],Q=W==="avg",ee=p[W]),x=V(A.start),w=V(A.end)+(x-d.tickIncrement(x,A.size,!1,P))/1e6;x=0&&S=0;ue--)Se(ue);else if(de==="increasing"){for(ue=1;ue=0;ue--)re[ue]+=re[ue+1];_e==="exclude"&&(re.push(0),re.shift())}}(C,E.direction,E.currentbin);var Oe=Math.min(k.length,C.length),Pe=[],ce=0,we=Oe-1;for(x=0;x=ce;x--)if(C[x]){we=x;break}for(x=ce;x<=we;x++)if(s(k[x])&&s(C[x])){var Z={p:k[x],s:C[x],b:0};E.enabled||(Z.pts=q[x],ie?Z.ph0=Z.ph1=q[x].length?F[q[x][0]]:k[x]:(y._computePh=!0,Z.ph0=ne(B[x]),Z.ph1=ne(B[x+1],!0))),Pe.push(Z)}return Pe.length===1&&(Pe[0].width1=d.tickIncrement(Pe[0].p,A.size,!1,P)-Pe[0].p),f(Pe,y),u.isArrayOrTypedArray(y.selectedpoints)&&u.tagSelected(Pe,y,ke),Pe},calcAllAutoBins:v}},72406:function(i){i.exports={eventDataKeys:["binNumber"]}},82222:function(i,o,a){var s=a(71828),u=a(41675),c=a(73972).traceIs,d=a(26125),f=s.nestedProperty,p=a(99082).getAxisGroup,h=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],g=["x","y"];i.exports=function(b,v){var m,y,x,_,w,S,k,C=v._histogramBinOpts={},T=[],M={},O=[];function D(H,G){return s.coerce(m._input,m,m._module.attributes,H,G)}function P(H){return H.orientation==="v"?"x":"y"}function E(H,G,te){var ee=H.uid+"__"+te;G||(G=ee);var U=function(K,ne){return u.getFromTrace({_fullLayout:v},K,ne).type}(H,te),Q=H[te+"calendar"]||"",V=C[G],X=!0;V&&(U===V.axType&&Q===V.calendar?(X=!1,V.traces.push(H),V.dirs.push(te)):(G=ee,U!==V.axType&&s.warn(["Attempted to group the bins of trace",H.index,"set on a","type:"+U,"axis","with bins on","type:"+V.axType,"axis."].join(" ")),Q!==V.calendar&&s.warn(["Attempted to group the bins of trace",H.index,"set with a",Q,"calendar","with bins",V.calendar?"on a "+V.calendar+" calendar":"w/o a set calendar"].join(" ")))),X&&(C[G]={traces:[H],dirs:[te],axType:U,calendar:H[te+"calendar"]||""}),H["_"+te+"bingroup"]=G}for(w=0;wB&&I.splice(B,I.length-B),j.length>B&&j.splice(B,j.length-B);var z=[],N=[],R=[],q=typeof E.size=="string",Y=typeof F.size=="string",L=[],W=[],H=q?L:E,G=Y?W:F,te=0,ee=[],U=[],Q=y.histnorm,V=y.histfunc,X=Q.indexOf("density")!==-1,K=V==="max"||V==="min"?null:0,ne=c.count,ae=d[Q],ie=!1,se=[],pe=[],ke="z"in y?y.z:"marker"in y&&Array.isArray(y.marker.color)?y.marker.color:"";ke&&V!=="count"&&(ie=V==="avg",ne=c[V]);var Ce=E.size,Oe=O(E.start),Pe=O(E.end)+(Oe-u.tickIncrement(Oe,Ce,!1,T))/1e6;for(x=Oe;x=0&&w=0&&S0||s.inbox(p-h.y0,p-(h.y0+h.h*g.dy),0)>0)){var m,y=Math.floor((f-h.x0)/g.dx),x=Math.floor(Math.abs(p-h.y0)/g.dy);if(g._hasZ?m=h.z[x][y]:g._hasSource&&(m=g._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(y,x,1,1).data),m){var _,w=h.hi||g.hoverinfo;if(w){var S=w.split("+");S.indexOf("all")!==-1&&(S=["color"]),S.indexOf("color")!==-1&&(_=!0)}var k,C=c.colormodel[g.colormodel],T=C.colormodel||g.colormodel,M=T.length,O=g._scaler(m),D=C.suffix,P=[];(g.hovertemplate||_)&&(P.push("["+[O[0]+D[0],O[1]+D[1],O[2]+D[2]].join(", ")),M===4&&P.push(", "+O[3]+D[3]),P.push("]"),P=P.join(""),d.extraText=T.toUpperCase()+": "+P),Array.isArray(g.hovertext)&&Array.isArray(g.hovertext[x])?k=g.hovertext[x][y]:Array.isArray(g.text)&&Array.isArray(g.text[x])&&(k=g.text[x][y]);var E=v.c2p(h.y0+(x+.5)*g.dy),I=h.x0+(y+.5)*g.dx,A=h.y0+(x+.5)*g.dy,F="["+m.slice(0,g.colormodel.length).join(", ")+"]";return[u.extendFlat(d,{index:[x,y],x0:b.c2p(h.x0+y*g.dx),x1:b.c2p(h.x0+(y+1)*g.dx),y0:E,y1:E,color:O,xVal:I,xLabelVal:I,yVal:A,yLabelVal:A,zLabelVal:F,text:k,hovertemplateLabels:{zLabel:F,colorLabel:P,"color[0]Label":O[0]+D[0],"color[1]Label":O[1]+D[1],"color[2]Label":O[2]+D[2],"color[3]Label":O[3]+D[3]}})]}}}},94507:function(i,o,a){i.exports={attributes:a(17230),supplyDefaults:a(13245),calc:a(71113),plot:a(60775),style:a(12826),hoverPoints:a(28749),eventData:a(30835),moduleType:"trace",name:"image",basePlotModule:a(93612),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}},60775:function(i,o,a){var s=a(39898),u=a(71828),c=u.strTranslate,d=a(77922),f=a(51877),p=a(3883),h=a(32396).STYLE;i.exports=function(g,b,v,m){var y=b.xaxis,x=b.yaxis,_=!g._context._exportedPlot&&p();u.makeTraceGroups(m,v,"im").each(function(w){var S=s.select(this),k=w[0],C=k.trace,T=(C.zsmooth==="fast"||C.zsmooth===!1&&_)&&!C._hasZ&&C._hasSource&&y.type==="linear"&&x.type==="linear";C._realImage=T;var M,O,D,P,E,I,A=k.z,F=k.x0,j=k.y0,B=k.w,z=k.h,N=C.dx,R=C.dy;for(I=0;M===void 0&&I0;)O=y.c2p(F+I*N),I--;for(I=0;P===void 0&&I0;)E=x.c2p(j+I*R),I--;OG[0];if(te||ee){var U=M+q/2,Q=P+Y/2;W+="transform:"+c(U+"px",Q+"px")+"scale("+(te?-1:1)+","+(ee?-1:1)+")"+c(-U+"px",-Q+"px")+";"}}L.attr("style",W);var V=new Promise(function(K){if(C._hasZ)K();else if(C._hasSource)if(C._canvas&&C._canvas.el.width===B&&C._canvas.el.height===z&&C._canvas.source===C.source)K();else{var ne=document.createElement("canvas");ne.width=B,ne.height=z;var ae=ne.getContext("2d",{willReadFrequently:!0});C._image=C._image||new Image;var ie=C._image;ie.onload=function(){ae.drawImage(ie,0,0),C._canvas={el:ne,source:C.source},K()},ie.setAttribute("src",C.source)}}).then(function(){var K,ne;if(C._hasZ)ne=X(function(ie,se){return A[se][ie]}),K=ne.toDataURL("image/png");else if(C._hasSource)if(T)K=C.source;else{var ae=C._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,B,z).data;ne=X(function(ie,se){var pe=4*(se*B+ie);return[ae[pe],ae[pe+1],ae[pe+2],ae[pe+3]]}),K=ne.toDataURL("image/png")}L.attr({"xlink:href":K,height:Y,width:q,x:M,y:P})});g._promises.push(V)}function X(K){var ne=document.createElement("canvas");ne.width=q,ne.height=Y;var ae,ie=ne.getContext("2d",{willReadFrequently:!0}),se=function(de){return u.constrain(Math.round(y.c2p(F+de*N)-M),0,q)},pe=function(de){return u.constrain(Math.round(x.c2p(j+de*R)-P),0,Y)},ke=f.colormodel[C.colormodel],Ce=ke.colormodel||C.colormodel,Oe=ke.fmt;for(I=0;I=0}),(g.type==="funnelarea"?D:g.sort)&&m.sort(function(F,j){return j.v-F.v}),m[0]&&(m[0].vTotal=O),m},crossTraceCalc:function(h,g){var b=(g||{}).type;b||(b="pie");var v=h._fullLayout,m=h.calcdata,y=v[b+"colorway"],x=v["_"+b+"colormap"];v["extend"+b+"colors"]&&(y=p(y,d));for(var _=0,w=0;w0){_=!0;break}}_||(x=0)}return{hasLabels:m,hasValues:y,len:x}}function g(b,v,m,y,x){y("marker.line.width")&&y("marker.line.color",x?void 0:m.paper_bgcolor);var _=y("marker.colors");p(y,"marker.pattern",_),b.marker&&!v.marker.pattern.fgcolor&&(v.marker.pattern.fgcolor=b.marker.colors),v.marker.pattern.bgcolor||(v.marker.pattern.bgcolor=m.paper_bgcolor)}i.exports={handleLabelsAndValues:h,handleMarkerDefaults:g,supplyDefaults:function(b,v,m,y){function x(D,P){return u.coerce(b,v,c,D,P)}var _=h(x("labels"),x("values")),w=_.len;if(v._hasLabels=_.hasLabels,v._hasValues=_.hasValues,!v._hasLabels&&v._hasValues&&(x("label0"),x("dlabel")),w){v._length=w,g(b,v,y,x,!0),x("scalegroup");var S,k=x("text"),C=x("texttemplate");if(C||(S=x("textinfo",Array.isArray(k)?"text+percent":"percent")),x("hovertext"),x("hovertemplate"),C||S&&S!=="none"){var T=x("textposition");f(b,v,y,x,T,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(T)||T==="auto"||T==="outside")&&x("automargin"),(T==="inside"||T==="auto"||Array.isArray(T))&&x("insidetextorientation")}d(v,y,x);var M=x("hole");if(x("title.text")){var O=x("title.position",M?"middle center":"top center");M||O!=="middle center"||(v.title.position="top center"),u.coerceFont(x,"title.font",y.font)}x("sort"),x("direction"),x("rotation"),x("pull")}else v.visible=!1}}},20007:function(i,o,a){var s=a(23469).appendArrayMultiPointValues;i.exports=function(u,c){var d={curveNumber:c.index,pointNumbers:u.pts,data:c._input,fullData:c,label:u.label,color:u.color,value:u.v,percent:u.percent,text:u.text,bbox:u.bbox,v:u.v};return u.pts.length===1&&(d.pointNumber=d.i=u.pts[0]),s(d,c,u.pts),c.type==="funnelarea"&&(delete d.v,delete d.i),d}},22209:function(i,o,a){var s=a(91424),u=a(7901);i.exports=function(c,d,f,p){var h=f.marker.pattern;h&&h.shape?s.pointStyle(c,f,p,d):u.fill(c,d.color)}},53581:function(i,o,a){var s=a(71828);function u(c){return c.indexOf("e")!==-1?c.replace(/[.]?0+e/,"e"):c.indexOf(".")!==-1?c.replace(/[.]?0+$/,""):c}o.formatPiePercent=function(c,d){var f=u((100*c).toPrecision(3));return s.numSeparate(f,d)+"%"},o.formatPieValue=function(c,d){var f=u(c.toPrecision(10));return s.numSeparate(f,d)},o.getFirstFilled=function(c,d){if(Array.isArray(c))for(var f=0;f"),name:K.hovertemplate||ne.indexOf("name")!==-1?K.name:void 0,idealAlign:V.pxmid[0]<0?"left":"right",color:_.castOption(Oe.bgcolor,V.pts)||V.color,borderColor:_.castOption(Oe.bordercolor,V.pts),fontFamily:_.castOption(Pe.family,V.pts),fontSize:_.castOption(Pe.size,V.pts),fontColor:_.castOption(Pe.color,V.pts),nameLength:_.castOption(Oe.namelength,V.pts),textAlign:_.castOption(Oe.align,V.pts),hovertemplate:_.castOption(K.hovertemplate,V.pts),hovertemplateLabels:V,eventData:[w(V,K)]},{container:X._hoverlayer.node(),outerContainer:X._paper.node(),gd:W,inOut_bbox:ce}),V.bbox=ce[0],U._hasHoverLabel=!0}U._hasHoverEvent=!0,W.emit("plotly_hover",{points:[w(V,K)],event:s.event})}}),L.on("mouseout",function(V){var X=W._fullLayout,K=W._fullData[U.index],ne=s.select(this).datum();U._hasHoverEvent&&(V.originalEvent=s.event,W.emit("plotly_unhover",{points:[w(ne,K)],event:s.event}),U._hasHoverEvent=!1),U._hasHoverLabel&&(c.loneUnhover(X._hoverlayer.node()),U._hasHoverLabel=!1)}),L.on("click",function(V){var X=W._fullLayout,K=W._fullData[U.index];W._dragging||X.hovermode===!1||(W._hoverdata=[w(V,K)],c.click(W,s.event))})}function C(L,W,H){var G=_.castOption(L.insidetextfont.color,W.pts);!G&&L._input.textfont&&(G=_.castOption(L._input.textfont.color,W.pts));var te=_.castOption(L.insidetextfont.family,W.pts)||_.castOption(L.textfont.family,W.pts)||H.family,ee=_.castOption(L.insidetextfont.size,W.pts)||_.castOption(L.textfont.size,W.pts)||H.size;return{color:G||d.contrast(W.color),family:te,size:ee}}function T(L,W){for(var H,G,te=0;teye&&ye>Ae||Se=-4;ke-=2)Ce(Math.PI*ke,"tan");for(ke=4;ke>=-4;ke-=2)Ce(Math.PI*(ke+1),"tan")}if(ne||ie){for(ke=4;ke>=-4;ke-=2)Ce(Math.PI*(ke+1.5),"rad");for(ke=4;ke>=-4;ke-=2)Ce(Math.PI*(ke+.5),"rad")}}if(Q||se||ne){var Oe=Math.sqrt(L.width*L.width+L.height*L.height);if((ee={scale:te*G*2/Oe,rCenter:1-te,rotate:0}).textPosAngle=(W.startangle+W.stopangle)/2,ee.scale>=1)return ee;pe.push(ee)}(se||ie)&&((ee=O(L,G,U,V,X)).textPosAngle=(W.startangle+W.stopangle)/2,pe.push(ee)),(se||ae)&&((ee=D(L,G,U,V,X)).textPosAngle=(W.startangle+W.stopangle)/2,pe.push(ee));for(var Pe=0,ce=0,we=0;we=1)break}return pe[Pe]}function O(L,W,H,G,te){W=Math.max(0,W-2*x);var ee=L.width/L.height,U=I(ee,G,W,H);return{scale:2*U/L.height,rCenter:P(ee,U/W),rotate:E(te)}}function D(L,W,H,G,te){W=Math.max(0,W-2*x);var ee=L.height/L.width,U=I(ee,G,W,H);return{scale:2*U/L.width,rCenter:P(ee,U/W),rotate:E(te+Math.PI/2)}}function P(L,W){return Math.cos(W)-L*W}function E(L){return(180/Math.PI*L+720)%180-90}function I(L,W,H,G){var te=L+1/(2*Math.tan(W));return H*Math.min(1/(Math.sqrt(te*te+.5)+te),G/(Math.sqrt(L*L+G/2)+L))}function A(L,W){return L.v!==W.vTotal||W.trace.hole?Math.min(1/(1+1/Math.sin(L.halfangle)),L.ring/2):1}function F(L,W){var H=W.pxmid[0],G=W.pxmid[1],te=L.width/2,ee=L.height/2;return H<0&&(te*=-1),G<0&&(ee*=-1),{scale:1,rCenter:1,rotate:0,x:te+Math.abs(ee)*(te>0?1:-1)/2,y:ee/(1+H*H/(G*G)),outside:!0}}function j(L,W){var H,G,te,ee=L.trace,U={x:L.cx,y:L.cy},Q={tx:0,ty:0};Q.ty+=ee.title.font.size,te=z(ee),ee.title.position.indexOf("top")!==-1?(U.y-=(1+te)*L.r,Q.ty-=L.titleBox.height):ee.title.position.indexOf("bottom")!==-1&&(U.y+=(1+te)*L.r);var V,X=L.r/((V=L.trace.aspectratio)===void 0?1:V),K=W.w*(ee.domain.x[1]-ee.domain.x[0])/2;return ee.title.position.indexOf("left")!==-1?(K+=X,U.x-=(1+te)*X,Q.tx+=L.titleBox.width/2):ee.title.position.indexOf("center")!==-1?K*=2:ee.title.position.indexOf("right")!==-1&&(K+=X,U.x+=(1+te)*X,Q.tx-=L.titleBox.width/2),H=K/L.titleBox.width,G=B(L,W)/L.titleBox.height,{x:U.x,y:U.y,scale:Math.min(H,G),tx:Q.tx,ty:Q.ty}}function B(L,W){var H=L.trace,G=W.h*(H.domain.y[1]-H.domain.y[0]);return Math.min(L.titleBox.height,G/2)}function z(L){var W,H=L.pull;if(!H)return 0;if(Array.isArray(H))for(H=0,W=0;WH&&(H=L.pull[W]);return H}function N(L,W){for(var H=[],G=0;G1?we=(ce=ie.r)/pe.aspectratio:ce=(we=ie.r)*pe.aspectratio,Pe=(ce*=(1+pe.baseratio)/2)*we}Ce=Math.min(Ce,Pe/ie.vTotal)}for(se=0;se")}if(ee){var ke=p.castOption(te,W.i,"texttemplate");if(ke){var Ce=function(Pe){return{label:Pe.label,value:Pe.v,valueLabel:_.formatPieValue(Pe.v,G.separators),percent:Pe.v/H.vTotal,percentLabel:_.formatPiePercent(Pe.v/H.vTotal,G.separators),color:Pe.color,text:Pe.text,customdata:p.castOption(te,Pe.i,"customdata")}}(W),Oe=_.getFirstFilled(te.text,W.pts);(S(Oe)||Oe==="")&&(Ce.text=Oe),W.text=p.texttemplateString(ke,Ce,L._fullLayout._d3locale,Ce,te._meta||{})}else W.text=""}}function Y(L,W){var H=L.rotate*Math.PI/180,G=Math.cos(H),te=Math.sin(H),ee=(W.left+W.right)/2,U=(W.top+W.bottom)/2;L.textX=ee*G-U*te,L.textY=ee*te+U*G,L.noCenter=!0}i.exports={plot:function(L,W){var H=L._context.staticPlot,G=L._fullLayout,te=G._size;y("pie",G),T(W,L),N(W,te);var ee=p.makeTraceGroups(G._pielayer,W,"trace").each(function(U){var Q=s.select(this),V=U[0],X=V.trace;(function(K){var ne,ae,ie,se=K[0],pe=se.r,ke=se.trace,Ce=_.getRotationAngle(ke.rotation),Oe=2*Math.PI/se.vTotal,Pe="px0",ce="px1";if(ke.direction==="counterclockwise"){for(ne=0;nese.vTotal/2?1:0,ae.halfangle=Math.PI*Math.min(ae.v/se.vTotal,.5),ae.ring=1-ke.hole,ae.rInscribed=A(ae,se))})(U),Q.attr("stroke-linejoin","round"),Q.each(function(){var K=s.select(this).selectAll("g.slice").data(U);K.enter().append("g").classed("slice",!0),K.exit().remove();var ne=[[[],[]],[[],[]]],ae=!1;K.each(function(ce,we){if(ce.hidden)s.select(this).selectAll("path,g").remove();else{ce.pointNumber=ce.i,ce.curveNumber=X.index,ne[ce.pxmid[1]<0?0:1][ce.pxmid[0]<0?0:1].push(ce);var Z=V.cx,re=V.cy,de=s.select(this),_e=de.selectAll("path.surface").data([ce]);if(_e.enter().append("path").classed("surface",!0).style({"pointer-events":H?"none":"all"}),de.call(k,L,U),X.pull){var ue=+_.castOption(X.pull,ce.pts)||0;ue>0&&(Z+=ue*ce.pxmid[0],re+=ue*ce.pxmid[1])}ce.cxFinal=Z,ce.cyFinal=re;var me=X.hole;if(ce.v===V.vTotal){var xe="M"+(Z+ce.px0[0])+","+(re+ce.px0[1])+Re(ce.px0,ce.pxmid,!0,1)+Re(ce.pxmid,ce.px0,!0,1)+"Z";me?_e.attr("d","M"+(Z+me*ce.px0[0])+","+(re+me*ce.px0[1])+Re(ce.px0,ce.pxmid,!1,me)+Re(ce.pxmid,ce.px0,!1,me)+"Z"+xe):_e.attr("d",xe)}else{var ye=Re(ce.px0,ce.px1,!0,1);if(me){var Se=1-me;_e.attr("d","M"+(Z+me*ce.px1[0])+","+(re+me*ce.px1[1])+Re(ce.px1,ce.px0,!1,me)+"l"+Se*ce.px0[0]+","+Se*ce.px0[1]+ye+"Z")}else _e.attr("d","M"+Z+","+re+"l"+ce.px0[0]+","+ce.px0[1]+ye+"Z")}q(L,ce,V);var Ae=_.castOption(X.textposition,ce.pts),Le=de.selectAll("g.slicetext").data(ce.text&&Ae!=="none"?[0]:[]);Le.enter().append("g").classed("slicetext",!0),Le.exit().remove(),Le.each(function(){var Ie=p.ensureSingle(s.select(this),"text","",function(st){st.attr("data-notex",1)}),Ne=p.ensureUniformFontSize(L,Ae==="outside"?function(st,bt,Be){return{color:_.castOption(st.outsidetextfont.color,bt.pts)||_.castOption(st.textfont.color,bt.pts)||Be.color,family:_.castOption(st.outsidetextfont.family,bt.pts)||_.castOption(st.textfont.family,bt.pts)||Be.family,size:_.castOption(st.outsidetextfont.size,bt.pts)||_.castOption(st.textfont.size,bt.pts)||Be.size}}(X,ce,G.font):C(X,ce,G.font));Ie.text(ce.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(f.font,Ne).call(b.convertToTspans,L);var ze,qe=f.bBox(Ie.node());if(Ae==="outside")ze=F(qe,ce);else if(ze=M(qe,ce,V),Ae==="auto"&&ze.scale<1){var We=p.ensureUniformFontSize(L,X.outsidetextfont);Ie.call(f.font,We),ze=F(qe=f.bBox(Ie.node()),ce)}var Ge=ze.textPosAngle,ot=Ge===void 0?ce.pxmid:R(V.r,Ge);if(ze.targetX=Z+ot[0]*ze.rCenter+(ze.x||0),ze.targetY=re+ot[1]*ze.rCenter+(ze.y||0),Y(ze,qe),ze.outside){var Je=ze.targetY;ce.yLabelMin=Je-qe.height/2,ce.yLabelMid=Je,ce.yLabelMax=Je+qe.height/2,ce.labelExtraX=0,ce.labelExtraY=0,ae=!0}ze.fontSize=Ne.size,m(X.type,ze,G),U[we].transform=ze,p.setTransormAndDisplay(Ie,ze)})}function Re(Ie,Ne,ze,qe){var We=qe*(Ne[0]-Ie[0]),Ge=qe*(Ne[1]-Ie[1]);return"a"+qe*V.r+","+qe*V.r+" 0 "+ce.largeArc+(ze?" 1 ":" 0 ")+We+","+Ge}});var ie=s.select(this).selectAll("g.titletext").data(X.title.text?[0]:[]);if(ie.enter().append("g").classed("titletext",!0),ie.exit().remove(),ie.each(function(){var ce,we=p.ensureSingle(s.select(this),"text","",function(re){re.attr("data-notex",1)}),Z=X.title.text;X._meta&&(Z=p.templateString(Z,X._meta)),we.text(Z).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(f.font,X.title.font).call(b.convertToTspans,L),ce=X.title.position==="middle center"?function(re){var de=Math.sqrt(re.titleBox.width*re.titleBox.width+re.titleBox.height*re.titleBox.height);return{x:re.cx,y:re.cy,scale:re.trace.hole*re.r*2/de,tx:0,ty:-re.titleBox.height/2+re.trace.title.font.size}}(V):j(V,te),we.attr("transform",g(ce.x,ce.y)+h(Math.min(1,ce.scale))+g(ce.tx,ce.ty))}),ae&&function(ce,we){var Z,re,de,_e,ue,me,xe,ye,Se,Ae,Le,Re,Ie;function Ne(Ge,ot){return Ge.pxmid[1]-ot.pxmid[1]}function ze(Ge,ot){return ot.pxmid[1]-Ge.pxmid[1]}function qe(Ge,ot){ot||(ot={});var Je,st,bt,Be,je=ot.labelExtraY+(re?ot.yLabelMax:ot.yLabelMin),tt=re?Ge.yLabelMin:Ge.yLabelMax,it=re?Ge.yLabelMax:Ge.yLabelMin,St=Ge.cyFinal+ue(Ge.px0[1],Ge.px1[1]),et=je-tt;if(et*xe>0&&(Ge.labelExtraY=et),Array.isArray(we.pull))for(st=0;st=(_.castOption(we.pull,bt.pts)||0)||((Ge.pxmid[1]-bt.pxmid[1])*xe>0?(et=bt.cyFinal+ue(bt.px0[1],bt.px1[1])-tt-Ge.labelExtraY)*xe>0&&(Ge.labelExtraY+=et):(it+Ge.labelExtraY-St)*xe>0&&(Je=3*me*Math.abs(st-Ae.indexOf(Ge)),(Be=bt.cxFinal+_e(bt.px0[0],bt.px1[0])+Je-(Ge.cxFinal+Ge.pxmid[0])-Ge.labelExtraX)*me>0&&(Ge.labelExtraX+=Be)))}for(re=0;re<2;re++)for(de=re?Ne:ze,ue=re?Math.max:Math.min,xe=re?1:-1,Z=0;Z<2;Z++){for(_e=Z?Math.max:Math.min,me=Z?1:-1,(ye=ce[re][Z]).sort(de),Se=ce[1-re][Z],Ae=Se.concat(ye),Re=[],Le=0;LeMath.abs(ye)?ue+="l"+ye*Z.pxmid[0]/Z.pxmid[1]+","+ye+"H"+(_e+Z.labelExtraX+me):ue+="l"+Z.labelExtraX+","+xe+"v"+(ye-xe)+"h"+me}else ue+="V"+(Z.yLabelMid+Z.labelExtraY)+"h"+me;p.ensureSingle(re,"path","textline").call(d.stroke,we.outsidetextfont.color).attr({"stroke-width":Math.min(2,we.outsidetextfont.size/8),d:ue,fill:"none"})}else re.select("path.textline").remove()})}(K,X),ae&&X.automargin){var se=f.bBox(Q.node()),pe=X.domain,ke=te.w*(pe.x[1]-pe.x[0]),Ce=te.h*(pe.y[1]-pe.y[0]),Oe=(.5*ke-V.r)/te.w,Pe=(.5*Ce-V.r)/te.h;u.autoMargin(L,"pie."+X.uid+".automargin",{xl:pe.x[0]-Oe,xr:pe.x[1]+Oe,yb:pe.y[0]-Pe,yt:pe.y[1]+Pe,l:Math.max(V.cx-V.r-se.left,0),r:Math.max(se.right-(V.cx+V.r),0),b:Math.max(se.bottom-(V.cy+V.r),0),t:Math.max(V.cy-V.r-se.top,0),pad:5})}})});setTimeout(function(){ee.selectAll("tspan").each(function(){var U=s.select(this);U.attr("dy")&&U.attr("dy",U.attr("dy"))})},0)},formatSliceLabel:q,transformInsideText:M,determineInsideTextFont:C,positionTitleOutside:j,prerenderTitles:T,layoutAreas:N,attachFxHandlers:k,computeTransform:Y}},68357:function(i,o,a){var s=a(39898),u=a(63463),c=a(72597).resizeText;i.exports=function(d){var f=d._fullLayout._pielayer.selectAll(".trace");c(d,f,"pie"),f.each(function(p){var h=p[0].trace,g=s.select(this);g.style({opacity:h.opacity}),g.selectAll("path.surface").each(function(b){s.select(this).call(u,b,h,d)})})}},63463:function(i,o,a){var s=a(7901),u=a(53581).castOption,c=a(22209);i.exports=function(d,f,p,h){var g=p.marker.line,b=u(g.color,f.pts)||s.defaultLine,v=u(g.width,f.pts)||0;d.call(c,f,p,h).style("stroke-width",v).call(s.stroke,b)}},75225:function(i,o,a){var s=a(71828);i.exports=function(u,c){for(var d=0;dC&&q[M].gap;)M--;for(D=q[M].s,T=q.length-1;T>M;T--)q[T].s=D;for(;Cj[y]&&y=0;y--){var x=d[y];if(x.type==="scatter"&&x.xaxis===v.xaxis&&x.yaxis===v.yaxis){x.opacity=void 0;break}}}}}},17438:function(i,o,a){var s=a(71828),u=a(73972),c=a(82196),d=a(47581),f=a(34098),p=a(67513),h=a(73927),g=a(565),b=a(49508),v=a(11058),m=a(94039),y=a(82410),x=a(28908),_=a(71828).coercePattern;i.exports=function(w,S,k,C){function T(F,j){return s.coerce(w,S,c,F,j)}var M=p(w,S,C,T);if(M||(S.visible=!1),S.visible){h(w,S,C,T),T("xhoverformat"),T("yhoverformat");var O=g(w,S,C,T);C.scattermode==="group"&&S.orientation===void 0&&T("orientation","v");var D=!O&&M=Math.min(ke,Ce)&&w<=Math.max(ke,Ce)?0:1/0}var Oe=Math.max(3,pe.mrc||0),Pe=1-1/Oe,ce=Math.abs(x.c2p(pe.x)-w);return ce=Math.min(ke,Ce)&&S<=Math.max(ke,Ce)?0:1/0}var Oe=Math.max(3,pe.mrc||0),Pe=1-1/Oe,ce=Math.abs(_.c2p(pe.y)-S);return ceie!=(ee=L[q][1])>=ie&&(H=L[q-1][0],G=L[q][0],ee-te&&(W=H+(G-H)*(ie-te)/(ee-te),X=Math.min(X,W),K=Math.max(K,W)));X=Math.max(X,0),K=Math.min(K,x._length);var se=f.defaultLine;return f.opacity(y.fillcolor)?se=y.fillcolor:f.opacity((y.line||{}).color)&&(se=y.line.color),s.extendFlat(h,{distance:h.maxHoverDistance,x0:X,x1:K,y0:ie,y1:ie,color:se,hovertemplate:!1}),delete h.index,y.text&&!Array.isArray(y.text)?h.text=String(y.text):h.text=y.name,[h]}}}},67368:function(i,o,a){var s=a(34098);i.exports={hasLines:s.hasLines,hasMarkers:s.hasMarkers,hasText:s.hasText,isBubble:s.isBubble,attributes:a(82196),layoutAttributes:a(21479),supplyDefaults:a(17438),crossTraceDefaults:a(34936),supplyLayoutDefaults:a(79334),calc:a(47761).calc,crossTraceCalc:a(72626),arraysToCalcdata:a(75225),plot:a(32663),colorbar:a(4898),formatLabels:a(8225),style:a(16296).style,styleOnSelect:a(16296).styleOnSelect,hoverPoints:a(33720),selectPoints:a(98002),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:a(93612),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}},21479:function(i){i.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}},79334:function(i,o,a){var s=a(71828),u=a(21479);i.exports=function(c,d){var f,p=d.barmode==="group";d.scattermode==="group"&&(f=p?d.bargap:.2,s.coerce(c,d,u,"scattergap",f))}},11058:function(i,o,a){var s=a(71828).isArrayOrTypedArray,u=a(52075).hasColorscale,c=a(1586);i.exports=function(d,f,p,h,g,b){b||(b={});var v=(d.marker||{}).color;g("line.color",p),u(d,"line")?c(d,f,h,g,{prefix:"line.",cLetter:"c"}):g("line.color",!s(v)&&v||p),g("line.width"),b.noDash||g("line.dash"),b.backoff&&g("line.backoff")}},34621:function(i,o,a){var s=a(91424),u=a(50606),c=u.BADNUM,d=u.LOG_CLIP,f=d+.5,p=d-.5,h=a(71828),g=h.segmentsIntersect,b=h.constrain,v=a(47581);i.exports=function(m,y){var x,_,w,S,k,C,T,M,O,D,P,E,I,A,F,j,B,z,N=y.trace||{},R=y.xaxis,q=y.yaxis,Y=R.type==="log",L=q.type==="log",W=R._length,H=q._length,G=y.backoff,te=N.marker,ee=y.connectGaps,U=y.baseTolerance,Q=y.shape,V=Q==="linear",X=N.fill&&N.fill!=="none",K=[],ne=v.minTolerance,ae=m.length,ie=new Array(ae),se=0;function pe(et){var ct=m[et];if(!ct)return!1;var ht=y.linearized?R.l2p(ct.x):R.c2p(ct.x),$t=y.linearized?q.l2p(ct.y):q.c2p(ct.y);if(ht===c){if(Y&&(ht=R.c2p(ct.x,!0)),ht===c)return!1;L&&$t===c&&(ht*=Math.abs(R._m*H*(R._m>0?f:p)/(q._m*W*(q._m>0?f:p)))),ht*=1e3}if($t===c){if(L&&($t=q.c2p(ct.y,!0)),$t===c)return!1;$t*=1e3}return[ht,$t]}function ke(et,ct,ht,$t){var kt=ht-et,Wt=$t-ct,wt=.5-et,be=.5-ct,Me=kt*kt+Wt*Wt,Ve=kt*wt+Wt*be;if(Ve>0&&Vexe||et[1]Se)return[b(et[0],me,xe),b(et[1],ye,Se)]}function Re(et,ct){return et[0]===ct[0]&&(et[0]===me||et[0]===xe)||et[1]===ct[1]&&(et[1]===ye||et[1]===Se)||void 0}function Ie(et,ct,ht){return function($t,kt){var Wt=Le($t),wt=Le(kt),be=[];if(Wt&&wt&&Re(Wt,wt))return be;Wt&&be.push(Wt),wt&&be.push(wt);var Me=2*h.constrain(($t[et]+kt[et])/2,ct,ht)-((Wt||$t)[et]+(wt||kt)[et]);return Me&&((Wt&&wt?Me>0==Wt[et]>wt[et]?Wt:wt:Wt||wt)[et]+=Me),be}}function Ne(et){var ct=et[0],ht=et[1],$t=ct===ie[se-1][0],kt=ht===ie[se-1][1];if(!$t||!kt)if(se>1){var Wt=ct===ie[se-2][0],wt=ht===ie[se-2][1];$t&&(ct===me||ct===xe)&&Wt?wt?se--:ie[se-1]=et:kt&&(ht===ye||ht===Se)&&wt?Wt?se--:ie[se-1]=et:ie[se++]=et}else ie[se++]=et}function ze(et){ie[se-1][0]!==et[0]&&ie[se-1][1]!==et[1]&&Ne([we,Z]),Ne(et),re=null,we=Z=0}Q==="linear"||Q==="spline"?_e=function(et,ct){for(var ht=[],$t=0,kt=0;kt<4;kt++){var Wt=Ae[kt],wt=g(et[0],et[1],ct[0],ct[1],Wt[0],Wt[1],Wt[2],Wt[3]);wt&&(!$t||Math.abs(wt.x-ht[0][0])>1||Math.abs(wt.y-ht[0][1])>1)&&(wt=[wt.x,wt.y],$t&&Oe(wt,et)xe?xe:0,ce=et[1]Se?Se:0,Pe||ce){if(se)if(re){var ct=_e(re,et);ct.length>1&&(ze(ct[0]),ie[se++]=ct[1])}else de=_e(ie[se-1],et)[0],ie[se++]=de;else ie[se++]=[Pe||et[0],ce||et[1]];var ht=ie[se-1];Pe&&ce&&(ht[0]!==Pe||ht[1]!==ce)?(re&&(we!==Pe&&Z!==ce?Ne(we&&Z?($t=re,Wt=(kt=et)[0]-$t[0],wt=(kt[1]-$t[1])/Wt,($t[1]*kt[0]-kt[1]*$t[0])/Wt>0?[wt>0?me:xe,Se]:[wt>0?xe:me,ye]):[we||Pe,Z||ce]):we&&Z&&Ne([we,Z])),Ne([Pe,ce])):we-Pe&&Z-ce&&Ne([Pe||we,ce||Z]),re=et,we=Pe,Z=ce}else re&&ze(_e(re,et)[0]),ie[se++]=et;var $t,kt,Wt,wt}for(x=0;xCe(C,Ge))break;w=C,(I=O[0]*M[0]+O[1]*M[1])>P?(P=I,S=C,T=!1):I=m.length||!C)break;We(C),_=C}}else We(S)}re&&Ne([we||re[0],Z||re[1]]),K.push(ie.slice(0,se))}var ot=Q.slice(Q.length-1);if(G&&ot!=="h"&&ot!=="v"){for(var Je=!1,st=-1,bt=[],Be=0;Be=0?h=y:(h=y=m,m++),h0?Math.max(b,p):0}}},4898:function(i){i.exports={container:"marker",min:"cmin",max:"cmax"}},49508:function(i,o,a){var s=a(7901),u=a(52075).hasColorscale,c=a(1586),d=a(34098);i.exports=function(f,p,h,g,b,v){var m=d.isBubble(f),y=(f.line||{}).color;v=v||{},y&&(h=y),b("marker.symbol"),b("marker.opacity",m?.7:1),b("marker.size"),v.noAngle||(b("marker.angle"),v.noAngleRef||b("marker.angleref"),v.noStandOff||b("marker.standoff")),b("marker.color",h),u(f,"marker")&&c(f,p,g,b,{prefix:"marker.",cLetter:"c"}),v.noSelect||(b("selected.marker.color"),b("unselected.marker.color"),b("selected.marker.size"),b("unselected.marker.size")),v.noLine||(b("marker.line.color",y&&!Array.isArray(y)&&p.marker.color!==y?y:m?s.background:s.defaultLine),u(f,"marker.line")&&c(f,p,g,b,{prefix:"marker.line.",cLetter:"c"}),b("marker.line.width",m?1:0)),m&&(b("marker.sizeref"),b("marker.sizemin"),b("marker.sizemode")),v.gradient&&b("marker.gradient.type")!=="none"&&b("marker.gradient.color")}},73927:function(i,o,a){var s=a(71828).dateTick0,u=a(50606).ONEWEEK;function c(d,f){return s(f,d%u==0?1:0)}i.exports=function(d,f,p,h,g){if(g||(g={x:!0,y:!0}),g.x){var b=h("xperiod");b&&(h("xperiod0",c(b,f.xcalendar)),h("xperiodalignment"))}if(g.y){var v=h("yperiod");v&&(h("yperiod0",c(v,f.ycalendar)),h("yperiodalignment"))}}},32663:function(i,o,a){var s=a(39898),u=a(73972),c=a(71828),d=c.ensureSingle,f=c.identity,p=a(91424),h=a(34098),g=a(34621),b=a(68687),v=a(61082).tester;function m(y,x,_,w,S,k,C){var T,M=y._context.staticPlot;(function(_e,ue,me,xe,ye){var Se=me.xaxis,Ae=me.yaxis,Le=s.extent(c.simpleMap(Se.range,Se.r2c)),Re=s.extent(c.simpleMap(Ae.range,Ae.r2c)),Ie=xe[0].trace;if(h.hasMarkers(Ie)){var Ne=Ie.marker.maxdisplayed;if(Ne!==0){var ze=xe.filter(function(ot){return ot.x>=Le[0]&&ot.x<=Le[1]&&ot.y>=Re[0]&&ot.y<=Re[1]}),qe=Math.ceil(ze.length/Ne),We=0;ye.forEach(function(ot,Je){var st=ot[0].trace;h.hasMarkers(st)&&st.marker.maxdisplayed>0&&Je0;function D(_e){return O?_e.transition():_e}var P=_.xaxis,E=_.yaxis,I=w[0].trace,A=I.line,F=s.select(k),j=d(F,"g","errorbars"),B=d(F,"g","lines"),z=d(F,"g","points"),N=d(F,"g","text");if(u.getComponentMethod("errorbars","plot")(y,j,_,C),I.visible===!0){var R,q;D(F).style("opacity",I.opacity);var Y=I.fill.charAt(I.fill.length-1);Y!=="x"&&Y!=="y"&&(Y=""),w[0][_.isRangePlot?"nodeRangePlot3":"node3"]=F;var L,W,H="",G=[],te=I._prevtrace;te&&(H=te._prevRevpath||"",q=te._nextFill,G=te._polygons);var ee,U,Q,V,X,K,ne,ae="",ie="",se=[],pe=c.noop;if(R=I._ownFill,h.hasLines(I)||I.fill!=="none"){for(q&&q.datum(w),["hv","vh","hvh","vhv"].indexOf(A.shape)!==-1?(ee=p.steps(A.shape),U=p.steps(A.shape.split("").reverse().join(""))):ee=U=A.shape==="spline"?function(_e){var ue=_e[_e.length-1];return _e.length>1&&_e[0][0]===ue[0]&&_e[0][1]===ue[1]?p.smoothclosed(_e.slice(1),A.smoothing):p.smoothopen(_e,A.smoothing)}:function(_e){return"M"+_e.join("L")},Q=function(_e){return U(_e.reverse())},se=g(w,{xaxis:P,yaxis:E,trace:I,connectGaps:I.connectgaps,baseTolerance:Math.max(A.width||1,3)/4,shape:A.shape,backoff:A.backoff,simplify:A.simplify,fill:I.fill}),ne=I._polygons=new Array(se.length),T=0;T0,D=b(y,x,_);(C=w.selectAll("g.trace").data(D,function(P){return P[0].trace.uid})).enter().append("g").attr("class",function(P){return"trace scatter trace"+P[0].trace.uid}).style("stroke-miterlimit",2),C.order(),function(P,E,I){E.each(function(A){var F=d(s.select(this),"g","fills");p.setClipUrl(F,I.layerClipId,P);var j=A[0].trace,B=[];j._ownfill&&B.push("_ownFill"),j._nexttrace&&B.push("_nextFill");var z=F.selectAll("g").data(B,f);z.enter().append("g"),z.exit().each(function(N){j[N]=null}).remove(),z.order().each(function(N){j[N]=d(s.select(this),"path","js-fill")})})}(y,C,x),O?(k&&(T=k()),s.transition().duration(S.duration).ease(S.easing).each("end",function(){T&&T()}).each("interrupt",function(){T&&T()}).each(function(){w.selectAll("g.trace").each(function(P,E){m(y,E,x,P,D,this,S)})})):C.each(function(P,E){m(y,E,x,P,D,this,S)}),M&&C.exit().remove(),w.selectAll("path:not([d])").remove()}},98002:function(i,o,a){var s=a(34098);i.exports=function(u,c){var d,f,p,h,g=u.cd,b=u.xaxis,v=u.yaxis,m=[],y=g[0].trace;if(!s.hasMarkers(y)&&!s.hasText(y))return[];if(c===!1)for(d=0;d"),h.hovertemplate=x.hovertemplate,p}function M(O,D){C.push(O._hovertitle+": "+D)}}},52979:function(i,o,a){i.exports={attributes:a(50413),supplyDefaults:a(46008),colorbar:a(4898),formatLabels:a(93645),calc:a(54337),plot:a(7507),style:a(16296).style,styleOnSelect:a(16296).styleOnSelect,hoverPoints:a(47250),selectPoints:a(98002),eventData:a(4524),moduleType:"trace",name:"scatterternary",basePlotModule:a(61639),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}},7507:function(i,o,a){var s=a(32663);i.exports=function(u,c,d){var f=c.plotContainer;f.select(".scatterlayer").selectAll("*").remove();for(var p=c.xaxis,h=c.yaxis,g={xaxis:p,yaxis:h,plot:f,layerClipId:c._hasClipOnAxisFalse?c.clipIdRelative:null},b=c.layers.frontplot.select("g.scatterlayer"),v=0;v0){var O,D,P,E,I,A=p.xa,F=p.ya;w.orientation==="h"?(I=h,O="y",P=F,D="x",E=A):(I=g,O="x",P=A,D="y",E=F);var j=_[p.index];if(I>=j.span[0]&&I<=j.span[1]){var B=u.extendFlat({},p),z=E.c2p(I,!0),N=f.getKdeValue(j,w,I),R=f.getPositionOnKdePath(j,w,z),q=P._offset,Y=P._length;B[O+"0"]=R[0],B[O+"1"]=R[1],B[D+"0"]=B[D+"1"]=z,B[D+"Label"]=D+": "+c.hoverLabelText(E,I,w[D+"hoverformat"])+", "+_[0].t.labels.kde+" "+N.toFixed(3);for(var L=0,W=0;Wz&&(z=Y,N=q)}}return z?A(N):f};case"rms":return function(F,j){for(var B=0,z=0,N=0;N":return function(G){return H(G)>L};case">=":return function(G){return H(G)>=L};case"[]":return function(G){var te=H(G);return te>=L[0]&&te<=L[1]};case"()":return function(G){var te=H(G);return te>L[0]&&te=L[0]&&teL[0]&&te<=L[1]};case"][":return function(G){var te=H(G);return te<=L[0]||te>=L[1]};case")(":return function(G){var te=H(G);return teL[1]};case"](":return function(G){var te=H(G);return te<=L[0]||te>L[1]};case")[":return function(G){var te=H(G);return te=L[1]};case"{}":return function(G){return L.indexOf(H(G))!==-1};case"}{":return function(G){return L.indexOf(H(G))===-1}}}(m,c.getDataToCoordFunc(b,v,x,y),w),D={},P={},E=0;k?(T=function(j){D[j.astr]=s.extendDeep([],j.get()),j.set(new Array(_))},M=function(j,B){var z=D[j.astr][B];j.get()[B]=z}):(T=function(j){D[j.astr]=s.extendDeep([],j.get()),j.set([])},M=function(j,B){var z=D[j.astr][B];j.get().push(z)}),F(T);for(var I=d(v.transforms,m),A=0;A<_;A++)O(y[A])?(F(M,A),P[E++]=I(A)):k&&E++;m._indexToPoints=P,v._length=E}}function F(j,B){for(var z=0;z1?"%{group} (%{trace})":"%{group}");var y=p.styles,x=v.styles=[];if(y)for(b=0;bb)throw new RangeError('The value "'+Z+'" is invalid for option "size"');var re=new Uint8Array(Z);return Object.setPrototypeOf(re,m.prototype),re}function m(Z,re,de){if(typeof Z=="number"){if(typeof re=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _(Z)}return y(Z,re,de)}function y(Z,re,de){if(typeof Z=="string")return function(me,xe){if(typeof xe=="string"&&xe!==""||(xe="utf8"),!m.isEncoding(xe))throw new TypeError("Unknown encoding: "+xe);var ye=0|C(me,xe),Se=v(ye),Ae=Se.write(me,xe);return Ae!==ye&&(Se=Se.slice(0,Ae)),Se}(Z,re);if(ArrayBuffer.isView(Z))return function(me){if(Ce(me,Uint8Array)){var xe=new Uint8Array(me);return S(xe.buffer,xe.byteOffset,xe.byteLength)}return w(me)}(Z);if(Z==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+f(Z));if(Ce(Z,ArrayBuffer)||Z&&Ce(Z.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ce(Z,SharedArrayBuffer)||Z&&Ce(Z.buffer,SharedArrayBuffer)))return S(Z,re,de);if(typeof Z=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var _e=Z.valueOf&&Z.valueOf();if(_e!=null&&_e!==Z)return m.from(_e,re,de);var ue=function(me){if(m.isBuffer(me)){var xe=0|k(me.length),ye=v(xe);return ye.length===0||me.copy(ye,0,0,xe),ye}return me.length!==void 0?typeof me.length!="number"||Oe(me.length)?v(0):w(me):me.type==="Buffer"&&Array.isArray(me.data)?w(me.data):void 0}(Z);if(ue)return ue;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Z[Symbol.toPrimitive]=="function")return m.from(Z[Symbol.toPrimitive]("string"),re,de);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+f(Z))}function x(Z){if(typeof Z!="number")throw new TypeError('"size" argument must be of type number');if(Z<0)throw new RangeError('The value "'+Z+'" is invalid for option "size"')}function _(Z){return x(Z),v(Z<0?0:0|k(Z))}function w(Z){for(var re=Z.length<0?0:0|k(Z.length),de=v(re),_e=0;_e=b)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b.toString(16)+" bytes");return 0|Z}function C(Z,re){if(m.isBuffer(Z))return Z.length;if(ArrayBuffer.isView(Z)||Ce(Z,ArrayBuffer))return Z.byteLength;if(typeof Z!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+f(Z));var de=Z.length,_e=arguments.length>2&&arguments[2]===!0;if(!_e&&de===0)return 0;for(var ue=!1;;)switch(re){case"ascii":case"latin1":case"binary":return de;case"utf8":case"utf-8":return se(Z).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*de;case"hex":return de>>>1;case"base64":return pe(Z).length;default:if(ue)return _e?-1:se(Z).length;re=(""+re).toLowerCase(),ue=!0}}function T(Z,re,de){var _e=!1;if((re===void 0||re<0)&&(re=0),re>this.length||((de===void 0||de>this.length)&&(de=this.length),de<=0)||(de>>>=0)<=(re>>>=0))return"";for(Z||(Z="utf8");;)switch(Z){case"hex":return q(this,re,de);case"utf8":case"utf-8":return B(this,re,de);case"ascii":return N(this,re,de);case"latin1":case"binary":return R(this,re,de);case"base64":return j(this,re,de);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y(this,re,de);default:if(_e)throw new TypeError("Unknown encoding: "+Z);Z=(Z+"").toLowerCase(),_e=!0}}function M(Z,re,de){var _e=Z[re];Z[re]=Z[de],Z[de]=_e}function O(Z,re,de,_e,ue){if(Z.length===0)return-1;if(typeof de=="string"?(_e=de,de=0):de>2147483647?de=2147483647:de<-2147483648&&(de=-2147483648),Oe(de=+de)&&(de=ue?0:Z.length-1),de<0&&(de=Z.length+de),de>=Z.length){if(ue)return-1;de=Z.length-1}else if(de<0){if(!ue)return-1;de=0}if(typeof re=="string"&&(re=m.from(re,_e)),m.isBuffer(re))return re.length===0?-1:D(Z,re,de,_e,ue);if(typeof re=="number")return re&=255,typeof Uint8Array.prototype.indexOf=="function"?ue?Uint8Array.prototype.indexOf.call(Z,re,de):Uint8Array.prototype.lastIndexOf.call(Z,re,de):D(Z,[re],de,_e,ue);throw new TypeError("val must be string, number or Buffer")}function D(Z,re,de,_e,ue){var me,xe=1,ye=Z.length,Se=re.length;if(_e!==void 0&&((_e=String(_e).toLowerCase())==="ucs2"||_e==="ucs-2"||_e==="utf16le"||_e==="utf-16le")){if(Z.length<2||re.length<2)return-1;xe=2,ye/=2,Se/=2,de/=2}function Ae(Ne,ze){return xe===1?Ne[ze]:Ne.readUInt16BE(ze*xe)}if(ue){var Le=-1;for(me=de;meye&&(de=ye-Se),me=de;me>=0;me--){for(var Re=!0,Ie=0;Ieue&&(_e=ue):_e=ue;var me,xe=re.length;for(_e>xe/2&&(_e=xe/2),me=0;me<_e;++me){var ye=parseInt(re.substr(2*me,2),16);if(Oe(ye))return me;Z[de+me]=ye}return me}function E(Z,re,de,_e){return ke(se(re,Z.length-de),Z,de,_e)}function I(Z,re,de,_e){return ke(function(ue){for(var me=[],xe=0;xe>8,Se=xe%256,Ae.push(Se),Ae.push(ye);return Ae}(re,Z.length-de),Z,de,_e)}function j(Z,re,de){return re===0&&de===Z.length?p.fromByteArray(Z):p.fromByteArray(Z.slice(re,de))}function B(Z,re,de){de=Math.min(Z.length,de);for(var _e=[],ue=re;ue239?4:me>223?3:me>191?2:1;if(ue+ye<=de){var Se=void 0,Ae=void 0,Le=void 0,Re=void 0;switch(ye){case 1:me<128&&(xe=me);break;case 2:(192&(Se=Z[ue+1]))==128&&(Re=(31&me)<<6|63&Se)>127&&(xe=Re);break;case 3:Se=Z[ue+1],Ae=Z[ue+2],(192&Se)==128&&(192&Ae)==128&&(Re=(15&me)<<12|(63&Se)<<6|63&Ae)>2047&&(Re<55296||Re>57343)&&(xe=Re);break;case 4:Se=Z[ue+1],Ae=Z[ue+2],Le=Z[ue+3],(192&Se)==128&&(192&Ae)==128&&(192&Le)==128&&(Re=(15&me)<<18|(63&Se)<<12|(63&Ae)<<6|63&Le)>65535&&Re<1114112&&(xe=Re)}}xe===null?(xe=65533,ye=1):xe>65535&&(xe-=65536,_e.push(xe>>>10&1023|55296),xe=56320|1023&xe),_e.push(xe),ue+=ye}return function(Ie){var Ne=Ie.length;if(Ne<=z)return String.fromCharCode.apply(String,Ie);for(var ze="",qe=0;qe"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(m.prototype,"parent",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.buffer}}),Object.defineProperty(m.prototype,"offset",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.byteOffset}}),m.poolSize=8192,m.from=function(Z,re,de){return y(Z,re,de)},Object.setPrototypeOf(m.prototype,Uint8Array.prototype),Object.setPrototypeOf(m,Uint8Array),m.alloc=function(Z,re,de){return function(_e,ue,me){return x(_e),_e<=0?v(_e):ue!==void 0?typeof me=="string"?v(_e).fill(ue,me):v(_e).fill(ue):v(_e)}(Z,re,de)},m.allocUnsafe=function(Z){return _(Z)},m.allocUnsafeSlow=function(Z){return _(Z)},m.isBuffer=function(Z){return Z!=null&&Z._isBuffer===!0&&Z!==m.prototype},m.compare=function(Z,re){if(Ce(Z,Uint8Array)&&(Z=m.from(Z,Z.offset,Z.byteLength)),Ce(re,Uint8Array)&&(re=m.from(re,re.offset,re.byteLength)),!m.isBuffer(Z)||!m.isBuffer(re))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Z===re)return 0;for(var de=Z.length,_e=re.length,ue=0,me=Math.min(de,_e);ue_e.length?(m.isBuffer(me)||(me=m.from(me)),me.copy(_e,ue)):Uint8Array.prototype.set.call(_e,me,ue);else{if(!m.isBuffer(me))throw new TypeError('"list" argument must be an Array of Buffers');me.copy(_e,ue)}ue+=me.length}return _e},m.byteLength=C,m.prototype._isBuffer=!0,m.prototype.swap16=function(){var Z=this.length;if(Z%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var re=0;rere&&(Z+=" ... "),""},g&&(m.prototype[g]=m.prototype.inspect),m.prototype.compare=function(Z,re,de,_e,ue){if(Ce(Z,Uint8Array)&&(Z=m.from(Z,Z.offset,Z.byteLength)),!m.isBuffer(Z))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+f(Z));if(re===void 0&&(re=0),de===void 0&&(de=Z?Z.length:0),_e===void 0&&(_e=0),ue===void 0&&(ue=this.length),re<0||de>Z.length||_e<0||ue>this.length)throw new RangeError("out of range index");if(_e>=ue&&re>=de)return 0;if(_e>=ue)return-1;if(re>=de)return 1;if(this===Z)return 0;for(var me=(ue>>>=0)-(_e>>>=0),xe=(de>>>=0)-(re>>>=0),ye=Math.min(me,xe),Se=this.slice(_e,ue),Ae=Z.slice(re,de),Le=0;Le>>=0,isFinite(de)?(de>>>=0,_e===void 0&&(_e="utf8")):(_e=de,de=void 0)}var ue=this.length-re;if((de===void 0||de>ue)&&(de=ue),Z.length>0&&(de<0||re<0)||re>this.length)throw new RangeError("Attempt to write outside buffer bounds");_e||(_e="utf8");for(var me=!1;;)switch(_e){case"hex":return P(this,Z,re,de);case"utf8":case"utf-8":return E(this,Z,re,de);case"ascii":case"latin1":case"binary":return I(this,Z,re,de);case"base64":return A(this,Z,re,de);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,Z,re,de);default:if(me)throw new TypeError("Unknown encoding: "+_e);_e=(""+_e).toLowerCase(),me=!0}},m.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var z=4096;function N(Z,re,de){var _e="";de=Math.min(Z.length,de);for(var ue=re;ue_e)&&(de=_e);for(var ue="",me=re;mede)throw new RangeError("Trying to access beyond buffer length")}function W(Z,re,de,_e,ue,me){if(!m.isBuffer(Z))throw new TypeError('"buffer" argument must be a Buffer instance');if(re>ue||reZ.length)throw new RangeError("Index out of range")}function H(Z,re,de,_e,ue){K(re,_e,ue,Z,de,7);var me=Number(re&BigInt(4294967295));Z[de++]=me,me>>=8,Z[de++]=me,me>>=8,Z[de++]=me,me>>=8,Z[de++]=me;var xe=Number(re>>BigInt(32)&BigInt(4294967295));return Z[de++]=xe,xe>>=8,Z[de++]=xe,xe>>=8,Z[de++]=xe,xe>>=8,Z[de++]=xe,de}function G(Z,re,de,_e,ue){K(re,_e,ue,Z,de,7);var me=Number(re&BigInt(4294967295));Z[de+7]=me,me>>=8,Z[de+6]=me,me>>=8,Z[de+5]=me,me>>=8,Z[de+4]=me;var xe=Number(re>>BigInt(32)&BigInt(4294967295));return Z[de+3]=xe,xe>>=8,Z[de+2]=xe,xe>>=8,Z[de+1]=xe,xe>>=8,Z[de]=xe,de+8}function te(Z,re,de,_e,ue,me){if(de+_e>Z.length)throw new RangeError("Index out of range");if(de<0)throw new RangeError("Index out of range")}function ee(Z,re,de,_e,ue){return re=+re,de>>>=0,ue||te(Z,0,de,4),h.write(Z,re,de,_e,23,4),de+4}function U(Z,re,de,_e,ue){return re=+re,de>>>=0,ue||te(Z,0,de,8),h.write(Z,re,de,_e,52,8),de+8}m.prototype.slice=function(Z,re){var de=this.length;(Z=~~Z)<0?(Z+=de)<0&&(Z=0):Z>de&&(Z=de),(re=re===void 0?de:~~re)<0?(re+=de)<0&&(re=0):re>de&&(re=de),re>>=0,re>>>=0,de||L(Z,re,this.length);for(var _e=this[Z],ue=1,me=0;++me>>=0,re>>>=0,de||L(Z,re,this.length);for(var _e=this[Z+--re],ue=1;re>0&&(ue*=256);)_e+=this[Z+--re]*ue;return _e},m.prototype.readUint8=m.prototype.readUInt8=function(Z,re){return Z>>>=0,re||L(Z,1,this.length),this[Z]},m.prototype.readUint16LE=m.prototype.readUInt16LE=function(Z,re){return Z>>>=0,re||L(Z,2,this.length),this[Z]|this[Z+1]<<8},m.prototype.readUint16BE=m.prototype.readUInt16BE=function(Z,re){return Z>>>=0,re||L(Z,2,this.length),this[Z]<<8|this[Z+1]},m.prototype.readUint32LE=m.prototype.readUInt32LE=function(Z,re){return Z>>>=0,re||L(Z,4,this.length),(this[Z]|this[Z+1]<<8|this[Z+2]<<16)+16777216*this[Z+3]},m.prototype.readUint32BE=m.prototype.readUInt32BE=function(Z,re){return Z>>>=0,re||L(Z,4,this.length),16777216*this[Z]+(this[Z+1]<<16|this[Z+2]<<8|this[Z+3])},m.prototype.readBigUInt64LE=ce(function(Z){ne(Z>>>=0,"offset");var re=this[Z],de=this[Z+7];re!==void 0&&de!==void 0||ae(Z,this.length-8);var _e=re+this[++Z]*Math.pow(2,8)+this[++Z]*Math.pow(2,16)+this[++Z]*Math.pow(2,24),ue=this[++Z]+this[++Z]*Math.pow(2,8)+this[++Z]*Math.pow(2,16)+de*Math.pow(2,24);return BigInt(_e)+(BigInt(ue)<>>=0,"offset");var re=this[Z],de=this[Z+7];re!==void 0&&de!==void 0||ae(Z,this.length-8);var _e=re*Math.pow(2,24)+this[++Z]*Math.pow(2,16)+this[++Z]*Math.pow(2,8)+this[++Z],ue=this[++Z]*Math.pow(2,24)+this[++Z]*Math.pow(2,16)+this[++Z]*Math.pow(2,8)+de;return(BigInt(_e)<>>=0,re>>>=0,de||L(Z,re,this.length);for(var _e=this[Z],ue=1,me=0;++me=(ue*=128)&&(_e-=Math.pow(2,8*re)),_e},m.prototype.readIntBE=function(Z,re,de){Z>>>=0,re>>>=0,de||L(Z,re,this.length);for(var _e=re,ue=1,me=this[Z+--_e];_e>0&&(ue*=256);)me+=this[Z+--_e]*ue;return me>=(ue*=128)&&(me-=Math.pow(2,8*re)),me},m.prototype.readInt8=function(Z,re){return Z>>>=0,re||L(Z,1,this.length),128&this[Z]?-1*(255-this[Z]+1):this[Z]},m.prototype.readInt16LE=function(Z,re){Z>>>=0,re||L(Z,2,this.length);var de=this[Z]|this[Z+1]<<8;return 32768&de?4294901760|de:de},m.prototype.readInt16BE=function(Z,re){Z>>>=0,re||L(Z,2,this.length);var de=this[Z+1]|this[Z]<<8;return 32768&de?4294901760|de:de},m.prototype.readInt32LE=function(Z,re){return Z>>>=0,re||L(Z,4,this.length),this[Z]|this[Z+1]<<8|this[Z+2]<<16|this[Z+3]<<24},m.prototype.readInt32BE=function(Z,re){return Z>>>=0,re||L(Z,4,this.length),this[Z]<<24|this[Z+1]<<16|this[Z+2]<<8|this[Z+3]},m.prototype.readBigInt64LE=ce(function(Z){ne(Z>>>=0,"offset");var re=this[Z],de=this[Z+7];re!==void 0&&de!==void 0||ae(Z,this.length-8);var _e=this[Z+4]+this[Z+5]*Math.pow(2,8)+this[Z+6]*Math.pow(2,16)+(de<<24);return(BigInt(_e)<>>=0,"offset");var re=this[Z],de=this[Z+7];re!==void 0&&de!==void 0||ae(Z,this.length-8);var _e=(re<<24)+this[++Z]*Math.pow(2,16)+this[++Z]*Math.pow(2,8)+this[++Z];return(BigInt(_e)<>>=0,re||L(Z,4,this.length),h.read(this,Z,!0,23,4)},m.prototype.readFloatBE=function(Z,re){return Z>>>=0,re||L(Z,4,this.length),h.read(this,Z,!1,23,4)},m.prototype.readDoubleLE=function(Z,re){return Z>>>=0,re||L(Z,8,this.length),h.read(this,Z,!0,52,8)},m.prototype.readDoubleBE=function(Z,re){return Z>>>=0,re||L(Z,8,this.length),h.read(this,Z,!1,52,8)},m.prototype.writeUintLE=m.prototype.writeUIntLE=function(Z,re,de,_e){Z=+Z,re>>>=0,de>>>=0,_e||W(this,Z,re,de,Math.pow(2,8*de)-1,0);var ue=1,me=0;for(this[re]=255&Z;++me>>=0,de>>>=0,_e||W(this,Z,re,de,Math.pow(2,8*de)-1,0);var ue=de-1,me=1;for(this[re+ue]=255&Z;--ue>=0&&(me*=256);)this[re+ue]=Z/me&255;return re+de},m.prototype.writeUint8=m.prototype.writeUInt8=function(Z,re,de){return Z=+Z,re>>>=0,de||W(this,Z,re,1,255,0),this[re]=255&Z,re+1},m.prototype.writeUint16LE=m.prototype.writeUInt16LE=function(Z,re,de){return Z=+Z,re>>>=0,de||W(this,Z,re,2,65535,0),this[re]=255&Z,this[re+1]=Z>>>8,re+2},m.prototype.writeUint16BE=m.prototype.writeUInt16BE=function(Z,re,de){return Z=+Z,re>>>=0,de||W(this,Z,re,2,65535,0),this[re]=Z>>>8,this[re+1]=255&Z,re+2},m.prototype.writeUint32LE=m.prototype.writeUInt32LE=function(Z,re,de){return Z=+Z,re>>>=0,de||W(this,Z,re,4,4294967295,0),this[re+3]=Z>>>24,this[re+2]=Z>>>16,this[re+1]=Z>>>8,this[re]=255&Z,re+4},m.prototype.writeUint32BE=m.prototype.writeUInt32BE=function(Z,re,de){return Z=+Z,re>>>=0,de||W(this,Z,re,4,4294967295,0),this[re]=Z>>>24,this[re+1]=Z>>>16,this[re+2]=Z>>>8,this[re+3]=255&Z,re+4},m.prototype.writeBigUInt64LE=ce(function(Z){return H(this,Z,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),m.prototype.writeBigUInt64BE=ce(function(Z){return G(this,Z,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),m.prototype.writeIntLE=function(Z,re,de,_e){if(Z=+Z,re>>>=0,!_e){var ue=Math.pow(2,8*de-1);W(this,Z,re,de,ue-1,-ue)}var me=0,xe=1,ye=0;for(this[re]=255&Z;++me>0)-ye&255;return re+de},m.prototype.writeIntBE=function(Z,re,de,_e){if(Z=+Z,re>>>=0,!_e){var ue=Math.pow(2,8*de-1);W(this,Z,re,de,ue-1,-ue)}var me=de-1,xe=1,ye=0;for(this[re+me]=255&Z;--me>=0&&(xe*=256);)Z<0&&ye===0&&this[re+me+1]!==0&&(ye=1),this[re+me]=(Z/xe>>0)-ye&255;return re+de},m.prototype.writeInt8=function(Z,re,de){return Z=+Z,re>>>=0,de||W(this,Z,re,1,127,-128),Z<0&&(Z=255+Z+1),this[re]=255&Z,re+1},m.prototype.writeInt16LE=function(Z,re,de){return Z=+Z,re>>>=0,de||W(this,Z,re,2,32767,-32768),this[re]=255&Z,this[re+1]=Z>>>8,re+2},m.prototype.writeInt16BE=function(Z,re,de){return Z=+Z,re>>>=0,de||W(this,Z,re,2,32767,-32768),this[re]=Z>>>8,this[re+1]=255&Z,re+2},m.prototype.writeInt32LE=function(Z,re,de){return Z=+Z,re>>>=0,de||W(this,Z,re,4,2147483647,-2147483648),this[re]=255&Z,this[re+1]=Z>>>8,this[re+2]=Z>>>16,this[re+3]=Z>>>24,re+4},m.prototype.writeInt32BE=function(Z,re,de){return Z=+Z,re>>>=0,de||W(this,Z,re,4,2147483647,-2147483648),Z<0&&(Z=4294967295+Z+1),this[re]=Z>>>24,this[re+1]=Z>>>16,this[re+2]=Z>>>8,this[re+3]=255&Z,re+4},m.prototype.writeBigInt64LE=ce(function(Z){return H(this,Z,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),m.prototype.writeBigInt64BE=ce(function(Z){return G(this,Z,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),m.prototype.writeFloatLE=function(Z,re,de){return ee(this,Z,re,!0,de)},m.prototype.writeFloatBE=function(Z,re,de){return ee(this,Z,re,!1,de)},m.prototype.writeDoubleLE=function(Z,re,de){return U(this,Z,re,!0,de)},m.prototype.writeDoubleBE=function(Z,re,de){return U(this,Z,re,!1,de)},m.prototype.copy=function(Z,re,de,_e){if(!m.isBuffer(Z))throw new TypeError("argument should be a Buffer");if(de||(de=0),_e||_e===0||(_e=this.length),re>=Z.length&&(re=Z.length),re||(re=0),_e>0&&_e=this.length)throw new RangeError("Index out of range");if(_e<0)throw new RangeError("sourceEnd out of bounds");_e>this.length&&(_e=this.length),Z.length-re<_e-de&&(_e=Z.length-re+de);var ue=_e-de;return this===Z&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(re,de,_e):Uint8Array.prototype.set.call(Z,this.subarray(de,_e),re),ue},m.prototype.fill=function(Z,re,de,_e){if(typeof Z=="string"){if(typeof re=="string"?(_e=re,re=0,de=this.length):typeof de=="string"&&(_e=de,de=this.length),_e!==void 0&&typeof _e!="string")throw new TypeError("encoding must be a string");if(typeof _e=="string"&&!m.isEncoding(_e))throw new TypeError("Unknown encoding: "+_e);if(Z.length===1){var ue=Z.charCodeAt(0);(_e==="utf8"&&ue<128||_e==="latin1")&&(Z=ue)}}else typeof Z=="number"?Z&=255:typeof Z=="boolean"&&(Z=Number(Z));if(re<0||this.length>>=0,de=de===void 0?this.length:de>>>0,Z||(Z=0),typeof Z=="number")for(me=re;me"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var Le,Re=d(xe);if(ye){var Ie=d(this).constructor;Le=Reflect.construct(Re,arguments,Ie)}else Le=Re.apply(this,arguments);return function(Ne,ze){if(ze&&(f(ze)==="object"||typeof ze=="function"))return ze;if(ze!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return c(Ne)}(this,Le)});function Ae(){var Le;return function(Re,Ie){if(!(Re instanceof Ie))throw new TypeError("Cannot call a class as a function")}(this,Ae),Le=Se.call(this),Object.defineProperty(c(Le),"message",{value:re.apply(c(Le),arguments),writable:!0,configurable:!0}),Le.name="".concat(Le.name," [").concat(Z,"]"),Le.stack,delete Le.name,Le}return ue=Ae,(me=[{key:"code",get:function(){return Z},set:function(Le){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Le,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(Z,"]: ").concat(this.message)}}])&&s(ue.prototype,me),Object.defineProperty(ue,"prototype",{writable:!1}),Ae}(de)}function X(Z){for(var re="",de=Z.length,_e=Z[0]==="-"?1:0;de>=_e+4;de-=3)re="_".concat(Z.slice(de-3,de)).concat(re);return"".concat(Z.slice(0,de)).concat(re)}function K(Z,re,de,_e,ue,me){if(Z>de||Z= 0".concat(ye," and < 2").concat(ye," ** ").concat(8*(me+1)).concat(ye):">= -(2".concat(ye," ** ").concat(8*(me+1)-1).concat(ye,") and < 2 ** ")+"".concat(8*(me+1)-1).concat(ye),new Q.ERR_OUT_OF_RANGE("value",xe,Z)}(function(Se,Ae,Le){ne(Ae,"offset"),Se[Ae]!==void 0&&Se[Ae+Le]!==void 0||ae(Ae,Se.length-(Le+1))})(_e,ue,me)}function ne(Z,re){if(typeof Z!="number")throw new Q.ERR_INVALID_ARG_TYPE(re,"number",Z)}function ae(Z,re,de){throw Math.floor(Z)!==Z?(ne(Z,de),new Q.ERR_OUT_OF_RANGE("offset","an integer",Z)):re<0?new Q.ERR_BUFFER_OUT_OF_BOUNDS:new Q.ERR_OUT_OF_RANGE("offset",">= ".concat(0," and <= ").concat(re),Z)}V("ERR_BUFFER_OUT_OF_BOUNDS",function(Z){return Z?"".concat(Z," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError),V("ERR_INVALID_ARG_TYPE",function(Z,re){return'The "'.concat(Z,'" argument must be of type number. Received type ').concat(f(re))},TypeError),V("ERR_OUT_OF_RANGE",function(Z,re,de){var _e='The value of "'.concat(Z,'" is out of range.'),ue=de;return Number.isInteger(de)&&Math.abs(de)>Math.pow(2,32)?ue=X(String(de)):typeof de=="bigint"&&(ue=String(de),(de>Math.pow(BigInt(2),BigInt(32))||de<-Math.pow(BigInt(2),BigInt(32)))&&(ue=X(ue)),ue+="n"),_e+" It must be ".concat(re,". Received ").concat(ue)},RangeError);var ie=/[^+/0-9A-Za-z-_]/g;function se(Z,re){var de;re=re||1/0;for(var _e=Z.length,ue=null,me=[],xe=0;xe<_e;++xe){if((de=Z.charCodeAt(xe))>55295&&de<57344){if(!ue){if(de>56319){(re-=3)>-1&&me.push(239,191,189);continue}if(xe+1===_e){(re-=3)>-1&&me.push(239,191,189);continue}ue=de;continue}if(de<56320){(re-=3)>-1&&me.push(239,191,189),ue=de;continue}de=65536+(ue-55296<<10|de-56320)}else ue&&(re-=3)>-1&&me.push(239,191,189);if(ue=null,de<128){if((re-=1)<0)break;me.push(de)}else if(de<2048){if((re-=2)<0)break;me.push(de>>6|192,63&de|128)}else if(de<65536){if((re-=3)<0)break;me.push(de>>12|224,de>>6&63|128,63&de|128)}else{if(!(de<1114112))throw new Error("Invalid code point");if((re-=4)<0)break;me.push(de>>18|240,de>>12&63|128,de>>6&63|128,63&de|128)}}return me}function pe(Z){return p.toByteArray(function(re){if((re=(re=re.split("=")[0]).trim().replace(ie,"")).length<2)return"";for(;re.length%4!=0;)re+="=";return re}(Z))}function ke(Z,re,de,_e){var ue;for(ue=0;ue<_e&&!(ue+de>=re.length||ue>=Z.length);++ue)re[ue+de]=Z[ue];return ue}function Ce(Z,re){return Z instanceof re||Z!=null&&Z.constructor!=null&&Z.constructor.name!=null&&Z.constructor.name===re.name}function Oe(Z){return Z!=Z}var Pe=function(){for(var Z="0123456789abcdef",re=new Array(256),de=0;de<16;++de)for(var _e=16*de,ue=0;ue<16;++ue)re[_e+ue]=Z[de]+Z[ue];return re}();function ce(Z){return typeof BigInt>"u"?we:Z}function we(){throw new Error("BigInt not supported")}},35791:function(i){i.exports=u,i.exports.isMobile=u,i.exports.default=u;var o=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,a=/CrOS/,s=/android|ipad|playbook|silk/i;function u(c){c||(c={});var d=c.ua;if(d||typeof navigator>"u"||(d=navigator.userAgent),d&&d.headers&&typeof d.headers["user-agent"]=="string"&&(d=d.headers["user-agent"]),typeof d!="string")return!1;var f=o.test(d)&&!a.test(d)||!!c.tablet&&s.test(d);return!f&&c.tablet&&c.featureDetect&&navigator&&navigator.maxTouchPoints>1&&d.indexOf("Macintosh")!==-1&&d.indexOf("Safari")!==-1&&(f=!0),f}},39898:function(i,o,a){var s,u;(function(){var c={version:"3.8.0"},d=[].slice,f=function($){return d.call($)},p=self.document;function h($){return $&&($.ownerDocument||$.document||$).documentElement}function g($){return $&&($.ownerDocument&&$.ownerDocument.defaultView||$.document&&$||$.defaultView)}if(p)try{f(p.documentElement.childNodes)[0].nodeType}catch{f=function(J){for(var oe=J.length,fe=new Array(oe);oe--;)fe[oe]=J[oe];return fe}}if(Date.now||(Date.now=function(){return+new Date}),p)try{p.createElement("DIV").style.setProperty("opacity",0,"")}catch{var b=this.Element.prototype,v=b.setAttribute,m=b.setAttributeNS,y=this.CSSStyleDeclaration.prototype,x=y.setProperty;b.setAttribute=function(J,oe){v.call(this,J,oe+"")},b.setAttributeNS=function(J,oe,fe){m.call(this,J,oe,fe+"")},y.setProperty=function(J,oe,fe){x.call(this,J,oe+"",fe)}}function _($,J){return $J?1:$>=J?0:NaN}function w($){return $===null?NaN:+$}function S($){return!isNaN($)}function k($){return{left:function(J,oe,fe,he){for(arguments.length<3&&(fe=0),arguments.length<4&&(he=J.length);fe>>1;$(J[ve],oe)<0?fe=ve+1:he=ve}return fe},right:function(J,oe,fe,he){for(arguments.length<3&&(fe=0),arguments.length<4&&(he=J.length);fe>>1;$(J[ve],oe)>0?he=ve:fe=ve+1}return fe}}}c.ascending=_,c.descending=function($,J){return J<$?-1:J>$?1:J>=$?0:NaN},c.min=function($,J){var oe,fe,he=-1,ve=$.length;if(arguments.length===1){for(;++he=fe){oe=fe;break}for(;++hefe&&(oe=fe)}else{for(;++he=fe){oe=fe;break}for(;++hefe&&(oe=fe)}return oe},c.max=function($,J){var oe,fe,he=-1,ve=$.length;if(arguments.length===1){for(;++he=fe){oe=fe;break}for(;++heoe&&(oe=fe)}else{for(;++he=fe){oe=fe;break}for(;++heoe&&(oe=fe)}return oe},c.extent=function($,J){var oe,fe,he,ve=-1,De=$.length;if(arguments.length===1){for(;++ve=fe){oe=he=fe;break}for(;++vefe&&(oe=fe),he=fe){oe=he=fe;break}for(;++vefe&&(oe=fe),he1)return De/($e-1)},c.deviation=function(){var $=c.variance.apply(this,arguments);return $&&Math.sqrt($)};var C=k(_);function T($){return $.length}c.bisectLeft=C.left,c.bisect=c.bisectRight=C.right,c.bisector=function($){return k($.length===1?function(J,oe){return _($(J),oe)}:$)},c.shuffle=function($,J,oe){(ve=arguments.length)<3&&(oe=$.length,ve<2&&(J=0));for(var fe,he,ve=oe-J;ve;)he=Math.random()*ve--|0,fe=$[ve+J],$[ve+J]=$[he+J],$[he+J]=fe;return $},c.permute=function($,J){for(var oe=J.length,fe=new Array(oe);oe--;)fe[oe]=$[J[oe]];return fe},c.pairs=function($){for(var J=0,oe=$.length-1,fe=$[0],he=new Array(oe<0?0:oe);J=0;)for(J=(fe=$[he]).length;--J>=0;)oe[--De]=fe[J];return oe};var M=Math.abs;function O($,J){for(var oe in J)Object.defineProperty($.prototype,oe,{value:J[oe],enumerable:!1})}function D(){this._=Object.create(null)}c.range=function($,J,oe){if(arguments.length<3&&(oe=1,arguments.length<2&&(J=$,$=0)),(J-$)/oe==1/0)throw new Error("infinite range");var fe,he=[],ve=function(Ee){for(var $e=1;Ee*$e%1;)$e*=10;return $e}(M(oe)),De=-1;if($*=ve,J*=ve,(oe*=ve)<0)for(;(fe=$+oe*++De)>J;)he.push(fe/ve);else for(;(fe=$+oe*++De)=fe.length)return J?J.call(oe,$e):$?$e.sort($):$e;for(var He,Xe,at,vt,Mt=-1,ft=$e.length,xt=fe[Fe++],lt=new D;++Mt=fe.length)return Ee;var Fe=[],He=he[$e++];return Ee.forEach(function(Xe,at){Fe.push({key:Xe,values:De(at,$e)})}),He?Fe.sort(function(Xe,at){return He(Xe.key,at.key)}):Fe}return oe.map=function(Ee,$e){return ve($e,Ee,0)},oe.entries=function(Ee){return De(ve(c.map,Ee,0),0)},oe.key=function(Ee){return fe.push(Ee),oe},oe.sortKeys=function(Ee){return he[fe.length-1]=Ee,oe},oe.sortValues=function(Ee){return $=Ee,oe},oe.rollup=function(Ee){return J=Ee,oe},oe},c.set=function($){var J=new R;if($)for(var oe=0,fe=$.length;oe=0&&(fe=$.slice(oe+1),$=$.slice(0,oe)),$)return arguments.length<2?this[$].on(fe):this[$].on(fe,J);if(arguments.length===2){if(J==null)for($ in this)this.hasOwnProperty($)&&this[$].on(fe,null);return this}},c.event=null,c.requote=function($){return $.replace(V,"\\$&")};var V=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,X={}.__proto__?function($,J){$.__proto__=J}:function($,J){for(var oe in J)$[oe]=J[oe]};function K($){return X($,se),$}var ne=function($,J){return J.querySelector($)},ae=function($,J){return J.querySelectorAll($)},ie=function($,J){var oe=$.matches||$[L($,"matchesSelector")];return ie=function(fe,he){return oe.call(fe,he)},ie($,J)};typeof Sizzle=="function"&&(ne=function($,J){return Sizzle($,J)[0]||null},ae=Sizzle,ie=Sizzle.matchesSelector),c.selection=function(){return c.select(p.documentElement)};var se=c.selection.prototype=[];function pe($){return typeof $=="function"?$:function(){return ne($,this)}}function ke($){return typeof $=="function"?$:function(){return ae($,this)}}se.select=function($){var J,oe,fe,he,ve=[];$=pe($);for(var De=-1,Ee=this.length;++De=0&&(oe=$.slice(0,J))!=="xmlns"&&($=$.slice(J+1)),Oe.hasOwnProperty(oe)?{space:Oe[oe],local:$}:$}},se.attr=function($,J){if(arguments.length<2){if(typeof $=="string"){var oe=this.node();return($=c.ns.qualify($)).local?oe.getAttributeNS($.space,$.local):oe.getAttribute($)}for(J in $)this.each(Pe(J,$[J]));return this}return this.each(Pe($,J))},se.classed=function($,J){if(arguments.length<2){if(typeof $=="string"){var oe=this.node(),fe=($=Z($)).length,he=-1;if(J=oe.classList){for(;++he=0;)(oe=fe[he])&&(ve&&ve!==oe.nextSibling&&ve.parentNode.insertBefore(oe,ve),ve=oe);return this},se.sort=function($){$=Ae.apply(this,arguments);for(var J=-1,oe=this.length;++J0&&($=$.slice(0,he));var De=ze.get($);function Ee(){var $e=this[fe];$e&&(this.removeEventListener($,$e,$e.$),delete this[fe])}return De&&($=De,ve=We),he?J?function(){var $e=ve(J,f(arguments));Ee.call(this),this.addEventListener($,this[fe]=$e,$e.$=oe),$e._=J}:Ee:J?H:function(){var $e,Fe=new RegExp("^__on([^.]+)"+c.requote($)+"$");for(var He in this)if($e=He.match(Fe)){var Xe=this[He];this.removeEventListener($e[1],Xe,Xe.$),delete this[He]}}}c.selection.enter=Re,c.selection.enter.prototype=Ie,Ie.append=se.append,Ie.empty=se.empty,Ie.node=se.node,Ie.call=se.call,Ie.size=se.size,Ie.select=function($){for(var J,oe,fe,he,ve,De=[],Ee=-1,$e=this.length;++Ee<$e;){fe=(he=this[Ee]).update,De.push(J=[]),J.parentNode=he.parentNode;for(var Fe=-1,He=he.length;++Fe=fe&&(fe=De+1);!($e=Fe[fe])&&++fe1?ct:$<-1?-ct:Math.asin($)}function Wt($){return(($=Math.exp($))+1/$)/2}var wt=Math.SQRT2;c.interpolateZoom=function($,J){var oe,fe,he=$[0],ve=$[1],De=$[2],Ee=J[0],$e=J[1],Fe=J[2],He=Ee-he,Xe=$e-ve,at=He*He+Xe*Xe;if(at0&&(rn=rn.transition().duration(at)),rn.call(_t.event)}function tn(){De&&De.domain(ve.range().map(function(rn){return(rn-Fe.x)/Fe.k}).map(ve.invert)),$e&&$e.domain(Ee.range().map(function(rn){return(rn-Fe.y)/Fe.k}).map(Ee.invert))}function Tn(rn){vt++||rn({type:"zoomstart"})}function kn(rn){tn(),rn({type:"zoom",scale:Fe.k,translate:[Fe.x,Fe.y]})}function Rn(rn){--vt||(rn({type:"zoomend"}),J=null)}function Cn(){var rn=this,bn=At.of(rn,arguments),Un=0,Gn=c.select(g(rn)).on(ft,function(){Un=1,Vt(c.mouse(rn),nr),kn(bn)}).on(xt,function(){Gn.on(ft,null).on(xt,null),Ar(Un),Rn(bn)}),nr=dt(c.mouse(rn)),Ar=Je(rn);Gg.call(rn),Tn(bn)}function Xn(){var rn,bn=this,Un=At.of(bn,arguments),Gn={},nr=0,Ar=".zoom-"+c.event.changedTouches[0].identifier,ha="touchmove"+Ar,Jr="touchend"+Ar,Da=[],ma=c.select(bn),Ea=Je(bn);function so(){var $a=c.touches(bn);return rn=Fe.k,$a.forEach(function(ga){ga.identifier in Gn&&(Gn[ga.identifier]=dt(ga))}),$a}function Xi(){var $a=c.event.target;c.select($a).on(ha,pl).on(Jr,hl),Da.push($a);for(var ga=c.event.changedTouches,xo=0,wo=ga.length;xo1){Ul=Do[0];var ks=Do[1],Kg=Ul[0]-ks[0],zO=Ul[1]-ks[1];nr=Kg*Kg+zO*zO}}function pl(){var $a,ga,xo,wo,Do=c.touches(bn);Gg.call(bn);for(var vi=0,Ul=Do.length;vi360?Ee-=360:Ee<0&&(Ee+=360),Ee<60?fe+(he-fe)*Ee/60:Ee<180?he:Ee<240?fe+(he-fe)*(240-Ee)/60:fe}(De))}return $=isNaN($)?0:($%=360)<0?$+360:$,J=isNaN(J)||J<0?0:J>1?1:J,fe=2*(oe=oe<0?0:oe>1?1:oe)-(he=oe<=.5?oe*(1+J):oe+J-oe*J),new Rt(ve($+120),ve($),ve($-120))}function rt($,J,oe){return this instanceof rt?(this.h=+$,this.c=+J,void(this.l=+oe)):arguments.length<2?$ instanceof rt?new rt($.h,$.c,$.l):function(fe,he,ve){return fe>0?new rt(Math.atan2(ve,he)*$t,Math.sqrt(he*he+ve*ve),fe):new rt(NaN,NaN,fe)}($ instanceof nt?$.l:($=zt(($=c.rgb($)).r,$.g,$.b)).l,$.a,$.b):new rt($,J,oe)}Ye.brighter=function($){return $=Math.pow(.7,arguments.length?$:1),new Ze(this.h,this.s,this.l/$)},Ye.darker=function($){return $=Math.pow(.7,arguments.length?$:1),new Ze(this.h,this.s,$*this.l)},Ye.rgb=function(){return Qe(this.h,this.s,this.l)},c.hcl=rt;var ut=rt.prototype=new Ue;function gt($,J,oe){return isNaN($)&&($=0),isNaN(J)&&(J=0),new nt(oe,Math.cos($*=ht)*J,Math.sin($)*J)}function nt($,J,oe){return this instanceof nt?(this.l=+$,this.a=+J,void(this.b=+oe)):arguments.length<2?$ instanceof nt?new nt($.l,$.a,$.b):$ instanceof rt?gt($.h,$.c,$.l):zt(($=Rt($)).r,$.g,$.b):new nt($,J,oe)}ut.brighter=function($){return new rt(this.h,this.c,Math.min(100,this.l+Nt*(arguments.length?$:1)))},ut.darker=function($){return new rt(this.h,this.c,Math.max(0,this.l-Nt*(arguments.length?$:1)))},ut.rgb=function(){return gt(this.h,this.c,this.l).rgb()},c.lab=nt;var Nt=18,Gt=.95047,Ct=1,Ft=1.08883,Et=nt.prototype=new Ue;function mt($,J,oe){var fe=($+16)/116,he=fe+J/500,ve=fe-oe/200;return new Rt(qt(3.2404542*(he=pt(he)*Gt)-1.5371385*(fe=pt(fe)*Ct)-.4985314*(ve=pt(ve)*Ft)),qt(-.969266*he+1.8760108*fe+.041556*ve),qt(.0556434*he-.2040259*fe+1.0572252*ve))}function pt($){return $>.206893034?$*$*$:($-.13793103448275862)/7.787037}function yt($){return $>.008856?Math.pow($,.3333333333333333):7.787037*$+.13793103448275862}function qt($){return Math.round(255*($<=.00304?12.92*$:1.055*Math.pow($,.4166666666666667)-.055))}function Rt($,J,oe){return this instanceof Rt?(this.r=~~$,this.g=~~J,void(this.b=~~oe)):arguments.length<2?$ instanceof Rt?new Rt($.r,$.g,$.b):It(""+$,Rt,Qe):new Rt($,J,oe)}function jt($){return new Rt($>>16,$>>8&255,255&$)}function Tt($){return jt($)+""}Et.brighter=function($){return new nt(Math.min(100,this.l+Nt*(arguments.length?$:1)),this.a,this.b)},Et.darker=function($){return new nt(Math.max(0,this.l-Nt*(arguments.length?$:1)),this.a,this.b)},Et.rgb=function(){return mt(this.l,this.a,this.b)},c.rgb=Rt;var Pt=Rt.prototype=new Ue;function Ot($){return $<16?"0"+Math.max(0,$).toString(16):Math.min(255,$).toString(16)}function It($,J,oe){var fe,he,ve,De=0,Ee=0,$e=0;if(fe=/([a-z]+)\((.*)\)/.exec($=$.toLowerCase()))switch(he=fe[2].split(","),fe[1]){case"hsl":return oe(parseFloat(he[0]),parseFloat(he[1])/100,parseFloat(he[2])/100);case"rgb":return J(Kt(he[0]),Kt(he[1]),Kt(he[2]))}return(ve=Bt.get($))?J(ve.r,ve.g,ve.b):($==null||$.charAt(0)!=="#"||isNaN(ve=parseInt($.slice(1),16))||($.length===4?(De=(3840&ve)>>4,De|=De>>4,Ee=240&ve,Ee|=Ee>>4,$e=15&ve,$e|=$e<<4):$.length===7&&(De=(16711680&ve)>>16,Ee=(65280&ve)>>8,$e=255&ve)),J(De,Ee,$e))}function Lt($,J,oe){var fe,he,ve=Math.min($/=255,J/=255,oe/=255),De=Math.max($,J,oe),Ee=De-ve,$e=(De+ve)/2;return Ee?(he=$e<.5?Ee/(De+ve):Ee/(2-De-ve),fe=$==De?(J-oe)/Ee+(J0&&$e<1?0:fe),new Ze(fe,he,$e)}function zt($,J,oe){var fe=yt((.4124564*($=Xt($))+.3575761*(J=Xt(J))+.1804375*(oe=Xt(oe)))/Gt),he=yt((.2126729*$+.7151522*J+.072175*oe)/Ct);return nt(116*he-16,500*(fe-he),200*(he-yt((.0193339*$+.119192*J+.9503041*oe)/Ft)))}function Xt($){return($/=255)<=.04045?$/12.92:Math.pow(($+.055)/1.055,2.4)}function Kt($){var J=parseFloat($);return $.charAt($.length-1)==="%"?Math.round(2.55*J):J}Pt.brighter=function($){$=Math.pow(.7,arguments.length?$:1);var J=this.r,oe=this.g,fe=this.b,he=30;return J||oe||fe?(J&&J=200&&Xe<300||Xe===304){try{He=oe.call(he,Ee)}catch(at){return void ve.error.call(he,at)}ve.load.call(he,He)}else ve.error.call(he,Ee)}return self.XDomainRequest&&!("withCredentials"in Ee)&&/^(http(s)?:)?\/\//.test($)&&(Ee=new XDomainRequest),"onload"in Ee?Ee.onload=Ee.onerror=Fe:Ee.onreadystatechange=function(){Ee.readyState>3&&Fe()},Ee.onprogress=function(He){var Xe=c.event;c.event=He;try{ve.progress.call(he,Ee)}finally{c.event=Xe}},he.header=function(He,Xe){return He=(He+"").toLowerCase(),arguments.length<2?De[He]:(Xe==null?delete De[He]:De[He]=Xe+"",he)},he.mimeType=function(He){return arguments.length?(J=He==null?null:He+"",he):J},he.responseType=function(He){return arguments.length?($e=He,he):$e},he.response=function(He){return oe=He,he},["get","post"].forEach(function(He){he[He]=function(){return he.send.apply(he,[He].concat(f(arguments)))}}),he.send=function(He,Xe,at){if(arguments.length===2&&typeof Xe=="function"&&(at=Xe,Xe=null),Ee.open(He,$,!0),J==null||"accept"in De||(De.accept=J+",*/*"),Ee.setRequestHeader)for(var vt in De)Ee.setRequestHeader(vt,De[vt]);return J!=null&&Ee.overrideMimeType&&Ee.overrideMimeType(J),$e!=null&&(Ee.responseType=$e),at!=null&&he.on("error",at).on("load",function(Mt){at(null,Mt)}),ve.beforesend.call(he,Ee),Ee.send(Xe??null),he},he.abort=function(){return Ee.abort(),he},c.rebind(he,ve,"on"),fe==null?he:he.get(function(He){return He.length===1?function(Xe,at){He(Xe==null?at:null)}:He}(fe))}Bt.forEach(function($,J){Bt.set($,jt(J))}),c.functor=Ut,c.xhr=on(q),c.dsv=function($,J){var oe=new RegExp('["'+$+` -]`),fe=$.charCodeAt(0);function he(Fe,He,Xe){arguments.length<3&&(Xe=He,He=null);var at=yn(Fe,J,He==null?ve:De(He),Xe);return at.row=function(vt){return arguments.length?at.response((He=vt)==null?ve:De(vt)):He},at}function ve(Fe){return he.parse(Fe.responseText)}function De(Fe){return function(He){return he.parse(He.responseText,Fe)}}function Ee(Fe){return Fe.map($e).join($)}function $e(Fe){return oe.test(Fe)?'"'+Fe.replace(/\"/g,'""')+'"':Fe}return he.parse=function(Fe,He){var Xe;return he.parseRows(Fe,function(at,vt){if(Xe)return Xe(at,vt-1);var Mt=function(ft){for(var xt={},lt=at.length,At=0;At=xt)return Mt;if(at)return at=!1,vt;var Ht=lt;if(Fe.charCodeAt(Ht)===34){for(var Vt=Ht;Vt++=0&&_e0){var Ae,Le;(z={}).pos=z[P]=ee[C],N=z.pts=de[C].sort(b),q=(R=z[O]=N.map(v)).length,z.min=R[0],z.max=R[q-1],z.mean=d.mean(R,q),z.sd=d.stdev(R,q,z.mean)*k.sdmultiple,z.med=d.interp(R,.5),q%2&&(ye||Se)?(ye?(Ae=R.slice(0,q/2),Le=R.slice(q/2+1)):Se&&(Ae=R.slice(0,q/2+1),Le=R.slice(q/2)),z.q1=d.interp(Ae,.5),z.q3=d.interp(Le,.5)):(z.q1=d.interp(R,.25),z.q3=d.interp(R,.75)),z.lf=m(z,R,q),z.uf=y(z,R,q),z.lo=x(z),z.uo=_(z);var Re=w(z,q);z.ln=z.med-Re,z.un=z.med+Re,ue=Math.min(ue,z.ln),me=Math.max(me,z.un),z.pts2=N.filter(Q),j.push(z)}k._extremes[M._id]=u.findExtremes(M,k.notched?we.concat([ue,me]):we,{padded:!0})}return function(Ie,Ne){if(d.isArrayOrTypedArray(Ne.selectedpoints))for(var ze=0;ze0?(j[0].t={num:I[B],dPos:U,posLetter:P,valLetter:O,labels:{med:p(S,"median:"),min:p(S,"min:"),q1:p(S,"q1:"),q3:p(S,"q3:"),max:p(S,"max:"),mean:k.boxmean==="sd"||k.sizemode==="sd"?p(S,"mean ± σ:").replace("σ",k.sdmultiple===1?"σ":k.sdmultiple+"σ"):p(S,"mean:"),lf:p(S,"lower fence:"),uf:p(S,"upper fence:")}},I[B]++,j):[{t:{empty:!0}}]};var h={text:"tx",hovertext:"htx"};function g(S,k,C){for(var T in h)d.isArrayOrTypedArray(k[T])&&(Array.isArray(C)?d.isArrayOrTypedArray(k[T][C[0]])&&(S[h[T]]=k[T][C[0]][C[1]]):S[h[T]]=k[T][C])}function b(S,k){return S.v-k.v}function v(S){return S.v}function m(S,k,C){return C===0?S.q1:Math.min(S.q1,k[Math.min(d.findBin(2.5*S.q1-1.5*S.q3,k,!0)+1,C-1)])}function y(S,k,C){return C===0?S.q3:Math.max(S.q3,k[Math.max(d.findBin(2.5*S.q3-1.5*S.q1,k),0)])}function x(S){return 4*S.q1-3*S.q3}function _(S){return 4*S.q3-3*S.q1}function w(S,k){return k===0?0:1.57*(S.q3-S.q1)/Math.sqrt(k)}},37188:function(i,o,a){var s=a(89298),u=a(71828),c=a(99082).getAxisGroup,d=["v","h"];function f(p,h,g,b){var v,m,y,x=h.calcdata,_=h._fullLayout,w=b._id,S=w.charAt(0),k=[],C=0;for(v=0;v1,P=1-_[p+"gap"],E=1-_[p+"groupgap"];for(v=0;v0){var ae=N.pointpos,ie=N.jitter,se=N.marker.size/2,pe=0;ae+ie>=0&&((pe=K*(ae+ie))>B?(ne=!0,V=se,U=pe):pe>te&&(V=se,U=B)),pe<=B&&(U=B);var ke=0;ae-ie<=0&&((ke=-K*(ae-ie))>z?(ne=!0,X=se,Q=ke):ke>ee&&(X=se,Q=z)),ke<=z&&(Q=z)}else U=B,Q=z;var Ce=new Array(y.length);for(m=0;m0?(D="v",P=I>0?Math.min(F,A):Math.min(A)):I>0?(D="h",P=Math.min(F)):P=0;if(P){m._length=P;var q=y("orientation",D);m._hasPreCompStats?q==="v"&&I===0?(y("x0",0),y("dx",1)):q==="h"&&E===0&&(y("y0",0),y("dy",1)):q==="v"&&I===0?y("x0"):q==="h"&&E===0&&y("y0"),u.getComponentMethod("calendars","handleTraceDefaults")(v,m,["x","y"],x)}else m.visible=!1}function b(v,m,y,x){var _=x.prefix,w=s.coerce2(v,m,h,"marker.outliercolor"),S=y("marker.line.outliercolor"),k="outliers";m._hasPreCompStats?k="all":(w||S)&&(k="suspectedoutliers");var C=y(_+"points",k);C?(y("jitter",C==="all"?.3:0),y("pointpos",C==="all"?-1.5:0),y("marker.symbol"),y("marker.opacity"),y("marker.size"),y("marker.angle"),y("marker.color",m.line.color),y("marker.line.color"),y("marker.line.width"),C==="suspectedoutliers"&&(y("marker.line.outliercolor",m.marker.color),y("marker.line.outlierwidth")),y("selected.marker.color"),y("unselected.marker.color"),y("selected.marker.size"),y("unselected.marker.size"),y("text"),y("hovertext")):delete m.marker;var T=y("hoveron");T!=="all"&&T.indexOf("points")===-1||y("hovertemplate"),s.coerceSelectionMarkerOpacity(m,y)}i.exports={supplyDefaults:function(v,m,y,x){function _(P,E){return s.coerce(v,m,h,P,E)}if(g(v,m,_,x),m.visible!==!1){d(v,m,x,_),_("xhoverformat"),_("yhoverformat");var w=m._hasPreCompStats;w&&(_("lowerfence"),_("upperfence")),_("line.color",(v.marker||{}).color||y),_("line.width"),_("fillcolor",c.addOpacity(m.line.color,.5));var S=!1;if(w){var k=_("mean"),C=_("sd");k&&k.length&&(S=!0,C&&C.length&&(S="sd"))}_("whiskerwidth");var T,M=_("sizemode");M==="quartiles"&&(T=_("boxmean",S)),_("showwhiskers",M==="quartiles"),M!=="sd"&&T!=="sd"||_("sdmultiple"),_("width"),_("quartilemethod");var O=!1;if(w){var D=_("notchspan");D&&D.length&&(O=!0)}else s.validate(v.notchwidth,h.notchwidth)&&(O=!0);_("notched",O)&&_("notchwidth"),b(v,m,_,{prefix:"box"})}},crossTraceDefaults:function(v,m){var y,x;function _(k){return s.coerce(x._input,x,h,k)}for(var w=0;wC.lo&&(R.so=!0)}return O});k.enter().append("path").classed("point",!0),k.exit().remove(),k.call(c.translatePoints,m,y)}function p(h,g,b,v){var m,y,x=g.val,_=g.pos,w=!!_.rangebreaks,S=v.bPos,k=v.bPosPxOffset||0,C=b.boxmean||(b.meanline||{}).visible;Array.isArray(v.bdPos)?(m=v.bdPos[0],y=v.bdPos[1]):(m=v.bdPos,y=v.bdPos);var T=h.selectAll("path.mean").data(b.type==="box"&&b.boxmean||b.type==="violin"&&b.box.visible&&b.meanline.visible?u.identity:[]);T.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),T.exit().remove(),T.each(function(M){var O=_.c2l(M.pos+S,!0),D=_.l2p(O-m)+k,P=_.l2p(O+y)+k,E=w?(D+P)/2:_.l2p(O)+k,I=x.c2p(M.mean,!0),A=x.c2p(M.mean-M.sd,!0),F=x.c2p(M.mean+M.sd,!0);b.orientation==="h"?s.select(this).attr("d","M"+I+","+D+"V"+P+(C==="sd"?"m0,0L"+A+","+E+"L"+I+","+D+"L"+F+","+E+"Z":"")):s.select(this).attr("d","M"+D+","+I+"H"+P+(C==="sd"?"m0,0L"+E+","+A+"L"+D+","+I+"L"+E+","+F+"Z":""))})}i.exports={plot:function(h,g,b,v){var m=h._context.staticPlot,y=g.xaxis,x=g.yaxis;u.makeTraceGroups(v,b,"trace boxes").each(function(_){var w,S,k=s.select(this),C=_[0],T=C.t,M=C.trace;T.wdPos=T.bdPos*M.whiskerwidth,M.visible!==!0||T.empty?k.remove():(M.orientation==="h"?(w=x,S=y):(w=y,S=x),d(k,{pos:w,val:S},M,T,m),f(k,{x:y,y:x},M,T),p(k,{pos:w,val:S},M,T))})},plotBoxAndWhiskers:d,plotPoints:f,plotBoxMean:p}},24626:function(i){i.exports=function(o,a){var s,u,c=o.cd,d=o.xaxis,f=o.yaxis,p=[];if(a===!1)for(s=0;sf.level||f.starts.length&&d===f.level)}break;case"constraint":if(u.prefixBoundary=!1,u.edgepaths.length)return;var p=u.x.length,h=u.y.length,g=-1/0,b=1/0;for(s=0;s":y>g&&(u.prefixBoundary=!0);break;case"<":(yg||u.starts.length&&m===b)&&(u.prefixBoundary=!0);break;case"][":v=Math.min(y[0],y[1]),m=Math.max(y[0],y[1]),vg&&(u.prefixBoundary=!0)}}}},90654:function(i,o,a){var s=a(21081),u=a(86068),c=a(53572);i.exports={min:"zmin",max:"zmax",calc:function(d,f,p){var h=f.contours,g=f.line,b=h.size||1,v=h.coloring,m=u(f,{isColorbar:!0});if(v==="heatmap"){var y=s.extractOpts(f);p._fillgradient=y.reversescale?s.flipScale(y.colorscale):y.colorscale,p._zrange=[y.min,y.max]}else v==="fill"&&(p._fillcolor=m);p._line={color:v==="lines"?m:g.color,width:h.showlines!==!1?g.width:0,dash:g.dash},p._levels={start:h.start,end:c(h),size:b}}}},36914:function(i){i.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},83179:function(i,o,a){var s=a(92770),u=a(14523),c=a(7901),d=c.addOpacity,f=c.opacity,p=a(74808),h=p.CONSTRAINT_REDUCTION,g=p.COMPARISON_OPS2;i.exports=function(b,v,m,y,x,_){var w,S,k,C=v.contours,T=m("contours.operation");C._operation=h[T],function(M,O){var D;g.indexOf(O.operation)===-1?(M("contours.value",[0,1]),Array.isArray(O.value)?O.value.length>2?O.value=O.value.slice(2):O.length===0?O.value=[0,1]:O.length<2?(D=parseFloat(O.value[0]),O.value=[D,D+1]):O.value=[parseFloat(O.value[0]),parseFloat(O.value[1])]:s(O.value)&&(D=parseFloat(O.value),O.value=[D,D+1])):(M("contours.value",0),s(O.value)||(Array.isArray(O.value)?O.value=parseFloat(O.value[0]):O.value=0))}(m,C),T==="="?w=C.showlines=!0:(w=m("contours.showlines"),k=m("fillcolor",d((b.line||{}).color||x,.5))),w&&(S=m("line.color",k&&f(k)?d(v.fillcolor,1):x),m("line.width",2),m("line.dash")),m("line.smoothing"),u(m,y,S,_)}},64237:function(i,o,a){var s=a(74808),u=a(92770);function c(p,h){var g,b=Array.isArray(h);function v(m){return u(m)?+m:null}return s.COMPARISON_OPS2.indexOf(p)!==-1?g=v(b?h[0]:h):s.INTERVAL_OPS.indexOf(p)!==-1?g=b?[v(h[0]),v(h[1])]:[v(h),v(h)]:s.SET_OPS.indexOf(p)!==-1&&(g=b?h.map(v):[v(h)]),g}function d(p){return function(h){h=c(p,h);var g=Math.min(h[0],h[1]),b=Math.max(h[0],h[1]);return{start:g,end:b,size:b-g}}}function f(p){return function(h){return{start:h=c(p,h),end:1/0,size:1/0}}}i.exports={"[]":d("[]"),"][":d("]["),">":f(">"),"<":f("<"),"=":f("=")}},67217:function(i){i.exports=function(o,a,s,u){var c=u("contours.start"),d=u("contours.end"),f=c===!1||d===!1,p=s("contours.size");!(f?a.autocontour=!0:s("autocontour",!1))&&p||s("ncontours")}},84857:function(i,o,a){var s=a(71828);function u(c){return s.extendFlat({},c,{edgepaths:s.extendDeep([],c.edgepaths),paths:s.extendDeep([],c.paths),starts:s.extendDeep([],c.starts)})}i.exports=function(c,d){var f,p,h,g=function(m){return m.reverse()},b=function(m){return m};switch(d){case"=":case"<":return c;case">":for(c.length!==1&&s.warn("Contour data invalid for the specified inequality operation."),p=c[0],f=0;f1e3){s.warn("Too many contours, clipping at 1000",d);break}return b}},53572:function(i){i.exports=function(o){return o.end+o.size/1e6}},81696:function(i,o,a){var s=a(71828),u=a(36914);function c(p,h,g,b){return Math.abs(p[0]-h[0])20&&ne?K===208||K===1114?ie=ae[0]===0?1:-1:se=ae[1]===0?1:-1:u.BOTTOMSTART.indexOf(K)!==-1?se=1:u.LEFTSTART.indexOf(K)!==-1?ie=1:u.TOPSTART.indexOf(K)!==-1?se=-1:ie=-1,[ie,se]}(x,g,h),w=[f(p,h,[-_[0],-_[1]])],S=p.z.length,k=p.z[0].length,C=h.slice(),T=_.slice();for(m=0;m<1e4;m++){if(x>20?(x=u.CHOOSESADDLE[x][(_[0]||_[1])<0?0:1],p.crossings[y]=u.SADDLEREMAINDER[x]):delete p.crossings[y],!(_=u.NEWDELTA[x])){s.log("Found bad marching index:",x,h,p.level);break}w.push(f(p,h,_)),h[0]+=_[0],h[1]+=_[1],y=h.join(","),c(w[w.length-1],w[w.length-2],b,v)&&w.pop();var M=_[0]&&(h[0]<0||h[0]>k-2)||_[1]&&(h[1]<0||h[1]>S-2);if(h[0]===C[0]&&h[1]===C[1]&&_[0]===T[0]&&_[1]===T[1]||g&&M)break;x=p.crossings[y]}m===1e4&&s.log("Infinite loop in contour?");var O,D,P,E,I,A,F,j,B,z,N,R,q,Y,L,W=c(w[0],w[w.length-1],b,v),H=0,G=.2*p.smoothing,te=[],ee=0;for(m=1;m=ee;m--)if((O=te[m])=ee&&O+te[D]j&&B--,p.edgepaths[B]=N.concat(w,z));break}X||(p.edgepaths[j]=w.concat(z))}for(j=0;j=T)&&(p<=C&&(p=C),h>=T&&(h=T),b=Math.floor((h-p)/g)+1,v=0),x=0;xC&&(S.unshift(C),k.unshift(k[0])),S[S.length-1]c?0:1)+(d[0][1]>c?0:2)+(d[1][1]>c?0:4)+(d[1][0]>c?0:8);return f===5||f===10?c>(d[0][0]+d[0][1]+d[1][0]+d[1][1])/4?f===5?713:1114:f===5?104:208:f===15?0:f}i.exports=function(c){var d,f,p,h,g,b,v,m,y,x=c[0].z,_=x.length,w=x[0].length,S=_===2||w===2;for(f=0;f<_-1;f++)for(h=[],f===0&&(h=h.concat(s.BOTTOMSTART)),f===_-2&&(h=h.concat(s.TOPSTART)),d=0;d=0&&(D=L,E=I):Math.abs(O[1]-D[1])<.01?Math.abs(O[1]-L[1])<.01&&(L[0]-O[0])*(D[0]-L[0])>=0&&(D=L,E=I):u.log("endpt to newendpt is not vert. or horz.",O,D,L)}if(O=D,E>=0)break;j+="L"+D}if(E===T.edgepaths.length){u.log("unclosed perimeter path");break}B=E,(N=z.indexOf(B)===-1)&&(B=z[0],j+="Z")}for(B=0;BD.center?D.right-I:I-D.left)/(j+Math.abs(Math.sin(F)*E)),N=(A>D.middle?D.bottom-A:A-D.top)/(Math.abs(B)+Math.cos(F)*E);if(z<1||N<1)return 1/0;var R=w.EDGECOST*(1/(z-1)+1/(N-1));R+=w.ANGLECOST*F*F;for(var q=I-j,Y=A-B,L=I+j,W=A+B,H=0;H2*w.MAXCOST)break;N&&(I/=2),A=(E=F-I/2)+1.5*I}if(z<=w.MAXCOST)return j},o.addLabelData=function(T,M,O,D){var P=M.fontSize,E=M.width+P/3,I=Math.max(0,M.height-P/3),A=T.x,F=T.y,j=T.theta,B=Math.sin(j),z=Math.cos(j),N=function(q,Y){return[A+q*z-Y*B,F+q*B+Y*z]},R=[N(-E/2,-I/2),N(-E/2,I/2),N(E/2,I/2),N(E/2,-I/2)];O.push({text:M.text,x:A,y:F,dy:M.dy,theta:j,level:M.level,width:E,height:I}),D.push(R)},o.drawLabels=function(T,M,O,D,P){var E=T.selectAll("text").data(M,function(F){return F.text+","+F.x+","+F.y+","+F.theta});if(E.exit().remove(),E.enter().append("text").attr({"data-notex":1,"text-anchor":"middle"}).each(function(F){var j=F.x+Math.sin(F.theta)*F.dy,B=F.y-Math.cos(F.theta)*F.dy;s.select(this).text(F.text).attr({x:j,y:B,transform:"rotate("+180*F.theta/Math.PI+" "+j+" "+B+")"}).call(f.convertToTspans,O)}),P){for(var I="",A=0;Ap.end&&(p.start=p.end=(p.start+p.end)/2),d._input.contours||(d._input.contours={}),u.extendFlat(d._input.contours,{start:p.start,end:p.end,size:p.size}),d._input.autocontour=!0}else if(p.type!=="constraint"){var v,m=p.start,y=p.end,x=d._input.contours;m>y&&(p.start=x.start=y,y=p.end=x.end=m,m=p.start),p.size>0||(v=m===y?1:c(m,y,d.ncontours).dtick,x.size=p.size=v)}}},84426:function(i,o,a){var s=a(39898),u=a(91424),c=a(70035),d=a(86068);i.exports=function(f){var p=s.select(f).selectAll("g.contour");p.style("opacity",function(h){return h[0].trace.opacity}),p.each(function(h){var g=s.select(this),b=h[0].trace,v=b.contours,m=b.line,y=v.size||1,x=v.start,_=v.type==="constraint",w=!_&&v.coloring==="lines",S=!_&&v.coloring==="fill",k=w||S?d(b):null;g.selectAll("g.contourlevel").each(function(M){s.select(this).selectAll("path").call(u.lineGroupStyle,m.width,w?k(M.level):m.color,m.dash)});var C=v.labelfont;if(g.selectAll("g.contourlabels text").each(function(M){u.font(s.select(this),{family:C.family,size:C.size,color:C.color||(w?k(M.level):m.color)})}),_)g.selectAll("g.contourfill path").style("fill",b.fillcolor);else if(S){var T;g.selectAll("g.contourfill path").style("fill",function(M){return T===void 0&&(T=M.level),k(M.level+.5*y)}),T===void 0&&(T=x),g.selectAll("g.contourbg path").style("fill",k(T-.5*y))}}),c(f)}},8724:function(i,o,a){var s=a(1586),u=a(14523);i.exports=function(c,d,f,p,h){var g,b=f("contours.coloring"),v="";b==="fill"&&(g=f("contours.showlines")),g!==!1&&(b!=="lines"&&(v=f("line.color","#000")),f("line.width",.5),f("line.dash")),b!=="none"&&(c.showlegend!==!0&&(d.showlegend=!1),d._dfltShowLegend=!1,s(c,d,p,f,{prefix:"",cLetter:"z"})),f("line.smoothing"),u(f,p,v,h)}},21606:function(i,o,a){var s=a(82196),u=a(9012),c=a(41940),d=a(12663).axisHoverFormat,f=a(5386).fF,p=a(5386).si,h=a(50693),g=a(1426).extendFlat;i.exports=g({z:{valType:"data_array",editType:"calc"},x:g({},s.x,{impliedEdits:{xtype:"array"}}),x0:g({},s.x0,{impliedEdits:{xtype:"scaled"}}),dx:g({},s.dx,{impliedEdits:{xtype:"scaled"}}),y:g({},s.y,{impliedEdits:{ytype:"array"}}),y0:g({},s.y0,{impliedEdits:{ytype:"scaled"}}),dy:g({},s.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:g({},s.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:g({},s.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:g({},s.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:g({},s.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:g({},s.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:g({},s.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:d("x"),yhoverformat:d("y"),zhoverformat:d("z",1),hovertemplate:f(),texttemplate:p({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:c({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:g({},u.showlegend,{dflt:!1})},{transforms:void 0},h("",{cLetter:"z",autoColorDflt:!1}))},90757:function(i,o,a){var s=a(73972),u=a(71828),c=a(89298),d=a(42973),f=a(17562),p=a(78803),h=a(68296),g=a(4742),b=a(824),v=a(43907),m=a(70769),y=a(50606).BADNUM;function x(_){for(var w=[],S=_.length,k=0;k1){var X=(V[V.length-1]-V[0])/(V.length-1),K=Math.abs(X/100);for(I=0;IK)return!1}return!0}(F.rangebreaks||j.rangebreaks)&&(E=function(V,X,K){for(var ne=[],ae=-1,ie=0;ie=0;h--)(g=((y[[(d=(p=x[h])[0])-1,f=p[1]]]||S)[2]+(y[[d+1,f]]||S)[2]+(y[[d,f-1]]||S)[2]+(y[[d,f+1]]||S)[2])/20)&&(b[p]=[d,f,g],x.splice(h,1),v=!0);if(!v)throw"findEmpties iterated with no new neighbors";for(p in b)y[p]=b[p],m.push(b[p])}return m.sort(function(C,T){return T[2]-C[2]})}},46248:function(i,o,a){var s=a(30211),u=a(71828),c=a(89298),d=a(21081).extractOpts;i.exports=function(f,p,h,g,b){b||(b={});var v,m,y,x,_=b.isContour,w=f.cd[0],S=w.trace,k=f.xa,C=f.ya,T=w.x,M=w.y,O=w.z,D=w.xCenter,P=w.yCenter,E=w.zmask,I=S.zhoverformat,A=T,F=M;if(f.index!==!1){try{y=Math.round(f.index[1]),x=Math.round(f.index[0])}catch{return void u.error("Error hovering on heatmap, pointNumber must be [row,col], found:",f.index)}if(y<0||y>=O[0].length||x<0||x>O.length)return}else{if(s.inbox(p-T[0],p-T[T.length-1],0)>0||s.inbox(h-M[0],h-M[M.length-1],0)>0)return;if(_){var j;for(A=[2*T[0]-T[1]],j=1;jT&&(O=Math.max(O,Math.abs(f[b][v]-C)/(M-T))))}return O}i.exports=function(f,p){var h,g=1;for(d(f,p),h=0;h.01;h++)g=d(f,p,c(g));return g>.01&&s.log("interp2d didn't converge quickly",g),f}},58623:function(i,o,a){var s=a(71828);i.exports=function(u,c){u("texttemplate");var d=s.extendFlat({},c.font,{color:"auto",size:"auto"});s.coerceFont(u,"textfont",d)}},70769:function(i,o,a){var s=a(73972),u=a(71828).isArrayOrTypedArray;i.exports=function(c,d,f,p,h,g){var b,v,m,y=[],x=s.traceIs(c,"contour"),_=s.traceIs(c,"histogram"),w=s.traceIs(c,"gl2d");if(u(d)&&d.length>1&&!_&&g.type!=="category"){var S=d.length;if(!(S<=h))return x?d.slice(0,h):d.slice(0,h+1);if(x||w)y=d.slice(0,h);else if(h===1)y=[d[0]-.5,d[0]+.5];else{for(y=[1.5*d[0]-.5*d[1]],m=1;m0;)z=A.c2p(V[Y]),Y--;for(z0;)q=F.c2p(X[Y]),Y--;q=A._length||z<=0||R>=F._length||q<=0)return H.selectAll("image").data([]).exit().remove(),void C(H);Oe==="fast"?(ce=pe,we=se):(ce=Z,we=re);var de=document.createElement("canvas");de.width=ce,de.height=we;var _e,ue,me=de.getContext("2d",{willReadFrequently:!0}),xe=m(te,{noNumericCheck:!0,returnArray:!0});Oe==="fast"?(_e=ke?function(_n){return pe-1-_n}:p.identity,ue=Ce?function(_n){return se-1-_n}:p.identity):(_e=function(_n){return p.constrain(Math.round(A.c2p(V[_n])-B),0,Z)},ue=function(_n){return p.constrain(Math.round(F.c2p(X[_n])-R),0,re)});var ye,Se,Ae,Le,Re=ue(0),Ie=[Re,Re],Ne=ke?0:1,ze=Ce?0:1,qe=0,We=0,Ge=0,ot=0;function Je(_n,sn){if(_n!==void 0){var en=xe(_n);return en[0]=Math.round(en[0]),en[1]=Math.round(en[1]),en[2]=Math.round(en[2]),qe+=sn,We+=en[0]*sn,Ge+=en[1]*sn,ot+=en[2]*sn,en}return[0,0,0,0]}function st(_n,sn,en,Nn){var An=_n[en.bin0];if(An===void 0)return Je(void 0,1);var Wn,On=_n[en.bin1],qn=sn[en.bin0],br=sn[en.bin1],Za=On-An||0,lo=qn-An||0;return Wn=On===void 0?br===void 0?0:qn===void 0?2*(br-An):2*(2*br-qn-An)/3:br===void 0?qn===void 0?0:2*(2*An-On-qn)/3:qn===void 0?2*(2*br-On-An)/3:br+An-On-qn,Je(An+en.frac*Za+Nn.frac*(lo+en.frac*Wn))}if(Oe!=="default"){var bt,Be=0;try{bt=new Uint8Array(ce*we*4)}catch{bt=new Array(ce*we*4)}if(Oe==="smooth"){var je,tt,it,St=K||V,et=ne||X,ct=new Array(St.length),ht=new Array(et.length),$t=new Array(Z),kt=K?M:T,Wt=ne?M:T;for(Y=0;Ymt||mt>F._length))for(L=Gt;Lyt||yt>A._length)){var qt=g({x:pt,y:Et},te,D._fullLayout);qt.x=pt,qt.y=Et;var Rt=G.z[Y][L];Rt===void 0?(qt.z="",qt.zLabel=""):(qt.z=Rt,qt.zLabel=f.tickText(ut,Rt,"hover").text);var jt=G.text&&G.text[Y]&&G.text[Y][L];jt!==void 0&&jt!==!1||(jt=""),qt.text=jt;var Tt=p.texttemplateString(Qe,qt,D._fullLayout._d3locale,qt,te._meta||{});if(Tt){var Pt=Tt.split("
"),Ot=Pt.length,It=0;for(W=0;W0&&(T=!0);for(var D=0;Dp){var h=p-d[u];return d[u]=p,h}}return 0},max:function(u,c,d,f){var p=f[c];if(s(p)){if(p=Number(p),!s(d[u]))return d[u]=p,p;if(d[u]h?x>d?x>1.1*u?u:x>1.1*c?c:d:x>f?f:x>p?p:h:Math.pow(10,Math.floor(Math.log(x)/Math.LN10))}function m(x,_,w,S,k,C){if(S&&x>d){var T=y(_,k,C),M=y(w,k,C),O=x===u?0:1;return T[O]!==M[O]}return Math.floor(w/x)-Math.floor(_/x)>.1}function y(x,_,w){var S=_.c2d(x,u,w).split("-");return S[0]===""&&(S.unshift(),S[0]="-"+S[0]),S}i.exports=function(x,_,w,S,k){var C,T,M=-1.1*_,O=-.1*_,D=x-O,P=w[0],E=w[1],I=Math.min(b(P+O,P+D,S,k),b(E+O,E+D,S,k)),A=Math.min(b(P+M,P+O,S,k),b(E+M,E+O,S,k));if(I>A&&Ad){var F=C===u?1:6,j=C===u?"M12":"M1";return function(B,z){var N=S.c2d(B,u,k),R=N.indexOf("-",F);R>0&&(N=N.substr(0,R));var q=S.d2c(N,0,k);if(qx.r2l(X)&&(ne=d.tickIncrement(ne,A.size,!0,T)),ee.start=x.l2r(ne),V||u.nestedProperty(y,P+".start").set(ee.start)}var ae=A.end,ie=x.r2l(te.end),se=ie!==void 0;if((A.endFound||se)&&ie!==x.r2l(ae)){var pe=se?ie:u.aggNums(Math.max,null,M);ee.end=x.l2r(pe),se||u.nestedProperty(y,P+".start").set(ee.end)}var ke="autobin"+_;return y._input[ke]===!1&&(y._input[P]=u.extendFlat({},y[P]||{}),delete y._input[ke],delete y[ke]),[ee,M]}i.exports={calc:function(m,y){var x,_,w,S,k=[],C=[],T=y.orientation==="h",M=d.getFromId(m,T?y.yaxis:y.xaxis),O=T?"y":"x",D={x:"y",y:"x"}[O],P=y[O+"calendar"],E=y.cumulative,I=v(m,y,M,O),A=I[0],F=I[1],j=typeof A.size=="string",B=[],z=j?B:A,N=[],R=[],q=[],Y=0,L=y.histnorm,W=y.histfunc,H=L.indexOf("density")!==-1;E.enabled&&H&&(L=L.replace(/ ?density$/,""),H=!1);var G,te=W==="max"||W==="min"?null:0,ee=p.count,U=h[L],Q=!1,V=function(re){return M.r2c(re,0,P)};for(u.isArrayOrTypedArray(y[D])&&W!=="count"&&(G=y[D],Q=W==="avg",ee=p[W]),x=V(A.start),w=V(A.end)+(x-d.tickIncrement(x,A.size,!1,P))/1e6;x=0&&S=0;ue--)Se(ue);else if(de==="increasing"){for(ue=1;ue=0;ue--)re[ue]+=re[ue+1];_e==="exclude"&&(re.push(0),re.shift())}}(C,E.direction,E.currentbin);var Oe=Math.min(k.length,C.length),Pe=[],ce=0,we=Oe-1;for(x=0;x=ce;x--)if(C[x]){we=x;break}for(x=ce;x<=we;x++)if(s(k[x])&&s(C[x])){var Z={p:k[x],s:C[x],b:0};E.enabled||(Z.pts=q[x],ie?Z.ph0=Z.ph1=q[x].length?F[q[x][0]]:k[x]:(y._computePh=!0,Z.ph0=ne(B[x]),Z.ph1=ne(B[x+1],!0))),Pe.push(Z)}return Pe.length===1&&(Pe[0].width1=d.tickIncrement(Pe[0].p,A.size,!1,P)-Pe[0].p),f(Pe,y),u.isArrayOrTypedArray(y.selectedpoints)&&u.tagSelected(Pe,y,ke),Pe},calcAllAutoBins:v}},72406:function(i){i.exports={eventDataKeys:["binNumber"]}},82222:function(i,o,a){var s=a(71828),u=a(41675),c=a(73972).traceIs,d=a(26125),f=s.nestedProperty,p=a(99082).getAxisGroup,h=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],g=["x","y"];i.exports=function(b,v){var m,y,x,_,w,S,k,C=v._histogramBinOpts={},T=[],M={},O=[];function D(H,G){return s.coerce(m._input,m,m._module.attributes,H,G)}function P(H){return H.orientation==="v"?"x":"y"}function E(H,G,te){var ee=H.uid+"__"+te;G||(G=ee);var U=function(K,ne){return u.getFromTrace({_fullLayout:v},K,ne).type}(H,te),Q=H[te+"calendar"]||"",V=C[G],X=!0;V&&(U===V.axType&&Q===V.calendar?(X=!1,V.traces.push(H),V.dirs.push(te)):(G=ee,U!==V.axType&&s.warn(["Attempted to group the bins of trace",H.index,"set on a","type:"+U,"axis","with bins on","type:"+V.axType,"axis."].join(" ")),Q!==V.calendar&&s.warn(["Attempted to group the bins of trace",H.index,"set with a",Q,"calendar","with bins",V.calendar?"on a "+V.calendar+" calendar":"w/o a set calendar"].join(" ")))),X&&(C[G]={traces:[H],dirs:[te],axType:U,calendar:H[te+"calendar"]||""}),H["_"+te+"bingroup"]=G}for(w=0;wB&&I.splice(B,I.length-B),j.length>B&&j.splice(B,j.length-B);var z=[],N=[],R=[],q=typeof E.size=="string",Y=typeof F.size=="string",L=[],W=[],H=q?L:E,G=Y?W:F,te=0,ee=[],U=[],Q=y.histnorm,V=y.histfunc,X=Q.indexOf("density")!==-1,K=V==="max"||V==="min"?null:0,ne=c.count,ae=d[Q],ie=!1,se=[],pe=[],ke="z"in y?y.z:"marker"in y&&Array.isArray(y.marker.color)?y.marker.color:"";ke&&V!=="count"&&(ie=V==="avg",ne=c[V]);var Ce=E.size,Oe=O(E.start),Pe=O(E.end)+(Oe-u.tickIncrement(Oe,Ce,!1,T))/1e6;for(x=Oe;x=0&&w=0&&S0||s.inbox(p-h.y0,p-(h.y0+h.h*g.dy),0)>0)){var m,y=Math.floor((f-h.x0)/g.dx),x=Math.floor(Math.abs(p-h.y0)/g.dy);if(g._hasZ?m=h.z[x][y]:g._hasSource&&(m=g._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(y,x,1,1).data),m){var _,w=h.hi||g.hoverinfo;if(w){var S=w.split("+");S.indexOf("all")!==-1&&(S=["color"]),S.indexOf("color")!==-1&&(_=!0)}var k,C=c.colormodel[g.colormodel],T=C.colormodel||g.colormodel,M=T.length,O=g._scaler(m),D=C.suffix,P=[];(g.hovertemplate||_)&&(P.push("["+[O[0]+D[0],O[1]+D[1],O[2]+D[2]].join(", ")),M===4&&P.push(", "+O[3]+D[3]),P.push("]"),P=P.join(""),d.extraText=T.toUpperCase()+": "+P),Array.isArray(g.hovertext)&&Array.isArray(g.hovertext[x])?k=g.hovertext[x][y]:Array.isArray(g.text)&&Array.isArray(g.text[x])&&(k=g.text[x][y]);var E=v.c2p(h.y0+(x+.5)*g.dy),I=h.x0+(y+.5)*g.dx,A=h.y0+(x+.5)*g.dy,F="["+m.slice(0,g.colormodel.length).join(", ")+"]";return[u.extendFlat(d,{index:[x,y],x0:b.c2p(h.x0+y*g.dx),x1:b.c2p(h.x0+(y+1)*g.dx),y0:E,y1:E,color:O,xVal:I,xLabelVal:I,yVal:A,yLabelVal:A,zLabelVal:F,text:k,hovertemplateLabels:{zLabel:F,colorLabel:P,"color[0]Label":O[0]+D[0],"color[1]Label":O[1]+D[1],"color[2]Label":O[2]+D[2],"color[3]Label":O[3]+D[3]}})]}}}},94507:function(i,o,a){i.exports={attributes:a(17230),supplyDefaults:a(13245),calc:a(71113),plot:a(60775),style:a(12826),hoverPoints:a(28749),eventData:a(30835),moduleType:"trace",name:"image",basePlotModule:a(93612),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}},60775:function(i,o,a){var s=a(39898),u=a(71828),c=u.strTranslate,d=a(77922),f=a(51877),p=a(3883),h=a(32396).STYLE;i.exports=function(g,b,v,m){var y=b.xaxis,x=b.yaxis,_=!g._context._exportedPlot&&p();u.makeTraceGroups(m,v,"im").each(function(w){var S=s.select(this),k=w[0],C=k.trace,T=(C.zsmooth==="fast"||C.zsmooth===!1&&_)&&!C._hasZ&&C._hasSource&&y.type==="linear"&&x.type==="linear";C._realImage=T;var M,O,D,P,E,I,A=k.z,F=k.x0,j=k.y0,B=k.w,z=k.h,N=C.dx,R=C.dy;for(I=0;M===void 0&&I0;)O=y.c2p(F+I*N),I--;for(I=0;P===void 0&&I0;)E=x.c2p(j+I*R),I--;OG[0];if(te||ee){var U=M+q/2,Q=P+Y/2;W+="transform:"+c(U+"px",Q+"px")+"scale("+(te?-1:1)+","+(ee?-1:1)+")"+c(-U+"px",-Q+"px")+";"}}L.attr("style",W);var V=new Promise(function(K){if(C._hasZ)K();else if(C._hasSource)if(C._canvas&&C._canvas.el.width===B&&C._canvas.el.height===z&&C._canvas.source===C.source)K();else{var ne=document.createElement("canvas");ne.width=B,ne.height=z;var ae=ne.getContext("2d",{willReadFrequently:!0});C._image=C._image||new Image;var ie=C._image;ie.onload=function(){ae.drawImage(ie,0,0),C._canvas={el:ne,source:C.source},K()},ie.setAttribute("src",C.source)}}).then(function(){var K,ne;if(C._hasZ)ne=X(function(ie,se){return A[se][ie]}),K=ne.toDataURL("image/png");else if(C._hasSource)if(T)K=C.source;else{var ae=C._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,B,z).data;ne=X(function(ie,se){var pe=4*(se*B+ie);return[ae[pe],ae[pe+1],ae[pe+2],ae[pe+3]]}),K=ne.toDataURL("image/png")}L.attr({"xlink:href":K,height:Y,width:q,x:M,y:P})});g._promises.push(V)}function X(K){var ne=document.createElement("canvas");ne.width=q,ne.height=Y;var ae,ie=ne.getContext("2d",{willReadFrequently:!0}),se=function(de){return u.constrain(Math.round(y.c2p(F+de*N)-M),0,q)},pe=function(de){return u.constrain(Math.round(x.c2p(j+de*R)-P),0,Y)},ke=f.colormodel[C.colormodel],Ce=ke.colormodel||C.colormodel,Oe=ke.fmt;for(I=0;I=0}),(g.type==="funnelarea"?D:g.sort)&&m.sort(function(F,j){return j.v-F.v}),m[0]&&(m[0].vTotal=O),m},crossTraceCalc:function(h,g){var b=(g||{}).type;b||(b="pie");var v=h._fullLayout,m=h.calcdata,y=v[b+"colorway"],x=v["_"+b+"colormap"];v["extend"+b+"colors"]&&(y=p(y,d));for(var _=0,w=0;w0){_=!0;break}}_||(x=0)}return{hasLabels:m,hasValues:y,len:x}}function g(b,v,m,y,x){y("marker.line.width")&&y("marker.line.color",x?void 0:m.paper_bgcolor);var _=y("marker.colors");p(y,"marker.pattern",_),b.marker&&!v.marker.pattern.fgcolor&&(v.marker.pattern.fgcolor=b.marker.colors),v.marker.pattern.bgcolor||(v.marker.pattern.bgcolor=m.paper_bgcolor)}i.exports={handleLabelsAndValues:h,handleMarkerDefaults:g,supplyDefaults:function(b,v,m,y){function x(D,P){return u.coerce(b,v,c,D,P)}var _=h(x("labels"),x("values")),w=_.len;if(v._hasLabels=_.hasLabels,v._hasValues=_.hasValues,!v._hasLabels&&v._hasValues&&(x("label0"),x("dlabel")),w){v._length=w,g(b,v,y,x,!0),x("scalegroup");var S,k=x("text"),C=x("texttemplate");if(C||(S=x("textinfo",Array.isArray(k)?"text+percent":"percent")),x("hovertext"),x("hovertemplate"),C||S&&S!=="none"){var T=x("textposition");f(b,v,y,x,T,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(T)||T==="auto"||T==="outside")&&x("automargin"),(T==="inside"||T==="auto"||Array.isArray(T))&&x("insidetextorientation")}d(v,y,x);var M=x("hole");if(x("title.text")){var O=x("title.position",M?"middle center":"top center");M||O!=="middle center"||(v.title.position="top center"),u.coerceFont(x,"title.font",y.font)}x("sort"),x("direction"),x("rotation"),x("pull")}else v.visible=!1}}},20007:function(i,o,a){var s=a(23469).appendArrayMultiPointValues;i.exports=function(u,c){var d={curveNumber:c.index,pointNumbers:u.pts,data:c._input,fullData:c,label:u.label,color:u.color,value:u.v,percent:u.percent,text:u.text,bbox:u.bbox,v:u.v};return u.pts.length===1&&(d.pointNumber=d.i=u.pts[0]),s(d,c,u.pts),c.type==="funnelarea"&&(delete d.v,delete d.i),d}},22209:function(i,o,a){var s=a(91424),u=a(7901);i.exports=function(c,d,f,p){var h=f.marker.pattern;h&&h.shape?s.pointStyle(c,f,p,d):u.fill(c,d.color)}},53581:function(i,o,a){var s=a(71828);function u(c){return c.indexOf("e")!==-1?c.replace(/[.]?0+e/,"e"):c.indexOf(".")!==-1?c.replace(/[.]?0+$/,""):c}o.formatPiePercent=function(c,d){var f=u((100*c).toPrecision(3));return s.numSeparate(f,d)+"%"},o.formatPieValue=function(c,d){var f=u(c.toPrecision(10));return s.numSeparate(f,d)},o.getFirstFilled=function(c,d){if(Array.isArray(c))for(var f=0;f"),name:K.hovertemplate||ne.indexOf("name")!==-1?K.name:void 0,idealAlign:V.pxmid[0]<0?"left":"right",color:_.castOption(Oe.bgcolor,V.pts)||V.color,borderColor:_.castOption(Oe.bordercolor,V.pts),fontFamily:_.castOption(Pe.family,V.pts),fontSize:_.castOption(Pe.size,V.pts),fontColor:_.castOption(Pe.color,V.pts),nameLength:_.castOption(Oe.namelength,V.pts),textAlign:_.castOption(Oe.align,V.pts),hovertemplate:_.castOption(K.hovertemplate,V.pts),hovertemplateLabels:V,eventData:[w(V,K)]},{container:X._hoverlayer.node(),outerContainer:X._paper.node(),gd:W,inOut_bbox:ce}),V.bbox=ce[0],U._hasHoverLabel=!0}U._hasHoverEvent=!0,W.emit("plotly_hover",{points:[w(V,K)],event:s.event})}}),L.on("mouseout",function(V){var X=W._fullLayout,K=W._fullData[U.index],ne=s.select(this).datum();U._hasHoverEvent&&(V.originalEvent=s.event,W.emit("plotly_unhover",{points:[w(ne,K)],event:s.event}),U._hasHoverEvent=!1),U._hasHoverLabel&&(c.loneUnhover(X._hoverlayer.node()),U._hasHoverLabel=!1)}),L.on("click",function(V){var X=W._fullLayout,K=W._fullData[U.index];W._dragging||X.hovermode===!1||(W._hoverdata=[w(V,K)],c.click(W,s.event))})}function C(L,W,H){var G=_.castOption(L.insidetextfont.color,W.pts);!G&&L._input.textfont&&(G=_.castOption(L._input.textfont.color,W.pts));var te=_.castOption(L.insidetextfont.family,W.pts)||_.castOption(L.textfont.family,W.pts)||H.family,ee=_.castOption(L.insidetextfont.size,W.pts)||_.castOption(L.textfont.size,W.pts)||H.size;return{color:G||d.contrast(W.color),family:te,size:ee}}function T(L,W){for(var H,G,te=0;teye&&ye>Ae||Se=-4;ke-=2)Ce(Math.PI*ke,"tan");for(ke=4;ke>=-4;ke-=2)Ce(Math.PI*(ke+1),"tan")}if(ne||ie){for(ke=4;ke>=-4;ke-=2)Ce(Math.PI*(ke+1.5),"rad");for(ke=4;ke>=-4;ke-=2)Ce(Math.PI*(ke+.5),"rad")}}if(Q||se||ne){var Oe=Math.sqrt(L.width*L.width+L.height*L.height);if((ee={scale:te*G*2/Oe,rCenter:1-te,rotate:0}).textPosAngle=(W.startangle+W.stopangle)/2,ee.scale>=1)return ee;pe.push(ee)}(se||ie)&&((ee=O(L,G,U,V,X)).textPosAngle=(W.startangle+W.stopangle)/2,pe.push(ee)),(se||ae)&&((ee=D(L,G,U,V,X)).textPosAngle=(W.startangle+W.stopangle)/2,pe.push(ee));for(var Pe=0,ce=0,we=0;we=1)break}return pe[Pe]}function O(L,W,H,G,te){W=Math.max(0,W-2*x);var ee=L.width/L.height,U=I(ee,G,W,H);return{scale:2*U/L.height,rCenter:P(ee,U/W),rotate:E(te)}}function D(L,W,H,G,te){W=Math.max(0,W-2*x);var ee=L.height/L.width,U=I(ee,G,W,H);return{scale:2*U/L.width,rCenter:P(ee,U/W),rotate:E(te+Math.PI/2)}}function P(L,W){return Math.cos(W)-L*W}function E(L){return(180/Math.PI*L+720)%180-90}function I(L,W,H,G){var te=L+1/(2*Math.tan(W));return H*Math.min(1/(Math.sqrt(te*te+.5)+te),G/(Math.sqrt(L*L+G/2)+L))}function A(L,W){return L.v!==W.vTotal||W.trace.hole?Math.min(1/(1+1/Math.sin(L.halfangle)),L.ring/2):1}function F(L,W){var H=W.pxmid[0],G=W.pxmid[1],te=L.width/2,ee=L.height/2;return H<0&&(te*=-1),G<0&&(ee*=-1),{scale:1,rCenter:1,rotate:0,x:te+Math.abs(ee)*(te>0?1:-1)/2,y:ee/(1+H*H/(G*G)),outside:!0}}function j(L,W){var H,G,te,ee=L.trace,U={x:L.cx,y:L.cy},Q={tx:0,ty:0};Q.ty+=ee.title.font.size,te=z(ee),ee.title.position.indexOf("top")!==-1?(U.y-=(1+te)*L.r,Q.ty-=L.titleBox.height):ee.title.position.indexOf("bottom")!==-1&&(U.y+=(1+te)*L.r);var V,X=L.r/((V=L.trace.aspectratio)===void 0?1:V),K=W.w*(ee.domain.x[1]-ee.domain.x[0])/2;return ee.title.position.indexOf("left")!==-1?(K+=X,U.x-=(1+te)*X,Q.tx+=L.titleBox.width/2):ee.title.position.indexOf("center")!==-1?K*=2:ee.title.position.indexOf("right")!==-1&&(K+=X,U.x+=(1+te)*X,Q.tx-=L.titleBox.width/2),H=K/L.titleBox.width,G=B(L,W)/L.titleBox.height,{x:U.x,y:U.y,scale:Math.min(H,G),tx:Q.tx,ty:Q.ty}}function B(L,W){var H=L.trace,G=W.h*(H.domain.y[1]-H.domain.y[0]);return Math.min(L.titleBox.height,G/2)}function z(L){var W,H=L.pull;if(!H)return 0;if(Array.isArray(H))for(H=0,W=0;WH&&(H=L.pull[W]);return H}function N(L,W){for(var H=[],G=0;G1?we=(ce=ie.r)/pe.aspectratio:ce=(we=ie.r)*pe.aspectratio,Pe=(ce*=(1+pe.baseratio)/2)*we}Ce=Math.min(Ce,Pe/ie.vTotal)}for(se=0;se")}if(ee){var ke=p.castOption(te,W.i,"texttemplate");if(ke){var Ce=function(Pe){return{label:Pe.label,value:Pe.v,valueLabel:_.formatPieValue(Pe.v,G.separators),percent:Pe.v/H.vTotal,percentLabel:_.formatPiePercent(Pe.v/H.vTotal,G.separators),color:Pe.color,text:Pe.text,customdata:p.castOption(te,Pe.i,"customdata")}}(W),Oe=_.getFirstFilled(te.text,W.pts);(S(Oe)||Oe==="")&&(Ce.text=Oe),W.text=p.texttemplateString(ke,Ce,L._fullLayout._d3locale,Ce,te._meta||{})}else W.text=""}}function Y(L,W){var H=L.rotate*Math.PI/180,G=Math.cos(H),te=Math.sin(H),ee=(W.left+W.right)/2,U=(W.top+W.bottom)/2;L.textX=ee*G-U*te,L.textY=ee*te+U*G,L.noCenter=!0}i.exports={plot:function(L,W){var H=L._context.staticPlot,G=L._fullLayout,te=G._size;y("pie",G),T(W,L),N(W,te);var ee=p.makeTraceGroups(G._pielayer,W,"trace").each(function(U){var Q=s.select(this),V=U[0],X=V.trace;(function(K){var ne,ae,ie,se=K[0],pe=se.r,ke=se.trace,Ce=_.getRotationAngle(ke.rotation),Oe=2*Math.PI/se.vTotal,Pe="px0",ce="px1";if(ke.direction==="counterclockwise"){for(ne=0;nese.vTotal/2?1:0,ae.halfangle=Math.PI*Math.min(ae.v/se.vTotal,.5),ae.ring=1-ke.hole,ae.rInscribed=A(ae,se))})(U),Q.attr("stroke-linejoin","round"),Q.each(function(){var K=s.select(this).selectAll("g.slice").data(U);K.enter().append("g").classed("slice",!0),K.exit().remove();var ne=[[[],[]],[[],[]]],ae=!1;K.each(function(ce,we){if(ce.hidden)s.select(this).selectAll("path,g").remove();else{ce.pointNumber=ce.i,ce.curveNumber=X.index,ne[ce.pxmid[1]<0?0:1][ce.pxmid[0]<0?0:1].push(ce);var Z=V.cx,re=V.cy,de=s.select(this),_e=de.selectAll("path.surface").data([ce]);if(_e.enter().append("path").classed("surface",!0).style({"pointer-events":H?"none":"all"}),de.call(k,L,U),X.pull){var ue=+_.castOption(X.pull,ce.pts)||0;ue>0&&(Z+=ue*ce.pxmid[0],re+=ue*ce.pxmid[1])}ce.cxFinal=Z,ce.cyFinal=re;var me=X.hole;if(ce.v===V.vTotal){var xe="M"+(Z+ce.px0[0])+","+(re+ce.px0[1])+Re(ce.px0,ce.pxmid,!0,1)+Re(ce.pxmid,ce.px0,!0,1)+"Z";me?_e.attr("d","M"+(Z+me*ce.px0[0])+","+(re+me*ce.px0[1])+Re(ce.px0,ce.pxmid,!1,me)+Re(ce.pxmid,ce.px0,!1,me)+"Z"+xe):_e.attr("d",xe)}else{var ye=Re(ce.px0,ce.px1,!0,1);if(me){var Se=1-me;_e.attr("d","M"+(Z+me*ce.px1[0])+","+(re+me*ce.px1[1])+Re(ce.px1,ce.px0,!1,me)+"l"+Se*ce.px0[0]+","+Se*ce.px0[1]+ye+"Z")}else _e.attr("d","M"+Z+","+re+"l"+ce.px0[0]+","+ce.px0[1]+ye+"Z")}q(L,ce,V);var Ae=_.castOption(X.textposition,ce.pts),Le=de.selectAll("g.slicetext").data(ce.text&&Ae!=="none"?[0]:[]);Le.enter().append("g").classed("slicetext",!0),Le.exit().remove(),Le.each(function(){var Ie=p.ensureSingle(s.select(this),"text","",function(st){st.attr("data-notex",1)}),Ne=p.ensureUniformFontSize(L,Ae==="outside"?function(st,bt,Be){return{color:_.castOption(st.outsidetextfont.color,bt.pts)||_.castOption(st.textfont.color,bt.pts)||Be.color,family:_.castOption(st.outsidetextfont.family,bt.pts)||_.castOption(st.textfont.family,bt.pts)||Be.family,size:_.castOption(st.outsidetextfont.size,bt.pts)||_.castOption(st.textfont.size,bt.pts)||Be.size}}(X,ce,G.font):C(X,ce,G.font));Ie.text(ce.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(f.font,Ne).call(b.convertToTspans,L);var ze,qe=f.bBox(Ie.node());if(Ae==="outside")ze=F(qe,ce);else if(ze=M(qe,ce,V),Ae==="auto"&&ze.scale<1){var We=p.ensureUniformFontSize(L,X.outsidetextfont);Ie.call(f.font,We),ze=F(qe=f.bBox(Ie.node()),ce)}var Ge=ze.textPosAngle,ot=Ge===void 0?ce.pxmid:R(V.r,Ge);if(ze.targetX=Z+ot[0]*ze.rCenter+(ze.x||0),ze.targetY=re+ot[1]*ze.rCenter+(ze.y||0),Y(ze,qe),ze.outside){var Je=ze.targetY;ce.yLabelMin=Je-qe.height/2,ce.yLabelMid=Je,ce.yLabelMax=Je+qe.height/2,ce.labelExtraX=0,ce.labelExtraY=0,ae=!0}ze.fontSize=Ne.size,m(X.type,ze,G),U[we].transform=ze,p.setTransormAndDisplay(Ie,ze)})}function Re(Ie,Ne,ze,qe){var We=qe*(Ne[0]-Ie[0]),Ge=qe*(Ne[1]-Ie[1]);return"a"+qe*V.r+","+qe*V.r+" 0 "+ce.largeArc+(ze?" 1 ":" 0 ")+We+","+Ge}});var ie=s.select(this).selectAll("g.titletext").data(X.title.text?[0]:[]);if(ie.enter().append("g").classed("titletext",!0),ie.exit().remove(),ie.each(function(){var ce,we=p.ensureSingle(s.select(this),"text","",function(re){re.attr("data-notex",1)}),Z=X.title.text;X._meta&&(Z=p.templateString(Z,X._meta)),we.text(Z).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(f.font,X.title.font).call(b.convertToTspans,L),ce=X.title.position==="middle center"?function(re){var de=Math.sqrt(re.titleBox.width*re.titleBox.width+re.titleBox.height*re.titleBox.height);return{x:re.cx,y:re.cy,scale:re.trace.hole*re.r*2/de,tx:0,ty:-re.titleBox.height/2+re.trace.title.font.size}}(V):j(V,te),we.attr("transform",g(ce.x,ce.y)+h(Math.min(1,ce.scale))+g(ce.tx,ce.ty))}),ae&&function(ce,we){var Z,re,de,_e,ue,me,xe,ye,Se,Ae,Le,Re,Ie;function Ne(Ge,ot){return Ge.pxmid[1]-ot.pxmid[1]}function ze(Ge,ot){return ot.pxmid[1]-Ge.pxmid[1]}function qe(Ge,ot){ot||(ot={});var Je,st,bt,Be,je=ot.labelExtraY+(re?ot.yLabelMax:ot.yLabelMin),tt=re?Ge.yLabelMin:Ge.yLabelMax,it=re?Ge.yLabelMax:Ge.yLabelMin,St=Ge.cyFinal+ue(Ge.px0[1],Ge.px1[1]),et=je-tt;if(et*xe>0&&(Ge.labelExtraY=et),Array.isArray(we.pull))for(st=0;st=(_.castOption(we.pull,bt.pts)||0)||((Ge.pxmid[1]-bt.pxmid[1])*xe>0?(et=bt.cyFinal+ue(bt.px0[1],bt.px1[1])-tt-Ge.labelExtraY)*xe>0&&(Ge.labelExtraY+=et):(it+Ge.labelExtraY-St)*xe>0&&(Je=3*me*Math.abs(st-Ae.indexOf(Ge)),(Be=bt.cxFinal+_e(bt.px0[0],bt.px1[0])+Je-(Ge.cxFinal+Ge.pxmid[0])-Ge.labelExtraX)*me>0&&(Ge.labelExtraX+=Be)))}for(re=0;re<2;re++)for(de=re?Ne:ze,ue=re?Math.max:Math.min,xe=re?1:-1,Z=0;Z<2;Z++){for(_e=Z?Math.max:Math.min,me=Z?1:-1,(ye=ce[re][Z]).sort(de),Se=ce[1-re][Z],Ae=Se.concat(ye),Re=[],Le=0;LeMath.abs(ye)?ue+="l"+ye*Z.pxmid[0]/Z.pxmid[1]+","+ye+"H"+(_e+Z.labelExtraX+me):ue+="l"+Z.labelExtraX+","+xe+"v"+(ye-xe)+"h"+me}else ue+="V"+(Z.yLabelMid+Z.labelExtraY)+"h"+me;p.ensureSingle(re,"path","textline").call(d.stroke,we.outsidetextfont.color).attr({"stroke-width":Math.min(2,we.outsidetextfont.size/8),d:ue,fill:"none"})}else re.select("path.textline").remove()})}(K,X),ae&&X.automargin){var se=f.bBox(Q.node()),pe=X.domain,ke=te.w*(pe.x[1]-pe.x[0]),Ce=te.h*(pe.y[1]-pe.y[0]),Oe=(.5*ke-V.r)/te.w,Pe=(.5*Ce-V.r)/te.h;u.autoMargin(L,"pie."+X.uid+".automargin",{xl:pe.x[0]-Oe,xr:pe.x[1]+Oe,yb:pe.y[0]-Pe,yt:pe.y[1]+Pe,l:Math.max(V.cx-V.r-se.left,0),r:Math.max(se.right-(V.cx+V.r),0),b:Math.max(se.bottom-(V.cy+V.r),0),t:Math.max(V.cy-V.r-se.top,0),pad:5})}})});setTimeout(function(){ee.selectAll("tspan").each(function(){var U=s.select(this);U.attr("dy")&&U.attr("dy",U.attr("dy"))})},0)},formatSliceLabel:q,transformInsideText:M,determineInsideTextFont:C,positionTitleOutside:j,prerenderTitles:T,layoutAreas:N,attachFxHandlers:k,computeTransform:Y}},68357:function(i,o,a){var s=a(39898),u=a(63463),c=a(72597).resizeText;i.exports=function(d){var f=d._fullLayout._pielayer.selectAll(".trace");c(d,f,"pie"),f.each(function(p){var h=p[0].trace,g=s.select(this);g.style({opacity:h.opacity}),g.selectAll("path.surface").each(function(b){s.select(this).call(u,b,h,d)})})}},63463:function(i,o,a){var s=a(7901),u=a(53581).castOption,c=a(22209);i.exports=function(d,f,p,h){var g=p.marker.line,b=u(g.color,f.pts)||s.defaultLine,v=u(g.width,f.pts)||0;d.call(c,f,p,h).style("stroke-width",v).call(s.stroke,b)}},75225:function(i,o,a){var s=a(71828);i.exports=function(u,c){for(var d=0;dC&&q[M].gap;)M--;for(D=q[M].s,T=q.length-1;T>M;T--)q[T].s=D;for(;Cj[y]&&y=0;y--){var x=d[y];if(x.type==="scatter"&&x.xaxis===v.xaxis&&x.yaxis===v.yaxis){x.opacity=void 0;break}}}}}},17438:function(i,o,a){var s=a(71828),u=a(73972),c=a(82196),d=a(47581),f=a(34098),p=a(67513),h=a(73927),g=a(565),b=a(49508),v=a(11058),m=a(94039),y=a(82410),x=a(28908),_=a(71828).coercePattern;i.exports=function(w,S,k,C){function T(F,j){return s.coerce(w,S,c,F,j)}var M=p(w,S,C,T);if(M||(S.visible=!1),S.visible){h(w,S,C,T),T("xhoverformat"),T("yhoverformat");var O=g(w,S,C,T);C.scattermode==="group"&&S.orientation===void 0&&T("orientation","v");var D=!O&&M=Math.min(ke,Ce)&&w<=Math.max(ke,Ce)?0:1/0}var Oe=Math.max(3,pe.mrc||0),Pe=1-1/Oe,ce=Math.abs(x.c2p(pe.x)-w);return ce=Math.min(ke,Ce)&&S<=Math.max(ke,Ce)?0:1/0}var Oe=Math.max(3,pe.mrc||0),Pe=1-1/Oe,ce=Math.abs(_.c2p(pe.y)-S);return ceie!=(ee=L[q][1])>=ie&&(H=L[q-1][0],G=L[q][0],ee-te&&(W=H+(G-H)*(ie-te)/(ee-te),X=Math.min(X,W),K=Math.max(K,W)));X=Math.max(X,0),K=Math.min(K,x._length);var se=f.defaultLine;return f.opacity(y.fillcolor)?se=y.fillcolor:f.opacity((y.line||{}).color)&&(se=y.line.color),s.extendFlat(h,{distance:h.maxHoverDistance,x0:X,x1:K,y0:ie,y1:ie,color:se,hovertemplate:!1}),delete h.index,y.text&&!Array.isArray(y.text)?h.text=String(y.text):h.text=y.name,[h]}}}},67368:function(i,o,a){var s=a(34098);i.exports={hasLines:s.hasLines,hasMarkers:s.hasMarkers,hasText:s.hasText,isBubble:s.isBubble,attributes:a(82196),layoutAttributes:a(21479),supplyDefaults:a(17438),crossTraceDefaults:a(34936),supplyLayoutDefaults:a(79334),calc:a(47761).calc,crossTraceCalc:a(72626),arraysToCalcdata:a(75225),plot:a(32663),colorbar:a(4898),formatLabels:a(8225),style:a(16296).style,styleOnSelect:a(16296).styleOnSelect,hoverPoints:a(33720),selectPoints:a(98002),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:a(93612),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}},21479:function(i){i.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}},79334:function(i,o,a){var s=a(71828),u=a(21479);i.exports=function(c,d){var f,p=d.barmode==="group";d.scattermode==="group"&&(f=p?d.bargap:.2,s.coerce(c,d,u,"scattergap",f))}},11058:function(i,o,a){var s=a(71828).isArrayOrTypedArray,u=a(52075).hasColorscale,c=a(1586);i.exports=function(d,f,p,h,g,b){b||(b={});var v=(d.marker||{}).color;g("line.color",p),u(d,"line")?c(d,f,h,g,{prefix:"line.",cLetter:"c"}):g("line.color",!s(v)&&v||p),g("line.width"),b.noDash||g("line.dash"),b.backoff&&g("line.backoff")}},34621:function(i,o,a){var s=a(91424),u=a(50606),c=u.BADNUM,d=u.LOG_CLIP,f=d+.5,p=d-.5,h=a(71828),g=h.segmentsIntersect,b=h.constrain,v=a(47581);i.exports=function(m,y){var x,_,w,S,k,C,T,M,O,D,P,E,I,A,F,j,B,z,N=y.trace||{},R=y.xaxis,q=y.yaxis,Y=R.type==="log",L=q.type==="log",W=R._length,H=q._length,G=y.backoff,te=N.marker,ee=y.connectGaps,U=y.baseTolerance,Q=y.shape,V=Q==="linear",X=N.fill&&N.fill!=="none",K=[],ne=v.minTolerance,ae=m.length,ie=new Array(ae),se=0;function pe(et){var ct=m[et];if(!ct)return!1;var ht=y.linearized?R.l2p(ct.x):R.c2p(ct.x),$t=y.linearized?q.l2p(ct.y):q.c2p(ct.y);if(ht===c){if(Y&&(ht=R.c2p(ct.x,!0)),ht===c)return!1;L&&$t===c&&(ht*=Math.abs(R._m*H*(R._m>0?f:p)/(q._m*W*(q._m>0?f:p)))),ht*=1e3}if($t===c){if(L&&($t=q.c2p(ct.y,!0)),$t===c)return!1;$t*=1e3}return[ht,$t]}function ke(et,ct,ht,$t){var kt=ht-et,Wt=$t-ct,wt=.5-et,be=.5-ct,Me=kt*kt+Wt*Wt,Ve=kt*wt+Wt*be;if(Ve>0&&Vexe||et[1]Se)return[b(et[0],me,xe),b(et[1],ye,Se)]}function Re(et,ct){return et[0]===ct[0]&&(et[0]===me||et[0]===xe)||et[1]===ct[1]&&(et[1]===ye||et[1]===Se)||void 0}function Ie(et,ct,ht){return function($t,kt){var Wt=Le($t),wt=Le(kt),be=[];if(Wt&&wt&&Re(Wt,wt))return be;Wt&&be.push(Wt),wt&&be.push(wt);var Me=2*h.constrain(($t[et]+kt[et])/2,ct,ht)-((Wt||$t)[et]+(wt||kt)[et]);return Me&&((Wt&&wt?Me>0==Wt[et]>wt[et]?Wt:wt:Wt||wt)[et]+=Me),be}}function Ne(et){var ct=et[0],ht=et[1],$t=ct===ie[se-1][0],kt=ht===ie[se-1][1];if(!$t||!kt)if(se>1){var Wt=ct===ie[se-2][0],wt=ht===ie[se-2][1];$t&&(ct===me||ct===xe)&&Wt?wt?se--:ie[se-1]=et:kt&&(ht===ye||ht===Se)&&wt?Wt?se--:ie[se-1]=et:ie[se++]=et}else ie[se++]=et}function ze(et){ie[se-1][0]!==et[0]&&ie[se-1][1]!==et[1]&&Ne([we,Z]),Ne(et),re=null,we=Z=0}Q==="linear"||Q==="spline"?_e=function(et,ct){for(var ht=[],$t=0,kt=0;kt<4;kt++){var Wt=Ae[kt],wt=g(et[0],et[1],ct[0],ct[1],Wt[0],Wt[1],Wt[2],Wt[3]);wt&&(!$t||Math.abs(wt.x-ht[0][0])>1||Math.abs(wt.y-ht[0][1])>1)&&(wt=[wt.x,wt.y],$t&&Oe(wt,et)xe?xe:0,ce=et[1]Se?Se:0,Pe||ce){if(se)if(re){var ct=_e(re,et);ct.length>1&&(ze(ct[0]),ie[se++]=ct[1])}else de=_e(ie[se-1],et)[0],ie[se++]=de;else ie[se++]=[Pe||et[0],ce||et[1]];var ht=ie[se-1];Pe&&ce&&(ht[0]!==Pe||ht[1]!==ce)?(re&&(we!==Pe&&Z!==ce?Ne(we&&Z?($t=re,Wt=(kt=et)[0]-$t[0],wt=(kt[1]-$t[1])/Wt,($t[1]*kt[0]-kt[1]*$t[0])/Wt>0?[wt>0?me:xe,Se]:[wt>0?xe:me,ye]):[we||Pe,Z||ce]):we&&Z&&Ne([we,Z])),Ne([Pe,ce])):we-Pe&&Z-ce&&Ne([Pe||we,ce||Z]),re=et,we=Pe,Z=ce}else re&&ze(_e(re,et)[0]),ie[se++]=et;var $t,kt,Wt,wt}for(x=0;xCe(C,Ge))break;w=C,(I=O[0]*M[0]+O[1]*M[1])>P?(P=I,S=C,T=!1):I=m.length||!C)break;We(C),_=C}}else We(S)}re&&Ne([we||re[0],Z||re[1]]),K.push(ie.slice(0,se))}var ot=Q.slice(Q.length-1);if(G&&ot!=="h"&&ot!=="v"){for(var Je=!1,st=-1,bt=[],Be=0;Be=0?h=y:(h=y=m,m++),h0?Math.max(b,p):0}}},4898:function(i){i.exports={container:"marker",min:"cmin",max:"cmax"}},49508:function(i,o,a){var s=a(7901),u=a(52075).hasColorscale,c=a(1586),d=a(34098);i.exports=function(f,p,h,g,b,v){var m=d.isBubble(f),y=(f.line||{}).color;v=v||{},y&&(h=y),b("marker.symbol"),b("marker.opacity",m?.7:1),b("marker.size"),v.noAngle||(b("marker.angle"),v.noAngleRef||b("marker.angleref"),v.noStandOff||b("marker.standoff")),b("marker.color",h),u(f,"marker")&&c(f,p,g,b,{prefix:"marker.",cLetter:"c"}),v.noSelect||(b("selected.marker.color"),b("unselected.marker.color"),b("selected.marker.size"),b("unselected.marker.size")),v.noLine||(b("marker.line.color",y&&!Array.isArray(y)&&p.marker.color!==y?y:m?s.background:s.defaultLine),u(f,"marker.line")&&c(f,p,g,b,{prefix:"marker.line.",cLetter:"c"}),b("marker.line.width",m?1:0)),m&&(b("marker.sizeref"),b("marker.sizemin"),b("marker.sizemode")),v.gradient&&b("marker.gradient.type")!=="none"&&b("marker.gradient.color")}},73927:function(i,o,a){var s=a(71828).dateTick0,u=a(50606).ONEWEEK;function c(d,f){return s(f,d%u==0?1:0)}i.exports=function(d,f,p,h,g){if(g||(g={x:!0,y:!0}),g.x){var b=h("xperiod");b&&(h("xperiod0",c(b,f.xcalendar)),h("xperiodalignment"))}if(g.y){var v=h("yperiod");v&&(h("yperiod0",c(v,f.ycalendar)),h("yperiodalignment"))}}},32663:function(i,o,a){var s=a(39898),u=a(73972),c=a(71828),d=c.ensureSingle,f=c.identity,p=a(91424),h=a(34098),g=a(34621),b=a(68687),v=a(61082).tester;function m(y,x,_,w,S,k,C){var T,M=y._context.staticPlot;(function(_e,ue,me,xe,ye){var Se=me.xaxis,Ae=me.yaxis,Le=s.extent(c.simpleMap(Se.range,Se.r2c)),Re=s.extent(c.simpleMap(Ae.range,Ae.r2c)),Ie=xe[0].trace;if(h.hasMarkers(Ie)){var Ne=Ie.marker.maxdisplayed;if(Ne!==0){var ze=xe.filter(function(ot){return ot.x>=Le[0]&&ot.x<=Le[1]&&ot.y>=Re[0]&&ot.y<=Re[1]}),qe=Math.ceil(ze.length/Ne),We=0;ye.forEach(function(ot,Je){var st=ot[0].trace;h.hasMarkers(st)&&st.marker.maxdisplayed>0&&Je0;function D(_e){return O?_e.transition():_e}var P=_.xaxis,E=_.yaxis,I=w[0].trace,A=I.line,F=s.select(k),j=d(F,"g","errorbars"),B=d(F,"g","lines"),z=d(F,"g","points"),N=d(F,"g","text");if(u.getComponentMethod("errorbars","plot")(y,j,_,C),I.visible===!0){var R,q;D(F).style("opacity",I.opacity);var Y=I.fill.charAt(I.fill.length-1);Y!=="x"&&Y!=="y"&&(Y=""),w[0][_.isRangePlot?"nodeRangePlot3":"node3"]=F;var L,W,H="",G=[],te=I._prevtrace;te&&(H=te._prevRevpath||"",q=te._nextFill,G=te._polygons);var ee,U,Q,V,X,K,ne,ae="",ie="",se=[],pe=c.noop;if(R=I._ownFill,h.hasLines(I)||I.fill!=="none"){for(q&&q.datum(w),["hv","vh","hvh","vhv"].indexOf(A.shape)!==-1?(ee=p.steps(A.shape),U=p.steps(A.shape.split("").reverse().join(""))):ee=U=A.shape==="spline"?function(_e){var ue=_e[_e.length-1];return _e.length>1&&_e[0][0]===ue[0]&&_e[0][1]===ue[1]?p.smoothclosed(_e.slice(1),A.smoothing):p.smoothopen(_e,A.smoothing)}:function(_e){return"M"+_e.join("L")},Q=function(_e){return U(_e.reverse())},se=g(w,{xaxis:P,yaxis:E,trace:I,connectGaps:I.connectgaps,baseTolerance:Math.max(A.width||1,3)/4,shape:A.shape,backoff:A.backoff,simplify:A.simplify,fill:I.fill}),ne=I._polygons=new Array(se.length),T=0;T0,D=b(y,x,_);(C=w.selectAll("g.trace").data(D,function(P){return P[0].trace.uid})).enter().append("g").attr("class",function(P){return"trace scatter trace"+P[0].trace.uid}).style("stroke-miterlimit",2),C.order(),function(P,E,I){E.each(function(A){var F=d(s.select(this),"g","fills");p.setClipUrl(F,I.layerClipId,P);var j=A[0].trace,B=[];j._ownfill&&B.push("_ownFill"),j._nexttrace&&B.push("_nextFill");var z=F.selectAll("g").data(B,f);z.enter().append("g"),z.exit().each(function(N){j[N]=null}).remove(),z.order().each(function(N){j[N]=d(s.select(this),"path","js-fill")})})}(y,C,x),O?(k&&(T=k()),s.transition().duration(S.duration).ease(S.easing).each("end",function(){T&&T()}).each("interrupt",function(){T&&T()}).each(function(){w.selectAll("g.trace").each(function(P,E){m(y,E,x,P,D,this,S)})})):C.each(function(P,E){m(y,E,x,P,D,this,S)}),M&&C.exit().remove(),w.selectAll("path:not([d])").remove()}},98002:function(i,o,a){var s=a(34098);i.exports=function(u,c){var d,f,p,h,g=u.cd,b=u.xaxis,v=u.yaxis,m=[],y=g[0].trace;if(!s.hasMarkers(y)&&!s.hasText(y))return[];if(c===!1)for(d=0;d"),h.hovertemplate=x.hovertemplate,p}function M(O,D){C.push(O._hovertitle+": "+D)}}},52979:function(i,o,a){i.exports={attributes:a(50413),supplyDefaults:a(46008),colorbar:a(4898),formatLabels:a(93645),calc:a(54337),plot:a(7507),style:a(16296).style,styleOnSelect:a(16296).styleOnSelect,hoverPoints:a(47250),selectPoints:a(98002),eventData:a(4524),moduleType:"trace",name:"scatterternary",basePlotModule:a(61639),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}},7507:function(i,o,a){var s=a(32663);i.exports=function(u,c,d){var f=c.plotContainer;f.select(".scatterlayer").selectAll("*").remove();for(var p=c.xaxis,h=c.yaxis,g={xaxis:p,yaxis:h,plot:f,layerClipId:c._hasClipOnAxisFalse?c.clipIdRelative:null},b=c.layers.frontplot.select("g.scatterlayer"),v=0;v0){var O,D,P,E,I,A=p.xa,F=p.ya;w.orientation==="h"?(I=h,O="y",P=F,D="x",E=A):(I=g,O="x",P=A,D="y",E=F);var j=_[p.index];if(I>=j.span[0]&&I<=j.span[1]){var B=u.extendFlat({},p),z=E.c2p(I,!0),N=f.getKdeValue(j,w,I),R=f.getPositionOnKdePath(j,w,z),q=P._offset,Y=P._length;B[O+"0"]=R[0],B[O+"1"]=R[1],B[D+"0"]=B[D+"1"]=z,B[D+"Label"]=D+": "+c.hoverLabelText(E,I,w[D+"hoverformat"])+", "+_[0].t.labels.kde+" "+N.toFixed(3);for(var L=0,W=0;Wz&&(z=Y,N=q)}}return z?A(N):f};case"rms":return function(F,j){for(var B=0,z=0,N=0;N":return function(G){return H(G)>L};case">=":return function(G){return H(G)>=L};case"[]":return function(G){var te=H(G);return te>=L[0]&&te<=L[1]};case"()":return function(G){var te=H(G);return te>L[0]&&te=L[0]&&teL[0]&&te<=L[1]};case"][":return function(G){var te=H(G);return te<=L[0]||te>=L[1]};case")(":return function(G){var te=H(G);return teL[1]};case"](":return function(G){var te=H(G);return te<=L[0]||te>L[1]};case")[":return function(G){var te=H(G);return te=L[1]};case"{}":return function(G){return L.indexOf(H(G))!==-1};case"}{":return function(G){return L.indexOf(H(G))===-1}}}(m,c.getDataToCoordFunc(b,v,x,y),w),D={},P={},E=0;k?(T=function(j){D[j.astr]=s.extendDeep([],j.get()),j.set(new Array(_))},M=function(j,B){var z=D[j.astr][B];j.get()[B]=z}):(T=function(j){D[j.astr]=s.extendDeep([],j.get()),j.set([])},M=function(j,B){var z=D[j.astr][B];j.get().push(z)}),F(T);for(var I=d(v.transforms,m),A=0;A<_;A++)O(y[A])?(F(M,A),P[E++]=I(A)):k&&E++;m._indexToPoints=P,v._length=E}}function F(j,B){for(var z=0;z1?"%{group} (%{trace})":"%{group}");var y=p.styles,x=v.styles=[];if(y)for(b=0;bb)throw new RangeError('The value "'+Z+'" is invalid for option "size"');var re=new Uint8Array(Z);return Object.setPrototypeOf(re,m.prototype),re}function m(Z,re,de){if(typeof Z=="number"){if(typeof re=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _(Z)}return y(Z,re,de)}function y(Z,re,de){if(typeof Z=="string")return function(me,xe){if(typeof xe=="string"&&xe!==""||(xe="utf8"),!m.isEncoding(xe))throw new TypeError("Unknown encoding: "+xe);var ye=0|C(me,xe),Se=v(ye),Ae=Se.write(me,xe);return Ae!==ye&&(Se=Se.slice(0,Ae)),Se}(Z,re);if(ArrayBuffer.isView(Z))return function(me){if(Ce(me,Uint8Array)){var xe=new Uint8Array(me);return S(xe.buffer,xe.byteOffset,xe.byteLength)}return w(me)}(Z);if(Z==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+f(Z));if(Ce(Z,ArrayBuffer)||Z&&Ce(Z.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ce(Z,SharedArrayBuffer)||Z&&Ce(Z.buffer,SharedArrayBuffer)))return S(Z,re,de);if(typeof Z=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var _e=Z.valueOf&&Z.valueOf();if(_e!=null&&_e!==Z)return m.from(_e,re,de);var ue=function(me){if(m.isBuffer(me)){var xe=0|k(me.length),ye=v(xe);return ye.length===0||me.copy(ye,0,0,xe),ye}return me.length!==void 0?typeof me.length!="number"||Oe(me.length)?v(0):w(me):me.type==="Buffer"&&Array.isArray(me.data)?w(me.data):void 0}(Z);if(ue)return ue;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Z[Symbol.toPrimitive]=="function")return m.from(Z[Symbol.toPrimitive]("string"),re,de);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+f(Z))}function x(Z){if(typeof Z!="number")throw new TypeError('"size" argument must be of type number');if(Z<0)throw new RangeError('The value "'+Z+'" is invalid for option "size"')}function _(Z){return x(Z),v(Z<0?0:0|k(Z))}function w(Z){for(var re=Z.length<0?0:0|k(Z.length),de=v(re),_e=0;_e=b)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b.toString(16)+" bytes");return 0|Z}function C(Z,re){if(m.isBuffer(Z))return Z.length;if(ArrayBuffer.isView(Z)||Ce(Z,ArrayBuffer))return Z.byteLength;if(typeof Z!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+f(Z));var de=Z.length,_e=arguments.length>2&&arguments[2]===!0;if(!_e&&de===0)return 0;for(var ue=!1;;)switch(re){case"ascii":case"latin1":case"binary":return de;case"utf8":case"utf-8":return se(Z).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*de;case"hex":return de>>>1;case"base64":return pe(Z).length;default:if(ue)return _e?-1:se(Z).length;re=(""+re).toLowerCase(),ue=!0}}function T(Z,re,de){var _e=!1;if((re===void 0||re<0)&&(re=0),re>this.length||((de===void 0||de>this.length)&&(de=this.length),de<=0)||(de>>>=0)<=(re>>>=0))return"";for(Z||(Z="utf8");;)switch(Z){case"hex":return q(this,re,de);case"utf8":case"utf-8":return B(this,re,de);case"ascii":return N(this,re,de);case"latin1":case"binary":return R(this,re,de);case"base64":return j(this,re,de);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y(this,re,de);default:if(_e)throw new TypeError("Unknown encoding: "+Z);Z=(Z+"").toLowerCase(),_e=!0}}function M(Z,re,de){var _e=Z[re];Z[re]=Z[de],Z[de]=_e}function O(Z,re,de,_e,ue){if(Z.length===0)return-1;if(typeof de=="string"?(_e=de,de=0):de>2147483647?de=2147483647:de<-2147483648&&(de=-2147483648),Oe(de=+de)&&(de=ue?0:Z.length-1),de<0&&(de=Z.length+de),de>=Z.length){if(ue)return-1;de=Z.length-1}else if(de<0){if(!ue)return-1;de=0}if(typeof re=="string"&&(re=m.from(re,_e)),m.isBuffer(re))return re.length===0?-1:D(Z,re,de,_e,ue);if(typeof re=="number")return re&=255,typeof Uint8Array.prototype.indexOf=="function"?ue?Uint8Array.prototype.indexOf.call(Z,re,de):Uint8Array.prototype.lastIndexOf.call(Z,re,de):D(Z,[re],de,_e,ue);throw new TypeError("val must be string, number or Buffer")}function D(Z,re,de,_e,ue){var me,xe=1,ye=Z.length,Se=re.length;if(_e!==void 0&&((_e=String(_e).toLowerCase())==="ucs2"||_e==="ucs-2"||_e==="utf16le"||_e==="utf-16le")){if(Z.length<2||re.length<2)return-1;xe=2,ye/=2,Se/=2,de/=2}function Ae(Ne,ze){return xe===1?Ne[ze]:Ne.readUInt16BE(ze*xe)}if(ue){var Le=-1;for(me=de;meye&&(de=ye-Se),me=de;me>=0;me--){for(var Re=!0,Ie=0;Ieue&&(_e=ue):_e=ue;var me,xe=re.length;for(_e>xe/2&&(_e=xe/2),me=0;me<_e;++me){var ye=parseInt(re.substr(2*me,2),16);if(Oe(ye))return me;Z[de+me]=ye}return me}function E(Z,re,de,_e){return ke(se(re,Z.length-de),Z,de,_e)}function I(Z,re,de,_e){return ke(function(ue){for(var me=[],xe=0;xe>8,Se=xe%256,Ae.push(Se),Ae.push(ye);return Ae}(re,Z.length-de),Z,de,_e)}function j(Z,re,de){return re===0&&de===Z.length?p.fromByteArray(Z):p.fromByteArray(Z.slice(re,de))}function B(Z,re,de){de=Math.min(Z.length,de);for(var _e=[],ue=re;ue239?4:me>223?3:me>191?2:1;if(ue+ye<=de){var Se=void 0,Ae=void 0,Le=void 0,Re=void 0;switch(ye){case 1:me<128&&(xe=me);break;case 2:(192&(Se=Z[ue+1]))==128&&(Re=(31&me)<<6|63&Se)>127&&(xe=Re);break;case 3:Se=Z[ue+1],Ae=Z[ue+2],(192&Se)==128&&(192&Ae)==128&&(Re=(15&me)<<12|(63&Se)<<6|63&Ae)>2047&&(Re<55296||Re>57343)&&(xe=Re);break;case 4:Se=Z[ue+1],Ae=Z[ue+2],Le=Z[ue+3],(192&Se)==128&&(192&Ae)==128&&(192&Le)==128&&(Re=(15&me)<<18|(63&Se)<<12|(63&Ae)<<6|63&Le)>65535&&Re<1114112&&(xe=Re)}}xe===null?(xe=65533,ye=1):xe>65535&&(xe-=65536,_e.push(xe>>>10&1023|55296),xe=56320|1023&xe),_e.push(xe),ue+=ye}return function(Ie){var Ne=Ie.length;if(Ne<=z)return String.fromCharCode.apply(String,Ie);for(var ze="",qe=0;qe"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(m.prototype,"parent",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.buffer}}),Object.defineProperty(m.prototype,"offset",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.byteOffset}}),m.poolSize=8192,m.from=function(Z,re,de){return y(Z,re,de)},Object.setPrototypeOf(m.prototype,Uint8Array.prototype),Object.setPrototypeOf(m,Uint8Array),m.alloc=function(Z,re,de){return function(_e,ue,me){return x(_e),_e<=0?v(_e):ue!==void 0?typeof me=="string"?v(_e).fill(ue,me):v(_e).fill(ue):v(_e)}(Z,re,de)},m.allocUnsafe=function(Z){return _(Z)},m.allocUnsafeSlow=function(Z){return _(Z)},m.isBuffer=function(Z){return Z!=null&&Z._isBuffer===!0&&Z!==m.prototype},m.compare=function(Z,re){if(Ce(Z,Uint8Array)&&(Z=m.from(Z,Z.offset,Z.byteLength)),Ce(re,Uint8Array)&&(re=m.from(re,re.offset,re.byteLength)),!m.isBuffer(Z)||!m.isBuffer(re))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Z===re)return 0;for(var de=Z.length,_e=re.length,ue=0,me=Math.min(de,_e);ue_e.length?(m.isBuffer(me)||(me=m.from(me)),me.copy(_e,ue)):Uint8Array.prototype.set.call(_e,me,ue);else{if(!m.isBuffer(me))throw new TypeError('"list" argument must be an Array of Buffers');me.copy(_e,ue)}ue+=me.length}return _e},m.byteLength=C,m.prototype._isBuffer=!0,m.prototype.swap16=function(){var Z=this.length;if(Z%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var re=0;rere&&(Z+=" ... "),""},g&&(m.prototype[g]=m.prototype.inspect),m.prototype.compare=function(Z,re,de,_e,ue){if(Ce(Z,Uint8Array)&&(Z=m.from(Z,Z.offset,Z.byteLength)),!m.isBuffer(Z))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+f(Z));if(re===void 0&&(re=0),de===void 0&&(de=Z?Z.length:0),_e===void 0&&(_e=0),ue===void 0&&(ue=this.length),re<0||de>Z.length||_e<0||ue>this.length)throw new RangeError("out of range index");if(_e>=ue&&re>=de)return 0;if(_e>=ue)return-1;if(re>=de)return 1;if(this===Z)return 0;for(var me=(ue>>>=0)-(_e>>>=0),xe=(de>>>=0)-(re>>>=0),ye=Math.min(me,xe),Se=this.slice(_e,ue),Ae=Z.slice(re,de),Le=0;Le>>=0,isFinite(de)?(de>>>=0,_e===void 0&&(_e="utf8")):(_e=de,de=void 0)}var ue=this.length-re;if((de===void 0||de>ue)&&(de=ue),Z.length>0&&(de<0||re<0)||re>this.length)throw new RangeError("Attempt to write outside buffer bounds");_e||(_e="utf8");for(var me=!1;;)switch(_e){case"hex":return P(this,Z,re,de);case"utf8":case"utf-8":return E(this,Z,re,de);case"ascii":case"latin1":case"binary":return I(this,Z,re,de);case"base64":return A(this,Z,re,de);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,Z,re,de);default:if(me)throw new TypeError("Unknown encoding: "+_e);_e=(""+_e).toLowerCase(),me=!0}},m.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var z=4096;function N(Z,re,de){var _e="";de=Math.min(Z.length,de);for(var ue=re;ue_e)&&(de=_e);for(var ue="",me=re;mede)throw new RangeError("Trying to access beyond buffer length")}function W(Z,re,de,_e,ue,me){if(!m.isBuffer(Z))throw new TypeError('"buffer" argument must be a Buffer instance');if(re>ue||reZ.length)throw new RangeError("Index out of range")}function H(Z,re,de,_e,ue){K(re,_e,ue,Z,de,7);var me=Number(re&BigInt(4294967295));Z[de++]=me,me>>=8,Z[de++]=me,me>>=8,Z[de++]=me,me>>=8,Z[de++]=me;var xe=Number(re>>BigInt(32)&BigInt(4294967295));return Z[de++]=xe,xe>>=8,Z[de++]=xe,xe>>=8,Z[de++]=xe,xe>>=8,Z[de++]=xe,de}function G(Z,re,de,_e,ue){K(re,_e,ue,Z,de,7);var me=Number(re&BigInt(4294967295));Z[de+7]=me,me>>=8,Z[de+6]=me,me>>=8,Z[de+5]=me,me>>=8,Z[de+4]=me;var xe=Number(re>>BigInt(32)&BigInt(4294967295));return Z[de+3]=xe,xe>>=8,Z[de+2]=xe,xe>>=8,Z[de+1]=xe,xe>>=8,Z[de]=xe,de+8}function te(Z,re,de,_e,ue,me){if(de+_e>Z.length)throw new RangeError("Index out of range");if(de<0)throw new RangeError("Index out of range")}function ee(Z,re,de,_e,ue){return re=+re,de>>>=0,ue||te(Z,0,de,4),h.write(Z,re,de,_e,23,4),de+4}function U(Z,re,de,_e,ue){return re=+re,de>>>=0,ue||te(Z,0,de,8),h.write(Z,re,de,_e,52,8),de+8}m.prototype.slice=function(Z,re){var de=this.length;(Z=~~Z)<0?(Z+=de)<0&&(Z=0):Z>de&&(Z=de),(re=re===void 0?de:~~re)<0?(re+=de)<0&&(re=0):re>de&&(re=de),re>>=0,re>>>=0,de||L(Z,re,this.length);for(var _e=this[Z],ue=1,me=0;++me>>=0,re>>>=0,de||L(Z,re,this.length);for(var _e=this[Z+--re],ue=1;re>0&&(ue*=256);)_e+=this[Z+--re]*ue;return _e},m.prototype.readUint8=m.prototype.readUInt8=function(Z,re){return Z>>>=0,re||L(Z,1,this.length),this[Z]},m.prototype.readUint16LE=m.prototype.readUInt16LE=function(Z,re){return Z>>>=0,re||L(Z,2,this.length),this[Z]|this[Z+1]<<8},m.prototype.readUint16BE=m.prototype.readUInt16BE=function(Z,re){return Z>>>=0,re||L(Z,2,this.length),this[Z]<<8|this[Z+1]},m.prototype.readUint32LE=m.prototype.readUInt32LE=function(Z,re){return Z>>>=0,re||L(Z,4,this.length),(this[Z]|this[Z+1]<<8|this[Z+2]<<16)+16777216*this[Z+3]},m.prototype.readUint32BE=m.prototype.readUInt32BE=function(Z,re){return Z>>>=0,re||L(Z,4,this.length),16777216*this[Z]+(this[Z+1]<<16|this[Z+2]<<8|this[Z+3])},m.prototype.readBigUInt64LE=ce(function(Z){ne(Z>>>=0,"offset");var re=this[Z],de=this[Z+7];re!==void 0&&de!==void 0||ae(Z,this.length-8);var _e=re+this[++Z]*Math.pow(2,8)+this[++Z]*Math.pow(2,16)+this[++Z]*Math.pow(2,24),ue=this[++Z]+this[++Z]*Math.pow(2,8)+this[++Z]*Math.pow(2,16)+de*Math.pow(2,24);return BigInt(_e)+(BigInt(ue)<>>=0,"offset");var re=this[Z],de=this[Z+7];re!==void 0&&de!==void 0||ae(Z,this.length-8);var _e=re*Math.pow(2,24)+this[++Z]*Math.pow(2,16)+this[++Z]*Math.pow(2,8)+this[++Z],ue=this[++Z]*Math.pow(2,24)+this[++Z]*Math.pow(2,16)+this[++Z]*Math.pow(2,8)+de;return(BigInt(_e)<>>=0,re>>>=0,de||L(Z,re,this.length);for(var _e=this[Z],ue=1,me=0;++me=(ue*=128)&&(_e-=Math.pow(2,8*re)),_e},m.prototype.readIntBE=function(Z,re,de){Z>>>=0,re>>>=0,de||L(Z,re,this.length);for(var _e=re,ue=1,me=this[Z+--_e];_e>0&&(ue*=256);)me+=this[Z+--_e]*ue;return me>=(ue*=128)&&(me-=Math.pow(2,8*re)),me},m.prototype.readInt8=function(Z,re){return Z>>>=0,re||L(Z,1,this.length),128&this[Z]?-1*(255-this[Z]+1):this[Z]},m.prototype.readInt16LE=function(Z,re){Z>>>=0,re||L(Z,2,this.length);var de=this[Z]|this[Z+1]<<8;return 32768&de?4294901760|de:de},m.prototype.readInt16BE=function(Z,re){Z>>>=0,re||L(Z,2,this.length);var de=this[Z+1]|this[Z]<<8;return 32768&de?4294901760|de:de},m.prototype.readInt32LE=function(Z,re){return Z>>>=0,re||L(Z,4,this.length),this[Z]|this[Z+1]<<8|this[Z+2]<<16|this[Z+3]<<24},m.prototype.readInt32BE=function(Z,re){return Z>>>=0,re||L(Z,4,this.length),this[Z]<<24|this[Z+1]<<16|this[Z+2]<<8|this[Z+3]},m.prototype.readBigInt64LE=ce(function(Z){ne(Z>>>=0,"offset");var re=this[Z],de=this[Z+7];re!==void 0&&de!==void 0||ae(Z,this.length-8);var _e=this[Z+4]+this[Z+5]*Math.pow(2,8)+this[Z+6]*Math.pow(2,16)+(de<<24);return(BigInt(_e)<>>=0,"offset");var re=this[Z],de=this[Z+7];re!==void 0&&de!==void 0||ae(Z,this.length-8);var _e=(re<<24)+this[++Z]*Math.pow(2,16)+this[++Z]*Math.pow(2,8)+this[++Z];return(BigInt(_e)<>>=0,re||L(Z,4,this.length),h.read(this,Z,!0,23,4)},m.prototype.readFloatBE=function(Z,re){return Z>>>=0,re||L(Z,4,this.length),h.read(this,Z,!1,23,4)},m.prototype.readDoubleLE=function(Z,re){return Z>>>=0,re||L(Z,8,this.length),h.read(this,Z,!0,52,8)},m.prototype.readDoubleBE=function(Z,re){return Z>>>=0,re||L(Z,8,this.length),h.read(this,Z,!1,52,8)},m.prototype.writeUintLE=m.prototype.writeUIntLE=function(Z,re,de,_e){Z=+Z,re>>>=0,de>>>=0,_e||W(this,Z,re,de,Math.pow(2,8*de)-1,0);var ue=1,me=0;for(this[re]=255&Z;++me>>=0,de>>>=0,_e||W(this,Z,re,de,Math.pow(2,8*de)-1,0);var ue=de-1,me=1;for(this[re+ue]=255&Z;--ue>=0&&(me*=256);)this[re+ue]=Z/me&255;return re+de},m.prototype.writeUint8=m.prototype.writeUInt8=function(Z,re,de){return Z=+Z,re>>>=0,de||W(this,Z,re,1,255,0),this[re]=255&Z,re+1},m.prototype.writeUint16LE=m.prototype.writeUInt16LE=function(Z,re,de){return Z=+Z,re>>>=0,de||W(this,Z,re,2,65535,0),this[re]=255&Z,this[re+1]=Z>>>8,re+2},m.prototype.writeUint16BE=m.prototype.writeUInt16BE=function(Z,re,de){return Z=+Z,re>>>=0,de||W(this,Z,re,2,65535,0),this[re]=Z>>>8,this[re+1]=255&Z,re+2},m.prototype.writeUint32LE=m.prototype.writeUInt32LE=function(Z,re,de){return Z=+Z,re>>>=0,de||W(this,Z,re,4,4294967295,0),this[re+3]=Z>>>24,this[re+2]=Z>>>16,this[re+1]=Z>>>8,this[re]=255&Z,re+4},m.prototype.writeUint32BE=m.prototype.writeUInt32BE=function(Z,re,de){return Z=+Z,re>>>=0,de||W(this,Z,re,4,4294967295,0),this[re]=Z>>>24,this[re+1]=Z>>>16,this[re+2]=Z>>>8,this[re+3]=255&Z,re+4},m.prototype.writeBigUInt64LE=ce(function(Z){return H(this,Z,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),m.prototype.writeBigUInt64BE=ce(function(Z){return G(this,Z,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),m.prototype.writeIntLE=function(Z,re,de,_e){if(Z=+Z,re>>>=0,!_e){var ue=Math.pow(2,8*de-1);W(this,Z,re,de,ue-1,-ue)}var me=0,xe=1,ye=0;for(this[re]=255&Z;++me>0)-ye&255;return re+de},m.prototype.writeIntBE=function(Z,re,de,_e){if(Z=+Z,re>>>=0,!_e){var ue=Math.pow(2,8*de-1);W(this,Z,re,de,ue-1,-ue)}var me=de-1,xe=1,ye=0;for(this[re+me]=255&Z;--me>=0&&(xe*=256);)Z<0&&ye===0&&this[re+me+1]!==0&&(ye=1),this[re+me]=(Z/xe>>0)-ye&255;return re+de},m.prototype.writeInt8=function(Z,re,de){return Z=+Z,re>>>=0,de||W(this,Z,re,1,127,-128),Z<0&&(Z=255+Z+1),this[re]=255&Z,re+1},m.prototype.writeInt16LE=function(Z,re,de){return Z=+Z,re>>>=0,de||W(this,Z,re,2,32767,-32768),this[re]=255&Z,this[re+1]=Z>>>8,re+2},m.prototype.writeInt16BE=function(Z,re,de){return Z=+Z,re>>>=0,de||W(this,Z,re,2,32767,-32768),this[re]=Z>>>8,this[re+1]=255&Z,re+2},m.prototype.writeInt32LE=function(Z,re,de){return Z=+Z,re>>>=0,de||W(this,Z,re,4,2147483647,-2147483648),this[re]=255&Z,this[re+1]=Z>>>8,this[re+2]=Z>>>16,this[re+3]=Z>>>24,re+4},m.prototype.writeInt32BE=function(Z,re,de){return Z=+Z,re>>>=0,de||W(this,Z,re,4,2147483647,-2147483648),Z<0&&(Z=4294967295+Z+1),this[re]=Z>>>24,this[re+1]=Z>>>16,this[re+2]=Z>>>8,this[re+3]=255&Z,re+4},m.prototype.writeBigInt64LE=ce(function(Z){return H(this,Z,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),m.prototype.writeBigInt64BE=ce(function(Z){return G(this,Z,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),m.prototype.writeFloatLE=function(Z,re,de){return ee(this,Z,re,!0,de)},m.prototype.writeFloatBE=function(Z,re,de){return ee(this,Z,re,!1,de)},m.prototype.writeDoubleLE=function(Z,re,de){return U(this,Z,re,!0,de)},m.prototype.writeDoubleBE=function(Z,re,de){return U(this,Z,re,!1,de)},m.prototype.copy=function(Z,re,de,_e){if(!m.isBuffer(Z))throw new TypeError("argument should be a Buffer");if(de||(de=0),_e||_e===0||(_e=this.length),re>=Z.length&&(re=Z.length),re||(re=0),_e>0&&_e=this.length)throw new RangeError("Index out of range");if(_e<0)throw new RangeError("sourceEnd out of bounds");_e>this.length&&(_e=this.length),Z.length-re<_e-de&&(_e=Z.length-re+de);var ue=_e-de;return this===Z&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(re,de,_e):Uint8Array.prototype.set.call(Z,this.subarray(de,_e),re),ue},m.prototype.fill=function(Z,re,de,_e){if(typeof Z=="string"){if(typeof re=="string"?(_e=re,re=0,de=this.length):typeof de=="string"&&(_e=de,de=this.length),_e!==void 0&&typeof _e!="string")throw new TypeError("encoding must be a string");if(typeof _e=="string"&&!m.isEncoding(_e))throw new TypeError("Unknown encoding: "+_e);if(Z.length===1){var ue=Z.charCodeAt(0);(_e==="utf8"&&ue<128||_e==="latin1")&&(Z=ue)}}else typeof Z=="number"?Z&=255:typeof Z=="boolean"&&(Z=Number(Z));if(re<0||this.length>>=0,de=de===void 0?this.length:de>>>0,Z||(Z=0),typeof Z=="number")for(me=re;me"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var Le,Re=d(xe);if(ye){var Ie=d(this).constructor;Le=Reflect.construct(Re,arguments,Ie)}else Le=Re.apply(this,arguments);return function(Ne,ze){if(ze&&(f(ze)==="object"||typeof ze=="function"))return ze;if(ze!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return c(Ne)}(this,Le)});function Ae(){var Le;return function(Re,Ie){if(!(Re instanceof Ie))throw new TypeError("Cannot call a class as a function")}(this,Ae),Le=Se.call(this),Object.defineProperty(c(Le),"message",{value:re.apply(c(Le),arguments),writable:!0,configurable:!0}),Le.name="".concat(Le.name," [").concat(Z,"]"),Le.stack,delete Le.name,Le}return ue=Ae,(me=[{key:"code",get:function(){return Z},set:function(Le){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Le,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(Z,"]: ").concat(this.message)}}])&&s(ue.prototype,me),Object.defineProperty(ue,"prototype",{writable:!1}),Ae}(de)}function X(Z){for(var re="",de=Z.length,_e=Z[0]==="-"?1:0;de>=_e+4;de-=3)re="_".concat(Z.slice(de-3,de)).concat(re);return"".concat(Z.slice(0,de)).concat(re)}function K(Z,re,de,_e,ue,me){if(Z>de||Z= 0".concat(ye," and < 2").concat(ye," ** ").concat(8*(me+1)).concat(ye):">= -(2".concat(ye," ** ").concat(8*(me+1)-1).concat(ye,") and < 2 ** ")+"".concat(8*(me+1)-1).concat(ye),new Q.ERR_OUT_OF_RANGE("value",xe,Z)}(function(Se,Ae,Le){ne(Ae,"offset"),Se[Ae]!==void 0&&Se[Ae+Le]!==void 0||ae(Ae,Se.length-(Le+1))})(_e,ue,me)}function ne(Z,re){if(typeof Z!="number")throw new Q.ERR_INVALID_ARG_TYPE(re,"number",Z)}function ae(Z,re,de){throw Math.floor(Z)!==Z?(ne(Z,de),new Q.ERR_OUT_OF_RANGE("offset","an integer",Z)):re<0?new Q.ERR_BUFFER_OUT_OF_BOUNDS:new Q.ERR_OUT_OF_RANGE("offset",">= ".concat(0," and <= ").concat(re),Z)}V("ERR_BUFFER_OUT_OF_BOUNDS",function(Z){return Z?"".concat(Z," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError),V("ERR_INVALID_ARG_TYPE",function(Z,re){return'The "'.concat(Z,'" argument must be of type number. Received type ').concat(f(re))},TypeError),V("ERR_OUT_OF_RANGE",function(Z,re,de){var _e='The value of "'.concat(Z,'" is out of range.'),ue=de;return Number.isInteger(de)&&Math.abs(de)>Math.pow(2,32)?ue=X(String(de)):typeof de=="bigint"&&(ue=String(de),(de>Math.pow(BigInt(2),BigInt(32))||de<-Math.pow(BigInt(2),BigInt(32)))&&(ue=X(ue)),ue+="n"),_e+" It must be ".concat(re,". Received ").concat(ue)},RangeError);var ie=/[^+/0-9A-Za-z-_]/g;function se(Z,re){var de;re=re||1/0;for(var _e=Z.length,ue=null,me=[],xe=0;xe<_e;++xe){if((de=Z.charCodeAt(xe))>55295&&de<57344){if(!ue){if(de>56319){(re-=3)>-1&&me.push(239,191,189);continue}if(xe+1===_e){(re-=3)>-1&&me.push(239,191,189);continue}ue=de;continue}if(de<56320){(re-=3)>-1&&me.push(239,191,189),ue=de;continue}de=65536+(ue-55296<<10|de-56320)}else ue&&(re-=3)>-1&&me.push(239,191,189);if(ue=null,de<128){if((re-=1)<0)break;me.push(de)}else if(de<2048){if((re-=2)<0)break;me.push(de>>6|192,63&de|128)}else if(de<65536){if((re-=3)<0)break;me.push(de>>12|224,de>>6&63|128,63&de|128)}else{if(!(de<1114112))throw new Error("Invalid code point");if((re-=4)<0)break;me.push(de>>18|240,de>>12&63|128,de>>6&63|128,63&de|128)}}return me}function pe(Z){return p.toByteArray(function(re){if((re=(re=re.split("=")[0]).trim().replace(ie,"")).length<2)return"";for(;re.length%4!=0;)re+="=";return re}(Z))}function ke(Z,re,de,_e){var ue;for(ue=0;ue<_e&&!(ue+de>=re.length||ue>=Z.length);++ue)re[ue+de]=Z[ue];return ue}function Ce(Z,re){return Z instanceof re||Z!=null&&Z.constructor!=null&&Z.constructor.name!=null&&Z.constructor.name===re.name}function Oe(Z){return Z!=Z}var Pe=function(){for(var Z="0123456789abcdef",re=new Array(256),de=0;de<16;++de)for(var _e=16*de,ue=0;ue<16;++ue)re[_e+ue]=Z[de]+Z[ue];return re}();function ce(Z){return typeof BigInt>"u"?we:Z}function we(){throw new Error("BigInt not supported")}},35791:function(i){i.exports=u,i.exports.isMobile=u,i.exports.default=u;var o=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,a=/CrOS/,s=/android|ipad|playbook|silk/i;function u(c){c||(c={});var d=c.ua;if(d||typeof navigator>"u"||(d=navigator.userAgent),d&&d.headers&&typeof d.headers["user-agent"]=="string"&&(d=d.headers["user-agent"]),typeof d!="string")return!1;var f=o.test(d)&&!a.test(d)||!!c.tablet&&s.test(d);return!f&&c.tablet&&c.featureDetect&&navigator&&navigator.maxTouchPoints>1&&d.indexOf("Macintosh")!==-1&&d.indexOf("Safari")!==-1&&(f=!0),f}},39898:function(i,o,a){var s,u;(function(){var c={version:"3.8.0"},d=[].slice,f=function($){return d.call($)},p=self.document;function h($){return $&&($.ownerDocument||$.document||$).documentElement}function g($){return $&&($.ownerDocument&&$.ownerDocument.defaultView||$.document&&$||$.defaultView)}if(p)try{f(p.documentElement.childNodes)[0].nodeType}catch{f=function(J){for(var oe=J.length,fe=new Array(oe);oe--;)fe[oe]=J[oe];return fe}}if(Date.now||(Date.now=function(){return+new Date}),p)try{p.createElement("DIV").style.setProperty("opacity",0,"")}catch{var b=this.Element.prototype,v=b.setAttribute,m=b.setAttributeNS,y=this.CSSStyleDeclaration.prototype,x=y.setProperty;b.setAttribute=function(J,oe){v.call(this,J,oe+"")},b.setAttributeNS=function(J,oe,fe){m.call(this,J,oe,fe+"")},y.setProperty=function(J,oe,fe){x.call(this,J,oe+"",fe)}}function _($,J){return $J?1:$>=J?0:NaN}function w($){return $===null?NaN:+$}function S($){return!isNaN($)}function k($){return{left:function(J,oe,fe,he){for(arguments.length<3&&(fe=0),arguments.length<4&&(he=J.length);fe>>1;$(J[ve],oe)<0?fe=ve+1:he=ve}return fe},right:function(J,oe,fe,he){for(arguments.length<3&&(fe=0),arguments.length<4&&(he=J.length);fe>>1;$(J[ve],oe)>0?he=ve:fe=ve+1}return fe}}}c.ascending=_,c.descending=function($,J){return J<$?-1:J>$?1:J>=$?0:NaN},c.min=function($,J){var oe,fe,he=-1,ve=$.length;if(arguments.length===1){for(;++he=fe){oe=fe;break}for(;++hefe&&(oe=fe)}else{for(;++he=fe){oe=fe;break}for(;++hefe&&(oe=fe)}return oe},c.max=function($,J){var oe,fe,he=-1,ve=$.length;if(arguments.length===1){for(;++he=fe){oe=fe;break}for(;++heoe&&(oe=fe)}else{for(;++he=fe){oe=fe;break}for(;++heoe&&(oe=fe)}return oe},c.extent=function($,J){var oe,fe,he,ve=-1,De=$.length;if(arguments.length===1){for(;++ve=fe){oe=he=fe;break}for(;++vefe&&(oe=fe),he=fe){oe=he=fe;break}for(;++vefe&&(oe=fe),he1)return De/($e-1)},c.deviation=function(){var $=c.variance.apply(this,arguments);return $&&Math.sqrt($)};var C=k(_);function T($){return $.length}c.bisectLeft=C.left,c.bisect=c.bisectRight=C.right,c.bisector=function($){return k($.length===1?function(J,oe){return _($(J),oe)}:$)},c.shuffle=function($,J,oe){(ve=arguments.length)<3&&(oe=$.length,ve<2&&(J=0));for(var fe,he,ve=oe-J;ve;)he=Math.random()*ve--|0,fe=$[ve+J],$[ve+J]=$[he+J],$[he+J]=fe;return $},c.permute=function($,J){for(var oe=J.length,fe=new Array(oe);oe--;)fe[oe]=$[J[oe]];return fe},c.pairs=function($){for(var J=0,oe=$.length-1,fe=$[0],he=new Array(oe<0?0:oe);J=0;)for(J=(fe=$[he]).length;--J>=0;)oe[--De]=fe[J];return oe};var M=Math.abs;function O($,J){for(var oe in J)Object.defineProperty($.prototype,oe,{value:J[oe],enumerable:!1})}function D(){this._=Object.create(null)}c.range=function($,J,oe){if(arguments.length<3&&(oe=1,arguments.length<2&&(J=$,$=0)),(J-$)/oe==1/0)throw new Error("infinite range");var fe,he=[],ve=function(Ee){for(var $e=1;Ee*$e%1;)$e*=10;return $e}(M(oe)),De=-1;if($*=ve,J*=ve,(oe*=ve)<0)for(;(fe=$+oe*++De)>J;)he.push(fe/ve);else for(;(fe=$+oe*++De)=fe.length)return J?J.call(oe,$e):$?$e.sort($):$e;for(var He,Ke,at,vt,Mt=-1,ft=$e.length,xt=fe[Fe++],lt=new D;++Mt=fe.length)return Ee;var Fe=[],He=he[$e++];return Ee.forEach(function(Ke,at){Fe.push({key:Ke,values:De(at,$e)})}),He?Fe.sort(function(Ke,at){return He(Ke.key,at.key)}):Fe}return oe.map=function(Ee,$e){return ve($e,Ee,0)},oe.entries=function(Ee){return De(ve(c.map,Ee,0),0)},oe.key=function(Ee){return fe.push(Ee),oe},oe.sortKeys=function(Ee){return he[fe.length-1]=Ee,oe},oe.sortValues=function(Ee){return $=Ee,oe},oe.rollup=function(Ee){return J=Ee,oe},oe},c.set=function($){var J=new R;if($)for(var oe=0,fe=$.length;oe=0&&(fe=$.slice(oe+1),$=$.slice(0,oe)),$)return arguments.length<2?this[$].on(fe):this[$].on(fe,J);if(arguments.length===2){if(J==null)for($ in this)this.hasOwnProperty($)&&this[$].on(fe,null);return this}},c.event=null,c.requote=function($){return $.replace(V,"\\$&")};var V=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,X={}.__proto__?function($,J){$.__proto__=J}:function($,J){for(var oe in J)$[oe]=J[oe]};function K($){return X($,se),$}var ne=function($,J){return J.querySelector($)},ae=function($,J){return J.querySelectorAll($)},ie=function($,J){var oe=$.matches||$[L($,"matchesSelector")];return ie=function(fe,he){return oe.call(fe,he)},ie($,J)};typeof Sizzle=="function"&&(ne=function($,J){return Sizzle($,J)[0]||null},ae=Sizzle,ie=Sizzle.matchesSelector),c.selection=function(){return c.select(p.documentElement)};var se=c.selection.prototype=[];function pe($){return typeof $=="function"?$:function(){return ne($,this)}}function ke($){return typeof $=="function"?$:function(){return ae($,this)}}se.select=function($){var J,oe,fe,he,ve=[];$=pe($);for(var De=-1,Ee=this.length;++De=0&&(oe=$.slice(0,J))!=="xmlns"&&($=$.slice(J+1)),Oe.hasOwnProperty(oe)?{space:Oe[oe],local:$}:$}},se.attr=function($,J){if(arguments.length<2){if(typeof $=="string"){var oe=this.node();return($=c.ns.qualify($)).local?oe.getAttributeNS($.space,$.local):oe.getAttribute($)}for(J in $)this.each(Pe(J,$[J]));return this}return this.each(Pe($,J))},se.classed=function($,J){if(arguments.length<2){if(typeof $=="string"){var oe=this.node(),fe=($=Z($)).length,he=-1;if(J=oe.classList){for(;++he=0;)(oe=fe[he])&&(ve&&ve!==oe.nextSibling&&ve.parentNode.insertBefore(oe,ve),ve=oe);return this},se.sort=function($){$=Ae.apply(this,arguments);for(var J=-1,oe=this.length;++J0&&($=$.slice(0,he));var De=ze.get($);function Ee(){var $e=this[fe];$e&&(this.removeEventListener($,$e,$e.$),delete this[fe])}return De&&($=De,ve=We),he?J?function(){var $e=ve(J,f(arguments));Ee.call(this),this.addEventListener($,this[fe]=$e,$e.$=oe),$e._=J}:Ee:J?H:function(){var $e,Fe=new RegExp("^__on([^.]+)"+c.requote($)+"$");for(var He in this)if($e=He.match(Fe)){var Ke=this[He];this.removeEventListener($e[1],Ke,Ke.$),delete this[He]}}}c.selection.enter=Re,c.selection.enter.prototype=Ie,Ie.append=se.append,Ie.empty=se.empty,Ie.node=se.node,Ie.call=se.call,Ie.size=se.size,Ie.select=function($){for(var J,oe,fe,he,ve,De=[],Ee=-1,$e=this.length;++Ee<$e;){fe=(he=this[Ee]).update,De.push(J=[]),J.parentNode=he.parentNode;for(var Fe=-1,He=he.length;++Fe=fe&&(fe=De+1);!($e=Fe[fe])&&++fe1?ct:$<-1?-ct:Math.asin($)}function Wt($){return(($=Math.exp($))+1/$)/2}var wt=Math.SQRT2;c.interpolateZoom=function($,J){var oe,fe,he=$[0],ve=$[1],De=$[2],Ee=J[0],$e=J[1],Fe=J[2],He=Ee-he,Ke=$e-ve,at=He*He+Ke*Ke;if(at0&&(rn=rn.transition().duration(at)),rn.call(_t.event)}function tn(){De&&De.domain(ve.range().map(function(rn){return(rn-Fe.x)/Fe.k}).map(ve.invert)),$e&&$e.domain(Ee.range().map(function(rn){return(rn-Fe.y)/Fe.k}).map(Ee.invert))}function Tn(rn){vt++||rn({type:"zoomstart"})}function kn(rn){tn(),rn({type:"zoom",scale:Fe.k,translate:[Fe.x,Fe.y]})}function Rn(rn){--vt||(rn({type:"zoomend"}),J=null)}function Cn(){var rn=this,bn=At.of(rn,arguments),Un=0,Gn=c.select(g(rn)).on(ft,function(){Un=1,Vt(c.mouse(rn),nr),kn(bn)}).on(xt,function(){Gn.on(ft,null).on(xt,null),Ar(Un),Rn(bn)}),nr=dt(c.mouse(rn)),Ar=Je(rn);Gg.call(rn),Tn(bn)}function Xn(){var rn,bn=this,Un=At.of(bn,arguments),Gn={},nr=0,Ar=".zoom-"+c.event.changedTouches[0].identifier,ha="touchmove"+Ar,Jr="touchend"+Ar,Da=[],ma=c.select(bn),Ea=Je(bn);function so(){var $a=c.touches(bn);return rn=Fe.k,$a.forEach(function(ga){ga.identifier in Gn&&(Gn[ga.identifier]=dt(ga))}),$a}function Xi(){var $a=c.event.target;c.select($a).on(ha,pl).on(Jr,hl),Da.push($a);for(var ga=c.event.changedTouches,xo=0,wo=ga.length;xo1){Ul=Do[0];var ks=Do[1],Kg=Ul[0]-ks[0],zO=Ul[1]-ks[1];nr=Kg*Kg+zO*zO}}function pl(){var $a,ga,xo,wo,Do=c.touches(bn);Gg.call(bn);for(var vi=0,Ul=Do.length;vi360?Ee-=360:Ee<0&&(Ee+=360),Ee<60?fe+(he-fe)*Ee/60:Ee<180?he:Ee<240?fe+(he-fe)*(240-Ee)/60:fe}(De))}return $=isNaN($)?0:($%=360)<0?$+360:$,J=isNaN(J)||J<0?0:J>1?1:J,fe=2*(oe=oe<0?0:oe>1?1:oe)-(he=oe<=.5?oe*(1+J):oe+J-oe*J),new Rt(ve($+120),ve($),ve($-120))}function rt($,J,oe){return this instanceof rt?(this.h=+$,this.c=+J,void(this.l=+oe)):arguments.length<2?$ instanceof rt?new rt($.h,$.c,$.l):function(fe,he,ve){return fe>0?new rt(Math.atan2(ve,he)*$t,Math.sqrt(he*he+ve*ve),fe):new rt(NaN,NaN,fe)}($ instanceof nt?$.l:($=zt(($=c.rgb($)).r,$.g,$.b)).l,$.a,$.b):new rt($,J,oe)}Ye.brighter=function($){return $=Math.pow(.7,arguments.length?$:1),new Ze(this.h,this.s,this.l/$)},Ye.darker=function($){return $=Math.pow(.7,arguments.length?$:1),new Ze(this.h,this.s,$*this.l)},Ye.rgb=function(){return Qe(this.h,this.s,this.l)},c.hcl=rt;var ut=rt.prototype=new Ue;function gt($,J,oe){return isNaN($)&&($=0),isNaN(J)&&(J=0),new nt(oe,Math.cos($*=ht)*J,Math.sin($)*J)}function nt($,J,oe){return this instanceof nt?(this.l=+$,this.a=+J,void(this.b=+oe)):arguments.length<2?$ instanceof nt?new nt($.l,$.a,$.b):$ instanceof rt?gt($.h,$.c,$.l):zt(($=Rt($)).r,$.g,$.b):new nt($,J,oe)}ut.brighter=function($){return new rt(this.h,this.c,Math.min(100,this.l+Nt*(arguments.length?$:1)))},ut.darker=function($){return new rt(this.h,this.c,Math.max(0,this.l-Nt*(arguments.length?$:1)))},ut.rgb=function(){return gt(this.h,this.c,this.l).rgb()},c.lab=nt;var Nt=18,Gt=.95047,Ct=1,Ft=1.08883,Et=nt.prototype=new Ue;function mt($,J,oe){var fe=($+16)/116,he=fe+J/500,ve=fe-oe/200;return new Rt(qt(3.2404542*(he=pt(he)*Gt)-1.5371385*(fe=pt(fe)*Ct)-.4985314*(ve=pt(ve)*Ft)),qt(-.969266*he+1.8760108*fe+.041556*ve),qt(.0556434*he-.2040259*fe+1.0572252*ve))}function pt($){return $>.206893034?$*$*$:($-.13793103448275862)/7.787037}function yt($){return $>.008856?Math.pow($,.3333333333333333):7.787037*$+.13793103448275862}function qt($){return Math.round(255*($<=.00304?12.92*$:1.055*Math.pow($,.4166666666666667)-.055))}function Rt($,J,oe){return this instanceof Rt?(this.r=~~$,this.g=~~J,void(this.b=~~oe)):arguments.length<2?$ instanceof Rt?new Rt($.r,$.g,$.b):It(""+$,Rt,Qe):new Rt($,J,oe)}function jt($){return new Rt($>>16,$>>8&255,255&$)}function Tt($){return jt($)+""}Et.brighter=function($){return new nt(Math.min(100,this.l+Nt*(arguments.length?$:1)),this.a,this.b)},Et.darker=function($){return new nt(Math.max(0,this.l-Nt*(arguments.length?$:1)),this.a,this.b)},Et.rgb=function(){return mt(this.l,this.a,this.b)},c.rgb=Rt;var Pt=Rt.prototype=new Ue;function Ot($){return $<16?"0"+Math.max(0,$).toString(16):Math.min(255,$).toString(16)}function It($,J,oe){var fe,he,ve,De=0,Ee=0,$e=0;if(fe=/([a-z]+)\((.*)\)/.exec($=$.toLowerCase()))switch(he=fe[2].split(","),fe[1]){case"hsl":return oe(parseFloat(he[0]),parseFloat(he[1])/100,parseFloat(he[2])/100);case"rgb":return J(Kt(he[0]),Kt(he[1]),Kt(he[2]))}return(ve=Bt.get($))?J(ve.r,ve.g,ve.b):($==null||$.charAt(0)!=="#"||isNaN(ve=parseInt($.slice(1),16))||($.length===4?(De=(3840&ve)>>4,De|=De>>4,Ee=240&ve,Ee|=Ee>>4,$e=15&ve,$e|=$e<<4):$.length===7&&(De=(16711680&ve)>>16,Ee=(65280&ve)>>8,$e=255&ve)),J(De,Ee,$e))}function Lt($,J,oe){var fe,he,ve=Math.min($/=255,J/=255,oe/=255),De=Math.max($,J,oe),Ee=De-ve,$e=(De+ve)/2;return Ee?(he=$e<.5?Ee/(De+ve):Ee/(2-De-ve),fe=$==De?(J-oe)/Ee+(J0&&$e<1?0:fe),new Ze(fe,he,$e)}function zt($,J,oe){var fe=yt((.4124564*($=Xt($))+.3575761*(J=Xt(J))+.1804375*(oe=Xt(oe)))/Gt),he=yt((.2126729*$+.7151522*J+.072175*oe)/Ct);return nt(116*he-16,500*(fe-he),200*(he-yt((.0193339*$+.119192*J+.9503041*oe)/Ft)))}function Xt($){return($/=255)<=.04045?$/12.92:Math.pow(($+.055)/1.055,2.4)}function Kt($){var J=parseFloat($);return $.charAt($.length-1)==="%"?Math.round(2.55*J):J}Pt.brighter=function($){$=Math.pow(.7,arguments.length?$:1);var J=this.r,oe=this.g,fe=this.b,he=30;return J||oe||fe?(J&&J=200&&Ke<300||Ke===304){try{He=oe.call(he,Ee)}catch(at){return void ve.error.call(he,at)}ve.load.call(he,He)}else ve.error.call(he,Ee)}return self.XDomainRequest&&!("withCredentials"in Ee)&&/^(http(s)?:)?\/\//.test($)&&(Ee=new XDomainRequest),"onload"in Ee?Ee.onload=Ee.onerror=Fe:Ee.onreadystatechange=function(){Ee.readyState>3&&Fe()},Ee.onprogress=function(He){var Ke=c.event;c.event=He;try{ve.progress.call(he,Ee)}finally{c.event=Ke}},he.header=function(He,Ke){return He=(He+"").toLowerCase(),arguments.length<2?De[He]:(Ke==null?delete De[He]:De[He]=Ke+"",he)},he.mimeType=function(He){return arguments.length?(J=He==null?null:He+"",he):J},he.responseType=function(He){return arguments.length?($e=He,he):$e},he.response=function(He){return oe=He,he},["get","post"].forEach(function(He){he[He]=function(){return he.send.apply(he,[He].concat(f(arguments)))}}),he.send=function(He,Ke,at){if(arguments.length===2&&typeof Ke=="function"&&(at=Ke,Ke=null),Ee.open(He,$,!0),J==null||"accept"in De||(De.accept=J+",*/*"),Ee.setRequestHeader)for(var vt in De)Ee.setRequestHeader(vt,De[vt]);return J!=null&&Ee.overrideMimeType&&Ee.overrideMimeType(J),$e!=null&&(Ee.responseType=$e),at!=null&&he.on("error",at).on("load",function(Mt){at(null,Mt)}),ve.beforesend.call(he,Ee),Ee.send(Ke??null),he},he.abort=function(){return Ee.abort(),he},c.rebind(he,ve,"on"),fe==null?he:he.get(function(He){return He.length===1?function(Ke,at){He(Ke==null?at:null)}:He}(fe))}Bt.forEach(function($,J){Bt.set($,jt(J))}),c.functor=Ut,c.xhr=on(q),c.dsv=function($,J){var oe=new RegExp('["'+$+` +]`),fe=$.charCodeAt(0);function he(Fe,He,Ke){arguments.length<3&&(Ke=He,He=null);var at=yn(Fe,J,He==null?ve:De(He),Ke);return at.row=function(vt){return arguments.length?at.response((He=vt)==null?ve:De(vt)):He},at}function ve(Fe){return he.parse(Fe.responseText)}function De(Fe){return function(He){return he.parse(He.responseText,Fe)}}function Ee(Fe){return Fe.map($e).join($)}function $e(Fe){return oe.test(Fe)?'"'+Fe.replace(/\"/g,'""')+'"':Fe}return he.parse=function(Fe,He){var Ke;return he.parseRows(Fe,function(at,vt){if(Ke)return Ke(at,vt-1);var Mt=function(ft){for(var xt={},lt=at.length,At=0;At=xt)return Mt;if(at)return at=!1,vt;var Ht=lt;if(Fe.charCodeAt(Ht)===34){for(var Vt=Ht;Vt++24?(isFinite(J)&&(clearTimeout(Jt),Jt=setTimeout(en,J)),hn=0):(hn=1,_n(en))}function Nn(){for(var $=Date.now(),J=pn;J;)$>=J.t&&J.c($-J.t)&&(J.c=null),J=J.n;return $}function An(){for(var $,J=pn,oe=1/0;J;)J.c?(J.t1&&(J=$[ve[De-2]],oe=$[ve[De-1]],fe=$[Ee],(oe[0]-J[0])*(fe[1]-J[1])-(oe[1]-J[1])*(fe[0]-J[0])<=0);)--De;ve[De++]=Ee}return ve.slice(0,De)}function br($,J){return $[0]-J[0]||$[1]-J[1]}c.timer=function(){sn.apply(this,arguments)},c.timer.flush=function(){Nn(),An()},c.round=function($,J){return J?Math.round($*(J=Math.pow(10,J)))/J:Math.round($)},c.geom={},c.geom.hull=function($){var J=Wn,oe=On;if(arguments.length)return fe($);function fe(he){if(he.length<3)return[];var ve,De=Ut(J),Ee=Ut(oe),$e=he.length,Fe=[],He=[];for(ve=0;ve<$e;ve++)Fe.push([+De.call(this,he[ve],ve),+Ee.call(this,he[ve],ve),ve]);for(Fe.sort(br),ve=0;ve<$e;ve++)He.push([Fe[ve][0],-Fe[ve][1]]);var Xe=qn(Fe),at=qn(He),vt=at[0]===Xe[0],Mt=at[at.length-1]===Xe[Xe.length-1],ft=[];for(ve=Xe.length-1;ve>=0;--ve)ft.push(he[Fe[Xe[ve]][2]]);for(ve=+vt;veje)Ee=Ee.L;else{if(!((he=ve-Vr(Ee,De))>je)){fe>-je?(J=Ee.P,oe=Ee):he>-je?(J=Ee,oe=Ee.N):J=oe=Ee;break}if(!Ee.R){J=Ee;break}Ee=Ee.R}var $e=Vn($);if(Zr.insert(J,$e),J||oe){if(J===oe)return Dn(J),oe=Vn(J.site),Zr.insert($e,oe),$e.edge=oe.edge=_a(J.site,$e.site),Ja(J),void Ja(oe);if(oe){Dn(J),Dn(oe);var Fe=J.site,He=Fe.x,Xe=Fe.y,at=$.x-He,vt=$.y-Xe,Mt=oe.site,ft=Mt.x-He,xt=Mt.y-Xe,lt=2*(at*xt-vt*ft),At=at*at+vt*vt,_t=ft*ft+xt*xt,dt={x:(xt*At-vt*_t)/lt+He,y:(at*_t-ft*At)/lt+Xe};_s(oe.edge,Fe,Mt,dt),$e.edge=_a(Fe,$,null,dt),oe.edge=_a($,Mt,null,dt),Ja(J),Ja(oe)}else $e.edge=_a(J.site,$e.site)}}function pa($,J){var oe=$.site,fe=oe.x,he=oe.y,ve=he-J;if(!ve)return fe;var De=$.P;if(!De)return-1/0;var Ee=(oe=De.site).x,$e=oe.y,Fe=$e-J;if(!Fe)return Ee;var He=Ee-fe,Xe=1/ve-1/Fe,at=He/Fe;return Xe?(-at+Math.sqrt(at*at-2*Xe*(He*He/(-2*Fe)-$e+Fe/2+he-ve/2)))/Xe+fe:(fe+Ee)/2}function Vr($,J){var oe=$.N;if(oe)return pa(oe,J);var fe=$.site;return fe.y===J?fe.x:1/0}function Qr($){this.site=$,this.edges=[]}function mi($,J){return J.angle-$.angle}function Ao(){dl(this),this.x=this.y=this.arc=this.site=this.cy=null}function Ja($){var J=$.P,oe=$.N;if(J&&oe){var fe=J.site,he=$.site,ve=oe.site;if(fe!==ve){var De=he.x,Ee=he.y,$e=fe.x-De,Fe=fe.y-Ee,He=ve.x-De,Xe=2*($e*(xt=ve.y-Ee)-Fe*He);if(!(Xe>=-tt)){var at=$e*$e+Fe*Fe,vt=He*He+xt*xt,Mt=(xt*at-Fe*vt)/Xe,ft=($e*vt-He*at)/Xe,xt=ft+Ee,lt=Zn.pop()||new Ao;lt.arc=$,lt.site=he,lt.x=Mt+De,lt.y=xt+Math.sqrt(Mt*Mt+ft*ft),lt.cy=xt,$.circle=lt;for(var At=null,_t=zn._;_t;)if(lt.y<_t.y||lt.y===_t.y&<.x<=_t.x){if(!_t.L){At=_t.P;break}_t=_t.L}else{if(!_t.R){At=_t;break}_t=_t.R}zn.insert(At,lt),At||(Qa=lt)}}}}function Dn($){var J=$.circle;J&&(J.P||(Qa=J.N),zn.remove(J),Zn.push(J),dl(J),$.circle=null)}function ia($,J){var oe=$.b;if(oe)return!0;var fe,he,ve=$.a,De=J[0][0],Ee=J[1][0],$e=J[0][1],Fe=J[1][1],He=$.l,Xe=$.r,at=He.x,vt=He.y,Mt=Xe.x,ft=Xe.y,xt=(at+Mt)/2,lt=(vt+ft)/2;if(ft===vt){if(xt=Ee)return;if(at>Mt){if(ve){if(ve.y>=Fe)return}else ve={x:xt,y:$e};oe={x:xt,y:Fe}}else{if(ve){if(ve.y<$e)return}else ve={x:xt,y:Fe};oe={x:xt,y:$e}}}else if(he=lt-(fe=(at-Mt)/(ft-vt))*xt,fe<-1||fe>1)if(at>Mt){if(ve){if(ve.y>=Fe)return}else ve={x:($e-he)/fe,y:$e};oe={x:(Fe-he)/fe,y:Fe}}else{if(ve){if(ve.y<$e)return}else ve={x:(Fe-he)/fe,y:Fe};oe={x:($e-he)/fe,y:$e}}else if(vt=Ee)return}else ve={x:De,y:fe*De+he};oe={x:Ee,y:fe*Ee+he}}else{if(ve){if(ve.x0)){if(lt/=tn,tn<0){if(lt0){if(lt>nn)return;lt>Vt&&(Vt=lt)}if(lt=Xe-dt,tn||!(lt<0)){if(lt/=tn,tn<0){if(lt>nn)return;lt>Vt&&(Vt=lt)}else if(tn>0){if(lt0)){if(lt/=Tn,Tn<0){if(lt0){if(lt>nn)return;lt>Vt&&(Vt=lt)}if(lt=at-Ht,Tn||!(lt<0)){if(lt/=Tn,Tn<0){if(lt>nn)return;lt>Vt&&(Vt=lt)}else if(Tn>0){if(lt0&&(xt.a={x:dt+Vt*tn,y:Ht+Vt*Tn}),nn<1&&(xt.b={x:dt+nn*tn,y:Ht+nn*Tn}),xt}}}}}),ft=vt.length;ft--;)(!ia($e=vt[ft],Ee)||!Mt($e)||M($e.a.x-$e.b.x)je||M(Xe-Fe)>je)&&(Mt.splice(vt,0,new Ts((tn=at.site,Tn=lt,kn=M(He-At)je?{x:At,y:M($e-At)je?{x:M(Fe-Ht)je?{x:_t,y:M($e-_t)je?{x:M(Fe-dt)=He&<.x<=at&<.y>=Xe&<.y<=vt?[[He,vt],[at,vt],[at,Xe],[He,Xe]]:[]).point=$e[ft]}),Fe}function Ee($e){return $e.map(function(Fe,He){return{x:Math.round(fe(Fe,He)/je)*je,y:Math.round(he(Fe,He)/je)*je,i:He}})}return De.links=function($e){return Bc(Ee($e)).edges.filter(function(Fe){return Fe.l&&Fe.r}).map(function(Fe){return{source:$e[Fe.l.i],target:$e[Fe.r.i]}})},De.triangles=function($e){var Fe=[];return Bc(Ee($e)).cells.forEach(function(He,Xe){for(var at,vt,Mt,ft,xt=He.site,lt=He.edges.sort(mi),At=-1,_t=lt.length,dt=lt[_t-1].edge,Ht=dt.l===xt?dt.r:dt.l;++At<_t;)at=Ht,Ht=(dt=lt[At].edge).l===xt?dt.r:dt.l,Xeve&&(he=J.slice(ve,he),Ee[De]?Ee[De]+=he:Ee[++De]=he),(oe=oe[0])===(fe=fe[0])?Ee[De]?Ee[De]+=fe:Ee[++De]=fe:(Ee[++De]=null,$e.push({i:De,x:ql(oe,fe)})),ve=ew.lastIndex;return velt&&(lt=He.x),He.y>At&&(At=He.y),Xe.push(He.x),at.push(He.y);else for(vt=0;vtlt&&(lt=Ht),Vt>At&&(At=Vt),Xe.push(Ht),at.push(Vt)}var nn=lt-ft,tn=At-xt;function Tn(Cn,Xn,lr,$r,rn,bn,Un,Gn){if(!isNaN(lr)&&!isNaN($r))if(Cn.leaf){var nr=Cn.x,Ar=Cn.y;if(nr!=null)if(M(nr-lr)+M(Ar-$r)<.01)kn(Cn,Xn,lr,$r,rn,bn,Un,Gn);else{var ha=Cn.point;Cn.x=Cn.y=Cn.point=null,kn(Cn,ha,nr,Ar,rn,bn,Un,Gn),kn(Cn,Xn,lr,$r,rn,bn,Un,Gn)}else Cn.x=lr,Cn.y=$r,Cn.point=Xn}else kn(Cn,Xn,lr,$r,rn,bn,Un,Gn)}function kn(Cn,Xn,lr,$r,rn,bn,Un,Gn){var nr=.5*(rn+Un),Ar=.5*(bn+Gn),ha=lr>=nr,Jr=$r>=Ar,Da=Jr<<1|ha;Cn.leaf=!1,ha?rn=nr:Un=nr,Jr?bn=Ar:Gn=Ar,Tn(Cn=Cn.nodes[Da]||(Cn.nodes[Da]={leaf:!0,nodes:[],point:null,x:null,y:null}),Xn,lr,$r,rn,bn,Un,Gn)}nn>tn?At=xt+nn:lt=ft+tn;var Rn={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(Cn){Tn(Rn,Cn,+_t(Cn,++vt),+dt(Cn,vt),ft,xt,lt,At)}};if(Rn.visit=function(Cn){Qf(Cn,Rn,ft,xt,lt,At)},Rn.find=function(Cn){return function(Xn,lr,$r,rn,bn,Un,Gn){var nr,Ar=1/0;return function ha(Jr,Da,ma,Ea,so){if(!(Da>Un||ma>Gn||Ea=Do)<<1|lr>=wo,Ul=vi+4;vi=0&&!(oe=c.interpolators[fe]($,J)););return oe}function Fg($,J){var oe,fe=[],he=[],ve=$.length,De=J.length,Ee=Math.min($.length,J.length);for(oe=0;oe=1)return 1;var J=$*$,oe=J*$;return 4*($<.5?oe:3*($-J)+oe-.75)}function cK($){return 1-Math.cos($*ct)}function dK($){return Math.pow(2,10*($-1))}function fK($){return 1-Math.sqrt(1-$*$)}function pK($){return $<.36363636363636365?7.5625*$*$:$<.7272727272727273?7.5625*($-=.5454545454545454)*$+.75:$<.9090909090909091?7.5625*($-=.8181818181818182)*$+.9375:7.5625*($-=.9545454545454546)*$+.984375}function VP($,J){return J-=$,function(oe){return Math.round($+J*oe)}}function GP($){var J,oe,fe,he=[$.a,$.b],ve=[$.c,$.d],De=XP(he),Ee=YP(he,ve),$e=XP(((J=ve)[0]+=(fe=-Ee)*(oe=he)[0],J[1]+=fe*oe[1],J))||0;he[0]*ve[1]=0?$.slice(0,oe):$,he=oe>=0?$.slice(oe+1):"in";return fe=oK.get(fe)||qP,he=iK.get(he)||q,J=he(fe.apply(null,d.call(arguments,1))),function(ve){return ve<=0?0:ve>=1?1:J(ve)}},c.interpolateHcl=function($,J){$=c.hcl($),J=c.hcl(J);var oe=$.h,fe=$.c,he=$.l,ve=J.h-oe,De=J.c-fe,Ee=J.l-he;return isNaN(De)&&(De=0,fe=isNaN(fe)?J.c:fe),isNaN(ve)?(ve=0,oe=isNaN(oe)?J.h:oe):ve>180?ve-=360:ve<-180&&(ve+=360),function($e){return gt(oe+ve*$e,fe+De*$e,he+Ee*$e)+""}},c.interpolateHsl=function($,J){$=c.hsl($),J=c.hsl(J);var oe=$.h,fe=$.s,he=$.l,ve=J.h-oe,De=J.s-fe,Ee=J.l-he;return isNaN(De)&&(De=0,fe=isNaN(fe)?J.s:fe),isNaN(ve)?(ve=0,oe=isNaN(oe)?J.h:oe):ve>180?ve-=360:ve<-180&&(ve+=360),function($e){return Qe(oe+ve*$e,fe+De*$e,he+Ee*$e)+""}},c.interpolateLab=function($,J){$=c.lab($),J=c.lab(J);var oe=$.l,fe=$.a,he=$.b,ve=J.l-oe,De=J.a-fe,Ee=J.b-he;return function($e){return mt(oe+ve*$e,fe+De*$e,he+Ee*$e)+""}},c.interpolateRound=VP,c.transform=function($){var J=p.createElementNS(c.ns.prefix.svg,"g");return(c.transform=function(oe){if(oe!=null){J.setAttribute("transform",oe);var fe=J.transform.baseVal.consolidate()}return new GP(fe?fe.matrix:hK)})($)},GP.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var hK={a:1,b:0,c:0,d:1,e:0,f:0};function Wc($){return $.length?$.pop()+",":""}function KP($,J){var oe=[],fe=[];return $=c.transform($),J=c.transform(J),function(he,ve,De,Ee){if(he[0]!==ve[0]||he[1]!==ve[1]){var $e=De.push("translate(",null,",",null,")");Ee.push({i:$e-4,x:ql(he[0],ve[0])},{i:$e-2,x:ql(he[1],ve[1])})}else(ve[0]||ve[1])&&De.push("translate("+ve+")")}($.translate,J.translate,oe,fe),function(he,ve,De,Ee){he!==ve?(he-ve>180?ve+=360:ve-he>180&&(he+=360),Ee.push({i:De.push(Wc(De)+"rotate(",null,")")-2,x:ql(he,ve)})):ve&&De.push(Wc(De)+"rotate("+ve+")")}($.rotate,J.rotate,oe,fe),function(he,ve,De,Ee){he!==ve?Ee.push({i:De.push(Wc(De)+"skewX(",null,")")-2,x:ql(he,ve)}):ve&&De.push(Wc(De)+"skewX("+ve+")")}($.skew,J.skew,oe,fe),function(he,ve,De,Ee){if(he[0]!==ve[0]||he[1]!==ve[1]){var $e=De.push(Wc(De)+"scale(",null,",",null,")");Ee.push({i:$e-4,x:ql(he[0],ve[0])},{i:$e-2,x:ql(he[1],ve[1])})}else ve[0]===1&&ve[1]===1||De.push(Wc(De)+"scale("+ve+")")}($.scale,J.scale,oe,fe),$=J=null,function(he){for(var ve,De=-1,Ee=fe.length;++De0?oe=dt:($.c=null,$.t=NaN,$=null,Ee.end({type:"end",alpha:oe=0})):dt>0&&(Ee.start({type:"start",alpha:oe=dt}),$=sn(De.tick)),De):oe},De.start=function(){var dt,Ht,Vt,nn=xt.length,tn=lt.length,Tn=$e[0],kn=$e[1];for(dt=0;dt=0;)oe.push(he[fe])}function fl($,J){for(var oe=[$],fe=[];($=oe.pop())!=null;)if(fe.push($),(ve=$.children)&&(he=ve.length))for(var he,ve,De=-1;++De=0;)De.push(He=Fe[$e]),He.parent=ve,He.depth=ve.depth+1;oe&&(ve.value=0),ve.children=Fe}else oe&&(ve.value=+oe.call(fe,ve,ve.depth)||0),delete ve.children;return fl(he,function(Xe){var at,vt;$&&(at=Xe.children)&&at.sort($),oe&&(vt=Xe.parent)&&(vt.value+=Xe.value)}),Ee}return fe.sort=function(he){return arguments.length?($=he,fe):$},fe.children=function(he){return arguments.length?(J=he,fe):J},fe.value=function(he){return arguments.length?(oe=he,fe):oe},fe.revalue=function(he){return oe&&(ep(he,function(ve){ve.children&&(ve.value=0)}),fl(he,function(ve){var De;ve.children||(ve.value=+oe.call(fe,ve,ve.depth)||0),(De=ve.parent)&&(De.value+=ve.value)})),he},fe},c.layout.partition=function(){var $=c.layout.hierarchy(),J=[1,1];function oe(ve,De,Ee,$e){var Fe=ve.children;if(ve.x=De,ve.y=ve.depth*$e,ve.dx=Ee,ve.dy=$e,Fe&&(He=Fe.length)){var He,Xe,at,vt=-1;for(Ee=ve.value?Ee/ve.value:0;++vtEe&&(Ee=fe),De.push(fe)}for(oe=0;oehe&&(fe=oe,he=J);return fe}function IK($){return $.reduce($K,0)}function $K($,J){return $+J[1]}function NK($,J){return eO($,Math.ceil(Math.log(J.length)/Math.LN2+1))}function eO($,J){for(var oe=-1,fe=+$[0],he=($[1]-fe)/J,ve=[];++oe<=J;)ve[oe]=he*oe+fe;return ve}function FK($){return[c.min($),c.max($)]}function jK($,J){return $.value-J.value}function rw($,J){var oe=$._pack_next;$._pack_next=J,J._pack_prev=$,J._pack_next=oe,oe._pack_prev=J}function tO($,J){$._pack_next=J,J._pack_prev=$}function nO($,J){var oe=J.x-$.x,fe=J.y-$.y,he=$.r+J.r;return .999*he*he>oe*oe+fe*fe}function rO($){if((J=$.children)&&($e=J.length)){var J,oe,fe,he,ve,De,Ee,$e,Fe=1/0,He=-1/0,Xe=1/0,at=-1/0;if(J.forEach(zK),(oe=J[0]).x=-oe.r,oe.y=0,_t(oe),$e>1&&((fe=J[1]).x=fe.r,fe.y=0,_t(fe),$e>2))for(oO(oe,fe,he=J[2]),_t(he),rw(oe,he),oe._pack_prev=he,rw(he,fe),fe=oe._pack_next,ve=3;ve<$e;ve++){oO(oe,fe,he=J[ve]);var vt=0,Mt=1,ft=1;for(De=fe._pack_next;De!==fe;De=De._pack_next,Mt++)if(nO(De,he)){vt=1;break}if(vt==1)for(Ee=oe._pack_prev;Ee!==De._pack_prev&&!nO(Ee,he);Ee=Ee._pack_prev,ft++);vt?(Mt0)for(De=-1;++De=Xe[0]&&$e<=Xe[1]&&((Ee=Fe[c.bisect(at,$e,1,Mt)-1]).y+=ft,Ee.push(ve[De]));return Fe}return he.value=function(ve){return arguments.length?(J=ve,he):J},he.range=function(ve){return arguments.length?(oe=Ut(ve),he):oe},he.bins=function(ve){return arguments.length?(fe=typeof ve=="number"?function(De){return eO(De,ve)}:Ut(ve),he):fe},he.frequency=function(ve){return arguments.length?($=!!ve,he):$},he},c.layout.pack=function(){var $,J=c.layout.hierarchy().sort(jK),oe=0,fe=[1,1];function he(ve,De){var Ee=J.call(this,ve,De),$e=Ee[0],Fe=fe[0],He=fe[1],Xe=$==null?Math.sqrt:typeof $=="function"?$:function(){return $};if($e.x=$e.y=0,fl($e,function(vt){vt.r=+Xe(vt.value)}),fl($e,rO),oe){var at=oe*($?1:Math.max(2*$e.r/Fe,2*$e.r/He))/2;fl($e,function(vt){vt.r+=at}),fl($e,rO),fl($e,function(vt){vt.r-=at})}return aO($e,Fe/2,He/2,$?1:1/Math.max(2*$e.r/Fe,2*$e.r/He)),Ee}return he.size=function(ve){return arguments.length?(fe=ve,he):fe},he.radius=function(ve){return arguments.length?($=ve==null||typeof ve=="function"?ve:+ve,he):$},he.padding=function(ve){return arguments.length?(oe=+ve,he):oe},Jf(he,J)},c.layout.tree=function(){var $=c.layout.hierarchy().sort(null).value(null),J=iO,oe=[1,1],fe=null;function he($e,Fe){var He=$.call(this,$e,Fe),Xe=He[0],at=function(_t){for(var dt,Ht={A:null,children:[_t]},Vt=[Ht];(dt=Vt.pop())!=null;)for(var nn,tn=dt.children,Tn=0,kn=tn.length;TnMt.x&&(Mt=_t),_t.depth>ft.depth&&(ft=_t)});var xt=J(vt,Mt)/2-vt.x,lt=oe[0]/(Mt.x+J(Mt,vt)/2+xt),At=oe[1]/(ft.depth||1);ep(Xe,function(_t){_t.x=(_t.x+xt)*lt,_t.y=_t.depth*At})}return He}function ve($e){var Fe=$e.children,He=$e.parent.children,Xe=$e.i?He[$e.i-1]:null;if(Fe.length){(function(vt){for(var Mt,ft=0,xt=0,lt=vt.children,At=lt.length;--At>=0;)(Mt=lt[At]).z+=ft,Mt.m+=ft,ft+=Mt.s+(xt+=Mt.c)})($e);var at=(Fe[0].z+Fe[Fe.length-1].z)/2;Xe?($e.z=Xe.z+J($e._,Xe._),$e.m=$e.z-at):$e.z=at}else Xe&&($e.z=Xe.z+J($e._,Xe._));$e.parent.A=function(vt,Mt,ft){if(Mt){for(var xt,lt=vt,At=vt,_t=Mt,dt=lt.parent.children[0],Ht=lt.m,Vt=At.m,nn=_t.m,tn=dt.m;_t=ow(_t),lt=aw(lt),_t&<)dt=aw(dt),(At=ow(At)).a=vt,(xt=_t.z+nn-lt.z-Ht+J(_t._,lt._))>0&&(WK(qK(_t,vt,ft),vt,xt),Ht+=xt,Vt+=xt),nn+=_t.m,Ht+=lt.m,tn+=dt.m,Vt+=At.m;_t&&!ow(At)&&(At.t=_t,At.m+=nn-Vt),lt&&!aw(dt)&&(dt.t=lt,dt.m+=Ht-tn,ft=vt)}return ft}($e,Xe,$e.parent.A||He[0])}function De($e){$e._.x=$e.z+$e.parent.m,$e.m+=$e.parent.m}function Ee($e){$e.x*=oe[0],$e.y=$e.depth*oe[1]}return he.separation=function($e){return arguments.length?(J=$e,he):J},he.size=function($e){return arguments.length?(fe=(oe=$e)==null?Ee:null,he):fe?null:oe},he.nodeSize=function($e){return arguments.length?(fe=(oe=$e)==null?null:Ee,he):fe?oe:null},Jf(he,$)},c.layout.cluster=function(){var $=c.layout.hierarchy().sort(null).value(null),J=iO,oe=[1,1],fe=!1;function he(ve,De){var Ee,$e=$.call(this,ve,De),Fe=$e[0],He=0;fl(Fe,function(ft){var xt=ft.children;xt&&xt.length?(ft.x=function(lt){return lt.reduce(function(At,_t){return At+_t.x},0)/lt.length}(xt),ft.y=function(lt){return 1+c.max(lt,function(At){return At.y})}(xt)):(ft.x=Ee?He+=J(ft,Ee):0,ft.y=0,Ee=ft)});var Xe=lO(Fe),at=sO(Fe),vt=Xe.x-J(Xe,at)/2,Mt=at.x+J(at,Xe)/2;return fl(Fe,fe?function(ft){ft.x=(ft.x-Fe.x)*oe[0],ft.y=(Fe.y-ft.y)*oe[1]}:function(ft){ft.x=(ft.x-vt)/(Mt-vt)*oe[0],ft.y=(1-(Fe.y?ft.y/Fe.y:1))*oe[1]}),$e}return he.separation=function(ve){return arguments.length?(J=ve,he):J},he.size=function(ve){return arguments.length?(fe=(oe=ve)==null,he):fe?null:oe},he.nodeSize=function(ve){return arguments.length?(fe=(oe=ve)!=null,he):fe?oe:null},Jf(he,$)},c.layout.treemap=function(){var $,J=c.layout.hierarchy(),oe=Math.round,fe=[1,1],he=null,ve=iw,De=!1,Ee="squarify",$e=.5*(1+Math.sqrt(5));function Fe(ft,xt){for(var lt,At,_t=-1,dt=ft.length;++_t0;)Ht.push(lt=Vt[_t-1]),Ht.area+=lt.area,Ee!=="squarify"||(At=at(Ht,tn))<=nn?(Vt.pop(),nn=At):(Ht.area-=Ht.pop().area,vt(Ht,tn,dt,!1),tn=Math.min(dt.dx,dt.dy),Ht.length=Ht.area=0,nn=1/0);Ht.length&&(vt(Ht,tn,dt,!0),Ht.length=Ht.area=0),xt.forEach(He)}}function Xe(ft){var xt=ft.children;if(xt&&xt.length){var lt,At=ve(ft),_t=xt.slice(),dt=[];for(Fe(_t,At.dx*At.dy/ft.value),dt.area=0;lt=_t.pop();)dt.push(lt),dt.area+=lt.area,lt.z!=null&&(vt(dt,lt.z?At.dx:At.dy,At,!_t.length),dt.length=dt.area=0);xt.forEach(Xe)}}function at(ft,xt){for(var lt,At=ft.area,_t=0,dt=1/0,Ht=-1,Vt=ft.length;++Ht_t&&(_t=lt));return xt*=xt,(At*=At)?Math.max(xt*_t*$e/At,At/(xt*dt*$e)):1/0}function vt(ft,xt,lt,At){var _t,dt=-1,Ht=ft.length,Vt=lt.x,nn=lt.y,tn=xt?oe(ft.area/xt):0;if(xt==lt.dx){for((At||tn>lt.dy)&&(tn=lt.dy);++dtlt.dx)&&(tn=lt.dx);++dt1);return $+J*fe*Math.sqrt(-2*Math.log(ve)/ve)}},logNormal:function(){var $=c.random.normal.apply(c,arguments);return function(){return Math.exp($())}},bates:function($){var J=c.random.irwinHall($);return function(){return J()/$}},irwinHall:function($){return function(){for(var J=0,oe=0;oe<$;oe++)J+=Math.random();return J}}},c.scale={};var HK={floor:q,ceil:q};function VK($,J,oe,fe){var he=[],ve=[],De=0,Ee=Math.min($.length,J.length)-1;for($[Ee]<$[0]&&($=$.slice().reverse(),J=J.slice().reverse());++De<=Ee;)he.push(oe($[De-1],$[De])),ve.push(fe(J[De-1],J[De]));return function($e){var Fe=c.bisect($,$e,1,Ee)-1;return ve[Fe](he[Fe]($e))}}function dO($,J,oe,fe){var he,ve;function De(){var $e=Math.min($.length,J.length)>2?VK:UK,Fe=fe?gK:mK;return he=$e($,J,Fe,oe),ve=$e(J,$,Fe,xu),Ee}function Ee($e){return he($e)}return Ee.invert=function($e){return ve($e)},Ee.domain=function($e){return arguments.length?($=$e.map(Number),De()):$},Ee.range=function($e){return arguments.length?(J=$e,De()):J},Ee.rangeRound=function($e){return Ee.range($e).interpolate(VP)},Ee.clamp=function($e){return arguments.length?(fe=$e,De()):fe},Ee.interpolate=function($e){return arguments.length?(oe=$e,De()):oe},Ee.ticks=function($e){return uw($,$e)},Ee.tickFormat=function($e,Fe){return d3_scale_linearTickFormat($,$e,Fe)},Ee.nice=function($e){return pO($,$e),De()},Ee.copy=function(){return dO($,J,oe,fe)},De()}function fO($,J){return c.rebind($,J,"range","rangeRound","interpolate","clamp")}function pO($,J){return lw($,cO(sw($,J)[2])),lw($,cO(sw($,J)[2])),$}function sw($,J){J==null&&(J=10);var oe=jg($),fe=oe[1]-oe[0],he=Math.pow(10,Math.floor(Math.log(fe/J)/Math.LN10)),ve=J/fe*he;return ve<=.15?he*=10:ve<=.35?he*=5:ve<=.75&&(he*=2),oe[0]=Math.ceil(oe[0]/he)*he,oe[1]=Math.floor(oe[1]/he)*he+.5*he,oe[2]=he,oe}function uw($,J){return c.range.apply(c,sw($,J))}function hO($,J,oe,fe){function he(Ee){return(oe?Math.log(Ee<0?0:Ee):-Math.log(Ee>0?0:-Ee))/Math.log(J)}function ve(Ee){return oe?Math.pow(J,Ee):-Math.pow(J,-Ee)}function De(Ee){return $(he(Ee))}return De.invert=function(Ee){return ve($.invert(Ee))},De.domain=function(Ee){return arguments.length?(oe=Ee[0]>=0,$.domain((fe=Ee.map(Number)).map(he)),De):fe},De.base=function(Ee){return arguments.length?(J=+Ee,$.domain(fe.map(he)),De):J},De.nice=function(){var Ee=lw(fe.map(he),oe?Math:GK);return $.domain(Ee),fe=Ee.map(ve),De},De.ticks=function(){var Ee=jg(fe),$e=[],Fe=Ee[0],He=Ee[1],Xe=Math.floor(he(Fe)),at=Math.ceil(he(He)),vt=J%1?2:J;if(isFinite(at-Xe)){if(oe){for(;Xe0;Mt--)$e.push(ve(Xe)*Mt);for(Xe=0;$e[Xe]He;at--);$e=$e.slice(Xe,at)}return $e},De.copy=function(){return hO($.copy(),J,oe,fe)},fO(De,$)}c.scale.linear=function(){return dO([0,1],[0,1],xu,!1)},c.scale.log=function(){return hO(c.scale.linear().domain([0,1]),10,!0,[1,10])};var GK={floor:function($){return-Math.ceil(-$)},ceil:function($){return-Math.floor(-$)}};function mO($,J,oe){var fe=Bg(J),he=Bg(1/J);function ve(De){return $(fe(De))}return ve.invert=function(De){return he($.invert(De))},ve.domain=function(De){return arguments.length?($.domain((oe=De.map(Number)).map(fe)),ve):oe},ve.ticks=function(De){return uw(oe,De)},ve.tickFormat=function(De,Ee){return d3_scale_linearTickFormat(oe,De,Ee)},ve.nice=function(De){return ve.domain(pO(oe,De))},ve.exponent=function(De){return arguments.length?(fe=Bg(J=De),he=Bg(1/J),$.domain(oe.map(fe)),ve):J},ve.copy=function(){return mO($.copy(),J,oe)},fO(ve,$)}function Bg($){return function(J){return J<0?-Math.pow(-J,$):Math.pow(J,$)}}function gO($,J){var oe,fe,he;function ve(Ee){return fe[((oe.get(Ee)||(J.t==="range"?oe.set(Ee,$.push(Ee)):NaN))-1)%fe.length]}function De(Ee,$e){return c.range($.length).map(function(Fe){return Ee+$e*Fe})}return ve.domain=function(Ee){if(!arguments.length)return $;$=[],oe=new D;for(var $e,Fe=-1,He=Ee.length;++Fe0?oe[ve-1]:$[0],veat?0:1;if(He=et)return $e(He,Mt)+(Fe?$e(Fe,1-Mt):"")+"Z";var ft,xt,lt,At,_t,dt,Ht,Vt,nn,tn,Tn,kn,Rn=0,Cn=0,Xn=[];if((At=(+De.apply(this,arguments)||0)/2)&&(lt=fe===Wg?Math.sqrt(Fe*Fe+He*He):+fe.apply(this,arguments),Mt||(Cn*=-1),He&&(Cn=kt(lt/He*Math.sin(At))),Fe&&(Rn=kt(lt/Fe*Math.sin(At)))),He){_t=He*Math.cos(Xe+Cn),dt=He*Math.sin(Xe+Cn),Ht=He*Math.cos(at-Cn),Vt=He*Math.sin(at-Cn);var lr=Math.abs(at-Xe-2*Cn)<=it?0:1;if(Cn&&qg(_t,dt,Ht,Vt)===Mt^lr){var $r=(Xe+at)/2;_t=He*Math.cos($r),dt=He*Math.sin($r),Ht=Vt=null}}else _t=dt=0;if(Fe){nn=Fe*Math.cos(at-Rn),tn=Fe*Math.sin(at-Rn),Tn=Fe*Math.cos(Xe+Rn),kn=Fe*Math.sin(Xe+Rn);var rn=Math.abs(Xe-at+2*Rn)<=it?0:1;if(Rn&&qg(nn,tn,Tn,kn)===1-Mt^rn){var bn=(Xe+at)/2;nn=Fe*Math.cos(bn),tn=Fe*Math.sin(bn),Tn=kn=null}}else nn=tn=0;if(vt>je&&(ft=Math.min(Math.abs(He-Fe)/2,+oe.apply(this,arguments)))>.001){xt=Fe0?0:1}function Ug($,J,oe,fe,he){var ve=$[0]-J[0],De=$[1]-J[1],Ee=(he?fe:-fe)/Math.sqrt(ve*ve+De*De),$e=Ee*De,Fe=-Ee*ve,He=$[0]+$e,Xe=$[1]+Fe,at=J[0]+$e,vt=J[1]+Fe,Mt=(He+at)/2,ft=(Xe+vt)/2,xt=at-He,lt=vt-Xe,At=xt*xt+lt*lt,_t=oe-fe,dt=He*vt-at*Xe,Ht=(lt<0?-1:1)*Math.sqrt(Math.max(0,_t*_t*At-dt*dt)),Vt=(dt*lt-xt*Ht)/At,nn=(-dt*xt-lt*Ht)/At,tn=(dt*lt+xt*Ht)/At,Tn=(-dt*xt+lt*Ht)/At,kn=Vt-Mt,Rn=nn-ft,Cn=tn-Mt,Xn=Tn-ft;return kn*kn+Rn*Rn>Cn*Cn+Xn*Xn&&(Vt=tn,nn=Tn),[[Vt-$e,nn-Fe],[Vt*oe/_t,nn*oe/_t]]}function TO(){return!0}function SO($){var J=Wn,oe=On,fe=TO,he=Yi,ve=he.key,De=.7;function Ee($e){var Fe,He=[],Xe=[],at=-1,vt=$e.length,Mt=Ut(J),ft=Ut(oe);function xt(){He.push("M",he($(Xe),De))}for(;++at1&&he.push("H",fe[0]),he.join("")},"step-before":dw,"step-after":fw,basis:CO,"basis-open":function($){if($.length<4)return Yi($);for(var J,oe=[],fe=-1,he=$.length,ve=[0],De=[0];++fe<3;)J=$[fe],ve.push(J[0]),De.push(J[1]);for(oe.push(gi(Ss,ve)+","+gi(Ss,De)),--fe;++fe9&&(ve=3*oe/Math.sqrt(ve),Ee[$e]=ve*fe,Ee[$e+1]=ve*he);for($e=-1;++$e<=Fe;)ve=(J[Math.min(Fe,$e+1)][0]-J[Math.max(0,$e-1)][0])/(6*(1+Ee[$e]*Ee[$e])),De.push([ve||0,Ee[$e]*ve||0]);return De}($))}});function Yi($){return $.length>1?$.join("L"):$+"Z"}function kO($){return $.join("L")+"Z"}function dw($){for(var J=0,oe=$.length,fe=$[0],he=[fe[0],",",fe[1]];++J1){Ee=J[1],ve=$[$e],$e++,fe+="C"+(he[0]+De[0])+","+(he[1]+De[1])+","+(ve[0]-Ee[0])+","+(ve[1]-Ee[1])+","+ve[0]+","+ve[1];for(var Fe=2;Feit)+",1 "+He}function $e(Fe,He,Xe,at){return"Q 0,0 "+at}return ve.radius=function(Fe){return arguments.length?(oe=Ut(Fe),ve):oe},ve.source=function(Fe){return arguments.length?($=Ut(Fe),ve):$},ve.target=function(Fe){return arguments.length?(J=Ut(Fe),ve):J},ve.startAngle=function(Fe){return arguments.length?(fe=Ut(Fe),ve):fe},ve.endAngle=function(Fe){return arguments.length?(he=Ut(Fe),ve):he},ve},c.svg.diagonal=function(){var $=DO,J=EO,oe=RO;function fe(he,ve){var De=$.call(this,he,ve),Ee=J.call(this,he,ve),$e=(De.y+Ee.y)/2,Fe=[De,{x:De.x,y:$e},{x:Ee.x,y:$e},Ee];return"M"+(Fe=Fe.map(oe))[0]+"C"+Fe[1]+" "+Fe[2]+" "+Fe[3]}return fe.source=function(he){return arguments.length?($=Ut(he),fe):$},fe.target=function(he){return arguments.length?(J=Ut(he),fe):J},fe.projection=function(he){return arguments.length?(oe=he,fe):oe},fe},c.svg.diagonal.radial=function(){var $=c.svg.diagonal(),J=RO,oe=$.projection;return $.projection=function(fe){return arguments.length?oe(function(he){return function(){var ve=he.apply(this,arguments),De=ve[0],Ee=ve[1]-ct;return[De*Math.cos(Ee),De*Math.sin(Ee)]}}(J=fe)):J},$},c.svg.symbol=function(){var $=aZ,J=rZ;function oe(fe,he){return(IO.get($.call(this,fe,he))||LO)(J.call(this,fe,he))}return oe.type=function(fe){return arguments.length?($=Ut(fe),oe):$},oe.size=function(fe){return arguments.length?(J=Ut(fe),oe):J},oe};var IO=c.map({circle:LO,cross:function($){var J=Math.sqrt($/5)/2;return"M"+-3*J+","+-J+"H"+-J+"V"+-3*J+"H"+J+"V"+-J+"H"+3*J+"V"+J+"H"+J+"V"+3*J+"H"+-J+"V"+J+"H"+-3*J+"Z"},diamond:function($){var J=Math.sqrt($/(2*$O)),oe=J*$O;return"M0,"+-J+"L"+oe+",0 0,"+J+" "+-oe+",0Z"},square:function($){var J=Math.sqrt($)/2;return"M"+-J+","+-J+"L"+J+","+-J+" "+J+","+J+" "+-J+","+J+"Z"},"triangle-down":function($){var J=Math.sqrt($/Vg),oe=J*Vg/2;return"M0,"+oe+"L"+J+","+-oe+" "+-J+","+-oe+"Z"},"triangle-up":function($){var J=Math.sqrt($/Vg),oe=J*Vg/2;return"M0,"+-oe+"L"+J+","+oe+" "+-J+","+oe+"Z"}});c.svg.symbolTypes=IO.keys();var Vg=Math.sqrt(3),$O=Math.tan(30*ht);se.transition=function($){for(var J,oe,fe=wu||++FO,he=vw($),ve=[],De=Yg||{time:Date.now(),ease:uK,delay:0,duration:250},Ee=-1,$e=this.length;++Ee<$e;){ve.push(J=[]);for(var Fe=this[Ee],He=-1,Xe=Fe.length;++He0;)Fe[--lt].call($,xt);if(ft>=1)return Xe.event&&Xe.event.end.call($,$.__data__,J),--He.count?delete He[fe]:delete $[oe],1}Xe||(ve=he.time,De=sn(function(Mt){var ft=Xe.delay;if(De.t=ft+ve,ft<=Mt)return at(Mt-ft);De.c=at},0,ve),Xe=He[fe]={tween:new D,time:ve,timer:De,delay:he.delay,duration:he.duration,ease:he.ease,index:J},he=null,++He.count)}Ta.call=se.call,Ta.empty=se.empty,Ta.node=se.node,Ta.size=se.size,c.transition=function($,J){return $&&$.transition?wu?$.transition(J):$:c.selection().transition($)},c.transition.prototype=Ta,Ta.select=function($){var J,oe,fe,he=this.id,ve=this.namespace,De=[];$=pe($);for(var Ee=-1,$e=this.length;++Ee<$e;){De.push(J=[]);for(var Fe=this[Ee],He=-1,Xe=Fe.length;++Herect,.s>rect").attr("width",ve[1]-ve[0])}function vt(ft){ft.select(".extent").attr("y",De[0]),ft.selectAll(".extent,.e>rect,.w>rect").attr("height",De[1]-De[0])}function Mt(){var ft,xt,lt=this,At=c.select(c.event.target),_t=oe.of(lt,arguments),dt=c.select(lt),Ht=At.datum(),Vt=!/^(n|s)$/.test(Ht)&&fe,nn=!/^(e|w)$/.test(Ht)&&he,tn=At.classed("extent"),Tn=Je(lt),kn=c.mouse(lt),Rn=c.select(g(lt)).on("keydown.brush",function(){c.event.keyCode==32&&(tn||(ft=null,kn[0]-=ve[1],kn[1]-=De[1],tn=2),ee())}).on("keyup.brush",function(){c.event.keyCode==32&&tn==2&&(kn[0]+=ve[1],kn[1]+=De[1],tn=0,ee())});if(c.event.changedTouches?Rn.on("touchmove.brush",lr).on("touchend.brush",rn):Rn.on("mousemove.brush",lr).on("mouseup.brush",rn),dt.interrupt().selectAll("*").interrupt(),tn)kn[0]=ve[0]-kn[0],kn[1]=De[0]-kn[1];else if(Ht){var Cn=+/w$/.test(Ht),Xn=+/^n/.test(Ht);xt=[ve[1-Cn]-kn[0],De[1-Xn]-kn[1]],kn[0]=ve[Cn],kn[1]=De[Xn]}else c.event.altKey&&(ft=kn.slice());function lr(){var bn=c.mouse(lt),Un=!1;xt&&(bn[0]+=xt[0],bn[1]+=xt[1]),tn||(c.event.altKey?(ft||(ft=[(ve[0]+ve[1])/2,(De[0]+De[1])/2]),kn[0]=ve[+(bn[0]24?(isFinite(J)&&(clearTimeout(Jt),Jt=setTimeout(en,J)),hn=0):(hn=1,_n(en))}function Nn(){for(var $=Date.now(),J=pn;J;)$>=J.t&&J.c($-J.t)&&(J.c=null),J=J.n;return $}function An(){for(var $,J=pn,oe=1/0;J;)J.c?(J.t1&&(J=$[ve[De-2]],oe=$[ve[De-1]],fe=$[Ee],(oe[0]-J[0])*(fe[1]-J[1])-(oe[1]-J[1])*(fe[0]-J[0])<=0);)--De;ve[De++]=Ee}return ve.slice(0,De)}function br($,J){return $[0]-J[0]||$[1]-J[1]}c.timer=function(){sn.apply(this,arguments)},c.timer.flush=function(){Nn(),An()},c.round=function($,J){return J?Math.round($*(J=Math.pow(10,J)))/J:Math.round($)},c.geom={},c.geom.hull=function($){var J=Wn,oe=On;if(arguments.length)return fe($);function fe(he){if(he.length<3)return[];var ve,De=Ut(J),Ee=Ut(oe),$e=he.length,Fe=[],He=[];for(ve=0;ve<$e;ve++)Fe.push([+De.call(this,he[ve],ve),+Ee.call(this,he[ve],ve),ve]);for(Fe.sort(br),ve=0;ve<$e;ve++)He.push([Fe[ve][0],-Fe[ve][1]]);var Ke=qn(Fe),at=qn(He),vt=at[0]===Ke[0],Mt=at[at.length-1]===Ke[Ke.length-1],ft=[];for(ve=Ke.length-1;ve>=0;--ve)ft.push(he[Fe[Ke[ve]][2]]);for(ve=+vt;veje)Ee=Ee.L;else{if(!((he=ve-Vr(Ee,De))>je)){fe>-je?(J=Ee.P,oe=Ee):he>-je?(J=Ee,oe=Ee.N):J=oe=Ee;break}if(!Ee.R){J=Ee;break}Ee=Ee.R}var $e=Vn($);if(Zr.insert(J,$e),J||oe){if(J===oe)return Dn(J),oe=Vn(J.site),Zr.insert($e,oe),$e.edge=oe.edge=_a(J.site,$e.site),Ja(J),void Ja(oe);if(oe){Dn(J),Dn(oe);var Fe=J.site,He=Fe.x,Ke=Fe.y,at=$.x-He,vt=$.y-Ke,Mt=oe.site,ft=Mt.x-He,xt=Mt.y-Ke,lt=2*(at*xt-vt*ft),At=at*at+vt*vt,_t=ft*ft+xt*xt,dt={x:(xt*At-vt*_t)/lt+He,y:(at*_t-ft*At)/lt+Ke};_s(oe.edge,Fe,Mt,dt),$e.edge=_a(Fe,$,null,dt),oe.edge=_a($,Mt,null,dt),Ja(J),Ja(oe)}else $e.edge=_a(J.site,$e.site)}}function pa($,J){var oe=$.site,fe=oe.x,he=oe.y,ve=he-J;if(!ve)return fe;var De=$.P;if(!De)return-1/0;var Ee=(oe=De.site).x,$e=oe.y,Fe=$e-J;if(!Fe)return Ee;var He=Ee-fe,Ke=1/ve-1/Fe,at=He/Fe;return Ke?(-at+Math.sqrt(at*at-2*Ke*(He*He/(-2*Fe)-$e+Fe/2+he-ve/2)))/Ke+fe:(fe+Ee)/2}function Vr($,J){var oe=$.N;if(oe)return pa(oe,J);var fe=$.site;return fe.y===J?fe.x:1/0}function Qr($){this.site=$,this.edges=[]}function mi($,J){return J.angle-$.angle}function Ao(){dl(this),this.x=this.y=this.arc=this.site=this.cy=null}function Ja($){var J=$.P,oe=$.N;if(J&&oe){var fe=J.site,he=$.site,ve=oe.site;if(fe!==ve){var De=he.x,Ee=he.y,$e=fe.x-De,Fe=fe.y-Ee,He=ve.x-De,Ke=2*($e*(xt=ve.y-Ee)-Fe*He);if(!(Ke>=-tt)){var at=$e*$e+Fe*Fe,vt=He*He+xt*xt,Mt=(xt*at-Fe*vt)/Ke,ft=($e*vt-He*at)/Ke,xt=ft+Ee,lt=Zn.pop()||new Ao;lt.arc=$,lt.site=he,lt.x=Mt+De,lt.y=xt+Math.sqrt(Mt*Mt+ft*ft),lt.cy=xt,$.circle=lt;for(var At=null,_t=zn._;_t;)if(lt.y<_t.y||lt.y===_t.y&<.x<=_t.x){if(!_t.L){At=_t.P;break}_t=_t.L}else{if(!_t.R){At=_t;break}_t=_t.R}zn.insert(At,lt),At||(Qa=lt)}}}}function Dn($){var J=$.circle;J&&(J.P||(Qa=J.N),zn.remove(J),Zn.push(J),dl(J),$.circle=null)}function ia($,J){var oe=$.b;if(oe)return!0;var fe,he,ve=$.a,De=J[0][0],Ee=J[1][0],$e=J[0][1],Fe=J[1][1],He=$.l,Ke=$.r,at=He.x,vt=He.y,Mt=Ke.x,ft=Ke.y,xt=(at+Mt)/2,lt=(vt+ft)/2;if(ft===vt){if(xt=Ee)return;if(at>Mt){if(ve){if(ve.y>=Fe)return}else ve={x:xt,y:$e};oe={x:xt,y:Fe}}else{if(ve){if(ve.y<$e)return}else ve={x:xt,y:Fe};oe={x:xt,y:$e}}}else if(he=lt-(fe=(at-Mt)/(ft-vt))*xt,fe<-1||fe>1)if(at>Mt){if(ve){if(ve.y>=Fe)return}else ve={x:($e-he)/fe,y:$e};oe={x:(Fe-he)/fe,y:Fe}}else{if(ve){if(ve.y<$e)return}else ve={x:(Fe-he)/fe,y:Fe};oe={x:($e-he)/fe,y:$e}}else if(vt=Ee)return}else ve={x:De,y:fe*De+he};oe={x:Ee,y:fe*Ee+he}}else{if(ve){if(ve.x0)){if(lt/=tn,tn<0){if(lt0){if(lt>nn)return;lt>Vt&&(Vt=lt)}if(lt=Ke-dt,tn||!(lt<0)){if(lt/=tn,tn<0){if(lt>nn)return;lt>Vt&&(Vt=lt)}else if(tn>0){if(lt0)){if(lt/=Tn,Tn<0){if(lt0){if(lt>nn)return;lt>Vt&&(Vt=lt)}if(lt=at-Ht,Tn||!(lt<0)){if(lt/=Tn,Tn<0){if(lt>nn)return;lt>Vt&&(Vt=lt)}else if(Tn>0){if(lt0&&(xt.a={x:dt+Vt*tn,y:Ht+Vt*Tn}),nn<1&&(xt.b={x:dt+nn*tn,y:Ht+nn*Tn}),xt}}}}}),ft=vt.length;ft--;)(!ia($e=vt[ft],Ee)||!Mt($e)||M($e.a.x-$e.b.x)je||M(Ke-Fe)>je)&&(Mt.splice(vt,0,new Ts((tn=at.site,Tn=lt,kn=M(He-At)je?{x:At,y:M($e-At)je?{x:M(Fe-Ht)je?{x:_t,y:M($e-_t)je?{x:M(Fe-dt)=He&<.x<=at&<.y>=Ke&<.y<=vt?[[He,vt],[at,vt],[at,Ke],[He,Ke]]:[]).point=$e[ft]}),Fe}function Ee($e){return $e.map(function(Fe,He){return{x:Math.round(fe(Fe,He)/je)*je,y:Math.round(he(Fe,He)/je)*je,i:He}})}return De.links=function($e){return Bc(Ee($e)).edges.filter(function(Fe){return Fe.l&&Fe.r}).map(function(Fe){return{source:$e[Fe.l.i],target:$e[Fe.r.i]}})},De.triangles=function($e){var Fe=[];return Bc(Ee($e)).cells.forEach(function(He,Ke){for(var at,vt,Mt,ft,xt=He.site,lt=He.edges.sort(mi),At=-1,_t=lt.length,dt=lt[_t-1].edge,Ht=dt.l===xt?dt.r:dt.l;++At<_t;)at=Ht,Ht=(dt=lt[At].edge).l===xt?dt.r:dt.l,Keve&&(he=J.slice(ve,he),Ee[De]?Ee[De]+=he:Ee[++De]=he),(oe=oe[0])===(fe=fe[0])?Ee[De]?Ee[De]+=fe:Ee[++De]=fe:(Ee[++De]=null,$e.push({i:De,x:ql(oe,fe)})),ve=ew.lastIndex;return velt&&(lt=He.x),He.y>At&&(At=He.y),Ke.push(He.x),at.push(He.y);else for(vt=0;vtlt&&(lt=Ht),Vt>At&&(At=Vt),Ke.push(Ht),at.push(Vt)}var nn=lt-ft,tn=At-xt;function Tn(Cn,Xn,lr,$r,rn,bn,Un,Gn){if(!isNaN(lr)&&!isNaN($r))if(Cn.leaf){var nr=Cn.x,Ar=Cn.y;if(nr!=null)if(M(nr-lr)+M(Ar-$r)<.01)kn(Cn,Xn,lr,$r,rn,bn,Un,Gn);else{var ha=Cn.point;Cn.x=Cn.y=Cn.point=null,kn(Cn,ha,nr,Ar,rn,bn,Un,Gn),kn(Cn,Xn,lr,$r,rn,bn,Un,Gn)}else Cn.x=lr,Cn.y=$r,Cn.point=Xn}else kn(Cn,Xn,lr,$r,rn,bn,Un,Gn)}function kn(Cn,Xn,lr,$r,rn,bn,Un,Gn){var nr=.5*(rn+Un),Ar=.5*(bn+Gn),ha=lr>=nr,Jr=$r>=Ar,Da=Jr<<1|ha;Cn.leaf=!1,ha?rn=nr:Un=nr,Jr?bn=Ar:Gn=Ar,Tn(Cn=Cn.nodes[Da]||(Cn.nodes[Da]={leaf:!0,nodes:[],point:null,x:null,y:null}),Xn,lr,$r,rn,bn,Un,Gn)}nn>tn?At=xt+nn:lt=ft+tn;var Rn={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(Cn){Tn(Rn,Cn,+_t(Cn,++vt),+dt(Cn,vt),ft,xt,lt,At)}};if(Rn.visit=function(Cn){Qf(Cn,Rn,ft,xt,lt,At)},Rn.find=function(Cn){return function(Xn,lr,$r,rn,bn,Un,Gn){var nr,Ar=1/0;return function ha(Jr,Da,ma,Ea,so){if(!(Da>Un||ma>Gn||Ea=Do)<<1|lr>=wo,Ul=vi+4;vi=0&&!(oe=c.interpolators[fe]($,J)););return oe}function Fg($,J){var oe,fe=[],he=[],ve=$.length,De=J.length,Ee=Math.min($.length,J.length);for(oe=0;oe=1)return 1;var J=$*$,oe=J*$;return 4*($<.5?oe:3*($-J)+oe-.75)}function cK($){return 1-Math.cos($*ct)}function dK($){return Math.pow(2,10*($-1))}function fK($){return 1-Math.sqrt(1-$*$)}function pK($){return $<.36363636363636365?7.5625*$*$:$<.7272727272727273?7.5625*($-=.5454545454545454)*$+.75:$<.9090909090909091?7.5625*($-=.8181818181818182)*$+.9375:7.5625*($-=.9545454545454546)*$+.984375}function VP($,J){return J-=$,function(oe){return Math.round($+J*oe)}}function GP($){var J,oe,fe,he=[$.a,$.b],ve=[$.c,$.d],De=XP(he),Ee=YP(he,ve),$e=XP(((J=ve)[0]+=(fe=-Ee)*(oe=he)[0],J[1]+=fe*oe[1],J))||0;he[0]*ve[1]=0?$.slice(0,oe):$,he=oe>=0?$.slice(oe+1):"in";return fe=oK.get(fe)||qP,he=iK.get(he)||q,J=he(fe.apply(null,d.call(arguments,1))),function(ve){return ve<=0?0:ve>=1?1:J(ve)}},c.interpolateHcl=function($,J){$=c.hcl($),J=c.hcl(J);var oe=$.h,fe=$.c,he=$.l,ve=J.h-oe,De=J.c-fe,Ee=J.l-he;return isNaN(De)&&(De=0,fe=isNaN(fe)?J.c:fe),isNaN(ve)?(ve=0,oe=isNaN(oe)?J.h:oe):ve>180?ve-=360:ve<-180&&(ve+=360),function($e){return gt(oe+ve*$e,fe+De*$e,he+Ee*$e)+""}},c.interpolateHsl=function($,J){$=c.hsl($),J=c.hsl(J);var oe=$.h,fe=$.s,he=$.l,ve=J.h-oe,De=J.s-fe,Ee=J.l-he;return isNaN(De)&&(De=0,fe=isNaN(fe)?J.s:fe),isNaN(ve)?(ve=0,oe=isNaN(oe)?J.h:oe):ve>180?ve-=360:ve<-180&&(ve+=360),function($e){return Qe(oe+ve*$e,fe+De*$e,he+Ee*$e)+""}},c.interpolateLab=function($,J){$=c.lab($),J=c.lab(J);var oe=$.l,fe=$.a,he=$.b,ve=J.l-oe,De=J.a-fe,Ee=J.b-he;return function($e){return mt(oe+ve*$e,fe+De*$e,he+Ee*$e)+""}},c.interpolateRound=VP,c.transform=function($){var J=p.createElementNS(c.ns.prefix.svg,"g");return(c.transform=function(oe){if(oe!=null){J.setAttribute("transform",oe);var fe=J.transform.baseVal.consolidate()}return new GP(fe?fe.matrix:hK)})($)},GP.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var hK={a:1,b:0,c:0,d:1,e:0,f:0};function Wc($){return $.length?$.pop()+",":""}function KP($,J){var oe=[],fe=[];return $=c.transform($),J=c.transform(J),function(he,ve,De,Ee){if(he[0]!==ve[0]||he[1]!==ve[1]){var $e=De.push("translate(",null,",",null,")");Ee.push({i:$e-4,x:ql(he[0],ve[0])},{i:$e-2,x:ql(he[1],ve[1])})}else(ve[0]||ve[1])&&De.push("translate("+ve+")")}($.translate,J.translate,oe,fe),function(he,ve,De,Ee){he!==ve?(he-ve>180?ve+=360:ve-he>180&&(he+=360),Ee.push({i:De.push(Wc(De)+"rotate(",null,")")-2,x:ql(he,ve)})):ve&&De.push(Wc(De)+"rotate("+ve+")")}($.rotate,J.rotate,oe,fe),function(he,ve,De,Ee){he!==ve?Ee.push({i:De.push(Wc(De)+"skewX(",null,")")-2,x:ql(he,ve)}):ve&&De.push(Wc(De)+"skewX("+ve+")")}($.skew,J.skew,oe,fe),function(he,ve,De,Ee){if(he[0]!==ve[0]||he[1]!==ve[1]){var $e=De.push(Wc(De)+"scale(",null,",",null,")");Ee.push({i:$e-4,x:ql(he[0],ve[0])},{i:$e-2,x:ql(he[1],ve[1])})}else ve[0]===1&&ve[1]===1||De.push(Wc(De)+"scale("+ve+")")}($.scale,J.scale,oe,fe),$=J=null,function(he){for(var ve,De=-1,Ee=fe.length;++De0?oe=dt:($.c=null,$.t=NaN,$=null,Ee.end({type:"end",alpha:oe=0})):dt>0&&(Ee.start({type:"start",alpha:oe=dt}),$=sn(De.tick)),De):oe},De.start=function(){var dt,Ht,Vt,nn=xt.length,tn=lt.length,Tn=$e[0],kn=$e[1];for(dt=0;dt=0;)oe.push(he[fe])}function fl($,J){for(var oe=[$],fe=[];($=oe.pop())!=null;)if(fe.push($),(ve=$.children)&&(he=ve.length))for(var he,ve,De=-1;++De=0;)De.push(He=Fe[$e]),He.parent=ve,He.depth=ve.depth+1;oe&&(ve.value=0),ve.children=Fe}else oe&&(ve.value=+oe.call(fe,ve,ve.depth)||0),delete ve.children;return fl(he,function(Ke){var at,vt;$&&(at=Ke.children)&&at.sort($),oe&&(vt=Ke.parent)&&(vt.value+=Ke.value)}),Ee}return fe.sort=function(he){return arguments.length?($=he,fe):$},fe.children=function(he){return arguments.length?(J=he,fe):J},fe.value=function(he){return arguments.length?(oe=he,fe):oe},fe.revalue=function(he){return oe&&(ep(he,function(ve){ve.children&&(ve.value=0)}),fl(he,function(ve){var De;ve.children||(ve.value=+oe.call(fe,ve,ve.depth)||0),(De=ve.parent)&&(De.value+=ve.value)})),he},fe},c.layout.partition=function(){var $=c.layout.hierarchy(),J=[1,1];function oe(ve,De,Ee,$e){var Fe=ve.children;if(ve.x=De,ve.y=ve.depth*$e,ve.dx=Ee,ve.dy=$e,Fe&&(He=Fe.length)){var He,Ke,at,vt=-1;for(Ee=ve.value?Ee/ve.value:0;++vtEe&&(Ee=fe),De.push(fe)}for(oe=0;oehe&&(fe=oe,he=J);return fe}function IK($){return $.reduce($K,0)}function $K($,J){return $+J[1]}function NK($,J){return eO($,Math.ceil(Math.log(J.length)/Math.LN2+1))}function eO($,J){for(var oe=-1,fe=+$[0],he=($[1]-fe)/J,ve=[];++oe<=J;)ve[oe]=he*oe+fe;return ve}function FK($){return[c.min($),c.max($)]}function jK($,J){return $.value-J.value}function rw($,J){var oe=$._pack_next;$._pack_next=J,J._pack_prev=$,J._pack_next=oe,oe._pack_prev=J}function tO($,J){$._pack_next=J,J._pack_prev=$}function nO($,J){var oe=J.x-$.x,fe=J.y-$.y,he=$.r+J.r;return .999*he*he>oe*oe+fe*fe}function rO($){if((J=$.children)&&($e=J.length)){var J,oe,fe,he,ve,De,Ee,$e,Fe=1/0,He=-1/0,Ke=1/0,at=-1/0;if(J.forEach(zK),(oe=J[0]).x=-oe.r,oe.y=0,_t(oe),$e>1&&((fe=J[1]).x=fe.r,fe.y=0,_t(fe),$e>2))for(oO(oe,fe,he=J[2]),_t(he),rw(oe,he),oe._pack_prev=he,rw(he,fe),fe=oe._pack_next,ve=3;ve<$e;ve++){oO(oe,fe,he=J[ve]);var vt=0,Mt=1,ft=1;for(De=fe._pack_next;De!==fe;De=De._pack_next,Mt++)if(nO(De,he)){vt=1;break}if(vt==1)for(Ee=oe._pack_prev;Ee!==De._pack_prev&&!nO(Ee,he);Ee=Ee._pack_prev,ft++);vt?(Mt0)for(De=-1;++De=Ke[0]&&$e<=Ke[1]&&((Ee=Fe[c.bisect(at,$e,1,Mt)-1]).y+=ft,Ee.push(ve[De]));return Fe}return he.value=function(ve){return arguments.length?(J=ve,he):J},he.range=function(ve){return arguments.length?(oe=Ut(ve),he):oe},he.bins=function(ve){return arguments.length?(fe=typeof ve=="number"?function(De){return eO(De,ve)}:Ut(ve),he):fe},he.frequency=function(ve){return arguments.length?($=!!ve,he):$},he},c.layout.pack=function(){var $,J=c.layout.hierarchy().sort(jK),oe=0,fe=[1,1];function he(ve,De){var Ee=J.call(this,ve,De),$e=Ee[0],Fe=fe[0],He=fe[1],Ke=$==null?Math.sqrt:typeof $=="function"?$:function(){return $};if($e.x=$e.y=0,fl($e,function(vt){vt.r=+Ke(vt.value)}),fl($e,rO),oe){var at=oe*($?1:Math.max(2*$e.r/Fe,2*$e.r/He))/2;fl($e,function(vt){vt.r+=at}),fl($e,rO),fl($e,function(vt){vt.r-=at})}return aO($e,Fe/2,He/2,$?1:1/Math.max(2*$e.r/Fe,2*$e.r/He)),Ee}return he.size=function(ve){return arguments.length?(fe=ve,he):fe},he.radius=function(ve){return arguments.length?($=ve==null||typeof ve=="function"?ve:+ve,he):$},he.padding=function(ve){return arguments.length?(oe=+ve,he):oe},Jf(he,J)},c.layout.tree=function(){var $=c.layout.hierarchy().sort(null).value(null),J=iO,oe=[1,1],fe=null;function he($e,Fe){var He=$.call(this,$e,Fe),Ke=He[0],at=function(_t){for(var dt,Ht={A:null,children:[_t]},Vt=[Ht];(dt=Vt.pop())!=null;)for(var nn,tn=dt.children,Tn=0,kn=tn.length;TnMt.x&&(Mt=_t),_t.depth>ft.depth&&(ft=_t)});var xt=J(vt,Mt)/2-vt.x,lt=oe[0]/(Mt.x+J(Mt,vt)/2+xt),At=oe[1]/(ft.depth||1);ep(Ke,function(_t){_t.x=(_t.x+xt)*lt,_t.y=_t.depth*At})}return He}function ve($e){var Fe=$e.children,He=$e.parent.children,Ke=$e.i?He[$e.i-1]:null;if(Fe.length){(function(vt){for(var Mt,ft=0,xt=0,lt=vt.children,At=lt.length;--At>=0;)(Mt=lt[At]).z+=ft,Mt.m+=ft,ft+=Mt.s+(xt+=Mt.c)})($e);var at=(Fe[0].z+Fe[Fe.length-1].z)/2;Ke?($e.z=Ke.z+J($e._,Ke._),$e.m=$e.z-at):$e.z=at}else Ke&&($e.z=Ke.z+J($e._,Ke._));$e.parent.A=function(vt,Mt,ft){if(Mt){for(var xt,lt=vt,At=vt,_t=Mt,dt=lt.parent.children[0],Ht=lt.m,Vt=At.m,nn=_t.m,tn=dt.m;_t=ow(_t),lt=aw(lt),_t&<)dt=aw(dt),(At=ow(At)).a=vt,(xt=_t.z+nn-lt.z-Ht+J(_t._,lt._))>0&&(WK(qK(_t,vt,ft),vt,xt),Ht+=xt,Vt+=xt),nn+=_t.m,Ht+=lt.m,tn+=dt.m,Vt+=At.m;_t&&!ow(At)&&(At.t=_t,At.m+=nn-Vt),lt&&!aw(dt)&&(dt.t=lt,dt.m+=Ht-tn,ft=vt)}return ft}($e,Ke,$e.parent.A||He[0])}function De($e){$e._.x=$e.z+$e.parent.m,$e.m+=$e.parent.m}function Ee($e){$e.x*=oe[0],$e.y=$e.depth*oe[1]}return he.separation=function($e){return arguments.length?(J=$e,he):J},he.size=function($e){return arguments.length?(fe=(oe=$e)==null?Ee:null,he):fe?null:oe},he.nodeSize=function($e){return arguments.length?(fe=(oe=$e)==null?null:Ee,he):fe?oe:null},Jf(he,$)},c.layout.cluster=function(){var $=c.layout.hierarchy().sort(null).value(null),J=iO,oe=[1,1],fe=!1;function he(ve,De){var Ee,$e=$.call(this,ve,De),Fe=$e[0],He=0;fl(Fe,function(ft){var xt=ft.children;xt&&xt.length?(ft.x=function(lt){return lt.reduce(function(At,_t){return At+_t.x},0)/lt.length}(xt),ft.y=function(lt){return 1+c.max(lt,function(At){return At.y})}(xt)):(ft.x=Ee?He+=J(ft,Ee):0,ft.y=0,Ee=ft)});var Ke=lO(Fe),at=sO(Fe),vt=Ke.x-J(Ke,at)/2,Mt=at.x+J(at,Ke)/2;return fl(Fe,fe?function(ft){ft.x=(ft.x-Fe.x)*oe[0],ft.y=(Fe.y-ft.y)*oe[1]}:function(ft){ft.x=(ft.x-vt)/(Mt-vt)*oe[0],ft.y=(1-(Fe.y?ft.y/Fe.y:1))*oe[1]}),$e}return he.separation=function(ve){return arguments.length?(J=ve,he):J},he.size=function(ve){return arguments.length?(fe=(oe=ve)==null,he):fe?null:oe},he.nodeSize=function(ve){return arguments.length?(fe=(oe=ve)!=null,he):fe?oe:null},Jf(he,$)},c.layout.treemap=function(){var $,J=c.layout.hierarchy(),oe=Math.round,fe=[1,1],he=null,ve=iw,De=!1,Ee="squarify",$e=.5*(1+Math.sqrt(5));function Fe(ft,xt){for(var lt,At,_t=-1,dt=ft.length;++_t0;)Ht.push(lt=Vt[_t-1]),Ht.area+=lt.area,Ee!=="squarify"||(At=at(Ht,tn))<=nn?(Vt.pop(),nn=At):(Ht.area-=Ht.pop().area,vt(Ht,tn,dt,!1),tn=Math.min(dt.dx,dt.dy),Ht.length=Ht.area=0,nn=1/0);Ht.length&&(vt(Ht,tn,dt,!0),Ht.length=Ht.area=0),xt.forEach(He)}}function Ke(ft){var xt=ft.children;if(xt&&xt.length){var lt,At=ve(ft),_t=xt.slice(),dt=[];for(Fe(_t,At.dx*At.dy/ft.value),dt.area=0;lt=_t.pop();)dt.push(lt),dt.area+=lt.area,lt.z!=null&&(vt(dt,lt.z?At.dx:At.dy,At,!_t.length),dt.length=dt.area=0);xt.forEach(Ke)}}function at(ft,xt){for(var lt,At=ft.area,_t=0,dt=1/0,Ht=-1,Vt=ft.length;++Ht_t&&(_t=lt));return xt*=xt,(At*=At)?Math.max(xt*_t*$e/At,At/(xt*dt*$e)):1/0}function vt(ft,xt,lt,At){var _t,dt=-1,Ht=ft.length,Vt=lt.x,nn=lt.y,tn=xt?oe(ft.area/xt):0;if(xt==lt.dx){for((At||tn>lt.dy)&&(tn=lt.dy);++dtlt.dx)&&(tn=lt.dx);++dt1);return $+J*fe*Math.sqrt(-2*Math.log(ve)/ve)}},logNormal:function(){var $=c.random.normal.apply(c,arguments);return function(){return Math.exp($())}},bates:function($){var J=c.random.irwinHall($);return function(){return J()/$}},irwinHall:function($){return function(){for(var J=0,oe=0;oe<$;oe++)J+=Math.random();return J}}},c.scale={};var HK={floor:q,ceil:q};function VK($,J,oe,fe){var he=[],ve=[],De=0,Ee=Math.min($.length,J.length)-1;for($[Ee]<$[0]&&($=$.slice().reverse(),J=J.slice().reverse());++De<=Ee;)he.push(oe($[De-1],$[De])),ve.push(fe(J[De-1],J[De]));return function($e){var Fe=c.bisect($,$e,1,Ee)-1;return ve[Fe](he[Fe]($e))}}function dO($,J,oe,fe){var he,ve;function De(){var $e=Math.min($.length,J.length)>2?VK:UK,Fe=fe?gK:mK;return he=$e($,J,Fe,oe),ve=$e(J,$,Fe,xu),Ee}function Ee($e){return he($e)}return Ee.invert=function($e){return ve($e)},Ee.domain=function($e){return arguments.length?($=$e.map(Number),De()):$},Ee.range=function($e){return arguments.length?(J=$e,De()):J},Ee.rangeRound=function($e){return Ee.range($e).interpolate(VP)},Ee.clamp=function($e){return arguments.length?(fe=$e,De()):fe},Ee.interpolate=function($e){return arguments.length?(oe=$e,De()):oe},Ee.ticks=function($e){return uw($,$e)},Ee.tickFormat=function($e,Fe){return d3_scale_linearTickFormat($,$e,Fe)},Ee.nice=function($e){return pO($,$e),De()},Ee.copy=function(){return dO($,J,oe,fe)},De()}function fO($,J){return c.rebind($,J,"range","rangeRound","interpolate","clamp")}function pO($,J){return lw($,cO(sw($,J)[2])),lw($,cO(sw($,J)[2])),$}function sw($,J){J==null&&(J=10);var oe=jg($),fe=oe[1]-oe[0],he=Math.pow(10,Math.floor(Math.log(fe/J)/Math.LN10)),ve=J/fe*he;return ve<=.15?he*=10:ve<=.35?he*=5:ve<=.75&&(he*=2),oe[0]=Math.ceil(oe[0]/he)*he,oe[1]=Math.floor(oe[1]/he)*he+.5*he,oe[2]=he,oe}function uw($,J){return c.range.apply(c,sw($,J))}function hO($,J,oe,fe){function he(Ee){return(oe?Math.log(Ee<0?0:Ee):-Math.log(Ee>0?0:-Ee))/Math.log(J)}function ve(Ee){return oe?Math.pow(J,Ee):-Math.pow(J,-Ee)}function De(Ee){return $(he(Ee))}return De.invert=function(Ee){return ve($.invert(Ee))},De.domain=function(Ee){return arguments.length?(oe=Ee[0]>=0,$.domain((fe=Ee.map(Number)).map(he)),De):fe},De.base=function(Ee){return arguments.length?(J=+Ee,$.domain(fe.map(he)),De):J},De.nice=function(){var Ee=lw(fe.map(he),oe?Math:GK);return $.domain(Ee),fe=Ee.map(ve),De},De.ticks=function(){var Ee=jg(fe),$e=[],Fe=Ee[0],He=Ee[1],Ke=Math.floor(he(Fe)),at=Math.ceil(he(He)),vt=J%1?2:J;if(isFinite(at-Ke)){if(oe){for(;Ke0;Mt--)$e.push(ve(Ke)*Mt);for(Ke=0;$e[Ke]He;at--);$e=$e.slice(Ke,at)}return $e},De.copy=function(){return hO($.copy(),J,oe,fe)},fO(De,$)}c.scale.linear=function(){return dO([0,1],[0,1],xu,!1)},c.scale.log=function(){return hO(c.scale.linear().domain([0,1]),10,!0,[1,10])};var GK={floor:function($){return-Math.ceil(-$)},ceil:function($){return-Math.floor(-$)}};function mO($,J,oe){var fe=Bg(J),he=Bg(1/J);function ve(De){return $(fe(De))}return ve.invert=function(De){return he($.invert(De))},ve.domain=function(De){return arguments.length?($.domain((oe=De.map(Number)).map(fe)),ve):oe},ve.ticks=function(De){return uw(oe,De)},ve.tickFormat=function(De,Ee){return d3_scale_linearTickFormat(oe,De,Ee)},ve.nice=function(De){return ve.domain(pO(oe,De))},ve.exponent=function(De){return arguments.length?(fe=Bg(J=De),he=Bg(1/J),$.domain(oe.map(fe)),ve):J},ve.copy=function(){return mO($.copy(),J,oe)},fO(ve,$)}function Bg($){return function(J){return J<0?-Math.pow(-J,$):Math.pow(J,$)}}function gO($,J){var oe,fe,he;function ve(Ee){return fe[((oe.get(Ee)||(J.t==="range"?oe.set(Ee,$.push(Ee)):NaN))-1)%fe.length]}function De(Ee,$e){return c.range($.length).map(function(Fe){return Ee+$e*Fe})}return ve.domain=function(Ee){if(!arguments.length)return $;$=[],oe=new D;for(var $e,Fe=-1,He=Ee.length;++Fe0?oe[ve-1]:$[0],veat?0:1;if(He=et)return $e(He,Mt)+(Fe?$e(Fe,1-Mt):"")+"Z";var ft,xt,lt,At,_t,dt,Ht,Vt,nn,tn,Tn,kn,Rn=0,Cn=0,Xn=[];if((At=(+De.apply(this,arguments)||0)/2)&&(lt=fe===Wg?Math.sqrt(Fe*Fe+He*He):+fe.apply(this,arguments),Mt||(Cn*=-1),He&&(Cn=kt(lt/He*Math.sin(At))),Fe&&(Rn=kt(lt/Fe*Math.sin(At)))),He){_t=He*Math.cos(Ke+Cn),dt=He*Math.sin(Ke+Cn),Ht=He*Math.cos(at-Cn),Vt=He*Math.sin(at-Cn);var lr=Math.abs(at-Ke-2*Cn)<=it?0:1;if(Cn&&qg(_t,dt,Ht,Vt)===Mt^lr){var $r=(Ke+at)/2;_t=He*Math.cos($r),dt=He*Math.sin($r),Ht=Vt=null}}else _t=dt=0;if(Fe){nn=Fe*Math.cos(at-Rn),tn=Fe*Math.sin(at-Rn),Tn=Fe*Math.cos(Ke+Rn),kn=Fe*Math.sin(Ke+Rn);var rn=Math.abs(Ke-at+2*Rn)<=it?0:1;if(Rn&&qg(nn,tn,Tn,kn)===1-Mt^rn){var bn=(Ke+at)/2;nn=Fe*Math.cos(bn),tn=Fe*Math.sin(bn),Tn=kn=null}}else nn=tn=0;if(vt>je&&(ft=Math.min(Math.abs(He-Fe)/2,+oe.apply(this,arguments)))>.001){xt=Fe0?0:1}function Ug($,J,oe,fe,he){var ve=$[0]-J[0],De=$[1]-J[1],Ee=(he?fe:-fe)/Math.sqrt(ve*ve+De*De),$e=Ee*De,Fe=-Ee*ve,He=$[0]+$e,Ke=$[1]+Fe,at=J[0]+$e,vt=J[1]+Fe,Mt=(He+at)/2,ft=(Ke+vt)/2,xt=at-He,lt=vt-Ke,At=xt*xt+lt*lt,_t=oe-fe,dt=He*vt-at*Ke,Ht=(lt<0?-1:1)*Math.sqrt(Math.max(0,_t*_t*At-dt*dt)),Vt=(dt*lt-xt*Ht)/At,nn=(-dt*xt-lt*Ht)/At,tn=(dt*lt+xt*Ht)/At,Tn=(-dt*xt+lt*Ht)/At,kn=Vt-Mt,Rn=nn-ft,Cn=tn-Mt,Xn=Tn-ft;return kn*kn+Rn*Rn>Cn*Cn+Xn*Xn&&(Vt=tn,nn=Tn),[[Vt-$e,nn-Fe],[Vt*oe/_t,nn*oe/_t]]}function TO(){return!0}function SO($){var J=Wn,oe=On,fe=TO,he=Yi,ve=he.key,De=.7;function Ee($e){var Fe,He=[],Ke=[],at=-1,vt=$e.length,Mt=Ut(J),ft=Ut(oe);function xt(){He.push("M",he($(Ke),De))}for(;++at1&&he.push("H",fe[0]),he.join("")},"step-before":dw,"step-after":fw,basis:CO,"basis-open":function($){if($.length<4)return Yi($);for(var J,oe=[],fe=-1,he=$.length,ve=[0],De=[0];++fe<3;)J=$[fe],ve.push(J[0]),De.push(J[1]);for(oe.push(gi(Ss,ve)+","+gi(Ss,De)),--fe;++fe9&&(ve=3*oe/Math.sqrt(ve),Ee[$e]=ve*fe,Ee[$e+1]=ve*he);for($e=-1;++$e<=Fe;)ve=(J[Math.min(Fe,$e+1)][0]-J[Math.max(0,$e-1)][0])/(6*(1+Ee[$e]*Ee[$e])),De.push([ve||0,Ee[$e]*ve||0]);return De}($))}});function Yi($){return $.length>1?$.join("L"):$+"Z"}function kO($){return $.join("L")+"Z"}function dw($){for(var J=0,oe=$.length,fe=$[0],he=[fe[0],",",fe[1]];++J1){Ee=J[1],ve=$[$e],$e++,fe+="C"+(he[0]+De[0])+","+(he[1]+De[1])+","+(ve[0]-Ee[0])+","+(ve[1]-Ee[1])+","+ve[0]+","+ve[1];for(var Fe=2;Feit)+",1 "+He}function $e(Fe,He,Ke,at){return"Q 0,0 "+at}return ve.radius=function(Fe){return arguments.length?(oe=Ut(Fe),ve):oe},ve.source=function(Fe){return arguments.length?($=Ut(Fe),ve):$},ve.target=function(Fe){return arguments.length?(J=Ut(Fe),ve):J},ve.startAngle=function(Fe){return arguments.length?(fe=Ut(Fe),ve):fe},ve.endAngle=function(Fe){return arguments.length?(he=Ut(Fe),ve):he},ve},c.svg.diagonal=function(){var $=DO,J=EO,oe=RO;function fe(he,ve){var De=$.call(this,he,ve),Ee=J.call(this,he,ve),$e=(De.y+Ee.y)/2,Fe=[De,{x:De.x,y:$e},{x:Ee.x,y:$e},Ee];return"M"+(Fe=Fe.map(oe))[0]+"C"+Fe[1]+" "+Fe[2]+" "+Fe[3]}return fe.source=function(he){return arguments.length?($=Ut(he),fe):$},fe.target=function(he){return arguments.length?(J=Ut(he),fe):J},fe.projection=function(he){return arguments.length?(oe=he,fe):oe},fe},c.svg.diagonal.radial=function(){var $=c.svg.diagonal(),J=RO,oe=$.projection;return $.projection=function(fe){return arguments.length?oe(function(he){return function(){var ve=he.apply(this,arguments),De=ve[0],Ee=ve[1]-ct;return[De*Math.cos(Ee),De*Math.sin(Ee)]}}(J=fe)):J},$},c.svg.symbol=function(){var $=aZ,J=rZ;function oe(fe,he){return(IO.get($.call(this,fe,he))||LO)(J.call(this,fe,he))}return oe.type=function(fe){return arguments.length?($=Ut(fe),oe):$},oe.size=function(fe){return arguments.length?(J=Ut(fe),oe):J},oe};var IO=c.map({circle:LO,cross:function($){var J=Math.sqrt($/5)/2;return"M"+-3*J+","+-J+"H"+-J+"V"+-3*J+"H"+J+"V"+-J+"H"+3*J+"V"+J+"H"+J+"V"+3*J+"H"+-J+"V"+J+"H"+-3*J+"Z"},diamond:function($){var J=Math.sqrt($/(2*$O)),oe=J*$O;return"M0,"+-J+"L"+oe+",0 0,"+J+" "+-oe+",0Z"},square:function($){var J=Math.sqrt($)/2;return"M"+-J+","+-J+"L"+J+","+-J+" "+J+","+J+" "+-J+","+J+"Z"},"triangle-down":function($){var J=Math.sqrt($/Vg),oe=J*Vg/2;return"M0,"+oe+"L"+J+","+-oe+" "+-J+","+-oe+"Z"},"triangle-up":function($){var J=Math.sqrt($/Vg),oe=J*Vg/2;return"M0,"+-oe+"L"+J+","+oe+" "+-J+","+oe+"Z"}});c.svg.symbolTypes=IO.keys();var Vg=Math.sqrt(3),$O=Math.tan(30*ht);se.transition=function($){for(var J,oe,fe=wu||++FO,he=vw($),ve=[],De=Yg||{time:Date.now(),ease:uK,delay:0,duration:250},Ee=-1,$e=this.length;++Ee<$e;){ve.push(J=[]);for(var Fe=this[Ee],He=-1,Ke=Fe.length;++He0;)Fe[--lt].call($,xt);if(ft>=1)return Ke.event&&Ke.event.end.call($,$.__data__,J),--He.count?delete He[fe]:delete $[oe],1}Ke||(ve=he.time,De=sn(function(Mt){var ft=Ke.delay;if(De.t=ft+ve,ft<=Mt)return at(Mt-ft);De.c=at},0,ve),Ke=He[fe]={tween:new D,time:ve,timer:De,delay:he.delay,duration:he.duration,ease:he.ease,index:J},he=null,++He.count)}Ta.call=se.call,Ta.empty=se.empty,Ta.node=se.node,Ta.size=se.size,c.transition=function($,J){return $&&$.transition?wu?$.transition(J):$:c.selection().transition($)},c.transition.prototype=Ta,Ta.select=function($){var J,oe,fe,he=this.id,ve=this.namespace,De=[];$=pe($);for(var Ee=-1,$e=this.length;++Ee<$e;){De.push(J=[]);for(var Fe=this[Ee],He=-1,Ke=Fe.length;++Herect,.s>rect").attr("width",ve[1]-ve[0])}function vt(ft){ft.select(".extent").attr("y",De[0]),ft.selectAll(".extent,.e>rect,.w>rect").attr("height",De[1]-De[0])}function Mt(){var ft,xt,lt=this,At=c.select(c.event.target),_t=oe.of(lt,arguments),dt=c.select(lt),Ht=At.datum(),Vt=!/^(n|s)$/.test(Ht)&&fe,nn=!/^(e|w)$/.test(Ht)&&he,tn=At.classed("extent"),Tn=Je(lt),kn=c.mouse(lt),Rn=c.select(g(lt)).on("keydown.brush",function(){c.event.keyCode==32&&(tn||(ft=null,kn[0]-=ve[1],kn[1]-=De[1],tn=2),ee())}).on("keyup.brush",function(){c.event.keyCode==32&&tn==2&&(kn[0]+=ve[1],kn[1]+=De[1],tn=0,ee())});if(c.event.changedTouches?Rn.on("touchmove.brush",lr).on("touchend.brush",rn):Rn.on("mousemove.brush",lr).on("mouseup.brush",rn),dt.interrupt().selectAll("*").interrupt(),tn)kn[0]=ve[0]-kn[0],kn[1]=De[0]-kn[1];else if(Ht){var Cn=+/w$/.test(Ht),Xn=+/^n/.test(Ht);xt=[ve[1-Cn]-kn[0],De[1-Xn]-kn[1]],kn[0]=ve[Cn],kn[1]=De[Xn]}else c.event.altKey&&(ft=kn.slice());function lr(){var bn=c.mouse(lt),Un=!1;xt&&(bn[0]+=xt[0],bn[1]+=xt[1]),tn||(c.event.altKey?(ft||(ft=[(ve[0]+ve[1])/2,(De[0]+De[1])/2]),kn[0]=ve[+(bn[0]1?L-1:0),H=1;H1?L-1:0),H=1;H1?L-1:0),H=1;H1?L-1:0),H=1;H"u"?a.g:globalThis,g=u(),b=c("String.prototype.slice"),v={},m=Object.getPrototypeOf;p&&d&&m&&s(g,function(x){if(typeof h[x]=="function"){var _=new h[x];if(Symbol.toStringTag in _){var w=m(_),S=d(w,Symbol.toStringTag);if(!S){var k=m(w);S=d(k,Symbol.toStringTag)}v[x]=S.get}}});var y=a(9187);i.exports=function(x){return!!y(x)&&(p&&Symbol.toStringTag in x?function(_){var w=!1;return s(v,function(S,k){if(!w)try{var C=S.call(_);C===k&&(w=C)}catch{}}),w}(x):b(f(x),8,-1))}},3961:function(i,o,a){var s=a(63489),u=a(56131),c=s.instance();function d(m){this.local=this.regionalOptions[m||""]||this.regionalOptions[""]}d.prototype=new s.baseCalendar,u(d.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(m,y){if(typeof m=="string"){var x=m.match(p);return x?x[0]:""}var _=this._validateYear(m),w=m.month(),S=""+this.toChineseMonth(_,w);return y&&S.length<2&&(S="0"+S),this.isIntercalaryMonth(_,w)&&(S+="i"),S},monthNames:function(m){if(typeof m=="string"){var y=m.match(h);return y?y[0]:""}var x=this._validateYear(m),_=m.month(),w=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(x,_)-1];return this.isIntercalaryMonth(x,_)&&(w="闰"+w),w},monthNamesShort:function(m){if(typeof m=="string"){var y=m.match(g);return y?y[0]:""}var x=this._validateYear(m),_=m.month(),w=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(x,_)-1];return this.isIntercalaryMonth(x,_)&&(w="闰"+w),w},parseMonth:function(m,y){m=this._validateYear(m);var x,_=parseInt(y);if(isNaN(_))y[0]==="闰"&&(x=!0,y=y.substring(1)),y[y.length-1]==="月"&&(y=y.substring(0,y.length-1)),_=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(y);else{var w=y[y.length-1];x=w==="i"||w==="I"}return this.toMonthIndex(m,_,x)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(m,y){if(m.year&&(m=m.year()),typeof m!="number"||m<1888||m>2111)throw y.replace(/\{0\}/,this.local.name);return m},toMonthIndex:function(m,y,x){var _=this.intercalaryMonth(m);if(x&&y!==_||y<1||y>12)throw s.local.invalidMonth.replace(/\{0\}/,this.local.name);return _?!x&&y<=_?y-1:y:y-1},toChineseMonth:function(m,y){m.year&&(y=(m=m.year()).month());var x=this.intercalaryMonth(m);if(y<0||y>(x?12:11))throw s.local.invalidMonth.replace(/\{0\}/,this.local.name);return x?y>13},isIntercalaryMonth:function(m,y){m.year&&(y=(m=m.year()).month());var x=this.intercalaryMonth(m);return!!x&&x===y},leapYear:function(m){return this.intercalaryMonth(m)!==0},weekOfYear:function(m,y,x){var _,w=this._validateYear(m,s.local.invalidyear),S=v[w-v[0]],k=S>>9&4095,C=S>>5&15,T=31&S;(_=c.newDate(k,C,T)).add(4-(_.dayOfWeek()||7),"d");var M=this.toJD(m,y,x)-_.toJD();return 1+Math.floor(M/7)},monthsInYear:function(m){return this.leapYear(m)?13:12},daysInMonth:function(m,y){m.year&&(y=m.month(),m=m.year()),m=this._validateYear(m);var x=b[m-b[0]];if(y>(x>>13?12:11))throw s.local.invalidMonth.replace(/\{0\}/,this.local.name);return x&1<<12-y?30:29},weekDay:function(m,y,x){return(this.dayOfWeek(m,y,x)||7)<6},toJD:function(m,y,x){var _=this._validate(m,S,x,s.local.invalidDate);m=this._validateYear(_.year()),y=_.month(),x=_.day();var w=this.isIntercalaryMonth(m,y),S=this.toChineseMonth(m,y),k=function(C,T,M,O,D){var P,E,I;if(typeof C=="object")E=C,P=T||{};else{var A;if(!(typeof C=="number"&&C>=1888&&C<=2111))throw new Error("Lunar year outside range 1888-2111");if(!(typeof T=="number"&&T>=1&&T<=12))throw new Error("Lunar month outside range 1 - 12");if(!(typeof M=="number"&&M>=1&&M<=30))throw new Error("Lunar day outside range 1 - 30");typeof O=="object"?(A=!1,P=O):(A=!!O,P={}),E={year:C,month:T,day:M,isIntercalary:A}}I=E.day-1;var F,j=b[E.year-b[0]],B=j>>13;F=B&&(E.month>B||E.isIntercalary)?E.month:E.month-1;for(var z=0;z>9&4095,(N>>5&15)-1,(31&N)+I);return P.year=R.getFullYear(),P.month=1+R.getMonth(),P.day=R.getDate(),P}(m,S,x,w);return c.toJD(k.year,k.month,k.day)},fromJD:function(m){var y=c.fromJD(m),x=function(w,S,k,C){var T,M;if(typeof w=="object")T=w,M=S||{};else{if(!(typeof w=="number"&&w>=1888&&w<=2111))throw new Error("Solar year outside range 1888-2111");if(!(typeof S=="number"&&S>=1&&S<=12))throw new Error("Solar month outside range 1 - 12");if(!(typeof k=="number"&&k>=1&&k<=31))throw new Error("Solar day outside range 1 - 31");T={year:w,month:S,day:k},M={}}var O=v[T.year-v[0]],D=T.year<<9|T.month<<5|T.day;M.year=D>=O?T.year:T.year-1,O=v[M.year-v[0]];var P,E=new Date(O>>9&4095,(O>>5&15)-1,31&O),I=new Date(T.year,T.month-1,T.day);P=Math.round((I-E)/864e5);var A,F=b[M.year-b[0]];for(A=0;A<13;A++){var j=F&1<<12-A?30:29;if(P>13;return!B||A=2&&g<=6},extraInfo:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate);return{century:d[Math.floor((g.year()-1)/100)+1]||""}},toJD:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate);return f=g.year()+(g.year()<0?1:0),p=g.month(),(h=g.day())+(p>1?16:0)+(p>2?32*(p-2):0)+400*(f-1)+this.jdEpoch-1},fromJD:function(f){f=Math.floor(f+.5)-Math.floor(this.jdEpoch)-1;var p=Math.floor(f/400)+1;f-=400*(p-1),f+=f>15?16:0;var h=Math.floor(f/32)+1,g=f-32*(h-1)+1;return this.newDate(p<=0?p-1:p,h,g)}});var d={20:"Fruitbat",21:"Anchovy"};s.calendars.discworld=c},37715:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var f=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear);return(d=f.year()+(f.year()<0?1:0))%4==3||d%4==-1},monthsInYear:function(d){return this._validate(d,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear),13},weekOfYear:function(d,f,p){var h=this.newDate(d,f,p);return h.add(-h.dayOfWeek(),"d"),Math.floor((h.dayOfYear()-1)/7)+1},daysInMonth:function(d,f){var p=this._validate(d,f,this.minDay,s.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===13&&this.leapYear(p.year())?1:0)},weekDay:function(d,f,p){return(this.dayOfWeek(d,f,p)||7)<6},toJD:function(d,f,p){var h=this._validate(d,f,p,s.local.invalidDate);return(d=h.year())<0&&d++,h.day()+30*(h.month()-1)+365*(d-1)+Math.floor(d/4)+this.jdEpoch-1},fromJD:function(d){var f=Math.floor(d)+.5-this.jdEpoch,p=Math.floor((f-Math.floor((f+366)/1461))/365)+1;p<=0&&p--,f=Math.floor(d)+.5-this.newDate(p,1,1).toJD();var h=Math.floor(f/30)+1,g=f-30*(h-1)+1;return this.newDate(p,h,g)}}),s.calendars.ethiopian=c},99384:function(i,o,a){var s=a(63489),u=a(56131);function c(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}function d(f,p){return f-p*Math.floor(f/p)}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return this._leapYear(p.year())},_leapYear:function(f){return d(7*(f=f<0?f+1:f)+1,19)<7},monthsInYear:function(f){return this._validate(f,this.minMonth,this.minDay,s.local.invalidYear),this._leapYear(f.year?f.year():f)?13:12},weekOfYear:function(f,p,h){var g=this.newDate(f,p,h);return g.add(-g.dayOfWeek(),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInYear:function(f){return f=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear).year(),this.toJD(f===-1?1:f+1,7,1)-this.toJD(f,7,1)},daysInMonth:function(f,p){return f.year&&(p=f.month(),f=f.year()),this._validate(f,p,this.minDay,s.local.invalidMonth),p===12&&this.leapYear(f)||p===8&&d(this.daysInYear(f),10)===5?30:p===9&&d(this.daysInYear(f),10)===3?29:this.daysPerMonth[p-1]},weekDay:function(f,p,h){return this.dayOfWeek(f,p,h)!==6},extraInfo:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate);return{yearType:(this.leapYear(g)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(g)%10-3]}},toJD:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate);f=g.year(),p=g.month(),h=g.day();var b=f<=0?f+1:f,v=this.jdEpoch+this._delay1(b)+this._delay2(b)+h+1;if(p<7){for(var m=7;m<=this.monthsInYear(f);m++)v+=this.daysInMonth(f,m);for(m=1;m=this.toJD(p===-1?1:p+1,7,1);)p++;for(var h=fthis.toJD(p,h,this.daysInMonth(p,h));)h++;var g=f-this.toJD(p,h,1)+1;return this.newDate(p,h,g)}}),s.calendars.hebrew=c},43805:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(d){return(11*this._validate(d,this.minMonth,this.minDay,s.local.invalidYear).year()+14)%30<11},weekOfYear:function(d,f,p){var h=this.newDate(d,f,p);return h.add(-h.dayOfWeek(),"d"),Math.floor((h.dayOfYear()-1)/7)+1},daysInYear:function(d){return this.leapYear(d)?355:354},daysInMonth:function(d,f){var p=this._validate(d,f,this.minDay,s.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(d,f,p){return this.dayOfWeek(d,f,p)!==5},toJD:function(d,f,p){var h=this._validate(d,f,p,s.local.invalidDate);return d=h.year(),f=h.month(),d=d<=0?d+1:d,(p=h.day())+Math.ceil(29.5*(f-1))+354*(d-1)+Math.floor((3+11*d)/30)+this.jdEpoch-1},fromJD:function(d){d=Math.floor(d)+.5;var f=Math.floor((30*(d-this.jdEpoch)+10646)/10631);f=f<=0?f-1:f;var p=Math.min(12,Math.ceil((d-29-this.toJD(f,1,1))/29.5)+1),h=d-this.toJD(f,p,1)+1;return this.newDate(f,p,h)}}),s.calendars.islamic=c},88874:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var f=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear);return(d=f.year()<0?f.year()+1:f.year())%4==0},weekOfYear:function(d,f,p){var h=this.newDate(d,f,p);return h.add(4-(h.dayOfWeek()||7),"d"),Math.floor((h.dayOfYear()-1)/7)+1},daysInMonth:function(d,f){var p=this._validate(d,f,this.minDay,s.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(d,f,p){return(this.dayOfWeek(d,f,p)||7)<6},toJD:function(d,f,p){var h=this._validate(d,f,p,s.local.invalidDate);return d=h.year(),f=h.month(),p=h.day(),d<0&&d++,f<=2&&(d--,f+=12),Math.floor(365.25*(d+4716))+Math.floor(30.6001*(f+1))+p-1524.5},fromJD:function(d){var f=Math.floor(d+.5)+1524,p=Math.floor((f-122.1)/365.25),h=Math.floor(365.25*p),g=Math.floor((f-h)/30.6001),b=g-Math.floor(g<14?1:13),v=p-Math.floor(b>2?4716:4715),m=f-h-Math.floor(30.6001*g);return v<=0&&v--,this.newDate(v,b,m)}}),s.calendars.julian=c},83290:function(i,o,a){var s=a(63489),u=a(56131);function c(p){this.local=this.regionalOptions[p||""]||this.regionalOptions[""]}function d(p,h){return p-h*Math.floor(p/h)}function f(p,h){return d(p-1,h)+1}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(p){return this._validate(p,this.minMonth,this.minDay,s.local.invalidYear),!1},formatYear:function(p){p=this._validate(p,this.minMonth,this.minDay,s.local.invalidYear).year();var h=Math.floor(p/400);return p%=400,p+=p<0?400:0,h+"."+Math.floor(p/20)+"."+p%20},forYear:function(p){if((p=p.split(".")).length<3)throw"Invalid Mayan year";for(var h=0,g=0;g19||g>0&&b<0)throw"Invalid Mayan year";h=20*h+b}return h},monthsInYear:function(p){return this._validate(p,this.minMonth,this.minDay,s.local.invalidYear),18},weekOfYear:function(p,h,g){return this._validate(p,h,g,s.local.invalidDate),0},daysInYear:function(p){return this._validate(p,this.minMonth,this.minDay,s.local.invalidYear),360},daysInMonth:function(p,h){return this._validate(p,h,this.minDay,s.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(p,h,g){return this._validate(p,h,g,s.local.invalidDate).day()},weekDay:function(p,h,g){return this._validate(p,h,g,s.local.invalidDate),!0},extraInfo:function(p,h,g){var b=this._validate(p,h,g,s.local.invalidDate).toJD(),v=this._toHaab(b),m=this._toTzolkin(b);return{haabMonthName:this.local.haabMonths[v[0]-1],haabMonth:v[0],haabDay:v[1],tzolkinDayName:this.local.tzolkinMonths[m[0]-1],tzolkinDay:m[0],tzolkinTrecena:m[1]}},_toHaab:function(p){var h=d(8+(p-=this.jdEpoch)+340,365);return[Math.floor(h/20)+1,d(h,20)]},_toTzolkin:function(p){return[f(20+(p-=this.jdEpoch),20),f(p+4,13)]},toJD:function(p,h,g){var b=this._validate(p,h,g,s.local.invalidDate);return b.day()+20*b.month()+360*b.year()+this.jdEpoch},fromJD:function(p){p=Math.floor(p)+.5-this.jdEpoch;var h=Math.floor(p/360);p%=360,p+=p<0?360:0;var g=Math.floor(p/20),b=p%20;return this.newDate(h,g,b)}}),s.calendars.mayan=c},29108:function(i,o,a){var s=a(63489),u=a(56131);function c(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar;var d=s.instance("gregorian");u(c.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear);return d.leapYear(p.year()+(p.year()<1?1:0)+1469)},weekOfYear:function(f,p,h){var g=this.newDate(f,p,h);return g.add(1-(g.dayOfWeek()||7),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInMonth:function(f,p){var h=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===12&&this.leapYear(h.year())?1:0)},weekDay:function(f,p,h){return(this.dayOfWeek(f,p,h)||7)<6},toJD:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidMonth);(f=g.year())<0&&f++;for(var b=g.day(),v=1;v=this.toJD(p+1,1,1);)p++;for(var h=f-Math.floor(this.toJD(p,1,1)+.5)+1,g=1;h>this.daysInMonth(p,g);)h-=this.daysInMonth(p,g),g++;return this.newDate(p,g,h)}}),s.calendars.nanakshahi=c},55422:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(d){return this.daysInYear(d)!==this.daysPerYear},weekOfYear:function(d,f,p){var h=this.newDate(d,f,p);return h.add(-h.dayOfWeek(),"d"),Math.floor((h.dayOfYear()-1)/7)+1},daysInYear:function(d){if(d=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear).year(),this.NEPALI_CALENDAR_DATA[d]===void 0)return this.daysPerYear;for(var f=0,p=this.minMonth;p<=12;p++)f+=this.NEPALI_CALENDAR_DATA[d][p];return f},daysInMonth:function(d,f){return d.year&&(f=d.month(),d=d.year()),this._validate(d,f,this.minDay,s.local.invalidMonth),this.NEPALI_CALENDAR_DATA[d]===void 0?this.daysPerMonth[f-1]:this.NEPALI_CALENDAR_DATA[d][f]},weekDay:function(d,f,p){return this.dayOfWeek(d,f,p)!==6},toJD:function(d,f,p){var h=this._validate(d,f,p,s.local.invalidDate);d=h.year(),f=h.month(),p=h.day();var g=s.instance(),b=0,v=f,m=d;this._createMissingCalendarData(d);var y=d-(v>9||v===9&&p>=this.NEPALI_CALENDAR_DATA[m][0]?56:57);for(f!==9&&(b=p,v--);v!==9;)v<=0&&(v=12,m--),b+=this.NEPALI_CALENDAR_DATA[m][v],v--;return f===9?(b+=p-this.NEPALI_CALENDAR_DATA[m][0])<0&&(b+=g.daysInYear(y)):b+=this.NEPALI_CALENDAR_DATA[m][9]-this.NEPALI_CALENDAR_DATA[m][0],g.newDate(y,1,1).add(b,"d").toJD()},fromJD:function(d){var f=s.instance().fromJD(d),p=f.year(),h=f.dayOfYear(),g=p+56;this._createMissingCalendarData(g);for(var b=9,v=this.NEPALI_CALENDAR_DATA[g][0],m=this.NEPALI_CALENDAR_DATA[g][b]-v+1;h>m;)++b>12&&(b=1,g++),m+=this.NEPALI_CALENDAR_DATA[g][b];var y=this.NEPALI_CALENDAR_DATA[g][b]-(m-h);return this.newDate(g,b,y)},_createMissingCalendarData:function(d){var f=this.daysPerMonth.slice(0);f.unshift(17);for(var p=d-1;p0?474:473))%2820+474+38)%2816<682},weekOfYear:function(f,p,h){var g=this.newDate(f,p,h);return g.add(-(g.dayOfWeek()+1)%7,"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInMonth:function(f,p){var h=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===12&&this.leapYear(h.year())?1:0)},weekDay:function(f,p,h){return this.dayOfWeek(f,p,h)!==5},toJD:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate);f=g.year(),p=g.month(),h=g.day();var b=f-(f>=0?474:473),v=474+d(b,2820);return h+(p<=7?31*(p-1):30*(p-1)+6)+Math.floor((682*v-110)/2816)+365*(v-1)+1029983*Math.floor(b/2820)+this.jdEpoch-1},fromJD:function(f){var p=(f=Math.floor(f)+.5)-this.toJD(475,1,1),h=Math.floor(p/1029983),g=d(p,1029983),b=2820;if(g!==1029982){var v=Math.floor(g/366),m=d(g,366);b=Math.floor((2134*v+2816*m+2815)/1028522)+v+1}var y=b+2820*h+474;y=y<=0?y-1:y;var x=f-this.toJD(y,1,1)+1,_=x<=186?Math.ceil(x/31):Math.ceil((x-6)/30),w=f-this.toJD(y,_,1)+1;return this.newDate(y,_,w)}}),s.calendars.persian=c,s.calendars.jalali=c},31320:function(i,o,a){var s=a(63489),u=a(56131),c=s.instance();function d(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}d.prototype=new s.baseCalendar,u(d.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(p.year()),c.leapYear(f)},weekOfYear:function(f,p,h){var g=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(g.year()),c.weekOfYear(f,g.month(),g.day())},daysInMonth:function(f,p){var h=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===2&&this.leapYear(h.year())?1:0)},weekDay:function(f,p,h){return(this.dayOfWeek(f,p,h)||7)<6},toJD:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate);return f=this._t2gYear(g.year()),c.toJD(f,g.month(),g.day())},fromJD:function(f){var p=c.fromJD(f),h=this._g2tYear(p.year());return this.newDate(h,p.month(),p.day())},_t2gYear:function(f){return f+this.yearsOffset+(f>=-this.yearsOffset&&f<=-1?1:0)},_g2tYear:function(f){return f-this.yearsOffset-(f>=1&&f<=this.yearsOffset?1:0)}}),s.calendars.taiwan=d},51367:function(i,o,a){var s=a(63489),u=a(56131),c=s.instance();function d(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}d.prototype=new s.baseCalendar,u(d.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(p.year()),c.leapYear(f)},weekOfYear:function(f,p,h){var g=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(g.year()),c.weekOfYear(f,g.month(),g.day())},daysInMonth:function(f,p){var h=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===2&&this.leapYear(h.year())?1:0)},weekDay:function(f,p,h){return(this.dayOfWeek(f,p,h)||7)<6},toJD:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate);return f=this._t2gYear(g.year()),c.toJD(f,g.month(),g.day())},fromJD:function(f){var p=c.fromJD(f),h=this._g2tYear(p.year());return this.newDate(h,p.month(),p.day())},_t2gYear:function(f){return f-this.yearsOffset-(f>=1&&f<=this.yearsOffset?1:0)},_g2tYear:function(f){return f+this.yearsOffset+(f>=-this.yearsOffset&&f<=-1?1:0)}}),s.calendars.thai=d},21457:function(i,o,a){var s=a(63489),u=a(56131);function c(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return this.daysInYear(p.year())===355},weekOfYear:function(f,p,h){var g=this.newDate(f,p,h);return g.add(-g.dayOfWeek(),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInYear:function(f){for(var p=0,h=1;h<=12;h++)p+=this.daysInMonth(f,h);return p},daysInMonth:function(f,p){for(var h=this._validate(f,p,this.minDay,s.local.invalidMonth).toJD()-24e5+.5,g=0,b=0;bh)return d[g]-d[g-1];g++}return 30},weekDay:function(f,p,h){return this.dayOfWeek(f,p,h)!==5},toJD:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate),b=12*(g.year()-1)+g.month()-15292;return g.day()+d[b-1]-1+24e5-.5},fromJD:function(f){for(var p=f-24e5+.5,h=0,g=0;gp);g++)h++;var b=h+15292,v=Math.floor((b-1)/12),m=v+1,y=b-12*v,x=p-d[h-1]+1;return this.newDate(m,y,x)},isValid:function(f,p,h){var g=s.baseCalendar.prototype.isValid.apply(this,arguments);return g&&(g=(f=f.year!=null?f.year:f)>=1276&&f<=1500),g},_validate:function(f,p,h,g){var b=s.baseCalendar.prototype._validate.apply(this,arguments);if(b.year<1276||b.year>1500)throw g.replace(/\{0\}/,this.local.name);return b}}),s.calendars.ummalqura=c;var d=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},63489:function(i,o,a){var s=a(56131);function u(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function c(g,b,v,m){if(this._calendar=g,this._year=b,this._month=v,this._day=m,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(h.local.invalidDate||h.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function d(g,b){return"000000".substring(0,b-(g=""+g).length)+g}function f(){this.shortYearCutoff="+10"}function p(g){this.local=this.regionalOptions[g]||this.regionalOptions[""]}s(u.prototype,{instance:function(g,b){g=(g||"gregorian").toLowerCase(),b=b||"";var v=this._localCals[g+"-"+b];if(!v&&this.calendars[g]&&(v=new this.calendars[g](b),this._localCals[g+"-"+b]=v),!v)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,g);return v},newDate:function(g,b,v,m,y){return(m=(g!=null&&g.year?g.calendar():typeof m=="string"?this.instance(m,y):m)||this.instance()).newDate(g,b,v)},substituteDigits:function(g){return function(b){return(b+"").replace(/[0-9]/g,function(v){return g[v]})}},substituteChineseDigits:function(g,b){return function(v){for(var m="",y=0;v>0;){var x=v%10;m=(x===0?"":g[x]+b[y])+m,y++,v=Math.floor(v/10)}return m.indexOf(g[1]+b[1])===0&&(m=m.substr(1)),m||g[0]}}}),s(c.prototype,{newDate:function(g,b,v){return this._calendar.newDate(g??this,b,v)},year:function(g){return arguments.length===0?this._year:this.set(g,"y")},month:function(g){return arguments.length===0?this._month:this.set(g,"m")},day:function(g){return arguments.length===0?this._day:this.set(g,"d")},date:function(g,b,v){if(!this._calendar.isValid(g,b,v))throw(h.local.invalidDate||h.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=g,this._month=b,this._day=v,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(g,b){return this._calendar.add(this,g,b)},set:function(g,b){return this._calendar.set(this,g,b)},compareTo:function(g){if(this._calendar.name!==g._calendar.name)throw(h.local.differentCalendars||h.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,g._calendar.local.name);var b=this._year!==g._year?this._year-g._year:this._month!==g._month?this.monthOfYear()-g.monthOfYear():this._day-g._day;return b===0?0:b<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(g){return this._calendar.fromJD(g)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(g){return this._calendar.fromJSDate(g)},toString:function(){return(this.year()<0?"-":"")+d(Math.abs(this.year()),4)+"-"+d(this.month(),2)+"-"+d(this.day(),2)}}),s(f.prototype,{_validateLevel:0,newDate:function(g,b,v){return g==null?this.today():(g.year&&(this._validate(g,b,v,h.local.invalidDate||h.regionalOptions[""].invalidDate),v=g.day(),b=g.month(),g=g.year()),new c(this,g,b,v))},today:function(){return this.fromJSDate(new Date)},epoch:function(g){return this._validate(g,this.minMonth,this.minDay,h.local.invalidYear||h.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(g){var b=this._validate(g,this.minMonth,this.minDay,h.local.invalidYear||h.regionalOptions[""].invalidYear);return(b.year()<0?"-":"")+d(Math.abs(b.year()),4)},monthsInYear:function(g){return this._validate(g,this.minMonth,this.minDay,h.local.invalidYear||h.regionalOptions[""].invalidYear),12},monthOfYear:function(g,b){var v=this._validate(g,b,this.minDay,h.local.invalidMonth||h.regionalOptions[""].invalidMonth);return(v.month()+this.monthsInYear(v)-this.firstMonth)%this.monthsInYear(v)+this.minMonth},fromMonthOfYear:function(g,b){var v=(b+this.firstMonth-2*this.minMonth)%this.monthsInYear(g)+this.minMonth;return this._validate(g,v,this.minDay,h.local.invalidMonth||h.regionalOptions[""].invalidMonth),v},daysInYear:function(g){var b=this._validate(g,this.minMonth,this.minDay,h.local.invalidYear||h.regionalOptions[""].invalidYear);return this.leapYear(b)?366:365},dayOfYear:function(g,b,v){var m=this._validate(g,b,v,h.local.invalidDate||h.regionalOptions[""].invalidDate);return m.toJD()-this.newDate(m.year(),this.fromMonthOfYear(m.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(g,b,v){var m=this._validate(g,b,v,h.local.invalidDate||h.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(m))+2)%this.daysInWeek()},extraInfo:function(g,b,v){return this._validate(g,b,v,h.local.invalidDate||h.regionalOptions[""].invalidDate),{}},add:function(g,b,v){return this._validate(g,this.minMonth,this.minDay,h.local.invalidDate||h.regionalOptions[""].invalidDate),this._correctAdd(g,this._add(g,b,v),b,v)},_add:function(g,b,v){if(this._validateLevel++,v==="d"||v==="w"){var m=g.toJD()+b*(v==="w"?this.daysInWeek():1),y=g.calendar().fromJD(m);return this._validateLevel--,[y.year(),y.month(),y.day()]}try{var x=g.year()+(v==="y"?b:0),_=g.monthOfYear()+(v==="m"?b:0);y=g.day(),v==="y"?(g.month()!==this.fromMonthOfYear(x,_)&&(_=this.newDate(x,g.month(),this.minDay).monthOfYear()),_=Math.min(_,this.monthsInYear(x)),y=Math.min(y,this.daysInMonth(x,this.fromMonthOfYear(x,_)))):v==="m"&&(function(S){for(;_k-1+S.minMonth;)x++,_-=k,k=S.monthsInYear(x)}(this),y=Math.min(y,this.daysInMonth(x,this.fromMonthOfYear(x,_))));var w=[x,this.fromMonthOfYear(x,_),y];return this._validateLevel--,w}catch(S){throw this._validateLevel--,S}},_correctAdd:function(g,b,v,m){if(!(this.hasYearZero||m!=="y"&&m!=="m"||b[0]!==0&&g.year()>0==b[0]>0)){var y={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[m],x=v<0?-1:1;b=this._add(g,v*y[0]+x*y[1],y[2])}return g.date(b[0],b[1],b[2])},set:function(g,b,v){this._validate(g,this.minMonth,this.minDay,h.local.invalidDate||h.regionalOptions[""].invalidDate);var m=v==="y"?b:g.year(),y=v==="m"?b:g.month(),x=v==="d"?b:g.day();return v!=="y"&&v!=="m"||(x=Math.min(x,this.daysInMonth(m,y))),g.date(m,y,x)},isValid:function(g,b,v){this._validateLevel++;var m=this.hasYearZero||g!==0;if(m){var y=this.newDate(g,b,this.minDay);m=b>=this.minMonth&&b-this.minMonth=this.minDay&&v-this.minDay13.5?13:1),k=y-(S>2.5?4716:4715);return k<=0&&k--,this.newDate(k,S,w)},toJSDate:function(g,b,v){var m=this._validate(g,b,v,h.local.invalidDate||h.regionalOptions[""].invalidDate),y=new Date(m.year(),m.month()-1,m.day());return y.setHours(0),y.setMinutes(0),y.setSeconds(0),y.setMilliseconds(0),y.setHours(y.getHours()>12?y.getHours()+2:0),y},fromJSDate:function(g){return this.newDate(g.getFullYear(),g.getMonth()+1,g.getDate())}});var h=i.exports=new u;h.cdate=c,h.baseCalendar=f,h.calendars.gregorian=p},94338:function(i,o,a){var s=a(56131),u=a(63489);s(u.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),u.local=u.regionalOptions[""],s(u.cdate.prototype,{formatDate:function(c,d){return typeof c!="string"&&(d=c,c=""),this._calendar.formatDate(c||"",this,d)}}),s(u.baseCalendar.prototype,{UNIX_EPOCH:u.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:u.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(c,d,f){if(typeof c!="string"&&(f=d,d=c,c=""),!d)return"";if(d.calendar()!==this)throw u.local.invalidFormat||u.regionalOptions[""].invalidFormat;c=c||this.local.dateFormat;for(var p,h,g,b=(f=f||{}).dayNamesShort||this.local.dayNamesShort,v=f.dayNames||this.local.dayNames,m=f.monthNumbers||this.local.monthNumbers,y=f.monthNamesShort||this.local.monthNamesShort,x=f.monthNames||this.local.monthNames,_=(f.calculateWeek||this.local.calculateWeek,function(E,I){for(var A=1;P+A1}),w=function(E,I,A,F){var j=""+I;if(_(E,F))for(;j.length1},O=function(N,R){var q=M(N,R),Y=[2,3,q?4:2,q?4:2,10,11,20]["oyYJ@!".indexOf(N)+1],L=new RegExp("^-?\\d{1,"+Y+"}"),W=d.substring(F).match(L);if(!W)throw(u.local.missingNumberAt||u.regionalOptions[""].missingNumberAt).replace(/\{0\}/,F);return F+=W[0].length,parseInt(W[0],10)},D=this,P=function(){if(typeof v=="function"){M("m");var N=v.call(D,d.substring(F));return F+=N.length,N}return O("m")},E=function(N,R,q,Y){for(var L=M(N,Y)?q:R,W=0;W-1){w=1,S=k;for(var z=this.daysInMonth(_,w);S>z;z=this.daysInMonth(_,w))w++,S-=z}return x>-1?this.fromJD(x):this.newDate(_,w,S)},determineDate:function(c,d,f,p,h){f&&typeof f!="object"&&(h=p,p=f,f=null),typeof p!="string"&&(h=p,p="");var g=this;return d=d?d.newDate():null,c==null?d:typeof c=="string"?function(b){try{return g.parseDate(p,b,h)}catch{}for(var v=((b=b.toLowerCase()).match(/^c/)&&f?f.newDate():null)||g.today(),m=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,y=m.exec(b);y;)v.add(parseInt(y[1],10),y[2]||"d"),y=m.exec(b);return v}(c):typeof c=="number"?isNaN(c)||c===1/0||c===-1/0?d:g.today().add(c,"d"):g.newDate(c)}})},69862:function(){},40964:function(){},72077:function(i,o,a){var s=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],u=typeof globalThis>"u"?a.g:globalThis;i.exports=function(){for(var c=[],d=0;d"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function b(_){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(S){return S.__proto__||Object.getPrototypeOf(S)},b(_)}var v=["AfterExport","AfterPlot","Animated","AnimatingFrame","AnimationInterrupted","AutoSize","BeforeExport","BeforeHover","ButtonClicked","Click","ClickAnnotation","Deselect","DoubleClick","Framework","Hover","LegendClick","LegendDoubleClick","Relayout","Relayouting","Restyle","Redraw","Selected","Selecting","SliderChange","SliderEnd","SliderStart","SunburstClick","Transitioning","TransitionInterrupted","Unhover","WebGlContextLost"],m=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick"],y=typeof window<"u";function x(_){var w=function(S){c(C,S);var k=f(C);function C(T){var M;return a(this,C),M=k.call(this,T),M.p=Promise.resolve(),M.resizeHandler=null,M.handlers={},M.syncWindowResize=M.syncWindowResize.bind(h(M)),M.syncEventHandlers=M.syncEventHandlers.bind(h(M)),M.attachUpdateEvents=M.attachUpdateEvents.bind(h(M)),M.getRef=M.getRef.bind(h(M)),M.handleUpdate=M.handleUpdate.bind(h(M)),M.figureCallback=M.figureCallback.bind(h(M)),M.updatePlotly=M.updatePlotly.bind(h(M)),M}return u(C,[{key:"updatePlotly",value:function(M,O,D){var P=this;this.p=this.p.then(function(){if(!P.unmounting){if(!P.el)throw new Error("Missing element reference");return _.react(P.el,{data:P.props.data,layout:P.props.layout,config:P.props.config,frames:P.props.frames})}}).then(function(){P.unmounting||(P.syncWindowResize(M),P.syncEventHandlers(),P.figureCallback(O),D&&P.attachUpdateEvents())}).catch(function(E){P.props.onError&&P.props.onError(E)})}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(M){this.unmounting=!1;var O=M.frames&&M.frames.length?M.frames.length:0,D=this.props.frames&&this.props.frames.length?this.props.frames.length:0,P=!(M.layout===this.props.layout&&M.data===this.props.data&&M.config===this.props.config&&D===O),E=M.revision!==void 0,I=M.revision!==this.props.revision;!P&&(!E||E&&!I)||this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&y&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),_.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var M=this;!this.el||!this.el.removeListener||m.forEach(function(O){M.el.on(O,M.handleUpdate)})}},{key:"removeUpdateEvents",value:function(){var M=this;!this.el||!this.el.removeListener||m.forEach(function(O){M.el.removeListener(O,M.handleUpdate)})}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(M){if(typeof M=="function"){var O=this.el,D=O.data,P=O.layout,E=this.el._transitionData?this.el._transitionData._frames:null,I={data:D,layout:P,frames:E};M(I,this.el)}}},{key:"syncWindowResize",value:function(M){var O=this;y&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return _.Plots.resize(O.el)},window.addEventListener("resize",this.resizeHandler),M&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(M){this.el=M,this.props.debug&&y&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var M=this;v.forEach(function(O){var D=M.props["on"+O],P=M.handlers[O],E=!!P;D&&!E?M.addEventHandler(O,D):!D&&E?M.removeEventHandler(O):D&&E&&D!==P&&(M.removeEventHandler(O),M.addEventHandler(O,D))})}},{key:"addEventHandler",value:function(M,O){this.handlers[M]=O,this.el.on(this.getPlotlyEventName(M),this.handlers[M])}},{key:"removeEventHandler",value:function(M){this.el.removeListener(this.getPlotlyEventName(M),this.handlers[M]),delete this.handlers[M]}},{key:"getPlotlyEventName",value:function(M){return"plotly_"+M.toLowerCase()}},{key:"render",value:function(){return n.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),C}(n.Component);return w.propTypes={data:r.default.arrayOf(r.default.object),config:r.default.object,layout:r.default.object,frames:r.default.arrayOf(r.default.object),revision:r.default.number,onInitialized:r.default.func,onPurge:r.default.func,onError:r.default.func,onUpdate:r.default.func,debug:r.default.bool,style:r.default.object,className:r.default.string,useResizeHandler:r.default.bool,divId:r.default.string},v.forEach(function(S){w.propTypes["on"+S]=r.default.func}),w.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},w}})(CB);const lpe=dr(CB),MB=lpe(ipe),Rd={data:{barpolar:[{marker:{line:{color:"rgb(17,17,17)",width:.5},pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"barpolar"}],bar:[{error_x:{color:"#f2f5fa"},error_y:{color:"#f2f5fa"},marker:{line:{color:"rgb(17,17,17)",width:.5},pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"bar"}],carpet:[{aaxis:{endlinecolor:"#A2B1C6",gridcolor:"#506784",linecolor:"#506784",minorgridcolor:"#506784",startlinecolor:"#A2B1C6"},baxis:{endlinecolor:"#A2B1C6",gridcolor:"#506784",linecolor:"#506784",minorgridcolor:"#506784",startlinecolor:"#A2B1C6"},type:"carpet"}],choropleth:[{colorbar:{outlinewidth:0,ticks:""},type:"choropleth"}],contourcarpet:[{colorbar:{outlinewidth:0,ticks:""},type:"contourcarpet"}],contour:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"contour"}],heatmapgl:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"heatmapgl"}],heatmap:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"heatmap"}],histogram2dcontour:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"histogram2dcontour"}],histogram2d:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"histogram2d"}],histogram:[{marker:{pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"histogram"}],mesh3d:[{colorbar:{outlinewidth:0,ticks:""},type:"mesh3d"}],parcoords:[{line:{colorbar:{outlinewidth:0,ticks:""}},type:"parcoords"}],pie:[{automargin:!0,type:"pie"}],scatter3d:[{line:{colorbar:{outlinewidth:0,ticks:""}},marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatter3d"}],scattercarpet:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scattercarpet"}],scattergeo:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scattergeo"}],scattergl:[{marker:{line:{color:"#283442"}},type:"scattergl"}],scattermapbox:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scattermapbox"}],scatterpolargl:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatterpolargl"}],scatterpolar:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatterpolar"}],scatter:[{marker:{line:{color:"#283442"}},type:"scatter"}],scatterternary:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatterternary"}],surface:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"surface"}],table:[{cells:{fill:{color:"#506784"},line:{color:"rgb(17,17,17)"}},header:{fill:{color:"#2a3f5f"},line:{color:"rgb(17,17,17)"}},type:"table"}]},layout:{annotationdefaults:{arrowcolor:"#f2f5fa",arrowhead:0,arrowwidth:1},autotypenumbers:"strict",coloraxis:{colorbar:{outlinewidth:0,ticks:""}},colorscale:{diverging:[[0,"#8e0152"],[.1,"#c51b7d"],[.2,"#de77ae"],[.3,"#f1b6da"],[.4,"#fde0ef"],[.5,"#f7f7f7"],[.6,"#e6f5d0"],[.7,"#b8e186"],[.8,"#7fbc41"],[.9,"#4d9221"],[1,"#276419"]],sequential:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],sequentialminus:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]},colorway:["#636efa","#EF553B","#00cc96","#ab63fa","#FFA15A","#19d3f3","#FF6692","#B6E880","#FF97FF","#FECB52"],font:{color:"#f2f5fa"},geo:{bgcolor:"rgb(17,17,17)",lakecolor:"rgb(17,17,17)",landcolor:"rgb(17,17,17)",showlakes:!0,showland:!0,subunitcolor:"#506784"},hoverlabel:{align:"left"},hovermode:"closest",mapbox:{style:"dark"},paper_bgcolor:"rgb(17,17,17)",plot_bgcolor:"rgb(17,17,17)",polar:{angularaxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""},bgcolor:"rgb(17,17,17)",radialaxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""}},scene:{xaxis:{backgroundcolor:"rgb(17,17,17)",gridcolor:"#506784",gridwidth:2,linecolor:"#506784",showbackground:!0,ticks:"",zerolinecolor:"#C8D4E3"},yaxis:{backgroundcolor:"rgb(17,17,17)",gridcolor:"#506784",gridwidth:2,linecolor:"#506784",showbackground:!0,ticks:"",zerolinecolor:"#C8D4E3"},zaxis:{backgroundcolor:"rgb(17,17,17)",gridcolor:"#506784",gridwidth:2,linecolor:"#506784",showbackground:!0,ticks:"",zerolinecolor:"#C8D4E3"}},shapedefaults:{line:{color:"#f2f5fa"}},sliderdefaults:{bgcolor:"#C8D4E3",bordercolor:"rgb(17,17,17)",borderwidth:1,tickwidth:0},ternary:{aaxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""},baxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""},bgcolor:"rgb(17,17,17)",caxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""}},title:{x:.05},updatemenudefaults:{bgcolor:"#506784",borderwidth:0,showactive:!1},xaxis:{automargin:!0,gridcolor:"#283442",linecolor:"#506784",ticks:"",title:{standoff:15},zerolinecolor:"#283442",zerolinewidth:2},yaxis:{automargin:!0,gridcolor:"#283442",linecolor:"#506784",ticks:"",title:{standoff:15},zerolinecolor:"#283442",zerolinewidth:2}}},spe=Ke.createContext(null),upe=()=>ge.useContext(spe),Db=e=>{var g,b,v,m;const t=upe(),n=hg(),r=e.data.some(({type:y})=>y==="histogram"),l=(t==null?void 0:t.isXaxisAsCategorical)&&!r,i=t==null?void 0:t.OnClickedPointComponent,o=t==null?void 0:t.OnHoveredPlotComponent,[a,s]=ge.useState(null),[u,c]=ge.useState(!1),d=i&&a?{type:"line",x0:a.points[0].x,x1:a.points[0].x,y0:0,y1:1,xref:"x",yref:"paper",line:{color:n==="dark"?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.5)",width:3,dash:"solid"}}:void 0,f=[...e.layout.shapes??[],...d?[d]:[]],p=n==="dark"?{template:{...Rd,layout:{...Rd.layout,colorway:((b=(g=e.layout.template)==null?void 0:g.layout)==null?void 0:b.colorway)||((v=Rd.layout)==null?void 0:v.colorway)}}}:void 0,h=l?{type:"category",categoryorder:"category ascending"}:void 0;return Te.jsx(Te.Fragment,{children:Te.jsxs(ka,{position:"relative",children:[Te.jsx(MB,{onHover:()=>!u&&c(!0),onClick:i?y=>s(y):void 0,data:e.data,layout:{...e.layout,...p,title:void 0,shapes:f,xaxis:{...(m=e.layout)==null?void 0:m.xaxis,...h}},config:{responsive:!0},style:{width:"100%",minHeight:300+100*(1+e.widgetSize/2),maxHeight:400}}),a&&i&&Te.jsx(i,{event:a}),u&&o&&Te.jsx(o,{})]})})};var PB={},OB={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(OB);var Hn=OB.exports,n_={exports:{}},O7;function jr(){return O7||(O7=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r{let t;const n=new Set,r=(s,u)=>{const c=typeof s=="function"?s(t):s;if(!Object.is(c,t)){const d=t;t=u??typeof c!="object"?c:Object.assign({},t,c),n.forEach(f=>f(t,d))}},l=()=>t,a={setState:r,getState:l,subscribe:s=>(n.add(s),()=>n.delete(s)),destroy:()=>{(ppe?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,l,a),a},EB=e=>e?I7(e):I7;var RB={exports:{}},LB={},IB={exports:{}},$B={};/** +`)):H=z.stylize("[Circular]","special")),C(W)){if(L&&Y.match(/^\d+$/))return H;(W=JSON.stringify(""+Y)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(W=W.slice(1,-1),W=z.stylize(W,"name")):(W=W.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),W=z.stylize(W,"string"))}return W+": "+H}function x(z){return Array.isArray(z)}function _(z){return typeof z=="boolean"}function w(z){return z===null}function S(z){return typeof z=="number"}function k(z){return typeof z=="string"}function C(z){return z===void 0}function T(z){return M(z)&&E(z)==="[object RegExp]"}function M(z){return typeof z=="object"&&z!==null}function O(z){return M(z)&&E(z)==="[object Date]"}function D(z){return M(z)&&(E(z)==="[object Error]"||z instanceof Error)}function P(z){return typeof z=="function"}function E(z){return Object.prototype.toString.call(z)}function I(z){return z<10?"0"+z.toString(10):z.toString(10)}o.debuglog=function(z){if(z=z.toUpperCase(),!d[z])if(f.test(z)){var N=s.pid;d[z]=function(){var R=o.format.apply(o,arguments);console.error("%s %d: %s",z,N,R)}}else d[z]=function(){};return d[z]},o.inspect=h,h.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},h.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},o.types=a(4936),o.isArray=x,o.isBoolean=_,o.isNull=w,o.isNullOrUndefined=function(z){return z==null},o.isNumber=S,o.isString=k,o.isSymbol=function(z){return typeof z=="symbol"},o.isUndefined=C,o.isRegExp=T,o.types.isRegExp=T,o.isObject=M,o.isDate=O,o.types.isDate=O,o.isError=D,o.types.isNativeError=D,o.isFunction=P,o.isPrimitive=function(z){return z===null||typeof z=="boolean"||typeof z=="number"||typeof z=="string"||typeof z=="symbol"||z===void 0},o.isBuffer=a(45920);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function F(z,N){return Object.prototype.hasOwnProperty.call(z,N)}o.log=function(){var z,N;console.log("%s - %s",(N=[I((z=new Date).getHours()),I(z.getMinutes()),I(z.getSeconds())].join(":"),[z.getDate(),A[z.getMonth()],N].join(" ")),o.format.apply(o,arguments))},o.inherits=a(42018),o._extend=function(z,N){if(!N||!M(N))return z;for(var R=Object.keys(N),q=R.length;q--;)z[R[q]]=N[R[q]];return z};var j=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function B(z,N){if(!z){var R=new Error("Promise was rejected with a falsy value");R.reason=z,z=R}return N(z)}o.promisify=function(z){if(typeof z!="function")throw new TypeError('The "original" argument must be of type Function');if(j&&z[j]){var N;if(typeof(N=z[j])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(N,j,{value:N,enumerable:!1,writable:!1,configurable:!0}),N}function N(){for(var R,q,Y=new Promise(function(H,G){R=H,q=G}),L=[],W=0;W"u"?a.g:globalThis,g=u(),b=c("String.prototype.slice"),v={},m=Object.getPrototypeOf;p&&d&&m&&s(g,function(x){if(typeof h[x]=="function"){var _=new h[x];if(Symbol.toStringTag in _){var w=m(_),S=d(w,Symbol.toStringTag);if(!S){var k=m(w);S=d(k,Symbol.toStringTag)}v[x]=S.get}}});var y=a(9187);i.exports=function(x){return!!y(x)&&(p&&Symbol.toStringTag in x?function(_){var w=!1;return s(v,function(S,k){if(!w)try{var C=S.call(_);C===k&&(w=C)}catch{}}),w}(x):b(f(x),8,-1))}},3961:function(i,o,a){var s=a(63489),u=a(56131),c=s.instance();function d(m){this.local=this.regionalOptions[m||""]||this.regionalOptions[""]}d.prototype=new s.baseCalendar,u(d.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(m,y){if(typeof m=="string"){var x=m.match(p);return x?x[0]:""}var _=this._validateYear(m),w=m.month(),S=""+this.toChineseMonth(_,w);return y&&S.length<2&&(S="0"+S),this.isIntercalaryMonth(_,w)&&(S+="i"),S},monthNames:function(m){if(typeof m=="string"){var y=m.match(h);return y?y[0]:""}var x=this._validateYear(m),_=m.month(),w=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(x,_)-1];return this.isIntercalaryMonth(x,_)&&(w="闰"+w),w},monthNamesShort:function(m){if(typeof m=="string"){var y=m.match(g);return y?y[0]:""}var x=this._validateYear(m),_=m.month(),w=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(x,_)-1];return this.isIntercalaryMonth(x,_)&&(w="闰"+w),w},parseMonth:function(m,y){m=this._validateYear(m);var x,_=parseInt(y);if(isNaN(_))y[0]==="闰"&&(x=!0,y=y.substring(1)),y[y.length-1]==="月"&&(y=y.substring(0,y.length-1)),_=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(y);else{var w=y[y.length-1];x=w==="i"||w==="I"}return this.toMonthIndex(m,_,x)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(m,y){if(m.year&&(m=m.year()),typeof m!="number"||m<1888||m>2111)throw y.replace(/\{0\}/,this.local.name);return m},toMonthIndex:function(m,y,x){var _=this.intercalaryMonth(m);if(x&&y!==_||y<1||y>12)throw s.local.invalidMonth.replace(/\{0\}/,this.local.name);return _?!x&&y<=_?y-1:y:y-1},toChineseMonth:function(m,y){m.year&&(y=(m=m.year()).month());var x=this.intercalaryMonth(m);if(y<0||y>(x?12:11))throw s.local.invalidMonth.replace(/\{0\}/,this.local.name);return x?y>13},isIntercalaryMonth:function(m,y){m.year&&(y=(m=m.year()).month());var x=this.intercalaryMonth(m);return!!x&&x===y},leapYear:function(m){return this.intercalaryMonth(m)!==0},weekOfYear:function(m,y,x){var _,w=this._validateYear(m,s.local.invalidyear),S=v[w-v[0]],k=S>>9&4095,C=S>>5&15,T=31&S;(_=c.newDate(k,C,T)).add(4-(_.dayOfWeek()||7),"d");var M=this.toJD(m,y,x)-_.toJD();return 1+Math.floor(M/7)},monthsInYear:function(m){return this.leapYear(m)?13:12},daysInMonth:function(m,y){m.year&&(y=m.month(),m=m.year()),m=this._validateYear(m);var x=b[m-b[0]];if(y>(x>>13?12:11))throw s.local.invalidMonth.replace(/\{0\}/,this.local.name);return x&1<<12-y?30:29},weekDay:function(m,y,x){return(this.dayOfWeek(m,y,x)||7)<6},toJD:function(m,y,x){var _=this._validate(m,S,x,s.local.invalidDate);m=this._validateYear(_.year()),y=_.month(),x=_.day();var w=this.isIntercalaryMonth(m,y),S=this.toChineseMonth(m,y),k=function(C,T,M,O,D){var P,E,I;if(typeof C=="object")E=C,P=T||{};else{var A;if(!(typeof C=="number"&&C>=1888&&C<=2111))throw new Error("Lunar year outside range 1888-2111");if(!(typeof T=="number"&&T>=1&&T<=12))throw new Error("Lunar month outside range 1 - 12");if(!(typeof M=="number"&&M>=1&&M<=30))throw new Error("Lunar day outside range 1 - 30");typeof O=="object"?(A=!1,P=O):(A=!!O,P={}),E={year:C,month:T,day:M,isIntercalary:A}}I=E.day-1;var F,j=b[E.year-b[0]],B=j>>13;F=B&&(E.month>B||E.isIntercalary)?E.month:E.month-1;for(var z=0;z>9&4095,(N>>5&15)-1,(31&N)+I);return P.year=R.getFullYear(),P.month=1+R.getMonth(),P.day=R.getDate(),P}(m,S,x,w);return c.toJD(k.year,k.month,k.day)},fromJD:function(m){var y=c.fromJD(m),x=function(w,S,k,C){var T,M;if(typeof w=="object")T=w,M=S||{};else{if(!(typeof w=="number"&&w>=1888&&w<=2111))throw new Error("Solar year outside range 1888-2111");if(!(typeof S=="number"&&S>=1&&S<=12))throw new Error("Solar month outside range 1 - 12");if(!(typeof k=="number"&&k>=1&&k<=31))throw new Error("Solar day outside range 1 - 31");T={year:w,month:S,day:k},M={}}var O=v[T.year-v[0]],D=T.year<<9|T.month<<5|T.day;M.year=D>=O?T.year:T.year-1,O=v[M.year-v[0]];var P,E=new Date(O>>9&4095,(O>>5&15)-1,31&O),I=new Date(T.year,T.month-1,T.day);P=Math.round((I-E)/864e5);var A,F=b[M.year-b[0]];for(A=0;A<13;A++){var j=F&1<<12-A?30:29;if(P>13;return!B||A=2&&g<=6},extraInfo:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate);return{century:d[Math.floor((g.year()-1)/100)+1]||""}},toJD:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate);return f=g.year()+(g.year()<0?1:0),p=g.month(),(h=g.day())+(p>1?16:0)+(p>2?32*(p-2):0)+400*(f-1)+this.jdEpoch-1},fromJD:function(f){f=Math.floor(f+.5)-Math.floor(this.jdEpoch)-1;var p=Math.floor(f/400)+1;f-=400*(p-1),f+=f>15?16:0;var h=Math.floor(f/32)+1,g=f-32*(h-1)+1;return this.newDate(p<=0?p-1:p,h,g)}});var d={20:"Fruitbat",21:"Anchovy"};s.calendars.discworld=c},37715:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var f=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear);return(d=f.year()+(f.year()<0?1:0))%4==3||d%4==-1},monthsInYear:function(d){return this._validate(d,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear),13},weekOfYear:function(d,f,p){var h=this.newDate(d,f,p);return h.add(-h.dayOfWeek(),"d"),Math.floor((h.dayOfYear()-1)/7)+1},daysInMonth:function(d,f){var p=this._validate(d,f,this.minDay,s.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===13&&this.leapYear(p.year())?1:0)},weekDay:function(d,f,p){return(this.dayOfWeek(d,f,p)||7)<6},toJD:function(d,f,p){var h=this._validate(d,f,p,s.local.invalidDate);return(d=h.year())<0&&d++,h.day()+30*(h.month()-1)+365*(d-1)+Math.floor(d/4)+this.jdEpoch-1},fromJD:function(d){var f=Math.floor(d)+.5-this.jdEpoch,p=Math.floor((f-Math.floor((f+366)/1461))/365)+1;p<=0&&p--,f=Math.floor(d)+.5-this.newDate(p,1,1).toJD();var h=Math.floor(f/30)+1,g=f-30*(h-1)+1;return this.newDate(p,h,g)}}),s.calendars.ethiopian=c},99384:function(i,o,a){var s=a(63489),u=a(56131);function c(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}function d(f,p){return f-p*Math.floor(f/p)}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return this._leapYear(p.year())},_leapYear:function(f){return d(7*(f=f<0?f+1:f)+1,19)<7},monthsInYear:function(f){return this._validate(f,this.minMonth,this.minDay,s.local.invalidYear),this._leapYear(f.year?f.year():f)?13:12},weekOfYear:function(f,p,h){var g=this.newDate(f,p,h);return g.add(-g.dayOfWeek(),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInYear:function(f){return f=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear).year(),this.toJD(f===-1?1:f+1,7,1)-this.toJD(f,7,1)},daysInMonth:function(f,p){return f.year&&(p=f.month(),f=f.year()),this._validate(f,p,this.minDay,s.local.invalidMonth),p===12&&this.leapYear(f)||p===8&&d(this.daysInYear(f),10)===5?30:p===9&&d(this.daysInYear(f),10)===3?29:this.daysPerMonth[p-1]},weekDay:function(f,p,h){return this.dayOfWeek(f,p,h)!==6},extraInfo:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate);return{yearType:(this.leapYear(g)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(g)%10-3]}},toJD:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate);f=g.year(),p=g.month(),h=g.day();var b=f<=0?f+1:f,v=this.jdEpoch+this._delay1(b)+this._delay2(b)+h+1;if(p<7){for(var m=7;m<=this.monthsInYear(f);m++)v+=this.daysInMonth(f,m);for(m=1;m=this.toJD(p===-1?1:p+1,7,1);)p++;for(var h=fthis.toJD(p,h,this.daysInMonth(p,h));)h++;var g=f-this.toJD(p,h,1)+1;return this.newDate(p,h,g)}}),s.calendars.hebrew=c},43805:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(d){return(11*this._validate(d,this.minMonth,this.minDay,s.local.invalidYear).year()+14)%30<11},weekOfYear:function(d,f,p){var h=this.newDate(d,f,p);return h.add(-h.dayOfWeek(),"d"),Math.floor((h.dayOfYear()-1)/7)+1},daysInYear:function(d){return this.leapYear(d)?355:354},daysInMonth:function(d,f){var p=this._validate(d,f,this.minDay,s.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(d,f,p){return this.dayOfWeek(d,f,p)!==5},toJD:function(d,f,p){var h=this._validate(d,f,p,s.local.invalidDate);return d=h.year(),f=h.month(),d=d<=0?d+1:d,(p=h.day())+Math.ceil(29.5*(f-1))+354*(d-1)+Math.floor((3+11*d)/30)+this.jdEpoch-1},fromJD:function(d){d=Math.floor(d)+.5;var f=Math.floor((30*(d-this.jdEpoch)+10646)/10631);f=f<=0?f-1:f;var p=Math.min(12,Math.ceil((d-29-this.toJD(f,1,1))/29.5)+1),h=d-this.toJD(f,p,1)+1;return this.newDate(f,p,h)}}),s.calendars.islamic=c},88874:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var f=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear);return(d=f.year()<0?f.year()+1:f.year())%4==0},weekOfYear:function(d,f,p){var h=this.newDate(d,f,p);return h.add(4-(h.dayOfWeek()||7),"d"),Math.floor((h.dayOfYear()-1)/7)+1},daysInMonth:function(d,f){var p=this._validate(d,f,this.minDay,s.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(d,f,p){return(this.dayOfWeek(d,f,p)||7)<6},toJD:function(d,f,p){var h=this._validate(d,f,p,s.local.invalidDate);return d=h.year(),f=h.month(),p=h.day(),d<0&&d++,f<=2&&(d--,f+=12),Math.floor(365.25*(d+4716))+Math.floor(30.6001*(f+1))+p-1524.5},fromJD:function(d){var f=Math.floor(d+.5)+1524,p=Math.floor((f-122.1)/365.25),h=Math.floor(365.25*p),g=Math.floor((f-h)/30.6001),b=g-Math.floor(g<14?1:13),v=p-Math.floor(b>2?4716:4715),m=f-h-Math.floor(30.6001*g);return v<=0&&v--,this.newDate(v,b,m)}}),s.calendars.julian=c},83290:function(i,o,a){var s=a(63489),u=a(56131);function c(p){this.local=this.regionalOptions[p||""]||this.regionalOptions[""]}function d(p,h){return p-h*Math.floor(p/h)}function f(p,h){return d(p-1,h)+1}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(p){return this._validate(p,this.minMonth,this.minDay,s.local.invalidYear),!1},formatYear:function(p){p=this._validate(p,this.minMonth,this.minDay,s.local.invalidYear).year();var h=Math.floor(p/400);return p%=400,p+=p<0?400:0,h+"."+Math.floor(p/20)+"."+p%20},forYear:function(p){if((p=p.split(".")).length<3)throw"Invalid Mayan year";for(var h=0,g=0;g19||g>0&&b<0)throw"Invalid Mayan year";h=20*h+b}return h},monthsInYear:function(p){return this._validate(p,this.minMonth,this.minDay,s.local.invalidYear),18},weekOfYear:function(p,h,g){return this._validate(p,h,g,s.local.invalidDate),0},daysInYear:function(p){return this._validate(p,this.minMonth,this.minDay,s.local.invalidYear),360},daysInMonth:function(p,h){return this._validate(p,h,this.minDay,s.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(p,h,g){return this._validate(p,h,g,s.local.invalidDate).day()},weekDay:function(p,h,g){return this._validate(p,h,g,s.local.invalidDate),!0},extraInfo:function(p,h,g){var b=this._validate(p,h,g,s.local.invalidDate).toJD(),v=this._toHaab(b),m=this._toTzolkin(b);return{haabMonthName:this.local.haabMonths[v[0]-1],haabMonth:v[0],haabDay:v[1],tzolkinDayName:this.local.tzolkinMonths[m[0]-1],tzolkinDay:m[0],tzolkinTrecena:m[1]}},_toHaab:function(p){var h=d(8+(p-=this.jdEpoch)+340,365);return[Math.floor(h/20)+1,d(h,20)]},_toTzolkin:function(p){return[f(20+(p-=this.jdEpoch),20),f(p+4,13)]},toJD:function(p,h,g){var b=this._validate(p,h,g,s.local.invalidDate);return b.day()+20*b.month()+360*b.year()+this.jdEpoch},fromJD:function(p){p=Math.floor(p)+.5-this.jdEpoch;var h=Math.floor(p/360);p%=360,p+=p<0?360:0;var g=Math.floor(p/20),b=p%20;return this.newDate(h,g,b)}}),s.calendars.mayan=c},29108:function(i,o,a){var s=a(63489),u=a(56131);function c(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar;var d=s.instance("gregorian");u(c.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear);return d.leapYear(p.year()+(p.year()<1?1:0)+1469)},weekOfYear:function(f,p,h){var g=this.newDate(f,p,h);return g.add(1-(g.dayOfWeek()||7),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInMonth:function(f,p){var h=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===12&&this.leapYear(h.year())?1:0)},weekDay:function(f,p,h){return(this.dayOfWeek(f,p,h)||7)<6},toJD:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidMonth);(f=g.year())<0&&f++;for(var b=g.day(),v=1;v=this.toJD(p+1,1,1);)p++;for(var h=f-Math.floor(this.toJD(p,1,1)+.5)+1,g=1;h>this.daysInMonth(p,g);)h-=this.daysInMonth(p,g),g++;return this.newDate(p,g,h)}}),s.calendars.nanakshahi=c},55422:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(d){return this.daysInYear(d)!==this.daysPerYear},weekOfYear:function(d,f,p){var h=this.newDate(d,f,p);return h.add(-h.dayOfWeek(),"d"),Math.floor((h.dayOfYear()-1)/7)+1},daysInYear:function(d){if(d=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear).year(),this.NEPALI_CALENDAR_DATA[d]===void 0)return this.daysPerYear;for(var f=0,p=this.minMonth;p<=12;p++)f+=this.NEPALI_CALENDAR_DATA[d][p];return f},daysInMonth:function(d,f){return d.year&&(f=d.month(),d=d.year()),this._validate(d,f,this.minDay,s.local.invalidMonth),this.NEPALI_CALENDAR_DATA[d]===void 0?this.daysPerMonth[f-1]:this.NEPALI_CALENDAR_DATA[d][f]},weekDay:function(d,f,p){return this.dayOfWeek(d,f,p)!==6},toJD:function(d,f,p){var h=this._validate(d,f,p,s.local.invalidDate);d=h.year(),f=h.month(),p=h.day();var g=s.instance(),b=0,v=f,m=d;this._createMissingCalendarData(d);var y=d-(v>9||v===9&&p>=this.NEPALI_CALENDAR_DATA[m][0]?56:57);for(f!==9&&(b=p,v--);v!==9;)v<=0&&(v=12,m--),b+=this.NEPALI_CALENDAR_DATA[m][v],v--;return f===9?(b+=p-this.NEPALI_CALENDAR_DATA[m][0])<0&&(b+=g.daysInYear(y)):b+=this.NEPALI_CALENDAR_DATA[m][9]-this.NEPALI_CALENDAR_DATA[m][0],g.newDate(y,1,1).add(b,"d").toJD()},fromJD:function(d){var f=s.instance().fromJD(d),p=f.year(),h=f.dayOfYear(),g=p+56;this._createMissingCalendarData(g);for(var b=9,v=this.NEPALI_CALENDAR_DATA[g][0],m=this.NEPALI_CALENDAR_DATA[g][b]-v+1;h>m;)++b>12&&(b=1,g++),m+=this.NEPALI_CALENDAR_DATA[g][b];var y=this.NEPALI_CALENDAR_DATA[g][b]-(m-h);return this.newDate(g,b,y)},_createMissingCalendarData:function(d){var f=this.daysPerMonth.slice(0);f.unshift(17);for(var p=d-1;p0?474:473))%2820+474+38)%2816<682},weekOfYear:function(f,p,h){var g=this.newDate(f,p,h);return g.add(-(g.dayOfWeek()+1)%7,"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInMonth:function(f,p){var h=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===12&&this.leapYear(h.year())?1:0)},weekDay:function(f,p,h){return this.dayOfWeek(f,p,h)!==5},toJD:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate);f=g.year(),p=g.month(),h=g.day();var b=f-(f>=0?474:473),v=474+d(b,2820);return h+(p<=7?31*(p-1):30*(p-1)+6)+Math.floor((682*v-110)/2816)+365*(v-1)+1029983*Math.floor(b/2820)+this.jdEpoch-1},fromJD:function(f){var p=(f=Math.floor(f)+.5)-this.toJD(475,1,1),h=Math.floor(p/1029983),g=d(p,1029983),b=2820;if(g!==1029982){var v=Math.floor(g/366),m=d(g,366);b=Math.floor((2134*v+2816*m+2815)/1028522)+v+1}var y=b+2820*h+474;y=y<=0?y-1:y;var x=f-this.toJD(y,1,1)+1,_=x<=186?Math.ceil(x/31):Math.ceil((x-6)/30),w=f-this.toJD(y,_,1)+1;return this.newDate(y,_,w)}}),s.calendars.persian=c,s.calendars.jalali=c},31320:function(i,o,a){var s=a(63489),u=a(56131),c=s.instance();function d(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}d.prototype=new s.baseCalendar,u(d.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(p.year()),c.leapYear(f)},weekOfYear:function(f,p,h){var g=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(g.year()),c.weekOfYear(f,g.month(),g.day())},daysInMonth:function(f,p){var h=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===2&&this.leapYear(h.year())?1:0)},weekDay:function(f,p,h){return(this.dayOfWeek(f,p,h)||7)<6},toJD:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate);return f=this._t2gYear(g.year()),c.toJD(f,g.month(),g.day())},fromJD:function(f){var p=c.fromJD(f),h=this._g2tYear(p.year());return this.newDate(h,p.month(),p.day())},_t2gYear:function(f){return f+this.yearsOffset+(f>=-this.yearsOffset&&f<=-1?1:0)},_g2tYear:function(f){return f-this.yearsOffset-(f>=1&&f<=this.yearsOffset?1:0)}}),s.calendars.taiwan=d},51367:function(i,o,a){var s=a(63489),u=a(56131),c=s.instance();function d(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}d.prototype=new s.baseCalendar,u(d.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(p.year()),c.leapYear(f)},weekOfYear:function(f,p,h){var g=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(g.year()),c.weekOfYear(f,g.month(),g.day())},daysInMonth:function(f,p){var h=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===2&&this.leapYear(h.year())?1:0)},weekDay:function(f,p,h){return(this.dayOfWeek(f,p,h)||7)<6},toJD:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate);return f=this._t2gYear(g.year()),c.toJD(f,g.month(),g.day())},fromJD:function(f){var p=c.fromJD(f),h=this._g2tYear(p.year());return this.newDate(h,p.month(),p.day())},_t2gYear:function(f){return f-this.yearsOffset-(f>=1&&f<=this.yearsOffset?1:0)},_g2tYear:function(f){return f+this.yearsOffset+(f>=-this.yearsOffset&&f<=-1?1:0)}}),s.calendars.thai=d},21457:function(i,o,a){var s=a(63489),u=a(56131);function c(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return this.daysInYear(p.year())===355},weekOfYear:function(f,p,h){var g=this.newDate(f,p,h);return g.add(-g.dayOfWeek(),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInYear:function(f){for(var p=0,h=1;h<=12;h++)p+=this.daysInMonth(f,h);return p},daysInMonth:function(f,p){for(var h=this._validate(f,p,this.minDay,s.local.invalidMonth).toJD()-24e5+.5,g=0,b=0;bh)return d[g]-d[g-1];g++}return 30},weekDay:function(f,p,h){return this.dayOfWeek(f,p,h)!==5},toJD:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate),b=12*(g.year()-1)+g.month()-15292;return g.day()+d[b-1]-1+24e5-.5},fromJD:function(f){for(var p=f-24e5+.5,h=0,g=0;gp);g++)h++;var b=h+15292,v=Math.floor((b-1)/12),m=v+1,y=b-12*v,x=p-d[h-1]+1;return this.newDate(m,y,x)},isValid:function(f,p,h){var g=s.baseCalendar.prototype.isValid.apply(this,arguments);return g&&(g=(f=f.year!=null?f.year:f)>=1276&&f<=1500),g},_validate:function(f,p,h,g){var b=s.baseCalendar.prototype._validate.apply(this,arguments);if(b.year<1276||b.year>1500)throw g.replace(/\{0\}/,this.local.name);return b}}),s.calendars.ummalqura=c;var d=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},63489:function(i,o,a){var s=a(56131);function u(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function c(g,b,v,m){if(this._calendar=g,this._year=b,this._month=v,this._day=m,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(h.local.invalidDate||h.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function d(g,b){return"000000".substring(0,b-(g=""+g).length)+g}function f(){this.shortYearCutoff="+10"}function p(g){this.local=this.regionalOptions[g]||this.regionalOptions[""]}s(u.prototype,{instance:function(g,b){g=(g||"gregorian").toLowerCase(),b=b||"";var v=this._localCals[g+"-"+b];if(!v&&this.calendars[g]&&(v=new this.calendars[g](b),this._localCals[g+"-"+b]=v),!v)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,g);return v},newDate:function(g,b,v,m,y){return(m=(g!=null&&g.year?g.calendar():typeof m=="string"?this.instance(m,y):m)||this.instance()).newDate(g,b,v)},substituteDigits:function(g){return function(b){return(b+"").replace(/[0-9]/g,function(v){return g[v]})}},substituteChineseDigits:function(g,b){return function(v){for(var m="",y=0;v>0;){var x=v%10;m=(x===0?"":g[x]+b[y])+m,y++,v=Math.floor(v/10)}return m.indexOf(g[1]+b[1])===0&&(m=m.substr(1)),m||g[0]}}}),s(c.prototype,{newDate:function(g,b,v){return this._calendar.newDate(g??this,b,v)},year:function(g){return arguments.length===0?this._year:this.set(g,"y")},month:function(g){return arguments.length===0?this._month:this.set(g,"m")},day:function(g){return arguments.length===0?this._day:this.set(g,"d")},date:function(g,b,v){if(!this._calendar.isValid(g,b,v))throw(h.local.invalidDate||h.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=g,this._month=b,this._day=v,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(g,b){return this._calendar.add(this,g,b)},set:function(g,b){return this._calendar.set(this,g,b)},compareTo:function(g){if(this._calendar.name!==g._calendar.name)throw(h.local.differentCalendars||h.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,g._calendar.local.name);var b=this._year!==g._year?this._year-g._year:this._month!==g._month?this.monthOfYear()-g.monthOfYear():this._day-g._day;return b===0?0:b<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(g){return this._calendar.fromJD(g)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(g){return this._calendar.fromJSDate(g)},toString:function(){return(this.year()<0?"-":"")+d(Math.abs(this.year()),4)+"-"+d(this.month(),2)+"-"+d(this.day(),2)}}),s(f.prototype,{_validateLevel:0,newDate:function(g,b,v){return g==null?this.today():(g.year&&(this._validate(g,b,v,h.local.invalidDate||h.regionalOptions[""].invalidDate),v=g.day(),b=g.month(),g=g.year()),new c(this,g,b,v))},today:function(){return this.fromJSDate(new Date)},epoch:function(g){return this._validate(g,this.minMonth,this.minDay,h.local.invalidYear||h.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(g){var b=this._validate(g,this.minMonth,this.minDay,h.local.invalidYear||h.regionalOptions[""].invalidYear);return(b.year()<0?"-":"")+d(Math.abs(b.year()),4)},monthsInYear:function(g){return this._validate(g,this.minMonth,this.minDay,h.local.invalidYear||h.regionalOptions[""].invalidYear),12},monthOfYear:function(g,b){var v=this._validate(g,b,this.minDay,h.local.invalidMonth||h.regionalOptions[""].invalidMonth);return(v.month()+this.monthsInYear(v)-this.firstMonth)%this.monthsInYear(v)+this.minMonth},fromMonthOfYear:function(g,b){var v=(b+this.firstMonth-2*this.minMonth)%this.monthsInYear(g)+this.minMonth;return this._validate(g,v,this.minDay,h.local.invalidMonth||h.regionalOptions[""].invalidMonth),v},daysInYear:function(g){var b=this._validate(g,this.minMonth,this.minDay,h.local.invalidYear||h.regionalOptions[""].invalidYear);return this.leapYear(b)?366:365},dayOfYear:function(g,b,v){var m=this._validate(g,b,v,h.local.invalidDate||h.regionalOptions[""].invalidDate);return m.toJD()-this.newDate(m.year(),this.fromMonthOfYear(m.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(g,b,v){var m=this._validate(g,b,v,h.local.invalidDate||h.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(m))+2)%this.daysInWeek()},extraInfo:function(g,b,v){return this._validate(g,b,v,h.local.invalidDate||h.regionalOptions[""].invalidDate),{}},add:function(g,b,v){return this._validate(g,this.minMonth,this.minDay,h.local.invalidDate||h.regionalOptions[""].invalidDate),this._correctAdd(g,this._add(g,b,v),b,v)},_add:function(g,b,v){if(this._validateLevel++,v==="d"||v==="w"){var m=g.toJD()+b*(v==="w"?this.daysInWeek():1),y=g.calendar().fromJD(m);return this._validateLevel--,[y.year(),y.month(),y.day()]}try{var x=g.year()+(v==="y"?b:0),_=g.monthOfYear()+(v==="m"?b:0);y=g.day(),v==="y"?(g.month()!==this.fromMonthOfYear(x,_)&&(_=this.newDate(x,g.month(),this.minDay).monthOfYear()),_=Math.min(_,this.monthsInYear(x)),y=Math.min(y,this.daysInMonth(x,this.fromMonthOfYear(x,_)))):v==="m"&&(function(S){for(;_k-1+S.minMonth;)x++,_-=k,k=S.monthsInYear(x)}(this),y=Math.min(y,this.daysInMonth(x,this.fromMonthOfYear(x,_))));var w=[x,this.fromMonthOfYear(x,_),y];return this._validateLevel--,w}catch(S){throw this._validateLevel--,S}},_correctAdd:function(g,b,v,m){if(!(this.hasYearZero||m!=="y"&&m!=="m"||b[0]!==0&&g.year()>0==b[0]>0)){var y={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[m],x=v<0?-1:1;b=this._add(g,v*y[0]+x*y[1],y[2])}return g.date(b[0],b[1],b[2])},set:function(g,b,v){this._validate(g,this.minMonth,this.minDay,h.local.invalidDate||h.regionalOptions[""].invalidDate);var m=v==="y"?b:g.year(),y=v==="m"?b:g.month(),x=v==="d"?b:g.day();return v!=="y"&&v!=="m"||(x=Math.min(x,this.daysInMonth(m,y))),g.date(m,y,x)},isValid:function(g,b,v){this._validateLevel++;var m=this.hasYearZero||g!==0;if(m){var y=this.newDate(g,b,this.minDay);m=b>=this.minMonth&&b-this.minMonth=this.minDay&&v-this.minDay13.5?13:1),k=y-(S>2.5?4716:4715);return k<=0&&k--,this.newDate(k,S,w)},toJSDate:function(g,b,v){var m=this._validate(g,b,v,h.local.invalidDate||h.regionalOptions[""].invalidDate),y=new Date(m.year(),m.month()-1,m.day());return y.setHours(0),y.setMinutes(0),y.setSeconds(0),y.setMilliseconds(0),y.setHours(y.getHours()>12?y.getHours()+2:0),y},fromJSDate:function(g){return this.newDate(g.getFullYear(),g.getMonth()+1,g.getDate())}});var h=i.exports=new u;h.cdate=c,h.baseCalendar=f,h.calendars.gregorian=p},94338:function(i,o,a){var s=a(56131),u=a(63489);s(u.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),u.local=u.regionalOptions[""],s(u.cdate.prototype,{formatDate:function(c,d){return typeof c!="string"&&(d=c,c=""),this._calendar.formatDate(c||"",this,d)}}),s(u.baseCalendar.prototype,{UNIX_EPOCH:u.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:u.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(c,d,f){if(typeof c!="string"&&(f=d,d=c,c=""),!d)return"";if(d.calendar()!==this)throw u.local.invalidFormat||u.regionalOptions[""].invalidFormat;c=c||this.local.dateFormat;for(var p,h,g,b=(f=f||{}).dayNamesShort||this.local.dayNamesShort,v=f.dayNames||this.local.dayNames,m=f.monthNumbers||this.local.monthNumbers,y=f.monthNamesShort||this.local.monthNamesShort,x=f.monthNames||this.local.monthNames,_=(f.calculateWeek||this.local.calculateWeek,function(E,I){for(var A=1;P+A1}),w=function(E,I,A,F){var j=""+I;if(_(E,F))for(;j.length1},O=function(N,R){var q=M(N,R),Y=[2,3,q?4:2,q?4:2,10,11,20]["oyYJ@!".indexOf(N)+1],L=new RegExp("^-?\\d{1,"+Y+"}"),W=d.substring(F).match(L);if(!W)throw(u.local.missingNumberAt||u.regionalOptions[""].missingNumberAt).replace(/\{0\}/,F);return F+=W[0].length,parseInt(W[0],10)},D=this,P=function(){if(typeof v=="function"){M("m");var N=v.call(D,d.substring(F));return F+=N.length,N}return O("m")},E=function(N,R,q,Y){for(var L=M(N,Y)?q:R,W=0;W-1){w=1,S=k;for(var z=this.daysInMonth(_,w);S>z;z=this.daysInMonth(_,w))w++,S-=z}return x>-1?this.fromJD(x):this.newDate(_,w,S)},determineDate:function(c,d,f,p,h){f&&typeof f!="object"&&(h=p,p=f,f=null),typeof p!="string"&&(h=p,p="");var g=this;return d=d?d.newDate():null,c==null?d:typeof c=="string"?function(b){try{return g.parseDate(p,b,h)}catch{}for(var v=((b=b.toLowerCase()).match(/^c/)&&f?f.newDate():null)||g.today(),m=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,y=m.exec(b);y;)v.add(parseInt(y[1],10),y[2]||"d"),y=m.exec(b);return v}(c):typeof c=="number"?isNaN(c)||c===1/0||c===-1/0?d:g.today().add(c,"d"):g.newDate(c)}})},69862:function(){},40964:function(){},72077:function(i,o,a){var s=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],u=typeof globalThis>"u"?a.g:globalThis;i.exports=function(){for(var c=[],d=0;d"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function b(_){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(S){return S.__proto__||Object.getPrototypeOf(S)},b(_)}var v=["AfterExport","AfterPlot","Animated","AnimatingFrame","AnimationInterrupted","AutoSize","BeforeExport","BeforeHover","ButtonClicked","Click","ClickAnnotation","Deselect","DoubleClick","Framework","Hover","LegendClick","LegendDoubleClick","Relayout","Relayouting","Restyle","Redraw","Selected","Selecting","SliderChange","SliderEnd","SliderStart","SunburstClick","Transitioning","TransitionInterrupted","Unhover","WebGlContextLost"],m=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick"],y=typeof window<"u";function x(_){var w=function(S){c(C,S);var k=f(C);function C(T){var M;return a(this,C),M=k.call(this,T),M.p=Promise.resolve(),M.resizeHandler=null,M.handlers={},M.syncWindowResize=M.syncWindowResize.bind(h(M)),M.syncEventHandlers=M.syncEventHandlers.bind(h(M)),M.attachUpdateEvents=M.attachUpdateEvents.bind(h(M)),M.getRef=M.getRef.bind(h(M)),M.handleUpdate=M.handleUpdate.bind(h(M)),M.figureCallback=M.figureCallback.bind(h(M)),M.updatePlotly=M.updatePlotly.bind(h(M)),M}return u(C,[{key:"updatePlotly",value:function(M,O,D){var P=this;this.p=this.p.then(function(){if(!P.unmounting){if(!P.el)throw new Error("Missing element reference");return _.react(P.el,{data:P.props.data,layout:P.props.layout,config:P.props.config,frames:P.props.frames})}}).then(function(){P.unmounting||(P.syncWindowResize(M),P.syncEventHandlers(),P.figureCallback(O),D&&P.attachUpdateEvents())}).catch(function(E){P.props.onError&&P.props.onError(E)})}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(M){this.unmounting=!1;var O=M.frames&&M.frames.length?M.frames.length:0,D=this.props.frames&&this.props.frames.length?this.props.frames.length:0,P=!(M.layout===this.props.layout&&M.data===this.props.data&&M.config===this.props.config&&D===O),E=M.revision!==void 0,I=M.revision!==this.props.revision;!P&&(!E||E&&!I)||this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&y&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),_.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var M=this;!this.el||!this.el.removeListener||m.forEach(function(O){M.el.on(O,M.handleUpdate)})}},{key:"removeUpdateEvents",value:function(){var M=this;!this.el||!this.el.removeListener||m.forEach(function(O){M.el.removeListener(O,M.handleUpdate)})}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(M){if(typeof M=="function"){var O=this.el,D=O.data,P=O.layout,E=this.el._transitionData?this.el._transitionData._frames:null,I={data:D,layout:P,frames:E};M(I,this.el)}}},{key:"syncWindowResize",value:function(M){var O=this;y&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return _.Plots.resize(O.el)},window.addEventListener("resize",this.resizeHandler),M&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(M){this.el=M,this.props.debug&&y&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var M=this;v.forEach(function(O){var D=M.props["on"+O],P=M.handlers[O],E=!!P;D&&!E?M.addEventHandler(O,D):!D&&E?M.removeEventHandler(O):D&&E&&D!==P&&(M.removeEventHandler(O),M.addEventHandler(O,D))})}},{key:"addEventHandler",value:function(M,O){this.handlers[M]=O,this.el.on(this.getPlotlyEventName(M),this.handlers[M])}},{key:"removeEventHandler",value:function(M){this.el.removeListener(this.getPlotlyEventName(M),this.handlers[M]),delete this.handlers[M]}},{key:"getPlotlyEventName",value:function(M){return"plotly_"+M.toLowerCase()}},{key:"render",value:function(){return n.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),C}(n.Component);return w.propTypes={data:r.default.arrayOf(r.default.object),config:r.default.object,layout:r.default.object,frames:r.default.arrayOf(r.default.object),revision:r.default.number,onInitialized:r.default.func,onPurge:r.default.func,onError:r.default.func,onUpdate:r.default.func,debug:r.default.bool,style:r.default.object,className:r.default.string,useResizeHandler:r.default.bool,divId:r.default.string},v.forEach(function(S){w.propTypes["on"+S]=r.default.func}),w.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},w}})(CB);const lpe=dr(CB),MB=lpe(ipe),Rd={data:{barpolar:[{marker:{line:{color:"rgb(17,17,17)",width:.5},pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"barpolar"}],bar:[{error_x:{color:"#f2f5fa"},error_y:{color:"#f2f5fa"},marker:{line:{color:"rgb(17,17,17)",width:.5},pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"bar"}],carpet:[{aaxis:{endlinecolor:"#A2B1C6",gridcolor:"#506784",linecolor:"#506784",minorgridcolor:"#506784",startlinecolor:"#A2B1C6"},baxis:{endlinecolor:"#A2B1C6",gridcolor:"#506784",linecolor:"#506784",minorgridcolor:"#506784",startlinecolor:"#A2B1C6"},type:"carpet"}],choropleth:[{colorbar:{outlinewidth:0,ticks:""},type:"choropleth"}],contourcarpet:[{colorbar:{outlinewidth:0,ticks:""},type:"contourcarpet"}],contour:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"contour"}],heatmapgl:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"heatmapgl"}],heatmap:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"heatmap"}],histogram2dcontour:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"histogram2dcontour"}],histogram2d:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"histogram2d"}],histogram:[{marker:{pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"histogram"}],mesh3d:[{colorbar:{outlinewidth:0,ticks:""},type:"mesh3d"}],parcoords:[{line:{colorbar:{outlinewidth:0,ticks:""}},type:"parcoords"}],pie:[{automargin:!0,type:"pie"}],scatter3d:[{line:{colorbar:{outlinewidth:0,ticks:""}},marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatter3d"}],scattercarpet:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scattercarpet"}],scattergeo:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scattergeo"}],scattergl:[{marker:{line:{color:"#283442"}},type:"scattergl"}],scattermapbox:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scattermapbox"}],scatterpolargl:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatterpolargl"}],scatterpolar:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatterpolar"}],scatter:[{marker:{line:{color:"#283442"}},type:"scatter"}],scatterternary:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatterternary"}],surface:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"surface"}],table:[{cells:{fill:{color:"#506784"},line:{color:"rgb(17,17,17)"}},header:{fill:{color:"#2a3f5f"},line:{color:"rgb(17,17,17)"}},type:"table"}]},layout:{annotationdefaults:{arrowcolor:"#f2f5fa",arrowhead:0,arrowwidth:1},autotypenumbers:"strict",coloraxis:{colorbar:{outlinewidth:0,ticks:""}},colorscale:{diverging:[[0,"#8e0152"],[.1,"#c51b7d"],[.2,"#de77ae"],[.3,"#f1b6da"],[.4,"#fde0ef"],[.5,"#f7f7f7"],[.6,"#e6f5d0"],[.7,"#b8e186"],[.8,"#7fbc41"],[.9,"#4d9221"],[1,"#276419"]],sequential:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],sequentialminus:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]},colorway:["#636efa","#EF553B","#00cc96","#ab63fa","#FFA15A","#19d3f3","#FF6692","#B6E880","#FF97FF","#FECB52"],font:{color:"#f2f5fa"},geo:{bgcolor:"rgb(17,17,17)",lakecolor:"rgb(17,17,17)",landcolor:"rgb(17,17,17)",showlakes:!0,showland:!0,subunitcolor:"#506784"},hoverlabel:{align:"left"},hovermode:"closest",mapbox:{style:"dark"},paper_bgcolor:"rgb(17,17,17)",plot_bgcolor:"rgb(17,17,17)",polar:{angularaxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""},bgcolor:"rgb(17,17,17)",radialaxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""}},scene:{xaxis:{backgroundcolor:"rgb(17,17,17)",gridcolor:"#506784",gridwidth:2,linecolor:"#506784",showbackground:!0,ticks:"",zerolinecolor:"#C8D4E3"},yaxis:{backgroundcolor:"rgb(17,17,17)",gridcolor:"#506784",gridwidth:2,linecolor:"#506784",showbackground:!0,ticks:"",zerolinecolor:"#C8D4E3"},zaxis:{backgroundcolor:"rgb(17,17,17)",gridcolor:"#506784",gridwidth:2,linecolor:"#506784",showbackground:!0,ticks:"",zerolinecolor:"#C8D4E3"}},shapedefaults:{line:{color:"#f2f5fa"}},sliderdefaults:{bgcolor:"#C8D4E3",bordercolor:"rgb(17,17,17)",borderwidth:1,tickwidth:0},ternary:{aaxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""},baxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""},bgcolor:"rgb(17,17,17)",caxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""}},title:{x:.05},updatemenudefaults:{bgcolor:"#506784",borderwidth:0,showactive:!1},xaxis:{automargin:!0,gridcolor:"#283442",linecolor:"#506784",ticks:"",title:{standoff:15},zerolinecolor:"#283442",zerolinewidth:2},yaxis:{automargin:!0,gridcolor:"#283442",linecolor:"#506784",ticks:"",title:{standoff:15},zerolinecolor:"#283442",zerolinewidth:2}}},spe=Xe.createContext(null),upe=()=>ge.useContext(spe),cpe=e=>typeof e=="number"?Math.round(e*100)/100:e,Db=e=>{var b,v,m,y;const t=upe(),n=hg(),r=e.data.some(({type:x})=>x==="histogram"),l=(t==null?void 0:t.isXaxisAsCategorical)&&!r,i=t==null?void 0:t.OnClickedPointComponent,o=t==null?void 0:t.OnHoveredPlotComponent,[a,s]=ge.useState(null),[u,c]=ge.useState(!1),d=i&&a?[{type:"line",x0:a.points[0].x,x1:a.points[0].x,y0:0,y1:1,xref:"x",yref:"paper",line:{color:n==="dark"?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.5)",width:3,dash:"dash"}}]:[],f=i&&a&&e.data.every(x=>x.type!=="bar"&&x.type!=="histogram")?[{x:[a.points[0].x],y:[a.points[0].y],mode:"markers",marker:{size:8,color:n==="dark"?"rgba(255, 255, 255, 1)":"rgba(0, 0, 0, 1)"},name:`selected point
${a.points[0].x}: ${cpe(a.points[0].y)}`,hoverinfo:"skip"}]:[],p=[...e.layout.shapes??[],...d],h=n==="dark"?{template:{...Rd,layout:{...Rd.layout,colorway:((v=(b=e.layout.template)==null?void 0:b.layout)==null?void 0:v.colorway)||((m=Rd.layout)==null?void 0:m.colorway)}}}:void 0,g=l?{type:"category",categoryorder:"category ascending"}:void 0;return Te.jsx(Te.Fragment,{children:Te.jsxs(ka,{position:"relative",children:[Te.jsx(MB,{onHover:()=>!u&&c(!0),onClick:i?x=>s(x):void 0,data:[...e.data,...f],layout:{...e.layout,...h,title:void 0,shapes:p,xaxis:{...(y=e.layout)==null?void 0:y.xaxis,...g}},config:{responsive:!0},style:{width:"100%",minHeight:300+100*(1+e.widgetSize/2),maxHeight:400}}),a&&i&&Te.jsx(i,{event:a}),u&&o&&Te.jsx(o,{})]})})};var PB={},OB={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(OB);var Hn=OB.exports,n_={exports:{}},O7;function jr(){return O7||(O7=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r{let t;const n=new Set,r=(s,u)=>{const c=typeof s=="function"?s(t):s;if(!Object.is(c,t)){const d=t;t=u??typeof c!="object"?c:Object.assign({},t,c),n.forEach(f=>f(t,d))}},l=()=>t,a={setState:r,getState:l,subscribe:s=>(n.add(s),()=>n.delete(s)),destroy:()=>{(hpe?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,l,a),a},EB=e=>e?I7(e):I7;var RB={exports:{}},LB={},IB={exports:{}},$B={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -363,7 +363,7 @@ should equal * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var ef=ge;function hpe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mpe=typeof Object.is=="function"?Object.is:hpe,gpe=ef.useState,vpe=ef.useEffect,ype=ef.useLayoutEffect,bpe=ef.useDebugValue;function xpe(e,t){var n=t(),r=gpe({inst:{value:n,getSnapshot:t}}),l=r[0].inst,i=r[1];return ype(function(){l.value=n,l.getSnapshot=t,f_(l)&&i({inst:l})},[e,n,t]),vpe(function(){return f_(l)&&i({inst:l}),e(function(){f_(l)&&i({inst:l})})},[e]),bpe(n),n}function f_(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!mpe(e,n)}catch{return!0}}function wpe(e,t){return t()}var _pe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?wpe:xpe;$B.useSyncExternalStore=ef.useSyncExternalStore!==void 0?ef.useSyncExternalStore:_pe;IB.exports=$B;var NB=IB.exports;/** + */var ef=ge;function mpe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gpe=typeof Object.is=="function"?Object.is:mpe,vpe=ef.useState,ype=ef.useEffect,bpe=ef.useLayoutEffect,xpe=ef.useDebugValue;function wpe(e,t){var n=t(),r=vpe({inst:{value:n,getSnapshot:t}}),l=r[0].inst,i=r[1];return bpe(function(){l.value=n,l.getSnapshot=t,f_(l)&&i({inst:l})},[e,n,t]),ype(function(){return f_(l)&&i({inst:l}),e(function(){f_(l)&&i({inst:l})})},[e]),xpe(n),n}function f_(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!gpe(e,n)}catch{return!0}}function _pe(e,t){return t()}var Tpe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?_pe:wpe;$B.useSyncExternalStore=ef.useSyncExternalStore!==void 0?ef.useSyncExternalStore:Tpe;IB.exports=$B;var NB=IB.exports;/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * @@ -371,11 +371,11 @@ should equal * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Eb=ge,Tpe=NB;function Spe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kpe=typeof Object.is=="function"?Object.is:Spe,Cpe=Tpe.useSyncExternalStore,Mpe=Eb.useRef,Ppe=Eb.useEffect,Ope=Eb.useMemo,Ape=Eb.useDebugValue;LB.useSyncExternalStoreWithSelector=function(e,t,n,r,l){var i=Mpe(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=Ope(function(){function s(p){if(!u){if(u=!0,c=p,p=r(p),l!==void 0&&o.hasValue){var h=o.value;if(l(h,p))return d=h}return d=p}if(h=d,kpe(c,p))return h;var g=r(p);return l!==void 0&&l(h,g)?h:(c=p,d=g)}var u=!1,c,d,f=n===void 0?null:n;return[function(){return s(t())},f===null?void 0:function(){return s(f())}]},[t,n,r,l]);var a=Cpe(e,i[0],i[1]);return Ppe(function(){o.hasValue=!0,o.value=a},[a]),Ape(a),a};RB.exports=LB;var Dpe=RB.exports;const Epe=dr(Dpe),{useSyncExternalStoreWithSelector:Rpe}=Epe;function FB(e,t=e.getState,n){const r=Rpe(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return ge.useDebugValue(r),r}const $7=e=>{const t=typeof e=="function"?EB(e):e,n=(r,l)=>FB(t,r,l);return Object.assign(n,t),n},jB=e=>e?$7(e):$7;var Lpe=e=>jB(e);const Ipe=Object.freeze(Object.defineProperty({__proto__:null,create:jB,createStore:EB,default:Lpe,useStore:FB},Symbol.toStringTag,{value:"Module"})),$pe=er(Ipe);var S0={exports:{}},p_={exports:{}},N7;function Npe(){return N7||(N7=1,function(e,t){(function(n,r){e.exports=r()})($o,function(){var n=typeof Promise=="function",r=typeof self=="object"?self:$o,l=typeof Symbol<"u",i=typeof Map<"u",o=typeof Set<"u",a=typeof WeakMap<"u",s=typeof WeakSet<"u",u=typeof DataView<"u",c=l&&typeof Symbol.iterator<"u",d=l&&typeof Symbol.toStringTag<"u",f=o&&typeof Set.prototype.entries=="function",p=i&&typeof Map.prototype.entries=="function",h=f&&Object.getPrototypeOf(new Set().entries()),g=p&&Object.getPrototypeOf(new Map().entries()),b=c&&typeof Array.prototype[Symbol.iterator]=="function",v=b&&Object.getPrototypeOf([][Symbol.iterator]()),m=c&&typeof String.prototype[Symbol.iterator]=="function",y=m&&Object.getPrototypeOf(""[Symbol.iterator]()),x=8,_=-1;function w(S){var k=typeof S;if(k!=="object")return k;if(S===null)return"null";if(S===r)return"global";if(Array.isArray(S)&&(d===!1||!(Symbol.toStringTag in S)))return"Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&S===window.location)return"Location";if(typeof window.document=="object"&&S===window.document)return"Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&S===window.navigator.mimeTypes)return"MimeTypeArray";if(typeof window.navigator.plugins=="object"&&S===window.navigator.plugins)return"PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&S instanceof window.HTMLElement){if(S.tagName==="BLOCKQUOTE")return"HTMLQuoteElement";if(S.tagName==="TD")return"HTMLTableDataCellElement";if(S.tagName==="TH")return"HTMLTableHeaderCellElement"}}var C=d&&S[Symbol.toStringTag];if(typeof C=="string")return C;var T=Object.getPrototypeOf(S);return T===RegExp.prototype?"RegExp":T===Date.prototype?"Date":n&&T===Promise.prototype?"Promise":o&&T===Set.prototype?"Set":i&&T===Map.prototype?"Map":s&&T===WeakSet.prototype?"WeakSet":a&&T===WeakMap.prototype?"WeakMap":u&&T===DataView.prototype?"DataView":i&&T===g?"Map Iterator":o&&T===h?"Set Iterator":b&&T===v?"Array Iterator":m&&T===y?"String Iterator":T===null?"Object":Object.prototype.toString.call(S).slice(x,_)}return w})}(p_)),p_.exports}var F7;function zB(){if(F7)return S0.exports;F7=1;/*! + */var Eb=ge,Spe=NB;function kpe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Cpe=typeof Object.is=="function"?Object.is:kpe,Mpe=Spe.useSyncExternalStore,Ppe=Eb.useRef,Ope=Eb.useEffect,Ape=Eb.useMemo,Dpe=Eb.useDebugValue;LB.useSyncExternalStoreWithSelector=function(e,t,n,r,l){var i=Ppe(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=Ape(function(){function s(p){if(!u){if(u=!0,c=p,p=r(p),l!==void 0&&o.hasValue){var h=o.value;if(l(h,p))return d=h}return d=p}if(h=d,Cpe(c,p))return h;var g=r(p);return l!==void 0&&l(h,g)?h:(c=p,d=g)}var u=!1,c,d,f=n===void 0?null:n;return[function(){return s(t())},f===null?void 0:function(){return s(f())}]},[t,n,r,l]);var a=Mpe(e,i[0],i[1]);return Ope(function(){o.hasValue=!0,o.value=a},[a]),Dpe(a),a};RB.exports=LB;var Epe=RB.exports;const Rpe=dr(Epe),{useSyncExternalStoreWithSelector:Lpe}=Rpe;function FB(e,t=e.getState,n){const r=Lpe(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return ge.useDebugValue(r),r}const $7=e=>{const t=typeof e=="function"?EB(e):e,n=(r,l)=>FB(t,r,l);return Object.assign(n,t),n},jB=e=>e?$7(e):$7;var Ipe=e=>jB(e);const $pe=Object.freeze(Object.defineProperty({__proto__:null,create:jB,createStore:EB,default:Ipe,useStore:FB},Symbol.toStringTag,{value:"Module"})),Npe=er($pe);var S0={exports:{}},p_={exports:{}},N7;function Fpe(){return N7||(N7=1,function(e,t){(function(n,r){e.exports=r()})($o,function(){var n=typeof Promise=="function",r=typeof self=="object"?self:$o,l=typeof Symbol<"u",i=typeof Map<"u",o=typeof Set<"u",a=typeof WeakMap<"u",s=typeof WeakSet<"u",u=typeof DataView<"u",c=l&&typeof Symbol.iterator<"u",d=l&&typeof Symbol.toStringTag<"u",f=o&&typeof Set.prototype.entries=="function",p=i&&typeof Map.prototype.entries=="function",h=f&&Object.getPrototypeOf(new Set().entries()),g=p&&Object.getPrototypeOf(new Map().entries()),b=c&&typeof Array.prototype[Symbol.iterator]=="function",v=b&&Object.getPrototypeOf([][Symbol.iterator]()),m=c&&typeof String.prototype[Symbol.iterator]=="function",y=m&&Object.getPrototypeOf(""[Symbol.iterator]()),x=8,_=-1;function w(S){var k=typeof S;if(k!=="object")return k;if(S===null)return"null";if(S===r)return"global";if(Array.isArray(S)&&(d===!1||!(Symbol.toStringTag in S)))return"Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&S===window.location)return"Location";if(typeof window.document=="object"&&S===window.document)return"Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&S===window.navigator.mimeTypes)return"MimeTypeArray";if(typeof window.navigator.plugins=="object"&&S===window.navigator.plugins)return"PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&S instanceof window.HTMLElement){if(S.tagName==="BLOCKQUOTE")return"HTMLQuoteElement";if(S.tagName==="TD")return"HTMLTableDataCellElement";if(S.tagName==="TH")return"HTMLTableHeaderCellElement"}}var C=d&&S[Symbol.toStringTag];if(typeof C=="string")return C;var T=Object.getPrototypeOf(S);return T===RegExp.prototype?"RegExp":T===Date.prototype?"Date":n&&T===Promise.prototype?"Promise":o&&T===Set.prototype?"Set":i&&T===Map.prototype?"Map":s&&T===WeakSet.prototype?"WeakSet":a&&T===WeakMap.prototype?"WeakMap":u&&T===DataView.prototype?"DataView":i&&T===g?"Map Iterator":o&&T===h?"Set Iterator":b&&T===v?"Array Iterator":m&&T===y?"String Iterator":T===null?"Object":Object.prototype.toString.call(S).slice(x,_)}return w})}(p_)),p_.exports}var F7;function zB(){if(F7)return S0.exports;F7=1;/*! * deep-eql * Copyright(c) 2013 Jake Luer * MIT Licensed - */var e=Npe();function t(){this._key="chai/deep-eql__"+Math.random()+Date.now()}t.prototype={get:function(S){return S[this._key]},set:function(S,k){Object.isExtensible(S)&&Object.defineProperty(S,this._key,{value:k,configurable:!0})}};var n=typeof WeakMap=="function"?WeakMap:t;/*! + */var e=Fpe();function t(){this._key="chai/deep-eql__"+Math.random()+Date.now()}t.prototype={get:function(S){return S[this._key]},set:function(S,k){Object.isExtensible(S)&&Object.defineProperty(S,this._key,{value:k,configurable:!0})}};var n=typeof WeakMap=="function"?WeakMap:t;/*! * Check to see if the MemoizeMap has recorded a result of the two operands * * @param {Mixed} leftHandOperand @@ -475,9 +475,9 @@ should equal * * @param {Mixed} value * @return {Boolean} result - */function x(w){return w===null||typeof w!="object"}function _(w){return w.map(function(k){return typeof k=="symbol"?k.toString():k})}return S0.exports}var h_={},j7;function BB(){return j7||(j7=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={error:"Data could not be retrieved",grouping:{groupedBy:"Grouped By:",placeholder:"Drag headers here to group by"},pagination:{labelDisplayedRows:"{from}-{to} of {count}",labelRowsPerPage:"Rows per page:",labelRows:"rows",firstAriaLabel:"First Page",firstTooltip:"First Page",previousAriaLabel:"Previous Page",previousTooltip:"Previous Page",nextAriaLabel:"Next Page",nextTooltip:"Next Page",lastAriaLabel:"Last Page",lastTooltip:"Last Page"},toolbar:{addRemoveColumns:"Add or remove columns",nRowsSelected:"{0} row(s) selected",showColumnsTitle:"Show Columns",showColumnsAriaLabel:"Show Columns",exportTitle:"Export",exportAriaLabel:"Export",searchTooltip:"Search",searchPlaceholder:"Search",searchAriaLabel:"Search",clearSearchAriaLabel:"Clear Search"},header:{actions:"Actions"},body:{emptyDataSourceMessage:"No records to display",editRow:{saveTooltip:"Save",cancelTooltip:"Cancel",deleteText:"Are you sure you want to delete this row?"},filterRow:{},dateTimePickerLocalization:"Filter",addTooltip:"Add",deleteTooltip:"Delete",editTooltip:"Edit",bulkEditTooltip:"Edit All",bulkEditApprove:"Save all changes",bulkEditCancel:"Discard all changes"}};e.default=t}(h_)),h_}var m_={},z7;function WB(){return z7||(z7=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={idSynonym:"id",actionsColumnIndex:0,addRowPosition:"last",columnsButton:!1,detailPanelType:"multiple",debounceInterval:200,doubleHorizontalScroll:!1,emptyRowsWhenPaging:!0,exportAllData:!1,exportMenu:[],filtering:!1,groupTitle:!1,header:!0,headerSelectionProps:{},hideFilterIcons:!1,loadingType:"overlay",padding:"normal",searchAutoFocus:!1,paging:!0,pageSize:5,pageSizeOptions:[5,10,20],paginationType:"normal",paginationPosition:"bottom",showEmptyDataSourceMessage:!0,showFirstLastPageButtons:!0,showSelectAllCheckbox:!0,showSelectGroupCheckbox:!0,search:!0,showTitle:!0,showTextRowsSelected:!0,showDetailPanelIcon:!0,tableLayout:"auto",tableWidth:"full",toolbarButtonAlignment:"right",searchFieldAlignment:"right",searchFieldStyle:{},searchFieldVariant:"standard",selection:!1,selectionProps:{},maxColumnSort:1,clientSorting:!0,groupChipProps:{},defaultOrderByCollection:[],showColumnSortOrder:!1,keepSortDirectionOnColumnSwitch:!0,toolbar:!0,defaultExpanded:!1,detailPanelColumnAlignment:"left",detailPanelOffset:{left:0,right:0},thirdSortClick:!0,overflowY:"auto",numberOfPagesAround:1,actionsHeaderIndex:0,draggable:!0};e.default=t}(m_)),m_}var g_={},yp={},v_={exports:{}},B7;function yo(){return B7||(B7=1,function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(v_)),v_.exports}var y_={};const Fpe=er(Jre);var W7;function bo(){return W7||(W7=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Fpe}(y_)),y_}var q7;function jpe(){if(q7)return yp;q7=1;var e=yo();Object.defineProperty(yp,"__esModule",{value:!0}),yp.default=void 0;var t=e(bo()),n=Te;return yp.default=(0,t.default)((0,n.jsx)("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"}),"ViewColumn"),yp}var bp={},U7;function zpe(){if(U7)return bp;U7=1;var e=yo();Object.defineProperty(bp,"__esModule",{value:!0}),bp.default=void 0;var t=e(bo()),n=Te;return bp.default=(0,t.default)((0,n.jsx)("path",{d:"M19 13H5v-2h14z"}),"Remove"),bp}var xp={},H7;function Bpe(){if(H7)return xp;H7=1;var e=yo();Object.defineProperty(xp,"__esModule",{value:!0}),xp.default=void 0;var t=e(bo()),n=Te;return xp.default=(0,t.default)((0,n.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),xp}var wp={},V7;function Wpe(){if(V7)return wp;V7=1;var e=yo();Object.defineProperty(wp,"__esModule",{value:!0}),wp.default=void 0;var t=e(bo()),n=Te;return wp.default=(0,t.default)((0,n.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),wp}var _p={},G7;function qpe(){if(G7)return _p;G7=1;var e=yo();Object.defineProperty(_p,"__esModule",{value:!0}),_p.default=void 0;var t=e(bo()),n=Te;return _p.default=(0,t.default)((0,n.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"Replay"),_p}const b5=er(_ue);var Tp={},Y7;function Upe(){if(Y7)return Tp;Y7=1;var e=yo();Object.defineProperty(Tp,"__esModule",{value:!0}),Tp.default=void 0;var t=e(bo()),n=Te;return Tp.default=(0,t.default)((0,n.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),Tp}var Sp={},X7;function Hpe(){if(X7)return Sp;X7=1;var e=yo();Object.defineProperty(Sp,"__esModule",{value:!0}),Sp.default=void 0;var t=e(bo()),n=Te;return Sp.default=(0,t.default)((0,n.jsx)("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),Sp}var kp={},K7;function Vpe(){if(K7)return kp;K7=1;var e=yo();Object.defineProperty(kp,"__esModule",{value:!0}),kp.default=void 0;var t=e(bo()),n=Te;return kp.default=(0,t.default)((0,n.jsx)("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),kp}var Cp={},Z7;function Gpe(){if(Z7)return Cp;Z7=1;var e=yo();Object.defineProperty(Cp,"__esModule",{value:!0}),Cp.default=void 0;var t=e(bo()),n=Te;return Cp.default=(0,t.default)((0,n.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList"),Cp}var Mp={},Q7;function Ype(){if(Q7)return Mp;Q7=1;var e=yo();Object.defineProperty(Mp,"__esModule",{value:!0}),Mp.default=void 0;var t=e(bo()),n=Te;return Mp.default=(0,t.default)((0,n.jsx)("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),Mp}var Pp={},J7;function Xpe(){if(J7)return Pp;J7=1;var e=yo();Object.defineProperty(Pp,"__esModule",{value:!0}),Pp.default=void 0;var t=e(bo()),n=Te;return Pp.default=(0,t.default)((0,n.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),Pp}var Op={},eD;function Kpe(){if(eD)return Op;eD=1;var e=yo();Object.defineProperty(Op,"__esModule",{value:!0}),Op.default=void 0;var t=e(bo()),n=Te;return Op.default=(0,t.default)((0,n.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),Op}var Ap={},tD;function Zpe(){if(tD)return Ap;tD=1;var e=yo();Object.defineProperty(Ap,"__esModule",{value:!0}),Ap.default=void 0;var t=e(bo()),n=Te;return Ap.default=(0,t.default)((0,n.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline"),Ap}var Dp={},nD;function Qpe(){if(nD)return Dp;nD=1;var e=yo();Object.defineProperty(Dp,"__esModule",{value:!0}),Dp.default=void 0;var t=e(bo()),n=Te;return Dp.default=(0,t.default)((0,n.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear"),Dp}var Ep={},rD;function Jpe(){if(rD)return Ep;rD=1;var e=yo();Object.defineProperty(Ep,"__esModule",{value:!0}),Ep.default=void 0;var t=e(bo()),n=Te;return Ep.default=(0,t.default)((0,n.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Ep}var Rp={},aD;function ehe(){if(aD)return Rp;aD=1;var e=yo();Object.defineProperty(Rp,"__esModule",{value:!0}),Rp.default=void 0;var t=e(bo()),n=Te;return Rp.default=(0,t.default)((0,n.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4z"}),"AddBox"),Rp}var oD;function qB(){return oD||(oD=1,function(e){var t=Hn,n=Pa();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(jpe()),l=t(zpe()),i=t(Bpe()),o=t(Wpe()),a=t(qpe()),s=t(b5),u=t(Upe()),c=t(Hpe()),d=t(Vpe()),f=t(Gpe()),p=t(Ype()),h=t(Xpe()),g=t(Kpe()),b=t(Zpe()),v=t(Qpe()),m=t(Jpe()),y=t(ehe()),x=t(jr()),_=S(ge);function w(C){if(typeof WeakMap!="function")return null;var T=new WeakMap,M=new WeakMap;return(w=function(D){return D?M:T})(C)}function S(C,T){if(C&&C.__esModule)return C;if(C===null||n(C)!=="object"&&typeof C!="function")return{default:C};var M=w(T);if(M&&M.has(C))return M.get(C);var O={},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var P in C)if(P!=="default"&&Object.prototype.hasOwnProperty.call(C,P)){var E=D?Object.getOwnPropertyDescriptor(C,P):null;E&&(E.get||E.set)?Object.defineProperty(O,P,E):O[P]=C[P]}return O.default=C,M&&M.set(C,O),O}var k={Add:(0,_.forwardRef)(function(C,T){return _.default.createElement(y.default,(0,x.default)({},C,{ref:T,"data-testid":"add_box"}))}),Check:(0,_.forwardRef)(function(C,T){return _.default.createElement(m.default,(0,x.default)({},C,{ref:T,"data-testid":"check"}))}),Clear:(0,_.forwardRef)(function(C,T){return _.default.createElement(v.default,(0,x.default)({},C,{ref:T,"data-testid":"clear"}))}),Delete:(0,_.forwardRef)(function(C,T){return _.default.createElement(b.default,(0,x.default)({},C,{ref:T,"data-testid":"delete_outline"}))}),DetailPanel:(0,_.forwardRef)(function(C,T){return _.default.createElement(g.default,(0,x.default)({},C,{ref:T,"data-testid":"chevron_right"}))}),Edit:(0,_.forwardRef)(function(C,T){return _.default.createElement(h.default,(0,x.default)({},C,{ref:T,"data-testid":"edit"}))}),Export:(0,_.forwardRef)(function(C,T){return _.default.createElement(p.default,(0,x.default)({},C,{ref:T,"data-testid":"save_alt"}))}),Filter:(0,_.forwardRef)(function(C,T){return _.default.createElement(f.default,(0,x.default)({},C,{ref:T,"data-testid":"filter_list"}))}),FirstPage:(0,_.forwardRef)(function(C,T){return _.default.createElement(d.default,(0,x.default)({},C,{ref:T,"data-testid":"first_page"}))}),LastPage:(0,_.forwardRef)(function(C,T){return _.default.createElement(c.default,(0,x.default)({},C,{ref:T,"data-testid":"last_page"}))}),NextPage:(0,_.forwardRef)(function(C,T){return _.default.createElement(g.default,(0,x.default)({},C,{ref:T,"data-testid":"chevron_right"}))}),PreviousPage:(0,_.forwardRef)(function(C,T){return _.default.createElement(u.default,(0,x.default)({},C,{ref:T,"data-testid":"chevron_left"}))}),ResetSearch:(0,_.forwardRef)(function(C,T){return _.default.createElement(v.default,(0,x.default)({},C,{ref:T,"data-testid":"clear"}))}),Resize:(0,_.forwardRef)(function(C,T){return _.default.createElement(s.default,(0,x.default)({},C,{ref:T,"data-testid":"drag_handle"}),"|")}),Retry:(0,_.forwardRef)(function(C,T){return _.default.createElement(a.default,(0,x.default)({},C,{ref:T,"data-testid":"replay"}))}),Search:(0,_.forwardRef)(function(C,T){return _.default.createElement(o.default,(0,x.default)({},C,{ref:T,"data-testid":"search"}))}),SortArrow:(0,_.forwardRef)(function(C,T){return _.default.createElement(i.default,(0,x.default)({},C,{ref:T,"data-testid":"arrow_downward"}))}),ThirdStateCheck:(0,_.forwardRef)(function(C,T){return _.default.createElement(l.default,(0,x.default)({},C,{ref:T,"data-testid":"remove"}))}),ViewColumn:(0,_.forwardRef)(function(C,T){return _.default.createElement(r.default,(0,x.default)({},C,{ref:T,"data-testid":"view_column"}))})};e.default=k}(g_)),g_}var b_,iD;function the(){if(iD)return b_;iD=1;var e=function(m){return t(m)&&!n(m)};function t(v){return!!v&&typeof v=="object"}function n(v){var m=Object.prototype.toString.call(v);return m==="[object RegExp]"||m==="[object Date]"||i(v)}var r=typeof Symbol=="function"&&Symbol.for,l=r?Symbol.for("react.element"):60103;function i(v){return v.$$typeof===l}function o(v){return Array.isArray(v)?[]:{}}function a(v,m){return m.clone!==!1&&m.isMergeableObject(v)?g(o(v),v,m):v}function s(v,m,y){return v.concat(m).map(function(x){return a(x,y)})}function u(v,m){if(!m.customMerge)return g;var y=m.customMerge(v);return typeof y=="function"?y:g}function c(v){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(v).filter(function(m){return Object.propertyIsEnumerable.call(v,m)}):[]}function d(v){return Object.keys(v).concat(c(v))}function f(v,m){try{return m in v}catch{return!1}}function p(v,m){return f(v,m)&&!(Object.hasOwnProperty.call(v,m)&&Object.propertyIsEnumerable.call(v,m))}function h(v,m,y){var x={};return y.isMergeableObject(v)&&d(v).forEach(function(_){x[_]=a(v[_],y)}),d(m).forEach(function(_){p(v,_)||(f(v,_)&&y.isMergeableObject(m[_])?x[_]=u(_,y)(v[_],m[_],y):x[_]=a(m[_],y))}),x}function g(v,m,y){y=y||{},y.arrayMerge=y.arrayMerge||s,y.isMergeableObject=y.isMergeableObject||e,y.cloneUnlessOtherwiseSpecified=a;var x=Array.isArray(m),_=Array.isArray(v),w=x===_;return w?x?y.arrayMerge(v,m,y):h(v,m,y):a(m,y)}g.all=function(m,y){if(!Array.isArray(m))throw new Error("first argument should be an array");return m.reduce(function(x,_){return g(x,_,y)},{})};var b=g;return b_=b,b_}var lD;function mg(){if(lD)return Zi;lD=1;var e=Hn;Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.useLocalizationStore=Zi.useIconStore=void 0,Zi.useMergeProps=v,Zi.useOptionStore=void 0,Zi.withContext=m;var t=e(za()),n=$pe,r=e(ge),l=e(zB()),i=e(BB()),o=e(WB()),a=e(qB()),s=e(OU());function u(y,x){var _=Object.keys(y);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(y);x&&(w=w.filter(function(S){return Object.getOwnPropertyDescriptor(y,S).enumerable})),_.push.apply(_,w)}return _}function c(y){for(var x=1;x=0)&&(l[o]=n[o]);return l}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(__)),__.exports}var dD;function kf(){return dD||(dD=1,function(e){var t=ahe();function n(r,l){if(r==null)return{};var i=t(r,l),o,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(r,o)&&(i[o]=r[o])}return i}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(w_)),w_.exports}var fD;function ohe(){return fD||(fD=1,function(e){var t=Hn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(rhe),r=t(jr()),l=t(kf()),i=t(ge),o=["forwardedRef"];function a(u){var c=u.forwardedRef,d=(0,l.default)(u,o);return i.default.createElement(n.default,(0,r.default)({elevation:2},d,{ref:c}))}var s=i.default.forwardRef(function(c,d){return i.default.createElement(a,(0,r.default)({},c,{forwardedRef:d}))});e.default=s}(x_)),x_}var T_={};const kc=er(Yie);var S_={exports:{}},pD;function ihe(){return pD||(pD=1,function(e,t){(function(r,l){e.exports=l(ge)})($o,function(n){return function(r){var l={};function i(o){if(l[o])return l[o].exports;var a=l[o]={exports:{},id:o,loaded:!1};return r[o].call(a.exports,a,a.exports,i),a.loaded=!0,a.exports}return i.m=r,i.c=l,i.p="",i(0)}([function(r,l,i){Object.defineProperty(l,"__esModule",{value:!0});var o=function(){function h(g,b){for(var v=0;vn.length)&&(r=n.length);for(var l=0,i=new Array(r);l0&&E++,g.hasDetailPanel&&E++,g.isTreeData&&E++,s.default.createElement(o.default,{style:{height:P*(v.paging&&v.emptyRowsWhenPaging?g.pageSize:1)},key:"empty-0"},s.default.createElement(a.default,{style:{paddingTop:0,paddingBottom:0,textAlign:"center"},colSpan:g.columns.reduce(function(I,A){return A.hidden?I:I+1},E),key:"empty-"},b.emptyDataSourceMessage))}else if(v.emptyRowsWhenPaging)return s.default.createElement(s.default.Fragment,null,(0,i.default)(Array(O)).map(function(I,A){return s.default.createElement(o.default,{style:{height:P},key:"empty-"+A})}),O>0&&s.default.createElement(o.default,{style:{height:1},key:"empty-last1"}))}function _(O){return O.map(function(D,P){if(D.tableData.editing||g.bulkEditOpen)return s.default.createElement(g.components.EditRow,{columns:y,components:g.components,data:D,errorState:g.errorState,icons:m,localization:b.editRow,key:"row-"+D.tableData.uuid,mode:g.bulkEditOpen?"bulk":D.tableData.editing,isTreeData:g.isTreeData,detailPanel:g.detailPanel,onEditingCanceled:g.onEditingCanceled,onEditingApproved:g.onEditingApproved,bulkEditChangedRows:g.bulkEditChangedRows,getFieldValue:g.getFieldValue,onBulkEditRowChanged:g.onBulkEditRowChanged,scrollWidth:g.scrollWidth});var E=g.isTreeData?[D.tableData.uuid]:[P+g.pageSize*g.currentPage];return s.default.createElement(g.components.Row,{components:g.components,data:D,index:P,errorState:g.errorState,key:"row-"+D.tableData.uuid,level:0,onRowSelected:g.onRowSelected,actions:g.actions,columns:g.columns,getFieldValue:g.getFieldValue,detailPanel:g.detailPanel,path:E,onToggleDetailPanel:g.onToggleDetailPanel,onRowClick:g.onRowClick,onRowDoubleClick:g.onRowDoubleClick,isTreeData:g.isTreeData,onTreeExpandChanged:g.onTreeExpandChanged,onEditingCanceled:g.onEditingCanceled,onEditingApproved:g.onEditingApproved,hasAnyEditingRow:g.hasAnyEditingRow,treeDataMaxLevel:g.treeDataMaxLevel,cellEditable:g.cellEditable,onCellEditStarted:g.onCellEditStarted,onCellEditFinished:g.onCellEditFinished,onRowEditStarted:g.onRowEditStarted,scrollWidth:g.scrollWidth})})}function w(O,D){return D.map(function(P,E){return s.default.createElement(g.components.GroupRow,{actions:g.actions,cellEditable:g.cellEditable,columns:g.columns,components:g.components,detailPanel:g.detailPanel,getFieldValue:g.getFieldValue,groupData:P,groups:O,hasAnyEditingRow:g.hasAnyEditingRow,icons:m,isTreeData:g.isTreeData,key:P.value==null?""+E:P.value,level:0,localization:b.editRow,onBulkEditRowChanged:g.onBulkEditRowChanged,onCellEditFinished:g.onCellEditFinished,onCellEditStarted:g.onCellEditStarted,onEditingApproved:g.onEditingApproved,onEditingCanceled:g.onEditingCanceled,onGroupExpandChanged:g.onGroupExpandChanged,onRowClick:g.onRowClick,onGroupSelected:g.onGroupSelected,onRowSelected:g.onRowSelected,onToggleDetailPanel:g.onToggleDetailPanel,onTreeExpandChanged:g.onTreeExpandChanged,path:[E+g.pageSize*g.currentPage],scrollWidth:g.scrollWidth,treeDataMaxLevel:g.treeDataMaxLevel})})}function S(){return g.showAddRow&&s.default.createElement(g.components.EditRow,{columns:y,components:g.components,data:g.initialFormData,detailPanel:g.detailPanel,errorState:g.errorState,getFieldValue:g.getFieldValue,icons:m,isTreeData:g.isTreeData,key:"key-add-row",localization:b.editRow,mode:"add",onEditingApproved:g.onEditingApproved,onEditingCanceled:g.onEditingCanceled,scrollWidth:g.scrollWidth})}var k=g.renderData,C=g.columns.filter(function(O){return O.tableData.groupOrder>-1}).sort(function(O,D){return O.tableData.groupOrder-D.tableData.groupOrder}),T=0;v.paging&&g.pageSize>k.length&&(T=g.pageSize-k.length);var M=s.default.useMemo(function(){return g.renderSummaryRow?function(O){return g.renderSummaryRow(f(f({},O),{},{data:g.data,currentData:g.currentData}))}:void 0},[g.data]);return s.default.createElement(r.default,{ref:g.forwardedRef},v.filtering&&s.default.createElement(g.components.FilterRow,{columns:y,icons:m,hasActions:g.actions.some(function(O){return O.position==="row"||typeof O=="function"}),onFilterChanged:g.onFilterChanged,localization:b.filterRow,hasDetailPanel:!!g.detailPanel,isTreeData:g.isTreeData,scrollWidth:g.scrollWidth,hideFilterIcons:g.options.hideFilterIcons}),v.addRowPosition==="first"&&S(),C.length>0?w(C,k):_(k),v.addRowPosition==="last"&&S(),s.default.createElement(g.components.SummaryRow,{columns:y,renderSummaryRow:M,rowProps:g}),x(T,k))}p.defaultProps={actions:[],currentPage:0,data:[],pageSize:5,renderData:[],selection:!1},p.propTypes={actions:u.default.array,bulkEditChangedRows:u.default.object,bulkEditOpen:u.default.bool,cellEditable:u.default.object,columns:u.default.array.isRequired,components:u.default.object.isRequired,currentPage:u.default.number,data:u.default.array,detailPanel:u.default.oneOfType([u.default.func,u.default.arrayOf(u.default.oneOfType([u.default.object,u.default.func]))]),errorState:u.default.oneOfType([u.default.object,u.default.bool]),forwardedRef:u.default.oneOfType([u.default.func,u.default.object]),getFieldValue:u.default.func.isRequired,hasAnyEditingRow:u.default.bool,hasDetailPanel:u.default.bool.isRequired,initialFormData:u.default.object,isTreeData:u.default.bool.isRequired,onBulkEditRowChanged:u.default.func,onCellEditFinished:u.default.func,onCellEditStarted:u.default.func,onEditingApproved:u.default.func,onEditingCanceled:u.default.func,onFilterChanged:u.default.func,onGroupExpandChanged:u.default.func,onRowClick:u.default.func,onRowDoubleClick:u.default.func,onGroupSelected:u.default.func,onRowSelected:u.default.func,onToggleDetailPanel:u.default.func.isRequired,onTreeExpandChanged:u.default.func.isRequired,pageSize:u.default.number,renderData:u.default.array,renderSummaryRow:u.default.func,scrollWidth:u.default.number.isRequired,selection:u.default.bool.isRequired,showAddRow:u.default.bool,treeDataMaxLevel:u.default.number};var h=s.default.forwardRef(function(b,v){return s.default.createElement(p,(0,n.default)({},b,{forwardedRef:v}))});e.default=h}(k_)),k_}var E_={},R_={exports:{}},_D;function Rb(){return _D||(_D=1,function(e){function t(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(R_)),R_.exports}var L_={exports:{}},TD;function Lb(){return TD||(TD=1,function(e){var t=DB();function n(l,i){for(var o=0;o1?"s":"")+" required, but only "+t.length+" present")}function wn(e){xn(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||us(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function BS(e,t){xn(2,arguments);var n=wn(e),r=Pr(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function $b(e,t){xn(2,arguments);var n=wn(e).getTime(),r=Pr(t);return new Date(n+r)}function ghe(e,t){xn(2,arguments);var n=Pr(t);return $b(e,n*1e3)}var vhe=6e4;function yhe(e,t){xn(2,arguments);var n=Pr(t);return $b(e,n*vhe)}var bhe=36e5;function xhe(e,t){xn(2,arguments);var n=Pr(t);return $b(e,n*bhe)}function whe(e,t){xn(2,arguments);var n=Pr(t),r=n*7;return BS(e,r)}function wv(e,t){xn(2,arguments);var n=wn(e),r=Pr(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var l=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var o=i.getDate();return l>=o?i:(n.setFullYear(i.getFullYear(),i.getMonth(),l),n)}function OD(e,t){xn(2,arguments);var n=Pr(t);return wv(e,n*12)}function _he(e,t){xn(2,arguments);var n=wn(e),r=wn(t);return n.getFullYear()-r.getFullYear()}function Xh(e,t){xn(2,arguments);var n=wn(e),r=wn(t),l=n.getTime()-r.getTime();return l<0?-1:l>0?1:l}function The(e,t){xn(2,arguments);var n=wn(e),r=wn(t),l=Xh(n,r),i=Math.abs(_he(n,r));n.setFullYear(1584),r.setFullYear(1584);var o=Xh(n,r)===-l,a=l*(i-Number(o));return a===0?0:a}function She(e,t){xn(2,arguments);var n=wn(e),r=wn(t),l=n.getFullYear()-r.getFullYear(),i=n.getMonth()-r.getMonth();return l*12+i}function WS(e){xn(1,arguments);var t=wn(e);return t.setHours(23,59,59,999),t}function qS(e){xn(1,arguments);var t=wn(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function khe(e){xn(1,arguments);var t=wn(e);return WS(t).getTime()===qS(t).getTime()}function XB(e,t){xn(2,arguments);var n=wn(e),r=wn(t),l=Xh(n,r),i=Math.abs(She(n,r)),o;if(i<1)o=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-l*i);var a=Xh(n,r)===-l;khe(wn(e))&&i===1&&Xh(e,r)===1&&(a=!1),o=l*(i-Number(a))}return o===0?0:o}var AD={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},Che="trunc";function gg(e){return e?AD[e]:AD[Che]}function Mhe(e,t,n){xn(2,arguments);var r=XB(e,t)/3;return gg(void 0)(r)}function Py(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function tf(e){xn(1,arguments);var t=wn(e);return t.setHours(0,0,0,0),t}var Phe=864e5;function Ohe(e,t){xn(2,arguments);var n=tf(e),r=tf(t),l=n.getTime()-Py(n),i=r.getTime()-Py(r);return Math.round((l-i)/Phe)}function DD(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function KB(e,t){xn(2,arguments);var n=wn(e),r=wn(t),l=DD(n,r),i=Math.abs(Ohe(n,r));n.setDate(n.getDate()-l*i);var o=+(DD(n,r)===-l),a=l*(i-o);return a===0?0:a}function Ahe(e,t,n){xn(2,arguments);var r=KB(e,t)/7;return gg(void 0)(r)}var Nb=6e4,Fb=36e5,Dhe=1e3;function jb(e,t){return xn(2,arguments),wn(e).getTime()-wn(t).getTime()}function Ehe(e,t,n){xn(2,arguments);var r=jb(e,t)/Fb;return gg(void 0)(r)}function Rhe(e,t,n){xn(2,arguments);var r=jb(e,t)/Nb;return gg(void 0)(r)}function Lhe(e,t,n){xn(2,arguments);var r=jb(e,t)/1e3;return gg(void 0)(r)}function Ihe(e,t){var n;xn(1,arguments);var r=e||{},l=wn(r.start),i=wn(r.end),o=i.getTime();if(!(l.getTime()<=o))throw new RangeError("Invalid interval");var a=[],s=l;s.setHours(0,0,0,0);var u=Number((n=void 0)!==null&&n!==void 0?n:1);if(u<1||isNaN(u))throw new RangeError("`options.step` must be a number greater than 1");for(;s.getTime()<=o;)a.push(wn(s)),s.setDate(s.getDate()+u),s.setHours(0,0,0,0);return a}var $he={};function gu(){return $he}function z_(e,t){var n,r,l,i,o,a,s,u;xn(1,arguments);var c=gu(),d=Pr((n=(r=(l=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(a=o.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&l!==void 0?l:c.weekStartsOn)!==null&&r!==void 0?r:(s=c.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=wn(e),p=f.getDay(),h=(p=l.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function zhe(e){xn(1,arguments);var t=JB(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=nf(n);return r}var Bhe=6048e5;function eW(e){xn(1,arguments);var t=wn(e),n=nf(t).getTime()-zhe(t).getTime();return Math.round(n/Bhe)+1}function sc(e,t){var n,r,l,i,o,a,s,u;xn(1,arguments);var c=gu(),d=Pr((n=(r=(l=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(a=o.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&l!==void 0?l:c.weekStartsOn)!==null&&r!==void 0?r:(s=c.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=wn(e),p=f.getUTCDay(),h=(p=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(d+1,0,p),h.setUTCHours(0,0,0,0);var g=sc(h,t),b=new Date(0);b.setUTCFullYear(d,0,p),b.setUTCHours(0,0,0,0);var v=sc(b,t);return c.getTime()>=g.getTime()?d+1:c.getTime()>=v.getTime()?d:d-1}function Whe(e,t){var n,r,l,i,o,a,s,u;xn(1,arguments);var c=gu(),d=Pr((n=(r=(l=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(a=o.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&l!==void 0?l:c.firstWeekContainsDate)!==null&&r!==void 0?r:(s=c.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),f=k5(e,t),p=new Date(0);p.setUTCFullYear(f,0,d),p.setUTCHours(0,0,0,0);var h=sc(p,t);return h}var qhe=6048e5;function tW(e,t){xn(1,arguments);var n=wn(e),r=sc(n,t).getTime()-Whe(n,t).getTime();return Math.round(r/qhe)+1}function ir(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?r:1-r;return ir(n==="yy"?l%100:l,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):ir(r+1,2)},d:function(t,n){return ir(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return ir(t.getUTCHours()%12||12,n.length)},H:function(t,n){return ir(t.getUTCHours(),n.length)},m:function(t,n){return ir(t.getUTCMinutes(),n.length)},s:function(t,n){return ir(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,l=t.getUTCMilliseconds(),i=Math.floor(l*Math.pow(10,r-3));return ir(i,n.length)}},Zc={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Uhe={G:function(t,n,r){var l=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(l,{width:"abbreviated"});case"GGGGG":return r.era(l,{width:"narrow"});case"GGGG":default:return r.era(l,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var l=t.getUTCFullYear(),i=l>0?l:1-l;return r.ordinalNumber(i,{unit:"year"})}return Os.y(t,n)},Y:function(t,n,r,l){var i=k5(t,l),o=i>0?i:1-i;if(n==="YY"){var a=o%100;return ir(a,2)}return n==="Yo"?r.ordinalNumber(o,{unit:"year"}):ir(o,n.length)},R:function(t,n){var r=JB(t);return ir(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return ir(r,n.length)},Q:function(t,n,r){var l=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(l);case"QQ":return ir(l,2);case"Qo":return r.ordinalNumber(l,{unit:"quarter"});case"QQQ":return r.quarter(l,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(l,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(l,{width:"wide",context:"formatting"})}},q:function(t,n,r){var l=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(l);case"qq":return ir(l,2);case"qo":return r.ordinalNumber(l,{unit:"quarter"});case"qqq":return r.quarter(l,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(l,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(l,{width:"wide",context:"standalone"})}},M:function(t,n,r){var l=t.getUTCMonth();switch(n){case"M":case"MM":return Os.M(t,n);case"Mo":return r.ordinalNumber(l+1,{unit:"month"});case"MMM":return r.month(l,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(l,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(l,{width:"wide",context:"formatting"})}},L:function(t,n,r){var l=t.getUTCMonth();switch(n){case"L":return String(l+1);case"LL":return ir(l+1,2);case"Lo":return r.ordinalNumber(l+1,{unit:"month"});case"LLL":return r.month(l,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(l,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(l,{width:"wide",context:"standalone"})}},w:function(t,n,r,l){var i=tW(t,l);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):ir(i,n.length)},I:function(t,n,r){var l=eW(t);return n==="Io"?r.ordinalNumber(l,{unit:"week"}):ir(l,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):Os.d(t,n)},D:function(t,n,r){var l=jhe(t);return n==="Do"?r.ordinalNumber(l,{unit:"dayOfYear"}):ir(l,n.length)},E:function(t,n,r){var l=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(l,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(l,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(l,{width:"short",context:"formatting"});case"EEEE":default:return r.day(l,{width:"wide",context:"formatting"})}},e:function(t,n,r,l){var i=t.getUTCDay(),o=(i-l.weekStartsOn+8)%7||7;switch(n){case"e":return String(o);case"ee":return ir(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,r,l){var i=t.getUTCDay(),o=(i-l.weekStartsOn+8)%7||7;switch(n){case"c":return String(o);case"cc":return ir(o,n.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,r){var l=t.getUTCDay(),i=l===0?7:l;switch(n){case"i":return String(i);case"ii":return ir(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(l,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(l,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(l,{width:"short",context:"formatting"});case"iiii":default:return r.day(l,{width:"wide",context:"formatting"})}},a:function(t,n,r){var l=t.getUTCHours(),i=l/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,r){var l=t.getUTCHours(),i;switch(l===12?i=Zc.noon:l===0?i=Zc.midnight:i=l/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,r){var l=t.getUTCHours(),i;switch(l>=17?i=Zc.evening:l>=12?i=Zc.afternoon:l>=4?i=Zc.morning:i=Zc.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var l=t.getUTCHours()%12;return l===0&&(l=12),r.ordinalNumber(l,{unit:"hour"})}return Os.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Os.H(t,n)},K:function(t,n,r){var l=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(l,{unit:"hour"}):ir(l,n.length)},k:function(t,n,r){var l=t.getUTCHours();return l===0&&(l=24),n==="ko"?r.ordinalNumber(l,{unit:"hour"}):ir(l,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Os.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Os.s(t,n)},S:function(t,n){return Os.S(t,n)},X:function(t,n,r,l){var i=l._originalDate||t,o=i.getTimezoneOffset();if(o===0)return"Z";switch(n){case"X":return RD(o);case"XXXX":case"XX":return Eu(o);case"XXXXX":case"XXX":default:return Eu(o,":")}},x:function(t,n,r,l){var i=l._originalDate||t,o=i.getTimezoneOffset();switch(n){case"x":return RD(o);case"xxxx":case"xx":return Eu(o);case"xxxxx":case"xxx":default:return Eu(o,":")}},O:function(t,n,r,l){var i=l._originalDate||t,o=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+ED(o,":");case"OOOO":default:return"GMT"+Eu(o,":")}},z:function(t,n,r,l){var i=l._originalDate||t,o=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+ED(o,":");case"zzzz":default:return"GMT"+Eu(o,":")}},t:function(t,n,r,l){var i=l._originalDate||t,o=Math.floor(i.getTime()/1e3);return ir(o,n.length)},T:function(t,n,r,l){var i=l._originalDate||t,o=i.getTime();return ir(o,n.length)}};function ED(e,t){var n=e>0?"-":"+",r=Math.abs(e),l=Math.floor(r/60),i=r%60;if(i===0)return n+String(l);var o=t;return n+String(l)+o+ir(i,2)}function RD(e,t){if(e%60===0){var n=e>0?"-":"+";return n+ir(Math.abs(e)/60,2)}return Eu(e,t)}function Eu(e,t){var n=t||"",r=e>0?"-":"+",l=Math.abs(e),i=ir(Math.floor(l/60),2),o=ir(l%60,2);return r+i+n+o}var LD=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},nW=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},Hhe=function(t,n){var r=t.match(/(P+)(p+)?/)||[],l=r[1],i=r[2];if(!i)return LD(t,n);var o;switch(l){case"P":o=n.dateTime({width:"short"});break;case"PP":o=n.dateTime({width:"medium"});break;case"PPP":o=n.dateTime({width:"long"});break;case"PPPP":default:o=n.dateTime({width:"full"});break}return o.replace("{{date}}",LD(l,n)).replace("{{time}}",nW(i,n))},US={p:nW,P:Hhe},Vhe=["D","DD"],Ghe=["YY","YYYY"];function rW(e){return Vhe.indexOf(e)!==-1}function aW(e){return Ghe.indexOf(e)!==-1}function Oy(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Yhe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Xhe=function(t,n,r){var l,i=Yhe[t];return typeof i=="string"?l=i:n===1?l=i.one:l=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+l:l+" ago":l};function W_(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var Khe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Zhe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Qhe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Jhe={date:W_({formats:Khe,defaultWidth:"full"}),time:W_({formats:Zhe,defaultWidth:"full"}),dateTime:W_({formats:Qhe,defaultWidth:"full"})},eme={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},tme=function(t,n,r,l){return eme[t]};function Lp(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",l;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):i;l=e.formattingValues[o]||e.formattingValues[i]}else{var a=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;l=e.values[s]||e.values[a]}var u=e.argumentCallback?e.argumentCallback(t):t;return l[u]}}var nme={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},rme={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ame={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ome={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ime={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},lme={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},sme=function(t,n){var r=Number(t),l=r%100;if(l>20||l<10)switch(l%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},ume={ordinalNumber:sme,era:Lp({values:nme,defaultWidth:"wide"}),quarter:Lp({values:rme,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Lp({values:ame,defaultWidth:"wide"}),day:Lp({values:ome,defaultWidth:"wide"}),dayPeriod:Lp({values:ime,defaultWidth:"wide",formattingValues:lme,defaultFormattingWidth:"wide"})};function Ip(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,l=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(l);if(!i)return null;var o=i[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(a)?dme(a,function(d){return d.test(o)}):cme(a,function(d){return d.test(o)}),u;u=e.valueCallback?e.valueCallback(s):s,u=n.valueCallback?n.valueCallback(u):u;var c=t.slice(o.length);return{value:u,rest:c}}}function cme(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function dme(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var l=r[0],i=t.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;var a=t.slice(l.length);return{value:o,rest:a}}}var pme=/^(\d+)(th|st|nd|rd)?/i,hme=/\d+/i,mme={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},gme={any:[/^b/i,/^(a|c)/i]},vme={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},yme={any:[/1/i,/2/i,/3/i,/4/i]},bme={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},xme={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},wme={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},_me={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Tme={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Sme={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},kme={ordinalNumber:fme({matchPattern:pme,parsePattern:hme,valueCallback:function(t){return parseInt(t,10)}}),era:Ip({matchPatterns:mme,defaultMatchWidth:"wide",parsePatterns:gme,defaultParseWidth:"any"}),quarter:Ip({matchPatterns:vme,defaultMatchWidth:"wide",parsePatterns:yme,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Ip({matchPatterns:bme,defaultMatchWidth:"wide",parsePatterns:xme,defaultParseWidth:"any"}),day:Ip({matchPatterns:wme,defaultMatchWidth:"wide",parsePatterns:_me,defaultParseWidth:"any"}),dayPeriod:Ip({matchPatterns:Tme,defaultMatchWidth:"any",parsePatterns:Sme,defaultParseWidth:"any"})},zb={code:"en-US",formatDistance:Xhe,formatLong:Jhe,formatRelative:tme,localize:ume,match:kme,options:{weekStartsOn:0,firstWeekContainsDate:1}},Cme=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Mme=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Pme=/^'([^]*?)'?$/,Ome=/''/g,Ame=/[a-zA-Z]/;function oW(e,t,n){var r,l,i,o,a,s,u,c,d,f,p,h,g,b,v,m,y,x;xn(2,arguments);var _=String(t),w=gu(),S=(r=(l=n==null?void 0:n.locale)!==null&&l!==void 0?l:w.locale)!==null&&r!==void 0?r:zb,k=Pr((i=(o=(a=(s=n==null?void 0:n.firstWeekContainsDate)!==null&&s!==void 0?s:n==null||(u=n.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&a!==void 0?a:w.firstWeekContainsDate)!==null&&o!==void 0?o:(d=w.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(k>=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=Pr((p=(h=(g=(b=n==null?void 0:n.weekStartsOn)!==null&&b!==void 0?b:n==null||(v=n.locale)===null||v===void 0||(m=v.options)===null||m===void 0?void 0:m.weekStartsOn)!==null&&g!==void 0?g:w.weekStartsOn)!==null&&h!==void 0?h:(y=w.locale)===null||y===void 0||(x=y.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&p!==void 0?p:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!S.localize)throw new RangeError("locale must contain localize property");if(!S.formatLong)throw new RangeError("locale must contain formatLong property");var T=wn(e);if(!ZB(T))throw new RangeError("Invalid time value");var M=Py(T),O=QB(T,M),D={firstWeekContainsDate:k,weekStartsOn:C,locale:S,_originalDate:T},P=_.match(Mme).map(function(E){var I=E[0];if(I==="p"||I==="P"){var A=US[I];return A(E,S.formatLong)}return E}).join("").match(Cme).map(function(E){if(E==="''")return"'";var I=E[0];if(I==="'")return Dme(E);var A=Uhe[I];if(A)return!(n!=null&&n.useAdditionalWeekYearTokens)&&aW(E)&&Oy(E,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&rW(E)&&Oy(E,t,String(e)),A(O,E,S.localize,D);if(I.match(Ame))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");return E}).join("");return P}function Dme(e){var t=e.match(Pme);return t?t[1].replace(Ome,"'"):e}const Eme=Object.freeze(Object.defineProperty({__proto__:null,default:oW},Symbol.toStringTag,{value:"Module"}));function Rme(e){xn(1,arguments);var t=wn(e),n=t.getDate();return n}function Lme(e){xn(1,arguments);var t=wn(e),n=t.getDay();return n}function iW(e){xn(1,arguments);var t=wn(e),n=t.getFullYear(),r=t.getMonth(),l=new Date(0);return l.setFullYear(n,r+1,0),l.setHours(0,0,0,0),l.getDate()}function Ime(e){xn(1,arguments);var t=wn(e),n=t.getHours();return n}function $me(e){xn(1,arguments);var t=wn(e),n=t.getMinutes();return n}function Nme(e){xn(1,arguments);var t=wn(e),n=t.getMonth();return n}function Fme(e){xn(1,arguments);var t=wn(e),n=t.getSeconds();return n}function jme(e){return xn(1,arguments),wn(e).getFullYear()}function k0(e,t){xn(2,arguments);var n=wn(e),r=wn(t);return n.getTime()>r.getTime()}function Qc(e,t){xn(2,arguments);var n=wn(e),r=wn(t);return n.getTime()e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,a;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return i=u.done,u},e:function(u){o=!0,a=u},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}}}function Vme(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function vr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yy(e,t)}function Ay(e){return Ay=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ay(e)}function Gme(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Yme(e,t){if(t&&(us(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mn(e)}function yr(e){var t=Gme();return function(){var r=Ay(e),l;if(t){var i=Ay(this).constructor;l=Reflect.construct(r,arguments,i)}else l=r.apply(this,arguments);return Yme(this,l)}}function fr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xme(e,t){if(us(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(us(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lW(e){var t=Xme(e,"string");return us(t)==="symbol"?t:String(t)}function Kme(e,t){for(var n=0;n0,r=n?t:1-t,l;if(r<=50)l=e||100;else{var i=r+50,o=Math.floor(i/100)*100,a=e>=i%100;l=e+o-(a?100:0)}return n?l:1-l}function dW(e){return e%400===0||e%4===0&&e%100!==0}var tge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o0}},{key:"set",value:function(l,i,o){var a=l.getUTCFullYear();if(o.isTwoDigitYear){var s=cW(o.year,a);return l.setUTCFullYear(s,0,1),l.setUTCHours(0,0,0,0),l}var u=!("era"in i)||i.era===1?o.year:1-o.year;return l.setUTCFullYear(u,0,1),l.setUTCHours(0,0,0,0),l}}]),n}(Cr),nge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o0}},{key:"set",value:function(l,i,o,a){var s=k5(l,a);if(o.isTwoDigitYear){var u=cW(o.year,s);return l.setUTCFullYear(u,0,a.firstWeekContainsDate),l.setUTCHours(0,0,0,0),sc(l,a)}var c=!("era"in i)||i.era===1?o.year:1-o.year;return l.setUTCFullYear(c,0,a.firstWeekContainsDate),l.setUTCHours(0,0,0,0),sc(l,a)}}]),n}(Cr),rge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=4}},{key:"set",value:function(l,i,o){return l.setUTCMonth((o-1)*3,1),l.setUTCHours(0,0,0,0),l}}]),n}(Cr),ige=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=4}},{key:"set",value:function(l,i,o){return l.setUTCMonth((o-1)*3,1),l.setUTCHours(0,0,0,0),l}}]),n}(Cr),lge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=11}},{key:"set",value:function(l,i,o){return l.setUTCMonth(o,1),l.setUTCHours(0,0,0,0),l}}]),n}(Cr),sge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=11}},{key:"set",value:function(l,i,o){return l.setUTCMonth(o,1),l.setUTCHours(0,0,0,0),l}}]),n}(Cr);function uge(e,t,n){xn(2,arguments);var r=wn(e),l=Pr(t),i=tW(r,n)-l;return r.setUTCDate(r.getUTCDate()-i*7),r}var cge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=53}},{key:"set",value:function(l,i,o,a){return sc(uge(l,o,a),a)}}]),n}(Cr);function dge(e,t){xn(2,arguments);var n=wn(e),r=Pr(t),l=eW(n)-r;return n.setUTCDate(n.getUTCDate()-l*7),n}var fge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=53}},{key:"set",value:function(l,i,o){return nf(dge(l,o))}}]),n}(Cr),pge=[31,28,31,30,31,30,31,31,30,31,30,31],hge=[31,29,31,30,31,30,31,31,30,31,30,31],mge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=hge[s]:i>=1&&i<=pge[s]}},{key:"set",value:function(l,i,o){return l.setUTCDate(o),l.setUTCHours(0,0,0,0),l}}]),n}(Cr),gge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(l,i,o){return l.setUTCMonth(0,o),l.setUTCHours(0,0,0,0),l}}]),n}(Cr);function M5(e,t,n){var r,l,i,o,a,s,u,c;xn(2,arguments);var d=gu(),f=Pr((r=(l=(i=(o=n==null?void 0:n.weekStartsOn)!==null&&o!==void 0?o:n==null||(a=n.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&l!==void 0?l:(u=d.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=wn(e),h=Pr(t),g=p.getUTCDay(),b=h%7,v=(b+7)%7,m=(v=0&&i<=6}},{key:"set",value:function(l,i,o,a){return l=M5(l,o,a),l.setUTCHours(0,0,0,0),l}}]),n}(Cr),yge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=6}},{key:"set",value:function(l,i,o,a){return l=M5(l,o,a),l.setUTCHours(0,0,0,0),l}}]),n}(Cr),bge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=6}},{key:"set",value:function(l,i,o,a){return l=M5(l,o,a),l.setUTCHours(0,0,0,0),l}}]),n}(Cr);function xge(e,t){xn(2,arguments);var n=Pr(t);n%7===0&&(n=n-7);var r=1,l=wn(e),i=l.getUTCDay(),o=n%7,a=(o+7)%7,s=(a=1&&i<=7}},{key:"set",value:function(l,i,o){return l=xge(l,o),l.setUTCHours(0,0,0,0),l}}]),n}(Cr),_ge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=12}},{key:"set",value:function(l,i,o){var a=l.getUTCHours()>=12;return a&&o<12?l.setUTCHours(o+12,0,0,0):!a&&o===12?l.setUTCHours(0,0,0,0):l.setUTCHours(o,0,0,0),l}}]),n}(Cr),Cge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=23}},{key:"set",value:function(l,i,o){return l.setUTCHours(o,0,0,0),l}}]),n}(Cr),Mge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=11}},{key:"set",value:function(l,i,o){var a=l.getUTCHours()>=12;return a&&o<12?l.setUTCHours(o+12,0,0,0):l.setUTCHours(o,0,0,0),l}}]),n}(Cr),Pge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=24}},{key:"set",value:function(l,i,o){var a=o<=24?o%24:o;return l.setUTCHours(a,0,0,0),l}}]),n}(Cr),Oge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=59}},{key:"set",value:function(l,i,o){return l.setUTCMinutes(o,0,0),l}}]),n}(Cr),Age=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=59}},{key:"set",value:function(l,i,o){return l.setUTCSeconds(o,0),l}}]),n}(Cr),Dge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=Pr((h=(g=(b=(v=r==null?void 0:r.weekStartsOn)!==null&&v!==void 0?v:r==null||(m=r.locale)===null||m===void 0||(y=m.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&b!==void 0?b:k.weekStartsOn)!==null&&g!==void 0?g:(x=k.locale)===null||x===void 0||(_=x.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&h!==void 0?h:0);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(S==="")return w===""?wn(n):new Date(NaN);var O={firstWeekContainsDate:T,weekStartsOn:M,locale:C},D=[new Jme],P=S.match(Fge).map(function(H){var G=H[0];if(G in US){var te=US[G];return te(H,C.formatLong)}return H}).join("").match(Nge),E=[],I=ND(P),A;try{var F=function(){var G=A.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&aW(G)&&Oy(G,S,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&rW(G)&&Oy(G,S,e);var te=G[0],ee=$ge[te];if(ee){var U=ee.incompatibleTokens;if(Array.isArray(U)){var Q=E.find(function(X){return U.includes(X.token)||X.token===te});if(Q)throw new RangeError("The format string mustn't contain `".concat(Q.fullToken,"` and `").concat(G,"` at the same time"))}else if(ee.incompatibleTokens==="*"&&E.length>0)throw new RangeError("The format string mustn't contain `".concat(G,"` and any other token at the same time"));E.push({token:te,fullToken:G});var V=ee.run(w,G,C.match,O);if(!V)return{v:new Date(NaN)};D.push(V.setter),w=V.rest}else{if(te.match(Wge))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");if(G==="''"?G="'":te==="'"&&(G=Uge(G)),w.indexOf(G)===0)w=w.slice(G.length);else return{v:new Date(NaN)}}};for(I.s();!(A=I.n()).done;){var j=F();if(us(j)==="object")return j.v}}catch(H){I.e(H)}finally{I.f()}if(w.length>0&&Bge.test(w))return new Date(NaN);var B=D.map(function(H){return H.priority}).sort(function(H,G){return G-H}).filter(function(H,G,te){return te.indexOf(H)===G}).map(function(H){return D.filter(function(G){return G.priority===H}).sort(function(G,te){return te.subPriority-G.subPriority})}).map(function(H){return H[0]}),z=wn(n);if(isNaN(z.getTime()))return new Date(NaN);var N=QB(z,Py(z)),R={},q=ND(B),Y;try{for(q.s();!(Y=q.n()).done;){var L=Y.value;if(!L.validate(N,O))return new Date(NaN);var W=L.set(N,R,O);Array.isArray(W)?(N=W[0],Vme(R,W[1])):N=W}}catch(H){q.e(H)}finally{q.f()}return N}function Uge(e){return e.match(jge)[1].replace(zge,"'")}function Hge(e,t){xn(2,arguments);var n=wn(e),r=Pr(t);return n.setDate(r),n}function Vge(e,t){xn(2,arguments);var n=wn(e),r=Pr(t);return n.setHours(r),n}function Gge(e,t){xn(2,arguments);var n=wn(e),r=Pr(t);return n.setMinutes(r),n}function Yge(e,t){xn(2,arguments);var n=wn(e),r=Pr(t),l=n.getFullYear(),i=n.getDate(),o=new Date(0);o.setFullYear(l,r,15),o.setHours(0,0,0,0);var a=iW(o);return n.setMonth(r,Math.min(i,a)),n}function Xge(e,t){xn(2,arguments);var n=wn(e),r=Pr(t);return n.setSeconds(r),n}function Kge(e,t){xn(2,arguments);var n=wn(e),r=Pr(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function C0(e){xn(1,arguments);var t=wn(e);return t.setDate(1),t.setHours(0,0,0,0),t}function q_(e,t){var n,r,l,i,o,a,s,u;xn(1,arguments);var c=gu(),d=Pr((n=(r=(l=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(a=o.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&l!==void 0?l:c.weekStartsOn)!==null&&r!==void 0?r:(s=c.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=wn(e),p=f.getDay(),h=(p2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],P0.timeZoneDelimiter.test(t.date)&&(t.date=e.split(P0.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var l=P0.timezone.exec(r);l?(t.time=r.replace(l[1],""),t.timezone=l[1]):t.time=r}return t}function t0e(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var l=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?l:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function n0e(e,t){if(t===null)return new Date(NaN);var n=e.match(Zge);if(!n)return new Date(NaN);var r=!!n[4],l=$p(n[1]),i=$p(n[2])-1,o=$p(n[3]),a=$p(n[4]),s=$p(n[5])-1;if(r)return u0e(t,a,s)?o0e(t,a,s):new Date(NaN);var u=new Date(0);return!l0e(t,i,o)||!s0e(t,l)?new Date(NaN):(u.setUTCFullYear(t,i,Math.max(l,o)),u)}function $p(e){return e?parseInt(e):1}function r0e(e){var t=e.match(Qge);if(!t)return NaN;var n=U_(t[1]),r=U_(t[2]),l=U_(t[3]);return c0e(n,r,l)?n*Fb+r*Nb+l*1e3:NaN}function U_(e){return e&&parseFloat(e.replace(",","."))||0}function a0e(e){if(e==="Z")return 0;var t=e.match(Jge);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),l=t[3]&&parseInt(t[3])||0;return d0e(r,l)?n*(r*Fb+l*Nb):NaN}function o0e(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var l=r.getUTCDay()||7,i=(t-1)*7+n+1-l;return r.setUTCDate(r.getUTCDate()+i),r}var i0e=[31,null,31,30,31,30,31,31,30,31,30,31];function pW(e){return e%400===0||e%4===0&&e%100!==0}function l0e(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(i0e[t]||(pW(e)?29:28))}function s0e(e,t){return t>=1&&t<=(pW(e)?366:365)}function u0e(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function c0e(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function d0e(e,t){return t>=0&&t<=59}const f0e=Object.freeze(Object.defineProperty({__proto__:null,default:fW},Symbol.toStringTag,{value:"Module"}));function p0e(e,t){var n,r;xn(1,arguments);var l=wn(e);if(isNaN(l.getTime()))throw new RangeError("Invalid time value");var i=String((n=t==null?void 0:t.format)!==null&&n!==void 0?n:"extended"),o=String((r=t==null?void 0:t.representation)!==null&&r!==void 0?r:"complete");if(i!=="extended"&&i!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(o!=="date"&&o!=="time"&&o!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var a="",s="",u=i==="extended"?"-":"",c=i==="extended"?":":"";if(o!=="time"){var d=ir(l.getDate(),2),f=ir(l.getMonth()+1,2),p=ir(l.getFullYear(),4);a="".concat(p).concat(u).concat(f).concat(u).concat(d)}if(o!=="date"){var h=l.getTimezoneOffset();if(h!==0){var g=Math.abs(h),b=ir(Math.floor(g/60),2),v=ir(g%60,2),m=h<0?"+":"-";s="".concat(m).concat(b,":").concat(v)}else s="Z";var y=ir(l.getHours(),2),x=ir(l.getMinutes(),2),_=ir(l.getSeconds(),2),w=a===""?"":"T",S=[y,x,_].join(c);a="".concat(a).concat(w).concat(S).concat(s)}return a}function h0e(e,t){xn(2,arguments);var n=wn(e).getTime(),r=wn(t.start).getTime(),l=wn(t.end).getTime();if(!(r<=l))throw new RangeError("Invalid interval");return n>=r&&n<=l}var HS={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(s,u){switch(s){case"P":return u.date({width:"short"});case"PP":return u.date({width:"medium"});case"PPP":return u.date({width:"long"});case"PPPP":default:return u.date({width:"full"})}},r=function(s,u){switch(s){case"p":return u.time({width:"short"});case"pp":return u.time({width:"medium"});case"ppp":return u.time({width:"long"});case"pppp":default:return u.time({width:"full"})}},l=function(s,u){var c=s.match(/(P+)(p+)?/)||[],d=c[1],f=c[2];if(!f)return n(s,u);var p;switch(d){case"P":p=u.dateTime({width:"short"});break;case"PP":p=u.dateTime({width:"medium"});break;case"PPP":p=u.dateTime({width:"long"});break;case"PPPP":default:p=u.dateTime({width:"full"});break}return p.replace("{{date}}",n(d,u)).replace("{{time}}",r(f,u))},i={p:r,P:l},o=i;t.default=o,e.exports=t.default})(HS,HS.exports);var m0e=HS.exports;const hW=dr(m0e),g0e={dayOfMonth:"d",fullDate:"PP",fullDateWithWeekday:"PPPP",fullDateTime:"PP p",fullDateTime12h:"PP hh:mm aaa",fullDateTime24h:"PP HH:mm",fullTime:"p",fullTime12h:"hh:mm aaa",fullTime24h:"HH:mm",hours12h:"hh",hours24h:"HH",keyboardDate:"P",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aaa",keyboardDateTime24h:"P HH:mm",minutes:"mm",month:"LLLL",monthAndDate:"MMMM d",monthAndYear:"LLLL yyyy",monthShort:"MMM",weekday:"EEEE",weekdayShort:"EEE",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",seconds:"ss",shortDate:"MMM d",year:"yyyy"};class v0e{constructor({locale:t,formats:n}={}){this.lib="date-fns",this.is12HourCycleInCurrentLocale=()=>{var r;return this.locale?/a/.test((r=this.locale.formatLong)===null||r===void 0?void 0:r.time()):!0},this.getFormatHelperText=r=>{var l,i;const o=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,a=this.locale||zb;return(i=(l=r.match(o))===null||l===void 0?void 0:l.map(s=>{const u=s[0];if(u==="p"||u==="P"){const c=hW[u];return c(s,a.formatLong,{})}return s}).join("").replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase())!==null&&i!==void 0?i:r},this.parseISO=r=>fW(r),this.toISO=r=>p0e(r,{format:"extended"}),this.getCurrentLocaleCode=()=>{var r;return((r=this.locale)===null||r===void 0?void 0:r.code)||"en-US"},this.addSeconds=(r,l)=>ghe(r,l),this.addMinutes=(r,l)=>yhe(r,l),this.addHours=(r,l)=>xhe(r,l),this.addDays=(r,l)=>BS(r,l),this.addWeeks=(r,l)=>whe(r,l),this.addMonths=(r,l)=>wv(r,l),this.addYears=(r,l)=>OD(r,l),this.isValid=r=>ZB(this.date(r)),this.getDiff=(r,l,i)=>{var o;const a=(o=this.date(l))!==null&&o!==void 0?o:r;if(!this.isValid(a))return 0;switch(i){case"years":return The(r,a);case"quarters":return Mhe(r,a);case"months":return XB(r,a);case"weeks":return Ahe(r,a);case"days":return KB(r,a);case"hours":return Ehe(r,a);case"minutes":return Rhe(r,a);case"seconds":return Lhe(r,a);default:return jb(r,a)}},this.isAfter=(r,l)=>k0(r,l),this.isBefore=(r,l)=>Qc(r,l),this.startOfDay=r=>tf(r),this.endOfDay=r=>WS(r),this.getHours=r=>Ime(r),this.setHours=(r,l)=>Vge(r,l),this.setMinutes=(r,l)=>Gge(r,l),this.getSeconds=r=>Fme(r),this.setSeconds=(r,l)=>Xge(r,l),this.isSameDay=(r,l)=>Bme(r,l),this.isSameMonth=(r,l)=>qme(r,l),this.isSameYear=(r,l)=>Wme(r,l),this.isSameHour=(r,l)=>Ume(r,l),this.startOfYear=r=>M0(r),this.endOfYear=r=>B_(r),this.startOfMonth=r=>C0(r),this.endOfMonth=r=>qS(r),this.startOfWeek=r=>q_(r,{locale:this.locale}),this.endOfWeek=r=>z_(r,{locale:this.locale}),this.getYear=r=>jme(r),this.setYear=(r,l)=>Kge(r,l),this.date=r=>typeof r>"u"?new Date:r===null?null:new Date(r),this.toJsDate=r=>r,this.parse=(r,l)=>r===""?null:qge(r,l,new Date,{locale:this.locale}),this.format=(r,l)=>this.formatByString(r,this.formats[l]),this.formatByString=(r,l)=>oW(r,l,{locale:this.locale}),this.isEqual=(r,l)=>r===null&&l===null?!0:zme(r,l),this.isNull=r=>r===null,this.isAfterDay=(r,l)=>k0(r,WS(l)),this.isBeforeDay=(r,l)=>Qc(r,tf(l)),this.isBeforeYear=(r,l)=>Qc(r,M0(l)),this.isAfterYear=(r,l)=>k0(r,B_(l)),this.isWithinRange=(r,[l,i])=>h0e(r,{start:l,end:i}),this.formatNumber=r=>r,this.getMinutes=r=>$me(r),this.getDate=r=>Rme(r),this.setDate=(r,l)=>Hge(r,l),this.getMonth=r=>Nme(r),this.getDaysInMonth=r=>iW(r),this.setMonth=(r,l)=>Yge(r,l),this.getMeridiemText=r=>r==="am"?"AM":"PM",this.getNextMonth=r=>wv(r,1),this.getPreviousMonth=r=>wv(r,-1),this.getMonthArray=r=>{const i=[M0(r)];for(;i.length<12;){const o=i[i.length-1];i.push(this.getNextMonth(o))}return i},this.mergeDateAndTime=(r,l)=>this.setSeconds(this.setMinutes(this.setHours(r,this.getHours(l)),this.getMinutes(l)),this.getSeconds(l)),this.getWeekdays=()=>{const r=new Date;return Ihe({start:q_(r,{locale:this.locale}),end:z_(r,{locale:this.locale})}).map(l=>this.formatByString(l,"EEEEEE"))},this.getWeekArray=r=>{const l=q_(C0(r),{locale:this.locale}),i=z_(qS(r),{locale:this.locale});let o=0,a=l;const s=[];let u=null;for(;Qc(a,i);){const c=Math.floor(o/7);s[c]=s[c]||[];const d=Lme(a);u!==d&&(u=d,s[c].push(a),o+=1),a=BS(a,1)}return s},this.getYearRange=(r,l)=>{const i=M0(r),o=B_(l),a=[];let s=i;for(;Qc(s,o);)a.push(s),s=OD(s,1);return a},this.locale=t,this.formats=Object.assign({},g0e,n)}isBeforeMonth(t,n){return Qc(t,C0(n))}isAfterMonth(t,n){return k0(t,C0(n))}}const y0e={y:"year",yy:"year",yyy:"year",yyyy:"year",MMMM:"month",MM:"month",DD:"day",d:"day",dd:"day",H:"hour",HH:"hour",h:"hour",hh:"hour",mm:"minute",ss:"second",a:"am-pm",aa:"am-pm",aaa:"am-pm"};class b0e extends v0e{constructor(...t){super(...t),this.formatTokenMap=y0e,this.expandFormat=n=>{const r=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return n.match(r).map(l=>{const i=l[0];if(i==="p"||i==="P"){const o=hW[i],a=this.locale||zb;return o(l,a.formatLong,{})}return l}).join("")},this.getFormatHelperText=n=>this.expandFormat(n).replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase()}}const x0e=Object.freeze(Object.defineProperty({__proto__:null,AdapterDateFns:b0e},Symbol.toStringTag,{value:"Module"})),mW=er(x0e);function gW(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;te.indexOf(n)!==-1):e.indexOf(t)!==-1}const vW=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},yW=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?yW(t.shadowRoot):t:null};function w0e(e){return gn("PrivatePickersMonth",e)}const VS=fn("PrivatePickersMonth",["root","selected"]),_0e=["disabled","onSelect","selected","value","tabIndex","hasFocus","onFocus","onBlur"],T0e=e=>{const{classes:t,selected:n}=e;return vn({root:["root",n&&"selected"]},w0e,t)},S0e=Dt(mr,{name:"PrivatePickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${VS.selected}`]:t.selected}]})(({theme:e})=>Yt({flex:"1 0 33.33%",display:"flex",alignItems:"center",justifyContent:"center",color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:ar(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{pointerEvents:"none",color:e.palette.text.secondary},[`&.${VS.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),FD=()=>{},k0e=e=>{const{disabled:t,onSelect:n,selected:r,value:l,tabIndex:i,hasFocus:o,onFocus:a=FD,onBlur:s=FD}=e,u=tr(e,_0e),c=T0e(e),d=()=>{n(l)},f=ge.useRef(null);return Vo(()=>{if(o){var p;(p=f.current)==null||p.focus()}},[o]),Te.jsx(S0e,Yt({ref:f,component:"button",type:"button",className:c.root,tabIndex:i,onClick:d,onKeyDown:vW(d),color:r?"primary":void 0,variant:r?"h5":"subtitle1",disabled:t,onFocus:p=>a(p,l),onBlur:p=>s(p,l)},u))},fa=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:Yt({},e)}}}}),C0e={previousMonth:"Vorige maand",nextMonth:"Volgende maand",openPreviousView:"open vorige view",openNextView:"open volgende view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"jaarweergave is geopend, schakel over naar kalenderweergave":"kalenderweergave is geopend, switch naar jaarweergave",start:"Start",end:"Einde",cancelButtonLabel:"Annuleren",clearButtonLabel:"Resetten",okButtonLabel:"OK",todayButtonLabel:"Vandaag",clockLabelText:(e,t,n)=>`Selecteer ${e}. ${t===null?"Geen tijd geselecteerd":`Geselecteerde tijd is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} uren`,minutesClockNumberText:e=>`${e} minuten`,secondsClockNumberText:e=>`${e} seconden`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Kies datum, geselecteerde datum is ${t.format(t.date(e),"fullDate")}`:"Kies datum",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Kies tijd, geselecteerde tijd is ${t.format(t.date(e),"fullTime")}`:"Kies tijd",timeTableLabel:"kies tijd",dateTableLabel:"kies datum"},M0e=fa(C0e),P0e={previousMonth:"Poprzedni miesiąc",nextMonth:"Następny miesiąc",openPreviousView:"otwórz poprzedni widok",openNextView:"otwórz następny widok",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"otwarty jest widok roku, przełącz na widok kalendarza":"otwarty jest widok kalendarza, przełącz na widok roku",start:"Początek",end:"Koniec",cancelButtonLabel:"Anuluj",clearButtonLabel:"Wyczyść",okButtonLabel:"Zatwierdź",todayButtonLabel:"Dzisiaj",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"Nie wybrano czasu":`Wybrany czas to ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} godzin`,minutesClockNumberText:e=>`${e} minut`,secondsClockNumberText:e=>`${e} sekund`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Wybierz datę, obecnie wybrana data to ${t.format(t.date(e),"fullDate")}`:"Wybierz datę",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Wybierz czas, obecnie wybrany czas to ${t.format(t.date(e),"fullTime")}`:"Wybierz czas",timeTableLabel:"wybierz czas",dateTableLabel:"wybierz datę"},O0e=fa(P0e),A0e={previousMonth:"Mês anterior",nextMonth:"Próximo mês",openPreviousView:"Abrir próxima seleção",openNextView:"Abrir seleção anterior",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"Seleção de ano está aberta, alternando para seleção de calendário":"Seleção de calendários está aberta, alternando para seleção de ano",start:"Início",end:"Fim",cancelButtonLabel:"Cancelar",clearButtonLabel:"Limpar",okButtonLabel:"OK",todayButtonLabel:"Hoje",datePickerDefaultToolbarTitle:"Selecione a data",dateTimePickerDefaultToolbarTitle:"Selecione data e hora",timePickerDefaultToolbarTitle:"Selecione a hora",dateRangePickerDefaultToolbarTitle:"Selecione o intervalo entre datas",clockLabelText:(e,t,n)=>`Selecione ${e}. ${t===null?"Hora não selecionada":`Selecionado a hora ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} horas`,minutesClockNumberText:e=>`${e} minutos`,secondsClockNumberText:e=>`${e} segundos`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Escolha uma data, data selecionada ${t.format(t.date(e),"fullDate")}`:"Escolha uma data",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Escolha uma hora, hora selecionada ${t.format(t.date(e),"fullTime")}`:"Escolha uma hora",timeTableLabel:"escolha uma hora",dateTableLabel:"escolha uma data"},D0e=fa(A0e),E0e={previousMonth:"Önceki ay",nextMonth:"Sonraki ay",openPreviousView:"sonraki görünüm",openNextView:"önceki görünüm",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"yıl görünümü açık, takvim görünümüne geç":"takvim görünümü açık, yıl görünümüne geç",inputModeToggleButtonAriaLabel:(e,t)=>e?`metin girişi görünümü açık, şuraya gidin: ${t} görünümü`:`${t} görünüm açık, metin girişi görünümüne gidin`,start:"Başlangıç",end:"Bitiş",cancelButtonLabel:"iptal",clearButtonLabel:"Temizle",okButtonLabel:"Tamam",todayButtonLabel:"Bugün",datePickerDefaultToolbarTitle:"Tarih Seç",dateTimePickerDefaultToolbarTitle:"Tarih & Saat seç",timePickerDefaultToolbarTitle:"Saat seç",dateRangePickerDefaultToolbarTitle:"Tarih aralığı seçin",clockLabelText:(e,t,n)=>`${e} seç. ${t===null?"Zaman seçilmedi":`Seçilen zaman: ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} saat`,minutesClockNumberText:e=>`${e} dakika`,secondsClockNumberText:e=>`${e} saniye`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Tarih seçin, seçilen tarih: ${t.format(e,"fullDate")}`:"Tarih seç",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Saat seçin, seçilen saat: ${t.format(e,"fullTime")}`:"Saat seç",timeTableLabel:"saat seç",dateTableLabel:"tarih seç"},R0e=fa(E0e),O0={hours:"Stunden",minutes:"Minuten",seconds:"Sekunden"},jD={calendar:"Kalenderansicht",clock:"Uhransicht"},L0e={previousMonth:"Letzter Monat",nextMonth:"Nächster Monat",openPreviousView:"Letzte Ansicht öffnen",openNextView:"Nächste Ansicht öffnen",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"Jahresansicht ist geöffnet, zur Kalenderansicht wechseln":"Kalenderansicht ist geöffnet, zur Jahresansicht wechseln",inputModeToggleButtonAriaLabel:(e,t)=>e?`Texteingabeansicht ist geöffnet, zur ${jD[t]} wechseln`:`${jD[t]} ist geöffnet, zur Texteingabeansicht wechseln`,start:"Beginn",end:"Ende",cancelButtonLabel:"Abbrechen",clearButtonLabel:"Löschen",okButtonLabel:"OK",todayButtonLabel:"Heute",datePickerDefaultToolbarTitle:"Datum auswählen",dateTimePickerDefaultToolbarTitle:"Datum & Uhrzeit auswählen",timePickerDefaultToolbarTitle:"Uhrzeit auswählen",dateRangePickerDefaultToolbarTitle:"Datumsbereich auswählen",clockLabelText:(e,t,n)=>{var r;return`${(r=O0[e])!=null?r:e} auswählen. ${t===null?"Keine Uhrzeit ausgewählt":`Gewählte Uhrzeit ist ${n.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} ${O0.hours}`,minutesClockNumberText:e=>`${e} ${O0.minutes}`,secondsClockNumberText:e=>`${e} ${O0.seconds}`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Datum auswählen, gewähltes Datum ist ${t.format(t.date(e),"fullDate")}`:"Datum auswählen",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Uhrzeit auswählen, gewählte Uhrzeit ist ${t.format(t.date(e),"fullTime")}`:"Uhrzeit auswählen",timeTableLabel:"Uhrzeit auswählen",dateTableLabel:"Datum auswählen"},I0e=fa(L0e),$0e={hours:"las horas",minutes:"los minutos",seconds:"los segundos"},N0e={previousMonth:"Último mes",nextMonth:"Próximo mes",openPreviousView:"abrir la última vista",openNextView:"abrir la siguiente vista",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"la vista del año está abierta, cambie a la vista de calendario":"la vista de calendario está abierta, cambie a la vista del año",inputModeToggleButtonAriaLabel:(e,t)=>e?`la vista de entrada de texto está abierta, ir a la vista ${t}`:`la vista ${t} está abierta, ir a la vista de entrada de texto`,start:"Empezar",end:"Terminar",cancelButtonLabel:"Cancelar",clearButtonLabel:"Limpiar",okButtonLabel:"OK",todayButtonLabel:"Hoy",datePickerDefaultToolbarTitle:"Seleccionar fecha",dateTimePickerDefaultToolbarTitle:"Seleccionar fecha & hora",timePickerDefaultToolbarTitle:"Seleccionar hora",dateRangePickerDefaultToolbarTitle:"Seleccionar rango de fecha",clockLabelText:(e,t,n)=>`Seleccione ${$0e[e]}. ${t===null?"Sin tiempo seleccionado":`El tiempo seleccionado es ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} horas`,minutesClockNumberText:e=>`${e} minutos`,secondsClockNumberText:e=>`${e} segundos`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Elige la fecha, la fecha elegida es ${t.format(t.date(e),"fullDate")}`:"Elige la fecha",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Elige la hora, la hora elegido es ${t.format(t.date(e),"fullTime")}`:"Elige la hora",timeTableLabel:"elige la fecha",dateTableLabel:"elige la hora"},F0e=fa(N0e),j0e={previousMonth:"ماه گذشته",nextMonth:"ماه آینده",openPreviousView:"نمای قبلی",openNextView:"نمای بعدی",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"نمای سال باز است، رفتن به نمای تقویم":"نمای تقویم باز است، رفتن به نمای سال",inputModeToggleButtonAriaLabel:(e,t)=>e?`نمای ورودی متن باز است، رفتن به نمای ${t}`:`نمای ${t} باز است، رفتن به نمای ورودی متن`,start:"شروع",end:"پایان",cancelButtonLabel:"لغو",clearButtonLabel:"پاک کردن",okButtonLabel:"اوکی",todayButtonLabel:"امروز",datePickerDefaultToolbarTitle:"تاریخ را انتخاب کنید",dateTimePickerDefaultToolbarTitle:"تاریخ و ساعت را انتخاب کنید",timePickerDefaultToolbarTitle:"ساعت را انتخاب کنید",dateRangePickerDefaultToolbarTitle:"محدوده تاریخ را انتخاب کنید",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"هیچ ساعتی انتخاب نشده است":`ساعت انتخاب ${n.format(t,"fullTime")} می باشد`}`,hoursClockNumberText:e=>`${e} ساعت ها`,minutesClockNumberText:e=>`${e} دقیقه ها`,secondsClockNumberText:e=>`${e} ثانیه ها`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`تاریخ را انتخاب کنید، تاریخ انتخاب شده ${t.format(t.date(e),"fullDate")} می باشد`:"تاریخ را انتخاب کنید",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`ساعت را انتخاب کنید، ساعت انتخاب شده ${t.format(t.date(e),"fullTime")} می باشد`:"ساعت را انتخاب کنید",timeTableLabel:"انتخاب تاریخ",dateTableLabel:"انتخاب ساعت"},z0e=fa(j0e),B0e={hours:"tunnit",minutes:"minuutit",seconds:"sekuntit"},zD={calendar:"kalenteri",clock:"kello"},W0e={previousMonth:"Edellinen kuukausi",nextMonth:"Seuraava kuukausi",openPreviousView:"avaa edellinen kuukausi",openNextView:"avaa seuraava kuukausi",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"vuosinäkymä on auki, vaihda kalenterinäkymään":"kalenterinäkymä on auki, vaihda vuosinäkymään",inputModeToggleButtonAriaLabel:(e,t)=>e?`tekstikenttä on auki, mene ${zD[t]}näkymään`:`${zD[t]}näkymä on auki, mene tekstikenttään`,start:"Alku",end:"Loppu",cancelButtonLabel:"Peruuta",clearButtonLabel:"Tyhjennä",okButtonLabel:"OK",todayButtonLabel:"Tänään",datePickerDefaultToolbarTitle:"Valitse päivä",dateTimePickerDefaultToolbarTitle:"Valitse päivä ja aika",timePickerDefaultToolbarTitle:"Valitse aika",dateRangePickerDefaultToolbarTitle:"Valitse aikaväli",clockLabelText:(e,t,n)=>`Valitse ${B0e[e]}. ${t===null?"Ei aikaa valittuna":`Valittu aika on ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} tuntia`,minutesClockNumberText:e=>`${e} minuuttia`,secondsClockNumberText:e=>`${e} sekunttia`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Valitse päivä, valittu päivä on ${t.format(t.date(e),"fullDate")}`:"Valitse päivä",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Valitse aika, valittu aika on ${t.format(t.date(e),"fullTime")}`:"Valitse aika",timeTableLabel:"valitse aika",dateTableLabel:"valitse päivä"},q0e=fa(W0e),U0e={hours:"Hodiny",minutes:"Minuty",seconds:"Sekundy"},BD={calendar:"kalendáře",clock:"času"},H0e={previousMonth:"Další měsíc",nextMonth:"Předchozí month",openPreviousView:"otevřít předchozí zobrazení",openNextView:"otevřít další zobrazení",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"roční zobrazení otevřeno, přepněte do zobrazení kalendáře":"zobrazení kalendáře otevřeno, přepněte do zobrazení roku",inputModeToggleButtonAriaLabel:(e,t)=>e?`Zobrazení pro zadávání textu je otevřené, přepněte do zobrazení ${BD[t]}`:`Zobrazení ${BD[t]} je otevřené, přepněte do zobrazení textového pole`,start:"Začátek",end:"Konec",cancelButtonLabel:"Zrušit",clearButtonLabel:"Vymazat",okButtonLabel:"Potvrdit",todayButtonLabel:"Dnes",datePickerDefaultToolbarTitle:"Vyberte datum",dateTimePickerDefaultToolbarTitle:"Vyberte datum a čas",timePickerDefaultToolbarTitle:"Vyberte čas",dateRangePickerDefaultToolbarTitle:"Vyberete rozmezí dat",clockLabelText:(e,t,n)=>{var r;return`${(r=U0e[e])!=null?r:e} vybrány. ${t===null?"Není vybrán čas":`Vybraný čas je ${n.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} hodin`,minutesClockNumberText:e=>`${e} minut`,secondsClockNumberText:e=>`${e} sekund`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Vybrané datum, vybrané datum je ${t.format(e,"fullDate")}`:"Vyberte datum",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Vybrané čas, vybraný čas je ${t.format(e,"fullTime")}`:"Vyberte čas",timeTableLabel:"vyberte čas",dateTableLabel:"vyberte datum"},V0e=fa(H0e),G0e={hours:"heures",minutes:"minutes",seconds:"secondes"},WD={calendar:"calendrier",clock:"horloge"},Y0e={previousMonth:"Mois précédent",nextMonth:"Mois suivant",openPreviousView:"Ouvrir la vue précédente",openNextView:"Ouvrir la vue suivante",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"La vue année est ouverte, ouvrir la vue calendrier":"La vue calendrier est ouverte, ouvrir la vue année",inputModeToggleButtonAriaLabel:(e,t)=>e?`passer du champ text au ${WD[t]}`:`passer du ${WD[t]} au champ text`,start:"Début",end:"Fin",cancelButtonLabel:"Annuler",clearButtonLabel:"Vider",okButtonLabel:"OK",todayButtonLabel:"Aujourd'hui",clockLabelText:(e,t,n)=>`Choix des ${G0e[e]}. ${t===null?"Aucune heure choisie":`L'heure choisie est ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} heures`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} secondes`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choisir la date, la date sélectionnée est ${t.format(t.date(e),"fullDate")}`:"Choisir la date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choisir l'heure, l'heure sélectionnée est ${t.format(t.date(e),"fullTime")}`:"Choisir l'heure",timeTableLabel:"choix de l'heure",dateTableLabel:"choix de la date"},X0e=fa(Y0e),A0={hours:"Óra",minutes:"Perc",seconds:"Másodperc"},qD={calendar:"naptár",clock:"óra"},K0e={previousMonth:"Előző hónap",nextMonth:"Következő hónap",openPreviousView:"Előző nézet megnyitása",openNextView:"Következő nézet megnyitása",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"az évválasztó már nyitva, váltson a naptárnézetre":"a naptárnézet már nyitva, váltson az évválasztóra",inputModeToggleButtonAriaLabel:(e,t)=>e?`szöveges beviteli nézet aktív, váltás ${qD[t]} nézetre`:`${qD[t]} beviteli nézet aktív, váltás szöveges beviteli nézetre`,start:"Kezdő dátum",end:"Záró dátum",cancelButtonLabel:"Mégse",clearButtonLabel:"Törlés",okButtonLabel:"OK",todayButtonLabel:"Ma",datePickerDefaultToolbarTitle:"Dátum kiválasztása",dateTimePickerDefaultToolbarTitle:"Dátum és idő kiválasztása",timePickerDefaultToolbarTitle:"Idő kiválasztása",dateRangePickerDefaultToolbarTitle:"Dátumhatárok kiválasztása",clockLabelText:(e,t,n)=>{var r;return`${(r=A0[e])!=null?r:e} kiválasztása. ${t===null?"Nincs kiválasztva idő":`A kiválasztott idő ${n.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} ${A0.hours.toLowerCase()}`,minutesClockNumberText:e=>`${e} ${A0.minutes.toLowerCase()}`,secondsClockNumberText:e=>`${e} ${A0.seconds.toLowerCase()}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Válasszon dátumot, a kiválasztott dátum: ${t.format(e,"fullDate")}`:"Válasszon dátumot",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Válasszon időt, a kiválasztott idő: ${t.format(e,"fullTime")}`:"Válasszon időt",timeTableLabel:"válasszon időt",dateTableLabel:"válasszon dátumot"},Z0e=fa(K0e),bW={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",inputModeToggleButtonAriaLabel:(e,t)=>e?`text input view is open, go to ${t} view`:`${t} view is open, go to text input view`,start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerDefaultToolbarTitle:"Select date",dateTimePickerDefaultToolbarTitle:"Select date & time",timePickerDefaultToolbarTitle:"Select time",dateRangePickerDefaultToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose date, selected date is ${t.format(t.date(e),"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose time, selected time is ${t.format(t.date(e),"fullTime")}`:"Choose time",timeTableLabel:"pick time",dateTableLabel:"pick date"},xW=bW,Q0e=fa(bW),J0e={previousMonth:"Forrige måned",nextMonth:"Neste måned",openPreviousView:"åpne forrige visning",openNextView:"åpne neste visning",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"årsvisning er åpen, bytt til kalendervisning":"kalendervisning er åpen, bytt til årsvisning",start:"Start",end:"Slutt",cancelButtonLabel:"Avbryt",clearButtonLabel:"Fjern",okButtonLabel:"OK",todayButtonLabel:"I dag",clockLabelText:(e,t,n)=>`Velg ${e}. ${t===null?"Ingen tid valgt":`Valgt tid er ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} timer`,minutesClockNumberText:e=>`${e} minutter`,secondsClockNumberText:e=>`${e} sekunder`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velg dato, valgt dato er ${t.format(t.date(e),"fullDate")}`:"Velg dato",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velg tid, valgt tid er ${t.format(t.date(e),"fullTime")}`:"Velg tid",timeTableLabel:"velg tid",dateTableLabel:"velg dato"},eve=fa(J0e),tve={previousMonth:"Föregående månad",nextMonth:"Nästa månad",openPreviousView:"öppna föregående vy",openNextView:"öppna nästa vy",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"årsvyn är öppen, byt till kalendervy":"kalendervyn är öppen, byt till årsvy",start:"Start",end:"Slut",cancelButtonLabel:"Avbryt",clearButtonLabel:"Rensa",okButtonLabel:"OK",todayButtonLabel:"Idag",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"Ingen tid vald":`Vald tid är ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} timmar`,minutesClockNumberText:e=>`${e} minuter`,secondsClockNumberText:e=>`${e} sekunder`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Välj datum, valt datum är ${t.format(t.date(e),"fullDate")}`:"Välj datum",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Välj tid, vald tid är ${t.format(t.date(e),"fullTime")}`:"Välj tid",timeTableLabel:"välj tid",dateTableLabel:"välj datum"},nve=fa(tve),rve={hours:"le ore",minutes:"i minuti",seconds:"i secondi"},ave={previousMonth:"Mese precedente",nextMonth:"Mese successivo",openPreviousView:"apri la vista precedente",openNextView:"apri la vista successiva",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"la vista dell'anno è aperta, passare alla vista del calendario":"la vista dell'calendario è aperta, passare alla vista dell'anno",inputModeToggleButtonAriaLabel:(e,t)=>e?`la vista del campo di testo è aperta, passare alla vista ${t}`:`la vista aperta è: ${t}, vai alla vista del campo di testo`,start:"Inizio",end:"Fine",cancelButtonLabel:"Cancellare",clearButtonLabel:"Sgomberare",okButtonLabel:"OK",todayButtonLabel:"Oggi",datePickerDefaultToolbarTitle:"Seleziona data",dateTimePickerDefaultToolbarTitle:"Seleziona data e orario",timePickerDefaultToolbarTitle:"Seleziona orario",dateRangePickerDefaultToolbarTitle:"Seleziona intervallo di date",clockLabelText:(e,t,n)=>`Seleziona ${rve[e]}. ${t===null?"Nessun orario selezionato":`L'ora selezionata è ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} ore`,minutesClockNumberText:e=>`${e} minuti`,secondsClockNumberText:e=>`${e} secondi`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Scegli la data, la data selezionata è ${t.format(t.date(e),"fullDate")}`:"Scegli la data",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Scegli l'ora, l'ora selezionata è ${t.format(t.date(e),"fullTime")}`:"Scegli l'ora",timeTableLabel:"scegli un'ora",dateTableLabel:"scegli una data"},ove=fa(ave),ive={hours:"小时",minutes:"分钟",seconds:"秒"},lve={previousMonth:"上个月",nextMonth:"下个月",openPreviousView:"前一个视图",openNextView:"下一个视图",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"年视图已打开,切换为日历视图":"日历视图已打开,切换为年视图",start:"开始",end:"结束",cancelButtonLabel:"取消",clearButtonLabel:"清除",okButtonLabel:"确认",todayButtonLabel:"今天",clockLabelText:(e,t,n)=>`Select ${ive[e]}. ${t===null?"未选择时间":`已选择${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e}小时`,minutesClockNumberText:e=>`${e}分钟`,secondsClockNumberText:e=>`${e}秒`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`选择日期,已选择${t.format(t.date(e),"fullDate")}`:"选择日期",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`选择时间,已选择${t.format(t.date(e),"fullTime")}`:"选择时间",timeTableLabel:"选择时间",dateTableLabel:"选择日期"},sve=fa(lve),uve={hours:"시간을",minutes:"분을",seconds:"초를"},cve={previousMonth:"이전 달",nextMonth:"다음 달",openPreviousView:"이전 화면 보기",openNextView:"다음 화면 보기",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"연도 선택 화면에서 달력 화면으로 전환하기":"달력 화면에서 연도 선택 화면으로 전환하기",inputModeToggleButtonAriaLabel:(e,t)=>e?`텍스트 입력 화면에서 ${t} 화면으로 전환하기`:`${t} 화면에서 텍스트 입력 화면으로 전환하기`,start:"시작",end:"종료",cancelButtonLabel:"취소",clearButtonLabel:"초기화",okButtonLabel:"확인",todayButtonLabel:"오늘",datePickerDefaultToolbarTitle:"날짜 선택하기",dateTimePickerDefaultToolbarTitle:"날짜 & 시간 선택하기",timePickerDefaultToolbarTitle:"시간 선택하기",dateRangePickerDefaultToolbarTitle:"날짜 범위 선택하기",clockLabelText:(e,t,n)=>`${uve[e]} 선택하세요. ${t===null?"시간을 선택하지 않았습니다.":`현재 선택된 시간은 ${n.format(t,"fullTime")}입니다.`}`,hoursClockNumberText:e=>`${e}시간`,minutesClockNumberText:e=>`${e}분`,secondsClockNumberText:e=>`${e}초`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`날짜를 선택하세요. 현재 선택된 날짜는 ${t.format(t.date(e),"fullDate")}입니다.`:"날짜를 선택하세요",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`시간을 선택하세요. 현재 선택된 시간은 ${t.format(t.date(e),"fullTime")}입니다.`:"시간을 선택하세요",timeTableLabel:"선택한 시간",dateTableLabel:"선택한 날짜"},dve=fa(cve),fve={previousMonth:"Fyrri mánuður",nextMonth:"Næsti mánuður",openPreviousView:"opna fyrri skoðun",openNextView:"opna næstu skoðun",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"ársskoðun er opin, skipta yfir í dagatalsskoðun":"dagatalsskoðun er opin, skipta yfir í ársskoðun",inputModeToggleButtonAriaLabel:(e,t)=>{const n=t==="calendar"?"dagatals":"klukku";return e?`textainnsláttur er opinn, fara í ${n}skoðun`:`${n}skoðun er opin, opna fyrir textainnslátt`},start:"Upphaf",end:"Endir",cancelButtonLabel:"Hætta við",clearButtonLabel:"Hreinsa",okButtonLabel:"OK",todayButtonLabel:"Í dag",datePickerDefaultToolbarTitle:"Velja dagsetningu",dateTimePickerDefaultToolbarTitle:"Velja dagsetningu og tíma",timePickerDefaultToolbarTitle:"Velja tíma",dateRangePickerDefaultToolbarTitle:"Velja tímabil",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"Enginn tími valinn":`Valinn tími er ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} klukkustundir`,minutesClockNumberText:e=>`${e} mínútur`,secondsClockNumberText:e=>`${e} sekúndur`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velja dagsetningu, valin dagsetning er ${t.format(t.date(e),"fullDate")}`:"Velja dagsetningu",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velja tíma, valinn tími er ${t.format(t.date(e),"fullTime")}`:"Velja tíma",timeTableLabel:"velja tíma",dateTableLabel:"velja dagsetningu"},pve=fa(fve),D0={hours:"時間",minutes:"分",seconds:"秒"},UD={calendar:"カレンダー表示",clock:"時計表示"},hve={previousMonth:"先月",nextMonth:"来月",openPreviousView:"前の表示を開く",openNextView:"次の表示を開く",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"年選択表示からカレンダー表示に切り替える":"カレンダー表示から年選択表示に切り替える",inputModeToggleButtonAriaLabel:(e,t)=>e?`テキスト入力表示から${UD[t]}に切り替える`:`${UD[t]}からテキスト入力表示に切り替える`,start:"開始",end:"終了",cancelButtonLabel:"キャンセル",clearButtonLabel:"クリア",okButtonLabel:"確定",todayButtonLabel:"今日",datePickerDefaultToolbarTitle:"日付を選択",dateTimePickerDefaultToolbarTitle:"日時を選択",timePickerDefaultToolbarTitle:"時間を選択",dateRangePickerDefaultToolbarTitle:"日付の範囲を選択",clockLabelText:(e,t,n)=>{var r;return`${(r=D0[e])!=null?r:e}を選択してください ${t===null?"時間が選択されていません":`選択した時間は ${n.format(t,"fullTime")} です`}`},hoursClockNumberText:e=>`${e} ${D0.hours}`,minutesClockNumberText:e=>`${e} ${D0.minutes}`,secondsClockNumberText:e=>`${e} ${D0.seconds}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`日付を選択してください。選択した日付は ${t.format(e,"fullDate")} です`:"日付を選択してください",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`時間を選択してください。選択した時間は ${t.format(e,"fullTime")} です`:"時間を選択してください",timeTableLabel:"時間を選択",dateTableLabel:"日付を選択"},mve=fa(hve),gve={previousMonth:"Попередній місяць",nextMonth:"Наступний місяць",openPreviousView:"відкрити попередній вигляд",openNextView:"відкрити наступний вигляд",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"річний вигляд відкрито, перейти до календарного вигляду":"календарний вигляд відкрито, перейти до річного вигляду",inputModeToggleButtonAriaLabel:(e,t)=>e?`текстове поле відкрите, перейти до ${t} вигляду`:`${t} вигляд наразі відкрито, перейти до текстового поля`,start:"Початок",end:"Кінець",cancelButtonLabel:"Відміна",clearButtonLabel:"Очистити",okButtonLabel:"OK",todayButtonLabel:"Сьогодні",datePickerDefaultToolbarTitle:"Вибрати дату",dateTimePickerDefaultToolbarTitle:"Вибрати дату і час",timePickerDefaultToolbarTitle:"Вибрати час",dateRangePickerDefaultToolbarTitle:"Вибрати календарний період",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"Час не вибраний":`Вибрано час ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} годин`,minutesClockNumberText:e=>`${e} хвилин`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Оберіть дату, обрана дата ${t.format(e,"fullDate")}`:"Оберіть дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Оберіть час, обраний час ${t.format(e,"fullTime")}`:"Оберіть час",timeTableLabel:"оберіть час",dateTableLabel:"оберіть дату"},vve=fa(gve),yve={previousMonth:"پچھلا مہینہ",nextMonth:"اگلا مہینہ",openPreviousView:"پچھلا ویو کھولیں",openNextView:"اگلا ویو کھولیں",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"سال والا ویو کھلا ہے۔ کیلنڈر والا ویو کھولیں":"کیلنڈر والا ویو کھلا ہے۔ سال والا ویو کھولیں",inputModeToggleButtonAriaLabel:(e,t)=>e?`،ٹیکسٹ ویو کھلا ہے ${t} ویو کھولیں`:`${t} ویو کھلا ہے، ٹیکسٹ ویو کھولیں`,start:"شروع",end:"ختم",cancelButtonLabel:"کینسل",clearButtonLabel:"کلئیر",okButtonLabel:"اوکے",todayButtonLabel:"آج",datePickerDefaultToolbarTitle:"تاریخ منتخب کریں",dateTimePickerDefaultToolbarTitle:"تاریخ اور وقت منتخب کریں",timePickerDefaultToolbarTitle:"وقت منتخب کریں",dateRangePickerDefaultToolbarTitle:"تاریخوں کی رینج منتخب کریں",clockLabelText:(e,t,n)=>`${e} منتخب کریں ${t===null?"کوئی وقت منتخب نہیں":`منتخب وقت ہے ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} گھنٹے`,minutesClockNumberText:e=>`${e} منٹ`,secondsClockNumberText:e=>`${e} سیکنڈ`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`تاریخ منتخب کریں، منتخب شدہ تاریخ ہے ${t.format(e,"fullDate")}`:"تاریخ منتخب کریں",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`وقت منتخب کریں، منتخب شدہ وقت ہے ${t.format(e,"fullTime")}`:"وقت منتخب کریں",timeTableLabel:"وقت منتخب کریں",dateTableLabel:"تاریخ منتخب کریں"},bve=fa(yve),H_={hours:"гадзіны",minutes:"хвіліны",seconds:"секунды",calendar:"календара",clock:"часу"},xve={previousMonth:"Папярэдні месяц",nextMonth:"Наступны месяц",openPreviousView:"адкрыць папярэдні выгляд",openNextView:"адкрыць наступны выгляд",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"гадавы выгляд адкрыты, перайсці да каляндарнага выгляду":"каляндарны выгляд адкрыты, перайсці да гадавога выгляду",inputModeToggleButtonAriaLabel:(e,t)=>e?`тэкставае поле адкрыта, перайсці да выгляду ${H_[t]}`:`Выгляд ${H_[t]} зараз адкрыты, перайсці да тэкставага поля`,start:"Пачатак",end:"Канец",cancelButtonLabel:"Адмена",clearButtonLabel:"Ачысціць",okButtonLabel:"OK",todayButtonLabel:"Сёння",datePickerDefaultToolbarTitle:"Абраць дату",dateTimePickerDefaultToolbarTitle:"Абраць дату і час",timePickerDefaultToolbarTitle:"Абраць час",dateRangePickerDefaultToolbarTitle:"Абраць каляндарны перыяд",clockLabelText:(e,t,n)=>`Абярыце ${H_[e]}. ${t===null?"Час не абраны":`Абраны час ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} гадзін`,minutesClockNumberText:e=>`${e} хвілін`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Абраць дату, абрана дата ${t.format(e,"fullDate")}`:"Абраць дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Абраць час, абрыны час ${t.format(e,"fullTime")}`:"Абраць час",timeTableLabel:"абраць час",dateTableLabel:"абраць дату"},wve=fa(xve),_ve={hours:"часы",minutes:"минуты",seconds:"секунды"},HD={calendar:"календарный",clock:"часовой"},Tve={previousMonth:"Предыдущий месяц",nextMonth:"Следующий месяц",openPreviousView:"открыть предыдущий вид",openNextView:"открыть следующий вид",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"открыт годовой вид, переключить на календарный вид":"открыт календарный вид, переключить на годовой вид",inputModeToggleButtonAriaLabel:(e,t)=>e?`Открыт текстовый вид, перейти на ${HD[t]} вид`:`Открыт ${HD[t]} вид, перейти на текстовый вид`,start:"Начало",end:"Конец",cancelButtonLabel:"Отмена",clearButtonLabel:"Очистить",okButtonLabel:"Ок",todayButtonLabel:"Сегодня",datePickerDefaultToolbarTitle:"Выбрать дату",dateTimePickerDefaultToolbarTitle:"Выбрать дату и время",timePickerDefaultToolbarTitle:"Выбрать время",dateRangePickerDefaultToolbarTitle:"Выбрать период",clockLabelText:(e,t,n)=>`Выбрать ${_ve[e]}. ${t===null?"Время не выбрано":`Выбрано время ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} часов`,minutesClockNumberText:e=>`${e} минут`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Выберите дату, выбрана дата ${t.format(e,"fullDate")}`:"Выберите дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Выберите время, выбрано время ${t.format(e,"fullTime")}`:"Выберите время",timeTableLabel:"выбрать время",dateTableLabel:"выбрать дату"},Sve=fa(Tve),P5=ge.createContext(null);function kve(e){const t=Tr({props:e,name:"MuiLocalizationProvider"}),{children:n,dateAdapter:r,dateFormats:l,dateLibInstance:i,locale:o,adapterLocale:a,localeText:s}=t,u=ge.useMemo(()=>new r({locale:a??o,formats:l,instance:i}),[r,o,a,l,i]),c=ge.useMemo(()=>({minDate:u.date("1900-01-01T00:00:00.000"),maxDate:u.date("2099-12-31T00:00:00.000")}),[u]),d=ge.useMemo(()=>({utils:u,defaultDates:c,localeText:Yt({},xW,s??{})}),[c,u,s]);return Te.jsx(P5.Provider,{value:d,children:n})}const vg=()=>{const e=ge.useContext(P5);if(e===null)throw new Error("MUI: Can not find utils in context. It looks like you forgot to wrap your component in LocalizationProvider, or pass dateAdapter prop directly.");return e},Hr=()=>vg().utils,yg=()=>vg().defaultDates,ul=()=>vg().localeText,bg=()=>{const e=Hr();return ge.useRef(e.date()).current};function wW(e){return gn("MuiMonthPicker",e)}const Cve=fn("MuiMonthPicker",["root"]),Kh=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:l,isDateDisabled:i,utils:o})=>{const a=o.startOfDay(o.date());n&&o.isBefore(l,a)&&(l=a),t&&o.isAfter(r,a)&&(r=a);let s=e,u=e;for(o.isBefore(e,l)&&(s=o.date(l),u=null),o.isAfter(e,r)&&(u&&(u=o.date(r)),s=null);s||u;){if(s&&o.isAfter(s,r)&&(s=null),u&&o.isBefore(u,l)&&(u=null),s){if(!i(s))return s;s=o.addDays(s,1)}if(u){if(!i(u))return u;u=o.addDays(u,-1)}}return null},O5=(e,t)=>{const n=e.date(t);return e.isValid(n)?n:null},zi=(e,t,n)=>{if(t==null)return n;const r=e.date(t);return e.isValid(r)?r:n},Mve=["className","date","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange"],Pve=e=>{const{classes:t}=e;return vn({root:["root"]},wW,t)};function Ove(e,t){const n=Hr(),r=yg(),l=Tr({props:e,name:t});return Yt({disableFuture:!1,disablePast:!1},l,{minDate:zi(n,l.minDate,r.minDate),maxDate:zi(n,l.maxDate,r.maxDate)})}const Ave=Dt("div",{name:"MuiMonthPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({width:310,display:"flex",flexWrap:"wrap",alignContent:"stretch",margin:"0 4px"}),_W=ge.forwardRef(function(t,n){const r=Hr(),l=bg(),i=Ove(t,"MuiMonthPicker"),{className:o,date:a,disabled:s,disableFuture:u,disablePast:c,maxDate:d,minDate:f,onChange:p,shouldDisableMonth:h,readOnly:g,disableHighlightToday:b,autoFocus:v=!1,onMonthFocus:m,hasFocus:y,onFocusedViewChange:x}=i,_=tr(i,Mve),w=i,S=Pve(w),k=lg(),C=ge.useMemo(()=>a??r.startOfMonth(l),[l,r,a]),T=ge.useMemo(()=>a!=null?r.getMonth(a):b?null:r.getMonth(l),[l,a,r,b]),[M,O]=ge.useState(()=>T||r.getMonth(l)),D=ge.useCallback(R=>{const q=r.startOfMonth(c&&r.isAfter(l,f)?l:f),Y=r.startOfMonth(u&&r.isBefore(l,d)?l:d);return r.isBefore(R,q)||r.isAfter(R,Y)?!0:h?h(R):!1},[u,c,d,f,l,h,r]),P=R=>{if(g)return;const q=r.setMonth(C,R);p(q,"finish")},[E,I]=ou({name:"MonthPicker",state:"hasFocus",controlled:y,default:v}),A=ge.useCallback(R=>{I(R),x&&x(R)},[I,x]),F=ge.useCallback(R=>{D(r.setMonth(C,R))||(O(R),A(!0),m&&m(R))},[D,r,C,A,m]);ge.useEffect(()=>{O(R=>T!==null&&R!==T?T:R)},[T]);const j=ho(R=>{switch(R.key){case"ArrowUp":F((12+M-3)%12),R.preventDefault();break;case"ArrowDown":F((12+M+3)%12),R.preventDefault();break;case"ArrowLeft":F((12+M+(k.direction==="ltr"?-1:1))%12),R.preventDefault();break;case"ArrowRight":F((12+M+(k.direction==="ltr"?1:-1))%12),R.preventDefault();break}}),B=ge.useCallback((R,q)=>{F(q)},[F]),z=ge.useCallback(()=>{A(!1)},[A]),N=r.getMonth(l);return Te.jsx(Ave,Yt({ref:n,className:xa(S.root,o),ownerState:w,onKeyDown:j},_,{children:r.getMonthArray(C).map(R=>{const q=r.getMonth(R),Y=r.format(R,"monthShort"),L=s||D(R);return Te.jsx(k0e,{value:q,selected:q===T,tabIndex:q===M&&!L?0:-1,hasFocus:E&&q===M,onSelect:P,onFocus:B,onBlur:z,disabled:L,"aria-current":N===q?"date":void 0,children:Y},Y)})}))});function A5(e,t,n){const{value:r,onError:l}=e,i=vg(),o=ge.useRef(null),a=t({adapter:i,value:r,props:e});return ge.useEffect(()=>{l&&!n(a,o.current)&&l(a,r),o.current=a},[n,l,o,a,r]),a}const D5=({props:e,value:t,adapter:n})=>{const r=n.utils.date(),l=n.utils.date(t),i=zi(n.utils,e.minDate,n.defaultDates.minDate),o=zi(n.utils,e.maxDate,n.defaultDates.maxDate);if(l===null)return null;switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(e.shouldDisableDate&&e.shouldDisableDate(l)):return"shouldDisableDate";case!!(e.disableFuture&&n.utils.isAfterDay(l,r)):return"disableFuture";case!!(e.disablePast&&n.utils.isBeforeDay(l,r)):return"disablePast";case!!(i&&n.utils.isBeforeDay(l,i)):return"minDate";case!!(o&&n.utils.isAfterDay(l,o)):return"maxDate";default:return null}},TW=({shouldDisableDate:e,minDate:t,maxDate:n,disableFuture:r,disablePast:l})=>{const i=vg();return ge.useCallback(o=>D5({adapter:i,value:o,props:{shouldDisableDate:e,minDate:t,maxDate:n,disableFuture:r,disablePast:l}})!==null,[i,e,t,n,r,l])},Dve=(e,t)=>e===t,E5=e=>A5(e,D5,Dve),Eve=(e,t,n)=>(r,l)=>{switch(l.type){case"changeMonth":return Yt({},r,{slideDirection:l.direction,currentMonth:l.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return Yt({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&l.focusedDay!=null&&n.isSameDay(l.focusedDay,r.focusedDay))return r;const i=l.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,l.focusedDay);return Yt({},r,{focusedDay:l.focusedDay,isMonthSwitchingAnimating:i&&!e&&!l.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(l.focusedDay):r.currentMonth,slideDirection:l.focusedDay!=null&&n.isAfterDay(l.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},Rve=({date:e,defaultCalendarMonth:t,disableFuture:n,disablePast:r,disableSwitchToMonthOnDayFocus:l=!1,maxDate:i,minDate:o,onMonthChange:a,reduceAnimations:s,shouldDisableDate:u})=>{var c;const d=bg(),f=Hr(),p=ge.useRef(Eve(!!s,l,f)).current,[h,g]=ge.useReducer(p,{isMonthSwitchingAnimating:!1,focusedDay:e||d,currentMonth:f.startOfMonth((c=e??t)!=null?c:d),slideDirection:"left"}),b=ge.useCallback(_=>{g(Yt({type:"changeMonth"},_)),a&&a(_.newMonth)},[a]),v=ge.useCallback(_=>{const w=_??d;f.isSameMonth(w,h.currentMonth)||b({newMonth:f.startOfMonth(w),direction:f.isAfterDay(w,h.currentMonth)?"left":"right"})},[h.currentMonth,b,d,f]),m=TW({shouldDisableDate:u,minDate:o,maxDate:i,disableFuture:n,disablePast:r}),y=ge.useCallback(()=>{g({type:"finishMonthSwitchingAnimation"})},[]),x=ge.useCallback((_,w)=>{m(_)||g({type:"changeFocusedDay",focusedDay:_,withoutMonthSwitchingAnimation:w})},[m]);return{calendarState:h,changeMonth:v,changeFocusedDay:x,isDateDisabled:m,onMonthSwitchingAnimationEnd:y,handleChangeMonth:b}},Lve=e=>gn("MuiPickersFadeTransitionGroup",e),Ive=fn("MuiPickersFadeTransitionGroup",["root"]),$ve=e=>{const{classes:t}=e;return vn({root:["root"]},Lve,t)},VD=500,Nve=Dt(cg,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function SW(e){const t=Tr({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:l,transKey:i}=t,o=$ve(t);return l?n:Te.jsx(Nve,{className:xa(o.root,r),children:Te.jsx(Ob,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:VD,enter:VD/2,exit:0},children:n},i)})}var kW={exports:{}},Lr={};/** + */function x(w){return w===null||typeof w!="object"}function _(w){return w.map(function(k){return typeof k=="symbol"?k.toString():k})}return S0.exports}var h_={},j7;function BB(){return j7||(j7=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={error:"Data could not be retrieved",grouping:{groupedBy:"Grouped By:",placeholder:"Drag headers here to group by"},pagination:{labelDisplayedRows:"{from}-{to} of {count}",labelRowsPerPage:"Rows per page:",labelRows:"rows",firstAriaLabel:"First Page",firstTooltip:"First Page",previousAriaLabel:"Previous Page",previousTooltip:"Previous Page",nextAriaLabel:"Next Page",nextTooltip:"Next Page",lastAriaLabel:"Last Page",lastTooltip:"Last Page"},toolbar:{addRemoveColumns:"Add or remove columns",nRowsSelected:"{0} row(s) selected",showColumnsTitle:"Show Columns",showColumnsAriaLabel:"Show Columns",exportTitle:"Export",exportAriaLabel:"Export",searchTooltip:"Search",searchPlaceholder:"Search",searchAriaLabel:"Search",clearSearchAriaLabel:"Clear Search"},header:{actions:"Actions"},body:{emptyDataSourceMessage:"No records to display",editRow:{saveTooltip:"Save",cancelTooltip:"Cancel",deleteText:"Are you sure you want to delete this row?"},filterRow:{},dateTimePickerLocalization:"Filter",addTooltip:"Add",deleteTooltip:"Delete",editTooltip:"Edit",bulkEditTooltip:"Edit All",bulkEditApprove:"Save all changes",bulkEditCancel:"Discard all changes"}};e.default=t}(h_)),h_}var m_={},z7;function WB(){return z7||(z7=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={idSynonym:"id",actionsColumnIndex:0,addRowPosition:"last",columnsButton:!1,detailPanelType:"multiple",debounceInterval:200,doubleHorizontalScroll:!1,emptyRowsWhenPaging:!0,exportAllData:!1,exportMenu:[],filtering:!1,groupTitle:!1,header:!0,headerSelectionProps:{},hideFilterIcons:!1,loadingType:"overlay",padding:"normal",searchAutoFocus:!1,paging:!0,pageSize:5,pageSizeOptions:[5,10,20],paginationType:"normal",paginationPosition:"bottom",showEmptyDataSourceMessage:!0,showFirstLastPageButtons:!0,showSelectAllCheckbox:!0,showSelectGroupCheckbox:!0,search:!0,showTitle:!0,showTextRowsSelected:!0,showDetailPanelIcon:!0,tableLayout:"auto",tableWidth:"full",toolbarButtonAlignment:"right",searchFieldAlignment:"right",searchFieldStyle:{},searchFieldVariant:"standard",selection:!1,selectionProps:{},maxColumnSort:1,clientSorting:!0,groupChipProps:{},defaultOrderByCollection:[],showColumnSortOrder:!1,keepSortDirectionOnColumnSwitch:!0,toolbar:!0,defaultExpanded:!1,detailPanelColumnAlignment:"left",detailPanelOffset:{left:0,right:0},thirdSortClick:!0,overflowY:"auto",numberOfPagesAround:1,actionsHeaderIndex:0,draggable:!0};e.default=t}(m_)),m_}var g_={},yp={},v_={exports:{}},B7;function yo(){return B7||(B7=1,function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(v_)),v_.exports}var y_={};const jpe=er(Jre);var W7;function bo(){return W7||(W7=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=jpe}(y_)),y_}var q7;function zpe(){if(q7)return yp;q7=1;var e=yo();Object.defineProperty(yp,"__esModule",{value:!0}),yp.default=void 0;var t=e(bo()),n=Te;return yp.default=(0,t.default)((0,n.jsx)("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"}),"ViewColumn"),yp}var bp={},U7;function Bpe(){if(U7)return bp;U7=1;var e=yo();Object.defineProperty(bp,"__esModule",{value:!0}),bp.default=void 0;var t=e(bo()),n=Te;return bp.default=(0,t.default)((0,n.jsx)("path",{d:"M19 13H5v-2h14z"}),"Remove"),bp}var xp={},H7;function Wpe(){if(H7)return xp;H7=1;var e=yo();Object.defineProperty(xp,"__esModule",{value:!0}),xp.default=void 0;var t=e(bo()),n=Te;return xp.default=(0,t.default)((0,n.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),xp}var wp={},V7;function qpe(){if(V7)return wp;V7=1;var e=yo();Object.defineProperty(wp,"__esModule",{value:!0}),wp.default=void 0;var t=e(bo()),n=Te;return wp.default=(0,t.default)((0,n.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),wp}var _p={},G7;function Upe(){if(G7)return _p;G7=1;var e=yo();Object.defineProperty(_p,"__esModule",{value:!0}),_p.default=void 0;var t=e(bo()),n=Te;return _p.default=(0,t.default)((0,n.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"Replay"),_p}const b5=er(_ue);var Tp={},Y7;function Hpe(){if(Y7)return Tp;Y7=1;var e=yo();Object.defineProperty(Tp,"__esModule",{value:!0}),Tp.default=void 0;var t=e(bo()),n=Te;return Tp.default=(0,t.default)((0,n.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),Tp}var Sp={},X7;function Vpe(){if(X7)return Sp;X7=1;var e=yo();Object.defineProperty(Sp,"__esModule",{value:!0}),Sp.default=void 0;var t=e(bo()),n=Te;return Sp.default=(0,t.default)((0,n.jsx)("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),Sp}var kp={},K7;function Gpe(){if(K7)return kp;K7=1;var e=yo();Object.defineProperty(kp,"__esModule",{value:!0}),kp.default=void 0;var t=e(bo()),n=Te;return kp.default=(0,t.default)((0,n.jsx)("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),kp}var Cp={},Z7;function Ype(){if(Z7)return Cp;Z7=1;var e=yo();Object.defineProperty(Cp,"__esModule",{value:!0}),Cp.default=void 0;var t=e(bo()),n=Te;return Cp.default=(0,t.default)((0,n.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList"),Cp}var Mp={},Q7;function Xpe(){if(Q7)return Mp;Q7=1;var e=yo();Object.defineProperty(Mp,"__esModule",{value:!0}),Mp.default=void 0;var t=e(bo()),n=Te;return Mp.default=(0,t.default)((0,n.jsx)("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),Mp}var Pp={},J7;function Kpe(){if(J7)return Pp;J7=1;var e=yo();Object.defineProperty(Pp,"__esModule",{value:!0}),Pp.default=void 0;var t=e(bo()),n=Te;return Pp.default=(0,t.default)((0,n.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),Pp}var Op={},eD;function Zpe(){if(eD)return Op;eD=1;var e=yo();Object.defineProperty(Op,"__esModule",{value:!0}),Op.default=void 0;var t=e(bo()),n=Te;return Op.default=(0,t.default)((0,n.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),Op}var Ap={},tD;function Qpe(){if(tD)return Ap;tD=1;var e=yo();Object.defineProperty(Ap,"__esModule",{value:!0}),Ap.default=void 0;var t=e(bo()),n=Te;return Ap.default=(0,t.default)((0,n.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline"),Ap}var Dp={},nD;function Jpe(){if(nD)return Dp;nD=1;var e=yo();Object.defineProperty(Dp,"__esModule",{value:!0}),Dp.default=void 0;var t=e(bo()),n=Te;return Dp.default=(0,t.default)((0,n.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear"),Dp}var Ep={},rD;function ehe(){if(rD)return Ep;rD=1;var e=yo();Object.defineProperty(Ep,"__esModule",{value:!0}),Ep.default=void 0;var t=e(bo()),n=Te;return Ep.default=(0,t.default)((0,n.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Ep}var Rp={},aD;function the(){if(aD)return Rp;aD=1;var e=yo();Object.defineProperty(Rp,"__esModule",{value:!0}),Rp.default=void 0;var t=e(bo()),n=Te;return Rp.default=(0,t.default)((0,n.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4z"}),"AddBox"),Rp}var oD;function qB(){return oD||(oD=1,function(e){var t=Hn,n=Pa();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(zpe()),l=t(Bpe()),i=t(Wpe()),o=t(qpe()),a=t(Upe()),s=t(b5),u=t(Hpe()),c=t(Vpe()),d=t(Gpe()),f=t(Ype()),p=t(Xpe()),h=t(Kpe()),g=t(Zpe()),b=t(Qpe()),v=t(Jpe()),m=t(ehe()),y=t(the()),x=t(jr()),_=S(ge);function w(C){if(typeof WeakMap!="function")return null;var T=new WeakMap,M=new WeakMap;return(w=function(D){return D?M:T})(C)}function S(C,T){if(C&&C.__esModule)return C;if(C===null||n(C)!=="object"&&typeof C!="function")return{default:C};var M=w(T);if(M&&M.has(C))return M.get(C);var O={},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var P in C)if(P!=="default"&&Object.prototype.hasOwnProperty.call(C,P)){var E=D?Object.getOwnPropertyDescriptor(C,P):null;E&&(E.get||E.set)?Object.defineProperty(O,P,E):O[P]=C[P]}return O.default=C,M&&M.set(C,O),O}var k={Add:(0,_.forwardRef)(function(C,T){return _.default.createElement(y.default,(0,x.default)({},C,{ref:T,"data-testid":"add_box"}))}),Check:(0,_.forwardRef)(function(C,T){return _.default.createElement(m.default,(0,x.default)({},C,{ref:T,"data-testid":"check"}))}),Clear:(0,_.forwardRef)(function(C,T){return _.default.createElement(v.default,(0,x.default)({},C,{ref:T,"data-testid":"clear"}))}),Delete:(0,_.forwardRef)(function(C,T){return _.default.createElement(b.default,(0,x.default)({},C,{ref:T,"data-testid":"delete_outline"}))}),DetailPanel:(0,_.forwardRef)(function(C,T){return _.default.createElement(g.default,(0,x.default)({},C,{ref:T,"data-testid":"chevron_right"}))}),Edit:(0,_.forwardRef)(function(C,T){return _.default.createElement(h.default,(0,x.default)({},C,{ref:T,"data-testid":"edit"}))}),Export:(0,_.forwardRef)(function(C,T){return _.default.createElement(p.default,(0,x.default)({},C,{ref:T,"data-testid":"save_alt"}))}),Filter:(0,_.forwardRef)(function(C,T){return _.default.createElement(f.default,(0,x.default)({},C,{ref:T,"data-testid":"filter_list"}))}),FirstPage:(0,_.forwardRef)(function(C,T){return _.default.createElement(d.default,(0,x.default)({},C,{ref:T,"data-testid":"first_page"}))}),LastPage:(0,_.forwardRef)(function(C,T){return _.default.createElement(c.default,(0,x.default)({},C,{ref:T,"data-testid":"last_page"}))}),NextPage:(0,_.forwardRef)(function(C,T){return _.default.createElement(g.default,(0,x.default)({},C,{ref:T,"data-testid":"chevron_right"}))}),PreviousPage:(0,_.forwardRef)(function(C,T){return _.default.createElement(u.default,(0,x.default)({},C,{ref:T,"data-testid":"chevron_left"}))}),ResetSearch:(0,_.forwardRef)(function(C,T){return _.default.createElement(v.default,(0,x.default)({},C,{ref:T,"data-testid":"clear"}))}),Resize:(0,_.forwardRef)(function(C,T){return _.default.createElement(s.default,(0,x.default)({},C,{ref:T,"data-testid":"drag_handle"}),"|")}),Retry:(0,_.forwardRef)(function(C,T){return _.default.createElement(a.default,(0,x.default)({},C,{ref:T,"data-testid":"replay"}))}),Search:(0,_.forwardRef)(function(C,T){return _.default.createElement(o.default,(0,x.default)({},C,{ref:T,"data-testid":"search"}))}),SortArrow:(0,_.forwardRef)(function(C,T){return _.default.createElement(i.default,(0,x.default)({},C,{ref:T,"data-testid":"arrow_downward"}))}),ThirdStateCheck:(0,_.forwardRef)(function(C,T){return _.default.createElement(l.default,(0,x.default)({},C,{ref:T,"data-testid":"remove"}))}),ViewColumn:(0,_.forwardRef)(function(C,T){return _.default.createElement(r.default,(0,x.default)({},C,{ref:T,"data-testid":"view_column"}))})};e.default=k}(g_)),g_}var b_,iD;function nhe(){if(iD)return b_;iD=1;var e=function(m){return t(m)&&!n(m)};function t(v){return!!v&&typeof v=="object"}function n(v){var m=Object.prototype.toString.call(v);return m==="[object RegExp]"||m==="[object Date]"||i(v)}var r=typeof Symbol=="function"&&Symbol.for,l=r?Symbol.for("react.element"):60103;function i(v){return v.$$typeof===l}function o(v){return Array.isArray(v)?[]:{}}function a(v,m){return m.clone!==!1&&m.isMergeableObject(v)?g(o(v),v,m):v}function s(v,m,y){return v.concat(m).map(function(x){return a(x,y)})}function u(v,m){if(!m.customMerge)return g;var y=m.customMerge(v);return typeof y=="function"?y:g}function c(v){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(v).filter(function(m){return Object.propertyIsEnumerable.call(v,m)}):[]}function d(v){return Object.keys(v).concat(c(v))}function f(v,m){try{return m in v}catch{return!1}}function p(v,m){return f(v,m)&&!(Object.hasOwnProperty.call(v,m)&&Object.propertyIsEnumerable.call(v,m))}function h(v,m,y){var x={};return y.isMergeableObject(v)&&d(v).forEach(function(_){x[_]=a(v[_],y)}),d(m).forEach(function(_){p(v,_)||(f(v,_)&&y.isMergeableObject(m[_])?x[_]=u(_,y)(v[_],m[_],y):x[_]=a(m[_],y))}),x}function g(v,m,y){y=y||{},y.arrayMerge=y.arrayMerge||s,y.isMergeableObject=y.isMergeableObject||e,y.cloneUnlessOtherwiseSpecified=a;var x=Array.isArray(m),_=Array.isArray(v),w=x===_;return w?x?y.arrayMerge(v,m,y):h(v,m,y):a(m,y)}g.all=function(m,y){if(!Array.isArray(m))throw new Error("first argument should be an array");return m.reduce(function(x,_){return g(x,_,y)},{})};var b=g;return b_=b,b_}var lD;function mg(){if(lD)return Zi;lD=1;var e=Hn;Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.useLocalizationStore=Zi.useIconStore=void 0,Zi.useMergeProps=v,Zi.useOptionStore=void 0,Zi.withContext=m;var t=e(za()),n=Npe,r=e(ge),l=e(zB()),i=e(BB()),o=e(WB()),a=e(qB()),s=e(OU());function u(y,x){var _=Object.keys(y);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(y);x&&(w=w.filter(function(S){return Object.getOwnPropertyDescriptor(y,S).enumerable})),_.push.apply(_,w)}return _}function c(y){for(var x=1;x=0)&&(l[o]=n[o]);return l}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(__)),__.exports}var dD;function kf(){return dD||(dD=1,function(e){var t=ohe();function n(r,l){if(r==null)return{};var i=t(r,l),o,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(r,o)&&(i[o]=r[o])}return i}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(w_)),w_.exports}var fD;function ihe(){return fD||(fD=1,function(e){var t=Hn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(ahe),r=t(jr()),l=t(kf()),i=t(ge),o=["forwardedRef"];function a(u){var c=u.forwardedRef,d=(0,l.default)(u,o);return i.default.createElement(n.default,(0,r.default)({elevation:2},d,{ref:c}))}var s=i.default.forwardRef(function(c,d){return i.default.createElement(a,(0,r.default)({},c,{forwardedRef:d}))});e.default=s}(x_)),x_}var T_={};const kc=er(Yie);var S_={exports:{}},pD;function lhe(){return pD||(pD=1,function(e,t){(function(r,l){e.exports=l(ge)})($o,function(n){return function(r){var l={};function i(o){if(l[o])return l[o].exports;var a=l[o]={exports:{},id:o,loaded:!1};return r[o].call(a.exports,a,a.exports,i),a.loaded=!0,a.exports}return i.m=r,i.c=l,i.p="",i(0)}([function(r,l,i){Object.defineProperty(l,"__esModule",{value:!0});var o=function(){function h(g,b){for(var v=0;vn.length)&&(r=n.length);for(var l=0,i=new Array(r);l0&&E++,g.hasDetailPanel&&E++,g.isTreeData&&E++,s.default.createElement(o.default,{style:{height:P*(v.paging&&v.emptyRowsWhenPaging?g.pageSize:1)},key:"empty-0"},s.default.createElement(a.default,{style:{paddingTop:0,paddingBottom:0,textAlign:"center"},colSpan:g.columns.reduce(function(I,A){return A.hidden?I:I+1},E),key:"empty-"},b.emptyDataSourceMessage))}else if(v.emptyRowsWhenPaging)return s.default.createElement(s.default.Fragment,null,(0,i.default)(Array(O)).map(function(I,A){return s.default.createElement(o.default,{style:{height:P},key:"empty-"+A})}),O>0&&s.default.createElement(o.default,{style:{height:1},key:"empty-last1"}))}function _(O){return O.map(function(D,P){if(D.tableData.editing||g.bulkEditOpen)return s.default.createElement(g.components.EditRow,{columns:y,components:g.components,data:D,errorState:g.errorState,icons:m,localization:b.editRow,key:"row-"+D.tableData.uuid,mode:g.bulkEditOpen?"bulk":D.tableData.editing,isTreeData:g.isTreeData,detailPanel:g.detailPanel,onEditingCanceled:g.onEditingCanceled,onEditingApproved:g.onEditingApproved,bulkEditChangedRows:g.bulkEditChangedRows,getFieldValue:g.getFieldValue,onBulkEditRowChanged:g.onBulkEditRowChanged,scrollWidth:g.scrollWidth});var E=g.isTreeData?[D.tableData.uuid]:[P+g.pageSize*g.currentPage];return s.default.createElement(g.components.Row,{components:g.components,data:D,index:P,errorState:g.errorState,key:"row-"+D.tableData.uuid,level:0,onRowSelected:g.onRowSelected,actions:g.actions,columns:g.columns,getFieldValue:g.getFieldValue,detailPanel:g.detailPanel,path:E,onToggleDetailPanel:g.onToggleDetailPanel,onRowClick:g.onRowClick,onRowDoubleClick:g.onRowDoubleClick,isTreeData:g.isTreeData,onTreeExpandChanged:g.onTreeExpandChanged,onEditingCanceled:g.onEditingCanceled,onEditingApproved:g.onEditingApproved,hasAnyEditingRow:g.hasAnyEditingRow,treeDataMaxLevel:g.treeDataMaxLevel,cellEditable:g.cellEditable,onCellEditStarted:g.onCellEditStarted,onCellEditFinished:g.onCellEditFinished,onRowEditStarted:g.onRowEditStarted,scrollWidth:g.scrollWidth})})}function w(O,D){return D.map(function(P,E){return s.default.createElement(g.components.GroupRow,{actions:g.actions,cellEditable:g.cellEditable,columns:g.columns,components:g.components,detailPanel:g.detailPanel,getFieldValue:g.getFieldValue,groupData:P,groups:O,hasAnyEditingRow:g.hasAnyEditingRow,icons:m,isTreeData:g.isTreeData,key:P.value==null?""+E:P.value,level:0,localization:b.editRow,onBulkEditRowChanged:g.onBulkEditRowChanged,onCellEditFinished:g.onCellEditFinished,onCellEditStarted:g.onCellEditStarted,onEditingApproved:g.onEditingApproved,onEditingCanceled:g.onEditingCanceled,onGroupExpandChanged:g.onGroupExpandChanged,onRowClick:g.onRowClick,onGroupSelected:g.onGroupSelected,onRowSelected:g.onRowSelected,onToggleDetailPanel:g.onToggleDetailPanel,onTreeExpandChanged:g.onTreeExpandChanged,path:[E+g.pageSize*g.currentPage],scrollWidth:g.scrollWidth,treeDataMaxLevel:g.treeDataMaxLevel})})}function S(){return g.showAddRow&&s.default.createElement(g.components.EditRow,{columns:y,components:g.components,data:g.initialFormData,detailPanel:g.detailPanel,errorState:g.errorState,getFieldValue:g.getFieldValue,icons:m,isTreeData:g.isTreeData,key:"key-add-row",localization:b.editRow,mode:"add",onEditingApproved:g.onEditingApproved,onEditingCanceled:g.onEditingCanceled,scrollWidth:g.scrollWidth})}var k=g.renderData,C=g.columns.filter(function(O){return O.tableData.groupOrder>-1}).sort(function(O,D){return O.tableData.groupOrder-D.tableData.groupOrder}),T=0;v.paging&&g.pageSize>k.length&&(T=g.pageSize-k.length);var M=s.default.useMemo(function(){return g.renderSummaryRow?function(O){return g.renderSummaryRow(f(f({},O),{},{data:g.data,currentData:g.currentData}))}:void 0},[g.data]);return s.default.createElement(r.default,{ref:g.forwardedRef},v.filtering&&s.default.createElement(g.components.FilterRow,{columns:y,icons:m,hasActions:g.actions.some(function(O){return O.position==="row"||typeof O=="function"}),onFilterChanged:g.onFilterChanged,localization:b.filterRow,hasDetailPanel:!!g.detailPanel,isTreeData:g.isTreeData,scrollWidth:g.scrollWidth,hideFilterIcons:g.options.hideFilterIcons}),v.addRowPosition==="first"&&S(),C.length>0?w(C,k):_(k),v.addRowPosition==="last"&&S(),s.default.createElement(g.components.SummaryRow,{columns:y,renderSummaryRow:M,rowProps:g}),x(T,k))}p.defaultProps={actions:[],currentPage:0,data:[],pageSize:5,renderData:[],selection:!1},p.propTypes={actions:u.default.array,bulkEditChangedRows:u.default.object,bulkEditOpen:u.default.bool,cellEditable:u.default.object,columns:u.default.array.isRequired,components:u.default.object.isRequired,currentPage:u.default.number,data:u.default.array,detailPanel:u.default.oneOfType([u.default.func,u.default.arrayOf(u.default.oneOfType([u.default.object,u.default.func]))]),errorState:u.default.oneOfType([u.default.object,u.default.bool]),forwardedRef:u.default.oneOfType([u.default.func,u.default.object]),getFieldValue:u.default.func.isRequired,hasAnyEditingRow:u.default.bool,hasDetailPanel:u.default.bool.isRequired,initialFormData:u.default.object,isTreeData:u.default.bool.isRequired,onBulkEditRowChanged:u.default.func,onCellEditFinished:u.default.func,onCellEditStarted:u.default.func,onEditingApproved:u.default.func,onEditingCanceled:u.default.func,onFilterChanged:u.default.func,onGroupExpandChanged:u.default.func,onRowClick:u.default.func,onRowDoubleClick:u.default.func,onGroupSelected:u.default.func,onRowSelected:u.default.func,onToggleDetailPanel:u.default.func.isRequired,onTreeExpandChanged:u.default.func.isRequired,pageSize:u.default.number,renderData:u.default.array,renderSummaryRow:u.default.func,scrollWidth:u.default.number.isRequired,selection:u.default.bool.isRequired,showAddRow:u.default.bool,treeDataMaxLevel:u.default.number};var h=s.default.forwardRef(function(b,v){return s.default.createElement(p,(0,n.default)({},b,{forwardedRef:v}))});e.default=h}(k_)),k_}var E_={},R_={exports:{}},_D;function Rb(){return _D||(_D=1,function(e){function t(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(R_)),R_.exports}var L_={exports:{}},TD;function Lb(){return TD||(TD=1,function(e){var t=DB();function n(l,i){for(var o=0;o1?"s":"")+" required, but only "+t.length+" present")}function wn(e){xn(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||us(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function BS(e,t){xn(2,arguments);var n=wn(e),r=Pr(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function $b(e,t){xn(2,arguments);var n=wn(e).getTime(),r=Pr(t);return new Date(n+r)}function vhe(e,t){xn(2,arguments);var n=Pr(t);return $b(e,n*1e3)}var yhe=6e4;function bhe(e,t){xn(2,arguments);var n=Pr(t);return $b(e,n*yhe)}var xhe=36e5;function whe(e,t){xn(2,arguments);var n=Pr(t);return $b(e,n*xhe)}function _he(e,t){xn(2,arguments);var n=Pr(t),r=n*7;return BS(e,r)}function wv(e,t){xn(2,arguments);var n=wn(e),r=Pr(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var l=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var o=i.getDate();return l>=o?i:(n.setFullYear(i.getFullYear(),i.getMonth(),l),n)}function OD(e,t){xn(2,arguments);var n=Pr(t);return wv(e,n*12)}function The(e,t){xn(2,arguments);var n=wn(e),r=wn(t);return n.getFullYear()-r.getFullYear()}function Xh(e,t){xn(2,arguments);var n=wn(e),r=wn(t),l=n.getTime()-r.getTime();return l<0?-1:l>0?1:l}function She(e,t){xn(2,arguments);var n=wn(e),r=wn(t),l=Xh(n,r),i=Math.abs(The(n,r));n.setFullYear(1584),r.setFullYear(1584);var o=Xh(n,r)===-l,a=l*(i-Number(o));return a===0?0:a}function khe(e,t){xn(2,arguments);var n=wn(e),r=wn(t),l=n.getFullYear()-r.getFullYear(),i=n.getMonth()-r.getMonth();return l*12+i}function WS(e){xn(1,arguments);var t=wn(e);return t.setHours(23,59,59,999),t}function qS(e){xn(1,arguments);var t=wn(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function Che(e){xn(1,arguments);var t=wn(e);return WS(t).getTime()===qS(t).getTime()}function XB(e,t){xn(2,arguments);var n=wn(e),r=wn(t),l=Xh(n,r),i=Math.abs(khe(n,r)),o;if(i<1)o=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-l*i);var a=Xh(n,r)===-l;Che(wn(e))&&i===1&&Xh(e,r)===1&&(a=!1),o=l*(i-Number(a))}return o===0?0:o}var AD={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},Mhe="trunc";function gg(e){return e?AD[e]:AD[Mhe]}function Phe(e,t,n){xn(2,arguments);var r=XB(e,t)/3;return gg(void 0)(r)}function Py(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function tf(e){xn(1,arguments);var t=wn(e);return t.setHours(0,0,0,0),t}var Ohe=864e5;function Ahe(e,t){xn(2,arguments);var n=tf(e),r=tf(t),l=n.getTime()-Py(n),i=r.getTime()-Py(r);return Math.round((l-i)/Ohe)}function DD(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function KB(e,t){xn(2,arguments);var n=wn(e),r=wn(t),l=DD(n,r),i=Math.abs(Ahe(n,r));n.setDate(n.getDate()-l*i);var o=+(DD(n,r)===-l),a=l*(i-o);return a===0?0:a}function Dhe(e,t,n){xn(2,arguments);var r=KB(e,t)/7;return gg(void 0)(r)}var Nb=6e4,Fb=36e5,Ehe=1e3;function jb(e,t){return xn(2,arguments),wn(e).getTime()-wn(t).getTime()}function Rhe(e,t,n){xn(2,arguments);var r=jb(e,t)/Fb;return gg(void 0)(r)}function Lhe(e,t,n){xn(2,arguments);var r=jb(e,t)/Nb;return gg(void 0)(r)}function Ihe(e,t,n){xn(2,arguments);var r=jb(e,t)/1e3;return gg(void 0)(r)}function $he(e,t){var n;xn(1,arguments);var r=e||{},l=wn(r.start),i=wn(r.end),o=i.getTime();if(!(l.getTime()<=o))throw new RangeError("Invalid interval");var a=[],s=l;s.setHours(0,0,0,0);var u=Number((n=void 0)!==null&&n!==void 0?n:1);if(u<1||isNaN(u))throw new RangeError("`options.step` must be a number greater than 1");for(;s.getTime()<=o;)a.push(wn(s)),s.setDate(s.getDate()+u),s.setHours(0,0,0,0);return a}var Nhe={};function gu(){return Nhe}function z_(e,t){var n,r,l,i,o,a,s,u;xn(1,arguments);var c=gu(),d=Pr((n=(r=(l=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(a=o.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&l!==void 0?l:c.weekStartsOn)!==null&&r!==void 0?r:(s=c.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=wn(e),p=f.getDay(),h=(p=l.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function Bhe(e){xn(1,arguments);var t=JB(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=nf(n);return r}var Whe=6048e5;function eW(e){xn(1,arguments);var t=wn(e),n=nf(t).getTime()-Bhe(t).getTime();return Math.round(n/Whe)+1}function sc(e,t){var n,r,l,i,o,a,s,u;xn(1,arguments);var c=gu(),d=Pr((n=(r=(l=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(a=o.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&l!==void 0?l:c.weekStartsOn)!==null&&r!==void 0?r:(s=c.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=wn(e),p=f.getUTCDay(),h=(p=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(d+1,0,p),h.setUTCHours(0,0,0,0);var g=sc(h,t),b=new Date(0);b.setUTCFullYear(d,0,p),b.setUTCHours(0,0,0,0);var v=sc(b,t);return c.getTime()>=g.getTime()?d+1:c.getTime()>=v.getTime()?d:d-1}function qhe(e,t){var n,r,l,i,o,a,s,u;xn(1,arguments);var c=gu(),d=Pr((n=(r=(l=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(a=o.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&l!==void 0?l:c.firstWeekContainsDate)!==null&&r!==void 0?r:(s=c.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),f=k5(e,t),p=new Date(0);p.setUTCFullYear(f,0,d),p.setUTCHours(0,0,0,0);var h=sc(p,t);return h}var Uhe=6048e5;function tW(e,t){xn(1,arguments);var n=wn(e),r=sc(n,t).getTime()-qhe(n,t).getTime();return Math.round(r/Uhe)+1}function ir(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?r:1-r;return ir(n==="yy"?l%100:l,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):ir(r+1,2)},d:function(t,n){return ir(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return ir(t.getUTCHours()%12||12,n.length)},H:function(t,n){return ir(t.getUTCHours(),n.length)},m:function(t,n){return ir(t.getUTCMinutes(),n.length)},s:function(t,n){return ir(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,l=t.getUTCMilliseconds(),i=Math.floor(l*Math.pow(10,r-3));return ir(i,n.length)}},Zc={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Hhe={G:function(t,n,r){var l=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(l,{width:"abbreviated"});case"GGGGG":return r.era(l,{width:"narrow"});case"GGGG":default:return r.era(l,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var l=t.getUTCFullYear(),i=l>0?l:1-l;return r.ordinalNumber(i,{unit:"year"})}return Os.y(t,n)},Y:function(t,n,r,l){var i=k5(t,l),o=i>0?i:1-i;if(n==="YY"){var a=o%100;return ir(a,2)}return n==="Yo"?r.ordinalNumber(o,{unit:"year"}):ir(o,n.length)},R:function(t,n){var r=JB(t);return ir(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return ir(r,n.length)},Q:function(t,n,r){var l=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(l);case"QQ":return ir(l,2);case"Qo":return r.ordinalNumber(l,{unit:"quarter"});case"QQQ":return r.quarter(l,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(l,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(l,{width:"wide",context:"formatting"})}},q:function(t,n,r){var l=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(l);case"qq":return ir(l,2);case"qo":return r.ordinalNumber(l,{unit:"quarter"});case"qqq":return r.quarter(l,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(l,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(l,{width:"wide",context:"standalone"})}},M:function(t,n,r){var l=t.getUTCMonth();switch(n){case"M":case"MM":return Os.M(t,n);case"Mo":return r.ordinalNumber(l+1,{unit:"month"});case"MMM":return r.month(l,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(l,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(l,{width:"wide",context:"formatting"})}},L:function(t,n,r){var l=t.getUTCMonth();switch(n){case"L":return String(l+1);case"LL":return ir(l+1,2);case"Lo":return r.ordinalNumber(l+1,{unit:"month"});case"LLL":return r.month(l,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(l,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(l,{width:"wide",context:"standalone"})}},w:function(t,n,r,l){var i=tW(t,l);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):ir(i,n.length)},I:function(t,n,r){var l=eW(t);return n==="Io"?r.ordinalNumber(l,{unit:"week"}):ir(l,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):Os.d(t,n)},D:function(t,n,r){var l=zhe(t);return n==="Do"?r.ordinalNumber(l,{unit:"dayOfYear"}):ir(l,n.length)},E:function(t,n,r){var l=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(l,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(l,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(l,{width:"short",context:"formatting"});case"EEEE":default:return r.day(l,{width:"wide",context:"formatting"})}},e:function(t,n,r,l){var i=t.getUTCDay(),o=(i-l.weekStartsOn+8)%7||7;switch(n){case"e":return String(o);case"ee":return ir(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,r,l){var i=t.getUTCDay(),o=(i-l.weekStartsOn+8)%7||7;switch(n){case"c":return String(o);case"cc":return ir(o,n.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,r){var l=t.getUTCDay(),i=l===0?7:l;switch(n){case"i":return String(i);case"ii":return ir(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(l,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(l,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(l,{width:"short",context:"formatting"});case"iiii":default:return r.day(l,{width:"wide",context:"formatting"})}},a:function(t,n,r){var l=t.getUTCHours(),i=l/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,r){var l=t.getUTCHours(),i;switch(l===12?i=Zc.noon:l===0?i=Zc.midnight:i=l/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,r){var l=t.getUTCHours(),i;switch(l>=17?i=Zc.evening:l>=12?i=Zc.afternoon:l>=4?i=Zc.morning:i=Zc.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var l=t.getUTCHours()%12;return l===0&&(l=12),r.ordinalNumber(l,{unit:"hour"})}return Os.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Os.H(t,n)},K:function(t,n,r){var l=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(l,{unit:"hour"}):ir(l,n.length)},k:function(t,n,r){var l=t.getUTCHours();return l===0&&(l=24),n==="ko"?r.ordinalNumber(l,{unit:"hour"}):ir(l,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Os.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Os.s(t,n)},S:function(t,n){return Os.S(t,n)},X:function(t,n,r,l){var i=l._originalDate||t,o=i.getTimezoneOffset();if(o===0)return"Z";switch(n){case"X":return RD(o);case"XXXX":case"XX":return Eu(o);case"XXXXX":case"XXX":default:return Eu(o,":")}},x:function(t,n,r,l){var i=l._originalDate||t,o=i.getTimezoneOffset();switch(n){case"x":return RD(o);case"xxxx":case"xx":return Eu(o);case"xxxxx":case"xxx":default:return Eu(o,":")}},O:function(t,n,r,l){var i=l._originalDate||t,o=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+ED(o,":");case"OOOO":default:return"GMT"+Eu(o,":")}},z:function(t,n,r,l){var i=l._originalDate||t,o=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+ED(o,":");case"zzzz":default:return"GMT"+Eu(o,":")}},t:function(t,n,r,l){var i=l._originalDate||t,o=Math.floor(i.getTime()/1e3);return ir(o,n.length)},T:function(t,n,r,l){var i=l._originalDate||t,o=i.getTime();return ir(o,n.length)}};function ED(e,t){var n=e>0?"-":"+",r=Math.abs(e),l=Math.floor(r/60),i=r%60;if(i===0)return n+String(l);var o=t;return n+String(l)+o+ir(i,2)}function RD(e,t){if(e%60===0){var n=e>0?"-":"+";return n+ir(Math.abs(e)/60,2)}return Eu(e,t)}function Eu(e,t){var n=t||"",r=e>0?"-":"+",l=Math.abs(e),i=ir(Math.floor(l/60),2),o=ir(l%60,2);return r+i+n+o}var LD=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},nW=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},Vhe=function(t,n){var r=t.match(/(P+)(p+)?/)||[],l=r[1],i=r[2];if(!i)return LD(t,n);var o;switch(l){case"P":o=n.dateTime({width:"short"});break;case"PP":o=n.dateTime({width:"medium"});break;case"PPP":o=n.dateTime({width:"long"});break;case"PPPP":default:o=n.dateTime({width:"full"});break}return o.replace("{{date}}",LD(l,n)).replace("{{time}}",nW(i,n))},US={p:nW,P:Vhe},Ghe=["D","DD"],Yhe=["YY","YYYY"];function rW(e){return Ghe.indexOf(e)!==-1}function aW(e){return Yhe.indexOf(e)!==-1}function Oy(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Xhe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Khe=function(t,n,r){var l,i=Xhe[t];return typeof i=="string"?l=i:n===1?l=i.one:l=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+l:l+" ago":l};function W_(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var Zhe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Qhe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Jhe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},eme={date:W_({formats:Zhe,defaultWidth:"full"}),time:W_({formats:Qhe,defaultWidth:"full"}),dateTime:W_({formats:Jhe,defaultWidth:"full"})},tme={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},nme=function(t,n,r,l){return tme[t]};function Lp(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",l;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):i;l=e.formattingValues[o]||e.formattingValues[i]}else{var a=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;l=e.values[s]||e.values[a]}var u=e.argumentCallback?e.argumentCallback(t):t;return l[u]}}var rme={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ame={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ome={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ime={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},lme={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},sme={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ume=function(t,n){var r=Number(t),l=r%100;if(l>20||l<10)switch(l%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},cme={ordinalNumber:ume,era:Lp({values:rme,defaultWidth:"wide"}),quarter:Lp({values:ame,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Lp({values:ome,defaultWidth:"wide"}),day:Lp({values:ime,defaultWidth:"wide"}),dayPeriod:Lp({values:lme,defaultWidth:"wide",formattingValues:sme,defaultFormattingWidth:"wide"})};function Ip(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,l=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(l);if(!i)return null;var o=i[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(a)?fme(a,function(d){return d.test(o)}):dme(a,function(d){return d.test(o)}),u;u=e.valueCallback?e.valueCallback(s):s,u=n.valueCallback?n.valueCallback(u):u;var c=t.slice(o.length);return{value:u,rest:c}}}function dme(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function fme(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var l=r[0],i=t.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;var a=t.slice(l.length);return{value:o,rest:a}}}var hme=/^(\d+)(th|st|nd|rd)?/i,mme=/\d+/i,gme={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},vme={any:[/^b/i,/^(a|c)/i]},yme={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},bme={any:[/1/i,/2/i,/3/i,/4/i]},xme={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},wme={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},_me={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Tme={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Sme={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},kme={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Cme={ordinalNumber:pme({matchPattern:hme,parsePattern:mme,valueCallback:function(t){return parseInt(t,10)}}),era:Ip({matchPatterns:gme,defaultMatchWidth:"wide",parsePatterns:vme,defaultParseWidth:"any"}),quarter:Ip({matchPatterns:yme,defaultMatchWidth:"wide",parsePatterns:bme,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Ip({matchPatterns:xme,defaultMatchWidth:"wide",parsePatterns:wme,defaultParseWidth:"any"}),day:Ip({matchPatterns:_me,defaultMatchWidth:"wide",parsePatterns:Tme,defaultParseWidth:"any"}),dayPeriod:Ip({matchPatterns:Sme,defaultMatchWidth:"any",parsePatterns:kme,defaultParseWidth:"any"})},zb={code:"en-US",formatDistance:Khe,formatLong:eme,formatRelative:nme,localize:cme,match:Cme,options:{weekStartsOn:0,firstWeekContainsDate:1}},Mme=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Pme=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ome=/^'([^]*?)'?$/,Ame=/''/g,Dme=/[a-zA-Z]/;function oW(e,t,n){var r,l,i,o,a,s,u,c,d,f,p,h,g,b,v,m,y,x;xn(2,arguments);var _=String(t),w=gu(),S=(r=(l=n==null?void 0:n.locale)!==null&&l!==void 0?l:w.locale)!==null&&r!==void 0?r:zb,k=Pr((i=(o=(a=(s=n==null?void 0:n.firstWeekContainsDate)!==null&&s!==void 0?s:n==null||(u=n.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&a!==void 0?a:w.firstWeekContainsDate)!==null&&o!==void 0?o:(d=w.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(k>=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=Pr((p=(h=(g=(b=n==null?void 0:n.weekStartsOn)!==null&&b!==void 0?b:n==null||(v=n.locale)===null||v===void 0||(m=v.options)===null||m===void 0?void 0:m.weekStartsOn)!==null&&g!==void 0?g:w.weekStartsOn)!==null&&h!==void 0?h:(y=w.locale)===null||y===void 0||(x=y.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&p!==void 0?p:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!S.localize)throw new RangeError("locale must contain localize property");if(!S.formatLong)throw new RangeError("locale must contain formatLong property");var T=wn(e);if(!ZB(T))throw new RangeError("Invalid time value");var M=Py(T),O=QB(T,M),D={firstWeekContainsDate:k,weekStartsOn:C,locale:S,_originalDate:T},P=_.match(Pme).map(function(E){var I=E[0];if(I==="p"||I==="P"){var A=US[I];return A(E,S.formatLong)}return E}).join("").match(Mme).map(function(E){if(E==="''")return"'";var I=E[0];if(I==="'")return Eme(E);var A=Hhe[I];if(A)return!(n!=null&&n.useAdditionalWeekYearTokens)&&aW(E)&&Oy(E,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&rW(E)&&Oy(E,t,String(e)),A(O,E,S.localize,D);if(I.match(Dme))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");return E}).join("");return P}function Eme(e){var t=e.match(Ome);return t?t[1].replace(Ame,"'"):e}const Rme=Object.freeze(Object.defineProperty({__proto__:null,default:oW},Symbol.toStringTag,{value:"Module"}));function Lme(e){xn(1,arguments);var t=wn(e),n=t.getDate();return n}function Ime(e){xn(1,arguments);var t=wn(e),n=t.getDay();return n}function iW(e){xn(1,arguments);var t=wn(e),n=t.getFullYear(),r=t.getMonth(),l=new Date(0);return l.setFullYear(n,r+1,0),l.setHours(0,0,0,0),l.getDate()}function $me(e){xn(1,arguments);var t=wn(e),n=t.getHours();return n}function Nme(e){xn(1,arguments);var t=wn(e),n=t.getMinutes();return n}function Fme(e){xn(1,arguments);var t=wn(e),n=t.getMonth();return n}function jme(e){xn(1,arguments);var t=wn(e),n=t.getSeconds();return n}function zme(e){return xn(1,arguments),wn(e).getFullYear()}function k0(e,t){xn(2,arguments);var n=wn(e),r=wn(t);return n.getTime()>r.getTime()}function Qc(e,t){xn(2,arguments);var n=wn(e),r=wn(t);return n.getTime()e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,a;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return i=u.done,u},e:function(u){o=!0,a=u},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}}}function Gme(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function vr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yy(e,t)}function Ay(e){return Ay=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ay(e)}function Yme(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Xme(e,t){if(t&&(us(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mn(e)}function yr(e){var t=Yme();return function(){var r=Ay(e),l;if(t){var i=Ay(this).constructor;l=Reflect.construct(r,arguments,i)}else l=r.apply(this,arguments);return Xme(this,l)}}function fr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kme(e,t){if(us(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(us(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lW(e){var t=Kme(e,"string");return us(t)==="symbol"?t:String(t)}function Zme(e,t){for(var n=0;n0,r=n?t:1-t,l;if(r<=50)l=e||100;else{var i=r+50,o=Math.floor(i/100)*100,a=e>=i%100;l=e+o-(a?100:0)}return n?l:1-l}function dW(e){return e%400===0||e%4===0&&e%100!==0}var nge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o0}},{key:"set",value:function(l,i,o){var a=l.getUTCFullYear();if(o.isTwoDigitYear){var s=cW(o.year,a);return l.setUTCFullYear(s,0,1),l.setUTCHours(0,0,0,0),l}var u=!("era"in i)||i.era===1?o.year:1-o.year;return l.setUTCFullYear(u,0,1),l.setUTCHours(0,0,0,0),l}}]),n}(Cr),rge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o0}},{key:"set",value:function(l,i,o,a){var s=k5(l,a);if(o.isTwoDigitYear){var u=cW(o.year,s);return l.setUTCFullYear(u,0,a.firstWeekContainsDate),l.setUTCHours(0,0,0,0),sc(l,a)}var c=!("era"in i)||i.era===1?o.year:1-o.year;return l.setUTCFullYear(c,0,a.firstWeekContainsDate),l.setUTCHours(0,0,0,0),sc(l,a)}}]),n}(Cr),age=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=4}},{key:"set",value:function(l,i,o){return l.setUTCMonth((o-1)*3,1),l.setUTCHours(0,0,0,0),l}}]),n}(Cr),lge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=4}},{key:"set",value:function(l,i,o){return l.setUTCMonth((o-1)*3,1),l.setUTCHours(0,0,0,0),l}}]),n}(Cr),sge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=11}},{key:"set",value:function(l,i,o){return l.setUTCMonth(o,1),l.setUTCHours(0,0,0,0),l}}]),n}(Cr),uge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=11}},{key:"set",value:function(l,i,o){return l.setUTCMonth(o,1),l.setUTCHours(0,0,0,0),l}}]),n}(Cr);function cge(e,t,n){xn(2,arguments);var r=wn(e),l=Pr(t),i=tW(r,n)-l;return r.setUTCDate(r.getUTCDate()-i*7),r}var dge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=53}},{key:"set",value:function(l,i,o,a){return sc(cge(l,o,a),a)}}]),n}(Cr);function fge(e,t){xn(2,arguments);var n=wn(e),r=Pr(t),l=eW(n)-r;return n.setUTCDate(n.getUTCDate()-l*7),n}var pge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=53}},{key:"set",value:function(l,i,o){return nf(fge(l,o))}}]),n}(Cr),hge=[31,28,31,30,31,30,31,31,30,31,30,31],mge=[31,29,31,30,31,30,31,31,30,31,30,31],gge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=mge[s]:i>=1&&i<=hge[s]}},{key:"set",value:function(l,i,o){return l.setUTCDate(o),l.setUTCHours(0,0,0,0),l}}]),n}(Cr),vge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(l,i,o){return l.setUTCMonth(0,o),l.setUTCHours(0,0,0,0),l}}]),n}(Cr);function M5(e,t,n){var r,l,i,o,a,s,u,c;xn(2,arguments);var d=gu(),f=Pr((r=(l=(i=(o=n==null?void 0:n.weekStartsOn)!==null&&o!==void 0?o:n==null||(a=n.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&l!==void 0?l:(u=d.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=wn(e),h=Pr(t),g=p.getUTCDay(),b=h%7,v=(b+7)%7,m=(v=0&&i<=6}},{key:"set",value:function(l,i,o,a){return l=M5(l,o,a),l.setUTCHours(0,0,0,0),l}}]),n}(Cr),bge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=6}},{key:"set",value:function(l,i,o,a){return l=M5(l,o,a),l.setUTCHours(0,0,0,0),l}}]),n}(Cr),xge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=6}},{key:"set",value:function(l,i,o,a){return l=M5(l,o,a),l.setUTCHours(0,0,0,0),l}}]),n}(Cr);function wge(e,t){xn(2,arguments);var n=Pr(t);n%7===0&&(n=n-7);var r=1,l=wn(e),i=l.getUTCDay(),o=n%7,a=(o+7)%7,s=(a=1&&i<=7}},{key:"set",value:function(l,i,o){return l=wge(l,o),l.setUTCHours(0,0,0,0),l}}]),n}(Cr),Tge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=12}},{key:"set",value:function(l,i,o){var a=l.getUTCHours()>=12;return a&&o<12?l.setUTCHours(o+12,0,0,0):!a&&o===12?l.setUTCHours(0,0,0,0):l.setUTCHours(o,0,0,0),l}}]),n}(Cr),Mge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=23}},{key:"set",value:function(l,i,o){return l.setUTCHours(o,0,0,0),l}}]),n}(Cr),Pge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=11}},{key:"set",value:function(l,i,o){var a=l.getUTCHours()>=12;return a&&o<12?l.setUTCHours(o+12,0,0,0):l.setUTCHours(o,0,0,0),l}}]),n}(Cr),Oge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=24}},{key:"set",value:function(l,i,o){var a=o<=24?o%24:o;return l.setUTCHours(a,0,0,0),l}}]),n}(Cr),Age=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=59}},{key:"set",value:function(l,i,o){return l.setUTCMinutes(o,0,0),l}}]),n}(Cr),Dge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=59}},{key:"set",value:function(l,i,o){return l.setUTCSeconds(o,0),l}}]),n}(Cr),Ege=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=Pr((h=(g=(b=(v=r==null?void 0:r.weekStartsOn)!==null&&v!==void 0?v:r==null||(m=r.locale)===null||m===void 0||(y=m.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&b!==void 0?b:k.weekStartsOn)!==null&&g!==void 0?g:(x=k.locale)===null||x===void 0||(_=x.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&h!==void 0?h:0);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(S==="")return w===""?wn(n):new Date(NaN);var O={firstWeekContainsDate:T,weekStartsOn:M,locale:C},D=[new ege],P=S.match(jge).map(function(H){var G=H[0];if(G in US){var te=US[G];return te(H,C.formatLong)}return H}).join("").match(Fge),E=[],I=ND(P),A;try{var F=function(){var G=A.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&aW(G)&&Oy(G,S,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&rW(G)&&Oy(G,S,e);var te=G[0],ee=Nge[te];if(ee){var U=ee.incompatibleTokens;if(Array.isArray(U)){var Q=E.find(function(X){return U.includes(X.token)||X.token===te});if(Q)throw new RangeError("The format string mustn't contain `".concat(Q.fullToken,"` and `").concat(G,"` at the same time"))}else if(ee.incompatibleTokens==="*"&&E.length>0)throw new RangeError("The format string mustn't contain `".concat(G,"` and any other token at the same time"));E.push({token:te,fullToken:G});var V=ee.run(w,G,C.match,O);if(!V)return{v:new Date(NaN)};D.push(V.setter),w=V.rest}else{if(te.match(qge))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");if(G==="''"?G="'":te==="'"&&(G=Hge(G)),w.indexOf(G)===0)w=w.slice(G.length);else return{v:new Date(NaN)}}};for(I.s();!(A=I.n()).done;){var j=F();if(us(j)==="object")return j.v}}catch(H){I.e(H)}finally{I.f()}if(w.length>0&&Wge.test(w))return new Date(NaN);var B=D.map(function(H){return H.priority}).sort(function(H,G){return G-H}).filter(function(H,G,te){return te.indexOf(H)===G}).map(function(H){return D.filter(function(G){return G.priority===H}).sort(function(G,te){return te.subPriority-G.subPriority})}).map(function(H){return H[0]}),z=wn(n);if(isNaN(z.getTime()))return new Date(NaN);var N=QB(z,Py(z)),R={},q=ND(B),Y;try{for(q.s();!(Y=q.n()).done;){var L=Y.value;if(!L.validate(N,O))return new Date(NaN);var W=L.set(N,R,O);Array.isArray(W)?(N=W[0],Gme(R,W[1])):N=W}}catch(H){q.e(H)}finally{q.f()}return N}function Hge(e){return e.match(zge)[1].replace(Bge,"'")}function Vge(e,t){xn(2,arguments);var n=wn(e),r=Pr(t);return n.setDate(r),n}function Gge(e,t){xn(2,arguments);var n=wn(e),r=Pr(t);return n.setHours(r),n}function Yge(e,t){xn(2,arguments);var n=wn(e),r=Pr(t);return n.setMinutes(r),n}function Xge(e,t){xn(2,arguments);var n=wn(e),r=Pr(t),l=n.getFullYear(),i=n.getDate(),o=new Date(0);o.setFullYear(l,r,15),o.setHours(0,0,0,0);var a=iW(o);return n.setMonth(r,Math.min(i,a)),n}function Kge(e,t){xn(2,arguments);var n=wn(e),r=Pr(t);return n.setSeconds(r),n}function Zge(e,t){xn(2,arguments);var n=wn(e),r=Pr(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function C0(e){xn(1,arguments);var t=wn(e);return t.setDate(1),t.setHours(0,0,0,0),t}function q_(e,t){var n,r,l,i,o,a,s,u;xn(1,arguments);var c=gu(),d=Pr((n=(r=(l=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(a=o.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&l!==void 0?l:c.weekStartsOn)!==null&&r!==void 0?r:(s=c.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=wn(e),p=f.getDay(),h=(p2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],P0.timeZoneDelimiter.test(t.date)&&(t.date=e.split(P0.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var l=P0.timezone.exec(r);l?(t.time=r.replace(l[1],""),t.timezone=l[1]):t.time=r}return t}function n0e(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var l=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?l:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function r0e(e,t){if(t===null)return new Date(NaN);var n=e.match(Qge);if(!n)return new Date(NaN);var r=!!n[4],l=$p(n[1]),i=$p(n[2])-1,o=$p(n[3]),a=$p(n[4]),s=$p(n[5])-1;if(r)return c0e(t,a,s)?i0e(t,a,s):new Date(NaN);var u=new Date(0);return!s0e(t,i,o)||!u0e(t,l)?new Date(NaN):(u.setUTCFullYear(t,i,Math.max(l,o)),u)}function $p(e){return e?parseInt(e):1}function a0e(e){var t=e.match(Jge);if(!t)return NaN;var n=U_(t[1]),r=U_(t[2]),l=U_(t[3]);return d0e(n,r,l)?n*Fb+r*Nb+l*1e3:NaN}function U_(e){return e&&parseFloat(e.replace(",","."))||0}function o0e(e){if(e==="Z")return 0;var t=e.match(e0e);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),l=t[3]&&parseInt(t[3])||0;return f0e(r,l)?n*(r*Fb+l*Nb):NaN}function i0e(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var l=r.getUTCDay()||7,i=(t-1)*7+n+1-l;return r.setUTCDate(r.getUTCDate()+i),r}var l0e=[31,null,31,30,31,30,31,31,30,31,30,31];function pW(e){return e%400===0||e%4===0&&e%100!==0}function s0e(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(l0e[t]||(pW(e)?29:28))}function u0e(e,t){return t>=1&&t<=(pW(e)?366:365)}function c0e(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function d0e(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function f0e(e,t){return t>=0&&t<=59}const p0e=Object.freeze(Object.defineProperty({__proto__:null,default:fW},Symbol.toStringTag,{value:"Module"}));function h0e(e,t){var n,r;xn(1,arguments);var l=wn(e);if(isNaN(l.getTime()))throw new RangeError("Invalid time value");var i=String((n=t==null?void 0:t.format)!==null&&n!==void 0?n:"extended"),o=String((r=t==null?void 0:t.representation)!==null&&r!==void 0?r:"complete");if(i!=="extended"&&i!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(o!=="date"&&o!=="time"&&o!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var a="",s="",u=i==="extended"?"-":"",c=i==="extended"?":":"";if(o!=="time"){var d=ir(l.getDate(),2),f=ir(l.getMonth()+1,2),p=ir(l.getFullYear(),4);a="".concat(p).concat(u).concat(f).concat(u).concat(d)}if(o!=="date"){var h=l.getTimezoneOffset();if(h!==0){var g=Math.abs(h),b=ir(Math.floor(g/60),2),v=ir(g%60,2),m=h<0?"+":"-";s="".concat(m).concat(b,":").concat(v)}else s="Z";var y=ir(l.getHours(),2),x=ir(l.getMinutes(),2),_=ir(l.getSeconds(),2),w=a===""?"":"T",S=[y,x,_].join(c);a="".concat(a).concat(w).concat(S).concat(s)}return a}function m0e(e,t){xn(2,arguments);var n=wn(e).getTime(),r=wn(t.start).getTime(),l=wn(t.end).getTime();if(!(r<=l))throw new RangeError("Invalid interval");return n>=r&&n<=l}var HS={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(s,u){switch(s){case"P":return u.date({width:"short"});case"PP":return u.date({width:"medium"});case"PPP":return u.date({width:"long"});case"PPPP":default:return u.date({width:"full"})}},r=function(s,u){switch(s){case"p":return u.time({width:"short"});case"pp":return u.time({width:"medium"});case"ppp":return u.time({width:"long"});case"pppp":default:return u.time({width:"full"})}},l=function(s,u){var c=s.match(/(P+)(p+)?/)||[],d=c[1],f=c[2];if(!f)return n(s,u);var p;switch(d){case"P":p=u.dateTime({width:"short"});break;case"PP":p=u.dateTime({width:"medium"});break;case"PPP":p=u.dateTime({width:"long"});break;case"PPPP":default:p=u.dateTime({width:"full"});break}return p.replace("{{date}}",n(d,u)).replace("{{time}}",r(f,u))},i={p:r,P:l},o=i;t.default=o,e.exports=t.default})(HS,HS.exports);var g0e=HS.exports;const hW=dr(g0e),v0e={dayOfMonth:"d",fullDate:"PP",fullDateWithWeekday:"PPPP",fullDateTime:"PP p",fullDateTime12h:"PP hh:mm aaa",fullDateTime24h:"PP HH:mm",fullTime:"p",fullTime12h:"hh:mm aaa",fullTime24h:"HH:mm",hours12h:"hh",hours24h:"HH",keyboardDate:"P",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aaa",keyboardDateTime24h:"P HH:mm",minutes:"mm",month:"LLLL",monthAndDate:"MMMM d",monthAndYear:"LLLL yyyy",monthShort:"MMM",weekday:"EEEE",weekdayShort:"EEE",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",seconds:"ss",shortDate:"MMM d",year:"yyyy"};class y0e{constructor({locale:t,formats:n}={}){this.lib="date-fns",this.is12HourCycleInCurrentLocale=()=>{var r;return this.locale?/a/.test((r=this.locale.formatLong)===null||r===void 0?void 0:r.time()):!0},this.getFormatHelperText=r=>{var l,i;const o=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,a=this.locale||zb;return(i=(l=r.match(o))===null||l===void 0?void 0:l.map(s=>{const u=s[0];if(u==="p"||u==="P"){const c=hW[u];return c(s,a.formatLong,{})}return s}).join("").replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase())!==null&&i!==void 0?i:r},this.parseISO=r=>fW(r),this.toISO=r=>h0e(r,{format:"extended"}),this.getCurrentLocaleCode=()=>{var r;return((r=this.locale)===null||r===void 0?void 0:r.code)||"en-US"},this.addSeconds=(r,l)=>vhe(r,l),this.addMinutes=(r,l)=>bhe(r,l),this.addHours=(r,l)=>whe(r,l),this.addDays=(r,l)=>BS(r,l),this.addWeeks=(r,l)=>_he(r,l),this.addMonths=(r,l)=>wv(r,l),this.addYears=(r,l)=>OD(r,l),this.isValid=r=>ZB(this.date(r)),this.getDiff=(r,l,i)=>{var o;const a=(o=this.date(l))!==null&&o!==void 0?o:r;if(!this.isValid(a))return 0;switch(i){case"years":return She(r,a);case"quarters":return Phe(r,a);case"months":return XB(r,a);case"weeks":return Dhe(r,a);case"days":return KB(r,a);case"hours":return Rhe(r,a);case"minutes":return Lhe(r,a);case"seconds":return Ihe(r,a);default:return jb(r,a)}},this.isAfter=(r,l)=>k0(r,l),this.isBefore=(r,l)=>Qc(r,l),this.startOfDay=r=>tf(r),this.endOfDay=r=>WS(r),this.getHours=r=>$me(r),this.setHours=(r,l)=>Gge(r,l),this.setMinutes=(r,l)=>Yge(r,l),this.getSeconds=r=>jme(r),this.setSeconds=(r,l)=>Kge(r,l),this.isSameDay=(r,l)=>Wme(r,l),this.isSameMonth=(r,l)=>Ume(r,l),this.isSameYear=(r,l)=>qme(r,l),this.isSameHour=(r,l)=>Hme(r,l),this.startOfYear=r=>M0(r),this.endOfYear=r=>B_(r),this.startOfMonth=r=>C0(r),this.endOfMonth=r=>qS(r),this.startOfWeek=r=>q_(r,{locale:this.locale}),this.endOfWeek=r=>z_(r,{locale:this.locale}),this.getYear=r=>zme(r),this.setYear=(r,l)=>Zge(r,l),this.date=r=>typeof r>"u"?new Date:r===null?null:new Date(r),this.toJsDate=r=>r,this.parse=(r,l)=>r===""?null:Uge(r,l,new Date,{locale:this.locale}),this.format=(r,l)=>this.formatByString(r,this.formats[l]),this.formatByString=(r,l)=>oW(r,l,{locale:this.locale}),this.isEqual=(r,l)=>r===null&&l===null?!0:Bme(r,l),this.isNull=r=>r===null,this.isAfterDay=(r,l)=>k0(r,WS(l)),this.isBeforeDay=(r,l)=>Qc(r,tf(l)),this.isBeforeYear=(r,l)=>Qc(r,M0(l)),this.isAfterYear=(r,l)=>k0(r,B_(l)),this.isWithinRange=(r,[l,i])=>m0e(r,{start:l,end:i}),this.formatNumber=r=>r,this.getMinutes=r=>Nme(r),this.getDate=r=>Lme(r),this.setDate=(r,l)=>Vge(r,l),this.getMonth=r=>Fme(r),this.getDaysInMonth=r=>iW(r),this.setMonth=(r,l)=>Xge(r,l),this.getMeridiemText=r=>r==="am"?"AM":"PM",this.getNextMonth=r=>wv(r,1),this.getPreviousMonth=r=>wv(r,-1),this.getMonthArray=r=>{const i=[M0(r)];for(;i.length<12;){const o=i[i.length-1];i.push(this.getNextMonth(o))}return i},this.mergeDateAndTime=(r,l)=>this.setSeconds(this.setMinutes(this.setHours(r,this.getHours(l)),this.getMinutes(l)),this.getSeconds(l)),this.getWeekdays=()=>{const r=new Date;return $he({start:q_(r,{locale:this.locale}),end:z_(r,{locale:this.locale})}).map(l=>this.formatByString(l,"EEEEEE"))},this.getWeekArray=r=>{const l=q_(C0(r),{locale:this.locale}),i=z_(qS(r),{locale:this.locale});let o=0,a=l;const s=[];let u=null;for(;Qc(a,i);){const c=Math.floor(o/7);s[c]=s[c]||[];const d=Ime(a);u!==d&&(u=d,s[c].push(a),o+=1),a=BS(a,1)}return s},this.getYearRange=(r,l)=>{const i=M0(r),o=B_(l),a=[];let s=i;for(;Qc(s,o);)a.push(s),s=OD(s,1);return a},this.locale=t,this.formats=Object.assign({},v0e,n)}isBeforeMonth(t,n){return Qc(t,C0(n))}isAfterMonth(t,n){return k0(t,C0(n))}}const b0e={y:"year",yy:"year",yyy:"year",yyyy:"year",MMMM:"month",MM:"month",DD:"day",d:"day",dd:"day",H:"hour",HH:"hour",h:"hour",hh:"hour",mm:"minute",ss:"second",a:"am-pm",aa:"am-pm",aaa:"am-pm"};class x0e extends y0e{constructor(...t){super(...t),this.formatTokenMap=b0e,this.expandFormat=n=>{const r=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return n.match(r).map(l=>{const i=l[0];if(i==="p"||i==="P"){const o=hW[i],a=this.locale||zb;return o(l,a.formatLong,{})}return l}).join("")},this.getFormatHelperText=n=>this.expandFormat(n).replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase()}}const w0e=Object.freeze(Object.defineProperty({__proto__:null,AdapterDateFns:x0e},Symbol.toStringTag,{value:"Module"})),mW=er(w0e);function gW(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;te.indexOf(n)!==-1):e.indexOf(t)!==-1}const vW=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},yW=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?yW(t.shadowRoot):t:null};function _0e(e){return gn("PrivatePickersMonth",e)}const VS=fn("PrivatePickersMonth",["root","selected"]),T0e=["disabled","onSelect","selected","value","tabIndex","hasFocus","onFocus","onBlur"],S0e=e=>{const{classes:t,selected:n}=e;return vn({root:["root",n&&"selected"]},_0e,t)},k0e=Dt(mr,{name:"PrivatePickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${VS.selected}`]:t.selected}]})(({theme:e})=>Yt({flex:"1 0 33.33%",display:"flex",alignItems:"center",justifyContent:"center",color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:ar(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{pointerEvents:"none",color:e.palette.text.secondary},[`&.${VS.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),FD=()=>{},C0e=e=>{const{disabled:t,onSelect:n,selected:r,value:l,tabIndex:i,hasFocus:o,onFocus:a=FD,onBlur:s=FD}=e,u=tr(e,T0e),c=S0e(e),d=()=>{n(l)},f=ge.useRef(null);return Vo(()=>{if(o){var p;(p=f.current)==null||p.focus()}},[o]),Te.jsx(k0e,Yt({ref:f,component:"button",type:"button",className:c.root,tabIndex:i,onClick:d,onKeyDown:vW(d),color:r?"primary":void 0,variant:r?"h5":"subtitle1",disabled:t,onFocus:p=>a(p,l),onBlur:p=>s(p,l)},u))},fa=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:Yt({},e)}}}}),M0e={previousMonth:"Vorige maand",nextMonth:"Volgende maand",openPreviousView:"open vorige view",openNextView:"open volgende view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"jaarweergave is geopend, schakel over naar kalenderweergave":"kalenderweergave is geopend, switch naar jaarweergave",start:"Start",end:"Einde",cancelButtonLabel:"Annuleren",clearButtonLabel:"Resetten",okButtonLabel:"OK",todayButtonLabel:"Vandaag",clockLabelText:(e,t,n)=>`Selecteer ${e}. ${t===null?"Geen tijd geselecteerd":`Geselecteerde tijd is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} uren`,minutesClockNumberText:e=>`${e} minuten`,secondsClockNumberText:e=>`${e} seconden`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Kies datum, geselecteerde datum is ${t.format(t.date(e),"fullDate")}`:"Kies datum",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Kies tijd, geselecteerde tijd is ${t.format(t.date(e),"fullTime")}`:"Kies tijd",timeTableLabel:"kies tijd",dateTableLabel:"kies datum"},P0e=fa(M0e),O0e={previousMonth:"Poprzedni miesiąc",nextMonth:"Następny miesiąc",openPreviousView:"otwórz poprzedni widok",openNextView:"otwórz następny widok",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"otwarty jest widok roku, przełącz na widok kalendarza":"otwarty jest widok kalendarza, przełącz na widok roku",start:"Początek",end:"Koniec",cancelButtonLabel:"Anuluj",clearButtonLabel:"Wyczyść",okButtonLabel:"Zatwierdź",todayButtonLabel:"Dzisiaj",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"Nie wybrano czasu":`Wybrany czas to ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} godzin`,minutesClockNumberText:e=>`${e} minut`,secondsClockNumberText:e=>`${e} sekund`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Wybierz datę, obecnie wybrana data to ${t.format(t.date(e),"fullDate")}`:"Wybierz datę",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Wybierz czas, obecnie wybrany czas to ${t.format(t.date(e),"fullTime")}`:"Wybierz czas",timeTableLabel:"wybierz czas",dateTableLabel:"wybierz datę"},A0e=fa(O0e),D0e={previousMonth:"Mês anterior",nextMonth:"Próximo mês",openPreviousView:"Abrir próxima seleção",openNextView:"Abrir seleção anterior",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"Seleção de ano está aberta, alternando para seleção de calendário":"Seleção de calendários está aberta, alternando para seleção de ano",start:"Início",end:"Fim",cancelButtonLabel:"Cancelar",clearButtonLabel:"Limpar",okButtonLabel:"OK",todayButtonLabel:"Hoje",datePickerDefaultToolbarTitle:"Selecione a data",dateTimePickerDefaultToolbarTitle:"Selecione data e hora",timePickerDefaultToolbarTitle:"Selecione a hora",dateRangePickerDefaultToolbarTitle:"Selecione o intervalo entre datas",clockLabelText:(e,t,n)=>`Selecione ${e}. ${t===null?"Hora não selecionada":`Selecionado a hora ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} horas`,minutesClockNumberText:e=>`${e} minutos`,secondsClockNumberText:e=>`${e} segundos`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Escolha uma data, data selecionada ${t.format(t.date(e),"fullDate")}`:"Escolha uma data",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Escolha uma hora, hora selecionada ${t.format(t.date(e),"fullTime")}`:"Escolha uma hora",timeTableLabel:"escolha uma hora",dateTableLabel:"escolha uma data"},E0e=fa(D0e),R0e={previousMonth:"Önceki ay",nextMonth:"Sonraki ay",openPreviousView:"sonraki görünüm",openNextView:"önceki görünüm",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"yıl görünümü açık, takvim görünümüne geç":"takvim görünümü açık, yıl görünümüne geç",inputModeToggleButtonAriaLabel:(e,t)=>e?`metin girişi görünümü açık, şuraya gidin: ${t} görünümü`:`${t} görünüm açık, metin girişi görünümüne gidin`,start:"Başlangıç",end:"Bitiş",cancelButtonLabel:"iptal",clearButtonLabel:"Temizle",okButtonLabel:"Tamam",todayButtonLabel:"Bugün",datePickerDefaultToolbarTitle:"Tarih Seç",dateTimePickerDefaultToolbarTitle:"Tarih & Saat seç",timePickerDefaultToolbarTitle:"Saat seç",dateRangePickerDefaultToolbarTitle:"Tarih aralığı seçin",clockLabelText:(e,t,n)=>`${e} seç. ${t===null?"Zaman seçilmedi":`Seçilen zaman: ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} saat`,minutesClockNumberText:e=>`${e} dakika`,secondsClockNumberText:e=>`${e} saniye`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Tarih seçin, seçilen tarih: ${t.format(e,"fullDate")}`:"Tarih seç",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Saat seçin, seçilen saat: ${t.format(e,"fullTime")}`:"Saat seç",timeTableLabel:"saat seç",dateTableLabel:"tarih seç"},L0e=fa(R0e),O0={hours:"Stunden",minutes:"Minuten",seconds:"Sekunden"},jD={calendar:"Kalenderansicht",clock:"Uhransicht"},I0e={previousMonth:"Letzter Monat",nextMonth:"Nächster Monat",openPreviousView:"Letzte Ansicht öffnen",openNextView:"Nächste Ansicht öffnen",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"Jahresansicht ist geöffnet, zur Kalenderansicht wechseln":"Kalenderansicht ist geöffnet, zur Jahresansicht wechseln",inputModeToggleButtonAriaLabel:(e,t)=>e?`Texteingabeansicht ist geöffnet, zur ${jD[t]} wechseln`:`${jD[t]} ist geöffnet, zur Texteingabeansicht wechseln`,start:"Beginn",end:"Ende",cancelButtonLabel:"Abbrechen",clearButtonLabel:"Löschen",okButtonLabel:"OK",todayButtonLabel:"Heute",datePickerDefaultToolbarTitle:"Datum auswählen",dateTimePickerDefaultToolbarTitle:"Datum & Uhrzeit auswählen",timePickerDefaultToolbarTitle:"Uhrzeit auswählen",dateRangePickerDefaultToolbarTitle:"Datumsbereich auswählen",clockLabelText:(e,t,n)=>{var r;return`${(r=O0[e])!=null?r:e} auswählen. ${t===null?"Keine Uhrzeit ausgewählt":`Gewählte Uhrzeit ist ${n.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} ${O0.hours}`,minutesClockNumberText:e=>`${e} ${O0.minutes}`,secondsClockNumberText:e=>`${e} ${O0.seconds}`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Datum auswählen, gewähltes Datum ist ${t.format(t.date(e),"fullDate")}`:"Datum auswählen",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Uhrzeit auswählen, gewählte Uhrzeit ist ${t.format(t.date(e),"fullTime")}`:"Uhrzeit auswählen",timeTableLabel:"Uhrzeit auswählen",dateTableLabel:"Datum auswählen"},$0e=fa(I0e),N0e={hours:"las horas",minutes:"los minutos",seconds:"los segundos"},F0e={previousMonth:"Último mes",nextMonth:"Próximo mes",openPreviousView:"abrir la última vista",openNextView:"abrir la siguiente vista",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"la vista del año está abierta, cambie a la vista de calendario":"la vista de calendario está abierta, cambie a la vista del año",inputModeToggleButtonAriaLabel:(e,t)=>e?`la vista de entrada de texto está abierta, ir a la vista ${t}`:`la vista ${t} está abierta, ir a la vista de entrada de texto`,start:"Empezar",end:"Terminar",cancelButtonLabel:"Cancelar",clearButtonLabel:"Limpiar",okButtonLabel:"OK",todayButtonLabel:"Hoy",datePickerDefaultToolbarTitle:"Seleccionar fecha",dateTimePickerDefaultToolbarTitle:"Seleccionar fecha & hora",timePickerDefaultToolbarTitle:"Seleccionar hora",dateRangePickerDefaultToolbarTitle:"Seleccionar rango de fecha",clockLabelText:(e,t,n)=>`Seleccione ${N0e[e]}. ${t===null?"Sin tiempo seleccionado":`El tiempo seleccionado es ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} horas`,minutesClockNumberText:e=>`${e} minutos`,secondsClockNumberText:e=>`${e} segundos`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Elige la fecha, la fecha elegida es ${t.format(t.date(e),"fullDate")}`:"Elige la fecha",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Elige la hora, la hora elegido es ${t.format(t.date(e),"fullTime")}`:"Elige la hora",timeTableLabel:"elige la fecha",dateTableLabel:"elige la hora"},j0e=fa(F0e),z0e={previousMonth:"ماه گذشته",nextMonth:"ماه آینده",openPreviousView:"نمای قبلی",openNextView:"نمای بعدی",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"نمای سال باز است، رفتن به نمای تقویم":"نمای تقویم باز است، رفتن به نمای سال",inputModeToggleButtonAriaLabel:(e,t)=>e?`نمای ورودی متن باز است، رفتن به نمای ${t}`:`نمای ${t} باز است، رفتن به نمای ورودی متن`,start:"شروع",end:"پایان",cancelButtonLabel:"لغو",clearButtonLabel:"پاک کردن",okButtonLabel:"اوکی",todayButtonLabel:"امروز",datePickerDefaultToolbarTitle:"تاریخ را انتخاب کنید",dateTimePickerDefaultToolbarTitle:"تاریخ و ساعت را انتخاب کنید",timePickerDefaultToolbarTitle:"ساعت را انتخاب کنید",dateRangePickerDefaultToolbarTitle:"محدوده تاریخ را انتخاب کنید",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"هیچ ساعتی انتخاب نشده است":`ساعت انتخاب ${n.format(t,"fullTime")} می باشد`}`,hoursClockNumberText:e=>`${e} ساعت ها`,minutesClockNumberText:e=>`${e} دقیقه ها`,secondsClockNumberText:e=>`${e} ثانیه ها`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`تاریخ را انتخاب کنید، تاریخ انتخاب شده ${t.format(t.date(e),"fullDate")} می باشد`:"تاریخ را انتخاب کنید",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`ساعت را انتخاب کنید، ساعت انتخاب شده ${t.format(t.date(e),"fullTime")} می باشد`:"ساعت را انتخاب کنید",timeTableLabel:"انتخاب تاریخ",dateTableLabel:"انتخاب ساعت"},B0e=fa(z0e),W0e={hours:"tunnit",minutes:"minuutit",seconds:"sekuntit"},zD={calendar:"kalenteri",clock:"kello"},q0e={previousMonth:"Edellinen kuukausi",nextMonth:"Seuraava kuukausi",openPreviousView:"avaa edellinen kuukausi",openNextView:"avaa seuraava kuukausi",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"vuosinäkymä on auki, vaihda kalenterinäkymään":"kalenterinäkymä on auki, vaihda vuosinäkymään",inputModeToggleButtonAriaLabel:(e,t)=>e?`tekstikenttä on auki, mene ${zD[t]}näkymään`:`${zD[t]}näkymä on auki, mene tekstikenttään`,start:"Alku",end:"Loppu",cancelButtonLabel:"Peruuta",clearButtonLabel:"Tyhjennä",okButtonLabel:"OK",todayButtonLabel:"Tänään",datePickerDefaultToolbarTitle:"Valitse päivä",dateTimePickerDefaultToolbarTitle:"Valitse päivä ja aika",timePickerDefaultToolbarTitle:"Valitse aika",dateRangePickerDefaultToolbarTitle:"Valitse aikaväli",clockLabelText:(e,t,n)=>`Valitse ${W0e[e]}. ${t===null?"Ei aikaa valittuna":`Valittu aika on ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} tuntia`,minutesClockNumberText:e=>`${e} minuuttia`,secondsClockNumberText:e=>`${e} sekunttia`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Valitse päivä, valittu päivä on ${t.format(t.date(e),"fullDate")}`:"Valitse päivä",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Valitse aika, valittu aika on ${t.format(t.date(e),"fullTime")}`:"Valitse aika",timeTableLabel:"valitse aika",dateTableLabel:"valitse päivä"},U0e=fa(q0e),H0e={hours:"Hodiny",minutes:"Minuty",seconds:"Sekundy"},BD={calendar:"kalendáře",clock:"času"},V0e={previousMonth:"Další měsíc",nextMonth:"Předchozí month",openPreviousView:"otevřít předchozí zobrazení",openNextView:"otevřít další zobrazení",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"roční zobrazení otevřeno, přepněte do zobrazení kalendáře":"zobrazení kalendáře otevřeno, přepněte do zobrazení roku",inputModeToggleButtonAriaLabel:(e,t)=>e?`Zobrazení pro zadávání textu je otevřené, přepněte do zobrazení ${BD[t]}`:`Zobrazení ${BD[t]} je otevřené, přepněte do zobrazení textového pole`,start:"Začátek",end:"Konec",cancelButtonLabel:"Zrušit",clearButtonLabel:"Vymazat",okButtonLabel:"Potvrdit",todayButtonLabel:"Dnes",datePickerDefaultToolbarTitle:"Vyberte datum",dateTimePickerDefaultToolbarTitle:"Vyberte datum a čas",timePickerDefaultToolbarTitle:"Vyberte čas",dateRangePickerDefaultToolbarTitle:"Vyberete rozmezí dat",clockLabelText:(e,t,n)=>{var r;return`${(r=H0e[e])!=null?r:e} vybrány. ${t===null?"Není vybrán čas":`Vybraný čas je ${n.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} hodin`,minutesClockNumberText:e=>`${e} minut`,secondsClockNumberText:e=>`${e} sekund`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Vybrané datum, vybrané datum je ${t.format(e,"fullDate")}`:"Vyberte datum",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Vybrané čas, vybraný čas je ${t.format(e,"fullTime")}`:"Vyberte čas",timeTableLabel:"vyberte čas",dateTableLabel:"vyberte datum"},G0e=fa(V0e),Y0e={hours:"heures",minutes:"minutes",seconds:"secondes"},WD={calendar:"calendrier",clock:"horloge"},X0e={previousMonth:"Mois précédent",nextMonth:"Mois suivant",openPreviousView:"Ouvrir la vue précédente",openNextView:"Ouvrir la vue suivante",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"La vue année est ouverte, ouvrir la vue calendrier":"La vue calendrier est ouverte, ouvrir la vue année",inputModeToggleButtonAriaLabel:(e,t)=>e?`passer du champ text au ${WD[t]}`:`passer du ${WD[t]} au champ text`,start:"Début",end:"Fin",cancelButtonLabel:"Annuler",clearButtonLabel:"Vider",okButtonLabel:"OK",todayButtonLabel:"Aujourd'hui",clockLabelText:(e,t,n)=>`Choix des ${Y0e[e]}. ${t===null?"Aucune heure choisie":`L'heure choisie est ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} heures`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} secondes`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choisir la date, la date sélectionnée est ${t.format(t.date(e),"fullDate")}`:"Choisir la date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choisir l'heure, l'heure sélectionnée est ${t.format(t.date(e),"fullTime")}`:"Choisir l'heure",timeTableLabel:"choix de l'heure",dateTableLabel:"choix de la date"},K0e=fa(X0e),A0={hours:"Óra",minutes:"Perc",seconds:"Másodperc"},qD={calendar:"naptár",clock:"óra"},Z0e={previousMonth:"Előző hónap",nextMonth:"Következő hónap",openPreviousView:"Előző nézet megnyitása",openNextView:"Következő nézet megnyitása",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"az évválasztó már nyitva, váltson a naptárnézetre":"a naptárnézet már nyitva, váltson az évválasztóra",inputModeToggleButtonAriaLabel:(e,t)=>e?`szöveges beviteli nézet aktív, váltás ${qD[t]} nézetre`:`${qD[t]} beviteli nézet aktív, váltás szöveges beviteli nézetre`,start:"Kezdő dátum",end:"Záró dátum",cancelButtonLabel:"Mégse",clearButtonLabel:"Törlés",okButtonLabel:"OK",todayButtonLabel:"Ma",datePickerDefaultToolbarTitle:"Dátum kiválasztása",dateTimePickerDefaultToolbarTitle:"Dátum és idő kiválasztása",timePickerDefaultToolbarTitle:"Idő kiválasztása",dateRangePickerDefaultToolbarTitle:"Dátumhatárok kiválasztása",clockLabelText:(e,t,n)=>{var r;return`${(r=A0[e])!=null?r:e} kiválasztása. ${t===null?"Nincs kiválasztva idő":`A kiválasztott idő ${n.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} ${A0.hours.toLowerCase()}`,minutesClockNumberText:e=>`${e} ${A0.minutes.toLowerCase()}`,secondsClockNumberText:e=>`${e} ${A0.seconds.toLowerCase()}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Válasszon dátumot, a kiválasztott dátum: ${t.format(e,"fullDate")}`:"Válasszon dátumot",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Válasszon időt, a kiválasztott idő: ${t.format(e,"fullTime")}`:"Válasszon időt",timeTableLabel:"válasszon időt",dateTableLabel:"válasszon dátumot"},Q0e=fa(Z0e),bW={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",inputModeToggleButtonAriaLabel:(e,t)=>e?`text input view is open, go to ${t} view`:`${t} view is open, go to text input view`,start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerDefaultToolbarTitle:"Select date",dateTimePickerDefaultToolbarTitle:"Select date & time",timePickerDefaultToolbarTitle:"Select time",dateRangePickerDefaultToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose date, selected date is ${t.format(t.date(e),"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose time, selected time is ${t.format(t.date(e),"fullTime")}`:"Choose time",timeTableLabel:"pick time",dateTableLabel:"pick date"},xW=bW,J0e=fa(bW),eve={previousMonth:"Forrige måned",nextMonth:"Neste måned",openPreviousView:"åpne forrige visning",openNextView:"åpne neste visning",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"årsvisning er åpen, bytt til kalendervisning":"kalendervisning er åpen, bytt til årsvisning",start:"Start",end:"Slutt",cancelButtonLabel:"Avbryt",clearButtonLabel:"Fjern",okButtonLabel:"OK",todayButtonLabel:"I dag",clockLabelText:(e,t,n)=>`Velg ${e}. ${t===null?"Ingen tid valgt":`Valgt tid er ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} timer`,minutesClockNumberText:e=>`${e} minutter`,secondsClockNumberText:e=>`${e} sekunder`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velg dato, valgt dato er ${t.format(t.date(e),"fullDate")}`:"Velg dato",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velg tid, valgt tid er ${t.format(t.date(e),"fullTime")}`:"Velg tid",timeTableLabel:"velg tid",dateTableLabel:"velg dato"},tve=fa(eve),nve={previousMonth:"Föregående månad",nextMonth:"Nästa månad",openPreviousView:"öppna föregående vy",openNextView:"öppna nästa vy",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"årsvyn är öppen, byt till kalendervy":"kalendervyn är öppen, byt till årsvy",start:"Start",end:"Slut",cancelButtonLabel:"Avbryt",clearButtonLabel:"Rensa",okButtonLabel:"OK",todayButtonLabel:"Idag",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"Ingen tid vald":`Vald tid är ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} timmar`,minutesClockNumberText:e=>`${e} minuter`,secondsClockNumberText:e=>`${e} sekunder`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Välj datum, valt datum är ${t.format(t.date(e),"fullDate")}`:"Välj datum",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Välj tid, vald tid är ${t.format(t.date(e),"fullTime")}`:"Välj tid",timeTableLabel:"välj tid",dateTableLabel:"välj datum"},rve=fa(nve),ave={hours:"le ore",minutes:"i minuti",seconds:"i secondi"},ove={previousMonth:"Mese precedente",nextMonth:"Mese successivo",openPreviousView:"apri la vista precedente",openNextView:"apri la vista successiva",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"la vista dell'anno è aperta, passare alla vista del calendario":"la vista dell'calendario è aperta, passare alla vista dell'anno",inputModeToggleButtonAriaLabel:(e,t)=>e?`la vista del campo di testo è aperta, passare alla vista ${t}`:`la vista aperta è: ${t}, vai alla vista del campo di testo`,start:"Inizio",end:"Fine",cancelButtonLabel:"Cancellare",clearButtonLabel:"Sgomberare",okButtonLabel:"OK",todayButtonLabel:"Oggi",datePickerDefaultToolbarTitle:"Seleziona data",dateTimePickerDefaultToolbarTitle:"Seleziona data e orario",timePickerDefaultToolbarTitle:"Seleziona orario",dateRangePickerDefaultToolbarTitle:"Seleziona intervallo di date",clockLabelText:(e,t,n)=>`Seleziona ${ave[e]}. ${t===null?"Nessun orario selezionato":`L'ora selezionata è ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} ore`,minutesClockNumberText:e=>`${e} minuti`,secondsClockNumberText:e=>`${e} secondi`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Scegli la data, la data selezionata è ${t.format(t.date(e),"fullDate")}`:"Scegli la data",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Scegli l'ora, l'ora selezionata è ${t.format(t.date(e),"fullTime")}`:"Scegli l'ora",timeTableLabel:"scegli un'ora",dateTableLabel:"scegli una data"},ive=fa(ove),lve={hours:"小时",minutes:"分钟",seconds:"秒"},sve={previousMonth:"上个月",nextMonth:"下个月",openPreviousView:"前一个视图",openNextView:"下一个视图",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"年视图已打开,切换为日历视图":"日历视图已打开,切换为年视图",start:"开始",end:"结束",cancelButtonLabel:"取消",clearButtonLabel:"清除",okButtonLabel:"确认",todayButtonLabel:"今天",clockLabelText:(e,t,n)=>`Select ${lve[e]}. ${t===null?"未选择时间":`已选择${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e}小时`,minutesClockNumberText:e=>`${e}分钟`,secondsClockNumberText:e=>`${e}秒`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`选择日期,已选择${t.format(t.date(e),"fullDate")}`:"选择日期",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`选择时间,已选择${t.format(t.date(e),"fullTime")}`:"选择时间",timeTableLabel:"选择时间",dateTableLabel:"选择日期"},uve=fa(sve),cve={hours:"시간을",minutes:"분을",seconds:"초를"},dve={previousMonth:"이전 달",nextMonth:"다음 달",openPreviousView:"이전 화면 보기",openNextView:"다음 화면 보기",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"연도 선택 화면에서 달력 화면으로 전환하기":"달력 화면에서 연도 선택 화면으로 전환하기",inputModeToggleButtonAriaLabel:(e,t)=>e?`텍스트 입력 화면에서 ${t} 화면으로 전환하기`:`${t} 화면에서 텍스트 입력 화면으로 전환하기`,start:"시작",end:"종료",cancelButtonLabel:"취소",clearButtonLabel:"초기화",okButtonLabel:"확인",todayButtonLabel:"오늘",datePickerDefaultToolbarTitle:"날짜 선택하기",dateTimePickerDefaultToolbarTitle:"날짜 & 시간 선택하기",timePickerDefaultToolbarTitle:"시간 선택하기",dateRangePickerDefaultToolbarTitle:"날짜 범위 선택하기",clockLabelText:(e,t,n)=>`${cve[e]} 선택하세요. ${t===null?"시간을 선택하지 않았습니다.":`현재 선택된 시간은 ${n.format(t,"fullTime")}입니다.`}`,hoursClockNumberText:e=>`${e}시간`,minutesClockNumberText:e=>`${e}분`,secondsClockNumberText:e=>`${e}초`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`날짜를 선택하세요. 현재 선택된 날짜는 ${t.format(t.date(e),"fullDate")}입니다.`:"날짜를 선택하세요",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`시간을 선택하세요. 현재 선택된 시간은 ${t.format(t.date(e),"fullTime")}입니다.`:"시간을 선택하세요",timeTableLabel:"선택한 시간",dateTableLabel:"선택한 날짜"},fve=fa(dve),pve={previousMonth:"Fyrri mánuður",nextMonth:"Næsti mánuður",openPreviousView:"opna fyrri skoðun",openNextView:"opna næstu skoðun",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"ársskoðun er opin, skipta yfir í dagatalsskoðun":"dagatalsskoðun er opin, skipta yfir í ársskoðun",inputModeToggleButtonAriaLabel:(e,t)=>{const n=t==="calendar"?"dagatals":"klukku";return e?`textainnsláttur er opinn, fara í ${n}skoðun`:`${n}skoðun er opin, opna fyrir textainnslátt`},start:"Upphaf",end:"Endir",cancelButtonLabel:"Hætta við",clearButtonLabel:"Hreinsa",okButtonLabel:"OK",todayButtonLabel:"Í dag",datePickerDefaultToolbarTitle:"Velja dagsetningu",dateTimePickerDefaultToolbarTitle:"Velja dagsetningu og tíma",timePickerDefaultToolbarTitle:"Velja tíma",dateRangePickerDefaultToolbarTitle:"Velja tímabil",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"Enginn tími valinn":`Valinn tími er ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} klukkustundir`,minutesClockNumberText:e=>`${e} mínútur`,secondsClockNumberText:e=>`${e} sekúndur`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velja dagsetningu, valin dagsetning er ${t.format(t.date(e),"fullDate")}`:"Velja dagsetningu",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velja tíma, valinn tími er ${t.format(t.date(e),"fullTime")}`:"Velja tíma",timeTableLabel:"velja tíma",dateTableLabel:"velja dagsetningu"},hve=fa(pve),D0={hours:"時間",minutes:"分",seconds:"秒"},UD={calendar:"カレンダー表示",clock:"時計表示"},mve={previousMonth:"先月",nextMonth:"来月",openPreviousView:"前の表示を開く",openNextView:"次の表示を開く",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"年選択表示からカレンダー表示に切り替える":"カレンダー表示から年選択表示に切り替える",inputModeToggleButtonAriaLabel:(e,t)=>e?`テキスト入力表示から${UD[t]}に切り替える`:`${UD[t]}からテキスト入力表示に切り替える`,start:"開始",end:"終了",cancelButtonLabel:"キャンセル",clearButtonLabel:"クリア",okButtonLabel:"確定",todayButtonLabel:"今日",datePickerDefaultToolbarTitle:"日付を選択",dateTimePickerDefaultToolbarTitle:"日時を選択",timePickerDefaultToolbarTitle:"時間を選択",dateRangePickerDefaultToolbarTitle:"日付の範囲を選択",clockLabelText:(e,t,n)=>{var r;return`${(r=D0[e])!=null?r:e}を選択してください ${t===null?"時間が選択されていません":`選択した時間は ${n.format(t,"fullTime")} です`}`},hoursClockNumberText:e=>`${e} ${D0.hours}`,minutesClockNumberText:e=>`${e} ${D0.minutes}`,secondsClockNumberText:e=>`${e} ${D0.seconds}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`日付を選択してください。選択した日付は ${t.format(e,"fullDate")} です`:"日付を選択してください",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`時間を選択してください。選択した時間は ${t.format(e,"fullTime")} です`:"時間を選択してください",timeTableLabel:"時間を選択",dateTableLabel:"日付を選択"},gve=fa(mve),vve={previousMonth:"Попередній місяць",nextMonth:"Наступний місяць",openPreviousView:"відкрити попередній вигляд",openNextView:"відкрити наступний вигляд",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"річний вигляд відкрито, перейти до календарного вигляду":"календарний вигляд відкрито, перейти до річного вигляду",inputModeToggleButtonAriaLabel:(e,t)=>e?`текстове поле відкрите, перейти до ${t} вигляду`:`${t} вигляд наразі відкрито, перейти до текстового поля`,start:"Початок",end:"Кінець",cancelButtonLabel:"Відміна",clearButtonLabel:"Очистити",okButtonLabel:"OK",todayButtonLabel:"Сьогодні",datePickerDefaultToolbarTitle:"Вибрати дату",dateTimePickerDefaultToolbarTitle:"Вибрати дату і час",timePickerDefaultToolbarTitle:"Вибрати час",dateRangePickerDefaultToolbarTitle:"Вибрати календарний період",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"Час не вибраний":`Вибрано час ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} годин`,minutesClockNumberText:e=>`${e} хвилин`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Оберіть дату, обрана дата ${t.format(e,"fullDate")}`:"Оберіть дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Оберіть час, обраний час ${t.format(e,"fullTime")}`:"Оберіть час",timeTableLabel:"оберіть час",dateTableLabel:"оберіть дату"},yve=fa(vve),bve={previousMonth:"پچھلا مہینہ",nextMonth:"اگلا مہینہ",openPreviousView:"پچھلا ویو کھولیں",openNextView:"اگلا ویو کھولیں",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"سال والا ویو کھلا ہے۔ کیلنڈر والا ویو کھولیں":"کیلنڈر والا ویو کھلا ہے۔ سال والا ویو کھولیں",inputModeToggleButtonAriaLabel:(e,t)=>e?`،ٹیکسٹ ویو کھلا ہے ${t} ویو کھولیں`:`${t} ویو کھلا ہے، ٹیکسٹ ویو کھولیں`,start:"شروع",end:"ختم",cancelButtonLabel:"کینسل",clearButtonLabel:"کلئیر",okButtonLabel:"اوکے",todayButtonLabel:"آج",datePickerDefaultToolbarTitle:"تاریخ منتخب کریں",dateTimePickerDefaultToolbarTitle:"تاریخ اور وقت منتخب کریں",timePickerDefaultToolbarTitle:"وقت منتخب کریں",dateRangePickerDefaultToolbarTitle:"تاریخوں کی رینج منتخب کریں",clockLabelText:(e,t,n)=>`${e} منتخب کریں ${t===null?"کوئی وقت منتخب نہیں":`منتخب وقت ہے ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} گھنٹے`,minutesClockNumberText:e=>`${e} منٹ`,secondsClockNumberText:e=>`${e} سیکنڈ`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`تاریخ منتخب کریں، منتخب شدہ تاریخ ہے ${t.format(e,"fullDate")}`:"تاریخ منتخب کریں",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`وقت منتخب کریں، منتخب شدہ وقت ہے ${t.format(e,"fullTime")}`:"وقت منتخب کریں",timeTableLabel:"وقت منتخب کریں",dateTableLabel:"تاریخ منتخب کریں"},xve=fa(bve),H_={hours:"гадзіны",minutes:"хвіліны",seconds:"секунды",calendar:"календара",clock:"часу"},wve={previousMonth:"Папярэдні месяц",nextMonth:"Наступны месяц",openPreviousView:"адкрыць папярэдні выгляд",openNextView:"адкрыць наступны выгляд",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"гадавы выгляд адкрыты, перайсці да каляндарнага выгляду":"каляндарны выгляд адкрыты, перайсці да гадавога выгляду",inputModeToggleButtonAriaLabel:(e,t)=>e?`тэкставае поле адкрыта, перайсці да выгляду ${H_[t]}`:`Выгляд ${H_[t]} зараз адкрыты, перайсці да тэкставага поля`,start:"Пачатак",end:"Канец",cancelButtonLabel:"Адмена",clearButtonLabel:"Ачысціць",okButtonLabel:"OK",todayButtonLabel:"Сёння",datePickerDefaultToolbarTitle:"Абраць дату",dateTimePickerDefaultToolbarTitle:"Абраць дату і час",timePickerDefaultToolbarTitle:"Абраць час",dateRangePickerDefaultToolbarTitle:"Абраць каляндарны перыяд",clockLabelText:(e,t,n)=>`Абярыце ${H_[e]}. ${t===null?"Час не абраны":`Абраны час ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} гадзін`,minutesClockNumberText:e=>`${e} хвілін`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Абраць дату, абрана дата ${t.format(e,"fullDate")}`:"Абраць дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Абраць час, абрыны час ${t.format(e,"fullTime")}`:"Абраць час",timeTableLabel:"абраць час",dateTableLabel:"абраць дату"},_ve=fa(wve),Tve={hours:"часы",minutes:"минуты",seconds:"секунды"},HD={calendar:"календарный",clock:"часовой"},Sve={previousMonth:"Предыдущий месяц",nextMonth:"Следующий месяц",openPreviousView:"открыть предыдущий вид",openNextView:"открыть следующий вид",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"открыт годовой вид, переключить на календарный вид":"открыт календарный вид, переключить на годовой вид",inputModeToggleButtonAriaLabel:(e,t)=>e?`Открыт текстовый вид, перейти на ${HD[t]} вид`:`Открыт ${HD[t]} вид, перейти на текстовый вид`,start:"Начало",end:"Конец",cancelButtonLabel:"Отмена",clearButtonLabel:"Очистить",okButtonLabel:"Ок",todayButtonLabel:"Сегодня",datePickerDefaultToolbarTitle:"Выбрать дату",dateTimePickerDefaultToolbarTitle:"Выбрать дату и время",timePickerDefaultToolbarTitle:"Выбрать время",dateRangePickerDefaultToolbarTitle:"Выбрать период",clockLabelText:(e,t,n)=>`Выбрать ${Tve[e]}. ${t===null?"Время не выбрано":`Выбрано время ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} часов`,minutesClockNumberText:e=>`${e} минут`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Выберите дату, выбрана дата ${t.format(e,"fullDate")}`:"Выберите дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Выберите время, выбрано время ${t.format(e,"fullTime")}`:"Выберите время",timeTableLabel:"выбрать время",dateTableLabel:"выбрать дату"},kve=fa(Sve),P5=ge.createContext(null);function Cve(e){const t=Tr({props:e,name:"MuiLocalizationProvider"}),{children:n,dateAdapter:r,dateFormats:l,dateLibInstance:i,locale:o,adapterLocale:a,localeText:s}=t,u=ge.useMemo(()=>new r({locale:a??o,formats:l,instance:i}),[r,o,a,l,i]),c=ge.useMemo(()=>({minDate:u.date("1900-01-01T00:00:00.000"),maxDate:u.date("2099-12-31T00:00:00.000")}),[u]),d=ge.useMemo(()=>({utils:u,defaultDates:c,localeText:Yt({},xW,s??{})}),[c,u,s]);return Te.jsx(P5.Provider,{value:d,children:n})}const vg=()=>{const e=ge.useContext(P5);if(e===null)throw new Error("MUI: Can not find utils in context. It looks like you forgot to wrap your component in LocalizationProvider, or pass dateAdapter prop directly.");return e},Hr=()=>vg().utils,yg=()=>vg().defaultDates,ul=()=>vg().localeText,bg=()=>{const e=Hr();return ge.useRef(e.date()).current};function wW(e){return gn("MuiMonthPicker",e)}const Mve=fn("MuiMonthPicker",["root"]),Kh=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:l,isDateDisabled:i,utils:o})=>{const a=o.startOfDay(o.date());n&&o.isBefore(l,a)&&(l=a),t&&o.isAfter(r,a)&&(r=a);let s=e,u=e;for(o.isBefore(e,l)&&(s=o.date(l),u=null),o.isAfter(e,r)&&(u&&(u=o.date(r)),s=null);s||u;){if(s&&o.isAfter(s,r)&&(s=null),u&&o.isBefore(u,l)&&(u=null),s){if(!i(s))return s;s=o.addDays(s,1)}if(u){if(!i(u))return u;u=o.addDays(u,-1)}}return null},O5=(e,t)=>{const n=e.date(t);return e.isValid(n)?n:null},zi=(e,t,n)=>{if(t==null)return n;const r=e.date(t);return e.isValid(r)?r:n},Pve=["className","date","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange"],Ove=e=>{const{classes:t}=e;return vn({root:["root"]},wW,t)};function Ave(e,t){const n=Hr(),r=yg(),l=Tr({props:e,name:t});return Yt({disableFuture:!1,disablePast:!1},l,{minDate:zi(n,l.minDate,r.minDate),maxDate:zi(n,l.maxDate,r.maxDate)})}const Dve=Dt("div",{name:"MuiMonthPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({width:310,display:"flex",flexWrap:"wrap",alignContent:"stretch",margin:"0 4px"}),_W=ge.forwardRef(function(t,n){const r=Hr(),l=bg(),i=Ave(t,"MuiMonthPicker"),{className:o,date:a,disabled:s,disableFuture:u,disablePast:c,maxDate:d,minDate:f,onChange:p,shouldDisableMonth:h,readOnly:g,disableHighlightToday:b,autoFocus:v=!1,onMonthFocus:m,hasFocus:y,onFocusedViewChange:x}=i,_=tr(i,Pve),w=i,S=Ove(w),k=lg(),C=ge.useMemo(()=>a??r.startOfMonth(l),[l,r,a]),T=ge.useMemo(()=>a!=null?r.getMonth(a):b?null:r.getMonth(l),[l,a,r,b]),[M,O]=ge.useState(()=>T||r.getMonth(l)),D=ge.useCallback(R=>{const q=r.startOfMonth(c&&r.isAfter(l,f)?l:f),Y=r.startOfMonth(u&&r.isBefore(l,d)?l:d);return r.isBefore(R,q)||r.isAfter(R,Y)?!0:h?h(R):!1},[u,c,d,f,l,h,r]),P=R=>{if(g)return;const q=r.setMonth(C,R);p(q,"finish")},[E,I]=ou({name:"MonthPicker",state:"hasFocus",controlled:y,default:v}),A=ge.useCallback(R=>{I(R),x&&x(R)},[I,x]),F=ge.useCallback(R=>{D(r.setMonth(C,R))||(O(R),A(!0),m&&m(R))},[D,r,C,A,m]);ge.useEffect(()=>{O(R=>T!==null&&R!==T?T:R)},[T]);const j=ho(R=>{switch(R.key){case"ArrowUp":F((12+M-3)%12),R.preventDefault();break;case"ArrowDown":F((12+M+3)%12),R.preventDefault();break;case"ArrowLeft":F((12+M+(k.direction==="ltr"?-1:1))%12),R.preventDefault();break;case"ArrowRight":F((12+M+(k.direction==="ltr"?1:-1))%12),R.preventDefault();break}}),B=ge.useCallback((R,q)=>{F(q)},[F]),z=ge.useCallback(()=>{A(!1)},[A]),N=r.getMonth(l);return Te.jsx(Dve,Yt({ref:n,className:xa(S.root,o),ownerState:w,onKeyDown:j},_,{children:r.getMonthArray(C).map(R=>{const q=r.getMonth(R),Y=r.format(R,"monthShort"),L=s||D(R);return Te.jsx(C0e,{value:q,selected:q===T,tabIndex:q===M&&!L?0:-1,hasFocus:E&&q===M,onSelect:P,onFocus:B,onBlur:z,disabled:L,"aria-current":N===q?"date":void 0,children:Y},Y)})}))});function A5(e,t,n){const{value:r,onError:l}=e,i=vg(),o=ge.useRef(null),a=t({adapter:i,value:r,props:e});return ge.useEffect(()=>{l&&!n(a,o.current)&&l(a,r),o.current=a},[n,l,o,a,r]),a}const D5=({props:e,value:t,adapter:n})=>{const r=n.utils.date(),l=n.utils.date(t),i=zi(n.utils,e.minDate,n.defaultDates.minDate),o=zi(n.utils,e.maxDate,n.defaultDates.maxDate);if(l===null)return null;switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(e.shouldDisableDate&&e.shouldDisableDate(l)):return"shouldDisableDate";case!!(e.disableFuture&&n.utils.isAfterDay(l,r)):return"disableFuture";case!!(e.disablePast&&n.utils.isBeforeDay(l,r)):return"disablePast";case!!(i&&n.utils.isBeforeDay(l,i)):return"minDate";case!!(o&&n.utils.isAfterDay(l,o)):return"maxDate";default:return null}},TW=({shouldDisableDate:e,minDate:t,maxDate:n,disableFuture:r,disablePast:l})=>{const i=vg();return ge.useCallback(o=>D5({adapter:i,value:o,props:{shouldDisableDate:e,minDate:t,maxDate:n,disableFuture:r,disablePast:l}})!==null,[i,e,t,n,r,l])},Eve=(e,t)=>e===t,E5=e=>A5(e,D5,Eve),Rve=(e,t,n)=>(r,l)=>{switch(l.type){case"changeMonth":return Yt({},r,{slideDirection:l.direction,currentMonth:l.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return Yt({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&l.focusedDay!=null&&n.isSameDay(l.focusedDay,r.focusedDay))return r;const i=l.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,l.focusedDay);return Yt({},r,{focusedDay:l.focusedDay,isMonthSwitchingAnimating:i&&!e&&!l.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(l.focusedDay):r.currentMonth,slideDirection:l.focusedDay!=null&&n.isAfterDay(l.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},Lve=({date:e,defaultCalendarMonth:t,disableFuture:n,disablePast:r,disableSwitchToMonthOnDayFocus:l=!1,maxDate:i,minDate:o,onMonthChange:a,reduceAnimations:s,shouldDisableDate:u})=>{var c;const d=bg(),f=Hr(),p=ge.useRef(Rve(!!s,l,f)).current,[h,g]=ge.useReducer(p,{isMonthSwitchingAnimating:!1,focusedDay:e||d,currentMonth:f.startOfMonth((c=e??t)!=null?c:d),slideDirection:"left"}),b=ge.useCallback(_=>{g(Yt({type:"changeMonth"},_)),a&&a(_.newMonth)},[a]),v=ge.useCallback(_=>{const w=_??d;f.isSameMonth(w,h.currentMonth)||b({newMonth:f.startOfMonth(w),direction:f.isAfterDay(w,h.currentMonth)?"left":"right"})},[h.currentMonth,b,d,f]),m=TW({shouldDisableDate:u,minDate:o,maxDate:i,disableFuture:n,disablePast:r}),y=ge.useCallback(()=>{g({type:"finishMonthSwitchingAnimation"})},[]),x=ge.useCallback((_,w)=>{m(_)||g({type:"changeFocusedDay",focusedDay:_,withoutMonthSwitchingAnimation:w})},[m]);return{calendarState:h,changeMonth:v,changeFocusedDay:x,isDateDisabled:m,onMonthSwitchingAnimationEnd:y,handleChangeMonth:b}},Ive=e=>gn("MuiPickersFadeTransitionGroup",e),$ve=fn("MuiPickersFadeTransitionGroup",["root"]),Nve=e=>{const{classes:t}=e;return vn({root:["root"]},Ive,t)},VD=500,Fve=Dt(cg,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function SW(e){const t=Tr({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:l,transKey:i}=t,o=Nve(t);return l?n:Te.jsx(Fve,{className:xa(o.root,r),children:Te.jsx(Ob,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:VD,enter:VD/2,exit:0},children:n},i)})}var kW={exports:{}},Lr={};/** * @license React * react-is.production.min.js * @@ -485,20 +485,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var R5=Symbol.for("react.element"),L5=Symbol.for("react.portal"),Bb=Symbol.for("react.fragment"),Wb=Symbol.for("react.strict_mode"),qb=Symbol.for("react.profiler"),Ub=Symbol.for("react.provider"),Hb=Symbol.for("react.context"),Fve=Symbol.for("react.server_context"),Vb=Symbol.for("react.forward_ref"),Gb=Symbol.for("react.suspense"),Yb=Symbol.for("react.suspense_list"),Xb=Symbol.for("react.memo"),Kb=Symbol.for("react.lazy"),jve=Symbol.for("react.offscreen"),CW;CW=Symbol.for("react.module.reference");function Ui(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case R5:switch(e=e.type,e){case Bb:case qb:case Wb:case Gb:case Yb:return e;default:switch(e=e&&e.$$typeof,e){case Fve:case Hb:case Vb:case Kb:case Xb:case Ub:return e;default:return t}}case L5:return t}}}Lr.ContextConsumer=Hb;Lr.ContextProvider=Ub;Lr.Element=R5;Lr.ForwardRef=Vb;Lr.Fragment=Bb;Lr.Lazy=Kb;Lr.Memo=Xb;Lr.Portal=L5;Lr.Profiler=qb;Lr.StrictMode=Wb;Lr.Suspense=Gb;Lr.SuspenseList=Yb;Lr.isAsyncMode=function(){return!1};Lr.isConcurrentMode=function(){return!1};Lr.isContextConsumer=function(e){return Ui(e)===Hb};Lr.isContextProvider=function(e){return Ui(e)===Ub};Lr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===R5};Lr.isForwardRef=function(e){return Ui(e)===Vb};Lr.isFragment=function(e){return Ui(e)===Bb};Lr.isLazy=function(e){return Ui(e)===Kb};Lr.isMemo=function(e){return Ui(e)===Xb};Lr.isPortal=function(e){return Ui(e)===L5};Lr.isProfiler=function(e){return Ui(e)===qb};Lr.isStrictMode=function(e){return Ui(e)===Wb};Lr.isSuspense=function(e){return Ui(e)===Gb};Lr.isSuspenseList=function(e){return Ui(e)===Yb};Lr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Bb||e===qb||e===Wb||e===Gb||e===Yb||e===jve||typeof e=="object"&&e!==null&&(e.$$typeof===Kb||e.$$typeof===Xb||e.$$typeof===Ub||e.$$typeof===Hb||e.$$typeof===Vb||e.$$typeof===CW||e.getModuleId!==void 0)};Lr.typeOf=Ui;kW.exports=Lr;var zve=kW.exports;const I5=typeof window<"u"?ge.useLayoutEffect:ge.useEffect;function Bve({controlled:e,default:t,name:n,state:r="value"}){const{current:l}=ge.useRef(e!==void 0),[i,o]=ge.useState(t),a=l?e:i,s=ge.useCallback(u=>{l||o(u)},[]);return[a,s]}function Wve(e,t,n=void 0){const r={};return Object.keys(e).forEach(l=>{r[l]=e[l].reduce((i,o)=>{if(o){const a=t(o);a!==""&&i.push(a),n&&n[o]&&i.push(n[o])}return i},[]).join(" ")}),r}const Mm=36,xg=2,$5=320,qve=358;function MW(e){return gn("MuiPickersDay",e)}const Ph=fn("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),Uve=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today"],Hve=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:l,disabled:i,outsideCurrentMonth:o,showDaysOutsideCurrentMonth:a,classes:s}=e;return vn({root:["root",t&&"selected",i&&"disabled",!n&&"dayWithMargin",!r&&l&&"today",o&&a&&"dayOutsideMonth",o&&!a&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},MW,s)},PW=({theme:e,ownerState:t})=>Yt({},e.typography.caption,{width:Mm,height:Mm,borderRadius:"50%",padding:0,backgroundColor:e.palette.background.paper,color:e.palette.text.primary,"&:hover":{backgroundColor:ar(e.palette.action.active,e.palette.action.hoverOpacity)},"&:focus":{backgroundColor:ar(e.palette.action.active,e.palette.action.hoverOpacity),[`&.${Ph.selected}`]:{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${Ph.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium,transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),"&:hover":{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${Ph.disabled}`]:{color:e.palette.text.disabled}},!t.disableMargin&&{margin:`0 ${xg}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:e.palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${Ph.selected})`]:{border:`1px solid ${e.palette.text.secondary}`}}),OW=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},Vve=Dt(Nl,{name:"MuiPickersDay",slot:"Root",overridesResolver:OW})(PW),Gve=Dt("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:OW})(({theme:e,ownerState:t})=>Yt({},PW({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),V_=()=>{},Yve=ge.forwardRef(function(t,n){const r=Tr({props:t,name:"MuiPickersDay"}),{autoFocus:l=!1,className:i,day:o,disabled:a=!1,disableHighlightToday:s=!1,disableMargin:u=!1,isAnimating:c,onClick:d,onDaySelect:f,onFocus:p=V_,onBlur:h=V_,onKeyDown:g=V_,onMouseDown:b,outsideCurrentMonth:v,selected:m=!1,showDaysOutsideCurrentMonth:y=!1,children:x,today:_=!1}=r,w=tr(r,Uve),S=Yt({},r,{autoFocus:l,disabled:a,disableHighlightToday:s,disableMargin:u,selected:m,showDaysOutsideCurrentMonth:y,today:_}),k=Hve(S),C=Hr(),T=ge.useRef(null),M=Er(T,n);I5(()=>{l&&!a&&!c&&!v&&T.current.focus()},[l,a,c,v]);const O=P=>{b&&b(P),v&&P.preventDefault()},D=P=>{a||f(o,"finish"),v&&P.currentTarget.focus(),d&&d(P)};return v&&!y?Te.jsx(Gve,{className:xa(k.root,k.hiddenDaySpacingFiller,i),ownerState:S,role:w.role}):Te.jsx(Vve,Yt({className:xa(k.root,i),ownerState:S,ref:M,centerRipple:!0,disabled:a,tabIndex:m?0:-1,onKeyDown:P=>g(P,o),onFocus:P=>p(P,o),onBlur:P=>h(P,o),onClick:D,onMouseDown:O},w,{children:x||C.format(o,"dayOfMonth")}))}),Xve=(e,t)=>e.autoFocus===t.autoFocus&&e.isAnimating===t.isAnimating&&e.today===t.today&&e.disabled===t.disabled&&e.selected===t.selected&&e.disableMargin===t.disableMargin&&e.showDaysOutsideCurrentMonth===t.showDaysOutsideCurrentMonth&&e.disableHighlightToday===t.disableHighlightToday&&e.className===t.className&&e.sx===t.sx&&e.outsideCurrentMonth===t.outsideCurrentMonth&&e.onFocus===t.onFocus&&e.onBlur===t.onBlur&&e.onDaySelect===t.onDaySelect,AW=ge.memo(Yve,Xve),Kve=e=>gn("PrivatePickersSlideTransition",e),to=fn("PrivatePickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),Zve=["children","className","reduceAnimations","slideDirection","transKey"],Qve=e=>{const{classes:t}=e;return vn({root:["root"]},Kve,t)},DW=350,Jve=Dt(cg,{name:"PrivatePickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${to["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${to["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${to.slideEnterActive}`]:t.slideEnterActive},{[`.${to.slideExit}`]:t.slideExit},{[`.${to["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${to["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:DW,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${to["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${to["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${to.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${to.slideExit}`]:{transform:"translate(0%)"},[`& .${to["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${to["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}}),eye=e=>{const{children:t,className:n,reduceAnimations:r,slideDirection:l,transKey:i}=e,o=tr(e,Zve),a=Qve(e);if(r)return Te.jsx("div",{className:xa(a.root,n),children:t});const s={exit:to.slideExit,enterActive:to.slideEnterActive,enter:to[`slideEnter-${l}`],exitActive:to[`slideExitActiveLeft-${l}`]};return Te.jsx(Jve,{className:xa(a.root,n),childFactory:u=>ge.cloneElement(u,{classNames:s}),role:"presentation",children:Te.jsx(e5,Yt({mountOnEnter:!0,unmountOnExit:!0,timeout:DW,classNames:s},o,{children:t}),i)})},tye=e=>gn("MuiDayPicker",e),nye=fn("MuiDayPicker",["header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer"]),rye=e=>{const{classes:t}=e;return vn({header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"]},tye,t)},aye=e=>e.charAt(0).toUpperCase(),EW=(Mm+xg*2)*6,oye=Dt("div",{name:"MuiDayPicker",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),iye=Dt(mr,{name:"MuiDayPicker",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.secondary})),lye=Dt("div",{name:"MuiDayPicker",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:EW}),sye=Dt(eye,{name:"MuiDayPicker",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:EW}),uye=Dt("div",{name:"MuiDayPicker",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),cye=Dt("div",{name:"MuiDayPicker",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${xg}px 0`,display:"flex",justifyContent:"center"});function dye(e){const t=bg(),n=Hr(),r=Tr({props:e,name:"MuiDayPicker"}),l=rye(r),{onFocusedDayChange:i,className:o,currentMonth:a,selectedDays:s,disabled:u,disableHighlightToday:c,focusedDay:d,isMonthSwitchingAnimating:f,loading:p,onSelectedDaysChange:h,onMonthSwitchingAnimationEnd:g,readOnly:b,reduceAnimations:v,renderDay:m,renderLoading:y=()=>Te.jsx("span",{children:"..."}),showDaysOutsideCurrentMonth:x,slideDirection:_,TransitionProps:w,disablePast:S,disableFuture:k,minDate:C,maxDate:T,shouldDisableDate:M,dayOfWeekFormatter:O=aye,hasFocus:D,onFocusedViewChange:P,gridLabelId:E}=r,I=TW({shouldDisableDate:M,minDate:C,maxDate:T,disablePast:S,disableFuture:k}),[A,F]=ge.useState(()=>d||t),j=ge.useCallback(U=>{P&&P(U)},[P]),B=ge.useCallback((U,Q="finish")=>{b||h(U,Q)},[h,b]),z=ge.useCallback(U=>{I(U)||(i(U),F(U),j(!0))},[I,i,j]),N=pi();function R(U,Q){switch(U.key){case"ArrowUp":z(n.addDays(Q,-7)),U.preventDefault();break;case"ArrowDown":z(n.addDays(Q,7)),U.preventDefault();break;case"ArrowLeft":{const V=n.addDays(Q,N.direction==="ltr"?-1:1),X=N.direction==="ltr"?n.getPreviousMonth(Q):n.getNextMonth(Q),K=Kh({utils:n,date:V,minDate:N.direction==="ltr"?n.startOfMonth(X):V,maxDate:N.direction==="ltr"?V:n.endOfMonth(X),isDateDisabled:I});z(K||V),U.preventDefault();break}case"ArrowRight":{const V=n.addDays(Q,N.direction==="ltr"?1:-1),X=N.direction==="ltr"?n.getNextMonth(Q):n.getPreviousMonth(Q),K=Kh({utils:n,date:V,minDate:N.direction==="ltr"?V:n.startOfMonth(X),maxDate:N.direction==="ltr"?n.endOfMonth(X):V,isDateDisabled:I});z(K||V),U.preventDefault();break}case"Home":z(n.startOfWeek(Q)),U.preventDefault();break;case"End":z(n.endOfWeek(Q)),U.preventDefault();break;case"PageUp":z(n.getNextMonth(Q)),U.preventDefault();break;case"PageDown":z(n.getPreviousMonth(Q)),U.preventDefault();break}}function q(U,Q){z(Q)}function Y(U,Q){D&&n.isSameDay(A,Q)&&j(!1)}const L=n.getMonth(a),W=s.filter(U=>!!U).map(U=>n.startOfDay(U)),H=L,G=ge.useMemo(()=>ge.createRef(),[H]),te=n.startOfWeek(t),ee=ge.useMemo(()=>{const U=n.startOfMonth(a),Q=n.endOfMonth(a);return I(A)||n.isAfterDay(A,Q)||n.isBeforeDay(A,U)?Kh({utils:n,date:A,minDate:U,maxDate:Q,disablePast:S,disableFuture:k,isDateDisabled:I}):A},[a,k,S,A,I,n]);return Te.jsxs("div",{role:"grid","aria-labelledby":E,children:[Te.jsx(oye,{role:"row",className:l.header,children:n.getWeekdays().map((U,Q)=>{var V;return Te.jsx(iye,{variant:"caption",role:"columnheader","aria-label":n.format(n.addDays(te,Q),"weekday"),className:l.weekDayLabel,children:(V=O==null?void 0:O(U))!=null?V:U},U+Q.toString())})}),p?Te.jsx(lye,{className:l.loadingContainer,children:y()}):Te.jsx(sye,Yt({transKey:H,onExited:g,reduceAnimations:v,slideDirection:_,className:xa(o,l.slideTransition)},w,{nodeRef:G,children:Te.jsx(uye,{ref:G,role:"rowgroup",className:l.monthContainer,children:n.getWeekArray(a).map(U=>Te.jsx(cye,{role:"row",className:l.weekContainer,children:U.map(Q=>{const V=ee!==null&&n.isSameDay(Q,ee),X=W.some(ae=>n.isSameDay(ae,Q)),K=n.isSameDay(Q,t),ne={key:Q==null?void 0:Q.toString(),day:Q,isAnimating:f,disabled:u||I(Q),autoFocus:D&&V,today:K,outsideCurrentMonth:n.getMonth(Q)!==L,selected:X,disableHighlightToday:c,showDaysOutsideCurrentMonth:x,onKeyDown:R,onFocus:q,onBlur:Y,onDaySelect:B,tabIndex:V?0:-1,role:"gridcell","aria-selected":X};return K&&(ne["aria-current"]="date"),m?m(Q,W,ne):ge.createElement(AW,Yt({},ne,{key:ne.key}))})},`week-${U[0]}`))})}))]})}function N5({onChange:e,onViewChange:t,openTo:n,view:r,views:l}){var i,o;const[a,s]=ou({name:"Picker",state:"view",controlled:r,default:n&&$u(l,n)?n:l[0]}),u=(i=l[l.indexOf(a)-1])!=null?i:null,c=(o=l[l.indexOf(a)+1])!=null?o:null,d=ge.useCallback(h=>{s(h),t&&t(h)},[s,t]),f=ge.useCallback(()=>{c&&d(c)},[c,d]);return{handleChangeAndOpenNext:ge.useCallback((h,g)=>{const b=g==="finish";e(h,b&&c?"partial":g),b&&f()},[c,e,f]),nextView:c,previousView:u,openNext:f,openView:a,setOpenView:d}}const fye=kr(Te.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),pye=kr(Te.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),hye=kr(Te.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),RW=kr(Te.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),LW=kr(Te.jsxs(ge.Fragment,{children:[Te.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),Te.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),mye=kr(Te.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),gye=kr(Te.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Pen"),vye=kr(Te.jsxs(ge.Fragment,{children:[Te.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),Te.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");function yye(e){return gn("MuiPickersArrowSwitcher",e)}fn("MuiPickersArrowSwitcher",["root","spacer","button"]);const bye=["children","className","components","componentsProps","isLeftDisabled","isLeftHidden","isRightDisabled","isRightHidden","leftArrowButtonText","onLeftClick","onRightClick","rightArrowButtonText"],xye=e=>{const{classes:t}=e;return vn({root:["root"],spacer:["spacer"],button:["button"]},yye,t)},wye=Dt("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),_ye=Dt("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),GD=Dt(Fo,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>Yt({},e.hidden&&{visibility:"hidden"})),IW=ge.forwardRef(function(t,n){const r=Tr({props:t,name:"MuiPickersArrowSwitcher"}),{children:l,className:i,components:o,componentsProps:a,isLeftDisabled:s,isLeftHidden:u,isRightDisabled:c,isRightHidden:d,leftArrowButtonText:f,onLeftClick:p,onRightClick:h,rightArrowButtonText:g}=r,b=tr(r,bye),m=pi().direction==="rtl",y=(a==null?void 0:a.leftArrowButton)||{},x=(o==null?void 0:o.LeftArrowIcon)||pye,_=(a==null?void 0:a.rightArrowButton)||{},w=(o==null?void 0:o.RightArrowIcon)||hye,S=r,k=xye(S);return Te.jsxs(wye,Yt({ref:n,className:xa(k.root,i),ownerState:S},b,{children:[Te.jsx(GD,Yt({as:o==null?void 0:o.LeftArrowButton,size:"small","aria-label":f,title:f,disabled:s,edge:"end",onClick:p},y,{className:xa(k.button,y.className),ownerState:Yt({},S,y,{hidden:u}),children:m?Te.jsx(w,{}):Te.jsx(x,{})})),l?Te.jsx(mr,{variant:"subtitle1",component:"span",children:l}):Te.jsx(_ye,{className:k.spacer,ownerState:S}),Te.jsx(GD,Yt({as:o==null?void 0:o.RightArrowButton,size:"small","aria-label":g,title:g,edge:"start",disabled:c,onClick:h},_,{className:xa(k.button,_.className),ownerState:Yt({},S,_,{hidden:d}),children:m?Te.jsx(x,{}):Te.jsx(w,{})}))]}))}),Tye=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,GS=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,Sye=(e,t,n,r)=>{const l=GS(r.getHours(e),t,n);return r.setHours(e,l)},YD=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),$W=(e=!1,t)=>(n,r)=>e?t.isAfter(n,r):YD(n,t)>YD(r,t);function kye(e,{disableFuture:t,maxDate:n}){const r=Hr();return ge.useMemo(()=>{const l=r.date(),i=r.startOfMonth(t&&r.isBefore(l,n)?l:n);return!r.isAfter(i,e)},[t,n,e,r])}function Cye(e,{disablePast:t,minDate:n}){const r=Hr();return ge.useMemo(()=>{const l=r.date(),i=r.startOfMonth(t&&r.isAfter(l,n)?l:n);return!r.isBefore(i,e)},[t,n,e,r])}function NW(e,t,n){const r=Hr(),l=Tye(e,r),i=ge.useCallback(o=>{const a=e==null?null:Sye(e,o,!!t,r);n(a,"partial")},[t,e,n,r]);return{meridiemMode:l,handleMeridiemChange:i}}const FW=e=>()=>{},Mye=e=>gn("MuiPickersCalendarHeader",e),Pye=fn("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),Oye=e=>{const{classes:t}=e;return vn({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Mye,t)},Aye=Dt("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),Dye=Dt("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>Yt({display:"flex",maxHeight:30,overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),Eye=Dt("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),Rye=Dt(Fo,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto"}),Lye=Dt(fye,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e,ownerState:t})=>Yt({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"},t.openView==="year"&&{transform:"rotate(180deg)"})),Iye=FW();function $ye(e){const t=Tr({props:e,name:"MuiPickersCalendarHeader"}),{components:n={},componentsProps:r={},currentMonth:l,disabled:i,disableFuture:o,disablePast:a,getViewSwitchingButtonText:s,leftArrowButtonText:u,maxDate:c,minDate:d,onMonthChange:f,onViewChange:p,openView:h,reduceAnimations:g,rightArrowButtonText:b,views:v,labelId:m}=t;Iye({leftArrowButtonText:u,rightArrowButtonText:b,getViewSwitchingButtonText:s});const y=ul(),x=u??y.previousMonth,_=b??y.nextMonth,w=s??y.calendarViewSwitchingButtonAriaLabel,S=Hr(),k=Oye(t),C=r.switchViewButton||{},T=()=>f(S.getNextMonth(l),"left"),M=()=>f(S.getPreviousMonth(l),"right"),O=kye(l,{disableFuture:o,maxDate:c}),D=Cye(l,{disablePast:a,minDate:d}),P=()=>{if(!(v.length===1||!p||i))if(v.length===2)p(v.find(I=>I!==h)||v[0]);else{const I=v.indexOf(h)!==0?0:1;p(v[I])}};if(v.length===1&&v[0]==="year")return null;const E=t;return Te.jsxs(Aye,{ownerState:E,className:k.root,children:[Te.jsxs(Dye,{role:"presentation",onClick:P,ownerState:E,"aria-live":"polite",className:k.labelContainer,children:[Te.jsx(SW,{reduceAnimations:g,transKey:S.format(l,"monthAndYear"),children:Te.jsx(Eye,{id:m,ownerState:E,className:k.label,children:S.format(l,"monthAndYear")})}),v.length>1&&!i&&Te.jsx(Rye,Yt({size:"small",as:n.SwitchViewButton,"aria-label":w(h),className:k.switchViewButton},C,{children:Te.jsx(Lye,{as:n.SwitchViewIcon,ownerState:E,className:k.switchViewIcon})}))]}),Te.jsx(Ob,{in:h==="day",children:Te.jsx(IW,{leftArrowButtonText:x,rightArrowButtonText:_,components:n,componentsProps:r,onLeftClick:M,onRightClick:T,isLeftDisabled:D,isRightDisabled:O})})]})}const gs=ge.createContext(null);function Nye(e){return gn("PrivatePickersYear",e)}const Hu=fn("PrivatePickersYear",["root","modeDesktop","modeMobile","yearButton","selected","disabled"]),Fye=["autoFocus","className","children","disabled","onClick","onKeyDown","value","tabIndex","onFocus","onBlur"],jye=e=>{const{wrapperVariant:t,disabled:n,selected:r,classes:l}=e,i={root:["root",t&&`mode${Qt(t)}`],yearButton:["yearButton",n&&"disabled",r&&"selected"]};return vn(i,Nye,l)},zye=Dt("div",{name:"PrivatePickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Hu.modeDesktop}`]:t.modeDesktop},{[`&.${Hu.modeMobile}`]:t.modeMobile}]})(({ownerState:e})=>Yt({flexBasis:"33.3%",display:"flex",alignItems:"center",justifyContent:"center"},(e==null?void 0:e.wrapperVariant)==="desktop"&&{flexBasis:"25%"})),Bye=Dt("button",{name:"PrivatePickersYear",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${Hu.disabled}`]:t.disabled},{[`&.${Hu.selected}`]:t.selected}]})(({theme:e})=>Yt({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:ar(e.palette.action.active,e.palette.action.hoverOpacity)},[`&.${Hu.disabled}`]:{color:e.palette.text.secondary},[`&.${Hu.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),XD=()=>{},Wye=ge.forwardRef(function(t,n){const{autoFocus:r,className:l,children:i,disabled:o,onClick:a,onKeyDown:s,value:u,tabIndex:c,onFocus:d=XD,onBlur:f=XD}=t,p=tr(t,Fye),h=ge.useRef(null),g=Er(h,n),b=ge.useContext(gs),v=Yt({},t,{wrapperVariant:b}),m=jye(v);return ge.useEffect(()=>{r&&h.current.focus()},[r]),Te.jsx(zye,{className:xa(m.root,l),ownerState:v,children:Te.jsx(Bye,Yt({ref:g,disabled:o,type:"button",tabIndex:o?-1:c,onClick:y=>a(y,u),onKeyDown:y=>s(y,u),onFocus:y=>d(y,u),onBlur:y=>f(y,u),className:m.yearButton,ownerState:v},p,{children:i}))})});function jW(e){return gn("MuiYearPicker",e)}const qye=fn("MuiYearPicker",["root"]),Uye=e=>{const{classes:t}=e;return vn({root:["root"]},jW,t)};function Hye(e,t){const n=Hr(),r=yg(),l=Tr({props:e,name:t});return Yt({disablePast:!1,disableFuture:!1},l,{minDate:zi(n,l.minDate,r.minDate),maxDate:zi(n,l.maxDate,r.maxDate)})}const Vye=Dt("div",{name:"MuiYearPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",maxHeight:"304px"}),zW=ge.forwardRef(function(t,n){const r=bg(),l=pi(),i=Hr(),o=Hye(t,"MuiYearPicker"),{autoFocus:a,className:s,date:u,disabled:c,disableFuture:d,disablePast:f,maxDate:p,minDate:h,onChange:g,readOnly:b,shouldDisableYear:v,disableHighlightToday:m,onYearFocus:y,hasFocus:x,onFocusedViewChange:_}=o,w=o,S=Uye(w),k=ge.useMemo(()=>u??i.startOfYear(r),[r,i,u]),C=ge.useMemo(()=>u!=null?i.getYear(u):m?null:i.getYear(r),[r,u,i,m]),T=ge.useContext(gs),M=ge.useRef(null),[O,D]=ge.useState(()=>C||i.getYear(r)),[P,E]=Bve({name:"YearPicker",state:"hasFocus",controlled:x,default:a}),I=ge.useCallback(W=>{E(W),_&&_(W)},[E,_]),A=ge.useCallback(W=>!!(f&&i.isBeforeYear(W,r)||d&&i.isAfterYear(W,r)||h&&i.isBeforeYear(W,h)||p&&i.isAfterYear(W,p)||v&&v(W)),[d,f,p,h,r,v,i]),F=(W,H,G="finish")=>{if(b)return;const te=i.setYear(k,H);g(te,G)},j=ge.useCallback(W=>{A(i.setYear(k,W))||(D(W),I(!0),y==null||y(W))},[A,i,k,I,y]);ge.useEffect(()=>{D(W=>C!==null&&W!==C?C:W)},[C]);const B=T==="desktop"?4:3,z=ge.useCallback((W,H)=>{switch(W.key){case"ArrowUp":j(H-B),W.preventDefault();break;case"ArrowDown":j(H+B),W.preventDefault();break;case"ArrowLeft":j(H+(l.direction==="ltr"?-1:1)),W.preventDefault();break;case"ArrowRight":j(H+(l.direction==="ltr"?1:-1)),W.preventDefault();break}},[j,l.direction,B]),N=ge.useCallback((W,H)=>{j(H)},[j]),R=ge.useCallback((W,H)=>{O===H&&I(!1)},[O,I]),q=i.getYear(r),Y=ge.useRef(null),L=Er(n,Y);return ge.useEffect(()=>{if(a||Y.current===null)return;const W=Y.current.querySelector('[tabindex="0"]');if(!W)return;const H=W.offsetHeight,G=W.offsetTop,te=Y.current.clientHeight,ee=Y.current.scrollTop,U=G+H;H>te||G{const H=i.getYear(W),G=H===C;return Te.jsx(Wye,{selected:G,value:H,onClick:F,onKeyDown:z,autoFocus:P&&H===O,ref:G?M:void 0,disabled:c||A(W),tabIndex:H===O?0:-1,onFocus:N,onBlur:R,"aria-current":q===H?"date":void 0,children:i.format(W,"year")},i.format(W,"year"))})})}),F5=Dt("div")({overflowX:"hidden",width:$5,maxHeight:qve,display:"flex",flexDirection:"column",margin:"0 auto"}),Gye=typeof navigator<"u"&&/(android)/i.test(navigator.userAgent),BW=e=>gn("MuiCalendarPicker",e),Yye=fn("MuiCalendarPicker",["root","viewTransitionContainer"]),Xye=["autoFocus","onViewChange","date","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","classes"],Kye=e=>{const{classes:t}=e;return vn({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},BW,t)};function Zye(e,t){const n=Hr(),r=yg(),l=Tr({props:e,name:t});return Yt({loading:!1,disablePast:!1,disableFuture:!1,openTo:"day",views:["year","day"],reduceAnimations:Gye,renderLoading:()=>Te.jsx("span",{children:"..."})},l,{minDate:zi(n,l.minDate,r.minDate),maxDate:zi(n,l.maxDate,r.maxDate)})}const Qye=Dt(F5,{name:"MuiCalendarPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),Jye=Dt(SW,{name:"MuiCalendarPicker",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),WW=ge.forwardRef(function(t,n){const r=Hr(),l=ls(),i=Zye(t,"MuiCalendarPicker"),{autoFocus:o,onViewChange:a,date:s,disableFuture:u,disablePast:c,defaultCalendarMonth:d,onChange:f,onYearChange:p,onMonthChange:h,reduceAnimations:g,shouldDisableDate:b,shouldDisableMonth:v,shouldDisableYear:m,view:y,views:x,openTo:_,className:w,disabled:S,readOnly:k,minDate:C,maxDate:T,disableHighlightToday:M,focusedView:O,onFocusedViewChange:D}=i,P=tr(i,Xye),{openView:E,setOpenView:I,openNext:A}=N5({view:y,views:x,openTo:_,onChange:f,onViewChange:a}),{calendarState:F,changeFocusedDay:j,changeMonth:B,handleChangeMonth:z,isDateDisabled:N,onMonthSwitchingAnimationEnd:R}=Rve({date:s,defaultCalendarMonth:d,reduceAnimations:g,onMonthChange:h,minDate:C,maxDate:T,shouldDisableDate:b,disablePast:c,disableFuture:u}),q=ge.useCallback((ie,se)=>{const pe=r.startOfMonth(ie),ke=r.endOfMonth(ie),Ce=N(ie)?Kh({utils:r,date:ie,minDate:r.isBefore(C,pe)?pe:C,maxDate:r.isAfter(T,ke)?ke:T,disablePast:c,disableFuture:u,isDateDisabled:N}):ie;Ce?(f(Ce,se),h==null||h(pe)):(A(),B(pe)),j(Ce,!0)},[j,u,c,N,T,C,f,h,B,A,r]),Y=ge.useCallback((ie,se)=>{const pe=r.startOfYear(ie),ke=r.endOfYear(ie),Ce=N(ie)?Kh({utils:r,date:ie,minDate:r.isBefore(C,pe)?pe:C,maxDate:r.isAfter(T,ke)?ke:T,disablePast:c,disableFuture:u,isDateDisabled:N}):ie;Ce?(f(Ce,se),p==null||p(Ce)):(A(),B(pe)),j(Ce,!0)},[j,u,c,N,T,C,f,p,A,r,B]),L=ge.useCallback((ie,se)=>f(s&&ie?r.mergeDateAndTime(ie,s):ie,se),[r,s,f]);ge.useEffect(()=>{s&&B(s)},[s]);const W=i,H=Kye(W),G={disablePast:c,disableFuture:u,maxDate:T,minDate:C},te=S&&s||C,ee=S&&s||T,U={disableHighlightToday:M,readOnly:k,disabled:S},Q=`${l}-grid-label`,[V,X]=ou({name:"DayPicker",state:"focusedView",controlled:O,default:o?E:null}),K=V!==null,ne=ho(ie=>se=>{if(D){D(ie)(se);return}X(se?ie:pe=>pe===ie?null:pe)}),ae=ge.useRef(E);return ge.useEffect(()=>{ae.current!==E&&(ae.current=E,ne(E)(!0))},[E,ne]),Te.jsxs(Qye,{ref:n,className:xa(H.root,w),ownerState:W,children:[Te.jsx($ye,Yt({},P,{views:x,openView:E,currentMonth:F.currentMonth,onViewChange:I,onMonthChange:(ie,se)=>z({newMonth:ie,direction:se}),minDate:te,maxDate:ee,disabled:S,disablePast:c,disableFuture:u,reduceAnimations:g,labelId:Q})),Te.jsx(Jye,{reduceAnimations:g,className:H.viewTransitionContainer,transKey:E,ownerState:W,children:Te.jsxs("div",{children:[E==="year"&&Te.jsx(zW,Yt({},P,G,U,{autoFocus:o,date:s,onChange:Y,shouldDisableYear:m,hasFocus:K,onFocusedViewChange:ne("year")})),E==="month"&&Te.jsx(_W,Yt({},G,U,{autoFocus:o,hasFocus:K,className:w,date:s,onChange:q,shouldDisableMonth:v,onFocusedViewChange:ne("month")})),E==="day"&&Te.jsx(dye,Yt({},P,F,G,U,{autoFocus:o,onMonthSwitchingAnimationEnd:R,onFocusedDayChange:j,reduceAnimations:g,selectedDays:[s],onSelectedDaysChange:L,shouldDisableDate:b,hasFocus:K,onFocusedViewChange:ne("day"),gridLabelId:Q}))]})})]})}),qW=e=>gn("MuiCalendarPickerSkeleton",e),e1e=fn("MuiCalendarPickerSkeleton",["root","week","daySkeleton"]),t1e=["className"],n1e=e=>{const{classes:t}=e;return vn({root:["root"],week:["week"],daySkeleton:["daySkeleton"]},qW,t)},r1e=Dt("div",{name:"MuiCalendarPickerSkeleton",slot:"Root",overridesResolver:(e,t)=>t.root})({alignSelf:"start"}),a1e=Dt("div",{name:"MuiCalendarPickerSkeleton",slot:"Week",overridesResolver:(e,t)=>t.week})({margin:`${xg}px 0`,display:"flex",justifyContent:"center"}),UW=Dt(tde,{name:"MuiCalendarPickerSkeleton",slot:"DaySkeleton",overridesResolver:(e,t)=>t.daySkeleton})(({ownerState:e})=>Yt({margin:`0 ${xg}px`},e.day===0&&{visibility:"hidden"}));UW.propTypes={ownerState:le.shape({day:le.number.isRequired}).isRequired};const o1e=[[0,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,0,0,0]];function i1e(e){const t=Tr({props:e,name:"MuiCalendarPickerSkeleton"}),{className:n}=t,r=tr(t,t1e),l=n1e(r);return Te.jsx(r1e,Yt({className:xa(l.root,n)},r,{children:o1e.map((i,o)=>Te.jsx(a1e,{className:l.week,children:i.map((a,s)=>Te.jsx(UW,{variant:"circular",width:Mm,height:Mm,className:l.daySkeleton,ownerState:{day:a}},s))},o))}))}const rf=220,Ks=36,Pm={x:rf/2,y:rf/2},HW={x:Pm.x,y:0},l1e=HW.x-Pm.x,s1e=HW.y-Pm.y,u1e=e=>e*(180/Math.PI),VW=(e,t,n)=>{const r=t-Pm.x,l=n-Pm.y,i=Math.atan2(l1e,s1e)-Math.atan2(r,l);let o=u1e(i);o=Math.round(o/e)*e,o%=360;const a=Math.floor(o/e)||0,s=r**2+l**2,u=Math.sqrt(s);return{value:a,distance:u}},c1e=(e,t,n=1)=>{const r=n*6;let{value:l}=VW(r,e,t);return l=l*n%60,l},d1e=(e,t,n)=>{const{value:r,distance:l}=VW(30,e,t);let i=r||12;return n?i%=12:l{const{classes:t}=e;return vn({root:["root"],thumb:["thumb"]},f1e,t)},g1e=Dt("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>Yt({width:2,backgroundColor:e.palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),v1e=Dt("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>Yt({width:4,height:4,backgroundColor:e.palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Ks/2}px)`,border:`${(Ks-4)/2}px solid ${e.palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:e.palette.primary.main}));function y1e(e){const t=Tr({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:l,value:i}=t,o=tr(t,h1e),a=ge.useRef(l);ge.useEffect(()=>{a.current=l},[l]);const s=Yt({},t,{shouldAnimate:a.current!==l}),u=m1e(s),c=()=>{let f=360/(l==="hours"?12:60)*i;return l==="hours"&&i>12&&(f-=360),{height:Math.round((r?.26:.4)*rf),transform:`rotateZ(${f}deg)`}};return Te.jsx(g1e,Yt({style:c(),className:xa(n,u.root),ownerState:s},o,{children:Te.jsx(v1e,{ownerState:s,className:u.thumb})}))}function b1e(e){return gn("MuiClock",e)}const x1e=fn("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton"]),w1e=e=>{const{classes:t}=e;return Wve({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"]},b1e,t)},_1e=Dt("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),T1e=Dt("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),S1e=Dt("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),k1e=Dt("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>Yt({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),C1e=Dt("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:e.palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),M1e=Dt(Fo,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>Yt({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,left:8},t.meridiemMode==="am"&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}})),P1e=Dt(Fo,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>Yt({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,right:8},t.meridiemMode==="pm"&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}}));function O1e(e){const t=Tr({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:l,children:i,date:o,getClockLabelText:a,handleMeridiemChange:s,isTimeDisabled:u,meridiemMode:c,minutesStep:d=1,onChange:f,selectedId:p,type:h,value:g,disabled:b,readOnly:v,className:m}=t,y=t,x=Hr(),_=ge.useContext(gs),w=ge.useRef(!1),S=w1e(y),k=u(g,h),C=!n&&h==="hours"&&(g<1||g>12),T=(B,z)=>{b||v||u(B,h)||f(B,z)},M=(B,z)=>{let{offsetX:N,offsetY:R}=B;if(N===void 0){const Y=B.target.getBoundingClientRect();N=B.changedTouches[0].clientX-Y.left,R=B.changedTouches[0].clientY-Y.top}const q=h==="seconds"||h==="minutes"?c1e(N,R,d):d1e(N,R,!!n);T(q,z)},O=B=>{w.current=!0,M(B,"shallow")},D=B=>{w.current&&(M(B,"finish"),w.current=!1)},P=B=>{B.buttons>0&&M(B.nativeEvent,"shallow")},E=B=>{w.current&&(w.current=!1),M(B.nativeEvent,"finish")},I=ge.useMemo(()=>h==="hours"?!0:g%5===0,[h,g]),A=h==="minutes"?d:1,F=ge.useRef(null);I5(()=>{l&&F.current.focus()},[l]);const j=B=>{if(!w.current)switch(B.key){case"Home":T(0,"partial"),B.preventDefault();break;case"End":T(h==="minutes"?59:23,"partial"),B.preventDefault();break;case"ArrowUp":T(g+A,"partial"),B.preventDefault();break;case"ArrowDown":T(g-A,"partial"),B.preventDefault();break}};return Te.jsxs(_1e,{className:xa(m,S.root),children:[Te.jsxs(T1e,{className:S.clock,children:[Te.jsx(k1e,{onTouchMove:O,onTouchEnd:D,onMouseUp:E,onMouseMove:P,ownerState:{disabled:b},className:S.squareMask}),!k&&Te.jsxs(ge.Fragment,{children:[Te.jsx(C1e,{className:S.pin}),o&&Te.jsx(y1e,{type:h,value:g,isInner:C,hasSelected:I})]}),Te.jsx(S1e,{"aria-activedescendant":p,"aria-label":a(h,o,x),ref:F,role:"listbox",onKeyDown:j,tabIndex:0,className:S.wrapper,children:i})]}),n&&(_==="desktop"||r)&&Te.jsxs(ge.Fragment,{children:[Te.jsx(M1e,{onClick:v?void 0:()=>s("am"),disabled:b||c===null,ownerState:y,className:S.amButton,children:Te.jsx(mr,{variant:"caption",children:"AM"})}),Te.jsx(P1e,{disabled:b||c===null,onClick:v?void 0:()=>s("pm"),ownerState:y,className:S.pmButton,children:Te.jsx(mr,{variant:"caption",children:"PM"})})]})]})}function A1e(e){return gn("MuiClockNumber",e)}const Oh=fn("MuiClockNumber",["root","selected","disabled"]),D1e=["className","disabled","index","inner","label","selected"],E1e=e=>{const{classes:t,selected:n,disabled:r}=e;return vn({root:["root",n&&"selected",r&&"disabled"]},A1e,t)},R1e=Dt("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Oh.disabled}`]:t.disabled},{[`&.${Oh.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>Yt({height:Ks,width:Ks,position:"absolute",left:`calc((100% - ${Ks}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:e.palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:e.palette.background.paper},[`&.${Oh.selected}`]:{color:e.palette.primary.contrastText},[`&.${Oh.disabled}`]:{pointerEvents:"none",color:e.palette.text.disabled}},t.inner&&Yt({},e.typography.body2,{color:e.palette.text.secondary})));function GW(e){const t=Tr({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:l,inner:i,label:o,selected:a}=t,s=tr(t,D1e),u=t,c=E1e(u),d=l%12/12*Math.PI*2-Math.PI/2,f=(rf-Ks-2)/2*(i?.65:1),p=Math.round(Math.cos(d)*f),h=Math.round(Math.sin(d)*f);return Te.jsx(R1e,Yt({className:xa(n,c.root),"aria-disabled":r?!0:void 0,"aria-selected":a?!0:void 0,role:"option",style:{transform:`translate(${p}px, ${h+(rf-Ks)/2}px`},ownerState:u},s,{children:o}))}const L1e=({ampm:e,date:t,getClockNumberText:n,isDisabled:r,selectedId:l,utils:i})=>{const o=t?i.getHours(t):null,a=[],s=e?1:0,u=e?12:23,c=d=>o===null?!1:e?d===12?o===12||o===0:o===d||o-12===d:o===d;for(let d=s;d<=u;d+=1){let f=d.toString();d===0&&(f="00");const p=!e&&(d===0||d>12);f=i.formatNumber(f);const h=c(d);a.push(Te.jsx(GW,{id:h?l:void 0,index:d,inner:p,selected:h,disabled:r(d),label:f,"aria-label":n(f)},d))}return a},KD=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:l})=>{const i=e.formatNumber;return[[5,i("05")],[10,i("10")],[15,i("15")],[20,i("20")],[25,i("25")],[30,i("30")],[35,i("35")],[40,i("40")],[45,i("45")],[50,i("50")],[55,i("55")],[0,i("00")]].map(([o,a],s)=>{const u=o===t;return Te.jsx(GW,{label:a,id:u?l:void 0,index:s+1,inner:!1,disabled:n(o),selected:u,"aria-label":r(a)},o)})};function YW(e){return gn("MuiClockPicker",e)}const I1e=fn("MuiClockPicker",["root","arrowSwitcher"]),$1e=e=>{const{classes:t}=e;return vn({root:["root"],arrowSwitcher:["arrowSwitcher"]},YW,t)},N1e=Dt(F5,{name:"MuiClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),F1e=Dt(IW,{name:"MuiClockPicker",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),j1e=FW(),XW=ge.forwardRef(function(t,n){const r=Tr({props:t,name:"MuiClockPicker"}),{ampm:l=!1,ampmInClock:i=!1,autoFocus:o,components:a,componentsProps:s,date:u,disableIgnoringDatePartForTimeValidation:c,getClockLabelText:d,getHoursClockNumberText:f,getMinutesClockNumberText:p,getSecondsClockNumberText:h,leftArrowButtonText:g,maxTime:b,minTime:v,minutesStep:m=1,rightArrowButtonText:y,shouldDisableTime:x,showViewSwitcher:_,onChange:w,view:S,views:k=["hours","minutes"],openTo:C,onViewChange:T,className:M,disabled:O,readOnly:D}=r;j1e({leftArrowButtonText:g,rightArrowButtonText:y,getClockLabelText:d,getHoursClockNumberText:f,getMinutesClockNumberText:p,getSecondsClockNumberText:h});const P=ul(),E=g??P.openPreviousView,I=y??P.openNextView,A=d??P.clockLabelText,F=f??P.hoursClockNumberText,j=p??P.minutesClockNumberText,B=h??P.secondsClockNumberText,{openView:z,setOpenView:N,nextView:R,previousView:q,handleChangeAndOpenNext:Y}=N5({view:S,views:k,openTo:C,onViewChange:T,onChange:w}),L=bg(),W=Hr(),H=ge.useMemo(()=>u||W.setSeconds(W.setMinutes(W.setHours(L,0),0),0),[u,L,W]),{meridiemMode:G,handleMeridiemChange:te}=NW(H,l,Y),ee=ge.useCallback((K,ne)=>{const ae=$W(c,W),ie=({start:pe,end:ke})=>!(v&&ae(v,ke)||b&&ae(pe,b)),se=(pe,ke=1)=>pe%ke!==0?!1:x?!x(pe,ne):!0;switch(ne){case"hours":{const pe=GS(K,G,l),ke=W.setHours(H,pe),Ce=W.setSeconds(W.setMinutes(ke,0),0),Oe=W.setSeconds(W.setMinutes(ke,59),59);return!ie({start:Ce,end:Oe})||!se(pe)}case"minutes":{const pe=W.setMinutes(H,K),ke=W.setSeconds(pe,0),Ce=W.setSeconds(pe,59);return!ie({start:ke,end:Ce})||!se(K,m)}case"seconds":{const pe=W.setSeconds(H,K);return!ie({start:pe,end:pe})||!se(K)}default:throw new Error("not supported")}},[l,H,c,b,G,v,m,x,W]),U=ls(),Q=ge.useMemo(()=>{switch(z){case"hours":{const K=(ne,ae)=>{const ie=GS(ne,G,l);Y(W.setHours(H,ie),ae)};return{onChange:K,value:W.getHours(H),children:L1e({date:u,utils:W,ampm:l,onChange:K,getClockNumberText:F,isDisabled:ne=>O||ee(ne,"hours"),selectedId:U})}}case"minutes":{const K=W.getMinutes(H),ne=(ae,ie)=>{Y(W.setMinutes(H,ae),ie)};return{value:K,onChange:ne,children:KD({utils:W,value:K,onChange:ne,getClockNumberText:j,isDisabled:ae=>O||ee(ae,"minutes"),selectedId:U})}}case"seconds":{const K=W.getSeconds(H),ne=(ae,ie)=>{Y(W.setSeconds(H,ae),ie)};return{value:K,onChange:ne,children:KD({utils:W,value:K,onChange:ne,getClockNumberText:B,isDisabled:ae=>O||ee(ae,"seconds"),selectedId:U})}}default:throw new Error("You must provide the type for ClockView")}},[z,W,u,l,F,j,B,G,Y,H,ee,U,O]),V=r,X=$1e(V);return Te.jsxs(N1e,{ref:n,className:xa(X.root,M),ownerState:V,children:[_&&Te.jsx(F1e,{className:X.arrowSwitcher,leftArrowButtonText:E,rightArrowButtonText:I,components:a,componentsProps:s,onLeftClick:()=>N(q),onRightClick:()=>N(R),isLeftDisabled:!q,isRightDisabled:!R,ownerState:V}),Te.jsx(O1e,Yt({autoFocus:o,date:u,ampmInClock:i,type:z,ampm:l,getClockLabelText:A,minutesStep:m,isTimeDisabled:ee,meridiemMode:G,handleMeridiemChange:te,selectedId:U,disabled:O,readOnly:D},Q))]})}),KW=e=>e.length===1&&e[0]==="year",ZW=e=>e.length===2&&e.indexOf("month")!==-1&&e.indexOf("year")!==-1,z1e=(e,t)=>KW(e)?{inputFormat:t.formats.year}:ZW(e)?{disableMaskedInput:!0,inputFormat:t.formats.monthAndYear}:{inputFormat:t.formats.keyboardDate};function j5(e,t){var n;const r=Hr(),l=yg(),i=Tr({props:e,name:t}),o=(n=i.views)!=null?n:["year","day"];return Yt({openTo:"day",disableFuture:!1,disablePast:!1},z1e(o,r),i,{views:o,minDate:zi(r,i.minDate,l.minDate),maxDate:zi(r,i.maxDate,l.maxDate)})}const z5={emptyValue:null,getTodayValue:e=>e.date(),parseInput:O5,areValuesEqual:(e,t,n)=>e.isEqual(t,n)};function QW(e){return gn("MuiPickersToolbar",e)}const B5=fn("MuiPickersToolbar",["root","content","penIconButton","penIconButtonLandscape"]),B1e=e=>{const{classes:t,isLandscape:n}=e;return vn({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},QW,t)},W1e=Dt("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>Yt({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),q1e=Dt(hr,{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>Yt({flex:1},!e.isLandscape&&{alignItems:"center"})),U1e=Dt(Fo,{name:"MuiPickersToolbar",slot:"PenIconButton",overridesResolver:(e,t)=>[{[`&.${B5.penIconButtonLandscape}`]:t.penIconButtonLandscape},t.penIconButton]})({}),H1e=e=>e==="clock"?Te.jsx(LW,{color:"inherit"}):Te.jsx(RW,{color:"inherit"}),W5=ge.forwardRef(function(t,n){const r=Tr({props:t,name:"MuiPickersToolbar"}),{children:l,className:i,getMobileKeyboardInputViewButtonText:o,isLandscape:a,isMobileKeyboardViewOpen:s,landscapeDirection:u="column",toggleMobileKeyboardView:c,toolbarTitle:d,viewType:f="calendar"}=r,p=r,h=ul(),g=B1e(p);return Te.jsxs(W1e,{ref:n,className:xa(g.root,i),ownerState:p,children:[Te.jsx(mr,{color:"text.secondary",variant:"overline",children:d}),Te.jsxs(q1e,{container:!0,justifyContent:"space-between",className:g.content,ownerState:p,direction:a?u:"row",alignItems:a?"flex-start":"flex-end",children:[l,Te.jsx(U1e,{onClick:c,className:g.penIconButton,ownerState:p,color:"inherit","aria-label":o?o(s,f):h.inputModeToggleButtonAriaLabel(s,f),children:s?H1e(f):Te.jsx(gye,{color:"inherit"})})]})]})});function V1e(e){return gn("MuiDatePickerToolbar",e)}const G1e=fn("MuiDatePickerToolbar",["root","title"]),Y1e=["parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],X1e=e=>{const{classes:t}=e;return vn({root:["root"],title:["title"]},V1e,t)},K1e=Dt(W5,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Z1e=Dt(mr,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>Yt({},e.isLandscape&&{margin:"auto 16px auto auto"})),q5=ge.forwardRef(function(t,n){const r=Tr({props:t,name:"MuiDatePickerToolbar"}),{parsedValue:l,isLandscape:i,isMobileKeyboardViewOpen:o,toggleMobileKeyboardView:a,toolbarFormat:s,toolbarPlaceholder:u="––",toolbarTitle:c,views:d}=r,f=tr(r,Y1e),p=Hr(),h=ul(),g=X1e(r),b=c??h.datePickerDefaultToolbarTitle,v=ge.useMemo(()=>l?s?p.formatByString(l,s):KW(d)?p.format(l,"year"):ZW(d)?p.format(l,"month"):/en/.test(p.getCurrentLocaleCode())?p.format(l,"normalDateWithWeekday"):p.format(l,"normalDate"):u,[l,s,u,p,d]),m=r;return Te.jsx(K1e,Yt({ref:n,toolbarTitle:b,isMobileKeyboardViewOpen:o,toggleMobileKeyboardView:a,isLandscape:i,className:g.root},f,{children:Te.jsx(Z1e,{variant:"h4",align:i?"left":"center",ownerState:m,className:g.title,children:v})}))}),Q1e=["onAccept","onClear","onCancel","onSetToday","actions"],U5=e=>{const{onAccept:t,onClear:n,onCancel:r,onSetToday:l,actions:i}=e,o=tr(e,Q1e),a=ge.useContext(gs),s=ul(),u=typeof i=="function"?i(a):i;if(u==null||u.length===0)return null;const c=u==null?void 0:u.map(d=>{switch(d){case"clear":return Te.jsx(tl,{onClick:n,children:s.clearButtonLabel},d);case"cancel":return Te.jsx(tl,{onClick:r,children:s.cancelButtonLabel},d);case"accept":return Te.jsx(tl,{onClick:t,children:s.okButtonLabel},d);case"today":return Te.jsx(tl,{onClick:l,children:s.todayButtonLabel},d);default:return null}});return Te.jsx(bse,Yt({},o,{children:c}))};function J1e(e){return gn("MuiPickersPopper",e)}fn("MuiPickersPopper",["root","paper"]);const ebe=["onClick","onTouchStart"],tbe=e=>{const{classes:t}=e;return vn({root:["root"],paper:["paper"]},J1e,t)},nbe=Dt(c5,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),rbe=Dt(pu,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>Yt({transformOrigin:"top center",outline:0},e.placement==="top"&&{transformOrigin:"bottom center"}));function abe(e,t){return t.documentElement.clientWidth{if(!e)return;function s(){i.current=!0}return document.addEventListener("mousedown",s,!0),document.addEventListener("touchstart",s,!0),()=>{document.removeEventListener("mousedown",s,!0),document.removeEventListener("touchstart",s,!0),i.current=!1}},[e]);const o=ho(s=>{if(!i.current)return;const u=r.current;r.current=!1;const c=qa(l.current);if(!l.current||"clientX"in s&&abe(s,c))return;if(n.current){n.current=!1;return}let d;s.composedPath?d=s.composedPath().indexOf(l.current)>-1:d=!c.documentElement.contains(s.target)||l.current.contains(s.target),!d&&!u&&t(s)}),a=()=>{r.current=!0};return ge.useEffect(()=>{if(e){const s=qa(l.current),u=()=>{n.current=!0};return s.addEventListener("touchstart",o),s.addEventListener("touchmove",u),()=>{s.removeEventListener("touchstart",o),s.removeEventListener("touchmove",u)}}},[e,o]),ge.useEffect(()=>{if(e){const s=qa(l.current);return s.addEventListener("click",o),()=>{s.removeEventListener("click",o),r.current=!1}}},[e,o]),[l,a,a]}function ibe(e){var t;const n=Tr({props:e,name:"MuiPickersPopper"}),{anchorEl:r,children:l,containerRef:i=null,onBlur:o,onClose:a,onClear:s,onAccept:u,onCancel:c,onSetToday:d,open:f,PopperProps:p,role:h,TransitionComponent:g=Jd,TrapFocusProps:b,PaperProps:v={},components:m,componentsProps:y}=n;ge.useEffect(()=>{function j(B){f&&(B.key==="Escape"||B.key==="Esc")&&a()}return document.addEventListener("keydown",j),()=>{document.removeEventListener("keydown",j)}},[a,f]);const x=ge.useRef(null);ge.useEffect(()=>{h!=="tooltip"&&(f?x.current=yW(document):x.current&&x.current instanceof HTMLElement&&setTimeout(()=>{x.current instanceof HTMLElement&&x.current.focus()}))},[f,h]);const[_,w,S]=obe(f,o??a),k=ge.useRef(null),C=Er(k,i),T=Er(C,_),M=n,O=tbe(M),{onClick:D,onTouchStart:P}=v,E=tr(v,ebe),I=j=>{j.key==="Escape"&&(j.stopPropagation(),a())},A=(t=m==null?void 0:m.ActionBar)!=null?t:U5,F=(m==null?void 0:m.PaperContent)||ge.Fragment;return Te.jsx(nbe,Yt({transition:!0,role:h,open:f,anchorEl:r,onKeyDown:I,className:O.root},p,{children:({TransitionProps:j,placement:B})=>Te.jsx(Nz,Yt({open:f,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:h==="tooltip",isEnabled:()=>!0},b,{children:Te.jsx(g,Yt({},j,{children:Te.jsx(rbe,Yt({tabIndex:-1,elevation:8,ref:T,onClick:z=>{w(z),D&&D(z)},onTouchStart:z=>{S(z),P&&P(z)},ownerState:Yt({},M,{placement:B}),className:O.paper},E,{children:Te.jsxs(F,Yt({},y==null?void 0:y.paperContent,{children:[l,Te.jsx(A,Yt({onAccept:u,onClear:s,onCancel:c,onSetToday:d,actions:[]},y==null?void 0:y.actionBar))]}))}))}))}))}))}function H5(e){const{children:t,DateInputProps:n,KeyboardDateInputComponent:r,onClear:l,onDismiss:i,onCancel:o,onAccept:a,onSetToday:s,open:u,PopperProps:c,PaperProps:d,TransitionComponent:f,components:p,componentsProps:h}=e,g=ge.useRef(null),b=Er(n.inputRef,g);return Te.jsxs(gs.Provider,{value:"desktop",children:[Te.jsx(r,Yt({},n,{inputRef:b})),Te.jsx(ibe,{role:"dialog",open:u,anchorEl:g.current,TransitionComponent:f,PopperProps:c,PaperProps:d,onClose:i,onCancel:o,onClear:l,onAccept:a,onSetToday:s,components:p,componentsProps:h,children:t})]})}const lbe=e=>{const[,t]=ge.useReducer(s=>s+1,0),n=ge.useRef(null),{replace:r,append:l}=e,i=r?r(e.format(e.value)):e.format(e.value),o=ge.useRef(!1),a=s=>{const u=s.target.value;n.current=[u,s.target,u.length>i.length,o.current,i===e.format(u)],t()};return ge.useLayoutEffect(()=>{if(n.current==null)return;let[s,u,c,d,f]=n.current;n.current=null;const p=d&&f,g=s.slice(u.selectionStart).search(e.accept||/\d/g),b=g!==-1?g:0,v=w=>(w.match(e.accept||/\d/g)||[]).join(""),m=v(s.substr(0,u.selectionStart)),y=w=>{let S=0,k=0;for(let C=0;C!==m.length;++C){let T=w.indexOf(m[C],S)+1,M=v(w).indexOf(m[C],k)+1;M-k>1&&(T=S,M=k),k=Math.max(M,k),S=Math.max(S,T)}return S};if(e.mask===!0&&c&&!f){let w=y(s);const S=v(s.substr(w))[0];w=s.indexOf(S,w),s=`${s.substr(0,w)}${s.substr(w+1)}`}let x=e.format(s);l!=null&&u.selectionStart===s.length&&!f&&(c?x=l(x):v(x.slice(-1))===""&&(x=x.slice(0,-1)));const _=r?r(x):x;return i===_?t():e.onChange(_),()=>{let w=y(x);if(e.mask!=null&&(c||d&&!p))for(;x[w]&&v(x[w])==="";)w+=1;u.selectionStart=u.selectionEnd=w+(p?1+b:0)}}),ge.useEffect(()=>{const s=c=>{c.code==="Delete"&&(o.current=!0)},u=c=>{c.code==="Delete"&&(o.current=!1)};return document.addEventListener("keydown",s),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",s),document.removeEventListener("keyup",u)}},[]),{value:n.current!=null?n.current[0]:i,onChange:a}},YS=(e,t,n)=>{const r=e.date(t);return t===null?"":e.isValid(r)?e.formatByString(r,n):""},Ey="_",JW="2019-11-21T22:30:00.000",eq="2019-01-01T09:00:00.000";function sbe(e,t,n,r){if(e)return e;const i=r.formatByString(r.date(eq),t).replace(n,Ey),o=r.formatByString(r.date(JW),t).replace(n,"_");return i===o?i:""}function ube(e,t,n,r){if(!e)return!1;const i=r.formatByString(r.date(eq),t).replace(n,Ey),o=r.formatByString(r.date(JW),t).replace(n,"_"),a=o===i&&e===o;return!a&&r.lib,a}const cbe=(e,t)=>n=>{let r=0;return n.split("").map((l,i)=>{if(t.lastIndex=0,r>e.length-1)return"";const o=e[r],a=e[r+1],s=t.test(l)?l:"",u=o===Ey?s:o+s;return r+=u.length,i===n.length-1&&a&&a!==Ey?u?u+a:"":u}).join("")},dbe=({acceptRegex:e=/[\d]/gi,disabled:t,disableMaskedInput:n,ignoreInvalidInputs:r,inputFormat:l,inputProps:i,label:o,mask:a,onChange:s,rawValue:u,readOnly:c,rifmFormatter:d,TextFieldProps:f,validationError:p})=>{const h=Hr(),g=h.getFormatHelperText(l),{shouldUseMaskedInput:b,maskToUse:v}=ge.useMemo(()=>{if(n)return{shouldUseMaskedInput:!1,maskToUse:""};const P=sbe(a,l,e,h);return{shouldUseMaskedInput:ube(P,l,e,h),maskToUse:P}},[e,n,l,a,h]),m=ge.useMemo(()=>b&&v?cbe(v,e):P=>P,[e,v,b]),y=u===null?null:h.date(u),[x,_]=ge.useState(y),[w,S]=ge.useState(YS(h,u,l)),k=ge.useRef(),C=ge.useRef(h.locale),T=ge.useRef(l);ge.useEffect(()=>{const P=u!==k.current,E=h.locale!==C.current,I=l!==T.current;if(k.current=u,C.current=h.locale,T.current=l,!P&&!E&&!I)return;const A=u===null?null:h.date(u),F=u===null||h.isValid(A);let j=x===null&&A===null;if(x!==null&&A!==null){const z=h.isEqual(x,A);if(z)j=!0;else{const N=Math.abs(h.getDiff(x,A));j=N===0?z:N<1e3}}if(!E&&!I&&(!F||j))return;const B=YS(h,u,l);_(A),S(B)},[h,u,l,x]);const M=P=>{const E=P===""||P===a?"":P;S(E);const I=E===null?null:h.parse(E,l);r&&!h.isValid(I)||(_(I),s(I,E||void 0))},O=lbe({value:w,onChange:M,format:d||m});return Yt({label:o,disabled:t,error:p,inputProps:Yt({},b?O:{value:w,onChange:P=>{M(P.currentTarget.value)}},{disabled:t,placeholder:g,readOnly:c,type:b?"tel":"text"},i)},f)},fbe=["className","components","disableOpenPicker","getOpenDialogAriaText","InputAdornmentProps","InputProps","inputRef","openPicker","OpenPickerButtonProps","renderInput"],Zb=ge.forwardRef(function(t,n){const{className:r,components:l={},disableOpenPicker:i,getOpenDialogAriaText:o,InputAdornmentProps:a,InputProps:s,inputRef:u,openPicker:c,OpenPickerButtonProps:d,renderInput:f}=t,p=tr(t,fbe),h=ul(),g=o??h.openDatePickerDialogue,b=Hr(),v=dbe(p),m=(a==null?void 0:a.position)||"end",y=l.OpenPickerIcon||RW;return f(Yt({ref:n,inputRef:u,className:r},v,{InputProps:Yt({},s,{[`${m}Adornment`]:i?void 0:Te.jsx(Yz,Yt({position:m},a,{children:Te.jsx(Fo,Yt({edge:m,disabled:p.disabled||p.readOnly,"aria-label":g(p.rawValue,b)},d,{onClick:c,children:Te.jsx(y,{})}))}))})}))});function ZD(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const pbe=(e,t)=>{const[n,r]=ge.useState(ZD);return I5(()=>{const i=()=>{r(ZD())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),$u(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},hbe=({autoFocus:e,openView:t})=>{const[n,r]=ge.useState(e?t:null),l=ge.useCallback(i=>o=>{r(o?i:a=>i===a?null:a)},[]);return{focusedView:n,setFocusedView:l}};function mbe(e){return gn("MuiCalendarOrClockPicker",e)}fn("MuiCalendarOrClockPicker",["root","mobileKeyboardInputView"]);const gbe=["autoFocus","className","parsedValue","DateInputProps","isMobileKeyboardViewOpen","onDateChange","onViewChange","openTo","orientation","showToolbar","toggleMobileKeyboardView","ToolbarComponent","toolbarFormat","toolbarPlaceholder","toolbarTitle","views","dateRangeIcon","timeIcon","hideTabs","classes"],vbe=e=>{const{classes:t}=e;return vn({root:["root"],mobileKeyboardInputView:["mobileKeyboardInputView"]},mbe,t)},ybe=Dt("div",{name:"MuiCalendarOrClockPicker",slot:"MobileKeyboardInputView",overridesResolver:(e,t)=>t.mobileKeyboardInputView})({padding:"16px 24px"}),bbe=Dt("div",{name:"MuiCalendarOrClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>Yt({display:"flex",flexDirection:"column"},e.isLandscape&&{flexDirection:"row"})),xbe={fullWidth:!0},QD=e=>e==="year"||e==="month"||e==="day",JD=e=>e==="hours"||e==="minutes"||e==="seconds";function vs(e){var t,n;const r=Tr({props:e,name:"MuiCalendarOrClockPicker"}),{autoFocus:l,parsedValue:i,DateInputProps:o,isMobileKeyboardViewOpen:a,onDateChange:s,onViewChange:u,openTo:c,orientation:d,showToolbar:f,toggleMobileKeyboardView:p,ToolbarComponent:h=()=>null,toolbarFormat:g,toolbarPlaceholder:b,toolbarTitle:v,views:m,dateRangeIcon:y,timeIcon:x,hideTabs:_}=r,w=tr(r,gbe),S=(t=w.components)==null?void 0:t.Tabs,k=pbe(m,d),C=ge.useContext(gs),T=vbe(r),M=f??C!=="desktop",O=!_&&typeof window<"u"&&window.innerHeight>667,D=ge.useCallback((B,z)=>{s(B,C,z)},[s,C]),P=ge.useCallback(B=>{a&&p(),u&&u(B)},[a,u,p]),{openView:E,setOpenView:I,handleChangeAndOpenNext:A}=N5({view:void 0,views:m,openTo:c,onChange:D,onViewChange:P}),{focusedView:F,setFocusedView:j}=hbe({autoFocus:l,openView:E});return Te.jsxs(bbe,{ownerState:{isLandscape:k},className:T.root,children:[M&&Te.jsx(h,Yt({},w,{views:m,isLandscape:k,parsedValue:i,onChange:D,setOpenView:I,openView:E,toolbarTitle:v,toolbarFormat:g,toolbarPlaceholder:b,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:p})),O&&!!S&&Te.jsx(S,Yt({dateRangeIcon:y,timeIcon:x,view:E,onChange:I},(n=w.componentsProps)==null?void 0:n.tabs)),Te.jsx(F5,{children:a?Te.jsx(ybe,{className:T.mobileKeyboardInputView,children:Te.jsx(Zb,Yt({},o,{ignoreInvalidInputs:!0,disableOpenPicker:!0,TextFieldProps:xbe}))}):Te.jsxs(ge.Fragment,{children:[QD(E)&&Te.jsx(WW,Yt({autoFocus:l,date:i,onViewChange:I,onChange:A,view:E,views:m.filter(QD),focusedView:F,onFocusedViewChange:j},w)),JD(E)&&Te.jsx(XW,Yt({},w,{autoFocus:l,date:i,view:E,views:m.filter(JD),onChange:A,onViewChange:I,showViewSwitcher:C==="desktop"}))]})})]})}const wbe=({open:e,onOpen:t,onClose:n})=>{const r=ge.useRef(typeof e=="boolean").current,[l,i]=ge.useState(!1);ge.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");i(e)}},[r,e]);const o=ge.useCallback(a=>{r||i(a),a&&t&&t(),!a&&n&&n()},[r,t,n]);return{isOpen:l,setIsOpen:o}},ys=(e,t)=>{const{onAccept:n,onChange:r,value:l,closeOnSelect:i}=e,o=Hr(),{isOpen:a,setIsOpen:s}=wbe(e),u=ge.useMemo(()=>t.parseInput(o,l),[t,o,l]),[c,d]=ge.useState(u),[f,p]=ge.useState(()=>({committed:u,draft:u,resetFallback:u})),h=ge.useCallback(w=>{p(S=>{switch(w.action){case"setAll":case"acceptAndClose":return{draft:w.value,committed:w.value,resetFallback:w.value};case"setCommitted":return Yt({},S,{draft:w.value,committed:w.value});case"setDraft":return Yt({},S,{draft:w.value});default:return S}}),(w.forceOnChangeCall||!w.skipOnChangeCall&&!t.areValuesEqual(o,f.committed,w.value))&&r(w.value),w.action==="acceptAndClose"&&(s(!1),n&&!t.areValuesEqual(o,f.resetFallback,w.value)&&n(w.value))},[n,r,s,f,o,t]);ge.useEffect(()=>{o.isValid(u)&&d(u)},[o,u]),ge.useEffect(()=>{a&&h({action:"setAll",value:u,skipOnChangeCall:!0})},[a]),t.areValuesEqual(o,f.committed,u)||h({action:"setCommitted",value:u,skipOnChangeCall:!0});const g=ge.useMemo(()=>({open:a,onClear:()=>{h({value:t.emptyValue,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(o,l,t.emptyValue)})},onAccept:()=>{h({value:f.draft,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(o,l,u)})},onDismiss:()=>{h({value:f.committed,action:"acceptAndClose"})},onCancel:()=>{h({value:f.resetFallback,action:"acceptAndClose"})},onSetToday:()=>{h({value:t.getTodayValue(o),action:"acceptAndClose"})}}),[h,a,o,f,t,l,u]),[b,v]=ge.useState(!1),m=ge.useMemo(()=>({parsedValue:f.draft,isMobileKeyboardViewOpen:b,toggleMobileKeyboardView:()=>v(!b),onDateChange:(w,S,k="partial")=>{switch(k){case"shallow":return h({action:"setDraft",value:w,skipOnChangeCall:!0});case"partial":return h({action:"setDraft",value:w});case"finish":return h(i??S==="desktop"?{value:w,action:"acceptAndClose"}:{value:w,action:"setCommitted"});default:throw new Error("MUI: Invalid selectionState passed to `onDateChange`")}}}),[h,b,f.draft,i]),y=ge.useCallback((w,S)=>{const k=t.valueReducer?t.valueReducer(o,c,w):w;r(k,S)},[r,t,c,o]),x=ge.useMemo(()=>({onChange:y,open:a,rawValue:l,openPicker:()=>s(!0)}),[y,a,l,s]),_={pickerProps:m,inputProps:x,wrapperProps:g};return ge.useDebugValue(_,()=>({MuiPickerState:{dateState:f,other:_}})),_},_be=["onChange","PopperProps","PaperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],tq=ge.forwardRef(function(t,n){const r=j5(t,"MuiDesktopDatePicker"),l=E5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=ys(r,z5),{PopperProps:s,PaperProps:u,ToolbarComponent:c=q5,TransitionComponent:d,components:f,componentsProps:p}=r,h=tr(r,_be),g=Yt({},o,h,{components:f,componentsProps:p,ref:n,validationError:l});return Te.jsx(H5,Yt({},a,{DateInputProps:g,KeyboardDateInputComponent:Zb,PopperProps:s,PaperProps:u,TransitionComponent:d,components:f,componentsProps:p,children:Te.jsx(vs,Yt({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:c,DateInputProps:g,components:f,componentsProps:p},h))}))}),Tbe=Dt(mse)({[`& .${Vh.container}`]:{outline:0},[`& .${Vh.paper}`]:{outline:0,minWidth:$5}}),Sbe=Dt(Sse)({"&:first-of-type":{padding:0}}),kbe=e=>{var t;const{children:n,DialogProps:r={},onAccept:l,onClear:i,onDismiss:o,onCancel:a,onSetToday:s,open:u,components:c,componentsProps:d}=e,f=(t=c==null?void 0:c.ActionBar)!=null?t:U5;return Te.jsxs(Tbe,Yt({open:u,onClose:o},r,{children:[Te.jsx(Sbe,{children:n}),Te.jsx(f,Yt({onAccept:l,onClear:i,onCancel:a,onSetToday:s,actions:["cancel","accept"]},d==null?void 0:d.actionBar))]}))},Cbe=["children","DateInputProps","DialogProps","onAccept","onClear","onDismiss","onCancel","onSetToday","open","PureDateInputComponent","components","componentsProps"];function V5(e){const{children:t,DateInputProps:n,DialogProps:r,onAccept:l,onClear:i,onDismiss:o,onCancel:a,onSetToday:s,open:u,PureDateInputComponent:c,components:d,componentsProps:f}=e,p=tr(e,Cbe);return Te.jsxs(gs.Provider,{value:"mobile",children:[Te.jsx(c,Yt({components:d},p,n)),Te.jsx(kbe,{DialogProps:r,onAccept:l,onClear:i,onDismiss:o,onCancel:a,onSetToday:s,open:u,components:d,componentsProps:f,children:t})]})}const G5=ge.forwardRef(function(t,n){const{disabled:r,getOpenDialogAriaText:l,inputFormat:i,InputProps:o,inputRef:a,label:s,openPicker:u,rawValue:c,renderInput:d,TextFieldProps:f={},validationError:p,className:h}=t,g=ul(),b=l??g.openDatePickerDialogue,v=Hr(),m=ge.useMemo(()=>Yt({},o,{readOnly:!0}),[o]),y=YS(v,c,i),x=ho(_=>{_.stopPropagation(),u()});return d(Yt({label:s,disabled:r,ref:n,inputRef:a,error:p,InputProps:m,className:h},!t.readOnly&&!t.disabled&&{onClick:x},{inputProps:Yt({disabled:r,readOnly:!0,"aria-readonly":!0,"aria-label":b(c,v),value:y},!t.readOnly&&{onClick:x},{onKeyDown:vW(u)})},f))}),Mbe=["ToolbarComponent","value","onChange","components","componentsProps"],nq=ge.forwardRef(function(t,n){const r=j5(t,"MuiMobileDatePicker"),l=E5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=ys(r,z5),{ToolbarComponent:s=q5,components:u,componentsProps:c}=r,d=tr(r,Mbe),f=Yt({},o,d,{components:u,componentsProps:c,ref:n,validationError:l});return Te.jsx(V5,Yt({},d,a,{DateInputProps:f,PureDateInputComponent:G5,components:u,componentsProps:c,children:Te.jsx(vs,Yt({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:s,DateInputProps:f,components:u,componentsProps:c},d))}))}),Pbe=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],Obe=ge.forwardRef(function(t,n){const r=Tr({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:l="@media (pointer: fine)",DialogProps:i,PopperProps:o,TransitionComponent:a}=r,s=tr(r,Pbe);return vb(l,{defaultMatches:!0})?Te.jsx(tq,Yt({ref:n,PopperProps:o,TransitionComponent:a},s)):Te.jsx(nq,Yt({ref:n,DialogProps:i},s))});function Y5(e,t){var n,r,l,i,o;const a=Tr({props:e,name:t}),s=Hr(),u=yg(),c=(n=a.ampm)!=null?n:s.is12HourCycleInCurrentLocale();if(a.orientation!=null&&a.orientation!=="portrait")throw new Error("We are not supporting custom orientation for DateTimePicker yet :(");return Yt({ampm:c,orientation:"portrait",openTo:"day",views:["year","day","hours","minutes"],ampmInClock:!0,acceptRegex:c?/[\dap]/gi:/\d/gi,disableMaskedInput:!1,inputFormat:c?s.formats.keyboardDateTime12h:s.formats.keyboardDateTime24h,disableIgnoringDatePartForTimeValidation:!!(a.minDateTime||a.maxDateTime),disablePast:!1,disableFuture:!1},a,{minDate:zi(s,(r=a.minDateTime)!=null?r:a.minDate,u.minDate),maxDate:zi(s,(l=a.maxDateTime)!=null?l:a.maxDate,u.maxDate),minTime:(i=a.minDateTime)!=null?i:a.minTime,maxTime:(o=a.maxDateTime)!=null?o:a.maxTime})}const X5={emptyValue:null,getTodayValue:e=>e.date(),parseInput:O5,areValuesEqual:(e,t,n)=>e.isEqual(t,n)},Abe=e=>{switch(e){case"year":case"month":case"day":return"calendar";default:return"clock"}};function Dbe(e){return gn("PrivatePickersToolbarText",e)}const eE=fn("PrivatePickersToolbarText",["root","selected"]),Ebe=["className","selected","value"],Rbe=e=>{const{classes:t,selected:n}=e;return vn({root:["root",n&&"selected"]},Dbe,t)},Lbe=Dt(mr,{name:"PrivatePickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${eE.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:e.palette.text.secondary,[`&.${eE.selected}`]:{color:e.palette.text.primary}})),K5=ge.forwardRef(function(t,n){const{className:r,value:l}=t,i=tr(t,Ebe),o=Rbe(t);return Te.jsx(Lbe,Yt({ref:n,className:xa(r,o.root),component:"span"},i,{children:l}))}),Ibe=["align","className","selected","typographyClassName","value","variant"],$be=e=>{const{classes:t}=e;return vn({root:["root"]},QW,t)},Nbe=Dt(tl,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),Cl=ge.forwardRef(function(t,n){const r=Tr({props:t,name:"MuiPickersToolbarButton"}),{align:l,className:i,selected:o,typographyClassName:a,value:s,variant:u}=r,c=tr(r,Ibe),d=$be(r);return Te.jsx(Nbe,Yt({variant:"text",ref:n,className:xa(i,d.root)},c,{children:Te.jsx(K5,{align:l,className:a,variant:u,value:s,selected:o})}))});function Fbe(e){return gn("MuiDateTimePickerToolbar",e)}const jbe=fn("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","separator"]),zbe=["ampm","parsedValue","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],Bbe=e=>{const{classes:t}=e;return vn({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer"],separator:["separator"]},Fbe,t)},Wbe=Dt(W5,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",[`& .${B5.penIconButton}`]:Yt({position:"absolute",top:8},e.direction==="rtl"?{left:8}:{right:8})})),qbe=Dt("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),Ube=Dt("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})({display:"flex"}),tE=Dt(K5,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({margin:"0 4px 0 2px",cursor:"default"});function Z5(e){const t=Tr({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,parsedValue:r,isMobileKeyboardViewOpen:l,openView:i,setOpenView:o,toggleMobileKeyboardView:a,toolbarFormat:s,toolbarPlaceholder:u="––",toolbarTitle:c,views:d}=t,f=tr(t,zbe),p=t,h=Hr(),g=ul(),b=Bbe(p),v=c??g.dateTimePickerDefaultToolbarTitle,m=x=>n?h.format(x,"hours12h"):h.format(x,"hours24h"),y=ge.useMemo(()=>r?s?h.formatByString(r,s):h.format(r,"shortDate"):u,[r,s,u,h]);return Te.jsxs(Wbe,Yt({toolbarTitle:v,isMobileKeyboardViewOpen:l,toggleMobileKeyboardView:a,className:b.root,viewType:Abe(i)},f,{isLandscape:!1,ownerState:p,children:[Te.jsxs(qbe,{className:b.dateContainer,ownerState:p,children:[d.includes("year")&&Te.jsx(Cl,{tabIndex:-1,variant:"subtitle1",onClick:()=>o("year"),selected:i==="year",value:r?h.format(r,"year"):"–"}),d.includes("day")&&Te.jsx(Cl,{tabIndex:-1,variant:"h4",onClick:()=>o("day"),selected:i==="day",value:y})]}),Te.jsxs(Ube,{className:b.timeContainer,ownerState:p,children:[d.includes("hours")&&Te.jsx(Cl,{variant:"h3",onClick:()=>o("hours"),selected:i==="hours",value:r?m(r):"--"}),d.includes("minutes")&&Te.jsxs(ge.Fragment,{children:[Te.jsx(tE,{variant:"h3",value:":",className:b.separator,ownerState:p}),Te.jsx(Cl,{variant:"h3",onClick:()=>o("minutes"),selected:i==="minutes",value:r?h.format(r,"minutes"):"--"})]}),d.includes("seconds")&&Te.jsxs(ge.Fragment,{children:[Te.jsx(tE,{variant:"h3",value:":",className:b.separator,ownerState:p}),Te.jsx(Cl,{variant:"h3",onClick:()=>o("seconds"),selected:i==="seconds",value:r?h.format(r,"seconds"):"--"})]})]})]}))}const rq=({adapter:e,value:t,props:n})=>{const{minTime:r,maxTime:l,minutesStep:i,shouldDisableTime:o,disableIgnoringDatePartForTimeValidation:a}=n,s=e.utils.date(t),u=$W(a,e.utils);if(t===null)return null;switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&u(r,s)):return"minTime";case!!(l&&u(s,l)):return"maxTime";case!!(o&&o(e.utils.getHours(s),"hours")):return"shouldDisableTime-hours";case!!(o&&o(e.utils.getMinutes(s),"minutes")):return"shouldDisableTime-minutes";case!!(o&&o(e.utils.getSeconds(s),"seconds")):return"shouldDisableTime-seconds";case!!(i&&e.utils.getMinutes(s)%i!==0):return"minutesStep";default:return null}},Hbe=(e,t)=>e===t,Q5=e=>A5(e,rq,Hbe),Vbe=["minDate","maxDate","disableFuture","shouldDisableDate","disablePast"],Gbe=({props:e,value:t,adapter:n})=>{const{minDate:r,maxDate:l,disableFuture:i,shouldDisableDate:o,disablePast:a}=e,s=tr(e,Vbe),u=D5({adapter:n,value:t,props:{minDate:r,maxDate:l,disableFuture:i,shouldDisableDate:o,disablePast:a}});return u!==null?u:rq({adapter:n,value:t,props:s})},Ybe=(e,t)=>e===t;function J5(e){return A5(e,Gbe,Ybe)}function Xbe(e){return gn("MuiDateTimePickerTabs",e)}const Kbe=fn("MuiDateTimePickerTabs",["root"]),Zbe=e=>["day","month","year"].includes(e)?"date":"time",Qbe=e=>e==="date"?"day":"hours",Jbe=e=>{const{classes:t}=e;return vn({root:["root"]},Xbe,t)},exe=Dt(TB,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>Yt({boxShadow:`0 -1px 0 0 inset ${t.palette.divider}`},e.wrapperVariant==="desktop"&&{order:1,boxShadow:`0 1px 0 0 inset ${t.palette.divider}`,[`& .${bv.indicator}`]:{bottom:"auto",top:0}})),Qb=function(t){const n=Tr({props:t,name:"MuiDateTimePickerTabs"}),{dateRangeIcon:r=Te.jsx(mye,{}),onChange:l,timeIcon:i=Te.jsx(vye,{}),view:o}=n,a=ul(),s=ge.useContext(gs),u=Yt({},n,{wrapperVariant:s}),c=Jbe(u),d=(f,p)=>{l(Qbe(p))};return Te.jsxs(exe,{ownerState:u,variant:"fullWidth",value:Zbe(o),onChange:d,className:c.root,children:[Te.jsx(jS,{value:"date","aria-label":a.dateTableLabel,icon:Te.jsx(ge.Fragment,{children:r})}),Te.jsx(jS,{value:"time","aria-label":a.timeTableLabel,icon:Te.jsx(ge.Fragment,{children:i})})]})},txe=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps","hideTabs"],aq=ge.forwardRef(function(t,n){const r=Y5(t,"MuiDesktopDateTimePicker"),l=J5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=ys(r,X5),{PaperProps:s,PopperProps:u,ToolbarComponent:c=Z5,TransitionComponent:d,components:f,componentsProps:p,hideTabs:h=!0}=r,g=tr(r,txe),b=ge.useMemo(()=>Yt({Tabs:Qb},f),[f]),v=Yt({},o,g,{components:b,componentsProps:p,ref:n,validationError:l});return Te.jsx(H5,Yt({},a,{DateInputProps:v,KeyboardDateInputComponent:Zb,PopperProps:u,PaperProps:s,TransitionComponent:d,components:b,componentsProps:p,children:Te.jsx(vs,Yt({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:c,DateInputProps:v,components:b,componentsProps:p,hideTabs:h},g))}))}),nxe=["ToolbarComponent","value","onChange","components","componentsProps","hideTabs"],oq=ge.forwardRef(function(t,n){const r=Y5(t,"MuiMobileDateTimePicker"),l=J5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=ys(r,X5),{ToolbarComponent:s=Z5,components:u,componentsProps:c,hideTabs:d=!1}=r,f=tr(r,nxe),p=ge.useMemo(()=>Yt({Tabs:Qb},u),[u]),h=Yt({},o,f,{components:p,componentsProps:c,ref:n,validationError:l});return Te.jsx(V5,Yt({},f,a,{DateInputProps:h,PureDateInputComponent:G5,components:p,componentsProps:c,children:Te.jsx(vs,Yt({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:s,DateInputProps:h,components:p,componentsProps:c,hideTabs:d},f))}))}),rxe=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],axe=ge.forwardRef(function(t,n){const r=Tr({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:l="@media (pointer: fine)",DialogProps:i,PopperProps:o,TransitionComponent:a}=r,s=tr(r,rxe);return vb(l,{defaultMatches:!0})?Te.jsx(aq,Yt({ref:n,PopperProps:o,TransitionComponent:a},s)):Te.jsx(oq,Yt({ref:n,DialogProps:i},s))});function e4(e,t){var n;const r=Tr({props:e,name:t}),l=Hr(),i=(n=r.ampm)!=null?n:l.is12HourCycleInCurrentLocale(),a=ul().openTimePickerDialogue;return Yt({ampm:i,openTo:"hours",views:["hours","minutes"],acceptRegex:i?/[\dapAP]/gi:/\d/gi,disableMaskedInput:!1,getOpenDialogAriaText:a,inputFormat:i?l.formats.fullTime12h:l.formats.fullTime24h},r,{components:Yt({OpenPickerIcon:LW},r.components)})}const t4={emptyValue:null,parseInput:O5,getTodayValue:e=>e.date(),areValuesEqual:(e,t,n)=>e.isEqual(t,n),valueReducer:(e,t,n)=>!t||!e.isValid(n)?n:e.mergeDateAndTime(t,n)};function oxe(e){return gn("MuiTimePickerToolbar",e)}const Ld=fn("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),ixe=["ampm","ampmInClock","parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarTitle","views","disabled","readOnly"],lxe=e=>{const{theme:t,isLandscape:n,classes:r}=e,l={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape",t.direction==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return vn(l,oxe,r)},sxe=Dt(W5,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({[`& .${B5.penIconButtonLandscape}`]:{marginTop:"auto"}}),uxe=Dt(K5,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),cxe=Dt("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${Ld.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${Ld.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>Yt({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"})),dxe=Dt("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${Ld.ampmLabel}`]:t.ampmLabel},{[`&.${Ld.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>Yt({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${Ld.ampmLabel}`]:{fontSize:17}}));function n4(e){const t=Tr({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,parsedValue:l,isLandscape:i,isMobileKeyboardViewOpen:o,onChange:a,openView:s,setOpenView:u,toggleMobileKeyboardView:c,toolbarTitle:d,views:f,disabled:p,readOnly:h}=t,g=tr(t,ixe),b=Hr(),v=ul(),m=d??v.timePickerDefaultToolbarTitle,y=pi(),x=!!(n&&!r),{meridiemMode:_,handleMeridiemChange:w}=NW(l,n,a),S=M=>n?b.format(M,"hours12h"):b.format(M,"hours24h"),k=t,C=lxe(Yt({},k,{theme:y})),T=Te.jsx(uxe,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:C.separator});return Te.jsxs(sxe,Yt({viewType:"clock",landscapeDirection:"row",toolbarTitle:m,isLandscape:i,isMobileKeyboardViewOpen:o,toggleMobileKeyboardView:c,ownerState:k,className:C.root},g,{children:[Te.jsxs(cxe,{className:C.hourMinuteLabel,ownerState:k,children:[$u(f,"hours")&&Te.jsx(Cl,{tabIndex:-1,variant:"h3",onClick:()=>u("hours"),selected:s==="hours",value:l?S(l):"--"}),$u(f,["hours","minutes"])&&T,$u(f,"minutes")&&Te.jsx(Cl,{tabIndex:-1,variant:"h3",onClick:()=>u("minutes"),selected:s==="minutes",value:l?b.format(l,"minutes"):"--"}),$u(f,["minutes","seconds"])&&T,$u(f,"seconds")&&Te.jsx(Cl,{variant:"h3",onClick:()=>u("seconds"),selected:s==="seconds",value:l?b.format(l,"seconds"):"--"})]}),x&&Te.jsxs(dxe,{className:C.ampmSelection,ownerState:k,children:[Te.jsx(Cl,{disableRipple:!0,variant:"subtitle2",selected:_==="am",typographyClassName:C.ampmLabel,value:b.getMeridiemText("am"),onClick:h?void 0:()=>w("am"),disabled:p}),Te.jsx(Cl,{disableRipple:!0,variant:"subtitle2",selected:_==="pm",typographyClassName:C.ampmLabel,value:b.getMeridiemText("pm"),onClick:h?void 0:()=>w("pm"),disabled:p})]})]}))}const fxe=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],iq=ge.forwardRef(function(t,n){const r=e4(t,"MuiDesktopTimePicker"),l=Q5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=ys(r,t4),{PaperProps:s,PopperProps:u,ToolbarComponent:c=n4,TransitionComponent:d,components:f,componentsProps:p}=r,h=tr(r,fxe),g=Yt({},o,h,{components:f,componentsProps:p,ref:n,validationError:l});return Te.jsx(H5,Yt({},a,{DateInputProps:g,KeyboardDateInputComponent:Zb,PopperProps:u,PaperProps:s,TransitionComponent:d,components:f,componentsProps:p,children:Te.jsx(vs,Yt({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:c,DateInputProps:g,components:f,componentsProps:p},h))}))}),pxe=["ToolbarComponent","value","onChange","components","componentsProps"],lq=ge.forwardRef(function(t,n){const r=e4(t,"MuiMobileTimePicker"),l=Q5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=ys(r,t4),{ToolbarComponent:s=n4,components:u,componentsProps:c}=r,d=tr(r,pxe),f=Yt({},o,d,{components:u,componentsProps:c,ref:n,validationError:l});return Te.jsx(V5,Yt({},d,a,{DateInputProps:f,PureDateInputComponent:G5,components:u,componentsProps:c,children:Te.jsx(vs,Yt({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:s,DateInputProps:f,components:u,componentsProps:c},d))}))});function hxe(e){return gn("MuiPickerStaticWrapper",e)}fn("MuiPickerStaticWrapper",["root","content"]);const mxe=["displayStaticWrapperAs","onAccept","onClear","onCancel","onDismiss","onSetToday","open","children","components","componentsProps","className"],gxe=e=>{const{classes:t}=e;return vn({root:["root"],content:["content"]},hxe,t)},vxe=Dt("div",{name:"MuiPickerStaticWrapper",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),yxe=Dt("div",{name:"MuiPickerStaticWrapper",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e})=>({overflow:"hidden",minWidth:$5,display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper}));function Jb(e){var t;const n=Tr({props:e,name:"MuiPickerStaticWrapper"}),{displayStaticWrapperAs:r,onAccept:l,onClear:i,onCancel:o,onSetToday:a,children:s,components:u,componentsProps:c,className:d}=n,f=tr(n,mxe),p=gxe(n),h=(t=u==null?void 0:u.ActionBar)!=null?t:U5,g=(u==null?void 0:u.PaperContent)||ge.Fragment;return Te.jsx(gs.Provider,{value:r,children:Te.jsxs(vxe,Yt({className:xa(p.root,d)},f,{children:[Te.jsx(yxe,{className:p.content,children:Te.jsx(g,Yt({},c==null?void 0:c.paperContent,{children:s}))}),Te.jsx(h,Yt({onAccept:l,onClear:i,onCancel:o,onSetToday:a,actions:r==="desktop"?[]:["cancel","accept"]},c==null?void 0:c.actionBar))]}))})}const bxe=["ToolbarComponent","value","onChange","displayStaticWrapperAs","components","componentsProps","className"],xxe=ge.forwardRef(function(t,n){const r=j5(t,"MuiStaticDatePicker"),{ToolbarComponent:l=q5,displayStaticWrapperAs:i="mobile",components:o,componentsProps:a,className:s}=r,u=tr(r,bxe),{pickerProps:c,inputProps:d,wrapperProps:f}=ys(r,z5),p=E5(r)!==null,h=Yt({},d,u,{ref:n,validationError:p,components:o});return Te.jsx(Jb,Yt({displayStaticWrapperAs:i,components:o,componentsProps:a,className:s},f,{children:Te.jsx(vs,Yt({},c,{toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:l,DateInputProps:h,components:o,componentsProps:a},u))}))}),wxe=["displayStaticWrapperAs","onChange","ToolbarComponent","value","components","componentsProps","hideTabs","className"],_xe=ge.forwardRef(function(t,n){const r=Y5(t,"MuiStaticDateTimePicker"),{displayStaticWrapperAs:l="mobile",ToolbarComponent:i=Z5,components:o,componentsProps:a,hideTabs:s=l==="desktop",className:u}=r,c=tr(r,wxe),{pickerProps:d,inputProps:f,wrapperProps:p}=ys(r,X5),h=J5(r)!==null,g=ge.useMemo(()=>Yt({Tabs:Qb},o),[o]),b=Yt({},f,c,{ref:n,validationError:h,components:g,componentsProps:a});return Te.jsx(Jb,Yt({displayStaticWrapperAs:l,components:g,componentsProps:a,className:u},p,{children:Te.jsx(vs,Yt({},d,{toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:i,DateInputProps:b,components:g,componentsProps:a,hideTabs:s},c))}))}),Txe=["displayStaticWrapperAs","onChange","ToolbarComponent","value","components","componentsProps","className"],Sxe=ge.forwardRef(function(t,n){const r=e4(t,"MuiStaticTimePicker"),{displayStaticWrapperAs:l="mobile",ToolbarComponent:i=n4,components:o,componentsProps:a,className:s}=r,u=tr(r,Txe),c=Q5(r)!==null,{pickerProps:d,inputProps:f,wrapperProps:p}=ys(r,t4),h=Yt({},f,u,{ref:n,validationError:c,components:o,componentsProps:a});return Te.jsx(Jb,Yt({displayStaticWrapperAs:l,components:o,componentsProps:a,className:s},p,{children:Te.jsx(vs,Yt({},d,{toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:i,DateInputProps:h,components:o,componentsProps:a},u))}))}),kxe=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],Cxe=ge.forwardRef(function(t,n){const r=Tr({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:l="@media (pointer: fine)",DialogProps:i,PopperProps:o,TransitionComponent:a}=r,s=tr(r,kxe);return vb(l,{defaultMatches:!0})?Te.jsx(iq,Yt({ref:n,PopperProps:o,TransitionComponent:a},s)):Te.jsx(lq,Yt({ref:n,DialogProps:i},s))});/** @license MUI X v5.0.20 + */var R5=Symbol.for("react.element"),L5=Symbol.for("react.portal"),Bb=Symbol.for("react.fragment"),Wb=Symbol.for("react.strict_mode"),qb=Symbol.for("react.profiler"),Ub=Symbol.for("react.provider"),Hb=Symbol.for("react.context"),jve=Symbol.for("react.server_context"),Vb=Symbol.for("react.forward_ref"),Gb=Symbol.for("react.suspense"),Yb=Symbol.for("react.suspense_list"),Xb=Symbol.for("react.memo"),Kb=Symbol.for("react.lazy"),zve=Symbol.for("react.offscreen"),CW;CW=Symbol.for("react.module.reference");function Ui(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case R5:switch(e=e.type,e){case Bb:case qb:case Wb:case Gb:case Yb:return e;default:switch(e=e&&e.$$typeof,e){case jve:case Hb:case Vb:case Kb:case Xb:case Ub:return e;default:return t}}case L5:return t}}}Lr.ContextConsumer=Hb;Lr.ContextProvider=Ub;Lr.Element=R5;Lr.ForwardRef=Vb;Lr.Fragment=Bb;Lr.Lazy=Kb;Lr.Memo=Xb;Lr.Portal=L5;Lr.Profiler=qb;Lr.StrictMode=Wb;Lr.Suspense=Gb;Lr.SuspenseList=Yb;Lr.isAsyncMode=function(){return!1};Lr.isConcurrentMode=function(){return!1};Lr.isContextConsumer=function(e){return Ui(e)===Hb};Lr.isContextProvider=function(e){return Ui(e)===Ub};Lr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===R5};Lr.isForwardRef=function(e){return Ui(e)===Vb};Lr.isFragment=function(e){return Ui(e)===Bb};Lr.isLazy=function(e){return Ui(e)===Kb};Lr.isMemo=function(e){return Ui(e)===Xb};Lr.isPortal=function(e){return Ui(e)===L5};Lr.isProfiler=function(e){return Ui(e)===qb};Lr.isStrictMode=function(e){return Ui(e)===Wb};Lr.isSuspense=function(e){return Ui(e)===Gb};Lr.isSuspenseList=function(e){return Ui(e)===Yb};Lr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Bb||e===qb||e===Wb||e===Gb||e===Yb||e===zve||typeof e=="object"&&e!==null&&(e.$$typeof===Kb||e.$$typeof===Xb||e.$$typeof===Ub||e.$$typeof===Hb||e.$$typeof===Vb||e.$$typeof===CW||e.getModuleId!==void 0)};Lr.typeOf=Ui;kW.exports=Lr;var Bve=kW.exports;const I5=typeof window<"u"?ge.useLayoutEffect:ge.useEffect;function Wve({controlled:e,default:t,name:n,state:r="value"}){const{current:l}=ge.useRef(e!==void 0),[i,o]=ge.useState(t),a=l?e:i,s=ge.useCallback(u=>{l||o(u)},[]);return[a,s]}function qve(e,t,n=void 0){const r={};return Object.keys(e).forEach(l=>{r[l]=e[l].reduce((i,o)=>{if(o){const a=t(o);a!==""&&i.push(a),n&&n[o]&&i.push(n[o])}return i},[]).join(" ")}),r}const Mm=36,xg=2,$5=320,Uve=358;function MW(e){return gn("MuiPickersDay",e)}const Ph=fn("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),Hve=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today"],Vve=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:l,disabled:i,outsideCurrentMonth:o,showDaysOutsideCurrentMonth:a,classes:s}=e;return vn({root:["root",t&&"selected",i&&"disabled",!n&&"dayWithMargin",!r&&l&&"today",o&&a&&"dayOutsideMonth",o&&!a&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},MW,s)},PW=({theme:e,ownerState:t})=>Yt({},e.typography.caption,{width:Mm,height:Mm,borderRadius:"50%",padding:0,backgroundColor:e.palette.background.paper,color:e.palette.text.primary,"&:hover":{backgroundColor:ar(e.palette.action.active,e.palette.action.hoverOpacity)},"&:focus":{backgroundColor:ar(e.palette.action.active,e.palette.action.hoverOpacity),[`&.${Ph.selected}`]:{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${Ph.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium,transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),"&:hover":{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${Ph.disabled}`]:{color:e.palette.text.disabled}},!t.disableMargin&&{margin:`0 ${xg}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:e.palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${Ph.selected})`]:{border:`1px solid ${e.palette.text.secondary}`}}),OW=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},Gve=Dt(Nl,{name:"MuiPickersDay",slot:"Root",overridesResolver:OW})(PW),Yve=Dt("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:OW})(({theme:e,ownerState:t})=>Yt({},PW({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),V_=()=>{},Xve=ge.forwardRef(function(t,n){const r=Tr({props:t,name:"MuiPickersDay"}),{autoFocus:l=!1,className:i,day:o,disabled:a=!1,disableHighlightToday:s=!1,disableMargin:u=!1,isAnimating:c,onClick:d,onDaySelect:f,onFocus:p=V_,onBlur:h=V_,onKeyDown:g=V_,onMouseDown:b,outsideCurrentMonth:v,selected:m=!1,showDaysOutsideCurrentMonth:y=!1,children:x,today:_=!1}=r,w=tr(r,Hve),S=Yt({},r,{autoFocus:l,disabled:a,disableHighlightToday:s,disableMargin:u,selected:m,showDaysOutsideCurrentMonth:y,today:_}),k=Vve(S),C=Hr(),T=ge.useRef(null),M=Er(T,n);I5(()=>{l&&!a&&!c&&!v&&T.current.focus()},[l,a,c,v]);const O=P=>{b&&b(P),v&&P.preventDefault()},D=P=>{a||f(o,"finish"),v&&P.currentTarget.focus(),d&&d(P)};return v&&!y?Te.jsx(Yve,{className:xa(k.root,k.hiddenDaySpacingFiller,i),ownerState:S,role:w.role}):Te.jsx(Gve,Yt({className:xa(k.root,i),ownerState:S,ref:M,centerRipple:!0,disabled:a,tabIndex:m?0:-1,onKeyDown:P=>g(P,o),onFocus:P=>p(P,o),onBlur:P=>h(P,o),onClick:D,onMouseDown:O},w,{children:x||C.format(o,"dayOfMonth")}))}),Kve=(e,t)=>e.autoFocus===t.autoFocus&&e.isAnimating===t.isAnimating&&e.today===t.today&&e.disabled===t.disabled&&e.selected===t.selected&&e.disableMargin===t.disableMargin&&e.showDaysOutsideCurrentMonth===t.showDaysOutsideCurrentMonth&&e.disableHighlightToday===t.disableHighlightToday&&e.className===t.className&&e.sx===t.sx&&e.outsideCurrentMonth===t.outsideCurrentMonth&&e.onFocus===t.onFocus&&e.onBlur===t.onBlur&&e.onDaySelect===t.onDaySelect,AW=ge.memo(Xve,Kve),Zve=e=>gn("PrivatePickersSlideTransition",e),to=fn("PrivatePickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),Qve=["children","className","reduceAnimations","slideDirection","transKey"],Jve=e=>{const{classes:t}=e;return vn({root:["root"]},Zve,t)},DW=350,eye=Dt(cg,{name:"PrivatePickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${to["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${to["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${to.slideEnterActive}`]:t.slideEnterActive},{[`.${to.slideExit}`]:t.slideExit},{[`.${to["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${to["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:DW,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${to["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${to["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${to.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${to.slideExit}`]:{transform:"translate(0%)"},[`& .${to["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${to["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}}),tye=e=>{const{children:t,className:n,reduceAnimations:r,slideDirection:l,transKey:i}=e,o=tr(e,Qve),a=Jve(e);if(r)return Te.jsx("div",{className:xa(a.root,n),children:t});const s={exit:to.slideExit,enterActive:to.slideEnterActive,enter:to[`slideEnter-${l}`],exitActive:to[`slideExitActiveLeft-${l}`]};return Te.jsx(eye,{className:xa(a.root,n),childFactory:u=>ge.cloneElement(u,{classNames:s}),role:"presentation",children:Te.jsx(e5,Yt({mountOnEnter:!0,unmountOnExit:!0,timeout:DW,classNames:s},o,{children:t}),i)})},nye=e=>gn("MuiDayPicker",e),rye=fn("MuiDayPicker",["header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer"]),aye=e=>{const{classes:t}=e;return vn({header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"]},nye,t)},oye=e=>e.charAt(0).toUpperCase(),EW=(Mm+xg*2)*6,iye=Dt("div",{name:"MuiDayPicker",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),lye=Dt(mr,{name:"MuiDayPicker",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.secondary})),sye=Dt("div",{name:"MuiDayPicker",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:EW}),uye=Dt(tye,{name:"MuiDayPicker",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:EW}),cye=Dt("div",{name:"MuiDayPicker",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),dye=Dt("div",{name:"MuiDayPicker",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${xg}px 0`,display:"flex",justifyContent:"center"});function fye(e){const t=bg(),n=Hr(),r=Tr({props:e,name:"MuiDayPicker"}),l=aye(r),{onFocusedDayChange:i,className:o,currentMonth:a,selectedDays:s,disabled:u,disableHighlightToday:c,focusedDay:d,isMonthSwitchingAnimating:f,loading:p,onSelectedDaysChange:h,onMonthSwitchingAnimationEnd:g,readOnly:b,reduceAnimations:v,renderDay:m,renderLoading:y=()=>Te.jsx("span",{children:"..."}),showDaysOutsideCurrentMonth:x,slideDirection:_,TransitionProps:w,disablePast:S,disableFuture:k,minDate:C,maxDate:T,shouldDisableDate:M,dayOfWeekFormatter:O=oye,hasFocus:D,onFocusedViewChange:P,gridLabelId:E}=r,I=TW({shouldDisableDate:M,minDate:C,maxDate:T,disablePast:S,disableFuture:k}),[A,F]=ge.useState(()=>d||t),j=ge.useCallback(U=>{P&&P(U)},[P]),B=ge.useCallback((U,Q="finish")=>{b||h(U,Q)},[h,b]),z=ge.useCallback(U=>{I(U)||(i(U),F(U),j(!0))},[I,i,j]),N=pi();function R(U,Q){switch(U.key){case"ArrowUp":z(n.addDays(Q,-7)),U.preventDefault();break;case"ArrowDown":z(n.addDays(Q,7)),U.preventDefault();break;case"ArrowLeft":{const V=n.addDays(Q,N.direction==="ltr"?-1:1),X=N.direction==="ltr"?n.getPreviousMonth(Q):n.getNextMonth(Q),K=Kh({utils:n,date:V,minDate:N.direction==="ltr"?n.startOfMonth(X):V,maxDate:N.direction==="ltr"?V:n.endOfMonth(X),isDateDisabled:I});z(K||V),U.preventDefault();break}case"ArrowRight":{const V=n.addDays(Q,N.direction==="ltr"?1:-1),X=N.direction==="ltr"?n.getNextMonth(Q):n.getPreviousMonth(Q),K=Kh({utils:n,date:V,minDate:N.direction==="ltr"?V:n.startOfMonth(X),maxDate:N.direction==="ltr"?n.endOfMonth(X):V,isDateDisabled:I});z(K||V),U.preventDefault();break}case"Home":z(n.startOfWeek(Q)),U.preventDefault();break;case"End":z(n.endOfWeek(Q)),U.preventDefault();break;case"PageUp":z(n.getNextMonth(Q)),U.preventDefault();break;case"PageDown":z(n.getPreviousMonth(Q)),U.preventDefault();break}}function q(U,Q){z(Q)}function Y(U,Q){D&&n.isSameDay(A,Q)&&j(!1)}const L=n.getMonth(a),W=s.filter(U=>!!U).map(U=>n.startOfDay(U)),H=L,G=ge.useMemo(()=>ge.createRef(),[H]),te=n.startOfWeek(t),ee=ge.useMemo(()=>{const U=n.startOfMonth(a),Q=n.endOfMonth(a);return I(A)||n.isAfterDay(A,Q)||n.isBeforeDay(A,U)?Kh({utils:n,date:A,minDate:U,maxDate:Q,disablePast:S,disableFuture:k,isDateDisabled:I}):A},[a,k,S,A,I,n]);return Te.jsxs("div",{role:"grid","aria-labelledby":E,children:[Te.jsx(iye,{role:"row",className:l.header,children:n.getWeekdays().map((U,Q)=>{var V;return Te.jsx(lye,{variant:"caption",role:"columnheader","aria-label":n.format(n.addDays(te,Q),"weekday"),className:l.weekDayLabel,children:(V=O==null?void 0:O(U))!=null?V:U},U+Q.toString())})}),p?Te.jsx(sye,{className:l.loadingContainer,children:y()}):Te.jsx(uye,Yt({transKey:H,onExited:g,reduceAnimations:v,slideDirection:_,className:xa(o,l.slideTransition)},w,{nodeRef:G,children:Te.jsx(cye,{ref:G,role:"rowgroup",className:l.monthContainer,children:n.getWeekArray(a).map(U=>Te.jsx(dye,{role:"row",className:l.weekContainer,children:U.map(Q=>{const V=ee!==null&&n.isSameDay(Q,ee),X=W.some(ae=>n.isSameDay(ae,Q)),K=n.isSameDay(Q,t),ne={key:Q==null?void 0:Q.toString(),day:Q,isAnimating:f,disabled:u||I(Q),autoFocus:D&&V,today:K,outsideCurrentMonth:n.getMonth(Q)!==L,selected:X,disableHighlightToday:c,showDaysOutsideCurrentMonth:x,onKeyDown:R,onFocus:q,onBlur:Y,onDaySelect:B,tabIndex:V?0:-1,role:"gridcell","aria-selected":X};return K&&(ne["aria-current"]="date"),m?m(Q,W,ne):ge.createElement(AW,Yt({},ne,{key:ne.key}))})},`week-${U[0]}`))})}))]})}function N5({onChange:e,onViewChange:t,openTo:n,view:r,views:l}){var i,o;const[a,s]=ou({name:"Picker",state:"view",controlled:r,default:n&&$u(l,n)?n:l[0]}),u=(i=l[l.indexOf(a)-1])!=null?i:null,c=(o=l[l.indexOf(a)+1])!=null?o:null,d=ge.useCallback(h=>{s(h),t&&t(h)},[s,t]),f=ge.useCallback(()=>{c&&d(c)},[c,d]);return{handleChangeAndOpenNext:ge.useCallback((h,g)=>{const b=g==="finish";e(h,b&&c?"partial":g),b&&f()},[c,e,f]),nextView:c,previousView:u,openNext:f,openView:a,setOpenView:d}}const pye=kr(Te.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),hye=kr(Te.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),mye=kr(Te.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),RW=kr(Te.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),LW=kr(Te.jsxs(ge.Fragment,{children:[Te.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),Te.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),gye=kr(Te.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),vye=kr(Te.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Pen"),yye=kr(Te.jsxs(ge.Fragment,{children:[Te.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),Te.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");function bye(e){return gn("MuiPickersArrowSwitcher",e)}fn("MuiPickersArrowSwitcher",["root","spacer","button"]);const xye=["children","className","components","componentsProps","isLeftDisabled","isLeftHidden","isRightDisabled","isRightHidden","leftArrowButtonText","onLeftClick","onRightClick","rightArrowButtonText"],wye=e=>{const{classes:t}=e;return vn({root:["root"],spacer:["spacer"],button:["button"]},bye,t)},_ye=Dt("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),Tye=Dt("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),GD=Dt(Fo,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>Yt({},e.hidden&&{visibility:"hidden"})),IW=ge.forwardRef(function(t,n){const r=Tr({props:t,name:"MuiPickersArrowSwitcher"}),{children:l,className:i,components:o,componentsProps:a,isLeftDisabled:s,isLeftHidden:u,isRightDisabled:c,isRightHidden:d,leftArrowButtonText:f,onLeftClick:p,onRightClick:h,rightArrowButtonText:g}=r,b=tr(r,xye),m=pi().direction==="rtl",y=(a==null?void 0:a.leftArrowButton)||{},x=(o==null?void 0:o.LeftArrowIcon)||hye,_=(a==null?void 0:a.rightArrowButton)||{},w=(o==null?void 0:o.RightArrowIcon)||mye,S=r,k=wye(S);return Te.jsxs(_ye,Yt({ref:n,className:xa(k.root,i),ownerState:S},b,{children:[Te.jsx(GD,Yt({as:o==null?void 0:o.LeftArrowButton,size:"small","aria-label":f,title:f,disabled:s,edge:"end",onClick:p},y,{className:xa(k.button,y.className),ownerState:Yt({},S,y,{hidden:u}),children:m?Te.jsx(w,{}):Te.jsx(x,{})})),l?Te.jsx(mr,{variant:"subtitle1",component:"span",children:l}):Te.jsx(Tye,{className:k.spacer,ownerState:S}),Te.jsx(GD,Yt({as:o==null?void 0:o.RightArrowButton,size:"small","aria-label":g,title:g,edge:"start",disabled:c,onClick:h},_,{className:xa(k.button,_.className),ownerState:Yt({},S,_,{hidden:d}),children:m?Te.jsx(x,{}):Te.jsx(w,{})}))]}))}),Sye=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,GS=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,kye=(e,t,n,r)=>{const l=GS(r.getHours(e),t,n);return r.setHours(e,l)},YD=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),$W=(e=!1,t)=>(n,r)=>e?t.isAfter(n,r):YD(n,t)>YD(r,t);function Cye(e,{disableFuture:t,maxDate:n}){const r=Hr();return ge.useMemo(()=>{const l=r.date(),i=r.startOfMonth(t&&r.isBefore(l,n)?l:n);return!r.isAfter(i,e)},[t,n,e,r])}function Mye(e,{disablePast:t,minDate:n}){const r=Hr();return ge.useMemo(()=>{const l=r.date(),i=r.startOfMonth(t&&r.isAfter(l,n)?l:n);return!r.isBefore(i,e)},[t,n,e,r])}function NW(e,t,n){const r=Hr(),l=Sye(e,r),i=ge.useCallback(o=>{const a=e==null?null:kye(e,o,!!t,r);n(a,"partial")},[t,e,n,r]);return{meridiemMode:l,handleMeridiemChange:i}}const FW=e=>()=>{},Pye=e=>gn("MuiPickersCalendarHeader",e),Oye=fn("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),Aye=e=>{const{classes:t}=e;return vn({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Pye,t)},Dye=Dt("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),Eye=Dt("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>Yt({display:"flex",maxHeight:30,overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),Rye=Dt("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),Lye=Dt(Fo,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto"}),Iye=Dt(pye,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e,ownerState:t})=>Yt({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"},t.openView==="year"&&{transform:"rotate(180deg)"})),$ye=FW();function Nye(e){const t=Tr({props:e,name:"MuiPickersCalendarHeader"}),{components:n={},componentsProps:r={},currentMonth:l,disabled:i,disableFuture:o,disablePast:a,getViewSwitchingButtonText:s,leftArrowButtonText:u,maxDate:c,minDate:d,onMonthChange:f,onViewChange:p,openView:h,reduceAnimations:g,rightArrowButtonText:b,views:v,labelId:m}=t;$ye({leftArrowButtonText:u,rightArrowButtonText:b,getViewSwitchingButtonText:s});const y=ul(),x=u??y.previousMonth,_=b??y.nextMonth,w=s??y.calendarViewSwitchingButtonAriaLabel,S=Hr(),k=Aye(t),C=r.switchViewButton||{},T=()=>f(S.getNextMonth(l),"left"),M=()=>f(S.getPreviousMonth(l),"right"),O=Cye(l,{disableFuture:o,maxDate:c}),D=Mye(l,{disablePast:a,minDate:d}),P=()=>{if(!(v.length===1||!p||i))if(v.length===2)p(v.find(I=>I!==h)||v[0]);else{const I=v.indexOf(h)!==0?0:1;p(v[I])}};if(v.length===1&&v[0]==="year")return null;const E=t;return Te.jsxs(Dye,{ownerState:E,className:k.root,children:[Te.jsxs(Eye,{role:"presentation",onClick:P,ownerState:E,"aria-live":"polite",className:k.labelContainer,children:[Te.jsx(SW,{reduceAnimations:g,transKey:S.format(l,"monthAndYear"),children:Te.jsx(Rye,{id:m,ownerState:E,className:k.label,children:S.format(l,"monthAndYear")})}),v.length>1&&!i&&Te.jsx(Lye,Yt({size:"small",as:n.SwitchViewButton,"aria-label":w(h),className:k.switchViewButton},C,{children:Te.jsx(Iye,{as:n.SwitchViewIcon,ownerState:E,className:k.switchViewIcon})}))]}),Te.jsx(Ob,{in:h==="day",children:Te.jsx(IW,{leftArrowButtonText:x,rightArrowButtonText:_,components:n,componentsProps:r,onLeftClick:M,onRightClick:T,isLeftDisabled:D,isRightDisabled:O})})]})}const gs=ge.createContext(null);function Fye(e){return gn("PrivatePickersYear",e)}const Hu=fn("PrivatePickersYear",["root","modeDesktop","modeMobile","yearButton","selected","disabled"]),jye=["autoFocus","className","children","disabled","onClick","onKeyDown","value","tabIndex","onFocus","onBlur"],zye=e=>{const{wrapperVariant:t,disabled:n,selected:r,classes:l}=e,i={root:["root",t&&`mode${Qt(t)}`],yearButton:["yearButton",n&&"disabled",r&&"selected"]};return vn(i,Fye,l)},Bye=Dt("div",{name:"PrivatePickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Hu.modeDesktop}`]:t.modeDesktop},{[`&.${Hu.modeMobile}`]:t.modeMobile}]})(({ownerState:e})=>Yt({flexBasis:"33.3%",display:"flex",alignItems:"center",justifyContent:"center"},(e==null?void 0:e.wrapperVariant)==="desktop"&&{flexBasis:"25%"})),Wye=Dt("button",{name:"PrivatePickersYear",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${Hu.disabled}`]:t.disabled},{[`&.${Hu.selected}`]:t.selected}]})(({theme:e})=>Yt({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:ar(e.palette.action.active,e.palette.action.hoverOpacity)},[`&.${Hu.disabled}`]:{color:e.palette.text.secondary},[`&.${Hu.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),XD=()=>{},qye=ge.forwardRef(function(t,n){const{autoFocus:r,className:l,children:i,disabled:o,onClick:a,onKeyDown:s,value:u,tabIndex:c,onFocus:d=XD,onBlur:f=XD}=t,p=tr(t,jye),h=ge.useRef(null),g=Er(h,n),b=ge.useContext(gs),v=Yt({},t,{wrapperVariant:b}),m=zye(v);return ge.useEffect(()=>{r&&h.current.focus()},[r]),Te.jsx(Bye,{className:xa(m.root,l),ownerState:v,children:Te.jsx(Wye,Yt({ref:g,disabled:o,type:"button",tabIndex:o?-1:c,onClick:y=>a(y,u),onKeyDown:y=>s(y,u),onFocus:y=>d(y,u),onBlur:y=>f(y,u),className:m.yearButton,ownerState:v},p,{children:i}))})});function jW(e){return gn("MuiYearPicker",e)}const Uye=fn("MuiYearPicker",["root"]),Hye=e=>{const{classes:t}=e;return vn({root:["root"]},jW,t)};function Vye(e,t){const n=Hr(),r=yg(),l=Tr({props:e,name:t});return Yt({disablePast:!1,disableFuture:!1},l,{minDate:zi(n,l.minDate,r.minDate),maxDate:zi(n,l.maxDate,r.maxDate)})}const Gye=Dt("div",{name:"MuiYearPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",maxHeight:"304px"}),zW=ge.forwardRef(function(t,n){const r=bg(),l=pi(),i=Hr(),o=Vye(t,"MuiYearPicker"),{autoFocus:a,className:s,date:u,disabled:c,disableFuture:d,disablePast:f,maxDate:p,minDate:h,onChange:g,readOnly:b,shouldDisableYear:v,disableHighlightToday:m,onYearFocus:y,hasFocus:x,onFocusedViewChange:_}=o,w=o,S=Hye(w),k=ge.useMemo(()=>u??i.startOfYear(r),[r,i,u]),C=ge.useMemo(()=>u!=null?i.getYear(u):m?null:i.getYear(r),[r,u,i,m]),T=ge.useContext(gs),M=ge.useRef(null),[O,D]=ge.useState(()=>C||i.getYear(r)),[P,E]=Wve({name:"YearPicker",state:"hasFocus",controlled:x,default:a}),I=ge.useCallback(W=>{E(W),_&&_(W)},[E,_]),A=ge.useCallback(W=>!!(f&&i.isBeforeYear(W,r)||d&&i.isAfterYear(W,r)||h&&i.isBeforeYear(W,h)||p&&i.isAfterYear(W,p)||v&&v(W)),[d,f,p,h,r,v,i]),F=(W,H,G="finish")=>{if(b)return;const te=i.setYear(k,H);g(te,G)},j=ge.useCallback(W=>{A(i.setYear(k,W))||(D(W),I(!0),y==null||y(W))},[A,i,k,I,y]);ge.useEffect(()=>{D(W=>C!==null&&W!==C?C:W)},[C]);const B=T==="desktop"?4:3,z=ge.useCallback((W,H)=>{switch(W.key){case"ArrowUp":j(H-B),W.preventDefault();break;case"ArrowDown":j(H+B),W.preventDefault();break;case"ArrowLeft":j(H+(l.direction==="ltr"?-1:1)),W.preventDefault();break;case"ArrowRight":j(H+(l.direction==="ltr"?1:-1)),W.preventDefault();break}},[j,l.direction,B]),N=ge.useCallback((W,H)=>{j(H)},[j]),R=ge.useCallback((W,H)=>{O===H&&I(!1)},[O,I]),q=i.getYear(r),Y=ge.useRef(null),L=Er(n,Y);return ge.useEffect(()=>{if(a||Y.current===null)return;const W=Y.current.querySelector('[tabindex="0"]');if(!W)return;const H=W.offsetHeight,G=W.offsetTop,te=Y.current.clientHeight,ee=Y.current.scrollTop,U=G+H;H>te||G{const H=i.getYear(W),G=H===C;return Te.jsx(qye,{selected:G,value:H,onClick:F,onKeyDown:z,autoFocus:P&&H===O,ref:G?M:void 0,disabled:c||A(W),tabIndex:H===O?0:-1,onFocus:N,onBlur:R,"aria-current":q===H?"date":void 0,children:i.format(W,"year")},i.format(W,"year"))})})}),F5=Dt("div")({overflowX:"hidden",width:$5,maxHeight:Uve,display:"flex",flexDirection:"column",margin:"0 auto"}),Yye=typeof navigator<"u"&&/(android)/i.test(navigator.userAgent),BW=e=>gn("MuiCalendarPicker",e),Xye=fn("MuiCalendarPicker",["root","viewTransitionContainer"]),Kye=["autoFocus","onViewChange","date","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","classes"],Zye=e=>{const{classes:t}=e;return vn({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},BW,t)};function Qye(e,t){const n=Hr(),r=yg(),l=Tr({props:e,name:t});return Yt({loading:!1,disablePast:!1,disableFuture:!1,openTo:"day",views:["year","day"],reduceAnimations:Yye,renderLoading:()=>Te.jsx("span",{children:"..."})},l,{minDate:zi(n,l.minDate,r.minDate),maxDate:zi(n,l.maxDate,r.maxDate)})}const Jye=Dt(F5,{name:"MuiCalendarPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),e1e=Dt(SW,{name:"MuiCalendarPicker",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),WW=ge.forwardRef(function(t,n){const r=Hr(),l=ls(),i=Qye(t,"MuiCalendarPicker"),{autoFocus:o,onViewChange:a,date:s,disableFuture:u,disablePast:c,defaultCalendarMonth:d,onChange:f,onYearChange:p,onMonthChange:h,reduceAnimations:g,shouldDisableDate:b,shouldDisableMonth:v,shouldDisableYear:m,view:y,views:x,openTo:_,className:w,disabled:S,readOnly:k,minDate:C,maxDate:T,disableHighlightToday:M,focusedView:O,onFocusedViewChange:D}=i,P=tr(i,Kye),{openView:E,setOpenView:I,openNext:A}=N5({view:y,views:x,openTo:_,onChange:f,onViewChange:a}),{calendarState:F,changeFocusedDay:j,changeMonth:B,handleChangeMonth:z,isDateDisabled:N,onMonthSwitchingAnimationEnd:R}=Lve({date:s,defaultCalendarMonth:d,reduceAnimations:g,onMonthChange:h,minDate:C,maxDate:T,shouldDisableDate:b,disablePast:c,disableFuture:u}),q=ge.useCallback((ie,se)=>{const pe=r.startOfMonth(ie),ke=r.endOfMonth(ie),Ce=N(ie)?Kh({utils:r,date:ie,minDate:r.isBefore(C,pe)?pe:C,maxDate:r.isAfter(T,ke)?ke:T,disablePast:c,disableFuture:u,isDateDisabled:N}):ie;Ce?(f(Ce,se),h==null||h(pe)):(A(),B(pe)),j(Ce,!0)},[j,u,c,N,T,C,f,h,B,A,r]),Y=ge.useCallback((ie,se)=>{const pe=r.startOfYear(ie),ke=r.endOfYear(ie),Ce=N(ie)?Kh({utils:r,date:ie,minDate:r.isBefore(C,pe)?pe:C,maxDate:r.isAfter(T,ke)?ke:T,disablePast:c,disableFuture:u,isDateDisabled:N}):ie;Ce?(f(Ce,se),p==null||p(Ce)):(A(),B(pe)),j(Ce,!0)},[j,u,c,N,T,C,f,p,A,r,B]),L=ge.useCallback((ie,se)=>f(s&&ie?r.mergeDateAndTime(ie,s):ie,se),[r,s,f]);ge.useEffect(()=>{s&&B(s)},[s]);const W=i,H=Zye(W),G={disablePast:c,disableFuture:u,maxDate:T,minDate:C},te=S&&s||C,ee=S&&s||T,U={disableHighlightToday:M,readOnly:k,disabled:S},Q=`${l}-grid-label`,[V,X]=ou({name:"DayPicker",state:"focusedView",controlled:O,default:o?E:null}),K=V!==null,ne=ho(ie=>se=>{if(D){D(ie)(se);return}X(se?ie:pe=>pe===ie?null:pe)}),ae=ge.useRef(E);return ge.useEffect(()=>{ae.current!==E&&(ae.current=E,ne(E)(!0))},[E,ne]),Te.jsxs(Jye,{ref:n,className:xa(H.root,w),ownerState:W,children:[Te.jsx(Nye,Yt({},P,{views:x,openView:E,currentMonth:F.currentMonth,onViewChange:I,onMonthChange:(ie,se)=>z({newMonth:ie,direction:se}),minDate:te,maxDate:ee,disabled:S,disablePast:c,disableFuture:u,reduceAnimations:g,labelId:Q})),Te.jsx(e1e,{reduceAnimations:g,className:H.viewTransitionContainer,transKey:E,ownerState:W,children:Te.jsxs("div",{children:[E==="year"&&Te.jsx(zW,Yt({},P,G,U,{autoFocus:o,date:s,onChange:Y,shouldDisableYear:m,hasFocus:K,onFocusedViewChange:ne("year")})),E==="month"&&Te.jsx(_W,Yt({},G,U,{autoFocus:o,hasFocus:K,className:w,date:s,onChange:q,shouldDisableMonth:v,onFocusedViewChange:ne("month")})),E==="day"&&Te.jsx(fye,Yt({},P,F,G,U,{autoFocus:o,onMonthSwitchingAnimationEnd:R,onFocusedDayChange:j,reduceAnimations:g,selectedDays:[s],onSelectedDaysChange:L,shouldDisableDate:b,hasFocus:K,onFocusedViewChange:ne("day"),gridLabelId:Q}))]})})]})}),qW=e=>gn("MuiCalendarPickerSkeleton",e),t1e=fn("MuiCalendarPickerSkeleton",["root","week","daySkeleton"]),n1e=["className"],r1e=e=>{const{classes:t}=e;return vn({root:["root"],week:["week"],daySkeleton:["daySkeleton"]},qW,t)},a1e=Dt("div",{name:"MuiCalendarPickerSkeleton",slot:"Root",overridesResolver:(e,t)=>t.root})({alignSelf:"start"}),o1e=Dt("div",{name:"MuiCalendarPickerSkeleton",slot:"Week",overridesResolver:(e,t)=>t.week})({margin:`${xg}px 0`,display:"flex",justifyContent:"center"}),UW=Dt(tde,{name:"MuiCalendarPickerSkeleton",slot:"DaySkeleton",overridesResolver:(e,t)=>t.daySkeleton})(({ownerState:e})=>Yt({margin:`0 ${xg}px`},e.day===0&&{visibility:"hidden"}));UW.propTypes={ownerState:le.shape({day:le.number.isRequired}).isRequired};const i1e=[[0,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,0,0,0]];function l1e(e){const t=Tr({props:e,name:"MuiCalendarPickerSkeleton"}),{className:n}=t,r=tr(t,n1e),l=r1e(r);return Te.jsx(a1e,Yt({className:xa(l.root,n)},r,{children:i1e.map((i,o)=>Te.jsx(o1e,{className:l.week,children:i.map((a,s)=>Te.jsx(UW,{variant:"circular",width:Mm,height:Mm,className:l.daySkeleton,ownerState:{day:a}},s))},o))}))}const rf=220,Ks=36,Pm={x:rf/2,y:rf/2},HW={x:Pm.x,y:0},s1e=HW.x-Pm.x,u1e=HW.y-Pm.y,c1e=e=>e*(180/Math.PI),VW=(e,t,n)=>{const r=t-Pm.x,l=n-Pm.y,i=Math.atan2(s1e,u1e)-Math.atan2(r,l);let o=c1e(i);o=Math.round(o/e)*e,o%=360;const a=Math.floor(o/e)||0,s=r**2+l**2,u=Math.sqrt(s);return{value:a,distance:u}},d1e=(e,t,n=1)=>{const r=n*6;let{value:l}=VW(r,e,t);return l=l*n%60,l},f1e=(e,t,n)=>{const{value:r,distance:l}=VW(30,e,t);let i=r||12;return n?i%=12:l{const{classes:t}=e;return vn({root:["root"],thumb:["thumb"]},p1e,t)},v1e=Dt("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>Yt({width:2,backgroundColor:e.palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),y1e=Dt("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>Yt({width:4,height:4,backgroundColor:e.palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Ks/2}px)`,border:`${(Ks-4)/2}px solid ${e.palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:e.palette.primary.main}));function b1e(e){const t=Tr({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:l,value:i}=t,o=tr(t,m1e),a=ge.useRef(l);ge.useEffect(()=>{a.current=l},[l]);const s=Yt({},t,{shouldAnimate:a.current!==l}),u=g1e(s),c=()=>{let f=360/(l==="hours"?12:60)*i;return l==="hours"&&i>12&&(f-=360),{height:Math.round((r?.26:.4)*rf),transform:`rotateZ(${f}deg)`}};return Te.jsx(v1e,Yt({style:c(),className:xa(n,u.root),ownerState:s},o,{children:Te.jsx(y1e,{ownerState:s,className:u.thumb})}))}function x1e(e){return gn("MuiClock",e)}const w1e=fn("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton"]),_1e=e=>{const{classes:t}=e;return qve({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"]},x1e,t)},T1e=Dt("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),S1e=Dt("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),k1e=Dt("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),C1e=Dt("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>Yt({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),M1e=Dt("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:e.palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),P1e=Dt(Fo,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>Yt({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,left:8},t.meridiemMode==="am"&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}})),O1e=Dt(Fo,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>Yt({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,right:8},t.meridiemMode==="pm"&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}}));function A1e(e){const t=Tr({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:l,children:i,date:o,getClockLabelText:a,handleMeridiemChange:s,isTimeDisabled:u,meridiemMode:c,minutesStep:d=1,onChange:f,selectedId:p,type:h,value:g,disabled:b,readOnly:v,className:m}=t,y=t,x=Hr(),_=ge.useContext(gs),w=ge.useRef(!1),S=_1e(y),k=u(g,h),C=!n&&h==="hours"&&(g<1||g>12),T=(B,z)=>{b||v||u(B,h)||f(B,z)},M=(B,z)=>{let{offsetX:N,offsetY:R}=B;if(N===void 0){const Y=B.target.getBoundingClientRect();N=B.changedTouches[0].clientX-Y.left,R=B.changedTouches[0].clientY-Y.top}const q=h==="seconds"||h==="minutes"?d1e(N,R,d):f1e(N,R,!!n);T(q,z)},O=B=>{w.current=!0,M(B,"shallow")},D=B=>{w.current&&(M(B,"finish"),w.current=!1)},P=B=>{B.buttons>0&&M(B.nativeEvent,"shallow")},E=B=>{w.current&&(w.current=!1),M(B.nativeEvent,"finish")},I=ge.useMemo(()=>h==="hours"?!0:g%5===0,[h,g]),A=h==="minutes"?d:1,F=ge.useRef(null);I5(()=>{l&&F.current.focus()},[l]);const j=B=>{if(!w.current)switch(B.key){case"Home":T(0,"partial"),B.preventDefault();break;case"End":T(h==="minutes"?59:23,"partial"),B.preventDefault();break;case"ArrowUp":T(g+A,"partial"),B.preventDefault();break;case"ArrowDown":T(g-A,"partial"),B.preventDefault();break}};return Te.jsxs(T1e,{className:xa(m,S.root),children:[Te.jsxs(S1e,{className:S.clock,children:[Te.jsx(C1e,{onTouchMove:O,onTouchEnd:D,onMouseUp:E,onMouseMove:P,ownerState:{disabled:b},className:S.squareMask}),!k&&Te.jsxs(ge.Fragment,{children:[Te.jsx(M1e,{className:S.pin}),o&&Te.jsx(b1e,{type:h,value:g,isInner:C,hasSelected:I})]}),Te.jsx(k1e,{"aria-activedescendant":p,"aria-label":a(h,o,x),ref:F,role:"listbox",onKeyDown:j,tabIndex:0,className:S.wrapper,children:i})]}),n&&(_==="desktop"||r)&&Te.jsxs(ge.Fragment,{children:[Te.jsx(P1e,{onClick:v?void 0:()=>s("am"),disabled:b||c===null,ownerState:y,className:S.amButton,children:Te.jsx(mr,{variant:"caption",children:"AM"})}),Te.jsx(O1e,{disabled:b||c===null,onClick:v?void 0:()=>s("pm"),ownerState:y,className:S.pmButton,children:Te.jsx(mr,{variant:"caption",children:"PM"})})]})]})}function D1e(e){return gn("MuiClockNumber",e)}const Oh=fn("MuiClockNumber",["root","selected","disabled"]),E1e=["className","disabled","index","inner","label","selected"],R1e=e=>{const{classes:t,selected:n,disabled:r}=e;return vn({root:["root",n&&"selected",r&&"disabled"]},D1e,t)},L1e=Dt("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Oh.disabled}`]:t.disabled},{[`&.${Oh.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>Yt({height:Ks,width:Ks,position:"absolute",left:`calc((100% - ${Ks}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:e.palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:e.palette.background.paper},[`&.${Oh.selected}`]:{color:e.palette.primary.contrastText},[`&.${Oh.disabled}`]:{pointerEvents:"none",color:e.palette.text.disabled}},t.inner&&Yt({},e.typography.body2,{color:e.palette.text.secondary})));function GW(e){const t=Tr({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:l,inner:i,label:o,selected:a}=t,s=tr(t,E1e),u=t,c=R1e(u),d=l%12/12*Math.PI*2-Math.PI/2,f=(rf-Ks-2)/2*(i?.65:1),p=Math.round(Math.cos(d)*f),h=Math.round(Math.sin(d)*f);return Te.jsx(L1e,Yt({className:xa(n,c.root),"aria-disabled":r?!0:void 0,"aria-selected":a?!0:void 0,role:"option",style:{transform:`translate(${p}px, ${h+(rf-Ks)/2}px`},ownerState:u},s,{children:o}))}const I1e=({ampm:e,date:t,getClockNumberText:n,isDisabled:r,selectedId:l,utils:i})=>{const o=t?i.getHours(t):null,a=[],s=e?1:0,u=e?12:23,c=d=>o===null?!1:e?d===12?o===12||o===0:o===d||o-12===d:o===d;for(let d=s;d<=u;d+=1){let f=d.toString();d===0&&(f="00");const p=!e&&(d===0||d>12);f=i.formatNumber(f);const h=c(d);a.push(Te.jsx(GW,{id:h?l:void 0,index:d,inner:p,selected:h,disabled:r(d),label:f,"aria-label":n(f)},d))}return a},KD=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:l})=>{const i=e.formatNumber;return[[5,i("05")],[10,i("10")],[15,i("15")],[20,i("20")],[25,i("25")],[30,i("30")],[35,i("35")],[40,i("40")],[45,i("45")],[50,i("50")],[55,i("55")],[0,i("00")]].map(([o,a],s)=>{const u=o===t;return Te.jsx(GW,{label:a,id:u?l:void 0,index:s+1,inner:!1,disabled:n(o),selected:u,"aria-label":r(a)},o)})};function YW(e){return gn("MuiClockPicker",e)}const $1e=fn("MuiClockPicker",["root","arrowSwitcher"]),N1e=e=>{const{classes:t}=e;return vn({root:["root"],arrowSwitcher:["arrowSwitcher"]},YW,t)},F1e=Dt(F5,{name:"MuiClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),j1e=Dt(IW,{name:"MuiClockPicker",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),z1e=FW(),XW=ge.forwardRef(function(t,n){const r=Tr({props:t,name:"MuiClockPicker"}),{ampm:l=!1,ampmInClock:i=!1,autoFocus:o,components:a,componentsProps:s,date:u,disableIgnoringDatePartForTimeValidation:c,getClockLabelText:d,getHoursClockNumberText:f,getMinutesClockNumberText:p,getSecondsClockNumberText:h,leftArrowButtonText:g,maxTime:b,minTime:v,minutesStep:m=1,rightArrowButtonText:y,shouldDisableTime:x,showViewSwitcher:_,onChange:w,view:S,views:k=["hours","minutes"],openTo:C,onViewChange:T,className:M,disabled:O,readOnly:D}=r;z1e({leftArrowButtonText:g,rightArrowButtonText:y,getClockLabelText:d,getHoursClockNumberText:f,getMinutesClockNumberText:p,getSecondsClockNumberText:h});const P=ul(),E=g??P.openPreviousView,I=y??P.openNextView,A=d??P.clockLabelText,F=f??P.hoursClockNumberText,j=p??P.minutesClockNumberText,B=h??P.secondsClockNumberText,{openView:z,setOpenView:N,nextView:R,previousView:q,handleChangeAndOpenNext:Y}=N5({view:S,views:k,openTo:C,onViewChange:T,onChange:w}),L=bg(),W=Hr(),H=ge.useMemo(()=>u||W.setSeconds(W.setMinutes(W.setHours(L,0),0),0),[u,L,W]),{meridiemMode:G,handleMeridiemChange:te}=NW(H,l,Y),ee=ge.useCallback((K,ne)=>{const ae=$W(c,W),ie=({start:pe,end:ke})=>!(v&&ae(v,ke)||b&&ae(pe,b)),se=(pe,ke=1)=>pe%ke!==0?!1:x?!x(pe,ne):!0;switch(ne){case"hours":{const pe=GS(K,G,l),ke=W.setHours(H,pe),Ce=W.setSeconds(W.setMinutes(ke,0),0),Oe=W.setSeconds(W.setMinutes(ke,59),59);return!ie({start:Ce,end:Oe})||!se(pe)}case"minutes":{const pe=W.setMinutes(H,K),ke=W.setSeconds(pe,0),Ce=W.setSeconds(pe,59);return!ie({start:ke,end:Ce})||!se(K,m)}case"seconds":{const pe=W.setSeconds(H,K);return!ie({start:pe,end:pe})||!se(K)}default:throw new Error("not supported")}},[l,H,c,b,G,v,m,x,W]),U=ls(),Q=ge.useMemo(()=>{switch(z){case"hours":{const K=(ne,ae)=>{const ie=GS(ne,G,l);Y(W.setHours(H,ie),ae)};return{onChange:K,value:W.getHours(H),children:I1e({date:u,utils:W,ampm:l,onChange:K,getClockNumberText:F,isDisabled:ne=>O||ee(ne,"hours"),selectedId:U})}}case"minutes":{const K=W.getMinutes(H),ne=(ae,ie)=>{Y(W.setMinutes(H,ae),ie)};return{value:K,onChange:ne,children:KD({utils:W,value:K,onChange:ne,getClockNumberText:j,isDisabled:ae=>O||ee(ae,"minutes"),selectedId:U})}}case"seconds":{const K=W.getSeconds(H),ne=(ae,ie)=>{Y(W.setSeconds(H,ae),ie)};return{value:K,onChange:ne,children:KD({utils:W,value:K,onChange:ne,getClockNumberText:B,isDisabled:ae=>O||ee(ae,"seconds"),selectedId:U})}}default:throw new Error("You must provide the type for ClockView")}},[z,W,u,l,F,j,B,G,Y,H,ee,U,O]),V=r,X=N1e(V);return Te.jsxs(F1e,{ref:n,className:xa(X.root,M),ownerState:V,children:[_&&Te.jsx(j1e,{className:X.arrowSwitcher,leftArrowButtonText:E,rightArrowButtonText:I,components:a,componentsProps:s,onLeftClick:()=>N(q),onRightClick:()=>N(R),isLeftDisabled:!q,isRightDisabled:!R,ownerState:V}),Te.jsx(A1e,Yt({autoFocus:o,date:u,ampmInClock:i,type:z,ampm:l,getClockLabelText:A,minutesStep:m,isTimeDisabled:ee,meridiemMode:G,handleMeridiemChange:te,selectedId:U,disabled:O,readOnly:D},Q))]})}),KW=e=>e.length===1&&e[0]==="year",ZW=e=>e.length===2&&e.indexOf("month")!==-1&&e.indexOf("year")!==-1,B1e=(e,t)=>KW(e)?{inputFormat:t.formats.year}:ZW(e)?{disableMaskedInput:!0,inputFormat:t.formats.monthAndYear}:{inputFormat:t.formats.keyboardDate};function j5(e,t){var n;const r=Hr(),l=yg(),i=Tr({props:e,name:t}),o=(n=i.views)!=null?n:["year","day"];return Yt({openTo:"day",disableFuture:!1,disablePast:!1},B1e(o,r),i,{views:o,minDate:zi(r,i.minDate,l.minDate),maxDate:zi(r,i.maxDate,l.maxDate)})}const z5={emptyValue:null,getTodayValue:e=>e.date(),parseInput:O5,areValuesEqual:(e,t,n)=>e.isEqual(t,n)};function QW(e){return gn("MuiPickersToolbar",e)}const B5=fn("MuiPickersToolbar",["root","content","penIconButton","penIconButtonLandscape"]),W1e=e=>{const{classes:t,isLandscape:n}=e;return vn({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},QW,t)},q1e=Dt("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>Yt({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),U1e=Dt(hr,{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>Yt({flex:1},!e.isLandscape&&{alignItems:"center"})),H1e=Dt(Fo,{name:"MuiPickersToolbar",slot:"PenIconButton",overridesResolver:(e,t)=>[{[`&.${B5.penIconButtonLandscape}`]:t.penIconButtonLandscape},t.penIconButton]})({}),V1e=e=>e==="clock"?Te.jsx(LW,{color:"inherit"}):Te.jsx(RW,{color:"inherit"}),W5=ge.forwardRef(function(t,n){const r=Tr({props:t,name:"MuiPickersToolbar"}),{children:l,className:i,getMobileKeyboardInputViewButtonText:o,isLandscape:a,isMobileKeyboardViewOpen:s,landscapeDirection:u="column",toggleMobileKeyboardView:c,toolbarTitle:d,viewType:f="calendar"}=r,p=r,h=ul(),g=W1e(p);return Te.jsxs(q1e,{ref:n,className:xa(g.root,i),ownerState:p,children:[Te.jsx(mr,{color:"text.secondary",variant:"overline",children:d}),Te.jsxs(U1e,{container:!0,justifyContent:"space-between",className:g.content,ownerState:p,direction:a?u:"row",alignItems:a?"flex-start":"flex-end",children:[l,Te.jsx(H1e,{onClick:c,className:g.penIconButton,ownerState:p,color:"inherit","aria-label":o?o(s,f):h.inputModeToggleButtonAriaLabel(s,f),children:s?V1e(f):Te.jsx(vye,{color:"inherit"})})]})]})});function G1e(e){return gn("MuiDatePickerToolbar",e)}const Y1e=fn("MuiDatePickerToolbar",["root","title"]),X1e=["parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],K1e=e=>{const{classes:t}=e;return vn({root:["root"],title:["title"]},G1e,t)},Z1e=Dt(W5,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Q1e=Dt(mr,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>Yt({},e.isLandscape&&{margin:"auto 16px auto auto"})),q5=ge.forwardRef(function(t,n){const r=Tr({props:t,name:"MuiDatePickerToolbar"}),{parsedValue:l,isLandscape:i,isMobileKeyboardViewOpen:o,toggleMobileKeyboardView:a,toolbarFormat:s,toolbarPlaceholder:u="––",toolbarTitle:c,views:d}=r,f=tr(r,X1e),p=Hr(),h=ul(),g=K1e(r),b=c??h.datePickerDefaultToolbarTitle,v=ge.useMemo(()=>l?s?p.formatByString(l,s):KW(d)?p.format(l,"year"):ZW(d)?p.format(l,"month"):/en/.test(p.getCurrentLocaleCode())?p.format(l,"normalDateWithWeekday"):p.format(l,"normalDate"):u,[l,s,u,p,d]),m=r;return Te.jsx(Z1e,Yt({ref:n,toolbarTitle:b,isMobileKeyboardViewOpen:o,toggleMobileKeyboardView:a,isLandscape:i,className:g.root},f,{children:Te.jsx(Q1e,{variant:"h4",align:i?"left":"center",ownerState:m,className:g.title,children:v})}))}),J1e=["onAccept","onClear","onCancel","onSetToday","actions"],U5=e=>{const{onAccept:t,onClear:n,onCancel:r,onSetToday:l,actions:i}=e,o=tr(e,J1e),a=ge.useContext(gs),s=ul(),u=typeof i=="function"?i(a):i;if(u==null||u.length===0)return null;const c=u==null?void 0:u.map(d=>{switch(d){case"clear":return Te.jsx(tl,{onClick:n,children:s.clearButtonLabel},d);case"cancel":return Te.jsx(tl,{onClick:r,children:s.cancelButtonLabel},d);case"accept":return Te.jsx(tl,{onClick:t,children:s.okButtonLabel},d);case"today":return Te.jsx(tl,{onClick:l,children:s.todayButtonLabel},d);default:return null}});return Te.jsx(bse,Yt({},o,{children:c}))};function ebe(e){return gn("MuiPickersPopper",e)}fn("MuiPickersPopper",["root","paper"]);const tbe=["onClick","onTouchStart"],nbe=e=>{const{classes:t}=e;return vn({root:["root"],paper:["paper"]},ebe,t)},rbe=Dt(c5,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),abe=Dt(pu,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>Yt({transformOrigin:"top center",outline:0},e.placement==="top"&&{transformOrigin:"bottom center"}));function obe(e,t){return t.documentElement.clientWidth{if(!e)return;function s(){i.current=!0}return document.addEventListener("mousedown",s,!0),document.addEventListener("touchstart",s,!0),()=>{document.removeEventListener("mousedown",s,!0),document.removeEventListener("touchstart",s,!0),i.current=!1}},[e]);const o=ho(s=>{if(!i.current)return;const u=r.current;r.current=!1;const c=qa(l.current);if(!l.current||"clientX"in s&&obe(s,c))return;if(n.current){n.current=!1;return}let d;s.composedPath?d=s.composedPath().indexOf(l.current)>-1:d=!c.documentElement.contains(s.target)||l.current.contains(s.target),!d&&!u&&t(s)}),a=()=>{r.current=!0};return ge.useEffect(()=>{if(e){const s=qa(l.current),u=()=>{n.current=!0};return s.addEventListener("touchstart",o),s.addEventListener("touchmove",u),()=>{s.removeEventListener("touchstart",o),s.removeEventListener("touchmove",u)}}},[e,o]),ge.useEffect(()=>{if(e){const s=qa(l.current);return s.addEventListener("click",o),()=>{s.removeEventListener("click",o),r.current=!1}}},[e,o]),[l,a,a]}function lbe(e){var t;const n=Tr({props:e,name:"MuiPickersPopper"}),{anchorEl:r,children:l,containerRef:i=null,onBlur:o,onClose:a,onClear:s,onAccept:u,onCancel:c,onSetToday:d,open:f,PopperProps:p,role:h,TransitionComponent:g=Jd,TrapFocusProps:b,PaperProps:v={},components:m,componentsProps:y}=n;ge.useEffect(()=>{function j(B){f&&(B.key==="Escape"||B.key==="Esc")&&a()}return document.addEventListener("keydown",j),()=>{document.removeEventListener("keydown",j)}},[a,f]);const x=ge.useRef(null);ge.useEffect(()=>{h!=="tooltip"&&(f?x.current=yW(document):x.current&&x.current instanceof HTMLElement&&setTimeout(()=>{x.current instanceof HTMLElement&&x.current.focus()}))},[f,h]);const[_,w,S]=ibe(f,o??a),k=ge.useRef(null),C=Er(k,i),T=Er(C,_),M=n,O=nbe(M),{onClick:D,onTouchStart:P}=v,E=tr(v,tbe),I=j=>{j.key==="Escape"&&(j.stopPropagation(),a())},A=(t=m==null?void 0:m.ActionBar)!=null?t:U5,F=(m==null?void 0:m.PaperContent)||ge.Fragment;return Te.jsx(rbe,Yt({transition:!0,role:h,open:f,anchorEl:r,onKeyDown:I,className:O.root},p,{children:({TransitionProps:j,placement:B})=>Te.jsx(Nz,Yt({open:f,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:h==="tooltip",isEnabled:()=>!0},b,{children:Te.jsx(g,Yt({},j,{children:Te.jsx(abe,Yt({tabIndex:-1,elevation:8,ref:T,onClick:z=>{w(z),D&&D(z)},onTouchStart:z=>{S(z),P&&P(z)},ownerState:Yt({},M,{placement:B}),className:O.paper},E,{children:Te.jsxs(F,Yt({},y==null?void 0:y.paperContent,{children:[l,Te.jsx(A,Yt({onAccept:u,onClear:s,onCancel:c,onSetToday:d,actions:[]},y==null?void 0:y.actionBar))]}))}))}))}))}))}function H5(e){const{children:t,DateInputProps:n,KeyboardDateInputComponent:r,onClear:l,onDismiss:i,onCancel:o,onAccept:a,onSetToday:s,open:u,PopperProps:c,PaperProps:d,TransitionComponent:f,components:p,componentsProps:h}=e,g=ge.useRef(null),b=Er(n.inputRef,g);return Te.jsxs(gs.Provider,{value:"desktop",children:[Te.jsx(r,Yt({},n,{inputRef:b})),Te.jsx(lbe,{role:"dialog",open:u,anchorEl:g.current,TransitionComponent:f,PopperProps:c,PaperProps:d,onClose:i,onCancel:o,onClear:l,onAccept:a,onSetToday:s,components:p,componentsProps:h,children:t})]})}const sbe=e=>{const[,t]=ge.useReducer(s=>s+1,0),n=ge.useRef(null),{replace:r,append:l}=e,i=r?r(e.format(e.value)):e.format(e.value),o=ge.useRef(!1),a=s=>{const u=s.target.value;n.current=[u,s.target,u.length>i.length,o.current,i===e.format(u)],t()};return ge.useLayoutEffect(()=>{if(n.current==null)return;let[s,u,c,d,f]=n.current;n.current=null;const p=d&&f,g=s.slice(u.selectionStart).search(e.accept||/\d/g),b=g!==-1?g:0,v=w=>(w.match(e.accept||/\d/g)||[]).join(""),m=v(s.substr(0,u.selectionStart)),y=w=>{let S=0,k=0;for(let C=0;C!==m.length;++C){let T=w.indexOf(m[C],S)+1,M=v(w).indexOf(m[C],k)+1;M-k>1&&(T=S,M=k),k=Math.max(M,k),S=Math.max(S,T)}return S};if(e.mask===!0&&c&&!f){let w=y(s);const S=v(s.substr(w))[0];w=s.indexOf(S,w),s=`${s.substr(0,w)}${s.substr(w+1)}`}let x=e.format(s);l!=null&&u.selectionStart===s.length&&!f&&(c?x=l(x):v(x.slice(-1))===""&&(x=x.slice(0,-1)));const _=r?r(x):x;return i===_?t():e.onChange(_),()=>{let w=y(x);if(e.mask!=null&&(c||d&&!p))for(;x[w]&&v(x[w])==="";)w+=1;u.selectionStart=u.selectionEnd=w+(p?1+b:0)}}),ge.useEffect(()=>{const s=c=>{c.code==="Delete"&&(o.current=!0)},u=c=>{c.code==="Delete"&&(o.current=!1)};return document.addEventListener("keydown",s),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",s),document.removeEventListener("keyup",u)}},[]),{value:n.current!=null?n.current[0]:i,onChange:a}},YS=(e,t,n)=>{const r=e.date(t);return t===null?"":e.isValid(r)?e.formatByString(r,n):""},Ey="_",JW="2019-11-21T22:30:00.000",eq="2019-01-01T09:00:00.000";function ube(e,t,n,r){if(e)return e;const i=r.formatByString(r.date(eq),t).replace(n,Ey),o=r.formatByString(r.date(JW),t).replace(n,"_");return i===o?i:""}function cbe(e,t,n,r){if(!e)return!1;const i=r.formatByString(r.date(eq),t).replace(n,Ey),o=r.formatByString(r.date(JW),t).replace(n,"_"),a=o===i&&e===o;return!a&&r.lib,a}const dbe=(e,t)=>n=>{let r=0;return n.split("").map((l,i)=>{if(t.lastIndex=0,r>e.length-1)return"";const o=e[r],a=e[r+1],s=t.test(l)?l:"",u=o===Ey?s:o+s;return r+=u.length,i===n.length-1&&a&&a!==Ey?u?u+a:"":u}).join("")},fbe=({acceptRegex:e=/[\d]/gi,disabled:t,disableMaskedInput:n,ignoreInvalidInputs:r,inputFormat:l,inputProps:i,label:o,mask:a,onChange:s,rawValue:u,readOnly:c,rifmFormatter:d,TextFieldProps:f,validationError:p})=>{const h=Hr(),g=h.getFormatHelperText(l),{shouldUseMaskedInput:b,maskToUse:v}=ge.useMemo(()=>{if(n)return{shouldUseMaskedInput:!1,maskToUse:""};const P=ube(a,l,e,h);return{shouldUseMaskedInput:cbe(P,l,e,h),maskToUse:P}},[e,n,l,a,h]),m=ge.useMemo(()=>b&&v?dbe(v,e):P=>P,[e,v,b]),y=u===null?null:h.date(u),[x,_]=ge.useState(y),[w,S]=ge.useState(YS(h,u,l)),k=ge.useRef(),C=ge.useRef(h.locale),T=ge.useRef(l);ge.useEffect(()=>{const P=u!==k.current,E=h.locale!==C.current,I=l!==T.current;if(k.current=u,C.current=h.locale,T.current=l,!P&&!E&&!I)return;const A=u===null?null:h.date(u),F=u===null||h.isValid(A);let j=x===null&&A===null;if(x!==null&&A!==null){const z=h.isEqual(x,A);if(z)j=!0;else{const N=Math.abs(h.getDiff(x,A));j=N===0?z:N<1e3}}if(!E&&!I&&(!F||j))return;const B=YS(h,u,l);_(A),S(B)},[h,u,l,x]);const M=P=>{const E=P===""||P===a?"":P;S(E);const I=E===null?null:h.parse(E,l);r&&!h.isValid(I)||(_(I),s(I,E||void 0))},O=sbe({value:w,onChange:M,format:d||m});return Yt({label:o,disabled:t,error:p,inputProps:Yt({},b?O:{value:w,onChange:P=>{M(P.currentTarget.value)}},{disabled:t,placeholder:g,readOnly:c,type:b?"tel":"text"},i)},f)},pbe=["className","components","disableOpenPicker","getOpenDialogAriaText","InputAdornmentProps","InputProps","inputRef","openPicker","OpenPickerButtonProps","renderInput"],Zb=ge.forwardRef(function(t,n){const{className:r,components:l={},disableOpenPicker:i,getOpenDialogAriaText:o,InputAdornmentProps:a,InputProps:s,inputRef:u,openPicker:c,OpenPickerButtonProps:d,renderInput:f}=t,p=tr(t,pbe),h=ul(),g=o??h.openDatePickerDialogue,b=Hr(),v=fbe(p),m=(a==null?void 0:a.position)||"end",y=l.OpenPickerIcon||RW;return f(Yt({ref:n,inputRef:u,className:r},v,{InputProps:Yt({},s,{[`${m}Adornment`]:i?void 0:Te.jsx(Yz,Yt({position:m},a,{children:Te.jsx(Fo,Yt({edge:m,disabled:p.disabled||p.readOnly,"aria-label":g(p.rawValue,b)},d,{onClick:c,children:Te.jsx(y,{})}))}))})}))});function ZD(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const hbe=(e,t)=>{const[n,r]=ge.useState(ZD);return I5(()=>{const i=()=>{r(ZD())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),$u(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},mbe=({autoFocus:e,openView:t})=>{const[n,r]=ge.useState(e?t:null),l=ge.useCallback(i=>o=>{r(o?i:a=>i===a?null:a)},[]);return{focusedView:n,setFocusedView:l}};function gbe(e){return gn("MuiCalendarOrClockPicker",e)}fn("MuiCalendarOrClockPicker",["root","mobileKeyboardInputView"]);const vbe=["autoFocus","className","parsedValue","DateInputProps","isMobileKeyboardViewOpen","onDateChange","onViewChange","openTo","orientation","showToolbar","toggleMobileKeyboardView","ToolbarComponent","toolbarFormat","toolbarPlaceholder","toolbarTitle","views","dateRangeIcon","timeIcon","hideTabs","classes"],ybe=e=>{const{classes:t}=e;return vn({root:["root"],mobileKeyboardInputView:["mobileKeyboardInputView"]},gbe,t)},bbe=Dt("div",{name:"MuiCalendarOrClockPicker",slot:"MobileKeyboardInputView",overridesResolver:(e,t)=>t.mobileKeyboardInputView})({padding:"16px 24px"}),xbe=Dt("div",{name:"MuiCalendarOrClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>Yt({display:"flex",flexDirection:"column"},e.isLandscape&&{flexDirection:"row"})),wbe={fullWidth:!0},QD=e=>e==="year"||e==="month"||e==="day",JD=e=>e==="hours"||e==="minutes"||e==="seconds";function vs(e){var t,n;const r=Tr({props:e,name:"MuiCalendarOrClockPicker"}),{autoFocus:l,parsedValue:i,DateInputProps:o,isMobileKeyboardViewOpen:a,onDateChange:s,onViewChange:u,openTo:c,orientation:d,showToolbar:f,toggleMobileKeyboardView:p,ToolbarComponent:h=()=>null,toolbarFormat:g,toolbarPlaceholder:b,toolbarTitle:v,views:m,dateRangeIcon:y,timeIcon:x,hideTabs:_}=r,w=tr(r,vbe),S=(t=w.components)==null?void 0:t.Tabs,k=hbe(m,d),C=ge.useContext(gs),T=ybe(r),M=f??C!=="desktop",O=!_&&typeof window<"u"&&window.innerHeight>667,D=ge.useCallback((B,z)=>{s(B,C,z)},[s,C]),P=ge.useCallback(B=>{a&&p(),u&&u(B)},[a,u,p]),{openView:E,setOpenView:I,handleChangeAndOpenNext:A}=N5({view:void 0,views:m,openTo:c,onChange:D,onViewChange:P}),{focusedView:F,setFocusedView:j}=mbe({autoFocus:l,openView:E});return Te.jsxs(xbe,{ownerState:{isLandscape:k},className:T.root,children:[M&&Te.jsx(h,Yt({},w,{views:m,isLandscape:k,parsedValue:i,onChange:D,setOpenView:I,openView:E,toolbarTitle:v,toolbarFormat:g,toolbarPlaceholder:b,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:p})),O&&!!S&&Te.jsx(S,Yt({dateRangeIcon:y,timeIcon:x,view:E,onChange:I},(n=w.componentsProps)==null?void 0:n.tabs)),Te.jsx(F5,{children:a?Te.jsx(bbe,{className:T.mobileKeyboardInputView,children:Te.jsx(Zb,Yt({},o,{ignoreInvalidInputs:!0,disableOpenPicker:!0,TextFieldProps:wbe}))}):Te.jsxs(ge.Fragment,{children:[QD(E)&&Te.jsx(WW,Yt({autoFocus:l,date:i,onViewChange:I,onChange:A,view:E,views:m.filter(QD),focusedView:F,onFocusedViewChange:j},w)),JD(E)&&Te.jsx(XW,Yt({},w,{autoFocus:l,date:i,view:E,views:m.filter(JD),onChange:A,onViewChange:I,showViewSwitcher:C==="desktop"}))]})})]})}const _be=({open:e,onOpen:t,onClose:n})=>{const r=ge.useRef(typeof e=="boolean").current,[l,i]=ge.useState(!1);ge.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");i(e)}},[r,e]);const o=ge.useCallback(a=>{r||i(a),a&&t&&t(),!a&&n&&n()},[r,t,n]);return{isOpen:l,setIsOpen:o}},ys=(e,t)=>{const{onAccept:n,onChange:r,value:l,closeOnSelect:i}=e,o=Hr(),{isOpen:a,setIsOpen:s}=_be(e),u=ge.useMemo(()=>t.parseInput(o,l),[t,o,l]),[c,d]=ge.useState(u),[f,p]=ge.useState(()=>({committed:u,draft:u,resetFallback:u})),h=ge.useCallback(w=>{p(S=>{switch(w.action){case"setAll":case"acceptAndClose":return{draft:w.value,committed:w.value,resetFallback:w.value};case"setCommitted":return Yt({},S,{draft:w.value,committed:w.value});case"setDraft":return Yt({},S,{draft:w.value});default:return S}}),(w.forceOnChangeCall||!w.skipOnChangeCall&&!t.areValuesEqual(o,f.committed,w.value))&&r(w.value),w.action==="acceptAndClose"&&(s(!1),n&&!t.areValuesEqual(o,f.resetFallback,w.value)&&n(w.value))},[n,r,s,f,o,t]);ge.useEffect(()=>{o.isValid(u)&&d(u)},[o,u]),ge.useEffect(()=>{a&&h({action:"setAll",value:u,skipOnChangeCall:!0})},[a]),t.areValuesEqual(o,f.committed,u)||h({action:"setCommitted",value:u,skipOnChangeCall:!0});const g=ge.useMemo(()=>({open:a,onClear:()=>{h({value:t.emptyValue,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(o,l,t.emptyValue)})},onAccept:()=>{h({value:f.draft,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(o,l,u)})},onDismiss:()=>{h({value:f.committed,action:"acceptAndClose"})},onCancel:()=>{h({value:f.resetFallback,action:"acceptAndClose"})},onSetToday:()=>{h({value:t.getTodayValue(o),action:"acceptAndClose"})}}),[h,a,o,f,t,l,u]),[b,v]=ge.useState(!1),m=ge.useMemo(()=>({parsedValue:f.draft,isMobileKeyboardViewOpen:b,toggleMobileKeyboardView:()=>v(!b),onDateChange:(w,S,k="partial")=>{switch(k){case"shallow":return h({action:"setDraft",value:w,skipOnChangeCall:!0});case"partial":return h({action:"setDraft",value:w});case"finish":return h(i??S==="desktop"?{value:w,action:"acceptAndClose"}:{value:w,action:"setCommitted"});default:throw new Error("MUI: Invalid selectionState passed to `onDateChange`")}}}),[h,b,f.draft,i]),y=ge.useCallback((w,S)=>{const k=t.valueReducer?t.valueReducer(o,c,w):w;r(k,S)},[r,t,c,o]),x=ge.useMemo(()=>({onChange:y,open:a,rawValue:l,openPicker:()=>s(!0)}),[y,a,l,s]),_={pickerProps:m,inputProps:x,wrapperProps:g};return ge.useDebugValue(_,()=>({MuiPickerState:{dateState:f,other:_}})),_},Tbe=["onChange","PopperProps","PaperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],tq=ge.forwardRef(function(t,n){const r=j5(t,"MuiDesktopDatePicker"),l=E5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=ys(r,z5),{PopperProps:s,PaperProps:u,ToolbarComponent:c=q5,TransitionComponent:d,components:f,componentsProps:p}=r,h=tr(r,Tbe),g=Yt({},o,h,{components:f,componentsProps:p,ref:n,validationError:l});return Te.jsx(H5,Yt({},a,{DateInputProps:g,KeyboardDateInputComponent:Zb,PopperProps:s,PaperProps:u,TransitionComponent:d,components:f,componentsProps:p,children:Te.jsx(vs,Yt({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:c,DateInputProps:g,components:f,componentsProps:p},h))}))}),Sbe=Dt(mse)({[`& .${Vh.container}`]:{outline:0},[`& .${Vh.paper}`]:{outline:0,minWidth:$5}}),kbe=Dt(Sse)({"&:first-of-type":{padding:0}}),Cbe=e=>{var t;const{children:n,DialogProps:r={},onAccept:l,onClear:i,onDismiss:o,onCancel:a,onSetToday:s,open:u,components:c,componentsProps:d}=e,f=(t=c==null?void 0:c.ActionBar)!=null?t:U5;return Te.jsxs(Sbe,Yt({open:u,onClose:o},r,{children:[Te.jsx(kbe,{children:n}),Te.jsx(f,Yt({onAccept:l,onClear:i,onCancel:a,onSetToday:s,actions:["cancel","accept"]},d==null?void 0:d.actionBar))]}))},Mbe=["children","DateInputProps","DialogProps","onAccept","onClear","onDismiss","onCancel","onSetToday","open","PureDateInputComponent","components","componentsProps"];function V5(e){const{children:t,DateInputProps:n,DialogProps:r,onAccept:l,onClear:i,onDismiss:o,onCancel:a,onSetToday:s,open:u,PureDateInputComponent:c,components:d,componentsProps:f}=e,p=tr(e,Mbe);return Te.jsxs(gs.Provider,{value:"mobile",children:[Te.jsx(c,Yt({components:d},p,n)),Te.jsx(Cbe,{DialogProps:r,onAccept:l,onClear:i,onDismiss:o,onCancel:a,onSetToday:s,open:u,components:d,componentsProps:f,children:t})]})}const G5=ge.forwardRef(function(t,n){const{disabled:r,getOpenDialogAriaText:l,inputFormat:i,InputProps:o,inputRef:a,label:s,openPicker:u,rawValue:c,renderInput:d,TextFieldProps:f={},validationError:p,className:h}=t,g=ul(),b=l??g.openDatePickerDialogue,v=Hr(),m=ge.useMemo(()=>Yt({},o,{readOnly:!0}),[o]),y=YS(v,c,i),x=ho(_=>{_.stopPropagation(),u()});return d(Yt({label:s,disabled:r,ref:n,inputRef:a,error:p,InputProps:m,className:h},!t.readOnly&&!t.disabled&&{onClick:x},{inputProps:Yt({disabled:r,readOnly:!0,"aria-readonly":!0,"aria-label":b(c,v),value:y},!t.readOnly&&{onClick:x},{onKeyDown:vW(u)})},f))}),Pbe=["ToolbarComponent","value","onChange","components","componentsProps"],nq=ge.forwardRef(function(t,n){const r=j5(t,"MuiMobileDatePicker"),l=E5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=ys(r,z5),{ToolbarComponent:s=q5,components:u,componentsProps:c}=r,d=tr(r,Pbe),f=Yt({},o,d,{components:u,componentsProps:c,ref:n,validationError:l});return Te.jsx(V5,Yt({},d,a,{DateInputProps:f,PureDateInputComponent:G5,components:u,componentsProps:c,children:Te.jsx(vs,Yt({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:s,DateInputProps:f,components:u,componentsProps:c},d))}))}),Obe=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],Abe=ge.forwardRef(function(t,n){const r=Tr({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:l="@media (pointer: fine)",DialogProps:i,PopperProps:o,TransitionComponent:a}=r,s=tr(r,Obe);return vb(l,{defaultMatches:!0})?Te.jsx(tq,Yt({ref:n,PopperProps:o,TransitionComponent:a},s)):Te.jsx(nq,Yt({ref:n,DialogProps:i},s))});function Y5(e,t){var n,r,l,i,o;const a=Tr({props:e,name:t}),s=Hr(),u=yg(),c=(n=a.ampm)!=null?n:s.is12HourCycleInCurrentLocale();if(a.orientation!=null&&a.orientation!=="portrait")throw new Error("We are not supporting custom orientation for DateTimePicker yet :(");return Yt({ampm:c,orientation:"portrait",openTo:"day",views:["year","day","hours","minutes"],ampmInClock:!0,acceptRegex:c?/[\dap]/gi:/\d/gi,disableMaskedInput:!1,inputFormat:c?s.formats.keyboardDateTime12h:s.formats.keyboardDateTime24h,disableIgnoringDatePartForTimeValidation:!!(a.minDateTime||a.maxDateTime),disablePast:!1,disableFuture:!1},a,{minDate:zi(s,(r=a.minDateTime)!=null?r:a.minDate,u.minDate),maxDate:zi(s,(l=a.maxDateTime)!=null?l:a.maxDate,u.maxDate),minTime:(i=a.minDateTime)!=null?i:a.minTime,maxTime:(o=a.maxDateTime)!=null?o:a.maxTime})}const X5={emptyValue:null,getTodayValue:e=>e.date(),parseInput:O5,areValuesEqual:(e,t,n)=>e.isEqual(t,n)},Dbe=e=>{switch(e){case"year":case"month":case"day":return"calendar";default:return"clock"}};function Ebe(e){return gn("PrivatePickersToolbarText",e)}const eE=fn("PrivatePickersToolbarText",["root","selected"]),Rbe=["className","selected","value"],Lbe=e=>{const{classes:t,selected:n}=e;return vn({root:["root",n&&"selected"]},Ebe,t)},Ibe=Dt(mr,{name:"PrivatePickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${eE.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:e.palette.text.secondary,[`&.${eE.selected}`]:{color:e.palette.text.primary}})),K5=ge.forwardRef(function(t,n){const{className:r,value:l}=t,i=tr(t,Rbe),o=Lbe(t);return Te.jsx(Ibe,Yt({ref:n,className:xa(r,o.root),component:"span"},i,{children:l}))}),$be=["align","className","selected","typographyClassName","value","variant"],Nbe=e=>{const{classes:t}=e;return vn({root:["root"]},QW,t)},Fbe=Dt(tl,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),Cl=ge.forwardRef(function(t,n){const r=Tr({props:t,name:"MuiPickersToolbarButton"}),{align:l,className:i,selected:o,typographyClassName:a,value:s,variant:u}=r,c=tr(r,$be),d=Nbe(r);return Te.jsx(Fbe,Yt({variant:"text",ref:n,className:xa(i,d.root)},c,{children:Te.jsx(K5,{align:l,className:a,variant:u,value:s,selected:o})}))});function jbe(e){return gn("MuiDateTimePickerToolbar",e)}const zbe=fn("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","separator"]),Bbe=["ampm","parsedValue","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],Wbe=e=>{const{classes:t}=e;return vn({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer"],separator:["separator"]},jbe,t)},qbe=Dt(W5,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",[`& .${B5.penIconButton}`]:Yt({position:"absolute",top:8},e.direction==="rtl"?{left:8}:{right:8})})),Ube=Dt("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),Hbe=Dt("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})({display:"flex"}),tE=Dt(K5,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({margin:"0 4px 0 2px",cursor:"default"});function Z5(e){const t=Tr({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,parsedValue:r,isMobileKeyboardViewOpen:l,openView:i,setOpenView:o,toggleMobileKeyboardView:a,toolbarFormat:s,toolbarPlaceholder:u="––",toolbarTitle:c,views:d}=t,f=tr(t,Bbe),p=t,h=Hr(),g=ul(),b=Wbe(p),v=c??g.dateTimePickerDefaultToolbarTitle,m=x=>n?h.format(x,"hours12h"):h.format(x,"hours24h"),y=ge.useMemo(()=>r?s?h.formatByString(r,s):h.format(r,"shortDate"):u,[r,s,u,h]);return Te.jsxs(qbe,Yt({toolbarTitle:v,isMobileKeyboardViewOpen:l,toggleMobileKeyboardView:a,className:b.root,viewType:Dbe(i)},f,{isLandscape:!1,ownerState:p,children:[Te.jsxs(Ube,{className:b.dateContainer,ownerState:p,children:[d.includes("year")&&Te.jsx(Cl,{tabIndex:-1,variant:"subtitle1",onClick:()=>o("year"),selected:i==="year",value:r?h.format(r,"year"):"–"}),d.includes("day")&&Te.jsx(Cl,{tabIndex:-1,variant:"h4",onClick:()=>o("day"),selected:i==="day",value:y})]}),Te.jsxs(Hbe,{className:b.timeContainer,ownerState:p,children:[d.includes("hours")&&Te.jsx(Cl,{variant:"h3",onClick:()=>o("hours"),selected:i==="hours",value:r?m(r):"--"}),d.includes("minutes")&&Te.jsxs(ge.Fragment,{children:[Te.jsx(tE,{variant:"h3",value:":",className:b.separator,ownerState:p}),Te.jsx(Cl,{variant:"h3",onClick:()=>o("minutes"),selected:i==="minutes",value:r?h.format(r,"minutes"):"--"})]}),d.includes("seconds")&&Te.jsxs(ge.Fragment,{children:[Te.jsx(tE,{variant:"h3",value:":",className:b.separator,ownerState:p}),Te.jsx(Cl,{variant:"h3",onClick:()=>o("seconds"),selected:i==="seconds",value:r?h.format(r,"seconds"):"--"})]})]})]}))}const rq=({adapter:e,value:t,props:n})=>{const{minTime:r,maxTime:l,minutesStep:i,shouldDisableTime:o,disableIgnoringDatePartForTimeValidation:a}=n,s=e.utils.date(t),u=$W(a,e.utils);if(t===null)return null;switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&u(r,s)):return"minTime";case!!(l&&u(s,l)):return"maxTime";case!!(o&&o(e.utils.getHours(s),"hours")):return"shouldDisableTime-hours";case!!(o&&o(e.utils.getMinutes(s),"minutes")):return"shouldDisableTime-minutes";case!!(o&&o(e.utils.getSeconds(s),"seconds")):return"shouldDisableTime-seconds";case!!(i&&e.utils.getMinutes(s)%i!==0):return"minutesStep";default:return null}},Vbe=(e,t)=>e===t,Q5=e=>A5(e,rq,Vbe),Gbe=["minDate","maxDate","disableFuture","shouldDisableDate","disablePast"],Ybe=({props:e,value:t,adapter:n})=>{const{minDate:r,maxDate:l,disableFuture:i,shouldDisableDate:o,disablePast:a}=e,s=tr(e,Gbe),u=D5({adapter:n,value:t,props:{minDate:r,maxDate:l,disableFuture:i,shouldDisableDate:o,disablePast:a}});return u!==null?u:rq({adapter:n,value:t,props:s})},Xbe=(e,t)=>e===t;function J5(e){return A5(e,Ybe,Xbe)}function Kbe(e){return gn("MuiDateTimePickerTabs",e)}const Zbe=fn("MuiDateTimePickerTabs",["root"]),Qbe=e=>["day","month","year"].includes(e)?"date":"time",Jbe=e=>e==="date"?"day":"hours",exe=e=>{const{classes:t}=e;return vn({root:["root"]},Kbe,t)},txe=Dt(TB,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>Yt({boxShadow:`0 -1px 0 0 inset ${t.palette.divider}`},e.wrapperVariant==="desktop"&&{order:1,boxShadow:`0 1px 0 0 inset ${t.palette.divider}`,[`& .${bv.indicator}`]:{bottom:"auto",top:0}})),Qb=function(t){const n=Tr({props:t,name:"MuiDateTimePickerTabs"}),{dateRangeIcon:r=Te.jsx(gye,{}),onChange:l,timeIcon:i=Te.jsx(yye,{}),view:o}=n,a=ul(),s=ge.useContext(gs),u=Yt({},n,{wrapperVariant:s}),c=exe(u),d=(f,p)=>{l(Jbe(p))};return Te.jsxs(txe,{ownerState:u,variant:"fullWidth",value:Qbe(o),onChange:d,className:c.root,children:[Te.jsx(jS,{value:"date","aria-label":a.dateTableLabel,icon:Te.jsx(ge.Fragment,{children:r})}),Te.jsx(jS,{value:"time","aria-label":a.timeTableLabel,icon:Te.jsx(ge.Fragment,{children:i})})]})},nxe=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps","hideTabs"],aq=ge.forwardRef(function(t,n){const r=Y5(t,"MuiDesktopDateTimePicker"),l=J5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=ys(r,X5),{PaperProps:s,PopperProps:u,ToolbarComponent:c=Z5,TransitionComponent:d,components:f,componentsProps:p,hideTabs:h=!0}=r,g=tr(r,nxe),b=ge.useMemo(()=>Yt({Tabs:Qb},f),[f]),v=Yt({},o,g,{components:b,componentsProps:p,ref:n,validationError:l});return Te.jsx(H5,Yt({},a,{DateInputProps:v,KeyboardDateInputComponent:Zb,PopperProps:u,PaperProps:s,TransitionComponent:d,components:b,componentsProps:p,children:Te.jsx(vs,Yt({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:c,DateInputProps:v,components:b,componentsProps:p,hideTabs:h},g))}))}),rxe=["ToolbarComponent","value","onChange","components","componentsProps","hideTabs"],oq=ge.forwardRef(function(t,n){const r=Y5(t,"MuiMobileDateTimePicker"),l=J5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=ys(r,X5),{ToolbarComponent:s=Z5,components:u,componentsProps:c,hideTabs:d=!1}=r,f=tr(r,rxe),p=ge.useMemo(()=>Yt({Tabs:Qb},u),[u]),h=Yt({},o,f,{components:p,componentsProps:c,ref:n,validationError:l});return Te.jsx(V5,Yt({},f,a,{DateInputProps:h,PureDateInputComponent:G5,components:p,componentsProps:c,children:Te.jsx(vs,Yt({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:s,DateInputProps:h,components:p,componentsProps:c,hideTabs:d},f))}))}),axe=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],oxe=ge.forwardRef(function(t,n){const r=Tr({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:l="@media (pointer: fine)",DialogProps:i,PopperProps:o,TransitionComponent:a}=r,s=tr(r,axe);return vb(l,{defaultMatches:!0})?Te.jsx(aq,Yt({ref:n,PopperProps:o,TransitionComponent:a},s)):Te.jsx(oq,Yt({ref:n,DialogProps:i},s))});function e4(e,t){var n;const r=Tr({props:e,name:t}),l=Hr(),i=(n=r.ampm)!=null?n:l.is12HourCycleInCurrentLocale(),a=ul().openTimePickerDialogue;return Yt({ampm:i,openTo:"hours",views:["hours","minutes"],acceptRegex:i?/[\dapAP]/gi:/\d/gi,disableMaskedInput:!1,getOpenDialogAriaText:a,inputFormat:i?l.formats.fullTime12h:l.formats.fullTime24h},r,{components:Yt({OpenPickerIcon:LW},r.components)})}const t4={emptyValue:null,parseInput:O5,getTodayValue:e=>e.date(),areValuesEqual:(e,t,n)=>e.isEqual(t,n),valueReducer:(e,t,n)=>!t||!e.isValid(n)?n:e.mergeDateAndTime(t,n)};function ixe(e){return gn("MuiTimePickerToolbar",e)}const Ld=fn("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),lxe=["ampm","ampmInClock","parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarTitle","views","disabled","readOnly"],sxe=e=>{const{theme:t,isLandscape:n,classes:r}=e,l={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape",t.direction==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return vn(l,ixe,r)},uxe=Dt(W5,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({[`& .${B5.penIconButtonLandscape}`]:{marginTop:"auto"}}),cxe=Dt(K5,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),dxe=Dt("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${Ld.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${Ld.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>Yt({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"})),fxe=Dt("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${Ld.ampmLabel}`]:t.ampmLabel},{[`&.${Ld.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>Yt({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${Ld.ampmLabel}`]:{fontSize:17}}));function n4(e){const t=Tr({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,parsedValue:l,isLandscape:i,isMobileKeyboardViewOpen:o,onChange:a,openView:s,setOpenView:u,toggleMobileKeyboardView:c,toolbarTitle:d,views:f,disabled:p,readOnly:h}=t,g=tr(t,lxe),b=Hr(),v=ul(),m=d??v.timePickerDefaultToolbarTitle,y=pi(),x=!!(n&&!r),{meridiemMode:_,handleMeridiemChange:w}=NW(l,n,a),S=M=>n?b.format(M,"hours12h"):b.format(M,"hours24h"),k=t,C=sxe(Yt({},k,{theme:y})),T=Te.jsx(cxe,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:C.separator});return Te.jsxs(uxe,Yt({viewType:"clock",landscapeDirection:"row",toolbarTitle:m,isLandscape:i,isMobileKeyboardViewOpen:o,toggleMobileKeyboardView:c,ownerState:k,className:C.root},g,{children:[Te.jsxs(dxe,{className:C.hourMinuteLabel,ownerState:k,children:[$u(f,"hours")&&Te.jsx(Cl,{tabIndex:-1,variant:"h3",onClick:()=>u("hours"),selected:s==="hours",value:l?S(l):"--"}),$u(f,["hours","minutes"])&&T,$u(f,"minutes")&&Te.jsx(Cl,{tabIndex:-1,variant:"h3",onClick:()=>u("minutes"),selected:s==="minutes",value:l?b.format(l,"minutes"):"--"}),$u(f,["minutes","seconds"])&&T,$u(f,"seconds")&&Te.jsx(Cl,{variant:"h3",onClick:()=>u("seconds"),selected:s==="seconds",value:l?b.format(l,"seconds"):"--"})]}),x&&Te.jsxs(fxe,{className:C.ampmSelection,ownerState:k,children:[Te.jsx(Cl,{disableRipple:!0,variant:"subtitle2",selected:_==="am",typographyClassName:C.ampmLabel,value:b.getMeridiemText("am"),onClick:h?void 0:()=>w("am"),disabled:p}),Te.jsx(Cl,{disableRipple:!0,variant:"subtitle2",selected:_==="pm",typographyClassName:C.ampmLabel,value:b.getMeridiemText("pm"),onClick:h?void 0:()=>w("pm"),disabled:p})]})]}))}const pxe=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],iq=ge.forwardRef(function(t,n){const r=e4(t,"MuiDesktopTimePicker"),l=Q5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=ys(r,t4),{PaperProps:s,PopperProps:u,ToolbarComponent:c=n4,TransitionComponent:d,components:f,componentsProps:p}=r,h=tr(r,pxe),g=Yt({},o,h,{components:f,componentsProps:p,ref:n,validationError:l});return Te.jsx(H5,Yt({},a,{DateInputProps:g,KeyboardDateInputComponent:Zb,PopperProps:u,PaperProps:s,TransitionComponent:d,components:f,componentsProps:p,children:Te.jsx(vs,Yt({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:c,DateInputProps:g,components:f,componentsProps:p},h))}))}),hxe=["ToolbarComponent","value","onChange","components","componentsProps"],lq=ge.forwardRef(function(t,n){const r=e4(t,"MuiMobileTimePicker"),l=Q5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=ys(r,t4),{ToolbarComponent:s=n4,components:u,componentsProps:c}=r,d=tr(r,hxe),f=Yt({},o,d,{components:u,componentsProps:c,ref:n,validationError:l});return Te.jsx(V5,Yt({},d,a,{DateInputProps:f,PureDateInputComponent:G5,components:u,componentsProps:c,children:Te.jsx(vs,Yt({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:s,DateInputProps:f,components:u,componentsProps:c},d))}))});function mxe(e){return gn("MuiPickerStaticWrapper",e)}fn("MuiPickerStaticWrapper",["root","content"]);const gxe=["displayStaticWrapperAs","onAccept","onClear","onCancel","onDismiss","onSetToday","open","children","components","componentsProps","className"],vxe=e=>{const{classes:t}=e;return vn({root:["root"],content:["content"]},mxe,t)},yxe=Dt("div",{name:"MuiPickerStaticWrapper",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),bxe=Dt("div",{name:"MuiPickerStaticWrapper",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e})=>({overflow:"hidden",minWidth:$5,display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper}));function Jb(e){var t;const n=Tr({props:e,name:"MuiPickerStaticWrapper"}),{displayStaticWrapperAs:r,onAccept:l,onClear:i,onCancel:o,onSetToday:a,children:s,components:u,componentsProps:c,className:d}=n,f=tr(n,gxe),p=vxe(n),h=(t=u==null?void 0:u.ActionBar)!=null?t:U5,g=(u==null?void 0:u.PaperContent)||ge.Fragment;return Te.jsx(gs.Provider,{value:r,children:Te.jsxs(yxe,Yt({className:xa(p.root,d)},f,{children:[Te.jsx(bxe,{className:p.content,children:Te.jsx(g,Yt({},c==null?void 0:c.paperContent,{children:s}))}),Te.jsx(h,Yt({onAccept:l,onClear:i,onCancel:o,onSetToday:a,actions:r==="desktop"?[]:["cancel","accept"]},c==null?void 0:c.actionBar))]}))})}const xxe=["ToolbarComponent","value","onChange","displayStaticWrapperAs","components","componentsProps","className"],wxe=ge.forwardRef(function(t,n){const r=j5(t,"MuiStaticDatePicker"),{ToolbarComponent:l=q5,displayStaticWrapperAs:i="mobile",components:o,componentsProps:a,className:s}=r,u=tr(r,xxe),{pickerProps:c,inputProps:d,wrapperProps:f}=ys(r,z5),p=E5(r)!==null,h=Yt({},d,u,{ref:n,validationError:p,components:o});return Te.jsx(Jb,Yt({displayStaticWrapperAs:i,components:o,componentsProps:a,className:s},f,{children:Te.jsx(vs,Yt({},c,{toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:l,DateInputProps:h,components:o,componentsProps:a},u))}))}),_xe=["displayStaticWrapperAs","onChange","ToolbarComponent","value","components","componentsProps","hideTabs","className"],Txe=ge.forwardRef(function(t,n){const r=Y5(t,"MuiStaticDateTimePicker"),{displayStaticWrapperAs:l="mobile",ToolbarComponent:i=Z5,components:o,componentsProps:a,hideTabs:s=l==="desktop",className:u}=r,c=tr(r,_xe),{pickerProps:d,inputProps:f,wrapperProps:p}=ys(r,X5),h=J5(r)!==null,g=ge.useMemo(()=>Yt({Tabs:Qb},o),[o]),b=Yt({},f,c,{ref:n,validationError:h,components:g,componentsProps:a});return Te.jsx(Jb,Yt({displayStaticWrapperAs:l,components:g,componentsProps:a,className:u},p,{children:Te.jsx(vs,Yt({},d,{toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:i,DateInputProps:b,components:g,componentsProps:a,hideTabs:s},c))}))}),Sxe=["displayStaticWrapperAs","onChange","ToolbarComponent","value","components","componentsProps","className"],kxe=ge.forwardRef(function(t,n){const r=e4(t,"MuiStaticTimePicker"),{displayStaticWrapperAs:l="mobile",ToolbarComponent:i=n4,components:o,componentsProps:a,className:s}=r,u=tr(r,Sxe),c=Q5(r)!==null,{pickerProps:d,inputProps:f,wrapperProps:p}=ys(r,t4),h=Yt({},f,u,{ref:n,validationError:c,components:o,componentsProps:a});return Te.jsx(Jb,Yt({displayStaticWrapperAs:l,components:o,componentsProps:a,className:s},p,{children:Te.jsx(vs,Yt({},d,{toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:i,DateInputProps:h,components:o,componentsProps:a},u))}))}),Cxe=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],Mxe=ge.forwardRef(function(t,n){const r=Tr({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:l="@media (pointer: fine)",DialogProps:i,PopperProps:o,TransitionComponent:a}=r,s=tr(r,Cxe);return vb(l,{defaultMatches:!0})?Te.jsx(iq,Yt({ref:n,PopperProps:o,TransitionComponent:a},s)):Te.jsx(lq,Yt({ref:n,DialogProps:i},s))});/** @license MUI X v5.0.20 * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */const Mxe=Object.freeze(Object.defineProperty({__proto__:null,CalendarPicker:WW,CalendarPickerSkeleton:i1e,ClockPicker:XW,DEFAULT_LOCALE:xW,DatePicker:Obe,DateTimePicker:axe,DateTimePickerTabs:Qb,DesktopDatePicker:tq,DesktopDateTimePicker:aq,DesktopTimePicker:iq,LocalizationProvider:kve,MobileDatePicker:nq,MobileDateTimePicker:oq,MobileTimePicker:lq,MonthPicker:_W,MuiPickersAdapterContext:P5,PickerStaticWrapper:Jb,PickersDay:AW,StaticDatePicker:xxe,StaticDateTimePicker:_xe,StaticTimePicker:Sxe,TimePicker:Cxe,YearPicker:zW,beBY:wve,calendarPickerClasses:Yye,calendarPickerSkeletonClasses:e1e,clockClasses:x1e,clockNumberClasses:Oh,clockPickerClasses:I1e,clockPointerClasses:p1e,csCZ:V0e,datePickerToolbarClasses:G1e,dateTimePickerTabsClasses:Kbe,dateTimePickerToolbarClasses:jbe,dayPickerClasses:nye,deDE:I0e,enUS:Q0e,esES:F0e,faIR:z0e,fiFI:q0e,frFR:X0e,getCalendarPickerSkeletonUtilityClass:qW,getCalendarPickerUtilityClass:BW,getClockPickerUtilityClass:YW,getMonthPickerUtilityClass:wW,getPickersDayUtilityClass:MW,getYearPickerUtilityClass:jW,huHU:Z0e,isIS:pve,itIT:ove,jaJP:mve,koKR:dve,monthPickerClasses:Cve,nbNO:eve,nlNL:M0e,pickersCalendarHeaderClasses:Pye,pickersDayClasses:Ph,pickersFadeTransitionGroupClasses:Ive,pickersMonthClasses:VS,pickersSlideTransitionClasses:to,pickersYearClasses:Hu,plPL:O0e,ptBR:D0e,ruRU:Sve,svSE:nve,timePickerToolbarClasses:Ld,trTR:R0e,ukUA:vve,urPK:bve,yearPickerClasses:qye,zhCN:sve},Symbol.toStringTag,{value:"Module"})),sq=er(Mxe);var nE;function Pxe(){return nE||(nE=1,function(e){var t=Hn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(jr()),r=t(kf()),l=t(Rb()),i=t(Lb()),o=t(x5()),a=t(_5()),s=t(T5()),u=t(ge),c=t(Ib),d=t(Cc),f=t(GB),p=t(S5),h=t(YB),g=t(phe),b=t(hhe),v=t(mhe),m=mW,y=sq,x=t(Kr),_=["columnDef","rowData","onRowDataChange","errorState","autoFocus","onBulkEditRowChanged","scrollWidth"],w=["helperText","error"],S=["helperText","error"];function k(O){var D=C();return function(){var E=(0,s.default)(O),I;if(D){var A=(0,s.default)(this).constructor;I=Reflect.construct(E,arguments,A)}else I=E.apply(this,arguments);return(0,a.default)(this,I)}}function C(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var T=function(O){(0,o.default)(P,O);var D=k(P);function P(){return(0,l.default)(this,P),D.apply(this,arguments)}return(0,i.default)(P,[{key:"getProps",value:function(){var I=this.props;I.columnDef,I.rowData,I.onRowDataChange,I.errorState,I.autoFocus,I.onBulkEditRowChanged,I.scrollWidth;var A=(0,r.default)(I,_);return A}},{key:"renderLookupField",value:function(){var I=this,A=this.getProps(),F=A.helperText,j=A.error,B=(0,r.default)(A,w);return u.default.createElement(h.default,{error:!!j},u.default.createElement(f.default,(0,n.default)({},B,{value:this.props.value===void 0?"":this.props.value,onChange:function(N){return I.props.onChange(N.target.value)},style:{fontSize:13},inputProps:{autoFocus:this.props.autoFocus},SelectDisplayProps:{"aria-label":this.props.columnDef.title}}),Object.keys(this.props.columnDef.lookup).map(function(z){return u.default.createElement(p.default,{key:z,value:z},I.props.columnDef.lookup[z])})),!!F&&u.default.createElement(g.default,null,F))}},{key:"renderBooleanField",value:function(){var I=this,A=this.getProps(),F=A.helperText,j=A.error,B=(0,r.default)(A,S);return u.default.createElement(h.default,{error:!!j,component:"fieldset"},u.default.createElement(b.default,null,u.default.createElement(v.default,{label:"",control:u.default.createElement(d.default,(0,n.default)({},B,{value:String(this.props.value),checked:!!this.props.value,onChange:function(N){return I.props.onChange(N.target.checked)},style:{padding:0,width:24,marginLeft:9},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title}}))})),u.default.createElement(g.default,null,F))}},{key:"renderDateField",value:function(){var I=this.props.columnDef.dateSetting&&this.props.columnDef.dateSetting.format?this.props.columnDef.dateSetting.format:"dd.MM.yyyy";return u.default.createElement(y.LocalizationProvider,{dateAdapter:m.AdapterDateFns,locale:this.props.locale},u.default.createElement(y.DatePicker,(0,n.default)({},this.getProps(),{renderInput:function(F){return u.default.createElement(c.default,F)},format:I,value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderTimeField",value:function(){return u.default.createElement(y.LocalizationProvider,{dateAdapter:m.AdapterDateFns,locale:this.props.locale},u.default.createElement(y.TimePicker,(0,n.default)({},this.getProps(),{renderInput:function(A){return u.default.createElement(c.default,A)},format:"HH:mm:ss",value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderDateTimeField",value:function(){return u.default.createElement(y.LocalizationProvider,{dateAdapter:m.AdapterDateFns,locale:this.props.locale},u.default.createElement(y.DateTimePicker,(0,n.default)({},this.getProps(),{renderInput:function(A){return u.default.createElement(c.default,A)},format:"dd.MM.yyyy HH:mm:ss",value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderTextField",value:function(){var I=this;return u.default.createElement(c.default,(0,n.default)({},this.getProps(),{variant:"standard",fullWidth:!0,type:this.props.columnDef.type==="numeric"?"number":"text",placeholder:this.props.columnDef.editPlaceholder||this.props.columnDef.title,value:this.props.value===void 0?"":this.props.value,onChange:function(F){return I.props.onChange(I.props.columnDef.type==="numeric"?F.target.valueAsNumber:F.target.value)},InputProps:{style:{minWidth:50,fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title,style:this.props.columnDef.type==="numeric"?{textAlign:"right"}:{}}}))}},{key:"renderCurrencyField",value:function(){var I=this;return u.default.createElement(c.default,(0,n.default)({},this.getProps(),{variant:"standard",placeholder:this.props.columnDef.editPlaceholder||this.props.columnDef.title,type:"number",value:this.props.value===void 0?"":this.props.value,onChange:function(F){var j=F.target.valueAsNumber;return!j&&j!==0&&(j=void 0),I.props.onChange(j)},InputProps:{style:{fontSize:13,textAlign:"right"}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title,style:{textAlign:"right"}},onKeyDown:this.props.onKeyDown}))}},{key:"render",value:function(){var I="ok";return this.props.columnDef.editComponent?I=this.props.columnDef.editComponent(this.props):this.props.columnDef.lookup?I=this.renderLookupField():this.props.columnDef.type==="boolean"?I=this.renderBooleanField():this.props.columnDef.type==="date"?I=this.renderDateField():this.props.columnDef.type==="time"?I=this.renderTimeField():this.props.columnDef.type==="datetime"?I=this.renderDateTimeField():this.props.columnDef.type==="currency"?I=this.renderCurrencyField():I=this.renderTextField(),I}}]),P}(u.default.Component);T.propTypes={value:x.default.any,onChange:x.default.func.isRequired,columnDef:x.default.object.isRequired,locale:x.default.object,rowData:x.default.object,onRowDataChange:x.default.func,errorState:x.default.func,autoFocus:x.default.bool,onBulkEditRowChanged:x.default.func,scrollWidth:x.default.number,onKeyDown:x.default.func};var M=T;e.default=M}(E_)),E_}var G_={},E0={},rE;function uq(){if(rE)return E0;rE=1;var e=Hn;Object.defineProperty(E0,"__esModule",{value:!0}),E0.validateInput=i;var t=e(za()),n=e(Pa());function r(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(o);a&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(o,c).enumerable})),s.push.apply(s,u)}return s}function l(o){for(var a=1;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var m=function(x){(0,i.default)(w,x);var _=b(w);function w(S){var k;return(0,n.default)(this,w),k=_.call(this,S),(0,s.default)((0,l.default)(k),"getStyle",function(){var C={boxShadow:"2px 0px 15px rgba(125,147,178,.25)",color:"inherit",width:k.props.columnDef.tableData.width,boxSizing:"border-box",fontSize:"inherit",fontFamily:"inherit",fontWeight:"inherit",padding:"0 16px"};return typeof k.props.columnDef.cellStyle=="function"?C=g(g({},C),k.props.columnDef.cellStyle(k.state.value,k.props.rowData)):C=g(g({},C),k.props.columnDef.cellStyle),typeof k.props.cellEditable.cellStyle=="function"?C=g(g({},C),k.props.cellEditable.cellStyle(k.state.value,k.props.rowData,k.props.columnDef)):C=g(g({},C),k.props.cellEditable.cellStyle),C}),(0,s.default)((0,l.default)(k),"handleKeyDown",function(C){C.keyCode===13?k.onApprove():C.keyCode===27&&k.onCancel()}),(0,s.default)((0,l.default)(k),"onApprove",function(){var C=(0,p.validateInput)(k.props.columnDef,k.state.value).isValid;C&&k.setState({isLoading:!0},function(){k.props.cellEditable.onCellEditApproved(k.state.value,k.props.getFieldValue(k.props.rowData,k.props.columnDef),k.props.rowData,k.props.columnDef).then(function(){k.setState({isLoading:!1}),k.props.onCellEditFinished(k.props.rowData,k.props.columnDef)}).catch(function(T){k.setState({isLoading:!1})})})}),(0,s.default)((0,l.default)(k),"onCancel",function(){k.props.onCellEditFinished(k.props.rowData,k.props.columnDef)}),k.state={errorState:{isValid:!0,helperText:""},isLoading:!1,value:S.getFieldValue(k.props.rowData,k.props.columnDef,!1)},k}return(0,r.default)(w,[{key:"renderActions",value:function(){if(this.state.isLoading)return u.default.createElement("div",{style:{display:"flex",justifyContent:"center",width:60}},u.default.createElement(f.default,{size:20}));var k=[{icon:this.props.icons.Check,tooltip:this.props.localization.saveTooltip,onClick:this.onApprove,disabled:this.state.isLoading||!this.state.errorState.isValid},{icon:this.props.icons.Clear,tooltip:this.props.localization.cancelTooltip,onClick:this.onCancel,disabled:this.state.isLoading}];return u.default.createElement(this.props.components.Actions,{actions:k,components:this.props.components,size:"small"})}},{key:"handleChange",value:function(k){var C=(0,p.validateInput)(this.props.columnDef,k);this.setState({errorState:C,value:k})}},{key:"render",value:function(){var k=this;return u.default.createElement(d.default,{size:this.props.size,style:this.getStyle(),padding:"none"},u.default.createElement("div",{style:{display:"flex",alignItems:"center"}},u.default.createElement("div",{style:{flex:1,marginRight:4}},u.default.createElement(this.props.components.EditField,{columnDef:this.props.columnDef,value:this.state.value,error:!this.state.errorState.isValid,helperText:this.state.errorState.helperText,onChange:function(T){return k.handleChange(T)},onKeyDown:this.handleKeyDown,disabled:this.state.isLoading,rowData:this.props.rowData,autoFocus:!0})),this.renderActions()))}}]),w}(u.default.Component);m.defaultProps={columnDef:{},localization:{saveTooltip:"Save",cancelTooltip:"Cancel"}},m.propTypes={cellEditable:c.default.object.isRequired,columnDef:c.default.object.isRequired,components:c.default.object.isRequired,errorState:c.default.oneOfType([c.default.object,c.default.bool]),icons:c.default.object.isRequired,localization:c.default.object.isRequired,onCellEditFinished:c.default.func.isRequired,rowData:c.default.object.isRequired,size:c.default.string,getFieldValue:c.default.func.isRequired};var y=m;e.default=y}(G_)),G_}var Y_={},X_={exports:{}},K_={exports:{}},oE;function Axe(){return oE||(oE=1,function(e){function t(n){if(Array.isArray(n))return n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(K_)),K_.exports}var Z_={exports:{}},iE;function Dxe(){return iE||(iE=1,function(e){function t(n,r){var l=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(l!=null){var i,o,a,s,u=[],c=!0,d=!1;try{if(a=(l=l.call(n)).next,r===0){if(Object(l)!==l)return;c=!1}else for(;!(c=(i=a.call(l)).done)&&(u.push(i.value),u.length!==r);c=!0);}catch(f){d=!0,o=f}finally{try{if(!c&&l.return!=null&&(s=l.return(),Object(s)!==s))return}finally{if(d)throw o}}return u}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Z_)),Z_.exports}var Q_={exports:{}},lE;function Exe(){return lE||(lE=1,function(e){function t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Q_)),Q_.exports}var sE;function vu(){return sE||(sE=1,function(e){var t=Axe(),n=Dxe(),r=HB(),l=Exe();function i(o,a){return t(o)||n(o,a)||r(o,a)||l()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}(X_)),X_.exports}const Mf=er(Wae),Mc=er(cde);var uE;function Rxe(){return uE||(uE=1,function(e){var t=Hn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(jr()),r=t(za()),l=t(Pa()),i=t(vu()),o=t(ge),a=t(Kr),s=t(b5),u=t(Mf),c=t(Mc);function d(g,b){var v=Object.keys(g);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(g);b&&(m=m.filter(function(y){return Object.getOwnPropertyDescriptor(g,y).enumerable})),v.push.apply(v,m)}return v}function f(g){for(var b=1;b0&&i.default.createElement(r.default,{colSpan:a.options.detailPanelOffset.left}),i.default.createElement(r.default,{size:a.size,colSpan:a.renderColumns.length-a.options.detailPanelOffset.left-a.options.detailPanelOffset.right,padding:"none"},i.default.createElement(n.default,{in:d,timeout:"auto",unmountOnExit:!0,mountOnEnter:!0,onExited:function(){b.current=void 0,g()}},m({rowData:a.data}))))}return R0}var Na={},fE;function bs(){if(fE)return Na;fE=1;var e=Hn;Object.defineProperty(Na,"__esModule",{value:!0}),Na.widthToNumber=Na.selectionMaxWidth=Na.rowActions=Na.reducePercentsInCalc=Na.parseFirstLastPageButtons=Na.elementSize=Na.baseIconSize=Na.actionsColumnWidth=void 0;var t=e(za()),n=e(Pa());function r(p,h){var g=Object.keys(p);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(p);h&&(b=b.filter(function(v){return Object.getOwnPropertyDescriptor(p,v).enumerable})),g.push.apply(g,b)}return g}function l(p){for(var h=1;h1){var v=b[1];return h.replace(/\d*%/,"".concat(g*(v/100),"px"))}return h.replace(/\d*%/,"".concat(g,"px"))};Na.reducePercentsInCalc=c;var d=function(h){return typeof h=="number"?h:!h||!h.match(/^\s*\d+(px)?\s*$/)?NaN:Number(h.replace(/px$/,""))};Na.widthToNumber=d;var f=function(h,g){var b={first:!0,last:!0};return typeof h=="boolean"?b={first:h,last:h}:(0,n.default)(h)==="object"&&(b=l(l({},b),h)),g&&(b={first:b.last,last:b.first}),b};return Na.parseFirstLastPageButtons=f,Na}var L0={},pE;function Nxe(){if(pE)return L0;pE=1;var e=Hn;Object.defineProperty(L0,"__esModule",{value:!0}),L0.useDoubleClick=n;var t=e(ge);function n(r,l){var i=t.default.useRef(0),o=t.default.useRef(null),a=t.default.useRef(null),s=t.default.useRef(null);t.default.useEffect(function(){a.current=l,s.current=r});var u=function(){clearTimeout(o.current),o.current=null,i.current=0},c=t.default.useCallback(function(d){var f=i.current+1===2,p=o.current;if(p&&f&&(u(),a.current&&a.current(d)),!p){i.current=i.current+1;var h=function(){u(),s.current&&s.current(d)};if(a.current){var g=setTimeout(h,250);o.current=g}else h()}},[]);return c}return L0}var hE;function Fxe(){return hE||(hE=1,function(e){var t=Hn,n=Pa();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Cf()),l=t(ms),i=t(Mc),o=t(Mf),a=t(Cc),s=t(jr()),u=t(zl),c=t(za()),d=t(kf()),f=t(ge),p=t(Kr),h=$xe(),g=w(bs()),b=Nxe(),v=ux(),m=sl(),y=["forwardedRef"],x=["data","components","detailPanel","getFieldValue","isTreeData","onRowSelected","onRowEditStarted","onTreeExpandChanged","onToggleDetailPanel","onEditingCanceled","onEditingApproved","hasAnyEditingRow","treeDataMaxLevel","path","actions","errorState","cellEditable","onCellEditStarted","onCellEditFinished","persistEvents","scrollWidth","onRowClick","onRowDoubleClick","columns"];function _(M){if(typeof WeakMap!="function")return null;var O=new WeakMap,D=new WeakMap;return(_=function(E){return E?D:O})(M)}function w(M,O){if(M&&M.__esModule)return M;if(M===null||n(M)!=="object"&&typeof M!="function")return{default:M};var D=_(O);if(D&&D.has(M))return D.get(M);var P={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var I in M)if(I!=="default"&&Object.prototype.hasOwnProperty.call(M,I)){var A=E?Object.getOwnPropertyDescriptor(M,I):null;A&&(A.get||A.set)?Object.defineProperty(P,I,A):P[I]=M[I]}return P.default=M,D&&D.set(M,P),P}function S(M,O){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(M);O&&(P=P.filter(function(E){return Object.getOwnPropertyDescriptor(M,E).enumerable})),D.push.apply(D,P)}return D}function k(M){for(var O=1;O-1)}).sort(function(Ae,Le){return Ae.tableData.columnOrder-Le.tableData.columnOrder}).map(function(Ae){var Le=D.getFieldValue(D.data,Ae);if(D.data.tableData.editCellList&&D.data.tableData.editCellList.find(function(Ne){return Ne.tableData.id===Ae.tableData.id}))return f.default.createElement(D.components.EditCell,{getFieldValue:D.getFieldValue,components:D.components,icons:I,localization:P,columnDef:Ae,size:Oe,key:"cell-"+D.data.tableData.id+"-"+Ae.tableData.id,rowData:D.data,cellEditable:D.cellEditable,onCellEditFinished:D.onCellEditFinished,scrollWidth:U});var Re=Ae.editable!=="never"&&!!D.cellEditable;Re&&D.cellEditable.isCellEditable&&(Re=D.cellEditable.isCellEditable(D.data,Ae));var Ie="cell-".concat(D.data.tableData.id,"-").concat(Ae.tableData.id);return f.default.createElement(D.components.Cell,{size:Oe,errorState:D.errorState,columnDef:k({cellStyle:E.cellStyle},Ae),value:Le,key:Ie,rowData:D.data,cellEditable:Re,onCellEditStarted:D.onCellEditStarted,scrollWidth:U})});return Se},Oe=g.elementSize(A),Pe=W.length*g.baseIconSize(A),ce=function(Se){return f.default.createElement(u.default,{size:Oe,padding:"none",key:"key-actions-column",style:k({width:Pe,padding:"0px 5px",boxSizing:"border-box"},E.actionsCellStyle)},f.default.createElement(D.components.Actions,{data:D.data,actions:Se,components:D.components,size:Oe,disabled:D.hasAnyEditingRow}))},we=function(){var Se=E.selectionProps||{};typeof Se=="function"&&(Se=Se(D.data));var Ae=g.selectionMaxWidth(A,D.treeDataMaxLevel)||0,Le=Oe!=="medium"?{padding:"4px"}:void 0;return f.default.createElement(u.default,{size:Oe,padding:"none",key:"key-selection-column",style:{width:Ae}},f.default.createElement(a.default,(0,s.default)({size:Oe,checked:D.data.tableData.checked===!0,onClick:function(Ie){return Ie.stopPropagation()},value:D.data.tableData.id.toString(),onChange:function(Ie){D.onRowSelected(Ie,D.path,D.data)},style:Le},Se)))},Z=function(Se){return{transform:Se?"rotate(90deg)":"none"}},re=function(){return E.showDetailPanelIcon?typeof D.detailPanel=="function"?f.default.createElement(u.default,{size:Oe,padding:"none",key:"key-detail-panel-column",style:k({width:42,textAlign:"center"},E.detailPanelColumnStyle)},f.default.createElement(o.default,{"aria-label":"Detail panel visibility toggle",size:Oe,style:k({transition:"all ease 200ms"},Z(D.data.tableData.showDetailPanel)),onClick:function(Ae){D.onToggleDetailPanel(D.path,D.detailPanel),Ae.stopPropagation()}},f.default.createElement(I.DetailPanel,null))):f.default.createElement(u.default,{size:Oe,padding:"none",key:"key-detail-panel-column"},f.default.createElement("div",{style:k({width:42*D.detailPanel.length,textAlign:"center",display:"flex"},E.detailPanelColumnStyle)},D.detailPanel.map(function(Se,Ae){typeof Se=="function"&&(Se=Se(D.data));var Le=(D.data.tableData.showDetailPanel||"").toString()===Se.render.toString(),Re=f.default.createElement(I.DetailPanel,null),Ie=!0;return Le?Se.openIcon?(Re=f.default.createElement(v.MTableCustomIcon,{icon:Se.openIcon,iconProps:Se.iconProps}),Ie=!1):Se.icon&&(Re=f.default.createElement(v.MTableCustomIcon,{icon:Se.icon,iconProps:Se.iconProps})):Se.icon&&(Re=f.default.createElement(v.MTableCustomIcon,{icon:Se.icon,iconProps:Se.iconProps}),Ie=!1),Re=f.default.createElement(o.default,{"aria-label":"Detail panel visibility toggle",size:Oe,key:"key-detail-panel-"+Ae,style:k({transition:"all ease 200ms"},Z(Ie&&Le)),disabled:Se.disabled,onClick:function(ze){D.onToggleDetailPanel(D.path,Se.render),ze.stopPropagation()}},Re),Se.tooltip&&(Re=f.default.createElement(i.default,{key:"key-detail-panel-"+Ae,title:Se.tooltip},Re)),Re}))):null},de=function(){return D.data.tableData.childRows&&D.data.tableData.childRows.length>0?f.default.createElement(u.default,{size:Oe,padding:"none",key:"key-tree-data-column",style:{width:48+9*(D.treeDataMaxLevel-2)}},f.default.createElement(o.default,{"aria-label":"Detail panel visibility toggle",size:Oe,style:k({transition:"all ease 200ms",marginLeft:D.level*9},Z(D.data.tableData.isTreeExpanded)),onClick:function(Ae){D.onTreeExpandChanged(D.path,D.data),Ae.stopPropagation()}},f.default.createElement(I.DetailPanel,null))):f.default.createElement(u.default,{padding:"none",key:"key-tree-data-column"})},_e=function(Se,Ae){var Le={};return typeof E.rowStyle=="function"?Le=k(k({},Le),E.rowStyle(D.data,Se,Ae,D.hasAnyEditingRow)):E.rowStyle&&(Le=k(k({},Le),E.rowStyle)),(Q||V)&&(Le.cursor="pointer"),D.hasAnyEditingRow&&(Le.opacity=Le.opacity?Le.opacity:.2),Le},ue=Ce();E.selection&&ue.splice(0,0,we());var me=g.rowActions(D);if(me.length>0){if(E.actionsColumnIndex===-1)ue.push(ce(me));else if(E.actionsColumnIndex>=0){var xe=0;E.selection&&(xe=1),ue.splice(E.actionsColumnIndex+xe,0,ce(me))}}return D.detailPanel&&(E.detailPanelColumnAlignment==="right"?ue.push(re()):ue.splice(0,0,re())),D.isTreeData&&ue.splice(0,0,de()),D.columns.filter(function(ye){return ye.tableData.groupOrder>-1}).forEach(function(ye){ue.splice(0,0,f.default.createElement(u.default,{size:Oe,padding:"none",key:"key-group-cell"+ye.tableData.id}))}),f.default.createElement(f.default.Fragment,null,f.default.createElement(l.default,(0,s.default)({ref:O,selected:q},K,{onClick:function(Se){ee&&Se.persist(),!q&&ke(Se)},hover:!!(Q||V),style:_e(D.index,D.level),"data-testid":"mtablebodyrow"}),ue),f.default.createElement(h.MTableDetailPanel,{options:E,data:D.data,detailPanel:D.detailPanel,renderColumns:ue,size:Oe}),D.data.tableData.childRows&&D.data.tableData.isTreeExpanded&&D.data.tableData.childRows.map(function(ye,Se){return ye.tableData.editing?f.default.createElement(D.components.EditRow,{columns:ne,components:D.components,data:ye,icons:I,localization:P,getFieldValue:D.getFieldValue,key:Se,mode:ye.tableData.editing,isTreeData:D.isTreeData,detailPanel:D.detailPanel,onEditingCanceled:N,onEditingApproved:R,errorState:D.errorState}):f.default.createElement(D.components.Row,(0,s.default)({},D,{data:ye,index:Se,key:Se,level:D.level+1,path:[].concat((0,r.default)(D.path),[ye.tableData.uuid]),onEditingCanceled:N,onEditingApproved:R,hasAnyEditingRow:D.hasAnyEditingRow,treeDataMaxLevel:Y,errorState:D.errorState,cellEditable:H,onCellEditStarted:G,onCellEditFinished:te}))}))}C.defaultProps={actions:[],index:0,data:{},path:[],persistEvents:!1},C.propTypes={forwardedRef:p.default.element,actions:p.default.array,index:p.default.number.isRequired,data:p.default.object.isRequired,detailPanel:p.default.oneOfType([p.default.func,p.default.arrayOf(p.default.oneOfType([p.default.object,p.default.func]))]),hasAnyEditingRow:p.default.bool,onRowSelected:p.default.func,path:p.default.arrayOf(p.default.oneOfType([p.default.string,p.default.number])),persistEvents:p.default.bool,treeDataMaxLevel:p.default.number,getFieldValue:p.default.func.isRequired,columns:p.default.array,onToggleDetailPanel:p.default.func.isRequired,onRowClick:p.default.func,onRowDoubleClick:p.default.func,onEditingApproved:p.default.func,onEditingCanceled:p.default.func,errorState:p.default.oneOfType([p.default.object,p.default.bool])};var T=f.default.forwardRef(function(O,D){return f.default.createElement(C,(0,s.default)({},O,{forwardedRef:D}))});e.default=T}(e3)),e3}var t3={},As={};const jxe=er(f0e);var mE;function zxe(){if(mE)return As;mE=1;var e=Hn;Object.defineProperty(As,"__esModule",{value:!0}),As.getCurrencyValue=i,As.getEmptyValue=l,As.getRenderValue=o,As.isoDateRegex=void 0;var t=e(ge),n=e(jxe),r=/^\d{4}-(0[1-9]|1[0-2])-([12]\d|0[1-9]|3[01])([T\s](([01]\d|2[0-3])\:[0-5]\d|24\:00)(\:[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3])\:?([0-5]\d)?)?)?$/;As.isoDateRegex=r;function l(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof a=="function"?s.columnDef.emptyValue(s.rowData):a}function i(a,s){return a!==void 0?new Intl.NumberFormat(a.locale!==void 0?a.locale:"en-US",{style:"currency",currency:a.currencyCode!==void 0?a.currencyCode:"USD",minimumFractionDigits:a.minimumFractionDigits!==void 0?a.minimumFractionDigits:2,maximumFractionDigits:a.maximumFractionDigits!==void 0?a.maximumFractionDigits:2}).format(s!==void 0?s:0):new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(s!==void 0?s:0)}function o(a,s,u){var c=a.columnDef.dateSetting&&a.columnDef.dateSetting.locale?a.columnDef.dateSetting.locale:void 0;if(a.columnDef.emptyValue!==void 0&&(a.value===void 0||a.value===null))return l(a.columnDef.emptyValue,a);if(a.rowData===void 0&&a.value&&a.columnDef.groupRender)return a.columnDef.groupRender(a.value);if(a.columnDef.render&&a.rowData)return a.columnDef.render(a.rowData);if(a.columnDef.type==="boolean"){var d={textAlign:"left",verticalAlign:"middle",width:48};return a.value?t.default.createElement(s.Check,{style:d}):t.default.createElement(s.ThirdStateCheck,{style:d})}else{if(a.columnDef.type==="date")return a.value instanceof Date?a.value.toLocaleDateString(c):r.exec(a.value)?(0,n.default)(a.value).toLocaleDateString(c):a.value;if(a.columnDef.type==="time")return a.value instanceof Date?a.value.toLocaleTimeString():r.exec(a.value)?(0,n.default)(a.value).toLocaleTimeString(c):a.value;if(a.columnDef.type==="datetime")return a.value instanceof Date?a.value.toLocaleString():r.exec(a.value)?(0,n.default)(a.value).toLocaleString(c):a.value;if(a.columnDef.type==="currency")return i(a.columnDef.currencySetting,a.value);if(typeof a.value=="boolean")return a.value.toString()}return a.value}return As}var Ds={},gE;function ex(){if(gE)return Ds;gE=1;var e=Hn,t=Pa();Object.defineProperty(Ds,"__esModule",{value:!0}),Ds.getStyle=c,Ds.setObjectByKey=Ds.selectFromObject=void 0;var n=e(za()),r=i(bs());function l(d){if(typeof WeakMap!="function")return null;var f=new WeakMap,p=new WeakMap;return(l=function(g){return g?p:f})(d)}function i(d,f){if(d&&d.__esModule)return d;if(d===null||t(d)!=="object"&&typeof d!="function")return{default:d};var p=l(f);if(p&&p.has(d))return p.get(d);var h={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in d)if(b!=="default"&&Object.prototype.hasOwnProperty.call(d,b)){var v=g?Object.getOwnPropertyDescriptor(d,b):null;v&&(v.get||v.set)?Object.defineProperty(h,b,v):h[b]=d[b]}return h.default=d,p&&p.set(d,h),h}function o(d,f){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(d);f&&(h=h.filter(function(g){return Object.getOwnPropertyDescriptor(d,g).enumerable})),p.push.apply(p,h)}return p}function a(d){for(var f=1;f-1)}).sort(function(U,Q){return U.tableData.columnOrder-Q.tableData.columnOrder}).map(function(U,Q){var V=k.getFieldValue(D.data,U,!1),X=function(Ce,Oe){var Pe={color:"inherit"};return typeof Ce.cellStyle=="function"?Pe=_(_({},Pe),Ce.cellStyle(Oe,k.data)):Pe=_(_({},Pe),Ce.cellStyle),Ce.disableClick&&(Pe.cursor="default"),_({},Pe)};Q===0&&24+k.level*20;var K=!1;if(U.editable===void 0&&(K=!0),U.editable==="always"&&(K=!0),U.editable==="onAdd"&&k.mode==="add"&&(K=!0),U.editable==="onUpdate"&&k.mode==="update"&&(K=!0),typeof U.editable=="function"&&(K=U.editable(U,k.data)),!U.field||!K){var ne=k.getFieldValue(D.data,U);return a.default.createElement(k.components.Cell,{size:G,icons:C,columnDef:U,value:ne,key:U.tableData.id,rowData:k.data,style:X(U,V)})}else{var ae=U.editComponent,ie=(0,l.default)(U,b),se=ae||k.components.EditField,pe=(0,g.validateInput)(U,D.data);return te===-1&&(te=Q),a.default.createElement(s.default,{size:G,key:U.tableData.id,align:["numeric"].indexOf(U.type)!==-1?"right":"left",style:X(U,V)},a.default.createElement(se,{key:U.tableData.id,columnDef:ie,autoFocus:te===Q,value:V,error:!pe.isValid,helperText:pe.helperText,locale:k.localization.dateTimePickerLocalization,rowData:D.data,onChange:function(Ce){var Oe=_({},D.data);(0,f.setObjectByKey)(Oe,U.field,Ce),P({data:Oe}),k.onBulkEditRowChanged&&k.onBulkEditRowChanged(k.data,Oe)},onRowDataChange:function(Ce){P({data:Ce}),k.onBulkEditRowChanged&&k.onBulkEditRowChanged(k.data,Ce)}}))}});return ee}var I=k.columns.every(function(G){var te=(0,g.validateInput)(G,D.data);return te.isValid}),A=function(){I&&k.onEditingApproved(k.mode,D.data,k.data)};function F(){if(k.mode!=="bulk"){var G=h.elementSize(k),te=[{icon:C.Check,tooltip:k.localization.saveTooltip,disabled:!I,onClick:A},{icon:C.Clear,tooltip:k.localization.cancelTooltip,onClick:function(){k.onEditingCanceled(k.mode,k.data)}}];return a.default.createElement(s.default,{size:G,padding:"none",key:"key-actions-column",style:_({width:42*te.length,padding:"0px 5px"},T.editCellStyle)},a.default.createElement(k.components.Actions,{data:k.data,actions:te,components:k.components,size:G}))}}function j(){var G={borderBottom:"1px solid red"};return G}var B=function(te){te.keyCode===13&&te.target.type!=="textarea"&&te.target.type!=="button"||te.keyCode===13&&te.target.type==="textarea"&&te.shiftKey?A():te.keyCode===27&&k.onEditingCanceled(k.mode,k.data)},z=h.elementSize(k),N;if(k.mode==="add"||k.mode==="update"||k.mode==="bulk")N=E();else{var R=k.columns.filter(function(G){return!G.hidden&&!(G.tableData.groupOrder>-1)}).length;N=[a.default.createElement(s.default,{size:z,padding:T.actionsColumnIndex===0?"none":void 0,key:"key-edit-cell",colSpan:R},a.default.createElement(c.default,{variant:"h6"},k.localization.deleteText))]}if(T.selection&&N.splice(0,0,a.default.createElement(s.default,{padding:"none",key:"key-selection-cell"})),k.isTreeData&&N.splice(0,0,a.default.createElement(s.default,{padding:"none",key:"key-tree-data-cell"})),T.actionsColumnIndex===-1)N.push(F());else if(T.actionsColumnIndex>=0){var q=0;T.selection&&(q=1),k.isTreeData&&(q=1,T.selection&&N.splice(1,1)),N.splice(T.actionsColumnIndex+q,0,F())}if(k.detailPanel&&T.showDetailPanelIcon!==!1&&k.mode!=="bulk"){var Y=T.detailPanelColumnAlignment,L=Y==="left"?0:N.length;N.splice(L,0,a.default.createElement(s.default,{padding:"none",key:"key-detail-panel-cell"}))}k.columns.filter(function(G){return G.tableData.groupOrder>-1}).forEach(function(G){N.splice(0,0,a.default.createElement(s.default,{padding:"none",key:"key-group-cell"+G.tableData.id}))}),k.detailPanel,k.isTreeData,k.onRowClick,k.onRowSelected,k.onTreeExpandChanged,k.onToggleDetailPanel,k.onEditingApproved,k.onEditingCanceled,k.getFieldValue,k.components,k.columns,k.errorState,k.onBulkEditRowChanged,k.bulkEditChangedRows,k.scrollWidth;var W=k.forwardedRef,H=(0,l.default)(k,v);return a.default.createElement(u.default,(0,r.default)({onKeyDown:B},H,{ref:W,style:j()}),N)}w.defaultProps={actions:[],index:0,options:{},path:[],onBulkEditRowChanged:function(){}},w.propTypes={actions:d.default.array,index:d.default.number.isRequired,data:d.default.object,detailPanel:d.default.oneOfType([d.default.func,d.default.arrayOf(d.default.oneOfType([d.default.object,d.default.func]))]),onRowSelected:d.default.func,path:d.default.arrayOf(d.default.number),columns:d.default.array,onRowClick:d.default.func,onEditingApproved:d.default.func,onEditingCanceled:d.default.func,localization:d.default.object,getFieldValue:d.default.func,errorState:d.default.oneOfType([d.default.object,d.default.bool]),onBulkEditRowChanged:d.default.func};var S=a.default.forwardRef(function(C,T){return a.default.createElement(w,(0,r.default)({},C,{forwardedRef:T}))});e.default=S}(r3)),r3}var a3={},o3={},Tu={},xE;function r4(){if(xE)return Tu;xE=1;var e=Hn;Object.defineProperty(Tu,"__esModule",{value:!0}),Tu.getLocalizedFilterPlaceHolder=Tu.getLocalizationData=void 0;var t=e(za()),n=dq();function r(a,s){var u=Object.keys(a);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(a);s&&(c=c.filter(function(d){return Object.getOwnPropertyDescriptor(a,d).enumerable})),u.push.apply(u,c)}return u}function l(a){for(var s=1;s-1}),d.default.createElement(a.default,{primary:_.lookup[D]}))})))}var y=d.default.forwardRef(function(_,w){return d.default.createElement(m,(0,r.default)({},_,{forwardedRef:w}))});e.default=y}(i3)),i3}var l3={};const cq=er(Due);var TE;function Yxe(){return TE||(TE=1,function(e){var t=Hn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(jr()),r=t(Ib),l=t(cq),i=t(Mc),o=t(ge),a=r4();function s(c){var d,f,p=c.columnDef,h=c.icons,g=c.localization,b=c.hideFilterIcons,v=c.onFilterChanged,m=c.forwardedRef,y=(0,a.getLocalizationData)(g),x=h.Filter;return o.default.createElement(r.default,{ref:m,style:p.type==="numeric"?{float:(d=p.align)!==null&&d!==void 0?d:"right"}:{float:(f=p.align)!==null&&f!==void 0?f:"left"},type:p.type==="numeric"?"number":"search",value:p.tableData.filterValue||"",placeholder:(0,a.getLocalizedFilterPlaceHolder)(p,g),onChange:function(w){v(p.tableData.id,w.target.value)},inputProps:{"aria-label":"filter data by ".concat(p.title)},InputProps:b||p.hideFilterIcon?void 0:{startAdornment:o.default.createElement(l.default,{position:"start"},o.default.createElement(i.default,{title:y.filterTooltip},o.default.createElement(x,null)))}})}var u=o.default.forwardRef(function(d,f){return o.default.createElement(s,(0,n.default)({},d,{forwardedRef:f}))});e.default=u}(l3)),l3}var s3={},SE;function Xxe(){return SE||(SE=1,function(e){var t=Hn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(jr()),r=t(Cc),l=t(ge);function i(a){var s=a.forwardedRef,u=a.columnDef,c=a.onFilterChanged;return l.default.createElement(r.default,{ref:s,inputProps:{"aria-label":"Filter of ".concat(u.title)},indeterminate:u.tableData.filterValue===void 0,checked:u.tableData.filterValue==="checked",onChange:function(){var f;u.tableData.filterValue===void 0?f="checked":u.tableData.filterValue==="checked"&&(f="unchecked"),c(u.tableData.id,f)}})}var o=l.default.forwardRef(function(s,u){return l.default.createElement(i,(0,n.default)({},s,{forwardedRef:u}))});e.default=o}(s3)),s3}var u3={},kE;function Kxe(){return kE||(kE=1,function(e){var t=Hn,n=Pa();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(jr()),l=o(ge);function i(u){if(typeof WeakMap!="function")return null;var c=new WeakMap,d=new WeakMap;return(i=function(p){return p?d:c})(u)}function o(u,c){if(u&&u.__esModule)return u;if(u===null||n(u)!=="object"&&typeof u!="function")return{default:u};var d=i(c);if(d&&d.has(u))return d.get(u);var f={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in u)if(h!=="default"&&Object.prototype.hasOwnProperty.call(u,h)){var g=p?Object.getOwnPropertyDescriptor(u,h):null;g&&(g.get||g.set)?Object.defineProperty(f,h,g):f[h]=u[h]}return f.default=u,d&&d.set(u,f),f}function a(u){var c=u.columnDef,d=u.onFilterChanged,f=u.forwardedRef;return(0,l.createElement)(c.filterComponent,{columnDef:c,onFilterChanged:d,forwardedRef:f})}var s=l.default.forwardRef(function(c,d){return l.default.createElement(a,(0,r.default)({},c,{forwardedRef:d}))});e.default=s}(u3)),u3}var CE;function dq(){return CE||(CE=1,function(e){var t=Hn;Object.defineProperty(e,"__esModule",{value:!0}),e.MTableFilterRow=b,e.default=void 0;var n=t(ms),r=t(zl),l=t(za()),i=t(jr()),o=t(ge),a=t(Kr),s=t(Uxe()),u=t(Gxe()),c=t(Yxe()),d=t(Xxe()),f=t(Kxe()),p=mg();function h(m,y){var x=Object.keys(m);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(m);y&&(_=_.filter(function(w){return Object.getOwnPropertyDescriptor(m,w).enumerable})),x.push.apply(x,_)}return x}function g(m){for(var y=1;y-1)}).sort(function(k,C){return k.tableData.columnOrder-C.tableData.columnOrder}).map(function(k){return o.default.createElement(r.default,{key:k.tableData.id,style:g(g({},y.filterCellStyle),k.filterCellStyle)},x(k))});if(y.selection&&_.splice(0,0,o.default.createElement(r.default,{padding:"none",key:"key-selection-column"})),m.hasActions)if(y.actionsColumnIndex===-1)_.push(o.default.createElement(r.default,{key:"key-action-column"}));else{var w=0;m.selection&&(w=1),_.splice(y.actionsColumnIndex+w,0,o.default.createElement(r.default,{key:"key-action-column"}))}if(m.hasDetailPanel&&y.showDetailPanelIcon){var S=y.detailPanelColumnAlignment==="left"?0:_.length;_.splice(S,0,o.default.createElement(r.default,{padding:"none",key:"key-detail-panel-column"}))}return m.isTreeData>0&&_.splice(0,0,o.default.createElement(r.default,{padding:"none",key:"key-tree-data-filter"})),m.columns.filter(function(k){return k.tableData.groupOrder>-1}).forEach(function(k){_.splice(0,0,o.default.createElement(r.default,{padding:"checkbox",key:"key-group-filter"+k.tableData.id}))}),o.default.createElement(n.default,{id:"m--table--filter--row",ref:m.forwardedRef,style:g({height:10},y.filterRowStyle)},_)}b.defaultProps={columns:[],hasActions:!1,localization:{filterTooltip:"Filter"}},b.propTypes={columns:a.default.array.isRequired,hasDetailPanel:a.default.bool.isRequired,isTreeData:a.default.bool.isRequired,onFilterChanged:a.default.func.isRequired,hasActions:a.default.bool,localization:a.default.object};var v=o.default.forwardRef(function(y,x){return o.default.createElement(b,(0,i.default)({},y,{forwardedRef:x}))});e.default=v}(a3)),a3}var c3={};const fq=er(nfe),Zxe=er(Die);function ME(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function PE(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Ro(1));return n(pq)(e,t)}if(typeof e!="function")throw new Error(Ro(2));var l=e,i=t,o=[],a=o,s=!1;function u(){a===o&&(a=o.slice())}function c(){if(s)throw new Error(Ro(3));return i}function d(g){if(typeof g!="function")throw new Error(Ro(4));if(s)throw new Error(Ro(5));var b=!0;return u(),a.push(g),function(){if(b){if(s)throw new Error(Ro(6));b=!1,u();var m=a.indexOf(g);a.splice(m,1),o=null}}}function f(g){if(!Qxe(g))throw new Error(Ro(7));if(typeof g.type>"u")throw new Error(Ro(8));if(s)throw new Error(Ro(9));try{s=!0,i=l(i,g)}finally{s=!1}for(var b=o=a,v=0;vmq=e,n2e=()=>mq,RE=Symbol.for("react-redux-context"),LE=typeof globalThis<"u"?globalThis:{};function r2e(){var e;if(!ge.createContext)return{};const t=(e=LE[RE])!=null?e:LE[RE]=new Map;let n=t.get(ge.createContext);return n||(n=ge.createContext(null),t.set(ge.createContext,n)),n}const gq=r2e(),a2e=()=>{throw new Error("uSES not initialized!")},o2e=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function i2e(e,t,n,r,{areStatesEqual:l,areOwnPropsEqual:i,areStatePropsEqual:o}){let a=!1,s,u,c,d,f;function p(m,y){return s=m,u=y,c=e(s,u),d=t(r,u),f=n(c,d,u),a=!0,f}function h(){return c=e(s,u),t.dependsOnOwnProps&&(d=t(r,u)),f=n(c,d,u),f}function g(){return e.dependsOnOwnProps&&(c=e(s,u)),t.dependsOnOwnProps&&(d=t(r,u)),f=n(c,d,u),f}function b(){const m=e(s,u),y=!o(m,c);return c=m,y&&(f=n(c,d,u)),f}function v(m,y){const x=!i(y,u),_=!l(m,s,y,u);return s=m,u=y,x&&_?h():x?g():_?b():f}return function(y,x){return a?v(y,x):p(y,x)}}function l2e(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:l}=t,i=tr(t,o2e);const o=n(e,i),a=r(e,i),s=l(e,i);return i2e(o,a,s,e,i)}function s2e(e,t){const n={};for(const r in e){const l=e[r];typeof l=="function"&&(n[r]=(...i)=>t(l(...i)))}return n}function XS(e){return function(n){const r=e(n);function l(){return r}return l.dependsOnOwnProps=!1,l}}function IE(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function vq(e,t){return function(r,{displayName:l}){const i=function(a,s){return i.dependsOnOwnProps?i.mapToProps(a,s):i.mapToProps(a,void 0)};return i.dependsOnOwnProps=!0,i.mapToProps=function(a,s){i.mapToProps=e,i.dependsOnOwnProps=IE(e);let u=i(a,s);return typeof u=="function"&&(i.mapToProps=u,i.dependsOnOwnProps=IE(u),u=i(a,s)),u},i}}function a4(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function u2e(e){return e&&typeof e=="object"?XS(t=>s2e(e,t)):e?typeof e=="function"?vq(e):a4(e,"mapDispatchToProps"):XS(t=>({dispatch:t}))}function c2e(e){return e?typeof e=="function"?vq(e):a4(e,"mapStateToProps"):XS(()=>({}))}function d2e(e,t,n){return Yt({},n,e,t)}function f2e(e){return function(n,{displayName:r,areMergedPropsEqual:l}){let i=!1,o;return function(s,u,c){const d=e(s,u,c);return i?l(d,o)||(o=d):(i=!0,o=d),o}}}function p2e(e){return e?typeof e=="function"?f2e(e):a4(e,"mergeProps"):()=>d2e}function h2e(){const e=n2e();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],l=t;for(;l;)r.push(l),l=l.next;return r},subscribe(r){let l=!0,i=n={callback:r,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){!l||t===null||(l=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}const $E={notify(){},get:()=>[]};function yq(e,t){let n,r=$E,l=0,i=!1;function o(g){c();const b=r.subscribe(g);let v=!1;return()=>{v||(v=!0,b(),d())}}function a(){r.notify()}function s(){h.onStateChange&&h.onStateChange()}function u(){return i}function c(){l++,n||(n=t?t.addNestedSub(s):e.subscribe(s),r=h2e())}function d(){l--,n&&l===0&&(n(),n=void 0,r.clear(),r=$E)}function f(){i||(i=!0,c())}function p(){i&&(i=!1,d())}const h={addNestedSub:o,notifyNestedSubs:a,handleChangeWrapper:s,isSubscribed:u,trySubscribe:f,tryUnsubscribe:p,getListeners:()=>r};return h}const m2e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ry=m2e?ge.useLayoutEffect:ge.useEffect;function NE(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function f3(e,t){if(NE(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let l=0;l{bq=e},y2e=[null,null];function b2e(e,t,n){Ry(()=>e(...t),n)}function x2e(e,t,n,r,l,i){e.current=r,n.current=!1,l.current&&(l.current=null,i())}function w2e(e,t,n,r,l,i,o,a,s,u,c){if(!e)return()=>{};let d=!1,f=null;const p=()=>{if(d||!a.current)return;const g=t.getState();let b,v;try{b=r(g,l.current)}catch(m){v=m,f=m}v||(f=null),b===i.current?o.current||u():(i.current=b,s.current=b,o.current=!0,c())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}function _2e(e,t){return e===t}function xq(e,t,n,{pure:r,areStatesEqual:l=_2e,areOwnPropsEqual:i=f3,areStatePropsEqual:o=f3,areMergedPropsEqual:a=f3,forwardRef:s=!1,context:u=gq}={}){const c=u,d=c2e(e),f=u2e(t),p=p2e(n),h=!!e;return b=>{const v=b.displayName||b.name||"Component",m=`Connect(${v})`,y={shouldHandleStateChanges:h,displayName:m,wrappedComponentName:v,WrappedComponent:b,initMapStateToProps:d,initMapDispatchToProps:f,initMergeProps:p,areStatesEqual:l,areStatePropsEqual:o,areOwnPropsEqual:i,areMergedPropsEqual:a};function x(S){const[k,C,T]=ge.useMemo(()=>{const{reactReduxForwardedRef:U}=S,Q=tr(S,g2e);return[S.context,U,Q]},[S]),M=ge.useMemo(()=>k&&k.Consumer&&zve.isContextConsumer(ge.createElement(k.Consumer,null))?k:c,[k,c]),O=ge.useContext(M),D=!!S.store&&!!S.store.getState&&!!S.store.dispatch,P=!!O&&!!O.store,E=D?S.store:O.store,I=P?O.getServerState:E.getState,A=ge.useMemo(()=>l2e(E.dispatch,y),[E]),[F,j]=ge.useMemo(()=>{if(!h)return y2e;const U=yq(E,D?void 0:O.subscription),Q=U.notifyNestedSubs.bind(U);return[U,Q]},[E,D,O]),B=ge.useMemo(()=>D?O:Yt({},O,{subscription:F}),[D,O,F]),z=ge.useRef(),N=ge.useRef(T),R=ge.useRef(),q=ge.useRef(!1);ge.useRef(!1);const Y=ge.useRef(!1),L=ge.useRef();Ry(()=>(Y.current=!0,()=>{Y.current=!1}),[]);const W=ge.useMemo(()=>()=>R.current&&T===N.current?R.current:A(E.getState(),T),[E,T]),H=ge.useMemo(()=>Q=>F?w2e(h,E,F,A,N,z,q,Y,R,j,Q):()=>{},[F]);b2e(x2e,[N,z,q,T,R,j]);let G;try{G=bq(H,W,I?()=>A(I(),T):W)}catch(U){throw L.current&&(U.message+=` + */const Pxe=Object.freeze(Object.defineProperty({__proto__:null,CalendarPicker:WW,CalendarPickerSkeleton:l1e,ClockPicker:XW,DEFAULT_LOCALE:xW,DatePicker:Abe,DateTimePicker:oxe,DateTimePickerTabs:Qb,DesktopDatePicker:tq,DesktopDateTimePicker:aq,DesktopTimePicker:iq,LocalizationProvider:Cve,MobileDatePicker:nq,MobileDateTimePicker:oq,MobileTimePicker:lq,MonthPicker:_W,MuiPickersAdapterContext:P5,PickerStaticWrapper:Jb,PickersDay:AW,StaticDatePicker:wxe,StaticDateTimePicker:Txe,StaticTimePicker:kxe,TimePicker:Mxe,YearPicker:zW,beBY:_ve,calendarPickerClasses:Xye,calendarPickerSkeletonClasses:t1e,clockClasses:w1e,clockNumberClasses:Oh,clockPickerClasses:$1e,clockPointerClasses:h1e,csCZ:G0e,datePickerToolbarClasses:Y1e,dateTimePickerTabsClasses:Zbe,dateTimePickerToolbarClasses:zbe,dayPickerClasses:rye,deDE:$0e,enUS:J0e,esES:j0e,faIR:B0e,fiFI:U0e,frFR:K0e,getCalendarPickerSkeletonUtilityClass:qW,getCalendarPickerUtilityClass:BW,getClockPickerUtilityClass:YW,getMonthPickerUtilityClass:wW,getPickersDayUtilityClass:MW,getYearPickerUtilityClass:jW,huHU:Q0e,isIS:hve,itIT:ive,jaJP:gve,koKR:fve,monthPickerClasses:Mve,nbNO:tve,nlNL:P0e,pickersCalendarHeaderClasses:Oye,pickersDayClasses:Ph,pickersFadeTransitionGroupClasses:$ve,pickersMonthClasses:VS,pickersSlideTransitionClasses:to,pickersYearClasses:Hu,plPL:A0e,ptBR:E0e,ruRU:kve,svSE:rve,timePickerToolbarClasses:Ld,trTR:L0e,ukUA:yve,urPK:xve,yearPickerClasses:Uye,zhCN:uve},Symbol.toStringTag,{value:"Module"})),sq=er(Pxe);var nE;function Oxe(){return nE||(nE=1,function(e){var t=Hn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(jr()),r=t(kf()),l=t(Rb()),i=t(Lb()),o=t(x5()),a=t(_5()),s=t(T5()),u=t(ge),c=t(Ib),d=t(Cc),f=t(GB),p=t(S5),h=t(YB),g=t(hhe),b=t(mhe),v=t(ghe),m=mW,y=sq,x=t(Kr),_=["columnDef","rowData","onRowDataChange","errorState","autoFocus","onBulkEditRowChanged","scrollWidth"],w=["helperText","error"],S=["helperText","error"];function k(O){var D=C();return function(){var E=(0,s.default)(O),I;if(D){var A=(0,s.default)(this).constructor;I=Reflect.construct(E,arguments,A)}else I=E.apply(this,arguments);return(0,a.default)(this,I)}}function C(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var T=function(O){(0,o.default)(P,O);var D=k(P);function P(){return(0,l.default)(this,P),D.apply(this,arguments)}return(0,i.default)(P,[{key:"getProps",value:function(){var I=this.props;I.columnDef,I.rowData,I.onRowDataChange,I.errorState,I.autoFocus,I.onBulkEditRowChanged,I.scrollWidth;var A=(0,r.default)(I,_);return A}},{key:"renderLookupField",value:function(){var I=this,A=this.getProps(),F=A.helperText,j=A.error,B=(0,r.default)(A,w);return u.default.createElement(h.default,{error:!!j},u.default.createElement(f.default,(0,n.default)({},B,{value:this.props.value===void 0?"":this.props.value,onChange:function(N){return I.props.onChange(N.target.value)},style:{fontSize:13},inputProps:{autoFocus:this.props.autoFocus},SelectDisplayProps:{"aria-label":this.props.columnDef.title}}),Object.keys(this.props.columnDef.lookup).map(function(z){return u.default.createElement(p.default,{key:z,value:z},I.props.columnDef.lookup[z])})),!!F&&u.default.createElement(g.default,null,F))}},{key:"renderBooleanField",value:function(){var I=this,A=this.getProps(),F=A.helperText,j=A.error,B=(0,r.default)(A,S);return u.default.createElement(h.default,{error:!!j,component:"fieldset"},u.default.createElement(b.default,null,u.default.createElement(v.default,{label:"",control:u.default.createElement(d.default,(0,n.default)({},B,{value:String(this.props.value),checked:!!this.props.value,onChange:function(N){return I.props.onChange(N.target.checked)},style:{padding:0,width:24,marginLeft:9},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title}}))})),u.default.createElement(g.default,null,F))}},{key:"renderDateField",value:function(){var I=this.props.columnDef.dateSetting&&this.props.columnDef.dateSetting.format?this.props.columnDef.dateSetting.format:"dd.MM.yyyy";return u.default.createElement(y.LocalizationProvider,{dateAdapter:m.AdapterDateFns,locale:this.props.locale},u.default.createElement(y.DatePicker,(0,n.default)({},this.getProps(),{renderInput:function(F){return u.default.createElement(c.default,F)},format:I,value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderTimeField",value:function(){return u.default.createElement(y.LocalizationProvider,{dateAdapter:m.AdapterDateFns,locale:this.props.locale},u.default.createElement(y.TimePicker,(0,n.default)({},this.getProps(),{renderInput:function(A){return u.default.createElement(c.default,A)},format:"HH:mm:ss",value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderDateTimeField",value:function(){return u.default.createElement(y.LocalizationProvider,{dateAdapter:m.AdapterDateFns,locale:this.props.locale},u.default.createElement(y.DateTimePicker,(0,n.default)({},this.getProps(),{renderInput:function(A){return u.default.createElement(c.default,A)},format:"dd.MM.yyyy HH:mm:ss",value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderTextField",value:function(){var I=this;return u.default.createElement(c.default,(0,n.default)({},this.getProps(),{variant:"standard",fullWidth:!0,type:this.props.columnDef.type==="numeric"?"number":"text",placeholder:this.props.columnDef.editPlaceholder||this.props.columnDef.title,value:this.props.value===void 0?"":this.props.value,onChange:function(F){return I.props.onChange(I.props.columnDef.type==="numeric"?F.target.valueAsNumber:F.target.value)},InputProps:{style:{minWidth:50,fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title,style:this.props.columnDef.type==="numeric"?{textAlign:"right"}:{}}}))}},{key:"renderCurrencyField",value:function(){var I=this;return u.default.createElement(c.default,(0,n.default)({},this.getProps(),{variant:"standard",placeholder:this.props.columnDef.editPlaceholder||this.props.columnDef.title,type:"number",value:this.props.value===void 0?"":this.props.value,onChange:function(F){var j=F.target.valueAsNumber;return!j&&j!==0&&(j=void 0),I.props.onChange(j)},InputProps:{style:{fontSize:13,textAlign:"right"}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title,style:{textAlign:"right"}},onKeyDown:this.props.onKeyDown}))}},{key:"render",value:function(){var I="ok";return this.props.columnDef.editComponent?I=this.props.columnDef.editComponent(this.props):this.props.columnDef.lookup?I=this.renderLookupField():this.props.columnDef.type==="boolean"?I=this.renderBooleanField():this.props.columnDef.type==="date"?I=this.renderDateField():this.props.columnDef.type==="time"?I=this.renderTimeField():this.props.columnDef.type==="datetime"?I=this.renderDateTimeField():this.props.columnDef.type==="currency"?I=this.renderCurrencyField():I=this.renderTextField(),I}}]),P}(u.default.Component);T.propTypes={value:x.default.any,onChange:x.default.func.isRequired,columnDef:x.default.object.isRequired,locale:x.default.object,rowData:x.default.object,onRowDataChange:x.default.func,errorState:x.default.func,autoFocus:x.default.bool,onBulkEditRowChanged:x.default.func,scrollWidth:x.default.number,onKeyDown:x.default.func};var M=T;e.default=M}(E_)),E_}var G_={},E0={},rE;function uq(){if(rE)return E0;rE=1;var e=Hn;Object.defineProperty(E0,"__esModule",{value:!0}),E0.validateInput=i;var t=e(za()),n=e(Pa());function r(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(o);a&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(o,c).enumerable})),s.push.apply(s,u)}return s}function l(o){for(var a=1;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var m=function(x){(0,i.default)(w,x);var _=b(w);function w(S){var k;return(0,n.default)(this,w),k=_.call(this,S),(0,s.default)((0,l.default)(k),"getStyle",function(){var C={boxShadow:"2px 0px 15px rgba(125,147,178,.25)",color:"inherit",width:k.props.columnDef.tableData.width,boxSizing:"border-box",fontSize:"inherit",fontFamily:"inherit",fontWeight:"inherit",padding:"0 16px"};return typeof k.props.columnDef.cellStyle=="function"?C=g(g({},C),k.props.columnDef.cellStyle(k.state.value,k.props.rowData)):C=g(g({},C),k.props.columnDef.cellStyle),typeof k.props.cellEditable.cellStyle=="function"?C=g(g({},C),k.props.cellEditable.cellStyle(k.state.value,k.props.rowData,k.props.columnDef)):C=g(g({},C),k.props.cellEditable.cellStyle),C}),(0,s.default)((0,l.default)(k),"handleKeyDown",function(C){C.keyCode===13?k.onApprove():C.keyCode===27&&k.onCancel()}),(0,s.default)((0,l.default)(k),"onApprove",function(){var C=(0,p.validateInput)(k.props.columnDef,k.state.value).isValid;C&&k.setState({isLoading:!0},function(){k.props.cellEditable.onCellEditApproved(k.state.value,k.props.getFieldValue(k.props.rowData,k.props.columnDef),k.props.rowData,k.props.columnDef).then(function(){k.setState({isLoading:!1}),k.props.onCellEditFinished(k.props.rowData,k.props.columnDef)}).catch(function(T){k.setState({isLoading:!1})})})}),(0,s.default)((0,l.default)(k),"onCancel",function(){k.props.onCellEditFinished(k.props.rowData,k.props.columnDef)}),k.state={errorState:{isValid:!0,helperText:""},isLoading:!1,value:S.getFieldValue(k.props.rowData,k.props.columnDef,!1)},k}return(0,r.default)(w,[{key:"renderActions",value:function(){if(this.state.isLoading)return u.default.createElement("div",{style:{display:"flex",justifyContent:"center",width:60}},u.default.createElement(f.default,{size:20}));var k=[{icon:this.props.icons.Check,tooltip:this.props.localization.saveTooltip,onClick:this.onApprove,disabled:this.state.isLoading||!this.state.errorState.isValid},{icon:this.props.icons.Clear,tooltip:this.props.localization.cancelTooltip,onClick:this.onCancel,disabled:this.state.isLoading}];return u.default.createElement(this.props.components.Actions,{actions:k,components:this.props.components,size:"small"})}},{key:"handleChange",value:function(k){var C=(0,p.validateInput)(this.props.columnDef,k);this.setState({errorState:C,value:k})}},{key:"render",value:function(){var k=this;return u.default.createElement(d.default,{size:this.props.size,style:this.getStyle(),padding:"none"},u.default.createElement("div",{style:{display:"flex",alignItems:"center"}},u.default.createElement("div",{style:{flex:1,marginRight:4}},u.default.createElement(this.props.components.EditField,{columnDef:this.props.columnDef,value:this.state.value,error:!this.state.errorState.isValid,helperText:this.state.errorState.helperText,onChange:function(T){return k.handleChange(T)},onKeyDown:this.handleKeyDown,disabled:this.state.isLoading,rowData:this.props.rowData,autoFocus:!0})),this.renderActions()))}}]),w}(u.default.Component);m.defaultProps={columnDef:{},localization:{saveTooltip:"Save",cancelTooltip:"Cancel"}},m.propTypes={cellEditable:c.default.object.isRequired,columnDef:c.default.object.isRequired,components:c.default.object.isRequired,errorState:c.default.oneOfType([c.default.object,c.default.bool]),icons:c.default.object.isRequired,localization:c.default.object.isRequired,onCellEditFinished:c.default.func.isRequired,rowData:c.default.object.isRequired,size:c.default.string,getFieldValue:c.default.func.isRequired};var y=m;e.default=y}(G_)),G_}var Y_={},X_={exports:{}},K_={exports:{}},oE;function Dxe(){return oE||(oE=1,function(e){function t(n){if(Array.isArray(n))return n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(K_)),K_.exports}var Z_={exports:{}},iE;function Exe(){return iE||(iE=1,function(e){function t(n,r){var l=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(l!=null){var i,o,a,s,u=[],c=!0,d=!1;try{if(a=(l=l.call(n)).next,r===0){if(Object(l)!==l)return;c=!1}else for(;!(c=(i=a.call(l)).done)&&(u.push(i.value),u.length!==r);c=!0);}catch(f){d=!0,o=f}finally{try{if(!c&&l.return!=null&&(s=l.return(),Object(s)!==s))return}finally{if(d)throw o}}return u}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Z_)),Z_.exports}var Q_={exports:{}},lE;function Rxe(){return lE||(lE=1,function(e){function t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Q_)),Q_.exports}var sE;function vu(){return sE||(sE=1,function(e){var t=Dxe(),n=Exe(),r=HB(),l=Rxe();function i(o,a){return t(o)||n(o,a)||r(o,a)||l()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}(X_)),X_.exports}const Mf=er(Wae),Mc=er(cde);var uE;function Lxe(){return uE||(uE=1,function(e){var t=Hn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(jr()),r=t(za()),l=t(Pa()),i=t(vu()),o=t(ge),a=t(Kr),s=t(b5),u=t(Mf),c=t(Mc);function d(g,b){var v=Object.keys(g);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(g);b&&(m=m.filter(function(y){return Object.getOwnPropertyDescriptor(g,y).enumerable})),v.push.apply(v,m)}return v}function f(g){for(var b=1;b0&&i.default.createElement(r.default,{colSpan:a.options.detailPanelOffset.left}),i.default.createElement(r.default,{size:a.size,colSpan:a.renderColumns.length-a.options.detailPanelOffset.left-a.options.detailPanelOffset.right,padding:"none"},i.default.createElement(n.default,{in:d,timeout:"auto",unmountOnExit:!0,mountOnEnter:!0,onExited:function(){b.current=void 0,g()}},m({rowData:a.data}))))}return R0}var Na={},fE;function bs(){if(fE)return Na;fE=1;var e=Hn;Object.defineProperty(Na,"__esModule",{value:!0}),Na.widthToNumber=Na.selectionMaxWidth=Na.rowActions=Na.reducePercentsInCalc=Na.parseFirstLastPageButtons=Na.elementSize=Na.baseIconSize=Na.actionsColumnWidth=void 0;var t=e(za()),n=e(Pa());function r(p,h){var g=Object.keys(p);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(p);h&&(b=b.filter(function(v){return Object.getOwnPropertyDescriptor(p,v).enumerable})),g.push.apply(g,b)}return g}function l(p){for(var h=1;h1){var v=b[1];return h.replace(/\d*%/,"".concat(g*(v/100),"px"))}return h.replace(/\d*%/,"".concat(g,"px"))};Na.reducePercentsInCalc=c;var d=function(h){return typeof h=="number"?h:!h||!h.match(/^\s*\d+(px)?\s*$/)?NaN:Number(h.replace(/px$/,""))};Na.widthToNumber=d;var f=function(h,g){var b={first:!0,last:!0};return typeof h=="boolean"?b={first:h,last:h}:(0,n.default)(h)==="object"&&(b=l(l({},b),h)),g&&(b={first:b.last,last:b.first}),b};return Na.parseFirstLastPageButtons=f,Na}var L0={},pE;function Fxe(){if(pE)return L0;pE=1;var e=Hn;Object.defineProperty(L0,"__esModule",{value:!0}),L0.useDoubleClick=n;var t=e(ge);function n(r,l){var i=t.default.useRef(0),o=t.default.useRef(null),a=t.default.useRef(null),s=t.default.useRef(null);t.default.useEffect(function(){a.current=l,s.current=r});var u=function(){clearTimeout(o.current),o.current=null,i.current=0},c=t.default.useCallback(function(d){var f=i.current+1===2,p=o.current;if(p&&f&&(u(),a.current&&a.current(d)),!p){i.current=i.current+1;var h=function(){u(),s.current&&s.current(d)};if(a.current){var g=setTimeout(h,250);o.current=g}else h()}},[]);return c}return L0}var hE;function jxe(){return hE||(hE=1,function(e){var t=Hn,n=Pa();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Cf()),l=t(ms),i=t(Mc),o=t(Mf),a=t(Cc),s=t(jr()),u=t(zl),c=t(za()),d=t(kf()),f=t(ge),p=t(Kr),h=Nxe(),g=w(bs()),b=Fxe(),v=ux(),m=sl(),y=["forwardedRef"],x=["data","components","detailPanel","getFieldValue","isTreeData","onRowSelected","onRowEditStarted","onTreeExpandChanged","onToggleDetailPanel","onEditingCanceled","onEditingApproved","hasAnyEditingRow","treeDataMaxLevel","path","actions","errorState","cellEditable","onCellEditStarted","onCellEditFinished","persistEvents","scrollWidth","onRowClick","onRowDoubleClick","columns"];function _(M){if(typeof WeakMap!="function")return null;var O=new WeakMap,D=new WeakMap;return(_=function(E){return E?D:O})(M)}function w(M,O){if(M&&M.__esModule)return M;if(M===null||n(M)!=="object"&&typeof M!="function")return{default:M};var D=_(O);if(D&&D.has(M))return D.get(M);var P={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var I in M)if(I!=="default"&&Object.prototype.hasOwnProperty.call(M,I)){var A=E?Object.getOwnPropertyDescriptor(M,I):null;A&&(A.get||A.set)?Object.defineProperty(P,I,A):P[I]=M[I]}return P.default=M,D&&D.set(M,P),P}function S(M,O){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(M);O&&(P=P.filter(function(E){return Object.getOwnPropertyDescriptor(M,E).enumerable})),D.push.apply(D,P)}return D}function k(M){for(var O=1;O-1)}).sort(function(Ae,Le){return Ae.tableData.columnOrder-Le.tableData.columnOrder}).map(function(Ae){var Le=D.getFieldValue(D.data,Ae);if(D.data.tableData.editCellList&&D.data.tableData.editCellList.find(function(Ne){return Ne.tableData.id===Ae.tableData.id}))return f.default.createElement(D.components.EditCell,{getFieldValue:D.getFieldValue,components:D.components,icons:I,localization:P,columnDef:Ae,size:Oe,key:"cell-"+D.data.tableData.id+"-"+Ae.tableData.id,rowData:D.data,cellEditable:D.cellEditable,onCellEditFinished:D.onCellEditFinished,scrollWidth:U});var Re=Ae.editable!=="never"&&!!D.cellEditable;Re&&D.cellEditable.isCellEditable&&(Re=D.cellEditable.isCellEditable(D.data,Ae));var Ie="cell-".concat(D.data.tableData.id,"-").concat(Ae.tableData.id);return f.default.createElement(D.components.Cell,{size:Oe,errorState:D.errorState,columnDef:k({cellStyle:E.cellStyle},Ae),value:Le,key:Ie,rowData:D.data,cellEditable:Re,onCellEditStarted:D.onCellEditStarted,scrollWidth:U})});return Se},Oe=g.elementSize(A),Pe=W.length*g.baseIconSize(A),ce=function(Se){return f.default.createElement(u.default,{size:Oe,padding:"none",key:"key-actions-column",style:k({width:Pe,padding:"0px 5px",boxSizing:"border-box"},E.actionsCellStyle)},f.default.createElement(D.components.Actions,{data:D.data,actions:Se,components:D.components,size:Oe,disabled:D.hasAnyEditingRow}))},we=function(){var Se=E.selectionProps||{};typeof Se=="function"&&(Se=Se(D.data));var Ae=g.selectionMaxWidth(A,D.treeDataMaxLevel)||0,Le=Oe!=="medium"?{padding:"4px"}:void 0;return f.default.createElement(u.default,{size:Oe,padding:"none",key:"key-selection-column",style:{width:Ae}},f.default.createElement(a.default,(0,s.default)({size:Oe,checked:D.data.tableData.checked===!0,onClick:function(Ie){return Ie.stopPropagation()},value:D.data.tableData.id.toString(),onChange:function(Ie){D.onRowSelected(Ie,D.path,D.data)},style:Le},Se)))},Z=function(Se){return{transform:Se?"rotate(90deg)":"none"}},re=function(){return E.showDetailPanelIcon?typeof D.detailPanel=="function"?f.default.createElement(u.default,{size:Oe,padding:"none",key:"key-detail-panel-column",style:k({width:42,textAlign:"center"},E.detailPanelColumnStyle)},f.default.createElement(o.default,{"aria-label":"Detail panel visibility toggle",size:Oe,style:k({transition:"all ease 200ms"},Z(D.data.tableData.showDetailPanel)),onClick:function(Ae){D.onToggleDetailPanel(D.path,D.detailPanel),Ae.stopPropagation()}},f.default.createElement(I.DetailPanel,null))):f.default.createElement(u.default,{size:Oe,padding:"none",key:"key-detail-panel-column"},f.default.createElement("div",{style:k({width:42*D.detailPanel.length,textAlign:"center",display:"flex"},E.detailPanelColumnStyle)},D.detailPanel.map(function(Se,Ae){typeof Se=="function"&&(Se=Se(D.data));var Le=(D.data.tableData.showDetailPanel||"").toString()===Se.render.toString(),Re=f.default.createElement(I.DetailPanel,null),Ie=!0;return Le?Se.openIcon?(Re=f.default.createElement(v.MTableCustomIcon,{icon:Se.openIcon,iconProps:Se.iconProps}),Ie=!1):Se.icon&&(Re=f.default.createElement(v.MTableCustomIcon,{icon:Se.icon,iconProps:Se.iconProps})):Se.icon&&(Re=f.default.createElement(v.MTableCustomIcon,{icon:Se.icon,iconProps:Se.iconProps}),Ie=!1),Re=f.default.createElement(o.default,{"aria-label":"Detail panel visibility toggle",size:Oe,key:"key-detail-panel-"+Ae,style:k({transition:"all ease 200ms"},Z(Ie&&Le)),disabled:Se.disabled,onClick:function(ze){D.onToggleDetailPanel(D.path,Se.render),ze.stopPropagation()}},Re),Se.tooltip&&(Re=f.default.createElement(i.default,{key:"key-detail-panel-"+Ae,title:Se.tooltip},Re)),Re}))):null},de=function(){return D.data.tableData.childRows&&D.data.tableData.childRows.length>0?f.default.createElement(u.default,{size:Oe,padding:"none",key:"key-tree-data-column",style:{width:48+9*(D.treeDataMaxLevel-2)}},f.default.createElement(o.default,{"aria-label":"Detail panel visibility toggle",size:Oe,style:k({transition:"all ease 200ms",marginLeft:D.level*9},Z(D.data.tableData.isTreeExpanded)),onClick:function(Ae){D.onTreeExpandChanged(D.path,D.data),Ae.stopPropagation()}},f.default.createElement(I.DetailPanel,null))):f.default.createElement(u.default,{padding:"none",key:"key-tree-data-column"})},_e=function(Se,Ae){var Le={};return typeof E.rowStyle=="function"?Le=k(k({},Le),E.rowStyle(D.data,Se,Ae,D.hasAnyEditingRow)):E.rowStyle&&(Le=k(k({},Le),E.rowStyle)),(Q||V)&&(Le.cursor="pointer"),D.hasAnyEditingRow&&(Le.opacity=Le.opacity?Le.opacity:.2),Le},ue=Ce();E.selection&&ue.splice(0,0,we());var me=g.rowActions(D);if(me.length>0){if(E.actionsColumnIndex===-1)ue.push(ce(me));else if(E.actionsColumnIndex>=0){var xe=0;E.selection&&(xe=1),ue.splice(E.actionsColumnIndex+xe,0,ce(me))}}return D.detailPanel&&(E.detailPanelColumnAlignment==="right"?ue.push(re()):ue.splice(0,0,re())),D.isTreeData&&ue.splice(0,0,de()),D.columns.filter(function(ye){return ye.tableData.groupOrder>-1}).forEach(function(ye){ue.splice(0,0,f.default.createElement(u.default,{size:Oe,padding:"none",key:"key-group-cell"+ye.tableData.id}))}),f.default.createElement(f.default.Fragment,null,f.default.createElement(l.default,(0,s.default)({ref:O,selected:q},K,{onClick:function(Se){ee&&Se.persist(),!q&&ke(Se)},hover:!!(Q||V),style:_e(D.index,D.level),"data-testid":"mtablebodyrow"}),ue),f.default.createElement(h.MTableDetailPanel,{options:E,data:D.data,detailPanel:D.detailPanel,renderColumns:ue,size:Oe}),D.data.tableData.childRows&&D.data.tableData.isTreeExpanded&&D.data.tableData.childRows.map(function(ye,Se){return ye.tableData.editing?f.default.createElement(D.components.EditRow,{columns:ne,components:D.components,data:ye,icons:I,localization:P,getFieldValue:D.getFieldValue,key:Se,mode:ye.tableData.editing,isTreeData:D.isTreeData,detailPanel:D.detailPanel,onEditingCanceled:N,onEditingApproved:R,errorState:D.errorState}):f.default.createElement(D.components.Row,(0,s.default)({},D,{data:ye,index:Se,key:Se,level:D.level+1,path:[].concat((0,r.default)(D.path),[ye.tableData.uuid]),onEditingCanceled:N,onEditingApproved:R,hasAnyEditingRow:D.hasAnyEditingRow,treeDataMaxLevel:Y,errorState:D.errorState,cellEditable:H,onCellEditStarted:G,onCellEditFinished:te}))}))}C.defaultProps={actions:[],index:0,data:{},path:[],persistEvents:!1},C.propTypes={forwardedRef:p.default.element,actions:p.default.array,index:p.default.number.isRequired,data:p.default.object.isRequired,detailPanel:p.default.oneOfType([p.default.func,p.default.arrayOf(p.default.oneOfType([p.default.object,p.default.func]))]),hasAnyEditingRow:p.default.bool,onRowSelected:p.default.func,path:p.default.arrayOf(p.default.oneOfType([p.default.string,p.default.number])),persistEvents:p.default.bool,treeDataMaxLevel:p.default.number,getFieldValue:p.default.func.isRequired,columns:p.default.array,onToggleDetailPanel:p.default.func.isRequired,onRowClick:p.default.func,onRowDoubleClick:p.default.func,onEditingApproved:p.default.func,onEditingCanceled:p.default.func,errorState:p.default.oneOfType([p.default.object,p.default.bool])};var T=f.default.forwardRef(function(O,D){return f.default.createElement(C,(0,s.default)({},O,{forwardedRef:D}))});e.default=T}(e3)),e3}var t3={},As={};const zxe=er(p0e);var mE;function Bxe(){if(mE)return As;mE=1;var e=Hn;Object.defineProperty(As,"__esModule",{value:!0}),As.getCurrencyValue=i,As.getEmptyValue=l,As.getRenderValue=o,As.isoDateRegex=void 0;var t=e(ge),n=e(zxe),r=/^\d{4}-(0[1-9]|1[0-2])-([12]\d|0[1-9]|3[01])([T\s](([01]\d|2[0-3])\:[0-5]\d|24\:00)(\:[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3])\:?([0-5]\d)?)?)?$/;As.isoDateRegex=r;function l(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof a=="function"?s.columnDef.emptyValue(s.rowData):a}function i(a,s){return a!==void 0?new Intl.NumberFormat(a.locale!==void 0?a.locale:"en-US",{style:"currency",currency:a.currencyCode!==void 0?a.currencyCode:"USD",minimumFractionDigits:a.minimumFractionDigits!==void 0?a.minimumFractionDigits:2,maximumFractionDigits:a.maximumFractionDigits!==void 0?a.maximumFractionDigits:2}).format(s!==void 0?s:0):new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(s!==void 0?s:0)}function o(a,s,u){var c=a.columnDef.dateSetting&&a.columnDef.dateSetting.locale?a.columnDef.dateSetting.locale:void 0;if(a.columnDef.emptyValue!==void 0&&(a.value===void 0||a.value===null))return l(a.columnDef.emptyValue,a);if(a.rowData===void 0&&a.value&&a.columnDef.groupRender)return a.columnDef.groupRender(a.value);if(a.columnDef.render&&a.rowData)return a.columnDef.render(a.rowData);if(a.columnDef.type==="boolean"){var d={textAlign:"left",verticalAlign:"middle",width:48};return a.value?t.default.createElement(s.Check,{style:d}):t.default.createElement(s.ThirdStateCheck,{style:d})}else{if(a.columnDef.type==="date")return a.value instanceof Date?a.value.toLocaleDateString(c):r.exec(a.value)?(0,n.default)(a.value).toLocaleDateString(c):a.value;if(a.columnDef.type==="time")return a.value instanceof Date?a.value.toLocaleTimeString():r.exec(a.value)?(0,n.default)(a.value).toLocaleTimeString(c):a.value;if(a.columnDef.type==="datetime")return a.value instanceof Date?a.value.toLocaleString():r.exec(a.value)?(0,n.default)(a.value).toLocaleString(c):a.value;if(a.columnDef.type==="currency")return i(a.columnDef.currencySetting,a.value);if(typeof a.value=="boolean")return a.value.toString()}return a.value}return As}var Ds={},gE;function ex(){if(gE)return Ds;gE=1;var e=Hn,t=Pa();Object.defineProperty(Ds,"__esModule",{value:!0}),Ds.getStyle=c,Ds.setObjectByKey=Ds.selectFromObject=void 0;var n=e(za()),r=i(bs());function l(d){if(typeof WeakMap!="function")return null;var f=new WeakMap,p=new WeakMap;return(l=function(g){return g?p:f})(d)}function i(d,f){if(d&&d.__esModule)return d;if(d===null||t(d)!=="object"&&typeof d!="function")return{default:d};var p=l(f);if(p&&p.has(d))return p.get(d);var h={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in d)if(b!=="default"&&Object.prototype.hasOwnProperty.call(d,b)){var v=g?Object.getOwnPropertyDescriptor(d,b):null;v&&(v.get||v.set)?Object.defineProperty(h,b,v):h[b]=d[b]}return h.default=d,p&&p.set(d,h),h}function o(d,f){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(d);f&&(h=h.filter(function(g){return Object.getOwnPropertyDescriptor(d,g).enumerable})),p.push.apply(p,h)}return p}function a(d){for(var f=1;f-1)}).sort(function(U,Q){return U.tableData.columnOrder-Q.tableData.columnOrder}).map(function(U,Q){var V=k.getFieldValue(D.data,U,!1),X=function(Ce,Oe){var Pe={color:"inherit"};return typeof Ce.cellStyle=="function"?Pe=_(_({},Pe),Ce.cellStyle(Oe,k.data)):Pe=_(_({},Pe),Ce.cellStyle),Ce.disableClick&&(Pe.cursor="default"),_({},Pe)};Q===0&&24+k.level*20;var K=!1;if(U.editable===void 0&&(K=!0),U.editable==="always"&&(K=!0),U.editable==="onAdd"&&k.mode==="add"&&(K=!0),U.editable==="onUpdate"&&k.mode==="update"&&(K=!0),typeof U.editable=="function"&&(K=U.editable(U,k.data)),!U.field||!K){var ne=k.getFieldValue(D.data,U);return a.default.createElement(k.components.Cell,{size:G,icons:C,columnDef:U,value:ne,key:U.tableData.id,rowData:k.data,style:X(U,V)})}else{var ae=U.editComponent,ie=(0,l.default)(U,b),se=ae||k.components.EditField,pe=(0,g.validateInput)(U,D.data);return te===-1&&(te=Q),a.default.createElement(s.default,{size:G,key:U.tableData.id,align:["numeric"].indexOf(U.type)!==-1?"right":"left",style:X(U,V)},a.default.createElement(se,{key:U.tableData.id,columnDef:ie,autoFocus:te===Q,value:V,error:!pe.isValid,helperText:pe.helperText,locale:k.localization.dateTimePickerLocalization,rowData:D.data,onChange:function(Ce){var Oe=_({},D.data);(0,f.setObjectByKey)(Oe,U.field,Ce),P({data:Oe}),k.onBulkEditRowChanged&&k.onBulkEditRowChanged(k.data,Oe)},onRowDataChange:function(Ce){P({data:Ce}),k.onBulkEditRowChanged&&k.onBulkEditRowChanged(k.data,Ce)}}))}});return ee}var I=k.columns.every(function(G){var te=(0,g.validateInput)(G,D.data);return te.isValid}),A=function(){I&&k.onEditingApproved(k.mode,D.data,k.data)};function F(){if(k.mode!=="bulk"){var G=h.elementSize(k),te=[{icon:C.Check,tooltip:k.localization.saveTooltip,disabled:!I,onClick:A},{icon:C.Clear,tooltip:k.localization.cancelTooltip,onClick:function(){k.onEditingCanceled(k.mode,k.data)}}];return a.default.createElement(s.default,{size:G,padding:"none",key:"key-actions-column",style:_({width:42*te.length,padding:"0px 5px"},T.editCellStyle)},a.default.createElement(k.components.Actions,{data:k.data,actions:te,components:k.components,size:G}))}}function j(){var G={borderBottom:"1px solid red"};return G}var B=function(te){te.keyCode===13&&te.target.type!=="textarea"&&te.target.type!=="button"||te.keyCode===13&&te.target.type==="textarea"&&te.shiftKey?A():te.keyCode===27&&k.onEditingCanceled(k.mode,k.data)},z=h.elementSize(k),N;if(k.mode==="add"||k.mode==="update"||k.mode==="bulk")N=E();else{var R=k.columns.filter(function(G){return!G.hidden&&!(G.tableData.groupOrder>-1)}).length;N=[a.default.createElement(s.default,{size:z,padding:T.actionsColumnIndex===0?"none":void 0,key:"key-edit-cell",colSpan:R},a.default.createElement(c.default,{variant:"h6"},k.localization.deleteText))]}if(T.selection&&N.splice(0,0,a.default.createElement(s.default,{padding:"none",key:"key-selection-cell"})),k.isTreeData&&N.splice(0,0,a.default.createElement(s.default,{padding:"none",key:"key-tree-data-cell"})),T.actionsColumnIndex===-1)N.push(F());else if(T.actionsColumnIndex>=0){var q=0;T.selection&&(q=1),k.isTreeData&&(q=1,T.selection&&N.splice(1,1)),N.splice(T.actionsColumnIndex+q,0,F())}if(k.detailPanel&&T.showDetailPanelIcon!==!1&&k.mode!=="bulk"){var Y=T.detailPanelColumnAlignment,L=Y==="left"?0:N.length;N.splice(L,0,a.default.createElement(s.default,{padding:"none",key:"key-detail-panel-cell"}))}k.columns.filter(function(G){return G.tableData.groupOrder>-1}).forEach(function(G){N.splice(0,0,a.default.createElement(s.default,{padding:"none",key:"key-group-cell"+G.tableData.id}))}),k.detailPanel,k.isTreeData,k.onRowClick,k.onRowSelected,k.onTreeExpandChanged,k.onToggleDetailPanel,k.onEditingApproved,k.onEditingCanceled,k.getFieldValue,k.components,k.columns,k.errorState,k.onBulkEditRowChanged,k.bulkEditChangedRows,k.scrollWidth;var W=k.forwardedRef,H=(0,l.default)(k,v);return a.default.createElement(u.default,(0,r.default)({onKeyDown:B},H,{ref:W,style:j()}),N)}w.defaultProps={actions:[],index:0,options:{},path:[],onBulkEditRowChanged:function(){}},w.propTypes={actions:d.default.array,index:d.default.number.isRequired,data:d.default.object,detailPanel:d.default.oneOfType([d.default.func,d.default.arrayOf(d.default.oneOfType([d.default.object,d.default.func]))]),onRowSelected:d.default.func,path:d.default.arrayOf(d.default.number),columns:d.default.array,onRowClick:d.default.func,onEditingApproved:d.default.func,onEditingCanceled:d.default.func,localization:d.default.object,getFieldValue:d.default.func,errorState:d.default.oneOfType([d.default.object,d.default.bool]),onBulkEditRowChanged:d.default.func};var S=a.default.forwardRef(function(C,T){return a.default.createElement(w,(0,r.default)({},C,{forwardedRef:T}))});e.default=S}(r3)),r3}var a3={},o3={},Tu={},xE;function r4(){if(xE)return Tu;xE=1;var e=Hn;Object.defineProperty(Tu,"__esModule",{value:!0}),Tu.getLocalizedFilterPlaceHolder=Tu.getLocalizationData=void 0;var t=e(za()),n=dq();function r(a,s){var u=Object.keys(a);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(a);s&&(c=c.filter(function(d){return Object.getOwnPropertyDescriptor(a,d).enumerable})),u.push.apply(u,c)}return u}function l(a){for(var s=1;s-1}),d.default.createElement(a.default,{primary:_.lookup[D]}))})))}var y=d.default.forwardRef(function(_,w){return d.default.createElement(m,(0,r.default)({},_,{forwardedRef:w}))});e.default=y}(i3)),i3}var l3={};const cq=er(Due);var TE;function Xxe(){return TE||(TE=1,function(e){var t=Hn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(jr()),r=t(Ib),l=t(cq),i=t(Mc),o=t(ge),a=r4();function s(c){var d,f,p=c.columnDef,h=c.icons,g=c.localization,b=c.hideFilterIcons,v=c.onFilterChanged,m=c.forwardedRef,y=(0,a.getLocalizationData)(g),x=h.Filter;return o.default.createElement(r.default,{ref:m,style:p.type==="numeric"?{float:(d=p.align)!==null&&d!==void 0?d:"right"}:{float:(f=p.align)!==null&&f!==void 0?f:"left"},type:p.type==="numeric"?"number":"search",value:p.tableData.filterValue||"",placeholder:(0,a.getLocalizedFilterPlaceHolder)(p,g),onChange:function(w){v(p.tableData.id,w.target.value)},inputProps:{"aria-label":"filter data by ".concat(p.title)},InputProps:b||p.hideFilterIcon?void 0:{startAdornment:o.default.createElement(l.default,{position:"start"},o.default.createElement(i.default,{title:y.filterTooltip},o.default.createElement(x,null)))}})}var u=o.default.forwardRef(function(d,f){return o.default.createElement(s,(0,n.default)({},d,{forwardedRef:f}))});e.default=u}(l3)),l3}var s3={},SE;function Kxe(){return SE||(SE=1,function(e){var t=Hn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(jr()),r=t(Cc),l=t(ge);function i(a){var s=a.forwardedRef,u=a.columnDef,c=a.onFilterChanged;return l.default.createElement(r.default,{ref:s,inputProps:{"aria-label":"Filter of ".concat(u.title)},indeterminate:u.tableData.filterValue===void 0,checked:u.tableData.filterValue==="checked",onChange:function(){var f;u.tableData.filterValue===void 0?f="checked":u.tableData.filterValue==="checked"&&(f="unchecked"),c(u.tableData.id,f)}})}var o=l.default.forwardRef(function(s,u){return l.default.createElement(i,(0,n.default)({},s,{forwardedRef:u}))});e.default=o}(s3)),s3}var u3={},kE;function Zxe(){return kE||(kE=1,function(e){var t=Hn,n=Pa();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(jr()),l=o(ge);function i(u){if(typeof WeakMap!="function")return null;var c=new WeakMap,d=new WeakMap;return(i=function(p){return p?d:c})(u)}function o(u,c){if(u&&u.__esModule)return u;if(u===null||n(u)!=="object"&&typeof u!="function")return{default:u};var d=i(c);if(d&&d.has(u))return d.get(u);var f={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in u)if(h!=="default"&&Object.prototype.hasOwnProperty.call(u,h)){var g=p?Object.getOwnPropertyDescriptor(u,h):null;g&&(g.get||g.set)?Object.defineProperty(f,h,g):f[h]=u[h]}return f.default=u,d&&d.set(u,f),f}function a(u){var c=u.columnDef,d=u.onFilterChanged,f=u.forwardedRef;return(0,l.createElement)(c.filterComponent,{columnDef:c,onFilterChanged:d,forwardedRef:f})}var s=l.default.forwardRef(function(c,d){return l.default.createElement(a,(0,r.default)({},c,{forwardedRef:d}))});e.default=s}(u3)),u3}var CE;function dq(){return CE||(CE=1,function(e){var t=Hn;Object.defineProperty(e,"__esModule",{value:!0}),e.MTableFilterRow=b,e.default=void 0;var n=t(ms),r=t(zl),l=t(za()),i=t(jr()),o=t(ge),a=t(Kr),s=t(Hxe()),u=t(Yxe()),c=t(Xxe()),d=t(Kxe()),f=t(Zxe()),p=mg();function h(m,y){var x=Object.keys(m);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(m);y&&(_=_.filter(function(w){return Object.getOwnPropertyDescriptor(m,w).enumerable})),x.push.apply(x,_)}return x}function g(m){for(var y=1;y-1)}).sort(function(k,C){return k.tableData.columnOrder-C.tableData.columnOrder}).map(function(k){return o.default.createElement(r.default,{key:k.tableData.id,style:g(g({},y.filterCellStyle),k.filterCellStyle)},x(k))});if(y.selection&&_.splice(0,0,o.default.createElement(r.default,{padding:"none",key:"key-selection-column"})),m.hasActions)if(y.actionsColumnIndex===-1)_.push(o.default.createElement(r.default,{key:"key-action-column"}));else{var w=0;m.selection&&(w=1),_.splice(y.actionsColumnIndex+w,0,o.default.createElement(r.default,{key:"key-action-column"}))}if(m.hasDetailPanel&&y.showDetailPanelIcon){var S=y.detailPanelColumnAlignment==="left"?0:_.length;_.splice(S,0,o.default.createElement(r.default,{padding:"none",key:"key-detail-panel-column"}))}return m.isTreeData>0&&_.splice(0,0,o.default.createElement(r.default,{padding:"none",key:"key-tree-data-filter"})),m.columns.filter(function(k){return k.tableData.groupOrder>-1}).forEach(function(k){_.splice(0,0,o.default.createElement(r.default,{padding:"checkbox",key:"key-group-filter"+k.tableData.id}))}),o.default.createElement(n.default,{id:"m--table--filter--row",ref:m.forwardedRef,style:g({height:10},y.filterRowStyle)},_)}b.defaultProps={columns:[],hasActions:!1,localization:{filterTooltip:"Filter"}},b.propTypes={columns:a.default.array.isRequired,hasDetailPanel:a.default.bool.isRequired,isTreeData:a.default.bool.isRequired,onFilterChanged:a.default.func.isRequired,hasActions:a.default.bool,localization:a.default.object};var v=o.default.forwardRef(function(y,x){return o.default.createElement(b,(0,i.default)({},y,{forwardedRef:x}))});e.default=v}(a3)),a3}var c3={};const fq=er(nfe),Qxe=er(Die);function ME(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function PE(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Ro(1));return n(pq)(e,t)}if(typeof e!="function")throw new Error(Ro(2));var l=e,i=t,o=[],a=o,s=!1;function u(){a===o&&(a=o.slice())}function c(){if(s)throw new Error(Ro(3));return i}function d(g){if(typeof g!="function")throw new Error(Ro(4));if(s)throw new Error(Ro(5));var b=!0;return u(),a.push(g),function(){if(b){if(s)throw new Error(Ro(6));b=!1,u();var m=a.indexOf(g);a.splice(m,1),o=null}}}function f(g){if(!Jxe(g))throw new Error(Ro(7));if(typeof g.type>"u")throw new Error(Ro(8));if(s)throw new Error(Ro(9));try{s=!0,i=l(i,g)}finally{s=!1}for(var b=o=a,v=0;vmq=e,r2e=()=>mq,RE=Symbol.for("react-redux-context"),LE=typeof globalThis<"u"?globalThis:{};function a2e(){var e;if(!ge.createContext)return{};const t=(e=LE[RE])!=null?e:LE[RE]=new Map;let n=t.get(ge.createContext);return n||(n=ge.createContext(null),t.set(ge.createContext,n)),n}const gq=a2e(),o2e=()=>{throw new Error("uSES not initialized!")},i2e=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function l2e(e,t,n,r,{areStatesEqual:l,areOwnPropsEqual:i,areStatePropsEqual:o}){let a=!1,s,u,c,d,f;function p(m,y){return s=m,u=y,c=e(s,u),d=t(r,u),f=n(c,d,u),a=!0,f}function h(){return c=e(s,u),t.dependsOnOwnProps&&(d=t(r,u)),f=n(c,d,u),f}function g(){return e.dependsOnOwnProps&&(c=e(s,u)),t.dependsOnOwnProps&&(d=t(r,u)),f=n(c,d,u),f}function b(){const m=e(s,u),y=!o(m,c);return c=m,y&&(f=n(c,d,u)),f}function v(m,y){const x=!i(y,u),_=!l(m,s,y,u);return s=m,u=y,x&&_?h():x?g():_?b():f}return function(y,x){return a?v(y,x):p(y,x)}}function s2e(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:l}=t,i=tr(t,i2e);const o=n(e,i),a=r(e,i),s=l(e,i);return l2e(o,a,s,e,i)}function u2e(e,t){const n={};for(const r in e){const l=e[r];typeof l=="function"&&(n[r]=(...i)=>t(l(...i)))}return n}function XS(e){return function(n){const r=e(n);function l(){return r}return l.dependsOnOwnProps=!1,l}}function IE(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function vq(e,t){return function(r,{displayName:l}){const i=function(a,s){return i.dependsOnOwnProps?i.mapToProps(a,s):i.mapToProps(a,void 0)};return i.dependsOnOwnProps=!0,i.mapToProps=function(a,s){i.mapToProps=e,i.dependsOnOwnProps=IE(e);let u=i(a,s);return typeof u=="function"&&(i.mapToProps=u,i.dependsOnOwnProps=IE(u),u=i(a,s)),u},i}}function a4(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function c2e(e){return e&&typeof e=="object"?XS(t=>u2e(e,t)):e?typeof e=="function"?vq(e):a4(e,"mapDispatchToProps"):XS(t=>({dispatch:t}))}function d2e(e){return e?typeof e=="function"?vq(e):a4(e,"mapStateToProps"):XS(()=>({}))}function f2e(e,t,n){return Yt({},n,e,t)}function p2e(e){return function(n,{displayName:r,areMergedPropsEqual:l}){let i=!1,o;return function(s,u,c){const d=e(s,u,c);return i?l(d,o)||(o=d):(i=!0,o=d),o}}}function h2e(e){return e?typeof e=="function"?p2e(e):a4(e,"mergeProps"):()=>f2e}function m2e(){const e=r2e();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],l=t;for(;l;)r.push(l),l=l.next;return r},subscribe(r){let l=!0,i=n={callback:r,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){!l||t===null||(l=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}const $E={notify(){},get:()=>[]};function yq(e,t){let n,r=$E,l=0,i=!1;function o(g){c();const b=r.subscribe(g);let v=!1;return()=>{v||(v=!0,b(),d())}}function a(){r.notify()}function s(){h.onStateChange&&h.onStateChange()}function u(){return i}function c(){l++,n||(n=t?t.addNestedSub(s):e.subscribe(s),r=m2e())}function d(){l--,n&&l===0&&(n(),n=void 0,r.clear(),r=$E)}function f(){i||(i=!0,c())}function p(){i&&(i=!1,d())}const h={addNestedSub:o,notifyNestedSubs:a,handleChangeWrapper:s,isSubscribed:u,trySubscribe:f,tryUnsubscribe:p,getListeners:()=>r};return h}const g2e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ry=g2e?ge.useLayoutEffect:ge.useEffect;function NE(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function f3(e,t){if(NE(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let l=0;l{bq=e},b2e=[null,null];function x2e(e,t,n){Ry(()=>e(...t),n)}function w2e(e,t,n,r,l,i){e.current=r,n.current=!1,l.current&&(l.current=null,i())}function _2e(e,t,n,r,l,i,o,a,s,u,c){if(!e)return()=>{};let d=!1,f=null;const p=()=>{if(d||!a.current)return;const g=t.getState();let b,v;try{b=r(g,l.current)}catch(m){v=m,f=m}v||(f=null),b===i.current?o.current||u():(i.current=b,s.current=b,o.current=!0,c())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}function T2e(e,t){return e===t}function xq(e,t,n,{pure:r,areStatesEqual:l=T2e,areOwnPropsEqual:i=f3,areStatePropsEqual:o=f3,areMergedPropsEqual:a=f3,forwardRef:s=!1,context:u=gq}={}){const c=u,d=d2e(e),f=c2e(t),p=h2e(n),h=!!e;return b=>{const v=b.displayName||b.name||"Component",m=`Connect(${v})`,y={shouldHandleStateChanges:h,displayName:m,wrappedComponentName:v,WrappedComponent:b,initMapStateToProps:d,initMapDispatchToProps:f,initMergeProps:p,areStatesEqual:l,areStatePropsEqual:o,areOwnPropsEqual:i,areMergedPropsEqual:a};function x(S){const[k,C,T]=ge.useMemo(()=>{const{reactReduxForwardedRef:U}=S,Q=tr(S,v2e);return[S.context,U,Q]},[S]),M=ge.useMemo(()=>k&&k.Consumer&&Bve.isContextConsumer(ge.createElement(k.Consumer,null))?k:c,[k,c]),O=ge.useContext(M),D=!!S.store&&!!S.store.getState&&!!S.store.dispatch,P=!!O&&!!O.store,E=D?S.store:O.store,I=P?O.getServerState:E.getState,A=ge.useMemo(()=>s2e(E.dispatch,y),[E]),[F,j]=ge.useMemo(()=>{if(!h)return b2e;const U=yq(E,D?void 0:O.subscription),Q=U.notifyNestedSubs.bind(U);return[U,Q]},[E,D,O]),B=ge.useMemo(()=>D?O:Yt({},O,{subscription:F}),[D,O,F]),z=ge.useRef(),N=ge.useRef(T),R=ge.useRef(),q=ge.useRef(!1);ge.useRef(!1);const Y=ge.useRef(!1),L=ge.useRef();Ry(()=>(Y.current=!0,()=>{Y.current=!1}),[]);const W=ge.useMemo(()=>()=>R.current&&T===N.current?R.current:A(E.getState(),T),[E,T]),H=ge.useMemo(()=>Q=>F?_2e(h,E,F,A,N,z,q,Y,R,j,Q):()=>{},[F]);x2e(w2e,[N,z,q,T,R,j]);let G;try{G=bq(H,W,I?()=>A(I(),T):W)}catch(U){throw L.current&&(U.message+=` The error may be correlated with this previous error: ${L.current.stack} -`),U}Ry(()=>{L.current=void 0,R.current=void 0,z.current=G});const te=ge.useMemo(()=>ge.createElement(b,Yt({},G,{ref:C})),[C,b,G]);return ge.useMemo(()=>h?ge.createElement(M.Provider,{value:B},te):te,[M,te,B])}const w=ge.memo(x);if(w.WrappedComponent=b,w.displayName=x.displayName=m,s){const k=ge.forwardRef(function(T,M){return ge.createElement(w,Yt({},T,{reactReduxForwardedRef:M}))});return k.displayName=m,k.WrappedComponent=b,nA(k,b)}return nA(w,b)}}function T2e({store:e,context:t,children:n,serverState:r,stabilityCheck:l="once",noopCheck:i="once"}){const o=ge.useMemo(()=>{const u=yq(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:l,noopCheck:i}},[e,r,l,i]),a=ge.useMemo(()=>e.getState(),[e]);Ry(()=>{const{subscription:u}=o;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),a!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[o,a]);const s=t||gq;return ge.createElement(s.Provider,{value:o},n)}v2e(NB.useSyncExternalStore);t2e(bf.unstable_batchedUpdates);function S2e(e,t){if(e.length!==t.length)return!1;for(var n=0;n{const i=E2e(n,l.options);return e.addEventListener(l.eventName,l.fn,i),function(){e.removeEventListener(l.eventName,l.fn,i)}});return function(){r.forEach(i=>{i()})}}const R2e="Invariant failed";class $y extends Error{}$y.prototype.toString=function(){return this.message};function mn(e,t){throw new $y(R2e)}class L2e extends Ke.Component{constructor(){super(...arguments),this.callbacks=null,this.unbind=Zs,this.onWindowError=t=>{const n=this.getCallbacks();n.isDragging()&&n.tryAbort(),t.error instanceof $y&&t.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in ");return this.callbacks},this.setCallbacks=t=>{this.callbacks=t}}componentDidMount(){this.unbind=Pi(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(t){if(t instanceof $y){this.setState({});return}throw t}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const I2e=` +`),U}Ry(()=>{L.current=void 0,R.current=void 0,z.current=G});const te=ge.useMemo(()=>ge.createElement(b,Yt({},G,{ref:C})),[C,b,G]);return ge.useMemo(()=>h?ge.createElement(M.Provider,{value:B},te):te,[M,te,B])}const w=ge.memo(x);if(w.WrappedComponent=b,w.displayName=x.displayName=m,s){const k=ge.forwardRef(function(T,M){return ge.createElement(w,Yt({},T,{reactReduxForwardedRef:M}))});return k.displayName=m,k.WrappedComponent=b,nA(k,b)}return nA(w,b)}}function S2e({store:e,context:t,children:n,serverState:r,stabilityCheck:l="once",noopCheck:i="once"}){const o=ge.useMemo(()=>{const u=yq(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:l,noopCheck:i}},[e,r,l,i]),a=ge.useMemo(()=>e.getState(),[e]);Ry(()=>{const{subscription:u}=o;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),a!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[o,a]);const s=t||gq;return ge.createElement(s.Provider,{value:o},n)}y2e(NB.useSyncExternalStore);n2e(bf.unstable_batchedUpdates);function k2e(e,t){if(e.length!==t.length)return!1;for(var n=0;n{const i=R2e(n,l.options);return e.addEventListener(l.eventName,l.fn,i),function(){e.removeEventListener(l.eventName,l.fn,i)}});return function(){r.forEach(i=>{i()})}}const L2e="Invariant failed";class $y extends Error{}$y.prototype.toString=function(){return this.message};function mn(e,t){throw new $y(L2e)}class I2e extends Xe.Component{constructor(){super(...arguments),this.callbacks=null,this.unbind=Zs,this.onWindowError=t=>{const n=this.getCallbacks();n.isDragging()&&n.tryAbort(),t.error instanceof $y&&t.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in ");return this.callbacks},this.setCallbacks=t=>{this.callbacks=t}}componentDidMount(){this.unbind=Pi(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(t){if(t instanceof $y){this.setState({});return}throw t}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const $2e=` Press space bar to start a drag. When dragging you can use the arrow keys to move the item around and escape to cancel. Some screen readers may require you to be in focus mode or to use your pass through key -`,Ny=e=>e+1,$2e=e=>` +`,Ny=e=>e+1,N2e=e=>` You have lifted an item in position ${Ny(e.source.index)} `,kq=(e,t)=>{const n=e.droppableId===t.droppableId,r=Ny(e.index),l=Ny(t.index);return n?` You have moved the item from position ${r} @@ -515,10 +515,10 @@ ${L.current.stack} in list ${t.droppableId} has been combined with ${n.draggableId} in list ${n.droppableId} - `,N2e=e=>{const t=e.destination;if(t)return kq(e.source,t);const n=e.combine;return n?Cq(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},zE=e=>` + `,F2e=e=>{const t=e.destination;if(t)return kq(e.source,t);const n=e.combine;return n?Cq(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},zE=e=>` The item has returned to its starting position of ${Ny(e.index)} -`,F2e=e=>{if(e.reason==="CANCEL")return` +`,j2e=e=>{if(e.reason==="CANCEL")return` Movement cancelled. ${zE(e.source)} `;const t=e.destination,n=e.combine;return t?` @@ -530,16 +530,16 @@ ${L.current.stack} `:` The item has been dropped while not over a drop area. ${zE(e.source)} - `},j2e={dragHandleUsageInstructions:I2e,onDragStart:$2e,onDragUpdate:N2e,onDragEnd:F2e};var _v=j2e;const Ha={x:0,y:0},ro=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),ti=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),Qs=(e,t)=>e.x===t.x&&e.y===t.y,Pf=e=>({x:e.x!==0?-e.x:0,y:e.y!==0?-e.y:0}),uc=function(e,t,n){return n===void 0&&(n=0),e==="x"?{x:t,y:n}:{x:n,y:t}},Am=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),BE=(e,t)=>Math.min(...t.map(n=>Am(e,n))),Mq=e=>t=>({x:e(t.x),y:e(t.y)});var z2e=(e,t)=>{const n=nl({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n};const wg=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),WE=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],B2e={top:0,right:0,bottom:0,left:0},W2e=(e,t)=>t?wg(e,t.scroll.diff.displacement):e,q2e=(e,t,n)=>n&&n.increasedBy?{...e,[t.end]:e[t.end]+n.increasedBy[t.line]}:e,U2e=(e,t)=>t&&t.shouldClipSubject?z2e(t.pageMarginBox,e):nl(e);var af=e=>{let{page:t,withPlaceholder:n,axis:r,frame:l}=e;const i=W2e(t.marginBox,l),o=q2e(i,r,n),a=U2e(o,l);return{page:t,withPlaceholder:n,active:a}},l4=(e,t)=>{e.frame||mn();const n=e.frame,r=ti(t,n.scroll.initial),l=Pf(r),i={...n,scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:l},max:n.scroll.max}},o=af({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i});return{...e,frame:i,subject:o}};const Pq=Ua(e=>e.reduce((t,n)=>(t[n.descriptor.id]=n,t),{})),Oq=Ua(e=>e.reduce((t,n)=>(t[n.descriptor.id]=n,t),{})),nx=Ua(e=>Object.values(e)),H2e=Ua(e=>Object.values(e));var Of=Ua((e,t)=>H2e(t).filter(r=>e===r.descriptor.droppableId).sort((r,l)=>r.descriptor.index-l.descriptor.index));function s4(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function rx(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var ax=Ua((e,t)=>t.filter(n=>n.descriptor.id!==e.descriptor.id)),V2e=e=>{let{isMovingForward:t,draggable:n,destination:r,insideDestination:l,previousImpact:i}=e;if(!r.isCombineEnabled||!s4(i))return null;function a(h){const g={type:"COMBINE",combine:{draggableId:h,droppableId:r.descriptor.id}};return{...i,at:g}}const s=i.displaced.all,u=s.length?s[0]:null;if(t)return u?a(u):null;const c=ax(n,l);if(!u){if(!c.length)return null;const h=c[c.length-1];return a(h.descriptor.id)}const d=c.findIndex(h=>h.descriptor.id===u);d===-1&&mn();const f=d-1;if(f<0)return null;const p=c[f];return a(p.descriptor.id)},Af=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const Aq={point:Ha,value:0},Dm={invisible:{},visible:{},all:[]},G2e={displaced:Dm,displacedBy:Aq,at:null};var Y2e=G2e,Ri=(e,t)=>n=>e<=n&&n<=t,Dq=e=>{const t=Ri(e.top,e.bottom),n=Ri(e.left,e.right);return r=>{if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;const i=t(r.top)||t(r.bottom),o=n(r.left)||n(r.right);if(i&&o)return!0;const s=r.tope.bottom,u=r.lefte.right;return s&&u?!0:s&&o||u&&i}},X2e=e=>{const t=Ri(e.top,e.bottom),n=Ri(e.left,e.right);return r=>t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right)};const u4={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Eq={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};var K2e=e=>t=>{const n=Ri(t.top,t.bottom),r=Ri(t.left,t.right);return l=>e===u4?n(l.top)&&n(l.bottom):r(l.left)&&r(l.right)};const Z2e=(e,t)=>{const n=t.frame?t.frame.scroll.diff.displacement:Ha;return wg(e,n)},Q2e=(e,t,n)=>t.subject.active?n(t.subject.active)(e):!1,J2e=(e,t,n)=>n(t)(e),c4=e=>{let{target:t,destination:n,viewport:r,withDroppableDisplacement:l,isVisibleThroughFrameFn:i}=e;const o=l?Z2e(t,n):t;return Q2e(o,n,i)&&J2e(o,r,i)},ewe=e=>c4({...e,isVisibleThroughFrameFn:Dq}),Rq=e=>c4({...e,isVisibleThroughFrameFn:X2e}),twe=e=>c4({...e,isVisibleThroughFrameFn:K2e(e.destination.axis)}),nwe=(e,t,n)=>{if(typeof n=="boolean")return n;if(!t)return!0;const{invisible:r,visible:l}=t;if(r[e])return!1;const i=l[e];return i?i.shouldAnimate:!0};function rwe(e,t){const n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return nl(o4(n,r))}function Em(e){let{afterDragging:t,destination:n,displacedBy:r,viewport:l,forceShouldAnimate:i,last:o}=e;return t.reduce(function(s,u){const c=rwe(u,r),d=u.descriptor.id;if(s.all.push(d),!ewe({target:c,destination:n,viewport:l,withDroppableDisplacement:!0}))return s.invisible[u.descriptor.id]=!0,s;const p=nwe(d,o,i),h={draggableId:d,shouldAnimate:p};return s.visible[d]=h,s},{all:[],visible:{},invisible:{}})}function awe(e,t){if(!e.length)return 0;const n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}function qE(e){let{insideDestination:t,inHomeList:n,displacedBy:r,destination:l}=e;const i=awe(t,{inHomeList:n});return{displaced:Dm,displacedBy:r,at:{type:"REORDER",destination:{droppableId:l.descriptor.id,index:i}}}}function Fy(e){let{draggable:t,insideDestination:n,destination:r,viewport:l,displacedBy:i,last:o,index:a,forceShouldAnimate:s}=e;const u=Af(t,r);if(a==null)return qE({insideDestination:n,inHomeList:u,displacedBy:i,destination:r});const c=n.find(g=>g.descriptor.index===a);if(!c)return qE({insideDestination:n,inHomeList:u,displacedBy:i,destination:r});const d=ax(t,n),f=n.indexOf(c),p=d.slice(f);return{displaced:Em({afterDragging:p,destination:r,displacedBy:i,last:o,viewport:l.frame,forceShouldAnimate:s}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:a}}}}function iu(e,t){return!!t.effected[e]}var owe=e=>{let{isMovingForward:t,destination:n,draggables:r,combine:l,afterCritical:i}=e;if(!n.isCombineEnabled)return null;const o=l.draggableId,s=r[o].descriptor.index;return iu(o,i)?t?s:s-1:t?s+1:s},iwe=e=>{let{isMovingForward:t,isInHomeList:n,insideDestination:r,location:l}=e;if(!r.length)return null;const i=l.index,o=t?i+1:i-1,a=r[0].descriptor.index,s=r[r.length-1].descriptor.index,u=n?s:s+1;return ou?null:o},lwe=e=>{let{isMovingForward:t,isInHomeList:n,draggable:r,draggables:l,destination:i,insideDestination:o,previousImpact:a,viewport:s,afterCritical:u}=e;const c=a.at;if(c||mn(),c.type==="REORDER"){const f=iwe({isMovingForward:t,isInHomeList:n,location:c.destination,insideDestination:o});return f==null?null:Fy({draggable:r,insideDestination:o,destination:i,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:f})}const d=owe({isMovingForward:t,destination:i,displaced:a.displaced,draggables:l,combine:c.combine,afterCritical:u});return d==null?null:Fy({draggable:r,insideDestination:o,destination:i,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:d})},swe=e=>{let{displaced:t,afterCritical:n,combineWith:r,displacedBy:l}=e;const i=!!(t.visible[r]||t.invisible[r]);return iu(r,n)?i?Ha:Pf(l.point):i?l.point:Ha},uwe=e=>{let{afterCritical:t,impact:n,draggables:r}=e;const l=rx(n);l||mn();const i=l.draggableId,o=r[i].page.borderBox.center,a=swe({displaced:n.displaced,afterCritical:t,combineWith:i,displacedBy:n.displacedBy});return ro(o,a)};const Lq=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,cwe=(e,t)=>t.margin[e.end]+t.borderBox[e.size]/2,d4=(e,t,n)=>t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2,UE=e=>{let{axis:t,moveRelativeTo:n,isMoving:r}=e;return uc(t.line,n.marginBox[t.end]+Lq(t,r),d4(t,n.marginBox,r))},HE=e=>{let{axis:t,moveRelativeTo:n,isMoving:r}=e;return uc(t.line,n.marginBox[t.start]-cwe(t,r),d4(t,n.marginBox,r))},dwe=e=>{let{axis:t,moveInto:n,isMoving:r}=e;return uc(t.line,n.contentBox[t.start]+Lq(t,r),d4(t,n.contentBox,r))};var fwe=e=>{let{impact:t,draggable:n,draggables:r,droppable:l,afterCritical:i}=e;const o=Of(l.descriptor.id,r),a=n.page,s=l.axis;if(!o.length)return dwe({axis:s,moveInto:l.page,isMoving:a});const{displaced:u,displacedBy:c}=t,d=u.all[0];if(d){const p=r[d];if(iu(d,i))return HE({axis:s,moveRelativeTo:p.page,isMoving:a});const h=Ly(p.page,c.point);return HE({axis:s,moveRelativeTo:h,isMoving:a})}const f=o[o.length-1];if(f.descriptor.id===n.descriptor.id)return a.borderBox.center;if(iu(f.descriptor.id,i)){const p=Ly(f.page,Pf(i.displacedBy.point));return UE({axis:s,moveRelativeTo:p,isMoving:a})}return UE({axis:s,moveRelativeTo:f.page,isMoving:a})},KS=(e,t)=>{const n=e.frame;return n?ro(t,n.scroll.diff.displacement):t};const pwe=e=>{let{impact:t,draggable:n,droppable:r,draggables:l,afterCritical:i}=e;const o=n.page.borderBox.center,a=t.at;return!r||!a?o:a.type==="REORDER"?fwe({impact:t,draggable:n,draggables:l,droppable:r,afterCritical:i}):uwe({impact:t,draggables:l,afterCritical:i})};var ox=e=>{const t=pwe(e),n=e.droppable;return n?KS(n,t):t},Iq=(e,t)=>{const n=ti(t,e.scroll.initial),r=Pf(n);return{frame:nl({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function VE(e,t){return e.map(n=>t[n])}function hwe(e,t){for(let n=0;n{let{impact:t,viewport:n,destination:r,draggables:l,maxScrollChange:i}=e;const o=Iq(n,ro(n.scroll.current,i)),a=r.frame?l4(r,ro(r.frame.scroll.current,i)):r,s=t.displaced,u=Em({afterDragging:VE(s.all,l),destination:r,displacedBy:t.displacedBy,viewport:o.frame,last:s,forceShouldAnimate:!1}),c=Em({afterDragging:VE(s.all,l),destination:a,displacedBy:t.displacedBy,viewport:n.frame,last:s,forceShouldAnimate:!1}),d={},f={},p=[s,u,c];return s.all.forEach(g=>{const b=hwe(g,p);if(b){f[g]=b;return}d[g]=!0}),{...t,displaced:{all:s.all,invisible:d,visible:f}}},gwe=(e,t)=>ro(e.scroll.diff.displacement,t),f4=e=>{let{pageBorderBoxCenter:t,draggable:n,viewport:r}=e;const l=gwe(r,t),i=ti(l,n.page.borderBox.center);return ro(n.client.borderBox.center,i)},$q=e=>{let{draggable:t,destination:n,newPageBorderBoxCenter:r,viewport:l,withDroppableDisplacement:i,onlyOnMainAxis:o=!1}=e;const a=ti(r,t.page.borderBox.center),u={target:wg(t.page.borderBox,a),destination:n,withDroppableDisplacement:i,viewport:l};return o?twe(u):Rq(u)},vwe=e=>{let{isMovingForward:t,draggable:n,destination:r,draggables:l,previousImpact:i,viewport:o,previousPageBorderBoxCenter:a,previousClientSelection:s,afterCritical:u}=e;if(!r.isEnabled)return null;const c=Of(r.descriptor.id,l),d=Af(n,r),f=V2e({isMovingForward:t,draggable:n,destination:r,insideDestination:c,previousImpact:i})||lwe({isMovingForward:t,isInHomeList:d,draggable:n,draggables:l,destination:r,insideDestination:c,previousImpact:i,viewport:o,afterCritical:u});if(!f)return null;const p=ox({impact:f,draggable:n,droppable:r,draggables:l,afterCritical:u});if($q({draggable:n,destination:r,newPageBorderBoxCenter:p,viewport:o.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:f4({pageBorderBoxCenter:p,draggable:n,viewport:o}),impact:f,scrollJumpRequest:null};const g=ti(p,a),b=mwe({impact:f,viewport:o,destination:r,draggables:l,maxScrollChange:g});return{clientSelection:s,impact:b,scrollJumpRequest:g}};const _o=e=>{const t=e.subject.active;return t||mn(),t};var ywe=e=>{let{isMovingForward:t,pageBorderBoxCenter:n,source:r,droppables:l,viewport:i}=e;const o=r.subject.active;if(!o)return null;const a=r.axis,s=Ri(o[a.start],o[a.end]),u=nx(l).filter(d=>d!==r).filter(d=>d.isEnabled).filter(d=>!!d.subject.active).filter(d=>Dq(i.frame)(_o(d))).filter(d=>{const f=_o(d);return t?o[a.crossAxisEnd]{const f=_o(d),p=Ri(f[a.start],f[a.end]);return s(f[a.start])||s(f[a.end])||p(o[a.start])||p(o[a.end])}).sort((d,f)=>{const p=_o(d)[a.crossAxisStart],h=_o(f)[a.crossAxisStart];return t?p-h:h-p}).filter((d,f,p)=>_o(d)[a.crossAxisStart]===_o(p[0])[a.crossAxisStart]);if(!u.length)return null;if(u.length===1)return u[0];const c=u.filter(d=>Ri(_o(d)[a.start],_o(d)[a.end])(n[a.line]));return c.length===1?c[0]:c.length>1?c.sort((d,f)=>_o(d)[a.start]-_o(f)[a.start])[0]:u.sort((d,f)=>{const p=BE(n,WE(_o(d))),h=BE(n,WE(_o(f)));return p!==h?p-h:_o(d)[a.start]-_o(f)[a.start]})[0]};const GE=(e,t)=>{const n=e.page.borderBox.center;return iu(e.descriptor.id,t)?ti(n,t.displacedBy.point):n},bwe=(e,t)=>{const n=e.page.borderBox;return iu(e.descriptor.id,t)?wg(n,Pf(t.displacedBy.point)):n};var xwe=e=>{let{pageBorderBoxCenter:t,viewport:n,destination:r,insideDestination:l,afterCritical:i}=e;return l.filter(a=>Rq({target:bwe(a,i),destination:r,viewport:n.frame,withDroppableDisplacement:!0})).sort((a,s)=>{const u=Am(t,KS(r,GE(a,i))),c=Am(t,KS(r,GE(s,i)));return u{const r=e.axis;if(e.descriptor.mode==="virtual")return uc(r.line,t[r.line]);const l=e.subject.page.contentBox[r.size],s=Of(e.descriptor.id,n).reduce((u,c)=>u+c.client.marginBox[r.size],0)+t[r.line]-l;return s<=0?null:uc(r.line,s)},Nq=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),Fq=(e,t,n)=>{const r=e.frame;Af(t,e)&&mn(),e.subject.withPlaceholder&&mn();const l=_g(e.axis,t.displaceBy).point,i=wwe(e,l,n),o={placeholderSize:l,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){const c=af({page:e.subject.page,withPlaceholder:o,axis:e.axis,frame:e.frame});return{...e,subject:c}}const a=i?ro(r.scroll.max,i):r.scroll.max,s=Nq(r,a),u=af({page:e.subject.page,withPlaceholder:o,axis:e.axis,frame:s});return{...e,subject:u,frame:s}},_we=e=>{const t=e.subject.withPlaceholder;t||mn();const n=e.frame;if(!n){const o=af({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:o}}const r=t.oldFrameMaxScroll;r||mn();const l=Nq(n,r),i=af({page:e.subject.page,axis:e.axis,frame:l,withPlaceholder:null});return{...e,subject:i,frame:l}};var Twe=e=>{let{previousPageBorderBoxCenter:t,moveRelativeTo:n,insideDestination:r,draggable:l,draggables:i,destination:o,viewport:a,afterCritical:s}=e;if(!n){if(r.length)return null;const f={displaced:Dm,displacedBy:Aq,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:0}}},p=ox({impact:f,draggable:l,droppable:o,draggables:i,afterCritical:s}),h=Af(l,o)?o:Fq(o,l,i);return $q({draggable:l,destination:h,newPageBorderBoxCenter:p,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?f:null}const u=t[o.axis.line]<=n.page.borderBox.center[o.axis.line],c=(()=>{const f=n.descriptor.index;return n.descriptor.id===l.descriptor.id||u?f:f+1})(),d=_g(o.axis,l.displaceBy);return Fy({draggable:l,insideDestination:r,destination:o,viewport:a,displacedBy:d,last:Dm,index:c})},Swe=e=>{let{isMovingForward:t,previousPageBorderBoxCenter:n,draggable:r,isOver:l,draggables:i,droppables:o,viewport:a,afterCritical:s}=e;const u=ywe({isMovingForward:t,pageBorderBoxCenter:n,source:l,droppables:o,viewport:a});if(!u)return null;const c=Of(u.descriptor.id,i),d=xwe({pageBorderBoxCenter:n,viewport:a,destination:u,insideDestination:c,afterCritical:s}),f=Twe({previousPageBorderBoxCenter:n,destination:u,draggable:r,draggables:i,moveRelativeTo:d,insideDestination:c,viewport:a,afterCritical:s});if(!f)return null;const p=ox({impact:f,draggable:r,droppable:u,draggables:i,afterCritical:s});return{clientSelection:f4({pageBorderBoxCenter:p,draggable:r,viewport:a}),impact:f,scrollJumpRequest:null}},ii=e=>{const t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null};const kwe=(e,t)=>{const n=ii(e);return n?t[n]:null};var Cwe=e=>{let{state:t,type:n}=e;const r=kwe(t.impact,t.dimensions.droppables),l=!!r,i=t.dimensions.droppables[t.critical.droppable.id],o=r||i,a=o.axis.direction,s=a==="vertical"&&(n==="MOVE_UP"||n==="MOVE_DOWN")||a==="horizontal"&&(n==="MOVE_LEFT"||n==="MOVE_RIGHT");if(s&&!l)return null;const u=n==="MOVE_DOWN"||n==="MOVE_RIGHT",c=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,{draggables:f,droppables:p}=t.dimensions;return s?vwe({isMovingForward:u,previousPageBorderBoxCenter:d,draggable:c,destination:o,draggables:f,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):Swe({isMovingForward:u,previousPageBorderBoxCenter:d,draggable:c,isOver:o,draggables:f,droppables:p,viewport:t.viewport,afterCritical:t.afterCritical})};function Ru(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function jq(e){const t=Ri(e.top,e.bottom),n=Ri(e.left,e.right);return function(l){return t(l.y)&&n(l.x)}}function Mwe(e,t){return e.leftt.left&&e.topt.top}function Pwe(e){let{pageBorderBox:t,draggable:n,candidates:r}=e;const l=n.page.borderBox.center,i=r.map(o=>{const a=o.axis,s=uc(o.axis.line,t.center[a.line],o.page.borderBox.center[a.crossAxisLine]);return{id:o.descriptor.id,distance:Am(l,s)}}).sort((o,a)=>a.distance-o.distance);return i[0]?i[0].id:null}function Owe(e){let{pageBorderBox:t,draggable:n,droppables:r}=e;const l=nx(r).filter(i=>{if(!i.isEnabled)return!1;const o=i.subject.active;if(!o||!Mwe(t,o))return!1;if(jq(o)(t.center))return!0;const a=i.axis,s=o.center[a.crossAxisLine],u=t[a.crossAxisStart],c=t[a.crossAxisEnd],d=Ri(o[a.crossAxisStart],o[a.crossAxisEnd]),f=d(u),p=d(c);return!f&&!p?!0:f?us});return l.length?l.length===1?l[0].descriptor.id:Pwe({pageBorderBox:t,draggable:n,candidates:l}):null}const zq=(e,t)=>nl(wg(e,t));var Awe=(e,t)=>{const n=e.frame;return n?zq(t,n.scroll.diff.value):t};function Bq(e){let{displaced:t,id:n}=e;return!!(t.visible[n]||t.invisible[n])}function Dwe(e){let{draggable:t,closest:n,inHomeList:r}=e;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}var Ewe=e=>{let{pageBorderBoxWithDroppableScroll:t,draggable:n,destination:r,insideDestination:l,last:i,viewport:o,afterCritical:a}=e;const s=r.axis,u=_g(r.axis,n.displaceBy),c=u.value,d=t[s.start],f=t[s.end],h=ax(n,l).find(b=>{const v=b.descriptor.id,m=b.page.borderBox.center[s.line],y=iu(v,a),x=Bq({displaced:i,id:v});return y?x?f<=m:d{let{draggable:t,pageBorderBoxWithDroppableScroll:n,previousImpact:r,destination:l,insideDestination:i,afterCritical:o}=e;if(!l.isCombineEnabled)return null;const a=l.axis,s=_g(l.axis,t.displaceBy),u=s.value,c=n[a.start],d=n[a.end],p=ax(t,i).find(g=>{const b=g.descriptor.id,v=g.page.borderBox,y=v[a.size]/Rwe,x=iu(b,o),_=Bq({displaced:r.displaced,id:b});return x?_?d>v[a.start]+y&&dv[a.start]-u+y&&cv[a.start]+u+y&&dv[a.start]+y&&c{let{pageOffset:t,draggable:n,draggables:r,droppables:l,previousImpact:i,viewport:o,afterCritical:a}=e;const s=zq(n.page.borderBox,t),u=Owe({pageBorderBox:s,draggable:n,droppables:l});if(!u)return Y2e;const c=l[u],d=Of(c.descriptor.id,r),f=Awe(c,s);return Lwe({pageBorderBoxWithDroppableScroll:f,draggable:n,previousImpact:i,destination:c,insideDestination:d,afterCritical:a})||Ewe({pageBorderBoxWithDroppableScroll:f,draggable:n,destination:c,insideDestination:d,last:i.displaced,viewport:o,afterCritical:a})},p4=(e,t)=>({...e,[t.descriptor.id]:t});const Iwe=e=>{let{previousImpact:t,impact:n,droppables:r}=e;const l=ii(t),i=ii(n);if(!l||l===i)return r;const o=r[l];if(!o.subject.withPlaceholder)return r;const a=_we(o);return p4(r,a)};var $we=e=>{let{draggable:t,draggables:n,droppables:r,previousImpact:l,impact:i}=e;const o=Iwe({previousImpact:l,impact:i,droppables:r}),a=ii(i);if(!a)return o;const s=r[a];if(Af(t,s)||s.subject.withPlaceholder)return o;const u=Fq(s,t,n);return p4(o,u)},Zh=e=>{let{state:t,clientSelection:n,dimensions:r,viewport:l,impact:i,scrollJumpRequest:o}=e;const a=l||t.viewport,s=r||t.dimensions,u=n||t.current.client.selection,c=ti(u,t.initial.client.selection),d={offset:c,selection:u,borderBoxCenter:ro(t.initial.client.borderBoxCenter,c)},f={selection:ro(d.selection,a.scroll.current),borderBoxCenter:ro(d.borderBoxCenter,a.scroll.current),offset:ro(d.offset,a.scroll.diff.value)},p={client:d,page:f};if(t.phase==="COLLECTING")return{...t,dimensions:s,viewport:a,current:p};const h=s.draggables[t.critical.draggable.id],g=i||Wq({pageOffset:f.offset,draggable:h,draggables:s.draggables,droppables:s.droppables,previousImpact:t.impact,viewport:a,afterCritical:t.afterCritical}),b=$we({draggable:h,impact:g,previousImpact:t.impact,draggables:s.draggables,droppables:s.droppables});return{...t,current:p,dimensions:{draggables:s.draggables,droppables:b},impact:g,viewport:a,scrollJumpRequest:o||null,forceShouldAnimate:o?!1:null}};function Nwe(e,t){return e.map(n=>t[n])}var qq=e=>{let{impact:t,viewport:n,draggables:r,destination:l,forceShouldAnimate:i}=e;const o=t.displaced,a=Nwe(o.all,r),s=Em({afterDragging:a,destination:l,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:i,last:o});return{...t,displaced:s}},Uq=e=>{let{impact:t,draggable:n,droppable:r,draggables:l,viewport:i,afterCritical:o}=e;const a=ox({impact:t,draggable:n,draggables:l,droppable:r,afterCritical:o});return f4({pageBorderBoxCenter:a,draggable:n,viewport:i})},Hq=e=>{let{state:t,dimensions:n,viewport:r}=e;t.movementMode!=="SNAP"&&mn();const l=t.impact,i=r||t.viewport,o=n||t.dimensions,{draggables:a,droppables:s}=o,u=a[t.critical.draggable.id],c=ii(l);c||mn();const d=s[c],f=qq({impact:l,viewport:i,destination:d,draggables:a}),p=Uq({impact:f,draggable:u,droppable:d,draggables:a,viewport:i,afterCritical:t.afterCritical});return Zh({impact:f,clientSelection:p,state:t,dimensions:o,viewport:i})},Fwe=e=>({index:e.index,droppableId:e.droppableId}),Vq=e=>{let{draggable:t,home:n,draggables:r,viewport:l}=e;const i=_g(n.axis,t.displaceBy),o=Of(n.descriptor.id,r),a=o.indexOf(t);a===-1&&mn();const s=o.slice(a+1),u=s.reduce((p,h)=>(p[h.descriptor.id]=!0,p),{}),c={inVirtualList:n.descriptor.mode==="virtual",displacedBy:i,effected:u};return{impact:{displaced:Em({afterDragging:s,destination:n,displacedBy:i,last:null,viewport:l.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:Fwe(t.descriptor)}},afterCritical:c}},jwe=(e,t)=>({draggables:e.draggables,droppables:p4(e.droppables,t)}),zwe=e=>{let{draggable:t,offset:n,initialWindowScroll:r}=e;const l=Ly(t.client,n),i=Iy(l,r);return{...t,placeholder:{...t.placeholder,client:l},client:l,page:i}},Bwe=e=>{const t=e.frame;return t||mn(),t},Wwe=e=>{let{additions:t,updatedDroppables:n,viewport:r}=e;const l=r.scroll.diff.value;return t.map(i=>{const o=i.descriptor.droppableId,a=n[o],u=Bwe(a).scroll.diff.value,c=ro(l,u);return zwe({draggable:i,offset:c,initialWindowScroll:r.scroll.initial})})},qwe=e=>{let{state:t,published:n}=e;const r=n.modified.map(m=>{const y=t.dimensions.droppables[m.droppableId];return l4(y,m.scroll)}),l={...t.dimensions.droppables,...Pq(r)},i=Oq(Wwe({additions:n.additions,updatedDroppables:l,viewport:t.viewport})),o={...t.dimensions.draggables,...i};n.removals.forEach(m=>{delete o[m]});const a={droppables:l,draggables:o},s=ii(t.impact),u=s?a.droppables[s]:null,c=a.draggables[t.critical.draggable.id],d=a.droppables[t.critical.droppable.id],{impact:f,afterCritical:p}=Vq({draggable:c,home:d,draggables:o,viewport:t.viewport}),h=u&&u.isCombineEnabled?t.impact:f,g=Wq({pageOffset:t.current.page.offset,draggable:a.draggables[t.critical.draggable.id],draggables:a.draggables,droppables:a.droppables,previousImpact:h,viewport:t.viewport,afterCritical:p}),b={...t,phase:"DRAGGING",impact:g,onLiftImpact:f,dimensions:a,afterCritical:p,forceShouldAnimate:!1};return t.phase==="COLLECTING"?b:{...b,phase:"DROP_PENDING",reason:t.reason,isWaiting:!1}};const ZS=e=>e.movementMode==="SNAP",h3=(e,t,n)=>{const r=jwe(e.dimensions,t);return!ZS(e)||n?Zh({state:e,dimensions:r}):Hq({state:e,dimensions:r})};function m3(e){return e.isDragging&&e.movementMode==="SNAP"?{...e,scrollJumpRequest:null}:e}const YE={phase:"IDLE",completed:null,shouldFlush:!1};var Uwe=function(e,t){if(e===void 0&&(e=YE),t.type==="FLUSH")return{...YE,shouldFlush:!0};if(t.type==="INITIAL_PUBLISH"){e.phase!=="IDLE"&&mn();const{critical:n,clientSelection:r,viewport:l,dimensions:i,movementMode:o}=t.payload,a=i.draggables[n.draggable.id],s=i.droppables[n.droppable.id],u={selection:r,borderBoxCenter:a.client.borderBox.center,offset:Ha},c={client:u,page:{selection:ro(u.selection,l.scroll.initial),borderBoxCenter:ro(u.selection,l.scroll.initial),offset:ro(u.selection,l.scroll.diff.value)}},d=nx(i.droppables).every(g=>!g.isFixedOnPage),{impact:f,afterCritical:p}=Vq({draggable:a,home:s,draggables:i.draggables,viewport:l});return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:o,dimensions:i,initial:c,current:c,isWindowScrollAllowed:d,impact:f,afterCritical:p,onLiftImpact:f,viewport:l,scrollJumpRequest:null,forceShouldAnimate:null}}if(t.type==="COLLECTION_STARTING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"?e:(e.phase!=="DRAGGING"&&mn(),{...e,phase:"COLLECTING"});if(t.type==="PUBLISH_WHILE_DRAGGING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"||mn(),qwe({state:e,published:t.payload});if(t.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;Ru(e)||mn();const{client:n}=t.payload;return Qs(n,e.current.client.selection)?e:Zh({state:e,clientSelection:n,impact:ZS(e)?e.impact:null})}if(t.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return m3(e);Ru(e)||mn();const{id:n,newScroll:r}=t.payload,l=e.dimensions.droppables[n];if(!l)return e;const i=l4(l,r);return h3(e,i,!1)}if(t.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;Ru(e)||mn();const{id:n,isEnabled:r}=t.payload,l=e.dimensions.droppables[n];l||mn(),l.isEnabled===r&&mn();const i={...l,isEnabled:r};return h3(e,i,!0)}if(t.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;Ru(e)||mn();const{id:n,isCombineEnabled:r}=t.payload,l=e.dimensions.droppables[n];l||mn(),l.isCombineEnabled===r&&mn();const i={...l,isCombineEnabled:r};return h3(e,i,!0)}if(t.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;Ru(e)||mn(),e.isWindowScrollAllowed||mn();const n=t.payload.newScroll;if(Qs(e.viewport.scroll.current,n))return m3(e);const r=Iq(e.viewport,n);return ZS(e)?Hq({state:e,viewport:r}):Zh({state:e,viewport:r})}if(t.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!Ru(e))return e;const n=t.payload.maxScroll;if(Qs(n,e.viewport.scroll.max))return e;const r={...e.viewport,scroll:{...e.viewport.scroll,max:n}};return{...e,viewport:r}}if(t.type==="MOVE_UP"||t.type==="MOVE_DOWN"||t.type==="MOVE_LEFT"||t.type==="MOVE_RIGHT"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&mn();const n=Cwe({state:e,type:t.type});return n?Zh({state:e,impact:n.impact,clientSelection:n.clientSelection,scrollJumpRequest:n.scrollJumpRequest}):e}if(t.type==="DROP_PENDING"){const n=t.payload.reason;return e.phase!=="COLLECTING"&&mn(),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:n}}if(t.type==="DROP_ANIMATE"){const{completed:n,dropDuration:r,newHomeClientOffset:l}=t.payload;return e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||mn(),{phase:"DROP_ANIMATING",completed:n,dropDuration:r,newHomeClientOffset:l,dimensions:e.dimensions}}if(t.type==="DROP_COMPLETE"){const{completed:n}=t.payload;return{phase:"IDLE",completed:n,shouldFlush:!1}}return e};const Hwe=e=>({type:"BEFORE_INITIAL_CAPTURE",payload:e}),Vwe=e=>({type:"LIFT",payload:e}),Gwe=e=>({type:"INITIAL_PUBLISH",payload:e}),Ywe=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),Xwe=()=>({type:"COLLECTION_STARTING",payload:null}),Kwe=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),Zwe=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),Qwe=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),Gq=e=>({type:"MOVE",payload:e}),Jwe=e=>({type:"MOVE_BY_WINDOW_SCROLL",payload:e}),e_e=e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}),t_e=()=>({type:"MOVE_UP",payload:null}),n_e=()=>({type:"MOVE_DOWN",payload:null}),r_e=()=>({type:"MOVE_RIGHT",payload:null}),a_e=()=>({type:"MOVE_LEFT",payload:null}),h4=()=>({type:"FLUSH",payload:null}),o_e=e=>({type:"DROP_ANIMATE",payload:e}),m4=e=>({type:"DROP_COMPLETE",payload:e}),Yq=e=>({type:"DROP",payload:e}),i_e=e=>({type:"DROP_PENDING",payload:e}),Xq=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});var l_e=e=>t=>{let{getState:n,dispatch:r}=t;return l=>i=>{if(i.type!=="LIFT"){l(i);return}const{id:o,clientSelection:a,movementMode:s}=i.payload,u=n();u.phase==="DROP_ANIMATING"&&r(m4({completed:u.completed})),n().phase!=="IDLE"&&mn(),r(h4()),r(Hwe({draggableId:o,movementMode:s}));const d={draggableId:o,scrollOptions:{shouldPublishImmediately:s==="SNAP"}},{critical:f,dimensions:p,viewport:h}=e.startPublishing(d);r(Gwe({critical:f,dimensions:p,clientSelection:a,movementMode:s,viewport:h}))}},s_e=e=>()=>t=>n=>{n.type==="INITIAL_PUBLISH"&&e.dragging(),n.type==="DROP_ANIMATE"&&e.dropping(n.payload.completed.result.reason),(n.type==="FLUSH"||n.type==="DROP_COMPLETE")&&e.resting(),t(n)};const g4={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Rm={opacity:{drop:0,combining:.7},scale:{drop:.75}},Kq={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Su=`${Kq.outOfTheWay}s ${g4.outOfTheWay}`,Qh={fluid:`opacity ${Su}`,snap:`transform ${Su}, opacity ${Su}`,drop:e=>{const t=`${e}s ${g4.drop}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${Su}`,placeholder:`height ${Su}, width ${Su}, margin ${Su}`},XE=e=>Qs(e,Ha)?void 0:`translate(${e.x}px, ${e.y}px)`,QS={moveTo:XE,drop:(e,t)=>{const n=XE(e);if(n)return t?`${n} scale(${Rm.scale.drop})`:n}},{minDropTime:JS,maxDropTime:Zq}=Kq,u_e=Zq-JS,KE=1500,c_e=.6;var d_e=e=>{let{current:t,destination:n,reason:r}=e;const l=Am(t,n);if(l<=0)return JS;if(l>=KE)return Zq;const i=l/KE,o=JS+u_e*i,a=r==="CANCEL"?o*c_e:o;return Number(a.toFixed(2))},f_e=e=>{let{impact:t,draggable:n,dimensions:r,viewport:l,afterCritical:i}=e;const{draggables:o,droppables:a}=r,s=ii(t),u=s?a[s]:null,c=a[n.descriptor.droppableId],d=Uq({impact:t,draggable:n,draggables:o,afterCritical:i,droppable:u||c,viewport:l});return ti(d,n.client.borderBox.center)},p_e=e=>{let{draggables:t,reason:n,lastImpact:r,home:l,viewport:i,onLiftImpact:o}=e;return!r.at||n!=="DROP"?{impact:qq({draggables:t,impact:o,destination:l,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}:r.at.type==="REORDER"?{impact:r,didDropInsideDroppable:!0}:{impact:{...r,displaced:Dm},didDropInsideDroppable:!0}};const h_e=e=>{let{getState:t,dispatch:n}=e;return r=>l=>{if(l.type!=="DROP"){r(l);return}const i=t(),o=l.payload.reason;if(i.phase==="COLLECTING"){n(i_e({reason:o}));return}if(i.phase==="IDLE")return;i.phase==="DROP_PENDING"&&i.isWaiting&&mn(),i.phase==="DRAGGING"||i.phase==="DROP_PENDING"||mn();const s=i.critical,u=i.dimensions,c=u.draggables[i.critical.draggable.id],{impact:d,didDropInsideDroppable:f}=p_e({reason:o,lastImpact:i.impact,afterCritical:i.afterCritical,onLiftImpact:i.onLiftImpact,home:i.dimensions.droppables[i.critical.droppable.id],viewport:i.viewport,draggables:i.dimensions.draggables}),p=f?s4(d):null,h=f?rx(d):null,g={index:s.draggable.index,droppableId:s.droppable.id},b={draggableId:c.descriptor.id,type:c.descriptor.type,source:g,reason:o,mode:i.movementMode,destination:p,combine:h},v=f_e({impact:d,draggable:c,dimensions:u,viewport:i.viewport,afterCritical:i.afterCritical}),m={critical:i.critical,afterCritical:i.afterCritical,result:b,impact:d};if(!(!Qs(i.current.client.offset,v)||!!b.combine)){n(m4({completed:m}));return}const x=d_e({current:i.current.client.offset,destination:v,reason:o});n(o_e({newHomeClientOffset:v,dropDuration:x,completed:m}))}};var m_e=h_e,Qq=()=>({x:window.pageXOffset,y:window.pageYOffset});function g_e(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}function v_e(e){let{onWindowScroll:t}=e;function n(){t(Qq())}const r=Om(n),l=g_e(r);let i=Zs;function o(){return i!==Zs}function a(){o()&&mn(),i=Pi(window,[l])}function s(){o()||mn(),r.cancel(),i(),i=Zs}return{start:a,stop:s,isActive:o}}const y_e=e=>e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH",b_e=e=>{const t=v_e({onWindowScroll:n=>{e.dispatch(Jwe({newScroll:n}))}});return n=>r=>{!t.isActive()&&r.type==="INITIAL_PUBLISH"&&t.start(),t.isActive()&&y_e(r)&&t.stop(),n(r)}};var x_e=b_e,w_e=e=>{let t=!1,n=!1;const r=setTimeout(()=>{n=!0}),l=i=>{t||n||(t=!0,e(i),clearTimeout(r))};return l.wasCalled=()=>t,l},__e=()=>{const e=[],t=l=>{const i=e.findIndex(a=>a.timerId===l);i===-1&&mn();const[o]=e.splice(i,1);o.callback()};return{add:l=>{const i=setTimeout(()=>t(i)),o={timerId:i,callback:l};e.push(o)},flush:()=>{if(!e.length)return;const l=[...e];e.length=0,l.forEach(i=>{clearTimeout(i.timerId),i.callback()})}}};const T_e=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.droppableId===t.droppableId&&e.index===t.index,S_e=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.draggableId===t.draggableId&&e.droppableId===t.droppableId,k_e=(e,t)=>{if(e===t)return!0;const n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r},Np=(e,t)=>{t()},I0=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function g3(e,t,n,r){if(!e){n(r(t));return}const l=w_e(n);e(t,{announce:l}),l.wasCalled()||n(r(t))}var C_e=(e,t)=>{const n=__e();let r=null;const l=(d,f)=>{r&&mn(),Np("onBeforeCapture",()=>{const p=e().onBeforeCapture;p&&p({draggableId:d,mode:f})})},i=(d,f)=>{r&&mn(),Np("onBeforeDragStart",()=>{const p=e().onBeforeDragStart;p&&p(I0(d,f))})},o=(d,f)=>{r&&mn();const p=I0(d,f);r={mode:f,lastCritical:d,lastLocation:p.source,lastCombine:null},n.add(()=>{Np("onDragStart",()=>g3(e().onDragStart,p,t,_v.onDragStart))})},a=(d,f)=>{const p=s4(f),h=rx(f);r||mn();const g=!k_e(d,r.lastCritical);g&&(r.lastCritical=d);const b=!T_e(r.lastLocation,p);b&&(r.lastLocation=p);const v=!S_e(r.lastCombine,h);if(v&&(r.lastCombine=h),!g&&!b&&!v)return;const m={...I0(d,r.mode),combine:h,destination:p};n.add(()=>{Np("onDragUpdate",()=>g3(e().onDragUpdate,m,t,_v.onDragUpdate))})},s=()=>{r||mn(),n.flush()},u=d=>{r||mn(),r=null,Np("onDragEnd",()=>g3(e().onDragEnd,d,t,_v.onDragEnd))};return{beforeCapture:l,beforeStart:i,start:o,update:a,flush:s,drop:u,abort:()=>{if(!r)return;const d={...I0(r.lastCritical,r.mode),combine:null,destination:null,reason:"CANCEL"};u(d)}}},M_e=(e,t)=>{const n=C_e(e,t);return r=>l=>i=>{if(i.type==="BEFORE_INITIAL_CAPTURE"){n.beforeCapture(i.payload.draggableId,i.payload.movementMode);return}if(i.type==="INITIAL_PUBLISH"){const a=i.payload.critical;n.beforeStart(a,i.payload.movementMode),l(i),n.start(a,i.payload.movementMode);return}if(i.type==="DROP_COMPLETE"){const a=i.payload.completed.result;n.flush(),l(i),n.drop(a);return}if(l(i),i.type==="FLUSH"){n.abort();return}const o=r.getState();o.phase==="DRAGGING"&&n.update(o.critical,o.impact)}};const P_e=e=>t=>n=>{if(n.type!=="DROP_ANIMATION_FINISHED"){t(n);return}const r=e.getState();r.phase!=="DROP_ANIMATING"&&mn(),e.dispatch(m4({completed:r.completed}))};var O_e=P_e;const A_e=e=>{let t=null,n=null;function r(){n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)}return l=>i=>{if((i.type==="FLUSH"||i.type==="DROP_COMPLETE"||i.type==="DROP_ANIMATION_FINISHED")&&r(),l(i),i.type!=="DROP_ANIMATE")return;const o={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){e.getState().phase==="DROP_ANIMATING"&&e.dispatch(Xq())}};n=requestAnimationFrame(()=>{n=null,t=Pi(window,[o])})}};var D_e=A_e,E_e=e=>()=>t=>n=>{(n.type==="DROP_COMPLETE"||n.type==="FLUSH"||n.type==="DROP_ANIMATE")&&e.stopPublishing(),t(n)},R_e=e=>{let t=!1;return()=>n=>r=>{if(r.type==="INITIAL_PUBLISH"){t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),e.tryRestoreFocusRecorded();return}if(n(r),!!t){if(r.type==="FLUSH"){t=!1,e.tryRestoreFocusRecorded();return}if(r.type==="DROP_COMPLETE"){t=!1;const l=r.payload.completed.result;l.combine&&e.tryShiftRecord(l.draggableId,l.combine.draggableId),e.tryRestoreFocusRecorded()}}}};const L_e=e=>e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH";var I_e=e=>t=>n=>r=>{if(L_e(r)){e.stop(),n(r);return}if(r.type==="INITIAL_PUBLISH"){n(r);const l=t.getState();l.phase!=="DRAGGING"&&mn(),e.start(l);return}n(r),e.scroll(t.getState())};const $_e=e=>t=>n=>{if(t(n),n.type!=="PUBLISH_WHILE_DRAGGING")return;const r=e.getState();r.phase==="DROP_PENDING"&&(r.isWaiting||e.dispatch(Yq({reason:r.reason})))};var N_e=$_e;const F_e=hq;var j_e=e=>{let{dimensionMarshal:t,focusMarshal:n,styleMarshal:r,getResponders:l,announce:i,autoScroller:o}=e;return pq(Uwe,F_e(Jxe(s_e(r),E_e(t),l_e(t),m_e,O_e,D_e,N_e,I_e(o),x_e,R_e(n),M_e(l,i))))};const v3=()=>({additions:{},removals:{},modified:{}});function z_e(e){let{registry:t,callbacks:n}=e,r=v3(),l=null;const i=()=>{l||(n.collectionStarting(),l=requestAnimationFrame(()=>{l=null;const{additions:u,removals:c,modified:d}=r,f=Object.keys(u).map(g=>t.draggable.getById(g).getDimension(Ha)).sort((g,b)=>g.descriptor.index-b.descriptor.index),p=Object.keys(d).map(g=>{const v=t.droppable.getById(g).callbacks.getScrollWhileDragging();return{droppableId:g,scroll:v}}),h={additions:f,removals:Object.keys(c),modified:p};r=v3(),n.publish(h)}))};return{add:u=>{const c=u.descriptor.id;r.additions[c]=u,r.modified[u.descriptor.droppableId]=!0,r.removals[c]&&delete r.removals[c],i()},remove:u=>{const c=u.descriptor;r.removals[c.id]=!0,r.modified[c.droppableId]=!0,r.additions[c.id]&&delete r.additions[c.id],i()},stop:()=>{l&&(cancelAnimationFrame(l),l=null,r=v3())}}}var Jq=e=>{let{scrollHeight:t,scrollWidth:n,height:r,width:l}=e;const i=ti({x:n,y:t},{x:l,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},eU=()=>{const e=document.documentElement;return e||mn(),e},tU=()=>{const e=eU();return Jq({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},B_e=()=>{const e=Qq(),t=tU(),n=e.y,r=e.x,l=eU(),i=l.clientWidth,o=l.clientHeight,a=r+i,s=n+o;return{frame:nl({top:n,left:r,right:a,bottom:s}),scroll:{initial:e,current:e,max:t,diff:{value:Ha,displacement:Ha}}}},W_e=e=>{let{critical:t,scrollOptions:n,registry:r}=e;const l=B_e(),i=l.scroll.current,o=t.droppable,a=r.droppable.getAllByType(o.type).map(d=>d.callbacks.getDimensionAndWatchScroll(i,n)),s=r.draggable.getAllByType(t.draggable.type).map(d=>d.getDimension(i));return{dimensions:{draggables:Oq(s),droppables:Pq(a)},critical:t,viewport:l}};function ZE(e,t,n){return!(n.descriptor.id===t.id||n.descriptor.type!==t.type||e.droppable.getById(n.descriptor.droppableId).descriptor.mode!=="virtual")}var q_e=(e,t)=>{let n=null;const r=z_e({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),l=(f,p)=>{e.droppable.exists(f)||mn(),n&&t.updateDroppableIsEnabled({id:f,isEnabled:p})},i=(f,p)=>{n&&(e.droppable.exists(f)||mn(),t.updateDroppableIsCombineEnabled({id:f,isCombineEnabled:p}))},o=(f,p)=>{n&&(e.droppable.exists(f)||mn(),t.updateDroppableScroll({id:f,newScroll:p}))},a=(f,p)=>{n&&e.droppable.getById(f).callbacks.scroll(p)},s=()=>{if(!n)return;r.stop();const f=n.critical.droppable;e.droppable.getAllByType(f.type).forEach(p=>p.callbacks.dragStopped()),n.unsubscribe(),n=null},u=f=>{n||mn();const p=n.critical.draggable;f.type==="ADDITION"&&ZE(e,p,f.value)&&r.add(f.value),f.type==="REMOVAL"&&ZE(e,p,f.value)&&r.remove(f.value)};return{updateDroppableIsEnabled:l,updateDroppableIsCombineEnabled:i,scrollDroppable:a,updateDroppableScroll:o,startPublishing:f=>{n&&mn();const p=e.draggable.getById(f.draggableId),h=e.droppable.getById(p.descriptor.droppableId),g={draggable:p.descriptor,droppable:h.descriptor},b=e.subscribe(u);return n={critical:g,unsubscribe:b},W_e({critical:g,registry:e,scrollOptions:f.scrollOptions})},stopPublishing:s}},nU=(e,t)=>e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP",U_e=e=>{window.scrollBy(e.x,e.y)};const H_e=Ua(e=>nx(e).filter(t=>!(!t.isEnabled||!t.frame))),V_e=(e,t)=>H_e(t).find(r=>(r.frame||mn(),jq(r.frame.pageMarginBox)(e)))||null;var G_e=e=>{let{center:t,destination:n,droppables:r}=e;if(n){const i=r[n];return i.frame?i:null}return V_e(t,r)};const Lm={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var Y_e=function(e,t,n){n===void 0&&(n=()=>Lm);const r=n(),l=e[t.size]*r.startFromPercentage,i=e[t.size]*r.maxScrollAtPercentage;return{startScrollingFrom:l,maxScrollValueAt:i}},rU=e=>{let{startOfRange:t,endOfRange:n,current:r}=e;const l=n-t;return l===0?0:(r-t)/l},v4=1,X_e=function(e,t,n){n===void 0&&(n=()=>Lm);const r=n();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return r.maxPixelScroll;if(e===t.startScrollingFrom)return v4;const i=1-rU({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),o=r.maxPixelScroll*r.ease(i);return Math.ceil(o)},K_e=(e,t,n)=>{const r=n(),l=r.durationDampening.accelerateAt,i=r.durationDampening.stopDampeningAt,o=t,a=i,u=Date.now()-o;if(u>=i)return e;if(u{let{distanceToEdge:t,thresholds:n,dragStartTime:r,shouldUseTimeDampening:l,getAutoScrollerOptions:i}=e;const o=X_e(t,n,i);return o===0?0:l?Math.max(K_e(o,r,i),v4):o},JE=e=>{let{container:t,distanceToEdges:n,dragStartTime:r,axis:l,shouldUseTimeDampening:i,getAutoScrollerOptions:o}=e;const a=Y_e(t,l,o);return n[l.end]{let{container:t,subject:n,proposedScroll:r}=e;const l=n.height>t.height,i=n.width>t.width;return!i&&!l?r:i&&l?null:{x:i?0:r.x,y:l?0:r.y}};const Q_e=Mq(e=>e===0?0:e);var aU=e=>{let{dragStartTime:t,container:n,subject:r,center:l,shouldUseTimeDampening:i,getAutoScrollerOptions:o}=e;const a={top:l.y-n.top,right:n.right-l.x,bottom:n.bottom-l.y,left:l.x-n.left},s=JE({container:n,distanceToEdges:a,dragStartTime:t,axis:u4,shouldUseTimeDampening:i,getAutoScrollerOptions:o}),u=JE({container:n,distanceToEdges:a,dragStartTime:t,axis:Eq,shouldUseTimeDampening:i,getAutoScrollerOptions:o}),c=Q_e({x:u,y:s});if(Qs(c,Ha))return null;const d=Z_e({container:n,subject:r,proposedScroll:c});return d?Qs(d,Ha)?null:d:null};const J_e=Mq(e=>e===0?0:e>0?1:-1),y4=(()=>{const e=(t,n)=>t<0?t:t>n?t-n:0;return t=>{let{current:n,max:r,change:l}=t;const i=ro(n,l),o={x:e(i.x,r.x),y:e(i.y,r.y)};return Qs(o,Ha)?null:o}})(),oU=e=>{let{max:t,current:n,change:r}=e;const l={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},i=J_e(r),o=y4({max:l,current:n,change:i});return!o||i.x!==0&&o.x===0||i.y!==0&&o.y===0},b4=(e,t)=>oU({current:e.scroll.current,max:e.scroll.max,change:t}),e3e=(e,t)=>{if(!b4(e,t))return null;const n=e.scroll.max,r=e.scroll.current;return y4({current:r,max:n,change:t})},x4=(e,t)=>{const n=e.frame;return n?oU({current:n.scroll.current,max:n.scroll.max,change:t}):!1},t3e=(e,t)=>{const n=e.frame;return!n||!x4(e,t)?null:y4({current:n.scroll.current,max:n.scroll.max,change:t})};var n3e=e=>{let{viewport:t,subject:n,center:r,dragStartTime:l,shouldUseTimeDampening:i,getAutoScrollerOptions:o}=e;const a=aU({dragStartTime:l,container:t.frame,subject:n,center:r,shouldUseTimeDampening:i,getAutoScrollerOptions:o});return a&&b4(t,a)?a:null},r3e=e=>{let{droppable:t,subject:n,center:r,dragStartTime:l,shouldUseTimeDampening:i,getAutoScrollerOptions:o}=e;const a=t.frame;if(!a)return null;const s=aU({dragStartTime:l,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i,getAutoScrollerOptions:o});return s&&x4(t,s)?s:null},e9=e=>{let{state:t,dragStartTime:n,shouldUseTimeDampening:r,scrollWindow:l,scrollDroppable:i,getAutoScrollerOptions:o}=e;const a=t.current.page.borderBoxCenter,u=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){const f=t.viewport,p=n3e({dragStartTime:n,viewport:f,subject:u,center:a,shouldUseTimeDampening:r,getAutoScrollerOptions:o});if(p){l(p);return}}const c=G_e({center:a,destination:ii(t.impact),droppables:t.dimensions.droppables});if(!c)return;const d=r3e({dragStartTime:n,droppable:c,subject:u,center:a,shouldUseTimeDampening:r,getAutoScrollerOptions:o});d&&i(c.descriptor.id,d)},a3e=e=>{let{scrollWindow:t,scrollDroppable:n,getAutoScrollerOptions:r=()=>Lm}=e;const l=Om(t),i=Om(n);let o=null;const a=c=>{o||mn();const{shouldUseTimeDampening:d,dragStartTime:f}=o;e9({state:c,scrollWindow:l,scrollDroppable:i,dragStartTime:f,shouldUseTimeDampening:d,getAutoScrollerOptions:r})};return{start:c=>{o&&mn();const d=Date.now();let f=!1;const p=()=>{f=!0};e9({state:c,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:p,scrollDroppable:p,getAutoScrollerOptions:r}),o={dragStartTime:d,shouldUseTimeDampening:f},f&&a(c)},stop:()=>{o&&(l.cancel(),i.cancel(),o=null)},scroll:a}},o3e=e=>{let{move:t,scrollDroppable:n,scrollWindow:r}=e;const l=(s,u)=>{const c=ro(s.current.client.selection,u);t({client:c})},i=(s,u)=>{if(!x4(s,u))return u;const c=t3e(s,u);if(!c)return n(s.descriptor.id,u),null;const d=ti(u,c);return n(s.descriptor.id,d),ti(u,d)},o=(s,u,c)=>{if(!s||!b4(u,c))return c;const d=e3e(u,c);if(!d)return r(c),null;const f=ti(c,d);return r(f),ti(c,f)};return s=>{const u=s.scrollJumpRequest;if(!u)return;const c=ii(s.impact);c||mn();const d=i(s.dimensions.droppables[c],u);if(!d)return;const f=s.viewport,p=o(s.isWindowScrollAllowed,f,d);p&&l(s,p)}},i3e=e=>{let{scrollDroppable:t,scrollWindow:n,move:r,getAutoScrollerOptions:l}=e;const i=a3e({scrollWindow:n,scrollDroppable:t,getAutoScrollerOptions:l}),o=o3e({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:u=>{if(!(l().disabled||u.phase!=="DRAGGING")){if(u.movementMode==="FLUID"){i.scroll(u);return}u.scrollJumpRequest&&o(u)}},start:i.start,stop:i.stop}};const of="data-rfd",lf=(()=>{const e=`${of}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),ek=(()=>{const e=`${of}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),l3e=(()=>{const e=`${of}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),t9={contextId:`${of}-scroll-container-context-id`},s3e=e=>t=>`[${t}="${e}"]`,Fp=(e,t)=>e.map(n=>{const r=n.styles[t];return r?`${n.selector} { ${r} }`:""}).join(" "),u3e="pointer-events: none;";var c3e=e=>{const t=s3e(e),n=(()=>{const a=` + `},z2e={dragHandleUsageInstructions:$2e,onDragStart:N2e,onDragUpdate:F2e,onDragEnd:j2e};var _v=z2e;const Ha={x:0,y:0},ro=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),ti=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),Qs=(e,t)=>e.x===t.x&&e.y===t.y,Pf=e=>({x:e.x!==0?-e.x:0,y:e.y!==0?-e.y:0}),uc=function(e,t,n){return n===void 0&&(n=0),e==="x"?{x:t,y:n}:{x:n,y:t}},Am=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),BE=(e,t)=>Math.min(...t.map(n=>Am(e,n))),Mq=e=>t=>({x:e(t.x),y:e(t.y)});var B2e=(e,t)=>{const n=nl({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n};const wg=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),WE=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],W2e={top:0,right:0,bottom:0,left:0},q2e=(e,t)=>t?wg(e,t.scroll.diff.displacement):e,U2e=(e,t,n)=>n&&n.increasedBy?{...e,[t.end]:e[t.end]+n.increasedBy[t.line]}:e,H2e=(e,t)=>t&&t.shouldClipSubject?B2e(t.pageMarginBox,e):nl(e);var af=e=>{let{page:t,withPlaceholder:n,axis:r,frame:l}=e;const i=q2e(t.marginBox,l),o=U2e(i,r,n),a=H2e(o,l);return{page:t,withPlaceholder:n,active:a}},l4=(e,t)=>{e.frame||mn();const n=e.frame,r=ti(t,n.scroll.initial),l=Pf(r),i={...n,scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:l},max:n.scroll.max}},o=af({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i});return{...e,frame:i,subject:o}};const Pq=Ua(e=>e.reduce((t,n)=>(t[n.descriptor.id]=n,t),{})),Oq=Ua(e=>e.reduce((t,n)=>(t[n.descriptor.id]=n,t),{})),nx=Ua(e=>Object.values(e)),V2e=Ua(e=>Object.values(e));var Of=Ua((e,t)=>V2e(t).filter(r=>e===r.descriptor.droppableId).sort((r,l)=>r.descriptor.index-l.descriptor.index));function s4(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function rx(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var ax=Ua((e,t)=>t.filter(n=>n.descriptor.id!==e.descriptor.id)),G2e=e=>{let{isMovingForward:t,draggable:n,destination:r,insideDestination:l,previousImpact:i}=e;if(!r.isCombineEnabled||!s4(i))return null;function a(h){const g={type:"COMBINE",combine:{draggableId:h,droppableId:r.descriptor.id}};return{...i,at:g}}const s=i.displaced.all,u=s.length?s[0]:null;if(t)return u?a(u):null;const c=ax(n,l);if(!u){if(!c.length)return null;const h=c[c.length-1];return a(h.descriptor.id)}const d=c.findIndex(h=>h.descriptor.id===u);d===-1&&mn();const f=d-1;if(f<0)return null;const p=c[f];return a(p.descriptor.id)},Af=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const Aq={point:Ha,value:0},Dm={invisible:{},visible:{},all:[]},Y2e={displaced:Dm,displacedBy:Aq,at:null};var X2e=Y2e,Ri=(e,t)=>n=>e<=n&&n<=t,Dq=e=>{const t=Ri(e.top,e.bottom),n=Ri(e.left,e.right);return r=>{if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;const i=t(r.top)||t(r.bottom),o=n(r.left)||n(r.right);if(i&&o)return!0;const s=r.tope.bottom,u=r.lefte.right;return s&&u?!0:s&&o||u&&i}},K2e=e=>{const t=Ri(e.top,e.bottom),n=Ri(e.left,e.right);return r=>t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right)};const u4={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Eq={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};var Z2e=e=>t=>{const n=Ri(t.top,t.bottom),r=Ri(t.left,t.right);return l=>e===u4?n(l.top)&&n(l.bottom):r(l.left)&&r(l.right)};const Q2e=(e,t)=>{const n=t.frame?t.frame.scroll.diff.displacement:Ha;return wg(e,n)},J2e=(e,t,n)=>t.subject.active?n(t.subject.active)(e):!1,ewe=(e,t,n)=>n(t)(e),c4=e=>{let{target:t,destination:n,viewport:r,withDroppableDisplacement:l,isVisibleThroughFrameFn:i}=e;const o=l?Q2e(t,n):t;return J2e(o,n,i)&&ewe(o,r,i)},twe=e=>c4({...e,isVisibleThroughFrameFn:Dq}),Rq=e=>c4({...e,isVisibleThroughFrameFn:K2e}),nwe=e=>c4({...e,isVisibleThroughFrameFn:Z2e(e.destination.axis)}),rwe=(e,t,n)=>{if(typeof n=="boolean")return n;if(!t)return!0;const{invisible:r,visible:l}=t;if(r[e])return!1;const i=l[e];return i?i.shouldAnimate:!0};function awe(e,t){const n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return nl(o4(n,r))}function Em(e){let{afterDragging:t,destination:n,displacedBy:r,viewport:l,forceShouldAnimate:i,last:o}=e;return t.reduce(function(s,u){const c=awe(u,r),d=u.descriptor.id;if(s.all.push(d),!twe({target:c,destination:n,viewport:l,withDroppableDisplacement:!0}))return s.invisible[u.descriptor.id]=!0,s;const p=rwe(d,o,i),h={draggableId:d,shouldAnimate:p};return s.visible[d]=h,s},{all:[],visible:{},invisible:{}})}function owe(e,t){if(!e.length)return 0;const n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}function qE(e){let{insideDestination:t,inHomeList:n,displacedBy:r,destination:l}=e;const i=owe(t,{inHomeList:n});return{displaced:Dm,displacedBy:r,at:{type:"REORDER",destination:{droppableId:l.descriptor.id,index:i}}}}function Fy(e){let{draggable:t,insideDestination:n,destination:r,viewport:l,displacedBy:i,last:o,index:a,forceShouldAnimate:s}=e;const u=Af(t,r);if(a==null)return qE({insideDestination:n,inHomeList:u,displacedBy:i,destination:r});const c=n.find(g=>g.descriptor.index===a);if(!c)return qE({insideDestination:n,inHomeList:u,displacedBy:i,destination:r});const d=ax(t,n),f=n.indexOf(c),p=d.slice(f);return{displaced:Em({afterDragging:p,destination:r,displacedBy:i,last:o,viewport:l.frame,forceShouldAnimate:s}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:a}}}}function iu(e,t){return!!t.effected[e]}var iwe=e=>{let{isMovingForward:t,destination:n,draggables:r,combine:l,afterCritical:i}=e;if(!n.isCombineEnabled)return null;const o=l.draggableId,s=r[o].descriptor.index;return iu(o,i)?t?s:s-1:t?s+1:s},lwe=e=>{let{isMovingForward:t,isInHomeList:n,insideDestination:r,location:l}=e;if(!r.length)return null;const i=l.index,o=t?i+1:i-1,a=r[0].descriptor.index,s=r[r.length-1].descriptor.index,u=n?s:s+1;return ou?null:o},swe=e=>{let{isMovingForward:t,isInHomeList:n,draggable:r,draggables:l,destination:i,insideDestination:o,previousImpact:a,viewport:s,afterCritical:u}=e;const c=a.at;if(c||mn(),c.type==="REORDER"){const f=lwe({isMovingForward:t,isInHomeList:n,location:c.destination,insideDestination:o});return f==null?null:Fy({draggable:r,insideDestination:o,destination:i,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:f})}const d=iwe({isMovingForward:t,destination:i,displaced:a.displaced,draggables:l,combine:c.combine,afterCritical:u});return d==null?null:Fy({draggable:r,insideDestination:o,destination:i,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:d})},uwe=e=>{let{displaced:t,afterCritical:n,combineWith:r,displacedBy:l}=e;const i=!!(t.visible[r]||t.invisible[r]);return iu(r,n)?i?Ha:Pf(l.point):i?l.point:Ha},cwe=e=>{let{afterCritical:t,impact:n,draggables:r}=e;const l=rx(n);l||mn();const i=l.draggableId,o=r[i].page.borderBox.center,a=uwe({displaced:n.displaced,afterCritical:t,combineWith:i,displacedBy:n.displacedBy});return ro(o,a)};const Lq=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,dwe=(e,t)=>t.margin[e.end]+t.borderBox[e.size]/2,d4=(e,t,n)=>t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2,UE=e=>{let{axis:t,moveRelativeTo:n,isMoving:r}=e;return uc(t.line,n.marginBox[t.end]+Lq(t,r),d4(t,n.marginBox,r))},HE=e=>{let{axis:t,moveRelativeTo:n,isMoving:r}=e;return uc(t.line,n.marginBox[t.start]-dwe(t,r),d4(t,n.marginBox,r))},fwe=e=>{let{axis:t,moveInto:n,isMoving:r}=e;return uc(t.line,n.contentBox[t.start]+Lq(t,r),d4(t,n.contentBox,r))};var pwe=e=>{let{impact:t,draggable:n,draggables:r,droppable:l,afterCritical:i}=e;const o=Of(l.descriptor.id,r),a=n.page,s=l.axis;if(!o.length)return fwe({axis:s,moveInto:l.page,isMoving:a});const{displaced:u,displacedBy:c}=t,d=u.all[0];if(d){const p=r[d];if(iu(d,i))return HE({axis:s,moveRelativeTo:p.page,isMoving:a});const h=Ly(p.page,c.point);return HE({axis:s,moveRelativeTo:h,isMoving:a})}const f=o[o.length-1];if(f.descriptor.id===n.descriptor.id)return a.borderBox.center;if(iu(f.descriptor.id,i)){const p=Ly(f.page,Pf(i.displacedBy.point));return UE({axis:s,moveRelativeTo:p,isMoving:a})}return UE({axis:s,moveRelativeTo:f.page,isMoving:a})},KS=(e,t)=>{const n=e.frame;return n?ro(t,n.scroll.diff.displacement):t};const hwe=e=>{let{impact:t,draggable:n,droppable:r,draggables:l,afterCritical:i}=e;const o=n.page.borderBox.center,a=t.at;return!r||!a?o:a.type==="REORDER"?pwe({impact:t,draggable:n,draggables:l,droppable:r,afterCritical:i}):cwe({impact:t,draggables:l,afterCritical:i})};var ox=e=>{const t=hwe(e),n=e.droppable;return n?KS(n,t):t},Iq=(e,t)=>{const n=ti(t,e.scroll.initial),r=Pf(n);return{frame:nl({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function VE(e,t){return e.map(n=>t[n])}function mwe(e,t){for(let n=0;n{let{impact:t,viewport:n,destination:r,draggables:l,maxScrollChange:i}=e;const o=Iq(n,ro(n.scroll.current,i)),a=r.frame?l4(r,ro(r.frame.scroll.current,i)):r,s=t.displaced,u=Em({afterDragging:VE(s.all,l),destination:r,displacedBy:t.displacedBy,viewport:o.frame,last:s,forceShouldAnimate:!1}),c=Em({afterDragging:VE(s.all,l),destination:a,displacedBy:t.displacedBy,viewport:n.frame,last:s,forceShouldAnimate:!1}),d={},f={},p=[s,u,c];return s.all.forEach(g=>{const b=mwe(g,p);if(b){f[g]=b;return}d[g]=!0}),{...t,displaced:{all:s.all,invisible:d,visible:f}}},vwe=(e,t)=>ro(e.scroll.diff.displacement,t),f4=e=>{let{pageBorderBoxCenter:t,draggable:n,viewport:r}=e;const l=vwe(r,t),i=ti(l,n.page.borderBox.center);return ro(n.client.borderBox.center,i)},$q=e=>{let{draggable:t,destination:n,newPageBorderBoxCenter:r,viewport:l,withDroppableDisplacement:i,onlyOnMainAxis:o=!1}=e;const a=ti(r,t.page.borderBox.center),u={target:wg(t.page.borderBox,a),destination:n,withDroppableDisplacement:i,viewport:l};return o?nwe(u):Rq(u)},ywe=e=>{let{isMovingForward:t,draggable:n,destination:r,draggables:l,previousImpact:i,viewport:o,previousPageBorderBoxCenter:a,previousClientSelection:s,afterCritical:u}=e;if(!r.isEnabled)return null;const c=Of(r.descriptor.id,l),d=Af(n,r),f=G2e({isMovingForward:t,draggable:n,destination:r,insideDestination:c,previousImpact:i})||swe({isMovingForward:t,isInHomeList:d,draggable:n,draggables:l,destination:r,insideDestination:c,previousImpact:i,viewport:o,afterCritical:u});if(!f)return null;const p=ox({impact:f,draggable:n,droppable:r,draggables:l,afterCritical:u});if($q({draggable:n,destination:r,newPageBorderBoxCenter:p,viewport:o.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:f4({pageBorderBoxCenter:p,draggable:n,viewport:o}),impact:f,scrollJumpRequest:null};const g=ti(p,a),b=gwe({impact:f,viewport:o,destination:r,draggables:l,maxScrollChange:g});return{clientSelection:s,impact:b,scrollJumpRequest:g}};const _o=e=>{const t=e.subject.active;return t||mn(),t};var bwe=e=>{let{isMovingForward:t,pageBorderBoxCenter:n,source:r,droppables:l,viewport:i}=e;const o=r.subject.active;if(!o)return null;const a=r.axis,s=Ri(o[a.start],o[a.end]),u=nx(l).filter(d=>d!==r).filter(d=>d.isEnabled).filter(d=>!!d.subject.active).filter(d=>Dq(i.frame)(_o(d))).filter(d=>{const f=_o(d);return t?o[a.crossAxisEnd]{const f=_o(d),p=Ri(f[a.start],f[a.end]);return s(f[a.start])||s(f[a.end])||p(o[a.start])||p(o[a.end])}).sort((d,f)=>{const p=_o(d)[a.crossAxisStart],h=_o(f)[a.crossAxisStart];return t?p-h:h-p}).filter((d,f,p)=>_o(d)[a.crossAxisStart]===_o(p[0])[a.crossAxisStart]);if(!u.length)return null;if(u.length===1)return u[0];const c=u.filter(d=>Ri(_o(d)[a.start],_o(d)[a.end])(n[a.line]));return c.length===1?c[0]:c.length>1?c.sort((d,f)=>_o(d)[a.start]-_o(f)[a.start])[0]:u.sort((d,f)=>{const p=BE(n,WE(_o(d))),h=BE(n,WE(_o(f)));return p!==h?p-h:_o(d)[a.start]-_o(f)[a.start]})[0]};const GE=(e,t)=>{const n=e.page.borderBox.center;return iu(e.descriptor.id,t)?ti(n,t.displacedBy.point):n},xwe=(e,t)=>{const n=e.page.borderBox;return iu(e.descriptor.id,t)?wg(n,Pf(t.displacedBy.point)):n};var wwe=e=>{let{pageBorderBoxCenter:t,viewport:n,destination:r,insideDestination:l,afterCritical:i}=e;return l.filter(a=>Rq({target:xwe(a,i),destination:r,viewport:n.frame,withDroppableDisplacement:!0})).sort((a,s)=>{const u=Am(t,KS(r,GE(a,i))),c=Am(t,KS(r,GE(s,i)));return u{const r=e.axis;if(e.descriptor.mode==="virtual")return uc(r.line,t[r.line]);const l=e.subject.page.contentBox[r.size],s=Of(e.descriptor.id,n).reduce((u,c)=>u+c.client.marginBox[r.size],0)+t[r.line]-l;return s<=0?null:uc(r.line,s)},Nq=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),Fq=(e,t,n)=>{const r=e.frame;Af(t,e)&&mn(),e.subject.withPlaceholder&&mn();const l=_g(e.axis,t.displaceBy).point,i=_we(e,l,n),o={placeholderSize:l,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){const c=af({page:e.subject.page,withPlaceholder:o,axis:e.axis,frame:e.frame});return{...e,subject:c}}const a=i?ro(r.scroll.max,i):r.scroll.max,s=Nq(r,a),u=af({page:e.subject.page,withPlaceholder:o,axis:e.axis,frame:s});return{...e,subject:u,frame:s}},Twe=e=>{const t=e.subject.withPlaceholder;t||mn();const n=e.frame;if(!n){const o=af({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:o}}const r=t.oldFrameMaxScroll;r||mn();const l=Nq(n,r),i=af({page:e.subject.page,axis:e.axis,frame:l,withPlaceholder:null});return{...e,subject:i,frame:l}};var Swe=e=>{let{previousPageBorderBoxCenter:t,moveRelativeTo:n,insideDestination:r,draggable:l,draggables:i,destination:o,viewport:a,afterCritical:s}=e;if(!n){if(r.length)return null;const f={displaced:Dm,displacedBy:Aq,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:0}}},p=ox({impact:f,draggable:l,droppable:o,draggables:i,afterCritical:s}),h=Af(l,o)?o:Fq(o,l,i);return $q({draggable:l,destination:h,newPageBorderBoxCenter:p,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?f:null}const u=t[o.axis.line]<=n.page.borderBox.center[o.axis.line],c=(()=>{const f=n.descriptor.index;return n.descriptor.id===l.descriptor.id||u?f:f+1})(),d=_g(o.axis,l.displaceBy);return Fy({draggable:l,insideDestination:r,destination:o,viewport:a,displacedBy:d,last:Dm,index:c})},kwe=e=>{let{isMovingForward:t,previousPageBorderBoxCenter:n,draggable:r,isOver:l,draggables:i,droppables:o,viewport:a,afterCritical:s}=e;const u=bwe({isMovingForward:t,pageBorderBoxCenter:n,source:l,droppables:o,viewport:a});if(!u)return null;const c=Of(u.descriptor.id,i),d=wwe({pageBorderBoxCenter:n,viewport:a,destination:u,insideDestination:c,afterCritical:s}),f=Swe({previousPageBorderBoxCenter:n,destination:u,draggable:r,draggables:i,moveRelativeTo:d,insideDestination:c,viewport:a,afterCritical:s});if(!f)return null;const p=ox({impact:f,draggable:r,droppable:u,draggables:i,afterCritical:s});return{clientSelection:f4({pageBorderBoxCenter:p,draggable:r,viewport:a}),impact:f,scrollJumpRequest:null}},ii=e=>{const t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null};const Cwe=(e,t)=>{const n=ii(e);return n?t[n]:null};var Mwe=e=>{let{state:t,type:n}=e;const r=Cwe(t.impact,t.dimensions.droppables),l=!!r,i=t.dimensions.droppables[t.critical.droppable.id],o=r||i,a=o.axis.direction,s=a==="vertical"&&(n==="MOVE_UP"||n==="MOVE_DOWN")||a==="horizontal"&&(n==="MOVE_LEFT"||n==="MOVE_RIGHT");if(s&&!l)return null;const u=n==="MOVE_DOWN"||n==="MOVE_RIGHT",c=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,{draggables:f,droppables:p}=t.dimensions;return s?ywe({isMovingForward:u,previousPageBorderBoxCenter:d,draggable:c,destination:o,draggables:f,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):kwe({isMovingForward:u,previousPageBorderBoxCenter:d,draggable:c,isOver:o,draggables:f,droppables:p,viewport:t.viewport,afterCritical:t.afterCritical})};function Ru(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function jq(e){const t=Ri(e.top,e.bottom),n=Ri(e.left,e.right);return function(l){return t(l.y)&&n(l.x)}}function Pwe(e,t){return e.leftt.left&&e.topt.top}function Owe(e){let{pageBorderBox:t,draggable:n,candidates:r}=e;const l=n.page.borderBox.center,i=r.map(o=>{const a=o.axis,s=uc(o.axis.line,t.center[a.line],o.page.borderBox.center[a.crossAxisLine]);return{id:o.descriptor.id,distance:Am(l,s)}}).sort((o,a)=>a.distance-o.distance);return i[0]?i[0].id:null}function Awe(e){let{pageBorderBox:t,draggable:n,droppables:r}=e;const l=nx(r).filter(i=>{if(!i.isEnabled)return!1;const o=i.subject.active;if(!o||!Pwe(t,o))return!1;if(jq(o)(t.center))return!0;const a=i.axis,s=o.center[a.crossAxisLine],u=t[a.crossAxisStart],c=t[a.crossAxisEnd],d=Ri(o[a.crossAxisStart],o[a.crossAxisEnd]),f=d(u),p=d(c);return!f&&!p?!0:f?us});return l.length?l.length===1?l[0].descriptor.id:Owe({pageBorderBox:t,draggable:n,candidates:l}):null}const zq=(e,t)=>nl(wg(e,t));var Dwe=(e,t)=>{const n=e.frame;return n?zq(t,n.scroll.diff.value):t};function Bq(e){let{displaced:t,id:n}=e;return!!(t.visible[n]||t.invisible[n])}function Ewe(e){let{draggable:t,closest:n,inHomeList:r}=e;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}var Rwe=e=>{let{pageBorderBoxWithDroppableScroll:t,draggable:n,destination:r,insideDestination:l,last:i,viewport:o,afterCritical:a}=e;const s=r.axis,u=_g(r.axis,n.displaceBy),c=u.value,d=t[s.start],f=t[s.end],h=ax(n,l).find(b=>{const v=b.descriptor.id,m=b.page.borderBox.center[s.line],y=iu(v,a),x=Bq({displaced:i,id:v});return y?x?f<=m:d{let{draggable:t,pageBorderBoxWithDroppableScroll:n,previousImpact:r,destination:l,insideDestination:i,afterCritical:o}=e;if(!l.isCombineEnabled)return null;const a=l.axis,s=_g(l.axis,t.displaceBy),u=s.value,c=n[a.start],d=n[a.end],p=ax(t,i).find(g=>{const b=g.descriptor.id,v=g.page.borderBox,y=v[a.size]/Lwe,x=iu(b,o),_=Bq({displaced:r.displaced,id:b});return x?_?d>v[a.start]+y&&dv[a.start]-u+y&&cv[a.start]+u+y&&dv[a.start]+y&&c{let{pageOffset:t,draggable:n,draggables:r,droppables:l,previousImpact:i,viewport:o,afterCritical:a}=e;const s=zq(n.page.borderBox,t),u=Awe({pageBorderBox:s,draggable:n,droppables:l});if(!u)return X2e;const c=l[u],d=Of(c.descriptor.id,r),f=Dwe(c,s);return Iwe({pageBorderBoxWithDroppableScroll:f,draggable:n,previousImpact:i,destination:c,insideDestination:d,afterCritical:a})||Rwe({pageBorderBoxWithDroppableScroll:f,draggable:n,destination:c,insideDestination:d,last:i.displaced,viewport:o,afterCritical:a})},p4=(e,t)=>({...e,[t.descriptor.id]:t});const $we=e=>{let{previousImpact:t,impact:n,droppables:r}=e;const l=ii(t),i=ii(n);if(!l||l===i)return r;const o=r[l];if(!o.subject.withPlaceholder)return r;const a=Twe(o);return p4(r,a)};var Nwe=e=>{let{draggable:t,draggables:n,droppables:r,previousImpact:l,impact:i}=e;const o=$we({previousImpact:l,impact:i,droppables:r}),a=ii(i);if(!a)return o;const s=r[a];if(Af(t,s)||s.subject.withPlaceholder)return o;const u=Fq(s,t,n);return p4(o,u)},Zh=e=>{let{state:t,clientSelection:n,dimensions:r,viewport:l,impact:i,scrollJumpRequest:o}=e;const a=l||t.viewport,s=r||t.dimensions,u=n||t.current.client.selection,c=ti(u,t.initial.client.selection),d={offset:c,selection:u,borderBoxCenter:ro(t.initial.client.borderBoxCenter,c)},f={selection:ro(d.selection,a.scroll.current),borderBoxCenter:ro(d.borderBoxCenter,a.scroll.current),offset:ro(d.offset,a.scroll.diff.value)},p={client:d,page:f};if(t.phase==="COLLECTING")return{...t,dimensions:s,viewport:a,current:p};const h=s.draggables[t.critical.draggable.id],g=i||Wq({pageOffset:f.offset,draggable:h,draggables:s.draggables,droppables:s.droppables,previousImpact:t.impact,viewport:a,afterCritical:t.afterCritical}),b=Nwe({draggable:h,impact:g,previousImpact:t.impact,draggables:s.draggables,droppables:s.droppables});return{...t,current:p,dimensions:{draggables:s.draggables,droppables:b},impact:g,viewport:a,scrollJumpRequest:o||null,forceShouldAnimate:o?!1:null}};function Fwe(e,t){return e.map(n=>t[n])}var qq=e=>{let{impact:t,viewport:n,draggables:r,destination:l,forceShouldAnimate:i}=e;const o=t.displaced,a=Fwe(o.all,r),s=Em({afterDragging:a,destination:l,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:i,last:o});return{...t,displaced:s}},Uq=e=>{let{impact:t,draggable:n,droppable:r,draggables:l,viewport:i,afterCritical:o}=e;const a=ox({impact:t,draggable:n,draggables:l,droppable:r,afterCritical:o});return f4({pageBorderBoxCenter:a,draggable:n,viewport:i})},Hq=e=>{let{state:t,dimensions:n,viewport:r}=e;t.movementMode!=="SNAP"&&mn();const l=t.impact,i=r||t.viewport,o=n||t.dimensions,{draggables:a,droppables:s}=o,u=a[t.critical.draggable.id],c=ii(l);c||mn();const d=s[c],f=qq({impact:l,viewport:i,destination:d,draggables:a}),p=Uq({impact:f,draggable:u,droppable:d,draggables:a,viewport:i,afterCritical:t.afterCritical});return Zh({impact:f,clientSelection:p,state:t,dimensions:o,viewport:i})},jwe=e=>({index:e.index,droppableId:e.droppableId}),Vq=e=>{let{draggable:t,home:n,draggables:r,viewport:l}=e;const i=_g(n.axis,t.displaceBy),o=Of(n.descriptor.id,r),a=o.indexOf(t);a===-1&&mn();const s=o.slice(a+1),u=s.reduce((p,h)=>(p[h.descriptor.id]=!0,p),{}),c={inVirtualList:n.descriptor.mode==="virtual",displacedBy:i,effected:u};return{impact:{displaced:Em({afterDragging:s,destination:n,displacedBy:i,last:null,viewport:l.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:jwe(t.descriptor)}},afterCritical:c}},zwe=(e,t)=>({draggables:e.draggables,droppables:p4(e.droppables,t)}),Bwe=e=>{let{draggable:t,offset:n,initialWindowScroll:r}=e;const l=Ly(t.client,n),i=Iy(l,r);return{...t,placeholder:{...t.placeholder,client:l},client:l,page:i}},Wwe=e=>{const t=e.frame;return t||mn(),t},qwe=e=>{let{additions:t,updatedDroppables:n,viewport:r}=e;const l=r.scroll.diff.value;return t.map(i=>{const o=i.descriptor.droppableId,a=n[o],u=Wwe(a).scroll.diff.value,c=ro(l,u);return Bwe({draggable:i,offset:c,initialWindowScroll:r.scroll.initial})})},Uwe=e=>{let{state:t,published:n}=e;const r=n.modified.map(m=>{const y=t.dimensions.droppables[m.droppableId];return l4(y,m.scroll)}),l={...t.dimensions.droppables,...Pq(r)},i=Oq(qwe({additions:n.additions,updatedDroppables:l,viewport:t.viewport})),o={...t.dimensions.draggables,...i};n.removals.forEach(m=>{delete o[m]});const a={droppables:l,draggables:o},s=ii(t.impact),u=s?a.droppables[s]:null,c=a.draggables[t.critical.draggable.id],d=a.droppables[t.critical.droppable.id],{impact:f,afterCritical:p}=Vq({draggable:c,home:d,draggables:o,viewport:t.viewport}),h=u&&u.isCombineEnabled?t.impact:f,g=Wq({pageOffset:t.current.page.offset,draggable:a.draggables[t.critical.draggable.id],draggables:a.draggables,droppables:a.droppables,previousImpact:h,viewport:t.viewport,afterCritical:p}),b={...t,phase:"DRAGGING",impact:g,onLiftImpact:f,dimensions:a,afterCritical:p,forceShouldAnimate:!1};return t.phase==="COLLECTING"?b:{...b,phase:"DROP_PENDING",reason:t.reason,isWaiting:!1}};const ZS=e=>e.movementMode==="SNAP",h3=(e,t,n)=>{const r=zwe(e.dimensions,t);return!ZS(e)||n?Zh({state:e,dimensions:r}):Hq({state:e,dimensions:r})};function m3(e){return e.isDragging&&e.movementMode==="SNAP"?{...e,scrollJumpRequest:null}:e}const YE={phase:"IDLE",completed:null,shouldFlush:!1};var Hwe=function(e,t){if(e===void 0&&(e=YE),t.type==="FLUSH")return{...YE,shouldFlush:!0};if(t.type==="INITIAL_PUBLISH"){e.phase!=="IDLE"&&mn();const{critical:n,clientSelection:r,viewport:l,dimensions:i,movementMode:o}=t.payload,a=i.draggables[n.draggable.id],s=i.droppables[n.droppable.id],u={selection:r,borderBoxCenter:a.client.borderBox.center,offset:Ha},c={client:u,page:{selection:ro(u.selection,l.scroll.initial),borderBoxCenter:ro(u.selection,l.scroll.initial),offset:ro(u.selection,l.scroll.diff.value)}},d=nx(i.droppables).every(g=>!g.isFixedOnPage),{impact:f,afterCritical:p}=Vq({draggable:a,home:s,draggables:i.draggables,viewport:l});return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:o,dimensions:i,initial:c,current:c,isWindowScrollAllowed:d,impact:f,afterCritical:p,onLiftImpact:f,viewport:l,scrollJumpRequest:null,forceShouldAnimate:null}}if(t.type==="COLLECTION_STARTING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"?e:(e.phase!=="DRAGGING"&&mn(),{...e,phase:"COLLECTING"});if(t.type==="PUBLISH_WHILE_DRAGGING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"||mn(),Uwe({state:e,published:t.payload});if(t.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;Ru(e)||mn();const{client:n}=t.payload;return Qs(n,e.current.client.selection)?e:Zh({state:e,clientSelection:n,impact:ZS(e)?e.impact:null})}if(t.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return m3(e);Ru(e)||mn();const{id:n,newScroll:r}=t.payload,l=e.dimensions.droppables[n];if(!l)return e;const i=l4(l,r);return h3(e,i,!1)}if(t.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;Ru(e)||mn();const{id:n,isEnabled:r}=t.payload,l=e.dimensions.droppables[n];l||mn(),l.isEnabled===r&&mn();const i={...l,isEnabled:r};return h3(e,i,!0)}if(t.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;Ru(e)||mn();const{id:n,isCombineEnabled:r}=t.payload,l=e.dimensions.droppables[n];l||mn(),l.isCombineEnabled===r&&mn();const i={...l,isCombineEnabled:r};return h3(e,i,!0)}if(t.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;Ru(e)||mn(),e.isWindowScrollAllowed||mn();const n=t.payload.newScroll;if(Qs(e.viewport.scroll.current,n))return m3(e);const r=Iq(e.viewport,n);return ZS(e)?Hq({state:e,viewport:r}):Zh({state:e,viewport:r})}if(t.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!Ru(e))return e;const n=t.payload.maxScroll;if(Qs(n,e.viewport.scroll.max))return e;const r={...e.viewport,scroll:{...e.viewport.scroll,max:n}};return{...e,viewport:r}}if(t.type==="MOVE_UP"||t.type==="MOVE_DOWN"||t.type==="MOVE_LEFT"||t.type==="MOVE_RIGHT"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&mn();const n=Mwe({state:e,type:t.type});return n?Zh({state:e,impact:n.impact,clientSelection:n.clientSelection,scrollJumpRequest:n.scrollJumpRequest}):e}if(t.type==="DROP_PENDING"){const n=t.payload.reason;return e.phase!=="COLLECTING"&&mn(),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:n}}if(t.type==="DROP_ANIMATE"){const{completed:n,dropDuration:r,newHomeClientOffset:l}=t.payload;return e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||mn(),{phase:"DROP_ANIMATING",completed:n,dropDuration:r,newHomeClientOffset:l,dimensions:e.dimensions}}if(t.type==="DROP_COMPLETE"){const{completed:n}=t.payload;return{phase:"IDLE",completed:n,shouldFlush:!1}}return e};const Vwe=e=>({type:"BEFORE_INITIAL_CAPTURE",payload:e}),Gwe=e=>({type:"LIFT",payload:e}),Ywe=e=>({type:"INITIAL_PUBLISH",payload:e}),Xwe=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),Kwe=()=>({type:"COLLECTION_STARTING",payload:null}),Zwe=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),Qwe=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),Jwe=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),Gq=e=>({type:"MOVE",payload:e}),e_e=e=>({type:"MOVE_BY_WINDOW_SCROLL",payload:e}),t_e=e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}),n_e=()=>({type:"MOVE_UP",payload:null}),r_e=()=>({type:"MOVE_DOWN",payload:null}),a_e=()=>({type:"MOVE_RIGHT",payload:null}),o_e=()=>({type:"MOVE_LEFT",payload:null}),h4=()=>({type:"FLUSH",payload:null}),i_e=e=>({type:"DROP_ANIMATE",payload:e}),m4=e=>({type:"DROP_COMPLETE",payload:e}),Yq=e=>({type:"DROP",payload:e}),l_e=e=>({type:"DROP_PENDING",payload:e}),Xq=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});var s_e=e=>t=>{let{getState:n,dispatch:r}=t;return l=>i=>{if(i.type!=="LIFT"){l(i);return}const{id:o,clientSelection:a,movementMode:s}=i.payload,u=n();u.phase==="DROP_ANIMATING"&&r(m4({completed:u.completed})),n().phase!=="IDLE"&&mn(),r(h4()),r(Vwe({draggableId:o,movementMode:s}));const d={draggableId:o,scrollOptions:{shouldPublishImmediately:s==="SNAP"}},{critical:f,dimensions:p,viewport:h}=e.startPublishing(d);r(Ywe({critical:f,dimensions:p,clientSelection:a,movementMode:s,viewport:h}))}},u_e=e=>()=>t=>n=>{n.type==="INITIAL_PUBLISH"&&e.dragging(),n.type==="DROP_ANIMATE"&&e.dropping(n.payload.completed.result.reason),(n.type==="FLUSH"||n.type==="DROP_COMPLETE")&&e.resting(),t(n)};const g4={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Rm={opacity:{drop:0,combining:.7},scale:{drop:.75}},Kq={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Su=`${Kq.outOfTheWay}s ${g4.outOfTheWay}`,Qh={fluid:`opacity ${Su}`,snap:`transform ${Su}, opacity ${Su}`,drop:e=>{const t=`${e}s ${g4.drop}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${Su}`,placeholder:`height ${Su}, width ${Su}, margin ${Su}`},XE=e=>Qs(e,Ha)?void 0:`translate(${e.x}px, ${e.y}px)`,QS={moveTo:XE,drop:(e,t)=>{const n=XE(e);if(n)return t?`${n} scale(${Rm.scale.drop})`:n}},{minDropTime:JS,maxDropTime:Zq}=Kq,c_e=Zq-JS,KE=1500,d_e=.6;var f_e=e=>{let{current:t,destination:n,reason:r}=e;const l=Am(t,n);if(l<=0)return JS;if(l>=KE)return Zq;const i=l/KE,o=JS+c_e*i,a=r==="CANCEL"?o*d_e:o;return Number(a.toFixed(2))},p_e=e=>{let{impact:t,draggable:n,dimensions:r,viewport:l,afterCritical:i}=e;const{draggables:o,droppables:a}=r,s=ii(t),u=s?a[s]:null,c=a[n.descriptor.droppableId],d=Uq({impact:t,draggable:n,draggables:o,afterCritical:i,droppable:u||c,viewport:l});return ti(d,n.client.borderBox.center)},h_e=e=>{let{draggables:t,reason:n,lastImpact:r,home:l,viewport:i,onLiftImpact:o}=e;return!r.at||n!=="DROP"?{impact:qq({draggables:t,impact:o,destination:l,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}:r.at.type==="REORDER"?{impact:r,didDropInsideDroppable:!0}:{impact:{...r,displaced:Dm},didDropInsideDroppable:!0}};const m_e=e=>{let{getState:t,dispatch:n}=e;return r=>l=>{if(l.type!=="DROP"){r(l);return}const i=t(),o=l.payload.reason;if(i.phase==="COLLECTING"){n(l_e({reason:o}));return}if(i.phase==="IDLE")return;i.phase==="DROP_PENDING"&&i.isWaiting&&mn(),i.phase==="DRAGGING"||i.phase==="DROP_PENDING"||mn();const s=i.critical,u=i.dimensions,c=u.draggables[i.critical.draggable.id],{impact:d,didDropInsideDroppable:f}=h_e({reason:o,lastImpact:i.impact,afterCritical:i.afterCritical,onLiftImpact:i.onLiftImpact,home:i.dimensions.droppables[i.critical.droppable.id],viewport:i.viewport,draggables:i.dimensions.draggables}),p=f?s4(d):null,h=f?rx(d):null,g={index:s.draggable.index,droppableId:s.droppable.id},b={draggableId:c.descriptor.id,type:c.descriptor.type,source:g,reason:o,mode:i.movementMode,destination:p,combine:h},v=p_e({impact:d,draggable:c,dimensions:u,viewport:i.viewport,afterCritical:i.afterCritical}),m={critical:i.critical,afterCritical:i.afterCritical,result:b,impact:d};if(!(!Qs(i.current.client.offset,v)||!!b.combine)){n(m4({completed:m}));return}const x=f_e({current:i.current.client.offset,destination:v,reason:o});n(i_e({newHomeClientOffset:v,dropDuration:x,completed:m}))}};var g_e=m_e,Qq=()=>({x:window.pageXOffset,y:window.pageYOffset});function v_e(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}function y_e(e){let{onWindowScroll:t}=e;function n(){t(Qq())}const r=Om(n),l=v_e(r);let i=Zs;function o(){return i!==Zs}function a(){o()&&mn(),i=Pi(window,[l])}function s(){o()||mn(),r.cancel(),i(),i=Zs}return{start:a,stop:s,isActive:o}}const b_e=e=>e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH",x_e=e=>{const t=y_e({onWindowScroll:n=>{e.dispatch(e_e({newScroll:n}))}});return n=>r=>{!t.isActive()&&r.type==="INITIAL_PUBLISH"&&t.start(),t.isActive()&&b_e(r)&&t.stop(),n(r)}};var w_e=x_e,__e=e=>{let t=!1,n=!1;const r=setTimeout(()=>{n=!0}),l=i=>{t||n||(t=!0,e(i),clearTimeout(r))};return l.wasCalled=()=>t,l},T_e=()=>{const e=[],t=l=>{const i=e.findIndex(a=>a.timerId===l);i===-1&&mn();const[o]=e.splice(i,1);o.callback()};return{add:l=>{const i=setTimeout(()=>t(i)),o={timerId:i,callback:l};e.push(o)},flush:()=>{if(!e.length)return;const l=[...e];e.length=0,l.forEach(i=>{clearTimeout(i.timerId),i.callback()})}}};const S_e=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.droppableId===t.droppableId&&e.index===t.index,k_e=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.draggableId===t.draggableId&&e.droppableId===t.droppableId,C_e=(e,t)=>{if(e===t)return!0;const n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r},Np=(e,t)=>{t()},I0=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function g3(e,t,n,r){if(!e){n(r(t));return}const l=__e(n);e(t,{announce:l}),l.wasCalled()||n(r(t))}var M_e=(e,t)=>{const n=T_e();let r=null;const l=(d,f)=>{r&&mn(),Np("onBeforeCapture",()=>{const p=e().onBeforeCapture;p&&p({draggableId:d,mode:f})})},i=(d,f)=>{r&&mn(),Np("onBeforeDragStart",()=>{const p=e().onBeforeDragStart;p&&p(I0(d,f))})},o=(d,f)=>{r&&mn();const p=I0(d,f);r={mode:f,lastCritical:d,lastLocation:p.source,lastCombine:null},n.add(()=>{Np("onDragStart",()=>g3(e().onDragStart,p,t,_v.onDragStart))})},a=(d,f)=>{const p=s4(f),h=rx(f);r||mn();const g=!C_e(d,r.lastCritical);g&&(r.lastCritical=d);const b=!S_e(r.lastLocation,p);b&&(r.lastLocation=p);const v=!k_e(r.lastCombine,h);if(v&&(r.lastCombine=h),!g&&!b&&!v)return;const m={...I0(d,r.mode),combine:h,destination:p};n.add(()=>{Np("onDragUpdate",()=>g3(e().onDragUpdate,m,t,_v.onDragUpdate))})},s=()=>{r||mn(),n.flush()},u=d=>{r||mn(),r=null,Np("onDragEnd",()=>g3(e().onDragEnd,d,t,_v.onDragEnd))};return{beforeCapture:l,beforeStart:i,start:o,update:a,flush:s,drop:u,abort:()=>{if(!r)return;const d={...I0(r.lastCritical,r.mode),combine:null,destination:null,reason:"CANCEL"};u(d)}}},P_e=(e,t)=>{const n=M_e(e,t);return r=>l=>i=>{if(i.type==="BEFORE_INITIAL_CAPTURE"){n.beforeCapture(i.payload.draggableId,i.payload.movementMode);return}if(i.type==="INITIAL_PUBLISH"){const a=i.payload.critical;n.beforeStart(a,i.payload.movementMode),l(i),n.start(a,i.payload.movementMode);return}if(i.type==="DROP_COMPLETE"){const a=i.payload.completed.result;n.flush(),l(i),n.drop(a);return}if(l(i),i.type==="FLUSH"){n.abort();return}const o=r.getState();o.phase==="DRAGGING"&&n.update(o.critical,o.impact)}};const O_e=e=>t=>n=>{if(n.type!=="DROP_ANIMATION_FINISHED"){t(n);return}const r=e.getState();r.phase!=="DROP_ANIMATING"&&mn(),e.dispatch(m4({completed:r.completed}))};var A_e=O_e;const D_e=e=>{let t=null,n=null;function r(){n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)}return l=>i=>{if((i.type==="FLUSH"||i.type==="DROP_COMPLETE"||i.type==="DROP_ANIMATION_FINISHED")&&r(),l(i),i.type!=="DROP_ANIMATE")return;const o={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){e.getState().phase==="DROP_ANIMATING"&&e.dispatch(Xq())}};n=requestAnimationFrame(()=>{n=null,t=Pi(window,[o])})}};var E_e=D_e,R_e=e=>()=>t=>n=>{(n.type==="DROP_COMPLETE"||n.type==="FLUSH"||n.type==="DROP_ANIMATE")&&e.stopPublishing(),t(n)},L_e=e=>{let t=!1;return()=>n=>r=>{if(r.type==="INITIAL_PUBLISH"){t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),e.tryRestoreFocusRecorded();return}if(n(r),!!t){if(r.type==="FLUSH"){t=!1,e.tryRestoreFocusRecorded();return}if(r.type==="DROP_COMPLETE"){t=!1;const l=r.payload.completed.result;l.combine&&e.tryShiftRecord(l.draggableId,l.combine.draggableId),e.tryRestoreFocusRecorded()}}}};const I_e=e=>e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH";var $_e=e=>t=>n=>r=>{if(I_e(r)){e.stop(),n(r);return}if(r.type==="INITIAL_PUBLISH"){n(r);const l=t.getState();l.phase!=="DRAGGING"&&mn(),e.start(l);return}n(r),e.scroll(t.getState())};const N_e=e=>t=>n=>{if(t(n),n.type!=="PUBLISH_WHILE_DRAGGING")return;const r=e.getState();r.phase==="DROP_PENDING"&&(r.isWaiting||e.dispatch(Yq({reason:r.reason})))};var F_e=N_e;const j_e=hq;var z_e=e=>{let{dimensionMarshal:t,focusMarshal:n,styleMarshal:r,getResponders:l,announce:i,autoScroller:o}=e;return pq(Hwe,j_e(e2e(u_e(r),R_e(t),s_e(t),g_e,A_e,E_e,F_e,$_e(o),w_e,L_e(n),P_e(l,i))))};const v3=()=>({additions:{},removals:{},modified:{}});function B_e(e){let{registry:t,callbacks:n}=e,r=v3(),l=null;const i=()=>{l||(n.collectionStarting(),l=requestAnimationFrame(()=>{l=null;const{additions:u,removals:c,modified:d}=r,f=Object.keys(u).map(g=>t.draggable.getById(g).getDimension(Ha)).sort((g,b)=>g.descriptor.index-b.descriptor.index),p=Object.keys(d).map(g=>{const v=t.droppable.getById(g).callbacks.getScrollWhileDragging();return{droppableId:g,scroll:v}}),h={additions:f,removals:Object.keys(c),modified:p};r=v3(),n.publish(h)}))};return{add:u=>{const c=u.descriptor.id;r.additions[c]=u,r.modified[u.descriptor.droppableId]=!0,r.removals[c]&&delete r.removals[c],i()},remove:u=>{const c=u.descriptor;r.removals[c.id]=!0,r.modified[c.droppableId]=!0,r.additions[c.id]&&delete r.additions[c.id],i()},stop:()=>{l&&(cancelAnimationFrame(l),l=null,r=v3())}}}var Jq=e=>{let{scrollHeight:t,scrollWidth:n,height:r,width:l}=e;const i=ti({x:n,y:t},{x:l,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},eU=()=>{const e=document.documentElement;return e||mn(),e},tU=()=>{const e=eU();return Jq({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},W_e=()=>{const e=Qq(),t=tU(),n=e.y,r=e.x,l=eU(),i=l.clientWidth,o=l.clientHeight,a=r+i,s=n+o;return{frame:nl({top:n,left:r,right:a,bottom:s}),scroll:{initial:e,current:e,max:t,diff:{value:Ha,displacement:Ha}}}},q_e=e=>{let{critical:t,scrollOptions:n,registry:r}=e;const l=W_e(),i=l.scroll.current,o=t.droppable,a=r.droppable.getAllByType(o.type).map(d=>d.callbacks.getDimensionAndWatchScroll(i,n)),s=r.draggable.getAllByType(t.draggable.type).map(d=>d.getDimension(i));return{dimensions:{draggables:Oq(s),droppables:Pq(a)},critical:t,viewport:l}};function ZE(e,t,n){return!(n.descriptor.id===t.id||n.descriptor.type!==t.type||e.droppable.getById(n.descriptor.droppableId).descriptor.mode!=="virtual")}var U_e=(e,t)=>{let n=null;const r=B_e({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),l=(f,p)=>{e.droppable.exists(f)||mn(),n&&t.updateDroppableIsEnabled({id:f,isEnabled:p})},i=(f,p)=>{n&&(e.droppable.exists(f)||mn(),t.updateDroppableIsCombineEnabled({id:f,isCombineEnabled:p}))},o=(f,p)=>{n&&(e.droppable.exists(f)||mn(),t.updateDroppableScroll({id:f,newScroll:p}))},a=(f,p)=>{n&&e.droppable.getById(f).callbacks.scroll(p)},s=()=>{if(!n)return;r.stop();const f=n.critical.droppable;e.droppable.getAllByType(f.type).forEach(p=>p.callbacks.dragStopped()),n.unsubscribe(),n=null},u=f=>{n||mn();const p=n.critical.draggable;f.type==="ADDITION"&&ZE(e,p,f.value)&&r.add(f.value),f.type==="REMOVAL"&&ZE(e,p,f.value)&&r.remove(f.value)};return{updateDroppableIsEnabled:l,updateDroppableIsCombineEnabled:i,scrollDroppable:a,updateDroppableScroll:o,startPublishing:f=>{n&&mn();const p=e.draggable.getById(f.draggableId),h=e.droppable.getById(p.descriptor.droppableId),g={draggable:p.descriptor,droppable:h.descriptor},b=e.subscribe(u);return n={critical:g,unsubscribe:b},q_e({critical:g,registry:e,scrollOptions:f.scrollOptions})},stopPublishing:s}},nU=(e,t)=>e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP",H_e=e=>{window.scrollBy(e.x,e.y)};const V_e=Ua(e=>nx(e).filter(t=>!(!t.isEnabled||!t.frame))),G_e=(e,t)=>V_e(t).find(r=>(r.frame||mn(),jq(r.frame.pageMarginBox)(e)))||null;var Y_e=e=>{let{center:t,destination:n,droppables:r}=e;if(n){const i=r[n];return i.frame?i:null}return G_e(t,r)};const Lm={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var X_e=function(e,t,n){n===void 0&&(n=()=>Lm);const r=n(),l=e[t.size]*r.startFromPercentage,i=e[t.size]*r.maxScrollAtPercentage;return{startScrollingFrom:l,maxScrollValueAt:i}},rU=e=>{let{startOfRange:t,endOfRange:n,current:r}=e;const l=n-t;return l===0?0:(r-t)/l},v4=1,K_e=function(e,t,n){n===void 0&&(n=()=>Lm);const r=n();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return r.maxPixelScroll;if(e===t.startScrollingFrom)return v4;const i=1-rU({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),o=r.maxPixelScroll*r.ease(i);return Math.ceil(o)},Z_e=(e,t,n)=>{const r=n(),l=r.durationDampening.accelerateAt,i=r.durationDampening.stopDampeningAt,o=t,a=i,u=Date.now()-o;if(u>=i)return e;if(u{let{distanceToEdge:t,thresholds:n,dragStartTime:r,shouldUseTimeDampening:l,getAutoScrollerOptions:i}=e;const o=K_e(t,n,i);return o===0?0:l?Math.max(Z_e(o,r,i),v4):o},JE=e=>{let{container:t,distanceToEdges:n,dragStartTime:r,axis:l,shouldUseTimeDampening:i,getAutoScrollerOptions:o}=e;const a=X_e(t,l,o);return n[l.end]{let{container:t,subject:n,proposedScroll:r}=e;const l=n.height>t.height,i=n.width>t.width;return!i&&!l?r:i&&l?null:{x:i?0:r.x,y:l?0:r.y}};const J_e=Mq(e=>e===0?0:e);var aU=e=>{let{dragStartTime:t,container:n,subject:r,center:l,shouldUseTimeDampening:i,getAutoScrollerOptions:o}=e;const a={top:l.y-n.top,right:n.right-l.x,bottom:n.bottom-l.y,left:l.x-n.left},s=JE({container:n,distanceToEdges:a,dragStartTime:t,axis:u4,shouldUseTimeDampening:i,getAutoScrollerOptions:o}),u=JE({container:n,distanceToEdges:a,dragStartTime:t,axis:Eq,shouldUseTimeDampening:i,getAutoScrollerOptions:o}),c=J_e({x:u,y:s});if(Qs(c,Ha))return null;const d=Q_e({container:n,subject:r,proposedScroll:c});return d?Qs(d,Ha)?null:d:null};const e3e=Mq(e=>e===0?0:e>0?1:-1),y4=(()=>{const e=(t,n)=>t<0?t:t>n?t-n:0;return t=>{let{current:n,max:r,change:l}=t;const i=ro(n,l),o={x:e(i.x,r.x),y:e(i.y,r.y)};return Qs(o,Ha)?null:o}})(),oU=e=>{let{max:t,current:n,change:r}=e;const l={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},i=e3e(r),o=y4({max:l,current:n,change:i});return!o||i.x!==0&&o.x===0||i.y!==0&&o.y===0},b4=(e,t)=>oU({current:e.scroll.current,max:e.scroll.max,change:t}),t3e=(e,t)=>{if(!b4(e,t))return null;const n=e.scroll.max,r=e.scroll.current;return y4({current:r,max:n,change:t})},x4=(e,t)=>{const n=e.frame;return n?oU({current:n.scroll.current,max:n.scroll.max,change:t}):!1},n3e=(e,t)=>{const n=e.frame;return!n||!x4(e,t)?null:y4({current:n.scroll.current,max:n.scroll.max,change:t})};var r3e=e=>{let{viewport:t,subject:n,center:r,dragStartTime:l,shouldUseTimeDampening:i,getAutoScrollerOptions:o}=e;const a=aU({dragStartTime:l,container:t.frame,subject:n,center:r,shouldUseTimeDampening:i,getAutoScrollerOptions:o});return a&&b4(t,a)?a:null},a3e=e=>{let{droppable:t,subject:n,center:r,dragStartTime:l,shouldUseTimeDampening:i,getAutoScrollerOptions:o}=e;const a=t.frame;if(!a)return null;const s=aU({dragStartTime:l,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i,getAutoScrollerOptions:o});return s&&x4(t,s)?s:null},e9=e=>{let{state:t,dragStartTime:n,shouldUseTimeDampening:r,scrollWindow:l,scrollDroppable:i,getAutoScrollerOptions:o}=e;const a=t.current.page.borderBoxCenter,u=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){const f=t.viewport,p=r3e({dragStartTime:n,viewport:f,subject:u,center:a,shouldUseTimeDampening:r,getAutoScrollerOptions:o});if(p){l(p);return}}const c=Y_e({center:a,destination:ii(t.impact),droppables:t.dimensions.droppables});if(!c)return;const d=a3e({dragStartTime:n,droppable:c,subject:u,center:a,shouldUseTimeDampening:r,getAutoScrollerOptions:o});d&&i(c.descriptor.id,d)},o3e=e=>{let{scrollWindow:t,scrollDroppable:n,getAutoScrollerOptions:r=()=>Lm}=e;const l=Om(t),i=Om(n);let o=null;const a=c=>{o||mn();const{shouldUseTimeDampening:d,dragStartTime:f}=o;e9({state:c,scrollWindow:l,scrollDroppable:i,dragStartTime:f,shouldUseTimeDampening:d,getAutoScrollerOptions:r})};return{start:c=>{o&&mn();const d=Date.now();let f=!1;const p=()=>{f=!0};e9({state:c,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:p,scrollDroppable:p,getAutoScrollerOptions:r}),o={dragStartTime:d,shouldUseTimeDampening:f},f&&a(c)},stop:()=>{o&&(l.cancel(),i.cancel(),o=null)},scroll:a}},i3e=e=>{let{move:t,scrollDroppable:n,scrollWindow:r}=e;const l=(s,u)=>{const c=ro(s.current.client.selection,u);t({client:c})},i=(s,u)=>{if(!x4(s,u))return u;const c=n3e(s,u);if(!c)return n(s.descriptor.id,u),null;const d=ti(u,c);return n(s.descriptor.id,d),ti(u,d)},o=(s,u,c)=>{if(!s||!b4(u,c))return c;const d=t3e(u,c);if(!d)return r(c),null;const f=ti(c,d);return r(f),ti(c,f)};return s=>{const u=s.scrollJumpRequest;if(!u)return;const c=ii(s.impact);c||mn();const d=i(s.dimensions.droppables[c],u);if(!d)return;const f=s.viewport,p=o(s.isWindowScrollAllowed,f,d);p&&l(s,p)}},l3e=e=>{let{scrollDroppable:t,scrollWindow:n,move:r,getAutoScrollerOptions:l}=e;const i=o3e({scrollWindow:n,scrollDroppable:t,getAutoScrollerOptions:l}),o=i3e({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:u=>{if(!(l().disabled||u.phase!=="DRAGGING")){if(u.movementMode==="FLUID"){i.scroll(u);return}u.scrollJumpRequest&&o(u)}},start:i.start,stop:i.stop}};const of="data-rfd",lf=(()=>{const e=`${of}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),ek=(()=>{const e=`${of}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),s3e=(()=>{const e=`${of}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),t9={contextId:`${of}-scroll-container-context-id`},u3e=e=>t=>`[${t}="${e}"]`,Fp=(e,t)=>e.map(n=>{const r=n.styles[t];return r?`${n.selector} { ${r} }`:""}).join(" "),c3e="pointer-events: none;";var d3e=e=>{const t=u3e(e),n=(()=>{const a=` cursor: -webkit-grab; cursor: grab; `;return{selector:t(lf.contextId),styles:{always:` -webkit-touch-callout: none; -webkit-tap-highlight-color: rgba(0,0,0,0); touch-action: manipulation; - `,resting:a,dragging:u3e,dropAnimating:a}}})(),r=(()=>{const a=` + `,resting:a,dragging:c3e,dropAnimating:a}}})(),r=(()=>{const a=` transition: ${Qh.outOfTheWay}; - `;return{selector:t(ek.contextId),styles:{dragging:a,dropAnimating:a,userCancel:a}}})(),l={selector:t(l3e.contextId),styles:{always:"overflow-anchor: none;"}},o=[r,n,l,{selector:"body",styles:{dragging:` + `;return{selector:t(ek.contextId),styles:{dragging:a,dropAnimating:a,userCancel:a}}})(),l={selector:t(s3e.contextId),styles:{always:"overflow-anchor: none;"}},o=[r,n,l,{selector:"body",styles:{dragging:` cursor: grabbing; cursor: -webkit-grabbing; user-select: none; @@ -547,8 +547,8 @@ ${L.current.stack} -moz-user-select: none; -ms-user-select: none; overflow-anchor: none; - `}}];return{always:Fp(o,"always"),resting:Fp(o,"resting"),dragging:Fp(o,"dragging"),dropAnimating:Fp(o,"dropAnimating"),userCancel:Fp(o,"userCancel")}};const d3e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?ge.useLayoutEffect:ge.useEffect;var li=d3e;const y3=()=>{const e=document.querySelector("head");return e||mn(),e},n9=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function f3e(e,t){const n=cr(()=>c3e(e),[e]),r=ge.useRef(null),l=ge.useRef(null),i=$n(Ua(d=>{const f=l.current;f||mn(),f.textContent=d}),[]),o=$n(d=>{const f=r.current;f||mn(),f.textContent=d},[]);li(()=>{!r.current&&!l.current||mn();const d=n9(t),f=n9(t);return r.current=d,l.current=f,d.setAttribute(`${of}-always`,e),f.setAttribute(`${of}-dynamic`,e),y3().appendChild(d),y3().appendChild(f),o(n.always),i(n.resting),()=>{const p=h=>{const g=h.current;g||mn(),y3().removeChild(g),h.current=null};p(r),p(l)}},[t,o,i,n.always,n.resting,e]);const a=$n(()=>i(n.dragging),[i,n.dragging]),s=$n(d=>{if(d==="DROP"){i(n.dropAnimating);return}i(n.userCancel)},[i,n.dropAnimating,n.userCancel]),u=$n(()=>{l.current&&i(n.resting)},[i,n.resting]);return cr(()=>({dragging:a,dropping:s,resting:u}),[a,s,u])}function iU(e,t){return Array.from(e.querySelectorAll(t))}var lU=e=>{var t;return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)||window};function ix(e){return e instanceof lU(e).HTMLElement}function p3e(e,t){const n=`[${lf.contextId}="${e}"]`,r=iU(document,n);if(!r.length)return null;const l=r.find(i=>i.getAttribute(lf.draggableId)===t);return!l||!ix(l)?null:l}function h3e(e){const t=ge.useRef({}),n=ge.useRef(null),r=ge.useRef(null),l=ge.useRef(!1),i=$n(function(f,p){const h={id:f,focus:p};return t.current[f]=h,function(){const b=t.current;b[f]!==h&&delete b[f]}},[]),o=$n(function(f){const p=p3e(e,f);p&&p!==document.activeElement&&p.focus()},[e]),a=$n(function(f,p){n.current===f&&(n.current=p)},[]),s=$n(function(){r.current||l.current&&(r.current=requestAnimationFrame(()=>{r.current=null;const f=n.current;f&&o(f)}))},[o]),u=$n(function(f){n.current=null;const p=document.activeElement;p&&p.getAttribute(lf.draggableId)===f&&(n.current=f)},[]);return li(()=>(l.current=!0,function(){l.current=!1;const f=r.current;f&&cancelAnimationFrame(f)}),[]),cr(()=>({register:i,tryRecordFocus:u,tryRestoreFocusRecorded:s,tryShiftRecord:a}),[i,u,s,a])}function m3e(){const e={draggables:{},droppables:{}},t=[];function n(d){return t.push(d),function(){const p=t.indexOf(d);p!==-1&&t.splice(p,1)}}function r(d){t.length&&t.forEach(f=>f(d))}function l(d){return e.draggables[d]||null}function i(d){const f=l(d);return f||mn(),f}const o={register:d=>{e.draggables[d.descriptor.id]=d,r({type:"ADDITION",value:d})},update:(d,f)=>{const p=e.draggables[f.descriptor.id];p&&p.uniqueId===d.uniqueId&&(delete e.draggables[f.descriptor.id],e.draggables[d.descriptor.id]=d)},unregister:d=>{const f=d.descriptor.id,p=l(f);p&&d.uniqueId===p.uniqueId&&(delete e.draggables[f],e.droppables[d.descriptor.droppableId]&&r({type:"REMOVAL",value:d}))},getById:i,findById:l,exists:d=>!!l(d),getAllByType:d=>Object.values(e.draggables).filter(f=>f.descriptor.type===d)};function a(d){return e.droppables[d]||null}function s(d){const f=a(d);return f||mn(),f}const u={register:d=>{e.droppables[d.descriptor.id]=d},unregister:d=>{const f=a(d.descriptor.id);f&&d.uniqueId===f.uniqueId&&delete e.droppables[d.descriptor.id]},getById:s,findById:a,exists:d=>!!a(d),getAllByType:d=>Object.values(e.droppables).filter(f=>f.descriptor.type===d)};function c(){e.draggables={},e.droppables={},t.length=0}return{draggable:o,droppable:u,subscribe:n,clean:c}}function g3e(){const e=cr(m3e,[]);return ge.useEffect(()=>function(){Ke.version.startsWith("16")||Ke.version.startsWith("17")?requestAnimationFrame(e.clean):e.clean()},[e]),e}var w4=Ke.createContext(null),jy=()=>{const e=document.body;return e||mn(),e};const v3e={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};var y3e=v3e;const b3e=e=>`rfd-announcement-${e}`;function x3e(e){const t=cr(()=>b3e(e),[e]),n=ge.useRef(null);return ge.useEffect(function(){const i=document.createElement("div");return n.current=i,i.id=t,i.setAttribute("aria-live","assertive"),i.setAttribute("aria-atomic","true"),Yt(i.style,y3e),jy().appendChild(i),function(){setTimeout(function(){const s=jy();s.contains(i)&&s.removeChild(i),i===n.current&&(n.current=null)})}},[t]),$n(l=>{const i=n.current;if(i){i.textContent=l;return}},[])}let sU=0;const uU={separator:"::"};function w3e(){sU=0}function _3e(e,t){return t===void 0&&(t=uU),cr(()=>`${e}${t.separator}${sU++}`,[t.separator,e])}function T3e(e,t){t===void 0&&(t=uU);const n=Ke.useId();return cr(()=>`${e}${t.separator}${n}`,[t.separator,e,n])}var _4="useId"in Ke?T3e:_3e;function S3e(e){let{contextId:t,uniqueId:n}=e;return`rfd-hidden-text-${t}-${n}`}function k3e(e){let{contextId:t,text:n}=e;const r=_4("hidden-text",{separator:"-"}),l=cr(()=>S3e({contextId:t,uniqueId:r}),[r,t]);return ge.useEffect(function(){const o=document.createElement("div");return o.id=l,o.textContent=n,o.style.display="none",jy().appendChild(o),function(){const s=jy();s.contains(o)&&s.removeChild(o)}},[l,n]),l}var lx=Ke.createContext(null);function cU(e){const t=ge.useRef(e);return ge.useEffect(()=>{t.current=e}),t}function C3e(){let e=null;function t(){return!!e}function n(o){return o===e}function r(o){e&&mn();const a={abandon:o};return e=a,a}function l(){e||mn(),e=null}function i(){e&&(e.abandon(),l())}return{isClaimed:t,isActive:n,claim:r,release:l,tryAbandon:i}}function Im(e){return e.phase==="IDLE"||e.phase==="DROP_ANIMATING"?!1:e.isDragging}const M3e=9,P3e=13,T4=27,dU=32,O3e=33,A3e=34,D3e=35,E3e=36,R3e=37,L3e=38,I3e=39,$3e=40,N3e={[P3e]:!0,[M3e]:!0};var fU=e=>{N3e[e.keyCode]&&e.preventDefault()};const F3e=(()=>{const e="visibilitychange";return typeof document>"u"?e:[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find(r=>`on${r}`in document)||e})();var sx=F3e;const pU=0,r9=5;function j3e(e,t){return Math.abs(t.x-e.x)>=r9||Math.abs(t.y-e.y)>=r9}const a9={type:"IDLE"};function z3e(e){let{cancel:t,completed:n,getPhase:r,setPhase:l}=e;return[{eventName:"mousemove",fn:i=>{const{button:o,clientX:a,clientY:s}=i;if(o!==pU)return;const u={x:a,y:s},c=r();if(c.type==="DRAGGING"){i.preventDefault(),c.actions.move(u);return}c.type!=="PENDING"&&mn();const d=c.point;if(!j3e(d,u))return;i.preventDefault();const f=c.actions.fluidLift(u);l({type:"DRAGGING",actions:f})}},{eventName:"mouseup",fn:i=>{const o=r();if(o.type!=="DRAGGING"){t();return}i.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"mousedown",fn:i=>{r().type==="DRAGGING"&&i.preventDefault(),t()}},{eventName:"keydown",fn:i=>{if(r().type==="PENDING"){t();return}if(i.keyCode===T4){i.preventDefault(),t();return}fU(i)}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{r().type==="PENDING"&&t()}},{eventName:"webkitmouseforcedown",fn:i=>{const o=r();if(o.type==="IDLE"&&mn(),o.actions.shouldRespectForcePress()){t();return}i.preventDefault()}},{eventName:sx,fn:t}]}function hU(e){const t=ge.useRef(a9),n=ge.useRef(Zs),r=cr(()=>({eventName:"mousedown",fn:function(d){if(d.defaultPrevented||d.button!==pU||d.ctrlKey||d.metaKey||d.shiftKey||d.altKey)return;const f=e.findClosestDraggableId(d);if(!f)return;const p=e.tryGetLock(f,o,{sourceEvent:d});if(!p)return;d.preventDefault();const h={x:d.clientX,y:d.clientY};n.current(),u(p,h)}}),[e]),l=cr(()=>({eventName:"webkitmouseforcewillbegin",fn:c=>{if(c.defaultPrevented)return;const d=e.findClosestDraggableId(c);if(!d)return;const f=e.findOptionsForDraggable(d);f&&(f.shouldRespectForcePress||e.canGetLock(d)&&c.preventDefault())}}),[e]),i=$n(function(){const d={passive:!1,capture:!0};n.current=Pi(window,[l,r],d)},[l,r]),o=$n(()=>{t.current.type!=="IDLE"&&(t.current=a9,n.current(),i())},[i]),a=$n(()=>{const c=t.current;o(),c.type==="DRAGGING"&&c.actions.cancel({shouldBlockNextClick:!0}),c.type==="PENDING"&&c.actions.abort()},[o]),s=$n(function(){const d={capture:!0,passive:!1},f=z3e({cancel:a,completed:o,getPhase:()=>t.current,setPhase:p=>{t.current=p}});n.current=Pi(window,f,d)},[a,o]),u=$n(function(d,f){t.current.type!=="IDLE"&&mn(),t.current={type:"PENDING",point:f,actions:d},s()},[s]);li(function(){return i(),function(){n.current()}},[i])}function B3e(){}const W3e={[A3e]:!0,[O3e]:!0,[E3e]:!0,[D3e]:!0};function q3e(e,t){function n(){t(),e.cancel()}function r(){t(),e.drop()}return[{eventName:"keydown",fn:l=>{if(l.keyCode===T4){l.preventDefault(),n();return}if(l.keyCode===dU){l.preventDefault(),r();return}if(l.keyCode===$3e){l.preventDefault(),e.moveDown();return}if(l.keyCode===L3e){l.preventDefault(),e.moveUp();return}if(l.keyCode===I3e){l.preventDefault(),e.moveRight();return}if(l.keyCode===R3e){l.preventDefault(),e.moveLeft();return}if(W3e[l.keyCode]){l.preventDefault();return}fU(l)}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:sx,fn:n}]}function mU(e){const t=ge.useRef(B3e),n=cr(()=>({eventName:"keydown",fn:function(i){if(i.defaultPrevented||i.keyCode!==dU)return;const o=e.findClosestDraggableId(i);if(!o)return;const a=e.tryGetLock(o,c,{sourceEvent:i});if(!a)return;i.preventDefault();let s=!0;const u=a.snapLift();t.current();function c(){s||mn(),s=!1,t.current(),r()}t.current=Pi(window,q3e(u,c),{capture:!0,passive:!1})}}),[e]),r=$n(function(){const i={passive:!1,capture:!0};t.current=Pi(window,[n],i)},[n]);li(function(){return r(),function(){t.current()}},[r])}const b3={type:"IDLE"},U3e=120,H3e=.15;function V3e(e){let{cancel:t,getPhase:n}=e;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:r=>{r.preventDefault()}},{eventName:"keydown",fn:r=>{if(n().type!=="DRAGGING"){t();return}r.keyCode===T4&&r.preventDefault(),t()}},{eventName:sx,fn:t}]}function G3e(e){let{cancel:t,completed:n,getPhase:r}=e;return[{eventName:"touchmove",options:{capture:!1},fn:l=>{const i=r();if(i.type!=="DRAGGING"){t();return}i.hasMoved=!0;const{clientX:o,clientY:a}=l.touches[0],s={x:o,y:a};l.preventDefault(),i.actions.move(s)}},{eventName:"touchend",fn:l=>{const i=r();if(i.type!=="DRAGGING"){t();return}l.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"touchcancel",fn:l=>{if(r().type!=="DRAGGING"){t();return}l.preventDefault(),t()}},{eventName:"touchforcechange",fn:l=>{const i=r();i.type==="IDLE"&&mn();const o=l.touches[0];if(!o||!(o.force>=H3e))return;const s=i.actions.shouldRespectForcePress();if(i.type==="PENDING"){s&&t();return}if(s){if(i.hasMoved){l.preventDefault();return}t();return}l.preventDefault()}},{eventName:sx,fn:t}]}function gU(e){const t=ge.useRef(b3),n=ge.useRef(Zs),r=$n(function(){return t.current},[]),l=$n(function(p){t.current=p},[]),i=cr(()=>({eventName:"touchstart",fn:function(p){if(p.defaultPrevented)return;const h=e.findClosestDraggableId(p);if(!h)return;const g=e.tryGetLock(h,a,{sourceEvent:p});if(!g)return;const b=p.touches[0],{clientX:v,clientY:m}=b,y={x:v,y:m};n.current(),d(g,y)}}),[e]),o=$n(function(){const p={capture:!0,passive:!1};n.current=Pi(window,[i],p)},[i]),a=$n(()=>{const f=t.current;f.type!=="IDLE"&&(f.type==="PENDING"&&clearTimeout(f.longPressTimerId),l(b3),n.current(),o())},[o,l]),s=$n(()=>{const f=t.current;a(),f.type==="DRAGGING"&&f.actions.cancel({shouldBlockNextClick:!0}),f.type==="PENDING"&&f.actions.abort()},[a]),u=$n(function(){const p={capture:!0,passive:!1},h={cancel:s,completed:a,getPhase:r},g=Pi(window,G3e(h),p),b=Pi(window,V3e(h),p);n.current=function(){g(),b()}},[s,r,a]),c=$n(function(){const p=r();p.type!=="PENDING"&&mn();const h=p.actions.fluidLift(p.point);l({type:"DRAGGING",actions:h,hasMoved:!1})},[r,l]),d=$n(function(p,h){r().type!=="IDLE"&&mn();const g=setTimeout(c,U3e);l({type:"PENDING",point:h,actions:p,longPressTimerId:g}),u()},[u,r,l,c]);li(function(){return o(),function(){n.current();const h=r();h.type==="PENDING"&&(clearTimeout(h.longPressTimerId),l(b3))}},[r,o,l]),li(function(){return Pi(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}const Y3e=["input","button","textarea","select","option","optgroup","video","audio"];function vU(e,t){if(t==null)return!1;if(Y3e.includes(t.tagName.toLowerCase()))return!0;const r=t.getAttribute("contenteditable");return r==="true"||r===""?!0:t===e?!1:vU(e,t.parentElement)}function X3e(e,t){const n=t.target;return ix(n)?vU(e,n):!1}var K3e=e=>nl(e.getBoundingClientRect()).center;function Z3e(e){return e instanceof lU(e).Element}const Q3e=(()=>{const e="matches";return typeof document>"u"?e:[e,"msMatchesSelector","webkitMatchesSelector"].find(r=>r in Element.prototype)||e})();function yU(e,t){return e==null?null:e[Q3e](t)?e:yU(e.parentElement,t)}function J3e(e,t){return e.closest?e.closest(t):yU(e,t)}function eTe(e){return`[${lf.contextId}="${e}"]`}function tTe(e,t){const n=t.target;if(!Z3e(n))return null;const r=eTe(e),l=J3e(n,r);return!l||!ix(l)?null:l}function nTe(e,t){const n=tTe(e,t);return n?n.getAttribute(lf.draggableId):null}function rTe(e,t){const n=`[${ek.contextId}="${e}"]`,l=iU(document,n).find(i=>i.getAttribute(ek.id)===t);return!l||!ix(l)?null:l}function aTe(e){e.preventDefault()}function $0(e){let{expected:t,phase:n,isLockActive:r,shouldWarn:l}=e;return!(!r()||t!==n)}function bU(e){let{lockAPI:t,store:n,registry:r,draggableId:l}=e;if(t.isClaimed())return!1;const i=r.draggable.findById(l);return!(!i||!i.options.isEnabled||!nU(n.getState(),l))}function oTe(e){let{lockAPI:t,contextId:n,store:r,registry:l,draggableId:i,forceSensorStop:o,sourceEvent:a}=e;if(!bU({lockAPI:t,store:r,registry:l,draggableId:i}))return null;const u=l.draggable.getById(i),c=rTe(n,u.descriptor.id);if(!c||a&&!u.options.canDragInteractiveElements&&X3e(c,a))return null;const d=t.claim(o||Zs);let f="PRE_DRAG";function p(){return u.options.shouldRespectForcePress}function h(){return t.isActive(d)}function g(w,S){$0({expected:w,phase:f,isLockActive:h,shouldWarn:!0})&&r.dispatch(S())}const b=g.bind(null,"DRAGGING");function v(w){function S(){t.release(),f="COMPLETED"}f!=="PRE_DRAG"&&(S(),mn()),r.dispatch(Vwe(w.liftActionArgs)),f="DRAGGING";function k(C,T){if(T===void 0&&(T={shouldBlockNextClick:!1}),w.cleanup(),T.shouldBlockNextClick){const M=Pi(window,[{eventName:"click",fn:aTe,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(M)}S(),r.dispatch(Yq({reason:C}))}return{isActive:()=>$0({expected:"DRAGGING",phase:f,isLockActive:h,shouldWarn:!1}),shouldRespectForcePress:p,drop:C=>k("DROP",C),cancel:C=>k("CANCEL",C),...w.actions}}function m(w){const S=Om(C=>{b(()=>Gq({client:C}))});return{...v({liftActionArgs:{id:i,clientSelection:w,movementMode:"FLUID"},cleanup:()=>S.cancel(),actions:{move:S}}),move:S}}function y(){const w={moveUp:()=>b(t_e),moveRight:()=>b(r_e),moveDown:()=>b(n_e),moveLeft:()=>b(a_e)};return v({liftActionArgs:{id:i,clientSelection:K3e(c),movementMode:"SNAP"},cleanup:Zs,actions:w})}function x(){$0({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!0})&&t.release()}return{isActive:()=>$0({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!1}),shouldRespectForcePress:p,fluidLift:m,snapLift:y,abort:x}}const iTe=[hU,mU,gU];function lTe(e){let{contextId:t,store:n,registry:r,customSensors:l,enableDefaultSensors:i}=e;const o=[...i?iTe:[],...l||[]],a=ge.useState(()=>C3e())[0],s=$n(function(v,m){Im(v)&&!Im(m)&&a.tryAbandon()},[a]);li(function(){let v=n.getState();return n.subscribe(()=>{const y=n.getState();s(v,y),v=y})},[a,n,s]),li(()=>a.tryAbandon,[a.tryAbandon]);const u=$n(b=>bU({lockAPI:a,registry:r,store:n,draggableId:b}),[a,r,n]),c=$n((b,v,m)=>oTe({lockAPI:a,registry:r,contextId:t,store:n,draggableId:b,forceSensorStop:v||null,sourceEvent:m&&m.sourceEvent?m.sourceEvent:null}),[t,a,r,n]),d=$n(b=>nTe(t,b),[t]),f=$n(b=>{const v=r.draggable.findById(b);return v?v.options:null},[r.draggable]),p=$n(function(){a.isClaimed()&&(a.tryAbandon(),n.getState().phase!=="IDLE"&&n.dispatch(h4()))},[a,n]),h=$n(()=>a.isClaimed(),[a]),g=cr(()=>({canGetLock:u,tryGetLock:c,findClosestDraggableId:d,findOptionsForDraggable:f,tryReleaseLock:p,isLockClaimed:h}),[u,c,d,f,p,h]);for(let b=0;b({onBeforeCapture:t=>{const n=()=>{e.onBeforeCapture&&e.onBeforeCapture(t)};Ke.version.startsWith("16")||Ke.version.startsWith("17")?n():bf.flushSync(n)},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}),uTe=e=>({...Lm,...e.autoScrollerOptions,durationDampening:{...Lm.durationDampening,...e.autoScrollerOptions}});function jp(e){return e.current||mn(),e.current}function cTe(e){const{contextId:t,setCallbacks:n,sensors:r,nonce:l,dragHandleUsageInstructions:i}=e,o=ge.useRef(null),a=cU(e),s=$n(()=>sTe(a.current),[a]),u=$n(()=>uTe(a.current),[a]),c=x3e(t),d=k3e({contextId:t,text:i}),f=f3e(t,l),p=$n(T=>{jp(o).dispatch(T)},[]),h=cr(()=>EE({publishWhileDragging:Ywe,updateDroppableScroll:Kwe,updateDroppableIsEnabled:Zwe,updateDroppableIsCombineEnabled:Qwe,collectionStarting:Xwe},p),[p]),g=g3e(),b=cr(()=>q_e(g,h),[g,h]),v=cr(()=>i3e({scrollWindow:U_e,scrollDroppable:b.scrollDroppable,getAutoScrollerOptions:u,...EE({move:Gq},p)}),[b.scrollDroppable,p,u]),m=h3e(t),y=cr(()=>j_e({announce:c,autoScroller:v,dimensionMarshal:b,focusMarshal:m,getResponders:s,styleMarshal:f}),[c,v,b,m,s,f]);o.current=y;const x=$n(()=>{const T=jp(o);T.getState().phase!=="IDLE"&&T.dispatch(h4())},[]),_=$n(()=>{const T=jp(o).getState();return T.phase==="DROP_ANIMATING"?!0:T.phase==="IDLE"?!1:T.isDragging},[]),w=cr(()=>({isDragging:_,tryAbort:x}),[_,x]);n(w);const S=$n(T=>nU(jp(o).getState(),T),[]),k=$n(()=>Ru(jp(o).getState()),[]),C=cr(()=>({marshal:b,focus:m,contextId:t,canLift:S,isMovementAllowed:k,dragHandleUsageInstructionsId:d,registry:g}),[t,b,d,m,S,k,g]);return lTe({contextId:t,store:y,registry:g,customSensors:r||null,enableDefaultSensors:e.enableDefaultSensors!==!1}),ge.useEffect(()=>x,[x]),Ke.createElement(lx.Provider,{value:C},Ke.createElement(T2e,{context:w4,store:y},e.children))}let xU=0;function dTe(){xU=0}function fTe(){return cr(()=>`${xU++}`,[])}function pTe(){return Ke.useId()}var hTe="useId"in Ke?pTe:fTe;function mTe(){"useId"in Ke||(dTe(),w3e())}function gTe(e){const t=hTe(),n=e.dragHandleUsageInstructions||_v.dragHandleUsageInstructions;return Ke.createElement(L2e,null,r=>Ke.createElement(cTe,{nonce:e.nonce,contextId:t,setCallbacks:r,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children))}const o9={dragging:5e3,dropAnimating:4500},vTe=(e,t)=>t?Qh.drop(t.duration):e?Qh.snap:Qh.fluid,yTe=(e,t)=>{if(e)return t?Rm.opacity.drop:Rm.opacity.combining},bTe=e=>e.forceShouldAnimate!=null?e.forceShouldAnimate:e.mode==="SNAP";function xTe(e){const n=e.dimension.client,{offset:r,combineWith:l,dropping:i}=e,o=!!l,a=bTe(e),s=!!i,u=s?QS.drop(r,o):QS.moveTo(r);return{position:"fixed",top:n.marginBox.top,left:n.marginBox.left,boxSizing:"border-box",width:n.borderBox.width,height:n.borderBox.height,transition:vTe(a,i),transform:u,opacity:yTe(o,s),zIndex:s?o9.dropAnimating:o9.dragging,pointerEvents:"none"}}function wTe(e){return{transform:QS.moveTo(e.offset),transition:e.shouldAnimateDisplacement?void 0:"none"}}function _Te(e){return e.type==="DRAGGING"?xTe(e):wTe(e)}function TTe(e,t,n){n===void 0&&(n=Ha);const r=window.getComputedStyle(t),l=t.getBoundingClientRect(),i=_q(l,r),o=Iy(i,n),a={client:i,tagName:t.tagName.toLowerCase(),display:r.display},s={x:i.marginBox.width,y:i.marginBox.height};return{descriptor:e,placeholder:a,displaceBy:s,client:i,page:o}}function STe(e){const t=_4("draggable"),{descriptor:n,registry:r,getDraggableRef:l,canDragInteractiveElements:i,shouldRespectForcePress:o,isEnabled:a}=e,s=cr(()=>({canDragInteractiveElements:i,shouldRespectForcePress:o,isEnabled:a}),[i,a,o]),u=$n(p=>{const h=l();return h||mn(),TTe(n,h,p)},[n,l]),c=cr(()=>({uniqueId:t,descriptor:n,options:s,getDimension:u}),[n,u,s,t]),d=ge.useRef(c),f=ge.useRef(!0);li(()=>(r.draggable.register(d.current),()=>r.draggable.unregister(d.current)),[r.draggable]),li(()=>{if(f.current){f.current=!1;return}const p=d.current;d.current=c,r.draggable.update(c,p)},[c,r.draggable])}var S4=Ke.createContext(null);function zy(e){const t=ge.useContext(e);return t||mn(),t}function kTe(e){e.preventDefault()}const CTe=e=>{const t=ge.useRef(null),n=$n(function(w){w===void 0&&(w=null),t.current=w},[]),r=$n(()=>t.current,[]),{contextId:l,dragHandleUsageInstructionsId:i,registry:o}=zy(lx),{type:a,droppableId:s}=zy(S4),u=cr(()=>({id:e.draggableId,index:e.index,type:a,droppableId:s}),[e.draggableId,e.index,a,s]),{children:c,draggableId:d,isEnabled:f,shouldRespectForcePress:p,canDragInteractiveElements:h,isClone:g,mapped:b,dropAnimationFinished:v}=e;if(!g){const w=cr(()=>({descriptor:u,registry:o,getDraggableRef:r,canDragInteractiveElements:h,shouldRespectForcePress:p,isEnabled:f}),[u,o,r,h,p,f]);STe(w)}const m=cr(()=>f?{tabIndex:0,role:"button","aria-describedby":i,"data-rfd-drag-handle-draggable-id":d,"data-rfd-drag-handle-context-id":l,draggable:!1,onDragStart:kTe}:null,[l,i,d,f]),y=$n(w=>{b.type==="DRAGGING"&&b.dropping&&w.propertyName==="transform"&&(Ke.version.startsWith("16")||Ke.version.startsWith("17")?v():bf.flushSync(v))},[v,b]),x=cr(()=>{const w=_Te(b),S=b.type==="DRAGGING"&&b.dropping?y:void 0;return{innerRef:n,draggableProps:{"data-rfd-draggable-context-id":l,"data-rfd-draggable-id":d,style:w,onTransitionEnd:S},dragHandleProps:m}},[l,m,d,b,y,n]),_=cr(()=>({draggableId:u.id,type:u.type,source:{index:u.index,droppableId:u.droppableId}}),[u.droppableId,u.id,u.index,u.type]);return Ke.createElement(Ke.Fragment,null,c(x,b.snapshot,_))};var MTe=CTe,wU=(e,t)=>e===t,_U=e=>{const{combine:t,destination:n}=e;return n?n.droppableId:t?t.droppableId:null};const PTe=e=>e.combine?e.combine.draggableId:null,OTe=e=>e.at&&e.at.type==="COMBINE"?e.at.combine.draggableId:null;function ATe(){const e=Ua((l,i)=>({x:l,y:i})),t=Ua(function(l,i,o,a,s){return o===void 0&&(o=null),a===void 0&&(a=null),s===void 0&&(s=null),{isDragging:!0,isClone:i,isDropAnimating:!!s,dropAnimation:s,mode:l,draggingOver:o,combineWith:a,combineTargetFor:null}}),n=Ua(function(l,i,o,a,s,u,c){return s===void 0&&(s=null),u===void 0&&(u=null),c===void 0&&(c=null),{mapped:{type:"DRAGGING",dropping:null,draggingOver:s,combineWith:u,mode:i,offset:l,dimension:o,forceShouldAnimate:c,snapshot:t(i,a,s,u,null)}}});return(l,i)=>{if(Im(l)){if(l.critical.draggable.id!==i.draggableId)return null;const o=l.current.client.offset,a=l.dimensions.draggables[i.draggableId],s=ii(l.impact),u=OTe(l.impact),c=l.forceShouldAnimate;return n(e(o.x,o.y),l.movementMode,a,i.isClone,s,u,c)}if(l.phase==="DROP_ANIMATING"){const o=l.completed;if(o.result.draggableId!==i.draggableId)return null;const a=i.isClone,s=l.dimensions.draggables[i.draggableId],u=o.result,c=u.mode,d=_U(u),f=PTe(u),h={duration:l.dropDuration,curve:g4.drop,moveTo:l.newHomeClientOffset,opacity:f?Rm.opacity.drop:null,scale:f?Rm.scale.drop:null};return{mapped:{type:"DRAGGING",offset:l.newHomeClientOffset,dimension:s,dropping:h,draggingOver:d,combineWith:f,mode:c,forceShouldAnimate:null,snapshot:t(c,a,d,f,h)}}}return null}}function TU(e){return e===void 0&&(e=null),{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const DTe={mapped:{type:"SECONDARY",offset:Ha,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:TU(null)}};function ETe(){const e=Ua((o,a)=>({x:o,y:a})),t=Ua(TU),n=Ua(function(o,a,s){return a===void 0&&(a=null),{mapped:{type:"SECONDARY",offset:o,combineTargetFor:a,shouldAnimateDisplacement:s,snapshot:t(a)}}}),r=o=>o?n(Ha,o,!0):null,l=(o,a,s,u)=>{const c=s.displaced.visible[o],d=!!(u.inVirtualList&&u.effected[o]),f=rx(s),p=f&&f.draggableId===o?a:null;if(!c){if(!d)return r(p);if(s.displaced.invisible[o])return null;const b=Pf(u.displacedBy.point),v=e(b.x,b.y);return n(v,p,!0)}if(d)return r(p);const h=s.displacedBy.point,g=e(h.x,h.y);return n(g,p,c.shouldAnimate)};return(o,a)=>{if(Im(o))return o.critical.draggable.id===a.draggableId?null:l(a.draggableId,o.critical.draggable.id,o.impact,o.afterCritical);if(o.phase==="DROP_ANIMATING"){const s=o.completed;return s.result.draggableId===a.draggableId?null:l(a.draggableId,s.result.draggableId,s.impact,s.afterCritical)}return null}}const RTe=()=>{const e=ATe(),t=ETe();return(r,l)=>e(r,l)||t(r,l)||DTe},LTe={dropAnimationFinished:Xq},ITe=xq(RTe,LTe,null,{context:w4,areStatePropsEqual:wU})(MTe);var $Te=ITe;function SU(e){return zy(S4).isUsingCloneFor===e.draggableId&&!e.isClone?null:Ke.createElement($Te,e)}function NTe(e){const t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,n=!!e.disableInteractiveElementBlocking,r=!!e.shouldRespectForcePress;return Ke.createElement(SU,Yt({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:r}))}const kU=e=>t=>e===t,FTe=kU("scroll"),jTe=kU("auto"),i9=(e,t)=>t(e.overflowX)||t(e.overflowY),zTe=e=>{const t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return i9(n,FTe)||i9(n,jTe)},BTe=()=>!1,CU=e=>e==null?null:e===document.body?BTe()?e:null:e===document.documentElement?null:zTe(e)?e:CU(e.parentElement);var WTe=CU,tk=e=>({x:e.scrollLeft,y:e.scrollTop});const MU=e=>e?window.getComputedStyle(e).position==="fixed"?!0:MU(e.parentElement):!1;var qTe=e=>{const t=WTe(e),n=MU(e);return{closestScrollable:t,isFixedOnPage:n}},UTe=e=>{let{descriptor:t,isEnabled:n,isCombineEnabled:r,isFixedOnPage:l,direction:i,client:o,page:a,closest:s}=e;const u=(()=>{if(!s)return null;const{scrollSize:p,client:h}=s,g=Jq({scrollHeight:p.scrollHeight,scrollWidth:p.scrollWidth,height:h.paddingBox.height,width:h.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:h,scrollSize:p,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:g,diff:{value:Ha,displacement:Ha}}}})(),c=i==="vertical"?u4:Eq,d=af({page:a,withPlaceholder:null,axis:c,frame:u});return{descriptor:t,isCombineEnabled:r,isFixedOnPage:l,axis:c,isEnabled:n,client:o,page:a,frame:u,subject:d}};const HTe=(e,t)=>{const n=Tq(e);if(!t||e!==t)return n;const r=n.paddingBox.top-t.scrollTop,l=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,o=l+t.scrollWidth,s=o4({top:r,right:o,bottom:i,left:l},n.border);return i4({borderBox:s,margin:n.margin,border:n.border,padding:n.padding})};var VTe=e=>{let{ref:t,descriptor:n,env:r,windowScroll:l,direction:i,isDropDisabled:o,isCombineEnabled:a,shouldClipSubject:s}=e;const u=r.closestScrollable,c=HTe(t,u),d=Iy(c,l),f=(()=>{if(!u)return null;const h=Tq(u),g={scrollHeight:u.scrollHeight,scrollWidth:u.scrollWidth};return{client:h,page:Iy(h,l),scroll:tk(u),scrollSize:g,shouldClipSubject:s}})();return UTe({descriptor:n,isEnabled:!o,isCombineEnabled:a,isFixedOnPage:r.isFixedOnPage,direction:i,client:c,page:d,closest:f})};const GTe={passive:!1},YTe={passive:!0};var l9=e=>e.shouldPublishImmediately?GTe:YTe;const N0=e=>e&&e.env.closestScrollable||null;function XTe(e){const t=ge.useRef(null),n=zy(lx),r=_4("droppable"),{registry:l,marshal:i}=n,o=cU(e),a=cr(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),s=ge.useRef(a),u=cr(()=>Ua((x,_)=>{t.current||mn();const w={x,y:_};i.updateDroppableScroll(a.id,w)}),[a.id,i]),c=$n(()=>{const x=t.current;return!x||!x.env.closestScrollable?Ha:tk(x.env.closestScrollable)},[]),d=$n(()=>{const x=c();u(x.x,x.y)},[c,u]),f=cr(()=>Om(d),[d]),p=$n(()=>{const x=t.current,_=N0(x);if(x&&_||mn(),x.scrollOptions.shouldPublishImmediately){d();return}f()},[f,d]),h=$n((x,_)=>{t.current&&mn();const w=o.current,S=w.getDroppableRef();S||mn();const k=qTe(S),C={ref:S,descriptor:a,env:k,scrollOptions:_};t.current=C;const T=VTe({ref:S,descriptor:a,env:k,windowScroll:x,direction:w.direction,isDropDisabled:w.isDropDisabled,isCombineEnabled:w.isCombineEnabled,shouldClipSubject:!w.ignoreContainerClipping}),M=k.closestScrollable;return M&&(M.setAttribute(t9.contextId,n.contextId),M.addEventListener("scroll",p,l9(C.scrollOptions))),T},[n.contextId,a,p,o]),g=$n(()=>{const x=t.current,_=N0(x);return x&&_||mn(),tk(_)},[]),b=$n(()=>{const x=t.current;x||mn();const _=N0(x);t.current=null,_&&(f.cancel(),_.removeAttribute(t9.contextId),_.removeEventListener("scroll",p,l9(x.scrollOptions)))},[p,f]),v=$n(x=>{const _=t.current;_||mn();const w=N0(_);w||mn(),w.scrollTop+=x.y,w.scrollLeft+=x.x},[]),m=cr(()=>({getDimensionAndWatchScroll:h,getScrollWhileDragging:g,dragStopped:b,scroll:v}),[b,h,g,v]),y=cr(()=>({uniqueId:r,descriptor:a,callbacks:m}),[m,a,r]);li(()=>(s.current=y.descriptor,l.droppable.register(y),()=>{t.current&&b(),l.droppable.unregister(y)}),[m,a,b,y,i,l.droppable]),li(()=>{t.current&&i.updateDroppableIsEnabled(s.current.id,!e.isDropDisabled)},[e.isDropDisabled,i]),li(()=>{t.current&&i.updateDroppableIsCombineEnabled(s.current.id,e.isCombineEnabled)},[e.isCombineEnabled,i])}function x3(){}const s9={width:0,height:0,margin:B2e},KTe=e=>{let{isAnimatingOpenOnMount:t,placeholder:n,animate:r}=e;return t||r==="close"?s9:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}},ZTe=e=>{let{isAnimatingOpenOnMount:t,placeholder:n,animate:r}=e;const l=KTe({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:l.width,height:l.height,marginTop:l.margin.top,marginRight:l.margin.right,marginBottom:l.margin.bottom,marginLeft:l.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:r!=="none"?Qh.placeholder:null}},QTe=e=>{const t=ge.useRef(null),n=$n(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]),{animate:r,onTransitionEnd:l,onClose:i,contextId:o}=e,[a,s]=ge.useState(e.animate==="open");ge.useEffect(()=>a?r!=="open"?(n(),s(!1),x3):t.current?x3:(t.current=setTimeout(()=>{t.current=null,s(!1)}),n):x3,[r,a,n]);const u=$n(d=>{d.propertyName==="height"&&(l(),r==="close"&&i())},[r,i,l]),c=ZTe({isAnimatingOpenOnMount:a,animate:e.animate,placeholder:e.placeholder});return Ke.createElement(e.placeholder.tagName,{style:c,"data-rfd-placeholder-context-id":o,onTransitionEnd:u,ref:e.innerRef})};var JTe=Ke.memo(QTe);class eSe extends Ke.PureComponent{constructor(){super(...arguments),this.state={isVisible:!!this.props.on,data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{this.state.animate==="close"&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(t,n){return t.shouldAnimate?t.on?{isVisible:!0,data:t.on,animate:"open"}:n.isVisible?{isVisible:!0,data:n.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!t.on,data:t.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const t={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(t)}}const tSe=e=>{const t=ge.useContext(lx);t||mn();const{contextId:n,isMovementAllowed:r}=t,l=ge.useRef(null),i=ge.useRef(null),{children:o,droppableId:a,type:s,mode:u,direction:c,ignoreContainerClipping:d,isDropDisabled:f,isCombineEnabled:p,snapshot:h,useClone:g,updateViewportMaxScroll:b,getContainerForClone:v}=e,m=$n(()=>l.current,[]),y=$n(function(M){M===void 0&&(M=null),l.current=M},[]);$n(()=>i.current,[]);const x=$n(function(M){M===void 0&&(M=null),i.current=M},[]),_=$n(()=>{r()&&b({maxScroll:tU()})},[r,b]);XTe({droppableId:a,type:s,mode:u,direction:c,isDropDisabled:f,isCombineEnabled:p,ignoreContainerClipping:d,getDroppableRef:m});const w=cr(()=>Ke.createElement(eSe,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},M=>{let{onClose:O,data:D,animate:P}=M;return Ke.createElement(JTe,{placeholder:D,onClose:O,innerRef:x,animate:P,contextId:n,onTransitionEnd:_})}),[n,_,e.placeholder,e.shouldAnimatePlaceholder,x]),S=cr(()=>({innerRef:y,placeholder:w,droppableProps:{"data-rfd-droppable-id":a,"data-rfd-droppable-context-id":n}}),[n,a,w,y]),k=g?g.dragging.draggableId:null,C=cr(()=>({droppableId:a,type:s,isUsingCloneFor:k}),[a,k,s]);function T(){if(!g)return null;const{dragging:M,render:O}=g,D=Ke.createElement(SU,{draggableId:M.draggableId,index:M.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(P,E)=>O(P,E,M));return Sh.createPortal(D,v())}return Ke.createElement(S4.Provider,{value:C},o(S,h),T())};var nSe=tSe;function rSe(){return document.body||mn(),document.body}const u9={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:rSe},PU=e=>{let t={...e},n;for(n in u9)e[n]===void 0&&(t={...t,[n]:u9[n]});return t},w3=(e,t)=>e===t.droppable.type,c9=(e,t)=>t.draggables[e.draggable.id],aSe=()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},n=Ua(i=>({draggableId:i.id,type:i.type,source:{index:i.index,droppableId:i.droppableId}})),r=Ua((i,o,a,s,u,c)=>{const d=u.descriptor.id;if(u.descriptor.droppableId===i){const h=c?{render:c,dragging:n(u.descriptor)}:null,g={isDraggingOver:a,draggingOverWith:a?d:null,draggingFromThisWith:d,isUsingPlaceholder:!0};return{placeholder:u.placeholder,shouldAnimatePlaceholder:!1,snapshot:g,useClone:h}}if(!o)return t;if(!s)return e;const p={isDraggingOver:a,draggingOverWith:d,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:u.placeholder,shouldAnimatePlaceholder:!0,snapshot:p,useClone:null}});return(i,o)=>{const a=PU(o),s=a.droppableId,u=a.type,c=!a.isDropDisabled,d=a.renderClone;if(Im(i)){const f=i.critical;if(!w3(u,f))return t;const p=c9(f,i.dimensions),h=ii(i.impact)===s;return r(s,c,h,h,p,d)}if(i.phase==="DROP_ANIMATING"){const f=i.completed;if(!w3(u,f.critical))return t;const p=c9(f.critical,i.dimensions);return r(s,c,_U(f.result)===s,ii(f.impact)===s,p,d)}if(i.phase==="IDLE"&&i.completed&&!i.shouldFlush){const f=i.completed;if(!w3(u,f.critical))return t;const p=ii(f.impact)===s,h=!!(f.impact.at&&f.impact.at.type==="COMBINE"),g=f.critical.droppable.id===s;return p?h?e:t:g?e:t}return t}},oSe={updateViewportMaxScroll:e_e},iSe=xq(aSe,oSe,(e,t,n)=>({...PU(n),...e,...t}),{context:w4,areStatePropsEqual:wU})(nSe);var lSe=iSe;const sSe=Object.freeze(Object.defineProperty({__proto__:null,DragDropContext:gTe,Draggable:NTe,Droppable:lSe,resetServerContext:mTe,useKeyboardSensor:mU,useMouseSensor:hU,useTouchSensor:gU},Symbol.toStringTag,{value:"Module"})),k4=er(sSe);var d9;function uSe(){return d9||(d9=1,function(e){var t=Hn,n=Pa();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(jr()),l=t(kc),i=t(za()),o=t(fq),a=t(Zxe),s=t(tx),u=t(Kr),c=g(ge),d=k4,f=sl(),p=mg();function h(x){if(typeof WeakMap!="function")return null;var _=new WeakMap,w=new WeakMap;return(h=function(k){return k?w:_})(x)}function g(x,_){if(x&&x.__esModule)return x;if(x===null||n(x)!=="object"&&typeof x!="function")return{default:x};var w=h(_);if(w&&w.has(x))return w.get(x);var S={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in x)if(C!=="default"&&Object.prototype.hasOwnProperty.call(x,C)){var T=k?Object.getOwnPropertyDescriptor(x,C):null;T&&(T.get||T.set)?Object.defineProperty(S,C,T):S[C]=x[C]}return S.default=x,w&&w.set(x,S),S}function b(x,_){var w=Object.keys(x);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(x);_&&(S=S.filter(function(k){return Object.getOwnPropertyDescriptor(x,k).enumerable})),w.push.apply(w,S)}return w}function v(x){for(var _=1;_0&&c.default.createElement(s.default,{variant:"caption",sx:{padding:1}},_.groupedBy),x.groupColumns.map(function(O,D){return c.default.createElement(d.Draggable,{key:O.tableData.id.toString(),draggableId:O.tableData.id.toString(),index:D},function(P,E){var I;return c.default.createElement(l.default,(0,r.default)({ref:P.innerRef},P.draggableProps,P.dragHandleProps,{sx:k(E.isDragging,P.draggableProps.style)}),c.default.createElement(a.default,(0,r.default)({},P.dragHandleProps,S.groupChipProps,{onClick:function(){return x.onSortChanged(O)},label:c.default.createElement(l.default,{sx:{display:"flex",alignItems:"center"}},c.default.createElement(l.default,{sx:{float:"left"}},O.title),O.tableData.groupSort&&c.default.createElement(w.SortArrow,{sx:{transition:"300ms ease all",transform:O.tableData.groupSort==="asc"?"rotate(-180deg)":"none",fontSize:18}})),sx:v({boxShadow:"none",textTransform:"none"},(I=S.groupChipProps)!==null&&I!==void 0?I:{}),onDelete:function(){return x.onGroupRemoved(O,D)}})))})}),x.groupColumns.length===0&&c.default.createElement(s.default,{variant:"caption",sx:{padding:1}},_.placeholder),T.placeholder)}))}m.defaultProps={},m.propTypes={forwardedRef:u.default.element,className:u.default.string,onSortChanged:u.default.func,onGroupRemoved:u.default.func,onGroupChange:u.default.func,persistentGroupingsId:u.default.string};var y=c.default.forwardRef(function(_,w){return c.default.createElement(m,(0,r.default)({},_,{forwardedRef:w}))});e.default=y}(c3)),c3}var _3={},f9;function cSe(){return f9||(f9=1,function(e){var t=Hn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(jr()),r=t(za()),l=t(vu()),i=t(Cf()),o=t(zl),a=t(ms),s=t(Mf),u=t(Cc),c=t(Kr),d=t(ge),f=sl();function p(v,m){var y=Object.keys(v);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(v);m&&(x=x.filter(function(_){return Object.getOwnPropertyDescriptor(v,_).enumerable})),y.push.apply(y,x)}return y}function h(v){for(var m=1;m0&&_++;var w=v.groups[v.level],S;v.groupData.isExpanded&&(v.groups.length>v.level+1?S=v.groupData.groups.map(function(z,N){return d.default.createElement(v.components.GroupRow,{actions:v.actions,key:z.value||""+N,columns:v.columns,components:v.components,detailPanel:v.detailPanel,getFieldValue:v.getFieldValue,groupData:z,groups:v.groups,level:v.level+1,path:[].concat((0,i.default)(v.path),[N]),onGroupExpandChanged:v.onGroupExpandChanged,onGroupSelected:v.onGroupSelected,onRowSelected:v.onRowSelected,onRowClick:v.onRowClick,onToggleDetailPanel:v.onToggleDetailPanel,onTreeExpandChanged:v.onTreeExpandChanged,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,hasAnyEditingRow:v.hasAnyEditingRow,isTreeData:v.isTreeData,cellEditable:v.cellEditable,onCellEditStarted:v.onCellEditStarted,onCellEditFinished:v.onCellEditFinished,scrollWidth:v.scrollWidth,treeDataMaxLevel:v.treeDataMaxLevel})}):S=v.groupData.data.map(function(z,N){return z.tableData.editing?d.default.createElement(v.components.EditRow,{columns:v.columns,components:v.components,data:z,path:[].concat((0,i.default)(v.path),[z.tableData.uuid]),localization:v.localization,key:N,mode:z.tableData.editing,isTreeData:v.isTreeData,detailPanel:v.detailPanel,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,getFieldValue:v.getFieldValue,onBulkEditRowChanged:v.onBulkEditRowChanged,scrollWidth:v.scrollWidth}):d.default.createElement(v.components.Row,{actions:v.actions,key:N,columns:v.columns,components:v.components,data:z,detailPanel:v.detailPanel,level:(v.level||0)+1,getFieldValue:v.getFieldValue,path:[].concat((0,i.default)(v.path),[z.tableData.uuid]),onRowSelected:v.onRowSelected,onRowClick:v.onRowClick,onToggleDetailPanel:v.onToggleDetailPanel,isTreeData:v.isTreeData,onTreeExpandChanged:v.onTreeExpandChanged,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,hasAnyEditingRow:v.hasAnyEditingRow,cellEditable:v.cellEditable,onCellEditStarted:v.onCellEditStarted,onCellEditFinished:v.onCellEditFinished,scrollWidth:v.scrollWidth,treeDataMaxLevel:v.treeDataMaxLevel})}));for(var k=[],C=0;C0&&A!==F,checked:A===F,onChange:function(N,R){return v.onGroupSelected&&v.onGroupSelected(R,v.groupData.path)},style:{marginRight:8}}),d.default.createElement("b",null,M,O)))),S)}g.defaultProps={columns:[],groups:[],level:0},g.propTypes={actions:c.default.array,columns:c.default.arrayOf(c.default.object),components:c.default.object,cellEditable:c.default.object,detailPanel:c.default.oneOfType([c.default.func,c.default.arrayOf(c.default.object)]),forwardedRef:c.default.element,getFieldValue:c.default.func,groupData:c.default.object,groups:c.default.arrayOf(c.default.object),hasAnyEditingRow:c.default.bool,icons:c.default.object,isTreeData:c.default.bool.isRequired,level:c.default.number,localization:c.default.object,onBulkEditRowChanged:c.default.func,onCellEditFinished:c.default.func,onCellEditStarted:c.default.func,onEditingApproved:c.default.func,onEditingCanceled:c.default.func,onGroupExpandChanged:c.default.func,onRowClick:c.default.func,onGroupSelected:c.default.func,onRowSelected:c.default.func,onToggleDetailPanel:c.default.func.isRequired,onTreeExpandChanged:c.default.func.isRequired,path:c.default.arrayOf(c.default.number),scrollWidth:c.default.number.isRequired,treeDataMaxLevel:c.default.number};var b=d.default.forwardRef(function(m,y){return d.default.createElement(g,(0,n.default)({},m,{forwardedRef:y}))});e.default=b}(_3)),_3}var T3={};const dSe=er(Kde),fSe=er(Afe);var p9;function pSe(){return p9||(p9=1,function(e){var t=Hn,n=Pa();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableHeader=k,e.styles=e.default=void 0;var r=t(kc),l=t(Mc),i=t(jr()),o=t(za()),a=t(vu()),s=t(kf()),u=t(ge),c=t(Kr),d=t(dSe),f=t(ms),p=t(zl),h=t(fSe),g=t(Cc),b=k4,v=_(bs()),m=sl(),y=["onColumnResized","classes","sx","columns"];function x(P){if(typeof WeakMap!="function")return null;var E=new WeakMap,I=new WeakMap;return(x=function(F){return F?I:E})(P)}function _(P,E){if(P&&P.__esModule)return P;if(P===null||n(P)!=="object"&&typeof P!="function")return{default:P};var I=x(E);if(I&&I.has(P))return I.get(P);var A={},F=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var j in P)if(j!=="default"&&Object.prototype.hasOwnProperty.call(P,j)){var B=F?Object.getOwnPropertyDescriptor(P,j):null;B&&(B.get||B.set)?Object.defineProperty(A,j,B):A[j]=P[j]}return A.default=P,I&&I.set(P,A),A}function w(P,E){var I=Object.keys(P);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(P);E&&(A=A.filter(function(F){return Object.getOwnPropertyDescriptor(P,F).enumerable})),I.push.apply(I,A)}return I}function S(P){for(var E=1;E-1)&&!ce.tableData.hiddden}).sort(function(ce,we){return ce.tableData.columnOrder-we.tableData.columnOrder}).map(function(ce,we,Z){var re=ce.align!==void 0?ce.align:["numeric","currency"].indexOf(ce.type)!==-1?"right":"left",de=ce.title;if(z.draggable&&ce.draggable!==!1?de=u.default.createElement(b.Draggable,{key:ce.tableData.id,draggableId:ce.tableData.id.toString(),index:we,style:{zIndex:99}},function(ue,me){return u.default.createElement("div",(0,i.default)({ref:ue.innerRef},ue.draggableProps,ue.dragHandleProps,{style:me.isDragging?ue.draggableProps.style:{position:"relative",minWidth:0,display:"flex",flexDirection:re==="right"?"row-reverse":void 0}}),ce.sorting!==!1&&j.sorting&&j.allowSorting?u.default.createElement(T,{columnDef:ce,keepSortDirectionOnColumnSwitch:z.keepSortDirectionOnColumnSwitch,icon:N.SortArrow,thirdSortClick:z.thirdSortClick,onOrderChange:j.onOrderChange,orderByCollection:j.orderByCollection,showColumnSortOrder:z.showColumnSortOrder,sortOrderIndicatorStyle:z.sortOrderIndicatorStyle},ce.title):ce.title)}):ce.sorting!==!1&&j.sorting&&j.allowSorting&&(de=u.default.createElement(T,{columnDef:ce,keepSortDirectionOnColumnSwitch:z.keepSortDirectionOnColumnSwitch,icon:N.SortArrow,thirdSortClick:z.thirdSortClick,onOrderChange:j.onOrderChange,orderByCollection:j.orderByCollection,showColumnSortOrder:z.showColumnSortOrder,sortOrderIndicatorStyle:z.sortOrderIndicatorStyle},ce.title)),ce.tooltip&&(de=u.default.createElement(l.default,{title:ce.tooltip,placement:"bottom"},u.default.createElement("span",null,de))),z.tableLayout==="fixed"&&z.columnResizable&&ce.resizable!==!1&&!(z.tableWidth==="full"&&we===Z.length-1)){var _e=N.Resize?N.Resize:function(ue){return u.default.createElement(r.default,(0,i.default)({},ue,{"data-test-id":"drag_handle"}))};de=u.default.createElement(r.default,{sx:M.headerWrap(re==="right")},u.default.createElement(r.default,{sx:M.headerContent(re==="right")},de),u.default.createElement("div",null),u.default.createElement(_e,{sx:M.headerResize((W==null?void 0:W.col)&&W.col.tableData.id===ce.tableData.id),onMouseDown:function(me){return V(me,ce,we)}}))}return u.default.createElement(p.default,{key:ce.tableData.id,align:re,sx:M.header,style:ie(ce),size:Pe,"aria-label":ce.ariaLabel},de)})}function pe(){var Pe=v.selectionMaxWidth(S(S({},j),{},{options:z}),j.treeDataMaxLevel);return u.default.createElement(p.default,{padding:"none",key:"key-selection-column",sx:M.header,style:S(S({},z.headerStyle),{},{width:Pe})},z.showSelectAllCheckbox&&u.default.createElement(g.default,(0,i.default)({indeterminate:j.selectedCount>0&&j.selectedCount0&&j.selectedCount>=j.dataCount,onChange:function(we,Z){return j.onAllSelected&&j.onAllSelected(Z)}},z.headerSelectionProps)))}function ke(){return u.default.createElement(p.default,{padding:"none",key:"key-detail-panel-column",sx:M.header,style:z.headerStyle})}var Ce=se();if(z.selection&&Ce.splice(0,0,pe()),j.showActionsColumn)if(z.actionsColumnIndex>=0){var Oe=0;z.selection&&(Oe=1),Ce.splice(z.actionsColumnIndex+Oe,0,ae())}else z.actionsColumnIndex===-1&&Ce.push(ae());return j.hasDetailPanel&&z.showDetailPanelIcon&&(z.detailPanelColumnAlignment==="right"?Ce.push(ke()):Ce.splice(0,0,ke())),j.isTreeData>0&&Ce.splice(0,0,u.default.createElement(p.default,{padding:"none",key:"key-tree-data-header",sx:M.header,style:z.headerStyle})),Q.filter(function(Pe){return Pe.tableData.groupOrder>-1}).forEach(function(Pe){Ce.splice(0,0,u.default.createElement(p.default,{padding:"checkbox",key:"key-group-header"+Pe.tableData.id,sx:M.header,style:z.headerStyle}))}),u.default.createElement(d.default,{ref:j.forwardedRef,classes:I,sx:A},u.default.createElement(f.default,{sx:M.headerRow},Ce))}var C=function(E,I,A,F,j){return A.tableData.id!==E?j&&I||"asc":I==="asc"?"desc":I==="desc"&&F?"":"asc"};function T(P){var E=P.columnDef,I=P.keepSortDirectionOnColumnSwitch,A=P.icon,F=P.thirdSortClick,j=P.onOrderChange,B=P.children,z=P.orderByCollection,N=P.showColumnSortOrder,R=P.sortOrderIndicatorStyle,q=z.find(function(H){var G=H.orderBy;return G===E.tableData.id}),Y=(q||I)&&q&&q.orderDirection||"asc",L="none";q&&Y==="asc"?L=E.ariaSortAsc||"ascending":q&&Y==="desc"&&(L=E.ariaSortDesc||"descending");var W=q&&q.orderBy;return u.default.createElement(u.default.Fragment,null,u.default.createElement(h.default,{role:"columnheader","aria-sort":L,"aria-label":E.ariaLabel,IconComponent:A,active:!!q,"data-testid":"mtableheader-sortlabel",direction:Y,onClick:function(){var G=C(W,Y,E,F,I);j(E.tableData.id,G,q&&q.sortOrder)}},B),u.default.createElement("span",{style:S(S({},R),{},{width:"1em"}),"data-testid":"material-table-column-sort-order-indicator"},N&&q?q.sortOrder:""))}k.defaultProps={dataCount:0,selectedCount:0,orderByCollection:[],allowSorting:!0},k.propTypes={columns:c.default.array.isRequired,classes:c.default.object,sx:c.default.object,dataCount:c.default.number,hasDetailPanel:c.default.bool.isRequired,selectedCount:c.default.number,onAllSelected:c.default.func,onOrderChange:c.default.func,showActionsColumn:c.default.bool,orderByCollection:c.default.array,showColumnSortOrder:c.default.bool,tooltip:c.default.string,allowSorting:c.default.bool};var M={headerRow:{zIndex:10},header:{top:0},headerWrap:function(E){return{display:"flex",alignItems:"center",position:"relative",left:4}},headerWrapRight:function(E){return{display:"flex",alignItems:"center",pr:E?1:void 0,position:"relative",left:4,justifyContent:"flex-end"}},headerContent:function(E){return{minWidth:0,display:"flex",flex:"1 0 100%",flexDirection:E?"row-reverse":void 0,justifyContent:"flex-start",alignItems:"center",width:"100%",position:"relative"}},headerResize:function(E){return{color:E?"primary.main":"inherit",flex:1,cursor:"col-resize",position:"absolute",height:"100%",width:16,display:"flex",justifyContent:"center",right:-8,zIndex:20}}};e.styles=M;var O=u.default.forwardRef(function(E,I){return u.default.createElement(k,(0,i.default)({},E,{forwardedRef:I}))}),D=u.default.memo(O);e.default=D}(T3)),T3}var S3={};const hSe=er(rle);var h9;function mSe(){return h9||(h9=1,function(e){var t=Hn,n=Pa();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(jr()),l=t(Mf),i=t(Mc),o=t(kc),a=t(hSe),s=t(Kr),u=t(ge),c=Sf,d=h(bs()),f=sl();function p(y){if(typeof WeakMap!="function")return null;var x=new WeakMap,_=new WeakMap;return(p=function(S){return S?_:x})(y)}function h(y,x){if(y&&y.__esModule)return y;if(y===null||n(y)!=="object"&&typeof y!="function")return{default:y};var _=p(x);if(_&&_.has(y))return _.get(y);var w={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in y)if(k!=="default"&&Object.prototype.hasOwnProperty.call(y,k)){var C=S?Object.getOwnPropertyDescriptor(y,k):null;C&&(C.get||C.set)?Object.defineProperty(w,k,C):w[k]=y[k]}return w.default=y,_&&_.set(y,w),w}function g(y){var x=(0,c.useTheme)(),_=(0,f.useLocalizationStore)().pagination,w=(0,f.useIconStore)(),S=function(Y){y.onPageChange(Y,0)},k=function(Y){y.onPageChange(Y,y.page-1)},C=function(Y){y.onPageChange(Y,y.page+1)},T=function(Y){return function(L){y.onPageChange(L,Y)}},M=function(Y){y.onPageChange(Y,Math.max(0,Math.ceil(y.count/y.rowsPerPage)-1))};function O(q,Y,L,W){var H=[];W=Math.max(1,Math.min(10,W));for(var G=Math.max(q-W+1,0);G<=Math.min(Y+W-1,L);G++){var te=G===y.page?"contained":"text";H.push(u.default.createElement(a.default,{size:"small",style:{boxShadow:"none",maxWidth:"30px",maxHeight:"30px",minWidth:"30px",minHeight:"30px"},disabled:G===y.page,variant:te,onClick:T(G),key:G},G+1))}return u.default.createElement("span",null,H)}var D=y.count,P=y.page,E=y.rowsPerPage,I=y.showFirstLastPageButtons,A=y.numberOfPagesAround,F=Math.ceil(D/E)-1,j=Math.max(P-1,0),B=Math.min(F,P+1),z=d.parseFirstLastPageButtons(I,x.direction==="rtl"),N=z.first,R=z.last;return u.default.createElement(o.default,{sx:{flexShrink:0,color:"text.secondary",marginLeft:2.5,display:"flex",alignItems:"center"},ref:y.forwardedRef},N&&u.default.createElement(i.default,{title:_.firstTooltip},u.default.createElement("span",null,u.default.createElement(l.default,{onClick:S,disabled:P===0,"aria-label":_.firstAriaLabel,size:"large"},x.direction==="rtl"?u.default.createElement(w.LastPage,null):u.default.createElement(w.FirstPage,null)))),u.default.createElement(i.default,{title:_.previousTooltip},u.default.createElement("span",null,u.default.createElement(l.default,{onClick:k,disabled:P===0,"aria-label":_.previousAriaLabel},u.default.createElement(w.PreviousPage,null)))),u.default.createElement(o.default,{sx:{display:{xs:"false",sm:"false",md:"block"}}},O(j,B,F,A)),u.default.createElement(i.default,{title:_.nextTooltip},u.default.createElement("span",null,u.default.createElement(l.default,{onClick:C,disabled:P>=F,"aria-label":_.nextAriaLabel,size:"large"},x.direction==="rtl"?u.default.createElement(w.PreviousPage,null):u.default.createElement(w.NextPage,null)))),R&&u.default.createElement(i.default,{title:_.lastTooltip},u.default.createElement("span",null,u.default.createElement(l.default,{onClick:M,disabled:P>=Math.ceil(D/E)-1,"aria-label":_.lastAriaLabel,size:"large"},x.direction==="rtl"?u.default.createElement(w.FirstPage,null):u.default.createElement(w.LastPage,null)))))}g.propTypes={onPageChange:s.default.func,page:s.default.number,forwardedRef:s.default.func,count:s.default.number,rowsPerPage:s.default.number,numberOfPagesAround:s.default.number,classes:s.default.object,theme:s.default.any,showFirstLastPageButtons:s.default.oneOfType([s.default.object,s.default.bool])},g.defaultProps={showFirstLastPageButtons:!0};var b=u.default.forwardRef(function(x,_){return u.default.createElement(g,(0,r.default)({},x,{forwardedRef:_}))}),v=b,m=v;e.default=m}(S3)),S3}var k3={},m9;function gSe(){return m9||(m9=1,function(e){var t=Hn,n=Pa();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(jr()),l=t(kc),i=t(Mf),o=t(Mc),a=t(tx),s=t(Kr),u=t(ge),c=Sf,d=h(bs()),f=mg();function p(y){if(typeof WeakMap!="function")return null;var x=new WeakMap,_=new WeakMap;return(p=function(S){return S?_:x})(y)}function h(y,x){if(y&&y.__esModule)return y;if(y===null||n(y)!=="object"&&typeof y!="function")return{default:y};var _=p(x);if(_&&_.has(y))return _.get(y);var w={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in y)if(k!=="default"&&Object.prototype.hasOwnProperty.call(y,k)){var C=S?Object.getOwnPropertyDescriptor(y,k):null;C&&(C.get||C.set)?Object.defineProperty(w,k,C):w[k]=y[k]}return w.default=y,_&&_.set(y,w),w}function g(y){var x=(0,c.useTheme)(),_=(0,f.useIconStore)(),w=(0,f.useLocalizationStore)().pagination,S=function(j){y.onPageChange(j,0)},k=function(j){y.onPageChange(j,y.page-1)},C=function(j){y.onPageChange(j,y.page+1)},T=function(j){y.onPageChange(j,Math.max(0,Math.ceil(y.count/y.rowsPerPage)-1))},M=y.count,O=y.page,D=y.rowsPerPage,P=y.showFirstLastPageButtons,E=d.parseFirstLastPageButtons(P,x.direction==="rtl"),I=E.first,A=E.last;return u.default.createElement(l.default,{sx:{flexShrink:0,color:"text.secondary",display:"flex",alignItems:"center"},ref:y.forwardedRef},I&&u.default.createElement(o.default,{title:w.firstTooltip},u.default.createElement("span",null,u.default.createElement(i.default,{onClick:S,disabled:O===0,"aria-label":w.firstAriaLabel,size:"large"},x.direction==="rtl"?u.default.createElement(_.LastPage,null):u.default.createElement(_.FirstPage,null)))),u.default.createElement(o.default,{title:w.previousTooltip},u.default.createElement("span",null,u.default.createElement(i.default,{onClick:k,disabled:O===0,"aria-label":w.previousAriaLabel},x.direction==="rtl"?u.default.createElement(_.NextPage,null):u.default.createElement(_.PreviousPage,null)))),u.default.createElement(a.default,{variant:"caption",style:{flex:1,textAlign:"center",alignSelf:"center",flexBasis:"inherit"}},w.labelDisplayedRows.replace("{from}",y.count===0?0:y.page*y.rowsPerPage+1).replace("{to}",Math.min((y.page+1)*y.rowsPerPage,y.count)).replace("{count}",y.count)),u.default.createElement(o.default,{title:w.nextTooltip},u.default.createElement("span",null,u.default.createElement(i.default,{onClick:C,disabled:O>=Math.ceil(M/D)-1,"aria-label":w.nextAriaLabel},x.direction==="rtl"?u.default.createElement(_.PreviousPage,null):u.default.createElement(_.NextPage,null)))),A&&u.default.createElement(o.default,{title:w.lastTooltip},u.default.createElement("span",null,u.default.createElement(i.default,{onClick:T,disabled:O>=Math.ceil(M/D)-1,"aria-label":w.lastAriaLabel,size:"large"},x.direction==="rtl"?u.default.createElement(_.FirstPage,null):u.default.createElement(_.LastPage,null)))))}g.propTypes={onPageChange:s.default.func,page:s.default.number,count:s.default.number,rowsPerPage:s.default.number,classes:s.default.object,localization:s.default.object,showFirstLastPageButtons:s.default.oneOfType([s.default.object,s.default.bool]),forwardedRef:s.default.func},g.defaultProps={showFirstLastPageButtons:!0};var b=u.default.forwardRef(function(x,_){return u.default.createElement(g,(0,r.default)({},x,{forwardedRef:_}))}),v=b,m=v;e.default=m}(k3)),k3}var C3={},g9;function vSe(){return g9||(g9=1,function(e){var t=Hn,n=Pa();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableSummaryRow=v,e.default=void 0;var r=t(ms),l=t(Pa()),i=t(Cf()),o=t(zl),a=t(za()),s=h(ge),u=ex(),c=h(bs()),d=sl(),f=t(Kr);function p(y){if(typeof WeakMap!="function")return null;var x=new WeakMap,_=new WeakMap;return(p=function(S){return S?_:x})(y)}function h(y,x){if(y&&y.__esModule)return y;if(y===null||n(y)!=="object"&&typeof y!="function")return{default:y};var _=p(x);if(_&&_.has(y))return _.get(y);var w={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in y)if(k!=="default"&&Object.prototype.hasOwnProperty.call(y,k)){var C=S?Object.getOwnPropertyDescriptor(y,k):null;C&&(C.get||C.set)?Object.defineProperty(w,k,C):w[k]=y[k]}return w.default=y,_&&_.set(y,w),w}function g(y,x){var _=Object.keys(y);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(y);x&&(w=w.filter(function(S){return Object.getOwnPropertyDescriptor(y,S).enumerable})),_.push.apply(_,w)}return _}function b(y){for(var x=1;x1&&arguments[1]!==void 0?arguments[1]:1,E=c.elementSize(b(b({},_),{},{options:S})),I=P*c.baseIconSize(b(b({},_),{},{options:S}));return s.createElement(o.default,{key:"placeholder.".concat(D),size:E,padding:"none",style:{width:I,padding:"0px 5px",boxSizing:"border-box"}})}var C=[],T=[],M=0;if(S.selection&&C.push(k(M++)),_.actions&&_.actions.filter(function(D){return D.position==="row"||typeof D=="function"}).length>0){var O=c.rowActions(_).length;S.actionsColumnIndex===-1?T.push(k(M++,O)):S.actionsColumnIndex>=0&&C.push(k(M++,O))}return _.detailPanel&&S.showDetailPanelIcon&&(S.detailPanelColumnAlignment==="right"?T.push(k(M++)):C.push(k(M++))),_.isTreeData&&C.push(k(M++)),s.createElement(r.default,null,C,(0,i.default)(x).sort(function(D,P){return D.tableData.columnOrder-P.tableData.columnOrder}).map(function(D,P){var E=w({index:D.tableData.columnOrder,column:D,columns:x}),I=D.align!==void 0?D.align:["numeric","currency"].indexOf(D.type)!==-1?"right":"left",A="",F=(0,u.getStyle)({columnDef:D,scrollWidth:0});return(0,l.default)(E)==="object"&&E!==null?(A=E.value,F=E.style):A=E,s.createElement(o.default,{key:P,style:F,align:I},A)}),T)}v.propTypes={columns:f.default.array,renderSummaryRow:f.default.func};var m=v;e.default=m}(C3)),C3}var M3={};const ySe=er(yce);var v9;function bSe(){return v9||(v9=1,function(e){var t=Hn,n=Pa();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableToolbar=C,e.default=void 0;var r=t(jr()),l=t(za()),i=t(kc),o=t(vu()),a=t(Cc),s=t(cq),u=t(Mf),c=t(ySe),d=t(S5),f=t(Ib),p=t(fq),h=t(Mc),g=t(tx),b=Sf,v=t(Kr),m=_(ge),y=sl();function x(P){if(typeof WeakMap!="function")return null;var E=new WeakMap,I=new WeakMap;return(x=function(F){return F?I:E})(P)}function _(P,E){if(P&&P.__esModule)return P;if(P===null||n(P)!=="object"&&typeof P!="function")return{default:P};var I=x(E);if(I&&I.has(P))return I.get(P);var A={},F=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var j in P)if(j!=="default"&&Object.prototype.hasOwnProperty.call(P,j)){var B=F?Object.getOwnPropertyDescriptor(P,j):null;B&&(B.get||B.set)?Object.defineProperty(A,j,B):A[j]=P[j]}return A.default=P,I&&I.set(P,A),A}function w(P,E){var I=Object.keys(P);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(P);E&&(A=A.filter(function(F){return Object.getOwnPropertyDescriptor(P,F).enumerable})),I.push.apply(I,A)}return I}function S(P){for(var E=1;EOe.tableData.columnOrder?1:-1}),pe=O(P.data()),ke=pe.map(function(Ce){return se.reduce(function(Oe,Pe){var ce;return typeof Pe.customExport=="function"?ce=Pe.customExport(Ce):ce=P.getFieldValue(Ce,Pe),Oe[Pe.field]=ce,Oe},{})});return[se,ke]};function V(){return te.search?m.default.createElement(f.default,{autoFocus:te.searchAutoFocus,sx:te.searchFieldAlignment==="left"&&te.showTitle===!1?void 0:T.searchField,value:j,onChange:function(se){return U(se.target.value)},placeholder:I.searchPlaceholder,variant:te.searchFieldVariant,InputProps:{startAdornment:m.default.createElement(s.default,{position:"start"},m.default.createElement(h.default,{title:I.searchTooltip},m.default.createElement(G.Search,{fontSize:"small"}))),endAdornment:m.default.createElement(s.default,{position:"end"},m.default.createElement(u.default,{disabled:!j,onClick:function(){return U("")},"aria-label":I.clearSearchAriaLabel},m.default.createElement(G.ResetSearch,{fontSize:"small","aria-label":"clear"}))),style:te.searchFieldStyle,inputProps:{"aria-label":I.searchAriaLabel}}}):null}function X(ie){var se=ie?"toolbarOnSelect":"toolbar";return m.default.createElement("div",{style:{display:"flex"}},te.columnsButton&&!ie&&m.default.createElement("span",null,m.default.createElement(h.default,{title:I.showColumnsTitle},m.default.createElement(u.default,{color:"inherit",onClick:function(ke){return H(ke.currentTarget)},"aria-label":I.showColumnsAriaLabel},m.default.createElement(G.ViewColumn,null))),m.default.createElement(c.default,{anchorEl:W,open:!!W,onClose:function(){return H(null)}},m.default.createElement(d.default,{key:"text",disabled:!0,style:{opacity:1,fontWeight:600,fontSize:12}},I.addRemoveColumns),P.columns.map(function(pe){var ke=pe.hiddenByColumnsButton!==void 0?pe.hiddenByColumnsButton:P.columnsHiddenInColumnsButton;return ke?null:m.default.createElement("li",{key:pe.tableData.id},m.default.createElement(d.default,{sx:T.formControlLabel,component:"label",htmlFor:"column-toggle-".concat(pe.tableData.id),disabled:pe.removable===!1},m.default.createElement(a.default,{checked:!pe.hidden,id:"column-toggle-".concat(pe.tableData.id),onChange:function(){return P.onColumnsChanged(pe,!pe.hidden)}}),m.default.createElement("span",null,pe.title)))}))),te.exportMenu.length>0&&m.default.createElement("span",null,m.default.createElement(h.default,{title:I.exportTitle},m.default.createElement(u.default,{color:"inherit",onClick:function(ke){return q(ke.currentTarget)},"aria-label":I.exportAriaLabel},m.default.createElement(G.Export,null))),m.default.createElement(c.default,{anchorEl:R,open:!!R,onClose:function(){return q(null)}},te.exportMenu.map(function(pe,ke){var Ce=Q(),Oe=(0,o.default)(Ce,2),Pe=Oe[0],ce=Oe[1];return m.default.createElement(d.default,{key:"".concat(pe.label).concat(ke),onClick:function(){pe.exportFunc(Pe,ce,{searchedData:P.dataManager.searchedData,filteredData:P.dataManager.filteredData,groupedData:P.dataManager.groupedData,selectedData:ee}),q(null)}},pe.label)}))),m.default.createElement("span",null,m.default.createElement(P.components.Actions,{actions:P.actions&&P.actions.filter(function(pe){return pe.position===se}),data:ie?ee:void 0,components:P.components})))}function K(){return m.default.createElement(i.default,{sx:T.actions},m.default.createElement("div",null,X(ee.length>0)))}function ne(ie){var se=typeof ie=="string"?m.default.createElement(g.default,{variant:"h6",style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},ie):ie;return m.default.createElement(i.default,{sx:T.title},se)}var ae=te.showTextRowsSelected&&ee.length>0?typeof I.nRowsSelected=="function"?I.nRowsSelected(ee.length):I.nRowsSelected.replace("{0}",ee.length):te.showTitle?P.title:null;return m.default.createElement(p.default,{ref:P.forwardedRef,className:P.className,sx:S(S({},T.root),te.showTextRowsSelected&&ee.length>0?T.highlight(E):{})},ae&&ne(ae),te.searchFieldAlignment==="left"&&V(),te.toolbarButtonAlignment==="left"&&K(),m.default.createElement(i.default,{sx:T.spacer}),te.searchFieldAlignment==="right"&&V(),te.toolbarButtonAlignment==="right"&&K())}C.defaultProps={actions:[],columns:[],columnsHiddenInColumnsButton:!1,searchText:"",originalData:[],title:"No Title!"},C.propTypes={actions:v.default.array,className:v.default.string,columns:v.default.array,components:v.default.object.isRequired,getFieldValue:v.default.func.isRequired,onColumnsChanged:v.default.func.isRequired,dataManager:v.default.object.isRequired,searchText:v.default.string,onSearchChanged:v.default.func.isRequired,originalData:v.default.array,title:v.default.oneOfType([v.default.element,v.default.string]),renderData:v.default.array,data:v.default.oneOfType([v.default.array,v.default.func]),exportAllData:v.default.bool,exportMenu:v.default.arrayOf(v.default.shape({name:v.default.string,handler:v.default.func})),searchAutoFocus:v.default.bool,classes:v.default.object};var T={root:{paddingRight:1,paddingLeft:2},highlight:function(E){return E.palette.mode==="light"?{color:E.palette.secondary.main,backgroundColor:(0,b.lighten)(E.palette.secondary.light,.85)}:{color:E.palette.text.primary,backgroundColor:E.palette.secondary.dark}},spacer:{flex:"1 1 10%"},actions:{color:"text.secondary"},title:{overflow:"hidden"},searchField:{minWidth:150,paddingLeft:2},formControlLabel:{px:1}},M=m.default.forwardRef(function(E,I){return m.default.createElement(C,(0,r.default)({},E,{forwardedRef:I}))});function O(P){for(var E=P;Array.isArray((I=E)===null||I===void 0||(A=I[0])===null||A===void 0?void 0:A.data);){var I,A;E=E.map(function(F){return F.groups.length!==0?F.groups:F.data}).flat()}return E}var D=m.default.memo(M);e.default=D}(M3)),M3}var y9;function ux(){return y9||(y9=1,function(e){var t=Hn;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Container",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"MTableAction",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"MTableActions",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"MTableBody",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"MTableBodyRow",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"MTableCell",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"MTableCustomIcon",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"MTableEditCell",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"MTableEditField",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"MTableEditRow",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"MTableFilterRow",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"MTableGroupRow",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"MTableGroupbar",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"MTableHeader",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"MTablePagination",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"MTableScrollbar",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"MTableSteppedPagination",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"MTableSummaryRow",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"MTableToolbar",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"OverlayError",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"OverlayLoading",{enumerable:!0,get:function(){return n.default}});var n=t(dpe()),r=t(nhe()),l=t(ohe()),i=t(lhe()),o=t(fhe()),a=t(Pxe()),s=t(Oxe()),u=t(Rxe()),c=t(Lxe()),d=t(Fxe()),f=t(Bxe()),p=t(Wxe()),h=t(qxe()),g=t(dq()),b=t(uSe()),v=t(cSe()),m=t(pSe()),y=t(mSe()),x=t(gSe()),_=t(vSe()),w=t(bSe())}(a_)),a_}var b9;function OU(){return b9||(b9=1,function(e){var t=Hn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(cpe),r=ux(),l={Action:r.MTableAction,Actions:r.MTableActions,Body:r.MTableBody,Cell:r.MTableCell,Container:r.Container,EditCell:r.MTableEditCell,EditField:r.MTableEditField,EditRow:r.MTableEditRow,FilterRow:r.MTableFilterRow,Groupbar:r.MTableGroupbar,GroupRow:r.MTableGroupRow,Header:r.MTableHeader,OverlayLoading:r.OverlayLoading,OverlayError:r.OverlayError,Pagination:n.default,Row:r.MTableBodyRow,SummaryRow:r.MTableSummaryRow,Toolbar:r.MTableToolbar};e.default=l}(r_)),r_}var x9;function xSe(){if(x9)return vp;x9=1;var e=Hn;Object.defineProperty(vp,"__esModule",{value:!0}),vp.defaultProps=void 0;var t=e(OU()),n=e(qB()),r=e(BB()),l=e(WB()),i={actions:[],classes:{},columns:[],components:t.default,data:[],icons:n.default,isLoading:!1,title:"Table Title",options:l.default,localization:r.default,style:{}};return vp.defaultProps=i,vp}var zp={},Bp={},w9;function C4(){if(w9)return Bp;w9=1,Object.defineProperty(Bp,"__esModule",{value:!0}),Bp.ALL_COLUMNS=void 0;var e="all_columns";return Bp.ALL_COLUMNS=e,Bp}var _9;function wSe(){if(_9)return zp;_9=1;var e=Hn;Object.defineProperty(zp,"__esModule",{value:!0}),zp.propTypes=void 0;var t=e(Kr),n=C4(),r=t.default.shape({current:t.default.element}),l=t.default.shape({classes:t.default.object,innerRef:r}),i={actions:t.default.arrayOf(t.default.oneOfType([t.default.func,t.default.shape({icon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,r]).isRequired,isFreeAction:t.default.bool,position:t.default.oneOf(["auto","toolbar","toolbarOnSelect","row"]),tooltip:t.default.string,onClick:t.default.func.isRequired,onMouseEnter:t.default.func,onMouseLeave:t.default.func,iconProps:t.default.object,disabled:t.default.bool,hidden:t.default.bool}),t.default.shape({action:t.default.func,position:t.default.oneOf(["auto","toolbar","toolbarOnSelect","row"])})])),renderSummaryRow:t.default.func,columns:t.default.arrayOf(t.default.shape({cellStyle:t.default.oneOfType([t.default.object,t.default.func]),currencySetting:t.default.shape({locale:t.default.string,currencyCode:t.default.string,minimumFractionDigits:t.default.number,maximumFractionDigits:t.default.number}),ariaLabel:t.default.string,ariaSortAsc:t.default.oneOf(["ascending","descending","none","other"]),ariaSortDesc:t.default.oneOf(["ascending","descending","none","other"]),draggable:t.default.bool,customFilterAndSearch:t.default.func,customSort:t.default.func,customExport:t.default.func,defaultFilter:t.default.any,defaultSort:t.default.oneOf(["asc","desc"]),editComponent:t.default.oneOfType([t.default.element,t.default.func]),emptyValue:t.default.oneOfType([t.default.string,t.default.node,t.default.func]),export:t.default.bool,field:t.default.oneOfType([t.default.string,t.default.arrayOf(t.default.string)]),filtering:t.default.bool,filterCellStyle:t.default.object,filterPlaceholder:t.default.string,filterComponent:t.default.oneOfType([t.default.element,t.default.func]),grouping:t.default.bool,headerStyle:t.default.object,hidden:t.default.bool,hideFilterIcon:t.default.bool,initialEditValue:t.default.any,lookup:t.default.object,editable:t.default.oneOfType([t.default.func,t.default.oneOf(["always","onUpdate","onAdd","never"])]),removable:t.default.bool,render:t.default.func,searchable:t.default.bool,sorting:t.default.bool,title:t.default.oneOfType([t.default.element,t.default.string]),type:t.default.oneOf(["string","boolean","numeric","date","datetime","time","currency"])})).isRequired,components:t.default.shape({Action:t.default.oneOfType([t.default.element,t.default.func,l]),Actions:t.default.oneOfType([t.default.element,t.default.func,l]),Body:t.default.oneOfType([t.default.element,t.default.func,l]),Cell:t.default.oneOfType([t.default.element,t.default.func,l]),Container:t.default.oneOfType([t.default.element,t.default.func,l]),EditField:t.default.oneOfType([t.default.element,t.default.func,l]),EditRow:t.default.oneOfType([t.default.element,t.default.func,l]),FilterRow:t.default.oneOfType([t.default.element,t.default.func,l]),Groupbar:t.default.oneOfType([t.default.element,t.default.func,l]),GroupRow:t.default.oneOfType([t.default.element,t.default.func,l]),Header:t.default.oneOfType([t.default.element,t.default.func,l]),OverlayLoading:t.default.oneOfType([t.default.element,t.default.func,l]),OverlayError:t.default.oneOfType([t.default.element,t.default.func,l]),Pagination:t.default.oneOfType([t.default.element,t.default.func,l]),Row:t.default.oneOfType([t.default.element,t.default.func,l]),Toolbar:t.default.oneOfType([t.default.element,t.default.func,l])}),data:t.default.oneOfType([t.default.arrayOf(t.default.object),t.default.func]).isRequired,editable:t.default.shape({isEditable:t.default.func,isBulkEditable:t.default.func,isDeletable:t.default.func,onRowAdd:t.default.func,onRowUpdate:t.default.func,onRowDelete:t.default.func,onRowAddCancelled:t.default.func,onRowUpdateCancelled:t.default.func,isEditHidden:t.default.func,isDeleteHidden:t.default.func}),detailPanel:t.default.oneOfType([t.default.func,t.default.arrayOf(t.default.oneOfType([t.default.func,t.default.shape({disabled:t.default.bool,icon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,r]),openIcon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,r]),tooltip:t.default.string,render:t.default.func.isRequired})]))]),icons:t.default.shape({Add:t.default.oneOfType([t.default.element,t.default.func,r]),Check:t.default.oneOfType([t.default.element,t.default.func,r]),Clear:t.default.oneOfType([t.default.element,t.default.func,r]),Delete:t.default.oneOfType([t.default.element,t.default.func,r]),DetailPanel:t.default.oneOfType([t.default.element,t.default.func,r]),Edit:t.default.oneOfType([t.default.element,t.default.func,r]),Export:t.default.oneOfType([t.default.element,t.default.func,r]),Filter:t.default.oneOfType([t.default.element,t.default.func,r]),FirstPage:t.default.oneOfType([t.default.element,t.default.func,r]),LastPage:t.default.oneOfType([t.default.element,t.default.func,r]),NextPage:t.default.oneOfType([t.default.element,t.default.func,r]),PreviousPage:t.default.oneOfType([t.default.element,t.default.func,r]),Refresh:t.default.oneOfType([t.default.element,t.default.func,r]),ResetSearch:t.default.oneOfType([t.default.element,t.default.func,r]),Search:t.default.oneOfType([t.default.element,t.default.func,r]),SortArrow:t.default.oneOfType([t.default.element,t.default.func,r]),ThirdStateCheck:t.default.oneOfType([t.default.element,t.default.func,r]),ViewColumn:t.default.oneOfType([t.default.element,t.default.func,r])}),isLoading:t.default.bool,title:t.default.oneOfType([t.default.element,t.default.string]),options:t.default.shape({actionsCellStyle:t.default.object,editCellStyle:t.default.object,idSynonym:t.default.string,detailPanelColumnStyle:t.default.object,actionsColumnIndex:t.default.number,addRowPosition:t.default.oneOf(["first","last"]),columnsButton:t.default.bool,defaultExpanded:t.default.oneOfType([t.default.bool,t.default.func]),debounceInterval:t.default.number,detailPanelType:t.default.oneOf(["single","multiple"]),doubleHorizontalScroll:t.default.bool,emptyRowsWhenPaging:t.default.bool,exportAllData:t.default.bool,exportMenu:t.default.arrayOf(t.default.shape({label:t.default.string,exportFunc:t.default.func})),filtering:t.default.bool,filterCellStyle:t.default.object,filterRowStyle:t.default.object,header:t.default.bool,headerSelectionProps:t.default.object,headerStyle:t.default.object,hideFilterIcons:t.default.bool,initialPage:t.default.number,maxBodyHeight:t.default.oneOfType([t.default.number,t.default.string]),minBodyHeight:t.default.oneOfType([t.default.number,t.default.string]),loadingType:t.default.oneOf(["overlay","linear"]),overflowY:t.default.oneOf(["visible","hidden","scroll","auto","initial","inherit","overlay"]),padding:t.default.oneOf(["normal","dense"]),paging:t.default.bool,pageSize:t.default.number,pageSizeOptions:t.default.arrayOf(t.default.number),paginationType:t.default.oneOf(["normal","stepped"]),paginationPosition:t.default.oneOf(["bottom","top","both"]),persistentGroupingsId:t.default.string,rowStyle:t.default.oneOfType([t.default.object,t.default.func]),search:t.default.bool,searchText:t.default.string,searchDebounceDelay:t.default.number,toolbarButtonAlignment:t.default.oneOf(["left","right"]),searchFieldAlignment:t.default.oneOf(["left","right"]),searchFieldStyle:t.default.object,searchAutoFocus:t.default.bool,searchFieldVariant:t.default.oneOf(["standard","filled","outlined"]),selection:t.default.bool,selectionProps:t.default.oneOfType([t.default.object,t.default.func]),showEmptyDataSourceMessage:t.default.bool,showFirstLastPageButtons:t.default.oneOfType([t.default.object,t.default.bool]),showSelectAllCheckbox:t.default.bool,showSelectGroupCheckbox:t.default.bool,showTitle:t.default.bool,showTextRowsSelected:t.default.bool,sorting:t.default.bool,defaultOrderByCollection:t.default.arrayOf(t.default.shape({orderBy:t.default.number,orderDirection:t.default.string,sortOrder:t.default.number,orderIndex:t.default.number})),maxColumnSort:t.default.oneOf([0,1,2,3,4,5,6,7,8,9,10,n.ALL_COLUMNS]),showColumnSortOrder:t.default.bool,sortOrderIndicatorStyle:t.default.object,keepSortDirectionOnColumnSwitch:t.default.bool,clientSorting:t.default.bool,toolbar:t.default.bool,thirdSortClick:t.default.bool,numberOfPagesAround:t.default.oneOf([1,2,3,4,5,6,7,8,9,10])}),localization:t.default.shape({grouping:t.default.shape({groupedBy:t.default.string,placeholder:t.default.string}),pagination:t.default.object,toolbar:t.default.object,header:t.default.object,body:t.default.object}),initialFormData:t.default.object,onSearchChange:t.default.func,onFilterChange:t.default.func,onColumnDragged:t.default.func,onColumnResized:t.default.func,onGroupRemoved:t.default.func,onGroupChange:t.default.func,onSelectionChange:t.default.func,onRowsPerPageChange:t.default.func,onPageChange:t.default.func,onChangeColumnHidden:t.default.func,onOrderChange:t.default.func,onOrderCollectionChange:t.default.func,onRowClick:t.default.func,onRowDoubleClick:t.default.func,onTreeExpandChange:t.default.func,onQueryChange:t.default.func,onBulkEditOpen:t.default.func,tableRef:t.default.any,style:t.default.object,page:t.default.number,totalCount:t.default.number};return zp.propTypes=i,zp}var P3={};const _Se=er(Yue),TSe=er(qde),SSe=er(bde);var O3,T9;function kSe(){if(T9)return O3;T9=1;function e(t,n,r){var l,i,o,a,s;n==null&&(n=100);function u(){var d=Date.now()-a;d=0?l=setTimeout(u,n-d):(l=null,r||(s=t.apply(o,i),o=i=null))}var c=function(){o=this,i=arguments,a=Date.now();var d=r&&!l;return l||(l=setTimeout(u,n)),d&&(s=t.apply(o,i),o=i=null),s};return c.clear=function(){l&&(clearTimeout(l),l=null)},c.flush=function(){l&&(s=t.apply(o,i),o=i=null,clearTimeout(l),l=null)},c}return e.debounce=e,O3=e,O3}var A3={};const CSe=er(Eme);var D3={},Wp={},F0={},S9;function AU(){if(S9)return F0;S9=1,Object.defineProperty(F0,"__esModule",{value:!0}),F0.default=n;let e;const t=new Uint8Array(16);function n(){if(!e&&(e=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!e))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(t)}return F0}var Jc={},qp={},Up={},k9;function MSe(){if(k9)return Up;k9=1,Object.defineProperty(Up,"__esModule",{value:!0}),Up.default=void 0;var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return Up.default=e,Up}var C9;function cx(){if(C9)return qp;C9=1,Object.defineProperty(qp,"__esModule",{value:!0}),qp.default=void 0;var e=t(MSe());function t(l){return l&&l.__esModule?l:{default:l}}function n(l){return typeof l=="string"&&e.default.test(l)}var r=n;return qp.default=r,qp}var M9;function dx(){if(M9)return Jc;M9=1,Object.defineProperty(Jc,"__esModule",{value:!0}),Jc.default=void 0,Jc.unsafeStringify=r;var e=t(cx());function t(o){return o&&o.__esModule?o:{default:o}}const n=[];for(let o=0;o<256;++o)n.push((o+256).toString(16).slice(1));function r(o,a=0){return n[o[a+0]]+n[o[a+1]]+n[o[a+2]]+n[o[a+3]]+"-"+n[o[a+4]]+n[o[a+5]]+"-"+n[o[a+6]]+n[o[a+7]]+"-"+n[o[a+8]]+n[o[a+9]]+"-"+n[o[a+10]]+n[o[a+11]]+n[o[a+12]]+n[o[a+13]]+n[o[a+14]]+n[o[a+15]]}function l(o,a=0){const s=r(o,a);if(!(0,e.default)(s))throw TypeError("Stringified UUID is invalid");return s}var i=l;return Jc.default=i,Jc}var P9;function PSe(){if(P9)return Wp;P9=1,Object.defineProperty(Wp,"__esModule",{value:!0}),Wp.default=void 0;var e=n(AU()),t=dx();function n(u){return u&&u.__esModule?u:{default:u}}let r,l,i=0,o=0;function a(u,c,d){let f=c&&d||0;const p=c||new Array(16);u=u||{};let h=u.node||r,g=u.clockseq!==void 0?u.clockseq:l;if(h==null||g==null){const _=u.random||(u.rng||e.default)();h==null&&(h=r=[_[0]|1,_[1],_[2],_[3],_[4],_[5]]),g==null&&(g=l=(_[6]<<8|_[7])&16383)}let b=u.msecs!==void 0?u.msecs:Date.now(),v=u.nsecs!==void 0?u.nsecs:o+1;const m=b-i+(v-o)/1e4;if(m<0&&u.clockseq===void 0&&(g=g+1&16383),(m<0||b>i)&&u.nsecs===void 0&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");i=b,o=v,l=g,b+=122192928e5;const y=((b&268435455)*1e4+v)%4294967296;p[f++]=y>>>24&255,p[f++]=y>>>16&255,p[f++]=y>>>8&255,p[f++]=y&255;const x=b/4294967296*1e4&268435455;p[f++]=x>>>8&255,p[f++]=x&255,p[f++]=x>>>24&15|16,p[f++]=x>>>16&255,p[f++]=g>>>8|128,p[f++]=g&255;for(let _=0;_<6;++_)p[f+_]=h[_];return c||(0,t.unsafeStringify)(p)}var s=a;return Wp.default=s,Wp}var Hp={},Es={},Vp={},O9;function DU(){if(O9)return Vp;O9=1,Object.defineProperty(Vp,"__esModule",{value:!0}),Vp.default=void 0;var e=t(cx());function t(l){return l&&l.__esModule?l:{default:l}}function n(l){if(!(0,e.default)(l))throw TypeError("Invalid UUID");let i;const o=new Uint8Array(16);return o[0]=(i=parseInt(l.slice(0,8),16))>>>24,o[1]=i>>>16&255,o[2]=i>>>8&255,o[3]=i&255,o[4]=(i=parseInt(l.slice(9,13),16))>>>8,o[5]=i&255,o[6]=(i=parseInt(l.slice(14,18),16))>>>8,o[7]=i&255,o[8]=(i=parseInt(l.slice(19,23),16))>>>8,o[9]=i&255,o[10]=(i=parseInt(l.slice(24,36),16))/1099511627776&255,o[11]=i/4294967296&255,o[12]=i>>>24&255,o[13]=i>>>16&255,o[14]=i>>>8&255,o[15]=i&255,o}var r=n;return Vp.default=r,Vp}var A9;function EU(){if(A9)return Es;A9=1,Object.defineProperty(Es,"__esModule",{value:!0}),Es.URL=Es.DNS=void 0,Es.default=o;var e=dx(),t=n(DU());function n(a){return a&&a.__esModule?a:{default:a}}function r(a){a=unescape(encodeURIComponent(a));const s=[];for(let u=0;u>5]>>>v%32&255,y=parseInt(b.charAt(m>>>4&15)+b.charAt(m&15),16);h.push(y)}return h}function n(p){return(p+64>>>9<<4)+14+1}function r(p,h){p[h>>5]|=128<>5]|=(p[b/8]&255)<>16)+(h>>16)+(g>>16)<<16|g&65535}function o(p,h){return p<>>32-h}function a(p,h,g,b,v,m){return i(o(i(i(h,p),i(b,m)),v),g)}function s(p,h,g,b,v,m,y){return a(h&g|~h&b,p,h,v,m,y)}function u(p,h,g,b,v,m,y){return a(h&b|g&~b,p,h,v,m,y)}function c(p,h,g,b,v,m,y){return a(h^g^b,p,h,v,m,y)}function d(p,h,g,b,v,m,y){return a(g^(h|~b),p,h,v,m,y)}var f=e;return Gp.default=f,Gp}var E9;function ASe(){if(E9)return Hp;E9=1,Object.defineProperty(Hp,"__esModule",{value:!0}),Hp.default=void 0;var e=n(EU()),t=n(OSe());function n(i){return i&&i.__esModule?i:{default:i}}var l=(0,e.default)("v3",48,t.default);return Hp.default=l,Hp}var Yp={},Xp={},R9;function DSe(){if(R9)return Xp;R9=1,Object.defineProperty(Xp,"__esModule",{value:!0}),Xp.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return Xp.default=t,Xp}var L9;function ESe(){if(L9)return Yp;L9=1,Object.defineProperty(Yp,"__esModule",{value:!0}),Yp.default=void 0;var e=r(DSe()),t=r(AU()),n=dx();function r(o){return o&&o.__esModule?o:{default:o}}function l(o,a,s){if(e.default.randomUUID&&!a&&!o)return e.default.randomUUID();o=o||{};const u=o.random||(o.rng||t.default)();if(u[6]=u[6]&15|64,u[8]=u[8]&63|128,a){s=s||0;for(let c=0;c<16;++c)a[s+c]=u[c];return a}return(0,n.unsafeStringify)(u)}var i=l;return Yp.default=i,Yp}var Kp={},Zp={},I9;function RSe(){if(I9)return Zp;I9=1,Object.defineProperty(Zp,"__esModule",{value:!0}),Zp.default=void 0;function e(l,i,o,a){switch(l){case 0:return i&o^~i&a;case 1:return i^o^a;case 2:return i&o^i&a^o&a;case 3:return i^o^a}}function t(l,i){return l<>>32-i}function n(l){const i=[1518500249,1859775393,2400959708,3395469782],o=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof l=="string"){const c=unescape(encodeURIComponent(l));l=[];for(let d=0;d>>0;b=g,g=h,h=t(p,30)>>>0,p=f,f=y}o[0]=o[0]+f>>>0,o[1]=o[1]+p>>>0,o[2]=o[2]+h>>>0,o[3]=o[3]+g>>>0,o[4]=o[4]+b>>>0}return[o[0]>>24&255,o[0]>>16&255,o[0]>>8&255,o[0]&255,o[1]>>24&255,o[1]>>16&255,o[1]>>8&255,o[1]&255,o[2]>>24&255,o[2]>>16&255,o[2]>>8&255,o[2]&255,o[3]>>24&255,o[3]>>16&255,o[3]>>8&255,o[3]&255,o[4]>>24&255,o[4]>>16&255,o[4]>>8&255,o[4]&255]}var r=n;return Zp.default=r,Zp}var $9;function LSe(){if($9)return Kp;$9=1,Object.defineProperty(Kp,"__esModule",{value:!0}),Kp.default=void 0;var e=n(EU()),t=n(RSe());function n(i){return i&&i.__esModule?i:{default:i}}var l=(0,e.default)("v5",80,t.default);return Kp.default=l,Kp}var Qp={},N9;function ISe(){if(N9)return Qp;N9=1,Object.defineProperty(Qp,"__esModule",{value:!0}),Qp.default=void 0;var e="00000000-0000-0000-0000-000000000000";return Qp.default=e,Qp}var Jp={},F9;function $Se(){if(F9)return Jp;F9=1,Object.defineProperty(Jp,"__esModule",{value:!0}),Jp.default=void 0;var e=t(cx());function t(l){return l&&l.__esModule?l:{default:l}}function n(l){if(!(0,e.default)(l))throw TypeError("Invalid UUID");return parseInt(l.slice(14,15),16)}var r=n;return Jp.default=r,Jp}var j9;function NSe(){return j9||(j9=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return o.default}});var t=c(PSe()),n=c(ASe()),r=c(ESe()),l=c(LSe()),i=c(ISe()),o=c($Se()),a=c(cx()),s=c(dx()),u=c(DU());function c(d){return d&&d.__esModule?d:{default:d}}}(D3)),D3}var z9;function FSe(){return z9||(z9=1,function(e){var t=Hn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Cf()),r=t(Rb()),l=t(Lb()),i=t(za()),o=t(CSe),a=NSe(),s=ex(),u=bs(),c=C4();function d(v,m){var y=Object.keys(v);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(v);m&&(x=x.filter(function(_){return Object.getOwnPropertyDescriptor(v,_).enumerable})),y.push.apply(y,x)}return y}function f(v){for(var m=1;m=v.length?{done:!0}:{done:!1,value:v[x++]}},e:function(T){throw T},f:_}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w=!0,S=!1,k;return{s:function(){y=y.call(v)},n:function(){var T=y.next();return w=T.done,T},e:function(T){S=!0,k=T},f:function(){try{!w&&y.return!=null&&y.return()}finally{if(S)throw k}}}}function h(v,m){if(v){if(typeof v=="string")return g(v,m);var y=Object.prototype.toString.call(v).slice(8,-1);if(y==="Object"&&v.constructor&&(y=v.constructor.name),y==="Map"||y==="Set")return Array.from(v);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return g(v,m)}}function g(v,m){(m==null||m>v.length)&&(m=v.length);for(var y=0,x=new Array(m);y0?k(T.groups):T.data.forEach(function(M){M.tableData.checked!==y&&(M.tableData.checked=M.tableData.disabled?!1:y,m.selectedCount=m.selectedCount+(y?1:-1))})})};S([_])}),(0,i.default)(this,"getOrderByCollection",function(){return m.orderByCollection.filter(function(y){return y.sortOrder})}),(0,i.default)(this,"sortOrderCollection",function(y){return y.sort(function(x,_){return x.sortOrder?_.sortOrder?x.sortOrder-_.sortOrder:-1:1})}),(0,i.default)(this,"startCellEditable",function(y,x){y.tableData.editCellList=[].concat((0,n.default)(y.tableData.editCellList||[]),[x])}),(0,i.default)(this,"finishCellEditable",function(y,x){if(y.tableData.editCellList){var _=y.tableData.editCellList.findIndex(function(w){return w.tableData.id.toString()===x.tableData.id.toString()});_!==-1&&y.tableData.editCellList.splice(_,1)}}),(0,i.default)(this,"clearBulkEditChangedRows",function(){m.bulkEditChangedRows={}}),(0,i.default)(this,"onBulkEditRowChanged",function(y,x){m.bulkEditChangedRows[y.tableData.id]={oldData:y,newData:x}}),(0,i.default)(this,"expandTreeForNodes",function(y){y.forEach(function(x){for(var _=x;m.parentFunc(_,m.data);){var w=m.parentFunc(_,m.data);w&&(w.tableData.isTreeExpanded=!0),_=w}})}),(0,i.default)(this,"findDataByPath",function(y,x){if(m.isDataType("tree")){var _=x.reduce(function(k,C){return k&&k.tableData&&k.tableData.childRows&&k.tableData.childRows.find(function(T){return T&&T.tableData.uuid===C})},{tableData:{childRows:y}});return _}else{var w={groups:y},S=x.reduce(function(k,C){return k.groups.length>0?k.groups[C]:k.data?k.data[C]||k.data.find(function(T){var M;return((M=T.tableData)===null||M===void 0?void 0:M.uuid)===C}):void 0},w);return S}}),(0,i.default)(this,"getFieldValue",function(y,x){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,w=typeof y[x.field]<"u"?y[x.field]:(0,s.selectFromObject)(y,x.field);return x.lookup&&_&&(w=x.lookup[w]),w}),(0,i.default)(this,"getRenderState",function(){return m.filtered===!1&&m.filterData(),m.searched===!1&&m.searchData(),m.grouped===!1&&m.isDataType("group")&&m.groupData(),m.treefied===!1&&m.isDataType("tree")&&m.treefyData(),m.sorted===!1&&m.sortData(),m.paged===!1&&m.pageData(),{columns:m.columns,currentPage:m.currentPage,data:m.sortedData,lastEditingRow:m.lastEditingRow,orderByCollection:m.orderByCollection,maxColumnSort:m.maxColumnSort,originalData:(0,n.default)(m.data),pageSize:m.pageSize,renderData:m.pagedData,searchText:m.searchText,selectedCount:m.selectedCount,treefiedDataLength:m.treefiedDataLength,treeDataMaxLevel:m.treeDataMaxLevel,groupedDataLength:m.groupedDataLength,tableStyleWidth:m.tableStyleWidth}}),(0,i.default)(this,"filterData",function(){m.searched=m.grouped=m.treefied=m.sorted=m.paged=!1,m.filteredData=(0,n.default)(m.data),m.applyFilters&&m.columns.filter(function(y){return y.tableData.filterValue!==void 0}).forEach(function(y){var x=y.lookup,_=y.type,w=y.tableData;y.customFilterAndSearch?m.filteredData=m.filteredData.filter(function(S){return!!y.customFilterAndSearch(w.filterValue,S,y)}):x?m.filteredData=m.filteredData.filter(function(S){var k=m.getFieldValue(S,y,!1);return!w.filterValue||w.filterValue.length===0||w.filterValue.indexOf(k!=null&&k.toString())>-1}):_==="numeric"?m.filteredData=m.filteredData.filter(function(S){var k=m.getFieldValue(S,y);return k+""===w.filterValue}):_==="boolean"&&w.filterValue?m.filteredData=m.filteredData.filter(function(S){var k=m.getFieldValue(S,y);return k&&w.filterValue==="checked"||!k&&w.filterValue==="unchecked"}):["date","datetime"].includes(_)?m.filteredData=m.filteredData.filter(function(S){var k=m.getFieldValue(S,y),C=k?new Date(k):null;if(C&&C.toString()!=="Invalid Date"){var T=w.filterValue,M="",O="";return _==="date"?(M=(0,o.default)(C,"MM/dd/yyyy"),O=(0,o.default)(T,"MM/dd/yyyy")):_==="datetime"&&(M=(0,o.default)(C,"MM/dd/yyyy - HH:mm"),O=(0,o.default)(T,"MM/dd/yyyy - HH:mm")),M===O}return!0}):_==="time"?m.filteredData=m.filteredData.filter(function(S){var k=m.getFieldValue(S,y),C=k||null;if(C){var T=w.filterValue,M=(0,o.default)(T,"HH:mm");return C===M}return!0}):m.filteredData=m.filteredData.filter(function(S){var k=m.getFieldValue(S,y);return k!=null&&k.toString().toUpperCase().includes(w.filterValue.toUpperCase())})}),m.filtered=!0}),(0,i.default)(this,"searchData",function(){if(m.grouped=m.treefied=m.sorted=m.paged=!1,m.searchedData=(0,n.default)(m.filteredData),m.searchText&&m.applySearch){var y=m.searchText.trim();m.searchedData=m.searchedData.filter(function(x){return m.columns.filter(function(_){return _.searchable===void 0?!_.hidden:_.searchable}).some(function(_){if(_.customFilterAndSearch)return!!_.customFilterAndSearch(y,x,_);if(_.field){var w=m.getFieldValue(x,_);if(w)return w.toString().toUpperCase().includes(y.toUpperCase())}return!1})})}m.searched=!0}),(0,i.default)(this,"clearCriteria",function(){m.changeOrder(-1,""),m.changeSearchText("");var y=p(m.columns),x;try{for(y.s();!(x=y.n()).done;){var _=x.value;m.changeFilterValue(_.tableData.id,"")}}catch(w){y.e(w)}finally{y.f()}m.changeSearchText(""),m.changePaging(0)})}return(0,l.default)(v,[{key:"setData",value:function(y,x){var _=this;this.selectedCount=0;var w={};this.data.length!==0&&this.data[0][x]!==void 0&&(w=this.data.reduce(function(S,k){return S[k.tableData.id]=k.tableData,S},{})),this.data=y.map(function(S,k){var C=w[S[x]]||{},T=f(f({index:k,id:S[x]||k,uuid:S.uuid||(0,a.v4)()},C),S.tableData);T.checked&&_.selectedCount++;var M=f(f({},S),{},{tableData:T});return _.lastDetailPanelRow&&_.lastDetailPanelRow.tableData===C&&(_.lastDetailPanelRow=M),_.lastEditingRow&&_.lastEditingRow.tableData===C&&(_.lastEditingRow=M),M}),this.filtered=!1}},{key:"setTableWidth",value:function(y){this.tableWidth=y}},{key:"setColumns",value:function(y){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},w=0,S=[];this.columns=y.map(function(T,M){var O,D=(0,u.widthToNumber)(T.width),P=typeof T.width=="number"?T.width+"px":T.width;P&&(isNaN(D)?S.push(P):w+=D);var E=x.find(function(F){var j=F.id;return j===M}),I=(O=_[T.field])!==null&&O!==void 0?O:{},A=f(f(f(f({columnOrder:M,filterValue:T.defaultFilter,groupOrder:T.defaultGroupOrder,groupSort:T.defaultGroupSort||"asc",width:P,initialWidth:P,widthPx:isNaN(D)?void 0:D,additionalWidth:0},I),E?E.tableData:{}),T.tableData),{},{id:M});return T.tableData=A,T});var k=this.columns.filter(function(T){return T.hidden||T.columnDef&&T.columnDef.tableData&&T.columnDef.tableData.width?!1:T.width===void 0}),C=(w!==0?"".concat(w,"px"):"0px")+(S.length>0?" - "+S.join(" - "):"");k.forEach(function(T){T.tableData.width=T.tableData.initialWidth="calc((100% - ".concat(C,") / ").concat(k.length,")")}),this.tableStyleWidth=this.tableWidth==="full"||k.length>0||S.length>0?"100%":w}},{key:"setDefaultExpanded",value:function(y){this.defaultExpanded=y}},{key:"setClientSorting",value:function(y){this.clientSorting=!!y}},{key:"setMaxColumnSort",value:function(y){var x=this.columns.filter(function(_){return _.sorting!==!1}).length;y===c.ALL_COLUMNS?this.maxColumnSort=x:this.maxColumnSort=Math.min(y,x)}},{key:"setOrderByCollection",value:function(){var y=this.getOrderByCollection(),x=this.columns.map(function(_){var w=_.tableData.id,S=y.find(function(k){return k.orderBy===w});return S?f({},S):{orderBy:_.tableData.id,sortOrder:void 0,orderDirection:""}});x=this.sortOrderCollection(x),this.orderByCollection=(0,n.default)(x)}},{key:"setDefaultOrderByCollection",value:function(y){this.defaultOrderByCollection=(0,n.default)(y)}},{key:"getDefaultOrderByCollection",value:function(){return this.defaultOrderByCollection}},{key:"changeApplySearch",value:function(y){this.applySearch=y,this.searched=!1}},{key:"changeApplyFilters",value:function(y){this.applyFilters=y,this.filtered=!1}},{key:"changeApplySort",value:function(y){this.applySort=y,this.sorted=!1}},{key:"changePaging",value:function(y){this.paging=y,this.paged=!1}},{key:"changeCurrentPage",value:function(y){this.currentPage=y,this.paged=!1}},{key:"changePageSize",value:function(y){this.pageSize=y,this.paged=!1}},{key:"changeParentFunc",value:function(y){this.parentFunc=y}},{key:"changeFilterValue",value:function(y,x){var _=this.columns.find(function(w){return w.tableData.id===y});_.tableData.filterValue=x,this.filtered=!1}},{key:"changeRowSelected",value:function(y,x){var _=this,w=this.findDataByPath(this.sortedData,x);w.tableData.checked=y,this.selectedCount=this.selectedCount+(y?1:-1);var S=function k(C){C.tableData.childRows&&C.tableData.childRows.forEach(function(T){T.tableData.checked!==y&&(T.tableData.checked=y,_.selectedCount=_.selectedCount+(y?1:-1)),k(T)})};S(w),this.filtered=!1}},{key:"changeDetailPanelVisibility",value:function(y,x){var _=this.findDataByPath(this.sortedData,y);(_.tableData.showDetailPanel||"").toString()===x.toString()?_.tableData.showDetailPanel=void 0:_.tableData.showDetailPanel=x,this.detailPanelType==="single"&&this.lastDetailPanelRow&&this.lastDetailPanelRow!==_&&(this.lastDetailPanelRow.tableData.showDetailPanel=void 0),this.lastDetailPanelRow=_}},{key:"changeGroupExpand",value:function(y){var x=this.findDataByPath(this.sortedData,y);x.isExpanded=!x.isExpanded}},{key:"changeSearchText",value:function(y){this.searchText=y,this.searched=!1,this.currentPage=0}},{key:"changeSearchDebounce",value:function(y){this.searchDebounceDelay=y}},{key:"changeRowEditing",value:function(y,x){y?(y.tableData.editing=x,this.lastEditingRow&&this.lastEditingRow!==y&&(this.lastEditingRow.tableData.editing=void 0),x?this.lastEditingRow=y:this.lastEditingRow=void 0):this.lastEditingRow&&(this.lastEditingRow.tableData.editing=void 0,this.lastEditingRow=void 0)}},{key:"changeBulkEditOpen",value:function(y){this.bulkEditOpen=y}},{key:"changeAllSelected",value:function(y,x){var _=0,w=function(T){var M=x instanceof Function?x(T):{disabled:!1};return T.tableData.disabled||M.disabled?!1:y};if(this.isDataType("group")){var S=function C(T){T.forEach(function(M){M.groups.length>0?C(M.groups):M.data.forEach(function(O){O.tableData.checked=w(O),_++})})};S(this.groupedData)}else{var k=function C(T){T.tableData.childRows&&T.tableData.childRows.forEach(function(M){M.tableData.checked=w(T),C(M)})};this.searchedData.forEach(function(C){C.tableData.checked=w(C),k(C)}),_=this.searchedData.length}this.selectedCount=y?_:0}},{key:"changeColumnOrder",value:function(y,x,_){var w=[],S=this.getOrderByCollection();S.length===this.maxColumnSort&&!_?(this.orderByCollection[0].orderDirection="",this.orderByCollection[0].sortOrder=void 0,w=this.orderByCollection.map(function(k){return k.sortOrder?k.sortOrder-=1:k.orderBy===y&&x&&(k.sortOrder=S.length,k.orderDirection=x),k})):w=this.orderByCollection.map(function(k){return k.orderBy===y&&x?(k.orderDirection=x,k.sortOrder=_||S.length+1):!x&&k.orderBy===y?(k.orderDirection=x,k.sortOrder=void 0):!x&&_-1}).sort(function(q,Y){return q.tableData.groupOrder-Y.tableData.groupOrder});if(y.destination.droppableId==="groups"&&y.source.droppableId==="groups"){x=Math.min(y.destination.index,y.source.index);var w=Math.max(y.destination.index,y.source.index);if(_=_.slice(x,w+1),y.destination.index-1})&&(x="group"),y===x}},{key:"sort",value:function(y,x,_){if(_==="numeric")return y-x;if(y!==x){if(!y)return-1;if(!x)return 1}return yx?1:0}},{key:"sortList",value:function(y){if(!this.clientSorting)return y;var x=this.orderByCollection.map(function(C){return C.orderBy}),_=new Map;this.columns.forEach(function(C){var T=C.tableData.id;x.includes(T)&&_.set(T,C)});var w=this.sort,S=this.getFieldValue,k=this.orderByCollection;return y.sort(function C(T,M){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_,D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:k,P=D[0],E=P.orderBy,I=P.orderDirection,A=O.get(E),F=0;A.customSort?I==="desc"?F=A.customSort(M,T,"row",I):F=A.customSort(T,M,"row",I):(F=w(S(T,A),S(M,A),A.type),F=I.toLowerCase()==="desc"?F*-1:F);var j=F===0&&D.filter(function(B){return B.sortOrder!==void 0}).length!==1;return j?C(T,M,O,D.slice(1)):F})}},{key:"groupData",value:function(){var y=this;this.sorted=this.paged=!1,this.groupedDataLength=0;var x=(0,n.default)(this.searchedData),_=this.columns.filter(function(S){return S.tableData.groupOrder>-1}).sort(function(S,k){return S.tableData.groupOrder-k.tableData.groupOrder}),w=x.reduce(function(S,k){var C=S;return C=_.reduce(function(T,M){var O=k[M.field]||(0,s.selectFromObject)(k,M.field),D;if(T.groupsIndex[O]!==void 0&&(D=T.groups[T.groupsIndex[O]]),!D){var P=[].concat((0,n.default)(T.path||[]),[O]),E=y.findGroupByGroupPath(y.groupedData,P)||{isExpanded:typeof y.defaultExpanded=="boolean"?y.defaultExpanded:!1};D={value:O,groups:[],groupsIndex:{},data:[],isExpanded:E.isExpanded,path:P},T.groups.push(D),T.groupsIndex[O]=T.groups.length-1}return D},C),C.data.push(k),y.groupedDataLength++,S},{groups:[],groupsIndex:{}});this.groupedData=w.groups,this.grouped=!0,this.rootGroupsIndex=w.groupsIndex}},{key:"treefyData",value:function(){var y=this;this.sorted=this.paged=!1,this.data.forEach(function(k){return k.tableData.childRows=null}),this.treefiedData=[],this.treefiedDataLength=0,this.treeDataMaxLevel=0,(this.searchText||this.columns.some(function(k){return k.tableData.filterValue}))&&(this.data.forEach(function(k){k.tableData.isTreeExpanded=!1}),this.expandTreeForNodes(this.searchedData));var x=function k(C){C.tableData.markedForTreeRemove=!1;var T=y.parentFunc(C,y.data);T?(T.tableData.childRows=T.tableData.childRows||[],T.tableData.childRows.includes(C)||(T.tableData.childRows.push(C),y.treefiedDataLength++),k(T),C.tableData.path=[].concat((0,n.default)(T.tableData.path),[C.tableData.uuid]),y.treeDataMaxLevel=Math.max(y.treeDataMaxLevel,C.tableData.path.length)):y.treefiedData.includes(C)||(y.treefiedData.push(C),y.treefiedDataLength++,C.tableData.path=[C.tableData.uuid])};this.data.forEach(function(k){x(k)});var _=function(C){var T=y.treefiedData;C.tableData.path.forEach(function(M){T.tableData&&T.tableData.childRows&&(T=T.tableData.childRows),Array.isArray(T)&&(T=T.find(function(O){return O.tableData.uuid===M}))}),T.tableData.markedForTreeRemove=!0},w=function k(C){C.tableData.childRows&&C.tableData.childRows.forEach(function(T){k(T)}),C.tableData.markedForTreeRemove=!1};this.data.forEach(function(k){if(!y.searchText&&!y.columns.some(function(M){return M.tableData.filterValue})&&k.tableData.isTreeExpanded===void 0){var C=typeof y.defaultExpanded=="boolean"?y.defaultExpanded:y.defaultExpanded(k);k.tableData.isTreeExpanded=C}var T=k.tableData.isTreeExpanded;!T&&y.searchedData.indexOf(k)<0&&_(k)}),this.data.forEach(function(k){y.searchedData.indexOf(k)>-1&&w(k)});var S=function k(C){for(var T=C.length-1;T>=0;T--){var M=C[T];M.tableData.childRows&&k(M.tableData.childRows),M.tableData.markedForTreeRemove&&C.splice(T,1)}};S(this.treefiedData),this.treefiedDataLength=this.treefiedData.length,this.treefied=!0}},{key:"sortData",value:function(){var y=this;if(this.paged=!1,this.isDataType("group")){this.sortedData=(0,n.default)(this.groupedData);var x=this.columns.filter(function(C){return C.tableData.groupOrder>-1}).sort(function(C,T){return C.tableData.groupOrder-T.tableData.groupOrder}),_=function(T,M){return M.customSort?T.sort(M.tableData.groupSort==="desc"?function(O,D){return M.customSort(D.value,O.value,"group",M.tableData.groupSort)}:function(O,D){return M.customSort(O.value,D.value,"group",M.tableData.groupSort)}):T.sort(M.tableData.groupSort==="desc"?function(O,D){return y.sort(D.value,O.value,M.type)}:function(O,D){return y.sort(O.value,D.value,M.type)})};this.sortedData=_(this.sortedData,x[0]);var w=function(T){return T.reduce(function(M,O){return M[O.value]=T.findIndex(function(D){return D.value===O.value}),M},{})},S=function C(T,M){T.forEach(function(O){if(O.groups.length>0){var D=x[M];O.groups=_(O.groups,D),O.groupsIndex=w(O.groups),C(O.groups,M+1)}else y.maxColumnSort>0&&y.getOrderByCollection().length>0?O.data=y.sortList(O.data):y.maxColumnSort>0&&(O.data=O.data.sort(function(P,E){return y.data.findIndex(function(I){return I.tableData.id===P.tableData.id})-y.data.findIndex(function(I){return I.tableData.id===E.tableData.id})}))})};S(this.sortedData,1)}else if(this.isDataType("tree")){if(this.sortedData=(0,n.default)(this.treefiedData),this.maxColumnSort>0&&this.getOrderByCollection().length>0){this.sortedData=this.sortList(this.sortedData);var k=function C(T){T.forEach(function(M){M.tableData.childRows&&(M.tableData.childRows=y.sortList(M.tableData.childRows),C(M.tableData.childRows))})};k(this.sortedData)}}else this.isDataType("normal")&&(this.sortedData=(0,n.default)(this.searchedData),this.maxColumnSort>0&&this.getOrderByCollection().length>0&&this.applySort&&(this.sortedData=this.sortList(this.sortedData)));this.sorted=!0}},{key:"pageData",value:function(){if(this.pagedData=(0,n.default)(this.sortedData),this.paging){var y=this.currentPage*this.pageSize,x=y+this.pageSize;this.pagedData=this.pagedData.slice(y,x)}this.paged=!0}}]),v}();e.default=b}(A3)),A3}var B9;function jSe(){return B9||(B9=1,function(e){var t=Hn,n=Pa();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(_Se),l=t(TSe),i=t(ms),o=t(jr()),a=t(kc),s=t(Cf()),u=t(SSe),c=t(Pa()),d=t(vu()),f=t(Rb()),p=t(Lb()),h=t(w5()),g=t(x5()),b=t(_5()),v=t(T5()),m=t(za()),y=t(ge),x=kSe(),_=t(zB()),w=M(bs()),S=k4,k=t(FSe()),C=ux();function T(j){if(typeof WeakMap!="function")return null;var B=new WeakMap,z=new WeakMap;return(T=function(R){return R?z:B})(j)}function M(j,B){if(j&&j.__esModule)return j;if(j===null||n(j)!=="object"&&typeof j!="function")return{default:j};var z=T(B);if(z&&z.has(j))return z.get(j);var N={},R=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var q in j)if(q!=="default"&&Object.prototype.hasOwnProperty.call(j,q)){var Y=R?Object.getOwnPropertyDescriptor(j,q):null;Y&&(Y.get||Y.set)?Object.defineProperty(N,q,Y):N[q]=j[q]}return N.default=j,z&&z.set(j,N),N}function O(j,B){var z=Object.keys(j);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(j);B&&(N=N.filter(function(R){return Object.getOwnPropertyDescriptor(j,R).enumerable})),z.push.apply(z,N)}return z}function D(j){for(var B=1;B"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var I=function(j){(0,g.default)(z,j);var B=P(z);function z(N){var R;(0,f.default)(this,z),R=B.call(this,N),(0,m.default)((0,h.default)(R),"dataManager",new k.default),(0,m.default)((0,h.default)(R),"checkedForFunctions",!1),(0,m.default)((0,h.default)(R),"clearCriteria",function(){R.dataManager.clearCriteria(),R.setState(R.dataManager.getRenderState())}),(0,m.default)((0,h.default)(R),"isRemoteData",function(L){return!Array.isArray((L||R.props).data)}),(0,m.default)((0,h.default)(R),"onAllSelected",function(L){R.dataManager.changeAllSelected(L,R.props.options.selectionProps),R.setState(R.dataManager.getRenderState(),function(){return R.onSelectionChange()})}),(0,m.default)((0,h.default)(R),"onGroupSelected",function(L,W){R.dataManager.changeGroupSelected(L,W),R.setState(R.dataManager.getRenderState(),function(){return R.onSelectionChange()})}),(0,m.default)((0,h.default)(R),"onChangeColumnHidden",function(L,W){R.dataManager.changeColumnHidden(L,W),R.setState(R.dataManager.getRenderState(),function(){R.props.onChangeColumnHidden&&R.props.onChangeColumnHidden(L,W)})}),(0,m.default)((0,h.default)(R),"onChangeGroupOrder",function(L){R.dataManager.changeGroupOrder(L.tableData.id),R.setState(R.dataManager.getRenderState())}),(0,m.default)((0,h.default)(R),"onChangeOrder",function(L,W,H){R.dataManager.changeColumnOrder(L,W,H);var G=R.dataManager.getOrderByCollection();if(R.isRemoteData()){var te=D({},R.state.query);te.page=0,te.orderBy=R.state.columns.find(function(ee){return ee.tableData.id===L}),te.orderDirection=W,console.warn("Properties orderBy and orderDirection had been deprecated when remote data, please start using orderByCollection instead"),te.orderByCollection=G,R.onQueryChange(te,function(){R.props.onOrderChange&&R.props.onOrderChange(L,W),R.props.onOrderCollectionChange&&R.props.onOrderCollectionChange(G)})}else R.setState(R.dataManager.getRenderState(),function(){R.props.onOrderChange&&R.props.onOrderChange(L,W),R.props.onOrderCollectionChange&&R.props.onOrderCollectionChange(G)})}),(0,m.default)((0,h.default)(R),"onPageChange",function(L,W){if(R.isRemoteData()){var H=D({},R.state.query);H.page=W,R.onQueryChange(H,function(){R.props.onPageChange&&R.props.onPageChange(W,H.pageSize)})}else R.dataManager.changeCurrentPage(W),R.setState(R.dataManager.getRenderState(),function(){R.props.onPageChange&&R.props.onPageChange(W,R.state.pageSize)})}),(0,m.default)((0,h.default)(R),"onRowsPerPageChange",function(L){var W=L.target.value;R.dataManager.changePageSize(W);var H=function(){R.props.onPageChange&&R.props.onPageChange(0,W),R.props.onRowsPerPageChange&&R.props.onRowsPerPageChange(W)};if(R.isRemoteData()){var G=D({},R.state.query);G.pageSize=L.target.value,G.page=0,R.onQueryChange(G,H)}else R.dataManager.changeCurrentPage(0),R.setState(R.dataManager.getRenderState(),H)}),(0,m.default)((0,h.default)(R),"onDragEnd",function(L){!L||!L.source||!L.destination||(R.dataManager.changeByDrag(L),R.setState(R.dataManager.getRenderState(),function(){R.props.onColumnDragged&&L.destination.droppableId==="headers"&&L.source.droppableId==="headers"&&R.props.onColumnDragged(L.source.index,L.destination.index)}))}),(0,m.default)((0,h.default)(R),"onGroupExpandChanged",function(L){R.dataManager.changeGroupExpand(L),R.setState(R.dataManager.getRenderState())}),(0,m.default)((0,h.default)(R),"onGroupRemoved",function(L,W){var H={combine:null,destination:{droppableId:"headers",index:0},draggableId:L.tableData.id,mode:"FLUID",reason:"DROP",source:{index:W,droppableId:"groups"},type:"DEFAULT"};R.dataManager.changeByDrag(H),R.setState(R.dataManager.getRenderState(),function(){R.props.onGroupRemoved&&R.props.onGroupRemoved(L,W)})}),(0,m.default)((0,h.default)(R),"onEditingApproved",function(L,W,H){L==="add"&&R.props.editable&&R.props.editable.onRowAdd?R.setState({isLoading:!0},function(){R.props.editable.onRowAdd(W).then(function(G){R.setState({isLoading:!1,showAddRow:!1},function(){R.isRemoteData()&&R.onQueryChange(R.state.query)})}).catch(function(G){var te={message:G,errorCause:"add"};R.setState({isLoading:!1,errorState:te})})}):L==="update"&&R.props.editable&&R.props.editable.onRowUpdate?R.setState({isLoading:!0},function(){R.props.editable.onRowUpdate(W,H).then(function(G){R.dataManager.changeRowEditing(H),R.setState(D({isLoading:!1},R.dataManager.getRenderState()),function(){R.isRemoteData()&&R.onQueryChange(R.state.query)})}).catch(function(G){var te={message:G,errorCause:"update"};R.setState({isLoading:!1,errorState:te})})}):L==="delete"&&R.props.editable&&R.props.editable.onRowDelete?R.setState({isLoading:!0},function(){R.props.editable.onRowDelete(Object.entries(H).reduce(function(G,te){var ee=(0,d.default)(te,2),U=ee[0],Q=ee[1];return U!=="tableData"&&(G[U]=Q),G},{})).then(function(G){R.dataManager.changeRowEditing(H),R.setState(D({isLoading:!1},R.dataManager.getRenderState()),function(){R.isRemoteData()&&R.onQueryChange(R.state.query)})}).catch(function(G){var te={message:G,errorCause:"delete"};R.setState({isLoading:!1,errorState:te})})}):L==="bulk"&&R.props.editable&&R.props.editable.onBulkUpdate&&R.setState({isLoading:!0},function(){R.props.editable.onBulkUpdate(R.dataManager.bulkEditChangedRows).then(function(G){R.dataManager.changeBulkEditOpen(!1),R.props.onBulkEditOpen&&R.props.onBulkEditOpen(!1),R.dataManager.clearBulkEditChangedRows(),R.setState(D({isLoading:!1},R.dataManager.getRenderState()),function(){R.isRemoteData()&&R.onQueryChange(R.state.query)})}).catch(function(G){var te={message:G,errorCause:"bulk edit"};R.setState({isLoading:!1,errorState:te})})})}),(0,m.default)((0,h.default)(R),"onEditingCanceled",function(L,W){L==="add"?(R.props.editable.onRowAddCancelled&&R.props.editable.onRowAddCancelled(),R.setState({showAddRow:!1})):L==="update"?(R.props.editable.onRowUpdateCancelled&&R.props.editable.onRowUpdateCancelled(),R.dataManager.changeRowEditing(W),R.setState(R.dataManager.getRenderState())):L==="delete"&&(R.dataManager.changeRowEditing(W),R.setState(R.dataManager.getRenderState()))}),(0,m.default)((0,h.default)(R),"retry",function(){R.onQueryChange(R.state.query)}),(0,m.default)((0,h.default)(R),"onQueryChange",function(L,W){L=D(D(D({},R.state.query),L),{},{error:R.state.errorState}),R.setState({isLoading:!0,errorState:void 0},function(){R.props.data(L).then(function(H){L.totalCount=H.totalCount,L.page=H.page;var G=D(D({},L),{},{totalCount:H.totalCount,page:H.page});R.dataManager.setData(H.data,R.props.options.idSynonym),R.setState(D(D({isLoading:!1,errorState:!1},R.dataManager.getRenderState()),{},{query:G}),function(){W&&W()})}).catch(function(H){var G={message:(0,c.default)(H)==="object"?H.message:H!==void 0?H:R.props.localization.error,errorCause:"query"};R.setState(D({isLoading:!1,errorState:G},R.dataManager.getRenderState()))})})}),(0,m.default)((0,h.default)(R),"onRowSelected",function(L,W,H){R.dataManager.changeRowSelected(L.target.checked,W),R.setState(R.dataManager.getRenderState(),function(){return R.onSelectionChange(H)})}),(0,m.default)((0,h.default)(R),"onSelectionChange",function(L){if(R.props.onSelectionChange){var W=[],H=function(te){te.forEach(function(ee){ee.tableData.checked&&W.push(ee)})};H(R.state.originalData),R.props.onSelectionChange(W,L)}}),(0,m.default)((0,h.default)(R),"onSearchChangeDebounce",(0,x.debounce)(function(L){if(R.isRemoteData()){var W=D({},R.state.query);W.page=0,W.search=L,R.onQueryChange(W,function(){R.props.onSearchChange&&R.props.onSearchChange(L)})}else R.setState(R.dataManager.getRenderState(),function(){R.props.onSearchChange&&R.props.onSearchChange(L)})},R.props.options.debounceInterval)),(0,m.default)((0,h.default)(R),"onFilterChange",function(L,W){R.dataManager.changeFilterValue(L,W),R.setState({},R.onFilterChangeDebounce)}),(0,m.default)((0,h.default)(R),"onFilterChangeDebounce",(0,x.debounce)(function(){if(R.isRemoteData()){var L=D({},R.state.query);L.page=0,L.filters=R.state.columns.filter(function(W){return W.tableData.filterValue}).map(function(W){return{column:W,operator:"=",value:W.tableData.filterValue}}),R.onQueryChange(L,function(){R.props.onFilterChange&&R.props.onFilterChange(L.filters)})}else R.setState(R.dataManager.getRenderState(),function(){if(R.props.onFilterChange){var W=R.state.columns.filter(function(H){return H.tableData.filterValue}).map(function(H){return{column:H,operator:"=",value:H.tableData.filterValue}});R.props.onFilterChange(W)}})},R.props.options.debounceInterval)),(0,m.default)((0,h.default)(R),"onTreeExpandChanged",function(L,W){R.dataManager.changeTreeExpand(L),R.setState(R.dataManager.getRenderState(),function(){R.props.onTreeExpandChange&&R.props.onTreeExpandChange(W,W.tableData.isTreeExpanded)})}),(0,m.default)((0,h.default)(R),"onToggleDetailPanel",function(L,W){R.dataManager.changeDetailPanelVisibility(L,W),R.setState(R.dataManager.getRenderState())}),(0,m.default)((0,h.default)(R),"onCellEditStarted",function(L,W){R.dataManager.startCellEditable(L,W),R.setState(R.dataManager.getRenderState())}),(0,m.default)((0,h.default)(R),"onCellEditFinished",function(L,W){R.dataManager.finishCellEditable(L,W),R.setState(R.dataManager.getRenderState())}),(0,m.default)((0,h.default)(R),"onEditRowDataChanged",function(L,W){R.dataManager.setEditRowData(L,W),R.setState(R.dataManager.getRenderState())}),(0,m.default)((0,h.default)(R),"onColumnResized",function(L,W,H,G){var te=function(Q){return D(D(D({field:Q.field,width:Q.tableData.width,widthPx:Q.tableData.widthPx},Q.id&&{id:Q.id}),Q.minWidth&&{minWidth:Q.minWidth}),Q.maxWidth&&{maxWidth:Q.maxWidth})},ee=R.dataManager.onColumnResized(L,W,H,G);R.setState(R.dataManager.getRenderState(),function(){W===0&&R.props.onColumnResized&&ee.length>0&&R.props.onColumnResized(ee.map(function(U){return te(U)}),R.state.columns.map(function(U){return te(U)}))})}),(0,m.default)((0,h.default)(R),"renderTable",function(L){var W;return y.default.createElement(u.default,{sx:L.sx,style:D(D({},L.options.tableWidth==="variable"&&{width:R.state.tableStyleWidth}),{},{tableLayout:L.options.fixedColumns&&(L.options.fixedColumns.left||L.options.fixedColumns.right)?"fixed":L.options.tableLayout})},L.options.header&&y.default.createElement(L.components.Header,{actions:R.state.actions,columns:R.state.columns,selectedCount:R.state.selectedCount,dataCount:L.parentChildData?R.dataManager.searchedData.length:R.state.columns.some(function(H){return H.tableData.groupOrder>-1})?R.state.groupedDataLength:R.state.data.length,hasDetailPanel:!!L.detailPanel,showActionsColumn:!R.dataManager.bulkEditOpen&&R.state.actions&&R.state.actions.some(function(H){return H.position==="row"||typeof H=="function"}),onAllSelected:R.onAllSelected,onOrderChange:R.onChangeOrder,isTreeData:R.props.parentChildData!==void 0,treeDataMaxLevel:R.state.treeDataMaxLevel,onColumnResized:R.onColumnResized,scrollWidth:R.state.width,sorting:L.options.sorting||R.dataManager.maxColumnSort!==0,allowSorting:R.dataManager.maxColumnSort!==0,orderByCollection:R.dataManager.getOrderByCollection(),tableWidth:(W=L.options.tableWidth)!==null&&W!==void 0?W:"full"}),y.default.createElement(L.components.Body,{actions:R.state.actions,components:R.props.components,renderData:R.state.renderData,data:R.state.data,renderSummaryRow:R.props.renderSummaryRow,currentPage:R.isRemoteData()?0:R.state.currentPage,initialFormData:L.initialFormData,pageSize:R.state.pageSize,columns:R.state.columns,errorState:R.state.errorState,detailPanel:L.detailPanel,options:L.options,getFieldValue:R.dataManager.getFieldValue,isTreeData:R.props.parentChildData!==void 0,onFilterChanged:R.onFilterChange,onRowSelected:R.onRowSelected,onGroupSelected:R.onGroupSelected,onToggleDetailPanel:R.onToggleDetailPanel,onGroupExpandChanged:R.onGroupExpandChanged,onTreeExpandChanged:R.onTreeExpandChanged,onEditingCanceled:R.onEditingCanceled,onEditingApproved:R.onEditingApproved,onRowClick:R.props.onRowClick,onRowDoubleClick:R.props.onRowDoubleClick,showAddRow:R.state.showAddRow,hasAnyEditingRow:!!(R.state.lastEditingRow||R.state.showAddRow),hasDetailPanel:!!L.detailPanel,treeDataMaxLevel:R.state.treeDataMaxLevel,cellEditable:L.cellEditable,onCellEditStarted:R.onCellEditStarted,onCellEditFinished:R.onCellEditFinished,onRowEditStarted:R.onRowEditStarted,bulkEditOpen:R.dataManager.bulkEditOpen,bulkEditChangedRows:R.dataManager.bulkEditChangedRows,onBulkEditRowChanged:R.dataManager.onBulkEditRowChanged,scrollWidth:R.state.width}))}),(0,m.default)((0,h.default)(R),"onRowEditStarted",function(L){var W;(W=R.props.editable)!==null&&W!==void 0&&W.onRowUpdate&&(R.dataManager.changeRowEditing(L,"update"),R.setState(D(D({},R.dataManager.getRenderState()),{},{showAddRow:!1})))}),(0,m.default)((0,h.default)(R),"getColumnsWidth",function(L,W){var H=[],G=w.actionsColumnWidth(L);if(G>0&&(W>0&&L.options.actionsColumnIndex>=0&&L.options.actionsColumnIndex=W)&&H.push(G+"px"),L.options.selection&&W>0){var te=w.selectionMaxWidth(L,R.state.treeDataMaxLevel);H.push(te+"px")}for(var ee=0;ee=0?ee:R.state.columns.length-1-ee];U.tableData&&(typeof U.tableData.width=="number"?H.push(U.tableData.width+"px"):H.push(U.tableData.width))}return"calc("+H.join(" + ")+")"}),(0,m.default)((0,h.default)(R),"getRenderData",function(){return R.props.options.exportAllData?R.state.data:R.state.renderData});var q=R.getProps(N);R.setDataManagerFields(q,!0);var Y=R.dataManager.getRenderState();return R.state=D(D({data:[],errorState:void 0},Y),{},{query:{filters:Y.columns.filter(function(L){return L.tableData.filterValue}).map(function(L){return{column:L,operator:"=",value:L.tableData.filterValue}}),orderBy:Y.columns.find(function(L){return L.tableData.id===Y.orderBy}),orderDirection:Y.orderDirection,orderByCollection:Y.orderByCollection,page:0,pageSize:q.options.pageSize,search:Y.searchText,totalCount:0},showAddRow:!1,bulkEditOpen:!1,width:0,tableInitialWidthPx:void 0,tableStyleWidth:"100%",actions:q.actions}),R.tableContainerDiv=y.default.createRef(),R}return(0,p.default)(z,[{key:"componentDidMount",value:function(){var R=this;this.setState(D(D({},this.dataManager.getRenderState()),{},{width:this.tableContainerDiv.current.scrollWidth}),function(){R.isRemoteData()&&R.onQueryChange(D(D({},R.state.query),{},{page:R.props.options.initialPage||0})),R.props.onDoubleRowClick!==void 0&&console.warn("Property `onDoubleRowClick` has been renamed to `onRowDoubleClick`"),R.props.options.sorting!==void 0&&console.warn("Property `sorting` has been deprecated, please start using `maxColumnSort` instead. https://github.com/material-table-core/core/pull/619")})}},{key:"setDataManagerFields",value:function(R,q,Y){var L,W=this,H={};if(R.options.persistentGroupingsId&&localStorage){var G=localStorage.getItem("material-table-groupings");G&&(G=JSON.parse(G),G[R.options.persistentGroupingsId]&&G[R.options.persistentGroupingsId].forEach(function(ke){H[ke.field]={groupOrder:ke.groupOrder,groupSort:ke.groupSort,columnOrder:ke.columnOrder}}))}this.dataManager.setTableWidth((L=R.options.tableWidth)!==null&&L!==void 0?L:"full"),this.dataManager.setColumns(R.columns,Y,H),this.dataManager.setDefaultExpanded(R.options.defaultExpanded),this.dataManager.changeRowEditing();var te=R.options,ee=te.clientSorting,U=te.grouping,Q=te.maxColumnSort;this.dataManager.setClientSorting(ee),this.dataManager.setMaxColumnSort(U?1:Q),this.dataManager.setOrderByCollection(),this.isRemoteData(R)?(this.dataManager.changeApplySearch(!1),this.dataManager.changeApplyFilters(!1),this.dataManager.changeApplySort(!1)):(this.dataManager.changeApplySearch(!0),this.dataManager.changeApplyFilters(!0),this.dataManager.changeApplySort(!0),this.dataManager.setData(R.data,R.options.idSynonym));var V=this.dataManager.getDefaultOrderByCollection(),X=R.options.defaultOrderByCollection,K=[],ne="",ae="";if(X&&X.length>0)K=(0,s.default)(X).slice(0,Q),K=this.dataManager.sortOrderCollection(K),ne=JSON.stringify(K),ae=JSON.stringify(V),ne!==ae&&this.dataManager.setDefaultOrderByCollection(K);else{var ie=A(R.columns,Y,this.dataManager.maxColumnSort);K=(0,s.default)(ie[0]),ne=JSON.stringify(K),ae=JSON.stringify((0,s.default)(ie[1]))}var se=JSON.stringify(this.dataManager.orderByCollection),pe=q||!this.isRemoteData()&&K.length&&ne!==ae&&ne!==se;pe&&K.length>0&&Q>0&&K.forEach(function(ke){var Ce=ke.orderBy,Oe=ke.orderDirection,Pe=ke.sortOrder;return W.dataManager.changeColumnOrder(Ce,Oe,Pe)}),q&&this.dataManager.changeSearchText(R.options.searchText||""),q&&this.dataManager.changeSearchDebounce(R.options.searchDebounceDelay),q&&this.dataManager.changeCurrentPage(R.options.initialPage?R.options.initialPage:0),q&&this.dataManager.changePageSize(R.options.pageSize),this.dataManager.changePaging(this.isRemoteData()?!1:R.options.paging),q&&this.dataManager.changeParentFunc(R.parentChildData),this.dataManager.changeDetailPanelType(R.options.detailPanelType)}},{key:"cleanColumns",value:function(R){return R.map(function(q){var Y=D({},q);return delete Y.tableData,Y})}},{key:"componentDidUpdate",value:function(R){var q=this.cleanColumns(R.columns),Y=this.cleanColumns(this.props.columns),L=!(0,_.default)(q,Y),W=L||!(0,_.default)(R.options,this.props.options);if(this.isRemoteData()||(W=W||!(0,_.default)(R.data,this.props.data)),R.options.pageSize!==this.props.options.pageSize&&this.dataManager.changePageSize(this.props.options.pageSize),W){var H=this.getProps(this.props);this.setDataManagerFields(H,!1,R.columns),this.setState(D(D({},this.dataManager.getRenderState()),{},{actions:H.actions}))}var G=this.isRemoteData()?this.state.query.totalCount:this.state.data.length,te=this.isRemoteData()?this.state.query.page:this.state.currentPage,ee=this.isRemoteData()?this.state.query.pageSize:this.state.pageSize;G<=ee*te&&te!==0&&!this.state.isLoading&&this.onPageChange(null,Math.max(0,Math.ceil(G/ee)-1))}},{key:"getProps",value:function(R){var q=this,Y=D({},R||this.props),L=this.props.localization.body;if(Y.options.selection?Y.actions=Y.actions.filter(function(H){return H}).map(function(H){return H.position==="auto"||H.isFreeAction===!1||H.position===void 0&&H.isFreeAction===void 0?typeof H=="function"?{action:H,position:"toolbarOnSelect"}:D(D({},H),{},{position:"toolbarOnSelect"}):H.isFreeAction?typeof H=="function"?{action:H,position:"toolbar"}:D(D({},H),{},{position:"toolbar"}):H}):Y.actions=Y.actions.filter(function(H){return H}).map(function(H){return H.position==="auto"||H.isFreeAction===!1||H.position===void 0&&H.isFreeAction===void 0?typeof H=="function"?{action:H,position:"row"}:D(D({},H),{},{position:"row"}):H.isFreeAction?typeof H=="function"?{action:H,position:"toolbar"}:D(D({},H),{},{position:"toolbar"}):H}),Y.editable){var W;Y.editable.onRowAdd&&Y.actions.push({icon:Y.icons.Add,tooltip:L.addTooltip,position:"toolbar",disabled:!!this.dataManager.lastEditingRow,onClick:function(){q.dataManager.changeRowEditing(),q.state.showAddRow&&q.props.editable.onRowAddCancelled&&q.props.editable.onRowAddCancelled(),q.setState(D(D({},q.dataManager.getRenderState()),{},{showAddRow:!q.state.showAddRow}))}}),Y.editable.onRowUpdate&&Y.actions.push(function(H){return{icon:Y.icons.Edit,tooltip:Y.editable.editTooltip?Y.editable.editTooltip(H):L.editTooltip,disabled:Y.editable.isEditable&&!Y.editable.isEditable(H),hidden:Y.editable.isEditHidden&&Y.editable.isEditHidden(H),onClick:function(te,ee){q.onRowEditStarted(ee)}}}),Y.editable.onRowDelete&&Y.actions.push(function(H){return{icon:Y.icons.Delete,tooltip:Y.editable.deleteTooltip?Y.editable.deleteTooltip(H):L.deleteTooltip,disabled:Y.editable.isDeletable&&!Y.editable.isDeletable(H),hidden:Y.editable.isDeleteHidden&&Y.editable.isDeleteHidden(H),onClick:function(te,ee){q.dataManager.changeRowEditing(ee,"delete"),q.setState(D(D({},q.dataManager.getRenderState()),{},{showAddRow:!1}))}}}),Y.editable.onBulkUpdate&&(Y.actions.push({icon:Y.icons.Edit,tooltip:L.bulkEditTooltip,position:"toolbar",hidden:this.dataManager.bulkEditOpen,disabled:Y.isBulkEditable&&Y.isBulkEditable(),onClick:function(){q.dataManager.changeBulkEditOpen(!0),q.props.onBulkEditOpen&&q.props.onBulkEditOpen(!0),q.setState(q.dataManager.getRenderState())}}),Y.actions.push({icon:Y.icons.Check,tooltip:L.bulkEditApprove,position:"toolbar",hidden:!this.dataManager.bulkEditOpen,onClick:function(){return q.onEditingApproved("bulk")}}),Y.actions.push({icon:Y.icons.Clear,tooltip:L.bulkEditCancel,position:"toolbar",hidden:!this.dataManager.bulkEditOpen,onClick:function(){q.dataManager.changeBulkEditOpen(!1),q.props.onBulkEditOpen&&q.props.onBulkEditOpen(!1),q.dataManager.clearBulkEditChangedRows(),q.setState(q.dataManager.getRenderState())}})),(W=this.state)!==null&&W!==void 0&&W.showAddRow&&Y.editable.onRowAdd&&Y.actions.filter(function(H){return H.position==="row"}).length===0&&Y.actions.push({icon:void 0,position:"row",onClick:function(){},disabled:!0})}return Y}},{key:"renderFooter",value:function(){var R=this.getProps();if(R.options.paging){var q=this.isRemoteData()?Math.min(R.page,Math.floor(R.totalCount/this.state.pageSize)):this.state.currentPage,Y=this.isRemoteData()?R.totalCount:this.state.data.length;return y.default.createElement(u.default,null,y.default.createElement(l.default,{style:{display:"grid"}},y.default.createElement(i.default,{style:{display:"grid"}},y.default.createElement(R.components.Pagination,{sx:{display:"flex",justifyContent:R.options.paginationAlignment?R.options.paginationAlignment:"flex-end",overflowX:"auto","& .MuiTablePagination-displayedRows":{display:"none"}},colSpan:3,count:this.isRemoteData()?this.state.query.totalCount:Y,rowsPerPage:this.state.pageSize,rowsPerPageOptions:R.options.pageSizeOptions,SelectProps:{renderValue:function(W){return y.default.createElement(a.default,{sx:{padding:"0px 5px"}},W+" "+R.localization.pagination.labelRows+" ")}},page:this.isRemoteData()?this.state.query.page:q,onPageChange:this.onPageChange,onRowsPerPageChange:this.onRowsPerPageChange,ActionsComponent:function(W){return R.options.paginationType==="normal"?y.default.createElement(C.MTablePagination,(0,o.default)({},W,{showFirstLastPageButtons:R.options.showFirstLastPageButtons})):y.default.createElement(C.MTableSteppedPagination,(0,o.default)({},W,{showFirstLastPageButtons:R.options.showFirstLastPageButtons,numberOfPagesAround:R.options.numberOfPagesAround}))},labelRowsPerPage:R.localization.pagination.labelRowsPerPage}))))}}},{key:"render",value:function(){var R=this,q=this.getProps();return y.default.createElement(S.DragDropContext,{onDragEnd:this.onDragEnd,nonce:q.options.cspNonce},y.default.createElement(this.props.components.Container,{style:D({position:"relative"},q.style)},q.options.paginationPosition==="top"||q.options.paginationPosition==="both"?this.renderFooter():null,q.options.toolbar&&y.default.createElement(this.props.components.Toolbar,{actions:q.actions,components:this.props.components,originalData:this.state.originalData,columns:this.state.columns,selectedCount:this.state.selectedCount,getFieldValue:this.dataManager.getFieldValue,data:this.getRenderData,title:q.title,searchText:this.dataManager.searchText,searchDebounceDelay:this.dataManager.searchDebounceDelay,onSearchChanged:this.onSearchChangeDebounce,isRemoteData:this.isRemoteData(),dataManager:this.dataManager,onColumnsChanged:this.onChangeColumnHidden}),q.options.grouping&&y.default.createElement(this.props.components.Groupbar,{groupColumns:this.state.columns.filter(function(Y){return Y.tableData.groupOrder>-1}).sort(function(Y,L){return Y.tableData.groupOrder-L.tableData.groupOrder}),onSortChanged:this.onChangeGroupOrder,onGroupRemoved:this.onGroupRemoved,onGroupChange:this.props.onGroupChange,persistentGroupingsId:q.options.persistentGroupingsId}),y.default.createElement(C.MTableScrollbar,{double:q.options.doubleHorizontalScroll},y.default.createElement(S.Droppable,{droppableId:"headers",direction:"horizontal"},function(Y,L){var W=R.renderTable(q);return y.default.createElement("div",{ref:Y.innerRef},y.default.createElement("div",{ref:R.tableContainerDiv,style:{maxHeight:q.options.maxBodyHeight,minHeight:q.options.minBodyHeight,overflowY:q.options.overflowY}},R.state.width&&q.options.fixedColumns&&q.options.fixedColumns.right?y.default.createElement("div",{style:{width:R.getColumnsWidth(q,-1*q.options.fixedColumns.right),position:"absolute",top:0,right:0,boxShadow:"-2px 0px 15px rgba(125,147,178,.25)",overflowX:"clip",zIndex:11}},y.default.createElement("div",{style:{width:R.state.width,background:"white",transform:"translateX(calc(".concat(R.getColumnsWidth(q,-1*q.options.fixedColumns.right)," - 100%))")}},W)):null,y.default.createElement("div",null,W),R.state.width&&q.options.fixedColumns&&q.options.fixedColumns.left?y.default.createElement("div",{style:{width:R.getColumnsWidth(q,q.options.fixedColumns.left),position:"absolute",top:0,left:0,boxShadow:"2px 0px 15px rgba(125,147,178,.25)",overflowX:"clip",zIndex:11}},y.default.createElement("div",{style:{width:R.state.width,background:"white"},onKeyDown:function(G){G.key==="Tab"&&G.preventDefault()}},W)):null),Y.placeholder)})),(this.state.isLoading||q.isLoading)&&q.options.loadingType==="linear"&&y.default.createElement("div",{style:{position:"relative",width:"100%"}},y.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%"}},y.default.createElement(r.default,null))),q.options.paginationPosition==="bottom"||q.options.paginationPosition==="both"?this.renderFooter():null,(this.state.isLoading||q.isLoading)&&q.options.loadingType==="overlay"&&y.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%",zIndex:11}},y.default.createElement(this.props.components.OverlayLoading,{theme:q.theme})),this.state.errorState&&this.state.errorState.errorCause==="query"&&y.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%",zIndex:11}},y.default.createElement(this.props.components.OverlayError,{error:this.state.errorState,retry:this.retry,theme:q.theme}))))}}]),z}(y.default.Component);e.default=I;function A(j,B,z){var N=[],R=[];return z>0&&(N=F(j,z)),B&&(R=F(B,z)),[N,R]}function F(j,B){var z=j.filter(function(N){return N.defaultSort&&N.sorting!==!1});return z.slice(0,B).map(function(N,R){return{orderBy:N.tableData?N.tableData.id:j.findIndex(function(q){return q.field===N.field}),orderDirection:N.defaultSort,sortOrder:R+1}})}}(P3)),P3}(function(e){var t=Hn;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ALL_COLUMNS",{enumerable:!0,get:function(){return c.ALL_COLUMNS}}),Object.defineProperty(e,"MTableAction",{enumerable:!0,get:function(){return u.MTableAction}}),Object.defineProperty(e,"MTableActions",{enumerable:!0,get:function(){return u.MTableActions}}),Object.defineProperty(e,"MTableBody",{enumerable:!0,get:function(){return u.MTableBody}}),Object.defineProperty(e,"MTableBodyRow",{enumerable:!0,get:function(){return u.MTableBodyRow}}),Object.defineProperty(e,"MTableCell",{enumerable:!0,get:function(){return u.MTableCell}}),Object.defineProperty(e,"MTableEditCell",{enumerable:!0,get:function(){return u.MTableEditCell}}),Object.defineProperty(e,"MTableEditField",{enumerable:!0,get:function(){return u.MTableEditField}}),Object.defineProperty(e,"MTableEditRow",{enumerable:!0,get:function(){return u.MTableEditRow}}),Object.defineProperty(e,"MTableFilterRow",{enumerable:!0,get:function(){return u.MTableFilterRow}}),Object.defineProperty(e,"MTableGroupRow",{enumerable:!0,get:function(){return u.MTableGroupRow}}),Object.defineProperty(e,"MTableGroupbar",{enumerable:!0,get:function(){return u.MTableGroupbar}}),Object.defineProperty(e,"MTableHeader",{enumerable:!0,get:function(){return u.MTableHeader}}),Object.defineProperty(e,"MTablePagination",{enumerable:!0,get:function(){return u.MTablePagination}}),Object.defineProperty(e,"MTableSteppedPagination",{enumerable:!0,get:function(){return u.MTableSteppedPagination}}),Object.defineProperty(e,"MTableToolbar",{enumerable:!0,get:function(){return u.MTableToolbar}}),e.default=void 0,Object.defineProperty(e,"useLocalizationStore",{enumerable:!0,get:function(){return s.useLocalizationStore}});var n=t(jr()),r=t(ge),l=xSe(),i=wSe(),o=t(jSe()),a=Sf,s=mg(),u=ux(),c=C4();o.default.defaultProps=l.defaultProps,o.default.propTypes=i.propTypes;var d=(0,s.withContext)(function(f){var p=(0,a.useTheme)(),h=(0,s.useMergeProps)(f),g=h.localization,b=h.options,v=h.components;return r.default.createElement(o.default,(0,n.default)({},f,{theme:p,options:b,components:v,localization:g,ref:f.tableRef}))});e.default=d})(PB);const zSe=dr(PB),BSe=kr(Te.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),WSe=e=>{const t=e.activeTab===-1?0:e.activeTab;return Te.jsxs("div",{children:[Te.jsx(TB,{value:t,onChange:e.onNewTabSelected,indicatorColor:"primary",textColor:"primary",children:e.tabs.map(n=>Te.jsx(jS,{disabled:n.disabled??!1,label:Te.jsx(ka,{className:e.tabStyle,children:Te.jsxs(ka,{display:"flex",sx:{fontSize:"0.875rem"},children:[Te.jsx("span",{children:n.icon}),n.title]})})}))}),Te.jsx(ka,{children:e.tabs.map((n,r)=>Te.jsx("div",{hidden:(e.activeTab===-1?0:e.activeTab)!==r,children:(e.activeTab===-1?0:e.activeTab)!==r?Te.jsx("div",{}):n.tab}))})]})},M4=e=>{const[t,n]=ge.useState({activeTab:0});return Te.jsx(Ke.Fragment,{children:Te.jsx(WSe,{activeTab:t.activeTab,onNewTabSelected:(r,l)=>n(i=>({...i,activeTab:l})),tabs:e.tabs})})},nk=({func:e,children:t})=>{const[n,r]=ge.useState(()=>({status:0,func:e}));return n.status===0&&r(l=>({...l,status:1})),n.status===1&&(r(l=>({...l,status:2})),n.func().then(l=>r(i=>({...i,status:3,result:l}))).catch(()=>r(l=>({...l,status:4})))),Te.jsx(Te.Fragment,{children:n.status===3?t&&n.result&&t(n.result):n.status===4?Te.jsx(mr,{align:"center",children:"Failed"}):n.status===2?Te.jsx(ka,{textAlign:"center",children:Te.jsx(Iz,{})}):null})},P4=({forseFilled:e,sx:t,...n})=>{const r=hg();return Te.jsx(Qae,{sx:[l=>l.applyStyles("light",{border:"none"}),...Array.isArray(t)?t:[t]],variant:r==="dark"?e?"filled":"outlined":void 0,...n})},RU=e=>Te.jsxs(P4,{severity:e.data.severity,children:[Te.jsx(n5,{children:e.data.title}),e.data.text]}),LU=()=>Te.jsx("div",{children:"Not implemented"}),qSe=e=>e.type??"graph",W9=(e,t,n)=>{switch(qSe(t)){case"graph":{const r=()=>e.getAdditionGraphData(t.id),l=i=>Te.jsx(Db,{...i,widgetSize:n});return Te.jsx(nk,{func:r,children:l})}case"widget":{const r=()=>e.getAdditionWidgetData(t.id),l=i=>Ng(t.id,i);return Te.jsx(nk,{func:r,children:l})}default:return Te.jsx(LU,{})}},O4=e=>Te.jsx(y5.Consumer,{children:t=>Te.jsxs(ka,{children:[e.details.parts.length>1?Te.jsx(M4,{tabs:e.details.parts.map(n=>({title:n.title,tab:W9(t,n,e.widgetSize)}))}):W9(t,e.details.parts[0],e.widgetSize),e.details.insights===void 0?Te.jsx(Te.Fragment,{}):e.details.insights.map(n=>Te.jsx(RU,{data:n},n.text+n.title+n.severity))]})}),USe=e=>Te.jsx(y5.Consumer,{children:t=>Te.jsx(nk,{func:()=>t.getAdditionGraphData(e.graphId),children:n=>Te.jsx(Db,{...n,widgetSize:e.widgetSize})})});var rk={exports:{}},ak={exports:{}};(function(e,t){t.__esModule=!0,t.default=n;function n(r){var l={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(l[i]=0);return l}e.exports=t.default})(ak,ak.exports);var A4=ak.exports,ok={exports:{}};(function(e,t){t.__esModule=!0,t.default=n;function n(r){var l={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(l[i]=typeof r[i]=="number"?r[i]:r[i].val);return l}e.exports=t.default})(ok,ok.exports);var fx=ok.exports,ik={exports:{}};(function(e,t){t.__esModule=!0,t.default=r;var n=[0,0];function r(l,i,o,a,s,u,c){var d=-s*(i-a),f=-u*o,p=d+f,h=o+p*l,g=i+h*l;return Math.abs(h)"u"?$o:window,j0=["moz","webkit"],Id="AnimationFrame",sf=ns["request"+Id],$m=ns["cancel"+Id]||ns["cancelRequest"+Id];for(var eh=0;!sf&&ehS*10&&(O.accumulatedTime=0),O.accumulatedTime===0){O.animationID=null,O.startAnimationIfNecessary();return}var A=(O.accumulatedTime-Math.floor(O.accumulatedTime/S)*S)/S,F=Math.floor(O.accumulatedTime/S),j={},B={},z={},N={};for(var R in P)if(Object.prototype.hasOwnProperty.call(P,R)){var q=P[R];if(typeof q=="number")z[R]=q,N[R]=0,j[R]=q,B[R]=0;else{for(var Y=O.state.lastIdealStyle[R],L=O.state.lastIdealVelocity[R],W=0;WS*10&&(D.accumulatedTime=0),D.accumulatedTime===0){D.animationID=null,D.startAnimationIfNecessary();return}for(var F=(D.accumulatedTime-Math.floor(D.accumulatedTime/S)*S)/S,j=Math.floor(D.accumulatedTime/S),B=[],z=[],N=[],R=[],q=0;qo[m])return-1;if(p>s[m]&&bo[m])return 1;if(h>s[m]&&gC*10&&(A.accumulatedTime=0),A.accumulatedTime===0){A.animationID=null,A.startAnimationIfNecessary();return}for(var R=(A.accumulatedTime-Math.floor(A.accumulatedTime/C)*C)/C,q=Math.floor(A.accumulatedTime/C),Y=O(A.props.willEnter,A.props.willLeave,A.props.didLeave,A.state.mergedPropsStyles,B,A.state.currentStyles,A.state.currentVelocities,A.state.lastIdealStyles,A.state.lastIdealVelocities),L=Y[0],W=Y[1],H=Y[2],G=Y[3],te=Y[4],ee=0;ee0},e.prototype.connect_=function(){!hk||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),fke?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!hk||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,l=dke.some(function(i){return!!~r.indexOf(i)});l&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),NU=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof uf(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new wke(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof uf(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new _ke(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),jU=typeof WeakMap<"u"?new WeakMap:new $U,zU=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=pke.getInstance(),r=new Tke(t,n,this);jU.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){zU.prototype[e]=function(){var t;return(t=jU.get(this))[e].apply(t,arguments)}});var Ske=function(){return typeof By.ResizeObserver<"u"?By.ResizeObserver:zU}(),kke=["client","offset","scroll","bounds","margin"];function H9(e){var t=[];return kke.forEach(function(n){e[n]&&t.push(n)}),t}function V9(e,t){var n={};if(t.indexOf("client")>-1&&(n.client={top:e.clientTop,left:e.clientLeft,width:e.clientWidth,height:e.clientHeight}),t.indexOf("offset")>-1&&(n.offset={top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight}),t.indexOf("scroll")>-1&&(n.scroll={top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}),t.indexOf("bounds")>-1){var r=e.getBoundingClientRect();n.bounds={top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height}}if(t.indexOf("margin")>-1){var l=getComputedStyle(e);n.margin={top:l?parseInt(l.marginTop):0,right:l?parseInt(l.marginRight):0,bottom:l?parseInt(l.marginBottom):0,left:l?parseInt(l.marginLeft):0}}return n}function Cke(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||window}function Mke(e){return function(t){var n,r;return r=n=function(l){xb(i,l);function i(){for(var a,s=arguments.length,u=new Array(s),c=0;c-1}var iCe=oCe,lCe=vx;function sCe(e,t){var n=this.__data__,r=lCe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var uCe=sCe,cCe=Vke,dCe=eCe,fCe=rCe,pCe=iCe,hCe=uCe;function Ef(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=x4e}var q4=w4e,_4e=bx,T4e=q4;function S4e(e){return e!=null&&T4e(e.length)&&!_4e(e)}var Nf=S4e,k4e=Nf,C4e=hi;function M4e(e){return C4e(e)&&k4e(e)}var eH=M4e,Hy={exports:{}};function P4e(){return!1}var O4e=P4e;Hy.exports;(function(e,t){var n=Yo,r=O4e,l=t&&!t.nodeType&&t,i=l&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===l,a=o?n.Buffer:void 0,s=a?a.isBuffer:void 0,u=s||r;e.exports=u})(Hy,Hy.exports);var Cx=Hy.exports,A4e=xs,D4e=B4,E4e=hi,R4e="[object Object]",L4e=Function.prototype,I4e=Object.prototype,tH=L4e.toString,$4e=I4e.hasOwnProperty,N4e=tH.call(Object);function F4e(e){if(!E4e(e)||A4e(e)!=R4e)return!1;var t=D4e(e);if(t===null)return!0;var n=$4e.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&tH.call(n)==N4e}var U4=F4e;const zm=dr(U4);var j4e=xs,z4e=q4,B4e=hi,W4e="[object Arguments]",q4e="[object Array]",U4e="[object Boolean]",H4e="[object Date]",V4e="[object Error]",G4e="[object Function]",Y4e="[object Map]",X4e="[object Number]",K4e="[object Object]",Z4e="[object RegExp]",Q4e="[object Set]",J4e="[object String]",e6e="[object WeakMap]",t6e="[object ArrayBuffer]",n6e="[object DataView]",r6e="[object Float32Array]",a6e="[object Float64Array]",o6e="[object Int8Array]",i6e="[object Int16Array]",l6e="[object Int32Array]",s6e="[object Uint8Array]",u6e="[object Uint8ClampedArray]",c6e="[object Uint16Array]",d6e="[object Uint32Array]",Yr={};Yr[r6e]=Yr[a6e]=Yr[o6e]=Yr[i6e]=Yr[l6e]=Yr[s6e]=Yr[u6e]=Yr[c6e]=Yr[d6e]=!0;Yr[W4e]=Yr[q4e]=Yr[t6e]=Yr[U4e]=Yr[n6e]=Yr[H4e]=Yr[V4e]=Yr[G4e]=Yr[Y4e]=Yr[X4e]=Yr[K4e]=Yr[Z4e]=Yr[Q4e]=Yr[J4e]=Yr[e6e]=!1;function f6e(e){return B4e(e)&&z4e(e.length)&&!!Yr[j4e(e)]}var p6e=f6e;function h6e(e){return function(t){return e(t)}}var Ff=h6e,Vy={exports:{}};Vy.exports;(function(e,t){var n=WU,r=t&&!t.nodeType&&t,l=r&&!0&&e&&!e.nodeType&&e,i=l&&l.exports===r,o=i&&n.process,a=function(){try{var s=l&&l.require&&l.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}}();e.exports=a})(Vy,Vy.exports);var Mx=Vy.exports,m6e=p6e,g6e=Ff,iR=Mx,lR=iR&&iR.isTypedArray,v6e=lR?g6e(lR):m6e,H4=v6e;function y6e(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var nH=y6e,b6e=j4,x6e=Sg,w6e=Object.prototype,_6e=w6e.hasOwnProperty;function T6e(e,t,n){var r=e[t];(!(_6e.call(e,t)&&x6e(r,n))||n===void 0&&!(t in e))&&b6e(e,t,n)}var V4=T6e,S6e=V4,k6e=j4;function C6e(e,t,n,r){var l=!n;n||(n={});for(var i=-1,o=t.length;++i-1&&e%1==0&&e0){if(++t>=IPe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var iH=FPe,jPe=LPe,zPe=iH,BPe=zPe(jPe),Y4=BPe,WPe=Dc,qPe=oH,UPe=Y4;function HPe(e,t){return UPe(qPe(e,t,WPe),e+"")}var Px=HPe,VPe=Sg,GPe=Nf,YPe=kg,XPe=Hi;function KPe(e,t,n){if(!XPe(n))return!1;var r=typeof t;return(r=="number"?GPe(n)&&YPe(t,n.length):r=="string"&&t in n)?VPe(n[t],e):!1}var X4=KPe,ZPe=Px,QPe=X4;function JPe(e){return ZPe(function(t,n){var r=-1,l=n.length,i=l>1?n[l-1]:void 0,o=l>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(l--,i):void 0,o&&QPe(n[0],n[1],o)&&(i=l<3?void 0:i,l=1),t=Object(t);++rt?1:e>=t?0:NaN}function Q4(e){let t=e,n=e;e.length===1&&(t=(o,a)=>e(o)-a,n=c8e(e));function r(o,a,s,u){for(s==null&&(s=0),u==null&&(u=o.length);s>>1;n(o[c],a)<0?s=c+1:u=c}return s}function l(o,a,s,u){for(s==null&&(s=0),u==null&&(u=o.length);s>>1;n(o[c],a)>0?u=c:s=c+1}return s}function i(o,a,s,u){s==null&&(s=0),u==null&&(u=o.length);const c=r(o,a,s,u-1);return c>s&&t(o[c-1],a)>-t(o[c],a)?c-1:c}return{left:r,center:i,right:l}}function c8e(e){return(t,n)=>fH(e(t),n)}function d8e(e){return e===null?NaN:+e}const f8e=Q4(fH),p8e=f8e.right;Q4(d8e).center;var mk=Math.sqrt(50),gk=Math.sqrt(10),vk=Math.sqrt(2);function yk(e,t,n){var r,l=-1,i,o,a;if(t=+t,e=+e,n=+n,e===t&&n>0)return[e];if((r=t0){let s=Math.round(e/a),u=Math.round(t/a);for(s*at&&--u,o=new Array(i=u-s+1);++lt&&--u,o=new Array(i=u-s+1);++l=0?(i>=mk?10:i>=gk?5:i>=vk?2:1)*Math.pow(10,l):-Math.pow(10,-l)/(i>=mk?10:i>=gk?5:i>=vk?2:1)}function bk(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),l=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/l;return i>=mk?l*=10:i>=gk?l*=5:i>=vk&&(l*=2),t>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?B0(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?B0(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=v8e.exec(e))?new ni(t[1],t[2],t[3],1):(t=y8e.exec(e))?new ni(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=b8e.exec(e))?B0(t[1],t[2],t[3],t[4]):(t=x8e.exec(e))?B0(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=w8e.exec(e))?kR(t[1],t[2]/100,t[3]/100,1):(t=_8e.exec(e))?kR(t[1],t[2]/100,t[3]/100,t[4]):bR.hasOwnProperty(e)?_R(bR[e]):e==="transparent"?new ni(NaN,NaN,NaN,0):null}function _R(e){return new ni(e>>16&255,e>>8&255,e&255,1)}function B0(e,t,n,r){return r<=0&&(e=t=n=NaN),new ni(e,t,n,r)}function S8e(e){return e instanceof Pg||(e=cc(e)),e?(e=e.rgb(),new ni(e.r,e.g,e.b,e.opacity)):new ni}function dc(e,t,n,r){return arguments.length===1?S8e(e):new ni(e,t,n,r??1)}function ni(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}e6(ni,dc,mH(Pg,{brighter:function(e){return e=e==null?Gy:Math.pow(Gy,e),new ni(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?Bm:Math.pow(Bm,e),new ni(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:TR,formatHex:TR,formatRgb:SR,toString:SR}));function TR(){return"#"+L3(this.r)+L3(this.g)+L3(this.b)}function SR(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function L3(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function kR(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ml(e,t,n,r)}function gH(e){if(e instanceof Ml)return new Ml(e.h,e.s,e.l,e.opacity);if(e instanceof Pg||(e=cc(e)),!e)return new Ml;if(e instanceof Ml)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,l=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,a=i-l,s=(i+l)/2;return a?(t===i?o=(n-r)/a+(n0&&s<1?0:o,new Ml(o,a,s,e.opacity)}function k8e(e,t,n,r){return arguments.length===1?gH(e):new Ml(e,t,n,r??1)}function Ml(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}e6(Ml,k8e,mH(Pg,{brighter:function(e){return e=e==null?Gy:Math.pow(Gy,e),new Ml(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Bm:Math.pow(Bm,e),new Ml(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,l=2*n-r;return new ni(I3(e>=240?e-240:e+120,l,r),I3(e,l,r),I3(e<120?e+240:e-120,l,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function I3(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const t6=e=>()=>e;function C8e(e,t){return function(n){return e+n*t}}function M8e(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function P8e(e){return(e=+e)==1?vH:function(t,n){return n-t?M8e(t,n,e):t6(isNaN(t)?n:t)}}function vH(e,t){var n=t-e;return n?C8e(e,n):t6(isNaN(e)?t:e)}const CR=function e(t){var n=P8e(t);function r(l,i){var o=n((l=dc(l)).r,(i=dc(i)).r),a=n(l.g,i.g),s=n(l.b,i.b),u=vH(l.opacity,i.opacity);return function(c){return l.r=o(c),l.g=a(c),l.b=s(c),l.opacity=u(c),l+""}}return r.gamma=e,r}(1);function O8e(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),l;return function(i){for(l=0;ln&&(i=t.slice(n,i),a[o]?a[o]+=i:a[++o]=i),(r=r[0])===(l=l[0])?a[o]?a[o]+=l:a[++o]=l:(a[++o]=null,s.push({i:o,x:Yy(r,l)})),n=$3.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function B8e(e,t,n){var r=e[0],l=e[1],i=t[0],o=t[1];return l2?W8e:B8e,s=u=null,d}function d(f){return f==null||isNaN(f=+f)?i:(s||(s=a(e.map(r),t,n)))(r(o(f)))}return d.invert=function(f){return o(l((u||(u=a(t,e.map(r),Yy)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,j8e),c()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),c()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=N8e,c()},d.clamp=function(f){return arguments.length?(o=f?!0:Td,c()):o!==Td},d.interpolate=function(f){return arguments.length?(n=f,c()):n},d.unknown=function(f){return arguments.length?(i=f,d):i},function(f,p){return r=f,l=p,c()}}function bH(){return yH()(Td,Td)}function q8e(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Xy(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function cf(e){return e=Xy(Math.abs(e)),e?e[1]:NaN}function U8e(e,t){return function(n,r){for(var l=n.length,i=[],o=0,a=e[0],s=0;l>0&&a>0&&(s+a+1>r&&(a=Math.max(1,r-s)),i.push(n.substring(l-=a,l+a)),!((s+=a+1)>r));)a=e[o=(o+1)%e.length];return i.reverse().join(t)}}function H8e(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var V8e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ky(e){if(!(t=V8e.exec(e)))throw new Error("invalid format: "+e);var t;return new a6({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]})}Ky.prototype=a6.prototype;function a6(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}a6.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function G8e(e){e:for(var t=e.length,n=1,r=-1,l;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(l+1):e}var xH;function Y8e(e,t){var n=Xy(e,t);if(!n)return e+"";var r=n[0],l=n[1],i=l-(xH=Math.max(-8,Math.min(8,Math.floor(l/3)))*3)+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Xy(e,Math.max(0,t+i-1))[0]}function PR(e,t){var n=Xy(e,t);if(!n)return e+"";var r=n[0],l=n[1];return l<0?"0."+new Array(-l).join("0")+r:r.length>l+1?r.slice(0,l+1)+"."+r.slice(l+1):r+new Array(l-r.length+2).join("0")}const OR={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:q8e,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return PR(e*100,t)},r:PR,s:Y8e,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function AR(e){return e}var DR=Array.prototype.map,ER=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function X8e(e){var t=e.grouping===void 0||e.thousands===void 0?AR:U8e(DR.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",l=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?AR:H8e(DR.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",a=e.minus===void 0?"-":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function u(d){d=Ky(d);var f=d.fill,p=d.align,h=d.sign,g=d.symbol,b=d.zero,v=d.width,m=d.comma,y=d.precision,x=d.trim,_=d.type;_==="n"?(m=!0,_="g"):OR[_]||(y===void 0&&(y=12),x=!0,_="g"),(b||f==="0"&&p==="=")&&(b=!0,f="0",p="=");var w=g==="$"?n:g==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",S=g==="$"?r:/[%p]/.test(_)?o:"",k=OR[_],C=/[defgprs%]/.test(_);y=y===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y));function T(M){var O=w,D=S,P,E,I;if(_==="c")D=k(M)+D,M="";else{M=+M;var A=M<0||1/M<0;if(M=isNaN(M)?s:k(Math.abs(M),y),x&&(M=G8e(M)),A&&+M==0&&h!=="+"&&(A=!1),O=(A?h==="("?h:a:h==="-"||h==="("?"":h)+O,D=(_==="s"?ER[8+xH/3]:"")+D+(A&&h==="("?")":""),C){for(P=-1,E=M.length;++PI||I>57){D=(I===46?l+M.slice(P+1):M.slice(P))+D,M=M.slice(0,P);break}}}m&&!b&&(M=t(M,1/0));var F=O.length+M.length+D.length,j=F>1)+O+M+D+j.slice(F);break;default:M=j+O+M+D;break}return i(M)}return T.toString=function(){return d+""},T}function c(d,f){var p=u((d=Ky(d),d.type="f",d)),h=Math.max(-8,Math.min(8,Math.floor(cf(f)/3)))*3,g=Math.pow(10,-h),b=ER[8+h/3];return function(v){return p(g*v)+b}}return{format:u,formatPrefix:c}}var W0,Uf,wH;K8e({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function K8e(e){return W0=X8e(e),Uf=W0.format,wH=W0.formatPrefix,W0}function Z8e(e){return Math.max(0,-cf(Math.abs(e)))}function Q8e(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(cf(t)/3)))*3-cf(Math.abs(e)))}function J8e(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,cf(t)-cf(e))+1}function eAe(e,t,n,r){var l=bk(e,t,n),i;switch(r=Ky(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=Q8e(l,o))&&(r.precision=i),wH(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=J8e(l,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=Z8e(l))&&(r.precision=i-(r.type==="%")*2);break}}return Uf(r)}function tAe(e){var t=e.domain;return e.ticks=function(n){var r=t();return yk(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var l=t();return eAe(l[0],l[l.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),l=0,i=r.length-1,o=r[l],a=r[i],s,u,c=10;for(a0;){if(u=pH(o,a,n),u===s)return r[l]=o,r[i]=a,t(r);if(u>0)o=Math.floor(o/u)*u,a=Math.ceil(a/u)*u;else if(u<0)o=Math.ceil(o*u)/u,a=Math.floor(a*u)/u;else break;s=u}return e},e}function fc(){var e=bH();return e.copy=function(){return r6(e,fc())},qf.apply(e,arguments),tAe(e)}function _H(e,t){e=e.slice();var n=0,r=e.length-1,l=e[n],i=e[r],o;return i0){for(;f<=p;++f)for(g=1,h=i(f);gc)break;m.push(b)}}else for(;f<=p;++f)for(g=r-1,h=i(f);g>=1;--g)if(b=h*g,!(bc)break;m.push(b)}m.length*20))return s;do s.push(u=new Date(+i)),t(i,a),e(i);while(u=o)for(;e(o),!i(o);)o.setTime(o-1)},function(o,a){if(o>=o)if(a<0)for(;++a<=0;)for(;t(o,-1),!i(o););else for(;--a>=0;)for(;t(o,1),!i(o););})},n&&(l.count=function(i,o){return N3.setTime(+i),F3.setTime(+o),e(N3),e(F3),Math.floor(n(N3,F3))},l.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?l.filter(r?function(o){return r(o)%i===0}:function(o){return l.count(0,o)%i===0}):l}),l}var Zy=Ga(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Zy.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ga(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Zy};Zy.range;const Jl=1e3,Oi=Jl*60,es=Oi*60,pc=es*24,o6=pc*7,$R=pc*30,j3=pc*365;var Yu=Ga(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Jl)},function(e,t){return(t-e)/Jl},function(e){return e.getUTCSeconds()});Yu.range;var i6=Ga(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Jl)},function(e,t){e.setTime(+e+t*Oi)},function(e,t){return(t-e)/Oi},function(e){return e.getMinutes()});i6.range;var l6=Ga(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Jl-e.getMinutes()*Oi)},function(e,t){e.setTime(+e+t*es)},function(e,t){return(t-e)/es},function(e){return e.getHours()});l6.range;var Og=Ga(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Oi)/pc,e=>e.getDate()-1);Og.range;function Ec(e){return Ga(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Oi)/o6})}var Ax=Ec(0),Qy=Ec(1),sAe=Ec(2),uAe=Ec(3),df=Ec(4),cAe=Ec(5),dAe=Ec(6);Ax.range;Qy.range;sAe.range;uAe.range;df.range;cAe.range;dAe.range;var s6=Ga(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});s6.range;var ds=Ga(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});ds.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Ga(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};ds.range;var u6=Ga(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Oi)},function(e,t){return(t-e)/Oi},function(e){return e.getUTCMinutes()});u6.range;var c6=Ga(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*es)},function(e,t){return(t-e)/es},function(e){return e.getUTCHours()});c6.range;var Ag=Ga(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/pc},function(e){return e.getUTCDate()-1});Ag.range;function Rc(e){return Ga(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/o6})}var Dx=Rc(0),Jy=Rc(1),fAe=Rc(2),pAe=Rc(3),ff=Rc(4),hAe=Rc(5),mAe=Rc(6);Dx.range;Jy.range;fAe.range;pAe.range;ff.range;hAe.range;mAe.range;var d6=Ga(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});d6.range;var fs=Ga(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});fs.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Ga(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};fs.range;function SH(e,t,n,r,l,i){const o=[[Yu,1,Jl],[Yu,5,5*Jl],[Yu,15,15*Jl],[Yu,30,30*Jl],[i,1,Oi],[i,5,5*Oi],[i,15,15*Oi],[i,30,30*Oi],[l,1,es],[l,3,3*es],[l,6,6*es],[l,12,12*es],[r,1,pc],[r,2,2*pc],[n,1,o6],[t,1,$R],[t,3,3*$R],[e,1,j3]];function a(u,c,d){const f=cb).right(o,f);if(p===o.length)return e.every(bk(u/j3,c/j3,d));if(p===0)return Zy.every(Math.max(bk(u,c,d),1));const[h,g]=o[f/o[p-1][2]53)return null;"w"in U||(U.w=1),"Z"in U?(V=B3(nh(U.y,0,1)),X=V.getUTCDay(),V=X>4||X===0?Jy.ceil(V):Jy(V),V=Ag.offset(V,(U.V-1)*7),U.y=V.getUTCFullYear(),U.m=V.getUTCMonth(),U.d=V.getUTCDate()+(U.w+6)%7):(V=z3(nh(U.y,0,1)),X=V.getDay(),V=X>4||X===0?Qy.ceil(V):Qy(V),V=Og.offset(V,(U.V-1)*7),U.y=V.getFullYear(),U.m=V.getMonth(),U.d=V.getDate()+(U.w+6)%7)}else("W"in U||"U"in U)&&("w"in U||(U.w="u"in U?U.u%7:"W"in U?1:0),X="Z"in U?B3(nh(U.y,0,1)).getUTCDay():z3(nh(U.y,0,1)).getDay(),U.m=0,U.d="W"in U?(U.w+6)%7+U.W*7-(X+5)%7:U.w+U.U*7-(X+6)%7);return"Z"in U?(U.H+=U.Z/100|0,U.M+=U.Z%100,B3(U)):z3(U)}}function k(G,te,ee,U){for(var Q=0,V=te.length,X=ee.length,K,ne;Q=X)return-1;if(K=te.charCodeAt(Q++),K===37){if(K=te.charAt(Q++),ne=_[K in NR?te.charAt(Q++):K],!ne||(U=ne(G,ee,U))<0)return-1}else if(K!=ee.charCodeAt(U++))return-1}return U}function C(G,te,ee){var U=u.exec(te.slice(ee));return U?(G.p=c.get(U[0].toLowerCase()),ee+U[0].length):-1}function T(G,te,ee){var U=p.exec(te.slice(ee));return U?(G.w=h.get(U[0].toLowerCase()),ee+U[0].length):-1}function M(G,te,ee){var U=d.exec(te.slice(ee));return U?(G.w=f.get(U[0].toLowerCase()),ee+U[0].length):-1}function O(G,te,ee){var U=v.exec(te.slice(ee));return U?(G.m=m.get(U[0].toLowerCase()),ee+U[0].length):-1}function D(G,te,ee){var U=g.exec(te.slice(ee));return U?(G.m=b.get(U[0].toLowerCase()),ee+U[0].length):-1}function P(G,te,ee){return k(G,t,te,ee)}function E(G,te,ee){return k(G,n,te,ee)}function I(G,te,ee){return k(G,r,te,ee)}function A(G){return o[G.getDay()]}function F(G){return i[G.getDay()]}function j(G){return s[G.getMonth()]}function B(G){return a[G.getMonth()]}function z(G){return l[+(G.getHours()>=12)]}function N(G){return 1+~~(G.getMonth()/3)}function R(G){return o[G.getUTCDay()]}function q(G){return i[G.getUTCDay()]}function Y(G){return s[G.getUTCMonth()]}function L(G){return a[G.getUTCMonth()]}function W(G){return l[+(G.getUTCHours()>=12)]}function H(G){return 1+~~(G.getUTCMonth()/3)}return{format:function(G){var te=w(G+="",y);return te.toString=function(){return G},te},parse:function(G){var te=S(G+="",!1);return te.toString=function(){return G},te},utcFormat:function(G){var te=w(G+="",x);return te.toString=function(){return G},te},utcParse:function(G){var te=S(G+="",!0);return te.toString=function(){return G},te}}}var NR={"-":"",_:" ",0:"0"},Ya=/^\s*\d+/,wAe=/^%/,_Ae=/[\\^$*+?|[\]().{}]/g;function wr(e,t,n){var r=e<0?"-":"",l=(r?-e:e)+"",i=l.length;return r+(i[t.toLowerCase(),n]))}function SAe(e,t,n){var r=Ya.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function kAe(e,t,n){var r=Ya.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function CAe(e,t,n){var r=Ya.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function MAe(e,t,n){var r=Ya.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function PAe(e,t,n){var r=Ya.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function FR(e,t,n){var r=Ya.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function jR(e,t,n){var r=Ya.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function OAe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function AAe(e,t,n){var r=Ya.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function DAe(e,t,n){var r=Ya.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function zR(e,t,n){var r=Ya.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function EAe(e,t,n){var r=Ya.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function BR(e,t,n){var r=Ya.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function RAe(e,t,n){var r=Ya.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function LAe(e,t,n){var r=Ya.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function IAe(e,t,n){var r=Ya.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function $Ae(e,t,n){var r=Ya.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function NAe(e,t,n){var r=wAe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function FAe(e,t,n){var r=Ya.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function jAe(e,t,n){var r=Ya.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function WR(e,t){return wr(e.getDate(),t,2)}function zAe(e,t){return wr(e.getHours(),t,2)}function BAe(e,t){return wr(e.getHours()%12||12,t,2)}function WAe(e,t){return wr(1+Og.count(ds(e),e),t,3)}function kH(e,t){return wr(e.getMilliseconds(),t,3)}function qAe(e,t){return kH(e,t)+"000"}function UAe(e,t){return wr(e.getMonth()+1,t,2)}function HAe(e,t){return wr(e.getMinutes(),t,2)}function VAe(e,t){return wr(e.getSeconds(),t,2)}function GAe(e){var t=e.getDay();return t===0?7:t}function YAe(e,t){return wr(Ax.count(ds(e)-1,e),t,2)}function CH(e){var t=e.getDay();return t>=4||t===0?df(e):df.ceil(e)}function XAe(e,t){return e=CH(e),wr(df.count(ds(e),e)+(ds(e).getDay()===4),t,2)}function KAe(e){return e.getDay()}function ZAe(e,t){return wr(Qy.count(ds(e)-1,e),t,2)}function QAe(e,t){return wr(e.getFullYear()%100,t,2)}function JAe(e,t){return e=CH(e),wr(e.getFullYear()%100,t,2)}function e7e(e,t){return wr(e.getFullYear()%1e4,t,4)}function t7e(e,t){var n=e.getDay();return e=n>=4||n===0?df(e):df.ceil(e),wr(e.getFullYear()%1e4,t,4)}function n7e(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+wr(t/60|0,"0",2)+wr(t%60,"0",2)}function qR(e,t){return wr(e.getUTCDate(),t,2)}function r7e(e,t){return wr(e.getUTCHours(),t,2)}function a7e(e,t){return wr(e.getUTCHours()%12||12,t,2)}function o7e(e,t){return wr(1+Ag.count(fs(e),e),t,3)}function MH(e,t){return wr(e.getUTCMilliseconds(),t,3)}function i7e(e,t){return MH(e,t)+"000"}function l7e(e,t){return wr(e.getUTCMonth()+1,t,2)}function s7e(e,t){return wr(e.getUTCMinutes(),t,2)}function u7e(e,t){return wr(e.getUTCSeconds(),t,2)}function c7e(e){var t=e.getUTCDay();return t===0?7:t}function d7e(e,t){return wr(Dx.count(fs(e)-1,e),t,2)}function PH(e){var t=e.getUTCDay();return t>=4||t===0?ff(e):ff.ceil(e)}function f7e(e,t){return e=PH(e),wr(ff.count(fs(e),e)+(fs(e).getUTCDay()===4),t,2)}function p7e(e){return e.getUTCDay()}function h7e(e,t){return wr(Jy.count(fs(e)-1,e),t,2)}function m7e(e,t){return wr(e.getUTCFullYear()%100,t,2)}function g7e(e,t){return e=PH(e),wr(e.getUTCFullYear()%100,t,2)}function v7e(e,t){return wr(e.getUTCFullYear()%1e4,t,4)}function y7e(e,t){var n=e.getUTCDay();return e=n>=4||n===0?ff(e):ff.ceil(e),wr(e.getUTCFullYear()%1e4,t,4)}function b7e(){return"+0000"}function UR(){return"%"}function HR(e){return+e}function VR(e){return Math.floor(+e/1e3)}var ed,OH,AH;x7e({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function x7e(e){return ed=xAe(e),OH=ed.format,ed.parse,AH=ed.utcFormat,ed.utcParse,ed}function w7e(e){return new Date(e)}function _7e(e){return e instanceof Date?+e:+new Date(+e)}function f6(e,t,n,r,l,i,o,a,s,u){var c=bH(),d=c.invert,f=c.domain,p=u(".%L"),h=u(":%S"),g=u("%I:%M"),b=u("%I %p"),v=u("%a %d"),m=u("%b %d"),y=u("%B"),x=u("%Y");function _(w){return(s(w)=1?(n=1,t-1):Math.floor(n*t),l=e[r],i=e[r+1],o=r>0?e[r-1]:2*l-i,a=rn&&(i=t.slice(n,i),a[o]?a[o]+=i:a[++o]=i),(r=r[0])===(l=l[0])?a[o]?a[o]+=l:a[++o]=l:(a[++o]=null,s.push({i:o,x:_k(r,l)})),n=W3.lastIndex;return n-1}var v6=iDe;function lDe(e,t,n){for(var r=-1,l=e==null?0:e.length;++r=mDe&&(i=hDe,o=!1,t=new uDe(t));e:for(;++lLu)if(!(Math.abs(c*a-s*u)>Lu)||!l)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var f=n-i,p=r-o,h=a*a+s*s,g=f*f+p*p,b=Math.sqrt(h),v=Math.sqrt(d),m=l*Math.tan((Sk-Math.acos((h+d-g)/(2*b*v)))/2),y=m/v,x=m/b;Math.abs(y-1)>Lu&&(this._+="L"+(e+y*u)+","+(t+y*c)),this._+="A"+l+","+l+",0,0,"+ +(c*f>u*p)+","+(this._x1=e+x*a)+","+(this._y1=t+x*s)}},arc:function(e,t,n,r,l,i){e=+e,t=+t,n=+n,i=!!i;var o=n*Math.cos(r),a=n*Math.sin(r),s=e+o,u=t+a,c=1^i,d=i?r-l:l-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+s+","+u:(Math.abs(this._x1-s)>Lu||Math.abs(this._y1-u)>Lu)&&(this._+="L"+s+","+u),n&&(d<0&&(d=d%kk+kk),d>TDe?this._+="A"+n+","+n+",0,1,"+c+","+(e-o)+","+(t-a)+"A"+n+","+n+",0,1,"+c+","+(this._x1=s)+","+(this._y1=u):d>Lu&&(this._+="A"+n+","+n+",0,"+ +(d>=Sk)+","+c+","+(this._x1=e+n*Math.cos(l))+","+(this._y1=t+n*Math.sin(l))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};function no(e){return function(){return e}}var YR=1e-12;function WH(e){this._context=e}WH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function x6(e){return new WH(e)}function qH(e){return e[0]}function UH(e){return e[1]}function HH(){var e=qH,t=UH,n=no(!0),r=null,l=x6,i=null;function o(a){var s,u=a.length,c,d=!1,f;for(r==null&&(i=l(f=b6())),s=0;s<=u;++s)!(s=f;--p)a.point(m[p],y[p]);a.lineEnd(),a.areaEnd()}b&&(m[d]=+e(g,d,c),y[d]=+n(g,d,c),a.point(t?+t(g,d,c):m[d],r?+r(g,d,c):y[d]))}if(v)return a=null,v+""||null}function u(){return HH().defined(l).curve(o).context(i)}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:no(+c),t=null,s):e},s.x0=function(c){return arguments.length?(e=typeof c=="function"?c:no(+c),s):e},s.x1=function(c){return arguments.length?(t=c==null?null:typeof c=="function"?c:no(+c),s):t},s.y=function(c){return arguments.length?(n=typeof c=="function"?c:no(+c),r=null,s):n},s.y0=function(c){return arguments.length?(n=typeof c=="function"?c:no(+c),s):n},s.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:no(+c),s):r},s.lineX0=s.lineY0=function(){return u().x(e).y(n)},s.lineY1=function(){return u().x(e).y(r)},s.lineX1=function(){return u().x(t).y(n)},s.defined=function(c){return arguments.length?(l=typeof c=="function"?c:no(!!c),s):l},s.curve=function(c){return arguments.length?(o=c,i!=null&&(a=o(i)),s):o},s.context=function(c){return arguments.length?(c==null?i=a=null:a=o(i=c),s):i},s}var XR=Array.prototype.slice;function lu(){}function t1(e,t,n){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+n)/6)}function o2(e){this._context=e}o2.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:t1(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:t1(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function kDe(e){return new o2(e)}function VH(e){this._context=e}VH.prototype={areaStart:lu,areaEnd:lu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:t1(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function CDe(e){return new VH(e)}function GH(e){this._context=e}GH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:t1(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function MDe(e){return new GH(e)}function YH(e,t){this._basis=new o2(e),this._beta=t}YH.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],l=t[0],i=e[n]-r,o=t[n]-l,a=-1,s;++a<=n;)s=a/n,this._basis.point(this._beta*e[a]+(1-this._beta)*(r+s*i),this._beta*t[a]+(1-this._beta)*(l+s*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const PDe=function e(t){function n(r){return t===1?new o2(r):new YH(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function n1(e,t,n){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-n),e._x2,e._y2)}function w6(e,t){this._context=e,this._k=(1-t)/6}w6.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:n1(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:n1(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const ODe=function e(t){function n(r){return new w6(r,t)}return n.tension=function(r){return e(+r)},n}(0);function _6(e,t){this._context=e,this._k=(1-t)/6}_6.prototype={areaStart:lu,areaEnd:lu,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);break}}},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:n1(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const ADe=function e(t){function n(r){return new _6(r,t)}return n.tension=function(r){return e(+r)},n}(0);function T6(e,t){this._context=e,this._k=(1-t)/6}T6.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||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:n1(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const DDe=function e(t){function n(r){return new T6(r,t)}return n.tension=function(r){return e(+r)},n}(0);function S6(e,t,n){var r=e._x1,l=e._y1,i=e._x2,o=e._y2;if(e._l01_a>YR){var a=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);r=(r*a-e._x0*e._l12_2a+e._x2*e._l01_2a)/s,l=(l*a-e._y0*e._l12_2a+e._y2*e._l01_2a)/s}if(e._l23_a>YR){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*u+e._x1*e._l23_2a-t*e._l12_2a)/c,o=(o*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,l,i,o,e._x2,e._y2)}function XH(e,t){this._context=e,this._alpha=t}XH.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);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,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:S6(this,e,t);break}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}};const EDe=function e(t){function n(r){return t?new XH(r,t):new w6(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function KH(e,t){this._context=e,this._alpha=t}KH.prototype={areaStart:lu,areaEnd:lu,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);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,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:S6(this,e,t);break}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}};const RDe=function e(t){function n(r){return t?new KH(r,t):new _6(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function ZH(e,t){this._context=e,this._alpha=t}ZH.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||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,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:S6(this,e,t);break}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}};const LDe=function e(t){function n(r){return t?new ZH(r,t):new T6(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function QH(e){this._context=e}QH.prototype={areaStart:lu,areaEnd:lu,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function IDe(e){return new QH(e)}function KR(e){return e<0?-1:1}function ZR(e,t,n){var r=e._x1-e._x0,l=t-e._x1,i=(e._y1-e._y0)/(r||l<0&&-0),o=(n-e._y1)/(l||r<0&&-0),a=(i*l+o*r)/(r+l);return(KR(i)+KR(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(a))||0}function QR(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function q3(e,t,n){var r=e._x0,l=e._y0,i=e._x1,o=e._y1,a=(i-r)/3;e._context.bezierCurveTo(r+a,l+a*t,i-a,o-a*n,i,o)}function r1(e){this._context=e}r1.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:q3(this,this._t0,QR(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,q3(this,QR(this,n=ZR(this,e,t)),n);break;default:q3(this,this._t0,n=ZR(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function JH(e){this._context=new eV(e)}(JH.prototype=Object.create(r1.prototype)).point=function(e,t){r1.prototype.point.call(this,t,e)};function eV(e){this._context=e}eV.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,n,r,l,i){this._context.bezierCurveTo(t,e,r,n,i,l)}};function $De(e){return new r1(e)}function NDe(e){return new JH(e)}function tV(e){this._context=e}tV.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,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=JR(e),l=JR(t),i=0,o=1;o=0;--t)l[t]=(o[t]-l[t+1])/i[t];for(i[n-1]=(e[n]+l[n-1])/2,t=0;t=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 n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function jDe(e){return new i2(e,.5)}function zDe(e){return new i2(e,0)}function BDe(e){return new i2(e,1)}function pf(e,t){if((o=e.length)>1)for(var n=1,r,l,i=e[t[0]],o,a=i.length;n=0;)n[t]=t;return n}function WDe(e,t){return e[t]}function nV(){var e=no([]),t=hf,n=pf,r=WDe;function l(i){var o=e.apply(this,arguments),a,s=i.length,u=o.length,c=new Array(u),d;for(a=0;a0){for(var n,r,l=0,i=e[0].length,o;l0)for(var n,r=0,l,i,o,a,s,u=e[t[0]].length;r0?(l[0]=o,l[1]=o+=i):i<0?(l[1]=a,l[0]=a+=i):(l[0]=0,l[1]=i)}function UDe(e,t){if((l=e.length)>0){for(var n=0,r=e[t[0]],l,i=r.length;n0)||!((i=(l=e[t[0]]).length)>0))){for(var n=0,r=1,l,i,o;ri&&(i=l,n=t);return n}function rV(e){var t=e.map(aV);return hf(e).sort(function(n,r){return t[n]-t[r]})}function aV(e){for(var t=0,n=-1,r=e.length,l;++nm&&(m=u),w=b*b*_,y=Math.max(m/w,w/v),y>x){b-=u;break}x=y}o.push(s={value:b,dice:p1?r:1)},n}(oV);function QDe(e,t,n,r,l){var i=e.children,o,a=i.length,s,u=new Array(a+1);for(u[0]=s=o=0;o=f-1){var m=i[d];m.x0=h,m.y0=g,m.x1=b,m.y1=v;return}for(var y=u[d],x=p/2+y,_=d+1,w=f-1;_>>1;u[S]v-g){var T=(h*C+b*k)/p;c(d,_,k,h,g,T,v),c(_,f,C,T,g,b,v)}else{var M=(g*C+v*k)/p;c(d,_,k,h,g,b,M),c(_,f,C,h,M,b,v)}}}function JDe(e,t,n,r,l){(e.depth&1?s2:l2)(e,t,n,r,l)}const eEe=function e(t){function n(r,l,i,o,a){if((s=r._squarify)&&s.ratio===t)for(var s,u,c,d,f=-1,p,h=s.length,g=r.value;++f1?r:1)},n}(oV);var U3=new Date,H3=new Date;function Xa(e,t,n,r){function l(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return l.floor=function(i){return e(i=new Date(+i)),i},l.ceil=function(i){return e(i=new Date(i-1)),t(i,1),e(i),i},l.round=function(i){var o=l(i),a=l.ceil(i);return i-o0))return s;do s.push(u=new Date(+i)),t(i,a),e(i);while(u=o)for(;e(o),!i(o);)o.setTime(o-1)},function(o,a){if(o>=o)if(a<0)for(;++a<=0;)for(;t(o,-1),!i(o););else for(;--a>=0;)for(;t(o,1),!i(o););})},n&&(l.count=function(i,o){return U3.setTime(+i),H3.setTime(+o),e(U3),e(H3),Math.floor(n(U3,H3))},l.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?l.filter(r?function(o){return r(o)%i===0}:function(o){return l.count(0,o)%i===0}):l}),l}var qm=Xa(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});qm.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Xa(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):qm};qm.range;var a1=1e3,hc=6e4,o1=36e5,lV=864e5,sV=6048e5,Mk=Xa(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*a1)},function(e,t){return(t-e)/a1},function(e){return e.getUTCSeconds()});Mk.range;var uV=Xa(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*a1)},function(e,t){e.setTime(+e+t*hc)},function(e,t){return(t-e)/hc},function(e){return e.getMinutes()});uV.range;var cV=Xa(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*a1-e.getMinutes()*hc)},function(e,t){e.setTime(+e+t*o1)},function(e,t){return(t-e)/o1},function(e){return e.getHours()});cV.range;var u2=Xa(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*hc)/lV},function(e){return e.getDate()-1});u2.range;function Lc(e){return Xa(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*hc)/sV})}var i1=Lc(0),Um=Lc(1),dV=Lc(2),fV=Lc(3),mc=Lc(4),pV=Lc(5),hV=Lc(6);i1.range;Um.range;dV.range;fV.range;mc.range;pV.range;hV.range;var mV=Xa(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});mV.range;var su=Xa(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});su.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Xa(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};su.range;var gV=Xa(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*hc)},function(e,t){return(t-e)/hc},function(e){return e.getUTCMinutes()});gV.range;var vV=Xa(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*o1)},function(e,t){return(t-e)/o1},function(e){return e.getUTCHours()});vV.range;var c2=Xa(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/lV},function(e){return e.getUTCDate()-1});c2.range;function Ic(e){return Xa(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/sV})}var l1=Ic(0),Hm=Ic(1),yV=Ic(2),bV=Ic(3),gc=Ic(4),xV=Ic(5),wV=Ic(6);l1.range;Hm.range;yV.range;bV.range;gc.range;xV.range;wV.range;var _V=Xa(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});_V.range;var uu=Xa(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});uu.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Xa(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};uu.range;function V3(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 G3(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 oh(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function tEe(e){var t=e.dateTime,n=e.date,r=e.time,l=e.periods,i=e.days,o=e.shortDays,a=e.months,s=e.shortMonths,u=ih(l),c=lh(l),d=ih(i),f=lh(i),p=ih(o),h=lh(o),g=ih(a),b=lh(a),v=ih(s),m=lh(s),y={a:A,A:F,b:j,B,c:null,d:oL,e:oL,f:SEe,g:LEe,G:$Ee,H:wEe,I:_Ee,j:TEe,L:TV,m:kEe,M:CEe,p:z,q:N,Q:sL,s:uL,S:MEe,u:PEe,U:OEe,V:AEe,w:DEe,W:EEe,x:null,X:null,y:REe,Y:IEe,Z:NEe,"%":lL},x={a:R,A:q,b:Y,B:L,c:null,d:iL,e:iL,f:BEe,g:ZEe,G:JEe,H:FEe,I:jEe,j:zEe,L:kV,m:WEe,M:qEe,p:W,q:H,Q:sL,s:uL,S:UEe,u:HEe,U:VEe,V:GEe,w:YEe,W:XEe,x:null,X:null,y:KEe,Y:QEe,Z:e9e,"%":lL},_={a:T,A:M,b:O,B:D,c:P,d:rL,e:rL,f:vEe,g:nL,G:tL,H:aL,I:aL,j:pEe,L:gEe,m:fEe,M:hEe,p:C,q:dEe,Q:bEe,s:xEe,S:mEe,u:iEe,U:lEe,V:sEe,w:oEe,W:uEe,x:E,X:I,y:nL,Y:tL,Z:cEe,"%":yEe};y.x=w(n,y),y.X=w(r,y),y.c=w(t,y),x.x=w(n,x),x.X=w(r,x),x.c=w(t,x);function w(G,te){return function(ee){var U=[],Q=-1,V=0,X=G.length,K,ne,ae;for(ee instanceof Date||(ee=new Date(+ee));++Q53)return null;"w"in U||(U.w=1),"Z"in U?(V=G3(oh(U.y,0,1)),X=V.getUTCDay(),V=X>4||X===0?Hm.ceil(V):Hm(V),V=c2.offset(V,(U.V-1)*7),U.y=V.getUTCFullYear(),U.m=V.getUTCMonth(),U.d=V.getUTCDate()+(U.w+6)%7):(V=V3(oh(U.y,0,1)),X=V.getDay(),V=X>4||X===0?Um.ceil(V):Um(V),V=u2.offset(V,(U.V-1)*7),U.y=V.getFullYear(),U.m=V.getMonth(),U.d=V.getDate()+(U.w+6)%7)}else("W"in U||"U"in U)&&("w"in U||(U.w="u"in U?U.u%7:"W"in U?1:0),X="Z"in U?G3(oh(U.y,0,1)).getUTCDay():V3(oh(U.y,0,1)).getDay(),U.m=0,U.d="W"in U?(U.w+6)%7+U.W*7-(X+5)%7:U.w+U.U*7-(X+6)%7);return"Z"in U?(U.H+=U.Z/100|0,U.M+=U.Z%100,G3(U)):V3(U)}}function k(G,te,ee,U){for(var Q=0,V=te.length,X=ee.length,K,ne;Q=X)return-1;if(K=te.charCodeAt(Q++),K===37){if(K=te.charAt(Q++),ne=_[K in eL?te.charAt(Q++):K],!ne||(U=ne(G,ee,U))<0)return-1}else if(K!=ee.charCodeAt(U++))return-1}return U}function C(G,te,ee){var U=u.exec(te.slice(ee));return U?(G.p=c[U[0].toLowerCase()],ee+U[0].length):-1}function T(G,te,ee){var U=p.exec(te.slice(ee));return U?(G.w=h[U[0].toLowerCase()],ee+U[0].length):-1}function M(G,te,ee){var U=d.exec(te.slice(ee));return U?(G.w=f[U[0].toLowerCase()],ee+U[0].length):-1}function O(G,te,ee){var U=v.exec(te.slice(ee));return U?(G.m=m[U[0].toLowerCase()],ee+U[0].length):-1}function D(G,te,ee){var U=g.exec(te.slice(ee));return U?(G.m=b[U[0].toLowerCase()],ee+U[0].length):-1}function P(G,te,ee){return k(G,t,te,ee)}function E(G,te,ee){return k(G,n,te,ee)}function I(G,te,ee){return k(G,r,te,ee)}function A(G){return o[G.getDay()]}function F(G){return i[G.getDay()]}function j(G){return s[G.getMonth()]}function B(G){return a[G.getMonth()]}function z(G){return l[+(G.getHours()>=12)]}function N(G){return 1+~~(G.getMonth()/3)}function R(G){return o[G.getUTCDay()]}function q(G){return i[G.getUTCDay()]}function Y(G){return s[G.getUTCMonth()]}function L(G){return a[G.getUTCMonth()]}function W(G){return l[+(G.getUTCHours()>=12)]}function H(G){return 1+~~(G.getUTCMonth()/3)}return{format:function(G){var te=w(G+="",y);return te.toString=function(){return G},te},parse:function(G){var te=S(G+="",!1);return te.toString=function(){return G},te},utcFormat:function(G){var te=w(G+="",x);return te.toString=function(){return G},te},utcParse:function(G){var te=S(G+="",!0);return te.toString=function(){return G},te}}}var eL={"-":"",_:" ",0:"0"},Ka=/^\s*\d+/,nEe=/^%/,rEe=/[\\^$*+?|[\]().{}]/g;function _r(e,t,n){var r=e<0?"-":"",l=(r?-e:e)+"",i=l.length;return r+(i68?1900:2e3),n+r[0].length):-1}function cEe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function dEe(e,t,n){var r=Ka.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function fEe(e,t,n){var r=Ka.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function rL(e,t,n){var r=Ka.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function pEe(e,t,n){var r=Ka.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function aL(e,t,n){var r=Ka.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function hEe(e,t,n){var r=Ka.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function mEe(e,t,n){var r=Ka.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function gEe(e,t,n){var r=Ka.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function vEe(e,t,n){var r=Ka.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function yEe(e,t,n){var r=nEe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function bEe(e,t,n){var r=Ka.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function xEe(e,t,n){var r=Ka.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function oL(e,t){return _r(e.getDate(),t,2)}function wEe(e,t){return _r(e.getHours(),t,2)}function _Ee(e,t){return _r(e.getHours()%12||12,t,2)}function TEe(e,t){return _r(1+u2.count(su(e),e),t,3)}function TV(e,t){return _r(e.getMilliseconds(),t,3)}function SEe(e,t){return TV(e,t)+"000"}function kEe(e,t){return _r(e.getMonth()+1,t,2)}function CEe(e,t){return _r(e.getMinutes(),t,2)}function MEe(e,t){return _r(e.getSeconds(),t,2)}function PEe(e){var t=e.getDay();return t===0?7:t}function OEe(e,t){return _r(i1.count(su(e)-1,e),t,2)}function SV(e){var t=e.getDay();return t>=4||t===0?mc(e):mc.ceil(e)}function AEe(e,t){return e=SV(e),_r(mc.count(su(e),e)+(su(e).getDay()===4),t,2)}function DEe(e){return e.getDay()}function EEe(e,t){return _r(Um.count(su(e)-1,e),t,2)}function REe(e,t){return _r(e.getFullYear()%100,t,2)}function LEe(e,t){return e=SV(e),_r(e.getFullYear()%100,t,2)}function IEe(e,t){return _r(e.getFullYear()%1e4,t,4)}function $Ee(e,t){var n=e.getDay();return e=n>=4||n===0?mc(e):mc.ceil(e),_r(e.getFullYear()%1e4,t,4)}function NEe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+_r(t/60|0,"0",2)+_r(t%60,"0",2)}function iL(e,t){return _r(e.getUTCDate(),t,2)}function FEe(e,t){return _r(e.getUTCHours(),t,2)}function jEe(e,t){return _r(e.getUTCHours()%12||12,t,2)}function zEe(e,t){return _r(1+c2.count(uu(e),e),t,3)}function kV(e,t){return _r(e.getUTCMilliseconds(),t,3)}function BEe(e,t){return kV(e,t)+"000"}function WEe(e,t){return _r(e.getUTCMonth()+1,t,2)}function qEe(e,t){return _r(e.getUTCMinutes(),t,2)}function UEe(e,t){return _r(e.getUTCSeconds(),t,2)}function HEe(e){var t=e.getUTCDay();return t===0?7:t}function VEe(e,t){return _r(l1.count(uu(e)-1,e),t,2)}function CV(e){var t=e.getUTCDay();return t>=4||t===0?gc(e):gc.ceil(e)}function GEe(e,t){return e=CV(e),_r(gc.count(uu(e),e)+(uu(e).getUTCDay()===4),t,2)}function YEe(e){return e.getUTCDay()}function XEe(e,t){return _r(Hm.count(uu(e)-1,e),t,2)}function KEe(e,t){return _r(e.getUTCFullYear()%100,t,2)}function ZEe(e,t){return e=CV(e),_r(e.getUTCFullYear()%100,t,2)}function QEe(e,t){return _r(e.getUTCFullYear()%1e4,t,4)}function JEe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?gc(e):gc.ceil(e),_r(e.getUTCFullYear()%1e4,t,4)}function e9e(){return"+0000"}function lL(){return"%"}function sL(e){return+e}function uL(e){return Math.floor(+e/1e3)}var td,C6,MV,PV;t9e({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function t9e(e){return td=tEe(e),C6=td.format,MV=td.parse,td.utcFormat,PV=td.utcParse,td}var sh={},uh={},cL;function n9e(){if(cL)return uh;cL=1,uh.__esModule=!0,uh.default=void 0;var e=function(r){if(typeof r=="string")return r;if(r)return r.displayName||r.name||"Component"},t=e;return uh.default=t,uh}var dL;function Hf(){if(dL)return sh;dL=1;var e=Hn;sh.__esModule=!0,sh.default=void 0;var t=e(n9e()),n=function(i,o){return o+"("+(0,t.default)(i)+")"},r=n;return sh.default=r,sh}var ws={},ch={},fL;function OV(){if(fL)return ch;fL=1,ch.__esModule=!0,ch.default=void 0;var e=function(r,l){return function(i){return i[r]=l,i}},t=e;return ch.default=t,ch}var r9e=Hn;ws.__esModule=!0;var M6=ws.default=void 0,a9e=r9e(OV()),o9e=function(t){return(0,a9e.default)("displayName",t)},i9e=o9e;M6=ws.default=i9e;var dh={},pL;function l9e(){if(pL)return dh;pL=1;var e=Hn;dh.__esModule=!0,dh.default=void 0;var t=ge;e(ws),e(Hf());var n=function(i){return function(o){var a=(0,t.createFactory)(o),s=function(c){return a(i(c))};return s}},r=n;return dh.default=r,dh}var d2=Hn;d2(jr());d2(Hf());d2(ws);d2(l9e());function s9e(e,t){for(var n=-1,r=e==null?0:e.length;++na))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=n&h9e?new c9e:void 0;for(i.set(e,t),i.set(t,e);++d{const e=document.querySelector("head");return e||mn(),e},n9=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function p3e(e,t){const n=cr(()=>d3e(e),[e]),r=ge.useRef(null),l=ge.useRef(null),i=$n(Ua(d=>{const f=l.current;f||mn(),f.textContent=d}),[]),o=$n(d=>{const f=r.current;f||mn(),f.textContent=d},[]);li(()=>{!r.current&&!l.current||mn();const d=n9(t),f=n9(t);return r.current=d,l.current=f,d.setAttribute(`${of}-always`,e),f.setAttribute(`${of}-dynamic`,e),y3().appendChild(d),y3().appendChild(f),o(n.always),i(n.resting),()=>{const p=h=>{const g=h.current;g||mn(),y3().removeChild(g),h.current=null};p(r),p(l)}},[t,o,i,n.always,n.resting,e]);const a=$n(()=>i(n.dragging),[i,n.dragging]),s=$n(d=>{if(d==="DROP"){i(n.dropAnimating);return}i(n.userCancel)},[i,n.dropAnimating,n.userCancel]),u=$n(()=>{l.current&&i(n.resting)},[i,n.resting]);return cr(()=>({dragging:a,dropping:s,resting:u}),[a,s,u])}function iU(e,t){return Array.from(e.querySelectorAll(t))}var lU=e=>{var t;return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)||window};function ix(e){return e instanceof lU(e).HTMLElement}function h3e(e,t){const n=`[${lf.contextId}="${e}"]`,r=iU(document,n);if(!r.length)return null;const l=r.find(i=>i.getAttribute(lf.draggableId)===t);return!l||!ix(l)?null:l}function m3e(e){const t=ge.useRef({}),n=ge.useRef(null),r=ge.useRef(null),l=ge.useRef(!1),i=$n(function(f,p){const h={id:f,focus:p};return t.current[f]=h,function(){const b=t.current;b[f]!==h&&delete b[f]}},[]),o=$n(function(f){const p=h3e(e,f);p&&p!==document.activeElement&&p.focus()},[e]),a=$n(function(f,p){n.current===f&&(n.current=p)},[]),s=$n(function(){r.current||l.current&&(r.current=requestAnimationFrame(()=>{r.current=null;const f=n.current;f&&o(f)}))},[o]),u=$n(function(f){n.current=null;const p=document.activeElement;p&&p.getAttribute(lf.draggableId)===f&&(n.current=f)},[]);return li(()=>(l.current=!0,function(){l.current=!1;const f=r.current;f&&cancelAnimationFrame(f)}),[]),cr(()=>({register:i,tryRecordFocus:u,tryRestoreFocusRecorded:s,tryShiftRecord:a}),[i,u,s,a])}function g3e(){const e={draggables:{},droppables:{}},t=[];function n(d){return t.push(d),function(){const p=t.indexOf(d);p!==-1&&t.splice(p,1)}}function r(d){t.length&&t.forEach(f=>f(d))}function l(d){return e.draggables[d]||null}function i(d){const f=l(d);return f||mn(),f}const o={register:d=>{e.draggables[d.descriptor.id]=d,r({type:"ADDITION",value:d})},update:(d,f)=>{const p=e.draggables[f.descriptor.id];p&&p.uniqueId===d.uniqueId&&(delete e.draggables[f.descriptor.id],e.draggables[d.descriptor.id]=d)},unregister:d=>{const f=d.descriptor.id,p=l(f);p&&d.uniqueId===p.uniqueId&&(delete e.draggables[f],e.droppables[d.descriptor.droppableId]&&r({type:"REMOVAL",value:d}))},getById:i,findById:l,exists:d=>!!l(d),getAllByType:d=>Object.values(e.draggables).filter(f=>f.descriptor.type===d)};function a(d){return e.droppables[d]||null}function s(d){const f=a(d);return f||mn(),f}const u={register:d=>{e.droppables[d.descriptor.id]=d},unregister:d=>{const f=a(d.descriptor.id);f&&d.uniqueId===f.uniqueId&&delete e.droppables[d.descriptor.id]},getById:s,findById:a,exists:d=>!!a(d),getAllByType:d=>Object.values(e.droppables).filter(f=>f.descriptor.type===d)};function c(){e.draggables={},e.droppables={},t.length=0}return{draggable:o,droppable:u,subscribe:n,clean:c}}function v3e(){const e=cr(g3e,[]);return ge.useEffect(()=>function(){Xe.version.startsWith("16")||Xe.version.startsWith("17")?requestAnimationFrame(e.clean):e.clean()},[e]),e}var w4=Xe.createContext(null),jy=()=>{const e=document.body;return e||mn(),e};const y3e={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};var b3e=y3e;const x3e=e=>`rfd-announcement-${e}`;function w3e(e){const t=cr(()=>x3e(e),[e]),n=ge.useRef(null);return ge.useEffect(function(){const i=document.createElement("div");return n.current=i,i.id=t,i.setAttribute("aria-live","assertive"),i.setAttribute("aria-atomic","true"),Yt(i.style,b3e),jy().appendChild(i),function(){setTimeout(function(){const s=jy();s.contains(i)&&s.removeChild(i),i===n.current&&(n.current=null)})}},[t]),$n(l=>{const i=n.current;if(i){i.textContent=l;return}},[])}let sU=0;const uU={separator:"::"};function _3e(){sU=0}function T3e(e,t){return t===void 0&&(t=uU),cr(()=>`${e}${t.separator}${sU++}`,[t.separator,e])}function S3e(e,t){t===void 0&&(t=uU);const n=Xe.useId();return cr(()=>`${e}${t.separator}${n}`,[t.separator,e,n])}var _4="useId"in Xe?S3e:T3e;function k3e(e){let{contextId:t,uniqueId:n}=e;return`rfd-hidden-text-${t}-${n}`}function C3e(e){let{contextId:t,text:n}=e;const r=_4("hidden-text",{separator:"-"}),l=cr(()=>k3e({contextId:t,uniqueId:r}),[r,t]);return ge.useEffect(function(){const o=document.createElement("div");return o.id=l,o.textContent=n,o.style.display="none",jy().appendChild(o),function(){const s=jy();s.contains(o)&&s.removeChild(o)}},[l,n]),l}var lx=Xe.createContext(null);function cU(e){const t=ge.useRef(e);return ge.useEffect(()=>{t.current=e}),t}function M3e(){let e=null;function t(){return!!e}function n(o){return o===e}function r(o){e&&mn();const a={abandon:o};return e=a,a}function l(){e||mn(),e=null}function i(){e&&(e.abandon(),l())}return{isClaimed:t,isActive:n,claim:r,release:l,tryAbandon:i}}function Im(e){return e.phase==="IDLE"||e.phase==="DROP_ANIMATING"?!1:e.isDragging}const P3e=9,O3e=13,T4=27,dU=32,A3e=33,D3e=34,E3e=35,R3e=36,L3e=37,I3e=38,$3e=39,N3e=40,F3e={[O3e]:!0,[P3e]:!0};var fU=e=>{F3e[e.keyCode]&&e.preventDefault()};const j3e=(()=>{const e="visibilitychange";return typeof document>"u"?e:[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find(r=>`on${r}`in document)||e})();var sx=j3e;const pU=0,r9=5;function z3e(e,t){return Math.abs(t.x-e.x)>=r9||Math.abs(t.y-e.y)>=r9}const a9={type:"IDLE"};function B3e(e){let{cancel:t,completed:n,getPhase:r,setPhase:l}=e;return[{eventName:"mousemove",fn:i=>{const{button:o,clientX:a,clientY:s}=i;if(o!==pU)return;const u={x:a,y:s},c=r();if(c.type==="DRAGGING"){i.preventDefault(),c.actions.move(u);return}c.type!=="PENDING"&&mn();const d=c.point;if(!z3e(d,u))return;i.preventDefault();const f=c.actions.fluidLift(u);l({type:"DRAGGING",actions:f})}},{eventName:"mouseup",fn:i=>{const o=r();if(o.type!=="DRAGGING"){t();return}i.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"mousedown",fn:i=>{r().type==="DRAGGING"&&i.preventDefault(),t()}},{eventName:"keydown",fn:i=>{if(r().type==="PENDING"){t();return}if(i.keyCode===T4){i.preventDefault(),t();return}fU(i)}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{r().type==="PENDING"&&t()}},{eventName:"webkitmouseforcedown",fn:i=>{const o=r();if(o.type==="IDLE"&&mn(),o.actions.shouldRespectForcePress()){t();return}i.preventDefault()}},{eventName:sx,fn:t}]}function hU(e){const t=ge.useRef(a9),n=ge.useRef(Zs),r=cr(()=>({eventName:"mousedown",fn:function(d){if(d.defaultPrevented||d.button!==pU||d.ctrlKey||d.metaKey||d.shiftKey||d.altKey)return;const f=e.findClosestDraggableId(d);if(!f)return;const p=e.tryGetLock(f,o,{sourceEvent:d});if(!p)return;d.preventDefault();const h={x:d.clientX,y:d.clientY};n.current(),u(p,h)}}),[e]),l=cr(()=>({eventName:"webkitmouseforcewillbegin",fn:c=>{if(c.defaultPrevented)return;const d=e.findClosestDraggableId(c);if(!d)return;const f=e.findOptionsForDraggable(d);f&&(f.shouldRespectForcePress||e.canGetLock(d)&&c.preventDefault())}}),[e]),i=$n(function(){const d={passive:!1,capture:!0};n.current=Pi(window,[l,r],d)},[l,r]),o=$n(()=>{t.current.type!=="IDLE"&&(t.current=a9,n.current(),i())},[i]),a=$n(()=>{const c=t.current;o(),c.type==="DRAGGING"&&c.actions.cancel({shouldBlockNextClick:!0}),c.type==="PENDING"&&c.actions.abort()},[o]),s=$n(function(){const d={capture:!0,passive:!1},f=B3e({cancel:a,completed:o,getPhase:()=>t.current,setPhase:p=>{t.current=p}});n.current=Pi(window,f,d)},[a,o]),u=$n(function(d,f){t.current.type!=="IDLE"&&mn(),t.current={type:"PENDING",point:f,actions:d},s()},[s]);li(function(){return i(),function(){n.current()}},[i])}function W3e(){}const q3e={[D3e]:!0,[A3e]:!0,[R3e]:!0,[E3e]:!0};function U3e(e,t){function n(){t(),e.cancel()}function r(){t(),e.drop()}return[{eventName:"keydown",fn:l=>{if(l.keyCode===T4){l.preventDefault(),n();return}if(l.keyCode===dU){l.preventDefault(),r();return}if(l.keyCode===N3e){l.preventDefault(),e.moveDown();return}if(l.keyCode===I3e){l.preventDefault(),e.moveUp();return}if(l.keyCode===$3e){l.preventDefault(),e.moveRight();return}if(l.keyCode===L3e){l.preventDefault(),e.moveLeft();return}if(q3e[l.keyCode]){l.preventDefault();return}fU(l)}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:sx,fn:n}]}function mU(e){const t=ge.useRef(W3e),n=cr(()=>({eventName:"keydown",fn:function(i){if(i.defaultPrevented||i.keyCode!==dU)return;const o=e.findClosestDraggableId(i);if(!o)return;const a=e.tryGetLock(o,c,{sourceEvent:i});if(!a)return;i.preventDefault();let s=!0;const u=a.snapLift();t.current();function c(){s||mn(),s=!1,t.current(),r()}t.current=Pi(window,U3e(u,c),{capture:!0,passive:!1})}}),[e]),r=$n(function(){const i={passive:!1,capture:!0};t.current=Pi(window,[n],i)},[n]);li(function(){return r(),function(){t.current()}},[r])}const b3={type:"IDLE"},H3e=120,V3e=.15;function G3e(e){let{cancel:t,getPhase:n}=e;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:r=>{r.preventDefault()}},{eventName:"keydown",fn:r=>{if(n().type!=="DRAGGING"){t();return}r.keyCode===T4&&r.preventDefault(),t()}},{eventName:sx,fn:t}]}function Y3e(e){let{cancel:t,completed:n,getPhase:r}=e;return[{eventName:"touchmove",options:{capture:!1},fn:l=>{const i=r();if(i.type!=="DRAGGING"){t();return}i.hasMoved=!0;const{clientX:o,clientY:a}=l.touches[0],s={x:o,y:a};l.preventDefault(),i.actions.move(s)}},{eventName:"touchend",fn:l=>{const i=r();if(i.type!=="DRAGGING"){t();return}l.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"touchcancel",fn:l=>{if(r().type!=="DRAGGING"){t();return}l.preventDefault(),t()}},{eventName:"touchforcechange",fn:l=>{const i=r();i.type==="IDLE"&&mn();const o=l.touches[0];if(!o||!(o.force>=V3e))return;const s=i.actions.shouldRespectForcePress();if(i.type==="PENDING"){s&&t();return}if(s){if(i.hasMoved){l.preventDefault();return}t();return}l.preventDefault()}},{eventName:sx,fn:t}]}function gU(e){const t=ge.useRef(b3),n=ge.useRef(Zs),r=$n(function(){return t.current},[]),l=$n(function(p){t.current=p},[]),i=cr(()=>({eventName:"touchstart",fn:function(p){if(p.defaultPrevented)return;const h=e.findClosestDraggableId(p);if(!h)return;const g=e.tryGetLock(h,a,{sourceEvent:p});if(!g)return;const b=p.touches[0],{clientX:v,clientY:m}=b,y={x:v,y:m};n.current(),d(g,y)}}),[e]),o=$n(function(){const p={capture:!0,passive:!1};n.current=Pi(window,[i],p)},[i]),a=$n(()=>{const f=t.current;f.type!=="IDLE"&&(f.type==="PENDING"&&clearTimeout(f.longPressTimerId),l(b3),n.current(),o())},[o,l]),s=$n(()=>{const f=t.current;a(),f.type==="DRAGGING"&&f.actions.cancel({shouldBlockNextClick:!0}),f.type==="PENDING"&&f.actions.abort()},[a]),u=$n(function(){const p={capture:!0,passive:!1},h={cancel:s,completed:a,getPhase:r},g=Pi(window,Y3e(h),p),b=Pi(window,G3e(h),p);n.current=function(){g(),b()}},[s,r,a]),c=$n(function(){const p=r();p.type!=="PENDING"&&mn();const h=p.actions.fluidLift(p.point);l({type:"DRAGGING",actions:h,hasMoved:!1})},[r,l]),d=$n(function(p,h){r().type!=="IDLE"&&mn();const g=setTimeout(c,H3e);l({type:"PENDING",point:h,actions:p,longPressTimerId:g}),u()},[u,r,l,c]);li(function(){return o(),function(){n.current();const h=r();h.type==="PENDING"&&(clearTimeout(h.longPressTimerId),l(b3))}},[r,o,l]),li(function(){return Pi(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}const X3e=["input","button","textarea","select","option","optgroup","video","audio"];function vU(e,t){if(t==null)return!1;if(X3e.includes(t.tagName.toLowerCase()))return!0;const r=t.getAttribute("contenteditable");return r==="true"||r===""?!0:t===e?!1:vU(e,t.parentElement)}function K3e(e,t){const n=t.target;return ix(n)?vU(e,n):!1}var Z3e=e=>nl(e.getBoundingClientRect()).center;function Q3e(e){return e instanceof lU(e).Element}const J3e=(()=>{const e="matches";return typeof document>"u"?e:[e,"msMatchesSelector","webkitMatchesSelector"].find(r=>r in Element.prototype)||e})();function yU(e,t){return e==null?null:e[J3e](t)?e:yU(e.parentElement,t)}function eTe(e,t){return e.closest?e.closest(t):yU(e,t)}function tTe(e){return`[${lf.contextId}="${e}"]`}function nTe(e,t){const n=t.target;if(!Q3e(n))return null;const r=tTe(e),l=eTe(n,r);return!l||!ix(l)?null:l}function rTe(e,t){const n=nTe(e,t);return n?n.getAttribute(lf.draggableId):null}function aTe(e,t){const n=`[${ek.contextId}="${e}"]`,l=iU(document,n).find(i=>i.getAttribute(ek.id)===t);return!l||!ix(l)?null:l}function oTe(e){e.preventDefault()}function $0(e){let{expected:t,phase:n,isLockActive:r,shouldWarn:l}=e;return!(!r()||t!==n)}function bU(e){let{lockAPI:t,store:n,registry:r,draggableId:l}=e;if(t.isClaimed())return!1;const i=r.draggable.findById(l);return!(!i||!i.options.isEnabled||!nU(n.getState(),l))}function iTe(e){let{lockAPI:t,contextId:n,store:r,registry:l,draggableId:i,forceSensorStop:o,sourceEvent:a}=e;if(!bU({lockAPI:t,store:r,registry:l,draggableId:i}))return null;const u=l.draggable.getById(i),c=aTe(n,u.descriptor.id);if(!c||a&&!u.options.canDragInteractiveElements&&K3e(c,a))return null;const d=t.claim(o||Zs);let f="PRE_DRAG";function p(){return u.options.shouldRespectForcePress}function h(){return t.isActive(d)}function g(w,S){$0({expected:w,phase:f,isLockActive:h,shouldWarn:!0})&&r.dispatch(S())}const b=g.bind(null,"DRAGGING");function v(w){function S(){t.release(),f="COMPLETED"}f!=="PRE_DRAG"&&(S(),mn()),r.dispatch(Gwe(w.liftActionArgs)),f="DRAGGING";function k(C,T){if(T===void 0&&(T={shouldBlockNextClick:!1}),w.cleanup(),T.shouldBlockNextClick){const M=Pi(window,[{eventName:"click",fn:oTe,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(M)}S(),r.dispatch(Yq({reason:C}))}return{isActive:()=>$0({expected:"DRAGGING",phase:f,isLockActive:h,shouldWarn:!1}),shouldRespectForcePress:p,drop:C=>k("DROP",C),cancel:C=>k("CANCEL",C),...w.actions}}function m(w){const S=Om(C=>{b(()=>Gq({client:C}))});return{...v({liftActionArgs:{id:i,clientSelection:w,movementMode:"FLUID"},cleanup:()=>S.cancel(),actions:{move:S}}),move:S}}function y(){const w={moveUp:()=>b(n_e),moveRight:()=>b(a_e),moveDown:()=>b(r_e),moveLeft:()=>b(o_e)};return v({liftActionArgs:{id:i,clientSelection:Z3e(c),movementMode:"SNAP"},cleanup:Zs,actions:w})}function x(){$0({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!0})&&t.release()}return{isActive:()=>$0({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!1}),shouldRespectForcePress:p,fluidLift:m,snapLift:y,abort:x}}const lTe=[hU,mU,gU];function sTe(e){let{contextId:t,store:n,registry:r,customSensors:l,enableDefaultSensors:i}=e;const o=[...i?lTe:[],...l||[]],a=ge.useState(()=>M3e())[0],s=$n(function(v,m){Im(v)&&!Im(m)&&a.tryAbandon()},[a]);li(function(){let v=n.getState();return n.subscribe(()=>{const y=n.getState();s(v,y),v=y})},[a,n,s]),li(()=>a.tryAbandon,[a.tryAbandon]);const u=$n(b=>bU({lockAPI:a,registry:r,store:n,draggableId:b}),[a,r,n]),c=$n((b,v,m)=>iTe({lockAPI:a,registry:r,contextId:t,store:n,draggableId:b,forceSensorStop:v||null,sourceEvent:m&&m.sourceEvent?m.sourceEvent:null}),[t,a,r,n]),d=$n(b=>rTe(t,b),[t]),f=$n(b=>{const v=r.draggable.findById(b);return v?v.options:null},[r.draggable]),p=$n(function(){a.isClaimed()&&(a.tryAbandon(),n.getState().phase!=="IDLE"&&n.dispatch(h4()))},[a,n]),h=$n(()=>a.isClaimed(),[a]),g=cr(()=>({canGetLock:u,tryGetLock:c,findClosestDraggableId:d,findOptionsForDraggable:f,tryReleaseLock:p,isLockClaimed:h}),[u,c,d,f,p,h]);for(let b=0;b({onBeforeCapture:t=>{const n=()=>{e.onBeforeCapture&&e.onBeforeCapture(t)};Xe.version.startsWith("16")||Xe.version.startsWith("17")?n():bf.flushSync(n)},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}),cTe=e=>({...Lm,...e.autoScrollerOptions,durationDampening:{...Lm.durationDampening,...e.autoScrollerOptions}});function jp(e){return e.current||mn(),e.current}function dTe(e){const{contextId:t,setCallbacks:n,sensors:r,nonce:l,dragHandleUsageInstructions:i}=e,o=ge.useRef(null),a=cU(e),s=$n(()=>uTe(a.current),[a]),u=$n(()=>cTe(a.current),[a]),c=w3e(t),d=C3e({contextId:t,text:i}),f=p3e(t,l),p=$n(T=>{jp(o).dispatch(T)},[]),h=cr(()=>EE({publishWhileDragging:Xwe,updateDroppableScroll:Zwe,updateDroppableIsEnabled:Qwe,updateDroppableIsCombineEnabled:Jwe,collectionStarting:Kwe},p),[p]),g=v3e(),b=cr(()=>U_e(g,h),[g,h]),v=cr(()=>l3e({scrollWindow:H_e,scrollDroppable:b.scrollDroppable,getAutoScrollerOptions:u,...EE({move:Gq},p)}),[b.scrollDroppable,p,u]),m=m3e(t),y=cr(()=>z_e({announce:c,autoScroller:v,dimensionMarshal:b,focusMarshal:m,getResponders:s,styleMarshal:f}),[c,v,b,m,s,f]);o.current=y;const x=$n(()=>{const T=jp(o);T.getState().phase!=="IDLE"&&T.dispatch(h4())},[]),_=$n(()=>{const T=jp(o).getState();return T.phase==="DROP_ANIMATING"?!0:T.phase==="IDLE"?!1:T.isDragging},[]),w=cr(()=>({isDragging:_,tryAbort:x}),[_,x]);n(w);const S=$n(T=>nU(jp(o).getState(),T),[]),k=$n(()=>Ru(jp(o).getState()),[]),C=cr(()=>({marshal:b,focus:m,contextId:t,canLift:S,isMovementAllowed:k,dragHandleUsageInstructionsId:d,registry:g}),[t,b,d,m,S,k,g]);return sTe({contextId:t,store:y,registry:g,customSensors:r||null,enableDefaultSensors:e.enableDefaultSensors!==!1}),ge.useEffect(()=>x,[x]),Xe.createElement(lx.Provider,{value:C},Xe.createElement(S2e,{context:w4,store:y},e.children))}let xU=0;function fTe(){xU=0}function pTe(){return cr(()=>`${xU++}`,[])}function hTe(){return Xe.useId()}var mTe="useId"in Xe?hTe:pTe;function gTe(){"useId"in Xe||(fTe(),_3e())}function vTe(e){const t=mTe(),n=e.dragHandleUsageInstructions||_v.dragHandleUsageInstructions;return Xe.createElement(I2e,null,r=>Xe.createElement(dTe,{nonce:e.nonce,contextId:t,setCallbacks:r,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children))}const o9={dragging:5e3,dropAnimating:4500},yTe=(e,t)=>t?Qh.drop(t.duration):e?Qh.snap:Qh.fluid,bTe=(e,t)=>{if(e)return t?Rm.opacity.drop:Rm.opacity.combining},xTe=e=>e.forceShouldAnimate!=null?e.forceShouldAnimate:e.mode==="SNAP";function wTe(e){const n=e.dimension.client,{offset:r,combineWith:l,dropping:i}=e,o=!!l,a=xTe(e),s=!!i,u=s?QS.drop(r,o):QS.moveTo(r);return{position:"fixed",top:n.marginBox.top,left:n.marginBox.left,boxSizing:"border-box",width:n.borderBox.width,height:n.borderBox.height,transition:yTe(a,i),transform:u,opacity:bTe(o,s),zIndex:s?o9.dropAnimating:o9.dragging,pointerEvents:"none"}}function _Te(e){return{transform:QS.moveTo(e.offset),transition:e.shouldAnimateDisplacement?void 0:"none"}}function TTe(e){return e.type==="DRAGGING"?wTe(e):_Te(e)}function STe(e,t,n){n===void 0&&(n=Ha);const r=window.getComputedStyle(t),l=t.getBoundingClientRect(),i=_q(l,r),o=Iy(i,n),a={client:i,tagName:t.tagName.toLowerCase(),display:r.display},s={x:i.marginBox.width,y:i.marginBox.height};return{descriptor:e,placeholder:a,displaceBy:s,client:i,page:o}}function kTe(e){const t=_4("draggable"),{descriptor:n,registry:r,getDraggableRef:l,canDragInteractiveElements:i,shouldRespectForcePress:o,isEnabled:a}=e,s=cr(()=>({canDragInteractiveElements:i,shouldRespectForcePress:o,isEnabled:a}),[i,a,o]),u=$n(p=>{const h=l();return h||mn(),STe(n,h,p)},[n,l]),c=cr(()=>({uniqueId:t,descriptor:n,options:s,getDimension:u}),[n,u,s,t]),d=ge.useRef(c),f=ge.useRef(!0);li(()=>(r.draggable.register(d.current),()=>r.draggable.unregister(d.current)),[r.draggable]),li(()=>{if(f.current){f.current=!1;return}const p=d.current;d.current=c,r.draggable.update(c,p)},[c,r.draggable])}var S4=Xe.createContext(null);function zy(e){const t=ge.useContext(e);return t||mn(),t}function CTe(e){e.preventDefault()}const MTe=e=>{const t=ge.useRef(null),n=$n(function(w){w===void 0&&(w=null),t.current=w},[]),r=$n(()=>t.current,[]),{contextId:l,dragHandleUsageInstructionsId:i,registry:o}=zy(lx),{type:a,droppableId:s}=zy(S4),u=cr(()=>({id:e.draggableId,index:e.index,type:a,droppableId:s}),[e.draggableId,e.index,a,s]),{children:c,draggableId:d,isEnabled:f,shouldRespectForcePress:p,canDragInteractiveElements:h,isClone:g,mapped:b,dropAnimationFinished:v}=e;if(!g){const w=cr(()=>({descriptor:u,registry:o,getDraggableRef:r,canDragInteractiveElements:h,shouldRespectForcePress:p,isEnabled:f}),[u,o,r,h,p,f]);kTe(w)}const m=cr(()=>f?{tabIndex:0,role:"button","aria-describedby":i,"data-rfd-drag-handle-draggable-id":d,"data-rfd-drag-handle-context-id":l,draggable:!1,onDragStart:CTe}:null,[l,i,d,f]),y=$n(w=>{b.type==="DRAGGING"&&b.dropping&&w.propertyName==="transform"&&(Xe.version.startsWith("16")||Xe.version.startsWith("17")?v():bf.flushSync(v))},[v,b]),x=cr(()=>{const w=TTe(b),S=b.type==="DRAGGING"&&b.dropping?y:void 0;return{innerRef:n,draggableProps:{"data-rfd-draggable-context-id":l,"data-rfd-draggable-id":d,style:w,onTransitionEnd:S},dragHandleProps:m}},[l,m,d,b,y,n]),_=cr(()=>({draggableId:u.id,type:u.type,source:{index:u.index,droppableId:u.droppableId}}),[u.droppableId,u.id,u.index,u.type]);return Xe.createElement(Xe.Fragment,null,c(x,b.snapshot,_))};var PTe=MTe,wU=(e,t)=>e===t,_U=e=>{const{combine:t,destination:n}=e;return n?n.droppableId:t?t.droppableId:null};const OTe=e=>e.combine?e.combine.draggableId:null,ATe=e=>e.at&&e.at.type==="COMBINE"?e.at.combine.draggableId:null;function DTe(){const e=Ua((l,i)=>({x:l,y:i})),t=Ua(function(l,i,o,a,s){return o===void 0&&(o=null),a===void 0&&(a=null),s===void 0&&(s=null),{isDragging:!0,isClone:i,isDropAnimating:!!s,dropAnimation:s,mode:l,draggingOver:o,combineWith:a,combineTargetFor:null}}),n=Ua(function(l,i,o,a,s,u,c){return s===void 0&&(s=null),u===void 0&&(u=null),c===void 0&&(c=null),{mapped:{type:"DRAGGING",dropping:null,draggingOver:s,combineWith:u,mode:i,offset:l,dimension:o,forceShouldAnimate:c,snapshot:t(i,a,s,u,null)}}});return(l,i)=>{if(Im(l)){if(l.critical.draggable.id!==i.draggableId)return null;const o=l.current.client.offset,a=l.dimensions.draggables[i.draggableId],s=ii(l.impact),u=ATe(l.impact),c=l.forceShouldAnimate;return n(e(o.x,o.y),l.movementMode,a,i.isClone,s,u,c)}if(l.phase==="DROP_ANIMATING"){const o=l.completed;if(o.result.draggableId!==i.draggableId)return null;const a=i.isClone,s=l.dimensions.draggables[i.draggableId],u=o.result,c=u.mode,d=_U(u),f=OTe(u),h={duration:l.dropDuration,curve:g4.drop,moveTo:l.newHomeClientOffset,opacity:f?Rm.opacity.drop:null,scale:f?Rm.scale.drop:null};return{mapped:{type:"DRAGGING",offset:l.newHomeClientOffset,dimension:s,dropping:h,draggingOver:d,combineWith:f,mode:c,forceShouldAnimate:null,snapshot:t(c,a,d,f,h)}}}return null}}function TU(e){return e===void 0&&(e=null),{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const ETe={mapped:{type:"SECONDARY",offset:Ha,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:TU(null)}};function RTe(){const e=Ua((o,a)=>({x:o,y:a})),t=Ua(TU),n=Ua(function(o,a,s){return a===void 0&&(a=null),{mapped:{type:"SECONDARY",offset:o,combineTargetFor:a,shouldAnimateDisplacement:s,snapshot:t(a)}}}),r=o=>o?n(Ha,o,!0):null,l=(o,a,s,u)=>{const c=s.displaced.visible[o],d=!!(u.inVirtualList&&u.effected[o]),f=rx(s),p=f&&f.draggableId===o?a:null;if(!c){if(!d)return r(p);if(s.displaced.invisible[o])return null;const b=Pf(u.displacedBy.point),v=e(b.x,b.y);return n(v,p,!0)}if(d)return r(p);const h=s.displacedBy.point,g=e(h.x,h.y);return n(g,p,c.shouldAnimate)};return(o,a)=>{if(Im(o))return o.critical.draggable.id===a.draggableId?null:l(a.draggableId,o.critical.draggable.id,o.impact,o.afterCritical);if(o.phase==="DROP_ANIMATING"){const s=o.completed;return s.result.draggableId===a.draggableId?null:l(a.draggableId,s.result.draggableId,s.impact,s.afterCritical)}return null}}const LTe=()=>{const e=DTe(),t=RTe();return(r,l)=>e(r,l)||t(r,l)||ETe},ITe={dropAnimationFinished:Xq},$Te=xq(LTe,ITe,null,{context:w4,areStatePropsEqual:wU})(PTe);var NTe=$Te;function SU(e){return zy(S4).isUsingCloneFor===e.draggableId&&!e.isClone?null:Xe.createElement(NTe,e)}function FTe(e){const t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,n=!!e.disableInteractiveElementBlocking,r=!!e.shouldRespectForcePress;return Xe.createElement(SU,Yt({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:r}))}const kU=e=>t=>e===t,jTe=kU("scroll"),zTe=kU("auto"),i9=(e,t)=>t(e.overflowX)||t(e.overflowY),BTe=e=>{const t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return i9(n,jTe)||i9(n,zTe)},WTe=()=>!1,CU=e=>e==null?null:e===document.body?WTe()?e:null:e===document.documentElement?null:BTe(e)?e:CU(e.parentElement);var qTe=CU,tk=e=>({x:e.scrollLeft,y:e.scrollTop});const MU=e=>e?window.getComputedStyle(e).position==="fixed"?!0:MU(e.parentElement):!1;var UTe=e=>{const t=qTe(e),n=MU(e);return{closestScrollable:t,isFixedOnPage:n}},HTe=e=>{let{descriptor:t,isEnabled:n,isCombineEnabled:r,isFixedOnPage:l,direction:i,client:o,page:a,closest:s}=e;const u=(()=>{if(!s)return null;const{scrollSize:p,client:h}=s,g=Jq({scrollHeight:p.scrollHeight,scrollWidth:p.scrollWidth,height:h.paddingBox.height,width:h.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:h,scrollSize:p,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:g,diff:{value:Ha,displacement:Ha}}}})(),c=i==="vertical"?u4:Eq,d=af({page:a,withPlaceholder:null,axis:c,frame:u});return{descriptor:t,isCombineEnabled:r,isFixedOnPage:l,axis:c,isEnabled:n,client:o,page:a,frame:u,subject:d}};const VTe=(e,t)=>{const n=Tq(e);if(!t||e!==t)return n;const r=n.paddingBox.top-t.scrollTop,l=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,o=l+t.scrollWidth,s=o4({top:r,right:o,bottom:i,left:l},n.border);return i4({borderBox:s,margin:n.margin,border:n.border,padding:n.padding})};var GTe=e=>{let{ref:t,descriptor:n,env:r,windowScroll:l,direction:i,isDropDisabled:o,isCombineEnabled:a,shouldClipSubject:s}=e;const u=r.closestScrollable,c=VTe(t,u),d=Iy(c,l),f=(()=>{if(!u)return null;const h=Tq(u),g={scrollHeight:u.scrollHeight,scrollWidth:u.scrollWidth};return{client:h,page:Iy(h,l),scroll:tk(u),scrollSize:g,shouldClipSubject:s}})();return HTe({descriptor:n,isEnabled:!o,isCombineEnabled:a,isFixedOnPage:r.isFixedOnPage,direction:i,client:c,page:d,closest:f})};const YTe={passive:!1},XTe={passive:!0};var l9=e=>e.shouldPublishImmediately?YTe:XTe;const N0=e=>e&&e.env.closestScrollable||null;function KTe(e){const t=ge.useRef(null),n=zy(lx),r=_4("droppable"),{registry:l,marshal:i}=n,o=cU(e),a=cr(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),s=ge.useRef(a),u=cr(()=>Ua((x,_)=>{t.current||mn();const w={x,y:_};i.updateDroppableScroll(a.id,w)}),[a.id,i]),c=$n(()=>{const x=t.current;return!x||!x.env.closestScrollable?Ha:tk(x.env.closestScrollable)},[]),d=$n(()=>{const x=c();u(x.x,x.y)},[c,u]),f=cr(()=>Om(d),[d]),p=$n(()=>{const x=t.current,_=N0(x);if(x&&_||mn(),x.scrollOptions.shouldPublishImmediately){d();return}f()},[f,d]),h=$n((x,_)=>{t.current&&mn();const w=o.current,S=w.getDroppableRef();S||mn();const k=UTe(S),C={ref:S,descriptor:a,env:k,scrollOptions:_};t.current=C;const T=GTe({ref:S,descriptor:a,env:k,windowScroll:x,direction:w.direction,isDropDisabled:w.isDropDisabled,isCombineEnabled:w.isCombineEnabled,shouldClipSubject:!w.ignoreContainerClipping}),M=k.closestScrollable;return M&&(M.setAttribute(t9.contextId,n.contextId),M.addEventListener("scroll",p,l9(C.scrollOptions))),T},[n.contextId,a,p,o]),g=$n(()=>{const x=t.current,_=N0(x);return x&&_||mn(),tk(_)},[]),b=$n(()=>{const x=t.current;x||mn();const _=N0(x);t.current=null,_&&(f.cancel(),_.removeAttribute(t9.contextId),_.removeEventListener("scroll",p,l9(x.scrollOptions)))},[p,f]),v=$n(x=>{const _=t.current;_||mn();const w=N0(_);w||mn(),w.scrollTop+=x.y,w.scrollLeft+=x.x},[]),m=cr(()=>({getDimensionAndWatchScroll:h,getScrollWhileDragging:g,dragStopped:b,scroll:v}),[b,h,g,v]),y=cr(()=>({uniqueId:r,descriptor:a,callbacks:m}),[m,a,r]);li(()=>(s.current=y.descriptor,l.droppable.register(y),()=>{t.current&&b(),l.droppable.unregister(y)}),[m,a,b,y,i,l.droppable]),li(()=>{t.current&&i.updateDroppableIsEnabled(s.current.id,!e.isDropDisabled)},[e.isDropDisabled,i]),li(()=>{t.current&&i.updateDroppableIsCombineEnabled(s.current.id,e.isCombineEnabled)},[e.isCombineEnabled,i])}function x3(){}const s9={width:0,height:0,margin:W2e},ZTe=e=>{let{isAnimatingOpenOnMount:t,placeholder:n,animate:r}=e;return t||r==="close"?s9:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}},QTe=e=>{let{isAnimatingOpenOnMount:t,placeholder:n,animate:r}=e;const l=ZTe({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:l.width,height:l.height,marginTop:l.margin.top,marginRight:l.margin.right,marginBottom:l.margin.bottom,marginLeft:l.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:r!=="none"?Qh.placeholder:null}},JTe=e=>{const t=ge.useRef(null),n=$n(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]),{animate:r,onTransitionEnd:l,onClose:i,contextId:o}=e,[a,s]=ge.useState(e.animate==="open");ge.useEffect(()=>a?r!=="open"?(n(),s(!1),x3):t.current?x3:(t.current=setTimeout(()=>{t.current=null,s(!1)}),n):x3,[r,a,n]);const u=$n(d=>{d.propertyName==="height"&&(l(),r==="close"&&i())},[r,i,l]),c=QTe({isAnimatingOpenOnMount:a,animate:e.animate,placeholder:e.placeholder});return Xe.createElement(e.placeholder.tagName,{style:c,"data-rfd-placeholder-context-id":o,onTransitionEnd:u,ref:e.innerRef})};var eSe=Xe.memo(JTe);class tSe extends Xe.PureComponent{constructor(){super(...arguments),this.state={isVisible:!!this.props.on,data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{this.state.animate==="close"&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(t,n){return t.shouldAnimate?t.on?{isVisible:!0,data:t.on,animate:"open"}:n.isVisible?{isVisible:!0,data:n.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!t.on,data:t.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const t={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(t)}}const nSe=e=>{const t=ge.useContext(lx);t||mn();const{contextId:n,isMovementAllowed:r}=t,l=ge.useRef(null),i=ge.useRef(null),{children:o,droppableId:a,type:s,mode:u,direction:c,ignoreContainerClipping:d,isDropDisabled:f,isCombineEnabled:p,snapshot:h,useClone:g,updateViewportMaxScroll:b,getContainerForClone:v}=e,m=$n(()=>l.current,[]),y=$n(function(M){M===void 0&&(M=null),l.current=M},[]);$n(()=>i.current,[]);const x=$n(function(M){M===void 0&&(M=null),i.current=M},[]),_=$n(()=>{r()&&b({maxScroll:tU()})},[r,b]);KTe({droppableId:a,type:s,mode:u,direction:c,isDropDisabled:f,isCombineEnabled:p,ignoreContainerClipping:d,getDroppableRef:m});const w=cr(()=>Xe.createElement(tSe,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},M=>{let{onClose:O,data:D,animate:P}=M;return Xe.createElement(eSe,{placeholder:D,onClose:O,innerRef:x,animate:P,contextId:n,onTransitionEnd:_})}),[n,_,e.placeholder,e.shouldAnimatePlaceholder,x]),S=cr(()=>({innerRef:y,placeholder:w,droppableProps:{"data-rfd-droppable-id":a,"data-rfd-droppable-context-id":n}}),[n,a,w,y]),k=g?g.dragging.draggableId:null,C=cr(()=>({droppableId:a,type:s,isUsingCloneFor:k}),[a,k,s]);function T(){if(!g)return null;const{dragging:M,render:O}=g,D=Xe.createElement(SU,{draggableId:M.draggableId,index:M.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(P,E)=>O(P,E,M));return Sh.createPortal(D,v())}return Xe.createElement(S4.Provider,{value:C},o(S,h),T())};var rSe=nSe;function aSe(){return document.body||mn(),document.body}const u9={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:aSe},PU=e=>{let t={...e},n;for(n in u9)e[n]===void 0&&(t={...t,[n]:u9[n]});return t},w3=(e,t)=>e===t.droppable.type,c9=(e,t)=>t.draggables[e.draggable.id],oSe=()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},n=Ua(i=>({draggableId:i.id,type:i.type,source:{index:i.index,droppableId:i.droppableId}})),r=Ua((i,o,a,s,u,c)=>{const d=u.descriptor.id;if(u.descriptor.droppableId===i){const h=c?{render:c,dragging:n(u.descriptor)}:null,g={isDraggingOver:a,draggingOverWith:a?d:null,draggingFromThisWith:d,isUsingPlaceholder:!0};return{placeholder:u.placeholder,shouldAnimatePlaceholder:!1,snapshot:g,useClone:h}}if(!o)return t;if(!s)return e;const p={isDraggingOver:a,draggingOverWith:d,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:u.placeholder,shouldAnimatePlaceholder:!0,snapshot:p,useClone:null}});return(i,o)=>{const a=PU(o),s=a.droppableId,u=a.type,c=!a.isDropDisabled,d=a.renderClone;if(Im(i)){const f=i.critical;if(!w3(u,f))return t;const p=c9(f,i.dimensions),h=ii(i.impact)===s;return r(s,c,h,h,p,d)}if(i.phase==="DROP_ANIMATING"){const f=i.completed;if(!w3(u,f.critical))return t;const p=c9(f.critical,i.dimensions);return r(s,c,_U(f.result)===s,ii(f.impact)===s,p,d)}if(i.phase==="IDLE"&&i.completed&&!i.shouldFlush){const f=i.completed;if(!w3(u,f.critical))return t;const p=ii(f.impact)===s,h=!!(f.impact.at&&f.impact.at.type==="COMBINE"),g=f.critical.droppable.id===s;return p?h?e:t:g?e:t}return t}},iSe={updateViewportMaxScroll:t_e},lSe=xq(oSe,iSe,(e,t,n)=>({...PU(n),...e,...t}),{context:w4,areStatePropsEqual:wU})(rSe);var sSe=lSe;const uSe=Object.freeze(Object.defineProperty({__proto__:null,DragDropContext:vTe,Draggable:FTe,Droppable:sSe,resetServerContext:gTe,useKeyboardSensor:mU,useMouseSensor:hU,useTouchSensor:gU},Symbol.toStringTag,{value:"Module"})),k4=er(uSe);var d9;function cSe(){return d9||(d9=1,function(e){var t=Hn,n=Pa();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(jr()),l=t(kc),i=t(za()),o=t(fq),a=t(Qxe),s=t(tx),u=t(Kr),c=g(ge),d=k4,f=sl(),p=mg();function h(x){if(typeof WeakMap!="function")return null;var _=new WeakMap,w=new WeakMap;return(h=function(k){return k?w:_})(x)}function g(x,_){if(x&&x.__esModule)return x;if(x===null||n(x)!=="object"&&typeof x!="function")return{default:x};var w=h(_);if(w&&w.has(x))return w.get(x);var S={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in x)if(C!=="default"&&Object.prototype.hasOwnProperty.call(x,C)){var T=k?Object.getOwnPropertyDescriptor(x,C):null;T&&(T.get||T.set)?Object.defineProperty(S,C,T):S[C]=x[C]}return S.default=x,w&&w.set(x,S),S}function b(x,_){var w=Object.keys(x);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(x);_&&(S=S.filter(function(k){return Object.getOwnPropertyDescriptor(x,k).enumerable})),w.push.apply(w,S)}return w}function v(x){for(var _=1;_0&&c.default.createElement(s.default,{variant:"caption",sx:{padding:1}},_.groupedBy),x.groupColumns.map(function(O,D){return c.default.createElement(d.Draggable,{key:O.tableData.id.toString(),draggableId:O.tableData.id.toString(),index:D},function(P,E){var I;return c.default.createElement(l.default,(0,r.default)({ref:P.innerRef},P.draggableProps,P.dragHandleProps,{sx:k(E.isDragging,P.draggableProps.style)}),c.default.createElement(a.default,(0,r.default)({},P.dragHandleProps,S.groupChipProps,{onClick:function(){return x.onSortChanged(O)},label:c.default.createElement(l.default,{sx:{display:"flex",alignItems:"center"}},c.default.createElement(l.default,{sx:{float:"left"}},O.title),O.tableData.groupSort&&c.default.createElement(w.SortArrow,{sx:{transition:"300ms ease all",transform:O.tableData.groupSort==="asc"?"rotate(-180deg)":"none",fontSize:18}})),sx:v({boxShadow:"none",textTransform:"none"},(I=S.groupChipProps)!==null&&I!==void 0?I:{}),onDelete:function(){return x.onGroupRemoved(O,D)}})))})}),x.groupColumns.length===0&&c.default.createElement(s.default,{variant:"caption",sx:{padding:1}},_.placeholder),T.placeholder)}))}m.defaultProps={},m.propTypes={forwardedRef:u.default.element,className:u.default.string,onSortChanged:u.default.func,onGroupRemoved:u.default.func,onGroupChange:u.default.func,persistentGroupingsId:u.default.string};var y=c.default.forwardRef(function(_,w){return c.default.createElement(m,(0,r.default)({},_,{forwardedRef:w}))});e.default=y}(c3)),c3}var _3={},f9;function dSe(){return f9||(f9=1,function(e){var t=Hn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(jr()),r=t(za()),l=t(vu()),i=t(Cf()),o=t(zl),a=t(ms),s=t(Mf),u=t(Cc),c=t(Kr),d=t(ge),f=sl();function p(v,m){var y=Object.keys(v);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(v);m&&(x=x.filter(function(_){return Object.getOwnPropertyDescriptor(v,_).enumerable})),y.push.apply(y,x)}return y}function h(v){for(var m=1;m0&&_++;var w=v.groups[v.level],S;v.groupData.isExpanded&&(v.groups.length>v.level+1?S=v.groupData.groups.map(function(z,N){return d.default.createElement(v.components.GroupRow,{actions:v.actions,key:z.value||""+N,columns:v.columns,components:v.components,detailPanel:v.detailPanel,getFieldValue:v.getFieldValue,groupData:z,groups:v.groups,level:v.level+1,path:[].concat((0,i.default)(v.path),[N]),onGroupExpandChanged:v.onGroupExpandChanged,onGroupSelected:v.onGroupSelected,onRowSelected:v.onRowSelected,onRowClick:v.onRowClick,onToggleDetailPanel:v.onToggleDetailPanel,onTreeExpandChanged:v.onTreeExpandChanged,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,hasAnyEditingRow:v.hasAnyEditingRow,isTreeData:v.isTreeData,cellEditable:v.cellEditable,onCellEditStarted:v.onCellEditStarted,onCellEditFinished:v.onCellEditFinished,scrollWidth:v.scrollWidth,treeDataMaxLevel:v.treeDataMaxLevel})}):S=v.groupData.data.map(function(z,N){return z.tableData.editing?d.default.createElement(v.components.EditRow,{columns:v.columns,components:v.components,data:z,path:[].concat((0,i.default)(v.path),[z.tableData.uuid]),localization:v.localization,key:N,mode:z.tableData.editing,isTreeData:v.isTreeData,detailPanel:v.detailPanel,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,getFieldValue:v.getFieldValue,onBulkEditRowChanged:v.onBulkEditRowChanged,scrollWidth:v.scrollWidth}):d.default.createElement(v.components.Row,{actions:v.actions,key:N,columns:v.columns,components:v.components,data:z,detailPanel:v.detailPanel,level:(v.level||0)+1,getFieldValue:v.getFieldValue,path:[].concat((0,i.default)(v.path),[z.tableData.uuid]),onRowSelected:v.onRowSelected,onRowClick:v.onRowClick,onToggleDetailPanel:v.onToggleDetailPanel,isTreeData:v.isTreeData,onTreeExpandChanged:v.onTreeExpandChanged,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,hasAnyEditingRow:v.hasAnyEditingRow,cellEditable:v.cellEditable,onCellEditStarted:v.onCellEditStarted,onCellEditFinished:v.onCellEditFinished,scrollWidth:v.scrollWidth,treeDataMaxLevel:v.treeDataMaxLevel})}));for(var k=[],C=0;C0&&A!==F,checked:A===F,onChange:function(N,R){return v.onGroupSelected&&v.onGroupSelected(R,v.groupData.path)},style:{marginRight:8}}),d.default.createElement("b",null,M,O)))),S)}g.defaultProps={columns:[],groups:[],level:0},g.propTypes={actions:c.default.array,columns:c.default.arrayOf(c.default.object),components:c.default.object,cellEditable:c.default.object,detailPanel:c.default.oneOfType([c.default.func,c.default.arrayOf(c.default.object)]),forwardedRef:c.default.element,getFieldValue:c.default.func,groupData:c.default.object,groups:c.default.arrayOf(c.default.object),hasAnyEditingRow:c.default.bool,icons:c.default.object,isTreeData:c.default.bool.isRequired,level:c.default.number,localization:c.default.object,onBulkEditRowChanged:c.default.func,onCellEditFinished:c.default.func,onCellEditStarted:c.default.func,onEditingApproved:c.default.func,onEditingCanceled:c.default.func,onGroupExpandChanged:c.default.func,onRowClick:c.default.func,onGroupSelected:c.default.func,onRowSelected:c.default.func,onToggleDetailPanel:c.default.func.isRequired,onTreeExpandChanged:c.default.func.isRequired,path:c.default.arrayOf(c.default.number),scrollWidth:c.default.number.isRequired,treeDataMaxLevel:c.default.number};var b=d.default.forwardRef(function(m,y){return d.default.createElement(g,(0,n.default)({},m,{forwardedRef:y}))});e.default=b}(_3)),_3}var T3={};const fSe=er(Kde),pSe=er(Afe);var p9;function hSe(){return p9||(p9=1,function(e){var t=Hn,n=Pa();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableHeader=k,e.styles=e.default=void 0;var r=t(kc),l=t(Mc),i=t(jr()),o=t(za()),a=t(vu()),s=t(kf()),u=t(ge),c=t(Kr),d=t(fSe),f=t(ms),p=t(zl),h=t(pSe),g=t(Cc),b=k4,v=_(bs()),m=sl(),y=["onColumnResized","classes","sx","columns"];function x(P){if(typeof WeakMap!="function")return null;var E=new WeakMap,I=new WeakMap;return(x=function(F){return F?I:E})(P)}function _(P,E){if(P&&P.__esModule)return P;if(P===null||n(P)!=="object"&&typeof P!="function")return{default:P};var I=x(E);if(I&&I.has(P))return I.get(P);var A={},F=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var j in P)if(j!=="default"&&Object.prototype.hasOwnProperty.call(P,j)){var B=F?Object.getOwnPropertyDescriptor(P,j):null;B&&(B.get||B.set)?Object.defineProperty(A,j,B):A[j]=P[j]}return A.default=P,I&&I.set(P,A),A}function w(P,E){var I=Object.keys(P);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(P);E&&(A=A.filter(function(F){return Object.getOwnPropertyDescriptor(P,F).enumerable})),I.push.apply(I,A)}return I}function S(P){for(var E=1;E-1)&&!ce.tableData.hiddden}).sort(function(ce,we){return ce.tableData.columnOrder-we.tableData.columnOrder}).map(function(ce,we,Z){var re=ce.align!==void 0?ce.align:["numeric","currency"].indexOf(ce.type)!==-1?"right":"left",de=ce.title;if(z.draggable&&ce.draggable!==!1?de=u.default.createElement(b.Draggable,{key:ce.tableData.id,draggableId:ce.tableData.id.toString(),index:we,style:{zIndex:99}},function(ue,me){return u.default.createElement("div",(0,i.default)({ref:ue.innerRef},ue.draggableProps,ue.dragHandleProps,{style:me.isDragging?ue.draggableProps.style:{position:"relative",minWidth:0,display:"flex",flexDirection:re==="right"?"row-reverse":void 0}}),ce.sorting!==!1&&j.sorting&&j.allowSorting?u.default.createElement(T,{columnDef:ce,keepSortDirectionOnColumnSwitch:z.keepSortDirectionOnColumnSwitch,icon:N.SortArrow,thirdSortClick:z.thirdSortClick,onOrderChange:j.onOrderChange,orderByCollection:j.orderByCollection,showColumnSortOrder:z.showColumnSortOrder,sortOrderIndicatorStyle:z.sortOrderIndicatorStyle},ce.title):ce.title)}):ce.sorting!==!1&&j.sorting&&j.allowSorting&&(de=u.default.createElement(T,{columnDef:ce,keepSortDirectionOnColumnSwitch:z.keepSortDirectionOnColumnSwitch,icon:N.SortArrow,thirdSortClick:z.thirdSortClick,onOrderChange:j.onOrderChange,orderByCollection:j.orderByCollection,showColumnSortOrder:z.showColumnSortOrder,sortOrderIndicatorStyle:z.sortOrderIndicatorStyle},ce.title)),ce.tooltip&&(de=u.default.createElement(l.default,{title:ce.tooltip,placement:"bottom"},u.default.createElement("span",null,de))),z.tableLayout==="fixed"&&z.columnResizable&&ce.resizable!==!1&&!(z.tableWidth==="full"&&we===Z.length-1)){var _e=N.Resize?N.Resize:function(ue){return u.default.createElement(r.default,(0,i.default)({},ue,{"data-test-id":"drag_handle"}))};de=u.default.createElement(r.default,{sx:M.headerWrap(re==="right")},u.default.createElement(r.default,{sx:M.headerContent(re==="right")},de),u.default.createElement("div",null),u.default.createElement(_e,{sx:M.headerResize((W==null?void 0:W.col)&&W.col.tableData.id===ce.tableData.id),onMouseDown:function(me){return V(me,ce,we)}}))}return u.default.createElement(p.default,{key:ce.tableData.id,align:re,sx:M.header,style:ie(ce),size:Pe,"aria-label":ce.ariaLabel},de)})}function pe(){var Pe=v.selectionMaxWidth(S(S({},j),{},{options:z}),j.treeDataMaxLevel);return u.default.createElement(p.default,{padding:"none",key:"key-selection-column",sx:M.header,style:S(S({},z.headerStyle),{},{width:Pe})},z.showSelectAllCheckbox&&u.default.createElement(g.default,(0,i.default)({indeterminate:j.selectedCount>0&&j.selectedCount0&&j.selectedCount>=j.dataCount,onChange:function(we,Z){return j.onAllSelected&&j.onAllSelected(Z)}},z.headerSelectionProps)))}function ke(){return u.default.createElement(p.default,{padding:"none",key:"key-detail-panel-column",sx:M.header,style:z.headerStyle})}var Ce=se();if(z.selection&&Ce.splice(0,0,pe()),j.showActionsColumn)if(z.actionsColumnIndex>=0){var Oe=0;z.selection&&(Oe=1),Ce.splice(z.actionsColumnIndex+Oe,0,ae())}else z.actionsColumnIndex===-1&&Ce.push(ae());return j.hasDetailPanel&&z.showDetailPanelIcon&&(z.detailPanelColumnAlignment==="right"?Ce.push(ke()):Ce.splice(0,0,ke())),j.isTreeData>0&&Ce.splice(0,0,u.default.createElement(p.default,{padding:"none",key:"key-tree-data-header",sx:M.header,style:z.headerStyle})),Q.filter(function(Pe){return Pe.tableData.groupOrder>-1}).forEach(function(Pe){Ce.splice(0,0,u.default.createElement(p.default,{padding:"checkbox",key:"key-group-header"+Pe.tableData.id,sx:M.header,style:z.headerStyle}))}),u.default.createElement(d.default,{ref:j.forwardedRef,classes:I,sx:A},u.default.createElement(f.default,{sx:M.headerRow},Ce))}var C=function(E,I,A,F,j){return A.tableData.id!==E?j&&I||"asc":I==="asc"?"desc":I==="desc"&&F?"":"asc"};function T(P){var E=P.columnDef,I=P.keepSortDirectionOnColumnSwitch,A=P.icon,F=P.thirdSortClick,j=P.onOrderChange,B=P.children,z=P.orderByCollection,N=P.showColumnSortOrder,R=P.sortOrderIndicatorStyle,q=z.find(function(H){var G=H.orderBy;return G===E.tableData.id}),Y=(q||I)&&q&&q.orderDirection||"asc",L="none";q&&Y==="asc"?L=E.ariaSortAsc||"ascending":q&&Y==="desc"&&(L=E.ariaSortDesc||"descending");var W=q&&q.orderBy;return u.default.createElement(u.default.Fragment,null,u.default.createElement(h.default,{role:"columnheader","aria-sort":L,"aria-label":E.ariaLabel,IconComponent:A,active:!!q,"data-testid":"mtableheader-sortlabel",direction:Y,onClick:function(){var G=C(W,Y,E,F,I);j(E.tableData.id,G,q&&q.sortOrder)}},B),u.default.createElement("span",{style:S(S({},R),{},{width:"1em"}),"data-testid":"material-table-column-sort-order-indicator"},N&&q?q.sortOrder:""))}k.defaultProps={dataCount:0,selectedCount:0,orderByCollection:[],allowSorting:!0},k.propTypes={columns:c.default.array.isRequired,classes:c.default.object,sx:c.default.object,dataCount:c.default.number,hasDetailPanel:c.default.bool.isRequired,selectedCount:c.default.number,onAllSelected:c.default.func,onOrderChange:c.default.func,showActionsColumn:c.default.bool,orderByCollection:c.default.array,showColumnSortOrder:c.default.bool,tooltip:c.default.string,allowSorting:c.default.bool};var M={headerRow:{zIndex:10},header:{top:0},headerWrap:function(E){return{display:"flex",alignItems:"center",position:"relative",left:4}},headerWrapRight:function(E){return{display:"flex",alignItems:"center",pr:E?1:void 0,position:"relative",left:4,justifyContent:"flex-end"}},headerContent:function(E){return{minWidth:0,display:"flex",flex:"1 0 100%",flexDirection:E?"row-reverse":void 0,justifyContent:"flex-start",alignItems:"center",width:"100%",position:"relative"}},headerResize:function(E){return{color:E?"primary.main":"inherit",flex:1,cursor:"col-resize",position:"absolute",height:"100%",width:16,display:"flex",justifyContent:"center",right:-8,zIndex:20}}};e.styles=M;var O=u.default.forwardRef(function(E,I){return u.default.createElement(k,(0,i.default)({},E,{forwardedRef:I}))}),D=u.default.memo(O);e.default=D}(T3)),T3}var S3={};const mSe=er(rle);var h9;function gSe(){return h9||(h9=1,function(e){var t=Hn,n=Pa();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(jr()),l=t(Mf),i=t(Mc),o=t(kc),a=t(mSe),s=t(Kr),u=t(ge),c=Sf,d=h(bs()),f=sl();function p(y){if(typeof WeakMap!="function")return null;var x=new WeakMap,_=new WeakMap;return(p=function(S){return S?_:x})(y)}function h(y,x){if(y&&y.__esModule)return y;if(y===null||n(y)!=="object"&&typeof y!="function")return{default:y};var _=p(x);if(_&&_.has(y))return _.get(y);var w={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in y)if(k!=="default"&&Object.prototype.hasOwnProperty.call(y,k)){var C=S?Object.getOwnPropertyDescriptor(y,k):null;C&&(C.get||C.set)?Object.defineProperty(w,k,C):w[k]=y[k]}return w.default=y,_&&_.set(y,w),w}function g(y){var x=(0,c.useTheme)(),_=(0,f.useLocalizationStore)().pagination,w=(0,f.useIconStore)(),S=function(Y){y.onPageChange(Y,0)},k=function(Y){y.onPageChange(Y,y.page-1)},C=function(Y){y.onPageChange(Y,y.page+1)},T=function(Y){return function(L){y.onPageChange(L,Y)}},M=function(Y){y.onPageChange(Y,Math.max(0,Math.ceil(y.count/y.rowsPerPage)-1))};function O(q,Y,L,W){var H=[];W=Math.max(1,Math.min(10,W));for(var G=Math.max(q-W+1,0);G<=Math.min(Y+W-1,L);G++){var te=G===y.page?"contained":"text";H.push(u.default.createElement(a.default,{size:"small",style:{boxShadow:"none",maxWidth:"30px",maxHeight:"30px",minWidth:"30px",minHeight:"30px"},disabled:G===y.page,variant:te,onClick:T(G),key:G},G+1))}return u.default.createElement("span",null,H)}var D=y.count,P=y.page,E=y.rowsPerPage,I=y.showFirstLastPageButtons,A=y.numberOfPagesAround,F=Math.ceil(D/E)-1,j=Math.max(P-1,0),B=Math.min(F,P+1),z=d.parseFirstLastPageButtons(I,x.direction==="rtl"),N=z.first,R=z.last;return u.default.createElement(o.default,{sx:{flexShrink:0,color:"text.secondary",marginLeft:2.5,display:"flex",alignItems:"center"},ref:y.forwardedRef},N&&u.default.createElement(i.default,{title:_.firstTooltip},u.default.createElement("span",null,u.default.createElement(l.default,{onClick:S,disabled:P===0,"aria-label":_.firstAriaLabel,size:"large"},x.direction==="rtl"?u.default.createElement(w.LastPage,null):u.default.createElement(w.FirstPage,null)))),u.default.createElement(i.default,{title:_.previousTooltip},u.default.createElement("span",null,u.default.createElement(l.default,{onClick:k,disabled:P===0,"aria-label":_.previousAriaLabel},u.default.createElement(w.PreviousPage,null)))),u.default.createElement(o.default,{sx:{display:{xs:"false",sm:"false",md:"block"}}},O(j,B,F,A)),u.default.createElement(i.default,{title:_.nextTooltip},u.default.createElement("span",null,u.default.createElement(l.default,{onClick:C,disabled:P>=F,"aria-label":_.nextAriaLabel,size:"large"},x.direction==="rtl"?u.default.createElement(w.PreviousPage,null):u.default.createElement(w.NextPage,null)))),R&&u.default.createElement(i.default,{title:_.lastTooltip},u.default.createElement("span",null,u.default.createElement(l.default,{onClick:M,disabled:P>=Math.ceil(D/E)-1,"aria-label":_.lastAriaLabel,size:"large"},x.direction==="rtl"?u.default.createElement(w.FirstPage,null):u.default.createElement(w.LastPage,null)))))}g.propTypes={onPageChange:s.default.func,page:s.default.number,forwardedRef:s.default.func,count:s.default.number,rowsPerPage:s.default.number,numberOfPagesAround:s.default.number,classes:s.default.object,theme:s.default.any,showFirstLastPageButtons:s.default.oneOfType([s.default.object,s.default.bool])},g.defaultProps={showFirstLastPageButtons:!0};var b=u.default.forwardRef(function(x,_){return u.default.createElement(g,(0,r.default)({},x,{forwardedRef:_}))}),v=b,m=v;e.default=m}(S3)),S3}var k3={},m9;function vSe(){return m9||(m9=1,function(e){var t=Hn,n=Pa();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(jr()),l=t(kc),i=t(Mf),o=t(Mc),a=t(tx),s=t(Kr),u=t(ge),c=Sf,d=h(bs()),f=mg();function p(y){if(typeof WeakMap!="function")return null;var x=new WeakMap,_=new WeakMap;return(p=function(S){return S?_:x})(y)}function h(y,x){if(y&&y.__esModule)return y;if(y===null||n(y)!=="object"&&typeof y!="function")return{default:y};var _=p(x);if(_&&_.has(y))return _.get(y);var w={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in y)if(k!=="default"&&Object.prototype.hasOwnProperty.call(y,k)){var C=S?Object.getOwnPropertyDescriptor(y,k):null;C&&(C.get||C.set)?Object.defineProperty(w,k,C):w[k]=y[k]}return w.default=y,_&&_.set(y,w),w}function g(y){var x=(0,c.useTheme)(),_=(0,f.useIconStore)(),w=(0,f.useLocalizationStore)().pagination,S=function(j){y.onPageChange(j,0)},k=function(j){y.onPageChange(j,y.page-1)},C=function(j){y.onPageChange(j,y.page+1)},T=function(j){y.onPageChange(j,Math.max(0,Math.ceil(y.count/y.rowsPerPage)-1))},M=y.count,O=y.page,D=y.rowsPerPage,P=y.showFirstLastPageButtons,E=d.parseFirstLastPageButtons(P,x.direction==="rtl"),I=E.first,A=E.last;return u.default.createElement(l.default,{sx:{flexShrink:0,color:"text.secondary",display:"flex",alignItems:"center"},ref:y.forwardedRef},I&&u.default.createElement(o.default,{title:w.firstTooltip},u.default.createElement("span",null,u.default.createElement(i.default,{onClick:S,disabled:O===0,"aria-label":w.firstAriaLabel,size:"large"},x.direction==="rtl"?u.default.createElement(_.LastPage,null):u.default.createElement(_.FirstPage,null)))),u.default.createElement(o.default,{title:w.previousTooltip},u.default.createElement("span",null,u.default.createElement(i.default,{onClick:k,disabled:O===0,"aria-label":w.previousAriaLabel},x.direction==="rtl"?u.default.createElement(_.NextPage,null):u.default.createElement(_.PreviousPage,null)))),u.default.createElement(a.default,{variant:"caption",style:{flex:1,textAlign:"center",alignSelf:"center",flexBasis:"inherit"}},w.labelDisplayedRows.replace("{from}",y.count===0?0:y.page*y.rowsPerPage+1).replace("{to}",Math.min((y.page+1)*y.rowsPerPage,y.count)).replace("{count}",y.count)),u.default.createElement(o.default,{title:w.nextTooltip},u.default.createElement("span",null,u.default.createElement(i.default,{onClick:C,disabled:O>=Math.ceil(M/D)-1,"aria-label":w.nextAriaLabel},x.direction==="rtl"?u.default.createElement(_.PreviousPage,null):u.default.createElement(_.NextPage,null)))),A&&u.default.createElement(o.default,{title:w.lastTooltip},u.default.createElement("span",null,u.default.createElement(i.default,{onClick:T,disabled:O>=Math.ceil(M/D)-1,"aria-label":w.lastAriaLabel,size:"large"},x.direction==="rtl"?u.default.createElement(_.FirstPage,null):u.default.createElement(_.LastPage,null)))))}g.propTypes={onPageChange:s.default.func,page:s.default.number,count:s.default.number,rowsPerPage:s.default.number,classes:s.default.object,localization:s.default.object,showFirstLastPageButtons:s.default.oneOfType([s.default.object,s.default.bool]),forwardedRef:s.default.func},g.defaultProps={showFirstLastPageButtons:!0};var b=u.default.forwardRef(function(x,_){return u.default.createElement(g,(0,r.default)({},x,{forwardedRef:_}))}),v=b,m=v;e.default=m}(k3)),k3}var C3={},g9;function ySe(){return g9||(g9=1,function(e){var t=Hn,n=Pa();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableSummaryRow=v,e.default=void 0;var r=t(ms),l=t(Pa()),i=t(Cf()),o=t(zl),a=t(za()),s=h(ge),u=ex(),c=h(bs()),d=sl(),f=t(Kr);function p(y){if(typeof WeakMap!="function")return null;var x=new WeakMap,_=new WeakMap;return(p=function(S){return S?_:x})(y)}function h(y,x){if(y&&y.__esModule)return y;if(y===null||n(y)!=="object"&&typeof y!="function")return{default:y};var _=p(x);if(_&&_.has(y))return _.get(y);var w={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in y)if(k!=="default"&&Object.prototype.hasOwnProperty.call(y,k)){var C=S?Object.getOwnPropertyDescriptor(y,k):null;C&&(C.get||C.set)?Object.defineProperty(w,k,C):w[k]=y[k]}return w.default=y,_&&_.set(y,w),w}function g(y,x){var _=Object.keys(y);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(y);x&&(w=w.filter(function(S){return Object.getOwnPropertyDescriptor(y,S).enumerable})),_.push.apply(_,w)}return _}function b(y){for(var x=1;x1&&arguments[1]!==void 0?arguments[1]:1,E=c.elementSize(b(b({},_),{},{options:S})),I=P*c.baseIconSize(b(b({},_),{},{options:S}));return s.createElement(o.default,{key:"placeholder.".concat(D),size:E,padding:"none",style:{width:I,padding:"0px 5px",boxSizing:"border-box"}})}var C=[],T=[],M=0;if(S.selection&&C.push(k(M++)),_.actions&&_.actions.filter(function(D){return D.position==="row"||typeof D=="function"}).length>0){var O=c.rowActions(_).length;S.actionsColumnIndex===-1?T.push(k(M++,O)):S.actionsColumnIndex>=0&&C.push(k(M++,O))}return _.detailPanel&&S.showDetailPanelIcon&&(S.detailPanelColumnAlignment==="right"?T.push(k(M++)):C.push(k(M++))),_.isTreeData&&C.push(k(M++)),s.createElement(r.default,null,C,(0,i.default)(x).sort(function(D,P){return D.tableData.columnOrder-P.tableData.columnOrder}).map(function(D,P){var E=w({index:D.tableData.columnOrder,column:D,columns:x}),I=D.align!==void 0?D.align:["numeric","currency"].indexOf(D.type)!==-1?"right":"left",A="",F=(0,u.getStyle)({columnDef:D,scrollWidth:0});return(0,l.default)(E)==="object"&&E!==null?(A=E.value,F=E.style):A=E,s.createElement(o.default,{key:P,style:F,align:I},A)}),T)}v.propTypes={columns:f.default.array,renderSummaryRow:f.default.func};var m=v;e.default=m}(C3)),C3}var M3={};const bSe=er(yce);var v9;function xSe(){return v9||(v9=1,function(e){var t=Hn,n=Pa();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableToolbar=C,e.default=void 0;var r=t(jr()),l=t(za()),i=t(kc),o=t(vu()),a=t(Cc),s=t(cq),u=t(Mf),c=t(bSe),d=t(S5),f=t(Ib),p=t(fq),h=t(Mc),g=t(tx),b=Sf,v=t(Kr),m=_(ge),y=sl();function x(P){if(typeof WeakMap!="function")return null;var E=new WeakMap,I=new WeakMap;return(x=function(F){return F?I:E})(P)}function _(P,E){if(P&&P.__esModule)return P;if(P===null||n(P)!=="object"&&typeof P!="function")return{default:P};var I=x(E);if(I&&I.has(P))return I.get(P);var A={},F=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var j in P)if(j!=="default"&&Object.prototype.hasOwnProperty.call(P,j)){var B=F?Object.getOwnPropertyDescriptor(P,j):null;B&&(B.get||B.set)?Object.defineProperty(A,j,B):A[j]=P[j]}return A.default=P,I&&I.set(P,A),A}function w(P,E){var I=Object.keys(P);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(P);E&&(A=A.filter(function(F){return Object.getOwnPropertyDescriptor(P,F).enumerable})),I.push.apply(I,A)}return I}function S(P){for(var E=1;EOe.tableData.columnOrder?1:-1}),pe=O(P.data()),ke=pe.map(function(Ce){return se.reduce(function(Oe,Pe){var ce;return typeof Pe.customExport=="function"?ce=Pe.customExport(Ce):ce=P.getFieldValue(Ce,Pe),Oe[Pe.field]=ce,Oe},{})});return[se,ke]};function V(){return te.search?m.default.createElement(f.default,{autoFocus:te.searchAutoFocus,sx:te.searchFieldAlignment==="left"&&te.showTitle===!1?void 0:T.searchField,value:j,onChange:function(se){return U(se.target.value)},placeholder:I.searchPlaceholder,variant:te.searchFieldVariant,InputProps:{startAdornment:m.default.createElement(s.default,{position:"start"},m.default.createElement(h.default,{title:I.searchTooltip},m.default.createElement(G.Search,{fontSize:"small"}))),endAdornment:m.default.createElement(s.default,{position:"end"},m.default.createElement(u.default,{disabled:!j,onClick:function(){return U("")},"aria-label":I.clearSearchAriaLabel},m.default.createElement(G.ResetSearch,{fontSize:"small","aria-label":"clear"}))),style:te.searchFieldStyle,inputProps:{"aria-label":I.searchAriaLabel}}}):null}function X(ie){var se=ie?"toolbarOnSelect":"toolbar";return m.default.createElement("div",{style:{display:"flex"}},te.columnsButton&&!ie&&m.default.createElement("span",null,m.default.createElement(h.default,{title:I.showColumnsTitle},m.default.createElement(u.default,{color:"inherit",onClick:function(ke){return H(ke.currentTarget)},"aria-label":I.showColumnsAriaLabel},m.default.createElement(G.ViewColumn,null))),m.default.createElement(c.default,{anchorEl:W,open:!!W,onClose:function(){return H(null)}},m.default.createElement(d.default,{key:"text",disabled:!0,style:{opacity:1,fontWeight:600,fontSize:12}},I.addRemoveColumns),P.columns.map(function(pe){var ke=pe.hiddenByColumnsButton!==void 0?pe.hiddenByColumnsButton:P.columnsHiddenInColumnsButton;return ke?null:m.default.createElement("li",{key:pe.tableData.id},m.default.createElement(d.default,{sx:T.formControlLabel,component:"label",htmlFor:"column-toggle-".concat(pe.tableData.id),disabled:pe.removable===!1},m.default.createElement(a.default,{checked:!pe.hidden,id:"column-toggle-".concat(pe.tableData.id),onChange:function(){return P.onColumnsChanged(pe,!pe.hidden)}}),m.default.createElement("span",null,pe.title)))}))),te.exportMenu.length>0&&m.default.createElement("span",null,m.default.createElement(h.default,{title:I.exportTitle},m.default.createElement(u.default,{color:"inherit",onClick:function(ke){return q(ke.currentTarget)},"aria-label":I.exportAriaLabel},m.default.createElement(G.Export,null))),m.default.createElement(c.default,{anchorEl:R,open:!!R,onClose:function(){return q(null)}},te.exportMenu.map(function(pe,ke){var Ce=Q(),Oe=(0,o.default)(Ce,2),Pe=Oe[0],ce=Oe[1];return m.default.createElement(d.default,{key:"".concat(pe.label).concat(ke),onClick:function(){pe.exportFunc(Pe,ce,{searchedData:P.dataManager.searchedData,filteredData:P.dataManager.filteredData,groupedData:P.dataManager.groupedData,selectedData:ee}),q(null)}},pe.label)}))),m.default.createElement("span",null,m.default.createElement(P.components.Actions,{actions:P.actions&&P.actions.filter(function(pe){return pe.position===se}),data:ie?ee:void 0,components:P.components})))}function K(){return m.default.createElement(i.default,{sx:T.actions},m.default.createElement("div",null,X(ee.length>0)))}function ne(ie){var se=typeof ie=="string"?m.default.createElement(g.default,{variant:"h6",style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},ie):ie;return m.default.createElement(i.default,{sx:T.title},se)}var ae=te.showTextRowsSelected&&ee.length>0?typeof I.nRowsSelected=="function"?I.nRowsSelected(ee.length):I.nRowsSelected.replace("{0}",ee.length):te.showTitle?P.title:null;return m.default.createElement(p.default,{ref:P.forwardedRef,className:P.className,sx:S(S({},T.root),te.showTextRowsSelected&&ee.length>0?T.highlight(E):{})},ae&&ne(ae),te.searchFieldAlignment==="left"&&V(),te.toolbarButtonAlignment==="left"&&K(),m.default.createElement(i.default,{sx:T.spacer}),te.searchFieldAlignment==="right"&&V(),te.toolbarButtonAlignment==="right"&&K())}C.defaultProps={actions:[],columns:[],columnsHiddenInColumnsButton:!1,searchText:"",originalData:[],title:"No Title!"},C.propTypes={actions:v.default.array,className:v.default.string,columns:v.default.array,components:v.default.object.isRequired,getFieldValue:v.default.func.isRequired,onColumnsChanged:v.default.func.isRequired,dataManager:v.default.object.isRequired,searchText:v.default.string,onSearchChanged:v.default.func.isRequired,originalData:v.default.array,title:v.default.oneOfType([v.default.element,v.default.string]),renderData:v.default.array,data:v.default.oneOfType([v.default.array,v.default.func]),exportAllData:v.default.bool,exportMenu:v.default.arrayOf(v.default.shape({name:v.default.string,handler:v.default.func})),searchAutoFocus:v.default.bool,classes:v.default.object};var T={root:{paddingRight:1,paddingLeft:2},highlight:function(E){return E.palette.mode==="light"?{color:E.palette.secondary.main,backgroundColor:(0,b.lighten)(E.palette.secondary.light,.85)}:{color:E.palette.text.primary,backgroundColor:E.palette.secondary.dark}},spacer:{flex:"1 1 10%"},actions:{color:"text.secondary"},title:{overflow:"hidden"},searchField:{minWidth:150,paddingLeft:2},formControlLabel:{px:1}},M=m.default.forwardRef(function(E,I){return m.default.createElement(C,(0,r.default)({},E,{forwardedRef:I}))});function O(P){for(var E=P;Array.isArray((I=E)===null||I===void 0||(A=I[0])===null||A===void 0?void 0:A.data);){var I,A;E=E.map(function(F){return F.groups.length!==0?F.groups:F.data}).flat()}return E}var D=m.default.memo(M);e.default=D}(M3)),M3}var y9;function ux(){return y9||(y9=1,function(e){var t=Hn;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Container",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"MTableAction",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"MTableActions",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"MTableBody",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"MTableBodyRow",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"MTableCell",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"MTableCustomIcon",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"MTableEditCell",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"MTableEditField",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"MTableEditRow",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"MTableFilterRow",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"MTableGroupRow",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"MTableGroupbar",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"MTableHeader",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"MTablePagination",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"MTableScrollbar",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"MTableSteppedPagination",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"MTableSummaryRow",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"MTableToolbar",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"OverlayError",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"OverlayLoading",{enumerable:!0,get:function(){return n.default}});var n=t(fpe()),r=t(rhe()),l=t(ihe()),i=t(she()),o=t(phe()),a=t(Oxe()),s=t(Axe()),u=t(Lxe()),c=t(Ixe()),d=t(jxe()),f=t(Wxe()),p=t(qxe()),h=t(Uxe()),g=t(dq()),b=t(cSe()),v=t(dSe()),m=t(hSe()),y=t(gSe()),x=t(vSe()),_=t(ySe()),w=t(xSe())}(a_)),a_}var b9;function OU(){return b9||(b9=1,function(e){var t=Hn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(dpe),r=ux(),l={Action:r.MTableAction,Actions:r.MTableActions,Body:r.MTableBody,Cell:r.MTableCell,Container:r.Container,EditCell:r.MTableEditCell,EditField:r.MTableEditField,EditRow:r.MTableEditRow,FilterRow:r.MTableFilterRow,Groupbar:r.MTableGroupbar,GroupRow:r.MTableGroupRow,Header:r.MTableHeader,OverlayLoading:r.OverlayLoading,OverlayError:r.OverlayError,Pagination:n.default,Row:r.MTableBodyRow,SummaryRow:r.MTableSummaryRow,Toolbar:r.MTableToolbar};e.default=l}(r_)),r_}var x9;function wSe(){if(x9)return vp;x9=1;var e=Hn;Object.defineProperty(vp,"__esModule",{value:!0}),vp.defaultProps=void 0;var t=e(OU()),n=e(qB()),r=e(BB()),l=e(WB()),i={actions:[],classes:{},columns:[],components:t.default,data:[],icons:n.default,isLoading:!1,title:"Table Title",options:l.default,localization:r.default,style:{}};return vp.defaultProps=i,vp}var zp={},Bp={},w9;function C4(){if(w9)return Bp;w9=1,Object.defineProperty(Bp,"__esModule",{value:!0}),Bp.ALL_COLUMNS=void 0;var e="all_columns";return Bp.ALL_COLUMNS=e,Bp}var _9;function _Se(){if(_9)return zp;_9=1;var e=Hn;Object.defineProperty(zp,"__esModule",{value:!0}),zp.propTypes=void 0;var t=e(Kr),n=C4(),r=t.default.shape({current:t.default.element}),l=t.default.shape({classes:t.default.object,innerRef:r}),i={actions:t.default.arrayOf(t.default.oneOfType([t.default.func,t.default.shape({icon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,r]).isRequired,isFreeAction:t.default.bool,position:t.default.oneOf(["auto","toolbar","toolbarOnSelect","row"]),tooltip:t.default.string,onClick:t.default.func.isRequired,onMouseEnter:t.default.func,onMouseLeave:t.default.func,iconProps:t.default.object,disabled:t.default.bool,hidden:t.default.bool}),t.default.shape({action:t.default.func,position:t.default.oneOf(["auto","toolbar","toolbarOnSelect","row"])})])),renderSummaryRow:t.default.func,columns:t.default.arrayOf(t.default.shape({cellStyle:t.default.oneOfType([t.default.object,t.default.func]),currencySetting:t.default.shape({locale:t.default.string,currencyCode:t.default.string,minimumFractionDigits:t.default.number,maximumFractionDigits:t.default.number}),ariaLabel:t.default.string,ariaSortAsc:t.default.oneOf(["ascending","descending","none","other"]),ariaSortDesc:t.default.oneOf(["ascending","descending","none","other"]),draggable:t.default.bool,customFilterAndSearch:t.default.func,customSort:t.default.func,customExport:t.default.func,defaultFilter:t.default.any,defaultSort:t.default.oneOf(["asc","desc"]),editComponent:t.default.oneOfType([t.default.element,t.default.func]),emptyValue:t.default.oneOfType([t.default.string,t.default.node,t.default.func]),export:t.default.bool,field:t.default.oneOfType([t.default.string,t.default.arrayOf(t.default.string)]),filtering:t.default.bool,filterCellStyle:t.default.object,filterPlaceholder:t.default.string,filterComponent:t.default.oneOfType([t.default.element,t.default.func]),grouping:t.default.bool,headerStyle:t.default.object,hidden:t.default.bool,hideFilterIcon:t.default.bool,initialEditValue:t.default.any,lookup:t.default.object,editable:t.default.oneOfType([t.default.func,t.default.oneOf(["always","onUpdate","onAdd","never"])]),removable:t.default.bool,render:t.default.func,searchable:t.default.bool,sorting:t.default.bool,title:t.default.oneOfType([t.default.element,t.default.string]),type:t.default.oneOf(["string","boolean","numeric","date","datetime","time","currency"])})).isRequired,components:t.default.shape({Action:t.default.oneOfType([t.default.element,t.default.func,l]),Actions:t.default.oneOfType([t.default.element,t.default.func,l]),Body:t.default.oneOfType([t.default.element,t.default.func,l]),Cell:t.default.oneOfType([t.default.element,t.default.func,l]),Container:t.default.oneOfType([t.default.element,t.default.func,l]),EditField:t.default.oneOfType([t.default.element,t.default.func,l]),EditRow:t.default.oneOfType([t.default.element,t.default.func,l]),FilterRow:t.default.oneOfType([t.default.element,t.default.func,l]),Groupbar:t.default.oneOfType([t.default.element,t.default.func,l]),GroupRow:t.default.oneOfType([t.default.element,t.default.func,l]),Header:t.default.oneOfType([t.default.element,t.default.func,l]),OverlayLoading:t.default.oneOfType([t.default.element,t.default.func,l]),OverlayError:t.default.oneOfType([t.default.element,t.default.func,l]),Pagination:t.default.oneOfType([t.default.element,t.default.func,l]),Row:t.default.oneOfType([t.default.element,t.default.func,l]),Toolbar:t.default.oneOfType([t.default.element,t.default.func,l])}),data:t.default.oneOfType([t.default.arrayOf(t.default.object),t.default.func]).isRequired,editable:t.default.shape({isEditable:t.default.func,isBulkEditable:t.default.func,isDeletable:t.default.func,onRowAdd:t.default.func,onRowUpdate:t.default.func,onRowDelete:t.default.func,onRowAddCancelled:t.default.func,onRowUpdateCancelled:t.default.func,isEditHidden:t.default.func,isDeleteHidden:t.default.func}),detailPanel:t.default.oneOfType([t.default.func,t.default.arrayOf(t.default.oneOfType([t.default.func,t.default.shape({disabled:t.default.bool,icon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,r]),openIcon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,r]),tooltip:t.default.string,render:t.default.func.isRequired})]))]),icons:t.default.shape({Add:t.default.oneOfType([t.default.element,t.default.func,r]),Check:t.default.oneOfType([t.default.element,t.default.func,r]),Clear:t.default.oneOfType([t.default.element,t.default.func,r]),Delete:t.default.oneOfType([t.default.element,t.default.func,r]),DetailPanel:t.default.oneOfType([t.default.element,t.default.func,r]),Edit:t.default.oneOfType([t.default.element,t.default.func,r]),Export:t.default.oneOfType([t.default.element,t.default.func,r]),Filter:t.default.oneOfType([t.default.element,t.default.func,r]),FirstPage:t.default.oneOfType([t.default.element,t.default.func,r]),LastPage:t.default.oneOfType([t.default.element,t.default.func,r]),NextPage:t.default.oneOfType([t.default.element,t.default.func,r]),PreviousPage:t.default.oneOfType([t.default.element,t.default.func,r]),Refresh:t.default.oneOfType([t.default.element,t.default.func,r]),ResetSearch:t.default.oneOfType([t.default.element,t.default.func,r]),Search:t.default.oneOfType([t.default.element,t.default.func,r]),SortArrow:t.default.oneOfType([t.default.element,t.default.func,r]),ThirdStateCheck:t.default.oneOfType([t.default.element,t.default.func,r]),ViewColumn:t.default.oneOfType([t.default.element,t.default.func,r])}),isLoading:t.default.bool,title:t.default.oneOfType([t.default.element,t.default.string]),options:t.default.shape({actionsCellStyle:t.default.object,editCellStyle:t.default.object,idSynonym:t.default.string,detailPanelColumnStyle:t.default.object,actionsColumnIndex:t.default.number,addRowPosition:t.default.oneOf(["first","last"]),columnsButton:t.default.bool,defaultExpanded:t.default.oneOfType([t.default.bool,t.default.func]),debounceInterval:t.default.number,detailPanelType:t.default.oneOf(["single","multiple"]),doubleHorizontalScroll:t.default.bool,emptyRowsWhenPaging:t.default.bool,exportAllData:t.default.bool,exportMenu:t.default.arrayOf(t.default.shape({label:t.default.string,exportFunc:t.default.func})),filtering:t.default.bool,filterCellStyle:t.default.object,filterRowStyle:t.default.object,header:t.default.bool,headerSelectionProps:t.default.object,headerStyle:t.default.object,hideFilterIcons:t.default.bool,initialPage:t.default.number,maxBodyHeight:t.default.oneOfType([t.default.number,t.default.string]),minBodyHeight:t.default.oneOfType([t.default.number,t.default.string]),loadingType:t.default.oneOf(["overlay","linear"]),overflowY:t.default.oneOf(["visible","hidden","scroll","auto","initial","inherit","overlay"]),padding:t.default.oneOf(["normal","dense"]),paging:t.default.bool,pageSize:t.default.number,pageSizeOptions:t.default.arrayOf(t.default.number),paginationType:t.default.oneOf(["normal","stepped"]),paginationPosition:t.default.oneOf(["bottom","top","both"]),persistentGroupingsId:t.default.string,rowStyle:t.default.oneOfType([t.default.object,t.default.func]),search:t.default.bool,searchText:t.default.string,searchDebounceDelay:t.default.number,toolbarButtonAlignment:t.default.oneOf(["left","right"]),searchFieldAlignment:t.default.oneOf(["left","right"]),searchFieldStyle:t.default.object,searchAutoFocus:t.default.bool,searchFieldVariant:t.default.oneOf(["standard","filled","outlined"]),selection:t.default.bool,selectionProps:t.default.oneOfType([t.default.object,t.default.func]),showEmptyDataSourceMessage:t.default.bool,showFirstLastPageButtons:t.default.oneOfType([t.default.object,t.default.bool]),showSelectAllCheckbox:t.default.bool,showSelectGroupCheckbox:t.default.bool,showTitle:t.default.bool,showTextRowsSelected:t.default.bool,sorting:t.default.bool,defaultOrderByCollection:t.default.arrayOf(t.default.shape({orderBy:t.default.number,orderDirection:t.default.string,sortOrder:t.default.number,orderIndex:t.default.number})),maxColumnSort:t.default.oneOf([0,1,2,3,4,5,6,7,8,9,10,n.ALL_COLUMNS]),showColumnSortOrder:t.default.bool,sortOrderIndicatorStyle:t.default.object,keepSortDirectionOnColumnSwitch:t.default.bool,clientSorting:t.default.bool,toolbar:t.default.bool,thirdSortClick:t.default.bool,numberOfPagesAround:t.default.oneOf([1,2,3,4,5,6,7,8,9,10])}),localization:t.default.shape({grouping:t.default.shape({groupedBy:t.default.string,placeholder:t.default.string}),pagination:t.default.object,toolbar:t.default.object,header:t.default.object,body:t.default.object}),initialFormData:t.default.object,onSearchChange:t.default.func,onFilterChange:t.default.func,onColumnDragged:t.default.func,onColumnResized:t.default.func,onGroupRemoved:t.default.func,onGroupChange:t.default.func,onSelectionChange:t.default.func,onRowsPerPageChange:t.default.func,onPageChange:t.default.func,onChangeColumnHidden:t.default.func,onOrderChange:t.default.func,onOrderCollectionChange:t.default.func,onRowClick:t.default.func,onRowDoubleClick:t.default.func,onTreeExpandChange:t.default.func,onQueryChange:t.default.func,onBulkEditOpen:t.default.func,tableRef:t.default.any,style:t.default.object,page:t.default.number,totalCount:t.default.number};return zp.propTypes=i,zp}var P3={};const TSe=er(Yue),SSe=er(qde),kSe=er(bde);var O3,T9;function CSe(){if(T9)return O3;T9=1;function e(t,n,r){var l,i,o,a,s;n==null&&(n=100);function u(){var d=Date.now()-a;d=0?l=setTimeout(u,n-d):(l=null,r||(s=t.apply(o,i),o=i=null))}var c=function(){o=this,i=arguments,a=Date.now();var d=r&&!l;return l||(l=setTimeout(u,n)),d&&(s=t.apply(o,i),o=i=null),s};return c.clear=function(){l&&(clearTimeout(l),l=null)},c.flush=function(){l&&(s=t.apply(o,i),o=i=null,clearTimeout(l),l=null)},c}return e.debounce=e,O3=e,O3}var A3={};const MSe=er(Rme);var D3={},Wp={},F0={},S9;function AU(){if(S9)return F0;S9=1,Object.defineProperty(F0,"__esModule",{value:!0}),F0.default=n;let e;const t=new Uint8Array(16);function n(){if(!e&&(e=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!e))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(t)}return F0}var Jc={},qp={},Up={},k9;function PSe(){if(k9)return Up;k9=1,Object.defineProperty(Up,"__esModule",{value:!0}),Up.default=void 0;var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return Up.default=e,Up}var C9;function cx(){if(C9)return qp;C9=1,Object.defineProperty(qp,"__esModule",{value:!0}),qp.default=void 0;var e=t(PSe());function t(l){return l&&l.__esModule?l:{default:l}}function n(l){return typeof l=="string"&&e.default.test(l)}var r=n;return qp.default=r,qp}var M9;function dx(){if(M9)return Jc;M9=1,Object.defineProperty(Jc,"__esModule",{value:!0}),Jc.default=void 0,Jc.unsafeStringify=r;var e=t(cx());function t(o){return o&&o.__esModule?o:{default:o}}const n=[];for(let o=0;o<256;++o)n.push((o+256).toString(16).slice(1));function r(o,a=0){return n[o[a+0]]+n[o[a+1]]+n[o[a+2]]+n[o[a+3]]+"-"+n[o[a+4]]+n[o[a+5]]+"-"+n[o[a+6]]+n[o[a+7]]+"-"+n[o[a+8]]+n[o[a+9]]+"-"+n[o[a+10]]+n[o[a+11]]+n[o[a+12]]+n[o[a+13]]+n[o[a+14]]+n[o[a+15]]}function l(o,a=0){const s=r(o,a);if(!(0,e.default)(s))throw TypeError("Stringified UUID is invalid");return s}var i=l;return Jc.default=i,Jc}var P9;function OSe(){if(P9)return Wp;P9=1,Object.defineProperty(Wp,"__esModule",{value:!0}),Wp.default=void 0;var e=n(AU()),t=dx();function n(u){return u&&u.__esModule?u:{default:u}}let r,l,i=0,o=0;function a(u,c,d){let f=c&&d||0;const p=c||new Array(16);u=u||{};let h=u.node||r,g=u.clockseq!==void 0?u.clockseq:l;if(h==null||g==null){const _=u.random||(u.rng||e.default)();h==null&&(h=r=[_[0]|1,_[1],_[2],_[3],_[4],_[5]]),g==null&&(g=l=(_[6]<<8|_[7])&16383)}let b=u.msecs!==void 0?u.msecs:Date.now(),v=u.nsecs!==void 0?u.nsecs:o+1;const m=b-i+(v-o)/1e4;if(m<0&&u.clockseq===void 0&&(g=g+1&16383),(m<0||b>i)&&u.nsecs===void 0&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");i=b,o=v,l=g,b+=122192928e5;const y=((b&268435455)*1e4+v)%4294967296;p[f++]=y>>>24&255,p[f++]=y>>>16&255,p[f++]=y>>>8&255,p[f++]=y&255;const x=b/4294967296*1e4&268435455;p[f++]=x>>>8&255,p[f++]=x&255,p[f++]=x>>>24&15|16,p[f++]=x>>>16&255,p[f++]=g>>>8|128,p[f++]=g&255;for(let _=0;_<6;++_)p[f+_]=h[_];return c||(0,t.unsafeStringify)(p)}var s=a;return Wp.default=s,Wp}var Hp={},Es={},Vp={},O9;function DU(){if(O9)return Vp;O9=1,Object.defineProperty(Vp,"__esModule",{value:!0}),Vp.default=void 0;var e=t(cx());function t(l){return l&&l.__esModule?l:{default:l}}function n(l){if(!(0,e.default)(l))throw TypeError("Invalid UUID");let i;const o=new Uint8Array(16);return o[0]=(i=parseInt(l.slice(0,8),16))>>>24,o[1]=i>>>16&255,o[2]=i>>>8&255,o[3]=i&255,o[4]=(i=parseInt(l.slice(9,13),16))>>>8,o[5]=i&255,o[6]=(i=parseInt(l.slice(14,18),16))>>>8,o[7]=i&255,o[8]=(i=parseInt(l.slice(19,23),16))>>>8,o[9]=i&255,o[10]=(i=parseInt(l.slice(24,36),16))/1099511627776&255,o[11]=i/4294967296&255,o[12]=i>>>24&255,o[13]=i>>>16&255,o[14]=i>>>8&255,o[15]=i&255,o}var r=n;return Vp.default=r,Vp}var A9;function EU(){if(A9)return Es;A9=1,Object.defineProperty(Es,"__esModule",{value:!0}),Es.URL=Es.DNS=void 0,Es.default=o;var e=dx(),t=n(DU());function n(a){return a&&a.__esModule?a:{default:a}}function r(a){a=unescape(encodeURIComponent(a));const s=[];for(let u=0;u>5]>>>v%32&255,y=parseInt(b.charAt(m>>>4&15)+b.charAt(m&15),16);h.push(y)}return h}function n(p){return(p+64>>>9<<4)+14+1}function r(p,h){p[h>>5]|=128<>5]|=(p[b/8]&255)<>16)+(h>>16)+(g>>16)<<16|g&65535}function o(p,h){return p<>>32-h}function a(p,h,g,b,v,m){return i(o(i(i(h,p),i(b,m)),v),g)}function s(p,h,g,b,v,m,y){return a(h&g|~h&b,p,h,v,m,y)}function u(p,h,g,b,v,m,y){return a(h&b|g&~b,p,h,v,m,y)}function c(p,h,g,b,v,m,y){return a(h^g^b,p,h,v,m,y)}function d(p,h,g,b,v,m,y){return a(g^(h|~b),p,h,v,m,y)}var f=e;return Gp.default=f,Gp}var E9;function DSe(){if(E9)return Hp;E9=1,Object.defineProperty(Hp,"__esModule",{value:!0}),Hp.default=void 0;var e=n(EU()),t=n(ASe());function n(i){return i&&i.__esModule?i:{default:i}}var l=(0,e.default)("v3",48,t.default);return Hp.default=l,Hp}var Yp={},Xp={},R9;function ESe(){if(R9)return Xp;R9=1,Object.defineProperty(Xp,"__esModule",{value:!0}),Xp.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return Xp.default=t,Xp}var L9;function RSe(){if(L9)return Yp;L9=1,Object.defineProperty(Yp,"__esModule",{value:!0}),Yp.default=void 0;var e=r(ESe()),t=r(AU()),n=dx();function r(o){return o&&o.__esModule?o:{default:o}}function l(o,a,s){if(e.default.randomUUID&&!a&&!o)return e.default.randomUUID();o=o||{};const u=o.random||(o.rng||t.default)();if(u[6]=u[6]&15|64,u[8]=u[8]&63|128,a){s=s||0;for(let c=0;c<16;++c)a[s+c]=u[c];return a}return(0,n.unsafeStringify)(u)}var i=l;return Yp.default=i,Yp}var Kp={},Zp={},I9;function LSe(){if(I9)return Zp;I9=1,Object.defineProperty(Zp,"__esModule",{value:!0}),Zp.default=void 0;function e(l,i,o,a){switch(l){case 0:return i&o^~i&a;case 1:return i^o^a;case 2:return i&o^i&a^o&a;case 3:return i^o^a}}function t(l,i){return l<>>32-i}function n(l){const i=[1518500249,1859775393,2400959708,3395469782],o=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof l=="string"){const c=unescape(encodeURIComponent(l));l=[];for(let d=0;d>>0;b=g,g=h,h=t(p,30)>>>0,p=f,f=y}o[0]=o[0]+f>>>0,o[1]=o[1]+p>>>0,o[2]=o[2]+h>>>0,o[3]=o[3]+g>>>0,o[4]=o[4]+b>>>0}return[o[0]>>24&255,o[0]>>16&255,o[0]>>8&255,o[0]&255,o[1]>>24&255,o[1]>>16&255,o[1]>>8&255,o[1]&255,o[2]>>24&255,o[2]>>16&255,o[2]>>8&255,o[2]&255,o[3]>>24&255,o[3]>>16&255,o[3]>>8&255,o[3]&255,o[4]>>24&255,o[4]>>16&255,o[4]>>8&255,o[4]&255]}var r=n;return Zp.default=r,Zp}var $9;function ISe(){if($9)return Kp;$9=1,Object.defineProperty(Kp,"__esModule",{value:!0}),Kp.default=void 0;var e=n(EU()),t=n(LSe());function n(i){return i&&i.__esModule?i:{default:i}}var l=(0,e.default)("v5",80,t.default);return Kp.default=l,Kp}var Qp={},N9;function $Se(){if(N9)return Qp;N9=1,Object.defineProperty(Qp,"__esModule",{value:!0}),Qp.default=void 0;var e="00000000-0000-0000-0000-000000000000";return Qp.default=e,Qp}var Jp={},F9;function NSe(){if(F9)return Jp;F9=1,Object.defineProperty(Jp,"__esModule",{value:!0}),Jp.default=void 0;var e=t(cx());function t(l){return l&&l.__esModule?l:{default:l}}function n(l){if(!(0,e.default)(l))throw TypeError("Invalid UUID");return parseInt(l.slice(14,15),16)}var r=n;return Jp.default=r,Jp}var j9;function FSe(){return j9||(j9=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return o.default}});var t=c(OSe()),n=c(DSe()),r=c(RSe()),l=c(ISe()),i=c($Se()),o=c(NSe()),a=c(cx()),s=c(dx()),u=c(DU());function c(d){return d&&d.__esModule?d:{default:d}}}(D3)),D3}var z9;function jSe(){return z9||(z9=1,function(e){var t=Hn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Cf()),r=t(Rb()),l=t(Lb()),i=t(za()),o=t(MSe),a=FSe(),s=ex(),u=bs(),c=C4();function d(v,m){var y=Object.keys(v);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(v);m&&(x=x.filter(function(_){return Object.getOwnPropertyDescriptor(v,_).enumerable})),y.push.apply(y,x)}return y}function f(v){for(var m=1;m=v.length?{done:!0}:{done:!1,value:v[x++]}},e:function(T){throw T},f:_}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w=!0,S=!1,k;return{s:function(){y=y.call(v)},n:function(){var T=y.next();return w=T.done,T},e:function(T){S=!0,k=T},f:function(){try{!w&&y.return!=null&&y.return()}finally{if(S)throw k}}}}function h(v,m){if(v){if(typeof v=="string")return g(v,m);var y=Object.prototype.toString.call(v).slice(8,-1);if(y==="Object"&&v.constructor&&(y=v.constructor.name),y==="Map"||y==="Set")return Array.from(v);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return g(v,m)}}function g(v,m){(m==null||m>v.length)&&(m=v.length);for(var y=0,x=new Array(m);y0?k(T.groups):T.data.forEach(function(M){M.tableData.checked!==y&&(M.tableData.checked=M.tableData.disabled?!1:y,m.selectedCount=m.selectedCount+(y?1:-1))})})};S([_])}),(0,i.default)(this,"getOrderByCollection",function(){return m.orderByCollection.filter(function(y){return y.sortOrder})}),(0,i.default)(this,"sortOrderCollection",function(y){return y.sort(function(x,_){return x.sortOrder?_.sortOrder?x.sortOrder-_.sortOrder:-1:1})}),(0,i.default)(this,"startCellEditable",function(y,x){y.tableData.editCellList=[].concat((0,n.default)(y.tableData.editCellList||[]),[x])}),(0,i.default)(this,"finishCellEditable",function(y,x){if(y.tableData.editCellList){var _=y.tableData.editCellList.findIndex(function(w){return w.tableData.id.toString()===x.tableData.id.toString()});_!==-1&&y.tableData.editCellList.splice(_,1)}}),(0,i.default)(this,"clearBulkEditChangedRows",function(){m.bulkEditChangedRows={}}),(0,i.default)(this,"onBulkEditRowChanged",function(y,x){m.bulkEditChangedRows[y.tableData.id]={oldData:y,newData:x}}),(0,i.default)(this,"expandTreeForNodes",function(y){y.forEach(function(x){for(var _=x;m.parentFunc(_,m.data);){var w=m.parentFunc(_,m.data);w&&(w.tableData.isTreeExpanded=!0),_=w}})}),(0,i.default)(this,"findDataByPath",function(y,x){if(m.isDataType("tree")){var _=x.reduce(function(k,C){return k&&k.tableData&&k.tableData.childRows&&k.tableData.childRows.find(function(T){return T&&T.tableData.uuid===C})},{tableData:{childRows:y}});return _}else{var w={groups:y},S=x.reduce(function(k,C){return k.groups.length>0?k.groups[C]:k.data?k.data[C]||k.data.find(function(T){var M;return((M=T.tableData)===null||M===void 0?void 0:M.uuid)===C}):void 0},w);return S}}),(0,i.default)(this,"getFieldValue",function(y,x){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,w=typeof y[x.field]<"u"?y[x.field]:(0,s.selectFromObject)(y,x.field);return x.lookup&&_&&(w=x.lookup[w]),w}),(0,i.default)(this,"getRenderState",function(){return m.filtered===!1&&m.filterData(),m.searched===!1&&m.searchData(),m.grouped===!1&&m.isDataType("group")&&m.groupData(),m.treefied===!1&&m.isDataType("tree")&&m.treefyData(),m.sorted===!1&&m.sortData(),m.paged===!1&&m.pageData(),{columns:m.columns,currentPage:m.currentPage,data:m.sortedData,lastEditingRow:m.lastEditingRow,orderByCollection:m.orderByCollection,maxColumnSort:m.maxColumnSort,originalData:(0,n.default)(m.data),pageSize:m.pageSize,renderData:m.pagedData,searchText:m.searchText,selectedCount:m.selectedCount,treefiedDataLength:m.treefiedDataLength,treeDataMaxLevel:m.treeDataMaxLevel,groupedDataLength:m.groupedDataLength,tableStyleWidth:m.tableStyleWidth}}),(0,i.default)(this,"filterData",function(){m.searched=m.grouped=m.treefied=m.sorted=m.paged=!1,m.filteredData=(0,n.default)(m.data),m.applyFilters&&m.columns.filter(function(y){return y.tableData.filterValue!==void 0}).forEach(function(y){var x=y.lookup,_=y.type,w=y.tableData;y.customFilterAndSearch?m.filteredData=m.filteredData.filter(function(S){return!!y.customFilterAndSearch(w.filterValue,S,y)}):x?m.filteredData=m.filteredData.filter(function(S){var k=m.getFieldValue(S,y,!1);return!w.filterValue||w.filterValue.length===0||w.filterValue.indexOf(k!=null&&k.toString())>-1}):_==="numeric"?m.filteredData=m.filteredData.filter(function(S){var k=m.getFieldValue(S,y);return k+""===w.filterValue}):_==="boolean"&&w.filterValue?m.filteredData=m.filteredData.filter(function(S){var k=m.getFieldValue(S,y);return k&&w.filterValue==="checked"||!k&&w.filterValue==="unchecked"}):["date","datetime"].includes(_)?m.filteredData=m.filteredData.filter(function(S){var k=m.getFieldValue(S,y),C=k?new Date(k):null;if(C&&C.toString()!=="Invalid Date"){var T=w.filterValue,M="",O="";return _==="date"?(M=(0,o.default)(C,"MM/dd/yyyy"),O=(0,o.default)(T,"MM/dd/yyyy")):_==="datetime"&&(M=(0,o.default)(C,"MM/dd/yyyy - HH:mm"),O=(0,o.default)(T,"MM/dd/yyyy - HH:mm")),M===O}return!0}):_==="time"?m.filteredData=m.filteredData.filter(function(S){var k=m.getFieldValue(S,y),C=k||null;if(C){var T=w.filterValue,M=(0,o.default)(T,"HH:mm");return C===M}return!0}):m.filteredData=m.filteredData.filter(function(S){var k=m.getFieldValue(S,y);return k!=null&&k.toString().toUpperCase().includes(w.filterValue.toUpperCase())})}),m.filtered=!0}),(0,i.default)(this,"searchData",function(){if(m.grouped=m.treefied=m.sorted=m.paged=!1,m.searchedData=(0,n.default)(m.filteredData),m.searchText&&m.applySearch){var y=m.searchText.trim();m.searchedData=m.searchedData.filter(function(x){return m.columns.filter(function(_){return _.searchable===void 0?!_.hidden:_.searchable}).some(function(_){if(_.customFilterAndSearch)return!!_.customFilterAndSearch(y,x,_);if(_.field){var w=m.getFieldValue(x,_);if(w)return w.toString().toUpperCase().includes(y.toUpperCase())}return!1})})}m.searched=!0}),(0,i.default)(this,"clearCriteria",function(){m.changeOrder(-1,""),m.changeSearchText("");var y=p(m.columns),x;try{for(y.s();!(x=y.n()).done;){var _=x.value;m.changeFilterValue(_.tableData.id,"")}}catch(w){y.e(w)}finally{y.f()}m.changeSearchText(""),m.changePaging(0)})}return(0,l.default)(v,[{key:"setData",value:function(y,x){var _=this;this.selectedCount=0;var w={};this.data.length!==0&&this.data[0][x]!==void 0&&(w=this.data.reduce(function(S,k){return S[k.tableData.id]=k.tableData,S},{})),this.data=y.map(function(S,k){var C=w[S[x]]||{},T=f(f({index:k,id:S[x]||k,uuid:S.uuid||(0,a.v4)()},C),S.tableData);T.checked&&_.selectedCount++;var M=f(f({},S),{},{tableData:T});return _.lastDetailPanelRow&&_.lastDetailPanelRow.tableData===C&&(_.lastDetailPanelRow=M),_.lastEditingRow&&_.lastEditingRow.tableData===C&&(_.lastEditingRow=M),M}),this.filtered=!1}},{key:"setTableWidth",value:function(y){this.tableWidth=y}},{key:"setColumns",value:function(y){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},w=0,S=[];this.columns=y.map(function(T,M){var O,D=(0,u.widthToNumber)(T.width),P=typeof T.width=="number"?T.width+"px":T.width;P&&(isNaN(D)?S.push(P):w+=D);var E=x.find(function(F){var j=F.id;return j===M}),I=(O=_[T.field])!==null&&O!==void 0?O:{},A=f(f(f(f({columnOrder:M,filterValue:T.defaultFilter,groupOrder:T.defaultGroupOrder,groupSort:T.defaultGroupSort||"asc",width:P,initialWidth:P,widthPx:isNaN(D)?void 0:D,additionalWidth:0},I),E?E.tableData:{}),T.tableData),{},{id:M});return T.tableData=A,T});var k=this.columns.filter(function(T){return T.hidden||T.columnDef&&T.columnDef.tableData&&T.columnDef.tableData.width?!1:T.width===void 0}),C=(w!==0?"".concat(w,"px"):"0px")+(S.length>0?" - "+S.join(" - "):"");k.forEach(function(T){T.tableData.width=T.tableData.initialWidth="calc((100% - ".concat(C,") / ").concat(k.length,")")}),this.tableStyleWidth=this.tableWidth==="full"||k.length>0||S.length>0?"100%":w}},{key:"setDefaultExpanded",value:function(y){this.defaultExpanded=y}},{key:"setClientSorting",value:function(y){this.clientSorting=!!y}},{key:"setMaxColumnSort",value:function(y){var x=this.columns.filter(function(_){return _.sorting!==!1}).length;y===c.ALL_COLUMNS?this.maxColumnSort=x:this.maxColumnSort=Math.min(y,x)}},{key:"setOrderByCollection",value:function(){var y=this.getOrderByCollection(),x=this.columns.map(function(_){var w=_.tableData.id,S=y.find(function(k){return k.orderBy===w});return S?f({},S):{orderBy:_.tableData.id,sortOrder:void 0,orderDirection:""}});x=this.sortOrderCollection(x),this.orderByCollection=(0,n.default)(x)}},{key:"setDefaultOrderByCollection",value:function(y){this.defaultOrderByCollection=(0,n.default)(y)}},{key:"getDefaultOrderByCollection",value:function(){return this.defaultOrderByCollection}},{key:"changeApplySearch",value:function(y){this.applySearch=y,this.searched=!1}},{key:"changeApplyFilters",value:function(y){this.applyFilters=y,this.filtered=!1}},{key:"changeApplySort",value:function(y){this.applySort=y,this.sorted=!1}},{key:"changePaging",value:function(y){this.paging=y,this.paged=!1}},{key:"changeCurrentPage",value:function(y){this.currentPage=y,this.paged=!1}},{key:"changePageSize",value:function(y){this.pageSize=y,this.paged=!1}},{key:"changeParentFunc",value:function(y){this.parentFunc=y}},{key:"changeFilterValue",value:function(y,x){var _=this.columns.find(function(w){return w.tableData.id===y});_.tableData.filterValue=x,this.filtered=!1}},{key:"changeRowSelected",value:function(y,x){var _=this,w=this.findDataByPath(this.sortedData,x);w.tableData.checked=y,this.selectedCount=this.selectedCount+(y?1:-1);var S=function k(C){C.tableData.childRows&&C.tableData.childRows.forEach(function(T){T.tableData.checked!==y&&(T.tableData.checked=y,_.selectedCount=_.selectedCount+(y?1:-1)),k(T)})};S(w),this.filtered=!1}},{key:"changeDetailPanelVisibility",value:function(y,x){var _=this.findDataByPath(this.sortedData,y);(_.tableData.showDetailPanel||"").toString()===x.toString()?_.tableData.showDetailPanel=void 0:_.tableData.showDetailPanel=x,this.detailPanelType==="single"&&this.lastDetailPanelRow&&this.lastDetailPanelRow!==_&&(this.lastDetailPanelRow.tableData.showDetailPanel=void 0),this.lastDetailPanelRow=_}},{key:"changeGroupExpand",value:function(y){var x=this.findDataByPath(this.sortedData,y);x.isExpanded=!x.isExpanded}},{key:"changeSearchText",value:function(y){this.searchText=y,this.searched=!1,this.currentPage=0}},{key:"changeSearchDebounce",value:function(y){this.searchDebounceDelay=y}},{key:"changeRowEditing",value:function(y,x){y?(y.tableData.editing=x,this.lastEditingRow&&this.lastEditingRow!==y&&(this.lastEditingRow.tableData.editing=void 0),x?this.lastEditingRow=y:this.lastEditingRow=void 0):this.lastEditingRow&&(this.lastEditingRow.tableData.editing=void 0,this.lastEditingRow=void 0)}},{key:"changeBulkEditOpen",value:function(y){this.bulkEditOpen=y}},{key:"changeAllSelected",value:function(y,x){var _=0,w=function(T){var M=x instanceof Function?x(T):{disabled:!1};return T.tableData.disabled||M.disabled?!1:y};if(this.isDataType("group")){var S=function C(T){T.forEach(function(M){M.groups.length>0?C(M.groups):M.data.forEach(function(O){O.tableData.checked=w(O),_++})})};S(this.groupedData)}else{var k=function C(T){T.tableData.childRows&&T.tableData.childRows.forEach(function(M){M.tableData.checked=w(T),C(M)})};this.searchedData.forEach(function(C){C.tableData.checked=w(C),k(C)}),_=this.searchedData.length}this.selectedCount=y?_:0}},{key:"changeColumnOrder",value:function(y,x,_){var w=[],S=this.getOrderByCollection();S.length===this.maxColumnSort&&!_?(this.orderByCollection[0].orderDirection="",this.orderByCollection[0].sortOrder=void 0,w=this.orderByCollection.map(function(k){return k.sortOrder?k.sortOrder-=1:k.orderBy===y&&x&&(k.sortOrder=S.length,k.orderDirection=x),k})):w=this.orderByCollection.map(function(k){return k.orderBy===y&&x?(k.orderDirection=x,k.sortOrder=_||S.length+1):!x&&k.orderBy===y?(k.orderDirection=x,k.sortOrder=void 0):!x&&_-1}).sort(function(q,Y){return q.tableData.groupOrder-Y.tableData.groupOrder});if(y.destination.droppableId==="groups"&&y.source.droppableId==="groups"){x=Math.min(y.destination.index,y.source.index);var w=Math.max(y.destination.index,y.source.index);if(_=_.slice(x,w+1),y.destination.index-1})&&(x="group"),y===x}},{key:"sort",value:function(y,x,_){if(_==="numeric")return y-x;if(y!==x){if(!y)return-1;if(!x)return 1}return yx?1:0}},{key:"sortList",value:function(y){if(!this.clientSorting)return y;var x=this.orderByCollection.map(function(C){return C.orderBy}),_=new Map;this.columns.forEach(function(C){var T=C.tableData.id;x.includes(T)&&_.set(T,C)});var w=this.sort,S=this.getFieldValue,k=this.orderByCollection;return y.sort(function C(T,M){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_,D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:k,P=D[0],E=P.orderBy,I=P.orderDirection,A=O.get(E),F=0;A.customSort?I==="desc"?F=A.customSort(M,T,"row",I):F=A.customSort(T,M,"row",I):(F=w(S(T,A),S(M,A),A.type),F=I.toLowerCase()==="desc"?F*-1:F);var j=F===0&&D.filter(function(B){return B.sortOrder!==void 0}).length!==1;return j?C(T,M,O,D.slice(1)):F})}},{key:"groupData",value:function(){var y=this;this.sorted=this.paged=!1,this.groupedDataLength=0;var x=(0,n.default)(this.searchedData),_=this.columns.filter(function(S){return S.tableData.groupOrder>-1}).sort(function(S,k){return S.tableData.groupOrder-k.tableData.groupOrder}),w=x.reduce(function(S,k){var C=S;return C=_.reduce(function(T,M){var O=k[M.field]||(0,s.selectFromObject)(k,M.field),D;if(T.groupsIndex[O]!==void 0&&(D=T.groups[T.groupsIndex[O]]),!D){var P=[].concat((0,n.default)(T.path||[]),[O]),E=y.findGroupByGroupPath(y.groupedData,P)||{isExpanded:typeof y.defaultExpanded=="boolean"?y.defaultExpanded:!1};D={value:O,groups:[],groupsIndex:{},data:[],isExpanded:E.isExpanded,path:P},T.groups.push(D),T.groupsIndex[O]=T.groups.length-1}return D},C),C.data.push(k),y.groupedDataLength++,S},{groups:[],groupsIndex:{}});this.groupedData=w.groups,this.grouped=!0,this.rootGroupsIndex=w.groupsIndex}},{key:"treefyData",value:function(){var y=this;this.sorted=this.paged=!1,this.data.forEach(function(k){return k.tableData.childRows=null}),this.treefiedData=[],this.treefiedDataLength=0,this.treeDataMaxLevel=0,(this.searchText||this.columns.some(function(k){return k.tableData.filterValue}))&&(this.data.forEach(function(k){k.tableData.isTreeExpanded=!1}),this.expandTreeForNodes(this.searchedData));var x=function k(C){C.tableData.markedForTreeRemove=!1;var T=y.parentFunc(C,y.data);T?(T.tableData.childRows=T.tableData.childRows||[],T.tableData.childRows.includes(C)||(T.tableData.childRows.push(C),y.treefiedDataLength++),k(T),C.tableData.path=[].concat((0,n.default)(T.tableData.path),[C.tableData.uuid]),y.treeDataMaxLevel=Math.max(y.treeDataMaxLevel,C.tableData.path.length)):y.treefiedData.includes(C)||(y.treefiedData.push(C),y.treefiedDataLength++,C.tableData.path=[C.tableData.uuid])};this.data.forEach(function(k){x(k)});var _=function(C){var T=y.treefiedData;C.tableData.path.forEach(function(M){T.tableData&&T.tableData.childRows&&(T=T.tableData.childRows),Array.isArray(T)&&(T=T.find(function(O){return O.tableData.uuid===M}))}),T.tableData.markedForTreeRemove=!0},w=function k(C){C.tableData.childRows&&C.tableData.childRows.forEach(function(T){k(T)}),C.tableData.markedForTreeRemove=!1};this.data.forEach(function(k){if(!y.searchText&&!y.columns.some(function(M){return M.tableData.filterValue})&&k.tableData.isTreeExpanded===void 0){var C=typeof y.defaultExpanded=="boolean"?y.defaultExpanded:y.defaultExpanded(k);k.tableData.isTreeExpanded=C}var T=k.tableData.isTreeExpanded;!T&&y.searchedData.indexOf(k)<0&&_(k)}),this.data.forEach(function(k){y.searchedData.indexOf(k)>-1&&w(k)});var S=function k(C){for(var T=C.length-1;T>=0;T--){var M=C[T];M.tableData.childRows&&k(M.tableData.childRows),M.tableData.markedForTreeRemove&&C.splice(T,1)}};S(this.treefiedData),this.treefiedDataLength=this.treefiedData.length,this.treefied=!0}},{key:"sortData",value:function(){var y=this;if(this.paged=!1,this.isDataType("group")){this.sortedData=(0,n.default)(this.groupedData);var x=this.columns.filter(function(C){return C.tableData.groupOrder>-1}).sort(function(C,T){return C.tableData.groupOrder-T.tableData.groupOrder}),_=function(T,M){return M.customSort?T.sort(M.tableData.groupSort==="desc"?function(O,D){return M.customSort(D.value,O.value,"group",M.tableData.groupSort)}:function(O,D){return M.customSort(O.value,D.value,"group",M.tableData.groupSort)}):T.sort(M.tableData.groupSort==="desc"?function(O,D){return y.sort(D.value,O.value,M.type)}:function(O,D){return y.sort(O.value,D.value,M.type)})};this.sortedData=_(this.sortedData,x[0]);var w=function(T){return T.reduce(function(M,O){return M[O.value]=T.findIndex(function(D){return D.value===O.value}),M},{})},S=function C(T,M){T.forEach(function(O){if(O.groups.length>0){var D=x[M];O.groups=_(O.groups,D),O.groupsIndex=w(O.groups),C(O.groups,M+1)}else y.maxColumnSort>0&&y.getOrderByCollection().length>0?O.data=y.sortList(O.data):y.maxColumnSort>0&&(O.data=O.data.sort(function(P,E){return y.data.findIndex(function(I){return I.tableData.id===P.tableData.id})-y.data.findIndex(function(I){return I.tableData.id===E.tableData.id})}))})};S(this.sortedData,1)}else if(this.isDataType("tree")){if(this.sortedData=(0,n.default)(this.treefiedData),this.maxColumnSort>0&&this.getOrderByCollection().length>0){this.sortedData=this.sortList(this.sortedData);var k=function C(T){T.forEach(function(M){M.tableData.childRows&&(M.tableData.childRows=y.sortList(M.tableData.childRows),C(M.tableData.childRows))})};k(this.sortedData)}}else this.isDataType("normal")&&(this.sortedData=(0,n.default)(this.searchedData),this.maxColumnSort>0&&this.getOrderByCollection().length>0&&this.applySort&&(this.sortedData=this.sortList(this.sortedData)));this.sorted=!0}},{key:"pageData",value:function(){if(this.pagedData=(0,n.default)(this.sortedData),this.paging){var y=this.currentPage*this.pageSize,x=y+this.pageSize;this.pagedData=this.pagedData.slice(y,x)}this.paged=!0}}]),v}();e.default=b}(A3)),A3}var B9;function zSe(){return B9||(B9=1,function(e){var t=Hn,n=Pa();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(TSe),l=t(SSe),i=t(ms),o=t(jr()),a=t(kc),s=t(Cf()),u=t(kSe),c=t(Pa()),d=t(vu()),f=t(Rb()),p=t(Lb()),h=t(w5()),g=t(x5()),b=t(_5()),v=t(T5()),m=t(za()),y=t(ge),x=CSe(),_=t(zB()),w=M(bs()),S=k4,k=t(jSe()),C=ux();function T(j){if(typeof WeakMap!="function")return null;var B=new WeakMap,z=new WeakMap;return(T=function(R){return R?z:B})(j)}function M(j,B){if(j&&j.__esModule)return j;if(j===null||n(j)!=="object"&&typeof j!="function")return{default:j};var z=T(B);if(z&&z.has(j))return z.get(j);var N={},R=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var q in j)if(q!=="default"&&Object.prototype.hasOwnProperty.call(j,q)){var Y=R?Object.getOwnPropertyDescriptor(j,q):null;Y&&(Y.get||Y.set)?Object.defineProperty(N,q,Y):N[q]=j[q]}return N.default=j,z&&z.set(j,N),N}function O(j,B){var z=Object.keys(j);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(j);B&&(N=N.filter(function(R){return Object.getOwnPropertyDescriptor(j,R).enumerable})),z.push.apply(z,N)}return z}function D(j){for(var B=1;B"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var I=function(j){(0,g.default)(z,j);var B=P(z);function z(N){var R;(0,f.default)(this,z),R=B.call(this,N),(0,m.default)((0,h.default)(R),"dataManager",new k.default),(0,m.default)((0,h.default)(R),"checkedForFunctions",!1),(0,m.default)((0,h.default)(R),"clearCriteria",function(){R.dataManager.clearCriteria(),R.setState(R.dataManager.getRenderState())}),(0,m.default)((0,h.default)(R),"isRemoteData",function(L){return!Array.isArray((L||R.props).data)}),(0,m.default)((0,h.default)(R),"onAllSelected",function(L){R.dataManager.changeAllSelected(L,R.props.options.selectionProps),R.setState(R.dataManager.getRenderState(),function(){return R.onSelectionChange()})}),(0,m.default)((0,h.default)(R),"onGroupSelected",function(L,W){R.dataManager.changeGroupSelected(L,W),R.setState(R.dataManager.getRenderState(),function(){return R.onSelectionChange()})}),(0,m.default)((0,h.default)(R),"onChangeColumnHidden",function(L,W){R.dataManager.changeColumnHidden(L,W),R.setState(R.dataManager.getRenderState(),function(){R.props.onChangeColumnHidden&&R.props.onChangeColumnHidden(L,W)})}),(0,m.default)((0,h.default)(R),"onChangeGroupOrder",function(L){R.dataManager.changeGroupOrder(L.tableData.id),R.setState(R.dataManager.getRenderState())}),(0,m.default)((0,h.default)(R),"onChangeOrder",function(L,W,H){R.dataManager.changeColumnOrder(L,W,H);var G=R.dataManager.getOrderByCollection();if(R.isRemoteData()){var te=D({},R.state.query);te.page=0,te.orderBy=R.state.columns.find(function(ee){return ee.tableData.id===L}),te.orderDirection=W,console.warn("Properties orderBy and orderDirection had been deprecated when remote data, please start using orderByCollection instead"),te.orderByCollection=G,R.onQueryChange(te,function(){R.props.onOrderChange&&R.props.onOrderChange(L,W),R.props.onOrderCollectionChange&&R.props.onOrderCollectionChange(G)})}else R.setState(R.dataManager.getRenderState(),function(){R.props.onOrderChange&&R.props.onOrderChange(L,W),R.props.onOrderCollectionChange&&R.props.onOrderCollectionChange(G)})}),(0,m.default)((0,h.default)(R),"onPageChange",function(L,W){if(R.isRemoteData()){var H=D({},R.state.query);H.page=W,R.onQueryChange(H,function(){R.props.onPageChange&&R.props.onPageChange(W,H.pageSize)})}else R.dataManager.changeCurrentPage(W),R.setState(R.dataManager.getRenderState(),function(){R.props.onPageChange&&R.props.onPageChange(W,R.state.pageSize)})}),(0,m.default)((0,h.default)(R),"onRowsPerPageChange",function(L){var W=L.target.value;R.dataManager.changePageSize(W);var H=function(){R.props.onPageChange&&R.props.onPageChange(0,W),R.props.onRowsPerPageChange&&R.props.onRowsPerPageChange(W)};if(R.isRemoteData()){var G=D({},R.state.query);G.pageSize=L.target.value,G.page=0,R.onQueryChange(G,H)}else R.dataManager.changeCurrentPage(0),R.setState(R.dataManager.getRenderState(),H)}),(0,m.default)((0,h.default)(R),"onDragEnd",function(L){!L||!L.source||!L.destination||(R.dataManager.changeByDrag(L),R.setState(R.dataManager.getRenderState(),function(){R.props.onColumnDragged&&L.destination.droppableId==="headers"&&L.source.droppableId==="headers"&&R.props.onColumnDragged(L.source.index,L.destination.index)}))}),(0,m.default)((0,h.default)(R),"onGroupExpandChanged",function(L){R.dataManager.changeGroupExpand(L),R.setState(R.dataManager.getRenderState())}),(0,m.default)((0,h.default)(R),"onGroupRemoved",function(L,W){var H={combine:null,destination:{droppableId:"headers",index:0},draggableId:L.tableData.id,mode:"FLUID",reason:"DROP",source:{index:W,droppableId:"groups"},type:"DEFAULT"};R.dataManager.changeByDrag(H),R.setState(R.dataManager.getRenderState(),function(){R.props.onGroupRemoved&&R.props.onGroupRemoved(L,W)})}),(0,m.default)((0,h.default)(R),"onEditingApproved",function(L,W,H){L==="add"&&R.props.editable&&R.props.editable.onRowAdd?R.setState({isLoading:!0},function(){R.props.editable.onRowAdd(W).then(function(G){R.setState({isLoading:!1,showAddRow:!1},function(){R.isRemoteData()&&R.onQueryChange(R.state.query)})}).catch(function(G){var te={message:G,errorCause:"add"};R.setState({isLoading:!1,errorState:te})})}):L==="update"&&R.props.editable&&R.props.editable.onRowUpdate?R.setState({isLoading:!0},function(){R.props.editable.onRowUpdate(W,H).then(function(G){R.dataManager.changeRowEditing(H),R.setState(D({isLoading:!1},R.dataManager.getRenderState()),function(){R.isRemoteData()&&R.onQueryChange(R.state.query)})}).catch(function(G){var te={message:G,errorCause:"update"};R.setState({isLoading:!1,errorState:te})})}):L==="delete"&&R.props.editable&&R.props.editable.onRowDelete?R.setState({isLoading:!0},function(){R.props.editable.onRowDelete(Object.entries(H).reduce(function(G,te){var ee=(0,d.default)(te,2),U=ee[0],Q=ee[1];return U!=="tableData"&&(G[U]=Q),G},{})).then(function(G){R.dataManager.changeRowEditing(H),R.setState(D({isLoading:!1},R.dataManager.getRenderState()),function(){R.isRemoteData()&&R.onQueryChange(R.state.query)})}).catch(function(G){var te={message:G,errorCause:"delete"};R.setState({isLoading:!1,errorState:te})})}):L==="bulk"&&R.props.editable&&R.props.editable.onBulkUpdate&&R.setState({isLoading:!0},function(){R.props.editable.onBulkUpdate(R.dataManager.bulkEditChangedRows).then(function(G){R.dataManager.changeBulkEditOpen(!1),R.props.onBulkEditOpen&&R.props.onBulkEditOpen(!1),R.dataManager.clearBulkEditChangedRows(),R.setState(D({isLoading:!1},R.dataManager.getRenderState()),function(){R.isRemoteData()&&R.onQueryChange(R.state.query)})}).catch(function(G){var te={message:G,errorCause:"bulk edit"};R.setState({isLoading:!1,errorState:te})})})}),(0,m.default)((0,h.default)(R),"onEditingCanceled",function(L,W){L==="add"?(R.props.editable.onRowAddCancelled&&R.props.editable.onRowAddCancelled(),R.setState({showAddRow:!1})):L==="update"?(R.props.editable.onRowUpdateCancelled&&R.props.editable.onRowUpdateCancelled(),R.dataManager.changeRowEditing(W),R.setState(R.dataManager.getRenderState())):L==="delete"&&(R.dataManager.changeRowEditing(W),R.setState(R.dataManager.getRenderState()))}),(0,m.default)((0,h.default)(R),"retry",function(){R.onQueryChange(R.state.query)}),(0,m.default)((0,h.default)(R),"onQueryChange",function(L,W){L=D(D(D({},R.state.query),L),{},{error:R.state.errorState}),R.setState({isLoading:!0,errorState:void 0},function(){R.props.data(L).then(function(H){L.totalCount=H.totalCount,L.page=H.page;var G=D(D({},L),{},{totalCount:H.totalCount,page:H.page});R.dataManager.setData(H.data,R.props.options.idSynonym),R.setState(D(D({isLoading:!1,errorState:!1},R.dataManager.getRenderState()),{},{query:G}),function(){W&&W()})}).catch(function(H){var G={message:(0,c.default)(H)==="object"?H.message:H!==void 0?H:R.props.localization.error,errorCause:"query"};R.setState(D({isLoading:!1,errorState:G},R.dataManager.getRenderState()))})})}),(0,m.default)((0,h.default)(R),"onRowSelected",function(L,W,H){R.dataManager.changeRowSelected(L.target.checked,W),R.setState(R.dataManager.getRenderState(),function(){return R.onSelectionChange(H)})}),(0,m.default)((0,h.default)(R),"onSelectionChange",function(L){if(R.props.onSelectionChange){var W=[],H=function(te){te.forEach(function(ee){ee.tableData.checked&&W.push(ee)})};H(R.state.originalData),R.props.onSelectionChange(W,L)}}),(0,m.default)((0,h.default)(R),"onSearchChangeDebounce",(0,x.debounce)(function(L){if(R.isRemoteData()){var W=D({},R.state.query);W.page=0,W.search=L,R.onQueryChange(W,function(){R.props.onSearchChange&&R.props.onSearchChange(L)})}else R.setState(R.dataManager.getRenderState(),function(){R.props.onSearchChange&&R.props.onSearchChange(L)})},R.props.options.debounceInterval)),(0,m.default)((0,h.default)(R),"onFilterChange",function(L,W){R.dataManager.changeFilterValue(L,W),R.setState({},R.onFilterChangeDebounce)}),(0,m.default)((0,h.default)(R),"onFilterChangeDebounce",(0,x.debounce)(function(){if(R.isRemoteData()){var L=D({},R.state.query);L.page=0,L.filters=R.state.columns.filter(function(W){return W.tableData.filterValue}).map(function(W){return{column:W,operator:"=",value:W.tableData.filterValue}}),R.onQueryChange(L,function(){R.props.onFilterChange&&R.props.onFilterChange(L.filters)})}else R.setState(R.dataManager.getRenderState(),function(){if(R.props.onFilterChange){var W=R.state.columns.filter(function(H){return H.tableData.filterValue}).map(function(H){return{column:H,operator:"=",value:H.tableData.filterValue}});R.props.onFilterChange(W)}})},R.props.options.debounceInterval)),(0,m.default)((0,h.default)(R),"onTreeExpandChanged",function(L,W){R.dataManager.changeTreeExpand(L),R.setState(R.dataManager.getRenderState(),function(){R.props.onTreeExpandChange&&R.props.onTreeExpandChange(W,W.tableData.isTreeExpanded)})}),(0,m.default)((0,h.default)(R),"onToggleDetailPanel",function(L,W){R.dataManager.changeDetailPanelVisibility(L,W),R.setState(R.dataManager.getRenderState())}),(0,m.default)((0,h.default)(R),"onCellEditStarted",function(L,W){R.dataManager.startCellEditable(L,W),R.setState(R.dataManager.getRenderState())}),(0,m.default)((0,h.default)(R),"onCellEditFinished",function(L,W){R.dataManager.finishCellEditable(L,W),R.setState(R.dataManager.getRenderState())}),(0,m.default)((0,h.default)(R),"onEditRowDataChanged",function(L,W){R.dataManager.setEditRowData(L,W),R.setState(R.dataManager.getRenderState())}),(0,m.default)((0,h.default)(R),"onColumnResized",function(L,W,H,G){var te=function(Q){return D(D(D({field:Q.field,width:Q.tableData.width,widthPx:Q.tableData.widthPx},Q.id&&{id:Q.id}),Q.minWidth&&{minWidth:Q.minWidth}),Q.maxWidth&&{maxWidth:Q.maxWidth})},ee=R.dataManager.onColumnResized(L,W,H,G);R.setState(R.dataManager.getRenderState(),function(){W===0&&R.props.onColumnResized&&ee.length>0&&R.props.onColumnResized(ee.map(function(U){return te(U)}),R.state.columns.map(function(U){return te(U)}))})}),(0,m.default)((0,h.default)(R),"renderTable",function(L){var W;return y.default.createElement(u.default,{sx:L.sx,style:D(D({},L.options.tableWidth==="variable"&&{width:R.state.tableStyleWidth}),{},{tableLayout:L.options.fixedColumns&&(L.options.fixedColumns.left||L.options.fixedColumns.right)?"fixed":L.options.tableLayout})},L.options.header&&y.default.createElement(L.components.Header,{actions:R.state.actions,columns:R.state.columns,selectedCount:R.state.selectedCount,dataCount:L.parentChildData?R.dataManager.searchedData.length:R.state.columns.some(function(H){return H.tableData.groupOrder>-1})?R.state.groupedDataLength:R.state.data.length,hasDetailPanel:!!L.detailPanel,showActionsColumn:!R.dataManager.bulkEditOpen&&R.state.actions&&R.state.actions.some(function(H){return H.position==="row"||typeof H=="function"}),onAllSelected:R.onAllSelected,onOrderChange:R.onChangeOrder,isTreeData:R.props.parentChildData!==void 0,treeDataMaxLevel:R.state.treeDataMaxLevel,onColumnResized:R.onColumnResized,scrollWidth:R.state.width,sorting:L.options.sorting||R.dataManager.maxColumnSort!==0,allowSorting:R.dataManager.maxColumnSort!==0,orderByCollection:R.dataManager.getOrderByCollection(),tableWidth:(W=L.options.tableWidth)!==null&&W!==void 0?W:"full"}),y.default.createElement(L.components.Body,{actions:R.state.actions,components:R.props.components,renderData:R.state.renderData,data:R.state.data,renderSummaryRow:R.props.renderSummaryRow,currentPage:R.isRemoteData()?0:R.state.currentPage,initialFormData:L.initialFormData,pageSize:R.state.pageSize,columns:R.state.columns,errorState:R.state.errorState,detailPanel:L.detailPanel,options:L.options,getFieldValue:R.dataManager.getFieldValue,isTreeData:R.props.parentChildData!==void 0,onFilterChanged:R.onFilterChange,onRowSelected:R.onRowSelected,onGroupSelected:R.onGroupSelected,onToggleDetailPanel:R.onToggleDetailPanel,onGroupExpandChanged:R.onGroupExpandChanged,onTreeExpandChanged:R.onTreeExpandChanged,onEditingCanceled:R.onEditingCanceled,onEditingApproved:R.onEditingApproved,onRowClick:R.props.onRowClick,onRowDoubleClick:R.props.onRowDoubleClick,showAddRow:R.state.showAddRow,hasAnyEditingRow:!!(R.state.lastEditingRow||R.state.showAddRow),hasDetailPanel:!!L.detailPanel,treeDataMaxLevel:R.state.treeDataMaxLevel,cellEditable:L.cellEditable,onCellEditStarted:R.onCellEditStarted,onCellEditFinished:R.onCellEditFinished,onRowEditStarted:R.onRowEditStarted,bulkEditOpen:R.dataManager.bulkEditOpen,bulkEditChangedRows:R.dataManager.bulkEditChangedRows,onBulkEditRowChanged:R.dataManager.onBulkEditRowChanged,scrollWidth:R.state.width}))}),(0,m.default)((0,h.default)(R),"onRowEditStarted",function(L){var W;(W=R.props.editable)!==null&&W!==void 0&&W.onRowUpdate&&(R.dataManager.changeRowEditing(L,"update"),R.setState(D(D({},R.dataManager.getRenderState()),{},{showAddRow:!1})))}),(0,m.default)((0,h.default)(R),"getColumnsWidth",function(L,W){var H=[],G=w.actionsColumnWidth(L);if(G>0&&(W>0&&L.options.actionsColumnIndex>=0&&L.options.actionsColumnIndex=W)&&H.push(G+"px"),L.options.selection&&W>0){var te=w.selectionMaxWidth(L,R.state.treeDataMaxLevel);H.push(te+"px")}for(var ee=0;ee=0?ee:R.state.columns.length-1-ee];U.tableData&&(typeof U.tableData.width=="number"?H.push(U.tableData.width+"px"):H.push(U.tableData.width))}return"calc("+H.join(" + ")+")"}),(0,m.default)((0,h.default)(R),"getRenderData",function(){return R.props.options.exportAllData?R.state.data:R.state.renderData});var q=R.getProps(N);R.setDataManagerFields(q,!0);var Y=R.dataManager.getRenderState();return R.state=D(D({data:[],errorState:void 0},Y),{},{query:{filters:Y.columns.filter(function(L){return L.tableData.filterValue}).map(function(L){return{column:L,operator:"=",value:L.tableData.filterValue}}),orderBy:Y.columns.find(function(L){return L.tableData.id===Y.orderBy}),orderDirection:Y.orderDirection,orderByCollection:Y.orderByCollection,page:0,pageSize:q.options.pageSize,search:Y.searchText,totalCount:0},showAddRow:!1,bulkEditOpen:!1,width:0,tableInitialWidthPx:void 0,tableStyleWidth:"100%",actions:q.actions}),R.tableContainerDiv=y.default.createRef(),R}return(0,p.default)(z,[{key:"componentDidMount",value:function(){var R=this;this.setState(D(D({},this.dataManager.getRenderState()),{},{width:this.tableContainerDiv.current.scrollWidth}),function(){R.isRemoteData()&&R.onQueryChange(D(D({},R.state.query),{},{page:R.props.options.initialPage||0})),R.props.onDoubleRowClick!==void 0&&console.warn("Property `onDoubleRowClick` has been renamed to `onRowDoubleClick`"),R.props.options.sorting!==void 0&&console.warn("Property `sorting` has been deprecated, please start using `maxColumnSort` instead. https://github.com/material-table-core/core/pull/619")})}},{key:"setDataManagerFields",value:function(R,q,Y){var L,W=this,H={};if(R.options.persistentGroupingsId&&localStorage){var G=localStorage.getItem("material-table-groupings");G&&(G=JSON.parse(G),G[R.options.persistentGroupingsId]&&G[R.options.persistentGroupingsId].forEach(function(ke){H[ke.field]={groupOrder:ke.groupOrder,groupSort:ke.groupSort,columnOrder:ke.columnOrder}}))}this.dataManager.setTableWidth((L=R.options.tableWidth)!==null&&L!==void 0?L:"full"),this.dataManager.setColumns(R.columns,Y,H),this.dataManager.setDefaultExpanded(R.options.defaultExpanded),this.dataManager.changeRowEditing();var te=R.options,ee=te.clientSorting,U=te.grouping,Q=te.maxColumnSort;this.dataManager.setClientSorting(ee),this.dataManager.setMaxColumnSort(U?1:Q),this.dataManager.setOrderByCollection(),this.isRemoteData(R)?(this.dataManager.changeApplySearch(!1),this.dataManager.changeApplyFilters(!1),this.dataManager.changeApplySort(!1)):(this.dataManager.changeApplySearch(!0),this.dataManager.changeApplyFilters(!0),this.dataManager.changeApplySort(!0),this.dataManager.setData(R.data,R.options.idSynonym));var V=this.dataManager.getDefaultOrderByCollection(),X=R.options.defaultOrderByCollection,K=[],ne="",ae="";if(X&&X.length>0)K=(0,s.default)(X).slice(0,Q),K=this.dataManager.sortOrderCollection(K),ne=JSON.stringify(K),ae=JSON.stringify(V),ne!==ae&&this.dataManager.setDefaultOrderByCollection(K);else{var ie=A(R.columns,Y,this.dataManager.maxColumnSort);K=(0,s.default)(ie[0]),ne=JSON.stringify(K),ae=JSON.stringify((0,s.default)(ie[1]))}var se=JSON.stringify(this.dataManager.orderByCollection),pe=q||!this.isRemoteData()&&K.length&&ne!==ae&&ne!==se;pe&&K.length>0&&Q>0&&K.forEach(function(ke){var Ce=ke.orderBy,Oe=ke.orderDirection,Pe=ke.sortOrder;return W.dataManager.changeColumnOrder(Ce,Oe,Pe)}),q&&this.dataManager.changeSearchText(R.options.searchText||""),q&&this.dataManager.changeSearchDebounce(R.options.searchDebounceDelay),q&&this.dataManager.changeCurrentPage(R.options.initialPage?R.options.initialPage:0),q&&this.dataManager.changePageSize(R.options.pageSize),this.dataManager.changePaging(this.isRemoteData()?!1:R.options.paging),q&&this.dataManager.changeParentFunc(R.parentChildData),this.dataManager.changeDetailPanelType(R.options.detailPanelType)}},{key:"cleanColumns",value:function(R){return R.map(function(q){var Y=D({},q);return delete Y.tableData,Y})}},{key:"componentDidUpdate",value:function(R){var q=this.cleanColumns(R.columns),Y=this.cleanColumns(this.props.columns),L=!(0,_.default)(q,Y),W=L||!(0,_.default)(R.options,this.props.options);if(this.isRemoteData()||(W=W||!(0,_.default)(R.data,this.props.data)),R.options.pageSize!==this.props.options.pageSize&&this.dataManager.changePageSize(this.props.options.pageSize),W){var H=this.getProps(this.props);this.setDataManagerFields(H,!1,R.columns),this.setState(D(D({},this.dataManager.getRenderState()),{},{actions:H.actions}))}var G=this.isRemoteData()?this.state.query.totalCount:this.state.data.length,te=this.isRemoteData()?this.state.query.page:this.state.currentPage,ee=this.isRemoteData()?this.state.query.pageSize:this.state.pageSize;G<=ee*te&&te!==0&&!this.state.isLoading&&this.onPageChange(null,Math.max(0,Math.ceil(G/ee)-1))}},{key:"getProps",value:function(R){var q=this,Y=D({},R||this.props),L=this.props.localization.body;if(Y.options.selection?Y.actions=Y.actions.filter(function(H){return H}).map(function(H){return H.position==="auto"||H.isFreeAction===!1||H.position===void 0&&H.isFreeAction===void 0?typeof H=="function"?{action:H,position:"toolbarOnSelect"}:D(D({},H),{},{position:"toolbarOnSelect"}):H.isFreeAction?typeof H=="function"?{action:H,position:"toolbar"}:D(D({},H),{},{position:"toolbar"}):H}):Y.actions=Y.actions.filter(function(H){return H}).map(function(H){return H.position==="auto"||H.isFreeAction===!1||H.position===void 0&&H.isFreeAction===void 0?typeof H=="function"?{action:H,position:"row"}:D(D({},H),{},{position:"row"}):H.isFreeAction?typeof H=="function"?{action:H,position:"toolbar"}:D(D({},H),{},{position:"toolbar"}):H}),Y.editable){var W;Y.editable.onRowAdd&&Y.actions.push({icon:Y.icons.Add,tooltip:L.addTooltip,position:"toolbar",disabled:!!this.dataManager.lastEditingRow,onClick:function(){q.dataManager.changeRowEditing(),q.state.showAddRow&&q.props.editable.onRowAddCancelled&&q.props.editable.onRowAddCancelled(),q.setState(D(D({},q.dataManager.getRenderState()),{},{showAddRow:!q.state.showAddRow}))}}),Y.editable.onRowUpdate&&Y.actions.push(function(H){return{icon:Y.icons.Edit,tooltip:Y.editable.editTooltip?Y.editable.editTooltip(H):L.editTooltip,disabled:Y.editable.isEditable&&!Y.editable.isEditable(H),hidden:Y.editable.isEditHidden&&Y.editable.isEditHidden(H),onClick:function(te,ee){q.onRowEditStarted(ee)}}}),Y.editable.onRowDelete&&Y.actions.push(function(H){return{icon:Y.icons.Delete,tooltip:Y.editable.deleteTooltip?Y.editable.deleteTooltip(H):L.deleteTooltip,disabled:Y.editable.isDeletable&&!Y.editable.isDeletable(H),hidden:Y.editable.isDeleteHidden&&Y.editable.isDeleteHidden(H),onClick:function(te,ee){q.dataManager.changeRowEditing(ee,"delete"),q.setState(D(D({},q.dataManager.getRenderState()),{},{showAddRow:!1}))}}}),Y.editable.onBulkUpdate&&(Y.actions.push({icon:Y.icons.Edit,tooltip:L.bulkEditTooltip,position:"toolbar",hidden:this.dataManager.bulkEditOpen,disabled:Y.isBulkEditable&&Y.isBulkEditable(),onClick:function(){q.dataManager.changeBulkEditOpen(!0),q.props.onBulkEditOpen&&q.props.onBulkEditOpen(!0),q.setState(q.dataManager.getRenderState())}}),Y.actions.push({icon:Y.icons.Check,tooltip:L.bulkEditApprove,position:"toolbar",hidden:!this.dataManager.bulkEditOpen,onClick:function(){return q.onEditingApproved("bulk")}}),Y.actions.push({icon:Y.icons.Clear,tooltip:L.bulkEditCancel,position:"toolbar",hidden:!this.dataManager.bulkEditOpen,onClick:function(){q.dataManager.changeBulkEditOpen(!1),q.props.onBulkEditOpen&&q.props.onBulkEditOpen(!1),q.dataManager.clearBulkEditChangedRows(),q.setState(q.dataManager.getRenderState())}})),(W=this.state)!==null&&W!==void 0&&W.showAddRow&&Y.editable.onRowAdd&&Y.actions.filter(function(H){return H.position==="row"}).length===0&&Y.actions.push({icon:void 0,position:"row",onClick:function(){},disabled:!0})}return Y}},{key:"renderFooter",value:function(){var R=this.getProps();if(R.options.paging){var q=this.isRemoteData()?Math.min(R.page,Math.floor(R.totalCount/this.state.pageSize)):this.state.currentPage,Y=this.isRemoteData()?R.totalCount:this.state.data.length;return y.default.createElement(u.default,null,y.default.createElement(l.default,{style:{display:"grid"}},y.default.createElement(i.default,{style:{display:"grid"}},y.default.createElement(R.components.Pagination,{sx:{display:"flex",justifyContent:R.options.paginationAlignment?R.options.paginationAlignment:"flex-end",overflowX:"auto","& .MuiTablePagination-displayedRows":{display:"none"}},colSpan:3,count:this.isRemoteData()?this.state.query.totalCount:Y,rowsPerPage:this.state.pageSize,rowsPerPageOptions:R.options.pageSizeOptions,SelectProps:{renderValue:function(W){return y.default.createElement(a.default,{sx:{padding:"0px 5px"}},W+" "+R.localization.pagination.labelRows+" ")}},page:this.isRemoteData()?this.state.query.page:q,onPageChange:this.onPageChange,onRowsPerPageChange:this.onRowsPerPageChange,ActionsComponent:function(W){return R.options.paginationType==="normal"?y.default.createElement(C.MTablePagination,(0,o.default)({},W,{showFirstLastPageButtons:R.options.showFirstLastPageButtons})):y.default.createElement(C.MTableSteppedPagination,(0,o.default)({},W,{showFirstLastPageButtons:R.options.showFirstLastPageButtons,numberOfPagesAround:R.options.numberOfPagesAround}))},labelRowsPerPage:R.localization.pagination.labelRowsPerPage}))))}}},{key:"render",value:function(){var R=this,q=this.getProps();return y.default.createElement(S.DragDropContext,{onDragEnd:this.onDragEnd,nonce:q.options.cspNonce},y.default.createElement(this.props.components.Container,{style:D({position:"relative"},q.style)},q.options.paginationPosition==="top"||q.options.paginationPosition==="both"?this.renderFooter():null,q.options.toolbar&&y.default.createElement(this.props.components.Toolbar,{actions:q.actions,components:this.props.components,originalData:this.state.originalData,columns:this.state.columns,selectedCount:this.state.selectedCount,getFieldValue:this.dataManager.getFieldValue,data:this.getRenderData,title:q.title,searchText:this.dataManager.searchText,searchDebounceDelay:this.dataManager.searchDebounceDelay,onSearchChanged:this.onSearchChangeDebounce,isRemoteData:this.isRemoteData(),dataManager:this.dataManager,onColumnsChanged:this.onChangeColumnHidden}),q.options.grouping&&y.default.createElement(this.props.components.Groupbar,{groupColumns:this.state.columns.filter(function(Y){return Y.tableData.groupOrder>-1}).sort(function(Y,L){return Y.tableData.groupOrder-L.tableData.groupOrder}),onSortChanged:this.onChangeGroupOrder,onGroupRemoved:this.onGroupRemoved,onGroupChange:this.props.onGroupChange,persistentGroupingsId:q.options.persistentGroupingsId}),y.default.createElement(C.MTableScrollbar,{double:q.options.doubleHorizontalScroll},y.default.createElement(S.Droppable,{droppableId:"headers",direction:"horizontal"},function(Y,L){var W=R.renderTable(q);return y.default.createElement("div",{ref:Y.innerRef},y.default.createElement("div",{ref:R.tableContainerDiv,style:{maxHeight:q.options.maxBodyHeight,minHeight:q.options.minBodyHeight,overflowY:q.options.overflowY}},R.state.width&&q.options.fixedColumns&&q.options.fixedColumns.right?y.default.createElement("div",{style:{width:R.getColumnsWidth(q,-1*q.options.fixedColumns.right),position:"absolute",top:0,right:0,boxShadow:"-2px 0px 15px rgba(125,147,178,.25)",overflowX:"clip",zIndex:11}},y.default.createElement("div",{style:{width:R.state.width,background:"white",transform:"translateX(calc(".concat(R.getColumnsWidth(q,-1*q.options.fixedColumns.right)," - 100%))")}},W)):null,y.default.createElement("div",null,W),R.state.width&&q.options.fixedColumns&&q.options.fixedColumns.left?y.default.createElement("div",{style:{width:R.getColumnsWidth(q,q.options.fixedColumns.left),position:"absolute",top:0,left:0,boxShadow:"2px 0px 15px rgba(125,147,178,.25)",overflowX:"clip",zIndex:11}},y.default.createElement("div",{style:{width:R.state.width,background:"white"},onKeyDown:function(G){G.key==="Tab"&&G.preventDefault()}},W)):null),Y.placeholder)})),(this.state.isLoading||q.isLoading)&&q.options.loadingType==="linear"&&y.default.createElement("div",{style:{position:"relative",width:"100%"}},y.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%"}},y.default.createElement(r.default,null))),q.options.paginationPosition==="bottom"||q.options.paginationPosition==="both"?this.renderFooter():null,(this.state.isLoading||q.isLoading)&&q.options.loadingType==="overlay"&&y.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%",zIndex:11}},y.default.createElement(this.props.components.OverlayLoading,{theme:q.theme})),this.state.errorState&&this.state.errorState.errorCause==="query"&&y.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%",zIndex:11}},y.default.createElement(this.props.components.OverlayError,{error:this.state.errorState,retry:this.retry,theme:q.theme}))))}}]),z}(y.default.Component);e.default=I;function A(j,B,z){var N=[],R=[];return z>0&&(N=F(j,z)),B&&(R=F(B,z)),[N,R]}function F(j,B){var z=j.filter(function(N){return N.defaultSort&&N.sorting!==!1});return z.slice(0,B).map(function(N,R){return{orderBy:N.tableData?N.tableData.id:j.findIndex(function(q){return q.field===N.field}),orderDirection:N.defaultSort,sortOrder:R+1}})}}(P3)),P3}(function(e){var t=Hn;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ALL_COLUMNS",{enumerable:!0,get:function(){return c.ALL_COLUMNS}}),Object.defineProperty(e,"MTableAction",{enumerable:!0,get:function(){return u.MTableAction}}),Object.defineProperty(e,"MTableActions",{enumerable:!0,get:function(){return u.MTableActions}}),Object.defineProperty(e,"MTableBody",{enumerable:!0,get:function(){return u.MTableBody}}),Object.defineProperty(e,"MTableBodyRow",{enumerable:!0,get:function(){return u.MTableBodyRow}}),Object.defineProperty(e,"MTableCell",{enumerable:!0,get:function(){return u.MTableCell}}),Object.defineProperty(e,"MTableEditCell",{enumerable:!0,get:function(){return u.MTableEditCell}}),Object.defineProperty(e,"MTableEditField",{enumerable:!0,get:function(){return u.MTableEditField}}),Object.defineProperty(e,"MTableEditRow",{enumerable:!0,get:function(){return u.MTableEditRow}}),Object.defineProperty(e,"MTableFilterRow",{enumerable:!0,get:function(){return u.MTableFilterRow}}),Object.defineProperty(e,"MTableGroupRow",{enumerable:!0,get:function(){return u.MTableGroupRow}}),Object.defineProperty(e,"MTableGroupbar",{enumerable:!0,get:function(){return u.MTableGroupbar}}),Object.defineProperty(e,"MTableHeader",{enumerable:!0,get:function(){return u.MTableHeader}}),Object.defineProperty(e,"MTablePagination",{enumerable:!0,get:function(){return u.MTablePagination}}),Object.defineProperty(e,"MTableSteppedPagination",{enumerable:!0,get:function(){return u.MTableSteppedPagination}}),Object.defineProperty(e,"MTableToolbar",{enumerable:!0,get:function(){return u.MTableToolbar}}),e.default=void 0,Object.defineProperty(e,"useLocalizationStore",{enumerable:!0,get:function(){return s.useLocalizationStore}});var n=t(jr()),r=t(ge),l=wSe(),i=_Se(),o=t(zSe()),a=Sf,s=mg(),u=ux(),c=C4();o.default.defaultProps=l.defaultProps,o.default.propTypes=i.propTypes;var d=(0,s.withContext)(function(f){var p=(0,a.useTheme)(),h=(0,s.useMergeProps)(f),g=h.localization,b=h.options,v=h.components;return r.default.createElement(o.default,(0,n.default)({},f,{theme:p,options:b,components:v,localization:g,ref:f.tableRef}))});e.default=d})(PB);const BSe=dr(PB),WSe=kr(Te.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),qSe=e=>{const t=e.activeTab===-1?0:e.activeTab;return Te.jsxs("div",{children:[Te.jsx(TB,{value:t,onChange:e.onNewTabSelected,indicatorColor:"primary",textColor:"primary",children:e.tabs.map(n=>Te.jsx(jS,{disabled:n.disabled??!1,label:Te.jsx(ka,{className:e.tabStyle,children:Te.jsxs(ka,{display:"flex",sx:{fontSize:"0.875rem"},children:[Te.jsx("span",{children:n.icon}),n.title]})})}))}),Te.jsx(ka,{children:e.tabs.map((n,r)=>Te.jsx("div",{hidden:(e.activeTab===-1?0:e.activeTab)!==r,children:(e.activeTab===-1?0:e.activeTab)!==r?Te.jsx("div",{}):n.tab}))})]})},M4=e=>{const[t,n]=ge.useState({activeTab:0});return Te.jsx(Xe.Fragment,{children:Te.jsx(qSe,{activeTab:t.activeTab,onNewTabSelected:(r,l)=>n(i=>({...i,activeTab:l})),tabs:e.tabs})})},nk=({func:e,children:t})=>{const[n,r]=ge.useState(()=>({status:0,func:e}));return n.status===0&&r(l=>({...l,status:1})),n.status===1&&(r(l=>({...l,status:2})),n.func().then(l=>r(i=>({...i,status:3,result:l}))).catch(()=>r(l=>({...l,status:4})))),Te.jsx(Te.Fragment,{children:n.status===3?t&&n.result&&t(n.result):n.status===4?Te.jsx(mr,{align:"center",children:"Failed"}):n.status===2?Te.jsx(ka,{textAlign:"center",children:Te.jsx(Iz,{})}):null})},P4=({forseFilled:e,sx:t,...n})=>{const r=hg();return Te.jsx(Qae,{sx:[l=>l.applyStyles("light",{border:"none"}),...Array.isArray(t)?t:[t]],variant:r==="dark"?e?"filled":"outlined":void 0,...n})},RU=e=>Te.jsxs(P4,{severity:e.data.severity,children:[Te.jsx(n5,{children:e.data.title}),e.data.text]}),LU=()=>Te.jsx("div",{children:"Not implemented"}),USe=e=>e.type??"graph",W9=(e,t,n)=>{switch(USe(t)){case"graph":{const r=()=>e.getAdditionGraphData(t.id),l=i=>Te.jsx(Db,{...i,widgetSize:n});return Te.jsx(nk,{func:r,children:l})}case"widget":{const r=()=>e.getAdditionWidgetData(t.id),l=i=>Ng(t.id,i);return Te.jsx(nk,{func:r,children:l})}default:return Te.jsx(LU,{})}},O4=e=>Te.jsx(y5.Consumer,{children:t=>Te.jsxs(ka,{children:[e.details.parts.length>1?Te.jsx(M4,{tabs:e.details.parts.map(n=>({title:n.title,tab:W9(t,n,e.widgetSize)}))}):W9(t,e.details.parts[0],e.widgetSize),e.details.insights===void 0?Te.jsx(Te.Fragment,{}):e.details.insights.map(n=>Te.jsx(RU,{data:n},n.text+n.title+n.severity))]})}),HSe=e=>Te.jsx(y5.Consumer,{children:t=>Te.jsx(nk,{func:()=>t.getAdditionGraphData(e.graphId),children:n=>Te.jsx(Db,{...n,widgetSize:e.widgetSize})})});var rk={exports:{}},ak={exports:{}};(function(e,t){t.__esModule=!0,t.default=n;function n(r){var l={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(l[i]=0);return l}e.exports=t.default})(ak,ak.exports);var A4=ak.exports,ok={exports:{}};(function(e,t){t.__esModule=!0,t.default=n;function n(r){var l={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(l[i]=typeof r[i]=="number"?r[i]:r[i].val);return l}e.exports=t.default})(ok,ok.exports);var fx=ok.exports,ik={exports:{}};(function(e,t){t.__esModule=!0,t.default=r;var n=[0,0];function r(l,i,o,a,s,u,c){var d=-s*(i-a),f=-u*o,p=d+f,h=o+p*l,g=i+h*l;return Math.abs(h)"u"?$o:window,j0=["moz","webkit"],Id="AnimationFrame",sf=ns["request"+Id],$m=ns["cancel"+Id]||ns["cancelRequest"+Id];for(var eh=0;!sf&&ehS*10&&(O.accumulatedTime=0),O.accumulatedTime===0){O.animationID=null,O.startAnimationIfNecessary();return}var A=(O.accumulatedTime-Math.floor(O.accumulatedTime/S)*S)/S,F=Math.floor(O.accumulatedTime/S),j={},B={},z={},N={};for(var R in P)if(Object.prototype.hasOwnProperty.call(P,R)){var q=P[R];if(typeof q=="number")z[R]=q,N[R]=0,j[R]=q,B[R]=0;else{for(var Y=O.state.lastIdealStyle[R],L=O.state.lastIdealVelocity[R],W=0;WS*10&&(D.accumulatedTime=0),D.accumulatedTime===0){D.animationID=null,D.startAnimationIfNecessary();return}for(var F=(D.accumulatedTime-Math.floor(D.accumulatedTime/S)*S)/S,j=Math.floor(D.accumulatedTime/S),B=[],z=[],N=[],R=[],q=0;qo[m])return-1;if(p>s[m]&&bo[m])return 1;if(h>s[m]&&gC*10&&(A.accumulatedTime=0),A.accumulatedTime===0){A.animationID=null,A.startAnimationIfNecessary();return}for(var R=(A.accumulatedTime-Math.floor(A.accumulatedTime/C)*C)/C,q=Math.floor(A.accumulatedTime/C),Y=O(A.props.willEnter,A.props.willLeave,A.props.didLeave,A.state.mergedPropsStyles,B,A.state.currentStyles,A.state.currentVelocities,A.state.lastIdealStyles,A.state.lastIdealVelocities),L=Y[0],W=Y[1],H=Y[2],G=Y[3],te=Y[4],ee=0;ee0},e.prototype.connect_=function(){!hk||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),pke?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!hk||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,l=fke.some(function(i){return!!~r.indexOf(i)});l&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),NU=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof uf(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new _ke(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof uf(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new Tke(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),jU=typeof WeakMap<"u"?new WeakMap:new $U,zU=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=hke.getInstance(),r=new Ske(t,n,this);jU.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){zU.prototype[e]=function(){var t;return(t=jU.get(this))[e].apply(t,arguments)}});var kke=function(){return typeof By.ResizeObserver<"u"?By.ResizeObserver:zU}(),Cke=["client","offset","scroll","bounds","margin"];function H9(e){var t=[];return Cke.forEach(function(n){e[n]&&t.push(n)}),t}function V9(e,t){var n={};if(t.indexOf("client")>-1&&(n.client={top:e.clientTop,left:e.clientLeft,width:e.clientWidth,height:e.clientHeight}),t.indexOf("offset")>-1&&(n.offset={top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight}),t.indexOf("scroll")>-1&&(n.scroll={top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}),t.indexOf("bounds")>-1){var r=e.getBoundingClientRect();n.bounds={top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height}}if(t.indexOf("margin")>-1){var l=getComputedStyle(e);n.margin={top:l?parseInt(l.marginTop):0,right:l?parseInt(l.marginRight):0,bottom:l?parseInt(l.marginBottom):0,left:l?parseInt(l.marginLeft):0}}return n}function Mke(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||window}function Pke(e){return function(t){var n,r;return r=n=function(l){xb(i,l);function i(){for(var a,s=arguments.length,u=new Array(s),c=0;c-1}var lCe=iCe,sCe=vx;function uCe(e,t){var n=this.__data__,r=sCe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var cCe=uCe,dCe=Gke,fCe=tCe,pCe=aCe,hCe=lCe,mCe=cCe;function Ef(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=w4e}var q4=_4e,T4e=bx,S4e=q4;function k4e(e){return e!=null&&S4e(e.length)&&!T4e(e)}var Nf=k4e,C4e=Nf,M4e=hi;function P4e(e){return M4e(e)&&C4e(e)}var eH=P4e,Hy={exports:{}};function O4e(){return!1}var A4e=O4e;Hy.exports;(function(e,t){var n=Yo,r=A4e,l=t&&!t.nodeType&&t,i=l&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===l,a=o?n.Buffer:void 0,s=a?a.isBuffer:void 0,u=s||r;e.exports=u})(Hy,Hy.exports);var Cx=Hy.exports,D4e=xs,E4e=B4,R4e=hi,L4e="[object Object]",I4e=Function.prototype,$4e=Object.prototype,tH=I4e.toString,N4e=$4e.hasOwnProperty,F4e=tH.call(Object);function j4e(e){if(!R4e(e)||D4e(e)!=L4e)return!1;var t=E4e(e);if(t===null)return!0;var n=N4e.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&tH.call(n)==F4e}var U4=j4e;const zm=dr(U4);var z4e=xs,B4e=q4,W4e=hi,q4e="[object Arguments]",U4e="[object Array]",H4e="[object Boolean]",V4e="[object Date]",G4e="[object Error]",Y4e="[object Function]",X4e="[object Map]",K4e="[object Number]",Z4e="[object Object]",Q4e="[object RegExp]",J4e="[object Set]",e6e="[object String]",t6e="[object WeakMap]",n6e="[object ArrayBuffer]",r6e="[object DataView]",a6e="[object Float32Array]",o6e="[object Float64Array]",i6e="[object Int8Array]",l6e="[object Int16Array]",s6e="[object Int32Array]",u6e="[object Uint8Array]",c6e="[object Uint8ClampedArray]",d6e="[object Uint16Array]",f6e="[object Uint32Array]",Yr={};Yr[a6e]=Yr[o6e]=Yr[i6e]=Yr[l6e]=Yr[s6e]=Yr[u6e]=Yr[c6e]=Yr[d6e]=Yr[f6e]=!0;Yr[q4e]=Yr[U4e]=Yr[n6e]=Yr[H4e]=Yr[r6e]=Yr[V4e]=Yr[G4e]=Yr[Y4e]=Yr[X4e]=Yr[K4e]=Yr[Z4e]=Yr[Q4e]=Yr[J4e]=Yr[e6e]=Yr[t6e]=!1;function p6e(e){return W4e(e)&&B4e(e.length)&&!!Yr[z4e(e)]}var h6e=p6e;function m6e(e){return function(t){return e(t)}}var Ff=m6e,Vy={exports:{}};Vy.exports;(function(e,t){var n=WU,r=t&&!t.nodeType&&t,l=r&&!0&&e&&!e.nodeType&&e,i=l&&l.exports===r,o=i&&n.process,a=function(){try{var s=l&&l.require&&l.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}}();e.exports=a})(Vy,Vy.exports);var Mx=Vy.exports,g6e=h6e,v6e=Ff,iR=Mx,lR=iR&&iR.isTypedArray,y6e=lR?v6e(lR):g6e,H4=y6e;function b6e(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var nH=b6e,x6e=j4,w6e=Sg,_6e=Object.prototype,T6e=_6e.hasOwnProperty;function S6e(e,t,n){var r=e[t];(!(T6e.call(e,t)&&w6e(r,n))||n===void 0&&!(t in e))&&x6e(e,t,n)}var V4=S6e,k6e=V4,C6e=j4;function M6e(e,t,n,r){var l=!n;n||(n={});for(var i=-1,o=t.length;++i-1&&e%1==0&&e0){if(++t>=$Pe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var iH=jPe,zPe=IPe,BPe=iH,WPe=BPe(zPe),Y4=WPe,qPe=Dc,UPe=oH,HPe=Y4;function VPe(e,t){return HPe(UPe(e,t,qPe),e+"")}var Px=VPe,GPe=Sg,YPe=Nf,XPe=kg,KPe=Hi;function ZPe(e,t,n){if(!KPe(n))return!1;var r=typeof t;return(r=="number"?YPe(n)&&XPe(t,n.length):r=="string"&&t in n)?GPe(n[t],e):!1}var X4=ZPe,QPe=Px,JPe=X4;function eOe(e){return QPe(function(t,n){var r=-1,l=n.length,i=l>1?n[l-1]:void 0,o=l>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(l--,i):void 0,o&&JPe(n[0],n[1],o)&&(i=l<3?void 0:i,l=1),t=Object(t);++rt?1:e>=t?0:NaN}function Q4(e){let t=e,n=e;e.length===1&&(t=(o,a)=>e(o)-a,n=d8e(e));function r(o,a,s,u){for(s==null&&(s=0),u==null&&(u=o.length);s>>1;n(o[c],a)<0?s=c+1:u=c}return s}function l(o,a,s,u){for(s==null&&(s=0),u==null&&(u=o.length);s>>1;n(o[c],a)>0?u=c:s=c+1}return s}function i(o,a,s,u){s==null&&(s=0),u==null&&(u=o.length);const c=r(o,a,s,u-1);return c>s&&t(o[c-1],a)>-t(o[c],a)?c-1:c}return{left:r,center:i,right:l}}function d8e(e){return(t,n)=>fH(e(t),n)}function f8e(e){return e===null?NaN:+e}const p8e=Q4(fH),h8e=p8e.right;Q4(f8e).center;var mk=Math.sqrt(50),gk=Math.sqrt(10),vk=Math.sqrt(2);function yk(e,t,n){var r,l=-1,i,o,a;if(t=+t,e=+e,n=+n,e===t&&n>0)return[e];if((r=t0){let s=Math.round(e/a),u=Math.round(t/a);for(s*at&&--u,o=new Array(i=u-s+1);++lt&&--u,o=new Array(i=u-s+1);++l=0?(i>=mk?10:i>=gk?5:i>=vk?2:1)*Math.pow(10,l):-Math.pow(10,-l)/(i>=mk?10:i>=gk?5:i>=vk?2:1)}function bk(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),l=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/l;return i>=mk?l*=10:i>=gk?l*=5:i>=vk&&(l*=2),t>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?B0(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?B0(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=y8e.exec(e))?new ni(t[1],t[2],t[3],1):(t=b8e.exec(e))?new ni(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=x8e.exec(e))?B0(t[1],t[2],t[3],t[4]):(t=w8e.exec(e))?B0(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=_8e.exec(e))?kR(t[1],t[2]/100,t[3]/100,1):(t=T8e.exec(e))?kR(t[1],t[2]/100,t[3]/100,t[4]):bR.hasOwnProperty(e)?_R(bR[e]):e==="transparent"?new ni(NaN,NaN,NaN,0):null}function _R(e){return new ni(e>>16&255,e>>8&255,e&255,1)}function B0(e,t,n,r){return r<=0&&(e=t=n=NaN),new ni(e,t,n,r)}function k8e(e){return e instanceof Pg||(e=cc(e)),e?(e=e.rgb(),new ni(e.r,e.g,e.b,e.opacity)):new ni}function dc(e,t,n,r){return arguments.length===1?k8e(e):new ni(e,t,n,r??1)}function ni(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}e6(ni,dc,mH(Pg,{brighter:function(e){return e=e==null?Gy:Math.pow(Gy,e),new ni(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?Bm:Math.pow(Bm,e),new ni(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:TR,formatHex:TR,formatRgb:SR,toString:SR}));function TR(){return"#"+L3(this.r)+L3(this.g)+L3(this.b)}function SR(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function L3(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function kR(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ml(e,t,n,r)}function gH(e){if(e instanceof Ml)return new Ml(e.h,e.s,e.l,e.opacity);if(e instanceof Pg||(e=cc(e)),!e)return new Ml;if(e instanceof Ml)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,l=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,a=i-l,s=(i+l)/2;return a?(t===i?o=(n-r)/a+(n0&&s<1?0:o,new Ml(o,a,s,e.opacity)}function C8e(e,t,n,r){return arguments.length===1?gH(e):new Ml(e,t,n,r??1)}function Ml(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}e6(Ml,C8e,mH(Pg,{brighter:function(e){return e=e==null?Gy:Math.pow(Gy,e),new Ml(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Bm:Math.pow(Bm,e),new Ml(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,l=2*n-r;return new ni(I3(e>=240?e-240:e+120,l,r),I3(e,l,r),I3(e<120?e+240:e-120,l,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function I3(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const t6=e=>()=>e;function M8e(e,t){return function(n){return e+n*t}}function P8e(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function O8e(e){return(e=+e)==1?vH:function(t,n){return n-t?P8e(t,n,e):t6(isNaN(t)?n:t)}}function vH(e,t){var n=t-e;return n?M8e(e,n):t6(isNaN(e)?t:e)}const CR=function e(t){var n=O8e(t);function r(l,i){var o=n((l=dc(l)).r,(i=dc(i)).r),a=n(l.g,i.g),s=n(l.b,i.b),u=vH(l.opacity,i.opacity);return function(c){return l.r=o(c),l.g=a(c),l.b=s(c),l.opacity=u(c),l+""}}return r.gamma=e,r}(1);function A8e(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),l;return function(i){for(l=0;ln&&(i=t.slice(n,i),a[o]?a[o]+=i:a[++o]=i),(r=r[0])===(l=l[0])?a[o]?a[o]+=l:a[++o]=l:(a[++o]=null,s.push({i:o,x:Yy(r,l)})),n=$3.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function W8e(e,t,n){var r=e[0],l=e[1],i=t[0],o=t[1];return l2?q8e:W8e,s=u=null,d}function d(f){return f==null||isNaN(f=+f)?i:(s||(s=a(e.map(r),t,n)))(r(o(f)))}return d.invert=function(f){return o(l((u||(u=a(t,e.map(r),Yy)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,z8e),c()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),c()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=F8e,c()},d.clamp=function(f){return arguments.length?(o=f?!0:Td,c()):o!==Td},d.interpolate=function(f){return arguments.length?(n=f,c()):n},d.unknown=function(f){return arguments.length?(i=f,d):i},function(f,p){return r=f,l=p,c()}}function bH(){return yH()(Td,Td)}function U8e(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Xy(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function cf(e){return e=Xy(Math.abs(e)),e?e[1]:NaN}function H8e(e,t){return function(n,r){for(var l=n.length,i=[],o=0,a=e[0],s=0;l>0&&a>0&&(s+a+1>r&&(a=Math.max(1,r-s)),i.push(n.substring(l-=a,l+a)),!((s+=a+1)>r));)a=e[o=(o+1)%e.length];return i.reverse().join(t)}}function V8e(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var G8e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ky(e){if(!(t=G8e.exec(e)))throw new Error("invalid format: "+e);var t;return new a6({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]})}Ky.prototype=a6.prototype;function a6(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}a6.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Y8e(e){e:for(var t=e.length,n=1,r=-1,l;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(l+1):e}var xH;function X8e(e,t){var n=Xy(e,t);if(!n)return e+"";var r=n[0],l=n[1],i=l-(xH=Math.max(-8,Math.min(8,Math.floor(l/3)))*3)+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Xy(e,Math.max(0,t+i-1))[0]}function PR(e,t){var n=Xy(e,t);if(!n)return e+"";var r=n[0],l=n[1];return l<0?"0."+new Array(-l).join("0")+r:r.length>l+1?r.slice(0,l+1)+"."+r.slice(l+1):r+new Array(l-r.length+2).join("0")}const OR={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:U8e,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return PR(e*100,t)},r:PR,s:X8e,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function AR(e){return e}var DR=Array.prototype.map,ER=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function K8e(e){var t=e.grouping===void 0||e.thousands===void 0?AR:H8e(DR.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",l=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?AR:V8e(DR.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",a=e.minus===void 0?"-":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function u(d){d=Ky(d);var f=d.fill,p=d.align,h=d.sign,g=d.symbol,b=d.zero,v=d.width,m=d.comma,y=d.precision,x=d.trim,_=d.type;_==="n"?(m=!0,_="g"):OR[_]||(y===void 0&&(y=12),x=!0,_="g"),(b||f==="0"&&p==="=")&&(b=!0,f="0",p="=");var w=g==="$"?n:g==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",S=g==="$"?r:/[%p]/.test(_)?o:"",k=OR[_],C=/[defgprs%]/.test(_);y=y===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y));function T(M){var O=w,D=S,P,E,I;if(_==="c")D=k(M)+D,M="";else{M=+M;var A=M<0||1/M<0;if(M=isNaN(M)?s:k(Math.abs(M),y),x&&(M=Y8e(M)),A&&+M==0&&h!=="+"&&(A=!1),O=(A?h==="("?h:a:h==="-"||h==="("?"":h)+O,D=(_==="s"?ER[8+xH/3]:"")+D+(A&&h==="("?")":""),C){for(P=-1,E=M.length;++PI||I>57){D=(I===46?l+M.slice(P+1):M.slice(P))+D,M=M.slice(0,P);break}}}m&&!b&&(M=t(M,1/0));var F=O.length+M.length+D.length,j=F>1)+O+M+D+j.slice(F);break;default:M=j+O+M+D;break}return i(M)}return T.toString=function(){return d+""},T}function c(d,f){var p=u((d=Ky(d),d.type="f",d)),h=Math.max(-8,Math.min(8,Math.floor(cf(f)/3)))*3,g=Math.pow(10,-h),b=ER[8+h/3];return function(v){return p(g*v)+b}}return{format:u,formatPrefix:c}}var W0,Uf,wH;Z8e({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function Z8e(e){return W0=K8e(e),Uf=W0.format,wH=W0.formatPrefix,W0}function Q8e(e){return Math.max(0,-cf(Math.abs(e)))}function J8e(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(cf(t)/3)))*3-cf(Math.abs(e)))}function eAe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,cf(t)-cf(e))+1}function tAe(e,t,n,r){var l=bk(e,t,n),i;switch(r=Ky(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=J8e(l,o))&&(r.precision=i),wH(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=eAe(l,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=Q8e(l))&&(r.precision=i-(r.type==="%")*2);break}}return Uf(r)}function nAe(e){var t=e.domain;return e.ticks=function(n){var r=t();return yk(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var l=t();return tAe(l[0],l[l.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),l=0,i=r.length-1,o=r[l],a=r[i],s,u,c=10;for(a0;){if(u=pH(o,a,n),u===s)return r[l]=o,r[i]=a,t(r);if(u>0)o=Math.floor(o/u)*u,a=Math.ceil(a/u)*u;else if(u<0)o=Math.ceil(o*u)/u,a=Math.floor(a*u)/u;else break;s=u}return e},e}function fc(){var e=bH();return e.copy=function(){return r6(e,fc())},qf.apply(e,arguments),nAe(e)}function _H(e,t){e=e.slice();var n=0,r=e.length-1,l=e[n],i=e[r],o;return i0){for(;f<=p;++f)for(g=1,h=i(f);gc)break;m.push(b)}}else for(;f<=p;++f)for(g=r-1,h=i(f);g>=1;--g)if(b=h*g,!(bc)break;m.push(b)}m.length*20))return s;do s.push(u=new Date(+i)),t(i,a),e(i);while(u=o)for(;e(o),!i(o);)o.setTime(o-1)},function(o,a){if(o>=o)if(a<0)for(;++a<=0;)for(;t(o,-1),!i(o););else for(;--a>=0;)for(;t(o,1),!i(o););})},n&&(l.count=function(i,o){return N3.setTime(+i),F3.setTime(+o),e(N3),e(F3),Math.floor(n(N3,F3))},l.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?l.filter(r?function(o){return r(o)%i===0}:function(o){return l.count(0,o)%i===0}):l}),l}var Zy=Ga(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Zy.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ga(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Zy};Zy.range;const Jl=1e3,Oi=Jl*60,es=Oi*60,pc=es*24,o6=pc*7,$R=pc*30,j3=pc*365;var Yu=Ga(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Jl)},function(e,t){return(t-e)/Jl},function(e){return e.getUTCSeconds()});Yu.range;var i6=Ga(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Jl)},function(e,t){e.setTime(+e+t*Oi)},function(e,t){return(t-e)/Oi},function(e){return e.getMinutes()});i6.range;var l6=Ga(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Jl-e.getMinutes()*Oi)},function(e,t){e.setTime(+e+t*es)},function(e,t){return(t-e)/es},function(e){return e.getHours()});l6.range;var Og=Ga(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Oi)/pc,e=>e.getDate()-1);Og.range;function Ec(e){return Ga(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Oi)/o6})}var Ax=Ec(0),Qy=Ec(1),uAe=Ec(2),cAe=Ec(3),df=Ec(4),dAe=Ec(5),fAe=Ec(6);Ax.range;Qy.range;uAe.range;cAe.range;df.range;dAe.range;fAe.range;var s6=Ga(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});s6.range;var ds=Ga(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});ds.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Ga(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};ds.range;var u6=Ga(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Oi)},function(e,t){return(t-e)/Oi},function(e){return e.getUTCMinutes()});u6.range;var c6=Ga(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*es)},function(e,t){return(t-e)/es},function(e){return e.getUTCHours()});c6.range;var Ag=Ga(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/pc},function(e){return e.getUTCDate()-1});Ag.range;function Rc(e){return Ga(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/o6})}var Dx=Rc(0),Jy=Rc(1),pAe=Rc(2),hAe=Rc(3),ff=Rc(4),mAe=Rc(5),gAe=Rc(6);Dx.range;Jy.range;pAe.range;hAe.range;ff.range;mAe.range;gAe.range;var d6=Ga(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});d6.range;var fs=Ga(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});fs.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Ga(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};fs.range;function SH(e,t,n,r,l,i){const o=[[Yu,1,Jl],[Yu,5,5*Jl],[Yu,15,15*Jl],[Yu,30,30*Jl],[i,1,Oi],[i,5,5*Oi],[i,15,15*Oi],[i,30,30*Oi],[l,1,es],[l,3,3*es],[l,6,6*es],[l,12,12*es],[r,1,pc],[r,2,2*pc],[n,1,o6],[t,1,$R],[t,3,3*$R],[e,1,j3]];function a(u,c,d){const f=cb).right(o,f);if(p===o.length)return e.every(bk(u/j3,c/j3,d));if(p===0)return Zy.every(Math.max(bk(u,c,d),1));const[h,g]=o[f/o[p-1][2]53)return null;"w"in U||(U.w=1),"Z"in U?(V=B3(nh(U.y,0,1)),X=V.getUTCDay(),V=X>4||X===0?Jy.ceil(V):Jy(V),V=Ag.offset(V,(U.V-1)*7),U.y=V.getUTCFullYear(),U.m=V.getUTCMonth(),U.d=V.getUTCDate()+(U.w+6)%7):(V=z3(nh(U.y,0,1)),X=V.getDay(),V=X>4||X===0?Qy.ceil(V):Qy(V),V=Og.offset(V,(U.V-1)*7),U.y=V.getFullYear(),U.m=V.getMonth(),U.d=V.getDate()+(U.w+6)%7)}else("W"in U||"U"in U)&&("w"in U||(U.w="u"in U?U.u%7:"W"in U?1:0),X="Z"in U?B3(nh(U.y,0,1)).getUTCDay():z3(nh(U.y,0,1)).getDay(),U.m=0,U.d="W"in U?(U.w+6)%7+U.W*7-(X+5)%7:U.w+U.U*7-(X+6)%7);return"Z"in U?(U.H+=U.Z/100|0,U.M+=U.Z%100,B3(U)):z3(U)}}function k(G,te,ee,U){for(var Q=0,V=te.length,X=ee.length,K,ne;Q=X)return-1;if(K=te.charCodeAt(Q++),K===37){if(K=te.charAt(Q++),ne=_[K in NR?te.charAt(Q++):K],!ne||(U=ne(G,ee,U))<0)return-1}else if(K!=ee.charCodeAt(U++))return-1}return U}function C(G,te,ee){var U=u.exec(te.slice(ee));return U?(G.p=c.get(U[0].toLowerCase()),ee+U[0].length):-1}function T(G,te,ee){var U=p.exec(te.slice(ee));return U?(G.w=h.get(U[0].toLowerCase()),ee+U[0].length):-1}function M(G,te,ee){var U=d.exec(te.slice(ee));return U?(G.w=f.get(U[0].toLowerCase()),ee+U[0].length):-1}function O(G,te,ee){var U=v.exec(te.slice(ee));return U?(G.m=m.get(U[0].toLowerCase()),ee+U[0].length):-1}function D(G,te,ee){var U=g.exec(te.slice(ee));return U?(G.m=b.get(U[0].toLowerCase()),ee+U[0].length):-1}function P(G,te,ee){return k(G,t,te,ee)}function E(G,te,ee){return k(G,n,te,ee)}function I(G,te,ee){return k(G,r,te,ee)}function A(G){return o[G.getDay()]}function F(G){return i[G.getDay()]}function j(G){return s[G.getMonth()]}function B(G){return a[G.getMonth()]}function z(G){return l[+(G.getHours()>=12)]}function N(G){return 1+~~(G.getMonth()/3)}function R(G){return o[G.getUTCDay()]}function q(G){return i[G.getUTCDay()]}function Y(G){return s[G.getUTCMonth()]}function L(G){return a[G.getUTCMonth()]}function W(G){return l[+(G.getUTCHours()>=12)]}function H(G){return 1+~~(G.getUTCMonth()/3)}return{format:function(G){var te=w(G+="",y);return te.toString=function(){return G},te},parse:function(G){var te=S(G+="",!1);return te.toString=function(){return G},te},utcFormat:function(G){var te=w(G+="",x);return te.toString=function(){return G},te},utcParse:function(G){var te=S(G+="",!0);return te.toString=function(){return G},te}}}var NR={"-":"",_:" ",0:"0"},Ya=/^\s*\d+/,_Ae=/^%/,TAe=/[\\^$*+?|[\]().{}]/g;function wr(e,t,n){var r=e<0?"-":"",l=(r?-e:e)+"",i=l.length;return r+(i[t.toLowerCase(),n]))}function kAe(e,t,n){var r=Ya.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function CAe(e,t,n){var r=Ya.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function MAe(e,t,n){var r=Ya.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function PAe(e,t,n){var r=Ya.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function OAe(e,t,n){var r=Ya.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function FR(e,t,n){var r=Ya.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function jR(e,t,n){var r=Ya.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function AAe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function DAe(e,t,n){var r=Ya.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function EAe(e,t,n){var r=Ya.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function zR(e,t,n){var r=Ya.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function RAe(e,t,n){var r=Ya.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function BR(e,t,n){var r=Ya.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function LAe(e,t,n){var r=Ya.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function IAe(e,t,n){var r=Ya.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function $Ae(e,t,n){var r=Ya.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function NAe(e,t,n){var r=Ya.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function FAe(e,t,n){var r=_Ae.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function jAe(e,t,n){var r=Ya.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function zAe(e,t,n){var r=Ya.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function WR(e,t){return wr(e.getDate(),t,2)}function BAe(e,t){return wr(e.getHours(),t,2)}function WAe(e,t){return wr(e.getHours()%12||12,t,2)}function qAe(e,t){return wr(1+Og.count(ds(e),e),t,3)}function kH(e,t){return wr(e.getMilliseconds(),t,3)}function UAe(e,t){return kH(e,t)+"000"}function HAe(e,t){return wr(e.getMonth()+1,t,2)}function VAe(e,t){return wr(e.getMinutes(),t,2)}function GAe(e,t){return wr(e.getSeconds(),t,2)}function YAe(e){var t=e.getDay();return t===0?7:t}function XAe(e,t){return wr(Ax.count(ds(e)-1,e),t,2)}function CH(e){var t=e.getDay();return t>=4||t===0?df(e):df.ceil(e)}function KAe(e,t){return e=CH(e),wr(df.count(ds(e),e)+(ds(e).getDay()===4),t,2)}function ZAe(e){return e.getDay()}function QAe(e,t){return wr(Qy.count(ds(e)-1,e),t,2)}function JAe(e,t){return wr(e.getFullYear()%100,t,2)}function e7e(e,t){return e=CH(e),wr(e.getFullYear()%100,t,2)}function t7e(e,t){return wr(e.getFullYear()%1e4,t,4)}function n7e(e,t){var n=e.getDay();return e=n>=4||n===0?df(e):df.ceil(e),wr(e.getFullYear()%1e4,t,4)}function r7e(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+wr(t/60|0,"0",2)+wr(t%60,"0",2)}function qR(e,t){return wr(e.getUTCDate(),t,2)}function a7e(e,t){return wr(e.getUTCHours(),t,2)}function o7e(e,t){return wr(e.getUTCHours()%12||12,t,2)}function i7e(e,t){return wr(1+Ag.count(fs(e),e),t,3)}function MH(e,t){return wr(e.getUTCMilliseconds(),t,3)}function l7e(e,t){return MH(e,t)+"000"}function s7e(e,t){return wr(e.getUTCMonth()+1,t,2)}function u7e(e,t){return wr(e.getUTCMinutes(),t,2)}function c7e(e,t){return wr(e.getUTCSeconds(),t,2)}function d7e(e){var t=e.getUTCDay();return t===0?7:t}function f7e(e,t){return wr(Dx.count(fs(e)-1,e),t,2)}function PH(e){var t=e.getUTCDay();return t>=4||t===0?ff(e):ff.ceil(e)}function p7e(e,t){return e=PH(e),wr(ff.count(fs(e),e)+(fs(e).getUTCDay()===4),t,2)}function h7e(e){return e.getUTCDay()}function m7e(e,t){return wr(Jy.count(fs(e)-1,e),t,2)}function g7e(e,t){return wr(e.getUTCFullYear()%100,t,2)}function v7e(e,t){return e=PH(e),wr(e.getUTCFullYear()%100,t,2)}function y7e(e,t){return wr(e.getUTCFullYear()%1e4,t,4)}function b7e(e,t){var n=e.getUTCDay();return e=n>=4||n===0?ff(e):ff.ceil(e),wr(e.getUTCFullYear()%1e4,t,4)}function x7e(){return"+0000"}function UR(){return"%"}function HR(e){return+e}function VR(e){return Math.floor(+e/1e3)}var ed,OH,AH;w7e({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function w7e(e){return ed=wAe(e),OH=ed.format,ed.parse,AH=ed.utcFormat,ed.utcParse,ed}function _7e(e){return new Date(e)}function T7e(e){return e instanceof Date?+e:+new Date(+e)}function f6(e,t,n,r,l,i,o,a,s,u){var c=bH(),d=c.invert,f=c.domain,p=u(".%L"),h=u(":%S"),g=u("%I:%M"),b=u("%I %p"),v=u("%a %d"),m=u("%b %d"),y=u("%B"),x=u("%Y");function _(w){return(s(w)=1?(n=1,t-1):Math.floor(n*t),l=e[r],i=e[r+1],o=r>0?e[r-1]:2*l-i,a=rn&&(i=t.slice(n,i),a[o]?a[o]+=i:a[++o]=i),(r=r[0])===(l=l[0])?a[o]?a[o]+=l:a[++o]=l:(a[++o]=null,s.push({i:o,x:_k(r,l)})),n=W3.lastIndex;return n-1}var v6=lDe;function sDe(e,t,n){for(var r=-1,l=e==null?0:e.length;++r=gDe&&(i=mDe,o=!1,t=new cDe(t));e:for(;++lLu)if(!(Math.abs(c*a-s*u)>Lu)||!l)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var f=n-i,p=r-o,h=a*a+s*s,g=f*f+p*p,b=Math.sqrt(h),v=Math.sqrt(d),m=l*Math.tan((Sk-Math.acos((h+d-g)/(2*b*v)))/2),y=m/v,x=m/b;Math.abs(y-1)>Lu&&(this._+="L"+(e+y*u)+","+(t+y*c)),this._+="A"+l+","+l+",0,0,"+ +(c*f>u*p)+","+(this._x1=e+x*a)+","+(this._y1=t+x*s)}},arc:function(e,t,n,r,l,i){e=+e,t=+t,n=+n,i=!!i;var o=n*Math.cos(r),a=n*Math.sin(r),s=e+o,u=t+a,c=1^i,d=i?r-l:l-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+s+","+u:(Math.abs(this._x1-s)>Lu||Math.abs(this._y1-u)>Lu)&&(this._+="L"+s+","+u),n&&(d<0&&(d=d%kk+kk),d>SDe?this._+="A"+n+","+n+",0,1,"+c+","+(e-o)+","+(t-a)+"A"+n+","+n+",0,1,"+c+","+(this._x1=s)+","+(this._y1=u):d>Lu&&(this._+="A"+n+","+n+",0,"+ +(d>=Sk)+","+c+","+(this._x1=e+n*Math.cos(l))+","+(this._y1=t+n*Math.sin(l))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};function no(e){return function(){return e}}var YR=1e-12;function WH(e){this._context=e}WH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function x6(e){return new WH(e)}function qH(e){return e[0]}function UH(e){return e[1]}function HH(){var e=qH,t=UH,n=no(!0),r=null,l=x6,i=null;function o(a){var s,u=a.length,c,d=!1,f;for(r==null&&(i=l(f=b6())),s=0;s<=u;++s)!(s=f;--p)a.point(m[p],y[p]);a.lineEnd(),a.areaEnd()}b&&(m[d]=+e(g,d,c),y[d]=+n(g,d,c),a.point(t?+t(g,d,c):m[d],r?+r(g,d,c):y[d]))}if(v)return a=null,v+""||null}function u(){return HH().defined(l).curve(o).context(i)}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:no(+c),t=null,s):e},s.x0=function(c){return arguments.length?(e=typeof c=="function"?c:no(+c),s):e},s.x1=function(c){return arguments.length?(t=c==null?null:typeof c=="function"?c:no(+c),s):t},s.y=function(c){return arguments.length?(n=typeof c=="function"?c:no(+c),r=null,s):n},s.y0=function(c){return arguments.length?(n=typeof c=="function"?c:no(+c),s):n},s.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:no(+c),s):r},s.lineX0=s.lineY0=function(){return u().x(e).y(n)},s.lineY1=function(){return u().x(e).y(r)},s.lineX1=function(){return u().x(t).y(n)},s.defined=function(c){return arguments.length?(l=typeof c=="function"?c:no(!!c),s):l},s.curve=function(c){return arguments.length?(o=c,i!=null&&(a=o(i)),s):o},s.context=function(c){return arguments.length?(c==null?i=a=null:a=o(i=c),s):i},s}var XR=Array.prototype.slice;function lu(){}function t1(e,t,n){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+n)/6)}function o2(e){this._context=e}o2.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:t1(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:t1(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function CDe(e){return new o2(e)}function VH(e){this._context=e}VH.prototype={areaStart:lu,areaEnd:lu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:t1(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function MDe(e){return new VH(e)}function GH(e){this._context=e}GH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:t1(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function PDe(e){return new GH(e)}function YH(e,t){this._basis=new o2(e),this._beta=t}YH.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],l=t[0],i=e[n]-r,o=t[n]-l,a=-1,s;++a<=n;)s=a/n,this._basis.point(this._beta*e[a]+(1-this._beta)*(r+s*i),this._beta*t[a]+(1-this._beta)*(l+s*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const ODe=function e(t){function n(r){return t===1?new o2(r):new YH(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function n1(e,t,n){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-n),e._x2,e._y2)}function w6(e,t){this._context=e,this._k=(1-t)/6}w6.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:n1(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:n1(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const ADe=function e(t){function n(r){return new w6(r,t)}return n.tension=function(r){return e(+r)},n}(0);function _6(e,t){this._context=e,this._k=(1-t)/6}_6.prototype={areaStart:lu,areaEnd:lu,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);break}}},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:n1(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const DDe=function e(t){function n(r){return new _6(r,t)}return n.tension=function(r){return e(+r)},n}(0);function T6(e,t){this._context=e,this._k=(1-t)/6}T6.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||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:n1(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const EDe=function e(t){function n(r){return new T6(r,t)}return n.tension=function(r){return e(+r)},n}(0);function S6(e,t,n){var r=e._x1,l=e._y1,i=e._x2,o=e._y2;if(e._l01_a>YR){var a=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);r=(r*a-e._x0*e._l12_2a+e._x2*e._l01_2a)/s,l=(l*a-e._y0*e._l12_2a+e._y2*e._l01_2a)/s}if(e._l23_a>YR){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*u+e._x1*e._l23_2a-t*e._l12_2a)/c,o=(o*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,l,i,o,e._x2,e._y2)}function XH(e,t){this._context=e,this._alpha=t}XH.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);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,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:S6(this,e,t);break}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}};const RDe=function e(t){function n(r){return t?new XH(r,t):new w6(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function KH(e,t){this._context=e,this._alpha=t}KH.prototype={areaStart:lu,areaEnd:lu,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);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,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:S6(this,e,t);break}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}};const LDe=function e(t){function n(r){return t?new KH(r,t):new _6(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function ZH(e,t){this._context=e,this._alpha=t}ZH.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||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,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:S6(this,e,t);break}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}};const IDe=function e(t){function n(r){return t?new ZH(r,t):new T6(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function QH(e){this._context=e}QH.prototype={areaStart:lu,areaEnd:lu,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function $De(e){return new QH(e)}function KR(e){return e<0?-1:1}function ZR(e,t,n){var r=e._x1-e._x0,l=t-e._x1,i=(e._y1-e._y0)/(r||l<0&&-0),o=(n-e._y1)/(l||r<0&&-0),a=(i*l+o*r)/(r+l);return(KR(i)+KR(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(a))||0}function QR(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function q3(e,t,n){var r=e._x0,l=e._y0,i=e._x1,o=e._y1,a=(i-r)/3;e._context.bezierCurveTo(r+a,l+a*t,i-a,o-a*n,i,o)}function r1(e){this._context=e}r1.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:q3(this,this._t0,QR(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,q3(this,QR(this,n=ZR(this,e,t)),n);break;default:q3(this,this._t0,n=ZR(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function JH(e){this._context=new eV(e)}(JH.prototype=Object.create(r1.prototype)).point=function(e,t){r1.prototype.point.call(this,t,e)};function eV(e){this._context=e}eV.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,n,r,l,i){this._context.bezierCurveTo(t,e,r,n,i,l)}};function NDe(e){return new r1(e)}function FDe(e){return new JH(e)}function tV(e){this._context=e}tV.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,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=JR(e),l=JR(t),i=0,o=1;o=0;--t)l[t]=(o[t]-l[t+1])/i[t];for(i[n-1]=(e[n]+l[n-1])/2,t=0;t=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 n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function zDe(e){return new i2(e,.5)}function BDe(e){return new i2(e,0)}function WDe(e){return new i2(e,1)}function pf(e,t){if((o=e.length)>1)for(var n=1,r,l,i=e[t[0]],o,a=i.length;n=0;)n[t]=t;return n}function qDe(e,t){return e[t]}function nV(){var e=no([]),t=hf,n=pf,r=qDe;function l(i){var o=e.apply(this,arguments),a,s=i.length,u=o.length,c=new Array(u),d;for(a=0;a0){for(var n,r,l=0,i=e[0].length,o;l0)for(var n,r=0,l,i,o,a,s,u=e[t[0]].length;r0?(l[0]=o,l[1]=o+=i):i<0?(l[1]=a,l[0]=a+=i):(l[0]=0,l[1]=i)}function HDe(e,t){if((l=e.length)>0){for(var n=0,r=e[t[0]],l,i=r.length;n0)||!((i=(l=e[t[0]]).length)>0))){for(var n=0,r=1,l,i,o;ri&&(i=l,n=t);return n}function rV(e){var t=e.map(aV);return hf(e).sort(function(n,r){return t[n]-t[r]})}function aV(e){for(var t=0,n=-1,r=e.length,l;++nm&&(m=u),w=b*b*_,y=Math.max(m/w,w/v),y>x){b-=u;break}x=y}o.push(s={value:b,dice:p1?r:1)},n}(oV);function JDe(e,t,n,r,l){var i=e.children,o,a=i.length,s,u=new Array(a+1);for(u[0]=s=o=0;o=f-1){var m=i[d];m.x0=h,m.y0=g,m.x1=b,m.y1=v;return}for(var y=u[d],x=p/2+y,_=d+1,w=f-1;_>>1;u[S]v-g){var T=(h*C+b*k)/p;c(d,_,k,h,g,T,v),c(_,f,C,T,g,b,v)}else{var M=(g*C+v*k)/p;c(d,_,k,h,g,b,M),c(_,f,C,h,M,b,v)}}}function eEe(e,t,n,r,l){(e.depth&1?s2:l2)(e,t,n,r,l)}const tEe=function e(t){function n(r,l,i,o,a){if((s=r._squarify)&&s.ratio===t)for(var s,u,c,d,f=-1,p,h=s.length,g=r.value;++f1?r:1)},n}(oV);var U3=new Date,H3=new Date;function Xa(e,t,n,r){function l(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return l.floor=function(i){return e(i=new Date(+i)),i},l.ceil=function(i){return e(i=new Date(i-1)),t(i,1),e(i),i},l.round=function(i){var o=l(i),a=l.ceil(i);return i-o0))return s;do s.push(u=new Date(+i)),t(i,a),e(i);while(u=o)for(;e(o),!i(o);)o.setTime(o-1)},function(o,a){if(o>=o)if(a<0)for(;++a<=0;)for(;t(o,-1),!i(o););else for(;--a>=0;)for(;t(o,1),!i(o););})},n&&(l.count=function(i,o){return U3.setTime(+i),H3.setTime(+o),e(U3),e(H3),Math.floor(n(U3,H3))},l.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?l.filter(r?function(o){return r(o)%i===0}:function(o){return l.count(0,o)%i===0}):l}),l}var qm=Xa(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});qm.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Xa(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):qm};qm.range;var a1=1e3,hc=6e4,o1=36e5,lV=864e5,sV=6048e5,Mk=Xa(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*a1)},function(e,t){return(t-e)/a1},function(e){return e.getUTCSeconds()});Mk.range;var uV=Xa(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*a1)},function(e,t){e.setTime(+e+t*hc)},function(e,t){return(t-e)/hc},function(e){return e.getMinutes()});uV.range;var cV=Xa(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*a1-e.getMinutes()*hc)},function(e,t){e.setTime(+e+t*o1)},function(e,t){return(t-e)/o1},function(e){return e.getHours()});cV.range;var u2=Xa(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*hc)/lV},function(e){return e.getDate()-1});u2.range;function Lc(e){return Xa(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*hc)/sV})}var i1=Lc(0),Um=Lc(1),dV=Lc(2),fV=Lc(3),mc=Lc(4),pV=Lc(5),hV=Lc(6);i1.range;Um.range;dV.range;fV.range;mc.range;pV.range;hV.range;var mV=Xa(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});mV.range;var su=Xa(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});su.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Xa(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};su.range;var gV=Xa(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*hc)},function(e,t){return(t-e)/hc},function(e){return e.getUTCMinutes()});gV.range;var vV=Xa(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*o1)},function(e,t){return(t-e)/o1},function(e){return e.getUTCHours()});vV.range;var c2=Xa(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/lV},function(e){return e.getUTCDate()-1});c2.range;function Ic(e){return Xa(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/sV})}var l1=Ic(0),Hm=Ic(1),yV=Ic(2),bV=Ic(3),gc=Ic(4),xV=Ic(5),wV=Ic(6);l1.range;Hm.range;yV.range;bV.range;gc.range;xV.range;wV.range;var _V=Xa(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});_V.range;var uu=Xa(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});uu.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Xa(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};uu.range;function V3(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 G3(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 oh(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function nEe(e){var t=e.dateTime,n=e.date,r=e.time,l=e.periods,i=e.days,o=e.shortDays,a=e.months,s=e.shortMonths,u=ih(l),c=lh(l),d=ih(i),f=lh(i),p=ih(o),h=lh(o),g=ih(a),b=lh(a),v=ih(s),m=lh(s),y={a:A,A:F,b:j,B,c:null,d:oL,e:oL,f:kEe,g:IEe,G:NEe,H:_Ee,I:TEe,j:SEe,L:TV,m:CEe,M:MEe,p:z,q:N,Q:sL,s:uL,S:PEe,u:OEe,U:AEe,V:DEe,w:EEe,W:REe,x:null,X:null,y:LEe,Y:$Ee,Z:FEe,"%":lL},x={a:R,A:q,b:Y,B:L,c:null,d:iL,e:iL,f:WEe,g:QEe,G:e9e,H:jEe,I:zEe,j:BEe,L:kV,m:qEe,M:UEe,p:W,q:H,Q:sL,s:uL,S:HEe,u:VEe,U:GEe,V:YEe,w:XEe,W:KEe,x:null,X:null,y:ZEe,Y:JEe,Z:t9e,"%":lL},_={a:T,A:M,b:O,B:D,c:P,d:rL,e:rL,f:yEe,g:nL,G:tL,H:aL,I:aL,j:hEe,L:vEe,m:pEe,M:mEe,p:C,q:fEe,Q:xEe,s:wEe,S:gEe,u:lEe,U:sEe,V:uEe,w:iEe,W:cEe,x:E,X:I,y:nL,Y:tL,Z:dEe,"%":bEe};y.x=w(n,y),y.X=w(r,y),y.c=w(t,y),x.x=w(n,x),x.X=w(r,x),x.c=w(t,x);function w(G,te){return function(ee){var U=[],Q=-1,V=0,X=G.length,K,ne,ae;for(ee instanceof Date||(ee=new Date(+ee));++Q53)return null;"w"in U||(U.w=1),"Z"in U?(V=G3(oh(U.y,0,1)),X=V.getUTCDay(),V=X>4||X===0?Hm.ceil(V):Hm(V),V=c2.offset(V,(U.V-1)*7),U.y=V.getUTCFullYear(),U.m=V.getUTCMonth(),U.d=V.getUTCDate()+(U.w+6)%7):(V=V3(oh(U.y,0,1)),X=V.getDay(),V=X>4||X===0?Um.ceil(V):Um(V),V=u2.offset(V,(U.V-1)*7),U.y=V.getFullYear(),U.m=V.getMonth(),U.d=V.getDate()+(U.w+6)%7)}else("W"in U||"U"in U)&&("w"in U||(U.w="u"in U?U.u%7:"W"in U?1:0),X="Z"in U?G3(oh(U.y,0,1)).getUTCDay():V3(oh(U.y,0,1)).getDay(),U.m=0,U.d="W"in U?(U.w+6)%7+U.W*7-(X+5)%7:U.w+U.U*7-(X+6)%7);return"Z"in U?(U.H+=U.Z/100|0,U.M+=U.Z%100,G3(U)):V3(U)}}function k(G,te,ee,U){for(var Q=0,V=te.length,X=ee.length,K,ne;Q=X)return-1;if(K=te.charCodeAt(Q++),K===37){if(K=te.charAt(Q++),ne=_[K in eL?te.charAt(Q++):K],!ne||(U=ne(G,ee,U))<0)return-1}else if(K!=ee.charCodeAt(U++))return-1}return U}function C(G,te,ee){var U=u.exec(te.slice(ee));return U?(G.p=c[U[0].toLowerCase()],ee+U[0].length):-1}function T(G,te,ee){var U=p.exec(te.slice(ee));return U?(G.w=h[U[0].toLowerCase()],ee+U[0].length):-1}function M(G,te,ee){var U=d.exec(te.slice(ee));return U?(G.w=f[U[0].toLowerCase()],ee+U[0].length):-1}function O(G,te,ee){var U=v.exec(te.slice(ee));return U?(G.m=m[U[0].toLowerCase()],ee+U[0].length):-1}function D(G,te,ee){var U=g.exec(te.slice(ee));return U?(G.m=b[U[0].toLowerCase()],ee+U[0].length):-1}function P(G,te,ee){return k(G,t,te,ee)}function E(G,te,ee){return k(G,n,te,ee)}function I(G,te,ee){return k(G,r,te,ee)}function A(G){return o[G.getDay()]}function F(G){return i[G.getDay()]}function j(G){return s[G.getMonth()]}function B(G){return a[G.getMonth()]}function z(G){return l[+(G.getHours()>=12)]}function N(G){return 1+~~(G.getMonth()/3)}function R(G){return o[G.getUTCDay()]}function q(G){return i[G.getUTCDay()]}function Y(G){return s[G.getUTCMonth()]}function L(G){return a[G.getUTCMonth()]}function W(G){return l[+(G.getUTCHours()>=12)]}function H(G){return 1+~~(G.getUTCMonth()/3)}return{format:function(G){var te=w(G+="",y);return te.toString=function(){return G},te},parse:function(G){var te=S(G+="",!1);return te.toString=function(){return G},te},utcFormat:function(G){var te=w(G+="",x);return te.toString=function(){return G},te},utcParse:function(G){var te=S(G+="",!0);return te.toString=function(){return G},te}}}var eL={"-":"",_:" ",0:"0"},Ka=/^\s*\d+/,rEe=/^%/,aEe=/[\\^$*+?|[\]().{}]/g;function _r(e,t,n){var r=e<0?"-":"",l=(r?-e:e)+"",i=l.length;return r+(i68?1900:2e3),n+r[0].length):-1}function dEe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function fEe(e,t,n){var r=Ka.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function pEe(e,t,n){var r=Ka.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function rL(e,t,n){var r=Ka.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function hEe(e,t,n){var r=Ka.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function aL(e,t,n){var r=Ka.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function mEe(e,t,n){var r=Ka.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function gEe(e,t,n){var r=Ka.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function vEe(e,t,n){var r=Ka.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function yEe(e,t,n){var r=Ka.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function bEe(e,t,n){var r=rEe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function xEe(e,t,n){var r=Ka.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function wEe(e,t,n){var r=Ka.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function oL(e,t){return _r(e.getDate(),t,2)}function _Ee(e,t){return _r(e.getHours(),t,2)}function TEe(e,t){return _r(e.getHours()%12||12,t,2)}function SEe(e,t){return _r(1+u2.count(su(e),e),t,3)}function TV(e,t){return _r(e.getMilliseconds(),t,3)}function kEe(e,t){return TV(e,t)+"000"}function CEe(e,t){return _r(e.getMonth()+1,t,2)}function MEe(e,t){return _r(e.getMinutes(),t,2)}function PEe(e,t){return _r(e.getSeconds(),t,2)}function OEe(e){var t=e.getDay();return t===0?7:t}function AEe(e,t){return _r(i1.count(su(e)-1,e),t,2)}function SV(e){var t=e.getDay();return t>=4||t===0?mc(e):mc.ceil(e)}function DEe(e,t){return e=SV(e),_r(mc.count(su(e),e)+(su(e).getDay()===4),t,2)}function EEe(e){return e.getDay()}function REe(e,t){return _r(Um.count(su(e)-1,e),t,2)}function LEe(e,t){return _r(e.getFullYear()%100,t,2)}function IEe(e,t){return e=SV(e),_r(e.getFullYear()%100,t,2)}function $Ee(e,t){return _r(e.getFullYear()%1e4,t,4)}function NEe(e,t){var n=e.getDay();return e=n>=4||n===0?mc(e):mc.ceil(e),_r(e.getFullYear()%1e4,t,4)}function FEe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+_r(t/60|0,"0",2)+_r(t%60,"0",2)}function iL(e,t){return _r(e.getUTCDate(),t,2)}function jEe(e,t){return _r(e.getUTCHours(),t,2)}function zEe(e,t){return _r(e.getUTCHours()%12||12,t,2)}function BEe(e,t){return _r(1+c2.count(uu(e),e),t,3)}function kV(e,t){return _r(e.getUTCMilliseconds(),t,3)}function WEe(e,t){return kV(e,t)+"000"}function qEe(e,t){return _r(e.getUTCMonth()+1,t,2)}function UEe(e,t){return _r(e.getUTCMinutes(),t,2)}function HEe(e,t){return _r(e.getUTCSeconds(),t,2)}function VEe(e){var t=e.getUTCDay();return t===0?7:t}function GEe(e,t){return _r(l1.count(uu(e)-1,e),t,2)}function CV(e){var t=e.getUTCDay();return t>=4||t===0?gc(e):gc.ceil(e)}function YEe(e,t){return e=CV(e),_r(gc.count(uu(e),e)+(uu(e).getUTCDay()===4),t,2)}function XEe(e){return e.getUTCDay()}function KEe(e,t){return _r(Hm.count(uu(e)-1,e),t,2)}function ZEe(e,t){return _r(e.getUTCFullYear()%100,t,2)}function QEe(e,t){return e=CV(e),_r(e.getUTCFullYear()%100,t,2)}function JEe(e,t){return _r(e.getUTCFullYear()%1e4,t,4)}function e9e(e,t){var n=e.getUTCDay();return e=n>=4||n===0?gc(e):gc.ceil(e),_r(e.getUTCFullYear()%1e4,t,4)}function t9e(){return"+0000"}function lL(){return"%"}function sL(e){return+e}function uL(e){return Math.floor(+e/1e3)}var td,C6,MV,PV;n9e({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function n9e(e){return td=nEe(e),C6=td.format,MV=td.parse,td.utcFormat,PV=td.utcParse,td}var sh={},uh={},cL;function r9e(){if(cL)return uh;cL=1,uh.__esModule=!0,uh.default=void 0;var e=function(r){if(typeof r=="string")return r;if(r)return r.displayName||r.name||"Component"},t=e;return uh.default=t,uh}var dL;function Hf(){if(dL)return sh;dL=1;var e=Hn;sh.__esModule=!0,sh.default=void 0;var t=e(r9e()),n=function(i,o){return o+"("+(0,t.default)(i)+")"},r=n;return sh.default=r,sh}var ws={},ch={},fL;function OV(){if(fL)return ch;fL=1,ch.__esModule=!0,ch.default=void 0;var e=function(r,l){return function(i){return i[r]=l,i}},t=e;return ch.default=t,ch}var a9e=Hn;ws.__esModule=!0;var M6=ws.default=void 0,o9e=a9e(OV()),i9e=function(t){return(0,o9e.default)("displayName",t)},l9e=i9e;M6=ws.default=l9e;var dh={},pL;function s9e(){if(pL)return dh;pL=1;var e=Hn;dh.__esModule=!0,dh.default=void 0;var t=ge;e(ws),e(Hf());var n=function(i){return function(o){var a=(0,t.createFactory)(o),s=function(c){return a(i(c))};return s}},r=n;return dh.default=r,dh}var d2=Hn;d2(jr());d2(Hf());d2(ws);d2(s9e());function u9e(e,t){for(var n=-1,r=e==null?0:e.length;++na))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=n&m9e?new d9e:void 0;for(i.set(e,t),i.set(t,e);++d1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(bIe,`{ +https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=WV,t.componentWillReceiveProps=qV),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=UV;var a=t.componentDidUpdate;t.componentDidUpdate=function(u,c,d){var f=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:d;a.call(this,u,c,f)}}return e}const iLe=Object.freeze(Object.defineProperty({__proto__:null,polyfill:oLe},Symbol.toStringTag,{value:"Module"})),lLe=er(iLe);var fh={},EL;function sLe(){if(EL)return fh;EL=1,fh.__esModule=!0,fh.default=void 0;var e=function(r,l){for(var i={},o=0;o1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(xIe,`{ /* [wrapped with `+t+`] */ -`)}var wIe=xIe;function _Ie(e,t){for(var n=-1,r=e==null?0:e.length;++n1&&m.reverse(),c&&s0&&n(a)?t>1?sG(a,t-1,n,r,l):ZNe(l,a):r||(l[l.length]=a)}return l}var $6=sG,JNe=$6;function eFe(e){var t=e==null?0:e.length;return t?JNe(e,1):[]}var tFe=eFe,nFe=tFe,rFe=oH,aFe=Y4;function oFe(e){return aFe(rFe(e,void 0,nFe),e+"")}var uG=oFe,iFe=VNe,lFe=uG,sFe=lFe(function(e,t){return e==null?{}:iFe(e,t)}),uFe=sFe;const cFe=dr(uFe);var Xu=function(){};function vc(e){for(var t=1;t2&&arguments[2]!==void 0?arguments[2]:{};return ge.useMemo(function(){var l=NFe({},Lk,r);return{margin:l,innerWidth:t-l.left-l.right,innerHeight:n-l.top-l.bottom,outerWidth:t,outerHeight:n}},[t,n,r.top,r.right,r.bottom,r.left])},jFe=function(t){return ge.useMemo(function(){return fG(dG,t)},[t])},zFe=function(t){return typeof t=="function"?t:typeof t=="string"?t.indexOf("time:")===0?C6(t.slice("5")):Uf(t):function(n){return n}},Vm=function(t){return ge.useMemo(function(){return zFe(t)},[t])},F6=ge.createContext(),BFe={},mG=function(t){var n=t.theme,r=n===void 0?BFe:n,l=t.children,i=jFe(r);return Ke.createElement(F6.Provider,{value:i},l)};mG.propTypes={children:le.node.isRequired,theme:le.object};var Aa=function(){return ge.useContext(F6)};function Tv(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Tv=function(n){return typeof n}:Tv=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Tv(e)}function Ik(){return Ik=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function UFe(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,i;for(i=0;i=0)&&(n[l]=e[l]);return n}function HFe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VFe(e,t){for(var n=0;n"u"||s[u].value!==this.newInters[u].value)&&(this.newInters[u]=s[u],this.stepValues[u]=this.currentStepValues[u]+1,this.stepInterpolators[u]=this.newInters[u].interpolator(this.oldValues[u],this.newInters[u].value)),s[u]=Bn(this.stepValues[u],this.newInters[u].config));return Ke.createElement(cs,Ik({},a,{style:s}),function(c){var d={};for(var f in c)if(r.stepValues[f]){r.currentStepValues[f]=c[f];var p=r.currentStepValues[f]-r.stepValues[f]+1;r.oldValues[f]=d[f]=r.stepInterpolators[f](p)}return o(WFe({},c,d))})}}]),t}(ge.PureComponent);Nu(y2,"propTypes",{children:le.func.isRequired,style:le.func.isRequired});var gG=ge.createContext(),b2=function(t){var n=t.children,r=t.animate,l=t.stiffness,i=t.damping,o=ge.useMemo(function(){return{animate:r,springConfig:{stiffness:l,damping:i}}},[r,l,i]);return Ke.createElement(gG.Provider,{value:o},n)};b2.propTypes={children:le.node.isRequired,animate:le.bool.isRequired,stiffness:le.number.isRequired,damping:le.number.isRequired};b2.defaultProps={animate:!0,stiffness:90,damping:15};var Xo=function(){return ge.useContext(gG)};function ZFe(e){for(var t=1;t0&&o>0;return Ke.createElement(Nm,{bounds:!0,onResize:function(u){r.setState({dimensions:u.bounds})}},function(s){var u=s.measureRef;return Ke.createElement("div",{ref:u,style:{width:"100%",height:"100%"}},a&&r.props.children({width:i,height:o}))})}}]),t}(ge.Component);yG(w2,"propTypes",{children:le.func.isRequired});var bG=function(t){var n=t.id,r=t.colors;return Ke.createElement("linearGradient",{id:n,x1:0,x2:0,y1:0,y2:1},r.map(function(l){var i=l.offset,o=l.color,a=l.opacity;return Ke.createElement("stop",{key:i,offset:"".concat(i,"%"),stopColor:o,stopOpacity:a!==void 0?a:1})}))};bG.propTypes={id:le.string.isRequired,colors:le.arrayOf(le.shape({offset:le.number.isRequired,color:le.string.isRequired})).isRequired};var xG={linearGradient:bG},_2=ge.memo(function(e){var t=e.id,n=e.background,r=e.color,l=e.size,i=e.padding,o=e.stagger,a=l+i,s=l/2,u=i/2;return o===!0&&(a=l*2+i*2),Ke.createElement("pattern",{id:t,width:a,height:a,patternUnits:"userSpaceOnUse"},Ke.createElement("rect",{width:a,height:a,fill:n}),Ke.createElement("circle",{cx:u+s,cy:u+s,r:s,fill:r}),o&&Ke.createElement("circle",{cx:i*1.5+l+s,cy:i*1.5+l+s,r:s,fill:r}))});_2.displayName="PatternDots";_2.propTypes={id:le.string.isRequired,color:le.string.isRequired,background:le.string.isRequired,size:le.number.isRequired,padding:le.number.isRequired,stagger:le.bool.isRequired};_2.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var zk=function(t){return t*Math.PI/180},cje=function(t){return 180*t/Math.PI},dje=function(t,n){return{x:Math.cos(t)*n,y:Math.sin(t)*n}},fje=function(t){var n=t%360;return n<0&&(n+=360),n},pje={svg:{align:{left:"start",center:"middle",right:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},T2=ge.memo(function(e){var t=e.id,n=e.spacing,r=e.rotation,l=e.background,i=e.color,o=e.lineWidth,a=Math.round(r)%360,s=Math.abs(n);a>180?a=a-360:a>90?a=a-180:a<-180?a=a+360:a<-90&&(a=a+180);var u=s,c=s,d;return a===0?d=` +`)}var _Ie=wIe;function TIe(e,t){for(var n=-1,r=e==null?0:e.length;++n1&&m.reverse(),c&&s0&&n(a)?t>1?sG(a,t-1,n,r,l):QNe(l,a):r||(l[l.length]=a)}return l}var $6=sG,eFe=$6;function tFe(e){var t=e==null?0:e.length;return t?eFe(e,1):[]}var nFe=tFe,rFe=nFe,aFe=oH,oFe=Y4;function iFe(e){return oFe(aFe(e,void 0,rFe),e+"")}var uG=iFe,lFe=GNe,sFe=uG,uFe=sFe(function(e,t){return e==null?{}:lFe(e,t)}),cFe=uFe;const dFe=dr(cFe);var Xu=function(){};function vc(e){for(var t=1;t2&&arguments[2]!==void 0?arguments[2]:{};return ge.useMemo(function(){var l=FFe({},Lk,r);return{margin:l,innerWidth:t-l.left-l.right,innerHeight:n-l.top-l.bottom,outerWidth:t,outerHeight:n}},[t,n,r.top,r.right,r.bottom,r.left])},zFe=function(t){return ge.useMemo(function(){return fG(dG,t)},[t])},BFe=function(t){return typeof t=="function"?t:typeof t=="string"?t.indexOf("time:")===0?C6(t.slice("5")):Uf(t):function(n){return n}},Vm=function(t){return ge.useMemo(function(){return BFe(t)},[t])},F6=ge.createContext(),WFe={},mG=function(t){var n=t.theme,r=n===void 0?WFe:n,l=t.children,i=zFe(r);return Xe.createElement(F6.Provider,{value:i},l)};mG.propTypes={children:le.node.isRequired,theme:le.object};var Aa=function(){return ge.useContext(F6)};function Tv(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Tv=function(n){return typeof n}:Tv=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Tv(e)}function Ik(){return Ik=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function HFe(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,i;for(i=0;i=0)&&(n[l]=e[l]);return n}function VFe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GFe(e,t){for(var n=0;n"u"||s[u].value!==this.newInters[u].value)&&(this.newInters[u]=s[u],this.stepValues[u]=this.currentStepValues[u]+1,this.stepInterpolators[u]=this.newInters[u].interpolator(this.oldValues[u],this.newInters[u].value)),s[u]=Bn(this.stepValues[u],this.newInters[u].config));return Xe.createElement(cs,Ik({},a,{style:s}),function(c){var d={};for(var f in c)if(r.stepValues[f]){r.currentStepValues[f]=c[f];var p=r.currentStepValues[f]-r.stepValues[f]+1;r.oldValues[f]=d[f]=r.stepInterpolators[f](p)}return o(qFe({},c,d))})}}]),t}(ge.PureComponent);Nu(y2,"propTypes",{children:le.func.isRequired,style:le.func.isRequired});var gG=ge.createContext(),b2=function(t){var n=t.children,r=t.animate,l=t.stiffness,i=t.damping,o=ge.useMemo(function(){return{animate:r,springConfig:{stiffness:l,damping:i}}},[r,l,i]);return Xe.createElement(gG.Provider,{value:o},n)};b2.propTypes={children:le.node.isRequired,animate:le.bool.isRequired,stiffness:le.number.isRequired,damping:le.number.isRequired};b2.defaultProps={animate:!0,stiffness:90,damping:15};var Xo=function(){return ge.useContext(gG)};function QFe(e){for(var t=1;t0&&o>0;return Xe.createElement(Nm,{bounds:!0,onResize:function(u){r.setState({dimensions:u.bounds})}},function(s){var u=s.measureRef;return Xe.createElement("div",{ref:u,style:{width:"100%",height:"100%"}},a&&r.props.children({width:i,height:o}))})}}]),t}(ge.Component);yG(w2,"propTypes",{children:le.func.isRequired});var bG=function(t){var n=t.id,r=t.colors;return Xe.createElement("linearGradient",{id:n,x1:0,x2:0,y1:0,y2:1},r.map(function(l){var i=l.offset,o=l.color,a=l.opacity;return Xe.createElement("stop",{key:i,offset:"".concat(i,"%"),stopColor:o,stopOpacity:a!==void 0?a:1})}))};bG.propTypes={id:le.string.isRequired,colors:le.arrayOf(le.shape({offset:le.number.isRequired,color:le.string.isRequired})).isRequired};var xG={linearGradient:bG},_2=ge.memo(function(e){var t=e.id,n=e.background,r=e.color,l=e.size,i=e.padding,o=e.stagger,a=l+i,s=l/2,u=i/2;return o===!0&&(a=l*2+i*2),Xe.createElement("pattern",{id:t,width:a,height:a,patternUnits:"userSpaceOnUse"},Xe.createElement("rect",{width:a,height:a,fill:n}),Xe.createElement("circle",{cx:u+s,cy:u+s,r:s,fill:r}),o&&Xe.createElement("circle",{cx:i*1.5+l+s,cy:i*1.5+l+s,r:s,fill:r}))});_2.displayName="PatternDots";_2.propTypes={id:le.string.isRequired,color:le.string.isRequired,background:le.string.isRequired,size:le.number.isRequired,padding:le.number.isRequired,stagger:le.bool.isRequired};_2.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var zk=function(t){return t*Math.PI/180},dje=function(t){return 180*t/Math.PI},fje=function(t,n){return{x:Math.cos(t)*n,y:Math.sin(t)*n}},pje=function(t){var n=t%360;return n<0&&(n+=360),n},hje={svg:{align:{left:"start",center:"middle",right:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},T2=ge.memo(function(e){var t=e.id,n=e.spacing,r=e.rotation,l=e.background,i=e.color,o=e.lineWidth,a=Math.round(r)%360,s=Math.abs(n);a>180?a=a-360:a>90?a=a-180:a<-180?a=a+360:a<-90&&(a=a+180);var u=s,c=s,d;return a===0?d=` M 0 0 L `.concat(u,` 0 M 0 `).concat(c," L ").concat(u," ").concat(c,` `):a===90?d=` @@ -572,29 +572,29 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat M `.concat(-u," ").concat(c," L ").concat(u," ").concat(-c,` M `).concat(-u," ").concat(c*2," L ").concat(u*2," ").concat(-c,` M 0 `).concat(c*2," L ").concat(u*2,` 0 - `)),Ke.createElement("pattern",{id:t,width:u,height:c,patternUnits:"userSpaceOnUse"},Ke.createElement("rect",{width:u,height:c,fill:l,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),Ke.createElement("path",{d,strokeWidth:o,stroke:i,strokeLinecap:"square"}))});T2.displayName="PatternLines";T2.propTypes={id:le.string.isRequired,spacing:le.number.isRequired,rotation:le.number.isRequired,background:le.string.isRequired,color:le.string.isRequired,lineWidth:le.number.isRequired};T2.defaultProps={spacing:5,rotation:0,color:"#000000",background:"#ffffff",lineWidth:2};var S2=ge.memo(function(e){var t=e.id,n=e.background,r=e.color,l=e.size,i=e.padding,o=e.stagger,a=l+i,s=i/2;return o===!0&&(a=l*2+i*2),Ke.createElement("pattern",{id:t,width:a,height:a,patternUnits:"userSpaceOnUse"},Ke.createElement("rect",{width:a,height:a,fill:n}),Ke.createElement("rect",{x:s,y:s,width:l,height:l,fill:r}),o&&Ke.createElement("rect",{x:i*1.5+l,y:i*1.5+l,width:l,height:l,fill:r}))});S2.displayName="PatternSquares";S2.propTypes={id:le.string.isRequired,color:le.string.isRequired,background:le.string.isRequired,size:le.number.isRequired,padding:le.number.isRequired,stagger:le.bool.isRequired};S2.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var wG={patternDots:_2,patternLines:T2,patternSquares:S2};function hje(e,t){if(e==null)return{};var n=mje(e,t),r,l;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(l=0;l=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mje(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,i;for(i=0;i=0)&&(n[l]=e[l]);return n}function _G(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{},t=e.srcKey,n=t===void 0?"theme":t,r=e.destKey,l=r===void 0?"theme":r;return $c(p2(iI({},n,le.object)),fo([n],function(i){return iI({},l,fG(dG,i[n]))}))};function kv(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?kv=function(n){return typeof n}:kv=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},kv(e)}function Sje(e,t){if(e==null)return{};var n=kje(e,t),r,l;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(l=0;l=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function kje(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,i;for(i=0;i=0)&&(n[l]=e[l]);return n}function Cje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mje(e,t){for(var n=0;n3&&arguments[3]!==void 0?arguments[3]:{},i=l.dataKey,o=l.colorKey,a=o===void 0?"color":o,s=l.targetKey,u=s===void 0?"fill":s,c=[],d={};return t.length&&n.length&&(c=Lje(t),n.forEach(function(f){for(var p=function(v){var m=r[v],y=m.id,x=m.match;if(zje(x,f,i)){var _=t.find(function(P){var E=P.id;return E===y});if(_){if(jje.includes(_.type))if(_.background==="inherit"||_.color==="inherit"){var w=Js(f,a),S=_.background,k=_.color,C=y;_.background==="inherit"&&(C="".concat(C,".bg.").concat(w),S=w),_.color==="inherit"&&(C="".concat(C,".fg.").concat(w),k=w),Vu(f,u,"url(#".concat(C,")")),d[C]||(c.push(nT({},_,{id:C,background:S,color:k})),d[C]=1)}else Vu(f,u,"url(#".concat(y,")"));else if(Fje.includes(_.type)){var T=_.colors.map(function(P){var E=P.color;return E});if(T.includes("inherit")){var M=Js(f,a),O=y,D=nT({},_,{colors:_.colors.map(function(P,E){return P.color!=="inherit"?P:(O="".concat(O,".").concat(E,".").concat(M),nT({},P,{color:P.color==="inherit"?M:P.color}))})});D.id=O,Vu(f,u,"url(#".concat(O,")")),d[O]||(c.push(D),d[O]=1)}else Vu(f,u,"url(#".concat(y,")"))}}return"break"}},h=0;h0?(v=f.align.right,m=f.baseline.center):(l==="after"&&s>0||l==="before"&&s<0)&&(v=f.align.left,m=f.baseline.center)):(b=function(_){return{x:0,y:p(_)}},h.lineX=o*(l==="after"?1:-1),g.textX=(o+a)*(l==="after"?1:-1),l==="after"?v=f.align.left:v=f.align.right);var y=d.map(function(x){return Vje({key:x,value:x},b(x),h,g)});return{ticks:y,textAlign:v,textBaseline:m}},IG=function(t,n){if(!t||typeof t=="function")return t;if(n.type==="time"){var r=C6(t);return function(l){return r(new Date(l))}}return Uf(t)},Hk=function(t){var n=t.width,r=t.height,l=t.scale,i=t.axis,o=t.values,a=Array.isArray(o)?o:void 0,s=C2(o)?o:void 0,u=a||RG(l,s),c=l.bandwidth?DG(l):l,d;return i==="x"?d=u.map(function(f){return{key:"".concat(f),x1:c(f),x2:c(f),y1:0,y2:r}}):i==="y"&&(d=u.map(function(f){return{key:"".concat(f),x1:0,x2:n,y1:c(f),y2:c(f)}})),d},$G={ticksPosition:le.oneOf(["before","after"]),tickValues:le.oneOfType([le.number,le.arrayOf(le.oneOfType([le.number,le.string,le.instanceOf(Date)])),le.string]),tickSize:le.number,tickPadding:le.number,tickRotation:le.number,format:le.oneOfType([le.func,le.string]),renderTick:le.func,legend:le.node,legendPosition:le.oneOf(["start","middle","end"]),legendOffset:le.number},mo=le.shape($G);function Vk(){return Vk=Object.assign||function(e){for(var t=1;t0&&(t.lineWidth=k.axis.domain.line.strokeWidth,t.lineCap="square",t.strokeStyle=k.axis.domain.line.stroke,t.beginPath(),t.moveTo(0,0),t.lineTo(r==="x"?u:0,r==="x"?0:u),t.stroke()),T.forEach(function(A){k.axis.ticks.line.strokeWidth>0&&(t.lineWidth=k.axis.ticks.line.strokeWidth,t.lineCap="square",t.strokeStyle=k.axis.ticks.line.stroke,t.beginPath(),t.moveTo(A.x,A.y),t.lineTo(A.x+A.lineX,A.y+A.lineY),t.stroke());var F=m!==void 0?m(A.value):A.value;t.save(),t.translate(A.x+A.textX,A.y+A.textY),t.rotate(uI(v)),t.fillStyle=k.axis.ticks.text.fill,t.fillText(F,0,0),t.restore()}),y!==void 0){var D=0,P=0,E=0,I;r==="y"?(E=-90,D=S,_==="start"?(I="start",P=u):_==="middle"?(I="center",P=u/2):_==="end"&&(I="end")):(P=S,_==="start"?I="start":_==="middle"?(I="center",D=u/2):_==="end"&&(I="end",D=u)),t.translate(D,P),t.rotate(uI(E)),t.font="".concat(k.axis.legend.text.fontWeight?"".concat(k.axis.legend.text.fontWeight," "):"").concat(k.axis.legend.text.fontSize,"px ").concat(k.axis.legend.text.fontFamily),t.fillStyle=k.axis.legend.text.fill,t.textAlign=I,t.textBaseline="middle",t.fillText(y,0,0)}t.restore()},ize=["top","right","bottom","left"],Y6=function(t,n){var r=n.xScale,l=n.yScale,i=n.width,o=n.height,a=n.top,s=n.right,u=n.bottom,c=n.left,d=n.theme,f={top:a,right:s,bottom:u,left:c};ize.forEach(function(p){var h=f[p];if(!h)return null;var g=p==="top"||p==="bottom",b=p==="top"||p==="left"?"before":"after",v=g?r:l,m=IG(h.format,v);oze(t,rze({},h,{axis:g?"x":"y",x:p==="right"?i:0,y:p==="bottom"?o:0,scale:v,format:m,length:g?i:o,ticksPosition:b,theme:d}))})},mf=function(t,n){var r=n.width,l=n.height,i=n.scale,o=n.axis,a=n.values,s=Hk({width:r,height:l,scale:i,axis:o,values:a});s.forEach(function(u){t.beginPath(),t.moveTo(u.x1,u.y1),t.lineTo(u.x2,u.y2),t.stroke()})},M2="row",P2="column",X6="top",K6="top-right",Z6="right",Q6="bottom-right",J6="bottom",eP="bottom-left",tP="left",zG="top-left",nP="center",O2="left-to-right",A2="right-to-left",D2="top-to-bottom",E2="bottom-to-top";function lze(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gje(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,i;for(i=0;i=0)&&(n[l]=e[l]);return n}function _G(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{},t=e.srcKey,n=t===void 0?"theme":t,r=e.destKey,l=r===void 0?"theme":r;return $c(p2(iI({},n,le.object)),fo([n],function(i){return iI({},l,fG(dG,i[n]))}))};function kv(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?kv=function(n){return typeof n}:kv=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},kv(e)}function kje(e,t){if(e==null)return{};var n=Cje(e,t),r,l;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(l=0;l=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Cje(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,i;for(i=0;i=0)&&(n[l]=e[l]);return n}function Mje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pje(e,t){for(var n=0;n3&&arguments[3]!==void 0?arguments[3]:{},i=l.dataKey,o=l.colorKey,a=o===void 0?"color":o,s=l.targetKey,u=s===void 0?"fill":s,c=[],d={};return t.length&&n.length&&(c=Ije(t),n.forEach(function(f){for(var p=function(v){var m=r[v],y=m.id,x=m.match;if(Bje(x,f,i)){var _=t.find(function(P){var E=P.id;return E===y});if(_){if(zje.includes(_.type))if(_.background==="inherit"||_.color==="inherit"){var w=Js(f,a),S=_.background,k=_.color,C=y;_.background==="inherit"&&(C="".concat(C,".bg.").concat(w),S=w),_.color==="inherit"&&(C="".concat(C,".fg.").concat(w),k=w),Vu(f,u,"url(#".concat(C,")")),d[C]||(c.push(nT({},_,{id:C,background:S,color:k})),d[C]=1)}else Vu(f,u,"url(#".concat(y,")"));else if(jje.includes(_.type)){var T=_.colors.map(function(P){var E=P.color;return E});if(T.includes("inherit")){var M=Js(f,a),O=y,D=nT({},_,{colors:_.colors.map(function(P,E){return P.color!=="inherit"?P:(O="".concat(O,".").concat(E,".").concat(M),nT({},P,{color:P.color==="inherit"?M:P.color}))})});D.id=O,Vu(f,u,"url(#".concat(O,")")),d[O]||(c.push(D),d[O]=1)}else Vu(f,u,"url(#".concat(y,")"))}}return"break"}},h=0;h0?(v=f.align.right,m=f.baseline.center):(l==="after"&&s>0||l==="before"&&s<0)&&(v=f.align.left,m=f.baseline.center)):(b=function(_){return{x:0,y:p(_)}},h.lineX=o*(l==="after"?1:-1),g.textX=(o+a)*(l==="after"?1:-1),l==="after"?v=f.align.left:v=f.align.right);var y=d.map(function(x){return Gje({key:x,value:x},b(x),h,g)});return{ticks:y,textAlign:v,textBaseline:m}},IG=function(t,n){if(!t||typeof t=="function")return t;if(n.type==="time"){var r=C6(t);return function(l){return r(new Date(l))}}return Uf(t)},Hk=function(t){var n=t.width,r=t.height,l=t.scale,i=t.axis,o=t.values,a=Array.isArray(o)?o:void 0,s=C2(o)?o:void 0,u=a||RG(l,s),c=l.bandwidth?DG(l):l,d;return i==="x"?d=u.map(function(f){return{key:"".concat(f),x1:c(f),x2:c(f),y1:0,y2:r}}):i==="y"&&(d=u.map(function(f){return{key:"".concat(f),x1:0,x2:n,y1:c(f),y2:c(f)}})),d},$G={ticksPosition:le.oneOf(["before","after"]),tickValues:le.oneOfType([le.number,le.arrayOf(le.oneOfType([le.number,le.string,le.instanceOf(Date)])),le.string]),tickSize:le.number,tickPadding:le.number,tickRotation:le.number,format:le.oneOfType([le.func,le.string]),renderTick:le.func,legend:le.node,legendPosition:le.oneOf(["start","middle","end"]),legendOffset:le.number},mo=le.shape($G);function Vk(){return Vk=Object.assign||function(e){for(var t=1;t0&&(t.lineWidth=k.axis.domain.line.strokeWidth,t.lineCap="square",t.strokeStyle=k.axis.domain.line.stroke,t.beginPath(),t.moveTo(0,0),t.lineTo(r==="x"?u:0,r==="x"?0:u),t.stroke()),T.forEach(function(A){k.axis.ticks.line.strokeWidth>0&&(t.lineWidth=k.axis.ticks.line.strokeWidth,t.lineCap="square",t.strokeStyle=k.axis.ticks.line.stroke,t.beginPath(),t.moveTo(A.x,A.y),t.lineTo(A.x+A.lineX,A.y+A.lineY),t.stroke());var F=m!==void 0?m(A.value):A.value;t.save(),t.translate(A.x+A.textX,A.y+A.textY),t.rotate(uI(v)),t.fillStyle=k.axis.ticks.text.fill,t.fillText(F,0,0),t.restore()}),y!==void 0){var D=0,P=0,E=0,I;r==="y"?(E=-90,D=S,_==="start"?(I="start",P=u):_==="middle"?(I="center",P=u/2):_==="end"&&(I="end")):(P=S,_==="start"?I="start":_==="middle"?(I="center",D=u/2):_==="end"&&(I="end",D=u)),t.translate(D,P),t.rotate(uI(E)),t.font="".concat(k.axis.legend.text.fontWeight?"".concat(k.axis.legend.text.fontWeight," "):"").concat(k.axis.legend.text.fontSize,"px ").concat(k.axis.legend.text.fontFamily),t.fillStyle=k.axis.legend.text.fill,t.textAlign=I,t.textBaseline="middle",t.fillText(y,0,0)}t.restore()},lze=["top","right","bottom","left"],Y6=function(t,n){var r=n.xScale,l=n.yScale,i=n.width,o=n.height,a=n.top,s=n.right,u=n.bottom,c=n.left,d=n.theme,f={top:a,right:s,bottom:u,left:c};lze.forEach(function(p){var h=f[p];if(!h)return null;var g=p==="top"||p==="bottom",b=p==="top"||p==="left"?"before":"after",v=g?r:l,m=IG(h.format,v);ize(t,aze({},h,{axis:g?"x":"y",x:p==="right"?i:0,y:p==="bottom"?o:0,scale:v,format:m,length:g?i:o,ticksPosition:b,theme:d}))})},mf=function(t,n){var r=n.width,l=n.height,i=n.scale,o=n.axis,a=n.values,s=Hk({width:r,height:l,scale:i,axis:o,values:a});s.forEach(function(u){t.beginPath(),t.moveTo(u.x1,u.y1),t.lineTo(u.x2,u.y2),t.stroke()})},M2="row",P2="column",X6="top",K6="top-right",Z6="right",Q6="bottom-right",J6="bottom",eP="bottom-left",tP="left",zG="top-left",nP="center",O2="left-to-right",A2="right-to-left",D2="top-to-bottom",E2="bottom-to-top";function sze(e){for(var t=1;t0){var R=x.filter(function(Y){var L=Y.on;return L==="hover"}),q=R.reduce(function(Y,L){return Av({},Y,L.style)},{});k(q)}m!==void 0&&m(o,N)},[m,o,x]),O=ge.useCallback(function(){if(x.length>0){var N=x.filter(function(q){var Y=q.on;return Y!=="hover"}),R=N.reduce(function(q,Y){return Av({},q,Y.style)},{});k(R)}y!==void 0&&y(o,event)},[y,o,x]),D=WG({direction:a,justify:s,symbolSize:S.symbolSize||p,symbolSpacing:h,width:l,height:i}),P=D.symbolX,E=D.symbolY,I=D.labelX,A=D.labelY,F=D.labelAnchor,j=D.labelAlignment,B=[v,m,y].some(function(N){return N!==void 0}),z;return jm(f)?z=f:z=Wze[f],Ke.createElement("g",{transform:"translate(".concat(n,",").concat(r,")"),style:{opacity:S.itemOpacity!==void 0?S.itemOpacity:d}},Ke.createElement("rect",{width:l,height:i,fill:S.itemBackground||c,style:{cursor:B?"pointer":"auto"},onClick:T,onMouseEnter:M,onMouseLeave:O}),Ke.createElement(z,{id:o.id,x:P,y:E,size:S.symbolSize||p,fill:o.fill||o.color,borderWidth:S.symbolBorderWidth!==void 0?S.symbolBorderWidth:g,borderColor:S.symbolBorderColor||b}),Ke.createElement("text",{textAnchor:F,style:Av({},C.legends.text,{fill:S.itemTextColor||u,dominantBaseline:j,pointerEvents:"none",userSelect:"none"}),x:I,y:A},o.label))};Bs.displayName="LegendSvgItem";Bs.propTypes=Av({data:I2.isRequired,x:le.number.isRequired,y:le.number.isRequired,width:le.number.isRequired,height:le.number.isRequired,textColor:le.string,background:le.string,opacity:le.number,direction:le.oneOf(["left-to-right","right-to-left","top-to-bottom","bottom-to-top"]).isRequired,justify:le.bool.isRequired},R2,L2);Bs.defaultProps={direction:"left-to-right",justify:!1,textColor:"black",background:"transparent",opacity:1,symbolShape:"square",symbolSize:16,symbolSpacing:8,symbolBorderWidth:0,symbolBorderColor:"transparent",effects:[]};function qze(e){for(var t=1;tt}var rBe=nBe,aBe=GG,oBe=rBe,iBe=Dc;function lBe(e){return e&&e.length?aBe(e,iBe,oBe):void 0}var sBe=lBe;const XG=dr(sBe);var uBe=Math.ceil,cBe=Math.max;function dBe(e,t,n,r){for(var l=-1,i=cBe(uBe((t-e)/(n||1)),0),o=Array(i);i--;)o[r?i:++l]=e,e+=n;return o}var fBe=dBe,pBe=fBe,hBe=X4,aT=oG;function mBe(e){return function(t,n,r){return r&&typeof r!="number"&&hBe(t,n,r)&&(n=r=void 0),t=aT(t),n===void 0?(n=t,t=0):n=aT(n),r=r===void 0?t=PWe){var u=t?null:CWe(e);if(u)return MWe(u);o=!1,l=kWe,s=new _We}else s=t?[]:a;e:for(;++r-1}function hqe(e,t){var n=this.__data__,r=z2(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Yf.prototype.clear=cqe;Yf.prototype.delete=dqe;Yf.prototype.get=fqe;Yf.prototype.has=pqe;Yf.prototype.set=hqe;function Fc(e){var t=-1,n=e?e.length:0;for(this.clear();++t11))throw new Error("Invalid size '".concat(t.size,"' for diverging color scheme '").concat(t.scheme,"', must be between 3~11"));var s=Gu(Dv[t.scheme][t.size||11]),u=function(p){return s(r(p))};return u.scale=s,u}if(eUe(t.scheme)){if(t.size!==void 0&&(t.size<3||t.size>9))throw new Error("Invalid size '".concat(t.size,"' for sequential color scheme '").concat(t.scheme,"', must be between 3~9"));var c=Gu(Dv[t.scheme][t.size||9]),d=function(p){return c(r(p))};return d.scale=c,d}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return t}},mY=function(t,n){return ge.useMemo(function(){return hY(t,n)},[t,n])};function nUe(e,t){return oUe(e)||aUe(e,t)||rUe()}function rUe(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function aUe(e,t){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]"){var n=[],r=!0,l=!1,i=void 0;try{for(var o=e[Symbol.iterator](),a;!(r=(a=o.next()).done)&&(n.push(a.value),!(t&&n.length===t));r=!0);}catch(s){l=!0,i=s}finally{try{!r&&o.return!=null&&o.return()}finally{if(l)throw i}}return n}}function oUe(e){if(Array.isArray(e))return e}var Ev=function(t,n){if(typeof t=="function")return function(f){return t(f)};if(cY(t)){if(t.theme!==void 0){if(n===void 0)throw new Error("Unable to use color from theme as no theme was provided");var r=f1(n,t.theme);if(r===void 0)throw new Error("Color from theme is undefined at path: '".concat(t.theme,"'"));return function(){return r}}if(t.from!==void 0){var l=function(p){return f1(p,t.from)};if(Array.isArray(t.modifiers)){var i=[],o=!0,a=!1,s=void 0;try{for(var u=function(){var p=d.value,h=nUe(p,2),g=h[0],b=h[1];if(g==="brighter")i.push(function(v){return v.brighter(b)});else if(g==="darker")i.push(function(v){return v.darker(b)});else if(g==="opacity")i.push(function(v){return v.opacity=b,v});else throw new Error("Invalid color modifier: '".concat(g,"', must be one of: 'brighter', 'darker', 'opacity'"))},c=t.modifiers[Symbol.iterator](),d;!(o=(d=c.next()).done);o=!0)u()}catch(f){a=!0,s=f}finally{try{!o&&c.return!=null&&c.return()}finally{if(a)throw s}}return i.length===0?l:function(f){return i.reduce(function(p,h){return h(p)},dc(l(f))).toString()}}return l}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return t}},p1=function(t,n){return ge.useMemo(function(){return Ev(t,n)},[t,n])},bP=le.oneOfType([le.func,le.arrayOf(le.string),le.shape({scheme:le.oneOf(tUe).isRequired,size:le.number}),le.shape({datum:le.string.isRequired}),le.string]),iUe=le.oneOfType([le.func,le.string]),lT=le.oneOfType([le.string,le.func,le.shape({theme:le.string.isRequired}),le.shape({from:le.string.isRequired,modifiers:le.arrayOf(le.array)})]),lUe=GU,sUe=Dg;function uUe(e,t){return e&&lUe(e,t,sUe)}var cUe=uUe,dUe=Nf;function fUe(e,t){return function(n,r){if(n==null)return n;if(!dUe(n))return e(n,r);for(var l=n.length,i=t?l:-1,o=Object(n);(t?i--:++il?0:l+t),n=n>l?l:n,n<0&&(n+=l),l=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(l);++r1),i}),mGe(e,yGe(e),n),r&&(n=fGe(n,bGe|xGe|wGe,gGe));for(var l=t.length;l--;)pGe(n,t[l]);return n}),TGe=_Ge;const _Y=dr(TGe);var SGe=le.shape({match:le.oneOfType([le.func,le.object]).isRequired,type:le.oneOf(["circle","rect","dot"]).isRequired,noteX:le.oneOfType([le.number,le.shape({abs:le.number.isRequired})]).isRequired,noteY:le.oneOfType([le.number,le.shape({abs:le.number.isRequired})]).isRequired,noteWidth:le.number,noteTextOffset:le.number,note:le.oneOfType([le.node,le.func]).isRequired,offset:le.number}),h1={noteWidth:120,noteTextOffset:8,animate:!0,motionStiffness:90,motionDamping:13};function kGe(e){for(var t=1;t180?(_-=d,S-=d):S+=d,{points:[[b,v],[h,g],[S,k]],text:[_,w],angle:m+90}},TY=function(t){var n=t.items,r=t.annotations,l=t.getPosition,i=t.getDimensions;return ge.useMemo(function(){return PGe({items:n,annotations:r,getPosition:l,getDimensions:i})},[n,r,l,i])},DGe=function(t){var n=t.type,r=t.containerWidth,l=t.containerHeight,i=t.x,o=t.y,a=t.size,s=t.width,u=t.height,c=t.noteX,d=t.noteY,f=t.noteWidth,p=t.noteTextOffset;return ge.useMemo(function(){return AGe({type:n,containerWidth:r,containerHeight:l,x:i,y:o,size:a,width:s,height:u,noteX:c,noteY:d,noteWidth:f,noteTextOffset:p})},[n,r,l,i,o,a,s,u,c,d,f,p])};function EGe(e){for(var t=1;t0&&Ke.createElement("text",{x:n,y:r,style:EGe({},i.annotations.text,{strokeLinejoin:"round",strokeWidth:i.annotations.text.outlineWidth*2,stroke:i.annotations.text.outlineColor})},l),Ke.createElement("text",{x:n,y:r,style:_Y(i.annotations.text,["outlineWidth","outlineColor"])},l))});Km.displayName="AnnotationNote";Km.propTypes={datum:le.object.isRequired,x:le.number.isRequired,y:le.number.isRequired,note:le.oneOfType([le.node,le.func]).isRequired};Km.defaultProps={};function LGe(e){for(var t=1;t0&&Ke.createElement("circle",{cx:s.x,cy:s.y,r:s.size/2,style:TI({},l.annotations.outline,{fill:"none",strokeWidth:l.annotations.outline.strokeWidth+l.annotations.outline.outlineWidth*2,stroke:l.annotations.outline.outlineColor})}),Ke.createElement("circle",{cx:s.x,cy:s.y,r:s.size/2,style:l.annotations.outline}))}):Ke.createElement(Ke.Fragment,null,l.annotations.outline.outlineWidth>0&&Ke.createElement("circle",{cx:t,cy:n,r:r/2,style:TI({},l.annotations.outline,{fill:"none",strokeWidth:l.annotations.outline.strokeWidth+l.annotations.outline.outlineWidth*2,stroke:l.annotations.outline.outlineColor})}),Ke.createElement("circle",{cx:t,cy:n,r:r/2,style:l.annotations.outline}))});xP.displayName="CircleAnnotationOutline";xP.propTypes={x:le.number.isRequired,y:le.number.isRequired,size:le.number.isRequired};function SI(e){for(var t=1;t0&&Ke.createElement("circle",{cx:s.x,cy:s.y,r:s.size/2,style:SI({},l.annotations.outline,{fill:"none",strokeWidth:l.annotations.outline.outlineWidth*2,stroke:l.annotations.outline.outlineColor})}),Ke.createElement("circle",{cx:s.x,cy:s.y,r:s.size/2,style:l.annotations.symbol}))}):Ke.createElement(Ke.Fragment,null,l.annotations.outline.outlineWidth>0&&Ke.createElement("circle",{cx:t,cy:n,r:r/2,style:SI({},l.annotations.outline,{fill:"none",strokeWidth:l.annotations.outline.outlineWidth*2,stroke:l.annotations.outline.outlineColor})}),Ke.createElement("circle",{cx:t,cy:n,r:r/2,style:l.annotations.symbol}))});W2.displayName="DotAnnotationOutline";W2.propTypes={x:le.number.isRequired,y:le.number.isRequired,size:le.number.isRequired};W2.defaultProps={size:4};function kI(e){for(var t=1;t0&&Ke.createElement("rect",{x:u.x,y:u.y,width:u.width,height:u.height,style:kI({},i.annotations.outline,{fill:"none",strokeWidth:i.annotations.outline.strokeWidth+i.annotations.outline.outlineWidth*2,stroke:i.annotations.outline.outlineColor})}),Ke.createElement("rect",{x:u.x,y:u.y,width:u.width,height:u.height,style:i.annotations.outline}))}):Ke.createElement(Ke.Fragment,null,i.annotations.outline.outlineWidth>0&&Ke.createElement("rect",{x:t-r/2,y:n-l/2,width:r,height:l,style:kI({},i.annotations.outline,{fill:"none",strokeWidth:i.annotations.outline.strokeWidth+i.annotations.outline.outlineWidth*2,stroke:i.annotations.outline.outlineColor})}),Ke.createElement("rect",{x:t-r/2,y:n-l/2,width:r,height:l,style:i.annotations.outline}))});wP.displayName="RectAnnotationOutline";wP.propTypes={x:le.number.isRequired,y:le.number.isRequired,width:le.number.isRequired,height:le.number.isRequired};var Lg=ge.memo(function(e){var t=e.datum,n=e.type,r=e.containerWidth,l=e.containerHeight,i=e.x,o=e.y,a=e.size,s=e.width,u=e.height,c=e.noteX,d=e.noteY,f=e.noteWidth,p=e.noteTextOffset,h=e.note,g=Xo(),b=g.animate,v=g.springConfig,m=DGe({type:n,containerWidth:r,containerHeight:l,x:i,y:o,size:a,width:s,height:u,noteX:c,noteY:d,noteWidth:f,noteTextOffset:p});return Ke.createElement(Ke.Fragment,null,Ke.createElement(Zm,{points:m.points,isOutline:!0}),n==="circle"&&Ke.createElement(xP,{x:i,y:o,size:a}),n==="dot"&&Ke.createElement(W2,{x:i,y:o,size:a}),n==="rect"&&Ke.createElement(wP,{x:i,y:o,width:s,height:u}),Ke.createElement(Zm,{points:m.points}),!b&&Ke.createElement(Km,{x:m.text[0],y:m.text[1],note:h}),b&&Ke.createElement(cs,{style:{x:Bn(m.text[0],v),y:Bn(m.text[1],v)}},function(y){return Ke.createElement(Km,{datum:t,x:y.x,y:y.y,note:h})}))});Lg.displayName="Annotation";Lg.propTypes={datum:le.object.isRequired,type:le.oneOf(["circle","rect","dot"]).isRequired,containerWidth:le.number.isRequired,containerHeight:le.number.isRequired,x:le.number.isRequired,y:le.number.isRequired,size:le.number,width:le.number,height:le.number,noteX:le.oneOfType([le.number,le.shape({abs:le.number.isRequired})]).isRequired,noteY:le.oneOfType([le.number,le.shape({abs:le.number.isRequired})]).isRequired,noteWidth:le.number.isRequired,noteTextOffset:le.number.isRequired,note:le.oneOfType([le.node,le.func]).isRequired};Lg.defaultProps={noteWidth:h1.noteWidth,noteTextOffset:h1.noteTextOffset};var q2=function(t,n,r,l){return J4().rangeRound(r).domain(t.map(n)).padding(l)};function CI(e){return BGe(e)||zGe(e)||jGe()}function jGe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function zGe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function BGe(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&(s=0)),fc().rangeRound(i).domain([s,a])},WGe=function(t){var n=t.data,r=t.getIndex,l=t.keys,i=t.minValue,o=t.maxValue,a=t.reverse,s=t.width,u=t.height,c=t.getColor,d=t.padding,f=d===void 0?0:d,p=t.innerPadding,h=p===void 0?0:p,g=q2(n,r,[0,s],f),b=a?[0,u]:[u,0],v=SY(n,l,i,o,b),m=(g.bandwidth()-h*(l.length-1))/l.length,y=v(0),x=function(k){return k>0?v(k):y},_=function(k,C){return k>0?y-C:v(k)-y};a&&(x=function(k){return k<0?v(k):y},_=function(k,C){return k<0?y-C:v(k)-y});var w=[];return m>0&&l.forEach(function(S,k){KG(g.domain().length).forEach(function(C){var T=g(r(n[C]))+m*k+h*k,M=x(n[C][S]),O=_(n[C][S],M);if(m>0&&O>0){var D={id:S,value:n[C][S],index:C,indexValue:r(n[C]),data:n[C]};w.push({key:"".concat(S,".").concat(D.indexValue),data:D,x:T,y:M,width:m,height:O,color:c(D)})}})}),{xScale:g,yScale:v,bars:w}},qGe=function(t){var n=t.data,r=t.getIndex,l=t.keys,i=t.minValue,o=t.maxValue,a=t.reverse,s=t.width,u=t.height,c=t.getColor,d=t.padding,f=d===void 0?0:d,p=t.innerPadding,h=p===void 0?0:p,g=a?[s,0]:[0,s],b=SY(n,l,i,o,g),v=q2(n,r,[u,0],f),m=(v.bandwidth()-h*(l.length-1))/l.length,y=b(0),x=function(k){return k>0?y:b(k)},_=function(k,C){return k>0?b(k)-y:y-C};a&&(x=function(k){return k<0?y:b(k)},_=function(k,C){return k<0?b(k)-y:y-C});var w=[];return m>0&&l.forEach(function(S,k){KG(v.domain().length).forEach(function(C){var T=x(n[C][S]),M=v(r(n[C]))+m*k+h*k,O=_(n[C][S],T);if(O>0){var D={id:S,value:n[C][S],index:C,indexValue:r(n[C]),data:n[C]};w.push({key:"".concat(S,".").concat(D.indexValue),data:D,x:T,y:M,width:O,height:m,color:c(D)})}})}),{xScale:b,yScale:v,bars:w}},kY=function(t){return t.layout==="vertical"?WGe(t):qGe(t)},CY=function(t,n,r,l){var i=SBe(t,2),o=n;o==="auto"&&(o=YG(i));var a=r;return a==="auto"&&(a=XG(i)),fc().rangeRound(l).domain([o,a])},UGe=function(t){var n=t.data,r=t.getIndex,l=t.keys,i=t.minValue,o=t.maxValue,a=t.reverse,s=t.width,u=t.height,c=t.getColor,d=t.padding,f=d===void 0?0:d,p=t.innerPadding,h=p===void 0?0:p,g=nV().keys(l).offset(k6)(n),b=q2(n,r,[0,s],f),v=a?[0,u]:[u,0],m=CY(g,i,o,v),y=[],x=b.bandwidth(),_=function(k){return m(k[1])},w=function(k,C){return m(k[0])-C};return a&&(_=function(k){return m(k[0])},w=function(k,C){return m(k[1])-C}),x>0&&g.forEach(function(S){b.domain().forEach(function(k,C){var T=S[C],M=b(r(T.data)),O=_(T),D=w(T,O);if(h>0&&(O+=h*.5,D-=h),D>0){var P={id:S.key,value:T.data[S.key],index:C,indexValue:k,data:T.data};y.push({key:"".concat(S.key,".").concat(k),data:P,x:M,y:O,width:x,height:D,color:c(P)})}})}),{xScale:b,yScale:m,bars:y}},HGe=function(t){var n=t.data,r=t.getIndex,l=t.keys,i=t.minValue,o=t.maxValue,a=t.reverse,s=t.width,u=t.height,c=t.getColor,d=t.padding,f=d===void 0?0:d,p=t.innerPadding,h=p===void 0?0:p,g=nV().keys(l).offset(k6)(n),b=a?[s,0]:[0,s],v=CY(g,i,o,b),m=q2(n,r,[u,0],f),y=[],x=m.bandwidth(),_=function(k){return v(k[0])},w=function(k,C){return v(k[1])-C};return a&&(_=function(k){return v(k[1])},w=function(k,C){return v(k[0])-C}),x>0&&g.forEach(function(S){m.domain().forEach(function(k,C){var T=S[C],M=m(r(T.data)),O={id:S.key,value:T.data[S.key],index:C,indexValue:k,data:T.data},D=_(T),P=w(T,D);h>0&&(D+=h*.5,P-=h),P>0&&y.push({key:"".concat(S.key,".").concat(k),data:O,x:D,y:M,width:P,height:x,color:c(O)})})}),{xScale:v,yScale:m,bars:y}},MY=function(t){return t.layout==="vertical"?UGe(t):HGe(t)},VGe=function(t,n,r,l,i){var o=Ym(t.map(function(a){return{id:a.data.id,label:a.data.id,color:a.color,fill:a.data.fill}}),function(a){var s=a.id;return s});return(n==="vertical"&&l==="stacked"&&r==="column"&&i!==!0||n==="horizontal"&&l==="stacked"&&i===!0)&&o.reverse(),o},GGe=function(t){return Ym(t.map(function(n){return{id:n.data.indexValue,label:n.data.indexValue,color:n.color,fill:n.data.fill}}),function(n){var r=n.id;return r})},YGe=function(t){var n=t.from,r=t.bars,l=t.layout,i=t.direction,o=t.groupMode,a=t.reverse;return n==="indexes"?GGe(r):VGe(r,l,i,o,a)};function rC(e){for(var t=1;t0&&ce0&&we0&&(this.ctx.lineWidth=C.grid.line.strokeWidth,this.ctx.strokeStyle=C.grid.line.stroke,P&&mf(this.ctx,{width:c,height:d,scale:j.xScale,axis:"x",values:E}),I&&mf(this.ctx,{width:c,height:d,scale:j.yScale,axis:"y",values:A})),this.ctx.strokeStyle="#dddddd";var B=Ym(j.bars.map(function(N){return{id:N.data.id,label:N.data.id,color:N.color,fill:N.data.fill}}).reverse(),function(N){var R=N.id;return R}),z=Ym(j.bars.map(function(N){return{id:N.data.indexValue,label:N.data.indexValue,color:N.color,fill:N.data.fill}}),function(N){var R=N.id;return R});D.forEach(function(N){var R;if(N.dataFrom==="keys"?R=B:N.dataFrom==="indexes"&&(R=z),R===void 0)return null;pP(l.ctx,PI({},N,{data:R,containerWidth:c,containerHeight:d,itemTextColor:"#999",symbolSize:16,theme:C}))}),Y6(this.ctx,{xScale:j.xScale,yScale:j.yScale,width:c,height:d,top:_,right:w,bottom:S,left:k,theme:C}),j.bars.forEach(function(N){var R=N.x,q=N.y,Y=N.color,L=N.width,W=N.height;l.ctx.fillStyle=Y,M>0&&(l.ctx.strokeStyle=O(N),l.ctx.lineWidth=M),l.ctx.beginPath(),l.ctx.rect(R,q,L,W),l.ctx.fill(),M>0&&l.ctx.stroke()})}},{key:"render",value:function(){var r=this,l=this.props,i=l.outerWidth,o=l.outerHeight,a=l.pixelRatio,s=l.isInteractive,u=l.theme;return Ke.createElement(x2,{isInteractive:s,theme:u,animate:!1},function(c){var d=c.showTooltip,f=c.hideTooltip;return Ke.createElement("canvas",{ref:function(h){r.surface=h},width:i*a,height:o*a,style:{width:i,height:o},onMouseEnter:r.handleMouseHover(d,f),onMouseMove:r.handleMouseHover(d,f),onMouseLeave:r.handleMouseLeave(f),onClick:r.handleClick})})}}]),t}(ge.Component);RY.propTypes=OY;var pYe=M6("BarCanvas")(AY(RY));function lC(){return lC=Object.assign||function(e){for(var t=1;t{const t=v5();return Te.jsx(ka,{sx:{maxWidth:200,height:50},children:Te.jsx(hYe,{data:e.data[e.xField].map((n,r)=>({id:n,x:e.data[e.yField][r]})),theme:t,margin:{top:3,right:3,bottom:3,left:3},indexBy:"id",keys:["x"],colors:[e.color],axisTop:null,axisRight:null,enableGridX:!1,enableGridY:!1})})},gYe=mYe;var vYe=JG;function yYe(e){return e&&e.length?vYe(e):[]}var bYe=yYe;const DI=dr(bYe);var xYe=gY,wYe=Nf;function _Ye(e,t){var n=-1,r=wYe(e)?Array(e.length):[];return xYe(e,function(l,i,o){r[++n]=t(l,i,o)}),r}var TYe=_Ye;function SYe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var kYe=SYe,EI=zf;function CYe(e,t){if(e!==t){var n=e!==void 0,r=e===null,l=e===e,i=EI(e),o=t!==void 0,a=t===null,s=t===t,u=EI(t);if(!a&&!u&&!i&&e>t||i&&o&&s&&!a&&!u||r&&o&&s||!n&&s||!l)return 1;if(!r&&!i&&!u&&e=a)return s;var u=n[r];return s*(u=="desc"?-1:1)}}return e.index-t.index}var AYe=OYe,sT=Ox,DYe=Mg,EYe=hP,RYe=TYe,LYe=kYe,IYe=Ff,$Ye=AYe,NYe=Dc,FYe=Po;function jYe(e,t,n){t.length?t=sT(t,function(i){return FYe(i)?function(o){return DYe(o,i.length===1?i[0]:i)}:i}):t=[NYe];var r=-1;t=sT(t,IYe(EYe));var l=RYe(e,function(i,o,a){var s=sT(t,function(u){return u(i)});return{criteria:s,index:++r,value:i}});return LYe(l,function(i,o){return $Ye(i,o,n)})}var zYe=jYe,BYe=$6,WYe=zYe,qYe=Px,RI=X4,UYe=qYe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&RI(e,t[0],t[1])?t=[]:n>2&&RI(t[0],t[1],t[2])&&(t=[t[0]]),WYe(e,BYe(t,1),[])}),HYe=UYe;const VYe=dr(HYe);var GYe=xs,YYe=hi,XYe="[object Date]";function KYe(e){return YYe(e)&&GYe(e)==XYe}var ZYe=KYe,QYe=ZYe,JYe=Ff,LI=Mx,II=LI&&LI.isDate,eXe=II?JYe(II):QYe,tXe=eXe;const nXe=dr(tXe);var rXe=function(t,n,r,l){var i=t.axis,o=t.min,a=o===void 0?0:o,s=t.max,u=s===void 0?"auto":s,c=t.stacked,d=c===void 0?!1:c,f=t.reverse,p=f===void 0?!1:f,h=n[i],g=i==="x"?r:l,b=a;a==="auto"&&(b=d===!0?h.minStacked:h.min);var v=u;u==="auto"&&(v=d===!0?h.maxStacked:h.max);var m=fc().rangeRound(i==="x"?[0,g]:[g,0]);return p===!0?m.domain([v,b]):m.domain([b,v]),m.type="linear",m.stacked=d,m},aXe={type:le.oneOf(["linear"]).isRequired,min:le.oneOfType([le.oneOf(["auto"]),le.number]),max:le.oneOfType([le.oneOf(["auto"]),le.number]),stacked:le.bool,reverse:le.bool},oXe=function(t,n,r,l){var i=t.axis,o=t.base,a=o===void 0?10:o,s=t.min,u=s===void 0?"auto":s,c=t.max,d=c===void 0?"auto":c,f=n[i],p=i==="x"?r:l,h=f.all.some(function(x){return x===0}),g,b=!1;if(f.all.forEach(function(x){b!==!0&&(g===void 0?g=Math.sign(x):Math.sign(x)!==g&&(b=!0))}),h||b)throw new Error(["a log scale domain must be strictly-positive or strictly-negative,","and must not include or cross zero."].join(` -`));var v=u;u==="auto"&&(v=f.min);var m=d;d==="auto"&&(m=f.max);var y=TH().domain([v,m]).rangeRound(i==="x"?[0,p]:[p,0]).base(a).nice();return y.type="log",y},iXe={type:le.oneOf(["log"]).isRequired,base:le.number,min:le.oneOfType([le.oneOf(["auto"]),le.number]),max:le.oneOfType([le.oneOf(["auto"]),le.number])},lXe=function(t,n,r,l){var i=t.axis,o=n[i],a=i==="x"?r:l,s=m8e().range([0,a]).domain(o.all);return s.type="point",s},sXe={type:le.oneOf(["point"]).isRequired},Vl;function Cu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _P="millisecond",LY="second",IY="minute",$Y="hour",NY="day",FY="month",jY="year",uXe=[_P,LY,IY,$Y,NY,FY,jY],nd=[function(e){return e.setMilliseconds(0)},function(e){return e.setSeconds(0)},function(e){return e.setMinutes(0)},function(e){return e.setHours(0)},function(e){return e.setDate(1)},function(e){return e.setMonth(0)}],cXe=(Vl={},Cu(Vl,_P,[]),Cu(Vl,LY,nd.slice(0,1)),Cu(Vl,IY,nd.slice(0,2)),Cu(Vl,$Y,nd.slice(0,3)),Cu(Vl,NY,nd.slice(0,4)),Cu(Vl,FY,nd.slice(0,5)),Cu(Vl,jY,nd.slice(0,6)),Vl),dXe=function(t){return function(n){return cXe[t].forEach(function(r){r(n)}),n}},zY=function(t){var n=t.format,r=n===void 0?"native":n,l=t.precision,i=l===void 0?"millisecond":l,o=t.useUTC,a=o===void 0?!0:o,s=dXe(i);if(r==="native")return function(c){return s(c)};var u=a?PV(r):MV(r);return function(c){return s(u(c))}},fXe=function(t,n,r,l){var i=t.axis,o=t.format,a=o===void 0?"native":o,s=t.precision,u=s===void 0?_P:s,c=t.min,d=c===void 0?"auto":c,f=t.max,p=f===void 0?"auto":f,h=t.useUTC,g=h===void 0?!0:h,b=n[i],v=i==="x"?r:l,m=zY({format:a,precision:u,useUTC:g}),y=d;d==="auto"?y=b.min:a!=="native"&&(y=m(d));var x=p;p==="auto"?x=b.max:a!=="native"&&(x=m(p));var _=g?S7e():T7e();return _.domain([y,x]).range([0,v]),_.type="time",_.useUTC=g,_},pXe={type:le.oneOf(["time"]).isRequired,format:le.string,precision:le.oneOf(uXe)};function g1(e){return gXe(e)||mXe(e)||hXe()}function hXe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function mXe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function gXe(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t3&&arguments[3]!==void 0?arguments[3]:{},i=l.getValue,o=i===void 0?function(p){return p.data[n]}:i,a=l.setValue,s=a===void 0?function(p,h){p.data[n]=h}:a;if(r.type==="linear")t.forEach(function(p){p.data.forEach(function(h){s(h,o(h)===null?null:parseFloat(o(h)))})});else if(r.type==="time"&&r.format!=="native"){var u=zY(r);t.forEach(function(p){p.data.forEach(function(h){s(h,o(h)===null?null:u(o(h)))})})}var c=[];t.forEach(function(p){p.data.forEach(function(h){c.push(o(h))})});var d,f;return r.type==="linear"?(c=DI(c),c=VYe(c,function(p){return p}),d=Math.min.apply(Math,g1(c)),f=Math.max.apply(Math,g1(c))):r.type==="time"?(c=Ym(c,function(p){return p.getTime()}),c=c.slice(0).sort(function(p,h){return h-p}).reverse(),d=c[0],f=In(c)):(c=DI(c),d=c[0],f=In(c)),{all:c,min:d,max:f}},WY=function(t,n,r,l){var i=yXe(t),o=[];r[i].all.forEach(function(a){var s=nXe(a)?xXe:bXe,u=[];l.forEach(function(c){var d=c.data.find(function(g){return s(g.data[i],a)}),f=null,p=null;if(d!==void 0){if(f=d.data[t],f!==null){var h=In(u);h===void 0?p=f:h!==null&&(p=h+f)}d.data["".concat(t,"Stacked")]=p}u.push(p),o.push(p)})}),o=o.filter(function(a){return a!==null}),r[t].minStacked=Math.min.apply(Math,g1(o)),r[t].maxStacked=Math.max.apply(Math,g1(o))},_Xe=function(t,n,r){return WY("x",t,n,r)},TXe=function(t,n,r){return WY("y",t,n,r)},v1=le.oneOfType([le.shape(aXe),le.shape(sXe),le.shape(pXe),le.shape(iXe)]);const FI=Math.pow(2,-52),H0=new Uint32Array(512);class y1{static from(t,n=PXe,r=OXe){const l=t.length,i=new Float64Array(l*2);for(let o=0;o>1;if(n>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const r=Math.max(2*n-5,0);this._triangles=new Uint32Array(r*3),this._halfedges=new Int32Array(r*3),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:r,_hullTri:l,_hullHash:i}=this,o=t.length>>1;let a=1/0,s=1/0,u=-1/0,c=-1/0;for(let T=0;Tu&&(u=M),O>c&&(c=O),this._ids[T]=T}const d=(a+u)/2,f=(s+c)/2;let p=1/0,h,g,b;for(let T=0;T0&&(g=T,p=M)}let y=t[2*g],x=t[2*g+1],_=1/0;for(let T=0;TD&&(T[M++]=P,D=this._dists[P])}this.hull=T.subarray(0,M),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(V0(v,m,y,x,w,S)){const T=g,M=y,O=x;g=b,y=w,x=S,b=T,w=M,S=O}const k=MXe(v,m,y,x,w,S);this._cx=k.x,this._cy=k.y;for(let T=0;T0&&Math.abs(P-M)<=FI&&Math.abs(E-O)<=FI||(M=P,O=E,D===h||D===g||D===b))continue;let I=0;for(let z=0,N=this._hashKey(P,E);z0?3-n:1+n)/4}function uT(e,t,n,r){const l=e-n,i=t-r;return l*l+i*i}function cT(e,t,n,r,l,i){const o=(r-t)*(l-e),a=(n-e)*(i-t);return Math.abs(o-a)>=33306690738754716e-32*Math.abs(o+a)?o-a:0}function V0(e,t,n,r,l,i){return(cT(l,i,e,t,n,r)||cT(e,t,n,r,l,i)||cT(n,r,l,i,e,t))<0}function kXe(e,t,n,r,l,i,o,a){const s=e-o,u=t-a,c=n-o,d=r-a,f=l-o,p=i-a,h=s*s+u*u,g=c*c+d*d,b=f*f+p*p;return s*(d*b-g*p)-u*(c*b-g*f)+h*(c*p-d*f)<0}function CXe(e,t,n,r,l,i){const o=n-e,a=r-t,s=l-e,u=i-t,c=o*o+a*a,d=s*s+u*u,f=.5/(o*u-a*s),p=(u*c-a*d)*f,h=(o*d-s*c)*f;return p*p+h*h}function MXe(e,t,n,r,l,i){const o=n-e,a=r-t,s=l-e,u=i-t,c=o*o+a*a,d=s*s+u*u,f=.5/(o*u-a*s),p=e+(u*c-a*d)*f,h=t+(o*d-s*c)*f;return{x:p,y:h}}function Sd(e,t,n,r){if(r-n<=20)for(let l=n+1;l<=r;l++){const i=e[l],o=t[i];let a=l-1;for(;a>=n&&t[e[a]]>o;)e[a+1]=e[a--];e[a+1]=i}else{const l=n+r>>1;let i=n+1,o=r;vh(e,l,i),t[e[n]]>t[e[r]]&&vh(e,n,r),t[e[i]]>t[e[r]]&&vh(e,i,r),t[e[n]]>t[e[i]]&&vh(e,n,i);const a=e[i],s=t[a];for(;;){do i++;while(t[e[i]]s);if(o=o-n?(Sd(e,t,i,r),Sd(e,t,n,o-1)):(Sd(e,t,n,o-1),Sd(e,t,i,r))}}function vh(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function PXe(e){return e[0]}function OXe(e){return e[1]}const jI=1e-6;class Ku{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,r){t=+t,n=+n,r=+r;const l=t+r,i=n;if(r<0)throw new Error("negative radius");this._x1===null?this._+=`M${l},${i}`:(Math.abs(this._x1-l)>jI||Math.abs(this._y1-i)>jI)&&(this._+="L"+l+","+i),r&&(this._+=`A${r},${r},0,1,1,${t-r},${n}A${r},${r},0,1,1,${this._x1=l},${this._y1=i}`)}rect(t,n,r,l){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+r}v${+l}h${-r}Z`}value(){return this._||null}}class sC{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}let AXe=class{constructor(t,[n,r,l,i]=[0,0,960,500]){if(!((l=+l)>=(n=+n))||!((i=+i)>=(r=+r)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=l,this.xmin=n,this.ymax=i,this.ymin=r,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:r},vectors:l}=this,i=this.circumcenters=this._circumcenters.subarray(0,r.length/3*2);for(let p=0,h=0,g=r.length,b,v;p1;)i-=2;for(let o=2;o4)for(let o=0;o0){if(n>=this.ymax)return null;(o=(this.ymax-n)/l)0){if(t>=this.xmax)return null;(o=(this.xmax-t)/r)this.xmax?2:0)|(nthis.ymax?8:0)}};const DXe=2*Math.PI,rd=Math.pow;function EXe(e){return e[0]}function RXe(e){return e[1]}function LXe(e){const{triangles:t,coords:n}=e;for(let r=0;r1e-10)return!1}return!0}function IXe(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class U2{static from(t,n=EXe,r=RXe,l){return new U2("length"in t?$Xe(t,n,r,l):Float64Array.from(NXe(t,n,r,l)))}constructor(t){this._delaunator=new y1(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&LXe(t)){this.collinear=Int32Array.from({length:n.length/2},(f,p)=>p).sort((f,p)=>n[2*f]-n[2*p]||n[2*f+1]-n[2*p+1]);const s=this.collinear[0],u=this.collinear[this.collinear.length-1],c=[n[2*s],n[2*s+1],n[2*u],n[2*u+1]],d=1e-8*Math.hypot(c[3]-c[1],c[2]-c[0]);for(let f=0,p=n.length/2;f0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=l[0],this.triangles[1]=l[1],this.triangles[2]=l[1],o[l[0]]=1,l.length===2&&(o[l[1]]=0))}voronoi(t){return new AXe(this,t)}*neighbors(t){const{inedges:n,hull:r,_hullIndex:l,halfedges:i,triangles:o,collinear:a}=this;if(a){const d=a.indexOf(t);d>0&&(yield a[d-1]),d=0&&i!==r&&i!==l;)r=i;return i}_step(t,n,r){const{inedges:l,hull:i,_hullIndex:o,halfedges:a,triangles:s,points:u}=this;if(l[t]===-1||!u.length)return(t+1)%(u.length>>1);let c=t,d=rd(n-u[t*2],2)+rd(r-u[t*2+1],2);const f=l[t];let p=f;do{let h=s[p];const g=rd(n-u[h*2],2)+rd(r-u[h*2+1],2);if(g0&&(de.lineWidth=H.grid.line.strokeWidth,de.strokeStyle=H.grid.line.stroke,S&&mf(de,{width:q,height:Y,scale:ne,axis:"x",values:k}),C&&mf(de,{width:q,height:Y,scale:ae,axis:"y",values:T})),_e==="axes"&&Y6(de,{xScale:ne,yScale:ae,width:q,height:Y,top:M,right:O,bottom:D,left:P,theme:H}),_e==="areas"&&g===!0&&(de.save(),de.globalAlpha=v,X.context(de),K.forEach(function(me){de.fillStyle=me.color,de.beginPath(),X(me.data.map(function(xe){return xe.position})),de.fill()}),de.restore()),_e==="lines"&&(V.context(de),K.forEach(function(me){de.strokeStyle=me.color,de.lineWidth=h,de.beginPath(),V(me.data.map(function(xe){return xe.position})),de.stroke()})),_e==="points"&&m===!0&&y>0&&ie.forEach(function(me){de.fillStyle=me.color,de.beginPath(),de.arc(me.x,me.y,y/2,0,2*Math.PI),de.fill(),_>0&&(de.strokeStyle=me.borderColor,de.lineWidth=_,de.stroke())}),_e==="mesh"&&A===!0&&(UY(de,ke),ee&&HY(de,ke,ee.index)),_e==="legends"){var ue=K.map(function(me){return{id:me.id,label:me.id,color:me.color}}).reverse();E.forEach(function(me){pP(de,wKe({},me,{data:me.data||ue,containerWidth:q,containerHeight:Y,theme:H}))})}})},[z,L,W,f,H,V,K,ne,ae,S,k,C,T,M,O,D,P,E,ie,m,y,ee]);var Ce=ge.useCallback(function(de){var _e=Gm(z.current,de),ue=UI(_e,2),me=ue[0],xe=ue[1];if(!W6(R.left,R.top,q,Y,me,xe))return null;var ye=pe.find(me-R.left,xe-R.top);return ie[ye]},[z,R,q,Y,pe]),Oe=Df(),Pe=Oe.showTooltipFromEvent,ce=Oe.hideTooltip,we=ge.useCallback(function(de){var _e=Ce(de);U(_e),_e?Pe(Ke.createElement(B,{point:_e}),de):ce()},[Ce,U,Pe,ce,B]),Z=ge.useCallback(function(de){ce(),U(null),ee&&F&&F(ee,de)},[ce,U,F]),re=ge.useCallback(function(de){if(j){var _e=Ce(de);_e&&j(_e,de)}},[Ce,j]);return Ke.createElement("canvas",{ref:z,width:L*i,height:W*i,style:{width:L,height:W,cursor:I?"auto":"normal"},onMouseEnter:I?we:void 0,onMouseMove:I?we:void 0,onMouseLeave:I?Z:void 0,onClick:I?re:void 0})};CP.propTypes=KXe;CP.defaultProps=ZXe;var CKe=k2(CP);function dC(){return dC=Object.assign||function(e){for(var t=1;t{const t=v5();return Te.jsx(ka,{sx:{maxWidth:200,height:50},children:Te.jsx(MKe,{data:[{id:"1",data:e.data[e.xField].map((n,r)=>({x:n,y:e.data[e.yField][r]}))}],theme:t,margin:{top:0,right:0,bottom:0,left:0},xScale:{type:"linear",min:0,max:25},axisTop:null,colors:[e.color],axisRight:null,enableGridX:!1,enableGridY:!1})})},OKe=PKe;function AKe(e){for(var t=1;t{const t=v5();return Te.jsx(ka,{sx:{maxWidth:200,height:50},children:Te.jsx(eZe,{data:[{id:"1",data:e.data[e.xField].map((n,r)=>({x:n,y:e.data[e.yField][r]}))}],theme:t,margin:{top:3,right:3,bottom:3,left:3},xScale:{type:"linear",min:0,max:1e3},nodeSize:4,colors:[e.color],useMesh:!1,axisTop:null,axisRight:null,enableGridX:!1,enableGridY:!1})})},iZe=oZe,lZe=new Map([["line",(e,t)=>t[e.field]?Te.jsx(OKe,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):Te.jsx("div",{})],["scatter",(e,t)=>t[e.field]?Te.jsx(iZe,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):Te.jsx("div",{})],["histogram",(e,t)=>t[e.field]?Te.jsx(gYe,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):Te.jsx("div",{})]]),GI=e=>e.map(t=>({def:t,gen:lZe.get(t.type??"string")})).map(({def:t,gen:n})=>n?{...t,type:void 0,render:r=>n(t,r)}:{...t,sorting:!0,defaultSort:t.sort,type:"string"}),sZe=e=>{const[t,n]=ge.useState({open:!1,anchorEl:void 0});return Te.jsxs(ka,{sx:{width:50},onClick:r=>n(l=>({open:!l.open,anchorEl:r.currentTarget})),children:[Te.jsx(BSe,{}),Te.jsx(Ab,{open:t.open,anchorEl:t.anchorEl,anchorOrigin:{horizontal:"left",vertical:"bottom"},children:Te.jsx(mr,{p:1,children:e.longText})})]})},uZe=e=>{const{columns:t,data:n}=e,r={search:!0,showTitle:!1,pageSize:e.rowsPerPage??5,detailPanelColumnStyle:{minWidth:42},emptyRowsWhenPaging:!1};return Te.jsx(Ke.Fragment,{children:Te.jsx(zSe,{columns:e.showInfoColumn??!1?[...GI(t),{title:"Info",render:l=>{var i,o,a;return Te.jsx(Ke.Fragment,{children:(i=l.details)!=null&&i.insights?Te.jsx(sZe,{longText:`${(o=l.details)==null?void 0:o.insights[0].title}: ${(a=l.details)==null?void 0:a.insights[0].text}`}):Te.jsx("div",{})})},width:50}]:[...GI(t)],data:n,detailPanel:({rowData:l})=>l.graphId?Te.jsx(USe,{graphId:l.graphId,widgetSize:e.widgetSize}):l.details?Te.jsx(O4,{details:l.details,widgetSize:e.widgetSize}):null,options:r})})},YI=e=>Te.jsxs("div",{children:[Te.jsx(mr,{align:"center",fontWeight:500,sx:{fontSize:36},children:e.value}),Te.jsx(mr,{align:"center",variant:"h5",fontWeight:500,children:e.label})]}),cZe=e=>Te.jsx(Ke.Fragment,{children:e.counters.length===1?Te.jsx(YI,{...e.counters[0]}):Te.jsx(hr,{container:!0,spacing:1,direction:"row",alignItems:"center",children:e.counters.map(t=>Te.jsx(hr,{item:!0,xs:!0,component:ka,height:"100%",children:Te.jsx(ka,{children:Te.jsx(YI,{...t})})},t.label+t.value))})}),dZe=e=>Te.jsxs("div",{children:[Te.jsxs(ka,{display:"flex",alignItems:"center",children:[Te.jsx(ka,{width:"100%",mr:1,children:Te.jsx(Qz,{variant:"determinate",value:e.value/e.maxValue*100})}),Te.jsx(ka,{minWidth:35,children:Te.jsx(mr,{variant:"body2",color:"textSecondary",children:`${Math.round(e.value/e.maxValue*100)}%`})})]}),Te.jsx(ka,{width:"100%",children:Te.jsx(mr,{variant:"body2",color:"textSecondary",children:e.details??""})})]}),fZe=kr(Te.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLessSharp"),pZe=kr(Te.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMoreSharp"),hZe=e=>{var i,o,a,s;const[t,n]=ge.useState(!1),l=hg()==="dark"?{template:{...Rd,layout:{...Rd.layout,colorway:((a=(o=(i=e.graph)==null?void 0:i.layout.template)==null?void 0:o.layout)==null?void 0:a.colorway)||((s=Rd.layout)==null?void 0:s.colorway)}}}:void 0;return Te.jsx(Ke.Fragment,{children:Te.jsxs(hr,{container:!0,spacing:2,justifyContent:"center",alignItems:"center",children:[Te.jsxs(hr,{item:!0,xs:2,children:[Te.jsx(mr,{variant:"h5",children:e.header}),Te.jsx(mr,{variant:"subtitle1",children:e.description})]}),Te.jsx(hr,{item:!0,xs:e.graph===void 0?10:5,children:Te.jsxs(h5,{children:[Te.jsx(g5,{children:Te.jsxs(Cm,{children:[Te.jsx(Mi,{}),e.metricsValuesHeaders.map(u=>Te.jsx(Mi,{children:u}))]})}),Te.jsx(m5,{children:e.metrics.map(u=>Te.jsxs(Cm,{children:[Te.jsx(Mi,{children:u.label}),u.values.map(c=>Te.jsx(Mi,{children:c}))]}))})]})}),e.graph===void 0?Te.jsx(Te.Fragment,{}):Te.jsx(hr,{item:!0,xs:5,children:Te.jsx(MB,{data:e.graph.data,layout:{...e.graph.layout,...l,title:void 0},config:{responsive:!0},style:{width:"100%",minHeight:150+100*(1+e.widgetSize/2),maxHeight:250}})}),e.details===void 0||e.details.parts.length===0?Te.jsx(Te.Fragment,{}):Te.jsxs(Te.Fragment,{children:[Te.jsx(hr,{item:!0,xs:12,children:Te.jsx(tl,{variant:"outlined",startIcon:t?Te.jsx(fZe,{}):Te.jsx(pZe,{}),onClick:()=>n(u=>!u),children:"Details"})}),Te.jsx(hr,{item:!0,xs:12,children:Te.jsx(wb,{in:t,mountOnEnter:!0,unmountOnExit:!0,children:Te.jsx(O4,{details:e.details,widgetSize:e.widgetSize})})})]})]})})},mZe=e=>Te.jsx(M4,{tabs:e.graphs.map(t=>({title:t.title,tab:Te.jsx(Db,{widgetSize:e.widgetSize,data:t.graph.data,layout:t.graph.layout})}))}),gZe=e=>Te.jsx(M4,{tabs:e.tabs.map(t=>({title:t.title,tab:Ng(`${e.id}1`,t.widget)}))}),vZe=e=>Te.jsx(Ide,{children:Te.jsxs(h5,{sx:{minWidth:650},size:"small","aria-label":"a dense table",children:[Te.jsx(g5,{children:Te.jsxs(Cm,{children:[Te.jsx(Mi,{children:e.header[0]},-1),e.header.slice(1).map(t=>Te.jsx(Mi,{align:"right",children:t},t))]})}),Te.jsx(m5,{children:e.data.map(t=>Te.jsxs(Cm,{children:[Te.jsx(Mi,{component:"th",scope:"row",children:t[0]},-1),t.slice(1).map(n=>Te.jsx(Mi,{align:"right",children:n},n))]},t[0]))})]})});function yZe(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const bZe=/[ \t\n\f\r]/g;function xZe(e){return typeof e=="object"?e.type==="text"?XI(e.value):!1:XI(e)}function XI(e){return e.replace(bZe,"")===""}class Ig{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Ig.prototype.property={};Ig.prototype.normal={};Ig.prototype.space=null;function gX(e,t){const n={},r={};let l=-1;for(;++l4&&n.slice(0,4)==="data"&&kZe.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(ZI,OZe);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!ZI.test(i)){let o=i.replace(CZe,PZe);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}l=OP}return new l(r,t)}function PZe(e){return"-"+e.toLowerCase()}function OZe(e){return e.charAt(1).toUpperCase()}const AZe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},DZe=gX([bX,yX,_X,TX,TZe],"html"),SX=gX([bX,yX,_X,TX,SZe],"svg");function EZe(e){return e.join(" ").trim()}var AP={exports:{}},QI=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,RZe=/\n/g,LZe=/^\s*/,IZe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,$Ze=/^:\s*/,NZe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,FZe=/^[;\s]*/,jZe=/^\s+|\s+$/g,zZe=` -`,JI="/",e$="*",Fu="",BZe="comment",WZe="declaration",qZe=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function l(h){var g=h.match(RZe);g&&(n+=g.length);var b=h.lastIndexOf(zZe);r=~b?h.length-b:r+h.length}function i(){var h={line:n,column:r};return function(g){return g.position=new o(h),u(),g}}function o(h){this.start=h,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function a(h){var g=new Error(t.source+":"+n+":"+r+": "+h);if(g.reason=h,g.filename=t.source,g.line=n,g.column=r,g.source=e,!t.silent)throw g}function s(h){var g=h.exec(e);if(g){var b=g[0];return l(b),e=e.slice(b.length),g}}function u(){s(LZe)}function c(h){var g;for(h=h||[];g=d();)g!==!1&&h.push(g);return h}function d(){var h=i();if(!(JI!=e.charAt(0)||e$!=e.charAt(1))){for(var g=2;Fu!=e.charAt(g)&&(e$!=e.charAt(g)||JI!=e.charAt(g+1));)++g;if(g+=2,Fu===e.charAt(g-1))return a("End of comment missing");var b=e.slice(2,g-2);return r+=2,l(b),e=e.slice(g),r+=2,h({type:BZe,comment:b})}}function f(){var h=i(),g=s(IZe);if(g){if(d(),!s($Ze))return a("property missing ':'");var b=s(NZe),v=h({type:WZe,property:t$(g[0].replace(QI,Fu)),value:b?t$(b[0].replace(QI,Fu)):Fu});return s(FZe),v}}function p(){var h=[];c(h);for(var g;g=f();)g!==!1&&(h.push(g),c(h));return h}return u(),p()};function t$(e){return e?e.replace(jZe,Fu):Fu}var UZe=qZe;function kX(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,l=UZe(e),i=typeof t=="function",o,a,s=0,u=l.length;s0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function GZe(e){const t=DP(e),n=CX(e);if(t&&n)return{start:t,end:n}}function Jh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?n$(e.position):"start"in e||"end"in e?n$(e):"line"in e||"column"in e?yC(e):""}function yC(e){return r$(e&&e.line)+":"+r$(e&&e.column)}function n$(e){return yC(e&&e.start)+"-"+yC(e&&e.end)}function r$(e){return e&&typeof e=="number"?e:1}class Oo extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let l="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?l=t:!i.cause&&t&&(o=!0,l=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?i.ruleId=r:(i.source=r.slice(0,s),i.ruleId=r.slice(s+1))}if(!i.place&&i.ancestors&&i.ancestors){const s=i.ancestors[i.ancestors.length-1];s&&(i.place=s.position)}const a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=l,this.line=a?a.line:void 0,this.name=Jh(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}Oo.prototype.file="";Oo.prototype.name="";Oo.prototype.reason="";Oo.prototype.message="";Oo.prototype.stack="";Oo.prototype.column=void 0;Oo.prototype.line=void 0;Oo.prototype.ancestors=void 0;Oo.prototype.cause=void 0;Oo.prototype.fatal=void 0;Oo.prototype.place=void 0;Oo.prototype.ruleId=void 0;Oo.prototype.source=void 0;const EP={}.hasOwnProperty,YZe=new Map,XZe=/[A-Z]/g,KZe=/-([a-z])/g,ZZe=new Set(["table","tbody","thead","tfoot","tr"]),QZe=new Set(["td","th"]);function JZe(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=tQe(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=eQe(n,t.jsx,t.jsxs)}const l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?SX:DZe,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=PX(l,e,void 0);return i&&typeof i!="string"?i:l.create(e,l.Fragment,{children:i||void 0},void 0)}function PX(e,t,n){if(t.type==="element"||t.type==="root"){const r=e.schema;let l=r;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(l=SX,e.schema=l),e.ancestors.push(t);let i=nQe(e,t);const o=rQe(e,e.ancestors);let a=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(i&&ZZe.has(t.tagName)&&(i=i.filter(function(s){return typeof s=="string"?!xZe(s):!0})),EP.call(e.components,t.tagName)){const s=t.tagName;a=e.components[s],typeof a!="string"&&a!==e.Fragment&&e.passNode&&(o.node=t)}else a=t.tagName;if(i.length>0){const s=i.length>1?i:i[0];s&&(o.children=s)}return e.schema=r,e.create(t,a,o,n)}if(t.type==="text")return t.value}function eQe(e,t,n){return r;function r(l,i,o,a){const u=Array.isArray(o.children)?n:t;return a?u(i,o,a):u(i,o)}}function tQe(e,t){return n;function n(r,l,i,o){const a=Array.isArray(i.children),s=DP(r);return t(l,i,o,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function nQe(e,t){const n=[];let r=-1;const l=e.passKeys?new Map:YZe;for(;++r-1&&e.test(String.fromCharCode(n))}}const mQe={'"':"quot","&":"amp","<":"lt",">":"gt"};function gQe(e){return e.replace(/["&<>]/g,t);function t(n){return"&"+mQe[n]+";"}}function vQe(e,t){const n=gQe(zc(e||""));if(!t)return n;const r=n.indexOf(":"),l=n.indexOf("?"),i=n.indexOf("#"),o=n.indexOf("/");return r<0||o>-1&&r>o||l>-1&&r>l||i>-1&&r>i||t.test(n.slice(0,r))?n:""}function zc(e){const t=[];let n=-1,r=0,l=0;for(;++n55295&&i<57344){const a=e.charCodeAt(n+1);i<56320&&a>56319&&a<57344?(o=String.fromCharCode(i,a),l=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+l+1,o=""),l&&(n+=l,l=0)}return t.join("")+e.slice(r)}const yQe={};function bQe(e,t){const n=yQe,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,l=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return AX(e,r,l)}function AX(e,t,n){if(xQe(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return a$(e.children,t,n)}return Array.isArray(e)?a$(e,t,n):""}function a$(e,t,n){const r=[];let l=-1;for(;++ll?0:l+t:t=t>l?l:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i0?(jl(e,e.length,0,t),e):t}const i$={}.hasOwnProperty;function wQe(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCharCode(n)}function Fd(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function Ur(e,t,n,r){const l=r?r-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(s){return Sr(s)?(e.enter(n),a(s)):t(s)}function a(s){return Sr(s)&&i++o))return;const S=t.events.length;let k=S,C,T;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){if(C){T=t.events[k][1].end;break}C=!0}for(v(r),w=S;wy;){const _=n[x];t.containerState=_[1],_[0].exit.call(t,e)}n.length=y}function m(){l.write([null]),i=void 0,l=void 0,t.containerState._closeFlow=void 0}}function PQe(e,t,n){return Ur(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function s$(e){if(e===null||Uo(e)||hQe(e))return 1;if(pQe(e))return 2}function LP(e,t,n){const r=[];let l=-1;for(;++l1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),f=Object.assign({},e[n][1].start);u$(d,-s),u$(f,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:f},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},l={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},a.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=ki(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=ki(u,[["enter",l,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=ki(u,LP(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=ki(u,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",l,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=ki(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,jl(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n0&&Sr(w)?Ur(e,m,"linePrefix",i+1)(w):m(w)}function m(w){return w===null||Yn(w)?e.check(c$,g,x)(w):(e.enter("codeFlowValue"),y(w))}function y(w){return w===null||Yn(w)?(e.exit("codeFlowValue"),m(w)):(e.consume(w),y)}function x(w){return e.exit("codeFenced"),t(w)}function _(w,S,k){let C=0;return T;function T(E){return w.enter("lineEnding"),w.consume(E),w.exit("lineEnding"),M}function M(E){return w.enter("codeFencedFence"),Sr(E)?Ur(w,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):O(E)}function O(E){return E===a?(w.enter("codeFencedFenceSequence"),D(E)):k(E)}function D(E){return E===a?(C++,w.consume(E),D):C>=o?(w.exit("codeFencedFenceSequence"),Sr(E)?Ur(w,P,"whitespace")(E):P(E)):k(E)}function P(E){return E===null||Yn(E)?(w.exit("codeFencedFence"),S(E)):k(E)}}}function zQe(e,t,n){const r=this;return l;function l(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const pT={name:"codeIndented",tokenize:WQe},BQe={tokenize:qQe,partial:!0};function WQe(e,t,n){const r=this;return l;function l(u){return e.enter("codeIndented"),Ur(e,i,"linePrefix",5)(u)}function i(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?s(u):Yn(u)?e.attempt(BQe,o,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||Yn(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),t(u)}}function qQe(e,t,n){const r=this;return l;function l(o){return r.parser.lazy[r.now().line]?n(o):Yn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):Ur(e,i,"linePrefix",5)(o)}function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):Yn(o)?l(o):n(o)}}const UQe={name:"codeText",tokenize:GQe,resolve:HQe,previous:VQe};function HQe(e){let t=e.length-4,n=3,r,l;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function $X(e,t,n,r,l,i,o,a,s){const u=s||Number.POSITIVE_INFINITY;let c=0;return d;function d(v){return v===60?(e.enter(r),e.enter(l),e.enter(i),e.consume(v),e.exit(i),f):v===null||v===32||v===41||bC(v)?n(v):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),g(v))}function f(v){return v===62?(e.enter(i),e.consume(v),e.exit(i),e.exit(l),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(v))}function p(v){return v===62?(e.exit("chunkString"),e.exit(a),f(v)):v===null||v===60||Yn(v)?n(v):(e.consume(v),v===92?h:p)}function h(v){return v===60||v===62||v===92?(e.consume(v),p):p(v)}function g(v){return!c&&(v===null||v===41||Uo(v))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(v)):c999||p===null||p===91||p===93&&!s||p===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?n(p):p===93?(e.exit(i),e.enter(l),e.consume(p),e.exit(l),e.exit(r),t):Yn(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||Yn(p)||a++>999?(e.exit("chunkString"),c(p)):(e.consume(p),s||(s=!Sr(p)),p===92?f:d)}function f(p){return p===91||p===92||p===93?(e.consume(p),a++,d):d(p)}}function FX(e,t,n,r,l,i){let o;return a;function a(f){return f===34||f===39||f===40?(e.enter(r),e.enter(l),e.consume(f),e.exit(l),o=f===40?41:f,s):n(f)}function s(f){return f===o?(e.enter(l),e.consume(f),e.exit(l),e.exit(r),t):(e.enter(i),u(f))}function u(f){return f===o?(e.exit(i),s(o)):f===null?n(f):Yn(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Ur(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===o||f===null||Yn(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?d:c)}function d(f){return f===o||f===92?(e.consume(f),c):c(f)}}function em(e,t){let n;return r;function r(l){return Yn(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n=!0,r):Sr(l)?Ur(e,r,n?"linePrefix":"lineSuffix")(l):t(l)}}const eJe={name:"definition",tokenize:nJe},tJe={tokenize:rJe,partial:!0};function nJe(e,t,n){const r=this;let l;return i;function i(p){return e.enter("definition"),o(p)}function o(p){return NX.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return l=Fd(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),s):n(p)}function s(p){return Uo(p)?em(e,u)(p):u(p)}function u(p){return $X(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(tJe,d,d)(p)}function d(p){return Sr(p)?Ur(e,f,"whitespace")(p):f(p)}function f(p){return p===null||Yn(p)?(e.exit("definition"),r.parser.defined.push(l),t(p)):n(p)}}function rJe(e,t,n){return r;function r(a){return Uo(a)?em(e,l)(a):n(a)}function l(a){return FX(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return Sr(a)?Ur(e,o,"whitespace")(a):o(a)}function o(a){return a===null||Yn(a)?t(a):n(a)}}const aJe={name:"hardBreakEscape",tokenize:oJe};function oJe(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),l}function l(i){return Yn(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const iJe={name:"headingAtx",tokenize:sJe,resolve:lJe};function lJe(e,t){let n=e.length-2,r=3,l,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(l={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},jl(e,r,n-r+1,[["enter",l,t],["enter",i,t],["exit",i,t],["exit",l,t]])),e}function sJe(e,t,n){let r=0;return l;function l(c){return e.enter("atxHeading"),i(c)}function i(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||Uo(c)?(e.exit("atxHeadingSequence"),a(c)):n(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||Yn(c)?(e.exit("atxHeading"),t(c)):Sr(c)?Ur(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function s(c){return c===35?(e.consume(c),s):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||Uo(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}const uJe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],f$=["pre","script","style","textarea"],cJe={name:"htmlFlow",tokenize:hJe,resolveTo:pJe,concrete:!0},dJe={tokenize:gJe,partial:!0},fJe={tokenize:mJe,partial:!0};function pJe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function hJe(e,t,n){const r=this;let l,i,o,a,s;return u;function u(R){return c(R)}function c(R){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(R),d}function d(R){return R===33?(e.consume(R),f):R===47?(e.consume(R),i=!0,g):R===63?(e.consume(R),l=3,r.interrupt?t:B):Pl(R)?(e.consume(R),o=String.fromCharCode(R),b):n(R)}function f(R){return R===45?(e.consume(R),l=2,p):R===91?(e.consume(R),l=5,a=0,h):Pl(R)?(e.consume(R),l=4,r.interrupt?t:B):n(R)}function p(R){return R===45?(e.consume(R),r.interrupt?t:B):n(R)}function h(R){const q="CDATA[";return R===q.charCodeAt(a++)?(e.consume(R),a===q.length?r.interrupt?t:O:h):n(R)}function g(R){return Pl(R)?(e.consume(R),o=String.fromCharCode(R),b):n(R)}function b(R){if(R===null||R===47||R===62||Uo(R)){const q=R===47,Y=o.toLowerCase();return!q&&!i&&f$.includes(Y)?(l=1,r.interrupt?t(R):O(R)):uJe.includes(o.toLowerCase())?(l=6,q?(e.consume(R),v):r.interrupt?t(R):O(R)):(l=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(R):i?m(R):y(R))}return R===45||ri(R)?(e.consume(R),o+=String.fromCharCode(R),b):n(R)}function v(R){return R===62?(e.consume(R),r.interrupt?t:O):n(R)}function m(R){return Sr(R)?(e.consume(R),m):T(R)}function y(R){return R===47?(e.consume(R),T):R===58||R===95||Pl(R)?(e.consume(R),x):Sr(R)?(e.consume(R),y):T(R)}function x(R){return R===45||R===46||R===58||R===95||ri(R)?(e.consume(R),x):_(R)}function _(R){return R===61?(e.consume(R),w):Sr(R)?(e.consume(R),_):y(R)}function w(R){return R===null||R===60||R===61||R===62||R===96?n(R):R===34||R===39?(e.consume(R),s=R,S):Sr(R)?(e.consume(R),w):k(R)}function S(R){return R===s?(e.consume(R),s=null,C):R===null||Yn(R)?n(R):(e.consume(R),S)}function k(R){return R===null||R===34||R===39||R===47||R===60||R===61||R===62||R===96||Uo(R)?_(R):(e.consume(R),k)}function C(R){return R===47||R===62||Sr(R)?y(R):n(R)}function T(R){return R===62?(e.consume(R),M):n(R)}function M(R){return R===null||Yn(R)?O(R):Sr(R)?(e.consume(R),M):n(R)}function O(R){return R===45&&l===2?(e.consume(R),I):R===60&&l===1?(e.consume(R),A):R===62&&l===4?(e.consume(R),z):R===63&&l===3?(e.consume(R),B):R===93&&l===5?(e.consume(R),j):Yn(R)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(dJe,N,D)(R)):R===null||Yn(R)?(e.exit("htmlFlowData"),D(R)):(e.consume(R),O)}function D(R){return e.check(fJe,P,N)(R)}function P(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),E}function E(R){return R===null||Yn(R)?D(R):(e.enter("htmlFlowData"),O(R))}function I(R){return R===45?(e.consume(R),B):O(R)}function A(R){return R===47?(e.consume(R),o="",F):O(R)}function F(R){if(R===62){const q=o.toLowerCase();return f$.includes(q)?(e.consume(R),z):O(R)}return Pl(R)&&o.length<8?(e.consume(R),o+=String.fromCharCode(R),F):O(R)}function j(R){return R===93?(e.consume(R),B):O(R)}function B(R){return R===62?(e.consume(R),z):R===45&&l===2?(e.consume(R),B):O(R)}function z(R){return R===null||Yn(R)?(e.exit("htmlFlowData"),N(R)):(e.consume(R),z)}function N(R){return e.exit("htmlFlow"),t(R)}}function mJe(e,t,n){const r=this;return l;function l(o){return Yn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function gJe(e,t,n){return r;function r(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(X2,t,n)}}const vJe={name:"htmlText",tokenize:yJe};function yJe(e,t,n){const r=this;let l,i,o;return a;function a(B){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(B),s}function s(B){return B===33?(e.consume(B),u):B===47?(e.consume(B),_):B===63?(e.consume(B),y):Pl(B)?(e.consume(B),k):n(B)}function u(B){return B===45?(e.consume(B),c):B===91?(e.consume(B),i=0,h):Pl(B)?(e.consume(B),m):n(B)}function c(B){return B===45?(e.consume(B),p):n(B)}function d(B){return B===null?n(B):B===45?(e.consume(B),f):Yn(B)?(o=d,A(B)):(e.consume(B),d)}function f(B){return B===45?(e.consume(B),p):d(B)}function p(B){return B===62?I(B):B===45?f(B):d(B)}function h(B){const z="CDATA[";return B===z.charCodeAt(i++)?(e.consume(B),i===z.length?g:h):n(B)}function g(B){return B===null?n(B):B===93?(e.consume(B),b):Yn(B)?(o=g,A(B)):(e.consume(B),g)}function b(B){return B===93?(e.consume(B),v):g(B)}function v(B){return B===62?I(B):B===93?(e.consume(B),v):g(B)}function m(B){return B===null||B===62?I(B):Yn(B)?(o=m,A(B)):(e.consume(B),m)}function y(B){return B===null?n(B):B===63?(e.consume(B),x):Yn(B)?(o=y,A(B)):(e.consume(B),y)}function x(B){return B===62?I(B):y(B)}function _(B){return Pl(B)?(e.consume(B),w):n(B)}function w(B){return B===45||ri(B)?(e.consume(B),w):S(B)}function S(B){return Yn(B)?(o=S,A(B)):Sr(B)?(e.consume(B),S):I(B)}function k(B){return B===45||ri(B)?(e.consume(B),k):B===47||B===62||Uo(B)?C(B):n(B)}function C(B){return B===47?(e.consume(B),I):B===58||B===95||Pl(B)?(e.consume(B),T):Yn(B)?(o=C,A(B)):Sr(B)?(e.consume(B),C):I(B)}function T(B){return B===45||B===46||B===58||B===95||ri(B)?(e.consume(B),T):M(B)}function M(B){return B===61?(e.consume(B),O):Yn(B)?(o=M,A(B)):Sr(B)?(e.consume(B),M):C(B)}function O(B){return B===null||B===60||B===61||B===62||B===96?n(B):B===34||B===39?(e.consume(B),l=B,D):Yn(B)?(o=O,A(B)):Sr(B)?(e.consume(B),O):(e.consume(B),P)}function D(B){return B===l?(e.consume(B),l=void 0,E):B===null?n(B):Yn(B)?(o=D,A(B)):(e.consume(B),D)}function P(B){return B===null||B===34||B===39||B===60||B===61||B===96?n(B):B===47||B===62||Uo(B)?C(B):(e.consume(B),P)}function E(B){return B===47||B===62||Uo(B)?C(B):n(B)}function I(B){return B===62?(e.consume(B),e.exit("htmlTextData"),e.exit("htmlText"),t):n(B)}function A(B){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),F}function F(B){return Sr(B)?Ur(e,j,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):j(B)}function j(B){return e.enter("htmlTextData"),o(B)}}const IP={name:"labelEnd",tokenize:SJe,resolveTo:TJe,resolveAll:_Je},bJe={tokenize:kJe},xJe={tokenize:CJe},wJe={tokenize:MJe};function _Je(e){let t=-1;for(;++t=3&&(u===null||Yn(u))?(e.exit("thematicBreak"),t(u)):n(u)}function s(u){return u===l?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),Sr(u)?Ur(e,a,"whitespace")(u):a(u))}}const Eo={name:"list",tokenize:$Je,continuation:{tokenize:NJe},exit:jJe},LJe={tokenize:zJe,partial:!0},IJe={tokenize:FJe,partial:!0};function $Je(e,t,n){const r=this,l=r.events[r.events.length-1];let i=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,o=0;return a;function a(p){const h=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:xC(p)){if(r.containerState.type||(r.containerState.type=h,e.enter(h,{_container:!0})),h==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Nv,n,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(p)}return n(p)}function s(p){return xC(p)&&++o<10?(e.consume(p),s):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(X2,r.interrupt?n:c,e.attempt(LJe,f,d))}function c(p){return r.containerState.initialBlankLine=!0,i++,f(p)}function d(p){return Sr(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function NJe(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(X2,l,i);function l(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ur(e,t,"listItemIndent",r.containerState.size+1)(a)}function i(a){return r.containerState.furtherBlankLines||!Sr(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(IJe,t,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ur(e,e.attempt(Eo,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function FJe(e,t,n){const r=this;return Ur(e,l,"listItemIndent",r.containerState.size+1);function l(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)}}function jJe(e){e.exit(this.containerState.type)}function zJe(e,t,n){const r=this;return Ur(e,l,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(i){const o=r.events[r.events.length-1];return!Sr(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const p$={name:"setextUnderline",tokenize:WJe,resolveTo:BJe};function BJe(e,t){let n=e.length,r,l,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(l=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const o={type:"setextHeading",start:Object.assign({},e[l][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[l][1].type="setextHeadingText",i?(e.splice(l,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function WJe(e,t,n){const r=this;let l;return i;function i(u){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),l=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===l?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),Sr(u)?Ur(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||Yn(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const qJe={tokenize:UJe};function UJe(e){const t=this,n=e.attempt(X2,r,e.attempt(this.parser.constructs.flowInitial,l,Ur(e,e.attempt(this.parser.constructs.flow,l,e.attempt(XQe,l)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function l(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const HJe={resolveAll:zX()},VJe=jX("string"),GJe=jX("text");function jX(e){return{tokenize:t,resolveAll:zX(e==="text"?YJe:void 0)};function t(n){const r=this,l=this.parser.constructs[e],i=n.attempt(l,o,a);return o;function o(c){return u(c)?i(c):a(c)}function a(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),s}function s(c){return u(c)?(n.exit("data"),i(c)):(n.consume(c),s)}function u(c){if(c===null)return!0;const d=l[c];let f=-1;if(d)for(;++f-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}i>0&&o.push(e[l].slice(0,i))}return o}function ZJe(e,t){let n=-1;const r=[];let l;for(;++n0){var R=x.filter(function(Y){var L=Y.on;return L==="hover"}),q=R.reduce(function(Y,L){return Av({},Y,L.style)},{});k(q)}m!==void 0&&m(o,N)},[m,o,x]),O=ge.useCallback(function(){if(x.length>0){var N=x.filter(function(q){var Y=q.on;return Y!=="hover"}),R=N.reduce(function(q,Y){return Av({},q,Y.style)},{});k(R)}y!==void 0&&y(o,event)},[y,o,x]),D=WG({direction:a,justify:s,symbolSize:S.symbolSize||p,symbolSpacing:h,width:l,height:i}),P=D.symbolX,E=D.symbolY,I=D.labelX,A=D.labelY,F=D.labelAnchor,j=D.labelAlignment,B=[v,m,y].some(function(N){return N!==void 0}),z;return jm(f)?z=f:z=qze[f],Xe.createElement("g",{transform:"translate(".concat(n,",").concat(r,")"),style:{opacity:S.itemOpacity!==void 0?S.itemOpacity:d}},Xe.createElement("rect",{width:l,height:i,fill:S.itemBackground||c,style:{cursor:B?"pointer":"auto"},onClick:T,onMouseEnter:M,onMouseLeave:O}),Xe.createElement(z,{id:o.id,x:P,y:E,size:S.symbolSize||p,fill:o.fill||o.color,borderWidth:S.symbolBorderWidth!==void 0?S.symbolBorderWidth:g,borderColor:S.symbolBorderColor||b}),Xe.createElement("text",{textAnchor:F,style:Av({},C.legends.text,{fill:S.itemTextColor||u,dominantBaseline:j,pointerEvents:"none",userSelect:"none"}),x:I,y:A},o.label))};Bs.displayName="LegendSvgItem";Bs.propTypes=Av({data:I2.isRequired,x:le.number.isRequired,y:le.number.isRequired,width:le.number.isRequired,height:le.number.isRequired,textColor:le.string,background:le.string,opacity:le.number,direction:le.oneOf(["left-to-right","right-to-left","top-to-bottom","bottom-to-top"]).isRequired,justify:le.bool.isRequired},R2,L2);Bs.defaultProps={direction:"left-to-right",justify:!1,textColor:"black",background:"transparent",opacity:1,symbolShape:"square",symbolSize:16,symbolSpacing:8,symbolBorderWidth:0,symbolBorderColor:"transparent",effects:[]};function Uze(e){for(var t=1;tt}var aBe=rBe,oBe=GG,iBe=aBe,lBe=Dc;function sBe(e){return e&&e.length?oBe(e,lBe,iBe):void 0}var uBe=sBe;const XG=dr(uBe);var cBe=Math.ceil,dBe=Math.max;function fBe(e,t,n,r){for(var l=-1,i=dBe(cBe((t-e)/(n||1)),0),o=Array(i);i--;)o[r?i:++l]=e,e+=n;return o}var pBe=fBe,hBe=pBe,mBe=X4,aT=oG;function gBe(e){return function(t,n,r){return r&&typeof r!="number"&&mBe(t,n,r)&&(n=r=void 0),t=aT(t),n===void 0?(n=t,t=0):n=aT(n),r=r===void 0?t=OWe){var u=t?null:MWe(e);if(u)return PWe(u);o=!1,l=CWe,s=new TWe}else s=t?[]:a;e:for(;++r-1}function mqe(e,t){var n=this.__data__,r=z2(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Yf.prototype.clear=dqe;Yf.prototype.delete=fqe;Yf.prototype.get=pqe;Yf.prototype.has=hqe;Yf.prototype.set=mqe;function Fc(e){var t=-1,n=e?e.length:0;for(this.clear();++t11))throw new Error("Invalid size '".concat(t.size,"' for diverging color scheme '").concat(t.scheme,"', must be between 3~11"));var s=Gu(Dv[t.scheme][t.size||11]),u=function(p){return s(r(p))};return u.scale=s,u}if(tUe(t.scheme)){if(t.size!==void 0&&(t.size<3||t.size>9))throw new Error("Invalid size '".concat(t.size,"' for sequential color scheme '").concat(t.scheme,"', must be between 3~9"));var c=Gu(Dv[t.scheme][t.size||9]),d=function(p){return c(r(p))};return d.scale=c,d}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return t}},mY=function(t,n){return ge.useMemo(function(){return hY(t,n)},[t,n])};function rUe(e,t){return iUe(e)||oUe(e,t)||aUe()}function aUe(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function oUe(e,t){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]"){var n=[],r=!0,l=!1,i=void 0;try{for(var o=e[Symbol.iterator](),a;!(r=(a=o.next()).done)&&(n.push(a.value),!(t&&n.length===t));r=!0);}catch(s){l=!0,i=s}finally{try{!r&&o.return!=null&&o.return()}finally{if(l)throw i}}return n}}function iUe(e){if(Array.isArray(e))return e}var Ev=function(t,n){if(typeof t=="function")return function(f){return t(f)};if(cY(t)){if(t.theme!==void 0){if(n===void 0)throw new Error("Unable to use color from theme as no theme was provided");var r=f1(n,t.theme);if(r===void 0)throw new Error("Color from theme is undefined at path: '".concat(t.theme,"'"));return function(){return r}}if(t.from!==void 0){var l=function(p){return f1(p,t.from)};if(Array.isArray(t.modifiers)){var i=[],o=!0,a=!1,s=void 0;try{for(var u=function(){var p=d.value,h=rUe(p,2),g=h[0],b=h[1];if(g==="brighter")i.push(function(v){return v.brighter(b)});else if(g==="darker")i.push(function(v){return v.darker(b)});else if(g==="opacity")i.push(function(v){return v.opacity=b,v});else throw new Error("Invalid color modifier: '".concat(g,"', must be one of: 'brighter', 'darker', 'opacity'"))},c=t.modifiers[Symbol.iterator](),d;!(o=(d=c.next()).done);o=!0)u()}catch(f){a=!0,s=f}finally{try{!o&&c.return!=null&&c.return()}finally{if(a)throw s}}return i.length===0?l:function(f){return i.reduce(function(p,h){return h(p)},dc(l(f))).toString()}}return l}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return t}},p1=function(t,n){return ge.useMemo(function(){return Ev(t,n)},[t,n])},bP=le.oneOfType([le.func,le.arrayOf(le.string),le.shape({scheme:le.oneOf(nUe).isRequired,size:le.number}),le.shape({datum:le.string.isRequired}),le.string]),lUe=le.oneOfType([le.func,le.string]),lT=le.oneOfType([le.string,le.func,le.shape({theme:le.string.isRequired}),le.shape({from:le.string.isRequired,modifiers:le.arrayOf(le.array)})]),sUe=GU,uUe=Dg;function cUe(e,t){return e&&sUe(e,t,uUe)}var dUe=cUe,fUe=Nf;function pUe(e,t){return function(n,r){if(n==null)return n;if(!fUe(n))return e(n,r);for(var l=n.length,i=t?l:-1,o=Object(n);(t?i--:++il?0:l+t),n=n>l?l:n,n<0&&(n+=l),l=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(l);++r1),i}),gGe(e,bGe(e),n),r&&(n=pGe(n,xGe|wGe|_Ge,vGe));for(var l=t.length;l--;)hGe(n,t[l]);return n}),SGe=TGe;const _Y=dr(SGe);var kGe=le.shape({match:le.oneOfType([le.func,le.object]).isRequired,type:le.oneOf(["circle","rect","dot"]).isRequired,noteX:le.oneOfType([le.number,le.shape({abs:le.number.isRequired})]).isRequired,noteY:le.oneOfType([le.number,le.shape({abs:le.number.isRequired})]).isRequired,noteWidth:le.number,noteTextOffset:le.number,note:le.oneOfType([le.node,le.func]).isRequired,offset:le.number}),h1={noteWidth:120,noteTextOffset:8,animate:!0,motionStiffness:90,motionDamping:13};function CGe(e){for(var t=1;t180?(_-=d,S-=d):S+=d,{points:[[b,v],[h,g],[S,k]],text:[_,w],angle:m+90}},TY=function(t){var n=t.items,r=t.annotations,l=t.getPosition,i=t.getDimensions;return ge.useMemo(function(){return OGe({items:n,annotations:r,getPosition:l,getDimensions:i})},[n,r,l,i])},EGe=function(t){var n=t.type,r=t.containerWidth,l=t.containerHeight,i=t.x,o=t.y,a=t.size,s=t.width,u=t.height,c=t.noteX,d=t.noteY,f=t.noteWidth,p=t.noteTextOffset;return ge.useMemo(function(){return DGe({type:n,containerWidth:r,containerHeight:l,x:i,y:o,size:a,width:s,height:u,noteX:c,noteY:d,noteWidth:f,noteTextOffset:p})},[n,r,l,i,o,a,s,u,c,d,f,p])};function RGe(e){for(var t=1;t0&&Xe.createElement("text",{x:n,y:r,style:RGe({},i.annotations.text,{strokeLinejoin:"round",strokeWidth:i.annotations.text.outlineWidth*2,stroke:i.annotations.text.outlineColor})},l),Xe.createElement("text",{x:n,y:r,style:_Y(i.annotations.text,["outlineWidth","outlineColor"])},l))});Km.displayName="AnnotationNote";Km.propTypes={datum:le.object.isRequired,x:le.number.isRequired,y:le.number.isRequired,note:le.oneOfType([le.node,le.func]).isRequired};Km.defaultProps={};function IGe(e){for(var t=1;t0&&Xe.createElement("circle",{cx:s.x,cy:s.y,r:s.size/2,style:TI({},l.annotations.outline,{fill:"none",strokeWidth:l.annotations.outline.strokeWidth+l.annotations.outline.outlineWidth*2,stroke:l.annotations.outline.outlineColor})}),Xe.createElement("circle",{cx:s.x,cy:s.y,r:s.size/2,style:l.annotations.outline}))}):Xe.createElement(Xe.Fragment,null,l.annotations.outline.outlineWidth>0&&Xe.createElement("circle",{cx:t,cy:n,r:r/2,style:TI({},l.annotations.outline,{fill:"none",strokeWidth:l.annotations.outline.strokeWidth+l.annotations.outline.outlineWidth*2,stroke:l.annotations.outline.outlineColor})}),Xe.createElement("circle",{cx:t,cy:n,r:r/2,style:l.annotations.outline}))});xP.displayName="CircleAnnotationOutline";xP.propTypes={x:le.number.isRequired,y:le.number.isRequired,size:le.number.isRequired};function SI(e){for(var t=1;t0&&Xe.createElement("circle",{cx:s.x,cy:s.y,r:s.size/2,style:SI({},l.annotations.outline,{fill:"none",strokeWidth:l.annotations.outline.outlineWidth*2,stroke:l.annotations.outline.outlineColor})}),Xe.createElement("circle",{cx:s.x,cy:s.y,r:s.size/2,style:l.annotations.symbol}))}):Xe.createElement(Xe.Fragment,null,l.annotations.outline.outlineWidth>0&&Xe.createElement("circle",{cx:t,cy:n,r:r/2,style:SI({},l.annotations.outline,{fill:"none",strokeWidth:l.annotations.outline.outlineWidth*2,stroke:l.annotations.outline.outlineColor})}),Xe.createElement("circle",{cx:t,cy:n,r:r/2,style:l.annotations.symbol}))});W2.displayName="DotAnnotationOutline";W2.propTypes={x:le.number.isRequired,y:le.number.isRequired,size:le.number.isRequired};W2.defaultProps={size:4};function kI(e){for(var t=1;t0&&Xe.createElement("rect",{x:u.x,y:u.y,width:u.width,height:u.height,style:kI({},i.annotations.outline,{fill:"none",strokeWidth:i.annotations.outline.strokeWidth+i.annotations.outline.outlineWidth*2,stroke:i.annotations.outline.outlineColor})}),Xe.createElement("rect",{x:u.x,y:u.y,width:u.width,height:u.height,style:i.annotations.outline}))}):Xe.createElement(Xe.Fragment,null,i.annotations.outline.outlineWidth>0&&Xe.createElement("rect",{x:t-r/2,y:n-l/2,width:r,height:l,style:kI({},i.annotations.outline,{fill:"none",strokeWidth:i.annotations.outline.strokeWidth+i.annotations.outline.outlineWidth*2,stroke:i.annotations.outline.outlineColor})}),Xe.createElement("rect",{x:t-r/2,y:n-l/2,width:r,height:l,style:i.annotations.outline}))});wP.displayName="RectAnnotationOutline";wP.propTypes={x:le.number.isRequired,y:le.number.isRequired,width:le.number.isRequired,height:le.number.isRequired};var Lg=ge.memo(function(e){var t=e.datum,n=e.type,r=e.containerWidth,l=e.containerHeight,i=e.x,o=e.y,a=e.size,s=e.width,u=e.height,c=e.noteX,d=e.noteY,f=e.noteWidth,p=e.noteTextOffset,h=e.note,g=Xo(),b=g.animate,v=g.springConfig,m=EGe({type:n,containerWidth:r,containerHeight:l,x:i,y:o,size:a,width:s,height:u,noteX:c,noteY:d,noteWidth:f,noteTextOffset:p});return Xe.createElement(Xe.Fragment,null,Xe.createElement(Zm,{points:m.points,isOutline:!0}),n==="circle"&&Xe.createElement(xP,{x:i,y:o,size:a}),n==="dot"&&Xe.createElement(W2,{x:i,y:o,size:a}),n==="rect"&&Xe.createElement(wP,{x:i,y:o,width:s,height:u}),Xe.createElement(Zm,{points:m.points}),!b&&Xe.createElement(Km,{x:m.text[0],y:m.text[1],note:h}),b&&Xe.createElement(cs,{style:{x:Bn(m.text[0],v),y:Bn(m.text[1],v)}},function(y){return Xe.createElement(Km,{datum:t,x:y.x,y:y.y,note:h})}))});Lg.displayName="Annotation";Lg.propTypes={datum:le.object.isRequired,type:le.oneOf(["circle","rect","dot"]).isRequired,containerWidth:le.number.isRequired,containerHeight:le.number.isRequired,x:le.number.isRequired,y:le.number.isRequired,size:le.number,width:le.number,height:le.number,noteX:le.oneOfType([le.number,le.shape({abs:le.number.isRequired})]).isRequired,noteY:le.oneOfType([le.number,le.shape({abs:le.number.isRequired})]).isRequired,noteWidth:le.number.isRequired,noteTextOffset:le.number.isRequired,note:le.oneOfType([le.node,le.func]).isRequired};Lg.defaultProps={noteWidth:h1.noteWidth,noteTextOffset:h1.noteTextOffset};var q2=function(t,n,r,l){return J4().rangeRound(r).domain(t.map(n)).padding(l)};function CI(e){return WGe(e)||BGe(e)||zGe()}function zGe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function BGe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function WGe(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&(s=0)),fc().rangeRound(i).domain([s,a])},qGe=function(t){var n=t.data,r=t.getIndex,l=t.keys,i=t.minValue,o=t.maxValue,a=t.reverse,s=t.width,u=t.height,c=t.getColor,d=t.padding,f=d===void 0?0:d,p=t.innerPadding,h=p===void 0?0:p,g=q2(n,r,[0,s],f),b=a?[0,u]:[u,0],v=SY(n,l,i,o,b),m=(g.bandwidth()-h*(l.length-1))/l.length,y=v(0),x=function(k){return k>0?v(k):y},_=function(k,C){return k>0?y-C:v(k)-y};a&&(x=function(k){return k<0?v(k):y},_=function(k,C){return k<0?y-C:v(k)-y});var w=[];return m>0&&l.forEach(function(S,k){KG(g.domain().length).forEach(function(C){var T=g(r(n[C]))+m*k+h*k,M=x(n[C][S]),O=_(n[C][S],M);if(m>0&&O>0){var D={id:S,value:n[C][S],index:C,indexValue:r(n[C]),data:n[C]};w.push({key:"".concat(S,".").concat(D.indexValue),data:D,x:T,y:M,width:m,height:O,color:c(D)})}})}),{xScale:g,yScale:v,bars:w}},UGe=function(t){var n=t.data,r=t.getIndex,l=t.keys,i=t.minValue,o=t.maxValue,a=t.reverse,s=t.width,u=t.height,c=t.getColor,d=t.padding,f=d===void 0?0:d,p=t.innerPadding,h=p===void 0?0:p,g=a?[s,0]:[0,s],b=SY(n,l,i,o,g),v=q2(n,r,[u,0],f),m=(v.bandwidth()-h*(l.length-1))/l.length,y=b(0),x=function(k){return k>0?y:b(k)},_=function(k,C){return k>0?b(k)-y:y-C};a&&(x=function(k){return k<0?y:b(k)},_=function(k,C){return k<0?b(k)-y:y-C});var w=[];return m>0&&l.forEach(function(S,k){KG(v.domain().length).forEach(function(C){var T=x(n[C][S]),M=v(r(n[C]))+m*k+h*k,O=_(n[C][S],T);if(O>0){var D={id:S,value:n[C][S],index:C,indexValue:r(n[C]),data:n[C]};w.push({key:"".concat(S,".").concat(D.indexValue),data:D,x:T,y:M,width:O,height:m,color:c(D)})}})}),{xScale:b,yScale:v,bars:w}},kY=function(t){return t.layout==="vertical"?qGe(t):UGe(t)},CY=function(t,n,r,l){var i=kBe(t,2),o=n;o==="auto"&&(o=YG(i));var a=r;return a==="auto"&&(a=XG(i)),fc().rangeRound(l).domain([o,a])},HGe=function(t){var n=t.data,r=t.getIndex,l=t.keys,i=t.minValue,o=t.maxValue,a=t.reverse,s=t.width,u=t.height,c=t.getColor,d=t.padding,f=d===void 0?0:d,p=t.innerPadding,h=p===void 0?0:p,g=nV().keys(l).offset(k6)(n),b=q2(n,r,[0,s],f),v=a?[0,u]:[u,0],m=CY(g,i,o,v),y=[],x=b.bandwidth(),_=function(k){return m(k[1])},w=function(k,C){return m(k[0])-C};return a&&(_=function(k){return m(k[0])},w=function(k,C){return m(k[1])-C}),x>0&&g.forEach(function(S){b.domain().forEach(function(k,C){var T=S[C],M=b(r(T.data)),O=_(T),D=w(T,O);if(h>0&&(O+=h*.5,D-=h),D>0){var P={id:S.key,value:T.data[S.key],index:C,indexValue:k,data:T.data};y.push({key:"".concat(S.key,".").concat(k),data:P,x:M,y:O,width:x,height:D,color:c(P)})}})}),{xScale:b,yScale:m,bars:y}},VGe=function(t){var n=t.data,r=t.getIndex,l=t.keys,i=t.minValue,o=t.maxValue,a=t.reverse,s=t.width,u=t.height,c=t.getColor,d=t.padding,f=d===void 0?0:d,p=t.innerPadding,h=p===void 0?0:p,g=nV().keys(l).offset(k6)(n),b=a?[s,0]:[0,s],v=CY(g,i,o,b),m=q2(n,r,[u,0],f),y=[],x=m.bandwidth(),_=function(k){return v(k[0])},w=function(k,C){return v(k[1])-C};return a&&(_=function(k){return v(k[1])},w=function(k,C){return v(k[0])-C}),x>0&&g.forEach(function(S){m.domain().forEach(function(k,C){var T=S[C],M=m(r(T.data)),O={id:S.key,value:T.data[S.key],index:C,indexValue:k,data:T.data},D=_(T),P=w(T,D);h>0&&(D+=h*.5,P-=h),P>0&&y.push({key:"".concat(S.key,".").concat(k),data:O,x:D,y:M,width:P,height:x,color:c(O)})})}),{xScale:v,yScale:m,bars:y}},MY=function(t){return t.layout==="vertical"?HGe(t):VGe(t)},GGe=function(t,n,r,l,i){var o=Ym(t.map(function(a){return{id:a.data.id,label:a.data.id,color:a.color,fill:a.data.fill}}),function(a){var s=a.id;return s});return(n==="vertical"&&l==="stacked"&&r==="column"&&i!==!0||n==="horizontal"&&l==="stacked"&&i===!0)&&o.reverse(),o},YGe=function(t){return Ym(t.map(function(n){return{id:n.data.indexValue,label:n.data.indexValue,color:n.color,fill:n.data.fill}}),function(n){var r=n.id;return r})},XGe=function(t){var n=t.from,r=t.bars,l=t.layout,i=t.direction,o=t.groupMode,a=t.reverse;return n==="indexes"?YGe(r):GGe(r,l,i,o,a)};function rC(e){for(var t=1;t0&&ce0&&we0&&(this.ctx.lineWidth=C.grid.line.strokeWidth,this.ctx.strokeStyle=C.grid.line.stroke,P&&mf(this.ctx,{width:c,height:d,scale:j.xScale,axis:"x",values:E}),I&&mf(this.ctx,{width:c,height:d,scale:j.yScale,axis:"y",values:A})),this.ctx.strokeStyle="#dddddd";var B=Ym(j.bars.map(function(N){return{id:N.data.id,label:N.data.id,color:N.color,fill:N.data.fill}}).reverse(),function(N){var R=N.id;return R}),z=Ym(j.bars.map(function(N){return{id:N.data.indexValue,label:N.data.indexValue,color:N.color,fill:N.data.fill}}),function(N){var R=N.id;return R});D.forEach(function(N){var R;if(N.dataFrom==="keys"?R=B:N.dataFrom==="indexes"&&(R=z),R===void 0)return null;pP(l.ctx,PI({},N,{data:R,containerWidth:c,containerHeight:d,itemTextColor:"#999",symbolSize:16,theme:C}))}),Y6(this.ctx,{xScale:j.xScale,yScale:j.yScale,width:c,height:d,top:_,right:w,bottom:S,left:k,theme:C}),j.bars.forEach(function(N){var R=N.x,q=N.y,Y=N.color,L=N.width,W=N.height;l.ctx.fillStyle=Y,M>0&&(l.ctx.strokeStyle=O(N),l.ctx.lineWidth=M),l.ctx.beginPath(),l.ctx.rect(R,q,L,W),l.ctx.fill(),M>0&&l.ctx.stroke()})}},{key:"render",value:function(){var r=this,l=this.props,i=l.outerWidth,o=l.outerHeight,a=l.pixelRatio,s=l.isInteractive,u=l.theme;return Xe.createElement(x2,{isInteractive:s,theme:u,animate:!1},function(c){var d=c.showTooltip,f=c.hideTooltip;return Xe.createElement("canvas",{ref:function(h){r.surface=h},width:i*a,height:o*a,style:{width:i,height:o},onMouseEnter:r.handleMouseHover(d,f),onMouseMove:r.handleMouseHover(d,f),onMouseLeave:r.handleMouseLeave(f),onClick:r.handleClick})})}}]),t}(ge.Component);RY.propTypes=OY;var hYe=M6("BarCanvas")(AY(RY));function lC(){return lC=Object.assign||function(e){for(var t=1;t{const t=v5();return Te.jsx(ka,{sx:{maxWidth:200,height:50},children:Te.jsx(mYe,{data:e.data[e.xField].map((n,r)=>({id:n,x:e.data[e.yField][r]})),theme:t,margin:{top:3,right:3,bottom:3,left:3},indexBy:"id",keys:["x"],colors:[e.color],axisTop:null,axisRight:null,enableGridX:!1,enableGridY:!1})})},vYe=gYe;var yYe=JG;function bYe(e){return e&&e.length?yYe(e):[]}var xYe=bYe;const DI=dr(xYe);var wYe=gY,_Ye=Nf;function TYe(e,t){var n=-1,r=_Ye(e)?Array(e.length):[];return wYe(e,function(l,i,o){r[++n]=t(l,i,o)}),r}var SYe=TYe;function kYe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var CYe=kYe,EI=zf;function MYe(e,t){if(e!==t){var n=e!==void 0,r=e===null,l=e===e,i=EI(e),o=t!==void 0,a=t===null,s=t===t,u=EI(t);if(!a&&!u&&!i&&e>t||i&&o&&s&&!a&&!u||r&&o&&s||!n&&s||!l)return 1;if(!r&&!i&&!u&&e=a)return s;var u=n[r];return s*(u=="desc"?-1:1)}}return e.index-t.index}var DYe=AYe,sT=Ox,EYe=Mg,RYe=hP,LYe=SYe,IYe=CYe,$Ye=Ff,NYe=DYe,FYe=Dc,jYe=Po;function zYe(e,t,n){t.length?t=sT(t,function(i){return jYe(i)?function(o){return EYe(o,i.length===1?i[0]:i)}:i}):t=[FYe];var r=-1;t=sT(t,$Ye(RYe));var l=LYe(e,function(i,o,a){var s=sT(t,function(u){return u(i)});return{criteria:s,index:++r,value:i}});return IYe(l,function(i,o){return NYe(i,o,n)})}var BYe=zYe,WYe=$6,qYe=BYe,UYe=Px,RI=X4,HYe=UYe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&RI(e,t[0],t[1])?t=[]:n>2&&RI(t[0],t[1],t[2])&&(t=[t[0]]),qYe(e,WYe(t,1),[])}),VYe=HYe;const GYe=dr(VYe);var YYe=xs,XYe=hi,KYe="[object Date]";function ZYe(e){return XYe(e)&&YYe(e)==KYe}var QYe=ZYe,JYe=QYe,eXe=Ff,LI=Mx,II=LI&&LI.isDate,tXe=II?eXe(II):JYe,nXe=tXe;const rXe=dr(nXe);var aXe=function(t,n,r,l){var i=t.axis,o=t.min,a=o===void 0?0:o,s=t.max,u=s===void 0?"auto":s,c=t.stacked,d=c===void 0?!1:c,f=t.reverse,p=f===void 0?!1:f,h=n[i],g=i==="x"?r:l,b=a;a==="auto"&&(b=d===!0?h.minStacked:h.min);var v=u;u==="auto"&&(v=d===!0?h.maxStacked:h.max);var m=fc().rangeRound(i==="x"?[0,g]:[g,0]);return p===!0?m.domain([v,b]):m.domain([b,v]),m.type="linear",m.stacked=d,m},oXe={type:le.oneOf(["linear"]).isRequired,min:le.oneOfType([le.oneOf(["auto"]),le.number]),max:le.oneOfType([le.oneOf(["auto"]),le.number]),stacked:le.bool,reverse:le.bool},iXe=function(t,n,r,l){var i=t.axis,o=t.base,a=o===void 0?10:o,s=t.min,u=s===void 0?"auto":s,c=t.max,d=c===void 0?"auto":c,f=n[i],p=i==="x"?r:l,h=f.all.some(function(x){return x===0}),g,b=!1;if(f.all.forEach(function(x){b!==!0&&(g===void 0?g=Math.sign(x):Math.sign(x)!==g&&(b=!0))}),h||b)throw new Error(["a log scale domain must be strictly-positive or strictly-negative,","and must not include or cross zero."].join(` +`));var v=u;u==="auto"&&(v=f.min);var m=d;d==="auto"&&(m=f.max);var y=TH().domain([v,m]).rangeRound(i==="x"?[0,p]:[p,0]).base(a).nice();return y.type="log",y},lXe={type:le.oneOf(["log"]).isRequired,base:le.number,min:le.oneOfType([le.oneOf(["auto"]),le.number]),max:le.oneOfType([le.oneOf(["auto"]),le.number])},sXe=function(t,n,r,l){var i=t.axis,o=n[i],a=i==="x"?r:l,s=g8e().range([0,a]).domain(o.all);return s.type="point",s},uXe={type:le.oneOf(["point"]).isRequired},Vl;function Cu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _P="millisecond",LY="second",IY="minute",$Y="hour",NY="day",FY="month",jY="year",cXe=[_P,LY,IY,$Y,NY,FY,jY],nd=[function(e){return e.setMilliseconds(0)},function(e){return e.setSeconds(0)},function(e){return e.setMinutes(0)},function(e){return e.setHours(0)},function(e){return e.setDate(1)},function(e){return e.setMonth(0)}],dXe=(Vl={},Cu(Vl,_P,[]),Cu(Vl,LY,nd.slice(0,1)),Cu(Vl,IY,nd.slice(0,2)),Cu(Vl,$Y,nd.slice(0,3)),Cu(Vl,NY,nd.slice(0,4)),Cu(Vl,FY,nd.slice(0,5)),Cu(Vl,jY,nd.slice(0,6)),Vl),fXe=function(t){return function(n){return dXe[t].forEach(function(r){r(n)}),n}},zY=function(t){var n=t.format,r=n===void 0?"native":n,l=t.precision,i=l===void 0?"millisecond":l,o=t.useUTC,a=o===void 0?!0:o,s=fXe(i);if(r==="native")return function(c){return s(c)};var u=a?PV(r):MV(r);return function(c){return s(u(c))}},pXe=function(t,n,r,l){var i=t.axis,o=t.format,a=o===void 0?"native":o,s=t.precision,u=s===void 0?_P:s,c=t.min,d=c===void 0?"auto":c,f=t.max,p=f===void 0?"auto":f,h=t.useUTC,g=h===void 0?!0:h,b=n[i],v=i==="x"?r:l,m=zY({format:a,precision:u,useUTC:g}),y=d;d==="auto"?y=b.min:a!=="native"&&(y=m(d));var x=p;p==="auto"?x=b.max:a!=="native"&&(x=m(p));var _=g?k7e():S7e();return _.domain([y,x]).range([0,v]),_.type="time",_.useUTC=g,_},hXe={type:le.oneOf(["time"]).isRequired,format:le.string,precision:le.oneOf(cXe)};function g1(e){return vXe(e)||gXe(e)||mXe()}function mXe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function gXe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function vXe(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t3&&arguments[3]!==void 0?arguments[3]:{},i=l.getValue,o=i===void 0?function(p){return p.data[n]}:i,a=l.setValue,s=a===void 0?function(p,h){p.data[n]=h}:a;if(r.type==="linear")t.forEach(function(p){p.data.forEach(function(h){s(h,o(h)===null?null:parseFloat(o(h)))})});else if(r.type==="time"&&r.format!=="native"){var u=zY(r);t.forEach(function(p){p.data.forEach(function(h){s(h,o(h)===null?null:u(o(h)))})})}var c=[];t.forEach(function(p){p.data.forEach(function(h){c.push(o(h))})});var d,f;return r.type==="linear"?(c=DI(c),c=GYe(c,function(p){return p}),d=Math.min.apply(Math,g1(c)),f=Math.max.apply(Math,g1(c))):r.type==="time"?(c=Ym(c,function(p){return p.getTime()}),c=c.slice(0).sort(function(p,h){return h-p}).reverse(),d=c[0],f=In(c)):(c=DI(c),d=c[0],f=In(c)),{all:c,min:d,max:f}},WY=function(t,n,r,l){var i=bXe(t),o=[];r[i].all.forEach(function(a){var s=rXe(a)?wXe:xXe,u=[];l.forEach(function(c){var d=c.data.find(function(g){return s(g.data[i],a)}),f=null,p=null;if(d!==void 0){if(f=d.data[t],f!==null){var h=In(u);h===void 0?p=f:h!==null&&(p=h+f)}d.data["".concat(t,"Stacked")]=p}u.push(p),o.push(p)})}),o=o.filter(function(a){return a!==null}),r[t].minStacked=Math.min.apply(Math,g1(o)),r[t].maxStacked=Math.max.apply(Math,g1(o))},TXe=function(t,n,r){return WY("x",t,n,r)},SXe=function(t,n,r){return WY("y",t,n,r)},v1=le.oneOfType([le.shape(oXe),le.shape(uXe),le.shape(hXe),le.shape(lXe)]);const FI=Math.pow(2,-52),H0=new Uint32Array(512);class y1{static from(t,n=OXe,r=AXe){const l=t.length,i=new Float64Array(l*2);for(let o=0;o>1;if(n>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const r=Math.max(2*n-5,0);this._triangles=new Uint32Array(r*3),this._halfedges=new Int32Array(r*3),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:r,_hullTri:l,_hullHash:i}=this,o=t.length>>1;let a=1/0,s=1/0,u=-1/0,c=-1/0;for(let T=0;Tu&&(u=M),O>c&&(c=O),this._ids[T]=T}const d=(a+u)/2,f=(s+c)/2;let p=1/0,h,g,b;for(let T=0;T0&&(g=T,p=M)}let y=t[2*g],x=t[2*g+1],_=1/0;for(let T=0;TD&&(T[M++]=P,D=this._dists[P])}this.hull=T.subarray(0,M),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(V0(v,m,y,x,w,S)){const T=g,M=y,O=x;g=b,y=w,x=S,b=T,w=M,S=O}const k=PXe(v,m,y,x,w,S);this._cx=k.x,this._cy=k.y;for(let T=0;T0&&Math.abs(P-M)<=FI&&Math.abs(E-O)<=FI||(M=P,O=E,D===h||D===g||D===b))continue;let I=0;for(let z=0,N=this._hashKey(P,E);z0?3-n:1+n)/4}function uT(e,t,n,r){const l=e-n,i=t-r;return l*l+i*i}function cT(e,t,n,r,l,i){const o=(r-t)*(l-e),a=(n-e)*(i-t);return Math.abs(o-a)>=33306690738754716e-32*Math.abs(o+a)?o-a:0}function V0(e,t,n,r,l,i){return(cT(l,i,e,t,n,r)||cT(e,t,n,r,l,i)||cT(n,r,l,i,e,t))<0}function CXe(e,t,n,r,l,i,o,a){const s=e-o,u=t-a,c=n-o,d=r-a,f=l-o,p=i-a,h=s*s+u*u,g=c*c+d*d,b=f*f+p*p;return s*(d*b-g*p)-u*(c*b-g*f)+h*(c*p-d*f)<0}function MXe(e,t,n,r,l,i){const o=n-e,a=r-t,s=l-e,u=i-t,c=o*o+a*a,d=s*s+u*u,f=.5/(o*u-a*s),p=(u*c-a*d)*f,h=(o*d-s*c)*f;return p*p+h*h}function PXe(e,t,n,r,l,i){const o=n-e,a=r-t,s=l-e,u=i-t,c=o*o+a*a,d=s*s+u*u,f=.5/(o*u-a*s),p=e+(u*c-a*d)*f,h=t+(o*d-s*c)*f;return{x:p,y:h}}function Sd(e,t,n,r){if(r-n<=20)for(let l=n+1;l<=r;l++){const i=e[l],o=t[i];let a=l-1;for(;a>=n&&t[e[a]]>o;)e[a+1]=e[a--];e[a+1]=i}else{const l=n+r>>1;let i=n+1,o=r;vh(e,l,i),t[e[n]]>t[e[r]]&&vh(e,n,r),t[e[i]]>t[e[r]]&&vh(e,i,r),t[e[n]]>t[e[i]]&&vh(e,n,i);const a=e[i],s=t[a];for(;;){do i++;while(t[e[i]]s);if(o=o-n?(Sd(e,t,i,r),Sd(e,t,n,o-1)):(Sd(e,t,n,o-1),Sd(e,t,i,r))}}function vh(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function OXe(e){return e[0]}function AXe(e){return e[1]}const jI=1e-6;class Ku{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,r){t=+t,n=+n,r=+r;const l=t+r,i=n;if(r<0)throw new Error("negative radius");this._x1===null?this._+=`M${l},${i}`:(Math.abs(this._x1-l)>jI||Math.abs(this._y1-i)>jI)&&(this._+="L"+l+","+i),r&&(this._+=`A${r},${r},0,1,1,${t-r},${n}A${r},${r},0,1,1,${this._x1=l},${this._y1=i}`)}rect(t,n,r,l){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+r}v${+l}h${-r}Z`}value(){return this._||null}}class sC{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}let DXe=class{constructor(t,[n,r,l,i]=[0,0,960,500]){if(!((l=+l)>=(n=+n))||!((i=+i)>=(r=+r)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=l,this.xmin=n,this.ymax=i,this.ymin=r,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:r},vectors:l}=this,i=this.circumcenters=this._circumcenters.subarray(0,r.length/3*2);for(let p=0,h=0,g=r.length,b,v;p1;)i-=2;for(let o=2;o4)for(let o=0;o0){if(n>=this.ymax)return null;(o=(this.ymax-n)/l)0){if(t>=this.xmax)return null;(o=(this.xmax-t)/r)this.xmax?2:0)|(nthis.ymax?8:0)}};const EXe=2*Math.PI,rd=Math.pow;function RXe(e){return e[0]}function LXe(e){return e[1]}function IXe(e){const{triangles:t,coords:n}=e;for(let r=0;r1e-10)return!1}return!0}function $Xe(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class U2{static from(t,n=RXe,r=LXe,l){return new U2("length"in t?NXe(t,n,r,l):Float64Array.from(FXe(t,n,r,l)))}constructor(t){this._delaunator=new y1(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&IXe(t)){this.collinear=Int32Array.from({length:n.length/2},(f,p)=>p).sort((f,p)=>n[2*f]-n[2*p]||n[2*f+1]-n[2*p+1]);const s=this.collinear[0],u=this.collinear[this.collinear.length-1],c=[n[2*s],n[2*s+1],n[2*u],n[2*u+1]],d=1e-8*Math.hypot(c[3]-c[1],c[2]-c[0]);for(let f=0,p=n.length/2;f0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=l[0],this.triangles[1]=l[1],this.triangles[2]=l[1],o[l[0]]=1,l.length===2&&(o[l[1]]=0))}voronoi(t){return new DXe(this,t)}*neighbors(t){const{inedges:n,hull:r,_hullIndex:l,halfedges:i,triangles:o,collinear:a}=this;if(a){const d=a.indexOf(t);d>0&&(yield a[d-1]),d=0&&i!==r&&i!==l;)r=i;return i}_step(t,n,r){const{inedges:l,hull:i,_hullIndex:o,halfedges:a,triangles:s,points:u}=this;if(l[t]===-1||!u.length)return(t+1)%(u.length>>1);let c=t,d=rd(n-u[t*2],2)+rd(r-u[t*2+1],2);const f=l[t];let p=f;do{let h=s[p];const g=rd(n-u[h*2],2)+rd(r-u[h*2+1],2);if(g0&&(de.lineWidth=H.grid.line.strokeWidth,de.strokeStyle=H.grid.line.stroke,S&&mf(de,{width:q,height:Y,scale:ne,axis:"x",values:k}),C&&mf(de,{width:q,height:Y,scale:ae,axis:"y",values:T})),_e==="axes"&&Y6(de,{xScale:ne,yScale:ae,width:q,height:Y,top:M,right:O,bottom:D,left:P,theme:H}),_e==="areas"&&g===!0&&(de.save(),de.globalAlpha=v,X.context(de),K.forEach(function(me){de.fillStyle=me.color,de.beginPath(),X(me.data.map(function(xe){return xe.position})),de.fill()}),de.restore()),_e==="lines"&&(V.context(de),K.forEach(function(me){de.strokeStyle=me.color,de.lineWidth=h,de.beginPath(),V(me.data.map(function(xe){return xe.position})),de.stroke()})),_e==="points"&&m===!0&&y>0&&ie.forEach(function(me){de.fillStyle=me.color,de.beginPath(),de.arc(me.x,me.y,y/2,0,2*Math.PI),de.fill(),_>0&&(de.strokeStyle=me.borderColor,de.lineWidth=_,de.stroke())}),_e==="mesh"&&A===!0&&(UY(de,ke),ee&&HY(de,ke,ee.index)),_e==="legends"){var ue=K.map(function(me){return{id:me.id,label:me.id,color:me.color}}).reverse();E.forEach(function(me){pP(de,_Ke({},me,{data:me.data||ue,containerWidth:q,containerHeight:Y,theme:H}))})}})},[z,L,W,f,H,V,K,ne,ae,S,k,C,T,M,O,D,P,E,ie,m,y,ee]);var Ce=ge.useCallback(function(de){var _e=Gm(z.current,de),ue=UI(_e,2),me=ue[0],xe=ue[1];if(!W6(R.left,R.top,q,Y,me,xe))return null;var ye=pe.find(me-R.left,xe-R.top);return ie[ye]},[z,R,q,Y,pe]),Oe=Df(),Pe=Oe.showTooltipFromEvent,ce=Oe.hideTooltip,we=ge.useCallback(function(de){var _e=Ce(de);U(_e),_e?Pe(Xe.createElement(B,{point:_e}),de):ce()},[Ce,U,Pe,ce,B]),Z=ge.useCallback(function(de){ce(),U(null),ee&&F&&F(ee,de)},[ce,U,F]),re=ge.useCallback(function(de){if(j){var _e=Ce(de);_e&&j(_e,de)}},[Ce,j]);return Xe.createElement("canvas",{ref:z,width:L*i,height:W*i,style:{width:L,height:W,cursor:I?"auto":"normal"},onMouseEnter:I?we:void 0,onMouseMove:I?we:void 0,onMouseLeave:I?Z:void 0,onClick:I?re:void 0})};CP.propTypes=ZXe;CP.defaultProps=QXe;var MKe=k2(CP);function dC(){return dC=Object.assign||function(e){for(var t=1;t{const t=v5();return Te.jsx(ka,{sx:{maxWidth:200,height:50},children:Te.jsx(PKe,{data:[{id:"1",data:e.data[e.xField].map((n,r)=>({x:n,y:e.data[e.yField][r]}))}],theme:t,margin:{top:0,right:0,bottom:0,left:0},xScale:{type:"linear",min:0,max:25},axisTop:null,colors:[e.color],axisRight:null,enableGridX:!1,enableGridY:!1})})},AKe=OKe;function DKe(e){for(var t=1;t{const t=v5();return Te.jsx(ka,{sx:{maxWidth:200,height:50},children:Te.jsx(tZe,{data:[{id:"1",data:e.data[e.xField].map((n,r)=>({x:n,y:e.data[e.yField][r]}))}],theme:t,margin:{top:3,right:3,bottom:3,left:3},xScale:{type:"linear",min:0,max:1e3},nodeSize:4,colors:[e.color],useMesh:!1,axisTop:null,axisRight:null,enableGridX:!1,enableGridY:!1})})},lZe=iZe,sZe=new Map([["line",(e,t)=>t[e.field]?Te.jsx(AKe,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):Te.jsx("div",{})],["scatter",(e,t)=>t[e.field]?Te.jsx(lZe,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):Te.jsx("div",{})],["histogram",(e,t)=>t[e.field]?Te.jsx(vYe,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):Te.jsx("div",{})]]),GI=e=>e.map(t=>({def:t,gen:sZe.get(t.type??"string")})).map(({def:t,gen:n})=>n?{...t,type:void 0,render:r=>n(t,r)}:{...t,sorting:!0,defaultSort:t.sort,type:"string"}),uZe=e=>{const[t,n]=ge.useState({open:!1,anchorEl:void 0});return Te.jsxs(ka,{sx:{width:50},onClick:r=>n(l=>({open:!l.open,anchorEl:r.currentTarget})),children:[Te.jsx(WSe,{}),Te.jsx(Ab,{open:t.open,anchorEl:t.anchorEl,anchorOrigin:{horizontal:"left",vertical:"bottom"},children:Te.jsx(mr,{p:1,children:e.longText})})]})},cZe=e=>{const{columns:t,data:n}=e,r={search:!0,showTitle:!1,pageSize:e.rowsPerPage??5,detailPanelColumnStyle:{minWidth:42},emptyRowsWhenPaging:!1};return Te.jsx(Xe.Fragment,{children:Te.jsx(BSe,{columns:e.showInfoColumn??!1?[...GI(t),{title:"Info",render:l=>{var i,o,a;return Te.jsx(Xe.Fragment,{children:(i=l.details)!=null&&i.insights?Te.jsx(uZe,{longText:`${(o=l.details)==null?void 0:o.insights[0].title}: ${(a=l.details)==null?void 0:a.insights[0].text}`}):Te.jsx("div",{})})},width:50}]:[...GI(t)],data:n,detailPanel:({rowData:l})=>l.graphId?Te.jsx(HSe,{graphId:l.graphId,widgetSize:e.widgetSize}):l.details?Te.jsx(O4,{details:l.details,widgetSize:e.widgetSize}):null,options:r})})},YI=e=>Te.jsxs("div",{children:[Te.jsx(mr,{align:"center",fontWeight:500,sx:{fontSize:36},children:e.value}),Te.jsx(mr,{align:"center",variant:"h5",fontWeight:500,children:e.label})]}),dZe=e=>Te.jsx(Xe.Fragment,{children:e.counters.length===1?Te.jsx(YI,{...e.counters[0]}):Te.jsx(hr,{container:!0,spacing:1,direction:"row",alignItems:"center",children:e.counters.map(t=>Te.jsx(hr,{item:!0,xs:!0,component:ka,height:"100%",children:Te.jsx(ka,{children:Te.jsx(YI,{...t})})},t.label+t.value))})}),fZe=e=>Te.jsxs("div",{children:[Te.jsxs(ka,{display:"flex",alignItems:"center",children:[Te.jsx(ka,{width:"100%",mr:1,children:Te.jsx(Qz,{variant:"determinate",value:e.value/e.maxValue*100})}),Te.jsx(ka,{minWidth:35,children:Te.jsx(mr,{variant:"body2",color:"textSecondary",children:`${Math.round(e.value/e.maxValue*100)}%`})})]}),Te.jsx(ka,{width:"100%",children:Te.jsx(mr,{variant:"body2",color:"textSecondary",children:e.details??""})})]}),pZe=kr(Te.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLessSharp"),hZe=kr(Te.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMoreSharp"),mZe=e=>{var i,o,a,s;const[t,n]=ge.useState(!1),l=hg()==="dark"?{template:{...Rd,layout:{...Rd.layout,colorway:((a=(o=(i=e.graph)==null?void 0:i.layout.template)==null?void 0:o.layout)==null?void 0:a.colorway)||((s=Rd.layout)==null?void 0:s.colorway)}}}:void 0;return Te.jsx(Xe.Fragment,{children:Te.jsxs(hr,{container:!0,spacing:2,justifyContent:"center",alignItems:"center",children:[Te.jsxs(hr,{item:!0,xs:2,children:[Te.jsx(mr,{variant:"h5",children:e.header}),Te.jsx(mr,{variant:"subtitle1",children:e.description})]}),Te.jsx(hr,{item:!0,xs:e.graph===void 0?10:5,children:Te.jsxs(h5,{children:[Te.jsx(g5,{children:Te.jsxs(Cm,{children:[Te.jsx(Mi,{}),e.metricsValuesHeaders.map(u=>Te.jsx(Mi,{children:u}))]})}),Te.jsx(m5,{children:e.metrics.map(u=>Te.jsxs(Cm,{children:[Te.jsx(Mi,{children:u.label}),u.values.map(c=>Te.jsx(Mi,{children:c}))]}))})]})}),e.graph===void 0?Te.jsx(Te.Fragment,{}):Te.jsx(hr,{item:!0,xs:5,children:Te.jsx(MB,{data:e.graph.data,layout:{...e.graph.layout,...l,title:void 0},config:{responsive:!0},style:{width:"100%",minHeight:150+100*(1+e.widgetSize/2),maxHeight:250}})}),e.details===void 0||e.details.parts.length===0?Te.jsx(Te.Fragment,{}):Te.jsxs(Te.Fragment,{children:[Te.jsx(hr,{item:!0,xs:12,children:Te.jsx(tl,{variant:"outlined",startIcon:t?Te.jsx(pZe,{}):Te.jsx(hZe,{}),onClick:()=>n(u=>!u),children:"Details"})}),Te.jsx(hr,{item:!0,xs:12,children:Te.jsx(wb,{in:t,mountOnEnter:!0,unmountOnExit:!0,children:Te.jsx(O4,{details:e.details,widgetSize:e.widgetSize})})})]})]})})},gZe=e=>Te.jsx(M4,{tabs:e.graphs.map(t=>({title:t.title,tab:Te.jsx(Db,{widgetSize:e.widgetSize,data:t.graph.data,layout:t.graph.layout})}))}),vZe=e=>Te.jsx(M4,{tabs:e.tabs.map(t=>({title:t.title,tab:Ng(`${e.id}1`,t.widget)}))}),yZe=e=>Te.jsx(Ide,{children:Te.jsxs(h5,{sx:{minWidth:650},size:"small","aria-label":"a dense table",children:[Te.jsx(g5,{children:Te.jsxs(Cm,{children:[Te.jsx(Mi,{children:e.header[0]},-1),e.header.slice(1).map(t=>Te.jsx(Mi,{align:"right",children:t},t))]})}),Te.jsx(m5,{children:e.data.map(t=>Te.jsxs(Cm,{children:[Te.jsx(Mi,{component:"th",scope:"row",children:t[0]},-1),t.slice(1).map(n=>Te.jsx(Mi,{align:"right",children:n},n))]},t[0]))})]})});function bZe(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const xZe=/[ \t\n\f\r]/g;function wZe(e){return typeof e=="object"?e.type==="text"?XI(e.value):!1:XI(e)}function XI(e){return e.replace(xZe,"")===""}class Ig{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Ig.prototype.property={};Ig.prototype.normal={};Ig.prototype.space=null;function gX(e,t){const n={},r={};let l=-1;for(;++l4&&n.slice(0,4)==="data"&&CZe.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(ZI,AZe);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!ZI.test(i)){let o=i.replace(MZe,OZe);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}l=OP}return new l(r,t)}function OZe(e){return"-"+e.toLowerCase()}function AZe(e){return e.charAt(1).toUpperCase()}const DZe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},EZe=gX([bX,yX,_X,TX,SZe],"html"),SX=gX([bX,yX,_X,TX,kZe],"svg");function RZe(e){return e.join(" ").trim()}var AP={exports:{}},QI=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,LZe=/\n/g,IZe=/^\s*/,$Ze=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,NZe=/^:\s*/,FZe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,jZe=/^[;\s]*/,zZe=/^\s+|\s+$/g,BZe=` +`,JI="/",e$="*",Fu="",WZe="comment",qZe="declaration",UZe=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function l(h){var g=h.match(LZe);g&&(n+=g.length);var b=h.lastIndexOf(BZe);r=~b?h.length-b:r+h.length}function i(){var h={line:n,column:r};return function(g){return g.position=new o(h),u(),g}}function o(h){this.start=h,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function a(h){var g=new Error(t.source+":"+n+":"+r+": "+h);if(g.reason=h,g.filename=t.source,g.line=n,g.column=r,g.source=e,!t.silent)throw g}function s(h){var g=h.exec(e);if(g){var b=g[0];return l(b),e=e.slice(b.length),g}}function u(){s(IZe)}function c(h){var g;for(h=h||[];g=d();)g!==!1&&h.push(g);return h}function d(){var h=i();if(!(JI!=e.charAt(0)||e$!=e.charAt(1))){for(var g=2;Fu!=e.charAt(g)&&(e$!=e.charAt(g)||JI!=e.charAt(g+1));)++g;if(g+=2,Fu===e.charAt(g-1))return a("End of comment missing");var b=e.slice(2,g-2);return r+=2,l(b),e=e.slice(g),r+=2,h({type:WZe,comment:b})}}function f(){var h=i(),g=s($Ze);if(g){if(d(),!s(NZe))return a("property missing ':'");var b=s(FZe),v=h({type:qZe,property:t$(g[0].replace(QI,Fu)),value:b?t$(b[0].replace(QI,Fu)):Fu});return s(jZe),v}}function p(){var h=[];c(h);for(var g;g=f();)g!==!1&&(h.push(g),c(h));return h}return u(),p()};function t$(e){return e?e.replace(zZe,Fu):Fu}var HZe=UZe;function kX(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,l=HZe(e),i=typeof t=="function",o,a,s=0,u=l.length;s0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function YZe(e){const t=DP(e),n=CX(e);if(t&&n)return{start:t,end:n}}function Jh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?n$(e.position):"start"in e||"end"in e?n$(e):"line"in e||"column"in e?yC(e):""}function yC(e){return r$(e&&e.line)+":"+r$(e&&e.column)}function n$(e){return yC(e&&e.start)+"-"+yC(e&&e.end)}function r$(e){return e&&typeof e=="number"?e:1}class Oo extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let l="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?l=t:!i.cause&&t&&(o=!0,l=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?i.ruleId=r:(i.source=r.slice(0,s),i.ruleId=r.slice(s+1))}if(!i.place&&i.ancestors&&i.ancestors){const s=i.ancestors[i.ancestors.length-1];s&&(i.place=s.position)}const a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=l,this.line=a?a.line:void 0,this.name=Jh(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}Oo.prototype.file="";Oo.prototype.name="";Oo.prototype.reason="";Oo.prototype.message="";Oo.prototype.stack="";Oo.prototype.column=void 0;Oo.prototype.line=void 0;Oo.prototype.ancestors=void 0;Oo.prototype.cause=void 0;Oo.prototype.fatal=void 0;Oo.prototype.place=void 0;Oo.prototype.ruleId=void 0;Oo.prototype.source=void 0;const EP={}.hasOwnProperty,XZe=new Map,KZe=/[A-Z]/g,ZZe=/-([a-z])/g,QZe=new Set(["table","tbody","thead","tfoot","tr"]),JZe=new Set(["td","th"]);function eQe(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=nQe(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=tQe(n,t.jsx,t.jsxs)}const l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?SX:EZe,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=PX(l,e,void 0);return i&&typeof i!="string"?i:l.create(e,l.Fragment,{children:i||void 0},void 0)}function PX(e,t,n){if(t.type==="element"||t.type==="root"){const r=e.schema;let l=r;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(l=SX,e.schema=l),e.ancestors.push(t);let i=rQe(e,t);const o=aQe(e,e.ancestors);let a=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(i&&QZe.has(t.tagName)&&(i=i.filter(function(s){return typeof s=="string"?!wZe(s):!0})),EP.call(e.components,t.tagName)){const s=t.tagName;a=e.components[s],typeof a!="string"&&a!==e.Fragment&&e.passNode&&(o.node=t)}else a=t.tagName;if(i.length>0){const s=i.length>1?i:i[0];s&&(o.children=s)}return e.schema=r,e.create(t,a,o,n)}if(t.type==="text")return t.value}function tQe(e,t,n){return r;function r(l,i,o,a){const u=Array.isArray(o.children)?n:t;return a?u(i,o,a):u(i,o)}}function nQe(e,t){return n;function n(r,l,i,o){const a=Array.isArray(i.children),s=DP(r);return t(l,i,o,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function rQe(e,t){const n=[];let r=-1;const l=e.passKeys?new Map:XZe;for(;++r-1&&e.test(String.fromCharCode(n))}}const gQe={'"':"quot","&":"amp","<":"lt",">":"gt"};function vQe(e){return e.replace(/["&<>]/g,t);function t(n){return"&"+gQe[n]+";"}}function yQe(e,t){const n=vQe(zc(e||""));if(!t)return n;const r=n.indexOf(":"),l=n.indexOf("?"),i=n.indexOf("#"),o=n.indexOf("/");return r<0||o>-1&&r>o||l>-1&&r>l||i>-1&&r>i||t.test(n.slice(0,r))?n:""}function zc(e){const t=[];let n=-1,r=0,l=0;for(;++n55295&&i<57344){const a=e.charCodeAt(n+1);i<56320&&a>56319&&a<57344?(o=String.fromCharCode(i,a),l=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+l+1,o=""),l&&(n+=l,l=0)}return t.join("")+e.slice(r)}const bQe={};function xQe(e,t){const n=bQe,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,l=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return AX(e,r,l)}function AX(e,t,n){if(wQe(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return a$(e.children,t,n)}return Array.isArray(e)?a$(e,t,n):""}function a$(e,t,n){const r=[];let l=-1;for(;++ll?0:l+t:t=t>l?l:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i0?(jl(e,e.length,0,t),e):t}const i$={}.hasOwnProperty;function _Qe(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCharCode(n)}function Fd(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function Ur(e,t,n,r){const l=r?r-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(s){return Sr(s)?(e.enter(n),a(s)):t(s)}function a(s){return Sr(s)&&i++o))return;const S=t.events.length;let k=S,C,T;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){if(C){T=t.events[k][1].end;break}C=!0}for(v(r),w=S;wy;){const _=n[x];t.containerState=_[1],_[0].exit.call(t,e)}n.length=y}function m(){l.write([null]),i=void 0,l=void 0,t.containerState._closeFlow=void 0}}function OQe(e,t,n){return Ur(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function s$(e){if(e===null||Uo(e)||mQe(e))return 1;if(hQe(e))return 2}function LP(e,t,n){const r=[];let l=-1;for(;++l1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),f=Object.assign({},e[n][1].start);u$(d,-s),u$(f,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:f},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},l={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},a.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=ki(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=ki(u,[["enter",l,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=ki(u,LP(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=ki(u,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",l,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=ki(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,jl(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n0&&Sr(w)?Ur(e,m,"linePrefix",i+1)(w):m(w)}function m(w){return w===null||Yn(w)?e.check(c$,g,x)(w):(e.enter("codeFlowValue"),y(w))}function y(w){return w===null||Yn(w)?(e.exit("codeFlowValue"),m(w)):(e.consume(w),y)}function x(w){return e.exit("codeFenced"),t(w)}function _(w,S,k){let C=0;return T;function T(E){return w.enter("lineEnding"),w.consume(E),w.exit("lineEnding"),M}function M(E){return w.enter("codeFencedFence"),Sr(E)?Ur(w,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):O(E)}function O(E){return E===a?(w.enter("codeFencedFenceSequence"),D(E)):k(E)}function D(E){return E===a?(C++,w.consume(E),D):C>=o?(w.exit("codeFencedFenceSequence"),Sr(E)?Ur(w,P,"whitespace")(E):P(E)):k(E)}function P(E){return E===null||Yn(E)?(w.exit("codeFencedFence"),S(E)):k(E)}}}function BQe(e,t,n){const r=this;return l;function l(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const pT={name:"codeIndented",tokenize:qQe},WQe={tokenize:UQe,partial:!0};function qQe(e,t,n){const r=this;return l;function l(u){return e.enter("codeIndented"),Ur(e,i,"linePrefix",5)(u)}function i(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?s(u):Yn(u)?e.attempt(WQe,o,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||Yn(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),t(u)}}function UQe(e,t,n){const r=this;return l;function l(o){return r.parser.lazy[r.now().line]?n(o):Yn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):Ur(e,i,"linePrefix",5)(o)}function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):Yn(o)?l(o):n(o)}}const HQe={name:"codeText",tokenize:YQe,resolve:VQe,previous:GQe};function VQe(e){let t=e.length-4,n=3,r,l;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function $X(e,t,n,r,l,i,o,a,s){const u=s||Number.POSITIVE_INFINITY;let c=0;return d;function d(v){return v===60?(e.enter(r),e.enter(l),e.enter(i),e.consume(v),e.exit(i),f):v===null||v===32||v===41||bC(v)?n(v):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),g(v))}function f(v){return v===62?(e.enter(i),e.consume(v),e.exit(i),e.exit(l),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(v))}function p(v){return v===62?(e.exit("chunkString"),e.exit(a),f(v)):v===null||v===60||Yn(v)?n(v):(e.consume(v),v===92?h:p)}function h(v){return v===60||v===62||v===92?(e.consume(v),p):p(v)}function g(v){return!c&&(v===null||v===41||Uo(v))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(v)):c999||p===null||p===91||p===93&&!s||p===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?n(p):p===93?(e.exit(i),e.enter(l),e.consume(p),e.exit(l),e.exit(r),t):Yn(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||Yn(p)||a++>999?(e.exit("chunkString"),c(p)):(e.consume(p),s||(s=!Sr(p)),p===92?f:d)}function f(p){return p===91||p===92||p===93?(e.consume(p),a++,d):d(p)}}function FX(e,t,n,r,l,i){let o;return a;function a(f){return f===34||f===39||f===40?(e.enter(r),e.enter(l),e.consume(f),e.exit(l),o=f===40?41:f,s):n(f)}function s(f){return f===o?(e.enter(l),e.consume(f),e.exit(l),e.exit(r),t):(e.enter(i),u(f))}function u(f){return f===o?(e.exit(i),s(o)):f===null?n(f):Yn(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Ur(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===o||f===null||Yn(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?d:c)}function d(f){return f===o||f===92?(e.consume(f),c):c(f)}}function em(e,t){let n;return r;function r(l){return Yn(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n=!0,r):Sr(l)?Ur(e,r,n?"linePrefix":"lineSuffix")(l):t(l)}}const tJe={name:"definition",tokenize:rJe},nJe={tokenize:aJe,partial:!0};function rJe(e,t,n){const r=this;let l;return i;function i(p){return e.enter("definition"),o(p)}function o(p){return NX.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return l=Fd(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),s):n(p)}function s(p){return Uo(p)?em(e,u)(p):u(p)}function u(p){return $X(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(nJe,d,d)(p)}function d(p){return Sr(p)?Ur(e,f,"whitespace")(p):f(p)}function f(p){return p===null||Yn(p)?(e.exit("definition"),r.parser.defined.push(l),t(p)):n(p)}}function aJe(e,t,n){return r;function r(a){return Uo(a)?em(e,l)(a):n(a)}function l(a){return FX(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return Sr(a)?Ur(e,o,"whitespace")(a):o(a)}function o(a){return a===null||Yn(a)?t(a):n(a)}}const oJe={name:"hardBreakEscape",tokenize:iJe};function iJe(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),l}function l(i){return Yn(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const lJe={name:"headingAtx",tokenize:uJe,resolve:sJe};function sJe(e,t){let n=e.length-2,r=3,l,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(l={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},jl(e,r,n-r+1,[["enter",l,t],["enter",i,t],["exit",i,t],["exit",l,t]])),e}function uJe(e,t,n){let r=0;return l;function l(c){return e.enter("atxHeading"),i(c)}function i(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||Uo(c)?(e.exit("atxHeadingSequence"),a(c)):n(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||Yn(c)?(e.exit("atxHeading"),t(c)):Sr(c)?Ur(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function s(c){return c===35?(e.consume(c),s):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||Uo(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}const cJe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],f$=["pre","script","style","textarea"],dJe={name:"htmlFlow",tokenize:mJe,resolveTo:hJe,concrete:!0},fJe={tokenize:vJe,partial:!0},pJe={tokenize:gJe,partial:!0};function hJe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function mJe(e,t,n){const r=this;let l,i,o,a,s;return u;function u(R){return c(R)}function c(R){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(R),d}function d(R){return R===33?(e.consume(R),f):R===47?(e.consume(R),i=!0,g):R===63?(e.consume(R),l=3,r.interrupt?t:B):Pl(R)?(e.consume(R),o=String.fromCharCode(R),b):n(R)}function f(R){return R===45?(e.consume(R),l=2,p):R===91?(e.consume(R),l=5,a=0,h):Pl(R)?(e.consume(R),l=4,r.interrupt?t:B):n(R)}function p(R){return R===45?(e.consume(R),r.interrupt?t:B):n(R)}function h(R){const q="CDATA[";return R===q.charCodeAt(a++)?(e.consume(R),a===q.length?r.interrupt?t:O:h):n(R)}function g(R){return Pl(R)?(e.consume(R),o=String.fromCharCode(R),b):n(R)}function b(R){if(R===null||R===47||R===62||Uo(R)){const q=R===47,Y=o.toLowerCase();return!q&&!i&&f$.includes(Y)?(l=1,r.interrupt?t(R):O(R)):cJe.includes(o.toLowerCase())?(l=6,q?(e.consume(R),v):r.interrupt?t(R):O(R)):(l=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(R):i?m(R):y(R))}return R===45||ri(R)?(e.consume(R),o+=String.fromCharCode(R),b):n(R)}function v(R){return R===62?(e.consume(R),r.interrupt?t:O):n(R)}function m(R){return Sr(R)?(e.consume(R),m):T(R)}function y(R){return R===47?(e.consume(R),T):R===58||R===95||Pl(R)?(e.consume(R),x):Sr(R)?(e.consume(R),y):T(R)}function x(R){return R===45||R===46||R===58||R===95||ri(R)?(e.consume(R),x):_(R)}function _(R){return R===61?(e.consume(R),w):Sr(R)?(e.consume(R),_):y(R)}function w(R){return R===null||R===60||R===61||R===62||R===96?n(R):R===34||R===39?(e.consume(R),s=R,S):Sr(R)?(e.consume(R),w):k(R)}function S(R){return R===s?(e.consume(R),s=null,C):R===null||Yn(R)?n(R):(e.consume(R),S)}function k(R){return R===null||R===34||R===39||R===47||R===60||R===61||R===62||R===96||Uo(R)?_(R):(e.consume(R),k)}function C(R){return R===47||R===62||Sr(R)?y(R):n(R)}function T(R){return R===62?(e.consume(R),M):n(R)}function M(R){return R===null||Yn(R)?O(R):Sr(R)?(e.consume(R),M):n(R)}function O(R){return R===45&&l===2?(e.consume(R),I):R===60&&l===1?(e.consume(R),A):R===62&&l===4?(e.consume(R),z):R===63&&l===3?(e.consume(R),B):R===93&&l===5?(e.consume(R),j):Yn(R)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(fJe,N,D)(R)):R===null||Yn(R)?(e.exit("htmlFlowData"),D(R)):(e.consume(R),O)}function D(R){return e.check(pJe,P,N)(R)}function P(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),E}function E(R){return R===null||Yn(R)?D(R):(e.enter("htmlFlowData"),O(R))}function I(R){return R===45?(e.consume(R),B):O(R)}function A(R){return R===47?(e.consume(R),o="",F):O(R)}function F(R){if(R===62){const q=o.toLowerCase();return f$.includes(q)?(e.consume(R),z):O(R)}return Pl(R)&&o.length<8?(e.consume(R),o+=String.fromCharCode(R),F):O(R)}function j(R){return R===93?(e.consume(R),B):O(R)}function B(R){return R===62?(e.consume(R),z):R===45&&l===2?(e.consume(R),B):O(R)}function z(R){return R===null||Yn(R)?(e.exit("htmlFlowData"),N(R)):(e.consume(R),z)}function N(R){return e.exit("htmlFlow"),t(R)}}function gJe(e,t,n){const r=this;return l;function l(o){return Yn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function vJe(e,t,n){return r;function r(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(X2,t,n)}}const yJe={name:"htmlText",tokenize:bJe};function bJe(e,t,n){const r=this;let l,i,o;return a;function a(B){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(B),s}function s(B){return B===33?(e.consume(B),u):B===47?(e.consume(B),_):B===63?(e.consume(B),y):Pl(B)?(e.consume(B),k):n(B)}function u(B){return B===45?(e.consume(B),c):B===91?(e.consume(B),i=0,h):Pl(B)?(e.consume(B),m):n(B)}function c(B){return B===45?(e.consume(B),p):n(B)}function d(B){return B===null?n(B):B===45?(e.consume(B),f):Yn(B)?(o=d,A(B)):(e.consume(B),d)}function f(B){return B===45?(e.consume(B),p):d(B)}function p(B){return B===62?I(B):B===45?f(B):d(B)}function h(B){const z="CDATA[";return B===z.charCodeAt(i++)?(e.consume(B),i===z.length?g:h):n(B)}function g(B){return B===null?n(B):B===93?(e.consume(B),b):Yn(B)?(o=g,A(B)):(e.consume(B),g)}function b(B){return B===93?(e.consume(B),v):g(B)}function v(B){return B===62?I(B):B===93?(e.consume(B),v):g(B)}function m(B){return B===null||B===62?I(B):Yn(B)?(o=m,A(B)):(e.consume(B),m)}function y(B){return B===null?n(B):B===63?(e.consume(B),x):Yn(B)?(o=y,A(B)):(e.consume(B),y)}function x(B){return B===62?I(B):y(B)}function _(B){return Pl(B)?(e.consume(B),w):n(B)}function w(B){return B===45||ri(B)?(e.consume(B),w):S(B)}function S(B){return Yn(B)?(o=S,A(B)):Sr(B)?(e.consume(B),S):I(B)}function k(B){return B===45||ri(B)?(e.consume(B),k):B===47||B===62||Uo(B)?C(B):n(B)}function C(B){return B===47?(e.consume(B),I):B===58||B===95||Pl(B)?(e.consume(B),T):Yn(B)?(o=C,A(B)):Sr(B)?(e.consume(B),C):I(B)}function T(B){return B===45||B===46||B===58||B===95||ri(B)?(e.consume(B),T):M(B)}function M(B){return B===61?(e.consume(B),O):Yn(B)?(o=M,A(B)):Sr(B)?(e.consume(B),M):C(B)}function O(B){return B===null||B===60||B===61||B===62||B===96?n(B):B===34||B===39?(e.consume(B),l=B,D):Yn(B)?(o=O,A(B)):Sr(B)?(e.consume(B),O):(e.consume(B),P)}function D(B){return B===l?(e.consume(B),l=void 0,E):B===null?n(B):Yn(B)?(o=D,A(B)):(e.consume(B),D)}function P(B){return B===null||B===34||B===39||B===60||B===61||B===96?n(B):B===47||B===62||Uo(B)?C(B):(e.consume(B),P)}function E(B){return B===47||B===62||Uo(B)?C(B):n(B)}function I(B){return B===62?(e.consume(B),e.exit("htmlTextData"),e.exit("htmlText"),t):n(B)}function A(B){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),F}function F(B){return Sr(B)?Ur(e,j,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):j(B)}function j(B){return e.enter("htmlTextData"),o(B)}}const IP={name:"labelEnd",tokenize:kJe,resolveTo:SJe,resolveAll:TJe},xJe={tokenize:CJe},wJe={tokenize:MJe},_Je={tokenize:PJe};function TJe(e){let t=-1;for(;++t=3&&(u===null||Yn(u))?(e.exit("thematicBreak"),t(u)):n(u)}function s(u){return u===l?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),Sr(u)?Ur(e,a,"whitespace")(u):a(u))}}const Eo={name:"list",tokenize:NJe,continuation:{tokenize:FJe},exit:zJe},IJe={tokenize:BJe,partial:!0},$Je={tokenize:jJe,partial:!0};function NJe(e,t,n){const r=this,l=r.events[r.events.length-1];let i=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,o=0;return a;function a(p){const h=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:xC(p)){if(r.containerState.type||(r.containerState.type=h,e.enter(h,{_container:!0})),h==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Nv,n,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(p)}return n(p)}function s(p){return xC(p)&&++o<10?(e.consume(p),s):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(X2,r.interrupt?n:c,e.attempt(IJe,f,d))}function c(p){return r.containerState.initialBlankLine=!0,i++,f(p)}function d(p){return Sr(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function FJe(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(X2,l,i);function l(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ur(e,t,"listItemIndent",r.containerState.size+1)(a)}function i(a){return r.containerState.furtherBlankLines||!Sr(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt($Je,t,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ur(e,e.attempt(Eo,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function jJe(e,t,n){const r=this;return Ur(e,l,"listItemIndent",r.containerState.size+1);function l(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)}}function zJe(e){e.exit(this.containerState.type)}function BJe(e,t,n){const r=this;return Ur(e,l,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(i){const o=r.events[r.events.length-1];return!Sr(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const p$={name:"setextUnderline",tokenize:qJe,resolveTo:WJe};function WJe(e,t){let n=e.length,r,l,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(l=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const o={type:"setextHeading",start:Object.assign({},e[l][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[l][1].type="setextHeadingText",i?(e.splice(l,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function qJe(e,t,n){const r=this;let l;return i;function i(u){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),l=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===l?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),Sr(u)?Ur(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||Yn(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const UJe={tokenize:HJe};function HJe(e){const t=this,n=e.attempt(X2,r,e.attempt(this.parser.constructs.flowInitial,l,Ur(e,e.attempt(this.parser.constructs.flow,l,e.attempt(KQe,l)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function l(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const VJe={resolveAll:zX()},GJe=jX("string"),YJe=jX("text");function jX(e){return{tokenize:t,resolveAll:zX(e==="text"?XJe:void 0)};function t(n){const r=this,l=this.parser.constructs[e],i=n.attempt(l,o,a);return o;function o(c){return u(c)?i(c):a(c)}function a(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),s}function s(c){return u(c)?(n.exit("data"),i(c)):(n.consume(c),s)}function u(c){if(c===null)return!0;const d=l[c];let f=-1;if(d)for(;++f-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}i>0&&o.push(e[l].slice(0,i))}return o}function QJe(e,t){let n=-1;const r=[];let l;for(;++n0){const de=we.tokenStack[we.tokenStack.length-1];(de[1]||m$).call(we,void 0,de[0])}for(ce.position={start:Rs(Pe.length>0?Pe[0][1].start:{line:1,column:1,offset:0}),end:Rs(Pe.length>0?Pe[Pe.length-2][1].end:{line:1,column:1,offset:0})},re=-1;++re1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function Cet(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Met(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function qX(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const l=e.all(t),i=l[0];i&&i.type==="text"?i.value="["+i.value:l.unshift({type:"text",value:"["});const o=l[l.length-1];return o&&o.type==="text"?o.value+=r:l.push({type:"text",value:r}),l}function Pet(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return qX(e,t);const l={src:zc(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(l.title=r.title);const i={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,i),e.applyData(t,i)}function Oet(e,t){const n={src:zc(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Aet(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Det(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return qX(e,t);const l={href:zc(r.url||"")};r.title!==null&&r.title!==void 0&&(l.title=r.title);const i={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Eet(e,t){const n={href:zc(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Ret(e,t,n){const r=e.all(t),l=n?Let(n):UX(t),i={},o=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let a=-1;for(;++a0){const de=we.tokenStack[we.tokenStack.length-1];(de[1]||m$).call(we,void 0,de[0])}for(ce.position={start:Rs(Pe.length>0?Pe[0][1].start:{line:1,column:1,offset:0}),end:Rs(Pe.length>0?Pe[Pe.length-2][1].end:{line:1,column:1,offset:0})},re=-1;++re1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function Met(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Pet(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function qX(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const l=e.all(t),i=l[0];i&&i.type==="text"?i.value="["+i.value:l.unshift({type:"text",value:"["});const o=l[l.length-1];return o&&o.type==="text"?o.value+=r:l.push({type:"text",value:r}),l}function Oet(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return qX(e,t);const l={src:zc(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(l.title=r.title);const i={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,i),e.applyData(t,i)}function Aet(e,t){const n={src:zc(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Det(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Eet(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return qX(e,t);const l={href:zc(r.url||"")};r.title!==null&&r.title!==void 0&&(l.title=r.title);const i={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Ret(e,t){const n={href:zc(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Let(e,t,n){const r=e.all(t),l=n?Iet(n):UX(t),i={},o=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let a=-1;for(;++a1}function Iet(e,t){const n={},r=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++l0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=DP(t.children[1]),s=CX(t.children[t.children.length-1]);a&&s&&(o.position={start:a,end:s}),l.push(o)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,i),e.applyData(t,i)}function zet(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,a=o?o.length:t.children.length;let s=-1;const u=[];for(;++s0,!0),r[0]),l=r.index+r[0].length,r=n.exec(t);return i.push(y$(t.slice(l),l>0,!1)),i.join("")}function y$(e,t,n){let r=0,l=e.length;if(t){let i=e.codePointAt(r);for(;i===g$||i===v$;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(l-1);for(;i===g$||i===v$;)l--,i=e.codePointAt(l-1)}return l>r?e.slice(r,l):""}function qet(e,t){const n={type:"text",value:Wet(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Uet(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Het={blockquote:bet,break:xet,code:wet,delete:_et,emphasis:Tet,footnoteReference:ket,heading:Cet,html:Met,imageReference:Pet,image:Oet,inlineCode:Aet,linkReference:Det,link:Eet,listItem:Ret,list:Iet,paragraph:$et,root:Net,strong:Fet,table:jet,tableCell:Bet,tableRow:zet,text:qet,thematicBreak:Uet,toml:G0,yaml:G0,definition:G0,footnoteDefinition:G0};function G0(){}const HX=-1,K2=0,b1=1,x1=2,$P=3,NP=4,FP=5,jP=6,VX=7,GX=8,b$=typeof self=="object"?self:globalThis,Vet=(e,t)=>{const n=(l,i)=>(e.set(i,l),l),r=l=>{if(e.has(l))return e.get(l);const[i,o]=t[l];switch(i){case K2:case HX:return n(o,l);case b1:{const a=n([],l);for(const s of o)a.push(r(s));return a}case x1:{const a=n({},l);for(const[s,u]of o)a[r(s)]=r(u);return a}case $P:return n(new Date(o),l);case NP:{const{source:a,flags:s}=o;return n(new RegExp(a,s),l)}case FP:{const a=n(new Map,l);for(const[s,u]of o)a.set(r(s),r(u));return a}case jP:{const a=n(new Set,l);for(const s of o)a.add(r(s));return a}case VX:{const{name:a,message:s}=o;return n(new b$[a](s),l)}case GX:return n(BigInt(o),l);case"BigInt":return n(Object(BigInt(o)),l)}return n(new b$[i](o),l)};return r},x$=e=>Vet(new Map,e)(0),ad="",{toString:Get}={},{keys:Yet}=Object,bh=e=>{const t=typeof e;if(t!=="object"||!e)return[K2,t];const n=Get.call(e).slice(8,-1);switch(n){case"Array":return[b1,ad];case"Object":return[x1,ad];case"Date":return[$P,ad];case"RegExp":return[NP,ad];case"Map":return[FP,ad];case"Set":return[jP,ad]}return n.includes("Array")?[b1,n]:n.includes("Error")?[VX,n]:[x1,n]},Y0=([e,t])=>e===K2&&(t==="function"||t==="symbol"),Xet=(e,t,n,r)=>{const l=(o,a)=>{const s=r.push(o)-1;return n.set(a,s),s},i=o=>{if(n.has(o))return n.get(o);let[a,s]=bh(o);switch(a){case K2:{let c=o;switch(s){case"bigint":a=GX,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);c=null;break;case"undefined":return l([HX],o)}return l([a,c],o)}case b1:{if(s)return l([s,[...o]],o);const c=[],d=l([a,c],o);for(const f of o)c.push(i(f));return d}case x1:{if(s)switch(s){case"BigInt":return l([s,o.toString()],o);case"Boolean":case"Number":case"String":return l([s,o.valueOf()],o)}if(t&&"toJSON"in o)return i(o.toJSON());const c=[],d=l([a,c],o);for(const f of Yet(o))(e||!Y0(bh(o[f])))&&c.push([i(f),i(o[f])]);return d}case $P:return l([a,o.toISOString()],o);case NP:{const{source:c,flags:d}=o;return l([a,{source:c,flags:d}],o)}case FP:{const c=[],d=l([a,c],o);for(const[f,p]of o)(e||!(Y0(bh(f))||Y0(bh(p))))&&c.push([i(f),i(p)]);return d}case jP:{const c=[],d=l([a,c],o);for(const f of o)(e||!Y0(bh(f)))&&c.push(i(f));return d}}const{message:u}=o;return l([a,{name:s,message:u}],o)};return i},w$=(e,{json:t,lossy:n}={})=>{const r=[];return Xet(!(t||n),!!t,new Map,r)(e),r},w1=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?x$(w$(e,t)):structuredClone(e):(e,t)=>x$(w$(e,t));function Ket(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Zet(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Qet(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Ket,r=e.options.footnoteBackLabel||Zet,l=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let s=-1;for(;++s0&&h.push({type:"text",value:" "});let m=typeof n=="string"?n:n(s,p);typeof m=="string"&&(m={type:"text",value:m}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,p),className:["data-footnote-backref"]},children:Array.isArray(m)?m:[m]})}const b=c[c.length-1];if(b&&b.type==="element"&&b.tagName==="p"){const m=b.children[b.children.length-1];m&&m.type==="text"?m.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(...h)}else c.push(...h);const v={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(c,!0)};e.patch(u,v),a.push(v)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...w1(o),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:` +`});const u={type:"element",tagName:"li",properties:i,children:o};return e.patch(t,u),e.applyData(t,u)}function Iet(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r1}function $et(e,t){const n={},r=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++l0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=DP(t.children[1]),s=CX(t.children[t.children.length-1]);a&&s&&(o.position={start:a,end:s}),l.push(o)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,i),e.applyData(t,i)}function Bet(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,a=o?o.length:t.children.length;let s=-1;const u=[];for(;++s0,!0),r[0]),l=r.index+r[0].length,r=n.exec(t);return i.push(y$(t.slice(l),l>0,!1)),i.join("")}function y$(e,t,n){let r=0,l=e.length;if(t){let i=e.codePointAt(r);for(;i===g$||i===v$;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(l-1);for(;i===g$||i===v$;)l--,i=e.codePointAt(l-1)}return l>r?e.slice(r,l):""}function Uet(e,t){const n={type:"text",value:qet(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Het(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Vet={blockquote:xet,break:wet,code:_et,delete:Tet,emphasis:ket,footnoteReference:Cet,heading:Met,html:Pet,imageReference:Oet,image:Aet,inlineCode:Det,linkReference:Eet,link:Ret,listItem:Let,list:$et,paragraph:Net,root:Fet,strong:jet,table:zet,tableCell:Wet,tableRow:Bet,text:Uet,thematicBreak:Het,toml:G0,yaml:G0,definition:G0,footnoteDefinition:G0};function G0(){}const HX=-1,K2=0,b1=1,x1=2,$P=3,NP=4,FP=5,jP=6,VX=7,GX=8,b$=typeof self=="object"?self:globalThis,Get=(e,t)=>{const n=(l,i)=>(e.set(i,l),l),r=l=>{if(e.has(l))return e.get(l);const[i,o]=t[l];switch(i){case K2:case HX:return n(o,l);case b1:{const a=n([],l);for(const s of o)a.push(r(s));return a}case x1:{const a=n({},l);for(const[s,u]of o)a[r(s)]=r(u);return a}case $P:return n(new Date(o),l);case NP:{const{source:a,flags:s}=o;return n(new RegExp(a,s),l)}case FP:{const a=n(new Map,l);for(const[s,u]of o)a.set(r(s),r(u));return a}case jP:{const a=n(new Set,l);for(const s of o)a.add(r(s));return a}case VX:{const{name:a,message:s}=o;return n(new b$[a](s),l)}case GX:return n(BigInt(o),l);case"BigInt":return n(Object(BigInt(o)),l)}return n(new b$[i](o),l)};return r},x$=e=>Get(new Map,e)(0),ad="",{toString:Yet}={},{keys:Xet}=Object,bh=e=>{const t=typeof e;if(t!=="object"||!e)return[K2,t];const n=Yet.call(e).slice(8,-1);switch(n){case"Array":return[b1,ad];case"Object":return[x1,ad];case"Date":return[$P,ad];case"RegExp":return[NP,ad];case"Map":return[FP,ad];case"Set":return[jP,ad]}return n.includes("Array")?[b1,n]:n.includes("Error")?[VX,n]:[x1,n]},Y0=([e,t])=>e===K2&&(t==="function"||t==="symbol"),Ket=(e,t,n,r)=>{const l=(o,a)=>{const s=r.push(o)-1;return n.set(a,s),s},i=o=>{if(n.has(o))return n.get(o);let[a,s]=bh(o);switch(a){case K2:{let c=o;switch(s){case"bigint":a=GX,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);c=null;break;case"undefined":return l([HX],o)}return l([a,c],o)}case b1:{if(s)return l([s,[...o]],o);const c=[],d=l([a,c],o);for(const f of o)c.push(i(f));return d}case x1:{if(s)switch(s){case"BigInt":return l([s,o.toString()],o);case"Boolean":case"Number":case"String":return l([s,o.valueOf()],o)}if(t&&"toJSON"in o)return i(o.toJSON());const c=[],d=l([a,c],o);for(const f of Xet(o))(e||!Y0(bh(o[f])))&&c.push([i(f),i(o[f])]);return d}case $P:return l([a,o.toISOString()],o);case NP:{const{source:c,flags:d}=o;return l([a,{source:c,flags:d}],o)}case FP:{const c=[],d=l([a,c],o);for(const[f,p]of o)(e||!(Y0(bh(f))||Y0(bh(p))))&&c.push([i(f),i(p)]);return d}case jP:{const c=[],d=l([a,c],o);for(const f of o)(e||!Y0(bh(f)))&&c.push(i(f));return d}}const{message:u}=o;return l([a,{name:s,message:u}],o)};return i},w$=(e,{json:t,lossy:n}={})=>{const r=[];return Ket(!(t||n),!!t,new Map,r)(e),r},w1=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?x$(w$(e,t)):structuredClone(e):(e,t)=>x$(w$(e,t));function Zet(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Qet(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Jet(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Zet,r=e.options.footnoteBackLabel||Qet,l=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let s=-1;for(;++s0&&h.push({type:"text",value:" "});let m=typeof n=="string"?n:n(s,p);typeof m=="string"&&(m={type:"text",value:m}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,p),className:["data-footnote-backref"]},children:Array.isArray(m)?m:[m]})}const b=c[c.length-1];if(b&&b.type==="element"&&b.tagName==="p"){const m=b.children[b.children.length-1];m&&m.type==="text"?m.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(...h)}else c.push(...h);const v={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(c,!0)};e.patch(u,v),a.push(v)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...w1(o),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:` -`}]}}const YX=function(e){if(e==null)return ntt;if(typeof e=="function")return Z2(e);if(typeof e=="object")return Array.isArray(e)?Jet(e):ett(e);if(typeof e=="string")return ttt(e);throw new Error("Expected function, string, or object as test")};function Jet(e){const t=[];let n=-1;for(;++n":""))+")"})}return f;function f(){let p=XX,h,g,b;if((!t||i(s,u,c[c.length-1]||void 0))&&(p=ltt(n(s,c)),p[0]===_$))return p;if("children"in s&&s.children){const v=s;if(v.children&&p[0]!==ott)for(g=(r?v.children.length:-1)+o,b=c.concat(v);g>-1&&g":""))+")"})}return f;function f(){let p=XX,h,g,b;if((!t||i(s,u,c[c.length-1]||void 0))&&(p=stt(n(s,c)),p[0]===_$))return p;if("children"in s&&s.children){const v=s;if(v.children&&p[0]!==itt)for(g=(r?v.children.length:-1)+o,b=c.concat(v);g>-1&&g0&&n.push({type:"text",value:` -`}),n}function T$(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function S$(e,t){const n=utt(e,t),r=n.one(e,void 0),l=Qet(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return l&&i.children.push({type:"text",value:` -`},l),i}function htt(e,t){return e&&"run"in e?async function(n,r){const l=S$(n,t);await e.run(l,r)}:function(n){return S$(n,t||e)}}function k$(e){if(e)throw e}var Fv=Object.prototype.hasOwnProperty,ZX=Object.prototype.toString,C$=Object.defineProperty,M$=Object.getOwnPropertyDescriptor,P$=function(t){return typeof Array.isArray=="function"?Array.isArray(t):ZX.call(t)==="[object Array]"},O$=function(t){if(!t||ZX.call(t)!=="[object Object]")return!1;var n=Fv.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Fv.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var l;for(l in t);return typeof l>"u"||Fv.call(t,l)},A$=function(t,n){C$&&n.name==="__proto__"?C$(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},D$=function(t,n){if(n==="__proto__")if(Fv.call(t,n)){if(M$)return M$(t,n).value}else return;return t[n]},mtt=function e(){var t,n,r,l,i,o,a=arguments[0],s=1,u=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},s=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});so.length;let s;a&&o.push(l);try{s=e.apply(this,o)}catch(u){const c=u;if(a&&n)throw c;return l(c)}a||(s instanceof Promise?s.then(i,l):s instanceof Error?l(s):i(s))}function l(o,...a){n||(n=!0,t(o,...a))}function i(o){l(null,o)}}const bl={basename:ytt,dirname:btt,extname:xtt,join:wtt,sep:"/"};function ytt(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');$g(e);let n=0,r=-1,l=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(i){n=l+1;break}}else r<0&&(i=!0,r=l+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,a=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(i){n=l+1;break}}else o<0&&(i=!0,o=l+1),a>-1&&(e.codePointAt(l)===t.codePointAt(a--)?a<0&&(r=l):(a=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function btt(e){if($g(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function xtt(e){$g(e);let t=e.length,n=-1,r=0,l=-1,i=0,o;for(;t--;){const a=e.codePointAt(t);if(a===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),a===46?l<0?l=t:i!==1&&(i=1):l>-1&&(i=-1)}return l<0||n<0||i===0||i===1&&l===n-1&&l===r+1?"":e.slice(l,n)}function wtt(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Ttt(e,t){let n="",r=0,l=-1,i=0,o=-1,a,s;for(;++o<=e.length;){if(o2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),l=o,i=0;continue}}else if(n.length>0){n="",r=0,l=o,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(l+1,o):n=e.slice(l+1,o),r=o-l-1;l=o,i=0}else a===46&&i>-1?i++:i=-1}return n}function $g(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Stt={cwd:ktt};function ktt(){return"/"}function SC(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Ctt(e){if(typeof e=="string")e=new URL(e);else if(!SC(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Mtt(e)}function Mtt(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[p,...h]=c;const g=r[f][1];TC(g)&&TC(p)&&(p=mT(!0,g,p)),r[f]=[u,p,...h]}}}}const Dtt=new zP().freeze();function bT(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function xT(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function wT(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function R$(e){if(!TC(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function L$(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function X0(e){return Ett(e)?e:new QX(e)}function Ett(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Rtt(e){return typeof e=="string"||Ltt(e)}function Ltt(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const I$={}.hasOwnProperty,Itt="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",$$=[],N$={allowDangerousHtml:!0},$tt=/^(https?|ircs?|mailto|xmpp)$/i,Ntt=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function JX(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",l=e.className,i=e.components,o=e.disallowedElements,a=e.rehypePlugins||$$,s=e.remarkPlugins||$$,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...N$}:N$,c=e.skipHtml,d=e.unwrapDisallowed,f=e.urlTransform||Ftt,p=Dtt().use(yet).use(s).use(htt,u).use(a),h=new QX;typeof r=="string"&&(h.value=r);for(const m of Ntt)Object.hasOwn(e,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+Itt+m.id,void 0);const g=p.parse(h);let b=p.runSync(g,h);return l&&(b={type:"element",tagName:"div",properties:{className:l},children:b.type==="root"?b.children:[b]}),KX(b,v),JZe(b,{Fragment:Te.Fragment,components:i,ignoreInvalidStyle:!0,jsx:Te.jsx,jsxs:Te.jsxs,passKeys:!0,passNode:!0});function v(m,y,x){if(m.type==="raw"&&x&&typeof y=="number")return c?x.children.splice(y,1):x.children[y]={type:"text",value:m.value},y;if(m.type==="element"){let _;for(_ in fT)if(I$.call(fT,_)&&I$.call(m.properties,_)){const w=m.properties[_],S=fT[_];(S===null||S.includes(m.tagName))&&(m.properties[_]=f(String(w||""),_,m))}}if(m.type==="element"){let _=t?!t.includes(m.tagName):o?o.includes(m.tagName):!1;if(!_&&n&&typeof y=="number"&&(_=!n(m,y,x)),_&&x&&typeof y=="number")return d&&m.children?x.children.splice(y,1,...m.children):x.children.splice(y,1),y}}}function Ftt(e){return vQe(e,$tt)}const F$=["unknown","success","warning","fail"],eK=e=>{switch(e){case"error":case"unknown":return"info";case"success":return"success";case"warning":return"warning";case"fail":return"error"}},tK=({title:e,description:t,state:n,details:r})=>{const[l,i]=ge.useState({active:!1}),o=r!=null&&r.parts.length>0;return F$.includes(n)||(console.error(`unexpected state: ${n} (expected one of [${F$.join(", ")}])`),n="unknown"),Te.jsx(Te.Fragment,{children:Te.jsxs(ka,{children:[Te.jsxs(P4,{severity:eK(n),action:o?Te.jsx(tl,{onClick:()=>i(a=>({active:!a.active})),color:"inherit",size:"small",children:"Details"}):null,children:[Te.jsx(n5,{children:e}),Te.jsx(JX,{children:t})]}),o?Te.jsx(wb,{in:l.active,mountOnEnter:!0,unmountOnExit:!0,children:Te.jsx(ka,{style:{padding:"2px"},children:Te.jsx(O4,{details:r,widgetSize:2})})}):Te.jsx(Te.Fragment,{})]})})},jtt=({type:e,availableTypes:t,onChange:n})=>Te.jsx(Te.Fragment,{children:Te.jsx(Tf,{variant:"standard",value:e,onChange:r=>n(r.target.value),native:!0,children:t.map(r=>Te.jsx("option",{value:r.id,children:r.title},r.id))})}),ztt=({groupInfo:e,tests:t})=>{const[n,r]=ge.useState({active:!1});return Te.jsx(Te.Fragment,{children:Te.jsxs(ka,{mt:2,px:2,children:[Te.jsxs(P4,{severity:eK(e.severity??"unknown"),icon:!1,action:Te.jsx(tl,{onClick:()=>r(l=>({active:!l.active})),color:"inherit",size:"small",children:n.active?"Hide":"Show"}),children:[Te.jsx(n5,{children:e.title}),e.description]}),Te.jsx(wb,{in:n.active,mountOnEnter:!0,unmountOnExit:!0,children:Te.jsx(hr,{container:!0,spacing:2,style:{padding:10,paddingTop:20},children:t.map(l=>Te.jsx(hr,{item:!0,xs:12,children:Te.jsx(tK,{...l})}))})})]})})},Btt=({type:e,groupsInfo:t,tests:n})=>{function r(a){if(a==="status")return[t.find(c=>c.id===a).values,c=>c.state];const s=t.find(c=>c.id===a);if(s===void 0)throw"unexpected type";return[s.values.find(c=>c.id==="no group")!==void 0?s.values:[...s.values,{id:"no group",title:"No Group",sortIndex:-1,description:"No group of this type was provided"}],c=>c.groups[a]??"no group"]}const[l,i]=r(e),o=n.reduce((a,s)=>(a.set(i(s),[...a.get(i(s))??[],s]),a),new Map);return Te.jsx(Te.Fragment,{children:Te.jsx(hr,{container:!0,spacing:2,children:Array.from(o.entries()).map(([a,s])=>[l.find(u=>u.id===a)??{id:a,title:a},s]).sort((a,s)=>(a[0].sortIndex??0)-(s[0].sortIndex??0)).map(([a,s])=>Te.jsx(hr,{item:!0,xs:12,children:Te.jsx(ztt,{groupInfo:a,tests:s})}))})})},Wtt=[{id:"none",title:"All tests",values:[]},{id:"status",title:"By test status",values:[{id:"success",title:"Passed tests",sortIndex:3,description:"",severity:"success"},{id:"fail",title:"Failed tests",sortIndex:1,description:"",severity:"fail"},{id:"warning",title:"Failed non-critical tests",sortIndex:2,description:"",severity:"warning"},{id:"error",title:"Tests with execution errors",sortIndex:2,description:"",severity:"error"}]}],qtt=({tests:e,testGroupTypes:t})=>{const[n,r]=Ke.useState({group_type:"none"}),l=[];for(let o=0;oc===u)===-1&&l.push(u)}const i=[...Wtt,...(t??[]).filter(o=>l.findIndex(a=>a===o.id)!==-1)];return Te.jsx(Te.Fragment,{children:Te.jsxs(hr,{container:!0,spacing:2,children:[Te.jsx(hr,{item:!0,xs:12,children:Te.jsx(jtt,{type:n.group_type,availableTypes:i,onChange:o=>r({group_type:o})})}),Te.jsx(hr,{item:!0,xs:12,children:Te.jsx(hr,{container:!0,spacing:2,children:n.group_type==="none"?e.map(o=>Te.jsx(hr,{item:!0,xs:12,children:Te.jsx(tK,{...o})},o.title+o.description)):Te.jsx(Btt,{type:n.group_type,groupsInfo:i,tests:e})})})]})})},Utt=e=>Te.jsx(Te.Fragment,{children:Te.jsx(JX,{children:e.text})});function K0(e){return e.palette.mode==="dark"?$l:Il}function Z0(e){return e.palette.mode==="light"?Il:$l}const kC=e=>{const[t,n]=ge.useState({open:!1});return Te.jsxs(pu,{elevation:0,onClick:r=>n(l=>({open:!l.open,anchorEl:r.currentTarget})),sx:[{border:"1px solid",borderColor:r=>r.palette.divider},{color:r=>Z0(r)(r.palette.info.main,.6),backgroundColor:r=>K0(r)(r.palette.info.main,.9)},e.data.state==="success"&&{color:r=>Z0(r)(r.palette.success.main,.6),backgroundColor:r=>K0(r)(r.palette.success.main,.9)},e.data.state==="warning"&&{color:r=>Z0(r)(r.palette.warning.main,.6),backgroundColor:r=>K0(r)(r.palette.warning.main,.9)},e.data.state==="error"&&{color:r=>Z0(r)(r.palette.error.main,.6),backgroundColor:r=>K0(r)(r.palette.error.main,.9)}],children:[Te.jsx(mr,{align:"center",variant:"h6",component:"div",children:e.data.value}),Te.jsx(mr,{align:"center",variant:"body1",component:"div",children:e.data.text}),Te.jsx(Ab,{open:t.open,anchorEl:t.anchorEl,anchorOrigin:{horizontal:"left",vertical:"bottom"},children:e.customPopup??Te.jsx(mr,{padding:1,children:e.data.longText})})]})},j$=e=>{const{alertStats:t}=e;return Te.jsx(kC,{data:{value:`${t.triggered.last_24h}`,state:"info",text:"alerts in the last 24 hours",longText:"alerts triggered in the period / alerts triggered in 24 hours / alerts active "},customPopup:Te.jsx(mr,{sx:{pr:1},children:Te.jsxs("ul",{children:[Te.jsxs("li",{children:[t.triggered.period," alerts triggered in the period"]}),Te.jsxs("li",{children:[t.triggered.last_24h," alerts triggered in 24 hours"]}),Te.jsxs("li",{children:[t.active," total active alerts"]})]})})})};function Htt(e){return e===12?{xs:12,sm:12,md:12,lg:12}:e===6?{xs:12,sm:12,md:6,lg:6}:e===3?{xs:12,sm:6,md:3,lg:3}:{xs:6,sm:3,md:1,lg:1}}const Vtt=e=>{const{size:t,ItemWrapper:n}=e,r=e.children.alertsPosition??"row",{id:l,title:i,details:o,content:a,alerts:s,alertStats:u,insights:c}=e.children,d=s===void 0?!1:s.length>0,f=c===void 0?!1:c.length>0,p=Te.jsx(lle,{elevation:0,children:Te.jsx(dle,{children:Te.jsxs(hr,{container:!0,spacing:1,direction:"column",children:[r==="row"?Te.jsxs(hr,{container:!0,spacing:1,item:!0,children:[Te.jsxs(hr,{item:!0,xs:d&&r==="row"?9:12,children:[i?Te.jsx(mr,{fontWeight:500,variant:"h5",children:i}):Te.jsx("div",{}),Te.jsx("div",{children:a}),o?Te.jsx(mr,{variant:"subtitle1",children:o}):Te.jsx("div",{})]}),d?Te.jsx(hr,{container:!0,spacing:1,direction:"column",justifyContent:"center",item:!0,xs:3,children:s?Te.jsxs(Ke.Fragment,{children:[u?Te.jsx(hr,{item:!0,children:Te.jsx(j$,{alertStats:u})}):Te.jsx("div",{}),s.map(h=>Te.jsx(hr,{item:!0,children:Te.jsx(kC,{data:h})}))]}):Te.jsx("div",{})}):Te.jsx("div",{})]}):Te.jsxs(Ke.Fragment,{children:[Te.jsxs(hr,{item:!0,children:[i?Te.jsx(mr,{variant:"h5",children:i}):Te.jsx("div",{}),Te.jsx("div",{children:a}),o?Te.jsx(mr,{variant:"subtitle1",children:o}):Te.jsx("div",{})]}),d?Te.jsx(hr,{item:!0,xs:!0,children:Te.jsx(hr,{container:!0,direction:"row",spacing:1,children:s?Te.jsxs(Ke.Fragment,{children:[u?Te.jsx(hr,{item:!0,xs:!0,children:Te.jsx(j$,{alertStats:u})}):Te.jsx("div",{}),s.map(h=>Te.jsx(hr,{item:!0,xs:!0,children:Te.jsx(kC,{data:h})}))]}):Te.jsx("div",{})})}):Te.jsx("div",{})]}),f?c==null?void 0:c.map(h=>Te.jsx(hr,{item:!0,xs:!0,sm:!0,md:!0,children:Te.jsx(RU,{data:h})})):Te.jsx("div",{})]})})});return Te.jsx(hr,{item:!0,...Htt(t),children:n?n({id:l,children:p}):p})};class nK extends Ke.Component{render(){return Te.jsx(hr,{container:!0,alignItems:"stretch",spacing:1,direction:"row",mt:1,children:this.props.children})}}const Gtt=kr(Te.jsx("path",{d:"m14 7-5 5 5 5z"}),"ArrowLeft"),Ytt=kr(Te.jsx("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight"),Xtt=e=>{const[t,n]=Ke.useState({page:0}),r=e.widgets.slice(t.page*e.pageSize,(t.page+1)*e.pageSize);return Te.jsxs(nK,{children:[r.map((l,i)=>Ng(`wi_${i}`,l)),Te.jsxs(hr,{item:!0,xs:12,children:[Te.jsx(tl,{startIcon:Te.jsx(Gtt,{}),disabled:t.page===0,onClick:()=>n(l=>({page:l.page-1})),children:"Previous"}),Te.jsxs("span",{children:[t.page+1," / ",Math.round(e.widgets.length/e.pageSize)]}),Te.jsx(tl,{endIcon:Te.jsx(Ytt,{}),disabled:t.page>=e.widgets.length/e.pageSize-1,onClick:()=>n(l=>({page:l.page+1})),children:"Next"})]})]})};function Ktt(e){return e===xv.Small?3:e===xv.Medium?6:(e===xv.Big,12)}function Ng(e,t,n){let r=Te.jsx(LU,{});if(t.type==="counter")r=Te.jsx(cZe,{...t.params});else if(t.type==="percent")r=Te.jsx(dZe,{...t.params});else if(t.type==="big_graph")r=Te.jsx(Db,{...t.params,widgetSize:t.size});else if(t.type==="tabbed_graph")r=Te.jsx(mZe,{...t.params,widgetSize:t.size});else if(t.type==="tabs")r=Te.jsx(gZe,{...t,widgetSize:t.size,id:"twc_"});else if(t.type==="table")r=Te.jsx(vZe,{...t.params});else if(t.type==="big_table")r=Te.jsx(uZe,{...t.params,widgetSize:t.size});else if(t.type==="group")r=Te.jsx(nK,{children:t.widgets.map((l,i)=>Ng(`wi_${i}`,l))});else if(t.type==="rich_data")r=Te.jsx(hZe,{...t.params,widgetSize:t.size});else if(t.type==="list"){const l=t;r=Te.jsx(Xtt,{widgets:l.widgets,pageSize:l.pageSize,widgetSize:t.size})}else t.type==="text"?r=Te.jsx(Utt,{...t.params}):t.type==="test_suite"&&(r=Te.jsx(qtt,{...t.params}));return Te.jsx(Vtt,{size:Ktt(t.size),ItemWrapper:n,children:{...t,content:r}},e)}const Ztt=({widgets:e,ItemWrapper:t})=>Te.jsx(Te.Fragment,{children:e.length>0&&e.map((n,r)=>Te.jsx(Ke.Fragment,{children:Ng(`wi_${r}`,n,t)},n.id))}),Qtt=({widgets:e,ItemWrapper:t})=>e.length===0?Te.jsx(mr,{my:3,align:"center",variant:"h4",children:"This dashboard is currently empty. Please add a monitoring panel to start."}):Te.jsx(Te.Fragment,{children:Te.jsx(hr,{container:!0,spacing:3,direction:"row",alignItems:"stretch",children:Te.jsx(Ztt,{widgets:e,ItemWrapper:t})})});function Jtt({dashboard:{widgets:e},additionalGraphs:t}){return Te.jsx(y5.Provider,{value:ape({getAdditionGraphData:n=>{const r=t.get(n);return r?Promise.resolve(r):Promise.reject("No graph found")},getAdditionWidgetData:n=>{const r=t.get(n);return r?Promise.resolve(r):Promise.reject("No graph found")}}),children:Te.jsx(Qtt,{widgets:e})})}function ent(e,t,n){const r=document.getElementById(n);r&&_T.createRoot(r).render(Te.jsx(Ke.StrictMode,{children:Te.jsxs(cz,{theme:tpe,children:[Te.jsx(qle,{}),Te.jsx(ka,{display:"flex",justifyContent:"flex-end",p:1,children:Te.jsx(npe,{})}),Te.jsx(Jtt,{dashboard:e,additionalGraphs:t})]})}))}window.drawDashboard=ent; +`}),n}function T$(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function S$(e,t){const n=ctt(e,t),r=n.one(e,void 0),l=Jet(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return l&&i.children.push({type:"text",value:` +`},l),i}function mtt(e,t){return e&&"run"in e?async function(n,r){const l=S$(n,t);await e.run(l,r)}:function(n){return S$(n,t||e)}}function k$(e){if(e)throw e}var Fv=Object.prototype.hasOwnProperty,ZX=Object.prototype.toString,C$=Object.defineProperty,M$=Object.getOwnPropertyDescriptor,P$=function(t){return typeof Array.isArray=="function"?Array.isArray(t):ZX.call(t)==="[object Array]"},O$=function(t){if(!t||ZX.call(t)!=="[object Object]")return!1;var n=Fv.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Fv.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var l;for(l in t);return typeof l>"u"||Fv.call(t,l)},A$=function(t,n){C$&&n.name==="__proto__"?C$(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},D$=function(t,n){if(n==="__proto__")if(Fv.call(t,n)){if(M$)return M$(t,n).value}else return;return t[n]},gtt=function e(){var t,n,r,l,i,o,a=arguments[0],s=1,u=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},s=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});so.length;let s;a&&o.push(l);try{s=e.apply(this,o)}catch(u){const c=u;if(a&&n)throw c;return l(c)}a||(s instanceof Promise?s.then(i,l):s instanceof Error?l(s):i(s))}function l(o,...a){n||(n=!0,t(o,...a))}function i(o){l(null,o)}}const bl={basename:btt,dirname:xtt,extname:wtt,join:_tt,sep:"/"};function btt(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');$g(e);let n=0,r=-1,l=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(i){n=l+1;break}}else r<0&&(i=!0,r=l+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,a=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(i){n=l+1;break}}else o<0&&(i=!0,o=l+1),a>-1&&(e.codePointAt(l)===t.codePointAt(a--)?a<0&&(r=l):(a=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function xtt(e){if($g(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function wtt(e){$g(e);let t=e.length,n=-1,r=0,l=-1,i=0,o;for(;t--;){const a=e.codePointAt(t);if(a===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),a===46?l<0?l=t:i!==1&&(i=1):l>-1&&(i=-1)}return l<0||n<0||i===0||i===1&&l===n-1&&l===r+1?"":e.slice(l,n)}function _tt(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Stt(e,t){let n="",r=0,l=-1,i=0,o=-1,a,s;for(;++o<=e.length;){if(o2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),l=o,i=0;continue}}else if(n.length>0){n="",r=0,l=o,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(l+1,o):n=e.slice(l+1,o),r=o-l-1;l=o,i=0}else a===46&&i>-1?i++:i=-1}return n}function $g(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const ktt={cwd:Ctt};function Ctt(){return"/"}function SC(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Mtt(e){if(typeof e=="string")e=new URL(e);else if(!SC(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Ptt(e)}function Ptt(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[p,...h]=c;const g=r[f][1];TC(g)&&TC(p)&&(p=mT(!0,g,p)),r[f]=[u,p,...h]}}}}const Ett=new zP().freeze();function bT(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function xT(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function wT(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function R$(e){if(!TC(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function L$(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function X0(e){return Rtt(e)?e:new QX(e)}function Rtt(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Ltt(e){return typeof e=="string"||Itt(e)}function Itt(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const I$={}.hasOwnProperty,$tt="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",$$=[],N$={allowDangerousHtml:!0},Ntt=/^(https?|ircs?|mailto|xmpp)$/i,Ftt=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function JX(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",l=e.className,i=e.components,o=e.disallowedElements,a=e.rehypePlugins||$$,s=e.remarkPlugins||$$,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...N$}:N$,c=e.skipHtml,d=e.unwrapDisallowed,f=e.urlTransform||jtt,p=Ett().use(bet).use(s).use(mtt,u).use(a),h=new QX;typeof r=="string"&&(h.value=r);for(const m of Ftt)Object.hasOwn(e,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+$tt+m.id,void 0);const g=p.parse(h);let b=p.runSync(g,h);return l&&(b={type:"element",tagName:"div",properties:{className:l},children:b.type==="root"?b.children:[b]}),KX(b,v),eQe(b,{Fragment:Te.Fragment,components:i,ignoreInvalidStyle:!0,jsx:Te.jsx,jsxs:Te.jsxs,passKeys:!0,passNode:!0});function v(m,y,x){if(m.type==="raw"&&x&&typeof y=="number")return c?x.children.splice(y,1):x.children[y]={type:"text",value:m.value},y;if(m.type==="element"){let _;for(_ in fT)if(I$.call(fT,_)&&I$.call(m.properties,_)){const w=m.properties[_],S=fT[_];(S===null||S.includes(m.tagName))&&(m.properties[_]=f(String(w||""),_,m))}}if(m.type==="element"){let _=t?!t.includes(m.tagName):o?o.includes(m.tagName):!1;if(!_&&n&&typeof y=="number"&&(_=!n(m,y,x)),_&&x&&typeof y=="number")return d&&m.children?x.children.splice(y,1,...m.children):x.children.splice(y,1),y}}}function jtt(e){return yQe(e,Ntt)}const F$=["unknown","success","warning","fail"],eK=e=>{switch(e){case"error":case"unknown":return"info";case"success":return"success";case"warning":return"warning";case"fail":return"error"}},tK=({title:e,description:t,state:n,details:r})=>{const[l,i]=ge.useState({active:!1}),o=r!=null&&r.parts.length>0;return F$.includes(n)||(console.error(`unexpected state: ${n} (expected one of [${F$.join(", ")}])`),n="unknown"),Te.jsx(Te.Fragment,{children:Te.jsxs(ka,{children:[Te.jsxs(P4,{severity:eK(n),action:o?Te.jsx(tl,{onClick:()=>i(a=>({active:!a.active})),color:"inherit",size:"small",children:"Details"}):null,children:[Te.jsx(n5,{children:e}),Te.jsx(JX,{children:t})]}),o?Te.jsx(wb,{in:l.active,mountOnEnter:!0,unmountOnExit:!0,children:Te.jsx(ka,{style:{padding:"2px"},children:Te.jsx(O4,{details:r,widgetSize:2})})}):Te.jsx(Te.Fragment,{})]})})},ztt=({type:e,availableTypes:t,onChange:n})=>Te.jsx(Te.Fragment,{children:Te.jsx(Tf,{variant:"standard",value:e,onChange:r=>n(r.target.value),native:!0,children:t.map(r=>Te.jsx("option",{value:r.id,children:r.title},r.id))})}),Btt=({groupInfo:e,tests:t})=>{const[n,r]=ge.useState({active:!1});return Te.jsx(Te.Fragment,{children:Te.jsxs(ka,{mt:2,px:2,children:[Te.jsxs(P4,{severity:eK(e.severity??"unknown"),icon:!1,action:Te.jsx(tl,{onClick:()=>r(l=>({active:!l.active})),color:"inherit",size:"small",children:n.active?"Hide":"Show"}),children:[Te.jsx(n5,{children:e.title}),e.description]}),Te.jsx(wb,{in:n.active,mountOnEnter:!0,unmountOnExit:!0,children:Te.jsx(hr,{container:!0,spacing:2,style:{padding:10,paddingTop:20},children:t.map(l=>Te.jsx(hr,{item:!0,xs:12,children:Te.jsx(tK,{...l})}))})})]})})},Wtt=({type:e,groupsInfo:t,tests:n})=>{function r(a){if(a==="status")return[t.find(c=>c.id===a).values,c=>c.state];const s=t.find(c=>c.id===a);if(s===void 0)throw"unexpected type";return[s.values.find(c=>c.id==="no group")!==void 0?s.values:[...s.values,{id:"no group",title:"No Group",sortIndex:-1,description:"No group of this type was provided"}],c=>c.groups[a]??"no group"]}const[l,i]=r(e),o=n.reduce((a,s)=>(a.set(i(s),[...a.get(i(s))??[],s]),a),new Map);return Te.jsx(Te.Fragment,{children:Te.jsx(hr,{container:!0,spacing:2,children:Array.from(o.entries()).map(([a,s])=>[l.find(u=>u.id===a)??{id:a,title:a},s]).sort((a,s)=>(a[0].sortIndex??0)-(s[0].sortIndex??0)).map(([a,s])=>Te.jsx(hr,{item:!0,xs:12,children:Te.jsx(Btt,{groupInfo:a,tests:s})}))})})},qtt=[{id:"none",title:"All tests",values:[]},{id:"status",title:"By test status",values:[{id:"success",title:"Passed tests",sortIndex:3,description:"",severity:"success"},{id:"fail",title:"Failed tests",sortIndex:1,description:"",severity:"fail"},{id:"warning",title:"Failed non-critical tests",sortIndex:2,description:"",severity:"warning"},{id:"error",title:"Tests with execution errors",sortIndex:2,description:"",severity:"error"}]}],Utt=({tests:e,testGroupTypes:t})=>{const[n,r]=Xe.useState({group_type:"none"}),l=[];for(let o=0;oc===u)===-1&&l.push(u)}const i=[...qtt,...(t??[]).filter(o=>l.findIndex(a=>a===o.id)!==-1)];return Te.jsx(Te.Fragment,{children:Te.jsxs(hr,{container:!0,spacing:2,children:[Te.jsx(hr,{item:!0,xs:12,children:Te.jsx(ztt,{type:n.group_type,availableTypes:i,onChange:o=>r({group_type:o})})}),Te.jsx(hr,{item:!0,xs:12,children:Te.jsx(hr,{container:!0,spacing:2,children:n.group_type==="none"?e.map(o=>Te.jsx(hr,{item:!0,xs:12,children:Te.jsx(tK,{...o})},o.title+o.description)):Te.jsx(Wtt,{type:n.group_type,groupsInfo:i,tests:e})})})]})})},Htt=e=>Te.jsx(Te.Fragment,{children:Te.jsx(JX,{children:e.text})}),Vtt=({children:e})=>Te.jsx(Te.Fragment,{children:e}),Gtt=Xe.createContext({WidgetWrapper:Vtt}),Ytt=()=>ge.useContext(Gtt);function K0(e){return e.palette.mode==="dark"?$l:Il}function Z0(e){return e.palette.mode==="light"?Il:$l}const kC=e=>{const[t,n]=ge.useState({open:!1});return Te.jsxs(pu,{elevation:0,onClick:r=>n(l=>({open:!l.open,anchorEl:r.currentTarget})),sx:[{border:"1px solid",borderColor:r=>r.palette.divider},{color:r=>Z0(r)(r.palette.info.main,.6),backgroundColor:r=>K0(r)(r.palette.info.main,.9)},e.data.state==="success"&&{color:r=>Z0(r)(r.palette.success.main,.6),backgroundColor:r=>K0(r)(r.palette.success.main,.9)},e.data.state==="warning"&&{color:r=>Z0(r)(r.palette.warning.main,.6),backgroundColor:r=>K0(r)(r.palette.warning.main,.9)},e.data.state==="error"&&{color:r=>Z0(r)(r.palette.error.main,.6),backgroundColor:r=>K0(r)(r.palette.error.main,.9)}],children:[Te.jsx(mr,{align:"center",variant:"h6",component:"div",children:e.data.value}),Te.jsx(mr,{align:"center",variant:"body1",component:"div",children:e.data.text}),Te.jsx(Ab,{open:t.open,anchorEl:t.anchorEl,anchorOrigin:{horizontal:"left",vertical:"bottom"},children:e.customPopup??Te.jsx(mr,{padding:1,children:e.data.longText})})]})},j$=e=>{const{alertStats:t}=e;return Te.jsx(kC,{data:{value:`${t.triggered.last_24h}`,state:"info",text:"alerts in the last 24 hours",longText:"alerts triggered in the period / alerts triggered in 24 hours / alerts active "},customPopup:Te.jsx(mr,{sx:{pr:1},children:Te.jsxs("ul",{children:[Te.jsxs("li",{children:[t.triggered.period," alerts triggered in the period"]}),Te.jsxs("li",{children:[t.triggered.last_24h," alerts triggered in 24 hours"]}),Te.jsxs("li",{children:[t.active," total active alerts"]})]})})})};function Xtt(e){return e===12?{xs:12,sm:12,md:12,lg:12}:e===6?{xs:12,sm:12,md:6,lg:6}:e===3?{xs:12,sm:6,md:3,lg:3}:{xs:6,sm:3,md:1,lg:1}}const Ktt=e=>{const{size:t}=e,n=e.children.alertsPosition??"row",{id:r,title:l,details:i,content:o,alerts:a,alertStats:s,insights:u}=e.children,c=a===void 0?!1:a.length>0,d=u===void 0?!1:u.length>0,{WidgetWrapper:f}=Ytt();return Te.jsx(hr,{item:!0,...Xtt(t),children:Te.jsx(f,{id:r,children:Te.jsx(lle,{elevation:0,children:Te.jsx(dle,{children:Te.jsxs(hr,{container:!0,spacing:1,direction:"column",children:[n==="row"?Te.jsxs(hr,{container:!0,spacing:1,item:!0,children:[Te.jsxs(hr,{item:!0,xs:c&&n==="row"?9:12,children:[l?Te.jsx(mr,{fontWeight:500,variant:"h5",children:l}):Te.jsx("div",{}),Te.jsx("div",{children:o}),i?Te.jsx(mr,{variant:"subtitle1",children:i}):Te.jsx("div",{})]}),c?Te.jsx(hr,{container:!0,spacing:1,direction:"column",justifyContent:"center",item:!0,xs:3,children:a?Te.jsxs(Xe.Fragment,{children:[s?Te.jsx(hr,{item:!0,children:Te.jsx(j$,{alertStats:s})}):Te.jsx("div",{}),a.map(p=>Te.jsx(hr,{item:!0,children:Te.jsx(kC,{data:p})}))]}):Te.jsx("div",{})}):Te.jsx("div",{})]}):Te.jsxs(Xe.Fragment,{children:[Te.jsxs(hr,{item:!0,children:[l?Te.jsx(mr,{variant:"h5",children:l}):Te.jsx("div",{}),Te.jsx("div",{children:o}),i?Te.jsx(mr,{variant:"subtitle1",children:i}):Te.jsx("div",{})]}),c?Te.jsx(hr,{item:!0,xs:!0,children:Te.jsx(hr,{container:!0,direction:"row",spacing:1,children:a?Te.jsxs(Xe.Fragment,{children:[s?Te.jsx(hr,{item:!0,xs:!0,children:Te.jsx(j$,{alertStats:s})}):Te.jsx("div",{}),a.map(p=>Te.jsx(hr,{item:!0,xs:!0,children:Te.jsx(kC,{data:p})}))]}):Te.jsx("div",{})})}):Te.jsx("div",{})]}),d?u==null?void 0:u.map(p=>Te.jsx(hr,{item:!0,xs:!0,sm:!0,md:!0,children:Te.jsx(RU,{data:p})})):Te.jsx("div",{})]})})})})})};class nK extends Xe.Component{render(){return Te.jsx(hr,{container:!0,alignItems:"stretch",spacing:1,direction:"row",mt:1,children:this.props.children})}}const Ztt=kr(Te.jsx("path",{d:"m14 7-5 5 5 5z"}),"ArrowLeft"),Qtt=kr(Te.jsx("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight"),Jtt=e=>{const[t,n]=Xe.useState({page:0}),r=e.widgets.slice(t.page*e.pageSize,(t.page+1)*e.pageSize);return Te.jsxs(nK,{children:[r.map((l,i)=>Ng(`wi_${i}`,l)),Te.jsxs(hr,{item:!0,xs:12,children:[Te.jsx(tl,{startIcon:Te.jsx(Ztt,{}),disabled:t.page===0,onClick:()=>n(l=>({page:l.page-1})),children:"Previous"}),Te.jsxs("span",{children:[t.page+1," / ",Math.round(e.widgets.length/e.pageSize)]}),Te.jsx(tl,{endIcon:Te.jsx(Qtt,{}),disabled:t.page>=e.widgets.length/e.pageSize-1,onClick:()=>n(l=>({page:l.page+1})),children:"Next"})]})]})};function ent(e){return e===xv.Small?3:e===xv.Medium?6:(e===xv.Big,12)}function Ng(e,t){let n=Te.jsx(LU,{});if(t.type==="counter")n=Te.jsx(dZe,{...t.params});else if(t.type==="percent")n=Te.jsx(fZe,{...t.params});else if(t.type==="big_graph")n=Te.jsx(Db,{...t.params,widgetSize:t.size});else if(t.type==="tabbed_graph")n=Te.jsx(gZe,{...t.params,widgetSize:t.size});else if(t.type==="tabs")n=Te.jsx(vZe,{...t,widgetSize:t.size,id:"twc_"});else if(t.type==="table")n=Te.jsx(yZe,{...t.params});else if(t.type==="big_table")n=Te.jsx(cZe,{...t.params,widgetSize:t.size});else if(t.type==="group")n=Te.jsx(nK,{children:t.widgets.map((r,l)=>Ng(`wi_${l}`,r))});else if(t.type==="rich_data")n=Te.jsx(mZe,{...t.params,widgetSize:t.size});else if(t.type==="list"){const r=t;n=Te.jsx(Jtt,{widgets:r.widgets,pageSize:r.pageSize,widgetSize:t.size})}else t.type==="text"?n=Te.jsx(Htt,{...t.params}):t.type==="test_suite"&&(n=Te.jsx(Utt,{...t.params}));return Te.jsx(Ktt,{size:ent(t.size),children:{...t,content:n}},e)}const tnt=({widgets:e})=>Te.jsx(Te.Fragment,{children:e.length>0&&e.map((t,n)=>Te.jsx(Xe.Fragment,{children:Ng(`wi_${n}`,t)},t.id))}),nnt=({widgets:e})=>e.length===0?Te.jsx(mr,{my:3,align:"center",variant:"h4",children:"This dashboard is currently empty. Please add a monitoring panel to start."}):Te.jsx(Te.Fragment,{children:Te.jsx(hr,{container:!0,spacing:3,direction:"row",alignItems:"stretch",children:Te.jsx(tnt,{widgets:e})})});function rnt({dashboard:{widgets:e},additionalGraphs:t}){return Te.jsx(y5.Provider,{value:ape({getAdditionGraphData:n=>{const r=t.get(n);return r?Promise.resolve(r):Promise.reject("No graph found")},getAdditionWidgetData:n=>{const r=t.get(n);return r?Promise.resolve(r):Promise.reject("No graph found")}}),children:Te.jsx(nnt,{widgets:e})})}function ant(e,t,n){const r=document.getElementById(n);r&&_T.createRoot(r).render(Te.jsx(Xe.StrictMode,{children:Te.jsxs(cz,{theme:tpe,children:[Te.jsx(qle,{}),Te.jsx(ka,{display:"flex",justifyContent:"flex-end",p:1,children:Te.jsx(npe,{})}),Te.jsx(rnt,{dashboard:e,additionalGraphs:t})]})}))}window.drawDashboard=ant; diff --git a/src/evidently/renderers/base_renderer.py b/src/evidently/renderers/base_renderer.py index 89901fdc89..36dd981fa6 100644 --- a/src/evidently/renderers/base_renderer.py +++ b/src/evidently/renderers/base_renderer.py @@ -74,6 +74,7 @@ class DetailsInfo: class TestHtmlInfo: name: str description: str + test_fingerprint: str status: str details: List[DetailsInfo] groups: Dict[str, str] @@ -98,6 +99,7 @@ def render_html(self, obj: TTest) -> TestHtmlInfo: return TestHtmlInfo( name=result.name, description=self.html_description(obj), + test_fingerprint=obj.get_fingerprint(), status=result.status.value, details=[], groups=obj.get_groups(), diff --git a/src/evidently/test_suite/test_suite.py b/src/evidently/test_suite/test_suite.py index 09c35ac120..afb7d4faeb 100644 --- a/src/evidently/test_suite/test_suite.py +++ b/src/evidently/test_suite/test_suite.py @@ -21,6 +21,7 @@ from evidently.model.widget import set_source_fingerprint from evidently.options.base import AnyOptions from evidently.pipeline.column_mapping import ColumnMapping +from evidently.renderers.base_renderer import TestHtmlInfo from evidently.renderers.base_renderer import TestRenderer from evidently.renderers.base_renderer import WidgetIdGenerator from evidently.renderers.base_renderer import replace_test_widget_ids @@ -212,7 +213,7 @@ def as_dict( # type: ignore[override] return result def _build_dashboard_info(self): - test_results = [] + test_results: List[TestHtmlInfo] = [] total_tests = len(self._inner_suite.context.test_results) by_status = {} color_options = self.options.color_options @@ -249,6 +250,7 @@ def _build_dashboard_info(self): dict( title=test_info.name, description=test_info.description, + test_fingerprint=test_info.test_fingerprint, state=test_info.status.lower(), details=dict( parts=[dict(id=item.id, title=item.title, type="widget") for item in test_info.details] diff --git a/src/evidently/ui/assets/index.html b/src/evidently/ui/assets/index.html index f9bba29ef1..3ff1194ae8 100644 --- a/src/evidently/ui/assets/index.html +++ b/src/evidently/ui/assets/index.html @@ -11,7 +11,7 @@ content="Evidently - ML Monitoring Demo. Hosted example to monitor the performance of a demand forecasting model on a toy dataset." /> Evidently - ML Monitoring Demo - + diff --git a/src/evidently/ui/assets/static/js/DashboardContent-Ka8LC1DI.js b/src/evidently/ui/assets/static/js/DashboardContent-B-RwgqJG.js similarity index 77% rename from src/evidently/ui/assets/static/js/DashboardContent-Ka8LC1DI.js rename to src/evidently/ui/assets/static/js/DashboardContent-B-RwgqJG.js index 08839d4d40..522593e1d3 100644 --- a/src/evidently/ui/assets/static/js/DashboardContent-Ka8LC1DI.js +++ b/src/evidently/ui/assets/static/js/DashboardContent-B-RwgqJG.js @@ -1,17 +1,17 @@ -var JD=Object.defineProperty;var QD=(e,t,r)=>t in e?JD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Nc=(e,t,r)=>(QD(e,typeof t!="symbol"?t+"":t,r),r);import{ay as ir,r as $e,az as Or,j as je,B as Kr,aA as qn,aB as e9,aC as t9,aD as n9,aE as Sa,aF as r9,aG as a9,aH as i9,aI as o9,aJ as l9,aK as s9,aL as u9,aM as c9,aN as f9,aO as d9,aP as h9,aQ as p9,aR as g9,aS as m9,aT as v9,aU as y9,aV as bn,aW as wr,aX as _r,aY as wn,T as Cr,aZ as Gt,a_ as Ef,a$ as Vn,b0 as b9,b1 as Tr,b2 as fr,b3 as x9,b4 as gy,b5 as Od,b6 as eS,b7 as tS,b8 as w9,b9 as _l,ba as my,bb as _9,ah as Ad,bc as ro,I as jl,bd as T9,be as k9,bf as nS,bg as M9,bh as oe,bi as S9,G as Jn,p as hi,bj as C9,al as O9,P as rS,bk as A9,bl as sg,am as P9,bm as D9,bn as E9,bo as z2,bp as R9,a as vy,a9 as aS,bq as L9,aa as A0,br as I9,bs as F9,bt as N9,bu as j9,bv as $9,bw as B9,bx as z9,by as q9,bz as W9,bA as q2,bB as U9,bC as yy,m as H9,R as et,bD as V9,bE as Y9,bF as G9,bG as X9,bH as Z9,bI as K9,bJ as J9,bK as Q9,bL as eE,d as by,bM as tE,bN as nE,a2 as iS,$ as rE,ar as oS,as as lS,at as Rf,au as Vi,aw as sS,bO as aE,bP as iE,H as xy,bQ as oE,D as lE,bR as uS,bS as cS,bT as sE,bU as uE,bV as cE,bW as fE}from"./vendor-C2GWNUp2.js";import{u as dE}from"./DashboardViewParams-D9XhJzJS.js";import{u as fS,A as wy,a as _y}from"./index-BnvKIZBQ.js";var hf=(e=>(e[e.Small=0]="Small",e[e.Medium=1]="Medium",e[e.Big=2]="Big",e))(hf||{}),dS={exports:{}};(function(e,t){/*! For license information please see plotly-cartesian.min.js.LICENSE.txt */(function(r,i){e.exports=i()})(self,function(){return function(){var r={98847:function(o,a,n){var l=n(71828),f={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var s in f){var u=s.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");l.addStyleRule(u,f[s])}},98222:function(o,a,n){o.exports=n(82887)},27206:function(o,a,n){o.exports=n(60822)},5224:function(o,a,n){o.exports=n(83832)},59509:function(o,a,n){o.exports=n(72201)},49866:function(o,a,n){o.exports=n(99442)},19548:function(o,a,n){o.exports=n(8729)},61039:function(o,a,n){o.exports=n(14382)},24296:function(o,a,n){o.exports=n(43102)},58872:function(o,a,n){o.exports=n(92165)},65591:function(o,a,n){o.exports=n(36071)},69738:function(o,a,n){o.exports=n(43905)},92650:function(o,a,n){o.exports=n(35902)},73434:function(o,a,n){o.exports=n(94507)},760:function(o,a,n){var l=n(19548);l.register([n(27206),n(5224),n(58872),n(65591),n(69738),n(92650),n(49866),n(25743),n(6197),n(73434),n(54201),n(98222),n(61039),n(24296),n(66398),n(59509)]),o.exports=l},54201:function(o,a,n){o.exports=n(58810)},25743:function(o,a,n){o.exports=n(52979)},66398:function(o,a,n){o.exports=n(32275)},6197:function(o,a,n){o.exports=n(47462)},82884:function(o){o.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},50215:function(o,a,n){var l=n(82884),f=n(41940),s=n(85555),u=n(44467).templatedArray;n(24695),o.exports=u("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:f({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:l.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:l.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",s.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",s.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",s.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",s.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:f({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},3749:function(o,a,n){var l=n(71828),f=n(89298),s=n(92605).draw;function u(h){var p=h._fullLayout;l.filterVisible(p.annotations).forEach(function(m){var y=f.getFromId(h,m.xref),v=f.getFromId(h,m.yref),g=f.getRefType(m.xref),b=f.getRefType(m.yref);m._extremes={},g==="range"&&d(m,y),b==="range"&&d(m,v)})}function d(h,p){var m,y=p._id,v=y.charAt(0),g=h[v],b=h["a"+v],x=h[v+"ref"],_=h["a"+v+"ref"],w=h["_"+v+"padplus"],k=h["_"+v+"padminus"],T={x:1,y:-1}[v]*h[v+"shift"],M=3*h.arrowsize*h.arrowwidth||0,S=M+T,C=M-T,P=3*h.startarrowsize*h.arrowwidth||0,D=P+T,O=P-T;if(_===x){var R=f.findExtremes(p,[p.r2c(g)],{ppadplus:S,ppadminus:C}),F=f.findExtremes(p,[p.r2c(b)],{ppadplus:Math.max(w,D),ppadminus:Math.max(k,O)});m={min:[R.min[0],F.min[0]],max:[R.max[0],F.max[0]]}}else D=b?D+b:D,O=b?O-b:O,m=f.findExtremes(p,[p.r2c(g)],{ppadplus:Math.max(w,S,D),ppadminus:Math.max(k,C,O)});h._extremes[y]=m}o.exports=function(h){var p=h._fullLayout;if(l.filterVisible(p.annotations).length&&h._fullData.length)return l.syncOrAsync([s,u],h)}},44317:function(o,a,n){var l=n(71828),f=n(73972),s=n(44467).arrayEditor;function u(h,p){var m,y,v,g,b,x,_,w=h._fullLayout.annotations,k=[],T=[],M=[],S=(p||[]).length;for(m=0;m0||m.explicitOff.length>0},onClick:function(h,p){var m,y,v=u(h,p),g=v.on,b=v.off.concat(v.explicitOff),x={},_=h._fullLayout.annotations;if(g.length||b.length){for(m=0;m.6666666666666666?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[nt]}for(var we=!1,ke=["x","y"],Ae=0;Ae1)&&(Ye===qe?((Je=at.r2fraction(S["a"+Ue]))<0||Je>1)&&(we=!0):we=!0),Ee=at._offset+at.r2p(S[Ue]),Ie=.5}else{var ut=kt==="domain";Ue==="x"?(Re=S[Ue],Ee=ut?at._offset+at._length*Re:Ee=z.l+z.w*Re):(Re=1-S[Ue],Ee=ut?at._offset+at._length*Re:Ee=z.t+z.h*Re),Ie=S.showarrow?.5:Re}if(S.showarrow){it.head=Ee;var pt=S["a"+Ue];if(Be=ct*be(.5,S.xanchor)-bt*be(.5,S.yanchor),Ye===qe){var It=h.getRefType(Ye);It==="domain"?(Ue==="y"&&(pt=1-pt),it.tail=at._offset+at._length*pt):It==="paper"?Ue==="y"?(pt=1-pt,it.tail=z.t+z.h*pt):it.tail=z.l+z.w*pt:it.tail=at._offset+at.r2p(pt),De=Be}else it.tail=Ee+pt,De=Be+pt;it.text=it.tail+Be;var Mt=A[Ue==="x"?"width":"height"];if(qe==="paper"&&(it.head=u.constrain(it.head,1,Mt-1)),Ye==="pixel"){var zt=-Math.max(it.tail-3,it.text),wt=Math.min(it.tail+3,it.text)-Mt;zt>0?(it.tail+=zt,it.text+=zt):wt>0&&(it.tail-=wt,it.text-=wt)}it.tail+=Qe,it.head+=Qe}else De=Be=ze*be(Ie,Ne),it.text=Ee+Be;it.text+=Qe,Be+=Qe,De+=Qe,S["_"+Ue+"padplus"]=ze/2+De,S["_"+Ue+"padminus"]=ze/2-De,S["_"+Ue+"size"]=ze,S["_"+Ue+"shift"]=Be}if(we)ee.remove();else{var ve=0,_e=0;if(S.align!=="left"&&(ve=(de-J)*(S.align==="center"?.5:1)),S.valign!=="top"&&(_e=(xe-ne)*(S.valign==="middle"?.5:1)),ce)Me.select("svg").attr({x:Y+ve-1,y:Y+_e}).call(m.setClipUrl,X?W:null,M);else{var Ve=Y+_e-ye.top,We=Y+ve-ye.left;se.call(v.positionText,We,Ve).call(m.setClipUrl,X?W:null,M)}re.select("rect").call(m.setRect,Y,Y,de,xe),Z.call(m.setRect,U/2,U/2,ue-U,ge-U),ee.call(m.setTranslate,Math.round(G.x.text-ue/2),Math.round(G.y.text-ge/2)),H.attr({transform:"rotate("+L+","+G.x.text+","+G.y.text+")"});var Ze,Ge=function(Ke,nt){q.selectAll(".annotation-arrow-g").remove();var st=G.x.head,mt=G.y.head,tt=G.x.tail+Ke,Ft=G.y.tail+nt,Vt=G.x.text+Ke,St=G.y.text+nt,Nt=u.rotationXYMatrix(L,Vt,St),Dt=u.apply2DTransform(Nt),gt=u.apply2DTransform2(Nt),ht=+Z.attr("width"),yt=+Z.attr("height"),qt=Vt-.5*ht,Et=qt+ht,jt=St-.5*yt,Tt=jt+yt,Ot=[[qt,jt,qt,Tt],[qt,Tt,Et,Tt],[Et,Tt,Et,jt],[Et,jt,qt,jt]].map(gt);if(!Ot.reduce(function(an,sn){return an^!!u.segmentsIntersect(st,mt,st+1e6,mt+1e6,sn[0],sn[1],sn[2],sn[3])},!1)){Ot.forEach(function(an){var sn=u.segmentsIntersect(tt,Ft,st,mt,an[0],an[1],an[2],an[3]);sn&&(tt=sn.x,Ft=sn.y)});var At=S.arrowwidth,Lt=S.arrowcolor,Rt=S.arrowside,$t=q.append("g").style({opacity:p.opacity(Lt)}).classed("annotation-arrow-g",!0),Yt=$t.append("path").attr("d","M"+tt+","+Ft+"L"+st+","+mt).style("stroke-width",At+"px").call(p.stroke,p.rgb(Lt));if(_(Yt,Rt,S),B.annotationPosition&&Yt.node().parentNode&&!P){var Xt=st,Bt=mt;if(S.standoff){var Wt=Math.sqrt(Math.pow(st-tt,2)+Math.pow(mt-Ft,2));Xt+=S.standoff*(tt-st)/Wt,Bt+=S.standoff*(Ft-mt)/Wt}var tn,cn,ln=$t.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(tt-Xt)+","+(Ft-Bt),transform:d(Xt,Bt)}).style("stroke-width",At+6+"px").call(p.stroke,"rgba(0,0,0,0)").call(p.fill,"rgba(0,0,0,0)");b.init({element:ln.node(),gd:M,prepFn:function(){var an=m.getTranslate(ee);tn=an.x,cn=an.y,D&&D.autorange&&j(D._name+".autorange",!0),O&&O.autorange&&j(O._name+".autorange",!0)},moveFn:function(an,sn){var Zt=Dt(tn,cn),pn=Zt[0]+an,nn=Zt[1]+sn;ee.call(m.setTranslate,pn,nn),N("x",k(D,an,"x",z,S)),N("y",k(O,sn,"y",z,S)),S.axref===S.xref&&N("ax",k(D,an,"ax",z,S)),S.ayref===S.yref&&N("ay",k(O,sn,"ay",z,S)),$t.attr("transform",d(an,sn)),H.attr({transform:"rotate("+L+","+pn+","+nn+")"})},doneFn:function(){f.call("_guiRelayout",M,E());var an=document.querySelector(".js-notes-box-panel");an&&an.redraw(an.selectedObj)}})}}};S.showarrow&&Ge(0,0),V&&b.init({element:ee.node(),gd:M,prepFn:function(){Ze=H.attr("transform")},moveFn:function(Ke,nt){var st="pointer";if(S.showarrow)S.axref===S.xref?N("ax",k(D,Ke,"ax",z,S)):N("ax",S.ax+Ke),S.ayref===S.yref?N("ay",k(O,nt,"ay",z.w,S)):N("ay",S.ay+nt),Ge(Ke,nt);else{if(P)return;var mt,tt;if(D)mt=k(D,Ke,"x",z,S);else{var Ft=S._xsize/z.w,Vt=S.x+(S._xshift-S.xshift)/z.w-Ft/2;mt=b.align(Vt+Ke/z.w,Ft,0,1,S.xanchor)}if(O)tt=k(O,nt,"y",z,S);else{var St=S._ysize/z.h,Nt=S.y-(S._yshift+S.yshift)/z.h-St/2;tt=b.align(Nt-nt/z.h,St,0,1,S.yanchor)}N("x",mt),N("y",tt),D&&O||(st=b.getCursor(D?.5:mt,O?.5:tt,S.xanchor,S.yanchor))}H.attr({transform:d(Ke,nt)+Ze}),g(ee,st)},clickFn:function(Ke,nt){S.captureevents&&M.emit("plotly_clickannotation",pe(nt))},doneFn:function(){g(ee),f.call("_guiRelayout",M,E());var Ke=document.querySelector(".js-notes-box-panel");Ke&&Ke.redraw(Ke.selectedObj)}})}}}o.exports={draw:function(M){var S=M._fullLayout;S._infolayer.selectAll(".annotation").remove();for(var C=0;C=0,P=y.indexOf("end")>=0,D=k.backoff*M+v.standoff,O=T.backoff*S+v.startstandoff;if(w.nodeName==="line"){g={x:+m.attr("x1"),y:+m.attr("y1")},b={x:+m.attr("x2"),y:+m.attr("y2")};var R=g.x-b.x,F=g.y-b.y;if(_=(x=Math.atan2(F,R))+Math.PI,D&&O&&D+O>Math.sqrt(R*R+F*F))return void q();if(D){if(D*D>R*R+F*F)return void q();var A=D*Math.cos(x),z=D*Math.sin(x);b.x+=A,b.y+=z,m.attr({x2:b.x,y2:b.y})}if(O){if(O*O>R*R+F*F)return void q();var B=O*Math.cos(x),$=O*Math.sin(x);g.x-=B,g.y-=$,m.attr({x1:g.x,y1:g.y})}}else if(w.nodeName==="path"){var j=w.getTotalLength(),N="";if(j1){v=!0;break}}v?u.fullLayout._infolayer.select(".annotation-"+u.id+'[data-index="'+m+'"]').remove():(y._pdata=f(u.glplot.cameraParams,[d.xaxis.r2l(y.x)*h[0],d.yaxis.r2l(y.y)*h[1],d.zaxis.r2l(y.z)*h[2]]),l(u.graphDiv,y,m,u.id,y._xa,y._ya))}}},2468:function(o,a,n){var l=n(73972),f=n(71828);o.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:n(26997)}}},layoutAttributes:n(26997),handleDefaults:n(20226),includeBasePlot:function(s,u){var d=l.subplotsRegistry.gl3d;if(d)for(var h=d.attrRegex,p=Object.keys(s),m=0;m=0)))return y;if(_===3)b[_]>1&&(b[_]=1);else if(b[_]>=1)return y}var w=Math.round(255*b[0])+", "+Math.round(255*b[1])+", "+Math.round(255*b[2]);return x?"rgba("+w+", "+b[3]+")":"rgb("+w+")"}u.tinyRGB=function(y){var v=y.toRgb();return"rgb("+Math.round(v.r)+", "+Math.round(v.g)+", "+Math.round(v.b)+")"},u.rgb=function(y){return u.tinyRGB(l(y))},u.opacity=function(y){return y?l(y).getAlpha():0},u.addOpacity=function(y,v){var g=l(y).toRgb();return"rgba("+Math.round(g.r)+", "+Math.round(g.g)+", "+Math.round(g.b)+", "+v+")"},u.combine=function(y,v){var g=l(y).toRgb();if(g.a===1)return l(y).toRgbString();var b=l(v||p).toRgb(),x=b.a===1?b:{r:255*(1-b.a)+b.r*b.a,g:255*(1-b.a)+b.g*b.a,b:255*(1-b.a)+b.b*b.a},_={r:x.r*(1-g.a)+g.r*g.a,g:x.g*(1-g.a)+g.g*g.a,b:x.b*(1-g.a)+g.b*g.a};return l(_).toRgbString()},u.contrast=function(y,v,g){var b=l(y);return b.getAlpha()!==1&&(b=l(u.combine(y,p))),(b.isDark()?v?b.lighten(v):p:g?b.darken(g):h).toString()},u.stroke=function(y,v){var g=l(v);y.style({stroke:u.tinyRGB(g),"stroke-opacity":g.getAlpha()})},u.fill=function(y,v){var g=l(v);y.style({fill:u.tinyRGB(g),"fill-opacity":g.getAlpha()})},u.clean=function(y){if(y&&typeof y=="object"){var v,g,b,x,_=Object.keys(y);for(v=0;v<_.length;v++)if(x=y[b=_[v]],b.substr(b.length-5)==="color")if(Array.isArray(x))for(g=0;g0?wt>=Ze:wt<=Ze));ve++)wt>Ke&&wt0?wt>=Ze:wt<=Ze));ve++)wt>zt[0]&&wt1){var bt=Math.pow(10,Math.floor(Math.log(ct)/Math.LN10));at*=bt*p.roundUp(ct/bt,[2,5,10]),(Math.abs(J.start)/J.size+1e-6)%1<2e-6&&(qe.tick0=0)}qe.dtick=at}qe.domain=E?[Be+Y/se.h,Be+we-Y/se.h]:[Be+Q/se.w,Be+we-Q/se.w],qe.setScale(),$.attr("transform",m(Math.round(se.l),Math.round(se.t)));var ze,Ne=$.select("."+O.cbtitleunshift).attr("transform",m(-Math.round(se.l),-Math.round(se.t))),Qe=qe.ticklabelposition,it=qe.title.font.size,kt=$.select("."+O.cbaxis),Je=0,ut=0;function pt(It,Mt){var zt={propContainer:qe,propName:j._propPrefix+"title",traceIndex:j._traceIndex,_meta:j._meta,placeholder:le._dfltTitle.colorbar,containerGroup:$.select("."+O.cbtitle)},wt=It.charAt(0)==="h"?It.substr(1):"h"+It;$.selectAll("."+wt+",."+wt+"-math-group").remove(),x.draw(N,It,y(zt,Mt||{}))}return p.syncOrAsync([s.previousPromises,function(){var It,Mt;(E&&Ye||!E&&!Ye)&&(Oe==="top"&&(It=Q+se.l+ke*Z,Mt=Y+se.t+Ae*(1-Be-we)+3+.75*it),Oe==="bottom"&&(It=Q+se.l+ke*Z,Mt=Y+se.t+Ae*(1-Be)-3-.25*it),Oe==="right"&&(Mt=Y+se.t+Ae*X+3+.75*it,It=Q+se.l+ke*Be),pt(qe._id+"title",{attributes:{x:It,y:Mt,"text-anchor":E?"start":"middle"}}))},function(){if(!E&&!Ye||E&&Ye){var It,Mt=$.select("."+O.cbtitle),zt=Mt.select("text"),wt=[-H/2,H/2],ve=Mt.select(".h"+qe._id+"title-math-group").node(),_e=15.6;if(zt.node()&&(_e=parseInt(zt.node().style.fontSize,10)*C),ve?(It=g.bBox(ve),ut=It.width,(Je=It.height)>_e&&(wt[1]-=(Je-_e)/2)):zt.node()&&!zt.classed(O.jsPlaceholder)&&(It=g.bBox(zt.node()),ut=It.width,Je=It.height),E){if(Je){if(Je+=5,Oe==="top")qe.domain[1]-=Je/se.h,wt[1]*=-1;else{qe.domain[0]+=Je/se.h;var Ve=_.lineCount(zt);wt[1]+=(1-Ve)*_e}Mt.attr("transform",m(wt[0],wt[1])),qe.setScale()}}else ut&&(Oe==="right"&&(qe.domain[0]+=(ut+it/2)/se.w),Mt.attr("transform",m(wt[0],wt[1])),qe.setScale())}$.selectAll("."+O.cbfills+",."+O.cblines).attr("transform",E?m(0,Math.round(se.h*(1-qe.domain[1]))):m(Math.round(se.w*qe.domain[0]),0)),kt.attr("transform",E?m(0,Math.round(-se.t)):m(Math.round(-se.l),0));var We=$.select("."+O.cbfills).selectAll("rect."+O.cbfill).attr("style","").data(de);We.enter().append("rect").classed(O.cbfill,!0).attr("style",""),We.exit().remove();var Ze=Me.map(qe.c2p).map(Math.round).sort(function(mt,tt){return mt-tt});We.each(function(mt,tt){var Ft=[tt===0?Me[0]:(de[tt]+de[tt-1])/2,tt===de.length-1?Me[1]:(de[tt]+de[tt+1])/2].map(qe.c2p).map(Math.round);E&&(Ft[1]=p.constrain(Ft[1]+(Ft[1]>Ft[0])?1:-1,Ze[0],Ze[1]));var Vt=l.select(this).attr(E?"x":"y",Ee).attr(E?"y":"x",l.min(Ft)).attr(E?"width":"height",Math.max(ue,2)).attr(E?"height":"width",Math.max(l.max(Ft)-l.min(Ft),2));if(j._fillgradient)g.gradient(Vt,N,j._id,E?"vertical":"horizontalreversed",j._fillgradient,"fill");else{var St=ye(mt).replace("e-","");Vt.attr("fill",f(St).toHexString())}});var Ge=$.select("."+O.cblines).selectAll("path."+O.cbline).data(Te.color&&Te.width?xe:[]);Ge.enter().append("path").classed(O.cbline,!0),Ge.exit().remove(),Ge.each(function(mt){var tt=Ee,Ft=Math.round(qe.c2p(mt))+Te.width/2%1;l.select(this).attr("d","M"+(E?tt+","+Ft:Ft+","+tt)+(E?"h":"v")+ue).call(g.lineGroupStyle,Te.width,ce(mt),Te.dash)}),kt.selectAll("g."+qe._id+"tick,path").remove();var Ke=Ee+ue+(H||0)/2-(j.ticks==="outside"?1:0),nt=d.calcTicks(qe),st=d.getTickSigns(qe)[2];return d.drawTicks(N,qe,{vals:qe.ticks==="inside"?d.clipEnds(qe,nt):nt,layer:kt,path:d.makeTickPath(qe,Ke,st),transFn:d.makeTransTickFn(qe)}),d.drawLabels(N,qe,{vals:nt,layer:kt,transFn:d.makeTransTickLabelFn(qe),labelFns:d.makeLabelFns(qe,Ke)})},function(){if(E&&!Ye||!E&&Ye){var It,Mt,zt=qe.position||0,wt=qe._offset+qe._length/2;if(Oe==="right")Mt=wt,It=se.l+ke*zt+10+it*(qe.showticklabels?1:.5);else if(It=wt,Oe==="bottom"&&(Mt=se.t+Ae*zt+10+(Qe.indexOf("inside")===-1?qe.tickfont.size:0)+(qe.ticks!=="intside"&&j.ticklen||0)),Oe==="top"){var ve=Se.text.split("
").length;Mt=se.t+Ae*zt+10-ue-C*it*ve}pt((E?"h":"v")+qe._id+"title",{avoid:{selection:l.select(N).selectAll("g."+qe._id+"tick"),side:Oe,offsetTop:E?0:se.t,offsetLeft:E?se.l:0,maxShift:E?le.width:le.height},attributes:{x:It,y:Mt,"text-anchor":"middle"},transform:{rotate:E?-90:0,offset:0}})}},s.previousPromises,function(){var It,Mt=ue+H/2;Qe.indexOf("inside")===-1&&(It=g.bBox(kt.node()),Mt+=E?It.width:It.height),ze=Ne.select("text");var zt=0,wt=E&&Oe==="top",ve=!E&&Oe==="right",_e=0;if(ze.node()&&!ze.classed(O.jsPlaceholder)){var Ve,We=Ne.select(".h"+qe._id+"title-math-group").node();We&&(E&&Ye||!E&&!Ye)?(zt=(It=g.bBox(We)).width,Ve=It.height):(zt=(It=g.bBox(Ne.node())).right-se.l-(E?Ee:Ue),Ve=It.bottom-se.t-(E?Ue:Ee),E||Oe!=="top"||(Mt+=It.height,_e=It.height)),ve&&(ze.attr("transform",m(zt/2+it/2,0)),zt*=2),Mt=Math.max(Mt,E?zt:Ve)}var Ze=2*(E?Q:Y)+Mt+V+H/2,Ge=0;!E&&Se.text&&U==="bottom"&&X<=0&&(Ze+=Ge=Ze/2,_e+=Ge),le._hColorbarMoveTitle=Ge,le._hColorbarMoveCBTitle=_e;var Ke=V+H,nt=(E?Ee:Ue)-Ke/2-(E?Q:0),st=(E?Ue:Ee)-(E?be:Y+_e-Ge);$.select("."+O.cbbg).attr("x",nt).attr("y",st).attr(E?"width":"height",Math.max(Ze-Ge,2)).attr(E?"height":"width",Math.max(be+Ke,2)).call(b.fill,te).call(b.stroke,j.bordercolor).style("stroke-width",V);var mt=ve?Math.max(zt-10,0):0;$.selectAll("."+O.cboutline).attr("x",(E?Ee:Ue+Q)+mt).attr("y",(E?Ue+Y-be:Ee)+(wt?Je:0)).attr(E?"width":"height",Math.max(ue,2)).attr(E?"height":"width",Math.max(be-(E?2*Y+Je:2*Q+mt),2)).call(b.stroke,j.outlinecolor).style({fill:"none","stroke-width":H});var tt=E?De*Ze:0,Ft=E?0:(1-Re)*Ze-_e;if(tt=ie?se.l-tt:-tt,Ft=re?se.t-Ft:-Ft,$.attr("transform",m(tt,Ft)),!E&&(V||f(te).getAlpha()&&!f.equals(le.paper_bgcolor,te))){var Vt=kt.selectAll("text"),St=Vt[0].length,Nt=$.select("."+O.cbbg).node(),Dt=g.bBox(Nt),gt=g.getTranslate($);Vt.each(function(Rt,$t){var Yt=St-1;if($t===0||$t===Yt){var Xt,Bt=g.bBox(this),Wt=g.getTranslate(this);if($t===Yt){var tn=Bt.right+Wt.x;(Xt=Dt.right+gt.x+Ue-V-2+Z-tn)>0&&(Xt=0)}else if($t===0){var cn=Bt.left+Wt.x;(Xt=Dt.left+gt.x+Ue+V+2-cn)<0&&(Xt=0)}Xt&&(St<3?this.setAttribute("transform","translate("+Xt+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ht={},yt=P[ee],qt=D[ee],Et=P[U],jt=D[U],Tt=Ze-ue;E?(G==="pixels"?(ht.y=X,ht.t=be*Et,ht.b=be*jt):(ht.t=ht.b=0,ht.yt=X+W*Et,ht.yb=X-W*jt),q==="pixels"?(ht.x=Z,ht.l=Ze*yt,ht.r=Ze*qt):(ht.l=Tt*yt,ht.r=Tt*qt,ht.xl=Z-L*yt,ht.xr=Z+L*qt)):(G==="pixels"?(ht.x=Z,ht.l=be*yt,ht.r=be*qt):(ht.l=ht.r=0,ht.xl=Z+W*yt,ht.xr=Z-W*qt),q==="pixels"?(ht.y=1-X,ht.t=Ze*Et,ht.b=Ze*jt):(ht.t=Tt*Et,ht.b=Tt*jt,ht.yt=X-L*Et,ht.yb=X+L*jt));var Ot=j.y<.5?"b":"t",At=j.x<.5?"l":"r";N._fullLayout._reservedMargin[j._id]={};var Lt={r:le.width-nt-tt,l:nt+ht.r,b:le.height-st-Ft,t:st+ht.b};ie&&re?s.autoMargin(N,j._id,ht):ie?N._fullLayout._reservedMargin[j._id][Ot]=Lt[Ot]:re||E?N._fullLayout._reservedMargin[j._id][At]=Lt[At]:N._fullLayout._reservedMargin[j._id][Ot]=Lt[Ot]}],N)}(z,A,R);B&&B.then&&(R._promises||[]).push(B),R._context.edits.colorbarPosition&&function($,j,N){var E,W,G,L=j.orientation==="v",q=N._fullLayout._size;h.init({element:$.node(),gd:N,prepFn:function(){E=$.attr("transform"),v($)},moveFn:function(H,V){$.attr("transform",E+m(H,V)),W=h.align((L?j._uFrac:j._vFrac)+H/q.w,L?j._thickFrac:j._lenFrac,0,1,j.xanchor),G=h.align((L?j._vFrac:1-j._uFrac)-V/q.h,L?j._lenFrac:j._thickFrac,0,1,j.yanchor);var te=h.getCursor(W,G,j.xanchor,j.yanchor);v($,te)},doneFn:function(){if(v($),W!==void 0&&G!==void 0){var H={};H[j._propPrefix+"x"]=W,H[j._propPrefix+"y"]=G,j._traceIndex!==void 0?u.call("_guiRestyle",N,H,j._traceIndex):u.call("_guiRelayout",N,H)}}})}(z,A,R)}),F.exit().each(function(A){s.autoMargin(R,A._id)}).remove(),F.order()}}},76228:function(o,a,n){var l=n(71828);o.exports=function(f){return l.isPlainObject(f.colorbar)}},12311:function(o,a,n){o.exports={moduleType:"component",name:"colorbar",attributes:n(63583),supplyDefaults:n(62499),draw:n(98981).draw,hasColorbar:n(76228)}},50693:function(o,a,n){var l=n(63583),f=n(30587).counter,s=n(78607),u=n(63282).scales;function d(h){return"`"+h+"`"}s(u),o.exports=function(h,p){h=h||"";var m,y=(p=p||{}).cLetter||"c",v=("onlyIfNumerical"in p&&p.onlyIfNumerical,"noScale"in p?p.noScale:h==="marker.line"),g="showScaleDflt"in p?p.showScaleDflt:y==="z",b=typeof p.colorscaleDflt=="string"?u[p.colorscaleDflt]:null,x=p.editTypeOverride||"",_=h?h+".":"";"colorAttr"in p?(m=p.colorAttr,p.colorAttr):d(_+(m={z:"z",c:"color"}[y]));var w=y+"auto",k=y+"min",T=y+"max",M=y+"mid",S={};S[k]=S[T]=void 0;var C={};C[w]=!1;var P={};return m==="color"&&(P.color={valType:"color",arrayOk:!0,editType:x||"style"},p.anim&&(P.color.anim=!0)),P[w]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:S},P[k]={valType:"number",dflt:null,editType:x||"plot",impliedEdits:C},P[T]={valType:"number",dflt:null,editType:x||"plot",impliedEdits:C},P[M]={valType:"number",dflt:null,editType:"calc",impliedEdits:S},P.colorscale={valType:"colorscale",editType:"calc",dflt:b,impliedEdits:{autocolorscale:!1}},P.autocolorscale={valType:"boolean",dflt:p.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},P.reversescale={valType:"boolean",dflt:!1,editType:"plot"},v||(P.showscale={valType:"boolean",dflt:g,editType:"calc"},P.colorbar=l),p.noColorAxis||(P.coloraxis={valType:"subplotid",regex:f("coloraxis"),dflt:null,editType:"calc"}),P}},78803:function(o,a,n){var l=n(92770),f=n(71828),s=n(52075).extractOpts;o.exports=function(u,d,h){var p,m=u._fullLayout,y=h.vals,v=h.containerStr,g=v?f.nestedProperty(d,v).get():d,b=s(g),x=b.auto!==!1,_=b.min,w=b.max,k=b.mid,T=function(){return f.aggNums(Math.min,null,y)},M=function(){return f.aggNums(Math.max,null,y)};_===void 0?_=T():x&&(_=g._colorAx&&l(_)?Math.min(_,T()):T()),w===void 0?w=M():x&&(w=g._colorAx&&l(w)?Math.max(w,M()):M()),x&&k!==void 0&&(w-k>k-_?_=k-(w-k):w-k=0?m.colorscale.sequential:m.colorscale.sequentialminus,b._sync("colorscale",p))}},33046:function(o,a,n){var l=n(71828),f=n(52075).hasColorscale,s=n(52075).extractOpts;o.exports=function(u,d){function h(x,_){var w=x["_"+_];w!==void 0&&(x[_]=w)}function p(x,_){var w=_.container?l.nestedProperty(x,_.container).get():x;if(w)if(w.coloraxis)w._colorAx=d[w.coloraxis];else{var k=s(w),T=k.auto;(T||k.min===void 0)&&h(w,_.min),(T||k.max===void 0)&&h(w,_.max),k.autocolorscale&&h(w,"colorscale")}}for(var m=0;m=0;T--,M++){var S=_[T];k[M]=[1-S[0],S[1]]}return k}function b(_,w){w=w||{};for(var k=_.domain,T=_.range,M=T.length,S=new Array(M),C=0;C1.3333333333333333-h?d:h}},70461:function(o,a,n){var l=n(71828),f=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];o.exports=function(s,u,d,h){return s=d==="left"?0:d==="center"?1:d==="right"?2:l.constrain(Math.floor(3*s),0,2),u=h==="bottom"?0:h==="middle"?1:h==="top"?2:l.constrain(Math.floor(3*u),0,2),f[u][s]}},64505:function(o,a){a.selectMode=function(n){return n==="lasso"||n==="select"},a.drawMode=function(n){return n==="drawclosedpath"||n==="drawopenpath"||n==="drawline"||n==="drawrect"||n==="drawcircle"},a.openMode=function(n){return n==="drawline"||n==="drawopenpath"},a.rectMode=function(n){return n==="select"||n==="drawline"||n==="drawrect"||n==="drawcircle"},a.freeMode=function(n){return n==="lasso"||n==="drawclosedpath"||n==="drawopenpath"},a.selectingOrDrawing=function(n){return a.freeMode(n)||a.rectMode(n)}},28569:function(o,a,n){var l=n(48956),f=n(57035),s=n(38520),u=n(71828).removeElement,d=n(85555),h=o.exports={};h.align=n(92807),h.getCursor=n(70461);var p=n(26041);function m(){var v=document.createElement("div");v.className="dragcover";var g=v.style;return g.position="fixed",g.left=0,g.right=0,g.top=0,g.bottom=0,g.zIndex=999999999,g.background="none",document.body.appendChild(v),v}function y(v){return l(v.changedTouches?v.changedTouches[0]:v,document.body)}h.unhover=p.wrapped,h.unhoverRaw=p.raw,h.init=function(v){var g,b,x,_,w,k,T,M,S=v.gd,C=1,P=S._context.doubleClickDelay,D=v.element;S._mouseDownTime||(S._mouseDownTime=0),D.style.pointerEvents="all",D.onmousedown=R,s?(D._ontouchstart&&D.removeEventListener("touchstart",D._ontouchstart),D._ontouchstart=R,D.addEventListener("touchstart",R,{passive:!1})):D.ontouchstart=R;var O=v.clampFn||function(z,B,$){return Math.abs(z)<$&&(z=0),Math.abs(B)<$&&(B=0),[z,B]};function R(z){S._dragged=!1,S._dragging=!0;var B=y(z);g=B[0],b=B[1],T=z.target,k=z,M=z.buttons===2||z.ctrlKey,z.clientX===void 0&&z.clientY===void 0&&(z.clientX=g,z.clientY=b),(x=new Date().getTime())-S._mouseDownTimeP&&(C=Math.max(C-1,1)),S._dragged)v.doneFn&&v.doneFn();else if(v.clickFn&&v.clickFn(C,k),!M){var B;try{B=new MouseEvent("click",z)}catch{var $=y(z);(B=document.createEvent("MouseEvents")).initMouseEvent("click",z.bubbles,z.cancelable,z.view,z.detail,z.screenX,z.screenY,$[0],$[1],z.ctrlKey,z.altKey,z.shiftKey,z.metaKey,z.button,z.relatedTarget)}T.dispatchEvent(B)}S._dragging=!1,S._dragged=!1}else S._dragged=!1}},h.coverSlip=m},26041:function(o,a,n){var l=n(11086),f=n(79990),s=n(24401).getGraphDiv,u=n(26675),d=o.exports={};d.wrapped=function(h,p,m){(h=s(h))._fullLayout&&f.clear(h._fullLayout._uid+u.HOVERID),d.raw(h,p,m)},d.raw=function(h,p){var m=h._fullLayout,y=h._hoverdata;p||(p={}),p.target&&!h._dragged&&l.triggerHandler(h,"plotly_beforehover",p)===!1||(m._hoverlayer.selectAll("g").remove(),m._hoverlayer.selectAll("line").remove(),m._hoverlayer.selectAll("circle").remove(),h._hoverdata=void 0,p.target&&y&&h.emit("plotly_unhover",{event:p,points:y}))}},79952:function(o,a){a.P={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},a.u={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},91424:function(o,a,n){var l=n(39898),f=n(71828),s=f.numberFormat,u=n(92770),d=n(84267),h=n(73972),p=n(7901),m=n(21081),y=f.strTranslate,v=n(63893),g=n(77922),b=n(18783).LINE_SPACING,x=n(37822).DESELECTDIM,_=n(34098),w=n(39984),k=n(23469).appendArrayPointValue,T=o.exports={};function M(ce,ye,J){var ne=ye.fillpattern,de=ne&&T.getPatternAttr(ne.shape,0,"");if(de){var xe=T.getPatternAttr(ne.bgcolor,0,null),ue=T.getPatternAttr(ne.fgcolor,0,null),ge=ne.fgopacity,be=T.getPatternAttr(ne.size,0,8),we=T.getPatternAttr(ne.solidity,0,.3),ke=ye.uid;T.pattern(ce,"point",J,ke,de,be,we,void 0,ne.fillmode,xe,ue,ge)}else ye.fillcolor&&ce.call(p.fill,ye.fillcolor)}T.font=function(ce,ye,J,ne){f.isPlainObject(ye)&&(ne=ye.color,J=ye.size,ye=ye.family),ye&&ce.style("font-family",ye),J+1&&ce.style("font-size",J+"px"),ne&&ce.call(p.fill,ne)},T.setPosition=function(ce,ye,J){ce.attr("x",ye).attr("y",J)},T.setSize=function(ce,ye,J){ce.attr("width",ye).attr("height",J)},T.setRect=function(ce,ye,J,ne,de){ce.call(T.setPosition,ye,J).call(T.setSize,ne,de)},T.translatePoint=function(ce,ye,J,ne){var de=J.c2p(ce.x),xe=ne.c2p(ce.y);return!!(u(de)&&u(xe)&&ye.node())&&(ye.node().nodeName==="text"?ye.attr("x",de).attr("y",xe):ye.attr("transform",y(de,xe)),!0)},T.translatePoints=function(ce,ye,J){ce.each(function(ne){var de=l.select(this);T.translatePoint(ne,de,ye,J)})},T.hideOutsideRangePoint=function(ce,ye,J,ne,de,xe){ye.attr("display",J.isPtWithinRange(ce,de)&&ne.isPtWithinRange(ce,xe)?null:"none")},T.hideOutsideRangePoints=function(ce,ye){if(ye._hasClipOnAxisFalse){var J=ye.xaxis,ne=ye.yaxis;ce.each(function(de){var xe=de[0].trace,ue=xe.xcalendar,ge=xe.ycalendar,be=h.traceIs(xe,"bar-like")?".bartext":".point,.textpoint";ce.selectAll(be).each(function(we){T.hideOutsideRangePoint(we,l.select(this),J,ne,ue,ge)})})}},T.crispRound=function(ce,ye,J){return ye&&u(ye)?ce._context.staticPlot?ye:ye<1?1:Math.round(ye):J||0},T.singleLineStyle=function(ce,ye,J,ne,de){ye.style("fill","none");var xe=(((ce||[])[0]||{}).trace||{}).line||{},ue=J||xe.width||0,ge=de||xe.dash||"";p.stroke(ye,ne||xe.color),T.dashLine(ye,ge,ue)},T.lineGroupStyle=function(ce,ye,J,ne){ce.style("fill","none").each(function(de){var xe=(((de||[])[0]||{}).trace||{}).line||{},ue=ye||xe.width||0,ge=ne||xe.dash||"";l.select(this).call(p.stroke,J||xe.color).call(T.dashLine,ge,ue)})},T.dashLine=function(ce,ye,J){J=+J||0,ye=T.dashStyle(ye,J),ce.style({"stroke-dasharray":ye,"stroke-width":J+"px"})},T.dashStyle=function(ce,ye){ye=+ye||1;var J=Math.max(ye,3);return ce==="solid"?ce="":ce==="dot"?ce=J+"px,"+J+"px":ce==="dash"?ce=3*J+"px,"+3*J+"px":ce==="longdash"?ce=5*J+"px,"+5*J+"px":ce==="dashdot"?ce=3*J+"px,"+J+"px,"+J+"px,"+J+"px":ce==="longdashdot"&&(ce=5*J+"px,"+2*J+"px,"+J+"px,"+2*J+"px"),ce},T.singleFillStyle=function(ce,ye){var J=l.select(ce.node());M(ce,((J.data()[0]||[])[0]||{}).trace||{},ye)},T.fillGroupStyle=function(ce,ye){ce.style("stroke-width",0).each(function(J){var ne=l.select(this);J[0].trace&&M(ne,J[0].trace,ye)})};var S=n(90998);T.symbolNames=[],T.symbolFuncs=[],T.symbolBackOffs=[],T.symbolNeedLines={},T.symbolNoDot={},T.symbolNoFill={},T.symbolList=[],Object.keys(S).forEach(function(ce){var ye=S[ce],J=ye.n;T.symbolList.push(J,String(J),ce,J+100,String(J+100),ce+"-open"),T.symbolNames[J]=ce,T.symbolFuncs[J]=ye.f,T.symbolBackOffs[J]=ye.backoff||0,ye.needLine&&(T.symbolNeedLines[J]=!0),ye.noDot?T.symbolNoDot[J]=!0:T.symbolList.push(J+200,String(J+200),ce+"-dot",J+300,String(J+300),ce+"-open-dot"),ye.noFill&&(T.symbolNoFill[J]=!0)});var C=T.symbolNames.length;function P(ce,ye,J,ne){var de=ce%100;return T.symbolFuncs[de](ye,J,ne)+(ce>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}T.symbolNumber=function(ce){if(u(ce))ce=+ce;else if(typeof ce=="string"){var ye=0;ce.indexOf("-open")>0&&(ye=100,ce=ce.replace("-open","")),ce.indexOf("-dot")>0&&(ye+=200,ce=ce.replace("-dot","")),(ce=T.symbolNames.indexOf(ce))>=0&&(ce+=ye)}return ce%100>=C||ce>=400?0:Math.floor(Math.max(ce,0))};var D={x1:1,x2:0,y1:0,y2:0},O={x1:0,x2:0,y1:1,y2:0},R=s("~f"),F={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:D},horizontalreversed:{node:"linearGradient",attrs:D,reversed:!0},vertical:{node:"linearGradient",attrs:O},verticalreversed:{node:"linearGradient",attrs:O,reversed:!0}};T.gradient=function(ce,ye,J,ne,de,xe){for(var ue=de.length,ge=F[ne],be=new Array(ue),we=0;we=0&&ce.i===void 0&&(ce.i=xe.i),ye.style("opacity",ne.selectedOpacityFn?ne.selectedOpacityFn(ce):ce.mo===void 0?ue.opacity:ce.mo),ne.ms2mrc){var be;be=ce.ms==="various"||ue.size==="various"?3:ne.ms2mrc(ce.ms),ce.mrc=be,ne.selectedSizeFn&&(be=ce.mrc=ne.selectedSizeFn(ce));var we=T.symbolNumber(ce.mx||ue.symbol)||0;ce.om=we%200>=100;var ke=Me(ce,J),Ae=Y(ce,J);ye.attr("d",P(we,be,ke,Ae))}var Ee,De,Re,Ie=!1;if(ce.so)Re=ge.outlierwidth,De=ge.outliercolor,Ee=ue.outliercolor;else{var Be=(ge||{}).width;Re=(ce.mlw+1||Be+1||(ce.trace?(ce.trace.marker.line||{}).width:0)+1)-1||0,De="mlc"in ce?ce.mlcc=ne.lineScale(ce.mlc):f.isArrayOrTypedArray(ge.color)?p.defaultLine:ge.color,f.isArrayOrTypedArray(ue.color)&&(Ee=p.defaultLine,Ie=!0),Ee="mc"in ce?ce.mcc=ne.markerScale(ce.mc):ue.color||ue.colors||"rgba(0,0,0,0)",ne.selectedColorFn&&(Ee=ne.selectedColorFn(ce))}if(ce.om)ye.call(p.stroke,Ee).style({"stroke-width":(Re||1)+"px",fill:"none"});else{ye.style("stroke-width",(ce.isBlank?0:Re)+"px");var Ue=ue.gradient,qe=ce.mgt;qe?Ie=!0:qe=Ue&&Ue.type,f.isArrayOrTypedArray(qe)&&(qe=qe[0],F[qe]||(qe=0));var Ye=ue.pattern,at=Ye&&T.getPatternAttr(Ye.shape,ce.i,"");if(qe&&qe!=="none"){var lt=ce.mgc;lt?Ie=!0:lt=Ue.color;var ct=J.uid;Ie&&(ct+="-"+ce.i),T.gradient(ye,de,ct,qe,[[0,lt],[1,Ee]],"fill")}else if(at){var bt=!1,ze=Ye.fgcolor;!ze&&xe&&xe.color&&(ze=xe.color,bt=!0);var Ne=T.getPatternAttr(ze,ce.i,xe&&xe.color||null),Qe=T.getPatternAttr(Ye.bgcolor,ce.i,null),it=Ye.fgopacity,kt=T.getPatternAttr(Ye.size,ce.i,8),Je=T.getPatternAttr(Ye.solidity,ce.i,.3);bt=bt||ce.mcc||f.isArrayOrTypedArray(Ye.shape)||f.isArrayOrTypedArray(Ye.bgcolor)||f.isArrayOrTypedArray(Ye.fgcolor)||f.isArrayOrTypedArray(Ye.size)||f.isArrayOrTypedArray(Ye.solidity);var ut=J.uid;bt&&(ut+="-"+ce.i),T.pattern(ye,"point",de,ut,at,kt,Je,ce.mcc,Ye.fillmode,Qe,Ne,it)}else f.isArrayOrTypedArray(Ee)?p.fill(ye,Ee[ce.i]):p.fill(ye,Ee);Re&&p.stroke(ye,De)}},T.makePointStyleFns=function(ce){var ye={},J=ce.marker;return ye.markerScale=T.tryColorscale(J,""),ye.lineScale=T.tryColorscale(J,"line"),h.traceIs(ce,"symbols")&&(ye.ms2mrc=_.isBubble(ce)?w(ce):function(){return(J.size||6)/2}),ce.selectedpoints&&f.extendFlat(ye,T.makeSelectedPointStyleFns(ce)),ye},T.makeSelectedPointStyleFns=function(ce){var ye={},J=ce.selected||{},ne=ce.unselected||{},de=ce.marker||{},xe=J.marker||{},ue=ne.marker||{},ge=de.opacity,be=xe.opacity,we=ue.opacity,ke=be!==void 0,Ae=we!==void 0;(f.isArrayOrTypedArray(ge)||ke||Ae)&&(ye.selectedOpacityFn=function(at){var lt=at.mo===void 0?de.opacity:at.mo;return at.selected?ke?be:lt:Ae?we:x*lt});var Ee=de.color,De=xe.color,Re=ue.color;(De||Re)&&(ye.selectedColorFn=function(at){var lt=at.mcc||Ee;return at.selected?De||lt:Re||lt});var Ie=de.size,Be=xe.size,Ue=ue.size,qe=Be!==void 0,Ye=Ue!==void 0;return h.traceIs(ce,"symbols")&&(qe||Ye)&&(ye.selectedSizeFn=function(at){var lt=at.mrc||Ie/2;return at.selected?qe?Be/2:lt:Ye?Ue/2:lt}),ye},T.makeSelectedTextStyleFns=function(ce){var ye={},J=ce.selected||{},ne=ce.unselected||{},de=ce.textfont||{},xe=J.textfont||{},ue=ne.textfont||{},ge=de.color,be=xe.color,we=ue.color;return ye.selectedTextColorFn=function(ke){var Ae=ke.tc||ge;return ke.selected?be||Ae:we||(be?Ae:p.addOpacity(Ae,x))},ye},T.selectedPointStyle=function(ce,ye){if(ce.size()&&ye.selectedpoints){var J=T.makeSelectedPointStyleFns(ye),ne=ye.marker||{},de=[];J.selectedOpacityFn&&de.push(function(xe,ue){xe.style("opacity",J.selectedOpacityFn(ue))}),J.selectedColorFn&&de.push(function(xe,ue){p.fill(xe,J.selectedColorFn(ue))}),J.selectedSizeFn&&de.push(function(xe,ue){var ge=ue.mx||ne.symbol||0,be=J.selectedSizeFn(ue);xe.attr("d",P(T.symbolNumber(ge),be,Me(ue,ye),Y(ue,ye))),ue.mrc2=be}),de.length&&ce.each(function(xe){for(var ue=l.select(this),ge=0;ge0?J:0}function N(ce,ye,J){return J&&(ce=H(ce)),ye?W(ce[1]):E(ce[0])}function E(ce){var ye=l.round(ce,2);return A=ye,ye}function W(ce){var ye=l.round(ce,2);return z=ye,ye}function G(ce,ye,J,ne){var de=ce[0]-ye[0],xe=ce[1]-ye[1],ue=J[0]-ye[0],ge=J[1]-ye[1],be=Math.pow(de*de+xe*xe,.25),we=Math.pow(ue*ue+ge*ge,.25),ke=(we*we*de-be*be*ue)*ne,Ae=(we*we*xe-be*be*ge)*ne,Ee=3*we*(be+we),De=3*be*(be+we);return[[E(ye[0]+(Ee&&ke/Ee)),W(ye[1]+(Ee&&Ae/Ee))],[E(ye[0]-(De&&ke/De)),W(ye[1]-(De&&Ae/De))]]}T.textPointStyle=function(ce,ye,J){if(ce.size()){var ne;if(ye.selectedpoints){var de=T.makeSelectedTextStyleFns(ye);ne=de.selectedTextColorFn}var xe=ye.texttemplate,ue=J._fullLayout;ce.each(function(ge){var be=l.select(this),we=xe?f.extractOption(ge,ye,"txt","texttemplate"):f.extractOption(ge,ye,"tx","text");if(we||we===0){if(xe){var ke=ye._module.formatLabels,Ae=ke?ke(ge,ye,ue):{},Ee={};k(Ee,ye,ge.i);var De=ye._meta||{};we=f.texttemplateString(we,Ae,ue._d3locale,Ee,ge,De)}var Re=ge.tp||ye.textposition,Ie=j(ge,ye),Be=ne?ne(ge):ge.tc||ye.textfont.color;be.call(T.font,ge.tf||ye.textfont.family,Ie,Be).text(we).call(v.convertToTspans,J).call($,Re,Ie,ge.mrc)}else be.remove()})}},T.selectedTextStyle=function(ce,ye){if(ce.size()&&ye.selectedpoints){var J=T.makeSelectedTextStyleFns(ye);ce.each(function(ne){var de=l.select(this),xe=J.selectedTextColorFn(ne),ue=ne.tp||ye.textposition,ge=j(ne,ye);p.fill(de,xe);var be=h.traceIs(ye,"bar-like");$(de,ue,ge,ne.mrc2||ne.mrc,be)})}},T.smoothopen=function(ce,ye){if(ce.length<3)return"M"+ce.join("L");var J,ne="M"+ce[0],de=[];for(J=1;J=be||at>=ke&&at<=be)&&(lt<=Ae&<>=we||lt>=Ae&<<=we)&&(ce=[at,lt])}return ce}T.steps=function(ce){var ye=L[ce]||q;return function(J){for(var ne="M"+E(J[0][0])+","+W(J[0][1]),de=J.length,xe=1;xe=1e4&&(T.savedBBoxes={},V=0),J&&(T.savedBBoxes[J]=De),V++,f.extendFlat({},De)},T.setClipUrl=function(ce,ye,J){ce.attr("clip-path",ee(ye,J))},T.getTranslate=function(ce){var ye=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(J,ne,de){return[ne,de].join(" ")}).split(" ");return{x:+ye[0]||0,y:+ye[1]||0}},T.setTranslate=function(ce,ye,J){var ne=ce.attr?"attr":"getAttribute",de=ce.attr?"attr":"setAttribute",xe=ce[ne]("transform")||"";return ye=ye||0,J=J||0,xe=xe.replace(/(\btranslate\(.*?\);?)/,"").trim(),xe=(xe+=y(ye,J)).trim(),ce[de]("transform",xe),xe},T.getScale=function(ce){var ye=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(J,ne,de){return[ne,de].join(" ")}).split(" ");return{x:+ye[0]||1,y:+ye[1]||1}},T.setScale=function(ce,ye,J){var ne=ce.attr?"attr":"getAttribute",de=ce.attr?"attr":"setAttribute",xe=ce[ne]("transform")||"";return ye=ye||1,J=J||1,xe=xe.replace(/(\bscale\(.*?\);?)/,"").trim(),xe=(xe+="scale("+ye+","+J+")").trim(),ce[de]("transform",xe),xe};var U=/\s*sc.*/;T.setPointGroupScale=function(ce,ye,J){if(ye=ye||1,J=J||1,ce){var ne=ye===1&&J===1?"":"scale("+ye+","+J+")";ce.each(function(){var de=(this.getAttribute("transform")||"").replace(U,"");de=(de+=ne).trim(),this.setAttribute("transform",de)})}};var Q=/translate\([^)]*\)\s*$/;function Y(ce,ye){var J;return ce&&(J=ce.mf),J===void 0&&(J=ye.marker&&ye.marker.standoff||0),ye._geo||ye._xA?J:-J}T.setTextPointsScale=function(ce,ye,J){ce&&ce.each(function(){var ne,de=l.select(this),xe=de.select("text");if(xe.node()){var ue=parseFloat(xe.attr("x")||0),ge=parseFloat(xe.attr("y")||0),be=(de.attr("transform")||"").match(Q);ne=ye===1&&J===1?[]:[y(ue,ge),"scale("+ye+","+J+")",y(-ue,-ge)],be&&ne.push(be),de.attr("transform",ne.join(""))}})},T.getMarkerStandoff=Y;var Z,X,re,ie,le,se,pe=Math.atan2,Te=Math.cos,Se=Math.sin;function Oe(ce,ye){var J=ye[0],ne=ye[1];return[J*Te(ce)-ne*Se(ce),J*Se(ce)+ne*Te(ce)]}function Me(ce,ye){var J,ne,de=ce.ma;de===void 0&&(de=ye.marker.angle||0);var xe=ye.marker.angleref;if(xe==="previous"||xe==="north"){if(ye._geo){var ue=ye._geo.project(ce.lonlat);J=ue[0],ne=ue[1]}else{var ge=ye._xA,be=ye._yA;if(!ge||!be)return 90;J=ge.c2p(ce.x),ne=be.c2p(ce.y)}if(ye._geo){var we,ke=ce.lonlat[0],Ae=ce.lonlat[1],Ee=ye._geo.project([ke,Ae+1e-5]),De=ye._geo.project([ke+1e-5,Ae]),Re=pe(De[1]-ne,De[0]-J),Ie=pe(Ee[1]-ne,Ee[0]-J);if(xe==="north")we=de/180*Math.PI;else if(xe==="previous"){var Be=ke/180*Math.PI,Ue=Ae/180*Math.PI,qe=Z/180*Math.PI,Ye=X/180*Math.PI,at=qe-Be,lt=Te(Ye)*Se(at),ct=Se(Ye)*Te(Ue)-Te(Ye)*Se(Ue)*Te(at);we=-pe(lt,ct)-Math.PI,Z=ke,X=Ae}var bt=Oe(Re,[Te(we),0]),ze=Oe(Ie,[Se(we),0]);de=pe(bt[1]+ze[1],bt[0]+ze[0])/Math.PI*180,xe!=="previous"||se===ye.uid&&ce.i===le+1||(de=null)}if(xe==="previous"&&!ye._geo)if(se===ye.uid&&ce.i===le+1&&u(J)&&u(ne)){var Ne=J-re,Qe=ne-ie,it=ye.line&&ye.line.shape||"",kt=it.slice(it.length-1);kt==="h"&&(Qe=0),kt==="v"&&(Ne=0),de+=pe(Qe,Ne)/Math.PI*180+90}else de=null}return re=J,ie=ne,le=ce.i,se=ye.uid,de}T.getMarkerAngle=Me},90998:function(o,a,n){var l,f,s,u,d=n(95616),h=n(39898).round,p="M0,0Z",m=Math.sqrt(2),y=Math.sqrt(3),v=Math.PI,g=Math.cos,b=Math.sin;function x(w){return w===null}function _(w,k,T){if(!(w&&w%360!=0||k))return T;if(s===w&&u===k&&l===T)return f;function M(N,E){var W=g(N),G=b(N),L=E[0],q=E[1]+(k||0);return[L*W-q*G,L*G+q*W]}s=w,u=k,l=T;for(var S=w/180*v,C=0,P=0,D=d(T),O="",R=0;R0,b=d._context.staticPlot;h.each(function(x){var _,w=x[0].trace,k=w.error_x||{},T=w.error_y||{};w.ids&&(_=function(P){return P.id});var M=u.hasMarkers(w)&&w.marker.maxdisplayed>0;T.visible||k.visible||(x=[]);var S=l.select(this).selectAll("g.errorbar").data(x,_);if(S.exit().remove(),x.length){k.visible||S.selectAll("path.xerror").remove(),T.visible||S.selectAll("path.yerror").remove(),S.style("opacity",1);var C=S.enter().append("g").classed("errorbar",!0);g&&C.style("opacity",0).transition().duration(m.duration).style("opacity",1),s.setClipUrl(S,p.layerClipId,d),S.each(function(P){var D=l.select(this),O=function($,j,N){var E={x:j.c2p($.x),y:N.c2p($.y)};return $.yh!==void 0&&(E.yh=N.c2p($.yh),E.ys=N.c2p($.ys),f(E.ys)||(E.noYS=!0,E.ys=N.c2p($.ys,!0))),$.xh!==void 0&&(E.xh=j.c2p($.xh),E.xs=j.c2p($.xs),f(E.xs)||(E.noXS=!0,E.xs=j.c2p($.xs,!0))),E}(P,y,v);if(!M||P.vis){var R,F=D.select("path.yerror");if(T.visible&&f(O.x)&&f(O.yh)&&f(O.ys)){var A=T.width;R="M"+(O.x-A)+","+O.yh+"h"+2*A+"m-"+A+",0V"+O.ys,O.noYS||(R+="m-"+A+",0h"+2*A),F.size()?g&&(F=F.transition().duration(m.duration).ease(m.easing)):F=D.append("path").style("vector-effect",b?"none":"non-scaling-stroke").classed("yerror",!0),F.attr("d",R)}else F.remove();var z=D.select("path.xerror");if(k.visible&&f(O.y)&&f(O.xh)&&f(O.xs)){var B=(k.copy_ystyle?T:k).width;R="M"+O.xh+","+(O.y-B)+"v"+2*B+"m0,-"+B+"H"+O.xs,O.noXS||(R+="m0,-"+B+"v"+2*B),z.size()?g&&(z=z.transition().duration(m.duration).ease(m.easing)):z=D.append("path").style("vector-effect",b?"none":"non-scaling-stroke").classed("xerror",!0),z.attr("d",R)}else z.remove()}})}})}},62662:function(o,a,n){var l=n(39898),f=n(7901);o.exports=function(s){s.each(function(u){var d=u[0].trace,h=d.error_y||{},p=d.error_x||{},m=l.select(this);m.selectAll("path.yerror").style("stroke-width",h.thickness+"px").call(f.stroke,h.color),p.copy_ystyle&&(p=h),m.selectAll("path.xerror").style("stroke-width",p.thickness+"px").call(f.stroke,p.color)})}},77914:function(o,a,n){var l=n(41940),f=n(528).hoverlabel,s=n(1426).extendFlat;o.exports={hoverlabel:{bgcolor:s({},f.bgcolor,{arrayOk:!0}),bordercolor:s({},f.bordercolor,{arrayOk:!0}),font:l({arrayOk:!0,editType:"none"}),align:s({},f.align,{arrayOk:!0}),namelength:s({},f.namelength,{arrayOk:!0}),editType:"none"}}},30732:function(o,a,n){var l=n(71828),f=n(73972);function s(u,d,h,p){p=p||l.identity,Array.isArray(u)&&(d[0][h]=p(u))}o.exports=function(u){var d=u.calcdata,h=u._fullLayout;function p(b){return function(x){return l.coerceHoverinfo({hoverinfo:x},{_module:b._module},h)}}for(var m=0;m=0&&y.indexde[0]._length||pt<0||pt>xe[0]._length)return b.unhoverRaw(ie,le)}else ut="xpx"in le?le.xpx:de[0]._length/2,pt="ypx"in le?le.ypx:xe[0]._length/2;if(le.pointerX=ut+de[0]._offset,le.pointerY=pt+xe[0]._offset,De="xval"in le?w.flat(Se,le.xval):w.p2c(de,ut),Re="yval"in le?w.flat(Se,le.yval):w.p2c(xe,pt),!f(De[0])||!f(Re[0]))return u.warn("Fx.hover failed",le,ie),b.unhoverRaw(ie,le)}var zt=1/0;function wt(Zt,pn){for(Be=0;BeNe&&(Qe.splice(0,Ne),zt=Qe[0].distance),ye&&Ee!==0&&Qe.length===0){ze.distance=Ee,ze.index=!1;var Pn=qe._module.hoverPoints(ze,ct,bt,"closest",{hoverLayer:Oe._hoverlayer});if(Pn&&(Pn=Pn.filter(function(lr){return lr.spikeDistance<=Ee})),Pn&&Pn.length){var xn,Dn=Pn.filter(function(lr){return lr.xa.showspikes&&lr.xa.spikesnap!=="hovered data"});if(Dn.length){var tr=Dn[0];f(tr.x0)&&f(tr.y0)&&(xn=_e(tr),(!kt.vLinePoint||kt.vLinePoint.spikeDistance>xn.spikeDistance)&&(kt.vLinePoint=xn))}var ia=Pn.filter(function(lr){return lr.ya.showspikes&&lr.ya.spikesnap!=="hovered data"});if(ia.length){var fa=ia[0];f(fa.x0)&&f(fa.y0)&&(xn=_e(fa),(!kt.hLinePoint||kt.hLinePoint.spikeDistance>xn.spikeDistance)&&(kt.hLinePoint=xn))}}}}}function ve(Zt,pn,nn){for(var Kt,Cn=null,_n=1/0,Pn=0;Pn0&&Math.abs(Zt.distance)Ft-1;Vt--)gt(Qe[Vt]);Qe=St,Ze()}var ht=ie._hoverdata,yt=[],qt=te(ie),Et=ee(ie);for(Ie=0;Ie1||Qe.length>1)||ke==="closest"&&Je&&Qe.length>1,cn=g.combine(Oe.plot_bgcolor||g.background,Oe.paper_bgcolor),ln=j(Qe,{gd:ie,hovermode:ke,rotateLabels:tn,bgColor:cn,container:Oe._hoverlayer,outerContainer:Oe._paper.node(),commonLabelOpts:Oe.hoverlabel,hoverdistance:Oe.hoverdistance}),an=ln.hoverLabels;if(w.isUnifiedHover(ke)||(function(Zt,pn,nn,Kt){var Cn,_n,Pn,xn,Dn,tr,ia,fa=pn?"xa":"ya",lr=pn?"ya":"xa",ni=0,Ar=1,ur=Zt.size(),kr=new Array(ur),oa=0,On=Kt.minX,on=Kt.maxX,$n=Kt.minY,Pr=Kt.maxY,Ln=function(Tn){return Tn*nn._invScaleX},Bn=function(Tn){return Tn*nn._invScaleY};function jn(Tn){var Dr=Tn[0],Pa=Tn[Tn.length-1];if(_n=Dr.pmin-Dr.pos-Dr.dp+Dr.size,Pn=Pa.pos+Pa.dp+Pa.size-Dr.pmax,_n>.01){for(Dn=Tn.length-1;Dn>=0;Dn--)Tn[Dn].dp+=_n;Cn=!1}if(!(Pn<.01)){if(_n<-.01){for(Dn=Tn.length-1;Dn>=0;Dn--)Tn[Dn].dp-=Pn;Cn=!1}if(Cn){var Br=0;for(xn=0;xnDr.pmax&&Br++;for(xn=Tn.length-1;xn>=0&&!(Br<=0);xn--)(tr=Tn[xn]).pos>Dr.pmax-1&&(tr.del=!0,Br--);for(xn=0;xn=0;Dn--)Tn[Dn].dp-=Pn;for(xn=Tn.length-1;xn>=0&&!(Br<=0);xn--)(tr=Tn[xn]).pos+tr.dp+tr.size>Dr.pmax&&(tr.del=!0,Br--)}}}for(Zt.each(function(Tn){var Dr=Tn[fa],Pa=Tn[lr],Br=Dr._id.charAt(0)==="x",Ni=Dr.range;oa===0&&Ni&&Ni[0]>Ni[1]!==Br&&(Ar=-1);var ji=0,vi=Br?nn.width:nn.height;if(nn.hovermode==="x"||nn.hovermode==="y"){var ri,Xa,yi=E(Tn,pn),fs=Tn.anchor,rl=fs==="end"?-1:1;if(fs==="middle")Xa=(ri=Tn.crossPos+(Br?Bn(yi.y-Tn.by/2):Ln(Tn.bx/2+Tn.tx2width/2)))+(Br?Bn(Tn.by):Ln(Tn.bx));else if(Br)Xa=(ri=Tn.crossPos+Bn(R+yi.y)-Bn(Tn.by/2-R))+Bn(Tn.by);else{var ds=Ln(rl*R+yi.x),lo=ds+Ln(rl*Tn.bx);ri=Tn.crossPos+Math.min(ds,lo),Xa=Tn.crossPos+Math.max(ds,lo)}Br?$n!==void 0&&Pr!==void 0&&Math.min(Xa,Pr)-Math.max(ri,$n)>1&&(Pa.side==="left"?(ji=Pa._mainLinePosition,vi=nn.width):vi=Pa._mainLinePosition):On!==void 0&&on!==void 0&&Math.min(Xa,on)-Math.max(ri,On)>1&&(Pa.side==="top"?(ji=Pa._mainLinePosition,vi=nn.height):vi=Pa._mainLinePosition)}kr[oa++]=[{datum:Tn,traceIndex:Tn.trace.index,dp:0,pos:Tn.pos,posref:Tn.posref,size:Tn.by*(Br?P:1)/2,pmin:ji,pmax:vi}]}),kr.sort(function(Tn,Dr){return Tn[0].posref-Dr[0].posref||Ar*(Dr[0].traceIndex-Tn[0].traceIndex)});!Cn&&ni<=ur;){for(ni++,Cn=!0,xn=0;xn.01&&br.pmin===Mr.pmin&&br.pmax===Mr.pmax){for(Dn=Lr.length-1;Dn>=0;Dn--)Lr[Dn].dp+=_n;for(Un.push.apply(Un,Lr),kr.splice(xn+1,1),ia=0,Dn=Un.length-1;Dn>=0;Dn--)ia+=Un[Dn].dp;for(Pn=ia/Un.length,Dn=Un.length-1;Dn>=0;Dn--)Un[Dn].dp-=Pn;Cn=!1}else xn++}kr.forEach(jn)}for(xn=kr.length-1;xn>=0;xn--){var ja=kr[xn];for(Dn=ja.length-1;Dn>=0;Dn--){var _a=ja[Dn],la=_a.datum;la.offset=_a.dp,la.del=_a.del}}}(an,tn,Oe,ln.commonLabelBoundingBox),W(an,tn,Oe._invScaleX,Oe._invScaleY)),Te&&Te.tagName){var sn=_.getComponentMethod("annotations","hasClickToShow")(ie,yt);y(l.select(Te),sn?"pointer":"")}Te&&!pe&&function(Zt,pn,nn){if(!nn||nn.length!==Zt._hoverdata.length)return!0;for(var Kt=nn.length-1;Kt>=0;Kt--){var Cn=nn[Kt],_n=Zt._hoverdata[Kt];if(Cn.curveNumber!==_n.curveNumber||String(Cn.pointNumber)!==String(_n.pointNumber)||String(Cn.pointNumbers)!==String(_n.pointNumbers))return!0}return!1}(ie,0,ht)&&(ht&&ie.emit("plotly_unhover",{event:le,points:ht}),ie.emit("plotly_hover",{event:le,points:ie._hoverdata,xaxes:de,yaxes:xe,xvals:De,yvals:Re}))})(Q,Y,Z,X,re)})},a.loneHover=function(Q,Y){var Z=!0;Array.isArray(Q)||(Z=!1,Q=[Q]);var X=Y.gd,re=te(X),ie=ee(X),le=j(Q.map(function(Te){var Se=Te._x0||Te.x0||Te.x||0,Oe=Te._x1||Te.x1||Te.x||0,Me=Te._y0||Te.y0||Te.y||0,ce=Te._y1||Te.y1||Te.y||0,ye=Te.eventData;if(ye){var J=Math.min(Se,Oe),ne=Math.max(Se,Oe),de=Math.min(Me,ce),xe=Math.max(Me,ce),ue=Te.trace;if(_.traceIs(ue,"gl3d")){var ge=X._fullLayout[ue.scene]._scene.container,be=ge.offsetLeft,we=ge.offsetTop;J+=be,ne+=be,de+=we,xe+=we}ye.bbox={x0:J+ie,x1:ne+ie,y0:de+re,y1:xe+re},Y.inOut_bbox&&Y.inOut_bbox.push(ye.bbox)}else ye=!1;return{color:Te.color||g.defaultLine,x0:Te.x0||Te.x||0,x1:Te.x1||Te.x||0,y0:Te.y0||Te.y||0,y1:Te.y1||Te.y||0,xLabel:Te.xLabel,yLabel:Te.yLabel,zLabel:Te.zLabel,text:Te.text,name:Te.name,idealAlign:Te.idealAlign,borderColor:Te.borderColor,fontFamily:Te.fontFamily,fontSize:Te.fontSize,fontColor:Te.fontColor,nameLength:Te.nameLength,textAlign:Te.textAlign,trace:Te.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:Te.hovertemplate||!1,hovertemplateLabels:Te.hovertemplateLabels||!1,eventData:ye}}),{gd:X,hovermode:"closest",rotateLabels:!1,bgColor:Y.bgColor||g.background,container:l.select(Y.container),outerContainer:Y.outerContainer||Y.container}).hoverLabels,se=0,pe=0;return le.sort(function(Te,Se){return Te.y0-Se.y0}).each(function(Te,Se){var Oe=Te.y0-Te.by/2;Te.offset=Oe-5([\s\S]*)<\/extra>/;function j(Q,Y){var Z=Y.gd,X=Z._fullLayout,re=Y.hovermode,ie=Y.rotateLabels,le=Y.bgColor,se=Y.container,pe=Y.outerContainer,Te=Y.commonLabelOpts||{};if(Q.length===0)return[[]];var Se=Y.fontFamily||k.HOVERFONT,Oe=Y.fontSize||k.HOVERFONTSIZE,Me=Q[0],ce=Me.xa,ye=Me.ya,J=re.charAt(0),ne=J+"Label",de=Me[ne];if(de===void 0&&ce.type==="multicategory")for(var xe=0;xeX.width-jt?(ht=X.width-jt,Ft.attr("d","M"+(jt-R)+",0L"+jt+","+Et+R+"v"+Et+(2*F+qt.height)+"H-"+jt+"V"+Et+R+"H"+(jt-2*R)+"Z")):Ft.attr("d","M0,0L"+R+","+Et+R+"H"+jt+"v"+Et+(2*F+qt.height)+"H-"+jt+"V"+Et+R+"H-"+R+"Z"),Be.minX=ht-jt,Be.maxX=ht+jt,ce.side==="top"?(Be.minY=yt-(2*F+qt.height),Be.maxY=yt-F):(Be.minY=yt+F,Be.maxY=yt+(2*F+qt.height))}else{var Tt,Ot,At;ye.side==="right"?(Tt="start",Ot=1,At="",ht=ce._offset+ce._length):(Tt="end",Ot=-1,At="-",ht=ce._offset),yt=ye._offset+(Me.y0+Me.y1)/2,Vt.attr("text-anchor",Tt),Ft.attr("d","M0,0L"+At+R+","+R+"V"+(F+qt.height/2)+"h"+At+(2*F+qt.width)+"V-"+(F+qt.height/2)+"H"+At+R+"V-"+R+"Z"),Be.minY=yt-(F+qt.height/2),Be.maxY=yt+(F+qt.height/2),ye.side==="right"?(Be.minX=ht+R,Be.maxX=ht+R+(2*F+qt.width)):(Be.minX=ht-R-(2*F+qt.width),Be.maxX=ht-R);var Lt,Rt=qt.height/2,$t=ge-qt.top-Rt,Yt="clip"+X._uid+"commonlabel"+ye._id;if(ht=0?pt:It+wt=0?It:nt+wt=0?Je:ut+ve=0?ut:st+ve=0,tt.idealAlign!=="top"&&tn||!cn?tn?(Rt+=Yt/2,tt.anchor="start"):tt.anchor="middle":(Rt-=Yt/2,tt.anchor="end"),tt.crossPos=Rt;else{if(tt.pos=Rt,tn=Lt+$t/2+ln<=be,cn=Lt-$t/2-ln>=0,tt.idealAlign!=="left"&&tn||!cn)if(tn)Lt+=$t/2,tt.anchor="start";else{tt.anchor="middle";var an=ln/2,sn=Lt+an-be,Zt=Lt-an;sn>0&&(Lt-=sn),Zt<0&&(Lt+=-Zt)}else Lt-=$t/2,tt.anchor="end";tt.crossPos=Lt}Et.attr("text-anchor",tt.anchor),Tt&&jt.attr("text-anchor",tt.anchor),Ft.attr("transform",d(Lt,Rt)+(ie?h(S):""))}),{hoverLabels:mt,commonLabelBoundingBox:Be}}function N(Q,Y,Z,X,re,ie){var le="",se="";Q.nameOverride!==void 0&&(Q.name=Q.nameOverride),Q.name&&(Q.trace._meta&&(Q.name=u.templateString(Q.name,Q.trace._meta)),le=H(Q.name,Q.nameLength));var pe=Z.charAt(0),Te=pe==="x"?"y":"x";Q.zLabel!==void 0?(Q.xLabel!==void 0&&(se+="x: "+Q.xLabel+"
"),Q.yLabel!==void 0&&(se+="y: "+Q.yLabel+"
"),Q.trace.type!=="choropleth"&&Q.trace.type!=="choroplethmapbox"&&(se+=(se?"z: ":"")+Q.zLabel)):Y&&Q[pe+"Label"]===re?se=Q[Te+"Label"]||"":Q.xLabel===void 0?Q.yLabel!==void 0&&Q.trace.type!=="scattercarpet"&&(se=Q.yLabel):se=Q.yLabel===void 0?Q.xLabel:"("+Q.xLabel+", "+Q.yLabel+")",!Q.text&&Q.text!==0||Array.isArray(Q.text)||(se+=(se?"
":"")+Q.text),Q.extraText!==void 0&&(se+=(se?"
":"")+Q.extraText),ie&&se===""&&!Q.hovertemplate&&(le===""&&ie.remove(),se=le);var Se=Q.hovertemplate||!1;if(Se){var Oe=Q.hovertemplateLabels||Q;Q[pe+"Label"]!==re&&(Oe[pe+"other"]=Oe[pe+"Val"],Oe[pe+"otherLabel"]=Oe[pe+"Label"]),se=(se=u.hovertemplateString(Se,Oe,X._d3locale,Q.eventData[0]||{},Q.trace._meta)).replace($,function(Me,ce){return le=H(ce,Q.nameLength),""})}return[se,le]}function E(Q,Y){var Z=0,X=Q.offset;return Y&&(X*=-O,Z=Q.offset*D),{x:Z,y:X}}function W(Q,Y,Z,X){var re=function(le){return le*Z},ie=function(le){return le*X};Q.each(function(le){var se=l.select(this);if(le.del)return se.remove();var pe,Te,Se,Oe,Me=se.select("text.nums"),ce=le.anchor,ye=ce==="end"?-1:1,J=(Oe=(Se=(Te={start:1,end:-1,middle:0}[(pe=le).anchor])*(R+F))+Te*(pe.txwidth+F),pe.anchor==="middle"&&(Se-=pe.tx2width/2,Oe+=pe.txwidth/2+F),{alignShift:Te,textShiftX:Se,text2ShiftX:Oe}),ne=E(le,Y),de=ne.x,xe=ne.y,ue=ce==="middle";se.select("path").attr("d",ue?"M-"+re(le.bx/2+le.tx2width/2)+","+ie(xe-le.by/2)+"h"+re(le.bx)+"v"+ie(le.by)+"h-"+re(le.bx)+"Z":"M0,0L"+re(ye*R+de)+","+ie(R+xe)+"v"+ie(le.by/2-R)+"h"+re(ye*le.bx)+"v-"+ie(le.by)+"H"+re(ye*R+de)+"V"+ie(xe-R)+"Z");var ge=de+J.textShiftX,be=xe+le.ty0-le.by/2+F,we=le.textAlign||"auto";we!=="auto"&&(we==="left"&&ce!=="start"?(Me.attr("text-anchor","start"),ge=ue?-le.bx/2-le.tx2width/2+F:-le.bx-F):we==="right"&&ce!=="end"&&(Me.attr("text-anchor","end"),ge=ue?le.bx/2-le.tx2width/2-F:le.bx+F)),Me.call(m.positionText,re(ge),ie(be)),le.tx2width&&(se.select("text.name").call(m.positionText,re(J.text2ShiftX+J.alignShift*F+de),ie(xe+le.ty0-le.by/2+F)),se.select("rect").call(v.setRect,re(J.text2ShiftX+(J.alignShift-1)*le.tx2width/2+de),ie(xe-le.by/2-1),re(le.tx2width),ie(le.by+2)))})}function G(Q,Y){var Z=Q.index,X=Q.trace||{},re=Q.cd[0],ie=Q.cd[Z]||{};function le(Me){return Me||f(Me)&&Me===0}var se=Array.isArray(Z)?function(Me,ce){var ye=u.castOption(re,Z,Me);return le(ye)?ye:u.extractOption({},X,"",ce)}:function(Me,ce){return u.extractOption(ie,X,Me,ce)};function pe(Me,ce,ye){var J=se(ce,ye);le(J)&&(Q[Me]=J)}if(pe("hoverinfo","hi","hoverinfo"),pe("bgcolor","hbg","hoverlabel.bgcolor"),pe("borderColor","hbc","hoverlabel.bordercolor"),pe("fontFamily","htf","hoverlabel.font.family"),pe("fontSize","hts","hoverlabel.font.size"),pe("fontColor","htc","hoverlabel.font.color"),pe("nameLength","hnl","hoverlabel.namelength"),pe("textAlign","hta","hoverlabel.align"),Q.posref=Y==="y"||Y==="closest"&&X.orientation==="h"?Q.xa._offset+(Q.x0+Q.x1)/2:Q.ya._offset+(Q.y0+Q.y1)/2,Q.x0=u.constrain(Q.x0,0,Q.xa._length),Q.x1=u.constrain(Q.x1,0,Q.xa._length),Q.y0=u.constrain(Q.y0,0,Q.ya._length),Q.y1=u.constrain(Q.y1,0,Q.ya._length),Q.xLabelVal!==void 0&&(Q.xLabel="xLabel"in Q?Q.xLabel:x.hoverLabelText(Q.xa,Q.xLabelVal,X.xhoverformat),Q.xVal=Q.xa.c2d(Q.xLabelVal)),Q.yLabelVal!==void 0&&(Q.yLabel="yLabel"in Q?Q.yLabel:x.hoverLabelText(Q.ya,Q.yLabelVal,X.yhoverformat),Q.yVal=Q.ya.c2d(Q.yLabelVal)),Q.zLabelVal!==void 0&&Q.zLabel===void 0&&(Q.zLabel=String(Q.zLabelVal)),!(isNaN(Q.xerr)||Q.xa.type==="log"&&Q.xerr<=0)){var Te=x.tickText(Q.xa,Q.xa.c2l(Q.xerr),"hover").text;Q.xerrneg!==void 0?Q.xLabel+=" +"+Te+" / -"+x.tickText(Q.xa,Q.xa.c2l(Q.xerrneg),"hover").text:Q.xLabel+=" ± "+Te,Y==="x"&&(Q.distance+=1)}if(!(isNaN(Q.yerr)||Q.ya.type==="log"&&Q.yerr<=0)){var Se=x.tickText(Q.ya,Q.ya.c2l(Q.yerr),"hover").text;Q.yerrneg!==void 0?Q.yLabel+=" +"+Se+" / -"+x.tickText(Q.ya,Q.ya.c2l(Q.yerrneg),"hover").text:Q.yLabel+=" ± "+Se,Y==="y"&&(Q.distance+=1)}var Oe=Q.hoverinfo||Q.trace.hoverinfo;return Oe&&Oe!=="all"&&((Oe=Array.isArray(Oe)?Oe:Oe.split("+")).indexOf("x")===-1&&(Q.xLabel=void 0),Oe.indexOf("y")===-1&&(Q.yLabel=void 0),Oe.indexOf("z")===-1&&(Q.zLabel=void 0),Oe.indexOf("text")===-1&&(Q.text=void 0),Oe.indexOf("name")===-1&&(Q.name=void 0)),Q}function L(Q,Y,Z){var X,re,ie=Z.container,le=Z.fullLayout,se=le._size,pe=Z.event,Te=!!Y.hLinePoint,Se=!!Y.vLinePoint;if(ie.selectAll(".spikeline").remove(),Se||Te){var Oe=g.combine(le.plot_bgcolor,le.paper_bgcolor);if(Te){var Me,ce,ye=Y.hLinePoint;X=ye&&ye.xa,(re=ye&&ye.ya).spikesnap==="cursor"?(Me=pe.pointerX,ce=pe.pointerY):(Me=X._offset+ye.x,ce=re._offset+ye.y);var J,ne,de=s.readability(ye.color,Oe)<1.5?g.contrast(Oe):ye.color,xe=re.spikemode,ue=re.spikethickness,ge=re.spikecolor||de,be=x.getPxPosition(Q,re);if(xe.indexOf("toaxis")!==-1||xe.indexOf("across")!==-1){if(xe.indexOf("toaxis")!==-1&&(J=be,ne=Me),xe.indexOf("across")!==-1){var we=re._counterDomainMin,ke=re._counterDomainMax;re.anchor==="free"&&(we=Math.min(we,re.position),ke=Math.max(ke,re.position)),J=se.l+we*se.w,ne=se.l+ke*se.w}ie.insert("line",":first-child").attr({x1:J,x2:ne,y1:ce,y2:ce,"stroke-width":ue,stroke:ge,"stroke-dasharray":v.dashStyle(re.spikedash,ue)}).classed("spikeline",!0).classed("crisp",!0),ie.insert("line",":first-child").attr({x1:J,x2:ne,y1:ce,y2:ce,"stroke-width":ue+2,stroke:Oe}).classed("spikeline",!0).classed("crisp",!0)}xe.indexOf("marker")!==-1&&ie.insert("circle",":first-child").attr({cx:be+(re.side!=="right"?ue:-ue),cy:ce,r:ue,fill:ge}).classed("spikeline",!0)}if(Se){var Ae,Ee,De=Y.vLinePoint;X=De&&De.xa,re=De&&De.ya,X.spikesnap==="cursor"?(Ae=pe.pointerX,Ee=pe.pointerY):(Ae=X._offset+De.x,Ee=re._offset+De.y);var Re,Ie,Be=s.readability(De.color,Oe)<1.5?g.contrast(Oe):De.color,Ue=X.spikemode,qe=X.spikethickness,Ye=X.spikecolor||Be,at=x.getPxPosition(Q,X);if(Ue.indexOf("toaxis")!==-1||Ue.indexOf("across")!==-1){if(Ue.indexOf("toaxis")!==-1&&(Re=at,Ie=Ee),Ue.indexOf("across")!==-1){var lt=X._counterDomainMin,ct=X._counterDomainMax;X.anchor==="free"&&(lt=Math.min(lt,X.position),ct=Math.max(ct,X.position)),Re=se.t+(1-ct)*se.h,Ie=se.t+(1-lt)*se.h}ie.insert("line",":first-child").attr({x1:Ae,x2:Ae,y1:Re,y2:Ie,"stroke-width":qe,stroke:Ye,"stroke-dasharray":v.dashStyle(X.spikedash,qe)}).classed("spikeline",!0).classed("crisp",!0),ie.insert("line",":first-child").attr({x1:Ae,x2:Ae,y1:Re,y2:Ie,"stroke-width":qe+2,stroke:Oe}).classed("spikeline",!0).classed("crisp",!0)}Ue.indexOf("marker")!==-1&&ie.insert("circle",":first-child").attr({cx:Ae,cy:at-(X.side!=="top"?qe:-qe),r:qe,fill:Ye}).classed("spikeline",!0)}}}function q(Q,Y){return!Y}function H(Q,Y){return m.plainText(Q||"",{len:Y,allowedTags:["br","sub","sup","b","i","em"]})}function V(Q,Y,Z){var X=Y[Q+"a"],re=Y[Q+"Val"],ie=Y.cd[0];if(X.type==="category"||X.type==="multicategory")re=X._categoriesMap[re];else if(X.type==="date"){var le=Y.trace[Q+"periodalignment"];if(le){var se=Y.cd[Y.index],pe=se[Q+"Start"];pe===void 0&&(pe=se[Q]);var Te=se[Q+"End"];Te===void 0&&(Te=se[Q]);var Se=Te-pe;le==="end"?re+=Se:le==="middle"&&(re+=Se/2)}re=X.d2c(re)}return ie&&ie.t&&ie.t.posLetter===X._id&&(Z.boxmode!=="group"&&Z.violinmode!=="group"||(re+=ie.t.dPos)),re}function te(Q){return Q.offsetTop+Q.clientTop}function ee(Q){return Q.offsetLeft+Q.clientLeft}function U(Q,Y){var Z=Q._fullLayout,X=Y.getBoundingClientRect(),re=X.left,ie=X.top,le=re+X.width,se=ie+X.height,pe=u.apply3DTransform(Z._invTransform)(re,ie),Te=u.apply3DTransform(Z._invTransform)(le,se),Se=pe[0],Oe=pe[1],Me=Te[0],ce=Te[1];return{x:Se,y:Oe,width:Me-Se,height:ce-Oe,top:Math.min(Oe,ce),left:Math.min(Se,Me),right:Math.max(Se,Me),bottom:Math.max(Oe,ce)}}},38048:function(o,a,n){var l=n(71828),f=n(7901),s=n(23469).isUnifiedHover;o.exports=function(u,d,h,p){p=p||{};var m=d.legend;function y(v){p.font[v]||(p.font[v]=m?d.legend.font[v]:d.font[v])}d&&s(d.hovermode)&&(p.font||(p.font={}),y("size"),y("family"),y("color"),m?(p.bgcolor||(p.bgcolor=f.combine(d.legend.bgcolor,d.paper_bgcolor)),p.bordercolor||(p.bordercolor=d.legend.bordercolor)):p.bgcolor||(p.bgcolor=d.paper_bgcolor)),h("hoverlabel.bgcolor",p.bgcolor),h("hoverlabel.bordercolor",p.bordercolor),h("hoverlabel.namelength",p.namelength),l.coerceFont(h,"hoverlabel.font",p.font),h("hoverlabel.align",p.align)}},98212:function(o,a,n){var l=n(71828),f=n(528);o.exports=function(s,u){function d(h,p){return u[h]!==void 0?u[h]:l.coerce(s,u,f,h,p)}return d("clickmode"),d("hovermode")}},30211:function(o,a,n){var l=n(39898),f=n(71828),s=n(28569),u=n(23469),d=n(528),h=n(88335);o.exports={moduleType:"component",name:"fx",constants:n(26675),schema:{layout:d},attributes:n(77914),layoutAttributes:d,supplyLayoutGlobalDefaults:n(22774),supplyDefaults:n(54268),supplyLayoutDefaults:n(34938),calc:n(30732),getDistanceFunction:u.getDistanceFunction,getClosest:u.getClosest,inbox:u.inbox,quadrature:u.quadrature,appendArrayPointValue:u.appendArrayPointValue,castHoverOption:function(p,m,y){return f.castOption(p,m,"hoverlabel."+y)},castHoverinfo:function(p,m,y){return f.castOption(p,y,"hoverinfo",function(v){return f.coerceHoverinfo({hoverinfo:v},{_module:p._module},m)})},hover:h.hover,unhover:s.unhover,loneHover:h.loneHover,loneUnhover:function(p){var m=f.isD3Selection(p)?p:l.select(p);m.selectAll("g.hovertext").remove(),m.selectAll(".spikeline").remove()},click:n(75914)}},528:function(o,a,n){var l=n(26675),f=n(41940),s=f({editType:"none"});s.family.dflt=l.HOVERFONT,s.size.dflt=l.HOVERFONTSIZE,o.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:s,grouptitlefont:f({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},34938:function(o,a,n){var l=n(71828),f=n(528),s=n(98212),u=n(38048);o.exports=function(d,h){function p(g,b){return l.coerce(d,h,f,g,b)}s(d,h)&&(p("hoverdistance"),p("spikedistance")),p("dragmode")==="select"&&p("selectdirection");var m=h._has("mapbox"),y=h._has("geo"),v=h._basePlotModules.length;h.dragmode==="zoom"&&((m||y)&&v===1||m&&y&&v===2)&&(h.dragmode="pan"),u(d,h,p),l.coerceFont(p,"hoverlabel.grouptitlefont",h.hoverlabel.font)}},22774:function(o,a,n){var l=n(71828),f=n(38048),s=n(528);o.exports=function(u,d){f(u,d,function(h,p){return l.coerce(u,d,s,h,p)})}},83312:function(o,a,n){var l=n(71828),f=n(30587).counter,s=n(27670).Y,u=n(85555).idRegex,d=n(44467),h={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[f("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[u.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[u.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:s({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function p(v,g,b){var x=g[b+"axes"],_=Object.keys((v._splomAxes||{})[b]||{});return Array.isArray(x)?x:_.length?_:void 0}function m(v,g,b,x,_,w){var k=g(v+"gap",b),T=g("domain."+v);g(v+"side",x);for(var M=new Array(_),S=T[0],C=(T[1]-S)/(_-k),P=C*(1-k),D=0;D<_;D++){var O=S+C*D;M[w?_-1-D:D]=[O,O+P]}return M}function y(v,g,b,x,_){var w,k=new Array(b);function T(M,S){g.indexOf(S)!==-1&&x[S]===void 0?(k[M]=S,x[S]=M):k[M]=""}if(Array.isArray(v))for(w=0;w1){T||M||S||$("pattern")==="independent"&&(T=!0),P._hasSubplotGrid=T;var R,F,A=$("roworder")==="top to bottom",z=T?.2:.1,B=T?.3:.1;C&&g._splomGridDflt&&(R=g._splomGridDflt.xside,F=g._splomGridDflt.yside),P._domains={x:m("x",$,z,R,O),y:m("y",$,B,F,D,A)}}else delete g.grid}function $(j,N){return l.coerce(b,P,h,j,N)}},contentDefaults:function(v,g){var b=g.grid;if(b&&b._domains){var x,_,w,k,T,M,S,C=v.grid||{},P=g._subplots,D=b._hasSubplotGrid,O=b.rows,R=b.columns,F=b.pattern==="independent",A=b._axisMap={};if(D){var z=C.subplots||[];M=b.subplots=new Array(O);var B=1;for(x=0;x(y==="legend"?1:0));if(B===!1&&(g[y]=void 0),(B!==!1||x.uirevision)&&(w("uirevision",g.uirevision),B!==!1)){w("borderwidth");var $,j,N,E=w("orientation")==="h",W=w("yref")==="paper",G=w("xref")==="paper",L="left";if(E?($=0,l.getComponentMethod("rangeslider","isVisible")(v.xaxis)?W?(j=1.1,N="bottom"):(j=1,N="top"):W?(j=-.1,N="top"):(j=0,N="bottom")):(j=1,N="auto",G?$=1.02:($=1,L="right")),f.coerce(x,_,{x:{valType:"number",editType:"legend",min:G?-2:0,max:G?3:1,dflt:$}},"x"),f.coerce(x,_,{y:{valType:"number",editType:"legend",min:W?-2:0,max:W?3:1,dflt:j}},"y"),w("traceorder",O),p.isGrouped(g[y])&&w("tracegroupgap"),w("entrywidth"),w("entrywidthmode"),w("itemsizing"),w("itemwidth"),w("itemclick"),w("itemdoubleclick"),w("groupclick"),w("xanchor",L),w("yanchor",N),w("valign"),f.noneOrAll(x,_,["x","y"]),w("title.text")){w("title.side",E?"left":"top");var q=f.extendFlat({},k,{size:f.bigFont(k.size)});f.coerceFont(w,"title.font",q)}}}}o.exports=function(y,v,g){var b,x=g.slice(),_=v.shapes;if(_)for(b=0;b<_.length;b++){var w=_[b];if(w.showlegend){var k={_input:w._input,visible:w.visible,showlegend:w.showlegend,legend:w.legend};x.push(k)}}var T=["legend"];for(b=0;b1)}var X=q.hiddenlabels||[];if(!(V||q.showlegend&&te.length))return G.selectAll("."+H).remove(),q._topdefs.select("#"+W).remove(),s.autoMargin(N,H);var re=f.ensureSingle(G,"g",H,function(ce){V||ce.attr("pointer-events","all")}),ie=f.ensureSingleById(q._topdefs,"clipPath",W,function(ce){ce.append("rect")}),le=f.ensureSingle(re,"rect","bg",function(ce){ce.attr("shape-rendering","crispEdges")});le.call(m.stroke,L.bordercolor).call(m.fill,L.bgcolor).style("stroke-width",L.borderwidth+"px");var se,pe=f.ensureSingle(re,"g","scrollbox"),Te=L.title;L._titleWidth=0,L._titleHeight=0,Te.text?((se=f.ensureSingle(pe,"text",H+"titletext")).attr("text-anchor","start").call(p.font,Te.font).text(Te.text),z(se,pe,N,L,S)):pe.selectAll("."+H+"titletext").remove();var Se=f.ensureSingle(re,"rect","scrollbar",function(ce){ce.attr(g.scrollBarEnterAttrs).call(m.fill,g.scrollBarColor)}),Oe=pe.selectAll("g.groups").data(te);Oe.enter().append("g").attr("class","groups"),Oe.exit().remove();var Me=Oe.selectAll("g.traces").data(f.identity);Me.enter().append("g").attr("class","traces"),Me.exit().remove(),Me.style("opacity",function(ce){var ye=ce[0].trace;return u.traceIs(ye,"pie-like")?X.indexOf(ce[0].label)!==-1?.5:1:ye.visible==="legendonly"?.5:1}).each(function(){l.select(this).call(R,N,L)}).call(T,N,L).each(function(){V||l.select(this).call(A,N,H)}),f.syncOrAsync([s.previousPromises,function(){return function(ce,ye,J,ne){var de=ce._fullLayout,xe=j(ne);ne||(ne=de[xe]);var ue=de._size,ge=M.isVertical(ne),be=M.isGrouped(ne),we=ne.entrywidthmode==="fraction",ke=ne.borderwidth,Ae=2*ke,Ee=g.itemGap,De=ne.itemwidth+2*Ee,Re=2*(ke+Ee),Ie=$(ne),Be=ne.y<0||ne.y===0&&Ie==="top",Ue=ne.y>1||ne.y===1&&Ie==="bottom",qe=ne.tracegroupgap,Ye={};ne._maxHeight=Math.max(Be||Ue?de.height/2:ue.h,30);var at=0;ne._width=0,ne._height=0;var lt=function(Ge){var Ke=0,nt=0,st=Ge.title.side;return st&&(st.indexOf("left")!==-1&&(Ke=Ge._titleWidth),st.indexOf("top")!==-1&&(nt=Ge._titleHeight)),[Ke,nt]}(ne);if(ge)J.each(function(Ge){var Ke=Ge[0].height;p.setTranslate(this,ke+lt[0],ke+lt[1]+ne._height+Ke/2+Ee),ne._height+=Ke,ne._width=Math.max(ne._width,Ge[0].width)}),at=De+ne._width,ne._width+=Ee+De+Ae,ne._height+=Re,be&&(ye.each(function(Ge,Ke){p.setTranslate(this,0,Ke*ne.tracegroupgap)}),ne._height+=(ne._lgroupsLength-1)*ne.tracegroupgap);else{var ct=B(ne),bt=ne.x<0||ne.x===0&&ct==="right",ze=ne.x>1||ne.x===1&&ct==="left",Ne=Ue||Be,Qe=de.width/2;ne._maxWidth=Math.max(bt?Ne&&ct==="left"?ue.l+ue.w:Qe:ze?Ne&&ct==="right"?ue.r+ue.w:Qe:ue.w,2*De);var it=0,kt=0;J.each(function(Ge){var Ke=D(Ge,ne,De);it=Math.max(it,Ke),kt+=Ke}),at=null;var Je=0;if(be){var ut=0,pt=0,It=0;ye.each(function(){var Ge=0,Ke=0;l.select(this).selectAll("g.traces").each(function(st){var mt=D(st,ne,De),tt=st[0].height;p.setTranslate(this,lt[0],lt[1]+ke+Ee+tt/2+Ke),Ke+=tt,Ge=Math.max(Ge,mt),Ye[st[0].trace.legendgroup]=Ge});var nt=Ge+Ee;pt>0&&nt+ke+pt>ne._maxWidth?(Je=Math.max(Je,pt),pt=0,It+=ut+qe,ut=Ke):ut=Math.max(ut,Ke),p.setTranslate(this,pt,It),pt+=nt}),ne._width=Math.max(Je,pt)+ke,ne._height=It+ut+Re}else{var Mt=J.size(),zt=kt+Ae+(Mt-1)*Ee=ne._maxWidth&&(Je=Math.max(Je,Ve),ve=0,_e+=wt,ne._height+=wt,wt=0),p.setTranslate(this,lt[0]+ke+ve,lt[1]+ke+_e+Ke/2+Ee),Ve=ve+nt+Ee,ve+=st,wt=Math.max(wt,Ke)}),zt?(ne._width=ve+Ae,ne._height=wt+Re):(ne._width=Math.max(Je,Ve)+Ae,ne._height+=wt+Re)}}ne._width=Math.ceil(Math.max(ne._width+lt[0],ne._titleWidth+2*(ke+g.titlePad))),ne._height=Math.ceil(Math.max(ne._height+lt[1],ne._titleHeight+2*(ke+g.itemGap))),ne._effHeight=Math.min(ne._height,ne._maxHeight);var We=ce._context.edits,Ze=We.legendText||We.legendPosition;J.each(function(Ge){var Ke=l.select(this).select("."+xe+"toggle"),nt=Ge[0].height,st=Ge[0].trace.legendgroup,mt=D(Ge,ne,De);be&&st!==""&&(mt=Ye[st]);var tt=Ze?De:at||mt;ge||we||(tt+=Ee/2),p.setRect(Ke,0,-nt/2,tt,nt)})}(N,Oe,Me,L)},function(){var ce,ye,J,ne,de=q._size,xe=L.borderwidth,ue=L.xref==="paper",ge=L.yref==="paper";if(Te.text&&function(Ne,Qe,it){if(Qe.title.side==="top center"||Qe.title.side==="top right"){var kt=Qe.title.font.size*x,Je=0,ut=Ne.node(),pt=p.bBox(ut).width;Qe.title.side==="top center"?Je=.5*(Qe._width-2*it-2*g.titlePad-pt):Qe.title.side==="top right"&&(Je=Qe._width-2*it-2*g.titlePad-pt),y.positionText(Ne,it+g.titlePad+Je,it+kt)}}(se,L,xe),!V){var be,we;be=ue?de.l+de.w*L.x-_[B(L)]*L._width:q.width*L.x-_[B(L)]*L._width,we=ge?de.t+de.h*(1-L.y)-_[$(L)]*L._effHeight:q.height*(1-L.y)-_[$(L)]*L._effHeight;var ke=function(Ne,Qe,it,kt){var Je=Ne._fullLayout,ut=Je[Qe],pt=B(ut),It=$(ut),Mt=ut.xref==="paper",zt=ut.yref==="paper";Ne._fullLayout._reservedMargin[Qe]={};var wt=ut.y<.5?"b":"t",ve=ut.x<.5?"l":"r",_e={r:Je.width-it,l:it+ut._width,b:Je.height-kt,t:kt+ut._effHeight};if(Mt&&zt)return s.autoMargin(Ne,Qe,{x:ut.x,y:ut.y,l:ut._width*_[pt],r:ut._width*w[pt],b:ut._effHeight*w[It],t:ut._effHeight*_[It]});Mt?Ne._fullLayout._reservedMargin[Qe][wt]=_e[wt]:zt||ut.orientation==="v"?Ne._fullLayout._reservedMargin[Qe][ve]=_e[ve]:Ne._fullLayout._reservedMargin[Qe][wt]=_e[wt]}(N,H,be,we);if(ke)return;if(q.margin.autoexpand){var Ae=be,Ee=we;be=ue?f.constrain(be,0,q.width-L._width):Ae,we=ge?f.constrain(we,0,q.height-L._effHeight):Ee,be!==Ae&&f.log("Constrain "+H+".x to make legend fit inside graph"),we!==Ee&&f.log("Constrain "+H+".y to make legend fit inside graph")}p.setTranslate(re,be,we)}if(Se.on(".drag",null),re.on("wheel",null),V||L._height<=L._maxHeight||N._context.staticPlot){var De=L._effHeight;V&&(De=L._height),le.attr({width:L._width-xe,height:De-xe,x:xe/2,y:xe/2}),p.setTranslate(pe,0,0),ie.select("rect").attr({width:L._width-2*xe,height:De-2*xe,x:xe,y:xe}),p.setClipUrl(pe,W,N),p.setRect(Se,0,0,0,0),delete L._scrollY}else{var Re,Ie,Be,Ue=Math.max(g.scrollBarMinHeight,L._effHeight*L._effHeight/L._height),qe=L._effHeight-Ue-2*g.scrollBarMargin,Ye=L._height-L._effHeight,at=qe/Ye,lt=Math.min(L._scrollY||0,Ye);le.attr({width:L._width-2*xe+g.scrollBarWidth+g.scrollBarMargin,height:L._effHeight-xe,x:xe/2,y:xe/2}),ie.select("rect").attr({width:L._width-2*xe+g.scrollBarWidth+g.scrollBarMargin,height:L._effHeight-2*xe,x:xe,y:xe+lt}),p.setClipUrl(pe,W,N),ze(lt,Ue,at),re.on("wheel",function(){ze(lt=f.constrain(L._scrollY+l.event.deltaY/qe*Ye,0,Ye),Ue,at),lt!==0&<!==Ye&&l.event.preventDefault()});var ct=l.behavior.drag().on("dragstart",function(){var Ne=l.event.sourceEvent;Re=Ne.type==="touchstart"?Ne.changedTouches[0].clientY:Ne.clientY,Be=lt}).on("drag",function(){var Ne=l.event.sourceEvent;Ne.buttons===2||Ne.ctrlKey||(Ie=Ne.type==="touchmove"?Ne.changedTouches[0].clientY:Ne.clientY,lt=function(Qe,it,kt){var Je=(kt-it)/at+Qe;return f.constrain(Je,0,Ye)}(Be,Re,Ie),ze(lt,Ue,at))});Se.call(ct);var bt=l.behavior.drag().on("dragstart",function(){var Ne=l.event.sourceEvent;Ne.type==="touchstart"&&(Re=Ne.changedTouches[0].clientY,Be=lt)}).on("drag",function(){var Ne=l.event.sourceEvent;Ne.type==="touchmove"&&(Ie=Ne.changedTouches[0].clientY,lt=function(Qe,it,kt){var Je=(it-kt)/at+Qe;return f.constrain(Je,0,Ye)}(Be,Re,Ie),ze(lt,Ue,at))});pe.call(bt)}function ze(Ne,Qe,it){L._scrollY=N._fullLayout[H]._scrollY=Ne,p.setTranslate(pe,0,-Ne),p.setRect(Se,L._width,g.scrollBarMargin+Ne*it,g.scrollBarWidth,Qe),ie.select("rect").attr("y",xe+Ne)}N._context.edits.legendPosition&&(re.classed("cursor-move",!0),h.init({element:re.node(),gd:N,prepFn:function(){var Ne=p.getTranslate(re);J=Ne.x,ne=Ne.y},moveFn:function(Ne,Qe){var it=J+Ne,kt=ne+Qe;p.setTranslate(re,it,kt),ce=h.align(it,L._width,de.l,de.l+de.w,L.xanchor),ye=h.align(kt+L._height,-L._height,de.t+de.h,de.t,L.yanchor)},doneFn:function(){if(ce!==void 0&&ye!==void 0){var Ne={};Ne[H+".x"]=ce,Ne[H+".y"]=ye,u.call("_guiRelayout",N,Ne)}},clickFn:function(Ne,Qe){var it=G.selectAll("g.traces").filter(function(){var kt=this.getBoundingClientRect();return Qe.clientX>=kt.left&&Qe.clientX<=kt.right&&Qe.clientY>=kt.top&&Qe.clientY<=kt.bottom});it.size()>0&&O(N,re,it,Ne,Qe)}}))}],N)}}function D(N,E,W){var G=N[0],L=G.width,q=E.entrywidthmode,H=G.trace.legendwidth||E.entrywidth;return q==="fraction"?E._maxWidth*H:W+(H||L)}function O(N,E,W,G,L){var q=W.data()[0][0].trace,H={event:L,node:W.node(),curveNumber:q.index,expandedIndex:q._expandedIndex,data:N.data,layout:N.layout,frames:N._transitionData._frames,config:N._context,fullData:N._fullData,fullLayout:N._fullLayout};q._group&&(H.group=q._group),u.traceIs(q,"pie-like")&&(H.label=W.datum()[0].label);var V=d.triggerHandler(N,"plotly_legendclick",H);if(G===1){if(V===!1)return;E._clickTimeout=setTimeout(function(){N._fullLayout&&v(W,N,G)},N._context.doubleClickDelay)}else G===2&&(E._clickTimeout&&clearTimeout(E._clickTimeout),N._legendMouseDownTime=0,d.triggerHandler(N,"plotly_legenddoubleclick",H)!==!1&&V!==!1&&v(W,N,G))}function R(N,E,W){var G,L,q=j(W),H=N.data()[0][0],V=H.trace,te=u.traceIs(V,"pie-like"),ee=!W._inHover&&E._context.edits.legendText&&!te,U=W._maxNameLength;H.groupTitle?(G=H.groupTitle.text,L=H.groupTitle.font):(L=W.font,W.entries?G=H.text:(G=te?H.label:V.name,V._meta&&(G=f.templateString(G,V._meta))));var Q=f.ensureSingle(N,"text",q+"text");Q.attr("text-anchor","start").call(p.font,L).text(ee?F(G,U):G);var Y=W.itemwidth+2*g.itemGap;y.positionText(Q,Y,0),ee?Q.call(y.makeEditable,{gd:E,text:G}).call(z,N,E,W).on("edit",function(Z){this.text(F(Z,U)).call(z,N,E,W);var X=H.trace._fullInput||{},re={};if(u.hasTransform(X,"groupby")){var ie=u.getTransformIndices(X,"groupby"),le=ie[ie.length-1],se=f.keyedContainer(X,"transforms["+le+"].styles","target","value.name");se.set(H.trace._group,Z),re=se.constructUpdate()}else re.name=Z;return X._isShape?u.call("_guiRelayout",E,"shapes["+V.index+"].name",re.name):u.call("_guiRestyle",E,re,V.index)}):z(Q,N,E,W)}function F(N,E){var W=Math.max(4,E);if(N&&N.trim().length>=W/2)return N;for(var G=W-(N=N||"").length;G>0;G--)N+=" ";return N}function A(N,E,W){var G,L=E._context.doubleClickDelay,q=1,H=f.ensureSingle(N,"rect",W+"toggle",function(V){E._context.staticPlot||V.style("cursor","pointer").attr("pointer-events","all"),V.call(m.fill,"rgba(0,0,0,0)")});E._context.staticPlot||(H.on("mousedown",function(){(G=new Date().getTime())-E._legendMouseDownTimeL&&(q=Math.max(q-1,1)),O(E,V,N,q,l.event)}}))}function z(N,E,W,G,L){G._inHover&&N.attr("data-notex",!0),y.convertToTspans(N,W,function(){(function(q,H,V,te){var ee=q.data()[0][0];if(V._inHover||!ee||ee.trace.showlegend){var U=q.select("g[class*=math-group]"),Q=U.node(),Y=j(V);V||(V=H._fullLayout[Y]);var Z,X,re=V.borderwidth,ie=(te===S?V.title.font:ee.groupTitle?ee.groupTitle.font:V.font).size*x;if(Q){var le=p.bBox(Q);Z=le.height,X=le.width,te===S?p.setTranslate(U,re,re+.75*Z):p.setTranslate(U,0,.25*Z)}else{var se="."+Y+(te===S?"title":"")+"text",pe=q.select(se),Te=y.lineCount(pe),Se=pe.node();if(Z=ie*Te,X=Se?p.bBox(Se).width:0,te===S)V.title.side==="left"&&(X+=2*g.itemGap),y.positionText(pe,re+g.titlePad,re+ie);else{var Oe=2*g.itemGap+V.itemwidth;ee.groupTitle&&(Oe=g.itemGap,X-=V.itemwidth),y.positionText(pe,Oe,-ie*((Te-1)/2-.3))}}te===S?(V._titleWidth=X,V._titleHeight=Z):(ee.lineHeight=ie,ee.height=Math.max(Z,16)+3,ee.width=X)}else q.remove()})(E,W,G,L)})}function B(N){return f.isRightAnchor(N)?"right":f.isCenterAnchor(N)?"center":"left"}function $(N){return f.isBottomAnchor(N)?"bottom":f.isMiddleAnchor(N)?"middle":"top"}function j(N){return N._id||"legend"}o.exports=function(N,E){if(E)P(N,E);else{var W=N._fullLayout,G=W._legends;W._infolayer.selectAll('[class^="legend"]').each(function(){var H=l.select(this),V=H.attr("class").split(" ")[0];V.match(C)&&G.indexOf(V)===-1&&H.remove()});for(var L=0;LB&&(z=B)}F[h][0]._groupMinRank=z,F[h][0]._preGroupSort=h}var $=function(G,L){return G.trace.legendrank-L.trace.legendrank||G._preSort-L._preSort};for(F.forEach(function(G,L){G[0]._preGroupSort=L}),F.sort(function(G,L){return G[0]._groupMinRank-L[0]._groupMinRank||G[0]._preGroupSort-L[0]._preGroupSort}),h=0;hT?T:w}o.exports=function(w,k,T){var M=k._fullLayout;T||(T=M.legend);var S=T.itemsizing==="constant",C=T.itemwidth,P=(C+2*g.itemGap)/2,D=u(P,0),O=function(A,z,B,$){var j;if(A+1)j=A;else{if(!(z&&z.width>0))return 0;j=z.width}return S?$:Math.min(j,B)};function R(A,z,B){var $=A[0].trace,j=$.marker||{},N=j.line||{},E=B?$.visible&&$.type===B:f.traceIs($,"bar"),W=l.select(z).select("g.legendpoints").selectAll("path.legend"+B).data(E?[A]:[]);W.enter().append("path").classed("legend"+B,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),W.exit().remove(),W.each(function(G){var L=l.select(this),q=G[0],H=O(q.mlw,j.line,5,2);L.style("stroke-width",H+"px");var V=q.mcc;if(!T._inHover&&"mc"in q){var te=p(j),ee=te.mid;ee===void 0&&(ee=(te.max+te.min)/2),V=d.tryColorscale(j,"")(ee)}var U=V||q.mc||j.color,Q=j.pattern,Y=Q&&d.getPatternAttr(Q.shape,0,"");if(Y){var Z=d.getPatternAttr(Q.bgcolor,0,null),X=d.getPatternAttr(Q.fgcolor,0,null),re=Q.fgopacity,ie=_(Q.size,8,10),le=_(Q.solidity,.5,1),se="legend-"+$.uid;L.call(d.pattern,"legend",k,se,Y,ie,le,V,Q.fillmode,Z,X,re)}else L.call(h.fill,U);H&&h.stroke(L,q.mlc||N.color)})}function F(A,z,B){var $=A[0],j=$.trace,N=B?j.visible&&j.type===B:f.traceIs(j,B),E=l.select(z).select("g.legendpoints").selectAll("path.legend"+B).data(N?[A]:[]);if(E.enter().append("path").classed("legend"+B,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),E.exit().remove(),E.size()){var W=j.marker||{},G=O(v(W.line.width,$.pts),W.line,5,2),L="pieLike",q=s.minExtend(j,{marker:{line:{width:G}}},L),H=s.minExtend($,{trace:q},L);y(E,H,q,k)}}w.each(function(A){var z=l.select(this),B=s.ensureSingle(z,"g","layers");B.style("opacity",A[0].trace.opacity);var $=T.valign,j=A[0].lineHeight,N=A[0].height;if($!=="middle"&&j&&N){var E={top:1,bottom:-1}[$]*(.5*(j-N+3));B.attr("transform",u(0,E))}else B.attr("transform",null);B.selectAll("g.legendfill").data([A]).enter().append("g").classed("legendfill",!0),B.selectAll("g.legendlines").data([A]).enter().append("g").classed("legendlines",!0);var W=B.selectAll("g.legendsymbols").data([A]);W.enter().append("g").classed("legendsymbols",!0),W.selectAll("g.legendpoints").data([A]).enter().append("g").classed("legendpoints",!0)}).each(function(A){var z,B=A[0].trace,$=[];if(B.visible)switch(B.type){case"histogram2d":case"heatmap":$=[["M-15,-2V4H15V-2Z"]],z=!0;break;case"choropleth":case"choroplethmapbox":$=[["M-6,-6V6H6V-6Z"]],z=!0;break;case"densitymapbox":$=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],z="radial";break;case"cone":$=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],z=!1;break;case"streamtube":$=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],z=!1;break;case"surface":$=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],z=!0;break;case"mesh3d":$=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!1;break;case"volume":$=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!0;break;case"isosurface":$=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],z=!1}var j=l.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data($);j.enter().append("path").classed("legend3dandfriends",!0).attr("transform",D).style("stroke-miterlimit",1),j.exit().remove(),j.each(function(N,E){var W,G=l.select(this),L=p(B),q=L.colorscale,H=L.reversescale;if(q){if(!z){var V=q.length;W=E===0?q[H?V-1:0][1]:E===1?q[H?0:V-1][1]:q[Math.floor((V-1)/2)][1]}}else{var te=B.vertexcolor||B.facecolor||B.color;W=s.isArrayOrTypedArray(te)?te[E]||te[0]:te}G.attr("d",N[0]),W?G.call(h.fill,W):G.call(function(ee){if(ee.size()){var U="legendfill-"+B.uid;d.gradient(ee,k,U,b(H,z==="radial"),q,"fill")}})})}).each(function(A){var z=A[0].trace,B=z.type==="waterfall";if(A[0]._distinct&&B){var $=A[0].trace[A[0].dir].marker;return A[0].mc=$.color,A[0].mlw=$.line.width,A[0].mlc=$.line.color,R(A,this,"waterfall")}var j=[];z.visible&&B&&(j=A[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var N=l.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(j);N.enter().append("path").classed("legendwaterfall",!0).attr("transform",D).style("stroke-miterlimit",1),N.exit().remove(),N.each(function(E){var W=l.select(this),G=z[E[0]].marker,L=O(void 0,G.line,5,2);W.attr("d",E[1]).style("stroke-width",L+"px").call(h.fill,G.color),L&&W.call(h.stroke,G.line.color)})}).each(function(A){R(A,this,"funnel")}).each(function(A){R(A,this)}).each(function(A){var z=A[0].trace,B=l.select(this).select("g.legendpoints").selectAll("path.legendbox").data(z.visible&&f.traceIs(z,"box-violin")?[A]:[]);B.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),B.exit().remove(),B.each(function(){var $=l.select(this);if(z.boxpoints!=="all"&&z.points!=="all"||h.opacity(z.fillcolor)!==0||h.opacity((z.line||{}).color)!==0){var j=O(void 0,z.line,5,2);$.style("stroke-width",j+"px").call(h.fill,z.fillcolor),j&&h.stroke($,z.line.color)}else{var N=s.minExtend(z,{marker:{size:S?12:s.constrain(z.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});B.call(d.pointStyle,N,k)}})}).each(function(A){F(A,this,"funnelarea")}).each(function(A){F(A,this,"pie")}).each(function(A){var z,B,$=x(A),j=$.showFill,N=$.showLine,E=$.showGradientLine,W=$.showGradientFill,G=$.anyFill,L=$.anyLine,q=A[0],H=q.trace,V=p(H),te=V.colorscale,ee=V.reversescale,U=m.hasMarkers(H)||!G?"M5,0":L?"M5,-2":"M5,-3",Q=l.select(this),Y=Q.select(".legendfill").selectAll("path").data(j||W?[A]:[]);if(Y.enter().append("path").classed("js-fill",!0),Y.exit().remove(),Y.attr("d",U+"h"+C+"v6h-"+C+"z").call(function(re){if(re.size())if(j)d.fillGroupStyle(re,k);else{var ie="legendfill-"+H.uid;d.gradient(re,k,ie,b(ee),te,"fill")}}),N||E){var Z=O(void 0,H.line,10,5);B=s.minExtend(H,{line:{width:Z}}),z=[s.minExtend(q,{trace:B})]}var X=Q.select(".legendlines").selectAll("path").data(N||E?[z]:[]);X.enter().append("path").classed("js-line",!0),X.exit().remove(),X.attr("d",U+(E?"l"+C+",0.0001":"h"+C)).call(N?d.lineGroupStyle:function(re){if(re.size()){var ie="legendline-"+H.uid;d.lineGroupStyle(re),d.gradient(re,k,ie,b(ee),te,"stroke")}})}).each(function(A){var z,B,$=x(A),j=$.anyFill,N=$.anyLine,E=$.showLine,W=$.showMarker,G=A[0],L=G.trace,q=!W&&!N&&!j&&m.hasText(L);function H(X,re,ie,le){var se=s.nestedProperty(L,X).get(),pe=s.isArrayOrTypedArray(se)&&re?re(se):se;if(S&&pe&&le!==void 0&&(pe=le),ie){if(peie[1])return ie[1]}return pe}function V(X){return G._distinct&&G.index&&X[G.index]?X[G.index]:X[0]}if(W||q||E){var te={},ee={};if(W){te.mc=H("marker.color",V),te.mx=H("marker.symbol",V),te.mo=H("marker.opacity",s.mean,[.2,1]),te.mlc=H("marker.line.color",V),te.mlw=H("marker.line.width",s.mean,[0,5],2),ee.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var U=H("marker.size",s.mean,[2,16],12);te.ms=U,ee.marker.size=U}E&&(ee.line={width:H("line.width",V,[0,10],5)}),q&&(te.tx="Aa",te.tp=H("textposition",V),te.ts=10,te.tc=H("textfont.color",V),te.tf=H("textfont.family",V)),z=[s.minExtend(G,te)],(B=s.minExtend(L,ee)).selectedpoints=null,B.texttemplate=null}var Q=l.select(this).select("g.legendpoints"),Y=Q.selectAll("path.scatterpts").data(W?z:[]);Y.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",D),Y.exit().remove(),Y.call(d.pointStyle,B,k),W&&(z[0].mrc=3);var Z=Q.selectAll("g.pointtext").data(q?z:[]);Z.enter().append("g").classed("pointtext",!0).append("text").attr("transform",D),Z.exit().remove(),Z.selectAll("text").call(d.textPointStyle,B,k)}).each(function(A){var z=A[0].trace,B=l.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(z.visible&&z.type==="candlestick"?[A,A]:[]);B.enter().append("path").classed("legendcandle",!0).attr("d",function($,j){return j?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",D).style("stroke-miterlimit",1),B.exit().remove(),B.each(function($,j){var N=l.select(this),E=z[j?"increasing":"decreasing"],W=O(void 0,E.line,5,2);N.style("stroke-width",W+"px").call(h.fill,E.fillcolor),W&&h.stroke(N,E.line.color)})}).each(function(A){var z=A[0].trace,B=l.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(z.visible&&z.type==="ohlc"?[A,A]:[]);B.enter().append("path").classed("legendohlc",!0).attr("d",function($,j){return j?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",D).style("stroke-miterlimit",1),B.exit().remove(),B.each(function($,j){var N=l.select(this),E=z[j?"increasing":"decreasing"],W=O(void 0,E.line,5,2);N.style("fill","none").call(d.dashLine,E.line.dash,W),W&&h.stroke(N,E.line.color)})})}},42068:function(o,a,n){n(93348),o.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},26023:function(o,a,n){var l=n(73972),f=n(74875),s=n(41675),u=n(24255),d=n(34031).eraseActiveShape,h=n(71828),p=h._,m=o.exports={};function y(M,S){var C,P,D=S.currentTarget,O=D.getAttribute("data-attr"),R=D.getAttribute("data-val")||!0,F=M._fullLayout,A={},z=s.list(M,null,!0),B=F._cartesianSpikesEnabled;if(O==="zoom"){var $,j=R==="in"?.5:2,N=(1+j)/2,E=(1-j)/2;for(P=0;P1?(U=["toggleHover"],Q=["resetViews"]):A?(ee=["zoomInGeo","zoomOutGeo"],U=["hoverClosestGeo"],Q=["resetGeo"]):F?(U=["hoverClosest3d"],Q=["resetCameraDefault3d","resetCameraLastSave3d"]):N?(ee=["zoomInMapbox","zoomOutMapbox"],U=["toggleHover"],Q=["resetViewMapbox"]):$?U=["hoverClosestGl2d"]:z?U=["hoverClosestPie"]:G?(U=["hoverClosestCartesian","hoverCompareCartesian"],Q=["resetViewSankey"]):U=["toggleHover"],R&&(U=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(se){for(var pe=0;pe0)){var k=function(M,S,C){for(var P=C.filter(function(F){return S[F].anchor===M._id}),D=0,O=0;O=Se.max)pe=re[Te+1];else if(se=Se.pmax)pe=re[Te+1];else if(seTe._length||ge+Ie<0)return;Ee=ue+Ie,De=ge+Ie;break;case Me:if(Re="col-resize",ue+Ie>Te._length)return;Ee=ue+Ie,De=ge;break;case ce:if(Re="col-resize",ge+Ie<0)return;Ee=ue,De=ge+Ie;break;default:Re="ew-resize",Ee=xe,De=xe+Ie}if(De=0;$--){var j=S.append("path").attr(P).style("opacity",$?.1:D).call(u.stroke,R).call(u.fill,O).call(d.dashLine,$?"solid":A,$?4+F:F);if(b(j,_,T),z){var N=h(_.layout,"selections",T);j.style({cursor:"move"});var E={element:j.node(),plotinfo:M,gd:_,editHelpers:N,isActiveSelection:!0},W=l(C,_);f(W,j,E)}else j.style("pointer-events",$?"all":"none");B[$]=j}var G=B[0];B[1].node().addEventListener("click",function(){return function(L,q){if(v(L)){var H=+q.node().getAttribute("data-index");if(H>=0){if(H===L._fullLayout._activeSelectionIndex)return void x(L);L._fullLayout._activeSelectionIndex=H,L._fullLayout._deactivateSelection=x,y(L)}}}(_,G)})}(_._fullLayout._selectionLayer)}function b(_,w,k){var T=k.xref+k.yref;d.setClipUrl(_,"clip"+w._fullLayout._uid+T,w)}function x(_){v(_)&&_._fullLayout._activeSelectionIndex>=0&&(s(_),delete _._fullLayout._activeSelectionIndex,y(_))}o.exports={draw:y,drawOne:g,activateLastSelection:function(_){if(v(_)){var w=_._fullLayout.selections.length-1;_._fullLayout._activeSelectionIndex=w,_._fullLayout._deactivateSelection=x,y(_)}}}},53777:function(o,a,n){var l=n(79952).P,f=n(1426).extendFlat;o.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:f({},l,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},90849:function(o){o.exports=function(a,n,l){l("newselection.mode"),l("newselection.line.width")&&(l("newselection.line.color"),l("newselection.line.dash")),l("activeselection.fillcolor"),l("activeselection.opacity")}},35855:function(o,a,n){var l=n(64505).selectMode,f=n(51873).clearOutline,s=n(60165),u=s.readPaths,d=s.writePaths,h=s.fixDatesForPaths;o.exports=function(p,m){if(p.length){var y=p[0][0];if(y){var v=y.getAttribute("d"),g=m.gd,b=g._fullLayout.newselection,x=m.plotinfo,_=x.xaxis,w=x.yaxis,k=m.isActiveSelection,T=m.dragmode,M=(g.layout||{}).selections||[];if(!l(T)&&k!==void 0){var S=g._fullLayout._activeSelectionIndex;if(S-1,kt=[];if(function(Mt){return Mt&&Array.isArray(Mt)&&Mt[0].hoverOnBox!==!0}(Qe)){Z(ke,Ae,Ie);var Je=function(Mt,zt){var wt,ve,_e=Mt[0],Ve=-1,We=[];for(ve=0;ve0?function(Mt,zt){var wt,ve,_e,Ve=[];for(_e=0;_e0&&Ve.push(wt);if(Ve.length===1&&Ve[0]===zt.searchInfo&&(ve=zt.searchInfo.cd[0].trace).selectedpoints.length===zt.pointNumbers.length){for(_e=0;_e1||(ve+=zt.selectedpoints.length)>1))return!1;return ve===1}(Ue)&&(ct=se(Je))){for(Be&&Be.remove(),Ne=0;Ne=0})(Re)&&Re._fullLayout._deactivateShape(Re),function(lt){return lt._fullLayout._activeSelectionIndex>=0}(Re)&&Re._fullLayout._deactivateSelection(Re);var Ie=Re._fullLayout._zoomlayer,Be=g(Ee),Ue=x(Ee);if(Be||Ue){var qe,Ye,at=Ie.selectAll(".select-outline-"+De.id);at&&Re._fullLayout._outlining&&(Be&&(qe=P(at,ke)),qe&&s.call("_guiRelayout",Re,{shapes:qe}),Ue&&!te(ke)&&(Ye=D(at,ke)),Ye&&(Re._fullLayout._noEmitSelectedAtStart=!0,s.call("_guiRelayout",Re,{selections:Ye}).then(function(){Ae&&O(Re)})),Re._fullLayout._outlining=!1)}De.selection={},De.selection.selectionDefs=ke.selectionDefs=[],De.selection.mergedPolygons=ke.mergedPolygons=[]}function re(ke){return ke._id}function ie(ke,Ae,Ee,De){if(!ke.calcdata)return[];var Re,Ie,Be,Ue=[],qe=Ae.map(re),Ye=Ee.map(re);for(Be=0;Be0?De[0]:Ee;return!!Ae.selectedpoints&&Ae.selectedpoints.indexOf(Re)>-1}function pe(ke,Ae,Ee){var De,Re;for(De=0;De-1&&Ae;if(!Ie&&Ae){var Ot=ne(ke,!0);if(Ot.length){var At=Ot[0].xref,Lt=Ot[0].yref;if(At&&Lt){var Rt=ue(Ot);ge([B(ke,At,"x"),B(ke,Lt,"y")])(jt,Rt)}}ke._fullLayout._noEmitSelectedAtStart?ke._fullLayout._noEmitSelectedAtStart=!1:Tt&&be(ke,jt),ct._reselect=!1}if(!Ie&&ct._deselect){var $t=ct._deselect;(function(Yt,Xt,Bt){for(var Wt=0;Wt=0)bt._fullLayout._deactivateShape(bt);else if(!Ye){var Rt=ze.clickmode;z.done(Et).then(function(){if(z.clear(Et),At===2){for(Nt.remove(),_e=0;_e-1&&ee(Lt,bt,De.xaxes,De.yaxes,De.subplot,De,Nt),Rt==="event"&&be(bt,void 0);h.click(bt,Lt,kt.id)}).catch(R.error)}},De.doneFn=function(){yt.remove(),z.done(Et).then(function(){z.clear(Et),!Ne&&ve&&De.selectionDefs&&(ve.subtract=St,De.selectionDefs.push(ve),De.mergedPolygons.length=0,[].push.apply(De.mergedPolygons,wt)),(Ne||Ye)&&X(De,Ne),De.doneFnCompleted&&De.doneFnCompleted(jt),at&&be(bt,We)}).catch(R.error)}},clearOutline:T,clearSelectionsCache:X,selectOnClick:ee}},89827:function(o,a,n){var l=n(50215),f=n(41940),s=n(82196).line,u=n(79952).P,d=n(1426).extendFlat,h=n(44467).templatedArray,p=(n(24695),n(9012)),m=n(5386).R,y=n(37281);o.exports=h("shape",{visible:d({},p.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:d({},p.legend,{editType:"calc+arraydraw"}),legendgroup:d({},p.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:d({},p.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:f({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:d({},p.legendrank,{editType:"calc+arraydraw"}),legendwidth:d({},p.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:d({},l.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},yref:d({},l.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:d({},s.color,{editType:"arraydraw"}),width:d({},s.width,{editType:"calc+arraydraw"}),dash:d({},u,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:m({},{keys:Object.keys(y)}),font:f({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})},5627:function(o,a,n){var l=n(71828),f=n(89298),s=n(21459),u=n(30477);function d(y){return p(y.line.width,y.xsizemode,y.x0,y.x1,y.path,!1)}function h(y){return p(y.line.width,y.ysizemode,y.y0,y.y1,y.path,!0)}function p(y,v,g,b,x,_){var w=y/2,k=_;if(v==="pixel"){var T=x?u.extractPathCoords(x,_?s.paramIsY:s.paramIsX):[g,b],M=l.aggNums(Math.max,null,T),S=l.aggNums(Math.min,null,T),C=S<0?Math.abs(S)+w:w,P=M>0?M+w:w;return{ppad:w,ppadplus:k?C:P,ppadminus:k?P:C}}return{ppad:w}}function m(y,v,g,b,x){var _=y.type==="category"||y.type==="multicategory"?y.r2c:y.d2c;if(v!==void 0)return[_(v),_(g)];if(b){var w,k,T,M,S=1/0,C=-1/0,P=b.match(s.segmentRE);for(y.type==="date"&&(_=u.decodeDate(_)),w=0;wC&&(C=M)));return C>=S?[S,C]:void 0}}o.exports=function(y){var v=y._fullLayout,g=l.filterVisible(v.shapes);if(g.length&&y._fullData.length)for(var b=0;b=re?ie-se:se-ie,-180/Math.PI*Math.atan2(pe,Te)}(C,D,P,O):0),A.call(function(re){return re.call(u.font,F).attr({}),s.convertToTspans(re,v),re});var Q=function(re,ie,le,se,pe,Te,Se){var Oe,Me,ce,ye,J=pe.label.textposition,ne=pe.label.textangle,de=pe.label.padding,xe=pe.type,ue=Math.PI/180*Te,ge=Math.sin(ue),be=Math.cos(ue),we=pe.label.xanchor,ke=pe.label.yanchor;if(xe==="line"){J==="start"?(Oe=re,Me=ie):J==="end"?(Oe=le,Me=se):(Oe=(re+le)/2,Me=(ie+se)/2),we==="auto"&&(we=J==="start"?ne==="auto"?le>re?"left":lere?"right":lere?"right":lere?"left":le1&&(Oe.length!==2||Oe[1][0]!=="Z")&&(G===0&&(Oe[0][0]="M"),R[W]=Oe,$(),j())}}()}}function re(pe,Te){(function(Se,Oe){if(R.length)for(var Me=0;MeMe?(J=Se,ue="y0",ne=Me,ge="y1"):(J=Me,ue="y1",ne=Se,ge="y0"),ut(wt),Mt(se,ie),function(ve,_e,Ve){var We=_e.xref,Ze=_e.yref,Ge=u.getFromId(Ve,We),Ke=u.getFromId(Ve,Ze),nt="";We==="paper"||Ge.autorange||(nt+=We),Ze==="paper"||Ke.autorange||(nt+=Ze),v.setClipUrl(ve,nt?"clip"+Ve._fullLayout._uid+nt:null,Ve)}(re,ie,X),Je.moveFn=Ae==="move"?pt:It,Je.altKey=wt.altKey)},doneFn:function(){M(X)||(x(re),zt(se),P(re,X,ie),f.call("_guiRelayout",X,pe.getUpdateObj()))},clickFn:function(){M(X)||zt(se)}};function ut(wt){if(M(X))Ae=null;else if(Be)Ae=wt.target.tagName==="path"?"move":wt.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var ve=Je.element.getBoundingClientRect(),_e=ve.right-ve.left,Ve=ve.bottom-ve.top,We=wt.clientX-ve.left,Ze=wt.clientY-ve.top,Ge=!Ue&&_e>Ee&&Ve>De&&!wt.shiftKey?b.getCursor(We/_e,1-Ze/Ve):"move";x(re,Ge),Ae=Ge.split("-")[0]}}function pt(wt,ve){if(ie.type==="path"){var _e=function(Ze){return Ze},Ve=_e,We=_e;Re?qe("xanchor",ie.xanchor=Qe(ce+wt)):(Ve=function(Ze){return Qe(ze(Ze)+wt)},at&&at.type==="date"&&(Ve=w.encodeDate(Ve))),Ie?qe("yanchor",ie.yanchor=it(ye+ve)):(We=function(Ze){return it(Ne(Ze)+ve)},ct&&ct.type==="date"&&(We=w.encodeDate(We))),qe("path",ie.path=D(ke,Ve,We))}else Re?qe("xanchor",ie.xanchor=Qe(ce+wt)):(qe("x0",ie.x0=Qe(Te+wt)),qe("x1",ie.x1=Qe(Oe+wt))),Ie?qe("yanchor",ie.yanchor=it(ye+ve)):(qe("y0",ie.y0=it(Se+ve)),qe("y1",ie.y1=it(Me+ve)));re.attr("d",k(X,ie)),Mt(se,ie),p(X,le,ie,Ye)}function It(wt,ve){if(Ue){var _e=function(ht){return ht},Ve=_e,We=_e;Re?qe("xanchor",ie.xanchor=Qe(ce+wt)):(Ve=function(ht){return Qe(ze(ht)+wt)},at&&at.type==="date"&&(Ve=w.encodeDate(Ve))),Ie?qe("yanchor",ie.yanchor=it(ye+ve)):(We=function(ht){return it(Ne(ht)+ve)},ct&&ct.type==="date"&&(We=w.encodeDate(We))),qe("path",ie.path=D(ke,Ve,We))}else if(Be){if(Ae==="resize-over-start-point"){var Ze=Te+wt,Ge=Ie?Se-ve:Se+ve;qe("x0",ie.x0=Re?Ze:Qe(Ze)),qe("y0",ie.y0=Ie?Ge:it(Ge))}else if(Ae==="resize-over-end-point"){var Ke=Oe+wt,nt=Ie?Me-ve:Me+ve;qe("x1",ie.x1=Re?Ke:Qe(Ke)),qe("y1",ie.y1=Ie?nt:it(nt))}}else{var st=function(ht){return Ae.indexOf(ht)!==-1},mt=st("n"),tt=st("s"),Ft=st("w"),Vt=st("e"),St=mt?J+ve:J,Nt=tt?ne+ve:ne,Dt=Ft?de+wt:de,gt=Vt?xe+wt:xe;Ie&&(mt&&(St=J-ve),tt&&(Nt=ne-ve)),(!Ie&&Nt-St>De||Ie&&St-Nt>De)&&(qe(ue,ie[ue]=Ie?St:it(St)),qe(ge,ie[ge]=Ie?Nt:it(Nt))),gt-Dt>Ee&&(qe(be,ie[be]=Re?Dt:Qe(Dt)),qe(we,ie[we]=Re?gt:Qe(gt)))}re.attr("d",k(X,ie)),Mt(se,ie),p(X,le,ie,Ye)}function Mt(wt,ve){(Re||Ie)&&function(){var _e=ve.type!=="path",Ve=wt.selectAll(".visual-cue").data([0]);Ve.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var We=ze(Re?ve.xanchor:s.midRange(_e?[ve.x0,ve.x1]:w.extractPathCoords(ve.path,_.paramIsX))),Ze=Ne(Ie?ve.yanchor:s.midRange(_e?[ve.y0,ve.y1]:w.extractPathCoords(ve.path,_.paramIsY)));if(We=w.roundPositionForSharpStrokeRendering(We,1),Ze=w.roundPositionForSharpStrokeRendering(Ze,1),Re&&Ie){var Ge="M"+(We-1-1)+","+(Ze-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ve.attr("d",Ge)}else if(Re){var Ke="M"+(We-1-1)+","+(Ze-9-1)+"v18 h2 v-18 Z";Ve.attr("d",Ke)}else{var nt="M"+(We-9-1)+","+(Ze-1-1)+"h18 v2 h-18 Z";Ve.attr("d",nt)}}()}function zt(wt){wt.selectAll(".visual-cue").remove()}b.init(Je),kt.node().onmousemove=ut}(R,Q,z,F,j,ee):z.editable===!0&&Q.style("pointer-events",V||y.opacity(G)*W<=.5?"stroke":"all");Q.node().addEventListener("click",function(){return function(X,re){if(S(X)){var ie=+re.node().getAttribute("data-index");if(ie>=0){if(ie===X._fullLayout._activeShapeIndex)return void O(X);X._fullLayout._activeShapeIndex=ie,X._fullLayout._deactivateShape=O,T(X)}}}(R,Q)})}z._input&&z.visible===!0&&(z.layer!=="below"?$(R._fullLayout._shapeUpperLayer):z.xref==="paper"||z.yref==="paper"?$(R._fullLayout._shapeLowerLayer):B._hadPlotinfo?$((B.mainplotinfo||B).shapelayer):$(R._fullLayout._shapeLowerLayer))}function P(R,F,A){var z=(A.xref+A.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");v.setClipUrl(R,z?"clip"+F._fullLayout._uid+z:null,F)}function D(R,F,A){return R.replace(_.segmentRE,function(z){var B=0,$=z.charAt(0),j=_.paramIsX[$],N=_.paramIsY[$],E=_.numParams[$];return $+z.substr(1).replace(_.paramRE,function(W){return B>=E||(j[B]?W=F(W):N[B]&&(W=A(W)),B++),W})})}function O(R){S(R)&&R._fullLayout._activeShapeIndex>=0&&(m(R),delete R._fullLayout._activeShapeIndex,T(R))}o.exports={draw:T,drawOne:C,eraseActiveShape:function(R){if(S(R)){m(R);var F=R._fullLayout._activeShapeIndex,A=(R.layout||{}).shapes||[];if(F0&&CU&&(Y="X"),Y});return H>U&&(Q=Q.replace(/[\s,]*X.*/,""),f.log("Ignoring extra params in segment "+q)),V+Q})}(d,p,y);if(d.xsizemode==="pixel"){var C=p(d.xanchor);v=C+d.x0,g=C+d.x1}else v=p(d.x0),g=p(d.x1);if(d.ysizemode==="pixel"){var P=y(d.yanchor);b=P-d.y0,x=P-d.y1}else b=y(d.y0),x=y(d.y1);if(_==="line")return"M"+v+","+b+"L"+g+","+x;if(_==="rect")return"M"+v+","+b+"H"+g+"V"+x+"H"+v+"Z";var D=(v+g)/2,O=(b+x)/2,R=Math.abs(D-v),F=Math.abs(O-b),A="A"+R+","+F,z=D+R+","+O;return"M"+z+A+" 0 1,1 "+D+","+(O-F)+A+" 0 0,1 "+z+"Z"}},89853:function(o,a,n){var l=n(34031);o.exports={moduleType:"component",name:"shapes",layoutAttributes:n(89827),supplyLayoutDefaults:n(84726),supplyDrawNewShapeDefaults:n(45547),includeBasePlot:n(76325)("shapes"),calcAutorange:n(5627),draw:l.draw,drawOne:l.drawOne}},37281:function(o){function a(s,u){return u?u.d2l(s):s}function n(s,u){return u?u.l2d(s):s}function l(s,u){return a(s.x1,u)-a(s.x0,u)}function f(s,u,d){return a(s.y1,d)-a(s.y0,d)}o.exports={x0:function(s){return s.x0},x1:function(s){return s.x1},y0:function(s){return s.y0},y1:function(s){return s.y1},slope:function(s,u,d){return s.type!=="line"?void 0:f(s,0,d)/l(s,u)},dx:l,dy:f,width:function(s,u){return Math.abs(l(s,u))},height:function(s,u,d){return Math.abs(f(s,0,d))},length:function(s,u,d){return s.type!=="line"?void 0:Math.sqrt(Math.pow(l(s,u),2)+Math.pow(f(s,0,d),2))},xcenter:function(s,u){return n((a(s.x1,u)+a(s.x0,u))/2,u)},ycenter:function(s,u,d){return n((a(s.y1,d)+a(s.y0,d))/2,d)}}},75067:function(o,a,n){var l=n(41940),f=n(35025),s=n(1426).extendDeepAll,u=n(30962).overrideAll,d=n(85594),h=n(44467).templatedArray,p=n(98292),m=h("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});o.exports=u(h("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:m,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:s(f({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:d.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:l({})},font:l({}),activebgcolor:{valType:"color",dflt:p.gripBgActiveColor},bgcolor:{valType:"color",dflt:p.railBgColor},bordercolor:{valType:"color",dflt:p.railBorderColor},borderwidth:{valType:"number",min:0,dflt:p.railBorderWidth},ticklen:{valType:"number",min:0,dflt:p.tickLength},tickcolor:{valType:"color",dflt:p.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:p.minorTickLength}}),"arraydraw","from-root")},98292:function(o){o.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},12343:function(o,a,n){var l=n(71828),f=n(85501),s=n(75067),u=n(98292).name,d=s.steps;function h(m,y,v){function g(k,T){return l.coerce(m,y,s,k,T)}for(var b=f(m,y,{name:"steps",handleItemDefaults:p}),x=0,_=0;_0&&(H=H.transition().duration(N.transition.duration).ease(N.transition.easing)),H.attr("transform",h(q-.5*y.gripWidth,N._dims.currentValueTotalHeight))}}function A(j,N){var E=j._dims;return E.inputAreaStart+y.stepInset+(E.inputAreaLength-2*y.stepInset)*Math.min(1,Math.max(0,N))}function z(j,N){var E=j._dims;return Math.min(1,Math.max(0,(N-y.stepInset-E.inputAreaStart)/(E.inputAreaLength-2*y.stepInset-2*E.inputAreaStart)))}function B(j,N,E){var W=E._dims,G=d.ensureSingle(j,"rect",y.railTouchRectClass,function(L){L.call(O,N,j,E).style("pointer-events","all")});G.attr({width:W.inputAreaLength,height:Math.max(W.inputAreaWidth,y.tickOffset+E.ticklen+W.labelHeight)}).call(s.fill,E.bgcolor).attr("opacity",0),u.setTranslate(G,0,W.currentValueTotalHeight)}function $(j,N){var E=N._dims,W=E.inputAreaLength-2*y.railInset,G=d.ensureSingle(j,"rect",y.railRectClass);G.attr({width:W,height:y.railWidth,rx:y.railRadius,ry:y.railRadius,"shape-rendering":"crispEdges"}).call(s.stroke,N.bordercolor).call(s.fill,N.bgcolor).style("stroke-width",N.borderwidth+"px"),u.setTranslate(G,y.railInset,.5*(E.inputAreaWidth-y.railWidth)+E.currentValueTotalHeight)}o.exports=function(j){var N=j._context.staticPlot,E=j._fullLayout,W=function(te,ee){for(var U=te[y.name],Q=[],Y=0;Y0?[0]:[]);function L(te){te._commandObserver&&(te._commandObserver.remove(),delete te._commandObserver),f.autoMargin(j,_(te))}if(G.enter().append("g").classed(y.containerClassName,!0).style("cursor",N?null:"ew-resize"),G.exit().each(function(){l.select(this).selectAll("g."+y.groupClassName).each(L)}).remove(),W.length!==0){var q=G.selectAll("g."+y.groupClassName).data(W,w);q.enter().append("g").classed(y.groupClassName,!0),q.exit().each(L).remove();for(var H=0;H0||Oe<0){var J={left:[-Me,0],right:[Me,0],top:[0,-Me],bottom:[0,Me]}[P.side];Q.attr("transform",h(J[0],J[1]))}}}return H.call(V),G&&($?H.on(".opacity",null):(A=0,z=!0,H.text(S).on("mouseover.opacity",function(){l.select(this).transition().duration(v.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){l.select(this).transition().duration(v.HIDE_PLACEHOLDER).style("opacity",0)})),H.call(y.makeEditable,{gd:x}).on("edit",function(U){C!==void 0?u.call("_guiRestyle",x,M,U,C):u.call("_guiRelayout",x,M,U)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(V)}).on("input",function(U){this.text(U||" ").call(y.positionText,D.x,D.y)})),H.classed("js-placeholder",z),R}}},7163:function(o,a,n){var l=n(41940),f=n(22399),s=n(1426).extendFlat,u=n(30962).overrideAll,d=n(35025),h=n(44467).templatedArray,p=h("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});o.exports=u(h("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:p,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:s(d({editType:"arraydraw"}),{}),font:l({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:f.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},75909:function(o){o.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},64897:function(o,a,n){var l=n(71828),f=n(85501),s=n(7163),u=n(75909).name,d=s.buttons;function h(m,y,v){function g(b,x){return l.coerce(m,y,s,b,x)}g("visible",f(m,y,{name:"buttons",handleItemDefaults:p}).length>0)&&(g("active"),g("direction"),g("type"),g("showactive"),g("x"),g("y"),l.noneOrAll(m,y,["x","y"]),g("xanchor"),g("yanchor"),g("pad.t"),g("pad.r"),g("pad.b"),g("pad.l"),l.coerceFont(g,"font",v.font),g("bgcolor",v.paper_bgcolor),g("bordercolor"),g("borderwidth"))}function p(m,y){function v(g,b){return l.coerce(m,y,d,g,b)}v("visible",m.method==="skip"||Array.isArray(m.args))&&(v("method"),v("args"),v("args2"),v("label"),v("execute"))}o.exports=function(m,y){f(m,y,{name:u,handleItemDefaults:h})}},13689:function(o,a,n){var l=n(39898),f=n(74875),s=n(7901),u=n(91424),d=n(71828),h=n(63893),p=n(44467).arrayEditor,m=n(18783).LINE_SPACING,y=n(75909),v=n(25849);function g(A){return A._index}function b(A,z){return+A.attr(y.menuIndexAttrName)===z._index}function x(A,z,B,$,j,N,E,W){z.active=E,p(A.layout,y.name,z).applyUpdate("active",E),z.type==="buttons"?w(A,$,null,null,z):z.type==="dropdown"&&(j.attr(y.menuIndexAttrName,"-1"),_(A,$,j,N,z),W||w(A,$,j,N,z))}function _(A,z,B,$,j){var N=d.ensureSingle(z,"g",y.headerClassName,function(H){H.style("pointer-events","all")}),E=j._dims,W=j.active,G=j.buttons[W]||y.blankHeaderOpts,L={y:j.pad.t,yPad:0,x:j.pad.l,xPad:0,index:0},q={width:E.headerWidth,height:E.headerHeight};N.call(k,j,G,A).call(R,j,L,q),d.ensureSingle(z,"text",y.headerArrowClassName,function(H){H.attr("text-anchor","end").call(u.font,j.font).text(y.arrowSymbol[j.direction])}).attr({x:E.headerWidth-y.arrowOffsetX+j.pad.l,y:E.headerHeight/2+y.textOffsetY+j.pad.t}),N.on("click",function(){B.call(F,String(b(B,j)?-1:j._index)),w(A,z,B,$,j)}),N.on("mouseover",function(){N.call(C)}),N.on("mouseout",function(){N.call(P,j)}),u.setTranslate(z,E.lx,E.ly)}function w(A,z,B,$,j){B||(B=z).attr("pointer-events","all");var N=function(Q){return+Q.attr(y.menuIndexAttrName)==-1}(B)&&j.type!=="buttons"?[]:j.buttons,E=j.type==="dropdown"?y.dropdownButtonClassName:y.buttonClassName,W=B.selectAll("g."+E).data(d.filterVisible(N)),G=W.enter().append("g").classed(E,!0),L=W.exit();j.type==="dropdown"?(G.attr("opacity","0").transition().attr("opacity","1"),L.transition().attr("opacity","0").remove()):L.remove();var q=0,H=0,V=j._dims,te=["up","down"].indexOf(j.direction)!==-1;j.type==="dropdown"&&(te?H=V.headerHeight+y.gapButtonHeader:q=V.headerWidth+y.gapButtonHeader),j.type==="dropdown"&&j.direction==="up"&&(H=-y.gapButtonHeader+y.gapButton-V.openHeight),j.type==="dropdown"&&j.direction==="left"&&(q=-y.gapButtonHeader+y.gapButton-V.openWidth);var ee={x:V.lx+q+j.pad.l,y:V.ly+H+j.pad.t,yPad:y.gapButton,xPad:y.gapButton,index:0},U={l:ee.x+j.borderwidth,t:ee.y+j.borderwidth};W.each(function(Q,Y){var Z=l.select(this);Z.call(k,j,Q,A).call(R,j,ee),Z.on("click",function(){l.event.defaultPrevented||(Q.execute&&(Q.args2&&j.active===Y?(x(A,j,0,z,B,$,-1),f.executeAPICommand(A,Q.method,Q.args2)):(x(A,j,0,z,B,$,Y),f.executeAPICommand(A,Q.method,Q.args))),A.emit("plotly_buttonclicked",{menu:j,button:Q,active:j.active}))}),Z.on("mouseover",function(){Z.call(C)}),Z.on("mouseout",function(){Z.call(P,j),W.call(S,j)})}),W.call(S,j),te?(U.w=Math.max(V.openWidth,V.headerWidth),U.h=ee.y-U.t):(U.w=ee.x-U.l,U.h=Math.max(V.openHeight,V.headerHeight)),U.direction=j.direction,$&&(W.size()?function(Q,Y,Z,X,re,ie){var le,se,pe,Te=re.direction,Se=Te==="up"||Te==="down",Oe=re._dims,Me=re.active;if(Se)for(se=0,pe=0;pe0?[0]:[]);if(j.enter().append("g").classed(y.containerClassName,!0).style("cursor","pointer"),j.exit().each(function(){l.select(this).selectAll("g."+y.headerGroupClassName).each($)}).remove(),B.length!==0){var N=j.selectAll("g."+y.headerGroupClassName).data(B,g);N.enter().append("g").classed(y.headerGroupClassName,!0);for(var E=d.ensureSingle(j,"g",y.dropdownButtonGroupClassName,function(H){H.style("pointer-events","all")}),W=0;WR,z=d.barLength+2*d.barPad,B=d.barWidth+2*d.barPad,$=k,j=M+S;j+B>g&&(j=g-B);var N=this.container.selectAll("rect.scrollbar-horizontal").data(A?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-horizontal",!0).call(f.fill,d.barColor),A?(this.hbar=N.attr({rx:d.barRadius,ry:d.barRadius,x:$,y:j,width:z,height:B}),this._hbarXMin=$+z/2,this._hbarTranslateMax=R-z):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var E=S>F,W=d.barWidth+2*d.barPad,G=d.barLength+2*d.barPad,L=k+T,q=M;L+W>v&&(L=v-W);var H=this.container.selectAll("rect.scrollbar-vertical").data(E?[0]:[]);H.exit().on(".drag",null).remove(),H.enter().append("rect").classed("scrollbar-vertical",!0).call(f.fill,d.barColor),E?(this.vbar=H.attr({rx:d.barRadius,ry:d.barRadius,x:L,y:q,width:W,height:G}),this._vbarYMin=q+G/2,this._vbarTranslateMax=F-G):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var V=this.id,te=b-.5,ee=E?x+W+.5:x+.5,U=_-.5,Q=A?w+B+.5:w+.5,Y=y._topdefs.selectAll("#"+V).data(A||E?[0]:[]);if(Y.exit().remove(),Y.enter().append("clipPath").attr("id",V).append("rect"),A||E?(this._clipRect=Y.select("rect").attr({x:Math.floor(te),y:Math.floor(U),width:Math.ceil(ee)-Math.floor(te),height:Math.ceil(Q)-Math.floor(U)}),this.container.call(s.setClipUrl,V,this.gd),this.bg.attr({x:k,y:M,width:T,height:S})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(s.setClipUrl,null),delete this._clipRect),A||E){var Z=l.behavior.drag().on("dragstart",function(){l.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Z);var X=l.behavior.drag().on("dragstart",function(){l.event.sourceEvent.preventDefault(),l.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));A&&this.hbar.on(".drag",null).call(X),E&&this.vbar.on(".drag",null).call(X)}this.setTranslate(p,m)},d.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(s.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},d.prototype._onBoxDrag=function(){var h=this.translateX,p=this.translateY;this.hbar&&(h-=l.event.dx),this.vbar&&(p-=l.event.dy),this.setTranslate(h,p)},d.prototype._onBoxWheel=function(){var h=this.translateX,p=this.translateY;this.hbar&&(h+=l.event.deltaY),this.vbar&&(p+=l.event.deltaY),this.setTranslate(h,p)},d.prototype._onBarDrag=function(){var h=this.translateX,p=this.translateY;if(this.hbar){var m=h+this._hbarXMin,y=m+this._hbarTranslateMax;h=(u.constrain(l.event.x,m,y)-m)/(y-m)*(this.position.w-this._box.w)}if(this.vbar){var v=p+this._vbarYMin,g=v+this._vbarTranslateMax;p=(u.constrain(l.event.y,v,g)-v)/(g-v)*(this.position.h-this._box.h)}this.setTranslate(h,p)},d.prototype.setTranslate=function(h,p){var m=this.position.w-this._box.w,y=this.position.h-this._box.h;if(h=u.constrain(h||0,0,m),p=u.constrain(p||0,0,y),this.translateX=h,this.translateY=p,this.container.call(s.setTranslate,this._box.l-this.position.l-h,this._box.t-this.position.t-p),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+h-.5),y:Math.floor(this.position.t+p-.5)}),this.hbar){var v=h/m;this.hbar.call(s.setTranslate,h+v*this._hbarTranslateMax,p)}if(this.vbar){var g=p/y;this.vbar.call(s.setTranslate,h,p+g*this._vbarTranslateMax)}}},18783:function(o){o.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},24695:function(o){o.exports={axisRefDescription:function(a,n,l){return["If set to a",a,"axis id (e.g. *"+a+"* or","*"+a+"2*), the `"+a+"` position refers to a",a,"coordinate. If set to *paper*, the `"+a+"`","position refers to the distance from the",n,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",n,"("+l+"). If set to a",a,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",n,"of the domain of that axis: e.g.,","*"+a+"2 domain* refers to the domain of the second",a," axis and a",a,"position of 0.5 refers to the","point between the",n,"and the",l,"of the domain of the","second",a,"axis."].join(" ")}}},31562:function(o){o.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},74808:function(o){o.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},37822:function(o){o.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},50606:function(o){o.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},32396:function(o,a){a.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],a.STYLE=a.CSS_DECLARATIONS.map(function(n){return n.join(": ")+"; "}).join("")},77922:function(o,a){a.xmlns="http://www.w3.org/2000/xmlns/",a.svg="http://www.w3.org/2000/svg",a.xlink="http://www.w3.org/1999/xlink",a.svgAttrs={xmlns:a.svg,"xmlns:xlink":a.xlink}},8729:function(o,a,n){a.version=n(11506).version,n(7417),n(98847);for(var l=n(73972),f=a.register=l.register,s=n(10641),u=Object.keys(s),d=0;d",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},99863:function(o,a){a.isLeftAnchor=function(n){return n.xanchor==="left"||n.xanchor==="auto"&&n.x<=.3333333333333333},a.isCenterAnchor=function(n){return n.xanchor==="center"||n.xanchor==="auto"&&n.x>.3333333333333333&&n.x<.6666666666666666},a.isRightAnchor=function(n){return n.xanchor==="right"||n.xanchor==="auto"&&n.x>=.6666666666666666},a.isTopAnchor=function(n){return n.yanchor==="top"||n.yanchor==="auto"&&n.y>=.6666666666666666},a.isMiddleAnchor=function(n){return n.yanchor==="middle"||n.yanchor==="auto"&&n.y>.3333333333333333&&n.y<.6666666666666666},a.isBottomAnchor=function(n){return n.yanchor==="bottom"||n.yanchor==="auto"&&n.y<=.3333333333333333}},26348:function(o,a,n){var l=n(64872),f=l.mod,s=l.modHalf,u=Math.PI,d=2*u;function h(v){return Math.abs(v[1]-v[0])>d-1e-14}function p(v,g){return s(g-v,d)}function m(v,g){if(h(g))return!0;var b,x;g[0](x=f(x,d))&&(x+=d);var _=f(v,d),w=_+d;return _>=b&&_<=x||w>=b&&w<=x}function y(v,g,b,x,_,w,k){_=_||0,w=w||0;var T,M,S,C,P,D=h([b,x]);function O(z,B){return[z*Math.cos(B)+_,w-z*Math.sin(B)]}D?(T=0,M=u,S=d):b=_&&v<=w);var _,w},pathArc:function(v,g,b,x,_){return y(null,v,g,b,x,_,0)},pathSector:function(v,g,b,x,_){return y(null,v,g,b,x,_,1)},pathAnnulus:function(v,g,b,x,_,w){return y(v,g,b,x,_,w,1)}}},73627:function(o,a){var n=Array.isArray,l=ArrayBuffer,f=DataView;function s(h){return l.isView(h)&&!(h instanceof f)}function u(h){return n(h)||s(h)}function d(h,p,m){if(u(h)){if(u(h[0])){for(var y=m,v=0;vw.max?x.set(_):x.set(+b)}},integer:{coerceFunction:function(b,x,_,w){b%1||!l(b)||w.min!==void 0&&bw.max?x.set(_):x.set(+b)}},string:{coerceFunction:function(b,x,_,w){if(typeof b!="string"){var k=typeof b=="number";w.strict!==!0&&k?x.set(String(b)):x.set(_)}else w.noBlank&&!b?x.set(_):x.set(b)}},color:{coerceFunction:function(b,x,_){f(b).isValid()?x.set(b):x.set(_)}},colorlist:{coerceFunction:function(b,x,_){Array.isArray(b)&&b.length&&b.every(function(w){return f(w).isValid()})?x.set(b):x.set(_)}},colorscale:{coerceFunction:function(b,x,_){x.set(u.get(b,_))}},angle:{coerceFunction:function(b,x,_){b==="auto"?x.set("auto"):l(b)?x.set(y(+b,360)):x.set(_)}},subplotid:{coerceFunction:function(b,x,_,w){var k=w.regex||m(_);typeof b=="string"&&k.test(b)?x.set(b):x.set(_)},validateFunction:function(b,x){var _=x.dflt;return b===_||typeof b=="string"&&!!m(_).test(b)}},flaglist:{coerceFunction:function(b,x,_,w){if((w.extras||[]).indexOf(b)===-1)if(typeof b=="string"){for(var k=b.split("+"),T=0;T=l&&N<=f?N:m}if(typeof N!="string"&&typeof N!="number")return m;N=String(N);var q=S(E),H=N.charAt(0);!q||H!=="G"&&H!=="g"||(N=N.substr(1),E="");var V=q&&E.substr(0,7)==="chinese",te=N.match(V?T:k);if(!te)return m;var ee=te[1],U=te[3]||"1",Q=Number(te[5]||1),Y=Number(te[7]||0),Z=Number(te[9]||0),X=Number(te[11]||0);if(q){if(ee.length===2)return m;var re;ee=Number(ee);try{var ie=_.getComponentMethod("calendars","getCal")(E);if(V){var le=U.charAt(U.length-1)==="i";U=parseInt(U,10),re=ie.newDate(ee,ie.toMonthIndex(ee,U,le),Q)}else re=ie.newDate(ee,Number(U),Q)}catch{return m}return re?(re.toJD()-x)*y+Y*v+Z*g+X*b:m}ee=ee.length===2?(Number(ee)+2e3-M)%100+M:Number(ee),U-=1;var se=new Date(Date.UTC(2e3,U,Q,Y,Z));return se.setUTCFullYear(ee),se.getUTCMonth()!==U||se.getUTCDate()!==Q?m:se.getTime()+X*b},l=a.MIN_MS=a.dateTime2ms("-9999"),f=a.MAX_MS=a.dateTime2ms("9999-12-31 23:59:59.9999"),a.isDateTime=function(N,E){return a.dateTime2ms(N,E)!==m};var P=90*y,D=3*v,O=5*g;function R(N,E,W,G,L){if((E||W||G||L)&&(N+=" "+C(E,2)+":"+C(W,2),(G||L)&&(N+=":"+C(G,2),L))){for(var q=4;L%10==0;)q-=1,L/=10;N+="."+C(L,q)}return N}a.ms2DateTime=function(N,E,W){if(typeof N!="number"||!(N>=l&&N<=f))return m;E||(E=0);var G,L,q,H,V,te,ee=Math.floor(10*h(N+.05,1)),U=Math.round(N-ee/10);if(S(W)){var Q=Math.floor(U/y)+x,Y=Math.floor(h(N,y));try{G=_.getComponentMethod("calendars","getCal")(W).fromJD(Q).formatDate("yyyy-mm-dd")}catch{G=w("G%Y-%m-%d")(new Date(U))}if(G.charAt(0)==="-")for(;G.length<11;)G="-0"+G.substr(1);else for(;G.length<10;)G="0"+G;L=E=l+y&&N<=f-y))return m;var E=Math.floor(10*h(N+.05,1)),W=new Date(Math.round(N-E/10));return R(s("%Y-%m-%d")(W),W.getHours(),W.getMinutes(),W.getSeconds(),10*W.getUTCMilliseconds()+E)},a.cleanDate=function(N,E,W){if(N===m)return E;if(a.isJSDate(N)||typeof N=="number"&&isFinite(N)){if(S(W))return d.error("JS Dates and milliseconds are incompatible with world calendars",N),E;if(!(N=a.ms2DateTimeLocal(+N))&&E!==void 0)return E}else if(!a.isDateTime(N,W))return d.error("unrecognized date",N),E;return N};var F=/%\d?f/g,A=/%h/g,z={1:"1",2:"1",3:"2",4:"2"};function B(N,E,W,G){N=N.replace(F,function(q){var H=Math.min(+q.charAt(1)||6,6);return(E/1e3%1+2).toFixed(H).substr(2).replace(/0+$/,"")||"0"});var L=new Date(Math.floor(E+.05));if(N=N.replace(A,function(){return z[W("%q")(L)]}),S(G))try{N=_.getComponentMethod("calendars","worldCalFmt")(N,E,G)}catch{return"Invalid"}return W(N)(L)}var $=[59,59.9,59.99,59.999,59.9999];a.formatDate=function(N,E,W,G,L,q){if(L=S(L)&&L,!E)if(W==="y")E=q.year;else if(W==="m")E=q.month;else{if(W!=="d")return function(H,V){var te=h(H+.05,y),ee=C(Math.floor(te/v),2)+":"+C(h(Math.floor(te/g),60),2);if(V!=="M"){u(V)||(V=0);var U=(100+Math.min(h(H/b,60),$[V])).toFixed(V).substr(1);V>0&&(U=U.replace(/0+$/,"").replace(/[\.]$/,"")),ee+=":"+U}return ee}(N,W)+` +var JD=Object.defineProperty;var QD=(e,t,r)=>t in e?JD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Nc=(e,t,r)=>(QD(e,typeof t!="symbol"?t+"":t,r),r);import{ay as ir,r as $e,az as Or,j as je,B as Kr,aA as qn,aB as e9,aC as t9,aD as n9,aE as Sa,aF as r9,aG as a9,aH as i9,aI as o9,aJ as l9,aK as s9,aL as u9,aM as c9,aN as f9,aO as d9,aP as h9,aQ as p9,aR as g9,aS as m9,aT as v9,aU as y9,aV as bn,aW as wr,aX as _r,aY as wn,T as Cr,aZ as Gt,a_ as Ef,a$ as Vn,b0 as b9,b1 as Tr,b2 as fr,b3 as x9,b4 as gy,b5 as Od,b6 as eS,b7 as tS,b8 as w9,b9 as _l,ba as my,bb as _9,ah as Ad,bc as ro,I as jl,bd as T9,be as k9,bf as nS,bg as M9,bh as oe,bi as S9,G as Jn,p as hi,bj as C9,al as O9,P as rS,bk as A9,bl as sg,am as P9,bm as D9,bn as E9,bo as z2,bp as R9,a as vy,a9 as aS,bq as L9,aa as A0,br as I9,bs as F9,bt as N9,bu as j9,bv as $9,bw as B9,bx as z9,by as q9,bz as W9,bA as q2,bB as U9,bC as yy,m as H9,R as et,bD as V9,bE as Y9,bF as G9,bG as X9,bH as Z9,bI as K9,bJ as J9,bK as Q9,bL as eE,d as by,bM as tE,bN as nE,a2 as iS,$ as rE,ar as oS,as as lS,at as Rf,au as Vi,aw as sS,bO as aE,bP as iE,H as xy,bQ as oE,D as lE,bR as uS,bS as cS,bT as sE,bU as uE,bV as cE,bW as fE}from"./vendor-C2GWNUp2.js";import{u as dE}from"./DashboardViewParams-D9XhJzJS.js";import{u as fS,A as wy,a as _y}from"./index-D-BBKVDE.js";var hf=(e=>(e[e.Small=0]="Small",e[e.Medium=1]="Medium",e[e.Big=2]="Big",e))(hf||{}),dS={exports:{}};(function(e,t){/*! For license information please see plotly-cartesian.min.js.LICENSE.txt */(function(r,i){e.exports=i()})(self,function(){return function(){var r={98847:function(o,a,n){var l=n(71828),f={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var s in f){var c=s.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");l.addStyleRule(c,f[s])}},98222:function(o,a,n){o.exports=n(82887)},27206:function(o,a,n){o.exports=n(60822)},5224:function(o,a,n){o.exports=n(83832)},59509:function(o,a,n){o.exports=n(72201)},49866:function(o,a,n){o.exports=n(99442)},19548:function(o,a,n){o.exports=n(8729)},61039:function(o,a,n){o.exports=n(14382)},24296:function(o,a,n){o.exports=n(43102)},58872:function(o,a,n){o.exports=n(92165)},65591:function(o,a,n){o.exports=n(36071)},69738:function(o,a,n){o.exports=n(43905)},92650:function(o,a,n){o.exports=n(35902)},73434:function(o,a,n){o.exports=n(94507)},760:function(o,a,n){var l=n(19548);l.register([n(27206),n(5224),n(58872),n(65591),n(69738),n(92650),n(49866),n(25743),n(6197),n(73434),n(54201),n(98222),n(61039),n(24296),n(66398),n(59509)]),o.exports=l},54201:function(o,a,n){o.exports=n(58810)},25743:function(o,a,n){o.exports=n(52979)},66398:function(o,a,n){o.exports=n(32275)},6197:function(o,a,n){o.exports=n(47462)},82884:function(o){o.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},50215:function(o,a,n){var l=n(82884),f=n(41940),s=n(85555),c=n(44467).templatedArray;n(24695),o.exports=c("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:f({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:l.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:l.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",s.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",s.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",s.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",s.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:f({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},3749:function(o,a,n){var l=n(71828),f=n(89298),s=n(92605).draw;function c(h){var p=h._fullLayout;l.filterVisible(p.annotations).forEach(function(m){var y=f.getFromId(h,m.xref),v=f.getFromId(h,m.yref),g=f.getRefType(m.xref),b=f.getRefType(m.yref);m._extremes={},g==="range"&&d(m,y),b==="range"&&d(m,v)})}function d(h,p){var m,y=p._id,v=y.charAt(0),g=h[v],b=h["a"+v],x=h[v+"ref"],_=h["a"+v+"ref"],w=h["_"+v+"padplus"],k=h["_"+v+"padminus"],T={x:1,y:-1}[v]*h[v+"shift"],M=3*h.arrowsize*h.arrowwidth||0,S=M+T,C=M-T,P=3*h.startarrowsize*h.arrowwidth||0,D=P+T,O=P-T;if(_===x){var R=f.findExtremes(p,[p.r2c(g)],{ppadplus:S,ppadminus:C}),F=f.findExtremes(p,[p.r2c(b)],{ppadplus:Math.max(w,D),ppadminus:Math.max(k,O)});m={min:[R.min[0],F.min[0]],max:[R.max[0],F.max[0]]}}else D=b?D+b:D,O=b?O-b:O,m=f.findExtremes(p,[p.r2c(g)],{ppadplus:Math.max(w,S,D),ppadminus:Math.max(k,C,O)});h._extremes[y]=m}o.exports=function(h){var p=h._fullLayout;if(l.filterVisible(p.annotations).length&&h._fullData.length)return l.syncOrAsync([s,c],h)}},44317:function(o,a,n){var l=n(71828),f=n(73972),s=n(44467).arrayEditor;function c(h,p){var m,y,v,g,b,x,_,w=h._fullLayout.annotations,k=[],T=[],M=[],S=(p||[]).length;for(m=0;m0||m.explicitOff.length>0},onClick:function(h,p){var m,y,v=c(h,p),g=v.on,b=v.off.concat(v.explicitOff),x={},_=h._fullLayout.annotations;if(g.length||b.length){for(m=0;m.6666666666666666?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[nt]}for(var we=!1,ke=["x","y"],Ae=0;Ae1)&&(Ye===qe?((Je=at.r2fraction(S["a"+Ue]))<0||Je>1)&&(we=!0):we=!0),Ee=at._offset+at.r2p(S[Ue]),Ie=.5}else{var ut=kt==="domain";Ue==="x"?(Re=S[Ue],Ee=ut?at._offset+at._length*Re:Ee=z.l+z.w*Re):(Re=1-S[Ue],Ee=ut?at._offset+at._length*Re:Ee=z.t+z.h*Re),Ie=S.showarrow?.5:Re}if(S.showarrow){it.head=Ee;var pt=S["a"+Ue];if(Be=ct*be(.5,S.xanchor)-bt*be(.5,S.yanchor),Ye===qe){var It=h.getRefType(Ye);It==="domain"?(Ue==="y"&&(pt=1-pt),it.tail=at._offset+at._length*pt):It==="paper"?Ue==="y"?(pt=1-pt,it.tail=z.t+z.h*pt):it.tail=z.l+z.w*pt:it.tail=at._offset+at.r2p(pt),De=Be}else it.tail=Ee+pt,De=Be+pt;it.text=it.tail+Be;var Mt=A[Ue==="x"?"width":"height"];if(qe==="paper"&&(it.head=c.constrain(it.head,1,Mt-1)),Ye==="pixel"){var zt=-Math.max(it.tail-3,it.text),wt=Math.min(it.tail+3,it.text)-Mt;zt>0?(it.tail+=zt,it.text+=zt):wt>0&&(it.tail-=wt,it.text-=wt)}it.tail+=Qe,it.head+=Qe}else De=Be=ze*be(Ie,Ne),it.text=Ee+Be;it.text+=Qe,Be+=Qe,De+=Qe,S["_"+Ue+"padplus"]=ze/2+De,S["_"+Ue+"padminus"]=ze/2-De,S["_"+Ue+"size"]=ze,S["_"+Ue+"shift"]=Be}if(we)ee.remove();else{var ve=0,_e=0;if(S.align!=="left"&&(ve=(de-J)*(S.align==="center"?.5:1)),S.valign!=="top"&&(_e=(xe-ne)*(S.valign==="middle"?.5:1)),ce)Me.select("svg").attr({x:Y+ve-1,y:Y+_e}).call(m.setClipUrl,X?W:null,M);else{var Ve=Y+_e-ye.top,We=Y+ve-ye.left;se.call(v.positionText,We,Ve).call(m.setClipUrl,X?W:null,M)}re.select("rect").call(m.setRect,Y,Y,de,xe),Z.call(m.setRect,U/2,U/2,ue-U,ge-U),ee.call(m.setTranslate,Math.round(G.x.text-ue/2),Math.round(G.y.text-ge/2)),H.attr({transform:"rotate("+L+","+G.x.text+","+G.y.text+")"});var Ze,Ge=function(Ke,nt){q.selectAll(".annotation-arrow-g").remove();var st=G.x.head,mt=G.y.head,tt=G.x.tail+Ke,Ft=G.y.tail+nt,Vt=G.x.text+Ke,St=G.y.text+nt,Nt=c.rotationXYMatrix(L,Vt,St),Dt=c.apply2DTransform(Nt),gt=c.apply2DTransform2(Nt),ht=+Z.attr("width"),yt=+Z.attr("height"),qt=Vt-.5*ht,Et=qt+ht,jt=St-.5*yt,Tt=jt+yt,Ot=[[qt,jt,qt,Tt],[qt,Tt,Et,Tt],[Et,Tt,Et,jt],[Et,jt,qt,jt]].map(gt);if(!Ot.reduce(function(an,sn){return an^!!c.segmentsIntersect(st,mt,st+1e6,mt+1e6,sn[0],sn[1],sn[2],sn[3])},!1)){Ot.forEach(function(an){var sn=c.segmentsIntersect(tt,Ft,st,mt,an[0],an[1],an[2],an[3]);sn&&(tt=sn.x,Ft=sn.y)});var At=S.arrowwidth,Lt=S.arrowcolor,Rt=S.arrowside,$t=q.append("g").style({opacity:p.opacity(Lt)}).classed("annotation-arrow-g",!0),Yt=$t.append("path").attr("d","M"+tt+","+Ft+"L"+st+","+mt).style("stroke-width",At+"px").call(p.stroke,p.rgb(Lt));if(_(Yt,Rt,S),B.annotationPosition&&Yt.node().parentNode&&!P){var Xt=st,Bt=mt;if(S.standoff){var Wt=Math.sqrt(Math.pow(st-tt,2)+Math.pow(mt-Ft,2));Xt+=S.standoff*(tt-st)/Wt,Bt+=S.standoff*(Ft-mt)/Wt}var tn,cn,ln=$t.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(tt-Xt)+","+(Ft-Bt),transform:d(Xt,Bt)}).style("stroke-width",At+6+"px").call(p.stroke,"rgba(0,0,0,0)").call(p.fill,"rgba(0,0,0,0)");b.init({element:ln.node(),gd:M,prepFn:function(){var an=m.getTranslate(ee);tn=an.x,cn=an.y,D&&D.autorange&&j(D._name+".autorange",!0),O&&O.autorange&&j(O._name+".autorange",!0)},moveFn:function(an,sn){var Zt=Dt(tn,cn),pn=Zt[0]+an,nn=Zt[1]+sn;ee.call(m.setTranslate,pn,nn),N("x",k(D,an,"x",z,S)),N("y",k(O,sn,"y",z,S)),S.axref===S.xref&&N("ax",k(D,an,"ax",z,S)),S.ayref===S.yref&&N("ay",k(O,sn,"ay",z,S)),$t.attr("transform",d(an,sn)),H.attr({transform:"rotate("+L+","+pn+","+nn+")"})},doneFn:function(){f.call("_guiRelayout",M,E());var an=document.querySelector(".js-notes-box-panel");an&&an.redraw(an.selectedObj)}})}}};S.showarrow&&Ge(0,0),V&&b.init({element:ee.node(),gd:M,prepFn:function(){Ze=H.attr("transform")},moveFn:function(Ke,nt){var st="pointer";if(S.showarrow)S.axref===S.xref?N("ax",k(D,Ke,"ax",z,S)):N("ax",S.ax+Ke),S.ayref===S.yref?N("ay",k(O,nt,"ay",z.w,S)):N("ay",S.ay+nt),Ge(Ke,nt);else{if(P)return;var mt,tt;if(D)mt=k(D,Ke,"x",z,S);else{var Ft=S._xsize/z.w,Vt=S.x+(S._xshift-S.xshift)/z.w-Ft/2;mt=b.align(Vt+Ke/z.w,Ft,0,1,S.xanchor)}if(O)tt=k(O,nt,"y",z,S);else{var St=S._ysize/z.h,Nt=S.y-(S._yshift+S.yshift)/z.h-St/2;tt=b.align(Nt-nt/z.h,St,0,1,S.yanchor)}N("x",mt),N("y",tt),D&&O||(st=b.getCursor(D?.5:mt,O?.5:tt,S.xanchor,S.yanchor))}H.attr({transform:d(Ke,nt)+Ze}),g(ee,st)},clickFn:function(Ke,nt){S.captureevents&&M.emit("plotly_clickannotation",pe(nt))},doneFn:function(){g(ee),f.call("_guiRelayout",M,E());var Ke=document.querySelector(".js-notes-box-panel");Ke&&Ke.redraw(Ke.selectedObj)}})}}}o.exports={draw:function(M){var S=M._fullLayout;S._infolayer.selectAll(".annotation").remove();for(var C=0;C=0,P=y.indexOf("end")>=0,D=k.backoff*M+v.standoff,O=T.backoff*S+v.startstandoff;if(w.nodeName==="line"){g={x:+m.attr("x1"),y:+m.attr("y1")},b={x:+m.attr("x2"),y:+m.attr("y2")};var R=g.x-b.x,F=g.y-b.y;if(_=(x=Math.atan2(F,R))+Math.PI,D&&O&&D+O>Math.sqrt(R*R+F*F))return void q();if(D){if(D*D>R*R+F*F)return void q();var A=D*Math.cos(x),z=D*Math.sin(x);b.x+=A,b.y+=z,m.attr({x2:b.x,y2:b.y})}if(O){if(O*O>R*R+F*F)return void q();var B=O*Math.cos(x),$=O*Math.sin(x);g.x-=B,g.y-=$,m.attr({x1:g.x,y1:g.y})}}else if(w.nodeName==="path"){var j=w.getTotalLength(),N="";if(j1){v=!0;break}}v?c.fullLayout._infolayer.select(".annotation-"+c.id+'[data-index="'+m+'"]').remove():(y._pdata=f(c.glplot.cameraParams,[d.xaxis.r2l(y.x)*h[0],d.yaxis.r2l(y.y)*h[1],d.zaxis.r2l(y.z)*h[2]]),l(c.graphDiv,y,m,c.id,y._xa,y._ya))}}},2468:function(o,a,n){var l=n(73972),f=n(71828);o.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:n(26997)}}},layoutAttributes:n(26997),handleDefaults:n(20226),includeBasePlot:function(s,c){var d=l.subplotsRegistry.gl3d;if(d)for(var h=d.attrRegex,p=Object.keys(s),m=0;m=0)))return y;if(_===3)b[_]>1&&(b[_]=1);else if(b[_]>=1)return y}var w=Math.round(255*b[0])+", "+Math.round(255*b[1])+", "+Math.round(255*b[2]);return x?"rgba("+w+", "+b[3]+")":"rgb("+w+")"}c.tinyRGB=function(y){var v=y.toRgb();return"rgb("+Math.round(v.r)+", "+Math.round(v.g)+", "+Math.round(v.b)+")"},c.rgb=function(y){return c.tinyRGB(l(y))},c.opacity=function(y){return y?l(y).getAlpha():0},c.addOpacity=function(y,v){var g=l(y).toRgb();return"rgba("+Math.round(g.r)+", "+Math.round(g.g)+", "+Math.round(g.b)+", "+v+")"},c.combine=function(y,v){var g=l(y).toRgb();if(g.a===1)return l(y).toRgbString();var b=l(v||p).toRgb(),x=b.a===1?b:{r:255*(1-b.a)+b.r*b.a,g:255*(1-b.a)+b.g*b.a,b:255*(1-b.a)+b.b*b.a},_={r:x.r*(1-g.a)+g.r*g.a,g:x.g*(1-g.a)+g.g*g.a,b:x.b*(1-g.a)+g.b*g.a};return l(_).toRgbString()},c.contrast=function(y,v,g){var b=l(y);return b.getAlpha()!==1&&(b=l(c.combine(y,p))),(b.isDark()?v?b.lighten(v):p:g?b.darken(g):h).toString()},c.stroke=function(y,v){var g=l(v);y.style({stroke:c.tinyRGB(g),"stroke-opacity":g.getAlpha()})},c.fill=function(y,v){var g=l(v);y.style({fill:c.tinyRGB(g),"fill-opacity":g.getAlpha()})},c.clean=function(y){if(y&&typeof y=="object"){var v,g,b,x,_=Object.keys(y);for(v=0;v<_.length;v++)if(x=y[b=_[v]],b.substr(b.length-5)==="color")if(Array.isArray(x))for(g=0;g0?wt>=Ze:wt<=Ze));ve++)wt>Ke&&wt0?wt>=Ze:wt<=Ze));ve++)wt>zt[0]&&wt1){var bt=Math.pow(10,Math.floor(Math.log(ct)/Math.LN10));at*=bt*p.roundUp(ct/bt,[2,5,10]),(Math.abs(J.start)/J.size+1e-6)%1<2e-6&&(qe.tick0=0)}qe.dtick=at}qe.domain=E?[Be+Y/se.h,Be+we-Y/se.h]:[Be+Q/se.w,Be+we-Q/se.w],qe.setScale(),$.attr("transform",m(Math.round(se.l),Math.round(se.t)));var ze,Ne=$.select("."+O.cbtitleunshift).attr("transform",m(-Math.round(se.l),-Math.round(se.t))),Qe=qe.ticklabelposition,it=qe.title.font.size,kt=$.select("."+O.cbaxis),Je=0,ut=0;function pt(It,Mt){var zt={propContainer:qe,propName:j._propPrefix+"title",traceIndex:j._traceIndex,_meta:j._meta,placeholder:le._dfltTitle.colorbar,containerGroup:$.select("."+O.cbtitle)},wt=It.charAt(0)==="h"?It.substr(1):"h"+It;$.selectAll("."+wt+",."+wt+"-math-group").remove(),x.draw(N,It,y(zt,Mt||{}))}return p.syncOrAsync([s.previousPromises,function(){var It,Mt;(E&&Ye||!E&&!Ye)&&(Oe==="top"&&(It=Q+se.l+ke*Z,Mt=Y+se.t+Ae*(1-Be-we)+3+.75*it),Oe==="bottom"&&(It=Q+se.l+ke*Z,Mt=Y+se.t+Ae*(1-Be)-3-.25*it),Oe==="right"&&(Mt=Y+se.t+Ae*X+3+.75*it,It=Q+se.l+ke*Be),pt(qe._id+"title",{attributes:{x:It,y:Mt,"text-anchor":E?"start":"middle"}}))},function(){if(!E&&!Ye||E&&Ye){var It,Mt=$.select("."+O.cbtitle),zt=Mt.select("text"),wt=[-H/2,H/2],ve=Mt.select(".h"+qe._id+"title-math-group").node(),_e=15.6;if(zt.node()&&(_e=parseInt(zt.node().style.fontSize,10)*C),ve?(It=g.bBox(ve),ut=It.width,(Je=It.height)>_e&&(wt[1]-=(Je-_e)/2)):zt.node()&&!zt.classed(O.jsPlaceholder)&&(It=g.bBox(zt.node()),ut=It.width,Je=It.height),E){if(Je){if(Je+=5,Oe==="top")qe.domain[1]-=Je/se.h,wt[1]*=-1;else{qe.domain[0]+=Je/se.h;var Ve=_.lineCount(zt);wt[1]+=(1-Ve)*_e}Mt.attr("transform",m(wt[0],wt[1])),qe.setScale()}}else ut&&(Oe==="right"&&(qe.domain[0]+=(ut+it/2)/se.w),Mt.attr("transform",m(wt[0],wt[1])),qe.setScale())}$.selectAll("."+O.cbfills+",."+O.cblines).attr("transform",E?m(0,Math.round(se.h*(1-qe.domain[1]))):m(Math.round(se.w*qe.domain[0]),0)),kt.attr("transform",E?m(0,Math.round(-se.t)):m(Math.round(-se.l),0));var We=$.select("."+O.cbfills).selectAll("rect."+O.cbfill).attr("style","").data(de);We.enter().append("rect").classed(O.cbfill,!0).attr("style",""),We.exit().remove();var Ze=Me.map(qe.c2p).map(Math.round).sort(function(mt,tt){return mt-tt});We.each(function(mt,tt){var Ft=[tt===0?Me[0]:(de[tt]+de[tt-1])/2,tt===de.length-1?Me[1]:(de[tt]+de[tt+1])/2].map(qe.c2p).map(Math.round);E&&(Ft[1]=p.constrain(Ft[1]+(Ft[1]>Ft[0])?1:-1,Ze[0],Ze[1]));var Vt=l.select(this).attr(E?"x":"y",Ee).attr(E?"y":"x",l.min(Ft)).attr(E?"width":"height",Math.max(ue,2)).attr(E?"height":"width",Math.max(l.max(Ft)-l.min(Ft),2));if(j._fillgradient)g.gradient(Vt,N,j._id,E?"vertical":"horizontalreversed",j._fillgradient,"fill");else{var St=ye(mt).replace("e-","");Vt.attr("fill",f(St).toHexString())}});var Ge=$.select("."+O.cblines).selectAll("path."+O.cbline).data(Te.color&&Te.width?xe:[]);Ge.enter().append("path").classed(O.cbline,!0),Ge.exit().remove(),Ge.each(function(mt){var tt=Ee,Ft=Math.round(qe.c2p(mt))+Te.width/2%1;l.select(this).attr("d","M"+(E?tt+","+Ft:Ft+","+tt)+(E?"h":"v")+ue).call(g.lineGroupStyle,Te.width,ce(mt),Te.dash)}),kt.selectAll("g."+qe._id+"tick,path").remove();var Ke=Ee+ue+(H||0)/2-(j.ticks==="outside"?1:0),nt=d.calcTicks(qe),st=d.getTickSigns(qe)[2];return d.drawTicks(N,qe,{vals:qe.ticks==="inside"?d.clipEnds(qe,nt):nt,layer:kt,path:d.makeTickPath(qe,Ke,st),transFn:d.makeTransTickFn(qe)}),d.drawLabels(N,qe,{vals:nt,layer:kt,transFn:d.makeTransTickLabelFn(qe),labelFns:d.makeLabelFns(qe,Ke)})},function(){if(E&&!Ye||!E&&Ye){var It,Mt,zt=qe.position||0,wt=qe._offset+qe._length/2;if(Oe==="right")Mt=wt,It=se.l+ke*zt+10+it*(qe.showticklabels?1:.5);else if(It=wt,Oe==="bottom"&&(Mt=se.t+Ae*zt+10+(Qe.indexOf("inside")===-1?qe.tickfont.size:0)+(qe.ticks!=="intside"&&j.ticklen||0)),Oe==="top"){var ve=Se.text.split("
").length;Mt=se.t+Ae*zt+10-ue-C*it*ve}pt((E?"h":"v")+qe._id+"title",{avoid:{selection:l.select(N).selectAll("g."+qe._id+"tick"),side:Oe,offsetTop:E?0:se.t,offsetLeft:E?se.l:0,maxShift:E?le.width:le.height},attributes:{x:It,y:Mt,"text-anchor":"middle"},transform:{rotate:E?-90:0,offset:0}})}},s.previousPromises,function(){var It,Mt=ue+H/2;Qe.indexOf("inside")===-1&&(It=g.bBox(kt.node()),Mt+=E?It.width:It.height),ze=Ne.select("text");var zt=0,wt=E&&Oe==="top",ve=!E&&Oe==="right",_e=0;if(ze.node()&&!ze.classed(O.jsPlaceholder)){var Ve,We=Ne.select(".h"+qe._id+"title-math-group").node();We&&(E&&Ye||!E&&!Ye)?(zt=(It=g.bBox(We)).width,Ve=It.height):(zt=(It=g.bBox(Ne.node())).right-se.l-(E?Ee:Ue),Ve=It.bottom-se.t-(E?Ue:Ee),E||Oe!=="top"||(Mt+=It.height,_e=It.height)),ve&&(ze.attr("transform",m(zt/2+it/2,0)),zt*=2),Mt=Math.max(Mt,E?zt:Ve)}var Ze=2*(E?Q:Y)+Mt+V+H/2,Ge=0;!E&&Se.text&&U==="bottom"&&X<=0&&(Ze+=Ge=Ze/2,_e+=Ge),le._hColorbarMoveTitle=Ge,le._hColorbarMoveCBTitle=_e;var Ke=V+H,nt=(E?Ee:Ue)-Ke/2-(E?Q:0),st=(E?Ue:Ee)-(E?be:Y+_e-Ge);$.select("."+O.cbbg).attr("x",nt).attr("y",st).attr(E?"width":"height",Math.max(Ze-Ge,2)).attr(E?"height":"width",Math.max(be+Ke,2)).call(b.fill,te).call(b.stroke,j.bordercolor).style("stroke-width",V);var mt=ve?Math.max(zt-10,0):0;$.selectAll("."+O.cboutline).attr("x",(E?Ee:Ue+Q)+mt).attr("y",(E?Ue+Y-be:Ee)+(wt?Je:0)).attr(E?"width":"height",Math.max(ue,2)).attr(E?"height":"width",Math.max(be-(E?2*Y+Je:2*Q+mt),2)).call(b.stroke,j.outlinecolor).style({fill:"none","stroke-width":H});var tt=E?De*Ze:0,Ft=E?0:(1-Re)*Ze-_e;if(tt=ie?se.l-tt:-tt,Ft=re?se.t-Ft:-Ft,$.attr("transform",m(tt,Ft)),!E&&(V||f(te).getAlpha()&&!f.equals(le.paper_bgcolor,te))){var Vt=kt.selectAll("text"),St=Vt[0].length,Nt=$.select("."+O.cbbg).node(),Dt=g.bBox(Nt),gt=g.getTranslate($);Vt.each(function(Rt,$t){var Yt=St-1;if($t===0||$t===Yt){var Xt,Bt=g.bBox(this),Wt=g.getTranslate(this);if($t===Yt){var tn=Bt.right+Wt.x;(Xt=Dt.right+gt.x+Ue-V-2+Z-tn)>0&&(Xt=0)}else if($t===0){var cn=Bt.left+Wt.x;(Xt=Dt.left+gt.x+Ue+V+2-cn)<0&&(Xt=0)}Xt&&(St<3?this.setAttribute("transform","translate("+Xt+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ht={},yt=P[ee],qt=D[ee],Et=P[U],jt=D[U],Tt=Ze-ue;E?(G==="pixels"?(ht.y=X,ht.t=be*Et,ht.b=be*jt):(ht.t=ht.b=0,ht.yt=X+W*Et,ht.yb=X-W*jt),q==="pixels"?(ht.x=Z,ht.l=Ze*yt,ht.r=Ze*qt):(ht.l=Tt*yt,ht.r=Tt*qt,ht.xl=Z-L*yt,ht.xr=Z+L*qt)):(G==="pixels"?(ht.x=Z,ht.l=be*yt,ht.r=be*qt):(ht.l=ht.r=0,ht.xl=Z+W*yt,ht.xr=Z-W*qt),q==="pixels"?(ht.y=1-X,ht.t=Ze*Et,ht.b=Ze*jt):(ht.t=Tt*Et,ht.b=Tt*jt,ht.yt=X-L*Et,ht.yb=X+L*jt));var Ot=j.y<.5?"b":"t",At=j.x<.5?"l":"r";N._fullLayout._reservedMargin[j._id]={};var Lt={r:le.width-nt-tt,l:nt+ht.r,b:le.height-st-Ft,t:st+ht.b};ie&&re?s.autoMargin(N,j._id,ht):ie?N._fullLayout._reservedMargin[j._id][Ot]=Lt[Ot]:re||E?N._fullLayout._reservedMargin[j._id][At]=Lt[At]:N._fullLayout._reservedMargin[j._id][Ot]=Lt[Ot]}],N)}(z,A,R);B&&B.then&&(R._promises||[]).push(B),R._context.edits.colorbarPosition&&function($,j,N){var E,W,G,L=j.orientation==="v",q=N._fullLayout._size;h.init({element:$.node(),gd:N,prepFn:function(){E=$.attr("transform"),v($)},moveFn:function(H,V){$.attr("transform",E+m(H,V)),W=h.align((L?j._uFrac:j._vFrac)+H/q.w,L?j._thickFrac:j._lenFrac,0,1,j.xanchor),G=h.align((L?j._vFrac:1-j._uFrac)-V/q.h,L?j._lenFrac:j._thickFrac,0,1,j.yanchor);var te=h.getCursor(W,G,j.xanchor,j.yanchor);v($,te)},doneFn:function(){if(v($),W!==void 0&&G!==void 0){var H={};H[j._propPrefix+"x"]=W,H[j._propPrefix+"y"]=G,j._traceIndex!==void 0?c.call("_guiRestyle",N,H,j._traceIndex):c.call("_guiRelayout",N,H)}}})}(z,A,R)}),F.exit().each(function(A){s.autoMargin(R,A._id)}).remove(),F.order()}}},76228:function(o,a,n){var l=n(71828);o.exports=function(f){return l.isPlainObject(f.colorbar)}},12311:function(o,a,n){o.exports={moduleType:"component",name:"colorbar",attributes:n(63583),supplyDefaults:n(62499),draw:n(98981).draw,hasColorbar:n(76228)}},50693:function(o,a,n){var l=n(63583),f=n(30587).counter,s=n(78607),c=n(63282).scales;function d(h){return"`"+h+"`"}s(c),o.exports=function(h,p){h=h||"";var m,y=(p=p||{}).cLetter||"c",v=("onlyIfNumerical"in p&&p.onlyIfNumerical,"noScale"in p?p.noScale:h==="marker.line"),g="showScaleDflt"in p?p.showScaleDflt:y==="z",b=typeof p.colorscaleDflt=="string"?c[p.colorscaleDflt]:null,x=p.editTypeOverride||"",_=h?h+".":"";"colorAttr"in p?(m=p.colorAttr,p.colorAttr):d(_+(m={z:"z",c:"color"}[y]));var w=y+"auto",k=y+"min",T=y+"max",M=y+"mid",S={};S[k]=S[T]=void 0;var C={};C[w]=!1;var P={};return m==="color"&&(P.color={valType:"color",arrayOk:!0,editType:x||"style"},p.anim&&(P.color.anim=!0)),P[w]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:S},P[k]={valType:"number",dflt:null,editType:x||"plot",impliedEdits:C},P[T]={valType:"number",dflt:null,editType:x||"plot",impliedEdits:C},P[M]={valType:"number",dflt:null,editType:"calc",impliedEdits:S},P.colorscale={valType:"colorscale",editType:"calc",dflt:b,impliedEdits:{autocolorscale:!1}},P.autocolorscale={valType:"boolean",dflt:p.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},P.reversescale={valType:"boolean",dflt:!1,editType:"plot"},v||(P.showscale={valType:"boolean",dflt:g,editType:"calc"},P.colorbar=l),p.noColorAxis||(P.coloraxis={valType:"subplotid",regex:f("coloraxis"),dflt:null,editType:"calc"}),P}},78803:function(o,a,n){var l=n(92770),f=n(71828),s=n(52075).extractOpts;o.exports=function(c,d,h){var p,m=c._fullLayout,y=h.vals,v=h.containerStr,g=v?f.nestedProperty(d,v).get():d,b=s(g),x=b.auto!==!1,_=b.min,w=b.max,k=b.mid,T=function(){return f.aggNums(Math.min,null,y)},M=function(){return f.aggNums(Math.max,null,y)};_===void 0?_=T():x&&(_=g._colorAx&&l(_)?Math.min(_,T()):T()),w===void 0?w=M():x&&(w=g._colorAx&&l(w)?Math.max(w,M()):M()),x&&k!==void 0&&(w-k>k-_?_=k-(w-k):w-k=0?m.colorscale.sequential:m.colorscale.sequentialminus,b._sync("colorscale",p))}},33046:function(o,a,n){var l=n(71828),f=n(52075).hasColorscale,s=n(52075).extractOpts;o.exports=function(c,d){function h(x,_){var w=x["_"+_];w!==void 0&&(x[_]=w)}function p(x,_){var w=_.container?l.nestedProperty(x,_.container).get():x;if(w)if(w.coloraxis)w._colorAx=d[w.coloraxis];else{var k=s(w),T=k.auto;(T||k.min===void 0)&&h(w,_.min),(T||k.max===void 0)&&h(w,_.max),k.autocolorscale&&h(w,"colorscale")}}for(var m=0;m=0;T--,M++){var S=_[T];k[M]=[1-S[0],S[1]]}return k}function b(_,w){w=w||{};for(var k=_.domain,T=_.range,M=T.length,S=new Array(M),C=0;C1.3333333333333333-h?d:h}},70461:function(o,a,n){var l=n(71828),f=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];o.exports=function(s,c,d,h){return s=d==="left"?0:d==="center"?1:d==="right"?2:l.constrain(Math.floor(3*s),0,2),c=h==="bottom"?0:h==="middle"?1:h==="top"?2:l.constrain(Math.floor(3*c),0,2),f[c][s]}},64505:function(o,a){a.selectMode=function(n){return n==="lasso"||n==="select"},a.drawMode=function(n){return n==="drawclosedpath"||n==="drawopenpath"||n==="drawline"||n==="drawrect"||n==="drawcircle"},a.openMode=function(n){return n==="drawline"||n==="drawopenpath"},a.rectMode=function(n){return n==="select"||n==="drawline"||n==="drawrect"||n==="drawcircle"},a.freeMode=function(n){return n==="lasso"||n==="drawclosedpath"||n==="drawopenpath"},a.selectingOrDrawing=function(n){return a.freeMode(n)||a.rectMode(n)}},28569:function(o,a,n){var l=n(48956),f=n(57035),s=n(38520),c=n(71828).removeElement,d=n(85555),h=o.exports={};h.align=n(92807),h.getCursor=n(70461);var p=n(26041);function m(){var v=document.createElement("div");v.className="dragcover";var g=v.style;return g.position="fixed",g.left=0,g.right=0,g.top=0,g.bottom=0,g.zIndex=999999999,g.background="none",document.body.appendChild(v),v}function y(v){return l(v.changedTouches?v.changedTouches[0]:v,document.body)}h.unhover=p.wrapped,h.unhoverRaw=p.raw,h.init=function(v){var g,b,x,_,w,k,T,M,S=v.gd,C=1,P=S._context.doubleClickDelay,D=v.element;S._mouseDownTime||(S._mouseDownTime=0),D.style.pointerEvents="all",D.onmousedown=R,s?(D._ontouchstart&&D.removeEventListener("touchstart",D._ontouchstart),D._ontouchstart=R,D.addEventListener("touchstart",R,{passive:!1})):D.ontouchstart=R;var O=v.clampFn||function(z,B,$){return Math.abs(z)<$&&(z=0),Math.abs(B)<$&&(B=0),[z,B]};function R(z){S._dragged=!1,S._dragging=!0;var B=y(z);g=B[0],b=B[1],T=z.target,k=z,M=z.buttons===2||z.ctrlKey,z.clientX===void 0&&z.clientY===void 0&&(z.clientX=g,z.clientY=b),(x=new Date().getTime())-S._mouseDownTimeP&&(C=Math.max(C-1,1)),S._dragged)v.doneFn&&v.doneFn();else if(v.clickFn&&v.clickFn(C,k),!M){var B;try{B=new MouseEvent("click",z)}catch{var $=y(z);(B=document.createEvent("MouseEvents")).initMouseEvent("click",z.bubbles,z.cancelable,z.view,z.detail,z.screenX,z.screenY,$[0],$[1],z.ctrlKey,z.altKey,z.shiftKey,z.metaKey,z.button,z.relatedTarget)}T.dispatchEvent(B)}S._dragging=!1,S._dragged=!1}else S._dragged=!1}},h.coverSlip=m},26041:function(o,a,n){var l=n(11086),f=n(79990),s=n(24401).getGraphDiv,c=n(26675),d=o.exports={};d.wrapped=function(h,p,m){(h=s(h))._fullLayout&&f.clear(h._fullLayout._uid+c.HOVERID),d.raw(h,p,m)},d.raw=function(h,p){var m=h._fullLayout,y=h._hoverdata;p||(p={}),p.target&&!h._dragged&&l.triggerHandler(h,"plotly_beforehover",p)===!1||(m._hoverlayer.selectAll("g").remove(),m._hoverlayer.selectAll("line").remove(),m._hoverlayer.selectAll("circle").remove(),h._hoverdata=void 0,p.target&&y&&h.emit("plotly_unhover",{event:p,points:y}))}},79952:function(o,a){a.P={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},a.u={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},91424:function(o,a,n){var l=n(39898),f=n(71828),s=f.numberFormat,c=n(92770),d=n(84267),h=n(73972),p=n(7901),m=n(21081),y=f.strTranslate,v=n(63893),g=n(77922),b=n(18783).LINE_SPACING,x=n(37822).DESELECTDIM,_=n(34098),w=n(39984),k=n(23469).appendArrayPointValue,T=o.exports={};function M(ce,ye,J){var ne=ye.fillpattern,de=ne&&T.getPatternAttr(ne.shape,0,"");if(de){var xe=T.getPatternAttr(ne.bgcolor,0,null),ue=T.getPatternAttr(ne.fgcolor,0,null),ge=ne.fgopacity,be=T.getPatternAttr(ne.size,0,8),we=T.getPatternAttr(ne.solidity,0,.3),ke=ye.uid;T.pattern(ce,"point",J,ke,de,be,we,void 0,ne.fillmode,xe,ue,ge)}else ye.fillcolor&&ce.call(p.fill,ye.fillcolor)}T.font=function(ce,ye,J,ne){f.isPlainObject(ye)&&(ne=ye.color,J=ye.size,ye=ye.family),ye&&ce.style("font-family",ye),J+1&&ce.style("font-size",J+"px"),ne&&ce.call(p.fill,ne)},T.setPosition=function(ce,ye,J){ce.attr("x",ye).attr("y",J)},T.setSize=function(ce,ye,J){ce.attr("width",ye).attr("height",J)},T.setRect=function(ce,ye,J,ne,de){ce.call(T.setPosition,ye,J).call(T.setSize,ne,de)},T.translatePoint=function(ce,ye,J,ne){var de=J.c2p(ce.x),xe=ne.c2p(ce.y);return!!(c(de)&&c(xe)&&ye.node())&&(ye.node().nodeName==="text"?ye.attr("x",de).attr("y",xe):ye.attr("transform",y(de,xe)),!0)},T.translatePoints=function(ce,ye,J){ce.each(function(ne){var de=l.select(this);T.translatePoint(ne,de,ye,J)})},T.hideOutsideRangePoint=function(ce,ye,J,ne,de,xe){ye.attr("display",J.isPtWithinRange(ce,de)&&ne.isPtWithinRange(ce,xe)?null:"none")},T.hideOutsideRangePoints=function(ce,ye){if(ye._hasClipOnAxisFalse){var J=ye.xaxis,ne=ye.yaxis;ce.each(function(de){var xe=de[0].trace,ue=xe.xcalendar,ge=xe.ycalendar,be=h.traceIs(xe,"bar-like")?".bartext":".point,.textpoint";ce.selectAll(be).each(function(we){T.hideOutsideRangePoint(we,l.select(this),J,ne,ue,ge)})})}},T.crispRound=function(ce,ye,J){return ye&&c(ye)?ce._context.staticPlot?ye:ye<1?1:Math.round(ye):J||0},T.singleLineStyle=function(ce,ye,J,ne,de){ye.style("fill","none");var xe=(((ce||[])[0]||{}).trace||{}).line||{},ue=J||xe.width||0,ge=de||xe.dash||"";p.stroke(ye,ne||xe.color),T.dashLine(ye,ge,ue)},T.lineGroupStyle=function(ce,ye,J,ne){ce.style("fill","none").each(function(de){var xe=(((de||[])[0]||{}).trace||{}).line||{},ue=ye||xe.width||0,ge=ne||xe.dash||"";l.select(this).call(p.stroke,J||xe.color).call(T.dashLine,ge,ue)})},T.dashLine=function(ce,ye,J){J=+J||0,ye=T.dashStyle(ye,J),ce.style({"stroke-dasharray":ye,"stroke-width":J+"px"})},T.dashStyle=function(ce,ye){ye=+ye||1;var J=Math.max(ye,3);return ce==="solid"?ce="":ce==="dot"?ce=J+"px,"+J+"px":ce==="dash"?ce=3*J+"px,"+3*J+"px":ce==="longdash"?ce=5*J+"px,"+5*J+"px":ce==="dashdot"?ce=3*J+"px,"+J+"px,"+J+"px,"+J+"px":ce==="longdashdot"&&(ce=5*J+"px,"+2*J+"px,"+J+"px,"+2*J+"px"),ce},T.singleFillStyle=function(ce,ye){var J=l.select(ce.node());M(ce,((J.data()[0]||[])[0]||{}).trace||{},ye)},T.fillGroupStyle=function(ce,ye){ce.style("stroke-width",0).each(function(J){var ne=l.select(this);J[0].trace&&M(ne,J[0].trace,ye)})};var S=n(90998);T.symbolNames=[],T.symbolFuncs=[],T.symbolBackOffs=[],T.symbolNeedLines={},T.symbolNoDot={},T.symbolNoFill={},T.symbolList=[],Object.keys(S).forEach(function(ce){var ye=S[ce],J=ye.n;T.symbolList.push(J,String(J),ce,J+100,String(J+100),ce+"-open"),T.symbolNames[J]=ce,T.symbolFuncs[J]=ye.f,T.symbolBackOffs[J]=ye.backoff||0,ye.needLine&&(T.symbolNeedLines[J]=!0),ye.noDot?T.symbolNoDot[J]=!0:T.symbolList.push(J+200,String(J+200),ce+"-dot",J+300,String(J+300),ce+"-open-dot"),ye.noFill&&(T.symbolNoFill[J]=!0)});var C=T.symbolNames.length;function P(ce,ye,J,ne){var de=ce%100;return T.symbolFuncs[de](ye,J,ne)+(ce>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}T.symbolNumber=function(ce){if(c(ce))ce=+ce;else if(typeof ce=="string"){var ye=0;ce.indexOf("-open")>0&&(ye=100,ce=ce.replace("-open","")),ce.indexOf("-dot")>0&&(ye+=200,ce=ce.replace("-dot","")),(ce=T.symbolNames.indexOf(ce))>=0&&(ce+=ye)}return ce%100>=C||ce>=400?0:Math.floor(Math.max(ce,0))};var D={x1:1,x2:0,y1:0,y2:0},O={x1:0,x2:0,y1:1,y2:0},R=s("~f"),F={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:D},horizontalreversed:{node:"linearGradient",attrs:D,reversed:!0},vertical:{node:"linearGradient",attrs:O},verticalreversed:{node:"linearGradient",attrs:O,reversed:!0}};T.gradient=function(ce,ye,J,ne,de,xe){for(var ue=de.length,ge=F[ne],be=new Array(ue),we=0;we=0&&ce.i===void 0&&(ce.i=xe.i),ye.style("opacity",ne.selectedOpacityFn?ne.selectedOpacityFn(ce):ce.mo===void 0?ue.opacity:ce.mo),ne.ms2mrc){var be;be=ce.ms==="various"||ue.size==="various"?3:ne.ms2mrc(ce.ms),ce.mrc=be,ne.selectedSizeFn&&(be=ce.mrc=ne.selectedSizeFn(ce));var we=T.symbolNumber(ce.mx||ue.symbol)||0;ce.om=we%200>=100;var ke=Me(ce,J),Ae=Y(ce,J);ye.attr("d",P(we,be,ke,Ae))}var Ee,De,Re,Ie=!1;if(ce.so)Re=ge.outlierwidth,De=ge.outliercolor,Ee=ue.outliercolor;else{var Be=(ge||{}).width;Re=(ce.mlw+1||Be+1||(ce.trace?(ce.trace.marker.line||{}).width:0)+1)-1||0,De="mlc"in ce?ce.mlcc=ne.lineScale(ce.mlc):f.isArrayOrTypedArray(ge.color)?p.defaultLine:ge.color,f.isArrayOrTypedArray(ue.color)&&(Ee=p.defaultLine,Ie=!0),Ee="mc"in ce?ce.mcc=ne.markerScale(ce.mc):ue.color||ue.colors||"rgba(0,0,0,0)",ne.selectedColorFn&&(Ee=ne.selectedColorFn(ce))}if(ce.om)ye.call(p.stroke,Ee).style({"stroke-width":(Re||1)+"px",fill:"none"});else{ye.style("stroke-width",(ce.isBlank?0:Re)+"px");var Ue=ue.gradient,qe=ce.mgt;qe?Ie=!0:qe=Ue&&Ue.type,f.isArrayOrTypedArray(qe)&&(qe=qe[0],F[qe]||(qe=0));var Ye=ue.pattern,at=Ye&&T.getPatternAttr(Ye.shape,ce.i,"");if(qe&&qe!=="none"){var lt=ce.mgc;lt?Ie=!0:lt=Ue.color;var ct=J.uid;Ie&&(ct+="-"+ce.i),T.gradient(ye,de,ct,qe,[[0,lt],[1,Ee]],"fill")}else if(at){var bt=!1,ze=Ye.fgcolor;!ze&&xe&&xe.color&&(ze=xe.color,bt=!0);var Ne=T.getPatternAttr(ze,ce.i,xe&&xe.color||null),Qe=T.getPatternAttr(Ye.bgcolor,ce.i,null),it=Ye.fgopacity,kt=T.getPatternAttr(Ye.size,ce.i,8),Je=T.getPatternAttr(Ye.solidity,ce.i,.3);bt=bt||ce.mcc||f.isArrayOrTypedArray(Ye.shape)||f.isArrayOrTypedArray(Ye.bgcolor)||f.isArrayOrTypedArray(Ye.fgcolor)||f.isArrayOrTypedArray(Ye.size)||f.isArrayOrTypedArray(Ye.solidity);var ut=J.uid;bt&&(ut+="-"+ce.i),T.pattern(ye,"point",de,ut,at,kt,Je,ce.mcc,Ye.fillmode,Qe,Ne,it)}else f.isArrayOrTypedArray(Ee)?p.fill(ye,Ee[ce.i]):p.fill(ye,Ee);Re&&p.stroke(ye,De)}},T.makePointStyleFns=function(ce){var ye={},J=ce.marker;return ye.markerScale=T.tryColorscale(J,""),ye.lineScale=T.tryColorscale(J,"line"),h.traceIs(ce,"symbols")&&(ye.ms2mrc=_.isBubble(ce)?w(ce):function(){return(J.size||6)/2}),ce.selectedpoints&&f.extendFlat(ye,T.makeSelectedPointStyleFns(ce)),ye},T.makeSelectedPointStyleFns=function(ce){var ye={},J=ce.selected||{},ne=ce.unselected||{},de=ce.marker||{},xe=J.marker||{},ue=ne.marker||{},ge=de.opacity,be=xe.opacity,we=ue.opacity,ke=be!==void 0,Ae=we!==void 0;(f.isArrayOrTypedArray(ge)||ke||Ae)&&(ye.selectedOpacityFn=function(at){var lt=at.mo===void 0?de.opacity:at.mo;return at.selected?ke?be:lt:Ae?we:x*lt});var Ee=de.color,De=xe.color,Re=ue.color;(De||Re)&&(ye.selectedColorFn=function(at){var lt=at.mcc||Ee;return at.selected?De||lt:Re||lt});var Ie=de.size,Be=xe.size,Ue=ue.size,qe=Be!==void 0,Ye=Ue!==void 0;return h.traceIs(ce,"symbols")&&(qe||Ye)&&(ye.selectedSizeFn=function(at){var lt=at.mrc||Ie/2;return at.selected?qe?Be/2:lt:Ye?Ue/2:lt}),ye},T.makeSelectedTextStyleFns=function(ce){var ye={},J=ce.selected||{},ne=ce.unselected||{},de=ce.textfont||{},xe=J.textfont||{},ue=ne.textfont||{},ge=de.color,be=xe.color,we=ue.color;return ye.selectedTextColorFn=function(ke){var Ae=ke.tc||ge;return ke.selected?be||Ae:we||(be?Ae:p.addOpacity(Ae,x))},ye},T.selectedPointStyle=function(ce,ye){if(ce.size()&&ye.selectedpoints){var J=T.makeSelectedPointStyleFns(ye),ne=ye.marker||{},de=[];J.selectedOpacityFn&&de.push(function(xe,ue){xe.style("opacity",J.selectedOpacityFn(ue))}),J.selectedColorFn&&de.push(function(xe,ue){p.fill(xe,J.selectedColorFn(ue))}),J.selectedSizeFn&&de.push(function(xe,ue){var ge=ue.mx||ne.symbol||0,be=J.selectedSizeFn(ue);xe.attr("d",P(T.symbolNumber(ge),be,Me(ue,ye),Y(ue,ye))),ue.mrc2=be}),de.length&&ce.each(function(xe){for(var ue=l.select(this),ge=0;ge0?J:0}function N(ce,ye,J){return J&&(ce=H(ce)),ye?W(ce[1]):E(ce[0])}function E(ce){var ye=l.round(ce,2);return A=ye,ye}function W(ce){var ye=l.round(ce,2);return z=ye,ye}function G(ce,ye,J,ne){var de=ce[0]-ye[0],xe=ce[1]-ye[1],ue=J[0]-ye[0],ge=J[1]-ye[1],be=Math.pow(de*de+xe*xe,.25),we=Math.pow(ue*ue+ge*ge,.25),ke=(we*we*de-be*be*ue)*ne,Ae=(we*we*xe-be*be*ge)*ne,Ee=3*we*(be+we),De=3*be*(be+we);return[[E(ye[0]+(Ee&&ke/Ee)),W(ye[1]+(Ee&&Ae/Ee))],[E(ye[0]-(De&&ke/De)),W(ye[1]-(De&&Ae/De))]]}T.textPointStyle=function(ce,ye,J){if(ce.size()){var ne;if(ye.selectedpoints){var de=T.makeSelectedTextStyleFns(ye);ne=de.selectedTextColorFn}var xe=ye.texttemplate,ue=J._fullLayout;ce.each(function(ge){var be=l.select(this),we=xe?f.extractOption(ge,ye,"txt","texttemplate"):f.extractOption(ge,ye,"tx","text");if(we||we===0){if(xe){var ke=ye._module.formatLabels,Ae=ke?ke(ge,ye,ue):{},Ee={};k(Ee,ye,ge.i);var De=ye._meta||{};we=f.texttemplateString(we,Ae,ue._d3locale,Ee,ge,De)}var Re=ge.tp||ye.textposition,Ie=j(ge,ye),Be=ne?ne(ge):ge.tc||ye.textfont.color;be.call(T.font,ge.tf||ye.textfont.family,Ie,Be).text(we).call(v.convertToTspans,J).call($,Re,Ie,ge.mrc)}else be.remove()})}},T.selectedTextStyle=function(ce,ye){if(ce.size()&&ye.selectedpoints){var J=T.makeSelectedTextStyleFns(ye);ce.each(function(ne){var de=l.select(this),xe=J.selectedTextColorFn(ne),ue=ne.tp||ye.textposition,ge=j(ne,ye);p.fill(de,xe);var be=h.traceIs(ye,"bar-like");$(de,ue,ge,ne.mrc2||ne.mrc,be)})}},T.smoothopen=function(ce,ye){if(ce.length<3)return"M"+ce.join("L");var J,ne="M"+ce[0],de=[];for(J=1;J=be||at>=ke&&at<=be)&&(lt<=Ae&<>=we||lt>=Ae&<<=we)&&(ce=[at,lt])}return ce}T.steps=function(ce){var ye=L[ce]||q;return function(J){for(var ne="M"+E(J[0][0])+","+W(J[0][1]),de=J.length,xe=1;xe=1e4&&(T.savedBBoxes={},V=0),J&&(T.savedBBoxes[J]=De),V++,f.extendFlat({},De)},T.setClipUrl=function(ce,ye,J){ce.attr("clip-path",ee(ye,J))},T.getTranslate=function(ce){var ye=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(J,ne,de){return[ne,de].join(" ")}).split(" ");return{x:+ye[0]||0,y:+ye[1]||0}},T.setTranslate=function(ce,ye,J){var ne=ce.attr?"attr":"getAttribute",de=ce.attr?"attr":"setAttribute",xe=ce[ne]("transform")||"";return ye=ye||0,J=J||0,xe=xe.replace(/(\btranslate\(.*?\);?)/,"").trim(),xe=(xe+=y(ye,J)).trim(),ce[de]("transform",xe),xe},T.getScale=function(ce){var ye=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(J,ne,de){return[ne,de].join(" ")}).split(" ");return{x:+ye[0]||1,y:+ye[1]||1}},T.setScale=function(ce,ye,J){var ne=ce.attr?"attr":"getAttribute",de=ce.attr?"attr":"setAttribute",xe=ce[ne]("transform")||"";return ye=ye||1,J=J||1,xe=xe.replace(/(\bscale\(.*?\);?)/,"").trim(),xe=(xe+="scale("+ye+","+J+")").trim(),ce[de]("transform",xe),xe};var U=/\s*sc.*/;T.setPointGroupScale=function(ce,ye,J){if(ye=ye||1,J=J||1,ce){var ne=ye===1&&J===1?"":"scale("+ye+","+J+")";ce.each(function(){var de=(this.getAttribute("transform")||"").replace(U,"");de=(de+=ne).trim(),this.setAttribute("transform",de)})}};var Q=/translate\([^)]*\)\s*$/;function Y(ce,ye){var J;return ce&&(J=ce.mf),J===void 0&&(J=ye.marker&&ye.marker.standoff||0),ye._geo||ye._xA?J:-J}T.setTextPointsScale=function(ce,ye,J){ce&&ce.each(function(){var ne,de=l.select(this),xe=de.select("text");if(xe.node()){var ue=parseFloat(xe.attr("x")||0),ge=parseFloat(xe.attr("y")||0),be=(de.attr("transform")||"").match(Q);ne=ye===1&&J===1?[]:[y(ue,ge),"scale("+ye+","+J+")",y(-ue,-ge)],be&&ne.push(be),de.attr("transform",ne.join(""))}})},T.getMarkerStandoff=Y;var Z,X,re,ie,le,se,pe=Math.atan2,Te=Math.cos,Se=Math.sin;function Oe(ce,ye){var J=ye[0],ne=ye[1];return[J*Te(ce)-ne*Se(ce),J*Se(ce)+ne*Te(ce)]}function Me(ce,ye){var J,ne,de=ce.ma;de===void 0&&(de=ye.marker.angle||0);var xe=ye.marker.angleref;if(xe==="previous"||xe==="north"){if(ye._geo){var ue=ye._geo.project(ce.lonlat);J=ue[0],ne=ue[1]}else{var ge=ye._xA,be=ye._yA;if(!ge||!be)return 90;J=ge.c2p(ce.x),ne=be.c2p(ce.y)}if(ye._geo){var we,ke=ce.lonlat[0],Ae=ce.lonlat[1],Ee=ye._geo.project([ke,Ae+1e-5]),De=ye._geo.project([ke+1e-5,Ae]),Re=pe(De[1]-ne,De[0]-J),Ie=pe(Ee[1]-ne,Ee[0]-J);if(xe==="north")we=de/180*Math.PI;else if(xe==="previous"){var Be=ke/180*Math.PI,Ue=Ae/180*Math.PI,qe=Z/180*Math.PI,Ye=X/180*Math.PI,at=qe-Be,lt=Te(Ye)*Se(at),ct=Se(Ye)*Te(Ue)-Te(Ye)*Se(Ue)*Te(at);we=-pe(lt,ct)-Math.PI,Z=ke,X=Ae}var bt=Oe(Re,[Te(we),0]),ze=Oe(Ie,[Se(we),0]);de=pe(bt[1]+ze[1],bt[0]+ze[0])/Math.PI*180,xe!=="previous"||se===ye.uid&&ce.i===le+1||(de=null)}if(xe==="previous"&&!ye._geo)if(se===ye.uid&&ce.i===le+1&&c(J)&&c(ne)){var Ne=J-re,Qe=ne-ie,it=ye.line&&ye.line.shape||"",kt=it.slice(it.length-1);kt==="h"&&(Qe=0),kt==="v"&&(Ne=0),de+=pe(Qe,Ne)/Math.PI*180+90}else de=null}return re=J,ie=ne,le=ce.i,se=ye.uid,de}T.getMarkerAngle=Me},90998:function(o,a,n){var l,f,s,c,d=n(95616),h=n(39898).round,p="M0,0Z",m=Math.sqrt(2),y=Math.sqrt(3),v=Math.PI,g=Math.cos,b=Math.sin;function x(w){return w===null}function _(w,k,T){if(!(w&&w%360!=0||k))return T;if(s===w&&c===k&&l===T)return f;function M(N,E){var W=g(N),G=b(N),L=E[0],q=E[1]+(k||0);return[L*W-q*G,L*G+q*W]}s=w,c=k,l=T;for(var S=w/180*v,C=0,P=0,D=d(T),O="",R=0;R0,b=d._context.staticPlot;h.each(function(x){var _,w=x[0].trace,k=w.error_x||{},T=w.error_y||{};w.ids&&(_=function(P){return P.id});var M=c.hasMarkers(w)&&w.marker.maxdisplayed>0;T.visible||k.visible||(x=[]);var S=l.select(this).selectAll("g.errorbar").data(x,_);if(S.exit().remove(),x.length){k.visible||S.selectAll("path.xerror").remove(),T.visible||S.selectAll("path.yerror").remove(),S.style("opacity",1);var C=S.enter().append("g").classed("errorbar",!0);g&&C.style("opacity",0).transition().duration(m.duration).style("opacity",1),s.setClipUrl(S,p.layerClipId,d),S.each(function(P){var D=l.select(this),O=function($,j,N){var E={x:j.c2p($.x),y:N.c2p($.y)};return $.yh!==void 0&&(E.yh=N.c2p($.yh),E.ys=N.c2p($.ys),f(E.ys)||(E.noYS=!0,E.ys=N.c2p($.ys,!0))),$.xh!==void 0&&(E.xh=j.c2p($.xh),E.xs=j.c2p($.xs),f(E.xs)||(E.noXS=!0,E.xs=j.c2p($.xs,!0))),E}(P,y,v);if(!M||P.vis){var R,F=D.select("path.yerror");if(T.visible&&f(O.x)&&f(O.yh)&&f(O.ys)){var A=T.width;R="M"+(O.x-A)+","+O.yh+"h"+2*A+"m-"+A+",0V"+O.ys,O.noYS||(R+="m-"+A+",0h"+2*A),F.size()?g&&(F=F.transition().duration(m.duration).ease(m.easing)):F=D.append("path").style("vector-effect",b?"none":"non-scaling-stroke").classed("yerror",!0),F.attr("d",R)}else F.remove();var z=D.select("path.xerror");if(k.visible&&f(O.y)&&f(O.xh)&&f(O.xs)){var B=(k.copy_ystyle?T:k).width;R="M"+O.xh+","+(O.y-B)+"v"+2*B+"m0,-"+B+"H"+O.xs,O.noXS||(R+="m0,-"+B+"v"+2*B),z.size()?g&&(z=z.transition().duration(m.duration).ease(m.easing)):z=D.append("path").style("vector-effect",b?"none":"non-scaling-stroke").classed("xerror",!0),z.attr("d",R)}else z.remove()}})}})}},62662:function(o,a,n){var l=n(39898),f=n(7901);o.exports=function(s){s.each(function(c){var d=c[0].trace,h=d.error_y||{},p=d.error_x||{},m=l.select(this);m.selectAll("path.yerror").style("stroke-width",h.thickness+"px").call(f.stroke,h.color),p.copy_ystyle&&(p=h),m.selectAll("path.xerror").style("stroke-width",p.thickness+"px").call(f.stroke,p.color)})}},77914:function(o,a,n){var l=n(41940),f=n(528).hoverlabel,s=n(1426).extendFlat;o.exports={hoverlabel:{bgcolor:s({},f.bgcolor,{arrayOk:!0}),bordercolor:s({},f.bordercolor,{arrayOk:!0}),font:l({arrayOk:!0,editType:"none"}),align:s({},f.align,{arrayOk:!0}),namelength:s({},f.namelength,{arrayOk:!0}),editType:"none"}}},30732:function(o,a,n){var l=n(71828),f=n(73972);function s(c,d,h,p){p=p||l.identity,Array.isArray(c)&&(d[0][h]=p(c))}o.exports=function(c){var d=c.calcdata,h=c._fullLayout;function p(b){return function(x){return l.coerceHoverinfo({hoverinfo:x},{_module:b._module},h)}}for(var m=0;m=0&&y.indexde[0]._length||pt<0||pt>xe[0]._length)return b.unhoverRaw(ie,le)}else ut="xpx"in le?le.xpx:de[0]._length/2,pt="ypx"in le?le.ypx:xe[0]._length/2;if(le.pointerX=ut+de[0]._offset,le.pointerY=pt+xe[0]._offset,De="xval"in le?w.flat(Se,le.xval):w.p2c(de,ut),Re="yval"in le?w.flat(Se,le.yval):w.p2c(xe,pt),!f(De[0])||!f(Re[0]))return c.warn("Fx.hover failed",le,ie),b.unhoverRaw(ie,le)}var zt=1/0;function wt(Zt,pn){for(Be=0;BeNe&&(Qe.splice(0,Ne),zt=Qe[0].distance),ye&&Ee!==0&&Qe.length===0){ze.distance=Ee,ze.index=!1;var Pn=qe._module.hoverPoints(ze,ct,bt,"closest",{hoverLayer:Oe._hoverlayer});if(Pn&&(Pn=Pn.filter(function(lr){return lr.spikeDistance<=Ee})),Pn&&Pn.length){var xn,Dn=Pn.filter(function(lr){return lr.xa.showspikes&&lr.xa.spikesnap!=="hovered data"});if(Dn.length){var tr=Dn[0];f(tr.x0)&&f(tr.y0)&&(xn=_e(tr),(!kt.vLinePoint||kt.vLinePoint.spikeDistance>xn.spikeDistance)&&(kt.vLinePoint=xn))}var ia=Pn.filter(function(lr){return lr.ya.showspikes&&lr.ya.spikesnap!=="hovered data"});if(ia.length){var fa=ia[0];f(fa.x0)&&f(fa.y0)&&(xn=_e(fa),(!kt.hLinePoint||kt.hLinePoint.spikeDistance>xn.spikeDistance)&&(kt.hLinePoint=xn))}}}}}function ve(Zt,pn,nn){for(var Kt,Cn=null,_n=1/0,Pn=0;Pn0&&Math.abs(Zt.distance)Ft-1;Vt--)gt(Qe[Vt]);Qe=St,Ze()}var ht=ie._hoverdata,yt=[],qt=te(ie),Et=ee(ie);for(Ie=0;Ie1||Qe.length>1)||ke==="closest"&&Je&&Qe.length>1,cn=g.combine(Oe.plot_bgcolor||g.background,Oe.paper_bgcolor),ln=j(Qe,{gd:ie,hovermode:ke,rotateLabels:tn,bgColor:cn,container:Oe._hoverlayer,outerContainer:Oe._paper.node(),commonLabelOpts:Oe.hoverlabel,hoverdistance:Oe.hoverdistance}),an=ln.hoverLabels;if(w.isUnifiedHover(ke)||(function(Zt,pn,nn,Kt){var Cn,_n,Pn,xn,Dn,tr,ia,fa=pn?"xa":"ya",lr=pn?"ya":"xa",ni=0,Ar=1,ur=Zt.size(),kr=new Array(ur),oa=0,On=Kt.minX,on=Kt.maxX,$n=Kt.minY,Pr=Kt.maxY,Ln=function(Tn){return Tn*nn._invScaleX},Bn=function(Tn){return Tn*nn._invScaleY};function jn(Tn){var Dr=Tn[0],Pa=Tn[Tn.length-1];if(_n=Dr.pmin-Dr.pos-Dr.dp+Dr.size,Pn=Pa.pos+Pa.dp+Pa.size-Dr.pmax,_n>.01){for(Dn=Tn.length-1;Dn>=0;Dn--)Tn[Dn].dp+=_n;Cn=!1}if(!(Pn<.01)){if(_n<-.01){for(Dn=Tn.length-1;Dn>=0;Dn--)Tn[Dn].dp-=Pn;Cn=!1}if(Cn){var Br=0;for(xn=0;xnDr.pmax&&Br++;for(xn=Tn.length-1;xn>=0&&!(Br<=0);xn--)(tr=Tn[xn]).pos>Dr.pmax-1&&(tr.del=!0,Br--);for(xn=0;xn=0;Dn--)Tn[Dn].dp-=Pn;for(xn=Tn.length-1;xn>=0&&!(Br<=0);xn--)(tr=Tn[xn]).pos+tr.dp+tr.size>Dr.pmax&&(tr.del=!0,Br--)}}}for(Zt.each(function(Tn){var Dr=Tn[fa],Pa=Tn[lr],Br=Dr._id.charAt(0)==="x",Ni=Dr.range;oa===0&&Ni&&Ni[0]>Ni[1]!==Br&&(Ar=-1);var ji=0,vi=Br?nn.width:nn.height;if(nn.hovermode==="x"||nn.hovermode==="y"){var ri,Xa,yi=E(Tn,pn),fs=Tn.anchor,rl=fs==="end"?-1:1;if(fs==="middle")Xa=(ri=Tn.crossPos+(Br?Bn(yi.y-Tn.by/2):Ln(Tn.bx/2+Tn.tx2width/2)))+(Br?Bn(Tn.by):Ln(Tn.bx));else if(Br)Xa=(ri=Tn.crossPos+Bn(R+yi.y)-Bn(Tn.by/2-R))+Bn(Tn.by);else{var ds=Ln(rl*R+yi.x),lo=ds+Ln(rl*Tn.bx);ri=Tn.crossPos+Math.min(ds,lo),Xa=Tn.crossPos+Math.max(ds,lo)}Br?$n!==void 0&&Pr!==void 0&&Math.min(Xa,Pr)-Math.max(ri,$n)>1&&(Pa.side==="left"?(ji=Pa._mainLinePosition,vi=nn.width):vi=Pa._mainLinePosition):On!==void 0&&on!==void 0&&Math.min(Xa,on)-Math.max(ri,On)>1&&(Pa.side==="top"?(ji=Pa._mainLinePosition,vi=nn.height):vi=Pa._mainLinePosition)}kr[oa++]=[{datum:Tn,traceIndex:Tn.trace.index,dp:0,pos:Tn.pos,posref:Tn.posref,size:Tn.by*(Br?P:1)/2,pmin:ji,pmax:vi}]}),kr.sort(function(Tn,Dr){return Tn[0].posref-Dr[0].posref||Ar*(Dr[0].traceIndex-Tn[0].traceIndex)});!Cn&&ni<=ur;){for(ni++,Cn=!0,xn=0;xn.01&&br.pmin===Mr.pmin&&br.pmax===Mr.pmax){for(Dn=Lr.length-1;Dn>=0;Dn--)Lr[Dn].dp+=_n;for(Un.push.apply(Un,Lr),kr.splice(xn+1,1),ia=0,Dn=Un.length-1;Dn>=0;Dn--)ia+=Un[Dn].dp;for(Pn=ia/Un.length,Dn=Un.length-1;Dn>=0;Dn--)Un[Dn].dp-=Pn;Cn=!1}else xn++}kr.forEach(jn)}for(xn=kr.length-1;xn>=0;xn--){var ja=kr[xn];for(Dn=ja.length-1;Dn>=0;Dn--){var _a=ja[Dn],la=_a.datum;la.offset=_a.dp,la.del=_a.del}}}(an,tn,Oe,ln.commonLabelBoundingBox),W(an,tn,Oe._invScaleX,Oe._invScaleY)),Te&&Te.tagName){var sn=_.getComponentMethod("annotations","hasClickToShow")(ie,yt);y(l.select(Te),sn?"pointer":"")}Te&&!pe&&function(Zt,pn,nn){if(!nn||nn.length!==Zt._hoverdata.length)return!0;for(var Kt=nn.length-1;Kt>=0;Kt--){var Cn=nn[Kt],_n=Zt._hoverdata[Kt];if(Cn.curveNumber!==_n.curveNumber||String(Cn.pointNumber)!==String(_n.pointNumber)||String(Cn.pointNumbers)!==String(_n.pointNumbers))return!0}return!1}(ie,0,ht)&&(ht&&ie.emit("plotly_unhover",{event:le,points:ht}),ie.emit("plotly_hover",{event:le,points:ie._hoverdata,xaxes:de,yaxes:xe,xvals:De,yvals:Re}))})(Q,Y,Z,X,re)})},a.loneHover=function(Q,Y){var Z=!0;Array.isArray(Q)||(Z=!1,Q=[Q]);var X=Y.gd,re=te(X),ie=ee(X),le=j(Q.map(function(Te){var Se=Te._x0||Te.x0||Te.x||0,Oe=Te._x1||Te.x1||Te.x||0,Me=Te._y0||Te.y0||Te.y||0,ce=Te._y1||Te.y1||Te.y||0,ye=Te.eventData;if(ye){var J=Math.min(Se,Oe),ne=Math.max(Se,Oe),de=Math.min(Me,ce),xe=Math.max(Me,ce),ue=Te.trace;if(_.traceIs(ue,"gl3d")){var ge=X._fullLayout[ue.scene]._scene.container,be=ge.offsetLeft,we=ge.offsetTop;J+=be,ne+=be,de+=we,xe+=we}ye.bbox={x0:J+ie,x1:ne+ie,y0:de+re,y1:xe+re},Y.inOut_bbox&&Y.inOut_bbox.push(ye.bbox)}else ye=!1;return{color:Te.color||g.defaultLine,x0:Te.x0||Te.x||0,x1:Te.x1||Te.x||0,y0:Te.y0||Te.y||0,y1:Te.y1||Te.y||0,xLabel:Te.xLabel,yLabel:Te.yLabel,zLabel:Te.zLabel,text:Te.text,name:Te.name,idealAlign:Te.idealAlign,borderColor:Te.borderColor,fontFamily:Te.fontFamily,fontSize:Te.fontSize,fontColor:Te.fontColor,nameLength:Te.nameLength,textAlign:Te.textAlign,trace:Te.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:Te.hovertemplate||!1,hovertemplateLabels:Te.hovertemplateLabels||!1,eventData:ye}}),{gd:X,hovermode:"closest",rotateLabels:!1,bgColor:Y.bgColor||g.background,container:l.select(Y.container),outerContainer:Y.outerContainer||Y.container}).hoverLabels,se=0,pe=0;return le.sort(function(Te,Se){return Te.y0-Se.y0}).each(function(Te,Se){var Oe=Te.y0-Te.by/2;Te.offset=Oe-5([\s\S]*)<\/extra>/;function j(Q,Y){var Z=Y.gd,X=Z._fullLayout,re=Y.hovermode,ie=Y.rotateLabels,le=Y.bgColor,se=Y.container,pe=Y.outerContainer,Te=Y.commonLabelOpts||{};if(Q.length===0)return[[]];var Se=Y.fontFamily||k.HOVERFONT,Oe=Y.fontSize||k.HOVERFONTSIZE,Me=Q[0],ce=Me.xa,ye=Me.ya,J=re.charAt(0),ne=J+"Label",de=Me[ne];if(de===void 0&&ce.type==="multicategory")for(var xe=0;xeX.width-jt?(ht=X.width-jt,Ft.attr("d","M"+(jt-R)+",0L"+jt+","+Et+R+"v"+Et+(2*F+qt.height)+"H-"+jt+"V"+Et+R+"H"+(jt-2*R)+"Z")):Ft.attr("d","M0,0L"+R+","+Et+R+"H"+jt+"v"+Et+(2*F+qt.height)+"H-"+jt+"V"+Et+R+"H-"+R+"Z"),Be.minX=ht-jt,Be.maxX=ht+jt,ce.side==="top"?(Be.minY=yt-(2*F+qt.height),Be.maxY=yt-F):(Be.minY=yt+F,Be.maxY=yt+(2*F+qt.height))}else{var Tt,Ot,At;ye.side==="right"?(Tt="start",Ot=1,At="",ht=ce._offset+ce._length):(Tt="end",Ot=-1,At="-",ht=ce._offset),yt=ye._offset+(Me.y0+Me.y1)/2,Vt.attr("text-anchor",Tt),Ft.attr("d","M0,0L"+At+R+","+R+"V"+(F+qt.height/2)+"h"+At+(2*F+qt.width)+"V-"+(F+qt.height/2)+"H"+At+R+"V-"+R+"Z"),Be.minY=yt-(F+qt.height/2),Be.maxY=yt+(F+qt.height/2),ye.side==="right"?(Be.minX=ht+R,Be.maxX=ht+R+(2*F+qt.width)):(Be.minX=ht-R-(2*F+qt.width),Be.maxX=ht-R);var Lt,Rt=qt.height/2,$t=ge-qt.top-Rt,Yt="clip"+X._uid+"commonlabel"+ye._id;if(ht=0?pt:It+wt=0?It:nt+wt=0?Je:ut+ve=0?ut:st+ve=0,tt.idealAlign!=="top"&&tn||!cn?tn?(Rt+=Yt/2,tt.anchor="start"):tt.anchor="middle":(Rt-=Yt/2,tt.anchor="end"),tt.crossPos=Rt;else{if(tt.pos=Rt,tn=Lt+$t/2+ln<=be,cn=Lt-$t/2-ln>=0,tt.idealAlign!=="left"&&tn||!cn)if(tn)Lt+=$t/2,tt.anchor="start";else{tt.anchor="middle";var an=ln/2,sn=Lt+an-be,Zt=Lt-an;sn>0&&(Lt-=sn),Zt<0&&(Lt+=-Zt)}else Lt-=$t/2,tt.anchor="end";tt.crossPos=Lt}Et.attr("text-anchor",tt.anchor),Tt&&jt.attr("text-anchor",tt.anchor),Ft.attr("transform",d(Lt,Rt)+(ie?h(S):""))}),{hoverLabels:mt,commonLabelBoundingBox:Be}}function N(Q,Y,Z,X,re,ie){var le="",se="";Q.nameOverride!==void 0&&(Q.name=Q.nameOverride),Q.name&&(Q.trace._meta&&(Q.name=c.templateString(Q.name,Q.trace._meta)),le=H(Q.name,Q.nameLength));var pe=Z.charAt(0),Te=pe==="x"?"y":"x";Q.zLabel!==void 0?(Q.xLabel!==void 0&&(se+="x: "+Q.xLabel+"
"),Q.yLabel!==void 0&&(se+="y: "+Q.yLabel+"
"),Q.trace.type!=="choropleth"&&Q.trace.type!=="choroplethmapbox"&&(se+=(se?"z: ":"")+Q.zLabel)):Y&&Q[pe+"Label"]===re?se=Q[Te+"Label"]||"":Q.xLabel===void 0?Q.yLabel!==void 0&&Q.trace.type!=="scattercarpet"&&(se=Q.yLabel):se=Q.yLabel===void 0?Q.xLabel:"("+Q.xLabel+", "+Q.yLabel+")",!Q.text&&Q.text!==0||Array.isArray(Q.text)||(se+=(se?"
":"")+Q.text),Q.extraText!==void 0&&(se+=(se?"
":"")+Q.extraText),ie&&se===""&&!Q.hovertemplate&&(le===""&&ie.remove(),se=le);var Se=Q.hovertemplate||!1;if(Se){var Oe=Q.hovertemplateLabels||Q;Q[pe+"Label"]!==re&&(Oe[pe+"other"]=Oe[pe+"Val"],Oe[pe+"otherLabel"]=Oe[pe+"Label"]),se=(se=c.hovertemplateString(Se,Oe,X._d3locale,Q.eventData[0]||{},Q.trace._meta)).replace($,function(Me,ce){return le=H(ce,Q.nameLength),""})}return[se,le]}function E(Q,Y){var Z=0,X=Q.offset;return Y&&(X*=-O,Z=Q.offset*D),{x:Z,y:X}}function W(Q,Y,Z,X){var re=function(le){return le*Z},ie=function(le){return le*X};Q.each(function(le){var se=l.select(this);if(le.del)return se.remove();var pe,Te,Se,Oe,Me=se.select("text.nums"),ce=le.anchor,ye=ce==="end"?-1:1,J=(Oe=(Se=(Te={start:1,end:-1,middle:0}[(pe=le).anchor])*(R+F))+Te*(pe.txwidth+F),pe.anchor==="middle"&&(Se-=pe.tx2width/2,Oe+=pe.txwidth/2+F),{alignShift:Te,textShiftX:Se,text2ShiftX:Oe}),ne=E(le,Y),de=ne.x,xe=ne.y,ue=ce==="middle";se.select("path").attr("d",ue?"M-"+re(le.bx/2+le.tx2width/2)+","+ie(xe-le.by/2)+"h"+re(le.bx)+"v"+ie(le.by)+"h-"+re(le.bx)+"Z":"M0,0L"+re(ye*R+de)+","+ie(R+xe)+"v"+ie(le.by/2-R)+"h"+re(ye*le.bx)+"v-"+ie(le.by)+"H"+re(ye*R+de)+"V"+ie(xe-R)+"Z");var ge=de+J.textShiftX,be=xe+le.ty0-le.by/2+F,we=le.textAlign||"auto";we!=="auto"&&(we==="left"&&ce!=="start"?(Me.attr("text-anchor","start"),ge=ue?-le.bx/2-le.tx2width/2+F:-le.bx-F):we==="right"&&ce!=="end"&&(Me.attr("text-anchor","end"),ge=ue?le.bx/2-le.tx2width/2-F:le.bx+F)),Me.call(m.positionText,re(ge),ie(be)),le.tx2width&&(se.select("text.name").call(m.positionText,re(J.text2ShiftX+J.alignShift*F+de),ie(xe+le.ty0-le.by/2+F)),se.select("rect").call(v.setRect,re(J.text2ShiftX+(J.alignShift-1)*le.tx2width/2+de),ie(xe-le.by/2-1),re(le.tx2width),ie(le.by+2)))})}function G(Q,Y){var Z=Q.index,X=Q.trace||{},re=Q.cd[0],ie=Q.cd[Z]||{};function le(Me){return Me||f(Me)&&Me===0}var se=Array.isArray(Z)?function(Me,ce){var ye=c.castOption(re,Z,Me);return le(ye)?ye:c.extractOption({},X,"",ce)}:function(Me,ce){return c.extractOption(ie,X,Me,ce)};function pe(Me,ce,ye){var J=se(ce,ye);le(J)&&(Q[Me]=J)}if(pe("hoverinfo","hi","hoverinfo"),pe("bgcolor","hbg","hoverlabel.bgcolor"),pe("borderColor","hbc","hoverlabel.bordercolor"),pe("fontFamily","htf","hoverlabel.font.family"),pe("fontSize","hts","hoverlabel.font.size"),pe("fontColor","htc","hoverlabel.font.color"),pe("nameLength","hnl","hoverlabel.namelength"),pe("textAlign","hta","hoverlabel.align"),Q.posref=Y==="y"||Y==="closest"&&X.orientation==="h"?Q.xa._offset+(Q.x0+Q.x1)/2:Q.ya._offset+(Q.y0+Q.y1)/2,Q.x0=c.constrain(Q.x0,0,Q.xa._length),Q.x1=c.constrain(Q.x1,0,Q.xa._length),Q.y0=c.constrain(Q.y0,0,Q.ya._length),Q.y1=c.constrain(Q.y1,0,Q.ya._length),Q.xLabelVal!==void 0&&(Q.xLabel="xLabel"in Q?Q.xLabel:x.hoverLabelText(Q.xa,Q.xLabelVal,X.xhoverformat),Q.xVal=Q.xa.c2d(Q.xLabelVal)),Q.yLabelVal!==void 0&&(Q.yLabel="yLabel"in Q?Q.yLabel:x.hoverLabelText(Q.ya,Q.yLabelVal,X.yhoverformat),Q.yVal=Q.ya.c2d(Q.yLabelVal)),Q.zLabelVal!==void 0&&Q.zLabel===void 0&&(Q.zLabel=String(Q.zLabelVal)),!(isNaN(Q.xerr)||Q.xa.type==="log"&&Q.xerr<=0)){var Te=x.tickText(Q.xa,Q.xa.c2l(Q.xerr),"hover").text;Q.xerrneg!==void 0?Q.xLabel+=" +"+Te+" / -"+x.tickText(Q.xa,Q.xa.c2l(Q.xerrneg),"hover").text:Q.xLabel+=" ± "+Te,Y==="x"&&(Q.distance+=1)}if(!(isNaN(Q.yerr)||Q.ya.type==="log"&&Q.yerr<=0)){var Se=x.tickText(Q.ya,Q.ya.c2l(Q.yerr),"hover").text;Q.yerrneg!==void 0?Q.yLabel+=" +"+Se+" / -"+x.tickText(Q.ya,Q.ya.c2l(Q.yerrneg),"hover").text:Q.yLabel+=" ± "+Se,Y==="y"&&(Q.distance+=1)}var Oe=Q.hoverinfo||Q.trace.hoverinfo;return Oe&&Oe!=="all"&&((Oe=Array.isArray(Oe)?Oe:Oe.split("+")).indexOf("x")===-1&&(Q.xLabel=void 0),Oe.indexOf("y")===-1&&(Q.yLabel=void 0),Oe.indexOf("z")===-1&&(Q.zLabel=void 0),Oe.indexOf("text")===-1&&(Q.text=void 0),Oe.indexOf("name")===-1&&(Q.name=void 0)),Q}function L(Q,Y,Z){var X,re,ie=Z.container,le=Z.fullLayout,se=le._size,pe=Z.event,Te=!!Y.hLinePoint,Se=!!Y.vLinePoint;if(ie.selectAll(".spikeline").remove(),Se||Te){var Oe=g.combine(le.plot_bgcolor,le.paper_bgcolor);if(Te){var Me,ce,ye=Y.hLinePoint;X=ye&&ye.xa,(re=ye&&ye.ya).spikesnap==="cursor"?(Me=pe.pointerX,ce=pe.pointerY):(Me=X._offset+ye.x,ce=re._offset+ye.y);var J,ne,de=s.readability(ye.color,Oe)<1.5?g.contrast(Oe):ye.color,xe=re.spikemode,ue=re.spikethickness,ge=re.spikecolor||de,be=x.getPxPosition(Q,re);if(xe.indexOf("toaxis")!==-1||xe.indexOf("across")!==-1){if(xe.indexOf("toaxis")!==-1&&(J=be,ne=Me),xe.indexOf("across")!==-1){var we=re._counterDomainMin,ke=re._counterDomainMax;re.anchor==="free"&&(we=Math.min(we,re.position),ke=Math.max(ke,re.position)),J=se.l+we*se.w,ne=se.l+ke*se.w}ie.insert("line",":first-child").attr({x1:J,x2:ne,y1:ce,y2:ce,"stroke-width":ue,stroke:ge,"stroke-dasharray":v.dashStyle(re.spikedash,ue)}).classed("spikeline",!0).classed("crisp",!0),ie.insert("line",":first-child").attr({x1:J,x2:ne,y1:ce,y2:ce,"stroke-width":ue+2,stroke:Oe}).classed("spikeline",!0).classed("crisp",!0)}xe.indexOf("marker")!==-1&&ie.insert("circle",":first-child").attr({cx:be+(re.side!=="right"?ue:-ue),cy:ce,r:ue,fill:ge}).classed("spikeline",!0)}if(Se){var Ae,Ee,De=Y.vLinePoint;X=De&&De.xa,re=De&&De.ya,X.spikesnap==="cursor"?(Ae=pe.pointerX,Ee=pe.pointerY):(Ae=X._offset+De.x,Ee=re._offset+De.y);var Re,Ie,Be=s.readability(De.color,Oe)<1.5?g.contrast(Oe):De.color,Ue=X.spikemode,qe=X.spikethickness,Ye=X.spikecolor||Be,at=x.getPxPosition(Q,X);if(Ue.indexOf("toaxis")!==-1||Ue.indexOf("across")!==-1){if(Ue.indexOf("toaxis")!==-1&&(Re=at,Ie=Ee),Ue.indexOf("across")!==-1){var lt=X._counterDomainMin,ct=X._counterDomainMax;X.anchor==="free"&&(lt=Math.min(lt,X.position),ct=Math.max(ct,X.position)),Re=se.t+(1-ct)*se.h,Ie=se.t+(1-lt)*se.h}ie.insert("line",":first-child").attr({x1:Ae,x2:Ae,y1:Re,y2:Ie,"stroke-width":qe,stroke:Ye,"stroke-dasharray":v.dashStyle(X.spikedash,qe)}).classed("spikeline",!0).classed("crisp",!0),ie.insert("line",":first-child").attr({x1:Ae,x2:Ae,y1:Re,y2:Ie,"stroke-width":qe+2,stroke:Oe}).classed("spikeline",!0).classed("crisp",!0)}Ue.indexOf("marker")!==-1&&ie.insert("circle",":first-child").attr({cx:Ae,cy:at-(X.side!=="top"?qe:-qe),r:qe,fill:Ye}).classed("spikeline",!0)}}}function q(Q,Y){return!Y}function H(Q,Y){return m.plainText(Q||"",{len:Y,allowedTags:["br","sub","sup","b","i","em"]})}function V(Q,Y,Z){var X=Y[Q+"a"],re=Y[Q+"Val"],ie=Y.cd[0];if(X.type==="category"||X.type==="multicategory")re=X._categoriesMap[re];else if(X.type==="date"){var le=Y.trace[Q+"periodalignment"];if(le){var se=Y.cd[Y.index],pe=se[Q+"Start"];pe===void 0&&(pe=se[Q]);var Te=se[Q+"End"];Te===void 0&&(Te=se[Q]);var Se=Te-pe;le==="end"?re+=Se:le==="middle"&&(re+=Se/2)}re=X.d2c(re)}return ie&&ie.t&&ie.t.posLetter===X._id&&(Z.boxmode!=="group"&&Z.violinmode!=="group"||(re+=ie.t.dPos)),re}function te(Q){return Q.offsetTop+Q.clientTop}function ee(Q){return Q.offsetLeft+Q.clientLeft}function U(Q,Y){var Z=Q._fullLayout,X=Y.getBoundingClientRect(),re=X.left,ie=X.top,le=re+X.width,se=ie+X.height,pe=c.apply3DTransform(Z._invTransform)(re,ie),Te=c.apply3DTransform(Z._invTransform)(le,se),Se=pe[0],Oe=pe[1],Me=Te[0],ce=Te[1];return{x:Se,y:Oe,width:Me-Se,height:ce-Oe,top:Math.min(Oe,ce),left:Math.min(Se,Me),right:Math.max(Se,Me),bottom:Math.max(Oe,ce)}}},38048:function(o,a,n){var l=n(71828),f=n(7901),s=n(23469).isUnifiedHover;o.exports=function(c,d,h,p){p=p||{};var m=d.legend;function y(v){p.font[v]||(p.font[v]=m?d.legend.font[v]:d.font[v])}d&&s(d.hovermode)&&(p.font||(p.font={}),y("size"),y("family"),y("color"),m?(p.bgcolor||(p.bgcolor=f.combine(d.legend.bgcolor,d.paper_bgcolor)),p.bordercolor||(p.bordercolor=d.legend.bordercolor)):p.bgcolor||(p.bgcolor=d.paper_bgcolor)),h("hoverlabel.bgcolor",p.bgcolor),h("hoverlabel.bordercolor",p.bordercolor),h("hoverlabel.namelength",p.namelength),l.coerceFont(h,"hoverlabel.font",p.font),h("hoverlabel.align",p.align)}},98212:function(o,a,n){var l=n(71828),f=n(528);o.exports=function(s,c){function d(h,p){return c[h]!==void 0?c[h]:l.coerce(s,c,f,h,p)}return d("clickmode"),d("hovermode")}},30211:function(o,a,n){var l=n(39898),f=n(71828),s=n(28569),c=n(23469),d=n(528),h=n(88335);o.exports={moduleType:"component",name:"fx",constants:n(26675),schema:{layout:d},attributes:n(77914),layoutAttributes:d,supplyLayoutGlobalDefaults:n(22774),supplyDefaults:n(54268),supplyLayoutDefaults:n(34938),calc:n(30732),getDistanceFunction:c.getDistanceFunction,getClosest:c.getClosest,inbox:c.inbox,quadrature:c.quadrature,appendArrayPointValue:c.appendArrayPointValue,castHoverOption:function(p,m,y){return f.castOption(p,m,"hoverlabel."+y)},castHoverinfo:function(p,m,y){return f.castOption(p,y,"hoverinfo",function(v){return f.coerceHoverinfo({hoverinfo:v},{_module:p._module},m)})},hover:h.hover,unhover:s.unhover,loneHover:h.loneHover,loneUnhover:function(p){var m=f.isD3Selection(p)?p:l.select(p);m.selectAll("g.hovertext").remove(),m.selectAll(".spikeline").remove()},click:n(75914)}},528:function(o,a,n){var l=n(26675),f=n(41940),s=f({editType:"none"});s.family.dflt=l.HOVERFONT,s.size.dflt=l.HOVERFONTSIZE,o.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:s,grouptitlefont:f({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},34938:function(o,a,n){var l=n(71828),f=n(528),s=n(98212),c=n(38048);o.exports=function(d,h){function p(g,b){return l.coerce(d,h,f,g,b)}s(d,h)&&(p("hoverdistance"),p("spikedistance")),p("dragmode")==="select"&&p("selectdirection");var m=h._has("mapbox"),y=h._has("geo"),v=h._basePlotModules.length;h.dragmode==="zoom"&&((m||y)&&v===1||m&&y&&v===2)&&(h.dragmode="pan"),c(d,h,p),l.coerceFont(p,"hoverlabel.grouptitlefont",h.hoverlabel.font)}},22774:function(o,a,n){var l=n(71828),f=n(38048),s=n(528);o.exports=function(c,d){f(c,d,function(h,p){return l.coerce(c,d,s,h,p)})}},83312:function(o,a,n){var l=n(71828),f=n(30587).counter,s=n(27670).Y,c=n(85555).idRegex,d=n(44467),h={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[f("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[c.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[c.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:s({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function p(v,g,b){var x=g[b+"axes"],_=Object.keys((v._splomAxes||{})[b]||{});return Array.isArray(x)?x:_.length?_:void 0}function m(v,g,b,x,_,w){var k=g(v+"gap",b),T=g("domain."+v);g(v+"side",x);for(var M=new Array(_),S=T[0],C=(T[1]-S)/(_-k),P=C*(1-k),D=0;D<_;D++){var O=S+C*D;M[w?_-1-D:D]=[O,O+P]}return M}function y(v,g,b,x,_){var w,k=new Array(b);function T(M,S){g.indexOf(S)!==-1&&x[S]===void 0?(k[M]=S,x[S]=M):k[M]=""}if(Array.isArray(v))for(w=0;w1){T||M||S||$("pattern")==="independent"&&(T=!0),P._hasSubplotGrid=T;var R,F,A=$("roworder")==="top to bottom",z=T?.2:.1,B=T?.3:.1;C&&g._splomGridDflt&&(R=g._splomGridDflt.xside,F=g._splomGridDflt.yside),P._domains={x:m("x",$,z,R,O),y:m("y",$,B,F,D,A)}}else delete g.grid}function $(j,N){return l.coerce(b,P,h,j,N)}},contentDefaults:function(v,g){var b=g.grid;if(b&&b._domains){var x,_,w,k,T,M,S,C=v.grid||{},P=g._subplots,D=b._hasSubplotGrid,O=b.rows,R=b.columns,F=b.pattern==="independent",A=b._axisMap={};if(D){var z=C.subplots||[];M=b.subplots=new Array(O);var B=1;for(x=0;x(y==="legend"?1:0));if(B===!1&&(g[y]=void 0),(B!==!1||x.uirevision)&&(w("uirevision",g.uirevision),B!==!1)){w("borderwidth");var $,j,N,E=w("orientation")==="h",W=w("yref")==="paper",G=w("xref")==="paper",L="left";if(E?($=0,l.getComponentMethod("rangeslider","isVisible")(v.xaxis)?W?(j=1.1,N="bottom"):(j=1,N="top"):W?(j=-.1,N="top"):(j=0,N="bottom")):(j=1,N="auto",G?$=1.02:($=1,L="right")),f.coerce(x,_,{x:{valType:"number",editType:"legend",min:G?-2:0,max:G?3:1,dflt:$}},"x"),f.coerce(x,_,{y:{valType:"number",editType:"legend",min:W?-2:0,max:W?3:1,dflt:j}},"y"),w("traceorder",O),p.isGrouped(g[y])&&w("tracegroupgap"),w("entrywidth"),w("entrywidthmode"),w("itemsizing"),w("itemwidth"),w("itemclick"),w("itemdoubleclick"),w("groupclick"),w("xanchor",L),w("yanchor",N),w("valign"),f.noneOrAll(x,_,["x","y"]),w("title.text")){w("title.side",E?"left":"top");var q=f.extendFlat({},k,{size:f.bigFont(k.size)});f.coerceFont(w,"title.font",q)}}}}o.exports=function(y,v,g){var b,x=g.slice(),_=v.shapes;if(_)for(b=0;b<_.length;b++){var w=_[b];if(w.showlegend){var k={_input:w._input,visible:w.visible,showlegend:w.showlegend,legend:w.legend};x.push(k)}}var T=["legend"];for(b=0;b1)}var X=q.hiddenlabels||[];if(!(V||q.showlegend&&te.length))return G.selectAll("."+H).remove(),q._topdefs.select("#"+W).remove(),s.autoMargin(N,H);var re=f.ensureSingle(G,"g",H,function(ce){V||ce.attr("pointer-events","all")}),ie=f.ensureSingleById(q._topdefs,"clipPath",W,function(ce){ce.append("rect")}),le=f.ensureSingle(re,"rect","bg",function(ce){ce.attr("shape-rendering","crispEdges")});le.call(m.stroke,L.bordercolor).call(m.fill,L.bgcolor).style("stroke-width",L.borderwidth+"px");var se,pe=f.ensureSingle(re,"g","scrollbox"),Te=L.title;L._titleWidth=0,L._titleHeight=0,Te.text?((se=f.ensureSingle(pe,"text",H+"titletext")).attr("text-anchor","start").call(p.font,Te.font).text(Te.text),z(se,pe,N,L,S)):pe.selectAll("."+H+"titletext").remove();var Se=f.ensureSingle(re,"rect","scrollbar",function(ce){ce.attr(g.scrollBarEnterAttrs).call(m.fill,g.scrollBarColor)}),Oe=pe.selectAll("g.groups").data(te);Oe.enter().append("g").attr("class","groups"),Oe.exit().remove();var Me=Oe.selectAll("g.traces").data(f.identity);Me.enter().append("g").attr("class","traces"),Me.exit().remove(),Me.style("opacity",function(ce){var ye=ce[0].trace;return c.traceIs(ye,"pie-like")?X.indexOf(ce[0].label)!==-1?.5:1:ye.visible==="legendonly"?.5:1}).each(function(){l.select(this).call(R,N,L)}).call(T,N,L).each(function(){V||l.select(this).call(A,N,H)}),f.syncOrAsync([s.previousPromises,function(){return function(ce,ye,J,ne){var de=ce._fullLayout,xe=j(ne);ne||(ne=de[xe]);var ue=de._size,ge=M.isVertical(ne),be=M.isGrouped(ne),we=ne.entrywidthmode==="fraction",ke=ne.borderwidth,Ae=2*ke,Ee=g.itemGap,De=ne.itemwidth+2*Ee,Re=2*(ke+Ee),Ie=$(ne),Be=ne.y<0||ne.y===0&&Ie==="top",Ue=ne.y>1||ne.y===1&&Ie==="bottom",qe=ne.tracegroupgap,Ye={};ne._maxHeight=Math.max(Be||Ue?de.height/2:ue.h,30);var at=0;ne._width=0,ne._height=0;var lt=function(Ge){var Ke=0,nt=0,st=Ge.title.side;return st&&(st.indexOf("left")!==-1&&(Ke=Ge._titleWidth),st.indexOf("top")!==-1&&(nt=Ge._titleHeight)),[Ke,nt]}(ne);if(ge)J.each(function(Ge){var Ke=Ge[0].height;p.setTranslate(this,ke+lt[0],ke+lt[1]+ne._height+Ke/2+Ee),ne._height+=Ke,ne._width=Math.max(ne._width,Ge[0].width)}),at=De+ne._width,ne._width+=Ee+De+Ae,ne._height+=Re,be&&(ye.each(function(Ge,Ke){p.setTranslate(this,0,Ke*ne.tracegroupgap)}),ne._height+=(ne._lgroupsLength-1)*ne.tracegroupgap);else{var ct=B(ne),bt=ne.x<0||ne.x===0&&ct==="right",ze=ne.x>1||ne.x===1&&ct==="left",Ne=Ue||Be,Qe=de.width/2;ne._maxWidth=Math.max(bt?Ne&&ct==="left"?ue.l+ue.w:Qe:ze?Ne&&ct==="right"?ue.r+ue.w:Qe:ue.w,2*De);var it=0,kt=0;J.each(function(Ge){var Ke=D(Ge,ne,De);it=Math.max(it,Ke),kt+=Ke}),at=null;var Je=0;if(be){var ut=0,pt=0,It=0;ye.each(function(){var Ge=0,Ke=0;l.select(this).selectAll("g.traces").each(function(st){var mt=D(st,ne,De),tt=st[0].height;p.setTranslate(this,lt[0],lt[1]+ke+Ee+tt/2+Ke),Ke+=tt,Ge=Math.max(Ge,mt),Ye[st[0].trace.legendgroup]=Ge});var nt=Ge+Ee;pt>0&&nt+ke+pt>ne._maxWidth?(Je=Math.max(Je,pt),pt=0,It+=ut+qe,ut=Ke):ut=Math.max(ut,Ke),p.setTranslate(this,pt,It),pt+=nt}),ne._width=Math.max(Je,pt)+ke,ne._height=It+ut+Re}else{var Mt=J.size(),zt=kt+Ae+(Mt-1)*Ee=ne._maxWidth&&(Je=Math.max(Je,Ve),ve=0,_e+=wt,ne._height+=wt,wt=0),p.setTranslate(this,lt[0]+ke+ve,lt[1]+ke+_e+Ke/2+Ee),Ve=ve+nt+Ee,ve+=st,wt=Math.max(wt,Ke)}),zt?(ne._width=ve+Ae,ne._height=wt+Re):(ne._width=Math.max(Je,Ve)+Ae,ne._height+=wt+Re)}}ne._width=Math.ceil(Math.max(ne._width+lt[0],ne._titleWidth+2*(ke+g.titlePad))),ne._height=Math.ceil(Math.max(ne._height+lt[1],ne._titleHeight+2*(ke+g.itemGap))),ne._effHeight=Math.min(ne._height,ne._maxHeight);var We=ce._context.edits,Ze=We.legendText||We.legendPosition;J.each(function(Ge){var Ke=l.select(this).select("."+xe+"toggle"),nt=Ge[0].height,st=Ge[0].trace.legendgroup,mt=D(Ge,ne,De);be&&st!==""&&(mt=Ye[st]);var tt=Ze?De:at||mt;ge||we||(tt+=Ee/2),p.setRect(Ke,0,-nt/2,tt,nt)})}(N,Oe,Me,L)},function(){var ce,ye,J,ne,de=q._size,xe=L.borderwidth,ue=L.xref==="paper",ge=L.yref==="paper";if(Te.text&&function(Ne,Qe,it){if(Qe.title.side==="top center"||Qe.title.side==="top right"){var kt=Qe.title.font.size*x,Je=0,ut=Ne.node(),pt=p.bBox(ut).width;Qe.title.side==="top center"?Je=.5*(Qe._width-2*it-2*g.titlePad-pt):Qe.title.side==="top right"&&(Je=Qe._width-2*it-2*g.titlePad-pt),y.positionText(Ne,it+g.titlePad+Je,it+kt)}}(se,L,xe),!V){var be,we;be=ue?de.l+de.w*L.x-_[B(L)]*L._width:q.width*L.x-_[B(L)]*L._width,we=ge?de.t+de.h*(1-L.y)-_[$(L)]*L._effHeight:q.height*(1-L.y)-_[$(L)]*L._effHeight;var ke=function(Ne,Qe,it,kt){var Je=Ne._fullLayout,ut=Je[Qe],pt=B(ut),It=$(ut),Mt=ut.xref==="paper",zt=ut.yref==="paper";Ne._fullLayout._reservedMargin[Qe]={};var wt=ut.y<.5?"b":"t",ve=ut.x<.5?"l":"r",_e={r:Je.width-it,l:it+ut._width,b:Je.height-kt,t:kt+ut._effHeight};if(Mt&&zt)return s.autoMargin(Ne,Qe,{x:ut.x,y:ut.y,l:ut._width*_[pt],r:ut._width*w[pt],b:ut._effHeight*w[It],t:ut._effHeight*_[It]});Mt?Ne._fullLayout._reservedMargin[Qe][wt]=_e[wt]:zt||ut.orientation==="v"?Ne._fullLayout._reservedMargin[Qe][ve]=_e[ve]:Ne._fullLayout._reservedMargin[Qe][wt]=_e[wt]}(N,H,be,we);if(ke)return;if(q.margin.autoexpand){var Ae=be,Ee=we;be=ue?f.constrain(be,0,q.width-L._width):Ae,we=ge?f.constrain(we,0,q.height-L._effHeight):Ee,be!==Ae&&f.log("Constrain "+H+".x to make legend fit inside graph"),we!==Ee&&f.log("Constrain "+H+".y to make legend fit inside graph")}p.setTranslate(re,be,we)}if(Se.on(".drag",null),re.on("wheel",null),V||L._height<=L._maxHeight||N._context.staticPlot){var De=L._effHeight;V&&(De=L._height),le.attr({width:L._width-xe,height:De-xe,x:xe/2,y:xe/2}),p.setTranslate(pe,0,0),ie.select("rect").attr({width:L._width-2*xe,height:De-2*xe,x:xe,y:xe}),p.setClipUrl(pe,W,N),p.setRect(Se,0,0,0,0),delete L._scrollY}else{var Re,Ie,Be,Ue=Math.max(g.scrollBarMinHeight,L._effHeight*L._effHeight/L._height),qe=L._effHeight-Ue-2*g.scrollBarMargin,Ye=L._height-L._effHeight,at=qe/Ye,lt=Math.min(L._scrollY||0,Ye);le.attr({width:L._width-2*xe+g.scrollBarWidth+g.scrollBarMargin,height:L._effHeight-xe,x:xe/2,y:xe/2}),ie.select("rect").attr({width:L._width-2*xe+g.scrollBarWidth+g.scrollBarMargin,height:L._effHeight-2*xe,x:xe,y:xe+lt}),p.setClipUrl(pe,W,N),ze(lt,Ue,at),re.on("wheel",function(){ze(lt=f.constrain(L._scrollY+l.event.deltaY/qe*Ye,0,Ye),Ue,at),lt!==0&<!==Ye&&l.event.preventDefault()});var ct=l.behavior.drag().on("dragstart",function(){var Ne=l.event.sourceEvent;Re=Ne.type==="touchstart"?Ne.changedTouches[0].clientY:Ne.clientY,Be=lt}).on("drag",function(){var Ne=l.event.sourceEvent;Ne.buttons===2||Ne.ctrlKey||(Ie=Ne.type==="touchmove"?Ne.changedTouches[0].clientY:Ne.clientY,lt=function(Qe,it,kt){var Je=(kt-it)/at+Qe;return f.constrain(Je,0,Ye)}(Be,Re,Ie),ze(lt,Ue,at))});Se.call(ct);var bt=l.behavior.drag().on("dragstart",function(){var Ne=l.event.sourceEvent;Ne.type==="touchstart"&&(Re=Ne.changedTouches[0].clientY,Be=lt)}).on("drag",function(){var Ne=l.event.sourceEvent;Ne.type==="touchmove"&&(Ie=Ne.changedTouches[0].clientY,lt=function(Qe,it,kt){var Je=(it-kt)/at+Qe;return f.constrain(Je,0,Ye)}(Be,Re,Ie),ze(lt,Ue,at))});pe.call(bt)}function ze(Ne,Qe,it){L._scrollY=N._fullLayout[H]._scrollY=Ne,p.setTranslate(pe,0,-Ne),p.setRect(Se,L._width,g.scrollBarMargin+Ne*it,g.scrollBarWidth,Qe),ie.select("rect").attr("y",xe+Ne)}N._context.edits.legendPosition&&(re.classed("cursor-move",!0),h.init({element:re.node(),gd:N,prepFn:function(){var Ne=p.getTranslate(re);J=Ne.x,ne=Ne.y},moveFn:function(Ne,Qe){var it=J+Ne,kt=ne+Qe;p.setTranslate(re,it,kt),ce=h.align(it,L._width,de.l,de.l+de.w,L.xanchor),ye=h.align(kt+L._height,-L._height,de.t+de.h,de.t,L.yanchor)},doneFn:function(){if(ce!==void 0&&ye!==void 0){var Ne={};Ne[H+".x"]=ce,Ne[H+".y"]=ye,c.call("_guiRelayout",N,Ne)}},clickFn:function(Ne,Qe){var it=G.selectAll("g.traces").filter(function(){var kt=this.getBoundingClientRect();return Qe.clientX>=kt.left&&Qe.clientX<=kt.right&&Qe.clientY>=kt.top&&Qe.clientY<=kt.bottom});it.size()>0&&O(N,re,it,Ne,Qe)}}))}],N)}}function D(N,E,W){var G=N[0],L=G.width,q=E.entrywidthmode,H=G.trace.legendwidth||E.entrywidth;return q==="fraction"?E._maxWidth*H:W+(H||L)}function O(N,E,W,G,L){var q=W.data()[0][0].trace,H={event:L,node:W.node(),curveNumber:q.index,expandedIndex:q._expandedIndex,data:N.data,layout:N.layout,frames:N._transitionData._frames,config:N._context,fullData:N._fullData,fullLayout:N._fullLayout};q._group&&(H.group=q._group),c.traceIs(q,"pie-like")&&(H.label=W.datum()[0].label);var V=d.triggerHandler(N,"plotly_legendclick",H);if(G===1){if(V===!1)return;E._clickTimeout=setTimeout(function(){N._fullLayout&&v(W,N,G)},N._context.doubleClickDelay)}else G===2&&(E._clickTimeout&&clearTimeout(E._clickTimeout),N._legendMouseDownTime=0,d.triggerHandler(N,"plotly_legenddoubleclick",H)!==!1&&V!==!1&&v(W,N,G))}function R(N,E,W){var G,L,q=j(W),H=N.data()[0][0],V=H.trace,te=c.traceIs(V,"pie-like"),ee=!W._inHover&&E._context.edits.legendText&&!te,U=W._maxNameLength;H.groupTitle?(G=H.groupTitle.text,L=H.groupTitle.font):(L=W.font,W.entries?G=H.text:(G=te?H.label:V.name,V._meta&&(G=f.templateString(G,V._meta))));var Q=f.ensureSingle(N,"text",q+"text");Q.attr("text-anchor","start").call(p.font,L).text(ee?F(G,U):G);var Y=W.itemwidth+2*g.itemGap;y.positionText(Q,Y,0),ee?Q.call(y.makeEditable,{gd:E,text:G}).call(z,N,E,W).on("edit",function(Z){this.text(F(Z,U)).call(z,N,E,W);var X=H.trace._fullInput||{},re={};if(c.hasTransform(X,"groupby")){var ie=c.getTransformIndices(X,"groupby"),le=ie[ie.length-1],se=f.keyedContainer(X,"transforms["+le+"].styles","target","value.name");se.set(H.trace._group,Z),re=se.constructUpdate()}else re.name=Z;return X._isShape?c.call("_guiRelayout",E,"shapes["+V.index+"].name",re.name):c.call("_guiRestyle",E,re,V.index)}):z(Q,N,E,W)}function F(N,E){var W=Math.max(4,E);if(N&&N.trim().length>=W/2)return N;for(var G=W-(N=N||"").length;G>0;G--)N+=" ";return N}function A(N,E,W){var G,L=E._context.doubleClickDelay,q=1,H=f.ensureSingle(N,"rect",W+"toggle",function(V){E._context.staticPlot||V.style("cursor","pointer").attr("pointer-events","all"),V.call(m.fill,"rgba(0,0,0,0)")});E._context.staticPlot||(H.on("mousedown",function(){(G=new Date().getTime())-E._legendMouseDownTimeL&&(q=Math.max(q-1,1)),O(E,V,N,q,l.event)}}))}function z(N,E,W,G,L){G._inHover&&N.attr("data-notex",!0),y.convertToTspans(N,W,function(){(function(q,H,V,te){var ee=q.data()[0][0];if(V._inHover||!ee||ee.trace.showlegend){var U=q.select("g[class*=math-group]"),Q=U.node(),Y=j(V);V||(V=H._fullLayout[Y]);var Z,X,re=V.borderwidth,ie=(te===S?V.title.font:ee.groupTitle?ee.groupTitle.font:V.font).size*x;if(Q){var le=p.bBox(Q);Z=le.height,X=le.width,te===S?p.setTranslate(U,re,re+.75*Z):p.setTranslate(U,0,.25*Z)}else{var se="."+Y+(te===S?"title":"")+"text",pe=q.select(se),Te=y.lineCount(pe),Se=pe.node();if(Z=ie*Te,X=Se?p.bBox(Se).width:0,te===S)V.title.side==="left"&&(X+=2*g.itemGap),y.positionText(pe,re+g.titlePad,re+ie);else{var Oe=2*g.itemGap+V.itemwidth;ee.groupTitle&&(Oe=g.itemGap,X-=V.itemwidth),y.positionText(pe,Oe,-ie*((Te-1)/2-.3))}}te===S?(V._titleWidth=X,V._titleHeight=Z):(ee.lineHeight=ie,ee.height=Math.max(Z,16)+3,ee.width=X)}else q.remove()})(E,W,G,L)})}function B(N){return f.isRightAnchor(N)?"right":f.isCenterAnchor(N)?"center":"left"}function $(N){return f.isBottomAnchor(N)?"bottom":f.isMiddleAnchor(N)?"middle":"top"}function j(N){return N._id||"legend"}o.exports=function(N,E){if(E)P(N,E);else{var W=N._fullLayout,G=W._legends;W._infolayer.selectAll('[class^="legend"]').each(function(){var H=l.select(this),V=H.attr("class").split(" ")[0];V.match(C)&&G.indexOf(V)===-1&&H.remove()});for(var L=0;LB&&(z=B)}F[h][0]._groupMinRank=z,F[h][0]._preGroupSort=h}var $=function(G,L){return G.trace.legendrank-L.trace.legendrank||G._preSort-L._preSort};for(F.forEach(function(G,L){G[0]._preGroupSort=L}),F.sort(function(G,L){return G[0]._groupMinRank-L[0]._groupMinRank||G[0]._preGroupSort-L[0]._preGroupSort}),h=0;hT?T:w}o.exports=function(w,k,T){var M=k._fullLayout;T||(T=M.legend);var S=T.itemsizing==="constant",C=T.itemwidth,P=(C+2*g.itemGap)/2,D=c(P,0),O=function(A,z,B,$){var j;if(A+1)j=A;else{if(!(z&&z.width>0))return 0;j=z.width}return S?$:Math.min(j,B)};function R(A,z,B){var $=A[0].trace,j=$.marker||{},N=j.line||{},E=B?$.visible&&$.type===B:f.traceIs($,"bar"),W=l.select(z).select("g.legendpoints").selectAll("path.legend"+B).data(E?[A]:[]);W.enter().append("path").classed("legend"+B,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),W.exit().remove(),W.each(function(G){var L=l.select(this),q=G[0],H=O(q.mlw,j.line,5,2);L.style("stroke-width",H+"px");var V=q.mcc;if(!T._inHover&&"mc"in q){var te=p(j),ee=te.mid;ee===void 0&&(ee=(te.max+te.min)/2),V=d.tryColorscale(j,"")(ee)}var U=V||q.mc||j.color,Q=j.pattern,Y=Q&&d.getPatternAttr(Q.shape,0,"");if(Y){var Z=d.getPatternAttr(Q.bgcolor,0,null),X=d.getPatternAttr(Q.fgcolor,0,null),re=Q.fgopacity,ie=_(Q.size,8,10),le=_(Q.solidity,.5,1),se="legend-"+$.uid;L.call(d.pattern,"legend",k,se,Y,ie,le,V,Q.fillmode,Z,X,re)}else L.call(h.fill,U);H&&h.stroke(L,q.mlc||N.color)})}function F(A,z,B){var $=A[0],j=$.trace,N=B?j.visible&&j.type===B:f.traceIs(j,B),E=l.select(z).select("g.legendpoints").selectAll("path.legend"+B).data(N?[A]:[]);if(E.enter().append("path").classed("legend"+B,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),E.exit().remove(),E.size()){var W=j.marker||{},G=O(v(W.line.width,$.pts),W.line,5,2),L="pieLike",q=s.minExtend(j,{marker:{line:{width:G}}},L),H=s.minExtend($,{trace:q},L);y(E,H,q,k)}}w.each(function(A){var z=l.select(this),B=s.ensureSingle(z,"g","layers");B.style("opacity",A[0].trace.opacity);var $=T.valign,j=A[0].lineHeight,N=A[0].height;if($!=="middle"&&j&&N){var E={top:1,bottom:-1}[$]*(.5*(j-N+3));B.attr("transform",c(0,E))}else B.attr("transform",null);B.selectAll("g.legendfill").data([A]).enter().append("g").classed("legendfill",!0),B.selectAll("g.legendlines").data([A]).enter().append("g").classed("legendlines",!0);var W=B.selectAll("g.legendsymbols").data([A]);W.enter().append("g").classed("legendsymbols",!0),W.selectAll("g.legendpoints").data([A]).enter().append("g").classed("legendpoints",!0)}).each(function(A){var z,B=A[0].trace,$=[];if(B.visible)switch(B.type){case"histogram2d":case"heatmap":$=[["M-15,-2V4H15V-2Z"]],z=!0;break;case"choropleth":case"choroplethmapbox":$=[["M-6,-6V6H6V-6Z"]],z=!0;break;case"densitymapbox":$=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],z="radial";break;case"cone":$=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],z=!1;break;case"streamtube":$=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],z=!1;break;case"surface":$=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],z=!0;break;case"mesh3d":$=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!1;break;case"volume":$=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!0;break;case"isosurface":$=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],z=!1}var j=l.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data($);j.enter().append("path").classed("legend3dandfriends",!0).attr("transform",D).style("stroke-miterlimit",1),j.exit().remove(),j.each(function(N,E){var W,G=l.select(this),L=p(B),q=L.colorscale,H=L.reversescale;if(q){if(!z){var V=q.length;W=E===0?q[H?V-1:0][1]:E===1?q[H?0:V-1][1]:q[Math.floor((V-1)/2)][1]}}else{var te=B.vertexcolor||B.facecolor||B.color;W=s.isArrayOrTypedArray(te)?te[E]||te[0]:te}G.attr("d",N[0]),W?G.call(h.fill,W):G.call(function(ee){if(ee.size()){var U="legendfill-"+B.uid;d.gradient(ee,k,U,b(H,z==="radial"),q,"fill")}})})}).each(function(A){var z=A[0].trace,B=z.type==="waterfall";if(A[0]._distinct&&B){var $=A[0].trace[A[0].dir].marker;return A[0].mc=$.color,A[0].mlw=$.line.width,A[0].mlc=$.line.color,R(A,this,"waterfall")}var j=[];z.visible&&B&&(j=A[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var N=l.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(j);N.enter().append("path").classed("legendwaterfall",!0).attr("transform",D).style("stroke-miterlimit",1),N.exit().remove(),N.each(function(E){var W=l.select(this),G=z[E[0]].marker,L=O(void 0,G.line,5,2);W.attr("d",E[1]).style("stroke-width",L+"px").call(h.fill,G.color),L&&W.call(h.stroke,G.line.color)})}).each(function(A){R(A,this,"funnel")}).each(function(A){R(A,this)}).each(function(A){var z=A[0].trace,B=l.select(this).select("g.legendpoints").selectAll("path.legendbox").data(z.visible&&f.traceIs(z,"box-violin")?[A]:[]);B.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),B.exit().remove(),B.each(function(){var $=l.select(this);if(z.boxpoints!=="all"&&z.points!=="all"||h.opacity(z.fillcolor)!==0||h.opacity((z.line||{}).color)!==0){var j=O(void 0,z.line,5,2);$.style("stroke-width",j+"px").call(h.fill,z.fillcolor),j&&h.stroke($,z.line.color)}else{var N=s.minExtend(z,{marker:{size:S?12:s.constrain(z.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});B.call(d.pointStyle,N,k)}})}).each(function(A){F(A,this,"funnelarea")}).each(function(A){F(A,this,"pie")}).each(function(A){var z,B,$=x(A),j=$.showFill,N=$.showLine,E=$.showGradientLine,W=$.showGradientFill,G=$.anyFill,L=$.anyLine,q=A[0],H=q.trace,V=p(H),te=V.colorscale,ee=V.reversescale,U=m.hasMarkers(H)||!G?"M5,0":L?"M5,-2":"M5,-3",Q=l.select(this),Y=Q.select(".legendfill").selectAll("path").data(j||W?[A]:[]);if(Y.enter().append("path").classed("js-fill",!0),Y.exit().remove(),Y.attr("d",U+"h"+C+"v6h-"+C+"z").call(function(re){if(re.size())if(j)d.fillGroupStyle(re,k);else{var ie="legendfill-"+H.uid;d.gradient(re,k,ie,b(ee),te,"fill")}}),N||E){var Z=O(void 0,H.line,10,5);B=s.minExtend(H,{line:{width:Z}}),z=[s.minExtend(q,{trace:B})]}var X=Q.select(".legendlines").selectAll("path").data(N||E?[z]:[]);X.enter().append("path").classed("js-line",!0),X.exit().remove(),X.attr("d",U+(E?"l"+C+",0.0001":"h"+C)).call(N?d.lineGroupStyle:function(re){if(re.size()){var ie="legendline-"+H.uid;d.lineGroupStyle(re),d.gradient(re,k,ie,b(ee),te,"stroke")}})}).each(function(A){var z,B,$=x(A),j=$.anyFill,N=$.anyLine,E=$.showLine,W=$.showMarker,G=A[0],L=G.trace,q=!W&&!N&&!j&&m.hasText(L);function H(X,re,ie,le){var se=s.nestedProperty(L,X).get(),pe=s.isArrayOrTypedArray(se)&&re?re(se):se;if(S&&pe&&le!==void 0&&(pe=le),ie){if(peie[1])return ie[1]}return pe}function V(X){return G._distinct&&G.index&&X[G.index]?X[G.index]:X[0]}if(W||q||E){var te={},ee={};if(W){te.mc=H("marker.color",V),te.mx=H("marker.symbol",V),te.mo=H("marker.opacity",s.mean,[.2,1]),te.mlc=H("marker.line.color",V),te.mlw=H("marker.line.width",s.mean,[0,5],2),ee.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var U=H("marker.size",s.mean,[2,16],12);te.ms=U,ee.marker.size=U}E&&(ee.line={width:H("line.width",V,[0,10],5)}),q&&(te.tx="Aa",te.tp=H("textposition",V),te.ts=10,te.tc=H("textfont.color",V),te.tf=H("textfont.family",V)),z=[s.minExtend(G,te)],(B=s.minExtend(L,ee)).selectedpoints=null,B.texttemplate=null}var Q=l.select(this).select("g.legendpoints"),Y=Q.selectAll("path.scatterpts").data(W?z:[]);Y.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",D),Y.exit().remove(),Y.call(d.pointStyle,B,k),W&&(z[0].mrc=3);var Z=Q.selectAll("g.pointtext").data(q?z:[]);Z.enter().append("g").classed("pointtext",!0).append("text").attr("transform",D),Z.exit().remove(),Z.selectAll("text").call(d.textPointStyle,B,k)}).each(function(A){var z=A[0].trace,B=l.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(z.visible&&z.type==="candlestick"?[A,A]:[]);B.enter().append("path").classed("legendcandle",!0).attr("d",function($,j){return j?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",D).style("stroke-miterlimit",1),B.exit().remove(),B.each(function($,j){var N=l.select(this),E=z[j?"increasing":"decreasing"],W=O(void 0,E.line,5,2);N.style("stroke-width",W+"px").call(h.fill,E.fillcolor),W&&h.stroke(N,E.line.color)})}).each(function(A){var z=A[0].trace,B=l.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(z.visible&&z.type==="ohlc"?[A,A]:[]);B.enter().append("path").classed("legendohlc",!0).attr("d",function($,j){return j?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",D).style("stroke-miterlimit",1),B.exit().remove(),B.each(function($,j){var N=l.select(this),E=z[j?"increasing":"decreasing"],W=O(void 0,E.line,5,2);N.style("fill","none").call(d.dashLine,E.line.dash,W),W&&h.stroke(N,E.line.color)})})}},42068:function(o,a,n){n(93348),o.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},26023:function(o,a,n){var l=n(73972),f=n(74875),s=n(41675),c=n(24255),d=n(34031).eraseActiveShape,h=n(71828),p=h._,m=o.exports={};function y(M,S){var C,P,D=S.currentTarget,O=D.getAttribute("data-attr"),R=D.getAttribute("data-val")||!0,F=M._fullLayout,A={},z=s.list(M,null,!0),B=F._cartesianSpikesEnabled;if(O==="zoom"){var $,j=R==="in"?.5:2,N=(1+j)/2,E=(1-j)/2;for(P=0;P1?(U=["toggleHover"],Q=["resetViews"]):A?(ee=["zoomInGeo","zoomOutGeo"],U=["hoverClosestGeo"],Q=["resetGeo"]):F?(U=["hoverClosest3d"],Q=["resetCameraDefault3d","resetCameraLastSave3d"]):N?(ee=["zoomInMapbox","zoomOutMapbox"],U=["toggleHover"],Q=["resetViewMapbox"]):$?U=["hoverClosestGl2d"]:z?U=["hoverClosestPie"]:G?(U=["hoverClosestCartesian","hoverCompareCartesian"],Q=["resetViewSankey"]):U=["toggleHover"],R&&(U=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(se){for(var pe=0;pe0)){var k=function(M,S,C){for(var P=C.filter(function(F){return S[F].anchor===M._id}),D=0,O=0;O=Se.max)pe=re[Te+1];else if(se=Se.pmax)pe=re[Te+1];else if(seTe._length||ge+Ie<0)return;Ee=ue+Ie,De=ge+Ie;break;case Me:if(Re="col-resize",ue+Ie>Te._length)return;Ee=ue+Ie,De=ge;break;case ce:if(Re="col-resize",ge+Ie<0)return;Ee=ue,De=ge+Ie;break;default:Re="ew-resize",Ee=xe,De=xe+Ie}if(De=0;$--){var j=S.append("path").attr(P).style("opacity",$?.1:D).call(c.stroke,R).call(c.fill,O).call(d.dashLine,$?"solid":A,$?4+F:F);if(b(j,_,T),z){var N=h(_.layout,"selections",T);j.style({cursor:"move"});var E={element:j.node(),plotinfo:M,gd:_,editHelpers:N,isActiveSelection:!0},W=l(C,_);f(W,j,E)}else j.style("pointer-events",$?"all":"none");B[$]=j}var G=B[0];B[1].node().addEventListener("click",function(){return function(L,q){if(v(L)){var H=+q.node().getAttribute("data-index");if(H>=0){if(H===L._fullLayout._activeSelectionIndex)return void x(L);L._fullLayout._activeSelectionIndex=H,L._fullLayout._deactivateSelection=x,y(L)}}}(_,G)})}(_._fullLayout._selectionLayer)}function b(_,w,k){var T=k.xref+k.yref;d.setClipUrl(_,"clip"+w._fullLayout._uid+T,w)}function x(_){v(_)&&_._fullLayout._activeSelectionIndex>=0&&(s(_),delete _._fullLayout._activeSelectionIndex,y(_))}o.exports={draw:y,drawOne:g,activateLastSelection:function(_){if(v(_)){var w=_._fullLayout.selections.length-1;_._fullLayout._activeSelectionIndex=w,_._fullLayout._deactivateSelection=x,y(_)}}}},53777:function(o,a,n){var l=n(79952).P,f=n(1426).extendFlat;o.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:f({},l,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},90849:function(o){o.exports=function(a,n,l){l("newselection.mode"),l("newselection.line.width")&&(l("newselection.line.color"),l("newselection.line.dash")),l("activeselection.fillcolor"),l("activeselection.opacity")}},35855:function(o,a,n){var l=n(64505).selectMode,f=n(51873).clearOutline,s=n(60165),c=s.readPaths,d=s.writePaths,h=s.fixDatesForPaths;o.exports=function(p,m){if(p.length){var y=p[0][0];if(y){var v=y.getAttribute("d"),g=m.gd,b=g._fullLayout.newselection,x=m.plotinfo,_=x.xaxis,w=x.yaxis,k=m.isActiveSelection,T=m.dragmode,M=(g.layout||{}).selections||[];if(!l(T)&&k!==void 0){var S=g._fullLayout._activeSelectionIndex;if(S-1,kt=[];if(function(Mt){return Mt&&Array.isArray(Mt)&&Mt[0].hoverOnBox!==!0}(Qe)){Z(ke,Ae,Ie);var Je=function(Mt,zt){var wt,ve,_e=Mt[0],Ve=-1,We=[];for(ve=0;ve0?function(Mt,zt){var wt,ve,_e,Ve=[];for(_e=0;_e0&&Ve.push(wt);if(Ve.length===1&&Ve[0]===zt.searchInfo&&(ve=zt.searchInfo.cd[0].trace).selectedpoints.length===zt.pointNumbers.length){for(_e=0;_e1||(ve+=zt.selectedpoints.length)>1))return!1;return ve===1}(Ue)&&(ct=se(Je))){for(Be&&Be.remove(),Ne=0;Ne=0})(Re)&&Re._fullLayout._deactivateShape(Re),function(lt){return lt._fullLayout._activeSelectionIndex>=0}(Re)&&Re._fullLayout._deactivateSelection(Re);var Ie=Re._fullLayout._zoomlayer,Be=g(Ee),Ue=x(Ee);if(Be||Ue){var qe,Ye,at=Ie.selectAll(".select-outline-"+De.id);at&&Re._fullLayout._outlining&&(Be&&(qe=P(at,ke)),qe&&s.call("_guiRelayout",Re,{shapes:qe}),Ue&&!te(ke)&&(Ye=D(at,ke)),Ye&&(Re._fullLayout._noEmitSelectedAtStart=!0,s.call("_guiRelayout",Re,{selections:Ye}).then(function(){Ae&&O(Re)})),Re._fullLayout._outlining=!1)}De.selection={},De.selection.selectionDefs=ke.selectionDefs=[],De.selection.mergedPolygons=ke.mergedPolygons=[]}function re(ke){return ke._id}function ie(ke,Ae,Ee,De){if(!ke.calcdata)return[];var Re,Ie,Be,Ue=[],qe=Ae.map(re),Ye=Ee.map(re);for(Be=0;Be0?De[0]:Ee;return!!Ae.selectedpoints&&Ae.selectedpoints.indexOf(Re)>-1}function pe(ke,Ae,Ee){var De,Re;for(De=0;De-1&&Ae;if(!Ie&&Ae){var Ot=ne(ke,!0);if(Ot.length){var At=Ot[0].xref,Lt=Ot[0].yref;if(At&&Lt){var Rt=ue(Ot);ge([B(ke,At,"x"),B(ke,Lt,"y")])(jt,Rt)}}ke._fullLayout._noEmitSelectedAtStart?ke._fullLayout._noEmitSelectedAtStart=!1:Tt&&be(ke,jt),ct._reselect=!1}if(!Ie&&ct._deselect){var $t=ct._deselect;(function(Yt,Xt,Bt){for(var Wt=0;Wt=0)bt._fullLayout._deactivateShape(bt);else if(!Ye){var Rt=ze.clickmode;z.done(Et).then(function(){if(z.clear(Et),At===2){for(Nt.remove(),_e=0;_e-1&&ee(Lt,bt,De.xaxes,De.yaxes,De.subplot,De,Nt),Rt==="event"&&be(bt,void 0);h.click(bt,Lt,kt.id)}).catch(R.error)}},De.doneFn=function(){yt.remove(),z.done(Et).then(function(){z.clear(Et),!Ne&&ve&&De.selectionDefs&&(ve.subtract=St,De.selectionDefs.push(ve),De.mergedPolygons.length=0,[].push.apply(De.mergedPolygons,wt)),(Ne||Ye)&&X(De,Ne),De.doneFnCompleted&&De.doneFnCompleted(jt),at&&be(bt,We)}).catch(R.error)}},clearOutline:T,clearSelectionsCache:X,selectOnClick:ee}},89827:function(o,a,n){var l=n(50215),f=n(41940),s=n(82196).line,c=n(79952).P,d=n(1426).extendFlat,h=n(44467).templatedArray,p=(n(24695),n(9012)),m=n(5386).R,y=n(37281);o.exports=h("shape",{visible:d({},p.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:d({},p.legend,{editType:"calc+arraydraw"}),legendgroup:d({},p.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:d({},p.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:f({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:d({},p.legendrank,{editType:"calc+arraydraw"}),legendwidth:d({},p.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:d({},l.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},yref:d({},l.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:d({},s.color,{editType:"arraydraw"}),width:d({},s.width,{editType:"calc+arraydraw"}),dash:d({},c,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:m({},{keys:Object.keys(y)}),font:f({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})},5627:function(o,a,n){var l=n(71828),f=n(89298),s=n(21459),c=n(30477);function d(y){return p(y.line.width,y.xsizemode,y.x0,y.x1,y.path,!1)}function h(y){return p(y.line.width,y.ysizemode,y.y0,y.y1,y.path,!0)}function p(y,v,g,b,x,_){var w=y/2,k=_;if(v==="pixel"){var T=x?c.extractPathCoords(x,_?s.paramIsY:s.paramIsX):[g,b],M=l.aggNums(Math.max,null,T),S=l.aggNums(Math.min,null,T),C=S<0?Math.abs(S)+w:w,P=M>0?M+w:w;return{ppad:w,ppadplus:k?C:P,ppadminus:k?P:C}}return{ppad:w}}function m(y,v,g,b,x){var _=y.type==="category"||y.type==="multicategory"?y.r2c:y.d2c;if(v!==void 0)return[_(v),_(g)];if(b){var w,k,T,M,S=1/0,C=-1/0,P=b.match(s.segmentRE);for(y.type==="date"&&(_=c.decodeDate(_)),w=0;wC&&(C=M)));return C>=S?[S,C]:void 0}}o.exports=function(y){var v=y._fullLayout,g=l.filterVisible(v.shapes);if(g.length&&y._fullData.length)for(var b=0;b=re?ie-se:se-ie,-180/Math.PI*Math.atan2(pe,Te)}(C,D,P,O):0),A.call(function(re){return re.call(c.font,F).attr({}),s.convertToTspans(re,v),re});var Q=function(re,ie,le,se,pe,Te,Se){var Oe,Me,ce,ye,J=pe.label.textposition,ne=pe.label.textangle,de=pe.label.padding,xe=pe.type,ue=Math.PI/180*Te,ge=Math.sin(ue),be=Math.cos(ue),we=pe.label.xanchor,ke=pe.label.yanchor;if(xe==="line"){J==="start"?(Oe=re,Me=ie):J==="end"?(Oe=le,Me=se):(Oe=(re+le)/2,Me=(ie+se)/2),we==="auto"&&(we=J==="start"?ne==="auto"?le>re?"left":lere?"right":lere?"right":lere?"left":le1&&(Oe.length!==2||Oe[1][0]!=="Z")&&(G===0&&(Oe[0][0]="M"),R[W]=Oe,$(),j())}}()}}function re(pe,Te){(function(Se,Oe){if(R.length)for(var Me=0;MeMe?(J=Se,ue="y0",ne=Me,ge="y1"):(J=Me,ue="y1",ne=Se,ge="y0"),ut(wt),Mt(se,ie),function(ve,_e,Ve){var We=_e.xref,Ze=_e.yref,Ge=c.getFromId(Ve,We),Ke=c.getFromId(Ve,Ze),nt="";We==="paper"||Ge.autorange||(nt+=We),Ze==="paper"||Ke.autorange||(nt+=Ze),v.setClipUrl(ve,nt?"clip"+Ve._fullLayout._uid+nt:null,Ve)}(re,ie,X),Je.moveFn=Ae==="move"?pt:It,Je.altKey=wt.altKey)},doneFn:function(){M(X)||(x(re),zt(se),P(re,X,ie),f.call("_guiRelayout",X,pe.getUpdateObj()))},clickFn:function(){M(X)||zt(se)}};function ut(wt){if(M(X))Ae=null;else if(Be)Ae=wt.target.tagName==="path"?"move":wt.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var ve=Je.element.getBoundingClientRect(),_e=ve.right-ve.left,Ve=ve.bottom-ve.top,We=wt.clientX-ve.left,Ze=wt.clientY-ve.top,Ge=!Ue&&_e>Ee&&Ve>De&&!wt.shiftKey?b.getCursor(We/_e,1-Ze/Ve):"move";x(re,Ge),Ae=Ge.split("-")[0]}}function pt(wt,ve){if(ie.type==="path"){var _e=function(Ze){return Ze},Ve=_e,We=_e;Re?qe("xanchor",ie.xanchor=Qe(ce+wt)):(Ve=function(Ze){return Qe(ze(Ze)+wt)},at&&at.type==="date"&&(Ve=w.encodeDate(Ve))),Ie?qe("yanchor",ie.yanchor=it(ye+ve)):(We=function(Ze){return it(Ne(Ze)+ve)},ct&&ct.type==="date"&&(We=w.encodeDate(We))),qe("path",ie.path=D(ke,Ve,We))}else Re?qe("xanchor",ie.xanchor=Qe(ce+wt)):(qe("x0",ie.x0=Qe(Te+wt)),qe("x1",ie.x1=Qe(Oe+wt))),Ie?qe("yanchor",ie.yanchor=it(ye+ve)):(qe("y0",ie.y0=it(Se+ve)),qe("y1",ie.y1=it(Me+ve)));re.attr("d",k(X,ie)),Mt(se,ie),p(X,le,ie,Ye)}function It(wt,ve){if(Ue){var _e=function(ht){return ht},Ve=_e,We=_e;Re?qe("xanchor",ie.xanchor=Qe(ce+wt)):(Ve=function(ht){return Qe(ze(ht)+wt)},at&&at.type==="date"&&(Ve=w.encodeDate(Ve))),Ie?qe("yanchor",ie.yanchor=it(ye+ve)):(We=function(ht){return it(Ne(ht)+ve)},ct&&ct.type==="date"&&(We=w.encodeDate(We))),qe("path",ie.path=D(ke,Ve,We))}else if(Be){if(Ae==="resize-over-start-point"){var Ze=Te+wt,Ge=Ie?Se-ve:Se+ve;qe("x0",ie.x0=Re?Ze:Qe(Ze)),qe("y0",ie.y0=Ie?Ge:it(Ge))}else if(Ae==="resize-over-end-point"){var Ke=Oe+wt,nt=Ie?Me-ve:Me+ve;qe("x1",ie.x1=Re?Ke:Qe(Ke)),qe("y1",ie.y1=Ie?nt:it(nt))}}else{var st=function(ht){return Ae.indexOf(ht)!==-1},mt=st("n"),tt=st("s"),Ft=st("w"),Vt=st("e"),St=mt?J+ve:J,Nt=tt?ne+ve:ne,Dt=Ft?de+wt:de,gt=Vt?xe+wt:xe;Ie&&(mt&&(St=J-ve),tt&&(Nt=ne-ve)),(!Ie&&Nt-St>De||Ie&&St-Nt>De)&&(qe(ue,ie[ue]=Ie?St:it(St)),qe(ge,ie[ge]=Ie?Nt:it(Nt))),gt-Dt>Ee&&(qe(be,ie[be]=Re?Dt:Qe(Dt)),qe(we,ie[we]=Re?gt:Qe(gt)))}re.attr("d",k(X,ie)),Mt(se,ie),p(X,le,ie,Ye)}function Mt(wt,ve){(Re||Ie)&&function(){var _e=ve.type!=="path",Ve=wt.selectAll(".visual-cue").data([0]);Ve.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var We=ze(Re?ve.xanchor:s.midRange(_e?[ve.x0,ve.x1]:w.extractPathCoords(ve.path,_.paramIsX))),Ze=Ne(Ie?ve.yanchor:s.midRange(_e?[ve.y0,ve.y1]:w.extractPathCoords(ve.path,_.paramIsY)));if(We=w.roundPositionForSharpStrokeRendering(We,1),Ze=w.roundPositionForSharpStrokeRendering(Ze,1),Re&&Ie){var Ge="M"+(We-1-1)+","+(Ze-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ve.attr("d",Ge)}else if(Re){var Ke="M"+(We-1-1)+","+(Ze-9-1)+"v18 h2 v-18 Z";Ve.attr("d",Ke)}else{var nt="M"+(We-9-1)+","+(Ze-1-1)+"h18 v2 h-18 Z";Ve.attr("d",nt)}}()}function zt(wt){wt.selectAll(".visual-cue").remove()}b.init(Je),kt.node().onmousemove=ut}(R,Q,z,F,j,ee):z.editable===!0&&Q.style("pointer-events",V||y.opacity(G)*W<=.5?"stroke":"all");Q.node().addEventListener("click",function(){return function(X,re){if(S(X)){var ie=+re.node().getAttribute("data-index");if(ie>=0){if(ie===X._fullLayout._activeShapeIndex)return void O(X);X._fullLayout._activeShapeIndex=ie,X._fullLayout._deactivateShape=O,T(X)}}}(R,Q)})}z._input&&z.visible===!0&&(z.layer!=="below"?$(R._fullLayout._shapeUpperLayer):z.xref==="paper"||z.yref==="paper"?$(R._fullLayout._shapeLowerLayer):B._hadPlotinfo?$((B.mainplotinfo||B).shapelayer):$(R._fullLayout._shapeLowerLayer))}function P(R,F,A){var z=(A.xref+A.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");v.setClipUrl(R,z?"clip"+F._fullLayout._uid+z:null,F)}function D(R,F,A){return R.replace(_.segmentRE,function(z){var B=0,$=z.charAt(0),j=_.paramIsX[$],N=_.paramIsY[$],E=_.numParams[$];return $+z.substr(1).replace(_.paramRE,function(W){return B>=E||(j[B]?W=F(W):N[B]&&(W=A(W)),B++),W})})}function O(R){S(R)&&R._fullLayout._activeShapeIndex>=0&&(m(R),delete R._fullLayout._activeShapeIndex,T(R))}o.exports={draw:T,drawOne:C,eraseActiveShape:function(R){if(S(R)){m(R);var F=R._fullLayout._activeShapeIndex,A=(R.layout||{}).shapes||[];if(F0&&CU&&(Y="X"),Y});return H>U&&(Q=Q.replace(/[\s,]*X.*/,""),f.log("Ignoring extra params in segment "+q)),V+Q})}(d,p,y);if(d.xsizemode==="pixel"){var C=p(d.xanchor);v=C+d.x0,g=C+d.x1}else v=p(d.x0),g=p(d.x1);if(d.ysizemode==="pixel"){var P=y(d.yanchor);b=P-d.y0,x=P-d.y1}else b=y(d.y0),x=y(d.y1);if(_==="line")return"M"+v+","+b+"L"+g+","+x;if(_==="rect")return"M"+v+","+b+"H"+g+"V"+x+"H"+v+"Z";var D=(v+g)/2,O=(b+x)/2,R=Math.abs(D-v),F=Math.abs(O-b),A="A"+R+","+F,z=D+R+","+O;return"M"+z+A+" 0 1,1 "+D+","+(O-F)+A+" 0 0,1 "+z+"Z"}},89853:function(o,a,n){var l=n(34031);o.exports={moduleType:"component",name:"shapes",layoutAttributes:n(89827),supplyLayoutDefaults:n(84726),supplyDrawNewShapeDefaults:n(45547),includeBasePlot:n(76325)("shapes"),calcAutorange:n(5627),draw:l.draw,drawOne:l.drawOne}},37281:function(o){function a(s,c){return c?c.d2l(s):s}function n(s,c){return c?c.l2d(s):s}function l(s,c){return a(s.x1,c)-a(s.x0,c)}function f(s,c,d){return a(s.y1,d)-a(s.y0,d)}o.exports={x0:function(s){return s.x0},x1:function(s){return s.x1},y0:function(s){return s.y0},y1:function(s){return s.y1},slope:function(s,c,d){return s.type!=="line"?void 0:f(s,0,d)/l(s,c)},dx:l,dy:f,width:function(s,c){return Math.abs(l(s,c))},height:function(s,c,d){return Math.abs(f(s,0,d))},length:function(s,c,d){return s.type!=="line"?void 0:Math.sqrt(Math.pow(l(s,c),2)+Math.pow(f(s,0,d),2))},xcenter:function(s,c){return n((a(s.x1,c)+a(s.x0,c))/2,c)},ycenter:function(s,c,d){return n((a(s.y1,d)+a(s.y0,d))/2,d)}}},75067:function(o,a,n){var l=n(41940),f=n(35025),s=n(1426).extendDeepAll,c=n(30962).overrideAll,d=n(85594),h=n(44467).templatedArray,p=n(98292),m=h("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});o.exports=c(h("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:m,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:s(f({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:d.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:l({})},font:l({}),activebgcolor:{valType:"color",dflt:p.gripBgActiveColor},bgcolor:{valType:"color",dflt:p.railBgColor},bordercolor:{valType:"color",dflt:p.railBorderColor},borderwidth:{valType:"number",min:0,dflt:p.railBorderWidth},ticklen:{valType:"number",min:0,dflt:p.tickLength},tickcolor:{valType:"color",dflt:p.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:p.minorTickLength}}),"arraydraw","from-root")},98292:function(o){o.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},12343:function(o,a,n){var l=n(71828),f=n(85501),s=n(75067),c=n(98292).name,d=s.steps;function h(m,y,v){function g(k,T){return l.coerce(m,y,s,k,T)}for(var b=f(m,y,{name:"steps",handleItemDefaults:p}),x=0,_=0;_0&&(H=H.transition().duration(N.transition.duration).ease(N.transition.easing)),H.attr("transform",h(q-.5*y.gripWidth,N._dims.currentValueTotalHeight))}}function A(j,N){var E=j._dims;return E.inputAreaStart+y.stepInset+(E.inputAreaLength-2*y.stepInset)*Math.min(1,Math.max(0,N))}function z(j,N){var E=j._dims;return Math.min(1,Math.max(0,(N-y.stepInset-E.inputAreaStart)/(E.inputAreaLength-2*y.stepInset-2*E.inputAreaStart)))}function B(j,N,E){var W=E._dims,G=d.ensureSingle(j,"rect",y.railTouchRectClass,function(L){L.call(O,N,j,E).style("pointer-events","all")});G.attr({width:W.inputAreaLength,height:Math.max(W.inputAreaWidth,y.tickOffset+E.ticklen+W.labelHeight)}).call(s.fill,E.bgcolor).attr("opacity",0),c.setTranslate(G,0,W.currentValueTotalHeight)}function $(j,N){var E=N._dims,W=E.inputAreaLength-2*y.railInset,G=d.ensureSingle(j,"rect",y.railRectClass);G.attr({width:W,height:y.railWidth,rx:y.railRadius,ry:y.railRadius,"shape-rendering":"crispEdges"}).call(s.stroke,N.bordercolor).call(s.fill,N.bgcolor).style("stroke-width",N.borderwidth+"px"),c.setTranslate(G,y.railInset,.5*(E.inputAreaWidth-y.railWidth)+E.currentValueTotalHeight)}o.exports=function(j){var N=j._context.staticPlot,E=j._fullLayout,W=function(te,ee){for(var U=te[y.name],Q=[],Y=0;Y0?[0]:[]);function L(te){te._commandObserver&&(te._commandObserver.remove(),delete te._commandObserver),f.autoMargin(j,_(te))}if(G.enter().append("g").classed(y.containerClassName,!0).style("cursor",N?null:"ew-resize"),G.exit().each(function(){l.select(this).selectAll("g."+y.groupClassName).each(L)}).remove(),W.length!==0){var q=G.selectAll("g."+y.groupClassName).data(W,w);q.enter().append("g").classed(y.groupClassName,!0),q.exit().each(L).remove();for(var H=0;H0||Oe<0){var J={left:[-Me,0],right:[Me,0],top:[0,-Me],bottom:[0,Me]}[P.side];Q.attr("transform",h(J[0],J[1]))}}}return H.call(V),G&&($?H.on(".opacity",null):(A=0,z=!0,H.text(S).on("mouseover.opacity",function(){l.select(this).transition().duration(v.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){l.select(this).transition().duration(v.HIDE_PLACEHOLDER).style("opacity",0)})),H.call(y.makeEditable,{gd:x}).on("edit",function(U){C!==void 0?c.call("_guiRestyle",x,M,U,C):c.call("_guiRelayout",x,M,U)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(V)}).on("input",function(U){this.text(U||" ").call(y.positionText,D.x,D.y)})),H.classed("js-placeholder",z),R}}},7163:function(o,a,n){var l=n(41940),f=n(22399),s=n(1426).extendFlat,c=n(30962).overrideAll,d=n(35025),h=n(44467).templatedArray,p=h("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});o.exports=c(h("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:p,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:s(d({editType:"arraydraw"}),{}),font:l({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:f.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},75909:function(o){o.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},64897:function(o,a,n){var l=n(71828),f=n(85501),s=n(7163),c=n(75909).name,d=s.buttons;function h(m,y,v){function g(b,x){return l.coerce(m,y,s,b,x)}g("visible",f(m,y,{name:"buttons",handleItemDefaults:p}).length>0)&&(g("active"),g("direction"),g("type"),g("showactive"),g("x"),g("y"),l.noneOrAll(m,y,["x","y"]),g("xanchor"),g("yanchor"),g("pad.t"),g("pad.r"),g("pad.b"),g("pad.l"),l.coerceFont(g,"font",v.font),g("bgcolor",v.paper_bgcolor),g("bordercolor"),g("borderwidth"))}function p(m,y){function v(g,b){return l.coerce(m,y,d,g,b)}v("visible",m.method==="skip"||Array.isArray(m.args))&&(v("method"),v("args"),v("args2"),v("label"),v("execute"))}o.exports=function(m,y){f(m,y,{name:c,handleItemDefaults:h})}},13689:function(o,a,n){var l=n(39898),f=n(74875),s=n(7901),c=n(91424),d=n(71828),h=n(63893),p=n(44467).arrayEditor,m=n(18783).LINE_SPACING,y=n(75909),v=n(25849);function g(A){return A._index}function b(A,z){return+A.attr(y.menuIndexAttrName)===z._index}function x(A,z,B,$,j,N,E,W){z.active=E,p(A.layout,y.name,z).applyUpdate("active",E),z.type==="buttons"?w(A,$,null,null,z):z.type==="dropdown"&&(j.attr(y.menuIndexAttrName,"-1"),_(A,$,j,N,z),W||w(A,$,j,N,z))}function _(A,z,B,$,j){var N=d.ensureSingle(z,"g",y.headerClassName,function(H){H.style("pointer-events","all")}),E=j._dims,W=j.active,G=j.buttons[W]||y.blankHeaderOpts,L={y:j.pad.t,yPad:0,x:j.pad.l,xPad:0,index:0},q={width:E.headerWidth,height:E.headerHeight};N.call(k,j,G,A).call(R,j,L,q),d.ensureSingle(z,"text",y.headerArrowClassName,function(H){H.attr("text-anchor","end").call(c.font,j.font).text(y.arrowSymbol[j.direction])}).attr({x:E.headerWidth-y.arrowOffsetX+j.pad.l,y:E.headerHeight/2+y.textOffsetY+j.pad.t}),N.on("click",function(){B.call(F,String(b(B,j)?-1:j._index)),w(A,z,B,$,j)}),N.on("mouseover",function(){N.call(C)}),N.on("mouseout",function(){N.call(P,j)}),c.setTranslate(z,E.lx,E.ly)}function w(A,z,B,$,j){B||(B=z).attr("pointer-events","all");var N=function(Q){return+Q.attr(y.menuIndexAttrName)==-1}(B)&&j.type!=="buttons"?[]:j.buttons,E=j.type==="dropdown"?y.dropdownButtonClassName:y.buttonClassName,W=B.selectAll("g."+E).data(d.filterVisible(N)),G=W.enter().append("g").classed(E,!0),L=W.exit();j.type==="dropdown"?(G.attr("opacity","0").transition().attr("opacity","1"),L.transition().attr("opacity","0").remove()):L.remove();var q=0,H=0,V=j._dims,te=["up","down"].indexOf(j.direction)!==-1;j.type==="dropdown"&&(te?H=V.headerHeight+y.gapButtonHeader:q=V.headerWidth+y.gapButtonHeader),j.type==="dropdown"&&j.direction==="up"&&(H=-y.gapButtonHeader+y.gapButton-V.openHeight),j.type==="dropdown"&&j.direction==="left"&&(q=-y.gapButtonHeader+y.gapButton-V.openWidth);var ee={x:V.lx+q+j.pad.l,y:V.ly+H+j.pad.t,yPad:y.gapButton,xPad:y.gapButton,index:0},U={l:ee.x+j.borderwidth,t:ee.y+j.borderwidth};W.each(function(Q,Y){var Z=l.select(this);Z.call(k,j,Q,A).call(R,j,ee),Z.on("click",function(){l.event.defaultPrevented||(Q.execute&&(Q.args2&&j.active===Y?(x(A,j,0,z,B,$,-1),f.executeAPICommand(A,Q.method,Q.args2)):(x(A,j,0,z,B,$,Y),f.executeAPICommand(A,Q.method,Q.args))),A.emit("plotly_buttonclicked",{menu:j,button:Q,active:j.active}))}),Z.on("mouseover",function(){Z.call(C)}),Z.on("mouseout",function(){Z.call(P,j),W.call(S,j)})}),W.call(S,j),te?(U.w=Math.max(V.openWidth,V.headerWidth),U.h=ee.y-U.t):(U.w=ee.x-U.l,U.h=Math.max(V.openHeight,V.headerHeight)),U.direction=j.direction,$&&(W.size()?function(Q,Y,Z,X,re,ie){var le,se,pe,Te=re.direction,Se=Te==="up"||Te==="down",Oe=re._dims,Me=re.active;if(Se)for(se=0,pe=0;pe0?[0]:[]);if(j.enter().append("g").classed(y.containerClassName,!0).style("cursor","pointer"),j.exit().each(function(){l.select(this).selectAll("g."+y.headerGroupClassName).each($)}).remove(),B.length!==0){var N=j.selectAll("g."+y.headerGroupClassName).data(B,g);N.enter().append("g").classed(y.headerGroupClassName,!0);for(var E=d.ensureSingle(j,"g",y.dropdownButtonGroupClassName,function(H){H.style("pointer-events","all")}),W=0;WR,z=d.barLength+2*d.barPad,B=d.barWidth+2*d.barPad,$=k,j=M+S;j+B>g&&(j=g-B);var N=this.container.selectAll("rect.scrollbar-horizontal").data(A?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-horizontal",!0).call(f.fill,d.barColor),A?(this.hbar=N.attr({rx:d.barRadius,ry:d.barRadius,x:$,y:j,width:z,height:B}),this._hbarXMin=$+z/2,this._hbarTranslateMax=R-z):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var E=S>F,W=d.barWidth+2*d.barPad,G=d.barLength+2*d.barPad,L=k+T,q=M;L+W>v&&(L=v-W);var H=this.container.selectAll("rect.scrollbar-vertical").data(E?[0]:[]);H.exit().on(".drag",null).remove(),H.enter().append("rect").classed("scrollbar-vertical",!0).call(f.fill,d.barColor),E?(this.vbar=H.attr({rx:d.barRadius,ry:d.barRadius,x:L,y:q,width:W,height:G}),this._vbarYMin=q+G/2,this._vbarTranslateMax=F-G):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var V=this.id,te=b-.5,ee=E?x+W+.5:x+.5,U=_-.5,Q=A?w+B+.5:w+.5,Y=y._topdefs.selectAll("#"+V).data(A||E?[0]:[]);if(Y.exit().remove(),Y.enter().append("clipPath").attr("id",V).append("rect"),A||E?(this._clipRect=Y.select("rect").attr({x:Math.floor(te),y:Math.floor(U),width:Math.ceil(ee)-Math.floor(te),height:Math.ceil(Q)-Math.floor(U)}),this.container.call(s.setClipUrl,V,this.gd),this.bg.attr({x:k,y:M,width:T,height:S})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(s.setClipUrl,null),delete this._clipRect),A||E){var Z=l.behavior.drag().on("dragstart",function(){l.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Z);var X=l.behavior.drag().on("dragstart",function(){l.event.sourceEvent.preventDefault(),l.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));A&&this.hbar.on(".drag",null).call(X),E&&this.vbar.on(".drag",null).call(X)}this.setTranslate(p,m)},d.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(s.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},d.prototype._onBoxDrag=function(){var h=this.translateX,p=this.translateY;this.hbar&&(h-=l.event.dx),this.vbar&&(p-=l.event.dy),this.setTranslate(h,p)},d.prototype._onBoxWheel=function(){var h=this.translateX,p=this.translateY;this.hbar&&(h+=l.event.deltaY),this.vbar&&(p+=l.event.deltaY),this.setTranslate(h,p)},d.prototype._onBarDrag=function(){var h=this.translateX,p=this.translateY;if(this.hbar){var m=h+this._hbarXMin,y=m+this._hbarTranslateMax;h=(c.constrain(l.event.x,m,y)-m)/(y-m)*(this.position.w-this._box.w)}if(this.vbar){var v=p+this._vbarYMin,g=v+this._vbarTranslateMax;p=(c.constrain(l.event.y,v,g)-v)/(g-v)*(this.position.h-this._box.h)}this.setTranslate(h,p)},d.prototype.setTranslate=function(h,p){var m=this.position.w-this._box.w,y=this.position.h-this._box.h;if(h=c.constrain(h||0,0,m),p=c.constrain(p||0,0,y),this.translateX=h,this.translateY=p,this.container.call(s.setTranslate,this._box.l-this.position.l-h,this._box.t-this.position.t-p),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+h-.5),y:Math.floor(this.position.t+p-.5)}),this.hbar){var v=h/m;this.hbar.call(s.setTranslate,h+v*this._hbarTranslateMax,p)}if(this.vbar){var g=p/y;this.vbar.call(s.setTranslate,h,p+g*this._vbarTranslateMax)}}},18783:function(o){o.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},24695:function(o){o.exports={axisRefDescription:function(a,n,l){return["If set to a",a,"axis id (e.g. *"+a+"* or","*"+a+"2*), the `"+a+"` position refers to a",a,"coordinate. If set to *paper*, the `"+a+"`","position refers to the distance from the",n,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",n,"("+l+"). If set to a",a,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",n,"of the domain of that axis: e.g.,","*"+a+"2 domain* refers to the domain of the second",a," axis and a",a,"position of 0.5 refers to the","point between the",n,"and the",l,"of the domain of the","second",a,"axis."].join(" ")}}},31562:function(o){o.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},74808:function(o){o.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},37822:function(o){o.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},50606:function(o){o.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},32396:function(o,a){a.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],a.STYLE=a.CSS_DECLARATIONS.map(function(n){return n.join(": ")+"; "}).join("")},77922:function(o,a){a.xmlns="http://www.w3.org/2000/xmlns/",a.svg="http://www.w3.org/2000/svg",a.xlink="http://www.w3.org/1999/xlink",a.svgAttrs={xmlns:a.svg,"xmlns:xlink":a.xlink}},8729:function(o,a,n){a.version=n(11506).version,n(7417),n(98847);for(var l=n(73972),f=a.register=l.register,s=n(10641),c=Object.keys(s),d=0;d",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},99863:function(o,a){a.isLeftAnchor=function(n){return n.xanchor==="left"||n.xanchor==="auto"&&n.x<=.3333333333333333},a.isCenterAnchor=function(n){return n.xanchor==="center"||n.xanchor==="auto"&&n.x>.3333333333333333&&n.x<.6666666666666666},a.isRightAnchor=function(n){return n.xanchor==="right"||n.xanchor==="auto"&&n.x>=.6666666666666666},a.isTopAnchor=function(n){return n.yanchor==="top"||n.yanchor==="auto"&&n.y>=.6666666666666666},a.isMiddleAnchor=function(n){return n.yanchor==="middle"||n.yanchor==="auto"&&n.y>.3333333333333333&&n.y<.6666666666666666},a.isBottomAnchor=function(n){return n.yanchor==="bottom"||n.yanchor==="auto"&&n.y<=.3333333333333333}},26348:function(o,a,n){var l=n(64872),f=l.mod,s=l.modHalf,c=Math.PI,d=2*c;function h(v){return Math.abs(v[1]-v[0])>d-1e-14}function p(v,g){return s(g-v,d)}function m(v,g){if(h(g))return!0;var b,x;g[0](x=f(x,d))&&(x+=d);var _=f(v,d),w=_+d;return _>=b&&_<=x||w>=b&&w<=x}function y(v,g,b,x,_,w,k){_=_||0,w=w||0;var T,M,S,C,P,D=h([b,x]);function O(z,B){return[z*Math.cos(B)+_,w-z*Math.sin(B)]}D?(T=0,M=c,S=d):b=_&&v<=w);var _,w},pathArc:function(v,g,b,x,_){return y(null,v,g,b,x,_,0)},pathSector:function(v,g,b,x,_){return y(null,v,g,b,x,_,1)},pathAnnulus:function(v,g,b,x,_,w){return y(v,g,b,x,_,w,1)}}},73627:function(o,a){var n=Array.isArray,l=ArrayBuffer,f=DataView;function s(h){return l.isView(h)&&!(h instanceof f)}function c(h){return n(h)||s(h)}function d(h,p,m){if(c(h)){if(c(h[0])){for(var y=m,v=0;vw.max?x.set(_):x.set(+b)}},integer:{coerceFunction:function(b,x,_,w){b%1||!l(b)||w.min!==void 0&&bw.max?x.set(_):x.set(+b)}},string:{coerceFunction:function(b,x,_,w){if(typeof b!="string"){var k=typeof b=="number";w.strict!==!0&&k?x.set(String(b)):x.set(_)}else w.noBlank&&!b?x.set(_):x.set(b)}},color:{coerceFunction:function(b,x,_){f(b).isValid()?x.set(b):x.set(_)}},colorlist:{coerceFunction:function(b,x,_){Array.isArray(b)&&b.length&&b.every(function(w){return f(w).isValid()})?x.set(b):x.set(_)}},colorscale:{coerceFunction:function(b,x,_){x.set(c.get(b,_))}},angle:{coerceFunction:function(b,x,_){b==="auto"?x.set("auto"):l(b)?x.set(y(+b,360)):x.set(_)}},subplotid:{coerceFunction:function(b,x,_,w){var k=w.regex||m(_);typeof b=="string"&&k.test(b)?x.set(b):x.set(_)},validateFunction:function(b,x){var _=x.dflt;return b===_||typeof b=="string"&&!!m(_).test(b)}},flaglist:{coerceFunction:function(b,x,_,w){if((w.extras||[]).indexOf(b)===-1)if(typeof b=="string"){for(var k=b.split("+"),T=0;T=l&&N<=f?N:m}if(typeof N!="string"&&typeof N!="number")return m;N=String(N);var q=S(E),H=N.charAt(0);!q||H!=="G"&&H!=="g"||(N=N.substr(1),E="");var V=q&&E.substr(0,7)==="chinese",te=N.match(V?T:k);if(!te)return m;var ee=te[1],U=te[3]||"1",Q=Number(te[5]||1),Y=Number(te[7]||0),Z=Number(te[9]||0),X=Number(te[11]||0);if(q){if(ee.length===2)return m;var re;ee=Number(ee);try{var ie=_.getComponentMethod("calendars","getCal")(E);if(V){var le=U.charAt(U.length-1)==="i";U=parseInt(U,10),re=ie.newDate(ee,ie.toMonthIndex(ee,U,le),Q)}else re=ie.newDate(ee,Number(U),Q)}catch{return m}return re?(re.toJD()-x)*y+Y*v+Z*g+X*b:m}ee=ee.length===2?(Number(ee)+2e3-M)%100+M:Number(ee),U-=1;var se=new Date(Date.UTC(2e3,U,Q,Y,Z));return se.setUTCFullYear(ee),se.getUTCMonth()!==U||se.getUTCDate()!==Q?m:se.getTime()+X*b},l=a.MIN_MS=a.dateTime2ms("-9999"),f=a.MAX_MS=a.dateTime2ms("9999-12-31 23:59:59.9999"),a.isDateTime=function(N,E){return a.dateTime2ms(N,E)!==m};var P=90*y,D=3*v,O=5*g;function R(N,E,W,G,L){if((E||W||G||L)&&(N+=" "+C(E,2)+":"+C(W,2),(G||L)&&(N+=":"+C(G,2),L))){for(var q=4;L%10==0;)q-=1,L/=10;N+="."+C(L,q)}return N}a.ms2DateTime=function(N,E,W){if(typeof N!="number"||!(N>=l&&N<=f))return m;E||(E=0);var G,L,q,H,V,te,ee=Math.floor(10*h(N+.05,1)),U=Math.round(N-ee/10);if(S(W)){var Q=Math.floor(U/y)+x,Y=Math.floor(h(N,y));try{G=_.getComponentMethod("calendars","getCal")(W).fromJD(Q).formatDate("yyyy-mm-dd")}catch{G=w("G%Y-%m-%d")(new Date(U))}if(G.charAt(0)==="-")for(;G.length<11;)G="-0"+G.substr(1);else for(;G.length<10;)G="0"+G;L=E=l+y&&N<=f-y))return m;var E=Math.floor(10*h(N+.05,1)),W=new Date(Math.round(N-E/10));return R(s("%Y-%m-%d")(W),W.getHours(),W.getMinutes(),W.getSeconds(),10*W.getUTCMilliseconds()+E)},a.cleanDate=function(N,E,W){if(N===m)return E;if(a.isJSDate(N)||typeof N=="number"&&isFinite(N)){if(S(W))return d.error("JS Dates and milliseconds are incompatible with world calendars",N),E;if(!(N=a.ms2DateTimeLocal(+N))&&E!==void 0)return E}else if(!a.isDateTime(N,W))return d.error("unrecognized date",N),E;return N};var F=/%\d?f/g,A=/%h/g,z={1:"1",2:"1",3:"2",4:"2"};function B(N,E,W,G){N=N.replace(F,function(q){var H=Math.min(+q.charAt(1)||6,6);return(E/1e3%1+2).toFixed(H).substr(2).replace(/0+$/,"")||"0"});var L=new Date(Math.floor(E+.05));if(N=N.replace(A,function(){return z[W("%q")(L)]}),S(G))try{N=_.getComponentMethod("calendars","worldCalFmt")(N,E,G)}catch{return"Invalid"}return W(N)(L)}var $=[59,59.9,59.99,59.999,59.9999];a.formatDate=function(N,E,W,G,L,q){if(L=S(L)&&L,!E)if(W==="y")E=q.year;else if(W==="m")E=q.month;else{if(W!=="d")return function(H,V){var te=h(H+.05,y),ee=C(Math.floor(te/v),2)+":"+C(h(Math.floor(te/g),60),2);if(V!=="M"){c(V)||(V=0);var U=(100+Math.min(h(H/b,60),$[V])).toFixed(V).substr(1);V>0&&(U=U.replace(/0+$/,"").replace(/[\.]$/,"")),ee+=":"+U}return ee}(N,W)+` `+B(q.dayMonthYear,N,G,L);E=q.dayMonth+` -`+q.year}return B(E,N,G,L)};var j=3*y;a.incrementMonth=function(N,E,W){W=S(W)&&W;var G=h(N,y);if(N=Math.round(N-G),W)try{var L=Math.round(N/y)+x,q=_.getComponentMethod("calendars","getCal")(W),H=q.fromJD(L);return E%12?q.add(H,E,"m"):q.add(H,E/12,"y"),(H.toJD()-x)*y+G}catch{d.error("invalid ms "+N+" in calendar "+W)}var V=new Date(N+j);return V.setUTCMonth(V.getUTCMonth()+E)+G-j},a.findExactDates=function(N,E){for(var W,G,L=0,q=0,H=0,V=0,te=S(E)&&_.getComponentMethod("calendars","getCal")(E),ee=0;ee1||D<0||D>1?null:{x:p+w*D,y:m+M*D}}function h(p,m,y,v,g){var b=v*p+g*m;if(b<0)return v*v+g*g;if(b>y){var x=v-p,_=g-m;return x*x+_*_}var w=v*m-g*p;return w*w/y}a.segmentsIntersect=d,a.segmentDistance=function(p,m,y,v,g,b,x,_){if(d(p,m,y,v,g,b,x,_))return 0;var w=y-p,k=v-m,T=x-g,M=_-b,S=w*w+k*k,C=T*T+M*M,P=Math.min(h(w,k,S,g-p,b-m),h(w,k,S,x-p,_-m),h(T,M,C,p-g,m-b),h(T,M,C,y-g,v-b));return Math.sqrt(P)},a.getTextLocation=function(p,m,y,v){if(p===f&&v===s||(l={},f=p,s=v),l[y])return l[y];var g=p.getPointAtLength(u(y-v/2,m)),b=p.getPointAtLength(u(y+v/2,m)),x=Math.atan((b.y-g.y)/(b.x-g.x)),_=p.getPointAtLength(u(y,m)),w={x:(4*_.x+g.x+b.x)/6,y:(4*_.y+g.y+b.y)/6,theta:x};return l[y]=w,w},a.clearLocationCache=function(){f=null},a.getVisibleSegment=function(p,m,y){var v,g,b=m.left,x=m.right,_=m.top,w=m.bottom,k=0,T=p.getTotalLength(),M=T;function S(P){var D=p.getPointAtLength(P);P===0?v=D:P===T&&(g=D);var O=D.xx?D.x-x:0,R=D.y<_?_-D.y:D.y>w?D.y-w:0;return Math.sqrt(O*O+R*R)}for(var C=S(k);C;){if((k+=C+y)>M)return;C=S(k)}for(C=S(M);C;){if(k>(M-=C+y))return;C=S(M)}return{min:k,max:M,len:M-k,total:T,isClosed:k===0&&M===T&&Math.abs(v.x-g.x)<.1&&Math.abs(v.y-g.y)<.1}},a.findPointOnPath=function(p,m,y,v){for(var g,b,x,_=(v=v||{}).pathLength||p.getTotalLength(),w=v.tolerance||.001,k=v.iterationLimit||30,T=p.getPointAtLength(0)[y]>p.getPointAtLength(_)[y]?-1:1,M=0,S=0,C=_;M0?C=g:S=g,M++}return b}},23389:function(o){o.exports=function(a){return a}},39240:function(o){o.exports=function(a,n){if(!n)return a;var l=1/Math.abs(n),f=l>1?(l*a+l*n)/l:a+n,s=String(f).length;if(s>16){var u=String(n).length;if(s>=String(a).length+u){var d=parseFloat(f).toPrecision(12);d.indexOf("e+")===-1&&(f=+d)}}return f}},71828:function(o,a,n){var l=n(39898),f=n(84096).g0,s=n(60721).WU,u=n(92770),d=n(50606),h=d.FP_SAFE,p=-h,m=d.BADNUM,y=o.exports={};y.adjustFormat=function(Y){return!Y||/^\d[.]\df/.test(Y)||/[.]\d%/.test(Y)?Y:Y==="0.f"?"~f":/^\d%/.test(Y)?"~%":/^\ds/.test(Y)?"~s":!/^[~,.0$]/.test(Y)&&/[&fps]/.test(Y)?"~"+Y:Y};var v={};y.warnBadFormat=function(Y){var Z=String(Y);v[Z]||(v[Z]=1,y.warn('encountered bad format: "'+Z+'"'))},y.noFormat=function(Y){return String(Y)},y.numberFormat=function(Y){var Z;try{Z=s(y.adjustFormat(Y))}catch{return y.warnBadFormat(Y),y.noFormat}return Z},y.nestedProperty=n(65487),y.keyedContainer=n(66636),y.relativeAttr=n(6962),y.isPlainObject=n(41965),y.toLogRange=n(58163),y.relinkPrivateKeys=n(51332);var g=n(73627);y.isTypedArray=g.isTypedArray,y.isArrayOrTypedArray=g.isArrayOrTypedArray,y.isArray1D=g.isArray1D,y.ensureArray=g.ensureArray,y.concat=g.concat,y.maxRowLength=g.maxRowLength,y.minRowLength=g.minRowLength;var b=n(64872);y.mod=b.mod,y.modHalf=b.modHalf;var x=n(96554);y.valObjectMeta=x.valObjectMeta,y.coerce=x.coerce,y.coerce2=x.coerce2,y.coerceFont=x.coerceFont,y.coercePattern=x.coercePattern,y.coerceHoverinfo=x.coerceHoverinfo,y.coerceSelectionMarkerOpacity=x.coerceSelectionMarkerOpacity,y.validate=x.validate;var _=n(41631);y.dateTime2ms=_.dateTime2ms,y.isDateTime=_.isDateTime,y.ms2DateTime=_.ms2DateTime,y.ms2DateTimeLocal=_.ms2DateTimeLocal,y.cleanDate=_.cleanDate,y.isJSDate=_.isJSDate,y.formatDate=_.formatDate,y.incrementMonth=_.incrementMonth,y.dateTick0=_.dateTick0,y.dfltRange=_.dfltRange,y.findExactDates=_.findExactDates,y.MIN_MS=_.MIN_MS,y.MAX_MS=_.MAX_MS;var w=n(65888);y.findBin=w.findBin,y.sorterAsc=w.sorterAsc,y.sorterDes=w.sorterDes,y.distinctVals=w.distinctVals,y.roundUp=w.roundUp,y.sort=w.sort,y.findIndexOfMin=w.findIndexOfMin,y.sortObjectKeys=n(78607);var k=n(80038);y.aggNums=k.aggNums,y.len=k.len,y.mean=k.mean,y.median=k.median,y.midRange=k.midRange,y.variance=k.variance,y.stdev=k.stdev,y.interp=k.interp;var T=n(35657);y.init2dArray=T.init2dArray,y.transposeRagged=T.transposeRagged,y.dot=T.dot,y.translationMatrix=T.translationMatrix,y.rotationMatrix=T.rotationMatrix,y.rotationXYMatrix=T.rotationXYMatrix,y.apply3DTransform=T.apply3DTransform,y.apply2DTransform=T.apply2DTransform,y.apply2DTransform2=T.apply2DTransform2,y.convertCssMatrix=T.convertCssMatrix,y.inverseTransformMatrix=T.inverseTransformMatrix;var M=n(26348);y.deg2rad=M.deg2rad,y.rad2deg=M.rad2deg,y.angleDelta=M.angleDelta,y.angleDist=M.angleDist,y.isFullCircle=M.isFullCircle,y.isAngleInsideSector=M.isAngleInsideSector,y.isPtInsideSector=M.isPtInsideSector,y.pathArc=M.pathArc,y.pathSector=M.pathSector,y.pathAnnulus=M.pathAnnulus;var S=n(99863);y.isLeftAnchor=S.isLeftAnchor,y.isCenterAnchor=S.isCenterAnchor,y.isRightAnchor=S.isRightAnchor,y.isTopAnchor=S.isTopAnchor,y.isMiddleAnchor=S.isMiddleAnchor,y.isBottomAnchor=S.isBottomAnchor;var C=n(87642);y.segmentsIntersect=C.segmentsIntersect,y.segmentDistance=C.segmentDistance,y.getTextLocation=C.getTextLocation,y.clearLocationCache=C.clearLocationCache,y.getVisibleSegment=C.getVisibleSegment,y.findPointOnPath=C.findPointOnPath;var P=n(1426);y.extendFlat=P.extendFlat,y.extendDeep=P.extendDeep,y.extendDeepAll=P.extendDeepAll,y.extendDeepNoArrays=P.extendDeepNoArrays;var D=n(47769);y.log=D.log,y.warn=D.warn,y.error=D.error;var O=n(30587);y.counterRegex=O.counter;var R=n(79990);y.throttle=R.throttle,y.throttleDone=R.done,y.clearThrottle=R.clear;var F=n(24401);function A(Y){var Z={};for(var X in Y)for(var re=Y[X],ie=0;ieh||Y=Z)&&u(Y)&&Y>=0&&Y%1==0},y.noop=n(64213),y.identity=n(23389),y.repeat=function(Y,Z){for(var X=new Array(Z),re=0;reX?Math.max(X,Math.min(Z,Y)):Math.max(Z,Math.min(X,Y))},y.bBoxIntersect=function(Y,Z,X){return X=X||0,Y.left<=Z.right+X&&Z.left<=Y.right+X&&Y.top<=Z.bottom+X&&Z.top<=Y.bottom+X},y.simpleMap=function(Y,Z,X,re,ie){for(var le=Y.length,se=new Array(le),pe=0;pe=Math.pow(2,X)?ie>10?(y.warn("randstr failed uniqueness"),Te):Y(Z,X,re,(ie||0)+1):Te},y.OptionControl=function(Y,Z){Y||(Y={}),Z||(Z="opt");var X={optionList:[],_newoption:function(re){re[Z]=Y,X[re.name]=re,X.optionList.push(re)}};return X["_"+Z]=Y,X},y.smooth=function(Y,Z){if((Z=Math.round(Z)||0)<2)return Y;var X,re,ie,le,se=Y.length,pe=2*se,Te=2*Z-1,Se=new Array(Te),Oe=new Array(se);for(X=0;X=pe&&(ie-=pe*Math.floor(ie/pe)),ie<0?ie=-1-ie:ie>=se&&(ie=pe-1-ie),le+=Y[ie]*Se[re];Oe[X]=le}return Oe},y.syncOrAsync=function(Y,Z,X){var re;function ie(){return y.syncOrAsync(Y,Z,X)}for(;Y.length;)if((re=(0,Y.splice(0,1)[0])(Z))&&re.then)return re.then(ie);return X&&X(Z)},y.stripTrailingSlash=function(Y){return Y.substr(-1)==="/"?Y.substr(0,Y.length-1):Y},y.noneOrAll=function(Y,Z,X){if(Y){var re,ie=!1,le=!0;for(re=0;re0?ie:0})},y.fillArray=function(Y,Z,X,re){if(re=re||y.identity,y.isArrayOrTypedArray(Y))for(var ie=0;ie1?ie+se[1]:"";if(le&&(se.length>1||pe.length>4||X))for(;re.test(pe);)pe=pe.replace(re,"$1"+le+"$2");return pe+Te},y.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var W=/^\w*$/;y.templateString=function(Y,Z){var X={};return Y.replace(y.TEMPLATE_STRING_REGEX,function(re,ie){var le;return W.test(ie)?le=Z[ie]:(X[ie]=X[ie]||y.nestedProperty(Z,ie).get,le=X[ie]()),y.isValidTextValue(le)?le:""})};var G={max:10,count:0,name:"hovertemplate"};y.hovertemplateString=function(){return te.apply(G,arguments)};var L={max:10,count:0,name:"texttemplate"};y.texttemplateString=function(){return te.apply(L,arguments)};var q=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/,H={max:10,count:0,name:"texttemplate",parseMultDiv:!0};y.texttemplateStringForShapes=function(){return te.apply(H,arguments)};var V=/^[:|\|]/;function te(Y,Z,X){var re=this,ie=arguments;Z||(Z={});var le={};return Y.replace(y.TEMPLATE_STRING_REGEX,function(se,pe,Te){var Se=pe==="_xother"||pe==="_yother",Oe=pe==="_xother_"||pe==="_yother_",Me=pe==="xother_"||pe==="yother_",ce=pe==="xother"||pe==="yother"||Se||Me||Oe,ye=pe;(Se||Oe)&&(ye=ye.substring(1)),(Me||Oe)&&(ye=ye.substring(0,ye.length-1));var J,ne,de,xe=null,ue=null;if(re.parseMultDiv){var ge=function(Ae){var Ee=Ae.match(q);return Ee?{key:Ee[1],op:Ee[2],number:Number(Ee[3])}:{key:Ae,op:null,number:null}}(ye);ye=ge.key,xe=ge.op,ue=ge.number}if(ce){if((J=Z[ye])===void 0)return""}else for(de=3;de=48&&se<=57,Se=pe>=48&&pe<=57;if(Te&&(re=10*re+se-48),Se&&(ie=10*ie+pe-48),!Te||!Se){if(re!==ie)return re-ie;if(se!==pe)return se-pe}}return ie-re};var ee=2e9;y.seedPseudoRandom=function(){ee=2e9},y.pseudoRandom=function(){var Y=ee;return ee=(69069*ee+1)%4294967296,Math.abs(ee-Y)<429496729?y.pseudoRandom():ee/4294967296},y.fillText=function(Y,Z,X){var re=Array.isArray(X)?function(se){X.push(se)}:function(se){X.text=se},ie=y.extractOption(Y,Z,"htx","hovertext");if(y.isValidTextValue(ie))return re(ie);var le=y.extractOption(Y,Z,"tx","text");return y.isValidTextValue(le)?re(le):void 0},y.isValidTextValue=function(Y){return Y||Y===0},y.formatPercent=function(Y,Z){Z=Z||0;for(var X=(Math.round(100*Y*Math.pow(10,Z))*Math.pow(.1,Z)).toFixed(Z)+"%",re=0;re1&&(Se=1):Se=0,y.strTranslate(ie-Se*(X+se),le-Se*(re+pe))+y.strScale(Se)+(Te?"rotate("+Te+(Z?"":" "+X+" "+re)+")":"")},y.setTransormAndDisplay=function(Y,Z){Y.attr("transform",y.getTextTransform(Z)),Y.style("display",Z.scale?null:"none")},y.ensureUniformFontSize=function(Y,Z){var X=y.extendFlat({},Z);return X.size=Math.max(Z.size,Y._fullLayout.uniformtext.minsize||0),X},y.join2=function(Y,Z,X){var re=Y.length;return re>1?Y.slice(0,-1).join(Z)+X+Y[re-1]:Y.join(Z)},y.bigFont=function(Y){return Math.round(1.2*Y)};var U=y.getFirefoxVersion(),Q=U!==null&&U<86;y.getPositionFromD3Event=function(){return Q?[l.event.layerX,l.event.layerY]:[l.event.offsetX,l.event.offsetY]}},41965:function(o){o.exports=function(a){return window&&window.process&&window.process.versions?Object.prototype.toString.call(a)==="[object Object]":Object.prototype.toString.call(a)==="[object Object]"&&Object.getPrototypeOf(a).hasOwnProperty("hasOwnProperty")}},66636:function(o,a,n){var l=n(65487),f=/^\w*$/;o.exports=function(s,u,d,h){var p,m,y;d=d||"name",h=h||"value";var v={};u&&u.length?(y=l(s,u),m=y.get()):m=s,u=u||"";var g={};if(m)for(p=0;p2)return v[w]=2|v[w],x.set(_,null);if(b){for(p=w;p1){var d=["LOG:"];for(u=0;u1){var h=[];for(u=0;u"),"long")}},s.warn=function(){var u;if(l.logging>0){var d=["WARN:"];for(u=0;u0){var h=[];for(u=0;u"),"stick")}},s.error=function(){var u;if(l.logging>0){var d=["ERROR:"];for(u=0;u0){var h=[];for(u=0;u"),"stick")}}},77310:function(o,a,n){var l=n(39898);o.exports=function(f,s,u){var d=f.selectAll("g."+u.replace(/\s/g,".")).data(s,function(p){return p[0].trace.uid});d.exit().remove(),d.enter().append("g").attr("class",u),d.order();var h=f.classed("rangeplot")?"nodeRangePlot3":"node3";return d.each(function(p){p[0][h]=l.select(this)}),d}},35657:function(o,a,n){var l=n(79576);a.init2dArray=function(f,s){for(var u=new Array(f),d=0;dn/2?a-Math.round(a/n)*n:a}}},65487:function(o,a,n){var l=n(92770),f=n(73627).isArrayOrTypedArray;function s(v,g){return function(){var b,x,_,w,k,T=v;for(w=0;w/g),x=0;xm||M===f||Mv||k&&g(w))}:function(w,k){var T=w[0],M=w[1];if(T===f||Tm||M===f||Mv)return!1;var S,C,P,D,O,R=h.length,F=h[0][0],A=h[0][1],z=0;for(S=1;SMath.max(C,F)||M>Math.max(P,A)))if(Mx||Math.abs(l(y,w))>p)return!0;return!1},s.filter=function(u,d){var h=[u[0]],p=0,m=0;function y(v){u.push(v);var g=h.length,b=p;h.splice(m+1);for(var x=b+1;x1&&y(u.pop()),{addPt:y,raw:u,filtered:h}}},45142:function(o,a,n){var l=n(92770),f=n(35791);o.exports=function(s){var u;if(typeof(u=s&&s.hasOwnProperty("userAgent")?s.userAgent:function(){var g;return typeof navigator<"u"&&(g=navigator.userAgent),g&&g.headers&&typeof g.headers["user-agent"]=="string"&&(g=g.headers["user-agent"]),g}())!="string")return!0;var d=f({ua:{headers:{"user-agent":u}},tablet:!0,featureDetect:!1});if(!d){for(var h=u.split(" "),p=1;p-1;m--){var y=h[m];if(y.substr(0,8)==="Version/"){var v=y.substr(8).split(".")[0];if(l(v)&&(v=+v),v>=13)return!0}}}return d}},75138:function(o){o.exports=function(a,n){if(n instanceof RegExp){for(var l=n.toString(),f=0;ff.queueLength&&(u.undoQueue.queue.shift(),u.undoQueue.index--))},startSequence:function(u){u.undoQueue=u.undoQueue||{index:0,queue:[],sequence:!1},u.undoQueue.sequence=!0,u.undoQueue.beginSequence=!0},stopSequence:function(u){u.undoQueue=u.undoQueue||{index:0,queue:[],sequence:!1},u.undoQueue.sequence=!1,u.undoQueue.beginSequence=!1},undo:function(u){var d,h;if(!(u.undoQueue===void 0||isNaN(u.undoQueue.index)||u.undoQueue.index<=0)){for(u.undoQueue.index--,d=u.undoQueue.queue[u.undoQueue.index],u.undoQueue.inSequence=!0,h=0;h=u.undoQueue.queue.length)){for(d=u.undoQueue.queue[u.undoQueue.index],u.undoQueue.inSequence=!0,h=0;hg}function y(v,g){return v>=g}a.findBin=function(v,g,b){if(l(g.start))return b?Math.ceil((v-g.start)/g.size-d)-1:Math.floor((v-g.start)/g.size+d);var x,_,w=0,k=g.length,T=0,M=k>1?(g[k-1]-g[0])/(k-1):1;for(_=M>=0?b?h:p:b?y:m,v+=M*d*(b?-1:1)*(M>=0?1:-1);w90&&f.log("Long binary search..."),w-1},a.sorterAsc=function(v,g){return v-g},a.sorterDes=function(v,g){return g-v},a.distinctVals=function(v){var g,b=v.slice();for(b.sort(a.sorterAsc),g=b.length-1;g>-1&&b[g]===u;g--);for(var x,_=b[g]-b[0]||1,w=_/(g||1)/1e4,k=[],T=0;T<=g;T++){var M=b[T],S=M-x;x===void 0?(k.push(M),x=M):S>w&&(_=Math.min(_,S),k.push(M),x=M)}return{vals:k,minDiff:_}},a.roundUp=function(v,g,b){for(var x,_=0,w=g.length-1,k=0,T=b?0:1,M=b?1:0,S=b?Math.ceil:Math.floor;_0&&(x=1),b&&x)return v.sort(g)}return x?v:v.reverse()},a.findIndexOfMin=function(v,g){g=g||s;for(var b,x=1/0,_=0;_d.length)&&(h=d.length),l(u)||(u=!1),f(d[0])){for(m=new Array(h),p=0;ps.length-1)return s[s.length-1];var d=u%1;return d*s[Math.ceil(u)]+(1-d)*s[Math.floor(u)]}},3883:function(o,a,n){var l=n(32396),f=n(91424),s=n(71828),u=null;o.exports=function(){if(u!==null)return u;u=!1;var d=s.isIE()||s.isSafari()||s.isIOS();if(window.navigator.userAgent&&!d){var h=Array.from(l.CSS_DECLARATIONS).reverse(),p=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof p=="function")u=h.some(function(v){return p.apply(null,v)});else{var m=f.tester.append("image").attr("style",l.STYLE),y=window.getComputedStyle(m.node()).imageRendering;u=h.some(function(v){var g=v[1];return y===g||y===g.toLowerCase()}),m.remove()}}return u}},63893:function(o,a,n){var l=n(39898),f=n(71828),s=f.strTranslate,u=n(77922),d=n(18783).LINE_SPACING,h=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;a.convertToTspans=function(N,E,W){var G=N.text(),L=!N.attr("data-notex")&&E&&E._context.typesetMath&&typeof MathJax<"u"&&G.match(h),q=l.select(N.node().parentNode);if(!q.empty()){var H=N.attr("class")?N.attr("class").split(" ")[0]:"text";return H+="-math",q.selectAll("svg."+H).remove(),q.selectAll("g."+H+"-group").remove(),N.style("display",null).attr({"data-unformatted":G,"data-math":"N"}),L?(E&&E._promises||[]).push(new Promise(function(te){N.style("display","none");var ee=parseInt(N.node().style.fontSize,10),U={fontSize:ee};(function(Q,Y,Z){var X,re,ie,le,se=parseInt((MathJax.version||"").split(".")[0]);if(se===2||se===3){var pe=function(){var Se="math-output-"+f.randstr({},64),Oe=(le=l.select("body").append("div").attr({id:Se}).style({visibility:"hidden",position:"absolute","font-size":Y.fontSize+"px"}).text(Q.replace(p,"\\lt ").replace(m,"\\gt "))).node();return se===2?MathJax.Hub.Typeset(Oe):MathJax.typeset([Oe])},Te=function(){var Se=le.select(se===2?".MathJax_SVG":".MathJax"),Oe=!Se.empty()&&le.select("svg").node();if(Oe){var Me,ce=Oe.getBoundingClientRect();Me=se===2?l.select("body").select("#MathJax_SVG_glyphs"):Se.select("defs"),Z(Se,Me,ce)}else f.log("There was an error in the tex syntax.",Q),Z();le.remove()};se===2?MathJax.Hub.Queue(function(){return re=f.extendDeepAll({},MathJax.Hub.config),ie=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:y},displayAlign:"left"})},function(){if((X=MathJax.Hub.config.menuSettings.renderer)!=="SVG")return MathJax.Hub.setRenderer("SVG")},pe,Te,function(){if(X!=="SVG")return MathJax.Hub.setRenderer(X)},function(){return ie!==void 0&&(MathJax.Hub.processSectionDelay=ie),MathJax.Hub.Config(re)}):se===3&&(re=f.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=y,(X=MathJax.config.startup.output)!=="svg"&&(MathJax.config.startup.output="svg"),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){pe(),Te(),X!=="svg"&&(MathJax.config.startup.output=X),MathJax.config=re}))}else f.warn("No MathJax version:",MathJax.version)})(L[2],U,function(Q,Y,Z){q.selectAll("svg."+H).remove(),q.selectAll("g."+H+"-group").remove();var X=Q&&Q.select("svg");if(!X||!X.node())return V(),void te();var re=q.append("g").classed(H+"-group",!0).attr({"pointer-events":"none","data-unformatted":G,"data-math":"Y"});re.node().appendChild(X.node()),Y&&Y.node()&&X.node().insertBefore(Y.node().cloneNode(!0),X.node().firstChild);var ie=Z.width,le=Z.height;X.attr({class:H,height:le,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var se=N.node().style.fill||"black",pe=X.select("g");pe.attr({fill:se,stroke:se});var Te=pe.node().getBoundingClientRect(),Se=Te.width,Oe=Te.height;(Se>ie||Oe>le)&&(X.style("overflow","hidden"),Se=(Te=X.node().getBoundingClientRect()).width,Oe=Te.height);var Me=+N.attr("x"),ce=+N.attr("y"),ye=-(ee||N.node().getBoundingClientRect().height)/4;if(H[0]==="y")re.attr({transform:"rotate("+[-90,Me,ce]+")"+s(-Se/2,ye-Oe/2)});else if(H[0]==="l")ce=ye-Oe/2;else if(H[0]==="a"&&H.indexOf("atitle")!==0)Me=0,ce=ye;else{var J=N.attr("text-anchor");Me-=Se*(J==="middle"?.5:J==="end"?1:0),ce=ce+ye-Oe/2}X.attr({x:Me,y:ce}),W&&W.call(N,re),te(re)})})):V(),N}function V(){q.empty()||(H=N.attr("class")+"-math",q.select("svg."+H).remove()),N.text("").style("white-space","pre");var te=function(ee,U){U=U.replace(w," ");var Q,Y=!1,Z=[],X=-1;function re(){X++;var ue=document.createElementNS(u.svg,"tspan");l.select(ue).attr({class:"line",dy:X*d+"em"}),ee.appendChild(ue),Q=ue;var ge=Z;if(Z=[{node:ue}],ge.length>1)for(var be=1;be doesnt match end tag <"+ue+">. Pretending it did match.",U),Q=Z[Z.length-1].node}else f.log("Ignoring unexpected end tag .",U)}M.test(U)?re():(Q=ee,Z=[{node:ee}]);for(var pe=U.split(k),Te=0;Te|>|>)/g,y=[["$","$"],["\\(","\\)"]],v={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},g={sub:"0.3em",sup:"-0.6em"},b={sub:"-0.21em",sup:"0.42em"},x="​",_=["http:","https:","mailto:","",void 0,":"],w=a.NEWLINES=/(\r\n?|\n)/g,k=/(<[^<>]*>)/,T=/<(\/?)([^ >]*)(\s+(.*))?>/i,M=//i;a.BR_TAG_ALL=//gi;var S=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,C=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,P=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,D=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function O(N,E){if(!N)return null;var W=N.match(E),G=W&&(W[3]||W[4]);return G&&z(G)}var R=/(^|;)\s*color:/;a.plainText=function(N,E){for(var W=(E=E||{}).len!==void 0&&E.len!==-1?E.len:1/0,G=E.allowedTags!==void 0?E.allowedTags:["br"],L=N.split(k),q=[],H="",V=0,te=0;te3?q.push(ee.substr(0,Z-3)+"..."):q.push(ee.substr(0,Z));break}H=""}}return q.join("")};var F={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},A=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function z(N){return N.replace(A,function(E,W){return(W.charAt(0)==="#"?function(G){if(!(G>1114111)){var L=String.fromCodePoint;if(L)return L(G);var q=String.fromCharCode;return G<=65535?q(G):q(55232+(G>>10),G%1024+56320)}}(W.charAt(1)==="x"?parseInt(W.substr(2),16):parseInt(W.substr(1),10)):F[W])||E})}function B(N){var E=encodeURI(decodeURI(N)),W=document.createElement("a"),G=document.createElement("a");W.href=N,G.href=E;var L=W.protocol,q=G.protocol;return _.indexOf(L)!==-1&&_.indexOf(q)!==-1?E:""}function $(N,E,W){var G,L,q,H=W.horizontalAlign,V=W.verticalAlign||"top",te=N.node().getBoundingClientRect(),ee=E.node().getBoundingClientRect();return L=V==="bottom"?function(){return te.bottom-G.height}:V==="middle"?function(){return te.top+(te.height-G.height)/2}:function(){return te.top},q=H==="right"?function(){return te.right-G.width}:H==="center"?function(){return te.left+(te.width-G.width)/2}:function(){return te.left},function(){G=this.node().getBoundingClientRect();var U=q()-ee.left,Q=L()-ee.top,Y=W.gd||{};if(W.gd){Y._fullLayout._calcInverseTransform(Y);var Z=f.apply3DTransform(Y._fullLayout._invTransform)(U,Q);U=Z[0],Q=Z[1]}return this.style({top:Q+"px",left:U+"px","z-index":1e3}),this}}a.convertEntities=z,a.sanitizeHTML=function(N){N=N.replace(w," ");for(var E=document.createElement("p"),W=E,G=[],L=N.split(k),q=0;qd.ts+s?m():d.timer=setTimeout(function(){m(),d.timer=null},s)},a.done=function(f){var s=n[f];return s&&s.timer?new Promise(function(u){var d=s.onDone;s.onDone=function(){d&&d(),u(),s.onDone=null}}):Promise.resolve()},a.clear=function(f){if(f)l(n[f]),delete n[f];else for(var s in n)a.clear(s)}},58163:function(o,a,n){var l=n(92770);o.exports=function(f,s){if(f>0)return Math.log(f)/Math.LN10;var u=Math.log(Math.min(s[0],s[1]))/Math.LN10;return l(u)||(u=Math.log(Math.max(s[0],s[1]))/Math.LN10-6),u}},37815:function(o){o.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},92177:function(o){o.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{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"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},14458:function(o,a,n){var l=n(73972);o.exports=function(f){for(var s,u,d=l.layoutArrayContainers,h=l.layoutArrayRegexes,p=f.split("[")[0],m=0;m0&&u.log("Clearing previous rejected promises from queue."),C._promises=[]},a.cleanLayout=function(C){var P,D;C||(C={}),C.xaxis1&&(C.xaxis||(C.xaxis=C.xaxis1),delete C.xaxis1),C.yaxis1&&(C.yaxis||(C.yaxis=C.yaxis1),delete C.yaxis1),C.scene1&&(C.scene||(C.scene=C.scene1),delete C.scene1);var O=(d.subplotsRegistry.cartesian||{}).attrRegex,R=(d.subplotsRegistry.polar||{}).attrRegex,F=(d.subplotsRegistry.ternary||{}).attrRegex,A=(d.subplotsRegistry.gl3d||{}).attrRegex,z=Object.keys(C);for(P=0;P3?(Z.x=1.02,Z.xanchor="left"):Z.x<-2&&(Z.x=-.02,Z.xanchor="right"),Z.y>3?(Z.y=1.02,Z.yanchor="bottom"):Z.y<-2&&(Z.y=-.02,Z.yanchor="top")),b(C),C.dragmode==="rotate"&&(C.dragmode="orbit"),p.clean(C),C.template&&C.template.layout&&a.cleanLayout(C.template.layout),C},a.cleanData=function(C){for(var P=0;P0)return C.substr(0,P)}a.hasParent=function(C,P){for(var D=M(P);D;){if(D in C)return!0;D=M(D)}return!1};var S=["x","y","z"];a.clearAxisTypes=function(C,P,D){for(var O=0;O1&&s.warn("Full array edits are incompatible with other edits",x);var C=v[""][""];if(p(C))y.set(null);else{if(!Array.isArray(C))return s.warn("Unrecognized full array edit value",x,C),!0;y.set(C)}return!T&&(_(M,S),w(m),!0)}var P,D,O,R,F,A,z,B,$=Object.keys(v).map(Number).sort(u),j=y.get(),N=j||[],E=b(S,x).get(),W=[],G=-1,L=N.length;for(P=0;P<$.length;P++)if(R=v[O=$[P]],F=Object.keys(R),A=R[""],z=h(A),O<0||O>N.length-(z?0:1))s.warn("index out of range",x,O);else if(A!==void 0)F.length>1&&s.warn("Insertion & removal are incompatible with edits to the same index.",x,O),p(A)?W.push(O):z?(A==="add"&&(A={}),N.splice(O,0,A),E&&E.splice(O,0,{})):s.warn("Unrecognized full object edit value",x,O,A),G===-1&&(G=O);else for(D=0;D=0;P--)N.splice(W[P],1),E&&E.splice(W[P],1);if(N.length?j||y.set(N):y.set(null),T)return!1;if(_(M,S),k!==f){var q;if(G===-1)q=$;else{for(L=Math.max(N.length,L),q=[],P=0;P<$.length&&!((O=$[P])>=G);P++)q.push(O);for(P=G;P=ue.data.length||ke<-ue.data.length)throw new Error(be+" must be valid indices for gd.data.");if(ge.indexOf(ke,we+1)>-1||ke>=0&&ge.indexOf(-ue.data.length+ke)>-1||ke<0&&ge.indexOf(ue.data.length+ke)>-1)throw new Error("each index in "+be+" must be unique.")}}function E(ue,ge,be){if(!Array.isArray(ue.data))throw new Error("gd.data must be an array.");if(ge===void 0)throw new Error("currentIndices is a required argument.");if(Array.isArray(ge)||(ge=[ge]),N(ue,ge,"currentIndices"),be===void 0||Array.isArray(be)||(be=[be]),be!==void 0&&N(ue,be,"newIndices"),be!==void 0&&ge.length!==be.length)throw new Error("current and new indices must be of equal length.")}function W(ue,ge,be,we,ke){(function(qe,Ye,at,lt){var ct=u.isPlainObject(lt);if(!Array.isArray(qe.data))throw new Error("gd.data must be an array");if(!u.isPlainObject(Ye))throw new Error("update must be a key:value object");if(at===void 0)throw new Error("indices must be an integer or array of integers");for(var bt in N(qe,at,"indices"),Ye){if(!Array.isArray(Ye[bt])||Ye[bt].length!==at.length)throw new Error("attribute "+bt+" must be an array of length equal to indices array length");if(ct&&(!(bt in lt)||!Array.isArray(lt[bt])||lt[bt].length!==Ye[bt].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}})(ue,ge,be,we);for(var Ae=function(qe,Ye,at,lt){var ct,bt,ze,Ne,Qe,it=u.isPlainObject(lt),kt=[];for(var Je in Array.isArray(at)||(at=[at]),at=j(at,qe.data.length-1),Ye)for(var ut=0;ut-1&&be.indexOf("grouptitlefont")===-1?De(be,be.replace("titlefont","title.font")):be.indexOf("titleposition")>-1?De(be,be.replace("titleposition","title.position")):be.indexOf("titleside")>-1?De(be,be.replace("titleside","title.side")):be.indexOf("titleoffset")>-1&&De(be,be.replace("titleoffset","title.offset")):De(be,be.replace("title","title.text"));function De(Re,Ie){ue[Ie]=ue[Re],delete ue[Re]}}function U(ue,ge,be){ue=u.getGraphDiv(ue),P.clearPromiseQueue(ue);var we={};if(typeof ge=="string")we[ge]=be;else{if(!u.isPlainObject(ge))return u.warn("Relayout fail.",ge,be),Promise.reject();we=u.extendFlat({},ge)}Object.keys(we).length&&(ue.changed=!0);var ke=ie(ue,we),Ae=ke.flags;Ae.calc&&(ue.calcdata=void 0);var Ee=[v.previousPromises];Ae.layoutReplot?Ee.push(D.layoutReplot):Object.keys(we).length&&(Q(ue,Ae,ke)||v.supplyDefaults(ue),Ae.legend&&Ee.push(D.doLegend),Ae.layoutstyle&&Ee.push(D.layoutStyles),Ae.axrange&&Y(Ee,ke.rangesAltered),Ae.ticks&&Ee.push(D.doTicksRelayout),Ae.modebar&&Ee.push(D.doModeBar),Ae.camera&&Ee.push(D.doCamera),Ae.colorbars&&Ee.push(D.doColorBars),Ee.push(A)),Ee.push(v.rehover,v.redrag,v.reselect),p.add(ue,U,[ue,ke.undoit],U,[ue,ke.redoit]);var De=u.syncOrAsync(Ee,ue);return De&&De.then||(De=Promise.resolve(ue)),De.then(function(){return ue.emit("plotly_relayout",ke.eventData),ue})}function Q(ue,ge,be){var we,ke,Ae=ue._fullLayout;if(!ge.axrange)return!1;for(var Ee in ge)if(Ee!=="axrange"&&ge[Ee])return!1;var De=function(Ye,at){return u.coerce(we,ke,x,Ye,at)},Re={};for(var Ie in be.rangesAltered){var Be=g.id2name(Ie);if(we=ue.layout[Be],ke=Ae[Be],b(we,ke,De,Re),ke._matchGroup){for(var Ue in ke._matchGroup)if(Ue!==Ie){var qe=Ae[g.id2name(Ue)];qe.autorange=ke.autorange,qe.range=ke.range.slice(),qe._input.range=ke.range.slice()}}}return!0}function Y(ue,ge){var be=ge?function(we){var ke=[];for(var Ae in ge){var Ee=g.getFromId(we,Ae);if(ke.push(Ae),(Ee.ticklabelposition||"").indexOf("inside")!==-1&&Ee._anchorAxis&&ke.push(Ee._anchorAxis._id),Ee._matchGroup)for(var De in Ee._matchGroup)ge[De]||ke.push(De)}return g.draw(we,ke,{skipTitle:!0})}:function(we){return g.draw(we,"redraw")};ue.push(M,D.doAutoRangeAndConstraints,be,D.drawData,D.finalDraw)}var Z=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,X=/^[xyz]axis[0-9]*\.autorange$/,re=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function ie(ue,ge){var be,we,ke,Ae=ue.layout,Ee=ue._fullLayout,De=Ee._guiEditing,Re=H(Ee._preGUI,De),Ie=Object.keys(ge),Be=g.list(ue),Ue=u.extendDeepAll({},ge),qe={};for(ee(ge),Ie=Object.keys(ge),we=0;we0&&typeof ut.parts[It]!="string";)It--;var Mt=ut.parts[It],zt=ut.parts[It-1]+"."+Mt,wt=ut.parts.slice(0,It).join("."),ve=d(ue.layout,wt).get(),_e=d(Ee,wt).get(),Ve=ut.get();if(pt!==void 0){bt[Je]=pt,ze[Je]=Mt==="reverse"?pt:q(Ve);var We=y.getLayoutValObject(Ee,ut.parts);if(We&&We.impliedEdits&&pt!==null)for(var Ze in We.impliedEdits)Ne(u.relativeAttr(Je,Ze),We.impliedEdits[Ze]);if(["width","height"].indexOf(Je)!==-1)if(pt){Ne("autosize",null);var Ge=Je==="height"?"width":"height";Ne(Ge,Ee[Ge])}else Ee[Je]=ue._initialAutoSize[Je];else if(Je==="autosize")Ne("width",pt?null:Ee.width),Ne("height",pt?null:Ee.height);else if(zt.match(Z))kt(zt),d(Ee,wt+"._inputRange").set(null);else if(zt.match(X)){kt(zt),d(Ee,wt+"._inputRange").set(null);var Ke=d(Ee,wt).get();Ke._inputDomain&&(Ke._input.domain=Ke._inputDomain.slice())}else zt.match(re)&&d(Ee,wt+"._inputDomain").set(null);if(Mt==="type"){Qe=ve;var nt=_e.type==="linear"&&pt==="log",st=_e.type==="log"&&pt==="linear";if(nt||st){if(Qe&&Qe.range)if(_e.autorange)nt&&(Qe.range=Qe.range[1]>Qe.range[0]?[1,2]:[2,1]);else{var mt=Qe.range[0],tt=Qe.range[1];nt?(mt<=0&&tt<=0&&Ne(wt+".autorange",!0),mt<=0?mt=tt/1e6:tt<=0&&(tt=mt/1e6),Ne(wt+".range[0]",Math.log(mt)/Math.LN10),Ne(wt+".range[1]",Math.log(tt)/Math.LN10)):(Ne(wt+".range[0]",Math.pow(10,mt)),Ne(wt+".range[1]",Math.pow(10,tt)))}else Ne(wt+".autorange",!0);Array.isArray(Ee._subplots.polar)&&Ee._subplots.polar.length&&Ee[ut.parts[0]]&&ut.parts[1]==="radialaxis"&&delete Ee[ut.parts[0]]._subplot.viewInitial["radialaxis.range"],m.getComponentMethod("annotations","convertCoords")(ue,_e,pt,Ne),m.getComponentMethod("images","convertCoords")(ue,_e,pt,Ne)}else Ne(wt+".autorange",!0),Ne(wt+".range",null);d(Ee,wt+"._inputRange").set(null)}else if(Mt.match(R)){var Ft=d(Ee,Je).get(),Vt=(pt||{}).type;Vt&&Vt!=="-"||(Vt="linear"),m.getComponentMethod("annotations","convertCoords")(ue,Ft,Vt,Ne),m.getComponentMethod("images","convertCoords")(ue,Ft,Vt,Ne)}var St=C.containerArrayMatch(Je);if(St){be=St.array,we=St.index;var Nt=St.property,Dt=We||{editType:"calc"};we!==""&&Nt===""&&(C.isAddVal(pt)?ze[Je]=null:C.isRemoveVal(pt)?ze[Je]=(d(Ae,be).get()||[])[we]:u.warn("unrecognized full object value",ge)),O.update(ct,Dt),qe[be]||(qe[be]={});var gt=qe[be][we];gt||(gt=qe[be][we]={}),gt[Nt]=pt,delete ge[Je]}else Mt==="reverse"?(ve.range?ve.range.reverse():(Ne(wt+".autorange",!0),ve.range=[1,0]),_e.autorange?ct.calc=!0:ct.plot=!0):(Je==="dragmode"&&(pt===!1&&Ve!==!1||pt!==!1&&Ve===!1)||Ee._has("scatter-like")&&Ee._has("regl")&&Je==="dragmode"&&(pt==="lasso"||pt==="select")&&Ve!=="lasso"&&Ve!=="select"||Ee._has("gl2d")?ct.plot=!0:We?O.update(ct,We):ct.calc=!0,ut.set(pt))}}for(be in qe)C.applyContainerArrayChanges(ue,Re(Ae,be),qe[be],ct,Re)||(ct.plot=!0);for(var ht in it){var yt=(Qe=g.getFromId(ue,ht))&&Qe._constraintGroup;if(yt)for(var qt in ct.calc=!0,yt)it[qt]||(g.getFromId(ue,qt)._constraintShrinkable=!0)}(le(ue)||ge.height||ge.width)&&(ct.plot=!0);var Et=Ee.shapes;for(we=0;we1;)if(we.pop(),(be=d(ge,we.join(".")+".uirevision").get())!==void 0)return be;return ge.uirevision}function ce(ue,ge){for(var be=0;be=ke.length?ke[0]:ke[Ie]:ke}function De(Ie){return Array.isArray(Ae)?Ie>=Ae.length?Ae[0]:Ae[Ie]:Ae}function Re(Ie,Be){var Ue=0;return function(){if(Ie&&++Ue===Be)return Ie()}}return we._frameWaitingCnt===void 0&&(we._frameWaitingCnt=0),new Promise(function(Ie,Be){function Ue(){ue.emit("plotly_animating"),we._lastFrameAt=-1/0,we._timeToNext=0,we._runningTransitions=0,we._currentFrame=null;var Je=function(){we._animationRaf=window.requestAnimationFrame(Je),Date.now()-we._lastFrameAt>we._timeToNext&&function(){we._currentFrame&&we._currentFrame.onComplete&&we._currentFrame.onComplete();var ut=we._currentFrame=we._frameQueue.shift();if(ut){var pt=ut.name?ut.name.toString():null;ue._fullLayout._currentFrame=pt,we._lastFrameAt=Date.now(),we._timeToNext=ut.frameOpts.duration,v.transition(ue,ut.frame.data,ut.frame.layout,P.coerceTraceIndices(ue,ut.frame.traces),ut.frameOpts,ut.transitionOpts).then(function(){ut.onComplete&&ut.onComplete()}),ue.emit("plotly_animatingframe",{name:pt,frame:ut.frame,animation:{frame:ut.frameOpts,transition:ut.transitionOpts}})}else ue.emit("plotly_animated"),window.cancelAnimationFrame(we._animationRaf),we._animationRaf=null}()};Je()}var qe,Ye,at=0;function lt(Je){return Array.isArray(ke)?at>=ke.length?Je.transitionOpts=ke[at]:Je.transitionOpts=ke[0]:Je.transitionOpts=ke,at++,Je}var ct=[],bt=ge==null,ze=Array.isArray(ge);if(bt||ze||!u.isPlainObject(ge)){if(bt||["string","number"].indexOf(typeof ge)!==-1)for(qe=0;qe0&&itit)&&kt.push(Ye);ct=kt}}ct.length>0?function(Je){if(Je.length!==0){for(var ut=0;ut=0;we--)if(u.isPlainObject(ge[we])){var qe=ge[we].name,Ye=(Re[qe]||Ue[qe]||{}).name,at=ge[we].name,lt=Re[Ye]||Ue[Ye];Ye&&at&&typeof at=="number"&<&&F<5&&(F++,u.warn('addFrames: overwriting frame "'+(Re[Ye]||Ue[Ye]).name+'" with a frame whose name of type "number" also equates to "'+Ye+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),F===5&&u.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),Ue[qe]={name:qe},Be.push({frame:v.supplyFrameDefaults(ge[we]),index:be&&be[we]!==void 0&&be[we]!==null?be[we]:Ie+we})}Be.sort(function(Je,ut){return Je.index>ut.index?-1:Je.index=0;we--){if(typeof(ke=Be[we].frame).name=="number"&&u.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!ke.name)for(;Re[ke.name="frame "+ue._transitionData._counter++];);if(Re[ke.name]){for(Ae=0;Ae=0;be--)we=ge[be],Ae.push({type:"delete",index:we}),Ee.unshift({type:"insert",index:we,value:ke[we]});var De=v.modifyFrames,Re=v.modifyFrames,Ie=[ue,Ee],Be=[ue,Ae];return p&&p.add(ue,De,Ie,Re,Be),v.modifyFrames(ue,Ae)},a.addTraces=function ue(ge,be,we){ge=u.getGraphDiv(ge);var ke,Ae,Ee=[],De=a.deleteTraces,Re=ue,Ie=[ge,Ee],Be=[ge,be];for(function(Ue,qe,Ye){var at,lt;if(!Array.isArray(Ue.data))throw new Error("gd.data must be an array.");if(qe===void 0)throw new Error("traces must be defined.");for(Array.isArray(qe)||(qe=[qe]),at=0;at=0&&Be=0&&Be=$.length)return!1;if(R.dimensions===2){if(A++,F.length===A)return R;var j=F[A];if(!S(j))return!1;R=$[B][j]}else R=$[B]}else R=$}}return R}function S(R){return R===Math.round(R)&&R>=0}function C(){var R,F,A={};for(R in y(A,u),l.subplotsRegistry)if((F=l.subplotsRegistry[R]).layoutAttributes)if(Array.isArray(F.attr))for(var z=0;z=j.length)return!1;z=(A=(l.transformsRegistry[j[N].type]||{}).attributes)&&A[F[2]],$=3}else{var E=R._module;if(E||(E=(l.modules[R.type||s.type.dflt]||{})._module),!E)return!1;if(!(z=(A=E.attributes)&&A[B])){var W=E.basePlotModule;W&&W.attributes&&(z=W.attributes[B])}z||(z=s[B])}return M(z,F,$)},a.getLayoutValObject=function(R,F){var A=function(z,B){var $,j,N,E,W=z._basePlotModules;if(W){var G;for($=0;$=v&&(y._input||{})._templateitemname;b&&(g=v);var x,_=m+"["+g+"]";function w(){x={},b&&(x[_]={},x[_][s]=b)}function k(M,S){b?l.nestedProperty(x[_],M).set(S):x[_+"."+M]=S}function T(){var M=x;return w(),M}return w(),{modifyBase:function(M,S){x[M]=S},modifyItem:k,getUpdateObj:T,applyUpdate:function(M,S){M&&k(M,S);var C=T();for(var P in C)l.nestedProperty(p,P).set(C[P])}}}},61549:function(o,a,n){var l=n(39898),f=n(73972),s=n(74875),u=n(71828),d=n(63893),h=n(33306),p=n(7901),m=n(91424),y=n(92998),v=n(64168),g=n(89298),b=n(18783),x=n(99082),_=x.enforce,w=x.clean,k=n(71739).doAutoRange,T="start";function M(O,R,F){for(var A=0;A=O[1]||z[1]<=O[0])&&B[0]R[0])return!0}return!1}function S(O){var R,F,A,z,B,$,j=O._fullLayout,N=j._size,E=N.p,W=g.list(O,"",!0);if(j._paperdiv.style({width:O._context.responsive&&j.autosize&&!O._context._hasZeroWidth&&!O.layout.width?"100%":j.width+"px",height:O._context.responsive&&j.autosize&&!O._context._hasZeroHeight&&!O.layout.height?"100%":j.height+"px"}).selectAll(".main-svg").call(m.setSize,j.width,j.height),O._context.setBackground(O,j.paper_bgcolor),a.drawMainTitle(O),v.manage(O),!j._has("cartesian"))return s.previousPromises(O);function G(Ie,Be,Ue){var qe=Ie._lw/2;return Ie._id.charAt(0)==="x"?Be?Ue==="top"?Be._offset-E-qe:Be._offset+Be._length+E+qe:N.t+N.h*(1-(Ie.position||0))+qe%1:Be?Ue==="right"?Be._offset+Be._length+E+qe:Be._offset-E-qe:N.l+N.w*(Ie.position||0)+qe%1}for(R=0;R.5?"t":"b",ee=G._fullLayout.margin[te],U=0;return L.yref==="paper"?U=q+L.pad.t+L.pad.b:L.yref==="container"&&(U=function(Q,Y,Z,X,re){var ie=0;return Z==="middle"&&(ie+=re/2),Q==="t"?(Z==="top"&&(ie+=re),ie+=X-Y*X):(Z==="bottom"&&(ie+=re),ie+=Y*X),ie}(te,H,V,G._fullLayout.height,q)+L.pad.t+L.pad.b),U>ee?U:0}(O,F,E);W>0&&(function(G,L,q,H){var V="title.automargin",te=G._fullLayout.title,ee=te.y>.5?"t":"b",U={x:te.x,y:te.y,t:0,b:0},Q={};te.yref==="paper"&&function(Y,Z,X,re,ie){var le=Z.yref==="paper"?Y._fullLayout._size.h:Y._fullLayout.height,se=u.isTopAnchor(Z)?re:re-ie,pe=X==="b"?le-se:se;return!(u.isTopAnchor(Z)&&X==="t"||u.isBottomAnchor(Z)&&X==="b")&&peN?D.push({code:"unused",traceType:A,templateCount:j,dataCount:N}):N>j&&D.push({code:"reused",traceType:A,templateCount:j,dataCount:N})}}else D.push({code:"data"});if(function E(W,G){for(var L in W)if(L.charAt(0)!=="_"){var q=W[L],H=x(W,L,G);f(q)?(Array.isArray(W)&&q._template===!1&&q.templateitemname&&D.push({code:"missing",path:H,templateitemname:q.templateitemname}),E(q,H)):Array.isArray(q)&&_(q)&&E(q,H)}}({data:R,layout:O},""),D.length)return D.map(w)}},403:function(o,a,n){var l=n(92770),f=n(72391),s=n(74875),u=n(71828),d=n(25095),h=n(5900),p=n(70942),m=n(11506).version,y={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};o.exports=function(v,g){var b,x,_,w;function k(N){return!(N in g)||u.validate(g[N],y[N])}if(g=g||{},u.isPlainObject(v)?(b=v.data||[],x=v.layout||{},_=v.config||{},w={}):(v=u.getGraphDiv(v),b=u.extendDeep([],v.data),x=u.extendDeep({},v.layout),_=v._context,w=v._fullLayout||{}),!k("width")&&g.width!==null||!k("height")&&g.height!==null)throw new Error("Height and width should be pixel values.");if(!k("format"))throw new Error("Export format is not "+u.join2(y.format.values,", "," or ")+".");var T={};function M(N,E){return u.coerce(g,T,y,N,E)}var S=M("format"),C=M("width"),P=M("height"),D=M("scale"),O=M("setBackground"),R=M("imageDataOnly"),F=document.createElement("div");F.style.position="absolute",F.style.left="-5000px",document.body.appendChild(F);var A=u.extendFlat({},x);C?A.width=C:g.width===null&&l(w.width)&&(A.width=w.width),P?A.height=P:g.height===null&&l(w.height)&&(A.height=w.height);var z=u.extendFlat({},_,{_exportedPlot:!0,staticPlot:!0,setBackground:O}),B=d.getRedrawFunc(F);function $(){return new Promise(function(N){setTimeout(N,d.getDelay(F._fullLayout))})}function j(){return new Promise(function(N,E){var W=h(F,S,D),G=F._fullLayout.width,L=F._fullLayout.height;function q(){f.purge(F),document.body.removeChild(F)}if(S==="full-json"){var H=s.graphJson(F,!1,"keepdata","object",!0,!0);return H.version=m,H=JSON.stringify(H),q(),N(R?H:d.encodeJSON(H))}if(q(),S==="svg")return N(R?W:d.encodeSVG(W));var V=document.createElement("canvas");V.id=u.randstr(),p({format:S,width:G,height:L,scale:D,canvas:V,svg:W,promise:!0}).then(N).catch(E)})}return new Promise(function(N,E){f.newPlot(F,b,A,z).then(B).then($).then(j).then(function(W){N(function(G){return R?G.replace(d.IMAGE_URL_PREFIX,""):G}(W))}).catch(function(W){E(W)})})}},84936:function(o,a,n){var l=n(71828),f=n(74875),s=n(86281),u=n(72075).dfltConfig,d=l.isPlainObject,h=Array.isArray,p=l.isArrayOrTypedArray;function m(k,T,M,S,C,P){P=P||[];for(var D=Object.keys(k),O=0;Oz.length&&S.push(g("unused",C,F.concat(z.length)));var W,G,L,q,H,V=z.length,te=Array.isArray(E);if(te&&(V=Math.min(V,E.length)),B.dimensions===2)for(G=0;Gz[G].length&&S.push(g("unused",C,F.concat(G,z[G].length)));var ee=z[G].length;for(W=0;W<(te?Math.min(ee,E[G].length):ee);W++)L=te?E[G][W]:E,q=A[G][W],H=z[G][W],l.validate(q,L)?H!==q&&H!==+q&&S.push(g("dynamic",C,F.concat(G,W),q,H)):S.push(g("value",C,F.concat(G,W),q))}else S.push(g("array",C,F.concat(G),A[G]));else for(G=0;G1&&P.push(g("object","layout"))),f.supplyDefaults(D);for(var O=D._fullData,R=M.length,F=0;F0&&Math.round(x)===x))return{vals:y};g=x}for(var _=p.calendar,w=v==="start",k=v==="end",T=h[m+"period0"],M=s(T,_)||0,S=[],C=[],P=[],D=y.length,O=0;Oz;)A=u(A,-g,_);for(;A<=z;)A=u(A,g,_);F=u(A,-g,_)}else{for(A=M+(R=Math.round((z-M)/b))*b;A>z;)A-=b;for(;A<=z;)A+=b;F=A-b}S[O]=w?F:k?A:(F+A)/2,C[O]=F,P[O]=A}return{vals:S,starts:C,ends:P}}},89502:function(o){o.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},71739:function(o,a,n){var l=n(39898),f=n(92770),s=n(71828),u=n(50606).FP_SAFE,d=n(73972),h=n(91424),p=n(41675),m=p.getFromId,y=p.isLinked;function v(O,R){var F,A,z=[],B=O._fullLayout,$=b(B,R,0),j=b(B,R,1),N=_(O,R),E=N.min,W=N.max;if(E.length===0||W.length===0)return s.simpleMap(R.range,R.r2l);var G=E[0].val,L=W[0].val;for(F=1;F0&&((Y=le-$(te)-j(ee))>se?Z/Y>pe&&(U=te,Q=ee,pe=Z/Y):Z/le>pe&&(U={val:te.val,nopad:1},Q={val:ee.val,nopad:1},pe=Z/le));if(G===L){var Te=G-1,Se=G+1;if(re)if(G===0)z=[0,1];else{var Oe=(G>0?W:E).reduce(function(ce,ye){return Math.max(ce,j(ye))},0),Me=G/(1-Math.min(.5,Oe/le));z=G>0?[0,Me]:[Me,0]}else z=ie?[Math.max(0,Te),Math.max(1,Se)]:[Te,Se]}else re?(U.val>=0&&(U={val:0,nopad:1}),Q.val<=0&&(Q={val:0,nopad:1})):ie&&(U.val-pe*$(U)<0&&(U={val:0,nopad:1}),Q.val<=0&&(Q={val:1,nopad:1})),pe=(Q.val-U.val-g(R,te.val,ee.val))/(le-$(U)-j(Q)),z=[U.val-pe*$(U),Q.val+pe*j(Q)];return z=D(z,R),R.limitRange&&R.limitRange(),H&&z.reverse(),s.simpleMap(z,R.l2r||Number)}function g(O,R,F){var A=0;if(O.rangebreaks)for(var z=O.locateBreaks(R,F),B=0;B0?F.ppadplus:F.ppadminus)||F.ppad||0),X=Y((O._m>0?F.ppadminus:F.ppadplus)||F.ppad||0),re=Y(F.vpadplus||F.vpad),ie=Y(F.vpadminus||F.vpad);if(!U){if(W=1/0,G=-1/0,ee)for(A=0;A0&&(W=z),z>G&&z-u&&(W=z),z>G&&z=pe;A--)se(A);return{min:L,max:q,opts:F}},concatExtremes:_};var x=3;function _(O,R,F){var A,z,B,$=R._id,j=O._fullData,N=O._fullLayout,E=[],W=[];function G(te,ee){for(A=0;A=F&&(E.extrapad||!$)){j=!1;break}z(R,E.val)&&E.pad<=F&&($||!E.extrapad)&&(O.splice(N,1),N--)}if(j){var W=B&&R===0;O.push({val:R,pad:W?0:F,extrapad:!W&&$})}}function M(O){return f(O)&&Math.abs(O)=R}function P(O,R,F){return R===void 0||F===void 0||(R=O.d2l(R))=N&&(B=N,F=N),$<=N&&($=N,A=N)}}return F=function(E,W){var G=W.autorangeoptions;return G&&G.minallowed!==void 0&&P(W,G.minallowed,G.maxallowed)?G.minallowed:G&&G.clipmin!==void 0&&P(W,G.clipmin,G.clipmax)?Math.max(E,W.d2l(G.clipmin)):E}(F,R),A=function(E,W){var G=W.autorangeoptions;return G&&G.maxallowed!==void 0&&P(W,G.minallowed,G.maxallowed)?G.maxallowed:G&&G.clipmax!==void 0&&P(W,G.clipmin,G.clipmax)?Math.min(E,W.d2l(G.clipmax)):E}(A,R),[F,A]}},23074:function(o){o.exports=function(a,n,l){var f,s;if(l){var u=n==="reversed"||n==="min reversed"||n==="max reversed";f=l[u?1:0],s=l[u?0:1]}var d=a("autorangeoptions.minallowed",s===null?f:void 0),h=a("autorangeoptions.maxallowed",f===null?s:void 0);d===void 0&&a("autorangeoptions.clipmin"),h===void 0&&a("autorangeoptions.clipmax"),a("autorangeoptions.include")}},89298:function(o,a,n){var l=n(39898),f=n(92770),s=n(74875),u=n(73972),d=n(71828),h=d.strTranslate,p=n(63893),m=n(92998),y=n(7901),v=n(91424),g=n(13838),b=n(66287),x=n(50606),_=x.ONEMAXYEAR,w=x.ONEAVGYEAR,k=x.ONEMINYEAR,T=x.ONEMAXQUARTER,M=x.ONEAVGQUARTER,S=x.ONEMINQUARTER,C=x.ONEMAXMONTH,P=x.ONEAVGMONTH,D=x.ONEMINMONTH,O=x.ONEWEEK,R=x.ONEDAY,F=R/2,A=x.ONEHOUR,z=x.ONEMIN,B=x.ONESEC,$=x.MINUS_SIGN,j=x.BADNUM,N={K:"zeroline"},E={K:"gridline",L:"path"},W={K:"minor-gridline",L:"path"},G={K:"tick",L:"path"},L={K:"tick",L:"text"},q={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},H=n(18783),V=H.MID_SHIFT,te=H.CAP_SHIFT,ee=H.LINE_SPACING,U=H.OPPOSITE_SIDE,Q=o.exports={};Q.setConvert=n(21994);var Y=n(4322),Z=n(41675),X=Z.idSort,re=Z.isLinked;Q.id2name=Z.id2name,Q.name2id=Z.name2id,Q.cleanId=Z.cleanId,Q.list=Z.list,Q.listIds=Z.listIds,Q.getFromId=Z.getFromId,Q.getFromTrace=Z.getFromTrace;var ie=n(71739);Q.getAutoRange=ie.getAutoRange,Q.findExtremes=ie.findExtremes;var le=1e-4;function se(ve){var _e=(ve[1]-ve[0])*le;return[ve[0]-_e,ve[1]+_e]}Q.coerceRef=function(ve,_e,Ve,We,Ze,Ge){var Ke=We.charAt(We.length-1),nt=Ve._fullLayout._subplots[Ke+"axis"],st=We+"ref",mt={};return Ze||(Ze=nt[0]||(typeof Ge=="string"?Ge:Ge[0])),Ge||(Ge=Ze),nt=nt.concat(nt.map(function(tt){return tt+" domain"})),mt[st]={valType:"enumerated",values:nt.concat(Ge?typeof Ge=="string"?[Ge]:Ge:[]),dflt:Ze},d.coerce(ve,_e,mt,st)},Q.getRefType=function(ve){return ve===void 0?ve:ve==="paper"?"paper":ve==="pixel"?"pixel":/( domain)$/.test(ve)?"domain":"range"},Q.coercePosition=function(ve,_e,Ve,We,Ze,Ge){var Ke,nt;if(Q.getRefType(We)!=="range")Ke=d.ensureNumber,nt=Ve(Ze,Ge);else{var st=Q.getFromId(_e,We);nt=Ve(Ze,Ge=st.fraction2r(Ge)),Ke=st.cleanPos}ve[Ze]=Ke(nt)},Q.cleanPosition=function(ve,_e,Ve){return(Ve==="paper"||Ve==="pixel"?d.ensureNumber:Q.getFromId(_e,Ve).cleanPos)(ve)},Q.redrawComponents=function(ve,_e){_e=_e||Q.listIds(ve);var Ve=ve._fullLayout;function We(Ze,Ge,Ke,nt){for(var st=u.getComponentMethod(Ze,Ge),mt={},tt=0;tt<_e.length;tt++)for(var Ft=Ve[Q.id2name(_e[tt])][Ke],Vt=0;VtVe&&tt2e-6||((Ve-ve._forceTick0)/ve._minDtick%1+1.000001)%1>2e-6)&&(ve._minDtick=0)):ve._minDtick=0},Q.saveRangeInitial=function(ve,_e){for(var Ve=Q.list(ve,"",!0),We=!1,Ze=0;Ze.3*$t||Lt(qt)||Lt(Et))){var Yt=yt.dtick/2;gt+=gt+Yt.8){var Tt=Number(yt.substr(1));jt.exactYears>.8&&Tt%12==0?gt=Q.tickIncrement(gt,"M6","reverse")+1.5*R:jt.exactMonths>.8?gt=Q.tickIncrement(gt,"M1","reverse")+15.5*R:gt-=F;var Ot=Q.tickIncrement(gt,yt);if(Ot<=qt)return Ot}return gt}(Dt,ve,Nt,nt,Ze)),St=Dt;St<=st;)St=Q.tickIncrement(St,Nt,!1,Ze);return{start:_e.c2r(Dt,0,Ze),end:_e.c2r(St,0,Ze),size:Nt,_dataSpan:st-nt}},Q.prepMinorTicks=function(ve,_e,Ve){if(!_e.minor.dtick){delete ve.dtick;var We,Ze=_e.dtick&&f(_e._tmin);if(Ze){var Ge=Q.tickIncrement(_e._tmin,_e.dtick,!0);We=[_e._tmin,.99*Ge+.01*_e._tmin]}else{var Ke=d.simpleMap(_e.range,_e.r2l);We=[Ke[0],.8*Ke[0]+.2*Ke[1]]}if(ve.range=d.simpleMap(We,_e.l2r),ve._isMinor=!0,Q.prepTicks(ve,Ve),Ze){var nt=f(_e.dtick),st=f(ve.dtick),mt=nt?_e.dtick:+_e.dtick.substring(1),tt=st?ve.dtick:+ve.dtick.substring(1);nt&&st?Oe(mt,tt)?mt===2*O&&tt===2*R&&(ve.dtick=O):mt===2*O&&tt===3*R?ve.dtick=O:mt!==O||(_e._input.minor||{}).nticks?Me(mt/tt,2.5)?ve.dtick=mt/2:ve.dtick=mt:ve.dtick=R:String(_e.dtick).charAt(0)==="M"?st?ve.dtick="M1":Oe(mt,tt)?mt>=12&&tt===2&&(ve.dtick="M3"):ve.dtick=_e.dtick:String(ve.dtick).charAt(0)==="L"?String(_e.dtick).charAt(0)==="L"?Oe(mt,tt)||(ve.dtick=Me(mt/tt,2.5)?_e.dtick/2:_e.dtick):ve.dtick="D1":ve.dtick==="D2"&&+_e.dtick>1&&(ve.dtick=1)}ve.range=_e.range}_e.minor._tick0Init===void 0&&(ve.tick0=_e.tick0)},Q.prepTicks=function(ve,_e){var Ve=d.simpleMap(ve.range,ve.r2l,void 0,void 0,_e);if(ve.tickmode==="auto"||!ve.dtick){var We,Ze=ve.nticks;Ze||(ve.type==="category"||ve.type==="multicategory"?(We=ve.tickfont?d.bigFont(ve.tickfont.size||12):15,Ze=ve._length/We):(We=ve._id.charAt(0)==="y"?40:80,Ze=d.constrain(ve._length/We,4,9)+1),ve._name==="radialaxis"&&(Ze*=2)),ve.minor&&ve.minor.tickmode!=="array"||ve.tickmode==="array"&&(Ze*=100),ve._roughDTick=Math.abs(Ve[1]-Ve[0])/Ze,Q.autoTicks(ve,ve._roughDTick),ve._minDtick>0&&ve.dtick<2*ve._minDtick&&(ve.dtick=ve._minDtick,ve.tick0=ve.l2r(ve._forceTick0))}ve.ticklabelmode==="period"&&function(Ge){var Ke;function nt(){return!(f(Ge.dtick)||Ge.dtick.charAt(0)!=="M")}var st=nt(),mt=Q.getTickFormat(Ge);if(mt){var tt=Ge._dtickInit!==Ge.dtick;/%[fLQsSMX]/.test(mt)||(/%[HI]/.test(mt)?(Ke=A,tt&&!st&&Ge.dtick=(ht?0:1);yt--){var qt=!yt;yt?(ve._dtickInit=ve.dtick,ve._tick0Init=ve.tick0):(ve.minor._dtickInit=ve.minor.dtick,ve.minor._tick0Init=ve.minor.tick0);var Et=yt?ve:d.extendFlat({},ve,ve.minor);if(qt?Q.prepMinorTicks(Et,ve,_e):Q.prepTicks(Et,_e),Et.tickmode!=="array")if(Et.tickmode!=="sync"){var jt=se(st),Tt=jt[0],Ot=jt[1],At=f(Et.dtick),Lt=Ze==="log"&&!(At||Et.dtick.charAt(0)==="L"),Rt=Q.tickFirst(Et,_e);if(yt){if(ve._tmin=Rt,Rt=Ot:Bt<=Ot;Bt=Q.tickIncrement(Bt,Wt,mt,Ge)){if(yt&&$t++,Et.rangebreaks&&!mt){if(Bt=Ft)break}if(Dt.length>Vt||Bt===Xt)break;Xt=Bt;var tn={value:Bt};yt?(Lt&&Bt!==(0|Bt)&&(tn.simpleLabel=!0),Ke>1&&$t%Ke&&(tn.skipLabel=!0),Dt.push(tn)):(tn.minor=!0,gt.push(tn))}}else Dt=[],St=J(ve);else yt?(Dt=[],St=ne(ve)):(gt=[],Nt=ne(ve))}if(ht&&!(ve.minor.ticks==="inside"&&ve.ticks==="outside"||ve.minor.ticks==="outside"&&ve.ticks==="inside")){for(var cn=Dt.map(function(lr){return lr.value}),ln=[],an=0;an0?(oa=ur-1,On=ur):(oa=ur,On=ur);var on,$n=lr[oa].value,Pr=lr[On].value,Ln=Math.abs(Pr-$n),Bn=Ar||Ln,jn=0;Bn>=k?jn=Ln>=k&&Ln<=_?Ln:w:Ar===M&&Bn>=S?jn=Ln>=S&&Ln<=T?Ln:M:Bn>=D?jn=Ln>=D&&Ln<=C?Ln:P:Ar===O&&Bn>=O?jn=O:Bn>=R?jn=R:Ar===F&&Bn>=F?jn=F:Ar===A&&Bn>=A&&(jn=A),jn>=Ln&&(jn=Ln,on=!0);var Un=kr+jn;if(ni.rangebreaks&&jn>0){for(var Lr=0,br=0;br<84;br++){var Mr=(br+.5)/84;ni.maskBreaks(kr*(1-Mr)+Mr*Un)!==j&&Lr++}(jn*=Lr/84)||(lr[ur].drop=!0),on&&Ln>O&&(jn=Ln)}(jn>0||ur===0)&&(lr[ur].periodX=kr+jn/2)}}(Dt,ve,ve._definedDelta),ve.rangebreaks){var Kt=ve._id.charAt(0)==="y",Cn=1;ve.tickmode==="auto"&&(Cn=ve.tickfont?ve.tickfont.size:12);var _n=NaN;for(Ve=Dt.length-1;Ve>-1;Ve--)if(Dt[Ve].drop)Dt.splice(Ve,1);else{Dt[Ve].value=It(Dt[Ve].value,ve);var Pn=ve.c2p(Dt[Ve].value);(Kt?_n>Pn-Cn:_nFt||DnFt&&(xn.periodX=Ft),Dn10||We.substr(5)!=="01-01"?ve._tickround="d":ve._tickround=+_e.substr(1)%12==0?"y":"m";else if(_e>=R&&Ze<=10||_e>=15*R)ve._tickround="d";else if(_e>=z&&Ze<=16||_e>=A)ve._tickround="M";else if(_e>=B&&Ze<=19||_e>=z)ve._tickround="S";else{var Ge=ve.l2r(Ve+_e).replace(/^-/,"").length;ve._tickround=Math.max(Ze,Ge)-20,ve._tickround<0&&(ve._tickround=4)}}else if(f(_e)||_e.charAt(0)==="L"){var Ke=ve.range.map(ve.r2d||Number);f(_e)||(_e=Number(_e.substr(1))),ve._tickround=2-Math.floor(Math.log(_e)/Math.LN10+.01);var nt=Math.max(Math.abs(Ke[0]),Math.abs(Ke[1])),st=Math.floor(Math.log(nt)/Math.LN10+.01),mt=ve.minexponent===void 0?3:ve.minexponent;Math.abs(st)>mt&&(Ie(ve.exponentformat)&&!Be(st)?ve._tickexponent=3*Math.round((st-1)/3):ve._tickexponent=st)}else ve._tickround=null}function De(ve,_e,Ve){var We=ve.tickfont||{};return{x:_e,dx:0,dy:0,text:Ve||"",fontSize:We.size,font:We.family,fontColor:We.color}}Q.autoTicks=function(ve,_e,Ve){var We;function Ze(Ft){return Math.pow(Ft,Math.floor(Math.log(_e)/Math.LN10))}if(ve.type==="date"){ve.tick0=d.dateTick0(ve.calendar,0);var Ge=2*_e;if(Ge>w)_e/=w,We=Ze(10),ve.dtick="M"+12*Ae(_e,We,de);else if(Ge>P)_e/=P,ve.dtick="M"+Ae(_e,1,xe);else if(Ge>R){if(ve.dtick=Ae(_e,R,ve._hasDayOfWeekBreaks?[1,2,7,14]:ge),!Ve){var Ke=Q.getTickFormat(ve),nt=ve.ticklabelmode==="period";nt&&(ve._rawTick0=ve.tick0),/%[uVW]/.test(Ke)?ve.tick0=d.dateTick0(ve.calendar,2):ve.tick0=d.dateTick0(ve.calendar,1),nt&&(ve._dowTick0=ve.tick0)}}else Ge>A?ve.dtick=Ae(_e,A,xe):Ge>z?ve.dtick=Ae(_e,z,ue):Ge>B?ve.dtick=Ae(_e,B,ue):(We=Ze(10),ve.dtick=Ae(_e,We,de))}else if(ve.type==="log"){ve.tick0=0;var st=d.simpleMap(ve.range,ve.r2l);if(ve._isMinor&&(_e*=1.5),_e>.7)ve.dtick=Math.ceil(_e);else if(Math.abs(st[1]-st[0])<1){var mt=1.5*Math.abs((st[1]-st[0])/_e);_e=Math.abs(Math.pow(10,st[1])-Math.pow(10,st[0]))/mt,We=Ze(10),ve.dtick="L"+Ae(_e,We,de)}else ve.dtick=_e>.3?"D2":"D1"}else ve.type==="category"||ve.type==="multicategory"?(ve.tick0=0,ve.dtick=Math.ceil(Math.max(_e,1))):pt(ve)?(ve.tick0=0,We=1,ve.dtick=Ae(_e,We,ke)):(ve.tick0=0,We=Ze(10),ve.dtick=Ae(_e,We,de));if(ve.dtick===0&&(ve.dtick=1),!f(ve.dtick)&&typeof ve.dtick!="string"){var tt=ve.dtick;throw ve.dtick=1,"ax.dtick error: "+String(tt)}},Q.tickIncrement=function(ve,_e,Ve,We){var Ze=Ve?-1:1;if(f(_e))return d.increment(ve,Ze*_e);var Ge=_e.charAt(0),Ke=Ze*Number(_e.substr(1));if(Ge==="M")return d.incrementMonth(ve,Ke,We);if(Ge==="L")return Math.log(Math.pow(10,ve)+Ke)/Math.LN10;if(Ge==="D"){var nt=_e==="D2"?we:be,st=ve+.01*Ze,mt=d.roundUp(d.mod(st,1),nt,Ve);return Math.floor(st)+Math.log(l.round(Math.pow(10,mt),1))/Math.LN10}throw"unrecognized dtick "+String(_e)},Q.tickFirst=function(ve,_e){var Ve=ve.r2l||Number,We=d.simpleMap(ve.range,Ve,void 0,void 0,_e),Ze=We[1] ")}else gt._prevDateHead=Tt,Ot+="
"+Tt;ht.text=Ot}(ve,Ge,Ve,nt):st==="log"?function(gt,ht,yt,qt,Et){var jt=gt.dtick,Tt=ht.x,Ot=gt.tickformat,At=typeof jt=="string"&&jt.charAt(0);if(Et==="never"&&(Et=""),qt&&At!=="L"&&(jt="L3",At="L"),Ot||At==="L")ht.text=Ue(Math.pow(10,Tt),gt,Et,qt);else if(f(jt)||At==="D"&&d.mod(Tt+.01,1)<.1){var Lt=Math.round(Tt),Rt=Math.abs(Lt),$t=gt.exponentformat;$t==="power"||Ie($t)&&Be(Lt)?(ht.text=Lt===0?1:Lt===1?"10":"10"+(Lt>1?"":$)+Rt+"",ht.fontSize*=1.25):($t==="e"||$t==="E")&&Rt>2?ht.text="1"+$t+(Lt>0?"+":$)+Rt:(ht.text=Ue(Math.pow(10,Tt),gt,"","fakehover"),jt==="D1"&>._id.charAt(0)==="y"&&(ht.dy-=ht.fontSize/6))}else{if(At!=="D")throw"unrecognized dtick "+String(jt);ht.text=String(Math.round(Math.pow(10,d.mod(Tt,1)))),ht.fontSize*=.75}if(gt.dtick==="D1"){var Yt=String(ht.text).charAt(0);Yt!=="0"&&Yt!=="1"||(gt._id.charAt(0)==="y"?ht.dx-=ht.fontSize/4:(ht.dy+=ht.fontSize/2,ht.dx+=(gt.range[1]>gt.range[0]?1:-1)*ht.fontSize*(Tt<0?.5:.25)))}}(ve,Ge,0,nt,St):st==="category"?function(gt,ht){var yt=gt._categories[Math.round(ht.x)];yt===void 0&&(yt=""),ht.text=String(yt)}(ve,Ge):st==="multicategory"?function(gt,ht,yt){var qt=Math.round(ht.x),Et=gt._categories[qt]||[],jt=Et[1]===void 0?"":String(Et[1]),Tt=Et[0]===void 0?"":String(Et[0]);yt?ht.text=Tt+" - "+jt:(ht.text=jt,ht.text2=Tt)}(ve,Ge,Ve):pt(ve)?function(gt,ht,yt,qt,Et){if(gt.thetaunit!=="radians"||yt)ht.text=Ue(ht.x,gt,Et,qt);else{var jt=ht.x/180;if(jt===0)ht.text="0";else{var Tt=function(At){function Lt(Xt,Bt){return Math.abs(Xt-Bt)<=1e-6}var Rt=function(Xt){for(var Bt=1;!Lt(Math.round(Xt*Bt)/Bt,Xt);)Bt*=10;return Bt}(At),$t=At*Rt,Yt=Math.abs(function Xt(Bt,Wt){return Lt(Wt,0)?Bt:Xt(Wt,Bt%Wt)}($t,Rt));return[Math.round($t/Yt),Math.round(Rt/Yt)]}(jt);if(Tt[1]>=100)ht.text=Ue(d.deg2rad(ht.x),gt,Et,qt);else{var Ot=ht.x<0;Tt[1]===1?Tt[0]===1?ht.text="π":ht.text=Tt[0]+"π":ht.text=["",Tt[0],"","⁄","",Tt[1],"","π"].join(""),Ot&&(ht.text=$+ht.text)}}}}(ve,Ge,Ve,nt,St):function(gt,ht,yt,qt,Et){Et==="never"?Et="":gt.showexponent==="all"&&Math.abs(ht.x/gt.dtick)<1e-6&&(Et="hide"),ht.text=Ue(ht.x,gt,Et,qt)}(ve,Ge,0,nt,St),We||(ve.tickprefix&&!Vt(ve.showtickprefix)&&(Ge.text=ve.tickprefix+Ge.text),ve.ticksuffix&&!Vt(ve.showticksuffix)&&(Ge.text+=ve.ticksuffix)),ve.labelalias&&ve.labelalias.hasOwnProperty(Ge.text)){var Nt=ve.labelalias[Ge.text];typeof Nt=="string"&&(Ge.text=Nt)}if(ve.tickson==="boundaries"||ve.showdividers){var Dt=function(gt){var ht=ve.l2p(gt);return ht>=0&&ht<=ve._length?gt:null};Ge.xbnd=[Dt(Ge.x-.5),Dt(Ge.x+ve.dtick-.5)]}return Ge},Q.hoverLabelText=function(ve,_e,Ve){Ve&&(ve=d.extendFlat({},ve,{hoverformat:Ve}));var We=Array.isArray(_e)?_e[0]:_e,Ze=Array.isArray(_e)?_e[1]:void 0;if(Ze!==void 0&&Ze!==We)return Q.hoverLabelText(ve,We,Ve)+" - "+Q.hoverLabelText(ve,Ze,Ve);var Ge=ve.type==="log"&&We<=0,Ke=Q.tickText(ve,ve.c2l(Ge?-We:We),"hover").text;return Ge?We===0?"0":$+Ke:Ke};var Re=["f","p","n","μ","m","","k","M","G","T"];function Ie(ve){return ve==="SI"||ve==="B"}function Be(ve){return ve>14||ve<-15}function Ue(ve,_e,Ve,We){var Ze=ve<0,Ge=_e._tickround,Ke=Ve||_e.exponentformat||"B",nt=_e._tickexponent,st=Q.getTickFormat(_e),mt=_e.separatethousands;if(We){var tt={exponentformat:Ke,minexponent:_e.minexponent,dtick:_e.showexponent==="none"?_e.dtick:f(ve)&&Math.abs(ve)||1,range:_e.showexponent==="none"?_e.range.map(_e.r2d):[0,ve||1]};Ee(tt),Ge=(Number(tt._tickround)||0)+4,nt=tt._tickexponent,_e.hoverformat&&(st=_e.hoverformat)}if(st)return _e._numFormat(st)(ve).replace(/-/g,$);var Ft,Vt=Math.pow(10,-Ge)/2;if(Ke==="none"&&(nt=0),(ve=Math.abs(ve))"+Ft+"":Ke==="B"&&nt===9?ve+="B":Ie(Ke)&&(ve+=Re[nt/3+5])),Ze?$+ve:ve}function qe(ve,_e){if(ve){var Ve=Object.keys(q).reduce(function(We,Ze){return _e.indexOf(Ze)!==-1&&q[Ze].forEach(function(Ge){We[Ge]=1}),We},{});Object.keys(ve).forEach(function(We){Ve[We]||(We.length===1?ve[We]=0:delete ve[We])})}}function Ye(ve,_e){for(var Ve=[],We={},Ze=0;Ze<_e.length;Ze++){var Ge=_e[Ze];We[Ge.text2]?We[Ge.text2].push(Ge.x):We[Ge.text2]=[Ge.x]}for(var Ke in We)Ve.push(De(ve,d.interp(We[Ke],.5),Ke));return Ve}function at(ve){return ve.periodX!==void 0?ve.periodX:ve.x}function lt(ve){return[ve.text,ve.x,ve.axInfo,ve.font,ve.fontSize,ve.fontColor].join("_")}function ct(ve){var _e=ve.title.font.size,Ve=(ve.title.text.match(p.BR_TAG_ALL)||[]).length;return ve.title.hasOwnProperty("standoff")?Ve?_e*(te+Ve*ee):_e*te:Ve?_e*(Ve+1)*ee:_e}function bt(ve,_e){var Ve=ve.l2p(_e);return Ve>1&&Ve=Ze.min&&ve=0,ht=tt(Vt,St[1])<=0;return(Nt||gt)&&(Dt||ht)}if(ve.tickformatstops&&ve.tickformatstops.length>0)switch(ve.type){case"date":case"linear":for(_e=0;_e=Ke(Ze)))){Ve=We;break}break;case"log":for(_e=0;_e=0&&Ze.unshift(Ze.splice(mt,1).shift())}});var Ke={false:{left:0,right:0}};return d.syncOrAsync(Ze.map(function(nt){return function(){if(nt){var st=Q.getFromId(ve,nt);Ve||(Ve={}),Ve.axShifts=Ke,Ve.overlayingShiftedAx=Ge;var mt=Q.drawOne(ve,st,Ve);return st._shiftPusher&&wt(st,st._fullDepth||0,Ke,!0),st._r=st.range.slice(),st._rl=d.simpleMap(st._r,st.r2l),mt}}}))},Q.drawOne=function(ve,_e,Ve){var We,Ze,Ge,Ke=(Ve=Ve||{}).axShifts||{},nt=Ve.overlayingShiftedAx||[];_e.setScale();var st=ve._fullLayout,mt=_e._id,tt=mt.charAt(0),Ft=Q.counterLetter(mt),Vt=st._plots[_e._mainSubplot];if(Vt){if(_e._shiftPusher=_e.autoshift||nt.indexOf(_e._id)!==-1||nt.indexOf(_e.overlaying)!==-1,_e._shiftPusher&_e.anchor==="free"){var St=_e.linewidth/2||0;_e.ticks==="inside"&&(St+=_e.ticklen),wt(_e,St,Ke,!0),wt(_e,_e.shift||0,Ke,!1)}Ve.skipTitle===!0&&_e._shift!==void 0||(_e._shift=function(On,on){return On.autoshift?on[On.overlaying][On.side]:On.shift||0}(_e,Ke));var Nt=Vt[tt+"axislayer"],Dt=_e._mainLinePosition,gt=Dt+=_e._shift,ht=_e._mainMirrorPosition,yt=_e._vals=Q.calcTicks(_e),qt=[_e.mirror,gt,ht].join("_");for(We=0;We0?On.bottom-jn:0,Un))));var Lr=0,br=0;if(_e._shiftPusher&&(Lr=Math.max(Un,On.height>0?Ln==="l"?jn-On.left:On.right-jn:0),_e.title.text!==st._dfltTitle[tt]&&(br=(_e._titleStandoff||0)+(_e._titleScoot||0),Ln==="l"&&(br+=ct(_e))),_e._fullDepth=Math.max(Lr,br)),_e.automargin){on={x:0,y:0,r:0,l:0,t:0,b:0};var Mr=[0,1],ja=typeof _e._shift=="number"?_e._shift:0;if(tt==="x"){if(Ln==="b"?on[Ln]=_e._depth:(on[Ln]=_e._depth=Math.max(On.width>0?jn-On.top:0,Un),Mr.reverse()),On.width>0){var _a=On.right-(_e._offset+_e._length);_a>0&&(on.xr=1,on.r=_a);var la=_e._offset-On.left;la>0&&(on.xl=0,on.l=la)}}else if(Ln==="l"?(_e._depth=Math.max(On.height>0?jn-On.left:0,Un),on[Ln]=_e._depth-ja):(_e._depth=Math.max(On.height>0?On.right-jn:0,Un),on[Ln]=_e._depth+ja,Mr.reverse()),On.height>0){var Tn=On.bottom-(_e._offset+_e._length);Tn>0&&(on.yb=0,on.b=Tn);var Dr=_e._offset-On.top;Dr>0&&(on.yt=1,on.t=Dr)}on[Ft]=_e.anchor==="free"?_e.position:_e._anchorAxis.domain[Mr[0]],_e.title.text!==st._dfltTitle[tt]&&(on[Ln]+=ct(_e)+(_e.title.standoff||0)),_e.mirror&&_e.anchor!=="free"&&(($n={x:0,y:0,r:0,l:0,t:0,b:0})[Bn]=_e.linewidth,_e.mirror&&_e.mirror!==!0&&($n[Bn]+=Un),_e.mirror===!0||_e.mirror==="ticks"?$n[Ft]=_e._anchorAxis.domain[Mr[1]]:_e.mirror!=="all"&&_e.mirror!=="allticks"||($n[Ft]=[_e._counterDomainMin,_e._counterDomainMax][Mr[1]]))}kr&&(Pr=u.getComponentMethod("rangeslider","autoMarginOpts")(ve,_e)),typeof _e.automargin=="string"&&(qe(on,_e.automargin),qe($n,_e.automargin)),s.autoMargin(ve,Ne(_e),on),s.autoMargin(ve,Qe(_e),$n),s.autoMargin(ve,it(_e),Pr)}),d.syncOrAsync(Ar)}}function oa(On){var on=mt+(On||"tick");return Et[on]||(Et[on]=function($n,Pr){var Ln,Bn,jn,Un;return $n._selections[Pr].size()?(Ln=1/0,Bn=-1/0,jn=1/0,Un=-1/0,$n._selections[Pr].each(function(){var Lr=ze(this),br=v.bBox(Lr.node().parentNode);Ln=Math.min(Ln,br.top),Bn=Math.max(Bn,br.bottom),jn=Math.min(jn,br.left),Un=Math.max(Un,br.right)})):(Ln=0,Bn=0,jn=0,Un=0),{top:Ln,bottom:Bn,left:jn,right:Un,height:Bn-Ln,width:Un-jn}}(_e,on)),Et[on]}},Q.getTickSigns=function(ve,_e){var Ve=ve._id.charAt(0),We={x:"top",y:"right"}[Ve],Ze=ve.side===We?1:-1,Ge=[-1,1,Ze,-Ze];return(_e?(ve.minor||{}).ticks:ve.ticks)!=="inside"==(Ve==="x")&&(Ge=Ge.map(function(Ke){return-Ke})),ve.side&&Ge.push({l:-1,t:-1,r:1,b:1}[ve.side.charAt(0)]),Ge},Q.makeTransTickFn=function(ve){return ve._id.charAt(0)==="x"?function(_e){return h(ve._offset+ve.l2p(_e.x),0)}:function(_e){return h(0,ve._offset+ve.l2p(_e.x))}},Q.makeTransTickLabelFn=function(ve){var _e=function(Ze){var Ge=Ze.ticklabelposition||"",Ke=function(ht){return Ge.indexOf(ht)!==-1},nt=Ke("top"),st=Ke("left"),mt=Ke("right"),tt=Ke("bottom"),Ft=Ke("inside"),Vt=tt||st||nt||mt;if(!Vt&&!Ft)return[0,0];var St=Ze.side,Nt=Vt?(Ze.tickwidth||0)/2:0,Dt=3,gt=Ze.tickfont?Ze.tickfont.size:12;return(tt||nt)&&(Nt+=gt*te,Dt+=(Ze.linewidth||0)/2),(st||mt)&&(Nt+=(Ze.linewidth||0)/2,Dt+=3),Ft&&St==="top"&&(Dt-=gt*(1-te)),(st||nt)&&(Nt=-Nt),St!=="bottom"&&St!=="right"||(Dt=-Dt),[Vt?Nt:0,Ft?Dt:0]}(ve),Ve=_e[0],We=_e[1];return ve._id.charAt(0)==="x"?function(Ze){return h(Ve+ve._offset+ve.l2p(at(Ze)),We)}:function(Ze){return h(We,Ve+ve._offset+ve.l2p(at(Ze)))}},Q.makeTickPath=function(ve,_e,Ve,We){We||(We={});var Ze=We.minor;if(Ze&&!ve.minor)return"";var Ge=We.len!==void 0?We.len:Ze?ve.minor.ticklen:ve.ticklen,Ke=ve._id.charAt(0),nt=(ve.linewidth||1)/2;return Ke==="x"?"M0,"+(_e+nt*Ve)+"v"+Ge*Ve:"M"+(_e+nt*Ve)+",0h"+Ge*Ve},Q.makeLabelFns=function(ve,_e,Ve){var We=ve.ticklabelposition||"",Ze=function($t){return We.indexOf($t)!==-1},Ge=Ze("top"),Ke=Ze("left"),nt=Ze("right"),st=Ze("bottom")||Ke||Ge||nt,mt=Ze("inside"),tt=We==="inside"&&ve.ticks==="inside"||!mt&&ve.ticks==="outside"&&ve.tickson!=="boundaries",Ft=0,Vt=0,St=tt?ve.ticklen:0;if(mt?St*=-1:st&&(St=0),tt&&(Ft+=St,Ve)){var Nt=d.deg2rad(Ve);Ft=St*Math.cos(Nt)+1,Vt=St*Math.sin(Nt)}ve.showticklabels&&(tt||ve.showline)&&(Ft+=.2*ve.tickfont.size);var Dt,gt,ht,yt,qt,Et={labelStandoff:Ft+=(ve.linewidth||1)/2*(mt?-1:1),labelShift:Vt},jt=0,Tt=ve.side,Ot=ve._id.charAt(0),At=ve.tickangle;if(Ot==="x")yt=(qt=!mt&&Tt==="bottom"||mt&&Tt==="top")?1:-1,mt&&(yt*=-1),Dt=Vt*yt,gt=_e+Ft*yt,ht=qt?1:-.2,Math.abs(At)===90&&(mt?ht+=V:ht=At===-90&&Tt==="bottom"?te:At===90&&Tt==="top"?V:.5,jt=V/2*(At/90)),Et.xFn=function($t){return $t.dx+Dt+jt*$t.fontSize},Et.yFn=function($t){return $t.dy+gt+$t.fontSize*ht},Et.anchorFn=function($t,Yt){if(st){if(Ke)return"end";if(nt)return"start"}return f(Yt)&&Yt!==0&&Yt!==180?Yt*yt<0!==mt?"end":"start":"middle"},Et.heightFn=function($t,Yt,Xt){return Yt<-60||Yt>60?-.5*Xt:ve.side==="top"!==mt?-Xt:0};else if(Ot==="y"){if(yt=(qt=!mt&&Tt==="left"||mt&&Tt==="right")?1:-1,mt&&(yt*=-1),Dt=Ft,gt=Vt*yt,ht=0,mt||Math.abs(At)!==90||(ht=At===-90&&Tt==="left"||At===90&&Tt==="right"?te:.5),mt){var Lt=f(At)?+At:0;if(Lt!==0){var Rt=d.deg2rad(Lt);jt=Math.abs(Math.sin(Rt))*te*yt,ht=0}}Et.xFn=function($t){return $t.dx+_e-(Dt+$t.fontSize*ht)*yt+jt*$t.fontSize},Et.yFn=function($t){return $t.dy+gt+$t.fontSize*V},Et.anchorFn=function($t,Yt){return f(Yt)&&Math.abs(Yt)===90?"middle":qt?"end":"start"},Et.heightFn=function($t,Yt,Xt){return ve.side==="right"&&(Yt*=-1),Yt<-30?-Xt:Yt<30?-.5*Xt:0}}return Et},Q.drawTicks=function(ve,_e,Ve){Ve=Ve||{};var We=_e._id+"tick",Ze=[].concat(_e.minor&&_e.minor.ticks?Ve.vals.filter(function(Ke){return Ke.minor&&!Ke.noTick}):[]).concat(_e.ticks?Ve.vals.filter(function(Ke){return!Ke.minor&&!Ke.noTick}):[]),Ge=Ve.layer.selectAll("path."+We).data(Ze,lt);Ge.exit().remove(),Ge.enter().append("path").classed(We,1).classed("ticks",1).classed("crisp",Ve.crisp!==!1).each(function(Ke){return y.stroke(l.select(this),Ke.minor?_e.minor.tickcolor:_e.tickcolor)}).style("stroke-width",function(Ke){return v.crispRound(ve,Ke.minor?_e.minor.tickwidth:_e.tickwidth,1)+"px"}).attr("d",Ve.path).style("display",null),zt(_e,[G]),Ge.attr("transform",Ve.transFn)},Q.drawGrid=function(ve,_e,Ve){if(Ve=Ve||{},_e.tickmode!=="sync"){var We=_e._id+"grid",Ze=_e.minor&&_e.minor.showgrid,Ge=Ze?Ve.vals.filter(function(ht){return ht.minor}):[],Ke=_e.showgrid?Ve.vals.filter(function(ht){return!ht.minor}):[],nt=Ve.counterAxis;if(nt&&Q.shouldShowZeroLine(ve,_e,nt))for(var st=_e.tickmode==="array",mt=0;mt=0;Nt--){var Dt=Nt?Vt:St;if(Dt){var gt=Dt.selectAll("path."+We).data(Nt?Ke:Ge,lt);gt.exit().remove(),gt.enter().append("path").classed(We,1).classed("crisp",Ve.crisp!==!1),gt.attr("transform",Ve.transFn).attr("d",Ve.path).each(function(ht){return y.stroke(l.select(this),ht.minor?_e.minor.gridcolor:_e.gridcolor||"#ddd")}).style("stroke-dasharray",function(ht){return v.dashStyle(ht.minor?_e.minor.griddash:_e.griddash,ht.minor?_e.minor.gridwidth:_e.gridwidth)}).style("stroke-width",function(ht){return(ht.minor?Ft:_e._gw)+"px"}).style("display",null),typeof Ve.path=="function"&>.attr("d",Ve.path)}}zt(_e,[E,W])}},Q.drawZeroLine=function(ve,_e,Ve){Ve=Ve||Ve;var We=_e._id+"zl",Ze=Q.shouldShowZeroLine(ve,_e,Ve.counterAxis),Ge=Ve.layer.selectAll("path."+We).data(Ze?[{x:0,id:_e._id}]:[]);Ge.exit().remove(),Ge.enter().append("path").classed(We,1).classed("zl",1).classed("crisp",Ve.crisp!==!1).each(function(){Ve.layer.selectAll("path").sort(function(Ke,nt){return X(Ke.id,nt.id)})}),Ge.attr("transform",Ve.transFn).attr("d",Ve.path).call(y.stroke,_e.zerolinecolor||y.defaultLine).style("stroke-width",v.crispRound(ve,_e.zerolinewidth,_e._gw||1)+"px").style("display",null),zt(_e,[N])},Q.drawLabels=function(ve,_e,Ve){Ve=Ve||{};var We=ve._fullLayout,Ze=_e._id,Ge=Ze.charAt(0),Ke=Ve.cls||Ze+"tick",nt=Ve.vals.filter(function(yt){return yt.text}),st=Ve.labelFns,mt=Ve.secondary?0:_e.tickangle,tt=(_e._prevTickAngles||{})[Ke],Ft=Ve.layer.selectAll("g."+Ke).data(_e.showticklabels?nt:[],lt),Vt=[];function St(yt,qt){yt.each(function(Et){var jt=l.select(this),Tt=jt.select(".text-math-group"),Ot=st.anchorFn(Et,qt),At=Ve.transFn.call(jt.node(),Et)+(f(qt)&&+qt!=0?" rotate("+qt+","+st.xFn(Et)+","+(st.yFn(Et)-Et.fontSize/2)+")":""),Lt=p.lineCount(jt),Rt=ee*Et.fontSize,$t=st.heightFn(Et,f(qt)?+qt:0,(Lt-1)*Rt);if($t&&(At+=h(0,$t)),Tt.empty()){var Yt=jt.select("text");Yt.attr({transform:At,"text-anchor":Ot}),Yt.style("opacity",1),_e._adjustTickLabelsOverflow&&_e._adjustTickLabelsOverflow()}else{var Xt=v.bBox(Tt.node()).width*{end:-.5,start:.5}[Ot];Tt.attr("transform",At+h(Xt,0))}})}Ft.enter().append("g").classed(Ke,1).append("text").attr("text-anchor","middle").each(function(yt){var qt=l.select(this),Et=ve._promises.length;qt.call(p.positionText,st.xFn(yt),st.yFn(yt)).call(v.font,yt.font,yt.fontSize,yt.fontColor).text(yt.text).call(p.convertToTspans,ve),ve._promises[Et]?Vt.push(ve._promises.pop().then(function(){St(qt,mt)})):St(qt,mt)}),zt(_e,[L]),Ft.exit().remove(),Ve.repositionOnUpdate&&Ft.each(function(yt){l.select(this).select("text").call(p.positionText,st.xFn(yt),st.yFn(yt))}),_e._adjustTickLabelsOverflow=function(){var yt=_e.ticklabeloverflow;if(yt&&yt!=="allow"){var qt=yt.indexOf("hide")!==-1,Et=_e._id.charAt(0)==="x",jt=0,Tt=Et?ve._fullLayout.width:ve._fullLayout.height;if(yt.indexOf("domain")!==-1){var Ot=d.simpleMap(_e.range,_e.r2l);jt=_e.l2p(Ot[0])+_e._offset,Tt=_e.l2p(Ot[1])+_e._offset}var At=Math.min(jt,Tt),Lt=Math.max(jt,Tt),Rt=_e.side,$t=1/0,Yt=-1/0;for(var Xt in Ft.each(function(tn){var cn=l.select(this);if(cn.select(".text-math-group").empty()){var ln=v.bBox(cn.node()),an=0;Et?(ln.right>Lt||ln.leftLt||ln.top+(_e.tickangle?0:tn.fontSize/4)_e["_visibleLabelMin_"+Ot._id]?Wt.style("display","none"):Lt.K!=="tick"||At||Wt.style("display",null)})})})})},St(Ft,tt+1?tt:mt);var Nt=null;_e._selections&&(_e._selections[Ke]=Ft);var Dt=[function(){return Vt.length&&Promise.all(Vt)}];_e.automargin&&We._redrawFromAutoMarginCount&&tt===90?(Nt=90,Dt.push(function(){St(Ft,tt)})):Dt.push(function(){if(St(Ft,mt),nt.length&&Ge==="x"&&!f(mt)&&(_e.type!=="log"||String(_e.dtick).charAt(0)!=="D")){Nt=0;var yt,qt=0,Et=[];if(Ft.each(function(cn){qt=Math.max(qt,cn.fontSize);var ln=_e.l2p(cn.x),an=ze(this),sn=v.bBox(an.node());Et.push({top:0,bottom:10,height:10,left:ln-sn.width/2,right:ln+sn.width/2+2,width:sn.width+2})}),_e.tickson!=="boundaries"&&!_e.showdividers||Ve.secondary){var jt=nt.length,Tt=Math.abs((nt[jt-1].x-nt[0].x)*_e._m)/(jt-1),Ot=_e.ticklabelposition||"",At=function(cn){return Ot.indexOf(cn)!==-1},Lt=At("top"),Rt=At("left"),$t=At("right"),Yt=At("bottom")||Rt||Lt||$t?(_e.tickwidth||0)+6:0,Xt=Tt<2.5*qt||_e.type==="multicategory"||_e._name==="realaxis";for(yt=0;yt1)for(nt=1;nt2*R}(x,g))return"date";var M=b.autotypenumbers!=="strict";return function(S,C){for(var P=S.length,D=y(P),O=0,R=0,F={},A=0;A2*O}(x,M)?"category":function(S,C){for(var P=S.length,D=0;D=2){var F,A,z="";if(R.length===2){for(F=0;F<2;F++)if(A=S(R[F])){z=w;break}}var B=O("pattern",z);if(B===w)for(F=0;F<2;F++)(A=S(R[F]))&&(P.bounds[F]=R[F]=A-1);if(B)for(F=0;F<2;F++)switch(A=R[F],B){case w:if(!l(A)||(A=+A)!==Math.floor(A)||A<0||A>=7)return void(P.enabled=!1);P.bounds[F]=R[F]=A;break;case k:if(!l(A)||(A=+A)<0||A>24)return void(P.enabled=!1);P.bounds[F]=R[F]=A}if(D.autorange===!1){var $=D.range;if($[0]<$[1]){if(R[0]<$[0]&&R[1]>$[1])return void(P.enabled=!1)}else if(R[0]>$[0]&&R[1]<$[1])return void(P.enabled=!1)}}else{var j=O("values");if(!j||!j.length)return void(P.enabled=!1);O("dvalue")}}}o.exports=function(C,P,D,O,R){var F,A=O.letter,z=O.font||{},B=O.splomStash||{},$=D("visible",!O.visibleDflt),j=P._template||{},N=P.type||j.type||"-";N==="date"&&(f.getComponentMethod("calendars","handleDefaults")(C,P,"calendar",O.calendar),O.noTicklabelmode||(F=D("ticklabelmode")));var E="";O.noTicklabelposition&&N!=="multicategory"||(E=s.coerce(C,P,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:F==="period"?["outside","inside"]:A==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),O.noTicklabeloverflow||D("ticklabeloverflow",E.indexOf("inside")!==-1?"hide past domain":N==="category"||N==="multicategory"?"allow":"hide past div"),_(P,R),x(C,P,D,O),g(C,P,D,O),N==="category"||O.noHover||D("hoverformat");var W=D("color"),G=W!==h.color.dflt?W:z.color,L=B.label||R._dfltTitle[A];if(v(C,P,D,N,O),!$)return P;D("title.text",L),s.coerceFont(D,"title.font",{family:z.family,size:s.bigFont(z.size),color:G}),p(C,P,D,N);var q=O.hasMinor;if(q&&(u.newContainer(P,"minor"),p(C,P,D,N,{isMinor:!0})),y(C,P,D,N,O),m(C,P,D,O),q){var H=O.isMinor;O.isMinor=!0,m(C,P,D,O),O.isMinor=H}b(C,P,D,{dfltColor:W,bgColor:O.bgColor,showGrid:O.showGrid,hasMinor:q,attributes:h}),!q||P.minor.ticks||P.minor.showgrid||delete P.minor,(P.showline||P.ticks)&&D("mirror");var V,te=N==="multicategory";if(O.noTickson||N!=="category"&&!te||!P.ticks&&!P.showgrid||(te&&(V="boundaries"),D("tickson",V)==="boundaries"&&delete P.ticklabelposition),te&&D("showdividers")&&(D("dividercolor"),D("dividerwidth")),N==="date")if(d(C,P,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:T}),P.rangebreaks.length){for(var ee=0;eep?1:-1:+(u.substr(1)||1)-+(d.substr(1)||1)},a.ref2id=function(u){return!!/^[xyz]/.test(u)&&u.split(" ")[0]},a.isLinked=function(u,d){return s(d,u._axisMatchGroups)||s(d,u._axisConstraintGroups)}},15258:function(o){o.exports=function(a,n,l,f){if(n.type==="category"){var s,u=a.categoryarray,d=Array.isArray(u)&&u.length>0;d&&(s="array");var h,p=l("categoryorder",s);p==="array"&&(h=l("categoryarray")),d||p!=="array"||(p=n.categoryorder="trace"),p==="trace"?n._initialCategories=[]:p==="array"?n._initialCategories=h.slice():(h=function(m,y){var v,g,b,x=y.dataAttr||m._id.charAt(0),_={};if(y.axData)v=y.axData;else for(v=[],g=0;gS?C.substr(S):P.substr(M))+D:C+P+k*T:D}function _(k,T){for(var M=T._size,S=M.h/M.w,C={},P=Object.keys(k),D=0;Dp*$)||W){for(M=0;MY&&ieU&&(U=ie);R/=(U-ee)/(2*Q),ee=P.l2r(ee),U=P.l2r(U),P.range=P._input.range=H=0?Math.min(ie,.9):1/(1/Math.max(ie,-.3)+3.222))}function H(ie,le,se,pe,Te){return ie.append("path").attr("class","zoombox").style({fill:le>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",p(se,pe)).attr("d",Te+"Z")}function V(ie,le,se){return ie.append("path").attr("class","zoombox-corners").style({fill:y.background,stroke:y.defaultLine,"stroke-width":1,opacity:0}).attr("transform",p(le,se)).attr("d","M0,0Z")}function te(ie,le,se,pe,Te,Se){ie.attr("d",pe+"M"+se.l+","+se.t+"v"+se.h+"h"+se.w+"v-"+se.h+"h-"+se.w+"Z"),ee(ie,le,Te,Se)}function ee(ie,le,se,pe){se||(ie.transition().style("fill",pe>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),le.transition().style("opacity",1).duration(200))}function U(ie){l.select(ie).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Q(ie){j&&ie.data&&ie._context.showTips&&(f.notifier(f._(ie,"Double-click to zoom back out"),"long"),j=!1)}function Y(ie){var le=Math.floor(Math.min(ie.b-ie.t,ie.r-ie.l,$)/2);return"M"+(ie.l-3.5)+","+(ie.t-.5+le)+"h3v"+-le+"h"+le+"v-3h-"+(le+3)+"ZM"+(ie.r+3.5)+","+(ie.t-.5+le)+"h-3v"+-le+"h"+-le+"v-3h"+(le+3)+"ZM"+(ie.r+3.5)+","+(ie.b+.5-le)+"h-3v"+le+"h"+-le+"v3h"+(le+3)+"ZM"+(ie.l-3.5)+","+(ie.b+.5-le)+"h3v"+le+"h"+le+"v3h-"+(le+3)+"Z"}function Z(ie,le,se,pe,Te){for(var Se,Oe,Me,ce,ye=!1,J={},ne={},de=(Te||{}).xaHash,xe=(Te||{}).yaHash,ue=0;ue=0)At._fullLayout._deactivateShape(At);else{var Lt=At._fullLayout.clickmode;if(U(At),Tt!==2||Ne||gt(),ze)Lt.indexOf("select")>-1&&F(Ot,At,de,xe,le.id,We),Lt.indexOf("event")>-1&&g.click(At,Ot,le.id);else if(Tt===1&&Ne){var Rt=Oe?ye:ce,$t=Oe==="s"||Me==="w"?0:1,Yt=Rt._name+".range["+$t+"]",Xt=function(tn,cn){var ln,an=tn.range[cn],sn=Math.abs(an-tn.range[1-cn]);return tn.type==="date"?an:tn.type==="log"?(ln=Math.ceil(Math.max(0,-Math.log(sn)/Math.LN10))+3,s("."+ln+"g")(Math.pow(10,an))):(ln=Math.floor(Math.log(Math.abs(an))/Math.LN10)-Math.floor(Math.log(sn)/Math.LN10)+4,s("."+String(ln)+"g")(an))}(Rt,$t),Bt="left",Wt="middle";if(Rt.fixedrange)return;Oe?(Wt=Oe==="n"?"top":"bottom",Rt.side==="right"&&(Bt="right")):Me==="e"&&(Bt="right"),At._context.showAxisRangeEntryBoxes&&l.select(kt).call(m.makeEditable,{gd:At,immediate:!0,background:At._fullLayout.paper_bgcolor,text:String(Xt),fill:Rt.tickfont?Rt.tickfont.color:"#444",horizontalAlign:Bt,verticalAlign:Wt}).on("edit",function(tn){var cn=Rt.d2r(tn);cn!==void 0&&h.call("_guiRelayout",At,Yt,cn)})}}}function Ke(Tt,Ot){if(ie._transitioningWithDuration)return!1;var At=Math.max(0,Math.min(be,lt*Tt+Je)),Lt=Math.max(0,Math.min(we,ct*Ot+ut)),Rt=Math.abs(At-Je),$t=Math.abs(Lt-ut);function Yt(){wt="",pt.r=pt.l,pt.t=pt.b,_e.attr("d","M0,0Z")}if(pt.l=Math.min(Je,At),pt.r=Math.max(Je,At),pt.t=Math.min(ut,Lt),pt.b=Math.max(ut,Lt),ke.isSubplotConstrained)Rt>$||$t>$?(wt="xy",Rt/be>$t/we?($t=Rt*we/be,ut>Lt?pt.t=ut-$t:pt.b=ut+$t):(Rt=$t*be/we,Je>At?pt.l=Je-Rt:pt.r=Je+Rt),_e.attr("d",Y(pt))):Yt();else if(Ae.isSubplotConstrained)if(Rt>$||$t>$){wt="xy";var Xt=Math.min(pt.l/be,(we-pt.b)/we),Bt=Math.max(pt.r/be,(we-pt.t)/we);pt.l=Xt*be,pt.r=Bt*be,pt.b=(1-Xt)*we,pt.t=(1-Bt)*we,_e.attr("d",Y(pt))}else Yt();else!De||$t0){var Wt;if(Ae.isSubplotConstrained||!Ee&&De.length===1){for(Wt=0;Wt1&&(Lt.maxallowed!==void 0&&Ie===(Lt.range[0]1&&(Rt.maxallowed!==void 0&&Be===(Rt.range[0]P[1]-.000244140625&&(u.domain=m),f.noneOrAll(s.domain,u.domain,m),u.tickmode==="sync"&&(u.tickmode="auto")}return d("layer"),u}},89426:function(o,a,n){var l=n(59652);o.exports=function(f,s,u,d,h){h||(h={});var p=h.tickSuffixDflt,m=l(f);u("tickprefix")&&u("showtickprefix",m),u("ticksuffix",p)&&u("showticksuffix",m)}},23608:function(o,a,n){var l=n(23074);o.exports=function(f,s,u,d){var h=s._template||{},p=s.type||h.type||"-";u("minallowed"),u("maxallowed");var m,y=u("range"),v=s.getAutorangeDflt(y,d),g=u("autorange",v);!y||(y[0]!==null||y[1]!==null)&&(y[0]!==null&&y[1]!==null||g!=="reversed"&&g!==!0)&&(y[0]===null||g!=="min"&&g!=="max reversed")&&(y[1]===null||g!=="max"&&g!=="min reversed")||(y=void 0,delete s.range,s.autorange=!0,m=!0),m||(g=u("autorange",v=s.getAutorangeDflt(y,d))),g&&(l(u,g,y),p!=="linear"&&p!=="-"||u("rangemode")),s.cleanRange()}},42449:function(o,a,n){var l=n(18783).FROM_BL;o.exports=function(f,s,u){u===void 0&&(u=l[f.constraintoward||"center"]);var d=[f.r2l(f.range[0]),f.r2l(f.range[1])],h=d[0]+(d[1]-d[0])*u;f.range=f._input.range=[f.l2r(h+(d[0]-h)*s),f.l2r(h+(d[1]-h)*s)],f.setScale()}},21994:function(o,a,n){var l=n(39898),f=n(84096).g0,s=n(71828),u=s.numberFormat,d=n(92770),h=s.cleanNumber,p=s.ms2DateTime,m=s.dateTime2ms,y=s.ensureNumber,v=s.isArrayOrTypedArray,g=n(50606),b=g.FP_SAFE,x=g.BADNUM,_=g.LOG_CLIP,w=g.ONEWEEK,k=g.ONEDAY,T=g.ONEHOUR,M=g.ONEMIN,S=g.ONESEC,C=n(41675),P=n(85555),D=P.HOUR_PATTERN,O=P.WEEKDAY_PATTERN;function R(A){return Math.pow(10,A)}function F(A){return A!=null}o.exports=function(A,z){z=z||{};var B=A._id||"x",$=B.charAt(0);function j(Z,X){if(Z>0)return Math.log(Z)/Math.LN10;if(Z<=0&&X&&A.range&&A.range.length===2){var re=A.range[0],ie=A.range[1];return .5*(re+ie-2*_*Math.abs(re-ie))}return x}function N(Z,X,re,ie){if((ie||{}).msUTC&&d(Z))return+Z;var le=m(Z,re||A.calendar);if(le===x){if(!d(Z))return x;Z=+Z;var se=Math.floor(10*s.mod(Z+.05,1)),pe=Math.round(Z-se/10);le=m(new Date(pe))+se/10}return le}function E(Z,X,re){return p(Z,X,re||A.calendar)}function W(Z){return A._categories[Math.round(Z)]}function G(Z){if(F(Z)){if(A._categoriesMap===void 0&&(A._categoriesMap={}),A._categoriesMap[Z]!==void 0)return A._categoriesMap[Z];A._categories.push(typeof Z=="number"?String(Z):Z);var X=A._categories.length-1;return A._categoriesMap[Z]=X,X}return x}function L(Z){if(A._categoriesMap)return A._categoriesMap[Z]}function q(Z){var X=L(Z);return X!==void 0?X:d(Z)?+Z:void 0}function H(Z){return d(Z)?+Z:L(Z)}function V(Z,X,re){return l.round(re+X*Z,2)}function te(Z,X,re){return(Z-re)/X}var ee=function(Z){return d(Z)?V(Z,A._m,A._b):x},U=function(Z){return te(Z,A._m,A._b)};if(A.rangebreaks){var Q=$==="y";ee=function(Z){if(!d(Z))return x;var X=A._rangebreaks.length;if(!X)return V(Z,A._m,A._b);var re=Q;A.range[0]>A.range[1]&&(re=!re);for(var ie=re?-1:1,le=ie*Z,se=0,pe=0;peSe)){se=le<(Te+Se)/2?pe:pe+1;break}se=pe+1}var Oe=A._B[se]||0;return isFinite(Oe)?V(Z,A._m2,Oe):0},U=function(Z){var X=A._rangebreaks.length;if(!X)return te(Z,A._m,A._b);for(var re=0,ie=0;ieA._rangebreaks[ie].pmax&&(re=ie+1);return te(Z,A._m2,A._B[re])}}A.c2l=A.type==="log"?j:y,A.l2c=A.type==="log"?R:y,A.l2p=ee,A.p2l=U,A.c2p=A.type==="log"?function(Z,X){return ee(j(Z,X))}:ee,A.p2c=A.type==="log"?function(Z){return R(U(Z))}:U,["linear","-"].indexOf(A.type)!==-1?(A.d2r=A.r2d=A.d2c=A.r2c=A.d2l=A.r2l=h,A.c2d=A.c2r=A.l2d=A.l2r=y,A.d2p=A.r2p=function(Z){return A.l2p(h(Z))},A.p2d=A.p2r=U,A.cleanPos=y):A.type==="log"?(A.d2r=A.d2l=function(Z,X){return j(h(Z),X)},A.r2d=A.r2c=function(Z){return R(h(Z))},A.d2c=A.r2l=h,A.c2d=A.l2r=y,A.c2r=j,A.l2d=R,A.d2p=function(Z,X){return A.l2p(A.d2r(Z,X))},A.p2d=function(Z){return R(U(Z))},A.r2p=function(Z){return A.l2p(h(Z))},A.p2r=U,A.cleanPos=y):A.type==="date"?(A.d2r=A.r2d=s.identity,A.d2c=A.r2c=A.d2l=A.r2l=N,A.c2d=A.c2r=A.l2d=A.l2r=E,A.d2p=A.r2p=function(Z,X,re){return A.l2p(N(Z,0,re))},A.p2d=A.p2r=function(Z,X,re){return E(U(Z),X,re)},A.cleanPos=function(Z){return s.cleanDate(Z,x,A.calendar)}):A.type==="category"?(A.d2c=A.d2l=G,A.r2d=A.c2d=A.l2d=W,A.d2r=A.d2l_noadd=q,A.r2c=function(Z){var X=H(Z);return X!==void 0?X:A.fraction2r(.5)},A.l2r=A.c2r=y,A.r2l=H,A.d2p=function(Z){return A.l2p(A.r2c(Z))},A.p2d=function(Z){return W(U(Z))},A.r2p=A.d2p,A.p2r=U,A.cleanPos=function(Z){return typeof Z=="string"&&Z!==""?Z:y(Z)}):A.type==="multicategory"&&(A.r2d=A.c2d=A.l2d=W,A.d2r=A.d2l_noadd=q,A.r2c=function(Z){var X=q(Z);return X!==void 0?X:A.fraction2r(.5)},A.r2c_just_indices=L,A.l2r=A.c2r=y,A.r2l=q,A.d2p=function(Z){return A.l2p(A.r2c(Z))},A.p2d=function(Z){return W(U(Z))},A.r2p=A.d2p,A.p2r=U,A.cleanPos=function(Z){return Array.isArray(Z)||typeof Z=="string"&&Z!==""?Z:y(Z)},A.setupMultiCategory=function(Z){var X,re,ie=A._traceIndices,le=A._matchGroup;if(le&&A._categories.length===0){for(var se in le)if(se!==B){var pe=z[C.id2name(se)];ie=ie.concat(pe._traceIndices)}}var Te=[[0,{}],[0,{}]],Se=[];for(X=0;Xpe[1]&&(ie[se?0:1]=re)}},A.cleanRange=function(Z,X){A._cleanRange(Z,X),A.limitRange(Z)},A._cleanRange=function(Z,X){X||(X={}),Z||(Z="range");var re,ie,le=s.nestedProperty(A,Z).get();if(ie=(ie=A.type==="date"?s.dfltRange(A.calendar):$==="y"?P.DFLTRANGEY:A._name==="realaxis"?[0,1]:X.dfltRange||P.DFLTRANGEX).slice(),A.rangemode!=="tozero"&&A.rangemode!=="nonnegative"||(ie[0]=0),le&&le.length===2){var se=le[0]===null,pe=le[1]===null;for(A.type!=="date"||A.autorange||(le[0]=s.cleanDate(le[0],x,A.calendar),le[1]=s.cleanDate(le[1],x,A.calendar)),re=0;re<2;re++)if(A.type==="date"){if(!s.isDateTime(le[re],A.calendar)){A[Z]=ie;break}if(A.r2l(le[0])===A.r2l(le[1])){var Te=s.constrain(A.r2l(le[0]),s.MIN_MS+1e3,s.MAX_MS-1e3);le[0]=A.l2r(Te-1e3),le[1]=A.l2r(Te+1e3);break}}else{if(!d(le[re])){if(se||pe||!d(le[1-re])){A[Z]=ie;break}le[re]=le[1-re]*(re?10:.1)}if(le[re]<-b?le[re]=-b:le[re]>b&&(le[re]=b),le[0]===le[1]){var Se=Math.max(1,Math.abs(1e-6*le[0]));le[0]-=Se,le[1]+=Se}}}else s.nestedProperty(A,Z).set(ie)},A.setScale=function(Z){var X=z._size;if(A.overlaying){var re=C.getFromId({_fullLayout:z},A.overlaying);A.domain=re.domain}var ie=Z&&A._r?"_r":"range",le=A.calendar;A.cleanRange(ie);var se,pe,Te=A.r2l(A[ie][0],le),Se=A.r2l(A[ie][1],le),Oe=$==="y";if(Oe?(A._offset=X.t+(1-A.domain[1])*X.h,A._length=X.h*(A.domain[1]-A.domain[0]),A._m=A._length/(Te-Se),A._b=-A._m*Se):(A._offset=X.l+A.domain[0]*X.w,A._length=X.w*(A.domain[1]-A.domain[0]),A._m=A._length/(Se-Te),A._b=-A._m*Te),A._rangebreaks=[],A._lBreaks=0,A._m2=0,A._B=[],A.rangebreaks&&(A._rangebreaks=A.locateBreaks(Math.min(Te,Se),Math.max(Te,Se)),A._rangebreaks.length)){for(se=0;seSe&&(Me=!Me),Me&&A._rangebreaks.reverse();var ce=Me?-1:1;for(A._m2=ce*A._length/(Math.abs(Se-Te)-A._lBreaks),A._B.push(-A._m2*(Oe?Se:Te)),se=0;seie&&(ie+=7,leie&&(ie+=24,le=re&&le=re&&Z=Ae.min&&(geAe.max&&(Ae.max=be),we=!1)}we&&pe.push({min:ge,max:be})}};for(re=0;rem.duration?(function(){for(var D={},O=0;O rect").call(u.setTranslate,0,0).call(u.setScale,1,1),M.plot.call(u.setTranslate,S._offset,C._offset).call(u.setScale,1,1);var P=M.plot.selectAll(".scatterlayer .trace");P.selectAll(".point").call(u.setPointGroupScale,1,1),P.selectAll(".textpoint").call(u.setTextPointsScale,1,1),P.call(u.hideOutsideRangePoints,M)}function T(M,S){var C=M.plotinfo,P=C.xaxis,D=C.yaxis,O=P._length,R=D._length,F=!!M.xr1,A=!!M.yr1,z=[];if(F){var B=s.simpleMap(M.xr0,P.r2l),$=s.simpleMap(M.xr1,P.r2l),j=B[1]-B[0],N=$[1]-$[0];z[0]=(B[0]*(1-S)+S*$[0]-B[0])/(B[1]-B[0])*O,z[2]=O*(1-S+S*N/j),P.range[0]=P.l2r(B[0]*(1-S)+S*$[0]),P.range[1]=P.l2r(B[1]*(1-S)+S*$[1])}else z[0]=0,z[2]=O;if(A){var E=s.simpleMap(M.yr0,D.r2l),W=s.simpleMap(M.yr1,D.r2l),G=E[1]-E[0],L=W[1]-W[0];z[1]=(E[1]*(1-S)+S*W[1]-E[1])/(E[0]-E[1])*R,z[3]=R*(1-S+S*L/G),D.range[0]=P.l2r(E[0]*(1-S)+S*W[0]),D.range[1]=D.l2r(E[1]*(1-S)+S*W[1])}else z[1]=0,z[3]=R;d.drawOne(h,P,{skipTitle:!0}),d.drawOne(h,D,{skipTitle:!0}),d.redrawComponents(h,[P._id,D._id]);var q=F?O/z[2]:1,H=A?R/z[3]:1,V=F?z[0]:0,te=A?z[1]:0,ee=F?z[0]/z[2]*O:0,U=A?z[1]/z[3]*R:0,Q=P._offset-ee,Y=D._offset-U;C.clipRect.call(u.setTranslate,V,te).call(u.setScale,1/q,1/H),C.plot.call(u.setTranslate,Q,Y).call(u.setScale,q,H),u.setPointGroupScale(C.zoomScalePts,1/q,1/H),u.setTextPointsScale(C.zoomScaleTxt,1/q,1/H)}d.redrawComponents(h)}},951:function(o,a,n){var l=n(73972).traceIs,f=n(4322);function s(d){return{v:"x",h:"y"}[d.orientation||"v"]}function u(d,h){var p=s(d),m=l(d,"box-violin"),y=l(d._fullInput||{},"candlestick");return m&&!y&&h===p&&d[p]===void 0&&d[p+"0"]===void 0}o.exports=function(d,h,p,m){p("autotypenumbers",m.autotypenumbersDflt),p("type",(m.splomStash||{}).type)==="-"&&(function(y,v){if(y.type==="-"){var g,b=y._id,x=b.charAt(0);b.indexOf("scene")!==-1&&(b=x);var _=function(D,O,R){for(var F=0;F0&&(A["_"+R+"axes"]||{})[O]||(A[R+"axis"]||R)===O&&(u(A,R)||(A[R]||[]).length||A[R+"0"]))return A}}(v,b,x);if(_)if(_.type!=="histogram"||x!=={v:"y",h:"x"}[_.orientation||"v"]){var w=x+"calendar",k=_[w],T={noMultiCategory:!l(_,"cartesian")||l(_,"noMultiCategory")};if(_.type==="box"&&_._hasPreCompStats&&x==={h:"x",v:"y"}[_.orientation||"v"]&&(T.noMultiCategory=!0),T.autotypenumbers=y.autotypenumbers,u(_,x)){var M=s(_),S=[];for(g=0;g0?".":"")+g;f.isPlainObject(b)?h(b,m,x,v+1):m(x,g,b)}})}a.manageCommandObserver=function(p,m,y,v){var g={},b=!0;m&&m._commandObserver&&(g=m._commandObserver),g.cache||(g.cache={}),g.lookupTable={};var x=a.hasSimpleAPICommandBindings(p,y,g.lookupTable);if(m&&m._commandObserver){if(x)return g;if(m._commandObserver.remove)return m._commandObserver.remove(),m._commandObserver=null,g}if(x){s(p,x,g.cache),g.check=function(){if(b){var k=s(p,x,g.cache);return k.changed&&v&&g.lookupTable[k.value]!==void 0&&(g.disable(),Promise.resolve(v({value:k.value,type:x.type,prop:x.prop,traces:x.traces,index:g.lookupTable[k.value]})).then(g.enable,g.enable)),k.changed}};for(var _=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],w=0;w<_.length;w++)p._internalOn(_[w],g.check);g.remove=function(){for(var k=0;k<_.length;k++)p._removeInternalListener(_[k],g.check)}}else f.log("Unable to automatically bind plot updates to API command"),g.lookupTable={},g.remove=function(){};return g.disable=function(){b=!1},g.enable=function(){b=!0},m&&(m._commandObserver=g),g},a.hasSimpleAPICommandBindings=function(p,m,y){var v,g,b=m.length;for(v=0;v=q.width-20?(te["text-anchor"]="start",te.x=5):(te["text-anchor"]="end",te.x=q._paper.attr("width")-7),H.attr(te);var ee=H.select(".js-link-to-tool"),U=H.select(".js-link-spacer"),Q=H.select(".js-sourcelinks");L._context.showSources&&L._context.showSources(L),L._context.showLink&&function(Y,Z){Z.text("");var X=Z.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(Y._context.linkText+" »");if(Y._context.sendData)X.on("click",function(){S.sendDataToCloud(Y)});else{var re=window.location.pathname.split("/"),ie=window.location.search;X.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+re[2].split(".")[0]+"/"+re[1]+ie})}}(L,ee),U.text(ee.text()&&Q.text()?" - ":"")}},S.sendDataToCloud=function(L){var q=(window.PLOTLYENV||{}).BASE_URL||L._context.plotlyServerURL;if(q){L.emit("plotly_beforeexport");var H=l.select(L).append("div").attr("id","hiddenform").style("display","none"),V=H.append("form").attr({action:q+"/external",method:"post",target:"_blank"});return V.append("input").attr({type:"text",name:"data"}).node().value=S.graphJson(L,!1,"keepdata"),V.node().submit(),H.remove(),L.emit("plotly_afterexport"),!1}};var D=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],O=["year","month","dayMonth","dayMonthYear"];function R(L,q){var H=L._context.locale;H||(H="en-US");var V=!1,te={};function ee(re){for(var ie=!0,le=0;le1&&J.length>1){for(d.getComponentMethod("grid","sizeDefaults")(U,ee),te=0;te15&&J.length>15&&ee.shapes.length===0&&ee.images.length===0,S.linkSubplots(Y,ee,Q,V),S.cleanPlot(Y,ee,Q,V);var ge=!(!V._has||!V._has("gl2d")),be=!(!ee._has||!ee._has("gl2d")),we=!(!V._has||!V._has("cartesian"))||ge,ke=!(!ee._has||!ee._has("cartesian"))||be;we&&!ke?V._bgLayer.remove():ke&&!we&&(ee._shouldCreateBgLayer=!0),V._zoomlayer&&!L._dragging&&b({_fullLayout:V}),function(Re,Ie){var Be,Ue=[];Ie.meta&&(Be=Ie._meta={meta:Ie.meta,layout:{meta:Ie.meta}});for(var qe=0;qe0){var Z=1-2*U;V=Math.round(Z*V),te=Math.round(Z*te)}}var X=S.layoutAttributes.width.min,re=S.layoutAttributes.height.min;V1,le=!q.height&&Math.abs(H.height-te)>1;(le||ie)&&(ie&&(H.width=V),le&&(H.height=te)),L._initialAutoSize||(L._initialAutoSize={width:V,height:te}),S.sanitizeMargins(H)},S.supplyLayoutModuleDefaults=function(L,q,H,V){var te,ee,U,Q=d.componentsRegistry,Y=q._basePlotModules,Z=d.subplotsRegistry.cartesian;for(te in Q)(U=Q[te]).includeBasePlot&&U.includeBasePlot(L,q);for(var X in Y.length||Y.push(Z),q._has("cartesian")&&(d.getComponentMethod("grid","contentDefaults")(L,q),Z.finalizeSubplots(L,q)),q._subplots)q._subplots[X].sort(m.subplotSort);for(ee=0;ee1&&(H.l/=Te,H.r/=Te)}if(ie){var Se=(H.t+H.b)/ie;Se>1&&(H.t/=Se,H.b/=Se)}var Oe=H.xl!==void 0?H.xl:H.x,Me=H.xr!==void 0?H.xr:H.x,ce=H.yt!==void 0?H.yt:H.y,ye=H.yb!==void 0?H.yb:H.y;le[q]={l:{val:Oe,size:H.l+pe},r:{val:Me,size:H.r+pe},b:{val:ye,size:H.b+pe},t:{val:ce,size:H.t+pe}},se[q]=1}else delete le[q],delete se[q];if(!V._replotting)return S.doAutoMargin(L)}},S.doAutoMargin=function(L){var q=L._fullLayout,H=q.width,V=q.height;q._size||(q._size={}),$(q);var te=q._size,ee=q.margin,U={t:0,b:0,l:0,r:0},Q=m.extendFlat({},te),Y=ee.l,Z=ee.r,X=ee.t,re=ee.b,ie=q._pushmargin,le=q._pushmarginIds,se=q.minreducedwidth,pe=q.minreducedheight;if(ee.autoexpand!==!1){for(var Te in ie)le[Te]||delete ie[Te];var Se=L._fullLayout._reservedMargin;for(var Oe in Se)for(var Me in Se[Oe]){var ce=Se[Oe][Me];U[Me]=Math.max(U[Me],ce)}for(var ye in ie.base={l:{val:0,size:Y},r:{val:1,size:Z},t:{val:1,size:X},b:{val:0,size:re}},U){var J=0;for(var ne in ie)ne!=="base"&&u(ie[ne][ye].size)&&(J=ie[ne][ye].size>J?ie[ne][ye].size:J);var de=Math.max(0,ee[ye]-J);U[ye]=Math.max(0,U[ye]-de)}for(var xe in ie){var ue=ie[xe].l||{},ge=ie[xe].b||{},be=ue.val,we=ue.size,ke=ge.val,Ae=ge.size,Ee=H-U.r-U.l,De=V-U.t-U.b;for(var Re in ie){if(u(we)&&ie[Re].r){var Ie=ie[Re].r.val,Be=ie[Re].r.size;if(Ie>be){var Ue=(we*Ie+(Be-Ee)*be)/(Ie-be),qe=(Be*(1-be)+(we-Ee)*(1-Ie))/(Ie-be);Ue+qe>Y+Z&&(Y=Ue,Z=qe)}}if(u(Ae)&&ie[Re].t){var Ye=ie[Re].t.val,at=ie[Re].t.size;if(Ye>ke){var lt=(Ae*Ye+(at-De)*ke)/(Ye-ke),ct=(at*(1-ke)+(Ae-De)*(1-Ye))/(Ye-ke);lt+ct>re+X&&(re=lt,X=ct)}}}}}var bt=m.constrain(H-ee.l-ee.r,2,se),ze=m.constrain(V-ee.t-ee.b,2,pe),Ne=Math.max(0,H-bt),Qe=Math.max(0,V-ze);if(Ne){var it=(Y+Z)/Ne;it>1&&(Y/=it,Z/=it)}if(Qe){var kt=(re+X)/Qe;kt>1&&(re/=kt,X/=kt)}if(te.l=Math.round(Y)+U.l,te.r=Math.round(Z)+U.r,te.t=Math.round(X)+U.t,te.b=Math.round(re)+U.b,te.p=Math.round(ee.pad),te.w=Math.round(H)-te.l-te.r,te.h=Math.round(V)-te.t-te.b,!q._replotting&&(S.didMarginChange(Q,te)||function(ut){if("_redrawFromAutoMarginCount"in ut._fullLayout)return!1;var pt=g.list(ut,"",!0);for(var It in pt)if(pt[It].autoshift||pt[It].shift)return!0;return!1}(L))){"_redrawFromAutoMarginCount"in q?q._redrawFromAutoMarginCount++:q._redrawFromAutoMarginCount=1;var Je=3*(1+Object.keys(le).length);if(q._redrawFromAutoMarginCount0&&(L._transitioningWithDuration=!0),L._transitionData._interruptCallbacks.push(function(){V=!0}),H.redraw&&L._transitionData._interruptCallbacks.push(function(){return d.call("redraw",L)}),L._transitionData._interruptCallbacks.push(function(){L.emit("plotly_transitioninterrupted",[])});var Q=0,Y=0;function Z(){return Q++,function(){var X;Y++,V||Y!==Q||(X=U,L._transitionData&&(function(re){if(re)for(;re.length;)re.shift()}(L._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(H.redraw)return d.call("redraw",L)}).then(function(){L._transitioning=!1,L._transitioningWithDuration=!1,L.emit("plotly_transitioned",[])}).then(X)))}}H.runFn(Z),setTimeout(Z())})}],ee=m.syncOrAsync(te,L);return ee&&ee.then||(ee=Promise.resolve()),ee.then(function(){return L})}S.didMarginChange=function(L,q){for(var H=0;H1)return!0}return!1},S.graphJson=function(L,q,H,V,te,ee){(te&&q&&!L._fullData||te&&!q&&!L._fullLayout)&&S.supplyDefaults(L);var U=te?L._fullData:L.data,Q=te?L._fullLayout:L.layout,Y=(L._transitionData||{})._frames;function Z(ie,le){if(typeof ie=="function")return le?"_function_":null;if(m.isPlainObject(ie)){var se,pe={};return Object.keys(ie).sort().forEach(function(Te){if(["_","["].indexOf(Te.charAt(0))===-1)if(typeof ie[Te]!="function"){if(H==="keepdata"){if(Te.substr(Te.length-3)==="src")return}else if(H==="keepstream"){if(typeof(se=ie[Te+"src"])=="string"&&se.indexOf(":")>0&&!m.isPlainObject(ie.stream))return}else if(H!=="keepall"&&typeof(se=ie[Te+"src"])=="string"&&se.indexOf(":")>0)return;pe[Te]=Z(ie[Te],le)}else le&&(pe[Te]="_function")}),pe}return Array.isArray(ie)?ie.map(function(Te){return Z(Te,le)}):m.isTypedArray(ie)?m.simpleMap(ie,m.identity):m.isJSDate(ie)?m.ms2DateTimeLocal(+ie):ie}var X={data:(U||[]).map(function(ie){var le=Z(ie);return q&&delete le.fit,le})};if(!q&&(X.layout=Z(Q),te)){var re=Q._size;X.layout.computed={margin:{b:re.b,l:re.l,r:re.r,t:re.t}}}return Y&&(X.frames=Z(Y)),ee&&(X.config=Z(L._context,!0)),V==="object"?X:JSON.stringify(X)},S.modifyFrames=function(L,q){var H,V,te,ee=L._transitionData._frames,U=L._transitionData._frameHash;for(H=0;H=0;ee--)if(ye[ee].enabled){H._indexToPoints=ye[ee]._indexToPoints;break}V&&V.calc&&(ce=V.calc(L,H))}Array.isArray(ce)&&ce[0]||(ce=[{x:v,y:v}]),ce[0].t||(ce[0].t={}),ce[0].trace=H,Z[Oe]=ce}}for(W(U,Q,Y),te=0;te0){for(var h=[],p=0;p=D&&(R.min=0,F.min=0,A.min=0,_.aaxis&&delete _.aaxis.min,_.baxis&&delete _.baxis.min,_.caxis&&delete _.caxis.min)}function x(_,w,k,T){var M=v[w._name];function S(F,A){return s.coerce(_,w,M,F,A)}S("uirevision",T.uirevision),w.type="linear";var C=S("color"),P=C!==M.color.dflt?C:k.font.color,D=w._name.charAt(0).toUpperCase(),O="Component "+D,R=S("title.text",O);w._hovertitle=R===O?R:D,s.coerceFont(S,"title.font",{family:k.font.family,size:s.bigFont(k.font.size),color:P}),S("min"),m(_,w,S,"linear"),h(_,w,S,"linear"),d(_,w,S,"linear"),p(_,w,S,{outerTicks:!0}),S("showticklabels")&&(s.coerceFont(S,"tickfont",{family:k.font.family,size:k.font.size,color:P}),S("tickangle"),S("tickformat")),y(_,w,S,{dfltColor:C,bgColor:k.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:M}),S("hoverformat"),S("layer")}o.exports=function(_,w,k){u(_,w,k,{type:"ternary",attributes:v,handleDefaults:b,font:w.font,paper_bgcolor:w.paper_bgcolor})}},64380:function(o,a,n){var l=n(39898),f=n(84267),s=n(73972),u=n(71828),d=u.strTranslate,h=u._,p=n(7901),m=n(91424),y=n(21994),v=n(1426).extendFlat,g=n(74875),b=n(89298),x=n(28569),_=n(30211),w=n(64505),k=w.freeMode,T=w.rectMode,M=n(92998),S=n(47322).prepSelect,C=n(47322).selectOnClick,P=n(47322).clearOutline,D=n(47322).clearSelectionsCache,O=n(85555);function R(W,G){this.id=W.id,this.graphDiv=W.graphDiv,this.init(G),this.makeFramework(G),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}o.exports=R;var F=R.prototype;F.init=function(W){this.container=W._ternarylayer,this.defs=W._defs,this.layoutId=W._uid,this.traceHash={},this.layers={}},F.plot=function(W,G){var L=this,q=G[L.id],H=G._size;L._hasClipOnAxisFalse=!1;for(var V=0;VA*le?H=(V=le)*A:V=(H=ie)/A,te=X*H/ie,ee=re*V/le,L=G.l+G.w*Y-H/2,q=G.t+G.h*(1-Z)-V/2,U.x0=L,U.y0=q,U.w=H,U.h=V,U.sum=se,U.xaxis={type:"linear",range:[pe+2*Se-se,se-pe-2*Te],domain:[Y-te/2,Y+te/2],_id:"x"},y(U.xaxis,U.graphDiv._fullLayout),U.xaxis.setScale(),U.xaxis.isPtWithinRange=function(be){return be.a>=U.aaxis.range[0]&&be.a<=U.aaxis.range[1]&&be.b>=U.baxis.range[1]&&be.b<=U.baxis.range[0]&&be.c>=U.caxis.range[1]&&be.c<=U.caxis.range[0]},U.yaxis={type:"linear",range:[pe,se-Te-Se],domain:[Z-ee/2,Z+ee/2],_id:"y"},y(U.yaxis,U.graphDiv._fullLayout),U.yaxis.setScale(),U.yaxis.isPtWithinRange=function(){return!0};var Oe=U.yaxis.domain[0],Me=U.aaxis=v({},W.aaxis,{range:[pe,se-Te-Se],side:"left",tickangle:(+W.aaxis.tickangle||0)-30,domain:[Oe,Oe+ee*A],anchor:"free",position:0,_id:"y",_length:H});y(Me,U.graphDiv._fullLayout),Me.setScale();var ce=U.baxis=v({},W.baxis,{range:[se-pe-Se,Te],side:"bottom",domain:U.xaxis.domain,anchor:"free",position:0,_id:"x",_length:H});y(ce,U.graphDiv._fullLayout),ce.setScale();var ye=U.caxis=v({},W.caxis,{range:[se-pe-Te,Se],side:"right",tickangle:(+W.caxis.tickangle||0)+30,domain:[Oe,Oe+ee*A],anchor:"free",position:0,_id:"y",_length:H});y(ye,U.graphDiv._fullLayout),ye.setScale();var J="M"+L+","+(q+V)+"h"+H+"l-"+H/2+",-"+V+"Z";U.clipDef.select("path").attr("d",J),U.layers.plotbg.select("path").attr("d",J);var ne="M0,"+V+"h"+H+"l-"+H/2+",-"+V+"Z";U.clipDefRelative.select("path").attr("d",ne);var de=d(L,q);U.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",de),U.clipDefRelative.select("path").attr("transform",null);var xe=d(L-ce._offset,q+V);U.layers.baxis.attr("transform",xe),U.layers.bgrid.attr("transform",xe);var ue=d(L+H/2,q)+"rotate(30)"+d(0,-Me._offset);U.layers.aaxis.attr("transform",ue),U.layers.agrid.attr("transform",ue);var ge=d(L+H/2,q)+"rotate(-30)"+d(0,-ye._offset);U.layers.caxis.attr("transform",ge),U.layers.cgrid.attr("transform",ge),U.drawAxes(!0),U.layers.aline.select("path").attr("d",Me.showline?"M"+L+","+(q+V)+"l"+H/2+",-"+V:"M0,0").call(p.stroke,Me.linecolor||"#000").style("stroke-width",(Me.linewidth||0)+"px"),U.layers.bline.select("path").attr("d",ce.showline?"M"+L+","+(q+V)+"h"+H:"M0,0").call(p.stroke,ce.linecolor||"#000").style("stroke-width",(ce.linewidth||0)+"px"),U.layers.cline.select("path").attr("d",ye.showline?"M"+(L+H/2)+","+q+"l"+H/2+","+V:"M0,0").call(p.stroke,ye.linecolor||"#000").style("stroke-width",(ye.linewidth||0)+"px"),U.graphDiv._context.staticPlot||U.initInteractions(),m.setClipUrl(U.layers.frontplot,U._hasClipOnAxisFalse?null:U.clipId,U.graphDiv)},F.drawAxes=function(W){var G=this,L=G.graphDiv,q=G.id.substr(7)+"title",H=G.layers,V=G.aaxis,te=G.baxis,ee=G.caxis;if(G.drawAx(V),G.drawAx(te),G.drawAx(ee),W){var U=Math.max(V.showticklabels?V.tickfont.size/2:0,(ee.showticklabels?.75*ee.tickfont.size:0)+(ee.ticks==="outside"?.87*ee.ticklen:0)),Q=(te.showticklabels?te.tickfont.size:0)+(te.ticks==="outside"?te.ticklen:0)+3;H["a-title"]=M.draw(L,"a"+q,{propContainer:V,propName:G.id+".aaxis.title",placeholder:h(L,"Click to enter Component A title"),attributes:{x:G.x0+G.w/2,y:G.y0-V.title.font.size/3-U,"text-anchor":"middle"}}),H["b-title"]=M.draw(L,"b"+q,{propContainer:te,propName:G.id+".baxis.title",placeholder:h(L,"Click to enter Component B title"),attributes:{x:G.x0-Q,y:G.y0+G.h+.83*te.title.font.size+Q,"text-anchor":"middle"}}),H["c-title"]=M.draw(L,"c"+q,{propContainer:ee,propName:G.id+".caxis.title",placeholder:h(L,"Click to enter Component C title"),attributes:{x:G.x0+G.w+Q,y:G.y0+G.h+.83*ee.title.font.size+Q,"text-anchor":"middle"}})}},F.drawAx=function(W){var G,L=this,q=L.graphDiv,H=W._name,V=H.charAt(0),te=W._id,ee=L.layers[H],U=V+"tickLayout",Q=(G=W).ticks+String(G.ticklen)+String(G.showticklabels);L[U]!==Q&&(ee.selectAll("."+te+"tick").remove(),L[U]=Q),W.setScale();var Y=b.calcTicks(W),Z=b.clipEnds(W,Y),X=b.makeTransTickFn(W),re=b.getTickSigns(W)[2],ie=u.deg2rad(30),le=re*(W.linewidth||1)/2,se=re*W.ticklen,pe=L.w,Te=L.h,Se=V==="b"?"M0,"+le+"l"+Math.sin(ie)*se+","+Math.cos(ie)*se:"M"+le+",0l"+Math.cos(ie)*se+","+-Math.sin(ie)*se,Oe={a:"M0,0l"+Te+",-"+pe/2,b:"M0,0l-"+pe/2+",-"+Te,c:"M0,0l-"+Te+","+pe/2}[V];b.drawTicks(q,W,{vals:W.ticks==="inside"?Z:Y,layer:ee,path:Se,transFn:X,crisp:!1}),b.drawGrid(q,W,{vals:Z,layer:L.layers[V+"grid"],path:Oe,transFn:X,crisp:!1}),b.drawLabels(q,W,{vals:Y,layer:ee,transFn:X,labelFns:b.makeLabelFns(W,0,30)})};var z=O.MINZOOM/2+.87,B="m-0.87,.5h"+z+"v3h-"+(z+5.2)+"l"+(z/2+2.6)+",-"+(.87*z+4.5)+"l2.6,1.5l-"+z/2+","+.87*z+"Z",$="m0.87,.5h-"+z+"v3h"+(z+5.2)+"l-"+(z/2+2.6)+",-"+(.87*z+4.5)+"l-2.6,1.5l"+z/2+","+.87*z+"Z",j="m0,1l"+z/2+","+.87*z+"l2.6,-1.5l-"+(z/2+2.6)+",-"+(.87*z+4.5)+"l-"+(z/2+2.6)+","+(.87*z+4.5)+"l2.6,1.5l"+z/2+",-"+.87*z+"Z",N=!0;function E(W){l.select(W).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}F.clearOutline=function(){D(this.dragOptions),P(this.dragOptions.gd)},F.initInteractions=function(){var W,G,L,q,H,V,te,ee,U,Q,Y,Z,X=this,re=X.layers.plotbg.select("path").node(),ie=X.graphDiv,le=ie._fullLayout._zoomlayer;function se(ne){var de={};return de[X.id+".aaxis.min"]=ne.a,de[X.id+".baxis.min"]=ne.b,de[X.id+".caxis.min"]=ne.c,de}function pe(ne,de){var xe=ie._fullLayout.clickmode;E(ie),ne===2&&(ie.emit("plotly_doubleclick",null),s.call("_guiRelayout",ie,se({a:0,b:0,c:0}))),xe.indexOf("select")>-1&&ne===1&&C(de,ie,[X.xaxis],[X.yaxis],X.id,X.dragOptions),xe.indexOf("event")>-1&&_.click(ie,de,X.id)}function Te(ne,de){return 1-de/X.h}function Se(ne,de){return 1-(ne+(X.h-de)/Math.sqrt(3))/X.w}function Oe(ne,de){return(ne-(X.h-de)/Math.sqrt(3))/X.w}function Me(ne,de){var xe=L+ne*W,ue=q+de*G,ge=Math.max(0,Math.min(1,Te(0,q),Te(0,ue))),be=Math.max(0,Math.min(1,Se(L,q),Se(xe,ue))),we=Math.max(0,Math.min(1,Oe(L,q),Oe(xe,ue))),ke=(ge/2+we)*X.w,Ae=(1-ge/2-be)*X.w,Ee=(ke+Ae)/2,De=Ae-ke,Re=(1-ge)*X.h,Ie=Re-De/A;De.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),Z.transition().style("opacity",1).duration(200),Q=!0),ie.emit("plotly_relayouting",se(te))}function ce(){E(ie),te!==H&&(s.call("_guiRelayout",ie,se(te)),N&&ie.data&&ie._context.showTips&&(u.notifier(h(ie,"Double-click to zoom back out"),"long"),N=!1))}function ye(ne,de){var xe=ne/X.xaxis._m,ue=de/X.yaxis._m,ge=[(te={a:H.a-ue,b:H.b+(xe+ue)/2,c:H.c-(xe-ue)/2}).a,te.b,te.c].sort(u.sorterAsc),be=ge.indexOf(te.a),we=ge.indexOf(te.b),ke=ge.indexOf(te.c);ge[0]<0&&(ge[1]+ge[0]/2<0?(ge[2]+=ge[0]+ge[1],ge[0]=ge[1]=0):(ge[2]+=ge[0]/2,ge[1]+=ge[0]/2,ge[0]=0),te={a:ge[be],b:ge[we],c:ge[ke]},de=(H.a-te.a)*X.yaxis._m,ne=(H.c-te.c-H.b+te.b)*X.xaxis._m);var Ae=d(X.x0+ne,X.y0+de);X.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Ae);var Ee=d(-ne,-de);X.clipDefRelative.select("path").attr("transform",Ee),X.aaxis.range=[te.a,X.sum-te.b-te.c],X.baxis.range=[X.sum-te.a-te.c,te.b],X.caxis.range=[X.sum-te.a-te.b,te.c],X.drawAxes(!1),X._hasClipOnAxisFalse&&X.plotContainer.select(".scatterlayer").selectAll(".trace").call(m.hideOutsideRangePoints,X),ie.emit("plotly_relayouting",se(te))}function J(){s.call("_guiRelayout",ie,se(te))}this.dragOptions={element:re,gd:ie,plotinfo:{id:X.id,domain:ie._fullLayout[X.id].domain,xaxis:X.xaxis,yaxis:X.yaxis},subplot:X.id,prepFn:function(ne,de,xe){X.dragOptions.xaxes=[X.xaxis],X.dragOptions.yaxes=[X.yaxis],W=ie._fullLayout._invScaleX,G=ie._fullLayout._invScaleY;var ue=X.dragOptions.dragmode=ie._fullLayout.dragmode;k(ue)?X.dragOptions.minDrag=1:X.dragOptions.minDrag=void 0,ue==="zoom"?(X.dragOptions.moveFn=Me,X.dragOptions.clickFn=pe,X.dragOptions.doneFn=ce,function(ge,be,we){var ke=re.getBoundingClientRect();L=be-ke.left,q=we-ke.top,ie._fullLayout._calcInverseTransform(ie);var Ae=ie._fullLayout._invTransform,Ee=u.apply3DTransform(Ae)(L,q);L=Ee[0],q=Ee[1],H={a:X.aaxis.range[0],b:X.baxis.range[1],c:X.caxis.range[1]},te=H,V=X.aaxis.range[1]-H.a,ee=f(X.graphDiv._fullLayout[X.id].bgcolor).getLuminance(),U="M0,"+X.h+"L"+X.w/2+", 0L"+X.w+","+X.h+"Z",Q=!1,Y=le.append("path").attr("class","zoombox").attr("transform",d(X.x0,X.y0)).style({fill:ee>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",U),Z=le.append("path").attr("class","zoombox-corners").attr("transform",d(X.x0,X.y0)).style({fill:p.background,stroke:p.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),X.clearOutline(ie)}(0,de,xe)):ue==="pan"?(X.dragOptions.moveFn=ye,X.dragOptions.clickFn=pe,X.dragOptions.doneFn=J,H={a:X.aaxis.range[0],b:X.baxis.range[1],c:X.caxis.range[1]},te=H,X.clearOutline(ie)):(T(ue)||k(ue))&&S(ne,de,xe,X.dragOptions,ue)}},re.onmousemove=function(ne){_.hover(ie,ne,X.id),ie._fullLayout._lasthover=re,ie._fullLayout._hoversubplot=X.id},re.onmouseout=function(ne){ie._dragging||x.unhover(ie,ne)},x.init(this.dragOptions)}},73972:function(o,a,n){var l=n(47769),f=n(64213),s=n(75138),u=n(41965),d=n(24401).addStyleRule,h=n(1426),p=n(9012),m=n(10820),y=h.extendFlat,v=h.extendDeepAll;function g(C){var P=C.name,D=C.categories,O=C.meta;if(a.modules[P])l.log("Type "+P+" already registered");else{a.subplotsRegistry[C.basePlotModule.name]||function(N){var E=N.name;if(a.subplotsRegistry[E])l.log("Plot type "+E+" already registered.");else for(var W in w(N),a.subplotsRegistry[E]=N,a.componentsRegistry)M(W,N.name)}(C.basePlotModule);for(var R={},F=0;F-1&&(x[w[m]].title={text:""});for(m=0;m")!==-1?"":F.html(z).text()});return F.remove(),A}(O)).replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(m,"'"),f.isIE()&&(O=(O=(O=O.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("#$2")')).replace(/(\\')/gi,'"')),O}},75341:function(o,a,n){var l=n(71828);o.exports=function(f,s){for(var u=0;uA+R||!l(F))}for(var B=0;Bm))return d}return h!==void 0?h:u.dflt},a.coerceColor=function(u,d,h){return f(d).isValid()?d:h!==void 0?h:u.dflt},a.coerceEnumerated=function(u,d,h){return u.coerceNumber&&(d=+d),u.values.indexOf(d)!==-1?d:h!==void 0?h:u.dflt},a.getValue=function(u,d){var h;return Array.isArray(u)?d0?se+=pe:k<0&&(se-=pe)}return se}function ee(le){var se=k,pe=le.b,Te=te(le);return l.inbox(pe-se,Te-se,z+(Te-se)/(Te-pe)-1)}var U=v[T+"a"],Q=v[M+"a"];P=Math.abs(U.r2c(U.range[1])-U.r2c(U.range[0]));var Y=l.getDistanceFunction(x,S,C,function(le){return(S(le)+C(le))/2});if(l.getClosest(D,Y,v),v.index!==!1&&D[v.index].p!==p){j||(L=function(le){return Math.min(N(le),le.p-R.bargroupwidth/2)},q=function(le){return Math.max(E(le),le.p+R.bargroupwidth/2)});var Z=D[v.index],X=O.base?Z.b+Z.s:Z.s;v[M+"0"]=v[M+"1"]=Q.c2p(Z[M],!0),v[M+"LabelVal"]=X;var re=R.extents[R.extents.round(Z.p)];v[T+"0"]=U.c2p(F?L(Z):re[0],!0),v[T+"1"]=U.c2p(F?q(Z):re[1],!0);var ie=Z.orig_p!==void 0;return v[T+"LabelVal"]=ie?Z.orig_p:Z.p,v.labelLabel=h(U,v[T+"LabelVal"],O[T+"hoverformat"]),v.valueLabel=h(Q,v[M+"LabelVal"],O[M+"hoverformat"]),v.baseLabel=h(Q,Z.b,O[M+"hoverformat"]),v.spikeDistance=(function(le){var se=k,pe=le.b,Te=te(le);return l.inbox(pe-se,Te-se,B+(Te-se)/(Te-pe)-1)}(Z)+function(le){return H(N(le),E(le),B)}(Z))/2,v[T+"Spike"]=U.c2p(Z.p,!0),u(Z,O,v),v.hovertemplate=O.hovertemplate,v}}function y(v,g){var b=g.mcc||v.marker.color,x=g.mlcc||v.marker.line.color,_=d(v,g);return s.opacity(b)?b:s.opacity(x)&&_?x:void 0}o.exports={hoverPoints:function(v,g,b,x,_){var w=m(v,g,b,x,_);if(w){var k=w.cd,T=k[0].trace,M=k[w.index];return w.color=y(T,M),f.getComponentMethod("errorbars","hoverInfo")(M,T,w),[w]}},hoverOnBars:m,getTraceColor:y}},60822:function(o,a,n){o.exports={attributes:n(1486),layoutAttributes:n(43641),supplyDefaults:n(90769).supplyDefaults,crossTraceDefaults:n(90769).crossTraceDefaults,supplyLayoutDefaults:n(13957),calc:n(92290),crossTraceCalc:n(11661).crossTraceCalc,colorbar:n(4898),arraysToCalcdata:n(75341),plot:n(17295).plot,style:n(16688).style,styleOnSelect:n(16688).styleOnSelect,hoverPoints:n(95423).hoverPoints,eventData:n(58065),selectPoints:n(81974),moduleType:"trace",name:"bar",basePlotModule:n(93612),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}},43641:function(o){o.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},13957:function(o,a,n){var l=n(73972),f=n(89298),s=n(71828),u=n(43641);o.exports=function(d,h,p){function m(T,M){return s.coerce(d,h,u,T,M)}for(var y=!1,v=!1,g=!1,b={},x=m("barmode"),_=0;_0}function F(B){return B==="auto"?0:B}function A(B,$){var j=Math.PI/180*$,N=Math.abs(Math.sin(j)),E=Math.abs(Math.cos(j));return{x:B.width*E+B.height*N,y:B.width*N+B.height*E}}function z(B,$,j,N,E,W){var G=!!W.isHorizontal,L=!!W.constrained,q=W.angle||0,H=W.anchor||"end",V=H==="end",te=H==="start",ee=((W.leftToRight||0)+1)/2,U=1-ee,Q=E.width,Y=E.height,Z=Math.abs($-B),X=Math.abs(N-j),re=Z>2*S&&X>2*S?S:0;Z-=2*re,X-=2*re;var ie=F(q);q!=="auto"||Q<=Z&&Y<=X||!(Q>Z||Y>X)||(Q>X||Y>Z)&&Q.01?we:function(De,Re,Ie){return Ie&&De===Re?De:Math.abs(De-Re)>=2?we(De):De>Re?Math.ceil(De):Math.floor(De)};ne=ke(ne,de,re),de=ke(de,ne,re),xe=ke(xe,ue,!re),ue=ke(ue,xe,!re)}var Ae=O(s.ensureSingle(ye,"path"),q,E,W);if(Ae.style("vector-effect",H?"none":"non-scaling-stroke").attr("d",isNaN((de-ne)*(ue-xe))||ge&&B._context.staticPlot?"M0,0Z":"M"+ne+","+xe+"V"+ue+"H"+de+"V"+xe+"Z").call(h.setClipUrl,$.layerClipId,B),!q.uniformtext.mode&&ie){var Ee=h.makePointStyleFns(U);h.singlePointStyle(Se,Ae,U,Ee,B)}(function(De,Re,Ie,Be,Ue,qe,Ye,at,lt,ct,bt){var ze,Ne=Re.xaxis,Qe=Re.yaxis,it=De._fullLayout;function kt(Dt,gt,ht){return s.ensureSingle(Dt,"text").text(gt).attr({class:"bartext bartext-"+ze,"text-anchor":"middle","data-notex":1}).call(h.font,ht).call(u.convertToTspans,De)}var Je=Be[0].trace,ut=Je.orientation==="h",pt=function(Dt,gt,ht,yt,qt){var Et,jt=gt[0].trace;return Et=jt.texttemplate?function(Tt,Ot,At,Lt,Rt){var $t=Ot[0].trace,Yt=s.castOption($t,At,"texttemplate");if(!Yt)return"";var Xt,Bt,Wt,tn,cn=$t.type==="histogram",ln=$t.type==="waterfall",an=$t.type==="funnel",sn=$t.orientation==="h";function Zt(xn){return m(tn,tn.c2l(xn),!0).text}sn?(Xt="y",Bt=Rt,Wt="x",tn=Lt):(Xt="x",Bt=Lt,Wt="y",tn=Rt);var pn,nn=Ot[At],Kt={};Kt.label=nn.p,Kt.labelLabel=Kt[Xt+"Label"]=(pn=nn.p,m(Bt,Bt.c2l(pn),!0).text);var Cn=s.castOption($t,nn.i,"text");(Cn===0||Cn)&&(Kt.text=Cn),Kt.value=nn.s,Kt.valueLabel=Kt[Wt+"Label"]=Zt(nn.s);var _n={};M(_n,$t,nn.i),(cn||_n.x===void 0)&&(_n.x=sn?Kt.value:Kt.label),(cn||_n.y===void 0)&&(_n.y=sn?Kt.label:Kt.value),(cn||_n.xLabel===void 0)&&(_n.xLabel=sn?Kt.valueLabel:Kt.labelLabel),(cn||_n.yLabel===void 0)&&(_n.yLabel=sn?Kt.labelLabel:Kt.valueLabel),ln&&(Kt.delta=+nn.rawS||nn.s,Kt.deltaLabel=Zt(Kt.delta),Kt.final=nn.v,Kt.finalLabel=Zt(Kt.final),Kt.initial=Kt.final-Kt.delta,Kt.initialLabel=Zt(Kt.initial)),an&&(Kt.value=nn.s,Kt.valueLabel=Zt(Kt.value),Kt.percentInitial=nn.begR,Kt.percentInitialLabel=s.formatPercent(nn.begR),Kt.percentPrevious=nn.difR,Kt.percentPreviousLabel=s.formatPercent(nn.difR),Kt.percentTotal=nn.sumR,Kt.percenTotalLabel=s.formatPercent(nn.sumR));var Pn=s.castOption($t,nn.i,"customdata");return Pn&&(Kt.customdata=Pn),s.texttemplateString(Yt,Kt,Tt._d3locale,_n,Kt,$t._meta||{})}(Dt,gt,ht,yt,qt):jt.textinfo?function(Tt,Ot,At,Lt){var Rt=Tt[0].trace,$t=Rt.orientation==="h",Yt=Rt.type==="waterfall",Xt=Rt.type==="funnel";function Bt(Pn){return m($t?At:Lt,+Pn,!0).text}var Wt,tn,cn=Rt.textinfo,ln=Tt[Ot],an=cn.split("+"),sn=[],Zt=function(Pn){return an.indexOf(Pn)!==-1};if(Zt("label")&&sn.push((tn=Tt[Ot].p,m($t?Lt:At,tn,!0).text)),Zt("text")&&((Wt=s.castOption(Rt,ln.i,"text"))===0||Wt)&&sn.push(Wt),Yt){var pn=+ln.rawS||ln.s,nn=ln.v,Kt=nn-pn;Zt("initial")&&sn.push(Bt(Kt)),Zt("delta")&&sn.push(Bt(pn)),Zt("final")&&sn.push(Bt(nn))}if(Xt){Zt("value")&&sn.push(Bt(ln.s));var Cn=0;Zt("percent initial")&&Cn++,Zt("percent previous")&&Cn++,Zt("percent total")&&Cn++;var _n=Cn>1;Zt("percent initial")&&(Wt=s.formatPercent(ln.begR),_n&&(Wt+=" of initial"),sn.push(Wt)),Zt("percent previous")&&(Wt=s.formatPercent(ln.difR),_n&&(Wt+=" of previous"),sn.push(Wt)),Zt("percent total")&&(Wt=s.formatPercent(ln.sumR),_n&&(Wt+=" of total"),sn.push(Wt))}return sn.join("
")}(gt,ht,yt,qt):x.getValue(jt.text,ht),x.coerceString(k,Et)}(it,Be,Ue,Ne,Qe);ze=function(Dt,gt){var ht=x.getValue(Dt.textposition,gt);return x.coerceEnumerated(T,ht)}(Je,Ue);var It=ct.mode==="stack"||ct.mode==="relative",Mt=Be[Ue],zt=!It||Mt._outmost;if(pt&&ze!=="none"&&(!Mt.isBlank&&qe!==Ye&&at!==lt||ze!=="auto"&&ze!=="inside")){var wt=it.font,ve=b.getBarColor(Be[Ue],Je),_e=b.getInsideTextFont(Je,Ue,wt,ve),Ve=b.getOutsideTextFont(Je,Ue,wt),We=Ie.datum();ut?Ne.type==="log"&&We.s0<=0&&(qe=Ne.range[0]0&&nt>0&&(Ke<=mt&&nt<=tt||Ke<=tt&&nt<=mt||(ut?mt>=Ke*(tt/nt):tt>=nt*(mt/Ke)))?ze="inside":(ze="outside",Ze.remove(),Ze=null)):ze="inside"),!Ze){var Ft=(Ze=kt(Ie,pt,st=s.ensureUniformFontSize(De,ze==="outside"?Ve:_e))).attr("transform");if(Ze.attr("transform",""),Ke=(Ge=h.bBox(Ze.node())).width,nt=Ge.height,Ze.attr("transform",Ft),Ke<=0||nt<=0)return void Ze.remove()}var Vt,St=Je.textangle;Vt=ze==="outside"?function(Dt,gt,ht,yt,qt,Et){var jt,Tt=!!Et.isHorizontal,Ot=!!Et.constrained,At=Et.angle||0,Lt=qt.width,Rt=qt.height,$t=Math.abs(gt-Dt),Yt=Math.abs(yt-ht);jt=Tt?Yt>2*S?S:0:$t>2*S?S:0;var Xt=1;Ot&&(Xt=Tt?Math.min(1,Yt/Rt):Math.min(1,$t/Lt));var Bt=F(At),Wt=A(qt,Bt),tn=(Tt?Wt.x:Wt.y)/2,cn=(qt.left+qt.right)/2,ln=(qt.top+qt.bottom)/2,an=(Dt+gt)/2,sn=(ht+yt)/2,Zt=0,pn=0,nn=Tt?D(gt,Dt):D(ht,yt);return Tt?(an=gt-nn*jt,Zt=nn*tn):(sn=yt+nn*jt,pn=-nn*tn),{textX:cn,textY:ln,targetX:an,targetY:sn,anchorX:Zt,anchorY:pn,scale:Xt,rotate:Bt}}(qe,Ye,at,lt,Ge,{isHorizontal:ut,constrained:Je.constraintext==="both"||Je.constraintext==="outside",angle:St}):z(qe,Ye,at,lt,Ge,{isHorizontal:ut,constrained:Je.constraintext==="both"||Je.constraintext==="inside",angle:St,anchor:Je.insidetextanchor}),Vt.fontSize=st.size,v(Je.type==="histogram"?"bar":Je.type,Vt,it),Mt.transform=Vt;var Nt=O(Ze,it,ct,bt);s.setTransormAndDisplay(Nt,Vt)}else Ie.select("text").remove()})(B,$,ye,te,Oe,ne,de,xe,ue,E,W),$.layerClipId&&h.hideOutsideRangePoint(Se,ye.select("text"),G,L,U.xcalendar,U.ycalendar)});var Te=U.cliponaxis===!1;h.setClipUrl(ee,Te?null:$.layerClipId,B)});p.getComponentMethod("errorbars","plot")(B,V,$,E)},toMoveInsideBar:z}},81974:function(o){function a(n,l,f,s,u){var d=l.c2p(s?n.s0:n.p0,!0),h=l.c2p(s?n.s1:n.p1,!0),p=f.c2p(s?n.p0:n.s0,!0),m=f.c2p(s?n.p1:n.s1,!0);return u?[(d+h)/2,(p+m)/2]:s?[h,(p+m)/2]:[(d+h)/2,m]}o.exports=function(n,l){var f,s=n.cd,u=n.xaxis,d=n.yaxis,h=s[0].trace,p=h.type==="funnel",m=h.orientation==="h",y=[];if(l===!1)for(f=0;f1||O.bargap===0&&O.bargroupgap===0&&!R[0].trace.marker.line.width)&&l.select(this).attr("shape-rendering","crispEdges")}),P.selectAll("g.points").each(function(R){b(l.select(this),R[0].trace,C)}),d.getComponentMethod("errorbars","style")(P)},styleTextPoints:x,styleOnSelect:function(C,P,D){var O=P[0].trace;O.selectedpoints?function(R,F,A){s.selectedPointStyle(R.selectAll("path"),F),function(z,B,$){z.each(function(j){var N,E=l.select(this);if(j.selected){N=u.ensureUniformFontSize($,_(E,j,B,$));var W=B.selected.textfont&&B.selected.textfont.color;W&&(N.color=W),s.font(E,N)}else s.selectedTextStyle(E,B)})}(R.selectAll("text"),F,A)}(D,O,C):(b(D,O,C),d.getComponentMethod("errorbars","style")(D))},getInsideTextFont:k,getOutsideTextFont:T,getBarColor:S,resizeText:h}},98340:function(o,a,n){var l=n(7901),f=n(52075).hasColorscale,s=n(1586),u=n(71828).coercePattern;o.exports=function(d,h,p,m,y){var v=p("marker.color",m),g=f(d,"marker");g&&s(d,h,y,p,{prefix:"marker.",cLetter:"c"}),p("marker.line.color",l.defaultLine),f(d,"marker.line")&&s(d,h,y,p,{prefix:"marker.line.",cLetter:"c"}),p("marker.line.width"),p("marker.opacity"),u(p,"marker.pattern",v,g),p("selected.marker.color"),p("unselected.marker.color")}},72597:function(o,a,n){var l=n(39898),f=n(71828);function s(u){return"_"+u+"Text_minsize"}o.exports={recordMinTextSize:function(u,d,h){if(h.uniformtext.mode){var p=s(u),m=h.uniformtext.minsize,y=d.scale*d.fontSize;d.hide=yj.uf};if(T._hasPreCompStats){var Y=T[P],Z=function(Re){return C.d2c((T[Re]||[])[M])},X=1/0,re=-1/0;for(M=0;M=j.q1&&j.q3>=j.med){var le=Z("lowerfence");j.lf=le!==d&&le<=j.q1?le:g(j,E,W);var se=Z("upperfence");j.uf=se!==d&&se>=j.q3?se:b(j,E,W);var pe=Z("mean");j.mean=pe!==d?pe:W?u.mean(E,W):(j.q1+j.q3)/2;var Te=Z("sd");j.sd=pe!==d&&Te>=0?Te:W?u.stdev(E,W,j.mean):j.q3-j.q1,j.lo=x(j),j.uo=_(j);var Se=Z("notchspan");Se=Se!==d&&Se>0?Se:w(j,W),j.ln=j.med-Se,j.un=j.med+Se;var Oe=j.lf,Me=j.uf;T.boxpoints&&E.length&&(Oe=Math.min(Oe,E[0]),Me=Math.max(Me,E[W-1])),T.notched&&(Oe=Math.min(Oe,j.ln),Me=Math.max(Me,j.un)),j.min=Oe,j.max=Me}else{var ce;u.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+j.q1,"median = "+j.med,"q3 = "+j.q3].join(` -`)),ce=j.med!==d?j.med:j.q1!==d?j.q3!==d?(j.q1+j.q3)/2:j.q1:j.q3!==d?j.q3:0,j.med=ce,j.q1=j.q3=ce,j.lf=j.uf=ce,j.mean=j.sd=ce,j.ln=j.un=ce,j.min=j.max=ce}X=Math.min(X,j.min),re=Math.max(re,j.max),j.pts2=N.filter(Q),B.push(j)}}T._extremes[C._id]=f.findExtremes(C,[X,re],{padded:!0})}else{var ye=C.makeCalcdata(T,P),J=function(Re,Ie){for(var Be=Re.length,Ue=new Array(Be+1),qe=0;qe=0&&xe0){var Ae,Ee;(j={}).pos=j[O]=ee[M],N=j.pts=de[M].sort(y),W=(E=j[P]=N.map(v)).length,j.min=E[0],j.max=E[W-1],j.mean=u.mean(E,W),j.sd=u.stdev(E,W,j.mean)*T.sdmultiple,j.med=u.interp(E,.5),W%2&&(we||ke)?(we?(Ae=E.slice(0,W/2),Ee=E.slice(W/2+1)):ke&&(Ae=E.slice(0,W/2+1),Ee=E.slice(W/2)),j.q1=u.interp(Ae,.5),j.q3=u.interp(Ee,.5)):(j.q1=u.interp(E,.25),j.q3=u.interp(E,.75)),j.lf=g(j,E,W),j.uf=b(j,E,W),j.lo=x(j),j.uo=_(j);var De=w(j,W);j.ln=j.med-De,j.un=j.med+De,ue=Math.min(ue,j.ln),ge=Math.max(ge,j.un),j.pts2=N.filter(Q),B.push(j)}T._extremes[C._id]=f.findExtremes(C,T.notched?ye.concat([ue,ge]):ye,{padded:!0})}return function(Re,Ie){if(u.isArrayOrTypedArray(Ie.selectedpoints))for(var Be=0;Be0?(B[0].t={num:F[$],dPos:U,posLetter:O,valLetter:P,labels:{med:h(k,"median:"),min:h(k,"min:"),q1:h(k,"q1:"),q3:h(k,"q3:"),max:h(k,"max:"),mean:T.boxmean==="sd"||T.sizemode==="sd"?h(k,"mean ± σ:").replace("σ",T.sdmultiple===1?"σ":T.sdmultiple+"σ"):h(k,"mean:"),lf:h(k,"lower fence:"),uf:h(k,"upper fence:")}},F[$]++,B):[{t:{empty:!0}}]};var p={text:"tx",hovertext:"htx"};function m(k,T,M){for(var S in p)u.isArrayOrTypedArray(T[S])&&(Array.isArray(M)?u.isArrayOrTypedArray(T[S][M[0]])&&(k[p[S]]=T[S][M[0]][M[1]]):k[p[S]]=T[S][M])}function y(k,T){return k.v-T.v}function v(k){return k.v}function g(k,T,M){return M===0?k.q1:Math.min(k.q1,T[Math.min(u.findBin(2.5*k.q1-1.5*k.q3,T,!0)+1,M-1)])}function b(k,T,M){return M===0?k.q3:Math.max(k.q3,T[Math.max(u.findBin(2.5*k.q3-1.5*k.q1,T),0)])}function x(k){return 4*k.q1-3*k.q3}function _(k){return 4*k.q3-3*k.q1}function w(k,T){return T===0?0:1.57*(k.q3-k.q1)/Math.sqrt(T)}},37188:function(o,a,n){var l=n(89298),f=n(71828),s=n(99082).getAxisGroup,u=["v","h"];function d(h,p,m,y){var v,g,b,x=p.calcdata,_=p._fullLayout,w=y._id,k=w.charAt(0),T=[],M=0;for(v=0;v1,O=1-_[h+"gap"],R=1-_[h+"groupgap"];for(v=0;v0){var ie=N.pointpos,le=N.jitter,se=N.marker.size/2,pe=0;ie+le>=0&&((pe=X*(ie+le))>$?(re=!0,Y=se,U=pe):pe>te&&(Y=se,U=$)),pe<=$&&(U=$);var Te=0;ie-le<=0&&((Te=-X*(ie-le))>j?(re=!0,Z=se,Q=Te):Te>ee&&(Z=se,Q=j)),Te<=j&&(Q=j)}else U=$,Q=j;var Se=new Array(b.length);for(g=0;g0?(D="v",O=F>0?Math.min(z,A):Math.min(A)):F>0?(D="h",O=Math.min(z)):O=0;if(O){g._length=O;var W=b("orientation",D);g._hasPreCompStats?W==="v"&&F===0?(b("x0",0),b("dx",1)):W==="h"&&R===0&&(b("y0",0),b("dy",1)):W==="v"&&F===0?b("x0"):W==="h"&&R===0&&b("y0"),f.getComponentMethod("calendars","handleTraceDefaults")(v,g,["x","y"],x)}else g.visible=!1}function y(v,g,b,x){var _=x.prefix,w=l.coerce2(v,g,p,"marker.outliercolor"),k=b("marker.line.outliercolor"),T="outliers";g._hasPreCompStats?T="all":(w||k)&&(T="suspectedoutliers");var M=b(_+"points",T);M?(b("jitter",M==="all"?.3:0),b("pointpos",M==="all"?-1.5:0),b("marker.symbol"),b("marker.opacity"),b("marker.size"),b("marker.angle"),b("marker.color",g.line.color),b("marker.line.color"),b("marker.line.width"),M==="suspectedoutliers"&&(b("marker.line.outliercolor",g.marker.color),b("marker.line.outlierwidth")),b("selected.marker.color"),b("unselected.marker.color"),b("selected.marker.size"),b("unselected.marker.size"),b("text"),b("hovertext")):delete g.marker;var S=b("hoveron");S!=="all"&&S.indexOf("points")===-1||b("hovertemplate"),l.coerceSelectionMarkerOpacity(g,b)}o.exports={supplyDefaults:function(v,g,b,x){function _(O,R){return l.coerce(v,g,p,O,R)}if(m(v,g,_,x),g.visible!==!1){u(v,g,x,_),_("xhoverformat"),_("yhoverformat");var w=g._hasPreCompStats;w&&(_("lowerfence"),_("upperfence")),_("line.color",(v.marker||{}).color||b),_("line.width"),_("fillcolor",s.addOpacity(g.line.color,.5));var k=!1;if(w){var T=_("mean"),M=_("sd");T&&T.length&&(k=!0,M&&M.length&&(k="sd"))}_("whiskerwidth");var S,C=_("sizemode");C==="quartiles"&&(S=_("boxmean",k)),_("showwhiskers",C==="quartiles"),C!=="sd"&&S!=="sd"||_("sdmultiple"),_("width"),_("quartilemethod");var P=!1;if(w){var D=_("notchspan");D&&D.length&&(P=!0)}else l.validate(v.notchwidth,p.notchwidth)&&(P=!0);_("notched",P)&&_("notchwidth"),y(v,g,_,{prefix:"box"})}},crossTraceDefaults:function(v,g){var b,x;function _(T){return l.coerce(x._input,x,p,T)}for(var w=0;wM.lo&&(E.so=!0)}return P});T.enter().append("path").classed("point",!0),T.exit().remove(),T.call(s.translatePoints,g,b)}function h(p,m,y,v){var g,b,x=m.val,_=m.pos,w=!!_.rangebreaks,k=v.bPos,T=v.bPosPxOffset||0,M=y.boxmean||(y.meanline||{}).visible;Array.isArray(v.bdPos)?(g=v.bdPos[0],b=v.bdPos[1]):(g=v.bdPos,b=v.bdPos);var S=p.selectAll("path.mean").data(y.type==="box"&&y.boxmean||y.type==="violin"&&y.box.visible&&y.meanline.visible?f.identity:[]);S.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),S.exit().remove(),S.each(function(C){var P=_.c2l(C.pos+k,!0),D=_.l2p(P-g)+T,O=_.l2p(P+b)+T,R=w?(D+O)/2:_.l2p(P)+T,F=x.c2p(C.mean,!0),A=x.c2p(C.mean-C.sd,!0),z=x.c2p(C.mean+C.sd,!0);y.orientation==="h"?l.select(this).attr("d","M"+F+","+D+"V"+O+(M==="sd"?"m0,0L"+A+","+R+"L"+F+","+D+"L"+z+","+R+"Z":"")):l.select(this).attr("d","M"+D+","+F+"H"+O+(M==="sd"?"m0,0L"+R+","+A+"L"+D+","+F+"L"+R+","+z+"Z":""))})}o.exports={plot:function(p,m,y,v){var g=p._context.staticPlot,b=m.xaxis,x=m.yaxis;f.makeTraceGroups(v,y,"trace boxes").each(function(_){var w,k,T=l.select(this),M=_[0],S=M.t,C=M.trace;S.wdPos=S.bdPos*C.whiskerwidth,C.visible!==!0||S.empty?T.remove():(C.orientation==="h"?(w=x,k=b):(w=b,k=x),u(T,{pos:w,val:k},C,S,g),d(T,{x:b,y:x},C,S),h(T,{pos:w,val:k},C,S))})},plotBoxAndWhiskers:u,plotPoints:d,plotBoxMean:h}},24626:function(o){o.exports=function(a,n){var l,f,s=a.cd,u=a.xaxis,d=a.yaxis,h=[];if(n===!1)for(l=0;ld.level||d.starts.length&&u===d.level)}break;case"constraint":if(f.prefixBoundary=!1,f.edgepaths.length)return;var h=f.x.length,p=f.y.length,m=-1/0,y=1/0;for(l=0;l":b>m&&(f.prefixBoundary=!0);break;case"<":(bm||f.starts.length&&g===y)&&(f.prefixBoundary=!0);break;case"][":v=Math.min(b[0],b[1]),g=Math.max(b[0],b[1]),vm&&(f.prefixBoundary=!0)}}}},90654:function(o,a,n){var l=n(21081),f=n(86068),s=n(53572);o.exports={min:"zmin",max:"zmax",calc:function(u,d,h){var p=d.contours,m=d.line,y=p.size||1,v=p.coloring,g=f(d,{isColorbar:!0});if(v==="heatmap"){var b=l.extractOpts(d);h._fillgradient=b.reversescale?l.flipScale(b.colorscale):b.colorscale,h._zrange=[b.min,b.max]}else v==="fill"&&(h._fillcolor=g);h._line={color:v==="lines"?g:m.color,width:p.showlines!==!1?m.width:0,dash:m.dash},h._levels={start:p.start,end:s(p),size:y}}}},36914:function(o){o.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},83179:function(o,a,n){var l=n(92770),f=n(14523),s=n(7901),u=s.addOpacity,d=s.opacity,h=n(74808),p=h.CONSTRAINT_REDUCTION,m=h.COMPARISON_OPS2;o.exports=function(y,v,g,b,x,_){var w,k,T,M=v.contours,S=g("contours.operation");M._operation=p[S],function(C,P){var D;m.indexOf(P.operation)===-1?(C("contours.value",[0,1]),Array.isArray(P.value)?P.value.length>2?P.value=P.value.slice(2):P.length===0?P.value=[0,1]:P.length<2?(D=parseFloat(P.value[0]),P.value=[D,D+1]):P.value=[parseFloat(P.value[0]),parseFloat(P.value[1])]:l(P.value)&&(D=parseFloat(P.value),P.value=[D,D+1])):(C("contours.value",0),l(P.value)||(Array.isArray(P.value)?P.value=parseFloat(P.value[0]):P.value=0))}(g,M),S==="="?w=M.showlines=!0:(w=g("contours.showlines"),T=g("fillcolor",u((y.line||{}).color||x,.5))),w&&(k=g("line.color",T&&d(T)?u(v.fillcolor,1):x),g("line.width",2),g("line.dash")),g("line.smoothing"),f(g,b,k,_)}},64237:function(o,a,n){var l=n(74808),f=n(92770);function s(h,p){var m,y=Array.isArray(p);function v(g){return f(g)?+g:null}return l.COMPARISON_OPS2.indexOf(h)!==-1?m=v(y?p[0]:p):l.INTERVAL_OPS.indexOf(h)!==-1?m=y?[v(p[0]),v(p[1])]:[v(p),v(p)]:l.SET_OPS.indexOf(h)!==-1&&(m=y?p.map(v):[v(p)]),m}function u(h){return function(p){p=s(h,p);var m=Math.min(p[0],p[1]),y=Math.max(p[0],p[1]);return{start:m,end:y,size:y-m}}}function d(h){return function(p){return{start:p=s(h,p),end:1/0,size:1/0}}}o.exports={"[]":u("[]"),"][":u("]["),">":d(">"),"<":d("<"),"=":d("=")}},67217:function(o){o.exports=function(a,n,l,f){var s=f("contours.start"),u=f("contours.end"),d=s===!1||u===!1,h=l("contours.size");!(d?n.autocontour=!0:l("autocontour",!1))&&h||l("ncontours")}},84857:function(o,a,n){var l=n(71828);function f(s){return l.extendFlat({},s,{edgepaths:l.extendDeep([],s.edgepaths),paths:l.extendDeep([],s.paths),starts:l.extendDeep([],s.starts)})}o.exports=function(s,u){var d,h,p,m=function(g){return g.reverse()},y=function(g){return g};switch(u){case"=":case"<":return s;case">":for(s.length!==1&&l.warn("Contour data invalid for the specified inequality operation."),h=s[0],d=0;d1e3){l.warn("Too many contours, clipping at 1000",u);break}return y}},53572:function(o){o.exports=function(a){return a.end+a.size/1e6}},81696:function(o,a,n){var l=n(71828),f=n(36914);function s(h,p,m,y){return Math.abs(h[0]-p[0])20&&re?X===208||X===1114?le=ie[0]===0?1:-1:se=ie[1]===0?1:-1:f.BOTTOMSTART.indexOf(X)!==-1?se=1:f.LEFTSTART.indexOf(X)!==-1?le=1:f.TOPSTART.indexOf(X)!==-1?se=-1:le=-1,[le,se]}(x,m,p),w=[d(h,p,[-_[0],-_[1]])],k=h.z.length,T=h.z[0].length,M=p.slice(),S=_.slice();for(g=0;g<1e4;g++){if(x>20?(x=f.CHOOSESADDLE[x][(_[0]||_[1])<0?0:1],h.crossings[b]=f.SADDLEREMAINDER[x]):delete h.crossings[b],!(_=f.NEWDELTA[x])){l.log("Found bad marching index:",x,p,h.level);break}w.push(d(h,p,_)),p[0]+=_[0],p[1]+=_[1],b=p.join(","),s(w[w.length-1],w[w.length-2],y,v)&&w.pop();var C=_[0]&&(p[0]<0||p[0]>T-2)||_[1]&&(p[1]<0||p[1]>k-2);if(p[0]===M[0]&&p[1]===M[1]&&_[0]===S[0]&&_[1]===S[1]||m&&C)break;x=h.crossings[b]}g===1e4&&l.log("Infinite loop in contour?");var P,D,O,R,F,A,z,B,$,j,N,E,W,G,L,q=s(w[0],w[w.length-1],y,v),H=0,V=.2*h.smoothing,te=[],ee=0;for(g=1;g=ee;g--)if((P=te[g])=ee&&P+te[D]B&&$--,h.edgepaths[$]=N.concat(w,j));break}Z||(h.edgepaths[B]=w.concat(j))}for(B=0;B=S)&&(h<=M&&(h=M),p>=S&&(p=S),y=Math.floor((p-h)/m)+1,v=0),x=0;xM&&(k.unshift(M),T.unshift(T[0])),k[k.length-1]s?0:1)+(u[0][1]>s?0:2)+(u[1][1]>s?0:4)+(u[1][0]>s?0:8);return d===5||d===10?s>(u[0][0]+u[0][1]+u[1][0]+u[1][1])/4?d===5?713:1114:d===5?104:208:d===15?0:d}o.exports=function(s){var u,d,h,p,m,y,v,g,b,x=s[0].z,_=x.length,w=x[0].length,k=_===2||w===2;for(d=0;d<_-1;d++)for(p=[],d===0&&(p=p.concat(l.BOTTOMSTART)),d===_-2&&(p=p.concat(l.TOPSTART)),u=0;u=0&&(D=L,R=F):Math.abs(P[1]-D[1])<.01?Math.abs(P[1]-L[1])<.01&&(L[0]-P[0])*(D[0]-L[0])>=0&&(D=L,R=F):f.log("endpt to newendpt is not vert. or horz.",P,D,L)}if(P=D,R>=0)break;B+="L"+D}if(R===S.edgepaths.length){f.log("unclosed perimeter path");break}$=R,(N=j.indexOf($)===-1)&&($=j[0],B+="Z")}for($=0;$D.center?D.right-F:F-D.left)/(B+Math.abs(Math.sin(z)*R)),N=(A>D.middle?D.bottom-A:A-D.top)/(Math.abs($)+Math.cos(z)*R);if(j<1||N<1)return 1/0;var E=w.EDGECOST*(1/(j-1)+1/(N-1));E+=w.ANGLECOST*z*z;for(var W=F-B,G=A-$,L=F+B,q=A+$,H=0;H2*w.MAXCOST)break;N&&(F/=2),A=(R=z-F/2)+1.5*F}if(j<=w.MAXCOST)return B},a.addLabelData=function(S,C,P,D){var O=C.fontSize,R=C.width+O/3,F=Math.max(0,C.height-O/3),A=S.x,z=S.y,B=S.theta,$=Math.sin(B),j=Math.cos(B),N=function(W,G){return[A+W*j-G*$,z+W*$+G*j]},E=[N(-R/2,-F/2),N(-R/2,F/2),N(R/2,F/2),N(R/2,-F/2)];P.push({text:C.text,x:A,y:z,dy:C.dy,theta:B,level:C.level,width:R,height:F}),D.push(E)},a.drawLabels=function(S,C,P,D,O){var R=S.selectAll("text").data(C,function(z){return z.text+","+z.x+","+z.y+","+z.theta});if(R.exit().remove(),R.enter().append("text").attr({"data-notex":1,"text-anchor":"middle"}).each(function(z){var B=z.x+Math.sin(z.theta)*z.dy,$=z.y-Math.cos(z.theta)*z.dy;l.select(this).text(z.text).attr({x:B,y:$,transform:"rotate("+180*z.theta/Math.PI+" "+B+" "+$+")"}).call(d.convertToTspans,P)}),O){for(var F="",A=0;Ah.end&&(h.start=h.end=(h.start+h.end)/2),u._input.contours||(u._input.contours={}),f.extendFlat(u._input.contours,{start:h.start,end:h.end,size:h.size}),u._input.autocontour=!0}else if(h.type!=="constraint"){var v,g=h.start,b=h.end,x=u._input.contours;g>b&&(h.start=x.start=b,b=h.end=x.end=g,g=h.start),h.size>0||(v=g===b?1:s(g,b,u.ncontours).dtick,x.size=h.size=v)}}},84426:function(o,a,n){var l=n(39898),f=n(91424),s=n(70035),u=n(86068);o.exports=function(d){var h=l.select(d).selectAll("g.contour");h.style("opacity",function(p){return p[0].trace.opacity}),h.each(function(p){var m=l.select(this),y=p[0].trace,v=y.contours,g=y.line,b=v.size||1,x=v.start,_=v.type==="constraint",w=!_&&v.coloring==="lines",k=!_&&v.coloring==="fill",T=w||k?u(y):null;m.selectAll("g.contourlevel").each(function(C){l.select(this).selectAll("path").call(f.lineGroupStyle,g.width,w?T(C.level):g.color,g.dash)});var M=v.labelfont;if(m.selectAll("g.contourlabels text").each(function(C){f.font(l.select(this),{family:M.family,size:M.size,color:M.color||(w?T(C.level):g.color)})}),_)m.selectAll("g.contourfill path").style("fill",y.fillcolor);else if(k){var S;m.selectAll("g.contourfill path").style("fill",function(C){return S===void 0&&(S=C.level),T(C.level+.5*b)}),S===void 0&&(S=x),m.selectAll("g.contourbg path").style("fill",T(S-.5*b))}}),s(d)}},8724:function(o,a,n){var l=n(1586),f=n(14523);o.exports=function(s,u,d,h,p){var m,y=d("contours.coloring"),v="";y==="fill"&&(m=d("contours.showlines")),m!==!1&&(y!=="lines"&&(v=d("line.color","#000")),d("line.width",.5),d("line.dash")),y!=="none"&&(s.showlegend!==!0&&(u.showlegend=!1),u._dfltShowLegend=!1,l(s,u,h,d,{prefix:"",cLetter:"z"})),d("line.smoothing"),f(d,h,v,p)}},21606:function(o,a,n){var l=n(82196),f=n(9012),s=n(41940),u=n(12663).axisHoverFormat,d=n(5386).fF,h=n(5386).si,p=n(50693),m=n(1426).extendFlat;o.exports=m({z:{valType:"data_array",editType:"calc"},x:m({},l.x,{impliedEdits:{xtype:"array"}}),x0:m({},l.x0,{impliedEdits:{xtype:"scaled"}}),dx:m({},l.dx,{impliedEdits:{xtype:"scaled"}}),y:m({},l.y,{impliedEdits:{ytype:"array"}}),y0:m({},l.y0,{impliedEdits:{ytype:"scaled"}}),dy:m({},l.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:m({},l.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:m({},l.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:m({},l.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:m({},l.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:m({},l.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:m({},l.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:u("x"),yhoverformat:u("y"),zhoverformat:u("z",1),hovertemplate:d(),texttemplate:h({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:s({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:m({},f.showlegend,{dflt:!1})},{transforms:void 0},p("",{cLetter:"z",autoColorDflt:!1}))},90757:function(o,a,n){var l=n(73972),f=n(71828),s=n(89298),u=n(42973),d=n(17562),h=n(78803),p=n(68296),m=n(4742),y=n(824),v=n(43907),g=n(70769),b=n(50606).BADNUM;function x(_){for(var w=[],k=_.length,T=0;T1){var Z=(Y[Y.length-1]-Y[0])/(Y.length-1),X=Math.abs(Z/100);for(F=0;FX)return!1}return!0}(z.rangebreaks||B.rangebreaks)&&(R=function(Y,Z,X){for(var re=[],ie=-1,le=0;le=0;p--)(m=((b[[(u=(h=x[p])[0])-1,d=h[1]]]||k)[2]+(b[[u+1,d]]||k)[2]+(b[[u,d-1]]||k)[2]+(b[[u,d+1]]||k)[2])/20)&&(y[h]=[u,d,m],x.splice(p,1),v=!0);if(!v)throw"findEmpties iterated with no new neighbors";for(h in y)b[h]=y[h],g.push(y[h])}return g.sort(function(M,S){return S[2]-M[2]})}},46248:function(o,a,n){var l=n(30211),f=n(71828),s=n(89298),u=n(21081).extractOpts;o.exports=function(d,h,p,m,y){y||(y={});var v,g,b,x,_=y.isContour,w=d.cd[0],k=w.trace,T=d.xa,M=d.ya,S=w.x,C=w.y,P=w.z,D=w.xCenter,O=w.yCenter,R=w.zmask,F=k.zhoverformat,A=S,z=C;if(d.index!==!1){try{b=Math.round(d.index[1]),x=Math.round(d.index[0])}catch{return void f.error("Error hovering on heatmap, pointNumber must be [row,col], found:",d.index)}if(b<0||b>=P[0].length||x<0||x>P.length)return}else{if(l.inbox(h-S[0],h-S[S.length-1],0)>0||l.inbox(p-C[0],p-C[C.length-1],0)>0)return;if(_){var B;for(A=[2*S[0]-S[1]],B=1;BS&&(P=Math.max(P,Math.abs(d[y][v]-M)/(C-S))))}return P}o.exports=function(d,h){var p,m=1;for(u(d,h),p=0;p.01;p++)m=u(d,h,s(m));return m>.01&&l.log("interp2d didn't converge quickly",m),d}},58623:function(o,a,n){var l=n(71828);o.exports=function(f,s){f("texttemplate");var u=l.extendFlat({},s.font,{color:"auto",size:"auto"});l.coerceFont(f,"textfont",u)}},70769:function(o,a,n){var l=n(73972),f=n(71828).isArrayOrTypedArray;o.exports=function(s,u,d,h,p,m){var y,v,g,b=[],x=l.traceIs(s,"contour"),_=l.traceIs(s,"histogram"),w=l.traceIs(s,"gl2d");if(f(u)&&u.length>1&&!_&&m.type!=="category"){var k=u.length;if(!(k<=p))return x?u.slice(0,p):u.slice(0,p+1);if(x||w)b=u.slice(0,p);else if(p===1)b=[u[0]-.5,u[0]+.5];else{for(b=[1.5*u[0]-.5*u[1]],g=1;g0;)j=A.c2p(Y[G]),G--;for(j<$&&(N=j,j=$,$=N,Te=!0),G=0;E===void 0&&G0;)W=z.c2p(Z[G]),G--;W=A._length||j<=0||E>=z._length||W<=0)return H.selectAll("image").data([]).exit().remove(),void M(H);Oe==="fast"?(ce=pe,ye=se):(ce=J,ye=ne);var de=document.createElement("canvas");de.width=ce,de.height=ye;var xe,ue,ge=de.getContext("2d",{willReadFrequently:!0}),be=g(te,{noNumericCheck:!0,returnArray:!0});Oe==="fast"?(xe=Te?function(pn){return pe-1-pn}:h.identity,ue=Se?function(pn){return se-1-pn}:h.identity):(xe=function(pn){return h.constrain(Math.round(A.c2p(Y[pn])-$),0,J)},ue=function(pn){return h.constrain(Math.round(z.c2p(Z[pn])-E),0,ne)});var we,ke,Ae,Ee,De=ue(0),Re=[De,De],Ie=Te?0:1,Be=Se?0:1,Ue=0,qe=0,Ye=0,at=0;function lt(pn,nn){if(pn!==void 0){var Kt=be(pn);return Kt[0]=Math.round(Kt[0]),Kt[1]=Math.round(Kt[1]),Kt[2]=Math.round(Kt[2]),Ue+=nn,qe+=Kt[0]*nn,Ye+=Kt[1]*nn,at+=Kt[2]*nn,Kt}return[0,0,0,0]}function ct(pn,nn,Kt,Cn){var _n=pn[Kt.bin0];if(_n===void 0)return lt(void 0,1);var Pn,xn=pn[Kt.bin1],Dn=nn[Kt.bin0],tr=nn[Kt.bin1],ia=xn-_n||0,fa=Dn-_n||0;return Pn=xn===void 0?tr===void 0?0:Dn===void 0?2*(tr-_n):2*(2*tr-Dn-_n)/3:tr===void 0?Dn===void 0?0:2*(2*_n-xn-Dn)/3:Dn===void 0?2*(2*tr-xn-_n)/3:tr+_n-xn-Dn,lt(_n+Kt.frac*ia+Cn.frac*(fa+Kt.frac*Pn))}if(Oe!=="default"){var bt,ze=0;try{bt=new Uint8Array(ce*ye*4)}catch{bt=new Array(ce*ye*4)}if(Oe==="smooth"){var Ne,Qe,it,kt=X||Y,Je=re||Z,ut=new Array(kt.length),pt=new Array(Je.length),It=new Array(J),Mt=X?C:S,zt=re?C:S;for(G=0;Ggt||gt>z._length))for(L=Vt;Lyt||yt>A._length)){var qt=m({x:ht,y:Dt},te,D._fullLayout);qt.x=ht,qt.y=Dt;var Et=V.z[G][L];Et===void 0?(qt.z="",qt.zLabel=""):(qt.z=Et,qt.zLabel=d.tickText(st,Et,"hover").text);var jt=V.text&&V.text[G]&&V.text[G][L];jt!==void 0&&jt!==!1||(jt=""),qt.text=jt;var Tt=h.texttemplateString(Ke,qt,D._fullLayout._d3locale,qt,te._meta||{});if(Tt){var Ot=Tt.split("
"),At=Ot.length,Lt=0;for(q=0;q0&&(S=!0);for(var D=0;Dh){var p=h-u[f];return u[f]=h,p}}return 0},max:function(f,s,u,d){var h=d[s];if(l(h)){if(h=Number(h),!l(u[f]))return u[f]=h,h;if(u[f]p?x>u?x>1.1*f?f:x>1.1*s?s:u:x>d?d:x>h?h:p:Math.pow(10,Math.floor(Math.log(x)/Math.LN10))}function g(x,_,w,k,T,M){if(k&&x>u){var S=b(_,T,M),C=b(w,T,M),P=x===f?0:1;return S[P]!==C[P]}return Math.floor(w/x)-Math.floor(_/x)>.1}function b(x,_,w){var k=_.c2d(x,f,w).split("-");return k[0]===""&&(k.unshift(),k[0]="-"+k[0]),k}o.exports=function(x,_,w,k,T){var M,S,C=-1.1*_,P=-.1*_,D=x-P,O=w[0],R=w[1],F=Math.min(y(O+P,O+D,k,T),y(R+P,R+D,k,T)),A=Math.min(y(O+C,O+P,k,T),y(R+C,R+P,k,T));if(F>A&&Au){var z=M===f?1:6,B=M===f?"M12":"M1";return function($,j){var N=k.c2d($,f,T),E=N.indexOf("-",z);E>0&&(N=N.substr(0,E));var W=k.d2c(N,0,T);if(W<$){var G=m(W,B,!1,T);(W+G)/2<$+x&&(W=G)}return j&&S?m(W,B,!0,T):W}}return function($,j){var N=M*Math.round($/M);return N+M/10<$&&N+.9*M<$+x&&(N+=M),j&&S&&(N-=M),N}}},72138:function(o,a,n){var l=n(92770),f=n(71828),s=n(73972),u=n(89298),d=n(75341),h=n(59575),p=n(36362),m=n(42174),y=n(40965);function v(g,b,x,_,w){var k,T,M,S,C,P,D,O=_+"bins",R=g._fullLayout,F=b["_"+_+"bingroup"],A=R._histogramBinOpts[F],z=R.barmode==="overlay",B=function(Se){return x.r2c(Se,0,S)},$=function(Se){return x.c2r(Se,0,S)},j=x.type==="date"?function(Se){return Se||Se===0?f.cleanDate(Se,null,S):null}:function(Se){return l(Se)?Number(Se):null};function N(Se,Oe,Me){Oe[Se+"Found"]?(Oe[Se]=j(Oe[Se]),Oe[Se]===null&&(Oe[Se]=Me[Se])):(P[Se]=Oe[Se]=Me[Se],f.nestedProperty(T[0],O+"."+Se).set(Me[Se]))}if(b["_"+_+"autoBinFinished"])delete b["_"+_+"autoBinFinished"];else{T=A.traces;var E=[],W=!0,G=!1,L=!1;for(k=0;kx.r2l(Z)&&(re=u.tickIncrement(re,A.size,!0,S)),ee.start=x.l2r(re),Y||f.nestedProperty(b,O+".start").set(ee.start)}var ie=A.end,le=x.r2l(te.end),se=le!==void 0;if((A.endFound||se)&&le!==x.r2l(ie)){var pe=se?le:f.aggNums(Math.max,null,C);ee.end=x.l2r(pe),se||f.nestedProperty(b,O+".start").set(ee.end)}var Te="autobin"+_;return b._input[Te]===!1&&(b._input[O]=f.extendFlat({},b[O]||{}),delete b._input[Te],delete b[Te]),[ee,C]}o.exports={calc:function(g,b){var x,_,w,k,T=[],M=[],S=b.orientation==="h",C=u.getFromId(g,S?b.yaxis:b.xaxis),P=S?"y":"x",D={x:"y",y:"x"}[P],O=b[P+"calendar"],R=b.cumulative,F=v(g,b,C,P),A=F[0],z=F[1],B=typeof A.size=="string",$=[],j=B?$:A,N=[],E=[],W=[],G=0,L=b.histnorm,q=b.histfunc,H=L.indexOf("density")!==-1;R.enabled&&H&&(L=L.replace(/ ?density$/,""),H=!1);var V,te=q==="max"||q==="min"?null:0,ee=h.count,U=p[L],Q=!1,Y=function(ne){return C.r2c(ne,0,O)};for(f.isArrayOrTypedArray(b[D])&&q!=="count"&&(V=b[D],Q=q==="avg",ee=h[q]),x=Y(A.start),w=Y(A.end)+(x-u.tickIncrement(x,A.size,!1,O))/1e6;x=0&&k=0;ue--)ke(ue);else if(de==="increasing"){for(ue=1;ue=0;ue--)ne[ue]+=ne[ue+1];xe==="exclude"&&(ne.push(0),ne.shift())}}(M,R.direction,R.currentbin);var Oe=Math.min(T.length,M.length),Me=[],ce=0,ye=Oe-1;for(x=0;x=ce;x--)if(M[x]){ye=x;break}for(x=ce;x<=ye;x++)if(l(T[x])&&l(M[x])){var J={p:T[x],s:M[x],b:0};R.enabled||(J.pts=W[x],le?J.ph0=J.ph1=W[x].length?z[W[x][0]]:T[x]:(b._computePh=!0,J.ph0=re($[x]),J.ph1=re($[x+1],!0))),Me.push(J)}return Me.length===1&&(Me[0].width1=u.tickIncrement(Me[0].p,A.size,!1,O)-Me[0].p),d(Me,b),f.isArrayOrTypedArray(b.selectedpoints)&&f.tagSelected(Me,b,Te),Me},calcAllAutoBins:v}},72406:function(o){o.exports={eventDataKeys:["binNumber"]}},82222:function(o,a,n){var l=n(71828),f=n(41675),s=n(73972).traceIs,u=n(26125),d=l.nestedProperty,h=n(99082).getAxisGroup,p=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],m=["x","y"];o.exports=function(y,v){var g,b,x,_,w,k,T,M=v._histogramBinOpts={},S=[],C={},P=[];function D(H,V){return l.coerce(g._input,g,g._module.attributes,H,V)}function O(H){return H.orientation==="v"?"x":"y"}function R(H,V,te){var ee=H.uid+"__"+te;V||(V=ee);var U=function(X,re){return f.getFromTrace({_fullLayout:v},X,re).type}(H,te),Q=H[te+"calendar"]||"",Y=M[V],Z=!0;Y&&(U===Y.axType&&Q===Y.calendar?(Z=!1,Y.traces.push(H),Y.dirs.push(te)):(V=ee,U!==Y.axType&&l.warn(["Attempted to group the bins of trace",H.index,"set on a","type:"+U,"axis","with bins on","type:"+Y.axType,"axis."].join(" ")),Q!==Y.calendar&&l.warn(["Attempted to group the bins of trace",H.index,"set with a",Q,"calendar","with bins",Y.calendar?"on a "+Y.calendar+" calendar":"w/o a set calendar"].join(" ")))),Z&&(M[V]={traces:[H],dirs:[te],axType:U,calendar:H[te+"calendar"]||""}),H["_"+te+"bingroup"]=V}for(w=0;w$&&F.splice($,F.length-$),B.length>$&&B.splice($,B.length-$);var j=[],N=[],E=[],W=typeof R.size=="string",G=typeof z.size=="string",L=[],q=[],H=W?L:R,V=G?q:z,te=0,ee=[],U=[],Q=b.histnorm,Y=b.histfunc,Z=Q.indexOf("density")!==-1,X=Y==="max"||Y==="min"?null:0,re=s.count,ie=u[Q],le=!1,se=[],pe=[],Te="z"in b?b.z:"marker"in b&&Array.isArray(b.marker.color)?b.marker.color:"";Te&&Y!=="count"&&(le=Y==="avg",re=s[Y]);var Se=R.size,Oe=P(R.start),Me=P(R.end)+(Oe-f.tickIncrement(Oe,Se,!1,S))/1e6;for(x=Oe;x=0&&w=0&&k0||l.inbox(h-p.y0,h-(p.y0+p.h*m.dy),0)>0)){var g,b=Math.floor((d-p.x0)/m.dx),x=Math.floor(Math.abs(h-p.y0)/m.dy);if(m._hasZ?g=p.z[x][b]:m._hasSource&&(g=m._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(b,x,1,1).data),g){var _,w=p.hi||m.hoverinfo;if(w){var k=w.split("+");k.indexOf("all")!==-1&&(k=["color"]),k.indexOf("color")!==-1&&(_=!0)}var T,M=s.colormodel[m.colormodel],S=M.colormodel||m.colormodel,C=S.length,P=m._scaler(g),D=M.suffix,O=[];(m.hovertemplate||_)&&(O.push("["+[P[0]+D[0],P[1]+D[1],P[2]+D[2]].join(", ")),C===4&&O.push(", "+P[3]+D[3]),O.push("]"),O=O.join(""),u.extraText=S.toUpperCase()+": "+O),Array.isArray(m.hovertext)&&Array.isArray(m.hovertext[x])?T=m.hovertext[x][b]:Array.isArray(m.text)&&Array.isArray(m.text[x])&&(T=m.text[x][b]);var R=v.c2p(p.y0+(x+.5)*m.dy),F=p.x0+(b+.5)*m.dx,A=p.y0+(x+.5)*m.dy,z="["+g.slice(0,m.colormodel.length).join(", ")+"]";return[f.extendFlat(u,{index:[x,b],x0:y.c2p(p.x0+b*m.dx),x1:y.c2p(p.x0+(b+1)*m.dx),y0:R,y1:R,color:P,xVal:F,xLabelVal:F,yVal:A,yLabelVal:A,zLabelVal:z,text:T,hovertemplateLabels:{zLabel:z,colorLabel:O,"color[0]Label":P[0]+D[0],"color[1]Label":P[1]+D[1],"color[2]Label":P[2]+D[2],"color[3]Label":P[3]+D[3]}})]}}}},94507:function(o,a,n){o.exports={attributes:n(17230),supplyDefaults:n(13245),calc:n(71113),plot:n(60775),style:n(12826),hoverPoints:n(28749),eventData:n(30835),moduleType:"trace",name:"image",basePlotModule:n(93612),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}},60775:function(o,a,n){var l=n(39898),f=n(71828),s=f.strTranslate,u=n(77922),d=n(51877),h=n(3883),p=n(32396).STYLE;o.exports=function(m,y,v,g){var b=y.xaxis,x=y.yaxis,_=!m._context._exportedPlot&&h();f.makeTraceGroups(g,v,"im").each(function(w){var k=l.select(this),T=w[0],M=T.trace,S=(M.zsmooth==="fast"||M.zsmooth===!1&&_)&&!M._hasZ&&M._hasSource&&b.type==="linear"&&x.type==="linear";M._realImage=S;var C,P,D,O,R,F,A=T.z,z=T.x0,B=T.y0,$=T.w,j=T.h,N=M.dx,E=M.dy;for(F=0;C===void 0&&F<$;)C=b.c2p(z+F*N),F++;for(F=$;P===void 0&&F>0;)P=b.c2p(z+F*N),F--;for(F=0;O===void 0&&F0;)R=x.c2p(B+F*E),F--;PV[0];if(te||ee){var U=C+W/2,Q=O+G/2;q+="transform:"+s(U+"px",Q+"px")+"scale("+(te?-1:1)+","+(ee?-1:1)+")"+s(-U+"px",-Q+"px")+";"}}L.attr("style",q);var Y=new Promise(function(X){if(M._hasZ)X();else if(M._hasSource)if(M._canvas&&M._canvas.el.width===$&&M._canvas.el.height===j&&M._canvas.source===M.source)X();else{var re=document.createElement("canvas");re.width=$,re.height=j;var ie=re.getContext("2d",{willReadFrequently:!0});M._image=M._image||new Image;var le=M._image;le.onload=function(){ie.drawImage(le,0,0),M._canvas={el:re,source:M.source},X()},le.setAttribute("src",M.source)}}).then(function(){var X,re;if(M._hasZ)re=Z(function(le,se){return A[se][le]}),X=re.toDataURL("image/png");else if(M._hasSource)if(S)X=M.source;else{var ie=M._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,$,j).data;re=Z(function(le,se){var pe=4*(se*$+le);return[ie[pe],ie[pe+1],ie[pe+2],ie[pe+3]]}),X=re.toDataURL("image/png")}L.attr({"xlink:href":X,height:G,width:W,x:C,y:O})});m._promises.push(Y)}function Z(X){var re=document.createElement("canvas");re.width=W,re.height=G;var ie,le=re.getContext("2d",{willReadFrequently:!0}),se=function(de){return f.constrain(Math.round(b.c2p(z+de*N)-C),0,W)},pe=function(de){return f.constrain(Math.round(x.c2p(B+de*E)-O),0,G)},Te=d.colormodel[M.colormodel],Se=Te.colormodel||M.colormodel,Oe=Te.fmt;for(F=0;F=0}),(m.type==="funnelarea"?D:m.sort)&&g.sort(function(z,B){return B.v-z.v}),g[0]&&(g[0].vTotal=P),g},crossTraceCalc:function(p,m){var y=(m||{}).type;y||(y="pie");var v=p._fullLayout,g=p.calcdata,b=v[y+"colorway"],x=v["_"+y+"colormap"];v["extend"+y+"colors"]&&(b=h(b,u));for(var _=0,w=0;w0){_=!0;break}}_||(x=0)}return{hasLabels:g,hasValues:b,len:x}}function m(y,v,g,b,x){b("marker.line.width")&&b("marker.line.color",x?void 0:g.paper_bgcolor);var _=b("marker.colors");h(b,"marker.pattern",_),y.marker&&!v.marker.pattern.fgcolor&&(v.marker.pattern.fgcolor=y.marker.colors),v.marker.pattern.bgcolor||(v.marker.pattern.bgcolor=g.paper_bgcolor)}o.exports={handleLabelsAndValues:p,handleMarkerDefaults:m,supplyDefaults:function(y,v,g,b){function x(D,O){return f.coerce(y,v,s,D,O)}var _=p(x("labels"),x("values")),w=_.len;if(v._hasLabels=_.hasLabels,v._hasValues=_.hasValues,!v._hasLabels&&v._hasValues&&(x("label0"),x("dlabel")),w){v._length=w,m(y,v,b,x,!0),x("scalegroup");var k,T=x("text"),M=x("texttemplate");if(M||(k=x("textinfo",Array.isArray(T)?"text+percent":"percent")),x("hovertext"),x("hovertemplate"),M||k&&k!=="none"){var S=x("textposition");d(y,v,b,x,S,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(S)||S==="auto"||S==="outside")&&x("automargin"),(S==="inside"||S==="auto"||Array.isArray(S))&&x("insidetextorientation")}u(v,b,x);var C=x("hole");if(x("title.text")){var P=x("title.position",C?"middle center":"top center");C||P!=="middle center"||(v.title.position="top center"),f.coerceFont(x,"title.font",b.font)}x("sort"),x("direction"),x("rotation"),x("pull")}else v.visible=!1}}},20007:function(o,a,n){var l=n(23469).appendArrayMultiPointValues;o.exports=function(f,s){var u={curveNumber:s.index,pointNumbers:f.pts,data:s._input,fullData:s,label:f.label,color:f.color,value:f.v,percent:f.percent,text:f.text,bbox:f.bbox,v:f.v};return f.pts.length===1&&(u.pointNumber=u.i=f.pts[0]),l(u,s,f.pts),s.type==="funnelarea"&&(delete u.v,delete u.i),u}},22209:function(o,a,n){var l=n(91424),f=n(7901);o.exports=function(s,u,d,h){var p=d.marker.pattern;p&&p.shape?l.pointStyle(s,d,h,u):f.fill(s,u.color)}},53581:function(o,a,n){var l=n(71828);function f(s){return s.indexOf("e")!==-1?s.replace(/[.]?0+e/,"e"):s.indexOf(".")!==-1?s.replace(/[.]?0+$/,""):s}a.formatPiePercent=function(s,u){var d=f((100*s).toPrecision(3));return l.numSeparate(d,u)+"%"},a.formatPieValue=function(s,u){var d=f(s.toPrecision(10));return l.numSeparate(d,u)},a.getFirstFilled=function(s,u){if(Array.isArray(s))for(var d=0;d"),name:X.hovertemplate||re.indexOf("name")!==-1?X.name:void 0,idealAlign:Y.pxmid[0]<0?"left":"right",color:_.castOption(Oe.bgcolor,Y.pts)||Y.color,borderColor:_.castOption(Oe.bordercolor,Y.pts),fontFamily:_.castOption(Me.family,Y.pts),fontSize:_.castOption(Me.size,Y.pts),fontColor:_.castOption(Me.color,Y.pts),nameLength:_.castOption(Oe.namelength,Y.pts),textAlign:_.castOption(Oe.align,Y.pts),hovertemplate:_.castOption(X.hovertemplate,Y.pts),hovertemplateLabels:Y,eventData:[w(Y,X)]},{container:Z._hoverlayer.node(),outerContainer:Z._paper.node(),gd:q,inOut_bbox:ce}),Y.bbox=ce[0],U._hasHoverLabel=!0}U._hasHoverEvent=!0,q.emit("plotly_hover",{points:[w(Y,X)],event:l.event})}}),L.on("mouseout",function(Y){var Z=q._fullLayout,X=q._fullData[U.index],re=l.select(this).datum();U._hasHoverEvent&&(Y.originalEvent=l.event,q.emit("plotly_unhover",{points:[w(re,X)],event:l.event}),U._hasHoverEvent=!1),U._hasHoverLabel&&(s.loneUnhover(Z._hoverlayer.node()),U._hasHoverLabel=!1)}),L.on("click",function(Y){var Z=q._fullLayout,X=q._fullData[U.index];q._dragging||Z.hovermode===!1||(q._hoverdata=[w(Y,X)],s.click(q,l.event))})}function M(L,q,H){var V=_.castOption(L.insidetextfont.color,q.pts);!V&&L._input.textfont&&(V=_.castOption(L._input.textfont.color,q.pts));var te=_.castOption(L.insidetextfont.family,q.pts)||_.castOption(L.textfont.family,q.pts)||H.family,ee=_.castOption(L.insidetextfont.size,q.pts)||_.castOption(L.textfont.size,q.pts)||H.size;return{color:V||u.contrast(q.color),family:te,size:ee}}function S(L,q){for(var H,V,te=0;tewe&&we>Ae||ke=-4;Te-=2)Se(Math.PI*Te,"tan");for(Te=4;Te>=-4;Te-=2)Se(Math.PI*(Te+1),"tan")}if(re||le){for(Te=4;Te>=-4;Te-=2)Se(Math.PI*(Te+1.5),"rad");for(Te=4;Te>=-4;Te-=2)Se(Math.PI*(Te+.5),"rad")}}if(Q||se||re){var Oe=Math.sqrt(L.width*L.width+L.height*L.height);if((ee={scale:te*V*2/Oe,rCenter:1-te,rotate:0}).textPosAngle=(q.startangle+q.stopangle)/2,ee.scale>=1)return ee;pe.push(ee)}(se||le)&&((ee=P(L,V,U,Y,Z)).textPosAngle=(q.startangle+q.stopangle)/2,pe.push(ee)),(se||ie)&&((ee=D(L,V,U,Y,Z)).textPosAngle=(q.startangle+q.stopangle)/2,pe.push(ee));for(var Me=0,ce=0,ye=0;ye=1)break}return pe[Me]}function P(L,q,H,V,te){q=Math.max(0,q-2*x);var ee=L.width/L.height,U=F(ee,V,q,H);return{scale:2*U/L.height,rCenter:O(ee,U/q),rotate:R(te)}}function D(L,q,H,V,te){q=Math.max(0,q-2*x);var ee=L.height/L.width,U=F(ee,V,q,H);return{scale:2*U/L.width,rCenter:O(ee,U/q),rotate:R(te+Math.PI/2)}}function O(L,q){return Math.cos(q)-L*q}function R(L){return(180/Math.PI*L+720)%180-90}function F(L,q,H,V){var te=L+1/(2*Math.tan(q));return H*Math.min(1/(Math.sqrt(te*te+.5)+te),V/(Math.sqrt(L*L+V/2)+L))}function A(L,q){return L.v!==q.vTotal||q.trace.hole?Math.min(1/(1+1/Math.sin(L.halfangle)),L.ring/2):1}function z(L,q){var H=q.pxmid[0],V=q.pxmid[1],te=L.width/2,ee=L.height/2;return H<0&&(te*=-1),V<0&&(ee*=-1),{scale:1,rCenter:1,rotate:0,x:te+Math.abs(ee)*(te>0?1:-1)/2,y:ee/(1+H*H/(V*V)),outside:!0}}function B(L,q){var H,V,te,ee=L.trace,U={x:L.cx,y:L.cy},Q={tx:0,ty:0};Q.ty+=ee.title.font.size,te=j(ee),ee.title.position.indexOf("top")!==-1?(U.y-=(1+te)*L.r,Q.ty-=L.titleBox.height):ee.title.position.indexOf("bottom")!==-1&&(U.y+=(1+te)*L.r);var Y,Z=L.r/((Y=L.trace.aspectratio)===void 0?1:Y),X=q.w*(ee.domain.x[1]-ee.domain.x[0])/2;return ee.title.position.indexOf("left")!==-1?(X+=Z,U.x-=(1+te)*Z,Q.tx+=L.titleBox.width/2):ee.title.position.indexOf("center")!==-1?X*=2:ee.title.position.indexOf("right")!==-1&&(X+=Z,U.x+=(1+te)*Z,Q.tx-=L.titleBox.width/2),H=X/L.titleBox.width,V=$(L,q)/L.titleBox.height,{x:U.x,y:U.y,scale:Math.min(H,V),tx:Q.tx,ty:Q.ty}}function $(L,q){var H=L.trace,V=q.h*(H.domain.y[1]-H.domain.y[0]);return Math.min(L.titleBox.height,V/2)}function j(L){var q,H=L.pull;if(!H)return 0;if(Array.isArray(H))for(H=0,q=0;qH&&(H=L.pull[q]);return H}function N(L,q){for(var H=[],V=0;V1?ye=(ce=le.r)/pe.aspectratio:ce=(ye=le.r)*pe.aspectratio,Me=(ce*=(1+pe.baseratio)/2)*ye}Se=Math.min(Se,Me/le.vTotal)}for(se=0;se")}if(ee){var Te=h.castOption(te,q.i,"texttemplate");if(Te){var Se=function(Me){return{label:Me.label,value:Me.v,valueLabel:_.formatPieValue(Me.v,V.separators),percent:Me.v/H.vTotal,percentLabel:_.formatPiePercent(Me.v/H.vTotal,V.separators),color:Me.color,text:Me.text,customdata:h.castOption(te,Me.i,"customdata")}}(q),Oe=_.getFirstFilled(te.text,q.pts);(k(Oe)||Oe==="")&&(Se.text=Oe),q.text=h.texttemplateString(Te,Se,L._fullLayout._d3locale,Se,te._meta||{})}else q.text=""}}function G(L,q){var H=L.rotate*Math.PI/180,V=Math.cos(H),te=Math.sin(H),ee=(q.left+q.right)/2,U=(q.top+q.bottom)/2;L.textX=ee*V-U*te,L.textY=ee*te+U*V,L.noCenter=!0}o.exports={plot:function(L,q){var H=L._context.staticPlot,V=L._fullLayout,te=V._size;b("pie",V),S(q,L),N(q,te);var ee=h.makeTraceGroups(V._pielayer,q,"trace").each(function(U){var Q=l.select(this),Y=U[0],Z=Y.trace;(function(X){var re,ie,le,se=X[0],pe=se.r,Te=se.trace,Se=_.getRotationAngle(Te.rotation),Oe=2*Math.PI/se.vTotal,Me="px0",ce="px1";if(Te.direction==="counterclockwise"){for(re=0;rese.vTotal/2?1:0,ie.halfangle=Math.PI*Math.min(ie.v/se.vTotal,.5),ie.ring=1-Te.hole,ie.rInscribed=A(ie,se))})(U),Q.attr("stroke-linejoin","round"),Q.each(function(){var X=l.select(this).selectAll("g.slice").data(U);X.enter().append("g").classed("slice",!0),X.exit().remove();var re=[[[],[]],[[],[]]],ie=!1;X.each(function(ce,ye){if(ce.hidden)l.select(this).selectAll("path,g").remove();else{ce.pointNumber=ce.i,ce.curveNumber=Z.index,re[ce.pxmid[1]<0?0:1][ce.pxmid[0]<0?0:1].push(ce);var J=Y.cx,ne=Y.cy,de=l.select(this),xe=de.selectAll("path.surface").data([ce]);if(xe.enter().append("path").classed("surface",!0).style({"pointer-events":H?"none":"all"}),de.call(T,L,U),Z.pull){var ue=+_.castOption(Z.pull,ce.pts)||0;ue>0&&(J+=ue*ce.pxmid[0],ne+=ue*ce.pxmid[1])}ce.cxFinal=J,ce.cyFinal=ne;var ge=Z.hole;if(ce.v===Y.vTotal){var be="M"+(J+ce.px0[0])+","+(ne+ce.px0[1])+De(ce.px0,ce.pxmid,!0,1)+De(ce.pxmid,ce.px0,!0,1)+"Z";ge?xe.attr("d","M"+(J+ge*ce.px0[0])+","+(ne+ge*ce.px0[1])+De(ce.px0,ce.pxmid,!1,ge)+De(ce.pxmid,ce.px0,!1,ge)+"Z"+be):xe.attr("d",be)}else{var we=De(ce.px0,ce.px1,!0,1);if(ge){var ke=1-ge;xe.attr("d","M"+(J+ge*ce.px1[0])+","+(ne+ge*ce.px1[1])+De(ce.px1,ce.px0,!1,ge)+"l"+ke*ce.px0[0]+","+ke*ce.px0[1]+we+"Z")}else xe.attr("d","M"+J+","+ne+"l"+ce.px0[0]+","+ce.px0[1]+we+"Z")}W(L,ce,Y);var Ae=_.castOption(Z.textposition,ce.pts),Ee=de.selectAll("g.slicetext").data(ce.text&&Ae!=="none"?[0]:[]);Ee.enter().append("g").classed("slicetext",!0),Ee.exit().remove(),Ee.each(function(){var Re=h.ensureSingle(l.select(this),"text","",function(ct){ct.attr("data-notex",1)}),Ie=h.ensureUniformFontSize(L,Ae==="outside"?function(ct,bt,ze){return{color:_.castOption(ct.outsidetextfont.color,bt.pts)||_.castOption(ct.textfont.color,bt.pts)||ze.color,family:_.castOption(ct.outsidetextfont.family,bt.pts)||_.castOption(ct.textfont.family,bt.pts)||ze.family,size:_.castOption(ct.outsidetextfont.size,bt.pts)||_.castOption(ct.textfont.size,bt.pts)||ze.size}}(Z,ce,V.font):M(Z,ce,V.font));Re.text(ce.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(d.font,Ie).call(y.convertToTspans,L);var Be,Ue=d.bBox(Re.node());if(Ae==="outside")Be=z(Ue,ce);else if(Be=C(Ue,ce,Y),Ae==="auto"&&Be.scale<1){var qe=h.ensureUniformFontSize(L,Z.outsidetextfont);Re.call(d.font,qe),Be=z(Ue=d.bBox(Re.node()),ce)}var Ye=Be.textPosAngle,at=Ye===void 0?ce.pxmid:E(Y.r,Ye);if(Be.targetX=J+at[0]*Be.rCenter+(Be.x||0),Be.targetY=ne+at[1]*Be.rCenter+(Be.y||0),G(Be,Ue),Be.outside){var lt=Be.targetY;ce.yLabelMin=lt-Ue.height/2,ce.yLabelMid=lt,ce.yLabelMax=lt+Ue.height/2,ce.labelExtraX=0,ce.labelExtraY=0,ie=!0}Be.fontSize=Ie.size,g(Z.type,Be,V),U[ye].transform=Be,h.setTransormAndDisplay(Re,Be)})}function De(Re,Ie,Be,Ue){var qe=Ue*(Ie[0]-Re[0]),Ye=Ue*(Ie[1]-Re[1]);return"a"+Ue*Y.r+","+Ue*Y.r+" 0 "+ce.largeArc+(Be?" 1 ":" 0 ")+qe+","+Ye}});var le=l.select(this).selectAll("g.titletext").data(Z.title.text?[0]:[]);if(le.enter().append("g").classed("titletext",!0),le.exit().remove(),le.each(function(){var ce,ye=h.ensureSingle(l.select(this),"text","",function(ne){ne.attr("data-notex",1)}),J=Z.title.text;Z._meta&&(J=h.templateString(J,Z._meta)),ye.text(J).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(d.font,Z.title.font).call(y.convertToTspans,L),ce=Z.title.position==="middle center"?function(ne){var de=Math.sqrt(ne.titleBox.width*ne.titleBox.width+ne.titleBox.height*ne.titleBox.height);return{x:ne.cx,y:ne.cy,scale:ne.trace.hole*ne.r*2/de,tx:0,ty:-ne.titleBox.height/2+ne.trace.title.font.size}}(Y):B(Y,te),ye.attr("transform",m(ce.x,ce.y)+p(Math.min(1,ce.scale))+m(ce.tx,ce.ty))}),ie&&function(ce,ye){var J,ne,de,xe,ue,ge,be,we,ke,Ae,Ee,De,Re;function Ie(Ye,at){return Ye.pxmid[1]-at.pxmid[1]}function Be(Ye,at){return at.pxmid[1]-Ye.pxmid[1]}function Ue(Ye,at){at||(at={});var lt,ct,bt,ze,Ne=at.labelExtraY+(ne?at.yLabelMax:at.yLabelMin),Qe=ne?Ye.yLabelMin:Ye.yLabelMax,it=ne?Ye.yLabelMax:Ye.yLabelMin,kt=Ye.cyFinal+ue(Ye.px0[1],Ye.px1[1]),Je=Ne-Qe;if(Je*be>0&&(Ye.labelExtraY=Je),Array.isArray(ye.pull))for(ct=0;ct=(_.castOption(ye.pull,bt.pts)||0)||((Ye.pxmid[1]-bt.pxmid[1])*be>0?(Je=bt.cyFinal+ue(bt.px0[1],bt.px1[1])-Qe-Ye.labelExtraY)*be>0&&(Ye.labelExtraY+=Je):(it+Ye.labelExtraY-kt)*be>0&&(lt=3*ge*Math.abs(ct-Ae.indexOf(Ye)),(ze=bt.cxFinal+xe(bt.px0[0],bt.px1[0])+lt-(Ye.cxFinal+Ye.pxmid[0])-Ye.labelExtraX)*ge>0&&(Ye.labelExtraX+=ze)))}for(ne=0;ne<2;ne++)for(de=ne?Ie:Be,ue=ne?Math.max:Math.min,be=ne?1:-1,J=0;J<2;J++){for(xe=J?Math.max:Math.min,ge=J?1:-1,(we=ce[ne][J]).sort(de),ke=ce[1-ne][J],Ae=ke.concat(we),De=[],Ee=0;EeMath.abs(we)?ue+="l"+we*J.pxmid[0]/J.pxmid[1]+","+we+"H"+(xe+J.labelExtraX+ge):ue+="l"+J.labelExtraX+","+be+"v"+(we-be)+"h"+ge}else ue+="V"+(J.yLabelMid+J.labelExtraY)+"h"+ge;h.ensureSingle(ne,"path","textline").call(u.stroke,ye.outsidetextfont.color).attr({"stroke-width":Math.min(2,ye.outsidetextfont.size/8),d:ue,fill:"none"})}else ne.select("path.textline").remove()})}(X,Z),ie&&Z.automargin){var se=d.bBox(Q.node()),pe=Z.domain,Te=te.w*(pe.x[1]-pe.x[0]),Se=te.h*(pe.y[1]-pe.y[0]),Oe=(.5*Te-Y.r)/te.w,Me=(.5*Se-Y.r)/te.h;f.autoMargin(L,"pie."+Z.uid+".automargin",{xl:pe.x[0]-Oe,xr:pe.x[1]+Oe,yb:pe.y[0]-Me,yt:pe.y[1]+Me,l:Math.max(Y.cx-Y.r-se.left,0),r:Math.max(se.right-(Y.cx+Y.r),0),b:Math.max(se.bottom-(Y.cy+Y.r),0),t:Math.max(Y.cy-Y.r-se.top,0),pad:5})}})});setTimeout(function(){ee.selectAll("tspan").each(function(){var U=l.select(this);U.attr("dy")&&U.attr("dy",U.attr("dy"))})},0)},formatSliceLabel:W,transformInsideText:C,determineInsideTextFont:M,positionTitleOutside:B,prerenderTitles:S,layoutAreas:N,attachFxHandlers:T,computeTransform:G}},68357:function(o,a,n){var l=n(39898),f=n(63463),s=n(72597).resizeText;o.exports=function(u){var d=u._fullLayout._pielayer.selectAll(".trace");s(u,d,"pie"),d.each(function(h){var p=h[0].trace,m=l.select(this);m.style({opacity:p.opacity}),m.selectAll("path.surface").each(function(y){l.select(this).call(f,y,p,u)})})}},63463:function(o,a,n){var l=n(7901),f=n(53581).castOption,s=n(22209);o.exports=function(u,d,h,p){var m=h.marker.line,y=f(m.color,d.pts)||l.defaultLine,v=f(m.width,d.pts)||0;u.call(s,d,h,p).style("stroke-width",v).call(l.stroke,y)}},75225:function(o,a,n){var l=n(71828);o.exports=function(f,s){for(var u=0;uM&&W[C].gap;)C--;for(D=W[C].s,S=W.length-1;S>C;S--)W[S].s=D;for(;MB[b]&&b=0;b--){var x=u[b];if(x.type==="scatter"&&x.xaxis===v.xaxis&&x.yaxis===v.yaxis){x.opacity=void 0;break}}}}}},17438:function(o,a,n){var l=n(71828),f=n(73972),s=n(82196),u=n(47581),d=n(34098),h=n(67513),p=n(73927),m=n(565),y=n(49508),v=n(11058),g=n(94039),b=n(82410),x=n(28908),_=n(71828).coercePattern;o.exports=function(w,k,T,M){function S(z,B){return l.coerce(w,k,s,z,B)}var C=h(w,k,M,S);if(C||(k.visible=!1),k.visible){p(w,k,M,S),S("xhoverformat"),S("yhoverformat");var P=m(w,k,M,S);M.scattermode==="group"&&k.orientation===void 0&&S("orientation","v");var D=!P&&C=Math.min(Te,Se)&&w<=Math.max(Te,Se)?0:1/0}var Oe=Math.max(3,pe.mrc||0),Me=1-1/Oe,ce=Math.abs(x.c2p(pe.x)-w);return ce=Math.min(Te,Se)&&k<=Math.max(Te,Se)?0:1/0}var Oe=Math.max(3,pe.mrc||0),Me=1-1/Oe,ce=Math.abs(_.c2p(pe.y)-k);return cele!=(ee=L[W][1])>=le&&(H=L[W-1][0],V=L[W][0],ee-te&&(q=H+(V-H)*(le-te)/(ee-te),Z=Math.min(Z,q),X=Math.max(X,q)));Z=Math.max(Z,0),X=Math.min(X,x._length);var se=d.defaultLine;return d.opacity(b.fillcolor)?se=b.fillcolor:d.opacity((b.line||{}).color)&&(se=b.line.color),l.extendFlat(p,{distance:p.maxHoverDistance,x0:Z,x1:X,y0:le,y1:le,color:se,hovertemplate:!1}),delete p.index,b.text&&!Array.isArray(b.text)?p.text=String(b.text):p.text=b.name,[p]}}}},67368:function(o,a,n){var l=n(34098);o.exports={hasLines:l.hasLines,hasMarkers:l.hasMarkers,hasText:l.hasText,isBubble:l.isBubble,attributes:n(82196),layoutAttributes:n(21479),supplyDefaults:n(17438),crossTraceDefaults:n(34936),supplyLayoutDefaults:n(79334),calc:n(47761).calc,crossTraceCalc:n(72626),arraysToCalcdata:n(75225),plot:n(32663),colorbar:n(4898),formatLabels:n(8225),style:n(16296).style,styleOnSelect:n(16296).styleOnSelect,hoverPoints:n(33720),selectPoints:n(98002),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:n(93612),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}},21479:function(o){o.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}},79334:function(o,a,n){var l=n(71828),f=n(21479);o.exports=function(s,u){var d,h=u.barmode==="group";u.scattermode==="group"&&(d=h?u.bargap:.2,l.coerce(s,u,f,"scattergap",d))}},11058:function(o,a,n){var l=n(71828).isArrayOrTypedArray,f=n(52075).hasColorscale,s=n(1586);o.exports=function(u,d,h,p,m,y){y||(y={});var v=(u.marker||{}).color;m("line.color",h),f(u,"line")?s(u,d,p,m,{prefix:"line.",cLetter:"c"}):m("line.color",!l(v)&&v||h),m("line.width"),y.noDash||m("line.dash"),y.backoff&&m("line.backoff")}},34621:function(o,a,n){var l=n(91424),f=n(50606),s=f.BADNUM,u=f.LOG_CLIP,d=u+.5,h=u-.5,p=n(71828),m=p.segmentsIntersect,y=p.constrain,v=n(47581);o.exports=function(g,b){var x,_,w,k,T,M,S,C,P,D,O,R,F,A,z,B,$,j,N=b.trace||{},E=b.xaxis,W=b.yaxis,G=E.type==="log",L=W.type==="log",q=E._length,H=W._length,V=b.backoff,te=N.marker,ee=b.connectGaps,U=b.baseTolerance,Q=b.shape,Y=Q==="linear",Z=N.fill&&N.fill!=="none",X=[],re=v.minTolerance,ie=g.length,le=new Array(ie),se=0;function pe(Je){var ut=g[Je];if(!ut)return!1;var pt=b.linearized?E.l2p(ut.x):E.c2p(ut.x),It=b.linearized?W.l2p(ut.y):W.c2p(ut.y);if(pt===s){if(G&&(pt=E.c2p(ut.x,!0)),pt===s)return!1;L&&It===s&&(pt*=Math.abs(E._m*H*(E._m>0?d:h)/(W._m*q*(W._m>0?d:h)))),pt*=1e3}if(It===s){if(L&&(It=W.c2p(ut.y,!0)),It===s)return!1;It*=1e3}return[pt,It]}function Te(Je,ut,pt,It){var Mt=pt-Je,zt=It-ut,wt=.5-Je,ve=.5-ut,_e=Mt*Mt+zt*zt,Ve=Mt*wt+zt*ve;if(Ve>0&&Ve<_e){var We=wt*zt-ve*Mt;if(We*We<_e)return!0}}function Se(Je,ut){var pt=Je[0]/q,It=Je[1]/H,Mt=Math.max(0,-pt,pt-1,-It,It-1);return Mt&&$!==void 0&&Te(pt,It,$,j)&&(Mt=0),Mt&&ut&&Te(pt,It,ut[0]/q,ut[1]/H)&&(Mt=0),(1+v.toleranceGrowth*Mt)*U}function Oe(Je,ut){var pt=Je[0]-ut[0],It=Je[1]-ut[1];return Math.sqrt(pt*pt+It*It)}var Me,ce,ye,J,ne,de,xe,ue=v.maxScreensAway,ge=-q*ue,be=q*(1+ue),we=-H*ue,ke=H*(1+ue),Ae=[[ge,we,be,we],[be,we,be,ke],[be,ke,ge,ke],[ge,ke,ge,we]];function Ee(Je){if(Je[0]be||Je[1]ke)return[y(Je[0],ge,be),y(Je[1],we,ke)]}function De(Je,ut){return Je[0]===ut[0]&&(Je[0]===ge||Je[0]===be)||Je[1]===ut[1]&&(Je[1]===we||Je[1]===ke)||void 0}function Re(Je,ut,pt){return function(It,Mt){var zt=Ee(It),wt=Ee(Mt),ve=[];if(zt&&wt&&De(zt,wt))return ve;zt&&ve.push(zt),wt&&ve.push(wt);var _e=2*p.constrain((It[Je]+Mt[Je])/2,ut,pt)-((zt||It)[Je]+(wt||Mt)[Je]);return _e&&((zt&&wt?_e>0==zt[Je]>wt[Je]?zt:wt:zt||wt)[Je]+=_e),ve}}function Ie(Je){var ut=Je[0],pt=Je[1],It=ut===le[se-1][0],Mt=pt===le[se-1][1];if(!It||!Mt)if(se>1){var zt=ut===le[se-2][0],wt=pt===le[se-2][1];It&&(ut===ge||ut===be)&&zt?wt?se--:le[se-1]=Je:Mt&&(pt===we||pt===ke)&&wt?zt?se--:le[se-1]=Je:le[se++]=Je}else le[se++]=Je}function Be(Je){le[se-1][0]!==Je[0]&&le[se-1][1]!==Je[1]&&Ie([ye,J]),Ie(Je),ne=null,ye=J=0}Q==="linear"||Q==="spline"?xe=function(Je,ut){for(var pt=[],It=0,Mt=0;Mt<4;Mt++){var zt=Ae[Mt],wt=m(Je[0],Je[1],ut[0],ut[1],zt[0],zt[1],zt[2],zt[3]);wt&&(!It||Math.abs(wt.x-pt[0][0])>1||Math.abs(wt.y-pt[0][1])>1)&&(wt=[wt.x,wt.y],It&&Oe(wt,Je)be?be:0,ce=Je[1]ke?ke:0,Me||ce){if(se)if(ne){var ut=xe(ne,Je);ut.length>1&&(Be(ut[0]),le[se++]=ut[1])}else de=xe(le[se-1],Je)[0],le[se++]=de;else le[se++]=[Me||Je[0],ce||Je[1]];var pt=le[se-1];Me&&ce&&(pt[0]!==Me||pt[1]!==ce)?(ne&&(ye!==Me&&J!==ce?Ie(ye&&J?(It=ne,zt=(Mt=Je)[0]-It[0],wt=(Mt[1]-It[1])/zt,(It[1]*Mt[0]-Mt[1]*It[0])/zt>0?[wt>0?ge:be,ke]:[wt>0?be:ge,we]):[ye||Me,J||ce]):ye&&J&&Ie([ye,J])),Ie([Me,ce])):ye-Me&&J-ce&&Ie([Me||ye,ce||J]),ne=Je,ye=Me,J=ce}else ne&&Be(xe(ne,Je)[0]),le[se++]=Je;var It,Mt,zt,wt}for(x=0;xSe(M,Ye))break;w=M,(F=P[0]*C[0]+P[1]*C[1])>O?(O=F,k=M,S=!1):F=g.length||!M)break;qe(M),_=M}}else qe(k)}ne&&Ie([ye||ne[0],J||ne[1]]),X.push(le.slice(0,se))}var at=Q.slice(Q.length-1);if(V&&at!=="h"&&at!=="v"){for(var lt=!1,ct=-1,bt=[],ze=0;ze=0?p=b:(p=b=g,g++),p0?Math.max(y,h):0}}},4898:function(o){o.exports={container:"marker",min:"cmin",max:"cmax"}},49508:function(o,a,n){var l=n(7901),f=n(52075).hasColorscale,s=n(1586),u=n(34098);o.exports=function(d,h,p,m,y,v){var g=u.isBubble(d),b=(d.line||{}).color;v=v||{},b&&(p=b),y("marker.symbol"),y("marker.opacity",g?.7:1),y("marker.size"),v.noAngle||(y("marker.angle"),v.noAngleRef||y("marker.angleref"),v.noStandOff||y("marker.standoff")),y("marker.color",p),f(d,"marker")&&s(d,h,m,y,{prefix:"marker.",cLetter:"c"}),v.noSelect||(y("selected.marker.color"),y("unselected.marker.color"),y("selected.marker.size"),y("unselected.marker.size")),v.noLine||(y("marker.line.color",b&&!Array.isArray(b)&&h.marker.color!==b?b:g?l.background:l.defaultLine),f(d,"marker.line")&&s(d,h,m,y,{prefix:"marker.line.",cLetter:"c"}),y("marker.line.width",g?1:0)),g&&(y("marker.sizeref"),y("marker.sizemin"),y("marker.sizemode")),v.gradient&&y("marker.gradient.type")!=="none"&&y("marker.gradient.color")}},73927:function(o,a,n){var l=n(71828).dateTick0,f=n(50606).ONEWEEK;function s(u,d){return l(d,u%f==0?1:0)}o.exports=function(u,d,h,p,m){if(m||(m={x:!0,y:!0}),m.x){var y=p("xperiod");y&&(p("xperiod0",s(y,d.xcalendar)),p("xperiodalignment"))}if(m.y){var v=p("yperiod");v&&(p("yperiod0",s(v,d.ycalendar)),p("yperiodalignment"))}}},32663:function(o,a,n){var l=n(39898),f=n(73972),s=n(71828),u=s.ensureSingle,d=s.identity,h=n(91424),p=n(34098),m=n(34621),y=n(68687),v=n(61082).tester;function g(b,x,_,w,k,T,M){var S,C=b._context.staticPlot;(function(xe,ue,ge,be,we){var ke=ge.xaxis,Ae=ge.yaxis,Ee=l.extent(s.simpleMap(ke.range,ke.r2c)),De=l.extent(s.simpleMap(Ae.range,Ae.r2c)),Re=be[0].trace;if(p.hasMarkers(Re)){var Ie=Re.marker.maxdisplayed;if(Ie!==0){var Be=be.filter(function(at){return at.x>=Ee[0]&&at.x<=Ee[1]&&at.y>=De[0]&&at.y<=De[1]}),Ue=Math.ceil(Be.length/Ie),qe=0;we.forEach(function(at,lt){var ct=at[0].trace;p.hasMarkers(ct)&&ct.marker.maxdisplayed>0&<0;function D(xe){return P?xe.transition():xe}var O=_.xaxis,R=_.yaxis,F=w[0].trace,A=F.line,z=l.select(T),B=u(z,"g","errorbars"),$=u(z,"g","lines"),j=u(z,"g","points"),N=u(z,"g","text");if(f.getComponentMethod("errorbars","plot")(b,B,_,M),F.visible===!0){var E,W;D(z).style("opacity",F.opacity);var G=F.fill.charAt(F.fill.length-1);G!=="x"&&G!=="y"&&(G=""),w[0][_.isRangePlot?"nodeRangePlot3":"node3"]=z;var L,q,H="",V=[],te=F._prevtrace;te&&(H=te._prevRevpath||"",W=te._nextFill,V=te._polygons);var ee,U,Q,Y,Z,X,re,ie="",le="",se=[],pe=s.noop;if(E=F._ownFill,p.hasLines(F)||F.fill!=="none"){for(W&&W.datum(w),["hv","vh","hvh","vhv"].indexOf(A.shape)!==-1?(ee=h.steps(A.shape),U=h.steps(A.shape.split("").reverse().join(""))):ee=U=A.shape==="spline"?function(xe){var ue=xe[xe.length-1];return xe.length>1&&xe[0][0]===ue[0]&&xe[0][1]===ue[1]?h.smoothclosed(xe.slice(1),A.smoothing):h.smoothopen(xe,A.smoothing)}:function(xe){return"M"+xe.join("L")},Q=function(xe){return U(xe.reverse())},se=m(w,{xaxis:O,yaxis:R,trace:F,connectGaps:F.connectgaps,baseTolerance:Math.max(A.width||1,3)/4,shape:A.shape,backoff:A.backoff,simplify:A.simplify,fill:F.fill}),re=F._polygons=new Array(se.length),S=0;S0,D=y(b,x,_);(M=w.selectAll("g.trace").data(D,function(O){return O[0].trace.uid})).enter().append("g").attr("class",function(O){return"trace scatter trace"+O[0].trace.uid}).style("stroke-miterlimit",2),M.order(),function(O,R,F){R.each(function(A){var z=u(l.select(this),"g","fills");h.setClipUrl(z,F.layerClipId,O);var B=A[0].trace,$=[];B._ownfill&&$.push("_ownFill"),B._nexttrace&&$.push("_nextFill");var j=z.selectAll("g").data($,d);j.enter().append("g"),j.exit().each(function(N){B[N]=null}).remove(),j.order().each(function(N){B[N]=u(l.select(this),"path","js-fill")})})}(b,M,x),P?(T&&(S=T()),l.transition().duration(k.duration).ease(k.easing).each("end",function(){S&&S()}).each("interrupt",function(){S&&S()}).each(function(){w.selectAll("g.trace").each(function(O,R){g(b,R,x,O,D,this,k)})})):M.each(function(O,R){g(b,R,x,O,D,this,k)}),C&&M.exit().remove(),w.selectAll("path:not([d])").remove()}},98002:function(o,a,n){var l=n(34098);o.exports=function(f,s){var u,d,h,p,m=f.cd,y=f.xaxis,v=f.yaxis,g=[],b=m[0].trace;if(!l.hasMarkers(b)&&!l.hasText(b))return[];if(s===!1)for(u=0;u"),p.hovertemplate=x.hovertemplate,h}function C(P,D){M.push(P._hovertitle+": "+D)}}},52979:function(o,a,n){o.exports={attributes:n(50413),supplyDefaults:n(46008),colorbar:n(4898),formatLabels:n(93645),calc:n(54337),plot:n(7507),style:n(16296).style,styleOnSelect:n(16296).styleOnSelect,hoverPoints:n(47250),selectPoints:n(98002),eventData:n(4524),moduleType:"trace",name:"scatterternary",basePlotModule:n(61639),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}},7507:function(o,a,n){var l=n(32663);o.exports=function(f,s,u){var d=s.plotContainer;d.select(".scatterlayer").selectAll("*").remove();for(var h=s.xaxis,p=s.yaxis,m={xaxis:h,yaxis:p,plot:d,layerClipId:s._hasClipOnAxisFalse?s.clipIdRelative:null},y=s.layers.frontplot.select("g.scatterlayer"),v=0;v0){var P,D,O,R,F,A=h.xa,z=h.ya;w.orientation==="h"?(F=p,P="y",O=z,D="x",R=A):(F=m,P="x",O=A,D="y",R=z);var B=_[h.index];if(F>=B.span[0]&&F<=B.span[1]){var $=f.extendFlat({},h),j=R.c2p(F,!0),N=d.getKdeValue(B,w,F),E=d.getPositionOnKdePath(B,w,j),W=O._offset,G=O._length;$[P+"0"]=E[0],$[P+"1"]=E[1],$[D+"0"]=$[D+"1"]=j,$[D+"Label"]=D+": "+s.hoverLabelText(R,F,w[D+"hoverformat"])+", "+_[0].t.labels.kde+" "+N.toFixed(3);for(var L=0,q=0;qj&&(j=G,N=W)}}return j?A(N):d};case"rms":return function(z,B){for(var $=0,j=0,N=0;N":return function(V){return H(V)>L};case">=":return function(V){return H(V)>=L};case"[]":return function(V){var te=H(V);return te>=L[0]&&te<=L[1]};case"()":return function(V){var te=H(V);return te>L[0]&&te=L[0]&&teL[0]&&te<=L[1]};case"][":return function(V){var te=H(V);return te<=L[0]||te>=L[1]};case")(":return function(V){var te=H(V);return teL[1]};case"](":return function(V){var te=H(V);return te<=L[0]||te>L[1]};case")[":return function(V){var te=H(V);return te=L[1]};case"{}":return function(V){return L.indexOf(H(V))!==-1};case"}{":return function(V){return L.indexOf(H(V))===-1}}}(g,s.getDataToCoordFunc(y,v,x,b),w),D={},O={},R=0;T?(S=function(B){D[B.astr]=l.extendDeep([],B.get()),B.set(new Array(_))},C=function(B,$){var j=D[B.astr][$];B.get()[$]=j}):(S=function(B){D[B.astr]=l.extendDeep([],B.get()),B.set([])},C=function(B,$){var j=D[B.astr][$];B.get().push(j)}),z(S);for(var F=u(v.transforms,g),A=0;A<_;A++)P(b[A])?(z(C,A),O[R++]=F(A)):T&&R++;g._indexToPoints=O,v._length=R}}function z(B,$){for(var j=0;j1?"%{group} (%{trace})":"%{group}");var b=h.styles,x=v.styles=[];if(b)for(y=0;yy)throw new RangeError('The value "'+J+'" is invalid for option "size"');var ne=new Uint8Array(J);return Object.setPrototypeOf(ne,g.prototype),ne}function g(J,ne,de){if(typeof J=="number"){if(typeof ne=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _(J)}return b(J,ne,de)}function b(J,ne,de){if(typeof J=="string")return function(ge,be){if(typeof be=="string"&&be!==""||(be="utf8"),!g.isEncoding(be))throw new TypeError("Unknown encoding: "+be);var we=0|M(ge,be),ke=v(we),Ae=ke.write(ge,be);return Ae!==we&&(ke=ke.slice(0,Ae)),ke}(J,ne);if(ArrayBuffer.isView(J))return function(ge){if(Se(ge,Uint8Array)){var be=new Uint8Array(ge);return k(be.buffer,be.byteOffset,be.byteLength)}return w(ge)}(J);if(J==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+d(J));if(Se(J,ArrayBuffer)||J&&Se(J.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Se(J,SharedArrayBuffer)||J&&Se(J.buffer,SharedArrayBuffer)))return k(J,ne,de);if(typeof J=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var xe=J.valueOf&&J.valueOf();if(xe!=null&&xe!==J)return g.from(xe,ne,de);var ue=function(ge){if(g.isBuffer(ge)){var be=0|T(ge.length),we=v(be);return we.length===0||ge.copy(we,0,0,be),we}return ge.length!==void 0?typeof ge.length!="number"||Oe(ge.length)?v(0):w(ge):ge.type==="Buffer"&&Array.isArray(ge.data)?w(ge.data):void 0}(J);if(ue)return ue;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof J[Symbol.toPrimitive]=="function")return g.from(J[Symbol.toPrimitive]("string"),ne,de);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+d(J))}function x(J){if(typeof J!="number")throw new TypeError('"size" argument must be of type number');if(J<0)throw new RangeError('The value "'+J+'" is invalid for option "size"')}function _(J){return x(J),v(J<0?0:0|T(J))}function w(J){for(var ne=J.length<0?0:0|T(J.length),de=v(ne),xe=0;xe=y)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+y.toString(16)+" bytes");return 0|J}function M(J,ne){if(g.isBuffer(J))return J.length;if(ArrayBuffer.isView(J)||Se(J,ArrayBuffer))return J.byteLength;if(typeof J!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+d(J));var de=J.length,xe=arguments.length>2&&arguments[2]===!0;if(!xe&&de===0)return 0;for(var ue=!1;;)switch(ne){case"ascii":case"latin1":case"binary":return de;case"utf8":case"utf-8":return se(J).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*de;case"hex":return de>>>1;case"base64":return pe(J).length;default:if(ue)return xe?-1:se(J).length;ne=(""+ne).toLowerCase(),ue=!0}}function S(J,ne,de){var xe=!1;if((ne===void 0||ne<0)&&(ne=0),ne>this.length||((de===void 0||de>this.length)&&(de=this.length),de<=0)||(de>>>=0)<=(ne>>>=0))return"";for(J||(J="utf8");;)switch(J){case"hex":return W(this,ne,de);case"utf8":case"utf-8":return $(this,ne,de);case"ascii":return N(this,ne,de);case"latin1":case"binary":return E(this,ne,de);case"base64":return B(this,ne,de);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,ne,de);default:if(xe)throw new TypeError("Unknown encoding: "+J);J=(J+"").toLowerCase(),xe=!0}}function C(J,ne,de){var xe=J[ne];J[ne]=J[de],J[de]=xe}function P(J,ne,de,xe,ue){if(J.length===0)return-1;if(typeof de=="string"?(xe=de,de=0):de>2147483647?de=2147483647:de<-2147483648&&(de=-2147483648),Oe(de=+de)&&(de=ue?0:J.length-1),de<0&&(de=J.length+de),de>=J.length){if(ue)return-1;de=J.length-1}else if(de<0){if(!ue)return-1;de=0}if(typeof ne=="string"&&(ne=g.from(ne,xe)),g.isBuffer(ne))return ne.length===0?-1:D(J,ne,de,xe,ue);if(typeof ne=="number")return ne&=255,typeof Uint8Array.prototype.indexOf=="function"?ue?Uint8Array.prototype.indexOf.call(J,ne,de):Uint8Array.prototype.lastIndexOf.call(J,ne,de):D(J,[ne],de,xe,ue);throw new TypeError("val must be string, number or Buffer")}function D(J,ne,de,xe,ue){var ge,be=1,we=J.length,ke=ne.length;if(xe!==void 0&&((xe=String(xe).toLowerCase())==="ucs2"||xe==="ucs-2"||xe==="utf16le"||xe==="utf-16le")){if(J.length<2||ne.length<2)return-1;be=2,we/=2,ke/=2,de/=2}function Ae(Ie,Be){return be===1?Ie[Be]:Ie.readUInt16BE(Be*be)}if(ue){var Ee=-1;for(ge=de;gewe&&(de=we-ke),ge=de;ge>=0;ge--){for(var De=!0,Re=0;Reue&&(xe=ue):xe=ue;var ge,be=ne.length;for(xe>be/2&&(xe=be/2),ge=0;ge>8,ke=be%256,Ae.push(ke),Ae.push(we);return Ae}(ne,J.length-de),J,de,xe)}function B(J,ne,de){return ne===0&&de===J.length?h.fromByteArray(J):h.fromByteArray(J.slice(ne,de))}function $(J,ne,de){de=Math.min(J.length,de);for(var xe=[],ue=ne;ue239?4:ge>223?3:ge>191?2:1;if(ue+we<=de){var ke=void 0,Ae=void 0,Ee=void 0,De=void 0;switch(we){case 1:ge<128&&(be=ge);break;case 2:(192&(ke=J[ue+1]))==128&&(De=(31&ge)<<6|63&ke)>127&&(be=De);break;case 3:ke=J[ue+1],Ae=J[ue+2],(192&ke)==128&&(192&Ae)==128&&(De=(15&ge)<<12|(63&ke)<<6|63&Ae)>2047&&(De<55296||De>57343)&&(be=De);break;case 4:ke=J[ue+1],Ae=J[ue+2],Ee=J[ue+3],(192&ke)==128&&(192&Ae)==128&&(192&Ee)==128&&(De=(15&ge)<<18|(63&ke)<<12|(63&Ae)<<6|63&Ee)>65535&&De<1114112&&(be=De)}}be===null?(be=65533,we=1):be>65535&&(be-=65536,xe.push(be>>>10&1023|55296),be=56320|1023&be),xe.push(be),ue+=we}return function(Re){var Ie=Re.length;if(Ie<=j)return String.fromCharCode.apply(String,Re);for(var Be="",Ue=0;Ue"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.byteOffset}}),g.poolSize=8192,g.from=function(J,ne,de){return b(J,ne,de)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array),g.alloc=function(J,ne,de){return function(xe,ue,ge){return x(xe),xe<=0?v(xe):ue!==void 0?typeof ge=="string"?v(xe).fill(ue,ge):v(xe).fill(ue):v(xe)}(J,ne,de)},g.allocUnsafe=function(J){return _(J)},g.allocUnsafeSlow=function(J){return _(J)},g.isBuffer=function(J){return J!=null&&J._isBuffer===!0&&J!==g.prototype},g.compare=function(J,ne){if(Se(J,Uint8Array)&&(J=g.from(J,J.offset,J.byteLength)),Se(ne,Uint8Array)&&(ne=g.from(ne,ne.offset,ne.byteLength)),!g.isBuffer(J)||!g.isBuffer(ne))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(J===ne)return 0;for(var de=J.length,xe=ne.length,ue=0,ge=Math.min(de,xe);uexe.length?(g.isBuffer(ge)||(ge=g.from(ge)),ge.copy(xe,ue)):Uint8Array.prototype.set.call(xe,ge,ue);else{if(!g.isBuffer(ge))throw new TypeError('"list" argument must be an Array of Buffers');ge.copy(xe,ue)}ue+=ge.length}return xe},g.byteLength=M,g.prototype._isBuffer=!0,g.prototype.swap16=function(){var J=this.length;if(J%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ne=0;nene&&(J+=" ... "),""},m&&(g.prototype[m]=g.prototype.inspect),g.prototype.compare=function(J,ne,de,xe,ue){if(Se(J,Uint8Array)&&(J=g.from(J,J.offset,J.byteLength)),!g.isBuffer(J))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+d(J));if(ne===void 0&&(ne=0),de===void 0&&(de=J?J.length:0),xe===void 0&&(xe=0),ue===void 0&&(ue=this.length),ne<0||de>J.length||xe<0||ue>this.length)throw new RangeError("out of range index");if(xe>=ue&&ne>=de)return 0;if(xe>=ue)return-1;if(ne>=de)return 1;if(this===J)return 0;for(var ge=(ue>>>=0)-(xe>>>=0),be=(de>>>=0)-(ne>>>=0),we=Math.min(ge,be),ke=this.slice(xe,ue),Ae=J.slice(ne,de),Ee=0;Ee>>=0,isFinite(de)?(de>>>=0,xe===void 0&&(xe="utf8")):(xe=de,de=void 0)}var ue=this.length-ne;if((de===void 0||de>ue)&&(de=ue),J.length>0&&(de<0||ne<0)||ne>this.length)throw new RangeError("Attempt to write outside buffer bounds");xe||(xe="utf8");for(var ge=!1;;)switch(xe){case"hex":return O(this,J,ne,de);case"utf8":case"utf-8":return R(this,J,ne,de);case"ascii":case"latin1":case"binary":return F(this,J,ne,de);case"base64":return A(this,J,ne,de);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,J,ne,de);default:if(ge)throw new TypeError("Unknown encoding: "+xe);xe=(""+xe).toLowerCase(),ge=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var j=4096;function N(J,ne,de){var xe="";de=Math.min(J.length,de);for(var ue=ne;uexe)&&(de=xe);for(var ue="",ge=ne;gede)throw new RangeError("Trying to access beyond buffer length")}function q(J,ne,de,xe,ue,ge){if(!g.isBuffer(J))throw new TypeError('"buffer" argument must be a Buffer instance');if(ne>ue||neJ.length)throw new RangeError("Index out of range")}function H(J,ne,de,xe,ue){X(ne,xe,ue,J,de,7);var ge=Number(ne&BigInt(4294967295));J[de++]=ge,ge>>=8,J[de++]=ge,ge>>=8,J[de++]=ge,ge>>=8,J[de++]=ge;var be=Number(ne>>BigInt(32)&BigInt(4294967295));return J[de++]=be,be>>=8,J[de++]=be,be>>=8,J[de++]=be,be>>=8,J[de++]=be,de}function V(J,ne,de,xe,ue){X(ne,xe,ue,J,de,7);var ge=Number(ne&BigInt(4294967295));J[de+7]=ge,ge>>=8,J[de+6]=ge,ge>>=8,J[de+5]=ge,ge>>=8,J[de+4]=ge;var be=Number(ne>>BigInt(32)&BigInt(4294967295));return J[de+3]=be,be>>=8,J[de+2]=be,be>>=8,J[de+1]=be,be>>=8,J[de]=be,de+8}function te(J,ne,de,xe,ue,ge){if(de+xe>J.length)throw new RangeError("Index out of range");if(de<0)throw new RangeError("Index out of range")}function ee(J,ne,de,xe,ue){return ne=+ne,de>>>=0,ue||te(J,0,de,4),p.write(J,ne,de,xe,23,4),de+4}function U(J,ne,de,xe,ue){return ne=+ne,de>>>=0,ue||te(J,0,de,8),p.write(J,ne,de,xe,52,8),de+8}g.prototype.slice=function(J,ne){var de=this.length;(J=~~J)<0?(J+=de)<0&&(J=0):J>de&&(J=de),(ne=ne===void 0?de:~~ne)<0?(ne+=de)<0&&(ne=0):ne>de&&(ne=de),ne>>=0,ne>>>=0,de||L(J,ne,this.length);for(var xe=this[J],ue=1,ge=0;++ge>>=0,ne>>>=0,de||L(J,ne,this.length);for(var xe=this[J+--ne],ue=1;ne>0&&(ue*=256);)xe+=this[J+--ne]*ue;return xe},g.prototype.readUint8=g.prototype.readUInt8=function(J,ne){return J>>>=0,ne||L(J,1,this.length),this[J]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(J,ne){return J>>>=0,ne||L(J,2,this.length),this[J]|this[J+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(J,ne){return J>>>=0,ne||L(J,2,this.length),this[J]<<8|this[J+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(J,ne){return J>>>=0,ne||L(J,4,this.length),(this[J]|this[J+1]<<8|this[J+2]<<16)+16777216*this[J+3]},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(J,ne){return J>>>=0,ne||L(J,4,this.length),16777216*this[J]+(this[J+1]<<16|this[J+2]<<8|this[J+3])},g.prototype.readBigUInt64LE=ce(function(J){re(J>>>=0,"offset");var ne=this[J],de=this[J+7];ne!==void 0&&de!==void 0||ie(J,this.length-8);var xe=ne+this[++J]*Math.pow(2,8)+this[++J]*Math.pow(2,16)+this[++J]*Math.pow(2,24),ue=this[++J]+this[++J]*Math.pow(2,8)+this[++J]*Math.pow(2,16)+de*Math.pow(2,24);return BigInt(xe)+(BigInt(ue)<>>=0,"offset");var ne=this[J],de=this[J+7];ne!==void 0&&de!==void 0||ie(J,this.length-8);var xe=ne*Math.pow(2,24)+this[++J]*Math.pow(2,16)+this[++J]*Math.pow(2,8)+this[++J],ue=this[++J]*Math.pow(2,24)+this[++J]*Math.pow(2,16)+this[++J]*Math.pow(2,8)+de;return(BigInt(xe)<>>=0,ne>>>=0,de||L(J,ne,this.length);for(var xe=this[J],ue=1,ge=0;++ge=(ue*=128)&&(xe-=Math.pow(2,8*ne)),xe},g.prototype.readIntBE=function(J,ne,de){J>>>=0,ne>>>=0,de||L(J,ne,this.length);for(var xe=ne,ue=1,ge=this[J+--xe];xe>0&&(ue*=256);)ge+=this[J+--xe]*ue;return ge>=(ue*=128)&&(ge-=Math.pow(2,8*ne)),ge},g.prototype.readInt8=function(J,ne){return J>>>=0,ne||L(J,1,this.length),128&this[J]?-1*(255-this[J]+1):this[J]},g.prototype.readInt16LE=function(J,ne){J>>>=0,ne||L(J,2,this.length);var de=this[J]|this[J+1]<<8;return 32768&de?4294901760|de:de},g.prototype.readInt16BE=function(J,ne){J>>>=0,ne||L(J,2,this.length);var de=this[J+1]|this[J]<<8;return 32768&de?4294901760|de:de},g.prototype.readInt32LE=function(J,ne){return J>>>=0,ne||L(J,4,this.length),this[J]|this[J+1]<<8|this[J+2]<<16|this[J+3]<<24},g.prototype.readInt32BE=function(J,ne){return J>>>=0,ne||L(J,4,this.length),this[J]<<24|this[J+1]<<16|this[J+2]<<8|this[J+3]},g.prototype.readBigInt64LE=ce(function(J){re(J>>>=0,"offset");var ne=this[J],de=this[J+7];ne!==void 0&&de!==void 0||ie(J,this.length-8);var xe=this[J+4]+this[J+5]*Math.pow(2,8)+this[J+6]*Math.pow(2,16)+(de<<24);return(BigInt(xe)<>>=0,"offset");var ne=this[J],de=this[J+7];ne!==void 0&&de!==void 0||ie(J,this.length-8);var xe=(ne<<24)+this[++J]*Math.pow(2,16)+this[++J]*Math.pow(2,8)+this[++J];return(BigInt(xe)<>>=0,ne||L(J,4,this.length),p.read(this,J,!0,23,4)},g.prototype.readFloatBE=function(J,ne){return J>>>=0,ne||L(J,4,this.length),p.read(this,J,!1,23,4)},g.prototype.readDoubleLE=function(J,ne){return J>>>=0,ne||L(J,8,this.length),p.read(this,J,!0,52,8)},g.prototype.readDoubleBE=function(J,ne){return J>>>=0,ne||L(J,8,this.length),p.read(this,J,!1,52,8)},g.prototype.writeUintLE=g.prototype.writeUIntLE=function(J,ne,de,xe){J=+J,ne>>>=0,de>>>=0,xe||q(this,J,ne,de,Math.pow(2,8*de)-1,0);var ue=1,ge=0;for(this[ne]=255&J;++ge>>=0,de>>>=0,xe||q(this,J,ne,de,Math.pow(2,8*de)-1,0);var ue=de-1,ge=1;for(this[ne+ue]=255&J;--ue>=0&&(ge*=256);)this[ne+ue]=J/ge&255;return ne+de},g.prototype.writeUint8=g.prototype.writeUInt8=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,1,255,0),this[ne]=255&J,ne+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,2,65535,0),this[ne]=255&J,this[ne+1]=J>>>8,ne+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,2,65535,0),this[ne]=J>>>8,this[ne+1]=255&J,ne+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,4,4294967295,0),this[ne+3]=J>>>24,this[ne+2]=J>>>16,this[ne+1]=J>>>8,this[ne]=255&J,ne+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,4,4294967295,0),this[ne]=J>>>24,this[ne+1]=J>>>16,this[ne+2]=J>>>8,this[ne+3]=255&J,ne+4},g.prototype.writeBigUInt64LE=ce(function(J){return H(this,J,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=ce(function(J){return V(this,J,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(J,ne,de,xe){if(J=+J,ne>>>=0,!xe){var ue=Math.pow(2,8*de-1);q(this,J,ne,de,ue-1,-ue)}var ge=0,be=1,we=0;for(this[ne]=255&J;++ge>0)-we&255;return ne+de},g.prototype.writeIntBE=function(J,ne,de,xe){if(J=+J,ne>>>=0,!xe){var ue=Math.pow(2,8*de-1);q(this,J,ne,de,ue-1,-ue)}var ge=de-1,be=1,we=0;for(this[ne+ge]=255&J;--ge>=0&&(be*=256);)J<0&&we===0&&this[ne+ge+1]!==0&&(we=1),this[ne+ge]=(J/be>>0)-we&255;return ne+de},g.prototype.writeInt8=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,1,127,-128),J<0&&(J=255+J+1),this[ne]=255&J,ne+1},g.prototype.writeInt16LE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,2,32767,-32768),this[ne]=255&J,this[ne+1]=J>>>8,ne+2},g.prototype.writeInt16BE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,2,32767,-32768),this[ne]=J>>>8,this[ne+1]=255&J,ne+2},g.prototype.writeInt32LE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,4,2147483647,-2147483648),this[ne]=255&J,this[ne+1]=J>>>8,this[ne+2]=J>>>16,this[ne+3]=J>>>24,ne+4},g.prototype.writeInt32BE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,4,2147483647,-2147483648),J<0&&(J=4294967295+J+1),this[ne]=J>>>24,this[ne+1]=J>>>16,this[ne+2]=J>>>8,this[ne+3]=255&J,ne+4},g.prototype.writeBigInt64LE=ce(function(J){return H(this,J,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=ce(function(J){return V(this,J,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeFloatLE=function(J,ne,de){return ee(this,J,ne,!0,de)},g.prototype.writeFloatBE=function(J,ne,de){return ee(this,J,ne,!1,de)},g.prototype.writeDoubleLE=function(J,ne,de){return U(this,J,ne,!0,de)},g.prototype.writeDoubleBE=function(J,ne,de){return U(this,J,ne,!1,de)},g.prototype.copy=function(J,ne,de,xe){if(!g.isBuffer(J))throw new TypeError("argument should be a Buffer");if(de||(de=0),xe||xe===0||(xe=this.length),ne>=J.length&&(ne=J.length),ne||(ne=0),xe>0&&xe=this.length)throw new RangeError("Index out of range");if(xe<0)throw new RangeError("sourceEnd out of bounds");xe>this.length&&(xe=this.length),J.length-ne>>=0,de=de===void 0?this.length:de>>>0,J||(J=0),typeof J=="number")for(ge=ne;ge"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var Ee,De=u(be);if(we){var Re=u(this).constructor;Ee=Reflect.construct(De,arguments,Re)}else Ee=De.apply(this,arguments);return function(Ie,Be){if(Be&&(d(Be)==="object"||typeof Be=="function"))return Be;if(Be!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return s(Ie)}(this,Ee)});function Ae(){var Ee;return function(De,Re){if(!(De instanceof Re))throw new TypeError("Cannot call a class as a function")}(this,Ae),Ee=ke.call(this),Object.defineProperty(s(Ee),"message",{value:ne.apply(s(Ee),arguments),writable:!0,configurable:!0}),Ee.name="".concat(Ee.name," [").concat(J,"]"),Ee.stack,delete Ee.name,Ee}return ue=Ae,(ge=[{key:"code",get:function(){return J},set:function(Ee){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Ee,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(J,"]: ").concat(this.message)}}])&&l(ue.prototype,ge),Object.defineProperty(ue,"prototype",{writable:!1}),Ae}(de)}function Z(J){for(var ne="",de=J.length,xe=J[0]==="-"?1:0;de>=xe+4;de-=3)ne="_".concat(J.slice(de-3,de)).concat(ne);return"".concat(J.slice(0,de)).concat(ne)}function X(J,ne,de,xe,ue,ge){if(J>de||J= 0".concat(we," and < 2").concat(we," ** ").concat(8*(ge+1)).concat(we):">= -(2".concat(we," ** ").concat(8*(ge+1)-1).concat(we,") and < 2 ** ")+"".concat(8*(ge+1)-1).concat(we),new Q.ERR_OUT_OF_RANGE("value",be,J)}(function(ke,Ae,Ee){re(Ae,"offset"),ke[Ae]!==void 0&&ke[Ae+Ee]!==void 0||ie(Ae,ke.length-(Ee+1))})(xe,ue,ge)}function re(J,ne){if(typeof J!="number")throw new Q.ERR_INVALID_ARG_TYPE(ne,"number",J)}function ie(J,ne,de){throw Math.floor(J)!==J?(re(J,de),new Q.ERR_OUT_OF_RANGE("offset","an integer",J)):ne<0?new Q.ERR_BUFFER_OUT_OF_BOUNDS:new Q.ERR_OUT_OF_RANGE("offset",">= ".concat(0," and <= ").concat(ne),J)}Y("ERR_BUFFER_OUT_OF_BOUNDS",function(J){return J?"".concat(J," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError),Y("ERR_INVALID_ARG_TYPE",function(J,ne){return'The "'.concat(J,'" argument must be of type number. Received type ').concat(d(ne))},TypeError),Y("ERR_OUT_OF_RANGE",function(J,ne,de){var xe='The value of "'.concat(J,'" is out of range.'),ue=de;return Number.isInteger(de)&&Math.abs(de)>Math.pow(2,32)?ue=Z(String(de)):typeof de=="bigint"&&(ue=String(de),(de>Math.pow(BigInt(2),BigInt(32))||de<-Math.pow(BigInt(2),BigInt(32)))&&(ue=Z(ue)),ue+="n"),xe+" It must be ".concat(ne,". Received ").concat(ue)},RangeError);var le=/[^+/0-9A-Za-z-_]/g;function se(J,ne){var de;ne=ne||1/0;for(var xe=J.length,ue=null,ge=[],be=0;be55295&&de<57344){if(!ue){if(de>56319){(ne-=3)>-1&&ge.push(239,191,189);continue}if(be+1===xe){(ne-=3)>-1&&ge.push(239,191,189);continue}ue=de;continue}if(de<56320){(ne-=3)>-1&&ge.push(239,191,189),ue=de;continue}de=65536+(ue-55296<<10|de-56320)}else ue&&(ne-=3)>-1&&ge.push(239,191,189);if(ue=null,de<128){if((ne-=1)<0)break;ge.push(de)}else if(de<2048){if((ne-=2)<0)break;ge.push(de>>6|192,63&de|128)}else if(de<65536){if((ne-=3)<0)break;ge.push(de>>12|224,de>>6&63|128,63&de|128)}else{if(!(de<1114112))throw new Error("Invalid code point");if((ne-=4)<0)break;ge.push(de>>18|240,de>>12&63|128,de>>6&63|128,63&de|128)}}return ge}function pe(J){return h.toByteArray(function(ne){if((ne=(ne=ne.split("=")[0]).trim().replace(le,"")).length<2)return"";for(;ne.length%4!=0;)ne+="=";return ne}(J))}function Te(J,ne,de,xe){var ue;for(ue=0;ue=ne.length||ue>=J.length);++ue)ne[ue+de]=J[ue];return ue}function Se(J,ne){return J instanceof ne||J!=null&&J.constructor!=null&&J.constructor.name!=null&&J.constructor.name===ne.name}function Oe(J){return J!=J}var Me=function(){for(var J="0123456789abcdef",ne=new Array(256),de=0;de<16;++de)for(var xe=16*de,ue=0;ue<16;++ue)ne[xe+ue]=J[de]+J[ue];return ne}();function ce(J){return typeof BigInt>"u"?ye:J}function ye(){throw new Error("BigInt not supported")}},35791:function(o){o.exports=f,o.exports.isMobile=f,o.exports.default=f;var a=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,n=/CrOS/,l=/android|ipad|playbook|silk/i;function f(s){s||(s={});var u=s.ua;if(u||typeof navigator>"u"||(u=navigator.userAgent),u&&u.headers&&typeof u.headers["user-agent"]=="string"&&(u=u.headers["user-agent"]),typeof u!="string")return!1;var d=a.test(u)&&!n.test(u)||!!s.tablet&&l.test(u);return!d&&s.tablet&&s.featureDetect&&navigator&&navigator.maxTouchPoints>1&&u.indexOf("Macintosh")!==-1&&u.indexOf("Safari")!==-1&&(d=!0),d}},39898:function(o,a,n){var l,f;(function(){var s={version:"3.8.0"},u=[].slice,d=function(I){return u.call(I)},h=self.document;function p(I){return I&&(I.ownerDocument||I.document||I).documentElement}function m(I){return I&&(I.ownerDocument&&I.ownerDocument.defaultView||I.document&&I||I.defaultView)}if(h)try{d(h.documentElement.childNodes)[0].nodeType}catch{d=function(K){for(var ae=K.length,fe=new Array(ae);ae--;)fe[ae]=K[ae];return fe}}if(Date.now||(Date.now=function(){return+new Date}),h)try{h.createElement("DIV").style.setProperty("opacity",0,"")}catch{var y=this.Element.prototype,v=y.setAttribute,g=y.setAttributeNS,b=this.CSSStyleDeclaration.prototype,x=b.setProperty;y.setAttribute=function(K,ae){v.call(this,K,ae+"")},y.setAttributeNS=function(K,ae,fe){g.call(this,K,ae,fe+"")},b.setProperty=function(K,ae,fe){x.call(this,K,ae+"",fe)}}function _(I,K){return IK?1:I>=K?0:NaN}function w(I){return I===null?NaN:+I}function k(I){return!isNaN(I)}function T(I){return{left:function(K,ae,fe,he){for(arguments.length<3&&(fe=0),arguments.length<4&&(he=K.length);fe>>1;I(K[me],ae)<0?fe=me+1:he=me}return fe},right:function(K,ae,fe,he){for(arguments.length<3&&(fe=0),arguments.length<4&&(he=K.length);fe>>1;I(K[me],ae)>0?he=me:fe=me+1}return fe}}}s.ascending=_,s.descending=function(I,K){return KI?1:K>=I?0:NaN},s.min=function(I,K){var ae,fe,he=-1,me=I.length;if(arguments.length===1){for(;++he=fe){ae=fe;break}for(;++hefe&&(ae=fe)}else{for(;++he=fe){ae=fe;break}for(;++hefe&&(ae=fe)}return ae},s.max=function(I,K){var ae,fe,he=-1,me=I.length;if(arguments.length===1){for(;++he=fe){ae=fe;break}for(;++heae&&(ae=fe)}else{for(;++he=fe){ae=fe;break}for(;++heae&&(ae=fe)}return ae},s.extent=function(I,K){var ae,fe,he,me=-1,Ce=I.length;if(arguments.length===1){for(;++me=fe){ae=he=fe;break}for(;++mefe&&(ae=fe),he=fe){ae=he=fe;break}for(;++mefe&&(ae=fe),he1)return Ce/(Le-1)},s.deviation=function(){var I=s.variance.apply(this,arguments);return I&&Math.sqrt(I)};var M=T(_);function S(I){return I.length}s.bisectLeft=M.left,s.bisect=s.bisectRight=M.right,s.bisector=function(I){return T(I.length===1?function(K,ae){return _(I(K),ae)}:I)},s.shuffle=function(I,K,ae){(me=arguments.length)<3&&(ae=I.length,me<2&&(K=0));for(var fe,he,me=ae-K;me;)he=Math.random()*me--|0,fe=I[me+K],I[me+K]=I[he+K],I[he+K]=fe;return I},s.permute=function(I,K){for(var ae=K.length,fe=new Array(ae);ae--;)fe[ae]=I[K[ae]];return fe},s.pairs=function(I){for(var K=0,ae=I.length-1,fe=I[0],he=new Array(ae<0?0:ae);K=0;)for(K=(fe=I[he]).length;--K>=0;)ae[--Ce]=fe[K];return ae};var C=Math.abs;function P(I,K){for(var ae in K)Object.defineProperty(I.prototype,ae,{value:K[ae],enumerable:!1})}function D(){this._=Object.create(null)}s.range=function(I,K,ae){if(arguments.length<3&&(ae=1,arguments.length<2&&(K=I,I=0)),(K-I)/ae==1/0)throw new Error("infinite range");var fe,he=[],me=function(Pe){for(var Le=1;Pe*Le%1;)Le*=10;return Le}(C(ae)),Ce=-1;if(I*=me,K*=me,(ae*=me)<0)for(;(fe=I+ae*++Ce)>K;)he.push(fe/me);else for(;(fe=I+ae*++Ce)=fe.length)return K?K.call(ae,Le):I?Le.sort(I):Le;for(var He,Xe,rt,vt,Ct=-1,dt=Le.length,xt=fe[Fe++],ot=new D;++Ct=fe.length)return Pe;var Fe=[],He=he[Le++];return Pe.forEach(function(Xe,rt){Fe.push({key:Xe,values:Ce(rt,Le)})}),He?Fe.sort(function(Xe,rt){return He(Xe.key,rt.key)}):Fe}return ae.map=function(Pe,Le){return me(Le,Pe,0)},ae.entries=function(Pe){return Ce(me(s.map,Pe,0),0)},ae.key=function(Pe){return fe.push(Pe),ae},ae.sortKeys=function(Pe){return he[fe.length-1]=Pe,ae},ae.sortValues=function(Pe){return I=Pe,ae},ae.rollup=function(Pe){return K=Pe,ae},ae},s.set=function(I){var K=new E;if(I)for(var ae=0,fe=I.length;ae=0&&(fe=I.slice(ae+1),I=I.slice(0,ae)),I)return arguments.length<2?this[I].on(fe):this[I].on(fe,K);if(arguments.length===2){if(K==null)for(I in this)this.hasOwnProperty(I)&&this[I].on(fe,null);return this}},s.event=null,s.requote=function(I){return I.replace(Y,"\\$&")};var Y=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Z={}.__proto__?function(I,K){I.__proto__=K}:function(I,K){for(var ae in K)I[ae]=K[ae]};function X(I){return Z(I,se),I}var re=function(I,K){return K.querySelector(I)},ie=function(I,K){return K.querySelectorAll(I)},le=function(I,K){var ae=I.matches||I[L(I,"matchesSelector")];return le=function(fe,he){return ae.call(fe,he)},le(I,K)};typeof Sizzle=="function"&&(re=function(I,K){return Sizzle(I,K)[0]||null},ie=Sizzle,le=Sizzle.matchesSelector),s.selection=function(){return s.select(h.documentElement)};var se=s.selection.prototype=[];function pe(I){return typeof I=="function"?I:function(){return re(I,this)}}function Te(I){return typeof I=="function"?I:function(){return ie(I,this)}}se.select=function(I){var K,ae,fe,he,me=[];I=pe(I);for(var Ce=-1,Pe=this.length;++Ce=0&&(ae=I.slice(0,K))!=="xmlns"&&(I=I.slice(K+1)),Oe.hasOwnProperty(ae)?{space:Oe[ae],local:I}:I}},se.attr=function(I,K){if(arguments.length<2){if(typeof I=="string"){var ae=this.node();return(I=s.ns.qualify(I)).local?ae.getAttributeNS(I.space,I.local):ae.getAttribute(I)}for(K in I)this.each(Me(K,I[K]));return this}return this.each(Me(I,K))},se.classed=function(I,K){if(arguments.length<2){if(typeof I=="string"){var ae=this.node(),fe=(I=J(I)).length,he=-1;if(K=ae.classList){for(;++he=0;)(ae=fe[he])&&(me&&me!==ae.nextSibling&&me.parentNode.insertBefore(ae,me),me=ae);return this},se.sort=function(I){I=Ae.apply(this,arguments);for(var K=-1,ae=this.length;++K0&&(I=I.slice(0,he));var Ce=Be.get(I);function Pe(){var Le=this[fe];Le&&(this.removeEventListener(I,Le,Le.$),delete this[fe])}return Ce&&(I=Ce,me=qe),he?K?function(){var Le=me(K,d(arguments));Pe.call(this),this.addEventListener(I,this[fe]=Le,Le.$=ae),Le._=K}:Pe:K?H:function(){var Le,Fe=new RegExp("^__on([^.]+)"+s.requote(I)+"$");for(var He in this)if(Le=He.match(Fe)){var Xe=this[He];this.removeEventListener(Le[1],Xe,Xe.$),delete this[He]}}}s.selection.enter=De,s.selection.enter.prototype=Re,Re.append=se.append,Re.empty=se.empty,Re.node=se.node,Re.call=se.call,Re.size=se.size,Re.select=function(I){for(var K,ae,fe,he,me,Ce=[],Pe=-1,Le=this.length;++Pe=fe&&(fe=Ce+1);!(Le=Fe[fe])&&++fe1?ut:I<-1?-ut:Math.asin(I)}function zt(I){return((I=Math.exp(I))+1/I)/2}var wt=Math.SQRT2;s.interpolateZoom=function(I,K){var ae,fe,he=I[0],me=I[1],Ce=I[2],Pe=K[0],Le=K[1],Fe=K[2],He=Pe-he,Xe=Le-me,rt=He*He+Xe*Xe;if(rt0&&(en=en.transition().duration(rt)),en.call(_t.event)}function Jt(){Ce&&Ce.domain(me.range().map(function(en){return(en-Fe.x)/Fe.k}).map(me.invert)),Le&&Le.domain(Pe.range().map(function(en){return(en-Fe.y)/Fe.k}).map(Pe.invert))}function gn(en){vt++||en({type:"zoomstart"})}function vn(en){Jt(),en({type:"zoom",scale:Fe.k,translate:[Fe.x,Fe.y]})}function kn(en){--vt||(en({type:"zoomend"}),K=null)}function yn(){var en=this,fn=Pt.of(en,arguments),En=0,In=s.select(m(en)).on(dt,function(){En=1,Ht(s.mouse(en),Wn),vn(fn)}).on(xt,function(){In.on(dt,null).on(xt,null),cr(En),kn(fn)}),Wn=ft(s.mouse(en)),cr=lt(en);Rc.call(en),gn(fn)}function Nn(){var en,fn=this,En=Pt.of(fn,arguments),In={},Wn=0,cr=".zoom-"+s.event.changedTouches[0].identifier,Ir="touchmove"+cr,Sr="touchend"+cr,Vr=[],Fr=s.select(fn),Yr=lt(fn);function da(){var Xr=s.touches(fn);return en=Fe.k,Xr.forEach(function(Nr){Nr.identifier in In&&(In[Nr.identifier]=ft(Nr))}),Xr}function Ka(){var Xr=s.event.target;s.select(Xr).on(Ir,ii).on(Sr,oi),Vr.push(Xr);for(var Nr=s.event.changedTouches,va=0,ya=Nr.length;va1){xi=Ta[0];var Bi=Ta[1],Fc=xi[0]-Bi[0],B2=xi[1]-Bi[1];Wn=Fc*Fc+B2*B2}}function ii(){var Xr,Nr,va,ya,Ta=s.touches(fn);Rc.call(fn);for(var Ba=0,xi=Ta.length;Ba360?Pe-=360:Pe<0&&(Pe+=360),Pe<60?fe+(he-fe)*Pe/60:Pe<180?he:Pe<240?fe+(he-fe)*(240-Pe)/60:fe}(Ce))}return I=isNaN(I)?0:(I%=360)<0?I+360:I,K=isNaN(K)||K<0?0:K>1?1:K,fe=2*(ae=ae<0?0:ae>1?1:ae)-(he=ae<=.5?ae*(1+K):ae+K-ae*K),new Et(me(I+120),me(I),me(I-120))}function nt(I,K,ae){return this instanceof nt?(this.h=+I,this.c=+K,void(this.l=+ae)):arguments.length<2?I instanceof nt?new nt(I.h,I.c,I.l):function(fe,he,me){return fe>0?new nt(Math.atan2(me,he)*It,Math.sqrt(he*he+me*me),fe):new nt(NaN,NaN,fe)}(I instanceof tt?I.l:(I=$t((I=s.rgb(I)).r,I.g,I.b)).l,I.a,I.b):new nt(I,K,ae)}Ge.brighter=function(I){return I=Math.pow(.7,arguments.length?I:1),new Ze(this.h,this.s,this.l/I)},Ge.darker=function(I){return I=Math.pow(.7,arguments.length?I:1),new Ze(this.h,this.s,I*this.l)},Ge.rgb=function(){return Ke(this.h,this.s,this.l)},s.hcl=nt;var st=nt.prototype=new We;function mt(I,K,ae){return isNaN(I)&&(I=0),isNaN(K)&&(K=0),new tt(ae,Math.cos(I*=pt)*K,Math.sin(I)*K)}function tt(I,K,ae){return this instanceof tt?(this.l=+I,this.a=+K,void(this.b=+ae)):arguments.length<2?I instanceof tt?new tt(I.l,I.a,I.b):I instanceof nt?mt(I.h,I.c,I.l):$t((I=Et(I)).r,I.g,I.b):new tt(I,K,ae)}st.brighter=function(I){return new nt(this.h,this.c,Math.min(100,this.l+Ft*(arguments.length?I:1)))},st.darker=function(I){return new nt(this.h,this.c,Math.max(0,this.l-Ft*(arguments.length?I:1)))},st.rgb=function(){return mt(this.h,this.c,this.l).rgb()},s.lab=tt;var Ft=18,Vt=.95047,St=1,Nt=1.08883,Dt=tt.prototype=new We;function gt(I,K,ae){var fe=(I+16)/116,he=fe+K/500,me=fe-ae/200;return new Et(qt(3.2404542*(he=ht(he)*Vt)-1.5371385*(fe=ht(fe)*St)-.4985314*(me=ht(me)*Nt)),qt(-.969266*he+1.8760108*fe+.041556*me),qt(.0556434*he-.2040259*fe+1.0572252*me))}function ht(I){return I>.206893034?I*I*I:(I-.13793103448275862)/7.787037}function yt(I){return I>.008856?Math.pow(I,.3333333333333333):7.787037*I+.13793103448275862}function qt(I){return Math.round(255*(I<=.00304?12.92*I:1.055*Math.pow(I,.4166666666666667)-.055))}function Et(I,K,ae){return this instanceof Et?(this.r=~~I,this.g=~~K,void(this.b=~~ae)):arguments.length<2?I instanceof Et?new Et(I.r,I.g,I.b):Lt(""+I,Et,Ke):new Et(I,K,ae)}function jt(I){return new Et(I>>16,I>>8&255,255&I)}function Tt(I){return jt(I)+""}Dt.brighter=function(I){return new tt(Math.min(100,this.l+Ft*(arguments.length?I:1)),this.a,this.b)},Dt.darker=function(I){return new tt(Math.max(0,this.l-Ft*(arguments.length?I:1)),this.a,this.b)},Dt.rgb=function(){return gt(this.l,this.a,this.b)},s.rgb=Et;var Ot=Et.prototype=new We;function At(I){return I<16?"0"+Math.max(0,I).toString(16):Math.min(255,I).toString(16)}function Lt(I,K,ae){var fe,he,me,Ce=0,Pe=0,Le=0;if(fe=/([a-z]+)\((.*)\)/.exec(I=I.toLowerCase()))switch(he=fe[2].split(","),fe[1]){case"hsl":return ae(parseFloat(he[0]),parseFloat(he[1])/100,parseFloat(he[2])/100);case"rgb":return K(Xt(he[0]),Xt(he[1]),Xt(he[2]))}return(me=Bt.get(I))?K(me.r,me.g,me.b):(I==null||I.charAt(0)!=="#"||isNaN(me=parseInt(I.slice(1),16))||(I.length===4?(Ce=(3840&me)>>4,Ce|=Ce>>4,Pe=240&me,Pe|=Pe>>4,Le=15&me,Le|=Le<<4):I.length===7&&(Ce=(16711680&me)>>16,Pe=(65280&me)>>8,Le=255&me)),K(Ce,Pe,Le))}function Rt(I,K,ae){var fe,he,me=Math.min(I/=255,K/=255,ae/=255),Ce=Math.max(I,K,ae),Pe=Ce-me,Le=(Ce+me)/2;return Pe?(he=Le<.5?Pe/(Ce+me):Pe/(2-Ce-me),fe=I==Ce?(K-ae)/Pe+(K0&&Le<1?0:fe),new Ze(fe,he,Le)}function $t(I,K,ae){var fe=yt((.4124564*(I=Yt(I))+.3575761*(K=Yt(K))+.1804375*(ae=Yt(ae)))/Vt),he=yt((.2126729*I+.7151522*K+.072175*ae)/St);return tt(116*he-16,500*(fe-he),200*(he-yt((.0193339*I+.119192*K+.9503041*ae)/Nt)))}function Yt(I){return(I/=255)<=.04045?I/12.92:Math.pow((I+.055)/1.055,2.4)}function Xt(I){var K=parseFloat(I);return I.charAt(I.length-1)==="%"?Math.round(2.55*K):K}Ot.brighter=function(I){I=Math.pow(.7,arguments.length?I:1);var K=this.r,ae=this.g,fe=this.b,he=30;return K||ae||fe?(K&&K=200&&Xe<300||Xe===304){try{He=ae.call(he,Pe)}catch(rt){return void me.error.call(he,rt)}me.load.call(he,He)}else me.error.call(he,Pe)}return self.XDomainRequest&&!("withCredentials"in Pe)&&/^(http(s)?:)?\/\//.test(I)&&(Pe=new XDomainRequest),"onload"in Pe?Pe.onload=Pe.onerror=Fe:Pe.onreadystatechange=function(){Pe.readyState>3&&Fe()},Pe.onprogress=function(He){var Xe=s.event;s.event=He;try{me.progress.call(he,Pe)}finally{s.event=Xe}},he.header=function(He,Xe){return He=(He+"").toLowerCase(),arguments.length<2?Ce[He]:(Xe==null?delete Ce[He]:Ce[He]=Xe+"",he)},he.mimeType=function(He){return arguments.length?(K=He==null?null:He+"",he):K},he.responseType=function(He){return arguments.length?(Le=He,he):Le},he.response=function(He){return ae=He,he},["get","post"].forEach(function(He){he[He]=function(){return he.send.apply(he,[He].concat(d(arguments)))}}),he.send=function(He,Xe,rt){if(arguments.length===2&&typeof Xe=="function"&&(rt=Xe,Xe=null),Pe.open(He,I,!0),K==null||"accept"in Ce||(Ce.accept=K+",*/*"),Pe.setRequestHeader)for(var vt in Ce)Pe.setRequestHeader(vt,Ce[vt]);return K!=null&&Pe.overrideMimeType&&Pe.overrideMimeType(K),Le!=null&&(Pe.responseType=Le),rt!=null&&he.on("error",rt).on("load",function(Ct){rt(null,Ct)}),me.beforesend.call(he,Pe),Pe.send(Xe??null),he},he.abort=function(){return Pe.abort(),he},s.rebind(he,me,"on"),fe==null?he:he.get(function(He){return He.length===1?function(Xe,rt){He(Xe==null?rt:null)}:He}(fe))}Bt.forEach(function(I,K){Bt.set(I,jt(K))}),s.functor=Wt,s.xhr=tn(W),s.dsv=function(I,K){var ae=new RegExp('["'+I+` +`+q.year}return B(E,N,G,L)};var j=3*y;a.incrementMonth=function(N,E,W){W=S(W)&&W;var G=h(N,y);if(N=Math.round(N-G),W)try{var L=Math.round(N/y)+x,q=_.getComponentMethod("calendars","getCal")(W),H=q.fromJD(L);return E%12?q.add(H,E,"m"):q.add(H,E/12,"y"),(H.toJD()-x)*y+G}catch{d.error("invalid ms "+N+" in calendar "+W)}var V=new Date(N+j);return V.setUTCMonth(V.getUTCMonth()+E)+G-j},a.findExactDates=function(N,E){for(var W,G,L=0,q=0,H=0,V=0,te=S(E)&&_.getComponentMethod("calendars","getCal")(E),ee=0;ee1||D<0||D>1?null:{x:p+w*D,y:m+M*D}}function h(p,m,y,v,g){var b=v*p+g*m;if(b<0)return v*v+g*g;if(b>y){var x=v-p,_=g-m;return x*x+_*_}var w=v*m-g*p;return w*w/y}a.segmentsIntersect=d,a.segmentDistance=function(p,m,y,v,g,b,x,_){if(d(p,m,y,v,g,b,x,_))return 0;var w=y-p,k=v-m,T=x-g,M=_-b,S=w*w+k*k,C=T*T+M*M,P=Math.min(h(w,k,S,g-p,b-m),h(w,k,S,x-p,_-m),h(T,M,C,p-g,m-b),h(T,M,C,y-g,v-b));return Math.sqrt(P)},a.getTextLocation=function(p,m,y,v){if(p===f&&v===s||(l={},f=p,s=v),l[y])return l[y];var g=p.getPointAtLength(c(y-v/2,m)),b=p.getPointAtLength(c(y+v/2,m)),x=Math.atan((b.y-g.y)/(b.x-g.x)),_=p.getPointAtLength(c(y,m)),w={x:(4*_.x+g.x+b.x)/6,y:(4*_.y+g.y+b.y)/6,theta:x};return l[y]=w,w},a.clearLocationCache=function(){f=null},a.getVisibleSegment=function(p,m,y){var v,g,b=m.left,x=m.right,_=m.top,w=m.bottom,k=0,T=p.getTotalLength(),M=T;function S(P){var D=p.getPointAtLength(P);P===0?v=D:P===T&&(g=D);var O=D.xx?D.x-x:0,R=D.y<_?_-D.y:D.y>w?D.y-w:0;return Math.sqrt(O*O+R*R)}for(var C=S(k);C;){if((k+=C+y)>M)return;C=S(k)}for(C=S(M);C;){if(k>(M-=C+y))return;C=S(M)}return{min:k,max:M,len:M-k,total:T,isClosed:k===0&&M===T&&Math.abs(v.x-g.x)<.1&&Math.abs(v.y-g.y)<.1}},a.findPointOnPath=function(p,m,y,v){for(var g,b,x,_=(v=v||{}).pathLength||p.getTotalLength(),w=v.tolerance||.001,k=v.iterationLimit||30,T=p.getPointAtLength(0)[y]>p.getPointAtLength(_)[y]?-1:1,M=0,S=0,C=_;M0?C=g:S=g,M++}return b}},23389:function(o){o.exports=function(a){return a}},39240:function(o){o.exports=function(a,n){if(!n)return a;var l=1/Math.abs(n),f=l>1?(l*a+l*n)/l:a+n,s=String(f).length;if(s>16){var c=String(n).length;if(s>=String(a).length+c){var d=parseFloat(f).toPrecision(12);d.indexOf("e+")===-1&&(f=+d)}}return f}},71828:function(o,a,n){var l=n(39898),f=n(84096).g0,s=n(60721).WU,c=n(92770),d=n(50606),h=d.FP_SAFE,p=-h,m=d.BADNUM,y=o.exports={};y.adjustFormat=function(Y){return!Y||/^\d[.]\df/.test(Y)||/[.]\d%/.test(Y)?Y:Y==="0.f"?"~f":/^\d%/.test(Y)?"~%":/^\ds/.test(Y)?"~s":!/^[~,.0$]/.test(Y)&&/[&fps]/.test(Y)?"~"+Y:Y};var v={};y.warnBadFormat=function(Y){var Z=String(Y);v[Z]||(v[Z]=1,y.warn('encountered bad format: "'+Z+'"'))},y.noFormat=function(Y){return String(Y)},y.numberFormat=function(Y){var Z;try{Z=s(y.adjustFormat(Y))}catch{return y.warnBadFormat(Y),y.noFormat}return Z},y.nestedProperty=n(65487),y.keyedContainer=n(66636),y.relativeAttr=n(6962),y.isPlainObject=n(41965),y.toLogRange=n(58163),y.relinkPrivateKeys=n(51332);var g=n(73627);y.isTypedArray=g.isTypedArray,y.isArrayOrTypedArray=g.isArrayOrTypedArray,y.isArray1D=g.isArray1D,y.ensureArray=g.ensureArray,y.concat=g.concat,y.maxRowLength=g.maxRowLength,y.minRowLength=g.minRowLength;var b=n(64872);y.mod=b.mod,y.modHalf=b.modHalf;var x=n(96554);y.valObjectMeta=x.valObjectMeta,y.coerce=x.coerce,y.coerce2=x.coerce2,y.coerceFont=x.coerceFont,y.coercePattern=x.coercePattern,y.coerceHoverinfo=x.coerceHoverinfo,y.coerceSelectionMarkerOpacity=x.coerceSelectionMarkerOpacity,y.validate=x.validate;var _=n(41631);y.dateTime2ms=_.dateTime2ms,y.isDateTime=_.isDateTime,y.ms2DateTime=_.ms2DateTime,y.ms2DateTimeLocal=_.ms2DateTimeLocal,y.cleanDate=_.cleanDate,y.isJSDate=_.isJSDate,y.formatDate=_.formatDate,y.incrementMonth=_.incrementMonth,y.dateTick0=_.dateTick0,y.dfltRange=_.dfltRange,y.findExactDates=_.findExactDates,y.MIN_MS=_.MIN_MS,y.MAX_MS=_.MAX_MS;var w=n(65888);y.findBin=w.findBin,y.sorterAsc=w.sorterAsc,y.sorterDes=w.sorterDes,y.distinctVals=w.distinctVals,y.roundUp=w.roundUp,y.sort=w.sort,y.findIndexOfMin=w.findIndexOfMin,y.sortObjectKeys=n(78607);var k=n(80038);y.aggNums=k.aggNums,y.len=k.len,y.mean=k.mean,y.median=k.median,y.midRange=k.midRange,y.variance=k.variance,y.stdev=k.stdev,y.interp=k.interp;var T=n(35657);y.init2dArray=T.init2dArray,y.transposeRagged=T.transposeRagged,y.dot=T.dot,y.translationMatrix=T.translationMatrix,y.rotationMatrix=T.rotationMatrix,y.rotationXYMatrix=T.rotationXYMatrix,y.apply3DTransform=T.apply3DTransform,y.apply2DTransform=T.apply2DTransform,y.apply2DTransform2=T.apply2DTransform2,y.convertCssMatrix=T.convertCssMatrix,y.inverseTransformMatrix=T.inverseTransformMatrix;var M=n(26348);y.deg2rad=M.deg2rad,y.rad2deg=M.rad2deg,y.angleDelta=M.angleDelta,y.angleDist=M.angleDist,y.isFullCircle=M.isFullCircle,y.isAngleInsideSector=M.isAngleInsideSector,y.isPtInsideSector=M.isPtInsideSector,y.pathArc=M.pathArc,y.pathSector=M.pathSector,y.pathAnnulus=M.pathAnnulus;var S=n(99863);y.isLeftAnchor=S.isLeftAnchor,y.isCenterAnchor=S.isCenterAnchor,y.isRightAnchor=S.isRightAnchor,y.isTopAnchor=S.isTopAnchor,y.isMiddleAnchor=S.isMiddleAnchor,y.isBottomAnchor=S.isBottomAnchor;var C=n(87642);y.segmentsIntersect=C.segmentsIntersect,y.segmentDistance=C.segmentDistance,y.getTextLocation=C.getTextLocation,y.clearLocationCache=C.clearLocationCache,y.getVisibleSegment=C.getVisibleSegment,y.findPointOnPath=C.findPointOnPath;var P=n(1426);y.extendFlat=P.extendFlat,y.extendDeep=P.extendDeep,y.extendDeepAll=P.extendDeepAll,y.extendDeepNoArrays=P.extendDeepNoArrays;var D=n(47769);y.log=D.log,y.warn=D.warn,y.error=D.error;var O=n(30587);y.counterRegex=O.counter;var R=n(79990);y.throttle=R.throttle,y.throttleDone=R.done,y.clearThrottle=R.clear;var F=n(24401);function A(Y){var Z={};for(var X in Y)for(var re=Y[X],ie=0;ieh||Y=Z)&&c(Y)&&Y>=0&&Y%1==0},y.noop=n(64213),y.identity=n(23389),y.repeat=function(Y,Z){for(var X=new Array(Z),re=0;reX?Math.max(X,Math.min(Z,Y)):Math.max(Z,Math.min(X,Y))},y.bBoxIntersect=function(Y,Z,X){return X=X||0,Y.left<=Z.right+X&&Z.left<=Y.right+X&&Y.top<=Z.bottom+X&&Z.top<=Y.bottom+X},y.simpleMap=function(Y,Z,X,re,ie){for(var le=Y.length,se=new Array(le),pe=0;pe=Math.pow(2,X)?ie>10?(y.warn("randstr failed uniqueness"),Te):Y(Z,X,re,(ie||0)+1):Te},y.OptionControl=function(Y,Z){Y||(Y={}),Z||(Z="opt");var X={optionList:[],_newoption:function(re){re[Z]=Y,X[re.name]=re,X.optionList.push(re)}};return X["_"+Z]=Y,X},y.smooth=function(Y,Z){if((Z=Math.round(Z)||0)<2)return Y;var X,re,ie,le,se=Y.length,pe=2*se,Te=2*Z-1,Se=new Array(Te),Oe=new Array(se);for(X=0;X=pe&&(ie-=pe*Math.floor(ie/pe)),ie<0?ie=-1-ie:ie>=se&&(ie=pe-1-ie),le+=Y[ie]*Se[re];Oe[X]=le}return Oe},y.syncOrAsync=function(Y,Z,X){var re;function ie(){return y.syncOrAsync(Y,Z,X)}for(;Y.length;)if((re=(0,Y.splice(0,1)[0])(Z))&&re.then)return re.then(ie);return X&&X(Z)},y.stripTrailingSlash=function(Y){return Y.substr(-1)==="/"?Y.substr(0,Y.length-1):Y},y.noneOrAll=function(Y,Z,X){if(Y){var re,ie=!1,le=!0;for(re=0;re0?ie:0})},y.fillArray=function(Y,Z,X,re){if(re=re||y.identity,y.isArrayOrTypedArray(Y))for(var ie=0;ie1?ie+se[1]:"";if(le&&(se.length>1||pe.length>4||X))for(;re.test(pe);)pe=pe.replace(re,"$1"+le+"$2");return pe+Te},y.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var W=/^\w*$/;y.templateString=function(Y,Z){var X={};return Y.replace(y.TEMPLATE_STRING_REGEX,function(re,ie){var le;return W.test(ie)?le=Z[ie]:(X[ie]=X[ie]||y.nestedProperty(Z,ie).get,le=X[ie]()),y.isValidTextValue(le)?le:""})};var G={max:10,count:0,name:"hovertemplate"};y.hovertemplateString=function(){return te.apply(G,arguments)};var L={max:10,count:0,name:"texttemplate"};y.texttemplateString=function(){return te.apply(L,arguments)};var q=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/,H={max:10,count:0,name:"texttemplate",parseMultDiv:!0};y.texttemplateStringForShapes=function(){return te.apply(H,arguments)};var V=/^[:|\|]/;function te(Y,Z,X){var re=this,ie=arguments;Z||(Z={});var le={};return Y.replace(y.TEMPLATE_STRING_REGEX,function(se,pe,Te){var Se=pe==="_xother"||pe==="_yother",Oe=pe==="_xother_"||pe==="_yother_",Me=pe==="xother_"||pe==="yother_",ce=pe==="xother"||pe==="yother"||Se||Me||Oe,ye=pe;(Se||Oe)&&(ye=ye.substring(1)),(Me||Oe)&&(ye=ye.substring(0,ye.length-1));var J,ne,de,xe=null,ue=null;if(re.parseMultDiv){var ge=function(Ae){var Ee=Ae.match(q);return Ee?{key:Ee[1],op:Ee[2],number:Number(Ee[3])}:{key:Ae,op:null,number:null}}(ye);ye=ge.key,xe=ge.op,ue=ge.number}if(ce){if((J=Z[ye])===void 0)return""}else for(de=3;de=48&&se<=57,Se=pe>=48&&pe<=57;if(Te&&(re=10*re+se-48),Se&&(ie=10*ie+pe-48),!Te||!Se){if(re!==ie)return re-ie;if(se!==pe)return se-pe}}return ie-re};var ee=2e9;y.seedPseudoRandom=function(){ee=2e9},y.pseudoRandom=function(){var Y=ee;return ee=(69069*ee+1)%4294967296,Math.abs(ee-Y)<429496729?y.pseudoRandom():ee/4294967296},y.fillText=function(Y,Z,X){var re=Array.isArray(X)?function(se){X.push(se)}:function(se){X.text=se},ie=y.extractOption(Y,Z,"htx","hovertext");if(y.isValidTextValue(ie))return re(ie);var le=y.extractOption(Y,Z,"tx","text");return y.isValidTextValue(le)?re(le):void 0},y.isValidTextValue=function(Y){return Y||Y===0},y.formatPercent=function(Y,Z){Z=Z||0;for(var X=(Math.round(100*Y*Math.pow(10,Z))*Math.pow(.1,Z)).toFixed(Z)+"%",re=0;re1&&(Se=1):Se=0,y.strTranslate(ie-Se*(X+se),le-Se*(re+pe))+y.strScale(Se)+(Te?"rotate("+Te+(Z?"":" "+X+" "+re)+")":"")},y.setTransormAndDisplay=function(Y,Z){Y.attr("transform",y.getTextTransform(Z)),Y.style("display",Z.scale?null:"none")},y.ensureUniformFontSize=function(Y,Z){var X=y.extendFlat({},Z);return X.size=Math.max(Z.size,Y._fullLayout.uniformtext.minsize||0),X},y.join2=function(Y,Z,X){var re=Y.length;return re>1?Y.slice(0,-1).join(Z)+X+Y[re-1]:Y.join(Z)},y.bigFont=function(Y){return Math.round(1.2*Y)};var U=y.getFirefoxVersion(),Q=U!==null&&U<86;y.getPositionFromD3Event=function(){return Q?[l.event.layerX,l.event.layerY]:[l.event.offsetX,l.event.offsetY]}},41965:function(o){o.exports=function(a){return window&&window.process&&window.process.versions?Object.prototype.toString.call(a)==="[object Object]":Object.prototype.toString.call(a)==="[object Object]"&&Object.getPrototypeOf(a).hasOwnProperty("hasOwnProperty")}},66636:function(o,a,n){var l=n(65487),f=/^\w*$/;o.exports=function(s,c,d,h){var p,m,y;d=d||"name",h=h||"value";var v={};c&&c.length?(y=l(s,c),m=y.get()):m=s,c=c||"";var g={};if(m)for(p=0;p2)return v[w]=2|v[w],x.set(_,null);if(b){for(p=w;p1){var d=["LOG:"];for(c=0;c1){var h=[];for(c=0;c"),"long")}},s.warn=function(){var c;if(l.logging>0){var d=["WARN:"];for(c=0;c0){var h=[];for(c=0;c"),"stick")}},s.error=function(){var c;if(l.logging>0){var d=["ERROR:"];for(c=0;c0){var h=[];for(c=0;c"),"stick")}}},77310:function(o,a,n){var l=n(39898);o.exports=function(f,s,c){var d=f.selectAll("g."+c.replace(/\s/g,".")).data(s,function(p){return p[0].trace.uid});d.exit().remove(),d.enter().append("g").attr("class",c),d.order();var h=f.classed("rangeplot")?"nodeRangePlot3":"node3";return d.each(function(p){p[0][h]=l.select(this)}),d}},35657:function(o,a,n){var l=n(79576);a.init2dArray=function(f,s){for(var c=new Array(f),d=0;dn/2?a-Math.round(a/n)*n:a}}},65487:function(o,a,n){var l=n(92770),f=n(73627).isArrayOrTypedArray;function s(v,g){return function(){var b,x,_,w,k,T=v;for(w=0;w/g),x=0;xm||M===f||Mv||k&&g(w))}:function(w,k){var T=w[0],M=w[1];if(T===f||Tm||M===f||Mv)return!1;var S,C,P,D,O,R=h.length,F=h[0][0],A=h[0][1],z=0;for(S=1;SMath.max(C,F)||M>Math.max(P,A)))if(Mx||Math.abs(l(y,w))>p)return!0;return!1},s.filter=function(c,d){var h=[c[0]],p=0,m=0;function y(v){c.push(v);var g=h.length,b=p;h.splice(m+1);for(var x=b+1;x1&&y(c.pop()),{addPt:y,raw:c,filtered:h}}},45142:function(o,a,n){var l=n(92770),f=n(35791);o.exports=function(s){var c;if(typeof(c=s&&s.hasOwnProperty("userAgent")?s.userAgent:function(){var g;return typeof navigator<"u"&&(g=navigator.userAgent),g&&g.headers&&typeof g.headers["user-agent"]=="string"&&(g=g.headers["user-agent"]),g}())!="string")return!0;var d=f({ua:{headers:{"user-agent":c}},tablet:!0,featureDetect:!1});if(!d){for(var h=c.split(" "),p=1;p-1;m--){var y=h[m];if(y.substr(0,8)==="Version/"){var v=y.substr(8).split(".")[0];if(l(v)&&(v=+v),v>=13)return!0}}}return d}},75138:function(o){o.exports=function(a,n){if(n instanceof RegExp){for(var l=n.toString(),f=0;ff.queueLength&&(c.undoQueue.queue.shift(),c.undoQueue.index--))},startSequence:function(c){c.undoQueue=c.undoQueue||{index:0,queue:[],sequence:!1},c.undoQueue.sequence=!0,c.undoQueue.beginSequence=!0},stopSequence:function(c){c.undoQueue=c.undoQueue||{index:0,queue:[],sequence:!1},c.undoQueue.sequence=!1,c.undoQueue.beginSequence=!1},undo:function(c){var d,h;if(!(c.undoQueue===void 0||isNaN(c.undoQueue.index)||c.undoQueue.index<=0)){for(c.undoQueue.index--,d=c.undoQueue.queue[c.undoQueue.index],c.undoQueue.inSequence=!0,h=0;h=c.undoQueue.queue.length)){for(d=c.undoQueue.queue[c.undoQueue.index],c.undoQueue.inSequence=!0,h=0;hg}function y(v,g){return v>=g}a.findBin=function(v,g,b){if(l(g.start))return b?Math.ceil((v-g.start)/g.size-d)-1:Math.floor((v-g.start)/g.size+d);var x,_,w=0,k=g.length,T=0,M=k>1?(g[k-1]-g[0])/(k-1):1;for(_=M>=0?b?h:p:b?y:m,v+=M*d*(b?-1:1)*(M>=0?1:-1);w90&&f.log("Long binary search..."),w-1},a.sorterAsc=function(v,g){return v-g},a.sorterDes=function(v,g){return g-v},a.distinctVals=function(v){var g,b=v.slice();for(b.sort(a.sorterAsc),g=b.length-1;g>-1&&b[g]===c;g--);for(var x,_=b[g]-b[0]||1,w=_/(g||1)/1e4,k=[],T=0;T<=g;T++){var M=b[T],S=M-x;x===void 0?(k.push(M),x=M):S>w&&(_=Math.min(_,S),k.push(M),x=M)}return{vals:k,minDiff:_}},a.roundUp=function(v,g,b){for(var x,_=0,w=g.length-1,k=0,T=b?0:1,M=b?1:0,S=b?Math.ceil:Math.floor;_0&&(x=1),b&&x)return v.sort(g)}return x?v:v.reverse()},a.findIndexOfMin=function(v,g){g=g||s;for(var b,x=1/0,_=0;_d.length)&&(h=d.length),l(c)||(c=!1),f(d[0])){for(m=new Array(h),p=0;ps.length-1)return s[s.length-1];var d=c%1;return d*s[Math.ceil(c)]+(1-d)*s[Math.floor(c)]}},3883:function(o,a,n){var l=n(32396),f=n(91424),s=n(71828),c=null;o.exports=function(){if(c!==null)return c;c=!1;var d=s.isIE()||s.isSafari()||s.isIOS();if(window.navigator.userAgent&&!d){var h=Array.from(l.CSS_DECLARATIONS).reverse(),p=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof p=="function")c=h.some(function(v){return p.apply(null,v)});else{var m=f.tester.append("image").attr("style",l.STYLE),y=window.getComputedStyle(m.node()).imageRendering;c=h.some(function(v){var g=v[1];return y===g||y===g.toLowerCase()}),m.remove()}}return c}},63893:function(o,a,n){var l=n(39898),f=n(71828),s=f.strTranslate,c=n(77922),d=n(18783).LINE_SPACING,h=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;a.convertToTspans=function(N,E,W){var G=N.text(),L=!N.attr("data-notex")&&E&&E._context.typesetMath&&typeof MathJax<"u"&&G.match(h),q=l.select(N.node().parentNode);if(!q.empty()){var H=N.attr("class")?N.attr("class").split(" ")[0]:"text";return H+="-math",q.selectAll("svg."+H).remove(),q.selectAll("g."+H+"-group").remove(),N.style("display",null).attr({"data-unformatted":G,"data-math":"N"}),L?(E&&E._promises||[]).push(new Promise(function(te){N.style("display","none");var ee=parseInt(N.node().style.fontSize,10),U={fontSize:ee};(function(Q,Y,Z){var X,re,ie,le,se=parseInt((MathJax.version||"").split(".")[0]);if(se===2||se===3){var pe=function(){var Se="math-output-"+f.randstr({},64),Oe=(le=l.select("body").append("div").attr({id:Se}).style({visibility:"hidden",position:"absolute","font-size":Y.fontSize+"px"}).text(Q.replace(p,"\\lt ").replace(m,"\\gt "))).node();return se===2?MathJax.Hub.Typeset(Oe):MathJax.typeset([Oe])},Te=function(){var Se=le.select(se===2?".MathJax_SVG":".MathJax"),Oe=!Se.empty()&&le.select("svg").node();if(Oe){var Me,ce=Oe.getBoundingClientRect();Me=se===2?l.select("body").select("#MathJax_SVG_glyphs"):Se.select("defs"),Z(Se,Me,ce)}else f.log("There was an error in the tex syntax.",Q),Z();le.remove()};se===2?MathJax.Hub.Queue(function(){return re=f.extendDeepAll({},MathJax.Hub.config),ie=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:y},displayAlign:"left"})},function(){if((X=MathJax.Hub.config.menuSettings.renderer)!=="SVG")return MathJax.Hub.setRenderer("SVG")},pe,Te,function(){if(X!=="SVG")return MathJax.Hub.setRenderer(X)},function(){return ie!==void 0&&(MathJax.Hub.processSectionDelay=ie),MathJax.Hub.Config(re)}):se===3&&(re=f.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=y,(X=MathJax.config.startup.output)!=="svg"&&(MathJax.config.startup.output="svg"),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){pe(),Te(),X!=="svg"&&(MathJax.config.startup.output=X),MathJax.config=re}))}else f.warn("No MathJax version:",MathJax.version)})(L[2],U,function(Q,Y,Z){q.selectAll("svg."+H).remove(),q.selectAll("g."+H+"-group").remove();var X=Q&&Q.select("svg");if(!X||!X.node())return V(),void te();var re=q.append("g").classed(H+"-group",!0).attr({"pointer-events":"none","data-unformatted":G,"data-math":"Y"});re.node().appendChild(X.node()),Y&&Y.node()&&X.node().insertBefore(Y.node().cloneNode(!0),X.node().firstChild);var ie=Z.width,le=Z.height;X.attr({class:H,height:le,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var se=N.node().style.fill||"black",pe=X.select("g");pe.attr({fill:se,stroke:se});var Te=pe.node().getBoundingClientRect(),Se=Te.width,Oe=Te.height;(Se>ie||Oe>le)&&(X.style("overflow","hidden"),Se=(Te=X.node().getBoundingClientRect()).width,Oe=Te.height);var Me=+N.attr("x"),ce=+N.attr("y"),ye=-(ee||N.node().getBoundingClientRect().height)/4;if(H[0]==="y")re.attr({transform:"rotate("+[-90,Me,ce]+")"+s(-Se/2,ye-Oe/2)});else if(H[0]==="l")ce=ye-Oe/2;else if(H[0]==="a"&&H.indexOf("atitle")!==0)Me=0,ce=ye;else{var J=N.attr("text-anchor");Me-=Se*(J==="middle"?.5:J==="end"?1:0),ce=ce+ye-Oe/2}X.attr({x:Me,y:ce}),W&&W.call(N,re),te(re)})})):V(),N}function V(){q.empty()||(H=N.attr("class")+"-math",q.select("svg."+H).remove()),N.text("").style("white-space","pre");var te=function(ee,U){U=U.replace(w," ");var Q,Y=!1,Z=[],X=-1;function re(){X++;var ue=document.createElementNS(c.svg,"tspan");l.select(ue).attr({class:"line",dy:X*d+"em"}),ee.appendChild(ue),Q=ue;var ge=Z;if(Z=[{node:ue}],ge.length>1)for(var be=1;be doesnt match end tag <"+ue+">. Pretending it did match.",U),Q=Z[Z.length-1].node}else f.log("Ignoring unexpected end tag .",U)}M.test(U)?re():(Q=ee,Z=[{node:ee}]);for(var pe=U.split(k),Te=0;Te|>|>)/g,y=[["$","$"],["\\(","\\)"]],v={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},g={sub:"0.3em",sup:"-0.6em"},b={sub:"-0.21em",sup:"0.42em"},x="​",_=["http:","https:","mailto:","",void 0,":"],w=a.NEWLINES=/(\r\n?|\n)/g,k=/(<[^<>]*>)/,T=/<(\/?)([^ >]*)(\s+(.*))?>/i,M=//i;a.BR_TAG_ALL=//gi;var S=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,C=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,P=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,D=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function O(N,E){if(!N)return null;var W=N.match(E),G=W&&(W[3]||W[4]);return G&&z(G)}var R=/(^|;)\s*color:/;a.plainText=function(N,E){for(var W=(E=E||{}).len!==void 0&&E.len!==-1?E.len:1/0,G=E.allowedTags!==void 0?E.allowedTags:["br"],L=N.split(k),q=[],H="",V=0,te=0;te3?q.push(ee.substr(0,Z-3)+"..."):q.push(ee.substr(0,Z));break}H=""}}return q.join("")};var F={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},A=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function z(N){return N.replace(A,function(E,W){return(W.charAt(0)==="#"?function(G){if(!(G>1114111)){var L=String.fromCodePoint;if(L)return L(G);var q=String.fromCharCode;return G<=65535?q(G):q(55232+(G>>10),G%1024+56320)}}(W.charAt(1)==="x"?parseInt(W.substr(2),16):parseInt(W.substr(1),10)):F[W])||E})}function B(N){var E=encodeURI(decodeURI(N)),W=document.createElement("a"),G=document.createElement("a");W.href=N,G.href=E;var L=W.protocol,q=G.protocol;return _.indexOf(L)!==-1&&_.indexOf(q)!==-1?E:""}function $(N,E,W){var G,L,q,H=W.horizontalAlign,V=W.verticalAlign||"top",te=N.node().getBoundingClientRect(),ee=E.node().getBoundingClientRect();return L=V==="bottom"?function(){return te.bottom-G.height}:V==="middle"?function(){return te.top+(te.height-G.height)/2}:function(){return te.top},q=H==="right"?function(){return te.right-G.width}:H==="center"?function(){return te.left+(te.width-G.width)/2}:function(){return te.left},function(){G=this.node().getBoundingClientRect();var U=q()-ee.left,Q=L()-ee.top,Y=W.gd||{};if(W.gd){Y._fullLayout._calcInverseTransform(Y);var Z=f.apply3DTransform(Y._fullLayout._invTransform)(U,Q);U=Z[0],Q=Z[1]}return this.style({top:Q+"px",left:U+"px","z-index":1e3}),this}}a.convertEntities=z,a.sanitizeHTML=function(N){N=N.replace(w," ");for(var E=document.createElement("p"),W=E,G=[],L=N.split(k),q=0;qd.ts+s?m():d.timer=setTimeout(function(){m(),d.timer=null},s)},a.done=function(f){var s=n[f];return s&&s.timer?new Promise(function(c){var d=s.onDone;s.onDone=function(){d&&d(),c(),s.onDone=null}}):Promise.resolve()},a.clear=function(f){if(f)l(n[f]),delete n[f];else for(var s in n)a.clear(s)}},58163:function(o,a,n){var l=n(92770);o.exports=function(f,s){if(f>0)return Math.log(f)/Math.LN10;var c=Math.log(Math.min(s[0],s[1]))/Math.LN10;return l(c)||(c=Math.log(Math.max(s[0],s[1]))/Math.LN10-6),c}},37815:function(o){o.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},92177:function(o){o.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{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"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},14458:function(o,a,n){var l=n(73972);o.exports=function(f){for(var s,c,d=l.layoutArrayContainers,h=l.layoutArrayRegexes,p=f.split("[")[0],m=0;m0&&c.log("Clearing previous rejected promises from queue."),C._promises=[]},a.cleanLayout=function(C){var P,D;C||(C={}),C.xaxis1&&(C.xaxis||(C.xaxis=C.xaxis1),delete C.xaxis1),C.yaxis1&&(C.yaxis||(C.yaxis=C.yaxis1),delete C.yaxis1),C.scene1&&(C.scene||(C.scene=C.scene1),delete C.scene1);var O=(d.subplotsRegistry.cartesian||{}).attrRegex,R=(d.subplotsRegistry.polar||{}).attrRegex,F=(d.subplotsRegistry.ternary||{}).attrRegex,A=(d.subplotsRegistry.gl3d||{}).attrRegex,z=Object.keys(C);for(P=0;P3?(Z.x=1.02,Z.xanchor="left"):Z.x<-2&&(Z.x=-.02,Z.xanchor="right"),Z.y>3?(Z.y=1.02,Z.yanchor="bottom"):Z.y<-2&&(Z.y=-.02,Z.yanchor="top")),b(C),C.dragmode==="rotate"&&(C.dragmode="orbit"),p.clean(C),C.template&&C.template.layout&&a.cleanLayout(C.template.layout),C},a.cleanData=function(C){for(var P=0;P0)return C.substr(0,P)}a.hasParent=function(C,P){for(var D=M(P);D;){if(D in C)return!0;D=M(D)}return!1};var S=["x","y","z"];a.clearAxisTypes=function(C,P,D){for(var O=0;O1&&s.warn("Full array edits are incompatible with other edits",x);var C=v[""][""];if(p(C))y.set(null);else{if(!Array.isArray(C))return s.warn("Unrecognized full array edit value",x,C),!0;y.set(C)}return!T&&(_(M,S),w(m),!0)}var P,D,O,R,F,A,z,B,$=Object.keys(v).map(Number).sort(c),j=y.get(),N=j||[],E=b(S,x).get(),W=[],G=-1,L=N.length;for(P=0;P<$.length;P++)if(R=v[O=$[P]],F=Object.keys(R),A=R[""],z=h(A),O<0||O>N.length-(z?0:1))s.warn("index out of range",x,O);else if(A!==void 0)F.length>1&&s.warn("Insertion & removal are incompatible with edits to the same index.",x,O),p(A)?W.push(O):z?(A==="add"&&(A={}),N.splice(O,0,A),E&&E.splice(O,0,{})):s.warn("Unrecognized full object edit value",x,O,A),G===-1&&(G=O);else for(D=0;D=0;P--)N.splice(W[P],1),E&&E.splice(W[P],1);if(N.length?j||y.set(N):y.set(null),T)return!1;if(_(M,S),k!==f){var q;if(G===-1)q=$;else{for(L=Math.max(N.length,L),q=[],P=0;P<$.length&&!((O=$[P])>=G);P++)q.push(O);for(P=G;P=ue.data.length||ke<-ue.data.length)throw new Error(be+" must be valid indices for gd.data.");if(ge.indexOf(ke,we+1)>-1||ke>=0&&ge.indexOf(-ue.data.length+ke)>-1||ke<0&&ge.indexOf(ue.data.length+ke)>-1)throw new Error("each index in "+be+" must be unique.")}}function E(ue,ge,be){if(!Array.isArray(ue.data))throw new Error("gd.data must be an array.");if(ge===void 0)throw new Error("currentIndices is a required argument.");if(Array.isArray(ge)||(ge=[ge]),N(ue,ge,"currentIndices"),be===void 0||Array.isArray(be)||(be=[be]),be!==void 0&&N(ue,be,"newIndices"),be!==void 0&&ge.length!==be.length)throw new Error("current and new indices must be of equal length.")}function W(ue,ge,be,we,ke){(function(qe,Ye,at,lt){var ct=c.isPlainObject(lt);if(!Array.isArray(qe.data))throw new Error("gd.data must be an array");if(!c.isPlainObject(Ye))throw new Error("update must be a key:value object");if(at===void 0)throw new Error("indices must be an integer or array of integers");for(var bt in N(qe,at,"indices"),Ye){if(!Array.isArray(Ye[bt])||Ye[bt].length!==at.length)throw new Error("attribute "+bt+" must be an array of length equal to indices array length");if(ct&&(!(bt in lt)||!Array.isArray(lt[bt])||lt[bt].length!==Ye[bt].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}})(ue,ge,be,we);for(var Ae=function(qe,Ye,at,lt){var ct,bt,ze,Ne,Qe,it=c.isPlainObject(lt),kt=[];for(var Je in Array.isArray(at)||(at=[at]),at=j(at,qe.data.length-1),Ye)for(var ut=0;ut-1&&be.indexOf("grouptitlefont")===-1?De(be,be.replace("titlefont","title.font")):be.indexOf("titleposition")>-1?De(be,be.replace("titleposition","title.position")):be.indexOf("titleside")>-1?De(be,be.replace("titleside","title.side")):be.indexOf("titleoffset")>-1&&De(be,be.replace("titleoffset","title.offset")):De(be,be.replace("title","title.text"));function De(Re,Ie){ue[Ie]=ue[Re],delete ue[Re]}}function U(ue,ge,be){ue=c.getGraphDiv(ue),P.clearPromiseQueue(ue);var we={};if(typeof ge=="string")we[ge]=be;else{if(!c.isPlainObject(ge))return c.warn("Relayout fail.",ge,be),Promise.reject();we=c.extendFlat({},ge)}Object.keys(we).length&&(ue.changed=!0);var ke=ie(ue,we),Ae=ke.flags;Ae.calc&&(ue.calcdata=void 0);var Ee=[v.previousPromises];Ae.layoutReplot?Ee.push(D.layoutReplot):Object.keys(we).length&&(Q(ue,Ae,ke)||v.supplyDefaults(ue),Ae.legend&&Ee.push(D.doLegend),Ae.layoutstyle&&Ee.push(D.layoutStyles),Ae.axrange&&Y(Ee,ke.rangesAltered),Ae.ticks&&Ee.push(D.doTicksRelayout),Ae.modebar&&Ee.push(D.doModeBar),Ae.camera&&Ee.push(D.doCamera),Ae.colorbars&&Ee.push(D.doColorBars),Ee.push(A)),Ee.push(v.rehover,v.redrag,v.reselect),p.add(ue,U,[ue,ke.undoit],U,[ue,ke.redoit]);var De=c.syncOrAsync(Ee,ue);return De&&De.then||(De=Promise.resolve(ue)),De.then(function(){return ue.emit("plotly_relayout",ke.eventData),ue})}function Q(ue,ge,be){var we,ke,Ae=ue._fullLayout;if(!ge.axrange)return!1;for(var Ee in ge)if(Ee!=="axrange"&&ge[Ee])return!1;var De=function(Ye,at){return c.coerce(we,ke,x,Ye,at)},Re={};for(var Ie in be.rangesAltered){var Be=g.id2name(Ie);if(we=ue.layout[Be],ke=Ae[Be],b(we,ke,De,Re),ke._matchGroup){for(var Ue in ke._matchGroup)if(Ue!==Ie){var qe=Ae[g.id2name(Ue)];qe.autorange=ke.autorange,qe.range=ke.range.slice(),qe._input.range=ke.range.slice()}}}return!0}function Y(ue,ge){var be=ge?function(we){var ke=[];for(var Ae in ge){var Ee=g.getFromId(we,Ae);if(ke.push(Ae),(Ee.ticklabelposition||"").indexOf("inside")!==-1&&Ee._anchorAxis&&ke.push(Ee._anchorAxis._id),Ee._matchGroup)for(var De in Ee._matchGroup)ge[De]||ke.push(De)}return g.draw(we,ke,{skipTitle:!0})}:function(we){return g.draw(we,"redraw")};ue.push(M,D.doAutoRangeAndConstraints,be,D.drawData,D.finalDraw)}var Z=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,X=/^[xyz]axis[0-9]*\.autorange$/,re=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function ie(ue,ge){var be,we,ke,Ae=ue.layout,Ee=ue._fullLayout,De=Ee._guiEditing,Re=H(Ee._preGUI,De),Ie=Object.keys(ge),Be=g.list(ue),Ue=c.extendDeepAll({},ge),qe={};for(ee(ge),Ie=Object.keys(ge),we=0;we0&&typeof ut.parts[It]!="string";)It--;var Mt=ut.parts[It],zt=ut.parts[It-1]+"."+Mt,wt=ut.parts.slice(0,It).join("."),ve=d(ue.layout,wt).get(),_e=d(Ee,wt).get(),Ve=ut.get();if(pt!==void 0){bt[Je]=pt,ze[Je]=Mt==="reverse"?pt:q(Ve);var We=y.getLayoutValObject(Ee,ut.parts);if(We&&We.impliedEdits&&pt!==null)for(var Ze in We.impliedEdits)Ne(c.relativeAttr(Je,Ze),We.impliedEdits[Ze]);if(["width","height"].indexOf(Je)!==-1)if(pt){Ne("autosize",null);var Ge=Je==="height"?"width":"height";Ne(Ge,Ee[Ge])}else Ee[Je]=ue._initialAutoSize[Je];else if(Je==="autosize")Ne("width",pt?null:Ee.width),Ne("height",pt?null:Ee.height);else if(zt.match(Z))kt(zt),d(Ee,wt+"._inputRange").set(null);else if(zt.match(X)){kt(zt),d(Ee,wt+"._inputRange").set(null);var Ke=d(Ee,wt).get();Ke._inputDomain&&(Ke._input.domain=Ke._inputDomain.slice())}else zt.match(re)&&d(Ee,wt+"._inputDomain").set(null);if(Mt==="type"){Qe=ve;var nt=_e.type==="linear"&&pt==="log",st=_e.type==="log"&&pt==="linear";if(nt||st){if(Qe&&Qe.range)if(_e.autorange)nt&&(Qe.range=Qe.range[1]>Qe.range[0]?[1,2]:[2,1]);else{var mt=Qe.range[0],tt=Qe.range[1];nt?(mt<=0&&tt<=0&&Ne(wt+".autorange",!0),mt<=0?mt=tt/1e6:tt<=0&&(tt=mt/1e6),Ne(wt+".range[0]",Math.log(mt)/Math.LN10),Ne(wt+".range[1]",Math.log(tt)/Math.LN10)):(Ne(wt+".range[0]",Math.pow(10,mt)),Ne(wt+".range[1]",Math.pow(10,tt)))}else Ne(wt+".autorange",!0);Array.isArray(Ee._subplots.polar)&&Ee._subplots.polar.length&&Ee[ut.parts[0]]&&ut.parts[1]==="radialaxis"&&delete Ee[ut.parts[0]]._subplot.viewInitial["radialaxis.range"],m.getComponentMethod("annotations","convertCoords")(ue,_e,pt,Ne),m.getComponentMethod("images","convertCoords")(ue,_e,pt,Ne)}else Ne(wt+".autorange",!0),Ne(wt+".range",null);d(Ee,wt+"._inputRange").set(null)}else if(Mt.match(R)){var Ft=d(Ee,Je).get(),Vt=(pt||{}).type;Vt&&Vt!=="-"||(Vt="linear"),m.getComponentMethod("annotations","convertCoords")(ue,Ft,Vt,Ne),m.getComponentMethod("images","convertCoords")(ue,Ft,Vt,Ne)}var St=C.containerArrayMatch(Je);if(St){be=St.array,we=St.index;var Nt=St.property,Dt=We||{editType:"calc"};we!==""&&Nt===""&&(C.isAddVal(pt)?ze[Je]=null:C.isRemoveVal(pt)?ze[Je]=(d(Ae,be).get()||[])[we]:c.warn("unrecognized full object value",ge)),O.update(ct,Dt),qe[be]||(qe[be]={});var gt=qe[be][we];gt||(gt=qe[be][we]={}),gt[Nt]=pt,delete ge[Je]}else Mt==="reverse"?(ve.range?ve.range.reverse():(Ne(wt+".autorange",!0),ve.range=[1,0]),_e.autorange?ct.calc=!0:ct.plot=!0):(Je==="dragmode"&&(pt===!1&&Ve!==!1||pt!==!1&&Ve===!1)||Ee._has("scatter-like")&&Ee._has("regl")&&Je==="dragmode"&&(pt==="lasso"||pt==="select")&&Ve!=="lasso"&&Ve!=="select"||Ee._has("gl2d")?ct.plot=!0:We?O.update(ct,We):ct.calc=!0,ut.set(pt))}}for(be in qe)C.applyContainerArrayChanges(ue,Re(Ae,be),qe[be],ct,Re)||(ct.plot=!0);for(var ht in it){var yt=(Qe=g.getFromId(ue,ht))&&Qe._constraintGroup;if(yt)for(var qt in ct.calc=!0,yt)it[qt]||(g.getFromId(ue,qt)._constraintShrinkable=!0)}(le(ue)||ge.height||ge.width)&&(ct.plot=!0);var Et=Ee.shapes;for(we=0;we1;)if(we.pop(),(be=d(ge,we.join(".")+".uirevision").get())!==void 0)return be;return ge.uirevision}function ce(ue,ge){for(var be=0;be=ke.length?ke[0]:ke[Ie]:ke}function De(Ie){return Array.isArray(Ae)?Ie>=Ae.length?Ae[0]:Ae[Ie]:Ae}function Re(Ie,Be){var Ue=0;return function(){if(Ie&&++Ue===Be)return Ie()}}return we._frameWaitingCnt===void 0&&(we._frameWaitingCnt=0),new Promise(function(Ie,Be){function Ue(){ue.emit("plotly_animating"),we._lastFrameAt=-1/0,we._timeToNext=0,we._runningTransitions=0,we._currentFrame=null;var Je=function(){we._animationRaf=window.requestAnimationFrame(Je),Date.now()-we._lastFrameAt>we._timeToNext&&function(){we._currentFrame&&we._currentFrame.onComplete&&we._currentFrame.onComplete();var ut=we._currentFrame=we._frameQueue.shift();if(ut){var pt=ut.name?ut.name.toString():null;ue._fullLayout._currentFrame=pt,we._lastFrameAt=Date.now(),we._timeToNext=ut.frameOpts.duration,v.transition(ue,ut.frame.data,ut.frame.layout,P.coerceTraceIndices(ue,ut.frame.traces),ut.frameOpts,ut.transitionOpts).then(function(){ut.onComplete&&ut.onComplete()}),ue.emit("plotly_animatingframe",{name:pt,frame:ut.frame,animation:{frame:ut.frameOpts,transition:ut.transitionOpts}})}else ue.emit("plotly_animated"),window.cancelAnimationFrame(we._animationRaf),we._animationRaf=null}()};Je()}var qe,Ye,at=0;function lt(Je){return Array.isArray(ke)?at>=ke.length?Je.transitionOpts=ke[at]:Je.transitionOpts=ke[0]:Je.transitionOpts=ke,at++,Je}var ct=[],bt=ge==null,ze=Array.isArray(ge);if(bt||ze||!c.isPlainObject(ge)){if(bt||["string","number"].indexOf(typeof ge)!==-1)for(qe=0;qe0&&itit)&&kt.push(Ye);ct=kt}}ct.length>0?function(Je){if(Je.length!==0){for(var ut=0;ut=0;we--)if(c.isPlainObject(ge[we])){var qe=ge[we].name,Ye=(Re[qe]||Ue[qe]||{}).name,at=ge[we].name,lt=Re[Ye]||Ue[Ye];Ye&&at&&typeof at=="number"&<&&F<5&&(F++,c.warn('addFrames: overwriting frame "'+(Re[Ye]||Ue[Ye]).name+'" with a frame whose name of type "number" also equates to "'+Ye+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),F===5&&c.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),Ue[qe]={name:qe},Be.push({frame:v.supplyFrameDefaults(ge[we]),index:be&&be[we]!==void 0&&be[we]!==null?be[we]:Ie+we})}Be.sort(function(Je,ut){return Je.index>ut.index?-1:Je.index=0;we--){if(typeof(ke=Be[we].frame).name=="number"&&c.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!ke.name)for(;Re[ke.name="frame "+ue._transitionData._counter++];);if(Re[ke.name]){for(Ae=0;Ae=0;be--)we=ge[be],Ae.push({type:"delete",index:we}),Ee.unshift({type:"insert",index:we,value:ke[we]});var De=v.modifyFrames,Re=v.modifyFrames,Ie=[ue,Ee],Be=[ue,Ae];return p&&p.add(ue,De,Ie,Re,Be),v.modifyFrames(ue,Ae)},a.addTraces=function ue(ge,be,we){ge=c.getGraphDiv(ge);var ke,Ae,Ee=[],De=a.deleteTraces,Re=ue,Ie=[ge,Ee],Be=[ge,be];for(function(Ue,qe,Ye){var at,lt;if(!Array.isArray(Ue.data))throw new Error("gd.data must be an array.");if(qe===void 0)throw new Error("traces must be defined.");for(Array.isArray(qe)||(qe=[qe]),at=0;at=0&&Be=0&&Be=$.length)return!1;if(R.dimensions===2){if(A++,F.length===A)return R;var j=F[A];if(!S(j))return!1;R=$[B][j]}else R=$[B]}else R=$}}return R}function S(R){return R===Math.round(R)&&R>=0}function C(){var R,F,A={};for(R in y(A,c),l.subplotsRegistry)if((F=l.subplotsRegistry[R]).layoutAttributes)if(Array.isArray(F.attr))for(var z=0;z=j.length)return!1;z=(A=(l.transformsRegistry[j[N].type]||{}).attributes)&&A[F[2]],$=3}else{var E=R._module;if(E||(E=(l.modules[R.type||s.type.dflt]||{})._module),!E)return!1;if(!(z=(A=E.attributes)&&A[B])){var W=E.basePlotModule;W&&W.attributes&&(z=W.attributes[B])}z||(z=s[B])}return M(z,F,$)},a.getLayoutValObject=function(R,F){var A=function(z,B){var $,j,N,E,W=z._basePlotModules;if(W){var G;for($=0;$=v&&(y._input||{})._templateitemname;b&&(g=v);var x,_=m+"["+g+"]";function w(){x={},b&&(x[_]={},x[_][s]=b)}function k(M,S){b?l.nestedProperty(x[_],M).set(S):x[_+"."+M]=S}function T(){var M=x;return w(),M}return w(),{modifyBase:function(M,S){x[M]=S},modifyItem:k,getUpdateObj:T,applyUpdate:function(M,S){M&&k(M,S);var C=T();for(var P in C)l.nestedProperty(p,P).set(C[P])}}}},61549:function(o,a,n){var l=n(39898),f=n(73972),s=n(74875),c=n(71828),d=n(63893),h=n(33306),p=n(7901),m=n(91424),y=n(92998),v=n(64168),g=n(89298),b=n(18783),x=n(99082),_=x.enforce,w=x.clean,k=n(71739).doAutoRange,T="start";function M(O,R,F){for(var A=0;A=O[1]||z[1]<=O[0])&&B[0]R[0])return!0}return!1}function S(O){var R,F,A,z,B,$,j=O._fullLayout,N=j._size,E=N.p,W=g.list(O,"",!0);if(j._paperdiv.style({width:O._context.responsive&&j.autosize&&!O._context._hasZeroWidth&&!O.layout.width?"100%":j.width+"px",height:O._context.responsive&&j.autosize&&!O._context._hasZeroHeight&&!O.layout.height?"100%":j.height+"px"}).selectAll(".main-svg").call(m.setSize,j.width,j.height),O._context.setBackground(O,j.paper_bgcolor),a.drawMainTitle(O),v.manage(O),!j._has("cartesian"))return s.previousPromises(O);function G(Ie,Be,Ue){var qe=Ie._lw/2;return Ie._id.charAt(0)==="x"?Be?Ue==="top"?Be._offset-E-qe:Be._offset+Be._length+E+qe:N.t+N.h*(1-(Ie.position||0))+qe%1:Be?Ue==="right"?Be._offset+Be._length+E+qe:Be._offset-E-qe:N.l+N.w*(Ie.position||0)+qe%1}for(R=0;R.5?"t":"b",ee=G._fullLayout.margin[te],U=0;return L.yref==="paper"?U=q+L.pad.t+L.pad.b:L.yref==="container"&&(U=function(Q,Y,Z,X,re){var ie=0;return Z==="middle"&&(ie+=re/2),Q==="t"?(Z==="top"&&(ie+=re),ie+=X-Y*X):(Z==="bottom"&&(ie+=re),ie+=Y*X),ie}(te,H,V,G._fullLayout.height,q)+L.pad.t+L.pad.b),U>ee?U:0}(O,F,E);W>0&&(function(G,L,q,H){var V="title.automargin",te=G._fullLayout.title,ee=te.y>.5?"t":"b",U={x:te.x,y:te.y,t:0,b:0},Q={};te.yref==="paper"&&function(Y,Z,X,re,ie){var le=Z.yref==="paper"?Y._fullLayout._size.h:Y._fullLayout.height,se=c.isTopAnchor(Z)?re:re-ie,pe=X==="b"?le-se:se;return!(c.isTopAnchor(Z)&&X==="t"||c.isBottomAnchor(Z)&&X==="b")&&peN?D.push({code:"unused",traceType:A,templateCount:j,dataCount:N}):N>j&&D.push({code:"reused",traceType:A,templateCount:j,dataCount:N})}}else D.push({code:"data"});if(function E(W,G){for(var L in W)if(L.charAt(0)!=="_"){var q=W[L],H=x(W,L,G);f(q)?(Array.isArray(W)&&q._template===!1&&q.templateitemname&&D.push({code:"missing",path:H,templateitemname:q.templateitemname}),E(q,H)):Array.isArray(q)&&_(q)&&E(q,H)}}({data:R,layout:O},""),D.length)return D.map(w)}},403:function(o,a,n){var l=n(92770),f=n(72391),s=n(74875),c=n(71828),d=n(25095),h=n(5900),p=n(70942),m=n(11506).version,y={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};o.exports=function(v,g){var b,x,_,w;function k(N){return!(N in g)||c.validate(g[N],y[N])}if(g=g||{},c.isPlainObject(v)?(b=v.data||[],x=v.layout||{},_=v.config||{},w={}):(v=c.getGraphDiv(v),b=c.extendDeep([],v.data),x=c.extendDeep({},v.layout),_=v._context,w=v._fullLayout||{}),!k("width")&&g.width!==null||!k("height")&&g.height!==null)throw new Error("Height and width should be pixel values.");if(!k("format"))throw new Error("Export format is not "+c.join2(y.format.values,", "," or ")+".");var T={};function M(N,E){return c.coerce(g,T,y,N,E)}var S=M("format"),C=M("width"),P=M("height"),D=M("scale"),O=M("setBackground"),R=M("imageDataOnly"),F=document.createElement("div");F.style.position="absolute",F.style.left="-5000px",document.body.appendChild(F);var A=c.extendFlat({},x);C?A.width=C:g.width===null&&l(w.width)&&(A.width=w.width),P?A.height=P:g.height===null&&l(w.height)&&(A.height=w.height);var z=c.extendFlat({},_,{_exportedPlot:!0,staticPlot:!0,setBackground:O}),B=d.getRedrawFunc(F);function $(){return new Promise(function(N){setTimeout(N,d.getDelay(F._fullLayout))})}function j(){return new Promise(function(N,E){var W=h(F,S,D),G=F._fullLayout.width,L=F._fullLayout.height;function q(){f.purge(F),document.body.removeChild(F)}if(S==="full-json"){var H=s.graphJson(F,!1,"keepdata","object",!0,!0);return H.version=m,H=JSON.stringify(H),q(),N(R?H:d.encodeJSON(H))}if(q(),S==="svg")return N(R?W:d.encodeSVG(W));var V=document.createElement("canvas");V.id=c.randstr(),p({format:S,width:G,height:L,scale:D,canvas:V,svg:W,promise:!0}).then(N).catch(E)})}return new Promise(function(N,E){f.newPlot(F,b,A,z).then(B).then($).then(j).then(function(W){N(function(G){return R?G.replace(d.IMAGE_URL_PREFIX,""):G}(W))}).catch(function(W){E(W)})})}},84936:function(o,a,n){var l=n(71828),f=n(74875),s=n(86281),c=n(72075).dfltConfig,d=l.isPlainObject,h=Array.isArray,p=l.isArrayOrTypedArray;function m(k,T,M,S,C,P){P=P||[];for(var D=Object.keys(k),O=0;Oz.length&&S.push(g("unused",C,F.concat(z.length)));var W,G,L,q,H,V=z.length,te=Array.isArray(E);if(te&&(V=Math.min(V,E.length)),B.dimensions===2)for(G=0;Gz[G].length&&S.push(g("unused",C,F.concat(G,z[G].length)));var ee=z[G].length;for(W=0;W<(te?Math.min(ee,E[G].length):ee);W++)L=te?E[G][W]:E,q=A[G][W],H=z[G][W],l.validate(q,L)?H!==q&&H!==+q&&S.push(g("dynamic",C,F.concat(G,W),q,H)):S.push(g("value",C,F.concat(G,W),q))}else S.push(g("array",C,F.concat(G),A[G]));else for(G=0;G1&&P.push(g("object","layout"))),f.supplyDefaults(D);for(var O=D._fullData,R=M.length,F=0;F0&&Math.round(x)===x))return{vals:y};g=x}for(var _=p.calendar,w=v==="start",k=v==="end",T=h[m+"period0"],M=s(T,_)||0,S=[],C=[],P=[],D=y.length,O=0;Oz;)A=c(A,-g,_);for(;A<=z;)A=c(A,g,_);F=c(A,-g,_)}else{for(A=M+(R=Math.round((z-M)/b))*b;A>z;)A-=b;for(;A<=z;)A+=b;F=A-b}S[O]=w?F:k?A:(F+A)/2,C[O]=F,P[O]=A}return{vals:S,starts:C,ends:P}}},89502:function(o){o.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},71739:function(o,a,n){var l=n(39898),f=n(92770),s=n(71828),c=n(50606).FP_SAFE,d=n(73972),h=n(91424),p=n(41675),m=p.getFromId,y=p.isLinked;function v(O,R){var F,A,z=[],B=O._fullLayout,$=b(B,R,0),j=b(B,R,1),N=_(O,R),E=N.min,W=N.max;if(E.length===0||W.length===0)return s.simpleMap(R.range,R.r2l);var G=E[0].val,L=W[0].val;for(F=1;F0&&((Y=le-$(te)-j(ee))>se?Z/Y>pe&&(U=te,Q=ee,pe=Z/Y):Z/le>pe&&(U={val:te.val,nopad:1},Q={val:ee.val,nopad:1},pe=Z/le));if(G===L){var Te=G-1,Se=G+1;if(re)if(G===0)z=[0,1];else{var Oe=(G>0?W:E).reduce(function(ce,ye){return Math.max(ce,j(ye))},0),Me=G/(1-Math.min(.5,Oe/le));z=G>0?[0,Me]:[Me,0]}else z=ie?[Math.max(0,Te),Math.max(1,Se)]:[Te,Se]}else re?(U.val>=0&&(U={val:0,nopad:1}),Q.val<=0&&(Q={val:0,nopad:1})):ie&&(U.val-pe*$(U)<0&&(U={val:0,nopad:1}),Q.val<=0&&(Q={val:1,nopad:1})),pe=(Q.val-U.val-g(R,te.val,ee.val))/(le-$(U)-j(Q)),z=[U.val-pe*$(U),Q.val+pe*j(Q)];return z=D(z,R),R.limitRange&&R.limitRange(),H&&z.reverse(),s.simpleMap(z,R.l2r||Number)}function g(O,R,F){var A=0;if(O.rangebreaks)for(var z=O.locateBreaks(R,F),B=0;B0?F.ppadplus:F.ppadminus)||F.ppad||0),X=Y((O._m>0?F.ppadminus:F.ppadplus)||F.ppad||0),re=Y(F.vpadplus||F.vpad),ie=Y(F.vpadminus||F.vpad);if(!U){if(W=1/0,G=-1/0,ee)for(A=0;A0&&(W=z),z>G&&z-c&&(W=z),z>G&&z=pe;A--)se(A);return{min:L,max:q,opts:F}},concatExtremes:_};var x=3;function _(O,R,F){var A,z,B,$=R._id,j=O._fullData,N=O._fullLayout,E=[],W=[];function G(te,ee){for(A=0;A=F&&(E.extrapad||!$)){j=!1;break}z(R,E.val)&&E.pad<=F&&($||!E.extrapad)&&(O.splice(N,1),N--)}if(j){var W=B&&R===0;O.push({val:R,pad:W?0:F,extrapad:!W&&$})}}function M(O){return f(O)&&Math.abs(O)=R}function P(O,R,F){return R===void 0||F===void 0||(R=O.d2l(R))=N&&(B=N,F=N),$<=N&&($=N,A=N)}}return F=function(E,W){var G=W.autorangeoptions;return G&&G.minallowed!==void 0&&P(W,G.minallowed,G.maxallowed)?G.minallowed:G&&G.clipmin!==void 0&&P(W,G.clipmin,G.clipmax)?Math.max(E,W.d2l(G.clipmin)):E}(F,R),A=function(E,W){var G=W.autorangeoptions;return G&&G.maxallowed!==void 0&&P(W,G.minallowed,G.maxallowed)?G.maxallowed:G&&G.clipmax!==void 0&&P(W,G.clipmin,G.clipmax)?Math.min(E,W.d2l(G.clipmax)):E}(A,R),[F,A]}},23074:function(o){o.exports=function(a,n,l){var f,s;if(l){var c=n==="reversed"||n==="min reversed"||n==="max reversed";f=l[c?1:0],s=l[c?0:1]}var d=a("autorangeoptions.minallowed",s===null?f:void 0),h=a("autorangeoptions.maxallowed",f===null?s:void 0);d===void 0&&a("autorangeoptions.clipmin"),h===void 0&&a("autorangeoptions.clipmax"),a("autorangeoptions.include")}},89298:function(o,a,n){var l=n(39898),f=n(92770),s=n(74875),c=n(73972),d=n(71828),h=d.strTranslate,p=n(63893),m=n(92998),y=n(7901),v=n(91424),g=n(13838),b=n(66287),x=n(50606),_=x.ONEMAXYEAR,w=x.ONEAVGYEAR,k=x.ONEMINYEAR,T=x.ONEMAXQUARTER,M=x.ONEAVGQUARTER,S=x.ONEMINQUARTER,C=x.ONEMAXMONTH,P=x.ONEAVGMONTH,D=x.ONEMINMONTH,O=x.ONEWEEK,R=x.ONEDAY,F=R/2,A=x.ONEHOUR,z=x.ONEMIN,B=x.ONESEC,$=x.MINUS_SIGN,j=x.BADNUM,N={K:"zeroline"},E={K:"gridline",L:"path"},W={K:"minor-gridline",L:"path"},G={K:"tick",L:"path"},L={K:"tick",L:"text"},q={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},H=n(18783),V=H.MID_SHIFT,te=H.CAP_SHIFT,ee=H.LINE_SPACING,U=H.OPPOSITE_SIDE,Q=o.exports={};Q.setConvert=n(21994);var Y=n(4322),Z=n(41675),X=Z.idSort,re=Z.isLinked;Q.id2name=Z.id2name,Q.name2id=Z.name2id,Q.cleanId=Z.cleanId,Q.list=Z.list,Q.listIds=Z.listIds,Q.getFromId=Z.getFromId,Q.getFromTrace=Z.getFromTrace;var ie=n(71739);Q.getAutoRange=ie.getAutoRange,Q.findExtremes=ie.findExtremes;var le=1e-4;function se(ve){var _e=(ve[1]-ve[0])*le;return[ve[0]-_e,ve[1]+_e]}Q.coerceRef=function(ve,_e,Ve,We,Ze,Ge){var Ke=We.charAt(We.length-1),nt=Ve._fullLayout._subplots[Ke+"axis"],st=We+"ref",mt={};return Ze||(Ze=nt[0]||(typeof Ge=="string"?Ge:Ge[0])),Ge||(Ge=Ze),nt=nt.concat(nt.map(function(tt){return tt+" domain"})),mt[st]={valType:"enumerated",values:nt.concat(Ge?typeof Ge=="string"?[Ge]:Ge:[]),dflt:Ze},d.coerce(ve,_e,mt,st)},Q.getRefType=function(ve){return ve===void 0?ve:ve==="paper"?"paper":ve==="pixel"?"pixel":/( domain)$/.test(ve)?"domain":"range"},Q.coercePosition=function(ve,_e,Ve,We,Ze,Ge){var Ke,nt;if(Q.getRefType(We)!=="range")Ke=d.ensureNumber,nt=Ve(Ze,Ge);else{var st=Q.getFromId(_e,We);nt=Ve(Ze,Ge=st.fraction2r(Ge)),Ke=st.cleanPos}ve[Ze]=Ke(nt)},Q.cleanPosition=function(ve,_e,Ve){return(Ve==="paper"||Ve==="pixel"?d.ensureNumber:Q.getFromId(_e,Ve).cleanPos)(ve)},Q.redrawComponents=function(ve,_e){_e=_e||Q.listIds(ve);var Ve=ve._fullLayout;function We(Ze,Ge,Ke,nt){for(var st=c.getComponentMethod(Ze,Ge),mt={},tt=0;tt<_e.length;tt++)for(var Ft=Ve[Q.id2name(_e[tt])][Ke],Vt=0;VtVe&&tt2e-6||((Ve-ve._forceTick0)/ve._minDtick%1+1.000001)%1>2e-6)&&(ve._minDtick=0)):ve._minDtick=0},Q.saveRangeInitial=function(ve,_e){for(var Ve=Q.list(ve,"",!0),We=!1,Ze=0;Ze.3*$t||Lt(qt)||Lt(Et))){var Yt=yt.dtick/2;gt+=gt+Yt.8){var Tt=Number(yt.substr(1));jt.exactYears>.8&&Tt%12==0?gt=Q.tickIncrement(gt,"M6","reverse")+1.5*R:jt.exactMonths>.8?gt=Q.tickIncrement(gt,"M1","reverse")+15.5*R:gt-=F;var Ot=Q.tickIncrement(gt,yt);if(Ot<=qt)return Ot}return gt}(Dt,ve,Nt,nt,Ze)),St=Dt;St<=st;)St=Q.tickIncrement(St,Nt,!1,Ze);return{start:_e.c2r(Dt,0,Ze),end:_e.c2r(St,0,Ze),size:Nt,_dataSpan:st-nt}},Q.prepMinorTicks=function(ve,_e,Ve){if(!_e.minor.dtick){delete ve.dtick;var We,Ze=_e.dtick&&f(_e._tmin);if(Ze){var Ge=Q.tickIncrement(_e._tmin,_e.dtick,!0);We=[_e._tmin,.99*Ge+.01*_e._tmin]}else{var Ke=d.simpleMap(_e.range,_e.r2l);We=[Ke[0],.8*Ke[0]+.2*Ke[1]]}if(ve.range=d.simpleMap(We,_e.l2r),ve._isMinor=!0,Q.prepTicks(ve,Ve),Ze){var nt=f(_e.dtick),st=f(ve.dtick),mt=nt?_e.dtick:+_e.dtick.substring(1),tt=st?ve.dtick:+ve.dtick.substring(1);nt&&st?Oe(mt,tt)?mt===2*O&&tt===2*R&&(ve.dtick=O):mt===2*O&&tt===3*R?ve.dtick=O:mt!==O||(_e._input.minor||{}).nticks?Me(mt/tt,2.5)?ve.dtick=mt/2:ve.dtick=mt:ve.dtick=R:String(_e.dtick).charAt(0)==="M"?st?ve.dtick="M1":Oe(mt,tt)?mt>=12&&tt===2&&(ve.dtick="M3"):ve.dtick=_e.dtick:String(ve.dtick).charAt(0)==="L"?String(_e.dtick).charAt(0)==="L"?Oe(mt,tt)||(ve.dtick=Me(mt/tt,2.5)?_e.dtick/2:_e.dtick):ve.dtick="D1":ve.dtick==="D2"&&+_e.dtick>1&&(ve.dtick=1)}ve.range=_e.range}_e.minor._tick0Init===void 0&&(ve.tick0=_e.tick0)},Q.prepTicks=function(ve,_e){var Ve=d.simpleMap(ve.range,ve.r2l,void 0,void 0,_e);if(ve.tickmode==="auto"||!ve.dtick){var We,Ze=ve.nticks;Ze||(ve.type==="category"||ve.type==="multicategory"?(We=ve.tickfont?d.bigFont(ve.tickfont.size||12):15,Ze=ve._length/We):(We=ve._id.charAt(0)==="y"?40:80,Ze=d.constrain(ve._length/We,4,9)+1),ve._name==="radialaxis"&&(Ze*=2)),ve.minor&&ve.minor.tickmode!=="array"||ve.tickmode==="array"&&(Ze*=100),ve._roughDTick=Math.abs(Ve[1]-Ve[0])/Ze,Q.autoTicks(ve,ve._roughDTick),ve._minDtick>0&&ve.dtick<2*ve._minDtick&&(ve.dtick=ve._minDtick,ve.tick0=ve.l2r(ve._forceTick0))}ve.ticklabelmode==="period"&&function(Ge){var Ke;function nt(){return!(f(Ge.dtick)||Ge.dtick.charAt(0)!=="M")}var st=nt(),mt=Q.getTickFormat(Ge);if(mt){var tt=Ge._dtickInit!==Ge.dtick;/%[fLQsSMX]/.test(mt)||(/%[HI]/.test(mt)?(Ke=A,tt&&!st&&Ge.dtick=(ht?0:1);yt--){var qt=!yt;yt?(ve._dtickInit=ve.dtick,ve._tick0Init=ve.tick0):(ve.minor._dtickInit=ve.minor.dtick,ve.minor._tick0Init=ve.minor.tick0);var Et=yt?ve:d.extendFlat({},ve,ve.minor);if(qt?Q.prepMinorTicks(Et,ve,_e):Q.prepTicks(Et,_e),Et.tickmode!=="array")if(Et.tickmode!=="sync"){var jt=se(st),Tt=jt[0],Ot=jt[1],At=f(Et.dtick),Lt=Ze==="log"&&!(At||Et.dtick.charAt(0)==="L"),Rt=Q.tickFirst(Et,_e);if(yt){if(ve._tmin=Rt,Rt=Ot:Bt<=Ot;Bt=Q.tickIncrement(Bt,Wt,mt,Ge)){if(yt&&$t++,Et.rangebreaks&&!mt){if(Bt=Ft)break}if(Dt.length>Vt||Bt===Xt)break;Xt=Bt;var tn={value:Bt};yt?(Lt&&Bt!==(0|Bt)&&(tn.simpleLabel=!0),Ke>1&&$t%Ke&&(tn.skipLabel=!0),Dt.push(tn)):(tn.minor=!0,gt.push(tn))}}else Dt=[],St=J(ve);else yt?(Dt=[],St=ne(ve)):(gt=[],Nt=ne(ve))}if(ht&&!(ve.minor.ticks==="inside"&&ve.ticks==="outside"||ve.minor.ticks==="outside"&&ve.ticks==="inside")){for(var cn=Dt.map(function(lr){return lr.value}),ln=[],an=0;an0?(oa=ur-1,On=ur):(oa=ur,On=ur);var on,$n=lr[oa].value,Pr=lr[On].value,Ln=Math.abs(Pr-$n),Bn=Ar||Ln,jn=0;Bn>=k?jn=Ln>=k&&Ln<=_?Ln:w:Ar===M&&Bn>=S?jn=Ln>=S&&Ln<=T?Ln:M:Bn>=D?jn=Ln>=D&&Ln<=C?Ln:P:Ar===O&&Bn>=O?jn=O:Bn>=R?jn=R:Ar===F&&Bn>=F?jn=F:Ar===A&&Bn>=A&&(jn=A),jn>=Ln&&(jn=Ln,on=!0);var Un=kr+jn;if(ni.rangebreaks&&jn>0){for(var Lr=0,br=0;br<84;br++){var Mr=(br+.5)/84;ni.maskBreaks(kr*(1-Mr)+Mr*Un)!==j&&Lr++}(jn*=Lr/84)||(lr[ur].drop=!0),on&&Ln>O&&(jn=Ln)}(jn>0||ur===0)&&(lr[ur].periodX=kr+jn/2)}}(Dt,ve,ve._definedDelta),ve.rangebreaks){var Kt=ve._id.charAt(0)==="y",Cn=1;ve.tickmode==="auto"&&(Cn=ve.tickfont?ve.tickfont.size:12);var _n=NaN;for(Ve=Dt.length-1;Ve>-1;Ve--)if(Dt[Ve].drop)Dt.splice(Ve,1);else{Dt[Ve].value=It(Dt[Ve].value,ve);var Pn=ve.c2p(Dt[Ve].value);(Kt?_n>Pn-Cn:_nFt||DnFt&&(xn.periodX=Ft),Dn10||We.substr(5)!=="01-01"?ve._tickround="d":ve._tickround=+_e.substr(1)%12==0?"y":"m";else if(_e>=R&&Ze<=10||_e>=15*R)ve._tickround="d";else if(_e>=z&&Ze<=16||_e>=A)ve._tickround="M";else if(_e>=B&&Ze<=19||_e>=z)ve._tickround="S";else{var Ge=ve.l2r(Ve+_e).replace(/^-/,"").length;ve._tickround=Math.max(Ze,Ge)-20,ve._tickround<0&&(ve._tickround=4)}}else if(f(_e)||_e.charAt(0)==="L"){var Ke=ve.range.map(ve.r2d||Number);f(_e)||(_e=Number(_e.substr(1))),ve._tickround=2-Math.floor(Math.log(_e)/Math.LN10+.01);var nt=Math.max(Math.abs(Ke[0]),Math.abs(Ke[1])),st=Math.floor(Math.log(nt)/Math.LN10+.01),mt=ve.minexponent===void 0?3:ve.minexponent;Math.abs(st)>mt&&(Ie(ve.exponentformat)&&!Be(st)?ve._tickexponent=3*Math.round((st-1)/3):ve._tickexponent=st)}else ve._tickround=null}function De(ve,_e,Ve){var We=ve.tickfont||{};return{x:_e,dx:0,dy:0,text:Ve||"",fontSize:We.size,font:We.family,fontColor:We.color}}Q.autoTicks=function(ve,_e,Ve){var We;function Ze(Ft){return Math.pow(Ft,Math.floor(Math.log(_e)/Math.LN10))}if(ve.type==="date"){ve.tick0=d.dateTick0(ve.calendar,0);var Ge=2*_e;if(Ge>w)_e/=w,We=Ze(10),ve.dtick="M"+12*Ae(_e,We,de);else if(Ge>P)_e/=P,ve.dtick="M"+Ae(_e,1,xe);else if(Ge>R){if(ve.dtick=Ae(_e,R,ve._hasDayOfWeekBreaks?[1,2,7,14]:ge),!Ve){var Ke=Q.getTickFormat(ve),nt=ve.ticklabelmode==="period";nt&&(ve._rawTick0=ve.tick0),/%[uVW]/.test(Ke)?ve.tick0=d.dateTick0(ve.calendar,2):ve.tick0=d.dateTick0(ve.calendar,1),nt&&(ve._dowTick0=ve.tick0)}}else Ge>A?ve.dtick=Ae(_e,A,xe):Ge>z?ve.dtick=Ae(_e,z,ue):Ge>B?ve.dtick=Ae(_e,B,ue):(We=Ze(10),ve.dtick=Ae(_e,We,de))}else if(ve.type==="log"){ve.tick0=0;var st=d.simpleMap(ve.range,ve.r2l);if(ve._isMinor&&(_e*=1.5),_e>.7)ve.dtick=Math.ceil(_e);else if(Math.abs(st[1]-st[0])<1){var mt=1.5*Math.abs((st[1]-st[0])/_e);_e=Math.abs(Math.pow(10,st[1])-Math.pow(10,st[0]))/mt,We=Ze(10),ve.dtick="L"+Ae(_e,We,de)}else ve.dtick=_e>.3?"D2":"D1"}else ve.type==="category"||ve.type==="multicategory"?(ve.tick0=0,ve.dtick=Math.ceil(Math.max(_e,1))):pt(ve)?(ve.tick0=0,We=1,ve.dtick=Ae(_e,We,ke)):(ve.tick0=0,We=Ze(10),ve.dtick=Ae(_e,We,de));if(ve.dtick===0&&(ve.dtick=1),!f(ve.dtick)&&typeof ve.dtick!="string"){var tt=ve.dtick;throw ve.dtick=1,"ax.dtick error: "+String(tt)}},Q.tickIncrement=function(ve,_e,Ve,We){var Ze=Ve?-1:1;if(f(_e))return d.increment(ve,Ze*_e);var Ge=_e.charAt(0),Ke=Ze*Number(_e.substr(1));if(Ge==="M")return d.incrementMonth(ve,Ke,We);if(Ge==="L")return Math.log(Math.pow(10,ve)+Ke)/Math.LN10;if(Ge==="D"){var nt=_e==="D2"?we:be,st=ve+.01*Ze,mt=d.roundUp(d.mod(st,1),nt,Ve);return Math.floor(st)+Math.log(l.round(Math.pow(10,mt),1))/Math.LN10}throw"unrecognized dtick "+String(_e)},Q.tickFirst=function(ve,_e){var Ve=ve.r2l||Number,We=d.simpleMap(ve.range,Ve,void 0,void 0,_e),Ze=We[1] ")}else gt._prevDateHead=Tt,Ot+="
"+Tt;ht.text=Ot}(ve,Ge,Ve,nt):st==="log"?function(gt,ht,yt,qt,Et){var jt=gt.dtick,Tt=ht.x,Ot=gt.tickformat,At=typeof jt=="string"&&jt.charAt(0);if(Et==="never"&&(Et=""),qt&&At!=="L"&&(jt="L3",At="L"),Ot||At==="L")ht.text=Ue(Math.pow(10,Tt),gt,Et,qt);else if(f(jt)||At==="D"&&d.mod(Tt+.01,1)<.1){var Lt=Math.round(Tt),Rt=Math.abs(Lt),$t=gt.exponentformat;$t==="power"||Ie($t)&&Be(Lt)?(ht.text=Lt===0?1:Lt===1?"10":"10"+(Lt>1?"":$)+Rt+"",ht.fontSize*=1.25):($t==="e"||$t==="E")&&Rt>2?ht.text="1"+$t+(Lt>0?"+":$)+Rt:(ht.text=Ue(Math.pow(10,Tt),gt,"","fakehover"),jt==="D1"&>._id.charAt(0)==="y"&&(ht.dy-=ht.fontSize/6))}else{if(At!=="D")throw"unrecognized dtick "+String(jt);ht.text=String(Math.round(Math.pow(10,d.mod(Tt,1)))),ht.fontSize*=.75}if(gt.dtick==="D1"){var Yt=String(ht.text).charAt(0);Yt!=="0"&&Yt!=="1"||(gt._id.charAt(0)==="y"?ht.dx-=ht.fontSize/4:(ht.dy+=ht.fontSize/2,ht.dx+=(gt.range[1]>gt.range[0]?1:-1)*ht.fontSize*(Tt<0?.5:.25)))}}(ve,Ge,0,nt,St):st==="category"?function(gt,ht){var yt=gt._categories[Math.round(ht.x)];yt===void 0&&(yt=""),ht.text=String(yt)}(ve,Ge):st==="multicategory"?function(gt,ht,yt){var qt=Math.round(ht.x),Et=gt._categories[qt]||[],jt=Et[1]===void 0?"":String(Et[1]),Tt=Et[0]===void 0?"":String(Et[0]);yt?ht.text=Tt+" - "+jt:(ht.text=jt,ht.text2=Tt)}(ve,Ge,Ve):pt(ve)?function(gt,ht,yt,qt,Et){if(gt.thetaunit!=="radians"||yt)ht.text=Ue(ht.x,gt,Et,qt);else{var jt=ht.x/180;if(jt===0)ht.text="0";else{var Tt=function(At){function Lt(Xt,Bt){return Math.abs(Xt-Bt)<=1e-6}var Rt=function(Xt){for(var Bt=1;!Lt(Math.round(Xt*Bt)/Bt,Xt);)Bt*=10;return Bt}(At),$t=At*Rt,Yt=Math.abs(function Xt(Bt,Wt){return Lt(Wt,0)?Bt:Xt(Wt,Bt%Wt)}($t,Rt));return[Math.round($t/Yt),Math.round(Rt/Yt)]}(jt);if(Tt[1]>=100)ht.text=Ue(d.deg2rad(ht.x),gt,Et,qt);else{var Ot=ht.x<0;Tt[1]===1?Tt[0]===1?ht.text="π":ht.text=Tt[0]+"π":ht.text=["",Tt[0],"","⁄","",Tt[1],"","π"].join(""),Ot&&(ht.text=$+ht.text)}}}}(ve,Ge,Ve,nt,St):function(gt,ht,yt,qt,Et){Et==="never"?Et="":gt.showexponent==="all"&&Math.abs(ht.x/gt.dtick)<1e-6&&(Et="hide"),ht.text=Ue(ht.x,gt,Et,qt)}(ve,Ge,0,nt,St),We||(ve.tickprefix&&!Vt(ve.showtickprefix)&&(Ge.text=ve.tickprefix+Ge.text),ve.ticksuffix&&!Vt(ve.showticksuffix)&&(Ge.text+=ve.ticksuffix)),ve.labelalias&&ve.labelalias.hasOwnProperty(Ge.text)){var Nt=ve.labelalias[Ge.text];typeof Nt=="string"&&(Ge.text=Nt)}if(ve.tickson==="boundaries"||ve.showdividers){var Dt=function(gt){var ht=ve.l2p(gt);return ht>=0&&ht<=ve._length?gt:null};Ge.xbnd=[Dt(Ge.x-.5),Dt(Ge.x+ve.dtick-.5)]}return Ge},Q.hoverLabelText=function(ve,_e,Ve){Ve&&(ve=d.extendFlat({},ve,{hoverformat:Ve}));var We=Array.isArray(_e)?_e[0]:_e,Ze=Array.isArray(_e)?_e[1]:void 0;if(Ze!==void 0&&Ze!==We)return Q.hoverLabelText(ve,We,Ve)+" - "+Q.hoverLabelText(ve,Ze,Ve);var Ge=ve.type==="log"&&We<=0,Ke=Q.tickText(ve,ve.c2l(Ge?-We:We),"hover").text;return Ge?We===0?"0":$+Ke:Ke};var Re=["f","p","n","μ","m","","k","M","G","T"];function Ie(ve){return ve==="SI"||ve==="B"}function Be(ve){return ve>14||ve<-15}function Ue(ve,_e,Ve,We){var Ze=ve<0,Ge=_e._tickround,Ke=Ve||_e.exponentformat||"B",nt=_e._tickexponent,st=Q.getTickFormat(_e),mt=_e.separatethousands;if(We){var tt={exponentformat:Ke,minexponent:_e.minexponent,dtick:_e.showexponent==="none"?_e.dtick:f(ve)&&Math.abs(ve)||1,range:_e.showexponent==="none"?_e.range.map(_e.r2d):[0,ve||1]};Ee(tt),Ge=(Number(tt._tickround)||0)+4,nt=tt._tickexponent,_e.hoverformat&&(st=_e.hoverformat)}if(st)return _e._numFormat(st)(ve).replace(/-/g,$);var Ft,Vt=Math.pow(10,-Ge)/2;if(Ke==="none"&&(nt=0),(ve=Math.abs(ve))"+Ft+"":Ke==="B"&&nt===9?ve+="B":Ie(Ke)&&(ve+=Re[nt/3+5])),Ze?$+ve:ve}function qe(ve,_e){if(ve){var Ve=Object.keys(q).reduce(function(We,Ze){return _e.indexOf(Ze)!==-1&&q[Ze].forEach(function(Ge){We[Ge]=1}),We},{});Object.keys(ve).forEach(function(We){Ve[We]||(We.length===1?ve[We]=0:delete ve[We])})}}function Ye(ve,_e){for(var Ve=[],We={},Ze=0;Ze<_e.length;Ze++){var Ge=_e[Ze];We[Ge.text2]?We[Ge.text2].push(Ge.x):We[Ge.text2]=[Ge.x]}for(var Ke in We)Ve.push(De(ve,d.interp(We[Ke],.5),Ke));return Ve}function at(ve){return ve.periodX!==void 0?ve.periodX:ve.x}function lt(ve){return[ve.text,ve.x,ve.axInfo,ve.font,ve.fontSize,ve.fontColor].join("_")}function ct(ve){var _e=ve.title.font.size,Ve=(ve.title.text.match(p.BR_TAG_ALL)||[]).length;return ve.title.hasOwnProperty("standoff")?Ve?_e*(te+Ve*ee):_e*te:Ve?_e*(Ve+1)*ee:_e}function bt(ve,_e){var Ve=ve.l2p(_e);return Ve>1&&Ve=Ze.min&&ve=0,ht=tt(Vt,St[1])<=0;return(Nt||gt)&&(Dt||ht)}if(ve.tickformatstops&&ve.tickformatstops.length>0)switch(ve.type){case"date":case"linear":for(_e=0;_e=Ke(Ze)))){Ve=We;break}break;case"log":for(_e=0;_e=0&&Ze.unshift(Ze.splice(mt,1).shift())}});var Ke={false:{left:0,right:0}};return d.syncOrAsync(Ze.map(function(nt){return function(){if(nt){var st=Q.getFromId(ve,nt);Ve||(Ve={}),Ve.axShifts=Ke,Ve.overlayingShiftedAx=Ge;var mt=Q.drawOne(ve,st,Ve);return st._shiftPusher&&wt(st,st._fullDepth||0,Ke,!0),st._r=st.range.slice(),st._rl=d.simpleMap(st._r,st.r2l),mt}}}))},Q.drawOne=function(ve,_e,Ve){var We,Ze,Ge,Ke=(Ve=Ve||{}).axShifts||{},nt=Ve.overlayingShiftedAx||[];_e.setScale();var st=ve._fullLayout,mt=_e._id,tt=mt.charAt(0),Ft=Q.counterLetter(mt),Vt=st._plots[_e._mainSubplot];if(Vt){if(_e._shiftPusher=_e.autoshift||nt.indexOf(_e._id)!==-1||nt.indexOf(_e.overlaying)!==-1,_e._shiftPusher&_e.anchor==="free"){var St=_e.linewidth/2||0;_e.ticks==="inside"&&(St+=_e.ticklen),wt(_e,St,Ke,!0),wt(_e,_e.shift||0,Ke,!1)}Ve.skipTitle===!0&&_e._shift!==void 0||(_e._shift=function(On,on){return On.autoshift?on[On.overlaying][On.side]:On.shift||0}(_e,Ke));var Nt=Vt[tt+"axislayer"],Dt=_e._mainLinePosition,gt=Dt+=_e._shift,ht=_e._mainMirrorPosition,yt=_e._vals=Q.calcTicks(_e),qt=[_e.mirror,gt,ht].join("_");for(We=0;We0?On.bottom-jn:0,Un))));var Lr=0,br=0;if(_e._shiftPusher&&(Lr=Math.max(Un,On.height>0?Ln==="l"?jn-On.left:On.right-jn:0),_e.title.text!==st._dfltTitle[tt]&&(br=(_e._titleStandoff||0)+(_e._titleScoot||0),Ln==="l"&&(br+=ct(_e))),_e._fullDepth=Math.max(Lr,br)),_e.automargin){on={x:0,y:0,r:0,l:0,t:0,b:0};var Mr=[0,1],ja=typeof _e._shift=="number"?_e._shift:0;if(tt==="x"){if(Ln==="b"?on[Ln]=_e._depth:(on[Ln]=_e._depth=Math.max(On.width>0?jn-On.top:0,Un),Mr.reverse()),On.width>0){var _a=On.right-(_e._offset+_e._length);_a>0&&(on.xr=1,on.r=_a);var la=_e._offset-On.left;la>0&&(on.xl=0,on.l=la)}}else if(Ln==="l"?(_e._depth=Math.max(On.height>0?jn-On.left:0,Un),on[Ln]=_e._depth-ja):(_e._depth=Math.max(On.height>0?On.right-jn:0,Un),on[Ln]=_e._depth+ja,Mr.reverse()),On.height>0){var Tn=On.bottom-(_e._offset+_e._length);Tn>0&&(on.yb=0,on.b=Tn);var Dr=_e._offset-On.top;Dr>0&&(on.yt=1,on.t=Dr)}on[Ft]=_e.anchor==="free"?_e.position:_e._anchorAxis.domain[Mr[0]],_e.title.text!==st._dfltTitle[tt]&&(on[Ln]+=ct(_e)+(_e.title.standoff||0)),_e.mirror&&_e.anchor!=="free"&&(($n={x:0,y:0,r:0,l:0,t:0,b:0})[Bn]=_e.linewidth,_e.mirror&&_e.mirror!==!0&&($n[Bn]+=Un),_e.mirror===!0||_e.mirror==="ticks"?$n[Ft]=_e._anchorAxis.domain[Mr[1]]:_e.mirror!=="all"&&_e.mirror!=="allticks"||($n[Ft]=[_e._counterDomainMin,_e._counterDomainMax][Mr[1]]))}kr&&(Pr=c.getComponentMethod("rangeslider","autoMarginOpts")(ve,_e)),typeof _e.automargin=="string"&&(qe(on,_e.automargin),qe($n,_e.automargin)),s.autoMargin(ve,Ne(_e),on),s.autoMargin(ve,Qe(_e),$n),s.autoMargin(ve,it(_e),Pr)}),d.syncOrAsync(Ar)}}function oa(On){var on=mt+(On||"tick");return Et[on]||(Et[on]=function($n,Pr){var Ln,Bn,jn,Un;return $n._selections[Pr].size()?(Ln=1/0,Bn=-1/0,jn=1/0,Un=-1/0,$n._selections[Pr].each(function(){var Lr=ze(this),br=v.bBox(Lr.node().parentNode);Ln=Math.min(Ln,br.top),Bn=Math.max(Bn,br.bottom),jn=Math.min(jn,br.left),Un=Math.max(Un,br.right)})):(Ln=0,Bn=0,jn=0,Un=0),{top:Ln,bottom:Bn,left:jn,right:Un,height:Bn-Ln,width:Un-jn}}(_e,on)),Et[on]}},Q.getTickSigns=function(ve,_e){var Ve=ve._id.charAt(0),We={x:"top",y:"right"}[Ve],Ze=ve.side===We?1:-1,Ge=[-1,1,Ze,-Ze];return(_e?(ve.minor||{}).ticks:ve.ticks)!=="inside"==(Ve==="x")&&(Ge=Ge.map(function(Ke){return-Ke})),ve.side&&Ge.push({l:-1,t:-1,r:1,b:1}[ve.side.charAt(0)]),Ge},Q.makeTransTickFn=function(ve){return ve._id.charAt(0)==="x"?function(_e){return h(ve._offset+ve.l2p(_e.x),0)}:function(_e){return h(0,ve._offset+ve.l2p(_e.x))}},Q.makeTransTickLabelFn=function(ve){var _e=function(Ze){var Ge=Ze.ticklabelposition||"",Ke=function(ht){return Ge.indexOf(ht)!==-1},nt=Ke("top"),st=Ke("left"),mt=Ke("right"),tt=Ke("bottom"),Ft=Ke("inside"),Vt=tt||st||nt||mt;if(!Vt&&!Ft)return[0,0];var St=Ze.side,Nt=Vt?(Ze.tickwidth||0)/2:0,Dt=3,gt=Ze.tickfont?Ze.tickfont.size:12;return(tt||nt)&&(Nt+=gt*te,Dt+=(Ze.linewidth||0)/2),(st||mt)&&(Nt+=(Ze.linewidth||0)/2,Dt+=3),Ft&&St==="top"&&(Dt-=gt*(1-te)),(st||nt)&&(Nt=-Nt),St!=="bottom"&&St!=="right"||(Dt=-Dt),[Vt?Nt:0,Ft?Dt:0]}(ve),Ve=_e[0],We=_e[1];return ve._id.charAt(0)==="x"?function(Ze){return h(Ve+ve._offset+ve.l2p(at(Ze)),We)}:function(Ze){return h(We,Ve+ve._offset+ve.l2p(at(Ze)))}},Q.makeTickPath=function(ve,_e,Ve,We){We||(We={});var Ze=We.minor;if(Ze&&!ve.minor)return"";var Ge=We.len!==void 0?We.len:Ze?ve.minor.ticklen:ve.ticklen,Ke=ve._id.charAt(0),nt=(ve.linewidth||1)/2;return Ke==="x"?"M0,"+(_e+nt*Ve)+"v"+Ge*Ve:"M"+(_e+nt*Ve)+",0h"+Ge*Ve},Q.makeLabelFns=function(ve,_e,Ve){var We=ve.ticklabelposition||"",Ze=function($t){return We.indexOf($t)!==-1},Ge=Ze("top"),Ke=Ze("left"),nt=Ze("right"),st=Ze("bottom")||Ke||Ge||nt,mt=Ze("inside"),tt=We==="inside"&&ve.ticks==="inside"||!mt&&ve.ticks==="outside"&&ve.tickson!=="boundaries",Ft=0,Vt=0,St=tt?ve.ticklen:0;if(mt?St*=-1:st&&(St=0),tt&&(Ft+=St,Ve)){var Nt=d.deg2rad(Ve);Ft=St*Math.cos(Nt)+1,Vt=St*Math.sin(Nt)}ve.showticklabels&&(tt||ve.showline)&&(Ft+=.2*ve.tickfont.size);var Dt,gt,ht,yt,qt,Et={labelStandoff:Ft+=(ve.linewidth||1)/2*(mt?-1:1),labelShift:Vt},jt=0,Tt=ve.side,Ot=ve._id.charAt(0),At=ve.tickangle;if(Ot==="x")yt=(qt=!mt&&Tt==="bottom"||mt&&Tt==="top")?1:-1,mt&&(yt*=-1),Dt=Vt*yt,gt=_e+Ft*yt,ht=qt?1:-.2,Math.abs(At)===90&&(mt?ht+=V:ht=At===-90&&Tt==="bottom"?te:At===90&&Tt==="top"?V:.5,jt=V/2*(At/90)),Et.xFn=function($t){return $t.dx+Dt+jt*$t.fontSize},Et.yFn=function($t){return $t.dy+gt+$t.fontSize*ht},Et.anchorFn=function($t,Yt){if(st){if(Ke)return"end";if(nt)return"start"}return f(Yt)&&Yt!==0&&Yt!==180?Yt*yt<0!==mt?"end":"start":"middle"},Et.heightFn=function($t,Yt,Xt){return Yt<-60||Yt>60?-.5*Xt:ve.side==="top"!==mt?-Xt:0};else if(Ot==="y"){if(yt=(qt=!mt&&Tt==="left"||mt&&Tt==="right")?1:-1,mt&&(yt*=-1),Dt=Ft,gt=Vt*yt,ht=0,mt||Math.abs(At)!==90||(ht=At===-90&&Tt==="left"||At===90&&Tt==="right"?te:.5),mt){var Lt=f(At)?+At:0;if(Lt!==0){var Rt=d.deg2rad(Lt);jt=Math.abs(Math.sin(Rt))*te*yt,ht=0}}Et.xFn=function($t){return $t.dx+_e-(Dt+$t.fontSize*ht)*yt+jt*$t.fontSize},Et.yFn=function($t){return $t.dy+gt+$t.fontSize*V},Et.anchorFn=function($t,Yt){return f(Yt)&&Math.abs(Yt)===90?"middle":qt?"end":"start"},Et.heightFn=function($t,Yt,Xt){return ve.side==="right"&&(Yt*=-1),Yt<-30?-Xt:Yt<30?-.5*Xt:0}}return Et},Q.drawTicks=function(ve,_e,Ve){Ve=Ve||{};var We=_e._id+"tick",Ze=[].concat(_e.minor&&_e.minor.ticks?Ve.vals.filter(function(Ke){return Ke.minor&&!Ke.noTick}):[]).concat(_e.ticks?Ve.vals.filter(function(Ke){return!Ke.minor&&!Ke.noTick}):[]),Ge=Ve.layer.selectAll("path."+We).data(Ze,lt);Ge.exit().remove(),Ge.enter().append("path").classed(We,1).classed("ticks",1).classed("crisp",Ve.crisp!==!1).each(function(Ke){return y.stroke(l.select(this),Ke.minor?_e.minor.tickcolor:_e.tickcolor)}).style("stroke-width",function(Ke){return v.crispRound(ve,Ke.minor?_e.minor.tickwidth:_e.tickwidth,1)+"px"}).attr("d",Ve.path).style("display",null),zt(_e,[G]),Ge.attr("transform",Ve.transFn)},Q.drawGrid=function(ve,_e,Ve){if(Ve=Ve||{},_e.tickmode!=="sync"){var We=_e._id+"grid",Ze=_e.minor&&_e.minor.showgrid,Ge=Ze?Ve.vals.filter(function(ht){return ht.minor}):[],Ke=_e.showgrid?Ve.vals.filter(function(ht){return!ht.minor}):[],nt=Ve.counterAxis;if(nt&&Q.shouldShowZeroLine(ve,_e,nt))for(var st=_e.tickmode==="array",mt=0;mt=0;Nt--){var Dt=Nt?Vt:St;if(Dt){var gt=Dt.selectAll("path."+We).data(Nt?Ke:Ge,lt);gt.exit().remove(),gt.enter().append("path").classed(We,1).classed("crisp",Ve.crisp!==!1),gt.attr("transform",Ve.transFn).attr("d",Ve.path).each(function(ht){return y.stroke(l.select(this),ht.minor?_e.minor.gridcolor:_e.gridcolor||"#ddd")}).style("stroke-dasharray",function(ht){return v.dashStyle(ht.minor?_e.minor.griddash:_e.griddash,ht.minor?_e.minor.gridwidth:_e.gridwidth)}).style("stroke-width",function(ht){return(ht.minor?Ft:_e._gw)+"px"}).style("display",null),typeof Ve.path=="function"&>.attr("d",Ve.path)}}zt(_e,[E,W])}},Q.drawZeroLine=function(ve,_e,Ve){Ve=Ve||Ve;var We=_e._id+"zl",Ze=Q.shouldShowZeroLine(ve,_e,Ve.counterAxis),Ge=Ve.layer.selectAll("path."+We).data(Ze?[{x:0,id:_e._id}]:[]);Ge.exit().remove(),Ge.enter().append("path").classed(We,1).classed("zl",1).classed("crisp",Ve.crisp!==!1).each(function(){Ve.layer.selectAll("path").sort(function(Ke,nt){return X(Ke.id,nt.id)})}),Ge.attr("transform",Ve.transFn).attr("d",Ve.path).call(y.stroke,_e.zerolinecolor||y.defaultLine).style("stroke-width",v.crispRound(ve,_e.zerolinewidth,_e._gw||1)+"px").style("display",null),zt(_e,[N])},Q.drawLabels=function(ve,_e,Ve){Ve=Ve||{};var We=ve._fullLayout,Ze=_e._id,Ge=Ze.charAt(0),Ke=Ve.cls||Ze+"tick",nt=Ve.vals.filter(function(yt){return yt.text}),st=Ve.labelFns,mt=Ve.secondary?0:_e.tickangle,tt=(_e._prevTickAngles||{})[Ke],Ft=Ve.layer.selectAll("g."+Ke).data(_e.showticklabels?nt:[],lt),Vt=[];function St(yt,qt){yt.each(function(Et){var jt=l.select(this),Tt=jt.select(".text-math-group"),Ot=st.anchorFn(Et,qt),At=Ve.transFn.call(jt.node(),Et)+(f(qt)&&+qt!=0?" rotate("+qt+","+st.xFn(Et)+","+(st.yFn(Et)-Et.fontSize/2)+")":""),Lt=p.lineCount(jt),Rt=ee*Et.fontSize,$t=st.heightFn(Et,f(qt)?+qt:0,(Lt-1)*Rt);if($t&&(At+=h(0,$t)),Tt.empty()){var Yt=jt.select("text");Yt.attr({transform:At,"text-anchor":Ot}),Yt.style("opacity",1),_e._adjustTickLabelsOverflow&&_e._adjustTickLabelsOverflow()}else{var Xt=v.bBox(Tt.node()).width*{end:-.5,start:.5}[Ot];Tt.attr("transform",At+h(Xt,0))}})}Ft.enter().append("g").classed(Ke,1).append("text").attr("text-anchor","middle").each(function(yt){var qt=l.select(this),Et=ve._promises.length;qt.call(p.positionText,st.xFn(yt),st.yFn(yt)).call(v.font,yt.font,yt.fontSize,yt.fontColor).text(yt.text).call(p.convertToTspans,ve),ve._promises[Et]?Vt.push(ve._promises.pop().then(function(){St(qt,mt)})):St(qt,mt)}),zt(_e,[L]),Ft.exit().remove(),Ve.repositionOnUpdate&&Ft.each(function(yt){l.select(this).select("text").call(p.positionText,st.xFn(yt),st.yFn(yt))}),_e._adjustTickLabelsOverflow=function(){var yt=_e.ticklabeloverflow;if(yt&&yt!=="allow"){var qt=yt.indexOf("hide")!==-1,Et=_e._id.charAt(0)==="x",jt=0,Tt=Et?ve._fullLayout.width:ve._fullLayout.height;if(yt.indexOf("domain")!==-1){var Ot=d.simpleMap(_e.range,_e.r2l);jt=_e.l2p(Ot[0])+_e._offset,Tt=_e.l2p(Ot[1])+_e._offset}var At=Math.min(jt,Tt),Lt=Math.max(jt,Tt),Rt=_e.side,$t=1/0,Yt=-1/0;for(var Xt in Ft.each(function(tn){var cn=l.select(this);if(cn.select(".text-math-group").empty()){var ln=v.bBox(cn.node()),an=0;Et?(ln.right>Lt||ln.leftLt||ln.top+(_e.tickangle?0:tn.fontSize/4)_e["_visibleLabelMin_"+Ot._id]?Wt.style("display","none"):Lt.K!=="tick"||At||Wt.style("display",null)})})})})},St(Ft,tt+1?tt:mt);var Nt=null;_e._selections&&(_e._selections[Ke]=Ft);var Dt=[function(){return Vt.length&&Promise.all(Vt)}];_e.automargin&&We._redrawFromAutoMarginCount&&tt===90?(Nt=90,Dt.push(function(){St(Ft,tt)})):Dt.push(function(){if(St(Ft,mt),nt.length&&Ge==="x"&&!f(mt)&&(_e.type!=="log"||String(_e.dtick).charAt(0)!=="D")){Nt=0;var yt,qt=0,Et=[];if(Ft.each(function(cn){qt=Math.max(qt,cn.fontSize);var ln=_e.l2p(cn.x),an=ze(this),sn=v.bBox(an.node());Et.push({top:0,bottom:10,height:10,left:ln-sn.width/2,right:ln+sn.width/2+2,width:sn.width+2})}),_e.tickson!=="boundaries"&&!_e.showdividers||Ve.secondary){var jt=nt.length,Tt=Math.abs((nt[jt-1].x-nt[0].x)*_e._m)/(jt-1),Ot=_e.ticklabelposition||"",At=function(cn){return Ot.indexOf(cn)!==-1},Lt=At("top"),Rt=At("left"),$t=At("right"),Yt=At("bottom")||Rt||Lt||$t?(_e.tickwidth||0)+6:0,Xt=Tt<2.5*qt||_e.type==="multicategory"||_e._name==="realaxis";for(yt=0;yt1)for(nt=1;nt2*R}(x,g))return"date";var M=b.autotypenumbers!=="strict";return function(S,C){for(var P=S.length,D=y(P),O=0,R=0,F={},A=0;A2*O}(x,M)?"category":function(S,C){for(var P=S.length,D=0;D=2){var F,A,z="";if(R.length===2){for(F=0;F<2;F++)if(A=S(R[F])){z=w;break}}var B=O("pattern",z);if(B===w)for(F=0;F<2;F++)(A=S(R[F]))&&(P.bounds[F]=R[F]=A-1);if(B)for(F=0;F<2;F++)switch(A=R[F],B){case w:if(!l(A)||(A=+A)!==Math.floor(A)||A<0||A>=7)return void(P.enabled=!1);P.bounds[F]=R[F]=A;break;case k:if(!l(A)||(A=+A)<0||A>24)return void(P.enabled=!1);P.bounds[F]=R[F]=A}if(D.autorange===!1){var $=D.range;if($[0]<$[1]){if(R[0]<$[0]&&R[1]>$[1])return void(P.enabled=!1)}else if(R[0]>$[0]&&R[1]<$[1])return void(P.enabled=!1)}}else{var j=O("values");if(!j||!j.length)return void(P.enabled=!1);O("dvalue")}}}o.exports=function(C,P,D,O,R){var F,A=O.letter,z=O.font||{},B=O.splomStash||{},$=D("visible",!O.visibleDflt),j=P._template||{},N=P.type||j.type||"-";N==="date"&&(f.getComponentMethod("calendars","handleDefaults")(C,P,"calendar",O.calendar),O.noTicklabelmode||(F=D("ticklabelmode")));var E="";O.noTicklabelposition&&N!=="multicategory"||(E=s.coerce(C,P,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:F==="period"?["outside","inside"]:A==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),O.noTicklabeloverflow||D("ticklabeloverflow",E.indexOf("inside")!==-1?"hide past domain":N==="category"||N==="multicategory"?"allow":"hide past div"),_(P,R),x(C,P,D,O),g(C,P,D,O),N==="category"||O.noHover||D("hoverformat");var W=D("color"),G=W!==h.color.dflt?W:z.color,L=B.label||R._dfltTitle[A];if(v(C,P,D,N,O),!$)return P;D("title.text",L),s.coerceFont(D,"title.font",{family:z.family,size:s.bigFont(z.size),color:G}),p(C,P,D,N);var q=O.hasMinor;if(q&&(c.newContainer(P,"minor"),p(C,P,D,N,{isMinor:!0})),y(C,P,D,N,O),m(C,P,D,O),q){var H=O.isMinor;O.isMinor=!0,m(C,P,D,O),O.isMinor=H}b(C,P,D,{dfltColor:W,bgColor:O.bgColor,showGrid:O.showGrid,hasMinor:q,attributes:h}),!q||P.minor.ticks||P.minor.showgrid||delete P.minor,(P.showline||P.ticks)&&D("mirror");var V,te=N==="multicategory";if(O.noTickson||N!=="category"&&!te||!P.ticks&&!P.showgrid||(te&&(V="boundaries"),D("tickson",V)==="boundaries"&&delete P.ticklabelposition),te&&D("showdividers")&&(D("dividercolor"),D("dividerwidth")),N==="date")if(d(C,P,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:T}),P.rangebreaks.length){for(var ee=0;eep?1:-1:+(c.substr(1)||1)-+(d.substr(1)||1)},a.ref2id=function(c){return!!/^[xyz]/.test(c)&&c.split(" ")[0]},a.isLinked=function(c,d){return s(d,c._axisMatchGroups)||s(d,c._axisConstraintGroups)}},15258:function(o){o.exports=function(a,n,l,f){if(n.type==="category"){var s,c=a.categoryarray,d=Array.isArray(c)&&c.length>0;d&&(s="array");var h,p=l("categoryorder",s);p==="array"&&(h=l("categoryarray")),d||p!=="array"||(p=n.categoryorder="trace"),p==="trace"?n._initialCategories=[]:p==="array"?n._initialCategories=h.slice():(h=function(m,y){var v,g,b,x=y.dataAttr||m._id.charAt(0),_={};if(y.axData)v=y.axData;else for(v=[],g=0;gS?C.substr(S):P.substr(M))+D:C+P+k*T:D}function _(k,T){for(var M=T._size,S=M.h/M.w,C={},P=Object.keys(k),D=0;Dp*$)||W){for(M=0;MY&&ieU&&(U=ie);R/=(U-ee)/(2*Q),ee=P.l2r(ee),U=P.l2r(U),P.range=P._input.range=H=0?Math.min(ie,.9):1/(1/Math.max(ie,-.3)+3.222))}function H(ie,le,se,pe,Te){return ie.append("path").attr("class","zoombox").style({fill:le>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",p(se,pe)).attr("d",Te+"Z")}function V(ie,le,se){return ie.append("path").attr("class","zoombox-corners").style({fill:y.background,stroke:y.defaultLine,"stroke-width":1,opacity:0}).attr("transform",p(le,se)).attr("d","M0,0Z")}function te(ie,le,se,pe,Te,Se){ie.attr("d",pe+"M"+se.l+","+se.t+"v"+se.h+"h"+se.w+"v-"+se.h+"h-"+se.w+"Z"),ee(ie,le,Te,Se)}function ee(ie,le,se,pe){se||(ie.transition().style("fill",pe>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),le.transition().style("opacity",1).duration(200))}function U(ie){l.select(ie).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Q(ie){j&&ie.data&&ie._context.showTips&&(f.notifier(f._(ie,"Double-click to zoom back out"),"long"),j=!1)}function Y(ie){var le=Math.floor(Math.min(ie.b-ie.t,ie.r-ie.l,$)/2);return"M"+(ie.l-3.5)+","+(ie.t-.5+le)+"h3v"+-le+"h"+le+"v-3h-"+(le+3)+"ZM"+(ie.r+3.5)+","+(ie.t-.5+le)+"h-3v"+-le+"h"+-le+"v-3h"+(le+3)+"ZM"+(ie.r+3.5)+","+(ie.b+.5-le)+"h-3v"+le+"h"+-le+"v3h"+(le+3)+"ZM"+(ie.l-3.5)+","+(ie.b+.5-le)+"h3v"+le+"h"+le+"v3h-"+(le+3)+"Z"}function Z(ie,le,se,pe,Te){for(var Se,Oe,Me,ce,ye=!1,J={},ne={},de=(Te||{}).xaHash,xe=(Te||{}).yaHash,ue=0;ue=0)At._fullLayout._deactivateShape(At);else{var Lt=At._fullLayout.clickmode;if(U(At),Tt!==2||Ne||gt(),ze)Lt.indexOf("select")>-1&&F(Ot,At,de,xe,le.id,We),Lt.indexOf("event")>-1&&g.click(At,Ot,le.id);else if(Tt===1&&Ne){var Rt=Oe?ye:ce,$t=Oe==="s"||Me==="w"?0:1,Yt=Rt._name+".range["+$t+"]",Xt=function(tn,cn){var ln,an=tn.range[cn],sn=Math.abs(an-tn.range[1-cn]);return tn.type==="date"?an:tn.type==="log"?(ln=Math.ceil(Math.max(0,-Math.log(sn)/Math.LN10))+3,s("."+ln+"g")(Math.pow(10,an))):(ln=Math.floor(Math.log(Math.abs(an))/Math.LN10)-Math.floor(Math.log(sn)/Math.LN10)+4,s("."+String(ln)+"g")(an))}(Rt,$t),Bt="left",Wt="middle";if(Rt.fixedrange)return;Oe?(Wt=Oe==="n"?"top":"bottom",Rt.side==="right"&&(Bt="right")):Me==="e"&&(Bt="right"),At._context.showAxisRangeEntryBoxes&&l.select(kt).call(m.makeEditable,{gd:At,immediate:!0,background:At._fullLayout.paper_bgcolor,text:String(Xt),fill:Rt.tickfont?Rt.tickfont.color:"#444",horizontalAlign:Bt,verticalAlign:Wt}).on("edit",function(tn){var cn=Rt.d2r(tn);cn!==void 0&&h.call("_guiRelayout",At,Yt,cn)})}}}function Ke(Tt,Ot){if(ie._transitioningWithDuration)return!1;var At=Math.max(0,Math.min(be,lt*Tt+Je)),Lt=Math.max(0,Math.min(we,ct*Ot+ut)),Rt=Math.abs(At-Je),$t=Math.abs(Lt-ut);function Yt(){wt="",pt.r=pt.l,pt.t=pt.b,_e.attr("d","M0,0Z")}if(pt.l=Math.min(Je,At),pt.r=Math.max(Je,At),pt.t=Math.min(ut,Lt),pt.b=Math.max(ut,Lt),ke.isSubplotConstrained)Rt>$||$t>$?(wt="xy",Rt/be>$t/we?($t=Rt*we/be,ut>Lt?pt.t=ut-$t:pt.b=ut+$t):(Rt=$t*be/we,Je>At?pt.l=Je-Rt:pt.r=Je+Rt),_e.attr("d",Y(pt))):Yt();else if(Ae.isSubplotConstrained)if(Rt>$||$t>$){wt="xy";var Xt=Math.min(pt.l/be,(we-pt.b)/we),Bt=Math.max(pt.r/be,(we-pt.t)/we);pt.l=Xt*be,pt.r=Bt*be,pt.b=(1-Xt)*we,pt.t=(1-Bt)*we,_e.attr("d",Y(pt))}else Yt();else!De||$t0){var Wt;if(Ae.isSubplotConstrained||!Ee&&De.length===1){for(Wt=0;Wt1&&(Lt.maxallowed!==void 0&&Ie===(Lt.range[0]1&&(Rt.maxallowed!==void 0&&Be===(Rt.range[0]P[1]-.000244140625&&(c.domain=m),f.noneOrAll(s.domain,c.domain,m),c.tickmode==="sync"&&(c.tickmode="auto")}return d("layer"),c}},89426:function(o,a,n){var l=n(59652);o.exports=function(f,s,c,d,h){h||(h={});var p=h.tickSuffixDflt,m=l(f);c("tickprefix")&&c("showtickprefix",m),c("ticksuffix",p)&&c("showticksuffix",m)}},23608:function(o,a,n){var l=n(23074);o.exports=function(f,s,c,d){var h=s._template||{},p=s.type||h.type||"-";c("minallowed"),c("maxallowed");var m,y=c("range"),v=s.getAutorangeDflt(y,d),g=c("autorange",v);!y||(y[0]!==null||y[1]!==null)&&(y[0]!==null&&y[1]!==null||g!=="reversed"&&g!==!0)&&(y[0]===null||g!=="min"&&g!=="max reversed")&&(y[1]===null||g!=="max"&&g!=="min reversed")||(y=void 0,delete s.range,s.autorange=!0,m=!0),m||(g=c("autorange",v=s.getAutorangeDflt(y,d))),g&&(l(c,g,y),p!=="linear"&&p!=="-"||c("rangemode")),s.cleanRange()}},42449:function(o,a,n){var l=n(18783).FROM_BL;o.exports=function(f,s,c){c===void 0&&(c=l[f.constraintoward||"center"]);var d=[f.r2l(f.range[0]),f.r2l(f.range[1])],h=d[0]+(d[1]-d[0])*c;f.range=f._input.range=[f.l2r(h+(d[0]-h)*s),f.l2r(h+(d[1]-h)*s)],f.setScale()}},21994:function(o,a,n){var l=n(39898),f=n(84096).g0,s=n(71828),c=s.numberFormat,d=n(92770),h=s.cleanNumber,p=s.ms2DateTime,m=s.dateTime2ms,y=s.ensureNumber,v=s.isArrayOrTypedArray,g=n(50606),b=g.FP_SAFE,x=g.BADNUM,_=g.LOG_CLIP,w=g.ONEWEEK,k=g.ONEDAY,T=g.ONEHOUR,M=g.ONEMIN,S=g.ONESEC,C=n(41675),P=n(85555),D=P.HOUR_PATTERN,O=P.WEEKDAY_PATTERN;function R(A){return Math.pow(10,A)}function F(A){return A!=null}o.exports=function(A,z){z=z||{};var B=A._id||"x",$=B.charAt(0);function j(Z,X){if(Z>0)return Math.log(Z)/Math.LN10;if(Z<=0&&X&&A.range&&A.range.length===2){var re=A.range[0],ie=A.range[1];return .5*(re+ie-2*_*Math.abs(re-ie))}return x}function N(Z,X,re,ie){if((ie||{}).msUTC&&d(Z))return+Z;var le=m(Z,re||A.calendar);if(le===x){if(!d(Z))return x;Z=+Z;var se=Math.floor(10*s.mod(Z+.05,1)),pe=Math.round(Z-se/10);le=m(new Date(pe))+se/10}return le}function E(Z,X,re){return p(Z,X,re||A.calendar)}function W(Z){return A._categories[Math.round(Z)]}function G(Z){if(F(Z)){if(A._categoriesMap===void 0&&(A._categoriesMap={}),A._categoriesMap[Z]!==void 0)return A._categoriesMap[Z];A._categories.push(typeof Z=="number"?String(Z):Z);var X=A._categories.length-1;return A._categoriesMap[Z]=X,X}return x}function L(Z){if(A._categoriesMap)return A._categoriesMap[Z]}function q(Z){var X=L(Z);return X!==void 0?X:d(Z)?+Z:void 0}function H(Z){return d(Z)?+Z:L(Z)}function V(Z,X,re){return l.round(re+X*Z,2)}function te(Z,X,re){return(Z-re)/X}var ee=function(Z){return d(Z)?V(Z,A._m,A._b):x},U=function(Z){return te(Z,A._m,A._b)};if(A.rangebreaks){var Q=$==="y";ee=function(Z){if(!d(Z))return x;var X=A._rangebreaks.length;if(!X)return V(Z,A._m,A._b);var re=Q;A.range[0]>A.range[1]&&(re=!re);for(var ie=re?-1:1,le=ie*Z,se=0,pe=0;peSe)){se=le<(Te+Se)/2?pe:pe+1;break}se=pe+1}var Oe=A._B[se]||0;return isFinite(Oe)?V(Z,A._m2,Oe):0},U=function(Z){var X=A._rangebreaks.length;if(!X)return te(Z,A._m,A._b);for(var re=0,ie=0;ieA._rangebreaks[ie].pmax&&(re=ie+1);return te(Z,A._m2,A._B[re])}}A.c2l=A.type==="log"?j:y,A.l2c=A.type==="log"?R:y,A.l2p=ee,A.p2l=U,A.c2p=A.type==="log"?function(Z,X){return ee(j(Z,X))}:ee,A.p2c=A.type==="log"?function(Z){return R(U(Z))}:U,["linear","-"].indexOf(A.type)!==-1?(A.d2r=A.r2d=A.d2c=A.r2c=A.d2l=A.r2l=h,A.c2d=A.c2r=A.l2d=A.l2r=y,A.d2p=A.r2p=function(Z){return A.l2p(h(Z))},A.p2d=A.p2r=U,A.cleanPos=y):A.type==="log"?(A.d2r=A.d2l=function(Z,X){return j(h(Z),X)},A.r2d=A.r2c=function(Z){return R(h(Z))},A.d2c=A.r2l=h,A.c2d=A.l2r=y,A.c2r=j,A.l2d=R,A.d2p=function(Z,X){return A.l2p(A.d2r(Z,X))},A.p2d=function(Z){return R(U(Z))},A.r2p=function(Z){return A.l2p(h(Z))},A.p2r=U,A.cleanPos=y):A.type==="date"?(A.d2r=A.r2d=s.identity,A.d2c=A.r2c=A.d2l=A.r2l=N,A.c2d=A.c2r=A.l2d=A.l2r=E,A.d2p=A.r2p=function(Z,X,re){return A.l2p(N(Z,0,re))},A.p2d=A.p2r=function(Z,X,re){return E(U(Z),X,re)},A.cleanPos=function(Z){return s.cleanDate(Z,x,A.calendar)}):A.type==="category"?(A.d2c=A.d2l=G,A.r2d=A.c2d=A.l2d=W,A.d2r=A.d2l_noadd=q,A.r2c=function(Z){var X=H(Z);return X!==void 0?X:A.fraction2r(.5)},A.l2r=A.c2r=y,A.r2l=H,A.d2p=function(Z){return A.l2p(A.r2c(Z))},A.p2d=function(Z){return W(U(Z))},A.r2p=A.d2p,A.p2r=U,A.cleanPos=function(Z){return typeof Z=="string"&&Z!==""?Z:y(Z)}):A.type==="multicategory"&&(A.r2d=A.c2d=A.l2d=W,A.d2r=A.d2l_noadd=q,A.r2c=function(Z){var X=q(Z);return X!==void 0?X:A.fraction2r(.5)},A.r2c_just_indices=L,A.l2r=A.c2r=y,A.r2l=q,A.d2p=function(Z){return A.l2p(A.r2c(Z))},A.p2d=function(Z){return W(U(Z))},A.r2p=A.d2p,A.p2r=U,A.cleanPos=function(Z){return Array.isArray(Z)||typeof Z=="string"&&Z!==""?Z:y(Z)},A.setupMultiCategory=function(Z){var X,re,ie=A._traceIndices,le=A._matchGroup;if(le&&A._categories.length===0){for(var se in le)if(se!==B){var pe=z[C.id2name(se)];ie=ie.concat(pe._traceIndices)}}var Te=[[0,{}],[0,{}]],Se=[];for(X=0;Xpe[1]&&(ie[se?0:1]=re)}},A.cleanRange=function(Z,X){A._cleanRange(Z,X),A.limitRange(Z)},A._cleanRange=function(Z,X){X||(X={}),Z||(Z="range");var re,ie,le=s.nestedProperty(A,Z).get();if(ie=(ie=A.type==="date"?s.dfltRange(A.calendar):$==="y"?P.DFLTRANGEY:A._name==="realaxis"?[0,1]:X.dfltRange||P.DFLTRANGEX).slice(),A.rangemode!=="tozero"&&A.rangemode!=="nonnegative"||(ie[0]=0),le&&le.length===2){var se=le[0]===null,pe=le[1]===null;for(A.type!=="date"||A.autorange||(le[0]=s.cleanDate(le[0],x,A.calendar),le[1]=s.cleanDate(le[1],x,A.calendar)),re=0;re<2;re++)if(A.type==="date"){if(!s.isDateTime(le[re],A.calendar)){A[Z]=ie;break}if(A.r2l(le[0])===A.r2l(le[1])){var Te=s.constrain(A.r2l(le[0]),s.MIN_MS+1e3,s.MAX_MS-1e3);le[0]=A.l2r(Te-1e3),le[1]=A.l2r(Te+1e3);break}}else{if(!d(le[re])){if(se||pe||!d(le[1-re])){A[Z]=ie;break}le[re]=le[1-re]*(re?10:.1)}if(le[re]<-b?le[re]=-b:le[re]>b&&(le[re]=b),le[0]===le[1]){var Se=Math.max(1,Math.abs(1e-6*le[0]));le[0]-=Se,le[1]+=Se}}}else s.nestedProperty(A,Z).set(ie)},A.setScale=function(Z){var X=z._size;if(A.overlaying){var re=C.getFromId({_fullLayout:z},A.overlaying);A.domain=re.domain}var ie=Z&&A._r?"_r":"range",le=A.calendar;A.cleanRange(ie);var se,pe,Te=A.r2l(A[ie][0],le),Se=A.r2l(A[ie][1],le),Oe=$==="y";if(Oe?(A._offset=X.t+(1-A.domain[1])*X.h,A._length=X.h*(A.domain[1]-A.domain[0]),A._m=A._length/(Te-Se),A._b=-A._m*Se):(A._offset=X.l+A.domain[0]*X.w,A._length=X.w*(A.domain[1]-A.domain[0]),A._m=A._length/(Se-Te),A._b=-A._m*Te),A._rangebreaks=[],A._lBreaks=0,A._m2=0,A._B=[],A.rangebreaks&&(A._rangebreaks=A.locateBreaks(Math.min(Te,Se),Math.max(Te,Se)),A._rangebreaks.length)){for(se=0;seSe&&(Me=!Me),Me&&A._rangebreaks.reverse();var ce=Me?-1:1;for(A._m2=ce*A._length/(Math.abs(Se-Te)-A._lBreaks),A._B.push(-A._m2*(Oe?Se:Te)),se=0;seie&&(ie+=7,leie&&(ie+=24,le=re&&le=re&&Z=Ae.min&&(geAe.max&&(Ae.max=be),we=!1)}we&&pe.push({min:ge,max:be})}};for(re=0;rem.duration?(function(){for(var D={},O=0;O rect").call(c.setTranslate,0,0).call(c.setScale,1,1),M.plot.call(c.setTranslate,S._offset,C._offset).call(c.setScale,1,1);var P=M.plot.selectAll(".scatterlayer .trace");P.selectAll(".point").call(c.setPointGroupScale,1,1),P.selectAll(".textpoint").call(c.setTextPointsScale,1,1),P.call(c.hideOutsideRangePoints,M)}function T(M,S){var C=M.plotinfo,P=C.xaxis,D=C.yaxis,O=P._length,R=D._length,F=!!M.xr1,A=!!M.yr1,z=[];if(F){var B=s.simpleMap(M.xr0,P.r2l),$=s.simpleMap(M.xr1,P.r2l),j=B[1]-B[0],N=$[1]-$[0];z[0]=(B[0]*(1-S)+S*$[0]-B[0])/(B[1]-B[0])*O,z[2]=O*(1-S+S*N/j),P.range[0]=P.l2r(B[0]*(1-S)+S*$[0]),P.range[1]=P.l2r(B[1]*(1-S)+S*$[1])}else z[0]=0,z[2]=O;if(A){var E=s.simpleMap(M.yr0,D.r2l),W=s.simpleMap(M.yr1,D.r2l),G=E[1]-E[0],L=W[1]-W[0];z[1]=(E[1]*(1-S)+S*W[1]-E[1])/(E[0]-E[1])*R,z[3]=R*(1-S+S*L/G),D.range[0]=P.l2r(E[0]*(1-S)+S*W[0]),D.range[1]=D.l2r(E[1]*(1-S)+S*W[1])}else z[1]=0,z[3]=R;d.drawOne(h,P,{skipTitle:!0}),d.drawOne(h,D,{skipTitle:!0}),d.redrawComponents(h,[P._id,D._id]);var q=F?O/z[2]:1,H=A?R/z[3]:1,V=F?z[0]:0,te=A?z[1]:0,ee=F?z[0]/z[2]*O:0,U=A?z[1]/z[3]*R:0,Q=P._offset-ee,Y=D._offset-U;C.clipRect.call(c.setTranslate,V,te).call(c.setScale,1/q,1/H),C.plot.call(c.setTranslate,Q,Y).call(c.setScale,q,H),c.setPointGroupScale(C.zoomScalePts,1/q,1/H),c.setTextPointsScale(C.zoomScaleTxt,1/q,1/H)}d.redrawComponents(h)}},951:function(o,a,n){var l=n(73972).traceIs,f=n(4322);function s(d){return{v:"x",h:"y"}[d.orientation||"v"]}function c(d,h){var p=s(d),m=l(d,"box-violin"),y=l(d._fullInput||{},"candlestick");return m&&!y&&h===p&&d[p]===void 0&&d[p+"0"]===void 0}o.exports=function(d,h,p,m){p("autotypenumbers",m.autotypenumbersDflt),p("type",(m.splomStash||{}).type)==="-"&&(function(y,v){if(y.type==="-"){var g,b=y._id,x=b.charAt(0);b.indexOf("scene")!==-1&&(b=x);var _=function(D,O,R){for(var F=0;F0&&(A["_"+R+"axes"]||{})[O]||(A[R+"axis"]||R)===O&&(c(A,R)||(A[R]||[]).length||A[R+"0"]))return A}}(v,b,x);if(_)if(_.type!=="histogram"||x!=={v:"y",h:"x"}[_.orientation||"v"]){var w=x+"calendar",k=_[w],T={noMultiCategory:!l(_,"cartesian")||l(_,"noMultiCategory")};if(_.type==="box"&&_._hasPreCompStats&&x==={h:"x",v:"y"}[_.orientation||"v"]&&(T.noMultiCategory=!0),T.autotypenumbers=y.autotypenumbers,c(_,x)){var M=s(_),S=[];for(g=0;g0?".":"")+g;f.isPlainObject(b)?h(b,m,x,v+1):m(x,g,b)}})}a.manageCommandObserver=function(p,m,y,v){var g={},b=!0;m&&m._commandObserver&&(g=m._commandObserver),g.cache||(g.cache={}),g.lookupTable={};var x=a.hasSimpleAPICommandBindings(p,y,g.lookupTable);if(m&&m._commandObserver){if(x)return g;if(m._commandObserver.remove)return m._commandObserver.remove(),m._commandObserver=null,g}if(x){s(p,x,g.cache),g.check=function(){if(b){var k=s(p,x,g.cache);return k.changed&&v&&g.lookupTable[k.value]!==void 0&&(g.disable(),Promise.resolve(v({value:k.value,type:x.type,prop:x.prop,traces:x.traces,index:g.lookupTable[k.value]})).then(g.enable,g.enable)),k.changed}};for(var _=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],w=0;w<_.length;w++)p._internalOn(_[w],g.check);g.remove=function(){for(var k=0;k<_.length;k++)p._removeInternalListener(_[k],g.check)}}else f.log("Unable to automatically bind plot updates to API command"),g.lookupTable={},g.remove=function(){};return g.disable=function(){b=!1},g.enable=function(){b=!0},m&&(m._commandObserver=g),g},a.hasSimpleAPICommandBindings=function(p,m,y){var v,g,b=m.length;for(v=0;v=q.width-20?(te["text-anchor"]="start",te.x=5):(te["text-anchor"]="end",te.x=q._paper.attr("width")-7),H.attr(te);var ee=H.select(".js-link-to-tool"),U=H.select(".js-link-spacer"),Q=H.select(".js-sourcelinks");L._context.showSources&&L._context.showSources(L),L._context.showLink&&function(Y,Z){Z.text("");var X=Z.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(Y._context.linkText+" »");if(Y._context.sendData)X.on("click",function(){S.sendDataToCloud(Y)});else{var re=window.location.pathname.split("/"),ie=window.location.search;X.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+re[2].split(".")[0]+"/"+re[1]+ie})}}(L,ee),U.text(ee.text()&&Q.text()?" - ":"")}},S.sendDataToCloud=function(L){var q=(window.PLOTLYENV||{}).BASE_URL||L._context.plotlyServerURL;if(q){L.emit("plotly_beforeexport");var H=l.select(L).append("div").attr("id","hiddenform").style("display","none"),V=H.append("form").attr({action:q+"/external",method:"post",target:"_blank"});return V.append("input").attr({type:"text",name:"data"}).node().value=S.graphJson(L,!1,"keepdata"),V.node().submit(),H.remove(),L.emit("plotly_afterexport"),!1}};var D=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],O=["year","month","dayMonth","dayMonthYear"];function R(L,q){var H=L._context.locale;H||(H="en-US");var V=!1,te={};function ee(re){for(var ie=!0,le=0;le1&&J.length>1){for(d.getComponentMethod("grid","sizeDefaults")(U,ee),te=0;te15&&J.length>15&&ee.shapes.length===0&&ee.images.length===0,S.linkSubplots(Y,ee,Q,V),S.cleanPlot(Y,ee,Q,V);var ge=!(!V._has||!V._has("gl2d")),be=!(!ee._has||!ee._has("gl2d")),we=!(!V._has||!V._has("cartesian"))||ge,ke=!(!ee._has||!ee._has("cartesian"))||be;we&&!ke?V._bgLayer.remove():ke&&!we&&(ee._shouldCreateBgLayer=!0),V._zoomlayer&&!L._dragging&&b({_fullLayout:V}),function(Re,Ie){var Be,Ue=[];Ie.meta&&(Be=Ie._meta={meta:Ie.meta,layout:{meta:Ie.meta}});for(var qe=0;qe0){var Z=1-2*U;V=Math.round(Z*V),te=Math.round(Z*te)}}var X=S.layoutAttributes.width.min,re=S.layoutAttributes.height.min;V1,le=!q.height&&Math.abs(H.height-te)>1;(le||ie)&&(ie&&(H.width=V),le&&(H.height=te)),L._initialAutoSize||(L._initialAutoSize={width:V,height:te}),S.sanitizeMargins(H)},S.supplyLayoutModuleDefaults=function(L,q,H,V){var te,ee,U,Q=d.componentsRegistry,Y=q._basePlotModules,Z=d.subplotsRegistry.cartesian;for(te in Q)(U=Q[te]).includeBasePlot&&U.includeBasePlot(L,q);for(var X in Y.length||Y.push(Z),q._has("cartesian")&&(d.getComponentMethod("grid","contentDefaults")(L,q),Z.finalizeSubplots(L,q)),q._subplots)q._subplots[X].sort(m.subplotSort);for(ee=0;ee1&&(H.l/=Te,H.r/=Te)}if(ie){var Se=(H.t+H.b)/ie;Se>1&&(H.t/=Se,H.b/=Se)}var Oe=H.xl!==void 0?H.xl:H.x,Me=H.xr!==void 0?H.xr:H.x,ce=H.yt!==void 0?H.yt:H.y,ye=H.yb!==void 0?H.yb:H.y;le[q]={l:{val:Oe,size:H.l+pe},r:{val:Me,size:H.r+pe},b:{val:ye,size:H.b+pe},t:{val:ce,size:H.t+pe}},se[q]=1}else delete le[q],delete se[q];if(!V._replotting)return S.doAutoMargin(L)}},S.doAutoMargin=function(L){var q=L._fullLayout,H=q.width,V=q.height;q._size||(q._size={}),$(q);var te=q._size,ee=q.margin,U={t:0,b:0,l:0,r:0},Q=m.extendFlat({},te),Y=ee.l,Z=ee.r,X=ee.t,re=ee.b,ie=q._pushmargin,le=q._pushmarginIds,se=q.minreducedwidth,pe=q.minreducedheight;if(ee.autoexpand!==!1){for(var Te in ie)le[Te]||delete ie[Te];var Se=L._fullLayout._reservedMargin;for(var Oe in Se)for(var Me in Se[Oe]){var ce=Se[Oe][Me];U[Me]=Math.max(U[Me],ce)}for(var ye in ie.base={l:{val:0,size:Y},r:{val:1,size:Z},t:{val:1,size:X},b:{val:0,size:re}},U){var J=0;for(var ne in ie)ne!=="base"&&c(ie[ne][ye].size)&&(J=ie[ne][ye].size>J?ie[ne][ye].size:J);var de=Math.max(0,ee[ye]-J);U[ye]=Math.max(0,U[ye]-de)}for(var xe in ie){var ue=ie[xe].l||{},ge=ie[xe].b||{},be=ue.val,we=ue.size,ke=ge.val,Ae=ge.size,Ee=H-U.r-U.l,De=V-U.t-U.b;for(var Re in ie){if(c(we)&&ie[Re].r){var Ie=ie[Re].r.val,Be=ie[Re].r.size;if(Ie>be){var Ue=(we*Ie+(Be-Ee)*be)/(Ie-be),qe=(Be*(1-be)+(we-Ee)*(1-Ie))/(Ie-be);Ue+qe>Y+Z&&(Y=Ue,Z=qe)}}if(c(Ae)&&ie[Re].t){var Ye=ie[Re].t.val,at=ie[Re].t.size;if(Ye>ke){var lt=(Ae*Ye+(at-De)*ke)/(Ye-ke),ct=(at*(1-ke)+(Ae-De)*(1-Ye))/(Ye-ke);lt+ct>re+X&&(re=lt,X=ct)}}}}}var bt=m.constrain(H-ee.l-ee.r,2,se),ze=m.constrain(V-ee.t-ee.b,2,pe),Ne=Math.max(0,H-bt),Qe=Math.max(0,V-ze);if(Ne){var it=(Y+Z)/Ne;it>1&&(Y/=it,Z/=it)}if(Qe){var kt=(re+X)/Qe;kt>1&&(re/=kt,X/=kt)}if(te.l=Math.round(Y)+U.l,te.r=Math.round(Z)+U.r,te.t=Math.round(X)+U.t,te.b=Math.round(re)+U.b,te.p=Math.round(ee.pad),te.w=Math.round(H)-te.l-te.r,te.h=Math.round(V)-te.t-te.b,!q._replotting&&(S.didMarginChange(Q,te)||function(ut){if("_redrawFromAutoMarginCount"in ut._fullLayout)return!1;var pt=g.list(ut,"",!0);for(var It in pt)if(pt[It].autoshift||pt[It].shift)return!0;return!1}(L))){"_redrawFromAutoMarginCount"in q?q._redrawFromAutoMarginCount++:q._redrawFromAutoMarginCount=1;var Je=3*(1+Object.keys(le).length);if(q._redrawFromAutoMarginCount0&&(L._transitioningWithDuration=!0),L._transitionData._interruptCallbacks.push(function(){V=!0}),H.redraw&&L._transitionData._interruptCallbacks.push(function(){return d.call("redraw",L)}),L._transitionData._interruptCallbacks.push(function(){L.emit("plotly_transitioninterrupted",[])});var Q=0,Y=0;function Z(){return Q++,function(){var X;Y++,V||Y!==Q||(X=U,L._transitionData&&(function(re){if(re)for(;re.length;)re.shift()}(L._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(H.redraw)return d.call("redraw",L)}).then(function(){L._transitioning=!1,L._transitioningWithDuration=!1,L.emit("plotly_transitioned",[])}).then(X)))}}H.runFn(Z),setTimeout(Z())})}],ee=m.syncOrAsync(te,L);return ee&&ee.then||(ee=Promise.resolve()),ee.then(function(){return L})}S.didMarginChange=function(L,q){for(var H=0;H1)return!0}return!1},S.graphJson=function(L,q,H,V,te,ee){(te&&q&&!L._fullData||te&&!q&&!L._fullLayout)&&S.supplyDefaults(L);var U=te?L._fullData:L.data,Q=te?L._fullLayout:L.layout,Y=(L._transitionData||{})._frames;function Z(ie,le){if(typeof ie=="function")return le?"_function_":null;if(m.isPlainObject(ie)){var se,pe={};return Object.keys(ie).sort().forEach(function(Te){if(["_","["].indexOf(Te.charAt(0))===-1)if(typeof ie[Te]!="function"){if(H==="keepdata"){if(Te.substr(Te.length-3)==="src")return}else if(H==="keepstream"){if(typeof(se=ie[Te+"src"])=="string"&&se.indexOf(":")>0&&!m.isPlainObject(ie.stream))return}else if(H!=="keepall"&&typeof(se=ie[Te+"src"])=="string"&&se.indexOf(":")>0)return;pe[Te]=Z(ie[Te],le)}else le&&(pe[Te]="_function")}),pe}return Array.isArray(ie)?ie.map(function(Te){return Z(Te,le)}):m.isTypedArray(ie)?m.simpleMap(ie,m.identity):m.isJSDate(ie)?m.ms2DateTimeLocal(+ie):ie}var X={data:(U||[]).map(function(ie){var le=Z(ie);return q&&delete le.fit,le})};if(!q&&(X.layout=Z(Q),te)){var re=Q._size;X.layout.computed={margin:{b:re.b,l:re.l,r:re.r,t:re.t}}}return Y&&(X.frames=Z(Y)),ee&&(X.config=Z(L._context,!0)),V==="object"?X:JSON.stringify(X)},S.modifyFrames=function(L,q){var H,V,te,ee=L._transitionData._frames,U=L._transitionData._frameHash;for(H=0;H=0;ee--)if(ye[ee].enabled){H._indexToPoints=ye[ee]._indexToPoints;break}V&&V.calc&&(ce=V.calc(L,H))}Array.isArray(ce)&&ce[0]||(ce=[{x:v,y:v}]),ce[0].t||(ce[0].t={}),ce[0].trace=H,Z[Oe]=ce}}for(W(U,Q,Y),te=0;te0){for(var h=[],p=0;p=D&&(R.min=0,F.min=0,A.min=0,_.aaxis&&delete _.aaxis.min,_.baxis&&delete _.baxis.min,_.caxis&&delete _.caxis.min)}function x(_,w,k,T){var M=v[w._name];function S(F,A){return s.coerce(_,w,M,F,A)}S("uirevision",T.uirevision),w.type="linear";var C=S("color"),P=C!==M.color.dflt?C:k.font.color,D=w._name.charAt(0).toUpperCase(),O="Component "+D,R=S("title.text",O);w._hovertitle=R===O?R:D,s.coerceFont(S,"title.font",{family:k.font.family,size:s.bigFont(k.font.size),color:P}),S("min"),m(_,w,S,"linear"),h(_,w,S,"linear"),d(_,w,S,"linear"),p(_,w,S,{outerTicks:!0}),S("showticklabels")&&(s.coerceFont(S,"tickfont",{family:k.font.family,size:k.font.size,color:P}),S("tickangle"),S("tickformat")),y(_,w,S,{dfltColor:C,bgColor:k.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:M}),S("hoverformat"),S("layer")}o.exports=function(_,w,k){c(_,w,k,{type:"ternary",attributes:v,handleDefaults:b,font:w.font,paper_bgcolor:w.paper_bgcolor})}},64380:function(o,a,n){var l=n(39898),f=n(84267),s=n(73972),c=n(71828),d=c.strTranslate,h=c._,p=n(7901),m=n(91424),y=n(21994),v=n(1426).extendFlat,g=n(74875),b=n(89298),x=n(28569),_=n(30211),w=n(64505),k=w.freeMode,T=w.rectMode,M=n(92998),S=n(47322).prepSelect,C=n(47322).selectOnClick,P=n(47322).clearOutline,D=n(47322).clearSelectionsCache,O=n(85555);function R(W,G){this.id=W.id,this.graphDiv=W.graphDiv,this.init(G),this.makeFramework(G),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}o.exports=R;var F=R.prototype;F.init=function(W){this.container=W._ternarylayer,this.defs=W._defs,this.layoutId=W._uid,this.traceHash={},this.layers={}},F.plot=function(W,G){var L=this,q=G[L.id],H=G._size;L._hasClipOnAxisFalse=!1;for(var V=0;VA*le?H=(V=le)*A:V=(H=ie)/A,te=X*H/ie,ee=re*V/le,L=G.l+G.w*Y-H/2,q=G.t+G.h*(1-Z)-V/2,U.x0=L,U.y0=q,U.w=H,U.h=V,U.sum=se,U.xaxis={type:"linear",range:[pe+2*Se-se,se-pe-2*Te],domain:[Y-te/2,Y+te/2],_id:"x"},y(U.xaxis,U.graphDiv._fullLayout),U.xaxis.setScale(),U.xaxis.isPtWithinRange=function(be){return be.a>=U.aaxis.range[0]&&be.a<=U.aaxis.range[1]&&be.b>=U.baxis.range[1]&&be.b<=U.baxis.range[0]&&be.c>=U.caxis.range[1]&&be.c<=U.caxis.range[0]},U.yaxis={type:"linear",range:[pe,se-Te-Se],domain:[Z-ee/2,Z+ee/2],_id:"y"},y(U.yaxis,U.graphDiv._fullLayout),U.yaxis.setScale(),U.yaxis.isPtWithinRange=function(){return!0};var Oe=U.yaxis.domain[0],Me=U.aaxis=v({},W.aaxis,{range:[pe,se-Te-Se],side:"left",tickangle:(+W.aaxis.tickangle||0)-30,domain:[Oe,Oe+ee*A],anchor:"free",position:0,_id:"y",_length:H});y(Me,U.graphDiv._fullLayout),Me.setScale();var ce=U.baxis=v({},W.baxis,{range:[se-pe-Se,Te],side:"bottom",domain:U.xaxis.domain,anchor:"free",position:0,_id:"x",_length:H});y(ce,U.graphDiv._fullLayout),ce.setScale();var ye=U.caxis=v({},W.caxis,{range:[se-pe-Te,Se],side:"right",tickangle:(+W.caxis.tickangle||0)+30,domain:[Oe,Oe+ee*A],anchor:"free",position:0,_id:"y",_length:H});y(ye,U.graphDiv._fullLayout),ye.setScale();var J="M"+L+","+(q+V)+"h"+H+"l-"+H/2+",-"+V+"Z";U.clipDef.select("path").attr("d",J),U.layers.plotbg.select("path").attr("d",J);var ne="M0,"+V+"h"+H+"l-"+H/2+",-"+V+"Z";U.clipDefRelative.select("path").attr("d",ne);var de=d(L,q);U.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",de),U.clipDefRelative.select("path").attr("transform",null);var xe=d(L-ce._offset,q+V);U.layers.baxis.attr("transform",xe),U.layers.bgrid.attr("transform",xe);var ue=d(L+H/2,q)+"rotate(30)"+d(0,-Me._offset);U.layers.aaxis.attr("transform",ue),U.layers.agrid.attr("transform",ue);var ge=d(L+H/2,q)+"rotate(-30)"+d(0,-ye._offset);U.layers.caxis.attr("transform",ge),U.layers.cgrid.attr("transform",ge),U.drawAxes(!0),U.layers.aline.select("path").attr("d",Me.showline?"M"+L+","+(q+V)+"l"+H/2+",-"+V:"M0,0").call(p.stroke,Me.linecolor||"#000").style("stroke-width",(Me.linewidth||0)+"px"),U.layers.bline.select("path").attr("d",ce.showline?"M"+L+","+(q+V)+"h"+H:"M0,0").call(p.stroke,ce.linecolor||"#000").style("stroke-width",(ce.linewidth||0)+"px"),U.layers.cline.select("path").attr("d",ye.showline?"M"+(L+H/2)+","+q+"l"+H/2+","+V:"M0,0").call(p.stroke,ye.linecolor||"#000").style("stroke-width",(ye.linewidth||0)+"px"),U.graphDiv._context.staticPlot||U.initInteractions(),m.setClipUrl(U.layers.frontplot,U._hasClipOnAxisFalse?null:U.clipId,U.graphDiv)},F.drawAxes=function(W){var G=this,L=G.graphDiv,q=G.id.substr(7)+"title",H=G.layers,V=G.aaxis,te=G.baxis,ee=G.caxis;if(G.drawAx(V),G.drawAx(te),G.drawAx(ee),W){var U=Math.max(V.showticklabels?V.tickfont.size/2:0,(ee.showticklabels?.75*ee.tickfont.size:0)+(ee.ticks==="outside"?.87*ee.ticklen:0)),Q=(te.showticklabels?te.tickfont.size:0)+(te.ticks==="outside"?te.ticklen:0)+3;H["a-title"]=M.draw(L,"a"+q,{propContainer:V,propName:G.id+".aaxis.title",placeholder:h(L,"Click to enter Component A title"),attributes:{x:G.x0+G.w/2,y:G.y0-V.title.font.size/3-U,"text-anchor":"middle"}}),H["b-title"]=M.draw(L,"b"+q,{propContainer:te,propName:G.id+".baxis.title",placeholder:h(L,"Click to enter Component B title"),attributes:{x:G.x0-Q,y:G.y0+G.h+.83*te.title.font.size+Q,"text-anchor":"middle"}}),H["c-title"]=M.draw(L,"c"+q,{propContainer:ee,propName:G.id+".caxis.title",placeholder:h(L,"Click to enter Component C title"),attributes:{x:G.x0+G.w+Q,y:G.y0+G.h+.83*ee.title.font.size+Q,"text-anchor":"middle"}})}},F.drawAx=function(W){var G,L=this,q=L.graphDiv,H=W._name,V=H.charAt(0),te=W._id,ee=L.layers[H],U=V+"tickLayout",Q=(G=W).ticks+String(G.ticklen)+String(G.showticklabels);L[U]!==Q&&(ee.selectAll("."+te+"tick").remove(),L[U]=Q),W.setScale();var Y=b.calcTicks(W),Z=b.clipEnds(W,Y),X=b.makeTransTickFn(W),re=b.getTickSigns(W)[2],ie=c.deg2rad(30),le=re*(W.linewidth||1)/2,se=re*W.ticklen,pe=L.w,Te=L.h,Se=V==="b"?"M0,"+le+"l"+Math.sin(ie)*se+","+Math.cos(ie)*se:"M"+le+",0l"+Math.cos(ie)*se+","+-Math.sin(ie)*se,Oe={a:"M0,0l"+Te+",-"+pe/2,b:"M0,0l-"+pe/2+",-"+Te,c:"M0,0l-"+Te+","+pe/2}[V];b.drawTicks(q,W,{vals:W.ticks==="inside"?Z:Y,layer:ee,path:Se,transFn:X,crisp:!1}),b.drawGrid(q,W,{vals:Z,layer:L.layers[V+"grid"],path:Oe,transFn:X,crisp:!1}),b.drawLabels(q,W,{vals:Y,layer:ee,transFn:X,labelFns:b.makeLabelFns(W,0,30)})};var z=O.MINZOOM/2+.87,B="m-0.87,.5h"+z+"v3h-"+(z+5.2)+"l"+(z/2+2.6)+",-"+(.87*z+4.5)+"l2.6,1.5l-"+z/2+","+.87*z+"Z",$="m0.87,.5h-"+z+"v3h"+(z+5.2)+"l-"+(z/2+2.6)+",-"+(.87*z+4.5)+"l-2.6,1.5l"+z/2+","+.87*z+"Z",j="m0,1l"+z/2+","+.87*z+"l2.6,-1.5l-"+(z/2+2.6)+",-"+(.87*z+4.5)+"l-"+(z/2+2.6)+","+(.87*z+4.5)+"l2.6,1.5l"+z/2+",-"+.87*z+"Z",N=!0;function E(W){l.select(W).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}F.clearOutline=function(){D(this.dragOptions),P(this.dragOptions.gd)},F.initInteractions=function(){var W,G,L,q,H,V,te,ee,U,Q,Y,Z,X=this,re=X.layers.plotbg.select("path").node(),ie=X.graphDiv,le=ie._fullLayout._zoomlayer;function se(ne){var de={};return de[X.id+".aaxis.min"]=ne.a,de[X.id+".baxis.min"]=ne.b,de[X.id+".caxis.min"]=ne.c,de}function pe(ne,de){var xe=ie._fullLayout.clickmode;E(ie),ne===2&&(ie.emit("plotly_doubleclick",null),s.call("_guiRelayout",ie,se({a:0,b:0,c:0}))),xe.indexOf("select")>-1&&ne===1&&C(de,ie,[X.xaxis],[X.yaxis],X.id,X.dragOptions),xe.indexOf("event")>-1&&_.click(ie,de,X.id)}function Te(ne,de){return 1-de/X.h}function Se(ne,de){return 1-(ne+(X.h-de)/Math.sqrt(3))/X.w}function Oe(ne,de){return(ne-(X.h-de)/Math.sqrt(3))/X.w}function Me(ne,de){var xe=L+ne*W,ue=q+de*G,ge=Math.max(0,Math.min(1,Te(0,q),Te(0,ue))),be=Math.max(0,Math.min(1,Se(L,q),Se(xe,ue))),we=Math.max(0,Math.min(1,Oe(L,q),Oe(xe,ue))),ke=(ge/2+we)*X.w,Ae=(1-ge/2-be)*X.w,Ee=(ke+Ae)/2,De=Ae-ke,Re=(1-ge)*X.h,Ie=Re-De/A;De.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),Z.transition().style("opacity",1).duration(200),Q=!0),ie.emit("plotly_relayouting",se(te))}function ce(){E(ie),te!==H&&(s.call("_guiRelayout",ie,se(te)),N&&ie.data&&ie._context.showTips&&(c.notifier(h(ie,"Double-click to zoom back out"),"long"),N=!1))}function ye(ne,de){var xe=ne/X.xaxis._m,ue=de/X.yaxis._m,ge=[(te={a:H.a-ue,b:H.b+(xe+ue)/2,c:H.c-(xe-ue)/2}).a,te.b,te.c].sort(c.sorterAsc),be=ge.indexOf(te.a),we=ge.indexOf(te.b),ke=ge.indexOf(te.c);ge[0]<0&&(ge[1]+ge[0]/2<0?(ge[2]+=ge[0]+ge[1],ge[0]=ge[1]=0):(ge[2]+=ge[0]/2,ge[1]+=ge[0]/2,ge[0]=0),te={a:ge[be],b:ge[we],c:ge[ke]},de=(H.a-te.a)*X.yaxis._m,ne=(H.c-te.c-H.b+te.b)*X.xaxis._m);var Ae=d(X.x0+ne,X.y0+de);X.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Ae);var Ee=d(-ne,-de);X.clipDefRelative.select("path").attr("transform",Ee),X.aaxis.range=[te.a,X.sum-te.b-te.c],X.baxis.range=[X.sum-te.a-te.c,te.b],X.caxis.range=[X.sum-te.a-te.b,te.c],X.drawAxes(!1),X._hasClipOnAxisFalse&&X.plotContainer.select(".scatterlayer").selectAll(".trace").call(m.hideOutsideRangePoints,X),ie.emit("plotly_relayouting",se(te))}function J(){s.call("_guiRelayout",ie,se(te))}this.dragOptions={element:re,gd:ie,plotinfo:{id:X.id,domain:ie._fullLayout[X.id].domain,xaxis:X.xaxis,yaxis:X.yaxis},subplot:X.id,prepFn:function(ne,de,xe){X.dragOptions.xaxes=[X.xaxis],X.dragOptions.yaxes=[X.yaxis],W=ie._fullLayout._invScaleX,G=ie._fullLayout._invScaleY;var ue=X.dragOptions.dragmode=ie._fullLayout.dragmode;k(ue)?X.dragOptions.minDrag=1:X.dragOptions.minDrag=void 0,ue==="zoom"?(X.dragOptions.moveFn=Me,X.dragOptions.clickFn=pe,X.dragOptions.doneFn=ce,function(ge,be,we){var ke=re.getBoundingClientRect();L=be-ke.left,q=we-ke.top,ie._fullLayout._calcInverseTransform(ie);var Ae=ie._fullLayout._invTransform,Ee=c.apply3DTransform(Ae)(L,q);L=Ee[0],q=Ee[1],H={a:X.aaxis.range[0],b:X.baxis.range[1],c:X.caxis.range[1]},te=H,V=X.aaxis.range[1]-H.a,ee=f(X.graphDiv._fullLayout[X.id].bgcolor).getLuminance(),U="M0,"+X.h+"L"+X.w/2+", 0L"+X.w+","+X.h+"Z",Q=!1,Y=le.append("path").attr("class","zoombox").attr("transform",d(X.x0,X.y0)).style({fill:ee>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",U),Z=le.append("path").attr("class","zoombox-corners").attr("transform",d(X.x0,X.y0)).style({fill:p.background,stroke:p.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),X.clearOutline(ie)}(0,de,xe)):ue==="pan"?(X.dragOptions.moveFn=ye,X.dragOptions.clickFn=pe,X.dragOptions.doneFn=J,H={a:X.aaxis.range[0],b:X.baxis.range[1],c:X.caxis.range[1]},te=H,X.clearOutline(ie)):(T(ue)||k(ue))&&S(ne,de,xe,X.dragOptions,ue)}},re.onmousemove=function(ne){_.hover(ie,ne,X.id),ie._fullLayout._lasthover=re,ie._fullLayout._hoversubplot=X.id},re.onmouseout=function(ne){ie._dragging||x.unhover(ie,ne)},x.init(this.dragOptions)}},73972:function(o,a,n){var l=n(47769),f=n(64213),s=n(75138),c=n(41965),d=n(24401).addStyleRule,h=n(1426),p=n(9012),m=n(10820),y=h.extendFlat,v=h.extendDeepAll;function g(C){var P=C.name,D=C.categories,O=C.meta;if(a.modules[P])l.log("Type "+P+" already registered");else{a.subplotsRegistry[C.basePlotModule.name]||function(N){var E=N.name;if(a.subplotsRegistry[E])l.log("Plot type "+E+" already registered.");else for(var W in w(N),a.subplotsRegistry[E]=N,a.componentsRegistry)M(W,N.name)}(C.basePlotModule);for(var R={},F=0;F-1&&(x[w[m]].title={text:""});for(m=0;m")!==-1?"":F.html(z).text()});return F.remove(),A}(O)).replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(m,"'"),f.isIE()&&(O=(O=(O=O.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("#$2")')).replace(/(\\')/gi,'"')),O}},75341:function(o,a,n){var l=n(71828);o.exports=function(f,s){for(var c=0;cA+R||!l(F))}for(var B=0;Bm))return d}return h!==void 0?h:c.dflt},a.coerceColor=function(c,d,h){return f(d).isValid()?d:h!==void 0?h:c.dflt},a.coerceEnumerated=function(c,d,h){return c.coerceNumber&&(d=+d),c.values.indexOf(d)!==-1?d:h!==void 0?h:c.dflt},a.getValue=function(c,d){var h;return Array.isArray(c)?d0?se+=pe:k<0&&(se-=pe)}return se}function ee(le){var se=k,pe=le.b,Te=te(le);return l.inbox(pe-se,Te-se,z+(Te-se)/(Te-pe)-1)}var U=v[T+"a"],Q=v[M+"a"];P=Math.abs(U.r2c(U.range[1])-U.r2c(U.range[0]));var Y=l.getDistanceFunction(x,S,C,function(le){return(S(le)+C(le))/2});if(l.getClosest(D,Y,v),v.index!==!1&&D[v.index].p!==p){j||(L=function(le){return Math.min(N(le),le.p-R.bargroupwidth/2)},q=function(le){return Math.max(E(le),le.p+R.bargroupwidth/2)});var Z=D[v.index],X=O.base?Z.b+Z.s:Z.s;v[M+"0"]=v[M+"1"]=Q.c2p(Z[M],!0),v[M+"LabelVal"]=X;var re=R.extents[R.extents.round(Z.p)];v[T+"0"]=U.c2p(F?L(Z):re[0],!0),v[T+"1"]=U.c2p(F?q(Z):re[1],!0);var ie=Z.orig_p!==void 0;return v[T+"LabelVal"]=ie?Z.orig_p:Z.p,v.labelLabel=h(U,v[T+"LabelVal"],O[T+"hoverformat"]),v.valueLabel=h(Q,v[M+"LabelVal"],O[M+"hoverformat"]),v.baseLabel=h(Q,Z.b,O[M+"hoverformat"]),v.spikeDistance=(function(le){var se=k,pe=le.b,Te=te(le);return l.inbox(pe-se,Te-se,B+(Te-se)/(Te-pe)-1)}(Z)+function(le){return H(N(le),E(le),B)}(Z))/2,v[T+"Spike"]=U.c2p(Z.p,!0),c(Z,O,v),v.hovertemplate=O.hovertemplate,v}}function y(v,g){var b=g.mcc||v.marker.color,x=g.mlcc||v.marker.line.color,_=d(v,g);return s.opacity(b)?b:s.opacity(x)&&_?x:void 0}o.exports={hoverPoints:function(v,g,b,x,_){var w=m(v,g,b,x,_);if(w){var k=w.cd,T=k[0].trace,M=k[w.index];return w.color=y(T,M),f.getComponentMethod("errorbars","hoverInfo")(M,T,w),[w]}},hoverOnBars:m,getTraceColor:y}},60822:function(o,a,n){o.exports={attributes:n(1486),layoutAttributes:n(43641),supplyDefaults:n(90769).supplyDefaults,crossTraceDefaults:n(90769).crossTraceDefaults,supplyLayoutDefaults:n(13957),calc:n(92290),crossTraceCalc:n(11661).crossTraceCalc,colorbar:n(4898),arraysToCalcdata:n(75341),plot:n(17295).plot,style:n(16688).style,styleOnSelect:n(16688).styleOnSelect,hoverPoints:n(95423).hoverPoints,eventData:n(58065),selectPoints:n(81974),moduleType:"trace",name:"bar",basePlotModule:n(93612),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}},43641:function(o){o.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},13957:function(o,a,n){var l=n(73972),f=n(89298),s=n(71828),c=n(43641);o.exports=function(d,h,p){function m(T,M){return s.coerce(d,h,c,T,M)}for(var y=!1,v=!1,g=!1,b={},x=m("barmode"),_=0;_0}function F(B){return B==="auto"?0:B}function A(B,$){var j=Math.PI/180*$,N=Math.abs(Math.sin(j)),E=Math.abs(Math.cos(j));return{x:B.width*E+B.height*N,y:B.width*N+B.height*E}}function z(B,$,j,N,E,W){var G=!!W.isHorizontal,L=!!W.constrained,q=W.angle||0,H=W.anchor||"end",V=H==="end",te=H==="start",ee=((W.leftToRight||0)+1)/2,U=1-ee,Q=E.width,Y=E.height,Z=Math.abs($-B),X=Math.abs(N-j),re=Z>2*S&&X>2*S?S:0;Z-=2*re,X-=2*re;var ie=F(q);q!=="auto"||Q<=Z&&Y<=X||!(Q>Z||Y>X)||(Q>X||Y>Z)&&Q.01?we:function(De,Re,Ie){return Ie&&De===Re?De:Math.abs(De-Re)>=2?we(De):De>Re?Math.ceil(De):Math.floor(De)};ne=ke(ne,de,re),de=ke(de,ne,re),xe=ke(xe,ue,!re),ue=ke(ue,xe,!re)}var Ae=O(s.ensureSingle(ye,"path"),q,E,W);if(Ae.style("vector-effect",H?"none":"non-scaling-stroke").attr("d",isNaN((de-ne)*(ue-xe))||ge&&B._context.staticPlot?"M0,0Z":"M"+ne+","+xe+"V"+ue+"H"+de+"V"+xe+"Z").call(h.setClipUrl,$.layerClipId,B),!q.uniformtext.mode&&ie){var Ee=h.makePointStyleFns(U);h.singlePointStyle(Se,Ae,U,Ee,B)}(function(De,Re,Ie,Be,Ue,qe,Ye,at,lt,ct,bt){var ze,Ne=Re.xaxis,Qe=Re.yaxis,it=De._fullLayout;function kt(Dt,gt,ht){return s.ensureSingle(Dt,"text").text(gt).attr({class:"bartext bartext-"+ze,"text-anchor":"middle","data-notex":1}).call(h.font,ht).call(c.convertToTspans,De)}var Je=Be[0].trace,ut=Je.orientation==="h",pt=function(Dt,gt,ht,yt,qt){var Et,jt=gt[0].trace;return Et=jt.texttemplate?function(Tt,Ot,At,Lt,Rt){var $t=Ot[0].trace,Yt=s.castOption($t,At,"texttemplate");if(!Yt)return"";var Xt,Bt,Wt,tn,cn=$t.type==="histogram",ln=$t.type==="waterfall",an=$t.type==="funnel",sn=$t.orientation==="h";function Zt(xn){return m(tn,tn.c2l(xn),!0).text}sn?(Xt="y",Bt=Rt,Wt="x",tn=Lt):(Xt="x",Bt=Lt,Wt="y",tn=Rt);var pn,nn=Ot[At],Kt={};Kt.label=nn.p,Kt.labelLabel=Kt[Xt+"Label"]=(pn=nn.p,m(Bt,Bt.c2l(pn),!0).text);var Cn=s.castOption($t,nn.i,"text");(Cn===0||Cn)&&(Kt.text=Cn),Kt.value=nn.s,Kt.valueLabel=Kt[Wt+"Label"]=Zt(nn.s);var _n={};M(_n,$t,nn.i),(cn||_n.x===void 0)&&(_n.x=sn?Kt.value:Kt.label),(cn||_n.y===void 0)&&(_n.y=sn?Kt.label:Kt.value),(cn||_n.xLabel===void 0)&&(_n.xLabel=sn?Kt.valueLabel:Kt.labelLabel),(cn||_n.yLabel===void 0)&&(_n.yLabel=sn?Kt.labelLabel:Kt.valueLabel),ln&&(Kt.delta=+nn.rawS||nn.s,Kt.deltaLabel=Zt(Kt.delta),Kt.final=nn.v,Kt.finalLabel=Zt(Kt.final),Kt.initial=Kt.final-Kt.delta,Kt.initialLabel=Zt(Kt.initial)),an&&(Kt.value=nn.s,Kt.valueLabel=Zt(Kt.value),Kt.percentInitial=nn.begR,Kt.percentInitialLabel=s.formatPercent(nn.begR),Kt.percentPrevious=nn.difR,Kt.percentPreviousLabel=s.formatPercent(nn.difR),Kt.percentTotal=nn.sumR,Kt.percenTotalLabel=s.formatPercent(nn.sumR));var Pn=s.castOption($t,nn.i,"customdata");return Pn&&(Kt.customdata=Pn),s.texttemplateString(Yt,Kt,Tt._d3locale,_n,Kt,$t._meta||{})}(Dt,gt,ht,yt,qt):jt.textinfo?function(Tt,Ot,At,Lt){var Rt=Tt[0].trace,$t=Rt.orientation==="h",Yt=Rt.type==="waterfall",Xt=Rt.type==="funnel";function Bt(Pn){return m($t?At:Lt,+Pn,!0).text}var Wt,tn,cn=Rt.textinfo,ln=Tt[Ot],an=cn.split("+"),sn=[],Zt=function(Pn){return an.indexOf(Pn)!==-1};if(Zt("label")&&sn.push((tn=Tt[Ot].p,m($t?Lt:At,tn,!0).text)),Zt("text")&&((Wt=s.castOption(Rt,ln.i,"text"))===0||Wt)&&sn.push(Wt),Yt){var pn=+ln.rawS||ln.s,nn=ln.v,Kt=nn-pn;Zt("initial")&&sn.push(Bt(Kt)),Zt("delta")&&sn.push(Bt(pn)),Zt("final")&&sn.push(Bt(nn))}if(Xt){Zt("value")&&sn.push(Bt(ln.s));var Cn=0;Zt("percent initial")&&Cn++,Zt("percent previous")&&Cn++,Zt("percent total")&&Cn++;var _n=Cn>1;Zt("percent initial")&&(Wt=s.formatPercent(ln.begR),_n&&(Wt+=" of initial"),sn.push(Wt)),Zt("percent previous")&&(Wt=s.formatPercent(ln.difR),_n&&(Wt+=" of previous"),sn.push(Wt)),Zt("percent total")&&(Wt=s.formatPercent(ln.sumR),_n&&(Wt+=" of total"),sn.push(Wt))}return sn.join("
")}(gt,ht,yt,qt):x.getValue(jt.text,ht),x.coerceString(k,Et)}(it,Be,Ue,Ne,Qe);ze=function(Dt,gt){var ht=x.getValue(Dt.textposition,gt);return x.coerceEnumerated(T,ht)}(Je,Ue);var It=ct.mode==="stack"||ct.mode==="relative",Mt=Be[Ue],zt=!It||Mt._outmost;if(pt&&ze!=="none"&&(!Mt.isBlank&&qe!==Ye&&at!==lt||ze!=="auto"&&ze!=="inside")){var wt=it.font,ve=b.getBarColor(Be[Ue],Je),_e=b.getInsideTextFont(Je,Ue,wt,ve),Ve=b.getOutsideTextFont(Je,Ue,wt),We=Ie.datum();ut?Ne.type==="log"&&We.s0<=0&&(qe=Ne.range[0]0&&nt>0&&(Ke<=mt&&nt<=tt||Ke<=tt&&nt<=mt||(ut?mt>=Ke*(tt/nt):tt>=nt*(mt/Ke)))?ze="inside":(ze="outside",Ze.remove(),Ze=null)):ze="inside"),!Ze){var Ft=(Ze=kt(Ie,pt,st=s.ensureUniformFontSize(De,ze==="outside"?Ve:_e))).attr("transform");if(Ze.attr("transform",""),Ke=(Ge=h.bBox(Ze.node())).width,nt=Ge.height,Ze.attr("transform",Ft),Ke<=0||nt<=0)return void Ze.remove()}var Vt,St=Je.textangle;Vt=ze==="outside"?function(Dt,gt,ht,yt,qt,Et){var jt,Tt=!!Et.isHorizontal,Ot=!!Et.constrained,At=Et.angle||0,Lt=qt.width,Rt=qt.height,$t=Math.abs(gt-Dt),Yt=Math.abs(yt-ht);jt=Tt?Yt>2*S?S:0:$t>2*S?S:0;var Xt=1;Ot&&(Xt=Tt?Math.min(1,Yt/Rt):Math.min(1,$t/Lt));var Bt=F(At),Wt=A(qt,Bt),tn=(Tt?Wt.x:Wt.y)/2,cn=(qt.left+qt.right)/2,ln=(qt.top+qt.bottom)/2,an=(Dt+gt)/2,sn=(ht+yt)/2,Zt=0,pn=0,nn=Tt?D(gt,Dt):D(ht,yt);return Tt?(an=gt-nn*jt,Zt=nn*tn):(sn=yt+nn*jt,pn=-nn*tn),{textX:cn,textY:ln,targetX:an,targetY:sn,anchorX:Zt,anchorY:pn,scale:Xt,rotate:Bt}}(qe,Ye,at,lt,Ge,{isHorizontal:ut,constrained:Je.constraintext==="both"||Je.constraintext==="outside",angle:St}):z(qe,Ye,at,lt,Ge,{isHorizontal:ut,constrained:Je.constraintext==="both"||Je.constraintext==="inside",angle:St,anchor:Je.insidetextanchor}),Vt.fontSize=st.size,v(Je.type==="histogram"?"bar":Je.type,Vt,it),Mt.transform=Vt;var Nt=O(Ze,it,ct,bt);s.setTransormAndDisplay(Nt,Vt)}else Ie.select("text").remove()})(B,$,ye,te,Oe,ne,de,xe,ue,E,W),$.layerClipId&&h.hideOutsideRangePoint(Se,ye.select("text"),G,L,U.xcalendar,U.ycalendar)});var Te=U.cliponaxis===!1;h.setClipUrl(ee,Te?null:$.layerClipId,B)});p.getComponentMethod("errorbars","plot")(B,V,$,E)},toMoveInsideBar:z}},81974:function(o){function a(n,l,f,s,c){var d=l.c2p(s?n.s0:n.p0,!0),h=l.c2p(s?n.s1:n.p1,!0),p=f.c2p(s?n.p0:n.s0,!0),m=f.c2p(s?n.p1:n.s1,!0);return c?[(d+h)/2,(p+m)/2]:s?[h,(p+m)/2]:[(d+h)/2,m]}o.exports=function(n,l){var f,s=n.cd,c=n.xaxis,d=n.yaxis,h=s[0].trace,p=h.type==="funnel",m=h.orientation==="h",y=[];if(l===!1)for(f=0;f1||O.bargap===0&&O.bargroupgap===0&&!R[0].trace.marker.line.width)&&l.select(this).attr("shape-rendering","crispEdges")}),P.selectAll("g.points").each(function(R){b(l.select(this),R[0].trace,C)}),d.getComponentMethod("errorbars","style")(P)},styleTextPoints:x,styleOnSelect:function(C,P,D){var O=P[0].trace;O.selectedpoints?function(R,F,A){s.selectedPointStyle(R.selectAll("path"),F),function(z,B,$){z.each(function(j){var N,E=l.select(this);if(j.selected){N=c.ensureUniformFontSize($,_(E,j,B,$));var W=B.selected.textfont&&B.selected.textfont.color;W&&(N.color=W),s.font(E,N)}else s.selectedTextStyle(E,B)})}(R.selectAll("text"),F,A)}(D,O,C):(b(D,O,C),d.getComponentMethod("errorbars","style")(D))},getInsideTextFont:k,getOutsideTextFont:T,getBarColor:S,resizeText:h}},98340:function(o,a,n){var l=n(7901),f=n(52075).hasColorscale,s=n(1586),c=n(71828).coercePattern;o.exports=function(d,h,p,m,y){var v=p("marker.color",m),g=f(d,"marker");g&&s(d,h,y,p,{prefix:"marker.",cLetter:"c"}),p("marker.line.color",l.defaultLine),f(d,"marker.line")&&s(d,h,y,p,{prefix:"marker.line.",cLetter:"c"}),p("marker.line.width"),p("marker.opacity"),c(p,"marker.pattern",v,g),p("selected.marker.color"),p("unselected.marker.color")}},72597:function(o,a,n){var l=n(39898),f=n(71828);function s(c){return"_"+c+"Text_minsize"}o.exports={recordMinTextSize:function(c,d,h){if(h.uniformtext.mode){var p=s(c),m=h.uniformtext.minsize,y=d.scale*d.fontSize;d.hide=yj.uf};if(T._hasPreCompStats){var Y=T[P],Z=function(Re){return C.d2c((T[Re]||[])[M])},X=1/0,re=-1/0;for(M=0;M=j.q1&&j.q3>=j.med){var le=Z("lowerfence");j.lf=le!==d&&le<=j.q1?le:g(j,E,W);var se=Z("upperfence");j.uf=se!==d&&se>=j.q3?se:b(j,E,W);var pe=Z("mean");j.mean=pe!==d?pe:W?c.mean(E,W):(j.q1+j.q3)/2;var Te=Z("sd");j.sd=pe!==d&&Te>=0?Te:W?c.stdev(E,W,j.mean):j.q3-j.q1,j.lo=x(j),j.uo=_(j);var Se=Z("notchspan");Se=Se!==d&&Se>0?Se:w(j,W),j.ln=j.med-Se,j.un=j.med+Se;var Oe=j.lf,Me=j.uf;T.boxpoints&&E.length&&(Oe=Math.min(Oe,E[0]),Me=Math.max(Me,E[W-1])),T.notched&&(Oe=Math.min(Oe,j.ln),Me=Math.max(Me,j.un)),j.min=Oe,j.max=Me}else{var ce;c.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+j.q1,"median = "+j.med,"q3 = "+j.q3].join(` +`)),ce=j.med!==d?j.med:j.q1!==d?j.q3!==d?(j.q1+j.q3)/2:j.q1:j.q3!==d?j.q3:0,j.med=ce,j.q1=j.q3=ce,j.lf=j.uf=ce,j.mean=j.sd=ce,j.ln=j.un=ce,j.min=j.max=ce}X=Math.min(X,j.min),re=Math.max(re,j.max),j.pts2=N.filter(Q),B.push(j)}}T._extremes[C._id]=f.findExtremes(C,[X,re],{padded:!0})}else{var ye=C.makeCalcdata(T,P),J=function(Re,Ie){for(var Be=Re.length,Ue=new Array(Be+1),qe=0;qe=0&&xe0){var Ae,Ee;(j={}).pos=j[O]=ee[M],N=j.pts=de[M].sort(y),W=(E=j[P]=N.map(v)).length,j.min=E[0],j.max=E[W-1],j.mean=c.mean(E,W),j.sd=c.stdev(E,W,j.mean)*T.sdmultiple,j.med=c.interp(E,.5),W%2&&(we||ke)?(we?(Ae=E.slice(0,W/2),Ee=E.slice(W/2+1)):ke&&(Ae=E.slice(0,W/2+1),Ee=E.slice(W/2)),j.q1=c.interp(Ae,.5),j.q3=c.interp(Ee,.5)):(j.q1=c.interp(E,.25),j.q3=c.interp(E,.75)),j.lf=g(j,E,W),j.uf=b(j,E,W),j.lo=x(j),j.uo=_(j);var De=w(j,W);j.ln=j.med-De,j.un=j.med+De,ue=Math.min(ue,j.ln),ge=Math.max(ge,j.un),j.pts2=N.filter(Q),B.push(j)}T._extremes[C._id]=f.findExtremes(C,T.notched?ye.concat([ue,ge]):ye,{padded:!0})}return function(Re,Ie){if(c.isArrayOrTypedArray(Ie.selectedpoints))for(var Be=0;Be0?(B[0].t={num:F[$],dPos:U,posLetter:O,valLetter:P,labels:{med:h(k,"median:"),min:h(k,"min:"),q1:h(k,"q1:"),q3:h(k,"q3:"),max:h(k,"max:"),mean:T.boxmean==="sd"||T.sizemode==="sd"?h(k,"mean ± σ:").replace("σ",T.sdmultiple===1?"σ":T.sdmultiple+"σ"):h(k,"mean:"),lf:h(k,"lower fence:"),uf:h(k,"upper fence:")}},F[$]++,B):[{t:{empty:!0}}]};var p={text:"tx",hovertext:"htx"};function m(k,T,M){for(var S in p)c.isArrayOrTypedArray(T[S])&&(Array.isArray(M)?c.isArrayOrTypedArray(T[S][M[0]])&&(k[p[S]]=T[S][M[0]][M[1]]):k[p[S]]=T[S][M])}function y(k,T){return k.v-T.v}function v(k){return k.v}function g(k,T,M){return M===0?k.q1:Math.min(k.q1,T[Math.min(c.findBin(2.5*k.q1-1.5*k.q3,T,!0)+1,M-1)])}function b(k,T,M){return M===0?k.q3:Math.max(k.q3,T[Math.max(c.findBin(2.5*k.q3-1.5*k.q1,T),0)])}function x(k){return 4*k.q1-3*k.q3}function _(k){return 4*k.q3-3*k.q1}function w(k,T){return T===0?0:1.57*(k.q3-k.q1)/Math.sqrt(T)}},37188:function(o,a,n){var l=n(89298),f=n(71828),s=n(99082).getAxisGroup,c=["v","h"];function d(h,p,m,y){var v,g,b,x=p.calcdata,_=p._fullLayout,w=y._id,k=w.charAt(0),T=[],M=0;for(v=0;v1,O=1-_[h+"gap"],R=1-_[h+"groupgap"];for(v=0;v0){var ie=N.pointpos,le=N.jitter,se=N.marker.size/2,pe=0;ie+le>=0&&((pe=X*(ie+le))>$?(re=!0,Y=se,U=pe):pe>te&&(Y=se,U=$)),pe<=$&&(U=$);var Te=0;ie-le<=0&&((Te=-X*(ie-le))>j?(re=!0,Z=se,Q=Te):Te>ee&&(Z=se,Q=j)),Te<=j&&(Q=j)}else U=$,Q=j;var Se=new Array(b.length);for(g=0;g0?(D="v",O=F>0?Math.min(z,A):Math.min(A)):F>0?(D="h",O=Math.min(z)):O=0;if(O){g._length=O;var W=b("orientation",D);g._hasPreCompStats?W==="v"&&F===0?(b("x0",0),b("dx",1)):W==="h"&&R===0&&(b("y0",0),b("dy",1)):W==="v"&&F===0?b("x0"):W==="h"&&R===0&&b("y0"),f.getComponentMethod("calendars","handleTraceDefaults")(v,g,["x","y"],x)}else g.visible=!1}function y(v,g,b,x){var _=x.prefix,w=l.coerce2(v,g,p,"marker.outliercolor"),k=b("marker.line.outliercolor"),T="outliers";g._hasPreCompStats?T="all":(w||k)&&(T="suspectedoutliers");var M=b(_+"points",T);M?(b("jitter",M==="all"?.3:0),b("pointpos",M==="all"?-1.5:0),b("marker.symbol"),b("marker.opacity"),b("marker.size"),b("marker.angle"),b("marker.color",g.line.color),b("marker.line.color"),b("marker.line.width"),M==="suspectedoutliers"&&(b("marker.line.outliercolor",g.marker.color),b("marker.line.outlierwidth")),b("selected.marker.color"),b("unselected.marker.color"),b("selected.marker.size"),b("unselected.marker.size"),b("text"),b("hovertext")):delete g.marker;var S=b("hoveron");S!=="all"&&S.indexOf("points")===-1||b("hovertemplate"),l.coerceSelectionMarkerOpacity(g,b)}o.exports={supplyDefaults:function(v,g,b,x){function _(O,R){return l.coerce(v,g,p,O,R)}if(m(v,g,_,x),g.visible!==!1){c(v,g,x,_),_("xhoverformat"),_("yhoverformat");var w=g._hasPreCompStats;w&&(_("lowerfence"),_("upperfence")),_("line.color",(v.marker||{}).color||b),_("line.width"),_("fillcolor",s.addOpacity(g.line.color,.5));var k=!1;if(w){var T=_("mean"),M=_("sd");T&&T.length&&(k=!0,M&&M.length&&(k="sd"))}_("whiskerwidth");var S,C=_("sizemode");C==="quartiles"&&(S=_("boxmean",k)),_("showwhiskers",C==="quartiles"),C!=="sd"&&S!=="sd"||_("sdmultiple"),_("width"),_("quartilemethod");var P=!1;if(w){var D=_("notchspan");D&&D.length&&(P=!0)}else l.validate(v.notchwidth,p.notchwidth)&&(P=!0);_("notched",P)&&_("notchwidth"),y(v,g,_,{prefix:"box"})}},crossTraceDefaults:function(v,g){var b,x;function _(T){return l.coerce(x._input,x,p,T)}for(var w=0;wM.lo&&(E.so=!0)}return P});T.enter().append("path").classed("point",!0),T.exit().remove(),T.call(s.translatePoints,g,b)}function h(p,m,y,v){var g,b,x=m.val,_=m.pos,w=!!_.rangebreaks,k=v.bPos,T=v.bPosPxOffset||0,M=y.boxmean||(y.meanline||{}).visible;Array.isArray(v.bdPos)?(g=v.bdPos[0],b=v.bdPos[1]):(g=v.bdPos,b=v.bdPos);var S=p.selectAll("path.mean").data(y.type==="box"&&y.boxmean||y.type==="violin"&&y.box.visible&&y.meanline.visible?f.identity:[]);S.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),S.exit().remove(),S.each(function(C){var P=_.c2l(C.pos+k,!0),D=_.l2p(P-g)+T,O=_.l2p(P+b)+T,R=w?(D+O)/2:_.l2p(P)+T,F=x.c2p(C.mean,!0),A=x.c2p(C.mean-C.sd,!0),z=x.c2p(C.mean+C.sd,!0);y.orientation==="h"?l.select(this).attr("d","M"+F+","+D+"V"+O+(M==="sd"?"m0,0L"+A+","+R+"L"+F+","+D+"L"+z+","+R+"Z":"")):l.select(this).attr("d","M"+D+","+F+"H"+O+(M==="sd"?"m0,0L"+R+","+A+"L"+D+","+F+"L"+R+","+z+"Z":""))})}o.exports={plot:function(p,m,y,v){var g=p._context.staticPlot,b=m.xaxis,x=m.yaxis;f.makeTraceGroups(v,y,"trace boxes").each(function(_){var w,k,T=l.select(this),M=_[0],S=M.t,C=M.trace;S.wdPos=S.bdPos*C.whiskerwidth,C.visible!==!0||S.empty?T.remove():(C.orientation==="h"?(w=x,k=b):(w=b,k=x),c(T,{pos:w,val:k},C,S,g),d(T,{x:b,y:x},C,S),h(T,{pos:w,val:k},C,S))})},plotBoxAndWhiskers:c,plotPoints:d,plotBoxMean:h}},24626:function(o){o.exports=function(a,n){var l,f,s=a.cd,c=a.xaxis,d=a.yaxis,h=[];if(n===!1)for(l=0;ld.level||d.starts.length&&c===d.level)}break;case"constraint":if(f.prefixBoundary=!1,f.edgepaths.length)return;var h=f.x.length,p=f.y.length,m=-1/0,y=1/0;for(l=0;l":b>m&&(f.prefixBoundary=!0);break;case"<":(bm||f.starts.length&&g===y)&&(f.prefixBoundary=!0);break;case"][":v=Math.min(b[0],b[1]),g=Math.max(b[0],b[1]),vm&&(f.prefixBoundary=!0)}}}},90654:function(o,a,n){var l=n(21081),f=n(86068),s=n(53572);o.exports={min:"zmin",max:"zmax",calc:function(c,d,h){var p=d.contours,m=d.line,y=p.size||1,v=p.coloring,g=f(d,{isColorbar:!0});if(v==="heatmap"){var b=l.extractOpts(d);h._fillgradient=b.reversescale?l.flipScale(b.colorscale):b.colorscale,h._zrange=[b.min,b.max]}else v==="fill"&&(h._fillcolor=g);h._line={color:v==="lines"?g:m.color,width:p.showlines!==!1?m.width:0,dash:m.dash},h._levels={start:p.start,end:s(p),size:y}}}},36914:function(o){o.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},83179:function(o,a,n){var l=n(92770),f=n(14523),s=n(7901),c=s.addOpacity,d=s.opacity,h=n(74808),p=h.CONSTRAINT_REDUCTION,m=h.COMPARISON_OPS2;o.exports=function(y,v,g,b,x,_){var w,k,T,M=v.contours,S=g("contours.operation");M._operation=p[S],function(C,P){var D;m.indexOf(P.operation)===-1?(C("contours.value",[0,1]),Array.isArray(P.value)?P.value.length>2?P.value=P.value.slice(2):P.length===0?P.value=[0,1]:P.length<2?(D=parseFloat(P.value[0]),P.value=[D,D+1]):P.value=[parseFloat(P.value[0]),parseFloat(P.value[1])]:l(P.value)&&(D=parseFloat(P.value),P.value=[D,D+1])):(C("contours.value",0),l(P.value)||(Array.isArray(P.value)?P.value=parseFloat(P.value[0]):P.value=0))}(g,M),S==="="?w=M.showlines=!0:(w=g("contours.showlines"),T=g("fillcolor",c((y.line||{}).color||x,.5))),w&&(k=g("line.color",T&&d(T)?c(v.fillcolor,1):x),g("line.width",2),g("line.dash")),g("line.smoothing"),f(g,b,k,_)}},64237:function(o,a,n){var l=n(74808),f=n(92770);function s(h,p){var m,y=Array.isArray(p);function v(g){return f(g)?+g:null}return l.COMPARISON_OPS2.indexOf(h)!==-1?m=v(y?p[0]:p):l.INTERVAL_OPS.indexOf(h)!==-1?m=y?[v(p[0]),v(p[1])]:[v(p),v(p)]:l.SET_OPS.indexOf(h)!==-1&&(m=y?p.map(v):[v(p)]),m}function c(h){return function(p){p=s(h,p);var m=Math.min(p[0],p[1]),y=Math.max(p[0],p[1]);return{start:m,end:y,size:y-m}}}function d(h){return function(p){return{start:p=s(h,p),end:1/0,size:1/0}}}o.exports={"[]":c("[]"),"][":c("]["),">":d(">"),"<":d("<"),"=":d("=")}},67217:function(o){o.exports=function(a,n,l,f){var s=f("contours.start"),c=f("contours.end"),d=s===!1||c===!1,h=l("contours.size");!(d?n.autocontour=!0:l("autocontour",!1))&&h||l("ncontours")}},84857:function(o,a,n){var l=n(71828);function f(s){return l.extendFlat({},s,{edgepaths:l.extendDeep([],s.edgepaths),paths:l.extendDeep([],s.paths),starts:l.extendDeep([],s.starts)})}o.exports=function(s,c){var d,h,p,m=function(g){return g.reverse()},y=function(g){return g};switch(c){case"=":case"<":return s;case">":for(s.length!==1&&l.warn("Contour data invalid for the specified inequality operation."),h=s[0],d=0;d1e3){l.warn("Too many contours, clipping at 1000",c);break}return y}},53572:function(o){o.exports=function(a){return a.end+a.size/1e6}},81696:function(o,a,n){var l=n(71828),f=n(36914);function s(h,p,m,y){return Math.abs(h[0]-p[0])20&&re?X===208||X===1114?le=ie[0]===0?1:-1:se=ie[1]===0?1:-1:f.BOTTOMSTART.indexOf(X)!==-1?se=1:f.LEFTSTART.indexOf(X)!==-1?le=1:f.TOPSTART.indexOf(X)!==-1?se=-1:le=-1,[le,se]}(x,m,p),w=[d(h,p,[-_[0],-_[1]])],k=h.z.length,T=h.z[0].length,M=p.slice(),S=_.slice();for(g=0;g<1e4;g++){if(x>20?(x=f.CHOOSESADDLE[x][(_[0]||_[1])<0?0:1],h.crossings[b]=f.SADDLEREMAINDER[x]):delete h.crossings[b],!(_=f.NEWDELTA[x])){l.log("Found bad marching index:",x,p,h.level);break}w.push(d(h,p,_)),p[0]+=_[0],p[1]+=_[1],b=p.join(","),s(w[w.length-1],w[w.length-2],y,v)&&w.pop();var C=_[0]&&(p[0]<0||p[0]>T-2)||_[1]&&(p[1]<0||p[1]>k-2);if(p[0]===M[0]&&p[1]===M[1]&&_[0]===S[0]&&_[1]===S[1]||m&&C)break;x=h.crossings[b]}g===1e4&&l.log("Infinite loop in contour?");var P,D,O,R,F,A,z,B,$,j,N,E,W,G,L,q=s(w[0],w[w.length-1],y,v),H=0,V=.2*h.smoothing,te=[],ee=0;for(g=1;g=ee;g--)if((P=te[g])=ee&&P+te[D]B&&$--,h.edgepaths[$]=N.concat(w,j));break}Z||(h.edgepaths[B]=w.concat(j))}for(B=0;B=S)&&(h<=M&&(h=M),p>=S&&(p=S),y=Math.floor((p-h)/m)+1,v=0),x=0;xM&&(k.unshift(M),T.unshift(T[0])),k[k.length-1]s?0:1)+(c[0][1]>s?0:2)+(c[1][1]>s?0:4)+(c[1][0]>s?0:8);return d===5||d===10?s>(c[0][0]+c[0][1]+c[1][0]+c[1][1])/4?d===5?713:1114:d===5?104:208:d===15?0:d}o.exports=function(s){var c,d,h,p,m,y,v,g,b,x=s[0].z,_=x.length,w=x[0].length,k=_===2||w===2;for(d=0;d<_-1;d++)for(p=[],d===0&&(p=p.concat(l.BOTTOMSTART)),d===_-2&&(p=p.concat(l.TOPSTART)),c=0;c=0&&(D=L,R=F):Math.abs(P[1]-D[1])<.01?Math.abs(P[1]-L[1])<.01&&(L[0]-P[0])*(D[0]-L[0])>=0&&(D=L,R=F):f.log("endpt to newendpt is not vert. or horz.",P,D,L)}if(P=D,R>=0)break;B+="L"+D}if(R===S.edgepaths.length){f.log("unclosed perimeter path");break}$=R,(N=j.indexOf($)===-1)&&($=j[0],B+="Z")}for($=0;$D.center?D.right-F:F-D.left)/(B+Math.abs(Math.sin(z)*R)),N=(A>D.middle?D.bottom-A:A-D.top)/(Math.abs($)+Math.cos(z)*R);if(j<1||N<1)return 1/0;var E=w.EDGECOST*(1/(j-1)+1/(N-1));E+=w.ANGLECOST*z*z;for(var W=F-B,G=A-$,L=F+B,q=A+$,H=0;H2*w.MAXCOST)break;N&&(F/=2),A=(R=z-F/2)+1.5*F}if(j<=w.MAXCOST)return B},a.addLabelData=function(S,C,P,D){var O=C.fontSize,R=C.width+O/3,F=Math.max(0,C.height-O/3),A=S.x,z=S.y,B=S.theta,$=Math.sin(B),j=Math.cos(B),N=function(W,G){return[A+W*j-G*$,z+W*$+G*j]},E=[N(-R/2,-F/2),N(-R/2,F/2),N(R/2,F/2),N(R/2,-F/2)];P.push({text:C.text,x:A,y:z,dy:C.dy,theta:B,level:C.level,width:R,height:F}),D.push(E)},a.drawLabels=function(S,C,P,D,O){var R=S.selectAll("text").data(C,function(z){return z.text+","+z.x+","+z.y+","+z.theta});if(R.exit().remove(),R.enter().append("text").attr({"data-notex":1,"text-anchor":"middle"}).each(function(z){var B=z.x+Math.sin(z.theta)*z.dy,$=z.y-Math.cos(z.theta)*z.dy;l.select(this).text(z.text).attr({x:B,y:$,transform:"rotate("+180*z.theta/Math.PI+" "+B+" "+$+")"}).call(d.convertToTspans,P)}),O){for(var F="",A=0;Ah.end&&(h.start=h.end=(h.start+h.end)/2),c._input.contours||(c._input.contours={}),f.extendFlat(c._input.contours,{start:h.start,end:h.end,size:h.size}),c._input.autocontour=!0}else if(h.type!=="constraint"){var v,g=h.start,b=h.end,x=c._input.contours;g>b&&(h.start=x.start=b,b=h.end=x.end=g,g=h.start),h.size>0||(v=g===b?1:s(g,b,c.ncontours).dtick,x.size=h.size=v)}}},84426:function(o,a,n){var l=n(39898),f=n(91424),s=n(70035),c=n(86068);o.exports=function(d){var h=l.select(d).selectAll("g.contour");h.style("opacity",function(p){return p[0].trace.opacity}),h.each(function(p){var m=l.select(this),y=p[0].trace,v=y.contours,g=y.line,b=v.size||1,x=v.start,_=v.type==="constraint",w=!_&&v.coloring==="lines",k=!_&&v.coloring==="fill",T=w||k?c(y):null;m.selectAll("g.contourlevel").each(function(C){l.select(this).selectAll("path").call(f.lineGroupStyle,g.width,w?T(C.level):g.color,g.dash)});var M=v.labelfont;if(m.selectAll("g.contourlabels text").each(function(C){f.font(l.select(this),{family:M.family,size:M.size,color:M.color||(w?T(C.level):g.color)})}),_)m.selectAll("g.contourfill path").style("fill",y.fillcolor);else if(k){var S;m.selectAll("g.contourfill path").style("fill",function(C){return S===void 0&&(S=C.level),T(C.level+.5*b)}),S===void 0&&(S=x),m.selectAll("g.contourbg path").style("fill",T(S-.5*b))}}),s(d)}},8724:function(o,a,n){var l=n(1586),f=n(14523);o.exports=function(s,c,d,h,p){var m,y=d("contours.coloring"),v="";y==="fill"&&(m=d("contours.showlines")),m!==!1&&(y!=="lines"&&(v=d("line.color","#000")),d("line.width",.5),d("line.dash")),y!=="none"&&(s.showlegend!==!0&&(c.showlegend=!1),c._dfltShowLegend=!1,l(s,c,h,d,{prefix:"",cLetter:"z"})),d("line.smoothing"),f(d,h,v,p)}},21606:function(o,a,n){var l=n(82196),f=n(9012),s=n(41940),c=n(12663).axisHoverFormat,d=n(5386).fF,h=n(5386).si,p=n(50693),m=n(1426).extendFlat;o.exports=m({z:{valType:"data_array",editType:"calc"},x:m({},l.x,{impliedEdits:{xtype:"array"}}),x0:m({},l.x0,{impliedEdits:{xtype:"scaled"}}),dx:m({},l.dx,{impliedEdits:{xtype:"scaled"}}),y:m({},l.y,{impliedEdits:{ytype:"array"}}),y0:m({},l.y0,{impliedEdits:{ytype:"scaled"}}),dy:m({},l.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:m({},l.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:m({},l.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:m({},l.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:m({},l.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:m({},l.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:m({},l.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:c("x"),yhoverformat:c("y"),zhoverformat:c("z",1),hovertemplate:d(),texttemplate:h({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:s({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:m({},f.showlegend,{dflt:!1})},{transforms:void 0},p("",{cLetter:"z",autoColorDflt:!1}))},90757:function(o,a,n){var l=n(73972),f=n(71828),s=n(89298),c=n(42973),d=n(17562),h=n(78803),p=n(68296),m=n(4742),y=n(824),v=n(43907),g=n(70769),b=n(50606).BADNUM;function x(_){for(var w=[],k=_.length,T=0;T1){var Z=(Y[Y.length-1]-Y[0])/(Y.length-1),X=Math.abs(Z/100);for(F=0;FX)return!1}return!0}(z.rangebreaks||B.rangebreaks)&&(R=function(Y,Z,X){for(var re=[],ie=-1,le=0;le=0;p--)(m=((b[[(c=(h=x[p])[0])-1,d=h[1]]]||k)[2]+(b[[c+1,d]]||k)[2]+(b[[c,d-1]]||k)[2]+(b[[c,d+1]]||k)[2])/20)&&(y[h]=[c,d,m],x.splice(p,1),v=!0);if(!v)throw"findEmpties iterated with no new neighbors";for(h in y)b[h]=y[h],g.push(y[h])}return g.sort(function(M,S){return S[2]-M[2]})}},46248:function(o,a,n){var l=n(30211),f=n(71828),s=n(89298),c=n(21081).extractOpts;o.exports=function(d,h,p,m,y){y||(y={});var v,g,b,x,_=y.isContour,w=d.cd[0],k=w.trace,T=d.xa,M=d.ya,S=w.x,C=w.y,P=w.z,D=w.xCenter,O=w.yCenter,R=w.zmask,F=k.zhoverformat,A=S,z=C;if(d.index!==!1){try{b=Math.round(d.index[1]),x=Math.round(d.index[0])}catch{return void f.error("Error hovering on heatmap, pointNumber must be [row,col], found:",d.index)}if(b<0||b>=P[0].length||x<0||x>P.length)return}else{if(l.inbox(h-S[0],h-S[S.length-1],0)>0||l.inbox(p-C[0],p-C[C.length-1],0)>0)return;if(_){var B;for(A=[2*S[0]-S[1]],B=1;BS&&(P=Math.max(P,Math.abs(d[y][v]-M)/(C-S))))}return P}o.exports=function(d,h){var p,m=1;for(c(d,h),p=0;p.01;p++)m=c(d,h,s(m));return m>.01&&l.log("interp2d didn't converge quickly",m),d}},58623:function(o,a,n){var l=n(71828);o.exports=function(f,s){f("texttemplate");var c=l.extendFlat({},s.font,{color:"auto",size:"auto"});l.coerceFont(f,"textfont",c)}},70769:function(o,a,n){var l=n(73972),f=n(71828).isArrayOrTypedArray;o.exports=function(s,c,d,h,p,m){var y,v,g,b=[],x=l.traceIs(s,"contour"),_=l.traceIs(s,"histogram"),w=l.traceIs(s,"gl2d");if(f(c)&&c.length>1&&!_&&m.type!=="category"){var k=c.length;if(!(k<=p))return x?c.slice(0,p):c.slice(0,p+1);if(x||w)b=c.slice(0,p);else if(p===1)b=[c[0]-.5,c[0]+.5];else{for(b=[1.5*c[0]-.5*c[1]],g=1;g0;)j=A.c2p(Y[G]),G--;for(j<$&&(N=j,j=$,$=N,Te=!0),G=0;E===void 0&&G0;)W=z.c2p(Z[G]),G--;W=A._length||j<=0||E>=z._length||W<=0)return H.selectAll("image").data([]).exit().remove(),void M(H);Oe==="fast"?(ce=pe,ye=se):(ce=J,ye=ne);var de=document.createElement("canvas");de.width=ce,de.height=ye;var xe,ue,ge=de.getContext("2d",{willReadFrequently:!0}),be=g(te,{noNumericCheck:!0,returnArray:!0});Oe==="fast"?(xe=Te?function(pn){return pe-1-pn}:h.identity,ue=Se?function(pn){return se-1-pn}:h.identity):(xe=function(pn){return h.constrain(Math.round(A.c2p(Y[pn])-$),0,J)},ue=function(pn){return h.constrain(Math.round(z.c2p(Z[pn])-E),0,ne)});var we,ke,Ae,Ee,De=ue(0),Re=[De,De],Ie=Te?0:1,Be=Se?0:1,Ue=0,qe=0,Ye=0,at=0;function lt(pn,nn){if(pn!==void 0){var Kt=be(pn);return Kt[0]=Math.round(Kt[0]),Kt[1]=Math.round(Kt[1]),Kt[2]=Math.round(Kt[2]),Ue+=nn,qe+=Kt[0]*nn,Ye+=Kt[1]*nn,at+=Kt[2]*nn,Kt}return[0,0,0,0]}function ct(pn,nn,Kt,Cn){var _n=pn[Kt.bin0];if(_n===void 0)return lt(void 0,1);var Pn,xn=pn[Kt.bin1],Dn=nn[Kt.bin0],tr=nn[Kt.bin1],ia=xn-_n||0,fa=Dn-_n||0;return Pn=xn===void 0?tr===void 0?0:Dn===void 0?2*(tr-_n):2*(2*tr-Dn-_n)/3:tr===void 0?Dn===void 0?0:2*(2*_n-xn-Dn)/3:Dn===void 0?2*(2*tr-xn-_n)/3:tr+_n-xn-Dn,lt(_n+Kt.frac*ia+Cn.frac*(fa+Kt.frac*Pn))}if(Oe!=="default"){var bt,ze=0;try{bt=new Uint8Array(ce*ye*4)}catch{bt=new Array(ce*ye*4)}if(Oe==="smooth"){var Ne,Qe,it,kt=X||Y,Je=re||Z,ut=new Array(kt.length),pt=new Array(Je.length),It=new Array(J),Mt=X?C:S,zt=re?C:S;for(G=0;Ggt||gt>z._length))for(L=Vt;Lyt||yt>A._length)){var qt=m({x:ht,y:Dt},te,D._fullLayout);qt.x=ht,qt.y=Dt;var Et=V.z[G][L];Et===void 0?(qt.z="",qt.zLabel=""):(qt.z=Et,qt.zLabel=d.tickText(st,Et,"hover").text);var jt=V.text&&V.text[G]&&V.text[G][L];jt!==void 0&&jt!==!1||(jt=""),qt.text=jt;var Tt=h.texttemplateString(Ke,qt,D._fullLayout._d3locale,qt,te._meta||{});if(Tt){var Ot=Tt.split("
"),At=Ot.length,Lt=0;for(q=0;q0&&(S=!0);for(var D=0;Dh){var p=h-c[f];return c[f]=h,p}}return 0},max:function(f,s,c,d){var h=d[s];if(l(h)){if(h=Number(h),!l(c[f]))return c[f]=h,h;if(c[f]p?x>c?x>1.1*f?f:x>1.1*s?s:c:x>d?d:x>h?h:p:Math.pow(10,Math.floor(Math.log(x)/Math.LN10))}function g(x,_,w,k,T,M){if(k&&x>c){var S=b(_,T,M),C=b(w,T,M),P=x===f?0:1;return S[P]!==C[P]}return Math.floor(w/x)-Math.floor(_/x)>.1}function b(x,_,w){var k=_.c2d(x,f,w).split("-");return k[0]===""&&(k.unshift(),k[0]="-"+k[0]),k}o.exports=function(x,_,w,k,T){var M,S,C=-1.1*_,P=-.1*_,D=x-P,O=w[0],R=w[1],F=Math.min(y(O+P,O+D,k,T),y(R+P,R+D,k,T)),A=Math.min(y(O+C,O+P,k,T),y(R+C,R+P,k,T));if(F>A&&Ac){var z=M===f?1:6,B=M===f?"M12":"M1";return function($,j){var N=k.c2d($,f,T),E=N.indexOf("-",z);E>0&&(N=N.substr(0,E));var W=k.d2c(N,0,T);if(W<$){var G=m(W,B,!1,T);(W+G)/2<$+x&&(W=G)}return j&&S?m(W,B,!0,T):W}}return function($,j){var N=M*Math.round($/M);return N+M/10<$&&N+.9*M<$+x&&(N+=M),j&&S&&(N-=M),N}}},72138:function(o,a,n){var l=n(92770),f=n(71828),s=n(73972),c=n(89298),d=n(75341),h=n(59575),p=n(36362),m=n(42174),y=n(40965);function v(g,b,x,_,w){var k,T,M,S,C,P,D,O=_+"bins",R=g._fullLayout,F=b["_"+_+"bingroup"],A=R._histogramBinOpts[F],z=R.barmode==="overlay",B=function(Se){return x.r2c(Se,0,S)},$=function(Se){return x.c2r(Se,0,S)},j=x.type==="date"?function(Se){return Se||Se===0?f.cleanDate(Se,null,S):null}:function(Se){return l(Se)?Number(Se):null};function N(Se,Oe,Me){Oe[Se+"Found"]?(Oe[Se]=j(Oe[Se]),Oe[Se]===null&&(Oe[Se]=Me[Se])):(P[Se]=Oe[Se]=Me[Se],f.nestedProperty(T[0],O+"."+Se).set(Me[Se]))}if(b["_"+_+"autoBinFinished"])delete b["_"+_+"autoBinFinished"];else{T=A.traces;var E=[],W=!0,G=!1,L=!1;for(k=0;kx.r2l(Z)&&(re=c.tickIncrement(re,A.size,!0,S)),ee.start=x.l2r(re),Y||f.nestedProperty(b,O+".start").set(ee.start)}var ie=A.end,le=x.r2l(te.end),se=le!==void 0;if((A.endFound||se)&&le!==x.r2l(ie)){var pe=se?le:f.aggNums(Math.max,null,C);ee.end=x.l2r(pe),se||f.nestedProperty(b,O+".start").set(ee.end)}var Te="autobin"+_;return b._input[Te]===!1&&(b._input[O]=f.extendFlat({},b[O]||{}),delete b._input[Te],delete b[Te]),[ee,C]}o.exports={calc:function(g,b){var x,_,w,k,T=[],M=[],S=b.orientation==="h",C=c.getFromId(g,S?b.yaxis:b.xaxis),P=S?"y":"x",D={x:"y",y:"x"}[P],O=b[P+"calendar"],R=b.cumulative,F=v(g,b,C,P),A=F[0],z=F[1],B=typeof A.size=="string",$=[],j=B?$:A,N=[],E=[],W=[],G=0,L=b.histnorm,q=b.histfunc,H=L.indexOf("density")!==-1;R.enabled&&H&&(L=L.replace(/ ?density$/,""),H=!1);var V,te=q==="max"||q==="min"?null:0,ee=h.count,U=p[L],Q=!1,Y=function(ne){return C.r2c(ne,0,O)};for(f.isArrayOrTypedArray(b[D])&&q!=="count"&&(V=b[D],Q=q==="avg",ee=h[q]),x=Y(A.start),w=Y(A.end)+(x-c.tickIncrement(x,A.size,!1,O))/1e6;x=0&&k=0;ue--)ke(ue);else if(de==="increasing"){for(ue=1;ue=0;ue--)ne[ue]+=ne[ue+1];xe==="exclude"&&(ne.push(0),ne.shift())}}(M,R.direction,R.currentbin);var Oe=Math.min(T.length,M.length),Me=[],ce=0,ye=Oe-1;for(x=0;x=ce;x--)if(M[x]){ye=x;break}for(x=ce;x<=ye;x++)if(l(T[x])&&l(M[x])){var J={p:T[x],s:M[x],b:0};R.enabled||(J.pts=W[x],le?J.ph0=J.ph1=W[x].length?z[W[x][0]]:T[x]:(b._computePh=!0,J.ph0=re($[x]),J.ph1=re($[x+1],!0))),Me.push(J)}return Me.length===1&&(Me[0].width1=c.tickIncrement(Me[0].p,A.size,!1,O)-Me[0].p),d(Me,b),f.isArrayOrTypedArray(b.selectedpoints)&&f.tagSelected(Me,b,Te),Me},calcAllAutoBins:v}},72406:function(o){o.exports={eventDataKeys:["binNumber"]}},82222:function(o,a,n){var l=n(71828),f=n(41675),s=n(73972).traceIs,c=n(26125),d=l.nestedProperty,h=n(99082).getAxisGroup,p=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],m=["x","y"];o.exports=function(y,v){var g,b,x,_,w,k,T,M=v._histogramBinOpts={},S=[],C={},P=[];function D(H,V){return l.coerce(g._input,g,g._module.attributes,H,V)}function O(H){return H.orientation==="v"?"x":"y"}function R(H,V,te){var ee=H.uid+"__"+te;V||(V=ee);var U=function(X,re){return f.getFromTrace({_fullLayout:v},X,re).type}(H,te),Q=H[te+"calendar"]||"",Y=M[V],Z=!0;Y&&(U===Y.axType&&Q===Y.calendar?(Z=!1,Y.traces.push(H),Y.dirs.push(te)):(V=ee,U!==Y.axType&&l.warn(["Attempted to group the bins of trace",H.index,"set on a","type:"+U,"axis","with bins on","type:"+Y.axType,"axis."].join(" ")),Q!==Y.calendar&&l.warn(["Attempted to group the bins of trace",H.index,"set with a",Q,"calendar","with bins",Y.calendar?"on a "+Y.calendar+" calendar":"w/o a set calendar"].join(" ")))),Z&&(M[V]={traces:[H],dirs:[te],axType:U,calendar:H[te+"calendar"]||""}),H["_"+te+"bingroup"]=V}for(w=0;w$&&F.splice($,F.length-$),B.length>$&&B.splice($,B.length-$);var j=[],N=[],E=[],W=typeof R.size=="string",G=typeof z.size=="string",L=[],q=[],H=W?L:R,V=G?q:z,te=0,ee=[],U=[],Q=b.histnorm,Y=b.histfunc,Z=Q.indexOf("density")!==-1,X=Y==="max"||Y==="min"?null:0,re=s.count,ie=c[Q],le=!1,se=[],pe=[],Te="z"in b?b.z:"marker"in b&&Array.isArray(b.marker.color)?b.marker.color:"";Te&&Y!=="count"&&(le=Y==="avg",re=s[Y]);var Se=R.size,Oe=P(R.start),Me=P(R.end)+(Oe-f.tickIncrement(Oe,Se,!1,S))/1e6;for(x=Oe;x=0&&w=0&&k0||l.inbox(h-p.y0,h-(p.y0+p.h*m.dy),0)>0)){var g,b=Math.floor((d-p.x0)/m.dx),x=Math.floor(Math.abs(h-p.y0)/m.dy);if(m._hasZ?g=p.z[x][b]:m._hasSource&&(g=m._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(b,x,1,1).data),g){var _,w=p.hi||m.hoverinfo;if(w){var k=w.split("+");k.indexOf("all")!==-1&&(k=["color"]),k.indexOf("color")!==-1&&(_=!0)}var T,M=s.colormodel[m.colormodel],S=M.colormodel||m.colormodel,C=S.length,P=m._scaler(g),D=M.suffix,O=[];(m.hovertemplate||_)&&(O.push("["+[P[0]+D[0],P[1]+D[1],P[2]+D[2]].join(", ")),C===4&&O.push(", "+P[3]+D[3]),O.push("]"),O=O.join(""),c.extraText=S.toUpperCase()+": "+O),Array.isArray(m.hovertext)&&Array.isArray(m.hovertext[x])?T=m.hovertext[x][b]:Array.isArray(m.text)&&Array.isArray(m.text[x])&&(T=m.text[x][b]);var R=v.c2p(p.y0+(x+.5)*m.dy),F=p.x0+(b+.5)*m.dx,A=p.y0+(x+.5)*m.dy,z="["+g.slice(0,m.colormodel.length).join(", ")+"]";return[f.extendFlat(c,{index:[x,b],x0:y.c2p(p.x0+b*m.dx),x1:y.c2p(p.x0+(b+1)*m.dx),y0:R,y1:R,color:P,xVal:F,xLabelVal:F,yVal:A,yLabelVal:A,zLabelVal:z,text:T,hovertemplateLabels:{zLabel:z,colorLabel:O,"color[0]Label":P[0]+D[0],"color[1]Label":P[1]+D[1],"color[2]Label":P[2]+D[2],"color[3]Label":P[3]+D[3]}})]}}}},94507:function(o,a,n){o.exports={attributes:n(17230),supplyDefaults:n(13245),calc:n(71113),plot:n(60775),style:n(12826),hoverPoints:n(28749),eventData:n(30835),moduleType:"trace",name:"image",basePlotModule:n(93612),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}},60775:function(o,a,n){var l=n(39898),f=n(71828),s=f.strTranslate,c=n(77922),d=n(51877),h=n(3883),p=n(32396).STYLE;o.exports=function(m,y,v,g){var b=y.xaxis,x=y.yaxis,_=!m._context._exportedPlot&&h();f.makeTraceGroups(g,v,"im").each(function(w){var k=l.select(this),T=w[0],M=T.trace,S=(M.zsmooth==="fast"||M.zsmooth===!1&&_)&&!M._hasZ&&M._hasSource&&b.type==="linear"&&x.type==="linear";M._realImage=S;var C,P,D,O,R,F,A=T.z,z=T.x0,B=T.y0,$=T.w,j=T.h,N=M.dx,E=M.dy;for(F=0;C===void 0&&F<$;)C=b.c2p(z+F*N),F++;for(F=$;P===void 0&&F>0;)P=b.c2p(z+F*N),F--;for(F=0;O===void 0&&F0;)R=x.c2p(B+F*E),F--;PV[0];if(te||ee){var U=C+W/2,Q=O+G/2;q+="transform:"+s(U+"px",Q+"px")+"scale("+(te?-1:1)+","+(ee?-1:1)+")"+s(-U+"px",-Q+"px")+";"}}L.attr("style",q);var Y=new Promise(function(X){if(M._hasZ)X();else if(M._hasSource)if(M._canvas&&M._canvas.el.width===$&&M._canvas.el.height===j&&M._canvas.source===M.source)X();else{var re=document.createElement("canvas");re.width=$,re.height=j;var ie=re.getContext("2d",{willReadFrequently:!0});M._image=M._image||new Image;var le=M._image;le.onload=function(){ie.drawImage(le,0,0),M._canvas={el:re,source:M.source},X()},le.setAttribute("src",M.source)}}).then(function(){var X,re;if(M._hasZ)re=Z(function(le,se){return A[se][le]}),X=re.toDataURL("image/png");else if(M._hasSource)if(S)X=M.source;else{var ie=M._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,$,j).data;re=Z(function(le,se){var pe=4*(se*$+le);return[ie[pe],ie[pe+1],ie[pe+2],ie[pe+3]]}),X=re.toDataURL("image/png")}L.attr({"xlink:href":X,height:G,width:W,x:C,y:O})});m._promises.push(Y)}function Z(X){var re=document.createElement("canvas");re.width=W,re.height=G;var ie,le=re.getContext("2d",{willReadFrequently:!0}),se=function(de){return f.constrain(Math.round(b.c2p(z+de*N)-C),0,W)},pe=function(de){return f.constrain(Math.round(x.c2p(B+de*E)-O),0,G)},Te=d.colormodel[M.colormodel],Se=Te.colormodel||M.colormodel,Oe=Te.fmt;for(F=0;F=0}),(m.type==="funnelarea"?D:m.sort)&&g.sort(function(z,B){return B.v-z.v}),g[0]&&(g[0].vTotal=P),g},crossTraceCalc:function(p,m){var y=(m||{}).type;y||(y="pie");var v=p._fullLayout,g=p.calcdata,b=v[y+"colorway"],x=v["_"+y+"colormap"];v["extend"+y+"colors"]&&(b=h(b,c));for(var _=0,w=0;w0){_=!0;break}}_||(x=0)}return{hasLabels:g,hasValues:b,len:x}}function m(y,v,g,b,x){b("marker.line.width")&&b("marker.line.color",x?void 0:g.paper_bgcolor);var _=b("marker.colors");h(b,"marker.pattern",_),y.marker&&!v.marker.pattern.fgcolor&&(v.marker.pattern.fgcolor=y.marker.colors),v.marker.pattern.bgcolor||(v.marker.pattern.bgcolor=g.paper_bgcolor)}o.exports={handleLabelsAndValues:p,handleMarkerDefaults:m,supplyDefaults:function(y,v,g,b){function x(D,O){return f.coerce(y,v,s,D,O)}var _=p(x("labels"),x("values")),w=_.len;if(v._hasLabels=_.hasLabels,v._hasValues=_.hasValues,!v._hasLabels&&v._hasValues&&(x("label0"),x("dlabel")),w){v._length=w,m(y,v,b,x,!0),x("scalegroup");var k,T=x("text"),M=x("texttemplate");if(M||(k=x("textinfo",Array.isArray(T)?"text+percent":"percent")),x("hovertext"),x("hovertemplate"),M||k&&k!=="none"){var S=x("textposition");d(y,v,b,x,S,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(S)||S==="auto"||S==="outside")&&x("automargin"),(S==="inside"||S==="auto"||Array.isArray(S))&&x("insidetextorientation")}c(v,b,x);var C=x("hole");if(x("title.text")){var P=x("title.position",C?"middle center":"top center");C||P!=="middle center"||(v.title.position="top center"),f.coerceFont(x,"title.font",b.font)}x("sort"),x("direction"),x("rotation"),x("pull")}else v.visible=!1}}},20007:function(o,a,n){var l=n(23469).appendArrayMultiPointValues;o.exports=function(f,s){var c={curveNumber:s.index,pointNumbers:f.pts,data:s._input,fullData:s,label:f.label,color:f.color,value:f.v,percent:f.percent,text:f.text,bbox:f.bbox,v:f.v};return f.pts.length===1&&(c.pointNumber=c.i=f.pts[0]),l(c,s,f.pts),s.type==="funnelarea"&&(delete c.v,delete c.i),c}},22209:function(o,a,n){var l=n(91424),f=n(7901);o.exports=function(s,c,d,h){var p=d.marker.pattern;p&&p.shape?l.pointStyle(s,d,h,c):f.fill(s,c.color)}},53581:function(o,a,n){var l=n(71828);function f(s){return s.indexOf("e")!==-1?s.replace(/[.]?0+e/,"e"):s.indexOf(".")!==-1?s.replace(/[.]?0+$/,""):s}a.formatPiePercent=function(s,c){var d=f((100*s).toPrecision(3));return l.numSeparate(d,c)+"%"},a.formatPieValue=function(s,c){var d=f(s.toPrecision(10));return l.numSeparate(d,c)},a.getFirstFilled=function(s,c){if(Array.isArray(s))for(var d=0;d"),name:X.hovertemplate||re.indexOf("name")!==-1?X.name:void 0,idealAlign:Y.pxmid[0]<0?"left":"right",color:_.castOption(Oe.bgcolor,Y.pts)||Y.color,borderColor:_.castOption(Oe.bordercolor,Y.pts),fontFamily:_.castOption(Me.family,Y.pts),fontSize:_.castOption(Me.size,Y.pts),fontColor:_.castOption(Me.color,Y.pts),nameLength:_.castOption(Oe.namelength,Y.pts),textAlign:_.castOption(Oe.align,Y.pts),hovertemplate:_.castOption(X.hovertemplate,Y.pts),hovertemplateLabels:Y,eventData:[w(Y,X)]},{container:Z._hoverlayer.node(),outerContainer:Z._paper.node(),gd:q,inOut_bbox:ce}),Y.bbox=ce[0],U._hasHoverLabel=!0}U._hasHoverEvent=!0,q.emit("plotly_hover",{points:[w(Y,X)],event:l.event})}}),L.on("mouseout",function(Y){var Z=q._fullLayout,X=q._fullData[U.index],re=l.select(this).datum();U._hasHoverEvent&&(Y.originalEvent=l.event,q.emit("plotly_unhover",{points:[w(re,X)],event:l.event}),U._hasHoverEvent=!1),U._hasHoverLabel&&(s.loneUnhover(Z._hoverlayer.node()),U._hasHoverLabel=!1)}),L.on("click",function(Y){var Z=q._fullLayout,X=q._fullData[U.index];q._dragging||Z.hovermode===!1||(q._hoverdata=[w(Y,X)],s.click(q,l.event))})}function M(L,q,H){var V=_.castOption(L.insidetextfont.color,q.pts);!V&&L._input.textfont&&(V=_.castOption(L._input.textfont.color,q.pts));var te=_.castOption(L.insidetextfont.family,q.pts)||_.castOption(L.textfont.family,q.pts)||H.family,ee=_.castOption(L.insidetextfont.size,q.pts)||_.castOption(L.textfont.size,q.pts)||H.size;return{color:V||c.contrast(q.color),family:te,size:ee}}function S(L,q){for(var H,V,te=0;tewe&&we>Ae||ke=-4;Te-=2)Se(Math.PI*Te,"tan");for(Te=4;Te>=-4;Te-=2)Se(Math.PI*(Te+1),"tan")}if(re||le){for(Te=4;Te>=-4;Te-=2)Se(Math.PI*(Te+1.5),"rad");for(Te=4;Te>=-4;Te-=2)Se(Math.PI*(Te+.5),"rad")}}if(Q||se||re){var Oe=Math.sqrt(L.width*L.width+L.height*L.height);if((ee={scale:te*V*2/Oe,rCenter:1-te,rotate:0}).textPosAngle=(q.startangle+q.stopangle)/2,ee.scale>=1)return ee;pe.push(ee)}(se||le)&&((ee=P(L,V,U,Y,Z)).textPosAngle=(q.startangle+q.stopangle)/2,pe.push(ee)),(se||ie)&&((ee=D(L,V,U,Y,Z)).textPosAngle=(q.startangle+q.stopangle)/2,pe.push(ee));for(var Me=0,ce=0,ye=0;ye=1)break}return pe[Me]}function P(L,q,H,V,te){q=Math.max(0,q-2*x);var ee=L.width/L.height,U=F(ee,V,q,H);return{scale:2*U/L.height,rCenter:O(ee,U/q),rotate:R(te)}}function D(L,q,H,V,te){q=Math.max(0,q-2*x);var ee=L.height/L.width,U=F(ee,V,q,H);return{scale:2*U/L.width,rCenter:O(ee,U/q),rotate:R(te+Math.PI/2)}}function O(L,q){return Math.cos(q)-L*q}function R(L){return(180/Math.PI*L+720)%180-90}function F(L,q,H,V){var te=L+1/(2*Math.tan(q));return H*Math.min(1/(Math.sqrt(te*te+.5)+te),V/(Math.sqrt(L*L+V/2)+L))}function A(L,q){return L.v!==q.vTotal||q.trace.hole?Math.min(1/(1+1/Math.sin(L.halfangle)),L.ring/2):1}function z(L,q){var H=q.pxmid[0],V=q.pxmid[1],te=L.width/2,ee=L.height/2;return H<0&&(te*=-1),V<0&&(ee*=-1),{scale:1,rCenter:1,rotate:0,x:te+Math.abs(ee)*(te>0?1:-1)/2,y:ee/(1+H*H/(V*V)),outside:!0}}function B(L,q){var H,V,te,ee=L.trace,U={x:L.cx,y:L.cy},Q={tx:0,ty:0};Q.ty+=ee.title.font.size,te=j(ee),ee.title.position.indexOf("top")!==-1?(U.y-=(1+te)*L.r,Q.ty-=L.titleBox.height):ee.title.position.indexOf("bottom")!==-1&&(U.y+=(1+te)*L.r);var Y,Z=L.r/((Y=L.trace.aspectratio)===void 0?1:Y),X=q.w*(ee.domain.x[1]-ee.domain.x[0])/2;return ee.title.position.indexOf("left")!==-1?(X+=Z,U.x-=(1+te)*Z,Q.tx+=L.titleBox.width/2):ee.title.position.indexOf("center")!==-1?X*=2:ee.title.position.indexOf("right")!==-1&&(X+=Z,U.x+=(1+te)*Z,Q.tx-=L.titleBox.width/2),H=X/L.titleBox.width,V=$(L,q)/L.titleBox.height,{x:U.x,y:U.y,scale:Math.min(H,V),tx:Q.tx,ty:Q.ty}}function $(L,q){var H=L.trace,V=q.h*(H.domain.y[1]-H.domain.y[0]);return Math.min(L.titleBox.height,V/2)}function j(L){var q,H=L.pull;if(!H)return 0;if(Array.isArray(H))for(H=0,q=0;qH&&(H=L.pull[q]);return H}function N(L,q){for(var H=[],V=0;V1?ye=(ce=le.r)/pe.aspectratio:ce=(ye=le.r)*pe.aspectratio,Me=(ce*=(1+pe.baseratio)/2)*ye}Se=Math.min(Se,Me/le.vTotal)}for(se=0;se")}if(ee){var Te=h.castOption(te,q.i,"texttemplate");if(Te){var Se=function(Me){return{label:Me.label,value:Me.v,valueLabel:_.formatPieValue(Me.v,V.separators),percent:Me.v/H.vTotal,percentLabel:_.formatPiePercent(Me.v/H.vTotal,V.separators),color:Me.color,text:Me.text,customdata:h.castOption(te,Me.i,"customdata")}}(q),Oe=_.getFirstFilled(te.text,q.pts);(k(Oe)||Oe==="")&&(Se.text=Oe),q.text=h.texttemplateString(Te,Se,L._fullLayout._d3locale,Se,te._meta||{})}else q.text=""}}function G(L,q){var H=L.rotate*Math.PI/180,V=Math.cos(H),te=Math.sin(H),ee=(q.left+q.right)/2,U=(q.top+q.bottom)/2;L.textX=ee*V-U*te,L.textY=ee*te+U*V,L.noCenter=!0}o.exports={plot:function(L,q){var H=L._context.staticPlot,V=L._fullLayout,te=V._size;b("pie",V),S(q,L),N(q,te);var ee=h.makeTraceGroups(V._pielayer,q,"trace").each(function(U){var Q=l.select(this),Y=U[0],Z=Y.trace;(function(X){var re,ie,le,se=X[0],pe=se.r,Te=se.trace,Se=_.getRotationAngle(Te.rotation),Oe=2*Math.PI/se.vTotal,Me="px0",ce="px1";if(Te.direction==="counterclockwise"){for(re=0;rese.vTotal/2?1:0,ie.halfangle=Math.PI*Math.min(ie.v/se.vTotal,.5),ie.ring=1-Te.hole,ie.rInscribed=A(ie,se))})(U),Q.attr("stroke-linejoin","round"),Q.each(function(){var X=l.select(this).selectAll("g.slice").data(U);X.enter().append("g").classed("slice",!0),X.exit().remove();var re=[[[],[]],[[],[]]],ie=!1;X.each(function(ce,ye){if(ce.hidden)l.select(this).selectAll("path,g").remove();else{ce.pointNumber=ce.i,ce.curveNumber=Z.index,re[ce.pxmid[1]<0?0:1][ce.pxmid[0]<0?0:1].push(ce);var J=Y.cx,ne=Y.cy,de=l.select(this),xe=de.selectAll("path.surface").data([ce]);if(xe.enter().append("path").classed("surface",!0).style({"pointer-events":H?"none":"all"}),de.call(T,L,U),Z.pull){var ue=+_.castOption(Z.pull,ce.pts)||0;ue>0&&(J+=ue*ce.pxmid[0],ne+=ue*ce.pxmid[1])}ce.cxFinal=J,ce.cyFinal=ne;var ge=Z.hole;if(ce.v===Y.vTotal){var be="M"+(J+ce.px0[0])+","+(ne+ce.px0[1])+De(ce.px0,ce.pxmid,!0,1)+De(ce.pxmid,ce.px0,!0,1)+"Z";ge?xe.attr("d","M"+(J+ge*ce.px0[0])+","+(ne+ge*ce.px0[1])+De(ce.px0,ce.pxmid,!1,ge)+De(ce.pxmid,ce.px0,!1,ge)+"Z"+be):xe.attr("d",be)}else{var we=De(ce.px0,ce.px1,!0,1);if(ge){var ke=1-ge;xe.attr("d","M"+(J+ge*ce.px1[0])+","+(ne+ge*ce.px1[1])+De(ce.px1,ce.px0,!1,ge)+"l"+ke*ce.px0[0]+","+ke*ce.px0[1]+we+"Z")}else xe.attr("d","M"+J+","+ne+"l"+ce.px0[0]+","+ce.px0[1]+we+"Z")}W(L,ce,Y);var Ae=_.castOption(Z.textposition,ce.pts),Ee=de.selectAll("g.slicetext").data(ce.text&&Ae!=="none"?[0]:[]);Ee.enter().append("g").classed("slicetext",!0),Ee.exit().remove(),Ee.each(function(){var Re=h.ensureSingle(l.select(this),"text","",function(ct){ct.attr("data-notex",1)}),Ie=h.ensureUniformFontSize(L,Ae==="outside"?function(ct,bt,ze){return{color:_.castOption(ct.outsidetextfont.color,bt.pts)||_.castOption(ct.textfont.color,bt.pts)||ze.color,family:_.castOption(ct.outsidetextfont.family,bt.pts)||_.castOption(ct.textfont.family,bt.pts)||ze.family,size:_.castOption(ct.outsidetextfont.size,bt.pts)||_.castOption(ct.textfont.size,bt.pts)||ze.size}}(Z,ce,V.font):M(Z,ce,V.font));Re.text(ce.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(d.font,Ie).call(y.convertToTspans,L);var Be,Ue=d.bBox(Re.node());if(Ae==="outside")Be=z(Ue,ce);else if(Be=C(Ue,ce,Y),Ae==="auto"&&Be.scale<1){var qe=h.ensureUniformFontSize(L,Z.outsidetextfont);Re.call(d.font,qe),Be=z(Ue=d.bBox(Re.node()),ce)}var Ye=Be.textPosAngle,at=Ye===void 0?ce.pxmid:E(Y.r,Ye);if(Be.targetX=J+at[0]*Be.rCenter+(Be.x||0),Be.targetY=ne+at[1]*Be.rCenter+(Be.y||0),G(Be,Ue),Be.outside){var lt=Be.targetY;ce.yLabelMin=lt-Ue.height/2,ce.yLabelMid=lt,ce.yLabelMax=lt+Ue.height/2,ce.labelExtraX=0,ce.labelExtraY=0,ie=!0}Be.fontSize=Ie.size,g(Z.type,Be,V),U[ye].transform=Be,h.setTransormAndDisplay(Re,Be)})}function De(Re,Ie,Be,Ue){var qe=Ue*(Ie[0]-Re[0]),Ye=Ue*(Ie[1]-Re[1]);return"a"+Ue*Y.r+","+Ue*Y.r+" 0 "+ce.largeArc+(Be?" 1 ":" 0 ")+qe+","+Ye}});var le=l.select(this).selectAll("g.titletext").data(Z.title.text?[0]:[]);if(le.enter().append("g").classed("titletext",!0),le.exit().remove(),le.each(function(){var ce,ye=h.ensureSingle(l.select(this),"text","",function(ne){ne.attr("data-notex",1)}),J=Z.title.text;Z._meta&&(J=h.templateString(J,Z._meta)),ye.text(J).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(d.font,Z.title.font).call(y.convertToTspans,L),ce=Z.title.position==="middle center"?function(ne){var de=Math.sqrt(ne.titleBox.width*ne.titleBox.width+ne.titleBox.height*ne.titleBox.height);return{x:ne.cx,y:ne.cy,scale:ne.trace.hole*ne.r*2/de,tx:0,ty:-ne.titleBox.height/2+ne.trace.title.font.size}}(Y):B(Y,te),ye.attr("transform",m(ce.x,ce.y)+p(Math.min(1,ce.scale))+m(ce.tx,ce.ty))}),ie&&function(ce,ye){var J,ne,de,xe,ue,ge,be,we,ke,Ae,Ee,De,Re;function Ie(Ye,at){return Ye.pxmid[1]-at.pxmid[1]}function Be(Ye,at){return at.pxmid[1]-Ye.pxmid[1]}function Ue(Ye,at){at||(at={});var lt,ct,bt,ze,Ne=at.labelExtraY+(ne?at.yLabelMax:at.yLabelMin),Qe=ne?Ye.yLabelMin:Ye.yLabelMax,it=ne?Ye.yLabelMax:Ye.yLabelMin,kt=Ye.cyFinal+ue(Ye.px0[1],Ye.px1[1]),Je=Ne-Qe;if(Je*be>0&&(Ye.labelExtraY=Je),Array.isArray(ye.pull))for(ct=0;ct=(_.castOption(ye.pull,bt.pts)||0)||((Ye.pxmid[1]-bt.pxmid[1])*be>0?(Je=bt.cyFinal+ue(bt.px0[1],bt.px1[1])-Qe-Ye.labelExtraY)*be>0&&(Ye.labelExtraY+=Je):(it+Ye.labelExtraY-kt)*be>0&&(lt=3*ge*Math.abs(ct-Ae.indexOf(Ye)),(ze=bt.cxFinal+xe(bt.px0[0],bt.px1[0])+lt-(Ye.cxFinal+Ye.pxmid[0])-Ye.labelExtraX)*ge>0&&(Ye.labelExtraX+=ze)))}for(ne=0;ne<2;ne++)for(de=ne?Ie:Be,ue=ne?Math.max:Math.min,be=ne?1:-1,J=0;J<2;J++){for(xe=J?Math.max:Math.min,ge=J?1:-1,(we=ce[ne][J]).sort(de),ke=ce[1-ne][J],Ae=ke.concat(we),De=[],Ee=0;EeMath.abs(we)?ue+="l"+we*J.pxmid[0]/J.pxmid[1]+","+we+"H"+(xe+J.labelExtraX+ge):ue+="l"+J.labelExtraX+","+be+"v"+(we-be)+"h"+ge}else ue+="V"+(J.yLabelMid+J.labelExtraY)+"h"+ge;h.ensureSingle(ne,"path","textline").call(c.stroke,ye.outsidetextfont.color).attr({"stroke-width":Math.min(2,ye.outsidetextfont.size/8),d:ue,fill:"none"})}else ne.select("path.textline").remove()})}(X,Z),ie&&Z.automargin){var se=d.bBox(Q.node()),pe=Z.domain,Te=te.w*(pe.x[1]-pe.x[0]),Se=te.h*(pe.y[1]-pe.y[0]),Oe=(.5*Te-Y.r)/te.w,Me=(.5*Se-Y.r)/te.h;f.autoMargin(L,"pie."+Z.uid+".automargin",{xl:pe.x[0]-Oe,xr:pe.x[1]+Oe,yb:pe.y[0]-Me,yt:pe.y[1]+Me,l:Math.max(Y.cx-Y.r-se.left,0),r:Math.max(se.right-(Y.cx+Y.r),0),b:Math.max(se.bottom-(Y.cy+Y.r),0),t:Math.max(Y.cy-Y.r-se.top,0),pad:5})}})});setTimeout(function(){ee.selectAll("tspan").each(function(){var U=l.select(this);U.attr("dy")&&U.attr("dy",U.attr("dy"))})},0)},formatSliceLabel:W,transformInsideText:C,determineInsideTextFont:M,positionTitleOutside:B,prerenderTitles:S,layoutAreas:N,attachFxHandlers:T,computeTransform:G}},68357:function(o,a,n){var l=n(39898),f=n(63463),s=n(72597).resizeText;o.exports=function(c){var d=c._fullLayout._pielayer.selectAll(".trace");s(c,d,"pie"),d.each(function(h){var p=h[0].trace,m=l.select(this);m.style({opacity:p.opacity}),m.selectAll("path.surface").each(function(y){l.select(this).call(f,y,p,c)})})}},63463:function(o,a,n){var l=n(7901),f=n(53581).castOption,s=n(22209);o.exports=function(c,d,h,p){var m=h.marker.line,y=f(m.color,d.pts)||l.defaultLine,v=f(m.width,d.pts)||0;c.call(s,d,h,p).style("stroke-width",v).call(l.stroke,y)}},75225:function(o,a,n){var l=n(71828);o.exports=function(f,s){for(var c=0;cM&&W[C].gap;)C--;for(D=W[C].s,S=W.length-1;S>C;S--)W[S].s=D;for(;MB[b]&&b=0;b--){var x=c[b];if(x.type==="scatter"&&x.xaxis===v.xaxis&&x.yaxis===v.yaxis){x.opacity=void 0;break}}}}}},17438:function(o,a,n){var l=n(71828),f=n(73972),s=n(82196),c=n(47581),d=n(34098),h=n(67513),p=n(73927),m=n(565),y=n(49508),v=n(11058),g=n(94039),b=n(82410),x=n(28908),_=n(71828).coercePattern;o.exports=function(w,k,T,M){function S(z,B){return l.coerce(w,k,s,z,B)}var C=h(w,k,M,S);if(C||(k.visible=!1),k.visible){p(w,k,M,S),S("xhoverformat"),S("yhoverformat");var P=m(w,k,M,S);M.scattermode==="group"&&k.orientation===void 0&&S("orientation","v");var D=!P&&C=Math.min(Te,Se)&&w<=Math.max(Te,Se)?0:1/0}var Oe=Math.max(3,pe.mrc||0),Me=1-1/Oe,ce=Math.abs(x.c2p(pe.x)-w);return ce=Math.min(Te,Se)&&k<=Math.max(Te,Se)?0:1/0}var Oe=Math.max(3,pe.mrc||0),Me=1-1/Oe,ce=Math.abs(_.c2p(pe.y)-k);return cele!=(ee=L[W][1])>=le&&(H=L[W-1][0],V=L[W][0],ee-te&&(q=H+(V-H)*(le-te)/(ee-te),Z=Math.min(Z,q),X=Math.max(X,q)));Z=Math.max(Z,0),X=Math.min(X,x._length);var se=d.defaultLine;return d.opacity(b.fillcolor)?se=b.fillcolor:d.opacity((b.line||{}).color)&&(se=b.line.color),l.extendFlat(p,{distance:p.maxHoverDistance,x0:Z,x1:X,y0:le,y1:le,color:se,hovertemplate:!1}),delete p.index,b.text&&!Array.isArray(b.text)?p.text=String(b.text):p.text=b.name,[p]}}}},67368:function(o,a,n){var l=n(34098);o.exports={hasLines:l.hasLines,hasMarkers:l.hasMarkers,hasText:l.hasText,isBubble:l.isBubble,attributes:n(82196),layoutAttributes:n(21479),supplyDefaults:n(17438),crossTraceDefaults:n(34936),supplyLayoutDefaults:n(79334),calc:n(47761).calc,crossTraceCalc:n(72626),arraysToCalcdata:n(75225),plot:n(32663),colorbar:n(4898),formatLabels:n(8225),style:n(16296).style,styleOnSelect:n(16296).styleOnSelect,hoverPoints:n(33720),selectPoints:n(98002),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:n(93612),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}},21479:function(o){o.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}},79334:function(o,a,n){var l=n(71828),f=n(21479);o.exports=function(s,c){var d,h=c.barmode==="group";c.scattermode==="group"&&(d=h?c.bargap:.2,l.coerce(s,c,f,"scattergap",d))}},11058:function(o,a,n){var l=n(71828).isArrayOrTypedArray,f=n(52075).hasColorscale,s=n(1586);o.exports=function(c,d,h,p,m,y){y||(y={});var v=(c.marker||{}).color;m("line.color",h),f(c,"line")?s(c,d,p,m,{prefix:"line.",cLetter:"c"}):m("line.color",!l(v)&&v||h),m("line.width"),y.noDash||m("line.dash"),y.backoff&&m("line.backoff")}},34621:function(o,a,n){var l=n(91424),f=n(50606),s=f.BADNUM,c=f.LOG_CLIP,d=c+.5,h=c-.5,p=n(71828),m=p.segmentsIntersect,y=p.constrain,v=n(47581);o.exports=function(g,b){var x,_,w,k,T,M,S,C,P,D,O,R,F,A,z,B,$,j,N=b.trace||{},E=b.xaxis,W=b.yaxis,G=E.type==="log",L=W.type==="log",q=E._length,H=W._length,V=b.backoff,te=N.marker,ee=b.connectGaps,U=b.baseTolerance,Q=b.shape,Y=Q==="linear",Z=N.fill&&N.fill!=="none",X=[],re=v.minTolerance,ie=g.length,le=new Array(ie),se=0;function pe(Je){var ut=g[Je];if(!ut)return!1;var pt=b.linearized?E.l2p(ut.x):E.c2p(ut.x),It=b.linearized?W.l2p(ut.y):W.c2p(ut.y);if(pt===s){if(G&&(pt=E.c2p(ut.x,!0)),pt===s)return!1;L&&It===s&&(pt*=Math.abs(E._m*H*(E._m>0?d:h)/(W._m*q*(W._m>0?d:h)))),pt*=1e3}if(It===s){if(L&&(It=W.c2p(ut.y,!0)),It===s)return!1;It*=1e3}return[pt,It]}function Te(Je,ut,pt,It){var Mt=pt-Je,zt=It-ut,wt=.5-Je,ve=.5-ut,_e=Mt*Mt+zt*zt,Ve=Mt*wt+zt*ve;if(Ve>0&&Ve<_e){var We=wt*zt-ve*Mt;if(We*We<_e)return!0}}function Se(Je,ut){var pt=Je[0]/q,It=Je[1]/H,Mt=Math.max(0,-pt,pt-1,-It,It-1);return Mt&&$!==void 0&&Te(pt,It,$,j)&&(Mt=0),Mt&&ut&&Te(pt,It,ut[0]/q,ut[1]/H)&&(Mt=0),(1+v.toleranceGrowth*Mt)*U}function Oe(Je,ut){var pt=Je[0]-ut[0],It=Je[1]-ut[1];return Math.sqrt(pt*pt+It*It)}var Me,ce,ye,J,ne,de,xe,ue=v.maxScreensAway,ge=-q*ue,be=q*(1+ue),we=-H*ue,ke=H*(1+ue),Ae=[[ge,we,be,we],[be,we,be,ke],[be,ke,ge,ke],[ge,ke,ge,we]];function Ee(Je){if(Je[0]be||Je[1]ke)return[y(Je[0],ge,be),y(Je[1],we,ke)]}function De(Je,ut){return Je[0]===ut[0]&&(Je[0]===ge||Je[0]===be)||Je[1]===ut[1]&&(Je[1]===we||Je[1]===ke)||void 0}function Re(Je,ut,pt){return function(It,Mt){var zt=Ee(It),wt=Ee(Mt),ve=[];if(zt&&wt&&De(zt,wt))return ve;zt&&ve.push(zt),wt&&ve.push(wt);var _e=2*p.constrain((It[Je]+Mt[Je])/2,ut,pt)-((zt||It)[Je]+(wt||Mt)[Je]);return _e&&((zt&&wt?_e>0==zt[Je]>wt[Je]?zt:wt:zt||wt)[Je]+=_e),ve}}function Ie(Je){var ut=Je[0],pt=Je[1],It=ut===le[se-1][0],Mt=pt===le[se-1][1];if(!It||!Mt)if(se>1){var zt=ut===le[se-2][0],wt=pt===le[se-2][1];It&&(ut===ge||ut===be)&&zt?wt?se--:le[se-1]=Je:Mt&&(pt===we||pt===ke)&&wt?zt?se--:le[se-1]=Je:le[se++]=Je}else le[se++]=Je}function Be(Je){le[se-1][0]!==Je[0]&&le[se-1][1]!==Je[1]&&Ie([ye,J]),Ie(Je),ne=null,ye=J=0}Q==="linear"||Q==="spline"?xe=function(Je,ut){for(var pt=[],It=0,Mt=0;Mt<4;Mt++){var zt=Ae[Mt],wt=m(Je[0],Je[1],ut[0],ut[1],zt[0],zt[1],zt[2],zt[3]);wt&&(!It||Math.abs(wt.x-pt[0][0])>1||Math.abs(wt.y-pt[0][1])>1)&&(wt=[wt.x,wt.y],It&&Oe(wt,Je)be?be:0,ce=Je[1]ke?ke:0,Me||ce){if(se)if(ne){var ut=xe(ne,Je);ut.length>1&&(Be(ut[0]),le[se++]=ut[1])}else de=xe(le[se-1],Je)[0],le[se++]=de;else le[se++]=[Me||Je[0],ce||Je[1]];var pt=le[se-1];Me&&ce&&(pt[0]!==Me||pt[1]!==ce)?(ne&&(ye!==Me&&J!==ce?Ie(ye&&J?(It=ne,zt=(Mt=Je)[0]-It[0],wt=(Mt[1]-It[1])/zt,(It[1]*Mt[0]-Mt[1]*It[0])/zt>0?[wt>0?ge:be,ke]:[wt>0?be:ge,we]):[ye||Me,J||ce]):ye&&J&&Ie([ye,J])),Ie([Me,ce])):ye-Me&&J-ce&&Ie([Me||ye,ce||J]),ne=Je,ye=Me,J=ce}else ne&&Be(xe(ne,Je)[0]),le[se++]=Je;var It,Mt,zt,wt}for(x=0;xSe(M,Ye))break;w=M,(F=P[0]*C[0]+P[1]*C[1])>O?(O=F,k=M,S=!1):F=g.length||!M)break;qe(M),_=M}}else qe(k)}ne&&Ie([ye||ne[0],J||ne[1]]),X.push(le.slice(0,se))}var at=Q.slice(Q.length-1);if(V&&at!=="h"&&at!=="v"){for(var lt=!1,ct=-1,bt=[],ze=0;ze=0?p=b:(p=b=g,g++),p0?Math.max(y,h):0}}},4898:function(o){o.exports={container:"marker",min:"cmin",max:"cmax"}},49508:function(o,a,n){var l=n(7901),f=n(52075).hasColorscale,s=n(1586),c=n(34098);o.exports=function(d,h,p,m,y,v){var g=c.isBubble(d),b=(d.line||{}).color;v=v||{},b&&(p=b),y("marker.symbol"),y("marker.opacity",g?.7:1),y("marker.size"),v.noAngle||(y("marker.angle"),v.noAngleRef||y("marker.angleref"),v.noStandOff||y("marker.standoff")),y("marker.color",p),f(d,"marker")&&s(d,h,m,y,{prefix:"marker.",cLetter:"c"}),v.noSelect||(y("selected.marker.color"),y("unselected.marker.color"),y("selected.marker.size"),y("unselected.marker.size")),v.noLine||(y("marker.line.color",b&&!Array.isArray(b)&&h.marker.color!==b?b:g?l.background:l.defaultLine),f(d,"marker.line")&&s(d,h,m,y,{prefix:"marker.line.",cLetter:"c"}),y("marker.line.width",g?1:0)),g&&(y("marker.sizeref"),y("marker.sizemin"),y("marker.sizemode")),v.gradient&&y("marker.gradient.type")!=="none"&&y("marker.gradient.color")}},73927:function(o,a,n){var l=n(71828).dateTick0,f=n(50606).ONEWEEK;function s(c,d){return l(d,c%f==0?1:0)}o.exports=function(c,d,h,p,m){if(m||(m={x:!0,y:!0}),m.x){var y=p("xperiod");y&&(p("xperiod0",s(y,d.xcalendar)),p("xperiodalignment"))}if(m.y){var v=p("yperiod");v&&(p("yperiod0",s(v,d.ycalendar)),p("yperiodalignment"))}}},32663:function(o,a,n){var l=n(39898),f=n(73972),s=n(71828),c=s.ensureSingle,d=s.identity,h=n(91424),p=n(34098),m=n(34621),y=n(68687),v=n(61082).tester;function g(b,x,_,w,k,T,M){var S,C=b._context.staticPlot;(function(xe,ue,ge,be,we){var ke=ge.xaxis,Ae=ge.yaxis,Ee=l.extent(s.simpleMap(ke.range,ke.r2c)),De=l.extent(s.simpleMap(Ae.range,Ae.r2c)),Re=be[0].trace;if(p.hasMarkers(Re)){var Ie=Re.marker.maxdisplayed;if(Ie!==0){var Be=be.filter(function(at){return at.x>=Ee[0]&&at.x<=Ee[1]&&at.y>=De[0]&&at.y<=De[1]}),Ue=Math.ceil(Be.length/Ie),qe=0;we.forEach(function(at,lt){var ct=at[0].trace;p.hasMarkers(ct)&&ct.marker.maxdisplayed>0&<0;function D(xe){return P?xe.transition():xe}var O=_.xaxis,R=_.yaxis,F=w[0].trace,A=F.line,z=l.select(T),B=c(z,"g","errorbars"),$=c(z,"g","lines"),j=c(z,"g","points"),N=c(z,"g","text");if(f.getComponentMethod("errorbars","plot")(b,B,_,M),F.visible===!0){var E,W;D(z).style("opacity",F.opacity);var G=F.fill.charAt(F.fill.length-1);G!=="x"&&G!=="y"&&(G=""),w[0][_.isRangePlot?"nodeRangePlot3":"node3"]=z;var L,q,H="",V=[],te=F._prevtrace;te&&(H=te._prevRevpath||"",W=te._nextFill,V=te._polygons);var ee,U,Q,Y,Z,X,re,ie="",le="",se=[],pe=s.noop;if(E=F._ownFill,p.hasLines(F)||F.fill!=="none"){for(W&&W.datum(w),["hv","vh","hvh","vhv"].indexOf(A.shape)!==-1?(ee=h.steps(A.shape),U=h.steps(A.shape.split("").reverse().join(""))):ee=U=A.shape==="spline"?function(xe){var ue=xe[xe.length-1];return xe.length>1&&xe[0][0]===ue[0]&&xe[0][1]===ue[1]?h.smoothclosed(xe.slice(1),A.smoothing):h.smoothopen(xe,A.smoothing)}:function(xe){return"M"+xe.join("L")},Q=function(xe){return U(xe.reverse())},se=m(w,{xaxis:O,yaxis:R,trace:F,connectGaps:F.connectgaps,baseTolerance:Math.max(A.width||1,3)/4,shape:A.shape,backoff:A.backoff,simplify:A.simplify,fill:F.fill}),re=F._polygons=new Array(se.length),S=0;S0,D=y(b,x,_);(M=w.selectAll("g.trace").data(D,function(O){return O[0].trace.uid})).enter().append("g").attr("class",function(O){return"trace scatter trace"+O[0].trace.uid}).style("stroke-miterlimit",2),M.order(),function(O,R,F){R.each(function(A){var z=c(l.select(this),"g","fills");h.setClipUrl(z,F.layerClipId,O);var B=A[0].trace,$=[];B._ownfill&&$.push("_ownFill"),B._nexttrace&&$.push("_nextFill");var j=z.selectAll("g").data($,d);j.enter().append("g"),j.exit().each(function(N){B[N]=null}).remove(),j.order().each(function(N){B[N]=c(l.select(this),"path","js-fill")})})}(b,M,x),P?(T&&(S=T()),l.transition().duration(k.duration).ease(k.easing).each("end",function(){S&&S()}).each("interrupt",function(){S&&S()}).each(function(){w.selectAll("g.trace").each(function(O,R){g(b,R,x,O,D,this,k)})})):M.each(function(O,R){g(b,R,x,O,D,this,k)}),C&&M.exit().remove(),w.selectAll("path:not([d])").remove()}},98002:function(o,a,n){var l=n(34098);o.exports=function(f,s){var c,d,h,p,m=f.cd,y=f.xaxis,v=f.yaxis,g=[],b=m[0].trace;if(!l.hasMarkers(b)&&!l.hasText(b))return[];if(s===!1)for(c=0;c"),p.hovertemplate=x.hovertemplate,h}function C(P,D){M.push(P._hovertitle+": "+D)}}},52979:function(o,a,n){o.exports={attributes:n(50413),supplyDefaults:n(46008),colorbar:n(4898),formatLabels:n(93645),calc:n(54337),plot:n(7507),style:n(16296).style,styleOnSelect:n(16296).styleOnSelect,hoverPoints:n(47250),selectPoints:n(98002),eventData:n(4524),moduleType:"trace",name:"scatterternary",basePlotModule:n(61639),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}},7507:function(o,a,n){var l=n(32663);o.exports=function(f,s,c){var d=s.plotContainer;d.select(".scatterlayer").selectAll("*").remove();for(var h=s.xaxis,p=s.yaxis,m={xaxis:h,yaxis:p,plot:d,layerClipId:s._hasClipOnAxisFalse?s.clipIdRelative:null},y=s.layers.frontplot.select("g.scatterlayer"),v=0;v0){var P,D,O,R,F,A=h.xa,z=h.ya;w.orientation==="h"?(F=p,P="y",O=z,D="x",R=A):(F=m,P="x",O=A,D="y",R=z);var B=_[h.index];if(F>=B.span[0]&&F<=B.span[1]){var $=f.extendFlat({},h),j=R.c2p(F,!0),N=d.getKdeValue(B,w,F),E=d.getPositionOnKdePath(B,w,j),W=O._offset,G=O._length;$[P+"0"]=E[0],$[P+"1"]=E[1],$[D+"0"]=$[D+"1"]=j,$[D+"Label"]=D+": "+s.hoverLabelText(R,F,w[D+"hoverformat"])+", "+_[0].t.labels.kde+" "+N.toFixed(3);for(var L=0,q=0;qj&&(j=G,N=W)}}return j?A(N):d};case"rms":return function(z,B){for(var $=0,j=0,N=0;N":return function(V){return H(V)>L};case">=":return function(V){return H(V)>=L};case"[]":return function(V){var te=H(V);return te>=L[0]&&te<=L[1]};case"()":return function(V){var te=H(V);return te>L[0]&&te=L[0]&&teL[0]&&te<=L[1]};case"][":return function(V){var te=H(V);return te<=L[0]||te>=L[1]};case")(":return function(V){var te=H(V);return teL[1]};case"](":return function(V){var te=H(V);return te<=L[0]||te>L[1]};case")[":return function(V){var te=H(V);return te=L[1]};case"{}":return function(V){return L.indexOf(H(V))!==-1};case"}{":return function(V){return L.indexOf(H(V))===-1}}}(g,s.getDataToCoordFunc(y,v,x,b),w),D={},O={},R=0;T?(S=function(B){D[B.astr]=l.extendDeep([],B.get()),B.set(new Array(_))},C=function(B,$){var j=D[B.astr][$];B.get()[$]=j}):(S=function(B){D[B.astr]=l.extendDeep([],B.get()),B.set([])},C=function(B,$){var j=D[B.astr][$];B.get().push(j)}),z(S);for(var F=c(v.transforms,g),A=0;A<_;A++)P(b[A])?(z(C,A),O[R++]=F(A)):T&&R++;g._indexToPoints=O,v._length=R}}function z(B,$){for(var j=0;j1?"%{group} (%{trace})":"%{group}");var b=h.styles,x=v.styles=[];if(b)for(y=0;yy)throw new RangeError('The value "'+J+'" is invalid for option "size"');var ne=new Uint8Array(J);return Object.setPrototypeOf(ne,g.prototype),ne}function g(J,ne,de){if(typeof J=="number"){if(typeof ne=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _(J)}return b(J,ne,de)}function b(J,ne,de){if(typeof J=="string")return function(ge,be){if(typeof be=="string"&&be!==""||(be="utf8"),!g.isEncoding(be))throw new TypeError("Unknown encoding: "+be);var we=0|M(ge,be),ke=v(we),Ae=ke.write(ge,be);return Ae!==we&&(ke=ke.slice(0,Ae)),ke}(J,ne);if(ArrayBuffer.isView(J))return function(ge){if(Se(ge,Uint8Array)){var be=new Uint8Array(ge);return k(be.buffer,be.byteOffset,be.byteLength)}return w(ge)}(J);if(J==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+d(J));if(Se(J,ArrayBuffer)||J&&Se(J.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Se(J,SharedArrayBuffer)||J&&Se(J.buffer,SharedArrayBuffer)))return k(J,ne,de);if(typeof J=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var xe=J.valueOf&&J.valueOf();if(xe!=null&&xe!==J)return g.from(xe,ne,de);var ue=function(ge){if(g.isBuffer(ge)){var be=0|T(ge.length),we=v(be);return we.length===0||ge.copy(we,0,0,be),we}return ge.length!==void 0?typeof ge.length!="number"||Oe(ge.length)?v(0):w(ge):ge.type==="Buffer"&&Array.isArray(ge.data)?w(ge.data):void 0}(J);if(ue)return ue;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof J[Symbol.toPrimitive]=="function")return g.from(J[Symbol.toPrimitive]("string"),ne,de);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+d(J))}function x(J){if(typeof J!="number")throw new TypeError('"size" argument must be of type number');if(J<0)throw new RangeError('The value "'+J+'" is invalid for option "size"')}function _(J){return x(J),v(J<0?0:0|T(J))}function w(J){for(var ne=J.length<0?0:0|T(J.length),de=v(ne),xe=0;xe=y)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+y.toString(16)+" bytes");return 0|J}function M(J,ne){if(g.isBuffer(J))return J.length;if(ArrayBuffer.isView(J)||Se(J,ArrayBuffer))return J.byteLength;if(typeof J!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+d(J));var de=J.length,xe=arguments.length>2&&arguments[2]===!0;if(!xe&&de===0)return 0;for(var ue=!1;;)switch(ne){case"ascii":case"latin1":case"binary":return de;case"utf8":case"utf-8":return se(J).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*de;case"hex":return de>>>1;case"base64":return pe(J).length;default:if(ue)return xe?-1:se(J).length;ne=(""+ne).toLowerCase(),ue=!0}}function S(J,ne,de){var xe=!1;if((ne===void 0||ne<0)&&(ne=0),ne>this.length||((de===void 0||de>this.length)&&(de=this.length),de<=0)||(de>>>=0)<=(ne>>>=0))return"";for(J||(J="utf8");;)switch(J){case"hex":return W(this,ne,de);case"utf8":case"utf-8":return $(this,ne,de);case"ascii":return N(this,ne,de);case"latin1":case"binary":return E(this,ne,de);case"base64":return B(this,ne,de);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,ne,de);default:if(xe)throw new TypeError("Unknown encoding: "+J);J=(J+"").toLowerCase(),xe=!0}}function C(J,ne,de){var xe=J[ne];J[ne]=J[de],J[de]=xe}function P(J,ne,de,xe,ue){if(J.length===0)return-1;if(typeof de=="string"?(xe=de,de=0):de>2147483647?de=2147483647:de<-2147483648&&(de=-2147483648),Oe(de=+de)&&(de=ue?0:J.length-1),de<0&&(de=J.length+de),de>=J.length){if(ue)return-1;de=J.length-1}else if(de<0){if(!ue)return-1;de=0}if(typeof ne=="string"&&(ne=g.from(ne,xe)),g.isBuffer(ne))return ne.length===0?-1:D(J,ne,de,xe,ue);if(typeof ne=="number")return ne&=255,typeof Uint8Array.prototype.indexOf=="function"?ue?Uint8Array.prototype.indexOf.call(J,ne,de):Uint8Array.prototype.lastIndexOf.call(J,ne,de):D(J,[ne],de,xe,ue);throw new TypeError("val must be string, number or Buffer")}function D(J,ne,de,xe,ue){var ge,be=1,we=J.length,ke=ne.length;if(xe!==void 0&&((xe=String(xe).toLowerCase())==="ucs2"||xe==="ucs-2"||xe==="utf16le"||xe==="utf-16le")){if(J.length<2||ne.length<2)return-1;be=2,we/=2,ke/=2,de/=2}function Ae(Ie,Be){return be===1?Ie[Be]:Ie.readUInt16BE(Be*be)}if(ue){var Ee=-1;for(ge=de;gewe&&(de=we-ke),ge=de;ge>=0;ge--){for(var De=!0,Re=0;Reue&&(xe=ue):xe=ue;var ge,be=ne.length;for(xe>be/2&&(xe=be/2),ge=0;ge>8,ke=be%256,Ae.push(ke),Ae.push(we);return Ae}(ne,J.length-de),J,de,xe)}function B(J,ne,de){return ne===0&&de===J.length?h.fromByteArray(J):h.fromByteArray(J.slice(ne,de))}function $(J,ne,de){de=Math.min(J.length,de);for(var xe=[],ue=ne;ue239?4:ge>223?3:ge>191?2:1;if(ue+we<=de){var ke=void 0,Ae=void 0,Ee=void 0,De=void 0;switch(we){case 1:ge<128&&(be=ge);break;case 2:(192&(ke=J[ue+1]))==128&&(De=(31&ge)<<6|63&ke)>127&&(be=De);break;case 3:ke=J[ue+1],Ae=J[ue+2],(192&ke)==128&&(192&Ae)==128&&(De=(15&ge)<<12|(63&ke)<<6|63&Ae)>2047&&(De<55296||De>57343)&&(be=De);break;case 4:ke=J[ue+1],Ae=J[ue+2],Ee=J[ue+3],(192&ke)==128&&(192&Ae)==128&&(192&Ee)==128&&(De=(15&ge)<<18|(63&ke)<<12|(63&Ae)<<6|63&Ee)>65535&&De<1114112&&(be=De)}}be===null?(be=65533,we=1):be>65535&&(be-=65536,xe.push(be>>>10&1023|55296),be=56320|1023&be),xe.push(be),ue+=we}return function(Re){var Ie=Re.length;if(Ie<=j)return String.fromCharCode.apply(String,Re);for(var Be="",Ue=0;Ue"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.byteOffset}}),g.poolSize=8192,g.from=function(J,ne,de){return b(J,ne,de)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array),g.alloc=function(J,ne,de){return function(xe,ue,ge){return x(xe),xe<=0?v(xe):ue!==void 0?typeof ge=="string"?v(xe).fill(ue,ge):v(xe).fill(ue):v(xe)}(J,ne,de)},g.allocUnsafe=function(J){return _(J)},g.allocUnsafeSlow=function(J){return _(J)},g.isBuffer=function(J){return J!=null&&J._isBuffer===!0&&J!==g.prototype},g.compare=function(J,ne){if(Se(J,Uint8Array)&&(J=g.from(J,J.offset,J.byteLength)),Se(ne,Uint8Array)&&(ne=g.from(ne,ne.offset,ne.byteLength)),!g.isBuffer(J)||!g.isBuffer(ne))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(J===ne)return 0;for(var de=J.length,xe=ne.length,ue=0,ge=Math.min(de,xe);uexe.length?(g.isBuffer(ge)||(ge=g.from(ge)),ge.copy(xe,ue)):Uint8Array.prototype.set.call(xe,ge,ue);else{if(!g.isBuffer(ge))throw new TypeError('"list" argument must be an Array of Buffers');ge.copy(xe,ue)}ue+=ge.length}return xe},g.byteLength=M,g.prototype._isBuffer=!0,g.prototype.swap16=function(){var J=this.length;if(J%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ne=0;nene&&(J+=" ... "),""},m&&(g.prototype[m]=g.prototype.inspect),g.prototype.compare=function(J,ne,de,xe,ue){if(Se(J,Uint8Array)&&(J=g.from(J,J.offset,J.byteLength)),!g.isBuffer(J))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+d(J));if(ne===void 0&&(ne=0),de===void 0&&(de=J?J.length:0),xe===void 0&&(xe=0),ue===void 0&&(ue=this.length),ne<0||de>J.length||xe<0||ue>this.length)throw new RangeError("out of range index");if(xe>=ue&&ne>=de)return 0;if(xe>=ue)return-1;if(ne>=de)return 1;if(this===J)return 0;for(var ge=(ue>>>=0)-(xe>>>=0),be=(de>>>=0)-(ne>>>=0),we=Math.min(ge,be),ke=this.slice(xe,ue),Ae=J.slice(ne,de),Ee=0;Ee>>=0,isFinite(de)?(de>>>=0,xe===void 0&&(xe="utf8")):(xe=de,de=void 0)}var ue=this.length-ne;if((de===void 0||de>ue)&&(de=ue),J.length>0&&(de<0||ne<0)||ne>this.length)throw new RangeError("Attempt to write outside buffer bounds");xe||(xe="utf8");for(var ge=!1;;)switch(xe){case"hex":return O(this,J,ne,de);case"utf8":case"utf-8":return R(this,J,ne,de);case"ascii":case"latin1":case"binary":return F(this,J,ne,de);case"base64":return A(this,J,ne,de);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,J,ne,de);default:if(ge)throw new TypeError("Unknown encoding: "+xe);xe=(""+xe).toLowerCase(),ge=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var j=4096;function N(J,ne,de){var xe="";de=Math.min(J.length,de);for(var ue=ne;uexe)&&(de=xe);for(var ue="",ge=ne;gede)throw new RangeError("Trying to access beyond buffer length")}function q(J,ne,de,xe,ue,ge){if(!g.isBuffer(J))throw new TypeError('"buffer" argument must be a Buffer instance');if(ne>ue||neJ.length)throw new RangeError("Index out of range")}function H(J,ne,de,xe,ue){X(ne,xe,ue,J,de,7);var ge=Number(ne&BigInt(4294967295));J[de++]=ge,ge>>=8,J[de++]=ge,ge>>=8,J[de++]=ge,ge>>=8,J[de++]=ge;var be=Number(ne>>BigInt(32)&BigInt(4294967295));return J[de++]=be,be>>=8,J[de++]=be,be>>=8,J[de++]=be,be>>=8,J[de++]=be,de}function V(J,ne,de,xe,ue){X(ne,xe,ue,J,de,7);var ge=Number(ne&BigInt(4294967295));J[de+7]=ge,ge>>=8,J[de+6]=ge,ge>>=8,J[de+5]=ge,ge>>=8,J[de+4]=ge;var be=Number(ne>>BigInt(32)&BigInt(4294967295));return J[de+3]=be,be>>=8,J[de+2]=be,be>>=8,J[de+1]=be,be>>=8,J[de]=be,de+8}function te(J,ne,de,xe,ue,ge){if(de+xe>J.length)throw new RangeError("Index out of range");if(de<0)throw new RangeError("Index out of range")}function ee(J,ne,de,xe,ue){return ne=+ne,de>>>=0,ue||te(J,0,de,4),p.write(J,ne,de,xe,23,4),de+4}function U(J,ne,de,xe,ue){return ne=+ne,de>>>=0,ue||te(J,0,de,8),p.write(J,ne,de,xe,52,8),de+8}g.prototype.slice=function(J,ne){var de=this.length;(J=~~J)<0?(J+=de)<0&&(J=0):J>de&&(J=de),(ne=ne===void 0?de:~~ne)<0?(ne+=de)<0&&(ne=0):ne>de&&(ne=de),ne>>=0,ne>>>=0,de||L(J,ne,this.length);for(var xe=this[J],ue=1,ge=0;++ge>>=0,ne>>>=0,de||L(J,ne,this.length);for(var xe=this[J+--ne],ue=1;ne>0&&(ue*=256);)xe+=this[J+--ne]*ue;return xe},g.prototype.readUint8=g.prototype.readUInt8=function(J,ne){return J>>>=0,ne||L(J,1,this.length),this[J]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(J,ne){return J>>>=0,ne||L(J,2,this.length),this[J]|this[J+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(J,ne){return J>>>=0,ne||L(J,2,this.length),this[J]<<8|this[J+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(J,ne){return J>>>=0,ne||L(J,4,this.length),(this[J]|this[J+1]<<8|this[J+2]<<16)+16777216*this[J+3]},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(J,ne){return J>>>=0,ne||L(J,4,this.length),16777216*this[J]+(this[J+1]<<16|this[J+2]<<8|this[J+3])},g.prototype.readBigUInt64LE=ce(function(J){re(J>>>=0,"offset");var ne=this[J],de=this[J+7];ne!==void 0&&de!==void 0||ie(J,this.length-8);var xe=ne+this[++J]*Math.pow(2,8)+this[++J]*Math.pow(2,16)+this[++J]*Math.pow(2,24),ue=this[++J]+this[++J]*Math.pow(2,8)+this[++J]*Math.pow(2,16)+de*Math.pow(2,24);return BigInt(xe)+(BigInt(ue)<>>=0,"offset");var ne=this[J],de=this[J+7];ne!==void 0&&de!==void 0||ie(J,this.length-8);var xe=ne*Math.pow(2,24)+this[++J]*Math.pow(2,16)+this[++J]*Math.pow(2,8)+this[++J],ue=this[++J]*Math.pow(2,24)+this[++J]*Math.pow(2,16)+this[++J]*Math.pow(2,8)+de;return(BigInt(xe)<>>=0,ne>>>=0,de||L(J,ne,this.length);for(var xe=this[J],ue=1,ge=0;++ge=(ue*=128)&&(xe-=Math.pow(2,8*ne)),xe},g.prototype.readIntBE=function(J,ne,de){J>>>=0,ne>>>=0,de||L(J,ne,this.length);for(var xe=ne,ue=1,ge=this[J+--xe];xe>0&&(ue*=256);)ge+=this[J+--xe]*ue;return ge>=(ue*=128)&&(ge-=Math.pow(2,8*ne)),ge},g.prototype.readInt8=function(J,ne){return J>>>=0,ne||L(J,1,this.length),128&this[J]?-1*(255-this[J]+1):this[J]},g.prototype.readInt16LE=function(J,ne){J>>>=0,ne||L(J,2,this.length);var de=this[J]|this[J+1]<<8;return 32768&de?4294901760|de:de},g.prototype.readInt16BE=function(J,ne){J>>>=0,ne||L(J,2,this.length);var de=this[J+1]|this[J]<<8;return 32768&de?4294901760|de:de},g.prototype.readInt32LE=function(J,ne){return J>>>=0,ne||L(J,4,this.length),this[J]|this[J+1]<<8|this[J+2]<<16|this[J+3]<<24},g.prototype.readInt32BE=function(J,ne){return J>>>=0,ne||L(J,4,this.length),this[J]<<24|this[J+1]<<16|this[J+2]<<8|this[J+3]},g.prototype.readBigInt64LE=ce(function(J){re(J>>>=0,"offset");var ne=this[J],de=this[J+7];ne!==void 0&&de!==void 0||ie(J,this.length-8);var xe=this[J+4]+this[J+5]*Math.pow(2,8)+this[J+6]*Math.pow(2,16)+(de<<24);return(BigInt(xe)<>>=0,"offset");var ne=this[J],de=this[J+7];ne!==void 0&&de!==void 0||ie(J,this.length-8);var xe=(ne<<24)+this[++J]*Math.pow(2,16)+this[++J]*Math.pow(2,8)+this[++J];return(BigInt(xe)<>>=0,ne||L(J,4,this.length),p.read(this,J,!0,23,4)},g.prototype.readFloatBE=function(J,ne){return J>>>=0,ne||L(J,4,this.length),p.read(this,J,!1,23,4)},g.prototype.readDoubleLE=function(J,ne){return J>>>=0,ne||L(J,8,this.length),p.read(this,J,!0,52,8)},g.prototype.readDoubleBE=function(J,ne){return J>>>=0,ne||L(J,8,this.length),p.read(this,J,!1,52,8)},g.prototype.writeUintLE=g.prototype.writeUIntLE=function(J,ne,de,xe){J=+J,ne>>>=0,de>>>=0,xe||q(this,J,ne,de,Math.pow(2,8*de)-1,0);var ue=1,ge=0;for(this[ne]=255&J;++ge>>=0,de>>>=0,xe||q(this,J,ne,de,Math.pow(2,8*de)-1,0);var ue=de-1,ge=1;for(this[ne+ue]=255&J;--ue>=0&&(ge*=256);)this[ne+ue]=J/ge&255;return ne+de},g.prototype.writeUint8=g.prototype.writeUInt8=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,1,255,0),this[ne]=255&J,ne+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,2,65535,0),this[ne]=255&J,this[ne+1]=J>>>8,ne+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,2,65535,0),this[ne]=J>>>8,this[ne+1]=255&J,ne+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,4,4294967295,0),this[ne+3]=J>>>24,this[ne+2]=J>>>16,this[ne+1]=J>>>8,this[ne]=255&J,ne+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,4,4294967295,0),this[ne]=J>>>24,this[ne+1]=J>>>16,this[ne+2]=J>>>8,this[ne+3]=255&J,ne+4},g.prototype.writeBigUInt64LE=ce(function(J){return H(this,J,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=ce(function(J){return V(this,J,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(J,ne,de,xe){if(J=+J,ne>>>=0,!xe){var ue=Math.pow(2,8*de-1);q(this,J,ne,de,ue-1,-ue)}var ge=0,be=1,we=0;for(this[ne]=255&J;++ge>0)-we&255;return ne+de},g.prototype.writeIntBE=function(J,ne,de,xe){if(J=+J,ne>>>=0,!xe){var ue=Math.pow(2,8*de-1);q(this,J,ne,de,ue-1,-ue)}var ge=de-1,be=1,we=0;for(this[ne+ge]=255&J;--ge>=0&&(be*=256);)J<0&&we===0&&this[ne+ge+1]!==0&&(we=1),this[ne+ge]=(J/be>>0)-we&255;return ne+de},g.prototype.writeInt8=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,1,127,-128),J<0&&(J=255+J+1),this[ne]=255&J,ne+1},g.prototype.writeInt16LE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,2,32767,-32768),this[ne]=255&J,this[ne+1]=J>>>8,ne+2},g.prototype.writeInt16BE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,2,32767,-32768),this[ne]=J>>>8,this[ne+1]=255&J,ne+2},g.prototype.writeInt32LE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,4,2147483647,-2147483648),this[ne]=255&J,this[ne+1]=J>>>8,this[ne+2]=J>>>16,this[ne+3]=J>>>24,ne+4},g.prototype.writeInt32BE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,4,2147483647,-2147483648),J<0&&(J=4294967295+J+1),this[ne]=J>>>24,this[ne+1]=J>>>16,this[ne+2]=J>>>8,this[ne+3]=255&J,ne+4},g.prototype.writeBigInt64LE=ce(function(J){return H(this,J,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=ce(function(J){return V(this,J,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeFloatLE=function(J,ne,de){return ee(this,J,ne,!0,de)},g.prototype.writeFloatBE=function(J,ne,de){return ee(this,J,ne,!1,de)},g.prototype.writeDoubleLE=function(J,ne,de){return U(this,J,ne,!0,de)},g.prototype.writeDoubleBE=function(J,ne,de){return U(this,J,ne,!1,de)},g.prototype.copy=function(J,ne,de,xe){if(!g.isBuffer(J))throw new TypeError("argument should be a Buffer");if(de||(de=0),xe||xe===0||(xe=this.length),ne>=J.length&&(ne=J.length),ne||(ne=0),xe>0&&xe=this.length)throw new RangeError("Index out of range");if(xe<0)throw new RangeError("sourceEnd out of bounds");xe>this.length&&(xe=this.length),J.length-ne>>=0,de=de===void 0?this.length:de>>>0,J||(J=0),typeof J=="number")for(ge=ne;ge"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var Ee,De=c(be);if(we){var Re=c(this).constructor;Ee=Reflect.construct(De,arguments,Re)}else Ee=De.apply(this,arguments);return function(Ie,Be){if(Be&&(d(Be)==="object"||typeof Be=="function"))return Be;if(Be!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return s(Ie)}(this,Ee)});function Ae(){var Ee;return function(De,Re){if(!(De instanceof Re))throw new TypeError("Cannot call a class as a function")}(this,Ae),Ee=ke.call(this),Object.defineProperty(s(Ee),"message",{value:ne.apply(s(Ee),arguments),writable:!0,configurable:!0}),Ee.name="".concat(Ee.name," [").concat(J,"]"),Ee.stack,delete Ee.name,Ee}return ue=Ae,(ge=[{key:"code",get:function(){return J},set:function(Ee){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Ee,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(J,"]: ").concat(this.message)}}])&&l(ue.prototype,ge),Object.defineProperty(ue,"prototype",{writable:!1}),Ae}(de)}function Z(J){for(var ne="",de=J.length,xe=J[0]==="-"?1:0;de>=xe+4;de-=3)ne="_".concat(J.slice(de-3,de)).concat(ne);return"".concat(J.slice(0,de)).concat(ne)}function X(J,ne,de,xe,ue,ge){if(J>de||J= 0".concat(we," and < 2").concat(we," ** ").concat(8*(ge+1)).concat(we):">= -(2".concat(we," ** ").concat(8*(ge+1)-1).concat(we,") and < 2 ** ")+"".concat(8*(ge+1)-1).concat(we),new Q.ERR_OUT_OF_RANGE("value",be,J)}(function(ke,Ae,Ee){re(Ae,"offset"),ke[Ae]!==void 0&&ke[Ae+Ee]!==void 0||ie(Ae,ke.length-(Ee+1))})(xe,ue,ge)}function re(J,ne){if(typeof J!="number")throw new Q.ERR_INVALID_ARG_TYPE(ne,"number",J)}function ie(J,ne,de){throw Math.floor(J)!==J?(re(J,de),new Q.ERR_OUT_OF_RANGE("offset","an integer",J)):ne<0?new Q.ERR_BUFFER_OUT_OF_BOUNDS:new Q.ERR_OUT_OF_RANGE("offset",">= ".concat(0," and <= ").concat(ne),J)}Y("ERR_BUFFER_OUT_OF_BOUNDS",function(J){return J?"".concat(J," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError),Y("ERR_INVALID_ARG_TYPE",function(J,ne){return'The "'.concat(J,'" argument must be of type number. Received type ').concat(d(ne))},TypeError),Y("ERR_OUT_OF_RANGE",function(J,ne,de){var xe='The value of "'.concat(J,'" is out of range.'),ue=de;return Number.isInteger(de)&&Math.abs(de)>Math.pow(2,32)?ue=Z(String(de)):typeof de=="bigint"&&(ue=String(de),(de>Math.pow(BigInt(2),BigInt(32))||de<-Math.pow(BigInt(2),BigInt(32)))&&(ue=Z(ue)),ue+="n"),xe+" It must be ".concat(ne,". Received ").concat(ue)},RangeError);var le=/[^+/0-9A-Za-z-_]/g;function se(J,ne){var de;ne=ne||1/0;for(var xe=J.length,ue=null,ge=[],be=0;be55295&&de<57344){if(!ue){if(de>56319){(ne-=3)>-1&&ge.push(239,191,189);continue}if(be+1===xe){(ne-=3)>-1&&ge.push(239,191,189);continue}ue=de;continue}if(de<56320){(ne-=3)>-1&&ge.push(239,191,189),ue=de;continue}de=65536+(ue-55296<<10|de-56320)}else ue&&(ne-=3)>-1&&ge.push(239,191,189);if(ue=null,de<128){if((ne-=1)<0)break;ge.push(de)}else if(de<2048){if((ne-=2)<0)break;ge.push(de>>6|192,63&de|128)}else if(de<65536){if((ne-=3)<0)break;ge.push(de>>12|224,de>>6&63|128,63&de|128)}else{if(!(de<1114112))throw new Error("Invalid code point");if((ne-=4)<0)break;ge.push(de>>18|240,de>>12&63|128,de>>6&63|128,63&de|128)}}return ge}function pe(J){return h.toByteArray(function(ne){if((ne=(ne=ne.split("=")[0]).trim().replace(le,"")).length<2)return"";for(;ne.length%4!=0;)ne+="=";return ne}(J))}function Te(J,ne,de,xe){var ue;for(ue=0;ue=ne.length||ue>=J.length);++ue)ne[ue+de]=J[ue];return ue}function Se(J,ne){return J instanceof ne||J!=null&&J.constructor!=null&&J.constructor.name!=null&&J.constructor.name===ne.name}function Oe(J){return J!=J}var Me=function(){for(var J="0123456789abcdef",ne=new Array(256),de=0;de<16;++de)for(var xe=16*de,ue=0;ue<16;++ue)ne[xe+ue]=J[de]+J[ue];return ne}();function ce(J){return typeof BigInt>"u"?ye:J}function ye(){throw new Error("BigInt not supported")}},35791:function(o){o.exports=f,o.exports.isMobile=f,o.exports.default=f;var a=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,n=/CrOS/,l=/android|ipad|playbook|silk/i;function f(s){s||(s={});var c=s.ua;if(c||typeof navigator>"u"||(c=navigator.userAgent),c&&c.headers&&typeof c.headers["user-agent"]=="string"&&(c=c.headers["user-agent"]),typeof c!="string")return!1;var d=a.test(c)&&!n.test(c)||!!s.tablet&&l.test(c);return!d&&s.tablet&&s.featureDetect&&navigator&&navigator.maxTouchPoints>1&&c.indexOf("Macintosh")!==-1&&c.indexOf("Safari")!==-1&&(d=!0),d}},39898:function(o,a,n){var l,f;(function(){var s={version:"3.8.0"},c=[].slice,d=function(I){return c.call(I)},h=self.document;function p(I){return I&&(I.ownerDocument||I.document||I).documentElement}function m(I){return I&&(I.ownerDocument&&I.ownerDocument.defaultView||I.document&&I||I.defaultView)}if(h)try{d(h.documentElement.childNodes)[0].nodeType}catch{d=function(K){for(var ae=K.length,fe=new Array(ae);ae--;)fe[ae]=K[ae];return fe}}if(Date.now||(Date.now=function(){return+new Date}),h)try{h.createElement("DIV").style.setProperty("opacity",0,"")}catch{var y=this.Element.prototype,v=y.setAttribute,g=y.setAttributeNS,b=this.CSSStyleDeclaration.prototype,x=b.setProperty;y.setAttribute=function(K,ae){v.call(this,K,ae+"")},y.setAttributeNS=function(K,ae,fe){g.call(this,K,ae,fe+"")},b.setProperty=function(K,ae,fe){x.call(this,K,ae+"",fe)}}function _(I,K){return IK?1:I>=K?0:NaN}function w(I){return I===null?NaN:+I}function k(I){return!isNaN(I)}function T(I){return{left:function(K,ae,fe,he){for(arguments.length<3&&(fe=0),arguments.length<4&&(he=K.length);fe>>1;I(K[me],ae)<0?fe=me+1:he=me}return fe},right:function(K,ae,fe,he){for(arguments.length<3&&(fe=0),arguments.length<4&&(he=K.length);fe>>1;I(K[me],ae)>0?he=me:fe=me+1}return fe}}}s.ascending=_,s.descending=function(I,K){return KI?1:K>=I?0:NaN},s.min=function(I,K){var ae,fe,he=-1,me=I.length;if(arguments.length===1){for(;++he=fe){ae=fe;break}for(;++hefe&&(ae=fe)}else{for(;++he=fe){ae=fe;break}for(;++hefe&&(ae=fe)}return ae},s.max=function(I,K){var ae,fe,he=-1,me=I.length;if(arguments.length===1){for(;++he=fe){ae=fe;break}for(;++heae&&(ae=fe)}else{for(;++he=fe){ae=fe;break}for(;++heae&&(ae=fe)}return ae},s.extent=function(I,K){var ae,fe,he,me=-1,Ce=I.length;if(arguments.length===1){for(;++me=fe){ae=he=fe;break}for(;++mefe&&(ae=fe),he=fe){ae=he=fe;break}for(;++mefe&&(ae=fe),he1)return Ce/(Le-1)},s.deviation=function(){var I=s.variance.apply(this,arguments);return I&&Math.sqrt(I)};var M=T(_);function S(I){return I.length}s.bisectLeft=M.left,s.bisect=s.bisectRight=M.right,s.bisector=function(I){return T(I.length===1?function(K,ae){return _(I(K),ae)}:I)},s.shuffle=function(I,K,ae){(me=arguments.length)<3&&(ae=I.length,me<2&&(K=0));for(var fe,he,me=ae-K;me;)he=Math.random()*me--|0,fe=I[me+K],I[me+K]=I[he+K],I[he+K]=fe;return I},s.permute=function(I,K){for(var ae=K.length,fe=new Array(ae);ae--;)fe[ae]=I[K[ae]];return fe},s.pairs=function(I){for(var K=0,ae=I.length-1,fe=I[0],he=new Array(ae<0?0:ae);K=0;)for(K=(fe=I[he]).length;--K>=0;)ae[--Ce]=fe[K];return ae};var C=Math.abs;function P(I,K){for(var ae in K)Object.defineProperty(I.prototype,ae,{value:K[ae],enumerable:!1})}function D(){this._=Object.create(null)}s.range=function(I,K,ae){if(arguments.length<3&&(ae=1,arguments.length<2&&(K=I,I=0)),(K-I)/ae==1/0)throw new Error("infinite range");var fe,he=[],me=function(Pe){for(var Le=1;Pe*Le%1;)Le*=10;return Le}(C(ae)),Ce=-1;if(I*=me,K*=me,(ae*=me)<0)for(;(fe=I+ae*++Ce)>K;)he.push(fe/me);else for(;(fe=I+ae*++Ce)=fe.length)return K?K.call(ae,Le):I?Le.sort(I):Le;for(var He,Xe,rt,vt,Ct=-1,dt=Le.length,xt=fe[Fe++],ot=new D;++Ct=fe.length)return Pe;var Fe=[],He=he[Le++];return Pe.forEach(function(Xe,rt){Fe.push({key:Xe,values:Ce(rt,Le)})}),He?Fe.sort(function(Xe,rt){return He(Xe.key,rt.key)}):Fe}return ae.map=function(Pe,Le){return me(Le,Pe,0)},ae.entries=function(Pe){return Ce(me(s.map,Pe,0),0)},ae.key=function(Pe){return fe.push(Pe),ae},ae.sortKeys=function(Pe){return he[fe.length-1]=Pe,ae},ae.sortValues=function(Pe){return I=Pe,ae},ae.rollup=function(Pe){return K=Pe,ae},ae},s.set=function(I){var K=new E;if(I)for(var ae=0,fe=I.length;ae=0&&(fe=I.slice(ae+1),I=I.slice(0,ae)),I)return arguments.length<2?this[I].on(fe):this[I].on(fe,K);if(arguments.length===2){if(K==null)for(I in this)this.hasOwnProperty(I)&&this[I].on(fe,null);return this}},s.event=null,s.requote=function(I){return I.replace(Y,"\\$&")};var Y=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Z={}.__proto__?function(I,K){I.__proto__=K}:function(I,K){for(var ae in K)I[ae]=K[ae]};function X(I){return Z(I,se),I}var re=function(I,K){return K.querySelector(I)},ie=function(I,K){return K.querySelectorAll(I)},le=function(I,K){var ae=I.matches||I[L(I,"matchesSelector")];return le=function(fe,he){return ae.call(fe,he)},le(I,K)};typeof Sizzle=="function"&&(re=function(I,K){return Sizzle(I,K)[0]||null},ie=Sizzle,le=Sizzle.matchesSelector),s.selection=function(){return s.select(h.documentElement)};var se=s.selection.prototype=[];function pe(I){return typeof I=="function"?I:function(){return re(I,this)}}function Te(I){return typeof I=="function"?I:function(){return ie(I,this)}}se.select=function(I){var K,ae,fe,he,me=[];I=pe(I);for(var Ce=-1,Pe=this.length;++Ce=0&&(ae=I.slice(0,K))!=="xmlns"&&(I=I.slice(K+1)),Oe.hasOwnProperty(ae)?{space:Oe[ae],local:I}:I}},se.attr=function(I,K){if(arguments.length<2){if(typeof I=="string"){var ae=this.node();return(I=s.ns.qualify(I)).local?ae.getAttributeNS(I.space,I.local):ae.getAttribute(I)}for(K in I)this.each(Me(K,I[K]));return this}return this.each(Me(I,K))},se.classed=function(I,K){if(arguments.length<2){if(typeof I=="string"){var ae=this.node(),fe=(I=J(I)).length,he=-1;if(K=ae.classList){for(;++he=0;)(ae=fe[he])&&(me&&me!==ae.nextSibling&&me.parentNode.insertBefore(ae,me),me=ae);return this},se.sort=function(I){I=Ae.apply(this,arguments);for(var K=-1,ae=this.length;++K0&&(I=I.slice(0,he));var Ce=Be.get(I);function Pe(){var Le=this[fe];Le&&(this.removeEventListener(I,Le,Le.$),delete this[fe])}return Ce&&(I=Ce,me=qe),he?K?function(){var Le=me(K,d(arguments));Pe.call(this),this.addEventListener(I,this[fe]=Le,Le.$=ae),Le._=K}:Pe:K?H:function(){var Le,Fe=new RegExp("^__on([^.]+)"+s.requote(I)+"$");for(var He in this)if(Le=He.match(Fe)){var Xe=this[He];this.removeEventListener(Le[1],Xe,Xe.$),delete this[He]}}}s.selection.enter=De,s.selection.enter.prototype=Re,Re.append=se.append,Re.empty=se.empty,Re.node=se.node,Re.call=se.call,Re.size=se.size,Re.select=function(I){for(var K,ae,fe,he,me,Ce=[],Pe=-1,Le=this.length;++Pe=fe&&(fe=Ce+1);!(Le=Fe[fe])&&++fe1?ut:I<-1?-ut:Math.asin(I)}function zt(I){return((I=Math.exp(I))+1/I)/2}var wt=Math.SQRT2;s.interpolateZoom=function(I,K){var ae,fe,he=I[0],me=I[1],Ce=I[2],Pe=K[0],Le=K[1],Fe=K[2],He=Pe-he,Xe=Le-me,rt=He*He+Xe*Xe;if(rt0&&(en=en.transition().duration(rt)),en.call(_t.event)}function Jt(){Ce&&Ce.domain(me.range().map(function(en){return(en-Fe.x)/Fe.k}).map(me.invert)),Le&&Le.domain(Pe.range().map(function(en){return(en-Fe.y)/Fe.k}).map(Pe.invert))}function gn(en){vt++||en({type:"zoomstart"})}function vn(en){Jt(),en({type:"zoom",scale:Fe.k,translate:[Fe.x,Fe.y]})}function kn(en){--vt||(en({type:"zoomend"}),K=null)}function yn(){var en=this,fn=Pt.of(en,arguments),En=0,In=s.select(m(en)).on(dt,function(){En=1,Ht(s.mouse(en),Wn),vn(fn)}).on(xt,function(){In.on(dt,null).on(xt,null),cr(En),kn(fn)}),Wn=ft(s.mouse(en)),cr=lt(en);Rc.call(en),gn(fn)}function Nn(){var en,fn=this,En=Pt.of(fn,arguments),In={},Wn=0,cr=".zoom-"+s.event.changedTouches[0].identifier,Ir="touchmove"+cr,Sr="touchend"+cr,Vr=[],Fr=s.select(fn),Yr=lt(fn);function da(){var Xr=s.touches(fn);return en=Fe.k,Xr.forEach(function(Nr){Nr.identifier in In&&(In[Nr.identifier]=ft(Nr))}),Xr}function Ka(){var Xr=s.event.target;s.select(Xr).on(Ir,ii).on(Sr,oi),Vr.push(Xr);for(var Nr=s.event.changedTouches,va=0,ya=Nr.length;va1){xi=Ta[0];var Bi=Ta[1],Fc=xi[0]-Bi[0],B2=xi[1]-Bi[1];Wn=Fc*Fc+B2*B2}}function ii(){var Xr,Nr,va,ya,Ta=s.touches(fn);Rc.call(fn);for(var Ba=0,xi=Ta.length;Ba360?Pe-=360:Pe<0&&(Pe+=360),Pe<60?fe+(he-fe)*Pe/60:Pe<180?he:Pe<240?fe+(he-fe)*(240-Pe)/60:fe}(Ce))}return I=isNaN(I)?0:(I%=360)<0?I+360:I,K=isNaN(K)||K<0?0:K>1?1:K,fe=2*(ae=ae<0?0:ae>1?1:ae)-(he=ae<=.5?ae*(1+K):ae+K-ae*K),new Et(me(I+120),me(I),me(I-120))}function nt(I,K,ae){return this instanceof nt?(this.h=+I,this.c=+K,void(this.l=+ae)):arguments.length<2?I instanceof nt?new nt(I.h,I.c,I.l):function(fe,he,me){return fe>0?new nt(Math.atan2(me,he)*It,Math.sqrt(he*he+me*me),fe):new nt(NaN,NaN,fe)}(I instanceof tt?I.l:(I=$t((I=s.rgb(I)).r,I.g,I.b)).l,I.a,I.b):new nt(I,K,ae)}Ge.brighter=function(I){return I=Math.pow(.7,arguments.length?I:1),new Ze(this.h,this.s,this.l/I)},Ge.darker=function(I){return I=Math.pow(.7,arguments.length?I:1),new Ze(this.h,this.s,I*this.l)},Ge.rgb=function(){return Ke(this.h,this.s,this.l)},s.hcl=nt;var st=nt.prototype=new We;function mt(I,K,ae){return isNaN(I)&&(I=0),isNaN(K)&&(K=0),new tt(ae,Math.cos(I*=pt)*K,Math.sin(I)*K)}function tt(I,K,ae){return this instanceof tt?(this.l=+I,this.a=+K,void(this.b=+ae)):arguments.length<2?I instanceof tt?new tt(I.l,I.a,I.b):I instanceof nt?mt(I.h,I.c,I.l):$t((I=Et(I)).r,I.g,I.b):new tt(I,K,ae)}st.brighter=function(I){return new nt(this.h,this.c,Math.min(100,this.l+Ft*(arguments.length?I:1)))},st.darker=function(I){return new nt(this.h,this.c,Math.max(0,this.l-Ft*(arguments.length?I:1)))},st.rgb=function(){return mt(this.h,this.c,this.l).rgb()},s.lab=tt;var Ft=18,Vt=.95047,St=1,Nt=1.08883,Dt=tt.prototype=new We;function gt(I,K,ae){var fe=(I+16)/116,he=fe+K/500,me=fe-ae/200;return new Et(qt(3.2404542*(he=ht(he)*Vt)-1.5371385*(fe=ht(fe)*St)-.4985314*(me=ht(me)*Nt)),qt(-.969266*he+1.8760108*fe+.041556*me),qt(.0556434*he-.2040259*fe+1.0572252*me))}function ht(I){return I>.206893034?I*I*I:(I-.13793103448275862)/7.787037}function yt(I){return I>.008856?Math.pow(I,.3333333333333333):7.787037*I+.13793103448275862}function qt(I){return Math.round(255*(I<=.00304?12.92*I:1.055*Math.pow(I,.4166666666666667)-.055))}function Et(I,K,ae){return this instanceof Et?(this.r=~~I,this.g=~~K,void(this.b=~~ae)):arguments.length<2?I instanceof Et?new Et(I.r,I.g,I.b):Lt(""+I,Et,Ke):new Et(I,K,ae)}function jt(I){return new Et(I>>16,I>>8&255,255&I)}function Tt(I){return jt(I)+""}Dt.brighter=function(I){return new tt(Math.min(100,this.l+Ft*(arguments.length?I:1)),this.a,this.b)},Dt.darker=function(I){return new tt(Math.max(0,this.l-Ft*(arguments.length?I:1)),this.a,this.b)},Dt.rgb=function(){return gt(this.l,this.a,this.b)},s.rgb=Et;var Ot=Et.prototype=new We;function At(I){return I<16?"0"+Math.max(0,I).toString(16):Math.min(255,I).toString(16)}function Lt(I,K,ae){var fe,he,me,Ce=0,Pe=0,Le=0;if(fe=/([a-z]+)\((.*)\)/.exec(I=I.toLowerCase()))switch(he=fe[2].split(","),fe[1]){case"hsl":return ae(parseFloat(he[0]),parseFloat(he[1])/100,parseFloat(he[2])/100);case"rgb":return K(Xt(he[0]),Xt(he[1]),Xt(he[2]))}return(me=Bt.get(I))?K(me.r,me.g,me.b):(I==null||I.charAt(0)!=="#"||isNaN(me=parseInt(I.slice(1),16))||(I.length===4?(Ce=(3840&me)>>4,Ce|=Ce>>4,Pe=240&me,Pe|=Pe>>4,Le=15&me,Le|=Le<<4):I.length===7&&(Ce=(16711680&me)>>16,Pe=(65280&me)>>8,Le=255&me)),K(Ce,Pe,Le))}function Rt(I,K,ae){var fe,he,me=Math.min(I/=255,K/=255,ae/=255),Ce=Math.max(I,K,ae),Pe=Ce-me,Le=(Ce+me)/2;return Pe?(he=Le<.5?Pe/(Ce+me):Pe/(2-Ce-me),fe=I==Ce?(K-ae)/Pe+(K0&&Le<1?0:fe),new Ze(fe,he,Le)}function $t(I,K,ae){var fe=yt((.4124564*(I=Yt(I))+.3575761*(K=Yt(K))+.1804375*(ae=Yt(ae)))/Vt),he=yt((.2126729*I+.7151522*K+.072175*ae)/St);return tt(116*he-16,500*(fe-he),200*(he-yt((.0193339*I+.119192*K+.9503041*ae)/Nt)))}function Yt(I){return(I/=255)<=.04045?I/12.92:Math.pow((I+.055)/1.055,2.4)}function Xt(I){var K=parseFloat(I);return I.charAt(I.length-1)==="%"?Math.round(2.55*K):K}Ot.brighter=function(I){I=Math.pow(.7,arguments.length?I:1);var K=this.r,ae=this.g,fe=this.b,he=30;return K||ae||fe?(K&&K=200&&Xe<300||Xe===304){try{He=ae.call(he,Pe)}catch(rt){return void me.error.call(he,rt)}me.load.call(he,He)}else me.error.call(he,Pe)}return self.XDomainRequest&&!("withCredentials"in Pe)&&/^(http(s)?:)?\/\//.test(I)&&(Pe=new XDomainRequest),"onload"in Pe?Pe.onload=Pe.onerror=Fe:Pe.onreadystatechange=function(){Pe.readyState>3&&Fe()},Pe.onprogress=function(He){var Xe=s.event;s.event=He;try{me.progress.call(he,Pe)}finally{s.event=Xe}},he.header=function(He,Xe){return He=(He+"").toLowerCase(),arguments.length<2?Ce[He]:(Xe==null?delete Ce[He]:Ce[He]=Xe+"",he)},he.mimeType=function(He){return arguments.length?(K=He==null?null:He+"",he):K},he.responseType=function(He){return arguments.length?(Le=He,he):Le},he.response=function(He){return ae=He,he},["get","post"].forEach(function(He){he[He]=function(){return he.send.apply(he,[He].concat(d(arguments)))}}),he.send=function(He,Xe,rt){if(arguments.length===2&&typeof Xe=="function"&&(rt=Xe,Xe=null),Pe.open(He,I,!0),K==null||"accept"in Ce||(Ce.accept=K+",*/*"),Pe.setRequestHeader)for(var vt in Ce)Pe.setRequestHeader(vt,Ce[vt]);return K!=null&&Pe.overrideMimeType&&Pe.overrideMimeType(K),Le!=null&&(Pe.responseType=Le),rt!=null&&he.on("error",rt).on("load",function(Ct){rt(null,Ct)}),me.beforesend.call(he,Pe),Pe.send(Xe??null),he},he.abort=function(){return Pe.abort(),he},s.rebind(he,me,"on"),fe==null?he:he.get(function(He){return He.length===1?function(Xe,rt){He(Xe==null?rt:null)}:He}(fe))}Bt.forEach(function(I,K){Bt.set(I,jt(K))}),s.functor=Wt,s.xhr=tn(W),s.dsv=function(I,K){var ae=new RegExp('["'+I+` ]`),fe=I.charCodeAt(0);function he(Fe,He,Xe){arguments.length<3&&(Xe=He,He=null);var rt=cn(Fe,K,He==null?me:Ce(He),Xe);return rt.row=function(vt){return arguments.length?rt.response((He=vt)==null?me:Ce(vt)):He},rt}function me(Fe){return he.parse(Fe.responseText)}function Ce(Fe){return function(He){return he.parse(He.responseText,Fe)}}function Pe(Fe){return Fe.map(Le).join(I)}function Le(Fe){return ae.test(Fe)?'"'+Fe.replace(/\"/g,'""')+'"':Fe}return he.parse=function(Fe,He){var Xe;return he.parseRows(Fe,function(rt,vt){if(Xe)return Xe(rt,vt-1);var Ct=function(dt){for(var xt={},ot=rt.length,Pt=0;Pt=xt)return Ct;if(rt)return rt=!1,vt;var Ut=ot;if(Fe.charCodeAt(Ut)===34){for(var Ht=Ut;Ht++24?(isFinite(K)&&(clearTimeout(Zt),Zt=setTimeout(Kt,K)),sn=0):(sn=1,pn(Kt))}function Cn(){for(var I=Date.now(),K=ln;K;)I>=K.t&&K.c(I-K.t)&&(K.c=null),K=K.n;return I}function _n(){for(var I,K=ln,ae=1/0;K;)K.c?(K.t1&&(K=I[me[Ce-2]],ae=I[me[Ce-1]],fe=I[Pe],(ae[0]-K[0])*(fe[1]-K[1])-(ae[1]-K[1])*(fe[0]-K[0])<=0);)--Ce;me[Ce++]=Pe}return me.slice(0,Ce)}function tr(I,K){return I[0]-K[0]||I[1]-K[1]}s.timer=function(){nn.apply(this,arguments)},s.timer.flush=function(){Cn(),_n()},s.round=function(I,K){return K?Math.round(I*(K=Math.pow(10,K)))/K:Math.round(I)},s.geom={},s.geom.hull=function(I){var K=Pn,ae=xn;if(arguments.length)return fe(I);function fe(he){if(he.length<3)return[];var me,Ce=Wt(K),Pe=Wt(ae),Le=he.length,Fe=[],He=[];for(me=0;me=0;--me)dt.push(he[Fe[Xe[me]][2]]);for(me=+vt;meNe)Pe=Pe.L;else{if(!((he=me-br(Pe,Ce))>Ne)){fe>-Ne?(K=Pe.P,ae=Pe):he>-Ne?(K=Pe,ae=Pe.N):K=ae=Pe;break}if(!Pe.R){K=Pe;break}Pe=Pe.R}var Le=Ln(I);if(kr.insert(K,Le),K||ae){if(K===ae)return Tn(K),ae=Ln(K.site),kr.insert(Le,ae),Le.edge=ae.edge=Br(K.site,Le.site),la(K),void la(ae);if(ae){Tn(K),Tn(ae);var Fe=K.site,He=Fe.x,Xe=Fe.y,rt=I.x-He,vt=I.y-Xe,Ct=ae.site,dt=Ct.x-He,xt=Ct.y-Xe,ot=2*(rt*xt-vt*dt),Pt=rt*rt+vt*vt,_t=dt*dt+xt*xt,ft={x:(xt*Pt-vt*_t)/ot+He,y:(rt*_t-dt*Pt)/ot+Xe};Ni(ae.edge,Fe,Ct,ft),Le.edge=Br(Fe,I,null,ft),ae.edge=Br(I,Ct,null,ft),la(K),la(ae)}else Le.edge=Br(K.site,Le.site)}}function Lr(I,K){var ae=I.site,fe=ae.x,he=ae.y,me=he-K;if(!me)return fe;var Ce=I.P;if(!Ce)return-1/0;var Pe=(ae=Ce.site).x,Le=ae.y,Fe=Le-K;if(!Fe)return Pe;var He=Pe-fe,Xe=1/me-1/Fe,rt=He/Fe;return Xe?(-rt+Math.sqrt(rt*rt-2*Xe*(He*He/(-2*Fe)-Le+Fe/2+he-me/2)))/Xe+fe:(fe+Pe)/2}function br(I,K){var ae=I.N;if(ae)return Lr(ae,K);var fe=I.site;return fe.y===K?fe.x:1/0}function Mr(I){this.site=I,this.edges=[]}function ja(I,K){return K.angle-I.angle}function _a(){ri(this),this.x=this.y=this.arc=this.site=this.cy=null}function la(I){var K=I.P,ae=I.N;if(K&&ae){var fe=K.site,he=I.site,me=ae.site;if(fe!==me){var Ce=he.x,Pe=he.y,Le=fe.x-Ce,Fe=fe.y-Pe,He=me.x-Ce,Xe=2*(Le*(xt=me.y-Pe)-Fe*He);if(!(Xe>=-Qe)){var rt=Le*Le+Fe*Fe,vt=He*He+xt*xt,Ct=(xt*rt-Fe*vt)/Xe,dt=(Le*vt-He*rt)/Xe,xt=dt+Pe,ot=$n.pop()||new _a;ot.arc=I,ot.site=he,ot.x=Ct+Ce,ot.y=xt+Math.sqrt(Ct*Ct+dt*dt),ot.cy=xt,I.circle=ot;for(var Pt=null,_t=On._;_t;)if(ot.y<_t.y||ot.y===_t.y&&ot.x<=_t.x){if(!_t.L){Pt=_t.P;break}_t=_t.L}else{if(!_t.R){Pt=_t;break}_t=_t.R}On.insert(Pt,ot),Pt||(oa=ot)}}}}function Tn(I){var K=I.circle;K&&(K.P||(oa=K.N),On.remove(K),$n.push(K),ri(K),I.circle=null)}function Dr(I,K){var ae=I.b;if(ae)return!0;var fe,he,me=I.a,Ce=K[0][0],Pe=K[1][0],Le=K[0][1],Fe=K[1][1],He=I.l,Xe=I.r,rt=He.x,vt=He.y,Ct=Xe.x,dt=Xe.y,xt=(rt+Ct)/2,ot=(vt+dt)/2;if(dt===vt){if(xt=Pe)return;if(rt>Ct){if(me){if(me.y>=Fe)return}else me={x:xt,y:Le};ae={x:xt,y:Fe}}else{if(me){if(me.y1)if(rt>Ct){if(me){if(me.y>=Fe)return}else me={x:(Le-he)/fe,y:Le};ae={x:(Fe-he)/fe,y:Fe}}else{if(me){if(me.y=Pe)return}else me={x:Ce,y:fe*Ce+he};ae={x:Pe,y:fe*Pe+he}}else{if(me){if(me.x0)){if(ot/=Jt,Jt<0){if(ot0){if(ot>Qt)return;ot>Ht&&(Ht=ot)}if(ot=Xe-ft,Jt||!(ot<0)){if(ot/=Jt,Jt<0){if(ot>Qt)return;ot>Ht&&(Ht=ot)}else if(Jt>0){if(ot0)){if(ot/=gn,gn<0){if(ot0){if(ot>Qt)return;ot>Ht&&(Ht=ot)}if(ot=rt-Ut,gn||!(ot<0)){if(ot/=gn,gn<0){if(ot>Qt)return;ot>Ht&&(Ht=ot)}else if(gn>0){if(ot0&&(xt.a={x:ft+Ht*Jt,y:Ut+Ht*gn}),Qt<1&&(xt.b={x:ft+Qt*Jt,y:Ut+Qt*gn}),xt}}}}}),dt=vt.length;dt--;)(!Dr(Le=vt[dt],Pe)||!Ct(Le)||C(Le.a.x-Le.b.x)Ne||C(Xe-Fe)>Ne)&&(Ct.splice(vt,0,new ji((Jt=rt.site,gn=ot,vn=C(He-Pt)Ne?{x:Pt,y:C(Le-Pt)Ne?{x:C(Fe-Ut)Ne?{x:_t,y:C(Le-_t)Ne?{x:C(Fe-ft)=He&&ot.x<=rt&&ot.y>=Xe&&ot.y<=vt?[[He,vt],[rt,vt],[rt,Xe],[He,Xe]]:[]).point=Le[dt]}),Fe}function Pe(Le){return Le.map(function(Fe,He){return{x:Math.round(fe(Fe,He)/Ne)*Ne,y:Math.round(he(Fe,He)/Ne)*Ne,i:He}})}return Ce.links=function(Le){return rl(Pe(Le)).edges.filter(function(Fe){return Fe.l&&Fe.r}).map(function(Fe){return{source:Le[Fe.l.i],target:Le[Fe.r.i]}})},Ce.triangles=function(Le){var Fe=[];return rl(Pe(Le)).cells.forEach(function(He,Xe){for(var rt,vt,Ct,dt,xt=He.site,ot=He.edges.sort(ja),Pt=-1,_t=ot.length,ft=ot[_t-1].edge,Ut=ft.l===xt?ft.r:ft.l;++Pt<_t;)rt=Ut,Ut=(ft=ot[Pt].edge).l===xt?ft.r:ft.l,Xeme&&(he=K.slice(me,he),Pe[Ce]?Pe[Ce]+=he:Pe[++Ce]=he),(ae=ae[0])===(fe=fe[0])?Pe[Ce]?Pe[Ce]+=fe:Pe[++Ce]=fe:(Pe[++Ce]=null,Le.push({i:Ce,x:bi(ae,fe)})),me=Wp.lastIndex;return meot&&(ot=He.x),He.y>Pt&&(Pt=He.y),Xe.push(He.x),rt.push(He.y);else for(vt=0;vtot&&(ot=Ut),Ht>Pt&&(Pt=Ht),Xe.push(Ut),rt.push(Ht)}var Qt=ot-dt,Jt=Pt-xt;function gn(yn,Nn,Yn,dr,en,fn,En,In){if(!isNaN(Yn)&&!isNaN(dr))if(yn.leaf){var Wn=yn.x,cr=yn.y;if(Wn!=null)if(C(Wn-Yn)+C(cr-dr)<.01)vn(yn,Nn,Yn,dr,en,fn,En,In);else{var Ir=yn.point;yn.x=yn.y=yn.point=null,vn(yn,Ir,Wn,cr,en,fn,En,In),vn(yn,Nn,Yn,dr,en,fn,En,In)}else yn.x=Yn,yn.y=dr,yn.point=Nn}else vn(yn,Nn,Yn,dr,en,fn,En,In)}function vn(yn,Nn,Yn,dr,en,fn,En,In){var Wn=.5*(en+En),cr=.5*(fn+In),Ir=Yn>=Wn,Sr=dr>=cr,Vr=Sr<<1|Ir;yn.leaf=!1,Ir?en=Wn:En=Wn,Sr?fn=cr:In=cr,gn(yn=yn.nodes[Vr]||(yn.nodes[Vr]={leaf:!0,nodes:[],point:null,x:null,y:null}),Nn,Yn,dr,en,fn,En,In)}Qt>Jt?Pt=xt+Qt:ot=dt+Jt;var kn={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(yn){gn(kn,yn,+_t(yn,++vt),+ft(yn,vt),dt,xt,ot,Pt)}};if(kn.visit=function(yn){hs(yn,kn,dt,xt,ot,Pt)},kn.find=function(yn){return function(Nn,Yn,dr,en,fn,En,In){var Wn,cr=1/0;return function Ir(Sr,Vr,Fr,Yr,da){if(!(Vr>En||Fr>In||Yr=Ta)<<1|Yn>=ya,xi=Ba+4;Ba=0&&!(ae=s.interpolators[fe](I,K)););return ae}function kc(I,K){var ae,fe=[],he=[],me=I.length,Ce=K.length,Pe=Math.min(I.length,K.length);for(ae=0;ae=1)return 1;var K=I*I,ae=K*I;return 4*(I<.5?ae:3*(I-K)+ae-.75)}function ZP(I){return 1-Math.cos(I*ut)}function KP(I){return Math.pow(2,10*(I-1))}function JP(I){return 1-Math.sqrt(1-I*I)}function QP(I){return I<.36363636363636365?7.5625*I*I:I<.7272727272727273?7.5625*(I-=.5454545454545454)*I+.75:I<.9090909090909091?7.5625*(I-=.8181818181818182)*I+.9375:7.5625*(I-=.9545454545454546)*I+.984375}function Vx(I,K){return K-=I,function(ae){return Math.round(I+K*ae)}}function Yx(I){var K,ae,fe,he=[I.a,I.b],me=[I.c,I.d],Ce=Xx(he),Pe=Gx(he,me),Le=Xx(((K=me)[0]+=(fe=-Pe)*(ae=he)[0],K[1]+=fe*ae[1],K))||0;he[0]*me[1]=0?I.slice(0,ae):I,he=ae>=0?I.slice(ae+1):"in";return fe=HP.get(fe)||Wx,he=VP.get(he)||W,K=he(fe.apply(null,u.call(arguments,1))),function(me){return me<=0?0:me>=1?1:K(me)}},s.interpolateHcl=function(I,K){I=s.hcl(I),K=s.hcl(K);var ae=I.h,fe=I.c,he=I.l,me=K.h-ae,Ce=K.c-fe,Pe=K.l-he;return isNaN(Ce)&&(Ce=0,fe=isNaN(fe)?K.c:fe),isNaN(me)?(me=0,ae=isNaN(ae)?K.h:ae):me>180?me-=360:me<-180&&(me+=360),function(Le){return mt(ae+me*Le,fe+Ce*Le,he+Pe*Le)+""}},s.interpolateHsl=function(I,K){I=s.hsl(I),K=s.hsl(K);var ae=I.h,fe=I.s,he=I.l,me=K.h-ae,Ce=K.s-fe,Pe=K.l-he;return isNaN(Ce)&&(Ce=0,fe=isNaN(fe)?K.s:fe),isNaN(me)?(me=0,ae=isNaN(ae)?K.h:ae):me>180?me-=360:me<-180&&(me+=360),function(Le){return Ke(ae+me*Le,fe+Ce*Le,he+Pe*Le)+""}},s.interpolateLab=function(I,K){I=s.lab(I),K=s.lab(K);var ae=I.l,fe=I.a,he=I.b,me=K.l-ae,Ce=K.a-fe,Pe=K.b-he;return function(Le){return gt(ae+me*Le,fe+Ce*Le,he+Pe*Le)+""}},s.interpolateRound=Vx,s.transform=function(I){var K=h.createElementNS(s.ns.prefix.svg,"g");return(s.transform=function(ae){if(ae!=null){K.setAttribute("transform",ae);var fe=K.transform.baseVal.consolidate()}return new Yx(fe?fe.matrix:eD)})(I)},Yx.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var eD={a:1,b:0,c:0,d:1,e:0,f:0};function al(I){return I.length?I.pop()+",":""}function Zx(I,K){var ae=[],fe=[];return I=s.transform(I),K=s.transform(K),function(he,me,Ce,Pe){if(he[0]!==me[0]||he[1]!==me[1]){var Le=Ce.push("translate(",null,",",null,")");Pe.push({i:Le-4,x:bi(he[0],me[0])},{i:Le-2,x:bi(he[1],me[1])})}else(me[0]||me[1])&&Ce.push("translate("+me+")")}(I.translate,K.translate,ae,fe),function(he,me,Ce,Pe){he!==me?(he-me>180?me+=360:me-he>180&&(he+=360),Pe.push({i:Ce.push(al(Ce)+"rotate(",null,")")-2,x:bi(he,me)})):me&&Ce.push(al(Ce)+"rotate("+me+")")}(I.rotate,K.rotate,ae,fe),function(he,me,Ce,Pe){he!==me?Pe.push({i:Ce.push(al(Ce)+"skewX(",null,")")-2,x:bi(he,me)}):me&&Ce.push(al(Ce)+"skewX("+me+")")}(I.skew,K.skew,ae,fe),function(he,me,Ce,Pe){if(he[0]!==me[0]||he[1]!==me[1]){var Le=Ce.push(al(Ce)+"scale(",null,",",null,")");Pe.push({i:Le-4,x:bi(he[0],me[0])},{i:Le-2,x:bi(he[1],me[1])})}else me[0]===1&&me[1]===1||Ce.push(al(Ce)+"scale("+me+")")}(I.scale,K.scale,ae,fe),I=K=null,function(he){for(var me,Ce=-1,Pe=fe.length;++Ce0?ae=ft:(I.c=null,I.t=NaN,I=null,Pe.end({type:"end",alpha:ae=0})):ft>0&&(Pe.start({type:"start",alpha:ae=ft}),I=nn(Ce.tick)),Ce):ae},Ce.start=function(){var ft,Ut,Ht,Qt=xt.length,Jt=ot.length,gn=Le[0],vn=Le[1];for(ft=0;ft=0;)ae.push(he[fe])}function ai(I,K){for(var ae=[I],fe=[];(I=ae.pop())!=null;)if(fe.push(I),(me=I.children)&&(he=me.length))for(var he,me,Ce=-1;++Ce=0;)Ce.push(He=Fe[Le]),He.parent=me,He.depth=me.depth+1;ae&&(me.value=0),me.children=Fe}else ae&&(me.value=+ae.call(fe,me,me.depth)||0),delete me.children;return ai(he,function(Xe){var rt,vt;I&&(rt=Xe.children)&&rt.sort(I),ae&&(vt=Xe.parent)&&(vt.value+=Xe.value)}),Pe}return fe.sort=function(he){return arguments.length?(I=he,fe):I},fe.children=function(he){return arguments.length?(K=he,fe):K},fe.value=function(he){return arguments.length?(ae=he,fe):ae},fe.revalue=function(he){return ae&&(gs(he,function(me){me.children&&(me.value=0)}),ai(he,function(me){var Ce;me.children||(me.value=+ae.call(fe,me,me.depth)||0),(Ce=me.parent)&&(Ce.value+=me.value)})),he},fe},s.layout.partition=function(){var I=s.layout.hierarchy(),K=[1,1];function ae(me,Ce,Pe,Le){var Fe=me.children;if(me.x=Ce,me.y=me.depth*Le,me.dx=Pe,me.dy=Le,Fe&&(He=Fe.length)){var He,Xe,rt,vt=-1;for(Pe=me.value?Pe/me.value:0;++vtPe&&(Pe=fe),Ce.push(fe)}for(ae=0;aehe&&(fe=ae,he=K);return fe}function wD(I){return I.reduce(_D,0)}function _D(I,K){return I+K[1]}function TD(I,K){return e2(I,Math.ceil(Math.log(K.length)/Math.LN2+1))}function e2(I,K){for(var ae=-1,fe=+I[0],he=(I[1]-fe)/K,me=[];++ae<=K;)me[ae]=he*ae+fe;return me}function kD(I){return[s.min(I),s.max(I)]}function MD(I,K){return I.value-K.value}function Vp(I,K){var ae=I._pack_next;I._pack_next=K,K._pack_prev=I,K._pack_next=ae,ae._pack_prev=K}function t2(I,K){I._pack_next=K,K._pack_prev=I}function n2(I,K){var ae=K.x-I.x,fe=K.y-I.y,he=I.r+K.r;return .999*he*he>ae*ae+fe*fe}function r2(I){if((K=I.children)&&(Le=K.length)){var K,ae,fe,he,me,Ce,Pe,Le,Fe=1/0,He=-1/0,Xe=1/0,rt=-1/0;if(K.forEach(SD),(ae=K[0]).x=-ae.r,ae.y=0,_t(ae),Le>1&&((fe=K[1]).x=fe.r,fe.y=0,_t(fe),Le>2))for(i2(ae,fe,he=K[2]),_t(he),Vp(ae,he),ae._pack_prev=he,Vp(he,fe),fe=ae._pack_next,me=3;me0)for(Ce=-1;++Ce=Xe[0]&&Le<=Xe[1]&&((Pe=Fe[s.bisect(rt,Le,1,Ct)-1]).y+=dt,Pe.push(me[Ce]));return Fe}return he.value=function(me){return arguments.length?(K=me,he):K},he.range=function(me){return arguments.length?(ae=Wt(me),he):ae},he.bins=function(me){return arguments.length?(fe=typeof me=="number"?function(Ce){return e2(Ce,me)}:Wt(me),he):fe},he.frequency=function(me){return arguments.length?(I=!!me,he):I},he},s.layout.pack=function(){var I,K=s.layout.hierarchy().sort(MD),ae=0,fe=[1,1];function he(me,Ce){var Pe=K.call(this,me,Ce),Le=Pe[0],Fe=fe[0],He=fe[1],Xe=I==null?Math.sqrt:typeof I=="function"?I:function(){return I};if(Le.x=Le.y=0,ai(Le,function(vt){vt.r=+Xe(vt.value)}),ai(Le,r2),ae){var rt=ae*(I?1:Math.max(2*Le.r/Fe,2*Le.r/He))/2;ai(Le,function(vt){vt.r+=rt}),ai(Le,r2),ai(Le,function(vt){vt.r-=rt})}return a2(Le,Fe/2,He/2,I?1:1/Math.max(2*Le.r/Fe,2*Le.r/He)),Pe}return he.size=function(me){return arguments.length?(fe=me,he):fe},he.radius=function(me){return arguments.length?(I=me==null||typeof me=="function"?me:+me,he):I},he.padding=function(me){return arguments.length?(ae=+me,he):ae},ps(he,K)},s.layout.tree=function(){var I=s.layout.hierarchy().sort(null).value(null),K=o2,ae=[1,1],fe=null;function he(Le,Fe){var He=I.call(this,Le,Fe),Xe=He[0],rt=function(_t){for(var ft,Ut={A:null,children:[_t]},Ht=[Ut];(ft=Ht.pop())!=null;)for(var Qt,Jt=ft.children,gn=0,vn=Jt.length;gnCt.x&&(Ct=_t),_t.depth>dt.depth&&(dt=_t)});var xt=K(vt,Ct)/2-vt.x,ot=ae[0]/(Ct.x+K(Ct,vt)/2+xt),Pt=ae[1]/(dt.depth||1);gs(Xe,function(_t){_t.x=(_t.x+xt)*ot,_t.y=_t.depth*Pt})}return He}function me(Le){var Fe=Le.children,He=Le.parent.children,Xe=Le.i?He[Le.i-1]:null;if(Fe.length){(function(vt){for(var Ct,dt=0,xt=0,ot=vt.children,Pt=ot.length;--Pt>=0;)(Ct=ot[Pt]).z+=dt,Ct.m+=dt,dt+=Ct.s+(xt+=Ct.c)})(Le);var rt=(Fe[0].z+Fe[Fe.length-1].z)/2;Xe?(Le.z=Xe.z+K(Le._,Xe._),Le.m=Le.z-rt):Le.z=rt}else Xe&&(Le.z=Xe.z+K(Le._,Xe._));Le.parent.A=function(vt,Ct,dt){if(Ct){for(var xt,ot=vt,Pt=vt,_t=Ct,ft=ot.parent.children[0],Ut=ot.m,Ht=Pt.m,Qt=_t.m,Jt=ft.m;_t=Gp(_t),ot=Yp(ot),_t&&ot;)ft=Yp(ft),(Pt=Gp(Pt)).a=vt,(xt=_t.z+Qt-ot.z-Ut+K(_t._,ot._))>0&&(OD(AD(_t,vt,dt),vt,xt),Ut+=xt,Ht+=xt),Qt+=_t.m,Ut+=ot.m,Jt+=ft.m,Ht+=Pt.m;_t&&!Gp(Pt)&&(Pt.t=_t,Pt.m+=Qt-Ht),ot&&!Yp(ft)&&(ft.t=ot,ft.m+=Ut-Jt,dt=vt)}return dt}(Le,Xe,Le.parent.A||He[0])}function Ce(Le){Le._.x=Le.z+Le.parent.m,Le.m+=Le.parent.m}function Pe(Le){Le.x*=ae[0],Le.y=Le.depth*ae[1]}return he.separation=function(Le){return arguments.length?(K=Le,he):K},he.size=function(Le){return arguments.length?(fe=(ae=Le)==null?Pe:null,he):fe?null:ae},he.nodeSize=function(Le){return arguments.length?(fe=(ae=Le)==null?null:Pe,he):fe?ae:null},ps(he,I)},s.layout.cluster=function(){var I=s.layout.hierarchy().sort(null).value(null),K=o2,ae=[1,1],fe=!1;function he(me,Ce){var Pe,Le=I.call(this,me,Ce),Fe=Le[0],He=0;ai(Fe,function(dt){var xt=dt.children;xt&&xt.length?(dt.x=function(ot){return ot.reduce(function(Pt,_t){return Pt+_t.x},0)/ot.length}(xt),dt.y=function(ot){return 1+s.max(ot,function(Pt){return Pt.y})}(xt)):(dt.x=Pe?He+=K(dt,Pe):0,dt.y=0,Pe=dt)});var Xe=l2(Fe),rt=s2(Fe),vt=Xe.x-K(Xe,rt)/2,Ct=rt.x+K(rt,Xe)/2;return ai(Fe,fe?function(dt){dt.x=(dt.x-Fe.x)*ae[0],dt.y=(Fe.y-dt.y)*ae[1]}:function(dt){dt.x=(dt.x-vt)/(Ct-vt)*ae[0],dt.y=(1-(Fe.y?dt.y/Fe.y:1))*ae[1]}),Le}return he.separation=function(me){return arguments.length?(K=me,he):K},he.size=function(me){return arguments.length?(fe=(ae=me)==null,he):fe?null:ae},he.nodeSize=function(me){return arguments.length?(fe=(ae=me)!=null,he):fe?ae:null},ps(he,I)},s.layout.treemap=function(){var I,K=s.layout.hierarchy(),ae=Math.round,fe=[1,1],he=null,me=Xp,Ce=!1,Pe="squarify",Le=.5*(1+Math.sqrt(5));function Fe(dt,xt){for(var ot,Pt,_t=-1,ft=dt.length;++_t0;)Ut.push(ot=Ht[_t-1]),Ut.area+=ot.area,Pe!=="squarify"||(Pt=rt(Ut,Jt))<=Qt?(Ht.pop(),Qt=Pt):(Ut.area-=Ut.pop().area,vt(Ut,Jt,ft,!1),Jt=Math.min(ft.dx,ft.dy),Ut.length=Ut.area=0,Qt=1/0);Ut.length&&(vt(Ut,Jt,ft,!0),Ut.length=Ut.area=0),xt.forEach(He)}}function Xe(dt){var xt=dt.children;if(xt&&xt.length){var ot,Pt=me(dt),_t=xt.slice(),ft=[];for(Fe(_t,Pt.dx*Pt.dy/dt.value),ft.area=0;ot=_t.pop();)ft.push(ot),ft.area+=ot.area,ot.z!=null&&(vt(ft,ot.z?Pt.dx:Pt.dy,Pt,!_t.length),ft.length=ft.area=0);xt.forEach(Xe)}}function rt(dt,xt){for(var ot,Pt=dt.area,_t=0,ft=1/0,Ut=-1,Ht=dt.length;++Ut_t&&(_t=ot));return xt*=xt,(Pt*=Pt)?Math.max(xt*_t*Le/Pt,Pt/(xt*ft*Le)):1/0}function vt(dt,xt,ot,Pt){var _t,ft=-1,Ut=dt.length,Ht=ot.x,Qt=ot.y,Jt=xt?ae(dt.area/xt):0;if(xt==ot.dx){for((Pt||Jt>ot.dy)&&(Jt=ot.dy);++ftot.dx)&&(Jt=ot.dx);++ft1);return I+K*fe*Math.sqrt(-2*Math.log(me)/me)}},logNormal:function(){var I=s.random.normal.apply(s,arguments);return function(){return Math.exp(I())}},bates:function(I){var K=s.random.irwinHall(I);return function(){return K()/I}},irwinHall:function(I){return function(){for(var K=0,ae=0;ae2?ED:PD,Fe=fe?nD:tD;return he=Le(I,K,Fe,ae),me=Le(K,I,Fe,so),Pe}function Pe(Le){return he(Le)}return Pe.invert=function(Le){return me(Le)},Pe.domain=function(Le){return arguments.length?(I=Le.map(Number),Ce()):I},Pe.range=function(Le){return arguments.length?(K=Le,Ce()):K},Pe.rangeRound=function(Le){return Pe.range(Le).interpolate(Vx)},Pe.clamp=function(Le){return arguments.length?(fe=Le,Ce()):fe},Pe.interpolate=function(Le){return arguments.length?(ae=Le,Ce()):ae},Pe.ticks=function(Le){return Jp(I,Le)},Pe.tickFormat=function(Le,Fe){return d3_scale_linearTickFormat(I,Le,Fe)},Pe.nice=function(Le){return h2(I,Le),Ce()},Pe.copy=function(){return f2(I,K,ae,fe)},Ce()}function d2(I,K){return s.rebind(I,K,"range","rangeRound","interpolate","clamp")}function h2(I,K){return Zp(I,c2(Kp(I,K)[2])),Zp(I,c2(Kp(I,K)[2])),I}function Kp(I,K){K==null&&(K=10);var ae=Mc(I),fe=ae[1]-ae[0],he=Math.pow(10,Math.floor(Math.log(fe/K)/Math.LN10)),me=K/fe*he;return me<=.15?he*=10:me<=.35?he*=5:me<=.75&&(he*=2),ae[0]=Math.ceil(ae[0]/he)*he,ae[1]=Math.floor(ae[1]/he)*he+.5*he,ae[2]=he,ae}function Jp(I,K){return s.range.apply(s,Kp(I,K))}function p2(I,K,ae,fe){function he(Pe){return(ae?Math.log(Pe<0?0:Pe):-Math.log(Pe>0?0:-Pe))/Math.log(K)}function me(Pe){return ae?Math.pow(K,Pe):-Math.pow(K,-Pe)}function Ce(Pe){return I(he(Pe))}return Ce.invert=function(Pe){return me(I.invert(Pe))},Ce.domain=function(Pe){return arguments.length?(ae=Pe[0]>=0,I.domain((fe=Pe.map(Number)).map(he)),Ce):fe},Ce.base=function(Pe){return arguments.length?(K=+Pe,I.domain(fe.map(he)),Ce):K},Ce.nice=function(){var Pe=Zp(fe.map(he),ae?Math:RD);return I.domain(Pe),fe=Pe.map(me),Ce},Ce.ticks=function(){var Pe=Mc(fe),Le=[],Fe=Pe[0],He=Pe[1],Xe=Math.floor(he(Fe)),rt=Math.ceil(he(He)),vt=K%1?2:K;if(isFinite(rt-Xe)){if(ae){for(;Xe0;Ct--)Le.push(me(Xe)*Ct);for(Xe=0;Le[Xe]He;rt--);Le=Le.slice(Xe,rt)}return Le},Ce.copy=function(){return p2(I.copy(),K,ae,fe)},d2(Ce,I)}s.scale.linear=function(){return f2([0,1],[0,1],so,!1)},s.scale.log=function(){return p2(s.scale.linear().domain([0,1]),10,!0,[1,10])};var RD={floor:function(I){return-Math.ceil(-I)},ceil:function(I){return-Math.floor(-I)}};function g2(I,K,ae){var fe=Cc(K),he=Cc(1/K);function me(Ce){return I(fe(Ce))}return me.invert=function(Ce){return he(I.invert(Ce))},me.domain=function(Ce){return arguments.length?(I.domain((ae=Ce.map(Number)).map(fe)),me):ae},me.ticks=function(Ce){return Jp(ae,Ce)},me.tickFormat=function(Ce,Pe){return d3_scale_linearTickFormat(ae,Ce,Pe)},me.nice=function(Ce){return me.domain(h2(ae,Ce))},me.exponent=function(Ce){return arguments.length?(fe=Cc(K=Ce),he=Cc(1/K),I.domain(ae.map(fe)),me):K},me.copy=function(){return g2(I.copy(),K,ae)},d2(me,I)}function Cc(I){return function(K){return K<0?-Math.pow(-K,I):Math.pow(K,I)}}function m2(I,K){var ae,fe,he;function me(Pe){return fe[((ae.get(Pe)||(K.t==="range"?ae.set(Pe,I.push(Pe)):NaN))-1)%fe.length]}function Ce(Pe,Le){return s.range(I.length).map(function(Fe){return Pe+Le*Fe})}return me.domain=function(Pe){if(!arguments.length)return I;I=[],ae=new D;for(var Le,Fe=-1,He=Pe.length;++Fe0?ae[me-1]:I[0],mert?0:1;if(He=Je)return Le(He,Ct)+(Fe?Le(Fe,1-Ct):"")+"Z";var dt,xt,ot,Pt,_t,ft,Ut,Ht,Qt,Jt,gn,vn,kn=0,yn=0,Nn=[];if((Pt=(+Ce.apply(this,arguments)||0)/2)&&(ot=fe===Oc?Math.sqrt(Fe*Fe+He*He):+fe.apply(this,arguments),Ct||(yn*=-1),He&&(yn=Mt(ot/He*Math.sin(Pt))),Fe&&(kn=Mt(ot/Fe*Math.sin(Pt)))),He){_t=He*Math.cos(Xe+yn),ft=He*Math.sin(Xe+yn),Ut=He*Math.cos(rt-yn),Ht=He*Math.sin(rt-yn);var Yn=Math.abs(rt-Xe-2*yn)<=it?0:1;if(yn&&Ac(_t,ft,Ut,Ht)===Ct^Yn){var dr=(Xe+rt)/2;_t=He*Math.cos(dr),ft=He*Math.sin(dr),Ut=Ht=null}}else _t=ft=0;if(Fe){Qt=Fe*Math.cos(rt-kn),Jt=Fe*Math.sin(rt-kn),gn=Fe*Math.cos(Xe+kn),vn=Fe*Math.sin(Xe+kn);var en=Math.abs(Xe-rt+2*kn)<=it?0:1;if(kn&&Ac(Qt,Jt,gn,vn)===1-Ct^en){var fn=(Xe+rt)/2;Qt=Fe*Math.cos(fn),Jt=Fe*Math.sin(fn),gn=vn=null}}else Qt=Jt=0;if(vt>Ne&&(dt=Math.min(Math.abs(He-Fe)/2,+ae.apply(this,arguments)))>.001){xt=Fe0?0:1}function Pc(I,K,ae,fe,he){var me=I[0]-K[0],Ce=I[1]-K[1],Pe=(he?fe:-fe)/Math.sqrt(me*me+Ce*Ce),Le=Pe*Ce,Fe=-Pe*me,He=I[0]+Le,Xe=I[1]+Fe,rt=K[0]+Le,vt=K[1]+Fe,Ct=(He+rt)/2,dt=(Xe+vt)/2,xt=rt-He,ot=vt-Xe,Pt=xt*xt+ot*ot,_t=ae-fe,ft=He*vt-rt*Xe,Ut=(ot<0?-1:1)*Math.sqrt(Math.max(0,_t*_t*Pt-ft*ft)),Ht=(ft*ot-xt*Ut)/Pt,Qt=(-ft*xt-ot*Ut)/Pt,Jt=(ft*ot+xt*Ut)/Pt,gn=(-ft*xt+ot*Ut)/Pt,vn=Ht-Ct,kn=Qt-dt,yn=Jt-Ct,Nn=gn-dt;return vn*vn+kn*kn>yn*yn+Nn*Nn&&(Ht=Jt,Qt=gn),[[Ht-Le,Qt-Fe],[Ht*ae/_t,Qt*ae/_t]]}function T2(){return!0}function k2(I){var K=Pn,ae=xn,fe=T2,he=Za,me=he.key,Ce=.7;function Pe(Le){var Fe,He=[],Xe=[],rt=-1,vt=Le.length,Ct=Wt(K),dt=Wt(ae);function xt(){He.push("M",he(I(Xe),Ce))}for(;++rt1&&he.push("H",fe[0]),he.join("")},"step-before":eg,"step-after":tg,basis:S2,"basis-open":function(I){if(I.length<4)return Za(I);for(var K,ae=[],fe=-1,he=I.length,me=[0],Ce=[0];++fe<3;)K=I[fe],me.push(K[0]),Ce.push(K[1]);for(ae.push($a($i,me)+","+$a($i,Ce)),--fe;++fe9&&(me=3*ae/Math.sqrt(me),Pe[Le]=me*fe,Pe[Le+1]=me*he);for(Le=-1;++Le<=Fe;)me=(K[Math.min(Fe,Le+1)][0]-K[Math.max(0,Le-1)][0])/(6*(1+Pe[Le]*Pe[Le])),Ce.push([me||0,Pe[Le]*me||0]);return Ce}(I))}});function Za(I){return I.length>1?I.join("L"):I+"Z"}function M2(I){return I.join("L")+"Z"}function eg(I){for(var K=0,ae=I.length,fe=I[0],he=[fe[0],",",fe[1]];++K1){Pe=K[1],me=I[Le],Le++,fe+="C"+(he[0]+Ce[0])+","+(he[1]+Ce[1])+","+(me[0]-Pe[0])+","+(me[1]-Pe[1])+","+me[0]+","+me[1];for(var Fe=2;Feit)+",1 "+He}function Le(Fe,He,Xe,rt){return"Q 0,0 "+rt}return me.radius=function(Fe){return arguments.length?(ae=Wt(Fe),me):ae},me.source=function(Fe){return arguments.length?(I=Wt(Fe),me):I},me.target=function(Fe){return arguments.length?(K=Wt(Fe),me):K},me.startAngle=function(Fe){return arguments.length?(fe=Wt(Fe),me):fe},me.endAngle=function(Fe){return arguments.length?(he=Wt(Fe),me):he},me},s.svg.diagonal=function(){var I=D2,K=E2,ae=R2;function fe(he,me){var Ce=I.call(this,he,me),Pe=K.call(this,he,me),Le=(Ce.y+Pe.y)/2,Fe=[Ce,{x:Ce.x,y:Le},{x:Pe.x,y:Le},Pe];return"M"+(Fe=Fe.map(ae))[0]+"C"+Fe[1]+" "+Fe[2]+" "+Fe[3]}return fe.source=function(he){return arguments.length?(I=Wt(he),fe):I},fe.target=function(he){return arguments.length?(K=Wt(he),fe):K},fe.projection=function(he){return arguments.length?(ae=he,fe):ae},fe},s.svg.diagonal.radial=function(){var I=s.svg.diagonal(),K=R2,ae=I.projection;return I.projection=function(fe){return arguments.length?ae(function(he){return function(){var me=he.apply(this,arguments),Ce=me[0],Pe=me[1]-ut;return[Ce*Math.cos(Pe),Ce*Math.sin(Pe)]}}(K=fe)):K},I},s.svg.symbol=function(){var I=UD,K=WD;function ae(fe,he){return(I2.get(I.call(this,fe,he))||L2)(K.call(this,fe,he))}return ae.type=function(fe){return arguments.length?(I=Wt(fe),ae):I},ae.size=function(fe){return arguments.length?(K=Wt(fe),ae):K},ae};var I2=s.map({circle:L2,cross:function(I){var K=Math.sqrt(I/5)/2;return"M"+-3*K+","+-K+"H"+-K+"V"+-3*K+"H"+K+"V"+-K+"H"+3*K+"V"+K+"H"+K+"V"+3*K+"H"+-K+"V"+K+"H"+-3*K+"Z"},diamond:function(I){var K=Math.sqrt(I/(2*F2)),ae=K*F2;return"M0,"+-K+"L"+ae+",0 0,"+K+" "+-ae+",0Z"},square:function(I){var K=Math.sqrt(I)/2;return"M"+-K+","+-K+"L"+K+","+-K+" "+K+","+K+" "+-K+","+K+"Z"},"triangle-down":function(I){var K=Math.sqrt(I/Ec),ae=K*Ec/2;return"M0,"+ae+"L"+K+","+-ae+" "+-K+","+-ae+"Z"},"triangle-up":function(I){var K=Math.sqrt(I/Ec),ae=K*Ec/2;return"M0,"+-ae+"L"+K+","+ae+" "+-K+","+ae+"Z"}});s.svg.symbolTypes=I2.keys();var Ec=Math.sqrt(3),F2=Math.tan(30*pt);se.transition=function(I){for(var K,ae,fe=uo||++j2,he=og(I),me=[],Ce=Lc||{time:Date.now(),ease:XP,delay:0,duration:250},Pe=-1,Le=this.length;++Pe0;)Fe[--ot].call(I,xt);if(dt>=1)return Xe.event&&Xe.event.end.call(I,I.__data__,K),--He.count?delete He[fe]:delete I[ae],1}Xe||(me=he.time,Ce=nn(function(Ct){var dt=Xe.delay;if(Ce.t=dt+me,dt<=Ct)return rt(Ct-dt);Ce.c=rt},0,me),Xe=He[fe]={tween:new D,time:me,timer:Ce,delay:he.delay,duration:he.duration,ease:he.ease,index:K},he=null,++He.count)}zr.call=se.call,zr.empty=se.empty,zr.node=se.node,zr.size=se.size,s.transition=function(I,K){return I&&I.transition?uo?I.transition(K):I:s.selection().transition(I)},s.transition.prototype=zr,zr.select=function(I){var K,ae,fe,he=this.id,me=this.namespace,Ce=[];I=pe(I);for(var Pe=-1,Le=this.length;++Perect,.s>rect").attr("width",me[1]-me[0])}function vt(dt){dt.select(".extent").attr("y",Ce[0]),dt.selectAll(".extent,.e>rect,.w>rect").attr("height",Ce[1]-Ce[0])}function Ct(){var dt,xt,ot=this,Pt=s.select(s.event.target),_t=ae.of(ot,arguments),ft=s.select(ot),Ut=Pt.datum(),Ht=!/^(n|s)$/.test(Ut)&&fe,Qt=!/^(e|w)$/.test(Ut)&&he,Jt=Pt.classed("extent"),gn=lt(ot),vn=s.mouse(ot),kn=s.select(m(ot)).on("keydown.brush",function(){s.event.keyCode==32&&(Jt||(dt=null,vn[0]-=me[1],vn[1]-=Ce[1],Jt=2),ee())}).on("keyup.brush",function(){s.event.keyCode==32&&Jt==2&&(vn[0]+=me[1],vn[1]+=Ce[1],Jt=0,ee())});if(s.event.changedTouches?kn.on("touchmove.brush",Yn).on("touchend.brush",en):kn.on("mousemove.brush",Yn).on("mouseup.brush",en),ft.interrupt().selectAll("*").interrupt(),Jt)vn[0]=me[0]-vn[0],vn[1]=Ce[0]-vn[1];else if(Ut){var yn=+/w$/.test(Ut),Nn=+/^n/.test(Ut);xt=[me[1-yn]-vn[0],Ce[1-Nn]-vn[1]],vn[0]=me[yn],vn[1]=Ce[Nn]}else s.event.altKey&&(dt=vn.slice());function Yn(){var fn=s.mouse(ot),En=!1;xt&&(fn[0]+=xt[0],fn[1]+=xt[1]),Jt||(s.event.altKey?(dt||(dt=[(me[0]+me[1])/2,(Ce[0]+Ce[1])/2]),vn[0]=me[+(fn[0]24?(isFinite(K)&&(clearTimeout(Zt),Zt=setTimeout(Kt,K)),sn=0):(sn=1,pn(Kt))}function Cn(){for(var I=Date.now(),K=ln;K;)I>=K.t&&K.c(I-K.t)&&(K.c=null),K=K.n;return I}function _n(){for(var I,K=ln,ae=1/0;K;)K.c?(K.t1&&(K=I[me[Ce-2]],ae=I[me[Ce-1]],fe=I[Pe],(ae[0]-K[0])*(fe[1]-K[1])-(ae[1]-K[1])*(fe[0]-K[0])<=0);)--Ce;me[Ce++]=Pe}return me.slice(0,Ce)}function tr(I,K){return I[0]-K[0]||I[1]-K[1]}s.timer=function(){nn.apply(this,arguments)},s.timer.flush=function(){Cn(),_n()},s.round=function(I,K){return K?Math.round(I*(K=Math.pow(10,K)))/K:Math.round(I)},s.geom={},s.geom.hull=function(I){var K=Pn,ae=xn;if(arguments.length)return fe(I);function fe(he){if(he.length<3)return[];var me,Ce=Wt(K),Pe=Wt(ae),Le=he.length,Fe=[],He=[];for(me=0;me=0;--me)dt.push(he[Fe[Xe[me]][2]]);for(me=+vt;meNe)Pe=Pe.L;else{if(!((he=me-br(Pe,Ce))>Ne)){fe>-Ne?(K=Pe.P,ae=Pe):he>-Ne?(K=Pe,ae=Pe.N):K=ae=Pe;break}if(!Pe.R){K=Pe;break}Pe=Pe.R}var Le=Ln(I);if(kr.insert(K,Le),K||ae){if(K===ae)return Tn(K),ae=Ln(K.site),kr.insert(Le,ae),Le.edge=ae.edge=Br(K.site,Le.site),la(K),void la(ae);if(ae){Tn(K),Tn(ae);var Fe=K.site,He=Fe.x,Xe=Fe.y,rt=I.x-He,vt=I.y-Xe,Ct=ae.site,dt=Ct.x-He,xt=Ct.y-Xe,ot=2*(rt*xt-vt*dt),Pt=rt*rt+vt*vt,_t=dt*dt+xt*xt,ft={x:(xt*Pt-vt*_t)/ot+He,y:(rt*_t-dt*Pt)/ot+Xe};Ni(ae.edge,Fe,Ct,ft),Le.edge=Br(Fe,I,null,ft),ae.edge=Br(I,Ct,null,ft),la(K),la(ae)}else Le.edge=Br(K.site,Le.site)}}function Lr(I,K){var ae=I.site,fe=ae.x,he=ae.y,me=he-K;if(!me)return fe;var Ce=I.P;if(!Ce)return-1/0;var Pe=(ae=Ce.site).x,Le=ae.y,Fe=Le-K;if(!Fe)return Pe;var He=Pe-fe,Xe=1/me-1/Fe,rt=He/Fe;return Xe?(-rt+Math.sqrt(rt*rt-2*Xe*(He*He/(-2*Fe)-Le+Fe/2+he-me/2)))/Xe+fe:(fe+Pe)/2}function br(I,K){var ae=I.N;if(ae)return Lr(ae,K);var fe=I.site;return fe.y===K?fe.x:1/0}function Mr(I){this.site=I,this.edges=[]}function ja(I,K){return K.angle-I.angle}function _a(){ri(this),this.x=this.y=this.arc=this.site=this.cy=null}function la(I){var K=I.P,ae=I.N;if(K&&ae){var fe=K.site,he=I.site,me=ae.site;if(fe!==me){var Ce=he.x,Pe=he.y,Le=fe.x-Ce,Fe=fe.y-Pe,He=me.x-Ce,Xe=2*(Le*(xt=me.y-Pe)-Fe*He);if(!(Xe>=-Qe)){var rt=Le*Le+Fe*Fe,vt=He*He+xt*xt,Ct=(xt*rt-Fe*vt)/Xe,dt=(Le*vt-He*rt)/Xe,xt=dt+Pe,ot=$n.pop()||new _a;ot.arc=I,ot.site=he,ot.x=Ct+Ce,ot.y=xt+Math.sqrt(Ct*Ct+dt*dt),ot.cy=xt,I.circle=ot;for(var Pt=null,_t=On._;_t;)if(ot.y<_t.y||ot.y===_t.y&&ot.x<=_t.x){if(!_t.L){Pt=_t.P;break}_t=_t.L}else{if(!_t.R){Pt=_t;break}_t=_t.R}On.insert(Pt,ot),Pt||(oa=ot)}}}}function Tn(I){var K=I.circle;K&&(K.P||(oa=K.N),On.remove(K),$n.push(K),ri(K),I.circle=null)}function Dr(I,K){var ae=I.b;if(ae)return!0;var fe,he,me=I.a,Ce=K[0][0],Pe=K[1][0],Le=K[0][1],Fe=K[1][1],He=I.l,Xe=I.r,rt=He.x,vt=He.y,Ct=Xe.x,dt=Xe.y,xt=(rt+Ct)/2,ot=(vt+dt)/2;if(dt===vt){if(xt=Pe)return;if(rt>Ct){if(me){if(me.y>=Fe)return}else me={x:xt,y:Le};ae={x:xt,y:Fe}}else{if(me){if(me.y1)if(rt>Ct){if(me){if(me.y>=Fe)return}else me={x:(Le-he)/fe,y:Le};ae={x:(Fe-he)/fe,y:Fe}}else{if(me){if(me.y=Pe)return}else me={x:Ce,y:fe*Ce+he};ae={x:Pe,y:fe*Pe+he}}else{if(me){if(me.x0)){if(ot/=Jt,Jt<0){if(ot0){if(ot>Qt)return;ot>Ht&&(Ht=ot)}if(ot=Xe-ft,Jt||!(ot<0)){if(ot/=Jt,Jt<0){if(ot>Qt)return;ot>Ht&&(Ht=ot)}else if(Jt>0){if(ot0)){if(ot/=gn,gn<0){if(ot0){if(ot>Qt)return;ot>Ht&&(Ht=ot)}if(ot=rt-Ut,gn||!(ot<0)){if(ot/=gn,gn<0){if(ot>Qt)return;ot>Ht&&(Ht=ot)}else if(gn>0){if(ot0&&(xt.a={x:ft+Ht*Jt,y:Ut+Ht*gn}),Qt<1&&(xt.b={x:ft+Qt*Jt,y:Ut+Qt*gn}),xt}}}}}),dt=vt.length;dt--;)(!Dr(Le=vt[dt],Pe)||!Ct(Le)||C(Le.a.x-Le.b.x)Ne||C(Xe-Fe)>Ne)&&(Ct.splice(vt,0,new ji((Jt=rt.site,gn=ot,vn=C(He-Pt)Ne?{x:Pt,y:C(Le-Pt)Ne?{x:C(Fe-Ut)Ne?{x:_t,y:C(Le-_t)Ne?{x:C(Fe-ft)=He&&ot.x<=rt&&ot.y>=Xe&&ot.y<=vt?[[He,vt],[rt,vt],[rt,Xe],[He,Xe]]:[]).point=Le[dt]}),Fe}function Pe(Le){return Le.map(function(Fe,He){return{x:Math.round(fe(Fe,He)/Ne)*Ne,y:Math.round(he(Fe,He)/Ne)*Ne,i:He}})}return Ce.links=function(Le){return rl(Pe(Le)).edges.filter(function(Fe){return Fe.l&&Fe.r}).map(function(Fe){return{source:Le[Fe.l.i],target:Le[Fe.r.i]}})},Ce.triangles=function(Le){var Fe=[];return rl(Pe(Le)).cells.forEach(function(He,Xe){for(var rt,vt,Ct,dt,xt=He.site,ot=He.edges.sort(ja),Pt=-1,_t=ot.length,ft=ot[_t-1].edge,Ut=ft.l===xt?ft.r:ft.l;++Pt<_t;)rt=Ut,Ut=(ft=ot[Pt].edge).l===xt?ft.r:ft.l,Xeme&&(he=K.slice(me,he),Pe[Ce]?Pe[Ce]+=he:Pe[++Ce]=he),(ae=ae[0])===(fe=fe[0])?Pe[Ce]?Pe[Ce]+=fe:Pe[++Ce]=fe:(Pe[++Ce]=null,Le.push({i:Ce,x:bi(ae,fe)})),me=Wp.lastIndex;return meot&&(ot=He.x),He.y>Pt&&(Pt=He.y),Xe.push(He.x),rt.push(He.y);else for(vt=0;vtot&&(ot=Ut),Ht>Pt&&(Pt=Ht),Xe.push(Ut),rt.push(Ht)}var Qt=ot-dt,Jt=Pt-xt;function gn(yn,Nn,Yn,dr,en,fn,En,In){if(!isNaN(Yn)&&!isNaN(dr))if(yn.leaf){var Wn=yn.x,cr=yn.y;if(Wn!=null)if(C(Wn-Yn)+C(cr-dr)<.01)vn(yn,Nn,Yn,dr,en,fn,En,In);else{var Ir=yn.point;yn.x=yn.y=yn.point=null,vn(yn,Ir,Wn,cr,en,fn,En,In),vn(yn,Nn,Yn,dr,en,fn,En,In)}else yn.x=Yn,yn.y=dr,yn.point=Nn}else vn(yn,Nn,Yn,dr,en,fn,En,In)}function vn(yn,Nn,Yn,dr,en,fn,En,In){var Wn=.5*(en+En),cr=.5*(fn+In),Ir=Yn>=Wn,Sr=dr>=cr,Vr=Sr<<1|Ir;yn.leaf=!1,Ir?en=Wn:En=Wn,Sr?fn=cr:In=cr,gn(yn=yn.nodes[Vr]||(yn.nodes[Vr]={leaf:!0,nodes:[],point:null,x:null,y:null}),Nn,Yn,dr,en,fn,En,In)}Qt>Jt?Pt=xt+Qt:ot=dt+Jt;var kn={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(yn){gn(kn,yn,+_t(yn,++vt),+ft(yn,vt),dt,xt,ot,Pt)}};if(kn.visit=function(yn){hs(yn,kn,dt,xt,ot,Pt)},kn.find=function(yn){return function(Nn,Yn,dr,en,fn,En,In){var Wn,cr=1/0;return function Ir(Sr,Vr,Fr,Yr,da){if(!(Vr>En||Fr>In||Yr=Ta)<<1|Yn>=ya,xi=Ba+4;Ba=0&&!(ae=s.interpolators[fe](I,K)););return ae}function kc(I,K){var ae,fe=[],he=[],me=I.length,Ce=K.length,Pe=Math.min(I.length,K.length);for(ae=0;ae=1)return 1;var K=I*I,ae=K*I;return 4*(I<.5?ae:3*(I-K)+ae-.75)}function ZP(I){return 1-Math.cos(I*ut)}function KP(I){return Math.pow(2,10*(I-1))}function JP(I){return 1-Math.sqrt(1-I*I)}function QP(I){return I<.36363636363636365?7.5625*I*I:I<.7272727272727273?7.5625*(I-=.5454545454545454)*I+.75:I<.9090909090909091?7.5625*(I-=.8181818181818182)*I+.9375:7.5625*(I-=.9545454545454546)*I+.984375}function Vx(I,K){return K-=I,function(ae){return Math.round(I+K*ae)}}function Yx(I){var K,ae,fe,he=[I.a,I.b],me=[I.c,I.d],Ce=Xx(he),Pe=Gx(he,me),Le=Xx(((K=me)[0]+=(fe=-Pe)*(ae=he)[0],K[1]+=fe*ae[1],K))||0;he[0]*me[1]=0?I.slice(0,ae):I,he=ae>=0?I.slice(ae+1):"in";return fe=HP.get(fe)||Wx,he=VP.get(he)||W,K=he(fe.apply(null,c.call(arguments,1))),function(me){return me<=0?0:me>=1?1:K(me)}},s.interpolateHcl=function(I,K){I=s.hcl(I),K=s.hcl(K);var ae=I.h,fe=I.c,he=I.l,me=K.h-ae,Ce=K.c-fe,Pe=K.l-he;return isNaN(Ce)&&(Ce=0,fe=isNaN(fe)?K.c:fe),isNaN(me)?(me=0,ae=isNaN(ae)?K.h:ae):me>180?me-=360:me<-180&&(me+=360),function(Le){return mt(ae+me*Le,fe+Ce*Le,he+Pe*Le)+""}},s.interpolateHsl=function(I,K){I=s.hsl(I),K=s.hsl(K);var ae=I.h,fe=I.s,he=I.l,me=K.h-ae,Ce=K.s-fe,Pe=K.l-he;return isNaN(Ce)&&(Ce=0,fe=isNaN(fe)?K.s:fe),isNaN(me)?(me=0,ae=isNaN(ae)?K.h:ae):me>180?me-=360:me<-180&&(me+=360),function(Le){return Ke(ae+me*Le,fe+Ce*Le,he+Pe*Le)+""}},s.interpolateLab=function(I,K){I=s.lab(I),K=s.lab(K);var ae=I.l,fe=I.a,he=I.b,me=K.l-ae,Ce=K.a-fe,Pe=K.b-he;return function(Le){return gt(ae+me*Le,fe+Ce*Le,he+Pe*Le)+""}},s.interpolateRound=Vx,s.transform=function(I){var K=h.createElementNS(s.ns.prefix.svg,"g");return(s.transform=function(ae){if(ae!=null){K.setAttribute("transform",ae);var fe=K.transform.baseVal.consolidate()}return new Yx(fe?fe.matrix:eD)})(I)},Yx.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var eD={a:1,b:0,c:0,d:1,e:0,f:0};function al(I){return I.length?I.pop()+",":""}function Zx(I,K){var ae=[],fe=[];return I=s.transform(I),K=s.transform(K),function(he,me,Ce,Pe){if(he[0]!==me[0]||he[1]!==me[1]){var Le=Ce.push("translate(",null,",",null,")");Pe.push({i:Le-4,x:bi(he[0],me[0])},{i:Le-2,x:bi(he[1],me[1])})}else(me[0]||me[1])&&Ce.push("translate("+me+")")}(I.translate,K.translate,ae,fe),function(he,me,Ce,Pe){he!==me?(he-me>180?me+=360:me-he>180&&(he+=360),Pe.push({i:Ce.push(al(Ce)+"rotate(",null,")")-2,x:bi(he,me)})):me&&Ce.push(al(Ce)+"rotate("+me+")")}(I.rotate,K.rotate,ae,fe),function(he,me,Ce,Pe){he!==me?Pe.push({i:Ce.push(al(Ce)+"skewX(",null,")")-2,x:bi(he,me)}):me&&Ce.push(al(Ce)+"skewX("+me+")")}(I.skew,K.skew,ae,fe),function(he,me,Ce,Pe){if(he[0]!==me[0]||he[1]!==me[1]){var Le=Ce.push(al(Ce)+"scale(",null,",",null,")");Pe.push({i:Le-4,x:bi(he[0],me[0])},{i:Le-2,x:bi(he[1],me[1])})}else me[0]===1&&me[1]===1||Ce.push(al(Ce)+"scale("+me+")")}(I.scale,K.scale,ae,fe),I=K=null,function(he){for(var me,Ce=-1,Pe=fe.length;++Ce0?ae=ft:(I.c=null,I.t=NaN,I=null,Pe.end({type:"end",alpha:ae=0})):ft>0&&(Pe.start({type:"start",alpha:ae=ft}),I=nn(Ce.tick)),Ce):ae},Ce.start=function(){var ft,Ut,Ht,Qt=xt.length,Jt=ot.length,gn=Le[0],vn=Le[1];for(ft=0;ft=0;)ae.push(he[fe])}function ai(I,K){for(var ae=[I],fe=[];(I=ae.pop())!=null;)if(fe.push(I),(me=I.children)&&(he=me.length))for(var he,me,Ce=-1;++Ce=0;)Ce.push(He=Fe[Le]),He.parent=me,He.depth=me.depth+1;ae&&(me.value=0),me.children=Fe}else ae&&(me.value=+ae.call(fe,me,me.depth)||0),delete me.children;return ai(he,function(Xe){var rt,vt;I&&(rt=Xe.children)&&rt.sort(I),ae&&(vt=Xe.parent)&&(vt.value+=Xe.value)}),Pe}return fe.sort=function(he){return arguments.length?(I=he,fe):I},fe.children=function(he){return arguments.length?(K=he,fe):K},fe.value=function(he){return arguments.length?(ae=he,fe):ae},fe.revalue=function(he){return ae&&(gs(he,function(me){me.children&&(me.value=0)}),ai(he,function(me){var Ce;me.children||(me.value=+ae.call(fe,me,me.depth)||0),(Ce=me.parent)&&(Ce.value+=me.value)})),he},fe},s.layout.partition=function(){var I=s.layout.hierarchy(),K=[1,1];function ae(me,Ce,Pe,Le){var Fe=me.children;if(me.x=Ce,me.y=me.depth*Le,me.dx=Pe,me.dy=Le,Fe&&(He=Fe.length)){var He,Xe,rt,vt=-1;for(Pe=me.value?Pe/me.value:0;++vtPe&&(Pe=fe),Ce.push(fe)}for(ae=0;aehe&&(fe=ae,he=K);return fe}function wD(I){return I.reduce(_D,0)}function _D(I,K){return I+K[1]}function TD(I,K){return e2(I,Math.ceil(Math.log(K.length)/Math.LN2+1))}function e2(I,K){for(var ae=-1,fe=+I[0],he=(I[1]-fe)/K,me=[];++ae<=K;)me[ae]=he*ae+fe;return me}function kD(I){return[s.min(I),s.max(I)]}function MD(I,K){return I.value-K.value}function Vp(I,K){var ae=I._pack_next;I._pack_next=K,K._pack_prev=I,K._pack_next=ae,ae._pack_prev=K}function t2(I,K){I._pack_next=K,K._pack_prev=I}function n2(I,K){var ae=K.x-I.x,fe=K.y-I.y,he=I.r+K.r;return .999*he*he>ae*ae+fe*fe}function r2(I){if((K=I.children)&&(Le=K.length)){var K,ae,fe,he,me,Ce,Pe,Le,Fe=1/0,He=-1/0,Xe=1/0,rt=-1/0;if(K.forEach(SD),(ae=K[0]).x=-ae.r,ae.y=0,_t(ae),Le>1&&((fe=K[1]).x=fe.r,fe.y=0,_t(fe),Le>2))for(i2(ae,fe,he=K[2]),_t(he),Vp(ae,he),ae._pack_prev=he,Vp(he,fe),fe=ae._pack_next,me=3;me0)for(Ce=-1;++Ce=Xe[0]&&Le<=Xe[1]&&((Pe=Fe[s.bisect(rt,Le,1,Ct)-1]).y+=dt,Pe.push(me[Ce]));return Fe}return he.value=function(me){return arguments.length?(K=me,he):K},he.range=function(me){return arguments.length?(ae=Wt(me),he):ae},he.bins=function(me){return arguments.length?(fe=typeof me=="number"?function(Ce){return e2(Ce,me)}:Wt(me),he):fe},he.frequency=function(me){return arguments.length?(I=!!me,he):I},he},s.layout.pack=function(){var I,K=s.layout.hierarchy().sort(MD),ae=0,fe=[1,1];function he(me,Ce){var Pe=K.call(this,me,Ce),Le=Pe[0],Fe=fe[0],He=fe[1],Xe=I==null?Math.sqrt:typeof I=="function"?I:function(){return I};if(Le.x=Le.y=0,ai(Le,function(vt){vt.r=+Xe(vt.value)}),ai(Le,r2),ae){var rt=ae*(I?1:Math.max(2*Le.r/Fe,2*Le.r/He))/2;ai(Le,function(vt){vt.r+=rt}),ai(Le,r2),ai(Le,function(vt){vt.r-=rt})}return a2(Le,Fe/2,He/2,I?1:1/Math.max(2*Le.r/Fe,2*Le.r/He)),Pe}return he.size=function(me){return arguments.length?(fe=me,he):fe},he.radius=function(me){return arguments.length?(I=me==null||typeof me=="function"?me:+me,he):I},he.padding=function(me){return arguments.length?(ae=+me,he):ae},ps(he,K)},s.layout.tree=function(){var I=s.layout.hierarchy().sort(null).value(null),K=o2,ae=[1,1],fe=null;function he(Le,Fe){var He=I.call(this,Le,Fe),Xe=He[0],rt=function(_t){for(var ft,Ut={A:null,children:[_t]},Ht=[Ut];(ft=Ht.pop())!=null;)for(var Qt,Jt=ft.children,gn=0,vn=Jt.length;gnCt.x&&(Ct=_t),_t.depth>dt.depth&&(dt=_t)});var xt=K(vt,Ct)/2-vt.x,ot=ae[0]/(Ct.x+K(Ct,vt)/2+xt),Pt=ae[1]/(dt.depth||1);gs(Xe,function(_t){_t.x=(_t.x+xt)*ot,_t.y=_t.depth*Pt})}return He}function me(Le){var Fe=Le.children,He=Le.parent.children,Xe=Le.i?He[Le.i-1]:null;if(Fe.length){(function(vt){for(var Ct,dt=0,xt=0,ot=vt.children,Pt=ot.length;--Pt>=0;)(Ct=ot[Pt]).z+=dt,Ct.m+=dt,dt+=Ct.s+(xt+=Ct.c)})(Le);var rt=(Fe[0].z+Fe[Fe.length-1].z)/2;Xe?(Le.z=Xe.z+K(Le._,Xe._),Le.m=Le.z-rt):Le.z=rt}else Xe&&(Le.z=Xe.z+K(Le._,Xe._));Le.parent.A=function(vt,Ct,dt){if(Ct){for(var xt,ot=vt,Pt=vt,_t=Ct,ft=ot.parent.children[0],Ut=ot.m,Ht=Pt.m,Qt=_t.m,Jt=ft.m;_t=Gp(_t),ot=Yp(ot),_t&&ot;)ft=Yp(ft),(Pt=Gp(Pt)).a=vt,(xt=_t.z+Qt-ot.z-Ut+K(_t._,ot._))>0&&(OD(AD(_t,vt,dt),vt,xt),Ut+=xt,Ht+=xt),Qt+=_t.m,Ut+=ot.m,Jt+=ft.m,Ht+=Pt.m;_t&&!Gp(Pt)&&(Pt.t=_t,Pt.m+=Qt-Ht),ot&&!Yp(ft)&&(ft.t=ot,ft.m+=Ut-Jt,dt=vt)}return dt}(Le,Xe,Le.parent.A||He[0])}function Ce(Le){Le._.x=Le.z+Le.parent.m,Le.m+=Le.parent.m}function Pe(Le){Le.x*=ae[0],Le.y=Le.depth*ae[1]}return he.separation=function(Le){return arguments.length?(K=Le,he):K},he.size=function(Le){return arguments.length?(fe=(ae=Le)==null?Pe:null,he):fe?null:ae},he.nodeSize=function(Le){return arguments.length?(fe=(ae=Le)==null?null:Pe,he):fe?ae:null},ps(he,I)},s.layout.cluster=function(){var I=s.layout.hierarchy().sort(null).value(null),K=o2,ae=[1,1],fe=!1;function he(me,Ce){var Pe,Le=I.call(this,me,Ce),Fe=Le[0],He=0;ai(Fe,function(dt){var xt=dt.children;xt&&xt.length?(dt.x=function(ot){return ot.reduce(function(Pt,_t){return Pt+_t.x},0)/ot.length}(xt),dt.y=function(ot){return 1+s.max(ot,function(Pt){return Pt.y})}(xt)):(dt.x=Pe?He+=K(dt,Pe):0,dt.y=0,Pe=dt)});var Xe=l2(Fe),rt=s2(Fe),vt=Xe.x-K(Xe,rt)/2,Ct=rt.x+K(rt,Xe)/2;return ai(Fe,fe?function(dt){dt.x=(dt.x-Fe.x)*ae[0],dt.y=(Fe.y-dt.y)*ae[1]}:function(dt){dt.x=(dt.x-vt)/(Ct-vt)*ae[0],dt.y=(1-(Fe.y?dt.y/Fe.y:1))*ae[1]}),Le}return he.separation=function(me){return arguments.length?(K=me,he):K},he.size=function(me){return arguments.length?(fe=(ae=me)==null,he):fe?null:ae},he.nodeSize=function(me){return arguments.length?(fe=(ae=me)!=null,he):fe?ae:null},ps(he,I)},s.layout.treemap=function(){var I,K=s.layout.hierarchy(),ae=Math.round,fe=[1,1],he=null,me=Xp,Ce=!1,Pe="squarify",Le=.5*(1+Math.sqrt(5));function Fe(dt,xt){for(var ot,Pt,_t=-1,ft=dt.length;++_t0;)Ut.push(ot=Ht[_t-1]),Ut.area+=ot.area,Pe!=="squarify"||(Pt=rt(Ut,Jt))<=Qt?(Ht.pop(),Qt=Pt):(Ut.area-=Ut.pop().area,vt(Ut,Jt,ft,!1),Jt=Math.min(ft.dx,ft.dy),Ut.length=Ut.area=0,Qt=1/0);Ut.length&&(vt(Ut,Jt,ft,!0),Ut.length=Ut.area=0),xt.forEach(He)}}function Xe(dt){var xt=dt.children;if(xt&&xt.length){var ot,Pt=me(dt),_t=xt.slice(),ft=[];for(Fe(_t,Pt.dx*Pt.dy/dt.value),ft.area=0;ot=_t.pop();)ft.push(ot),ft.area+=ot.area,ot.z!=null&&(vt(ft,ot.z?Pt.dx:Pt.dy,Pt,!_t.length),ft.length=ft.area=0);xt.forEach(Xe)}}function rt(dt,xt){for(var ot,Pt=dt.area,_t=0,ft=1/0,Ut=-1,Ht=dt.length;++Ut_t&&(_t=ot));return xt*=xt,(Pt*=Pt)?Math.max(xt*_t*Le/Pt,Pt/(xt*ft*Le)):1/0}function vt(dt,xt,ot,Pt){var _t,ft=-1,Ut=dt.length,Ht=ot.x,Qt=ot.y,Jt=xt?ae(dt.area/xt):0;if(xt==ot.dx){for((Pt||Jt>ot.dy)&&(Jt=ot.dy);++ftot.dx)&&(Jt=ot.dx);++ft1);return I+K*fe*Math.sqrt(-2*Math.log(me)/me)}},logNormal:function(){var I=s.random.normal.apply(s,arguments);return function(){return Math.exp(I())}},bates:function(I){var K=s.random.irwinHall(I);return function(){return K()/I}},irwinHall:function(I){return function(){for(var K=0,ae=0;ae2?ED:PD,Fe=fe?nD:tD;return he=Le(I,K,Fe,ae),me=Le(K,I,Fe,so),Pe}function Pe(Le){return he(Le)}return Pe.invert=function(Le){return me(Le)},Pe.domain=function(Le){return arguments.length?(I=Le.map(Number),Ce()):I},Pe.range=function(Le){return arguments.length?(K=Le,Ce()):K},Pe.rangeRound=function(Le){return Pe.range(Le).interpolate(Vx)},Pe.clamp=function(Le){return arguments.length?(fe=Le,Ce()):fe},Pe.interpolate=function(Le){return arguments.length?(ae=Le,Ce()):ae},Pe.ticks=function(Le){return Jp(I,Le)},Pe.tickFormat=function(Le,Fe){return d3_scale_linearTickFormat(I,Le,Fe)},Pe.nice=function(Le){return h2(I,Le),Ce()},Pe.copy=function(){return f2(I,K,ae,fe)},Ce()}function d2(I,K){return s.rebind(I,K,"range","rangeRound","interpolate","clamp")}function h2(I,K){return Zp(I,c2(Kp(I,K)[2])),Zp(I,c2(Kp(I,K)[2])),I}function Kp(I,K){K==null&&(K=10);var ae=Mc(I),fe=ae[1]-ae[0],he=Math.pow(10,Math.floor(Math.log(fe/K)/Math.LN10)),me=K/fe*he;return me<=.15?he*=10:me<=.35?he*=5:me<=.75&&(he*=2),ae[0]=Math.ceil(ae[0]/he)*he,ae[1]=Math.floor(ae[1]/he)*he+.5*he,ae[2]=he,ae}function Jp(I,K){return s.range.apply(s,Kp(I,K))}function p2(I,K,ae,fe){function he(Pe){return(ae?Math.log(Pe<0?0:Pe):-Math.log(Pe>0?0:-Pe))/Math.log(K)}function me(Pe){return ae?Math.pow(K,Pe):-Math.pow(K,-Pe)}function Ce(Pe){return I(he(Pe))}return Ce.invert=function(Pe){return me(I.invert(Pe))},Ce.domain=function(Pe){return arguments.length?(ae=Pe[0]>=0,I.domain((fe=Pe.map(Number)).map(he)),Ce):fe},Ce.base=function(Pe){return arguments.length?(K=+Pe,I.domain(fe.map(he)),Ce):K},Ce.nice=function(){var Pe=Zp(fe.map(he),ae?Math:RD);return I.domain(Pe),fe=Pe.map(me),Ce},Ce.ticks=function(){var Pe=Mc(fe),Le=[],Fe=Pe[0],He=Pe[1],Xe=Math.floor(he(Fe)),rt=Math.ceil(he(He)),vt=K%1?2:K;if(isFinite(rt-Xe)){if(ae){for(;Xe0;Ct--)Le.push(me(Xe)*Ct);for(Xe=0;Le[Xe]He;rt--);Le=Le.slice(Xe,rt)}return Le},Ce.copy=function(){return p2(I.copy(),K,ae,fe)},d2(Ce,I)}s.scale.linear=function(){return f2([0,1],[0,1],so,!1)},s.scale.log=function(){return p2(s.scale.linear().domain([0,1]),10,!0,[1,10])};var RD={floor:function(I){return-Math.ceil(-I)},ceil:function(I){return-Math.floor(-I)}};function g2(I,K,ae){var fe=Cc(K),he=Cc(1/K);function me(Ce){return I(fe(Ce))}return me.invert=function(Ce){return he(I.invert(Ce))},me.domain=function(Ce){return arguments.length?(I.domain((ae=Ce.map(Number)).map(fe)),me):ae},me.ticks=function(Ce){return Jp(ae,Ce)},me.tickFormat=function(Ce,Pe){return d3_scale_linearTickFormat(ae,Ce,Pe)},me.nice=function(Ce){return me.domain(h2(ae,Ce))},me.exponent=function(Ce){return arguments.length?(fe=Cc(K=Ce),he=Cc(1/K),I.domain(ae.map(fe)),me):K},me.copy=function(){return g2(I.copy(),K,ae)},d2(me,I)}function Cc(I){return function(K){return K<0?-Math.pow(-K,I):Math.pow(K,I)}}function m2(I,K){var ae,fe,he;function me(Pe){return fe[((ae.get(Pe)||(K.t==="range"?ae.set(Pe,I.push(Pe)):NaN))-1)%fe.length]}function Ce(Pe,Le){return s.range(I.length).map(function(Fe){return Pe+Le*Fe})}return me.domain=function(Pe){if(!arguments.length)return I;I=[],ae=new D;for(var Le,Fe=-1,He=Pe.length;++Fe0?ae[me-1]:I[0],mert?0:1;if(He=Je)return Le(He,Ct)+(Fe?Le(Fe,1-Ct):"")+"Z";var dt,xt,ot,Pt,_t,ft,Ut,Ht,Qt,Jt,gn,vn,kn=0,yn=0,Nn=[];if((Pt=(+Ce.apply(this,arguments)||0)/2)&&(ot=fe===Oc?Math.sqrt(Fe*Fe+He*He):+fe.apply(this,arguments),Ct||(yn*=-1),He&&(yn=Mt(ot/He*Math.sin(Pt))),Fe&&(kn=Mt(ot/Fe*Math.sin(Pt)))),He){_t=He*Math.cos(Xe+yn),ft=He*Math.sin(Xe+yn),Ut=He*Math.cos(rt-yn),Ht=He*Math.sin(rt-yn);var Yn=Math.abs(rt-Xe-2*yn)<=it?0:1;if(yn&&Ac(_t,ft,Ut,Ht)===Ct^Yn){var dr=(Xe+rt)/2;_t=He*Math.cos(dr),ft=He*Math.sin(dr),Ut=Ht=null}}else _t=ft=0;if(Fe){Qt=Fe*Math.cos(rt-kn),Jt=Fe*Math.sin(rt-kn),gn=Fe*Math.cos(Xe+kn),vn=Fe*Math.sin(Xe+kn);var en=Math.abs(Xe-rt+2*kn)<=it?0:1;if(kn&&Ac(Qt,Jt,gn,vn)===1-Ct^en){var fn=(Xe+rt)/2;Qt=Fe*Math.cos(fn),Jt=Fe*Math.sin(fn),gn=vn=null}}else Qt=Jt=0;if(vt>Ne&&(dt=Math.min(Math.abs(He-Fe)/2,+ae.apply(this,arguments)))>.001){xt=Fe0?0:1}function Pc(I,K,ae,fe,he){var me=I[0]-K[0],Ce=I[1]-K[1],Pe=(he?fe:-fe)/Math.sqrt(me*me+Ce*Ce),Le=Pe*Ce,Fe=-Pe*me,He=I[0]+Le,Xe=I[1]+Fe,rt=K[0]+Le,vt=K[1]+Fe,Ct=(He+rt)/2,dt=(Xe+vt)/2,xt=rt-He,ot=vt-Xe,Pt=xt*xt+ot*ot,_t=ae-fe,ft=He*vt-rt*Xe,Ut=(ot<0?-1:1)*Math.sqrt(Math.max(0,_t*_t*Pt-ft*ft)),Ht=(ft*ot-xt*Ut)/Pt,Qt=(-ft*xt-ot*Ut)/Pt,Jt=(ft*ot+xt*Ut)/Pt,gn=(-ft*xt+ot*Ut)/Pt,vn=Ht-Ct,kn=Qt-dt,yn=Jt-Ct,Nn=gn-dt;return vn*vn+kn*kn>yn*yn+Nn*Nn&&(Ht=Jt,Qt=gn),[[Ht-Le,Qt-Fe],[Ht*ae/_t,Qt*ae/_t]]}function T2(){return!0}function k2(I){var K=Pn,ae=xn,fe=T2,he=Za,me=he.key,Ce=.7;function Pe(Le){var Fe,He=[],Xe=[],rt=-1,vt=Le.length,Ct=Wt(K),dt=Wt(ae);function xt(){He.push("M",he(I(Xe),Ce))}for(;++rt1&&he.push("H",fe[0]),he.join("")},"step-before":eg,"step-after":tg,basis:S2,"basis-open":function(I){if(I.length<4)return Za(I);for(var K,ae=[],fe=-1,he=I.length,me=[0],Ce=[0];++fe<3;)K=I[fe],me.push(K[0]),Ce.push(K[1]);for(ae.push($a($i,me)+","+$a($i,Ce)),--fe;++fe9&&(me=3*ae/Math.sqrt(me),Pe[Le]=me*fe,Pe[Le+1]=me*he);for(Le=-1;++Le<=Fe;)me=(K[Math.min(Fe,Le+1)][0]-K[Math.max(0,Le-1)][0])/(6*(1+Pe[Le]*Pe[Le])),Ce.push([me||0,Pe[Le]*me||0]);return Ce}(I))}});function Za(I){return I.length>1?I.join("L"):I+"Z"}function M2(I){return I.join("L")+"Z"}function eg(I){for(var K=0,ae=I.length,fe=I[0],he=[fe[0],",",fe[1]];++K1){Pe=K[1],me=I[Le],Le++,fe+="C"+(he[0]+Ce[0])+","+(he[1]+Ce[1])+","+(me[0]-Pe[0])+","+(me[1]-Pe[1])+","+me[0]+","+me[1];for(var Fe=2;Feit)+",1 "+He}function Le(Fe,He,Xe,rt){return"Q 0,0 "+rt}return me.radius=function(Fe){return arguments.length?(ae=Wt(Fe),me):ae},me.source=function(Fe){return arguments.length?(I=Wt(Fe),me):I},me.target=function(Fe){return arguments.length?(K=Wt(Fe),me):K},me.startAngle=function(Fe){return arguments.length?(fe=Wt(Fe),me):fe},me.endAngle=function(Fe){return arguments.length?(he=Wt(Fe),me):he},me},s.svg.diagonal=function(){var I=D2,K=E2,ae=R2;function fe(he,me){var Ce=I.call(this,he,me),Pe=K.call(this,he,me),Le=(Ce.y+Pe.y)/2,Fe=[Ce,{x:Ce.x,y:Le},{x:Pe.x,y:Le},Pe];return"M"+(Fe=Fe.map(ae))[0]+"C"+Fe[1]+" "+Fe[2]+" "+Fe[3]}return fe.source=function(he){return arguments.length?(I=Wt(he),fe):I},fe.target=function(he){return arguments.length?(K=Wt(he),fe):K},fe.projection=function(he){return arguments.length?(ae=he,fe):ae},fe},s.svg.diagonal.radial=function(){var I=s.svg.diagonal(),K=R2,ae=I.projection;return I.projection=function(fe){return arguments.length?ae(function(he){return function(){var me=he.apply(this,arguments),Ce=me[0],Pe=me[1]-ut;return[Ce*Math.cos(Pe),Ce*Math.sin(Pe)]}}(K=fe)):K},I},s.svg.symbol=function(){var I=UD,K=WD;function ae(fe,he){return(I2.get(I.call(this,fe,he))||L2)(K.call(this,fe,he))}return ae.type=function(fe){return arguments.length?(I=Wt(fe),ae):I},ae.size=function(fe){return arguments.length?(K=Wt(fe),ae):K},ae};var I2=s.map({circle:L2,cross:function(I){var K=Math.sqrt(I/5)/2;return"M"+-3*K+","+-K+"H"+-K+"V"+-3*K+"H"+K+"V"+-K+"H"+3*K+"V"+K+"H"+K+"V"+3*K+"H"+-K+"V"+K+"H"+-3*K+"Z"},diamond:function(I){var K=Math.sqrt(I/(2*F2)),ae=K*F2;return"M0,"+-K+"L"+ae+",0 0,"+K+" "+-ae+",0Z"},square:function(I){var K=Math.sqrt(I)/2;return"M"+-K+","+-K+"L"+K+","+-K+" "+K+","+K+" "+-K+","+K+"Z"},"triangle-down":function(I){var K=Math.sqrt(I/Ec),ae=K*Ec/2;return"M0,"+ae+"L"+K+","+-ae+" "+-K+","+-ae+"Z"},"triangle-up":function(I){var K=Math.sqrt(I/Ec),ae=K*Ec/2;return"M0,"+-ae+"L"+K+","+ae+" "+-K+","+ae+"Z"}});s.svg.symbolTypes=I2.keys();var Ec=Math.sqrt(3),F2=Math.tan(30*pt);se.transition=function(I){for(var K,ae,fe=uo||++j2,he=og(I),me=[],Ce=Lc||{time:Date.now(),ease:XP,delay:0,duration:250},Pe=-1,Le=this.length;++Pe0;)Fe[--ot].call(I,xt);if(dt>=1)return Xe.event&&Xe.event.end.call(I,I.__data__,K),--He.count?delete He[fe]:delete I[ae],1}Xe||(me=he.time,Ce=nn(function(Ct){var dt=Xe.delay;if(Ce.t=dt+me,dt<=Ct)return rt(Ct-dt);Ce.c=rt},0,me),Xe=He[fe]={tween:new D,time:me,timer:Ce,delay:he.delay,duration:he.duration,ease:he.ease,index:K},he=null,++He.count)}zr.call=se.call,zr.empty=se.empty,zr.node=se.node,zr.size=se.size,s.transition=function(I,K){return I&&I.transition?uo?I.transition(K):I:s.selection().transition(I)},s.transition.prototype=zr,zr.select=function(I){var K,ae,fe,he=this.id,me=this.namespace,Ce=[];I=pe(I);for(var Pe=-1,Le=this.length;++Perect,.s>rect").attr("width",me[1]-me[0])}function vt(dt){dt.select(".extent").attr("y",Ce[0]),dt.selectAll(".extent,.e>rect,.w>rect").attr("height",Ce[1]-Ce[0])}function Ct(){var dt,xt,ot=this,Pt=s.select(s.event.target),_t=ae.of(ot,arguments),ft=s.select(ot),Ut=Pt.datum(),Ht=!/^(n|s)$/.test(Ut)&&fe,Qt=!/^(e|w)$/.test(Ut)&&he,Jt=Pt.classed("extent"),gn=lt(ot),vn=s.mouse(ot),kn=s.select(m(ot)).on("keydown.brush",function(){s.event.keyCode==32&&(Jt||(dt=null,vn[0]-=me[1],vn[1]-=Ce[1],Jt=2),ee())}).on("keyup.brush",function(){s.event.keyCode==32&&Jt==2&&(vn[0]+=me[1],vn[1]+=Ce[1],Jt=0,ee())});if(s.event.changedTouches?kn.on("touchmove.brush",Yn).on("touchend.brush",en):kn.on("mousemove.brush",Yn).on("mouseup.brush",en),ft.interrupt().selectAll("*").interrupt(),Jt)vn[0]=me[0]-vn[0],vn[1]=Ce[0]-vn[1];else if(Ut){var yn=+/w$/.test(Ut),Nn=+/^n/.test(Ut);xt=[me[1-yn]-vn[0],Ce[1-Nn]-vn[1]],vn[0]=me[yn],vn[1]=Ce[Nn]}else s.event.altKey&&(dt=vn.slice());function Yn(){var fn=s.mouse(ot),En=!1;xt&&(fn[0]+=xt[0],fn[1]+=xt[1]),Jt||(s.event.altKey?(dt||(dt=[(me[0]+me[1])/2,(Ce[0]+Ce[1])/2]),vn[0]=me[+(fn[0]1?L-1:0),H=1;H1?L-1:0),H=1;H1?L-1:0),H=1;H1?L-1:0),H=1;H"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}()?Reflect.construct:function(F,A,z){var B=[null];B.push.apply(B,A);var $=new(Function.bind.apply(F,B));return z&&m($,z.prototype),$},p.apply(null,arguments)}function m(D,O){return m=Object.setPrototypeOf||function(R,F){return R.__proto__=F,R},m(D,O)}function y(D){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(O){return O.__proto__||Object.getPrototypeOf(O)},y(D)}function v(D){return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(O){return typeof O}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},v(D)}var g=n(43827).inspect,b=n(79616).codes.ERR_INVALID_ARG_TYPE;function x(D,O,R){return(R===void 0||R>D.length)&&(R=D.length),D.substring(R-O.length,R)===O}var _="",w="",k="",T="",M={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function S(D){var O=Object.keys(D),R=Object.create(Object.getPrototypeOf(D));return O.forEach(function(F){R[F]=D[F]}),Object.defineProperty(R,"message",{value:D.message}),R}function C(D){return g(D,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var P=function(D){function O(A){var z;if(function(te,ee){if(!(te instanceof ee))throw new TypeError("Cannot call a class as a function")}(this,O),v(A)!=="object"||A===null)throw new b("options","Object",A);var B=A.message,$=A.operator,j=A.stackStartFn,N=A.actual,E=A.expected,W=Error.stackTraceLimit;if(Error.stackTraceLimit=0,B!=null)z=u(this,y(O).call(this,String(B)));else if(l.stderr&&l.stderr.isTTY&&(l.stderr&&l.stderr.getColorDepth&&l.stderr.getColorDepth()!==1?(_="\x1B[34m",w="\x1B[32m",T="\x1B[39m",k="\x1B[31m"):(_="",w="",T="",k="")),v(N)==="object"&&N!==null&&v(E)==="object"&&E!==null&&"stack"in N&&N instanceof Error&&"stack"in E&&E instanceof Error&&(N=S(N),E=S(E)),$==="deepStrictEqual"||$==="strictEqual")z=u(this,y(O).call(this,function(te,ee,U){var Q="",Y="",Z=0,X="",re=!1,ie=C(te),le=ie.split(` +`))}throw q}},C.strict=k(E,C,{equal:C.strictEqual,deepEqual:C.deepStrictEqual,notEqual:C.notStrictEqual,notDeepEqual:C.notDeepStrictEqual}),C.strict.strict=C.strict},73894:function(o,a,n){var l=n(90386);function f(D,O,R){return O in D?Object.defineProperty(D,O,{value:R,enumerable:!0,configurable:!0,writable:!0}):D[O]=R,D}function s(D,O){for(var R=0;R"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}()?Reflect.construct:function(F,A,z){var B=[null];B.push.apply(B,A);var $=new(Function.bind.apply(F,B));return z&&m($,z.prototype),$},p.apply(null,arguments)}function m(D,O){return m=Object.setPrototypeOf||function(R,F){return R.__proto__=F,R},m(D,O)}function y(D){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(O){return O.__proto__||Object.getPrototypeOf(O)},y(D)}function v(D){return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(O){return typeof O}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},v(D)}var g=n(43827).inspect,b=n(79616).codes.ERR_INVALID_ARG_TYPE;function x(D,O,R){return(R===void 0||R>D.length)&&(R=D.length),D.substring(R-O.length,R)===O}var _="",w="",k="",T="",M={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function S(D){var O=Object.keys(D),R=Object.create(Object.getPrototypeOf(D));return O.forEach(function(F){R[F]=D[F]}),Object.defineProperty(R,"message",{value:D.message}),R}function C(D){return g(D,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var P=function(D){function O(A){var z;if(function(te,ee){if(!(te instanceof ee))throw new TypeError("Cannot call a class as a function")}(this,O),v(A)!=="object"||A===null)throw new b("options","Object",A);var B=A.message,$=A.operator,j=A.stackStartFn,N=A.actual,E=A.expected,W=Error.stackTraceLimit;if(Error.stackTraceLimit=0,B!=null)z=c(this,y(O).call(this,String(B)));else if(l.stderr&&l.stderr.isTTY&&(l.stderr&&l.stderr.getColorDepth&&l.stderr.getColorDepth()!==1?(_="\x1B[34m",w="\x1B[32m",T="\x1B[39m",k="\x1B[31m"):(_="",w="",T="",k="")),v(N)==="object"&&N!==null&&v(E)==="object"&&E!==null&&"stack"in N&&N instanceof Error&&"stack"in E&&E instanceof Error&&(N=S(N),E=S(E)),$==="deepStrictEqual"||$==="strictEqual")z=c(this,y(O).call(this,function(te,ee,U){var Q="",Y="",Z=0,X="",re=!1,ie=C(te),le=ie.split(` `),se=C(ee).split(` `),pe=0,Te="";if(U==="strictEqual"&&v(te)==="object"&&v(ee)==="object"&&te!==null&&ee!==null&&(U="strictEqualObject"),le.length===1&&se.length===1&&le[0]!==se[0]){var Se=le[0].length+se[0].length;if(Se<=10){if(!(v(te)==="object"&&te!==null||v(ee)==="object"&&ee!==null||te===0&&ee===0))return"".concat(M[U],` @@ -45,7 +45,7 @@ var JD=Object.defineProperty;var QD=(e,t,r)=>t in e?JD(e,t,{enumerable:!0,config `).concat(_,"...").concat(T).concat(Q,` `)+"".concat(_,"...").concat(T)}return"".concat(ne).concat(re?de:"",` `).concat(Y).concat(Q).concat(X).concat(Te)}(N,E,$)));else if($==="notDeepStrictEqual"||$==="notStrictEqual"){var G=M[$],L=C(N).split(` -`);if($==="notStrictEqual"&&v(N)==="object"&&N!==null&&(G=M.notStrictEqualObject),L.length>30)for(L[26]="".concat(_,"...").concat(T);L.length>27;)L.pop();z=L.length===1?u(this,y(O).call(this,"".concat(G," ").concat(L[0]))):u(this,y(O).call(this,"".concat(G,` +`);if($==="notStrictEqual"&&v(N)==="object"&&N!==null&&(G=M.notStrictEqualObject),L.length>30)for(L[26]="".concat(_,"...").concat(T);L.length>27;)L.pop();z=L.length===1?c(this,y(O).call(this,"".concat(G," ").concat(L[0]))):c(this,y(O).call(this,"".concat(G,` `).concat(L.join(` `),` @@ -57,9 +57,9 @@ var JD=Object.defineProperty;var QD=(e,t,r)=>t in e?JD(e,t,{enumerable:!0,config should equal -`):H=" ".concat($," ").concat(H)),z=u(this,y(O).call(this,"".concat(q).concat(H)))}return Error.stackTraceLimit=W,z.generatedMessage=!B,Object.defineProperty(d(z),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),z.code="ERR_ASSERTION",z.actual=N,z.expected=E,z.operator=$,Error.captureStackTrace&&Error.captureStackTrace(d(z),j),z.stack,z.name="AssertionError",u(z)}var R,F;return function(A,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(z&&z.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),z&&m(A,z)}(O,D),R=O,F=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:g.custom,value:function(A,z){return g(this,function(B){for(var $=1;$2?"one of ".concat(v," ").concat(y.slice(0,g-1).join(", "),", or ")+y[g-1]:g===2?"one of ".concat(v," ").concat(y[0]," or ").concat(y[1]):"of ".concat(v," ").concat(y[0])}return"of ".concat(v," ").concat(String(y))}p("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),p("ERR_INVALID_ARG_TYPE",function(y,v,g){var b,x,_,w,k;if(u===void 0&&(u=n(32791)),u(typeof y=="string","'name' must be a string"),typeof v=="string"&&(x="not ",v.substr(0,4)===x)?(b="must not be",v=v.replace(/^not /,"")):b="must be",function(M,S,C){return(C===void 0||C>M.length)&&(C=M.length),M.substring(C-9,C)===S}(y," argument"))_="The ".concat(y," ").concat(b," ").concat(m(v,"type"));else{var T=(typeof k!="number"&&(k=0),k+1>(w=y).length||w.indexOf(".",k)===-1?"argument":"property");_='The "'.concat(y,'" ').concat(T," ").concat(b," ").concat(m(v,"type"))}return _+". Received type ".concat(l(g))},TypeError),p("ERR_INVALID_ARG_VALUE",function(y,v){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";d===void 0&&(d=n(43827));var b=d.inspect(v);return b.length>128&&(b="".concat(b.slice(0,128),"...")),"The argument '".concat(y,"' ").concat(g,". Received ").concat(b)},TypeError),p("ERR_INVALID_RETURN_VALUE",function(y,v,g){var b;return b=g&&g.constructor&&g.constructor.name?"instance of ".concat(g.constructor.name):"type ".concat(l(g)),"Expected ".concat(y,' to be returned from the "').concat(v,'"')+" function but got ".concat(b,".")},TypeError),p("ERR_MISSING_ARGS",function(){for(var y=arguments.length,v=new Array(y),g=0;g0,"At least one arg needs to be specified");var b="The ",x=v.length;switch(v=v.map(function(_){return'"'.concat(_,'"')}),x){case 1:b+="".concat(v[0]," argument");break;case 2:b+="".concat(v[0]," and ").concat(v[1]," arguments");break;default:b+=v.slice(0,x-1).join(", "),b+=", and ".concat(v[x-1]," arguments")}return"".concat(b," must be specified")},TypeError),o.exports.codes=h},74061:function(o,a,n){function l(Z,X){return function(re){if(Array.isArray(re))return re}(Z)||function(re,ie){var le=[],se=!0,pe=!1,Te=void 0;try{for(var Se,Oe=re[Symbol.iterator]();!(se=(Se=Oe.next()).done)&&(le.push(Se.value),!ie||le.length!==ie);se=!0);}catch(Me){pe=!0,Te=Me}finally{try{se||Oe.return==null||Oe.return()}finally{if(pe)throw Te}}return le}(Z,X)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function f(Z){return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(X){return typeof X}:function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},f(Z)}var s=/a/g.flags!==void 0,u=function(Z){var X=[];return Z.forEach(function(re){return X.push(re)}),X},d=function(Z){var X=[];return Z.forEach(function(re,ie){return X.push([ie,re])}),X},h=Object.is?Object.is:n(64003),p=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},m=Number.isNaN?Number.isNaN:n(15567);function y(Z){return Z.call.bind(Z)}var v=y(Object.prototype.hasOwnProperty),g=y(Object.prototype.propertyIsEnumerable),b=y(Object.prototype.toString),x=n(43827).types,_=x.isAnyArrayBuffer,w=x.isArrayBufferView,k=x.isDate,T=x.isMap,M=x.isRegExp,S=x.isSet,C=x.isNativeError,P=x.isBoxedPrimitive,D=x.isNumberObject,O=x.isStringObject,R=x.isBooleanObject,F=x.isBigIntObject,A=x.isSymbolObject,z=x.isFloat32Array,B=x.isFloat64Array;function $(Z){if(Z.length===0||Z.length>10)return!0;for(var X=0;X57)return!0}return Z.length===10&&Z>=Math.pow(2,32)}function j(Z){return Object.keys(Z).filter($).concat(p(Z).filter(Object.prototype.propertyIsEnumerable.bind(Z)))}function N(Z,X){if(Z===X)return 0;for(var re=Z.length,ie=X.length,le=0,se=Math.min(re,ie);le0?g-4:g;for(y=0;y>16&255,x[_++]=m>>8&255,x[_++]=255&m;return b===2&&(m=l[p.charCodeAt(y)]<<2|l[p.charCodeAt(y+1)]>>4,x[_++]=255&m),b===1&&(m=l[p.charCodeAt(y)]<<10|l[p.charCodeAt(y+1)]<<4|l[p.charCodeAt(y+2)]>>2,x[_++]=m>>8&255,x[_++]=255&m),x},a.fromByteArray=function(p){for(var m,y=p.length,v=y%3,g=[],b=16383,x=0,_=y-v;x<_;x+=b)g.push(h(p,x,x+b>_?_:x+b));return v===1?(m=p[y-1],g.push(n[m>>2]+n[m<<4&63]+"==")):v===2&&(m=(p[y-2]<<8)+p[y-1],g.push(n[m>>10]+n[m>>4&63]+n[m<<2&63]+"=")),g.join("")};for(var n=[],l=[],f=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0;u<64;++u)n[u]=s[u],l[s.charCodeAt(u)]=u;function d(p){var m=p.length;if(m%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=p.indexOf("=");return y===-1&&(y=m),[y,y===m?0:4-y%4]}function h(p,m,y){for(var v,g,b=[],x=m;x>18&63]+n[g>>12&63]+n[g>>6&63]+n[63&g]);return b.join("")}l[45]=62,l[95]=63},6614:function(o,a,n){var l=n(68318),f=n(68222),s=f(l("String.prototype.indexOf"));o.exports=function(u,d){var h=l(u,!!d);return typeof h=="function"&&s(u,".prototype.")>-1?f(h):h}},68222:function(o,a,n){var l=n(77575),f=n(68318),s=f("%Function.prototype.apply%"),u=f("%Function.prototype.call%"),d=f("%Reflect.apply%",!0)||l.call(u,s),h=f("%Object.getOwnPropertyDescriptor%",!0),p=f("%Object.defineProperty%",!0),m=f("%Math.max%");if(p)try{p({},"a",{value:1})}catch{p=null}o.exports=function(v){var g=d(l,u,arguments);return h&&p&&h(g,"length").configurable&&p(g,"length",{value:1+m(0,v.length-(arguments.length-1))}),g};var y=function(){return d(l,s,arguments)};p?p(o.exports,"apply",{value:y}):o.exports.apply=y},60721:function(o,a,n){function l(_,w){if((k=(_=w?_.toExponential(w-1):_.toExponential()).indexOf("e"))<0)return null;var k,T=_.slice(0,k);return[T.length>1?T[0]+T.slice(2):T,+_.slice(k+1)]}n.d(a,{WU:function(){return v},FF:function(){return x}});var f,s=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function u(_){if(!(w=s.exec(_)))throw new Error("invalid format: "+_);var w;return new d({fill:w[1],align:w[2],sign:w[3],symbol:w[4],zero:w[5],width:w[6],comma:w[7],precision:w[8]&&w[8].slice(1),trim:w[9],type:w[10]})}function d(_){this.fill=_.fill===void 0?" ":_.fill+"",this.align=_.align===void 0?">":_.align+"",this.sign=_.sign===void 0?"-":_.sign+"",this.symbol=_.symbol===void 0?"":_.symbol+"",this.zero=!!_.zero,this.width=_.width===void 0?void 0:+_.width,this.comma=!!_.comma,this.precision=_.precision===void 0?void 0:+_.precision,this.trim=!!_.trim,this.type=_.type===void 0?"":_.type+""}function h(_,w){var k=l(_,w);if(!k)return _+"";var T=k[0],M=k[1];return M<0?"0."+new Array(-M).join("0")+T:T.length>M+1?T.slice(0,M+1)+"."+T.slice(M+1):T+new Array(M-T.length+2).join("0")}u.prototype=d.prototype,d.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,0|this.width))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var p={"%":function(_,w){return(100*_).toFixed(w)},b:function(_){return Math.round(_).toString(2)},c:function(_){return _+""},d:function(_){return Math.abs(_=Math.round(_))>=1e21?_.toLocaleString("en").replace(/,/g,""):_.toString(10)},e:function(_,w){return _.toExponential(w)},f:function(_,w){return _.toFixed(w)},g:function(_,w){return _.toPrecision(w)},o:function(_){return Math.round(_).toString(8)},p:function(_,w){return h(100*_,w)},r:h,s:function(_,w){var k=l(_,w);if(!k)return _+"";var T=k[0],M=k[1],S=M-(f=3*Math.max(-8,Math.min(8,Math.floor(M/3))))+1,C=T.length;return S===C?T:S>C?T+new Array(S-C+1).join("0"):S>0?T.slice(0,S)+"."+T.slice(S):"0."+new Array(1-S).join("0")+l(_,Math.max(0,w+S-1))[0]},X:function(_){return Math.round(_).toString(16).toUpperCase()},x:function(_){return Math.round(_).toString(16)}};function m(_){return _}var y,v,g=Array.prototype.map,b=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function x(_){var w,k,T=_.grouping===void 0||_.thousands===void 0?m:(w=g.call(_.grouping,Number),k=_.thousands+"",function(A,z){for(var B=A.length,$=[],j=0,N=w[0],E=0;B>0&&N>0&&(E+N+1>z&&(N=Math.max(1,z-E)),$.push(A.substring(B-=N,B+N)),!((E+=N+1)>z));)N=w[j=(j+1)%w.length];return $.reverse().join(k)}),M=_.currency===void 0?"":_.currency[0]+"",S=_.currency===void 0?"":_.currency[1]+"",C=_.decimal===void 0?".":_.decimal+"",P=_.numerals===void 0?m:function(A){return function(z){return z.replace(/[0-9]/g,function(B){return A[+B]})}}(g.call(_.numerals,String)),D=_.percent===void 0?"%":_.percent+"",O=_.minus===void 0?"-":_.minus+"",R=_.nan===void 0?"NaN":_.nan+"";function F(A){var z=(A=u(A)).fill,B=A.align,$=A.sign,j=A.symbol,N=A.zero,E=A.width,W=A.comma,G=A.precision,L=A.trim,q=A.type;q==="n"?(W=!0,q="g"):p[q]||(G===void 0&&(G=12),L=!0,q="g"),(N||z==="0"&&B==="=")&&(N=!0,z="0",B="=");var H=j==="$"?M:j==="#"&&/[boxX]/.test(q)?"0"+q.toLowerCase():"",V=j==="$"?S:/[%p]/.test(q)?D:"",te=p[q],ee=/[defgprs%]/.test(q);function U(Q){var Y,Z,X,re=H,ie=V;if(q==="c")ie=te(Q)+ie,Q="";else{var le=(Q=+Q)<0||1/Q<0;if(Q=isNaN(Q)?R:te(Math.abs(Q),G),L&&(Q=function(Te){e:for(var Se,Oe=Te.length,Me=1,ce=-1;Me0&&(ce=0)}return ce>0?Te.slice(0,ce)+Te.slice(Se+1):Te}(Q)),le&&+Q==0&&$!=="+"&&(le=!1),re=(le?$==="("?$:O:$==="-"||$==="("?"":$)+re,ie=(q==="s"?b[8+f/3]:"")+ie+(le&&$==="("?")":""),ee){for(Y=-1,Z=Q.length;++Y(X=Q.charCodeAt(Y))||X>57){ie=(X===46?C+Q.slice(Y+1):Q.slice(Y))+ie,Q=Q.slice(0,Y);break}}}W&&!N&&(Q=T(Q,1/0));var se=re.length+Q.length+ie.length,pe=se>1)+re+Q+ie+pe.slice(se);break;default:Q=pe+re+Q+ie}return P(Q)}return G=G===void 0?6:/[gprs]/.test(q)?Math.max(1,Math.min(21,G)):Math.max(0,Math.min(20,G)),U.toString=function(){return A+""},U}return{format:F,formatPrefix:function(A,z){var B,$=F(((A=u(A)).type="f",A)),j=3*Math.max(-8,Math.min(8,Math.floor((B=z,((B=l(Math.abs(B)))?B[1]:NaN)/3)))),N=Math.pow(10,-j),E=b[8+j/3];return function(W){return $(N*W)+E}}}}y=x({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),v=y.format,y.formatPrefix},84096:function(o,a,n){n.d(a,{i$:function(){return b},Dq:function(){return v},g0:function(){return x}});var l=n(58176),f=n(48480),s=n(59879),u=n(82301),d=n(34823),h=n(79791);function p(ze){if(0<=ze.y&&ze.y<100){var Ne=new Date(-1,ze.m,ze.d,ze.H,ze.M,ze.S,ze.L);return Ne.setFullYear(ze.y),Ne}return new Date(ze.y,ze.m,ze.d,ze.H,ze.M,ze.S,ze.L)}function m(ze){if(0<=ze.y&&ze.y<100){var Ne=new Date(Date.UTC(-1,ze.m,ze.d,ze.H,ze.M,ze.S,ze.L));return Ne.setUTCFullYear(ze.y),Ne}return new Date(Date.UTC(ze.y,ze.m,ze.d,ze.H,ze.M,ze.S,ze.L))}function y(ze,Ne,Qe){return{y:ze,m:Ne,d:Qe,H:0,M:0,S:0,L:0}}function v(ze){var Ne=ze.dateTime,Qe=ze.date,it=ze.time,kt=ze.periods,Je=ze.days,ut=ze.shortDays,pt=ze.months,It=ze.shortMonths,Mt=C(kt),zt=P(kt),wt=C(Je),ve=P(Je),_e=C(ut),Ve=P(ut),We=C(pt),Ze=P(pt),Ge=C(It),Ke=P(It),nt={a:function(St){return ut[St.getDay()]},A:function(St){return Je[St.getDay()]},b:function(St){return It[St.getMonth()]},B:function(St){return pt[St.getMonth()]},c:null,d:Q,e:Q,f:ie,H:Y,I:Z,j:X,L:re,m:le,M:se,p:function(St){return kt[+(St.getHours()>=12)]},q:function(St){return 1+~~(St.getMonth()/3)},Q:ct,s:bt,S:pe,u:Te,U:Se,V:Oe,w:Me,W:ce,x:null,X:null,y:ye,Y:J,Z:ne,"%":lt},st={a:function(St){return ut[St.getUTCDay()]},A:function(St){return Je[St.getUTCDay()]},b:function(St){return It[St.getUTCMonth()]},B:function(St){return pt[St.getUTCMonth()]},c:null,d:de,e:de,f:we,H:xe,I:ue,j:ge,L:be,m:ke,M:Ae,p:function(St){return kt[+(St.getUTCHours()>=12)]},q:function(St){return 1+~~(St.getUTCMonth()/3)},Q:ct,s:bt,S:Ee,u:De,U:Re,V:Ie,w:Be,W:Ue,x:null,X:null,y:qe,Y:Ye,Z:at,"%":lt},mt={a:function(St,Nt,Dt){var gt=_e.exec(Nt.slice(Dt));return gt?(St.w=Ve[gt[0].toLowerCase()],Dt+gt[0].length):-1},A:function(St,Nt,Dt){var gt=wt.exec(Nt.slice(Dt));return gt?(St.w=ve[gt[0].toLowerCase()],Dt+gt[0].length):-1},b:function(St,Nt,Dt){var gt=Ge.exec(Nt.slice(Dt));return gt?(St.m=Ke[gt[0].toLowerCase()],Dt+gt[0].length):-1},B:function(St,Nt,Dt){var gt=We.exec(Nt.slice(Dt));return gt?(St.m=Ze[gt[0].toLowerCase()],Dt+gt[0].length):-1},c:function(St,Nt,Dt){return Vt(St,Ne,Nt,Dt)},d:E,e:E,f:V,H:G,I:G,j:W,L:H,m:N,M:L,p:function(St,Nt,Dt){var gt=Mt.exec(Nt.slice(Dt));return gt?(St.p=zt[gt[0].toLowerCase()],Dt+gt[0].length):-1},q:j,Q:ee,s:U,S:q,u:O,U:R,V:F,w:D,W:A,x:function(St,Nt,Dt){return Vt(St,Qe,Nt,Dt)},X:function(St,Nt,Dt){return Vt(St,it,Nt,Dt)},y:B,Y:z,Z:$,"%":te};function tt(St,Nt){return function(Dt){var gt,ht,yt,qt=[],Et=-1,jt=0,Tt=St.length;for(Dt instanceof Date||(Dt=new Date(+Dt));++Et53)return null;"w"in yt||(yt.w=1),"Z"in yt?(ht=(gt=m(y(yt.y,0,1))).getUTCDay(),gt=ht>4||ht===0?l.l6.ceil(gt):(0,l.l6)(gt),gt=f.Z.offset(gt,7*(yt.V-1)),yt.y=gt.getUTCFullYear(),yt.m=gt.getUTCMonth(),yt.d=gt.getUTCDate()+(yt.w+6)%7):(ht=(gt=p(y(yt.y,0,1))).getDay(),gt=ht>4||ht===0?s.wA.ceil(gt):(0,s.wA)(gt),gt=u.Z.offset(gt,7*(yt.V-1)),yt.y=gt.getFullYear(),yt.m=gt.getMonth(),yt.d=gt.getDate()+(yt.w+6)%7)}else("W"in yt||"U"in yt)&&("w"in yt||(yt.w="u"in yt?yt.u%7:"W"in yt?1:0),ht="Z"in yt?m(y(yt.y,0,1)).getUTCDay():p(y(yt.y,0,1)).getDay(),yt.m=0,yt.d="W"in yt?(yt.w+6)%7+7*yt.W-(ht+5)%7:yt.w+7*yt.U-(ht+6)%7);return"Z"in yt?(yt.H+=yt.Z/100|0,yt.M+=yt.Z%100,m(yt)):p(yt)}}function Vt(St,Nt,Dt,gt){for(var ht,yt,qt=0,Et=Nt.length,jt=Dt.length;qt=jt)return-1;if((ht=Nt.charCodeAt(qt++))===37){if(ht=Nt.charAt(qt++),!(yt=mt[ht in _?Nt.charAt(qt++):ht])||(gt=yt(St,Dt,gt))<0)return-1}else if(ht!=Dt.charCodeAt(gt++))return-1}return gt}return nt.x=tt(Qe,nt),nt.X=tt(it,nt),nt.c=tt(Ne,nt),st.x=tt(Qe,st),st.X=tt(it,st),st.c=tt(Ne,st),{format:function(St){var Nt=tt(St+="",nt);return Nt.toString=function(){return St},Nt},parse:function(St){var Nt=Ft(St+="",!1);return Nt.toString=function(){return St},Nt},utcFormat:function(St){var Nt=tt(St+="",st);return Nt.toString=function(){return St},Nt},utcParse:function(St){var Nt=Ft(St+="",!0);return Nt.toString=function(){return St},Nt}}}var g,b,x,_={"-":"",_:" ",0:"0"},w=/^\s*\d+/,k=/^%/,T=/[\\^$*+?|[\]().{}]/g;function M(ze,Ne,Qe){var it=ze<0?"-":"",kt=(it?-ze:ze)+"",Je=kt.length;return it+(Je68?1900:2e3),Qe+it[0].length):-1}function $(ze,Ne,Qe){var it=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Ne.slice(Qe,Qe+6));return it?(ze.Z=it[1]?0:-(it[2]+(it[3]||"00")),Qe+it[0].length):-1}function j(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+1));return it?(ze.q=3*it[0]-3,Qe+it[0].length):-1}function N(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+2));return it?(ze.m=it[0]-1,Qe+it[0].length):-1}function E(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+2));return it?(ze.d=+it[0],Qe+it[0].length):-1}function W(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+3));return it?(ze.m=0,ze.d=+it[0],Qe+it[0].length):-1}function G(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+2));return it?(ze.H=+it[0],Qe+it[0].length):-1}function L(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+2));return it?(ze.M=+it[0],Qe+it[0].length):-1}function q(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+2));return it?(ze.S=+it[0],Qe+it[0].length):-1}function H(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+3));return it?(ze.L=+it[0],Qe+it[0].length):-1}function V(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+6));return it?(ze.L=Math.floor(it[0]/1e3),Qe+it[0].length):-1}function te(ze,Ne,Qe){var it=k.exec(Ne.slice(Qe,Qe+1));return it?Qe+it[0].length:-1}function ee(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe));return it?(ze.Q=+it[0],Qe+it[0].length):-1}function U(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe));return it?(ze.s=+it[0],Qe+it[0].length):-1}function Q(ze,Ne){return M(ze.getDate(),Ne,2)}function Y(ze,Ne){return M(ze.getHours(),Ne,2)}function Z(ze,Ne){return M(ze.getHours()%12||12,Ne,2)}function X(ze,Ne){return M(1+u.Z.count((0,d.Z)(ze),ze),Ne,3)}function re(ze,Ne){return M(ze.getMilliseconds(),Ne,3)}function ie(ze,Ne){return re(ze,Ne)+"000"}function le(ze,Ne){return M(ze.getMonth()+1,Ne,2)}function se(ze,Ne){return M(ze.getMinutes(),Ne,2)}function pe(ze,Ne){return M(ze.getSeconds(),Ne,2)}function Te(ze){var Ne=ze.getDay();return Ne===0?7:Ne}function Se(ze,Ne){return M(s.OM.count((0,d.Z)(ze)-1,ze),Ne,2)}function Oe(ze,Ne){var Qe=ze.getDay();return ze=Qe>=4||Qe===0?(0,s.bL)(ze):s.bL.ceil(ze),M(s.bL.count((0,d.Z)(ze),ze)+((0,d.Z)(ze).getDay()===4),Ne,2)}function Me(ze){return ze.getDay()}function ce(ze,Ne){return M(s.wA.count((0,d.Z)(ze)-1,ze),Ne,2)}function ye(ze,Ne){return M(ze.getFullYear()%100,Ne,2)}function J(ze,Ne){return M(ze.getFullYear()%1e4,Ne,4)}function ne(ze){var Ne=ze.getTimezoneOffset();return(Ne>0?"-":(Ne*=-1,"+"))+M(Ne/60|0,"0",2)+M(Ne%60,"0",2)}function de(ze,Ne){return M(ze.getUTCDate(),Ne,2)}function xe(ze,Ne){return M(ze.getUTCHours(),Ne,2)}function ue(ze,Ne){return M(ze.getUTCHours()%12||12,Ne,2)}function ge(ze,Ne){return M(1+f.Z.count((0,h.Z)(ze),ze),Ne,3)}function be(ze,Ne){return M(ze.getUTCMilliseconds(),Ne,3)}function we(ze,Ne){return be(ze,Ne)+"000"}function ke(ze,Ne){return M(ze.getUTCMonth()+1,Ne,2)}function Ae(ze,Ne){return M(ze.getUTCMinutes(),Ne,2)}function Ee(ze,Ne){return M(ze.getUTCSeconds(),Ne,2)}function De(ze){var Ne=ze.getUTCDay();return Ne===0?7:Ne}function Re(ze,Ne){return M(l.Ox.count((0,h.Z)(ze)-1,ze),Ne,2)}function Ie(ze,Ne){var Qe=ze.getUTCDay();return ze=Qe>=4||Qe===0?(0,l.hB)(ze):l.hB.ceil(ze),M(l.hB.count((0,h.Z)(ze),ze)+((0,h.Z)(ze).getUTCDay()===4),Ne,2)}function Be(ze){return ze.getUTCDay()}function Ue(ze,Ne){return M(l.l6.count((0,h.Z)(ze)-1,ze),Ne,2)}function qe(ze,Ne){return M(ze.getUTCFullYear()%100,Ne,2)}function Ye(ze,Ne){return M(ze.getUTCFullYear()%1e4,Ne,4)}function at(){return"+0000"}function lt(){return"%"}function ct(ze){return+ze}function bt(ze){return Math.floor(+ze/1e3)}g=v({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"]}),b=g.format,g.parse,x=g.utcFormat,g.utcParse},82301:function(o,a,n){n.d(a,{a:function(){return u}});var l=n(30052),f=n(54263),s=(0,l.Z)(function(d){d.setHours(0,0,0,0)},function(d,h){d.setDate(d.getDate()+h)},function(d,h){return(h-d-(h.getTimezoneOffset()-d.getTimezoneOffset())*f.yB)/f.UD},function(d){return d.getDate()-1});a.Z=s;var u=s.range},54263:function(o,a,n){n.d(a,{UD:function(){return u},Y2:function(){return s},Ym:function(){return l},iM:function(){return d},yB:function(){return f}});var l=1e3,f=6e4,s=36e5,u=864e5,d=6048e5},81041:function(o,a,n){n.r(a),n.d(a,{timeDay:function(){return w.Z},timeDays:function(){return w.a},timeFriday:function(){return k.mC},timeFridays:function(){return k.b$},timeHour:function(){return x},timeHours:function(){return _},timeInterval:function(){return l.Z},timeMillisecond:function(){return s},timeMilliseconds:function(){return u},timeMinute:function(){return v},timeMinutes:function(){return g},timeMonday:function(){return k.wA},timeMondays:function(){return k.bJ},timeMonth:function(){return M},timeMonths:function(){return S},timeSaturday:function(){return k.EY},timeSaturdays:function(){return k.Ff},timeSecond:function(){return p},timeSeconds:function(){return m},timeSunday:function(){return k.OM},timeSundays:function(){return k.vm},timeThursday:function(){return k.bL},timeThursdays:function(){return k.$t},timeTuesday:function(){return k.sy},timeTuesdays:function(){return k.aU},timeWednesday:function(){return k.zg},timeWednesdays:function(){return k.Ld},timeWeek:function(){return k.OM},timeWeeks:function(){return k.vm},timeYear:function(){return C.Z},timeYears:function(){return C.g},utcDay:function(){return z.Z},utcDays:function(){return z.y},utcFriday:function(){return B.QQ},utcFridays:function(){return B.fz},utcHour:function(){return F},utcHours:function(){return A},utcMillisecond:function(){return s},utcMilliseconds:function(){return u},utcMinute:function(){return D},utcMinutes:function(){return O},utcMonday:function(){return B.l6},utcMondays:function(){return B.$3},utcMonth:function(){return j},utcMonths:function(){return N},utcSaturday:function(){return B.g4},utcSaturdays:function(){return B.Q_},utcSecond:function(){return p},utcSeconds:function(){return m},utcSunday:function(){return B.Ox},utcSundays:function(){return B.SU},utcThursday:function(){return B.hB},utcThursdays:function(){return B.xj},utcTuesday:function(){return B.J1},utcTuesdays:function(){return B.DK},utcWednesday:function(){return B.b3},utcWednesdays:function(){return B.uy},utcWeek:function(){return B.Ox},utcWeeks:function(){return B.SU},utcYear:function(){return E.Z},utcYears:function(){return E.D}});var l=n(30052),f=(0,l.Z)(function(){},function(W,G){W.setTime(+W+G)},function(W,G){return G-W});f.every=function(W){return W=Math.floor(W),isFinite(W)&&W>0?W>1?(0,l.Z)(function(G){G.setTime(Math.floor(G/W)*W)},function(G,L){G.setTime(+G+L*W)},function(G,L){return(L-G)/W}):f:null};var s=f,u=f.range,d=n(54263),h=(0,l.Z)(function(W){W.setTime(W-W.getMilliseconds())},function(W,G){W.setTime(+W+G*d.Ym)},function(W,G){return(G-W)/d.Ym},function(W){return W.getUTCSeconds()}),p=h,m=h.range,y=(0,l.Z)(function(W){W.setTime(W-W.getMilliseconds()-W.getSeconds()*d.Ym)},function(W,G){W.setTime(+W+G*d.yB)},function(W,G){return(G-W)/d.yB},function(W){return W.getMinutes()}),v=y,g=y.range,b=(0,l.Z)(function(W){W.setTime(W-W.getMilliseconds()-W.getSeconds()*d.Ym-W.getMinutes()*d.yB)},function(W,G){W.setTime(+W+G*d.Y2)},function(W,G){return(G-W)/d.Y2},function(W){return W.getHours()}),x=b,_=b.range,w=n(82301),k=n(59879),T=(0,l.Z)(function(W){W.setDate(1),W.setHours(0,0,0,0)},function(W,G){W.setMonth(W.getMonth()+G)},function(W,G){return G.getMonth()-W.getMonth()+12*(G.getFullYear()-W.getFullYear())},function(W){return W.getMonth()}),M=T,S=T.range,C=n(34823),P=(0,l.Z)(function(W){W.setUTCSeconds(0,0)},function(W,G){W.setTime(+W+G*d.yB)},function(W,G){return(G-W)/d.yB},function(W){return W.getUTCMinutes()}),D=P,O=P.range,R=(0,l.Z)(function(W){W.setUTCMinutes(0,0,0)},function(W,G){W.setTime(+W+G*d.Y2)},function(W,G){return(G-W)/d.Y2},function(W){return W.getUTCHours()}),F=R,A=R.range,z=n(48480),B=n(58176),$=(0,l.Z)(function(W){W.setUTCDate(1),W.setUTCHours(0,0,0,0)},function(W,G){W.setUTCMonth(W.getUTCMonth()+G)},function(W,G){return G.getUTCMonth()-W.getUTCMonth()+12*(G.getUTCFullYear()-W.getUTCFullYear())},function(W){return W.getUTCMonth()}),j=$,N=$.range,E=n(79791)},30052:function(o,a,n){n.d(a,{Z:function(){return s}});var l=new Date,f=new Date;function s(u,d,h,p){function m(y){return u(y=arguments.length===0?new Date:new Date(+y)),y}return m.floor=function(y){return u(y=new Date(+y)),y},m.ceil=function(y){return u(y=new Date(y-1)),d(y,1),u(y),y},m.round=function(y){var v=m(y),g=m.ceil(y);return y-v0))return x;do x.push(b=new Date(+y)),d(y,g),u(y);while(b=v)for(;u(v),!y(v);)v.setTime(v-1)},function(v,g){if(v>=v)if(g<0)for(;++g<=0;)for(;d(v,-1),!y(v););else for(;--g>=0;)for(;d(v,1),!y(v););})},h&&(m.count=function(y,v){return l.setTime(+y),f.setTime(+v),u(l),u(f),Math.floor(h(l,f))},m.every=function(y){return y=Math.floor(y),isFinite(y)&&y>0?y>1?m.filter(p?function(v){return p(v)%y==0}:function(v){return m.count(0,v)%y==0}):m:null}),m}},48480:function(o,a,n){n.d(a,{y:function(){return u}});var l=n(30052),f=n(54263),s=(0,l.Z)(function(d){d.setUTCHours(0,0,0,0)},function(d,h){d.setUTCDate(d.getUTCDate()+h)},function(d,h){return(h-d)/f.UD},function(d){return d.getUTCDate()-1});a.Z=s;var u=s.range},58176:function(o,a,n){n.d(a,{$3:function(){return b},DK:function(){return x},J1:function(){return h},Ox:function(){return u},QQ:function(){return y},Q_:function(){return T},SU:function(){return g},b3:function(){return p},fz:function(){return k},g4:function(){return v},hB:function(){return m},l6:function(){return d},uy:function(){return _},xj:function(){return w}});var l=n(30052),f=n(54263);function s(M){return(0,l.Z)(function(S){S.setUTCDate(S.getUTCDate()-(S.getUTCDay()+7-M)%7),S.setUTCHours(0,0,0,0)},function(S,C){S.setUTCDate(S.getUTCDate()+7*C)},function(S,C){return(C-S)/f.iM})}var u=s(0),d=s(1),h=s(2),p=s(3),m=s(4),y=s(5),v=s(6),g=u.range,b=d.range,x=h.range,_=p.range,w=m.range,k=y.range,T=v.range},79791:function(o,a,n){n.d(a,{D:function(){return s}});var l=n(30052),f=(0,l.Z)(function(u){u.setUTCMonth(0,1),u.setUTCHours(0,0,0,0)},function(u,d){u.setUTCFullYear(u.getUTCFullYear()+d)},function(u,d){return d.getUTCFullYear()-u.getUTCFullYear()},function(u){return u.getUTCFullYear()});f.every=function(u){return isFinite(u=Math.floor(u))&&u>0?(0,l.Z)(function(d){d.setUTCFullYear(Math.floor(d.getUTCFullYear()/u)*u),d.setUTCMonth(0,1),d.setUTCHours(0,0,0,0)},function(d,h){d.setUTCFullYear(d.getUTCFullYear()+h*u)}):null},a.Z=f;var s=f.range},59879:function(o,a,n){n.d(a,{$t:function(){return w},EY:function(){return v},Ff:function(){return T},Ld:function(){return _},OM:function(){return u},aU:function(){return x},b$:function(){return k},bJ:function(){return b},bL:function(){return m},mC:function(){return y},sy:function(){return h},vm:function(){return g},wA:function(){return d},zg:function(){return p}});var l=n(30052),f=n(54263);function s(M){return(0,l.Z)(function(S){S.setDate(S.getDate()-(S.getDay()+7-M)%7),S.setHours(0,0,0,0)},function(S,C){S.setDate(S.getDate()+7*C)},function(S,C){return(C-S-(C.getTimezoneOffset()-S.getTimezoneOffset())*f.yB)/f.iM})}var u=s(0),d=s(1),h=s(2),p=s(3),m=s(4),y=s(5),v=s(6),g=u.range,b=d.range,x=h.range,_=p.range,w=m.range,k=y.range,T=v.range},34823:function(o,a,n){n.d(a,{g:function(){return s}});var l=n(30052),f=(0,l.Z)(function(u){u.setMonth(0,1),u.setHours(0,0,0,0)},function(u,d){u.setFullYear(u.getFullYear()+d)},function(u,d){return d.getFullYear()-u.getFullYear()},function(u){return u.getFullYear()});f.every=function(u){return isFinite(u=Math.floor(u))&&u>0?(0,l.Z)(function(d){d.setFullYear(Math.floor(d.getFullYear()/u)*u),d.setMonth(0,1),d.setHours(0,0,0,0)},function(d,h){d.setFullYear(d.getFullYear()+h*u)}):null},a.Z=f;var s=f.range},17045:function(o,a,n){var l=n(8709),f=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",s=Object.prototype.toString,u=Array.prototype.concat,d=Object.defineProperty,h=n(55622)(),p=d&&h,m=function(v,g,b,x){if(g in v){if(x===!0){if(v[g]===b)return}else if(typeof(_=x)!="function"||s.call(_)!=="[object Function]"||!x())return}var _;p?d(v,g,{configurable:!0,enumerable:!1,value:b,writable:!0}):v[g]=b},y=function(v,g){var b=arguments.length>2?arguments[2]:{},x=l(g);f&&(x=u.call(x,Object.getOwnPropertySymbols(g)));for(var _=0;_0&&C.length>M&&!C.warned){C.warned=!0;var D=new Error("Possible EventEmitter memory leak detected. "+C.length+" "+String(w)+" listeners added. Use emitter.setMaxListeners() to increase limit");D.name="MaxListenersExceededWarning",D.emitter=_,D.type=w,D.count=C.length,P=D,console&&console.warn&&console.warn(P)}return _}function m(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function y(_,w,k){var T={fired:!1,wrapFn:void 0,target:_,type:w,listener:k},M=m.bind(T);return M.listener=k,T.wrapFn=M,M}function v(_,w,k){var T=_._events;if(T===void 0)return[];var M=T[w];return M===void 0?[]:typeof M=="function"?k?[M.listener||M]:[M]:k?function(S){for(var C=new Array(S.length),P=0;P0&&(S=w[0]),S instanceof Error)throw S;var C=new Error("Unhandled error."+(S?" ("+S.message+")":""));throw C.context=S,C}var P=M[_];if(P===void 0)return!1;if(typeof P=="function")l(P,this,w);else{var D=P.length,O=b(P,D);for(k=0;k=0;S--)if(k[S]===w||k[S].listener===w){C=k[S].listener,M=S;break}if(M<0)return this;M===0?k.shift():function(P,D){for(;D+1=0;T--)this.removeListener(_,w[T]);return this},s.prototype.listeners=function(_){return v(this,_,!0)},s.prototype.rawListeners=function(_){return v(this,_,!1)},s.listenerCount=function(_,w){return typeof _.listenerCount=="function"?_.listenerCount(w):g.call(_,w)},s.prototype.listenerCount=g,s.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]}},92770:function(o,a,n){var l=n(18546);o.exports=function(f){var s=typeof f;if(s==="string"){var u=f;if((f=+f)==0&&l(u))return!1}else if(s!=="number")return!1;return f-f<1}},31353:function(o,a,n){var l=n(85395),f=Object.prototype.toString,s=Object.prototype.hasOwnProperty;o.exports=function(u,d,h){if(!l(d))throw new TypeError("iterator must be a function");var p;arguments.length>=3&&(p=h),f.call(u)==="[object Array]"?function(m,y,v){for(var g=0,b=m.length;g"u"?l:v(Uint8Array),x={"%AggregateError%":typeof AggregateError>"u"?l:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?l:ArrayBuffer,"%ArrayIteratorPrototype%":y?v([][Symbol.iterator]()):l,"%AsyncFromSyncIteratorPrototype%":l,"%AsyncFunction%":g,"%AsyncGenerator%":g,"%AsyncGeneratorFunction%":g,"%AsyncIteratorPrototype%":g,"%Atomics%":typeof Atomics>"u"?l:Atomics,"%BigInt%":typeof BigInt>"u"?l:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?l:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?l:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?l:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?l:Float32Array,"%Float64Array%":typeof Float64Array>"u"?l:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?l:FinalizationRegistry,"%Function%":s,"%GeneratorFunction%":g,"%Int8Array%":typeof Int8Array>"u"?l:Int8Array,"%Int16Array%":typeof Int16Array>"u"?l:Int16Array,"%Int32Array%":typeof Int32Array>"u"?l:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y?v(v([][Symbol.iterator]())):l,"%JSON%":typeof JSON=="object"?JSON:l,"%Map%":typeof Map>"u"?l:Map,"%MapIteratorPrototype%":typeof Map<"u"&&y?v(new Map()[Symbol.iterator]()):l,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?l:Promise,"%Proxy%":typeof Proxy>"u"?l:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?l:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?l:Set,"%SetIteratorPrototype%":typeof Set<"u"&&y?v(new Set()[Symbol.iterator]()):l,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?l:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y?v(""[Symbol.iterator]()):l,"%Symbol%":y?Symbol:l,"%SyntaxError%":f,"%ThrowTypeError%":m,"%TypedArray%":b,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?l:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?l:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?l:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?l:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?l:WeakMap,"%WeakRef%":typeof WeakRef>"u"?l:WeakRef,"%WeakSet%":typeof WeakSet>"u"?l:WeakSet};try{null.error}catch(z){var _=v(v(z));x["%Error.prototype%"]=_}var w=function z(B){var $;if(B==="%AsyncFunction%")$=d("async function () {}");else if(B==="%GeneratorFunction%")$=d("function* () {}");else if(B==="%AsyncGeneratorFunction%")$=d("async function* () {}");else if(B==="%AsyncGenerator%"){var j=z("%AsyncGeneratorFunction%");j&&($=j.prototype)}else if(B==="%AsyncIteratorPrototype%"){var N=z("%AsyncGenerator%");N&&($=v(N.prototype))}return x[B]=$,$},k={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},T=n(77575),M=n(35065),S=T.call(Function.call,Array.prototype.concat),C=T.call(Function.apply,Array.prototype.splice),P=T.call(Function.call,String.prototype.replace),D=T.call(Function.call,String.prototype.slice),O=T.call(Function.call,RegExp.prototype.exec),R=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,F=/\\(\\)?/g,A=function(z,B){var $,j=z;if(M(k,j)&&(j="%"+($=k[j])[0]+"%"),M(x,j)){var N=x[j];if(N===g&&(N=w(j)),N===void 0&&!B)throw new u("intrinsic "+z+" exists, but is not available. Please file an issue!");return{alias:$,name:j,value:N}}throw new f("intrinsic "+z+" does not exist!")};o.exports=function(z,B){if(typeof z!="string"||z.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof B!="boolean")throw new u('"allowMissing" argument must be a boolean');if(O(/^%?[^%]*%?$/,z)===null)throw new f("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var $=function(Q){var Y=D(Q,0,1),Z=D(Q,-1);if(Y==="%"&&Z!=="%")throw new f("invalid intrinsic syntax, expected closing `%`");if(Z==="%"&&Y!=="%")throw new f("invalid intrinsic syntax, expected opening `%`");var X=[];return P(Q,R,function(re,ie,le,se){X[X.length]=le?P(se,F,"$1"):ie||re}),X}(z),j=$.length>0?$[0]:"",N=A("%"+j+"%",B),E=N.name,W=N.value,G=!1,L=N.alias;L&&(j=L[0],C($,S([0,1],L)));for(var q=1,H=!0;q<$.length;q+=1){var V=$[q],te=D(V,0,1),ee=D(V,-1);if((te==='"'||te==="'"||te==="`"||ee==='"'||ee==="'"||ee==="`")&&te!==ee)throw new f("property names with quotes must have matching quotes");if(V!=="constructor"&&H||(G=!0),M(x,E="%"+(j+="."+V)+"%"))W=x[E];else if(W!=null){if(!(V in W)){if(!B)throw new u("base intrinsic for "+z+" exists, but the property is not available.");return}if(h&&q+1>=$.length){var U=h(W,V);W=(H=!!U)&&"get"in U&&!("originalValue"in U.get)?U.get:W[V]}else H=M(W,V),W=W[V];H&&!G&&(x[E]=W)}}return W}},85400:function(o){o.exports=function(a,n){var l=n[0],f=n[1],s=n[2],u=n[3],d=n[4],h=n[5],p=n[6],m=n[7],y=n[8],v=n[9],g=n[10],b=n[11],x=n[12],_=n[13],w=n[14],k=n[15];return a[0]=h*(g*k-b*w)-v*(p*k-m*w)+_*(p*b-m*g),a[1]=-(f*(g*k-b*w)-v*(s*k-u*w)+_*(s*b-u*g)),a[2]=f*(p*k-m*w)-h*(s*k-u*w)+_*(s*m-u*p),a[3]=-(f*(p*b-m*g)-h*(s*b-u*g)+v*(s*m-u*p)),a[4]=-(d*(g*k-b*w)-y*(p*k-m*w)+x*(p*b-m*g)),a[5]=l*(g*k-b*w)-y*(s*k-u*w)+x*(s*b-u*g),a[6]=-(l*(p*k-m*w)-d*(s*k-u*w)+x*(s*m-u*p)),a[7]=l*(p*b-m*g)-d*(s*b-u*g)+y*(s*m-u*p),a[8]=d*(v*k-b*_)-y*(h*k-m*_)+x*(h*b-m*v),a[9]=-(l*(v*k-b*_)-y*(f*k-u*_)+x*(f*b-u*v)),a[10]=l*(h*k-m*_)-d*(f*k-u*_)+x*(f*m-u*h),a[11]=-(l*(h*b-m*v)-d*(f*b-u*v)+y*(f*m-u*h)),a[12]=-(d*(v*w-g*_)-y*(h*w-p*_)+x*(h*g-p*v)),a[13]=l*(v*w-g*_)-y*(f*w-s*_)+x*(f*g-s*v),a[14]=-(l*(h*w-p*_)-d*(f*w-s*_)+x*(f*p-s*h)),a[15]=l*(h*g-p*v)-d*(f*g-s*v)+y*(f*p-s*h),a}},42331:function(o){o.exports=function(a){var n=new Float32Array(16);return n[0]=a[0],n[1]=a[1],n[2]=a[2],n[3]=a[3],n[4]=a[4],n[5]=a[5],n[6]=a[6],n[7]=a[7],n[8]=a[8],n[9]=a[9],n[10]=a[10],n[11]=a[11],n[12]=a[12],n[13]=a[13],n[14]=a[14],n[15]=a[15],n}},31042:function(o){o.exports=function(a,n){return a[0]=n[0],a[1]=n[1],a[2]=n[2],a[3]=n[3],a[4]=n[4],a[5]=n[5],a[6]=n[6],a[7]=n[7],a[8]=n[8],a[9]=n[9],a[10]=n[10],a[11]=n[11],a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15],a}},11902:function(o){o.exports=function(){var a=new Float32Array(16);return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},89887:function(o){o.exports=function(a){var n=a[0],l=a[1],f=a[2],s=a[3],u=a[4],d=a[5],h=a[6],p=a[7],m=a[8],y=a[9],v=a[10],g=a[11],b=a[12],x=a[13],_=a[14],w=a[15];return(n*d-l*u)*(v*w-g*_)-(n*h-f*u)*(y*w-g*x)+(n*p-s*u)*(y*_-v*x)+(l*h-f*d)*(m*w-g*b)-(l*p-s*d)*(m*_-v*b)+(f*p-s*h)*(m*x-y*b)}},27812:function(o){o.exports=function(a,n){var l=n[0],f=n[1],s=n[2],u=n[3],d=l+l,h=f+f,p=s+s,m=l*d,y=f*d,v=f*h,g=s*d,b=s*h,x=s*p,_=u*d,w=u*h,k=u*p;return a[0]=1-v-x,a[1]=y+k,a[2]=g-w,a[3]=0,a[4]=y-k,a[5]=1-m-x,a[6]=b+_,a[7]=0,a[8]=g+w,a[9]=b-_,a[10]=1-m-v,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},34045:function(o){o.exports=function(a,n,l){var f,s,u,d=l[0],h=l[1],p=l[2],m=Math.sqrt(d*d+h*h+p*p);return Math.abs(m)<1e-6?null:(d*=m=1/m,h*=m,p*=m,f=Math.sin(n),u=1-(s=Math.cos(n)),a[0]=d*d*u+s,a[1]=h*d*u+p*f,a[2]=p*d*u-h*f,a[3]=0,a[4]=d*h*u-p*f,a[5]=h*h*u+s,a[6]=p*h*u+d*f,a[7]=0,a[8]=d*p*u+h*f,a[9]=h*p*u-d*f,a[10]=p*p*u+s,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a)}},45973:function(o){o.exports=function(a,n,l){var f=n[0],s=n[1],u=n[2],d=n[3],h=f+f,p=s+s,m=u+u,y=f*h,v=f*p,g=f*m,b=s*p,x=s*m,_=u*m,w=d*h,k=d*p,T=d*m;return a[0]=1-(b+_),a[1]=v+T,a[2]=g-k,a[3]=0,a[4]=v-T,a[5]=1-(y+_),a[6]=x+w,a[7]=0,a[8]=g+k,a[9]=x-w,a[10]=1-(y+b),a[11]=0,a[12]=l[0],a[13]=l[1],a[14]=l[2],a[15]=1,a}},81472:function(o){o.exports=function(a,n){return a[0]=n[0],a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=n[1],a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=n[2],a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},14669:function(o){o.exports=function(a,n){return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=n[0],a[13]=n[1],a[14]=n[2],a[15]=1,a}},75262:function(o){o.exports=function(a,n){var l=Math.sin(n),f=Math.cos(n);return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=f,a[6]=l,a[7]=0,a[8]=0,a[9]=-l,a[10]=f,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},331:function(o){o.exports=function(a,n){var l=Math.sin(n),f=Math.cos(n);return a[0]=f,a[1]=0,a[2]=-l,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=l,a[9]=0,a[10]=f,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},11049:function(o){o.exports=function(a,n){var l=Math.sin(n),f=Math.cos(n);return a[0]=f,a[1]=l,a[2]=0,a[3]=0,a[4]=-l,a[5]=f,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},75195:function(o){o.exports=function(a,n,l,f,s,u,d){var h=1/(l-n),p=1/(s-f),m=1/(u-d);return a[0]=2*u*h,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=2*u*p,a[6]=0,a[7]=0,a[8]=(l+n)*h,a[9]=(s+f)*p,a[10]=(d+u)*m,a[11]=-1,a[12]=0,a[13]=0,a[14]=d*u*2*m,a[15]=0,a}},71551:function(o){o.exports=function(a){return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},79576:function(o,a,n){o.exports={create:n(11902),clone:n(42331),copy:n(31042),identity:n(71551),transpose:n(88654),invert:n(95874),adjoint:n(85400),determinant:n(89887),multiply:n(91362),translate:n(31283),scale:n(10789),rotate:n(65074),rotateX:n(35545),rotateY:n(94918),rotateZ:n(15692),fromRotation:n(34045),fromRotationTranslation:n(45973),fromScaling:n(81472),fromTranslation:n(14669),fromXRotation:n(75262),fromYRotation:n(331),fromZRotation:n(11049),fromQuat:n(27812),frustum:n(75195),perspective:n(7864),perspectiveFromFieldOfView:n(35279),ortho:n(60378),lookAt:n(65551),str:n(6726)}},95874:function(o){o.exports=function(a,n){var l=n[0],f=n[1],s=n[2],u=n[3],d=n[4],h=n[5],p=n[6],m=n[7],y=n[8],v=n[9],g=n[10],b=n[11],x=n[12],_=n[13],w=n[14],k=n[15],T=l*h-f*d,M=l*p-s*d,S=l*m-u*d,C=f*p-s*h,P=f*m-u*h,D=s*m-u*p,O=y*_-v*x,R=y*w-g*x,F=y*k-b*x,A=v*w-g*_,z=v*k-b*_,B=g*k-b*w,$=T*B-M*z+S*A+C*F-P*R+D*O;return $?($=1/$,a[0]=(h*B-p*z+m*A)*$,a[1]=(s*z-f*B-u*A)*$,a[2]=(_*D-w*P+k*C)*$,a[3]=(g*P-v*D-b*C)*$,a[4]=(p*F-d*B-m*R)*$,a[5]=(l*B-s*F+u*R)*$,a[6]=(w*S-x*D-k*M)*$,a[7]=(y*D-g*S+b*M)*$,a[8]=(d*z-h*F+m*O)*$,a[9]=(f*F-l*z-u*O)*$,a[10]=(x*P-_*S+k*T)*$,a[11]=(v*S-y*P-b*T)*$,a[12]=(h*R-d*A-p*O)*$,a[13]=(l*A-f*R+s*O)*$,a[14]=(_*M-x*C-w*T)*$,a[15]=(y*C-v*M+g*T)*$,a):null}},65551:function(o,a,n){var l=n(71551);o.exports=function(f,s,u,d){var h,p,m,y,v,g,b,x,_,w,k=s[0],T=s[1],M=s[2],S=d[0],C=d[1],P=d[2],D=u[0],O=u[1],R=u[2];return Math.abs(k-D)<1e-6&&Math.abs(T-O)<1e-6&&Math.abs(M-R)<1e-6?l(f):(b=k-D,x=T-O,_=M-R,h=C*(_*=w=1/Math.sqrt(b*b+x*x+_*_))-P*(x*=w),p=P*(b*=w)-S*_,m=S*x-C*b,(w=Math.sqrt(h*h+p*p+m*m))?(h*=w=1/w,p*=w,m*=w):(h=0,p=0,m=0),y=x*m-_*p,v=_*h-b*m,g=b*p-x*h,(w=Math.sqrt(y*y+v*v+g*g))?(y*=w=1/w,v*=w,g*=w):(y=0,v=0,g=0),f[0]=h,f[1]=y,f[2]=b,f[3]=0,f[4]=p,f[5]=v,f[6]=x,f[7]=0,f[8]=m,f[9]=g,f[10]=_,f[11]=0,f[12]=-(h*k+p*T+m*M),f[13]=-(y*k+v*T+g*M),f[14]=-(b*k+x*T+_*M),f[15]=1,f)}},91362:function(o){o.exports=function(a,n,l){var f=n[0],s=n[1],u=n[2],d=n[3],h=n[4],p=n[5],m=n[6],y=n[7],v=n[8],g=n[9],b=n[10],x=n[11],_=n[12],w=n[13],k=n[14],T=n[15],M=l[0],S=l[1],C=l[2],P=l[3];return a[0]=M*f+S*h+C*v+P*_,a[1]=M*s+S*p+C*g+P*w,a[2]=M*u+S*m+C*b+P*k,a[3]=M*d+S*y+C*x+P*T,M=l[4],S=l[5],C=l[6],P=l[7],a[4]=M*f+S*h+C*v+P*_,a[5]=M*s+S*p+C*g+P*w,a[6]=M*u+S*m+C*b+P*k,a[7]=M*d+S*y+C*x+P*T,M=l[8],S=l[9],C=l[10],P=l[11],a[8]=M*f+S*h+C*v+P*_,a[9]=M*s+S*p+C*g+P*w,a[10]=M*u+S*m+C*b+P*k,a[11]=M*d+S*y+C*x+P*T,M=l[12],S=l[13],C=l[14],P=l[15],a[12]=M*f+S*h+C*v+P*_,a[13]=M*s+S*p+C*g+P*w,a[14]=M*u+S*m+C*b+P*k,a[15]=M*d+S*y+C*x+P*T,a}},60378:function(o){o.exports=function(a,n,l,f,s,u,d){var h=1/(n-l),p=1/(f-s),m=1/(u-d);return a[0]=-2*h,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=-2*p,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=2*m,a[11]=0,a[12]=(n+l)*h,a[13]=(s+f)*p,a[14]=(d+u)*m,a[15]=1,a}},7864:function(o){o.exports=function(a,n,l,f,s){var u=1/Math.tan(n/2),d=1/(f-s);return a[0]=u/l,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=u,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=(s+f)*d,a[11]=-1,a[12]=0,a[13]=0,a[14]=2*s*f*d,a[15]=0,a}},35279:function(o){o.exports=function(a,n,l,f){var s=Math.tan(n.upDegrees*Math.PI/180),u=Math.tan(n.downDegrees*Math.PI/180),d=Math.tan(n.leftDegrees*Math.PI/180),h=Math.tan(n.rightDegrees*Math.PI/180),p=2/(d+h),m=2/(s+u);return a[0]=p,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=m,a[6]=0,a[7]=0,a[8]=-(d-h)*p*.5,a[9]=(s-u)*m*.5,a[10]=f/(l-f),a[11]=-1,a[12]=0,a[13]=0,a[14]=f*l/(l-f),a[15]=0,a}},65074:function(o){o.exports=function(a,n,l,f){var s,u,d,h,p,m,y,v,g,b,x,_,w,k,T,M,S,C,P,D,O,R,F,A,z=f[0],B=f[1],$=f[2],j=Math.sqrt(z*z+B*B+$*$);return Math.abs(j)<1e-6?null:(z*=j=1/j,B*=j,$*=j,s=Math.sin(l),d=1-(u=Math.cos(l)),h=n[0],p=n[1],m=n[2],y=n[3],v=n[4],g=n[5],b=n[6],x=n[7],_=n[8],w=n[9],k=n[10],T=n[11],M=z*z*d+u,S=B*z*d+$*s,C=$*z*d-B*s,P=z*B*d-$*s,D=B*B*d+u,O=$*B*d+z*s,R=z*$*d+B*s,F=B*$*d-z*s,A=$*$*d+u,a[0]=h*M+v*S+_*C,a[1]=p*M+g*S+w*C,a[2]=m*M+b*S+k*C,a[3]=y*M+x*S+T*C,a[4]=h*P+v*D+_*O,a[5]=p*P+g*D+w*O,a[6]=m*P+b*D+k*O,a[7]=y*P+x*D+T*O,a[8]=h*R+v*F+_*A,a[9]=p*R+g*F+w*A,a[10]=m*R+b*F+k*A,a[11]=y*R+x*F+T*A,n!==a&&(a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15]),a)}},35545:function(o){o.exports=function(a,n,l){var f=Math.sin(l),s=Math.cos(l),u=n[4],d=n[5],h=n[6],p=n[7],m=n[8],y=n[9],v=n[10],g=n[11];return n!==a&&(a[0]=n[0],a[1]=n[1],a[2]=n[2],a[3]=n[3],a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15]),a[4]=u*s+m*f,a[5]=d*s+y*f,a[6]=h*s+v*f,a[7]=p*s+g*f,a[8]=m*s-u*f,a[9]=y*s-d*f,a[10]=v*s-h*f,a[11]=g*s-p*f,a}},94918:function(o){o.exports=function(a,n,l){var f=Math.sin(l),s=Math.cos(l),u=n[0],d=n[1],h=n[2],p=n[3],m=n[8],y=n[9],v=n[10],g=n[11];return n!==a&&(a[4]=n[4],a[5]=n[5],a[6]=n[6],a[7]=n[7],a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15]),a[0]=u*s-m*f,a[1]=d*s-y*f,a[2]=h*s-v*f,a[3]=p*s-g*f,a[8]=u*f+m*s,a[9]=d*f+y*s,a[10]=h*f+v*s,a[11]=p*f+g*s,a}},15692:function(o){o.exports=function(a,n,l){var f=Math.sin(l),s=Math.cos(l),u=n[0],d=n[1],h=n[2],p=n[3],m=n[4],y=n[5],v=n[6],g=n[7];return n!==a&&(a[8]=n[8],a[9]=n[9],a[10]=n[10],a[11]=n[11],a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15]),a[0]=u*s+m*f,a[1]=d*s+y*f,a[2]=h*s+v*f,a[3]=p*s+g*f,a[4]=m*s-u*f,a[5]=y*s-d*f,a[6]=v*s-h*f,a[7]=g*s-p*f,a}},10789:function(o){o.exports=function(a,n,l){var f=l[0],s=l[1],u=l[2];return a[0]=n[0]*f,a[1]=n[1]*f,a[2]=n[2]*f,a[3]=n[3]*f,a[4]=n[4]*s,a[5]=n[5]*s,a[6]=n[6]*s,a[7]=n[7]*s,a[8]=n[8]*u,a[9]=n[9]*u,a[10]=n[10]*u,a[11]=n[11]*u,a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15],a}},6726:function(o){o.exports=function(a){return"mat4("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+", "+a[6]+", "+a[7]+", "+a[8]+", "+a[9]+", "+a[10]+", "+a[11]+", "+a[12]+", "+a[13]+", "+a[14]+", "+a[15]+")"}},31283:function(o){o.exports=function(a,n,l){var f,s,u,d,h,p,m,y,v,g,b,x,_=l[0],w=l[1],k=l[2];return n===a?(a[12]=n[0]*_+n[4]*w+n[8]*k+n[12],a[13]=n[1]*_+n[5]*w+n[9]*k+n[13],a[14]=n[2]*_+n[6]*w+n[10]*k+n[14],a[15]=n[3]*_+n[7]*w+n[11]*k+n[15]):(f=n[0],s=n[1],u=n[2],d=n[3],h=n[4],p=n[5],m=n[6],y=n[7],v=n[8],g=n[9],b=n[10],x=n[11],a[0]=f,a[1]=s,a[2]=u,a[3]=d,a[4]=h,a[5]=p,a[6]=m,a[7]=y,a[8]=v,a[9]=g,a[10]=b,a[11]=x,a[12]=f*_+h*w+v*k+n[12],a[13]=s*_+p*w+g*k+n[13],a[14]=u*_+m*w+b*k+n[14],a[15]=d*_+y*w+x*k+n[15]),a}},88654:function(o){o.exports=function(a,n){if(a===n){var l=n[1],f=n[2],s=n[3],u=n[6],d=n[7],h=n[11];a[1]=n[4],a[2]=n[8],a[3]=n[12],a[4]=l,a[6]=n[9],a[7]=n[13],a[8]=f,a[9]=u,a[11]=n[14],a[12]=s,a[13]=d,a[14]=h}else a[0]=n[0],a[1]=n[4],a[2]=n[8],a[3]=n[12],a[4]=n[1],a[5]=n[5],a[6]=n[9],a[7]=n[13],a[8]=n[2],a[9]=n[6],a[10]=n[10],a[11]=n[14],a[12]=n[3],a[13]=n[7],a[14]=n[11],a[15]=n[15];return a}},40383:function(o,a,n){var l=n(68318)("%Object.getOwnPropertyDescriptor%",!0);if(l)try{l([],"length")}catch{l=null}o.exports=l},57035:function(o,a,n){var l,f=n(54404);l=typeof n.g.matchMedia=="function"?!n.g.matchMedia("(hover: none)").matches:f,o.exports=l},38520:function(o,a,n){var l=n(54404);o.exports=l&&function(){var f=!1;try{var s=Object.defineProperty({},"passive",{get:function(){f=!0}});window.addEventListener("test",null,s),window.removeEventListener("test",null,s)}catch{f=!1}return f}()},55622:function(o,a,n){var l=n(68318)("%Object.defineProperty%",!0),f=function(){if(l)try{return l({},"a",{value:1}),!0}catch{return!1}return!1};f.hasArrayLengthDefineBug=function(){if(!f())return null;try{return l([],"length",{value:1}).length!==1}catch{return!0}},o.exports=f},57877:function(o,a,n){var l=typeof Symbol<"u"&&Symbol,f=n(35638);o.exports=function(){return typeof l=="function"&&typeof Symbol=="function"&&typeof l("foo")=="symbol"&&typeof Symbol("bar")=="symbol"&&f()}},35638:function(o){o.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var a={},n=Symbol("test"),l=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(l)!=="[object Symbol]")return!1;for(n in a[n]=42,a)return!1;if(typeof Object.keys=="function"&&Object.keys(a).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(a).length!==0)return!1;var f=Object.getOwnPropertySymbols(a);if(f.length!==1||f[0]!==n||!Object.prototype.propertyIsEnumerable.call(a,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(a,n);if(s.value!==42||s.enumerable!==!0)return!1}return!0}},84543:function(o,a,n){var l=n(35638);o.exports=function(){return l()&&!!Symbol.toStringTag}},35065:function(o,a,n){var l=n(77575);o.exports=l.call(Function.call,Object.prototype.hasOwnProperty)},95280:function(o,a){a.read=function(n,l,f,s,u){var d,h,p=8*u-s-1,m=(1<>1,v=-7,g=f?u-1:0,b=f?-1:1,x=n[l+g];for(g+=b,d=x&(1<<-v)-1,x>>=-v,v+=p;v>0;d=256*d+n[l+g],g+=b,v-=8);for(h=d&(1<<-v)-1,d>>=-v,v+=s;v>0;h=256*h+n[l+g],g+=b,v-=8);if(d===0)d=1-y;else{if(d===m)return h?NaN:1/0*(x?-1:1);h+=Math.pow(2,s),d-=y}return(x?-1:1)*h*Math.pow(2,d-s)},a.write=function(n,l,f,s,u,d){var h,p,m,y=8*d-u-1,v=(1<>1,b=u===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=s?0:d-1,_=s?1:-1,w=l<0||l===0&&1/l<0?1:0;for(l=Math.abs(l),isNaN(l)||l===1/0?(p=isNaN(l)?1:0,h=v):(h=Math.floor(Math.log(l)/Math.LN2),l*(m=Math.pow(2,-h))<1&&(h--,m*=2),(l+=h+g>=1?b/m:b*Math.pow(2,1-g))*m>=2&&(h++,m/=2),h+g>=v?(p=0,h=v):h+g>=1?(p=(l*m-1)*Math.pow(2,u),h+=g):(p=l*Math.pow(2,g-1)*Math.pow(2,u),h=0));u>=8;n[f+x]=255&p,x+=_,p/=256,u-=8);for(h=h<0;n[f+x]=255&h,x+=_,h/=256,y-=8);n[f+x-_]|=128*w}},42018:function(o){typeof Object.create=="function"?o.exports=function(a,n){n&&(a.super_=n,a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}))}:o.exports=function(a,n){if(n){a.super_=n;var l=function(){};l.prototype=n.prototype,a.prototype=new l,a.prototype.constructor=a}}},47216:function(o,a,n){var l=n(84543)(),f=n(6614)("Object.prototype.toString"),s=function(h){return!(l&&h&&typeof h=="object"&&Symbol.toStringTag in h)&&f(h)==="[object Arguments]"},u=function(h){return!!s(h)||h!==null&&typeof h=="object"&&typeof h.length=="number"&&h.length>=0&&f(h)!=="[object Array]"&&f(h.callee)==="[object Function]"},d=function(){return s(arguments)}();s.isLegacyArguments=u,o.exports=d?s:u},54404:function(o){o.exports=!0},85395:function(o){var a,n,l=Function.prototype.toString,f=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply;if(typeof f=="function"&&typeof Object.defineProperty=="function")try{a=Object.defineProperty({},"length",{get:function(){throw n}}),n={},f(function(){throw 42},null,a)}catch(g){g!==n&&(f=null)}else f=null;var s=/^\s*class\b/,u=function(g){try{var b=l.call(g);return s.test(b)}catch{return!1}},d=function(g){try{return!u(g)&&(l.call(g),!0)}catch{return!1}},h=Object.prototype.toString,p=typeof Symbol=="function"&&!!Symbol.toStringTag,m=!(0 in[,]),y=function(){return!1};if(typeof document=="object"){var v=document.all;h.call(v)===h.call(document.all)&&(y=function(g){if((m||!g)&&(g===void 0||typeof g=="object"))try{var b=h.call(g);return(b==="[object HTMLAllCollection]"||b==="[object HTML document.all class]"||b==="[object HTMLCollection]"||b==="[object Object]")&&g("")==null}catch{}return!1})}o.exports=f?function(g){if(y(g))return!0;if(!g||typeof g!="function"&&typeof g!="object")return!1;try{f(g,null,a)}catch(b){if(b!==n)return!1}return!u(g)&&d(g)}:function(g){if(y(g))return!0;if(!g||typeof g!="function"&&typeof g!="object")return!1;if(p)return d(g);if(u(g))return!1;var b=h.call(g);return!(b!=="[object Function]"&&b!=="[object GeneratorFunction]"&&!/^\[object HTML/.test(b))&&d(g)}},65481:function(o,a,n){var l,f=Object.prototype.toString,s=Function.prototype.toString,u=/^\s*(?:function)?\*/,d=n(84543)(),h=Object.getPrototypeOf;o.exports=function(p){if(typeof p!="function")return!1;if(u.test(s.call(p)))return!0;if(!d)return f.call(p)==="[object GeneratorFunction]";if(!h)return!1;if(l===void 0){var m=function(){if(!d)return!1;try{return Function("return function*() {}")()}catch{}}();l=!!m&&h(m)}return h(p)===l}},64274:function(o){o.exports=function(a){return a!=a}},15567:function(o,a,n){var l=n(68222),f=n(17045),s=n(64274),u=n(14922),d=n(22442),h=l(u(),Number);f(h,{getPolyfill:u,implementation:s,shim:d}),o.exports=h},14922:function(o,a,n){var l=n(64274);o.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:l}},22442:function(o,a,n){var l=n(17045),f=n(14922);o.exports=function(){var s=f();return l(Number,{isNaN:s},{isNaN:function(){return Number.isNaN!==s}}),s}},18546:function(o){o.exports=function(a){for(var n,l=a.length,f=0;f13)&&n!==32&&n!==133&&n!==160&&n!==5760&&n!==6158&&(n<8192||n>8205)&&n!==8232&&n!==8233&&n!==8239&&n!==8287&&n!==8288&&n!==12288&&n!==65279)return!1;return!0}},9187:function(o,a,n){var l=n(31353),f=n(72077),s=n(6614),u=s("Object.prototype.toString"),d=n(84543)(),h=n(40383),p=typeof globalThis>"u"?n.g:globalThis,m=f(),y=s("Array.prototype.indexOf",!0)||function(x,_){for(var w=0;w-1}return!!h&&function(w){var k=!1;return l(g,function(T,M){if(!k)try{k=T.call(w)===M}catch{}}),k}(x)}},48956:function(o){var a={left:0,top:0};o.exports=function(n,l,f){l=l||n.currentTarget||n.srcElement,Array.isArray(f)||(f=[0,0]);var s,u=n.clientX||0,d=n.clientY||0,h=(s=l)===window||s===document||s===document.body?a:s.getBoundingClientRect();return f[0]=u-h.left,f[1]=d-h.top,f}},7417:function(o,a,n){var l,f,s,u;f="Promise",u=function(){var d,h,p,m=Object.prototype.toString,y=typeof setImmediate<"u"?function(P){return setImmediate(P)}:setTimeout;try{Object.defineProperty({},"x",{}),d=function(P,D,O,R){return Object.defineProperty(P,D,{value:O,writable:!0,configurable:R!==!1})}}catch{d=function(D,O,R){return D[O]=R,D}}function v(P,D){p.add(P,D),h||(h=y(p.drain))}function g(P){var D,O=typeof P;return P==null||O!="object"&&O!="function"||(D=P.then),typeof D=="function"&&D}function b(){for(var P=0;P0&&v(b,O))}catch(R){w.call(new T(O),R)}}}function w(P){var D=this;D.triggered||(D.triggered=!0,D.def&&(D=D.def),D.msg=P,D.state=2,D.chain.length>0&&v(b,D))}function k(P,D,O,R){for(var F=0;F"u")return!1;for(var b in window)try{if(!v["$"+b]&&f.call(window,b)&&window[b]!==null&&typeof window[b]=="object")try{y(window[b])}catch{return!0}}catch{return!0}return!1}();l=function(b){var x=b!==null&&typeof b=="object",_=s.call(b)==="[object Function]",w=u(b),k=x&&s.call(b)==="[object String]",T=[];if(!x&&!_&&!w)throw new TypeError("Object.keys called on a non-object");var M=p&&_;if(k&&b.length>0&&!f.call(b,0))for(var S=0;S0)for(var C=0;C"u"||!g)return y(R);try{return y(R)}catch{return!1}}(b),O=0;O=0&&a.call(n.callee)==="[object Function]"),f}},95616:function(o){o.exports=function(f){var s=[];return f.replace(n,function(u,d,h){var p=d.toLowerCase();for(h=function(m){var y=m.match(l);return y?y.map(Number):[]}(h),p=="m"&&h.length>2&&(s.push([d].concat(h.splice(0,2))),p="l",d=d=="m"?"l":"L");;){if(h.length==a[p])return h.unshift(d),s.push(h);if(h.lengthu!=b>u&&s<(g-y)*(u-v)/(b-v)+y&&(d=!d)}return d}},52142:function(o,a,n){var l,f=n(69444),s=n(29023),u=n(87263),d=n(11328),h=n(55968),p=n(10670),m=!1,y=s();function v(g,b,x){var _=l.segments(g),w=l.segments(b),k=x(l.combine(_,w));return l.polygon(k)}l={buildLog:function(g){return g===!0?m=f():g===!1&&(m=!1),m!==!1&&m.list},epsilon:function(g){return y.epsilon(g)},segments:function(g){var b=u(!0,y,m);return g.regions.forEach(b.addRegion),{segments:b.calculate(g.inverted),inverted:g.inverted}},combine:function(g,b){return{combined:u(!1,y,m).calculate(g.segments,g.inverted,b.segments,b.inverted),inverted1:g.inverted,inverted2:b.inverted}},selectUnion:function(g){return{segments:h.union(g.combined,m),inverted:g.inverted1||g.inverted2}},selectIntersect:function(g){return{segments:h.intersect(g.combined,m),inverted:g.inverted1&&g.inverted2}},selectDifference:function(g){return{segments:h.difference(g.combined,m),inverted:g.inverted1&&!g.inverted2}},selectDifferenceRev:function(g){return{segments:h.differenceRev(g.combined,m),inverted:!g.inverted1&&g.inverted2}},selectXor:function(g){return{segments:h.xor(g.combined,m),inverted:g.inverted1!==g.inverted2}},polygon:function(g){return{regions:d(g.segments,y,m),inverted:g.inverted}},polygonFromGeoJSON:function(g){return p.toPolygon(l,g)},polygonToGeoJSON:function(g){return p.fromPolygon(l,y,g)},union:function(g,b){return v(g,b,l.selectUnion)},intersect:function(g,b){return v(g,b,l.selectIntersect)},difference:function(g,b){return v(g,b,l.selectDifference)},differenceRev:function(g,b){return v(g,b,l.selectDifferenceRev)},xor:function(g,b){return v(g,b,l.selectXor)}},typeof window=="object"&&(window.PolyBool=l),o.exports=l},69444:function(o){o.exports=function(){var a,n=0,l=!1;function f(s,u){return a.list.push({type:s,data:u?JSON.parse(JSON.stringify(u)):void 0}),a}return a={list:[],segmentId:function(){return n++},checkIntersection:function(s,u){return f("check",{seg1:s,seg2:u})},segmentChop:function(s,u){return f("div_seg",{seg:s,pt:u}),f("chop",{seg:s,pt:u})},statusRemove:function(s){return f("pop_seg",{seg:s})},segmentUpdate:function(s){return f("seg_update",{seg:s})},segmentNew:function(s,u){return f("new_seg",{seg:s,primary:u})},segmentRemove:function(s){return f("rem_seg",{seg:s})},tempStatus:function(s,u,d){return f("temp_status",{seg:s,above:u,below:d})},rewind:function(s){return f("rewind",{seg:s})},status:function(s,u,d){return f("status",{seg:s,above:u,below:d})},vert:function(s){return s===l?a:(l=s,f("vert",{x:s}))},log:function(s){return typeof s!="string"&&(s=JSON.stringify(s,!1," ")),f("log",{txt:s})},reset:function(){return f("reset")},selected:function(s){return f("selected",{segs:s})},chainStart:function(s){return f("chain_start",{seg:s})},chainRemoveHead:function(s,u){return f("chain_rem_head",{index:s,pt:u})},chainRemoveTail:function(s,u){return f("chain_rem_tail",{index:s,pt:u})},chainNew:function(s,u){return f("chain_new",{pt1:s,pt2:u})},chainMatch:function(s){return f("chain_match",{index:s})},chainClose:function(s){return f("chain_close",{index:s})},chainAddHead:function(s,u){return f("chain_add_head",{index:s,pt:u})},chainAddTail:function(s,u){return f("chain_add_tail",{index:s,pt:u})},chainConnect:function(s,u){return f("chain_con",{index1:s,index2:u})},chainReverse:function(s){return f("chain_rev",{index:s})},chainJoin:function(s,u){return f("chain_join",{index1:s,index2:u})},done:function(){return f("done")}}}},29023:function(o){o.exports=function(a){typeof a!="number"&&(a=1e-10);var n={epsilon:function(l){return typeof l=="number"&&(a=l),a},pointAboveOrOnLine:function(l,f,s){var u=f[0],d=f[1],h=s[0],p=s[1],m=l[0];return(h-u)*(l[1]-d)-(p-d)*(m-u)>=-a},pointBetween:function(l,f,s){var u=l[1]-f[1],d=s[0]-f[0],h=l[0]-f[0],p=s[1]-f[1],m=h*d+u*p;return!(m-a)},pointsSameX:function(l,f){return Math.abs(l[0]-f[0])a!=h-u>a&&(d-y)*(u-v)/(h-v)+y-s>a&&(p=!p),d=y,h=v}return p}};return n}},10670:function(o){var a={toPolygon:function(n,l){function f(d){if(d.length<=0)return n.segments({inverted:!1,regions:[]});function h(y){var v=y.slice(0,y.length-1);return n.segments({inverted:!1,regions:[v]})}for(var p=h(d[0]),m=1;m0})}function w(A,z){var B=A.seg,$=z.seg,j=B.start,N=B.end,E=$.start,W=$.end;u&&u.checkIntersection(B,$);var G=s.linesIntersect(j,N,E,W);if(G===!1){if(!s.pointsCollinear(j,N,E)||s.pointsSame(j,W)||s.pointsSame(N,E))return!1;var L=s.pointsSame(j,E),q=s.pointsSame(N,W);if(L&&q)return z;var H=!L&&s.pointBetween(j,E,W),V=!q&&s.pointBetween(N,E,W);if(L)return V?y(z,N):y(A,W),z;H&&(q||(V?y(z,N):y(A,W)),y(z,j))}else G.alongA===0&&(G.alongB===-1?y(A,E):G.alongB===0?y(A,G.pt):G.alongB===1&&y(A,W)),G.alongB===0&&(G.alongA===-1?y(z,j):G.alongA===0?y(z,G.pt):G.alongA===1&&y(z,N));return!1}for(var k=[];!h.isEmpty();){var T=h.getHead();if(u&&u.vert(T.pt[0]),T.isStart){let A=function(){if(S){var z=w(T,S);if(z)return z}return!!C&&w(T,C)};u&&u.segmentNew(T.seg,T.primary);var M=_(T),S=M.before?M.before.ev:null,C=M.after?M.after.ev:null;u&&u.tempStatus(T.seg,!!S&&S.seg,!!C&&C.seg);var P,D,O=A();if(O&&(f?(D=T.seg.myFill.below===null||T.seg.myFill.above!==T.seg.myFill.below)&&(O.seg.myFill.above=!O.seg.myFill.above):O.seg.otherFill=T.seg.myFill,u&&u.segmentUpdate(O.seg),T.other.remove(),T.remove()),h.getHead()!==T){u&&u.rewind(T.seg);continue}f?(D=T.seg.myFill.below===null||T.seg.myFill.above!==T.seg.myFill.below,T.seg.myFill.below=C?C.seg.myFill.above:g,T.seg.myFill.above=D?!T.seg.myFill.below:T.seg.myFill.below):T.seg.otherFill===null&&(P=C?T.primary===C.primary?C.seg.otherFill.above:C.seg.myFill.above:T.primary?b:g,T.seg.otherFill={above:P,below:P}),u&&u.status(T.seg,!!S&&S.seg,!!C&&C.seg),T.other.status=M.insert(l.node({ev:T}))}else{var R=T.status;if(R===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(x.exists(R.prev)&&x.exists(R.next)&&w(R.prev.ev,R.next.ev),u&&u.statusRemove(R.ev.seg),R.remove(),!T.primary){var F=T.seg.myFill;T.seg.myFill=T.seg.otherFill,T.seg.otherFill=F}k.push(T.seg)}h.getHead().remove()}return u&&u.done(),k}return f?{addRegion:function(g){for(var b,x,_,w=g[g.length-1],k=0;k0&&!this.aborted;){var u=this.ifds_to_read.shift();u.offset&&this.scan_ifd(u.id,u.offset,f)}},l.prototype.read_uint16=function(f){var s=this.input;if(f+2>s.length)throw a("unexpected EOF","EBADDATA");return this.big_endian?256*s[f]+s[f+1]:s[f]+256*s[f+1]},l.prototype.read_uint32=function(f){var s=this.input;if(f+4>s.length)throw a("unexpected EOF","EBADDATA");return this.big_endian?16777216*s[f]+65536*s[f+1]+256*s[f+2]+s[f+3]:s[f]+256*s[f+1]+65536*s[f+2]+16777216*s[f+3]},l.prototype.is_subifd_link=function(f,s){return f===0&&s===34665||f===0&&s===34853||f===34665&&s===40965},l.prototype.exif_format_length=function(f){switch(f){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}},l.prototype.exif_format_read=function(f,s){var u;switch(f){case 1:case 2:return this.input[s];case 6:return(u=this.input[s])|33554430*(128&u);case 3:return this.read_uint16(s);case 8:return(u=this.read_uint16(s))|131070*(32768&u);case 4:return this.read_uint32(s);case 9:return 0|this.read_uint32(s);default:return null}},l.prototype.scan_ifd=function(f,s,u){var d=this.read_uint16(s);s+=2;for(var h=0;hthis.input.length)throw a("unexpected EOF","EBADDATA");for(var _=[],w=b,k=0;k0&&(this.ifds_to_read.push({id:p,offset:_[0]}),x=!0),u({is_big_endian:this.big_endian,ifd:f,tag:p,format:m,count:y,entry_offset:s+this.start,data_length:g,data_offset:b+this.start,value:_,is_subifd_link:x})===!1)return void(this.aborted=!0);s+=12}f===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(s)})},o.exports.ExifParser=l,o.exports.get_orientation=function(f){var s=0;try{return new l(f,0,f.length).each(function(u){if(u.ifd===0&&u.tag===274&&Array.isArray(u.value))return s=u.value[0],!1}),s}catch{return-1}}},76767:function(o,a,n){var l=n(14847).n8,f=n(14847).Ag;function s(y,v){if(y.length<4+v)return null;var g=f(y,v);return y.length>4&15,b=15&y[4],x=y[5]>>4&15,_=l(y,6),w=8,k=0;k<_;k++){var T=l(y,w),M=l(y,w+=2),S=d(y,w+=2,x),C=l(y,w+=x);if(w+=2,M===0&&C===1){var P=d(y,w,g),D=d(y,w+g,b);v.item_loc[T]={length:D,offset:P+S}}w+=C*(g+b)}}function p(y,v){for(var g=l(y,4),b=6,x=0;xM.width||T.width===M.width&&T.height>M.height?T:M}),x=g.reduce(function(T,M){return T.height>M.height||T.height===M.height&&T.width>M.width?T:M}),b.width>x.height||b.width===x.height&&b.height>x.width?b:x),w=1;v.transforms.forEach(function(T){var M={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},S={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(T.type==="imir"&&(w=T.value===0?S[w]:M[w=M[w=S[w]]]),T.type==="irot")for(var C=0;C1&&(_.variants=x.variants),x.orientation&&(_.orientation=x.orientation),x.exif_location&&x.exif_location.offset+x.exif_location.length<=p.length){var w=s(p,x.exif_location.offset),k=p.slice(x.exif_location.offset+w+4,x.exif_location.offset+x.exif_location.length),T=d.get_orientation(k);T>0&&(_.orientation=T)}return _}}}}}}},2504:function(o,a,n){var l=n(14847).eG,f=n(14847).OF,s=n(14847).mP,u=l("BM");o.exports=function(d){if(!(d.length<26)&&f(d,0,u))return{width:s(d,18),height:s(d,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}},47342:function(o,a,n){var l=n(14847).eG,f=n(14847).OF,s=n(14847).mP,u=l("GIF87a"),d=l("GIF89a");o.exports=function(h){if(!(h.length<10)&&(f(h,0,u)||f(h,0,d)))return{width:s(h,6),height:s(h,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}},31355:function(o,a,n){var l=n(14847).mP;o.exports=function(f){var s=l(f,0),u=l(f,2),d=l(f,4);if(s===0&&u===1&&d){for(var h=[],p={width:0,height:0},m=0;mp.width||v>p.height)&&(p=g)}return{width:p.width,height:p.height,variants:h,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}},54261:function(o,a,n){var l=n(14847).n8,f=n(14847).eG,s=n(14847).OF,u=n(71371),d=f("Exif\0\0");o.exports=function(h){if(!(h.length<2)&&h[0]===255&&h[1]===216&&h[2]===255)for(var p=2;;){for(;;){if(h.length-p<2)return;if(h[p++]===255)break}for(var m,y,v=h[p++];v===255;)v=h[p++];if(208<=v&&v<=217||v===1)m=0;else{if(!(192<=v&&v<=254)||h.length-p<2)return;m=l(h,p)-2,p+=2}if(v===217||v===218)return;if(v===225&&m>=10&&s(h,p,d)&&(y=u.get_orientation(h.slice(p+6,p+m))),m>=5&&192<=v&&v<=207&&v!==196&&v!==200&&v!==204){if(h.length-p0&&(g.orientation=y),g}p+=m}}},6303:function(o,a,n){var l=n(14847).eG,f=n(14847).OF,s=n(14847).Ag,u=l(`‰PNG\r +`):H=" ".concat($," ").concat(H)),z=c(this,y(O).call(this,"".concat(q).concat(H)))}return Error.stackTraceLimit=W,z.generatedMessage=!B,Object.defineProperty(d(z),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),z.code="ERR_ASSERTION",z.actual=N,z.expected=E,z.operator=$,Error.captureStackTrace&&Error.captureStackTrace(d(z),j),z.stack,z.name="AssertionError",c(z)}var R,F;return function(A,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(z&&z.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),z&&m(A,z)}(O,D),R=O,F=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:g.custom,value:function(A,z){return g(this,function(B){for(var $=1;$2?"one of ".concat(v," ").concat(y.slice(0,g-1).join(", "),", or ")+y[g-1]:g===2?"one of ".concat(v," ").concat(y[0]," or ").concat(y[1]):"of ".concat(v," ").concat(y[0])}return"of ".concat(v," ").concat(String(y))}p("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),p("ERR_INVALID_ARG_TYPE",function(y,v,g){var b,x,_,w,k;if(c===void 0&&(c=n(32791)),c(typeof y=="string","'name' must be a string"),typeof v=="string"&&(x="not ",v.substr(0,4)===x)?(b="must not be",v=v.replace(/^not /,"")):b="must be",function(M,S,C){return(C===void 0||C>M.length)&&(C=M.length),M.substring(C-9,C)===S}(y," argument"))_="The ".concat(y," ").concat(b," ").concat(m(v,"type"));else{var T=(typeof k!="number"&&(k=0),k+1>(w=y).length||w.indexOf(".",k)===-1?"argument":"property");_='The "'.concat(y,'" ').concat(T," ").concat(b," ").concat(m(v,"type"))}return _+". Received type ".concat(l(g))},TypeError),p("ERR_INVALID_ARG_VALUE",function(y,v){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";d===void 0&&(d=n(43827));var b=d.inspect(v);return b.length>128&&(b="".concat(b.slice(0,128),"...")),"The argument '".concat(y,"' ").concat(g,". Received ").concat(b)},TypeError),p("ERR_INVALID_RETURN_VALUE",function(y,v,g){var b;return b=g&&g.constructor&&g.constructor.name?"instance of ".concat(g.constructor.name):"type ".concat(l(g)),"Expected ".concat(y,' to be returned from the "').concat(v,'"')+" function but got ".concat(b,".")},TypeError),p("ERR_MISSING_ARGS",function(){for(var y=arguments.length,v=new Array(y),g=0;g0,"At least one arg needs to be specified");var b="The ",x=v.length;switch(v=v.map(function(_){return'"'.concat(_,'"')}),x){case 1:b+="".concat(v[0]," argument");break;case 2:b+="".concat(v[0]," and ").concat(v[1]," arguments");break;default:b+=v.slice(0,x-1).join(", "),b+=", and ".concat(v[x-1]," arguments")}return"".concat(b," must be specified")},TypeError),o.exports.codes=h},74061:function(o,a,n){function l(Z,X){return function(re){if(Array.isArray(re))return re}(Z)||function(re,ie){var le=[],se=!0,pe=!1,Te=void 0;try{for(var Se,Oe=re[Symbol.iterator]();!(se=(Se=Oe.next()).done)&&(le.push(Se.value),!ie||le.length!==ie);se=!0);}catch(Me){pe=!0,Te=Me}finally{try{se||Oe.return==null||Oe.return()}finally{if(pe)throw Te}}return le}(Z,X)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function f(Z){return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(X){return typeof X}:function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},f(Z)}var s=/a/g.flags!==void 0,c=function(Z){var X=[];return Z.forEach(function(re){return X.push(re)}),X},d=function(Z){var X=[];return Z.forEach(function(re,ie){return X.push([ie,re])}),X},h=Object.is?Object.is:n(64003),p=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},m=Number.isNaN?Number.isNaN:n(15567);function y(Z){return Z.call.bind(Z)}var v=y(Object.prototype.hasOwnProperty),g=y(Object.prototype.propertyIsEnumerable),b=y(Object.prototype.toString),x=n(43827).types,_=x.isAnyArrayBuffer,w=x.isArrayBufferView,k=x.isDate,T=x.isMap,M=x.isRegExp,S=x.isSet,C=x.isNativeError,P=x.isBoxedPrimitive,D=x.isNumberObject,O=x.isStringObject,R=x.isBooleanObject,F=x.isBigIntObject,A=x.isSymbolObject,z=x.isFloat32Array,B=x.isFloat64Array;function $(Z){if(Z.length===0||Z.length>10)return!0;for(var X=0;X57)return!0}return Z.length===10&&Z>=Math.pow(2,32)}function j(Z){return Object.keys(Z).filter($).concat(p(Z).filter(Object.prototype.propertyIsEnumerable.bind(Z)))}function N(Z,X){if(Z===X)return 0;for(var re=Z.length,ie=X.length,le=0,se=Math.min(re,ie);le0?g-4:g;for(y=0;y>16&255,x[_++]=m>>8&255,x[_++]=255&m;return b===2&&(m=l[p.charCodeAt(y)]<<2|l[p.charCodeAt(y+1)]>>4,x[_++]=255&m),b===1&&(m=l[p.charCodeAt(y)]<<10|l[p.charCodeAt(y+1)]<<4|l[p.charCodeAt(y+2)]>>2,x[_++]=m>>8&255,x[_++]=255&m),x},a.fromByteArray=function(p){for(var m,y=p.length,v=y%3,g=[],b=16383,x=0,_=y-v;x<_;x+=b)g.push(h(p,x,x+b>_?_:x+b));return v===1?(m=p[y-1],g.push(n[m>>2]+n[m<<4&63]+"==")):v===2&&(m=(p[y-2]<<8)+p[y-1],g.push(n[m>>10]+n[m>>4&63]+n[m<<2&63]+"=")),g.join("")};for(var n=[],l=[],f=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0;c<64;++c)n[c]=s[c],l[s.charCodeAt(c)]=c;function d(p){var m=p.length;if(m%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=p.indexOf("=");return y===-1&&(y=m),[y,y===m?0:4-y%4]}function h(p,m,y){for(var v,g,b=[],x=m;x>18&63]+n[g>>12&63]+n[g>>6&63]+n[63&g]);return b.join("")}l[45]=62,l[95]=63},6614:function(o,a,n){var l=n(68318),f=n(68222),s=f(l("String.prototype.indexOf"));o.exports=function(c,d){var h=l(c,!!d);return typeof h=="function"&&s(c,".prototype.")>-1?f(h):h}},68222:function(o,a,n){var l=n(77575),f=n(68318),s=f("%Function.prototype.apply%"),c=f("%Function.prototype.call%"),d=f("%Reflect.apply%",!0)||l.call(c,s),h=f("%Object.getOwnPropertyDescriptor%",!0),p=f("%Object.defineProperty%",!0),m=f("%Math.max%");if(p)try{p({},"a",{value:1})}catch{p=null}o.exports=function(v){var g=d(l,c,arguments);return h&&p&&h(g,"length").configurable&&p(g,"length",{value:1+m(0,v.length-(arguments.length-1))}),g};var y=function(){return d(l,s,arguments)};p?p(o.exports,"apply",{value:y}):o.exports.apply=y},60721:function(o,a,n){function l(_,w){if((k=(_=w?_.toExponential(w-1):_.toExponential()).indexOf("e"))<0)return null;var k,T=_.slice(0,k);return[T.length>1?T[0]+T.slice(2):T,+_.slice(k+1)]}n.d(a,{WU:function(){return v},FF:function(){return x}});var f,s=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function c(_){if(!(w=s.exec(_)))throw new Error("invalid format: "+_);var w;return new d({fill:w[1],align:w[2],sign:w[3],symbol:w[4],zero:w[5],width:w[6],comma:w[7],precision:w[8]&&w[8].slice(1),trim:w[9],type:w[10]})}function d(_){this.fill=_.fill===void 0?" ":_.fill+"",this.align=_.align===void 0?">":_.align+"",this.sign=_.sign===void 0?"-":_.sign+"",this.symbol=_.symbol===void 0?"":_.symbol+"",this.zero=!!_.zero,this.width=_.width===void 0?void 0:+_.width,this.comma=!!_.comma,this.precision=_.precision===void 0?void 0:+_.precision,this.trim=!!_.trim,this.type=_.type===void 0?"":_.type+""}function h(_,w){var k=l(_,w);if(!k)return _+"";var T=k[0],M=k[1];return M<0?"0."+new Array(-M).join("0")+T:T.length>M+1?T.slice(0,M+1)+"."+T.slice(M+1):T+new Array(M-T.length+2).join("0")}c.prototype=d.prototype,d.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,0|this.width))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var p={"%":function(_,w){return(100*_).toFixed(w)},b:function(_){return Math.round(_).toString(2)},c:function(_){return _+""},d:function(_){return Math.abs(_=Math.round(_))>=1e21?_.toLocaleString("en").replace(/,/g,""):_.toString(10)},e:function(_,w){return _.toExponential(w)},f:function(_,w){return _.toFixed(w)},g:function(_,w){return _.toPrecision(w)},o:function(_){return Math.round(_).toString(8)},p:function(_,w){return h(100*_,w)},r:h,s:function(_,w){var k=l(_,w);if(!k)return _+"";var T=k[0],M=k[1],S=M-(f=3*Math.max(-8,Math.min(8,Math.floor(M/3))))+1,C=T.length;return S===C?T:S>C?T+new Array(S-C+1).join("0"):S>0?T.slice(0,S)+"."+T.slice(S):"0."+new Array(1-S).join("0")+l(_,Math.max(0,w+S-1))[0]},X:function(_){return Math.round(_).toString(16).toUpperCase()},x:function(_){return Math.round(_).toString(16)}};function m(_){return _}var y,v,g=Array.prototype.map,b=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function x(_){var w,k,T=_.grouping===void 0||_.thousands===void 0?m:(w=g.call(_.grouping,Number),k=_.thousands+"",function(A,z){for(var B=A.length,$=[],j=0,N=w[0],E=0;B>0&&N>0&&(E+N+1>z&&(N=Math.max(1,z-E)),$.push(A.substring(B-=N,B+N)),!((E+=N+1)>z));)N=w[j=(j+1)%w.length];return $.reverse().join(k)}),M=_.currency===void 0?"":_.currency[0]+"",S=_.currency===void 0?"":_.currency[1]+"",C=_.decimal===void 0?".":_.decimal+"",P=_.numerals===void 0?m:function(A){return function(z){return z.replace(/[0-9]/g,function(B){return A[+B]})}}(g.call(_.numerals,String)),D=_.percent===void 0?"%":_.percent+"",O=_.minus===void 0?"-":_.minus+"",R=_.nan===void 0?"NaN":_.nan+"";function F(A){var z=(A=c(A)).fill,B=A.align,$=A.sign,j=A.symbol,N=A.zero,E=A.width,W=A.comma,G=A.precision,L=A.trim,q=A.type;q==="n"?(W=!0,q="g"):p[q]||(G===void 0&&(G=12),L=!0,q="g"),(N||z==="0"&&B==="=")&&(N=!0,z="0",B="=");var H=j==="$"?M:j==="#"&&/[boxX]/.test(q)?"0"+q.toLowerCase():"",V=j==="$"?S:/[%p]/.test(q)?D:"",te=p[q],ee=/[defgprs%]/.test(q);function U(Q){var Y,Z,X,re=H,ie=V;if(q==="c")ie=te(Q)+ie,Q="";else{var le=(Q=+Q)<0||1/Q<0;if(Q=isNaN(Q)?R:te(Math.abs(Q),G),L&&(Q=function(Te){e:for(var Se,Oe=Te.length,Me=1,ce=-1;Me0&&(ce=0)}return ce>0?Te.slice(0,ce)+Te.slice(Se+1):Te}(Q)),le&&+Q==0&&$!=="+"&&(le=!1),re=(le?$==="("?$:O:$==="-"||$==="("?"":$)+re,ie=(q==="s"?b[8+f/3]:"")+ie+(le&&$==="("?")":""),ee){for(Y=-1,Z=Q.length;++Y(X=Q.charCodeAt(Y))||X>57){ie=(X===46?C+Q.slice(Y+1):Q.slice(Y))+ie,Q=Q.slice(0,Y);break}}}W&&!N&&(Q=T(Q,1/0));var se=re.length+Q.length+ie.length,pe=se>1)+re+Q+ie+pe.slice(se);break;default:Q=pe+re+Q+ie}return P(Q)}return G=G===void 0?6:/[gprs]/.test(q)?Math.max(1,Math.min(21,G)):Math.max(0,Math.min(20,G)),U.toString=function(){return A+""},U}return{format:F,formatPrefix:function(A,z){var B,$=F(((A=c(A)).type="f",A)),j=3*Math.max(-8,Math.min(8,Math.floor((B=z,((B=l(Math.abs(B)))?B[1]:NaN)/3)))),N=Math.pow(10,-j),E=b[8+j/3];return function(W){return $(N*W)+E}}}}y=x({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),v=y.format,y.formatPrefix},84096:function(o,a,n){n.d(a,{i$:function(){return b},Dq:function(){return v},g0:function(){return x}});var l=n(58176),f=n(48480),s=n(59879),c=n(82301),d=n(34823),h=n(79791);function p(ze){if(0<=ze.y&&ze.y<100){var Ne=new Date(-1,ze.m,ze.d,ze.H,ze.M,ze.S,ze.L);return Ne.setFullYear(ze.y),Ne}return new Date(ze.y,ze.m,ze.d,ze.H,ze.M,ze.S,ze.L)}function m(ze){if(0<=ze.y&&ze.y<100){var Ne=new Date(Date.UTC(-1,ze.m,ze.d,ze.H,ze.M,ze.S,ze.L));return Ne.setUTCFullYear(ze.y),Ne}return new Date(Date.UTC(ze.y,ze.m,ze.d,ze.H,ze.M,ze.S,ze.L))}function y(ze,Ne,Qe){return{y:ze,m:Ne,d:Qe,H:0,M:0,S:0,L:0}}function v(ze){var Ne=ze.dateTime,Qe=ze.date,it=ze.time,kt=ze.periods,Je=ze.days,ut=ze.shortDays,pt=ze.months,It=ze.shortMonths,Mt=C(kt),zt=P(kt),wt=C(Je),ve=P(Je),_e=C(ut),Ve=P(ut),We=C(pt),Ze=P(pt),Ge=C(It),Ke=P(It),nt={a:function(St){return ut[St.getDay()]},A:function(St){return Je[St.getDay()]},b:function(St){return It[St.getMonth()]},B:function(St){return pt[St.getMonth()]},c:null,d:Q,e:Q,f:ie,H:Y,I:Z,j:X,L:re,m:le,M:se,p:function(St){return kt[+(St.getHours()>=12)]},q:function(St){return 1+~~(St.getMonth()/3)},Q:ct,s:bt,S:pe,u:Te,U:Se,V:Oe,w:Me,W:ce,x:null,X:null,y:ye,Y:J,Z:ne,"%":lt},st={a:function(St){return ut[St.getUTCDay()]},A:function(St){return Je[St.getUTCDay()]},b:function(St){return It[St.getUTCMonth()]},B:function(St){return pt[St.getUTCMonth()]},c:null,d:de,e:de,f:we,H:xe,I:ue,j:ge,L:be,m:ke,M:Ae,p:function(St){return kt[+(St.getUTCHours()>=12)]},q:function(St){return 1+~~(St.getUTCMonth()/3)},Q:ct,s:bt,S:Ee,u:De,U:Re,V:Ie,w:Be,W:Ue,x:null,X:null,y:qe,Y:Ye,Z:at,"%":lt},mt={a:function(St,Nt,Dt){var gt=_e.exec(Nt.slice(Dt));return gt?(St.w=Ve[gt[0].toLowerCase()],Dt+gt[0].length):-1},A:function(St,Nt,Dt){var gt=wt.exec(Nt.slice(Dt));return gt?(St.w=ve[gt[0].toLowerCase()],Dt+gt[0].length):-1},b:function(St,Nt,Dt){var gt=Ge.exec(Nt.slice(Dt));return gt?(St.m=Ke[gt[0].toLowerCase()],Dt+gt[0].length):-1},B:function(St,Nt,Dt){var gt=We.exec(Nt.slice(Dt));return gt?(St.m=Ze[gt[0].toLowerCase()],Dt+gt[0].length):-1},c:function(St,Nt,Dt){return Vt(St,Ne,Nt,Dt)},d:E,e:E,f:V,H:G,I:G,j:W,L:H,m:N,M:L,p:function(St,Nt,Dt){var gt=Mt.exec(Nt.slice(Dt));return gt?(St.p=zt[gt[0].toLowerCase()],Dt+gt[0].length):-1},q:j,Q:ee,s:U,S:q,u:O,U:R,V:F,w:D,W:A,x:function(St,Nt,Dt){return Vt(St,Qe,Nt,Dt)},X:function(St,Nt,Dt){return Vt(St,it,Nt,Dt)},y:B,Y:z,Z:$,"%":te};function tt(St,Nt){return function(Dt){var gt,ht,yt,qt=[],Et=-1,jt=0,Tt=St.length;for(Dt instanceof Date||(Dt=new Date(+Dt));++Et53)return null;"w"in yt||(yt.w=1),"Z"in yt?(ht=(gt=m(y(yt.y,0,1))).getUTCDay(),gt=ht>4||ht===0?l.l6.ceil(gt):(0,l.l6)(gt),gt=f.Z.offset(gt,7*(yt.V-1)),yt.y=gt.getUTCFullYear(),yt.m=gt.getUTCMonth(),yt.d=gt.getUTCDate()+(yt.w+6)%7):(ht=(gt=p(y(yt.y,0,1))).getDay(),gt=ht>4||ht===0?s.wA.ceil(gt):(0,s.wA)(gt),gt=c.Z.offset(gt,7*(yt.V-1)),yt.y=gt.getFullYear(),yt.m=gt.getMonth(),yt.d=gt.getDate()+(yt.w+6)%7)}else("W"in yt||"U"in yt)&&("w"in yt||(yt.w="u"in yt?yt.u%7:"W"in yt?1:0),ht="Z"in yt?m(y(yt.y,0,1)).getUTCDay():p(y(yt.y,0,1)).getDay(),yt.m=0,yt.d="W"in yt?(yt.w+6)%7+7*yt.W-(ht+5)%7:yt.w+7*yt.U-(ht+6)%7);return"Z"in yt?(yt.H+=yt.Z/100|0,yt.M+=yt.Z%100,m(yt)):p(yt)}}function Vt(St,Nt,Dt,gt){for(var ht,yt,qt=0,Et=Nt.length,jt=Dt.length;qt=jt)return-1;if((ht=Nt.charCodeAt(qt++))===37){if(ht=Nt.charAt(qt++),!(yt=mt[ht in _?Nt.charAt(qt++):ht])||(gt=yt(St,Dt,gt))<0)return-1}else if(ht!=Dt.charCodeAt(gt++))return-1}return gt}return nt.x=tt(Qe,nt),nt.X=tt(it,nt),nt.c=tt(Ne,nt),st.x=tt(Qe,st),st.X=tt(it,st),st.c=tt(Ne,st),{format:function(St){var Nt=tt(St+="",nt);return Nt.toString=function(){return St},Nt},parse:function(St){var Nt=Ft(St+="",!1);return Nt.toString=function(){return St},Nt},utcFormat:function(St){var Nt=tt(St+="",st);return Nt.toString=function(){return St},Nt},utcParse:function(St){var Nt=Ft(St+="",!0);return Nt.toString=function(){return St},Nt}}}var g,b,x,_={"-":"",_:" ",0:"0"},w=/^\s*\d+/,k=/^%/,T=/[\\^$*+?|[\]().{}]/g;function M(ze,Ne,Qe){var it=ze<0?"-":"",kt=(it?-ze:ze)+"",Je=kt.length;return it+(Je68?1900:2e3),Qe+it[0].length):-1}function $(ze,Ne,Qe){var it=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Ne.slice(Qe,Qe+6));return it?(ze.Z=it[1]?0:-(it[2]+(it[3]||"00")),Qe+it[0].length):-1}function j(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+1));return it?(ze.q=3*it[0]-3,Qe+it[0].length):-1}function N(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+2));return it?(ze.m=it[0]-1,Qe+it[0].length):-1}function E(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+2));return it?(ze.d=+it[0],Qe+it[0].length):-1}function W(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+3));return it?(ze.m=0,ze.d=+it[0],Qe+it[0].length):-1}function G(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+2));return it?(ze.H=+it[0],Qe+it[0].length):-1}function L(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+2));return it?(ze.M=+it[0],Qe+it[0].length):-1}function q(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+2));return it?(ze.S=+it[0],Qe+it[0].length):-1}function H(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+3));return it?(ze.L=+it[0],Qe+it[0].length):-1}function V(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+6));return it?(ze.L=Math.floor(it[0]/1e3),Qe+it[0].length):-1}function te(ze,Ne,Qe){var it=k.exec(Ne.slice(Qe,Qe+1));return it?Qe+it[0].length:-1}function ee(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe));return it?(ze.Q=+it[0],Qe+it[0].length):-1}function U(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe));return it?(ze.s=+it[0],Qe+it[0].length):-1}function Q(ze,Ne){return M(ze.getDate(),Ne,2)}function Y(ze,Ne){return M(ze.getHours(),Ne,2)}function Z(ze,Ne){return M(ze.getHours()%12||12,Ne,2)}function X(ze,Ne){return M(1+c.Z.count((0,d.Z)(ze),ze),Ne,3)}function re(ze,Ne){return M(ze.getMilliseconds(),Ne,3)}function ie(ze,Ne){return re(ze,Ne)+"000"}function le(ze,Ne){return M(ze.getMonth()+1,Ne,2)}function se(ze,Ne){return M(ze.getMinutes(),Ne,2)}function pe(ze,Ne){return M(ze.getSeconds(),Ne,2)}function Te(ze){var Ne=ze.getDay();return Ne===0?7:Ne}function Se(ze,Ne){return M(s.OM.count((0,d.Z)(ze)-1,ze),Ne,2)}function Oe(ze,Ne){var Qe=ze.getDay();return ze=Qe>=4||Qe===0?(0,s.bL)(ze):s.bL.ceil(ze),M(s.bL.count((0,d.Z)(ze),ze)+((0,d.Z)(ze).getDay()===4),Ne,2)}function Me(ze){return ze.getDay()}function ce(ze,Ne){return M(s.wA.count((0,d.Z)(ze)-1,ze),Ne,2)}function ye(ze,Ne){return M(ze.getFullYear()%100,Ne,2)}function J(ze,Ne){return M(ze.getFullYear()%1e4,Ne,4)}function ne(ze){var Ne=ze.getTimezoneOffset();return(Ne>0?"-":(Ne*=-1,"+"))+M(Ne/60|0,"0",2)+M(Ne%60,"0",2)}function de(ze,Ne){return M(ze.getUTCDate(),Ne,2)}function xe(ze,Ne){return M(ze.getUTCHours(),Ne,2)}function ue(ze,Ne){return M(ze.getUTCHours()%12||12,Ne,2)}function ge(ze,Ne){return M(1+f.Z.count((0,h.Z)(ze),ze),Ne,3)}function be(ze,Ne){return M(ze.getUTCMilliseconds(),Ne,3)}function we(ze,Ne){return be(ze,Ne)+"000"}function ke(ze,Ne){return M(ze.getUTCMonth()+1,Ne,2)}function Ae(ze,Ne){return M(ze.getUTCMinutes(),Ne,2)}function Ee(ze,Ne){return M(ze.getUTCSeconds(),Ne,2)}function De(ze){var Ne=ze.getUTCDay();return Ne===0?7:Ne}function Re(ze,Ne){return M(l.Ox.count((0,h.Z)(ze)-1,ze),Ne,2)}function Ie(ze,Ne){var Qe=ze.getUTCDay();return ze=Qe>=4||Qe===0?(0,l.hB)(ze):l.hB.ceil(ze),M(l.hB.count((0,h.Z)(ze),ze)+((0,h.Z)(ze).getUTCDay()===4),Ne,2)}function Be(ze){return ze.getUTCDay()}function Ue(ze,Ne){return M(l.l6.count((0,h.Z)(ze)-1,ze),Ne,2)}function qe(ze,Ne){return M(ze.getUTCFullYear()%100,Ne,2)}function Ye(ze,Ne){return M(ze.getUTCFullYear()%1e4,Ne,4)}function at(){return"+0000"}function lt(){return"%"}function ct(ze){return+ze}function bt(ze){return Math.floor(+ze/1e3)}g=v({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"]}),b=g.format,g.parse,x=g.utcFormat,g.utcParse},82301:function(o,a,n){n.d(a,{a:function(){return c}});var l=n(30052),f=n(54263),s=(0,l.Z)(function(d){d.setHours(0,0,0,0)},function(d,h){d.setDate(d.getDate()+h)},function(d,h){return(h-d-(h.getTimezoneOffset()-d.getTimezoneOffset())*f.yB)/f.UD},function(d){return d.getDate()-1});a.Z=s;var c=s.range},54263:function(o,a,n){n.d(a,{UD:function(){return c},Y2:function(){return s},Ym:function(){return l},iM:function(){return d},yB:function(){return f}});var l=1e3,f=6e4,s=36e5,c=864e5,d=6048e5},81041:function(o,a,n){n.r(a),n.d(a,{timeDay:function(){return w.Z},timeDays:function(){return w.a},timeFriday:function(){return k.mC},timeFridays:function(){return k.b$},timeHour:function(){return x},timeHours:function(){return _},timeInterval:function(){return l.Z},timeMillisecond:function(){return s},timeMilliseconds:function(){return c},timeMinute:function(){return v},timeMinutes:function(){return g},timeMonday:function(){return k.wA},timeMondays:function(){return k.bJ},timeMonth:function(){return M},timeMonths:function(){return S},timeSaturday:function(){return k.EY},timeSaturdays:function(){return k.Ff},timeSecond:function(){return p},timeSeconds:function(){return m},timeSunday:function(){return k.OM},timeSundays:function(){return k.vm},timeThursday:function(){return k.bL},timeThursdays:function(){return k.$t},timeTuesday:function(){return k.sy},timeTuesdays:function(){return k.aU},timeWednesday:function(){return k.zg},timeWednesdays:function(){return k.Ld},timeWeek:function(){return k.OM},timeWeeks:function(){return k.vm},timeYear:function(){return C.Z},timeYears:function(){return C.g},utcDay:function(){return z.Z},utcDays:function(){return z.y},utcFriday:function(){return B.QQ},utcFridays:function(){return B.fz},utcHour:function(){return F},utcHours:function(){return A},utcMillisecond:function(){return s},utcMilliseconds:function(){return c},utcMinute:function(){return D},utcMinutes:function(){return O},utcMonday:function(){return B.l6},utcMondays:function(){return B.$3},utcMonth:function(){return j},utcMonths:function(){return N},utcSaturday:function(){return B.g4},utcSaturdays:function(){return B.Q_},utcSecond:function(){return p},utcSeconds:function(){return m},utcSunday:function(){return B.Ox},utcSundays:function(){return B.SU},utcThursday:function(){return B.hB},utcThursdays:function(){return B.xj},utcTuesday:function(){return B.J1},utcTuesdays:function(){return B.DK},utcWednesday:function(){return B.b3},utcWednesdays:function(){return B.uy},utcWeek:function(){return B.Ox},utcWeeks:function(){return B.SU},utcYear:function(){return E.Z},utcYears:function(){return E.D}});var l=n(30052),f=(0,l.Z)(function(){},function(W,G){W.setTime(+W+G)},function(W,G){return G-W});f.every=function(W){return W=Math.floor(W),isFinite(W)&&W>0?W>1?(0,l.Z)(function(G){G.setTime(Math.floor(G/W)*W)},function(G,L){G.setTime(+G+L*W)},function(G,L){return(L-G)/W}):f:null};var s=f,c=f.range,d=n(54263),h=(0,l.Z)(function(W){W.setTime(W-W.getMilliseconds())},function(W,G){W.setTime(+W+G*d.Ym)},function(W,G){return(G-W)/d.Ym},function(W){return W.getUTCSeconds()}),p=h,m=h.range,y=(0,l.Z)(function(W){W.setTime(W-W.getMilliseconds()-W.getSeconds()*d.Ym)},function(W,G){W.setTime(+W+G*d.yB)},function(W,G){return(G-W)/d.yB},function(W){return W.getMinutes()}),v=y,g=y.range,b=(0,l.Z)(function(W){W.setTime(W-W.getMilliseconds()-W.getSeconds()*d.Ym-W.getMinutes()*d.yB)},function(W,G){W.setTime(+W+G*d.Y2)},function(W,G){return(G-W)/d.Y2},function(W){return W.getHours()}),x=b,_=b.range,w=n(82301),k=n(59879),T=(0,l.Z)(function(W){W.setDate(1),W.setHours(0,0,0,0)},function(W,G){W.setMonth(W.getMonth()+G)},function(W,G){return G.getMonth()-W.getMonth()+12*(G.getFullYear()-W.getFullYear())},function(W){return W.getMonth()}),M=T,S=T.range,C=n(34823),P=(0,l.Z)(function(W){W.setUTCSeconds(0,0)},function(W,G){W.setTime(+W+G*d.yB)},function(W,G){return(G-W)/d.yB},function(W){return W.getUTCMinutes()}),D=P,O=P.range,R=(0,l.Z)(function(W){W.setUTCMinutes(0,0,0)},function(W,G){W.setTime(+W+G*d.Y2)},function(W,G){return(G-W)/d.Y2},function(W){return W.getUTCHours()}),F=R,A=R.range,z=n(48480),B=n(58176),$=(0,l.Z)(function(W){W.setUTCDate(1),W.setUTCHours(0,0,0,0)},function(W,G){W.setUTCMonth(W.getUTCMonth()+G)},function(W,G){return G.getUTCMonth()-W.getUTCMonth()+12*(G.getUTCFullYear()-W.getUTCFullYear())},function(W){return W.getUTCMonth()}),j=$,N=$.range,E=n(79791)},30052:function(o,a,n){n.d(a,{Z:function(){return s}});var l=new Date,f=new Date;function s(c,d,h,p){function m(y){return c(y=arguments.length===0?new Date:new Date(+y)),y}return m.floor=function(y){return c(y=new Date(+y)),y},m.ceil=function(y){return c(y=new Date(y-1)),d(y,1),c(y),y},m.round=function(y){var v=m(y),g=m.ceil(y);return y-v0))return x;do x.push(b=new Date(+y)),d(y,g),c(y);while(b=v)for(;c(v),!y(v);)v.setTime(v-1)},function(v,g){if(v>=v)if(g<0)for(;++g<=0;)for(;d(v,-1),!y(v););else for(;--g>=0;)for(;d(v,1),!y(v););})},h&&(m.count=function(y,v){return l.setTime(+y),f.setTime(+v),c(l),c(f),Math.floor(h(l,f))},m.every=function(y){return y=Math.floor(y),isFinite(y)&&y>0?y>1?m.filter(p?function(v){return p(v)%y==0}:function(v){return m.count(0,v)%y==0}):m:null}),m}},48480:function(o,a,n){n.d(a,{y:function(){return c}});var l=n(30052),f=n(54263),s=(0,l.Z)(function(d){d.setUTCHours(0,0,0,0)},function(d,h){d.setUTCDate(d.getUTCDate()+h)},function(d,h){return(h-d)/f.UD},function(d){return d.getUTCDate()-1});a.Z=s;var c=s.range},58176:function(o,a,n){n.d(a,{$3:function(){return b},DK:function(){return x},J1:function(){return h},Ox:function(){return c},QQ:function(){return y},Q_:function(){return T},SU:function(){return g},b3:function(){return p},fz:function(){return k},g4:function(){return v},hB:function(){return m},l6:function(){return d},uy:function(){return _},xj:function(){return w}});var l=n(30052),f=n(54263);function s(M){return(0,l.Z)(function(S){S.setUTCDate(S.getUTCDate()-(S.getUTCDay()+7-M)%7),S.setUTCHours(0,0,0,0)},function(S,C){S.setUTCDate(S.getUTCDate()+7*C)},function(S,C){return(C-S)/f.iM})}var c=s(0),d=s(1),h=s(2),p=s(3),m=s(4),y=s(5),v=s(6),g=c.range,b=d.range,x=h.range,_=p.range,w=m.range,k=y.range,T=v.range},79791:function(o,a,n){n.d(a,{D:function(){return s}});var l=n(30052),f=(0,l.Z)(function(c){c.setUTCMonth(0,1),c.setUTCHours(0,0,0,0)},function(c,d){c.setUTCFullYear(c.getUTCFullYear()+d)},function(c,d){return d.getUTCFullYear()-c.getUTCFullYear()},function(c){return c.getUTCFullYear()});f.every=function(c){return isFinite(c=Math.floor(c))&&c>0?(0,l.Z)(function(d){d.setUTCFullYear(Math.floor(d.getUTCFullYear()/c)*c),d.setUTCMonth(0,1),d.setUTCHours(0,0,0,0)},function(d,h){d.setUTCFullYear(d.getUTCFullYear()+h*c)}):null},a.Z=f;var s=f.range},59879:function(o,a,n){n.d(a,{$t:function(){return w},EY:function(){return v},Ff:function(){return T},Ld:function(){return _},OM:function(){return c},aU:function(){return x},b$:function(){return k},bJ:function(){return b},bL:function(){return m},mC:function(){return y},sy:function(){return h},vm:function(){return g},wA:function(){return d},zg:function(){return p}});var l=n(30052),f=n(54263);function s(M){return(0,l.Z)(function(S){S.setDate(S.getDate()-(S.getDay()+7-M)%7),S.setHours(0,0,0,0)},function(S,C){S.setDate(S.getDate()+7*C)},function(S,C){return(C-S-(C.getTimezoneOffset()-S.getTimezoneOffset())*f.yB)/f.iM})}var c=s(0),d=s(1),h=s(2),p=s(3),m=s(4),y=s(5),v=s(6),g=c.range,b=d.range,x=h.range,_=p.range,w=m.range,k=y.range,T=v.range},34823:function(o,a,n){n.d(a,{g:function(){return s}});var l=n(30052),f=(0,l.Z)(function(c){c.setMonth(0,1),c.setHours(0,0,0,0)},function(c,d){c.setFullYear(c.getFullYear()+d)},function(c,d){return d.getFullYear()-c.getFullYear()},function(c){return c.getFullYear()});f.every=function(c){return isFinite(c=Math.floor(c))&&c>0?(0,l.Z)(function(d){d.setFullYear(Math.floor(d.getFullYear()/c)*c),d.setMonth(0,1),d.setHours(0,0,0,0)},function(d,h){d.setFullYear(d.getFullYear()+h*c)}):null},a.Z=f;var s=f.range},17045:function(o,a,n){var l=n(8709),f=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",s=Object.prototype.toString,c=Array.prototype.concat,d=Object.defineProperty,h=n(55622)(),p=d&&h,m=function(v,g,b,x){if(g in v){if(x===!0){if(v[g]===b)return}else if(typeof(_=x)!="function"||s.call(_)!=="[object Function]"||!x())return}var _;p?d(v,g,{configurable:!0,enumerable:!1,value:b,writable:!0}):v[g]=b},y=function(v,g){var b=arguments.length>2?arguments[2]:{},x=l(g);f&&(x=c.call(x,Object.getOwnPropertySymbols(g)));for(var _=0;_0&&C.length>M&&!C.warned){C.warned=!0;var D=new Error("Possible EventEmitter memory leak detected. "+C.length+" "+String(w)+" listeners added. Use emitter.setMaxListeners() to increase limit");D.name="MaxListenersExceededWarning",D.emitter=_,D.type=w,D.count=C.length,P=D,console&&console.warn&&console.warn(P)}return _}function m(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function y(_,w,k){var T={fired:!1,wrapFn:void 0,target:_,type:w,listener:k},M=m.bind(T);return M.listener=k,T.wrapFn=M,M}function v(_,w,k){var T=_._events;if(T===void 0)return[];var M=T[w];return M===void 0?[]:typeof M=="function"?k?[M.listener||M]:[M]:k?function(S){for(var C=new Array(S.length),P=0;P0&&(S=w[0]),S instanceof Error)throw S;var C=new Error("Unhandled error."+(S?" ("+S.message+")":""));throw C.context=S,C}var P=M[_];if(P===void 0)return!1;if(typeof P=="function")l(P,this,w);else{var D=P.length,O=b(P,D);for(k=0;k=0;S--)if(k[S]===w||k[S].listener===w){C=k[S].listener,M=S;break}if(M<0)return this;M===0?k.shift():function(P,D){for(;D+1=0;T--)this.removeListener(_,w[T]);return this},s.prototype.listeners=function(_){return v(this,_,!0)},s.prototype.rawListeners=function(_){return v(this,_,!1)},s.listenerCount=function(_,w){return typeof _.listenerCount=="function"?_.listenerCount(w):g.call(_,w)},s.prototype.listenerCount=g,s.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]}},92770:function(o,a,n){var l=n(18546);o.exports=function(f){var s=typeof f;if(s==="string"){var c=f;if((f=+f)==0&&l(c))return!1}else if(s!=="number")return!1;return f-f<1}},31353:function(o,a,n){var l=n(85395),f=Object.prototype.toString,s=Object.prototype.hasOwnProperty;o.exports=function(c,d,h){if(!l(d))throw new TypeError("iterator must be a function");var p;arguments.length>=3&&(p=h),f.call(c)==="[object Array]"?function(m,y,v){for(var g=0,b=m.length;g"u"?l:v(Uint8Array),x={"%AggregateError%":typeof AggregateError>"u"?l:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?l:ArrayBuffer,"%ArrayIteratorPrototype%":y?v([][Symbol.iterator]()):l,"%AsyncFromSyncIteratorPrototype%":l,"%AsyncFunction%":g,"%AsyncGenerator%":g,"%AsyncGeneratorFunction%":g,"%AsyncIteratorPrototype%":g,"%Atomics%":typeof Atomics>"u"?l:Atomics,"%BigInt%":typeof BigInt>"u"?l:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?l:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?l:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?l:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?l:Float32Array,"%Float64Array%":typeof Float64Array>"u"?l:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?l:FinalizationRegistry,"%Function%":s,"%GeneratorFunction%":g,"%Int8Array%":typeof Int8Array>"u"?l:Int8Array,"%Int16Array%":typeof Int16Array>"u"?l:Int16Array,"%Int32Array%":typeof Int32Array>"u"?l:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y?v(v([][Symbol.iterator]())):l,"%JSON%":typeof JSON=="object"?JSON:l,"%Map%":typeof Map>"u"?l:Map,"%MapIteratorPrototype%":typeof Map<"u"&&y?v(new Map()[Symbol.iterator]()):l,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?l:Promise,"%Proxy%":typeof Proxy>"u"?l:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?l:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?l:Set,"%SetIteratorPrototype%":typeof Set<"u"&&y?v(new Set()[Symbol.iterator]()):l,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?l:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y?v(""[Symbol.iterator]()):l,"%Symbol%":y?Symbol:l,"%SyntaxError%":f,"%ThrowTypeError%":m,"%TypedArray%":b,"%TypeError%":c,"%Uint8Array%":typeof Uint8Array>"u"?l:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?l:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?l:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?l:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?l:WeakMap,"%WeakRef%":typeof WeakRef>"u"?l:WeakRef,"%WeakSet%":typeof WeakSet>"u"?l:WeakSet};try{null.error}catch(z){var _=v(v(z));x["%Error.prototype%"]=_}var w=function z(B){var $;if(B==="%AsyncFunction%")$=d("async function () {}");else if(B==="%GeneratorFunction%")$=d("function* () {}");else if(B==="%AsyncGeneratorFunction%")$=d("async function* () {}");else if(B==="%AsyncGenerator%"){var j=z("%AsyncGeneratorFunction%");j&&($=j.prototype)}else if(B==="%AsyncIteratorPrototype%"){var N=z("%AsyncGenerator%");N&&($=v(N.prototype))}return x[B]=$,$},k={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},T=n(77575),M=n(35065),S=T.call(Function.call,Array.prototype.concat),C=T.call(Function.apply,Array.prototype.splice),P=T.call(Function.call,String.prototype.replace),D=T.call(Function.call,String.prototype.slice),O=T.call(Function.call,RegExp.prototype.exec),R=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,F=/\\(\\)?/g,A=function(z,B){var $,j=z;if(M(k,j)&&(j="%"+($=k[j])[0]+"%"),M(x,j)){var N=x[j];if(N===g&&(N=w(j)),N===void 0&&!B)throw new c("intrinsic "+z+" exists, but is not available. Please file an issue!");return{alias:$,name:j,value:N}}throw new f("intrinsic "+z+" does not exist!")};o.exports=function(z,B){if(typeof z!="string"||z.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof B!="boolean")throw new c('"allowMissing" argument must be a boolean');if(O(/^%?[^%]*%?$/,z)===null)throw new f("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var $=function(Q){var Y=D(Q,0,1),Z=D(Q,-1);if(Y==="%"&&Z!=="%")throw new f("invalid intrinsic syntax, expected closing `%`");if(Z==="%"&&Y!=="%")throw new f("invalid intrinsic syntax, expected opening `%`");var X=[];return P(Q,R,function(re,ie,le,se){X[X.length]=le?P(se,F,"$1"):ie||re}),X}(z),j=$.length>0?$[0]:"",N=A("%"+j+"%",B),E=N.name,W=N.value,G=!1,L=N.alias;L&&(j=L[0],C($,S([0,1],L)));for(var q=1,H=!0;q<$.length;q+=1){var V=$[q],te=D(V,0,1),ee=D(V,-1);if((te==='"'||te==="'"||te==="`"||ee==='"'||ee==="'"||ee==="`")&&te!==ee)throw new f("property names with quotes must have matching quotes");if(V!=="constructor"&&H||(G=!0),M(x,E="%"+(j+="."+V)+"%"))W=x[E];else if(W!=null){if(!(V in W)){if(!B)throw new c("base intrinsic for "+z+" exists, but the property is not available.");return}if(h&&q+1>=$.length){var U=h(W,V);W=(H=!!U)&&"get"in U&&!("originalValue"in U.get)?U.get:W[V]}else H=M(W,V),W=W[V];H&&!G&&(x[E]=W)}}return W}},85400:function(o){o.exports=function(a,n){var l=n[0],f=n[1],s=n[2],c=n[3],d=n[4],h=n[5],p=n[6],m=n[7],y=n[8],v=n[9],g=n[10],b=n[11],x=n[12],_=n[13],w=n[14],k=n[15];return a[0]=h*(g*k-b*w)-v*(p*k-m*w)+_*(p*b-m*g),a[1]=-(f*(g*k-b*w)-v*(s*k-c*w)+_*(s*b-c*g)),a[2]=f*(p*k-m*w)-h*(s*k-c*w)+_*(s*m-c*p),a[3]=-(f*(p*b-m*g)-h*(s*b-c*g)+v*(s*m-c*p)),a[4]=-(d*(g*k-b*w)-y*(p*k-m*w)+x*(p*b-m*g)),a[5]=l*(g*k-b*w)-y*(s*k-c*w)+x*(s*b-c*g),a[6]=-(l*(p*k-m*w)-d*(s*k-c*w)+x*(s*m-c*p)),a[7]=l*(p*b-m*g)-d*(s*b-c*g)+y*(s*m-c*p),a[8]=d*(v*k-b*_)-y*(h*k-m*_)+x*(h*b-m*v),a[9]=-(l*(v*k-b*_)-y*(f*k-c*_)+x*(f*b-c*v)),a[10]=l*(h*k-m*_)-d*(f*k-c*_)+x*(f*m-c*h),a[11]=-(l*(h*b-m*v)-d*(f*b-c*v)+y*(f*m-c*h)),a[12]=-(d*(v*w-g*_)-y*(h*w-p*_)+x*(h*g-p*v)),a[13]=l*(v*w-g*_)-y*(f*w-s*_)+x*(f*g-s*v),a[14]=-(l*(h*w-p*_)-d*(f*w-s*_)+x*(f*p-s*h)),a[15]=l*(h*g-p*v)-d*(f*g-s*v)+y*(f*p-s*h),a}},42331:function(o){o.exports=function(a){var n=new Float32Array(16);return n[0]=a[0],n[1]=a[1],n[2]=a[2],n[3]=a[3],n[4]=a[4],n[5]=a[5],n[6]=a[6],n[7]=a[7],n[8]=a[8],n[9]=a[9],n[10]=a[10],n[11]=a[11],n[12]=a[12],n[13]=a[13],n[14]=a[14],n[15]=a[15],n}},31042:function(o){o.exports=function(a,n){return a[0]=n[0],a[1]=n[1],a[2]=n[2],a[3]=n[3],a[4]=n[4],a[5]=n[5],a[6]=n[6],a[7]=n[7],a[8]=n[8],a[9]=n[9],a[10]=n[10],a[11]=n[11],a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15],a}},11902:function(o){o.exports=function(){var a=new Float32Array(16);return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},89887:function(o){o.exports=function(a){var n=a[0],l=a[1],f=a[2],s=a[3],c=a[4],d=a[5],h=a[6],p=a[7],m=a[8],y=a[9],v=a[10],g=a[11],b=a[12],x=a[13],_=a[14],w=a[15];return(n*d-l*c)*(v*w-g*_)-(n*h-f*c)*(y*w-g*x)+(n*p-s*c)*(y*_-v*x)+(l*h-f*d)*(m*w-g*b)-(l*p-s*d)*(m*_-v*b)+(f*p-s*h)*(m*x-y*b)}},27812:function(o){o.exports=function(a,n){var l=n[0],f=n[1],s=n[2],c=n[3],d=l+l,h=f+f,p=s+s,m=l*d,y=f*d,v=f*h,g=s*d,b=s*h,x=s*p,_=c*d,w=c*h,k=c*p;return a[0]=1-v-x,a[1]=y+k,a[2]=g-w,a[3]=0,a[4]=y-k,a[5]=1-m-x,a[6]=b+_,a[7]=0,a[8]=g+w,a[9]=b-_,a[10]=1-m-v,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},34045:function(o){o.exports=function(a,n,l){var f,s,c,d=l[0],h=l[1],p=l[2],m=Math.sqrt(d*d+h*h+p*p);return Math.abs(m)<1e-6?null:(d*=m=1/m,h*=m,p*=m,f=Math.sin(n),c=1-(s=Math.cos(n)),a[0]=d*d*c+s,a[1]=h*d*c+p*f,a[2]=p*d*c-h*f,a[3]=0,a[4]=d*h*c-p*f,a[5]=h*h*c+s,a[6]=p*h*c+d*f,a[7]=0,a[8]=d*p*c+h*f,a[9]=h*p*c-d*f,a[10]=p*p*c+s,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a)}},45973:function(o){o.exports=function(a,n,l){var f=n[0],s=n[1],c=n[2],d=n[3],h=f+f,p=s+s,m=c+c,y=f*h,v=f*p,g=f*m,b=s*p,x=s*m,_=c*m,w=d*h,k=d*p,T=d*m;return a[0]=1-(b+_),a[1]=v+T,a[2]=g-k,a[3]=0,a[4]=v-T,a[5]=1-(y+_),a[6]=x+w,a[7]=0,a[8]=g+k,a[9]=x-w,a[10]=1-(y+b),a[11]=0,a[12]=l[0],a[13]=l[1],a[14]=l[2],a[15]=1,a}},81472:function(o){o.exports=function(a,n){return a[0]=n[0],a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=n[1],a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=n[2],a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},14669:function(o){o.exports=function(a,n){return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=n[0],a[13]=n[1],a[14]=n[2],a[15]=1,a}},75262:function(o){o.exports=function(a,n){var l=Math.sin(n),f=Math.cos(n);return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=f,a[6]=l,a[7]=0,a[8]=0,a[9]=-l,a[10]=f,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},331:function(o){o.exports=function(a,n){var l=Math.sin(n),f=Math.cos(n);return a[0]=f,a[1]=0,a[2]=-l,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=l,a[9]=0,a[10]=f,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},11049:function(o){o.exports=function(a,n){var l=Math.sin(n),f=Math.cos(n);return a[0]=f,a[1]=l,a[2]=0,a[3]=0,a[4]=-l,a[5]=f,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},75195:function(o){o.exports=function(a,n,l,f,s,c,d){var h=1/(l-n),p=1/(s-f),m=1/(c-d);return a[0]=2*c*h,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=2*c*p,a[6]=0,a[7]=0,a[8]=(l+n)*h,a[9]=(s+f)*p,a[10]=(d+c)*m,a[11]=-1,a[12]=0,a[13]=0,a[14]=d*c*2*m,a[15]=0,a}},71551:function(o){o.exports=function(a){return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},79576:function(o,a,n){o.exports={create:n(11902),clone:n(42331),copy:n(31042),identity:n(71551),transpose:n(88654),invert:n(95874),adjoint:n(85400),determinant:n(89887),multiply:n(91362),translate:n(31283),scale:n(10789),rotate:n(65074),rotateX:n(35545),rotateY:n(94918),rotateZ:n(15692),fromRotation:n(34045),fromRotationTranslation:n(45973),fromScaling:n(81472),fromTranslation:n(14669),fromXRotation:n(75262),fromYRotation:n(331),fromZRotation:n(11049),fromQuat:n(27812),frustum:n(75195),perspective:n(7864),perspectiveFromFieldOfView:n(35279),ortho:n(60378),lookAt:n(65551),str:n(6726)}},95874:function(o){o.exports=function(a,n){var l=n[0],f=n[1],s=n[2],c=n[3],d=n[4],h=n[5],p=n[6],m=n[7],y=n[8],v=n[9],g=n[10],b=n[11],x=n[12],_=n[13],w=n[14],k=n[15],T=l*h-f*d,M=l*p-s*d,S=l*m-c*d,C=f*p-s*h,P=f*m-c*h,D=s*m-c*p,O=y*_-v*x,R=y*w-g*x,F=y*k-b*x,A=v*w-g*_,z=v*k-b*_,B=g*k-b*w,$=T*B-M*z+S*A+C*F-P*R+D*O;return $?($=1/$,a[0]=(h*B-p*z+m*A)*$,a[1]=(s*z-f*B-c*A)*$,a[2]=(_*D-w*P+k*C)*$,a[3]=(g*P-v*D-b*C)*$,a[4]=(p*F-d*B-m*R)*$,a[5]=(l*B-s*F+c*R)*$,a[6]=(w*S-x*D-k*M)*$,a[7]=(y*D-g*S+b*M)*$,a[8]=(d*z-h*F+m*O)*$,a[9]=(f*F-l*z-c*O)*$,a[10]=(x*P-_*S+k*T)*$,a[11]=(v*S-y*P-b*T)*$,a[12]=(h*R-d*A-p*O)*$,a[13]=(l*A-f*R+s*O)*$,a[14]=(_*M-x*C-w*T)*$,a[15]=(y*C-v*M+g*T)*$,a):null}},65551:function(o,a,n){var l=n(71551);o.exports=function(f,s,c,d){var h,p,m,y,v,g,b,x,_,w,k=s[0],T=s[1],M=s[2],S=d[0],C=d[1],P=d[2],D=c[0],O=c[1],R=c[2];return Math.abs(k-D)<1e-6&&Math.abs(T-O)<1e-6&&Math.abs(M-R)<1e-6?l(f):(b=k-D,x=T-O,_=M-R,h=C*(_*=w=1/Math.sqrt(b*b+x*x+_*_))-P*(x*=w),p=P*(b*=w)-S*_,m=S*x-C*b,(w=Math.sqrt(h*h+p*p+m*m))?(h*=w=1/w,p*=w,m*=w):(h=0,p=0,m=0),y=x*m-_*p,v=_*h-b*m,g=b*p-x*h,(w=Math.sqrt(y*y+v*v+g*g))?(y*=w=1/w,v*=w,g*=w):(y=0,v=0,g=0),f[0]=h,f[1]=y,f[2]=b,f[3]=0,f[4]=p,f[5]=v,f[6]=x,f[7]=0,f[8]=m,f[9]=g,f[10]=_,f[11]=0,f[12]=-(h*k+p*T+m*M),f[13]=-(y*k+v*T+g*M),f[14]=-(b*k+x*T+_*M),f[15]=1,f)}},91362:function(o){o.exports=function(a,n,l){var f=n[0],s=n[1],c=n[2],d=n[3],h=n[4],p=n[5],m=n[6],y=n[7],v=n[8],g=n[9],b=n[10],x=n[11],_=n[12],w=n[13],k=n[14],T=n[15],M=l[0],S=l[1],C=l[2],P=l[3];return a[0]=M*f+S*h+C*v+P*_,a[1]=M*s+S*p+C*g+P*w,a[2]=M*c+S*m+C*b+P*k,a[3]=M*d+S*y+C*x+P*T,M=l[4],S=l[5],C=l[6],P=l[7],a[4]=M*f+S*h+C*v+P*_,a[5]=M*s+S*p+C*g+P*w,a[6]=M*c+S*m+C*b+P*k,a[7]=M*d+S*y+C*x+P*T,M=l[8],S=l[9],C=l[10],P=l[11],a[8]=M*f+S*h+C*v+P*_,a[9]=M*s+S*p+C*g+P*w,a[10]=M*c+S*m+C*b+P*k,a[11]=M*d+S*y+C*x+P*T,M=l[12],S=l[13],C=l[14],P=l[15],a[12]=M*f+S*h+C*v+P*_,a[13]=M*s+S*p+C*g+P*w,a[14]=M*c+S*m+C*b+P*k,a[15]=M*d+S*y+C*x+P*T,a}},60378:function(o){o.exports=function(a,n,l,f,s,c,d){var h=1/(n-l),p=1/(f-s),m=1/(c-d);return a[0]=-2*h,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=-2*p,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=2*m,a[11]=0,a[12]=(n+l)*h,a[13]=(s+f)*p,a[14]=(d+c)*m,a[15]=1,a}},7864:function(o){o.exports=function(a,n,l,f,s){var c=1/Math.tan(n/2),d=1/(f-s);return a[0]=c/l,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=c,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=(s+f)*d,a[11]=-1,a[12]=0,a[13]=0,a[14]=2*s*f*d,a[15]=0,a}},35279:function(o){o.exports=function(a,n,l,f){var s=Math.tan(n.upDegrees*Math.PI/180),c=Math.tan(n.downDegrees*Math.PI/180),d=Math.tan(n.leftDegrees*Math.PI/180),h=Math.tan(n.rightDegrees*Math.PI/180),p=2/(d+h),m=2/(s+c);return a[0]=p,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=m,a[6]=0,a[7]=0,a[8]=-(d-h)*p*.5,a[9]=(s-c)*m*.5,a[10]=f/(l-f),a[11]=-1,a[12]=0,a[13]=0,a[14]=f*l/(l-f),a[15]=0,a}},65074:function(o){o.exports=function(a,n,l,f){var s,c,d,h,p,m,y,v,g,b,x,_,w,k,T,M,S,C,P,D,O,R,F,A,z=f[0],B=f[1],$=f[2],j=Math.sqrt(z*z+B*B+$*$);return Math.abs(j)<1e-6?null:(z*=j=1/j,B*=j,$*=j,s=Math.sin(l),d=1-(c=Math.cos(l)),h=n[0],p=n[1],m=n[2],y=n[3],v=n[4],g=n[5],b=n[6],x=n[7],_=n[8],w=n[9],k=n[10],T=n[11],M=z*z*d+c,S=B*z*d+$*s,C=$*z*d-B*s,P=z*B*d-$*s,D=B*B*d+c,O=$*B*d+z*s,R=z*$*d+B*s,F=B*$*d-z*s,A=$*$*d+c,a[0]=h*M+v*S+_*C,a[1]=p*M+g*S+w*C,a[2]=m*M+b*S+k*C,a[3]=y*M+x*S+T*C,a[4]=h*P+v*D+_*O,a[5]=p*P+g*D+w*O,a[6]=m*P+b*D+k*O,a[7]=y*P+x*D+T*O,a[8]=h*R+v*F+_*A,a[9]=p*R+g*F+w*A,a[10]=m*R+b*F+k*A,a[11]=y*R+x*F+T*A,n!==a&&(a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15]),a)}},35545:function(o){o.exports=function(a,n,l){var f=Math.sin(l),s=Math.cos(l),c=n[4],d=n[5],h=n[6],p=n[7],m=n[8],y=n[9],v=n[10],g=n[11];return n!==a&&(a[0]=n[0],a[1]=n[1],a[2]=n[2],a[3]=n[3],a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15]),a[4]=c*s+m*f,a[5]=d*s+y*f,a[6]=h*s+v*f,a[7]=p*s+g*f,a[8]=m*s-c*f,a[9]=y*s-d*f,a[10]=v*s-h*f,a[11]=g*s-p*f,a}},94918:function(o){o.exports=function(a,n,l){var f=Math.sin(l),s=Math.cos(l),c=n[0],d=n[1],h=n[2],p=n[3],m=n[8],y=n[9],v=n[10],g=n[11];return n!==a&&(a[4]=n[4],a[5]=n[5],a[6]=n[6],a[7]=n[7],a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15]),a[0]=c*s-m*f,a[1]=d*s-y*f,a[2]=h*s-v*f,a[3]=p*s-g*f,a[8]=c*f+m*s,a[9]=d*f+y*s,a[10]=h*f+v*s,a[11]=p*f+g*s,a}},15692:function(o){o.exports=function(a,n,l){var f=Math.sin(l),s=Math.cos(l),c=n[0],d=n[1],h=n[2],p=n[3],m=n[4],y=n[5],v=n[6],g=n[7];return n!==a&&(a[8]=n[8],a[9]=n[9],a[10]=n[10],a[11]=n[11],a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15]),a[0]=c*s+m*f,a[1]=d*s+y*f,a[2]=h*s+v*f,a[3]=p*s+g*f,a[4]=m*s-c*f,a[5]=y*s-d*f,a[6]=v*s-h*f,a[7]=g*s-p*f,a}},10789:function(o){o.exports=function(a,n,l){var f=l[0],s=l[1],c=l[2];return a[0]=n[0]*f,a[1]=n[1]*f,a[2]=n[2]*f,a[3]=n[3]*f,a[4]=n[4]*s,a[5]=n[5]*s,a[6]=n[6]*s,a[7]=n[7]*s,a[8]=n[8]*c,a[9]=n[9]*c,a[10]=n[10]*c,a[11]=n[11]*c,a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15],a}},6726:function(o){o.exports=function(a){return"mat4("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+", "+a[6]+", "+a[7]+", "+a[8]+", "+a[9]+", "+a[10]+", "+a[11]+", "+a[12]+", "+a[13]+", "+a[14]+", "+a[15]+")"}},31283:function(o){o.exports=function(a,n,l){var f,s,c,d,h,p,m,y,v,g,b,x,_=l[0],w=l[1],k=l[2];return n===a?(a[12]=n[0]*_+n[4]*w+n[8]*k+n[12],a[13]=n[1]*_+n[5]*w+n[9]*k+n[13],a[14]=n[2]*_+n[6]*w+n[10]*k+n[14],a[15]=n[3]*_+n[7]*w+n[11]*k+n[15]):(f=n[0],s=n[1],c=n[2],d=n[3],h=n[4],p=n[5],m=n[6],y=n[7],v=n[8],g=n[9],b=n[10],x=n[11],a[0]=f,a[1]=s,a[2]=c,a[3]=d,a[4]=h,a[5]=p,a[6]=m,a[7]=y,a[8]=v,a[9]=g,a[10]=b,a[11]=x,a[12]=f*_+h*w+v*k+n[12],a[13]=s*_+p*w+g*k+n[13],a[14]=c*_+m*w+b*k+n[14],a[15]=d*_+y*w+x*k+n[15]),a}},88654:function(o){o.exports=function(a,n){if(a===n){var l=n[1],f=n[2],s=n[3],c=n[6],d=n[7],h=n[11];a[1]=n[4],a[2]=n[8],a[3]=n[12],a[4]=l,a[6]=n[9],a[7]=n[13],a[8]=f,a[9]=c,a[11]=n[14],a[12]=s,a[13]=d,a[14]=h}else a[0]=n[0],a[1]=n[4],a[2]=n[8],a[3]=n[12],a[4]=n[1],a[5]=n[5],a[6]=n[9],a[7]=n[13],a[8]=n[2],a[9]=n[6],a[10]=n[10],a[11]=n[14],a[12]=n[3],a[13]=n[7],a[14]=n[11],a[15]=n[15];return a}},40383:function(o,a,n){var l=n(68318)("%Object.getOwnPropertyDescriptor%",!0);if(l)try{l([],"length")}catch{l=null}o.exports=l},57035:function(o,a,n){var l,f=n(54404);l=typeof n.g.matchMedia=="function"?!n.g.matchMedia("(hover: none)").matches:f,o.exports=l},38520:function(o,a,n){var l=n(54404);o.exports=l&&function(){var f=!1;try{var s=Object.defineProperty({},"passive",{get:function(){f=!0}});window.addEventListener("test",null,s),window.removeEventListener("test",null,s)}catch{f=!1}return f}()},55622:function(o,a,n){var l=n(68318)("%Object.defineProperty%",!0),f=function(){if(l)try{return l({},"a",{value:1}),!0}catch{return!1}return!1};f.hasArrayLengthDefineBug=function(){if(!f())return null;try{return l([],"length",{value:1}).length!==1}catch{return!0}},o.exports=f},57877:function(o,a,n){var l=typeof Symbol<"u"&&Symbol,f=n(35638);o.exports=function(){return typeof l=="function"&&typeof Symbol=="function"&&typeof l("foo")=="symbol"&&typeof Symbol("bar")=="symbol"&&f()}},35638:function(o){o.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var a={},n=Symbol("test"),l=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(l)!=="[object Symbol]")return!1;for(n in a[n]=42,a)return!1;if(typeof Object.keys=="function"&&Object.keys(a).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(a).length!==0)return!1;var f=Object.getOwnPropertySymbols(a);if(f.length!==1||f[0]!==n||!Object.prototype.propertyIsEnumerable.call(a,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(a,n);if(s.value!==42||s.enumerable!==!0)return!1}return!0}},84543:function(o,a,n){var l=n(35638);o.exports=function(){return l()&&!!Symbol.toStringTag}},35065:function(o,a,n){var l=n(77575);o.exports=l.call(Function.call,Object.prototype.hasOwnProperty)},95280:function(o,a){a.read=function(n,l,f,s,c){var d,h,p=8*c-s-1,m=(1<>1,v=-7,g=f?c-1:0,b=f?-1:1,x=n[l+g];for(g+=b,d=x&(1<<-v)-1,x>>=-v,v+=p;v>0;d=256*d+n[l+g],g+=b,v-=8);for(h=d&(1<<-v)-1,d>>=-v,v+=s;v>0;h=256*h+n[l+g],g+=b,v-=8);if(d===0)d=1-y;else{if(d===m)return h?NaN:1/0*(x?-1:1);h+=Math.pow(2,s),d-=y}return(x?-1:1)*h*Math.pow(2,d-s)},a.write=function(n,l,f,s,c,d){var h,p,m,y=8*d-c-1,v=(1<>1,b=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=s?0:d-1,_=s?1:-1,w=l<0||l===0&&1/l<0?1:0;for(l=Math.abs(l),isNaN(l)||l===1/0?(p=isNaN(l)?1:0,h=v):(h=Math.floor(Math.log(l)/Math.LN2),l*(m=Math.pow(2,-h))<1&&(h--,m*=2),(l+=h+g>=1?b/m:b*Math.pow(2,1-g))*m>=2&&(h++,m/=2),h+g>=v?(p=0,h=v):h+g>=1?(p=(l*m-1)*Math.pow(2,c),h+=g):(p=l*Math.pow(2,g-1)*Math.pow(2,c),h=0));c>=8;n[f+x]=255&p,x+=_,p/=256,c-=8);for(h=h<0;n[f+x]=255&h,x+=_,h/=256,y-=8);n[f+x-_]|=128*w}},42018:function(o){typeof Object.create=="function"?o.exports=function(a,n){n&&(a.super_=n,a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}))}:o.exports=function(a,n){if(n){a.super_=n;var l=function(){};l.prototype=n.prototype,a.prototype=new l,a.prototype.constructor=a}}},47216:function(o,a,n){var l=n(84543)(),f=n(6614)("Object.prototype.toString"),s=function(h){return!(l&&h&&typeof h=="object"&&Symbol.toStringTag in h)&&f(h)==="[object Arguments]"},c=function(h){return!!s(h)||h!==null&&typeof h=="object"&&typeof h.length=="number"&&h.length>=0&&f(h)!=="[object Array]"&&f(h.callee)==="[object Function]"},d=function(){return s(arguments)}();s.isLegacyArguments=c,o.exports=d?s:c},54404:function(o){o.exports=!0},85395:function(o){var a,n,l=Function.prototype.toString,f=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply;if(typeof f=="function"&&typeof Object.defineProperty=="function")try{a=Object.defineProperty({},"length",{get:function(){throw n}}),n={},f(function(){throw 42},null,a)}catch(g){g!==n&&(f=null)}else f=null;var s=/^\s*class\b/,c=function(g){try{var b=l.call(g);return s.test(b)}catch{return!1}},d=function(g){try{return!c(g)&&(l.call(g),!0)}catch{return!1}},h=Object.prototype.toString,p=typeof Symbol=="function"&&!!Symbol.toStringTag,m=!(0 in[,]),y=function(){return!1};if(typeof document=="object"){var v=document.all;h.call(v)===h.call(document.all)&&(y=function(g){if((m||!g)&&(g===void 0||typeof g=="object"))try{var b=h.call(g);return(b==="[object HTMLAllCollection]"||b==="[object HTML document.all class]"||b==="[object HTMLCollection]"||b==="[object Object]")&&g("")==null}catch{}return!1})}o.exports=f?function(g){if(y(g))return!0;if(!g||typeof g!="function"&&typeof g!="object")return!1;try{f(g,null,a)}catch(b){if(b!==n)return!1}return!c(g)&&d(g)}:function(g){if(y(g))return!0;if(!g||typeof g!="function"&&typeof g!="object")return!1;if(p)return d(g);if(c(g))return!1;var b=h.call(g);return!(b!=="[object Function]"&&b!=="[object GeneratorFunction]"&&!/^\[object HTML/.test(b))&&d(g)}},65481:function(o,a,n){var l,f=Object.prototype.toString,s=Function.prototype.toString,c=/^\s*(?:function)?\*/,d=n(84543)(),h=Object.getPrototypeOf;o.exports=function(p){if(typeof p!="function")return!1;if(c.test(s.call(p)))return!0;if(!d)return f.call(p)==="[object GeneratorFunction]";if(!h)return!1;if(l===void 0){var m=function(){if(!d)return!1;try{return Function("return function*() {}")()}catch{}}();l=!!m&&h(m)}return h(p)===l}},64274:function(o){o.exports=function(a){return a!=a}},15567:function(o,a,n){var l=n(68222),f=n(17045),s=n(64274),c=n(14922),d=n(22442),h=l(c(),Number);f(h,{getPolyfill:c,implementation:s,shim:d}),o.exports=h},14922:function(o,a,n){var l=n(64274);o.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:l}},22442:function(o,a,n){var l=n(17045),f=n(14922);o.exports=function(){var s=f();return l(Number,{isNaN:s},{isNaN:function(){return Number.isNaN!==s}}),s}},18546:function(o){o.exports=function(a){for(var n,l=a.length,f=0;f13)&&n!==32&&n!==133&&n!==160&&n!==5760&&n!==6158&&(n<8192||n>8205)&&n!==8232&&n!==8233&&n!==8239&&n!==8287&&n!==8288&&n!==12288&&n!==65279)return!1;return!0}},9187:function(o,a,n){var l=n(31353),f=n(72077),s=n(6614),c=s("Object.prototype.toString"),d=n(84543)(),h=n(40383),p=typeof globalThis>"u"?n.g:globalThis,m=f(),y=s("Array.prototype.indexOf",!0)||function(x,_){for(var w=0;w-1}return!!h&&function(w){var k=!1;return l(g,function(T,M){if(!k)try{k=T.call(w)===M}catch{}}),k}(x)}},48956:function(o){var a={left:0,top:0};o.exports=function(n,l,f){l=l||n.currentTarget||n.srcElement,Array.isArray(f)||(f=[0,0]);var s,c=n.clientX||0,d=n.clientY||0,h=(s=l)===window||s===document||s===document.body?a:s.getBoundingClientRect();return f[0]=c-h.left,f[1]=d-h.top,f}},7417:function(o,a,n){var l,f,s,c;f="Promise",c=function(){var d,h,p,m=Object.prototype.toString,y=typeof setImmediate<"u"?function(P){return setImmediate(P)}:setTimeout;try{Object.defineProperty({},"x",{}),d=function(P,D,O,R){return Object.defineProperty(P,D,{value:O,writable:!0,configurable:R!==!1})}}catch{d=function(D,O,R){return D[O]=R,D}}function v(P,D){p.add(P,D),h||(h=y(p.drain))}function g(P){var D,O=typeof P;return P==null||O!="object"&&O!="function"||(D=P.then),typeof D=="function"&&D}function b(){for(var P=0;P0&&v(b,O))}catch(R){w.call(new T(O),R)}}}function w(P){var D=this;D.triggered||(D.triggered=!0,D.def&&(D=D.def),D.msg=P,D.state=2,D.chain.length>0&&v(b,D))}function k(P,D,O,R){for(var F=0;F"u")return!1;for(var b in window)try{if(!v["$"+b]&&f.call(window,b)&&window[b]!==null&&typeof window[b]=="object")try{y(window[b])}catch{return!0}}catch{return!0}return!1}();l=function(b){var x=b!==null&&typeof b=="object",_=s.call(b)==="[object Function]",w=c(b),k=x&&s.call(b)==="[object String]",T=[];if(!x&&!_&&!w)throw new TypeError("Object.keys called on a non-object");var M=p&&_;if(k&&b.length>0&&!f.call(b,0))for(var S=0;S0)for(var C=0;C"u"||!g)return y(R);try{return y(R)}catch{return!1}}(b),O=0;O=0&&a.call(n.callee)==="[object Function]"),f}},95616:function(o){o.exports=function(f){var s=[];return f.replace(n,function(c,d,h){var p=d.toLowerCase();for(h=function(m){var y=m.match(l);return y?y.map(Number):[]}(h),p=="m"&&h.length>2&&(s.push([d].concat(h.splice(0,2))),p="l",d=d=="m"?"l":"L");;){if(h.length==a[p])return h.unshift(d),s.push(h);if(h.lengthc!=b>c&&s<(g-y)*(c-v)/(b-v)+y&&(d=!d)}return d}},52142:function(o,a,n){var l,f=n(69444),s=n(29023),c=n(87263),d=n(11328),h=n(55968),p=n(10670),m=!1,y=s();function v(g,b,x){var _=l.segments(g),w=l.segments(b),k=x(l.combine(_,w));return l.polygon(k)}l={buildLog:function(g){return g===!0?m=f():g===!1&&(m=!1),m!==!1&&m.list},epsilon:function(g){return y.epsilon(g)},segments:function(g){var b=c(!0,y,m);return g.regions.forEach(b.addRegion),{segments:b.calculate(g.inverted),inverted:g.inverted}},combine:function(g,b){return{combined:c(!1,y,m).calculate(g.segments,g.inverted,b.segments,b.inverted),inverted1:g.inverted,inverted2:b.inverted}},selectUnion:function(g){return{segments:h.union(g.combined,m),inverted:g.inverted1||g.inverted2}},selectIntersect:function(g){return{segments:h.intersect(g.combined,m),inverted:g.inverted1&&g.inverted2}},selectDifference:function(g){return{segments:h.difference(g.combined,m),inverted:g.inverted1&&!g.inverted2}},selectDifferenceRev:function(g){return{segments:h.differenceRev(g.combined,m),inverted:!g.inverted1&&g.inverted2}},selectXor:function(g){return{segments:h.xor(g.combined,m),inverted:g.inverted1!==g.inverted2}},polygon:function(g){return{regions:d(g.segments,y,m),inverted:g.inverted}},polygonFromGeoJSON:function(g){return p.toPolygon(l,g)},polygonToGeoJSON:function(g){return p.fromPolygon(l,y,g)},union:function(g,b){return v(g,b,l.selectUnion)},intersect:function(g,b){return v(g,b,l.selectIntersect)},difference:function(g,b){return v(g,b,l.selectDifference)},differenceRev:function(g,b){return v(g,b,l.selectDifferenceRev)},xor:function(g,b){return v(g,b,l.selectXor)}},typeof window=="object"&&(window.PolyBool=l),o.exports=l},69444:function(o){o.exports=function(){var a,n=0,l=!1;function f(s,c){return a.list.push({type:s,data:c?JSON.parse(JSON.stringify(c)):void 0}),a}return a={list:[],segmentId:function(){return n++},checkIntersection:function(s,c){return f("check",{seg1:s,seg2:c})},segmentChop:function(s,c){return f("div_seg",{seg:s,pt:c}),f("chop",{seg:s,pt:c})},statusRemove:function(s){return f("pop_seg",{seg:s})},segmentUpdate:function(s){return f("seg_update",{seg:s})},segmentNew:function(s,c){return f("new_seg",{seg:s,primary:c})},segmentRemove:function(s){return f("rem_seg",{seg:s})},tempStatus:function(s,c,d){return f("temp_status",{seg:s,above:c,below:d})},rewind:function(s){return f("rewind",{seg:s})},status:function(s,c,d){return f("status",{seg:s,above:c,below:d})},vert:function(s){return s===l?a:(l=s,f("vert",{x:s}))},log:function(s){return typeof s!="string"&&(s=JSON.stringify(s,!1," ")),f("log",{txt:s})},reset:function(){return f("reset")},selected:function(s){return f("selected",{segs:s})},chainStart:function(s){return f("chain_start",{seg:s})},chainRemoveHead:function(s,c){return f("chain_rem_head",{index:s,pt:c})},chainRemoveTail:function(s,c){return f("chain_rem_tail",{index:s,pt:c})},chainNew:function(s,c){return f("chain_new",{pt1:s,pt2:c})},chainMatch:function(s){return f("chain_match",{index:s})},chainClose:function(s){return f("chain_close",{index:s})},chainAddHead:function(s,c){return f("chain_add_head",{index:s,pt:c})},chainAddTail:function(s,c){return f("chain_add_tail",{index:s,pt:c})},chainConnect:function(s,c){return f("chain_con",{index1:s,index2:c})},chainReverse:function(s){return f("chain_rev",{index:s})},chainJoin:function(s,c){return f("chain_join",{index1:s,index2:c})},done:function(){return f("done")}}}},29023:function(o){o.exports=function(a){typeof a!="number"&&(a=1e-10);var n={epsilon:function(l){return typeof l=="number"&&(a=l),a},pointAboveOrOnLine:function(l,f,s){var c=f[0],d=f[1],h=s[0],p=s[1],m=l[0];return(h-c)*(l[1]-d)-(p-d)*(m-c)>=-a},pointBetween:function(l,f,s){var c=l[1]-f[1],d=s[0]-f[0],h=l[0]-f[0],p=s[1]-f[1],m=h*d+c*p;return!(m-a)},pointsSameX:function(l,f){return Math.abs(l[0]-f[0])a!=h-c>a&&(d-y)*(c-v)/(h-v)+y-s>a&&(p=!p),d=y,h=v}return p}};return n}},10670:function(o){var a={toPolygon:function(n,l){function f(d){if(d.length<=0)return n.segments({inverted:!1,regions:[]});function h(y){var v=y.slice(0,y.length-1);return n.segments({inverted:!1,regions:[v]})}for(var p=h(d[0]),m=1;m0})}function w(A,z){var B=A.seg,$=z.seg,j=B.start,N=B.end,E=$.start,W=$.end;c&&c.checkIntersection(B,$);var G=s.linesIntersect(j,N,E,W);if(G===!1){if(!s.pointsCollinear(j,N,E)||s.pointsSame(j,W)||s.pointsSame(N,E))return!1;var L=s.pointsSame(j,E),q=s.pointsSame(N,W);if(L&&q)return z;var H=!L&&s.pointBetween(j,E,W),V=!q&&s.pointBetween(N,E,W);if(L)return V?y(z,N):y(A,W),z;H&&(q||(V?y(z,N):y(A,W)),y(z,j))}else G.alongA===0&&(G.alongB===-1?y(A,E):G.alongB===0?y(A,G.pt):G.alongB===1&&y(A,W)),G.alongB===0&&(G.alongA===-1?y(z,j):G.alongA===0?y(z,G.pt):G.alongA===1&&y(z,N));return!1}for(var k=[];!h.isEmpty();){var T=h.getHead();if(c&&c.vert(T.pt[0]),T.isStart){let A=function(){if(S){var z=w(T,S);if(z)return z}return!!C&&w(T,C)};c&&c.segmentNew(T.seg,T.primary);var M=_(T),S=M.before?M.before.ev:null,C=M.after?M.after.ev:null;c&&c.tempStatus(T.seg,!!S&&S.seg,!!C&&C.seg);var P,D,O=A();if(O&&(f?(D=T.seg.myFill.below===null||T.seg.myFill.above!==T.seg.myFill.below)&&(O.seg.myFill.above=!O.seg.myFill.above):O.seg.otherFill=T.seg.myFill,c&&c.segmentUpdate(O.seg),T.other.remove(),T.remove()),h.getHead()!==T){c&&c.rewind(T.seg);continue}f?(D=T.seg.myFill.below===null||T.seg.myFill.above!==T.seg.myFill.below,T.seg.myFill.below=C?C.seg.myFill.above:g,T.seg.myFill.above=D?!T.seg.myFill.below:T.seg.myFill.below):T.seg.otherFill===null&&(P=C?T.primary===C.primary?C.seg.otherFill.above:C.seg.myFill.above:T.primary?b:g,T.seg.otherFill={above:P,below:P}),c&&c.status(T.seg,!!S&&S.seg,!!C&&C.seg),T.other.status=M.insert(l.node({ev:T}))}else{var R=T.status;if(R===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(x.exists(R.prev)&&x.exists(R.next)&&w(R.prev.ev,R.next.ev),c&&c.statusRemove(R.ev.seg),R.remove(),!T.primary){var F=T.seg.myFill;T.seg.myFill=T.seg.otherFill,T.seg.otherFill=F}k.push(T.seg)}h.getHead().remove()}return c&&c.done(),k}return f?{addRegion:function(g){for(var b,x,_,w=g[g.length-1],k=0;k0&&!this.aborted;){var c=this.ifds_to_read.shift();c.offset&&this.scan_ifd(c.id,c.offset,f)}},l.prototype.read_uint16=function(f){var s=this.input;if(f+2>s.length)throw a("unexpected EOF","EBADDATA");return this.big_endian?256*s[f]+s[f+1]:s[f]+256*s[f+1]},l.prototype.read_uint32=function(f){var s=this.input;if(f+4>s.length)throw a("unexpected EOF","EBADDATA");return this.big_endian?16777216*s[f]+65536*s[f+1]+256*s[f+2]+s[f+3]:s[f]+256*s[f+1]+65536*s[f+2]+16777216*s[f+3]},l.prototype.is_subifd_link=function(f,s){return f===0&&s===34665||f===0&&s===34853||f===34665&&s===40965},l.prototype.exif_format_length=function(f){switch(f){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}},l.prototype.exif_format_read=function(f,s){var c;switch(f){case 1:case 2:return this.input[s];case 6:return(c=this.input[s])|33554430*(128&c);case 3:return this.read_uint16(s);case 8:return(c=this.read_uint16(s))|131070*(32768&c);case 4:return this.read_uint32(s);case 9:return 0|this.read_uint32(s);default:return null}},l.prototype.scan_ifd=function(f,s,c){var d=this.read_uint16(s);s+=2;for(var h=0;hthis.input.length)throw a("unexpected EOF","EBADDATA");for(var _=[],w=b,k=0;k0&&(this.ifds_to_read.push({id:p,offset:_[0]}),x=!0),c({is_big_endian:this.big_endian,ifd:f,tag:p,format:m,count:y,entry_offset:s+this.start,data_length:g,data_offset:b+this.start,value:_,is_subifd_link:x})===!1)return void(this.aborted=!0);s+=12}f===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(s)})},o.exports.ExifParser=l,o.exports.get_orientation=function(f){var s=0;try{return new l(f,0,f.length).each(function(c){if(c.ifd===0&&c.tag===274&&Array.isArray(c.value))return s=c.value[0],!1}),s}catch{return-1}}},76767:function(o,a,n){var l=n(14847).n8,f=n(14847).Ag;function s(y,v){if(y.length<4+v)return null;var g=f(y,v);return y.length>4&15,b=15&y[4],x=y[5]>>4&15,_=l(y,6),w=8,k=0;k<_;k++){var T=l(y,w),M=l(y,w+=2),S=d(y,w+=2,x),C=l(y,w+=x);if(w+=2,M===0&&C===1){var P=d(y,w,g),D=d(y,w+g,b);v.item_loc[T]={length:D,offset:P+S}}w+=C*(g+b)}}function p(y,v){for(var g=l(y,4),b=6,x=0;xM.width||T.width===M.width&&T.height>M.height?T:M}),x=g.reduce(function(T,M){return T.height>M.height||T.height===M.height&&T.width>M.width?T:M}),b.width>x.height||b.width===x.height&&b.height>x.width?b:x),w=1;v.transforms.forEach(function(T){var M={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},S={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(T.type==="imir"&&(w=T.value===0?S[w]:M[w=M[w=S[w]]]),T.type==="irot")for(var C=0;C1&&(_.variants=x.variants),x.orientation&&(_.orientation=x.orientation),x.exif_location&&x.exif_location.offset+x.exif_location.length<=p.length){var w=s(p,x.exif_location.offset),k=p.slice(x.exif_location.offset+w+4,x.exif_location.offset+x.exif_location.length),T=d.get_orientation(k);T>0&&(_.orientation=T)}return _}}}}}}},2504:function(o,a,n){var l=n(14847).eG,f=n(14847).OF,s=n(14847).mP,c=l("BM");o.exports=function(d){if(!(d.length<26)&&f(d,0,c))return{width:s(d,18),height:s(d,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}},47342:function(o,a,n){var l=n(14847).eG,f=n(14847).OF,s=n(14847).mP,c=l("GIF87a"),d=l("GIF89a");o.exports=function(h){if(!(h.length<10)&&(f(h,0,c)||f(h,0,d)))return{width:s(h,6),height:s(h,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}},31355:function(o,a,n){var l=n(14847).mP;o.exports=function(f){var s=l(f,0),c=l(f,2),d=l(f,4);if(s===0&&c===1&&d){for(var h=[],p={width:0,height:0},m=0;mp.width||v>p.height)&&(p=g)}return{width:p.width,height:p.height,variants:h,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}},54261:function(o,a,n){var l=n(14847).n8,f=n(14847).eG,s=n(14847).OF,c=n(71371),d=f("Exif\0\0");o.exports=function(h){if(!(h.length<2)&&h[0]===255&&h[1]===216&&h[2]===255)for(var p=2;;){for(;;){if(h.length-p<2)return;if(h[p++]===255)break}for(var m,y,v=h[p++];v===255;)v=h[p++];if(208<=v&&v<=217||v===1)m=0;else{if(!(192<=v&&v<=254)||h.length-p<2)return;m=l(h,p)-2,p+=2}if(v===217||v===218)return;if(v===225&&m>=10&&s(h,p,d)&&(y=c.get_orientation(h.slice(p+6,p+m))),m>=5&&192<=v&&v<=207&&v!==196&&v!==200&&v!==204){if(h.length-p0&&(g.orientation=y),g}p+=m}}},6303:function(o,a,n){var l=n(14847).eG,f=n(14847).OF,s=n(14847).Ag,c=l(`‰PNG\r  -`),d=l("IHDR");o.exports=function(h){if(!(h.length<24)&&f(h,0,u)&&f(h,12,d))return{width:s(h,16),height:s(h,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}},38689:function(o,a,n){var l=n(14847).eG,f=n(14847).OF,s=n(14847).Ag,u=l("8BPS\0");o.exports=function(d){if(!(d.length<22)&&f(d,0,u))return{width:s(d,18),height:s(d,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}},6881:function(o){function a(p){return typeof p=="number"&&isFinite(p)&&p>0}var n=/<[-_.:a-zA-Z0-9][^>]*>/,l=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,f=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,s=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,u=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,d=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function h(p){return d.test(p)?p.match(d)[0]:"px"}o.exports=function(p){if(function(S){var C,P=0,D=S.length;for(S[0]===239&&S[1]===187&&S[2]===191&&(P=3);P>14&16383),type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function v(g,b){return{width:1+(g[b+6]<<16|g[b+5]<<8|g[b+4]),height:1+(g[b+9]<g.length)){for(;b+8=10?x=x||m(g,b+8):k==="VP8L"&&T>=9?x=x||y(g,b+8):k==="VP8X"&&T>=10?x=x||v(g,b+8):k==="EXIF"&&(_=d.get_orientation(g.slice(b+8,b+8+T)),b=1/0),b+=8+T}else b++;if(x)return _>0&&(x.orientation=_),x}}}},91497:function(o,a,n){o.exports={avif:n(24461),bmp:n(2504),gif:n(47342),ico:n(31355),jpeg:n(54261),png:n(6303),psd:n(38689),svg:n(6881),tiff:n(66278),webp:n(90784)}},33575:function(o,a,n){var l=n(91497);o.exports=function(f){return function(s){for(var u=Object.keys(l),d=0;d1)for(var w=1;w2?"one of ".concat(s," ").concat(f.slice(0,u-1).join(", "),", or ")+f[u-1]:u===2?"one of ".concat(s," ").concat(f[0]," or ").concat(f[1]):"of ".concat(s," ").concat(f[0])}return"of ".concat(s," ").concat(String(f))}n("ERR_INVALID_OPT_VALUE",function(f,s){return'The value "'+s+'" is invalid for option "'+f+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(f,s,u){var d,h,p,m,y;if(typeof s=="string"&&(h="not ",s.substr(0,4)===h)?(d="must not be",s=s.replace(/^not /,"")):d="must be",function(g,b,x){return(x===void 0||x>g.length)&&(x=g.length),g.substring(x-9,x)===b}(f," argument"))p="The ".concat(f," ").concat(d," ").concat(l(s,"type"));else{var v=(typeof y!="number"&&(y=0),y+1>(m=f).length||m.indexOf(".",y)===-1?"argument":"property");p='The "'.concat(f,'" ').concat(v," ").concat(d," ").concat(l(s,"type"))}return p+". Received type ".concat(typeof u)},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(f){return"The "+f+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(f){return"Cannot call "+f+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(f){return"Unknown encoding: "+f},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),o.exports.q=a},37865:function(o,a,n){var l=n(90386),f=Object.keys||function(g){var b=[];for(var x in g)b.push(x);return b};o.exports=m;var s=n(40410),u=n(37493);n(42018)(m,s);for(var d=f(u.prototype),h=0;h0)if(typeof U=="string"||re.objectMode||Object.getPrototypeOf(U)===h.prototype||(U=function(ie){return h.from(ie)}(U)),Y)re.endEmitted?C(ee,new S):F(ee,re,U,!0);else if(re.ended)C(ee,new T);else{if(re.destroyed)return!1;re.reading=!1,re.decoder&&!Q?(U=re.decoder.write(U),re.objectMode||U.length!==0?F(ee,re,U,!1):j(ee,re)):F(ee,re,U,!1)}else Y||(re.reading=!1,j(ee,re));return!re.ended&&(re.lengthU.highWaterMark&&(U.highWaterMark=function(Q){return Q>=A?Q=A:(Q--,Q|=Q>>>1,Q|=Q>>>2,Q|=Q>>>4,Q|=Q>>>8,Q|=Q>>>16,Q++),Q}(ee)),ee<=U.length?ee:U.ended?U.length:(U.needReadable=!0,0))}function B(ee){var U=ee._readableState;s("emitReadable",U.needReadable,U.emittedReadable),U.needReadable=!1,U.emittedReadable||(s("emitReadable",U.flowing),U.emittedReadable=!0,f.nextTick($,ee))}function $(ee){var U=ee._readableState;s("emitReadable_",U.destroyed,U.length,U.ended),U.destroyed||!U.length&&!U.ended||(ee.emit("readable"),U.emittedReadable=!1),U.needReadable=!U.flowing&&!U.ended&&U.length<=U.highWaterMark,L(ee)}function j(ee,U){U.readingMore||(U.readingMore=!0,f.nextTick(N,ee,U))}function N(ee,U){for(;!U.reading&&!U.ended&&(U.length0,U.resumeScheduled&&!U.paused?U.flowing=!0:ee.listenerCount("data")>0&&ee.resume()}function W(ee){s("readable nexttick read 0"),ee.read(0)}function G(ee,U){s("resume",U.reading),U.reading||ee.read(0),U.resumeScheduled=!1,ee.emit("resume"),L(ee),U.flowing&&!U.reading&&ee.read(0)}function L(ee){var U=ee._readableState;for(s("flow",U.flowing);U.flowing&&ee.read()!==null;);}function q(ee,U){return U.length===0?null:(U.objectMode?Q=U.buffer.shift():!ee||ee>=U.length?(Q=U.decoder?U.buffer.join(""):U.buffer.length===1?U.buffer.first():U.buffer.concat(U.length),U.buffer.clear()):Q=U.buffer.consume(ee,U.decoder),Q);var Q}function H(ee){var U=ee._readableState;s("endReadable",U.endEmitted),U.endEmitted||(U.ended=!0,f.nextTick(V,U,ee))}function V(ee,U){if(s("endReadableNT",ee.endEmitted,ee.length),!ee.endEmitted&&ee.length===0&&(ee.endEmitted=!0,U.readable=!1,U.emit("end"),ee.autoDestroy)){var Q=U._writableState;(!Q||Q.autoDestroy&&Q.finished)&&U.destroy()}}function te(ee,U){for(var Q=0,Y=ee.length;Q=U.highWaterMark:U.length>0)||U.ended))return s("read: emitReadable",U.length,U.ended),U.length===0&&U.ended?H(this):B(this),null;if((ee=z(ee,U))===0&&U.ended)return U.length===0&&H(this),null;var Y,Z=U.needReadable;return s("need readable",Z),(U.length===0||U.length-ee0?q(ee,U):null)===null?(U.needReadable=U.length<=U.highWaterMark,ee=0):(U.length-=ee,U.awaitDrain=0),U.length===0&&(U.ended||(U.needReadable=!0),Q!==ee&&U.ended&&H(this)),Y!==null&&this.emit("data",Y),Y},O.prototype._read=function(ee){C(this,new M("_read()"))},O.prototype.pipe=function(ee,U){var Q=this,Y=this._readableState;switch(Y.pipesCount){case 0:Y.pipes=ee;break;case 1:Y.pipes=[Y.pipes,ee];break;default:Y.pipes.push(ee)}Y.pipesCount+=1,s("pipe count=%d opts=%j",Y.pipesCount,U);var Z=U&&U.end===!1||ee===f.stdout||ee===f.stderr?Se:X;function X(){s("onend"),ee.end()}Y.endEmitted?f.nextTick(Z):Q.once("end",Z),ee.on("unpipe",function Oe(Me,ce){s("onunpipe"),Me===Q&&ce&&ce.hasUnpiped===!1&&(ce.hasUnpiped=!0,s("cleanup"),ee.removeListener("close",pe),ee.removeListener("finish",Te),ee.removeListener("drain",re),ee.removeListener("error",se),ee.removeListener("unpipe",Oe),Q.removeListener("end",X),Q.removeListener("end",Se),Q.removeListener("data",le),ie=!0,!Y.awaitDrain||ee._writableState&&!ee._writableState.needDrain||re())});var re=function(Oe){return function(){var Me=Oe._readableState;s("pipeOnDrain",Me.awaitDrain),Me.awaitDrain&&Me.awaitDrain--,Me.awaitDrain===0&&u(Oe,"data")&&(Me.flowing=!0,L(Oe))}}(Q);ee.on("drain",re);var ie=!1;function le(Oe){s("ondata");var Me=ee.write(Oe);s("dest.write",Me),Me===!1&&((Y.pipesCount===1&&Y.pipes===ee||Y.pipesCount>1&&te(Y.pipes,ee)!==-1)&&!ie&&(s("false write response, pause",Y.awaitDrain),Y.awaitDrain++),Q.pause())}function se(Oe){s("onerror",Oe),Se(),ee.removeListener("error",se),u(ee,"error")===0&&C(ee,Oe)}function pe(){ee.removeListener("finish",Te),Se()}function Te(){s("onfinish"),ee.removeListener("close",pe),Se()}function Se(){s("unpipe"),Q.unpipe(ee)}return Q.on("data",le),function(Oe,Me,ce){if(typeof Oe.prependListener=="function")return Oe.prependListener(Me,ce);Oe._events&&Oe._events[Me]?Array.isArray(Oe._events[Me])?Oe._events[Me].unshift(ce):Oe._events[Me]=[ce,Oe._events[Me]]:Oe.on(Me,ce)}(ee,"error",se),ee.once("close",pe),ee.once("finish",Te),ee.emit("pipe",Q),Y.flowing||(s("pipe resume"),Q.resume()),ee},O.prototype.unpipe=function(ee){var U=this._readableState,Q={hasUnpiped:!1};if(U.pipesCount===0)return this;if(U.pipesCount===1)return ee&&ee!==U.pipes||(ee||(ee=U.pipes),U.pipes=null,U.pipesCount=0,U.flowing=!1,ee&&ee.emit("unpipe",this,Q)),this;if(!ee){var Y=U.pipes,Z=U.pipesCount;U.pipes=null,U.pipesCount=0,U.flowing=!1;for(var X=0;X0,Y.flowing!==!1&&this.resume()):ee==="readable"&&(Y.endEmitted||Y.readableListening||(Y.readableListening=Y.needReadable=!0,Y.flowing=!1,Y.emittedReadable=!1,s("on readable",Y.length,Y.reading),Y.length?B(this):Y.reading||f.nextTick(W,this))),Q},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(ee,U){var Q=d.prototype.removeListener.call(this,ee,U);return ee==="readable"&&f.nextTick(E,this),Q},O.prototype.removeAllListeners=function(ee){var U=d.prototype.removeAllListeners.apply(this,arguments);return ee!=="readable"&&ee!==void 0||f.nextTick(E,this),U},O.prototype.resume=function(){var ee=this._readableState;return ee.flowing||(s("resume"),ee.flowing=!ee.readableListening,function(U,Q){Q.resumeScheduled||(Q.resumeScheduled=!0,f.nextTick(G,U,Q))}(this,ee)),ee.paused=!1,this},O.prototype.pause=function(){return s("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(s("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(ee){var U=this,Q=this._readableState,Y=!1;for(var Z in ee.on("end",function(){if(s("wrapped end"),Q.decoder&&!Q.ended){var re=Q.decoder.end();re&&re.length&&U.push(re)}U.push(null)}),ee.on("data",function(re){s("wrapped data"),Q.decoder&&(re=Q.decoder.write(re)),Q.objectMode&&re==null||(Q.objectMode||re&&re.length)&&(U.push(re)||(Y=!0,ee.pause()))}),ee)this[Z]===void 0&&typeof ee[Z]=="function"&&(this[Z]=function(re){return function(){return ee[re].apply(ee,arguments)}}(Z));for(var X=0;X-1))throw new S(j);return this._writableState.defaultEncoding=j,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(j,N,E){E(new x("_write()"))},O.prototype._writev=null,O.prototype.end=function(j,N,E){var W=this._writableState;return typeof j=="function"?(E=j,j=null,N=null):typeof N=="function"&&(E=N,N=null),j!=null&&this.write(j,N),W.corked&&(W.corked=1,this.uncork()),W.ending||function(G,L,q){L.ending=!0,$(G,L),q&&(L.finished?f.nextTick(q):G.once("finish",q)),L.ended=!0,G.writable=!1}(this,W,E),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(j){this._writableState&&(this._writableState.destroyed=j)}}),O.prototype.destroy=y.destroy,O.prototype._undestroy=y.undestroy,O.prototype._destroy=function(j,N){N(j)}},68221:function(o,a,n){var l,f=n(90386);function s(T,M,S){return M in T?Object.defineProperty(T,M,{value:S,enumerable:!0,configurable:!0,writable:!0}):T[M]=S,T}var u=n(12726),d=Symbol("lastResolve"),h=Symbol("lastReject"),p=Symbol("error"),m=Symbol("ended"),y=Symbol("lastPromise"),v=Symbol("handlePromise"),g=Symbol("stream");function b(T,M){return{value:T,done:M}}function x(T){var M=T[d];if(M!==null){var S=T[g].read();S!==null&&(T[y]=null,T[d]=null,T[h]=null,M(b(S,!1)))}}function _(T){f.nextTick(x,T)}var w=Object.getPrototypeOf(function(){}),k=Object.setPrototypeOf((s(l={get stream(){return this[g]},next:function(){var T=this,M=this[p];if(M!==null)return Promise.reject(M);if(this[m])return Promise.resolve(b(void 0,!0));if(this[g].destroyed)return new Promise(function(D,O){f.nextTick(function(){T[p]?O(T[p]):D(b(void 0,!0))})});var S,C=this[y];if(C)S=new Promise(function(D,O){return function(R,F){D.then(function(){O[m]?R(b(void 0,!0)):O[v](R,F)},F)}}(C,this));else{var P=this[g].read();if(P!==null)return Promise.resolve(b(P,!1));S=new Promise(this[v])}return this[y]=S,S}},Symbol.asyncIterator,function(){return this}),s(l,"return",function(){var T=this;return new Promise(function(M,S){T[g].destroy(null,function(C){C?S(C):M(b(void 0,!0))})})}),l),w);o.exports=function(T){var M,S=Object.create(k,(s(M={},g,{value:T,writable:!0}),s(M,d,{value:null,writable:!0}),s(M,h,{value:null,writable:!0}),s(M,p,{value:null,writable:!0}),s(M,m,{value:T._readableState.endEmitted,writable:!0}),s(M,v,{value:function(C,P){var D=S[g].read();D?(S[y]=null,S[d]=null,S[h]=null,C(b(D,!1))):(S[d]=C,S[h]=P)},writable:!0}),M));return S[y]=null,u(T,function(C){if(C&&C.code!=="ERR_STREAM_PREMATURE_CLOSE"){var P=S[h];return P!==null&&(S[y]=null,S[d]=null,S[h]=null,P(C)),void(S[p]=C)}var D=S[d];D!==null&&(S[y]=null,S[d]=null,S[h]=null,D(b(void 0,!0))),S[m]=!0}),T.on("readable",_.bind(null,S)),S}},31125:function(o,a,n){function l(p,m){var y=Object.keys(p);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(p);m&&(v=v.filter(function(g){return Object.getOwnPropertyDescriptor(p,g).enumerable})),y.push.apply(y,v)}return y}function f(p,m,y){return m in p?Object.defineProperty(p,m,{value:y,enumerable:!0,configurable:!0,writable:!0}):p[m]=y,p}function s(p,m){for(var y=0;y0?this.tail.next=g:this.head=g,this.tail=g,++this.length}},{key:"unshift",value:function(v){var g={data:v,next:this.head};this.length===0&&(this.tail=g),this.head=g,++this.length}},{key:"shift",value:function(){if(this.length!==0){var v=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,v}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(v){if(this.length===0)return"";for(var g=this.head,b=""+g.data;g=g.next;)b+=v+g.data;return b}},{key:"concat",value:function(v){if(this.length===0)return u.alloc(0);for(var g,b,x,_=u.allocUnsafe(v>>>0),w=this.head,k=0;w;)g=w.data,b=_,x=k,u.prototype.copy.call(g,b,x),k+=w.data.length,w=w.next;return _}},{key:"consume",value:function(v,g){var b;return v_.length?_.length:v;if(w===_.length?x+=_:x+=_.slice(0,v),(v-=w)==0){w===_.length?(++b,g.next?this.head=g.next:this.head=this.tail=null):(this.head=g,g.data=_.slice(w));break}++b}return this.length-=b,x}},{key:"_getBuffer",value:function(v){var g=u.allocUnsafe(v),b=this.head,x=1;for(b.data.copy(g),v-=b.data.length;b=b.next;){var _=b.data,w=v>_.length?_.length:v;if(_.copy(g,g.length-v,0,w),(v-=w)==0){w===_.length?(++x,b.next?this.head=b.next:this.head=this.tail=null):(this.head=b,b.data=_.slice(w));break}++x}return this.length-=x,g}},{key:h,value:function(v,g){return d(this,function(b){for(var x=1;x0,function(T){g||(g=T),T&&x.forEach(h),k||(x.forEach(h),b(g))})});return y.reduce(p)}},56306:function(o,a,n){var l=n(74322).q.ERR_INVALID_OPT_VALUE;o.exports={getHighWaterMark:function(f,s,u,d){var h=function(p,m,y){return p.highWaterMark!=null?p.highWaterMark:m?p[y]:null}(s,d,u);if(h!=null){if(!isFinite(h)||Math.floor(h)!==h||h<0)throw new l(d?u:"highWaterMark",h);return Math.floor(h)}return f.objectMode?16:16384}}},71405:function(o,a,n){o.exports=n(15398).EventEmitter},68019:function(o,a,n){var l=n(71665).Buffer,f=l.isEncoding||function(b){switch((b=""+b)&&b.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(b){var x;switch(this.encoding=function(_){var w=function(k){if(!k)return"utf8";for(var T;;)switch(k){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return k;default:if(T)return;k=(""+k).toLowerCase(),T=!0}}(_);if(typeof w!="string"&&(l.isEncoding===f||!f(_)))throw new Error("Unknown encoding: "+_);return w||_}(b),this.encoding){case"utf16le":this.text=h,this.end=p,x=4;break;case"utf8":this.fillLast=d,x=4;break;case"base64":this.text=m,this.end=y,x=3;break;default:return this.write=v,void(this.end=g)}this.lastNeed=0,this.lastTotal=0,this.lastChar=l.allocUnsafe(x)}function u(b){return b<=127?0:b>>5==6?2:b>>4==14?3:b>>3==30?4:b>>6==2?-1:-2}function d(b){var x=this.lastTotal-this.lastNeed,_=function(w,k,T){if((192&k[0])!=128)return w.lastNeed=0,"�";if(w.lastNeed>1&&k.length>1){if((192&k[1])!=128)return w.lastNeed=1,"�";if(w.lastNeed>2&&k.length>2&&(192&k[2])!=128)return w.lastNeed=2,"�"}}(this,b);return _!==void 0?_:this.lastNeed<=b.length?(b.copy(this.lastChar,x,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(b.copy(this.lastChar,x,0,b.length),void(this.lastNeed-=b.length))}function h(b,x){if((b.length-x)%2==0){var _=b.toString("utf16le",x);if(_){var w=_.charCodeAt(_.length-1);if(w>=55296&&w<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=b[b.length-2],this.lastChar[1]=b[b.length-1],_.slice(0,-1)}return _}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=b[b.length-1],b.toString("utf16le",x,b.length-1)}function p(b){var x=b&&b.length?this.write(b):"";if(this.lastNeed){var _=this.lastTotal-this.lastNeed;return x+this.lastChar.toString("utf16le",0,_)}return x}function m(b,x){var _=(b.length-x)%3;return _===0?b.toString("base64",x):(this.lastNeed=3-_,this.lastTotal=3,_===1?this.lastChar[0]=b[b.length-1]:(this.lastChar[0]=b[b.length-2],this.lastChar[1]=b[b.length-1]),b.toString("base64",x,b.length-_))}function y(b){var x=b&&b.length?this.write(b):"";return this.lastNeed?x+this.lastChar.toString("base64",0,3-this.lastNeed):x}function v(b){return b.toString(this.encoding)}function g(b){return b&&b.length?this.write(b):""}a.s=s,s.prototype.write=function(b){if(b.length===0)return"";var x,_;if(this.lastNeed){if((x=this.fillLast(b))===void 0)return"";_=this.lastNeed,this.lastNeed=0}else _=0;return _=0?(C>0&&(k.lastNeed=C-1),C):--S=0?(C>0&&(k.lastNeed=C-2),C):--S=0?(C>0&&(C===2?C=0:k.lastNeed=C-3),C):0}(this,b,x);if(!this.lastNeed)return b.toString("utf8",x);this.lastTotal=_;var w=b.length-(_-this.lastNeed);return b.copy(this.lastChar,0,w),b.toString("utf8",x,w)},s.prototype.fillLast=function(b){if(this.lastNeed<=b.length)return b.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);b.copy(this.lastChar,this.lastTotal-this.lastNeed,0,b.length),this.lastNeed-=b.length}},90715:function(o,a,n){var l=n(32791),f=n(41633)("stream-parser");o.exports=function(k){var T=k&&typeof k._transform=="function",M=k&&typeof k._write=="function";if(!T&&!M)throw new Error("must pass a Writable or Transform stream in");f("extending Parser into stream"),k._bytes=m,k._skipBytes=y,T&&(k._passthrough=v),T?k._transform=b:k._write=g};var s=-1,u=0,d=1,h=2;function p(k){f("initializing parser stream"),k._parserBytesLeft=0,k._parserBuffers=[],k._parserBuffered=0,k._parserState=s,k._parserCallback=null,typeof k.push=="function"&&(k._parserOutput=k.push.bind(k)),k._parserInit=!0}function m(k,T){l(!this._parserCallback,'there is already a "callback" set!'),l(isFinite(k)&&k>0,'can only buffer a finite number of bytes > 0, got "'+k+'"'),this._parserInit||p(this),f("buffering %o bytes",k),this._parserBytesLeft=k,this._parserCallback=T,this._parserState=u}function y(k,T){l(!this._parserCallback,'there is already a "callback" set!'),l(k>0,'can only skip > 0 bytes, got "'+k+'"'),this._parserInit||p(this),f("skipping %o bytes",k),this._parserBytesLeft=k,this._parserCallback=T,this._parserState=d}function v(k,T){l(!this._parserCallback,'There is already a "callback" set!'),l(k>0,'can only pass through > 0 bytes, got "'+k+'"'),this._parserInit||p(this),f("passing through %o bytes",k),this._parserBytesLeft=k,this._parserCallback=T,this._parserState=h}function g(k,T,M){this._parserInit||p(this),f("write(%o bytes)",k.length),typeof T=="function"&&(M=T),_(this,k,null,M)}function b(k,T,M){this._parserInit||p(this),f("transform(%o bytes)",k.length),typeof T!="function"&&(T=this._parserOutput),_(this,k,T,M)}function x(k,T,M,S){if(k._parserBytesLeft-=T.length,f("%o bytes left for stream piece",k._parserBytesLeft),k._parserState===u?(k._parserBuffers.push(T),k._parserBuffered+=T.length):k._parserState===h&&M(T),k._parserBytesLeft!==0)return S;var C=k._parserCallback;if(C&&k._parserState===u&&k._parserBuffers.length>1&&(T=Buffer.concat(k._parserBuffers,k._parserBuffered)),k._parserState!==u&&(T=null),k._parserCallback=null,k._parserBuffered=0,k._parserState=s,k._parserBuffers.splice(0),C){var P=[];T&&P.push(T),M&&P.push(M);var D=C.length>P.length;D&&P.push(w(S));var O=C.apply(k,P);if(!D||S===O)return S}}var _=w(function k(T,M,S,C){return T._parserBytesLeft<=0?C(new Error("got data but not currently parsing anything")):M.length<=T._parserBytesLeft?function(){return x(T,M,S,C)}:function(){var P=M.slice(0,T._parserBytesLeft);return x(T,P,S,function(D){return D?C(D):M.length>P.length?function(){return k(T,M.slice(P.length),S,C)}:void 0})}});function w(k){return function(){for(var T=k.apply(this,arguments);typeof T=="function";)T=T();return T}}},41633:function(o,a,n){var l=n(90386);function f(){var s;try{s=a.storage.debug}catch{}return!s&&l!==void 0&&"env"in l&&(s=l.env.DEBUG),s}(a=o.exports=n(74469)).log=function(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},a.formatArgs=function(s){var u=this.useColors;if(s[0]=(u?"%c":"")+this.namespace+(u?" %c":" ")+s[0]+(u?"%c ":" ")+"+"+a.humanize(this.diff),u){var d="color: "+this.color;s.splice(1,0,d,"color: inherit");var h=0,p=0;s[0].replace(/%[a-zA-Z%]/g,function(m){m!=="%%"&&(h++,m==="%c"&&(p=h))}),s.splice(p,0,d)}},a.save=function(s){try{s==null?a.storage.removeItem("debug"):a.storage.debug=s}catch{}},a.load=f,a.useColors=function(){return!(typeof window>"u"||!window.process||window.process.type!=="renderer")||typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},a.storage=typeof chrome<"u"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch{}}(),a.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],a.formatters.j=function(s){try{return JSON.stringify(s)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}},a.enable(f())},74469:function(o,a,n){var l;function f(s){function u(){if(u.enabled){var d=u,h=+new Date,p=h-(l||h);d.diff=p,d.prev=l,d.curr=h,l=h;for(var m=new Array(arguments.length),y=0;y0)return function(m){if(!((m=String(m)).length>100)){var y=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(m);if(y){var v=parseFloat(y[1]);switch((y[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*v;case"days":case"day":case"d":return v*f;case"hours":case"hour":case"hrs":case"hr":case"h":return v*l;case"minutes":case"minute":case"mins":case"min":case"m":return v*n;case"seconds":case"second":case"secs":case"sec":case"s":return v*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return v;default:return}}}}(u);if(p==="number"&&isNaN(u)===!1)return d.long?s(h=u,f,"day")||s(h,l,"hour")||s(h,n,"minute")||s(h,a,"second")||h+" ms":function(m){return m>=f?Math.round(m/f)+"d":m>=l?Math.round(m/l)+"h":m>=n?Math.round(m/n)+"m":m>=a?Math.round(m/a)+"s":m+"ms"}(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))}},84267:function(o,a,n){var l;(function(f){var s=/^\s+/,u=/\s+$/,d=0,h=f.round,p=f.min,m=f.max,y=f.random;function v(Y,Z){if(Z=Z||{},(Y=Y||"")instanceof v)return Y;if(!(this instanceof v))return new v(Y,Z);var X=function(re){var ie,le,se,pe={r:0,g:0,b:0},Te=1,Se=null,Oe=null,Me=null,ce=!1,ye=!1;return typeof re=="string"&&(re=function(J){J=J.replace(s,"").replace(u,"").toLowerCase();var ne,de=!1;if(B[J])J=B[J],de=!0;else if(J=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(ne=U.rgb.exec(J))?{r:ne[1],g:ne[2],b:ne[3]}:(ne=U.rgba.exec(J))?{r:ne[1],g:ne[2],b:ne[3],a:ne[4]}:(ne=U.hsl.exec(J))?{h:ne[1],s:ne[2],l:ne[3]}:(ne=U.hsla.exec(J))?{h:ne[1],s:ne[2],l:ne[3],a:ne[4]}:(ne=U.hsv.exec(J))?{h:ne[1],s:ne[2],v:ne[3]}:(ne=U.hsva.exec(J))?{h:ne[1],s:ne[2],v:ne[3],a:ne[4]}:(ne=U.hex8.exec(J))?{r:W(ne[1]),g:W(ne[2]),b:W(ne[3]),a:H(ne[4]),format:de?"name":"hex8"}:(ne=U.hex6.exec(J))?{r:W(ne[1]),g:W(ne[2]),b:W(ne[3]),format:de?"name":"hex"}:(ne=U.hex4.exec(J))?{r:W(ne[1]+""+ne[1]),g:W(ne[2]+""+ne[2]),b:W(ne[3]+""+ne[3]),a:H(ne[4]+""+ne[4]),format:de?"name":"hex8"}:!!(ne=U.hex3.exec(J))&&{r:W(ne[1]+""+ne[1]),g:W(ne[2]+""+ne[2]),b:W(ne[3]+""+ne[3]),format:de?"name":"hex"}}(re)),typeof re=="object"&&(Q(re.r)&&Q(re.g)&&Q(re.b)?(ie=re.r,le=re.g,se=re.b,pe={r:255*N(ie,255),g:255*N(le,255),b:255*N(se,255)},ce=!0,ye=String(re.r).substr(-1)==="%"?"prgb":"rgb"):Q(re.h)&&Q(re.s)&&Q(re.v)?(Se=L(re.s),Oe=L(re.v),pe=function(J,ne,de){J=6*N(J,360),ne=N(ne,100),de=N(de,100);var xe=f.floor(J),ue=J-xe,ge=de*(1-ne),be=de*(1-ue*ne),we=de*(1-(1-ue)*ne),ke=xe%6;return{r:255*[de,be,ge,ge,we,de][ke],g:255*[we,de,de,be,ge,ge][ke],b:255*[ge,ge,we,de,de,be][ke]}}(re.h,Se,Oe),ce=!0,ye="hsv"):Q(re.h)&&Q(re.s)&&Q(re.l)&&(Se=L(re.s),Me=L(re.l),pe=function(J,ne,de){var xe,ue,ge;function be(Ae,Ee,De){return De<0&&(De+=1),De>1&&(De-=1),De<1/6?Ae+6*(Ee-Ae)*De:De<.5?Ee:De<2/3?Ae+(Ee-Ae)*(2/3-De)*6:Ae}if(J=N(J,360),ne=N(ne,100),de=N(de,100),ne===0)xe=ue=ge=de;else{var we=de<.5?de*(1+ne):de+ne-de*ne,ke=2*de-we;xe=be(ke,we,J+1/3),ue=be(ke,we,J),ge=be(ke,we,J-1/3)}return{r:255*xe,g:255*ue,b:255*ge}}(re.h,Se,Me),ce=!0,ye="hsl"),re.hasOwnProperty("a")&&(Te=re.a)),Te=j(Te),{ok:ce,format:re.format||ye,r:p(255,m(pe.r,0)),g:p(255,m(pe.g,0)),b:p(255,m(pe.b,0)),a:Te}}(Y);this._originalInput=Y,this._r=X.r,this._g=X.g,this._b=X.b,this._a=X.a,this._roundA=h(100*this._a)/100,this._format=Z.format||X.format,this._gradientType=Z.gradientType,this._r<1&&(this._r=h(this._r)),this._g<1&&(this._g=h(this._g)),this._b<1&&(this._b=h(this._b)),this._ok=X.ok,this._tc_id=d++}function g(Y,Z,X){Y=N(Y,255),Z=N(Z,255),X=N(X,255);var re,ie,le=m(Y,Z,X),se=p(Y,Z,X),pe=(le+se)/2;if(le==se)re=ie=0;else{var Te=le-se;switch(ie=pe>.5?Te/(2-le-se):Te/(le+se),le){case Y:re=(Z-X)/Te+(Z>1)+720)%360;--Z;)re.h=(re.h+ie)%360,le.push(v(re));return le}function z(Y,Z){Z=Z||6;for(var X=v(Y).toHsv(),re=X.h,ie=X.s,le=X.v,se=[],pe=1/Z;Z--;)se.push(v({h:re,s:ie,v:le})),le=(le+pe)%1;return se}v.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Y=this.toRgb();return(299*Y.r+587*Y.g+114*Y.b)/1e3},getLuminance:function(){var Y,Z,X,re=this.toRgb();return Y=re.r/255,Z=re.g/255,X=re.b/255,.2126*(Y<=.03928?Y/12.92:f.pow((Y+.055)/1.055,2.4))+.7152*(Z<=.03928?Z/12.92:f.pow((Z+.055)/1.055,2.4))+.0722*(X<=.03928?X/12.92:f.pow((X+.055)/1.055,2.4))},setAlpha:function(Y){return this._a=j(Y),this._roundA=h(100*this._a)/100,this},toHsv:function(){var Y=b(this._r,this._g,this._b);return{h:360*Y.h,s:Y.s,v:Y.v,a:this._a}},toHsvString:function(){var Y=b(this._r,this._g,this._b),Z=h(360*Y.h),X=h(100*Y.s),re=h(100*Y.v);return this._a==1?"hsv("+Z+", "+X+"%, "+re+"%)":"hsva("+Z+", "+X+"%, "+re+"%, "+this._roundA+")"},toHsl:function(){var Y=g(this._r,this._g,this._b);return{h:360*Y.h,s:Y.s,l:Y.l,a:this._a}},toHslString:function(){var Y=g(this._r,this._g,this._b),Z=h(360*Y.h),X=h(100*Y.s),re=h(100*Y.l);return this._a==1?"hsl("+Z+", "+X+"%, "+re+"%)":"hsla("+Z+", "+X+"%, "+re+"%, "+this._roundA+")"},toHex:function(Y){return x(this._r,this._g,this._b,Y)},toHexString:function(Y){return"#"+this.toHex(Y)},toHex8:function(Y){return function(Z,X,re,ie,le){var se=[G(h(Z).toString(16)),G(h(X).toString(16)),G(h(re).toString(16)),G(q(ie))];return le&&se[0].charAt(0)==se[0].charAt(1)&&se[1].charAt(0)==se[1].charAt(1)&&se[2].charAt(0)==se[2].charAt(1)&&se[3].charAt(0)==se[3].charAt(1)?se[0].charAt(0)+se[1].charAt(0)+se[2].charAt(0)+se[3].charAt(0):se.join("")}(this._r,this._g,this._b,this._a,Y)},toHex8String:function(Y){return"#"+this.toHex8(Y)},toRgb:function(){return{r:h(this._r),g:h(this._g),b:h(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+h(this._r)+", "+h(this._g)+", "+h(this._b)+")":"rgba("+h(this._r)+", "+h(this._g)+", "+h(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:h(100*N(this._r,255))+"%",g:h(100*N(this._g,255))+"%",b:h(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+h(100*N(this._r,255))+"%, "+h(100*N(this._g,255))+"%, "+h(100*N(this._b,255))+"%)":"rgba("+h(100*N(this._r,255))+"%, "+h(100*N(this._g,255))+"%, "+h(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&($[x(this._r,this._g,this._b,!0)]||!1)},toFilter:function(Y){var Z="#"+_(this._r,this._g,this._b,this._a),X=Z,re=this._gradientType?"GradientType = 1, ":"";if(Y){var ie=v(Y);X="#"+_(ie._r,ie._g,ie._b,ie._a)}return"progid:DXImageTransform.Microsoft.gradient("+re+"startColorstr="+Z+",endColorstr="+X+")"},toString:function(Y){var Z=!!Y;Y=Y||this._format;var X=!1,re=this._a<1&&this._a>=0;return Z||!re||Y!=="hex"&&Y!=="hex6"&&Y!=="hex3"&&Y!=="hex4"&&Y!=="hex8"&&Y!=="name"?(Y==="rgb"&&(X=this.toRgbString()),Y==="prgb"&&(X=this.toPercentageRgbString()),Y!=="hex"&&Y!=="hex6"||(X=this.toHexString()),Y==="hex3"&&(X=this.toHexString(!0)),Y==="hex4"&&(X=this.toHex8String(!0)),Y==="hex8"&&(X=this.toHex8String()),Y==="name"&&(X=this.toName()),Y==="hsl"&&(X=this.toHslString()),Y==="hsv"&&(X=this.toHsvString()),X||this.toHexString()):Y==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return v(this.toString())},_applyModification:function(Y,Z){var X=Y.apply(null,[this].concat([].slice.call(Z)));return this._r=X._r,this._g=X._g,this._b=X._b,this.setAlpha(X._a),this},lighten:function(){return this._applyModification(M,arguments)},brighten:function(){return this._applyModification(S,arguments)},darken:function(){return this._applyModification(C,arguments)},desaturate:function(){return this._applyModification(w,arguments)},saturate:function(){return this._applyModification(k,arguments)},greyscale:function(){return this._applyModification(T,arguments)},spin:function(){return this._applyModification(P,arguments)},_applyCombination:function(Y,Z){return Y.apply(null,[this].concat([].slice.call(Z)))},analogous:function(){return this._applyCombination(A,arguments)},complement:function(){return this._applyCombination(D,arguments)},monochromatic:function(){return this._applyCombination(z,arguments)},splitcomplement:function(){return this._applyCombination(F,arguments)},triad:function(){return this._applyCombination(O,arguments)},tetrad:function(){return this._applyCombination(R,arguments)}},v.fromRatio=function(Y,Z){if(typeof Y=="object"){var X={};for(var re in Y)Y.hasOwnProperty(re)&&(X[re]=re==="a"?Y[re]:L(Y[re]));Y=X}return v(Y,Z)},v.equals=function(Y,Z){return!(!Y||!Z)&&v(Y).toRgbString()==v(Z).toRgbString()},v.random=function(){return v.fromRatio({r:y(),g:y(),b:y()})},v.mix=function(Y,Z,X){X=X===0?0:X||50;var re=v(Y).toRgb(),ie=v(Z).toRgb(),le=X/100;return v({r:(ie.r-re.r)*le+re.r,g:(ie.g-re.g)*le+re.g,b:(ie.b-re.b)*le+re.b,a:(ie.a-re.a)*le+re.a})},v.readability=function(Y,Z){var X=v(Y),re=v(Z);return(f.max(X.getLuminance(),re.getLuminance())+.05)/(f.min(X.getLuminance(),re.getLuminance())+.05)},v.isReadable=function(Y,Z,X){var re,ie,le,se,pe,Te=v.readability(Y,Z);switch(ie=!1,(le=X,(se=((le=le||{level:"AA",size:"small"}).level||"AA").toUpperCase())!=="AA"&&se!=="AAA"&&(se="AA"),(pe=(le.size||"small").toLowerCase())!=="small"&&pe!=="large"&&(pe="small"),re={level:se,size:pe}).level+re.size){case"AAsmall":case"AAAlarge":ie=Te>=4.5;break;case"AAlarge":ie=Te>=3;break;case"AAAsmall":ie=Te>=7}return ie},v.mostReadable=function(Y,Z,X){var re,ie,le,se,pe=null,Te=0;ie=(X=X||{}).includeFallbackColors,le=X.level,se=X.size;for(var Se=0;SeTe&&(Te=re,pe=v(Z[Se]));return v.isReadable(Y,pe,{level:le,size:se})||!ie?pe:(X.includeFallbackColors=!1,v.mostReadable(Y,["#fff","#000"],X))};var B=v.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},$=v.hexNames=function(Y){var Z={};for(var X in Y)Y.hasOwnProperty(X)&&(Z[Y[X]]=X);return Z}(B);function j(Y){return Y=parseFloat(Y),(isNaN(Y)||Y<0||Y>1)&&(Y=1),Y}function N(Y,Z){(function(re){return typeof re=="string"&&re.indexOf(".")!=-1&&parseFloat(re)===1})(Y)&&(Y="100%");var X=function(re){return typeof re=="string"&&re.indexOf("%")!=-1}(Y);return Y=p(Z,m(0,parseFloat(Y))),X&&(Y=parseInt(Y*Z,10)/100),f.abs(Y-Z)<1e-6?1:Y%Z/parseFloat(Z)}function E(Y){return p(1,m(0,Y))}function W(Y){return parseInt(Y,16)}function G(Y){return Y.length==1?"0"+Y:""+Y}function L(Y){return Y<=1&&(Y=100*Y+"%"),Y}function q(Y){return f.round(255*parseFloat(Y)).toString(16)}function H(Y){return W(Y)/255}var V,te,ee,U=(te="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",ee="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+te),rgba:new RegExp("rgba"+ee),hsl:new RegExp("hsl"+te),hsla:new RegExp("hsla"+ee),hsv:new RegExp("hsv"+te),hsva:new RegExp("hsva"+ee),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function Q(Y){return!!U.CSS_UNIT.exec(Y)}o.exports?o.exports=v:(l=(function(){return v}).call(a,n,a,o))===void 0||(o.exports=l)})(Math)},20588:function(o,a,n){function l(f){try{if(!n.g.localStorage)return!1}catch{return!1}var s=n.g.localStorage[f];return s!=null&&String(s).toLowerCase()==="true"}o.exports=function(f,s){if(l("noDeprecation"))return f;var u=!1;return function(){if(!u){if(l("throwDeprecation"))throw new Error(s);l("traceDeprecation")?console.trace(s):console.warn(s),u=!0}return f.apply(this,arguments)}}},45920:function(o){o.exports=function(a){return a&&typeof a=="object"&&typeof a.copy=="function"&&typeof a.fill=="function"&&typeof a.readUInt8=="function"}},4936:function(o,a,n){var l=n(47216),f=n(65481),s=n(21099),u=n(9187);function d(N){return N.call.bind(N)}var h=typeof BigInt<"u",p=typeof Symbol<"u",m=d(Object.prototype.toString),y=d(Number.prototype.valueOf),v=d(String.prototype.valueOf),g=d(Boolean.prototype.valueOf);if(h)var b=d(BigInt.prototype.valueOf);if(p)var x=d(Symbol.prototype.valueOf);function _(N,E){if(typeof N!="object")return!1;try{return E(N),!0}catch{return!1}}function w(N){return m(N)==="[object Map]"}function k(N){return m(N)==="[object Set]"}function T(N){return m(N)==="[object WeakMap]"}function M(N){return m(N)==="[object WeakSet]"}function S(N){return m(N)==="[object ArrayBuffer]"}function C(N){return typeof ArrayBuffer<"u"&&(S.working?S(N):N instanceof ArrayBuffer)}function P(N){return m(N)==="[object DataView]"}function D(N){return typeof DataView<"u"&&(P.working?P(N):N instanceof DataView)}a.isArgumentsObject=l,a.isGeneratorFunction=f,a.isTypedArray=u,a.isPromise=function(N){return typeof Promise<"u"&&N instanceof Promise||N!==null&&typeof N=="object"&&typeof N.then=="function"&&typeof N.catch=="function"},a.isArrayBufferView=function(N){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(N):u(N)||D(N)},a.isUint8Array=function(N){return s(N)==="Uint8Array"},a.isUint8ClampedArray=function(N){return s(N)==="Uint8ClampedArray"},a.isUint16Array=function(N){return s(N)==="Uint16Array"},a.isUint32Array=function(N){return s(N)==="Uint32Array"},a.isInt8Array=function(N){return s(N)==="Int8Array"},a.isInt16Array=function(N){return s(N)==="Int16Array"},a.isInt32Array=function(N){return s(N)==="Int32Array"},a.isFloat32Array=function(N){return s(N)==="Float32Array"},a.isFloat64Array=function(N){return s(N)==="Float64Array"},a.isBigInt64Array=function(N){return s(N)==="BigInt64Array"},a.isBigUint64Array=function(N){return s(N)==="BigUint64Array"},w.working=typeof Map<"u"&&w(new Map),a.isMap=function(N){return typeof Map<"u"&&(w.working?w(N):N instanceof Map)},k.working=typeof Set<"u"&&k(new Set),a.isSet=function(N){return typeof Set<"u"&&(k.working?k(N):N instanceof Set)},T.working=typeof WeakMap<"u"&&T(new WeakMap),a.isWeakMap=function(N){return typeof WeakMap<"u"&&(T.working?T(N):N instanceof WeakMap)},M.working=typeof WeakSet<"u"&&M(new WeakSet),a.isWeakSet=function(N){return M(N)},S.working=typeof ArrayBuffer<"u"&&S(new ArrayBuffer),a.isArrayBuffer=C,P.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&P(new DataView(new ArrayBuffer(1),0,1)),a.isDataView=D;var O=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function R(N){return m(N)==="[object SharedArrayBuffer]"}function F(N){return O!==void 0&&(R.working===void 0&&(R.working=R(new O)),R.working?R(N):N instanceof O)}function A(N){return _(N,y)}function z(N){return _(N,v)}function B(N){return _(N,g)}function $(N){return h&&_(N,b)}function j(N){return p&&_(N,x)}a.isSharedArrayBuffer=F,a.isAsyncFunction=function(N){return m(N)==="[object AsyncFunction]"},a.isMapIterator=function(N){return m(N)==="[object Map Iterator]"},a.isSetIterator=function(N){return m(N)==="[object Set Iterator]"},a.isGeneratorObject=function(N){return m(N)==="[object Generator]"},a.isWebAssemblyCompiledModule=function(N){return m(N)==="[object WebAssembly.Module]"},a.isNumberObject=A,a.isStringObject=z,a.isBooleanObject=B,a.isBigIntObject=$,a.isSymbolObject=j,a.isBoxedPrimitive=function(N){return A(N)||z(N)||B(N)||$(N)||j(N)},a.isAnyArrayBuffer=function(N){return typeof Uint8Array<"u"&&(C(N)||F(N))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(N){Object.defineProperty(a,N,{enumerable:!1,value:function(){throw new Error(N+" is not supported in userland")}})})},43827:function(o,a,n){var l=n(90386),f=Object.getOwnPropertyDescriptors||function(j){for(var N=Object.keys(j),E={},W=0;W=G)return H;switch(H){case"%s":return String(W[E++]);case"%d":return Number(W[E++]);case"%j":try{return JSON.stringify(W[E++])}catch{return"[Circular]"}default:return H}}),q=W[E];E=3&&(E.depth=arguments[2]),arguments.length>=4&&(E.colors=arguments[3]),_(N)?E.showHidden=N:N&&a._extend(E,N),M(E.showHidden)&&(E.showHidden=!1),M(E.depth)&&(E.depth=2),M(E.colors)&&(E.colors=!1),M(E.customInspect)&&(E.customInspect=!0),E.colors&&(E.stylize=m),v(E,j,E.depth)}function m(j,N){var E=p.styles[N];return E?"\x1B["+p.colors[E][0]+"m"+j+"\x1B["+p.colors[E][1]+"m":j}function y(j,N){return j}function v(j,N,E){if(j.customInspect&&N&&O(N.inspect)&&N.inspect!==a.inspect&&(!N.constructor||N.constructor.prototype!==N)){var W=N.inspect(E,j);return T(W)||(W=v(j,W,E)),W}var G=function(Q,Y){if(M(Y))return Q.stylize("undefined","undefined");if(T(Y)){var Z="'"+JSON.stringify(Y).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Q.stylize(Z,"string")}return k(Y)?Q.stylize(""+Y,"number"):_(Y)?Q.stylize(""+Y,"boolean"):w(Y)?Q.stylize("null","null"):void 0}(j,N);if(G)return G;var L=Object.keys(N),q=function(Q){var Y={};return Q.forEach(function(Z,X){Y[Z]=!0}),Y}(L);if(j.showHidden&&(L=Object.getOwnPropertyNames(N)),D(N)&&(L.indexOf("message")>=0||L.indexOf("description")>=0))return g(N);if(L.length===0){if(O(N)){var H=N.name?": "+N.name:"";return j.stylize("[Function"+H+"]","special")}if(S(N))return j.stylize(RegExp.prototype.toString.call(N),"regexp");if(P(N))return j.stylize(Date.prototype.toString.call(N),"date");if(D(N))return g(N)}var V,te="",ee=!1,U=["{","}"];return x(N)&&(ee=!0,U=["[","]"]),O(N)&&(te=" [Function"+(N.name?": "+N.name:"")+"]"),S(N)&&(te=" "+RegExp.prototype.toString.call(N)),P(N)&&(te=" "+Date.prototype.toUTCString.call(N)),D(N)&&(te=" "+g(N)),L.length!==0||ee&&N.length!=0?E<0?S(N)?j.stylize(RegExp.prototype.toString.call(N),"regexp"):j.stylize("[Object]","special"):(j.seen.push(N),V=ee?function(Q,Y,Z,X,re){for(var ie=[],le=0,se=Y.length;le0}var n=/<[-_.:a-zA-Z0-9][^>]*>/,l=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,f=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,s=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,c=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,d=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function h(p){return d.test(p)?p.match(d)[0]:"px"}o.exports=function(p){if(function(S){var C,P=0,D=S.length;for(S[0]===239&&S[1]===187&&S[2]===191&&(P=3);P>14&16383),type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function v(g,b){return{width:1+(g[b+6]<<16|g[b+5]<<8|g[b+4]),height:1+(g[b+9]<g.length)){for(;b+8=10?x=x||m(g,b+8):k==="VP8L"&&T>=9?x=x||y(g,b+8):k==="VP8X"&&T>=10?x=x||v(g,b+8):k==="EXIF"&&(_=d.get_orientation(g.slice(b+8,b+8+T)),b=1/0),b+=8+T}else b++;if(x)return _>0&&(x.orientation=_),x}}}},91497:function(o,a,n){o.exports={avif:n(24461),bmp:n(2504),gif:n(47342),ico:n(31355),jpeg:n(54261),png:n(6303),psd:n(38689),svg:n(6881),tiff:n(66278),webp:n(90784)}},33575:function(o,a,n){var l=n(91497);o.exports=function(f){return function(s){for(var c=Object.keys(l),d=0;d1)for(var w=1;w2?"one of ".concat(s," ").concat(f.slice(0,c-1).join(", "),", or ")+f[c-1]:c===2?"one of ".concat(s," ").concat(f[0]," or ").concat(f[1]):"of ".concat(s," ").concat(f[0])}return"of ".concat(s," ").concat(String(f))}n("ERR_INVALID_OPT_VALUE",function(f,s){return'The value "'+s+'" is invalid for option "'+f+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(f,s,c){var d,h,p,m,y;if(typeof s=="string"&&(h="not ",s.substr(0,4)===h)?(d="must not be",s=s.replace(/^not /,"")):d="must be",function(g,b,x){return(x===void 0||x>g.length)&&(x=g.length),g.substring(x-9,x)===b}(f," argument"))p="The ".concat(f," ").concat(d," ").concat(l(s,"type"));else{var v=(typeof y!="number"&&(y=0),y+1>(m=f).length||m.indexOf(".",y)===-1?"argument":"property");p='The "'.concat(f,'" ').concat(v," ").concat(d," ").concat(l(s,"type"))}return p+". Received type ".concat(typeof c)},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(f){return"The "+f+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(f){return"Cannot call "+f+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(f){return"Unknown encoding: "+f},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),o.exports.q=a},37865:function(o,a,n){var l=n(90386),f=Object.keys||function(g){var b=[];for(var x in g)b.push(x);return b};o.exports=m;var s=n(40410),c=n(37493);n(42018)(m,s);for(var d=f(c.prototype),h=0;h0)if(typeof U=="string"||re.objectMode||Object.getPrototypeOf(U)===h.prototype||(U=function(ie){return h.from(ie)}(U)),Y)re.endEmitted?C(ee,new S):F(ee,re,U,!0);else if(re.ended)C(ee,new T);else{if(re.destroyed)return!1;re.reading=!1,re.decoder&&!Q?(U=re.decoder.write(U),re.objectMode||U.length!==0?F(ee,re,U,!1):j(ee,re)):F(ee,re,U,!1)}else Y||(re.reading=!1,j(ee,re));return!re.ended&&(re.lengthU.highWaterMark&&(U.highWaterMark=function(Q){return Q>=A?Q=A:(Q--,Q|=Q>>>1,Q|=Q>>>2,Q|=Q>>>4,Q|=Q>>>8,Q|=Q>>>16,Q++),Q}(ee)),ee<=U.length?ee:U.ended?U.length:(U.needReadable=!0,0))}function B(ee){var U=ee._readableState;s("emitReadable",U.needReadable,U.emittedReadable),U.needReadable=!1,U.emittedReadable||(s("emitReadable",U.flowing),U.emittedReadable=!0,f.nextTick($,ee))}function $(ee){var U=ee._readableState;s("emitReadable_",U.destroyed,U.length,U.ended),U.destroyed||!U.length&&!U.ended||(ee.emit("readable"),U.emittedReadable=!1),U.needReadable=!U.flowing&&!U.ended&&U.length<=U.highWaterMark,L(ee)}function j(ee,U){U.readingMore||(U.readingMore=!0,f.nextTick(N,ee,U))}function N(ee,U){for(;!U.reading&&!U.ended&&(U.length0,U.resumeScheduled&&!U.paused?U.flowing=!0:ee.listenerCount("data")>0&&ee.resume()}function W(ee){s("readable nexttick read 0"),ee.read(0)}function G(ee,U){s("resume",U.reading),U.reading||ee.read(0),U.resumeScheduled=!1,ee.emit("resume"),L(ee),U.flowing&&!U.reading&&ee.read(0)}function L(ee){var U=ee._readableState;for(s("flow",U.flowing);U.flowing&&ee.read()!==null;);}function q(ee,U){return U.length===0?null:(U.objectMode?Q=U.buffer.shift():!ee||ee>=U.length?(Q=U.decoder?U.buffer.join(""):U.buffer.length===1?U.buffer.first():U.buffer.concat(U.length),U.buffer.clear()):Q=U.buffer.consume(ee,U.decoder),Q);var Q}function H(ee){var U=ee._readableState;s("endReadable",U.endEmitted),U.endEmitted||(U.ended=!0,f.nextTick(V,U,ee))}function V(ee,U){if(s("endReadableNT",ee.endEmitted,ee.length),!ee.endEmitted&&ee.length===0&&(ee.endEmitted=!0,U.readable=!1,U.emit("end"),ee.autoDestroy)){var Q=U._writableState;(!Q||Q.autoDestroy&&Q.finished)&&U.destroy()}}function te(ee,U){for(var Q=0,Y=ee.length;Q=U.highWaterMark:U.length>0)||U.ended))return s("read: emitReadable",U.length,U.ended),U.length===0&&U.ended?H(this):B(this),null;if((ee=z(ee,U))===0&&U.ended)return U.length===0&&H(this),null;var Y,Z=U.needReadable;return s("need readable",Z),(U.length===0||U.length-ee0?q(ee,U):null)===null?(U.needReadable=U.length<=U.highWaterMark,ee=0):(U.length-=ee,U.awaitDrain=0),U.length===0&&(U.ended||(U.needReadable=!0),Q!==ee&&U.ended&&H(this)),Y!==null&&this.emit("data",Y),Y},O.prototype._read=function(ee){C(this,new M("_read()"))},O.prototype.pipe=function(ee,U){var Q=this,Y=this._readableState;switch(Y.pipesCount){case 0:Y.pipes=ee;break;case 1:Y.pipes=[Y.pipes,ee];break;default:Y.pipes.push(ee)}Y.pipesCount+=1,s("pipe count=%d opts=%j",Y.pipesCount,U);var Z=U&&U.end===!1||ee===f.stdout||ee===f.stderr?Se:X;function X(){s("onend"),ee.end()}Y.endEmitted?f.nextTick(Z):Q.once("end",Z),ee.on("unpipe",function Oe(Me,ce){s("onunpipe"),Me===Q&&ce&&ce.hasUnpiped===!1&&(ce.hasUnpiped=!0,s("cleanup"),ee.removeListener("close",pe),ee.removeListener("finish",Te),ee.removeListener("drain",re),ee.removeListener("error",se),ee.removeListener("unpipe",Oe),Q.removeListener("end",X),Q.removeListener("end",Se),Q.removeListener("data",le),ie=!0,!Y.awaitDrain||ee._writableState&&!ee._writableState.needDrain||re())});var re=function(Oe){return function(){var Me=Oe._readableState;s("pipeOnDrain",Me.awaitDrain),Me.awaitDrain&&Me.awaitDrain--,Me.awaitDrain===0&&c(Oe,"data")&&(Me.flowing=!0,L(Oe))}}(Q);ee.on("drain",re);var ie=!1;function le(Oe){s("ondata");var Me=ee.write(Oe);s("dest.write",Me),Me===!1&&((Y.pipesCount===1&&Y.pipes===ee||Y.pipesCount>1&&te(Y.pipes,ee)!==-1)&&!ie&&(s("false write response, pause",Y.awaitDrain),Y.awaitDrain++),Q.pause())}function se(Oe){s("onerror",Oe),Se(),ee.removeListener("error",se),c(ee,"error")===0&&C(ee,Oe)}function pe(){ee.removeListener("finish",Te),Se()}function Te(){s("onfinish"),ee.removeListener("close",pe),Se()}function Se(){s("unpipe"),Q.unpipe(ee)}return Q.on("data",le),function(Oe,Me,ce){if(typeof Oe.prependListener=="function")return Oe.prependListener(Me,ce);Oe._events&&Oe._events[Me]?Array.isArray(Oe._events[Me])?Oe._events[Me].unshift(ce):Oe._events[Me]=[ce,Oe._events[Me]]:Oe.on(Me,ce)}(ee,"error",se),ee.once("close",pe),ee.once("finish",Te),ee.emit("pipe",Q),Y.flowing||(s("pipe resume"),Q.resume()),ee},O.prototype.unpipe=function(ee){var U=this._readableState,Q={hasUnpiped:!1};if(U.pipesCount===0)return this;if(U.pipesCount===1)return ee&&ee!==U.pipes||(ee||(ee=U.pipes),U.pipes=null,U.pipesCount=0,U.flowing=!1,ee&&ee.emit("unpipe",this,Q)),this;if(!ee){var Y=U.pipes,Z=U.pipesCount;U.pipes=null,U.pipesCount=0,U.flowing=!1;for(var X=0;X0,Y.flowing!==!1&&this.resume()):ee==="readable"&&(Y.endEmitted||Y.readableListening||(Y.readableListening=Y.needReadable=!0,Y.flowing=!1,Y.emittedReadable=!1,s("on readable",Y.length,Y.reading),Y.length?B(this):Y.reading||f.nextTick(W,this))),Q},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(ee,U){var Q=d.prototype.removeListener.call(this,ee,U);return ee==="readable"&&f.nextTick(E,this),Q},O.prototype.removeAllListeners=function(ee){var U=d.prototype.removeAllListeners.apply(this,arguments);return ee!=="readable"&&ee!==void 0||f.nextTick(E,this),U},O.prototype.resume=function(){var ee=this._readableState;return ee.flowing||(s("resume"),ee.flowing=!ee.readableListening,function(U,Q){Q.resumeScheduled||(Q.resumeScheduled=!0,f.nextTick(G,U,Q))}(this,ee)),ee.paused=!1,this},O.prototype.pause=function(){return s("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(s("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(ee){var U=this,Q=this._readableState,Y=!1;for(var Z in ee.on("end",function(){if(s("wrapped end"),Q.decoder&&!Q.ended){var re=Q.decoder.end();re&&re.length&&U.push(re)}U.push(null)}),ee.on("data",function(re){s("wrapped data"),Q.decoder&&(re=Q.decoder.write(re)),Q.objectMode&&re==null||(Q.objectMode||re&&re.length)&&(U.push(re)||(Y=!0,ee.pause()))}),ee)this[Z]===void 0&&typeof ee[Z]=="function"&&(this[Z]=function(re){return function(){return ee[re].apply(ee,arguments)}}(Z));for(var X=0;X-1))throw new S(j);return this._writableState.defaultEncoding=j,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(j,N,E){E(new x("_write()"))},O.prototype._writev=null,O.prototype.end=function(j,N,E){var W=this._writableState;return typeof j=="function"?(E=j,j=null,N=null):typeof N=="function"&&(E=N,N=null),j!=null&&this.write(j,N),W.corked&&(W.corked=1,this.uncork()),W.ending||function(G,L,q){L.ending=!0,$(G,L),q&&(L.finished?f.nextTick(q):G.once("finish",q)),L.ended=!0,G.writable=!1}(this,W,E),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(j){this._writableState&&(this._writableState.destroyed=j)}}),O.prototype.destroy=y.destroy,O.prototype._undestroy=y.undestroy,O.prototype._destroy=function(j,N){N(j)}},68221:function(o,a,n){var l,f=n(90386);function s(T,M,S){return M in T?Object.defineProperty(T,M,{value:S,enumerable:!0,configurable:!0,writable:!0}):T[M]=S,T}var c=n(12726),d=Symbol("lastResolve"),h=Symbol("lastReject"),p=Symbol("error"),m=Symbol("ended"),y=Symbol("lastPromise"),v=Symbol("handlePromise"),g=Symbol("stream");function b(T,M){return{value:T,done:M}}function x(T){var M=T[d];if(M!==null){var S=T[g].read();S!==null&&(T[y]=null,T[d]=null,T[h]=null,M(b(S,!1)))}}function _(T){f.nextTick(x,T)}var w=Object.getPrototypeOf(function(){}),k=Object.setPrototypeOf((s(l={get stream(){return this[g]},next:function(){var T=this,M=this[p];if(M!==null)return Promise.reject(M);if(this[m])return Promise.resolve(b(void 0,!0));if(this[g].destroyed)return new Promise(function(D,O){f.nextTick(function(){T[p]?O(T[p]):D(b(void 0,!0))})});var S,C=this[y];if(C)S=new Promise(function(D,O){return function(R,F){D.then(function(){O[m]?R(b(void 0,!0)):O[v](R,F)},F)}}(C,this));else{var P=this[g].read();if(P!==null)return Promise.resolve(b(P,!1));S=new Promise(this[v])}return this[y]=S,S}},Symbol.asyncIterator,function(){return this}),s(l,"return",function(){var T=this;return new Promise(function(M,S){T[g].destroy(null,function(C){C?S(C):M(b(void 0,!0))})})}),l),w);o.exports=function(T){var M,S=Object.create(k,(s(M={},g,{value:T,writable:!0}),s(M,d,{value:null,writable:!0}),s(M,h,{value:null,writable:!0}),s(M,p,{value:null,writable:!0}),s(M,m,{value:T._readableState.endEmitted,writable:!0}),s(M,v,{value:function(C,P){var D=S[g].read();D?(S[y]=null,S[d]=null,S[h]=null,C(b(D,!1))):(S[d]=C,S[h]=P)},writable:!0}),M));return S[y]=null,c(T,function(C){if(C&&C.code!=="ERR_STREAM_PREMATURE_CLOSE"){var P=S[h];return P!==null&&(S[y]=null,S[d]=null,S[h]=null,P(C)),void(S[p]=C)}var D=S[d];D!==null&&(S[y]=null,S[d]=null,S[h]=null,D(b(void 0,!0))),S[m]=!0}),T.on("readable",_.bind(null,S)),S}},31125:function(o,a,n){function l(p,m){var y=Object.keys(p);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(p);m&&(v=v.filter(function(g){return Object.getOwnPropertyDescriptor(p,g).enumerable})),y.push.apply(y,v)}return y}function f(p,m,y){return m in p?Object.defineProperty(p,m,{value:y,enumerable:!0,configurable:!0,writable:!0}):p[m]=y,p}function s(p,m){for(var y=0;y0?this.tail.next=g:this.head=g,this.tail=g,++this.length}},{key:"unshift",value:function(v){var g={data:v,next:this.head};this.length===0&&(this.tail=g),this.head=g,++this.length}},{key:"shift",value:function(){if(this.length!==0){var v=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,v}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(v){if(this.length===0)return"";for(var g=this.head,b=""+g.data;g=g.next;)b+=v+g.data;return b}},{key:"concat",value:function(v){if(this.length===0)return c.alloc(0);for(var g,b,x,_=c.allocUnsafe(v>>>0),w=this.head,k=0;w;)g=w.data,b=_,x=k,c.prototype.copy.call(g,b,x),k+=w.data.length,w=w.next;return _}},{key:"consume",value:function(v,g){var b;return v_.length?_.length:v;if(w===_.length?x+=_:x+=_.slice(0,v),(v-=w)==0){w===_.length?(++b,g.next?this.head=g.next:this.head=this.tail=null):(this.head=g,g.data=_.slice(w));break}++b}return this.length-=b,x}},{key:"_getBuffer",value:function(v){var g=c.allocUnsafe(v),b=this.head,x=1;for(b.data.copy(g),v-=b.data.length;b=b.next;){var _=b.data,w=v>_.length?_.length:v;if(_.copy(g,g.length-v,0,w),(v-=w)==0){w===_.length?(++x,b.next?this.head=b.next:this.head=this.tail=null):(this.head=b,b.data=_.slice(w));break}++x}return this.length-=x,g}},{key:h,value:function(v,g){return d(this,function(b){for(var x=1;x0,function(T){g||(g=T),T&&x.forEach(h),k||(x.forEach(h),b(g))})});return y.reduce(p)}},56306:function(o,a,n){var l=n(74322).q.ERR_INVALID_OPT_VALUE;o.exports={getHighWaterMark:function(f,s,c,d){var h=function(p,m,y){return p.highWaterMark!=null?p.highWaterMark:m?p[y]:null}(s,d,c);if(h!=null){if(!isFinite(h)||Math.floor(h)!==h||h<0)throw new l(d?c:"highWaterMark",h);return Math.floor(h)}return f.objectMode?16:16384}}},71405:function(o,a,n){o.exports=n(15398).EventEmitter},68019:function(o,a,n){var l=n(71665).Buffer,f=l.isEncoding||function(b){switch((b=""+b)&&b.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(b){var x;switch(this.encoding=function(_){var w=function(k){if(!k)return"utf8";for(var T;;)switch(k){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return k;default:if(T)return;k=(""+k).toLowerCase(),T=!0}}(_);if(typeof w!="string"&&(l.isEncoding===f||!f(_)))throw new Error("Unknown encoding: "+_);return w||_}(b),this.encoding){case"utf16le":this.text=h,this.end=p,x=4;break;case"utf8":this.fillLast=d,x=4;break;case"base64":this.text=m,this.end=y,x=3;break;default:return this.write=v,void(this.end=g)}this.lastNeed=0,this.lastTotal=0,this.lastChar=l.allocUnsafe(x)}function c(b){return b<=127?0:b>>5==6?2:b>>4==14?3:b>>3==30?4:b>>6==2?-1:-2}function d(b){var x=this.lastTotal-this.lastNeed,_=function(w,k,T){if((192&k[0])!=128)return w.lastNeed=0,"�";if(w.lastNeed>1&&k.length>1){if((192&k[1])!=128)return w.lastNeed=1,"�";if(w.lastNeed>2&&k.length>2&&(192&k[2])!=128)return w.lastNeed=2,"�"}}(this,b);return _!==void 0?_:this.lastNeed<=b.length?(b.copy(this.lastChar,x,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(b.copy(this.lastChar,x,0,b.length),void(this.lastNeed-=b.length))}function h(b,x){if((b.length-x)%2==0){var _=b.toString("utf16le",x);if(_){var w=_.charCodeAt(_.length-1);if(w>=55296&&w<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=b[b.length-2],this.lastChar[1]=b[b.length-1],_.slice(0,-1)}return _}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=b[b.length-1],b.toString("utf16le",x,b.length-1)}function p(b){var x=b&&b.length?this.write(b):"";if(this.lastNeed){var _=this.lastTotal-this.lastNeed;return x+this.lastChar.toString("utf16le",0,_)}return x}function m(b,x){var _=(b.length-x)%3;return _===0?b.toString("base64",x):(this.lastNeed=3-_,this.lastTotal=3,_===1?this.lastChar[0]=b[b.length-1]:(this.lastChar[0]=b[b.length-2],this.lastChar[1]=b[b.length-1]),b.toString("base64",x,b.length-_))}function y(b){var x=b&&b.length?this.write(b):"";return this.lastNeed?x+this.lastChar.toString("base64",0,3-this.lastNeed):x}function v(b){return b.toString(this.encoding)}function g(b){return b&&b.length?this.write(b):""}a.s=s,s.prototype.write=function(b){if(b.length===0)return"";var x,_;if(this.lastNeed){if((x=this.fillLast(b))===void 0)return"";_=this.lastNeed,this.lastNeed=0}else _=0;return _=0?(C>0&&(k.lastNeed=C-1),C):--S=0?(C>0&&(k.lastNeed=C-2),C):--S=0?(C>0&&(C===2?C=0:k.lastNeed=C-3),C):0}(this,b,x);if(!this.lastNeed)return b.toString("utf8",x);this.lastTotal=_;var w=b.length-(_-this.lastNeed);return b.copy(this.lastChar,0,w),b.toString("utf8",x,w)},s.prototype.fillLast=function(b){if(this.lastNeed<=b.length)return b.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);b.copy(this.lastChar,this.lastTotal-this.lastNeed,0,b.length),this.lastNeed-=b.length}},90715:function(o,a,n){var l=n(32791),f=n(41633)("stream-parser");o.exports=function(k){var T=k&&typeof k._transform=="function",M=k&&typeof k._write=="function";if(!T&&!M)throw new Error("must pass a Writable or Transform stream in");f("extending Parser into stream"),k._bytes=m,k._skipBytes=y,T&&(k._passthrough=v),T?k._transform=b:k._write=g};var s=-1,c=0,d=1,h=2;function p(k){f("initializing parser stream"),k._parserBytesLeft=0,k._parserBuffers=[],k._parserBuffered=0,k._parserState=s,k._parserCallback=null,typeof k.push=="function"&&(k._parserOutput=k.push.bind(k)),k._parserInit=!0}function m(k,T){l(!this._parserCallback,'there is already a "callback" set!'),l(isFinite(k)&&k>0,'can only buffer a finite number of bytes > 0, got "'+k+'"'),this._parserInit||p(this),f("buffering %o bytes",k),this._parserBytesLeft=k,this._parserCallback=T,this._parserState=c}function y(k,T){l(!this._parserCallback,'there is already a "callback" set!'),l(k>0,'can only skip > 0 bytes, got "'+k+'"'),this._parserInit||p(this),f("skipping %o bytes",k),this._parserBytesLeft=k,this._parserCallback=T,this._parserState=d}function v(k,T){l(!this._parserCallback,'There is already a "callback" set!'),l(k>0,'can only pass through > 0 bytes, got "'+k+'"'),this._parserInit||p(this),f("passing through %o bytes",k),this._parserBytesLeft=k,this._parserCallback=T,this._parserState=h}function g(k,T,M){this._parserInit||p(this),f("write(%o bytes)",k.length),typeof T=="function"&&(M=T),_(this,k,null,M)}function b(k,T,M){this._parserInit||p(this),f("transform(%o bytes)",k.length),typeof T!="function"&&(T=this._parserOutput),_(this,k,T,M)}function x(k,T,M,S){if(k._parserBytesLeft-=T.length,f("%o bytes left for stream piece",k._parserBytesLeft),k._parserState===c?(k._parserBuffers.push(T),k._parserBuffered+=T.length):k._parserState===h&&M(T),k._parserBytesLeft!==0)return S;var C=k._parserCallback;if(C&&k._parserState===c&&k._parserBuffers.length>1&&(T=Buffer.concat(k._parserBuffers,k._parserBuffered)),k._parserState!==c&&(T=null),k._parserCallback=null,k._parserBuffered=0,k._parserState=s,k._parserBuffers.splice(0),C){var P=[];T&&P.push(T),M&&P.push(M);var D=C.length>P.length;D&&P.push(w(S));var O=C.apply(k,P);if(!D||S===O)return S}}var _=w(function k(T,M,S,C){return T._parserBytesLeft<=0?C(new Error("got data but not currently parsing anything")):M.length<=T._parserBytesLeft?function(){return x(T,M,S,C)}:function(){var P=M.slice(0,T._parserBytesLeft);return x(T,P,S,function(D){return D?C(D):M.length>P.length?function(){return k(T,M.slice(P.length),S,C)}:void 0})}});function w(k){return function(){for(var T=k.apply(this,arguments);typeof T=="function";)T=T();return T}}},41633:function(o,a,n){var l=n(90386);function f(){var s;try{s=a.storage.debug}catch{}return!s&&l!==void 0&&"env"in l&&(s=l.env.DEBUG),s}(a=o.exports=n(74469)).log=function(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},a.formatArgs=function(s){var c=this.useColors;if(s[0]=(c?"%c":"")+this.namespace+(c?" %c":" ")+s[0]+(c?"%c ":" ")+"+"+a.humanize(this.diff),c){var d="color: "+this.color;s.splice(1,0,d,"color: inherit");var h=0,p=0;s[0].replace(/%[a-zA-Z%]/g,function(m){m!=="%%"&&(h++,m==="%c"&&(p=h))}),s.splice(p,0,d)}},a.save=function(s){try{s==null?a.storage.removeItem("debug"):a.storage.debug=s}catch{}},a.load=f,a.useColors=function(){return!(typeof window>"u"||!window.process||window.process.type!=="renderer")||typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},a.storage=typeof chrome<"u"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch{}}(),a.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],a.formatters.j=function(s){try{return JSON.stringify(s)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}},a.enable(f())},74469:function(o,a,n){var l;function f(s){function c(){if(c.enabled){var d=c,h=+new Date,p=h-(l||h);d.diff=p,d.prev=l,d.curr=h,l=h;for(var m=new Array(arguments.length),y=0;y0)return function(m){if(!((m=String(m)).length>100)){var y=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(m);if(y){var v=parseFloat(y[1]);switch((y[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*v;case"days":case"day":case"d":return v*f;case"hours":case"hour":case"hrs":case"hr":case"h":return v*l;case"minutes":case"minute":case"mins":case"min":case"m":return v*n;case"seconds":case"second":case"secs":case"sec":case"s":return v*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return v;default:return}}}}(c);if(p==="number"&&isNaN(c)===!1)return d.long?s(h=c,f,"day")||s(h,l,"hour")||s(h,n,"minute")||s(h,a,"second")||h+" ms":function(m){return m>=f?Math.round(m/f)+"d":m>=l?Math.round(m/l)+"h":m>=n?Math.round(m/n)+"m":m>=a?Math.round(m/a)+"s":m+"ms"}(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))}},84267:function(o,a,n){var l;(function(f){var s=/^\s+/,c=/\s+$/,d=0,h=f.round,p=f.min,m=f.max,y=f.random;function v(Y,Z){if(Z=Z||{},(Y=Y||"")instanceof v)return Y;if(!(this instanceof v))return new v(Y,Z);var X=function(re){var ie,le,se,pe={r:0,g:0,b:0},Te=1,Se=null,Oe=null,Me=null,ce=!1,ye=!1;return typeof re=="string"&&(re=function(J){J=J.replace(s,"").replace(c,"").toLowerCase();var ne,de=!1;if(B[J])J=B[J],de=!0;else if(J=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(ne=U.rgb.exec(J))?{r:ne[1],g:ne[2],b:ne[3]}:(ne=U.rgba.exec(J))?{r:ne[1],g:ne[2],b:ne[3],a:ne[4]}:(ne=U.hsl.exec(J))?{h:ne[1],s:ne[2],l:ne[3]}:(ne=U.hsla.exec(J))?{h:ne[1],s:ne[2],l:ne[3],a:ne[4]}:(ne=U.hsv.exec(J))?{h:ne[1],s:ne[2],v:ne[3]}:(ne=U.hsva.exec(J))?{h:ne[1],s:ne[2],v:ne[3],a:ne[4]}:(ne=U.hex8.exec(J))?{r:W(ne[1]),g:W(ne[2]),b:W(ne[3]),a:H(ne[4]),format:de?"name":"hex8"}:(ne=U.hex6.exec(J))?{r:W(ne[1]),g:W(ne[2]),b:W(ne[3]),format:de?"name":"hex"}:(ne=U.hex4.exec(J))?{r:W(ne[1]+""+ne[1]),g:W(ne[2]+""+ne[2]),b:W(ne[3]+""+ne[3]),a:H(ne[4]+""+ne[4]),format:de?"name":"hex8"}:!!(ne=U.hex3.exec(J))&&{r:W(ne[1]+""+ne[1]),g:W(ne[2]+""+ne[2]),b:W(ne[3]+""+ne[3]),format:de?"name":"hex"}}(re)),typeof re=="object"&&(Q(re.r)&&Q(re.g)&&Q(re.b)?(ie=re.r,le=re.g,se=re.b,pe={r:255*N(ie,255),g:255*N(le,255),b:255*N(se,255)},ce=!0,ye=String(re.r).substr(-1)==="%"?"prgb":"rgb"):Q(re.h)&&Q(re.s)&&Q(re.v)?(Se=L(re.s),Oe=L(re.v),pe=function(J,ne,de){J=6*N(J,360),ne=N(ne,100),de=N(de,100);var xe=f.floor(J),ue=J-xe,ge=de*(1-ne),be=de*(1-ue*ne),we=de*(1-(1-ue)*ne),ke=xe%6;return{r:255*[de,be,ge,ge,we,de][ke],g:255*[we,de,de,be,ge,ge][ke],b:255*[ge,ge,we,de,de,be][ke]}}(re.h,Se,Oe),ce=!0,ye="hsv"):Q(re.h)&&Q(re.s)&&Q(re.l)&&(Se=L(re.s),Me=L(re.l),pe=function(J,ne,de){var xe,ue,ge;function be(Ae,Ee,De){return De<0&&(De+=1),De>1&&(De-=1),De<1/6?Ae+6*(Ee-Ae)*De:De<.5?Ee:De<2/3?Ae+(Ee-Ae)*(2/3-De)*6:Ae}if(J=N(J,360),ne=N(ne,100),de=N(de,100),ne===0)xe=ue=ge=de;else{var we=de<.5?de*(1+ne):de+ne-de*ne,ke=2*de-we;xe=be(ke,we,J+1/3),ue=be(ke,we,J),ge=be(ke,we,J-1/3)}return{r:255*xe,g:255*ue,b:255*ge}}(re.h,Se,Me),ce=!0,ye="hsl"),re.hasOwnProperty("a")&&(Te=re.a)),Te=j(Te),{ok:ce,format:re.format||ye,r:p(255,m(pe.r,0)),g:p(255,m(pe.g,0)),b:p(255,m(pe.b,0)),a:Te}}(Y);this._originalInput=Y,this._r=X.r,this._g=X.g,this._b=X.b,this._a=X.a,this._roundA=h(100*this._a)/100,this._format=Z.format||X.format,this._gradientType=Z.gradientType,this._r<1&&(this._r=h(this._r)),this._g<1&&(this._g=h(this._g)),this._b<1&&(this._b=h(this._b)),this._ok=X.ok,this._tc_id=d++}function g(Y,Z,X){Y=N(Y,255),Z=N(Z,255),X=N(X,255);var re,ie,le=m(Y,Z,X),se=p(Y,Z,X),pe=(le+se)/2;if(le==se)re=ie=0;else{var Te=le-se;switch(ie=pe>.5?Te/(2-le-se):Te/(le+se),le){case Y:re=(Z-X)/Te+(Z>1)+720)%360;--Z;)re.h=(re.h+ie)%360,le.push(v(re));return le}function z(Y,Z){Z=Z||6;for(var X=v(Y).toHsv(),re=X.h,ie=X.s,le=X.v,se=[],pe=1/Z;Z--;)se.push(v({h:re,s:ie,v:le})),le=(le+pe)%1;return se}v.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Y=this.toRgb();return(299*Y.r+587*Y.g+114*Y.b)/1e3},getLuminance:function(){var Y,Z,X,re=this.toRgb();return Y=re.r/255,Z=re.g/255,X=re.b/255,.2126*(Y<=.03928?Y/12.92:f.pow((Y+.055)/1.055,2.4))+.7152*(Z<=.03928?Z/12.92:f.pow((Z+.055)/1.055,2.4))+.0722*(X<=.03928?X/12.92:f.pow((X+.055)/1.055,2.4))},setAlpha:function(Y){return this._a=j(Y),this._roundA=h(100*this._a)/100,this},toHsv:function(){var Y=b(this._r,this._g,this._b);return{h:360*Y.h,s:Y.s,v:Y.v,a:this._a}},toHsvString:function(){var Y=b(this._r,this._g,this._b),Z=h(360*Y.h),X=h(100*Y.s),re=h(100*Y.v);return this._a==1?"hsv("+Z+", "+X+"%, "+re+"%)":"hsva("+Z+", "+X+"%, "+re+"%, "+this._roundA+")"},toHsl:function(){var Y=g(this._r,this._g,this._b);return{h:360*Y.h,s:Y.s,l:Y.l,a:this._a}},toHslString:function(){var Y=g(this._r,this._g,this._b),Z=h(360*Y.h),X=h(100*Y.s),re=h(100*Y.l);return this._a==1?"hsl("+Z+", "+X+"%, "+re+"%)":"hsla("+Z+", "+X+"%, "+re+"%, "+this._roundA+")"},toHex:function(Y){return x(this._r,this._g,this._b,Y)},toHexString:function(Y){return"#"+this.toHex(Y)},toHex8:function(Y){return function(Z,X,re,ie,le){var se=[G(h(Z).toString(16)),G(h(X).toString(16)),G(h(re).toString(16)),G(q(ie))];return le&&se[0].charAt(0)==se[0].charAt(1)&&se[1].charAt(0)==se[1].charAt(1)&&se[2].charAt(0)==se[2].charAt(1)&&se[3].charAt(0)==se[3].charAt(1)?se[0].charAt(0)+se[1].charAt(0)+se[2].charAt(0)+se[3].charAt(0):se.join("")}(this._r,this._g,this._b,this._a,Y)},toHex8String:function(Y){return"#"+this.toHex8(Y)},toRgb:function(){return{r:h(this._r),g:h(this._g),b:h(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+h(this._r)+", "+h(this._g)+", "+h(this._b)+")":"rgba("+h(this._r)+", "+h(this._g)+", "+h(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:h(100*N(this._r,255))+"%",g:h(100*N(this._g,255))+"%",b:h(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+h(100*N(this._r,255))+"%, "+h(100*N(this._g,255))+"%, "+h(100*N(this._b,255))+"%)":"rgba("+h(100*N(this._r,255))+"%, "+h(100*N(this._g,255))+"%, "+h(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&($[x(this._r,this._g,this._b,!0)]||!1)},toFilter:function(Y){var Z="#"+_(this._r,this._g,this._b,this._a),X=Z,re=this._gradientType?"GradientType = 1, ":"";if(Y){var ie=v(Y);X="#"+_(ie._r,ie._g,ie._b,ie._a)}return"progid:DXImageTransform.Microsoft.gradient("+re+"startColorstr="+Z+",endColorstr="+X+")"},toString:function(Y){var Z=!!Y;Y=Y||this._format;var X=!1,re=this._a<1&&this._a>=0;return Z||!re||Y!=="hex"&&Y!=="hex6"&&Y!=="hex3"&&Y!=="hex4"&&Y!=="hex8"&&Y!=="name"?(Y==="rgb"&&(X=this.toRgbString()),Y==="prgb"&&(X=this.toPercentageRgbString()),Y!=="hex"&&Y!=="hex6"||(X=this.toHexString()),Y==="hex3"&&(X=this.toHexString(!0)),Y==="hex4"&&(X=this.toHex8String(!0)),Y==="hex8"&&(X=this.toHex8String()),Y==="name"&&(X=this.toName()),Y==="hsl"&&(X=this.toHslString()),Y==="hsv"&&(X=this.toHsvString()),X||this.toHexString()):Y==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return v(this.toString())},_applyModification:function(Y,Z){var X=Y.apply(null,[this].concat([].slice.call(Z)));return this._r=X._r,this._g=X._g,this._b=X._b,this.setAlpha(X._a),this},lighten:function(){return this._applyModification(M,arguments)},brighten:function(){return this._applyModification(S,arguments)},darken:function(){return this._applyModification(C,arguments)},desaturate:function(){return this._applyModification(w,arguments)},saturate:function(){return this._applyModification(k,arguments)},greyscale:function(){return this._applyModification(T,arguments)},spin:function(){return this._applyModification(P,arguments)},_applyCombination:function(Y,Z){return Y.apply(null,[this].concat([].slice.call(Z)))},analogous:function(){return this._applyCombination(A,arguments)},complement:function(){return this._applyCombination(D,arguments)},monochromatic:function(){return this._applyCombination(z,arguments)},splitcomplement:function(){return this._applyCombination(F,arguments)},triad:function(){return this._applyCombination(O,arguments)},tetrad:function(){return this._applyCombination(R,arguments)}},v.fromRatio=function(Y,Z){if(typeof Y=="object"){var X={};for(var re in Y)Y.hasOwnProperty(re)&&(X[re]=re==="a"?Y[re]:L(Y[re]));Y=X}return v(Y,Z)},v.equals=function(Y,Z){return!(!Y||!Z)&&v(Y).toRgbString()==v(Z).toRgbString()},v.random=function(){return v.fromRatio({r:y(),g:y(),b:y()})},v.mix=function(Y,Z,X){X=X===0?0:X||50;var re=v(Y).toRgb(),ie=v(Z).toRgb(),le=X/100;return v({r:(ie.r-re.r)*le+re.r,g:(ie.g-re.g)*le+re.g,b:(ie.b-re.b)*le+re.b,a:(ie.a-re.a)*le+re.a})},v.readability=function(Y,Z){var X=v(Y),re=v(Z);return(f.max(X.getLuminance(),re.getLuminance())+.05)/(f.min(X.getLuminance(),re.getLuminance())+.05)},v.isReadable=function(Y,Z,X){var re,ie,le,se,pe,Te=v.readability(Y,Z);switch(ie=!1,(le=X,(se=((le=le||{level:"AA",size:"small"}).level||"AA").toUpperCase())!=="AA"&&se!=="AAA"&&(se="AA"),(pe=(le.size||"small").toLowerCase())!=="small"&&pe!=="large"&&(pe="small"),re={level:se,size:pe}).level+re.size){case"AAsmall":case"AAAlarge":ie=Te>=4.5;break;case"AAlarge":ie=Te>=3;break;case"AAAsmall":ie=Te>=7}return ie},v.mostReadable=function(Y,Z,X){var re,ie,le,se,pe=null,Te=0;ie=(X=X||{}).includeFallbackColors,le=X.level,se=X.size;for(var Se=0;SeTe&&(Te=re,pe=v(Z[Se]));return v.isReadable(Y,pe,{level:le,size:se})||!ie?pe:(X.includeFallbackColors=!1,v.mostReadable(Y,["#fff","#000"],X))};var B=v.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},$=v.hexNames=function(Y){var Z={};for(var X in Y)Y.hasOwnProperty(X)&&(Z[Y[X]]=X);return Z}(B);function j(Y){return Y=parseFloat(Y),(isNaN(Y)||Y<0||Y>1)&&(Y=1),Y}function N(Y,Z){(function(re){return typeof re=="string"&&re.indexOf(".")!=-1&&parseFloat(re)===1})(Y)&&(Y="100%");var X=function(re){return typeof re=="string"&&re.indexOf("%")!=-1}(Y);return Y=p(Z,m(0,parseFloat(Y))),X&&(Y=parseInt(Y*Z,10)/100),f.abs(Y-Z)<1e-6?1:Y%Z/parseFloat(Z)}function E(Y){return p(1,m(0,Y))}function W(Y){return parseInt(Y,16)}function G(Y){return Y.length==1?"0"+Y:""+Y}function L(Y){return Y<=1&&(Y=100*Y+"%"),Y}function q(Y){return f.round(255*parseFloat(Y)).toString(16)}function H(Y){return W(Y)/255}var V,te,ee,U=(te="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",ee="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+te),rgba:new RegExp("rgba"+ee),hsl:new RegExp("hsl"+te),hsla:new RegExp("hsla"+ee),hsv:new RegExp("hsv"+te),hsva:new RegExp("hsva"+ee),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function Q(Y){return!!U.CSS_UNIT.exec(Y)}o.exports?o.exports=v:(l=(function(){return v}).call(a,n,a,o))===void 0||(o.exports=l)})(Math)},20588:function(o,a,n){function l(f){try{if(!n.g.localStorage)return!1}catch{return!1}var s=n.g.localStorage[f];return s!=null&&String(s).toLowerCase()==="true"}o.exports=function(f,s){if(l("noDeprecation"))return f;var c=!1;return function(){if(!c){if(l("throwDeprecation"))throw new Error(s);l("traceDeprecation")?console.trace(s):console.warn(s),c=!0}return f.apply(this,arguments)}}},45920:function(o){o.exports=function(a){return a&&typeof a=="object"&&typeof a.copy=="function"&&typeof a.fill=="function"&&typeof a.readUInt8=="function"}},4936:function(o,a,n){var l=n(47216),f=n(65481),s=n(21099),c=n(9187);function d(N){return N.call.bind(N)}var h=typeof BigInt<"u",p=typeof Symbol<"u",m=d(Object.prototype.toString),y=d(Number.prototype.valueOf),v=d(String.prototype.valueOf),g=d(Boolean.prototype.valueOf);if(h)var b=d(BigInt.prototype.valueOf);if(p)var x=d(Symbol.prototype.valueOf);function _(N,E){if(typeof N!="object")return!1;try{return E(N),!0}catch{return!1}}function w(N){return m(N)==="[object Map]"}function k(N){return m(N)==="[object Set]"}function T(N){return m(N)==="[object WeakMap]"}function M(N){return m(N)==="[object WeakSet]"}function S(N){return m(N)==="[object ArrayBuffer]"}function C(N){return typeof ArrayBuffer<"u"&&(S.working?S(N):N instanceof ArrayBuffer)}function P(N){return m(N)==="[object DataView]"}function D(N){return typeof DataView<"u"&&(P.working?P(N):N instanceof DataView)}a.isArgumentsObject=l,a.isGeneratorFunction=f,a.isTypedArray=c,a.isPromise=function(N){return typeof Promise<"u"&&N instanceof Promise||N!==null&&typeof N=="object"&&typeof N.then=="function"&&typeof N.catch=="function"},a.isArrayBufferView=function(N){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(N):c(N)||D(N)},a.isUint8Array=function(N){return s(N)==="Uint8Array"},a.isUint8ClampedArray=function(N){return s(N)==="Uint8ClampedArray"},a.isUint16Array=function(N){return s(N)==="Uint16Array"},a.isUint32Array=function(N){return s(N)==="Uint32Array"},a.isInt8Array=function(N){return s(N)==="Int8Array"},a.isInt16Array=function(N){return s(N)==="Int16Array"},a.isInt32Array=function(N){return s(N)==="Int32Array"},a.isFloat32Array=function(N){return s(N)==="Float32Array"},a.isFloat64Array=function(N){return s(N)==="Float64Array"},a.isBigInt64Array=function(N){return s(N)==="BigInt64Array"},a.isBigUint64Array=function(N){return s(N)==="BigUint64Array"},w.working=typeof Map<"u"&&w(new Map),a.isMap=function(N){return typeof Map<"u"&&(w.working?w(N):N instanceof Map)},k.working=typeof Set<"u"&&k(new Set),a.isSet=function(N){return typeof Set<"u"&&(k.working?k(N):N instanceof Set)},T.working=typeof WeakMap<"u"&&T(new WeakMap),a.isWeakMap=function(N){return typeof WeakMap<"u"&&(T.working?T(N):N instanceof WeakMap)},M.working=typeof WeakSet<"u"&&M(new WeakSet),a.isWeakSet=function(N){return M(N)},S.working=typeof ArrayBuffer<"u"&&S(new ArrayBuffer),a.isArrayBuffer=C,P.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&P(new DataView(new ArrayBuffer(1),0,1)),a.isDataView=D;var O=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function R(N){return m(N)==="[object SharedArrayBuffer]"}function F(N){return O!==void 0&&(R.working===void 0&&(R.working=R(new O)),R.working?R(N):N instanceof O)}function A(N){return _(N,y)}function z(N){return _(N,v)}function B(N){return _(N,g)}function $(N){return h&&_(N,b)}function j(N){return p&&_(N,x)}a.isSharedArrayBuffer=F,a.isAsyncFunction=function(N){return m(N)==="[object AsyncFunction]"},a.isMapIterator=function(N){return m(N)==="[object Map Iterator]"},a.isSetIterator=function(N){return m(N)==="[object Set Iterator]"},a.isGeneratorObject=function(N){return m(N)==="[object Generator]"},a.isWebAssemblyCompiledModule=function(N){return m(N)==="[object WebAssembly.Module]"},a.isNumberObject=A,a.isStringObject=z,a.isBooleanObject=B,a.isBigIntObject=$,a.isSymbolObject=j,a.isBoxedPrimitive=function(N){return A(N)||z(N)||B(N)||$(N)||j(N)},a.isAnyArrayBuffer=function(N){return typeof Uint8Array<"u"&&(C(N)||F(N))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(N){Object.defineProperty(a,N,{enumerable:!1,value:function(){throw new Error(N+" is not supported in userland")}})})},43827:function(o,a,n){var l=n(90386),f=Object.getOwnPropertyDescriptors||function(j){for(var N=Object.keys(j),E={},W=0;W=G)return H;switch(H){case"%s":return String(W[E++]);case"%d":return Number(W[E++]);case"%j":try{return JSON.stringify(W[E++])}catch{return"[Circular]"}default:return H}}),q=W[E];E=3&&(E.depth=arguments[2]),arguments.length>=4&&(E.colors=arguments[3]),_(N)?E.showHidden=N:N&&a._extend(E,N),M(E.showHidden)&&(E.showHidden=!1),M(E.depth)&&(E.depth=2),M(E.colors)&&(E.colors=!1),M(E.customInspect)&&(E.customInspect=!0),E.colors&&(E.stylize=m),v(E,j,E.depth)}function m(j,N){var E=p.styles[N];return E?"\x1B["+p.colors[E][0]+"m"+j+"\x1B["+p.colors[E][1]+"m":j}function y(j,N){return j}function v(j,N,E){if(j.customInspect&&N&&O(N.inspect)&&N.inspect!==a.inspect&&(!N.constructor||N.constructor.prototype!==N)){var W=N.inspect(E,j);return T(W)||(W=v(j,W,E)),W}var G=function(Q,Y){if(M(Y))return Q.stylize("undefined","undefined");if(T(Y)){var Z="'"+JSON.stringify(Y).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Q.stylize(Z,"string")}return k(Y)?Q.stylize(""+Y,"number"):_(Y)?Q.stylize(""+Y,"boolean"):w(Y)?Q.stylize("null","null"):void 0}(j,N);if(G)return G;var L=Object.keys(N),q=function(Q){var Y={};return Q.forEach(function(Z,X){Y[Z]=!0}),Y}(L);if(j.showHidden&&(L=Object.getOwnPropertyNames(N)),D(N)&&(L.indexOf("message")>=0||L.indexOf("description")>=0))return g(N);if(L.length===0){if(O(N)){var H=N.name?": "+N.name:"";return j.stylize("[Function"+H+"]","special")}if(S(N))return j.stylize(RegExp.prototype.toString.call(N),"regexp");if(P(N))return j.stylize(Date.prototype.toString.call(N),"date");if(D(N))return g(N)}var V,te="",ee=!1,U=["{","}"];return x(N)&&(ee=!0,U=["[","]"]),O(N)&&(te=" [Function"+(N.name?": "+N.name:"")+"]"),S(N)&&(te=" "+RegExp.prototype.toString.call(N)),P(N)&&(te=" "+Date.prototype.toUTCString.call(N)),D(N)&&(te=" "+g(N)),L.length!==0||ee&&N.length!=0?E<0?S(N)?j.stylize(RegExp.prototype.toString.call(N),"regexp"):j.stylize("[Object]","special"):(j.seen.push(N),V=ee?function(Q,Y,Z,X,re){for(var ie=[],le=0,se=Y.length;le60?Z[0]+(Y===""?"":Y+` `)+" "+Q.join(`, `)+" "+Z[1]:Z[0]+Y+" "+Q.join(", ")+" "+Z[1]}(V,te,U)):U[0]+te+U[1]}function g(j){return"["+Error.prototype.toString.call(j)+"]"}function b(j,N,E,W,G,L){var q,H,V;if((V=Object.getOwnPropertyDescriptor(N,G)||{value:N[G]}).get?H=V.set?j.stylize("[Getter/Setter]","special"):j.stylize("[Getter]","special"):V.set&&(H=j.stylize("[Setter]","special")),z(W,G)||(q="["+G+"]"),H||(j.seen.indexOf(V.value)<0?(H=w(E)?v(j,V.value,null):v(j,V.value,E-1)).indexOf(` @@ -68,7 +68,7 @@ should equal `).slice(2):` `+H.split(` `).map(function(te){return" "+te}).join(` -`)):H=j.stylize("[Circular]","special")),M(q)){if(L&&G.match(/^\d+$/))return H;(q=JSON.stringify(""+G)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(q=q.slice(1,-1),q=j.stylize(q,"name")):(q=q.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),q=j.stylize(q,"string"))}return q+": "+H}function x(j){return Array.isArray(j)}function _(j){return typeof j=="boolean"}function w(j){return j===null}function k(j){return typeof j=="number"}function T(j){return typeof j=="string"}function M(j){return j===void 0}function S(j){return C(j)&&R(j)==="[object RegExp]"}function C(j){return typeof j=="object"&&j!==null}function P(j){return C(j)&&R(j)==="[object Date]"}function D(j){return C(j)&&(R(j)==="[object Error]"||j instanceof Error)}function O(j){return typeof j=="function"}function R(j){return Object.prototype.toString.call(j)}function F(j){return j<10?"0"+j.toString(10):j.toString(10)}a.debuglog=function(j){if(j=j.toUpperCase(),!u[j])if(d.test(j)){var N=l.pid;u[j]=function(){var E=a.format.apply(a,arguments);console.error("%s %d: %s",j,N,E)}}else u[j]=function(){};return u[j]},a.inspect=p,p.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},p.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},a.types=n(4936),a.isArray=x,a.isBoolean=_,a.isNull=w,a.isNullOrUndefined=function(j){return j==null},a.isNumber=k,a.isString=T,a.isSymbol=function(j){return typeof j=="symbol"},a.isUndefined=M,a.isRegExp=S,a.types.isRegExp=S,a.isObject=C,a.isDate=P,a.types.isDate=P,a.isError=D,a.types.isNativeError=D,a.isFunction=O,a.isPrimitive=function(j){return j===null||typeof j=="boolean"||typeof j=="number"||typeof j=="string"||typeof j=="symbol"||j===void 0},a.isBuffer=n(45920);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function z(j,N){return Object.prototype.hasOwnProperty.call(j,N)}a.log=function(){var j,N;console.log("%s - %s",(N=[F((j=new Date).getHours()),F(j.getMinutes()),F(j.getSeconds())].join(":"),[j.getDate(),A[j.getMonth()],N].join(" ")),a.format.apply(a,arguments))},a.inherits=n(42018),a._extend=function(j,N){if(!N||!C(N))return j;for(var E=Object.keys(N),W=E.length;W--;)j[E[W]]=N[E[W]];return j};var B=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function $(j,N){if(!j){var E=new Error("Promise was rejected with a falsy value");E.reason=j,j=E}return N(j)}a.promisify=function(j){if(typeof j!="function")throw new TypeError('The "original" argument must be of type Function');if(B&&j[B]){var N;if(typeof(N=j[B])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(N,B,{value:N,enumerable:!1,writable:!1,configurable:!0}),N}function N(){for(var E,W,G=new Promise(function(H,V){E=H,W=V}),L=[],q=0;q"u"?n.g:globalThis,m=f(),y=s("String.prototype.slice"),v={},g=Object.getPrototypeOf;h&&u&&g&&l(m,function(x){if(typeof p[x]=="function"){var _=new p[x];if(Symbol.toStringTag in _){var w=g(_),k=u(w,Symbol.toStringTag);if(!k){var T=g(w);k=u(T,Symbol.toStringTag)}v[x]=k.get}}});var b=n(9187);o.exports=function(x){return!!b(x)&&(h&&Symbol.toStringTag in x?function(_){var w=!1;return l(v,function(k,T){if(!w)try{var M=k.call(_);M===T&&(w=M)}catch{}}),w}(x):y(d(x),8,-1))}},3961:function(o,a,n){var l=n(63489),f=n(56131),s=l.instance();function u(g){this.local=this.regionalOptions[g||""]||this.regionalOptions[""]}u.prototype=new l.baseCalendar,f(u.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(g,b){if(typeof g=="string"){var x=g.match(h);return x?x[0]:""}var _=this._validateYear(g),w=g.month(),k=""+this.toChineseMonth(_,w);return b&&k.length<2&&(k="0"+k),this.isIntercalaryMonth(_,w)&&(k+="i"),k},monthNames:function(g){if(typeof g=="string"){var b=g.match(p);return b?b[0]:""}var x=this._validateYear(g),_=g.month(),w=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(x,_)-1];return this.isIntercalaryMonth(x,_)&&(w="闰"+w),w},monthNamesShort:function(g){if(typeof g=="string"){var b=g.match(m);return b?b[0]:""}var x=this._validateYear(g),_=g.month(),w=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(x,_)-1];return this.isIntercalaryMonth(x,_)&&(w="闰"+w),w},parseMonth:function(g,b){g=this._validateYear(g);var x,_=parseInt(b);if(isNaN(_))b[0]==="闰"&&(x=!0,b=b.substring(1)),b[b.length-1]==="月"&&(b=b.substring(0,b.length-1)),_=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(b);else{var w=b[b.length-1];x=w==="i"||w==="I"}return this.toMonthIndex(g,_,x)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(g,b){if(g.year&&(g=g.year()),typeof g!="number"||g<1888||g>2111)throw b.replace(/\{0\}/,this.local.name);return g},toMonthIndex:function(g,b,x){var _=this.intercalaryMonth(g);if(x&&b!==_||b<1||b>12)throw l.local.invalidMonth.replace(/\{0\}/,this.local.name);return _?!x&&b<=_?b-1:b:b-1},toChineseMonth:function(g,b){g.year&&(b=(g=g.year()).month());var x=this.intercalaryMonth(g);if(b<0||b>(x?12:11))throw l.local.invalidMonth.replace(/\{0\}/,this.local.name);return x?b>13},isIntercalaryMonth:function(g,b){g.year&&(b=(g=g.year()).month());var x=this.intercalaryMonth(g);return!!x&&x===b},leapYear:function(g){return this.intercalaryMonth(g)!==0},weekOfYear:function(g,b,x){var _,w=this._validateYear(g,l.local.invalidyear),k=v[w-v[0]],T=k>>9&4095,M=k>>5&15,S=31&k;(_=s.newDate(T,M,S)).add(4-(_.dayOfWeek()||7),"d");var C=this.toJD(g,b,x)-_.toJD();return 1+Math.floor(C/7)},monthsInYear:function(g){return this.leapYear(g)?13:12},daysInMonth:function(g,b){g.year&&(b=g.month(),g=g.year()),g=this._validateYear(g);var x=y[g-y[0]];if(b>(x>>13?12:11))throw l.local.invalidMonth.replace(/\{0\}/,this.local.name);return x&1<<12-b?30:29},weekDay:function(g,b,x){return(this.dayOfWeek(g,b,x)||7)<6},toJD:function(g,b,x){var _=this._validate(g,k,x,l.local.invalidDate);g=this._validateYear(_.year()),b=_.month(),x=_.day();var w=this.isIntercalaryMonth(g,b),k=this.toChineseMonth(g,b),T=function(M,S,C,P,D){var O,R,F;if(typeof M=="object")R=M,O=S||{};else{var A;if(!(typeof M=="number"&&M>=1888&&M<=2111))throw new Error("Lunar year outside range 1888-2111");if(!(typeof S=="number"&&S>=1&&S<=12))throw new Error("Lunar month outside range 1 - 12");if(!(typeof C=="number"&&C>=1&&C<=30))throw new Error("Lunar day outside range 1 - 30");typeof P=="object"?(A=!1,O=P):(A=!!P,O={}),R={year:M,month:S,day:C,isIntercalary:A}}F=R.day-1;var z,B=y[R.year-y[0]],$=B>>13;z=$&&(R.month>$||R.isIntercalary)?R.month:R.month-1;for(var j=0;j>9&4095,(N>>5&15)-1,(31&N)+F);return O.year=E.getFullYear(),O.month=1+E.getMonth(),O.day=E.getDate(),O}(g,k,x,w);return s.toJD(T.year,T.month,T.day)},fromJD:function(g){var b=s.fromJD(g),x=function(w,k,T,M){var S,C;if(typeof w=="object")S=w,C=k||{};else{if(!(typeof w=="number"&&w>=1888&&w<=2111))throw new Error("Solar year outside range 1888-2111");if(!(typeof k=="number"&&k>=1&&k<=12))throw new Error("Solar month outside range 1 - 12");if(!(typeof T=="number"&&T>=1&&T<=31))throw new Error("Solar day outside range 1 - 31");S={year:w,month:k,day:T},C={}}var P=v[S.year-v[0]],D=S.year<<9|S.month<<5|S.day;C.year=D>=P?S.year:S.year-1,P=v[C.year-v[0]];var O,R=new Date(P>>9&4095,(P>>5&15)-1,31&P),F=new Date(S.year,S.month-1,S.day);O=Math.round((F-R)/864e5);var A,z=y[C.year-y[0]];for(A=0;A<13;A++){var B=z&1<<12-A?30:29;if(O>13;return!$||A<$?(C.isIntercalary=!1,C.month=1+A):A===$?(C.isIntercalary=!0,C.month=A):(C.isIntercalary=!1,C.month=A),C.day=1+O,C}(b.year(),b.month(),b.day()),_=this.toMonthIndex(x.year,x.month,x.isIntercalary);return this.newDate(x.year,_,x.day)},fromString:function(g){var b=g.match(d),x=this._validateYear(+b[1]),_=+b[2],w=!!b[3],k=this.toMonthIndex(x,_,w),T=+b[4];return this.newDate(x,k,T)},add:function(g,b,x){var _=g.year(),w=g.month(),k=this.isIntercalaryMonth(_,w),T=this.toChineseMonth(_,w),M=Object.getPrototypeOf(u.prototype).add.call(this,g,b,x);if(x==="y"){var S=M.year(),C=M.month(),P=this.isIntercalaryMonth(S,T),D=k&&P?this.toMonthIndex(S,T,!0):this.toMonthIndex(S,T,!1);D!==C&&M.month(D)}return M}});var d=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,h=/^\d?\d[iI]?/m,p=/^闰?十?[一二三四五六七八九]?月/m,m=/^闰?十?[一二三四五六七八九]?/m;l.calendars.chinese=u;var y=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],v=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904]},38751:function(o,a,n){var l=n(63489),f=n(56131);function s(u){this.local=this.regionalOptions[u||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(u){var d=this._validate(u,this.minMonth,this.minDay,l.local.invalidYear);return(u=d.year()+(d.year()<0?1:0))%4==3||u%4==-1},monthsInYear:function(u){return this._validate(u,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear),13},weekOfYear:function(u,d,h){var p=this.newDate(u,d,h);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(u,d){var h=this._validate(u,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===13&&this.leapYear(h.year())?1:0)},weekDay:function(u,d,h){return(this.dayOfWeek(u,d,h)||7)<6},toJD:function(u,d,h){var p=this._validate(u,d,h,l.local.invalidDate);return(u=p.year())<0&&u++,p.day()+30*(p.month()-1)+365*(u-1)+Math.floor(u/4)+this.jdEpoch-1},fromJD:function(u){var d=Math.floor(u)+.5-this.jdEpoch,h=Math.floor((d-Math.floor((d+366)/1461))/365)+1;h<=0&&h--,d=Math.floor(u)+.5-this.newDate(h,1,1).toJD();var p=Math.floor(d/30)+1,m=d-30*(p-1)+1;return this.newDate(h,p,m)}}),l.calendars.coptic=s},86825:function(o,a,n){var l=n(63489),f=n(56131);function s(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(d){return this._validate(d,this.minMonth,this.minDay,l.local.invalidYear),!1},monthsInYear:function(d){return this._validate(d,this.minMonth,this.minDay,l.local.invalidYear),13},daysInYear:function(d){return this._validate(d,this.minMonth,this.minDay,l.local.invalidYear),400},weekOfYear:function(d,h,p){var m=this.newDate(d,h,p);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/8)+1},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(d,h,p){return(this._validate(d,h,p,l.local.invalidDate).day()+1)%8},weekDay:function(d,h,p){var m=this.dayOfWeek(d,h,p);return m>=2&&m<=6},extraInfo:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);return{century:u[Math.floor((m.year()-1)/100)+1]||""}},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);return d=m.year()+(m.year()<0?1:0),h=m.month(),(p=m.day())+(h>1?16:0)+(h>2?32*(h-2):0)+400*(d-1)+this.jdEpoch-1},fromJD:function(d){d=Math.floor(d+.5)-Math.floor(this.jdEpoch)-1;var h=Math.floor(d/400)+1;d-=400*(h-1),d+=d>15?16:0;var p=Math.floor(d/32)+1,m=d-32*(p-1)+1;return this.newDate(h<=0?h-1:h,p,m)}});var u={20:"Fruitbat",21:"Anchovy"};l.calendars.discworld=s},37715:function(o,a,n){var l=n(63489),f=n(56131);function s(u){this.local=this.regionalOptions[u||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(u){var d=this._validate(u,this.minMonth,this.minDay,l.local.invalidYear);return(u=d.year()+(d.year()<0?1:0))%4==3||u%4==-1},monthsInYear:function(u){return this._validate(u,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear),13},weekOfYear:function(u,d,h){var p=this.newDate(u,d,h);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(u,d){var h=this._validate(u,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===13&&this.leapYear(h.year())?1:0)},weekDay:function(u,d,h){return(this.dayOfWeek(u,d,h)||7)<6},toJD:function(u,d,h){var p=this._validate(u,d,h,l.local.invalidDate);return(u=p.year())<0&&u++,p.day()+30*(p.month()-1)+365*(u-1)+Math.floor(u/4)+this.jdEpoch-1},fromJD:function(u){var d=Math.floor(u)+.5-this.jdEpoch,h=Math.floor((d-Math.floor((d+366)/1461))/365)+1;h<=0&&h--,d=Math.floor(u)+.5-this.newDate(h,1,1).toJD();var p=Math.floor(d/30)+1,m=d-30*(p-1)+1;return this.newDate(h,p,m)}}),l.calendars.ethiopian=s},99384:function(o,a,n){var l=n(63489),f=n(56131);function s(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}function u(d,h){return d-h*Math.floor(d/h)}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return this._leapYear(h.year())},_leapYear:function(d){return u(7*(d=d<0?d+1:d)+1,19)<7},monthsInYear:function(d){return this._validate(d,this.minMonth,this.minDay,l.local.invalidYear),this._leapYear(d.year?d.year():d)?13:12},weekOfYear:function(d,h,p){var m=this.newDate(d,h,p);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(d){return d=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear).year(),this.toJD(d===-1?1:d+1,7,1)-this.toJD(d,7,1)},daysInMonth:function(d,h){return d.year&&(h=d.month(),d=d.year()),this._validate(d,h,this.minDay,l.local.invalidMonth),h===12&&this.leapYear(d)||h===8&&u(this.daysInYear(d),10)===5?30:h===9&&u(this.daysInYear(d),10)===3?29:this.daysPerMonth[h-1]},weekDay:function(d,h,p){return this.dayOfWeek(d,h,p)!==6},extraInfo:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);return{yearType:(this.leapYear(m)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(m)%10-3]}},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);d=m.year(),h=m.month(),p=m.day();var y=d<=0?d+1:d,v=this.jdEpoch+this._delay1(y)+this._delay2(y)+p+1;if(h<7){for(var g=7;g<=this.monthsInYear(d);g++)v+=this.daysInMonth(d,g);for(g=1;g=this.toJD(h===-1?1:h+1,7,1);)h++;for(var p=dthis.toJD(h,p,this.daysInMonth(h,p));)p++;var m=d-this.toJD(h,p,1)+1;return this.newDate(h,p,m)}}),l.calendars.hebrew=s},43805:function(o,a,n){var l=n(63489),f=n(56131);function s(u){this.local=this.regionalOptions[u||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(u){return(11*this._validate(u,this.minMonth,this.minDay,l.local.invalidYear).year()+14)%30<11},weekOfYear:function(u,d,h){var p=this.newDate(u,d,h);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInYear:function(u){return this.leapYear(u)?355:354},daysInMonth:function(u,d){var h=this._validate(u,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===12&&this.leapYear(h.year())?1:0)},weekDay:function(u,d,h){return this.dayOfWeek(u,d,h)!==5},toJD:function(u,d,h){var p=this._validate(u,d,h,l.local.invalidDate);return u=p.year(),d=p.month(),u=u<=0?u+1:u,(h=p.day())+Math.ceil(29.5*(d-1))+354*(u-1)+Math.floor((3+11*u)/30)+this.jdEpoch-1},fromJD:function(u){u=Math.floor(u)+.5;var d=Math.floor((30*(u-this.jdEpoch)+10646)/10631);d=d<=0?d-1:d;var h=Math.min(12,Math.ceil((u-29-this.toJD(d,1,1))/29.5)+1),p=u-this.toJD(d,h,1)+1;return this.newDate(d,h,p)}}),l.calendars.islamic=s},88874:function(o,a,n){var l=n(63489),f=n(56131);function s(u){this.local=this.regionalOptions[u||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(u){var d=this._validate(u,this.minMonth,this.minDay,l.local.invalidYear);return(u=d.year()<0?d.year()+1:d.year())%4==0},weekOfYear:function(u,d,h){var p=this.newDate(u,d,h);return p.add(4-(p.dayOfWeek()||7),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(u,d){var h=this._validate(u,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===2&&this.leapYear(h.year())?1:0)},weekDay:function(u,d,h){return(this.dayOfWeek(u,d,h)||7)<6},toJD:function(u,d,h){var p=this._validate(u,d,h,l.local.invalidDate);return u=p.year(),d=p.month(),h=p.day(),u<0&&u++,d<=2&&(u--,d+=12),Math.floor(365.25*(u+4716))+Math.floor(30.6001*(d+1))+h-1524.5},fromJD:function(u){var d=Math.floor(u+.5)+1524,h=Math.floor((d-122.1)/365.25),p=Math.floor(365.25*h),m=Math.floor((d-p)/30.6001),y=m-Math.floor(m<14?1:13),v=h-Math.floor(y>2?4716:4715),g=d-p-Math.floor(30.6001*m);return v<=0&&v--,this.newDate(v,y,g)}}),l.calendars.julian=s},83290:function(o,a,n){var l=n(63489),f=n(56131);function s(h){this.local=this.regionalOptions[h||""]||this.regionalOptions[""]}function u(h,p){return h-p*Math.floor(h/p)}function d(h,p){return u(h-1,p)+1}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(h){return this._validate(h,this.minMonth,this.minDay,l.local.invalidYear),!1},formatYear:function(h){h=this._validate(h,this.minMonth,this.minDay,l.local.invalidYear).year();var p=Math.floor(h/400);return h%=400,h+=h<0?400:0,p+"."+Math.floor(h/20)+"."+h%20},forYear:function(h){if((h=h.split(".")).length<3)throw"Invalid Mayan year";for(var p=0,m=0;m19||m>0&&y<0)throw"Invalid Mayan year";p=20*p+y}return p},monthsInYear:function(h){return this._validate(h,this.minMonth,this.minDay,l.local.invalidYear),18},weekOfYear:function(h,p,m){return this._validate(h,p,m,l.local.invalidDate),0},daysInYear:function(h){return this._validate(h,this.minMonth,this.minDay,l.local.invalidYear),360},daysInMonth:function(h,p){return this._validate(h,p,this.minDay,l.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(h,p,m){return this._validate(h,p,m,l.local.invalidDate).day()},weekDay:function(h,p,m){return this._validate(h,p,m,l.local.invalidDate),!0},extraInfo:function(h,p,m){var y=this._validate(h,p,m,l.local.invalidDate).toJD(),v=this._toHaab(y),g=this._toTzolkin(y);return{haabMonthName:this.local.haabMonths[v[0]-1],haabMonth:v[0],haabDay:v[1],tzolkinDayName:this.local.tzolkinMonths[g[0]-1],tzolkinDay:g[0],tzolkinTrecena:g[1]}},_toHaab:function(h){var p=u(8+(h-=this.jdEpoch)+340,365);return[Math.floor(p/20)+1,u(p,20)]},_toTzolkin:function(h){return[d(20+(h-=this.jdEpoch),20),d(h+4,13)]},toJD:function(h,p,m){var y=this._validate(h,p,m,l.local.invalidDate);return y.day()+20*y.month()+360*y.year()+this.jdEpoch},fromJD:function(h){h=Math.floor(h)+.5-this.jdEpoch;var p=Math.floor(h/360);h%=360,h+=h<0?360:0;var m=Math.floor(h/20),y=h%20;return this.newDate(p,m,y)}}),l.calendars.mayan=s},29108:function(o,a,n){var l=n(63489),f=n(56131);function s(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar;var u=l.instance("gregorian");f(s.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear);return u.leapYear(h.year()+(h.year()<1?1:0)+1469)},weekOfYear:function(d,h,p){var m=this.newDate(d,h,p);return m.add(1-(m.dayOfWeek()||7),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(d,h,p){return(this.dayOfWeek(d,h,p)||7)<6},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidMonth);(d=m.year())<0&&d++;for(var y=m.day(),v=1;v=this.toJD(h+1,1,1);)h++;for(var p=d-Math.floor(this.toJD(h,1,1)+.5)+1,m=1;p>this.daysInMonth(h,m);)p-=this.daysInMonth(h,m),m++;return this.newDate(h,m,p)}}),l.calendars.nanakshahi=s},55422:function(o,a,n){var l=n(63489),f=n(56131);function s(u){this.local=this.regionalOptions[u||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(u){return this.daysInYear(u)!==this.daysPerYear},weekOfYear:function(u,d,h){var p=this.newDate(u,d,h);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInYear:function(u){if(u=this._validate(u,this.minMonth,this.minDay,l.local.invalidYear).year(),this.NEPALI_CALENDAR_DATA[u]===void 0)return this.daysPerYear;for(var d=0,h=this.minMonth;h<=12;h++)d+=this.NEPALI_CALENDAR_DATA[u][h];return d},daysInMonth:function(u,d){return u.year&&(d=u.month(),u=u.year()),this._validate(u,d,this.minDay,l.local.invalidMonth),this.NEPALI_CALENDAR_DATA[u]===void 0?this.daysPerMonth[d-1]:this.NEPALI_CALENDAR_DATA[u][d]},weekDay:function(u,d,h){return this.dayOfWeek(u,d,h)!==6},toJD:function(u,d,h){var p=this._validate(u,d,h,l.local.invalidDate);u=p.year(),d=p.month(),h=p.day();var m=l.instance(),y=0,v=d,g=u;this._createMissingCalendarData(u);var b=u-(v>9||v===9&&h>=this.NEPALI_CALENDAR_DATA[g][0]?56:57);for(d!==9&&(y=h,v--);v!==9;)v<=0&&(v=12,g--),y+=this.NEPALI_CALENDAR_DATA[g][v],v--;return d===9?(y+=h-this.NEPALI_CALENDAR_DATA[g][0])<0&&(y+=m.daysInYear(b)):y+=this.NEPALI_CALENDAR_DATA[g][9]-this.NEPALI_CALENDAR_DATA[g][0],m.newDate(b,1,1).add(y,"d").toJD()},fromJD:function(u){var d=l.instance().fromJD(u),h=d.year(),p=d.dayOfYear(),m=h+56;this._createMissingCalendarData(m);for(var y=9,v=this.NEPALI_CALENDAR_DATA[m][0],g=this.NEPALI_CALENDAR_DATA[m][y]-v+1;p>g;)++y>12&&(y=1,m++),g+=this.NEPALI_CALENDAR_DATA[m][y];var b=this.NEPALI_CALENDAR_DATA[m][y]-(g-p);return this.newDate(m,y,b)},_createMissingCalendarData:function(u){var d=this.daysPerMonth.slice(0);d.unshift(17);for(var h=u-1;h0?474:473))%2820+474+38)%2816<682},weekOfYear:function(d,h,p){var m=this.newDate(d,h,p);return m.add(-(m.dayOfWeek()+1)%7,"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(d,h,p){return this.dayOfWeek(d,h,p)!==5},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);d=m.year(),h=m.month(),p=m.day();var y=d-(d>=0?474:473),v=474+u(y,2820);return p+(h<=7?31*(h-1):30*(h-1)+6)+Math.floor((682*v-110)/2816)+365*(v-1)+1029983*Math.floor(y/2820)+this.jdEpoch-1},fromJD:function(d){var h=(d=Math.floor(d)+.5)-this.toJD(475,1,1),p=Math.floor(h/1029983),m=u(h,1029983),y=2820;if(m!==1029982){var v=Math.floor(m/366),g=u(m,366);y=Math.floor((2134*v+2816*g+2815)/1028522)+v+1}var b=y+2820*p+474;b=b<=0?b-1:b;var x=d-this.toJD(b,1,1)+1,_=x<=186?Math.ceil(x/31):Math.ceil((x-6)/30),w=d-this.toJD(b,_,1)+1;return this.newDate(b,_,w)}}),l.calendars.persian=s,l.calendars.jalali=s},31320:function(o,a,n){var l=n(63489),f=n(56131),s=l.instance();function u(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}u.prototype=new l.baseCalendar,f(u.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(h.year()),s.leapYear(d)},weekOfYear:function(d,h,p){var m=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(m.year()),s.weekOfYear(d,m.month(),m.day())},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(d,h,p){return(this.dayOfWeek(d,h,p)||7)<6},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);return d=this._t2gYear(m.year()),s.toJD(d,m.month(),m.day())},fromJD:function(d){var h=s.fromJD(d),p=this._g2tYear(h.year());return this.newDate(p,h.month(),h.day())},_t2gYear:function(d){return d+this.yearsOffset+(d>=-this.yearsOffset&&d<=-1?1:0)},_g2tYear:function(d){return d-this.yearsOffset-(d>=1&&d<=this.yearsOffset?1:0)}}),l.calendars.taiwan=u},51367:function(o,a,n){var l=n(63489),f=n(56131),s=l.instance();function u(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}u.prototype=new l.baseCalendar,f(u.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(h.year()),s.leapYear(d)},weekOfYear:function(d,h,p){var m=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(m.year()),s.weekOfYear(d,m.month(),m.day())},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(d,h,p){return(this.dayOfWeek(d,h,p)||7)<6},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);return d=this._t2gYear(m.year()),s.toJD(d,m.month(),m.day())},fromJD:function(d){var h=s.fromJD(d),p=this._g2tYear(h.year());return this.newDate(p,h.month(),h.day())},_t2gYear:function(d){return d-this.yearsOffset-(d>=1&&d<=this.yearsOffset?1:0)},_g2tYear:function(d){return d+this.yearsOffset+(d>=-this.yearsOffset&&d<=-1?1:0)}}),l.calendars.thai=u},21457:function(o,a,n){var l=n(63489),f=n(56131);function s(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return this.daysInYear(h.year())===355},weekOfYear:function(d,h,p){var m=this.newDate(d,h,p);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(d){for(var h=0,p=1;p<=12;p++)h+=this.daysInMonth(d,p);return h},daysInMonth:function(d,h){for(var p=this._validate(d,h,this.minDay,l.local.invalidMonth).toJD()-24e5+.5,m=0,y=0;yp)return u[m]-u[m-1];m++}return 30},weekDay:function(d,h,p){return this.dayOfWeek(d,h,p)!==5},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate),y=12*(m.year()-1)+m.month()-15292;return m.day()+u[y-1]-1+24e5-.5},fromJD:function(d){for(var h=d-24e5+.5,p=0,m=0;mh);m++)p++;var y=p+15292,v=Math.floor((y-1)/12),g=v+1,b=y-12*v,x=h-u[p-1]+1;return this.newDate(g,b,x)},isValid:function(d,h,p){var m=l.baseCalendar.prototype.isValid.apply(this,arguments);return m&&(m=(d=d.year!=null?d.year:d)>=1276&&d<=1500),m},_validate:function(d,h,p,m){var y=l.baseCalendar.prototype._validate.apply(this,arguments);if(y.year<1276||y.year>1500)throw m.replace(/\{0\}/,this.local.name);return y}}),l.calendars.ummalqura=s;var u=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},63489:function(o,a,n){var l=n(56131);function f(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function s(m,y,v,g){if(this._calendar=m,this._year=y,this._month=v,this._day=g,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(p.local.invalidDate||p.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function u(m,y){return"000000".substring(0,y-(m=""+m).length)+m}function d(){this.shortYearCutoff="+10"}function h(m){this.local=this.regionalOptions[m]||this.regionalOptions[""]}l(f.prototype,{instance:function(m,y){m=(m||"gregorian").toLowerCase(),y=y||"";var v=this._localCals[m+"-"+y];if(!v&&this.calendars[m]&&(v=new this.calendars[m](y),this._localCals[m+"-"+y]=v),!v)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,m);return v},newDate:function(m,y,v,g,b){return(g=(m!=null&&m.year?m.calendar():typeof g=="string"?this.instance(g,b):g)||this.instance()).newDate(m,y,v)},substituteDigits:function(m){return function(y){return(y+"").replace(/[0-9]/g,function(v){return m[v]})}},substituteChineseDigits:function(m,y){return function(v){for(var g="",b=0;v>0;){var x=v%10;g=(x===0?"":m[x]+y[b])+g,b++,v=Math.floor(v/10)}return g.indexOf(m[1]+y[1])===0&&(g=g.substr(1)),g||m[0]}}}),l(s.prototype,{newDate:function(m,y,v){return this._calendar.newDate(m??this,y,v)},year:function(m){return arguments.length===0?this._year:this.set(m,"y")},month:function(m){return arguments.length===0?this._month:this.set(m,"m")},day:function(m){return arguments.length===0?this._day:this.set(m,"d")},date:function(m,y,v){if(!this._calendar.isValid(m,y,v))throw(p.local.invalidDate||p.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=m,this._month=y,this._day=v,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(m,y){return this._calendar.add(this,m,y)},set:function(m,y){return this._calendar.set(this,m,y)},compareTo:function(m){if(this._calendar.name!==m._calendar.name)throw(p.local.differentCalendars||p.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,m._calendar.local.name);var y=this._year!==m._year?this._year-m._year:this._month!==m._month?this.monthOfYear()-m.monthOfYear():this._day-m._day;return y===0?0:y<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(m){return this._calendar.fromJD(m)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(m){return this._calendar.fromJSDate(m)},toString:function(){return(this.year()<0?"-":"")+u(Math.abs(this.year()),4)+"-"+u(this.month(),2)+"-"+u(this.day(),2)}}),l(d.prototype,{_validateLevel:0,newDate:function(m,y,v){return m==null?this.today():(m.year&&(this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate),v=m.day(),y=m.month(),m=m.year()),new s(this,m,y,v))},today:function(){return this.fromJSDate(new Date)},epoch:function(m){return this._validate(m,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(m){var y=this._validate(m,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return(y.year()<0?"-":"")+u(Math.abs(y.year()),4)},monthsInYear:function(m){return this._validate(m,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear),12},monthOfYear:function(m,y){var v=this._validate(m,y,this.minDay,p.local.invalidMonth||p.regionalOptions[""].invalidMonth);return(v.month()+this.monthsInYear(v)-this.firstMonth)%this.monthsInYear(v)+this.minMonth},fromMonthOfYear:function(m,y){var v=(y+this.firstMonth-2*this.minMonth)%this.monthsInYear(m)+this.minMonth;return this._validate(m,v,this.minDay,p.local.invalidMonth||p.regionalOptions[""].invalidMonth),v},daysInYear:function(m){var y=this._validate(m,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return this.leapYear(y)?366:365},dayOfYear:function(m,y,v){var g=this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate);return g.toJD()-this.newDate(g.year(),this.fromMonthOfYear(g.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(m,y,v){var g=this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(g))+2)%this.daysInWeek()},extraInfo:function(m,y,v){return this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate),{}},add:function(m,y,v){return this._validate(m,this.minMonth,this.minDay,p.local.invalidDate||p.regionalOptions[""].invalidDate),this._correctAdd(m,this._add(m,y,v),y,v)},_add:function(m,y,v){if(this._validateLevel++,v==="d"||v==="w"){var g=m.toJD()+y*(v==="w"?this.daysInWeek():1),b=m.calendar().fromJD(g);return this._validateLevel--,[b.year(),b.month(),b.day()]}try{var x=m.year()+(v==="y"?y:0),_=m.monthOfYear()+(v==="m"?y:0);b=m.day(),v==="y"?(m.month()!==this.fromMonthOfYear(x,_)&&(_=this.newDate(x,m.month(),this.minDay).monthOfYear()),_=Math.min(_,this.monthsInYear(x)),b=Math.min(b,this.daysInMonth(x,this.fromMonthOfYear(x,_)))):v==="m"&&(function(k){for(;_T-1+k.minMonth;)x++,_-=T,T=k.monthsInYear(x)}(this),b=Math.min(b,this.daysInMonth(x,this.fromMonthOfYear(x,_))));var w=[x,this.fromMonthOfYear(x,_),b];return this._validateLevel--,w}catch(k){throw this._validateLevel--,k}},_correctAdd:function(m,y,v,g){if(!(this.hasYearZero||g!=="y"&&g!=="m"||y[0]!==0&&m.year()>0==y[0]>0)){var b={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[g],x=v<0?-1:1;y=this._add(m,v*b[0]+x*b[1],b[2])}return m.date(y[0],y[1],y[2])},set:function(m,y,v){this._validate(m,this.minMonth,this.minDay,p.local.invalidDate||p.regionalOptions[""].invalidDate);var g=v==="y"?y:m.year(),b=v==="m"?y:m.month(),x=v==="d"?y:m.day();return v!=="y"&&v!=="m"||(x=Math.min(x,this.daysInMonth(g,b))),m.date(g,b,x)},isValid:function(m,y,v){this._validateLevel++;var g=this.hasYearZero||m!==0;if(g){var b=this.newDate(m,y,this.minDay);g=y>=this.minMonth&&y-this.minMonth=this.minDay&&v-this.minDay13.5?13:1),T=b-(k>2.5?4716:4715);return T<=0&&T--,this.newDate(T,k,w)},toJSDate:function(m,y,v){var g=this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate),b=new Date(g.year(),g.month()-1,g.day());return b.setHours(0),b.setMinutes(0),b.setSeconds(0),b.setMilliseconds(0),b.setHours(b.getHours()>12?b.getHours()+2:0),b},fromJSDate:function(m){return this.newDate(m.getFullYear(),m.getMonth()+1,m.getDate())}});var p=o.exports=new f;p.cdate=s,p.baseCalendar=d,p.calendars.gregorian=h},94338:function(o,a,n){var l=n(56131),f=n(63489);l(f.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),f.local=f.regionalOptions[""],l(f.cdate.prototype,{formatDate:function(s,u){return typeof s!="string"&&(u=s,s=""),this._calendar.formatDate(s||"",this,u)}}),l(f.baseCalendar.prototype,{UNIX_EPOCH:f.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:f.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(s,u,d){if(typeof s!="string"&&(d=u,u=s,s=""),!u)return"";if(u.calendar()!==this)throw f.local.invalidFormat||f.regionalOptions[""].invalidFormat;s=s||this.local.dateFormat;for(var h,p,m,y=(d=d||{}).dayNamesShort||this.local.dayNamesShort,v=d.dayNames||this.local.dayNames,g=d.monthNumbers||this.local.monthNumbers,b=d.monthNamesShort||this.local.monthNamesShort,x=d.monthNames||this.local.monthNames,_=(d.calculateWeek||this.local.calculateWeek,function(R,F){for(var A=1;O+A1}),w=function(R,F,A,z){var B=""+F;if(_(R,z))for(;B.length1},P=function(N,E){var W=C(N,E),G=[2,3,W?4:2,W?4:2,10,11,20]["oyYJ@!".indexOf(N)+1],L=new RegExp("^-?\\d{1,"+G+"}"),q=u.substring(z).match(L);if(!q)throw(f.local.missingNumberAt||f.regionalOptions[""].missingNumberAt).replace(/\{0\}/,z);return z+=q[0].length,parseInt(q[0],10)},D=this,O=function(){if(typeof v=="function"){C("m");var N=v.call(D,u.substring(z));return z+=N.length,N}return P("m")},R=function(N,E,W,G){for(var L=C(N,G)?W:E,q=0;q-1){w=1,k=T;for(var j=this.daysInMonth(_,w);k>j;j=this.daysInMonth(_,w))w++,k-=j}return x>-1?this.fromJD(x):this.newDate(_,w,k)},determineDate:function(s,u,d,h,p){d&&typeof d!="object"&&(p=h,h=d,d=null),typeof h!="string"&&(p=h,h="");var m=this;return u=u?u.newDate():null,s==null?u:typeof s=="string"?function(y){try{return m.parseDate(h,y,p)}catch{}for(var v=((y=y.toLowerCase()).match(/^c/)&&d?d.newDate():null)||m.today(),g=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,b=g.exec(y);b;)v.add(parseInt(b[1],10),b[2]||"d"),b=g.exec(y);return v}(s):typeof s=="number"?isNaN(s)||s===1/0||s===-1/0?u:m.today().add(s,"d"):m.newDate(s)}})},69862:function(){},40964:function(){},72077:function(o,a,n){var l=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],f=typeof globalThis>"u"?n.g:globalThis;o.exports=function(){for(var s=[],u=0;u"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function y(_){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(k){return k.__proto__||Object.getPrototypeOf(k)},y(_)}var v=["AfterExport","AfterPlot","Animated","AnimatingFrame","AnimationInterrupted","AutoSize","BeforeExport","BeforeHover","ButtonClicked","Click","ClickAnnotation","Deselect","DoubleClick","Framework","Hover","LegendClick","LegendDoubleClick","Relayout","Relayouting","Restyle","Redraw","Selected","Selecting","SliderChange","SliderEnd","SliderStart","SunburstClick","Transitioning","TransitionInterrupted","Unhover","WebGlContextLost"],g=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick"],b=typeof window<"u";function x(_){var w=function(k){s(M,k);var T=d(M);function M(S){var C;return n(this,M),C=T.call(this,S),C.p=Promise.resolve(),C.resizeHandler=null,C.handlers={},C.syncWindowResize=C.syncWindowResize.bind(p(C)),C.syncEventHandlers=C.syncEventHandlers.bind(p(C)),C.attachUpdateEvents=C.attachUpdateEvents.bind(p(C)),C.getRef=C.getRef.bind(p(C)),C.handleUpdate=C.handleUpdate.bind(p(C)),C.figureCallback=C.figureCallback.bind(p(C)),C.updatePlotly=C.updatePlotly.bind(p(C)),C}return f(M,[{key:"updatePlotly",value:function(C,P,D){var O=this;this.p=this.p.then(function(){if(!O.unmounting){if(!O.el)throw new Error("Missing element reference");return _.react(O.el,{data:O.props.data,layout:O.props.layout,config:O.props.config,frames:O.props.frames})}}).then(function(){O.unmounting||(O.syncWindowResize(C),O.syncEventHandlers(),O.figureCallback(P),D&&O.attachUpdateEvents())}).catch(function(R){O.props.onError&&O.props.onError(R)})}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(C){this.unmounting=!1;var P=C.frames&&C.frames.length?C.frames.length:0,D=this.props.frames&&this.props.frames.length?this.props.frames.length:0,O=!(C.layout===this.props.layout&&C.data===this.props.data&&C.config===this.props.config&&D===P),R=C.revision!==void 0,F=C.revision!==this.props.revision;!O&&(!R||R&&!F)||this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&b&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),_.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var C=this;!this.el||!this.el.removeListener||g.forEach(function(P){C.el.on(P,C.handleUpdate)})}},{key:"removeUpdateEvents",value:function(){var C=this;!this.el||!this.el.removeListener||g.forEach(function(P){C.el.removeListener(P,C.handleUpdate)})}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(C){if(typeof C=="function"){var P=this.el,D=P.data,O=P.layout,R=this.el._transitionData?this.el._transitionData._frames:null,F={data:D,layout:O,frames:R};C(F,this.el)}}},{key:"syncWindowResize",value:function(C){var P=this;b&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return _.Plots.resize(P.el)},window.addEventListener("resize",this.resizeHandler),C&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(C){this.el=C,this.props.debug&&b&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var C=this;v.forEach(function(P){var D=C.props["on"+P],O=C.handlers[P],R=!!O;D&&!R?C.addEventHandler(P,D):!D&&R?C.removeEventHandler(P):D&&R&&D!==O&&(C.removeEventHandler(P),C.addEventHandler(P,D))})}},{key:"addEventHandler",value:function(C,P){this.handlers[C]=P,this.el.on(this.getPlotlyEventName(C),this.handlers[C])}},{key:"removeEventHandler",value:function(C){this.el.removeListener(this.getPlotlyEventName(C),this.handlers[C]),delete this.handlers[C]}},{key:"getPlotlyEventName",value:function(C){return"plotly_"+C.toLowerCase()}},{key:"render",value:function(){return r.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),M}(r.Component);return w.propTypes={data:i.default.arrayOf(i.default.object),config:i.default.object,layout:i.default.object,frames:i.default.arrayOf(i.default.object),revision:i.default.number,onInitialized:i.default.func,onPurge:i.default.func,onError:i.default.func,onUpdate:i.default.func,debug:i.default.bool,style:i.default.object,className:i.default.string,useResizeHandler:i.default.bool,divId:i.default.string},v.forEach(function(k){w.propTypes["on"+k]=i.default.func}),w.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},w}})(hS);const gE=ir(hS),pS=gE(pE),ml={data:{barpolar:[{marker:{line:{color:"rgb(17,17,17)",width:.5},pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"barpolar"}],bar:[{error_x:{color:"#f2f5fa"},error_y:{color:"#f2f5fa"},marker:{line:{color:"rgb(17,17,17)",width:.5},pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"bar"}],carpet:[{aaxis:{endlinecolor:"#A2B1C6",gridcolor:"#506784",linecolor:"#506784",minorgridcolor:"#506784",startlinecolor:"#A2B1C6"},baxis:{endlinecolor:"#A2B1C6",gridcolor:"#506784",linecolor:"#506784",minorgridcolor:"#506784",startlinecolor:"#A2B1C6"},type:"carpet"}],choropleth:[{colorbar:{outlinewidth:0,ticks:""},type:"choropleth"}],contourcarpet:[{colorbar:{outlinewidth:0,ticks:""},type:"contourcarpet"}],contour:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"contour"}],heatmapgl:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"heatmapgl"}],heatmap:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"heatmap"}],histogram2dcontour:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"histogram2dcontour"}],histogram2d:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"histogram2d"}],histogram:[{marker:{pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"histogram"}],mesh3d:[{colorbar:{outlinewidth:0,ticks:""},type:"mesh3d"}],parcoords:[{line:{colorbar:{outlinewidth:0,ticks:""}},type:"parcoords"}],pie:[{automargin:!0,type:"pie"}],scatter3d:[{line:{colorbar:{outlinewidth:0,ticks:""}},marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatter3d"}],scattercarpet:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scattercarpet"}],scattergeo:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scattergeo"}],scattergl:[{marker:{line:{color:"#283442"}},type:"scattergl"}],scattermapbox:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scattermapbox"}],scatterpolargl:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatterpolargl"}],scatterpolar:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatterpolar"}],scatter:[{marker:{line:{color:"#283442"}},type:"scatter"}],scatterternary:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatterternary"}],surface:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"surface"}],table:[{cells:{fill:{color:"#506784"},line:{color:"rgb(17,17,17)"}},header:{fill:{color:"#2a3f5f"},line:{color:"rgb(17,17,17)"}},type:"table"}]},layout:{annotationdefaults:{arrowcolor:"#f2f5fa",arrowhead:0,arrowwidth:1},autotypenumbers:"strict",coloraxis:{colorbar:{outlinewidth:0,ticks:""}},colorscale:{diverging:[[0,"#8e0152"],[.1,"#c51b7d"],[.2,"#de77ae"],[.3,"#f1b6da"],[.4,"#fde0ef"],[.5,"#f7f7f7"],[.6,"#e6f5d0"],[.7,"#b8e186"],[.8,"#7fbc41"],[.9,"#4d9221"],[1,"#276419"]],sequential:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],sequentialminus:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]},colorway:["#636efa","#EF553B","#00cc96","#ab63fa","#FFA15A","#19d3f3","#FF6692","#B6E880","#FF97FF","#FECB52"],font:{color:"#f2f5fa"},geo:{bgcolor:"rgb(17,17,17)",lakecolor:"rgb(17,17,17)",landcolor:"rgb(17,17,17)",showlakes:!0,showland:!0,subunitcolor:"#506784"},hoverlabel:{align:"left"},hovermode:"closest",mapbox:{style:"dark"},paper_bgcolor:"rgb(17,17,17)",plot_bgcolor:"rgb(17,17,17)",polar:{angularaxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""},bgcolor:"rgb(17,17,17)",radialaxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""}},scene:{xaxis:{backgroundcolor:"rgb(17,17,17)",gridcolor:"#506784",gridwidth:2,linecolor:"#506784",showbackground:!0,ticks:"",zerolinecolor:"#C8D4E3"},yaxis:{backgroundcolor:"rgb(17,17,17)",gridcolor:"#506784",gridwidth:2,linecolor:"#506784",showbackground:!0,ticks:"",zerolinecolor:"#C8D4E3"},zaxis:{backgroundcolor:"rgb(17,17,17)",gridcolor:"#506784",gridwidth:2,linecolor:"#506784",showbackground:!0,ticks:"",zerolinecolor:"#C8D4E3"}},shapedefaults:{line:{color:"#f2f5fa"}},sliderdefaults:{bgcolor:"#C8D4E3",bordercolor:"rgb(17,17,17)",borderwidth:1,tickwidth:0},ternary:{aaxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""},baxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""},bgcolor:"rgb(17,17,17)",caxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""}},title:{x:.05},updatemenudefaults:{bgcolor:"#506784",borderwidth:0,showactive:!1},xaxis:{automargin:!0,gridcolor:"#283442",linecolor:"#506784",ticks:"",title:{standoff:15},zerolinecolor:"#283442",zerolinewidth:2},yaxis:{automargin:!0,gridcolor:"#283442",linecolor:"#506784",ticks:"",title:{standoff:15},zerolinecolor:"#283442",zerolinewidth:2}}},Pd=e=>{var m,y,v,g;const t=dE(),r=fS(),i=e.data.some(({type:b})=>b==="histogram"),c=(t==null?void 0:t.isXaxisAsCategorical)&&!i,o=t==null?void 0:t.OnClickedPointComponent,a=t==null?void 0:t.OnHoveredPlotComponent,[n,l]=$e.useState(null),[f,s]=$e.useState(!1),u=o&&n?{type:"line",x0:n.points[0].x,x1:n.points[0].x,y0:0,y1:1,xref:"x",yref:"paper",line:{color:r==="dark"?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.5)",width:3,dash:"solid"}}:void 0,d=[...e.layout.shapes??[],...u?[u]:[]],h=r==="dark"?{template:{...ml,layout:{...ml.layout,colorway:((y=(m=e.layout.template)==null?void 0:m.layout)==null?void 0:y.colorway)||((v=ml.layout)==null?void 0:v.colorway)}}}:void 0,p=c?{type:"category",categoryorder:"category ascending"}:void 0;return je.jsx(je.Fragment,{children:je.jsxs(Kr,{position:"relative",children:[je.jsx(pS,{onHover:()=>!f&&s(!0),onClick:o?b=>l(b):void 0,data:e.data,layout:{...e.layout,...h,title:void 0,shapes:d,xaxis:{...(g=e.layout)==null?void 0:g.xaxis,...p}},config:{responsive:!0},style:{width:"100%",minHeight:300+100*(1+e.widgetSize/2),maxHeight:400}}),n&&o&&je.jsx(o,{event:n}),f&&a&&je.jsx(a,{})]})})};var gS={},mS={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(mS);var Rn=mS.exports,ug={exports:{}},W2;function hr(){return W2||(W2=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var i=1;i{let t;const r=new Set,i=(l,f)=>{const s=typeof l=="function"?l(t):l;if(!Object.is(s,t)){const u=t;t=f??typeof s!="object"?s:Object.assign({},t,s),r.forEach(d=>d(t,u))}},c=()=>t,n={setState:i,getState:c,subscribe:l=>(r.add(l),()=>r.delete(l)),destroy:()=>{(bE?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}};return t=e(i,c,n),n},bS=e=>e?X2(e):X2;var xS={exports:{}},wS={},_S={exports:{}},TS={};/** +`)):H=j.stylize("[Circular]","special")),M(q)){if(L&&G.match(/^\d+$/))return H;(q=JSON.stringify(""+G)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(q=q.slice(1,-1),q=j.stylize(q,"name")):(q=q.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),q=j.stylize(q,"string"))}return q+": "+H}function x(j){return Array.isArray(j)}function _(j){return typeof j=="boolean"}function w(j){return j===null}function k(j){return typeof j=="number"}function T(j){return typeof j=="string"}function M(j){return j===void 0}function S(j){return C(j)&&R(j)==="[object RegExp]"}function C(j){return typeof j=="object"&&j!==null}function P(j){return C(j)&&R(j)==="[object Date]"}function D(j){return C(j)&&(R(j)==="[object Error]"||j instanceof Error)}function O(j){return typeof j=="function"}function R(j){return Object.prototype.toString.call(j)}function F(j){return j<10?"0"+j.toString(10):j.toString(10)}a.debuglog=function(j){if(j=j.toUpperCase(),!c[j])if(d.test(j)){var N=l.pid;c[j]=function(){var E=a.format.apply(a,arguments);console.error("%s %d: %s",j,N,E)}}else c[j]=function(){};return c[j]},a.inspect=p,p.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},p.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},a.types=n(4936),a.isArray=x,a.isBoolean=_,a.isNull=w,a.isNullOrUndefined=function(j){return j==null},a.isNumber=k,a.isString=T,a.isSymbol=function(j){return typeof j=="symbol"},a.isUndefined=M,a.isRegExp=S,a.types.isRegExp=S,a.isObject=C,a.isDate=P,a.types.isDate=P,a.isError=D,a.types.isNativeError=D,a.isFunction=O,a.isPrimitive=function(j){return j===null||typeof j=="boolean"||typeof j=="number"||typeof j=="string"||typeof j=="symbol"||j===void 0},a.isBuffer=n(45920);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function z(j,N){return Object.prototype.hasOwnProperty.call(j,N)}a.log=function(){var j,N;console.log("%s - %s",(N=[F((j=new Date).getHours()),F(j.getMinutes()),F(j.getSeconds())].join(":"),[j.getDate(),A[j.getMonth()],N].join(" ")),a.format.apply(a,arguments))},a.inherits=n(42018),a._extend=function(j,N){if(!N||!C(N))return j;for(var E=Object.keys(N),W=E.length;W--;)j[E[W]]=N[E[W]];return j};var B=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function $(j,N){if(!j){var E=new Error("Promise was rejected with a falsy value");E.reason=j,j=E}return N(j)}a.promisify=function(j){if(typeof j!="function")throw new TypeError('The "original" argument must be of type Function');if(B&&j[B]){var N;if(typeof(N=j[B])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(N,B,{value:N,enumerable:!1,writable:!1,configurable:!0}),N}function N(){for(var E,W,G=new Promise(function(H,V){E=H,W=V}),L=[],q=0;q"u"?n.g:globalThis,m=f(),y=s("String.prototype.slice"),v={},g=Object.getPrototypeOf;h&&c&&g&&l(m,function(x){if(typeof p[x]=="function"){var _=new p[x];if(Symbol.toStringTag in _){var w=g(_),k=c(w,Symbol.toStringTag);if(!k){var T=g(w);k=c(T,Symbol.toStringTag)}v[x]=k.get}}});var b=n(9187);o.exports=function(x){return!!b(x)&&(h&&Symbol.toStringTag in x?function(_){var w=!1;return l(v,function(k,T){if(!w)try{var M=k.call(_);M===T&&(w=M)}catch{}}),w}(x):y(d(x),8,-1))}},3961:function(o,a,n){var l=n(63489),f=n(56131),s=l.instance();function c(g){this.local=this.regionalOptions[g||""]||this.regionalOptions[""]}c.prototype=new l.baseCalendar,f(c.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(g,b){if(typeof g=="string"){var x=g.match(h);return x?x[0]:""}var _=this._validateYear(g),w=g.month(),k=""+this.toChineseMonth(_,w);return b&&k.length<2&&(k="0"+k),this.isIntercalaryMonth(_,w)&&(k+="i"),k},monthNames:function(g){if(typeof g=="string"){var b=g.match(p);return b?b[0]:""}var x=this._validateYear(g),_=g.month(),w=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(x,_)-1];return this.isIntercalaryMonth(x,_)&&(w="闰"+w),w},monthNamesShort:function(g){if(typeof g=="string"){var b=g.match(m);return b?b[0]:""}var x=this._validateYear(g),_=g.month(),w=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(x,_)-1];return this.isIntercalaryMonth(x,_)&&(w="闰"+w),w},parseMonth:function(g,b){g=this._validateYear(g);var x,_=parseInt(b);if(isNaN(_))b[0]==="闰"&&(x=!0,b=b.substring(1)),b[b.length-1]==="月"&&(b=b.substring(0,b.length-1)),_=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(b);else{var w=b[b.length-1];x=w==="i"||w==="I"}return this.toMonthIndex(g,_,x)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(g,b){if(g.year&&(g=g.year()),typeof g!="number"||g<1888||g>2111)throw b.replace(/\{0\}/,this.local.name);return g},toMonthIndex:function(g,b,x){var _=this.intercalaryMonth(g);if(x&&b!==_||b<1||b>12)throw l.local.invalidMonth.replace(/\{0\}/,this.local.name);return _?!x&&b<=_?b-1:b:b-1},toChineseMonth:function(g,b){g.year&&(b=(g=g.year()).month());var x=this.intercalaryMonth(g);if(b<0||b>(x?12:11))throw l.local.invalidMonth.replace(/\{0\}/,this.local.name);return x?b>13},isIntercalaryMonth:function(g,b){g.year&&(b=(g=g.year()).month());var x=this.intercalaryMonth(g);return!!x&&x===b},leapYear:function(g){return this.intercalaryMonth(g)!==0},weekOfYear:function(g,b,x){var _,w=this._validateYear(g,l.local.invalidyear),k=v[w-v[0]],T=k>>9&4095,M=k>>5&15,S=31&k;(_=s.newDate(T,M,S)).add(4-(_.dayOfWeek()||7),"d");var C=this.toJD(g,b,x)-_.toJD();return 1+Math.floor(C/7)},monthsInYear:function(g){return this.leapYear(g)?13:12},daysInMonth:function(g,b){g.year&&(b=g.month(),g=g.year()),g=this._validateYear(g);var x=y[g-y[0]];if(b>(x>>13?12:11))throw l.local.invalidMonth.replace(/\{0\}/,this.local.name);return x&1<<12-b?30:29},weekDay:function(g,b,x){return(this.dayOfWeek(g,b,x)||7)<6},toJD:function(g,b,x){var _=this._validate(g,k,x,l.local.invalidDate);g=this._validateYear(_.year()),b=_.month(),x=_.day();var w=this.isIntercalaryMonth(g,b),k=this.toChineseMonth(g,b),T=function(M,S,C,P,D){var O,R,F;if(typeof M=="object")R=M,O=S||{};else{var A;if(!(typeof M=="number"&&M>=1888&&M<=2111))throw new Error("Lunar year outside range 1888-2111");if(!(typeof S=="number"&&S>=1&&S<=12))throw new Error("Lunar month outside range 1 - 12");if(!(typeof C=="number"&&C>=1&&C<=30))throw new Error("Lunar day outside range 1 - 30");typeof P=="object"?(A=!1,O=P):(A=!!P,O={}),R={year:M,month:S,day:C,isIntercalary:A}}F=R.day-1;var z,B=y[R.year-y[0]],$=B>>13;z=$&&(R.month>$||R.isIntercalary)?R.month:R.month-1;for(var j=0;j>9&4095,(N>>5&15)-1,(31&N)+F);return O.year=E.getFullYear(),O.month=1+E.getMonth(),O.day=E.getDate(),O}(g,k,x,w);return s.toJD(T.year,T.month,T.day)},fromJD:function(g){var b=s.fromJD(g),x=function(w,k,T,M){var S,C;if(typeof w=="object")S=w,C=k||{};else{if(!(typeof w=="number"&&w>=1888&&w<=2111))throw new Error("Solar year outside range 1888-2111");if(!(typeof k=="number"&&k>=1&&k<=12))throw new Error("Solar month outside range 1 - 12");if(!(typeof T=="number"&&T>=1&&T<=31))throw new Error("Solar day outside range 1 - 31");S={year:w,month:k,day:T},C={}}var P=v[S.year-v[0]],D=S.year<<9|S.month<<5|S.day;C.year=D>=P?S.year:S.year-1,P=v[C.year-v[0]];var O,R=new Date(P>>9&4095,(P>>5&15)-1,31&P),F=new Date(S.year,S.month-1,S.day);O=Math.round((F-R)/864e5);var A,z=y[C.year-y[0]];for(A=0;A<13;A++){var B=z&1<<12-A?30:29;if(O>13;return!$||A<$?(C.isIntercalary=!1,C.month=1+A):A===$?(C.isIntercalary=!0,C.month=A):(C.isIntercalary=!1,C.month=A),C.day=1+O,C}(b.year(),b.month(),b.day()),_=this.toMonthIndex(x.year,x.month,x.isIntercalary);return this.newDate(x.year,_,x.day)},fromString:function(g){var b=g.match(d),x=this._validateYear(+b[1]),_=+b[2],w=!!b[3],k=this.toMonthIndex(x,_,w),T=+b[4];return this.newDate(x,k,T)},add:function(g,b,x){var _=g.year(),w=g.month(),k=this.isIntercalaryMonth(_,w),T=this.toChineseMonth(_,w),M=Object.getPrototypeOf(c.prototype).add.call(this,g,b,x);if(x==="y"){var S=M.year(),C=M.month(),P=this.isIntercalaryMonth(S,T),D=k&&P?this.toMonthIndex(S,T,!0):this.toMonthIndex(S,T,!1);D!==C&&M.month(D)}return M}});var d=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,h=/^\d?\d[iI]?/m,p=/^闰?十?[一二三四五六七八九]?月/m,m=/^闰?十?[一二三四五六七八九]?/m;l.calendars.chinese=c;var y=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],v=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904]},38751:function(o,a,n){var l=n(63489),f=n(56131);function s(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(c){var d=this._validate(c,this.minMonth,this.minDay,l.local.invalidYear);return(c=d.year()+(d.year()<0?1:0))%4==3||c%4==-1},monthsInYear:function(c){return this._validate(c,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear),13},weekOfYear:function(c,d,h){var p=this.newDate(c,d,h);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(c,d){var h=this._validate(c,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===13&&this.leapYear(h.year())?1:0)},weekDay:function(c,d,h){return(this.dayOfWeek(c,d,h)||7)<6},toJD:function(c,d,h){var p=this._validate(c,d,h,l.local.invalidDate);return(c=p.year())<0&&c++,p.day()+30*(p.month()-1)+365*(c-1)+Math.floor(c/4)+this.jdEpoch-1},fromJD:function(c){var d=Math.floor(c)+.5-this.jdEpoch,h=Math.floor((d-Math.floor((d+366)/1461))/365)+1;h<=0&&h--,d=Math.floor(c)+.5-this.newDate(h,1,1).toJD();var p=Math.floor(d/30)+1,m=d-30*(p-1)+1;return this.newDate(h,p,m)}}),l.calendars.coptic=s},86825:function(o,a,n){var l=n(63489),f=n(56131);function s(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(d){return this._validate(d,this.minMonth,this.minDay,l.local.invalidYear),!1},monthsInYear:function(d){return this._validate(d,this.minMonth,this.minDay,l.local.invalidYear),13},daysInYear:function(d){return this._validate(d,this.minMonth,this.minDay,l.local.invalidYear),400},weekOfYear:function(d,h,p){var m=this.newDate(d,h,p);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/8)+1},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(d,h,p){return(this._validate(d,h,p,l.local.invalidDate).day()+1)%8},weekDay:function(d,h,p){var m=this.dayOfWeek(d,h,p);return m>=2&&m<=6},extraInfo:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);return{century:c[Math.floor((m.year()-1)/100)+1]||""}},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);return d=m.year()+(m.year()<0?1:0),h=m.month(),(p=m.day())+(h>1?16:0)+(h>2?32*(h-2):0)+400*(d-1)+this.jdEpoch-1},fromJD:function(d){d=Math.floor(d+.5)-Math.floor(this.jdEpoch)-1;var h=Math.floor(d/400)+1;d-=400*(h-1),d+=d>15?16:0;var p=Math.floor(d/32)+1,m=d-32*(p-1)+1;return this.newDate(h<=0?h-1:h,p,m)}});var c={20:"Fruitbat",21:"Anchovy"};l.calendars.discworld=s},37715:function(o,a,n){var l=n(63489),f=n(56131);function s(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(c){var d=this._validate(c,this.minMonth,this.minDay,l.local.invalidYear);return(c=d.year()+(d.year()<0?1:0))%4==3||c%4==-1},monthsInYear:function(c){return this._validate(c,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear),13},weekOfYear:function(c,d,h){var p=this.newDate(c,d,h);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(c,d){var h=this._validate(c,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===13&&this.leapYear(h.year())?1:0)},weekDay:function(c,d,h){return(this.dayOfWeek(c,d,h)||7)<6},toJD:function(c,d,h){var p=this._validate(c,d,h,l.local.invalidDate);return(c=p.year())<0&&c++,p.day()+30*(p.month()-1)+365*(c-1)+Math.floor(c/4)+this.jdEpoch-1},fromJD:function(c){var d=Math.floor(c)+.5-this.jdEpoch,h=Math.floor((d-Math.floor((d+366)/1461))/365)+1;h<=0&&h--,d=Math.floor(c)+.5-this.newDate(h,1,1).toJD();var p=Math.floor(d/30)+1,m=d-30*(p-1)+1;return this.newDate(h,p,m)}}),l.calendars.ethiopian=s},99384:function(o,a,n){var l=n(63489),f=n(56131);function s(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}function c(d,h){return d-h*Math.floor(d/h)}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return this._leapYear(h.year())},_leapYear:function(d){return c(7*(d=d<0?d+1:d)+1,19)<7},monthsInYear:function(d){return this._validate(d,this.minMonth,this.minDay,l.local.invalidYear),this._leapYear(d.year?d.year():d)?13:12},weekOfYear:function(d,h,p){var m=this.newDate(d,h,p);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(d){return d=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear).year(),this.toJD(d===-1?1:d+1,7,1)-this.toJD(d,7,1)},daysInMonth:function(d,h){return d.year&&(h=d.month(),d=d.year()),this._validate(d,h,this.minDay,l.local.invalidMonth),h===12&&this.leapYear(d)||h===8&&c(this.daysInYear(d),10)===5?30:h===9&&c(this.daysInYear(d),10)===3?29:this.daysPerMonth[h-1]},weekDay:function(d,h,p){return this.dayOfWeek(d,h,p)!==6},extraInfo:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);return{yearType:(this.leapYear(m)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(m)%10-3]}},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);d=m.year(),h=m.month(),p=m.day();var y=d<=0?d+1:d,v=this.jdEpoch+this._delay1(y)+this._delay2(y)+p+1;if(h<7){for(var g=7;g<=this.monthsInYear(d);g++)v+=this.daysInMonth(d,g);for(g=1;g=this.toJD(h===-1?1:h+1,7,1);)h++;for(var p=dthis.toJD(h,p,this.daysInMonth(h,p));)p++;var m=d-this.toJD(h,p,1)+1;return this.newDate(h,p,m)}}),l.calendars.hebrew=s},43805:function(o,a,n){var l=n(63489),f=n(56131);function s(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(c){return(11*this._validate(c,this.minMonth,this.minDay,l.local.invalidYear).year()+14)%30<11},weekOfYear:function(c,d,h){var p=this.newDate(c,d,h);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInYear:function(c){return this.leapYear(c)?355:354},daysInMonth:function(c,d){var h=this._validate(c,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===12&&this.leapYear(h.year())?1:0)},weekDay:function(c,d,h){return this.dayOfWeek(c,d,h)!==5},toJD:function(c,d,h){var p=this._validate(c,d,h,l.local.invalidDate);return c=p.year(),d=p.month(),c=c<=0?c+1:c,(h=p.day())+Math.ceil(29.5*(d-1))+354*(c-1)+Math.floor((3+11*c)/30)+this.jdEpoch-1},fromJD:function(c){c=Math.floor(c)+.5;var d=Math.floor((30*(c-this.jdEpoch)+10646)/10631);d=d<=0?d-1:d;var h=Math.min(12,Math.ceil((c-29-this.toJD(d,1,1))/29.5)+1),p=c-this.toJD(d,h,1)+1;return this.newDate(d,h,p)}}),l.calendars.islamic=s},88874:function(o,a,n){var l=n(63489),f=n(56131);function s(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(c){var d=this._validate(c,this.minMonth,this.minDay,l.local.invalidYear);return(c=d.year()<0?d.year()+1:d.year())%4==0},weekOfYear:function(c,d,h){var p=this.newDate(c,d,h);return p.add(4-(p.dayOfWeek()||7),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(c,d){var h=this._validate(c,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===2&&this.leapYear(h.year())?1:0)},weekDay:function(c,d,h){return(this.dayOfWeek(c,d,h)||7)<6},toJD:function(c,d,h){var p=this._validate(c,d,h,l.local.invalidDate);return c=p.year(),d=p.month(),h=p.day(),c<0&&c++,d<=2&&(c--,d+=12),Math.floor(365.25*(c+4716))+Math.floor(30.6001*(d+1))+h-1524.5},fromJD:function(c){var d=Math.floor(c+.5)+1524,h=Math.floor((d-122.1)/365.25),p=Math.floor(365.25*h),m=Math.floor((d-p)/30.6001),y=m-Math.floor(m<14?1:13),v=h-Math.floor(y>2?4716:4715),g=d-p-Math.floor(30.6001*m);return v<=0&&v--,this.newDate(v,y,g)}}),l.calendars.julian=s},83290:function(o,a,n){var l=n(63489),f=n(56131);function s(h){this.local=this.regionalOptions[h||""]||this.regionalOptions[""]}function c(h,p){return h-p*Math.floor(h/p)}function d(h,p){return c(h-1,p)+1}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(h){return this._validate(h,this.minMonth,this.minDay,l.local.invalidYear),!1},formatYear:function(h){h=this._validate(h,this.minMonth,this.minDay,l.local.invalidYear).year();var p=Math.floor(h/400);return h%=400,h+=h<0?400:0,p+"."+Math.floor(h/20)+"."+h%20},forYear:function(h){if((h=h.split(".")).length<3)throw"Invalid Mayan year";for(var p=0,m=0;m19||m>0&&y<0)throw"Invalid Mayan year";p=20*p+y}return p},monthsInYear:function(h){return this._validate(h,this.minMonth,this.minDay,l.local.invalidYear),18},weekOfYear:function(h,p,m){return this._validate(h,p,m,l.local.invalidDate),0},daysInYear:function(h){return this._validate(h,this.minMonth,this.minDay,l.local.invalidYear),360},daysInMonth:function(h,p){return this._validate(h,p,this.minDay,l.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(h,p,m){return this._validate(h,p,m,l.local.invalidDate).day()},weekDay:function(h,p,m){return this._validate(h,p,m,l.local.invalidDate),!0},extraInfo:function(h,p,m){var y=this._validate(h,p,m,l.local.invalidDate).toJD(),v=this._toHaab(y),g=this._toTzolkin(y);return{haabMonthName:this.local.haabMonths[v[0]-1],haabMonth:v[0],haabDay:v[1],tzolkinDayName:this.local.tzolkinMonths[g[0]-1],tzolkinDay:g[0],tzolkinTrecena:g[1]}},_toHaab:function(h){var p=c(8+(h-=this.jdEpoch)+340,365);return[Math.floor(p/20)+1,c(p,20)]},_toTzolkin:function(h){return[d(20+(h-=this.jdEpoch),20),d(h+4,13)]},toJD:function(h,p,m){var y=this._validate(h,p,m,l.local.invalidDate);return y.day()+20*y.month()+360*y.year()+this.jdEpoch},fromJD:function(h){h=Math.floor(h)+.5-this.jdEpoch;var p=Math.floor(h/360);h%=360,h+=h<0?360:0;var m=Math.floor(h/20),y=h%20;return this.newDate(p,m,y)}}),l.calendars.mayan=s},29108:function(o,a,n){var l=n(63489),f=n(56131);function s(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar;var c=l.instance("gregorian");f(s.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear);return c.leapYear(h.year()+(h.year()<1?1:0)+1469)},weekOfYear:function(d,h,p){var m=this.newDate(d,h,p);return m.add(1-(m.dayOfWeek()||7),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(d,h,p){return(this.dayOfWeek(d,h,p)||7)<6},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidMonth);(d=m.year())<0&&d++;for(var y=m.day(),v=1;v=this.toJD(h+1,1,1);)h++;for(var p=d-Math.floor(this.toJD(h,1,1)+.5)+1,m=1;p>this.daysInMonth(h,m);)p-=this.daysInMonth(h,m),m++;return this.newDate(h,m,p)}}),l.calendars.nanakshahi=s},55422:function(o,a,n){var l=n(63489),f=n(56131);function s(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(c){return this.daysInYear(c)!==this.daysPerYear},weekOfYear:function(c,d,h){var p=this.newDate(c,d,h);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInYear:function(c){if(c=this._validate(c,this.minMonth,this.minDay,l.local.invalidYear).year(),this.NEPALI_CALENDAR_DATA[c]===void 0)return this.daysPerYear;for(var d=0,h=this.minMonth;h<=12;h++)d+=this.NEPALI_CALENDAR_DATA[c][h];return d},daysInMonth:function(c,d){return c.year&&(d=c.month(),c=c.year()),this._validate(c,d,this.minDay,l.local.invalidMonth),this.NEPALI_CALENDAR_DATA[c]===void 0?this.daysPerMonth[d-1]:this.NEPALI_CALENDAR_DATA[c][d]},weekDay:function(c,d,h){return this.dayOfWeek(c,d,h)!==6},toJD:function(c,d,h){var p=this._validate(c,d,h,l.local.invalidDate);c=p.year(),d=p.month(),h=p.day();var m=l.instance(),y=0,v=d,g=c;this._createMissingCalendarData(c);var b=c-(v>9||v===9&&h>=this.NEPALI_CALENDAR_DATA[g][0]?56:57);for(d!==9&&(y=h,v--);v!==9;)v<=0&&(v=12,g--),y+=this.NEPALI_CALENDAR_DATA[g][v],v--;return d===9?(y+=h-this.NEPALI_CALENDAR_DATA[g][0])<0&&(y+=m.daysInYear(b)):y+=this.NEPALI_CALENDAR_DATA[g][9]-this.NEPALI_CALENDAR_DATA[g][0],m.newDate(b,1,1).add(y,"d").toJD()},fromJD:function(c){var d=l.instance().fromJD(c),h=d.year(),p=d.dayOfYear(),m=h+56;this._createMissingCalendarData(m);for(var y=9,v=this.NEPALI_CALENDAR_DATA[m][0],g=this.NEPALI_CALENDAR_DATA[m][y]-v+1;p>g;)++y>12&&(y=1,m++),g+=this.NEPALI_CALENDAR_DATA[m][y];var b=this.NEPALI_CALENDAR_DATA[m][y]-(g-p);return this.newDate(m,y,b)},_createMissingCalendarData:function(c){var d=this.daysPerMonth.slice(0);d.unshift(17);for(var h=c-1;h0?474:473))%2820+474+38)%2816<682},weekOfYear:function(d,h,p){var m=this.newDate(d,h,p);return m.add(-(m.dayOfWeek()+1)%7,"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(d,h,p){return this.dayOfWeek(d,h,p)!==5},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);d=m.year(),h=m.month(),p=m.day();var y=d-(d>=0?474:473),v=474+c(y,2820);return p+(h<=7?31*(h-1):30*(h-1)+6)+Math.floor((682*v-110)/2816)+365*(v-1)+1029983*Math.floor(y/2820)+this.jdEpoch-1},fromJD:function(d){var h=(d=Math.floor(d)+.5)-this.toJD(475,1,1),p=Math.floor(h/1029983),m=c(h,1029983),y=2820;if(m!==1029982){var v=Math.floor(m/366),g=c(m,366);y=Math.floor((2134*v+2816*g+2815)/1028522)+v+1}var b=y+2820*p+474;b=b<=0?b-1:b;var x=d-this.toJD(b,1,1)+1,_=x<=186?Math.ceil(x/31):Math.ceil((x-6)/30),w=d-this.toJD(b,_,1)+1;return this.newDate(b,_,w)}}),l.calendars.persian=s,l.calendars.jalali=s},31320:function(o,a,n){var l=n(63489),f=n(56131),s=l.instance();function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new l.baseCalendar,f(c.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(h.year()),s.leapYear(d)},weekOfYear:function(d,h,p){var m=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(m.year()),s.weekOfYear(d,m.month(),m.day())},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(d,h,p){return(this.dayOfWeek(d,h,p)||7)<6},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);return d=this._t2gYear(m.year()),s.toJD(d,m.month(),m.day())},fromJD:function(d){var h=s.fromJD(d),p=this._g2tYear(h.year());return this.newDate(p,h.month(),h.day())},_t2gYear:function(d){return d+this.yearsOffset+(d>=-this.yearsOffset&&d<=-1?1:0)},_g2tYear:function(d){return d-this.yearsOffset-(d>=1&&d<=this.yearsOffset?1:0)}}),l.calendars.taiwan=c},51367:function(o,a,n){var l=n(63489),f=n(56131),s=l.instance();function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new l.baseCalendar,f(c.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(h.year()),s.leapYear(d)},weekOfYear:function(d,h,p){var m=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(m.year()),s.weekOfYear(d,m.month(),m.day())},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(d,h,p){return(this.dayOfWeek(d,h,p)||7)<6},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);return d=this._t2gYear(m.year()),s.toJD(d,m.month(),m.day())},fromJD:function(d){var h=s.fromJD(d),p=this._g2tYear(h.year());return this.newDate(p,h.month(),h.day())},_t2gYear:function(d){return d-this.yearsOffset-(d>=1&&d<=this.yearsOffset?1:0)},_g2tYear:function(d){return d+this.yearsOffset+(d>=-this.yearsOffset&&d<=-1?1:0)}}),l.calendars.thai=c},21457:function(o,a,n){var l=n(63489),f=n(56131);function s(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return this.daysInYear(h.year())===355},weekOfYear:function(d,h,p){var m=this.newDate(d,h,p);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(d){for(var h=0,p=1;p<=12;p++)h+=this.daysInMonth(d,p);return h},daysInMonth:function(d,h){for(var p=this._validate(d,h,this.minDay,l.local.invalidMonth).toJD()-24e5+.5,m=0,y=0;yp)return c[m]-c[m-1];m++}return 30},weekDay:function(d,h,p){return this.dayOfWeek(d,h,p)!==5},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate),y=12*(m.year()-1)+m.month()-15292;return m.day()+c[y-1]-1+24e5-.5},fromJD:function(d){for(var h=d-24e5+.5,p=0,m=0;mh);m++)p++;var y=p+15292,v=Math.floor((y-1)/12),g=v+1,b=y-12*v,x=h-c[p-1]+1;return this.newDate(g,b,x)},isValid:function(d,h,p){var m=l.baseCalendar.prototype.isValid.apply(this,arguments);return m&&(m=(d=d.year!=null?d.year:d)>=1276&&d<=1500),m},_validate:function(d,h,p,m){var y=l.baseCalendar.prototype._validate.apply(this,arguments);if(y.year<1276||y.year>1500)throw m.replace(/\{0\}/,this.local.name);return y}}),l.calendars.ummalqura=s;var c=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},63489:function(o,a,n){var l=n(56131);function f(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function s(m,y,v,g){if(this._calendar=m,this._year=y,this._month=v,this._day=g,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(p.local.invalidDate||p.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function c(m,y){return"000000".substring(0,y-(m=""+m).length)+m}function d(){this.shortYearCutoff="+10"}function h(m){this.local=this.regionalOptions[m]||this.regionalOptions[""]}l(f.prototype,{instance:function(m,y){m=(m||"gregorian").toLowerCase(),y=y||"";var v=this._localCals[m+"-"+y];if(!v&&this.calendars[m]&&(v=new this.calendars[m](y),this._localCals[m+"-"+y]=v),!v)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,m);return v},newDate:function(m,y,v,g,b){return(g=(m!=null&&m.year?m.calendar():typeof g=="string"?this.instance(g,b):g)||this.instance()).newDate(m,y,v)},substituteDigits:function(m){return function(y){return(y+"").replace(/[0-9]/g,function(v){return m[v]})}},substituteChineseDigits:function(m,y){return function(v){for(var g="",b=0;v>0;){var x=v%10;g=(x===0?"":m[x]+y[b])+g,b++,v=Math.floor(v/10)}return g.indexOf(m[1]+y[1])===0&&(g=g.substr(1)),g||m[0]}}}),l(s.prototype,{newDate:function(m,y,v){return this._calendar.newDate(m??this,y,v)},year:function(m){return arguments.length===0?this._year:this.set(m,"y")},month:function(m){return arguments.length===0?this._month:this.set(m,"m")},day:function(m){return arguments.length===0?this._day:this.set(m,"d")},date:function(m,y,v){if(!this._calendar.isValid(m,y,v))throw(p.local.invalidDate||p.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=m,this._month=y,this._day=v,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(m,y){return this._calendar.add(this,m,y)},set:function(m,y){return this._calendar.set(this,m,y)},compareTo:function(m){if(this._calendar.name!==m._calendar.name)throw(p.local.differentCalendars||p.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,m._calendar.local.name);var y=this._year!==m._year?this._year-m._year:this._month!==m._month?this.monthOfYear()-m.monthOfYear():this._day-m._day;return y===0?0:y<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(m){return this._calendar.fromJD(m)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(m){return this._calendar.fromJSDate(m)},toString:function(){return(this.year()<0?"-":"")+c(Math.abs(this.year()),4)+"-"+c(this.month(),2)+"-"+c(this.day(),2)}}),l(d.prototype,{_validateLevel:0,newDate:function(m,y,v){return m==null?this.today():(m.year&&(this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate),v=m.day(),y=m.month(),m=m.year()),new s(this,m,y,v))},today:function(){return this.fromJSDate(new Date)},epoch:function(m){return this._validate(m,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(m){var y=this._validate(m,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return(y.year()<0?"-":"")+c(Math.abs(y.year()),4)},monthsInYear:function(m){return this._validate(m,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear),12},monthOfYear:function(m,y){var v=this._validate(m,y,this.minDay,p.local.invalidMonth||p.regionalOptions[""].invalidMonth);return(v.month()+this.monthsInYear(v)-this.firstMonth)%this.monthsInYear(v)+this.minMonth},fromMonthOfYear:function(m,y){var v=(y+this.firstMonth-2*this.minMonth)%this.monthsInYear(m)+this.minMonth;return this._validate(m,v,this.minDay,p.local.invalidMonth||p.regionalOptions[""].invalidMonth),v},daysInYear:function(m){var y=this._validate(m,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return this.leapYear(y)?366:365},dayOfYear:function(m,y,v){var g=this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate);return g.toJD()-this.newDate(g.year(),this.fromMonthOfYear(g.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(m,y,v){var g=this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(g))+2)%this.daysInWeek()},extraInfo:function(m,y,v){return this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate),{}},add:function(m,y,v){return this._validate(m,this.minMonth,this.minDay,p.local.invalidDate||p.regionalOptions[""].invalidDate),this._correctAdd(m,this._add(m,y,v),y,v)},_add:function(m,y,v){if(this._validateLevel++,v==="d"||v==="w"){var g=m.toJD()+y*(v==="w"?this.daysInWeek():1),b=m.calendar().fromJD(g);return this._validateLevel--,[b.year(),b.month(),b.day()]}try{var x=m.year()+(v==="y"?y:0),_=m.monthOfYear()+(v==="m"?y:0);b=m.day(),v==="y"?(m.month()!==this.fromMonthOfYear(x,_)&&(_=this.newDate(x,m.month(),this.minDay).monthOfYear()),_=Math.min(_,this.monthsInYear(x)),b=Math.min(b,this.daysInMonth(x,this.fromMonthOfYear(x,_)))):v==="m"&&(function(k){for(;_T-1+k.minMonth;)x++,_-=T,T=k.monthsInYear(x)}(this),b=Math.min(b,this.daysInMonth(x,this.fromMonthOfYear(x,_))));var w=[x,this.fromMonthOfYear(x,_),b];return this._validateLevel--,w}catch(k){throw this._validateLevel--,k}},_correctAdd:function(m,y,v,g){if(!(this.hasYearZero||g!=="y"&&g!=="m"||y[0]!==0&&m.year()>0==y[0]>0)){var b={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[g],x=v<0?-1:1;y=this._add(m,v*b[0]+x*b[1],b[2])}return m.date(y[0],y[1],y[2])},set:function(m,y,v){this._validate(m,this.minMonth,this.minDay,p.local.invalidDate||p.regionalOptions[""].invalidDate);var g=v==="y"?y:m.year(),b=v==="m"?y:m.month(),x=v==="d"?y:m.day();return v!=="y"&&v!=="m"||(x=Math.min(x,this.daysInMonth(g,b))),m.date(g,b,x)},isValid:function(m,y,v){this._validateLevel++;var g=this.hasYearZero||m!==0;if(g){var b=this.newDate(m,y,this.minDay);g=y>=this.minMonth&&y-this.minMonth=this.minDay&&v-this.minDay13.5?13:1),T=b-(k>2.5?4716:4715);return T<=0&&T--,this.newDate(T,k,w)},toJSDate:function(m,y,v){var g=this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate),b=new Date(g.year(),g.month()-1,g.day());return b.setHours(0),b.setMinutes(0),b.setSeconds(0),b.setMilliseconds(0),b.setHours(b.getHours()>12?b.getHours()+2:0),b},fromJSDate:function(m){return this.newDate(m.getFullYear(),m.getMonth()+1,m.getDate())}});var p=o.exports=new f;p.cdate=s,p.baseCalendar=d,p.calendars.gregorian=h},94338:function(o,a,n){var l=n(56131),f=n(63489);l(f.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),f.local=f.regionalOptions[""],l(f.cdate.prototype,{formatDate:function(s,c){return typeof s!="string"&&(c=s,s=""),this._calendar.formatDate(s||"",this,c)}}),l(f.baseCalendar.prototype,{UNIX_EPOCH:f.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:f.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(s,c,d){if(typeof s!="string"&&(d=c,c=s,s=""),!c)return"";if(c.calendar()!==this)throw f.local.invalidFormat||f.regionalOptions[""].invalidFormat;s=s||this.local.dateFormat;for(var h,p,m,y=(d=d||{}).dayNamesShort||this.local.dayNamesShort,v=d.dayNames||this.local.dayNames,g=d.monthNumbers||this.local.monthNumbers,b=d.monthNamesShort||this.local.monthNamesShort,x=d.monthNames||this.local.monthNames,_=(d.calculateWeek||this.local.calculateWeek,function(R,F){for(var A=1;O+A1}),w=function(R,F,A,z){var B=""+F;if(_(R,z))for(;B.length1},P=function(N,E){var W=C(N,E),G=[2,3,W?4:2,W?4:2,10,11,20]["oyYJ@!".indexOf(N)+1],L=new RegExp("^-?\\d{1,"+G+"}"),q=c.substring(z).match(L);if(!q)throw(f.local.missingNumberAt||f.regionalOptions[""].missingNumberAt).replace(/\{0\}/,z);return z+=q[0].length,parseInt(q[0],10)},D=this,O=function(){if(typeof v=="function"){C("m");var N=v.call(D,c.substring(z));return z+=N.length,N}return P("m")},R=function(N,E,W,G){for(var L=C(N,G)?W:E,q=0;q-1){w=1,k=T;for(var j=this.daysInMonth(_,w);k>j;j=this.daysInMonth(_,w))w++,k-=j}return x>-1?this.fromJD(x):this.newDate(_,w,k)},determineDate:function(s,c,d,h,p){d&&typeof d!="object"&&(p=h,h=d,d=null),typeof h!="string"&&(p=h,h="");var m=this;return c=c?c.newDate():null,s==null?c:typeof s=="string"?function(y){try{return m.parseDate(h,y,p)}catch{}for(var v=((y=y.toLowerCase()).match(/^c/)&&d?d.newDate():null)||m.today(),g=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,b=g.exec(y);b;)v.add(parseInt(b[1],10),b[2]||"d"),b=g.exec(y);return v}(s):typeof s=="number"?isNaN(s)||s===1/0||s===-1/0?c:m.today().add(s,"d"):m.newDate(s)}})},69862:function(){},40964:function(){},72077:function(o,a,n){var l=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],f=typeof globalThis>"u"?n.g:globalThis;o.exports=function(){for(var s=[],c=0;c"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function y(_){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(k){return k.__proto__||Object.getPrototypeOf(k)},y(_)}var v=["AfterExport","AfterPlot","Animated","AnimatingFrame","AnimationInterrupted","AutoSize","BeforeExport","BeforeHover","ButtonClicked","Click","ClickAnnotation","Deselect","DoubleClick","Framework","Hover","LegendClick","LegendDoubleClick","Relayout","Relayouting","Restyle","Redraw","Selected","Selecting","SliderChange","SliderEnd","SliderStart","SunburstClick","Transitioning","TransitionInterrupted","Unhover","WebGlContextLost"],g=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick"],b=typeof window<"u";function x(_){var w=function(k){s(M,k);var T=d(M);function M(S){var C;return n(this,M),C=T.call(this,S),C.p=Promise.resolve(),C.resizeHandler=null,C.handlers={},C.syncWindowResize=C.syncWindowResize.bind(p(C)),C.syncEventHandlers=C.syncEventHandlers.bind(p(C)),C.attachUpdateEvents=C.attachUpdateEvents.bind(p(C)),C.getRef=C.getRef.bind(p(C)),C.handleUpdate=C.handleUpdate.bind(p(C)),C.figureCallback=C.figureCallback.bind(p(C)),C.updatePlotly=C.updatePlotly.bind(p(C)),C}return f(M,[{key:"updatePlotly",value:function(C,P,D){var O=this;this.p=this.p.then(function(){if(!O.unmounting){if(!O.el)throw new Error("Missing element reference");return _.react(O.el,{data:O.props.data,layout:O.props.layout,config:O.props.config,frames:O.props.frames})}}).then(function(){O.unmounting||(O.syncWindowResize(C),O.syncEventHandlers(),O.figureCallback(P),D&&O.attachUpdateEvents())}).catch(function(R){O.props.onError&&O.props.onError(R)})}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(C){this.unmounting=!1;var P=C.frames&&C.frames.length?C.frames.length:0,D=this.props.frames&&this.props.frames.length?this.props.frames.length:0,O=!(C.layout===this.props.layout&&C.data===this.props.data&&C.config===this.props.config&&D===P),R=C.revision!==void 0,F=C.revision!==this.props.revision;!O&&(!R||R&&!F)||this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&b&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),_.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var C=this;!this.el||!this.el.removeListener||g.forEach(function(P){C.el.on(P,C.handleUpdate)})}},{key:"removeUpdateEvents",value:function(){var C=this;!this.el||!this.el.removeListener||g.forEach(function(P){C.el.removeListener(P,C.handleUpdate)})}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(C){if(typeof C=="function"){var P=this.el,D=P.data,O=P.layout,R=this.el._transitionData?this.el._transitionData._frames:null,F={data:D,layout:O,frames:R};C(F,this.el)}}},{key:"syncWindowResize",value:function(C){var P=this;b&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return _.Plots.resize(P.el)},window.addEventListener("resize",this.resizeHandler),C&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(C){this.el=C,this.props.debug&&b&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var C=this;v.forEach(function(P){var D=C.props["on"+P],O=C.handlers[P],R=!!O;D&&!R?C.addEventHandler(P,D):!D&&R?C.removeEventHandler(P):D&&R&&D!==O&&(C.removeEventHandler(P),C.addEventHandler(P,D))})}},{key:"addEventHandler",value:function(C,P){this.handlers[C]=P,this.el.on(this.getPlotlyEventName(C),this.handlers[C])}},{key:"removeEventHandler",value:function(C){this.el.removeListener(this.getPlotlyEventName(C),this.handlers[C]),delete this.handlers[C]}},{key:"getPlotlyEventName",value:function(C){return"plotly_"+C.toLowerCase()}},{key:"render",value:function(){return r.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),M}(r.Component);return w.propTypes={data:i.default.arrayOf(i.default.object),config:i.default.object,layout:i.default.object,frames:i.default.arrayOf(i.default.object),revision:i.default.number,onInitialized:i.default.func,onPurge:i.default.func,onError:i.default.func,onUpdate:i.default.func,debug:i.default.bool,style:i.default.object,className:i.default.string,useResizeHandler:i.default.bool,divId:i.default.string},v.forEach(function(k){w.propTypes["on"+k]=i.default.func}),w.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},w}})(hS);const gE=ir(hS),pS=gE(pE),ml={data:{barpolar:[{marker:{line:{color:"rgb(17,17,17)",width:.5},pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"barpolar"}],bar:[{error_x:{color:"#f2f5fa"},error_y:{color:"#f2f5fa"},marker:{line:{color:"rgb(17,17,17)",width:.5},pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"bar"}],carpet:[{aaxis:{endlinecolor:"#A2B1C6",gridcolor:"#506784",linecolor:"#506784",minorgridcolor:"#506784",startlinecolor:"#A2B1C6"},baxis:{endlinecolor:"#A2B1C6",gridcolor:"#506784",linecolor:"#506784",minorgridcolor:"#506784",startlinecolor:"#A2B1C6"},type:"carpet"}],choropleth:[{colorbar:{outlinewidth:0,ticks:""},type:"choropleth"}],contourcarpet:[{colorbar:{outlinewidth:0,ticks:""},type:"contourcarpet"}],contour:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"contour"}],heatmapgl:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"heatmapgl"}],heatmap:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"heatmap"}],histogram2dcontour:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"histogram2dcontour"}],histogram2d:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"histogram2d"}],histogram:[{marker:{pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"histogram"}],mesh3d:[{colorbar:{outlinewidth:0,ticks:""},type:"mesh3d"}],parcoords:[{line:{colorbar:{outlinewidth:0,ticks:""}},type:"parcoords"}],pie:[{automargin:!0,type:"pie"}],scatter3d:[{line:{colorbar:{outlinewidth:0,ticks:""}},marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatter3d"}],scattercarpet:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scattercarpet"}],scattergeo:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scattergeo"}],scattergl:[{marker:{line:{color:"#283442"}},type:"scattergl"}],scattermapbox:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scattermapbox"}],scatterpolargl:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatterpolargl"}],scatterpolar:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatterpolar"}],scatter:[{marker:{line:{color:"#283442"}},type:"scatter"}],scatterternary:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatterternary"}],surface:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"surface"}],table:[{cells:{fill:{color:"#506784"},line:{color:"rgb(17,17,17)"}},header:{fill:{color:"#2a3f5f"},line:{color:"rgb(17,17,17)"}},type:"table"}]},layout:{annotationdefaults:{arrowcolor:"#f2f5fa",arrowhead:0,arrowwidth:1},autotypenumbers:"strict",coloraxis:{colorbar:{outlinewidth:0,ticks:""}},colorscale:{diverging:[[0,"#8e0152"],[.1,"#c51b7d"],[.2,"#de77ae"],[.3,"#f1b6da"],[.4,"#fde0ef"],[.5,"#f7f7f7"],[.6,"#e6f5d0"],[.7,"#b8e186"],[.8,"#7fbc41"],[.9,"#4d9221"],[1,"#276419"]],sequential:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],sequentialminus:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]},colorway:["#636efa","#EF553B","#00cc96","#ab63fa","#FFA15A","#19d3f3","#FF6692","#B6E880","#FF97FF","#FECB52"],font:{color:"#f2f5fa"},geo:{bgcolor:"rgb(17,17,17)",lakecolor:"rgb(17,17,17)",landcolor:"rgb(17,17,17)",showlakes:!0,showland:!0,subunitcolor:"#506784"},hoverlabel:{align:"left"},hovermode:"closest",mapbox:{style:"dark"},paper_bgcolor:"rgb(17,17,17)",plot_bgcolor:"rgb(17,17,17)",polar:{angularaxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""},bgcolor:"rgb(17,17,17)",radialaxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""}},scene:{xaxis:{backgroundcolor:"rgb(17,17,17)",gridcolor:"#506784",gridwidth:2,linecolor:"#506784",showbackground:!0,ticks:"",zerolinecolor:"#C8D4E3"},yaxis:{backgroundcolor:"rgb(17,17,17)",gridcolor:"#506784",gridwidth:2,linecolor:"#506784",showbackground:!0,ticks:"",zerolinecolor:"#C8D4E3"},zaxis:{backgroundcolor:"rgb(17,17,17)",gridcolor:"#506784",gridwidth:2,linecolor:"#506784",showbackground:!0,ticks:"",zerolinecolor:"#C8D4E3"}},shapedefaults:{line:{color:"#f2f5fa"}},sliderdefaults:{bgcolor:"#C8D4E3",bordercolor:"rgb(17,17,17)",borderwidth:1,tickwidth:0},ternary:{aaxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""},baxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""},bgcolor:"rgb(17,17,17)",caxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""}},title:{x:.05},updatemenudefaults:{bgcolor:"#506784",borderwidth:0,showactive:!1},xaxis:{automargin:!0,gridcolor:"#283442",linecolor:"#506784",ticks:"",title:{standoff:15},zerolinecolor:"#283442",zerolinewidth:2},yaxis:{automargin:!0,gridcolor:"#283442",linecolor:"#506784",ticks:"",title:{standoff:15},zerolinecolor:"#283442",zerolinewidth:2}}},mE=e=>typeof e=="number"?Math.round(e*100)/100:e,Pd=e=>{var y,v,g,b;const t=dE(),r=fS(),i=e.data.some(({type:x})=>x==="histogram"),u=(t==null?void 0:t.isXaxisAsCategorical)&&!i,o=t==null?void 0:t.OnClickedPointComponent,a=t==null?void 0:t.OnHoveredPlotComponent,[n,l]=$e.useState(null),[f,s]=$e.useState(!1),c=o&&n?[{type:"line",x0:n.points[0].x,x1:n.points[0].x,y0:0,y1:1,xref:"x",yref:"paper",line:{color:r==="dark"?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.5)",width:3,dash:"dash"}}]:[],d=o&&n&&e.data.every(x=>x.type!=="bar"&&x.type!=="histogram")?[{x:[n.points[0].x],y:[n.points[0].y],mode:"markers",marker:{size:8,color:r==="dark"?"rgba(255, 255, 255, 1)":"rgba(0, 0, 0, 1)"},name:`selected point
${n.points[0].x}: ${mE(n.points[0].y)}`,hoverinfo:"skip"}]:[],h=[...e.layout.shapes??[],...c],p=r==="dark"?{template:{...ml,layout:{...ml.layout,colorway:((v=(y=e.layout.template)==null?void 0:y.layout)==null?void 0:v.colorway)||((g=ml.layout)==null?void 0:g.colorway)}}}:void 0,m=u?{type:"category",categoryorder:"category ascending"}:void 0;return je.jsx(je.Fragment,{children:je.jsxs(Kr,{position:"relative",children:[je.jsx(pS,{onHover:()=>!f&&s(!0),onClick:o?x=>l(x):void 0,data:[...e.data,...d],layout:{...e.layout,...p,title:void 0,shapes:h,xaxis:{...(b=e.layout)==null?void 0:b.xaxis,...m}},config:{responsive:!0},style:{width:"100%",minHeight:300+100*(1+e.widgetSize/2),maxHeight:400}}),n&&o&&je.jsx(o,{event:n}),f&&a&&je.jsx(a,{})]})})};var gS={},mS={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(mS);var Rn=mS.exports,ug={exports:{}},W2;function hr(){return W2||(W2=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var i=1;i{let t;const r=new Set,i=(l,f)=>{const s=typeof l=="function"?l(t):l;if(!Object.is(s,t)){const c=t;t=f??typeof s!="object"?s:Object.assign({},t,s),r.forEach(d=>d(t,c))}},u=()=>t,n={setState:i,getState:u,subscribe:l=>(r.add(l),()=>r.delete(l)),destroy:()=>{(xE?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}};return t=e(i,u,n),n},bS=e=>e?X2(e):X2;var xS={exports:{}},wS={},_S={exports:{}},TS={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -76,7 +76,7 @@ should equal * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Tl=$e;function xE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wE=typeof Object.is=="function"?Object.is:xE,_E=Tl.useState,TE=Tl.useEffect,kE=Tl.useLayoutEffect,ME=Tl.useDebugValue;function SE(e,t){var r=t(),i=_E({inst:{value:r,getSnapshot:t}}),c=i[0].inst,o=i[1];return kE(function(){c.value=r,c.getSnapshot=t,bg(c)&&o({inst:c})},[e,r,t]),TE(function(){return bg(c)&&o({inst:c}),e(function(){bg(c)&&o({inst:c})})},[e]),ME(r),r}function bg(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!wE(e,r)}catch{return!0}}function CE(e,t){return t()}var OE=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?CE:SE;TS.useSyncExternalStore=Tl.useSyncExternalStore!==void 0?Tl.useSyncExternalStore:OE;_S.exports=TS;var kS=_S.exports;/** + */var Tl=$e;function wE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _E=typeof Object.is=="function"?Object.is:wE,TE=Tl.useState,kE=Tl.useEffect,ME=Tl.useLayoutEffect,SE=Tl.useDebugValue;function CE(e,t){var r=t(),i=TE({inst:{value:r,getSnapshot:t}}),u=i[0].inst,o=i[1];return ME(function(){u.value=r,u.getSnapshot=t,bg(u)&&o({inst:u})},[e,r,t]),kE(function(){return bg(u)&&o({inst:u}),e(function(){bg(u)&&o({inst:u})})},[e]),SE(r),r}function bg(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!_E(e,r)}catch{return!0}}function OE(e,t){return t()}var AE=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?OE:CE;TS.useSyncExternalStore=Tl.useSyncExternalStore!==void 0?Tl.useSyncExternalStore:AE;_S.exports=TS;var kS=_S.exports;/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * @@ -84,11 +84,11 @@ should equal * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Dd=$e,AE=kS;function PE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var DE=typeof Object.is=="function"?Object.is:PE,EE=AE.useSyncExternalStore,RE=Dd.useRef,LE=Dd.useEffect,IE=Dd.useMemo,FE=Dd.useDebugValue;wS.useSyncExternalStoreWithSelector=function(e,t,r,i,c){var o=RE(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=IE(function(){function l(h){if(!f){if(f=!0,s=h,h=i(h),c!==void 0&&a.hasValue){var p=a.value;if(c(p,h))return u=p}return u=h}if(p=u,DE(s,h))return p;var m=i(h);return c!==void 0&&c(p,m)?p:(s=h,u=m)}var f=!1,s,u,d=r===void 0?null:r;return[function(){return l(t())},d===null?void 0:function(){return l(d())}]},[t,r,i,c]);var n=EE(e,o[0],o[1]);return LE(function(){a.hasValue=!0,a.value=n},[n]),FE(n),n};xS.exports=wS;var NE=xS.exports;const jE=ir(NE),{useSyncExternalStoreWithSelector:$E}=jE;function MS(e,t=e.getState,r){const i=$E(e.subscribe,e.getState,e.getServerState||e.getState,t,r);return $e.useDebugValue(i),i}const Z2=e=>{const t=typeof e=="function"?bS(e):e,r=(i,c)=>MS(t,i,c);return Object.assign(r,t),r},SS=e=>e?Z2(e):Z2;var BE=e=>SS(e);const zE=Object.freeze(Object.defineProperty({__proto__:null,create:SS,createStore:bS,default:BE,useStore:MS},Symbol.toStringTag,{value:"Module"})),qE=qn(zE);var jc={exports:{}},xg={exports:{}},K2;function WE(){return K2||(K2=1,function(e,t){(function(r,i){e.exports=i()})(Sa,function(){var r=typeof Promise=="function",i=typeof self=="object"?self:Sa,c=typeof Symbol<"u",o=typeof Map<"u",a=typeof Set<"u",n=typeof WeakMap<"u",l=typeof WeakSet<"u",f=typeof DataView<"u",s=c&&typeof Symbol.iterator<"u",u=c&&typeof Symbol.toStringTag<"u",d=a&&typeof Set.prototype.entries=="function",h=o&&typeof Map.prototype.entries=="function",p=d&&Object.getPrototypeOf(new Set().entries()),m=h&&Object.getPrototypeOf(new Map().entries()),y=s&&typeof Array.prototype[Symbol.iterator]=="function",v=y&&Object.getPrototypeOf([][Symbol.iterator]()),g=s&&typeof String.prototype[Symbol.iterator]=="function",b=g&&Object.getPrototypeOf(""[Symbol.iterator]()),x=8,_=-1;function w(k){var T=typeof k;if(T!=="object")return T;if(k===null)return"null";if(k===i)return"global";if(Array.isArray(k)&&(u===!1||!(Symbol.toStringTag in k)))return"Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&k===window.location)return"Location";if(typeof window.document=="object"&&k===window.document)return"Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&k===window.navigator.mimeTypes)return"MimeTypeArray";if(typeof window.navigator.plugins=="object"&&k===window.navigator.plugins)return"PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&k instanceof window.HTMLElement){if(k.tagName==="BLOCKQUOTE")return"HTMLQuoteElement";if(k.tagName==="TD")return"HTMLTableDataCellElement";if(k.tagName==="TH")return"HTMLTableHeaderCellElement"}}var M=u&&k[Symbol.toStringTag];if(typeof M=="string")return M;var S=Object.getPrototypeOf(k);return S===RegExp.prototype?"RegExp":S===Date.prototype?"Date":r&&S===Promise.prototype?"Promise":a&&S===Set.prototype?"Set":o&&S===Map.prototype?"Map":l&&S===WeakSet.prototype?"WeakSet":n&&S===WeakMap.prototype?"WeakMap":f&&S===DataView.prototype?"DataView":o&&S===m?"Map Iterator":a&&S===p?"Set Iterator":y&&S===v?"Array Iterator":g&&S===b?"String Iterator":S===null?"Object":Object.prototype.toString.call(k).slice(x,_)}return w})}(xg)),xg.exports}var J2;function CS(){if(J2)return jc.exports;J2=1;/*! + */var Dd=$e,PE=kS;function DE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var EE=typeof Object.is=="function"?Object.is:DE,RE=PE.useSyncExternalStore,LE=Dd.useRef,IE=Dd.useEffect,FE=Dd.useMemo,NE=Dd.useDebugValue;wS.useSyncExternalStoreWithSelector=function(e,t,r,i,u){var o=LE(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=FE(function(){function l(h){if(!f){if(f=!0,s=h,h=i(h),u!==void 0&&a.hasValue){var p=a.value;if(u(p,h))return c=p}return c=h}if(p=c,EE(s,h))return p;var m=i(h);return u!==void 0&&u(p,m)?p:(s=h,c=m)}var f=!1,s,c,d=r===void 0?null:r;return[function(){return l(t())},d===null?void 0:function(){return l(d())}]},[t,r,i,u]);var n=RE(e,o[0],o[1]);return IE(function(){a.hasValue=!0,a.value=n},[n]),NE(n),n};xS.exports=wS;var jE=xS.exports;const $E=ir(jE),{useSyncExternalStoreWithSelector:BE}=$E;function MS(e,t=e.getState,r){const i=BE(e.subscribe,e.getState,e.getServerState||e.getState,t,r);return $e.useDebugValue(i),i}const Z2=e=>{const t=typeof e=="function"?bS(e):e,r=(i,u)=>MS(t,i,u);return Object.assign(r,t),r},SS=e=>e?Z2(e):Z2;var zE=e=>SS(e);const qE=Object.freeze(Object.defineProperty({__proto__:null,create:SS,createStore:bS,default:zE,useStore:MS},Symbol.toStringTag,{value:"Module"})),WE=qn(qE);var jc={exports:{}},xg={exports:{}},K2;function UE(){return K2||(K2=1,function(e,t){(function(r,i){e.exports=i()})(Sa,function(){var r=typeof Promise=="function",i=typeof self=="object"?self:Sa,u=typeof Symbol<"u",o=typeof Map<"u",a=typeof Set<"u",n=typeof WeakMap<"u",l=typeof WeakSet<"u",f=typeof DataView<"u",s=u&&typeof Symbol.iterator<"u",c=u&&typeof Symbol.toStringTag<"u",d=a&&typeof Set.prototype.entries=="function",h=o&&typeof Map.prototype.entries=="function",p=d&&Object.getPrototypeOf(new Set().entries()),m=h&&Object.getPrototypeOf(new Map().entries()),y=s&&typeof Array.prototype[Symbol.iterator]=="function",v=y&&Object.getPrototypeOf([][Symbol.iterator]()),g=s&&typeof String.prototype[Symbol.iterator]=="function",b=g&&Object.getPrototypeOf(""[Symbol.iterator]()),x=8,_=-1;function w(k){var T=typeof k;if(T!=="object")return T;if(k===null)return"null";if(k===i)return"global";if(Array.isArray(k)&&(c===!1||!(Symbol.toStringTag in k)))return"Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&k===window.location)return"Location";if(typeof window.document=="object"&&k===window.document)return"Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&k===window.navigator.mimeTypes)return"MimeTypeArray";if(typeof window.navigator.plugins=="object"&&k===window.navigator.plugins)return"PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&k instanceof window.HTMLElement){if(k.tagName==="BLOCKQUOTE")return"HTMLQuoteElement";if(k.tagName==="TD")return"HTMLTableDataCellElement";if(k.tagName==="TH")return"HTMLTableHeaderCellElement"}}var M=c&&k[Symbol.toStringTag];if(typeof M=="string")return M;var S=Object.getPrototypeOf(k);return S===RegExp.prototype?"RegExp":S===Date.prototype?"Date":r&&S===Promise.prototype?"Promise":a&&S===Set.prototype?"Set":o&&S===Map.prototype?"Map":l&&S===WeakSet.prototype?"WeakSet":n&&S===WeakMap.prototype?"WeakMap":f&&S===DataView.prototype?"DataView":o&&S===m?"Map Iterator":a&&S===p?"Set Iterator":y&&S===v?"Array Iterator":g&&S===b?"String Iterator":S===null?"Object":Object.prototype.toString.call(k).slice(x,_)}return w})}(xg)),xg.exports}var J2;function CS(){if(J2)return jc.exports;J2=1;/*! * deep-eql * Copyright(c) 2013 Jake Luer * MIT Licensed - */var e=WE();function t(){this._key="chai/deep-eql__"+Math.random()+Date.now()}t.prototype={get:function(k){return k[this._key]},set:function(k,T){Object.isExtensible(k)&&Object.defineProperty(k,this._key,{value:T,configurable:!0})}};var r=typeof WeakMap=="function"?WeakMap:t;/*! + */var e=UE();function t(){this._key="chai/deep-eql__"+Math.random()+Date.now()}t.prototype={get:function(k){return k[this._key]},set:function(k,T){Object.isExtensible(k)&&Object.defineProperty(k,this._key,{value:T,configurable:!0})}};var r=typeof WeakMap=="function"?WeakMap:t;/*! * Check to see if the MemoizeMap has recorded a result of the two operands * * @param {Mixed} leftHandOperand @@ -102,7 +102,7 @@ should equal * @param {Mixed} rightHandOperand * @param {MemoizeMap} memoizeMap * @param {Boolean} result -*/function c(w,k,T,M){if(!(!T||x(w)||x(k))){var S=T.get(w);S?S.set(k,M):(S=new r,S.set(k,M),T.set(w,S))}}/*! +*/function u(w,k,T,M){if(!(!T||x(w)||x(k))){var S=T.get(w);S?S.set(k,M):(S=new r,S.set(k,M),T.set(w,S))}}/*! * Primary Export */jc.exports=o,jc.exports.MemoizeMap=r;function o(w,k,T){if(T&&T.comparator)return n(w,k,T);var M=a(w,k);return M!==null?M:n(w,k,T)}function a(w,k){return w===k?w!==0||1/w===1/k:w!==w&&k!==k?!0:x(w)||x(k)?!1:null}/*! * The main logic of the `deepEqual` function. @@ -115,7 +115,7 @@ should equal complex objects for a speed boost. By passing `false` you can disable memoization, but this will cause circular references to blow the stack. * @return {Boolean} equal match -*/function n(w,k,T){T=T||{},T.memoize=T.memoize===!1?!1:T.memoize||new r;var M=T&&T.comparator,S=i(w,k,T.memoize);if(S!==null)return S;var C=i(k,w,T.memoize);if(C!==null)return C;if(M){var P=M(w,k);if(P===!1||P===!0)return c(w,k,T.memoize,P),P;var D=a(w,k);if(D!==null)return D}var O=e(w);if(O!==e(k))return c(w,k,T.memoize,!1),!1;c(w,k,T.memoize,!0);var R=l(w,k,O,T);return c(w,k,T.memoize,R),R}function l(w,k,T,M){switch(T){case"String":case"Number":case"Boolean":case"Date":return o(w.valueOf(),k.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return w===k;case"Error":return g(w,k,["name","message","code"],M);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return u(w,k,M);case"RegExp":return f(w,k);case"Generator":return d(w,k,M);case"DataView":return u(new Uint8Array(w.buffer),new Uint8Array(k.buffer),M);case"ArrayBuffer":return u(new Uint8Array(w),new Uint8Array(k),M);case"Set":return s(w,k,M);case"Map":return s(w,k,M);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return w.equals(k);case"Temporal.Duration":return w.total("nanoseconds")===k.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return w.toString()===k.toString();default:return b(w,k,M)}}/*! +*/function n(w,k,T){T=T||{},T.memoize=T.memoize===!1?!1:T.memoize||new r;var M=T&&T.comparator,S=i(w,k,T.memoize);if(S!==null)return S;var C=i(k,w,T.memoize);if(C!==null)return C;if(M){var P=M(w,k);if(P===!1||P===!0)return u(w,k,T.memoize,P),P;var D=a(w,k);if(D!==null)return D}var O=e(w);if(O!==e(k))return u(w,k,T.memoize,!1),!1;u(w,k,T.memoize,!0);var R=l(w,k,O,T);return u(w,k,T.memoize,R),R}function l(w,k,T,M){switch(T){case"String":case"Number":case"Boolean":case"Date":return o(w.valueOf(),k.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return w===k;case"Error":return g(w,k,["name","message","code"],M);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return c(w,k,M);case"RegExp":return f(w,k);case"Generator":return d(w,k,M);case"DataView":return c(new Uint8Array(w.buffer),new Uint8Array(k.buffer),M);case"ArrayBuffer":return c(new Uint8Array(w),new Uint8Array(k),M);case"Set":return s(w,k,M);case"Map":return s(w,k,M);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return w.equals(k);case"Temporal.Duration":return w.total("nanoseconds")===k.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return w.toString()===k.toString();default:return b(w,k,M)}}/*! * Compare two Regular Expressions for equality. * * @param {RegExp} leftHandOperand @@ -128,21 +128,21 @@ should equal * @param {Set} rightHandOperand * @param {Object} [options] (Optional) * @return {Boolean} result - */function s(w,k,T){if(w.size!==k.size)return!1;if(w.size===0)return!0;var M=[],S=[];return w.forEach(function(P,D){M.push([P,D])}),k.forEach(function(P,D){S.push([P,D])}),u(M.sort(),S.sort(),T)}/*! + */function s(w,k,T){if(w.size!==k.size)return!1;if(w.size===0)return!0;var M=[],S=[];return w.forEach(function(P,D){M.push([P,D])}),k.forEach(function(P,D){S.push([P,D])}),c(M.sort(),S.sort(),T)}/*! * Simple equality for flat iterable objects such as Arrays, TypedArrays or Node.js buffers. * * @param {Iterable} leftHandOperand * @param {Iterable} rightHandOperand * @param {Object} [options] (Optional) * @return {Boolean} result - */function u(w,k,T){var M=w.length;if(M!==k.length)return!1;if(M===0)return!0;for(var S=-1;++S=0)&&(c[a]=r[a]);return c}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ag)),Ag.exports}var Mw;function Bl(){return Mw||(Mw=1,function(e){var t=cR();function r(i,c){if(i==null)return{};var o=t(i,c),a,n;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(i,a)&&(o[a]=i[a])}return o}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(Og)),Og.exports}var Sw;function fR(){return Sw||(Sw=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(uR),i=t(hr()),c=t(Bl()),o=t($e),a=["forwardedRef"];function n(f){var s=f.forwardedRef,u=(0,c.default)(f,a);return o.default.createElement(r.default,(0,i.default)({elevation:2},u,{ref:s}))}var l=o.default.forwardRef(function(s,u){return o.default.createElement(n,(0,i.default)({},s,{forwardedRef:u}))});e.default=l}(Cg)),Cg}var Pg={};const zo=qn(o9);var Dg={exports:{}},Cw;function dR(){return Cw||(Cw=1,function(e,t){(function(i,c){e.exports=c($e)})(Sa,function(r){return function(i){var c={};function o(a){if(c[a])return c[a].exports;var n=c[a]={exports:{},id:a,loaded:!1};return i[a].call(n.exports,n,n.exports,o),n.loaded=!0,n.exports}return o.m=i,o.c=c,o.p="",o(0)}([function(i,c,o){Object.defineProperty(c,"__esModule",{value:!0});var a=function(){function p(m,y){for(var v=0;vr.length)&&(i=r.length);for(var c=0,o=new Array(i);c0&&R++,m.hasDetailPanel&&R++,m.isTreeData&&R++,l.default.createElement(a.default,{style:{height:O*(v.paging&&v.emptyRowsWhenPaging?m.pageSize:1)},key:"empty-0"},l.default.createElement(n.default,{style:{paddingTop:0,paddingBottom:0,textAlign:"center"},colSpan:m.columns.reduce(function(F,A){return A.hidden?F:F+1},R),key:"empty-"},y.emptyDataSourceMessage))}else if(v.emptyRowsWhenPaging)return l.default.createElement(l.default.Fragment,null,(0,o.default)(Array(P)).map(function(F,A){return l.default.createElement(a.default,{style:{height:O},key:"empty-"+A})}),P>0&&l.default.createElement(a.default,{style:{height:1},key:"empty-last1"}))}function _(P){return P.map(function(D,O){if(D.tableData.editing||m.bulkEditOpen)return l.default.createElement(m.components.EditRow,{columns:b,components:m.components,data:D,errorState:m.errorState,icons:g,localization:y.editRow,key:"row-"+D.tableData.uuid,mode:m.bulkEditOpen?"bulk":D.tableData.editing,isTreeData:m.isTreeData,detailPanel:m.detailPanel,onEditingCanceled:m.onEditingCanceled,onEditingApproved:m.onEditingApproved,bulkEditChangedRows:m.bulkEditChangedRows,getFieldValue:m.getFieldValue,onBulkEditRowChanged:m.onBulkEditRowChanged,scrollWidth:m.scrollWidth});var R=m.isTreeData?[D.tableData.uuid]:[O+m.pageSize*m.currentPage];return l.default.createElement(m.components.Row,{components:m.components,data:D,index:O,errorState:m.errorState,key:"row-"+D.tableData.uuid,level:0,onRowSelected:m.onRowSelected,actions:m.actions,columns:m.columns,getFieldValue:m.getFieldValue,detailPanel:m.detailPanel,path:R,onToggleDetailPanel:m.onToggleDetailPanel,onRowClick:m.onRowClick,onRowDoubleClick:m.onRowDoubleClick,isTreeData:m.isTreeData,onTreeExpandChanged:m.onTreeExpandChanged,onEditingCanceled:m.onEditingCanceled,onEditingApproved:m.onEditingApproved,hasAnyEditingRow:m.hasAnyEditingRow,treeDataMaxLevel:m.treeDataMaxLevel,cellEditable:m.cellEditable,onCellEditStarted:m.onCellEditStarted,onCellEditFinished:m.onCellEditFinished,onRowEditStarted:m.onRowEditStarted,scrollWidth:m.scrollWidth})})}function w(P,D){return D.map(function(O,R){return l.default.createElement(m.components.GroupRow,{actions:m.actions,cellEditable:m.cellEditable,columns:m.columns,components:m.components,detailPanel:m.detailPanel,getFieldValue:m.getFieldValue,groupData:O,groups:P,hasAnyEditingRow:m.hasAnyEditingRow,icons:g,isTreeData:m.isTreeData,key:O.value==null?""+R:O.value,level:0,localization:y.editRow,onBulkEditRowChanged:m.onBulkEditRowChanged,onCellEditFinished:m.onCellEditFinished,onCellEditStarted:m.onCellEditStarted,onEditingApproved:m.onEditingApproved,onEditingCanceled:m.onEditingCanceled,onGroupExpandChanged:m.onGroupExpandChanged,onRowClick:m.onRowClick,onGroupSelected:m.onGroupSelected,onRowSelected:m.onRowSelected,onToggleDetailPanel:m.onToggleDetailPanel,onTreeExpandChanged:m.onTreeExpandChanged,path:[R+m.pageSize*m.currentPage],scrollWidth:m.scrollWidth,treeDataMaxLevel:m.treeDataMaxLevel})})}function k(){return m.showAddRow&&l.default.createElement(m.components.EditRow,{columns:b,components:m.components,data:m.initialFormData,detailPanel:m.detailPanel,errorState:m.errorState,getFieldValue:m.getFieldValue,icons:g,isTreeData:m.isTreeData,key:"key-add-row",localization:y.editRow,mode:"add",onEditingApproved:m.onEditingApproved,onEditingCanceled:m.onEditingCanceled,scrollWidth:m.scrollWidth})}var T=m.renderData,M=m.columns.filter(function(P){return P.tableData.groupOrder>-1}).sort(function(P,D){return P.tableData.groupOrder-D.tableData.groupOrder}),S=0;v.paging&&m.pageSize>T.length&&(S=m.pageSize-T.length);var C=l.default.useMemo(function(){return m.renderSummaryRow?function(P){return m.renderSummaryRow(d(d({},P),{},{data:m.data,currentData:m.currentData}))}:void 0},[m.data]);return l.default.createElement(i.default,{ref:m.forwardedRef},v.filtering&&l.default.createElement(m.components.FilterRow,{columns:b,icons:g,hasActions:m.actions.some(function(P){return P.position==="row"||typeof P=="function"}),onFilterChanged:m.onFilterChanged,localization:y.filterRow,hasDetailPanel:!!m.detailPanel,isTreeData:m.isTreeData,scrollWidth:m.scrollWidth,hideFilterIcons:m.options.hideFilterIcons}),v.addRowPosition==="first"&&k(),M.length>0?w(M,T):_(T),v.addRowPosition==="last"&&k(),l.default.createElement(m.components.SummaryRow,{columns:b,renderSummaryRow:C,rowProps:m}),x(S,T))}h.defaultProps={actions:[],currentPage:0,data:[],pageSize:5,renderData:[],selection:!1},h.propTypes={actions:f.default.array,bulkEditChangedRows:f.default.object,bulkEditOpen:f.default.bool,cellEditable:f.default.object,columns:f.default.array.isRequired,components:f.default.object.isRequired,currentPage:f.default.number,data:f.default.array,detailPanel:f.default.oneOfType([f.default.func,f.default.arrayOf(f.default.oneOfType([f.default.object,f.default.func]))]),errorState:f.default.oneOfType([f.default.object,f.default.bool]),forwardedRef:f.default.oneOfType([f.default.func,f.default.object]),getFieldValue:f.default.func.isRequired,hasAnyEditingRow:f.default.bool,hasDetailPanel:f.default.bool.isRequired,initialFormData:f.default.object,isTreeData:f.default.bool.isRequired,onBulkEditRowChanged:f.default.func,onCellEditFinished:f.default.func,onCellEditStarted:f.default.func,onEditingApproved:f.default.func,onEditingCanceled:f.default.func,onFilterChanged:f.default.func,onGroupExpandChanged:f.default.func,onRowClick:f.default.func,onRowDoubleClick:f.default.func,onGroupSelected:f.default.func,onRowSelected:f.default.func,onToggleDetailPanel:f.default.func.isRequired,onTreeExpandChanged:f.default.func.isRequired,pageSize:f.default.number,renderData:f.default.array,renderSummaryRow:f.default.func,scrollWidth:f.default.number.isRequired,selection:f.default.bool.isRequired,showAddRow:f.default.bool,treeDataMaxLevel:f.default.number};var p=l.default.forwardRef(function(y,v){return l.default.createElement(h,(0,r.default)({},y,{forwardedRef:v}))});e.default=p}(Eg)),Eg}var $g={},Bg={exports:{}},Fw;function Ed(){return Fw||(Fw=1,function(e){function t(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Bg)),Bg.exports}var zg={exports:{}},Nw;function Rd(){return Nw||(Nw=1,function(e){var t=yS();function r(c,o){for(var a=0;a1?"s":"")+" required, but only "+t.length+" present")}function hn(e){dn(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Si(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function P0(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return isNaN(i)?new Date(NaN):(i&&r.setDate(r.getDate()+i),r)}function Id(e,t){dn(2,arguments);var r=hn(e).getTime(),i=sr(t);return new Date(r+i)}function _R(e,t){dn(2,arguments);var r=sr(t);return Id(e,r*1e3)}var TR=6e4;function kR(e,t){dn(2,arguments);var r=sr(t);return Id(e,r*TR)}var MR=36e5;function SR(e,t){dn(2,arguments);var r=sr(t);return Id(e,r*MR)}function CR(e,t){dn(2,arguments);var r=sr(t),i=r*7;return P0(e,i)}function pf(e,t){dn(2,arguments);var r=hn(e),i=sr(t);if(isNaN(i))return new Date(NaN);if(!i)return r;var c=r.getDate(),o=new Date(r.getTime());o.setMonth(r.getMonth()+i+1,0);var a=o.getDate();return c>=a?o:(r.setFullYear(o.getFullYear(),o.getMonth(),c),r)}function Ww(e,t){dn(2,arguments);var r=sr(t);return pf(e,r*12)}function OR(e,t){dn(2,arguments);var r=hn(e),i=hn(t);return r.getFullYear()-i.getFullYear()}function ku(e,t){dn(2,arguments);var r=hn(e),i=hn(t),c=r.getTime()-i.getTime();return c<0?-1:c>0?1:c}function AR(e,t){dn(2,arguments);var r=hn(e),i=hn(t),c=ku(r,i),o=Math.abs(OR(r,i));r.setFullYear(1584),i.setFullYear(1584);var a=ku(r,i)===-c,n=c*(o-Number(a));return n===0?0:n}function PR(e,t){dn(2,arguments);var r=hn(e),i=hn(t),c=r.getFullYear()-i.getFullYear(),o=r.getMonth()-i.getMonth();return c*12+o}function D0(e){dn(1,arguments);var t=hn(e);return t.setHours(23,59,59,999),t}function E0(e){dn(1,arguments);var t=hn(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function DR(e){dn(1,arguments);var t=hn(e);return D0(t).getTime()===E0(t).getTime()}function FS(e,t){dn(2,arguments);var r=hn(e),i=hn(t),c=ku(r,i),o=Math.abs(PR(r,i)),a;if(o<1)a=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-c*o);var n=ku(r,i)===-c;DR(hn(e))&&o===1&&ku(e,i)===1&&(n=!1),a=c*(o-Number(n))}return a===0?0:a}var Uw={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},ER="trunc";function nc(e){return e?Uw[e]:Uw[ER]}function RR(e,t,r){dn(2,arguments);var i=FS(e,t)/3;return nc(void 0)(i)}function Lf(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function kl(e){dn(1,arguments);var t=hn(e);return t.setHours(0,0,0,0),t}var LR=864e5;function IR(e,t){dn(2,arguments);var r=kl(e),i=kl(t),c=r.getTime()-Lf(r),o=i.getTime()-Lf(i);return Math.round((c-o)/LR)}function Hw(e,t){var r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}function NS(e,t){dn(2,arguments);var r=hn(e),i=hn(t),c=Hw(r,i),o=Math.abs(IR(r,i));r.setDate(r.getDate()-c*o);var a=+(Hw(r,i)===-c),n=c*(o-a);return n===0?0:n}function FR(e,t,r){dn(2,arguments);var i=NS(e,t)/7;return nc(void 0)(i)}var Fd=6e4,Nd=36e5,NR=1e3;function jd(e,t){return dn(2,arguments),hn(e).getTime()-hn(t).getTime()}function jR(e,t,r){dn(2,arguments);var i=jd(e,t)/Nd;return nc(void 0)(i)}function $R(e,t,r){dn(2,arguments);var i=jd(e,t)/Fd;return nc(void 0)(i)}function BR(e,t,r){dn(2,arguments);var i=jd(e,t)/1e3;return nc(void 0)(i)}function zR(e,t){var r;dn(1,arguments);var i=e||{},c=hn(i.start),o=hn(i.end),a=o.getTime();if(!(c.getTime()<=a))throw new RangeError("Invalid interval");var n=[],l=c;l.setHours(0,0,0,0);var f=Number((r=void 0)!==null&&r!==void 0?r:1);if(f<1||isNaN(f))throw new RangeError("`options.step` must be a number greater than 1");for(;l.getTime()<=a;)n.push(hn(l)),l.setDate(l.getDate()+f),l.setHours(0,0,0,0);return n}var qR={};function ao(){return qR}function Yg(e,t){var r,i,c,o,a,n,l,f;dn(1,arguments);var s=ao(),u=sr((r=(i=(c=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(n=a.options)===null||n===void 0?void 0:n.weekStartsOn)!==null&&c!==void 0?c:s.weekStartsOn)!==null&&i!==void 0?i:(l=s.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=hn(e),h=d.getDay(),p=(h=c.getTime()?r+1:t.getTime()>=a.getTime()?r:r-1}function VR(e){dn(1,arguments);var t=BS(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var i=Ml(r);return i}var YR=6048e5;function zS(e){dn(1,arguments);var t=hn(e),r=Ml(t).getTime()-VR(t).getTime();return Math.round(r/YR)+1}function Oo(e,t){var r,i,c,o,a,n,l,f;dn(1,arguments);var s=ao(),u=sr((r=(i=(c=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(n=a.options)===null||n===void 0?void 0:n.weekStartsOn)!==null&&c!==void 0?c:s.weekStartsOn)!==null&&i!==void 0?i:(l=s.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=hn(e),h=d.getUTCDay(),p=(h=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(u+1,0,h),p.setUTCHours(0,0,0,0);var m=Oo(p,t),y=new Date(0);y.setUTCFullYear(u,0,h),y.setUTCHours(0,0,0,0);var v=Oo(y,t);return s.getTime()>=m.getTime()?u+1:s.getTime()>=v.getTime()?u:u-1}function GR(e,t){var r,i,c,o,a,n,l,f;dn(1,arguments);var s=ao(),u=sr((r=(i=(c=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(n=a.options)===null||n===void 0?void 0:n.firstWeekContainsDate)!==null&&c!==void 0?c:s.firstWeekContainsDate)!==null&&i!==void 0?i:(l=s.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&r!==void 0?r:1),d=Ay(e,t),h=new Date(0);h.setUTCFullYear(d,0,u),h.setUTCHours(0,0,0,0);var p=Oo(h,t);return p}var XR=6048e5;function qS(e,t){dn(1,arguments);var r=hn(e),i=Oo(r,t).getTime()-GR(r,t).getTime();return Math.round(i/XR)+1}function Hn(e,t){for(var r=e<0?"-":"",i=Math.abs(e).toString();i.length0?i:1-i;return Hn(r==="yy"?c%100:c,r.length)},M:function(t,r){var i=t.getUTCMonth();return r==="M"?String(i+1):Hn(i+1,2)},d:function(t,r){return Hn(t.getUTCDate(),r.length)},a:function(t,r){var i=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];case"aaaa":default:return i==="am"?"a.m.":"p.m."}},h:function(t,r){return Hn(t.getUTCHours()%12||12,r.length)},H:function(t,r){return Hn(t.getUTCHours(),r.length)},m:function(t,r){return Hn(t.getUTCMinutes(),r.length)},s:function(t,r){return Hn(t.getUTCSeconds(),r.length)},S:function(t,r){var i=r.length,c=t.getUTCMilliseconds(),o=Math.floor(c*Math.pow(10,i-3));return Hn(o,r.length)}},il={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ZR={G:function(t,r,i){var c=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return i.era(c,{width:"abbreviated"});case"GGGGG":return i.era(c,{width:"narrow"});case"GGGG":default:return i.era(c,{width:"wide"})}},y:function(t,r,i){if(r==="yo"){var c=t.getUTCFullYear(),o=c>0?c:1-c;return i.ordinalNumber(o,{unit:"year"})}return zi.y(t,r)},Y:function(t,r,i,c){var o=Ay(t,c),a=o>0?o:1-o;if(r==="YY"){var n=a%100;return Hn(n,2)}return r==="Yo"?i.ordinalNumber(a,{unit:"year"}):Hn(a,r.length)},R:function(t,r){var i=BS(t);return Hn(i,r.length)},u:function(t,r){var i=t.getUTCFullYear();return Hn(i,r.length)},Q:function(t,r,i){var c=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(c);case"QQ":return Hn(c,2);case"Qo":return i.ordinalNumber(c,{unit:"quarter"});case"QQQ":return i.quarter(c,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(c,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(c,{width:"wide",context:"formatting"})}},q:function(t,r,i){var c=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(c);case"qq":return Hn(c,2);case"qo":return i.ordinalNumber(c,{unit:"quarter"});case"qqq":return i.quarter(c,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(c,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(c,{width:"wide",context:"standalone"})}},M:function(t,r,i){var c=t.getUTCMonth();switch(r){case"M":case"MM":return zi.M(t,r);case"Mo":return i.ordinalNumber(c+1,{unit:"month"});case"MMM":return i.month(c,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(c,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(c,{width:"wide",context:"formatting"})}},L:function(t,r,i){var c=t.getUTCMonth();switch(r){case"L":return String(c+1);case"LL":return Hn(c+1,2);case"Lo":return i.ordinalNumber(c+1,{unit:"month"});case"LLL":return i.month(c,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(c,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(c,{width:"wide",context:"standalone"})}},w:function(t,r,i,c){var o=qS(t,c);return r==="wo"?i.ordinalNumber(o,{unit:"week"}):Hn(o,r.length)},I:function(t,r,i){var c=zS(t);return r==="Io"?i.ordinalNumber(c,{unit:"week"}):Hn(c,r.length)},d:function(t,r,i){return r==="do"?i.ordinalNumber(t.getUTCDate(),{unit:"date"}):zi.d(t,r)},D:function(t,r,i){var c=HR(t);return r==="Do"?i.ordinalNumber(c,{unit:"dayOfYear"}):Hn(c,r.length)},E:function(t,r,i){var c=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return i.day(c,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(c,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(c,{width:"short",context:"formatting"});case"EEEE":default:return i.day(c,{width:"wide",context:"formatting"})}},e:function(t,r,i,c){var o=t.getUTCDay(),a=(o-c.weekStartsOn+8)%7||7;switch(r){case"e":return String(a);case"ee":return Hn(a,2);case"eo":return i.ordinalNumber(a,{unit:"day"});case"eee":return i.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(o,{width:"short",context:"formatting"});case"eeee":default:return i.day(o,{width:"wide",context:"formatting"})}},c:function(t,r,i,c){var o=t.getUTCDay(),a=(o-c.weekStartsOn+8)%7||7;switch(r){case"c":return String(a);case"cc":return Hn(a,r.length);case"co":return i.ordinalNumber(a,{unit:"day"});case"ccc":return i.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(o,{width:"narrow",context:"standalone"});case"cccccc":return i.day(o,{width:"short",context:"standalone"});case"cccc":default:return i.day(o,{width:"wide",context:"standalone"})}},i:function(t,r,i){var c=t.getUTCDay(),o=c===0?7:c;switch(r){case"i":return String(o);case"ii":return Hn(o,r.length);case"io":return i.ordinalNumber(o,{unit:"day"});case"iii":return i.day(c,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(c,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(c,{width:"short",context:"formatting"});case"iiii":default:return i.day(c,{width:"wide",context:"formatting"})}},a:function(t,r,i){var c=t.getUTCHours(),o=c/12>=1?"pm":"am";switch(r){case"a":case"aa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,r,i){var c=t.getUTCHours(),o;switch(c===12?o=il.noon:c===0?o=il.midnight:o=c/12>=1?"pm":"am",r){case"b":case"bb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,r,i){var c=t.getUTCHours(),o;switch(c>=17?o=il.evening:c>=12?o=il.afternoon:c>=4?o=il.morning:o=il.night,r){case"B":case"BB":case"BBB":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,r,i){if(r==="ho"){var c=t.getUTCHours()%12;return c===0&&(c=12),i.ordinalNumber(c,{unit:"hour"})}return zi.h(t,r)},H:function(t,r,i){return r==="Ho"?i.ordinalNumber(t.getUTCHours(),{unit:"hour"}):zi.H(t,r)},K:function(t,r,i){var c=t.getUTCHours()%12;return r==="Ko"?i.ordinalNumber(c,{unit:"hour"}):Hn(c,r.length)},k:function(t,r,i){var c=t.getUTCHours();return c===0&&(c=24),r==="ko"?i.ordinalNumber(c,{unit:"hour"}):Hn(c,r.length)},m:function(t,r,i){return r==="mo"?i.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):zi.m(t,r)},s:function(t,r,i){return r==="so"?i.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):zi.s(t,r)},S:function(t,r){return zi.S(t,r)},X:function(t,r,i,c){var o=c._originalDate||t,a=o.getTimezoneOffset();if(a===0)return"Z";switch(r){case"X":return Yw(a);case"XXXX":case"XX":return go(a);case"XXXXX":case"XXX":default:return go(a,":")}},x:function(t,r,i,c){var o=c._originalDate||t,a=o.getTimezoneOffset();switch(r){case"x":return Yw(a);case"xxxx":case"xx":return go(a);case"xxxxx":case"xxx":default:return go(a,":")}},O:function(t,r,i,c){var o=c._originalDate||t,a=o.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+Vw(a,":");case"OOOO":default:return"GMT"+go(a,":")}},z:function(t,r,i,c){var o=c._originalDate||t,a=o.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+Vw(a,":");case"zzzz":default:return"GMT"+go(a,":")}},t:function(t,r,i,c){var o=c._originalDate||t,a=Math.floor(o.getTime()/1e3);return Hn(a,r.length)},T:function(t,r,i,c){var o=c._originalDate||t,a=o.getTime();return Hn(a,r.length)}};function Vw(e,t){var r=e>0?"-":"+",i=Math.abs(e),c=Math.floor(i/60),o=i%60;if(o===0)return r+String(c);var a=t;return r+String(c)+a+Hn(o,2)}function Yw(e,t){if(e%60===0){var r=e>0?"-":"+";return r+Hn(Math.abs(e)/60,2)}return go(e,t)}function go(e,t){var r=t||"",i=e>0?"-":"+",c=Math.abs(e),o=Hn(Math.floor(c/60),2),a=Hn(c%60,2);return i+o+r+a}var Gw=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},WS=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},KR=function(t,r){var i=t.match(/(P+)(p+)?/)||[],c=i[1],o=i[2];if(!o)return Gw(t,r);var a;switch(c){case"P":a=r.dateTime({width:"short"});break;case"PP":a=r.dateTime({width:"medium"});break;case"PPP":a=r.dateTime({width:"long"});break;case"PPPP":default:a=r.dateTime({width:"full"});break}return a.replace("{{date}}",Gw(c,r)).replace("{{time}}",WS(o,r))},R0={p:WS,P:KR},JR=["D","DD"],QR=["YY","YYYY"];function US(e){return JR.indexOf(e)!==-1}function HS(e){return QR.indexOf(e)!==-1}function If(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var eL={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},tL=function(t,r,i){var c,o=eL[t];return typeof o=="string"?c=o:r===1?c=o.one:c=o.other.replace("{{count}}",r.toString()),i!=null&&i.addSuffix?i.comparison&&i.comparison>0?"in "+c:c+" ago":c};function Xg(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,i=e.formats[r]||e.formats[e.defaultWidth];return i}}var nL={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},rL={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},aL={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},iL={date:Xg({formats:nL,defaultWidth:"full"}),time:Xg({formats:rL,defaultWidth:"full"}),dateTime:Xg({formats:aL,defaultWidth:"full"})},oL={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},lL=function(t,r,i,c){return oL[t]};function Ls(e){return function(t,r){var i=r!=null&&r.context?String(r.context):"standalone",c;if(i==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=r!=null&&r.width?String(r.width):o;c=e.formattingValues[a]||e.formattingValues[o]}else{var n=e.defaultWidth,l=r!=null&&r.width?String(r.width):e.defaultWidth;c=e.values[l]||e.values[n]}var f=e.argumentCallback?e.argumentCallback(t):t;return c[f]}}var sL={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},uL={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},cL={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},fL={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dL={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},hL={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},pL=function(t,r){var i=Number(t),c=i%100;if(c>20||c<10)switch(c%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},gL={ordinalNumber:pL,era:Ls({values:sL,defaultWidth:"wide"}),quarter:Ls({values:uL,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ls({values:cL,defaultWidth:"wide"}),day:Ls({values:fL,defaultWidth:"wide"}),dayPeriod:Ls({values:dL,defaultWidth:"wide",formattingValues:hL,defaultFormattingWidth:"wide"})};function Is(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.width,c=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],o=t.match(c);if(!o)return null;var a=o[0],n=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(n)?vL(n,function(u){return u.test(a)}):mL(n,function(u){return u.test(a)}),f;f=e.valueCallback?e.valueCallback(l):l,f=r.valueCallback?r.valueCallback(f):f;var s=t.slice(a.length);return{value:f,rest:s}}}function mL(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function vL(e,t){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},i=t.match(e.matchPattern);if(!i)return null;var c=i[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];a=r.valueCallback?r.valueCallback(a):a;var n=t.slice(c.length);return{value:a,rest:n}}}var bL=/^(\d+)(th|st|nd|rd)?/i,xL=/\d+/i,wL={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},_L={any:[/^b/i,/^(a|c)/i]},TL={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},kL={any:[/1/i,/2/i,/3/i,/4/i]},ML={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},SL={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},CL={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},OL={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},AL={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},PL={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},DL={ordinalNumber:yL({matchPattern:bL,parsePattern:xL,valueCallback:function(t){return parseInt(t,10)}}),era:Is({matchPatterns:wL,defaultMatchWidth:"wide",parsePatterns:_L,defaultParseWidth:"any"}),quarter:Is({matchPatterns:TL,defaultMatchWidth:"wide",parsePatterns:kL,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Is({matchPatterns:ML,defaultMatchWidth:"wide",parsePatterns:SL,defaultParseWidth:"any"}),day:Is({matchPatterns:CL,defaultMatchWidth:"wide",parsePatterns:OL,defaultParseWidth:"any"}),dayPeriod:Is({matchPatterns:AL,defaultMatchWidth:"any",parsePatterns:PL,defaultParseWidth:"any"})},$d={code:"en-US",formatDistance:tL,formatLong:iL,formatRelative:lL,localize:gL,match:DL,options:{weekStartsOn:0,firstWeekContainsDate:1}},EL=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,RL=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,LL=/^'([^]*?)'?$/,IL=/''/g,FL=/[a-zA-Z]/;function VS(e,t,r){var i,c,o,a,n,l,f,s,u,d,h,p,m,y,v,g,b,x;dn(2,arguments);var _=String(t),w=ao(),k=(i=(c=r==null?void 0:r.locale)!==null&&c!==void 0?c:w.locale)!==null&&i!==void 0?i:$d,T=sr((o=(a=(n=(l=r==null?void 0:r.firstWeekContainsDate)!==null&&l!==void 0?l:r==null||(f=r.locale)===null||f===void 0||(s=f.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&n!==void 0?n:w.firstWeekContainsDate)!==null&&a!==void 0?a:(u=w.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=sr((h=(p=(m=(y=r==null?void 0:r.weekStartsOn)!==null&&y!==void 0?y:r==null||(v=r.locale)===null||v===void 0||(g=v.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&m!==void 0?m:w.weekStartsOn)!==null&&p!==void 0?p:(b=w.locale)===null||b===void 0||(x=b.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&h!==void 0?h:0);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var S=hn(e);if(!jS(S))throw new RangeError("Invalid time value");var C=Lf(S),P=$S(S,C),D={firstWeekContainsDate:T,weekStartsOn:M,locale:k,_originalDate:S},O=_.match(RL).map(function(R){var F=R[0];if(F==="p"||F==="P"){var A=R0[F];return A(R,k.formatLong)}return R}).join("").match(EL).map(function(R){if(R==="''")return"'";var F=R[0];if(F==="'")return NL(R);var A=ZR[F];if(A)return!(r!=null&&r.useAdditionalWeekYearTokens)&&HS(R)&&If(R,t,String(e)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&US(R)&&If(R,t,String(e)),A(P,R,k.localize,D);if(F.match(FL))throw new RangeError("Format string contains an unescaped latin alphabet character `"+F+"`");return R}).join("");return O}function NL(e){var t=e.match(LL);return t?t[1].replace(IL,"'"):e}const jL=Object.freeze(Object.defineProperty({__proto__:null,default:VS},Symbol.toStringTag,{value:"Module"}));function $L(e){dn(1,arguments);var t=hn(e),r=t.getDate();return r}function BL(e){dn(1,arguments);var t=hn(e),r=t.getDay();return r}function YS(e){dn(1,arguments);var t=hn(e),r=t.getFullYear(),i=t.getMonth(),c=new Date(0);return c.setFullYear(r,i+1,0),c.setHours(0,0,0,0),c.getDate()}function zL(e){dn(1,arguments);var t=hn(e),r=t.getHours();return r}function qL(e){dn(1,arguments);var t=hn(e),r=t.getMinutes();return r}function WL(e){dn(1,arguments);var t=hn(e),r=t.getMonth();return r}function UL(e){dn(1,arguments);var t=hn(e),r=t.getSeconds();return r}function HL(e){return dn(1,arguments),hn(e).getFullYear()}function $c(e,t){dn(2,arguments);var r=hn(e),i=hn(t);return r.getTime()>i.getTime()}function ol(e,t){dn(2,arguments);var r=hn(e),i=hn(t);return r.getTime()e.length)&&(t=e.length);for(var r=0,i=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(f){throw f},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,n;return{s:function(){r=r.call(e)},n:function(){var f=r.next();return o=f.done,f},e:function(f){a=!0,n=f},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(a)throw n}}}}function JL(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function Qn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y9(e,t)}function Ff(e){return Ff=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ff(e)}function QL(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function eI(e,t){if(t&&(Si(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bn(e)}function er(e){var t=QL();return function(){var i=Ff(e),c;if(t){var o=Ff(this).constructor;c=Reflect.construct(i,arguments,o)}else c=i.apply(this,arguments);return eI(this,c)}}function Zn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tI(e,t){if(Si(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(Si(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GS(e){var t=tI(e,"string");return Si(t)==="symbol"?t:String(t)}function nI(e,t){for(var r=0;r0,i=r?t:1-t,c;if(i<=50)c=e||100;else{var o=i+50,a=Math.floor(o/100)*100,n=e>=o%100;c=e+a-(n?100:0)}return r?c:1-c}function JS(e){return e%400===0||e%4===0&&e%100!==0}var lI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a0}},{key:"set",value:function(c,o,a){var n=c.getUTCFullYear();if(a.isTwoDigitYear){var l=KS(a.year,n);return c.setUTCFullYear(l,0,1),c.setUTCHours(0,0,0,0),c}var f=!("era"in o)||o.era===1?a.year:1-a.year;return c.setUTCFullYear(f,0,1),c.setUTCHours(0,0,0,0),c}}]),r}(or),sI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a0}},{key:"set",value:function(c,o,a,n){var l=Ay(c,n);if(a.isTwoDigitYear){var f=KS(a.year,l);return c.setUTCFullYear(f,0,n.firstWeekContainsDate),c.setUTCHours(0,0,0,0),Oo(c,n)}var s=!("era"in o)||o.era===1?a.year:1-a.year;return c.setUTCFullYear(s,0,n.firstWeekContainsDate),c.setUTCHours(0,0,0,0),Oo(c,n)}}]),r}(or),uI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=1&&o<=4}},{key:"set",value:function(c,o,a){return c.setUTCMonth((a-1)*3,1),c.setUTCHours(0,0,0,0),c}}]),r}(or),dI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=1&&o<=4}},{key:"set",value:function(c,o,a){return c.setUTCMonth((a-1)*3,1),c.setUTCHours(0,0,0,0),c}}]),r}(or),hI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=0&&o<=11}},{key:"set",value:function(c,o,a){return c.setUTCMonth(a,1),c.setUTCHours(0,0,0,0),c}}]),r}(or),pI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=0&&o<=11}},{key:"set",value:function(c,o,a){return c.setUTCMonth(a,1),c.setUTCHours(0,0,0,0),c}}]),r}(or);function gI(e,t,r){dn(2,arguments);var i=hn(e),c=sr(t),o=qS(i,r)-c;return i.setUTCDate(i.getUTCDate()-o*7),i}var mI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=1&&o<=53}},{key:"set",value:function(c,o,a,n){return Oo(gI(c,a,n),n)}}]),r}(or);function vI(e,t){dn(2,arguments);var r=hn(e),i=sr(t),c=zS(r)-i;return r.setUTCDate(r.getUTCDate()-c*7),r}var yI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=1&&o<=53}},{key:"set",value:function(c,o,a){return Ml(vI(c,a))}}]),r}(or),bI=[31,28,31,30,31,30,31,31,30,31,30,31],xI=[31,29,31,30,31,30,31,31,30,31,30,31],wI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=1&&o<=xI[l]:o>=1&&o<=bI[l]}},{key:"set",value:function(c,o,a){return c.setUTCDate(a),c.setUTCHours(0,0,0,0),c}}]),r}(or),_I=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(c,o,a){return c.setUTCMonth(0,a),c.setUTCHours(0,0,0,0),c}}]),r}(or);function Dy(e,t,r){var i,c,o,a,n,l,f,s;dn(2,arguments);var u=ao(),d=sr((i=(c=(o=(a=r==null?void 0:r.weekStartsOn)!==null&&a!==void 0?a:r==null||(n=r.locale)===null||n===void 0||(l=n.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:u.weekStartsOn)!==null&&c!==void 0?c:(f=u.locale)===null||f===void 0||(s=f.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=hn(e),p=sr(t),m=h.getUTCDay(),y=p%7,v=(y+7)%7,g=(v=0&&o<=6}},{key:"set",value:function(c,o,a,n){return c=Dy(c,a,n),c.setUTCHours(0,0,0,0),c}}]),r}(or),kI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=0&&o<=6}},{key:"set",value:function(c,o,a,n){return c=Dy(c,a,n),c.setUTCHours(0,0,0,0),c}}]),r}(or),MI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=0&&o<=6}},{key:"set",value:function(c,o,a,n){return c=Dy(c,a,n),c.setUTCHours(0,0,0,0),c}}]),r}(or);function SI(e,t){dn(2,arguments);var r=sr(t);r%7===0&&(r=r-7);var i=1,c=hn(e),o=c.getUTCDay(),a=r%7,n=(a+7)%7,l=(n=1&&o<=7}},{key:"set",value:function(c,o,a){return c=SI(c,a),c.setUTCHours(0,0,0,0),c}}]),r}(or),OI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=1&&o<=12}},{key:"set",value:function(c,o,a){var n=c.getUTCHours()>=12;return n&&a<12?c.setUTCHours(a+12,0,0,0):!n&&a===12?c.setUTCHours(0,0,0,0):c.setUTCHours(a,0,0,0),c}}]),r}(or),EI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=0&&o<=23}},{key:"set",value:function(c,o,a){return c.setUTCHours(a,0,0,0),c}}]),r}(or),RI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=0&&o<=11}},{key:"set",value:function(c,o,a){var n=c.getUTCHours()>=12;return n&&a<12?c.setUTCHours(a+12,0,0,0):c.setUTCHours(a,0,0,0),c}}]),r}(or),LI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=1&&o<=24}},{key:"set",value:function(c,o,a){var n=a<=24?a%24:a;return c.setUTCHours(n,0,0,0),c}}]),r}(or),II=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=0&&o<=59}},{key:"set",value:function(c,o,a){return c.setUTCMinutes(a,0,0),c}}]),r}(or),FI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=0&&o<=59}},{key:"set",value:function(c,o,a){return c.setUTCSeconds(a,0),c}}]),r}(or),NI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=sr((p=(m=(y=(v=i==null?void 0:i.weekStartsOn)!==null&&v!==void 0?v:i==null||(g=i.locale)===null||g===void 0||(b=g.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&y!==void 0?y:T.weekStartsOn)!==null&&m!==void 0?m:(x=T.locale)===null||x===void 0||(_=x.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&p!==void 0?p:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(k==="")return w===""?hn(r):new Date(NaN);var P={firstWeekContainsDate:S,weekStartsOn:C,locale:M},D=[new iI],O=k.match(UI).map(function(H){var V=H[0];if(V in R0){var te=R0[V];return te(H,M.formatLong)}return H}).join("").match(WI),R=[],F=Kw(O),A;try{var z=function(){var V=A.value;!(i!=null&&i.useAdditionalWeekYearTokens)&&HS(V)&&If(V,k,e),!(i!=null&&i.useAdditionalDayOfYearTokens)&&US(V)&&If(V,k,e);var te=V[0],ee=qI[te];if(ee){var U=ee.incompatibleTokens;if(Array.isArray(U)){var Q=R.find(function(Z){return U.includes(Z.token)||Z.token===te});if(Q)throw new RangeError("The format string mustn't contain `".concat(Q.fullToken,"` and `").concat(V,"` at the same time"))}else if(ee.incompatibleTokens==="*"&&R.length>0)throw new RangeError("The format string mustn't contain `".concat(V,"` and any other token at the same time"));R.push({token:te,fullToken:V});var Y=ee.run(w,V,M.match,P);if(!Y)return{v:new Date(NaN)};D.push(Y.setter),w=Y.rest}else{if(te.match(GI))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");if(V==="''"?V="'":te==="'"&&(V=ZI(V)),w.indexOf(V)===0)w=w.slice(V.length);else return{v:new Date(NaN)}}};for(F.s();!(A=F.n()).done;){var B=z();if(Si(B)==="object")return B.v}}catch(H){F.e(H)}finally{F.f()}if(w.length>0&&YI.test(w))return new Date(NaN);var $=D.map(function(H){return H.priority}).sort(function(H,V){return V-H}).filter(function(H,V,te){return te.indexOf(H)===V}).map(function(H){return D.filter(function(V){return V.priority===H}).sort(function(V,te){return te.subPriority-V.subPriority})}).map(function(H){return H[0]}),j=hn(r);if(isNaN(j.getTime()))return new Date(NaN);var N=$S(j,Lf(j)),E={},W=Kw($),G;try{for(W.s();!(G=W.n()).done;){var L=G.value;if(!L.validate(N,P))return new Date(NaN);var q=L.set(N,E,P);Array.isArray(q)?(N=q[0],JL(E,q[1])):N=q}}catch(H){W.e(H)}finally{W.f()}return N}function ZI(e){return e.match(HI)[1].replace(VI,"'")}function KI(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return r.setDate(i),r}function JI(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return r.setHours(i),r}function QI(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return r.setMinutes(i),r}function eF(e,t){dn(2,arguments);var r=hn(e),i=sr(t),c=r.getFullYear(),o=r.getDate(),a=new Date(0);a.setFullYear(c,i,15),a.setHours(0,0,0,0);var n=YS(a);return r.setMonth(i,Math.min(o,n)),r}function tF(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return r.setSeconds(i),r}function nF(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(i),r)}function Bc(e){dn(1,arguments);var t=hn(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Zg(e,t){var r,i,c,o,a,n,l,f;dn(1,arguments);var s=ao(),u=sr((r=(i=(c=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(n=a.options)===null||n===void 0?void 0:n.weekStartsOn)!==null&&c!==void 0?c:s.weekStartsOn)!==null&&i!==void 0?i:(l=s.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=hn(e),h=d.getDay(),p=(h2)return t;if(/:/.test(r[0])?i=r[0]:(t.date=r[0],i=r[1],qc.timeZoneDelimiter.test(t.date)&&(t.date=e.split(qc.timeZoneDelimiter)[0],i=e.substr(t.date.length,e.length))),i){var c=qc.timezone.exec(i);c?(t.time=i.replace(c[1],""),t.timezone=c[1]):t.time=i}return t}function lF(e,t){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),i=e.match(r);if(!i)return{year:NaN,restDateString:""};var c=i[1]?parseInt(i[1]):null,o=i[2]?parseInt(i[2]):null;return{year:o===null?c:o*100,restDateString:e.slice((i[1]||i[2]).length)}}function sF(e,t){if(t===null)return new Date(NaN);var r=e.match(rF);if(!r)return new Date(NaN);var i=!!r[4],c=Fs(r[1]),o=Fs(r[2])-1,a=Fs(r[3]),n=Fs(r[4]),l=Fs(r[5])-1;if(i)return gF(t,n,l)?fF(t,n,l):new Date(NaN);var f=new Date(0);return!hF(t,o,a)||!pF(t,c)?new Date(NaN):(f.setUTCFullYear(t,o,Math.max(c,a)),f)}function Fs(e){return e?parseInt(e):1}function uF(e){var t=e.match(aF);if(!t)return NaN;var r=Kg(t[1]),i=Kg(t[2]),c=Kg(t[3]);return mF(r,i,c)?r*Nd+i*Fd+c*1e3:NaN}function Kg(e){return e&&parseFloat(e.replace(",","."))||0}function cF(e){if(e==="Z")return 0;var t=e.match(iF);if(!t)return 0;var r=t[1]==="+"?-1:1,i=parseInt(t[2]),c=t[3]&&parseInt(t[3])||0;return vF(i,c)?r*(i*Nd+c*Fd):NaN}function fF(e,t,r){var i=new Date(0);i.setUTCFullYear(e,0,4);var c=i.getUTCDay()||7,o=(t-1)*7+r+1-c;return i.setUTCDate(i.getUTCDate()+o),i}var dF=[31,null,31,30,31,30,31,31,30,31,30,31];function e4(e){return e%400===0||e%4===0&&e%100!==0}function hF(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(dF[t]||(e4(e)?29:28))}function pF(e,t){return t>=1&&t<=(e4(e)?366:365)}function gF(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function mF(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function vF(e,t){return t>=0&&t<=59}const yF=Object.freeze(Object.defineProperty({__proto__:null,default:QS},Symbol.toStringTag,{value:"Module"}));function bF(e,t){var r,i;dn(1,arguments);var c=hn(e);if(isNaN(c.getTime()))throw new RangeError("Invalid time value");var o=String((r=t==null?void 0:t.format)!==null&&r!==void 0?r:"extended"),a=String((i=t==null?void 0:t.representation)!==null&&i!==void 0?i:"complete");if(o!=="extended"&&o!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(a!=="date"&&a!=="time"&&a!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var n="",l="",f=o==="extended"?"-":"",s=o==="extended"?":":"";if(a!=="time"){var u=Hn(c.getDate(),2),d=Hn(c.getMonth()+1,2),h=Hn(c.getFullYear(),4);n="".concat(h).concat(f).concat(d).concat(f).concat(u)}if(a!=="date"){var p=c.getTimezoneOffset();if(p!==0){var m=Math.abs(p),y=Hn(Math.floor(m/60),2),v=Hn(m%60,2),g=p<0?"+":"-";l="".concat(g).concat(y,":").concat(v)}else l="Z";var b=Hn(c.getHours(),2),x=Hn(c.getMinutes(),2),_=Hn(c.getSeconds(),2),w=n===""?"":"T",k=[b,x,_].join(s);n="".concat(n).concat(w).concat(k).concat(l)}return n}function xF(e,t){dn(2,arguments);var r=hn(e).getTime(),i=hn(t.start).getTime(),c=hn(t.end).getTime();if(!(i<=c))throw new RangeError("Invalid interval");return r>=i&&r<=c}var L0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(l,f){switch(l){case"P":return f.date({width:"short"});case"PP":return f.date({width:"medium"});case"PPP":return f.date({width:"long"});case"PPPP":default:return f.date({width:"full"})}},i=function(l,f){switch(l){case"p":return f.time({width:"short"});case"pp":return f.time({width:"medium"});case"ppp":return f.time({width:"long"});case"pppp":default:return f.time({width:"full"})}},c=function(l,f){var s=l.match(/(P+)(p+)?/)||[],u=s[1],d=s[2];if(!d)return r(l,f);var h;switch(u){case"P":h=f.dateTime({width:"short"});break;case"PP":h=f.dateTime({width:"medium"});break;case"PPP":h=f.dateTime({width:"long"});break;case"PPPP":default:h=f.dateTime({width:"full"});break}return h.replace("{{date}}",r(u,f)).replace("{{time}}",i(d,f))},o={p:i,P:c},a=o;t.default=a,e.exports=t.default})(L0,L0.exports);var wF=L0.exports;const t4=ir(wF),_F={dayOfMonth:"d",fullDate:"PP",fullDateWithWeekday:"PPPP",fullDateTime:"PP p",fullDateTime12h:"PP hh:mm aaa",fullDateTime24h:"PP HH:mm",fullTime:"p",fullTime12h:"hh:mm aaa",fullTime24h:"HH:mm",hours12h:"hh",hours24h:"HH",keyboardDate:"P",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aaa",keyboardDateTime24h:"P HH:mm",minutes:"mm",month:"LLLL",monthAndDate:"MMMM d",monthAndYear:"LLLL yyyy",monthShort:"MMM",weekday:"EEEE",weekdayShort:"EEE",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",seconds:"ss",shortDate:"MMM d",year:"yyyy"};class TF{constructor({locale:t,formats:r}={}){this.lib="date-fns",this.is12HourCycleInCurrentLocale=()=>{var i;return this.locale?/a/.test((i=this.locale.formatLong)===null||i===void 0?void 0:i.time()):!0},this.getFormatHelperText=i=>{var c,o;const a=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,n=this.locale||$d;return(o=(c=i.match(a))===null||c===void 0?void 0:c.map(l=>{const f=l[0];if(f==="p"||f==="P"){const s=t4[f];return s(l,n.formatLong,{})}return l}).join("").replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase())!==null&&o!==void 0?o:i},this.parseISO=i=>QS(i),this.toISO=i=>bF(i,{format:"extended"}),this.getCurrentLocaleCode=()=>{var i;return((i=this.locale)===null||i===void 0?void 0:i.code)||"en-US"},this.addSeconds=(i,c)=>_R(i,c),this.addMinutes=(i,c)=>kR(i,c),this.addHours=(i,c)=>SR(i,c),this.addDays=(i,c)=>P0(i,c),this.addWeeks=(i,c)=>CR(i,c),this.addMonths=(i,c)=>pf(i,c),this.addYears=(i,c)=>Ww(i,c),this.isValid=i=>jS(this.date(i)),this.getDiff=(i,c,o)=>{var a;const n=(a=this.date(c))!==null&&a!==void 0?a:i;if(!this.isValid(n))return 0;switch(o){case"years":return AR(i,n);case"quarters":return RR(i,n);case"months":return FS(i,n);case"weeks":return FR(i,n);case"days":return NS(i,n);case"hours":return jR(i,n);case"minutes":return $R(i,n);case"seconds":return BR(i,n);default:return jd(i,n)}},this.isAfter=(i,c)=>$c(i,c),this.isBefore=(i,c)=>ol(i,c),this.startOfDay=i=>kl(i),this.endOfDay=i=>D0(i),this.getHours=i=>zL(i),this.setHours=(i,c)=>JI(i,c),this.setMinutes=(i,c)=>QI(i,c),this.getSeconds=i=>UL(i),this.setSeconds=(i,c)=>tF(i,c),this.isSameDay=(i,c)=>YL(i,c),this.isSameMonth=(i,c)=>XL(i,c),this.isSameYear=(i,c)=>GL(i,c),this.isSameHour=(i,c)=>ZL(i,c),this.startOfYear=i=>zc(i),this.endOfYear=i=>Gg(i),this.startOfMonth=i=>Bc(i),this.endOfMonth=i=>E0(i),this.startOfWeek=i=>Zg(i,{locale:this.locale}),this.endOfWeek=i=>Yg(i,{locale:this.locale}),this.getYear=i=>HL(i),this.setYear=(i,c)=>nF(i,c),this.date=i=>typeof i>"u"?new Date:i===null?null:new Date(i),this.toJsDate=i=>i,this.parse=(i,c)=>i===""?null:XI(i,c,new Date,{locale:this.locale}),this.format=(i,c)=>this.formatByString(i,this.formats[c]),this.formatByString=(i,c)=>VS(i,c,{locale:this.locale}),this.isEqual=(i,c)=>i===null&&c===null?!0:VL(i,c),this.isNull=i=>i===null,this.isAfterDay=(i,c)=>$c(i,D0(c)),this.isBeforeDay=(i,c)=>ol(i,kl(c)),this.isBeforeYear=(i,c)=>ol(i,zc(c)),this.isAfterYear=(i,c)=>$c(i,Gg(c)),this.isWithinRange=(i,[c,o])=>xF(i,{start:c,end:o}),this.formatNumber=i=>i,this.getMinutes=i=>qL(i),this.getDate=i=>$L(i),this.setDate=(i,c)=>KI(i,c),this.getMonth=i=>WL(i),this.getDaysInMonth=i=>YS(i),this.setMonth=(i,c)=>eF(i,c),this.getMeridiemText=i=>i==="am"?"AM":"PM",this.getNextMonth=i=>pf(i,1),this.getPreviousMonth=i=>pf(i,-1),this.getMonthArray=i=>{const o=[zc(i)];for(;o.length<12;){const a=o[o.length-1];o.push(this.getNextMonth(a))}return o},this.mergeDateAndTime=(i,c)=>this.setSeconds(this.setMinutes(this.setHours(i,this.getHours(c)),this.getMinutes(c)),this.getSeconds(c)),this.getWeekdays=()=>{const i=new Date;return zR({start:Zg(i,{locale:this.locale}),end:Yg(i,{locale:this.locale})}).map(c=>this.formatByString(c,"EEEEEE"))},this.getWeekArray=i=>{const c=Zg(Bc(i),{locale:this.locale}),o=Yg(E0(i),{locale:this.locale});let a=0,n=c;const l=[];let f=null;for(;ol(n,o);){const s=Math.floor(a/7);l[s]=l[s]||[];const u=BL(n);f!==u&&(f=u,l[s].push(n),a+=1),n=P0(n,1)}return l},this.getYearRange=(i,c)=>{const o=zc(i),a=Gg(c),n=[];let l=o;for(;ol(l,a);)n.push(l),l=Ww(l,1);return n},this.locale=t,this.formats=Object.assign({},_F,r)}isBeforeMonth(t,r){return ol(t,Bc(r))}isAfterMonth(t,r){return $c(t,Bc(r))}}const kF={y:"year",yy:"year",yyy:"year",yyyy:"year",MMMM:"month",MM:"month",DD:"day",d:"day",dd:"day",H:"hour",HH:"hour",h:"hour",hh:"hour",mm:"minute",ss:"second",a:"am-pm",aa:"am-pm",aaa:"am-pm"};class MF extends TF{constructor(...t){super(...t),this.formatTokenMap=kF,this.expandFormat=r=>{const i=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return r.match(i).map(c=>{const o=c[0];if(o==="p"||o==="P"){const a=t4[o],n=this.locale||$d;return a(c,n.formatLong,{})}return c}).join("")},this.getFormatHelperText=r=>this.expandFormat(r).replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase()}}const SF=Object.freeze(Object.defineProperty({__proto__:null,AdapterDateFns:MF},Symbol.toStringTag,{value:"Module"})),n4=qn(SF);function r4(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;te.indexOf(r)!==-1):e.indexOf(t)!==-1}const a4=(e,t)=>r=>{(r.key==="Enter"||r.key===" ")&&(e(r),r.preventDefault(),r.stopPropagation())},i4=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?i4(t.shadowRoot):t:null};function CF(e){return _r("PrivatePickersMonth",e)}const I0=wr("PrivatePickersMonth",["root","selected"]),OF=["disabled","onSelect","selected","value","tabIndex","hasFocus","onFocus","onBlur"],AF=e=>{const{classes:t,selected:r}=e;return Tr({root:["root",r&&"selected"]},CF,t)},PF=wn(Cr,{name:"PrivatePickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${I0.selected}`]:t.selected}]})(({theme:e})=>Gt({flex:"1 0 33.33%",display:"flex",alignItems:"center",justifyContent:"center",color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:Ef(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{pointerEvents:"none",color:e.palette.text.secondary},[`&.${I0.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),Jw=()=>{},DF=e=>{const{disabled:t,onSelect:r,selected:i,value:c,tabIndex:o,hasFocus:a,onFocus:n=Jw,onBlur:l=Jw}=e,f=Vn(e,OF),s=AF(e),u=()=>{r(c)},d=$e.useRef(null);return b9(()=>{if(a){var h;(h=d.current)==null||h.focus()}},[a]),je.jsx(PF,Gt({ref:d,component:"button",type:"button",className:s.root,tabIndex:o,onClick:u,onKeyDown:a4(u),color:i?"primary":void 0,variant:i?"h5":"subtitle1",disabled:t,onFocus:h=>n(h,c),onBlur:h=>l(h,c)},f))},Rr=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:Gt({},e)}}}}),EF={previousMonth:"Vorige maand",nextMonth:"Volgende maand",openPreviousView:"open vorige view",openNextView:"open volgende view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"jaarweergave is geopend, schakel over naar kalenderweergave":"kalenderweergave is geopend, switch naar jaarweergave",start:"Start",end:"Einde",cancelButtonLabel:"Annuleren",clearButtonLabel:"Resetten",okButtonLabel:"OK",todayButtonLabel:"Vandaag",clockLabelText:(e,t,r)=>`Selecteer ${e}. ${t===null?"Geen tijd geselecteerd":`Geselecteerde tijd is ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} uren`,minutesClockNumberText:e=>`${e} minuten`,secondsClockNumberText:e=>`${e} seconden`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Kies datum, geselecteerde datum is ${t.format(t.date(e),"fullDate")}`:"Kies datum",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Kies tijd, geselecteerde tijd is ${t.format(t.date(e),"fullTime")}`:"Kies tijd",timeTableLabel:"kies tijd",dateTableLabel:"kies datum"},RF=Rr(EF),LF={previousMonth:"Poprzedni miesiąc",nextMonth:"Następny miesiąc",openPreviousView:"otwórz poprzedni widok",openNextView:"otwórz następny widok",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"otwarty jest widok roku, przełącz na widok kalendarza":"otwarty jest widok kalendarza, przełącz na widok roku",start:"Początek",end:"Koniec",cancelButtonLabel:"Anuluj",clearButtonLabel:"Wyczyść",okButtonLabel:"Zatwierdź",todayButtonLabel:"Dzisiaj",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"Nie wybrano czasu":`Wybrany czas to ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} godzin`,minutesClockNumberText:e=>`${e} minut`,secondsClockNumberText:e=>`${e} sekund`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Wybierz datę, obecnie wybrana data to ${t.format(t.date(e),"fullDate")}`:"Wybierz datę",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Wybierz czas, obecnie wybrany czas to ${t.format(t.date(e),"fullTime")}`:"Wybierz czas",timeTableLabel:"wybierz czas",dateTableLabel:"wybierz datę"},IF=Rr(LF),FF={previousMonth:"Mês anterior",nextMonth:"Próximo mês",openPreviousView:"Abrir próxima seleção",openNextView:"Abrir seleção anterior",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"Seleção de ano está aberta, alternando para seleção de calendário":"Seleção de calendários está aberta, alternando para seleção de ano",start:"Início",end:"Fim",cancelButtonLabel:"Cancelar",clearButtonLabel:"Limpar",okButtonLabel:"OK",todayButtonLabel:"Hoje",datePickerDefaultToolbarTitle:"Selecione a data",dateTimePickerDefaultToolbarTitle:"Selecione data e hora",timePickerDefaultToolbarTitle:"Selecione a hora",dateRangePickerDefaultToolbarTitle:"Selecione o intervalo entre datas",clockLabelText:(e,t,r)=>`Selecione ${e}. ${t===null?"Hora não selecionada":`Selecionado a hora ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} horas`,minutesClockNumberText:e=>`${e} minutos`,secondsClockNumberText:e=>`${e} segundos`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Escolha uma data, data selecionada ${t.format(t.date(e),"fullDate")}`:"Escolha uma data",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Escolha uma hora, hora selecionada ${t.format(t.date(e),"fullTime")}`:"Escolha uma hora",timeTableLabel:"escolha uma hora",dateTableLabel:"escolha uma data"},NF=Rr(FF),jF={previousMonth:"Önceki ay",nextMonth:"Sonraki ay",openPreviousView:"sonraki görünüm",openNextView:"önceki görünüm",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"yıl görünümü açık, takvim görünümüne geç":"takvim görünümü açık, yıl görünümüne geç",inputModeToggleButtonAriaLabel:(e,t)=>e?`metin girişi görünümü açık, şuraya gidin: ${t} görünümü`:`${t} görünüm açık, metin girişi görünümüne gidin`,start:"Başlangıç",end:"Bitiş",cancelButtonLabel:"iptal",clearButtonLabel:"Temizle",okButtonLabel:"Tamam",todayButtonLabel:"Bugün",datePickerDefaultToolbarTitle:"Tarih Seç",dateTimePickerDefaultToolbarTitle:"Tarih & Saat seç",timePickerDefaultToolbarTitle:"Saat seç",dateRangePickerDefaultToolbarTitle:"Tarih aralığı seçin",clockLabelText:(e,t,r)=>`${e} seç. ${t===null?"Zaman seçilmedi":`Seçilen zaman: ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} saat`,minutesClockNumberText:e=>`${e} dakika`,secondsClockNumberText:e=>`${e} saniye`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Tarih seçin, seçilen tarih: ${t.format(e,"fullDate")}`:"Tarih seç",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Saat seçin, seçilen saat: ${t.format(e,"fullTime")}`:"Saat seç",timeTableLabel:"saat seç",dateTableLabel:"tarih seç"},$F=Rr(jF),Wc={hours:"Stunden",minutes:"Minuten",seconds:"Sekunden"},Qw={calendar:"Kalenderansicht",clock:"Uhransicht"},BF={previousMonth:"Letzter Monat",nextMonth:"Nächster Monat",openPreviousView:"Letzte Ansicht öffnen",openNextView:"Nächste Ansicht öffnen",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"Jahresansicht ist geöffnet, zur Kalenderansicht wechseln":"Kalenderansicht ist geöffnet, zur Jahresansicht wechseln",inputModeToggleButtonAriaLabel:(e,t)=>e?`Texteingabeansicht ist geöffnet, zur ${Qw[t]} wechseln`:`${Qw[t]} ist geöffnet, zur Texteingabeansicht wechseln`,start:"Beginn",end:"Ende",cancelButtonLabel:"Abbrechen",clearButtonLabel:"Löschen",okButtonLabel:"OK",todayButtonLabel:"Heute",datePickerDefaultToolbarTitle:"Datum auswählen",dateTimePickerDefaultToolbarTitle:"Datum & Uhrzeit auswählen",timePickerDefaultToolbarTitle:"Uhrzeit auswählen",dateRangePickerDefaultToolbarTitle:"Datumsbereich auswählen",clockLabelText:(e,t,r)=>{var i;return`${(i=Wc[e])!=null?i:e} auswählen. ${t===null?"Keine Uhrzeit ausgewählt":`Gewählte Uhrzeit ist ${r.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} ${Wc.hours}`,minutesClockNumberText:e=>`${e} ${Wc.minutes}`,secondsClockNumberText:e=>`${e} ${Wc.seconds}`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Datum auswählen, gewähltes Datum ist ${t.format(t.date(e),"fullDate")}`:"Datum auswählen",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Uhrzeit auswählen, gewählte Uhrzeit ist ${t.format(t.date(e),"fullTime")}`:"Uhrzeit auswählen",timeTableLabel:"Uhrzeit auswählen",dateTableLabel:"Datum auswählen"},zF=Rr(BF),qF={hours:"las horas",minutes:"los minutos",seconds:"los segundos"},WF={previousMonth:"Último mes",nextMonth:"Próximo mes",openPreviousView:"abrir la última vista",openNextView:"abrir la siguiente vista",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"la vista del año está abierta, cambie a la vista de calendario":"la vista de calendario está abierta, cambie a la vista del año",inputModeToggleButtonAriaLabel:(e,t)=>e?`la vista de entrada de texto está abierta, ir a la vista ${t}`:`la vista ${t} está abierta, ir a la vista de entrada de texto`,start:"Empezar",end:"Terminar",cancelButtonLabel:"Cancelar",clearButtonLabel:"Limpiar",okButtonLabel:"OK",todayButtonLabel:"Hoy",datePickerDefaultToolbarTitle:"Seleccionar fecha",dateTimePickerDefaultToolbarTitle:"Seleccionar fecha & hora",timePickerDefaultToolbarTitle:"Seleccionar hora",dateRangePickerDefaultToolbarTitle:"Seleccionar rango de fecha",clockLabelText:(e,t,r)=>`Seleccione ${qF[e]}. ${t===null?"Sin tiempo seleccionado":`El tiempo seleccionado es ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} horas`,minutesClockNumberText:e=>`${e} minutos`,secondsClockNumberText:e=>`${e} segundos`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Elige la fecha, la fecha elegida es ${t.format(t.date(e),"fullDate")}`:"Elige la fecha",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Elige la hora, la hora elegido es ${t.format(t.date(e),"fullTime")}`:"Elige la hora",timeTableLabel:"elige la fecha",dateTableLabel:"elige la hora"},UF=Rr(WF),HF={previousMonth:"ماه گذشته",nextMonth:"ماه آینده",openPreviousView:"نمای قبلی",openNextView:"نمای بعدی",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"نمای سال باز است، رفتن به نمای تقویم":"نمای تقویم باز است، رفتن به نمای سال",inputModeToggleButtonAriaLabel:(e,t)=>e?`نمای ورودی متن باز است، رفتن به نمای ${t}`:`نمای ${t} باز است، رفتن به نمای ورودی متن`,start:"شروع",end:"پایان",cancelButtonLabel:"لغو",clearButtonLabel:"پاک کردن",okButtonLabel:"اوکی",todayButtonLabel:"امروز",datePickerDefaultToolbarTitle:"تاریخ را انتخاب کنید",dateTimePickerDefaultToolbarTitle:"تاریخ و ساعت را انتخاب کنید",timePickerDefaultToolbarTitle:"ساعت را انتخاب کنید",dateRangePickerDefaultToolbarTitle:"محدوده تاریخ را انتخاب کنید",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"هیچ ساعتی انتخاب نشده است":`ساعت انتخاب ${r.format(t,"fullTime")} می باشد`}`,hoursClockNumberText:e=>`${e} ساعت ها`,minutesClockNumberText:e=>`${e} دقیقه ها`,secondsClockNumberText:e=>`${e} ثانیه ها`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`تاریخ را انتخاب کنید، تاریخ انتخاب شده ${t.format(t.date(e),"fullDate")} می باشد`:"تاریخ را انتخاب کنید",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`ساعت را انتخاب کنید، ساعت انتخاب شده ${t.format(t.date(e),"fullTime")} می باشد`:"ساعت را انتخاب کنید",timeTableLabel:"انتخاب تاریخ",dateTableLabel:"انتخاب ساعت"},VF=Rr(HF),YF={hours:"tunnit",minutes:"minuutit",seconds:"sekuntit"},e_={calendar:"kalenteri",clock:"kello"},GF={previousMonth:"Edellinen kuukausi",nextMonth:"Seuraava kuukausi",openPreviousView:"avaa edellinen kuukausi",openNextView:"avaa seuraava kuukausi",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"vuosinäkymä on auki, vaihda kalenterinäkymään":"kalenterinäkymä on auki, vaihda vuosinäkymään",inputModeToggleButtonAriaLabel:(e,t)=>e?`tekstikenttä on auki, mene ${e_[t]}näkymään`:`${e_[t]}näkymä on auki, mene tekstikenttään`,start:"Alku",end:"Loppu",cancelButtonLabel:"Peruuta",clearButtonLabel:"Tyhjennä",okButtonLabel:"OK",todayButtonLabel:"Tänään",datePickerDefaultToolbarTitle:"Valitse päivä",dateTimePickerDefaultToolbarTitle:"Valitse päivä ja aika",timePickerDefaultToolbarTitle:"Valitse aika",dateRangePickerDefaultToolbarTitle:"Valitse aikaväli",clockLabelText:(e,t,r)=>`Valitse ${YF[e]}. ${t===null?"Ei aikaa valittuna":`Valittu aika on ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} tuntia`,minutesClockNumberText:e=>`${e} minuuttia`,secondsClockNumberText:e=>`${e} sekunttia`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Valitse päivä, valittu päivä on ${t.format(t.date(e),"fullDate")}`:"Valitse päivä",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Valitse aika, valittu aika on ${t.format(t.date(e),"fullTime")}`:"Valitse aika",timeTableLabel:"valitse aika",dateTableLabel:"valitse päivä"},XF=Rr(GF),ZF={hours:"Hodiny",minutes:"Minuty",seconds:"Sekundy"},t_={calendar:"kalendáře",clock:"času"},KF={previousMonth:"Další měsíc",nextMonth:"Předchozí month",openPreviousView:"otevřít předchozí zobrazení",openNextView:"otevřít další zobrazení",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"roční zobrazení otevřeno, přepněte do zobrazení kalendáře":"zobrazení kalendáře otevřeno, přepněte do zobrazení roku",inputModeToggleButtonAriaLabel:(e,t)=>e?`Zobrazení pro zadávání textu je otevřené, přepněte do zobrazení ${t_[t]}`:`Zobrazení ${t_[t]} je otevřené, přepněte do zobrazení textového pole`,start:"Začátek",end:"Konec",cancelButtonLabel:"Zrušit",clearButtonLabel:"Vymazat",okButtonLabel:"Potvrdit",todayButtonLabel:"Dnes",datePickerDefaultToolbarTitle:"Vyberte datum",dateTimePickerDefaultToolbarTitle:"Vyberte datum a čas",timePickerDefaultToolbarTitle:"Vyberte čas",dateRangePickerDefaultToolbarTitle:"Vyberete rozmezí dat",clockLabelText:(e,t,r)=>{var i;return`${(i=ZF[e])!=null?i:e} vybrány. ${t===null?"Není vybrán čas":`Vybraný čas je ${r.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} hodin`,minutesClockNumberText:e=>`${e} minut`,secondsClockNumberText:e=>`${e} sekund`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Vybrané datum, vybrané datum je ${t.format(e,"fullDate")}`:"Vyberte datum",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Vybrané čas, vybraný čas je ${t.format(e,"fullTime")}`:"Vyberte čas",timeTableLabel:"vyberte čas",dateTableLabel:"vyberte datum"},JF=Rr(KF),QF={hours:"heures",minutes:"minutes",seconds:"secondes"},n_={calendar:"calendrier",clock:"horloge"},eN={previousMonth:"Mois précédent",nextMonth:"Mois suivant",openPreviousView:"Ouvrir la vue précédente",openNextView:"Ouvrir la vue suivante",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"La vue année est ouverte, ouvrir la vue calendrier":"La vue calendrier est ouverte, ouvrir la vue année",inputModeToggleButtonAriaLabel:(e,t)=>e?`passer du champ text au ${n_[t]}`:`passer du ${n_[t]} au champ text`,start:"Début",end:"Fin",cancelButtonLabel:"Annuler",clearButtonLabel:"Vider",okButtonLabel:"OK",todayButtonLabel:"Aujourd'hui",clockLabelText:(e,t,r)=>`Choix des ${QF[e]}. ${t===null?"Aucune heure choisie":`L'heure choisie est ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} heures`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} secondes`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choisir la date, la date sélectionnée est ${t.format(t.date(e),"fullDate")}`:"Choisir la date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choisir l'heure, l'heure sélectionnée est ${t.format(t.date(e),"fullTime")}`:"Choisir l'heure",timeTableLabel:"choix de l'heure",dateTableLabel:"choix de la date"},tN=Rr(eN),Uc={hours:"Óra",minutes:"Perc",seconds:"Másodperc"},r_={calendar:"naptár",clock:"óra"},nN={previousMonth:"Előző hónap",nextMonth:"Következő hónap",openPreviousView:"Előző nézet megnyitása",openNextView:"Következő nézet megnyitása",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"az évválasztó már nyitva, váltson a naptárnézetre":"a naptárnézet már nyitva, váltson az évválasztóra",inputModeToggleButtonAriaLabel:(e,t)=>e?`szöveges beviteli nézet aktív, váltás ${r_[t]} nézetre`:`${r_[t]} beviteli nézet aktív, váltás szöveges beviteli nézetre`,start:"Kezdő dátum",end:"Záró dátum",cancelButtonLabel:"Mégse",clearButtonLabel:"Törlés",okButtonLabel:"OK",todayButtonLabel:"Ma",datePickerDefaultToolbarTitle:"Dátum kiválasztása",dateTimePickerDefaultToolbarTitle:"Dátum és idő kiválasztása",timePickerDefaultToolbarTitle:"Idő kiválasztása",dateRangePickerDefaultToolbarTitle:"Dátumhatárok kiválasztása",clockLabelText:(e,t,r)=>{var i;return`${(i=Uc[e])!=null?i:e} kiválasztása. ${t===null?"Nincs kiválasztva idő":`A kiválasztott idő ${r.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} ${Uc.hours.toLowerCase()}`,minutesClockNumberText:e=>`${e} ${Uc.minutes.toLowerCase()}`,secondsClockNumberText:e=>`${e} ${Uc.seconds.toLowerCase()}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Válasszon dátumot, a kiválasztott dátum: ${t.format(e,"fullDate")}`:"Válasszon dátumot",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Válasszon időt, a kiválasztott idő: ${t.format(e,"fullTime")}`:"Válasszon időt",timeTableLabel:"válasszon időt",dateTableLabel:"válasszon dátumot"},rN=Rr(nN),o4={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",inputModeToggleButtonAriaLabel:(e,t)=>e?`text input view is open, go to ${t} view`:`${t} view is open, go to text input view`,start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerDefaultToolbarTitle:"Select date",dateTimePickerDefaultToolbarTitle:"Select date & time",timePickerDefaultToolbarTitle:"Select time",dateRangePickerDefaultToolbarTitle:"Select date range",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose date, selected date is ${t.format(t.date(e),"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose time, selected time is ${t.format(t.date(e),"fullTime")}`:"Choose time",timeTableLabel:"pick time",dateTableLabel:"pick date"},l4=o4,aN=Rr(o4),iN={previousMonth:"Forrige måned",nextMonth:"Neste måned",openPreviousView:"åpne forrige visning",openNextView:"åpne neste visning",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"årsvisning er åpen, bytt til kalendervisning":"kalendervisning er åpen, bytt til årsvisning",start:"Start",end:"Slutt",cancelButtonLabel:"Avbryt",clearButtonLabel:"Fjern",okButtonLabel:"OK",todayButtonLabel:"I dag",clockLabelText:(e,t,r)=>`Velg ${e}. ${t===null?"Ingen tid valgt":`Valgt tid er ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} timer`,minutesClockNumberText:e=>`${e} minutter`,secondsClockNumberText:e=>`${e} sekunder`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velg dato, valgt dato er ${t.format(t.date(e),"fullDate")}`:"Velg dato",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velg tid, valgt tid er ${t.format(t.date(e),"fullTime")}`:"Velg tid",timeTableLabel:"velg tid",dateTableLabel:"velg dato"},oN=Rr(iN),lN={previousMonth:"Föregående månad",nextMonth:"Nästa månad",openPreviousView:"öppna föregående vy",openNextView:"öppna nästa vy",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"årsvyn är öppen, byt till kalendervy":"kalendervyn är öppen, byt till årsvy",start:"Start",end:"Slut",cancelButtonLabel:"Avbryt",clearButtonLabel:"Rensa",okButtonLabel:"OK",todayButtonLabel:"Idag",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"Ingen tid vald":`Vald tid är ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} timmar`,minutesClockNumberText:e=>`${e} minuter`,secondsClockNumberText:e=>`${e} sekunder`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Välj datum, valt datum är ${t.format(t.date(e),"fullDate")}`:"Välj datum",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Välj tid, vald tid är ${t.format(t.date(e),"fullTime")}`:"Välj tid",timeTableLabel:"välj tid",dateTableLabel:"välj datum"},sN=Rr(lN),uN={hours:"le ore",minutes:"i minuti",seconds:"i secondi"},cN={previousMonth:"Mese precedente",nextMonth:"Mese successivo",openPreviousView:"apri la vista precedente",openNextView:"apri la vista successiva",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"la vista dell'anno è aperta, passare alla vista del calendario":"la vista dell'calendario è aperta, passare alla vista dell'anno",inputModeToggleButtonAriaLabel:(e,t)=>e?`la vista del campo di testo è aperta, passare alla vista ${t}`:`la vista aperta è: ${t}, vai alla vista del campo di testo`,start:"Inizio",end:"Fine",cancelButtonLabel:"Cancellare",clearButtonLabel:"Sgomberare",okButtonLabel:"OK",todayButtonLabel:"Oggi",datePickerDefaultToolbarTitle:"Seleziona data",dateTimePickerDefaultToolbarTitle:"Seleziona data e orario",timePickerDefaultToolbarTitle:"Seleziona orario",dateRangePickerDefaultToolbarTitle:"Seleziona intervallo di date",clockLabelText:(e,t,r)=>`Seleziona ${uN[e]}. ${t===null?"Nessun orario selezionato":`L'ora selezionata è ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} ore`,minutesClockNumberText:e=>`${e} minuti`,secondsClockNumberText:e=>`${e} secondi`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Scegli la data, la data selezionata è ${t.format(t.date(e),"fullDate")}`:"Scegli la data",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Scegli l'ora, l'ora selezionata è ${t.format(t.date(e),"fullTime")}`:"Scegli l'ora",timeTableLabel:"scegli un'ora",dateTableLabel:"scegli una data"},fN=Rr(cN),dN={hours:"小时",minutes:"分钟",seconds:"秒"},hN={previousMonth:"上个月",nextMonth:"下个月",openPreviousView:"前一个视图",openNextView:"下一个视图",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"年视图已打开,切换为日历视图":"日历视图已打开,切换为年视图",start:"开始",end:"结束",cancelButtonLabel:"取消",clearButtonLabel:"清除",okButtonLabel:"确认",todayButtonLabel:"今天",clockLabelText:(e,t,r)=>`Select ${dN[e]}. ${t===null?"未选择时间":`已选择${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e}小时`,minutesClockNumberText:e=>`${e}分钟`,secondsClockNumberText:e=>`${e}秒`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`选择日期,已选择${t.format(t.date(e),"fullDate")}`:"选择日期",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`选择时间,已选择${t.format(t.date(e),"fullTime")}`:"选择时间",timeTableLabel:"选择时间",dateTableLabel:"选择日期"},pN=Rr(hN),gN={hours:"시간을",minutes:"분을",seconds:"초를"},mN={previousMonth:"이전 달",nextMonth:"다음 달",openPreviousView:"이전 화면 보기",openNextView:"다음 화면 보기",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"연도 선택 화면에서 달력 화면으로 전환하기":"달력 화면에서 연도 선택 화면으로 전환하기",inputModeToggleButtonAriaLabel:(e,t)=>e?`텍스트 입력 화면에서 ${t} 화면으로 전환하기`:`${t} 화면에서 텍스트 입력 화면으로 전환하기`,start:"시작",end:"종료",cancelButtonLabel:"취소",clearButtonLabel:"초기화",okButtonLabel:"확인",todayButtonLabel:"오늘",datePickerDefaultToolbarTitle:"날짜 선택하기",dateTimePickerDefaultToolbarTitle:"날짜 & 시간 선택하기",timePickerDefaultToolbarTitle:"시간 선택하기",dateRangePickerDefaultToolbarTitle:"날짜 범위 선택하기",clockLabelText:(e,t,r)=>`${gN[e]} 선택하세요. ${t===null?"시간을 선택하지 않았습니다.":`현재 선택된 시간은 ${r.format(t,"fullTime")}입니다.`}`,hoursClockNumberText:e=>`${e}시간`,minutesClockNumberText:e=>`${e}분`,secondsClockNumberText:e=>`${e}초`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`날짜를 선택하세요. 현재 선택된 날짜는 ${t.format(t.date(e),"fullDate")}입니다.`:"날짜를 선택하세요",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`시간을 선택하세요. 현재 선택된 시간은 ${t.format(t.date(e),"fullTime")}입니다.`:"시간을 선택하세요",timeTableLabel:"선택한 시간",dateTableLabel:"선택한 날짜"},vN=Rr(mN),yN={previousMonth:"Fyrri mánuður",nextMonth:"Næsti mánuður",openPreviousView:"opna fyrri skoðun",openNextView:"opna næstu skoðun",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"ársskoðun er opin, skipta yfir í dagatalsskoðun":"dagatalsskoðun er opin, skipta yfir í ársskoðun",inputModeToggleButtonAriaLabel:(e,t)=>{const r=t==="calendar"?"dagatals":"klukku";return e?`textainnsláttur er opinn, fara í ${r}skoðun`:`${r}skoðun er opin, opna fyrir textainnslátt`},start:"Upphaf",end:"Endir",cancelButtonLabel:"Hætta við",clearButtonLabel:"Hreinsa",okButtonLabel:"OK",todayButtonLabel:"Í dag",datePickerDefaultToolbarTitle:"Velja dagsetningu",dateTimePickerDefaultToolbarTitle:"Velja dagsetningu og tíma",timePickerDefaultToolbarTitle:"Velja tíma",dateRangePickerDefaultToolbarTitle:"Velja tímabil",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"Enginn tími valinn":`Valinn tími er ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} klukkustundir`,minutesClockNumberText:e=>`${e} mínútur`,secondsClockNumberText:e=>`${e} sekúndur`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velja dagsetningu, valin dagsetning er ${t.format(t.date(e),"fullDate")}`:"Velja dagsetningu",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velja tíma, valinn tími er ${t.format(t.date(e),"fullTime")}`:"Velja tíma",timeTableLabel:"velja tíma",dateTableLabel:"velja dagsetningu"},bN=Rr(yN),Hc={hours:"時間",minutes:"分",seconds:"秒"},a_={calendar:"カレンダー表示",clock:"時計表示"},xN={previousMonth:"先月",nextMonth:"来月",openPreviousView:"前の表示を開く",openNextView:"次の表示を開く",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"年選択表示からカレンダー表示に切り替える":"カレンダー表示から年選択表示に切り替える",inputModeToggleButtonAriaLabel:(e,t)=>e?`テキスト入力表示から${a_[t]}に切り替える`:`${a_[t]}からテキスト入力表示に切り替える`,start:"開始",end:"終了",cancelButtonLabel:"キャンセル",clearButtonLabel:"クリア",okButtonLabel:"確定",todayButtonLabel:"今日",datePickerDefaultToolbarTitle:"日付を選択",dateTimePickerDefaultToolbarTitle:"日時を選択",timePickerDefaultToolbarTitle:"時間を選択",dateRangePickerDefaultToolbarTitle:"日付の範囲を選択",clockLabelText:(e,t,r)=>{var i;return`${(i=Hc[e])!=null?i:e}を選択してください ${t===null?"時間が選択されていません":`選択した時間は ${r.format(t,"fullTime")} です`}`},hoursClockNumberText:e=>`${e} ${Hc.hours}`,minutesClockNumberText:e=>`${e} ${Hc.minutes}`,secondsClockNumberText:e=>`${e} ${Hc.seconds}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`日付を選択してください。選択した日付は ${t.format(e,"fullDate")} です`:"日付を選択してください",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`時間を選択してください。選択した時間は ${t.format(e,"fullTime")} です`:"時間を選択してください",timeTableLabel:"時間を選択",dateTableLabel:"日付を選択"},wN=Rr(xN),_N={previousMonth:"Попередній місяць",nextMonth:"Наступний місяць",openPreviousView:"відкрити попередній вигляд",openNextView:"відкрити наступний вигляд",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"річний вигляд відкрито, перейти до календарного вигляду":"календарний вигляд відкрито, перейти до річного вигляду",inputModeToggleButtonAriaLabel:(e,t)=>e?`текстове поле відкрите, перейти до ${t} вигляду`:`${t} вигляд наразі відкрито, перейти до текстового поля`,start:"Початок",end:"Кінець",cancelButtonLabel:"Відміна",clearButtonLabel:"Очистити",okButtonLabel:"OK",todayButtonLabel:"Сьогодні",datePickerDefaultToolbarTitle:"Вибрати дату",dateTimePickerDefaultToolbarTitle:"Вибрати дату і час",timePickerDefaultToolbarTitle:"Вибрати час",dateRangePickerDefaultToolbarTitle:"Вибрати календарний період",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"Час не вибраний":`Вибрано час ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} годин`,minutesClockNumberText:e=>`${e} хвилин`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Оберіть дату, обрана дата ${t.format(e,"fullDate")}`:"Оберіть дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Оберіть час, обраний час ${t.format(e,"fullTime")}`:"Оберіть час",timeTableLabel:"оберіть час",dateTableLabel:"оберіть дату"},TN=Rr(_N),kN={previousMonth:"پچھلا مہینہ",nextMonth:"اگلا مہینہ",openPreviousView:"پچھلا ویو کھولیں",openNextView:"اگلا ویو کھولیں",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"سال والا ویو کھلا ہے۔ کیلنڈر والا ویو کھولیں":"کیلنڈر والا ویو کھلا ہے۔ سال والا ویو کھولیں",inputModeToggleButtonAriaLabel:(e,t)=>e?`،ٹیکسٹ ویو کھلا ہے ${t} ویو کھولیں`:`${t} ویو کھلا ہے، ٹیکسٹ ویو کھولیں`,start:"شروع",end:"ختم",cancelButtonLabel:"کینسل",clearButtonLabel:"کلئیر",okButtonLabel:"اوکے",todayButtonLabel:"آج",datePickerDefaultToolbarTitle:"تاریخ منتخب کریں",dateTimePickerDefaultToolbarTitle:"تاریخ اور وقت منتخب کریں",timePickerDefaultToolbarTitle:"وقت منتخب کریں",dateRangePickerDefaultToolbarTitle:"تاریخوں کی رینج منتخب کریں",clockLabelText:(e,t,r)=>`${e} منتخب کریں ${t===null?"کوئی وقت منتخب نہیں":`منتخب وقت ہے ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} گھنٹے`,minutesClockNumberText:e=>`${e} منٹ`,secondsClockNumberText:e=>`${e} سیکنڈ`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`تاریخ منتخب کریں، منتخب شدہ تاریخ ہے ${t.format(e,"fullDate")}`:"تاریخ منتخب کریں",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`وقت منتخب کریں، منتخب شدہ وقت ہے ${t.format(e,"fullTime")}`:"وقت منتخب کریں",timeTableLabel:"وقت منتخب کریں",dateTableLabel:"تاریخ منتخب کریں"},MN=Rr(kN),Jg={hours:"гадзіны",minutes:"хвіліны",seconds:"секунды",calendar:"календара",clock:"часу"},SN={previousMonth:"Папярэдні месяц",nextMonth:"Наступны месяц",openPreviousView:"адкрыць папярэдні выгляд",openNextView:"адкрыць наступны выгляд",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"гадавы выгляд адкрыты, перайсці да каляндарнага выгляду":"каляндарны выгляд адкрыты, перайсці да гадавога выгляду",inputModeToggleButtonAriaLabel:(e,t)=>e?`тэкставае поле адкрыта, перайсці да выгляду ${Jg[t]}`:`Выгляд ${Jg[t]} зараз адкрыты, перайсці да тэкставага поля`,start:"Пачатак",end:"Канец",cancelButtonLabel:"Адмена",clearButtonLabel:"Ачысціць",okButtonLabel:"OK",todayButtonLabel:"Сёння",datePickerDefaultToolbarTitle:"Абраць дату",dateTimePickerDefaultToolbarTitle:"Абраць дату і час",timePickerDefaultToolbarTitle:"Абраць час",dateRangePickerDefaultToolbarTitle:"Абраць каляндарны перыяд",clockLabelText:(e,t,r)=>`Абярыце ${Jg[e]}. ${t===null?"Час не абраны":`Абраны час ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} гадзін`,minutesClockNumberText:e=>`${e} хвілін`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Абраць дату, абрана дата ${t.format(e,"fullDate")}`:"Абраць дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Абраць час, абрыны час ${t.format(e,"fullTime")}`:"Абраць час",timeTableLabel:"абраць час",dateTableLabel:"абраць дату"},CN=Rr(SN),ON={hours:"часы",minutes:"минуты",seconds:"секунды"},i_={calendar:"календарный",clock:"часовой"},AN={previousMonth:"Предыдущий месяц",nextMonth:"Следующий месяц",openPreviousView:"открыть предыдущий вид",openNextView:"открыть следующий вид",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"открыт годовой вид, переключить на календарный вид":"открыт календарный вид, переключить на годовой вид",inputModeToggleButtonAriaLabel:(e,t)=>e?`Открыт текстовый вид, перейти на ${i_[t]} вид`:`Открыт ${i_[t]} вид, перейти на текстовый вид`,start:"Начало",end:"Конец",cancelButtonLabel:"Отмена",clearButtonLabel:"Очистить",okButtonLabel:"Ок",todayButtonLabel:"Сегодня",datePickerDefaultToolbarTitle:"Выбрать дату",dateTimePickerDefaultToolbarTitle:"Выбрать дату и время",timePickerDefaultToolbarTitle:"Выбрать время",dateRangePickerDefaultToolbarTitle:"Выбрать период",clockLabelText:(e,t,r)=>`Выбрать ${ON[e]}. ${t===null?"Время не выбрано":`Выбрано время ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} часов`,minutesClockNumberText:e=>`${e} минут`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Выберите дату, выбрана дата ${t.format(e,"fullDate")}`:"Выберите дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Выберите время, выбрано время ${t.format(e,"fullTime")}`:"Выберите время",timeTableLabel:"выбрать время",dateTableLabel:"выбрать дату"},PN=Rr(AN),Ey=$e.createContext(null);function DN(e){const t=fr({props:e,name:"MuiLocalizationProvider"}),{children:r,dateAdapter:i,dateFormats:c,dateLibInstance:o,locale:a,adapterLocale:n,localeText:l}=t,f=$e.useMemo(()=>new i({locale:n??a,formats:c,instance:o}),[i,a,n,c,o]),s=$e.useMemo(()=>({minDate:f.date("1900-01-01T00:00:00.000"),maxDate:f.date("2099-12-31T00:00:00.000")}),[f]),u=$e.useMemo(()=>({utils:f,defaultDates:s,localeText:Gt({},l4,l??{})}),[s,f,l]);return je.jsx(Ey.Provider,{value:u,children:r})}const rc=()=>{const e=$e.useContext(Ey);if(e===null)throw new Error("MUI: Can not find utils in context. It looks like you forgot to wrap your component in LocalizationProvider, or pass dateAdapter prop directly.");return e},yr=()=>rc().utils,ac=()=>rc().defaultDates,ti=()=>rc().localeText,ic=()=>{const e=yr();return $e.useRef(e.date()).current};function s4(e){return _r("MuiMonthPicker",e)}const EN=wr("MuiMonthPicker",["root"]),Mu=({date:e,disableFuture:t,disablePast:r,maxDate:i,minDate:c,isDateDisabled:o,utils:a})=>{const n=a.startOfDay(a.date());r&&a.isBefore(c,n)&&(c=n),t&&a.isAfter(i,n)&&(i=n);let l=e,f=e;for(a.isBefore(e,c)&&(l=a.date(c),f=null),a.isAfter(e,i)&&(f&&(f=a.date(i)),l=null);l||f;){if(l&&a.isAfter(l,i)&&(l=null),f&&a.isBefore(f,c)&&(f=null),l){if(!o(l))return l;l=a.addDays(l,1)}if(f){if(!o(f))return f;f=a.addDays(f,-1)}}return null},Ry=(e,t)=>{const r=e.date(t);return e.isValid(r)?r:null},Va=(e,t,r)=>{if(t==null)return r;const i=e.date(t);return e.isValid(i)?i:r},RN=["className","date","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange"],LN=e=>{const{classes:t}=e;return Tr({root:["root"]},s4,t)};function IN(e,t){const r=yr(),i=ac(),c=fr({props:e,name:t});return Gt({disableFuture:!1,disablePast:!1},c,{minDate:Va(r,c.minDate,i.minDate),maxDate:Va(r,c.maxDate,i.maxDate)})}const FN=wn("div",{name:"MuiMonthPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({width:310,display:"flex",flexWrap:"wrap",alignContent:"stretch",margin:"0 4px"}),u4=$e.forwardRef(function(t,r){const i=yr(),c=ic(),o=IN(t,"MuiMonthPicker"),{className:a,date:n,disabled:l,disableFuture:f,disablePast:s,maxDate:u,minDate:d,onChange:h,shouldDisableMonth:p,readOnly:m,disableHighlightToday:y,autoFocus:v=!1,onMonthFocus:g,hasFocus:b,onFocusedViewChange:x}=o,_=Vn(o,RN),w=o,k=LN(w),T=x9(),M=$e.useMemo(()=>n??i.startOfMonth(c),[c,i,n]),S=$e.useMemo(()=>n!=null?i.getMonth(n):y?null:i.getMonth(c),[c,n,i,y]),[C,P]=$e.useState(()=>S||i.getMonth(c)),D=$e.useCallback(E=>{const W=i.startOfMonth(s&&i.isAfter(c,d)?c:d),G=i.startOfMonth(f&&i.isBefore(c,u)?c:u);return i.isBefore(E,W)||i.isAfter(E,G)?!0:p?p(E):!1},[f,s,u,d,c,p,i]),O=E=>{if(m)return;const W=i.setMonth(M,E);h(W,"finish")},[R,F]=gy({name:"MonthPicker",state:"hasFocus",controlled:b,default:v}),A=$e.useCallback(E=>{F(E),x&&x(E)},[F,x]),z=$e.useCallback(E=>{D(i.setMonth(M,E))||(P(E),A(!0),g&&g(E))},[D,i,M,A,g]);$e.useEffect(()=>{P(E=>S!==null&&E!==S?S:E)},[S]);const B=Od(E=>{switch(E.key){case"ArrowUp":z((12+C-3)%12),E.preventDefault();break;case"ArrowDown":z((12+C+3)%12),E.preventDefault();break;case"ArrowLeft":z((12+C+(T.direction==="ltr"?-1:1))%12),E.preventDefault();break;case"ArrowRight":z((12+C+(T.direction==="ltr"?1:-1))%12),E.preventDefault();break}}),$=$e.useCallback((E,W)=>{z(W)},[z]),j=$e.useCallback(()=>{A(!1)},[A]),N=i.getMonth(c);return je.jsx(FN,Gt({ref:r,className:jr(k.root,a),ownerState:w,onKeyDown:B},_,{children:i.getMonthArray(M).map(E=>{const W=i.getMonth(E),G=i.format(E,"monthShort"),L=l||D(E);return je.jsx(DF,{value:W,selected:W===S,tabIndex:W===C&&!L?0:-1,hasFocus:R&&W===C,onSelect:O,onFocus:$,onBlur:j,disabled:L,"aria-current":N===W?"date":void 0,children:G},G)})}))});function Ly(e,t,r){const{value:i,onError:c}=e,o=rc(),a=$e.useRef(null),n=t({adapter:o,value:i,props:e});return $e.useEffect(()=>{c&&!r(n,a.current)&&c(n,i),a.current=n},[r,c,a,n,i]),n}const Iy=({props:e,value:t,adapter:r})=>{const i=r.utils.date(),c=r.utils.date(t),o=Va(r.utils,e.minDate,r.defaultDates.minDate),a=Va(r.utils,e.maxDate,r.defaultDates.maxDate);if(c===null)return null;switch(!0){case!r.utils.isValid(t):return"invalidDate";case!!(e.shouldDisableDate&&e.shouldDisableDate(c)):return"shouldDisableDate";case!!(e.disableFuture&&r.utils.isAfterDay(c,i)):return"disableFuture";case!!(e.disablePast&&r.utils.isBeforeDay(c,i)):return"disablePast";case!!(o&&r.utils.isBeforeDay(c,o)):return"minDate";case!!(a&&r.utils.isAfterDay(c,a)):return"maxDate";default:return null}},c4=({shouldDisableDate:e,minDate:t,maxDate:r,disableFuture:i,disablePast:c})=>{const o=rc();return $e.useCallback(a=>Iy({adapter:o,value:a,props:{shouldDisableDate:e,minDate:t,maxDate:r,disableFuture:i,disablePast:c}})!==null,[o,e,t,r,i,c])},NN=(e,t)=>e===t,Fy=e=>Ly(e,Iy,NN),jN=(e,t,r)=>(i,c)=>{switch(c.type){case"changeMonth":return Gt({},i,{slideDirection:c.direction,currentMonth:c.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return Gt({},i,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(i.focusedDay!=null&&c.focusedDay!=null&&r.isSameDay(c.focusedDay,i.focusedDay))return i;const o=c.focusedDay!=null&&!t&&!r.isSameMonth(i.currentMonth,c.focusedDay);return Gt({},i,{focusedDay:c.focusedDay,isMonthSwitchingAnimating:o&&!e&&!c.withoutMonthSwitchingAnimation,currentMonth:o?r.startOfMonth(c.focusedDay):i.currentMonth,slideDirection:c.focusedDay!=null&&r.isAfterDay(c.focusedDay,i.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},$N=({date:e,defaultCalendarMonth:t,disableFuture:r,disablePast:i,disableSwitchToMonthOnDayFocus:c=!1,maxDate:o,minDate:a,onMonthChange:n,reduceAnimations:l,shouldDisableDate:f})=>{var s;const u=ic(),d=yr(),h=$e.useRef(jN(!!l,c,d)).current,[p,m]=$e.useReducer(h,{isMonthSwitchingAnimating:!1,focusedDay:e||u,currentMonth:d.startOfMonth((s=e??t)!=null?s:u),slideDirection:"left"}),y=$e.useCallback(_=>{m(Gt({type:"changeMonth"},_)),n&&n(_.newMonth)},[n]),v=$e.useCallback(_=>{const w=_??u;d.isSameMonth(w,p.currentMonth)||y({newMonth:d.startOfMonth(w),direction:d.isAfterDay(w,p.currentMonth)?"left":"right"})},[p.currentMonth,y,u,d]),g=c4({shouldDisableDate:f,minDate:a,maxDate:o,disableFuture:r,disablePast:i}),b=$e.useCallback(()=>{m({type:"finishMonthSwitchingAnimation"})},[]),x=$e.useCallback((_,w)=>{g(_)||m({type:"changeFocusedDay",focusedDay:_,withoutMonthSwitchingAnimation:w})},[g]);return{calendarState:p,changeMonth:v,changeFocusedDay:x,isDateDisabled:g,onMonthSwitchingAnimationEnd:b,handleChangeMonth:y}},BN=e=>_r("MuiPickersFadeTransitionGroup",e),zN=wr("MuiPickersFadeTransitionGroup",["root"]),qN=e=>{const{classes:t}=e;return Tr({root:["root"]},BN,t)},o_=500,WN=wn(eS,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function f4(e){const t=fr({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:r,className:i,reduceAnimations:c,transKey:o}=t,a=qN(t);return c?r:je.jsx(WN,{className:jr(a.root,i),children:je.jsx(tS,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:o_,enter:o_/2,exit:0},children:r},o)})}const Pu=36,oc=2,Ny=320,UN=358;function d4(e){return _r("MuiPickersDay",e)}const xu=wr("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),HN=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today"],VN=e=>{const{selected:t,disableMargin:r,disableHighlightToday:i,today:c,disabled:o,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:n,classes:l}=e;return Tr({root:["root",t&&"selected",o&&"disabled",!r&&"dayWithMargin",!i&&c&&"today",a&&n&&"dayOutsideMonth",a&&!n&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},d4,l)},h4=({theme:e,ownerState:t})=>Gt({},e.typography.caption,{width:Pu,height:Pu,borderRadius:"50%",padding:0,backgroundColor:e.palette.background.paper,color:e.palette.text.primary,"&:hover":{backgroundColor:Ef(e.palette.action.active,e.palette.action.hoverOpacity)},"&:focus":{backgroundColor:Ef(e.palette.action.active,e.palette.action.hoverOpacity),[`&.${xu.selected}`]:{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${xu.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium,transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),"&:hover":{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${xu.disabled}`]:{color:e.palette.text.disabled}},!t.disableMargin&&{margin:`0 ${oc}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:e.palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${xu.selected})`]:{border:`1px solid ${e.palette.text.secondary}`}}),p4=(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableMargin&&t.dayWithMargin,!r.disableHighlightToday&&r.today&&t.today,!r.outsideCurrentMonth&&r.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,r.outsideCurrentMonth&&!r.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},YN=wn(w9,{name:"MuiPickersDay",slot:"Root",overridesResolver:p4})(h4),GN=wn("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:p4})(({theme:e,ownerState:t})=>Gt({},h4({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),Qg=()=>{},XN=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiPickersDay"}),{autoFocus:c=!1,className:o,day:a,disabled:n=!1,disableHighlightToday:l=!1,disableMargin:f=!1,isAnimating:s,onClick:u,onDaySelect:d,onFocus:h=Qg,onBlur:p=Qg,onKeyDown:m=Qg,onMouseDown:y,outsideCurrentMonth:v,selected:g=!1,showDaysOutsideCurrentMonth:b=!1,children:x,today:_=!1}=i,w=Vn(i,HN),k=Gt({},i,{autoFocus:c,disabled:n,disableHighlightToday:l,disableMargin:f,selected:g,showDaysOutsideCurrentMonth:b,today:_}),T=VN(k),M=yr(),S=$e.useRef(null),C=_l(S,r);my(()=>{c&&!n&&!s&&!v&&S.current.focus()},[c,n,s,v]);const P=O=>{y&&y(O),v&&O.preventDefault()},D=O=>{n||d(a,"finish"),v&&O.currentTarget.focus(),u&&u(O)};return v&&!b?je.jsx(GN,{className:jr(T.root,T.hiddenDaySpacingFiller,o),ownerState:k,role:w.role}):je.jsx(YN,Gt({className:jr(T.root,o),ownerState:k,ref:C,centerRipple:!0,disabled:n,tabIndex:g?0:-1,onKeyDown:O=>m(O,a),onFocus:O=>h(O,a),onBlur:O=>p(O,a),onClick:D,onMouseDown:P},w,{children:x||M.format(a,"dayOfMonth")}))}),ZN=(e,t)=>e.autoFocus===t.autoFocus&&e.isAnimating===t.isAnimating&&e.today===t.today&&e.disabled===t.disabled&&e.selected===t.selected&&e.disableMargin===t.disableMargin&&e.showDaysOutsideCurrentMonth===t.showDaysOutsideCurrentMonth&&e.disableHighlightToday===t.disableHighlightToday&&e.className===t.className&&e.sx===t.sx&&e.outsideCurrentMonth===t.outsideCurrentMonth&&e.onFocus===t.onFocus&&e.onBlur===t.onBlur&&e.onDaySelect===t.onDaySelect,g4=$e.memo(XN,ZN),KN=e=>_r("PrivatePickersSlideTransition",e),sa=wr("PrivatePickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),JN=["children","className","reduceAnimations","slideDirection","transKey"],QN=e=>{const{classes:t}=e;return Tr({root:["root"]},KN,t)},m4=350,ej=wn(eS,{name:"PrivatePickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${sa["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${sa["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${sa.slideEnterActive}`]:t.slideEnterActive},{[`.${sa.slideExit}`]:t.slideExit},{[`.${sa["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${sa["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:m4,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${sa["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${sa["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${sa.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${sa.slideExit}`]:{transform:"translate(0%)"},[`& .${sa["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${sa["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}}),tj=e=>{const{children:t,className:r,reduceAnimations:i,slideDirection:c,transKey:o}=e,a=Vn(e,JN),n=QN(e);if(i)return je.jsx("div",{className:jr(n.root,r),children:t});const l={exit:sa.slideExit,enterActive:sa.slideEnterActive,enter:sa[`slideEnter-${c}`],exitActive:sa[`slideExitActiveLeft-${c}`]};return je.jsx(ej,{className:jr(n.root,r),childFactory:f=>$e.cloneElement(f,{classNames:l}),role:"presentation",children:je.jsx(_9,Gt({mountOnEnter:!0,unmountOnExit:!0,timeout:m4,classNames:l},a,{children:t}),o)})},nj=e=>_r("MuiDayPicker",e),rj=wr("MuiDayPicker",["header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer"]),aj=e=>{const{classes:t}=e;return Tr({header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"]},nj,t)},ij=e=>e.charAt(0).toUpperCase(),v4=(Pu+oc*2)*6,oj=wn("div",{name:"MuiDayPicker",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),lj=wn(Cr,{name:"MuiDayPicker",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.secondary})),sj=wn("div",{name:"MuiDayPicker",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:v4}),uj=wn(tj,{name:"MuiDayPicker",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:v4}),cj=wn("div",{name:"MuiDayPicker",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),fj=wn("div",{name:"MuiDayPicker",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${oc}px 0`,display:"flex",justifyContent:"center"});function dj(e){const t=ic(),r=yr(),i=fr({props:e,name:"MuiDayPicker"}),c=aj(i),{onFocusedDayChange:o,className:a,currentMonth:n,selectedDays:l,disabled:f,disableHighlightToday:s,focusedDay:u,isMonthSwitchingAnimating:d,loading:h,onSelectedDaysChange:p,onMonthSwitchingAnimationEnd:m,readOnly:y,reduceAnimations:v,renderDay:g,renderLoading:b=()=>je.jsx("span",{children:"..."}),showDaysOutsideCurrentMonth:x,slideDirection:_,TransitionProps:w,disablePast:k,disableFuture:T,minDate:M,maxDate:S,shouldDisableDate:C,dayOfWeekFormatter:P=ij,hasFocus:D,onFocusedViewChange:O,gridLabelId:R}=i,F=c4({shouldDisableDate:C,minDate:M,maxDate:S,disablePast:k,disableFuture:T}),[A,z]=$e.useState(()=>u||t),B=$e.useCallback(U=>{O&&O(U)},[O]),$=$e.useCallback((U,Q="finish")=>{y||p(U,Q)},[p,y]),j=$e.useCallback(U=>{F(U)||(o(U),z(U),B(!0))},[F,o,B]),N=Ad();function E(U,Q){switch(U.key){case"ArrowUp":j(r.addDays(Q,-7)),U.preventDefault();break;case"ArrowDown":j(r.addDays(Q,7)),U.preventDefault();break;case"ArrowLeft":{const Y=r.addDays(Q,N.direction==="ltr"?-1:1),Z=N.direction==="ltr"?r.getPreviousMonth(Q):r.getNextMonth(Q),X=Mu({utils:r,date:Y,minDate:N.direction==="ltr"?r.startOfMonth(Z):Y,maxDate:N.direction==="ltr"?Y:r.endOfMonth(Z),isDateDisabled:F});j(X||Y),U.preventDefault();break}case"ArrowRight":{const Y=r.addDays(Q,N.direction==="ltr"?1:-1),Z=N.direction==="ltr"?r.getNextMonth(Q):r.getPreviousMonth(Q),X=Mu({utils:r,date:Y,minDate:N.direction==="ltr"?Y:r.startOfMonth(Z),maxDate:N.direction==="ltr"?r.endOfMonth(Z):Y,isDateDisabled:F});j(X||Y),U.preventDefault();break}case"Home":j(r.startOfWeek(Q)),U.preventDefault();break;case"End":j(r.endOfWeek(Q)),U.preventDefault();break;case"PageUp":j(r.getNextMonth(Q)),U.preventDefault();break;case"PageDown":j(r.getPreviousMonth(Q)),U.preventDefault();break}}function W(U,Q){j(Q)}function G(U,Q){D&&r.isSameDay(A,Q)&&B(!1)}const L=r.getMonth(n),q=l.filter(U=>!!U).map(U=>r.startOfDay(U)),H=L,V=$e.useMemo(()=>$e.createRef(),[H]),te=r.startOfWeek(t),ee=$e.useMemo(()=>{const U=r.startOfMonth(n),Q=r.endOfMonth(n);return F(A)||r.isAfterDay(A,Q)||r.isBeforeDay(A,U)?Mu({utils:r,date:A,minDate:U,maxDate:Q,disablePast:k,disableFuture:T,isDateDisabled:F}):A},[n,T,k,A,F,r]);return je.jsxs("div",{role:"grid","aria-labelledby":R,children:[je.jsx(oj,{role:"row",className:c.header,children:r.getWeekdays().map((U,Q)=>{var Y;return je.jsx(lj,{variant:"caption",role:"columnheader","aria-label":r.format(r.addDays(te,Q),"weekday"),className:c.weekDayLabel,children:(Y=P==null?void 0:P(U))!=null?Y:U},U+Q.toString())})}),h?je.jsx(sj,{className:c.loadingContainer,children:b()}):je.jsx(uj,Gt({transKey:H,onExited:m,reduceAnimations:v,slideDirection:_,className:jr(a,c.slideTransition)},w,{nodeRef:V,children:je.jsx(cj,{ref:V,role:"rowgroup",className:c.monthContainer,children:r.getWeekArray(n).map(U=>je.jsx(fj,{role:"row",className:c.weekContainer,children:U.map(Q=>{const Y=ee!==null&&r.isSameDay(Q,ee),Z=q.some(ie=>r.isSameDay(ie,Q)),X=r.isSameDay(Q,t),re={key:Q==null?void 0:Q.toString(),day:Q,isAnimating:d,disabled:f||F(Q),autoFocus:D&&Y,today:X,outsideCurrentMonth:r.getMonth(Q)!==L,selected:Z,disableHighlightToday:s,showDaysOutsideCurrentMonth:x,onKeyDown:E,onFocus:W,onBlur:G,onDaySelect:$,tabIndex:Y?0:-1,role:"gridcell","aria-selected":Z};return X&&(re["aria-current"]="date"),g?g(Q,q,re):$e.createElement(g4,Gt({},re,{key:re.key}))})},`week-${U[0]}`))})}))]})}function jy({onChange:e,onViewChange:t,openTo:r,view:i,views:c}){var o,a;const[n,l]=gy({name:"Picker",state:"view",controlled:i,default:r&&bo(c,r)?r:c[0]}),f=(o=c[c.indexOf(n)-1])!=null?o:null,s=(a=c[c.indexOf(n)+1])!=null?a:null,u=$e.useCallback(p=>{l(p),t&&t(p)},[l,t]),d=$e.useCallback(()=>{s&&u(s)},[s,u]);return{handleChangeAndOpenNext:$e.useCallback((p,m)=>{const y=m==="finish";e(p,y&&s?"partial":m),y&&d()},[s,e,d]),nextView:s,previousView:f,openNext:d,openView:n,setOpenView:u}}const hj=ro(je.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),pj=ro(je.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),gj=ro(je.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),y4=ro(je.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),b4=ro(je.jsxs($e.Fragment,{children:[je.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),je.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),mj=ro(je.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),vj=ro(je.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Pen"),yj=ro(je.jsxs($e.Fragment,{children:[je.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),je.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");function bj(e){return _r("MuiPickersArrowSwitcher",e)}wr("MuiPickersArrowSwitcher",["root","spacer","button"]);const xj=["children","className","components","componentsProps","isLeftDisabled","isLeftHidden","isRightDisabled","isRightHidden","leftArrowButtonText","onLeftClick","onRightClick","rightArrowButtonText"],wj=e=>{const{classes:t}=e;return Tr({root:["root"],spacer:["spacer"],button:["button"]},bj,t)},_j=wn("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),Tj=wn("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),l_=wn(jl,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>Gt({},e.hidden&&{visibility:"hidden"})),x4=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiPickersArrowSwitcher"}),{children:c,className:o,components:a,componentsProps:n,isLeftDisabled:l,isLeftHidden:f,isRightDisabled:s,isRightHidden:u,leftArrowButtonText:d,onLeftClick:h,onRightClick:p,rightArrowButtonText:m}=i,y=Vn(i,xj),g=Ad().direction==="rtl",b=(n==null?void 0:n.leftArrowButton)||{},x=(a==null?void 0:a.LeftArrowIcon)||pj,_=(n==null?void 0:n.rightArrowButton)||{},w=(a==null?void 0:a.RightArrowIcon)||gj,k=i,T=wj(k);return je.jsxs(_j,Gt({ref:r,className:jr(T.root,o),ownerState:k},y,{children:[je.jsx(l_,Gt({as:a==null?void 0:a.LeftArrowButton,size:"small","aria-label":d,title:d,disabled:l,edge:"end",onClick:h},b,{className:jr(T.button,b.className),ownerState:Gt({},k,b,{hidden:f}),children:g?je.jsx(w,{}):je.jsx(x,{})})),c?je.jsx(Cr,{variant:"subtitle1",component:"span",children:c}):je.jsx(Tj,{className:T.spacer,ownerState:k}),je.jsx(l_,Gt({as:a==null?void 0:a.RightArrowButton,size:"small","aria-label":m,title:m,edge:"start",disabled:s,onClick:p},_,{className:jr(T.button,_.className),ownerState:Gt({},k,_,{hidden:u}),children:g?je.jsx(x,{}):je.jsx(w,{})}))]}))}),kj=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,F0=(e,t,r)=>r&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,Mj=(e,t,r,i)=>{const c=F0(i.getHours(e),t,r);return i.setHours(e,c)},s_=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),w4=(e=!1,t)=>(r,i)=>e?t.isAfter(r,i):s_(r,t)>s_(i,t);function Sj(e,{disableFuture:t,maxDate:r}){const i=yr();return $e.useMemo(()=>{const c=i.date(),o=i.startOfMonth(t&&i.isBefore(c,r)?c:r);return!i.isAfter(o,e)},[t,r,e,i])}function Cj(e,{disablePast:t,minDate:r}){const i=yr();return $e.useMemo(()=>{const c=i.date(),o=i.startOfMonth(t&&i.isAfter(c,r)?c:r);return!i.isBefore(o,e)},[t,r,e,i])}function _4(e,t,r){const i=yr(),c=kj(e,i),o=$e.useCallback(a=>{const n=e==null?null:Mj(e,a,!!t,i);r(n,"partial")},[t,e,r,i]);return{meridiemMode:c,handleMeridiemChange:o}}const T4=e=>()=>{},Oj=e=>_r("MuiPickersCalendarHeader",e),Aj=wr("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),Pj=e=>{const{classes:t}=e;return Tr({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Oj,t)},Dj=wn("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),Ej=wn("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>Gt({display:"flex",maxHeight:30,overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),Rj=wn("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),Lj=wn(jl,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto"}),Ij=wn(hj,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e,ownerState:t})=>Gt({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"},t.openView==="year"&&{transform:"rotate(180deg)"})),Fj=T4();function Nj(e){const t=fr({props:e,name:"MuiPickersCalendarHeader"}),{components:r={},componentsProps:i={},currentMonth:c,disabled:o,disableFuture:a,disablePast:n,getViewSwitchingButtonText:l,leftArrowButtonText:f,maxDate:s,minDate:u,onMonthChange:d,onViewChange:h,openView:p,reduceAnimations:m,rightArrowButtonText:y,views:v,labelId:g}=t;Fj({leftArrowButtonText:f,rightArrowButtonText:y,getViewSwitchingButtonText:l});const b=ti(),x=f??b.previousMonth,_=y??b.nextMonth,w=l??b.calendarViewSwitchingButtonAriaLabel,k=yr(),T=Pj(t),M=i.switchViewButton||{},S=()=>d(k.getNextMonth(c),"left"),C=()=>d(k.getPreviousMonth(c),"right"),P=Sj(c,{disableFuture:a,maxDate:s}),D=Cj(c,{disablePast:n,minDate:u}),O=()=>{if(!(v.length===1||!h||o))if(v.length===2)h(v.find(F=>F!==p)||v[0]);else{const F=v.indexOf(p)!==0?0:1;h(v[F])}};if(v.length===1&&v[0]==="year")return null;const R=t;return je.jsxs(Dj,{ownerState:R,className:T.root,children:[je.jsxs(Ej,{role:"presentation",onClick:O,ownerState:R,"aria-live":"polite",className:T.labelContainer,children:[je.jsx(f4,{reduceAnimations:m,transKey:k.format(c,"monthAndYear"),children:je.jsx(Rj,{id:g,ownerState:R,className:T.label,children:k.format(c,"monthAndYear")})}),v.length>1&&!o&&je.jsx(Lj,Gt({size:"small",as:r.SwitchViewButton,"aria-label":w(p),className:T.switchViewButton},M,{children:je.jsx(Ij,{as:r.SwitchViewIcon,ownerState:R,className:T.switchViewIcon})}))]}),je.jsx(tS,{in:p==="day",children:je.jsx(x4,{leftArrowButtonText:x,rightArrowButtonText:_,components:r,componentsProps:i,onLeftClick:C,onRightClick:S,isLeftDisabled:D,isRightDisabled:P})})]})}const Di=$e.createContext(null);function jj(e){return _r("PrivatePickersYear",e)}const _o=wr("PrivatePickersYear",["root","modeDesktop","modeMobile","yearButton","selected","disabled"]),$j=["autoFocus","className","children","disabled","onClick","onKeyDown","value","tabIndex","onFocus","onBlur"],Bj=e=>{const{wrapperVariant:t,disabled:r,selected:i,classes:c}=e,o={root:["root",t&&`mode${T9(t)}`],yearButton:["yearButton",r&&"disabled",i&&"selected"]};return Tr(o,jj,c)},zj=wn("div",{name:"PrivatePickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${_o.modeDesktop}`]:t.modeDesktop},{[`&.${_o.modeMobile}`]:t.modeMobile}]})(({ownerState:e})=>Gt({flexBasis:"33.3%",display:"flex",alignItems:"center",justifyContent:"center"},(e==null?void 0:e.wrapperVariant)==="desktop"&&{flexBasis:"25%"})),qj=wn("button",{name:"PrivatePickersYear",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${_o.disabled}`]:t.disabled},{[`&.${_o.selected}`]:t.selected}]})(({theme:e})=>Gt({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:Ef(e.palette.action.active,e.palette.action.hoverOpacity)},[`&.${_o.disabled}`]:{color:e.palette.text.secondary},[`&.${_o.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),u_=()=>{},Wj=$e.forwardRef(function(t,r){const{autoFocus:i,className:c,children:o,disabled:a,onClick:n,onKeyDown:l,value:f,tabIndex:s,onFocus:u=u_,onBlur:d=u_}=t,h=Vn(t,$j),p=$e.useRef(null),m=_l(p,r),y=$e.useContext(Di),v=Gt({},t,{wrapperVariant:y}),g=Bj(v);return $e.useEffect(()=>{i&&p.current.focus()},[i]),je.jsx(zj,{className:jr(g.root,c),ownerState:v,children:je.jsx(qj,Gt({ref:m,disabled:a,type:"button",tabIndex:a?-1:s,onClick:b=>n(b,f),onKeyDown:b=>l(b,f),onFocus:b=>u(b,f),onBlur:b=>d(b,f),className:g.yearButton,ownerState:v},h,{children:o}))})});function k4(e){return _r("MuiYearPicker",e)}const Uj=wr("MuiYearPicker",["root"]),Hj=e=>{const{classes:t}=e;return Tr({root:["root"]},k4,t)};function Vj(e,t){const r=yr(),i=ac(),c=fr({props:e,name:t});return Gt({disablePast:!1,disableFuture:!1},c,{minDate:Va(r,c.minDate,i.minDate),maxDate:Va(r,c.maxDate,i.maxDate)})}const Yj=wn("div",{name:"MuiYearPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",maxHeight:"304px"}),M4=$e.forwardRef(function(t,r){const i=ic(),c=Ad(),o=yr(),a=Vj(t,"MuiYearPicker"),{autoFocus:n,className:l,date:f,disabled:s,disableFuture:u,disablePast:d,maxDate:h,minDate:p,onChange:m,readOnly:y,shouldDisableYear:v,disableHighlightToday:g,onYearFocus:b,hasFocus:x,onFocusedViewChange:_}=a,w=a,k=Hj(w),T=$e.useMemo(()=>f??o.startOfYear(i),[i,o,f]),M=$e.useMemo(()=>f!=null?o.getYear(f):g?null:o.getYear(i),[i,f,o,g]),S=$e.useContext(Di),C=$e.useRef(null),[P,D]=$e.useState(()=>M||o.getYear(i)),[O,R]=k9({name:"YearPicker",state:"hasFocus",controlled:x,default:n}),F=$e.useCallback(q=>{R(q),_&&_(q)},[R,_]),A=$e.useCallback(q=>!!(d&&o.isBeforeYear(q,i)||u&&o.isAfterYear(q,i)||p&&o.isBeforeYear(q,p)||h&&o.isAfterYear(q,h)||v&&v(q)),[u,d,h,p,i,v,o]),z=(q,H,V="finish")=>{if(y)return;const te=o.setYear(T,H);m(te,V)},B=$e.useCallback(q=>{A(o.setYear(T,q))||(D(q),F(!0),b==null||b(q))},[A,o,T,F,b]);$e.useEffect(()=>{D(q=>M!==null&&q!==M?M:q)},[M]);const $=S==="desktop"?4:3,j=$e.useCallback((q,H)=>{switch(q.key){case"ArrowUp":B(H-$),q.preventDefault();break;case"ArrowDown":B(H+$),q.preventDefault();break;case"ArrowLeft":B(H+(c.direction==="ltr"?-1:1)),q.preventDefault();break;case"ArrowRight":B(H+(c.direction==="ltr"?1:-1)),q.preventDefault();break}},[B,c.direction,$]),N=$e.useCallback((q,H)=>{B(H)},[B]),E=$e.useCallback((q,H)=>{P===H&&F(!1)},[P,F]),W=o.getYear(i),G=$e.useRef(null),L=_l(r,G);return $e.useEffect(()=>{if(n||G.current===null)return;const q=G.current.querySelector('[tabindex="0"]');if(!q)return;const H=q.offsetHeight,V=q.offsetTop,te=G.current.clientHeight,ee=G.current.scrollTop,U=V+H;H>te||V{const H=o.getYear(q),V=H===M;return je.jsx(Wj,{selected:V,value:H,onClick:z,onKeyDown:j,autoFocus:O&&H===P,ref:V?C:void 0,disabled:s||A(q),tabIndex:H===P?0:-1,onFocus:N,onBlur:E,"aria-current":W===H?"date":void 0,children:o.format(q,"year")},o.format(q,"year"))})})}),$y=wn("div")({overflowX:"hidden",width:Ny,maxHeight:UN,display:"flex",flexDirection:"column",margin:"0 auto"}),Gj=typeof navigator<"u"&&/(android)/i.test(navigator.userAgent),S4=e=>_r("MuiCalendarPicker",e),Xj=wr("MuiCalendarPicker",["root","viewTransitionContainer"]),Zj=["autoFocus","onViewChange","date","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","classes"],Kj=e=>{const{classes:t}=e;return Tr({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},S4,t)};function Jj(e,t){const r=yr(),i=ac(),c=fr({props:e,name:t});return Gt({loading:!1,disablePast:!1,disableFuture:!1,openTo:"day",views:["year","day"],reduceAnimations:Gj,renderLoading:()=>je.jsx("span",{children:"..."})},c,{minDate:Va(r,c.minDate,i.minDate),maxDate:Va(r,c.maxDate,i.maxDate)})}const Qj=wn($y,{name:"MuiCalendarPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),e$=wn(f4,{name:"MuiCalendarPicker",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),C4=$e.forwardRef(function(t,r){const i=yr(),c=nS(),o=Jj(t,"MuiCalendarPicker"),{autoFocus:a,onViewChange:n,date:l,disableFuture:f,disablePast:s,defaultCalendarMonth:u,onChange:d,onYearChange:h,onMonthChange:p,reduceAnimations:m,shouldDisableDate:y,shouldDisableMonth:v,shouldDisableYear:g,view:b,views:x,openTo:_,className:w,disabled:k,readOnly:T,minDate:M,maxDate:S,disableHighlightToday:C,focusedView:P,onFocusedViewChange:D}=o,O=Vn(o,Zj),{openView:R,setOpenView:F,openNext:A}=jy({view:b,views:x,openTo:_,onChange:d,onViewChange:n}),{calendarState:z,changeFocusedDay:B,changeMonth:$,handleChangeMonth:j,isDateDisabled:N,onMonthSwitchingAnimationEnd:E}=$N({date:l,defaultCalendarMonth:u,reduceAnimations:m,onMonthChange:p,minDate:M,maxDate:S,shouldDisableDate:y,disablePast:s,disableFuture:f}),W=$e.useCallback((le,se)=>{const pe=i.startOfMonth(le),Te=i.endOfMonth(le),Se=N(le)?Mu({utils:i,date:le,minDate:i.isBefore(M,pe)?pe:M,maxDate:i.isAfter(S,Te)?Te:S,disablePast:s,disableFuture:f,isDateDisabled:N}):le;Se?(d(Se,se),p==null||p(pe)):(A(),$(pe)),B(Se,!0)},[B,f,s,N,S,M,d,p,$,A,i]),G=$e.useCallback((le,se)=>{const pe=i.startOfYear(le),Te=i.endOfYear(le),Se=N(le)?Mu({utils:i,date:le,minDate:i.isBefore(M,pe)?pe:M,maxDate:i.isAfter(S,Te)?Te:S,disablePast:s,disableFuture:f,isDateDisabled:N}):le;Se?(d(Se,se),h==null||h(Se)):(A(),$(pe)),B(Se,!0)},[B,f,s,N,S,M,d,h,A,i,$]),L=$e.useCallback((le,se)=>d(l&&le?i.mergeDateAndTime(le,l):le,se),[i,l,d]);$e.useEffect(()=>{l&&$(l)},[l]);const q=o,H=Kj(q),V={disablePast:s,disableFuture:f,maxDate:S,minDate:M},te=k&&l||M,ee=k&&l||S,U={disableHighlightToday:C,readOnly:T,disabled:k},Q=`${c}-grid-label`,[Y,Z]=gy({name:"DayPicker",state:"focusedView",controlled:P,default:a?R:null}),X=Y!==null,re=Od(le=>se=>{if(D){D(le)(se);return}Z(se?le:pe=>pe===le?null:pe)}),ie=$e.useRef(R);return $e.useEffect(()=>{ie.current!==R&&(ie.current=R,re(R)(!0))},[R,re]),je.jsxs(Qj,{ref:r,className:jr(H.root,w),ownerState:q,children:[je.jsx(Nj,Gt({},O,{views:x,openView:R,currentMonth:z.currentMonth,onViewChange:F,onMonthChange:(le,se)=>j({newMonth:le,direction:se}),minDate:te,maxDate:ee,disabled:k,disablePast:s,disableFuture:f,reduceAnimations:m,labelId:Q})),je.jsx(e$,{reduceAnimations:m,className:H.viewTransitionContainer,transKey:R,ownerState:q,children:je.jsxs("div",{children:[R==="year"&&je.jsx(M4,Gt({},O,V,U,{autoFocus:a,date:l,onChange:G,shouldDisableYear:g,hasFocus:X,onFocusedViewChange:re("year")})),R==="month"&&je.jsx(u4,Gt({},V,U,{autoFocus:a,hasFocus:X,className:w,date:l,onChange:W,shouldDisableMonth:v,onFocusedViewChange:re("month")})),R==="day"&&je.jsx(dj,Gt({},O,z,V,U,{autoFocus:a,onMonthSwitchingAnimationEnd:E,onFocusedDayChange:B,reduceAnimations:m,selectedDays:[l],onSelectedDaysChange:L,shouldDisableDate:y,hasFocus:X,onFocusedViewChange:re("day"),gridLabelId:Q}))]})})]})}),O4=e=>_r("MuiCalendarPickerSkeleton",e),t$=wr("MuiCalendarPickerSkeleton",["root","week","daySkeleton"]),n$=["className"],r$=e=>{const{classes:t}=e;return Tr({root:["root"],week:["week"],daySkeleton:["daySkeleton"]},O4,t)},a$=wn("div",{name:"MuiCalendarPickerSkeleton",slot:"Root",overridesResolver:(e,t)=>t.root})({alignSelf:"start"}),i$=wn("div",{name:"MuiCalendarPickerSkeleton",slot:"Week",overridesResolver:(e,t)=>t.week})({margin:`${oc}px 0`,display:"flex",justifyContent:"center"}),A4=wn(M9,{name:"MuiCalendarPickerSkeleton",slot:"DaySkeleton",overridesResolver:(e,t)=>t.daySkeleton})(({ownerState:e})=>Gt({margin:`0 ${oc}px`},e.day===0&&{visibility:"hidden"}));A4.propTypes={ownerState:oe.shape({day:oe.number.isRequired}).isRequired};const o$=[[0,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,0,0,0]];function l$(e){const t=fr({props:e,name:"MuiCalendarPickerSkeleton"}),{className:r}=t,i=Vn(t,n$),c=r$(i);return je.jsx(a$,Gt({className:jr(c.root,r)},i,{children:o$.map((o,a)=>je.jsx(i$,{className:c.week,children:o.map((n,l)=>je.jsx(A4,{variant:"circular",width:Pu,height:Pu,className:c.daySkeleton,ownerState:{day:n}},l))},a))}))}const Sl=220,Gi=36,Du={x:Sl/2,y:Sl/2},P4={x:Du.x,y:0},s$=P4.x-Du.x,u$=P4.y-Du.y,c$=e=>e*(180/Math.PI),D4=(e,t,r)=>{const i=t-Du.x,c=r-Du.y,o=Math.atan2(s$,u$)-Math.atan2(i,c);let a=c$(o);a=Math.round(a/e)*e,a%=360;const n=Math.floor(a/e)||0,l=i**2+c**2,f=Math.sqrt(l);return{value:n,distance:f}},f$=(e,t,r=1)=>{const i=r*6;let{value:c}=D4(i,e,t);return c=c*r%60,c},d$=(e,t,r)=>{const{value:i,distance:c}=D4(30,e,t);let o=i||12;return r?o%=12:c{const{classes:t}=e;return Tr({root:["root"],thumb:["thumb"]},h$,t)},v$=wn("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>Gt({width:2,backgroundColor:e.palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),y$=wn("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>Gt({width:4,height:4,backgroundColor:e.palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Gi/2}px)`,border:`${(Gi-4)/2}px solid ${e.palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:e.palette.primary.main}));function b$(e){const t=fr({props:e,name:"MuiClockPointer"}),{className:r,isInner:i,type:c,value:o}=t,a=Vn(t,g$),n=$e.useRef(c);$e.useEffect(()=>{n.current=c},[c]);const l=Gt({},t,{shouldAnimate:n.current!==c}),f=m$(l),s=()=>{let d=360/(c==="hours"?12:60)*o;return c==="hours"&&o>12&&(d-=360),{height:Math.round((i?.26:.4)*Sl),transform:`rotateZ(${d}deg)`}};return je.jsx(v$,Gt({style:s(),className:jr(r,f.root),ownerState:l},a,{children:je.jsx(y$,{ownerState:l,className:f.thumb})}))}function x$(e){return _r("MuiClock",e)}const w$=wr("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton"]),_$=e=>{const{classes:t}=e;return S9({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"]},x$,t)},T$=wn("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),k$=wn("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),M$=wn("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),S$=wn("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>Gt({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),C$=wn("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:e.palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),O$=wn(jl,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>Gt({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,left:8},t.meridiemMode==="am"&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}})),A$=wn(jl,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>Gt({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,right:8},t.meridiemMode==="pm"&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}}));function P$(e){const t=fr({props:e,name:"MuiClock"}),{ampm:r,ampmInClock:i,autoFocus:c,children:o,date:a,getClockLabelText:n,handleMeridiemChange:l,isTimeDisabled:f,meridiemMode:s,minutesStep:u=1,onChange:d,selectedId:h,type:p,value:m,disabled:y,readOnly:v,className:g}=t,b=t,x=yr(),_=$e.useContext(Di),w=$e.useRef(!1),k=_$(b),T=f(m,p),M=!r&&p==="hours"&&(m<1||m>12),S=($,j)=>{y||v||f($,p)||d($,j)},C=($,j)=>{let{offsetX:N,offsetY:E}=$;if(N===void 0){const G=$.target.getBoundingClientRect();N=$.changedTouches[0].clientX-G.left,E=$.changedTouches[0].clientY-G.top}const W=p==="seconds"||p==="minutes"?f$(N,E,u):d$(N,E,!!r);S(W,j)},P=$=>{w.current=!0,C($,"shallow")},D=$=>{w.current&&(C($,"finish"),w.current=!1)},O=$=>{$.buttons>0&&C($.nativeEvent,"shallow")},R=$=>{w.current&&(w.current=!1),C($.nativeEvent,"finish")},F=$e.useMemo(()=>p==="hours"?!0:m%5===0,[p,m]),A=p==="minutes"?u:1,z=$e.useRef(null);my(()=>{c&&z.current.focus()},[c]);const B=$=>{if(!w.current)switch($.key){case"Home":S(0,"partial"),$.preventDefault();break;case"End":S(p==="minutes"?59:23,"partial"),$.preventDefault();break;case"ArrowUp":S(m+A,"partial"),$.preventDefault();break;case"ArrowDown":S(m-A,"partial"),$.preventDefault();break}};return je.jsxs(T$,{className:jr(g,k.root),children:[je.jsxs(k$,{className:k.clock,children:[je.jsx(S$,{onTouchMove:P,onTouchEnd:D,onMouseUp:R,onMouseMove:O,ownerState:{disabled:y},className:k.squareMask}),!T&&je.jsxs($e.Fragment,{children:[je.jsx(C$,{className:k.pin}),a&&je.jsx(b$,{type:p,value:m,isInner:M,hasSelected:F})]}),je.jsx(M$,{"aria-activedescendant":h,"aria-label":n(p,a,x),ref:z,role:"listbox",onKeyDown:B,tabIndex:0,className:k.wrapper,children:o})]}),r&&(_==="desktop"||i)&&je.jsxs($e.Fragment,{children:[je.jsx(O$,{onClick:v?void 0:()=>l("am"),disabled:y||s===null,ownerState:b,className:k.amButton,children:je.jsx(Cr,{variant:"caption",children:"AM"})}),je.jsx(A$,{disabled:y||s===null,onClick:v?void 0:()=>l("pm"),ownerState:b,className:k.pmButton,children:je.jsx(Cr,{variant:"caption",children:"PM"})})]})]})}function D$(e){return _r("MuiClockNumber",e)}const wu=wr("MuiClockNumber",["root","selected","disabled"]),E$=["className","disabled","index","inner","label","selected"],R$=e=>{const{classes:t,selected:r,disabled:i}=e;return Tr({root:["root",r&&"selected",i&&"disabled"]},D$,t)},L$=wn("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${wu.disabled}`]:t.disabled},{[`&.${wu.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>Gt({height:Gi,width:Gi,position:"absolute",left:`calc((100% - ${Gi}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:e.palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:e.palette.background.paper},[`&.${wu.selected}`]:{color:e.palette.primary.contrastText},[`&.${wu.disabled}`]:{pointerEvents:"none",color:e.palette.text.disabled}},t.inner&&Gt({},e.typography.body2,{color:e.palette.text.secondary})));function E4(e){const t=fr({props:e,name:"MuiClockNumber"}),{className:r,disabled:i,index:c,inner:o,label:a,selected:n}=t,l=Vn(t,E$),f=t,s=R$(f),u=c%12/12*Math.PI*2-Math.PI/2,d=(Sl-Gi-2)/2*(o?.65:1),h=Math.round(Math.cos(u)*d),p=Math.round(Math.sin(u)*d);return je.jsx(L$,Gt({className:jr(r,s.root),"aria-disabled":i?!0:void 0,"aria-selected":n?!0:void 0,role:"option",style:{transform:`translate(${h}px, ${p+(Sl-Gi)/2}px`},ownerState:f},l,{children:a}))}const I$=({ampm:e,date:t,getClockNumberText:r,isDisabled:i,selectedId:c,utils:o})=>{const a=t?o.getHours(t):null,n=[],l=e?1:0,f=e?12:23,s=u=>a===null?!1:e?u===12?a===12||a===0:a===u||a-12===u:a===u;for(let u=l;u<=f;u+=1){let d=u.toString();u===0&&(d="00");const h=!e&&(u===0||u>12);d=o.formatNumber(d);const p=s(u);n.push(je.jsx(E4,{id:p?c:void 0,index:u,inner:h,selected:p,disabled:i(u),label:d,"aria-label":r(d)},u))}return n},c_=({utils:e,value:t,isDisabled:r,getClockNumberText:i,selectedId:c})=>{const o=e.formatNumber;return[[5,o("05")],[10,o("10")],[15,o("15")],[20,o("20")],[25,o("25")],[30,o("30")],[35,o("35")],[40,o("40")],[45,o("45")],[50,o("50")],[55,o("55")],[0,o("00")]].map(([a,n],l)=>{const f=a===t;return je.jsx(E4,{label:n,id:f?c:void 0,index:l+1,inner:!1,disabled:r(a),selected:f,"aria-label":i(n)},a)})};function R4(e){return _r("MuiClockPicker",e)}const F$=wr("MuiClockPicker",["root","arrowSwitcher"]),N$=e=>{const{classes:t}=e;return Tr({root:["root"],arrowSwitcher:["arrowSwitcher"]},R4,t)},j$=wn($y,{name:"MuiClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),$$=wn(x4,{name:"MuiClockPicker",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),B$=T4(),L4=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiClockPicker"}),{ampm:c=!1,ampmInClock:o=!1,autoFocus:a,components:n,componentsProps:l,date:f,disableIgnoringDatePartForTimeValidation:s,getClockLabelText:u,getHoursClockNumberText:d,getMinutesClockNumberText:h,getSecondsClockNumberText:p,leftArrowButtonText:m,maxTime:y,minTime:v,minutesStep:g=1,rightArrowButtonText:b,shouldDisableTime:x,showViewSwitcher:_,onChange:w,view:k,views:T=["hours","minutes"],openTo:M,onViewChange:S,className:C,disabled:P,readOnly:D}=i;B$({leftArrowButtonText:m,rightArrowButtonText:b,getClockLabelText:u,getHoursClockNumberText:d,getMinutesClockNumberText:h,getSecondsClockNumberText:p});const O=ti(),R=m??O.openPreviousView,F=b??O.openNextView,A=u??O.clockLabelText,z=d??O.hoursClockNumberText,B=h??O.minutesClockNumberText,$=p??O.secondsClockNumberText,{openView:j,setOpenView:N,nextView:E,previousView:W,handleChangeAndOpenNext:G}=jy({view:k,views:T,openTo:M,onViewChange:S,onChange:w}),L=ic(),q=yr(),H=$e.useMemo(()=>f||q.setSeconds(q.setMinutes(q.setHours(L,0),0),0),[f,L,q]),{meridiemMode:V,handleMeridiemChange:te}=_4(H,c,G),ee=$e.useCallback((X,re)=>{const ie=w4(s,q),le=({start:pe,end:Te})=>!(v&&ie(v,Te)||y&&ie(pe,y)),se=(pe,Te=1)=>pe%Te!==0?!1:x?!x(pe,re):!0;switch(re){case"hours":{const pe=F0(X,V,c),Te=q.setHours(H,pe),Se=q.setSeconds(q.setMinutes(Te,0),0),Oe=q.setSeconds(q.setMinutes(Te,59),59);return!le({start:Se,end:Oe})||!se(pe)}case"minutes":{const pe=q.setMinutes(H,X),Te=q.setSeconds(pe,0),Se=q.setSeconds(pe,59);return!le({start:Te,end:Se})||!se(X,g)}case"seconds":{const pe=q.setSeconds(H,X);return!le({start:pe,end:pe})||!se(X)}default:throw new Error("not supported")}},[c,H,s,y,V,v,g,x,q]),U=nS(),Q=$e.useMemo(()=>{switch(j){case"hours":{const X=(re,ie)=>{const le=F0(re,V,c);G(q.setHours(H,le),ie)};return{onChange:X,value:q.getHours(H),children:I$({date:f,utils:q,ampm:c,onChange:X,getClockNumberText:z,isDisabled:re=>P||ee(re,"hours"),selectedId:U})}}case"minutes":{const X=q.getMinutes(H),re=(ie,le)=>{G(q.setMinutes(H,ie),le)};return{value:X,onChange:re,children:c_({utils:q,value:X,onChange:re,getClockNumberText:B,isDisabled:ie=>P||ee(ie,"minutes"),selectedId:U})}}case"seconds":{const X=q.getSeconds(H),re=(ie,le)=>{G(q.setSeconds(H,ie),le)};return{value:X,onChange:re,children:c_({utils:q,value:X,onChange:re,getClockNumberText:$,isDisabled:ie=>P||ee(ie,"seconds"),selectedId:U})}}default:throw new Error("You must provide the type for ClockView")}},[j,q,f,c,z,B,$,V,G,H,ee,U,P]),Y=i,Z=N$(Y);return je.jsxs(j$,{ref:r,className:jr(Z.root,C),ownerState:Y,children:[_&&je.jsx($$,{className:Z.arrowSwitcher,leftArrowButtonText:R,rightArrowButtonText:F,components:n,componentsProps:l,onLeftClick:()=>N(W),onRightClick:()=>N(E),isLeftDisabled:!W,isRightDisabled:!E,ownerState:Y}),je.jsx(P$,Gt({autoFocus:a,date:f,ampmInClock:o,type:j,ampm:c,getClockLabelText:A,minutesStep:g,isTimeDisabled:ee,meridiemMode:V,handleMeridiemChange:te,selectedId:U,disabled:P,readOnly:D},Q))]})}),I4=e=>e.length===1&&e[0]==="year",F4=e=>e.length===2&&e.indexOf("month")!==-1&&e.indexOf("year")!==-1,z$=(e,t)=>I4(e)?{inputFormat:t.formats.year}:F4(e)?{disableMaskedInput:!0,inputFormat:t.formats.monthAndYear}:{inputFormat:t.formats.keyboardDate};function By(e,t){var r;const i=yr(),c=ac(),o=fr({props:e,name:t}),a=(r=o.views)!=null?r:["year","day"];return Gt({openTo:"day",disableFuture:!1,disablePast:!1},z$(a,i),o,{views:a,minDate:Va(i,o.minDate,c.minDate),maxDate:Va(i,o.maxDate,c.maxDate)})}const zy={emptyValue:null,getTodayValue:e=>e.date(),parseInput:Ry,areValuesEqual:(e,t,r)=>e.isEqual(t,r)};function N4(e){return _r("MuiPickersToolbar",e)}const qy=wr("MuiPickersToolbar",["root","content","penIconButton","penIconButtonLandscape"]),q$=e=>{const{classes:t,isLandscape:r}=e;return Tr({root:["root"],content:["content"],penIconButton:["penIconButton",r&&"penIconButtonLandscape"]},N4,t)},W$=wn("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>Gt({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),U$=wn(Jn,{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>Gt({flex:1},!e.isLandscape&&{alignItems:"center"})),H$=wn(jl,{name:"MuiPickersToolbar",slot:"PenIconButton",overridesResolver:(e,t)=>[{[`&.${qy.penIconButtonLandscape}`]:t.penIconButtonLandscape},t.penIconButton]})({}),V$=e=>e==="clock"?je.jsx(b4,{color:"inherit"}):je.jsx(y4,{color:"inherit"}),Wy=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiPickersToolbar"}),{children:c,className:o,getMobileKeyboardInputViewButtonText:a,isLandscape:n,isMobileKeyboardViewOpen:l,landscapeDirection:f="column",toggleMobileKeyboardView:s,toolbarTitle:u,viewType:d="calendar"}=i,h=i,p=ti(),m=q$(h);return je.jsxs(W$,{ref:r,className:jr(m.root,o),ownerState:h,children:[je.jsx(Cr,{color:"text.secondary",variant:"overline",children:u}),je.jsxs(U$,{container:!0,justifyContent:"space-between",className:m.content,ownerState:h,direction:n?f:"row",alignItems:n?"flex-start":"flex-end",children:[c,je.jsx(H$,{onClick:s,className:m.penIconButton,ownerState:h,color:"inherit","aria-label":a?a(l,d):p.inputModeToggleButtonAriaLabel(l,d),children:l?V$(d):je.jsx(vj,{color:"inherit"})})]})]})});function Y$(e){return _r("MuiDatePickerToolbar",e)}const G$=wr("MuiDatePickerToolbar",["root","title"]),X$=["parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],Z$=e=>{const{classes:t}=e;return Tr({root:["root"],title:["title"]},Y$,t)},K$=wn(Wy,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),J$=wn(Cr,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>Gt({},e.isLandscape&&{margin:"auto 16px auto auto"})),Uy=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiDatePickerToolbar"}),{parsedValue:c,isLandscape:o,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:n,toolbarFormat:l,toolbarPlaceholder:f="––",toolbarTitle:s,views:u}=i,d=Vn(i,X$),h=yr(),p=ti(),m=Z$(i),y=s??p.datePickerDefaultToolbarTitle,v=$e.useMemo(()=>c?l?h.formatByString(c,l):I4(u)?h.format(c,"year"):F4(u)?h.format(c,"month"):/en/.test(h.getCurrentLocaleCode())?h.format(c,"normalDateWithWeekday"):h.format(c,"normalDate"):f,[c,l,f,h,u]),g=i;return je.jsx(K$,Gt({ref:r,toolbarTitle:y,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:n,isLandscape:o,className:m.root},d,{children:je.jsx(J$,{variant:"h4",align:o?"left":"center",ownerState:g,className:m.title,children:v})}))}),Q$=["onAccept","onClear","onCancel","onSetToday","actions"],Hy=e=>{const{onAccept:t,onClear:r,onCancel:i,onSetToday:c,actions:o}=e,a=Vn(e,Q$),n=$e.useContext(Di),l=ti(),f=typeof o=="function"?o(n):o;if(f==null||f.length===0)return null;const s=f==null?void 0:f.map(u=>{switch(u){case"clear":return je.jsx(hi,{onClick:r,children:l.clearButtonLabel},u);case"cancel":return je.jsx(hi,{onClick:i,children:l.cancelButtonLabel},u);case"accept":return je.jsx(hi,{onClick:t,children:l.okButtonLabel},u);case"today":return je.jsx(hi,{onClick:c,children:l.todayButtonLabel},u);default:return null}});return je.jsx(C9,Gt({},a,{children:s}))};function eB(e){return _r("MuiPickersPopper",e)}wr("MuiPickersPopper",["root","paper"]);const tB=["onClick","onTouchStart"],nB=e=>{const{classes:t}=e;return Tr({root:["root"],paper:["paper"]},eB,t)},rB=wn(O9,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),aB=wn(rS,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>Gt({transformOrigin:"top center",outline:0},e.placement==="top"&&{transformOrigin:"bottom center"}));function iB(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){o.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),o.current=!1}},[e]);const a=Od(l=>{if(!o.current)return;const f=i.current;i.current=!1;const s=sg(c.current);if(!c.current||"clientX"in l&&iB(l,s))return;if(r.current){r.current=!1;return}let u;l.composedPath?u=l.composedPath().indexOf(c.current)>-1:u=!s.documentElement.contains(l.target)||c.current.contains(l.target),!u&&!f&&t(l)}),n=()=>{i.current=!0};return $e.useEffect(()=>{if(e){const l=sg(c.current),f=()=>{r.current=!0};return l.addEventListener("touchstart",a),l.addEventListener("touchmove",f),()=>{l.removeEventListener("touchstart",a),l.removeEventListener("touchmove",f)}}},[e,a]),$e.useEffect(()=>{if(e){const l=sg(c.current);return l.addEventListener("click",a),()=>{l.removeEventListener("click",a),i.current=!1}}},[e,a]),[c,n,n]}function lB(e){var t;const r=fr({props:e,name:"MuiPickersPopper"}),{anchorEl:i,children:c,containerRef:o=null,onBlur:a,onClose:n,onClear:l,onAccept:f,onCancel:s,onSetToday:u,open:d,PopperProps:h,role:p,TransitionComponent:m=P9,TrapFocusProps:y,PaperProps:v={},components:g,componentsProps:b}=r;$e.useEffect(()=>{function B($){d&&($.key==="Escape"||$.key==="Esc")&&n()}return document.addEventListener("keydown",B),()=>{document.removeEventListener("keydown",B)}},[n,d]);const x=$e.useRef(null);$e.useEffect(()=>{p!=="tooltip"&&(d?x.current=i4(document):x.current&&x.current instanceof HTMLElement&&setTimeout(()=>{x.current instanceof HTMLElement&&x.current.focus()}))},[d,p]);const[_,w,k]=oB(d,a??n),T=$e.useRef(null),M=_l(T,o),S=_l(M,_),C=r,P=nB(C),{onClick:D,onTouchStart:O}=v,R=Vn(v,tB),F=B=>{B.key==="Escape"&&(B.stopPropagation(),n())},A=(t=g==null?void 0:g.ActionBar)!=null?t:Hy,z=(g==null?void 0:g.PaperContent)||$e.Fragment;return je.jsx(rB,Gt({transition:!0,role:p,open:d,anchorEl:i,onKeyDown:F,className:P.root},h,{children:({TransitionProps:B,placement:$})=>je.jsx(A9,Gt({open:d,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:p==="tooltip",isEnabled:()=>!0},y,{children:je.jsx(m,Gt({},B,{children:je.jsx(aB,Gt({tabIndex:-1,elevation:8,ref:S,onClick:j=>{w(j),D&&D(j)},onTouchStart:j=>{k(j),O&&O(j)},ownerState:Gt({},C,{placement:$}),className:P.paper},R,{children:je.jsxs(z,Gt({},b==null?void 0:b.paperContent,{children:[c,je.jsx(A,Gt({onAccept:f,onClear:l,onCancel:s,onSetToday:u,actions:[]},b==null?void 0:b.actionBar))]}))}))}))}))}))}function Vy(e){const{children:t,DateInputProps:r,KeyboardDateInputComponent:i,onClear:c,onDismiss:o,onCancel:a,onAccept:n,onSetToday:l,open:f,PopperProps:s,PaperProps:u,TransitionComponent:d,components:h,componentsProps:p}=e,m=$e.useRef(null),y=_l(r.inputRef,m);return je.jsxs(Di.Provider,{value:"desktop",children:[je.jsx(i,Gt({},r,{inputRef:y})),je.jsx(lB,{role:"dialog",open:f,anchorEl:m.current,TransitionComponent:d,PopperProps:s,PaperProps:u,onClose:o,onCancel:a,onClear:c,onAccept:n,onSetToday:l,components:h,componentsProps:p,children:t})]})}const sB=e=>{const[,t]=$e.useReducer(l=>l+1,0),r=$e.useRef(null),{replace:i,append:c}=e,o=i?i(e.format(e.value)):e.format(e.value),a=$e.useRef(!1),n=l=>{const f=l.target.value;r.current=[f,l.target,f.length>o.length,a.current,o===e.format(f)],t()};return $e.useLayoutEffect(()=>{if(r.current==null)return;let[l,f,s,u,d]=r.current;r.current=null;const h=u&&d,m=l.slice(f.selectionStart).search(e.accept||/\d/g),y=m!==-1?m:0,v=w=>(w.match(e.accept||/\d/g)||[]).join(""),g=v(l.substr(0,f.selectionStart)),b=w=>{let k=0,T=0;for(let M=0;M!==g.length;++M){let S=w.indexOf(g[M],k)+1,C=v(w).indexOf(g[M],T)+1;C-T>1&&(S=k,C=T),T=Math.max(C,T),k=Math.max(k,S)}return k};if(e.mask===!0&&s&&!d){let w=b(l);const k=v(l.substr(w))[0];w=l.indexOf(k,w),l=`${l.substr(0,w)}${l.substr(w+1)}`}let x=e.format(l);c!=null&&f.selectionStart===l.length&&!d&&(s?x=c(x):v(x.slice(-1))===""&&(x=x.slice(0,-1)));const _=i?i(x):x;return o===_?t():e.onChange(_),()=>{let w=b(x);if(e.mask!=null&&(s||u&&!h))for(;x[w]&&v(x[w])==="";)w+=1;f.selectionStart=f.selectionEnd=w+(h?1+y:0)}}),$e.useEffect(()=>{const l=s=>{s.code==="Delete"&&(a.current=!0)},f=s=>{s.code==="Delete"&&(a.current=!1)};return document.addEventListener("keydown",l),document.addEventListener("keyup",f),()=>{document.removeEventListener("keydown",l),document.removeEventListener("keyup",f)}},[]),{value:r.current!=null?r.current[0]:o,onChange:n}},N0=(e,t,r)=>{const i=e.date(t);return t===null?"":e.isValid(i)?e.formatByString(i,r):""},jf="_",j4="2019-11-21T22:30:00.000",$4="2019-01-01T09:00:00.000";function uB(e,t,r,i){if(e)return e;const o=i.formatByString(i.date($4),t).replace(r,jf),a=i.formatByString(i.date(j4),t).replace(r,"_");return o===a?o:""}function cB(e,t,r,i){if(!e)return!1;const o=i.formatByString(i.date($4),t).replace(r,jf),a=i.formatByString(i.date(j4),t).replace(r,"_"),n=a===o&&e===a;return!n&&i.lib,n}const fB=(e,t)=>r=>{let i=0;return r.split("").map((c,o)=>{if(t.lastIndex=0,i>e.length-1)return"";const a=e[i],n=e[i+1],l=t.test(c)?c:"",f=a===jf?l:a+l;return i+=f.length,o===r.length-1&&n&&n!==jf?f?f+n:"":f}).join("")},dB=({acceptRegex:e=/[\d]/gi,disabled:t,disableMaskedInput:r,ignoreInvalidInputs:i,inputFormat:c,inputProps:o,label:a,mask:n,onChange:l,rawValue:f,readOnly:s,rifmFormatter:u,TextFieldProps:d,validationError:h})=>{const p=yr(),m=p.getFormatHelperText(c),{shouldUseMaskedInput:y,maskToUse:v}=$e.useMemo(()=>{if(r)return{shouldUseMaskedInput:!1,maskToUse:""};const O=uB(n,c,e,p);return{shouldUseMaskedInput:cB(O,c,e,p),maskToUse:O}},[e,r,c,n,p]),g=$e.useMemo(()=>y&&v?fB(v,e):O=>O,[e,v,y]),b=f===null?null:p.date(f),[x,_]=$e.useState(b),[w,k]=$e.useState(N0(p,f,c)),T=$e.useRef(),M=$e.useRef(p.locale),S=$e.useRef(c);$e.useEffect(()=>{const O=f!==T.current,R=p.locale!==M.current,F=c!==S.current;if(T.current=f,M.current=p.locale,S.current=c,!O&&!R&&!F)return;const A=f===null?null:p.date(f),z=f===null||p.isValid(A);let B=x===null&&A===null;if(x!==null&&A!==null){const j=p.isEqual(x,A);if(j)B=!0;else{const N=Math.abs(p.getDiff(x,A));B=N===0?j:N<1e3}}if(!R&&!F&&(!z||B))return;const $=N0(p,f,c);_(A),k($)},[p,f,c,x]);const C=O=>{const R=O===""||O===n?"":O;k(R);const F=R===null?null:p.parse(R,c);i&&!p.isValid(F)||(_(F),l(F,R||void 0))},P=sB({value:w,onChange:C,format:u||g});return Gt({label:a,disabled:t,error:h,inputProps:Gt({},y?P:{value:w,onChange:O=>{C(O.currentTarget.value)}},{disabled:t,placeholder:m,readOnly:s,type:y?"tel":"text"},o)},d)},hB=["className","components","disableOpenPicker","getOpenDialogAriaText","InputAdornmentProps","InputProps","inputRef","openPicker","OpenPickerButtonProps","renderInput"],Bd=$e.forwardRef(function(t,r){const{className:i,components:c={},disableOpenPicker:o,getOpenDialogAriaText:a,InputAdornmentProps:n,InputProps:l,inputRef:f,openPicker:s,OpenPickerButtonProps:u,renderInput:d}=t,h=Vn(t,hB),p=ti(),m=a??p.openDatePickerDialogue,y=yr(),v=dB(h),g=(n==null?void 0:n.position)||"end",b=c.OpenPickerIcon||y4;return d(Gt({ref:r,inputRef:f,className:i},v,{InputProps:Gt({},l,{[`${g}Adornment`]:o?void 0:je.jsx(D9,Gt({position:g},n,{children:je.jsx(jl,Gt({edge:g,disabled:h.disabled||h.readOnly,"aria-label":m(h.rawValue,y)},u,{onClick:s,children:je.jsx(b,{})}))}))})}))});function f_(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const pB=(e,t)=>{const[r,i]=$e.useState(f_);return my(()=>{const o=()=>{i(f_())};return window.addEventListener("orientationchange",o),()=>{window.removeEventListener("orientationchange",o)}},[]),bo(e,["hours","minutes","seconds"])?!1:(t||r)==="landscape"},gB=({autoFocus:e,openView:t})=>{const[r,i]=$e.useState(e?t:null),c=$e.useCallback(o=>a=>{i(a?o:n=>o===n?null:n)},[]);return{focusedView:r,setFocusedView:c}};function mB(e){return _r("MuiCalendarOrClockPicker",e)}wr("MuiCalendarOrClockPicker",["root","mobileKeyboardInputView"]);const vB=["autoFocus","className","parsedValue","DateInputProps","isMobileKeyboardViewOpen","onDateChange","onViewChange","openTo","orientation","showToolbar","toggleMobileKeyboardView","ToolbarComponent","toolbarFormat","toolbarPlaceholder","toolbarTitle","views","dateRangeIcon","timeIcon","hideTabs","classes"],yB=e=>{const{classes:t}=e;return Tr({root:["root"],mobileKeyboardInputView:["mobileKeyboardInputView"]},mB,t)},bB=wn("div",{name:"MuiCalendarOrClockPicker",slot:"MobileKeyboardInputView",overridesResolver:(e,t)=>t.mobileKeyboardInputView})({padding:"16px 24px"}),xB=wn("div",{name:"MuiCalendarOrClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>Gt({display:"flex",flexDirection:"column"},e.isLandscape&&{flexDirection:"row"})),wB={fullWidth:!0},d_=e=>e==="year"||e==="month"||e==="day",h_=e=>e==="hours"||e==="minutes"||e==="seconds";function Ei(e){var t,r;const i=fr({props:e,name:"MuiCalendarOrClockPicker"}),{autoFocus:c,parsedValue:o,DateInputProps:a,isMobileKeyboardViewOpen:n,onDateChange:l,onViewChange:f,openTo:s,orientation:u,showToolbar:d,toggleMobileKeyboardView:h,ToolbarComponent:p=()=>null,toolbarFormat:m,toolbarPlaceholder:y,toolbarTitle:v,views:g,dateRangeIcon:b,timeIcon:x,hideTabs:_}=i,w=Vn(i,vB),k=(t=w.components)==null?void 0:t.Tabs,T=pB(g,u),M=$e.useContext(Di),S=yB(i),C=d??M!=="desktop",P=!_&&typeof window<"u"&&window.innerHeight>667,D=$e.useCallback(($,j)=>{l($,M,j)},[l,M]),O=$e.useCallback($=>{n&&h(),f&&f($)},[n,f,h]),{openView:R,setOpenView:F,handleChangeAndOpenNext:A}=jy({view:void 0,views:g,openTo:s,onChange:D,onViewChange:O}),{focusedView:z,setFocusedView:B}=gB({autoFocus:c,openView:R});return je.jsxs(xB,{ownerState:{isLandscape:T},className:S.root,children:[C&&je.jsx(p,Gt({},w,{views:g,isLandscape:T,parsedValue:o,onChange:D,setOpenView:F,openView:R,toolbarTitle:v,toolbarFormat:m,toolbarPlaceholder:y,isMobileKeyboardViewOpen:n,toggleMobileKeyboardView:h})),P&&!!k&&je.jsx(k,Gt({dateRangeIcon:b,timeIcon:x,view:R,onChange:F},(r=w.componentsProps)==null?void 0:r.tabs)),je.jsx($y,{children:n?je.jsx(bB,{className:S.mobileKeyboardInputView,children:je.jsx(Bd,Gt({},a,{ignoreInvalidInputs:!0,disableOpenPicker:!0,TextFieldProps:wB}))}):je.jsxs($e.Fragment,{children:[d_(R)&&je.jsx(C4,Gt({autoFocus:c,date:o,onViewChange:F,onChange:A,view:R,views:g.filter(d_),focusedView:z,onFocusedViewChange:B},w)),h_(R)&&je.jsx(L4,Gt({},w,{autoFocus:c,date:o,view:R,views:g.filter(h_),onChange:A,onViewChange:F,showViewSwitcher:M==="desktop"}))]})})]})}const _B=({open:e,onOpen:t,onClose:r})=>{const i=$e.useRef(typeof e=="boolean").current,[c,o]=$e.useState(!1);$e.useEffect(()=>{if(i){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");o(e)}},[i,e]);const a=$e.useCallback(n=>{i||o(n),n&&t&&t(),!n&&r&&r()},[i,t,r]);return{isOpen:c,setIsOpen:a}},Ri=(e,t)=>{const{onAccept:r,onChange:i,value:c,closeOnSelect:o}=e,a=yr(),{isOpen:n,setIsOpen:l}=_B(e),f=$e.useMemo(()=>t.parseInput(a,c),[t,a,c]),[s,u]=$e.useState(f),[d,h]=$e.useState(()=>({committed:f,draft:f,resetFallback:f})),p=$e.useCallback(w=>{h(k=>{switch(w.action){case"setAll":case"acceptAndClose":return{draft:w.value,committed:w.value,resetFallback:w.value};case"setCommitted":return Gt({},k,{draft:w.value,committed:w.value});case"setDraft":return Gt({},k,{draft:w.value});default:return k}}),(w.forceOnChangeCall||!w.skipOnChangeCall&&!t.areValuesEqual(a,d.committed,w.value))&&i(w.value),w.action==="acceptAndClose"&&(l(!1),r&&!t.areValuesEqual(a,d.resetFallback,w.value)&&r(w.value))},[r,i,l,d,a,t]);$e.useEffect(()=>{a.isValid(f)&&u(f)},[a,f]),$e.useEffect(()=>{n&&p({action:"setAll",value:f,skipOnChangeCall:!0})},[n]),t.areValuesEqual(a,d.committed,f)||p({action:"setCommitted",value:f,skipOnChangeCall:!0});const m=$e.useMemo(()=>({open:n,onClear:()=>{p({value:t.emptyValue,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(a,c,t.emptyValue)})},onAccept:()=>{p({value:d.draft,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(a,c,f)})},onDismiss:()=>{p({value:d.committed,action:"acceptAndClose"})},onCancel:()=>{p({value:d.resetFallback,action:"acceptAndClose"})},onSetToday:()=>{p({value:t.getTodayValue(a),action:"acceptAndClose"})}}),[p,n,a,d,t,c,f]),[y,v]=$e.useState(!1),g=$e.useMemo(()=>({parsedValue:d.draft,isMobileKeyboardViewOpen:y,toggleMobileKeyboardView:()=>v(!y),onDateChange:(w,k,T="partial")=>{switch(T){case"shallow":return p({action:"setDraft",value:w,skipOnChangeCall:!0});case"partial":return p({action:"setDraft",value:w});case"finish":return p(o??k==="desktop"?{value:w,action:"acceptAndClose"}:{value:w,action:"setCommitted"});default:throw new Error("MUI: Invalid selectionState passed to `onDateChange`")}}}),[p,y,d.draft,o]),b=$e.useCallback((w,k)=>{const T=t.valueReducer?t.valueReducer(a,s,w):w;i(T,k)},[i,t,s,a]),x=$e.useMemo(()=>({onChange:b,open:n,rawValue:c,openPicker:()=>l(!0)}),[b,n,c,l]),_={pickerProps:g,inputProps:x,wrapperProps:m};return $e.useDebugValue(_,()=>({MuiPickerState:{dateState:d,other:_}})),_},TB=["onChange","PopperProps","PaperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],B4=$e.forwardRef(function(t,r){const i=By(t,"MuiDesktopDatePicker"),c=Fy(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ri(i,zy),{PopperProps:l,PaperProps:f,ToolbarComponent:s=Uy,TransitionComponent:u,components:d,componentsProps:h}=i,p=Vn(i,TB),m=Gt({},a,p,{components:d,componentsProps:h,ref:r,validationError:c});return je.jsx(Vy,Gt({},n,{DateInputProps:m,KeyboardDateInputComponent:Bd,PopperProps:l,PaperProps:f,TransitionComponent:u,components:d,componentsProps:h,children:je.jsx(Ei,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:s,DateInputProps:m,components:d,componentsProps:h},p))}))}),kB=wn(E9)({[`& .${z2.container}`]:{outline:0},[`& .${z2.paper}`]:{outline:0,minWidth:Ny}}),MB=wn(R9)({"&:first-of-type":{padding:0}}),SB=e=>{var t;const{children:r,DialogProps:i={},onAccept:c,onClear:o,onDismiss:a,onCancel:n,onSetToday:l,open:f,components:s,componentsProps:u}=e,d=(t=s==null?void 0:s.ActionBar)!=null?t:Hy;return je.jsxs(kB,Gt({open:f,onClose:a},i,{children:[je.jsx(MB,{children:r}),je.jsx(d,Gt({onAccept:c,onClear:o,onCancel:n,onSetToday:l,actions:["cancel","accept"]},u==null?void 0:u.actionBar))]}))},CB=["children","DateInputProps","DialogProps","onAccept","onClear","onDismiss","onCancel","onSetToday","open","PureDateInputComponent","components","componentsProps"];function Yy(e){const{children:t,DateInputProps:r,DialogProps:i,onAccept:c,onClear:o,onDismiss:a,onCancel:n,onSetToday:l,open:f,PureDateInputComponent:s,components:u,componentsProps:d}=e,h=Vn(e,CB);return je.jsxs(Di.Provider,{value:"mobile",children:[je.jsx(s,Gt({components:u},h,r)),je.jsx(SB,{DialogProps:i,onAccept:c,onClear:o,onDismiss:a,onCancel:n,onSetToday:l,open:f,components:u,componentsProps:d,children:t})]})}const Gy=$e.forwardRef(function(t,r){const{disabled:i,getOpenDialogAriaText:c,inputFormat:o,InputProps:a,inputRef:n,label:l,openPicker:f,rawValue:s,renderInput:u,TextFieldProps:d={},validationError:h,className:p}=t,m=ti(),y=c??m.openDatePickerDialogue,v=yr(),g=$e.useMemo(()=>Gt({},a,{readOnly:!0}),[a]),b=N0(v,s,o),x=Od(_=>{_.stopPropagation(),f()});return u(Gt({label:l,disabled:i,ref:r,inputRef:n,error:h,InputProps:g,className:p},!t.readOnly&&!t.disabled&&{onClick:x},{inputProps:Gt({disabled:i,readOnly:!0,"aria-readonly":!0,"aria-label":y(s,v),value:b},!t.readOnly&&{onClick:x},{onKeyDown:a4(f)})},d))}),OB=["ToolbarComponent","value","onChange","components","componentsProps"],z4=$e.forwardRef(function(t,r){const i=By(t,"MuiMobileDatePicker"),c=Fy(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ri(i,zy),{ToolbarComponent:l=Uy,components:f,componentsProps:s}=i,u=Vn(i,OB),d=Gt({},a,u,{components:f,componentsProps:s,ref:r,validationError:c});return je.jsx(Yy,Gt({},u,n,{DateInputProps:d,PureDateInputComponent:Gy,components:f,componentsProps:s,children:je.jsx(Ei,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:l,DateInputProps:d,components:f,componentsProps:s},u))}))}),AB=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],PB=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:c="@media (pointer: fine)",DialogProps:o,PopperProps:a,TransitionComponent:n}=i,l=Vn(i,AB);return vy(c,{defaultMatches:!0})?je.jsx(B4,Gt({ref:r,PopperProps:a,TransitionComponent:n},l)):je.jsx(z4,Gt({ref:r,DialogProps:o},l))});function Xy(e,t){var r,i,c,o,a;const n=fr({props:e,name:t}),l=yr(),f=ac(),s=(r=n.ampm)!=null?r:l.is12HourCycleInCurrentLocale();if(n.orientation!=null&&n.orientation!=="portrait")throw new Error("We are not supporting custom orientation for DateTimePicker yet :(");return Gt({ampm:s,orientation:"portrait",openTo:"day",views:["year","day","hours","minutes"],ampmInClock:!0,acceptRegex:s?/[\dap]/gi:/\d/gi,disableMaskedInput:!1,inputFormat:s?l.formats.keyboardDateTime12h:l.formats.keyboardDateTime24h,disableIgnoringDatePartForTimeValidation:!!(n.minDateTime||n.maxDateTime),disablePast:!1,disableFuture:!1},n,{minDate:Va(l,(i=n.minDateTime)!=null?i:n.minDate,f.minDate),maxDate:Va(l,(c=n.maxDateTime)!=null?c:n.maxDate,f.maxDate),minTime:(o=n.minDateTime)!=null?o:n.minTime,maxTime:(a=n.maxDateTime)!=null?a:n.maxTime})}const Zy={emptyValue:null,getTodayValue:e=>e.date(),parseInput:Ry,areValuesEqual:(e,t,r)=>e.isEqual(t,r)},DB=e=>{switch(e){case"year":case"month":case"day":return"calendar";default:return"clock"}};function EB(e){return _r("PrivatePickersToolbarText",e)}const p_=wr("PrivatePickersToolbarText",["root","selected"]),RB=["className","selected","value"],LB=e=>{const{classes:t,selected:r}=e;return Tr({root:["root",r&&"selected"]},EB,t)},IB=wn(Cr,{name:"PrivatePickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${p_.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:e.palette.text.secondary,[`&.${p_.selected}`]:{color:e.palette.text.primary}})),Ky=$e.forwardRef(function(t,r){const{className:i,value:c}=t,o=Vn(t,RB),a=LB(t);return je.jsx(IB,Gt({ref:r,className:jr(i,a.root),component:"span"},o,{children:c}))}),FB=["align","className","selected","typographyClassName","value","variant"],NB=e=>{const{classes:t}=e;return Tr({root:["root"]},N4,t)},jB=wn(hi,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),ci=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiPickersToolbarButton"}),{align:c,className:o,selected:a,typographyClassName:n,value:l,variant:f}=i,s=Vn(i,FB),u=NB(i);return je.jsx(jB,Gt({variant:"text",ref:r,className:jr(o,u.root)},s,{children:je.jsx(Ky,{align:c,className:n,variant:f,value:l,selected:a})}))});function $B(e){return _r("MuiDateTimePickerToolbar",e)}const BB=wr("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","separator"]),zB=["ampm","parsedValue","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],qB=e=>{const{classes:t}=e;return Tr({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer"],separator:["separator"]},$B,t)},WB=wn(Wy,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",[`& .${qy.penIconButton}`]:Gt({position:"absolute",top:8},e.direction==="rtl"?{left:8}:{right:8})})),UB=wn("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),HB=wn("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})({display:"flex"}),g_=wn(Ky,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({margin:"0 4px 0 2px",cursor:"default"});function Jy(e){const t=fr({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:r,parsedValue:i,isMobileKeyboardViewOpen:c,openView:o,setOpenView:a,toggleMobileKeyboardView:n,toolbarFormat:l,toolbarPlaceholder:f="––",toolbarTitle:s,views:u}=t,d=Vn(t,zB),h=t,p=yr(),m=ti(),y=qB(h),v=s??m.dateTimePickerDefaultToolbarTitle,g=x=>r?p.format(x,"hours12h"):p.format(x,"hours24h"),b=$e.useMemo(()=>i?l?p.formatByString(i,l):p.format(i,"shortDate"):f,[i,l,f,p]);return je.jsxs(WB,Gt({toolbarTitle:v,isMobileKeyboardViewOpen:c,toggleMobileKeyboardView:n,className:y.root,viewType:DB(o)},d,{isLandscape:!1,ownerState:h,children:[je.jsxs(UB,{className:y.dateContainer,ownerState:h,children:[u.includes("year")&&je.jsx(ci,{tabIndex:-1,variant:"subtitle1",onClick:()=>a("year"),selected:o==="year",value:i?p.format(i,"year"):"–"}),u.includes("day")&&je.jsx(ci,{tabIndex:-1,variant:"h4",onClick:()=>a("day"),selected:o==="day",value:b})]}),je.jsxs(HB,{className:y.timeContainer,ownerState:h,children:[u.includes("hours")&&je.jsx(ci,{variant:"h3",onClick:()=>a("hours"),selected:o==="hours",value:i?g(i):"--"}),u.includes("minutes")&&je.jsxs($e.Fragment,{children:[je.jsx(g_,{variant:"h3",value:":",className:y.separator,ownerState:h}),je.jsx(ci,{variant:"h3",onClick:()=>a("minutes"),selected:o==="minutes",value:i?p.format(i,"minutes"):"--"})]}),u.includes("seconds")&&je.jsxs($e.Fragment,{children:[je.jsx(g_,{variant:"h3",value:":",className:y.separator,ownerState:h}),je.jsx(ci,{variant:"h3",onClick:()=>a("seconds"),selected:o==="seconds",value:i?p.format(i,"seconds"):"--"})]})]})]}))}const q4=({adapter:e,value:t,props:r})=>{const{minTime:i,maxTime:c,minutesStep:o,shouldDisableTime:a,disableIgnoringDatePartForTimeValidation:n}=r,l=e.utils.date(t),f=w4(n,e.utils);if(t===null)return null;switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(i&&f(i,l)):return"minTime";case!!(c&&f(l,c)):return"maxTime";case!!(a&&a(e.utils.getHours(l),"hours")):return"shouldDisableTime-hours";case!!(a&&a(e.utils.getMinutes(l),"minutes")):return"shouldDisableTime-minutes";case!!(a&&a(e.utils.getSeconds(l),"seconds")):return"shouldDisableTime-seconds";case!!(o&&e.utils.getMinutes(l)%o!==0):return"minutesStep";default:return null}},VB=(e,t)=>e===t,Qy=e=>Ly(e,q4,VB),YB=["minDate","maxDate","disableFuture","shouldDisableDate","disablePast"],GB=({props:e,value:t,adapter:r})=>{const{minDate:i,maxDate:c,disableFuture:o,shouldDisableDate:a,disablePast:n}=e,l=Vn(e,YB),f=Iy({adapter:r,value:t,props:{minDate:i,maxDate:c,disableFuture:o,shouldDisableDate:a,disablePast:n}});return f!==null?f:q4({adapter:r,value:t,props:l})},XB=(e,t)=>e===t;function e1(e){return Ly(e,GB,XB)}function ZB(e){return _r("MuiDateTimePickerTabs",e)}const KB=wr("MuiDateTimePickerTabs",["root"]),JB=e=>["day","month","year"].includes(e)?"date":"time",QB=e=>e==="date"?"day":"hours",ez=e=>{const{classes:t}=e;return Tr({root:["root"]},ZB,t)},tz=wn(aS,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>Gt({boxShadow:`0 -1px 0 0 inset ${t.palette.divider}`},e.wrapperVariant==="desktop"&&{order:1,boxShadow:`0 1px 0 0 inset ${t.palette.divider}`,[`& .${L9.indicator}`]:{bottom:"auto",top:0}})),zd=function(t){const r=fr({props:t,name:"MuiDateTimePickerTabs"}),{dateRangeIcon:i=je.jsx(mj,{}),onChange:c,timeIcon:o=je.jsx(yj,{}),view:a}=r,n=ti(),l=$e.useContext(Di),f=Gt({},r,{wrapperVariant:l}),s=ez(f),u=(d,h)=>{c(QB(h))};return je.jsxs(tz,{ownerState:f,variant:"fullWidth",value:JB(a),onChange:u,className:s.root,children:[je.jsx(A0,{value:"date","aria-label":n.dateTableLabel,icon:je.jsx($e.Fragment,{children:i})}),je.jsx(A0,{value:"time","aria-label":n.timeTableLabel,icon:je.jsx($e.Fragment,{children:o})})]})},nz=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps","hideTabs"],W4=$e.forwardRef(function(t,r){const i=Xy(t,"MuiDesktopDateTimePicker"),c=e1(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ri(i,Zy),{PaperProps:l,PopperProps:f,ToolbarComponent:s=Jy,TransitionComponent:u,components:d,componentsProps:h,hideTabs:p=!0}=i,m=Vn(i,nz),y=$e.useMemo(()=>Gt({Tabs:zd},d),[d]),v=Gt({},a,m,{components:y,componentsProps:h,ref:r,validationError:c});return je.jsx(Vy,Gt({},n,{DateInputProps:v,KeyboardDateInputComponent:Bd,PopperProps:f,PaperProps:l,TransitionComponent:u,components:y,componentsProps:h,children:je.jsx(Ei,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:s,DateInputProps:v,components:y,componentsProps:h,hideTabs:p},m))}))}),rz=["ToolbarComponent","value","onChange","components","componentsProps","hideTabs"],U4=$e.forwardRef(function(t,r){const i=Xy(t,"MuiMobileDateTimePicker"),c=e1(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ri(i,Zy),{ToolbarComponent:l=Jy,components:f,componentsProps:s,hideTabs:u=!1}=i,d=Vn(i,rz),h=$e.useMemo(()=>Gt({Tabs:zd},f),[f]),p=Gt({},a,d,{components:h,componentsProps:s,ref:r,validationError:c});return je.jsx(Yy,Gt({},d,n,{DateInputProps:p,PureDateInputComponent:Gy,components:h,componentsProps:s,children:je.jsx(Ei,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:l,DateInputProps:p,components:h,componentsProps:s,hideTabs:u},d))}))}),az=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],iz=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:c="@media (pointer: fine)",DialogProps:o,PopperProps:a,TransitionComponent:n}=i,l=Vn(i,az);return vy(c,{defaultMatches:!0})?je.jsx(W4,Gt({ref:r,PopperProps:a,TransitionComponent:n},l)):je.jsx(U4,Gt({ref:r,DialogProps:o},l))});function t1(e,t){var r;const i=fr({props:e,name:t}),c=yr(),o=(r=i.ampm)!=null?r:c.is12HourCycleInCurrentLocale(),n=ti().openTimePickerDialogue;return Gt({ampm:o,openTo:"hours",views:["hours","minutes"],acceptRegex:o?/[\dapAP]/gi:/\d/gi,disableMaskedInput:!1,getOpenDialogAriaText:n,inputFormat:o?c.formats.fullTime12h:c.formats.fullTime24h},i,{components:Gt({OpenPickerIcon:b4},i.components)})}const n1={emptyValue:null,parseInput:Ry,getTodayValue:e=>e.date(),areValuesEqual:(e,t,r)=>e.isEqual(t,r),valueReducer:(e,t,r)=>!t||!e.isValid(r)?r:e.mergeDateAndTime(t,r)};function oz(e){return _r("MuiTimePickerToolbar",e)}const vl=wr("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),lz=["ampm","ampmInClock","parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarTitle","views","disabled","readOnly"],sz=e=>{const{theme:t,isLandscape:r,classes:i}=e,c={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",r&&"hourMinuteLabelLandscape",t.direction==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Tr(c,oz,i)},uz=wn(Wy,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({[`& .${qy.penIconButtonLandscape}`]:{marginTop:"auto"}}),cz=wn(Ky,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),fz=wn("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${vl.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${vl.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>Gt({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"})),dz=wn("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${vl.ampmLabel}`]:t.ampmLabel},{[`&.${vl.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>Gt({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${vl.ampmLabel}`]:{fontSize:17}}));function r1(e){const t=fr({props:e,name:"MuiTimePickerToolbar"}),{ampm:r,ampmInClock:i,parsedValue:c,isLandscape:o,isMobileKeyboardViewOpen:a,onChange:n,openView:l,setOpenView:f,toggleMobileKeyboardView:s,toolbarTitle:u,views:d,disabled:h,readOnly:p}=t,m=Vn(t,lz),y=yr(),v=ti(),g=u??v.timePickerDefaultToolbarTitle,b=Ad(),x=!!(r&&!i),{meridiemMode:_,handleMeridiemChange:w}=_4(c,r,n),k=C=>r?y.format(C,"hours12h"):y.format(C,"hours24h"),T=t,M=sz(Gt({},T,{theme:b})),S=je.jsx(cz,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:M.separator});return je.jsxs(uz,Gt({viewType:"clock",landscapeDirection:"row",toolbarTitle:g,isLandscape:o,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:s,ownerState:T,className:M.root},m,{children:[je.jsxs(fz,{className:M.hourMinuteLabel,ownerState:T,children:[bo(d,"hours")&&je.jsx(ci,{tabIndex:-1,variant:"h3",onClick:()=>f("hours"),selected:l==="hours",value:c?k(c):"--"}),bo(d,["hours","minutes"])&&S,bo(d,"minutes")&&je.jsx(ci,{tabIndex:-1,variant:"h3",onClick:()=>f("minutes"),selected:l==="minutes",value:c?y.format(c,"minutes"):"--"}),bo(d,["minutes","seconds"])&&S,bo(d,"seconds")&&je.jsx(ci,{variant:"h3",onClick:()=>f("seconds"),selected:l==="seconds",value:c?y.format(c,"seconds"):"--"})]}),x&&je.jsxs(dz,{className:M.ampmSelection,ownerState:T,children:[je.jsx(ci,{disableRipple:!0,variant:"subtitle2",selected:_==="am",typographyClassName:M.ampmLabel,value:y.getMeridiemText("am"),onClick:p?void 0:()=>w("am"),disabled:h}),je.jsx(ci,{disableRipple:!0,variant:"subtitle2",selected:_==="pm",typographyClassName:M.ampmLabel,value:y.getMeridiemText("pm"),onClick:p?void 0:()=>w("pm"),disabled:h})]})]}))}const hz=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],H4=$e.forwardRef(function(t,r){const i=t1(t,"MuiDesktopTimePicker"),c=Qy(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ri(i,n1),{PaperProps:l,PopperProps:f,ToolbarComponent:s=r1,TransitionComponent:u,components:d,componentsProps:h}=i,p=Vn(i,hz),m=Gt({},a,p,{components:d,componentsProps:h,ref:r,validationError:c});return je.jsx(Vy,Gt({},n,{DateInputProps:m,KeyboardDateInputComponent:Bd,PopperProps:f,PaperProps:l,TransitionComponent:u,components:d,componentsProps:h,children:je.jsx(Ei,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:s,DateInputProps:m,components:d,componentsProps:h},p))}))}),pz=["ToolbarComponent","value","onChange","components","componentsProps"],V4=$e.forwardRef(function(t,r){const i=t1(t,"MuiMobileTimePicker"),c=Qy(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ri(i,n1),{ToolbarComponent:l=r1,components:f,componentsProps:s}=i,u=Vn(i,pz),d=Gt({},a,u,{components:f,componentsProps:s,ref:r,validationError:c});return je.jsx(Yy,Gt({},u,n,{DateInputProps:d,PureDateInputComponent:Gy,components:f,componentsProps:s,children:je.jsx(Ei,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:l,DateInputProps:d,components:f,componentsProps:s},u))}))});function gz(e){return _r("MuiPickerStaticWrapper",e)}wr("MuiPickerStaticWrapper",["root","content"]);const mz=["displayStaticWrapperAs","onAccept","onClear","onCancel","onDismiss","onSetToday","open","children","components","componentsProps","className"],vz=e=>{const{classes:t}=e;return Tr({root:["root"],content:["content"]},gz,t)},yz=wn("div",{name:"MuiPickerStaticWrapper",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),bz=wn("div",{name:"MuiPickerStaticWrapper",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e})=>({overflow:"hidden",minWidth:Ny,display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper}));function qd(e){var t;const r=fr({props:e,name:"MuiPickerStaticWrapper"}),{displayStaticWrapperAs:i,onAccept:c,onClear:o,onCancel:a,onSetToday:n,children:l,components:f,componentsProps:s,className:u}=r,d=Vn(r,mz),h=vz(r),p=(t=f==null?void 0:f.ActionBar)!=null?t:Hy,m=(f==null?void 0:f.PaperContent)||$e.Fragment;return je.jsx(Di.Provider,{value:i,children:je.jsxs(yz,Gt({className:jr(h.root,u)},d,{children:[je.jsx(bz,{className:h.content,children:je.jsx(m,Gt({},s==null?void 0:s.paperContent,{children:l}))}),je.jsx(p,Gt({onAccept:c,onClear:o,onCancel:a,onSetToday:n,actions:i==="desktop"?[]:["cancel","accept"]},s==null?void 0:s.actionBar))]}))})}const xz=["ToolbarComponent","value","onChange","displayStaticWrapperAs","components","componentsProps","className"],wz=$e.forwardRef(function(t,r){const i=By(t,"MuiStaticDatePicker"),{ToolbarComponent:c=Uy,displayStaticWrapperAs:o="mobile",components:a,componentsProps:n,className:l}=i,f=Vn(i,xz),{pickerProps:s,inputProps:u,wrapperProps:d}=Ri(i,zy),h=Fy(i)!==null,p=Gt({},u,f,{ref:r,validationError:h,components:a});return je.jsx(qd,Gt({displayStaticWrapperAs:o,components:a,componentsProps:n,className:l},d,{children:je.jsx(Ei,Gt({},s,{toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:c,DateInputProps:p,components:a,componentsProps:n},f))}))}),_z=["displayStaticWrapperAs","onChange","ToolbarComponent","value","components","componentsProps","hideTabs","className"],Tz=$e.forwardRef(function(t,r){const i=Xy(t,"MuiStaticDateTimePicker"),{displayStaticWrapperAs:c="mobile",ToolbarComponent:o=Jy,components:a,componentsProps:n,hideTabs:l=c==="desktop",className:f}=i,s=Vn(i,_z),{pickerProps:u,inputProps:d,wrapperProps:h}=Ri(i,Zy),p=e1(i)!==null,m=$e.useMemo(()=>Gt({Tabs:zd},a),[a]),y=Gt({},d,s,{ref:r,validationError:p,components:m,componentsProps:n});return je.jsx(qd,Gt({displayStaticWrapperAs:c,components:m,componentsProps:n,className:f},h,{children:je.jsx(Ei,Gt({},u,{toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:o,DateInputProps:y,components:m,componentsProps:n,hideTabs:l},s))}))}),kz=["displayStaticWrapperAs","onChange","ToolbarComponent","value","components","componentsProps","className"],Mz=$e.forwardRef(function(t,r){const i=t1(t,"MuiStaticTimePicker"),{displayStaticWrapperAs:c="mobile",ToolbarComponent:o=r1,components:a,componentsProps:n,className:l}=i,f=Vn(i,kz),s=Qy(i)!==null,{pickerProps:u,inputProps:d,wrapperProps:h}=Ri(i,n1),p=Gt({},d,f,{ref:r,validationError:s,components:a,componentsProps:n});return je.jsx(qd,Gt({displayStaticWrapperAs:c,components:a,componentsProps:n,className:l},h,{children:je.jsx(Ei,Gt({},u,{toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:o,DateInputProps:p,components:a,componentsProps:n},f))}))}),Sz=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],Cz=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:c="@media (pointer: fine)",DialogProps:o,PopperProps:a,TransitionComponent:n}=i,l=Vn(i,Sz);return vy(c,{defaultMatches:!0})?je.jsx(H4,Gt({ref:r,PopperProps:a,TransitionComponent:n},l)):je.jsx(V4,Gt({ref:r,DialogProps:o},l))});/** @license MUI X v5.0.20 + */function x(w){return w===null||typeof w!="object"}function _(w){return w.map(function(T){return typeof T=="symbol"?T.toString():T})}return jc.exports}var wg={},Q2;function OS(){return Q2||(Q2=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={error:"Data could not be retrieved",grouping:{groupedBy:"Grouped By:",placeholder:"Drag headers here to group by"},pagination:{labelDisplayedRows:"{from}-{to} of {count}",labelRowsPerPage:"Rows per page:",labelRows:"rows",firstAriaLabel:"First Page",firstTooltip:"First Page",previousAriaLabel:"Previous Page",previousTooltip:"Previous Page",nextAriaLabel:"Next Page",nextTooltip:"Next Page",lastAriaLabel:"Last Page",lastTooltip:"Last Page"},toolbar:{addRemoveColumns:"Add or remove columns",nRowsSelected:"{0} row(s) selected",showColumnsTitle:"Show Columns",showColumnsAriaLabel:"Show Columns",exportTitle:"Export",exportAriaLabel:"Export",searchTooltip:"Search",searchPlaceholder:"Search",searchAriaLabel:"Search",clearSearchAriaLabel:"Clear Search"},header:{actions:"Actions"},body:{emptyDataSourceMessage:"No records to display",editRow:{saveTooltip:"Save",cancelTooltip:"Cancel",deleteText:"Are you sure you want to delete this row?"},filterRow:{},dateTimePickerLocalization:"Filter",addTooltip:"Add",deleteTooltip:"Delete",editTooltip:"Edit",bulkEditTooltip:"Edit All",bulkEditApprove:"Save all changes",bulkEditCancel:"Discard all changes"}};e.default=t}(wg)),wg}var _g={},ew;function AS(){return ew||(ew=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={idSynonym:"id",actionsColumnIndex:0,addRowPosition:"last",columnsButton:!1,detailPanelType:"multiple",debounceInterval:200,doubleHorizontalScroll:!1,emptyRowsWhenPaging:!0,exportAllData:!1,exportMenu:[],filtering:!1,groupTitle:!1,header:!0,headerSelectionProps:{},hideFilterIcons:!1,loadingType:"overlay",padding:"normal",searchAutoFocus:!1,paging:!0,pageSize:5,pageSizeOptions:[5,10,20],paginationType:"normal",paginationPosition:"bottom",showEmptyDataSourceMessage:!0,showFirstLastPageButtons:!0,showSelectAllCheckbox:!0,showSelectGroupCheckbox:!0,search:!0,showTitle:!0,showTextRowsSelected:!0,showDetailPanelIcon:!0,tableLayout:"auto",tableWidth:"full",toolbarButtonAlignment:"right",searchFieldAlignment:"right",searchFieldStyle:{},searchFieldVariant:"standard",selection:!1,selectionProps:{},maxColumnSort:1,clientSorting:!0,groupChipProps:{},defaultOrderByCollection:[],showColumnSortOrder:!1,keepSortDirectionOnColumnSwitch:!0,toolbar:!0,defaultExpanded:!1,detailPanelColumnAlignment:"left",detailPanelOffset:{left:0,right:0},thirdSortClick:!0,overflowY:"auto",numberOfPagesAround:1,actionsHeaderIndex:0,draggable:!0};e.default=t}(_g)),_g}var Tg={},ys={},kg={exports:{}},tw;function ga(){return tw||(tw=1,function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(kg)),kg.exports}var Mg={};const HE=qn(r9);var nw;function ma(){return nw||(nw=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=HE}(Mg)),Mg}var rw;function VE(){if(rw)return ys;rw=1;var e=ga();Object.defineProperty(ys,"__esModule",{value:!0}),ys.default=void 0;var t=e(ma()),r=je;return ys.default=(0,t.default)((0,r.jsx)("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"}),"ViewColumn"),ys}var bs={},aw;function YE(){if(aw)return bs;aw=1;var e=ga();Object.defineProperty(bs,"__esModule",{value:!0}),bs.default=void 0;var t=e(ma()),r=je;return bs.default=(0,t.default)((0,r.jsx)("path",{d:"M19 13H5v-2h14z"}),"Remove"),bs}var xs={},iw;function GE(){if(iw)return xs;iw=1;var e=ga();Object.defineProperty(xs,"__esModule",{value:!0}),xs.default=void 0;var t=e(ma()),r=je;return xs.default=(0,t.default)((0,r.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),xs}var ws={},ow;function XE(){if(ow)return ws;ow=1;var e=ga();Object.defineProperty(ws,"__esModule",{value:!0}),ws.default=void 0;var t=e(ma()),r=je;return ws.default=(0,t.default)((0,r.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),ws}var _s={},lw;function ZE(){if(lw)return _s;lw=1;var e=ga();Object.defineProperty(_s,"__esModule",{value:!0}),_s.default=void 0;var t=e(ma()),r=je;return _s.default=(0,t.default)((0,r.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"Replay"),_s}const Ty=qn(a9);var Ts={},sw;function KE(){if(sw)return Ts;sw=1;var e=ga();Object.defineProperty(Ts,"__esModule",{value:!0}),Ts.default=void 0;var t=e(ma()),r=je;return Ts.default=(0,t.default)((0,r.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),Ts}var ks={},uw;function JE(){if(uw)return ks;uw=1;var e=ga();Object.defineProperty(ks,"__esModule",{value:!0}),ks.default=void 0;var t=e(ma()),r=je;return ks.default=(0,t.default)((0,r.jsx)("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),ks}var Ms={},cw;function QE(){if(cw)return Ms;cw=1;var e=ga();Object.defineProperty(Ms,"__esModule",{value:!0}),Ms.default=void 0;var t=e(ma()),r=je;return Ms.default=(0,t.default)((0,r.jsx)("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Ms}var Ss={},fw;function eR(){if(fw)return Ss;fw=1;var e=ga();Object.defineProperty(Ss,"__esModule",{value:!0}),Ss.default=void 0;var t=e(ma()),r=je;return Ss.default=(0,t.default)((0,r.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList"),Ss}var Cs={},dw;function tR(){if(dw)return Cs;dw=1;var e=ga();Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.default=void 0;var t=e(ma()),r=je;return Cs.default=(0,t.default)((0,r.jsx)("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),Cs}var Os={},hw;function nR(){if(hw)return Os;hw=1;var e=ga();Object.defineProperty(Os,"__esModule",{value:!0}),Os.default=void 0;var t=e(ma()),r=je;return Os.default=(0,t.default)((0,r.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),Os}var As={},pw;function rR(){if(pw)return As;pw=1;var e=ga();Object.defineProperty(As,"__esModule",{value:!0}),As.default=void 0;var t=e(ma()),r=je;return As.default=(0,t.default)((0,r.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),As}var Ps={},gw;function aR(){if(gw)return Ps;gw=1;var e=ga();Object.defineProperty(Ps,"__esModule",{value:!0}),Ps.default=void 0;var t=e(ma()),r=je;return Ps.default=(0,t.default)((0,r.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline"),Ps}var Ds={},mw;function iR(){if(mw)return Ds;mw=1;var e=ga();Object.defineProperty(Ds,"__esModule",{value:!0}),Ds.default=void 0;var t=e(ma()),r=je;return Ds.default=(0,t.default)((0,r.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear"),Ds}var Es={},vw;function oR(){if(vw)return Es;vw=1;var e=ga();Object.defineProperty(Es,"__esModule",{value:!0}),Es.default=void 0;var t=e(ma()),r=je;return Es.default=(0,t.default)((0,r.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Es}var Rs={},yw;function lR(){if(yw)return Rs;yw=1;var e=ga();Object.defineProperty(Rs,"__esModule",{value:!0}),Rs.default=void 0;var t=e(ma()),r=je;return Rs.default=(0,t.default)((0,r.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4z"}),"AddBox"),Rs}var bw;function PS(){return bw||(bw=1,function(e){var t=Rn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(VE()),u=t(YE()),o=t(GE()),a=t(XE()),n=t(ZE()),l=t(Ty),f=t(KE()),s=t(JE()),c=t(QE()),d=t(eR()),h=t(tR()),p=t(nR()),m=t(rR()),y=t(aR()),v=t(iR()),g=t(oR()),b=t(lR()),x=t(hr()),_=k($e);function w(M){if(typeof WeakMap!="function")return null;var S=new WeakMap,C=new WeakMap;return(w=function(D){return D?C:S})(M)}function k(M,S){if(M&&M.__esModule)return M;if(M===null||r(M)!=="object"&&typeof M!="function")return{default:M};var C=w(S);if(C&&C.has(M))return C.get(M);var P={},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in M)if(O!=="default"&&Object.prototype.hasOwnProperty.call(M,O)){var R=D?Object.getOwnPropertyDescriptor(M,O):null;R&&(R.get||R.set)?Object.defineProperty(P,O,R):P[O]=M[O]}return P.default=M,C&&C.set(M,P),P}var T={Add:(0,_.forwardRef)(function(M,S){return _.default.createElement(b.default,(0,x.default)({},M,{ref:S,"data-testid":"add_box"}))}),Check:(0,_.forwardRef)(function(M,S){return _.default.createElement(g.default,(0,x.default)({},M,{ref:S,"data-testid":"check"}))}),Clear:(0,_.forwardRef)(function(M,S){return _.default.createElement(v.default,(0,x.default)({},M,{ref:S,"data-testid":"clear"}))}),Delete:(0,_.forwardRef)(function(M,S){return _.default.createElement(y.default,(0,x.default)({},M,{ref:S,"data-testid":"delete_outline"}))}),DetailPanel:(0,_.forwardRef)(function(M,S){return _.default.createElement(m.default,(0,x.default)({},M,{ref:S,"data-testid":"chevron_right"}))}),Edit:(0,_.forwardRef)(function(M,S){return _.default.createElement(p.default,(0,x.default)({},M,{ref:S,"data-testid":"edit"}))}),Export:(0,_.forwardRef)(function(M,S){return _.default.createElement(h.default,(0,x.default)({},M,{ref:S,"data-testid":"save_alt"}))}),Filter:(0,_.forwardRef)(function(M,S){return _.default.createElement(d.default,(0,x.default)({},M,{ref:S,"data-testid":"filter_list"}))}),FirstPage:(0,_.forwardRef)(function(M,S){return _.default.createElement(c.default,(0,x.default)({},M,{ref:S,"data-testid":"first_page"}))}),LastPage:(0,_.forwardRef)(function(M,S){return _.default.createElement(s.default,(0,x.default)({},M,{ref:S,"data-testid":"last_page"}))}),NextPage:(0,_.forwardRef)(function(M,S){return _.default.createElement(m.default,(0,x.default)({},M,{ref:S,"data-testid":"chevron_right"}))}),PreviousPage:(0,_.forwardRef)(function(M,S){return _.default.createElement(f.default,(0,x.default)({},M,{ref:S,"data-testid":"chevron_left"}))}),ResetSearch:(0,_.forwardRef)(function(M,S){return _.default.createElement(v.default,(0,x.default)({},M,{ref:S,"data-testid":"clear"}))}),Resize:(0,_.forwardRef)(function(M,S){return _.default.createElement(l.default,(0,x.default)({},M,{ref:S,"data-testid":"drag_handle"}),"|")}),Retry:(0,_.forwardRef)(function(M,S){return _.default.createElement(n.default,(0,x.default)({},M,{ref:S,"data-testid":"replay"}))}),Search:(0,_.forwardRef)(function(M,S){return _.default.createElement(a.default,(0,x.default)({},M,{ref:S,"data-testid":"search"}))}),SortArrow:(0,_.forwardRef)(function(M,S){return _.default.createElement(o.default,(0,x.default)({},M,{ref:S,"data-testid":"arrow_downward"}))}),ThirdStateCheck:(0,_.forwardRef)(function(M,S){return _.default.createElement(u.default,(0,x.default)({},M,{ref:S,"data-testid":"remove"}))}),ViewColumn:(0,_.forwardRef)(function(M,S){return _.default.createElement(i.default,(0,x.default)({},M,{ref:S,"data-testid":"view_column"}))})};e.default=T}(Tg)),Tg}var Sg,xw;function sR(){if(xw)return Sg;xw=1;var e=function(g){return t(g)&&!r(g)};function t(v){return!!v&&typeof v=="object"}function r(v){var g=Object.prototype.toString.call(v);return g==="[object RegExp]"||g==="[object Date]"||o(v)}var i=typeof Symbol=="function"&&Symbol.for,u=i?Symbol.for("react.element"):60103;function o(v){return v.$$typeof===u}function a(v){return Array.isArray(v)?[]:{}}function n(v,g){return g.clone!==!1&&g.isMergeableObject(v)?m(a(v),v,g):v}function l(v,g,b){return v.concat(g).map(function(x){return n(x,b)})}function f(v,g){if(!g.customMerge)return m;var b=g.customMerge(v);return typeof b=="function"?b:m}function s(v){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(v).filter(function(g){return Object.propertyIsEnumerable.call(v,g)}):[]}function c(v){return Object.keys(v).concat(s(v))}function d(v,g){try{return g in v}catch{return!1}}function h(v,g){return d(v,g)&&!(Object.hasOwnProperty.call(v,g)&&Object.propertyIsEnumerable.call(v,g))}function p(v,g,b){var x={};return b.isMergeableObject(v)&&c(v).forEach(function(_){x[_]=n(v[_],b)}),c(g).forEach(function(_){h(v,_)||(d(v,_)&&b.isMergeableObject(g[_])?x[_]=f(_,b)(v[_],g[_],b):x[_]=n(g[_],b))}),x}function m(v,g,b){b=b||{},b.arrayMerge=b.arrayMerge||l,b.isMergeableObject=b.isMergeableObject||e,b.cloneUnlessOtherwiseSpecified=n;var x=Array.isArray(g),_=Array.isArray(v),w=x===_;return w?x?b.arrayMerge(v,g,b):p(v,g,b):n(g,b)}m.all=function(g,b){if(!Array.isArray(g))throw new Error("first argument should be an array");return g.reduce(function(x,_){return m(x,_,b)},{})};var y=m;return Sg=y,Sg}var ww;function tc(){if(ww)return Ja;ww=1;var e=Rn;Object.defineProperty(Ja,"__esModule",{value:!0}),Ja.useLocalizationStore=Ja.useIconStore=void 0,Ja.useMergeProps=v,Ja.useOptionStore=void 0,Ja.withContext=g;var t=e(Jr()),r=WE,i=e($e),u=e(CS()),o=e(OS()),a=e(AS()),n=e(PS()),l=e(pC());function f(b,x){var _=Object.keys(b);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(b);x&&(w=w.filter(function(k){return Object.getOwnPropertyDescriptor(b,k).enumerable})),_.push.apply(_,w)}return _}function s(b){for(var x=1;x=0)&&(u[a]=r[a]);return u}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ag)),Ag.exports}var Mw;function Bl(){return Mw||(Mw=1,function(e){var t=fR();function r(i,u){if(i==null)return{};var o=t(i,u),a,n;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(i,a)&&(o[a]=i[a])}return o}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(Og)),Og.exports}var Sw;function dR(){return Sw||(Sw=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(cR),i=t(hr()),u=t(Bl()),o=t($e),a=["forwardedRef"];function n(f){var s=f.forwardedRef,c=(0,u.default)(f,a);return o.default.createElement(r.default,(0,i.default)({elevation:2},c,{ref:s}))}var l=o.default.forwardRef(function(s,c){return o.default.createElement(n,(0,i.default)({},s,{forwardedRef:c}))});e.default=l}(Cg)),Cg}var Pg={};const zo=qn(o9);var Dg={exports:{}},Cw;function hR(){return Cw||(Cw=1,function(e,t){(function(i,u){e.exports=u($e)})(Sa,function(r){return function(i){var u={};function o(a){if(u[a])return u[a].exports;var n=u[a]={exports:{},id:a,loaded:!1};return i[a].call(n.exports,n,n.exports,o),n.loaded=!0,n.exports}return o.m=i,o.c=u,o.p="",o(0)}([function(i,u,o){Object.defineProperty(u,"__esModule",{value:!0});var a=function(){function p(m,y){for(var v=0;vr.length)&&(i=r.length);for(var u=0,o=new Array(i);u0&&R++,m.hasDetailPanel&&R++,m.isTreeData&&R++,l.default.createElement(a.default,{style:{height:O*(v.paging&&v.emptyRowsWhenPaging?m.pageSize:1)},key:"empty-0"},l.default.createElement(n.default,{style:{paddingTop:0,paddingBottom:0,textAlign:"center"},colSpan:m.columns.reduce(function(F,A){return A.hidden?F:F+1},R),key:"empty-"},y.emptyDataSourceMessage))}else if(v.emptyRowsWhenPaging)return l.default.createElement(l.default.Fragment,null,(0,o.default)(Array(P)).map(function(F,A){return l.default.createElement(a.default,{style:{height:O},key:"empty-"+A})}),P>0&&l.default.createElement(a.default,{style:{height:1},key:"empty-last1"}))}function _(P){return P.map(function(D,O){if(D.tableData.editing||m.bulkEditOpen)return l.default.createElement(m.components.EditRow,{columns:b,components:m.components,data:D,errorState:m.errorState,icons:g,localization:y.editRow,key:"row-"+D.tableData.uuid,mode:m.bulkEditOpen?"bulk":D.tableData.editing,isTreeData:m.isTreeData,detailPanel:m.detailPanel,onEditingCanceled:m.onEditingCanceled,onEditingApproved:m.onEditingApproved,bulkEditChangedRows:m.bulkEditChangedRows,getFieldValue:m.getFieldValue,onBulkEditRowChanged:m.onBulkEditRowChanged,scrollWidth:m.scrollWidth});var R=m.isTreeData?[D.tableData.uuid]:[O+m.pageSize*m.currentPage];return l.default.createElement(m.components.Row,{components:m.components,data:D,index:O,errorState:m.errorState,key:"row-"+D.tableData.uuid,level:0,onRowSelected:m.onRowSelected,actions:m.actions,columns:m.columns,getFieldValue:m.getFieldValue,detailPanel:m.detailPanel,path:R,onToggleDetailPanel:m.onToggleDetailPanel,onRowClick:m.onRowClick,onRowDoubleClick:m.onRowDoubleClick,isTreeData:m.isTreeData,onTreeExpandChanged:m.onTreeExpandChanged,onEditingCanceled:m.onEditingCanceled,onEditingApproved:m.onEditingApproved,hasAnyEditingRow:m.hasAnyEditingRow,treeDataMaxLevel:m.treeDataMaxLevel,cellEditable:m.cellEditable,onCellEditStarted:m.onCellEditStarted,onCellEditFinished:m.onCellEditFinished,onRowEditStarted:m.onRowEditStarted,scrollWidth:m.scrollWidth})})}function w(P,D){return D.map(function(O,R){return l.default.createElement(m.components.GroupRow,{actions:m.actions,cellEditable:m.cellEditable,columns:m.columns,components:m.components,detailPanel:m.detailPanel,getFieldValue:m.getFieldValue,groupData:O,groups:P,hasAnyEditingRow:m.hasAnyEditingRow,icons:g,isTreeData:m.isTreeData,key:O.value==null?""+R:O.value,level:0,localization:y.editRow,onBulkEditRowChanged:m.onBulkEditRowChanged,onCellEditFinished:m.onCellEditFinished,onCellEditStarted:m.onCellEditStarted,onEditingApproved:m.onEditingApproved,onEditingCanceled:m.onEditingCanceled,onGroupExpandChanged:m.onGroupExpandChanged,onRowClick:m.onRowClick,onGroupSelected:m.onGroupSelected,onRowSelected:m.onRowSelected,onToggleDetailPanel:m.onToggleDetailPanel,onTreeExpandChanged:m.onTreeExpandChanged,path:[R+m.pageSize*m.currentPage],scrollWidth:m.scrollWidth,treeDataMaxLevel:m.treeDataMaxLevel})})}function k(){return m.showAddRow&&l.default.createElement(m.components.EditRow,{columns:b,components:m.components,data:m.initialFormData,detailPanel:m.detailPanel,errorState:m.errorState,getFieldValue:m.getFieldValue,icons:g,isTreeData:m.isTreeData,key:"key-add-row",localization:y.editRow,mode:"add",onEditingApproved:m.onEditingApproved,onEditingCanceled:m.onEditingCanceled,scrollWidth:m.scrollWidth})}var T=m.renderData,M=m.columns.filter(function(P){return P.tableData.groupOrder>-1}).sort(function(P,D){return P.tableData.groupOrder-D.tableData.groupOrder}),S=0;v.paging&&m.pageSize>T.length&&(S=m.pageSize-T.length);var C=l.default.useMemo(function(){return m.renderSummaryRow?function(P){return m.renderSummaryRow(d(d({},P),{},{data:m.data,currentData:m.currentData}))}:void 0},[m.data]);return l.default.createElement(i.default,{ref:m.forwardedRef},v.filtering&&l.default.createElement(m.components.FilterRow,{columns:b,icons:g,hasActions:m.actions.some(function(P){return P.position==="row"||typeof P=="function"}),onFilterChanged:m.onFilterChanged,localization:y.filterRow,hasDetailPanel:!!m.detailPanel,isTreeData:m.isTreeData,scrollWidth:m.scrollWidth,hideFilterIcons:m.options.hideFilterIcons}),v.addRowPosition==="first"&&k(),M.length>0?w(M,T):_(T),v.addRowPosition==="last"&&k(),l.default.createElement(m.components.SummaryRow,{columns:b,renderSummaryRow:C,rowProps:m}),x(S,T))}h.defaultProps={actions:[],currentPage:0,data:[],pageSize:5,renderData:[],selection:!1},h.propTypes={actions:f.default.array,bulkEditChangedRows:f.default.object,bulkEditOpen:f.default.bool,cellEditable:f.default.object,columns:f.default.array.isRequired,components:f.default.object.isRequired,currentPage:f.default.number,data:f.default.array,detailPanel:f.default.oneOfType([f.default.func,f.default.arrayOf(f.default.oneOfType([f.default.object,f.default.func]))]),errorState:f.default.oneOfType([f.default.object,f.default.bool]),forwardedRef:f.default.oneOfType([f.default.func,f.default.object]),getFieldValue:f.default.func.isRequired,hasAnyEditingRow:f.default.bool,hasDetailPanel:f.default.bool.isRequired,initialFormData:f.default.object,isTreeData:f.default.bool.isRequired,onBulkEditRowChanged:f.default.func,onCellEditFinished:f.default.func,onCellEditStarted:f.default.func,onEditingApproved:f.default.func,onEditingCanceled:f.default.func,onFilterChanged:f.default.func,onGroupExpandChanged:f.default.func,onRowClick:f.default.func,onRowDoubleClick:f.default.func,onGroupSelected:f.default.func,onRowSelected:f.default.func,onToggleDetailPanel:f.default.func.isRequired,onTreeExpandChanged:f.default.func.isRequired,pageSize:f.default.number,renderData:f.default.array,renderSummaryRow:f.default.func,scrollWidth:f.default.number.isRequired,selection:f.default.bool.isRequired,showAddRow:f.default.bool,treeDataMaxLevel:f.default.number};var p=l.default.forwardRef(function(y,v){return l.default.createElement(h,(0,r.default)({},y,{forwardedRef:v}))});e.default=p}(Eg)),Eg}var $g={},Bg={exports:{}},Fw;function Ed(){return Fw||(Fw=1,function(e){function t(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Bg)),Bg.exports}var zg={exports:{}},Nw;function Rd(){return Nw||(Nw=1,function(e){var t=yS();function r(u,o){for(var a=0;a1?"s":"")+" required, but only "+t.length+" present")}function hn(e){dn(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Si(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function P0(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return isNaN(i)?new Date(NaN):(i&&r.setDate(r.getDate()+i),r)}function Id(e,t){dn(2,arguments);var r=hn(e).getTime(),i=sr(t);return new Date(r+i)}function TR(e,t){dn(2,arguments);var r=sr(t);return Id(e,r*1e3)}var kR=6e4;function MR(e,t){dn(2,arguments);var r=sr(t);return Id(e,r*kR)}var SR=36e5;function CR(e,t){dn(2,arguments);var r=sr(t);return Id(e,r*SR)}function OR(e,t){dn(2,arguments);var r=sr(t),i=r*7;return P0(e,i)}function pf(e,t){dn(2,arguments);var r=hn(e),i=sr(t);if(isNaN(i))return new Date(NaN);if(!i)return r;var u=r.getDate(),o=new Date(r.getTime());o.setMonth(r.getMonth()+i+1,0);var a=o.getDate();return u>=a?o:(r.setFullYear(o.getFullYear(),o.getMonth(),u),r)}function Ww(e,t){dn(2,arguments);var r=sr(t);return pf(e,r*12)}function AR(e,t){dn(2,arguments);var r=hn(e),i=hn(t);return r.getFullYear()-i.getFullYear()}function ku(e,t){dn(2,arguments);var r=hn(e),i=hn(t),u=r.getTime()-i.getTime();return u<0?-1:u>0?1:u}function PR(e,t){dn(2,arguments);var r=hn(e),i=hn(t),u=ku(r,i),o=Math.abs(AR(r,i));r.setFullYear(1584),i.setFullYear(1584);var a=ku(r,i)===-u,n=u*(o-Number(a));return n===0?0:n}function DR(e,t){dn(2,arguments);var r=hn(e),i=hn(t),u=r.getFullYear()-i.getFullYear(),o=r.getMonth()-i.getMonth();return u*12+o}function D0(e){dn(1,arguments);var t=hn(e);return t.setHours(23,59,59,999),t}function E0(e){dn(1,arguments);var t=hn(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function ER(e){dn(1,arguments);var t=hn(e);return D0(t).getTime()===E0(t).getTime()}function FS(e,t){dn(2,arguments);var r=hn(e),i=hn(t),u=ku(r,i),o=Math.abs(DR(r,i)),a;if(o<1)a=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-u*o);var n=ku(r,i)===-u;ER(hn(e))&&o===1&&ku(e,i)===1&&(n=!1),a=u*(o-Number(n))}return a===0?0:a}var Uw={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},RR="trunc";function nc(e){return e?Uw[e]:Uw[RR]}function LR(e,t,r){dn(2,arguments);var i=FS(e,t)/3;return nc(void 0)(i)}function Lf(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function kl(e){dn(1,arguments);var t=hn(e);return t.setHours(0,0,0,0),t}var IR=864e5;function FR(e,t){dn(2,arguments);var r=kl(e),i=kl(t),u=r.getTime()-Lf(r),o=i.getTime()-Lf(i);return Math.round((u-o)/IR)}function Hw(e,t){var r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}function NS(e,t){dn(2,arguments);var r=hn(e),i=hn(t),u=Hw(r,i),o=Math.abs(FR(r,i));r.setDate(r.getDate()-u*o);var a=+(Hw(r,i)===-u),n=u*(o-a);return n===0?0:n}function NR(e,t,r){dn(2,arguments);var i=NS(e,t)/7;return nc(void 0)(i)}var Fd=6e4,Nd=36e5,jR=1e3;function jd(e,t){return dn(2,arguments),hn(e).getTime()-hn(t).getTime()}function $R(e,t,r){dn(2,arguments);var i=jd(e,t)/Nd;return nc(void 0)(i)}function BR(e,t,r){dn(2,arguments);var i=jd(e,t)/Fd;return nc(void 0)(i)}function zR(e,t,r){dn(2,arguments);var i=jd(e,t)/1e3;return nc(void 0)(i)}function qR(e,t){var r;dn(1,arguments);var i=e||{},u=hn(i.start),o=hn(i.end),a=o.getTime();if(!(u.getTime()<=a))throw new RangeError("Invalid interval");var n=[],l=u;l.setHours(0,0,0,0);var f=Number((r=void 0)!==null&&r!==void 0?r:1);if(f<1||isNaN(f))throw new RangeError("`options.step` must be a number greater than 1");for(;l.getTime()<=a;)n.push(hn(l)),l.setDate(l.getDate()+f),l.setHours(0,0,0,0);return n}var WR={};function ao(){return WR}function Yg(e,t){var r,i,u,o,a,n,l,f;dn(1,arguments);var s=ao(),c=sr((r=(i=(u=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(n=a.options)===null||n===void 0?void 0:n.weekStartsOn)!==null&&u!==void 0?u:s.weekStartsOn)!==null&&i!==void 0?i:(l=s.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=hn(e),h=d.getDay(),p=(h=u.getTime()?r+1:t.getTime()>=a.getTime()?r:r-1}function YR(e){dn(1,arguments);var t=BS(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var i=Ml(r);return i}var GR=6048e5;function zS(e){dn(1,arguments);var t=hn(e),r=Ml(t).getTime()-YR(t).getTime();return Math.round(r/GR)+1}function Oo(e,t){var r,i,u,o,a,n,l,f;dn(1,arguments);var s=ao(),c=sr((r=(i=(u=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(n=a.options)===null||n===void 0?void 0:n.weekStartsOn)!==null&&u!==void 0?u:s.weekStartsOn)!==null&&i!==void 0?i:(l=s.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=hn(e),h=d.getUTCDay(),p=(h=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(c+1,0,h),p.setUTCHours(0,0,0,0);var m=Oo(p,t),y=new Date(0);y.setUTCFullYear(c,0,h),y.setUTCHours(0,0,0,0);var v=Oo(y,t);return s.getTime()>=m.getTime()?c+1:s.getTime()>=v.getTime()?c:c-1}function XR(e,t){var r,i,u,o,a,n,l,f;dn(1,arguments);var s=ao(),c=sr((r=(i=(u=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(n=a.options)===null||n===void 0?void 0:n.firstWeekContainsDate)!==null&&u!==void 0?u:s.firstWeekContainsDate)!==null&&i!==void 0?i:(l=s.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&r!==void 0?r:1),d=Ay(e,t),h=new Date(0);h.setUTCFullYear(d,0,c),h.setUTCHours(0,0,0,0);var p=Oo(h,t);return p}var ZR=6048e5;function qS(e,t){dn(1,arguments);var r=hn(e),i=Oo(r,t).getTime()-XR(r,t).getTime();return Math.round(i/ZR)+1}function Hn(e,t){for(var r=e<0?"-":"",i=Math.abs(e).toString();i.length0?i:1-i;return Hn(r==="yy"?u%100:u,r.length)},M:function(t,r){var i=t.getUTCMonth();return r==="M"?String(i+1):Hn(i+1,2)},d:function(t,r){return Hn(t.getUTCDate(),r.length)},a:function(t,r){var i=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];case"aaaa":default:return i==="am"?"a.m.":"p.m."}},h:function(t,r){return Hn(t.getUTCHours()%12||12,r.length)},H:function(t,r){return Hn(t.getUTCHours(),r.length)},m:function(t,r){return Hn(t.getUTCMinutes(),r.length)},s:function(t,r){return Hn(t.getUTCSeconds(),r.length)},S:function(t,r){var i=r.length,u=t.getUTCMilliseconds(),o=Math.floor(u*Math.pow(10,i-3));return Hn(o,r.length)}},il={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},KR={G:function(t,r,i){var u=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return i.era(u,{width:"abbreviated"});case"GGGGG":return i.era(u,{width:"narrow"});case"GGGG":default:return i.era(u,{width:"wide"})}},y:function(t,r,i){if(r==="yo"){var u=t.getUTCFullYear(),o=u>0?u:1-u;return i.ordinalNumber(o,{unit:"year"})}return zi.y(t,r)},Y:function(t,r,i,u){var o=Ay(t,u),a=o>0?o:1-o;if(r==="YY"){var n=a%100;return Hn(n,2)}return r==="Yo"?i.ordinalNumber(a,{unit:"year"}):Hn(a,r.length)},R:function(t,r){var i=BS(t);return Hn(i,r.length)},u:function(t,r){var i=t.getUTCFullYear();return Hn(i,r.length)},Q:function(t,r,i){var u=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(u);case"QQ":return Hn(u,2);case"Qo":return i.ordinalNumber(u,{unit:"quarter"});case"QQQ":return i.quarter(u,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(u,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(u,{width:"wide",context:"formatting"})}},q:function(t,r,i){var u=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(u);case"qq":return Hn(u,2);case"qo":return i.ordinalNumber(u,{unit:"quarter"});case"qqq":return i.quarter(u,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(u,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(u,{width:"wide",context:"standalone"})}},M:function(t,r,i){var u=t.getUTCMonth();switch(r){case"M":case"MM":return zi.M(t,r);case"Mo":return i.ordinalNumber(u+1,{unit:"month"});case"MMM":return i.month(u,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(u,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(u,{width:"wide",context:"formatting"})}},L:function(t,r,i){var u=t.getUTCMonth();switch(r){case"L":return String(u+1);case"LL":return Hn(u+1,2);case"Lo":return i.ordinalNumber(u+1,{unit:"month"});case"LLL":return i.month(u,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(u,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(u,{width:"wide",context:"standalone"})}},w:function(t,r,i,u){var o=qS(t,u);return r==="wo"?i.ordinalNumber(o,{unit:"week"}):Hn(o,r.length)},I:function(t,r,i){var u=zS(t);return r==="Io"?i.ordinalNumber(u,{unit:"week"}):Hn(u,r.length)},d:function(t,r,i){return r==="do"?i.ordinalNumber(t.getUTCDate(),{unit:"date"}):zi.d(t,r)},D:function(t,r,i){var u=VR(t);return r==="Do"?i.ordinalNumber(u,{unit:"dayOfYear"}):Hn(u,r.length)},E:function(t,r,i){var u=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return i.day(u,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(u,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(u,{width:"short",context:"formatting"});case"EEEE":default:return i.day(u,{width:"wide",context:"formatting"})}},e:function(t,r,i,u){var o=t.getUTCDay(),a=(o-u.weekStartsOn+8)%7||7;switch(r){case"e":return String(a);case"ee":return Hn(a,2);case"eo":return i.ordinalNumber(a,{unit:"day"});case"eee":return i.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(o,{width:"short",context:"formatting"});case"eeee":default:return i.day(o,{width:"wide",context:"formatting"})}},c:function(t,r,i,u){var o=t.getUTCDay(),a=(o-u.weekStartsOn+8)%7||7;switch(r){case"c":return String(a);case"cc":return Hn(a,r.length);case"co":return i.ordinalNumber(a,{unit:"day"});case"ccc":return i.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(o,{width:"narrow",context:"standalone"});case"cccccc":return i.day(o,{width:"short",context:"standalone"});case"cccc":default:return i.day(o,{width:"wide",context:"standalone"})}},i:function(t,r,i){var u=t.getUTCDay(),o=u===0?7:u;switch(r){case"i":return String(o);case"ii":return Hn(o,r.length);case"io":return i.ordinalNumber(o,{unit:"day"});case"iii":return i.day(u,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(u,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(u,{width:"short",context:"formatting"});case"iiii":default:return i.day(u,{width:"wide",context:"formatting"})}},a:function(t,r,i){var u=t.getUTCHours(),o=u/12>=1?"pm":"am";switch(r){case"a":case"aa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,r,i){var u=t.getUTCHours(),o;switch(u===12?o=il.noon:u===0?o=il.midnight:o=u/12>=1?"pm":"am",r){case"b":case"bb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,r,i){var u=t.getUTCHours(),o;switch(u>=17?o=il.evening:u>=12?o=il.afternoon:u>=4?o=il.morning:o=il.night,r){case"B":case"BB":case"BBB":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,r,i){if(r==="ho"){var u=t.getUTCHours()%12;return u===0&&(u=12),i.ordinalNumber(u,{unit:"hour"})}return zi.h(t,r)},H:function(t,r,i){return r==="Ho"?i.ordinalNumber(t.getUTCHours(),{unit:"hour"}):zi.H(t,r)},K:function(t,r,i){var u=t.getUTCHours()%12;return r==="Ko"?i.ordinalNumber(u,{unit:"hour"}):Hn(u,r.length)},k:function(t,r,i){var u=t.getUTCHours();return u===0&&(u=24),r==="ko"?i.ordinalNumber(u,{unit:"hour"}):Hn(u,r.length)},m:function(t,r,i){return r==="mo"?i.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):zi.m(t,r)},s:function(t,r,i){return r==="so"?i.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):zi.s(t,r)},S:function(t,r){return zi.S(t,r)},X:function(t,r,i,u){var o=u._originalDate||t,a=o.getTimezoneOffset();if(a===0)return"Z";switch(r){case"X":return Yw(a);case"XXXX":case"XX":return go(a);case"XXXXX":case"XXX":default:return go(a,":")}},x:function(t,r,i,u){var o=u._originalDate||t,a=o.getTimezoneOffset();switch(r){case"x":return Yw(a);case"xxxx":case"xx":return go(a);case"xxxxx":case"xxx":default:return go(a,":")}},O:function(t,r,i,u){var o=u._originalDate||t,a=o.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+Vw(a,":");case"OOOO":default:return"GMT"+go(a,":")}},z:function(t,r,i,u){var o=u._originalDate||t,a=o.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+Vw(a,":");case"zzzz":default:return"GMT"+go(a,":")}},t:function(t,r,i,u){var o=u._originalDate||t,a=Math.floor(o.getTime()/1e3);return Hn(a,r.length)},T:function(t,r,i,u){var o=u._originalDate||t,a=o.getTime();return Hn(a,r.length)}};function Vw(e,t){var r=e>0?"-":"+",i=Math.abs(e),u=Math.floor(i/60),o=i%60;if(o===0)return r+String(u);var a=t;return r+String(u)+a+Hn(o,2)}function Yw(e,t){if(e%60===0){var r=e>0?"-":"+";return r+Hn(Math.abs(e)/60,2)}return go(e,t)}function go(e,t){var r=t||"",i=e>0?"-":"+",u=Math.abs(e),o=Hn(Math.floor(u/60),2),a=Hn(u%60,2);return i+o+r+a}var Gw=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},WS=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},JR=function(t,r){var i=t.match(/(P+)(p+)?/)||[],u=i[1],o=i[2];if(!o)return Gw(t,r);var a;switch(u){case"P":a=r.dateTime({width:"short"});break;case"PP":a=r.dateTime({width:"medium"});break;case"PPP":a=r.dateTime({width:"long"});break;case"PPPP":default:a=r.dateTime({width:"full"});break}return a.replace("{{date}}",Gw(u,r)).replace("{{time}}",WS(o,r))},R0={p:WS,P:JR},QR=["D","DD"],eL=["YY","YYYY"];function US(e){return QR.indexOf(e)!==-1}function HS(e){return eL.indexOf(e)!==-1}function If(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var tL={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},nL=function(t,r,i){var u,o=tL[t];return typeof o=="string"?u=o:r===1?u=o.one:u=o.other.replace("{{count}}",r.toString()),i!=null&&i.addSuffix?i.comparison&&i.comparison>0?"in "+u:u+" ago":u};function Xg(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,i=e.formats[r]||e.formats[e.defaultWidth];return i}}var rL={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},aL={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},iL={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},oL={date:Xg({formats:rL,defaultWidth:"full"}),time:Xg({formats:aL,defaultWidth:"full"}),dateTime:Xg({formats:iL,defaultWidth:"full"})},lL={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},sL=function(t,r,i,u){return lL[t]};function Ls(e){return function(t,r){var i=r!=null&&r.context?String(r.context):"standalone",u;if(i==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=r!=null&&r.width?String(r.width):o;u=e.formattingValues[a]||e.formattingValues[o]}else{var n=e.defaultWidth,l=r!=null&&r.width?String(r.width):e.defaultWidth;u=e.values[l]||e.values[n]}var f=e.argumentCallback?e.argumentCallback(t):t;return u[f]}}var uL={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},cL={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},fL={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},dL={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},hL={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},pL={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},gL=function(t,r){var i=Number(t),u=i%100;if(u>20||u<10)switch(u%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},mL={ordinalNumber:gL,era:Ls({values:uL,defaultWidth:"wide"}),quarter:Ls({values:cL,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ls({values:fL,defaultWidth:"wide"}),day:Ls({values:dL,defaultWidth:"wide"}),dayPeriod:Ls({values:hL,defaultWidth:"wide",formattingValues:pL,defaultFormattingWidth:"wide"})};function Is(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.width,u=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],o=t.match(u);if(!o)return null;var a=o[0],n=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(n)?yL(n,function(c){return c.test(a)}):vL(n,function(c){return c.test(a)}),f;f=e.valueCallback?e.valueCallback(l):l,f=r.valueCallback?r.valueCallback(f):f;var s=t.slice(a.length);return{value:f,rest:s}}}function vL(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function yL(e,t){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},i=t.match(e.matchPattern);if(!i)return null;var u=i[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];a=r.valueCallback?r.valueCallback(a):a;var n=t.slice(u.length);return{value:a,rest:n}}}var xL=/^(\d+)(th|st|nd|rd)?/i,wL=/\d+/i,_L={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},TL={any:[/^b/i,/^(a|c)/i]},kL={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ML={any:[/1/i,/2/i,/3/i,/4/i]},SL={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},CL={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},OL={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},AL={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},PL={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},DL={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},EL={ordinalNumber:bL({matchPattern:xL,parsePattern:wL,valueCallback:function(t){return parseInt(t,10)}}),era:Is({matchPatterns:_L,defaultMatchWidth:"wide",parsePatterns:TL,defaultParseWidth:"any"}),quarter:Is({matchPatterns:kL,defaultMatchWidth:"wide",parsePatterns:ML,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Is({matchPatterns:SL,defaultMatchWidth:"wide",parsePatterns:CL,defaultParseWidth:"any"}),day:Is({matchPatterns:OL,defaultMatchWidth:"wide",parsePatterns:AL,defaultParseWidth:"any"}),dayPeriod:Is({matchPatterns:PL,defaultMatchWidth:"any",parsePatterns:DL,defaultParseWidth:"any"})},$d={code:"en-US",formatDistance:nL,formatLong:oL,formatRelative:sL,localize:mL,match:EL,options:{weekStartsOn:0,firstWeekContainsDate:1}},RL=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,LL=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,IL=/^'([^]*?)'?$/,FL=/''/g,NL=/[a-zA-Z]/;function VS(e,t,r){var i,u,o,a,n,l,f,s,c,d,h,p,m,y,v,g,b,x;dn(2,arguments);var _=String(t),w=ao(),k=(i=(u=r==null?void 0:r.locale)!==null&&u!==void 0?u:w.locale)!==null&&i!==void 0?i:$d,T=sr((o=(a=(n=(l=r==null?void 0:r.firstWeekContainsDate)!==null&&l!==void 0?l:r==null||(f=r.locale)===null||f===void 0||(s=f.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&n!==void 0?n:w.firstWeekContainsDate)!==null&&a!==void 0?a:(c=w.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=sr((h=(p=(m=(y=r==null?void 0:r.weekStartsOn)!==null&&y!==void 0?y:r==null||(v=r.locale)===null||v===void 0||(g=v.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&m!==void 0?m:w.weekStartsOn)!==null&&p!==void 0?p:(b=w.locale)===null||b===void 0||(x=b.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&h!==void 0?h:0);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var S=hn(e);if(!jS(S))throw new RangeError("Invalid time value");var C=Lf(S),P=$S(S,C),D={firstWeekContainsDate:T,weekStartsOn:M,locale:k,_originalDate:S},O=_.match(LL).map(function(R){var F=R[0];if(F==="p"||F==="P"){var A=R0[F];return A(R,k.formatLong)}return R}).join("").match(RL).map(function(R){if(R==="''")return"'";var F=R[0];if(F==="'")return jL(R);var A=KR[F];if(A)return!(r!=null&&r.useAdditionalWeekYearTokens)&&HS(R)&&If(R,t,String(e)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&US(R)&&If(R,t,String(e)),A(P,R,k.localize,D);if(F.match(NL))throw new RangeError("Format string contains an unescaped latin alphabet character `"+F+"`");return R}).join("");return O}function jL(e){var t=e.match(IL);return t?t[1].replace(FL,"'"):e}const $L=Object.freeze(Object.defineProperty({__proto__:null,default:VS},Symbol.toStringTag,{value:"Module"}));function BL(e){dn(1,arguments);var t=hn(e),r=t.getDate();return r}function zL(e){dn(1,arguments);var t=hn(e),r=t.getDay();return r}function YS(e){dn(1,arguments);var t=hn(e),r=t.getFullYear(),i=t.getMonth(),u=new Date(0);return u.setFullYear(r,i+1,0),u.setHours(0,0,0,0),u.getDate()}function qL(e){dn(1,arguments);var t=hn(e),r=t.getHours();return r}function WL(e){dn(1,arguments);var t=hn(e),r=t.getMinutes();return r}function UL(e){dn(1,arguments);var t=hn(e),r=t.getMonth();return r}function HL(e){dn(1,arguments);var t=hn(e),r=t.getSeconds();return r}function VL(e){return dn(1,arguments),hn(e).getFullYear()}function $c(e,t){dn(2,arguments);var r=hn(e),i=hn(t);return r.getTime()>i.getTime()}function ol(e,t){dn(2,arguments);var r=hn(e),i=hn(t);return r.getTime()e.length)&&(t=e.length);for(var r=0,i=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(f){throw f},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,n;return{s:function(){r=r.call(e)},n:function(){var f=r.next();return o=f.done,f},e:function(f){a=!0,n=f},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(a)throw n}}}}function QL(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function Qn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y9(e,t)}function Ff(e){return Ff=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ff(e)}function eI(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function tI(e,t){if(t&&(Si(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bn(e)}function er(e){var t=eI();return function(){var i=Ff(e),u;if(t){var o=Ff(this).constructor;u=Reflect.construct(i,arguments,o)}else u=i.apply(this,arguments);return tI(this,u)}}function Zn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nI(e,t){if(Si(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(Si(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GS(e){var t=nI(e,"string");return Si(t)==="symbol"?t:String(t)}function rI(e,t){for(var r=0;r0,i=r?t:1-t,u;if(i<=50)u=e||100;else{var o=i+50,a=Math.floor(o/100)*100,n=e>=o%100;u=e+a-(n?100:0)}return r?u:1-u}function JS(e){return e%400===0||e%4===0&&e%100!==0}var sI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a0}},{key:"set",value:function(u,o,a){var n=u.getUTCFullYear();if(a.isTwoDigitYear){var l=KS(a.year,n);return u.setUTCFullYear(l,0,1),u.setUTCHours(0,0,0,0),u}var f=!("era"in o)||o.era===1?a.year:1-a.year;return u.setUTCFullYear(f,0,1),u.setUTCHours(0,0,0,0),u}}]),r}(or),uI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a0}},{key:"set",value:function(u,o,a,n){var l=Ay(u,n);if(a.isTwoDigitYear){var f=KS(a.year,l);return u.setUTCFullYear(f,0,n.firstWeekContainsDate),u.setUTCHours(0,0,0,0),Oo(u,n)}var s=!("era"in o)||o.era===1?a.year:1-a.year;return u.setUTCFullYear(s,0,n.firstWeekContainsDate),u.setUTCHours(0,0,0,0),Oo(u,n)}}]),r}(or),cI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=1&&o<=4}},{key:"set",value:function(u,o,a){return u.setUTCMonth((a-1)*3,1),u.setUTCHours(0,0,0,0),u}}]),r}(or),hI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=1&&o<=4}},{key:"set",value:function(u,o,a){return u.setUTCMonth((a-1)*3,1),u.setUTCHours(0,0,0,0),u}}]),r}(or),pI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=0&&o<=11}},{key:"set",value:function(u,o,a){return u.setUTCMonth(a,1),u.setUTCHours(0,0,0,0),u}}]),r}(or),gI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=0&&o<=11}},{key:"set",value:function(u,o,a){return u.setUTCMonth(a,1),u.setUTCHours(0,0,0,0),u}}]),r}(or);function mI(e,t,r){dn(2,arguments);var i=hn(e),u=sr(t),o=qS(i,r)-u;return i.setUTCDate(i.getUTCDate()-o*7),i}var vI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=1&&o<=53}},{key:"set",value:function(u,o,a,n){return Oo(mI(u,a,n),n)}}]),r}(or);function yI(e,t){dn(2,arguments);var r=hn(e),i=sr(t),u=zS(r)-i;return r.setUTCDate(r.getUTCDate()-u*7),r}var bI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=1&&o<=53}},{key:"set",value:function(u,o,a){return Ml(yI(u,a))}}]),r}(or),xI=[31,28,31,30,31,30,31,31,30,31,30,31],wI=[31,29,31,30,31,30,31,31,30,31,30,31],_I=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=1&&o<=wI[l]:o>=1&&o<=xI[l]}},{key:"set",value:function(u,o,a){return u.setUTCDate(a),u.setUTCHours(0,0,0,0),u}}]),r}(or),TI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(u,o,a){return u.setUTCMonth(0,a),u.setUTCHours(0,0,0,0),u}}]),r}(or);function Dy(e,t,r){var i,u,o,a,n,l,f,s;dn(2,arguments);var c=ao(),d=sr((i=(u=(o=(a=r==null?void 0:r.weekStartsOn)!==null&&a!==void 0?a:r==null||(n=r.locale)===null||n===void 0||(l=n.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:c.weekStartsOn)!==null&&u!==void 0?u:(f=c.locale)===null||f===void 0||(s=f.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=hn(e),p=sr(t),m=h.getUTCDay(),y=p%7,v=(y+7)%7,g=(v=0&&o<=6}},{key:"set",value:function(u,o,a,n){return u=Dy(u,a,n),u.setUTCHours(0,0,0,0),u}}]),r}(or),MI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=0&&o<=6}},{key:"set",value:function(u,o,a,n){return u=Dy(u,a,n),u.setUTCHours(0,0,0,0),u}}]),r}(or),SI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=0&&o<=6}},{key:"set",value:function(u,o,a,n){return u=Dy(u,a,n),u.setUTCHours(0,0,0,0),u}}]),r}(or);function CI(e,t){dn(2,arguments);var r=sr(t);r%7===0&&(r=r-7);var i=1,u=hn(e),o=u.getUTCDay(),a=r%7,n=(a+7)%7,l=(n=1&&o<=7}},{key:"set",value:function(u,o,a){return u=CI(u,a),u.setUTCHours(0,0,0,0),u}}]),r}(or),AI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=1&&o<=12}},{key:"set",value:function(u,o,a){var n=u.getUTCHours()>=12;return n&&a<12?u.setUTCHours(a+12,0,0,0):!n&&a===12?u.setUTCHours(0,0,0,0):u.setUTCHours(a,0,0,0),u}}]),r}(or),RI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=0&&o<=23}},{key:"set",value:function(u,o,a){return u.setUTCHours(a,0,0,0),u}}]),r}(or),LI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=0&&o<=11}},{key:"set",value:function(u,o,a){var n=u.getUTCHours()>=12;return n&&a<12?u.setUTCHours(a+12,0,0,0):u.setUTCHours(a,0,0,0),u}}]),r}(or),II=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=1&&o<=24}},{key:"set",value:function(u,o,a){var n=a<=24?a%24:a;return u.setUTCHours(n,0,0,0),u}}]),r}(or),FI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=0&&o<=59}},{key:"set",value:function(u,o,a){return u.setUTCMinutes(a,0,0),u}}]),r}(or),NI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=0&&o<=59}},{key:"set",value:function(u,o,a){return u.setUTCSeconds(a,0),u}}]),r}(or),jI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=sr((p=(m=(y=(v=i==null?void 0:i.weekStartsOn)!==null&&v!==void 0?v:i==null||(g=i.locale)===null||g===void 0||(b=g.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&y!==void 0?y:T.weekStartsOn)!==null&&m!==void 0?m:(x=T.locale)===null||x===void 0||(_=x.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&p!==void 0?p:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(k==="")return w===""?hn(r):new Date(NaN);var P={firstWeekContainsDate:S,weekStartsOn:C,locale:M},D=[new oI],O=k.match(HI).map(function(H){var V=H[0];if(V in R0){var te=R0[V];return te(H,M.formatLong)}return H}).join("").match(UI),R=[],F=Kw(O),A;try{var z=function(){var V=A.value;!(i!=null&&i.useAdditionalWeekYearTokens)&&HS(V)&&If(V,k,e),!(i!=null&&i.useAdditionalDayOfYearTokens)&&US(V)&&If(V,k,e);var te=V[0],ee=WI[te];if(ee){var U=ee.incompatibleTokens;if(Array.isArray(U)){var Q=R.find(function(Z){return U.includes(Z.token)||Z.token===te});if(Q)throw new RangeError("The format string mustn't contain `".concat(Q.fullToken,"` and `").concat(V,"` at the same time"))}else if(ee.incompatibleTokens==="*"&&R.length>0)throw new RangeError("The format string mustn't contain `".concat(V,"` and any other token at the same time"));R.push({token:te,fullToken:V});var Y=ee.run(w,V,M.match,P);if(!Y)return{v:new Date(NaN)};D.push(Y.setter),w=Y.rest}else{if(te.match(XI))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");if(V==="''"?V="'":te==="'"&&(V=KI(V)),w.indexOf(V)===0)w=w.slice(V.length);else return{v:new Date(NaN)}}};for(F.s();!(A=F.n()).done;){var B=z();if(Si(B)==="object")return B.v}}catch(H){F.e(H)}finally{F.f()}if(w.length>0&&GI.test(w))return new Date(NaN);var $=D.map(function(H){return H.priority}).sort(function(H,V){return V-H}).filter(function(H,V,te){return te.indexOf(H)===V}).map(function(H){return D.filter(function(V){return V.priority===H}).sort(function(V,te){return te.subPriority-V.subPriority})}).map(function(H){return H[0]}),j=hn(r);if(isNaN(j.getTime()))return new Date(NaN);var N=$S(j,Lf(j)),E={},W=Kw($),G;try{for(W.s();!(G=W.n()).done;){var L=G.value;if(!L.validate(N,P))return new Date(NaN);var q=L.set(N,E,P);Array.isArray(q)?(N=q[0],QL(E,q[1])):N=q}}catch(H){W.e(H)}finally{W.f()}return N}function KI(e){return e.match(VI)[1].replace(YI,"'")}function JI(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return r.setDate(i),r}function QI(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return r.setHours(i),r}function eF(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return r.setMinutes(i),r}function tF(e,t){dn(2,arguments);var r=hn(e),i=sr(t),u=r.getFullYear(),o=r.getDate(),a=new Date(0);a.setFullYear(u,i,15),a.setHours(0,0,0,0);var n=YS(a);return r.setMonth(i,Math.min(o,n)),r}function nF(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return r.setSeconds(i),r}function rF(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(i),r)}function Bc(e){dn(1,arguments);var t=hn(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Zg(e,t){var r,i,u,o,a,n,l,f;dn(1,arguments);var s=ao(),c=sr((r=(i=(u=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(n=a.options)===null||n===void 0?void 0:n.weekStartsOn)!==null&&u!==void 0?u:s.weekStartsOn)!==null&&i!==void 0?i:(l=s.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=hn(e),h=d.getDay(),p=(h2)return t;if(/:/.test(r[0])?i=r[0]:(t.date=r[0],i=r[1],qc.timeZoneDelimiter.test(t.date)&&(t.date=e.split(qc.timeZoneDelimiter)[0],i=e.substr(t.date.length,e.length))),i){var u=qc.timezone.exec(i);u?(t.time=i.replace(u[1],""),t.timezone=u[1]):t.time=i}return t}function sF(e,t){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),i=e.match(r);if(!i)return{year:NaN,restDateString:""};var u=i[1]?parseInt(i[1]):null,o=i[2]?parseInt(i[2]):null;return{year:o===null?u:o*100,restDateString:e.slice((i[1]||i[2]).length)}}function uF(e,t){if(t===null)return new Date(NaN);var r=e.match(aF);if(!r)return new Date(NaN);var i=!!r[4],u=Fs(r[1]),o=Fs(r[2])-1,a=Fs(r[3]),n=Fs(r[4]),l=Fs(r[5])-1;if(i)return mF(t,n,l)?dF(t,n,l):new Date(NaN);var f=new Date(0);return!pF(t,o,a)||!gF(t,u)?new Date(NaN):(f.setUTCFullYear(t,o,Math.max(u,a)),f)}function Fs(e){return e?parseInt(e):1}function cF(e){var t=e.match(iF);if(!t)return NaN;var r=Kg(t[1]),i=Kg(t[2]),u=Kg(t[3]);return vF(r,i,u)?r*Nd+i*Fd+u*1e3:NaN}function Kg(e){return e&&parseFloat(e.replace(",","."))||0}function fF(e){if(e==="Z")return 0;var t=e.match(oF);if(!t)return 0;var r=t[1]==="+"?-1:1,i=parseInt(t[2]),u=t[3]&&parseInt(t[3])||0;return yF(i,u)?r*(i*Nd+u*Fd):NaN}function dF(e,t,r){var i=new Date(0);i.setUTCFullYear(e,0,4);var u=i.getUTCDay()||7,o=(t-1)*7+r+1-u;return i.setUTCDate(i.getUTCDate()+o),i}var hF=[31,null,31,30,31,30,31,31,30,31,30,31];function e4(e){return e%400===0||e%4===0&&e%100!==0}function pF(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(hF[t]||(e4(e)?29:28))}function gF(e,t){return t>=1&&t<=(e4(e)?366:365)}function mF(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function vF(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function yF(e,t){return t>=0&&t<=59}const bF=Object.freeze(Object.defineProperty({__proto__:null,default:QS},Symbol.toStringTag,{value:"Module"}));function xF(e,t){var r,i;dn(1,arguments);var u=hn(e);if(isNaN(u.getTime()))throw new RangeError("Invalid time value");var o=String((r=t==null?void 0:t.format)!==null&&r!==void 0?r:"extended"),a=String((i=t==null?void 0:t.representation)!==null&&i!==void 0?i:"complete");if(o!=="extended"&&o!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(a!=="date"&&a!=="time"&&a!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var n="",l="",f=o==="extended"?"-":"",s=o==="extended"?":":"";if(a!=="time"){var c=Hn(u.getDate(),2),d=Hn(u.getMonth()+1,2),h=Hn(u.getFullYear(),4);n="".concat(h).concat(f).concat(d).concat(f).concat(c)}if(a!=="date"){var p=u.getTimezoneOffset();if(p!==0){var m=Math.abs(p),y=Hn(Math.floor(m/60),2),v=Hn(m%60,2),g=p<0?"+":"-";l="".concat(g).concat(y,":").concat(v)}else l="Z";var b=Hn(u.getHours(),2),x=Hn(u.getMinutes(),2),_=Hn(u.getSeconds(),2),w=n===""?"":"T",k=[b,x,_].join(s);n="".concat(n).concat(w).concat(k).concat(l)}return n}function wF(e,t){dn(2,arguments);var r=hn(e).getTime(),i=hn(t.start).getTime(),u=hn(t.end).getTime();if(!(i<=u))throw new RangeError("Invalid interval");return r>=i&&r<=u}var L0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(l,f){switch(l){case"P":return f.date({width:"short"});case"PP":return f.date({width:"medium"});case"PPP":return f.date({width:"long"});case"PPPP":default:return f.date({width:"full"})}},i=function(l,f){switch(l){case"p":return f.time({width:"short"});case"pp":return f.time({width:"medium"});case"ppp":return f.time({width:"long"});case"pppp":default:return f.time({width:"full"})}},u=function(l,f){var s=l.match(/(P+)(p+)?/)||[],c=s[1],d=s[2];if(!d)return r(l,f);var h;switch(c){case"P":h=f.dateTime({width:"short"});break;case"PP":h=f.dateTime({width:"medium"});break;case"PPP":h=f.dateTime({width:"long"});break;case"PPPP":default:h=f.dateTime({width:"full"});break}return h.replace("{{date}}",r(c,f)).replace("{{time}}",i(d,f))},o={p:i,P:u},a=o;t.default=a,e.exports=t.default})(L0,L0.exports);var _F=L0.exports;const t4=ir(_F),TF={dayOfMonth:"d",fullDate:"PP",fullDateWithWeekday:"PPPP",fullDateTime:"PP p",fullDateTime12h:"PP hh:mm aaa",fullDateTime24h:"PP HH:mm",fullTime:"p",fullTime12h:"hh:mm aaa",fullTime24h:"HH:mm",hours12h:"hh",hours24h:"HH",keyboardDate:"P",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aaa",keyboardDateTime24h:"P HH:mm",minutes:"mm",month:"LLLL",monthAndDate:"MMMM d",monthAndYear:"LLLL yyyy",monthShort:"MMM",weekday:"EEEE",weekdayShort:"EEE",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",seconds:"ss",shortDate:"MMM d",year:"yyyy"};class kF{constructor({locale:t,formats:r}={}){this.lib="date-fns",this.is12HourCycleInCurrentLocale=()=>{var i;return this.locale?/a/.test((i=this.locale.formatLong)===null||i===void 0?void 0:i.time()):!0},this.getFormatHelperText=i=>{var u,o;const a=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,n=this.locale||$d;return(o=(u=i.match(a))===null||u===void 0?void 0:u.map(l=>{const f=l[0];if(f==="p"||f==="P"){const s=t4[f];return s(l,n.formatLong,{})}return l}).join("").replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase())!==null&&o!==void 0?o:i},this.parseISO=i=>QS(i),this.toISO=i=>xF(i,{format:"extended"}),this.getCurrentLocaleCode=()=>{var i;return((i=this.locale)===null||i===void 0?void 0:i.code)||"en-US"},this.addSeconds=(i,u)=>TR(i,u),this.addMinutes=(i,u)=>MR(i,u),this.addHours=(i,u)=>CR(i,u),this.addDays=(i,u)=>P0(i,u),this.addWeeks=(i,u)=>OR(i,u),this.addMonths=(i,u)=>pf(i,u),this.addYears=(i,u)=>Ww(i,u),this.isValid=i=>jS(this.date(i)),this.getDiff=(i,u,o)=>{var a;const n=(a=this.date(u))!==null&&a!==void 0?a:i;if(!this.isValid(n))return 0;switch(o){case"years":return PR(i,n);case"quarters":return LR(i,n);case"months":return FS(i,n);case"weeks":return NR(i,n);case"days":return NS(i,n);case"hours":return $R(i,n);case"minutes":return BR(i,n);case"seconds":return zR(i,n);default:return jd(i,n)}},this.isAfter=(i,u)=>$c(i,u),this.isBefore=(i,u)=>ol(i,u),this.startOfDay=i=>kl(i),this.endOfDay=i=>D0(i),this.getHours=i=>qL(i),this.setHours=(i,u)=>QI(i,u),this.setMinutes=(i,u)=>eF(i,u),this.getSeconds=i=>HL(i),this.setSeconds=(i,u)=>nF(i,u),this.isSameDay=(i,u)=>GL(i,u),this.isSameMonth=(i,u)=>ZL(i,u),this.isSameYear=(i,u)=>XL(i,u),this.isSameHour=(i,u)=>KL(i,u),this.startOfYear=i=>zc(i),this.endOfYear=i=>Gg(i),this.startOfMonth=i=>Bc(i),this.endOfMonth=i=>E0(i),this.startOfWeek=i=>Zg(i,{locale:this.locale}),this.endOfWeek=i=>Yg(i,{locale:this.locale}),this.getYear=i=>VL(i),this.setYear=(i,u)=>rF(i,u),this.date=i=>typeof i>"u"?new Date:i===null?null:new Date(i),this.toJsDate=i=>i,this.parse=(i,u)=>i===""?null:ZI(i,u,new Date,{locale:this.locale}),this.format=(i,u)=>this.formatByString(i,this.formats[u]),this.formatByString=(i,u)=>VS(i,u,{locale:this.locale}),this.isEqual=(i,u)=>i===null&&u===null?!0:YL(i,u),this.isNull=i=>i===null,this.isAfterDay=(i,u)=>$c(i,D0(u)),this.isBeforeDay=(i,u)=>ol(i,kl(u)),this.isBeforeYear=(i,u)=>ol(i,zc(u)),this.isAfterYear=(i,u)=>$c(i,Gg(u)),this.isWithinRange=(i,[u,o])=>wF(i,{start:u,end:o}),this.formatNumber=i=>i,this.getMinutes=i=>WL(i),this.getDate=i=>BL(i),this.setDate=(i,u)=>JI(i,u),this.getMonth=i=>UL(i),this.getDaysInMonth=i=>YS(i),this.setMonth=(i,u)=>tF(i,u),this.getMeridiemText=i=>i==="am"?"AM":"PM",this.getNextMonth=i=>pf(i,1),this.getPreviousMonth=i=>pf(i,-1),this.getMonthArray=i=>{const o=[zc(i)];for(;o.length<12;){const a=o[o.length-1];o.push(this.getNextMonth(a))}return o},this.mergeDateAndTime=(i,u)=>this.setSeconds(this.setMinutes(this.setHours(i,this.getHours(u)),this.getMinutes(u)),this.getSeconds(u)),this.getWeekdays=()=>{const i=new Date;return qR({start:Zg(i,{locale:this.locale}),end:Yg(i,{locale:this.locale})}).map(u=>this.formatByString(u,"EEEEEE"))},this.getWeekArray=i=>{const u=Zg(Bc(i),{locale:this.locale}),o=Yg(E0(i),{locale:this.locale});let a=0,n=u;const l=[];let f=null;for(;ol(n,o);){const s=Math.floor(a/7);l[s]=l[s]||[];const c=zL(n);f!==c&&(f=c,l[s].push(n),a+=1),n=P0(n,1)}return l},this.getYearRange=(i,u)=>{const o=zc(i),a=Gg(u),n=[];let l=o;for(;ol(l,a);)n.push(l),l=Ww(l,1);return n},this.locale=t,this.formats=Object.assign({},TF,r)}isBeforeMonth(t,r){return ol(t,Bc(r))}isAfterMonth(t,r){return $c(t,Bc(r))}}const MF={y:"year",yy:"year",yyy:"year",yyyy:"year",MMMM:"month",MM:"month",DD:"day",d:"day",dd:"day",H:"hour",HH:"hour",h:"hour",hh:"hour",mm:"minute",ss:"second",a:"am-pm",aa:"am-pm",aaa:"am-pm"};class SF extends kF{constructor(...t){super(...t),this.formatTokenMap=MF,this.expandFormat=r=>{const i=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return r.match(i).map(u=>{const o=u[0];if(o==="p"||o==="P"){const a=t4[o],n=this.locale||$d;return a(u,n.formatLong,{})}return u}).join("")},this.getFormatHelperText=r=>this.expandFormat(r).replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase()}}const CF=Object.freeze(Object.defineProperty({__proto__:null,AdapterDateFns:SF},Symbol.toStringTag,{value:"Module"})),n4=qn(CF);function r4(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;te.indexOf(r)!==-1):e.indexOf(t)!==-1}const a4=(e,t)=>r=>{(r.key==="Enter"||r.key===" ")&&(e(r),r.preventDefault(),r.stopPropagation())},i4=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?i4(t.shadowRoot):t:null};function OF(e){return _r("PrivatePickersMonth",e)}const I0=wr("PrivatePickersMonth",["root","selected"]),AF=["disabled","onSelect","selected","value","tabIndex","hasFocus","onFocus","onBlur"],PF=e=>{const{classes:t,selected:r}=e;return Tr({root:["root",r&&"selected"]},OF,t)},DF=wn(Cr,{name:"PrivatePickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${I0.selected}`]:t.selected}]})(({theme:e})=>Gt({flex:"1 0 33.33%",display:"flex",alignItems:"center",justifyContent:"center",color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:Ef(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{pointerEvents:"none",color:e.palette.text.secondary},[`&.${I0.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),Jw=()=>{},EF=e=>{const{disabled:t,onSelect:r,selected:i,value:u,tabIndex:o,hasFocus:a,onFocus:n=Jw,onBlur:l=Jw}=e,f=Vn(e,AF),s=PF(e),c=()=>{r(u)},d=$e.useRef(null);return b9(()=>{if(a){var h;(h=d.current)==null||h.focus()}},[a]),je.jsx(DF,Gt({ref:d,component:"button",type:"button",className:s.root,tabIndex:o,onClick:c,onKeyDown:a4(c),color:i?"primary":void 0,variant:i?"h5":"subtitle1",disabled:t,onFocus:h=>n(h,u),onBlur:h=>l(h,u)},f))},Rr=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:Gt({},e)}}}}),RF={previousMonth:"Vorige maand",nextMonth:"Volgende maand",openPreviousView:"open vorige view",openNextView:"open volgende view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"jaarweergave is geopend, schakel over naar kalenderweergave":"kalenderweergave is geopend, switch naar jaarweergave",start:"Start",end:"Einde",cancelButtonLabel:"Annuleren",clearButtonLabel:"Resetten",okButtonLabel:"OK",todayButtonLabel:"Vandaag",clockLabelText:(e,t,r)=>`Selecteer ${e}. ${t===null?"Geen tijd geselecteerd":`Geselecteerde tijd is ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} uren`,minutesClockNumberText:e=>`${e} minuten`,secondsClockNumberText:e=>`${e} seconden`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Kies datum, geselecteerde datum is ${t.format(t.date(e),"fullDate")}`:"Kies datum",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Kies tijd, geselecteerde tijd is ${t.format(t.date(e),"fullTime")}`:"Kies tijd",timeTableLabel:"kies tijd",dateTableLabel:"kies datum"},LF=Rr(RF),IF={previousMonth:"Poprzedni miesiąc",nextMonth:"Następny miesiąc",openPreviousView:"otwórz poprzedni widok",openNextView:"otwórz następny widok",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"otwarty jest widok roku, przełącz na widok kalendarza":"otwarty jest widok kalendarza, przełącz na widok roku",start:"Początek",end:"Koniec",cancelButtonLabel:"Anuluj",clearButtonLabel:"Wyczyść",okButtonLabel:"Zatwierdź",todayButtonLabel:"Dzisiaj",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"Nie wybrano czasu":`Wybrany czas to ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} godzin`,minutesClockNumberText:e=>`${e} minut`,secondsClockNumberText:e=>`${e} sekund`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Wybierz datę, obecnie wybrana data to ${t.format(t.date(e),"fullDate")}`:"Wybierz datę",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Wybierz czas, obecnie wybrany czas to ${t.format(t.date(e),"fullTime")}`:"Wybierz czas",timeTableLabel:"wybierz czas",dateTableLabel:"wybierz datę"},FF=Rr(IF),NF={previousMonth:"Mês anterior",nextMonth:"Próximo mês",openPreviousView:"Abrir próxima seleção",openNextView:"Abrir seleção anterior",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"Seleção de ano está aberta, alternando para seleção de calendário":"Seleção de calendários está aberta, alternando para seleção de ano",start:"Início",end:"Fim",cancelButtonLabel:"Cancelar",clearButtonLabel:"Limpar",okButtonLabel:"OK",todayButtonLabel:"Hoje",datePickerDefaultToolbarTitle:"Selecione a data",dateTimePickerDefaultToolbarTitle:"Selecione data e hora",timePickerDefaultToolbarTitle:"Selecione a hora",dateRangePickerDefaultToolbarTitle:"Selecione o intervalo entre datas",clockLabelText:(e,t,r)=>`Selecione ${e}. ${t===null?"Hora não selecionada":`Selecionado a hora ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} horas`,minutesClockNumberText:e=>`${e} minutos`,secondsClockNumberText:e=>`${e} segundos`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Escolha uma data, data selecionada ${t.format(t.date(e),"fullDate")}`:"Escolha uma data",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Escolha uma hora, hora selecionada ${t.format(t.date(e),"fullTime")}`:"Escolha uma hora",timeTableLabel:"escolha uma hora",dateTableLabel:"escolha uma data"},jF=Rr(NF),$F={previousMonth:"Önceki ay",nextMonth:"Sonraki ay",openPreviousView:"sonraki görünüm",openNextView:"önceki görünüm",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"yıl görünümü açık, takvim görünümüne geç":"takvim görünümü açık, yıl görünümüne geç",inputModeToggleButtonAriaLabel:(e,t)=>e?`metin girişi görünümü açık, şuraya gidin: ${t} görünümü`:`${t} görünüm açık, metin girişi görünümüne gidin`,start:"Başlangıç",end:"Bitiş",cancelButtonLabel:"iptal",clearButtonLabel:"Temizle",okButtonLabel:"Tamam",todayButtonLabel:"Bugün",datePickerDefaultToolbarTitle:"Tarih Seç",dateTimePickerDefaultToolbarTitle:"Tarih & Saat seç",timePickerDefaultToolbarTitle:"Saat seç",dateRangePickerDefaultToolbarTitle:"Tarih aralığı seçin",clockLabelText:(e,t,r)=>`${e} seç. ${t===null?"Zaman seçilmedi":`Seçilen zaman: ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} saat`,minutesClockNumberText:e=>`${e} dakika`,secondsClockNumberText:e=>`${e} saniye`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Tarih seçin, seçilen tarih: ${t.format(e,"fullDate")}`:"Tarih seç",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Saat seçin, seçilen saat: ${t.format(e,"fullTime")}`:"Saat seç",timeTableLabel:"saat seç",dateTableLabel:"tarih seç"},BF=Rr($F),Wc={hours:"Stunden",minutes:"Minuten",seconds:"Sekunden"},Qw={calendar:"Kalenderansicht",clock:"Uhransicht"},zF={previousMonth:"Letzter Monat",nextMonth:"Nächster Monat",openPreviousView:"Letzte Ansicht öffnen",openNextView:"Nächste Ansicht öffnen",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"Jahresansicht ist geöffnet, zur Kalenderansicht wechseln":"Kalenderansicht ist geöffnet, zur Jahresansicht wechseln",inputModeToggleButtonAriaLabel:(e,t)=>e?`Texteingabeansicht ist geöffnet, zur ${Qw[t]} wechseln`:`${Qw[t]} ist geöffnet, zur Texteingabeansicht wechseln`,start:"Beginn",end:"Ende",cancelButtonLabel:"Abbrechen",clearButtonLabel:"Löschen",okButtonLabel:"OK",todayButtonLabel:"Heute",datePickerDefaultToolbarTitle:"Datum auswählen",dateTimePickerDefaultToolbarTitle:"Datum & Uhrzeit auswählen",timePickerDefaultToolbarTitle:"Uhrzeit auswählen",dateRangePickerDefaultToolbarTitle:"Datumsbereich auswählen",clockLabelText:(e,t,r)=>{var i;return`${(i=Wc[e])!=null?i:e} auswählen. ${t===null?"Keine Uhrzeit ausgewählt":`Gewählte Uhrzeit ist ${r.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} ${Wc.hours}`,minutesClockNumberText:e=>`${e} ${Wc.minutes}`,secondsClockNumberText:e=>`${e} ${Wc.seconds}`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Datum auswählen, gewähltes Datum ist ${t.format(t.date(e),"fullDate")}`:"Datum auswählen",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Uhrzeit auswählen, gewählte Uhrzeit ist ${t.format(t.date(e),"fullTime")}`:"Uhrzeit auswählen",timeTableLabel:"Uhrzeit auswählen",dateTableLabel:"Datum auswählen"},qF=Rr(zF),WF={hours:"las horas",minutes:"los minutos",seconds:"los segundos"},UF={previousMonth:"Último mes",nextMonth:"Próximo mes",openPreviousView:"abrir la última vista",openNextView:"abrir la siguiente vista",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"la vista del año está abierta, cambie a la vista de calendario":"la vista de calendario está abierta, cambie a la vista del año",inputModeToggleButtonAriaLabel:(e,t)=>e?`la vista de entrada de texto está abierta, ir a la vista ${t}`:`la vista ${t} está abierta, ir a la vista de entrada de texto`,start:"Empezar",end:"Terminar",cancelButtonLabel:"Cancelar",clearButtonLabel:"Limpiar",okButtonLabel:"OK",todayButtonLabel:"Hoy",datePickerDefaultToolbarTitle:"Seleccionar fecha",dateTimePickerDefaultToolbarTitle:"Seleccionar fecha & hora",timePickerDefaultToolbarTitle:"Seleccionar hora",dateRangePickerDefaultToolbarTitle:"Seleccionar rango de fecha",clockLabelText:(e,t,r)=>`Seleccione ${WF[e]}. ${t===null?"Sin tiempo seleccionado":`El tiempo seleccionado es ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} horas`,minutesClockNumberText:e=>`${e} minutos`,secondsClockNumberText:e=>`${e} segundos`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Elige la fecha, la fecha elegida es ${t.format(t.date(e),"fullDate")}`:"Elige la fecha",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Elige la hora, la hora elegido es ${t.format(t.date(e),"fullTime")}`:"Elige la hora",timeTableLabel:"elige la fecha",dateTableLabel:"elige la hora"},HF=Rr(UF),VF={previousMonth:"ماه گذشته",nextMonth:"ماه آینده",openPreviousView:"نمای قبلی",openNextView:"نمای بعدی",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"نمای سال باز است، رفتن به نمای تقویم":"نمای تقویم باز است، رفتن به نمای سال",inputModeToggleButtonAriaLabel:(e,t)=>e?`نمای ورودی متن باز است، رفتن به نمای ${t}`:`نمای ${t} باز است، رفتن به نمای ورودی متن`,start:"شروع",end:"پایان",cancelButtonLabel:"لغو",clearButtonLabel:"پاک کردن",okButtonLabel:"اوکی",todayButtonLabel:"امروز",datePickerDefaultToolbarTitle:"تاریخ را انتخاب کنید",dateTimePickerDefaultToolbarTitle:"تاریخ و ساعت را انتخاب کنید",timePickerDefaultToolbarTitle:"ساعت را انتخاب کنید",dateRangePickerDefaultToolbarTitle:"محدوده تاریخ را انتخاب کنید",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"هیچ ساعتی انتخاب نشده است":`ساعت انتخاب ${r.format(t,"fullTime")} می باشد`}`,hoursClockNumberText:e=>`${e} ساعت ها`,minutesClockNumberText:e=>`${e} دقیقه ها`,secondsClockNumberText:e=>`${e} ثانیه ها`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`تاریخ را انتخاب کنید، تاریخ انتخاب شده ${t.format(t.date(e),"fullDate")} می باشد`:"تاریخ را انتخاب کنید",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`ساعت را انتخاب کنید، ساعت انتخاب شده ${t.format(t.date(e),"fullTime")} می باشد`:"ساعت را انتخاب کنید",timeTableLabel:"انتخاب تاریخ",dateTableLabel:"انتخاب ساعت"},YF=Rr(VF),GF={hours:"tunnit",minutes:"minuutit",seconds:"sekuntit"},e_={calendar:"kalenteri",clock:"kello"},XF={previousMonth:"Edellinen kuukausi",nextMonth:"Seuraava kuukausi",openPreviousView:"avaa edellinen kuukausi",openNextView:"avaa seuraava kuukausi",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"vuosinäkymä on auki, vaihda kalenterinäkymään":"kalenterinäkymä on auki, vaihda vuosinäkymään",inputModeToggleButtonAriaLabel:(e,t)=>e?`tekstikenttä on auki, mene ${e_[t]}näkymään`:`${e_[t]}näkymä on auki, mene tekstikenttään`,start:"Alku",end:"Loppu",cancelButtonLabel:"Peruuta",clearButtonLabel:"Tyhjennä",okButtonLabel:"OK",todayButtonLabel:"Tänään",datePickerDefaultToolbarTitle:"Valitse päivä",dateTimePickerDefaultToolbarTitle:"Valitse päivä ja aika",timePickerDefaultToolbarTitle:"Valitse aika",dateRangePickerDefaultToolbarTitle:"Valitse aikaväli",clockLabelText:(e,t,r)=>`Valitse ${GF[e]}. ${t===null?"Ei aikaa valittuna":`Valittu aika on ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} tuntia`,minutesClockNumberText:e=>`${e} minuuttia`,secondsClockNumberText:e=>`${e} sekunttia`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Valitse päivä, valittu päivä on ${t.format(t.date(e),"fullDate")}`:"Valitse päivä",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Valitse aika, valittu aika on ${t.format(t.date(e),"fullTime")}`:"Valitse aika",timeTableLabel:"valitse aika",dateTableLabel:"valitse päivä"},ZF=Rr(XF),KF={hours:"Hodiny",minutes:"Minuty",seconds:"Sekundy"},t_={calendar:"kalendáře",clock:"času"},JF={previousMonth:"Další měsíc",nextMonth:"Předchozí month",openPreviousView:"otevřít předchozí zobrazení",openNextView:"otevřít další zobrazení",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"roční zobrazení otevřeno, přepněte do zobrazení kalendáře":"zobrazení kalendáře otevřeno, přepněte do zobrazení roku",inputModeToggleButtonAriaLabel:(e,t)=>e?`Zobrazení pro zadávání textu je otevřené, přepněte do zobrazení ${t_[t]}`:`Zobrazení ${t_[t]} je otevřené, přepněte do zobrazení textového pole`,start:"Začátek",end:"Konec",cancelButtonLabel:"Zrušit",clearButtonLabel:"Vymazat",okButtonLabel:"Potvrdit",todayButtonLabel:"Dnes",datePickerDefaultToolbarTitle:"Vyberte datum",dateTimePickerDefaultToolbarTitle:"Vyberte datum a čas",timePickerDefaultToolbarTitle:"Vyberte čas",dateRangePickerDefaultToolbarTitle:"Vyberete rozmezí dat",clockLabelText:(e,t,r)=>{var i;return`${(i=KF[e])!=null?i:e} vybrány. ${t===null?"Není vybrán čas":`Vybraný čas je ${r.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} hodin`,minutesClockNumberText:e=>`${e} minut`,secondsClockNumberText:e=>`${e} sekund`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Vybrané datum, vybrané datum je ${t.format(e,"fullDate")}`:"Vyberte datum",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Vybrané čas, vybraný čas je ${t.format(e,"fullTime")}`:"Vyberte čas",timeTableLabel:"vyberte čas",dateTableLabel:"vyberte datum"},QF=Rr(JF),eN={hours:"heures",minutes:"minutes",seconds:"secondes"},n_={calendar:"calendrier",clock:"horloge"},tN={previousMonth:"Mois précédent",nextMonth:"Mois suivant",openPreviousView:"Ouvrir la vue précédente",openNextView:"Ouvrir la vue suivante",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"La vue année est ouverte, ouvrir la vue calendrier":"La vue calendrier est ouverte, ouvrir la vue année",inputModeToggleButtonAriaLabel:(e,t)=>e?`passer du champ text au ${n_[t]}`:`passer du ${n_[t]} au champ text`,start:"Début",end:"Fin",cancelButtonLabel:"Annuler",clearButtonLabel:"Vider",okButtonLabel:"OK",todayButtonLabel:"Aujourd'hui",clockLabelText:(e,t,r)=>`Choix des ${eN[e]}. ${t===null?"Aucune heure choisie":`L'heure choisie est ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} heures`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} secondes`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choisir la date, la date sélectionnée est ${t.format(t.date(e),"fullDate")}`:"Choisir la date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choisir l'heure, l'heure sélectionnée est ${t.format(t.date(e),"fullTime")}`:"Choisir l'heure",timeTableLabel:"choix de l'heure",dateTableLabel:"choix de la date"},nN=Rr(tN),Uc={hours:"Óra",minutes:"Perc",seconds:"Másodperc"},r_={calendar:"naptár",clock:"óra"},rN={previousMonth:"Előző hónap",nextMonth:"Következő hónap",openPreviousView:"Előző nézet megnyitása",openNextView:"Következő nézet megnyitása",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"az évválasztó már nyitva, váltson a naptárnézetre":"a naptárnézet már nyitva, váltson az évválasztóra",inputModeToggleButtonAriaLabel:(e,t)=>e?`szöveges beviteli nézet aktív, váltás ${r_[t]} nézetre`:`${r_[t]} beviteli nézet aktív, váltás szöveges beviteli nézetre`,start:"Kezdő dátum",end:"Záró dátum",cancelButtonLabel:"Mégse",clearButtonLabel:"Törlés",okButtonLabel:"OK",todayButtonLabel:"Ma",datePickerDefaultToolbarTitle:"Dátum kiválasztása",dateTimePickerDefaultToolbarTitle:"Dátum és idő kiválasztása",timePickerDefaultToolbarTitle:"Idő kiválasztása",dateRangePickerDefaultToolbarTitle:"Dátumhatárok kiválasztása",clockLabelText:(e,t,r)=>{var i;return`${(i=Uc[e])!=null?i:e} kiválasztása. ${t===null?"Nincs kiválasztva idő":`A kiválasztott idő ${r.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} ${Uc.hours.toLowerCase()}`,minutesClockNumberText:e=>`${e} ${Uc.minutes.toLowerCase()}`,secondsClockNumberText:e=>`${e} ${Uc.seconds.toLowerCase()}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Válasszon dátumot, a kiválasztott dátum: ${t.format(e,"fullDate")}`:"Válasszon dátumot",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Válasszon időt, a kiválasztott idő: ${t.format(e,"fullTime")}`:"Válasszon időt",timeTableLabel:"válasszon időt",dateTableLabel:"válasszon dátumot"},aN=Rr(rN),o4={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",inputModeToggleButtonAriaLabel:(e,t)=>e?`text input view is open, go to ${t} view`:`${t} view is open, go to text input view`,start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerDefaultToolbarTitle:"Select date",dateTimePickerDefaultToolbarTitle:"Select date & time",timePickerDefaultToolbarTitle:"Select time",dateRangePickerDefaultToolbarTitle:"Select date range",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose date, selected date is ${t.format(t.date(e),"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose time, selected time is ${t.format(t.date(e),"fullTime")}`:"Choose time",timeTableLabel:"pick time",dateTableLabel:"pick date"},l4=o4,iN=Rr(o4),oN={previousMonth:"Forrige måned",nextMonth:"Neste måned",openPreviousView:"åpne forrige visning",openNextView:"åpne neste visning",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"årsvisning er åpen, bytt til kalendervisning":"kalendervisning er åpen, bytt til årsvisning",start:"Start",end:"Slutt",cancelButtonLabel:"Avbryt",clearButtonLabel:"Fjern",okButtonLabel:"OK",todayButtonLabel:"I dag",clockLabelText:(e,t,r)=>`Velg ${e}. ${t===null?"Ingen tid valgt":`Valgt tid er ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} timer`,minutesClockNumberText:e=>`${e} minutter`,secondsClockNumberText:e=>`${e} sekunder`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velg dato, valgt dato er ${t.format(t.date(e),"fullDate")}`:"Velg dato",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velg tid, valgt tid er ${t.format(t.date(e),"fullTime")}`:"Velg tid",timeTableLabel:"velg tid",dateTableLabel:"velg dato"},lN=Rr(oN),sN={previousMonth:"Föregående månad",nextMonth:"Nästa månad",openPreviousView:"öppna föregående vy",openNextView:"öppna nästa vy",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"årsvyn är öppen, byt till kalendervy":"kalendervyn är öppen, byt till årsvy",start:"Start",end:"Slut",cancelButtonLabel:"Avbryt",clearButtonLabel:"Rensa",okButtonLabel:"OK",todayButtonLabel:"Idag",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"Ingen tid vald":`Vald tid är ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} timmar`,minutesClockNumberText:e=>`${e} minuter`,secondsClockNumberText:e=>`${e} sekunder`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Välj datum, valt datum är ${t.format(t.date(e),"fullDate")}`:"Välj datum",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Välj tid, vald tid är ${t.format(t.date(e),"fullTime")}`:"Välj tid",timeTableLabel:"välj tid",dateTableLabel:"välj datum"},uN=Rr(sN),cN={hours:"le ore",minutes:"i minuti",seconds:"i secondi"},fN={previousMonth:"Mese precedente",nextMonth:"Mese successivo",openPreviousView:"apri la vista precedente",openNextView:"apri la vista successiva",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"la vista dell'anno è aperta, passare alla vista del calendario":"la vista dell'calendario è aperta, passare alla vista dell'anno",inputModeToggleButtonAriaLabel:(e,t)=>e?`la vista del campo di testo è aperta, passare alla vista ${t}`:`la vista aperta è: ${t}, vai alla vista del campo di testo`,start:"Inizio",end:"Fine",cancelButtonLabel:"Cancellare",clearButtonLabel:"Sgomberare",okButtonLabel:"OK",todayButtonLabel:"Oggi",datePickerDefaultToolbarTitle:"Seleziona data",dateTimePickerDefaultToolbarTitle:"Seleziona data e orario",timePickerDefaultToolbarTitle:"Seleziona orario",dateRangePickerDefaultToolbarTitle:"Seleziona intervallo di date",clockLabelText:(e,t,r)=>`Seleziona ${cN[e]}. ${t===null?"Nessun orario selezionato":`L'ora selezionata è ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} ore`,minutesClockNumberText:e=>`${e} minuti`,secondsClockNumberText:e=>`${e} secondi`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Scegli la data, la data selezionata è ${t.format(t.date(e),"fullDate")}`:"Scegli la data",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Scegli l'ora, l'ora selezionata è ${t.format(t.date(e),"fullTime")}`:"Scegli l'ora",timeTableLabel:"scegli un'ora",dateTableLabel:"scegli una data"},dN=Rr(fN),hN={hours:"小时",minutes:"分钟",seconds:"秒"},pN={previousMonth:"上个月",nextMonth:"下个月",openPreviousView:"前一个视图",openNextView:"下一个视图",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"年视图已打开,切换为日历视图":"日历视图已打开,切换为年视图",start:"开始",end:"结束",cancelButtonLabel:"取消",clearButtonLabel:"清除",okButtonLabel:"确认",todayButtonLabel:"今天",clockLabelText:(e,t,r)=>`Select ${hN[e]}. ${t===null?"未选择时间":`已选择${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e}小时`,minutesClockNumberText:e=>`${e}分钟`,secondsClockNumberText:e=>`${e}秒`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`选择日期,已选择${t.format(t.date(e),"fullDate")}`:"选择日期",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`选择时间,已选择${t.format(t.date(e),"fullTime")}`:"选择时间",timeTableLabel:"选择时间",dateTableLabel:"选择日期"},gN=Rr(pN),mN={hours:"시간을",minutes:"분을",seconds:"초를"},vN={previousMonth:"이전 달",nextMonth:"다음 달",openPreviousView:"이전 화면 보기",openNextView:"다음 화면 보기",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"연도 선택 화면에서 달력 화면으로 전환하기":"달력 화면에서 연도 선택 화면으로 전환하기",inputModeToggleButtonAriaLabel:(e,t)=>e?`텍스트 입력 화면에서 ${t} 화면으로 전환하기`:`${t} 화면에서 텍스트 입력 화면으로 전환하기`,start:"시작",end:"종료",cancelButtonLabel:"취소",clearButtonLabel:"초기화",okButtonLabel:"확인",todayButtonLabel:"오늘",datePickerDefaultToolbarTitle:"날짜 선택하기",dateTimePickerDefaultToolbarTitle:"날짜 & 시간 선택하기",timePickerDefaultToolbarTitle:"시간 선택하기",dateRangePickerDefaultToolbarTitle:"날짜 범위 선택하기",clockLabelText:(e,t,r)=>`${mN[e]} 선택하세요. ${t===null?"시간을 선택하지 않았습니다.":`현재 선택된 시간은 ${r.format(t,"fullTime")}입니다.`}`,hoursClockNumberText:e=>`${e}시간`,minutesClockNumberText:e=>`${e}분`,secondsClockNumberText:e=>`${e}초`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`날짜를 선택하세요. 현재 선택된 날짜는 ${t.format(t.date(e),"fullDate")}입니다.`:"날짜를 선택하세요",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`시간을 선택하세요. 현재 선택된 시간은 ${t.format(t.date(e),"fullTime")}입니다.`:"시간을 선택하세요",timeTableLabel:"선택한 시간",dateTableLabel:"선택한 날짜"},yN=Rr(vN),bN={previousMonth:"Fyrri mánuður",nextMonth:"Næsti mánuður",openPreviousView:"opna fyrri skoðun",openNextView:"opna næstu skoðun",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"ársskoðun er opin, skipta yfir í dagatalsskoðun":"dagatalsskoðun er opin, skipta yfir í ársskoðun",inputModeToggleButtonAriaLabel:(e,t)=>{const r=t==="calendar"?"dagatals":"klukku";return e?`textainnsláttur er opinn, fara í ${r}skoðun`:`${r}skoðun er opin, opna fyrir textainnslátt`},start:"Upphaf",end:"Endir",cancelButtonLabel:"Hætta við",clearButtonLabel:"Hreinsa",okButtonLabel:"OK",todayButtonLabel:"Í dag",datePickerDefaultToolbarTitle:"Velja dagsetningu",dateTimePickerDefaultToolbarTitle:"Velja dagsetningu og tíma",timePickerDefaultToolbarTitle:"Velja tíma",dateRangePickerDefaultToolbarTitle:"Velja tímabil",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"Enginn tími valinn":`Valinn tími er ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} klukkustundir`,minutesClockNumberText:e=>`${e} mínútur`,secondsClockNumberText:e=>`${e} sekúndur`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velja dagsetningu, valin dagsetning er ${t.format(t.date(e),"fullDate")}`:"Velja dagsetningu",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velja tíma, valinn tími er ${t.format(t.date(e),"fullTime")}`:"Velja tíma",timeTableLabel:"velja tíma",dateTableLabel:"velja dagsetningu"},xN=Rr(bN),Hc={hours:"時間",minutes:"分",seconds:"秒"},a_={calendar:"カレンダー表示",clock:"時計表示"},wN={previousMonth:"先月",nextMonth:"来月",openPreviousView:"前の表示を開く",openNextView:"次の表示を開く",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"年選択表示からカレンダー表示に切り替える":"カレンダー表示から年選択表示に切り替える",inputModeToggleButtonAriaLabel:(e,t)=>e?`テキスト入力表示から${a_[t]}に切り替える`:`${a_[t]}からテキスト入力表示に切り替える`,start:"開始",end:"終了",cancelButtonLabel:"キャンセル",clearButtonLabel:"クリア",okButtonLabel:"確定",todayButtonLabel:"今日",datePickerDefaultToolbarTitle:"日付を選択",dateTimePickerDefaultToolbarTitle:"日時を選択",timePickerDefaultToolbarTitle:"時間を選択",dateRangePickerDefaultToolbarTitle:"日付の範囲を選択",clockLabelText:(e,t,r)=>{var i;return`${(i=Hc[e])!=null?i:e}を選択してください ${t===null?"時間が選択されていません":`選択した時間は ${r.format(t,"fullTime")} です`}`},hoursClockNumberText:e=>`${e} ${Hc.hours}`,minutesClockNumberText:e=>`${e} ${Hc.minutes}`,secondsClockNumberText:e=>`${e} ${Hc.seconds}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`日付を選択してください。選択した日付は ${t.format(e,"fullDate")} です`:"日付を選択してください",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`時間を選択してください。選択した時間は ${t.format(e,"fullTime")} です`:"時間を選択してください",timeTableLabel:"時間を選択",dateTableLabel:"日付を選択"},_N=Rr(wN),TN={previousMonth:"Попередній місяць",nextMonth:"Наступний місяць",openPreviousView:"відкрити попередній вигляд",openNextView:"відкрити наступний вигляд",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"річний вигляд відкрито, перейти до календарного вигляду":"календарний вигляд відкрито, перейти до річного вигляду",inputModeToggleButtonAriaLabel:(e,t)=>e?`текстове поле відкрите, перейти до ${t} вигляду`:`${t} вигляд наразі відкрито, перейти до текстового поля`,start:"Початок",end:"Кінець",cancelButtonLabel:"Відміна",clearButtonLabel:"Очистити",okButtonLabel:"OK",todayButtonLabel:"Сьогодні",datePickerDefaultToolbarTitle:"Вибрати дату",dateTimePickerDefaultToolbarTitle:"Вибрати дату і час",timePickerDefaultToolbarTitle:"Вибрати час",dateRangePickerDefaultToolbarTitle:"Вибрати календарний період",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"Час не вибраний":`Вибрано час ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} годин`,minutesClockNumberText:e=>`${e} хвилин`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Оберіть дату, обрана дата ${t.format(e,"fullDate")}`:"Оберіть дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Оберіть час, обраний час ${t.format(e,"fullTime")}`:"Оберіть час",timeTableLabel:"оберіть час",dateTableLabel:"оберіть дату"},kN=Rr(TN),MN={previousMonth:"پچھلا مہینہ",nextMonth:"اگلا مہینہ",openPreviousView:"پچھلا ویو کھولیں",openNextView:"اگلا ویو کھولیں",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"سال والا ویو کھلا ہے۔ کیلنڈر والا ویو کھولیں":"کیلنڈر والا ویو کھلا ہے۔ سال والا ویو کھولیں",inputModeToggleButtonAriaLabel:(e,t)=>e?`،ٹیکسٹ ویو کھلا ہے ${t} ویو کھولیں`:`${t} ویو کھلا ہے، ٹیکسٹ ویو کھولیں`,start:"شروع",end:"ختم",cancelButtonLabel:"کینسل",clearButtonLabel:"کلئیر",okButtonLabel:"اوکے",todayButtonLabel:"آج",datePickerDefaultToolbarTitle:"تاریخ منتخب کریں",dateTimePickerDefaultToolbarTitle:"تاریخ اور وقت منتخب کریں",timePickerDefaultToolbarTitle:"وقت منتخب کریں",dateRangePickerDefaultToolbarTitle:"تاریخوں کی رینج منتخب کریں",clockLabelText:(e,t,r)=>`${e} منتخب کریں ${t===null?"کوئی وقت منتخب نہیں":`منتخب وقت ہے ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} گھنٹے`,minutesClockNumberText:e=>`${e} منٹ`,secondsClockNumberText:e=>`${e} سیکنڈ`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`تاریخ منتخب کریں، منتخب شدہ تاریخ ہے ${t.format(e,"fullDate")}`:"تاریخ منتخب کریں",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`وقت منتخب کریں، منتخب شدہ وقت ہے ${t.format(e,"fullTime")}`:"وقت منتخب کریں",timeTableLabel:"وقت منتخب کریں",dateTableLabel:"تاریخ منتخب کریں"},SN=Rr(MN),Jg={hours:"гадзіны",minutes:"хвіліны",seconds:"секунды",calendar:"календара",clock:"часу"},CN={previousMonth:"Папярэдні месяц",nextMonth:"Наступны месяц",openPreviousView:"адкрыць папярэдні выгляд",openNextView:"адкрыць наступны выгляд",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"гадавы выгляд адкрыты, перайсці да каляндарнага выгляду":"каляндарны выгляд адкрыты, перайсці да гадавога выгляду",inputModeToggleButtonAriaLabel:(e,t)=>e?`тэкставае поле адкрыта, перайсці да выгляду ${Jg[t]}`:`Выгляд ${Jg[t]} зараз адкрыты, перайсці да тэкставага поля`,start:"Пачатак",end:"Канец",cancelButtonLabel:"Адмена",clearButtonLabel:"Ачысціць",okButtonLabel:"OK",todayButtonLabel:"Сёння",datePickerDefaultToolbarTitle:"Абраць дату",dateTimePickerDefaultToolbarTitle:"Абраць дату і час",timePickerDefaultToolbarTitle:"Абраць час",dateRangePickerDefaultToolbarTitle:"Абраць каляндарны перыяд",clockLabelText:(e,t,r)=>`Абярыце ${Jg[e]}. ${t===null?"Час не абраны":`Абраны час ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} гадзін`,minutesClockNumberText:e=>`${e} хвілін`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Абраць дату, абрана дата ${t.format(e,"fullDate")}`:"Абраць дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Абраць час, абрыны час ${t.format(e,"fullTime")}`:"Абраць час",timeTableLabel:"абраць час",dateTableLabel:"абраць дату"},ON=Rr(CN),AN={hours:"часы",minutes:"минуты",seconds:"секунды"},i_={calendar:"календарный",clock:"часовой"},PN={previousMonth:"Предыдущий месяц",nextMonth:"Следующий месяц",openPreviousView:"открыть предыдущий вид",openNextView:"открыть следующий вид",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"открыт годовой вид, переключить на календарный вид":"открыт календарный вид, переключить на годовой вид",inputModeToggleButtonAriaLabel:(e,t)=>e?`Открыт текстовый вид, перейти на ${i_[t]} вид`:`Открыт ${i_[t]} вид, перейти на текстовый вид`,start:"Начало",end:"Конец",cancelButtonLabel:"Отмена",clearButtonLabel:"Очистить",okButtonLabel:"Ок",todayButtonLabel:"Сегодня",datePickerDefaultToolbarTitle:"Выбрать дату",dateTimePickerDefaultToolbarTitle:"Выбрать дату и время",timePickerDefaultToolbarTitle:"Выбрать время",dateRangePickerDefaultToolbarTitle:"Выбрать период",clockLabelText:(e,t,r)=>`Выбрать ${AN[e]}. ${t===null?"Время не выбрано":`Выбрано время ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} часов`,minutesClockNumberText:e=>`${e} минут`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Выберите дату, выбрана дата ${t.format(e,"fullDate")}`:"Выберите дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Выберите время, выбрано время ${t.format(e,"fullTime")}`:"Выберите время",timeTableLabel:"выбрать время",dateTableLabel:"выбрать дату"},DN=Rr(PN),Ey=$e.createContext(null);function EN(e){const t=fr({props:e,name:"MuiLocalizationProvider"}),{children:r,dateAdapter:i,dateFormats:u,dateLibInstance:o,locale:a,adapterLocale:n,localeText:l}=t,f=$e.useMemo(()=>new i({locale:n??a,formats:u,instance:o}),[i,a,n,u,o]),s=$e.useMemo(()=>({minDate:f.date("1900-01-01T00:00:00.000"),maxDate:f.date("2099-12-31T00:00:00.000")}),[f]),c=$e.useMemo(()=>({utils:f,defaultDates:s,localeText:Gt({},l4,l??{})}),[s,f,l]);return je.jsx(Ey.Provider,{value:c,children:r})}const rc=()=>{const e=$e.useContext(Ey);if(e===null)throw new Error("MUI: Can not find utils in context. It looks like you forgot to wrap your component in LocalizationProvider, or pass dateAdapter prop directly.");return e},yr=()=>rc().utils,ac=()=>rc().defaultDates,ti=()=>rc().localeText,ic=()=>{const e=yr();return $e.useRef(e.date()).current};function s4(e){return _r("MuiMonthPicker",e)}const RN=wr("MuiMonthPicker",["root"]),Mu=({date:e,disableFuture:t,disablePast:r,maxDate:i,minDate:u,isDateDisabled:o,utils:a})=>{const n=a.startOfDay(a.date());r&&a.isBefore(u,n)&&(u=n),t&&a.isAfter(i,n)&&(i=n);let l=e,f=e;for(a.isBefore(e,u)&&(l=a.date(u),f=null),a.isAfter(e,i)&&(f&&(f=a.date(i)),l=null);l||f;){if(l&&a.isAfter(l,i)&&(l=null),f&&a.isBefore(f,u)&&(f=null),l){if(!o(l))return l;l=a.addDays(l,1)}if(f){if(!o(f))return f;f=a.addDays(f,-1)}}return null},Ry=(e,t)=>{const r=e.date(t);return e.isValid(r)?r:null},Va=(e,t,r)=>{if(t==null)return r;const i=e.date(t);return e.isValid(i)?i:r},LN=["className","date","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange"],IN=e=>{const{classes:t}=e;return Tr({root:["root"]},s4,t)};function FN(e,t){const r=yr(),i=ac(),u=fr({props:e,name:t});return Gt({disableFuture:!1,disablePast:!1},u,{minDate:Va(r,u.minDate,i.minDate),maxDate:Va(r,u.maxDate,i.maxDate)})}const NN=wn("div",{name:"MuiMonthPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({width:310,display:"flex",flexWrap:"wrap",alignContent:"stretch",margin:"0 4px"}),u4=$e.forwardRef(function(t,r){const i=yr(),u=ic(),o=FN(t,"MuiMonthPicker"),{className:a,date:n,disabled:l,disableFuture:f,disablePast:s,maxDate:c,minDate:d,onChange:h,shouldDisableMonth:p,readOnly:m,disableHighlightToday:y,autoFocus:v=!1,onMonthFocus:g,hasFocus:b,onFocusedViewChange:x}=o,_=Vn(o,LN),w=o,k=IN(w),T=x9(),M=$e.useMemo(()=>n??i.startOfMonth(u),[u,i,n]),S=$e.useMemo(()=>n!=null?i.getMonth(n):y?null:i.getMonth(u),[u,n,i,y]),[C,P]=$e.useState(()=>S||i.getMonth(u)),D=$e.useCallback(E=>{const W=i.startOfMonth(s&&i.isAfter(u,d)?u:d),G=i.startOfMonth(f&&i.isBefore(u,c)?u:c);return i.isBefore(E,W)||i.isAfter(E,G)?!0:p?p(E):!1},[f,s,c,d,u,p,i]),O=E=>{if(m)return;const W=i.setMonth(M,E);h(W,"finish")},[R,F]=gy({name:"MonthPicker",state:"hasFocus",controlled:b,default:v}),A=$e.useCallback(E=>{F(E),x&&x(E)},[F,x]),z=$e.useCallback(E=>{D(i.setMonth(M,E))||(P(E),A(!0),g&&g(E))},[D,i,M,A,g]);$e.useEffect(()=>{P(E=>S!==null&&E!==S?S:E)},[S]);const B=Od(E=>{switch(E.key){case"ArrowUp":z((12+C-3)%12),E.preventDefault();break;case"ArrowDown":z((12+C+3)%12),E.preventDefault();break;case"ArrowLeft":z((12+C+(T.direction==="ltr"?-1:1))%12),E.preventDefault();break;case"ArrowRight":z((12+C+(T.direction==="ltr"?1:-1))%12),E.preventDefault();break}}),$=$e.useCallback((E,W)=>{z(W)},[z]),j=$e.useCallback(()=>{A(!1)},[A]),N=i.getMonth(u);return je.jsx(NN,Gt({ref:r,className:jr(k.root,a),ownerState:w,onKeyDown:B},_,{children:i.getMonthArray(M).map(E=>{const W=i.getMonth(E),G=i.format(E,"monthShort"),L=l||D(E);return je.jsx(EF,{value:W,selected:W===S,tabIndex:W===C&&!L?0:-1,hasFocus:R&&W===C,onSelect:O,onFocus:$,onBlur:j,disabled:L,"aria-current":N===W?"date":void 0,children:G},G)})}))});function Ly(e,t,r){const{value:i,onError:u}=e,o=rc(),a=$e.useRef(null),n=t({adapter:o,value:i,props:e});return $e.useEffect(()=>{u&&!r(n,a.current)&&u(n,i),a.current=n},[r,u,a,n,i]),n}const Iy=({props:e,value:t,adapter:r})=>{const i=r.utils.date(),u=r.utils.date(t),o=Va(r.utils,e.minDate,r.defaultDates.minDate),a=Va(r.utils,e.maxDate,r.defaultDates.maxDate);if(u===null)return null;switch(!0){case!r.utils.isValid(t):return"invalidDate";case!!(e.shouldDisableDate&&e.shouldDisableDate(u)):return"shouldDisableDate";case!!(e.disableFuture&&r.utils.isAfterDay(u,i)):return"disableFuture";case!!(e.disablePast&&r.utils.isBeforeDay(u,i)):return"disablePast";case!!(o&&r.utils.isBeforeDay(u,o)):return"minDate";case!!(a&&r.utils.isAfterDay(u,a)):return"maxDate";default:return null}},c4=({shouldDisableDate:e,minDate:t,maxDate:r,disableFuture:i,disablePast:u})=>{const o=rc();return $e.useCallback(a=>Iy({adapter:o,value:a,props:{shouldDisableDate:e,minDate:t,maxDate:r,disableFuture:i,disablePast:u}})!==null,[o,e,t,r,i,u])},jN=(e,t)=>e===t,Fy=e=>Ly(e,Iy,jN),$N=(e,t,r)=>(i,u)=>{switch(u.type){case"changeMonth":return Gt({},i,{slideDirection:u.direction,currentMonth:u.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return Gt({},i,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(i.focusedDay!=null&&u.focusedDay!=null&&r.isSameDay(u.focusedDay,i.focusedDay))return i;const o=u.focusedDay!=null&&!t&&!r.isSameMonth(i.currentMonth,u.focusedDay);return Gt({},i,{focusedDay:u.focusedDay,isMonthSwitchingAnimating:o&&!e&&!u.withoutMonthSwitchingAnimation,currentMonth:o?r.startOfMonth(u.focusedDay):i.currentMonth,slideDirection:u.focusedDay!=null&&r.isAfterDay(u.focusedDay,i.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},BN=({date:e,defaultCalendarMonth:t,disableFuture:r,disablePast:i,disableSwitchToMonthOnDayFocus:u=!1,maxDate:o,minDate:a,onMonthChange:n,reduceAnimations:l,shouldDisableDate:f})=>{var s;const c=ic(),d=yr(),h=$e.useRef($N(!!l,u,d)).current,[p,m]=$e.useReducer(h,{isMonthSwitchingAnimating:!1,focusedDay:e||c,currentMonth:d.startOfMonth((s=e??t)!=null?s:c),slideDirection:"left"}),y=$e.useCallback(_=>{m(Gt({type:"changeMonth"},_)),n&&n(_.newMonth)},[n]),v=$e.useCallback(_=>{const w=_??c;d.isSameMonth(w,p.currentMonth)||y({newMonth:d.startOfMonth(w),direction:d.isAfterDay(w,p.currentMonth)?"left":"right"})},[p.currentMonth,y,c,d]),g=c4({shouldDisableDate:f,minDate:a,maxDate:o,disableFuture:r,disablePast:i}),b=$e.useCallback(()=>{m({type:"finishMonthSwitchingAnimation"})},[]),x=$e.useCallback((_,w)=>{g(_)||m({type:"changeFocusedDay",focusedDay:_,withoutMonthSwitchingAnimation:w})},[g]);return{calendarState:p,changeMonth:v,changeFocusedDay:x,isDateDisabled:g,onMonthSwitchingAnimationEnd:b,handleChangeMonth:y}},zN=e=>_r("MuiPickersFadeTransitionGroup",e),qN=wr("MuiPickersFadeTransitionGroup",["root"]),WN=e=>{const{classes:t}=e;return Tr({root:["root"]},zN,t)},o_=500,UN=wn(eS,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function f4(e){const t=fr({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:r,className:i,reduceAnimations:u,transKey:o}=t,a=WN(t);return u?r:je.jsx(UN,{className:jr(a.root,i),children:je.jsx(tS,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:o_,enter:o_/2,exit:0},children:r},o)})}const Pu=36,oc=2,Ny=320,HN=358;function d4(e){return _r("MuiPickersDay",e)}const xu=wr("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),VN=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today"],YN=e=>{const{selected:t,disableMargin:r,disableHighlightToday:i,today:u,disabled:o,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:n,classes:l}=e;return Tr({root:["root",t&&"selected",o&&"disabled",!r&&"dayWithMargin",!i&&u&&"today",a&&n&&"dayOutsideMonth",a&&!n&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},d4,l)},h4=({theme:e,ownerState:t})=>Gt({},e.typography.caption,{width:Pu,height:Pu,borderRadius:"50%",padding:0,backgroundColor:e.palette.background.paper,color:e.palette.text.primary,"&:hover":{backgroundColor:Ef(e.palette.action.active,e.palette.action.hoverOpacity)},"&:focus":{backgroundColor:Ef(e.palette.action.active,e.palette.action.hoverOpacity),[`&.${xu.selected}`]:{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${xu.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium,transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),"&:hover":{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${xu.disabled}`]:{color:e.palette.text.disabled}},!t.disableMargin&&{margin:`0 ${oc}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:e.palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${xu.selected})`]:{border:`1px solid ${e.palette.text.secondary}`}}),p4=(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableMargin&&t.dayWithMargin,!r.disableHighlightToday&&r.today&&t.today,!r.outsideCurrentMonth&&r.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,r.outsideCurrentMonth&&!r.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},GN=wn(w9,{name:"MuiPickersDay",slot:"Root",overridesResolver:p4})(h4),XN=wn("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:p4})(({theme:e,ownerState:t})=>Gt({},h4({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),Qg=()=>{},ZN=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiPickersDay"}),{autoFocus:u=!1,className:o,day:a,disabled:n=!1,disableHighlightToday:l=!1,disableMargin:f=!1,isAnimating:s,onClick:c,onDaySelect:d,onFocus:h=Qg,onBlur:p=Qg,onKeyDown:m=Qg,onMouseDown:y,outsideCurrentMonth:v,selected:g=!1,showDaysOutsideCurrentMonth:b=!1,children:x,today:_=!1}=i,w=Vn(i,VN),k=Gt({},i,{autoFocus:u,disabled:n,disableHighlightToday:l,disableMargin:f,selected:g,showDaysOutsideCurrentMonth:b,today:_}),T=YN(k),M=yr(),S=$e.useRef(null),C=_l(S,r);my(()=>{u&&!n&&!s&&!v&&S.current.focus()},[u,n,s,v]);const P=O=>{y&&y(O),v&&O.preventDefault()},D=O=>{n||d(a,"finish"),v&&O.currentTarget.focus(),c&&c(O)};return v&&!b?je.jsx(XN,{className:jr(T.root,T.hiddenDaySpacingFiller,o),ownerState:k,role:w.role}):je.jsx(GN,Gt({className:jr(T.root,o),ownerState:k,ref:C,centerRipple:!0,disabled:n,tabIndex:g?0:-1,onKeyDown:O=>m(O,a),onFocus:O=>h(O,a),onBlur:O=>p(O,a),onClick:D,onMouseDown:P},w,{children:x||M.format(a,"dayOfMonth")}))}),KN=(e,t)=>e.autoFocus===t.autoFocus&&e.isAnimating===t.isAnimating&&e.today===t.today&&e.disabled===t.disabled&&e.selected===t.selected&&e.disableMargin===t.disableMargin&&e.showDaysOutsideCurrentMonth===t.showDaysOutsideCurrentMonth&&e.disableHighlightToday===t.disableHighlightToday&&e.className===t.className&&e.sx===t.sx&&e.outsideCurrentMonth===t.outsideCurrentMonth&&e.onFocus===t.onFocus&&e.onBlur===t.onBlur&&e.onDaySelect===t.onDaySelect,g4=$e.memo(ZN,KN),JN=e=>_r("PrivatePickersSlideTransition",e),sa=wr("PrivatePickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),QN=["children","className","reduceAnimations","slideDirection","transKey"],ej=e=>{const{classes:t}=e;return Tr({root:["root"]},JN,t)},m4=350,tj=wn(eS,{name:"PrivatePickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${sa["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${sa["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${sa.slideEnterActive}`]:t.slideEnterActive},{[`.${sa.slideExit}`]:t.slideExit},{[`.${sa["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${sa["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:m4,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${sa["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${sa["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${sa.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${sa.slideExit}`]:{transform:"translate(0%)"},[`& .${sa["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${sa["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}}),nj=e=>{const{children:t,className:r,reduceAnimations:i,slideDirection:u,transKey:o}=e,a=Vn(e,QN),n=ej(e);if(i)return je.jsx("div",{className:jr(n.root,r),children:t});const l={exit:sa.slideExit,enterActive:sa.slideEnterActive,enter:sa[`slideEnter-${u}`],exitActive:sa[`slideExitActiveLeft-${u}`]};return je.jsx(tj,{className:jr(n.root,r),childFactory:f=>$e.cloneElement(f,{classNames:l}),role:"presentation",children:je.jsx(_9,Gt({mountOnEnter:!0,unmountOnExit:!0,timeout:m4,classNames:l},a,{children:t}),o)})},rj=e=>_r("MuiDayPicker",e),aj=wr("MuiDayPicker",["header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer"]),ij=e=>{const{classes:t}=e;return Tr({header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"]},rj,t)},oj=e=>e.charAt(0).toUpperCase(),v4=(Pu+oc*2)*6,lj=wn("div",{name:"MuiDayPicker",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),sj=wn(Cr,{name:"MuiDayPicker",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.secondary})),uj=wn("div",{name:"MuiDayPicker",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:v4}),cj=wn(nj,{name:"MuiDayPicker",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:v4}),fj=wn("div",{name:"MuiDayPicker",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),dj=wn("div",{name:"MuiDayPicker",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${oc}px 0`,display:"flex",justifyContent:"center"});function hj(e){const t=ic(),r=yr(),i=fr({props:e,name:"MuiDayPicker"}),u=ij(i),{onFocusedDayChange:o,className:a,currentMonth:n,selectedDays:l,disabled:f,disableHighlightToday:s,focusedDay:c,isMonthSwitchingAnimating:d,loading:h,onSelectedDaysChange:p,onMonthSwitchingAnimationEnd:m,readOnly:y,reduceAnimations:v,renderDay:g,renderLoading:b=()=>je.jsx("span",{children:"..."}),showDaysOutsideCurrentMonth:x,slideDirection:_,TransitionProps:w,disablePast:k,disableFuture:T,minDate:M,maxDate:S,shouldDisableDate:C,dayOfWeekFormatter:P=oj,hasFocus:D,onFocusedViewChange:O,gridLabelId:R}=i,F=c4({shouldDisableDate:C,minDate:M,maxDate:S,disablePast:k,disableFuture:T}),[A,z]=$e.useState(()=>c||t),B=$e.useCallback(U=>{O&&O(U)},[O]),$=$e.useCallback((U,Q="finish")=>{y||p(U,Q)},[p,y]),j=$e.useCallback(U=>{F(U)||(o(U),z(U),B(!0))},[F,o,B]),N=Ad();function E(U,Q){switch(U.key){case"ArrowUp":j(r.addDays(Q,-7)),U.preventDefault();break;case"ArrowDown":j(r.addDays(Q,7)),U.preventDefault();break;case"ArrowLeft":{const Y=r.addDays(Q,N.direction==="ltr"?-1:1),Z=N.direction==="ltr"?r.getPreviousMonth(Q):r.getNextMonth(Q),X=Mu({utils:r,date:Y,minDate:N.direction==="ltr"?r.startOfMonth(Z):Y,maxDate:N.direction==="ltr"?Y:r.endOfMonth(Z),isDateDisabled:F});j(X||Y),U.preventDefault();break}case"ArrowRight":{const Y=r.addDays(Q,N.direction==="ltr"?1:-1),Z=N.direction==="ltr"?r.getNextMonth(Q):r.getPreviousMonth(Q),X=Mu({utils:r,date:Y,minDate:N.direction==="ltr"?Y:r.startOfMonth(Z),maxDate:N.direction==="ltr"?r.endOfMonth(Z):Y,isDateDisabled:F});j(X||Y),U.preventDefault();break}case"Home":j(r.startOfWeek(Q)),U.preventDefault();break;case"End":j(r.endOfWeek(Q)),U.preventDefault();break;case"PageUp":j(r.getNextMonth(Q)),U.preventDefault();break;case"PageDown":j(r.getPreviousMonth(Q)),U.preventDefault();break}}function W(U,Q){j(Q)}function G(U,Q){D&&r.isSameDay(A,Q)&&B(!1)}const L=r.getMonth(n),q=l.filter(U=>!!U).map(U=>r.startOfDay(U)),H=L,V=$e.useMemo(()=>$e.createRef(),[H]),te=r.startOfWeek(t),ee=$e.useMemo(()=>{const U=r.startOfMonth(n),Q=r.endOfMonth(n);return F(A)||r.isAfterDay(A,Q)||r.isBeforeDay(A,U)?Mu({utils:r,date:A,minDate:U,maxDate:Q,disablePast:k,disableFuture:T,isDateDisabled:F}):A},[n,T,k,A,F,r]);return je.jsxs("div",{role:"grid","aria-labelledby":R,children:[je.jsx(lj,{role:"row",className:u.header,children:r.getWeekdays().map((U,Q)=>{var Y;return je.jsx(sj,{variant:"caption",role:"columnheader","aria-label":r.format(r.addDays(te,Q),"weekday"),className:u.weekDayLabel,children:(Y=P==null?void 0:P(U))!=null?Y:U},U+Q.toString())})}),h?je.jsx(uj,{className:u.loadingContainer,children:b()}):je.jsx(cj,Gt({transKey:H,onExited:m,reduceAnimations:v,slideDirection:_,className:jr(a,u.slideTransition)},w,{nodeRef:V,children:je.jsx(fj,{ref:V,role:"rowgroup",className:u.monthContainer,children:r.getWeekArray(n).map(U=>je.jsx(dj,{role:"row",className:u.weekContainer,children:U.map(Q=>{const Y=ee!==null&&r.isSameDay(Q,ee),Z=q.some(ie=>r.isSameDay(ie,Q)),X=r.isSameDay(Q,t),re={key:Q==null?void 0:Q.toString(),day:Q,isAnimating:d,disabled:f||F(Q),autoFocus:D&&Y,today:X,outsideCurrentMonth:r.getMonth(Q)!==L,selected:Z,disableHighlightToday:s,showDaysOutsideCurrentMonth:x,onKeyDown:E,onFocus:W,onBlur:G,onDaySelect:$,tabIndex:Y?0:-1,role:"gridcell","aria-selected":Z};return X&&(re["aria-current"]="date"),g?g(Q,q,re):$e.createElement(g4,Gt({},re,{key:re.key}))})},`week-${U[0]}`))})}))]})}function jy({onChange:e,onViewChange:t,openTo:r,view:i,views:u}){var o,a;const[n,l]=gy({name:"Picker",state:"view",controlled:i,default:r&&bo(u,r)?r:u[0]}),f=(o=u[u.indexOf(n)-1])!=null?o:null,s=(a=u[u.indexOf(n)+1])!=null?a:null,c=$e.useCallback(p=>{l(p),t&&t(p)},[l,t]),d=$e.useCallback(()=>{s&&c(s)},[s,c]);return{handleChangeAndOpenNext:$e.useCallback((p,m)=>{const y=m==="finish";e(p,y&&s?"partial":m),y&&d()},[s,e,d]),nextView:s,previousView:f,openNext:d,openView:n,setOpenView:c}}const pj=ro(je.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),gj=ro(je.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),mj=ro(je.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),y4=ro(je.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),b4=ro(je.jsxs($e.Fragment,{children:[je.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),je.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),vj=ro(je.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),yj=ro(je.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Pen"),bj=ro(je.jsxs($e.Fragment,{children:[je.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),je.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");function xj(e){return _r("MuiPickersArrowSwitcher",e)}wr("MuiPickersArrowSwitcher",["root","spacer","button"]);const wj=["children","className","components","componentsProps","isLeftDisabled","isLeftHidden","isRightDisabled","isRightHidden","leftArrowButtonText","onLeftClick","onRightClick","rightArrowButtonText"],_j=e=>{const{classes:t}=e;return Tr({root:["root"],spacer:["spacer"],button:["button"]},xj,t)},Tj=wn("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),kj=wn("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),l_=wn(jl,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>Gt({},e.hidden&&{visibility:"hidden"})),x4=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiPickersArrowSwitcher"}),{children:u,className:o,components:a,componentsProps:n,isLeftDisabled:l,isLeftHidden:f,isRightDisabled:s,isRightHidden:c,leftArrowButtonText:d,onLeftClick:h,onRightClick:p,rightArrowButtonText:m}=i,y=Vn(i,wj),g=Ad().direction==="rtl",b=(n==null?void 0:n.leftArrowButton)||{},x=(a==null?void 0:a.LeftArrowIcon)||gj,_=(n==null?void 0:n.rightArrowButton)||{},w=(a==null?void 0:a.RightArrowIcon)||mj,k=i,T=_j(k);return je.jsxs(Tj,Gt({ref:r,className:jr(T.root,o),ownerState:k},y,{children:[je.jsx(l_,Gt({as:a==null?void 0:a.LeftArrowButton,size:"small","aria-label":d,title:d,disabled:l,edge:"end",onClick:h},b,{className:jr(T.button,b.className),ownerState:Gt({},k,b,{hidden:f}),children:g?je.jsx(w,{}):je.jsx(x,{})})),u?je.jsx(Cr,{variant:"subtitle1",component:"span",children:u}):je.jsx(kj,{className:T.spacer,ownerState:k}),je.jsx(l_,Gt({as:a==null?void 0:a.RightArrowButton,size:"small","aria-label":m,title:m,edge:"start",disabled:s,onClick:p},_,{className:jr(T.button,_.className),ownerState:Gt({},k,_,{hidden:c}),children:g?je.jsx(x,{}):je.jsx(w,{})}))]}))}),Mj=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,F0=(e,t,r)=>r&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,Sj=(e,t,r,i)=>{const u=F0(i.getHours(e),t,r);return i.setHours(e,u)},s_=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),w4=(e=!1,t)=>(r,i)=>e?t.isAfter(r,i):s_(r,t)>s_(i,t);function Cj(e,{disableFuture:t,maxDate:r}){const i=yr();return $e.useMemo(()=>{const u=i.date(),o=i.startOfMonth(t&&i.isBefore(u,r)?u:r);return!i.isAfter(o,e)},[t,r,e,i])}function Oj(e,{disablePast:t,minDate:r}){const i=yr();return $e.useMemo(()=>{const u=i.date(),o=i.startOfMonth(t&&i.isAfter(u,r)?u:r);return!i.isBefore(o,e)},[t,r,e,i])}function _4(e,t,r){const i=yr(),u=Mj(e,i),o=$e.useCallback(a=>{const n=e==null?null:Sj(e,a,!!t,i);r(n,"partial")},[t,e,r,i]);return{meridiemMode:u,handleMeridiemChange:o}}const T4=e=>()=>{},Aj=e=>_r("MuiPickersCalendarHeader",e),Pj=wr("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),Dj=e=>{const{classes:t}=e;return Tr({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Aj,t)},Ej=wn("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),Rj=wn("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>Gt({display:"flex",maxHeight:30,overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),Lj=wn("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),Ij=wn(jl,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto"}),Fj=wn(pj,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e,ownerState:t})=>Gt({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"},t.openView==="year"&&{transform:"rotate(180deg)"})),Nj=T4();function jj(e){const t=fr({props:e,name:"MuiPickersCalendarHeader"}),{components:r={},componentsProps:i={},currentMonth:u,disabled:o,disableFuture:a,disablePast:n,getViewSwitchingButtonText:l,leftArrowButtonText:f,maxDate:s,minDate:c,onMonthChange:d,onViewChange:h,openView:p,reduceAnimations:m,rightArrowButtonText:y,views:v,labelId:g}=t;Nj({leftArrowButtonText:f,rightArrowButtonText:y,getViewSwitchingButtonText:l});const b=ti(),x=f??b.previousMonth,_=y??b.nextMonth,w=l??b.calendarViewSwitchingButtonAriaLabel,k=yr(),T=Dj(t),M=i.switchViewButton||{},S=()=>d(k.getNextMonth(u),"left"),C=()=>d(k.getPreviousMonth(u),"right"),P=Cj(u,{disableFuture:a,maxDate:s}),D=Oj(u,{disablePast:n,minDate:c}),O=()=>{if(!(v.length===1||!h||o))if(v.length===2)h(v.find(F=>F!==p)||v[0]);else{const F=v.indexOf(p)!==0?0:1;h(v[F])}};if(v.length===1&&v[0]==="year")return null;const R=t;return je.jsxs(Ej,{ownerState:R,className:T.root,children:[je.jsxs(Rj,{role:"presentation",onClick:O,ownerState:R,"aria-live":"polite",className:T.labelContainer,children:[je.jsx(f4,{reduceAnimations:m,transKey:k.format(u,"monthAndYear"),children:je.jsx(Lj,{id:g,ownerState:R,className:T.label,children:k.format(u,"monthAndYear")})}),v.length>1&&!o&&je.jsx(Ij,Gt({size:"small",as:r.SwitchViewButton,"aria-label":w(p),className:T.switchViewButton},M,{children:je.jsx(Fj,{as:r.SwitchViewIcon,ownerState:R,className:T.switchViewIcon})}))]}),je.jsx(tS,{in:p==="day",children:je.jsx(x4,{leftArrowButtonText:x,rightArrowButtonText:_,components:r,componentsProps:i,onLeftClick:C,onRightClick:S,isLeftDisabled:D,isRightDisabled:P})})]})}const Di=$e.createContext(null);function $j(e){return _r("PrivatePickersYear",e)}const _o=wr("PrivatePickersYear",["root","modeDesktop","modeMobile","yearButton","selected","disabled"]),Bj=["autoFocus","className","children","disabled","onClick","onKeyDown","value","tabIndex","onFocus","onBlur"],zj=e=>{const{wrapperVariant:t,disabled:r,selected:i,classes:u}=e,o={root:["root",t&&`mode${T9(t)}`],yearButton:["yearButton",r&&"disabled",i&&"selected"]};return Tr(o,$j,u)},qj=wn("div",{name:"PrivatePickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${_o.modeDesktop}`]:t.modeDesktop},{[`&.${_o.modeMobile}`]:t.modeMobile}]})(({ownerState:e})=>Gt({flexBasis:"33.3%",display:"flex",alignItems:"center",justifyContent:"center"},(e==null?void 0:e.wrapperVariant)==="desktop"&&{flexBasis:"25%"})),Wj=wn("button",{name:"PrivatePickersYear",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${_o.disabled}`]:t.disabled},{[`&.${_o.selected}`]:t.selected}]})(({theme:e})=>Gt({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:Ef(e.palette.action.active,e.palette.action.hoverOpacity)},[`&.${_o.disabled}`]:{color:e.palette.text.secondary},[`&.${_o.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),u_=()=>{},Uj=$e.forwardRef(function(t,r){const{autoFocus:i,className:u,children:o,disabled:a,onClick:n,onKeyDown:l,value:f,tabIndex:s,onFocus:c=u_,onBlur:d=u_}=t,h=Vn(t,Bj),p=$e.useRef(null),m=_l(p,r),y=$e.useContext(Di),v=Gt({},t,{wrapperVariant:y}),g=zj(v);return $e.useEffect(()=>{i&&p.current.focus()},[i]),je.jsx(qj,{className:jr(g.root,u),ownerState:v,children:je.jsx(Wj,Gt({ref:m,disabled:a,type:"button",tabIndex:a?-1:s,onClick:b=>n(b,f),onKeyDown:b=>l(b,f),onFocus:b=>c(b,f),onBlur:b=>d(b,f),className:g.yearButton,ownerState:v},h,{children:o}))})});function k4(e){return _r("MuiYearPicker",e)}const Hj=wr("MuiYearPicker",["root"]),Vj=e=>{const{classes:t}=e;return Tr({root:["root"]},k4,t)};function Yj(e,t){const r=yr(),i=ac(),u=fr({props:e,name:t});return Gt({disablePast:!1,disableFuture:!1},u,{minDate:Va(r,u.minDate,i.minDate),maxDate:Va(r,u.maxDate,i.maxDate)})}const Gj=wn("div",{name:"MuiYearPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",maxHeight:"304px"}),M4=$e.forwardRef(function(t,r){const i=ic(),u=Ad(),o=yr(),a=Yj(t,"MuiYearPicker"),{autoFocus:n,className:l,date:f,disabled:s,disableFuture:c,disablePast:d,maxDate:h,minDate:p,onChange:m,readOnly:y,shouldDisableYear:v,disableHighlightToday:g,onYearFocus:b,hasFocus:x,onFocusedViewChange:_}=a,w=a,k=Vj(w),T=$e.useMemo(()=>f??o.startOfYear(i),[i,o,f]),M=$e.useMemo(()=>f!=null?o.getYear(f):g?null:o.getYear(i),[i,f,o,g]),S=$e.useContext(Di),C=$e.useRef(null),[P,D]=$e.useState(()=>M||o.getYear(i)),[O,R]=k9({name:"YearPicker",state:"hasFocus",controlled:x,default:n}),F=$e.useCallback(q=>{R(q),_&&_(q)},[R,_]),A=$e.useCallback(q=>!!(d&&o.isBeforeYear(q,i)||c&&o.isAfterYear(q,i)||p&&o.isBeforeYear(q,p)||h&&o.isAfterYear(q,h)||v&&v(q)),[c,d,h,p,i,v,o]),z=(q,H,V="finish")=>{if(y)return;const te=o.setYear(T,H);m(te,V)},B=$e.useCallback(q=>{A(o.setYear(T,q))||(D(q),F(!0),b==null||b(q))},[A,o,T,F,b]);$e.useEffect(()=>{D(q=>M!==null&&q!==M?M:q)},[M]);const $=S==="desktop"?4:3,j=$e.useCallback((q,H)=>{switch(q.key){case"ArrowUp":B(H-$),q.preventDefault();break;case"ArrowDown":B(H+$),q.preventDefault();break;case"ArrowLeft":B(H+(u.direction==="ltr"?-1:1)),q.preventDefault();break;case"ArrowRight":B(H+(u.direction==="ltr"?1:-1)),q.preventDefault();break}},[B,u.direction,$]),N=$e.useCallback((q,H)=>{B(H)},[B]),E=$e.useCallback((q,H)=>{P===H&&F(!1)},[P,F]),W=o.getYear(i),G=$e.useRef(null),L=_l(r,G);return $e.useEffect(()=>{if(n||G.current===null)return;const q=G.current.querySelector('[tabindex="0"]');if(!q)return;const H=q.offsetHeight,V=q.offsetTop,te=G.current.clientHeight,ee=G.current.scrollTop,U=V+H;H>te||V{const H=o.getYear(q),V=H===M;return je.jsx(Uj,{selected:V,value:H,onClick:z,onKeyDown:j,autoFocus:O&&H===P,ref:V?C:void 0,disabled:s||A(q),tabIndex:H===P?0:-1,onFocus:N,onBlur:E,"aria-current":W===H?"date":void 0,children:o.format(q,"year")},o.format(q,"year"))})})}),$y=wn("div")({overflowX:"hidden",width:Ny,maxHeight:HN,display:"flex",flexDirection:"column",margin:"0 auto"}),Xj=typeof navigator<"u"&&/(android)/i.test(navigator.userAgent),S4=e=>_r("MuiCalendarPicker",e),Zj=wr("MuiCalendarPicker",["root","viewTransitionContainer"]),Kj=["autoFocus","onViewChange","date","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","classes"],Jj=e=>{const{classes:t}=e;return Tr({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},S4,t)};function Qj(e,t){const r=yr(),i=ac(),u=fr({props:e,name:t});return Gt({loading:!1,disablePast:!1,disableFuture:!1,openTo:"day",views:["year","day"],reduceAnimations:Xj,renderLoading:()=>je.jsx("span",{children:"..."})},u,{minDate:Va(r,u.minDate,i.minDate),maxDate:Va(r,u.maxDate,i.maxDate)})}const e$=wn($y,{name:"MuiCalendarPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),t$=wn(f4,{name:"MuiCalendarPicker",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),C4=$e.forwardRef(function(t,r){const i=yr(),u=nS(),o=Qj(t,"MuiCalendarPicker"),{autoFocus:a,onViewChange:n,date:l,disableFuture:f,disablePast:s,defaultCalendarMonth:c,onChange:d,onYearChange:h,onMonthChange:p,reduceAnimations:m,shouldDisableDate:y,shouldDisableMonth:v,shouldDisableYear:g,view:b,views:x,openTo:_,className:w,disabled:k,readOnly:T,minDate:M,maxDate:S,disableHighlightToday:C,focusedView:P,onFocusedViewChange:D}=o,O=Vn(o,Kj),{openView:R,setOpenView:F,openNext:A}=jy({view:b,views:x,openTo:_,onChange:d,onViewChange:n}),{calendarState:z,changeFocusedDay:B,changeMonth:$,handleChangeMonth:j,isDateDisabled:N,onMonthSwitchingAnimationEnd:E}=BN({date:l,defaultCalendarMonth:c,reduceAnimations:m,onMonthChange:p,minDate:M,maxDate:S,shouldDisableDate:y,disablePast:s,disableFuture:f}),W=$e.useCallback((le,se)=>{const pe=i.startOfMonth(le),Te=i.endOfMonth(le),Se=N(le)?Mu({utils:i,date:le,minDate:i.isBefore(M,pe)?pe:M,maxDate:i.isAfter(S,Te)?Te:S,disablePast:s,disableFuture:f,isDateDisabled:N}):le;Se?(d(Se,se),p==null||p(pe)):(A(),$(pe)),B(Se,!0)},[B,f,s,N,S,M,d,p,$,A,i]),G=$e.useCallback((le,se)=>{const pe=i.startOfYear(le),Te=i.endOfYear(le),Se=N(le)?Mu({utils:i,date:le,minDate:i.isBefore(M,pe)?pe:M,maxDate:i.isAfter(S,Te)?Te:S,disablePast:s,disableFuture:f,isDateDisabled:N}):le;Se?(d(Se,se),h==null||h(Se)):(A(),$(pe)),B(Se,!0)},[B,f,s,N,S,M,d,h,A,i,$]),L=$e.useCallback((le,se)=>d(l&&le?i.mergeDateAndTime(le,l):le,se),[i,l,d]);$e.useEffect(()=>{l&&$(l)},[l]);const q=o,H=Jj(q),V={disablePast:s,disableFuture:f,maxDate:S,minDate:M},te=k&&l||M,ee=k&&l||S,U={disableHighlightToday:C,readOnly:T,disabled:k},Q=`${u}-grid-label`,[Y,Z]=gy({name:"DayPicker",state:"focusedView",controlled:P,default:a?R:null}),X=Y!==null,re=Od(le=>se=>{if(D){D(le)(se);return}Z(se?le:pe=>pe===le?null:pe)}),ie=$e.useRef(R);return $e.useEffect(()=>{ie.current!==R&&(ie.current=R,re(R)(!0))},[R,re]),je.jsxs(e$,{ref:r,className:jr(H.root,w),ownerState:q,children:[je.jsx(jj,Gt({},O,{views:x,openView:R,currentMonth:z.currentMonth,onViewChange:F,onMonthChange:(le,se)=>j({newMonth:le,direction:se}),minDate:te,maxDate:ee,disabled:k,disablePast:s,disableFuture:f,reduceAnimations:m,labelId:Q})),je.jsx(t$,{reduceAnimations:m,className:H.viewTransitionContainer,transKey:R,ownerState:q,children:je.jsxs("div",{children:[R==="year"&&je.jsx(M4,Gt({},O,V,U,{autoFocus:a,date:l,onChange:G,shouldDisableYear:g,hasFocus:X,onFocusedViewChange:re("year")})),R==="month"&&je.jsx(u4,Gt({},V,U,{autoFocus:a,hasFocus:X,className:w,date:l,onChange:W,shouldDisableMonth:v,onFocusedViewChange:re("month")})),R==="day"&&je.jsx(hj,Gt({},O,z,V,U,{autoFocus:a,onMonthSwitchingAnimationEnd:E,onFocusedDayChange:B,reduceAnimations:m,selectedDays:[l],onSelectedDaysChange:L,shouldDisableDate:y,hasFocus:X,onFocusedViewChange:re("day"),gridLabelId:Q}))]})})]})}),O4=e=>_r("MuiCalendarPickerSkeleton",e),n$=wr("MuiCalendarPickerSkeleton",["root","week","daySkeleton"]),r$=["className"],a$=e=>{const{classes:t}=e;return Tr({root:["root"],week:["week"],daySkeleton:["daySkeleton"]},O4,t)},i$=wn("div",{name:"MuiCalendarPickerSkeleton",slot:"Root",overridesResolver:(e,t)=>t.root})({alignSelf:"start"}),o$=wn("div",{name:"MuiCalendarPickerSkeleton",slot:"Week",overridesResolver:(e,t)=>t.week})({margin:`${oc}px 0`,display:"flex",justifyContent:"center"}),A4=wn(M9,{name:"MuiCalendarPickerSkeleton",slot:"DaySkeleton",overridesResolver:(e,t)=>t.daySkeleton})(({ownerState:e})=>Gt({margin:`0 ${oc}px`},e.day===0&&{visibility:"hidden"}));A4.propTypes={ownerState:oe.shape({day:oe.number.isRequired}).isRequired};const l$=[[0,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,0,0,0]];function s$(e){const t=fr({props:e,name:"MuiCalendarPickerSkeleton"}),{className:r}=t,i=Vn(t,r$),u=a$(i);return je.jsx(i$,Gt({className:jr(u.root,r)},i,{children:l$.map((o,a)=>je.jsx(o$,{className:u.week,children:o.map((n,l)=>je.jsx(A4,{variant:"circular",width:Pu,height:Pu,className:u.daySkeleton,ownerState:{day:n}},l))},a))}))}const Sl=220,Gi=36,Du={x:Sl/2,y:Sl/2},P4={x:Du.x,y:0},u$=P4.x-Du.x,c$=P4.y-Du.y,f$=e=>e*(180/Math.PI),D4=(e,t,r)=>{const i=t-Du.x,u=r-Du.y,o=Math.atan2(u$,c$)-Math.atan2(i,u);let a=f$(o);a=Math.round(a/e)*e,a%=360;const n=Math.floor(a/e)||0,l=i**2+u**2,f=Math.sqrt(l);return{value:n,distance:f}},d$=(e,t,r=1)=>{const i=r*6;let{value:u}=D4(i,e,t);return u=u*r%60,u},h$=(e,t,r)=>{const{value:i,distance:u}=D4(30,e,t);let o=i||12;return r?o%=12:u{const{classes:t}=e;return Tr({root:["root"],thumb:["thumb"]},p$,t)},y$=wn("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>Gt({width:2,backgroundColor:e.palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),b$=wn("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>Gt({width:4,height:4,backgroundColor:e.palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Gi/2}px)`,border:`${(Gi-4)/2}px solid ${e.palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:e.palette.primary.main}));function x$(e){const t=fr({props:e,name:"MuiClockPointer"}),{className:r,isInner:i,type:u,value:o}=t,a=Vn(t,m$),n=$e.useRef(u);$e.useEffect(()=>{n.current=u},[u]);const l=Gt({},t,{shouldAnimate:n.current!==u}),f=v$(l),s=()=>{let d=360/(u==="hours"?12:60)*o;return u==="hours"&&o>12&&(d-=360),{height:Math.round((i?.26:.4)*Sl),transform:`rotateZ(${d}deg)`}};return je.jsx(y$,Gt({style:s(),className:jr(r,f.root),ownerState:l},a,{children:je.jsx(b$,{ownerState:l,className:f.thumb})}))}function w$(e){return _r("MuiClock",e)}const _$=wr("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton"]),T$=e=>{const{classes:t}=e;return S9({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"]},w$,t)},k$=wn("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),M$=wn("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),S$=wn("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),C$=wn("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>Gt({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),O$=wn("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:e.palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),A$=wn(jl,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>Gt({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,left:8},t.meridiemMode==="am"&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}})),P$=wn(jl,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>Gt({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,right:8},t.meridiemMode==="pm"&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}}));function D$(e){const t=fr({props:e,name:"MuiClock"}),{ampm:r,ampmInClock:i,autoFocus:u,children:o,date:a,getClockLabelText:n,handleMeridiemChange:l,isTimeDisabled:f,meridiemMode:s,minutesStep:c=1,onChange:d,selectedId:h,type:p,value:m,disabled:y,readOnly:v,className:g}=t,b=t,x=yr(),_=$e.useContext(Di),w=$e.useRef(!1),k=T$(b),T=f(m,p),M=!r&&p==="hours"&&(m<1||m>12),S=($,j)=>{y||v||f($,p)||d($,j)},C=($,j)=>{let{offsetX:N,offsetY:E}=$;if(N===void 0){const G=$.target.getBoundingClientRect();N=$.changedTouches[0].clientX-G.left,E=$.changedTouches[0].clientY-G.top}const W=p==="seconds"||p==="minutes"?d$(N,E,c):h$(N,E,!!r);S(W,j)},P=$=>{w.current=!0,C($,"shallow")},D=$=>{w.current&&(C($,"finish"),w.current=!1)},O=$=>{$.buttons>0&&C($.nativeEvent,"shallow")},R=$=>{w.current&&(w.current=!1),C($.nativeEvent,"finish")},F=$e.useMemo(()=>p==="hours"?!0:m%5===0,[p,m]),A=p==="minutes"?c:1,z=$e.useRef(null);my(()=>{u&&z.current.focus()},[u]);const B=$=>{if(!w.current)switch($.key){case"Home":S(0,"partial"),$.preventDefault();break;case"End":S(p==="minutes"?59:23,"partial"),$.preventDefault();break;case"ArrowUp":S(m+A,"partial"),$.preventDefault();break;case"ArrowDown":S(m-A,"partial"),$.preventDefault();break}};return je.jsxs(k$,{className:jr(g,k.root),children:[je.jsxs(M$,{className:k.clock,children:[je.jsx(C$,{onTouchMove:P,onTouchEnd:D,onMouseUp:R,onMouseMove:O,ownerState:{disabled:y},className:k.squareMask}),!T&&je.jsxs($e.Fragment,{children:[je.jsx(O$,{className:k.pin}),a&&je.jsx(x$,{type:p,value:m,isInner:M,hasSelected:F})]}),je.jsx(S$,{"aria-activedescendant":h,"aria-label":n(p,a,x),ref:z,role:"listbox",onKeyDown:B,tabIndex:0,className:k.wrapper,children:o})]}),r&&(_==="desktop"||i)&&je.jsxs($e.Fragment,{children:[je.jsx(A$,{onClick:v?void 0:()=>l("am"),disabled:y||s===null,ownerState:b,className:k.amButton,children:je.jsx(Cr,{variant:"caption",children:"AM"})}),je.jsx(P$,{disabled:y||s===null,onClick:v?void 0:()=>l("pm"),ownerState:b,className:k.pmButton,children:je.jsx(Cr,{variant:"caption",children:"PM"})})]})]})}function E$(e){return _r("MuiClockNumber",e)}const wu=wr("MuiClockNumber",["root","selected","disabled"]),R$=["className","disabled","index","inner","label","selected"],L$=e=>{const{classes:t,selected:r,disabled:i}=e;return Tr({root:["root",r&&"selected",i&&"disabled"]},E$,t)},I$=wn("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${wu.disabled}`]:t.disabled},{[`&.${wu.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>Gt({height:Gi,width:Gi,position:"absolute",left:`calc((100% - ${Gi}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:e.palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:e.palette.background.paper},[`&.${wu.selected}`]:{color:e.palette.primary.contrastText},[`&.${wu.disabled}`]:{pointerEvents:"none",color:e.palette.text.disabled}},t.inner&&Gt({},e.typography.body2,{color:e.palette.text.secondary})));function E4(e){const t=fr({props:e,name:"MuiClockNumber"}),{className:r,disabled:i,index:u,inner:o,label:a,selected:n}=t,l=Vn(t,R$),f=t,s=L$(f),c=u%12/12*Math.PI*2-Math.PI/2,d=(Sl-Gi-2)/2*(o?.65:1),h=Math.round(Math.cos(c)*d),p=Math.round(Math.sin(c)*d);return je.jsx(I$,Gt({className:jr(r,s.root),"aria-disabled":i?!0:void 0,"aria-selected":n?!0:void 0,role:"option",style:{transform:`translate(${h}px, ${p+(Sl-Gi)/2}px`},ownerState:f},l,{children:a}))}const F$=({ampm:e,date:t,getClockNumberText:r,isDisabled:i,selectedId:u,utils:o})=>{const a=t?o.getHours(t):null,n=[],l=e?1:0,f=e?12:23,s=c=>a===null?!1:e?c===12?a===12||a===0:a===c||a-12===c:a===c;for(let c=l;c<=f;c+=1){let d=c.toString();c===0&&(d="00");const h=!e&&(c===0||c>12);d=o.formatNumber(d);const p=s(c);n.push(je.jsx(E4,{id:p?u:void 0,index:c,inner:h,selected:p,disabled:i(c),label:d,"aria-label":r(d)},c))}return n},c_=({utils:e,value:t,isDisabled:r,getClockNumberText:i,selectedId:u})=>{const o=e.formatNumber;return[[5,o("05")],[10,o("10")],[15,o("15")],[20,o("20")],[25,o("25")],[30,o("30")],[35,o("35")],[40,o("40")],[45,o("45")],[50,o("50")],[55,o("55")],[0,o("00")]].map(([a,n],l)=>{const f=a===t;return je.jsx(E4,{label:n,id:f?u:void 0,index:l+1,inner:!1,disabled:r(a),selected:f,"aria-label":i(n)},a)})};function R4(e){return _r("MuiClockPicker",e)}const N$=wr("MuiClockPicker",["root","arrowSwitcher"]),j$=e=>{const{classes:t}=e;return Tr({root:["root"],arrowSwitcher:["arrowSwitcher"]},R4,t)},$$=wn($y,{name:"MuiClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),B$=wn(x4,{name:"MuiClockPicker",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),z$=T4(),L4=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiClockPicker"}),{ampm:u=!1,ampmInClock:o=!1,autoFocus:a,components:n,componentsProps:l,date:f,disableIgnoringDatePartForTimeValidation:s,getClockLabelText:c,getHoursClockNumberText:d,getMinutesClockNumberText:h,getSecondsClockNumberText:p,leftArrowButtonText:m,maxTime:y,minTime:v,minutesStep:g=1,rightArrowButtonText:b,shouldDisableTime:x,showViewSwitcher:_,onChange:w,view:k,views:T=["hours","minutes"],openTo:M,onViewChange:S,className:C,disabled:P,readOnly:D}=i;z$({leftArrowButtonText:m,rightArrowButtonText:b,getClockLabelText:c,getHoursClockNumberText:d,getMinutesClockNumberText:h,getSecondsClockNumberText:p});const O=ti(),R=m??O.openPreviousView,F=b??O.openNextView,A=c??O.clockLabelText,z=d??O.hoursClockNumberText,B=h??O.minutesClockNumberText,$=p??O.secondsClockNumberText,{openView:j,setOpenView:N,nextView:E,previousView:W,handleChangeAndOpenNext:G}=jy({view:k,views:T,openTo:M,onViewChange:S,onChange:w}),L=ic(),q=yr(),H=$e.useMemo(()=>f||q.setSeconds(q.setMinutes(q.setHours(L,0),0),0),[f,L,q]),{meridiemMode:V,handleMeridiemChange:te}=_4(H,u,G),ee=$e.useCallback((X,re)=>{const ie=w4(s,q),le=({start:pe,end:Te})=>!(v&&ie(v,Te)||y&&ie(pe,y)),se=(pe,Te=1)=>pe%Te!==0?!1:x?!x(pe,re):!0;switch(re){case"hours":{const pe=F0(X,V,u),Te=q.setHours(H,pe),Se=q.setSeconds(q.setMinutes(Te,0),0),Oe=q.setSeconds(q.setMinutes(Te,59),59);return!le({start:Se,end:Oe})||!se(pe)}case"minutes":{const pe=q.setMinutes(H,X),Te=q.setSeconds(pe,0),Se=q.setSeconds(pe,59);return!le({start:Te,end:Se})||!se(X,g)}case"seconds":{const pe=q.setSeconds(H,X);return!le({start:pe,end:pe})||!se(X)}default:throw new Error("not supported")}},[u,H,s,y,V,v,g,x,q]),U=nS(),Q=$e.useMemo(()=>{switch(j){case"hours":{const X=(re,ie)=>{const le=F0(re,V,u);G(q.setHours(H,le),ie)};return{onChange:X,value:q.getHours(H),children:F$({date:f,utils:q,ampm:u,onChange:X,getClockNumberText:z,isDisabled:re=>P||ee(re,"hours"),selectedId:U})}}case"minutes":{const X=q.getMinutes(H),re=(ie,le)=>{G(q.setMinutes(H,ie),le)};return{value:X,onChange:re,children:c_({utils:q,value:X,onChange:re,getClockNumberText:B,isDisabled:ie=>P||ee(ie,"minutes"),selectedId:U})}}case"seconds":{const X=q.getSeconds(H),re=(ie,le)=>{G(q.setSeconds(H,ie),le)};return{value:X,onChange:re,children:c_({utils:q,value:X,onChange:re,getClockNumberText:$,isDisabled:ie=>P||ee(ie,"seconds"),selectedId:U})}}default:throw new Error("You must provide the type for ClockView")}},[j,q,f,u,z,B,$,V,G,H,ee,U,P]),Y=i,Z=j$(Y);return je.jsxs($$,{ref:r,className:jr(Z.root,C),ownerState:Y,children:[_&&je.jsx(B$,{className:Z.arrowSwitcher,leftArrowButtonText:R,rightArrowButtonText:F,components:n,componentsProps:l,onLeftClick:()=>N(W),onRightClick:()=>N(E),isLeftDisabled:!W,isRightDisabled:!E,ownerState:Y}),je.jsx(D$,Gt({autoFocus:a,date:f,ampmInClock:o,type:j,ampm:u,getClockLabelText:A,minutesStep:g,isTimeDisabled:ee,meridiemMode:V,handleMeridiemChange:te,selectedId:U,disabled:P,readOnly:D},Q))]})}),I4=e=>e.length===1&&e[0]==="year",F4=e=>e.length===2&&e.indexOf("month")!==-1&&e.indexOf("year")!==-1,q$=(e,t)=>I4(e)?{inputFormat:t.formats.year}:F4(e)?{disableMaskedInput:!0,inputFormat:t.formats.monthAndYear}:{inputFormat:t.formats.keyboardDate};function By(e,t){var r;const i=yr(),u=ac(),o=fr({props:e,name:t}),a=(r=o.views)!=null?r:["year","day"];return Gt({openTo:"day",disableFuture:!1,disablePast:!1},q$(a,i),o,{views:a,minDate:Va(i,o.minDate,u.minDate),maxDate:Va(i,o.maxDate,u.maxDate)})}const zy={emptyValue:null,getTodayValue:e=>e.date(),parseInput:Ry,areValuesEqual:(e,t,r)=>e.isEqual(t,r)};function N4(e){return _r("MuiPickersToolbar",e)}const qy=wr("MuiPickersToolbar",["root","content","penIconButton","penIconButtonLandscape"]),W$=e=>{const{classes:t,isLandscape:r}=e;return Tr({root:["root"],content:["content"],penIconButton:["penIconButton",r&&"penIconButtonLandscape"]},N4,t)},U$=wn("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>Gt({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),H$=wn(Jn,{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>Gt({flex:1},!e.isLandscape&&{alignItems:"center"})),V$=wn(jl,{name:"MuiPickersToolbar",slot:"PenIconButton",overridesResolver:(e,t)=>[{[`&.${qy.penIconButtonLandscape}`]:t.penIconButtonLandscape},t.penIconButton]})({}),Y$=e=>e==="clock"?je.jsx(b4,{color:"inherit"}):je.jsx(y4,{color:"inherit"}),Wy=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiPickersToolbar"}),{children:u,className:o,getMobileKeyboardInputViewButtonText:a,isLandscape:n,isMobileKeyboardViewOpen:l,landscapeDirection:f="column",toggleMobileKeyboardView:s,toolbarTitle:c,viewType:d="calendar"}=i,h=i,p=ti(),m=W$(h);return je.jsxs(U$,{ref:r,className:jr(m.root,o),ownerState:h,children:[je.jsx(Cr,{color:"text.secondary",variant:"overline",children:c}),je.jsxs(H$,{container:!0,justifyContent:"space-between",className:m.content,ownerState:h,direction:n?f:"row",alignItems:n?"flex-start":"flex-end",children:[u,je.jsx(V$,{onClick:s,className:m.penIconButton,ownerState:h,color:"inherit","aria-label":a?a(l,d):p.inputModeToggleButtonAriaLabel(l,d),children:l?Y$(d):je.jsx(yj,{color:"inherit"})})]})]})});function G$(e){return _r("MuiDatePickerToolbar",e)}const X$=wr("MuiDatePickerToolbar",["root","title"]),Z$=["parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],K$=e=>{const{classes:t}=e;return Tr({root:["root"],title:["title"]},G$,t)},J$=wn(Wy,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Q$=wn(Cr,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>Gt({},e.isLandscape&&{margin:"auto 16px auto auto"})),Uy=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiDatePickerToolbar"}),{parsedValue:u,isLandscape:o,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:n,toolbarFormat:l,toolbarPlaceholder:f="––",toolbarTitle:s,views:c}=i,d=Vn(i,Z$),h=yr(),p=ti(),m=K$(i),y=s??p.datePickerDefaultToolbarTitle,v=$e.useMemo(()=>u?l?h.formatByString(u,l):I4(c)?h.format(u,"year"):F4(c)?h.format(u,"month"):/en/.test(h.getCurrentLocaleCode())?h.format(u,"normalDateWithWeekday"):h.format(u,"normalDate"):f,[u,l,f,h,c]),g=i;return je.jsx(J$,Gt({ref:r,toolbarTitle:y,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:n,isLandscape:o,className:m.root},d,{children:je.jsx(Q$,{variant:"h4",align:o?"left":"center",ownerState:g,className:m.title,children:v})}))}),eB=["onAccept","onClear","onCancel","onSetToday","actions"],Hy=e=>{const{onAccept:t,onClear:r,onCancel:i,onSetToday:u,actions:o}=e,a=Vn(e,eB),n=$e.useContext(Di),l=ti(),f=typeof o=="function"?o(n):o;if(f==null||f.length===0)return null;const s=f==null?void 0:f.map(c=>{switch(c){case"clear":return je.jsx(hi,{onClick:r,children:l.clearButtonLabel},c);case"cancel":return je.jsx(hi,{onClick:i,children:l.cancelButtonLabel},c);case"accept":return je.jsx(hi,{onClick:t,children:l.okButtonLabel},c);case"today":return je.jsx(hi,{onClick:u,children:l.todayButtonLabel},c);default:return null}});return je.jsx(C9,Gt({},a,{children:s}))};function tB(e){return _r("MuiPickersPopper",e)}wr("MuiPickersPopper",["root","paper"]);const nB=["onClick","onTouchStart"],rB=e=>{const{classes:t}=e;return Tr({root:["root"],paper:["paper"]},tB,t)},aB=wn(O9,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),iB=wn(rS,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>Gt({transformOrigin:"top center",outline:0},e.placement==="top"&&{transformOrigin:"bottom center"}));function oB(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){o.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),o.current=!1}},[e]);const a=Od(l=>{if(!o.current)return;const f=i.current;i.current=!1;const s=sg(u.current);if(!u.current||"clientX"in l&&oB(l,s))return;if(r.current){r.current=!1;return}let c;l.composedPath?c=l.composedPath().indexOf(u.current)>-1:c=!s.documentElement.contains(l.target)||u.current.contains(l.target),!c&&!f&&t(l)}),n=()=>{i.current=!0};return $e.useEffect(()=>{if(e){const l=sg(u.current),f=()=>{r.current=!0};return l.addEventListener("touchstart",a),l.addEventListener("touchmove",f),()=>{l.removeEventListener("touchstart",a),l.removeEventListener("touchmove",f)}}},[e,a]),$e.useEffect(()=>{if(e){const l=sg(u.current);return l.addEventListener("click",a),()=>{l.removeEventListener("click",a),i.current=!1}}},[e,a]),[u,n,n]}function sB(e){var t;const r=fr({props:e,name:"MuiPickersPopper"}),{anchorEl:i,children:u,containerRef:o=null,onBlur:a,onClose:n,onClear:l,onAccept:f,onCancel:s,onSetToday:c,open:d,PopperProps:h,role:p,TransitionComponent:m=P9,TrapFocusProps:y,PaperProps:v={},components:g,componentsProps:b}=r;$e.useEffect(()=>{function B($){d&&($.key==="Escape"||$.key==="Esc")&&n()}return document.addEventListener("keydown",B),()=>{document.removeEventListener("keydown",B)}},[n,d]);const x=$e.useRef(null);$e.useEffect(()=>{p!=="tooltip"&&(d?x.current=i4(document):x.current&&x.current instanceof HTMLElement&&setTimeout(()=>{x.current instanceof HTMLElement&&x.current.focus()}))},[d,p]);const[_,w,k]=lB(d,a??n),T=$e.useRef(null),M=_l(T,o),S=_l(M,_),C=r,P=rB(C),{onClick:D,onTouchStart:O}=v,R=Vn(v,nB),F=B=>{B.key==="Escape"&&(B.stopPropagation(),n())},A=(t=g==null?void 0:g.ActionBar)!=null?t:Hy,z=(g==null?void 0:g.PaperContent)||$e.Fragment;return je.jsx(aB,Gt({transition:!0,role:p,open:d,anchorEl:i,onKeyDown:F,className:P.root},h,{children:({TransitionProps:B,placement:$})=>je.jsx(A9,Gt({open:d,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:p==="tooltip",isEnabled:()=>!0},y,{children:je.jsx(m,Gt({},B,{children:je.jsx(iB,Gt({tabIndex:-1,elevation:8,ref:S,onClick:j=>{w(j),D&&D(j)},onTouchStart:j=>{k(j),O&&O(j)},ownerState:Gt({},C,{placement:$}),className:P.paper},R,{children:je.jsxs(z,Gt({},b==null?void 0:b.paperContent,{children:[u,je.jsx(A,Gt({onAccept:f,onClear:l,onCancel:s,onSetToday:c,actions:[]},b==null?void 0:b.actionBar))]}))}))}))}))}))}function Vy(e){const{children:t,DateInputProps:r,KeyboardDateInputComponent:i,onClear:u,onDismiss:o,onCancel:a,onAccept:n,onSetToday:l,open:f,PopperProps:s,PaperProps:c,TransitionComponent:d,components:h,componentsProps:p}=e,m=$e.useRef(null),y=_l(r.inputRef,m);return je.jsxs(Di.Provider,{value:"desktop",children:[je.jsx(i,Gt({},r,{inputRef:y})),je.jsx(sB,{role:"dialog",open:f,anchorEl:m.current,TransitionComponent:d,PopperProps:s,PaperProps:c,onClose:o,onCancel:a,onClear:u,onAccept:n,onSetToday:l,components:h,componentsProps:p,children:t})]})}const uB=e=>{const[,t]=$e.useReducer(l=>l+1,0),r=$e.useRef(null),{replace:i,append:u}=e,o=i?i(e.format(e.value)):e.format(e.value),a=$e.useRef(!1),n=l=>{const f=l.target.value;r.current=[f,l.target,f.length>o.length,a.current,o===e.format(f)],t()};return $e.useLayoutEffect(()=>{if(r.current==null)return;let[l,f,s,c,d]=r.current;r.current=null;const h=c&&d,m=l.slice(f.selectionStart).search(e.accept||/\d/g),y=m!==-1?m:0,v=w=>(w.match(e.accept||/\d/g)||[]).join(""),g=v(l.substr(0,f.selectionStart)),b=w=>{let k=0,T=0;for(let M=0;M!==g.length;++M){let S=w.indexOf(g[M],k)+1,C=v(w).indexOf(g[M],T)+1;C-T>1&&(S=k,C=T),T=Math.max(C,T),k=Math.max(k,S)}return k};if(e.mask===!0&&s&&!d){let w=b(l);const k=v(l.substr(w))[0];w=l.indexOf(k,w),l=`${l.substr(0,w)}${l.substr(w+1)}`}let x=e.format(l);u!=null&&f.selectionStart===l.length&&!d&&(s?x=u(x):v(x.slice(-1))===""&&(x=x.slice(0,-1)));const _=i?i(x):x;return o===_?t():e.onChange(_),()=>{let w=b(x);if(e.mask!=null&&(s||c&&!h))for(;x[w]&&v(x[w])==="";)w+=1;f.selectionStart=f.selectionEnd=w+(h?1+y:0)}}),$e.useEffect(()=>{const l=s=>{s.code==="Delete"&&(a.current=!0)},f=s=>{s.code==="Delete"&&(a.current=!1)};return document.addEventListener("keydown",l),document.addEventListener("keyup",f),()=>{document.removeEventListener("keydown",l),document.removeEventListener("keyup",f)}},[]),{value:r.current!=null?r.current[0]:o,onChange:n}},N0=(e,t,r)=>{const i=e.date(t);return t===null?"":e.isValid(i)?e.formatByString(i,r):""},jf="_",j4="2019-11-21T22:30:00.000",$4="2019-01-01T09:00:00.000";function cB(e,t,r,i){if(e)return e;const o=i.formatByString(i.date($4),t).replace(r,jf),a=i.formatByString(i.date(j4),t).replace(r,"_");return o===a?o:""}function fB(e,t,r,i){if(!e)return!1;const o=i.formatByString(i.date($4),t).replace(r,jf),a=i.formatByString(i.date(j4),t).replace(r,"_"),n=a===o&&e===a;return!n&&i.lib,n}const dB=(e,t)=>r=>{let i=0;return r.split("").map((u,o)=>{if(t.lastIndex=0,i>e.length-1)return"";const a=e[i],n=e[i+1],l=t.test(u)?u:"",f=a===jf?l:a+l;return i+=f.length,o===r.length-1&&n&&n!==jf?f?f+n:"":f}).join("")},hB=({acceptRegex:e=/[\d]/gi,disabled:t,disableMaskedInput:r,ignoreInvalidInputs:i,inputFormat:u,inputProps:o,label:a,mask:n,onChange:l,rawValue:f,readOnly:s,rifmFormatter:c,TextFieldProps:d,validationError:h})=>{const p=yr(),m=p.getFormatHelperText(u),{shouldUseMaskedInput:y,maskToUse:v}=$e.useMemo(()=>{if(r)return{shouldUseMaskedInput:!1,maskToUse:""};const O=cB(n,u,e,p);return{shouldUseMaskedInput:fB(O,u,e,p),maskToUse:O}},[e,r,u,n,p]),g=$e.useMemo(()=>y&&v?dB(v,e):O=>O,[e,v,y]),b=f===null?null:p.date(f),[x,_]=$e.useState(b),[w,k]=$e.useState(N0(p,f,u)),T=$e.useRef(),M=$e.useRef(p.locale),S=$e.useRef(u);$e.useEffect(()=>{const O=f!==T.current,R=p.locale!==M.current,F=u!==S.current;if(T.current=f,M.current=p.locale,S.current=u,!O&&!R&&!F)return;const A=f===null?null:p.date(f),z=f===null||p.isValid(A);let B=x===null&&A===null;if(x!==null&&A!==null){const j=p.isEqual(x,A);if(j)B=!0;else{const N=Math.abs(p.getDiff(x,A));B=N===0?j:N<1e3}}if(!R&&!F&&(!z||B))return;const $=N0(p,f,u);_(A),k($)},[p,f,u,x]);const C=O=>{const R=O===""||O===n?"":O;k(R);const F=R===null?null:p.parse(R,u);i&&!p.isValid(F)||(_(F),l(F,R||void 0))},P=uB({value:w,onChange:C,format:c||g});return Gt({label:a,disabled:t,error:h,inputProps:Gt({},y?P:{value:w,onChange:O=>{C(O.currentTarget.value)}},{disabled:t,placeholder:m,readOnly:s,type:y?"tel":"text"},o)},d)},pB=["className","components","disableOpenPicker","getOpenDialogAriaText","InputAdornmentProps","InputProps","inputRef","openPicker","OpenPickerButtonProps","renderInput"],Bd=$e.forwardRef(function(t,r){const{className:i,components:u={},disableOpenPicker:o,getOpenDialogAriaText:a,InputAdornmentProps:n,InputProps:l,inputRef:f,openPicker:s,OpenPickerButtonProps:c,renderInput:d}=t,h=Vn(t,pB),p=ti(),m=a??p.openDatePickerDialogue,y=yr(),v=hB(h),g=(n==null?void 0:n.position)||"end",b=u.OpenPickerIcon||y4;return d(Gt({ref:r,inputRef:f,className:i},v,{InputProps:Gt({},l,{[`${g}Adornment`]:o?void 0:je.jsx(D9,Gt({position:g},n,{children:je.jsx(jl,Gt({edge:g,disabled:h.disabled||h.readOnly,"aria-label":m(h.rawValue,y)},c,{onClick:s,children:je.jsx(b,{})}))}))})}))});function f_(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const gB=(e,t)=>{const[r,i]=$e.useState(f_);return my(()=>{const o=()=>{i(f_())};return window.addEventListener("orientationchange",o),()=>{window.removeEventListener("orientationchange",o)}},[]),bo(e,["hours","minutes","seconds"])?!1:(t||r)==="landscape"},mB=({autoFocus:e,openView:t})=>{const[r,i]=$e.useState(e?t:null),u=$e.useCallback(o=>a=>{i(a?o:n=>o===n?null:n)},[]);return{focusedView:r,setFocusedView:u}};function vB(e){return _r("MuiCalendarOrClockPicker",e)}wr("MuiCalendarOrClockPicker",["root","mobileKeyboardInputView"]);const yB=["autoFocus","className","parsedValue","DateInputProps","isMobileKeyboardViewOpen","onDateChange","onViewChange","openTo","orientation","showToolbar","toggleMobileKeyboardView","ToolbarComponent","toolbarFormat","toolbarPlaceholder","toolbarTitle","views","dateRangeIcon","timeIcon","hideTabs","classes"],bB=e=>{const{classes:t}=e;return Tr({root:["root"],mobileKeyboardInputView:["mobileKeyboardInputView"]},vB,t)},xB=wn("div",{name:"MuiCalendarOrClockPicker",slot:"MobileKeyboardInputView",overridesResolver:(e,t)=>t.mobileKeyboardInputView})({padding:"16px 24px"}),wB=wn("div",{name:"MuiCalendarOrClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>Gt({display:"flex",flexDirection:"column"},e.isLandscape&&{flexDirection:"row"})),_B={fullWidth:!0},d_=e=>e==="year"||e==="month"||e==="day",h_=e=>e==="hours"||e==="minutes"||e==="seconds";function Ei(e){var t,r;const i=fr({props:e,name:"MuiCalendarOrClockPicker"}),{autoFocus:u,parsedValue:o,DateInputProps:a,isMobileKeyboardViewOpen:n,onDateChange:l,onViewChange:f,openTo:s,orientation:c,showToolbar:d,toggleMobileKeyboardView:h,ToolbarComponent:p=()=>null,toolbarFormat:m,toolbarPlaceholder:y,toolbarTitle:v,views:g,dateRangeIcon:b,timeIcon:x,hideTabs:_}=i,w=Vn(i,yB),k=(t=w.components)==null?void 0:t.Tabs,T=gB(g,c),M=$e.useContext(Di),S=bB(i),C=d??M!=="desktop",P=!_&&typeof window<"u"&&window.innerHeight>667,D=$e.useCallback(($,j)=>{l($,M,j)},[l,M]),O=$e.useCallback($=>{n&&h(),f&&f($)},[n,f,h]),{openView:R,setOpenView:F,handleChangeAndOpenNext:A}=jy({view:void 0,views:g,openTo:s,onChange:D,onViewChange:O}),{focusedView:z,setFocusedView:B}=mB({autoFocus:u,openView:R});return je.jsxs(wB,{ownerState:{isLandscape:T},className:S.root,children:[C&&je.jsx(p,Gt({},w,{views:g,isLandscape:T,parsedValue:o,onChange:D,setOpenView:F,openView:R,toolbarTitle:v,toolbarFormat:m,toolbarPlaceholder:y,isMobileKeyboardViewOpen:n,toggleMobileKeyboardView:h})),P&&!!k&&je.jsx(k,Gt({dateRangeIcon:b,timeIcon:x,view:R,onChange:F},(r=w.componentsProps)==null?void 0:r.tabs)),je.jsx($y,{children:n?je.jsx(xB,{className:S.mobileKeyboardInputView,children:je.jsx(Bd,Gt({},a,{ignoreInvalidInputs:!0,disableOpenPicker:!0,TextFieldProps:_B}))}):je.jsxs($e.Fragment,{children:[d_(R)&&je.jsx(C4,Gt({autoFocus:u,date:o,onViewChange:F,onChange:A,view:R,views:g.filter(d_),focusedView:z,onFocusedViewChange:B},w)),h_(R)&&je.jsx(L4,Gt({},w,{autoFocus:u,date:o,view:R,views:g.filter(h_),onChange:A,onViewChange:F,showViewSwitcher:M==="desktop"}))]})})]})}const TB=({open:e,onOpen:t,onClose:r})=>{const i=$e.useRef(typeof e=="boolean").current,[u,o]=$e.useState(!1);$e.useEffect(()=>{if(i){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");o(e)}},[i,e]);const a=$e.useCallback(n=>{i||o(n),n&&t&&t(),!n&&r&&r()},[i,t,r]);return{isOpen:u,setIsOpen:a}},Ri=(e,t)=>{const{onAccept:r,onChange:i,value:u,closeOnSelect:o}=e,a=yr(),{isOpen:n,setIsOpen:l}=TB(e),f=$e.useMemo(()=>t.parseInput(a,u),[t,a,u]),[s,c]=$e.useState(f),[d,h]=$e.useState(()=>({committed:f,draft:f,resetFallback:f})),p=$e.useCallback(w=>{h(k=>{switch(w.action){case"setAll":case"acceptAndClose":return{draft:w.value,committed:w.value,resetFallback:w.value};case"setCommitted":return Gt({},k,{draft:w.value,committed:w.value});case"setDraft":return Gt({},k,{draft:w.value});default:return k}}),(w.forceOnChangeCall||!w.skipOnChangeCall&&!t.areValuesEqual(a,d.committed,w.value))&&i(w.value),w.action==="acceptAndClose"&&(l(!1),r&&!t.areValuesEqual(a,d.resetFallback,w.value)&&r(w.value))},[r,i,l,d,a,t]);$e.useEffect(()=>{a.isValid(f)&&c(f)},[a,f]),$e.useEffect(()=>{n&&p({action:"setAll",value:f,skipOnChangeCall:!0})},[n]),t.areValuesEqual(a,d.committed,f)||p({action:"setCommitted",value:f,skipOnChangeCall:!0});const m=$e.useMemo(()=>({open:n,onClear:()=>{p({value:t.emptyValue,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(a,u,t.emptyValue)})},onAccept:()=>{p({value:d.draft,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(a,u,f)})},onDismiss:()=>{p({value:d.committed,action:"acceptAndClose"})},onCancel:()=>{p({value:d.resetFallback,action:"acceptAndClose"})},onSetToday:()=>{p({value:t.getTodayValue(a),action:"acceptAndClose"})}}),[p,n,a,d,t,u,f]),[y,v]=$e.useState(!1),g=$e.useMemo(()=>({parsedValue:d.draft,isMobileKeyboardViewOpen:y,toggleMobileKeyboardView:()=>v(!y),onDateChange:(w,k,T="partial")=>{switch(T){case"shallow":return p({action:"setDraft",value:w,skipOnChangeCall:!0});case"partial":return p({action:"setDraft",value:w});case"finish":return p(o??k==="desktop"?{value:w,action:"acceptAndClose"}:{value:w,action:"setCommitted"});default:throw new Error("MUI: Invalid selectionState passed to `onDateChange`")}}}),[p,y,d.draft,o]),b=$e.useCallback((w,k)=>{const T=t.valueReducer?t.valueReducer(a,s,w):w;i(T,k)},[i,t,s,a]),x=$e.useMemo(()=>({onChange:b,open:n,rawValue:u,openPicker:()=>l(!0)}),[b,n,u,l]),_={pickerProps:g,inputProps:x,wrapperProps:m};return $e.useDebugValue(_,()=>({MuiPickerState:{dateState:d,other:_}})),_},kB=["onChange","PopperProps","PaperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],B4=$e.forwardRef(function(t,r){const i=By(t,"MuiDesktopDatePicker"),u=Fy(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ri(i,zy),{PopperProps:l,PaperProps:f,ToolbarComponent:s=Uy,TransitionComponent:c,components:d,componentsProps:h}=i,p=Vn(i,kB),m=Gt({},a,p,{components:d,componentsProps:h,ref:r,validationError:u});return je.jsx(Vy,Gt({},n,{DateInputProps:m,KeyboardDateInputComponent:Bd,PopperProps:l,PaperProps:f,TransitionComponent:c,components:d,componentsProps:h,children:je.jsx(Ei,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:s,DateInputProps:m,components:d,componentsProps:h},p))}))}),MB=wn(E9)({[`& .${z2.container}`]:{outline:0},[`& .${z2.paper}`]:{outline:0,minWidth:Ny}}),SB=wn(R9)({"&:first-of-type":{padding:0}}),CB=e=>{var t;const{children:r,DialogProps:i={},onAccept:u,onClear:o,onDismiss:a,onCancel:n,onSetToday:l,open:f,components:s,componentsProps:c}=e,d=(t=s==null?void 0:s.ActionBar)!=null?t:Hy;return je.jsxs(MB,Gt({open:f,onClose:a},i,{children:[je.jsx(SB,{children:r}),je.jsx(d,Gt({onAccept:u,onClear:o,onCancel:n,onSetToday:l,actions:["cancel","accept"]},c==null?void 0:c.actionBar))]}))},OB=["children","DateInputProps","DialogProps","onAccept","onClear","onDismiss","onCancel","onSetToday","open","PureDateInputComponent","components","componentsProps"];function Yy(e){const{children:t,DateInputProps:r,DialogProps:i,onAccept:u,onClear:o,onDismiss:a,onCancel:n,onSetToday:l,open:f,PureDateInputComponent:s,components:c,componentsProps:d}=e,h=Vn(e,OB);return je.jsxs(Di.Provider,{value:"mobile",children:[je.jsx(s,Gt({components:c},h,r)),je.jsx(CB,{DialogProps:i,onAccept:u,onClear:o,onDismiss:a,onCancel:n,onSetToday:l,open:f,components:c,componentsProps:d,children:t})]})}const Gy=$e.forwardRef(function(t,r){const{disabled:i,getOpenDialogAriaText:u,inputFormat:o,InputProps:a,inputRef:n,label:l,openPicker:f,rawValue:s,renderInput:c,TextFieldProps:d={},validationError:h,className:p}=t,m=ti(),y=u??m.openDatePickerDialogue,v=yr(),g=$e.useMemo(()=>Gt({},a,{readOnly:!0}),[a]),b=N0(v,s,o),x=Od(_=>{_.stopPropagation(),f()});return c(Gt({label:l,disabled:i,ref:r,inputRef:n,error:h,InputProps:g,className:p},!t.readOnly&&!t.disabled&&{onClick:x},{inputProps:Gt({disabled:i,readOnly:!0,"aria-readonly":!0,"aria-label":y(s,v),value:b},!t.readOnly&&{onClick:x},{onKeyDown:a4(f)})},d))}),AB=["ToolbarComponent","value","onChange","components","componentsProps"],z4=$e.forwardRef(function(t,r){const i=By(t,"MuiMobileDatePicker"),u=Fy(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ri(i,zy),{ToolbarComponent:l=Uy,components:f,componentsProps:s}=i,c=Vn(i,AB),d=Gt({},a,c,{components:f,componentsProps:s,ref:r,validationError:u});return je.jsx(Yy,Gt({},c,n,{DateInputProps:d,PureDateInputComponent:Gy,components:f,componentsProps:s,children:je.jsx(Ei,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:l,DateInputProps:d,components:f,componentsProps:s},c))}))}),PB=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],DB=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:u="@media (pointer: fine)",DialogProps:o,PopperProps:a,TransitionComponent:n}=i,l=Vn(i,PB);return vy(u,{defaultMatches:!0})?je.jsx(B4,Gt({ref:r,PopperProps:a,TransitionComponent:n},l)):je.jsx(z4,Gt({ref:r,DialogProps:o},l))});function Xy(e,t){var r,i,u,o,a;const n=fr({props:e,name:t}),l=yr(),f=ac(),s=(r=n.ampm)!=null?r:l.is12HourCycleInCurrentLocale();if(n.orientation!=null&&n.orientation!=="portrait")throw new Error("We are not supporting custom orientation for DateTimePicker yet :(");return Gt({ampm:s,orientation:"portrait",openTo:"day",views:["year","day","hours","minutes"],ampmInClock:!0,acceptRegex:s?/[\dap]/gi:/\d/gi,disableMaskedInput:!1,inputFormat:s?l.formats.keyboardDateTime12h:l.formats.keyboardDateTime24h,disableIgnoringDatePartForTimeValidation:!!(n.minDateTime||n.maxDateTime),disablePast:!1,disableFuture:!1},n,{minDate:Va(l,(i=n.minDateTime)!=null?i:n.minDate,f.minDate),maxDate:Va(l,(u=n.maxDateTime)!=null?u:n.maxDate,f.maxDate),minTime:(o=n.minDateTime)!=null?o:n.minTime,maxTime:(a=n.maxDateTime)!=null?a:n.maxTime})}const Zy={emptyValue:null,getTodayValue:e=>e.date(),parseInput:Ry,areValuesEqual:(e,t,r)=>e.isEqual(t,r)},EB=e=>{switch(e){case"year":case"month":case"day":return"calendar";default:return"clock"}};function RB(e){return _r("PrivatePickersToolbarText",e)}const p_=wr("PrivatePickersToolbarText",["root","selected"]),LB=["className","selected","value"],IB=e=>{const{classes:t,selected:r}=e;return Tr({root:["root",r&&"selected"]},RB,t)},FB=wn(Cr,{name:"PrivatePickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${p_.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:e.palette.text.secondary,[`&.${p_.selected}`]:{color:e.palette.text.primary}})),Ky=$e.forwardRef(function(t,r){const{className:i,value:u}=t,o=Vn(t,LB),a=IB(t);return je.jsx(FB,Gt({ref:r,className:jr(i,a.root),component:"span"},o,{children:u}))}),NB=["align","className","selected","typographyClassName","value","variant"],jB=e=>{const{classes:t}=e;return Tr({root:["root"]},N4,t)},$B=wn(hi,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),ci=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiPickersToolbarButton"}),{align:u,className:o,selected:a,typographyClassName:n,value:l,variant:f}=i,s=Vn(i,NB),c=jB(i);return je.jsx($B,Gt({variant:"text",ref:r,className:jr(o,c.root)},s,{children:je.jsx(Ky,{align:u,className:n,variant:f,value:l,selected:a})}))});function BB(e){return _r("MuiDateTimePickerToolbar",e)}const zB=wr("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","separator"]),qB=["ampm","parsedValue","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],WB=e=>{const{classes:t}=e;return Tr({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer"],separator:["separator"]},BB,t)},UB=wn(Wy,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",[`& .${qy.penIconButton}`]:Gt({position:"absolute",top:8},e.direction==="rtl"?{left:8}:{right:8})})),HB=wn("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),VB=wn("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})({display:"flex"}),g_=wn(Ky,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({margin:"0 4px 0 2px",cursor:"default"});function Jy(e){const t=fr({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:r,parsedValue:i,isMobileKeyboardViewOpen:u,openView:o,setOpenView:a,toggleMobileKeyboardView:n,toolbarFormat:l,toolbarPlaceholder:f="––",toolbarTitle:s,views:c}=t,d=Vn(t,qB),h=t,p=yr(),m=ti(),y=WB(h),v=s??m.dateTimePickerDefaultToolbarTitle,g=x=>r?p.format(x,"hours12h"):p.format(x,"hours24h"),b=$e.useMemo(()=>i?l?p.formatByString(i,l):p.format(i,"shortDate"):f,[i,l,f,p]);return je.jsxs(UB,Gt({toolbarTitle:v,isMobileKeyboardViewOpen:u,toggleMobileKeyboardView:n,className:y.root,viewType:EB(o)},d,{isLandscape:!1,ownerState:h,children:[je.jsxs(HB,{className:y.dateContainer,ownerState:h,children:[c.includes("year")&&je.jsx(ci,{tabIndex:-1,variant:"subtitle1",onClick:()=>a("year"),selected:o==="year",value:i?p.format(i,"year"):"–"}),c.includes("day")&&je.jsx(ci,{tabIndex:-1,variant:"h4",onClick:()=>a("day"),selected:o==="day",value:b})]}),je.jsxs(VB,{className:y.timeContainer,ownerState:h,children:[c.includes("hours")&&je.jsx(ci,{variant:"h3",onClick:()=>a("hours"),selected:o==="hours",value:i?g(i):"--"}),c.includes("minutes")&&je.jsxs($e.Fragment,{children:[je.jsx(g_,{variant:"h3",value:":",className:y.separator,ownerState:h}),je.jsx(ci,{variant:"h3",onClick:()=>a("minutes"),selected:o==="minutes",value:i?p.format(i,"minutes"):"--"})]}),c.includes("seconds")&&je.jsxs($e.Fragment,{children:[je.jsx(g_,{variant:"h3",value:":",className:y.separator,ownerState:h}),je.jsx(ci,{variant:"h3",onClick:()=>a("seconds"),selected:o==="seconds",value:i?p.format(i,"seconds"):"--"})]})]})]}))}const q4=({adapter:e,value:t,props:r})=>{const{minTime:i,maxTime:u,minutesStep:o,shouldDisableTime:a,disableIgnoringDatePartForTimeValidation:n}=r,l=e.utils.date(t),f=w4(n,e.utils);if(t===null)return null;switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(i&&f(i,l)):return"minTime";case!!(u&&f(l,u)):return"maxTime";case!!(a&&a(e.utils.getHours(l),"hours")):return"shouldDisableTime-hours";case!!(a&&a(e.utils.getMinutes(l),"minutes")):return"shouldDisableTime-minutes";case!!(a&&a(e.utils.getSeconds(l),"seconds")):return"shouldDisableTime-seconds";case!!(o&&e.utils.getMinutes(l)%o!==0):return"minutesStep";default:return null}},YB=(e,t)=>e===t,Qy=e=>Ly(e,q4,YB),GB=["minDate","maxDate","disableFuture","shouldDisableDate","disablePast"],XB=({props:e,value:t,adapter:r})=>{const{minDate:i,maxDate:u,disableFuture:o,shouldDisableDate:a,disablePast:n}=e,l=Vn(e,GB),f=Iy({adapter:r,value:t,props:{minDate:i,maxDate:u,disableFuture:o,shouldDisableDate:a,disablePast:n}});return f!==null?f:q4({adapter:r,value:t,props:l})},ZB=(e,t)=>e===t;function e1(e){return Ly(e,XB,ZB)}function KB(e){return _r("MuiDateTimePickerTabs",e)}const JB=wr("MuiDateTimePickerTabs",["root"]),QB=e=>["day","month","year"].includes(e)?"date":"time",ez=e=>e==="date"?"day":"hours",tz=e=>{const{classes:t}=e;return Tr({root:["root"]},KB,t)},nz=wn(aS,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>Gt({boxShadow:`0 -1px 0 0 inset ${t.palette.divider}`},e.wrapperVariant==="desktop"&&{order:1,boxShadow:`0 1px 0 0 inset ${t.palette.divider}`,[`& .${L9.indicator}`]:{bottom:"auto",top:0}})),zd=function(t){const r=fr({props:t,name:"MuiDateTimePickerTabs"}),{dateRangeIcon:i=je.jsx(vj,{}),onChange:u,timeIcon:o=je.jsx(bj,{}),view:a}=r,n=ti(),l=$e.useContext(Di),f=Gt({},r,{wrapperVariant:l}),s=tz(f),c=(d,h)=>{u(ez(h))};return je.jsxs(nz,{ownerState:f,variant:"fullWidth",value:QB(a),onChange:c,className:s.root,children:[je.jsx(A0,{value:"date","aria-label":n.dateTableLabel,icon:je.jsx($e.Fragment,{children:i})}),je.jsx(A0,{value:"time","aria-label":n.timeTableLabel,icon:je.jsx($e.Fragment,{children:o})})]})},rz=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps","hideTabs"],W4=$e.forwardRef(function(t,r){const i=Xy(t,"MuiDesktopDateTimePicker"),u=e1(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ri(i,Zy),{PaperProps:l,PopperProps:f,ToolbarComponent:s=Jy,TransitionComponent:c,components:d,componentsProps:h,hideTabs:p=!0}=i,m=Vn(i,rz),y=$e.useMemo(()=>Gt({Tabs:zd},d),[d]),v=Gt({},a,m,{components:y,componentsProps:h,ref:r,validationError:u});return je.jsx(Vy,Gt({},n,{DateInputProps:v,KeyboardDateInputComponent:Bd,PopperProps:f,PaperProps:l,TransitionComponent:c,components:y,componentsProps:h,children:je.jsx(Ei,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:s,DateInputProps:v,components:y,componentsProps:h,hideTabs:p},m))}))}),az=["ToolbarComponent","value","onChange","components","componentsProps","hideTabs"],U4=$e.forwardRef(function(t,r){const i=Xy(t,"MuiMobileDateTimePicker"),u=e1(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ri(i,Zy),{ToolbarComponent:l=Jy,components:f,componentsProps:s,hideTabs:c=!1}=i,d=Vn(i,az),h=$e.useMemo(()=>Gt({Tabs:zd},f),[f]),p=Gt({},a,d,{components:h,componentsProps:s,ref:r,validationError:u});return je.jsx(Yy,Gt({},d,n,{DateInputProps:p,PureDateInputComponent:Gy,components:h,componentsProps:s,children:je.jsx(Ei,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:l,DateInputProps:p,components:h,componentsProps:s,hideTabs:c},d))}))}),iz=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],oz=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:u="@media (pointer: fine)",DialogProps:o,PopperProps:a,TransitionComponent:n}=i,l=Vn(i,iz);return vy(u,{defaultMatches:!0})?je.jsx(W4,Gt({ref:r,PopperProps:a,TransitionComponent:n},l)):je.jsx(U4,Gt({ref:r,DialogProps:o},l))});function t1(e,t){var r;const i=fr({props:e,name:t}),u=yr(),o=(r=i.ampm)!=null?r:u.is12HourCycleInCurrentLocale(),n=ti().openTimePickerDialogue;return Gt({ampm:o,openTo:"hours",views:["hours","minutes"],acceptRegex:o?/[\dapAP]/gi:/\d/gi,disableMaskedInput:!1,getOpenDialogAriaText:n,inputFormat:o?u.formats.fullTime12h:u.formats.fullTime24h},i,{components:Gt({OpenPickerIcon:b4},i.components)})}const n1={emptyValue:null,parseInput:Ry,getTodayValue:e=>e.date(),areValuesEqual:(e,t,r)=>e.isEqual(t,r),valueReducer:(e,t,r)=>!t||!e.isValid(r)?r:e.mergeDateAndTime(t,r)};function lz(e){return _r("MuiTimePickerToolbar",e)}const vl=wr("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),sz=["ampm","ampmInClock","parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarTitle","views","disabled","readOnly"],uz=e=>{const{theme:t,isLandscape:r,classes:i}=e,u={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",r&&"hourMinuteLabelLandscape",t.direction==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Tr(u,lz,i)},cz=wn(Wy,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({[`& .${qy.penIconButtonLandscape}`]:{marginTop:"auto"}}),fz=wn(Ky,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),dz=wn("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${vl.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${vl.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>Gt({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"})),hz=wn("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${vl.ampmLabel}`]:t.ampmLabel},{[`&.${vl.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>Gt({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${vl.ampmLabel}`]:{fontSize:17}}));function r1(e){const t=fr({props:e,name:"MuiTimePickerToolbar"}),{ampm:r,ampmInClock:i,parsedValue:u,isLandscape:o,isMobileKeyboardViewOpen:a,onChange:n,openView:l,setOpenView:f,toggleMobileKeyboardView:s,toolbarTitle:c,views:d,disabled:h,readOnly:p}=t,m=Vn(t,sz),y=yr(),v=ti(),g=c??v.timePickerDefaultToolbarTitle,b=Ad(),x=!!(r&&!i),{meridiemMode:_,handleMeridiemChange:w}=_4(u,r,n),k=C=>r?y.format(C,"hours12h"):y.format(C,"hours24h"),T=t,M=uz(Gt({},T,{theme:b})),S=je.jsx(fz,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:M.separator});return je.jsxs(cz,Gt({viewType:"clock",landscapeDirection:"row",toolbarTitle:g,isLandscape:o,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:s,ownerState:T,className:M.root},m,{children:[je.jsxs(dz,{className:M.hourMinuteLabel,ownerState:T,children:[bo(d,"hours")&&je.jsx(ci,{tabIndex:-1,variant:"h3",onClick:()=>f("hours"),selected:l==="hours",value:u?k(u):"--"}),bo(d,["hours","minutes"])&&S,bo(d,"minutes")&&je.jsx(ci,{tabIndex:-1,variant:"h3",onClick:()=>f("minutes"),selected:l==="minutes",value:u?y.format(u,"minutes"):"--"}),bo(d,["minutes","seconds"])&&S,bo(d,"seconds")&&je.jsx(ci,{variant:"h3",onClick:()=>f("seconds"),selected:l==="seconds",value:u?y.format(u,"seconds"):"--"})]}),x&&je.jsxs(hz,{className:M.ampmSelection,ownerState:T,children:[je.jsx(ci,{disableRipple:!0,variant:"subtitle2",selected:_==="am",typographyClassName:M.ampmLabel,value:y.getMeridiemText("am"),onClick:p?void 0:()=>w("am"),disabled:h}),je.jsx(ci,{disableRipple:!0,variant:"subtitle2",selected:_==="pm",typographyClassName:M.ampmLabel,value:y.getMeridiemText("pm"),onClick:p?void 0:()=>w("pm"),disabled:h})]})]}))}const pz=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],H4=$e.forwardRef(function(t,r){const i=t1(t,"MuiDesktopTimePicker"),u=Qy(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ri(i,n1),{PaperProps:l,PopperProps:f,ToolbarComponent:s=r1,TransitionComponent:c,components:d,componentsProps:h}=i,p=Vn(i,pz),m=Gt({},a,p,{components:d,componentsProps:h,ref:r,validationError:u});return je.jsx(Vy,Gt({},n,{DateInputProps:m,KeyboardDateInputComponent:Bd,PopperProps:f,PaperProps:l,TransitionComponent:c,components:d,componentsProps:h,children:je.jsx(Ei,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:s,DateInputProps:m,components:d,componentsProps:h},p))}))}),gz=["ToolbarComponent","value","onChange","components","componentsProps"],V4=$e.forwardRef(function(t,r){const i=t1(t,"MuiMobileTimePicker"),u=Qy(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ri(i,n1),{ToolbarComponent:l=r1,components:f,componentsProps:s}=i,c=Vn(i,gz),d=Gt({},a,c,{components:f,componentsProps:s,ref:r,validationError:u});return je.jsx(Yy,Gt({},c,n,{DateInputProps:d,PureDateInputComponent:Gy,components:f,componentsProps:s,children:je.jsx(Ei,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:l,DateInputProps:d,components:f,componentsProps:s},c))}))});function mz(e){return _r("MuiPickerStaticWrapper",e)}wr("MuiPickerStaticWrapper",["root","content"]);const vz=["displayStaticWrapperAs","onAccept","onClear","onCancel","onDismiss","onSetToday","open","children","components","componentsProps","className"],yz=e=>{const{classes:t}=e;return Tr({root:["root"],content:["content"]},mz,t)},bz=wn("div",{name:"MuiPickerStaticWrapper",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),xz=wn("div",{name:"MuiPickerStaticWrapper",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e})=>({overflow:"hidden",minWidth:Ny,display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper}));function qd(e){var t;const r=fr({props:e,name:"MuiPickerStaticWrapper"}),{displayStaticWrapperAs:i,onAccept:u,onClear:o,onCancel:a,onSetToday:n,children:l,components:f,componentsProps:s,className:c}=r,d=Vn(r,vz),h=yz(r),p=(t=f==null?void 0:f.ActionBar)!=null?t:Hy,m=(f==null?void 0:f.PaperContent)||$e.Fragment;return je.jsx(Di.Provider,{value:i,children:je.jsxs(bz,Gt({className:jr(h.root,c)},d,{children:[je.jsx(xz,{className:h.content,children:je.jsx(m,Gt({},s==null?void 0:s.paperContent,{children:l}))}),je.jsx(p,Gt({onAccept:u,onClear:o,onCancel:a,onSetToday:n,actions:i==="desktop"?[]:["cancel","accept"]},s==null?void 0:s.actionBar))]}))})}const wz=["ToolbarComponent","value","onChange","displayStaticWrapperAs","components","componentsProps","className"],_z=$e.forwardRef(function(t,r){const i=By(t,"MuiStaticDatePicker"),{ToolbarComponent:u=Uy,displayStaticWrapperAs:o="mobile",components:a,componentsProps:n,className:l}=i,f=Vn(i,wz),{pickerProps:s,inputProps:c,wrapperProps:d}=Ri(i,zy),h=Fy(i)!==null,p=Gt({},c,f,{ref:r,validationError:h,components:a});return je.jsx(qd,Gt({displayStaticWrapperAs:o,components:a,componentsProps:n,className:l},d,{children:je.jsx(Ei,Gt({},s,{toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:u,DateInputProps:p,components:a,componentsProps:n},f))}))}),Tz=["displayStaticWrapperAs","onChange","ToolbarComponent","value","components","componentsProps","hideTabs","className"],kz=$e.forwardRef(function(t,r){const i=Xy(t,"MuiStaticDateTimePicker"),{displayStaticWrapperAs:u="mobile",ToolbarComponent:o=Jy,components:a,componentsProps:n,hideTabs:l=u==="desktop",className:f}=i,s=Vn(i,Tz),{pickerProps:c,inputProps:d,wrapperProps:h}=Ri(i,Zy),p=e1(i)!==null,m=$e.useMemo(()=>Gt({Tabs:zd},a),[a]),y=Gt({},d,s,{ref:r,validationError:p,components:m,componentsProps:n});return je.jsx(qd,Gt({displayStaticWrapperAs:u,components:m,componentsProps:n,className:f},h,{children:je.jsx(Ei,Gt({},c,{toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:o,DateInputProps:y,components:m,componentsProps:n,hideTabs:l},s))}))}),Mz=["displayStaticWrapperAs","onChange","ToolbarComponent","value","components","componentsProps","className"],Sz=$e.forwardRef(function(t,r){const i=t1(t,"MuiStaticTimePicker"),{displayStaticWrapperAs:u="mobile",ToolbarComponent:o=r1,components:a,componentsProps:n,className:l}=i,f=Vn(i,Mz),s=Qy(i)!==null,{pickerProps:c,inputProps:d,wrapperProps:h}=Ri(i,n1),p=Gt({},d,f,{ref:r,validationError:s,components:a,componentsProps:n});return je.jsx(qd,Gt({displayStaticWrapperAs:u,components:a,componentsProps:n,className:l},h,{children:je.jsx(Ei,Gt({},c,{toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:o,DateInputProps:p,components:a,componentsProps:n},f))}))}),Cz=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],Oz=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:u="@media (pointer: fine)",DialogProps:o,PopperProps:a,TransitionComponent:n}=i,l=Vn(i,Cz);return vy(u,{defaultMatches:!0})?je.jsx(H4,Gt({ref:r,PopperProps:a,TransitionComponent:n},l)):je.jsx(V4,Gt({ref:r,DialogProps:o},l))});/** @license MUI X v5.0.20 * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */const Oz=Object.freeze(Object.defineProperty({__proto__:null,CalendarPicker:C4,CalendarPickerSkeleton:l$,ClockPicker:L4,DEFAULT_LOCALE:l4,DatePicker:PB,DateTimePicker:iz,DateTimePickerTabs:zd,DesktopDatePicker:B4,DesktopDateTimePicker:W4,DesktopTimePicker:H4,LocalizationProvider:DN,MobileDatePicker:z4,MobileDateTimePicker:U4,MobileTimePicker:V4,MonthPicker:u4,MuiPickersAdapterContext:Ey,PickerStaticWrapper:qd,PickersDay:g4,StaticDatePicker:wz,StaticDateTimePicker:Tz,StaticTimePicker:Mz,TimePicker:Cz,YearPicker:M4,beBY:CN,calendarPickerClasses:Xj,calendarPickerSkeletonClasses:t$,clockClasses:w$,clockNumberClasses:wu,clockPickerClasses:F$,clockPointerClasses:p$,csCZ:JF,datePickerToolbarClasses:G$,dateTimePickerTabsClasses:KB,dateTimePickerToolbarClasses:BB,dayPickerClasses:rj,deDE:zF,enUS:aN,esES:UF,faIR:VF,fiFI:XF,frFR:tN,getCalendarPickerSkeletonUtilityClass:O4,getCalendarPickerUtilityClass:S4,getClockPickerUtilityClass:R4,getMonthPickerUtilityClass:s4,getPickersDayUtilityClass:d4,getYearPickerUtilityClass:k4,huHU:rN,isIS:bN,itIT:fN,jaJP:wN,koKR:vN,monthPickerClasses:EN,nbNO:oN,nlNL:RF,pickersCalendarHeaderClasses:Aj,pickersDayClasses:xu,pickersFadeTransitionGroupClasses:zN,pickersMonthClasses:I0,pickersSlideTransitionClasses:sa,pickersYearClasses:_o,plPL:IF,ptBR:NF,ruRU:PN,svSE:sN,timePickerToolbarClasses:vl,trTR:$F,ukUA:TN,urPK:MN,yearPickerClasses:Uj,zhCN:pN},Symbol.toStringTag,{value:"Module"})),Y4=qn(Oz);var m_;function Az(){return m_||(m_=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(hr()),i=t(Bl()),c=t(Ed()),o=t(Rd()),a=t(ky()),n=t(Sy()),l=t(Cy()),f=t($e),s=t(Ld),u=t(qo),d=t(LS),h=t(Oy),p=t(IS),m=t(bR),y=t(xR),v=t(wR),g=n4,b=Y4,x=t(Or),_=["columnDef","rowData","onRowDataChange","errorState","autoFocus","onBulkEditRowChanged","scrollWidth"],w=["helperText","error"],k=["helperText","error"];function T(P){var D=M();return function(){var R=(0,l.default)(P),F;if(D){var A=(0,l.default)(this).constructor;F=Reflect.construct(R,arguments,A)}else F=R.apply(this,arguments);return(0,n.default)(this,F)}}function M(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var S=function(P){(0,a.default)(O,P);var D=T(O);function O(){return(0,c.default)(this,O),D.apply(this,arguments)}return(0,o.default)(O,[{key:"getProps",value:function(){var F=this.props;F.columnDef,F.rowData,F.onRowDataChange,F.errorState,F.autoFocus,F.onBulkEditRowChanged,F.scrollWidth;var A=(0,i.default)(F,_);return A}},{key:"renderLookupField",value:function(){var F=this,A=this.getProps(),z=A.helperText,B=A.error,$=(0,i.default)(A,w);return f.default.createElement(p.default,{error:!!B},f.default.createElement(d.default,(0,r.default)({},$,{value:this.props.value===void 0?"":this.props.value,onChange:function(N){return F.props.onChange(N.target.value)},style:{fontSize:13},inputProps:{autoFocus:this.props.autoFocus},SelectDisplayProps:{"aria-label":this.props.columnDef.title}}),Object.keys(this.props.columnDef.lookup).map(function(j){return f.default.createElement(h.default,{key:j,value:j},F.props.columnDef.lookup[j])})),!!z&&f.default.createElement(m.default,null,z))}},{key:"renderBooleanField",value:function(){var F=this,A=this.getProps(),z=A.helperText,B=A.error,$=(0,i.default)(A,k);return f.default.createElement(p.default,{error:!!B,component:"fieldset"},f.default.createElement(y.default,null,f.default.createElement(v.default,{label:"",control:f.default.createElement(u.default,(0,r.default)({},$,{value:String(this.props.value),checked:!!this.props.value,onChange:function(N){return F.props.onChange(N.target.checked)},style:{padding:0,width:24,marginLeft:9},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title}}))})),f.default.createElement(m.default,null,z))}},{key:"renderDateField",value:function(){var F=this.props.columnDef.dateSetting&&this.props.columnDef.dateSetting.format?this.props.columnDef.dateSetting.format:"dd.MM.yyyy";return f.default.createElement(b.LocalizationProvider,{dateAdapter:g.AdapterDateFns,locale:this.props.locale},f.default.createElement(b.DatePicker,(0,r.default)({},this.getProps(),{renderInput:function(z){return f.default.createElement(s.default,z)},format:F,value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderTimeField",value:function(){return f.default.createElement(b.LocalizationProvider,{dateAdapter:g.AdapterDateFns,locale:this.props.locale},f.default.createElement(b.TimePicker,(0,r.default)({},this.getProps(),{renderInput:function(A){return f.default.createElement(s.default,A)},format:"HH:mm:ss",value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderDateTimeField",value:function(){return f.default.createElement(b.LocalizationProvider,{dateAdapter:g.AdapterDateFns,locale:this.props.locale},f.default.createElement(b.DateTimePicker,(0,r.default)({},this.getProps(),{renderInput:function(A){return f.default.createElement(s.default,A)},format:"dd.MM.yyyy HH:mm:ss",value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderTextField",value:function(){var F=this;return f.default.createElement(s.default,(0,r.default)({},this.getProps(),{variant:"standard",fullWidth:!0,type:this.props.columnDef.type==="numeric"?"number":"text",placeholder:this.props.columnDef.editPlaceholder||this.props.columnDef.title,value:this.props.value===void 0?"":this.props.value,onChange:function(z){return F.props.onChange(F.props.columnDef.type==="numeric"?z.target.valueAsNumber:z.target.value)},InputProps:{style:{minWidth:50,fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title,style:this.props.columnDef.type==="numeric"?{textAlign:"right"}:{}}}))}},{key:"renderCurrencyField",value:function(){var F=this;return f.default.createElement(s.default,(0,r.default)({},this.getProps(),{variant:"standard",placeholder:this.props.columnDef.editPlaceholder||this.props.columnDef.title,type:"number",value:this.props.value===void 0?"":this.props.value,onChange:function(z){var B=z.target.valueAsNumber;return!B&&B!==0&&(B=void 0),F.props.onChange(B)},InputProps:{style:{fontSize:13,textAlign:"right"}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title,style:{textAlign:"right"}},onKeyDown:this.props.onKeyDown}))}},{key:"render",value:function(){var F="ok";return this.props.columnDef.editComponent?F=this.props.columnDef.editComponent(this.props):this.props.columnDef.lookup?F=this.renderLookupField():this.props.columnDef.type==="boolean"?F=this.renderBooleanField():this.props.columnDef.type==="date"?F=this.renderDateField():this.props.columnDef.type==="time"?F=this.renderTimeField():this.props.columnDef.type==="datetime"?F=this.renderDateTimeField():this.props.columnDef.type==="currency"?F=this.renderCurrencyField():F=this.renderTextField(),F}}]),O}(f.default.Component);S.propTypes={value:x.default.any,onChange:x.default.func.isRequired,columnDef:x.default.object.isRequired,locale:x.default.object,rowData:x.default.object,onRowDataChange:x.default.func,errorState:x.default.func,autoFocus:x.default.bool,onBulkEditRowChanged:x.default.func,scrollWidth:x.default.number,onKeyDown:x.default.func};var C=S;e.default=C}($g)),$g}var em={},Vc={},v_;function G4(){if(v_)return Vc;v_=1;var e=Rn;Object.defineProperty(Vc,"__esModule",{value:!0}),Vc.validateInput=o;var t=e(Jr()),r=e(Ur());function i(a,n){var l=Object.keys(a);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);n&&(f=f.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),l.push.apply(l,f)}return l}function c(a){for(var n=1;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var g=function(x){(0,o.default)(w,x);var _=y(w);function w(k){var T;return(0,r.default)(this,w),T=_.call(this,k),(0,l.default)((0,c.default)(T),"getStyle",function(){var M={boxShadow:"2px 0px 15px rgba(125,147,178,.25)",color:"inherit",width:T.props.columnDef.tableData.width,boxSizing:"border-box",fontSize:"inherit",fontFamily:"inherit",fontWeight:"inherit",padding:"0 16px"};return typeof T.props.columnDef.cellStyle=="function"?M=m(m({},M),T.props.columnDef.cellStyle(T.state.value,T.props.rowData)):M=m(m({},M),T.props.columnDef.cellStyle),typeof T.props.cellEditable.cellStyle=="function"?M=m(m({},M),T.props.cellEditable.cellStyle(T.state.value,T.props.rowData,T.props.columnDef)):M=m(m({},M),T.props.cellEditable.cellStyle),M}),(0,l.default)((0,c.default)(T),"handleKeyDown",function(M){M.keyCode===13?T.onApprove():M.keyCode===27&&T.onCancel()}),(0,l.default)((0,c.default)(T),"onApprove",function(){var M=(0,h.validateInput)(T.props.columnDef,T.state.value).isValid;M&&T.setState({isLoading:!0},function(){T.props.cellEditable.onCellEditApproved(T.state.value,T.props.getFieldValue(T.props.rowData,T.props.columnDef),T.props.rowData,T.props.columnDef).then(function(){T.setState({isLoading:!1}),T.props.onCellEditFinished(T.props.rowData,T.props.columnDef)}).catch(function(S){T.setState({isLoading:!1})})})}),(0,l.default)((0,c.default)(T),"onCancel",function(){T.props.onCellEditFinished(T.props.rowData,T.props.columnDef)}),T.state={errorState:{isValid:!0,helperText:""},isLoading:!1,value:k.getFieldValue(T.props.rowData,T.props.columnDef,!1)},T}return(0,i.default)(w,[{key:"renderActions",value:function(){if(this.state.isLoading)return f.default.createElement("div",{style:{display:"flex",justifyContent:"center",width:60}},f.default.createElement(d.default,{size:20}));var T=[{icon:this.props.icons.Check,tooltip:this.props.localization.saveTooltip,onClick:this.onApprove,disabled:this.state.isLoading||!this.state.errorState.isValid},{icon:this.props.icons.Clear,tooltip:this.props.localization.cancelTooltip,onClick:this.onCancel,disabled:this.state.isLoading}];return f.default.createElement(this.props.components.Actions,{actions:T,components:this.props.components,size:"small"})}},{key:"handleChange",value:function(T){var M=(0,h.validateInput)(this.props.columnDef,T);this.setState({errorState:M,value:T})}},{key:"render",value:function(){var T=this;return f.default.createElement(u.default,{size:this.props.size,style:this.getStyle(),padding:"none"},f.default.createElement("div",{style:{display:"flex",alignItems:"center"}},f.default.createElement("div",{style:{flex:1,marginRight:4}},f.default.createElement(this.props.components.EditField,{columnDef:this.props.columnDef,value:this.state.value,error:!this.state.errorState.isValid,helperText:this.state.errorState.helperText,onChange:function(S){return T.handleChange(S)},onKeyDown:this.handleKeyDown,disabled:this.state.isLoading,rowData:this.props.rowData,autoFocus:!0})),this.renderActions()))}}]),w}(f.default.Component);g.defaultProps={columnDef:{},localization:{saveTooltip:"Save",cancelTooltip:"Cancel"}},g.propTypes={cellEditable:s.default.object.isRequired,columnDef:s.default.object.isRequired,components:s.default.object.isRequired,errorState:s.default.oneOfType([s.default.object,s.default.bool]),icons:s.default.object.isRequired,localization:s.default.object.isRequired,onCellEditFinished:s.default.func.isRequired,rowData:s.default.object.isRequired,size:s.default.string,getFieldValue:s.default.func.isRequired};var b=g;e.default=b}(em)),em}var tm={},nm={exports:{}},rm={exports:{}},b_;function Dz(){return b_||(b_=1,function(e){function t(r){if(Array.isArray(r))return r}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(rm)),rm.exports}var am={exports:{}},x_;function Ez(){return x_||(x_=1,function(e){function t(r,i){var c=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(c!=null){var o,a,n,l,f=[],s=!0,u=!1;try{if(n=(c=c.call(r)).next,i===0){if(Object(c)!==c)return;s=!1}else for(;!(s=(o=n.call(c)).done)&&(f.push(o.value),f.length!==i);s=!0);}catch(d){u=!0,a=d}finally{try{if(!s&&c.return!=null&&(l=c.return(),Object(l)!==l))return}finally{if(u)throw a}}return f}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(am)),am.exports}var im={exports:{}},w_;function Rz(){return w_||(w_=1,function(e){function t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(im)),im.exports}var __;function io(){return __||(__=1,function(e){var t=Dz(),r=Ez(),i=ES(),c=Rz();function o(a,n){return t(a)||r(a,n)||i(a,n)||c()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(nm)),nm.exports}const ql=qn(I9),Wo=qn(F9);var T_;function Lz(){return T_||(T_=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(hr()),i=t(Jr()),c=t(Ur()),o=t(io()),a=t($e),n=t(Or),l=t(Ty),f=t(ql),s=t(Wo);function u(m,y){var v=Object.keys(m);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(m);y&&(g=g.filter(function(b){return Object.getOwnPropertyDescriptor(m,b).enumerable})),v.push.apply(v,g)}return v}function d(m){for(var y=1;y0&&o.default.createElement(i.default,{colSpan:n.options.detailPanelOffset.left}),o.default.createElement(i.default,{size:n.size,colSpan:n.renderColumns.length-n.options.detailPanelOffset.left-n.options.detailPanelOffset.right,padding:"none"},o.default.createElement(r.default,{in:u,timeout:"auto",unmountOnExit:!0,mountOnEnter:!0,onExited:function(){y.current=void 0,m()}},g({rowData:n.data}))))}return Yc}var Zr={},S_;function Li(){if(S_)return Zr;S_=1;var e=Rn;Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.widthToNumber=Zr.selectionMaxWidth=Zr.rowActions=Zr.reducePercentsInCalc=Zr.parseFirstLastPageButtons=Zr.elementSize=Zr.baseIconSize=Zr.actionsColumnWidth=void 0;var t=e(Jr()),r=e(Ur());function i(h,p){var m=Object.keys(h);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(h);p&&(y=y.filter(function(v){return Object.getOwnPropertyDescriptor(h,v).enumerable})),m.push.apply(m,y)}return m}function c(h){for(var p=1;p1){var v=y[1];return p.replace(/\d*%/,"".concat(m*(v/100),"px"))}return p.replace(/\d*%/,"".concat(m,"px"))};Zr.reducePercentsInCalc=s;var u=function(p){return typeof p=="number"?p:!p||!p.match(/^\s*\d+(px)?\s*$/)?NaN:Number(p.replace(/px$/,""))};Zr.widthToNumber=u;var d=function(p,m){var y={first:!0,last:!0};return typeof p=="boolean"?y={first:p,last:p}:(0,r.default)(p)==="object"&&(y=c(c({},y),p)),m&&(y={first:y.last,last:y.first}),y};return Zr.parseFirstLastPageButtons=d,Zr}var Gc={},C_;function jz(){if(C_)return Gc;C_=1;var e=Rn;Object.defineProperty(Gc,"__esModule",{value:!0}),Gc.useDoubleClick=r;var t=e($e);function r(i,c){var o=t.default.useRef(0),a=t.default.useRef(null),n=t.default.useRef(null),l=t.default.useRef(null);t.default.useEffect(function(){n.current=c,l.current=i});var f=function(){clearTimeout(a.current),a.current=null,o.current=0},s=t.default.useCallback(function(u){var d=o.current+1===2,h=a.current;if(h&&d&&(f(),n.current&&n.current(u)),!h){o.current=o.current+1;var p=function(){f(),l.current&&l.current(u)};if(n.current){var m=setTimeout(p,250);a.current=m}else p()}},[]);return s}return Gc}var O_;function $z(){return O_||(O_=1,function(e){var t=Rn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(zl()),c=t(Pi),o=t(Wo),a=t(ql),n=t(qo),l=t(hr()),f=t(mi),s=t(Jr()),u=t(Bl()),d=t($e),h=t(Or),p=Nz(),m=w(Li()),y=jz(),v=Jd(),g=ei(),b=["forwardedRef"],x=["data","components","detailPanel","getFieldValue","isTreeData","onRowSelected","onRowEditStarted","onTreeExpandChanged","onToggleDetailPanel","onEditingCanceled","onEditingApproved","hasAnyEditingRow","treeDataMaxLevel","path","actions","errorState","cellEditable","onCellEditStarted","onCellEditFinished","persistEvents","scrollWidth","onRowClick","onRowDoubleClick","columns"];function _(C){if(typeof WeakMap!="function")return null;var P=new WeakMap,D=new WeakMap;return(_=function(R){return R?D:P})(C)}function w(C,P){if(C&&C.__esModule)return C;if(C===null||r(C)!=="object"&&typeof C!="function")return{default:C};var D=_(P);if(D&&D.has(C))return D.get(C);var O={},R=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var F in C)if(F!=="default"&&Object.prototype.hasOwnProperty.call(C,F)){var A=R?Object.getOwnPropertyDescriptor(C,F):null;A&&(A.get||A.set)?Object.defineProperty(O,F,A):O[F]=C[F]}return O.default=C,D&&D.set(C,O),O}function k(C,P){var D=Object.keys(C);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(C);P&&(O=O.filter(function(R){return Object.getOwnPropertyDescriptor(C,R).enumerable})),D.push.apply(D,O)}return D}function T(C){for(var P=1;P-1)}).sort(function(Ae,Ee){return Ae.tableData.columnOrder-Ee.tableData.columnOrder}).map(function(Ae){var Ee=D.getFieldValue(D.data,Ae);if(D.data.tableData.editCellList&&D.data.tableData.editCellList.find(function(Ie){return Ie.tableData.id===Ae.tableData.id}))return d.default.createElement(D.components.EditCell,{getFieldValue:D.getFieldValue,components:D.components,icons:F,localization:O,columnDef:Ae,size:Oe,key:"cell-"+D.data.tableData.id+"-"+Ae.tableData.id,rowData:D.data,cellEditable:D.cellEditable,onCellEditFinished:D.onCellEditFinished,scrollWidth:U});var De=Ae.editable!=="never"&&!!D.cellEditable;De&&D.cellEditable.isCellEditable&&(De=D.cellEditable.isCellEditable(D.data,Ae));var Re="cell-".concat(D.data.tableData.id,"-").concat(Ae.tableData.id);return d.default.createElement(D.components.Cell,{size:Oe,errorState:D.errorState,columnDef:T({cellStyle:R.cellStyle},Ae),value:Ee,key:Re,rowData:D.data,cellEditable:De,onCellEditStarted:D.onCellEditStarted,scrollWidth:U})});return ke},Oe=m.elementSize(A),Me=q.length*m.baseIconSize(A),ce=function(ke){return d.default.createElement(f.default,{size:Oe,padding:"none",key:"key-actions-column",style:T({width:Me,padding:"0px 5px",boxSizing:"border-box"},R.actionsCellStyle)},d.default.createElement(D.components.Actions,{data:D.data,actions:ke,components:D.components,size:Oe,disabled:D.hasAnyEditingRow}))},ye=function(){var ke=R.selectionProps||{};typeof ke=="function"&&(ke=ke(D.data));var Ae=m.selectionMaxWidth(A,D.treeDataMaxLevel)||0,Ee=Oe!=="medium"?{padding:"4px"}:void 0;return d.default.createElement(f.default,{size:Oe,padding:"none",key:"key-selection-column",style:{width:Ae}},d.default.createElement(n.default,(0,l.default)({size:Oe,checked:D.data.tableData.checked===!0,onClick:function(Re){return Re.stopPropagation()},value:D.data.tableData.id.toString(),onChange:function(Re){D.onRowSelected(Re,D.path,D.data)},style:Ee},ke)))},J=function(ke){return{transform:ke?"rotate(90deg)":"none"}},ne=function(){return R.showDetailPanelIcon?typeof D.detailPanel=="function"?d.default.createElement(f.default,{size:Oe,padding:"none",key:"key-detail-panel-column",style:T({width:42,textAlign:"center"},R.detailPanelColumnStyle)},d.default.createElement(a.default,{"aria-label":"Detail panel visibility toggle",size:Oe,style:T({transition:"all ease 200ms"},J(D.data.tableData.showDetailPanel)),onClick:function(Ae){D.onToggleDetailPanel(D.path,D.detailPanel),Ae.stopPropagation()}},d.default.createElement(F.DetailPanel,null))):d.default.createElement(f.default,{size:Oe,padding:"none",key:"key-detail-panel-column"},d.default.createElement("div",{style:T({width:42*D.detailPanel.length,textAlign:"center",display:"flex"},R.detailPanelColumnStyle)},D.detailPanel.map(function(ke,Ae){typeof ke=="function"&&(ke=ke(D.data));var Ee=(D.data.tableData.showDetailPanel||"").toString()===ke.render.toString(),De=d.default.createElement(F.DetailPanel,null),Re=!0;return Ee?ke.openIcon?(De=d.default.createElement(v.MTableCustomIcon,{icon:ke.openIcon,iconProps:ke.iconProps}),Re=!1):ke.icon&&(De=d.default.createElement(v.MTableCustomIcon,{icon:ke.icon,iconProps:ke.iconProps})):ke.icon&&(De=d.default.createElement(v.MTableCustomIcon,{icon:ke.icon,iconProps:ke.iconProps}),Re=!1),De=d.default.createElement(a.default,{"aria-label":"Detail panel visibility toggle",size:Oe,key:"key-detail-panel-"+Ae,style:T({transition:"all ease 200ms"},J(Re&&Ee)),disabled:ke.disabled,onClick:function(Be){D.onToggleDetailPanel(D.path,ke.render),Be.stopPropagation()}},De),ke.tooltip&&(De=d.default.createElement(o.default,{key:"key-detail-panel-"+Ae,title:ke.tooltip},De)),De}))):null},de=function(){return D.data.tableData.childRows&&D.data.tableData.childRows.length>0?d.default.createElement(f.default,{size:Oe,padding:"none",key:"key-tree-data-column",style:{width:48+9*(D.treeDataMaxLevel-2)}},d.default.createElement(a.default,{"aria-label":"Detail panel visibility toggle",size:Oe,style:T({transition:"all ease 200ms",marginLeft:D.level*9},J(D.data.tableData.isTreeExpanded)),onClick:function(Ae){D.onTreeExpandChanged(D.path,D.data),Ae.stopPropagation()}},d.default.createElement(F.DetailPanel,null))):d.default.createElement(f.default,{padding:"none",key:"key-tree-data-column"})},xe=function(ke,Ae){var Ee={};return typeof R.rowStyle=="function"?Ee=T(T({},Ee),R.rowStyle(D.data,ke,Ae,D.hasAnyEditingRow)):R.rowStyle&&(Ee=T(T({},Ee),R.rowStyle)),(Q||Y)&&(Ee.cursor="pointer"),D.hasAnyEditingRow&&(Ee.opacity=Ee.opacity?Ee.opacity:.2),Ee},ue=Se();R.selection&&ue.splice(0,0,ye());var ge=m.rowActions(D);if(ge.length>0){if(R.actionsColumnIndex===-1)ue.push(ce(ge));else if(R.actionsColumnIndex>=0){var be=0;R.selection&&(be=1),ue.splice(R.actionsColumnIndex+be,0,ce(ge))}}return D.detailPanel&&(R.detailPanelColumnAlignment==="right"?ue.push(ne()):ue.splice(0,0,ne())),D.isTreeData&&ue.splice(0,0,de()),D.columns.filter(function(we){return we.tableData.groupOrder>-1}).forEach(function(we){ue.splice(0,0,d.default.createElement(f.default,{size:Oe,padding:"none",key:"key-group-cell"+we.tableData.id}))}),d.default.createElement(d.default.Fragment,null,d.default.createElement(c.default,(0,l.default)({ref:P,selected:W},X,{onClick:function(ke){ee&&ke.persist(),!W&&Te(ke)},hover:!!(Q||Y),style:xe(D.index,D.level),"data-testid":"mtablebodyrow"}),ue),d.default.createElement(p.MTableDetailPanel,{options:R,data:D.data,detailPanel:D.detailPanel,renderColumns:ue,size:Oe}),D.data.tableData.childRows&&D.data.tableData.isTreeExpanded&&D.data.tableData.childRows.map(function(we,ke){return we.tableData.editing?d.default.createElement(D.components.EditRow,{columns:re,components:D.components,data:we,icons:F,localization:O,getFieldValue:D.getFieldValue,key:ke,mode:we.tableData.editing,isTreeData:D.isTreeData,detailPanel:D.detailPanel,onEditingCanceled:N,onEditingApproved:E,errorState:D.errorState}):d.default.createElement(D.components.Row,(0,l.default)({},D,{data:we,index:ke,key:ke,level:D.level+1,path:[].concat((0,i.default)(D.path),[we.tableData.uuid]),onEditingCanceled:N,onEditingApproved:E,hasAnyEditingRow:D.hasAnyEditingRow,treeDataMaxLevel:G,errorState:D.errorState,cellEditable:H,onCellEditStarted:V,onCellEditFinished:te}))}))}M.defaultProps={actions:[],index:0,data:{},path:[],persistEvents:!1},M.propTypes={forwardedRef:h.default.element,actions:h.default.array,index:h.default.number.isRequired,data:h.default.object.isRequired,detailPanel:h.default.oneOfType([h.default.func,h.default.arrayOf(h.default.oneOfType([h.default.object,h.default.func]))]),hasAnyEditingRow:h.default.bool,onRowSelected:h.default.func,path:h.default.arrayOf(h.default.oneOfType([h.default.string,h.default.number])),persistEvents:h.default.bool,treeDataMaxLevel:h.default.number,getFieldValue:h.default.func.isRequired,columns:h.default.array,onToggleDetailPanel:h.default.func.isRequired,onRowClick:h.default.func,onRowDoubleClick:h.default.func,onEditingApproved:h.default.func,onEditingCanceled:h.default.func,errorState:h.default.oneOfType([h.default.object,h.default.bool])};var S=d.default.forwardRef(function(P,D){return d.default.createElement(M,(0,l.default)({},P,{forwardedRef:D}))});e.default=S}(lm)),lm}var sm={},qi={};const Bz=qn(yF);var A_;function zz(){if(A_)return qi;A_=1;var e=Rn;Object.defineProperty(qi,"__esModule",{value:!0}),qi.getCurrencyValue=o,qi.getEmptyValue=c,qi.getRenderValue=a,qi.isoDateRegex=void 0;var t=e($e),r=e(Bz),i=/^\d{4}-(0[1-9]|1[0-2])-([12]\d|0[1-9]|3[01])([T\s](([01]\d|2[0-3])\:[0-5]\d|24\:00)(\:[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3])\:?([0-5]\d)?)?)?$/;qi.isoDateRegex=i;function c(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof n=="function"?l.columnDef.emptyValue(l.rowData):n}function o(n,l){return n!==void 0?new Intl.NumberFormat(n.locale!==void 0?n.locale:"en-US",{style:"currency",currency:n.currencyCode!==void 0?n.currencyCode:"USD",minimumFractionDigits:n.minimumFractionDigits!==void 0?n.minimumFractionDigits:2,maximumFractionDigits:n.maximumFractionDigits!==void 0?n.maximumFractionDigits:2}).format(l!==void 0?l:0):new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(l!==void 0?l:0)}function a(n,l,f){var s=n.columnDef.dateSetting&&n.columnDef.dateSetting.locale?n.columnDef.dateSetting.locale:void 0;if(n.columnDef.emptyValue!==void 0&&(n.value===void 0||n.value===null))return c(n.columnDef.emptyValue,n);if(n.rowData===void 0&&n.value&&n.columnDef.groupRender)return n.columnDef.groupRender(n.value);if(n.columnDef.render&&n.rowData)return n.columnDef.render(n.rowData);if(n.columnDef.type==="boolean"){var u={textAlign:"left",verticalAlign:"middle",width:48};return n.value?t.default.createElement(l.Check,{style:u}):t.default.createElement(l.ThirdStateCheck,{style:u})}else{if(n.columnDef.type==="date")return n.value instanceof Date?n.value.toLocaleDateString(s):i.exec(n.value)?(0,r.default)(n.value).toLocaleDateString(s):n.value;if(n.columnDef.type==="time")return n.value instanceof Date?n.value.toLocaleTimeString():i.exec(n.value)?(0,r.default)(n.value).toLocaleTimeString(s):n.value;if(n.columnDef.type==="datetime")return n.value instanceof Date?n.value.toLocaleString():i.exec(n.value)?(0,r.default)(n.value).toLocaleString(s):n.value;if(n.columnDef.type==="currency")return o(n.columnDef.currencySetting,n.value);if(typeof n.value=="boolean")return n.value.toString()}return n.value}return qi}var Wi={},P_;function Wd(){if(P_)return Wi;P_=1;var e=Rn,t=Ur();Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.getStyle=s,Wi.setObjectByKey=Wi.selectFromObject=void 0;var r=e(Jr()),i=o(Li());function c(u){if(typeof WeakMap!="function")return null;var d=new WeakMap,h=new WeakMap;return(c=function(m){return m?h:d})(u)}function o(u,d){if(u&&u.__esModule)return u;if(u===null||t(u)!=="object"&&typeof u!="function")return{default:u};var h=c(d);if(h&&h.has(u))return h.get(u);var p={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in u)if(y!=="default"&&Object.prototype.hasOwnProperty.call(u,y)){var v=m?Object.getOwnPropertyDescriptor(u,y):null;v&&(v.get||v.set)?Object.defineProperty(p,y,v):p[y]=u[y]}return p.default=u,h&&h.set(u,p),p}function a(u,d){var h=Object.keys(u);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(u);d&&(p=p.filter(function(m){return Object.getOwnPropertyDescriptor(u,m).enumerable})),h.push.apply(h,p)}return h}function n(u){for(var d=1;d-1)}).sort(function(U,Q){return U.tableData.columnOrder-Q.tableData.columnOrder}).map(function(U,Q){var Y=T.getFieldValue(D.data,U,!1),Z=function(Se,Oe){var Me={color:"inherit"};return typeof Se.cellStyle=="function"?Me=_(_({},Me),Se.cellStyle(Oe,T.data)):Me=_(_({},Me),Se.cellStyle),Se.disableClick&&(Me.cursor="default"),_({},Me)};Q===0&&24+T.level*20;var X=!1;if(U.editable===void 0&&(X=!0),U.editable==="always"&&(X=!0),U.editable==="onAdd"&&T.mode==="add"&&(X=!0),U.editable==="onUpdate"&&T.mode==="update"&&(X=!0),typeof U.editable=="function"&&(X=U.editable(U,T.data)),!U.field||!X){var re=T.getFieldValue(D.data,U);return n.default.createElement(T.components.Cell,{size:V,icons:M,columnDef:U,value:re,key:U.tableData.id,rowData:T.data,style:Z(U,Y)})}else{var ie=U.editComponent,le=(0,c.default)(U,y),se=ie||T.components.EditField,pe=(0,m.validateInput)(U,D.data);return te===-1&&(te=Q),n.default.createElement(l.default,{size:V,key:U.tableData.id,align:["numeric"].indexOf(U.type)!==-1?"right":"left",style:Z(U,Y)},n.default.createElement(se,{key:U.tableData.id,columnDef:le,autoFocus:te===Q,value:Y,error:!pe.isValid,helperText:pe.helperText,locale:T.localization.dateTimePickerLocalization,rowData:D.data,onChange:function(Se){var Oe=_({},D.data);(0,d.setObjectByKey)(Oe,U.field,Se),O({data:Oe}),T.onBulkEditRowChanged&&T.onBulkEditRowChanged(T.data,Oe)},onRowDataChange:function(Se){O({data:Se}),T.onBulkEditRowChanged&&T.onBulkEditRowChanged(T.data,Se)}}))}});return ee}var F=T.columns.every(function(V){var te=(0,m.validateInput)(V,D.data);return te.isValid}),A=function(){F&&T.onEditingApproved(T.mode,D.data,T.data)};function z(){if(T.mode!=="bulk"){var V=p.elementSize(T),te=[{icon:M.Check,tooltip:T.localization.saveTooltip,disabled:!F,onClick:A},{icon:M.Clear,tooltip:T.localization.cancelTooltip,onClick:function(){T.onEditingCanceled(T.mode,T.data)}}];return n.default.createElement(l.default,{size:V,padding:"none",key:"key-actions-column",style:_({width:42*te.length,padding:"0px 5px"},S.editCellStyle)},n.default.createElement(T.components.Actions,{data:T.data,actions:te,components:T.components,size:V}))}}function B(){var V={borderBottom:"1px solid red"};return V}var $=function(te){te.keyCode===13&&te.target.type!=="textarea"&&te.target.type!=="button"||te.keyCode===13&&te.target.type==="textarea"&&te.shiftKey?A():te.keyCode===27&&T.onEditingCanceled(T.mode,T.data)},j=p.elementSize(T),N;if(T.mode==="add"||T.mode==="update"||T.mode==="bulk")N=R();else{var E=T.columns.filter(function(V){return!V.hidden&&!(V.tableData.groupOrder>-1)}).length;N=[n.default.createElement(l.default,{size:j,padding:S.actionsColumnIndex===0?"none":void 0,key:"key-edit-cell",colSpan:E},n.default.createElement(s.default,{variant:"h6"},T.localization.deleteText))]}if(S.selection&&N.splice(0,0,n.default.createElement(l.default,{padding:"none",key:"key-selection-cell"})),T.isTreeData&&N.splice(0,0,n.default.createElement(l.default,{padding:"none",key:"key-tree-data-cell"})),S.actionsColumnIndex===-1)N.push(z());else if(S.actionsColumnIndex>=0){var W=0;S.selection&&(W=1),T.isTreeData&&(W=1,S.selection&&N.splice(1,1)),N.splice(S.actionsColumnIndex+W,0,z())}if(T.detailPanel&&S.showDetailPanelIcon!==!1&&T.mode!=="bulk"){var G=S.detailPanelColumnAlignment,L=G==="left"?0:N.length;N.splice(L,0,n.default.createElement(l.default,{padding:"none",key:"key-detail-panel-cell"}))}T.columns.filter(function(V){return V.tableData.groupOrder>-1}).forEach(function(V){N.splice(0,0,n.default.createElement(l.default,{padding:"none",key:"key-group-cell"+V.tableData.id}))}),T.detailPanel,T.isTreeData,T.onRowClick,T.onRowSelected,T.onTreeExpandChanged,T.onToggleDetailPanel,T.onEditingApproved,T.onEditingCanceled,T.getFieldValue,T.components,T.columns,T.errorState,T.onBulkEditRowChanged,T.bulkEditChangedRows,T.scrollWidth;var q=T.forwardedRef,H=(0,c.default)(T,v);return n.default.createElement(f.default,(0,i.default)({onKeyDown:$},H,{ref:q,style:B()}),N)}w.defaultProps={actions:[],index:0,options:{},path:[],onBulkEditRowChanged:function(){}},w.propTypes={actions:u.default.array,index:u.default.number.isRequired,data:u.default.object,detailPanel:u.default.oneOfType([u.default.func,u.default.arrayOf(u.default.oneOfType([u.default.object,u.default.func]))]),onRowSelected:u.default.func,path:u.default.arrayOf(u.default.number),columns:u.default.array,onRowClick:u.default.func,onEditingApproved:u.default.func,onEditingCanceled:u.default.func,localization:u.default.object,getFieldValue:u.default.func,errorState:u.default.oneOfType([u.default.object,u.default.bool]),onBulkEditRowChanged:u.default.func};var k=n.default.forwardRef(function(M,S){return n.default.createElement(w,(0,i.default)({},M,{forwardedRef:S}))});e.default=k}(cm)),cm}var fm={},dm={},co={},L_;function a1(){if(L_)return co;L_=1;var e=Rn;Object.defineProperty(co,"__esModule",{value:!0}),co.getLocalizedFilterPlaceHolder=co.getLocalizationData=void 0;var t=e(Jr()),r=Z4();function i(n,l){var f=Object.keys(n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);l&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),f.push.apply(f,s)}return f}function c(n){for(var l=1;l-1}),u.default.createElement(n.default,{primary:_.lookup[D]}))})))}var b=u.default.forwardRef(function(_,w){return u.default.createElement(g,(0,i.default)({},_,{forwardedRef:w}))});e.default=b}(hm)),hm}var pm={};const X4=qn(z9);var N_;function Xz(){return N_||(N_=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(hr()),i=t(Ld),c=t(X4),o=t(Wo),a=t($e),n=a1();function l(s){var u,d,h=s.columnDef,p=s.icons,m=s.localization,y=s.hideFilterIcons,v=s.onFilterChanged,g=s.forwardedRef,b=(0,n.getLocalizationData)(m),x=p.Filter;return a.default.createElement(i.default,{ref:g,style:h.type==="numeric"?{float:(u=h.align)!==null&&u!==void 0?u:"right"}:{float:(d=h.align)!==null&&d!==void 0?d:"left"},type:h.type==="numeric"?"number":"search",value:h.tableData.filterValue||"",placeholder:(0,n.getLocalizedFilterPlaceHolder)(h,m),onChange:function(w){v(h.tableData.id,w.target.value)},inputProps:{"aria-label":"filter data by ".concat(h.title)},InputProps:y||h.hideFilterIcon?void 0:{startAdornment:a.default.createElement(c.default,{position:"start"},a.default.createElement(o.default,{title:b.filterTooltip},a.default.createElement(x,null)))}})}var f=a.default.forwardRef(function(u,d){return a.default.createElement(l,(0,r.default)({},u,{forwardedRef:d}))});e.default=f}(pm)),pm}var gm={},j_;function Zz(){return j_||(j_=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(hr()),i=t(qo),c=t($e);function o(n){var l=n.forwardedRef,f=n.columnDef,s=n.onFilterChanged;return c.default.createElement(i.default,{ref:l,inputProps:{"aria-label":"Filter of ".concat(f.title)},indeterminate:f.tableData.filterValue===void 0,checked:f.tableData.filterValue==="checked",onChange:function(){var d;f.tableData.filterValue===void 0?d="checked":f.tableData.filterValue==="checked"&&(d="unchecked"),s(f.tableData.id,d)}})}var a=c.default.forwardRef(function(l,f){return c.default.createElement(o,(0,r.default)({},l,{forwardedRef:f}))});e.default=a}(gm)),gm}var mm={},$_;function Kz(){return $_||($_=1,function(e){var t=Rn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(hr()),c=a($e);function o(f){if(typeof WeakMap!="function")return null;var s=new WeakMap,u=new WeakMap;return(o=function(h){return h?u:s})(f)}function a(f,s){if(f&&f.__esModule)return f;if(f===null||r(f)!=="object"&&typeof f!="function")return{default:f};var u=o(s);if(u&&u.has(f))return u.get(f);var d={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in f)if(p!=="default"&&Object.prototype.hasOwnProperty.call(f,p)){var m=h?Object.getOwnPropertyDescriptor(f,p):null;m&&(m.get||m.set)?Object.defineProperty(d,p,m):d[p]=f[p]}return d.default=f,u&&u.set(f,d),d}function n(f){var s=f.columnDef,u=f.onFilterChanged,d=f.forwardedRef;return(0,c.createElement)(s.filterComponent,{columnDef:s,onFilterChanged:u,forwardedRef:d})}var l=c.default.forwardRef(function(s,u){return c.default.createElement(n,(0,i.default)({},s,{forwardedRef:u}))});e.default=l}(mm)),mm}var B_;function Z4(){return B_||(B_=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.MTableFilterRow=y,e.default=void 0;var r=t(Pi),i=t(mi),c=t(Jr()),o=t(hr()),a=t($e),n=t(Or),l=t(Hz()),f=t(Gz()),s=t(Xz()),u=t(Zz()),d=t(Kz()),h=tc();function p(g,b){var x=Object.keys(g);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(g);b&&(_=_.filter(function(w){return Object.getOwnPropertyDescriptor(g,w).enumerable})),x.push.apply(x,_)}return x}function m(g){for(var b=1;b-1)}).sort(function(T,M){return T.tableData.columnOrder-M.tableData.columnOrder}).map(function(T){return a.default.createElement(i.default,{key:T.tableData.id,style:m(m({},b.filterCellStyle),T.filterCellStyle)},x(T))});if(b.selection&&_.splice(0,0,a.default.createElement(i.default,{padding:"none",key:"key-selection-column"})),g.hasActions)if(b.actionsColumnIndex===-1)_.push(a.default.createElement(i.default,{key:"key-action-column"}));else{var w=0;g.selection&&(w=1),_.splice(b.actionsColumnIndex+w,0,a.default.createElement(i.default,{key:"key-action-column"}))}if(g.hasDetailPanel&&b.showDetailPanelIcon){var k=b.detailPanelColumnAlignment==="left"?0:_.length;_.splice(k,0,a.default.createElement(i.default,{padding:"none",key:"key-detail-panel-column"}))}return g.isTreeData>0&&_.splice(0,0,a.default.createElement(i.default,{padding:"none",key:"key-tree-data-filter"})),g.columns.filter(function(T){return T.tableData.groupOrder>-1}).forEach(function(T){_.splice(0,0,a.default.createElement(i.default,{padding:"checkbox",key:"key-group-filter"+T.tableData.id}))}),a.default.createElement(r.default,{id:"m--table--filter--row",ref:g.forwardedRef,style:m({height:10},b.filterRowStyle)},_)}y.defaultProps={columns:[],hasActions:!1,localization:{filterTooltip:"Filter"}},y.propTypes={columns:n.default.array.isRequired,hasDetailPanel:n.default.bool.isRequired,isTreeData:n.default.bool.isRequired,onFilterChanged:n.default.func.isRequired,hasActions:n.default.bool,localization:n.default.object};var v=a.default.forwardRef(function(b,x){return a.default.createElement(y,(0,o.default)({},b,{forwardedRef:x}))});e.default=v}(fm)),fm}var vm={};const K4=qn(q9),Jz=qn(W9);function z_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),r.push.apply(r,i)}return r}function q_(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ma(1));return r(J4)(e,t)}if(typeof e!="function")throw new Error(Ma(2));var c=e,o=t,a=[],n=a,l=!1;function f(){n===a&&(n=a.slice())}function s(){if(l)throw new Error(Ma(3));return o}function u(m){if(typeof m!="function")throw new Error(Ma(4));if(l)throw new Error(Ma(5));var y=!0;return f(),n.push(m),function(){if(y){if(l)throw new Error(Ma(6));y=!1,f();var g=n.indexOf(m);n.splice(g,1),a=null}}}function d(m){if(!Qz(m))throw new Error(Ma(7));if(typeof m.type>"u")throw new Error(Ma(8));if(l)throw new Error(Ma(9));try{l=!0,o=c(o,m)}finally{l=!1}for(var y=a=n,v=0;ve6=e,rq=()=>e6,Y_=Symbol.for("react-redux-context"),G_=typeof globalThis<"u"?globalThis:{};function aq(){var e;if(!$e.createContext)return{};const t=(e=G_[Y_])!=null?e:G_[Y_]=new Map;let r=t.get($e.createContext);return r||(r=$e.createContext(null),t.set($e.createContext,r)),r}const t6=aq(),iq=()=>{throw new Error("uSES not initialized!")},oq=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function lq(e,t,r,i,{areStatesEqual:c,areOwnPropsEqual:o,areStatePropsEqual:a}){let n=!1,l,f,s,u,d;function h(g,b){return l=g,f=b,s=e(l,f),u=t(i,f),d=r(s,u,f),n=!0,d}function p(){return s=e(l,f),t.dependsOnOwnProps&&(u=t(i,f)),d=r(s,u,f),d}function m(){return e.dependsOnOwnProps&&(s=e(l,f)),t.dependsOnOwnProps&&(u=t(i,f)),d=r(s,u,f),d}function y(){const g=e(l,f),b=!a(g,s);return s=g,b&&(d=r(s,u,f)),d}function v(g,b){const x=!o(b,f),_=!c(g,l,b,f);return l=g,f=b,x&&_?p():x?m():_?y():d}return function(b,x){return n?v(b,x):h(b,x)}}function sq(e,t){let{initMapStateToProps:r,initMapDispatchToProps:i,initMergeProps:c}=t,o=Vn(t,oq);const a=r(e,o),n=i(e,o),l=c(e,o);return lq(a,n,l,e,o)}function uq(e,t){const r={};for(const i in e){const c=e[i];typeof c=="function"&&(r[i]=(...o)=>t(c(...o)))}return r}function j0(e){return function(r){const i=e(r);function c(){return i}return c.dependsOnOwnProps=!1,c}}function X_(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function n6(e,t){return function(i,{displayName:c}){const o=function(n,l){return o.dependsOnOwnProps?o.mapToProps(n,l):o.mapToProps(n,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(n,l){o.mapToProps=e,o.dependsOnOwnProps=X_(e);let f=o(n,l);return typeof f=="function"&&(o.mapToProps=f,o.dependsOnOwnProps=X_(f),f=o(n,l)),f},o}}function i1(e,t){return(r,i)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${i.wrappedComponentName}.`)}}function cq(e){return e&&typeof e=="object"?j0(t=>uq(e,t)):e?typeof e=="function"?n6(e):i1(e,"mapDispatchToProps"):j0(t=>({dispatch:t}))}function fq(e){return e?typeof e=="function"?n6(e):i1(e,"mapStateToProps"):j0(()=>({}))}function dq(e,t,r){return Gt({},r,e,t)}function hq(e){return function(r,{displayName:i,areMergedPropsEqual:c}){let o=!1,a;return function(l,f,s){const u=e(l,f,s);return o?c(u,a)||(a=u):(o=!0,a=u),a}}}function pq(e){return e?typeof e=="function"?hq(e):i1(e,"mergeProps"):()=>dq}function gq(){const e=rq();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let i=t;for(;i;)i.callback(),i=i.next})},get(){let i=[],c=t;for(;c;)i.push(c),c=c.next;return i},subscribe(i){let c=!0,o=r={callback:i,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){!c||t===null||(c=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}const Z_={notify(){},get:()=>[]};function r6(e,t){let r,i=Z_,c=0,o=!1;function a(m){s();const y=i.subscribe(m);let v=!1;return()=>{v||(v=!0,y(),u())}}function n(){i.notify()}function l(){p.onStateChange&&p.onStateChange()}function f(){return o}function s(){c++,r||(r=t?t.addNestedSub(l):e.subscribe(l),i=gq())}function u(){c--,r&&c===0&&(r(),r=void 0,i.clear(),i=Z_)}function d(){o||(o=!0,s())}function h(){o&&(o=!1,u())}const p={addNestedSub:a,notifyNestedSubs:n,handleChangeWrapper:l,isSubscribed:f,trySubscribe:d,tryUnsubscribe:h,getListeners:()=>i};return p}const mq=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",$f=mq?$e.useLayoutEffect:$e.useEffect;function K_(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function bm(e,t){if(K_(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(let c=0;c{a6=e},bq=[null,null];function xq(e,t,r){$f(()=>e(...t),r)}function wq(e,t,r,i,c,o){e.current=i,r.current=!1,c.current&&(c.current=null,o())}function _q(e,t,r,i,c,o,a,n,l,f,s){if(!e)return()=>{};let u=!1,d=null;const h=()=>{if(u||!n.current)return;const m=t.getState();let y,v;try{y=i(m,c.current)}catch(g){v=g,d=g}v||(d=null),y===o.current?a.current||f():(o.current=y,l.current=y,a.current=!0,s())};return r.onStateChange=h,r.trySubscribe(),h(),()=>{if(u=!0,r.tryUnsubscribe(),r.onStateChange=null,d)throw d}}function Tq(e,t){return e===t}function i6(e,t,r,{pure:i,areStatesEqual:c=Tq,areOwnPropsEqual:o=bm,areStatePropsEqual:a=bm,areMergedPropsEqual:n=bm,forwardRef:l=!1,context:f=t6}={}){const s=f,u=fq(e),d=cq(t),h=pq(r),p=!!e;return y=>{const v=y.displayName||y.name||"Component",g=`Connect(${v})`,b={shouldHandleStateChanges:p,displayName:g,wrappedComponentName:v,WrappedComponent:y,initMapStateToProps:u,initMapDispatchToProps:d,initMergeProps:h,areStatesEqual:c,areStatePropsEqual:a,areOwnPropsEqual:o,areMergedPropsEqual:n};function x(k){const[T,M,S]=$e.useMemo(()=>{const{reactReduxForwardedRef:U}=k,Q=Vn(k,vq);return[k.context,U,Q]},[k]),C=$e.useMemo(()=>T&&T.Consumer&&U9.isContextConsumer($e.createElement(T.Consumer,null))?T:s,[T,s]),P=$e.useContext(C),D=!!k.store&&!!k.store.getState&&!!k.store.dispatch,O=!!P&&!!P.store,R=D?k.store:P.store,F=O?P.getServerState:R.getState,A=$e.useMemo(()=>sq(R.dispatch,b),[R]),[z,B]=$e.useMemo(()=>{if(!p)return bq;const U=r6(R,D?void 0:P.subscription),Q=U.notifyNestedSubs.bind(U);return[U,Q]},[R,D,P]),$=$e.useMemo(()=>D?P:Gt({},P,{subscription:z}),[D,P,z]),j=$e.useRef(),N=$e.useRef(S),E=$e.useRef(),W=$e.useRef(!1);$e.useRef(!1);const G=$e.useRef(!1),L=$e.useRef();$f(()=>(G.current=!0,()=>{G.current=!1}),[]);const q=$e.useMemo(()=>()=>E.current&&S===N.current?E.current:A(R.getState(),S),[R,S]),H=$e.useMemo(()=>Q=>z?_q(p,R,z,A,N,j,W,G,E,B,Q):()=>{},[z]);xq(wq,[N,j,W,S,E,B]);let V;try{V=a6(H,q,F?()=>A(F(),S):q)}catch(U){throw L.current&&(U.message+=` + */const Az=Object.freeze(Object.defineProperty({__proto__:null,CalendarPicker:C4,CalendarPickerSkeleton:s$,ClockPicker:L4,DEFAULT_LOCALE:l4,DatePicker:DB,DateTimePicker:oz,DateTimePickerTabs:zd,DesktopDatePicker:B4,DesktopDateTimePicker:W4,DesktopTimePicker:H4,LocalizationProvider:EN,MobileDatePicker:z4,MobileDateTimePicker:U4,MobileTimePicker:V4,MonthPicker:u4,MuiPickersAdapterContext:Ey,PickerStaticWrapper:qd,PickersDay:g4,StaticDatePicker:_z,StaticDateTimePicker:kz,StaticTimePicker:Sz,TimePicker:Oz,YearPicker:M4,beBY:ON,calendarPickerClasses:Zj,calendarPickerSkeletonClasses:n$,clockClasses:_$,clockNumberClasses:wu,clockPickerClasses:N$,clockPointerClasses:g$,csCZ:QF,datePickerToolbarClasses:X$,dateTimePickerTabsClasses:JB,dateTimePickerToolbarClasses:zB,dayPickerClasses:aj,deDE:qF,enUS:iN,esES:HF,faIR:YF,fiFI:ZF,frFR:nN,getCalendarPickerSkeletonUtilityClass:O4,getCalendarPickerUtilityClass:S4,getClockPickerUtilityClass:R4,getMonthPickerUtilityClass:s4,getPickersDayUtilityClass:d4,getYearPickerUtilityClass:k4,huHU:aN,isIS:xN,itIT:dN,jaJP:_N,koKR:yN,monthPickerClasses:RN,nbNO:lN,nlNL:LF,pickersCalendarHeaderClasses:Pj,pickersDayClasses:xu,pickersFadeTransitionGroupClasses:qN,pickersMonthClasses:I0,pickersSlideTransitionClasses:sa,pickersYearClasses:_o,plPL:FF,ptBR:jF,ruRU:DN,svSE:uN,timePickerToolbarClasses:vl,trTR:BF,ukUA:kN,urPK:SN,yearPickerClasses:Hj,zhCN:gN},Symbol.toStringTag,{value:"Module"})),Y4=qn(Az);var m_;function Pz(){return m_||(m_=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(hr()),i=t(Bl()),u=t(Ed()),o=t(Rd()),a=t(ky()),n=t(Sy()),l=t(Cy()),f=t($e),s=t(Ld),c=t(qo),d=t(LS),h=t(Oy),p=t(IS),m=t(xR),y=t(wR),v=t(_R),g=n4,b=Y4,x=t(Or),_=["columnDef","rowData","onRowDataChange","errorState","autoFocus","onBulkEditRowChanged","scrollWidth"],w=["helperText","error"],k=["helperText","error"];function T(P){var D=M();return function(){var R=(0,l.default)(P),F;if(D){var A=(0,l.default)(this).constructor;F=Reflect.construct(R,arguments,A)}else F=R.apply(this,arguments);return(0,n.default)(this,F)}}function M(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var S=function(P){(0,a.default)(O,P);var D=T(O);function O(){return(0,u.default)(this,O),D.apply(this,arguments)}return(0,o.default)(O,[{key:"getProps",value:function(){var F=this.props;F.columnDef,F.rowData,F.onRowDataChange,F.errorState,F.autoFocus,F.onBulkEditRowChanged,F.scrollWidth;var A=(0,i.default)(F,_);return A}},{key:"renderLookupField",value:function(){var F=this,A=this.getProps(),z=A.helperText,B=A.error,$=(0,i.default)(A,w);return f.default.createElement(p.default,{error:!!B},f.default.createElement(d.default,(0,r.default)({},$,{value:this.props.value===void 0?"":this.props.value,onChange:function(N){return F.props.onChange(N.target.value)},style:{fontSize:13},inputProps:{autoFocus:this.props.autoFocus},SelectDisplayProps:{"aria-label":this.props.columnDef.title}}),Object.keys(this.props.columnDef.lookup).map(function(j){return f.default.createElement(h.default,{key:j,value:j},F.props.columnDef.lookup[j])})),!!z&&f.default.createElement(m.default,null,z))}},{key:"renderBooleanField",value:function(){var F=this,A=this.getProps(),z=A.helperText,B=A.error,$=(0,i.default)(A,k);return f.default.createElement(p.default,{error:!!B,component:"fieldset"},f.default.createElement(y.default,null,f.default.createElement(v.default,{label:"",control:f.default.createElement(c.default,(0,r.default)({},$,{value:String(this.props.value),checked:!!this.props.value,onChange:function(N){return F.props.onChange(N.target.checked)},style:{padding:0,width:24,marginLeft:9},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title}}))})),f.default.createElement(m.default,null,z))}},{key:"renderDateField",value:function(){var F=this.props.columnDef.dateSetting&&this.props.columnDef.dateSetting.format?this.props.columnDef.dateSetting.format:"dd.MM.yyyy";return f.default.createElement(b.LocalizationProvider,{dateAdapter:g.AdapterDateFns,locale:this.props.locale},f.default.createElement(b.DatePicker,(0,r.default)({},this.getProps(),{renderInput:function(z){return f.default.createElement(s.default,z)},format:F,value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderTimeField",value:function(){return f.default.createElement(b.LocalizationProvider,{dateAdapter:g.AdapterDateFns,locale:this.props.locale},f.default.createElement(b.TimePicker,(0,r.default)({},this.getProps(),{renderInput:function(A){return f.default.createElement(s.default,A)},format:"HH:mm:ss",value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderDateTimeField",value:function(){return f.default.createElement(b.LocalizationProvider,{dateAdapter:g.AdapterDateFns,locale:this.props.locale},f.default.createElement(b.DateTimePicker,(0,r.default)({},this.getProps(),{renderInput:function(A){return f.default.createElement(s.default,A)},format:"dd.MM.yyyy HH:mm:ss",value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderTextField",value:function(){var F=this;return f.default.createElement(s.default,(0,r.default)({},this.getProps(),{variant:"standard",fullWidth:!0,type:this.props.columnDef.type==="numeric"?"number":"text",placeholder:this.props.columnDef.editPlaceholder||this.props.columnDef.title,value:this.props.value===void 0?"":this.props.value,onChange:function(z){return F.props.onChange(F.props.columnDef.type==="numeric"?z.target.valueAsNumber:z.target.value)},InputProps:{style:{minWidth:50,fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title,style:this.props.columnDef.type==="numeric"?{textAlign:"right"}:{}}}))}},{key:"renderCurrencyField",value:function(){var F=this;return f.default.createElement(s.default,(0,r.default)({},this.getProps(),{variant:"standard",placeholder:this.props.columnDef.editPlaceholder||this.props.columnDef.title,type:"number",value:this.props.value===void 0?"":this.props.value,onChange:function(z){var B=z.target.valueAsNumber;return!B&&B!==0&&(B=void 0),F.props.onChange(B)},InputProps:{style:{fontSize:13,textAlign:"right"}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title,style:{textAlign:"right"}},onKeyDown:this.props.onKeyDown}))}},{key:"render",value:function(){var F="ok";return this.props.columnDef.editComponent?F=this.props.columnDef.editComponent(this.props):this.props.columnDef.lookup?F=this.renderLookupField():this.props.columnDef.type==="boolean"?F=this.renderBooleanField():this.props.columnDef.type==="date"?F=this.renderDateField():this.props.columnDef.type==="time"?F=this.renderTimeField():this.props.columnDef.type==="datetime"?F=this.renderDateTimeField():this.props.columnDef.type==="currency"?F=this.renderCurrencyField():F=this.renderTextField(),F}}]),O}(f.default.Component);S.propTypes={value:x.default.any,onChange:x.default.func.isRequired,columnDef:x.default.object.isRequired,locale:x.default.object,rowData:x.default.object,onRowDataChange:x.default.func,errorState:x.default.func,autoFocus:x.default.bool,onBulkEditRowChanged:x.default.func,scrollWidth:x.default.number,onKeyDown:x.default.func};var C=S;e.default=C}($g)),$g}var em={},Vc={},v_;function G4(){if(v_)return Vc;v_=1;var e=Rn;Object.defineProperty(Vc,"__esModule",{value:!0}),Vc.validateInput=o;var t=e(Jr()),r=e(Ur());function i(a,n){var l=Object.keys(a);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);n&&(f=f.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),l.push.apply(l,f)}return l}function u(a){for(var n=1;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var g=function(x){(0,o.default)(w,x);var _=y(w);function w(k){var T;return(0,r.default)(this,w),T=_.call(this,k),(0,l.default)((0,u.default)(T),"getStyle",function(){var M={boxShadow:"2px 0px 15px rgba(125,147,178,.25)",color:"inherit",width:T.props.columnDef.tableData.width,boxSizing:"border-box",fontSize:"inherit",fontFamily:"inherit",fontWeight:"inherit",padding:"0 16px"};return typeof T.props.columnDef.cellStyle=="function"?M=m(m({},M),T.props.columnDef.cellStyle(T.state.value,T.props.rowData)):M=m(m({},M),T.props.columnDef.cellStyle),typeof T.props.cellEditable.cellStyle=="function"?M=m(m({},M),T.props.cellEditable.cellStyle(T.state.value,T.props.rowData,T.props.columnDef)):M=m(m({},M),T.props.cellEditable.cellStyle),M}),(0,l.default)((0,u.default)(T),"handleKeyDown",function(M){M.keyCode===13?T.onApprove():M.keyCode===27&&T.onCancel()}),(0,l.default)((0,u.default)(T),"onApprove",function(){var M=(0,h.validateInput)(T.props.columnDef,T.state.value).isValid;M&&T.setState({isLoading:!0},function(){T.props.cellEditable.onCellEditApproved(T.state.value,T.props.getFieldValue(T.props.rowData,T.props.columnDef),T.props.rowData,T.props.columnDef).then(function(){T.setState({isLoading:!1}),T.props.onCellEditFinished(T.props.rowData,T.props.columnDef)}).catch(function(S){T.setState({isLoading:!1})})})}),(0,l.default)((0,u.default)(T),"onCancel",function(){T.props.onCellEditFinished(T.props.rowData,T.props.columnDef)}),T.state={errorState:{isValid:!0,helperText:""},isLoading:!1,value:k.getFieldValue(T.props.rowData,T.props.columnDef,!1)},T}return(0,i.default)(w,[{key:"renderActions",value:function(){if(this.state.isLoading)return f.default.createElement("div",{style:{display:"flex",justifyContent:"center",width:60}},f.default.createElement(d.default,{size:20}));var T=[{icon:this.props.icons.Check,tooltip:this.props.localization.saveTooltip,onClick:this.onApprove,disabled:this.state.isLoading||!this.state.errorState.isValid},{icon:this.props.icons.Clear,tooltip:this.props.localization.cancelTooltip,onClick:this.onCancel,disabled:this.state.isLoading}];return f.default.createElement(this.props.components.Actions,{actions:T,components:this.props.components,size:"small"})}},{key:"handleChange",value:function(T){var M=(0,h.validateInput)(this.props.columnDef,T);this.setState({errorState:M,value:T})}},{key:"render",value:function(){var T=this;return f.default.createElement(c.default,{size:this.props.size,style:this.getStyle(),padding:"none"},f.default.createElement("div",{style:{display:"flex",alignItems:"center"}},f.default.createElement("div",{style:{flex:1,marginRight:4}},f.default.createElement(this.props.components.EditField,{columnDef:this.props.columnDef,value:this.state.value,error:!this.state.errorState.isValid,helperText:this.state.errorState.helperText,onChange:function(S){return T.handleChange(S)},onKeyDown:this.handleKeyDown,disabled:this.state.isLoading,rowData:this.props.rowData,autoFocus:!0})),this.renderActions()))}}]),w}(f.default.Component);g.defaultProps={columnDef:{},localization:{saveTooltip:"Save",cancelTooltip:"Cancel"}},g.propTypes={cellEditable:s.default.object.isRequired,columnDef:s.default.object.isRequired,components:s.default.object.isRequired,errorState:s.default.oneOfType([s.default.object,s.default.bool]),icons:s.default.object.isRequired,localization:s.default.object.isRequired,onCellEditFinished:s.default.func.isRequired,rowData:s.default.object.isRequired,size:s.default.string,getFieldValue:s.default.func.isRequired};var b=g;e.default=b}(em)),em}var tm={},nm={exports:{}},rm={exports:{}},b_;function Ez(){return b_||(b_=1,function(e){function t(r){if(Array.isArray(r))return r}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(rm)),rm.exports}var am={exports:{}},x_;function Rz(){return x_||(x_=1,function(e){function t(r,i){var u=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(u!=null){var o,a,n,l,f=[],s=!0,c=!1;try{if(n=(u=u.call(r)).next,i===0){if(Object(u)!==u)return;s=!1}else for(;!(s=(o=n.call(u)).done)&&(f.push(o.value),f.length!==i);s=!0);}catch(d){c=!0,a=d}finally{try{if(!s&&u.return!=null&&(l=u.return(),Object(l)!==l))return}finally{if(c)throw a}}return f}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(am)),am.exports}var im={exports:{}},w_;function Lz(){return w_||(w_=1,function(e){function t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(im)),im.exports}var __;function io(){return __||(__=1,function(e){var t=Ez(),r=Rz(),i=ES(),u=Lz();function o(a,n){return t(a)||r(a,n)||i(a,n)||u()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(nm)),nm.exports}const ql=qn(I9),Wo=qn(F9);var T_;function Iz(){return T_||(T_=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(hr()),i=t(Jr()),u=t(Ur()),o=t(io()),a=t($e),n=t(Or),l=t(Ty),f=t(ql),s=t(Wo);function c(m,y){var v=Object.keys(m);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(m);y&&(g=g.filter(function(b){return Object.getOwnPropertyDescriptor(m,b).enumerable})),v.push.apply(v,g)}return v}function d(m){for(var y=1;y0&&o.default.createElement(i.default,{colSpan:n.options.detailPanelOffset.left}),o.default.createElement(i.default,{size:n.size,colSpan:n.renderColumns.length-n.options.detailPanelOffset.left-n.options.detailPanelOffset.right,padding:"none"},o.default.createElement(r.default,{in:c,timeout:"auto",unmountOnExit:!0,mountOnEnter:!0,onExited:function(){y.current=void 0,m()}},g({rowData:n.data}))))}return Yc}var Zr={},S_;function Li(){if(S_)return Zr;S_=1;var e=Rn;Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.widthToNumber=Zr.selectionMaxWidth=Zr.rowActions=Zr.reducePercentsInCalc=Zr.parseFirstLastPageButtons=Zr.elementSize=Zr.baseIconSize=Zr.actionsColumnWidth=void 0;var t=e(Jr()),r=e(Ur());function i(h,p){var m=Object.keys(h);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(h);p&&(y=y.filter(function(v){return Object.getOwnPropertyDescriptor(h,v).enumerable})),m.push.apply(m,y)}return m}function u(h){for(var p=1;p1){var v=y[1];return p.replace(/\d*%/,"".concat(m*(v/100),"px"))}return p.replace(/\d*%/,"".concat(m,"px"))};Zr.reducePercentsInCalc=s;var c=function(p){return typeof p=="number"?p:!p||!p.match(/^\s*\d+(px)?\s*$/)?NaN:Number(p.replace(/px$/,""))};Zr.widthToNumber=c;var d=function(p,m){var y={first:!0,last:!0};return typeof p=="boolean"?y={first:p,last:p}:(0,r.default)(p)==="object"&&(y=u(u({},y),p)),m&&(y={first:y.last,last:y.first}),y};return Zr.parseFirstLastPageButtons=d,Zr}var Gc={},C_;function $z(){if(C_)return Gc;C_=1;var e=Rn;Object.defineProperty(Gc,"__esModule",{value:!0}),Gc.useDoubleClick=r;var t=e($e);function r(i,u){var o=t.default.useRef(0),a=t.default.useRef(null),n=t.default.useRef(null),l=t.default.useRef(null);t.default.useEffect(function(){n.current=u,l.current=i});var f=function(){clearTimeout(a.current),a.current=null,o.current=0},s=t.default.useCallback(function(c){var d=o.current+1===2,h=a.current;if(h&&d&&(f(),n.current&&n.current(c)),!h){o.current=o.current+1;var p=function(){f(),l.current&&l.current(c)};if(n.current){var m=setTimeout(p,250);a.current=m}else p()}},[]);return s}return Gc}var O_;function Bz(){return O_||(O_=1,function(e){var t=Rn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(zl()),u=t(Pi),o=t(Wo),a=t(ql),n=t(qo),l=t(hr()),f=t(mi),s=t(Jr()),c=t(Bl()),d=t($e),h=t(Or),p=jz(),m=w(Li()),y=$z(),v=Jd(),g=ei(),b=["forwardedRef"],x=["data","components","detailPanel","getFieldValue","isTreeData","onRowSelected","onRowEditStarted","onTreeExpandChanged","onToggleDetailPanel","onEditingCanceled","onEditingApproved","hasAnyEditingRow","treeDataMaxLevel","path","actions","errorState","cellEditable","onCellEditStarted","onCellEditFinished","persistEvents","scrollWidth","onRowClick","onRowDoubleClick","columns"];function _(C){if(typeof WeakMap!="function")return null;var P=new WeakMap,D=new WeakMap;return(_=function(R){return R?D:P})(C)}function w(C,P){if(C&&C.__esModule)return C;if(C===null||r(C)!=="object"&&typeof C!="function")return{default:C};var D=_(P);if(D&&D.has(C))return D.get(C);var O={},R=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var F in C)if(F!=="default"&&Object.prototype.hasOwnProperty.call(C,F)){var A=R?Object.getOwnPropertyDescriptor(C,F):null;A&&(A.get||A.set)?Object.defineProperty(O,F,A):O[F]=C[F]}return O.default=C,D&&D.set(C,O),O}function k(C,P){var D=Object.keys(C);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(C);P&&(O=O.filter(function(R){return Object.getOwnPropertyDescriptor(C,R).enumerable})),D.push.apply(D,O)}return D}function T(C){for(var P=1;P-1)}).sort(function(Ae,Ee){return Ae.tableData.columnOrder-Ee.tableData.columnOrder}).map(function(Ae){var Ee=D.getFieldValue(D.data,Ae);if(D.data.tableData.editCellList&&D.data.tableData.editCellList.find(function(Ie){return Ie.tableData.id===Ae.tableData.id}))return d.default.createElement(D.components.EditCell,{getFieldValue:D.getFieldValue,components:D.components,icons:F,localization:O,columnDef:Ae,size:Oe,key:"cell-"+D.data.tableData.id+"-"+Ae.tableData.id,rowData:D.data,cellEditable:D.cellEditable,onCellEditFinished:D.onCellEditFinished,scrollWidth:U});var De=Ae.editable!=="never"&&!!D.cellEditable;De&&D.cellEditable.isCellEditable&&(De=D.cellEditable.isCellEditable(D.data,Ae));var Re="cell-".concat(D.data.tableData.id,"-").concat(Ae.tableData.id);return d.default.createElement(D.components.Cell,{size:Oe,errorState:D.errorState,columnDef:T({cellStyle:R.cellStyle},Ae),value:Ee,key:Re,rowData:D.data,cellEditable:De,onCellEditStarted:D.onCellEditStarted,scrollWidth:U})});return ke},Oe=m.elementSize(A),Me=q.length*m.baseIconSize(A),ce=function(ke){return d.default.createElement(f.default,{size:Oe,padding:"none",key:"key-actions-column",style:T({width:Me,padding:"0px 5px",boxSizing:"border-box"},R.actionsCellStyle)},d.default.createElement(D.components.Actions,{data:D.data,actions:ke,components:D.components,size:Oe,disabled:D.hasAnyEditingRow}))},ye=function(){var ke=R.selectionProps||{};typeof ke=="function"&&(ke=ke(D.data));var Ae=m.selectionMaxWidth(A,D.treeDataMaxLevel)||0,Ee=Oe!=="medium"?{padding:"4px"}:void 0;return d.default.createElement(f.default,{size:Oe,padding:"none",key:"key-selection-column",style:{width:Ae}},d.default.createElement(n.default,(0,l.default)({size:Oe,checked:D.data.tableData.checked===!0,onClick:function(Re){return Re.stopPropagation()},value:D.data.tableData.id.toString(),onChange:function(Re){D.onRowSelected(Re,D.path,D.data)},style:Ee},ke)))},J=function(ke){return{transform:ke?"rotate(90deg)":"none"}},ne=function(){return R.showDetailPanelIcon?typeof D.detailPanel=="function"?d.default.createElement(f.default,{size:Oe,padding:"none",key:"key-detail-panel-column",style:T({width:42,textAlign:"center"},R.detailPanelColumnStyle)},d.default.createElement(a.default,{"aria-label":"Detail panel visibility toggle",size:Oe,style:T({transition:"all ease 200ms"},J(D.data.tableData.showDetailPanel)),onClick:function(Ae){D.onToggleDetailPanel(D.path,D.detailPanel),Ae.stopPropagation()}},d.default.createElement(F.DetailPanel,null))):d.default.createElement(f.default,{size:Oe,padding:"none",key:"key-detail-panel-column"},d.default.createElement("div",{style:T({width:42*D.detailPanel.length,textAlign:"center",display:"flex"},R.detailPanelColumnStyle)},D.detailPanel.map(function(ke,Ae){typeof ke=="function"&&(ke=ke(D.data));var Ee=(D.data.tableData.showDetailPanel||"").toString()===ke.render.toString(),De=d.default.createElement(F.DetailPanel,null),Re=!0;return Ee?ke.openIcon?(De=d.default.createElement(v.MTableCustomIcon,{icon:ke.openIcon,iconProps:ke.iconProps}),Re=!1):ke.icon&&(De=d.default.createElement(v.MTableCustomIcon,{icon:ke.icon,iconProps:ke.iconProps})):ke.icon&&(De=d.default.createElement(v.MTableCustomIcon,{icon:ke.icon,iconProps:ke.iconProps}),Re=!1),De=d.default.createElement(a.default,{"aria-label":"Detail panel visibility toggle",size:Oe,key:"key-detail-panel-"+Ae,style:T({transition:"all ease 200ms"},J(Re&&Ee)),disabled:ke.disabled,onClick:function(Be){D.onToggleDetailPanel(D.path,ke.render),Be.stopPropagation()}},De),ke.tooltip&&(De=d.default.createElement(o.default,{key:"key-detail-panel-"+Ae,title:ke.tooltip},De)),De}))):null},de=function(){return D.data.tableData.childRows&&D.data.tableData.childRows.length>0?d.default.createElement(f.default,{size:Oe,padding:"none",key:"key-tree-data-column",style:{width:48+9*(D.treeDataMaxLevel-2)}},d.default.createElement(a.default,{"aria-label":"Detail panel visibility toggle",size:Oe,style:T({transition:"all ease 200ms",marginLeft:D.level*9},J(D.data.tableData.isTreeExpanded)),onClick:function(Ae){D.onTreeExpandChanged(D.path,D.data),Ae.stopPropagation()}},d.default.createElement(F.DetailPanel,null))):d.default.createElement(f.default,{padding:"none",key:"key-tree-data-column"})},xe=function(ke,Ae){var Ee={};return typeof R.rowStyle=="function"?Ee=T(T({},Ee),R.rowStyle(D.data,ke,Ae,D.hasAnyEditingRow)):R.rowStyle&&(Ee=T(T({},Ee),R.rowStyle)),(Q||Y)&&(Ee.cursor="pointer"),D.hasAnyEditingRow&&(Ee.opacity=Ee.opacity?Ee.opacity:.2),Ee},ue=Se();R.selection&&ue.splice(0,0,ye());var ge=m.rowActions(D);if(ge.length>0){if(R.actionsColumnIndex===-1)ue.push(ce(ge));else if(R.actionsColumnIndex>=0){var be=0;R.selection&&(be=1),ue.splice(R.actionsColumnIndex+be,0,ce(ge))}}return D.detailPanel&&(R.detailPanelColumnAlignment==="right"?ue.push(ne()):ue.splice(0,0,ne())),D.isTreeData&&ue.splice(0,0,de()),D.columns.filter(function(we){return we.tableData.groupOrder>-1}).forEach(function(we){ue.splice(0,0,d.default.createElement(f.default,{size:Oe,padding:"none",key:"key-group-cell"+we.tableData.id}))}),d.default.createElement(d.default.Fragment,null,d.default.createElement(u.default,(0,l.default)({ref:P,selected:W},X,{onClick:function(ke){ee&&ke.persist(),!W&&Te(ke)},hover:!!(Q||Y),style:xe(D.index,D.level),"data-testid":"mtablebodyrow"}),ue),d.default.createElement(p.MTableDetailPanel,{options:R,data:D.data,detailPanel:D.detailPanel,renderColumns:ue,size:Oe}),D.data.tableData.childRows&&D.data.tableData.isTreeExpanded&&D.data.tableData.childRows.map(function(we,ke){return we.tableData.editing?d.default.createElement(D.components.EditRow,{columns:re,components:D.components,data:we,icons:F,localization:O,getFieldValue:D.getFieldValue,key:ke,mode:we.tableData.editing,isTreeData:D.isTreeData,detailPanel:D.detailPanel,onEditingCanceled:N,onEditingApproved:E,errorState:D.errorState}):d.default.createElement(D.components.Row,(0,l.default)({},D,{data:we,index:ke,key:ke,level:D.level+1,path:[].concat((0,i.default)(D.path),[we.tableData.uuid]),onEditingCanceled:N,onEditingApproved:E,hasAnyEditingRow:D.hasAnyEditingRow,treeDataMaxLevel:G,errorState:D.errorState,cellEditable:H,onCellEditStarted:V,onCellEditFinished:te}))}))}M.defaultProps={actions:[],index:0,data:{},path:[],persistEvents:!1},M.propTypes={forwardedRef:h.default.element,actions:h.default.array,index:h.default.number.isRequired,data:h.default.object.isRequired,detailPanel:h.default.oneOfType([h.default.func,h.default.arrayOf(h.default.oneOfType([h.default.object,h.default.func]))]),hasAnyEditingRow:h.default.bool,onRowSelected:h.default.func,path:h.default.arrayOf(h.default.oneOfType([h.default.string,h.default.number])),persistEvents:h.default.bool,treeDataMaxLevel:h.default.number,getFieldValue:h.default.func.isRequired,columns:h.default.array,onToggleDetailPanel:h.default.func.isRequired,onRowClick:h.default.func,onRowDoubleClick:h.default.func,onEditingApproved:h.default.func,onEditingCanceled:h.default.func,errorState:h.default.oneOfType([h.default.object,h.default.bool])};var S=d.default.forwardRef(function(P,D){return d.default.createElement(M,(0,l.default)({},P,{forwardedRef:D}))});e.default=S}(lm)),lm}var sm={},qi={};const zz=qn(bF);var A_;function qz(){if(A_)return qi;A_=1;var e=Rn;Object.defineProperty(qi,"__esModule",{value:!0}),qi.getCurrencyValue=o,qi.getEmptyValue=u,qi.getRenderValue=a,qi.isoDateRegex=void 0;var t=e($e),r=e(zz),i=/^\d{4}-(0[1-9]|1[0-2])-([12]\d|0[1-9]|3[01])([T\s](([01]\d|2[0-3])\:[0-5]\d|24\:00)(\:[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3])\:?([0-5]\d)?)?)?$/;qi.isoDateRegex=i;function u(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof n=="function"?l.columnDef.emptyValue(l.rowData):n}function o(n,l){return n!==void 0?new Intl.NumberFormat(n.locale!==void 0?n.locale:"en-US",{style:"currency",currency:n.currencyCode!==void 0?n.currencyCode:"USD",minimumFractionDigits:n.minimumFractionDigits!==void 0?n.minimumFractionDigits:2,maximumFractionDigits:n.maximumFractionDigits!==void 0?n.maximumFractionDigits:2}).format(l!==void 0?l:0):new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(l!==void 0?l:0)}function a(n,l,f){var s=n.columnDef.dateSetting&&n.columnDef.dateSetting.locale?n.columnDef.dateSetting.locale:void 0;if(n.columnDef.emptyValue!==void 0&&(n.value===void 0||n.value===null))return u(n.columnDef.emptyValue,n);if(n.rowData===void 0&&n.value&&n.columnDef.groupRender)return n.columnDef.groupRender(n.value);if(n.columnDef.render&&n.rowData)return n.columnDef.render(n.rowData);if(n.columnDef.type==="boolean"){var c={textAlign:"left",verticalAlign:"middle",width:48};return n.value?t.default.createElement(l.Check,{style:c}):t.default.createElement(l.ThirdStateCheck,{style:c})}else{if(n.columnDef.type==="date")return n.value instanceof Date?n.value.toLocaleDateString(s):i.exec(n.value)?(0,r.default)(n.value).toLocaleDateString(s):n.value;if(n.columnDef.type==="time")return n.value instanceof Date?n.value.toLocaleTimeString():i.exec(n.value)?(0,r.default)(n.value).toLocaleTimeString(s):n.value;if(n.columnDef.type==="datetime")return n.value instanceof Date?n.value.toLocaleString():i.exec(n.value)?(0,r.default)(n.value).toLocaleString(s):n.value;if(n.columnDef.type==="currency")return o(n.columnDef.currencySetting,n.value);if(typeof n.value=="boolean")return n.value.toString()}return n.value}return qi}var Wi={},P_;function Wd(){if(P_)return Wi;P_=1;var e=Rn,t=Ur();Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.getStyle=s,Wi.setObjectByKey=Wi.selectFromObject=void 0;var r=e(Jr()),i=o(Li());function u(c){if(typeof WeakMap!="function")return null;var d=new WeakMap,h=new WeakMap;return(u=function(m){return m?h:d})(c)}function o(c,d){if(c&&c.__esModule)return c;if(c===null||t(c)!=="object"&&typeof c!="function")return{default:c};var h=u(d);if(h&&h.has(c))return h.get(c);var p={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in c)if(y!=="default"&&Object.prototype.hasOwnProperty.call(c,y)){var v=m?Object.getOwnPropertyDescriptor(c,y):null;v&&(v.get||v.set)?Object.defineProperty(p,y,v):p[y]=c[y]}return p.default=c,h&&h.set(c,p),p}function a(c,d){var h=Object.keys(c);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(c);d&&(p=p.filter(function(m){return Object.getOwnPropertyDescriptor(c,m).enumerable})),h.push.apply(h,p)}return h}function n(c){for(var d=1;d-1)}).sort(function(U,Q){return U.tableData.columnOrder-Q.tableData.columnOrder}).map(function(U,Q){var Y=T.getFieldValue(D.data,U,!1),Z=function(Se,Oe){var Me={color:"inherit"};return typeof Se.cellStyle=="function"?Me=_(_({},Me),Se.cellStyle(Oe,T.data)):Me=_(_({},Me),Se.cellStyle),Se.disableClick&&(Me.cursor="default"),_({},Me)};Q===0&&24+T.level*20;var X=!1;if(U.editable===void 0&&(X=!0),U.editable==="always"&&(X=!0),U.editable==="onAdd"&&T.mode==="add"&&(X=!0),U.editable==="onUpdate"&&T.mode==="update"&&(X=!0),typeof U.editable=="function"&&(X=U.editable(U,T.data)),!U.field||!X){var re=T.getFieldValue(D.data,U);return n.default.createElement(T.components.Cell,{size:V,icons:M,columnDef:U,value:re,key:U.tableData.id,rowData:T.data,style:Z(U,Y)})}else{var ie=U.editComponent,le=(0,u.default)(U,y),se=ie||T.components.EditField,pe=(0,m.validateInput)(U,D.data);return te===-1&&(te=Q),n.default.createElement(l.default,{size:V,key:U.tableData.id,align:["numeric"].indexOf(U.type)!==-1?"right":"left",style:Z(U,Y)},n.default.createElement(se,{key:U.tableData.id,columnDef:le,autoFocus:te===Q,value:Y,error:!pe.isValid,helperText:pe.helperText,locale:T.localization.dateTimePickerLocalization,rowData:D.data,onChange:function(Se){var Oe=_({},D.data);(0,d.setObjectByKey)(Oe,U.field,Se),O({data:Oe}),T.onBulkEditRowChanged&&T.onBulkEditRowChanged(T.data,Oe)},onRowDataChange:function(Se){O({data:Se}),T.onBulkEditRowChanged&&T.onBulkEditRowChanged(T.data,Se)}}))}});return ee}var F=T.columns.every(function(V){var te=(0,m.validateInput)(V,D.data);return te.isValid}),A=function(){F&&T.onEditingApproved(T.mode,D.data,T.data)};function z(){if(T.mode!=="bulk"){var V=p.elementSize(T),te=[{icon:M.Check,tooltip:T.localization.saveTooltip,disabled:!F,onClick:A},{icon:M.Clear,tooltip:T.localization.cancelTooltip,onClick:function(){T.onEditingCanceled(T.mode,T.data)}}];return n.default.createElement(l.default,{size:V,padding:"none",key:"key-actions-column",style:_({width:42*te.length,padding:"0px 5px"},S.editCellStyle)},n.default.createElement(T.components.Actions,{data:T.data,actions:te,components:T.components,size:V}))}}function B(){var V={borderBottom:"1px solid red"};return V}var $=function(te){te.keyCode===13&&te.target.type!=="textarea"&&te.target.type!=="button"||te.keyCode===13&&te.target.type==="textarea"&&te.shiftKey?A():te.keyCode===27&&T.onEditingCanceled(T.mode,T.data)},j=p.elementSize(T),N;if(T.mode==="add"||T.mode==="update"||T.mode==="bulk")N=R();else{var E=T.columns.filter(function(V){return!V.hidden&&!(V.tableData.groupOrder>-1)}).length;N=[n.default.createElement(l.default,{size:j,padding:S.actionsColumnIndex===0?"none":void 0,key:"key-edit-cell",colSpan:E},n.default.createElement(s.default,{variant:"h6"},T.localization.deleteText))]}if(S.selection&&N.splice(0,0,n.default.createElement(l.default,{padding:"none",key:"key-selection-cell"})),T.isTreeData&&N.splice(0,0,n.default.createElement(l.default,{padding:"none",key:"key-tree-data-cell"})),S.actionsColumnIndex===-1)N.push(z());else if(S.actionsColumnIndex>=0){var W=0;S.selection&&(W=1),T.isTreeData&&(W=1,S.selection&&N.splice(1,1)),N.splice(S.actionsColumnIndex+W,0,z())}if(T.detailPanel&&S.showDetailPanelIcon!==!1&&T.mode!=="bulk"){var G=S.detailPanelColumnAlignment,L=G==="left"?0:N.length;N.splice(L,0,n.default.createElement(l.default,{padding:"none",key:"key-detail-panel-cell"}))}T.columns.filter(function(V){return V.tableData.groupOrder>-1}).forEach(function(V){N.splice(0,0,n.default.createElement(l.default,{padding:"none",key:"key-group-cell"+V.tableData.id}))}),T.detailPanel,T.isTreeData,T.onRowClick,T.onRowSelected,T.onTreeExpandChanged,T.onToggleDetailPanel,T.onEditingApproved,T.onEditingCanceled,T.getFieldValue,T.components,T.columns,T.errorState,T.onBulkEditRowChanged,T.bulkEditChangedRows,T.scrollWidth;var q=T.forwardedRef,H=(0,u.default)(T,v);return n.default.createElement(f.default,(0,i.default)({onKeyDown:$},H,{ref:q,style:B()}),N)}w.defaultProps={actions:[],index:0,options:{},path:[],onBulkEditRowChanged:function(){}},w.propTypes={actions:c.default.array,index:c.default.number.isRequired,data:c.default.object,detailPanel:c.default.oneOfType([c.default.func,c.default.arrayOf(c.default.oneOfType([c.default.object,c.default.func]))]),onRowSelected:c.default.func,path:c.default.arrayOf(c.default.number),columns:c.default.array,onRowClick:c.default.func,onEditingApproved:c.default.func,onEditingCanceled:c.default.func,localization:c.default.object,getFieldValue:c.default.func,errorState:c.default.oneOfType([c.default.object,c.default.bool]),onBulkEditRowChanged:c.default.func};var k=n.default.forwardRef(function(M,S){return n.default.createElement(w,(0,i.default)({},M,{forwardedRef:S}))});e.default=k}(cm)),cm}var fm={},dm={},co={},L_;function a1(){if(L_)return co;L_=1;var e=Rn;Object.defineProperty(co,"__esModule",{value:!0}),co.getLocalizedFilterPlaceHolder=co.getLocalizationData=void 0;var t=e(Jr()),r=Z4();function i(n,l){var f=Object.keys(n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);l&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),f.push.apply(f,s)}return f}function u(n){for(var l=1;l-1}),c.default.createElement(n.default,{primary:_.lookup[D]}))})))}var b=c.default.forwardRef(function(_,w){return c.default.createElement(g,(0,i.default)({},_,{forwardedRef:w}))});e.default=b}(hm)),hm}var pm={};const X4=qn(z9);var N_;function Zz(){return N_||(N_=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(hr()),i=t(Ld),u=t(X4),o=t(Wo),a=t($e),n=a1();function l(s){var c,d,h=s.columnDef,p=s.icons,m=s.localization,y=s.hideFilterIcons,v=s.onFilterChanged,g=s.forwardedRef,b=(0,n.getLocalizationData)(m),x=p.Filter;return a.default.createElement(i.default,{ref:g,style:h.type==="numeric"?{float:(c=h.align)!==null&&c!==void 0?c:"right"}:{float:(d=h.align)!==null&&d!==void 0?d:"left"},type:h.type==="numeric"?"number":"search",value:h.tableData.filterValue||"",placeholder:(0,n.getLocalizedFilterPlaceHolder)(h,m),onChange:function(w){v(h.tableData.id,w.target.value)},inputProps:{"aria-label":"filter data by ".concat(h.title)},InputProps:y||h.hideFilterIcon?void 0:{startAdornment:a.default.createElement(u.default,{position:"start"},a.default.createElement(o.default,{title:b.filterTooltip},a.default.createElement(x,null)))}})}var f=a.default.forwardRef(function(c,d){return a.default.createElement(l,(0,r.default)({},c,{forwardedRef:d}))});e.default=f}(pm)),pm}var gm={},j_;function Kz(){return j_||(j_=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(hr()),i=t(qo),u=t($e);function o(n){var l=n.forwardedRef,f=n.columnDef,s=n.onFilterChanged;return u.default.createElement(i.default,{ref:l,inputProps:{"aria-label":"Filter of ".concat(f.title)},indeterminate:f.tableData.filterValue===void 0,checked:f.tableData.filterValue==="checked",onChange:function(){var d;f.tableData.filterValue===void 0?d="checked":f.tableData.filterValue==="checked"&&(d="unchecked"),s(f.tableData.id,d)}})}var a=u.default.forwardRef(function(l,f){return u.default.createElement(o,(0,r.default)({},l,{forwardedRef:f}))});e.default=a}(gm)),gm}var mm={},$_;function Jz(){return $_||($_=1,function(e){var t=Rn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(hr()),u=a($e);function o(f){if(typeof WeakMap!="function")return null;var s=new WeakMap,c=new WeakMap;return(o=function(h){return h?c:s})(f)}function a(f,s){if(f&&f.__esModule)return f;if(f===null||r(f)!=="object"&&typeof f!="function")return{default:f};var c=o(s);if(c&&c.has(f))return c.get(f);var d={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in f)if(p!=="default"&&Object.prototype.hasOwnProperty.call(f,p)){var m=h?Object.getOwnPropertyDescriptor(f,p):null;m&&(m.get||m.set)?Object.defineProperty(d,p,m):d[p]=f[p]}return d.default=f,c&&c.set(f,d),d}function n(f){var s=f.columnDef,c=f.onFilterChanged,d=f.forwardedRef;return(0,u.createElement)(s.filterComponent,{columnDef:s,onFilterChanged:c,forwardedRef:d})}var l=u.default.forwardRef(function(s,c){return u.default.createElement(n,(0,i.default)({},s,{forwardedRef:c}))});e.default=l}(mm)),mm}var B_;function Z4(){return B_||(B_=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.MTableFilterRow=y,e.default=void 0;var r=t(Pi),i=t(mi),u=t(Jr()),o=t(hr()),a=t($e),n=t(Or),l=t(Vz()),f=t(Xz()),s=t(Zz()),c=t(Kz()),d=t(Jz()),h=tc();function p(g,b){var x=Object.keys(g);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(g);b&&(_=_.filter(function(w){return Object.getOwnPropertyDescriptor(g,w).enumerable})),x.push.apply(x,_)}return x}function m(g){for(var b=1;b-1)}).sort(function(T,M){return T.tableData.columnOrder-M.tableData.columnOrder}).map(function(T){return a.default.createElement(i.default,{key:T.tableData.id,style:m(m({},b.filterCellStyle),T.filterCellStyle)},x(T))});if(b.selection&&_.splice(0,0,a.default.createElement(i.default,{padding:"none",key:"key-selection-column"})),g.hasActions)if(b.actionsColumnIndex===-1)_.push(a.default.createElement(i.default,{key:"key-action-column"}));else{var w=0;g.selection&&(w=1),_.splice(b.actionsColumnIndex+w,0,a.default.createElement(i.default,{key:"key-action-column"}))}if(g.hasDetailPanel&&b.showDetailPanelIcon){var k=b.detailPanelColumnAlignment==="left"?0:_.length;_.splice(k,0,a.default.createElement(i.default,{padding:"none",key:"key-detail-panel-column"}))}return g.isTreeData>0&&_.splice(0,0,a.default.createElement(i.default,{padding:"none",key:"key-tree-data-filter"})),g.columns.filter(function(T){return T.tableData.groupOrder>-1}).forEach(function(T){_.splice(0,0,a.default.createElement(i.default,{padding:"checkbox",key:"key-group-filter"+T.tableData.id}))}),a.default.createElement(r.default,{id:"m--table--filter--row",ref:g.forwardedRef,style:m({height:10},b.filterRowStyle)},_)}y.defaultProps={columns:[],hasActions:!1,localization:{filterTooltip:"Filter"}},y.propTypes={columns:n.default.array.isRequired,hasDetailPanel:n.default.bool.isRequired,isTreeData:n.default.bool.isRequired,onFilterChanged:n.default.func.isRequired,hasActions:n.default.bool,localization:n.default.object};var v=a.default.forwardRef(function(b,x){return a.default.createElement(y,(0,o.default)({},b,{forwardedRef:x}))});e.default=v}(fm)),fm}var vm={};const K4=qn(q9),Qz=qn(W9);function z_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,i)}return r}function q_(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ma(1));return r(J4)(e,t)}if(typeof e!="function")throw new Error(Ma(2));var u=e,o=t,a=[],n=a,l=!1;function f(){n===a&&(n=a.slice())}function s(){if(l)throw new Error(Ma(3));return o}function c(m){if(typeof m!="function")throw new Error(Ma(4));if(l)throw new Error(Ma(5));var y=!0;return f(),n.push(m),function(){if(y){if(l)throw new Error(Ma(6));y=!1,f();var g=n.indexOf(m);n.splice(g,1),a=null}}}function d(m){if(!eq(m))throw new Error(Ma(7));if(typeof m.type>"u")throw new Error(Ma(8));if(l)throw new Error(Ma(9));try{l=!0,o=u(o,m)}finally{l=!1}for(var y=a=n,v=0;ve6=e,aq=()=>e6,Y_=Symbol.for("react-redux-context"),G_=typeof globalThis<"u"?globalThis:{};function iq(){var e;if(!$e.createContext)return{};const t=(e=G_[Y_])!=null?e:G_[Y_]=new Map;let r=t.get($e.createContext);return r||(r=$e.createContext(null),t.set($e.createContext,r)),r}const t6=iq(),oq=()=>{throw new Error("uSES not initialized!")},lq=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function sq(e,t,r,i,{areStatesEqual:u,areOwnPropsEqual:o,areStatePropsEqual:a}){let n=!1,l,f,s,c,d;function h(g,b){return l=g,f=b,s=e(l,f),c=t(i,f),d=r(s,c,f),n=!0,d}function p(){return s=e(l,f),t.dependsOnOwnProps&&(c=t(i,f)),d=r(s,c,f),d}function m(){return e.dependsOnOwnProps&&(s=e(l,f)),t.dependsOnOwnProps&&(c=t(i,f)),d=r(s,c,f),d}function y(){const g=e(l,f),b=!a(g,s);return s=g,b&&(d=r(s,c,f)),d}function v(g,b){const x=!o(b,f),_=!u(g,l,b,f);return l=g,f=b,x&&_?p():x?m():_?y():d}return function(b,x){return n?v(b,x):h(b,x)}}function uq(e,t){let{initMapStateToProps:r,initMapDispatchToProps:i,initMergeProps:u}=t,o=Vn(t,lq);const a=r(e,o),n=i(e,o),l=u(e,o);return sq(a,n,l,e,o)}function cq(e,t){const r={};for(const i in e){const u=e[i];typeof u=="function"&&(r[i]=(...o)=>t(u(...o)))}return r}function j0(e){return function(r){const i=e(r);function u(){return i}return u.dependsOnOwnProps=!1,u}}function X_(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function n6(e,t){return function(i,{displayName:u}){const o=function(n,l){return o.dependsOnOwnProps?o.mapToProps(n,l):o.mapToProps(n,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(n,l){o.mapToProps=e,o.dependsOnOwnProps=X_(e);let f=o(n,l);return typeof f=="function"&&(o.mapToProps=f,o.dependsOnOwnProps=X_(f),f=o(n,l)),f},o}}function i1(e,t){return(r,i)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${i.wrappedComponentName}.`)}}function fq(e){return e&&typeof e=="object"?j0(t=>cq(e,t)):e?typeof e=="function"?n6(e):i1(e,"mapDispatchToProps"):j0(t=>({dispatch:t}))}function dq(e){return e?typeof e=="function"?n6(e):i1(e,"mapStateToProps"):j0(()=>({}))}function hq(e,t,r){return Gt({},r,e,t)}function pq(e){return function(r,{displayName:i,areMergedPropsEqual:u}){let o=!1,a;return function(l,f,s){const c=e(l,f,s);return o?u(c,a)||(a=c):(o=!0,a=c),a}}}function gq(e){return e?typeof e=="function"?pq(e):i1(e,"mergeProps"):()=>hq}function mq(){const e=aq();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let i=t;for(;i;)i.callback(),i=i.next})},get(){let i=[],u=t;for(;u;)i.push(u),u=u.next;return i},subscribe(i){let u=!0,o=r={callback:i,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){!u||t===null||(u=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}const Z_={notify(){},get:()=>[]};function r6(e,t){let r,i=Z_,u=0,o=!1;function a(m){s();const y=i.subscribe(m);let v=!1;return()=>{v||(v=!0,y(),c())}}function n(){i.notify()}function l(){p.onStateChange&&p.onStateChange()}function f(){return o}function s(){u++,r||(r=t?t.addNestedSub(l):e.subscribe(l),i=mq())}function c(){u--,r&&u===0&&(r(),r=void 0,i.clear(),i=Z_)}function d(){o||(o=!0,s())}function h(){o&&(o=!1,c())}const p={addNestedSub:a,notifyNestedSubs:n,handleChangeWrapper:l,isSubscribed:f,trySubscribe:d,tryUnsubscribe:h,getListeners:()=>i};return p}const vq=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",$f=vq?$e.useLayoutEffect:$e.useEffect;function K_(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function bm(e,t){if(K_(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(let u=0;u{a6=e},xq=[null,null];function wq(e,t,r){$f(()=>e(...t),r)}function _q(e,t,r,i,u,o){e.current=i,r.current=!1,u.current&&(u.current=null,o())}function Tq(e,t,r,i,u,o,a,n,l,f,s){if(!e)return()=>{};let c=!1,d=null;const h=()=>{if(c||!n.current)return;const m=t.getState();let y,v;try{y=i(m,u.current)}catch(g){v=g,d=g}v||(d=null),y===o.current?a.current||f():(o.current=y,l.current=y,a.current=!0,s())};return r.onStateChange=h,r.trySubscribe(),h(),()=>{if(c=!0,r.tryUnsubscribe(),r.onStateChange=null,d)throw d}}function kq(e,t){return e===t}function i6(e,t,r,{pure:i,areStatesEqual:u=kq,areOwnPropsEqual:o=bm,areStatePropsEqual:a=bm,areMergedPropsEqual:n=bm,forwardRef:l=!1,context:f=t6}={}){const s=f,c=dq(e),d=fq(t),h=gq(r),p=!!e;return y=>{const v=y.displayName||y.name||"Component",g=`Connect(${v})`,b={shouldHandleStateChanges:p,displayName:g,wrappedComponentName:v,WrappedComponent:y,initMapStateToProps:c,initMapDispatchToProps:d,initMergeProps:h,areStatesEqual:u,areStatePropsEqual:a,areOwnPropsEqual:o,areMergedPropsEqual:n};function x(k){const[T,M,S]=$e.useMemo(()=>{const{reactReduxForwardedRef:U}=k,Q=Vn(k,yq);return[k.context,U,Q]},[k]),C=$e.useMemo(()=>T&&T.Consumer&&U9.isContextConsumer($e.createElement(T.Consumer,null))?T:s,[T,s]),P=$e.useContext(C),D=!!k.store&&!!k.store.getState&&!!k.store.dispatch,O=!!P&&!!P.store,R=D?k.store:P.store,F=O?P.getServerState:R.getState,A=$e.useMemo(()=>uq(R.dispatch,b),[R]),[z,B]=$e.useMemo(()=>{if(!p)return xq;const U=r6(R,D?void 0:P.subscription),Q=U.notifyNestedSubs.bind(U);return[U,Q]},[R,D,P]),$=$e.useMemo(()=>D?P:Gt({},P,{subscription:z}),[D,P,z]),j=$e.useRef(),N=$e.useRef(S),E=$e.useRef(),W=$e.useRef(!1);$e.useRef(!1);const G=$e.useRef(!1),L=$e.useRef();$f(()=>(G.current=!0,()=>{G.current=!1}),[]);const q=$e.useMemo(()=>()=>E.current&&S===N.current?E.current:A(R.getState(),S),[R,S]),H=$e.useMemo(()=>Q=>z?Tq(p,R,z,A,N,j,W,G,E,B,Q):()=>{},[z]);wq(_q,[N,j,W,S,E,B]);let V;try{V=a6(H,q,F?()=>A(F(),S):q)}catch(U){throw L.current&&(U.message+=` The error may be correlated with this previous error: ${L.current.stack} -`),U}$f(()=>{L.current=void 0,E.current=void 0,j.current=V});const te=$e.useMemo(()=>$e.createElement(y,Gt({},V,{ref:M})),[M,y,V]);return $e.useMemo(()=>p?$e.createElement(C.Provider,{value:$},te):te,[C,te,$])}const w=$e.memo(x);if(w.WrappedComponent=y,w.displayName=x.displayName=g,l){const T=$e.forwardRef(function(S,C){return $e.createElement(w,Gt({},S,{reactReduxForwardedRef:C}))});return T.displayName=g,T.WrappedComponent=y,q2(T,y)}return q2(w,y)}}function kq({store:e,context:t,children:r,serverState:i,stabilityCheck:c="once",noopCheck:o="once"}){const a=$e.useMemo(()=>{const f=r6(e);return{store:e,subscription:f,getServerState:i?()=>i:void 0,stabilityCheck:c,noopCheck:o}},[e,i,c,o]),n=$e.useMemo(()=>e.getState(),[e]);$f(()=>{const{subscription:f}=a;return f.onStateChange=f.notifyNestedSubs,f.trySubscribe(),n!==e.getState()&&f.notifyNestedSubs(),()=>{f.tryUnsubscribe(),f.onStateChange=void 0}},[a,n]);const l=t||t6;return $e.createElement(l.Provider,{value:a},r)}yq(kS.useSyncExternalStore);nq(yy.unstable_batchedUpdates);function Mq(e,t){if(e.length!==t.length)return!1;for(var r=0;r{const o=Dq(r,c.options);return e.addEventListener(c.eventName,c.fn,o),function(){e.removeEventListener(c.eventName,c.fn,o)}});return function(){i.forEach(o=>{o()})}}const Eq="Invariant failed";class qf extends Error{}qf.prototype.toString=function(){return this.message};function un(e,t){throw new qf(Eq)}class Rq extends et.Component{constructor(){super(...arguments),this.callbacks=null,this.unbind=Xi,this.onWindowError=t=>{const r=this.getCallbacks();r.isDragging()&&r.tryAbort(),t.error instanceof qf&&t.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in ");return this.callbacks},this.setCallbacks=t=>{this.callbacks=t}}componentDidMount(){this.unbind=Wa(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(t){if(t instanceof qf){this.setState({});return}throw t}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const Lq=` +`),U}$f(()=>{L.current=void 0,E.current=void 0,j.current=V});const te=$e.useMemo(()=>$e.createElement(y,Gt({},V,{ref:M})),[M,y,V]);return $e.useMemo(()=>p?$e.createElement(C.Provider,{value:$},te):te,[C,te,$])}const w=$e.memo(x);if(w.WrappedComponent=y,w.displayName=x.displayName=g,l){const T=$e.forwardRef(function(S,C){return $e.createElement(w,Gt({},S,{reactReduxForwardedRef:C}))});return T.displayName=g,T.WrappedComponent=y,q2(T,y)}return q2(w,y)}}function Mq({store:e,context:t,children:r,serverState:i,stabilityCheck:u="once",noopCheck:o="once"}){const a=$e.useMemo(()=>{const f=r6(e);return{store:e,subscription:f,getServerState:i?()=>i:void 0,stabilityCheck:u,noopCheck:o}},[e,i,u,o]),n=$e.useMemo(()=>e.getState(),[e]);$f(()=>{const{subscription:f}=a;return f.onStateChange=f.notifyNestedSubs,f.trySubscribe(),n!==e.getState()&&f.notifyNestedSubs(),()=>{f.tryUnsubscribe(),f.onStateChange=void 0}},[a,n]);const l=t||t6;return $e.createElement(l.Provider,{value:a},r)}bq(kS.useSyncExternalStore);rq(yy.unstable_batchedUpdates);function Sq(e,t){if(e.length!==t.length)return!1;for(var r=0;r{const o=Eq(r,u.options);return e.addEventListener(u.eventName,u.fn,o),function(){e.removeEventListener(u.eventName,u.fn,o)}});return function(){i.forEach(o=>{o()})}}const Rq="Invariant failed";class qf extends Error{}qf.prototype.toString=function(){return this.message};function un(e,t){throw new qf(Rq)}class Lq extends et.Component{constructor(){super(...arguments),this.callbacks=null,this.unbind=Xi,this.onWindowError=t=>{const r=this.getCallbacks();r.isDragging()&&r.tryAbort(),t.error instanceof qf&&t.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in ");return this.callbacks},this.setCallbacks=t=>{this.callbacks=t}}componentDidMount(){this.unbind=Wa(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(t){if(t instanceof qf){this.setState({});return}throw t}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const Iq=` Press space bar to start a drag. When dragging you can use the arrow keys to move the item around and escape to cancel. Some screen readers may require you to be in focus mode or to use your pass through key -`,Wf=e=>e+1,Iq=e=>` +`,Wf=e=>e+1,Fq=e=>` You have lifted an item in position ${Wf(e.source.index)} -`,c6=(e,t)=>{const r=e.droppableId===t.droppableId,i=Wf(e.index),c=Wf(t.index);return r?` +`,c6=(e,t)=>{const r=e.droppableId===t.droppableId,i=Wf(e.index),u=Wf(t.index);return r?` You have moved the item from position ${i} - to position ${c} + to position ${u} `:` You have moved the item from position ${i} in list ${e.droppableId} to list ${t.droppableId} - in position ${c} + in position ${u} `},f6=(e,t,r)=>t.droppableId===r.droppableId?` The item ${e} has been combined with ${r.draggableId}`:` @@ -220,10 +220,10 @@ ${L.current.stack} in list ${t.droppableId} has been combined with ${r.draggableId} in list ${r.droppableId} - `,Fq=e=>{const t=e.destination;if(t)return c6(e.source,t);const r=e.combine;return r?f6(e.draggableId,e.source,r):"You are over an area that cannot be dropped on"},e3=e=>` + `,Nq=e=>{const t=e.destination;if(t)return c6(e.source,t);const r=e.combine;return r?f6(e.draggableId,e.source,r):"You are over an area that cannot be dropped on"},e3=e=>` The item has returned to its starting position of ${Wf(e.index)} -`,Nq=e=>{if(e.reason==="CANCEL")return` +`,jq=e=>{if(e.reason==="CANCEL")return` Movement cancelled. ${e3(e.source)} `;const t=e.destination,r=e.combine;return t?` @@ -235,16 +235,16 @@ ${L.current.stack} `:` The item has been dropped while not over a drop area. ${e3(e.source)} - `},jq={dragHandleUsageInstructions:Lq,onDragStart:Iq,onDragUpdate:Fq,onDragEnd:Nq};var gf=jq;const ea={x:0,y:0},ca=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),Ea=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),Zi=(e,t)=>e.x===t.x&&e.y===t.y,Wl=e=>({x:e.x!==0?-e.x:0,y:e.y!==0?-e.y:0}),Ao=function(e,t,r){return r===void 0&&(r=0),e==="x"?{x:t,y:r}:{x:r,y:t}},Ru=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),t3=(e,t)=>Math.min(...t.map(r=>Ru(e,r))),d6=e=>t=>({x:e(t.x),y:e(t.y)});var $q=(e,t)=>{const r=Qa({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return r.width<=0||r.height<=0?null:r};const lc=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),n3=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],Bq={top:0,right:0,bottom:0,left:0},zq=(e,t)=>t?lc(e,t.scroll.diff.displacement):e,qq=(e,t,r)=>r&&r.increasedBy?{...e,[t.end]:e[t.end]+r.increasedBy[t.line]}:e,Wq=(e,t)=>t&&t.shouldClipSubject?$q(t.pageMarginBox,e):Qa(e);var Cl=e=>{let{page:t,withPlaceholder:r,axis:i,frame:c}=e;const o=zq(t.marginBox,c),a=qq(o,i,r),n=Wq(a,c);return{page:t,withPlaceholder:r,active:n}},s1=(e,t)=>{e.frame||un();const r=e.frame,i=Ea(t,r.scroll.initial),c=Wl(i),o={...r,scroll:{initial:r.scroll.initial,current:t,diff:{value:i,displacement:c},max:r.scroll.max}},a=Cl({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o});return{...e,frame:o,subject:a}};const h6=Qr(e=>e.reduce((t,r)=>(t[r.descriptor.id]=r,t),{})),p6=Qr(e=>e.reduce((t,r)=>(t[r.descriptor.id]=r,t),{})),Hd=Qr(e=>Object.values(e)),Uq=Qr(e=>Object.values(e));var Ul=Qr((e,t)=>Uq(t).filter(i=>e===i.descriptor.droppableId).sort((i,c)=>i.descriptor.index-c.descriptor.index));function u1(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function Vd(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var Yd=Qr((e,t)=>t.filter(r=>r.descriptor.id!==e.descriptor.id)),Hq=e=>{let{isMovingForward:t,draggable:r,destination:i,insideDestination:c,previousImpact:o}=e;if(!i.isCombineEnabled||!u1(o))return null;function n(p){const m={type:"COMBINE",combine:{draggableId:p,droppableId:i.descriptor.id}};return{...o,at:m}}const l=o.displaced.all,f=l.length?l[0]:null;if(t)return f?n(f):null;const s=Yd(r,c);if(!f){if(!s.length)return null;const p=s[s.length-1];return n(p.descriptor.id)}const u=s.findIndex(p=>p.descriptor.id===f);u===-1&&un();const d=u-1;if(d<0)return null;const h=s[d];return n(h.descriptor.id)},Hl=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const g6={point:ea,value:0},Lu={invisible:{},visible:{},all:[]},Vq={displaced:Lu,displacedBy:g6,at:null};var Yq=Vq,Ha=(e,t)=>r=>e<=r&&r<=t,m6=e=>{const t=Ha(e.top,e.bottom),r=Ha(e.left,e.right);return i=>{if(t(i.top)&&t(i.bottom)&&r(i.left)&&r(i.right))return!0;const o=t(i.top)||t(i.bottom),a=r(i.left)||r(i.right);if(o&&a)return!0;const l=i.tope.bottom,f=i.lefte.right;return l&&f?!0:l&&a||f&&o}},Gq=e=>{const t=Ha(e.top,e.bottom),r=Ha(e.left,e.right);return i=>t(i.top)&&t(i.bottom)&&r(i.left)&&r(i.right)};const c1={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},v6={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};var Xq=e=>t=>{const r=Ha(t.top,t.bottom),i=Ha(t.left,t.right);return c=>e===c1?r(c.top)&&r(c.bottom):i(c.left)&&i(c.right)};const Zq=(e,t)=>{const r=t.frame?t.frame.scroll.diff.displacement:ea;return lc(e,r)},Kq=(e,t,r)=>t.subject.active?r(t.subject.active)(e):!1,Jq=(e,t,r)=>r(t)(e),f1=e=>{let{target:t,destination:r,viewport:i,withDroppableDisplacement:c,isVisibleThroughFrameFn:o}=e;const a=c?Zq(t,r):t;return Kq(a,r,o)&&Jq(a,i,o)},Qq=e=>f1({...e,isVisibleThroughFrameFn:m6}),y6=e=>f1({...e,isVisibleThroughFrameFn:Gq}),eW=e=>f1({...e,isVisibleThroughFrameFn:Xq(e.destination.axis)}),tW=(e,t,r)=>{if(typeof r=="boolean")return r;if(!t)return!0;const{invisible:i,visible:c}=t;if(i[e])return!1;const o=c[e];return o?o.shouldAnimate:!0};function nW(e,t){const r=e.page.marginBox,i={top:t.point.y,right:0,bottom:0,left:t.point.x};return Qa(o1(r,i))}function Iu(e){let{afterDragging:t,destination:r,displacedBy:i,viewport:c,forceShouldAnimate:o,last:a}=e;return t.reduce(function(l,f){const s=nW(f,i),u=f.descriptor.id;if(l.all.push(u),!Qq({target:s,destination:r,viewport:c,withDroppableDisplacement:!0}))return l.invisible[f.descriptor.id]=!0,l;const h=tW(u,a,o),p={draggableId:u,shouldAnimate:h};return l.visible[u]=p,l},{all:[],visible:{},invisible:{}})}function rW(e,t){if(!e.length)return 0;const r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}function r3(e){let{insideDestination:t,inHomeList:r,displacedBy:i,destination:c}=e;const o=rW(t,{inHomeList:r});return{displaced:Lu,displacedBy:i,at:{type:"REORDER",destination:{droppableId:c.descriptor.id,index:o}}}}function Uf(e){let{draggable:t,insideDestination:r,destination:i,viewport:c,displacedBy:o,last:a,index:n,forceShouldAnimate:l}=e;const f=Hl(t,i);if(n==null)return r3({insideDestination:r,inHomeList:f,displacedBy:o,destination:i});const s=r.find(m=>m.descriptor.index===n);if(!s)return r3({insideDestination:r,inHomeList:f,displacedBy:o,destination:i});const u=Yd(t,r),d=r.indexOf(s),h=u.slice(d);return{displaced:Iu({afterDragging:h,destination:i,displacedBy:o,last:a,viewport:c.frame,forceShouldAnimate:l}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:n}}}}function Qi(e,t){return!!t.effected[e]}var aW=e=>{let{isMovingForward:t,destination:r,draggables:i,combine:c,afterCritical:o}=e;if(!r.isCombineEnabled)return null;const a=c.draggableId,l=i[a].descriptor.index;return Qi(a,o)?t?l:l-1:t?l+1:l},iW=e=>{let{isMovingForward:t,isInHomeList:r,insideDestination:i,location:c}=e;if(!i.length)return null;const o=c.index,a=t?o+1:o-1,n=i[0].descriptor.index,l=i[i.length-1].descriptor.index,f=r?l:l+1;return af?null:a},oW=e=>{let{isMovingForward:t,isInHomeList:r,draggable:i,draggables:c,destination:o,insideDestination:a,previousImpact:n,viewport:l,afterCritical:f}=e;const s=n.at;if(s||un(),s.type==="REORDER"){const d=iW({isMovingForward:t,isInHomeList:r,location:s.destination,insideDestination:a});return d==null?null:Uf({draggable:i,insideDestination:a,destination:o,viewport:l,last:n.displaced,displacedBy:n.displacedBy,index:d})}const u=aW({isMovingForward:t,destination:o,displaced:n.displaced,draggables:c,combine:s.combine,afterCritical:f});return u==null?null:Uf({draggable:i,insideDestination:a,destination:o,viewport:l,last:n.displaced,displacedBy:n.displacedBy,index:u})},lW=e=>{let{displaced:t,afterCritical:r,combineWith:i,displacedBy:c}=e;const o=!!(t.visible[i]||t.invisible[i]);return Qi(i,r)?o?ea:Wl(c.point):o?c.point:ea},sW=e=>{let{afterCritical:t,impact:r,draggables:i}=e;const c=Vd(r);c||un();const o=c.draggableId,a=i[o].page.borderBox.center,n=lW({displaced:r.displaced,afterCritical:t,combineWith:o,displacedBy:r.displacedBy});return ca(a,n)};const b6=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,uW=(e,t)=>t.margin[e.end]+t.borderBox[e.size]/2,d1=(e,t,r)=>t[e.crossAxisStart]+r.margin[e.crossAxisStart]+r.borderBox[e.crossAxisSize]/2,a3=e=>{let{axis:t,moveRelativeTo:r,isMoving:i}=e;return Ao(t.line,r.marginBox[t.end]+b6(t,i),d1(t,r.marginBox,i))},i3=e=>{let{axis:t,moveRelativeTo:r,isMoving:i}=e;return Ao(t.line,r.marginBox[t.start]-uW(t,i),d1(t,r.marginBox,i))},cW=e=>{let{axis:t,moveInto:r,isMoving:i}=e;return Ao(t.line,r.contentBox[t.start]+b6(t,i),d1(t,r.contentBox,i))};var fW=e=>{let{impact:t,draggable:r,draggables:i,droppable:c,afterCritical:o}=e;const a=Ul(c.descriptor.id,i),n=r.page,l=c.axis;if(!a.length)return cW({axis:l,moveInto:c.page,isMoving:n});const{displaced:f,displacedBy:s}=t,u=f.all[0];if(u){const h=i[u];if(Qi(u,o))return i3({axis:l,moveRelativeTo:h.page,isMoving:n});const p=Bf(h.page,s.point);return i3({axis:l,moveRelativeTo:p,isMoving:n})}const d=a[a.length-1];if(d.descriptor.id===r.descriptor.id)return n.borderBox.center;if(Qi(d.descriptor.id,o)){const h=Bf(d.page,Wl(o.displacedBy.point));return a3({axis:l,moveRelativeTo:h,isMoving:n})}return a3({axis:l,moveRelativeTo:d.page,isMoving:n})},$0=(e,t)=>{const r=e.frame;return r?ca(t,r.scroll.diff.displacement):t};const dW=e=>{let{impact:t,draggable:r,droppable:i,draggables:c,afterCritical:o}=e;const a=r.page.borderBox.center,n=t.at;return!i||!n?a:n.type==="REORDER"?fW({impact:t,draggable:r,draggables:c,droppable:i,afterCritical:o}):sW({impact:t,draggables:c,afterCritical:o})};var Gd=e=>{const t=dW(e),r=e.droppable;return r?$0(r,t):t},x6=(e,t)=>{const r=Ea(t,e.scroll.initial),i=Wl(r);return{frame:Qa({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:r,displacement:i}}}};function o3(e,t){return e.map(r=>t[r])}function hW(e,t){for(let r=0;r{let{impact:t,viewport:r,destination:i,draggables:c,maxScrollChange:o}=e;const a=x6(r,ca(r.scroll.current,o)),n=i.frame?s1(i,ca(i.frame.scroll.current,o)):i,l=t.displaced,f=Iu({afterDragging:o3(l.all,c),destination:i,displacedBy:t.displacedBy,viewport:a.frame,last:l,forceShouldAnimate:!1}),s=Iu({afterDragging:o3(l.all,c),destination:n,displacedBy:t.displacedBy,viewport:r.frame,last:l,forceShouldAnimate:!1}),u={},d={},h=[l,f,s];return l.all.forEach(m=>{const y=hW(m,h);if(y){d[m]=y;return}u[m]=!0}),{...t,displaced:{all:l.all,invisible:u,visible:d}}},gW=(e,t)=>ca(e.scroll.diff.displacement,t),h1=e=>{let{pageBorderBoxCenter:t,draggable:r,viewport:i}=e;const c=gW(i,t),o=Ea(c,r.page.borderBox.center);return ca(r.client.borderBox.center,o)},w6=e=>{let{draggable:t,destination:r,newPageBorderBoxCenter:i,viewport:c,withDroppableDisplacement:o,onlyOnMainAxis:a=!1}=e;const n=Ea(i,t.page.borderBox.center),f={target:lc(t.page.borderBox,n),destination:r,withDroppableDisplacement:o,viewport:c};return a?eW(f):y6(f)},mW=e=>{let{isMovingForward:t,draggable:r,destination:i,draggables:c,previousImpact:o,viewport:a,previousPageBorderBoxCenter:n,previousClientSelection:l,afterCritical:f}=e;if(!i.isEnabled)return null;const s=Ul(i.descriptor.id,c),u=Hl(r,i),d=Hq({isMovingForward:t,draggable:r,destination:i,insideDestination:s,previousImpact:o})||oW({isMovingForward:t,isInHomeList:u,draggable:r,draggables:c,destination:i,insideDestination:s,previousImpact:o,viewport:a,afterCritical:f});if(!d)return null;const h=Gd({impact:d,draggable:r,droppable:i,draggables:c,afterCritical:f});if(w6({draggable:r,destination:i,newPageBorderBoxCenter:h,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:h1({pageBorderBoxCenter:h,draggable:r,viewport:a}),impact:d,scrollJumpRequest:null};const m=Ea(h,n),y=pW({impact:d,viewport:a,destination:i,draggables:c,maxScrollChange:m});return{clientSelection:l,impact:y,scrollJumpRequest:m}};const ba=e=>{const t=e.subject.active;return t||un(),t};var vW=e=>{let{isMovingForward:t,pageBorderBoxCenter:r,source:i,droppables:c,viewport:o}=e;const a=i.subject.active;if(!a)return null;const n=i.axis,l=Ha(a[n.start],a[n.end]),f=Hd(c).filter(u=>u!==i).filter(u=>u.isEnabled).filter(u=>!!u.subject.active).filter(u=>m6(o.frame)(ba(u))).filter(u=>{const d=ba(u);return t?a[n.crossAxisEnd]{const d=ba(u),h=Ha(d[n.start],d[n.end]);return l(d[n.start])||l(d[n.end])||h(a[n.start])||h(a[n.end])}).sort((u,d)=>{const h=ba(u)[n.crossAxisStart],p=ba(d)[n.crossAxisStart];return t?h-p:p-h}).filter((u,d,h)=>ba(u)[n.crossAxisStart]===ba(h[0])[n.crossAxisStart]);if(!f.length)return null;if(f.length===1)return f[0];const s=f.filter(u=>Ha(ba(u)[n.start],ba(u)[n.end])(r[n.line]));return s.length===1?s[0]:s.length>1?s.sort((u,d)=>ba(u)[n.start]-ba(d)[n.start])[0]:f.sort((u,d)=>{const h=t3(r,n3(ba(u))),p=t3(r,n3(ba(d)));return h!==p?h-p:ba(u)[n.start]-ba(d)[n.start]})[0]};const l3=(e,t)=>{const r=e.page.borderBox.center;return Qi(e.descriptor.id,t)?Ea(r,t.displacedBy.point):r},yW=(e,t)=>{const r=e.page.borderBox;return Qi(e.descriptor.id,t)?lc(r,Wl(t.displacedBy.point)):r};var bW=e=>{let{pageBorderBoxCenter:t,viewport:r,destination:i,insideDestination:c,afterCritical:o}=e;return c.filter(n=>y6({target:yW(n,o),destination:i,viewport:r.frame,withDroppableDisplacement:!0})).sort((n,l)=>{const f=Ru(t,$0(i,l3(n,o))),s=Ru(t,$0(i,l3(l,o)));return f{const i=e.axis;if(e.descriptor.mode==="virtual")return Ao(i.line,t[i.line]);const c=e.subject.page.contentBox[i.size],l=Ul(e.descriptor.id,r).reduce((f,s)=>f+s.client.marginBox[i.size],0)+t[i.line]-c;return l<=0?null:Ao(i.line,l)},_6=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),T6=(e,t,r)=>{const i=e.frame;Hl(t,e)&&un(),e.subject.withPlaceholder&&un();const c=sc(e.axis,t.displaceBy).point,o=xW(e,c,r),a={placeholderSize:c,increasedBy:o,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!i){const s=Cl({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame});return{...e,subject:s}}const n=o?ca(i.scroll.max,o):i.scroll.max,l=_6(i,n),f=Cl({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:l});return{...e,subject:f,frame:l}},wW=e=>{const t=e.subject.withPlaceholder;t||un();const r=e.frame;if(!r){const a=Cl({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:a}}const i=t.oldFrameMaxScroll;i||un();const c=_6(r,i),o=Cl({page:e.subject.page,axis:e.axis,frame:c,withPlaceholder:null});return{...e,subject:o,frame:c}};var _W=e=>{let{previousPageBorderBoxCenter:t,moveRelativeTo:r,insideDestination:i,draggable:c,draggables:o,destination:a,viewport:n,afterCritical:l}=e;if(!r){if(i.length)return null;const d={displaced:Lu,displacedBy:g6,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},h=Gd({impact:d,draggable:c,droppable:a,draggables:o,afterCritical:l}),p=Hl(c,a)?a:T6(a,c,o);return w6({draggable:c,destination:p,newPageBorderBoxCenter:h,viewport:n.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?d:null}const f=t[a.axis.line]<=r.page.borderBox.center[a.axis.line],s=(()=>{const d=r.descriptor.index;return r.descriptor.id===c.descriptor.id||f?d:d+1})(),u=sc(a.axis,c.displaceBy);return Uf({draggable:c,insideDestination:i,destination:a,viewport:n,displacedBy:u,last:Lu,index:s})},TW=e=>{let{isMovingForward:t,previousPageBorderBoxCenter:r,draggable:i,isOver:c,draggables:o,droppables:a,viewport:n,afterCritical:l}=e;const f=vW({isMovingForward:t,pageBorderBoxCenter:r,source:c,droppables:a,viewport:n});if(!f)return null;const s=Ul(f.descriptor.id,o),u=bW({pageBorderBoxCenter:r,viewport:n,destination:f,insideDestination:s,afterCritical:l}),d=_W({previousPageBorderBoxCenter:r,destination:f,draggable:i,draggables:o,moveRelativeTo:u,insideDestination:s,viewport:n,afterCritical:l});if(!d)return null;const h=Gd({impact:d,draggable:i,droppable:f,draggables:o,afterCritical:l});return{clientSelection:h1({pageBorderBoxCenter:h,draggable:i,viewport:n}),impact:d,scrollJumpRequest:null}},Ia=e=>{const t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null};const kW=(e,t)=>{const r=Ia(e);return r?t[r]:null};var MW=e=>{let{state:t,type:r}=e;const i=kW(t.impact,t.dimensions.droppables),c=!!i,o=t.dimensions.droppables[t.critical.droppable.id],a=i||o,n=a.axis.direction,l=n==="vertical"&&(r==="MOVE_UP"||r==="MOVE_DOWN")||n==="horizontal"&&(r==="MOVE_LEFT"||r==="MOVE_RIGHT");if(l&&!c)return null;const f=r==="MOVE_DOWN"||r==="MOVE_RIGHT",s=t.dimensions.draggables[t.critical.draggable.id],u=t.current.page.borderBoxCenter,{draggables:d,droppables:h}=t.dimensions;return l?mW({isMovingForward:f,previousPageBorderBoxCenter:u,draggable:s,destination:a,draggables:d,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):TW({isMovingForward:f,previousPageBorderBoxCenter:u,draggable:s,isOver:a,draggables:d,droppables:h,viewport:t.viewport,afterCritical:t.afterCritical})};function mo(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function k6(e){const t=Ha(e.top,e.bottom),r=Ha(e.left,e.right);return function(c){return t(c.y)&&r(c.x)}}function SW(e,t){return e.leftt.left&&e.topt.top}function CW(e){let{pageBorderBox:t,draggable:r,candidates:i}=e;const c=r.page.borderBox.center,o=i.map(a=>{const n=a.axis,l=Ao(a.axis.line,t.center[n.line],a.page.borderBox.center[n.crossAxisLine]);return{id:a.descriptor.id,distance:Ru(c,l)}}).sort((a,n)=>n.distance-a.distance);return o[0]?o[0].id:null}function OW(e){let{pageBorderBox:t,draggable:r,droppables:i}=e;const c=Hd(i).filter(o=>{if(!o.isEnabled)return!1;const a=o.subject.active;if(!a||!SW(t,a))return!1;if(k6(a)(t.center))return!0;const n=o.axis,l=a.center[n.crossAxisLine],f=t[n.crossAxisStart],s=t[n.crossAxisEnd],u=Ha(a[n.crossAxisStart],a[n.crossAxisEnd]),d=u(f),h=u(s);return!d&&!h?!0:d?fl});return c.length?c.length===1?c[0].descriptor.id:CW({pageBorderBox:t,draggable:r,candidates:c}):null}const M6=(e,t)=>Qa(lc(e,t));var AW=(e,t)=>{const r=e.frame;return r?M6(t,r.scroll.diff.value):t};function S6(e){let{displaced:t,id:r}=e;return!!(t.visible[r]||t.invisible[r])}function PW(e){let{draggable:t,closest:r,inHomeList:i}=e;return r?i&&r.descriptor.index>t.descriptor.index?r.descriptor.index-1:r.descriptor.index:null}var DW=e=>{let{pageBorderBoxWithDroppableScroll:t,draggable:r,destination:i,insideDestination:c,last:o,viewport:a,afterCritical:n}=e;const l=i.axis,f=sc(i.axis,r.displaceBy),s=f.value,u=t[l.start],d=t[l.end],p=Yd(r,c).find(y=>{const v=y.descriptor.id,g=y.page.borderBox.center[l.line],b=Qi(v,n),x=S6({displaced:o,id:v});return b?x?d<=g:u{let{draggable:t,pageBorderBoxWithDroppableScroll:r,previousImpact:i,destination:c,insideDestination:o,afterCritical:a}=e;if(!c.isCombineEnabled)return null;const n=c.axis,l=sc(c.axis,t.displaceBy),f=l.value,s=r[n.start],u=r[n.end],h=Yd(t,o).find(m=>{const y=m.descriptor.id,v=m.page.borderBox,b=v[n.size]/EW,x=Qi(y,a),_=S6({displaced:i.displaced,id:y});return x?_?u>v[n.start]+b&&uv[n.start]-f+b&&sv[n.start]+f+b&&uv[n.start]+b&&s{let{pageOffset:t,draggable:r,draggables:i,droppables:c,previousImpact:o,viewport:a,afterCritical:n}=e;const l=M6(r.page.borderBox,t),f=OW({pageBorderBox:l,draggable:r,droppables:c});if(!f)return Yq;const s=c[f],u=Ul(s.descriptor.id,i),d=AW(s,l);return RW({pageBorderBoxWithDroppableScroll:d,draggable:r,previousImpact:o,destination:s,insideDestination:u,afterCritical:n})||DW({pageBorderBoxWithDroppableScroll:d,draggable:r,destination:s,insideDestination:u,last:o.displaced,viewport:a,afterCritical:n})},p1=(e,t)=>({...e,[t.descriptor.id]:t});const LW=e=>{let{previousImpact:t,impact:r,droppables:i}=e;const c=Ia(t),o=Ia(r);if(!c||c===o)return i;const a=i[c];if(!a.subject.withPlaceholder)return i;const n=wW(a);return p1(i,n)};var IW=e=>{let{draggable:t,draggables:r,droppables:i,previousImpact:c,impact:o}=e;const a=LW({previousImpact:c,impact:o,droppables:i}),n=Ia(o);if(!n)return a;const l=i[n];if(Hl(t,l)||l.subject.withPlaceholder)return a;const f=T6(l,t,r);return p1(a,f)},Su=e=>{let{state:t,clientSelection:r,dimensions:i,viewport:c,impact:o,scrollJumpRequest:a}=e;const n=c||t.viewport,l=i||t.dimensions,f=r||t.current.client.selection,s=Ea(f,t.initial.client.selection),u={offset:s,selection:f,borderBoxCenter:ca(t.initial.client.borderBoxCenter,s)},d={selection:ca(u.selection,n.scroll.current),borderBoxCenter:ca(u.borderBoxCenter,n.scroll.current),offset:ca(u.offset,n.scroll.diff.value)},h={client:u,page:d};if(t.phase==="COLLECTING")return{...t,dimensions:l,viewport:n,current:h};const p=l.draggables[t.critical.draggable.id],m=o||C6({pageOffset:d.offset,draggable:p,draggables:l.draggables,droppables:l.droppables,previousImpact:t.impact,viewport:n,afterCritical:t.afterCritical}),y=IW({draggable:p,impact:m,previousImpact:t.impact,draggables:l.draggables,droppables:l.droppables});return{...t,current:h,dimensions:{draggables:l.draggables,droppables:y},impact:m,viewport:n,scrollJumpRequest:a||null,forceShouldAnimate:a?!1:null}};function FW(e,t){return e.map(r=>t[r])}var O6=e=>{let{impact:t,viewport:r,draggables:i,destination:c,forceShouldAnimate:o}=e;const a=t.displaced,n=FW(a.all,i),l=Iu({afterDragging:n,destination:c,displacedBy:t.displacedBy,viewport:r.frame,forceShouldAnimate:o,last:a});return{...t,displaced:l}},A6=e=>{let{impact:t,draggable:r,droppable:i,draggables:c,viewport:o,afterCritical:a}=e;const n=Gd({impact:t,draggable:r,draggables:c,droppable:i,afterCritical:a});return h1({pageBorderBoxCenter:n,draggable:r,viewport:o})},P6=e=>{let{state:t,dimensions:r,viewport:i}=e;t.movementMode!=="SNAP"&&un();const c=t.impact,o=i||t.viewport,a=r||t.dimensions,{draggables:n,droppables:l}=a,f=n[t.critical.draggable.id],s=Ia(c);s||un();const u=l[s],d=O6({impact:c,viewport:o,destination:u,draggables:n}),h=A6({impact:d,draggable:f,droppable:u,draggables:n,viewport:o,afterCritical:t.afterCritical});return Su({impact:d,clientSelection:h,state:t,dimensions:a,viewport:o})},NW=e=>({index:e.index,droppableId:e.droppableId}),D6=e=>{let{draggable:t,home:r,draggables:i,viewport:c}=e;const o=sc(r.axis,t.displaceBy),a=Ul(r.descriptor.id,i),n=a.indexOf(t);n===-1&&un();const l=a.slice(n+1),f=l.reduce((h,p)=>(h[p.descriptor.id]=!0,h),{}),s={inVirtualList:r.descriptor.mode==="virtual",displacedBy:o,effected:f};return{impact:{displaced:Iu({afterDragging:l,destination:r,displacedBy:o,last:null,viewport:c.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:NW(t.descriptor)}},afterCritical:s}},jW=(e,t)=>({draggables:e.draggables,droppables:p1(e.droppables,t)}),$W=e=>{let{draggable:t,offset:r,initialWindowScroll:i}=e;const c=Bf(t.client,r),o=zf(c,i);return{...t,placeholder:{...t.placeholder,client:c},client:c,page:o}},BW=e=>{const t=e.frame;return t||un(),t},zW=e=>{let{additions:t,updatedDroppables:r,viewport:i}=e;const c=i.scroll.diff.value;return t.map(o=>{const a=o.descriptor.droppableId,n=r[a],f=BW(n).scroll.diff.value,s=ca(c,f);return $W({draggable:o,offset:s,initialWindowScroll:i.scroll.initial})})},qW=e=>{let{state:t,published:r}=e;const i=r.modified.map(g=>{const b=t.dimensions.droppables[g.droppableId];return s1(b,g.scroll)}),c={...t.dimensions.droppables,...h6(i)},o=p6(zW({additions:r.additions,updatedDroppables:c,viewport:t.viewport})),a={...t.dimensions.draggables,...o};r.removals.forEach(g=>{delete a[g]});const n={droppables:c,draggables:a},l=Ia(t.impact),f=l?n.droppables[l]:null,s=n.draggables[t.critical.draggable.id],u=n.droppables[t.critical.droppable.id],{impact:d,afterCritical:h}=D6({draggable:s,home:u,draggables:a,viewport:t.viewport}),p=f&&f.isCombineEnabled?t.impact:d,m=C6({pageOffset:t.current.page.offset,draggable:n.draggables[t.critical.draggable.id],draggables:n.draggables,droppables:n.droppables,previousImpact:p,viewport:t.viewport,afterCritical:h}),y={...t,phase:"DRAGGING",impact:m,onLiftImpact:d,dimensions:n,afterCritical:h,forceShouldAnimate:!1};return t.phase==="COLLECTING"?y:{...y,phase:"DROP_PENDING",reason:t.reason,isWaiting:!1}};const B0=e=>e.movementMode==="SNAP",wm=(e,t,r)=>{const i=jW(e.dimensions,t);return!B0(e)||r?Su({state:e,dimensions:i}):P6({state:e,dimensions:i})};function _m(e){return e.isDragging&&e.movementMode==="SNAP"?{...e,scrollJumpRequest:null}:e}const s3={phase:"IDLE",completed:null,shouldFlush:!1};var WW=function(e,t){if(e===void 0&&(e=s3),t.type==="FLUSH")return{...s3,shouldFlush:!0};if(t.type==="INITIAL_PUBLISH"){e.phase!=="IDLE"&&un();const{critical:r,clientSelection:i,viewport:c,dimensions:o,movementMode:a}=t.payload,n=o.draggables[r.draggable.id],l=o.droppables[r.droppable.id],f={selection:i,borderBoxCenter:n.client.borderBox.center,offset:ea},s={client:f,page:{selection:ca(f.selection,c.scroll.initial),borderBoxCenter:ca(f.selection,c.scroll.initial),offset:ca(f.selection,c.scroll.diff.value)}},u=Hd(o.droppables).every(m=>!m.isFixedOnPage),{impact:d,afterCritical:h}=D6({draggable:n,home:l,draggables:o.draggables,viewport:c});return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:a,dimensions:o,initial:s,current:s,isWindowScrollAllowed:u,impact:d,afterCritical:h,onLiftImpact:d,viewport:c,scrollJumpRequest:null,forceShouldAnimate:null}}if(t.type==="COLLECTION_STARTING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"?e:(e.phase!=="DRAGGING"&&un(),{...e,phase:"COLLECTING"});if(t.type==="PUBLISH_WHILE_DRAGGING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"||un(),qW({state:e,published:t.payload});if(t.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;mo(e)||un();const{client:r}=t.payload;return Zi(r,e.current.client.selection)?e:Su({state:e,clientSelection:r,impact:B0(e)?e.impact:null})}if(t.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return _m(e);mo(e)||un();const{id:r,newScroll:i}=t.payload,c=e.dimensions.droppables[r];if(!c)return e;const o=s1(c,i);return wm(e,o,!1)}if(t.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;mo(e)||un();const{id:r,isEnabled:i}=t.payload,c=e.dimensions.droppables[r];c||un(),c.isEnabled===i&&un();const o={...c,isEnabled:i};return wm(e,o,!0)}if(t.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;mo(e)||un();const{id:r,isCombineEnabled:i}=t.payload,c=e.dimensions.droppables[r];c||un(),c.isCombineEnabled===i&&un();const o={...c,isCombineEnabled:i};return wm(e,o,!0)}if(t.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;mo(e)||un(),e.isWindowScrollAllowed||un();const r=t.payload.newScroll;if(Zi(e.viewport.scroll.current,r))return _m(e);const i=x6(e.viewport,r);return B0(e)?P6({state:e,viewport:i}):Su({state:e,viewport:i})}if(t.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!mo(e))return e;const r=t.payload.maxScroll;if(Zi(r,e.viewport.scroll.max))return e;const i={...e.viewport,scroll:{...e.viewport.scroll,max:r}};return{...e,viewport:i}}if(t.type==="MOVE_UP"||t.type==="MOVE_DOWN"||t.type==="MOVE_LEFT"||t.type==="MOVE_RIGHT"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&un();const r=MW({state:e,type:t.type});return r?Su({state:e,impact:r.impact,clientSelection:r.clientSelection,scrollJumpRequest:r.scrollJumpRequest}):e}if(t.type==="DROP_PENDING"){const r=t.payload.reason;return e.phase!=="COLLECTING"&&un(),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:r}}if(t.type==="DROP_ANIMATE"){const{completed:r,dropDuration:i,newHomeClientOffset:c}=t.payload;return e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||un(),{phase:"DROP_ANIMATING",completed:r,dropDuration:i,newHomeClientOffset:c,dimensions:e.dimensions}}if(t.type==="DROP_COMPLETE"){const{completed:r}=t.payload;return{phase:"IDLE",completed:r,shouldFlush:!1}}return e};const UW=e=>({type:"BEFORE_INITIAL_CAPTURE",payload:e}),HW=e=>({type:"LIFT",payload:e}),VW=e=>({type:"INITIAL_PUBLISH",payload:e}),YW=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),GW=()=>({type:"COLLECTION_STARTING",payload:null}),XW=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),ZW=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),KW=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),E6=e=>({type:"MOVE",payload:e}),JW=e=>({type:"MOVE_BY_WINDOW_SCROLL",payload:e}),QW=e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}),eU=()=>({type:"MOVE_UP",payload:null}),tU=()=>({type:"MOVE_DOWN",payload:null}),nU=()=>({type:"MOVE_RIGHT",payload:null}),rU=()=>({type:"MOVE_LEFT",payload:null}),g1=()=>({type:"FLUSH",payload:null}),aU=e=>({type:"DROP_ANIMATE",payload:e}),m1=e=>({type:"DROP_COMPLETE",payload:e}),R6=e=>({type:"DROP",payload:e}),iU=e=>({type:"DROP_PENDING",payload:e}),L6=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});var oU=e=>t=>{let{getState:r,dispatch:i}=t;return c=>o=>{if(o.type!=="LIFT"){c(o);return}const{id:a,clientSelection:n,movementMode:l}=o.payload,f=r();f.phase==="DROP_ANIMATING"&&i(m1({completed:f.completed})),r().phase!=="IDLE"&&un(),i(g1()),i(UW({draggableId:a,movementMode:l}));const u={draggableId:a,scrollOptions:{shouldPublishImmediately:l==="SNAP"}},{critical:d,dimensions:h,viewport:p}=e.startPublishing(u);i(VW({critical:d,dimensions:h,clientSelection:n,movementMode:l,viewport:p}))}},lU=e=>()=>t=>r=>{r.type==="INITIAL_PUBLISH"&&e.dragging(),r.type==="DROP_ANIMATE"&&e.dropping(r.payload.completed.result.reason),(r.type==="FLUSH"||r.type==="DROP_COMPLETE")&&e.resting(),t(r)};const v1={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Fu={opacity:{drop:0,combining:.7},scale:{drop:.75}},I6={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},fo=`${I6.outOfTheWay}s ${v1.outOfTheWay}`,Cu={fluid:`opacity ${fo}`,snap:`transform ${fo}, opacity ${fo}`,drop:e=>{const t=`${e}s ${v1.drop}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${fo}`,placeholder:`height ${fo}, width ${fo}, margin ${fo}`},u3=e=>Zi(e,ea)?void 0:`translate(${e.x}px, ${e.y}px)`,z0={moveTo:u3,drop:(e,t)=>{const r=u3(e);if(r)return t?`${r} scale(${Fu.scale.drop})`:r}},{minDropTime:q0,maxDropTime:F6}=I6,sU=F6-q0,c3=1500,uU=.6;var cU=e=>{let{current:t,destination:r,reason:i}=e;const c=Ru(t,r);if(c<=0)return q0;if(c>=c3)return F6;const o=c/c3,a=q0+sU*o,n=i==="CANCEL"?a*uU:a;return Number(n.toFixed(2))},fU=e=>{let{impact:t,draggable:r,dimensions:i,viewport:c,afterCritical:o}=e;const{draggables:a,droppables:n}=i,l=Ia(t),f=l?n[l]:null,s=n[r.descriptor.droppableId],u=A6({impact:t,draggable:r,draggables:a,afterCritical:o,droppable:f||s,viewport:c});return Ea(u,r.client.borderBox.center)},dU=e=>{let{draggables:t,reason:r,lastImpact:i,home:c,viewport:o,onLiftImpact:a}=e;return!i.at||r!=="DROP"?{impact:O6({draggables:t,impact:a,destination:c,viewport:o,forceShouldAnimate:!0}),didDropInsideDroppable:!1}:i.at.type==="REORDER"?{impact:i,didDropInsideDroppable:!0}:{impact:{...i,displaced:Lu},didDropInsideDroppable:!0}};const hU=e=>{let{getState:t,dispatch:r}=e;return i=>c=>{if(c.type!=="DROP"){i(c);return}const o=t(),a=c.payload.reason;if(o.phase==="COLLECTING"){r(iU({reason:a}));return}if(o.phase==="IDLE")return;o.phase==="DROP_PENDING"&&o.isWaiting&&un(),o.phase==="DRAGGING"||o.phase==="DROP_PENDING"||un();const l=o.critical,f=o.dimensions,s=f.draggables[o.critical.draggable.id],{impact:u,didDropInsideDroppable:d}=dU({reason:a,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),h=d?u1(u):null,p=d?Vd(u):null,m={index:l.draggable.index,droppableId:l.droppable.id},y={draggableId:s.descriptor.id,type:s.descriptor.type,source:m,reason:a,mode:o.movementMode,destination:h,combine:p},v=fU({impact:u,draggable:s,dimensions:f,viewport:o.viewport,afterCritical:o.afterCritical}),g={critical:o.critical,afterCritical:o.afterCritical,result:y,impact:u};if(!(!Zi(o.current.client.offset,v)||!!y.combine)){r(m1({completed:g}));return}const x=cU({current:o.current.client.offset,destination:v,reason:a});r(aU({newHomeClientOffset:v,dropDuration:x,completed:g}))}};var pU=hU,N6=()=>({x:window.pageXOffset,y:window.pageYOffset});function gU(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}function mU(e){let{onWindowScroll:t}=e;function r(){t(N6())}const i=Eu(r),c=gU(i);let o=Xi;function a(){return o!==Xi}function n(){a()&&un(),o=Wa(window,[c])}function l(){a()||un(),i.cancel(),o(),o=Xi}return{start:n,stop:l,isActive:a}}const vU=e=>e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH",yU=e=>{const t=mU({onWindowScroll:r=>{e.dispatch(JW({newScroll:r}))}});return r=>i=>{!t.isActive()&&i.type==="INITIAL_PUBLISH"&&t.start(),t.isActive()&&vU(i)&&t.stop(),r(i)}};var bU=yU,xU=e=>{let t=!1,r=!1;const i=setTimeout(()=>{r=!0}),c=o=>{t||r||(t=!0,e(o),clearTimeout(i))};return c.wasCalled=()=>t,c},wU=()=>{const e=[],t=c=>{const o=e.findIndex(n=>n.timerId===c);o===-1&&un();const[a]=e.splice(o,1);a.callback()};return{add:c=>{const o=setTimeout(()=>t(o)),a={timerId:o,callback:c};e.push(a)},flush:()=>{if(!e.length)return;const c=[...e];e.length=0,c.forEach(o=>{clearTimeout(o.timerId),o.callback()})}}};const _U=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.droppableId===t.droppableId&&e.index===t.index,TU=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.draggableId===t.draggableId&&e.droppableId===t.droppableId,kU=(e,t)=>{if(e===t)return!0;const r=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,i=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return r&&i},Ns=(e,t)=>{t()},Xc=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function Tm(e,t,r,i){if(!e){r(i(t));return}const c=xU(r);e(t,{announce:c}),c.wasCalled()||r(i(t))}var MU=(e,t)=>{const r=wU();let i=null;const c=(u,d)=>{i&&un(),Ns("onBeforeCapture",()=>{const h=e().onBeforeCapture;h&&h({draggableId:u,mode:d})})},o=(u,d)=>{i&&un(),Ns("onBeforeDragStart",()=>{const h=e().onBeforeDragStart;h&&h(Xc(u,d))})},a=(u,d)=>{i&&un();const h=Xc(u,d);i={mode:d,lastCritical:u,lastLocation:h.source,lastCombine:null},r.add(()=>{Ns("onDragStart",()=>Tm(e().onDragStart,h,t,gf.onDragStart))})},n=(u,d)=>{const h=u1(d),p=Vd(d);i||un();const m=!kU(u,i.lastCritical);m&&(i.lastCritical=u);const y=!_U(i.lastLocation,h);y&&(i.lastLocation=h);const v=!TU(i.lastCombine,p);if(v&&(i.lastCombine=p),!m&&!y&&!v)return;const g={...Xc(u,i.mode),combine:p,destination:h};r.add(()=>{Ns("onDragUpdate",()=>Tm(e().onDragUpdate,g,t,gf.onDragUpdate))})},l=()=>{i||un(),r.flush()},f=u=>{i||un(),i=null,Ns("onDragEnd",()=>Tm(e().onDragEnd,u,t,gf.onDragEnd))};return{beforeCapture:c,beforeStart:o,start:a,update:n,flush:l,drop:f,abort:()=>{if(!i)return;const u={...Xc(i.lastCritical,i.mode),combine:null,destination:null,reason:"CANCEL"};f(u)}}},SU=(e,t)=>{const r=MU(e,t);return i=>c=>o=>{if(o.type==="BEFORE_INITIAL_CAPTURE"){r.beforeCapture(o.payload.draggableId,o.payload.movementMode);return}if(o.type==="INITIAL_PUBLISH"){const n=o.payload.critical;r.beforeStart(n,o.payload.movementMode),c(o),r.start(n,o.payload.movementMode);return}if(o.type==="DROP_COMPLETE"){const n=o.payload.completed.result;r.flush(),c(o),r.drop(n);return}if(c(o),o.type==="FLUSH"){r.abort();return}const a=i.getState();a.phase==="DRAGGING"&&r.update(a.critical,a.impact)}};const CU=e=>t=>r=>{if(r.type!=="DROP_ANIMATION_FINISHED"){t(r);return}const i=e.getState();i.phase!=="DROP_ANIMATING"&&un(),e.dispatch(m1({completed:i.completed}))};var OU=CU;const AU=e=>{let t=null,r=null;function i(){r&&(cancelAnimationFrame(r),r=null),t&&(t(),t=null)}return c=>o=>{if((o.type==="FLUSH"||o.type==="DROP_COMPLETE"||o.type==="DROP_ANIMATION_FINISHED")&&i(),c(o),o.type!=="DROP_ANIMATE")return;const a={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){e.getState().phase==="DROP_ANIMATING"&&e.dispatch(L6())}};r=requestAnimationFrame(()=>{r=null,t=Wa(window,[a])})}};var PU=AU,DU=e=>()=>t=>r=>{(r.type==="DROP_COMPLETE"||r.type==="FLUSH"||r.type==="DROP_ANIMATE")&&e.stopPublishing(),t(r)},EU=e=>{let t=!1;return()=>r=>i=>{if(i.type==="INITIAL_PUBLISH"){t=!0,e.tryRecordFocus(i.payload.critical.draggable.id),r(i),e.tryRestoreFocusRecorded();return}if(r(i),!!t){if(i.type==="FLUSH"){t=!1,e.tryRestoreFocusRecorded();return}if(i.type==="DROP_COMPLETE"){t=!1;const c=i.payload.completed.result;c.combine&&e.tryShiftRecord(c.draggableId,c.combine.draggableId),e.tryRestoreFocusRecorded()}}}};const RU=e=>e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH";var LU=e=>t=>r=>i=>{if(RU(i)){e.stop(),r(i);return}if(i.type==="INITIAL_PUBLISH"){r(i);const c=t.getState();c.phase!=="DRAGGING"&&un(),e.start(c);return}r(i),e.scroll(t.getState())};const IU=e=>t=>r=>{if(t(r),r.type!=="PUBLISH_WHILE_DRAGGING")return;const i=e.getState();i.phase==="DROP_PENDING"&&(i.isWaiting||e.dispatch(R6({reason:i.reason})))};var FU=IU;const NU=Q4;var jU=e=>{let{dimensionMarshal:t,focusMarshal:r,styleMarshal:i,getResponders:c,announce:o,autoScroller:a}=e;return J4(WW,NU(eq(lU(i),DU(t),oU(t),pU,OU,PU,FU,LU(a),bU,EU(r),SU(c,o))))};const km=()=>({additions:{},removals:{},modified:{}});function $U(e){let{registry:t,callbacks:r}=e,i=km(),c=null;const o=()=>{c||(r.collectionStarting(),c=requestAnimationFrame(()=>{c=null;const{additions:f,removals:s,modified:u}=i,d=Object.keys(f).map(m=>t.draggable.getById(m).getDimension(ea)).sort((m,y)=>m.descriptor.index-y.descriptor.index),h=Object.keys(u).map(m=>{const v=t.droppable.getById(m).callbacks.getScrollWhileDragging();return{droppableId:m,scroll:v}}),p={additions:d,removals:Object.keys(s),modified:h};i=km(),r.publish(p)}))};return{add:f=>{const s=f.descriptor.id;i.additions[s]=f,i.modified[f.descriptor.droppableId]=!0,i.removals[s]&&delete i.removals[s],o()},remove:f=>{const s=f.descriptor;i.removals[s.id]=!0,i.modified[s.droppableId]=!0,i.additions[s.id]&&delete i.additions[s.id],o()},stop:()=>{c&&(cancelAnimationFrame(c),c=null,i=km())}}}var j6=e=>{let{scrollHeight:t,scrollWidth:r,height:i,width:c}=e;const o=Ea({x:r,y:t},{x:c,y:i});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},$6=()=>{const e=document.documentElement;return e||un(),e},B6=()=>{const e=$6();return j6({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},BU=()=>{const e=N6(),t=B6(),r=e.y,i=e.x,c=$6(),o=c.clientWidth,a=c.clientHeight,n=i+o,l=r+a;return{frame:Qa({top:r,left:i,right:n,bottom:l}),scroll:{initial:e,current:e,max:t,diff:{value:ea,displacement:ea}}}},zU=e=>{let{critical:t,scrollOptions:r,registry:i}=e;const c=BU(),o=c.scroll.current,a=t.droppable,n=i.droppable.getAllByType(a.type).map(u=>u.callbacks.getDimensionAndWatchScroll(o,r)),l=i.draggable.getAllByType(t.draggable.type).map(u=>u.getDimension(o));return{dimensions:{draggables:p6(l),droppables:h6(n)},critical:t,viewport:c}};function f3(e,t,r){return!(r.descriptor.id===t.id||r.descriptor.type!==t.type||e.droppable.getById(r.descriptor.droppableId).descriptor.mode!=="virtual")}var qU=(e,t)=>{let r=null;const i=$U({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),c=(d,h)=>{e.droppable.exists(d)||un(),r&&t.updateDroppableIsEnabled({id:d,isEnabled:h})},o=(d,h)=>{r&&(e.droppable.exists(d)||un(),t.updateDroppableIsCombineEnabled({id:d,isCombineEnabled:h}))},a=(d,h)=>{r&&(e.droppable.exists(d)||un(),t.updateDroppableScroll({id:d,newScroll:h}))},n=(d,h)=>{r&&e.droppable.getById(d).callbacks.scroll(h)},l=()=>{if(!r)return;i.stop();const d=r.critical.droppable;e.droppable.getAllByType(d.type).forEach(h=>h.callbacks.dragStopped()),r.unsubscribe(),r=null},f=d=>{r||un();const h=r.critical.draggable;d.type==="ADDITION"&&f3(e,h,d.value)&&i.add(d.value),d.type==="REMOVAL"&&f3(e,h,d.value)&&i.remove(d.value)};return{updateDroppableIsEnabled:c,updateDroppableIsCombineEnabled:o,scrollDroppable:n,updateDroppableScroll:a,startPublishing:d=>{r&&un();const h=e.draggable.getById(d.draggableId),p=e.droppable.getById(h.descriptor.droppableId),m={draggable:h.descriptor,droppable:p.descriptor},y=e.subscribe(f);return r={critical:m,unsubscribe:y},zU({critical:m,registry:e,scrollOptions:d.scrollOptions})},stopPublishing:l}},z6=(e,t)=>e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP",WU=e=>{window.scrollBy(e.x,e.y)};const UU=Qr(e=>Hd(e).filter(t=>!(!t.isEnabled||!t.frame))),HU=(e,t)=>UU(t).find(i=>(i.frame||un(),k6(i.frame.pageMarginBox)(e)))||null;var VU=e=>{let{center:t,destination:r,droppables:i}=e;if(r){const o=i[r];return o.frame?o:null}return HU(t,i)};const Nu={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var YU=function(e,t,r){r===void 0&&(r=()=>Nu);const i=r(),c=e[t.size]*i.startFromPercentage,o=e[t.size]*i.maxScrollAtPercentage;return{startScrollingFrom:c,maxScrollValueAt:o}},q6=e=>{let{startOfRange:t,endOfRange:r,current:i}=e;const c=r-t;return c===0?0:(i-t)/c},y1=1,GU=function(e,t,r){r===void 0&&(r=()=>Nu);const i=r();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return i.maxPixelScroll;if(e===t.startScrollingFrom)return y1;const o=1-q6({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),a=i.maxPixelScroll*i.ease(o);return Math.ceil(a)},XU=(e,t,r)=>{const i=r(),c=i.durationDampening.accelerateAt,o=i.durationDampening.stopDampeningAt,a=t,n=o,f=Date.now()-a;if(f>=o)return e;if(f{let{distanceToEdge:t,thresholds:r,dragStartTime:i,shouldUseTimeDampening:c,getAutoScrollerOptions:o}=e;const a=GU(t,r,o);return a===0?0:c?Math.max(XU(a,i,o),y1):a},h3=e=>{let{container:t,distanceToEdges:r,dragStartTime:i,axis:c,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const n=YU(t,c,a);return r[c.end]{let{container:t,subject:r,proposedScroll:i}=e;const c=r.height>t.height,o=r.width>t.width;return!o&&!c?i:o&&c?null:{x:o?0:i.x,y:c?0:i.y}};const KU=d6(e=>e===0?0:e);var W6=e=>{let{dragStartTime:t,container:r,subject:i,center:c,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const n={top:c.y-r.top,right:r.right-c.x,bottom:r.bottom-c.y,left:c.x-r.left},l=h3({container:r,distanceToEdges:n,dragStartTime:t,axis:c1,shouldUseTimeDampening:o,getAutoScrollerOptions:a}),f=h3({container:r,distanceToEdges:n,dragStartTime:t,axis:v6,shouldUseTimeDampening:o,getAutoScrollerOptions:a}),s=KU({x:f,y:l});if(Zi(s,ea))return null;const u=ZU({container:r,subject:i,proposedScroll:s});return u?Zi(u,ea)?null:u:null};const JU=d6(e=>e===0?0:e>0?1:-1),b1=(()=>{const e=(t,r)=>t<0?t:t>r?t-r:0;return t=>{let{current:r,max:i,change:c}=t;const o=ca(r,c),a={x:e(o.x,i.x),y:e(o.y,i.y)};return Zi(a,ea)?null:a}})(),U6=e=>{let{max:t,current:r,change:i}=e;const c={x:Math.max(r.x,t.x),y:Math.max(r.y,t.y)},o=JU(i),a=b1({max:c,current:r,change:o});return!a||o.x!==0&&a.x===0||o.y!==0&&a.y===0},x1=(e,t)=>U6({current:e.scroll.current,max:e.scroll.max,change:t}),QU=(e,t)=>{if(!x1(e,t))return null;const r=e.scroll.max,i=e.scroll.current;return b1({current:i,max:r,change:t})},w1=(e,t)=>{const r=e.frame;return r?U6({current:r.scroll.current,max:r.scroll.max,change:t}):!1},eH=(e,t)=>{const r=e.frame;return!r||!w1(e,t)?null:b1({current:r.scroll.current,max:r.scroll.max,change:t})};var tH=e=>{let{viewport:t,subject:r,center:i,dragStartTime:c,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const n=W6({dragStartTime:c,container:t.frame,subject:r,center:i,shouldUseTimeDampening:o,getAutoScrollerOptions:a});return n&&x1(t,n)?n:null},nH=e=>{let{droppable:t,subject:r,center:i,dragStartTime:c,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const n=t.frame;if(!n)return null;const l=W6({dragStartTime:c,container:n.pageMarginBox,subject:r,center:i,shouldUseTimeDampening:o,getAutoScrollerOptions:a});return l&&w1(t,l)?l:null},p3=e=>{let{state:t,dragStartTime:r,shouldUseTimeDampening:i,scrollWindow:c,scrollDroppable:o,getAutoScrollerOptions:a}=e;const n=t.current.page.borderBoxCenter,f=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){const d=t.viewport,h=tH({dragStartTime:r,viewport:d,subject:f,center:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a});if(h){c(h);return}}const s=VU({center:n,destination:Ia(t.impact),droppables:t.dimensions.droppables});if(!s)return;const u=nH({dragStartTime:r,droppable:s,subject:f,center:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a});u&&o(s.descriptor.id,u)},rH=e=>{let{scrollWindow:t,scrollDroppable:r,getAutoScrollerOptions:i=()=>Nu}=e;const c=Eu(t),o=Eu(r);let a=null;const n=s=>{a||un();const{shouldUseTimeDampening:u,dragStartTime:d}=a;p3({state:s,scrollWindow:c,scrollDroppable:o,dragStartTime:d,shouldUseTimeDampening:u,getAutoScrollerOptions:i})};return{start:s=>{a&&un();const u=Date.now();let d=!1;const h=()=>{d=!0};p3({state:s,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:h,scrollDroppable:h,getAutoScrollerOptions:i}),a={dragStartTime:u,shouldUseTimeDampening:d},d&&n(s)},stop:()=>{a&&(c.cancel(),o.cancel(),a=null)},scroll:n}},aH=e=>{let{move:t,scrollDroppable:r,scrollWindow:i}=e;const c=(l,f)=>{const s=ca(l.current.client.selection,f);t({client:s})},o=(l,f)=>{if(!w1(l,f))return f;const s=eH(l,f);if(!s)return r(l.descriptor.id,f),null;const u=Ea(f,s);return r(l.descriptor.id,u),Ea(f,u)},a=(l,f,s)=>{if(!l||!x1(f,s))return s;const u=QU(f,s);if(!u)return i(s),null;const d=Ea(s,u);return i(d),Ea(s,d)};return l=>{const f=l.scrollJumpRequest;if(!f)return;const s=Ia(l.impact);s||un();const u=o(l.dimensions.droppables[s],f);if(!u)return;const d=l.viewport,h=a(l.isWindowScrollAllowed,d,u);h&&c(l,h)}},iH=e=>{let{scrollDroppable:t,scrollWindow:r,move:i,getAutoScrollerOptions:c}=e;const o=rH({scrollWindow:r,scrollDroppable:t,getAutoScrollerOptions:c}),a=aH({move:i,scrollWindow:r,scrollDroppable:t});return{scroll:f=>{if(!(c().disabled||f.phase!=="DRAGGING")){if(f.movementMode==="FLUID"){o.scroll(f);return}f.scrollJumpRequest&&a(f)}},start:o.start,stop:o.stop}};const Ol="data-rfd",Al=(()=>{const e=`${Ol}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),W0=(()=>{const e=`${Ol}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),oH=(()=>{const e=`${Ol}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),g3={contextId:`${Ol}-scroll-container-context-id`},lH=e=>t=>`[${t}="${e}"]`,js=(e,t)=>e.map(r=>{const i=r.styles[t];return i?`${r.selector} { ${i} }`:""}).join(" "),sH="pointer-events: none;";var uH=e=>{const t=lH(e),r=(()=>{const n=` + `},$q={dragHandleUsageInstructions:Iq,onDragStart:Fq,onDragUpdate:Nq,onDragEnd:jq};var gf=$q;const ea={x:0,y:0},ca=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),Ea=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),Zi=(e,t)=>e.x===t.x&&e.y===t.y,Wl=e=>({x:e.x!==0?-e.x:0,y:e.y!==0?-e.y:0}),Ao=function(e,t,r){return r===void 0&&(r=0),e==="x"?{x:t,y:r}:{x:r,y:t}},Ru=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),t3=(e,t)=>Math.min(...t.map(r=>Ru(e,r))),d6=e=>t=>({x:e(t.x),y:e(t.y)});var Bq=(e,t)=>{const r=Qa({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return r.width<=0||r.height<=0?null:r};const lc=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),n3=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],zq={top:0,right:0,bottom:0,left:0},qq=(e,t)=>t?lc(e,t.scroll.diff.displacement):e,Wq=(e,t,r)=>r&&r.increasedBy?{...e,[t.end]:e[t.end]+r.increasedBy[t.line]}:e,Uq=(e,t)=>t&&t.shouldClipSubject?Bq(t.pageMarginBox,e):Qa(e);var Cl=e=>{let{page:t,withPlaceholder:r,axis:i,frame:u}=e;const o=qq(t.marginBox,u),a=Wq(o,i,r),n=Uq(a,u);return{page:t,withPlaceholder:r,active:n}},s1=(e,t)=>{e.frame||un();const r=e.frame,i=Ea(t,r.scroll.initial),u=Wl(i),o={...r,scroll:{initial:r.scroll.initial,current:t,diff:{value:i,displacement:u},max:r.scroll.max}},a=Cl({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o});return{...e,frame:o,subject:a}};const h6=Qr(e=>e.reduce((t,r)=>(t[r.descriptor.id]=r,t),{})),p6=Qr(e=>e.reduce((t,r)=>(t[r.descriptor.id]=r,t),{})),Hd=Qr(e=>Object.values(e)),Hq=Qr(e=>Object.values(e));var Ul=Qr((e,t)=>Hq(t).filter(i=>e===i.descriptor.droppableId).sort((i,u)=>i.descriptor.index-u.descriptor.index));function u1(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function Vd(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var Yd=Qr((e,t)=>t.filter(r=>r.descriptor.id!==e.descriptor.id)),Vq=e=>{let{isMovingForward:t,draggable:r,destination:i,insideDestination:u,previousImpact:o}=e;if(!i.isCombineEnabled||!u1(o))return null;function n(p){const m={type:"COMBINE",combine:{draggableId:p,droppableId:i.descriptor.id}};return{...o,at:m}}const l=o.displaced.all,f=l.length?l[0]:null;if(t)return f?n(f):null;const s=Yd(r,u);if(!f){if(!s.length)return null;const p=s[s.length-1];return n(p.descriptor.id)}const c=s.findIndex(p=>p.descriptor.id===f);c===-1&&un();const d=c-1;if(d<0)return null;const h=s[d];return n(h.descriptor.id)},Hl=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const g6={point:ea,value:0},Lu={invisible:{},visible:{},all:[]},Yq={displaced:Lu,displacedBy:g6,at:null};var Gq=Yq,Ha=(e,t)=>r=>e<=r&&r<=t,m6=e=>{const t=Ha(e.top,e.bottom),r=Ha(e.left,e.right);return i=>{if(t(i.top)&&t(i.bottom)&&r(i.left)&&r(i.right))return!0;const o=t(i.top)||t(i.bottom),a=r(i.left)||r(i.right);if(o&&a)return!0;const l=i.tope.bottom,f=i.lefte.right;return l&&f?!0:l&&a||f&&o}},Xq=e=>{const t=Ha(e.top,e.bottom),r=Ha(e.left,e.right);return i=>t(i.top)&&t(i.bottom)&&r(i.left)&&r(i.right)};const c1={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},v6={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};var Zq=e=>t=>{const r=Ha(t.top,t.bottom),i=Ha(t.left,t.right);return u=>e===c1?r(u.top)&&r(u.bottom):i(u.left)&&i(u.right)};const Kq=(e,t)=>{const r=t.frame?t.frame.scroll.diff.displacement:ea;return lc(e,r)},Jq=(e,t,r)=>t.subject.active?r(t.subject.active)(e):!1,Qq=(e,t,r)=>r(t)(e),f1=e=>{let{target:t,destination:r,viewport:i,withDroppableDisplacement:u,isVisibleThroughFrameFn:o}=e;const a=u?Kq(t,r):t;return Jq(a,r,o)&&Qq(a,i,o)},eW=e=>f1({...e,isVisibleThroughFrameFn:m6}),y6=e=>f1({...e,isVisibleThroughFrameFn:Xq}),tW=e=>f1({...e,isVisibleThroughFrameFn:Zq(e.destination.axis)}),nW=(e,t,r)=>{if(typeof r=="boolean")return r;if(!t)return!0;const{invisible:i,visible:u}=t;if(i[e])return!1;const o=u[e];return o?o.shouldAnimate:!0};function rW(e,t){const r=e.page.marginBox,i={top:t.point.y,right:0,bottom:0,left:t.point.x};return Qa(o1(r,i))}function Iu(e){let{afterDragging:t,destination:r,displacedBy:i,viewport:u,forceShouldAnimate:o,last:a}=e;return t.reduce(function(l,f){const s=rW(f,i),c=f.descriptor.id;if(l.all.push(c),!eW({target:s,destination:r,viewport:u,withDroppableDisplacement:!0}))return l.invisible[f.descriptor.id]=!0,l;const h=nW(c,a,o),p={draggableId:c,shouldAnimate:h};return l.visible[c]=p,l},{all:[],visible:{},invisible:{}})}function aW(e,t){if(!e.length)return 0;const r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}function r3(e){let{insideDestination:t,inHomeList:r,displacedBy:i,destination:u}=e;const o=aW(t,{inHomeList:r});return{displaced:Lu,displacedBy:i,at:{type:"REORDER",destination:{droppableId:u.descriptor.id,index:o}}}}function Uf(e){let{draggable:t,insideDestination:r,destination:i,viewport:u,displacedBy:o,last:a,index:n,forceShouldAnimate:l}=e;const f=Hl(t,i);if(n==null)return r3({insideDestination:r,inHomeList:f,displacedBy:o,destination:i});const s=r.find(m=>m.descriptor.index===n);if(!s)return r3({insideDestination:r,inHomeList:f,displacedBy:o,destination:i});const c=Yd(t,r),d=r.indexOf(s),h=c.slice(d);return{displaced:Iu({afterDragging:h,destination:i,displacedBy:o,last:a,viewport:u.frame,forceShouldAnimate:l}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:n}}}}function Qi(e,t){return!!t.effected[e]}var iW=e=>{let{isMovingForward:t,destination:r,draggables:i,combine:u,afterCritical:o}=e;if(!r.isCombineEnabled)return null;const a=u.draggableId,l=i[a].descriptor.index;return Qi(a,o)?t?l:l-1:t?l+1:l},oW=e=>{let{isMovingForward:t,isInHomeList:r,insideDestination:i,location:u}=e;if(!i.length)return null;const o=u.index,a=t?o+1:o-1,n=i[0].descriptor.index,l=i[i.length-1].descriptor.index,f=r?l:l+1;return af?null:a},lW=e=>{let{isMovingForward:t,isInHomeList:r,draggable:i,draggables:u,destination:o,insideDestination:a,previousImpact:n,viewport:l,afterCritical:f}=e;const s=n.at;if(s||un(),s.type==="REORDER"){const d=oW({isMovingForward:t,isInHomeList:r,location:s.destination,insideDestination:a});return d==null?null:Uf({draggable:i,insideDestination:a,destination:o,viewport:l,last:n.displaced,displacedBy:n.displacedBy,index:d})}const c=iW({isMovingForward:t,destination:o,displaced:n.displaced,draggables:u,combine:s.combine,afterCritical:f});return c==null?null:Uf({draggable:i,insideDestination:a,destination:o,viewport:l,last:n.displaced,displacedBy:n.displacedBy,index:c})},sW=e=>{let{displaced:t,afterCritical:r,combineWith:i,displacedBy:u}=e;const o=!!(t.visible[i]||t.invisible[i]);return Qi(i,r)?o?ea:Wl(u.point):o?u.point:ea},uW=e=>{let{afterCritical:t,impact:r,draggables:i}=e;const u=Vd(r);u||un();const o=u.draggableId,a=i[o].page.borderBox.center,n=sW({displaced:r.displaced,afterCritical:t,combineWith:o,displacedBy:r.displacedBy});return ca(a,n)};const b6=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,cW=(e,t)=>t.margin[e.end]+t.borderBox[e.size]/2,d1=(e,t,r)=>t[e.crossAxisStart]+r.margin[e.crossAxisStart]+r.borderBox[e.crossAxisSize]/2,a3=e=>{let{axis:t,moveRelativeTo:r,isMoving:i}=e;return Ao(t.line,r.marginBox[t.end]+b6(t,i),d1(t,r.marginBox,i))},i3=e=>{let{axis:t,moveRelativeTo:r,isMoving:i}=e;return Ao(t.line,r.marginBox[t.start]-cW(t,i),d1(t,r.marginBox,i))},fW=e=>{let{axis:t,moveInto:r,isMoving:i}=e;return Ao(t.line,r.contentBox[t.start]+b6(t,i),d1(t,r.contentBox,i))};var dW=e=>{let{impact:t,draggable:r,draggables:i,droppable:u,afterCritical:o}=e;const a=Ul(u.descriptor.id,i),n=r.page,l=u.axis;if(!a.length)return fW({axis:l,moveInto:u.page,isMoving:n});const{displaced:f,displacedBy:s}=t,c=f.all[0];if(c){const h=i[c];if(Qi(c,o))return i3({axis:l,moveRelativeTo:h.page,isMoving:n});const p=Bf(h.page,s.point);return i3({axis:l,moveRelativeTo:p,isMoving:n})}const d=a[a.length-1];if(d.descriptor.id===r.descriptor.id)return n.borderBox.center;if(Qi(d.descriptor.id,o)){const h=Bf(d.page,Wl(o.displacedBy.point));return a3({axis:l,moveRelativeTo:h,isMoving:n})}return a3({axis:l,moveRelativeTo:d.page,isMoving:n})},$0=(e,t)=>{const r=e.frame;return r?ca(t,r.scroll.diff.displacement):t};const hW=e=>{let{impact:t,draggable:r,droppable:i,draggables:u,afterCritical:o}=e;const a=r.page.borderBox.center,n=t.at;return!i||!n?a:n.type==="REORDER"?dW({impact:t,draggable:r,draggables:u,droppable:i,afterCritical:o}):uW({impact:t,draggables:u,afterCritical:o})};var Gd=e=>{const t=hW(e),r=e.droppable;return r?$0(r,t):t},x6=(e,t)=>{const r=Ea(t,e.scroll.initial),i=Wl(r);return{frame:Qa({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:r,displacement:i}}}};function o3(e,t){return e.map(r=>t[r])}function pW(e,t){for(let r=0;r{let{impact:t,viewport:r,destination:i,draggables:u,maxScrollChange:o}=e;const a=x6(r,ca(r.scroll.current,o)),n=i.frame?s1(i,ca(i.frame.scroll.current,o)):i,l=t.displaced,f=Iu({afterDragging:o3(l.all,u),destination:i,displacedBy:t.displacedBy,viewport:a.frame,last:l,forceShouldAnimate:!1}),s=Iu({afterDragging:o3(l.all,u),destination:n,displacedBy:t.displacedBy,viewport:r.frame,last:l,forceShouldAnimate:!1}),c={},d={},h=[l,f,s];return l.all.forEach(m=>{const y=pW(m,h);if(y){d[m]=y;return}c[m]=!0}),{...t,displaced:{all:l.all,invisible:c,visible:d}}},mW=(e,t)=>ca(e.scroll.diff.displacement,t),h1=e=>{let{pageBorderBoxCenter:t,draggable:r,viewport:i}=e;const u=mW(i,t),o=Ea(u,r.page.borderBox.center);return ca(r.client.borderBox.center,o)},w6=e=>{let{draggable:t,destination:r,newPageBorderBoxCenter:i,viewport:u,withDroppableDisplacement:o,onlyOnMainAxis:a=!1}=e;const n=Ea(i,t.page.borderBox.center),f={target:lc(t.page.borderBox,n),destination:r,withDroppableDisplacement:o,viewport:u};return a?tW(f):y6(f)},vW=e=>{let{isMovingForward:t,draggable:r,destination:i,draggables:u,previousImpact:o,viewport:a,previousPageBorderBoxCenter:n,previousClientSelection:l,afterCritical:f}=e;if(!i.isEnabled)return null;const s=Ul(i.descriptor.id,u),c=Hl(r,i),d=Vq({isMovingForward:t,draggable:r,destination:i,insideDestination:s,previousImpact:o})||lW({isMovingForward:t,isInHomeList:c,draggable:r,draggables:u,destination:i,insideDestination:s,previousImpact:o,viewport:a,afterCritical:f});if(!d)return null;const h=Gd({impact:d,draggable:r,droppable:i,draggables:u,afterCritical:f});if(w6({draggable:r,destination:i,newPageBorderBoxCenter:h,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:h1({pageBorderBoxCenter:h,draggable:r,viewport:a}),impact:d,scrollJumpRequest:null};const m=Ea(h,n),y=gW({impact:d,viewport:a,destination:i,draggables:u,maxScrollChange:m});return{clientSelection:l,impact:y,scrollJumpRequest:m}};const ba=e=>{const t=e.subject.active;return t||un(),t};var yW=e=>{let{isMovingForward:t,pageBorderBoxCenter:r,source:i,droppables:u,viewport:o}=e;const a=i.subject.active;if(!a)return null;const n=i.axis,l=Ha(a[n.start],a[n.end]),f=Hd(u).filter(c=>c!==i).filter(c=>c.isEnabled).filter(c=>!!c.subject.active).filter(c=>m6(o.frame)(ba(c))).filter(c=>{const d=ba(c);return t?a[n.crossAxisEnd]{const d=ba(c),h=Ha(d[n.start],d[n.end]);return l(d[n.start])||l(d[n.end])||h(a[n.start])||h(a[n.end])}).sort((c,d)=>{const h=ba(c)[n.crossAxisStart],p=ba(d)[n.crossAxisStart];return t?h-p:p-h}).filter((c,d,h)=>ba(c)[n.crossAxisStart]===ba(h[0])[n.crossAxisStart]);if(!f.length)return null;if(f.length===1)return f[0];const s=f.filter(c=>Ha(ba(c)[n.start],ba(c)[n.end])(r[n.line]));return s.length===1?s[0]:s.length>1?s.sort((c,d)=>ba(c)[n.start]-ba(d)[n.start])[0]:f.sort((c,d)=>{const h=t3(r,n3(ba(c))),p=t3(r,n3(ba(d)));return h!==p?h-p:ba(c)[n.start]-ba(d)[n.start]})[0]};const l3=(e,t)=>{const r=e.page.borderBox.center;return Qi(e.descriptor.id,t)?Ea(r,t.displacedBy.point):r},bW=(e,t)=>{const r=e.page.borderBox;return Qi(e.descriptor.id,t)?lc(r,Wl(t.displacedBy.point)):r};var xW=e=>{let{pageBorderBoxCenter:t,viewport:r,destination:i,insideDestination:u,afterCritical:o}=e;return u.filter(n=>y6({target:bW(n,o),destination:i,viewport:r.frame,withDroppableDisplacement:!0})).sort((n,l)=>{const f=Ru(t,$0(i,l3(n,o))),s=Ru(t,$0(i,l3(l,o)));return f{const i=e.axis;if(e.descriptor.mode==="virtual")return Ao(i.line,t[i.line]);const u=e.subject.page.contentBox[i.size],l=Ul(e.descriptor.id,r).reduce((f,s)=>f+s.client.marginBox[i.size],0)+t[i.line]-u;return l<=0?null:Ao(i.line,l)},_6=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),T6=(e,t,r)=>{const i=e.frame;Hl(t,e)&&un(),e.subject.withPlaceholder&&un();const u=sc(e.axis,t.displaceBy).point,o=wW(e,u,r),a={placeholderSize:u,increasedBy:o,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!i){const s=Cl({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame});return{...e,subject:s}}const n=o?ca(i.scroll.max,o):i.scroll.max,l=_6(i,n),f=Cl({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:l});return{...e,subject:f,frame:l}},_W=e=>{const t=e.subject.withPlaceholder;t||un();const r=e.frame;if(!r){const a=Cl({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:a}}const i=t.oldFrameMaxScroll;i||un();const u=_6(r,i),o=Cl({page:e.subject.page,axis:e.axis,frame:u,withPlaceholder:null});return{...e,subject:o,frame:u}};var TW=e=>{let{previousPageBorderBoxCenter:t,moveRelativeTo:r,insideDestination:i,draggable:u,draggables:o,destination:a,viewport:n,afterCritical:l}=e;if(!r){if(i.length)return null;const d={displaced:Lu,displacedBy:g6,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},h=Gd({impact:d,draggable:u,droppable:a,draggables:o,afterCritical:l}),p=Hl(u,a)?a:T6(a,u,o);return w6({draggable:u,destination:p,newPageBorderBoxCenter:h,viewport:n.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?d:null}const f=t[a.axis.line]<=r.page.borderBox.center[a.axis.line],s=(()=>{const d=r.descriptor.index;return r.descriptor.id===u.descriptor.id||f?d:d+1})(),c=sc(a.axis,u.displaceBy);return Uf({draggable:u,insideDestination:i,destination:a,viewport:n,displacedBy:c,last:Lu,index:s})},kW=e=>{let{isMovingForward:t,previousPageBorderBoxCenter:r,draggable:i,isOver:u,draggables:o,droppables:a,viewport:n,afterCritical:l}=e;const f=yW({isMovingForward:t,pageBorderBoxCenter:r,source:u,droppables:a,viewport:n});if(!f)return null;const s=Ul(f.descriptor.id,o),c=xW({pageBorderBoxCenter:r,viewport:n,destination:f,insideDestination:s,afterCritical:l}),d=TW({previousPageBorderBoxCenter:r,destination:f,draggable:i,draggables:o,moveRelativeTo:c,insideDestination:s,viewport:n,afterCritical:l});if(!d)return null;const h=Gd({impact:d,draggable:i,droppable:f,draggables:o,afterCritical:l});return{clientSelection:h1({pageBorderBoxCenter:h,draggable:i,viewport:n}),impact:d,scrollJumpRequest:null}},Ia=e=>{const t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null};const MW=(e,t)=>{const r=Ia(e);return r?t[r]:null};var SW=e=>{let{state:t,type:r}=e;const i=MW(t.impact,t.dimensions.droppables),u=!!i,o=t.dimensions.droppables[t.critical.droppable.id],a=i||o,n=a.axis.direction,l=n==="vertical"&&(r==="MOVE_UP"||r==="MOVE_DOWN")||n==="horizontal"&&(r==="MOVE_LEFT"||r==="MOVE_RIGHT");if(l&&!u)return null;const f=r==="MOVE_DOWN"||r==="MOVE_RIGHT",s=t.dimensions.draggables[t.critical.draggable.id],c=t.current.page.borderBoxCenter,{draggables:d,droppables:h}=t.dimensions;return l?vW({isMovingForward:f,previousPageBorderBoxCenter:c,draggable:s,destination:a,draggables:d,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):kW({isMovingForward:f,previousPageBorderBoxCenter:c,draggable:s,isOver:a,draggables:d,droppables:h,viewport:t.viewport,afterCritical:t.afterCritical})};function mo(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function k6(e){const t=Ha(e.top,e.bottom),r=Ha(e.left,e.right);return function(u){return t(u.y)&&r(u.x)}}function CW(e,t){return e.leftt.left&&e.topt.top}function OW(e){let{pageBorderBox:t,draggable:r,candidates:i}=e;const u=r.page.borderBox.center,o=i.map(a=>{const n=a.axis,l=Ao(a.axis.line,t.center[n.line],a.page.borderBox.center[n.crossAxisLine]);return{id:a.descriptor.id,distance:Ru(u,l)}}).sort((a,n)=>n.distance-a.distance);return o[0]?o[0].id:null}function AW(e){let{pageBorderBox:t,draggable:r,droppables:i}=e;const u=Hd(i).filter(o=>{if(!o.isEnabled)return!1;const a=o.subject.active;if(!a||!CW(t,a))return!1;if(k6(a)(t.center))return!0;const n=o.axis,l=a.center[n.crossAxisLine],f=t[n.crossAxisStart],s=t[n.crossAxisEnd],c=Ha(a[n.crossAxisStart],a[n.crossAxisEnd]),d=c(f),h=c(s);return!d&&!h?!0:d?fl});return u.length?u.length===1?u[0].descriptor.id:OW({pageBorderBox:t,draggable:r,candidates:u}):null}const M6=(e,t)=>Qa(lc(e,t));var PW=(e,t)=>{const r=e.frame;return r?M6(t,r.scroll.diff.value):t};function S6(e){let{displaced:t,id:r}=e;return!!(t.visible[r]||t.invisible[r])}function DW(e){let{draggable:t,closest:r,inHomeList:i}=e;return r?i&&r.descriptor.index>t.descriptor.index?r.descriptor.index-1:r.descriptor.index:null}var EW=e=>{let{pageBorderBoxWithDroppableScroll:t,draggable:r,destination:i,insideDestination:u,last:o,viewport:a,afterCritical:n}=e;const l=i.axis,f=sc(i.axis,r.displaceBy),s=f.value,c=t[l.start],d=t[l.end],p=Yd(r,u).find(y=>{const v=y.descriptor.id,g=y.page.borderBox.center[l.line],b=Qi(v,n),x=S6({displaced:o,id:v});return b?x?d<=g:c{let{draggable:t,pageBorderBoxWithDroppableScroll:r,previousImpact:i,destination:u,insideDestination:o,afterCritical:a}=e;if(!u.isCombineEnabled)return null;const n=u.axis,l=sc(u.axis,t.displaceBy),f=l.value,s=r[n.start],c=r[n.end],h=Yd(t,o).find(m=>{const y=m.descriptor.id,v=m.page.borderBox,b=v[n.size]/RW,x=Qi(y,a),_=S6({displaced:i.displaced,id:y});return x?_?c>v[n.start]+b&&cv[n.start]-f+b&&sv[n.start]+f+b&&cv[n.start]+b&&s{let{pageOffset:t,draggable:r,draggables:i,droppables:u,previousImpact:o,viewport:a,afterCritical:n}=e;const l=M6(r.page.borderBox,t),f=AW({pageBorderBox:l,draggable:r,droppables:u});if(!f)return Gq;const s=u[f],c=Ul(s.descriptor.id,i),d=PW(s,l);return LW({pageBorderBoxWithDroppableScroll:d,draggable:r,previousImpact:o,destination:s,insideDestination:c,afterCritical:n})||EW({pageBorderBoxWithDroppableScroll:d,draggable:r,destination:s,insideDestination:c,last:o.displaced,viewport:a,afterCritical:n})},p1=(e,t)=>({...e,[t.descriptor.id]:t});const IW=e=>{let{previousImpact:t,impact:r,droppables:i}=e;const u=Ia(t),o=Ia(r);if(!u||u===o)return i;const a=i[u];if(!a.subject.withPlaceholder)return i;const n=_W(a);return p1(i,n)};var FW=e=>{let{draggable:t,draggables:r,droppables:i,previousImpact:u,impact:o}=e;const a=IW({previousImpact:u,impact:o,droppables:i}),n=Ia(o);if(!n)return a;const l=i[n];if(Hl(t,l)||l.subject.withPlaceholder)return a;const f=T6(l,t,r);return p1(a,f)},Su=e=>{let{state:t,clientSelection:r,dimensions:i,viewport:u,impact:o,scrollJumpRequest:a}=e;const n=u||t.viewport,l=i||t.dimensions,f=r||t.current.client.selection,s=Ea(f,t.initial.client.selection),c={offset:s,selection:f,borderBoxCenter:ca(t.initial.client.borderBoxCenter,s)},d={selection:ca(c.selection,n.scroll.current),borderBoxCenter:ca(c.borderBoxCenter,n.scroll.current),offset:ca(c.offset,n.scroll.diff.value)},h={client:c,page:d};if(t.phase==="COLLECTING")return{...t,dimensions:l,viewport:n,current:h};const p=l.draggables[t.critical.draggable.id],m=o||C6({pageOffset:d.offset,draggable:p,draggables:l.draggables,droppables:l.droppables,previousImpact:t.impact,viewport:n,afterCritical:t.afterCritical}),y=FW({draggable:p,impact:m,previousImpact:t.impact,draggables:l.draggables,droppables:l.droppables});return{...t,current:h,dimensions:{draggables:l.draggables,droppables:y},impact:m,viewport:n,scrollJumpRequest:a||null,forceShouldAnimate:a?!1:null}};function NW(e,t){return e.map(r=>t[r])}var O6=e=>{let{impact:t,viewport:r,draggables:i,destination:u,forceShouldAnimate:o}=e;const a=t.displaced,n=NW(a.all,i),l=Iu({afterDragging:n,destination:u,displacedBy:t.displacedBy,viewport:r.frame,forceShouldAnimate:o,last:a});return{...t,displaced:l}},A6=e=>{let{impact:t,draggable:r,droppable:i,draggables:u,viewport:o,afterCritical:a}=e;const n=Gd({impact:t,draggable:r,draggables:u,droppable:i,afterCritical:a});return h1({pageBorderBoxCenter:n,draggable:r,viewport:o})},P6=e=>{let{state:t,dimensions:r,viewport:i}=e;t.movementMode!=="SNAP"&&un();const u=t.impact,o=i||t.viewport,a=r||t.dimensions,{draggables:n,droppables:l}=a,f=n[t.critical.draggable.id],s=Ia(u);s||un();const c=l[s],d=O6({impact:u,viewport:o,destination:c,draggables:n}),h=A6({impact:d,draggable:f,droppable:c,draggables:n,viewport:o,afterCritical:t.afterCritical});return Su({impact:d,clientSelection:h,state:t,dimensions:a,viewport:o})},jW=e=>({index:e.index,droppableId:e.droppableId}),D6=e=>{let{draggable:t,home:r,draggables:i,viewport:u}=e;const o=sc(r.axis,t.displaceBy),a=Ul(r.descriptor.id,i),n=a.indexOf(t);n===-1&&un();const l=a.slice(n+1),f=l.reduce((h,p)=>(h[p.descriptor.id]=!0,h),{}),s={inVirtualList:r.descriptor.mode==="virtual",displacedBy:o,effected:f};return{impact:{displaced:Iu({afterDragging:l,destination:r,displacedBy:o,last:null,viewport:u.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:jW(t.descriptor)}},afterCritical:s}},$W=(e,t)=>({draggables:e.draggables,droppables:p1(e.droppables,t)}),BW=e=>{let{draggable:t,offset:r,initialWindowScroll:i}=e;const u=Bf(t.client,r),o=zf(u,i);return{...t,placeholder:{...t.placeholder,client:u},client:u,page:o}},zW=e=>{const t=e.frame;return t||un(),t},qW=e=>{let{additions:t,updatedDroppables:r,viewport:i}=e;const u=i.scroll.diff.value;return t.map(o=>{const a=o.descriptor.droppableId,n=r[a],f=zW(n).scroll.diff.value,s=ca(u,f);return BW({draggable:o,offset:s,initialWindowScroll:i.scroll.initial})})},WW=e=>{let{state:t,published:r}=e;const i=r.modified.map(g=>{const b=t.dimensions.droppables[g.droppableId];return s1(b,g.scroll)}),u={...t.dimensions.droppables,...h6(i)},o=p6(qW({additions:r.additions,updatedDroppables:u,viewport:t.viewport})),a={...t.dimensions.draggables,...o};r.removals.forEach(g=>{delete a[g]});const n={droppables:u,draggables:a},l=Ia(t.impact),f=l?n.droppables[l]:null,s=n.draggables[t.critical.draggable.id],c=n.droppables[t.critical.droppable.id],{impact:d,afterCritical:h}=D6({draggable:s,home:c,draggables:a,viewport:t.viewport}),p=f&&f.isCombineEnabled?t.impact:d,m=C6({pageOffset:t.current.page.offset,draggable:n.draggables[t.critical.draggable.id],draggables:n.draggables,droppables:n.droppables,previousImpact:p,viewport:t.viewport,afterCritical:h}),y={...t,phase:"DRAGGING",impact:m,onLiftImpact:d,dimensions:n,afterCritical:h,forceShouldAnimate:!1};return t.phase==="COLLECTING"?y:{...y,phase:"DROP_PENDING",reason:t.reason,isWaiting:!1}};const B0=e=>e.movementMode==="SNAP",wm=(e,t,r)=>{const i=$W(e.dimensions,t);return!B0(e)||r?Su({state:e,dimensions:i}):P6({state:e,dimensions:i})};function _m(e){return e.isDragging&&e.movementMode==="SNAP"?{...e,scrollJumpRequest:null}:e}const s3={phase:"IDLE",completed:null,shouldFlush:!1};var UW=function(e,t){if(e===void 0&&(e=s3),t.type==="FLUSH")return{...s3,shouldFlush:!0};if(t.type==="INITIAL_PUBLISH"){e.phase!=="IDLE"&&un();const{critical:r,clientSelection:i,viewport:u,dimensions:o,movementMode:a}=t.payload,n=o.draggables[r.draggable.id],l=o.droppables[r.droppable.id],f={selection:i,borderBoxCenter:n.client.borderBox.center,offset:ea},s={client:f,page:{selection:ca(f.selection,u.scroll.initial),borderBoxCenter:ca(f.selection,u.scroll.initial),offset:ca(f.selection,u.scroll.diff.value)}},c=Hd(o.droppables).every(m=>!m.isFixedOnPage),{impact:d,afterCritical:h}=D6({draggable:n,home:l,draggables:o.draggables,viewport:u});return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:a,dimensions:o,initial:s,current:s,isWindowScrollAllowed:c,impact:d,afterCritical:h,onLiftImpact:d,viewport:u,scrollJumpRequest:null,forceShouldAnimate:null}}if(t.type==="COLLECTION_STARTING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"?e:(e.phase!=="DRAGGING"&&un(),{...e,phase:"COLLECTING"});if(t.type==="PUBLISH_WHILE_DRAGGING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"||un(),WW({state:e,published:t.payload});if(t.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;mo(e)||un();const{client:r}=t.payload;return Zi(r,e.current.client.selection)?e:Su({state:e,clientSelection:r,impact:B0(e)?e.impact:null})}if(t.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return _m(e);mo(e)||un();const{id:r,newScroll:i}=t.payload,u=e.dimensions.droppables[r];if(!u)return e;const o=s1(u,i);return wm(e,o,!1)}if(t.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;mo(e)||un();const{id:r,isEnabled:i}=t.payload,u=e.dimensions.droppables[r];u||un(),u.isEnabled===i&&un();const o={...u,isEnabled:i};return wm(e,o,!0)}if(t.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;mo(e)||un();const{id:r,isCombineEnabled:i}=t.payload,u=e.dimensions.droppables[r];u||un(),u.isCombineEnabled===i&&un();const o={...u,isCombineEnabled:i};return wm(e,o,!0)}if(t.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;mo(e)||un(),e.isWindowScrollAllowed||un();const r=t.payload.newScroll;if(Zi(e.viewport.scroll.current,r))return _m(e);const i=x6(e.viewport,r);return B0(e)?P6({state:e,viewport:i}):Su({state:e,viewport:i})}if(t.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!mo(e))return e;const r=t.payload.maxScroll;if(Zi(r,e.viewport.scroll.max))return e;const i={...e.viewport,scroll:{...e.viewport.scroll,max:r}};return{...e,viewport:i}}if(t.type==="MOVE_UP"||t.type==="MOVE_DOWN"||t.type==="MOVE_LEFT"||t.type==="MOVE_RIGHT"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&un();const r=SW({state:e,type:t.type});return r?Su({state:e,impact:r.impact,clientSelection:r.clientSelection,scrollJumpRequest:r.scrollJumpRequest}):e}if(t.type==="DROP_PENDING"){const r=t.payload.reason;return e.phase!=="COLLECTING"&&un(),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:r}}if(t.type==="DROP_ANIMATE"){const{completed:r,dropDuration:i,newHomeClientOffset:u}=t.payload;return e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||un(),{phase:"DROP_ANIMATING",completed:r,dropDuration:i,newHomeClientOffset:u,dimensions:e.dimensions}}if(t.type==="DROP_COMPLETE"){const{completed:r}=t.payload;return{phase:"IDLE",completed:r,shouldFlush:!1}}return e};const HW=e=>({type:"BEFORE_INITIAL_CAPTURE",payload:e}),VW=e=>({type:"LIFT",payload:e}),YW=e=>({type:"INITIAL_PUBLISH",payload:e}),GW=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),XW=()=>({type:"COLLECTION_STARTING",payload:null}),ZW=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),KW=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),JW=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),E6=e=>({type:"MOVE",payload:e}),QW=e=>({type:"MOVE_BY_WINDOW_SCROLL",payload:e}),eU=e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}),tU=()=>({type:"MOVE_UP",payload:null}),nU=()=>({type:"MOVE_DOWN",payload:null}),rU=()=>({type:"MOVE_RIGHT",payload:null}),aU=()=>({type:"MOVE_LEFT",payload:null}),g1=()=>({type:"FLUSH",payload:null}),iU=e=>({type:"DROP_ANIMATE",payload:e}),m1=e=>({type:"DROP_COMPLETE",payload:e}),R6=e=>({type:"DROP",payload:e}),oU=e=>({type:"DROP_PENDING",payload:e}),L6=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});var lU=e=>t=>{let{getState:r,dispatch:i}=t;return u=>o=>{if(o.type!=="LIFT"){u(o);return}const{id:a,clientSelection:n,movementMode:l}=o.payload,f=r();f.phase==="DROP_ANIMATING"&&i(m1({completed:f.completed})),r().phase!=="IDLE"&&un(),i(g1()),i(HW({draggableId:a,movementMode:l}));const c={draggableId:a,scrollOptions:{shouldPublishImmediately:l==="SNAP"}},{critical:d,dimensions:h,viewport:p}=e.startPublishing(c);i(YW({critical:d,dimensions:h,clientSelection:n,movementMode:l,viewport:p}))}},sU=e=>()=>t=>r=>{r.type==="INITIAL_PUBLISH"&&e.dragging(),r.type==="DROP_ANIMATE"&&e.dropping(r.payload.completed.result.reason),(r.type==="FLUSH"||r.type==="DROP_COMPLETE")&&e.resting(),t(r)};const v1={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Fu={opacity:{drop:0,combining:.7},scale:{drop:.75}},I6={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},fo=`${I6.outOfTheWay}s ${v1.outOfTheWay}`,Cu={fluid:`opacity ${fo}`,snap:`transform ${fo}, opacity ${fo}`,drop:e=>{const t=`${e}s ${v1.drop}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${fo}`,placeholder:`height ${fo}, width ${fo}, margin ${fo}`},u3=e=>Zi(e,ea)?void 0:`translate(${e.x}px, ${e.y}px)`,z0={moveTo:u3,drop:(e,t)=>{const r=u3(e);if(r)return t?`${r} scale(${Fu.scale.drop})`:r}},{minDropTime:q0,maxDropTime:F6}=I6,uU=F6-q0,c3=1500,cU=.6;var fU=e=>{let{current:t,destination:r,reason:i}=e;const u=Ru(t,r);if(u<=0)return q0;if(u>=c3)return F6;const o=u/c3,a=q0+uU*o,n=i==="CANCEL"?a*cU:a;return Number(n.toFixed(2))},dU=e=>{let{impact:t,draggable:r,dimensions:i,viewport:u,afterCritical:o}=e;const{draggables:a,droppables:n}=i,l=Ia(t),f=l?n[l]:null,s=n[r.descriptor.droppableId],c=A6({impact:t,draggable:r,draggables:a,afterCritical:o,droppable:f||s,viewport:u});return Ea(c,r.client.borderBox.center)},hU=e=>{let{draggables:t,reason:r,lastImpact:i,home:u,viewport:o,onLiftImpact:a}=e;return!i.at||r!=="DROP"?{impact:O6({draggables:t,impact:a,destination:u,viewport:o,forceShouldAnimate:!0}),didDropInsideDroppable:!1}:i.at.type==="REORDER"?{impact:i,didDropInsideDroppable:!0}:{impact:{...i,displaced:Lu},didDropInsideDroppable:!0}};const pU=e=>{let{getState:t,dispatch:r}=e;return i=>u=>{if(u.type!=="DROP"){i(u);return}const o=t(),a=u.payload.reason;if(o.phase==="COLLECTING"){r(oU({reason:a}));return}if(o.phase==="IDLE")return;o.phase==="DROP_PENDING"&&o.isWaiting&&un(),o.phase==="DRAGGING"||o.phase==="DROP_PENDING"||un();const l=o.critical,f=o.dimensions,s=f.draggables[o.critical.draggable.id],{impact:c,didDropInsideDroppable:d}=hU({reason:a,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),h=d?u1(c):null,p=d?Vd(c):null,m={index:l.draggable.index,droppableId:l.droppable.id},y={draggableId:s.descriptor.id,type:s.descriptor.type,source:m,reason:a,mode:o.movementMode,destination:h,combine:p},v=dU({impact:c,draggable:s,dimensions:f,viewport:o.viewport,afterCritical:o.afterCritical}),g={critical:o.critical,afterCritical:o.afterCritical,result:y,impact:c};if(!(!Zi(o.current.client.offset,v)||!!y.combine)){r(m1({completed:g}));return}const x=fU({current:o.current.client.offset,destination:v,reason:a});r(iU({newHomeClientOffset:v,dropDuration:x,completed:g}))}};var gU=pU,N6=()=>({x:window.pageXOffset,y:window.pageYOffset});function mU(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}function vU(e){let{onWindowScroll:t}=e;function r(){t(N6())}const i=Eu(r),u=mU(i);let o=Xi;function a(){return o!==Xi}function n(){a()&&un(),o=Wa(window,[u])}function l(){a()||un(),i.cancel(),o(),o=Xi}return{start:n,stop:l,isActive:a}}const yU=e=>e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH",bU=e=>{const t=vU({onWindowScroll:r=>{e.dispatch(QW({newScroll:r}))}});return r=>i=>{!t.isActive()&&i.type==="INITIAL_PUBLISH"&&t.start(),t.isActive()&&yU(i)&&t.stop(),r(i)}};var xU=bU,wU=e=>{let t=!1,r=!1;const i=setTimeout(()=>{r=!0}),u=o=>{t||r||(t=!0,e(o),clearTimeout(i))};return u.wasCalled=()=>t,u},_U=()=>{const e=[],t=u=>{const o=e.findIndex(n=>n.timerId===u);o===-1&&un();const[a]=e.splice(o,1);a.callback()};return{add:u=>{const o=setTimeout(()=>t(o)),a={timerId:o,callback:u};e.push(a)},flush:()=>{if(!e.length)return;const u=[...e];e.length=0,u.forEach(o=>{clearTimeout(o.timerId),o.callback()})}}};const TU=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.droppableId===t.droppableId&&e.index===t.index,kU=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.draggableId===t.draggableId&&e.droppableId===t.droppableId,MU=(e,t)=>{if(e===t)return!0;const r=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,i=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return r&&i},Ns=(e,t)=>{t()},Xc=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function Tm(e,t,r,i){if(!e){r(i(t));return}const u=wU(r);e(t,{announce:u}),u.wasCalled()||r(i(t))}var SU=(e,t)=>{const r=_U();let i=null;const u=(c,d)=>{i&&un(),Ns("onBeforeCapture",()=>{const h=e().onBeforeCapture;h&&h({draggableId:c,mode:d})})},o=(c,d)=>{i&&un(),Ns("onBeforeDragStart",()=>{const h=e().onBeforeDragStart;h&&h(Xc(c,d))})},a=(c,d)=>{i&&un();const h=Xc(c,d);i={mode:d,lastCritical:c,lastLocation:h.source,lastCombine:null},r.add(()=>{Ns("onDragStart",()=>Tm(e().onDragStart,h,t,gf.onDragStart))})},n=(c,d)=>{const h=u1(d),p=Vd(d);i||un();const m=!MU(c,i.lastCritical);m&&(i.lastCritical=c);const y=!TU(i.lastLocation,h);y&&(i.lastLocation=h);const v=!kU(i.lastCombine,p);if(v&&(i.lastCombine=p),!m&&!y&&!v)return;const g={...Xc(c,i.mode),combine:p,destination:h};r.add(()=>{Ns("onDragUpdate",()=>Tm(e().onDragUpdate,g,t,gf.onDragUpdate))})},l=()=>{i||un(),r.flush()},f=c=>{i||un(),i=null,Ns("onDragEnd",()=>Tm(e().onDragEnd,c,t,gf.onDragEnd))};return{beforeCapture:u,beforeStart:o,start:a,update:n,flush:l,drop:f,abort:()=>{if(!i)return;const c={...Xc(i.lastCritical,i.mode),combine:null,destination:null,reason:"CANCEL"};f(c)}}},CU=(e,t)=>{const r=SU(e,t);return i=>u=>o=>{if(o.type==="BEFORE_INITIAL_CAPTURE"){r.beforeCapture(o.payload.draggableId,o.payload.movementMode);return}if(o.type==="INITIAL_PUBLISH"){const n=o.payload.critical;r.beforeStart(n,o.payload.movementMode),u(o),r.start(n,o.payload.movementMode);return}if(o.type==="DROP_COMPLETE"){const n=o.payload.completed.result;r.flush(),u(o),r.drop(n);return}if(u(o),o.type==="FLUSH"){r.abort();return}const a=i.getState();a.phase==="DRAGGING"&&r.update(a.critical,a.impact)}};const OU=e=>t=>r=>{if(r.type!=="DROP_ANIMATION_FINISHED"){t(r);return}const i=e.getState();i.phase!=="DROP_ANIMATING"&&un(),e.dispatch(m1({completed:i.completed}))};var AU=OU;const PU=e=>{let t=null,r=null;function i(){r&&(cancelAnimationFrame(r),r=null),t&&(t(),t=null)}return u=>o=>{if((o.type==="FLUSH"||o.type==="DROP_COMPLETE"||o.type==="DROP_ANIMATION_FINISHED")&&i(),u(o),o.type!=="DROP_ANIMATE")return;const a={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){e.getState().phase==="DROP_ANIMATING"&&e.dispatch(L6())}};r=requestAnimationFrame(()=>{r=null,t=Wa(window,[a])})}};var DU=PU,EU=e=>()=>t=>r=>{(r.type==="DROP_COMPLETE"||r.type==="FLUSH"||r.type==="DROP_ANIMATE")&&e.stopPublishing(),t(r)},RU=e=>{let t=!1;return()=>r=>i=>{if(i.type==="INITIAL_PUBLISH"){t=!0,e.tryRecordFocus(i.payload.critical.draggable.id),r(i),e.tryRestoreFocusRecorded();return}if(r(i),!!t){if(i.type==="FLUSH"){t=!1,e.tryRestoreFocusRecorded();return}if(i.type==="DROP_COMPLETE"){t=!1;const u=i.payload.completed.result;u.combine&&e.tryShiftRecord(u.draggableId,u.combine.draggableId),e.tryRestoreFocusRecorded()}}}};const LU=e=>e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH";var IU=e=>t=>r=>i=>{if(LU(i)){e.stop(),r(i);return}if(i.type==="INITIAL_PUBLISH"){r(i);const u=t.getState();u.phase!=="DRAGGING"&&un(),e.start(u);return}r(i),e.scroll(t.getState())};const FU=e=>t=>r=>{if(t(r),r.type!=="PUBLISH_WHILE_DRAGGING")return;const i=e.getState();i.phase==="DROP_PENDING"&&(i.isWaiting||e.dispatch(R6({reason:i.reason})))};var NU=FU;const jU=Q4;var $U=e=>{let{dimensionMarshal:t,focusMarshal:r,styleMarshal:i,getResponders:u,announce:o,autoScroller:a}=e;return J4(UW,jU(tq(sU(i),EU(t),lU(t),gU,AU,DU,NU,IU(a),xU,RU(r),CU(u,o))))};const km=()=>({additions:{},removals:{},modified:{}});function BU(e){let{registry:t,callbacks:r}=e,i=km(),u=null;const o=()=>{u||(r.collectionStarting(),u=requestAnimationFrame(()=>{u=null;const{additions:f,removals:s,modified:c}=i,d=Object.keys(f).map(m=>t.draggable.getById(m).getDimension(ea)).sort((m,y)=>m.descriptor.index-y.descriptor.index),h=Object.keys(c).map(m=>{const v=t.droppable.getById(m).callbacks.getScrollWhileDragging();return{droppableId:m,scroll:v}}),p={additions:d,removals:Object.keys(s),modified:h};i=km(),r.publish(p)}))};return{add:f=>{const s=f.descriptor.id;i.additions[s]=f,i.modified[f.descriptor.droppableId]=!0,i.removals[s]&&delete i.removals[s],o()},remove:f=>{const s=f.descriptor;i.removals[s.id]=!0,i.modified[s.droppableId]=!0,i.additions[s.id]&&delete i.additions[s.id],o()},stop:()=>{u&&(cancelAnimationFrame(u),u=null,i=km())}}}var j6=e=>{let{scrollHeight:t,scrollWidth:r,height:i,width:u}=e;const o=Ea({x:r,y:t},{x:u,y:i});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},$6=()=>{const e=document.documentElement;return e||un(),e},B6=()=>{const e=$6();return j6({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},zU=()=>{const e=N6(),t=B6(),r=e.y,i=e.x,u=$6(),o=u.clientWidth,a=u.clientHeight,n=i+o,l=r+a;return{frame:Qa({top:r,left:i,right:n,bottom:l}),scroll:{initial:e,current:e,max:t,diff:{value:ea,displacement:ea}}}},qU=e=>{let{critical:t,scrollOptions:r,registry:i}=e;const u=zU(),o=u.scroll.current,a=t.droppable,n=i.droppable.getAllByType(a.type).map(c=>c.callbacks.getDimensionAndWatchScroll(o,r)),l=i.draggable.getAllByType(t.draggable.type).map(c=>c.getDimension(o));return{dimensions:{draggables:p6(l),droppables:h6(n)},critical:t,viewport:u}};function f3(e,t,r){return!(r.descriptor.id===t.id||r.descriptor.type!==t.type||e.droppable.getById(r.descriptor.droppableId).descriptor.mode!=="virtual")}var WU=(e,t)=>{let r=null;const i=BU({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),u=(d,h)=>{e.droppable.exists(d)||un(),r&&t.updateDroppableIsEnabled({id:d,isEnabled:h})},o=(d,h)=>{r&&(e.droppable.exists(d)||un(),t.updateDroppableIsCombineEnabled({id:d,isCombineEnabled:h}))},a=(d,h)=>{r&&(e.droppable.exists(d)||un(),t.updateDroppableScroll({id:d,newScroll:h}))},n=(d,h)=>{r&&e.droppable.getById(d).callbacks.scroll(h)},l=()=>{if(!r)return;i.stop();const d=r.critical.droppable;e.droppable.getAllByType(d.type).forEach(h=>h.callbacks.dragStopped()),r.unsubscribe(),r=null},f=d=>{r||un();const h=r.critical.draggable;d.type==="ADDITION"&&f3(e,h,d.value)&&i.add(d.value),d.type==="REMOVAL"&&f3(e,h,d.value)&&i.remove(d.value)};return{updateDroppableIsEnabled:u,updateDroppableIsCombineEnabled:o,scrollDroppable:n,updateDroppableScroll:a,startPublishing:d=>{r&&un();const h=e.draggable.getById(d.draggableId),p=e.droppable.getById(h.descriptor.droppableId),m={draggable:h.descriptor,droppable:p.descriptor},y=e.subscribe(f);return r={critical:m,unsubscribe:y},qU({critical:m,registry:e,scrollOptions:d.scrollOptions})},stopPublishing:l}},z6=(e,t)=>e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP",UU=e=>{window.scrollBy(e.x,e.y)};const HU=Qr(e=>Hd(e).filter(t=>!(!t.isEnabled||!t.frame))),VU=(e,t)=>HU(t).find(i=>(i.frame||un(),k6(i.frame.pageMarginBox)(e)))||null;var YU=e=>{let{center:t,destination:r,droppables:i}=e;if(r){const o=i[r];return o.frame?o:null}return VU(t,i)};const Nu={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var GU=function(e,t,r){r===void 0&&(r=()=>Nu);const i=r(),u=e[t.size]*i.startFromPercentage,o=e[t.size]*i.maxScrollAtPercentage;return{startScrollingFrom:u,maxScrollValueAt:o}},q6=e=>{let{startOfRange:t,endOfRange:r,current:i}=e;const u=r-t;return u===0?0:(i-t)/u},y1=1,XU=function(e,t,r){r===void 0&&(r=()=>Nu);const i=r();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return i.maxPixelScroll;if(e===t.startScrollingFrom)return y1;const o=1-q6({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),a=i.maxPixelScroll*i.ease(o);return Math.ceil(a)},ZU=(e,t,r)=>{const i=r(),u=i.durationDampening.accelerateAt,o=i.durationDampening.stopDampeningAt,a=t,n=o,f=Date.now()-a;if(f>=o)return e;if(f{let{distanceToEdge:t,thresholds:r,dragStartTime:i,shouldUseTimeDampening:u,getAutoScrollerOptions:o}=e;const a=XU(t,r,o);return a===0?0:u?Math.max(ZU(a,i,o),y1):a},h3=e=>{let{container:t,distanceToEdges:r,dragStartTime:i,axis:u,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const n=GU(t,u,a);return r[u.end]{let{container:t,subject:r,proposedScroll:i}=e;const u=r.height>t.height,o=r.width>t.width;return!o&&!u?i:o&&u?null:{x:o?0:i.x,y:u?0:i.y}};const JU=d6(e=>e===0?0:e);var W6=e=>{let{dragStartTime:t,container:r,subject:i,center:u,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const n={top:u.y-r.top,right:r.right-u.x,bottom:r.bottom-u.y,left:u.x-r.left},l=h3({container:r,distanceToEdges:n,dragStartTime:t,axis:c1,shouldUseTimeDampening:o,getAutoScrollerOptions:a}),f=h3({container:r,distanceToEdges:n,dragStartTime:t,axis:v6,shouldUseTimeDampening:o,getAutoScrollerOptions:a}),s=JU({x:f,y:l});if(Zi(s,ea))return null;const c=KU({container:r,subject:i,proposedScroll:s});return c?Zi(c,ea)?null:c:null};const QU=d6(e=>e===0?0:e>0?1:-1),b1=(()=>{const e=(t,r)=>t<0?t:t>r?t-r:0;return t=>{let{current:r,max:i,change:u}=t;const o=ca(r,u),a={x:e(o.x,i.x),y:e(o.y,i.y)};return Zi(a,ea)?null:a}})(),U6=e=>{let{max:t,current:r,change:i}=e;const u={x:Math.max(r.x,t.x),y:Math.max(r.y,t.y)},o=QU(i),a=b1({max:u,current:r,change:o});return!a||o.x!==0&&a.x===0||o.y!==0&&a.y===0},x1=(e,t)=>U6({current:e.scroll.current,max:e.scroll.max,change:t}),eH=(e,t)=>{if(!x1(e,t))return null;const r=e.scroll.max,i=e.scroll.current;return b1({current:i,max:r,change:t})},w1=(e,t)=>{const r=e.frame;return r?U6({current:r.scroll.current,max:r.scroll.max,change:t}):!1},tH=(e,t)=>{const r=e.frame;return!r||!w1(e,t)?null:b1({current:r.scroll.current,max:r.scroll.max,change:t})};var nH=e=>{let{viewport:t,subject:r,center:i,dragStartTime:u,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const n=W6({dragStartTime:u,container:t.frame,subject:r,center:i,shouldUseTimeDampening:o,getAutoScrollerOptions:a});return n&&x1(t,n)?n:null},rH=e=>{let{droppable:t,subject:r,center:i,dragStartTime:u,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const n=t.frame;if(!n)return null;const l=W6({dragStartTime:u,container:n.pageMarginBox,subject:r,center:i,shouldUseTimeDampening:o,getAutoScrollerOptions:a});return l&&w1(t,l)?l:null},p3=e=>{let{state:t,dragStartTime:r,shouldUseTimeDampening:i,scrollWindow:u,scrollDroppable:o,getAutoScrollerOptions:a}=e;const n=t.current.page.borderBoxCenter,f=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){const d=t.viewport,h=nH({dragStartTime:r,viewport:d,subject:f,center:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a});if(h){u(h);return}}const s=YU({center:n,destination:Ia(t.impact),droppables:t.dimensions.droppables});if(!s)return;const c=rH({dragStartTime:r,droppable:s,subject:f,center:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a});c&&o(s.descriptor.id,c)},aH=e=>{let{scrollWindow:t,scrollDroppable:r,getAutoScrollerOptions:i=()=>Nu}=e;const u=Eu(t),o=Eu(r);let a=null;const n=s=>{a||un();const{shouldUseTimeDampening:c,dragStartTime:d}=a;p3({state:s,scrollWindow:u,scrollDroppable:o,dragStartTime:d,shouldUseTimeDampening:c,getAutoScrollerOptions:i})};return{start:s=>{a&&un();const c=Date.now();let d=!1;const h=()=>{d=!0};p3({state:s,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:h,scrollDroppable:h,getAutoScrollerOptions:i}),a={dragStartTime:c,shouldUseTimeDampening:d},d&&n(s)},stop:()=>{a&&(u.cancel(),o.cancel(),a=null)},scroll:n}},iH=e=>{let{move:t,scrollDroppable:r,scrollWindow:i}=e;const u=(l,f)=>{const s=ca(l.current.client.selection,f);t({client:s})},o=(l,f)=>{if(!w1(l,f))return f;const s=tH(l,f);if(!s)return r(l.descriptor.id,f),null;const c=Ea(f,s);return r(l.descriptor.id,c),Ea(f,c)},a=(l,f,s)=>{if(!l||!x1(f,s))return s;const c=eH(f,s);if(!c)return i(s),null;const d=Ea(s,c);return i(d),Ea(s,d)};return l=>{const f=l.scrollJumpRequest;if(!f)return;const s=Ia(l.impact);s||un();const c=o(l.dimensions.droppables[s],f);if(!c)return;const d=l.viewport,h=a(l.isWindowScrollAllowed,d,c);h&&u(l,h)}},oH=e=>{let{scrollDroppable:t,scrollWindow:r,move:i,getAutoScrollerOptions:u}=e;const o=aH({scrollWindow:r,scrollDroppable:t,getAutoScrollerOptions:u}),a=iH({move:i,scrollWindow:r,scrollDroppable:t});return{scroll:f=>{if(!(u().disabled||f.phase!=="DRAGGING")){if(f.movementMode==="FLUID"){o.scroll(f);return}f.scrollJumpRequest&&a(f)}},start:o.start,stop:o.stop}};const Ol="data-rfd",Al=(()=>{const e=`${Ol}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),W0=(()=>{const e=`${Ol}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),lH=(()=>{const e=`${Ol}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),g3={contextId:`${Ol}-scroll-container-context-id`},sH=e=>t=>`[${t}="${e}"]`,js=(e,t)=>e.map(r=>{const i=r.styles[t];return i?`${r.selector} { ${i} }`:""}).join(" "),uH="pointer-events: none;";var cH=e=>{const t=sH(e),r=(()=>{const n=` cursor: -webkit-grab; cursor: grab; `;return{selector:t(Al.contextId),styles:{always:` -webkit-touch-callout: none; -webkit-tap-highlight-color: rgba(0,0,0,0); touch-action: manipulation; - `,resting:n,dragging:sH,dropAnimating:n}}})(),i=(()=>{const n=` + `,resting:n,dragging:uH,dropAnimating:n}}})(),i=(()=>{const n=` transition: ${Cu.outOfTheWay}; - `;return{selector:t(W0.contextId),styles:{dragging:n,dropAnimating:n,userCancel:n}}})(),c={selector:t(oH.contextId),styles:{always:"overflow-anchor: none;"}},a=[i,r,c,{selector:"body",styles:{dragging:` + `;return{selector:t(W0.contextId),styles:{dragging:n,dropAnimating:n,userCancel:n}}})(),u={selector:t(lH.contextId),styles:{always:"overflow-anchor: none;"}},a=[i,r,u,{selector:"body",styles:{dragging:` cursor: grabbing; cursor: -webkit-grabbing; user-select: none; @@ -252,54 +252,54 @@ ${L.current.stack} -moz-user-select: none; -ms-user-select: none; overflow-anchor: none; - `}}];return{always:js(a,"always"),resting:js(a,"resting"),dragging:js(a,"dragging"),dropAnimating:js(a,"dropAnimating"),userCancel:js(a,"userCancel")}};const cH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?$e.useLayoutEffect:$e.useEffect;var Fa=cH;const Mm=()=>{const e=document.querySelector("head");return e||un(),e},m3=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function fH(e,t){const r=Xn(()=>uH(e),[e]),i=$e.useRef(null),c=$e.useRef(null),o=Sn(Qr(u=>{const d=c.current;d||un(),d.textContent=u}),[]),a=Sn(u=>{const d=i.current;d||un(),d.textContent=u},[]);Fa(()=>{!i.current&&!c.current||un();const u=m3(t),d=m3(t);return i.current=u,c.current=d,u.setAttribute(`${Ol}-always`,e),d.setAttribute(`${Ol}-dynamic`,e),Mm().appendChild(u),Mm().appendChild(d),a(r.always),o(r.resting),()=>{const h=p=>{const m=p.current;m||un(),Mm().removeChild(m),p.current=null};h(i),h(c)}},[t,a,o,r.always,r.resting,e]);const n=Sn(()=>o(r.dragging),[o,r.dragging]),l=Sn(u=>{if(u==="DROP"){o(r.dropAnimating);return}o(r.userCancel)},[o,r.dropAnimating,r.userCancel]),f=Sn(()=>{c.current&&o(r.resting)},[o,r.resting]);return Xn(()=>({dragging:n,dropping:l,resting:f}),[n,l,f])}function H6(e,t){return Array.from(e.querySelectorAll(t))}var V6=e=>{var t;return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)||window};function Xd(e){return e instanceof V6(e).HTMLElement}function dH(e,t){const r=`[${Al.contextId}="${e}"]`,i=H6(document,r);if(!i.length)return null;const c=i.find(o=>o.getAttribute(Al.draggableId)===t);return!c||!Xd(c)?null:c}function hH(e){const t=$e.useRef({}),r=$e.useRef(null),i=$e.useRef(null),c=$e.useRef(!1),o=Sn(function(d,h){const p={id:d,focus:h};return t.current[d]=p,function(){const y=t.current;y[d]!==p&&delete y[d]}},[]),a=Sn(function(d){const h=dH(e,d);h&&h!==document.activeElement&&h.focus()},[e]),n=Sn(function(d,h){r.current===d&&(r.current=h)},[]),l=Sn(function(){i.current||c.current&&(i.current=requestAnimationFrame(()=>{i.current=null;const d=r.current;d&&a(d)}))},[a]),f=Sn(function(d){r.current=null;const h=document.activeElement;h&&h.getAttribute(Al.draggableId)===d&&(r.current=d)},[]);return Fa(()=>(c.current=!0,function(){c.current=!1;const d=i.current;d&&cancelAnimationFrame(d)}),[]),Xn(()=>({register:o,tryRecordFocus:f,tryRestoreFocusRecorded:l,tryShiftRecord:n}),[o,f,l,n])}function pH(){const e={draggables:{},droppables:{}},t=[];function r(u){return t.push(u),function(){const h=t.indexOf(u);h!==-1&&t.splice(h,1)}}function i(u){t.length&&t.forEach(d=>d(u))}function c(u){return e.draggables[u]||null}function o(u){const d=c(u);return d||un(),d}const a={register:u=>{e.draggables[u.descriptor.id]=u,i({type:"ADDITION",value:u})},update:(u,d)=>{const h=e.draggables[d.descriptor.id];h&&h.uniqueId===u.uniqueId&&(delete e.draggables[d.descriptor.id],e.draggables[u.descriptor.id]=u)},unregister:u=>{const d=u.descriptor.id,h=c(d);h&&u.uniqueId===h.uniqueId&&(delete e.draggables[d],e.droppables[u.descriptor.droppableId]&&i({type:"REMOVAL",value:u}))},getById:o,findById:c,exists:u=>!!c(u),getAllByType:u=>Object.values(e.draggables).filter(d=>d.descriptor.type===u)};function n(u){return e.droppables[u]||null}function l(u){const d=n(u);return d||un(),d}const f={register:u=>{e.droppables[u.descriptor.id]=u},unregister:u=>{const d=n(u.descriptor.id);d&&u.uniqueId===d.uniqueId&&delete e.droppables[u.descriptor.id]},getById:l,findById:n,exists:u=>!!n(u),getAllByType:u=>Object.values(e.droppables).filter(d=>d.descriptor.type===u)};function s(){e.draggables={},e.droppables={},t.length=0}return{draggable:a,droppable:f,subscribe:r,clean:s}}function gH(){const e=Xn(pH,[]);return $e.useEffect(()=>function(){et.version.startsWith("16")||et.version.startsWith("17")?requestAnimationFrame(e.clean):e.clean()},[e]),e}var _1=et.createContext(null),Hf=()=>{const e=document.body;return e||un(),e};const mH={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};var vH=mH;const yH=e=>`rfd-announcement-${e}`;function bH(e){const t=Xn(()=>yH(e),[e]),r=$e.useRef(null);return $e.useEffect(function(){const o=document.createElement("div");return r.current=o,o.id=t,o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true"),Gt(o.style,vH),Hf().appendChild(o),function(){setTimeout(function(){const l=Hf();l.contains(o)&&l.removeChild(o),o===r.current&&(r.current=null)})}},[t]),Sn(c=>{const o=r.current;if(o){o.textContent=c;return}},[])}let Y6=0;const G6={separator:"::"};function xH(){Y6=0}function wH(e,t){return t===void 0&&(t=G6),Xn(()=>`${e}${t.separator}${Y6++}`,[t.separator,e])}function _H(e,t){t===void 0&&(t=G6);const r=et.useId();return Xn(()=>`${e}${t.separator}${r}`,[t.separator,e,r])}var T1="useId"in et?_H:wH;function TH(e){let{contextId:t,uniqueId:r}=e;return`rfd-hidden-text-${t}-${r}`}function kH(e){let{contextId:t,text:r}=e;const i=T1("hidden-text",{separator:"-"}),c=Xn(()=>TH({contextId:t,uniqueId:i}),[i,t]);return $e.useEffect(function(){const a=document.createElement("div");return a.id=c,a.textContent=r,a.style.display="none",Hf().appendChild(a),function(){const l=Hf();l.contains(a)&&l.removeChild(a)}},[c,r]),c}var Zd=et.createContext(null);function X6(e){const t=$e.useRef(e);return $e.useEffect(()=>{t.current=e}),t}function MH(){let e=null;function t(){return!!e}function r(a){return a===e}function i(a){e&&un();const n={abandon:a};return e=n,n}function c(){e||un(),e=null}function o(){e&&(e.abandon(),c())}return{isClaimed:t,isActive:r,claim:i,release:c,tryAbandon:o}}function ju(e){return e.phase==="IDLE"||e.phase==="DROP_ANIMATING"?!1:e.isDragging}const SH=9,CH=13,k1=27,Z6=32,OH=33,AH=34,PH=35,DH=36,EH=37,RH=38,LH=39,IH=40,FH={[CH]:!0,[SH]:!0};var K6=e=>{FH[e.keyCode]&&e.preventDefault()};const NH=(()=>{const e="visibilitychange";return typeof document>"u"?e:[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find(i=>`on${i}`in document)||e})();var Kd=NH;const J6=0,v3=5;function jH(e,t){return Math.abs(t.x-e.x)>=v3||Math.abs(t.y-e.y)>=v3}const y3={type:"IDLE"};function $H(e){let{cancel:t,completed:r,getPhase:i,setPhase:c}=e;return[{eventName:"mousemove",fn:o=>{const{button:a,clientX:n,clientY:l}=o;if(a!==J6)return;const f={x:n,y:l},s=i();if(s.type==="DRAGGING"){o.preventDefault(),s.actions.move(f);return}s.type!=="PENDING"&&un();const u=s.point;if(!jH(u,f))return;o.preventDefault();const d=s.actions.fluidLift(f);c({type:"DRAGGING",actions:d})}},{eventName:"mouseup",fn:o=>{const a=i();if(a.type!=="DRAGGING"){t();return}o.preventDefault(),a.actions.drop({shouldBlockNextClick:!0}),r()}},{eventName:"mousedown",fn:o=>{i().type==="DRAGGING"&&o.preventDefault(),t()}},{eventName:"keydown",fn:o=>{if(i().type==="PENDING"){t();return}if(o.keyCode===k1){o.preventDefault(),t();return}K6(o)}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{i().type==="PENDING"&&t()}},{eventName:"webkitmouseforcedown",fn:o=>{const a=i();if(a.type==="IDLE"&&un(),a.actions.shouldRespectForcePress()){t();return}o.preventDefault()}},{eventName:Kd,fn:t}]}function Q6(e){const t=$e.useRef(y3),r=$e.useRef(Xi),i=Xn(()=>({eventName:"mousedown",fn:function(u){if(u.defaultPrevented||u.button!==J6||u.ctrlKey||u.metaKey||u.shiftKey||u.altKey)return;const d=e.findClosestDraggableId(u);if(!d)return;const h=e.tryGetLock(d,a,{sourceEvent:u});if(!h)return;u.preventDefault();const p={x:u.clientX,y:u.clientY};r.current(),f(h,p)}}),[e]),c=Xn(()=>({eventName:"webkitmouseforcewillbegin",fn:s=>{if(s.defaultPrevented)return;const u=e.findClosestDraggableId(s);if(!u)return;const d=e.findOptionsForDraggable(u);d&&(d.shouldRespectForcePress||e.canGetLock(u)&&s.preventDefault())}}),[e]),o=Sn(function(){const u={passive:!1,capture:!0};r.current=Wa(window,[c,i],u)},[c,i]),a=Sn(()=>{t.current.type!=="IDLE"&&(t.current=y3,r.current(),o())},[o]),n=Sn(()=>{const s=t.current;a(),s.type==="DRAGGING"&&s.actions.cancel({shouldBlockNextClick:!0}),s.type==="PENDING"&&s.actions.abort()},[a]),l=Sn(function(){const u={capture:!0,passive:!1},d=$H({cancel:n,completed:a,getPhase:()=>t.current,setPhase:h=>{t.current=h}});r.current=Wa(window,d,u)},[n,a]),f=Sn(function(u,d){t.current.type!=="IDLE"&&un(),t.current={type:"PENDING",point:d,actions:u},l()},[l]);Fa(function(){return o(),function(){r.current()}},[o])}function BH(){}const zH={[AH]:!0,[OH]:!0,[DH]:!0,[PH]:!0};function qH(e,t){function r(){t(),e.cancel()}function i(){t(),e.drop()}return[{eventName:"keydown",fn:c=>{if(c.keyCode===k1){c.preventDefault(),r();return}if(c.keyCode===Z6){c.preventDefault(),i();return}if(c.keyCode===IH){c.preventDefault(),e.moveDown();return}if(c.keyCode===RH){c.preventDefault(),e.moveUp();return}if(c.keyCode===LH){c.preventDefault(),e.moveRight();return}if(c.keyCode===EH){c.preventDefault(),e.moveLeft();return}if(zH[c.keyCode]){c.preventDefault();return}K6(c)}},{eventName:"mousedown",fn:r},{eventName:"mouseup",fn:r},{eventName:"click",fn:r},{eventName:"touchstart",fn:r},{eventName:"resize",fn:r},{eventName:"wheel",fn:r,options:{passive:!0}},{eventName:Kd,fn:r}]}function eC(e){const t=$e.useRef(BH),r=Xn(()=>({eventName:"keydown",fn:function(o){if(o.defaultPrevented||o.keyCode!==Z6)return;const a=e.findClosestDraggableId(o);if(!a)return;const n=e.tryGetLock(a,s,{sourceEvent:o});if(!n)return;o.preventDefault();let l=!0;const f=n.snapLift();t.current();function s(){l||un(),l=!1,t.current(),i()}t.current=Wa(window,qH(f,s),{capture:!0,passive:!1})}}),[e]),i=Sn(function(){const o={passive:!1,capture:!0};t.current=Wa(window,[r],o)},[r]);Fa(function(){return i(),function(){t.current()}},[i])}const Sm={type:"IDLE"},WH=120,UH=.15;function HH(e){let{cancel:t,getPhase:r}=e;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:i=>{i.preventDefault()}},{eventName:"keydown",fn:i=>{if(r().type!=="DRAGGING"){t();return}i.keyCode===k1&&i.preventDefault(),t()}},{eventName:Kd,fn:t}]}function VH(e){let{cancel:t,completed:r,getPhase:i}=e;return[{eventName:"touchmove",options:{capture:!1},fn:c=>{const o=i();if(o.type!=="DRAGGING"){t();return}o.hasMoved=!0;const{clientX:a,clientY:n}=c.touches[0],l={x:a,y:n};c.preventDefault(),o.actions.move(l)}},{eventName:"touchend",fn:c=>{const o=i();if(o.type!=="DRAGGING"){t();return}c.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),r()}},{eventName:"touchcancel",fn:c=>{if(i().type!=="DRAGGING"){t();return}c.preventDefault(),t()}},{eventName:"touchforcechange",fn:c=>{const o=i();o.type==="IDLE"&&un();const a=c.touches[0];if(!a||!(a.force>=UH))return;const l=o.actions.shouldRespectForcePress();if(o.type==="PENDING"){l&&t();return}if(l){if(o.hasMoved){c.preventDefault();return}t();return}c.preventDefault()}},{eventName:Kd,fn:t}]}function tC(e){const t=$e.useRef(Sm),r=$e.useRef(Xi),i=Sn(function(){return t.current},[]),c=Sn(function(h){t.current=h},[]),o=Xn(()=>({eventName:"touchstart",fn:function(h){if(h.defaultPrevented)return;const p=e.findClosestDraggableId(h);if(!p)return;const m=e.tryGetLock(p,n,{sourceEvent:h});if(!m)return;const y=h.touches[0],{clientX:v,clientY:g}=y,b={x:v,y:g};r.current(),u(m,b)}}),[e]),a=Sn(function(){const h={capture:!0,passive:!1};r.current=Wa(window,[o],h)},[o]),n=Sn(()=>{const d=t.current;d.type!=="IDLE"&&(d.type==="PENDING"&&clearTimeout(d.longPressTimerId),c(Sm),r.current(),a())},[a,c]),l=Sn(()=>{const d=t.current;n(),d.type==="DRAGGING"&&d.actions.cancel({shouldBlockNextClick:!0}),d.type==="PENDING"&&d.actions.abort()},[n]),f=Sn(function(){const h={capture:!0,passive:!1},p={cancel:l,completed:n,getPhase:i},m=Wa(window,VH(p),h),y=Wa(window,HH(p),h);r.current=function(){m(),y()}},[l,i,n]),s=Sn(function(){const h=i();h.type!=="PENDING"&&un();const p=h.actions.fluidLift(h.point);c({type:"DRAGGING",actions:p,hasMoved:!1})},[i,c]),u=Sn(function(h,p){i().type!=="IDLE"&&un();const m=setTimeout(s,WH);c({type:"PENDING",point:p,actions:h,longPressTimerId:m}),f()},[f,i,c,s]);Fa(function(){return a(),function(){r.current();const p=i();p.type==="PENDING"&&(clearTimeout(p.longPressTimerId),c(Sm))}},[i,a,c]),Fa(function(){return Wa(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}const YH=["input","button","textarea","select","option","optgroup","video","audio"];function nC(e,t){if(t==null)return!1;if(YH.includes(t.tagName.toLowerCase()))return!0;const i=t.getAttribute("contenteditable");return i==="true"||i===""?!0:t===e?!1:nC(e,t.parentElement)}function GH(e,t){const r=t.target;return Xd(r)?nC(e,r):!1}var XH=e=>Qa(e.getBoundingClientRect()).center;function ZH(e){return e instanceof V6(e).Element}const KH=(()=>{const e="matches";return typeof document>"u"?e:[e,"msMatchesSelector","webkitMatchesSelector"].find(i=>i in Element.prototype)||e})();function rC(e,t){return e==null?null:e[KH](t)?e:rC(e.parentElement,t)}function JH(e,t){return e.closest?e.closest(t):rC(e,t)}function QH(e){return`[${Al.contextId}="${e}"]`}function eV(e,t){const r=t.target;if(!ZH(r))return null;const i=QH(e),c=JH(r,i);return!c||!Xd(c)?null:c}function tV(e,t){const r=eV(e,t);return r?r.getAttribute(Al.draggableId):null}function nV(e,t){const r=`[${W0.contextId}="${e}"]`,c=H6(document,r).find(o=>o.getAttribute(W0.id)===t);return!c||!Xd(c)?null:c}function rV(e){e.preventDefault()}function Zc(e){let{expected:t,phase:r,isLockActive:i,shouldWarn:c}=e;return!(!i()||t!==r)}function aC(e){let{lockAPI:t,store:r,registry:i,draggableId:c}=e;if(t.isClaimed())return!1;const o=i.draggable.findById(c);return!(!o||!o.options.isEnabled||!z6(r.getState(),c))}function aV(e){let{lockAPI:t,contextId:r,store:i,registry:c,draggableId:o,forceSensorStop:a,sourceEvent:n}=e;if(!aC({lockAPI:t,store:i,registry:c,draggableId:o}))return null;const f=c.draggable.getById(o),s=nV(r,f.descriptor.id);if(!s||n&&!f.options.canDragInteractiveElements&&GH(s,n))return null;const u=t.claim(a||Xi);let d="PRE_DRAG";function h(){return f.options.shouldRespectForcePress}function p(){return t.isActive(u)}function m(w,k){Zc({expected:w,phase:d,isLockActive:p,shouldWarn:!0})&&i.dispatch(k())}const y=m.bind(null,"DRAGGING");function v(w){function k(){t.release(),d="COMPLETED"}d!=="PRE_DRAG"&&(k(),un()),i.dispatch(HW(w.liftActionArgs)),d="DRAGGING";function T(M,S){if(S===void 0&&(S={shouldBlockNextClick:!1}),w.cleanup(),S.shouldBlockNextClick){const C=Wa(window,[{eventName:"click",fn:rV,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(C)}k(),i.dispatch(R6({reason:M}))}return{isActive:()=>Zc({expected:"DRAGGING",phase:d,isLockActive:p,shouldWarn:!1}),shouldRespectForcePress:h,drop:M=>T("DROP",M),cancel:M=>T("CANCEL",M),...w.actions}}function g(w){const k=Eu(M=>{y(()=>E6({client:M}))});return{...v({liftActionArgs:{id:o,clientSelection:w,movementMode:"FLUID"},cleanup:()=>k.cancel(),actions:{move:k}}),move:k}}function b(){const w={moveUp:()=>y(eU),moveRight:()=>y(nU),moveDown:()=>y(tU),moveLeft:()=>y(rU)};return v({liftActionArgs:{id:o,clientSelection:XH(s),movementMode:"SNAP"},cleanup:Xi,actions:w})}function x(){Zc({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!0})&&t.release()}return{isActive:()=>Zc({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!1}),shouldRespectForcePress:h,fluidLift:g,snapLift:b,abort:x}}const iV=[Q6,eC,tC];function oV(e){let{contextId:t,store:r,registry:i,customSensors:c,enableDefaultSensors:o}=e;const a=[...o?iV:[],...c||[]],n=$e.useState(()=>MH())[0],l=Sn(function(v,g){ju(v)&&!ju(g)&&n.tryAbandon()},[n]);Fa(function(){let v=r.getState();return r.subscribe(()=>{const b=r.getState();l(v,b),v=b})},[n,r,l]),Fa(()=>n.tryAbandon,[n.tryAbandon]);const f=Sn(y=>aC({lockAPI:n,registry:i,store:r,draggableId:y}),[n,i,r]),s=Sn((y,v,g)=>aV({lockAPI:n,registry:i,contextId:t,store:r,draggableId:y,forceSensorStop:v||null,sourceEvent:g&&g.sourceEvent?g.sourceEvent:null}),[t,n,i,r]),u=Sn(y=>tV(t,y),[t]),d=Sn(y=>{const v=i.draggable.findById(y);return v?v.options:null},[i.draggable]),h=Sn(function(){n.isClaimed()&&(n.tryAbandon(),r.getState().phase!=="IDLE"&&r.dispatch(g1()))},[n,r]),p=Sn(()=>n.isClaimed(),[n]),m=Xn(()=>({canGetLock:f,tryGetLock:s,findClosestDraggableId:u,findOptionsForDraggable:d,tryReleaseLock:h,isLockClaimed:p}),[f,s,u,d,h,p]);for(let y=0;y({onBeforeCapture:t=>{const r=()=>{e.onBeforeCapture&&e.onBeforeCapture(t)};et.version.startsWith("16")||et.version.startsWith("17")?r():yy.flushSync(r)},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}),sV=e=>({...Nu,...e.autoScrollerOptions,durationDampening:{...Nu.durationDampening,...e.autoScrollerOptions}});function $s(e){return e.current||un(),e.current}function uV(e){const{contextId:t,setCallbacks:r,sensors:i,nonce:c,dragHandleUsageInstructions:o}=e,a=$e.useRef(null),n=X6(e),l=Sn(()=>lV(n.current),[n]),f=Sn(()=>sV(n.current),[n]),s=bH(t),u=kH({contextId:t,text:o}),d=fH(t,c),h=Sn(S=>{$s(a).dispatch(S)},[]),p=Xn(()=>V_({publishWhileDragging:YW,updateDroppableScroll:XW,updateDroppableIsEnabled:ZW,updateDroppableIsCombineEnabled:KW,collectionStarting:GW},h),[h]),m=gH(),y=Xn(()=>qU(m,p),[m,p]),v=Xn(()=>iH({scrollWindow:WU,scrollDroppable:y.scrollDroppable,getAutoScrollerOptions:f,...V_({move:E6},h)}),[y.scrollDroppable,h,f]),g=hH(t),b=Xn(()=>jU({announce:s,autoScroller:v,dimensionMarshal:y,focusMarshal:g,getResponders:l,styleMarshal:d}),[s,v,y,g,l,d]);a.current=b;const x=Sn(()=>{const S=$s(a);S.getState().phase!=="IDLE"&&S.dispatch(g1())},[]),_=Sn(()=>{const S=$s(a).getState();return S.phase==="DROP_ANIMATING"?!0:S.phase==="IDLE"?!1:S.isDragging},[]),w=Xn(()=>({isDragging:_,tryAbort:x}),[_,x]);r(w);const k=Sn(S=>z6($s(a).getState(),S),[]),T=Sn(()=>mo($s(a).getState()),[]),M=Xn(()=>({marshal:y,focus:g,contextId:t,canLift:k,isMovementAllowed:T,dragHandleUsageInstructionsId:u,registry:m}),[t,y,u,g,k,T,m]);return oV({contextId:t,store:b,registry:m,customSensors:i||null,enableDefaultSensors:e.enableDefaultSensors!==!1}),$e.useEffect(()=>x,[x]),et.createElement(Zd.Provider,{value:M},et.createElement(kq,{context:_1,store:b},e.children))}let iC=0;function cV(){iC=0}function fV(){return Xn(()=>`${iC++}`,[])}function dV(){return et.useId()}var hV="useId"in et?dV:fV;function pV(){"useId"in et||(cV(),xH())}function gV(e){const t=hV(),r=e.dragHandleUsageInstructions||gf.dragHandleUsageInstructions;return et.createElement(Rq,null,i=>et.createElement(uV,{nonce:e.nonce,contextId:t,setCallbacks:i,dragHandleUsageInstructions:r,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children))}const b3={dragging:5e3,dropAnimating:4500},mV=(e,t)=>t?Cu.drop(t.duration):e?Cu.snap:Cu.fluid,vV=(e,t)=>{if(e)return t?Fu.opacity.drop:Fu.opacity.combining},yV=e=>e.forceShouldAnimate!=null?e.forceShouldAnimate:e.mode==="SNAP";function bV(e){const r=e.dimension.client,{offset:i,combineWith:c,dropping:o}=e,a=!!c,n=yV(e),l=!!o,f=l?z0.drop(i,a):z0.moveTo(i);return{position:"fixed",top:r.marginBox.top,left:r.marginBox.left,boxSizing:"border-box",width:r.borderBox.width,height:r.borderBox.height,transition:mV(n,o),transform:f,opacity:vV(a,l),zIndex:l?b3.dropAnimating:b3.dragging,pointerEvents:"none"}}function xV(e){return{transform:z0.moveTo(e.offset),transition:e.shouldAnimateDisplacement?void 0:"none"}}function wV(e){return e.type==="DRAGGING"?bV(e):xV(e)}function _V(e,t,r){r===void 0&&(r=ea);const i=window.getComputedStyle(t),c=t.getBoundingClientRect(),o=l6(c,i),a=zf(o,r),n={client:o,tagName:t.tagName.toLowerCase(),display:i.display},l={x:o.marginBox.width,y:o.marginBox.height};return{descriptor:e,placeholder:n,displaceBy:l,client:o,page:a}}function TV(e){const t=T1("draggable"),{descriptor:r,registry:i,getDraggableRef:c,canDragInteractiveElements:o,shouldRespectForcePress:a,isEnabled:n}=e,l=Xn(()=>({canDragInteractiveElements:o,shouldRespectForcePress:a,isEnabled:n}),[o,n,a]),f=Sn(h=>{const p=c();return p||un(),_V(r,p,h)},[r,c]),s=Xn(()=>({uniqueId:t,descriptor:r,options:l,getDimension:f}),[r,f,l,t]),u=$e.useRef(s),d=$e.useRef(!0);Fa(()=>(i.draggable.register(u.current),()=>i.draggable.unregister(u.current)),[i.draggable]),Fa(()=>{if(d.current){d.current=!1;return}const h=u.current;u.current=s,i.draggable.update(s,h)},[s,i.draggable])}var M1=et.createContext(null);function Vf(e){const t=$e.useContext(e);return t||un(),t}function kV(e){e.preventDefault()}const MV=e=>{const t=$e.useRef(null),r=Sn(function(w){w===void 0&&(w=null),t.current=w},[]),i=Sn(()=>t.current,[]),{contextId:c,dragHandleUsageInstructionsId:o,registry:a}=Vf(Zd),{type:n,droppableId:l}=Vf(M1),f=Xn(()=>({id:e.draggableId,index:e.index,type:n,droppableId:l}),[e.draggableId,e.index,n,l]),{children:s,draggableId:u,isEnabled:d,shouldRespectForcePress:h,canDragInteractiveElements:p,isClone:m,mapped:y,dropAnimationFinished:v}=e;if(!m){const w=Xn(()=>({descriptor:f,registry:a,getDraggableRef:i,canDragInteractiveElements:p,shouldRespectForcePress:h,isEnabled:d}),[f,a,i,p,h,d]);TV(w)}const g=Xn(()=>d?{tabIndex:0,role:"button","aria-describedby":o,"data-rfd-drag-handle-draggable-id":u,"data-rfd-drag-handle-context-id":c,draggable:!1,onDragStart:kV}:null,[c,o,u,d]),b=Sn(w=>{y.type==="DRAGGING"&&y.dropping&&w.propertyName==="transform"&&(et.version.startsWith("16")||et.version.startsWith("17")?v():yy.flushSync(v))},[v,y]),x=Xn(()=>{const w=wV(y),k=y.type==="DRAGGING"&&y.dropping?b:void 0;return{innerRef:r,draggableProps:{"data-rfd-draggable-context-id":c,"data-rfd-draggable-id":u,style:w,onTransitionEnd:k},dragHandleProps:g}},[c,g,u,y,b,r]),_=Xn(()=>({draggableId:f.id,type:f.type,source:{index:f.index,droppableId:f.droppableId}}),[f.droppableId,f.id,f.index,f.type]);return et.createElement(et.Fragment,null,s(x,y.snapshot,_))};var SV=MV,oC=(e,t)=>e===t,lC=e=>{const{combine:t,destination:r}=e;return r?r.droppableId:t?t.droppableId:null};const CV=e=>e.combine?e.combine.draggableId:null,OV=e=>e.at&&e.at.type==="COMBINE"?e.at.combine.draggableId:null;function AV(){const e=Qr((c,o)=>({x:c,y:o})),t=Qr(function(c,o,a,n,l){return a===void 0&&(a=null),n===void 0&&(n=null),l===void 0&&(l=null),{isDragging:!0,isClone:o,isDropAnimating:!!l,dropAnimation:l,mode:c,draggingOver:a,combineWith:n,combineTargetFor:null}}),r=Qr(function(c,o,a,n,l,f,s){return l===void 0&&(l=null),f===void 0&&(f=null),s===void 0&&(s=null),{mapped:{type:"DRAGGING",dropping:null,draggingOver:l,combineWith:f,mode:o,offset:c,dimension:a,forceShouldAnimate:s,snapshot:t(o,n,l,f,null)}}});return(c,o)=>{if(ju(c)){if(c.critical.draggable.id!==o.draggableId)return null;const a=c.current.client.offset,n=c.dimensions.draggables[o.draggableId],l=Ia(c.impact),f=OV(c.impact),s=c.forceShouldAnimate;return r(e(a.x,a.y),c.movementMode,n,o.isClone,l,f,s)}if(c.phase==="DROP_ANIMATING"){const a=c.completed;if(a.result.draggableId!==o.draggableId)return null;const n=o.isClone,l=c.dimensions.draggables[o.draggableId],f=a.result,s=f.mode,u=lC(f),d=CV(f),p={duration:c.dropDuration,curve:v1.drop,moveTo:c.newHomeClientOffset,opacity:d?Fu.opacity.drop:null,scale:d?Fu.scale.drop:null};return{mapped:{type:"DRAGGING",offset:c.newHomeClientOffset,dimension:l,dropping:p,draggingOver:u,combineWith:d,mode:s,forceShouldAnimate:null,snapshot:t(s,n,u,d,p)}}}return null}}function sC(e){return e===void 0&&(e=null),{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const PV={mapped:{type:"SECONDARY",offset:ea,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:sC(null)}};function DV(){const e=Qr((a,n)=>({x:a,y:n})),t=Qr(sC),r=Qr(function(a,n,l){return n===void 0&&(n=null),{mapped:{type:"SECONDARY",offset:a,combineTargetFor:n,shouldAnimateDisplacement:l,snapshot:t(n)}}}),i=a=>a?r(ea,a,!0):null,c=(a,n,l,f)=>{const s=l.displaced.visible[a],u=!!(f.inVirtualList&&f.effected[a]),d=Vd(l),h=d&&d.draggableId===a?n:null;if(!s){if(!u)return i(h);if(l.displaced.invisible[a])return null;const y=Wl(f.displacedBy.point),v=e(y.x,y.y);return r(v,h,!0)}if(u)return i(h);const p=l.displacedBy.point,m=e(p.x,p.y);return r(m,h,s.shouldAnimate)};return(a,n)=>{if(ju(a))return a.critical.draggable.id===n.draggableId?null:c(n.draggableId,a.critical.draggable.id,a.impact,a.afterCritical);if(a.phase==="DROP_ANIMATING"){const l=a.completed;return l.result.draggableId===n.draggableId?null:c(n.draggableId,l.result.draggableId,l.impact,l.afterCritical)}return null}}const EV=()=>{const e=AV(),t=DV();return(i,c)=>e(i,c)||t(i,c)||PV},RV={dropAnimationFinished:L6},LV=i6(EV,RV,null,{context:_1,areStatePropsEqual:oC})(SV);var IV=LV;function uC(e){return Vf(M1).isUsingCloneFor===e.draggableId&&!e.isClone?null:et.createElement(IV,e)}function FV(e){const t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,r=!!e.disableInteractiveElementBlocking,i=!!e.shouldRespectForcePress;return et.createElement(uC,Gt({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:i}))}const cC=e=>t=>e===t,NV=cC("scroll"),jV=cC("auto"),x3=(e,t)=>t(e.overflowX)||t(e.overflowY),$V=e=>{const t=window.getComputedStyle(e),r={overflowX:t.overflowX,overflowY:t.overflowY};return x3(r,NV)||x3(r,jV)},BV=()=>!1,fC=e=>e==null?null:e===document.body?BV()?e:null:e===document.documentElement?null:$V(e)?e:fC(e.parentElement);var zV=fC,U0=e=>({x:e.scrollLeft,y:e.scrollTop});const dC=e=>e?window.getComputedStyle(e).position==="fixed"?!0:dC(e.parentElement):!1;var qV=e=>{const t=zV(e),r=dC(e);return{closestScrollable:t,isFixedOnPage:r}},WV=e=>{let{descriptor:t,isEnabled:r,isCombineEnabled:i,isFixedOnPage:c,direction:o,client:a,page:n,closest:l}=e;const f=(()=>{if(!l)return null;const{scrollSize:h,client:p}=l,m=j6({scrollHeight:h.scrollHeight,scrollWidth:h.scrollWidth,height:p.paddingBox.height,width:p.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:p,scrollSize:h,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:m,diff:{value:ea,displacement:ea}}}})(),s=o==="vertical"?c1:v6,u=Cl({page:n,withPlaceholder:null,axis:s,frame:f});return{descriptor:t,isCombineEnabled:i,isFixedOnPage:c,axis:s,isEnabled:r,client:a,page:n,frame:f,subject:u}};const UV=(e,t)=>{const r=s6(e);if(!t||e!==t)return r;const i=r.paddingBox.top-t.scrollTop,c=r.paddingBox.left-t.scrollLeft,o=i+t.scrollHeight,a=c+t.scrollWidth,l=o1({top:i,right:a,bottom:o,left:c},r.border);return l1({borderBox:l,margin:r.margin,border:r.border,padding:r.padding})};var HV=e=>{let{ref:t,descriptor:r,env:i,windowScroll:c,direction:o,isDropDisabled:a,isCombineEnabled:n,shouldClipSubject:l}=e;const f=i.closestScrollable,s=UV(t,f),u=zf(s,c),d=(()=>{if(!f)return null;const p=s6(f),m={scrollHeight:f.scrollHeight,scrollWidth:f.scrollWidth};return{client:p,page:zf(p,c),scroll:U0(f),scrollSize:m,shouldClipSubject:l}})();return WV({descriptor:r,isEnabled:!a,isCombineEnabled:n,isFixedOnPage:i.isFixedOnPage,direction:o,client:s,page:u,closest:d})};const VV={passive:!1},YV={passive:!0};var w3=e=>e.shouldPublishImmediately?VV:YV;const Kc=e=>e&&e.env.closestScrollable||null;function GV(e){const t=$e.useRef(null),r=Vf(Zd),i=T1("droppable"),{registry:c,marshal:o}=r,a=X6(e),n=Xn(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),l=$e.useRef(n),f=Xn(()=>Qr((x,_)=>{t.current||un();const w={x,y:_};o.updateDroppableScroll(n.id,w)}),[n.id,o]),s=Sn(()=>{const x=t.current;return!x||!x.env.closestScrollable?ea:U0(x.env.closestScrollable)},[]),u=Sn(()=>{const x=s();f(x.x,x.y)},[s,f]),d=Xn(()=>Eu(u),[u]),h=Sn(()=>{const x=t.current,_=Kc(x);if(x&&_||un(),x.scrollOptions.shouldPublishImmediately){u();return}d()},[d,u]),p=Sn((x,_)=>{t.current&&un();const w=a.current,k=w.getDroppableRef();k||un();const T=qV(k),M={ref:k,descriptor:n,env:T,scrollOptions:_};t.current=M;const S=HV({ref:k,descriptor:n,env:T,windowScroll:x,direction:w.direction,isDropDisabled:w.isDropDisabled,isCombineEnabled:w.isCombineEnabled,shouldClipSubject:!w.ignoreContainerClipping}),C=T.closestScrollable;return C&&(C.setAttribute(g3.contextId,r.contextId),C.addEventListener("scroll",h,w3(M.scrollOptions))),S},[r.contextId,n,h,a]),m=Sn(()=>{const x=t.current,_=Kc(x);return x&&_||un(),U0(_)},[]),y=Sn(()=>{const x=t.current;x||un();const _=Kc(x);t.current=null,_&&(d.cancel(),_.removeAttribute(g3.contextId),_.removeEventListener("scroll",h,w3(x.scrollOptions)))},[h,d]),v=Sn(x=>{const _=t.current;_||un();const w=Kc(_);w||un(),w.scrollTop+=x.y,w.scrollLeft+=x.x},[]),g=Xn(()=>({getDimensionAndWatchScroll:p,getScrollWhileDragging:m,dragStopped:y,scroll:v}),[y,p,m,v]),b=Xn(()=>({uniqueId:i,descriptor:n,callbacks:g}),[g,n,i]);Fa(()=>(l.current=b.descriptor,c.droppable.register(b),()=>{t.current&&y(),c.droppable.unregister(b)}),[g,n,y,b,o,c.droppable]),Fa(()=>{t.current&&o.updateDroppableIsEnabled(l.current.id,!e.isDropDisabled)},[e.isDropDisabled,o]),Fa(()=>{t.current&&o.updateDroppableIsCombineEnabled(l.current.id,e.isCombineEnabled)},[e.isCombineEnabled,o])}function Cm(){}const _3={width:0,height:0,margin:Bq},XV=e=>{let{isAnimatingOpenOnMount:t,placeholder:r,animate:i}=e;return t||i==="close"?_3:{height:r.client.borderBox.height,width:r.client.borderBox.width,margin:r.client.margin}},ZV=e=>{let{isAnimatingOpenOnMount:t,placeholder:r,animate:i}=e;const c=XV({isAnimatingOpenOnMount:t,placeholder:r,animate:i});return{display:r.display,boxSizing:"border-box",width:c.width,height:c.height,marginTop:c.margin.top,marginRight:c.margin.right,marginBottom:c.margin.bottom,marginLeft:c.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:i!=="none"?Cu.placeholder:null}},KV=e=>{const t=$e.useRef(null),r=Sn(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]),{animate:i,onTransitionEnd:c,onClose:o,contextId:a}=e,[n,l]=$e.useState(e.animate==="open");$e.useEffect(()=>n?i!=="open"?(r(),l(!1),Cm):t.current?Cm:(t.current=setTimeout(()=>{t.current=null,l(!1)}),r):Cm,[i,n,r]);const f=Sn(u=>{u.propertyName==="height"&&(c(),i==="close"&&o())},[i,o,c]),s=ZV({isAnimatingOpenOnMount:n,animate:e.animate,placeholder:e.placeholder});return et.createElement(e.placeholder.tagName,{style:s,"data-rfd-placeholder-context-id":a,onTransitionEnd:f,ref:e.innerRef})};var JV=et.memo(KV);class QV extends et.PureComponent{constructor(){super(...arguments),this.state={isVisible:!!this.props.on,data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{this.state.animate==="close"&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(t,r){return t.shouldAnimate?t.on?{isVisible:!0,data:t.on,animate:"open"}:r.isVisible?{isVisible:!0,data:r.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!t.on,data:t.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const t={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(t)}}const eY=e=>{const t=$e.useContext(Zd);t||un();const{contextId:r,isMovementAllowed:i}=t,c=$e.useRef(null),o=$e.useRef(null),{children:a,droppableId:n,type:l,mode:f,direction:s,ignoreContainerClipping:u,isDropDisabled:d,isCombineEnabled:h,snapshot:p,useClone:m,updateViewportMaxScroll:y,getContainerForClone:v}=e,g=Sn(()=>c.current,[]),b=Sn(function(C){C===void 0&&(C=null),c.current=C},[]);Sn(()=>o.current,[]);const x=Sn(function(C){C===void 0&&(C=null),o.current=C},[]),_=Sn(()=>{i()&&y({maxScroll:B6()})},[i,y]);GV({droppableId:n,type:l,mode:f,direction:s,isDropDisabled:d,isCombineEnabled:h,ignoreContainerClipping:u,getDroppableRef:g});const w=Xn(()=>et.createElement(QV,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},C=>{let{onClose:P,data:D,animate:O}=C;return et.createElement(JV,{placeholder:D,onClose:P,innerRef:x,animate:O,contextId:r,onTransitionEnd:_})}),[r,_,e.placeholder,e.shouldAnimatePlaceholder,x]),k=Xn(()=>({innerRef:b,placeholder:w,droppableProps:{"data-rfd-droppable-id":n,"data-rfd-droppable-context-id":r}}),[r,n,w,b]),T=m?m.dragging.draggableId:null,M=Xn(()=>({droppableId:n,type:l,isUsingCloneFor:T}),[n,T,l]);function S(){if(!m)return null;const{dragging:C,render:P}=m,D=et.createElement(uC,{draggableId:C.draggableId,index:C.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(O,R)=>P(O,R,C));return V9.createPortal(D,v())}return et.createElement(M1.Provider,{value:M},a(k,p),S())};var tY=eY;function nY(){return document.body||un(),document.body}const T3={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:nY},hC=e=>{let t={...e},r;for(r in T3)e[r]===void 0&&(t={...t,[r]:T3[r]});return t},Om=(e,t)=>e===t.droppable.type,k3=(e,t)=>t.draggables[e.draggable.id],rY=()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},r=Qr(o=>({draggableId:o.id,type:o.type,source:{index:o.index,droppableId:o.droppableId}})),i=Qr((o,a,n,l,f,s)=>{const u=f.descriptor.id;if(f.descriptor.droppableId===o){const p=s?{render:s,dragging:r(f.descriptor)}:null,m={isDraggingOver:n,draggingOverWith:n?u:null,draggingFromThisWith:u,isUsingPlaceholder:!0};return{placeholder:f.placeholder,shouldAnimatePlaceholder:!1,snapshot:m,useClone:p}}if(!a)return t;if(!l)return e;const h={isDraggingOver:n,draggingOverWith:u,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:f.placeholder,shouldAnimatePlaceholder:!0,snapshot:h,useClone:null}});return(o,a)=>{const n=hC(a),l=n.droppableId,f=n.type,s=!n.isDropDisabled,u=n.renderClone;if(ju(o)){const d=o.critical;if(!Om(f,d))return t;const h=k3(d,o.dimensions),p=Ia(o.impact)===l;return i(l,s,p,p,h,u)}if(o.phase==="DROP_ANIMATING"){const d=o.completed;if(!Om(f,d.critical))return t;const h=k3(d.critical,o.dimensions);return i(l,s,lC(d.result)===l,Ia(d.impact)===l,h,u)}if(o.phase==="IDLE"&&o.completed&&!o.shouldFlush){const d=o.completed;if(!Om(f,d.critical))return t;const h=Ia(d.impact)===l,p=!!(d.impact.at&&d.impact.at.type==="COMBINE"),m=d.critical.droppable.id===l;return h?p?e:t:m?e:t}return t}},aY={updateViewportMaxScroll:QW},iY=i6(rY,aY,(e,t,r)=>({...hC(r),...e,...t}),{context:_1,areStatePropsEqual:oC})(tY);var oY=iY;const lY=Object.freeze(Object.defineProperty({__proto__:null,DragDropContext:gV,Draggable:FV,Droppable:oY,resetServerContext:pV,useKeyboardSensor:eC,useMouseSensor:Q6,useTouchSensor:tC},Symbol.toStringTag,{value:"Module"})),S1=qn(lY);var M3;function sY(){return M3||(M3=1,function(e){var t=Rn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(hr()),c=t(zo),o=t(Jr()),a=t(K4),n=t(Jz),l=t(Ud),f=t(Or),s=m($e),u=S1,d=ei(),h=tc();function p(x){if(typeof WeakMap!="function")return null;var _=new WeakMap,w=new WeakMap;return(p=function(T){return T?w:_})(x)}function m(x,_){if(x&&x.__esModule)return x;if(x===null||r(x)!=="object"&&typeof x!="function")return{default:x};var w=p(_);if(w&&w.has(x))return w.get(x);var k={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in x)if(M!=="default"&&Object.prototype.hasOwnProperty.call(x,M)){var S=T?Object.getOwnPropertyDescriptor(x,M):null;S&&(S.get||S.set)?Object.defineProperty(k,M,S):k[M]=x[M]}return k.default=x,w&&w.set(x,k),k}function y(x,_){var w=Object.keys(x);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(x);_&&(k=k.filter(function(T){return Object.getOwnPropertyDescriptor(x,T).enumerable})),w.push.apply(w,k)}return w}function v(x){for(var _=1;_0&&s.default.createElement(l.default,{variant:"caption",sx:{padding:1}},_.groupedBy),x.groupColumns.map(function(P,D){return s.default.createElement(u.Draggable,{key:P.tableData.id.toString(),draggableId:P.tableData.id.toString(),index:D},function(O,R){var F;return s.default.createElement(c.default,(0,i.default)({ref:O.innerRef},O.draggableProps,O.dragHandleProps,{sx:T(R.isDragging,O.draggableProps.style)}),s.default.createElement(n.default,(0,i.default)({},O.dragHandleProps,k.groupChipProps,{onClick:function(){return x.onSortChanged(P)},label:s.default.createElement(c.default,{sx:{display:"flex",alignItems:"center"}},s.default.createElement(c.default,{sx:{float:"left"}},P.title),P.tableData.groupSort&&s.default.createElement(w.SortArrow,{sx:{transition:"300ms ease all",transform:P.tableData.groupSort==="asc"?"rotate(-180deg)":"none",fontSize:18}})),sx:v({boxShadow:"none",textTransform:"none"},(F=k.groupChipProps)!==null&&F!==void 0?F:{}),onDelete:function(){return x.onGroupRemoved(P,D)}})))})}),x.groupColumns.length===0&&s.default.createElement(l.default,{variant:"caption",sx:{padding:1}},_.placeholder),S.placeholder)}))}g.defaultProps={},g.propTypes={forwardedRef:f.default.element,className:f.default.string,onSortChanged:f.default.func,onGroupRemoved:f.default.func,onGroupChange:f.default.func,persistentGroupingsId:f.default.string};var b=s.default.forwardRef(function(_,w){return s.default.createElement(g,(0,i.default)({},_,{forwardedRef:w}))});e.default=b}(vm)),vm}var Am={},S3;function uY(){return S3||(S3=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(hr()),i=t(Jr()),c=t(io()),o=t(zl()),a=t(mi),n=t(Pi),l=t(ql),f=t(qo),s=t(Or),u=t($e),d=ei();function h(v,g){var b=Object.keys(v);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(v);g&&(x=x.filter(function(_){return Object.getOwnPropertyDescriptor(v,_).enumerable})),b.push.apply(b,x)}return b}function p(v){for(var g=1;g0&&_++;var w=v.groups[v.level],k;v.groupData.isExpanded&&(v.groups.length>v.level+1?k=v.groupData.groups.map(function(j,N){return u.default.createElement(v.components.GroupRow,{actions:v.actions,key:j.value||""+N,columns:v.columns,components:v.components,detailPanel:v.detailPanel,getFieldValue:v.getFieldValue,groupData:j,groups:v.groups,level:v.level+1,path:[].concat((0,o.default)(v.path),[N]),onGroupExpandChanged:v.onGroupExpandChanged,onGroupSelected:v.onGroupSelected,onRowSelected:v.onRowSelected,onRowClick:v.onRowClick,onToggleDetailPanel:v.onToggleDetailPanel,onTreeExpandChanged:v.onTreeExpandChanged,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,hasAnyEditingRow:v.hasAnyEditingRow,isTreeData:v.isTreeData,cellEditable:v.cellEditable,onCellEditStarted:v.onCellEditStarted,onCellEditFinished:v.onCellEditFinished,scrollWidth:v.scrollWidth,treeDataMaxLevel:v.treeDataMaxLevel})}):k=v.groupData.data.map(function(j,N){return j.tableData.editing?u.default.createElement(v.components.EditRow,{columns:v.columns,components:v.components,data:j,path:[].concat((0,o.default)(v.path),[j.tableData.uuid]),localization:v.localization,key:N,mode:j.tableData.editing,isTreeData:v.isTreeData,detailPanel:v.detailPanel,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,getFieldValue:v.getFieldValue,onBulkEditRowChanged:v.onBulkEditRowChanged,scrollWidth:v.scrollWidth}):u.default.createElement(v.components.Row,{actions:v.actions,key:N,columns:v.columns,components:v.components,data:j,detailPanel:v.detailPanel,level:(v.level||0)+1,getFieldValue:v.getFieldValue,path:[].concat((0,o.default)(v.path),[j.tableData.uuid]),onRowSelected:v.onRowSelected,onRowClick:v.onRowClick,onToggleDetailPanel:v.onToggleDetailPanel,isTreeData:v.isTreeData,onTreeExpandChanged:v.onTreeExpandChanged,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,hasAnyEditingRow:v.hasAnyEditingRow,cellEditable:v.cellEditable,onCellEditStarted:v.onCellEditStarted,onCellEditFinished:v.onCellEditFinished,scrollWidth:v.scrollWidth,treeDataMaxLevel:v.treeDataMaxLevel})}));for(var T=[],M=0;M0&&A!==z,checked:A===z,onChange:function(N,E){return v.onGroupSelected&&v.onGroupSelected(E,v.groupData.path)},style:{marginRight:8}}),u.default.createElement("b",null,C,P)))),k)}m.defaultProps={columns:[],groups:[],level:0},m.propTypes={actions:s.default.array,columns:s.default.arrayOf(s.default.object),components:s.default.object,cellEditable:s.default.object,detailPanel:s.default.oneOfType([s.default.func,s.default.arrayOf(s.default.object)]),forwardedRef:s.default.element,getFieldValue:s.default.func,groupData:s.default.object,groups:s.default.arrayOf(s.default.object),hasAnyEditingRow:s.default.bool,icons:s.default.object,isTreeData:s.default.bool.isRequired,level:s.default.number,localization:s.default.object,onBulkEditRowChanged:s.default.func,onCellEditFinished:s.default.func,onCellEditStarted:s.default.func,onEditingApproved:s.default.func,onEditingCanceled:s.default.func,onGroupExpandChanged:s.default.func,onRowClick:s.default.func,onGroupSelected:s.default.func,onRowSelected:s.default.func,onToggleDetailPanel:s.default.func.isRequired,onTreeExpandChanged:s.default.func.isRequired,path:s.default.arrayOf(s.default.number),scrollWidth:s.default.number.isRequired,treeDataMaxLevel:s.default.number};var y=u.default.forwardRef(function(g,b){return u.default.createElement(m,(0,r.default)({},g,{forwardedRef:b}))});e.default=y}(Am)),Am}var Pm={};const cY=qn(Y9),fY=qn(G9);var C3;function dY(){return C3||(C3=1,function(e){var t=Rn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableHeader=T,e.styles=e.default=void 0;var i=t(zo),c=t(Wo),o=t(hr()),a=t(Jr()),n=t(io()),l=t(Bl()),f=t($e),s=t(Or),u=t(cY),d=t(Pi),h=t(mi),p=t(fY),m=t(qo),y=S1,v=_(Li()),g=ei(),b=["onColumnResized","classes","sx","columns"];function x(O){if(typeof WeakMap!="function")return null;var R=new WeakMap,F=new WeakMap;return(x=function(z){return z?F:R})(O)}function _(O,R){if(O&&O.__esModule)return O;if(O===null||r(O)!=="object"&&typeof O!="function")return{default:O};var F=x(R);if(F&&F.has(O))return F.get(O);var A={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in O)if(B!=="default"&&Object.prototype.hasOwnProperty.call(O,B)){var $=z?Object.getOwnPropertyDescriptor(O,B):null;$&&($.get||$.set)?Object.defineProperty(A,B,$):A[B]=O[B]}return A.default=O,F&&F.set(O,A),A}function w(O,R){var F=Object.keys(O);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(O);R&&(A=A.filter(function(z){return Object.getOwnPropertyDescriptor(O,z).enumerable})),F.push.apply(F,A)}return F}function k(O){for(var R=1;R-1)&&!ce.tableData.hiddden}).sort(function(ce,ye){return ce.tableData.columnOrder-ye.tableData.columnOrder}).map(function(ce,ye,J){var ne=ce.align!==void 0?ce.align:["numeric","currency"].indexOf(ce.type)!==-1?"right":"left",de=ce.title;if(j.draggable&&ce.draggable!==!1?de=f.default.createElement(y.Draggable,{key:ce.tableData.id,draggableId:ce.tableData.id.toString(),index:ye,style:{zIndex:99}},function(ue,ge){return f.default.createElement("div",(0,o.default)({ref:ue.innerRef},ue.draggableProps,ue.dragHandleProps,{style:ge.isDragging?ue.draggableProps.style:{position:"relative",minWidth:0,display:"flex",flexDirection:ne==="right"?"row-reverse":void 0}}),ce.sorting!==!1&&B.sorting&&B.allowSorting?f.default.createElement(S,{columnDef:ce,keepSortDirectionOnColumnSwitch:j.keepSortDirectionOnColumnSwitch,icon:N.SortArrow,thirdSortClick:j.thirdSortClick,onOrderChange:B.onOrderChange,orderByCollection:B.orderByCollection,showColumnSortOrder:j.showColumnSortOrder,sortOrderIndicatorStyle:j.sortOrderIndicatorStyle},ce.title):ce.title)}):ce.sorting!==!1&&B.sorting&&B.allowSorting&&(de=f.default.createElement(S,{columnDef:ce,keepSortDirectionOnColumnSwitch:j.keepSortDirectionOnColumnSwitch,icon:N.SortArrow,thirdSortClick:j.thirdSortClick,onOrderChange:B.onOrderChange,orderByCollection:B.orderByCollection,showColumnSortOrder:j.showColumnSortOrder,sortOrderIndicatorStyle:j.sortOrderIndicatorStyle},ce.title)),ce.tooltip&&(de=f.default.createElement(c.default,{title:ce.tooltip,placement:"bottom"},f.default.createElement("span",null,de))),j.tableLayout==="fixed"&&j.columnResizable&&ce.resizable!==!1&&!(j.tableWidth==="full"&&ye===J.length-1)){var xe=N.Resize?N.Resize:function(ue){return f.default.createElement(i.default,(0,o.default)({},ue,{"data-test-id":"drag_handle"}))};de=f.default.createElement(i.default,{sx:C.headerWrap(ne==="right")},f.default.createElement(i.default,{sx:C.headerContent(ne==="right")},de),f.default.createElement("div",null),f.default.createElement(xe,{sx:C.headerResize((q==null?void 0:q.col)&&q.col.tableData.id===ce.tableData.id),onMouseDown:function(ge){return Y(ge,ce,ye)}}))}return f.default.createElement(h.default,{key:ce.tableData.id,align:ne,sx:C.header,style:le(ce),size:Me,"aria-label":ce.ariaLabel},de)})}function pe(){var Me=v.selectionMaxWidth(k(k({},B),{},{options:j}),B.treeDataMaxLevel);return f.default.createElement(h.default,{padding:"none",key:"key-selection-column",sx:C.header,style:k(k({},j.headerStyle),{},{width:Me})},j.showSelectAllCheckbox&&f.default.createElement(m.default,(0,o.default)({indeterminate:B.selectedCount>0&&B.selectedCount0&&B.selectedCount>=B.dataCount,onChange:function(ye,J){return B.onAllSelected&&B.onAllSelected(J)}},j.headerSelectionProps)))}function Te(){return f.default.createElement(h.default,{padding:"none",key:"key-detail-panel-column",sx:C.header,style:j.headerStyle})}var Se=se();if(j.selection&&Se.splice(0,0,pe()),B.showActionsColumn)if(j.actionsColumnIndex>=0){var Oe=0;j.selection&&(Oe=1),Se.splice(j.actionsColumnIndex+Oe,0,ie())}else j.actionsColumnIndex===-1&&Se.push(ie());return B.hasDetailPanel&&j.showDetailPanelIcon&&(j.detailPanelColumnAlignment==="right"?Se.push(Te()):Se.splice(0,0,Te())),B.isTreeData>0&&Se.splice(0,0,f.default.createElement(h.default,{padding:"none",key:"key-tree-data-header",sx:C.header,style:j.headerStyle})),Q.filter(function(Me){return Me.tableData.groupOrder>-1}).forEach(function(Me){Se.splice(0,0,f.default.createElement(h.default,{padding:"checkbox",key:"key-group-header"+Me.tableData.id,sx:C.header,style:j.headerStyle}))}),f.default.createElement(u.default,{ref:B.forwardedRef,classes:F,sx:A},f.default.createElement(d.default,{sx:C.headerRow},Se))}var M=function(R,F,A,z,B){return A.tableData.id!==R?B&&F||"asc":F==="asc"?"desc":F==="desc"&&z?"":"asc"};function S(O){var R=O.columnDef,F=O.keepSortDirectionOnColumnSwitch,A=O.icon,z=O.thirdSortClick,B=O.onOrderChange,$=O.children,j=O.orderByCollection,N=O.showColumnSortOrder,E=O.sortOrderIndicatorStyle,W=j.find(function(H){var V=H.orderBy;return V===R.tableData.id}),G=(W||F)&&W&&W.orderDirection||"asc",L="none";W&&G==="asc"?L=R.ariaSortAsc||"ascending":W&&G==="desc"&&(L=R.ariaSortDesc||"descending");var q=W&&W.orderBy;return f.default.createElement(f.default.Fragment,null,f.default.createElement(p.default,{role:"columnheader","aria-sort":L,"aria-label":R.ariaLabel,IconComponent:A,active:!!W,"data-testid":"mtableheader-sortlabel",direction:G,onClick:function(){var V=M(q,G,R,z,F);B(R.tableData.id,V,W&&W.sortOrder)}},$),f.default.createElement("span",{style:k(k({},E),{},{width:"1em"}),"data-testid":"material-table-column-sort-order-indicator"},N&&W?W.sortOrder:""))}T.defaultProps={dataCount:0,selectedCount:0,orderByCollection:[],allowSorting:!0},T.propTypes={columns:s.default.array.isRequired,classes:s.default.object,sx:s.default.object,dataCount:s.default.number,hasDetailPanel:s.default.bool.isRequired,selectedCount:s.default.number,onAllSelected:s.default.func,onOrderChange:s.default.func,showActionsColumn:s.default.bool,orderByCollection:s.default.array,showColumnSortOrder:s.default.bool,tooltip:s.default.string,allowSorting:s.default.bool};var C={headerRow:{zIndex:10},header:{top:0},headerWrap:function(R){return{display:"flex",alignItems:"center",position:"relative",left:4}},headerWrapRight:function(R){return{display:"flex",alignItems:"center",pr:R?1:void 0,position:"relative",left:4,justifyContent:"flex-end"}},headerContent:function(R){return{minWidth:0,display:"flex",flex:"1 0 100%",flexDirection:R?"row-reverse":void 0,justifyContent:"flex-start",alignItems:"center",width:"100%",position:"relative"}},headerResize:function(R){return{color:R?"primary.main":"inherit",flex:1,cursor:"col-resize",position:"absolute",height:"100%",width:16,display:"flex",justifyContent:"center",right:-8,zIndex:20}}};e.styles=C;var P=f.default.forwardRef(function(R,F){return f.default.createElement(T,(0,o.default)({},R,{forwardedRef:F}))}),D=f.default.memo(P);e.default=D}(Pm)),Pm}var Dm={};const hY=qn(X9);var O3;function pY(){return O3||(O3=1,function(e){var t=Rn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(hr()),c=t(ql),o=t(Wo),a=t(zo),n=t(hY),l=t(Or),f=t($e),s=$l,u=p(Li()),d=ei();function h(b){if(typeof WeakMap!="function")return null;var x=new WeakMap,_=new WeakMap;return(h=function(k){return k?_:x})(b)}function p(b,x){if(b&&b.__esModule)return b;if(b===null||r(b)!=="object"&&typeof b!="function")return{default:b};var _=h(x);if(_&&_.has(b))return _.get(b);var w={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in b)if(T!=="default"&&Object.prototype.hasOwnProperty.call(b,T)){var M=k?Object.getOwnPropertyDescriptor(b,T):null;M&&(M.get||M.set)?Object.defineProperty(w,T,M):w[T]=b[T]}return w.default=b,_&&_.set(b,w),w}function m(b){var x=(0,s.useTheme)(),_=(0,d.useLocalizationStore)().pagination,w=(0,d.useIconStore)(),k=function(G){b.onPageChange(G,0)},T=function(G){b.onPageChange(G,b.page-1)},M=function(G){b.onPageChange(G,b.page+1)},S=function(G){return function(L){b.onPageChange(L,G)}},C=function(G){b.onPageChange(G,Math.max(0,Math.ceil(b.count/b.rowsPerPage)-1))};function P(W,G,L,q){var H=[];q=Math.max(1,Math.min(10,q));for(var V=Math.max(W-q+1,0);V<=Math.min(G+q-1,L);V++){var te=V===b.page?"contained":"text";H.push(f.default.createElement(n.default,{size:"small",style:{boxShadow:"none",maxWidth:"30px",maxHeight:"30px",minWidth:"30px",minHeight:"30px"},disabled:V===b.page,variant:te,onClick:S(V),key:V},V+1))}return f.default.createElement("span",null,H)}var D=b.count,O=b.page,R=b.rowsPerPage,F=b.showFirstLastPageButtons,A=b.numberOfPagesAround,z=Math.ceil(D/R)-1,B=Math.max(O-1,0),$=Math.min(z,O+1),j=u.parseFirstLastPageButtons(F,x.direction==="rtl"),N=j.first,E=j.last;return f.default.createElement(a.default,{sx:{flexShrink:0,color:"text.secondary",marginLeft:2.5,display:"flex",alignItems:"center"},ref:b.forwardedRef},N&&f.default.createElement(o.default,{title:_.firstTooltip},f.default.createElement("span",null,f.default.createElement(c.default,{onClick:k,disabled:O===0,"aria-label":_.firstAriaLabel,size:"large"},x.direction==="rtl"?f.default.createElement(w.LastPage,null):f.default.createElement(w.FirstPage,null)))),f.default.createElement(o.default,{title:_.previousTooltip},f.default.createElement("span",null,f.default.createElement(c.default,{onClick:T,disabled:O===0,"aria-label":_.previousAriaLabel},f.default.createElement(w.PreviousPage,null)))),f.default.createElement(a.default,{sx:{display:{xs:"false",sm:"false",md:"block"}}},P(B,$,z,A)),f.default.createElement(o.default,{title:_.nextTooltip},f.default.createElement("span",null,f.default.createElement(c.default,{onClick:M,disabled:O>=z,"aria-label":_.nextAriaLabel,size:"large"},x.direction==="rtl"?f.default.createElement(w.PreviousPage,null):f.default.createElement(w.NextPage,null)))),E&&f.default.createElement(o.default,{title:_.lastTooltip},f.default.createElement("span",null,f.default.createElement(c.default,{onClick:C,disabled:O>=Math.ceil(D/R)-1,"aria-label":_.lastAriaLabel,size:"large"},x.direction==="rtl"?f.default.createElement(w.FirstPage,null):f.default.createElement(w.LastPage,null)))))}m.propTypes={onPageChange:l.default.func,page:l.default.number,forwardedRef:l.default.func,count:l.default.number,rowsPerPage:l.default.number,numberOfPagesAround:l.default.number,classes:l.default.object,theme:l.default.any,showFirstLastPageButtons:l.default.oneOfType([l.default.object,l.default.bool])},m.defaultProps={showFirstLastPageButtons:!0};var y=f.default.forwardRef(function(x,_){return f.default.createElement(m,(0,i.default)({},x,{forwardedRef:_}))}),v=y,g=v;e.default=g}(Dm)),Dm}var Em={},A3;function gY(){return A3||(A3=1,function(e){var t=Rn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(hr()),c=t(zo),o=t(ql),a=t(Wo),n=t(Ud),l=t(Or),f=t($e),s=$l,u=p(Li()),d=tc();function h(b){if(typeof WeakMap!="function")return null;var x=new WeakMap,_=new WeakMap;return(h=function(k){return k?_:x})(b)}function p(b,x){if(b&&b.__esModule)return b;if(b===null||r(b)!=="object"&&typeof b!="function")return{default:b};var _=h(x);if(_&&_.has(b))return _.get(b);var w={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in b)if(T!=="default"&&Object.prototype.hasOwnProperty.call(b,T)){var M=k?Object.getOwnPropertyDescriptor(b,T):null;M&&(M.get||M.set)?Object.defineProperty(w,T,M):w[T]=b[T]}return w.default=b,_&&_.set(b,w),w}function m(b){var x=(0,s.useTheme)(),_=(0,d.useIconStore)(),w=(0,d.useLocalizationStore)().pagination,k=function(B){b.onPageChange(B,0)},T=function(B){b.onPageChange(B,b.page-1)},M=function(B){b.onPageChange(B,b.page+1)},S=function(B){b.onPageChange(B,Math.max(0,Math.ceil(b.count/b.rowsPerPage)-1))},C=b.count,P=b.page,D=b.rowsPerPage,O=b.showFirstLastPageButtons,R=u.parseFirstLastPageButtons(O,x.direction==="rtl"),F=R.first,A=R.last;return f.default.createElement(c.default,{sx:{flexShrink:0,color:"text.secondary",display:"flex",alignItems:"center"},ref:b.forwardedRef},F&&f.default.createElement(a.default,{title:w.firstTooltip},f.default.createElement("span",null,f.default.createElement(o.default,{onClick:k,disabled:P===0,"aria-label":w.firstAriaLabel,size:"large"},x.direction==="rtl"?f.default.createElement(_.LastPage,null):f.default.createElement(_.FirstPage,null)))),f.default.createElement(a.default,{title:w.previousTooltip},f.default.createElement("span",null,f.default.createElement(o.default,{onClick:T,disabled:P===0,"aria-label":w.previousAriaLabel},x.direction==="rtl"?f.default.createElement(_.NextPage,null):f.default.createElement(_.PreviousPage,null)))),f.default.createElement(n.default,{variant:"caption",style:{flex:1,textAlign:"center",alignSelf:"center",flexBasis:"inherit"}},w.labelDisplayedRows.replace("{from}",b.count===0?0:b.page*b.rowsPerPage+1).replace("{to}",Math.min((b.page+1)*b.rowsPerPage,b.count)).replace("{count}",b.count)),f.default.createElement(a.default,{title:w.nextTooltip},f.default.createElement("span",null,f.default.createElement(o.default,{onClick:M,disabled:P>=Math.ceil(C/D)-1,"aria-label":w.nextAriaLabel},x.direction==="rtl"?f.default.createElement(_.PreviousPage,null):f.default.createElement(_.NextPage,null)))),A&&f.default.createElement(a.default,{title:w.lastTooltip},f.default.createElement("span",null,f.default.createElement(o.default,{onClick:S,disabled:P>=Math.ceil(C/D)-1,"aria-label":w.lastAriaLabel,size:"large"},x.direction==="rtl"?f.default.createElement(_.FirstPage,null):f.default.createElement(_.LastPage,null)))))}m.propTypes={onPageChange:l.default.func,page:l.default.number,count:l.default.number,rowsPerPage:l.default.number,classes:l.default.object,localization:l.default.object,showFirstLastPageButtons:l.default.oneOfType([l.default.object,l.default.bool]),forwardedRef:l.default.func},m.defaultProps={showFirstLastPageButtons:!0};var y=f.default.forwardRef(function(x,_){return f.default.createElement(m,(0,i.default)({},x,{forwardedRef:_}))}),v=y,g=v;e.default=g}(Em)),Em}var Rm={},P3;function mY(){return P3||(P3=1,function(e){var t=Rn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableSummaryRow=v,e.default=void 0;var i=t(Pi),c=t(Ur()),o=t(zl()),a=t(mi),n=t(Jr()),l=p($e),f=Wd(),s=p(Li()),u=ei(),d=t(Or);function h(b){if(typeof WeakMap!="function")return null;var x=new WeakMap,_=new WeakMap;return(h=function(k){return k?_:x})(b)}function p(b,x){if(b&&b.__esModule)return b;if(b===null||r(b)!=="object"&&typeof b!="function")return{default:b};var _=h(x);if(_&&_.has(b))return _.get(b);var w={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in b)if(T!=="default"&&Object.prototype.hasOwnProperty.call(b,T)){var M=k?Object.getOwnPropertyDescriptor(b,T):null;M&&(M.get||M.set)?Object.defineProperty(w,T,M):w[T]=b[T]}return w.default=b,_&&_.set(b,w),w}function m(b,x){var _=Object.keys(b);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(b);x&&(w=w.filter(function(k){return Object.getOwnPropertyDescriptor(b,k).enumerable})),_.push.apply(_,w)}return _}function y(b){for(var x=1;x1&&arguments[1]!==void 0?arguments[1]:1,R=s.elementSize(y(y({},_),{},{options:k})),F=O*s.baseIconSize(y(y({},_),{},{options:k}));return l.createElement(a.default,{key:"placeholder.".concat(D),size:R,padding:"none",style:{width:F,padding:"0px 5px",boxSizing:"border-box"}})}var M=[],S=[],C=0;if(k.selection&&M.push(T(C++)),_.actions&&_.actions.filter(function(D){return D.position==="row"||typeof D=="function"}).length>0){var P=s.rowActions(_).length;k.actionsColumnIndex===-1?S.push(T(C++,P)):k.actionsColumnIndex>=0&&M.push(T(C++,P))}return _.detailPanel&&k.showDetailPanelIcon&&(k.detailPanelColumnAlignment==="right"?S.push(T(C++)):M.push(T(C++))),_.isTreeData&&M.push(T(C++)),l.createElement(i.default,null,M,(0,o.default)(x).sort(function(D,O){return D.tableData.columnOrder-O.tableData.columnOrder}).map(function(D,O){var R=w({index:D.tableData.columnOrder,column:D,columns:x}),F=D.align!==void 0?D.align:["numeric","currency"].indexOf(D.type)!==-1?"right":"left",A="",z=(0,f.getStyle)({columnDef:D,scrollWidth:0});return(0,c.default)(R)==="object"&&R!==null?(A=R.value,z=R.style):A=R,l.createElement(a.default,{key:O,style:z,align:F},A)}),S)}v.propTypes={columns:d.default.array,renderSummaryRow:d.default.func};var g=v;e.default=g}(Rm)),Rm}var Lm={};const vY=qn(Z9);var D3;function yY(){return D3||(D3=1,function(e){var t=Rn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableToolbar=M,e.default=void 0;var i=t(hr()),c=t(Jr()),o=t(zo),a=t(io()),n=t(qo),l=t(X4),f=t(ql),s=t(vY),u=t(Oy),d=t(Ld),h=t(K4),p=t(Wo),m=t(Ud),y=$l,v=t(Or),g=_($e),b=ei();function x(O){if(typeof WeakMap!="function")return null;var R=new WeakMap,F=new WeakMap;return(x=function(z){return z?F:R})(O)}function _(O,R){if(O&&O.__esModule)return O;if(O===null||r(O)!=="object"&&typeof O!="function")return{default:O};var F=x(R);if(F&&F.has(O))return F.get(O);var A={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in O)if(B!=="default"&&Object.prototype.hasOwnProperty.call(O,B)){var $=z?Object.getOwnPropertyDescriptor(O,B):null;$&&($.get||$.set)?Object.defineProperty(A,B,$):A[B]=O[B]}return A.default=O,F&&F.set(O,A),A}function w(O,R){var F=Object.keys(O);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(O);R&&(A=A.filter(function(z){return Object.getOwnPropertyDescriptor(O,z).enumerable})),F.push.apply(F,A)}return F}function k(O){for(var R=1;ROe.tableData.columnOrder?1:-1}),pe=P(O.data()),Te=pe.map(function(Se){return se.reduce(function(Oe,Me){var ce;return typeof Me.customExport=="function"?ce=Me.customExport(Se):ce=O.getFieldValue(Se,Me),Oe[Me.field]=ce,Oe},{})});return[se,Te]};function Y(){return te.search?g.default.createElement(d.default,{autoFocus:te.searchAutoFocus,sx:te.searchFieldAlignment==="left"&&te.showTitle===!1?void 0:S.searchField,value:B,onChange:function(se){return U(se.target.value)},placeholder:F.searchPlaceholder,variant:te.searchFieldVariant,InputProps:{startAdornment:g.default.createElement(l.default,{position:"start"},g.default.createElement(p.default,{title:F.searchTooltip},g.default.createElement(V.Search,{fontSize:"small"}))),endAdornment:g.default.createElement(l.default,{position:"end"},g.default.createElement(f.default,{disabled:!B,onClick:function(){return U("")},"aria-label":F.clearSearchAriaLabel},g.default.createElement(V.ResetSearch,{fontSize:"small","aria-label":"clear"}))),style:te.searchFieldStyle,inputProps:{"aria-label":F.searchAriaLabel}}}):null}function Z(le){var se=le?"toolbarOnSelect":"toolbar";return g.default.createElement("div",{style:{display:"flex"}},te.columnsButton&&!le&&g.default.createElement("span",null,g.default.createElement(p.default,{title:F.showColumnsTitle},g.default.createElement(f.default,{color:"inherit",onClick:function(Te){return H(Te.currentTarget)},"aria-label":F.showColumnsAriaLabel},g.default.createElement(V.ViewColumn,null))),g.default.createElement(s.default,{anchorEl:q,open:!!q,onClose:function(){return H(null)}},g.default.createElement(u.default,{key:"text",disabled:!0,style:{opacity:1,fontWeight:600,fontSize:12}},F.addRemoveColumns),O.columns.map(function(pe){var Te=pe.hiddenByColumnsButton!==void 0?pe.hiddenByColumnsButton:O.columnsHiddenInColumnsButton;return Te?null:g.default.createElement("li",{key:pe.tableData.id},g.default.createElement(u.default,{sx:S.formControlLabel,component:"label",htmlFor:"column-toggle-".concat(pe.tableData.id),disabled:pe.removable===!1},g.default.createElement(n.default,{checked:!pe.hidden,id:"column-toggle-".concat(pe.tableData.id),onChange:function(){return O.onColumnsChanged(pe,!pe.hidden)}}),g.default.createElement("span",null,pe.title)))}))),te.exportMenu.length>0&&g.default.createElement("span",null,g.default.createElement(p.default,{title:F.exportTitle},g.default.createElement(f.default,{color:"inherit",onClick:function(Te){return W(Te.currentTarget)},"aria-label":F.exportAriaLabel},g.default.createElement(V.Export,null))),g.default.createElement(s.default,{anchorEl:E,open:!!E,onClose:function(){return W(null)}},te.exportMenu.map(function(pe,Te){var Se=Q(),Oe=(0,a.default)(Se,2),Me=Oe[0],ce=Oe[1];return g.default.createElement(u.default,{key:"".concat(pe.label).concat(Te),onClick:function(){pe.exportFunc(Me,ce,{searchedData:O.dataManager.searchedData,filteredData:O.dataManager.filteredData,groupedData:O.dataManager.groupedData,selectedData:ee}),W(null)}},pe.label)}))),g.default.createElement("span",null,g.default.createElement(O.components.Actions,{actions:O.actions&&O.actions.filter(function(pe){return pe.position===se}),data:le?ee:void 0,components:O.components})))}function X(){return g.default.createElement(o.default,{sx:S.actions},g.default.createElement("div",null,Z(ee.length>0)))}function re(le){var se=typeof le=="string"?g.default.createElement(m.default,{variant:"h6",style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},le):le;return g.default.createElement(o.default,{sx:S.title},se)}var ie=te.showTextRowsSelected&&ee.length>0?typeof F.nRowsSelected=="function"?F.nRowsSelected(ee.length):F.nRowsSelected.replace("{0}",ee.length):te.showTitle?O.title:null;return g.default.createElement(h.default,{ref:O.forwardedRef,className:O.className,sx:k(k({},S.root),te.showTextRowsSelected&&ee.length>0?S.highlight(R):{})},ie&&re(ie),te.searchFieldAlignment==="left"&&Y(),te.toolbarButtonAlignment==="left"&&X(),g.default.createElement(o.default,{sx:S.spacer}),te.searchFieldAlignment==="right"&&Y(),te.toolbarButtonAlignment==="right"&&X())}M.defaultProps={actions:[],columns:[],columnsHiddenInColumnsButton:!1,searchText:"",originalData:[],title:"No Title!"},M.propTypes={actions:v.default.array,className:v.default.string,columns:v.default.array,components:v.default.object.isRequired,getFieldValue:v.default.func.isRequired,onColumnsChanged:v.default.func.isRequired,dataManager:v.default.object.isRequired,searchText:v.default.string,onSearchChanged:v.default.func.isRequired,originalData:v.default.array,title:v.default.oneOfType([v.default.element,v.default.string]),renderData:v.default.array,data:v.default.oneOfType([v.default.array,v.default.func]),exportAllData:v.default.bool,exportMenu:v.default.arrayOf(v.default.shape({name:v.default.string,handler:v.default.func})),searchAutoFocus:v.default.bool,classes:v.default.object};var S={root:{paddingRight:1,paddingLeft:2},highlight:function(R){return R.palette.mode==="light"?{color:R.palette.secondary.main,backgroundColor:(0,y.lighten)(R.palette.secondary.light,.85)}:{color:R.palette.text.primary,backgroundColor:R.palette.secondary.dark}},spacer:{flex:"1 1 10%"},actions:{color:"text.secondary"},title:{overflow:"hidden"},searchField:{minWidth:150,paddingLeft:2},formControlLabel:{px:1}},C=g.default.forwardRef(function(R,F){return g.default.createElement(M,(0,i.default)({},R,{forwardedRef:F}))});function P(O){for(var R=O;Array.isArray((F=R)===null||F===void 0||(A=F[0])===null||A===void 0?void 0:A.data);){var F,A;R=R.map(function(z){return z.groups.length!==0?z.groups:z.data}).flat()}return R}var D=g.default.memo(C);e.default=D}(Lm)),Lm}var E3;function Jd(){return E3||(E3=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Container",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"MTableAction",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"MTableActions",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"MTableBody",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"MTableBodyRow",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"MTableCell",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"MTableCustomIcon",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"MTableEditCell",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"MTableEditField",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"MTableEditRow",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"MTableFilterRow",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"MTableGroupRow",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"MTableGroupbar",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"MTableHeader",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"MTablePagination",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"MTableScrollbar",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"MTableSteppedPagination",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"MTableSummaryRow",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"MTableToolbar",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"OverlayError",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"OverlayLoading",{enumerable:!0,get:function(){return r.default}});var r=t(vE()),i=t(sR()),c=t(fR()),o=t(hR()),a=t(yR()),n=t(Az()),l=t(Pz()),f=t(Lz()),s=t(Iz()),u=t($z()),d=t(qz()),h=t(Wz()),p=t(Uz()),m=t(Z4()),y=t(sY()),v=t(uY()),g=t(dY()),b=t(pY()),x=t(gY()),_=t(mY()),w=t(yY())}(fg)),fg}var R3;function pC(){return R3||(R3=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(mE),i=Jd(),c={Action:i.MTableAction,Actions:i.MTableActions,Body:i.MTableBody,Cell:i.MTableCell,Container:i.Container,EditCell:i.MTableEditCell,EditField:i.MTableEditField,EditRow:i.MTableEditRow,FilterRow:i.MTableFilterRow,Groupbar:i.MTableGroupbar,GroupRow:i.MTableGroupRow,Header:i.MTableHeader,OverlayLoading:i.OverlayLoading,OverlayError:i.OverlayError,Pagination:r.default,Row:i.MTableBodyRow,SummaryRow:i.MTableSummaryRow,Toolbar:i.MTableToolbar};e.default=c}(cg)),cg}var L3;function bY(){if(L3)return vs;L3=1;var e=Rn;Object.defineProperty(vs,"__esModule",{value:!0}),vs.defaultProps=void 0;var t=e(pC()),r=e(PS()),i=e(OS()),c=e(AS()),o={actions:[],classes:{},columns:[],components:t.default,data:[],icons:r.default,isLoading:!1,title:"Table Title",options:c.default,localization:i.default,style:{}};return vs.defaultProps=o,vs}var Bs={},zs={},I3;function C1(){if(I3)return zs;I3=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.ALL_COLUMNS=void 0;var e="all_columns";return zs.ALL_COLUMNS=e,zs}var F3;function xY(){if(F3)return Bs;F3=1;var e=Rn;Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.propTypes=void 0;var t=e(Or),r=C1(),i=t.default.shape({current:t.default.element}),c=t.default.shape({classes:t.default.object,innerRef:i}),o={actions:t.default.arrayOf(t.default.oneOfType([t.default.func,t.default.shape({icon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,i]).isRequired,isFreeAction:t.default.bool,position:t.default.oneOf(["auto","toolbar","toolbarOnSelect","row"]),tooltip:t.default.string,onClick:t.default.func.isRequired,onMouseEnter:t.default.func,onMouseLeave:t.default.func,iconProps:t.default.object,disabled:t.default.bool,hidden:t.default.bool}),t.default.shape({action:t.default.func,position:t.default.oneOf(["auto","toolbar","toolbarOnSelect","row"])})])),renderSummaryRow:t.default.func,columns:t.default.arrayOf(t.default.shape({cellStyle:t.default.oneOfType([t.default.object,t.default.func]),currencySetting:t.default.shape({locale:t.default.string,currencyCode:t.default.string,minimumFractionDigits:t.default.number,maximumFractionDigits:t.default.number}),ariaLabel:t.default.string,ariaSortAsc:t.default.oneOf(["ascending","descending","none","other"]),ariaSortDesc:t.default.oneOf(["ascending","descending","none","other"]),draggable:t.default.bool,customFilterAndSearch:t.default.func,customSort:t.default.func,customExport:t.default.func,defaultFilter:t.default.any,defaultSort:t.default.oneOf(["asc","desc"]),editComponent:t.default.oneOfType([t.default.element,t.default.func]),emptyValue:t.default.oneOfType([t.default.string,t.default.node,t.default.func]),export:t.default.bool,field:t.default.oneOfType([t.default.string,t.default.arrayOf(t.default.string)]),filtering:t.default.bool,filterCellStyle:t.default.object,filterPlaceholder:t.default.string,filterComponent:t.default.oneOfType([t.default.element,t.default.func]),grouping:t.default.bool,headerStyle:t.default.object,hidden:t.default.bool,hideFilterIcon:t.default.bool,initialEditValue:t.default.any,lookup:t.default.object,editable:t.default.oneOfType([t.default.func,t.default.oneOf(["always","onUpdate","onAdd","never"])]),removable:t.default.bool,render:t.default.func,searchable:t.default.bool,sorting:t.default.bool,title:t.default.oneOfType([t.default.element,t.default.string]),type:t.default.oneOf(["string","boolean","numeric","date","datetime","time","currency"])})).isRequired,components:t.default.shape({Action:t.default.oneOfType([t.default.element,t.default.func,c]),Actions:t.default.oneOfType([t.default.element,t.default.func,c]),Body:t.default.oneOfType([t.default.element,t.default.func,c]),Cell:t.default.oneOfType([t.default.element,t.default.func,c]),Container:t.default.oneOfType([t.default.element,t.default.func,c]),EditField:t.default.oneOfType([t.default.element,t.default.func,c]),EditRow:t.default.oneOfType([t.default.element,t.default.func,c]),FilterRow:t.default.oneOfType([t.default.element,t.default.func,c]),Groupbar:t.default.oneOfType([t.default.element,t.default.func,c]),GroupRow:t.default.oneOfType([t.default.element,t.default.func,c]),Header:t.default.oneOfType([t.default.element,t.default.func,c]),OverlayLoading:t.default.oneOfType([t.default.element,t.default.func,c]),OverlayError:t.default.oneOfType([t.default.element,t.default.func,c]),Pagination:t.default.oneOfType([t.default.element,t.default.func,c]),Row:t.default.oneOfType([t.default.element,t.default.func,c]),Toolbar:t.default.oneOfType([t.default.element,t.default.func,c])}),data:t.default.oneOfType([t.default.arrayOf(t.default.object),t.default.func]).isRequired,editable:t.default.shape({isEditable:t.default.func,isBulkEditable:t.default.func,isDeletable:t.default.func,onRowAdd:t.default.func,onRowUpdate:t.default.func,onRowDelete:t.default.func,onRowAddCancelled:t.default.func,onRowUpdateCancelled:t.default.func,isEditHidden:t.default.func,isDeleteHidden:t.default.func}),detailPanel:t.default.oneOfType([t.default.func,t.default.arrayOf(t.default.oneOfType([t.default.func,t.default.shape({disabled:t.default.bool,icon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,i]),openIcon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,i]),tooltip:t.default.string,render:t.default.func.isRequired})]))]),icons:t.default.shape({Add:t.default.oneOfType([t.default.element,t.default.func,i]),Check:t.default.oneOfType([t.default.element,t.default.func,i]),Clear:t.default.oneOfType([t.default.element,t.default.func,i]),Delete:t.default.oneOfType([t.default.element,t.default.func,i]),DetailPanel:t.default.oneOfType([t.default.element,t.default.func,i]),Edit:t.default.oneOfType([t.default.element,t.default.func,i]),Export:t.default.oneOfType([t.default.element,t.default.func,i]),Filter:t.default.oneOfType([t.default.element,t.default.func,i]),FirstPage:t.default.oneOfType([t.default.element,t.default.func,i]),LastPage:t.default.oneOfType([t.default.element,t.default.func,i]),NextPage:t.default.oneOfType([t.default.element,t.default.func,i]),PreviousPage:t.default.oneOfType([t.default.element,t.default.func,i]),Refresh:t.default.oneOfType([t.default.element,t.default.func,i]),ResetSearch:t.default.oneOfType([t.default.element,t.default.func,i]),Search:t.default.oneOfType([t.default.element,t.default.func,i]),SortArrow:t.default.oneOfType([t.default.element,t.default.func,i]),ThirdStateCheck:t.default.oneOfType([t.default.element,t.default.func,i]),ViewColumn:t.default.oneOfType([t.default.element,t.default.func,i])}),isLoading:t.default.bool,title:t.default.oneOfType([t.default.element,t.default.string]),options:t.default.shape({actionsCellStyle:t.default.object,editCellStyle:t.default.object,idSynonym:t.default.string,detailPanelColumnStyle:t.default.object,actionsColumnIndex:t.default.number,addRowPosition:t.default.oneOf(["first","last"]),columnsButton:t.default.bool,defaultExpanded:t.default.oneOfType([t.default.bool,t.default.func]),debounceInterval:t.default.number,detailPanelType:t.default.oneOf(["single","multiple"]),doubleHorizontalScroll:t.default.bool,emptyRowsWhenPaging:t.default.bool,exportAllData:t.default.bool,exportMenu:t.default.arrayOf(t.default.shape({label:t.default.string,exportFunc:t.default.func})),filtering:t.default.bool,filterCellStyle:t.default.object,filterRowStyle:t.default.object,header:t.default.bool,headerSelectionProps:t.default.object,headerStyle:t.default.object,hideFilterIcons:t.default.bool,initialPage:t.default.number,maxBodyHeight:t.default.oneOfType([t.default.number,t.default.string]),minBodyHeight:t.default.oneOfType([t.default.number,t.default.string]),loadingType:t.default.oneOf(["overlay","linear"]),overflowY:t.default.oneOf(["visible","hidden","scroll","auto","initial","inherit","overlay"]),padding:t.default.oneOf(["normal","dense"]),paging:t.default.bool,pageSize:t.default.number,pageSizeOptions:t.default.arrayOf(t.default.number),paginationType:t.default.oneOf(["normal","stepped"]),paginationPosition:t.default.oneOf(["bottom","top","both"]),persistentGroupingsId:t.default.string,rowStyle:t.default.oneOfType([t.default.object,t.default.func]),search:t.default.bool,searchText:t.default.string,searchDebounceDelay:t.default.number,toolbarButtonAlignment:t.default.oneOf(["left","right"]),searchFieldAlignment:t.default.oneOf(["left","right"]),searchFieldStyle:t.default.object,searchAutoFocus:t.default.bool,searchFieldVariant:t.default.oneOf(["standard","filled","outlined"]),selection:t.default.bool,selectionProps:t.default.oneOfType([t.default.object,t.default.func]),showEmptyDataSourceMessage:t.default.bool,showFirstLastPageButtons:t.default.oneOfType([t.default.object,t.default.bool]),showSelectAllCheckbox:t.default.bool,showSelectGroupCheckbox:t.default.bool,showTitle:t.default.bool,showTextRowsSelected:t.default.bool,sorting:t.default.bool,defaultOrderByCollection:t.default.arrayOf(t.default.shape({orderBy:t.default.number,orderDirection:t.default.string,sortOrder:t.default.number,orderIndex:t.default.number})),maxColumnSort:t.default.oneOf([0,1,2,3,4,5,6,7,8,9,10,r.ALL_COLUMNS]),showColumnSortOrder:t.default.bool,sortOrderIndicatorStyle:t.default.object,keepSortDirectionOnColumnSwitch:t.default.bool,clientSorting:t.default.bool,toolbar:t.default.bool,thirdSortClick:t.default.bool,numberOfPagesAround:t.default.oneOf([1,2,3,4,5,6,7,8,9,10])}),localization:t.default.shape({grouping:t.default.shape({groupedBy:t.default.string,placeholder:t.default.string}),pagination:t.default.object,toolbar:t.default.object,header:t.default.object,body:t.default.object}),initialFormData:t.default.object,onSearchChange:t.default.func,onFilterChange:t.default.func,onColumnDragged:t.default.func,onColumnResized:t.default.func,onGroupRemoved:t.default.func,onGroupChange:t.default.func,onSelectionChange:t.default.func,onRowsPerPageChange:t.default.func,onPageChange:t.default.func,onChangeColumnHidden:t.default.func,onOrderChange:t.default.func,onOrderCollectionChange:t.default.func,onRowClick:t.default.func,onRowDoubleClick:t.default.func,onTreeExpandChange:t.default.func,onQueryChange:t.default.func,onBulkEditOpen:t.default.func,tableRef:t.default.any,style:t.default.object,page:t.default.number,totalCount:t.default.number};return Bs.propTypes=o,Bs}var Im={};const wY=qn(K9),_Y=qn(J9),TY=qn(Q9);var Fm,N3;function kY(){if(N3)return Fm;N3=1;function e(t,r,i){var c,o,a,n,l;r==null&&(r=100);function f(){var u=Date.now()-n;u=0?c=setTimeout(f,r-u):(c=null,i||(l=t.apply(a,o),a=o=null))}var s=function(){a=this,o=arguments,n=Date.now();var u=i&&!c;return c||(c=setTimeout(f,r)),u&&(l=t.apply(a,o),a=o=null),l};return s.clear=function(){c&&(clearTimeout(c),c=null)},s.flush=function(){c&&(l=t.apply(a,o),a=o=null,clearTimeout(c),c=null)},s}return e.debounce=e,Fm=e,Fm}var Nm={};const MY=qn(jL);var jm={},qs={},Jc={},j3;function gC(){if(j3)return Jc;j3=1,Object.defineProperty(Jc,"__esModule",{value:!0}),Jc.default=r;let e;const t=new Uint8Array(16);function r(){if(!e&&(e=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!e))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(t)}return Jc}var ll={},Ws={},Us={},$3;function SY(){if($3)return Us;$3=1,Object.defineProperty(Us,"__esModule",{value:!0}),Us.default=void 0;var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return Us.default=e,Us}var B3;function Qd(){if(B3)return Ws;B3=1,Object.defineProperty(Ws,"__esModule",{value:!0}),Ws.default=void 0;var e=t(SY());function t(c){return c&&c.__esModule?c:{default:c}}function r(c){return typeof c=="string"&&e.default.test(c)}var i=r;return Ws.default=i,Ws}var z3;function eh(){if(z3)return ll;z3=1,Object.defineProperty(ll,"__esModule",{value:!0}),ll.default=void 0,ll.unsafeStringify=i;var e=t(Qd());function t(a){return a&&a.__esModule?a:{default:a}}const r=[];for(let a=0;a<256;++a)r.push((a+256).toString(16).slice(1));function i(a,n=0){return r[a[n+0]]+r[a[n+1]]+r[a[n+2]]+r[a[n+3]]+"-"+r[a[n+4]]+r[a[n+5]]+"-"+r[a[n+6]]+r[a[n+7]]+"-"+r[a[n+8]]+r[a[n+9]]+"-"+r[a[n+10]]+r[a[n+11]]+r[a[n+12]]+r[a[n+13]]+r[a[n+14]]+r[a[n+15]]}function c(a,n=0){const l=i(a,n);if(!(0,e.default)(l))throw TypeError("Stringified UUID is invalid");return l}var o=c;return ll.default=o,ll}var q3;function CY(){if(q3)return qs;q3=1,Object.defineProperty(qs,"__esModule",{value:!0}),qs.default=void 0;var e=r(gC()),t=eh();function r(f){return f&&f.__esModule?f:{default:f}}let i,c,o=0,a=0;function n(f,s,u){let d=s&&u||0;const h=s||new Array(16);f=f||{};let p=f.node||i,m=f.clockseq!==void 0?f.clockseq:c;if(p==null||m==null){const _=f.random||(f.rng||e.default)();p==null&&(p=i=[_[0]|1,_[1],_[2],_[3],_[4],_[5]]),m==null&&(m=c=(_[6]<<8|_[7])&16383)}let y=f.msecs!==void 0?f.msecs:Date.now(),v=f.nsecs!==void 0?f.nsecs:a+1;const g=y-o+(v-a)/1e4;if(g<0&&f.clockseq===void 0&&(m=m+1&16383),(g<0||y>o)&&f.nsecs===void 0&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");o=y,a=v,c=m,y+=122192928e5;const b=((y&268435455)*1e4+v)%4294967296;h[d++]=b>>>24&255,h[d++]=b>>>16&255,h[d++]=b>>>8&255,h[d++]=b&255;const x=y/4294967296*1e4&268435455;h[d++]=x>>>8&255,h[d++]=x&255,h[d++]=x>>>24&15|16,h[d++]=x>>>16&255,h[d++]=m>>>8|128,h[d++]=m&255;for(let _=0;_<6;++_)h[d+_]=p[_];return s||(0,t.unsafeStringify)(h)}var l=n;return qs.default=l,qs}var Hs={},Ui={},Vs={},W3;function mC(){if(W3)return Vs;W3=1,Object.defineProperty(Vs,"__esModule",{value:!0}),Vs.default=void 0;var e=t(Qd());function t(c){return c&&c.__esModule?c:{default:c}}function r(c){if(!(0,e.default)(c))throw TypeError("Invalid UUID");let o;const a=new Uint8Array(16);return a[0]=(o=parseInt(c.slice(0,8),16))>>>24,a[1]=o>>>16&255,a[2]=o>>>8&255,a[3]=o&255,a[4]=(o=parseInt(c.slice(9,13),16))>>>8,a[5]=o&255,a[6]=(o=parseInt(c.slice(14,18),16))>>>8,a[7]=o&255,a[8]=(o=parseInt(c.slice(19,23),16))>>>8,a[9]=o&255,a[10]=(o=parseInt(c.slice(24,36),16))/1099511627776&255,a[11]=o/4294967296&255,a[12]=o>>>24&255,a[13]=o>>>16&255,a[14]=o>>>8&255,a[15]=o&255,a}var i=r;return Vs.default=i,Vs}var U3;function vC(){if(U3)return Ui;U3=1,Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.URL=Ui.DNS=void 0,Ui.default=a;var e=eh(),t=r(mC());function r(n){return n&&n.__esModule?n:{default:n}}function i(n){n=unescape(encodeURIComponent(n));const l=[];for(let f=0;f>5]>>>v%32&255,b=parseInt(y.charAt(g>>>4&15)+y.charAt(g&15),16);p.push(b)}return p}function r(h){return(h+64>>>9<<4)+14+1}function i(h,p){h[p>>5]|=128<>5]|=(h[y/8]&255)<>16)+(p>>16)+(m>>16)<<16|m&65535}function a(h,p){return h<>>32-p}function n(h,p,m,y,v,g){return o(a(o(o(p,h),o(y,g)),v),m)}function l(h,p,m,y,v,g,b){return n(p&m|~p&y,h,p,v,g,b)}function f(h,p,m,y,v,g,b){return n(p&y|m&~y,h,p,v,g,b)}function s(h,p,m,y,v,g,b){return n(p^m^y,h,p,v,g,b)}function u(h,p,m,y,v,g,b){return n(m^(p|~y),h,p,v,g,b)}var d=e;return Ys.default=d,Ys}var V3;function AY(){if(V3)return Hs;V3=1,Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.default=void 0;var e=r(vC()),t=r(OY());function r(o){return o&&o.__esModule?o:{default:o}}var c=(0,e.default)("v3",48,t.default);return Hs.default=c,Hs}var Gs={},Xs={},Y3;function PY(){if(Y3)return Xs;Y3=1,Object.defineProperty(Xs,"__esModule",{value:!0}),Xs.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return Xs.default=t,Xs}var G3;function DY(){if(G3)return Gs;G3=1,Object.defineProperty(Gs,"__esModule",{value:!0}),Gs.default=void 0;var e=i(PY()),t=i(gC()),r=eh();function i(a){return a&&a.__esModule?a:{default:a}}function c(a,n,l){if(e.default.randomUUID&&!n&&!a)return e.default.randomUUID();a=a||{};const f=a.random||(a.rng||t.default)();if(f[6]=f[6]&15|64,f[8]=f[8]&63|128,n){l=l||0;for(let s=0;s<16;++s)n[l+s]=f[s];return n}return(0,r.unsafeStringify)(f)}var o=c;return Gs.default=o,Gs}var Zs={},Ks={},X3;function EY(){if(X3)return Ks;X3=1,Object.defineProperty(Ks,"__esModule",{value:!0}),Ks.default=void 0;function e(c,o,a,n){switch(c){case 0:return o&a^~o&n;case 1:return o^a^n;case 2:return o&a^o&n^a&n;case 3:return o^a^n}}function t(c,o){return c<>>32-o}function r(c){const o=[1518500249,1859775393,2400959708,3395469782],a=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof c=="string"){const s=unescape(encodeURIComponent(c));c=[];for(let u=0;u>>0;y=m,m=p,p=t(h,30)>>>0,h=d,d=b}a[0]=a[0]+d>>>0,a[1]=a[1]+h>>>0,a[2]=a[2]+p>>>0,a[3]=a[3]+m>>>0,a[4]=a[4]+y>>>0}return[a[0]>>24&255,a[0]>>16&255,a[0]>>8&255,a[0]&255,a[1]>>24&255,a[1]>>16&255,a[1]>>8&255,a[1]&255,a[2]>>24&255,a[2]>>16&255,a[2]>>8&255,a[2]&255,a[3]>>24&255,a[3]>>16&255,a[3]>>8&255,a[3]&255,a[4]>>24&255,a[4]>>16&255,a[4]>>8&255,a[4]&255]}var i=r;return Ks.default=i,Ks}var Z3;function RY(){if(Z3)return Zs;Z3=1,Object.defineProperty(Zs,"__esModule",{value:!0}),Zs.default=void 0;var e=r(vC()),t=r(EY());function r(o){return o&&o.__esModule?o:{default:o}}var c=(0,e.default)("v5",80,t.default);return Zs.default=c,Zs}var Js={},K3;function LY(){if(K3)return Js;K3=1,Object.defineProperty(Js,"__esModule",{value:!0}),Js.default=void 0;var e="00000000-0000-0000-0000-000000000000";return Js.default=e,Js}var Qs={},J3;function IY(){if(J3)return Qs;J3=1,Object.defineProperty(Qs,"__esModule",{value:!0}),Qs.default=void 0;var e=t(Qd());function t(c){return c&&c.__esModule?c:{default:c}}function r(c){if(!(0,e.default)(c))throw TypeError("Invalid UUID");return parseInt(c.slice(14,15),16)}var i=r;return Qs.default=i,Qs}var Q3;function FY(){return Q3||(Q3=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return a.default}});var t=s(CY()),r=s(AY()),i=s(DY()),c=s(RY()),o=s(LY()),a=s(IY()),n=s(Qd()),l=s(eh()),f=s(mC());function s(u){return u&&u.__esModule?u:{default:u}}}(jm)),jm}var eT;function NY(){return eT||(eT=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(zl()),i=t(Ed()),c=t(Rd()),o=t(Jr()),a=t(MY),n=FY(),l=Wd(),f=Li(),s=C1();function u(v,g){var b=Object.keys(v);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(v);g&&(x=x.filter(function(_){return Object.getOwnPropertyDescriptor(v,_).enumerable})),b.push.apply(b,x)}return b}function d(v){for(var g=1;g=v.length?{done:!0}:{done:!1,value:v[x++]}},e:function(S){throw S},f:_}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w=!0,k=!1,T;return{s:function(){b=b.call(v)},n:function(){var S=b.next();return w=S.done,S},e:function(S){k=!0,T=S},f:function(){try{!w&&b.return!=null&&b.return()}finally{if(k)throw T}}}}function p(v,g){if(v){if(typeof v=="string")return m(v,g);var b=Object.prototype.toString.call(v).slice(8,-1);if(b==="Object"&&v.constructor&&(b=v.constructor.name),b==="Map"||b==="Set")return Array.from(v);if(b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b))return m(v,g)}}function m(v,g){(g==null||g>v.length)&&(g=v.length);for(var b=0,x=new Array(g);b0?T(S.groups):S.data.forEach(function(C){C.tableData.checked!==b&&(C.tableData.checked=C.tableData.disabled?!1:b,g.selectedCount=g.selectedCount+(b?1:-1))})})};k([_])}),(0,o.default)(this,"getOrderByCollection",function(){return g.orderByCollection.filter(function(b){return b.sortOrder})}),(0,o.default)(this,"sortOrderCollection",function(b){return b.sort(function(x,_){return x.sortOrder?_.sortOrder?x.sortOrder-_.sortOrder:-1:1})}),(0,o.default)(this,"startCellEditable",function(b,x){b.tableData.editCellList=[].concat((0,r.default)(b.tableData.editCellList||[]),[x])}),(0,o.default)(this,"finishCellEditable",function(b,x){if(b.tableData.editCellList){var _=b.tableData.editCellList.findIndex(function(w){return w.tableData.id.toString()===x.tableData.id.toString()});_!==-1&&b.tableData.editCellList.splice(_,1)}}),(0,o.default)(this,"clearBulkEditChangedRows",function(){g.bulkEditChangedRows={}}),(0,o.default)(this,"onBulkEditRowChanged",function(b,x){g.bulkEditChangedRows[b.tableData.id]={oldData:b,newData:x}}),(0,o.default)(this,"expandTreeForNodes",function(b){b.forEach(function(x){for(var _=x;g.parentFunc(_,g.data);){var w=g.parentFunc(_,g.data);w&&(w.tableData.isTreeExpanded=!0),_=w}})}),(0,o.default)(this,"findDataByPath",function(b,x){if(g.isDataType("tree")){var _=x.reduce(function(T,M){return T&&T.tableData&&T.tableData.childRows&&T.tableData.childRows.find(function(S){return S&&S.tableData.uuid===M})},{tableData:{childRows:b}});return _}else{var w={groups:b},k=x.reduce(function(T,M){return T.groups.length>0?T.groups[M]:T.data?T.data[M]||T.data.find(function(S){var C;return((C=S.tableData)===null||C===void 0?void 0:C.uuid)===M}):void 0},w);return k}}),(0,o.default)(this,"getFieldValue",function(b,x){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,w=typeof b[x.field]<"u"?b[x.field]:(0,l.selectFromObject)(b,x.field);return x.lookup&&_&&(w=x.lookup[w]),w}),(0,o.default)(this,"getRenderState",function(){return g.filtered===!1&&g.filterData(),g.searched===!1&&g.searchData(),g.grouped===!1&&g.isDataType("group")&&g.groupData(),g.treefied===!1&&g.isDataType("tree")&&g.treefyData(),g.sorted===!1&&g.sortData(),g.paged===!1&&g.pageData(),{columns:g.columns,currentPage:g.currentPage,data:g.sortedData,lastEditingRow:g.lastEditingRow,orderByCollection:g.orderByCollection,maxColumnSort:g.maxColumnSort,originalData:(0,r.default)(g.data),pageSize:g.pageSize,renderData:g.pagedData,searchText:g.searchText,selectedCount:g.selectedCount,treefiedDataLength:g.treefiedDataLength,treeDataMaxLevel:g.treeDataMaxLevel,groupedDataLength:g.groupedDataLength,tableStyleWidth:g.tableStyleWidth}}),(0,o.default)(this,"filterData",function(){g.searched=g.grouped=g.treefied=g.sorted=g.paged=!1,g.filteredData=(0,r.default)(g.data),g.applyFilters&&g.columns.filter(function(b){return b.tableData.filterValue!==void 0}).forEach(function(b){var x=b.lookup,_=b.type,w=b.tableData;b.customFilterAndSearch?g.filteredData=g.filteredData.filter(function(k){return!!b.customFilterAndSearch(w.filterValue,k,b)}):x?g.filteredData=g.filteredData.filter(function(k){var T=g.getFieldValue(k,b,!1);return!w.filterValue||w.filterValue.length===0||w.filterValue.indexOf(T!=null&&T.toString())>-1}):_==="numeric"?g.filteredData=g.filteredData.filter(function(k){var T=g.getFieldValue(k,b);return T+""===w.filterValue}):_==="boolean"&&w.filterValue?g.filteredData=g.filteredData.filter(function(k){var T=g.getFieldValue(k,b);return T&&w.filterValue==="checked"||!T&&w.filterValue==="unchecked"}):["date","datetime"].includes(_)?g.filteredData=g.filteredData.filter(function(k){var T=g.getFieldValue(k,b),M=T?new Date(T):null;if(M&&M.toString()!=="Invalid Date"){var S=w.filterValue,C="",P="";return _==="date"?(C=(0,a.default)(M,"MM/dd/yyyy"),P=(0,a.default)(S,"MM/dd/yyyy")):_==="datetime"&&(C=(0,a.default)(M,"MM/dd/yyyy - HH:mm"),P=(0,a.default)(S,"MM/dd/yyyy - HH:mm")),C===P}return!0}):_==="time"?g.filteredData=g.filteredData.filter(function(k){var T=g.getFieldValue(k,b),M=T||null;if(M){var S=w.filterValue,C=(0,a.default)(S,"HH:mm");return M===C}return!0}):g.filteredData=g.filteredData.filter(function(k){var T=g.getFieldValue(k,b);return T!=null&&T.toString().toUpperCase().includes(w.filterValue.toUpperCase())})}),g.filtered=!0}),(0,o.default)(this,"searchData",function(){if(g.grouped=g.treefied=g.sorted=g.paged=!1,g.searchedData=(0,r.default)(g.filteredData),g.searchText&&g.applySearch){var b=g.searchText.trim();g.searchedData=g.searchedData.filter(function(x){return g.columns.filter(function(_){return _.searchable===void 0?!_.hidden:_.searchable}).some(function(_){if(_.customFilterAndSearch)return!!_.customFilterAndSearch(b,x,_);if(_.field){var w=g.getFieldValue(x,_);if(w)return w.toString().toUpperCase().includes(b.toUpperCase())}return!1})})}g.searched=!0}),(0,o.default)(this,"clearCriteria",function(){g.changeOrder(-1,""),g.changeSearchText("");var b=h(g.columns),x;try{for(b.s();!(x=b.n()).done;){var _=x.value;g.changeFilterValue(_.tableData.id,"")}}catch(w){b.e(w)}finally{b.f()}g.changeSearchText(""),g.changePaging(0)})}return(0,c.default)(v,[{key:"setData",value:function(b,x){var _=this;this.selectedCount=0;var w={};this.data.length!==0&&this.data[0][x]!==void 0&&(w=this.data.reduce(function(k,T){return k[T.tableData.id]=T.tableData,k},{})),this.data=b.map(function(k,T){var M=w[k[x]]||{},S=d(d({index:T,id:k[x]||T,uuid:k.uuid||(0,n.v4)()},M),k.tableData);S.checked&&_.selectedCount++;var C=d(d({},k),{},{tableData:S});return _.lastDetailPanelRow&&_.lastDetailPanelRow.tableData===M&&(_.lastDetailPanelRow=C),_.lastEditingRow&&_.lastEditingRow.tableData===M&&(_.lastEditingRow=C),C}),this.filtered=!1}},{key:"setTableWidth",value:function(b){this.tableWidth=b}},{key:"setColumns",value:function(b){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},w=0,k=[];this.columns=b.map(function(S,C){var P,D=(0,f.widthToNumber)(S.width),O=typeof S.width=="number"?S.width+"px":S.width;O&&(isNaN(D)?k.push(O):w+=D);var R=x.find(function(z){var B=z.id;return B===C}),F=(P=_[S.field])!==null&&P!==void 0?P:{},A=d(d(d(d({columnOrder:C,filterValue:S.defaultFilter,groupOrder:S.defaultGroupOrder,groupSort:S.defaultGroupSort||"asc",width:O,initialWidth:O,widthPx:isNaN(D)?void 0:D,additionalWidth:0},F),R?R.tableData:{}),S.tableData),{},{id:C});return S.tableData=A,S});var T=this.columns.filter(function(S){return S.hidden||S.columnDef&&S.columnDef.tableData&&S.columnDef.tableData.width?!1:S.width===void 0}),M=(w!==0?"".concat(w,"px"):"0px")+(k.length>0?" - "+k.join(" - "):"");T.forEach(function(S){S.tableData.width=S.tableData.initialWidth="calc((100% - ".concat(M,") / ").concat(T.length,")")}),this.tableStyleWidth=this.tableWidth==="full"||T.length>0||k.length>0?"100%":w}},{key:"setDefaultExpanded",value:function(b){this.defaultExpanded=b}},{key:"setClientSorting",value:function(b){this.clientSorting=!!b}},{key:"setMaxColumnSort",value:function(b){var x=this.columns.filter(function(_){return _.sorting!==!1}).length;b===s.ALL_COLUMNS?this.maxColumnSort=x:this.maxColumnSort=Math.min(b,x)}},{key:"setOrderByCollection",value:function(){var b=this.getOrderByCollection(),x=this.columns.map(function(_){var w=_.tableData.id,k=b.find(function(T){return T.orderBy===w});return k?d({},k):{orderBy:_.tableData.id,sortOrder:void 0,orderDirection:""}});x=this.sortOrderCollection(x),this.orderByCollection=(0,r.default)(x)}},{key:"setDefaultOrderByCollection",value:function(b){this.defaultOrderByCollection=(0,r.default)(b)}},{key:"getDefaultOrderByCollection",value:function(){return this.defaultOrderByCollection}},{key:"changeApplySearch",value:function(b){this.applySearch=b,this.searched=!1}},{key:"changeApplyFilters",value:function(b){this.applyFilters=b,this.filtered=!1}},{key:"changeApplySort",value:function(b){this.applySort=b,this.sorted=!1}},{key:"changePaging",value:function(b){this.paging=b,this.paged=!1}},{key:"changeCurrentPage",value:function(b){this.currentPage=b,this.paged=!1}},{key:"changePageSize",value:function(b){this.pageSize=b,this.paged=!1}},{key:"changeParentFunc",value:function(b){this.parentFunc=b}},{key:"changeFilterValue",value:function(b,x){var _=this.columns.find(function(w){return w.tableData.id===b});_.tableData.filterValue=x,this.filtered=!1}},{key:"changeRowSelected",value:function(b,x){var _=this,w=this.findDataByPath(this.sortedData,x);w.tableData.checked=b,this.selectedCount=this.selectedCount+(b?1:-1);var k=function T(M){M.tableData.childRows&&M.tableData.childRows.forEach(function(S){S.tableData.checked!==b&&(S.tableData.checked=b,_.selectedCount=_.selectedCount+(b?1:-1)),T(S)})};k(w),this.filtered=!1}},{key:"changeDetailPanelVisibility",value:function(b,x){var _=this.findDataByPath(this.sortedData,b);(_.tableData.showDetailPanel||"").toString()===x.toString()?_.tableData.showDetailPanel=void 0:_.tableData.showDetailPanel=x,this.detailPanelType==="single"&&this.lastDetailPanelRow&&this.lastDetailPanelRow!==_&&(this.lastDetailPanelRow.tableData.showDetailPanel=void 0),this.lastDetailPanelRow=_}},{key:"changeGroupExpand",value:function(b){var x=this.findDataByPath(this.sortedData,b);x.isExpanded=!x.isExpanded}},{key:"changeSearchText",value:function(b){this.searchText=b,this.searched=!1,this.currentPage=0}},{key:"changeSearchDebounce",value:function(b){this.searchDebounceDelay=b}},{key:"changeRowEditing",value:function(b,x){b?(b.tableData.editing=x,this.lastEditingRow&&this.lastEditingRow!==b&&(this.lastEditingRow.tableData.editing=void 0),x?this.lastEditingRow=b:this.lastEditingRow=void 0):this.lastEditingRow&&(this.lastEditingRow.tableData.editing=void 0,this.lastEditingRow=void 0)}},{key:"changeBulkEditOpen",value:function(b){this.bulkEditOpen=b}},{key:"changeAllSelected",value:function(b,x){var _=0,w=function(S){var C=x instanceof Function?x(S):{disabled:!1};return S.tableData.disabled||C.disabled?!1:b};if(this.isDataType("group")){var k=function M(S){S.forEach(function(C){C.groups.length>0?M(C.groups):C.data.forEach(function(P){P.tableData.checked=w(P),_++})})};k(this.groupedData)}else{var T=function M(S){S.tableData.childRows&&S.tableData.childRows.forEach(function(C){C.tableData.checked=w(S),M(C)})};this.searchedData.forEach(function(M){M.tableData.checked=w(M),T(M)}),_=this.searchedData.length}this.selectedCount=b?_:0}},{key:"changeColumnOrder",value:function(b,x,_){var w=[],k=this.getOrderByCollection();k.length===this.maxColumnSort&&!_?(this.orderByCollection[0].orderDirection="",this.orderByCollection[0].sortOrder=void 0,w=this.orderByCollection.map(function(T){return T.sortOrder?T.sortOrder-=1:T.orderBy===b&&x&&(T.sortOrder=k.length,T.orderDirection=x),T})):w=this.orderByCollection.map(function(T){return T.orderBy===b&&x?(T.orderDirection=x,T.sortOrder=_||k.length+1):!x&&T.orderBy===b?(T.orderDirection=x,T.sortOrder=void 0):!x&&_-1}).sort(function(W,G){return W.tableData.groupOrder-G.tableData.groupOrder});if(b.destination.droppableId==="groups"&&b.source.droppableId==="groups"){x=Math.min(b.destination.index,b.source.index);var w=Math.max(b.destination.index,b.source.index);if(_=_.slice(x,w+1),b.destination.index-1})&&(x="group"),b===x}},{key:"sort",value:function(b,x,_){if(_==="numeric")return b-x;if(b!==x){if(!b)return-1;if(!x)return 1}return bx?1:0}},{key:"sortList",value:function(b){if(!this.clientSorting)return b;var x=this.orderByCollection.map(function(M){return M.orderBy}),_=new Map;this.columns.forEach(function(M){var S=M.tableData.id;x.includes(S)&&_.set(S,M)});var w=this.sort,k=this.getFieldValue,T=this.orderByCollection;return b.sort(function M(S,C){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_,D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:T,O=D[0],R=O.orderBy,F=O.orderDirection,A=P.get(R),z=0;A.customSort?F==="desc"?z=A.customSort(C,S,"row",F):z=A.customSort(S,C,"row",F):(z=w(k(S,A),k(C,A),A.type),z=F.toLowerCase()==="desc"?z*-1:z);var B=z===0&&D.filter(function($){return $.sortOrder!==void 0}).length!==1;return B?M(S,C,P,D.slice(1)):z})}},{key:"groupData",value:function(){var b=this;this.sorted=this.paged=!1,this.groupedDataLength=0;var x=(0,r.default)(this.searchedData),_=this.columns.filter(function(k){return k.tableData.groupOrder>-1}).sort(function(k,T){return k.tableData.groupOrder-T.tableData.groupOrder}),w=x.reduce(function(k,T){var M=k;return M=_.reduce(function(S,C){var P=T[C.field]||(0,l.selectFromObject)(T,C.field),D;if(S.groupsIndex[P]!==void 0&&(D=S.groups[S.groupsIndex[P]]),!D){var O=[].concat((0,r.default)(S.path||[]),[P]),R=b.findGroupByGroupPath(b.groupedData,O)||{isExpanded:typeof b.defaultExpanded=="boolean"?b.defaultExpanded:!1};D={value:P,groups:[],groupsIndex:{},data:[],isExpanded:R.isExpanded,path:O},S.groups.push(D),S.groupsIndex[P]=S.groups.length-1}return D},M),M.data.push(T),b.groupedDataLength++,k},{groups:[],groupsIndex:{}});this.groupedData=w.groups,this.grouped=!0,this.rootGroupsIndex=w.groupsIndex}},{key:"treefyData",value:function(){var b=this;this.sorted=this.paged=!1,this.data.forEach(function(T){return T.tableData.childRows=null}),this.treefiedData=[],this.treefiedDataLength=0,this.treeDataMaxLevel=0,(this.searchText||this.columns.some(function(T){return T.tableData.filterValue}))&&(this.data.forEach(function(T){T.tableData.isTreeExpanded=!1}),this.expandTreeForNodes(this.searchedData));var x=function T(M){M.tableData.markedForTreeRemove=!1;var S=b.parentFunc(M,b.data);S?(S.tableData.childRows=S.tableData.childRows||[],S.tableData.childRows.includes(M)||(S.tableData.childRows.push(M),b.treefiedDataLength++),T(S),M.tableData.path=[].concat((0,r.default)(S.tableData.path),[M.tableData.uuid]),b.treeDataMaxLevel=Math.max(b.treeDataMaxLevel,M.tableData.path.length)):b.treefiedData.includes(M)||(b.treefiedData.push(M),b.treefiedDataLength++,M.tableData.path=[M.tableData.uuid])};this.data.forEach(function(T){x(T)});var _=function(M){var S=b.treefiedData;M.tableData.path.forEach(function(C){S.tableData&&S.tableData.childRows&&(S=S.tableData.childRows),Array.isArray(S)&&(S=S.find(function(P){return P.tableData.uuid===C}))}),S.tableData.markedForTreeRemove=!0},w=function T(M){M.tableData.childRows&&M.tableData.childRows.forEach(function(S){T(S)}),M.tableData.markedForTreeRemove=!1};this.data.forEach(function(T){if(!b.searchText&&!b.columns.some(function(C){return C.tableData.filterValue})&&T.tableData.isTreeExpanded===void 0){var M=typeof b.defaultExpanded=="boolean"?b.defaultExpanded:b.defaultExpanded(T);T.tableData.isTreeExpanded=M}var S=T.tableData.isTreeExpanded;!S&&b.searchedData.indexOf(T)<0&&_(T)}),this.data.forEach(function(T){b.searchedData.indexOf(T)>-1&&w(T)});var k=function T(M){for(var S=M.length-1;S>=0;S--){var C=M[S];C.tableData.childRows&&T(C.tableData.childRows),C.tableData.markedForTreeRemove&&M.splice(S,1)}};k(this.treefiedData),this.treefiedDataLength=this.treefiedData.length,this.treefied=!0}},{key:"sortData",value:function(){var b=this;if(this.paged=!1,this.isDataType("group")){this.sortedData=(0,r.default)(this.groupedData);var x=this.columns.filter(function(M){return M.tableData.groupOrder>-1}).sort(function(M,S){return M.tableData.groupOrder-S.tableData.groupOrder}),_=function(S,C){return C.customSort?S.sort(C.tableData.groupSort==="desc"?function(P,D){return C.customSort(D.value,P.value,"group",C.tableData.groupSort)}:function(P,D){return C.customSort(P.value,D.value,"group",C.tableData.groupSort)}):S.sort(C.tableData.groupSort==="desc"?function(P,D){return b.sort(D.value,P.value,C.type)}:function(P,D){return b.sort(P.value,D.value,C.type)})};this.sortedData=_(this.sortedData,x[0]);var w=function(S){return S.reduce(function(C,P){return C[P.value]=S.findIndex(function(D){return D.value===P.value}),C},{})},k=function M(S,C){S.forEach(function(P){if(P.groups.length>0){var D=x[C];P.groups=_(P.groups,D),P.groupsIndex=w(P.groups),M(P.groups,C+1)}else b.maxColumnSort>0&&b.getOrderByCollection().length>0?P.data=b.sortList(P.data):b.maxColumnSort>0&&(P.data=P.data.sort(function(O,R){return b.data.findIndex(function(F){return F.tableData.id===O.tableData.id})-b.data.findIndex(function(F){return F.tableData.id===R.tableData.id})}))})};k(this.sortedData,1)}else if(this.isDataType("tree")){if(this.sortedData=(0,r.default)(this.treefiedData),this.maxColumnSort>0&&this.getOrderByCollection().length>0){this.sortedData=this.sortList(this.sortedData);var T=function M(S){S.forEach(function(C){C.tableData.childRows&&(C.tableData.childRows=b.sortList(C.tableData.childRows),M(C.tableData.childRows))})};T(this.sortedData)}}else this.isDataType("normal")&&(this.sortedData=(0,r.default)(this.searchedData),this.maxColumnSort>0&&this.getOrderByCollection().length>0&&this.applySort&&(this.sortedData=this.sortList(this.sortedData)));this.sorted=!0}},{key:"pageData",value:function(){if(this.pagedData=(0,r.default)(this.sortedData),this.paging){var b=this.currentPage*this.pageSize,x=b+this.pageSize;this.pagedData=this.pagedData.slice(b,x)}this.paged=!0}}]),v}();e.default=y}(Nm)),Nm}var tT;function jY(){return tT||(tT=1,function(e){var t=Rn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(wY),c=t(_Y),o=t(Pi),a=t(hr()),n=t(zo),l=t(zl()),f=t(TY),s=t(Ur()),u=t(io()),d=t(Ed()),h=t(Rd()),p=t(My()),m=t(ky()),y=t(Sy()),v=t(Cy()),g=t(Jr()),b=t($e),x=kY(),_=t(CS()),w=C(Li()),k=S1,T=t(NY()),M=Jd();function S(B){if(typeof WeakMap!="function")return null;var $=new WeakMap,j=new WeakMap;return(S=function(E){return E?j:$})(B)}function C(B,$){if(B&&B.__esModule)return B;if(B===null||r(B)!=="object"&&typeof B!="function")return{default:B};var j=S($);if(j&&j.has(B))return j.get(B);var N={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var W in B)if(W!=="default"&&Object.prototype.hasOwnProperty.call(B,W)){var G=E?Object.getOwnPropertyDescriptor(B,W):null;G&&(G.get||G.set)?Object.defineProperty(N,W,G):N[W]=B[W]}return N.default=B,j&&j.set(B,N),N}function P(B,$){var j=Object.keys(B);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(B);$&&(N=N.filter(function(E){return Object.getOwnPropertyDescriptor(B,E).enumerable})),j.push.apply(j,N)}return j}function D(B){for(var $=1;$"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var F=function(B){(0,m.default)(j,B);var $=O(j);function j(N){var E;(0,d.default)(this,j),E=$.call(this,N),(0,g.default)((0,p.default)(E),"dataManager",new T.default),(0,g.default)((0,p.default)(E),"checkedForFunctions",!1),(0,g.default)((0,p.default)(E),"clearCriteria",function(){E.dataManager.clearCriteria(),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,p.default)(E),"isRemoteData",function(L){return!Array.isArray((L||E.props).data)}),(0,g.default)((0,p.default)(E),"onAllSelected",function(L){E.dataManager.changeAllSelected(L,E.props.options.selectionProps),E.setState(E.dataManager.getRenderState(),function(){return E.onSelectionChange()})}),(0,g.default)((0,p.default)(E),"onGroupSelected",function(L,q){E.dataManager.changeGroupSelected(L,q),E.setState(E.dataManager.getRenderState(),function(){return E.onSelectionChange()})}),(0,g.default)((0,p.default)(E),"onChangeColumnHidden",function(L,q){E.dataManager.changeColumnHidden(L,q),E.setState(E.dataManager.getRenderState(),function(){E.props.onChangeColumnHidden&&E.props.onChangeColumnHidden(L,q)})}),(0,g.default)((0,p.default)(E),"onChangeGroupOrder",function(L){E.dataManager.changeGroupOrder(L.tableData.id),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,p.default)(E),"onChangeOrder",function(L,q,H){E.dataManager.changeColumnOrder(L,q,H);var V=E.dataManager.getOrderByCollection();if(E.isRemoteData()){var te=D({},E.state.query);te.page=0,te.orderBy=E.state.columns.find(function(ee){return ee.tableData.id===L}),te.orderDirection=q,console.warn("Properties orderBy and orderDirection had been deprecated when remote data, please start using orderByCollection instead"),te.orderByCollection=V,E.onQueryChange(te,function(){E.props.onOrderChange&&E.props.onOrderChange(L,q),E.props.onOrderCollectionChange&&E.props.onOrderCollectionChange(V)})}else E.setState(E.dataManager.getRenderState(),function(){E.props.onOrderChange&&E.props.onOrderChange(L,q),E.props.onOrderCollectionChange&&E.props.onOrderCollectionChange(V)})}),(0,g.default)((0,p.default)(E),"onPageChange",function(L,q){if(E.isRemoteData()){var H=D({},E.state.query);H.page=q,E.onQueryChange(H,function(){E.props.onPageChange&&E.props.onPageChange(q,H.pageSize)})}else E.dataManager.changeCurrentPage(q),E.setState(E.dataManager.getRenderState(),function(){E.props.onPageChange&&E.props.onPageChange(q,E.state.pageSize)})}),(0,g.default)((0,p.default)(E),"onRowsPerPageChange",function(L){var q=L.target.value;E.dataManager.changePageSize(q);var H=function(){E.props.onPageChange&&E.props.onPageChange(0,q),E.props.onRowsPerPageChange&&E.props.onRowsPerPageChange(q)};if(E.isRemoteData()){var V=D({},E.state.query);V.pageSize=L.target.value,V.page=0,E.onQueryChange(V,H)}else E.dataManager.changeCurrentPage(0),E.setState(E.dataManager.getRenderState(),H)}),(0,g.default)((0,p.default)(E),"onDragEnd",function(L){!L||!L.source||!L.destination||(E.dataManager.changeByDrag(L),E.setState(E.dataManager.getRenderState(),function(){E.props.onColumnDragged&&L.destination.droppableId==="headers"&&L.source.droppableId==="headers"&&E.props.onColumnDragged(L.source.index,L.destination.index)}))}),(0,g.default)((0,p.default)(E),"onGroupExpandChanged",function(L){E.dataManager.changeGroupExpand(L),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,p.default)(E),"onGroupRemoved",function(L,q){var H={combine:null,destination:{droppableId:"headers",index:0},draggableId:L.tableData.id,mode:"FLUID",reason:"DROP",source:{index:q,droppableId:"groups"},type:"DEFAULT"};E.dataManager.changeByDrag(H),E.setState(E.dataManager.getRenderState(),function(){E.props.onGroupRemoved&&E.props.onGroupRemoved(L,q)})}),(0,g.default)((0,p.default)(E),"onEditingApproved",function(L,q,H){L==="add"&&E.props.editable&&E.props.editable.onRowAdd?E.setState({isLoading:!0},function(){E.props.editable.onRowAdd(q).then(function(V){E.setState({isLoading:!1,showAddRow:!1},function(){E.isRemoteData()&&E.onQueryChange(E.state.query)})}).catch(function(V){var te={message:V,errorCause:"add"};E.setState({isLoading:!1,errorState:te})})}):L==="update"&&E.props.editable&&E.props.editable.onRowUpdate?E.setState({isLoading:!0},function(){E.props.editable.onRowUpdate(q,H).then(function(V){E.dataManager.changeRowEditing(H),E.setState(D({isLoading:!1},E.dataManager.getRenderState()),function(){E.isRemoteData()&&E.onQueryChange(E.state.query)})}).catch(function(V){var te={message:V,errorCause:"update"};E.setState({isLoading:!1,errorState:te})})}):L==="delete"&&E.props.editable&&E.props.editable.onRowDelete?E.setState({isLoading:!0},function(){E.props.editable.onRowDelete(Object.entries(H).reduce(function(V,te){var ee=(0,u.default)(te,2),U=ee[0],Q=ee[1];return U!=="tableData"&&(V[U]=Q),V},{})).then(function(V){E.dataManager.changeRowEditing(H),E.setState(D({isLoading:!1},E.dataManager.getRenderState()),function(){E.isRemoteData()&&E.onQueryChange(E.state.query)})}).catch(function(V){var te={message:V,errorCause:"delete"};E.setState({isLoading:!1,errorState:te})})}):L==="bulk"&&E.props.editable&&E.props.editable.onBulkUpdate&&E.setState({isLoading:!0},function(){E.props.editable.onBulkUpdate(E.dataManager.bulkEditChangedRows).then(function(V){E.dataManager.changeBulkEditOpen(!1),E.props.onBulkEditOpen&&E.props.onBulkEditOpen(!1),E.dataManager.clearBulkEditChangedRows(),E.setState(D({isLoading:!1},E.dataManager.getRenderState()),function(){E.isRemoteData()&&E.onQueryChange(E.state.query)})}).catch(function(V){var te={message:V,errorCause:"bulk edit"};E.setState({isLoading:!1,errorState:te})})})}),(0,g.default)((0,p.default)(E),"onEditingCanceled",function(L,q){L==="add"?(E.props.editable.onRowAddCancelled&&E.props.editable.onRowAddCancelled(),E.setState({showAddRow:!1})):L==="update"?(E.props.editable.onRowUpdateCancelled&&E.props.editable.onRowUpdateCancelled(),E.dataManager.changeRowEditing(q),E.setState(E.dataManager.getRenderState())):L==="delete"&&(E.dataManager.changeRowEditing(q),E.setState(E.dataManager.getRenderState()))}),(0,g.default)((0,p.default)(E),"retry",function(){E.onQueryChange(E.state.query)}),(0,g.default)((0,p.default)(E),"onQueryChange",function(L,q){L=D(D(D({},E.state.query),L),{},{error:E.state.errorState}),E.setState({isLoading:!0,errorState:void 0},function(){E.props.data(L).then(function(H){L.totalCount=H.totalCount,L.page=H.page;var V=D(D({},L),{},{totalCount:H.totalCount,page:H.page});E.dataManager.setData(H.data,E.props.options.idSynonym),E.setState(D(D({isLoading:!1,errorState:!1},E.dataManager.getRenderState()),{},{query:V}),function(){q&&q()})}).catch(function(H){var V={message:(0,s.default)(H)==="object"?H.message:H!==void 0?H:E.props.localization.error,errorCause:"query"};E.setState(D({isLoading:!1,errorState:V},E.dataManager.getRenderState()))})})}),(0,g.default)((0,p.default)(E),"onRowSelected",function(L,q,H){E.dataManager.changeRowSelected(L.target.checked,q),E.setState(E.dataManager.getRenderState(),function(){return E.onSelectionChange(H)})}),(0,g.default)((0,p.default)(E),"onSelectionChange",function(L){if(E.props.onSelectionChange){var q=[],H=function(te){te.forEach(function(ee){ee.tableData.checked&&q.push(ee)})};H(E.state.originalData),E.props.onSelectionChange(q,L)}}),(0,g.default)((0,p.default)(E),"onSearchChangeDebounce",(0,x.debounce)(function(L){if(E.isRemoteData()){var q=D({},E.state.query);q.page=0,q.search=L,E.onQueryChange(q,function(){E.props.onSearchChange&&E.props.onSearchChange(L)})}else E.setState(E.dataManager.getRenderState(),function(){E.props.onSearchChange&&E.props.onSearchChange(L)})},E.props.options.debounceInterval)),(0,g.default)((0,p.default)(E),"onFilterChange",function(L,q){E.dataManager.changeFilterValue(L,q),E.setState({},E.onFilterChangeDebounce)}),(0,g.default)((0,p.default)(E),"onFilterChangeDebounce",(0,x.debounce)(function(){if(E.isRemoteData()){var L=D({},E.state.query);L.page=0,L.filters=E.state.columns.filter(function(q){return q.tableData.filterValue}).map(function(q){return{column:q,operator:"=",value:q.tableData.filterValue}}),E.onQueryChange(L,function(){E.props.onFilterChange&&E.props.onFilterChange(L.filters)})}else E.setState(E.dataManager.getRenderState(),function(){if(E.props.onFilterChange){var q=E.state.columns.filter(function(H){return H.tableData.filterValue}).map(function(H){return{column:H,operator:"=",value:H.tableData.filterValue}});E.props.onFilterChange(q)}})},E.props.options.debounceInterval)),(0,g.default)((0,p.default)(E),"onTreeExpandChanged",function(L,q){E.dataManager.changeTreeExpand(L),E.setState(E.dataManager.getRenderState(),function(){E.props.onTreeExpandChange&&E.props.onTreeExpandChange(q,q.tableData.isTreeExpanded)})}),(0,g.default)((0,p.default)(E),"onToggleDetailPanel",function(L,q){E.dataManager.changeDetailPanelVisibility(L,q),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,p.default)(E),"onCellEditStarted",function(L,q){E.dataManager.startCellEditable(L,q),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,p.default)(E),"onCellEditFinished",function(L,q){E.dataManager.finishCellEditable(L,q),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,p.default)(E),"onEditRowDataChanged",function(L,q){E.dataManager.setEditRowData(L,q),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,p.default)(E),"onColumnResized",function(L,q,H,V){var te=function(Q){return D(D(D({field:Q.field,width:Q.tableData.width,widthPx:Q.tableData.widthPx},Q.id&&{id:Q.id}),Q.minWidth&&{minWidth:Q.minWidth}),Q.maxWidth&&{maxWidth:Q.maxWidth})},ee=E.dataManager.onColumnResized(L,q,H,V);E.setState(E.dataManager.getRenderState(),function(){q===0&&E.props.onColumnResized&&ee.length>0&&E.props.onColumnResized(ee.map(function(U){return te(U)}),E.state.columns.map(function(U){return te(U)}))})}),(0,g.default)((0,p.default)(E),"renderTable",function(L){var q;return b.default.createElement(f.default,{sx:L.sx,style:D(D({},L.options.tableWidth==="variable"&&{width:E.state.tableStyleWidth}),{},{tableLayout:L.options.fixedColumns&&(L.options.fixedColumns.left||L.options.fixedColumns.right)?"fixed":L.options.tableLayout})},L.options.header&&b.default.createElement(L.components.Header,{actions:E.state.actions,columns:E.state.columns,selectedCount:E.state.selectedCount,dataCount:L.parentChildData?E.dataManager.searchedData.length:E.state.columns.some(function(H){return H.tableData.groupOrder>-1})?E.state.groupedDataLength:E.state.data.length,hasDetailPanel:!!L.detailPanel,showActionsColumn:!E.dataManager.bulkEditOpen&&E.state.actions&&E.state.actions.some(function(H){return H.position==="row"||typeof H=="function"}),onAllSelected:E.onAllSelected,onOrderChange:E.onChangeOrder,isTreeData:E.props.parentChildData!==void 0,treeDataMaxLevel:E.state.treeDataMaxLevel,onColumnResized:E.onColumnResized,scrollWidth:E.state.width,sorting:L.options.sorting||E.dataManager.maxColumnSort!==0,allowSorting:E.dataManager.maxColumnSort!==0,orderByCollection:E.dataManager.getOrderByCollection(),tableWidth:(q=L.options.tableWidth)!==null&&q!==void 0?q:"full"}),b.default.createElement(L.components.Body,{actions:E.state.actions,components:E.props.components,renderData:E.state.renderData,data:E.state.data,renderSummaryRow:E.props.renderSummaryRow,currentPage:E.isRemoteData()?0:E.state.currentPage,initialFormData:L.initialFormData,pageSize:E.state.pageSize,columns:E.state.columns,errorState:E.state.errorState,detailPanel:L.detailPanel,options:L.options,getFieldValue:E.dataManager.getFieldValue,isTreeData:E.props.parentChildData!==void 0,onFilterChanged:E.onFilterChange,onRowSelected:E.onRowSelected,onGroupSelected:E.onGroupSelected,onToggleDetailPanel:E.onToggleDetailPanel,onGroupExpandChanged:E.onGroupExpandChanged,onTreeExpandChanged:E.onTreeExpandChanged,onEditingCanceled:E.onEditingCanceled,onEditingApproved:E.onEditingApproved,onRowClick:E.props.onRowClick,onRowDoubleClick:E.props.onRowDoubleClick,showAddRow:E.state.showAddRow,hasAnyEditingRow:!!(E.state.lastEditingRow||E.state.showAddRow),hasDetailPanel:!!L.detailPanel,treeDataMaxLevel:E.state.treeDataMaxLevel,cellEditable:L.cellEditable,onCellEditStarted:E.onCellEditStarted,onCellEditFinished:E.onCellEditFinished,onRowEditStarted:E.onRowEditStarted,bulkEditOpen:E.dataManager.bulkEditOpen,bulkEditChangedRows:E.dataManager.bulkEditChangedRows,onBulkEditRowChanged:E.dataManager.onBulkEditRowChanged,scrollWidth:E.state.width}))}),(0,g.default)((0,p.default)(E),"onRowEditStarted",function(L){var q;(q=E.props.editable)!==null&&q!==void 0&&q.onRowUpdate&&(E.dataManager.changeRowEditing(L,"update"),E.setState(D(D({},E.dataManager.getRenderState()),{},{showAddRow:!1})))}),(0,g.default)((0,p.default)(E),"getColumnsWidth",function(L,q){var H=[],V=w.actionsColumnWidth(L);if(V>0&&(q>0&&L.options.actionsColumnIndex>=0&&L.options.actionsColumnIndex=q)&&H.push(V+"px"),L.options.selection&&q>0){var te=w.selectionMaxWidth(L,E.state.treeDataMaxLevel);H.push(te+"px")}for(var ee=0;ee=0?ee:E.state.columns.length-1-ee];U.tableData&&(typeof U.tableData.width=="number"?H.push(U.tableData.width+"px"):H.push(U.tableData.width))}return"calc("+H.join(" + ")+")"}),(0,g.default)((0,p.default)(E),"getRenderData",function(){return E.props.options.exportAllData?E.state.data:E.state.renderData});var W=E.getProps(N);E.setDataManagerFields(W,!0);var G=E.dataManager.getRenderState();return E.state=D(D({data:[],errorState:void 0},G),{},{query:{filters:G.columns.filter(function(L){return L.tableData.filterValue}).map(function(L){return{column:L,operator:"=",value:L.tableData.filterValue}}),orderBy:G.columns.find(function(L){return L.tableData.id===G.orderBy}),orderDirection:G.orderDirection,orderByCollection:G.orderByCollection,page:0,pageSize:W.options.pageSize,search:G.searchText,totalCount:0},showAddRow:!1,bulkEditOpen:!1,width:0,tableInitialWidthPx:void 0,tableStyleWidth:"100%",actions:W.actions}),E.tableContainerDiv=b.default.createRef(),E}return(0,h.default)(j,[{key:"componentDidMount",value:function(){var E=this;this.setState(D(D({},this.dataManager.getRenderState()),{},{width:this.tableContainerDiv.current.scrollWidth}),function(){E.isRemoteData()&&E.onQueryChange(D(D({},E.state.query),{},{page:E.props.options.initialPage||0})),E.props.onDoubleRowClick!==void 0&&console.warn("Property `onDoubleRowClick` has been renamed to `onRowDoubleClick`"),E.props.options.sorting!==void 0&&console.warn("Property `sorting` has been deprecated, please start using `maxColumnSort` instead. https://github.com/material-table-core/core/pull/619")})}},{key:"setDataManagerFields",value:function(E,W,G){var L,q=this,H={};if(E.options.persistentGroupingsId&&localStorage){var V=localStorage.getItem("material-table-groupings");V&&(V=JSON.parse(V),V[E.options.persistentGroupingsId]&&V[E.options.persistentGroupingsId].forEach(function(Te){H[Te.field]={groupOrder:Te.groupOrder,groupSort:Te.groupSort,columnOrder:Te.columnOrder}}))}this.dataManager.setTableWidth((L=E.options.tableWidth)!==null&&L!==void 0?L:"full"),this.dataManager.setColumns(E.columns,G,H),this.dataManager.setDefaultExpanded(E.options.defaultExpanded),this.dataManager.changeRowEditing();var te=E.options,ee=te.clientSorting,U=te.grouping,Q=te.maxColumnSort;this.dataManager.setClientSorting(ee),this.dataManager.setMaxColumnSort(U?1:Q),this.dataManager.setOrderByCollection(),this.isRemoteData(E)?(this.dataManager.changeApplySearch(!1),this.dataManager.changeApplyFilters(!1),this.dataManager.changeApplySort(!1)):(this.dataManager.changeApplySearch(!0),this.dataManager.changeApplyFilters(!0),this.dataManager.changeApplySort(!0),this.dataManager.setData(E.data,E.options.idSynonym));var Y=this.dataManager.getDefaultOrderByCollection(),Z=E.options.defaultOrderByCollection,X=[],re="",ie="";if(Z&&Z.length>0)X=(0,l.default)(Z).slice(0,Q),X=this.dataManager.sortOrderCollection(X),re=JSON.stringify(X),ie=JSON.stringify(Y),re!==ie&&this.dataManager.setDefaultOrderByCollection(X);else{var le=A(E.columns,G,this.dataManager.maxColumnSort);X=(0,l.default)(le[0]),re=JSON.stringify(X),ie=JSON.stringify((0,l.default)(le[1]))}var se=JSON.stringify(this.dataManager.orderByCollection),pe=W||!this.isRemoteData()&&X.length&&re!==ie&&re!==se;pe&&X.length>0&&Q>0&&X.forEach(function(Te){var Se=Te.orderBy,Oe=Te.orderDirection,Me=Te.sortOrder;return q.dataManager.changeColumnOrder(Se,Oe,Me)}),W&&this.dataManager.changeSearchText(E.options.searchText||""),W&&this.dataManager.changeSearchDebounce(E.options.searchDebounceDelay),W&&this.dataManager.changeCurrentPage(E.options.initialPage?E.options.initialPage:0),W&&this.dataManager.changePageSize(E.options.pageSize),this.dataManager.changePaging(this.isRemoteData()?!1:E.options.paging),W&&this.dataManager.changeParentFunc(E.parentChildData),this.dataManager.changeDetailPanelType(E.options.detailPanelType)}},{key:"cleanColumns",value:function(E){return E.map(function(W){var G=D({},W);return delete G.tableData,G})}},{key:"componentDidUpdate",value:function(E){var W=this.cleanColumns(E.columns),G=this.cleanColumns(this.props.columns),L=!(0,_.default)(W,G),q=L||!(0,_.default)(E.options,this.props.options);if(this.isRemoteData()||(q=q||!(0,_.default)(E.data,this.props.data)),E.options.pageSize!==this.props.options.pageSize&&this.dataManager.changePageSize(this.props.options.pageSize),q){var H=this.getProps(this.props);this.setDataManagerFields(H,!1,E.columns),this.setState(D(D({},this.dataManager.getRenderState()),{},{actions:H.actions}))}var V=this.isRemoteData()?this.state.query.totalCount:this.state.data.length,te=this.isRemoteData()?this.state.query.page:this.state.currentPage,ee=this.isRemoteData()?this.state.query.pageSize:this.state.pageSize;V<=ee*te&&te!==0&&!this.state.isLoading&&this.onPageChange(null,Math.max(0,Math.ceil(V/ee)-1))}},{key:"getProps",value:function(E){var W=this,G=D({},E||this.props),L=this.props.localization.body;if(G.options.selection?G.actions=G.actions.filter(function(H){return H}).map(function(H){return H.position==="auto"||H.isFreeAction===!1||H.position===void 0&&H.isFreeAction===void 0?typeof H=="function"?{action:H,position:"toolbarOnSelect"}:D(D({},H),{},{position:"toolbarOnSelect"}):H.isFreeAction?typeof H=="function"?{action:H,position:"toolbar"}:D(D({},H),{},{position:"toolbar"}):H}):G.actions=G.actions.filter(function(H){return H}).map(function(H){return H.position==="auto"||H.isFreeAction===!1||H.position===void 0&&H.isFreeAction===void 0?typeof H=="function"?{action:H,position:"row"}:D(D({},H),{},{position:"row"}):H.isFreeAction?typeof H=="function"?{action:H,position:"toolbar"}:D(D({},H),{},{position:"toolbar"}):H}),G.editable){var q;G.editable.onRowAdd&&G.actions.push({icon:G.icons.Add,tooltip:L.addTooltip,position:"toolbar",disabled:!!this.dataManager.lastEditingRow,onClick:function(){W.dataManager.changeRowEditing(),W.state.showAddRow&&W.props.editable.onRowAddCancelled&&W.props.editable.onRowAddCancelled(),W.setState(D(D({},W.dataManager.getRenderState()),{},{showAddRow:!W.state.showAddRow}))}}),G.editable.onRowUpdate&&G.actions.push(function(H){return{icon:G.icons.Edit,tooltip:G.editable.editTooltip?G.editable.editTooltip(H):L.editTooltip,disabled:G.editable.isEditable&&!G.editable.isEditable(H),hidden:G.editable.isEditHidden&&G.editable.isEditHidden(H),onClick:function(te,ee){W.onRowEditStarted(ee)}}}),G.editable.onRowDelete&&G.actions.push(function(H){return{icon:G.icons.Delete,tooltip:G.editable.deleteTooltip?G.editable.deleteTooltip(H):L.deleteTooltip,disabled:G.editable.isDeletable&&!G.editable.isDeletable(H),hidden:G.editable.isDeleteHidden&&G.editable.isDeleteHidden(H),onClick:function(te,ee){W.dataManager.changeRowEditing(ee,"delete"),W.setState(D(D({},W.dataManager.getRenderState()),{},{showAddRow:!1}))}}}),G.editable.onBulkUpdate&&(G.actions.push({icon:G.icons.Edit,tooltip:L.bulkEditTooltip,position:"toolbar",hidden:this.dataManager.bulkEditOpen,disabled:G.isBulkEditable&&G.isBulkEditable(),onClick:function(){W.dataManager.changeBulkEditOpen(!0),W.props.onBulkEditOpen&&W.props.onBulkEditOpen(!0),W.setState(W.dataManager.getRenderState())}}),G.actions.push({icon:G.icons.Check,tooltip:L.bulkEditApprove,position:"toolbar",hidden:!this.dataManager.bulkEditOpen,onClick:function(){return W.onEditingApproved("bulk")}}),G.actions.push({icon:G.icons.Clear,tooltip:L.bulkEditCancel,position:"toolbar",hidden:!this.dataManager.bulkEditOpen,onClick:function(){W.dataManager.changeBulkEditOpen(!1),W.props.onBulkEditOpen&&W.props.onBulkEditOpen(!1),W.dataManager.clearBulkEditChangedRows(),W.setState(W.dataManager.getRenderState())}})),(q=this.state)!==null&&q!==void 0&&q.showAddRow&&G.editable.onRowAdd&&G.actions.filter(function(H){return H.position==="row"}).length===0&&G.actions.push({icon:void 0,position:"row",onClick:function(){},disabled:!0})}return G}},{key:"renderFooter",value:function(){var E=this.getProps();if(E.options.paging){var W=this.isRemoteData()?Math.min(E.page,Math.floor(E.totalCount/this.state.pageSize)):this.state.currentPage,G=this.isRemoteData()?E.totalCount:this.state.data.length;return b.default.createElement(f.default,null,b.default.createElement(c.default,{style:{display:"grid"}},b.default.createElement(o.default,{style:{display:"grid"}},b.default.createElement(E.components.Pagination,{sx:{display:"flex",justifyContent:E.options.paginationAlignment?E.options.paginationAlignment:"flex-end",overflowX:"auto","& .MuiTablePagination-displayedRows":{display:"none"}},colSpan:3,count:this.isRemoteData()?this.state.query.totalCount:G,rowsPerPage:this.state.pageSize,rowsPerPageOptions:E.options.pageSizeOptions,SelectProps:{renderValue:function(q){return b.default.createElement(n.default,{sx:{padding:"0px 5px"}},q+" "+E.localization.pagination.labelRows+" ")}},page:this.isRemoteData()?this.state.query.page:W,onPageChange:this.onPageChange,onRowsPerPageChange:this.onRowsPerPageChange,ActionsComponent:function(q){return E.options.paginationType==="normal"?b.default.createElement(M.MTablePagination,(0,a.default)({},q,{showFirstLastPageButtons:E.options.showFirstLastPageButtons})):b.default.createElement(M.MTableSteppedPagination,(0,a.default)({},q,{showFirstLastPageButtons:E.options.showFirstLastPageButtons,numberOfPagesAround:E.options.numberOfPagesAround}))},labelRowsPerPage:E.localization.pagination.labelRowsPerPage}))))}}},{key:"render",value:function(){var E=this,W=this.getProps();return b.default.createElement(k.DragDropContext,{onDragEnd:this.onDragEnd,nonce:W.options.cspNonce},b.default.createElement(this.props.components.Container,{style:D({position:"relative"},W.style)},W.options.paginationPosition==="top"||W.options.paginationPosition==="both"?this.renderFooter():null,W.options.toolbar&&b.default.createElement(this.props.components.Toolbar,{actions:W.actions,components:this.props.components,originalData:this.state.originalData,columns:this.state.columns,selectedCount:this.state.selectedCount,getFieldValue:this.dataManager.getFieldValue,data:this.getRenderData,title:W.title,searchText:this.dataManager.searchText,searchDebounceDelay:this.dataManager.searchDebounceDelay,onSearchChanged:this.onSearchChangeDebounce,isRemoteData:this.isRemoteData(),dataManager:this.dataManager,onColumnsChanged:this.onChangeColumnHidden}),W.options.grouping&&b.default.createElement(this.props.components.Groupbar,{groupColumns:this.state.columns.filter(function(G){return G.tableData.groupOrder>-1}).sort(function(G,L){return G.tableData.groupOrder-L.tableData.groupOrder}),onSortChanged:this.onChangeGroupOrder,onGroupRemoved:this.onGroupRemoved,onGroupChange:this.props.onGroupChange,persistentGroupingsId:W.options.persistentGroupingsId}),b.default.createElement(M.MTableScrollbar,{double:W.options.doubleHorizontalScroll},b.default.createElement(k.Droppable,{droppableId:"headers",direction:"horizontal"},function(G,L){var q=E.renderTable(W);return b.default.createElement("div",{ref:G.innerRef},b.default.createElement("div",{ref:E.tableContainerDiv,style:{maxHeight:W.options.maxBodyHeight,minHeight:W.options.minBodyHeight,overflowY:W.options.overflowY}},E.state.width&&W.options.fixedColumns&&W.options.fixedColumns.right?b.default.createElement("div",{style:{width:E.getColumnsWidth(W,-1*W.options.fixedColumns.right),position:"absolute",top:0,right:0,boxShadow:"-2px 0px 15px rgba(125,147,178,.25)",overflowX:"clip",zIndex:11}},b.default.createElement("div",{style:{width:E.state.width,background:"white",transform:"translateX(calc(".concat(E.getColumnsWidth(W,-1*W.options.fixedColumns.right)," - 100%))")}},q)):null,b.default.createElement("div",null,q),E.state.width&&W.options.fixedColumns&&W.options.fixedColumns.left?b.default.createElement("div",{style:{width:E.getColumnsWidth(W,W.options.fixedColumns.left),position:"absolute",top:0,left:0,boxShadow:"2px 0px 15px rgba(125,147,178,.25)",overflowX:"clip",zIndex:11}},b.default.createElement("div",{style:{width:E.state.width,background:"white"},onKeyDown:function(V){V.key==="Tab"&&V.preventDefault()}},q)):null),G.placeholder)})),(this.state.isLoading||W.isLoading)&&W.options.loadingType==="linear"&&b.default.createElement("div",{style:{position:"relative",width:"100%"}},b.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%"}},b.default.createElement(i.default,null))),W.options.paginationPosition==="bottom"||W.options.paginationPosition==="both"?this.renderFooter():null,(this.state.isLoading||W.isLoading)&&W.options.loadingType==="overlay"&&b.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%",zIndex:11}},b.default.createElement(this.props.components.OverlayLoading,{theme:W.theme})),this.state.errorState&&this.state.errorState.errorCause==="query"&&b.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%",zIndex:11}},b.default.createElement(this.props.components.OverlayError,{error:this.state.errorState,retry:this.retry,theme:W.theme}))))}}]),j}(b.default.Component);e.default=F;function A(B,$,j){var N=[],E=[];return j>0&&(N=z(B,j)),$&&(E=z($,j)),[N,E]}function z(B,$){var j=B.filter(function(N){return N.defaultSort&&N.sorting!==!1});return j.slice(0,$).map(function(N,E){return{orderBy:N.tableData?N.tableData.id:B.findIndex(function(W){return W.field===N.field}),orderDirection:N.defaultSort,sortOrder:E+1}})}}(Im)),Im}(function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ALL_COLUMNS",{enumerable:!0,get:function(){return s.ALL_COLUMNS}}),Object.defineProperty(e,"MTableAction",{enumerable:!0,get:function(){return f.MTableAction}}),Object.defineProperty(e,"MTableActions",{enumerable:!0,get:function(){return f.MTableActions}}),Object.defineProperty(e,"MTableBody",{enumerable:!0,get:function(){return f.MTableBody}}),Object.defineProperty(e,"MTableBodyRow",{enumerable:!0,get:function(){return f.MTableBodyRow}}),Object.defineProperty(e,"MTableCell",{enumerable:!0,get:function(){return f.MTableCell}}),Object.defineProperty(e,"MTableEditCell",{enumerable:!0,get:function(){return f.MTableEditCell}}),Object.defineProperty(e,"MTableEditField",{enumerable:!0,get:function(){return f.MTableEditField}}),Object.defineProperty(e,"MTableEditRow",{enumerable:!0,get:function(){return f.MTableEditRow}}),Object.defineProperty(e,"MTableFilterRow",{enumerable:!0,get:function(){return f.MTableFilterRow}}),Object.defineProperty(e,"MTableGroupRow",{enumerable:!0,get:function(){return f.MTableGroupRow}}),Object.defineProperty(e,"MTableGroupbar",{enumerable:!0,get:function(){return f.MTableGroupbar}}),Object.defineProperty(e,"MTableHeader",{enumerable:!0,get:function(){return f.MTableHeader}}),Object.defineProperty(e,"MTablePagination",{enumerable:!0,get:function(){return f.MTablePagination}}),Object.defineProperty(e,"MTableSteppedPagination",{enumerable:!0,get:function(){return f.MTableSteppedPagination}}),Object.defineProperty(e,"MTableToolbar",{enumerable:!0,get:function(){return f.MTableToolbar}}),e.default=void 0,Object.defineProperty(e,"useLocalizationStore",{enumerable:!0,get:function(){return l.useLocalizationStore}});var r=t(hr()),i=t($e),c=bY(),o=xY(),a=t(jY()),n=$l,l=tc(),f=Jd(),s=C1();a.default.defaultProps=c.defaultProps,a.default.propTypes=o.propTypes;var u=(0,l.withContext)(function(d){var h=(0,n.useTheme)(),p=(0,l.useMergeProps)(d),m=p.localization,y=p.options,v=p.components;return i.default.createElement(a.default,(0,r.default)({},d,{theme:h,options:y,components:v,localization:m,ref:d.tableRef}))});e.default=u})(gS);const $Y=ir(gS);class BY{constructor(t){Nc(this,"cachedGraphs");Nc(this,"cachedWidgets");Nc(this,"inner");this.inner=t,this.cachedGraphs=new Map,this.cachedWidgets=new Map}async getAdditionGraphData(t){let r=this.cachedGraphs.get(t);return r!==void 0||(r=await this.inner.getAdditionGraphData(t),this.cachedGraphs.set(t,r)),r}async getAdditionWidgetData(t){let r=this.cachedWidgets.get(t);return r!==void 0||(r=await this.inner.getAdditionWidgetData(t),this.cachedWidgets.set(t,r)),r}}const yC=et.createContext({getAdditionGraphData:()=>new Promise((e,t)=>t("default context doesn't contain methods to get data")),getAdditionWidgetData:()=>new Promise((e,t)=>t("default context doesn't contain methods to get data"))});function G5e(e){return new BY(e)}const zY=e=>{const t=e.activeTab===-1?0:e.activeTab;return je.jsxs("div",{children:[je.jsx(aS,{value:t,onChange:e.onNewTabSelected,indicatorColor:"primary",textColor:"primary",children:e.tabs.map(r=>je.jsx(A0,{disabled:r.disabled??!1,label:je.jsx(Kr,{className:e.tabStyle,children:je.jsxs(Kr,{display:"flex",sx:{fontSize:"0.875rem"},children:[je.jsx("span",{children:r.icon}),r.title]})})}))}),je.jsx(Kr,{children:e.tabs.map((r,i)=>je.jsx("div",{hidden:(e.activeTab===-1?0:e.activeTab)!==i,children:(e.activeTab===-1?0:e.activeTab)!==i?je.jsx("div",{}):r.tab}))})]})},O1=e=>{const[t,r]=$e.useState({activeTab:0});return je.jsx(et.Fragment,{children:je.jsx(zY,{activeTab:t.activeTab,onNewTabSelected:(i,c)=>r(o=>({...o,activeTab:c})),tabs:e.tabs})})},H0=({func:e,children:t})=>{const[r,i]=$e.useState(()=>({status:0,func:e}));return r.status===0&&i(c=>({...c,status:1})),r.status===1&&(i(c=>({...c,status:2})),r.func().then(c=>i(o=>({...o,status:3,result:c}))).catch(()=>i(c=>({...c,status:4})))),je.jsx(je.Fragment,{children:r.status===3?t&&r.result&&t(r.result):r.status===4?je.jsx(Cr,{align:"center",children:"Failed"}):r.status===2?je.jsx(Kr,{textAlign:"center",children:je.jsx(eE,{})}):null})},bC=e=>je.jsxs(wy,{severity:e.data.severity,children:[je.jsx(by,{children:e.data.title}),e.data.text]}),xC=()=>je.jsx("div",{children:"Not implemented"}),qY=e=>e.type??"graph",nT=(e,t,r)=>{switch(qY(t)){case"graph":{const i=()=>e.getAdditionGraphData(t.id),c=o=>je.jsx(Pd,{...o,widgetSize:r});return je.jsx(H0,{func:i,children:c})}case"widget":{const i=()=>e.getAdditionWidgetData(t.id),c=o=>Tc(t.id,o);return je.jsx(H0,{func:i,children:c})}default:return je.jsx(xC,{})}},A1=e=>je.jsx(yC.Consumer,{children:t=>je.jsxs(Kr,{children:[e.details.parts.length>1?je.jsx(O1,{tabs:e.details.parts.map(r=>({title:r.title,tab:nT(t,r,e.widgetSize)}))}):nT(t,e.details.parts[0],e.widgetSize),e.details.insights===void 0?je.jsx(je.Fragment,{}):e.details.insights.map(r=>je.jsx(bC,{data:r},r.text+r.title+r.severity))]})}),WY=e=>je.jsx(yC.Consumer,{children:t=>je.jsx(H0,{func:()=>t.getAdditionGraphData(e.graphId),children:r=>je.jsx(Pd,{...r,widgetSize:e.widgetSize})})});var V0={exports:{}},Y0={exports:{}};(function(e,t){t.__esModule=!0,t.default=r;function r(i){var c={};for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(c[o]=0);return c}e.exports=t.default})(Y0,Y0.exports);var P1=Y0.exports,G0={exports:{}};(function(e,t){t.__esModule=!0,t.default=r;function r(i){var c={};for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(c[o]=typeof i[o]=="number"?i[o]:i[o].val);return c}e.exports=t.default})(G0,G0.exports);var th=G0.exports,X0={exports:{}};(function(e,t){t.__esModule=!0,t.default=i;var r=[0,0];function i(c,o,a,n,l,f,s){var u=-l*(o-n),d=-f*a,h=u+d,p=a+h*c,m=o+p*c;return Math.abs(p)"u"?Sa:window,Qc=["moz","webkit"],yl="AnimationFrame",Pl=Mi["request"+yl],$u=Mi["cancel"+yl]||Mi["cancelRequest"+yl];for(var eu=0;!Pl&&euk*10&&(P.accumulatedTime=0),P.accumulatedTime===0){P.animationID=null,P.startAnimationIfNecessary();return}var A=(P.accumulatedTime-Math.floor(P.accumulatedTime/k)*k)/k,z=Math.floor(P.accumulatedTime/k),B={},$={},j={},N={};for(var E in O)if(Object.prototype.hasOwnProperty.call(O,E)){var W=O[E];if(typeof W=="number")j[E]=W,N[E]=0,B[E]=W,$[E]=0;else{for(var G=P.state.lastIdealStyle[E],L=P.state.lastIdealVelocity[E],q=0;qk*10&&(D.accumulatedTime=0),D.accumulatedTime===0){D.animationID=null,D.startAnimationIfNecessary();return}for(var z=(D.accumulatedTime-Math.floor(D.accumulatedTime/k)*k)/k,B=Math.floor(D.accumulatedTime/k),$=[],j=[],N=[],E=[],W=0;Wa[g])return-1;if(h>l[g]&&ya[g])return 1;if(p>l[g]&&mM*10&&(A.accumulatedTime=0),A.accumulatedTime===0){A.animationID=null,A.startAnimationIfNecessary();return}for(var E=(A.accumulatedTime-Math.floor(A.accumulatedTime/M)*M)/M,W=Math.floor(A.accumulatedTime/M),G=P(A.props.willEnter,A.props.willLeave,A.props.didLeave,A.state.mergedPropsStyles,$,A.state.currentStyles,A.state.currentVelocities,A.state.lastIdealStyles,A.state.lastIdealVelocities),L=G[0],q=G[1],H=G[2],V=G[3],te=G[4],ee=0;ee0},e.prototype.connect_=function(){!rv||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),fG?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!rv||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,i=r===void 0?"":r,c=cG.some(function(o){return!!~i.indexOf(o)});c&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),TC=function(e,t){for(var r=0,i=Object.keys(t);r"u"||!(Element instanceof Object))){if(!(t instanceof Dl(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new xG(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Dl(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(i){return new wG(i.target,i.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),MC=typeof WeakMap<"u"?new WeakMap:new _C,SC=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=dG.getInstance(),i=new _G(t,r,this);MC.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach(function(e){SC.prototype[e]=function(){var t;return(t=MC.get(this))[e].apply(t,arguments)}});var TG=function(){return typeof Yf.ResizeObserver<"u"?Yf.ResizeObserver:SC}(),kG=["client","offset","scroll","bounds","margin"];function iT(e){var t=[];return kG.forEach(function(r){e[r]&&t.push(r)}),t}function oT(e,t){var r={};if(t.indexOf("client")>-1&&(r.client={top:e.clientTop,left:e.clientLeft,width:e.clientWidth,height:e.clientHeight}),t.indexOf("offset")>-1&&(r.offset={top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight}),t.indexOf("scroll")>-1&&(r.scroll={top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}),t.indexOf("bounds")>-1){var i=e.getBoundingClientRect();r.bounds={top:i.top,right:i.right,bottom:i.bottom,left:i.left,width:i.width,height:i.height}}if(t.indexOf("margin")>-1){var c=getComputedStyle(e);r.margin={top:c?parseInt(c.marginTop):0,right:c?parseInt(c.marginRight):0,bottom:c?parseInt(c.marginBottom):0,left:c?parseInt(c.marginLeft):0}}return r}function MG(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||window}function SG(e){return function(t){var r,i;return i=r=function(c){tE(o,c);function o(){for(var n,l=arguments.length,f=new Array(l),s=0;s-1}var iX=aX,oX=oh;function lX(e,t){var r=this.__data__,i=oX(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}var sX=lX,uX=HG,cX=QG,fX=nX,dX=iX,hX=sX;function Yl(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=bJ}var W1=xJ,wJ=sh,_J=W1;function TJ(e){return e!=null&&_J(e.length)&&!wJ(e)}var Jl=TJ,kJ=Jl,MJ=Na;function SJ(e){return MJ(e)&&kJ(e)}var BC=SJ,Kf={exports:{}};function CJ(){return!1}var OJ=CJ;Kf.exports;(function(e,t){var r=Oa,i=OJ,c=t&&!t.nodeType&&t,o=c&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===c,n=a?r.Buffer:void 0,l=n?n.isBuffer:void 0,f=l||i;e.exports=f})(Kf,Kf.exports);var gh=Kf.exports,AJ=Ii,PJ=z1,DJ=Na,EJ="[object Object]",RJ=Function.prototype,LJ=Object.prototype,zC=RJ.toString,IJ=LJ.hasOwnProperty,FJ=zC.call(Object);function NJ(e){if(!DJ(e)||AJ(e)!=EJ)return!1;var t=PJ(e);if(t===null)return!0;var r=IJ.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&zC.call(r)==FJ}var U1=NJ;const Wu=ir(U1);var jJ=Ii,$J=W1,BJ=Na,zJ="[object Arguments]",qJ="[object Array]",WJ="[object Boolean]",UJ="[object Date]",HJ="[object Error]",VJ="[object Function]",YJ="[object Map]",GJ="[object Number]",XJ="[object Object]",ZJ="[object RegExp]",KJ="[object Set]",JJ="[object String]",QJ="[object WeakMap]",eQ="[object ArrayBuffer]",tQ="[object DataView]",nQ="[object Float32Array]",rQ="[object Float64Array]",aQ="[object Int8Array]",iQ="[object Int16Array]",oQ="[object Int32Array]",lQ="[object Uint8Array]",sQ="[object Uint8ClampedArray]",uQ="[object Uint16Array]",cQ="[object Uint32Array]",xr={};xr[nQ]=xr[rQ]=xr[aQ]=xr[iQ]=xr[oQ]=xr[lQ]=xr[sQ]=xr[uQ]=xr[cQ]=!0;xr[zJ]=xr[qJ]=xr[eQ]=xr[WJ]=xr[tQ]=xr[UJ]=xr[HJ]=xr[VJ]=xr[YJ]=xr[GJ]=xr[XJ]=xr[ZJ]=xr[KJ]=xr[JJ]=xr[QJ]=!1;function fQ(e){return BJ(e)&&$J(e.length)&&!!xr[jJ(e)]}var dQ=fQ;function hQ(e){return function(t){return e(t)}}var Ql=hQ,Jf={exports:{}};Jf.exports;(function(e,t){var r=OC,i=t&&!t.nodeType&&t,c=i&&!0&&e&&!e.nodeType&&e,o=c&&c.exports===i,a=o&&r.process,n=function(){try{var l=c&&c.require&&c.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=n})(Jf,Jf.exports);var mh=Jf.exports,pQ=dQ,gQ=Ql,xT=mh,wT=xT&&xT.isTypedArray,mQ=wT?gQ(wT):pQ,H1=mQ;function vQ(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var qC=vQ,yQ=$1,bQ=cc,xQ=Object.prototype,wQ=xQ.hasOwnProperty;function _Q(e,t,r){var i=e[t];(!(wQ.call(e,t)&&bQ(i,r))||r===void 0&&!(t in e))&&yQ(e,t,r)}var V1=_Q,TQ=V1,kQ=$1;function MQ(e,t,r,i){var c=!r;r||(r={});for(var o=-1,a=t.length;++o-1&&e%1==0&&e0){if(++t>=Lee)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var VC=Nee,jee=Ree,$ee=VC,Bee=$ee(jee),G1=Bee,zee=Yo,qee=HC,Wee=G1;function Uee(e,t){return Wee(qee(e,t,zee),e+"")}var vh=Uee,Hee=cc,Vee=Jl,Yee=fc,Gee=Ya;function Xee(e,t,r){if(!Gee(r))return!1;var i=typeof t;return(i=="number"?Vee(r)&&Yee(t,r.length):i=="string"&&t in r)?Hee(r[t],e):!1}var X1=Xee,Zee=vh,Kee=X1;function Jee(e){return Zee(function(t,r){var i=-1,c=r.length,o=c>1?r[c-1]:void 0,a=c>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(c--,o):void 0,a&&Kee(r[0],r[1],a)&&(o=c<3?void 0:o,c=1),t=Object(t);++it?1:e>=t?0:NaN}function J1(e){let t=e,r=e;e.length===1&&(t=(a,n)=>e(a)-n,r=une(e));function i(a,n,l,f){for(l==null&&(l=0),f==null&&(f=a.length);l>>1;r(a[s],n)<0?l=s+1:f=s}return l}function c(a,n,l,f){for(l==null&&(l=0),f==null&&(f=a.length);l>>1;r(a[s],n)>0?f=s:l=s+1}return l}function o(a,n,l,f){l==null&&(l=0),f==null&&(f=a.length);const s=i(a,n,l,f-1);return s>l&&t(a[s-1],n)>-t(a[s],n)?s-1:s}return{left:i,center:o,right:c}}function une(e){return(t,r)=>JC(e(t),r)}function cne(e){return e===null?NaN:+e}const fne=J1(JC),dne=fne.right;J1(cne).center;var av=Math.sqrt(50),iv=Math.sqrt(10),ov=Math.sqrt(2);function lv(e,t,r){var i,c=-1,o,a,n;if(t=+t,e=+e,r=+r,e===t&&r>0)return[e];if((i=t0){let l=Math.round(e/n),f=Math.round(t/n);for(l*nt&&--f,a=new Array(o=f-l+1);++ct&&--f,a=new Array(o=f-l+1);++c=0?(o>=av?10:o>=iv?5:o>=ov?2:1)*Math.pow(10,c):-Math.pow(10,-c)/(o>=av?10:o>=iv?5:o>=ov?2:1)}function sv(e,t,r){var i=Math.abs(t-e)/Math.max(0,r),c=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/c;return o>=av?c*=10:o>=iv?c*=5:o>=ov&&(c*=2),t>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?tf(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?tf(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=mne.exec(e))?new Ra(t[1],t[2],t[3],1):(t=vne.exec(e))?new Ra(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=yne.exec(e))?tf(t[1],t[2],t[3],t[4]):(t=bne.exec(e))?tf(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=xne.exec(e))?$T(t[1],t[2]/100,t[3]/100,1):(t=wne.exec(e))?$T(t[1],t[2]/100,t[3]/100,t[4]):RT.hasOwnProperty(e)?FT(RT[e]):e==="transparent"?new Ra(NaN,NaN,NaN,0):null}function FT(e){return new Ra(e>>16&255,e>>8&255,e&255,1)}function tf(e,t,r,i){return i<=0&&(e=t=r=NaN),new Ra(e,t,r,i)}function Tne(e){return e instanceof pc||(e=Po(e)),e?(e=e.rgb(),new Ra(e.r,e.g,e.b,e.opacity)):new Ra}function Do(e,t,r,i){return arguments.length===1?Tne(e):new Ra(e,t,r,i??1)}function Ra(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}eb(Ra,Do,t8(pc,{brighter:function(e){return e=e==null?Qf:Math.pow(Qf,e),new Ra(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?Uu:Math.pow(Uu,e),new Ra(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:NT,formatHex:NT,formatRgb:jT,toString:jT}));function NT(){return"#"+zm(this.r)+zm(this.g)+zm(this.b)}function jT(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function zm(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function $T(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new fi(e,t,r,i)}function n8(e){if(e instanceof fi)return new fi(e.h,e.s,e.l,e.opacity);if(e instanceof pc||(e=Po(e)),!e)return new fi;if(e instanceof fi)return e;e=e.rgb();var t=e.r/255,r=e.g/255,i=e.b/255,c=Math.min(t,r,i),o=Math.max(t,r,i),a=NaN,n=o-c,l=(o+c)/2;return n?(t===o?a=(r-i)/n+(r0&&l<1?0:a,new fi(a,n,l,e.opacity)}function kne(e,t,r,i){return arguments.length===1?n8(e):new fi(e,t,r,i??1)}function fi(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}eb(fi,kne,t8(pc,{brighter:function(e){return e=e==null?Qf:Math.pow(Qf,e),new fi(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Uu:Math.pow(Uu,e),new fi(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*t,c=2*r-i;return new Ra(qm(e>=240?e-240:e+120,c,i),qm(e,c,i),qm(e<120?e+240:e-120,c,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function qm(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const tb=e=>()=>e;function Mne(e,t){return function(r){return e+r*t}}function Sne(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(i){return Math.pow(e+i*t,r)}}function Cne(e){return(e=+e)==1?r8:function(t,r){return r-t?Sne(t,r,e):tb(isNaN(t)?r:t)}}function r8(e,t){var r=t-e;return r?Mne(e,r):tb(isNaN(e)?t:e)}const BT=function e(t){var r=Cne(t);function i(c,o){var a=r((c=Do(c)).r,(o=Do(o)).r),n=r(c.g,o.g),l=r(c.b,o.b),f=r8(c.opacity,o.opacity);return function(s){return c.r=a(s),c.g=n(s),c.b=l(s),c.opacity=f(s),c+""}}return i.gamma=e,i}(1);function One(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,i=t.slice(),c;return function(o){for(c=0;cr&&(o=t.slice(r,o),n[a]?n[a]+=o:n[++a]=o),(i=i[0])===(c=c[0])?n[a]?n[a]+=c:n[++a]=c:(n[++a]=null,l.push({i:a,x:ed(i,c)})),r=Wm.lastIndex;return rt&&(r=e,e=t,t=r),function(i){return Math.max(e,Math.min(t,i))}}function Bne(e,t,r){var i=e[0],c=e[1],o=t[0],a=t[1];return c2?zne:Bne,l=f=null,u}function u(d){return d==null||isNaN(d=+d)?o:(l||(l=n(e.map(i),t,r)))(i(a(d)))}return u.invert=function(d){return a(c((f||(f=n(t,e.map(i),ed)))(d)))},u.domain=function(d){return arguments.length?(e=Array.from(d,jne),s()):e.slice()},u.range=function(d){return arguments.length?(t=Array.from(d),s()):t.slice()},u.rangeRound=function(d){return t=Array.from(d),r=Fne,s()},u.clamp=function(d){return arguments.length?(a=d?!0:pl,s()):a!==pl},u.interpolate=function(d){return arguments.length?(r=d,s()):r},u.unknown=function(d){return arguments.length?(o=d,u):o},function(d,h){return i=d,c=h,s()}}function i8(){return a8()(pl,pl)}function qne(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function td(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,i=e.slice(0,r);return[i.length>1?i[0]+i.slice(2):i,+e.slice(r+1)]}function El(e){return e=td(Math.abs(e)),e?e[1]:NaN}function Wne(e,t){return function(r,i){for(var c=r.length,o=[],a=0,n=e[0],l=0;c>0&&n>0&&(l+n+1>i&&(n=Math.max(1,i-l)),o.push(r.substring(c-=n,c+n)),!((l+=n+1)>i));)n=e[a=(a+1)%e.length];return o.reverse().join(t)}}function Une(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var Hne=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function nd(e){if(!(t=Hne.exec(e)))throw new Error("invalid format: "+e);var t;return new ab({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]})}nd.prototype=ab.prototype;function ab(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}ab.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Vne(e){e:for(var t=e.length,r=1,i=-1,c;r0&&(i=0);break}return i>0?e.slice(0,i)+e.slice(c+1):e}var o8;function Yne(e,t){var r=td(e,t);if(!r)return e+"";var i=r[0],c=r[1],o=c-(o8=Math.max(-8,Math.min(8,Math.floor(c/3)))*3)+1,a=i.length;return o===a?i:o>a?i+new Array(o-a+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+td(e,Math.max(0,t+o-1))[0]}function qT(e,t){var r=td(e,t);if(!r)return e+"";var i=r[0],c=r[1];return c<0?"0."+new Array(-c).join("0")+i:i.length>c+1?i.slice(0,c+1)+"."+i.slice(c+1):i+new Array(c-i.length+2).join("0")}const WT={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:qne,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return qT(e*100,t)},r:qT,s:Yne,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function UT(e){return e}var HT=Array.prototype.map,VT=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Gne(e){var t=e.grouping===void 0||e.thousands===void 0?UT:Wne(HT.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",i=e.currency===void 0?"":e.currency[1]+"",c=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?UT:Une(HT.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",n=e.minus===void 0?"-":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function f(u){u=nd(u);var d=u.fill,h=u.align,p=u.sign,m=u.symbol,y=u.zero,v=u.width,g=u.comma,b=u.precision,x=u.trim,_=u.type;_==="n"?(g=!0,_="g"):WT[_]||(b===void 0&&(b=12),x=!0,_="g"),(y||d==="0"&&h==="=")&&(y=!0,d="0",h="=");var w=m==="$"?r:m==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",k=m==="$"?i:/[%p]/.test(_)?a:"",T=WT[_],M=/[defgprs%]/.test(_);b=b===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function S(C){var P=w,D=k,O,R,F;if(_==="c")D=T(C)+D,C="";else{C=+C;var A=C<0||1/C<0;if(C=isNaN(C)?l:T(Math.abs(C),b),x&&(C=Vne(C)),A&&+C==0&&p!=="+"&&(A=!1),P=(A?p==="("?p:n:p==="-"||p==="("?"":p)+P,D=(_==="s"?VT[8+o8/3]:"")+D+(A&&p==="("?")":""),M){for(O=-1,R=C.length;++OF||F>57){D=(F===46?c+C.slice(O+1):C.slice(O))+D,C=C.slice(0,O);break}}}g&&!y&&(C=t(C,1/0));var z=P.length+C.length+D.length,B=z>1)+P+C+D+B.slice(z);break;default:C=B+P+C+D;break}return o(C)}return S.toString=function(){return u+""},S}function s(u,d){var h=f((u=nd(u),u.type="f",u)),p=Math.max(-8,Math.min(8,Math.floor(El(d)/3)))*3,m=Math.pow(10,-p),y=VT[8+p/3];return function(v){return h(m*v)+y}}return{format:f,formatPrefix:s}}var nf,is,l8;Xne({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function Xne(e){return nf=Gne(e),is=nf.format,l8=nf.formatPrefix,nf}function Zne(e){return Math.max(0,-El(Math.abs(e)))}function Kne(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(El(t)/3)))*3-El(Math.abs(e)))}function Jne(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,El(t)-El(e))+1}function Qne(e,t,r,i){var c=sv(e,t,r),o;switch(i=nd(i??",f"),i.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return i.precision==null&&!isNaN(o=Kne(c,a))&&(i.precision=o),l8(i,a)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(o=Jne(c,Math.max(Math.abs(e),Math.abs(t))))&&(i.precision=o-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(o=Zne(c))&&(i.precision=o-(i.type==="%")*2);break}}return is(i)}function ere(e){var t=e.domain;return e.ticks=function(r){var i=t();return lv(i[0],i[i.length-1],r??10)},e.tickFormat=function(r,i){var c=t();return Qne(c[0],c[c.length-1],r??10,i)},e.nice=function(r){r==null&&(r=10);var i=t(),c=0,o=i.length-1,a=i[c],n=i[o],l,f,s=10;for(n0;){if(f=QC(a,n,r),f===l)return i[c]=a,i[o]=n,t(i);if(f>0)a=Math.floor(a/f)*f,n=Math.ceil(n/f)*f;else if(f<0)a=Math.ceil(a*f)/f,n=Math.floor(n*f)/f;else break;l=f}return e},e}function Eo(){var e=i8();return e.copy=function(){return rb(e,Eo())},as.apply(e,arguments),ere(e)}function s8(e,t){e=e.slice();var r=0,i=e.length-1,c=e[r],o=e[i],a;return o0){for(;d<=h;++d)for(m=1,p=o(d);ms)break;g.push(y)}}else for(;d<=h;++d)for(m=i-1,p=o(d);m>=1;--m)if(y=p*m,!(ys)break;g.push(y)}g.length*20))return l;do l.push(f=new Date(+o)),t(o,n),e(o);while(f=a)for(;e(a),!o(a);)a.setTime(a-1)},function(a,n){if(a>=a)if(n<0)for(;++n<=0;)for(;t(a,-1),!o(a););else for(;--n>=0;)for(;t(a,1),!o(a););})},r&&(c.count=function(o,a){return Um.setTime(+o),Hm.setTime(+a),e(Um),e(Hm),Math.floor(r(Um,Hm))},c.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?c.filter(i?function(a){return i(a)%o===0}:function(a){return c.count(0,a)%o===0}):c}),c}var rd=ta(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});rd.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ta(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):rd};rd.range;const Ti=1e3,Ua=Ti*60,ki=Ua*60,Ro=ki*24,ib=Ro*7,ZT=Ro*30,Vm=Ro*365;var Mo=ta(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Ti)},function(e,t){return(t-e)/Ti},function(e){return e.getUTCSeconds()});Mo.range;var ob=ta(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ti)},function(e,t){e.setTime(+e+t*Ua)},function(e,t){return(t-e)/Ua},function(e){return e.getMinutes()});ob.range;var lb=ta(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ti-e.getMinutes()*Ua)},function(e,t){e.setTime(+e+t*ki)},function(e,t){return(t-e)/ki},function(e){return e.getHours()});lb.range;var gc=ta(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ua)/Ro,e=>e.getDate()-1);gc.range;function Go(e){return ta(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,r){t.setDate(t.getDate()+r*7)},function(t,r){return(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Ua)/ib})}var bh=Go(0),ad=Go(1),lre=Go(2),sre=Go(3),Rl=Go(4),ure=Go(5),cre=Go(6);bh.range;ad.range;lre.range;sre.range;Rl.range;ure.range;cre.range;var sb=ta(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});sb.range;var Oi=ta(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});Oi.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ta(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)})};Oi.range;var ub=ta(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Ua)},function(e,t){return(t-e)/Ua},function(e){return e.getUTCMinutes()});ub.range;var cb=ta(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*ki)},function(e,t){return(t-e)/ki},function(e){return e.getUTCHours()});cb.range;var mc=ta(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/Ro},function(e){return e.getUTCDate()-1});mc.range;function Xo(e){return ta(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCDate(t.getUTCDate()+r*7)},function(t,r){return(r-t)/ib})}var xh=Xo(0),id=Xo(1),fre=Xo(2),dre=Xo(3),Ll=Xo(4),hre=Xo(5),pre=Xo(6);xh.range;id.range;fre.range;dre.range;Ll.range;hre.range;pre.range;var fb=ta(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});fb.range;var Ai=ta(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});Ai.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ta(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})};Ai.range;function c8(e,t,r,i,c,o){const a=[[Mo,1,Ti],[Mo,5,5*Ti],[Mo,15,15*Ti],[Mo,30,30*Ti],[o,1,Ua],[o,5,5*Ua],[o,15,15*Ua],[o,30,30*Ua],[c,1,ki],[c,3,3*ki],[c,6,6*ki],[c,12,12*ki],[i,1,Ro],[i,2,2*Ro],[r,1,ib],[t,1,ZT],[t,3,3*ZT],[e,1,Vm]];function n(f,s,u){const d=sy).right(a,d);if(h===a.length)return e.every(sv(f/Vm,s/Vm,u));if(h===0)return rd.every(Math.max(sv(f,s,u),1));const[p,m]=a[d/a[h-1][2]53)return null;"w"in U||(U.w=1),"Z"in U?(Y=Gm(nu(U.y,0,1)),Z=Y.getUTCDay(),Y=Z>4||Z===0?id.ceil(Y):id(Y),Y=mc.offset(Y,(U.V-1)*7),U.y=Y.getUTCFullYear(),U.m=Y.getUTCMonth(),U.d=Y.getUTCDate()+(U.w+6)%7):(Y=Ym(nu(U.y,0,1)),Z=Y.getDay(),Y=Z>4||Z===0?ad.ceil(Y):ad(Y),Y=gc.offset(Y,(U.V-1)*7),U.y=Y.getFullYear(),U.m=Y.getMonth(),U.d=Y.getDate()+(U.w+6)%7)}else("W"in U||"U"in U)&&("w"in U||(U.w="u"in U?U.u%7:"W"in U?1:0),Z="Z"in U?Gm(nu(U.y,0,1)).getUTCDay():Ym(nu(U.y,0,1)).getDay(),U.m=0,U.d="W"in U?(U.w+6)%7+U.W*7-(Z+5)%7:U.w+U.U*7-(Z+6)%7);return"Z"in U?(U.H+=U.Z/100|0,U.M+=U.Z%100,Gm(U)):Ym(U)}}function T(V,te,ee,U){for(var Q=0,Y=te.length,Z=ee.length,X,re;Q=Z)return-1;if(X=te.charCodeAt(Q++),X===37){if(X=te.charAt(Q++),re=_[X in KT?te.charAt(Q++):X],!re||(U=re(V,ee,U))<0)return-1}else if(X!=ee.charCodeAt(U++))return-1}return U}function M(V,te,ee){var U=f.exec(te.slice(ee));return U?(V.p=s.get(U[0].toLowerCase()),ee+U[0].length):-1}function S(V,te,ee){var U=h.exec(te.slice(ee));return U?(V.w=p.get(U[0].toLowerCase()),ee+U[0].length):-1}function C(V,te,ee){var U=u.exec(te.slice(ee));return U?(V.w=d.get(U[0].toLowerCase()),ee+U[0].length):-1}function P(V,te,ee){var U=v.exec(te.slice(ee));return U?(V.m=g.get(U[0].toLowerCase()),ee+U[0].length):-1}function D(V,te,ee){var U=m.exec(te.slice(ee));return U?(V.m=y.get(U[0].toLowerCase()),ee+U[0].length):-1}function O(V,te,ee){return T(V,t,te,ee)}function R(V,te,ee){return T(V,r,te,ee)}function F(V,te,ee){return T(V,i,te,ee)}function A(V){return a[V.getDay()]}function z(V){return o[V.getDay()]}function B(V){return l[V.getMonth()]}function $(V){return n[V.getMonth()]}function j(V){return c[+(V.getHours()>=12)]}function N(V){return 1+~~(V.getMonth()/3)}function E(V){return a[V.getUTCDay()]}function W(V){return o[V.getUTCDay()]}function G(V){return l[V.getUTCMonth()]}function L(V){return n[V.getUTCMonth()]}function q(V){return c[+(V.getUTCHours()>=12)]}function H(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var te=w(V+="",b);return te.toString=function(){return V},te},parse:function(V){var te=k(V+="",!1);return te.toString=function(){return V},te},utcFormat:function(V){var te=w(V+="",x);return te.toString=function(){return V},te},utcParse:function(V){var te=k(V+="",!0);return te.toString=function(){return V},te}}}var KT={"-":"",_:" ",0:"0"},na=/^\s*\d+/,xre=/^%/,wre=/[\\^$*+?|[\]().{}]/g;function nr(e,t,r){var i=e<0?"-":"",c=(i?-e:e)+"",o=c.length;return i+(o[t.toLowerCase(),r]))}function Tre(e,t,r){var i=na.exec(t.slice(r,r+1));return i?(e.w=+i[0],r+i[0].length):-1}function kre(e,t,r){var i=na.exec(t.slice(r,r+1));return i?(e.u=+i[0],r+i[0].length):-1}function Mre(e,t,r){var i=na.exec(t.slice(r,r+2));return i?(e.U=+i[0],r+i[0].length):-1}function Sre(e,t,r){var i=na.exec(t.slice(r,r+2));return i?(e.V=+i[0],r+i[0].length):-1}function Cre(e,t,r){var i=na.exec(t.slice(r,r+2));return i?(e.W=+i[0],r+i[0].length):-1}function JT(e,t,r){var i=na.exec(t.slice(r,r+4));return i?(e.y=+i[0],r+i[0].length):-1}function QT(e,t,r){var i=na.exec(t.slice(r,r+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),r+i[0].length):-1}function Ore(e,t,r){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),r+i[0].length):-1}function Are(e,t,r){var i=na.exec(t.slice(r,r+1));return i?(e.q=i[0]*3-3,r+i[0].length):-1}function Pre(e,t,r){var i=na.exec(t.slice(r,r+2));return i?(e.m=i[0]-1,r+i[0].length):-1}function ek(e,t,r){var i=na.exec(t.slice(r,r+2));return i?(e.d=+i[0],r+i[0].length):-1}function Dre(e,t,r){var i=na.exec(t.slice(r,r+3));return i?(e.m=0,e.d=+i[0],r+i[0].length):-1}function tk(e,t,r){var i=na.exec(t.slice(r,r+2));return i?(e.H=+i[0],r+i[0].length):-1}function Ere(e,t,r){var i=na.exec(t.slice(r,r+2));return i?(e.M=+i[0],r+i[0].length):-1}function Rre(e,t,r){var i=na.exec(t.slice(r,r+2));return i?(e.S=+i[0],r+i[0].length):-1}function Lre(e,t,r){var i=na.exec(t.slice(r,r+3));return i?(e.L=+i[0],r+i[0].length):-1}function Ire(e,t,r){var i=na.exec(t.slice(r,r+6));return i?(e.L=Math.floor(i[0]/1e3),r+i[0].length):-1}function Fre(e,t,r){var i=xre.exec(t.slice(r,r+1));return i?r+i[0].length:-1}function Nre(e,t,r){var i=na.exec(t.slice(r));return i?(e.Q=+i[0],r+i[0].length):-1}function jre(e,t,r){var i=na.exec(t.slice(r));return i?(e.s=+i[0],r+i[0].length):-1}function nk(e,t){return nr(e.getDate(),t,2)}function $re(e,t){return nr(e.getHours(),t,2)}function Bre(e,t){return nr(e.getHours()%12||12,t,2)}function zre(e,t){return nr(1+gc.count(Oi(e),e),t,3)}function f8(e,t){return nr(e.getMilliseconds(),t,3)}function qre(e,t){return f8(e,t)+"000"}function Wre(e,t){return nr(e.getMonth()+1,t,2)}function Ure(e,t){return nr(e.getMinutes(),t,2)}function Hre(e,t){return nr(e.getSeconds(),t,2)}function Vre(e){var t=e.getDay();return t===0?7:t}function Yre(e,t){return nr(bh.count(Oi(e)-1,e),t,2)}function d8(e){var t=e.getDay();return t>=4||t===0?Rl(e):Rl.ceil(e)}function Gre(e,t){return e=d8(e),nr(Rl.count(Oi(e),e)+(Oi(e).getDay()===4),t,2)}function Xre(e){return e.getDay()}function Zre(e,t){return nr(ad.count(Oi(e)-1,e),t,2)}function Kre(e,t){return nr(e.getFullYear()%100,t,2)}function Jre(e,t){return e=d8(e),nr(e.getFullYear()%100,t,2)}function Qre(e,t){return nr(e.getFullYear()%1e4,t,4)}function eae(e,t){var r=e.getDay();return e=r>=4||r===0?Rl(e):Rl.ceil(e),nr(e.getFullYear()%1e4,t,4)}function tae(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+nr(t/60|0,"0",2)+nr(t%60,"0",2)}function rk(e,t){return nr(e.getUTCDate(),t,2)}function nae(e,t){return nr(e.getUTCHours(),t,2)}function rae(e,t){return nr(e.getUTCHours()%12||12,t,2)}function aae(e,t){return nr(1+mc.count(Ai(e),e),t,3)}function h8(e,t){return nr(e.getUTCMilliseconds(),t,3)}function iae(e,t){return h8(e,t)+"000"}function oae(e,t){return nr(e.getUTCMonth()+1,t,2)}function lae(e,t){return nr(e.getUTCMinutes(),t,2)}function sae(e,t){return nr(e.getUTCSeconds(),t,2)}function uae(e){var t=e.getUTCDay();return t===0?7:t}function cae(e,t){return nr(xh.count(Ai(e)-1,e),t,2)}function p8(e){var t=e.getUTCDay();return t>=4||t===0?Ll(e):Ll.ceil(e)}function fae(e,t){return e=p8(e),nr(Ll.count(Ai(e),e)+(Ai(e).getUTCDay()===4),t,2)}function dae(e){return e.getUTCDay()}function hae(e,t){return nr(id.count(Ai(e)-1,e),t,2)}function pae(e,t){return nr(e.getUTCFullYear()%100,t,2)}function gae(e,t){return e=p8(e),nr(e.getUTCFullYear()%100,t,2)}function mae(e,t){return nr(e.getUTCFullYear()%1e4,t,4)}function vae(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Ll(e):Ll.ceil(e),nr(e.getUTCFullYear()%1e4,t,4)}function yae(){return"+0000"}function ak(){return"%"}function ik(e){return+e}function ok(e){return Math.floor(+e/1e3)}var sl,g8,m8;bae({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function bae(e){return sl=bre(e),g8=sl.format,sl.parse,m8=sl.utcFormat,sl.utcParse,sl}function xae(e){return new Date(e)}function wae(e){return e instanceof Date?+e:+new Date(+e)}function db(e,t,r,i,c,o,a,n,l,f){var s=i8(),u=s.invert,d=s.domain,h=f(".%L"),p=f(":%S"),m=f("%I:%M"),y=f("%I %p"),v=f("%a %d"),g=f("%b %d"),b=f("%B"),x=f("%Y");function _(w){return(l(w)=1?(r=1,t-1):Math.floor(r*t),c=e[i],o=e[i+1],a=i>0?e[i-1]:2*c-o,n=ir&&(o=t.slice(r,o),n[a]?n[a]+=o:n[++a]=o),(i=i[0])===(c=c[0])?n[a]?n[a]+=c:n[++a]=c:(n[++a]=null,l.push({i:a,x:fv(i,c)})),r=Xm.lastIndex;return r-1}var vb=iie;function oie(e,t,r){for(var i=-1,c=e==null?0:e.length;++i=pie&&(o=hie,a=!1,t=new sie(t));e:for(;++cvo)if(!(Math.abs(s*n-l*f)>vo)||!c)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var d=r-o,h=i-a,p=n*n+l*l,m=d*d+h*h,y=Math.sqrt(p),v=Math.sqrt(u),g=c*Math.tan((hv-Math.acos((p+u-m)/(2*y*v)))/2),b=g/v,x=g/y;Math.abs(b-1)>vo&&(this._+="L"+(e+b*f)+","+(t+b*s)),this._+="A"+c+","+c+",0,0,"+ +(s*d>f*h)+","+(this._x1=e+x*n)+","+(this._y1=t+x*l)}},arc:function(e,t,r,i,c,o){e=+e,t=+t,r=+r,o=!!o;var a=r*Math.cos(i),n=r*Math.sin(i),l=e+a,f=t+n,s=1^o,u=o?i-c:c-i;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+l+","+f:(Math.abs(this._x1-l)>vo||Math.abs(this._y1-f)>vo)&&(this._+="L"+l+","+f),r&&(u<0&&(u=u%pv+pv),u>_ie?this._+="A"+r+","+r+",0,1,"+s+","+(e-a)+","+(t-n)+"A"+r+","+r+",0,1,"+s+","+(this._x1=l)+","+(this._y1=f):u>vo&&(this._+="A"+r+","+r+",0,"+ +(u>=hv)+","+s+","+(this._x1=e+r*Math.cos(c))+","+(this._y1=t+r*Math.sin(c))))},rect:function(e,t,r,i){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +r+"v"+ +i+"h"+-r+"Z"},toString:function(){return this._}};function ua(e){return function(){return e}}var sk=1e-12;function O8(e){this._context=e}O8.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function xb(e){return new O8(e)}function A8(e){return e[0]}function P8(e){return e[1]}function D8(){var e=A8,t=P8,r=ua(!0),i=null,c=xb,o=null;function a(n){var l,f=n.length,s,u=!1,d;for(i==null&&(o=c(d=bb())),l=0;l<=f;++l)!(l=d;--h)n.point(g[h],b[h]);n.lineEnd(),n.areaEnd()}y&&(g[u]=+e(m,u,s),b[u]=+r(m,u,s),n.point(t?+t(m,u,s):g[u],i?+i(m,u,s):b[u]))}if(v)return n=null,v+""||null}function f(){return D8().defined(c).curve(a).context(o)}return l.x=function(s){return arguments.length?(e=typeof s=="function"?s:ua(+s),t=null,l):e},l.x0=function(s){return arguments.length?(e=typeof s=="function"?s:ua(+s),l):e},l.x1=function(s){return arguments.length?(t=s==null?null:typeof s=="function"?s:ua(+s),l):t},l.y=function(s){return arguments.length?(r=typeof s=="function"?s:ua(+s),i=null,l):r},l.y0=function(s){return arguments.length?(r=typeof s=="function"?s:ua(+s),l):r},l.y1=function(s){return arguments.length?(i=s==null?null:typeof s=="function"?s:ua(+s),l):i},l.lineX0=l.lineY0=function(){return f().x(e).y(r)},l.lineY1=function(){return f().x(e).y(i)},l.lineX1=function(){return f().x(t).y(r)},l.defined=function(s){return arguments.length?(c=typeof s=="function"?s:ua(!!s),l):c},l.curve=function(s){return arguments.length?(a=s,o!=null&&(n=a(o)),l):a},l.context=function(s){return arguments.length?(s==null?o=n=null:n=a(o=s),l):o},l}var uk=Array.prototype.slice;function eo(){}function ld(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 Gh(e){this._context=e}Gh.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:ld(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ld(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function kie(e){return new Gh(e)}function E8(e){this._context=e}E8.prototype={areaStart:eo,areaEnd:eo,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:ld(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Mie(e){return new E8(e)}function R8(e){this._context=e}R8.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:ld(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Sie(e){return new R8(e)}function L8(e,t){this._basis=new Gh(e),this._beta=t}L8.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 i=e[0],c=t[0],o=e[r]-i,a=t[r]-c,n=-1,l;++n<=r;)l=n/r,this._basis.point(this._beta*e[n]+(1-this._beta)*(i+l*o),this._beta*t[n]+(1-this._beta)*(c+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const Cie=function e(t){function r(i){return t===1?new Gh(i):new L8(i,t)}return r.beta=function(i){return e(+i)},r}(.85);function sd(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 wb(e,t){this._context=e,this._k=(1-t)/6}wb.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:sd(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:sd(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Oie=function e(t){function r(i){return new wb(i,t)}return r.tension=function(i){return e(+i)},r}(0);function _b(e,t){this._context=e,this._k=(1-t)/6}_b.prototype={areaStart:eo,areaEnd:eo,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);break}}},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:sd(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Aie=function e(t){function r(i){return new _b(i,t)}return r.tension=function(i){return e(+i)},r}(0);function Tb(e,t){this._context=e,this._k=(1-t)/6}Tb.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||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:sd(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Pie=function e(t){function r(i){return new Tb(i,t)}return r.tension=function(i){return e(+i)},r}(0);function kb(e,t,r){var i=e._x1,c=e._y1,o=e._x2,a=e._y2;if(e._l01_a>sk){var n=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*n-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,c=(c*n-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>sk){var f=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,s=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*f+e._x1*e._l23_2a-t*e._l12_2a)/s,a=(a*f+e._y1*e._l23_2a-r*e._l12_2a)/s}e._context.bezierCurveTo(i,c,o,a,e._x2,e._y2)}function I8(e,t){this._context=e,this._alpha=t}I8.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);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,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:kb(this,e,t);break}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}};const Die=function e(t){function r(i){return t?new I8(i,t):new wb(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function F8(e,t){this._context=e,this._alpha=t}F8.prototype={areaStart:eo,areaEnd:eo,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);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,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:kb(this,e,t);break}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}};const Eie=function e(t){function r(i){return t?new F8(i,t):new _b(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function N8(e,t){this._context=e,this._alpha=t}N8.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||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,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:kb(this,e,t);break}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}};const Rie=function e(t){function r(i){return t?new N8(i,t):new Tb(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function j8(e){this._context=e}j8.prototype={areaStart:eo,areaEnd:eo,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Lie(e){return new j8(e)}function ck(e){return e<0?-1:1}function fk(e,t,r){var i=e._x1-e._x0,c=t-e._x1,o=(e._y1-e._y0)/(i||c<0&&-0),a=(r-e._y1)/(c||i<0&&-0),n=(o*c+a*i)/(i+c);return(ck(o)+ck(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(n))||0}function dk(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Zm(e,t,r){var i=e._x0,c=e._y0,o=e._x1,a=e._y1,n=(o-i)/3;e._context.bezierCurveTo(i+n,c+n*t,o-n,a-n*r,o,a)}function ud(e){this._context=e}ud.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:Zm(this,this._t0,dk(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Zm(this,dk(this,r=fk(this,e,t)),r);break;default:Zm(this,this._t0,r=fk(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function $8(e){this._context=new B8(e)}($8.prototype=Object.create(ud.prototype)).point=function(e,t){ud.prototype.point.call(this,t,e)};function B8(e){this._context=e}B8.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,i,c,o){this._context.bezierCurveTo(t,e,i,r,o,c)}};function Iie(e){return new ud(e)}function Fie(e){return new $8(e)}function z8(e){this._context=e}z8.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var i=hk(e),c=hk(t),o=0,a=1;a=0;--t)c[t]=(a[t]-c[t+1])/o[t];for(o[r-1]=(e[r]+c[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function jie(e){return new Xh(e,.5)}function $ie(e){return new Xh(e,0)}function Bie(e){return new Xh(e,1)}function Il(e,t){if((a=e.length)>1)for(var r=1,i,c,o=e[t[0]],a,n=o.length;r=0;)r[t]=t;return r}function zie(e,t){return e[t]}function q8(){var e=ua([]),t=Fl,r=Il,i=zie;function c(o){var a=e.apply(this,arguments),n,l=o.length,f=a.length,s=new Array(f),u;for(n=0;n0){for(var r,i,c=0,o=e[0].length,a;c0)for(var r,i=0,c,o,a,n,l,f=e[t[0]].length;i0?(c[0]=a,c[1]=a+=o):o<0?(c[1]=n,c[0]=n+=o):(c[0]=0,c[1]=o)}function Wie(e,t){if((c=e.length)>0){for(var r=0,i=e[t[0]],c,o=i.length;r0)||!((o=(c=e[t[0]]).length)>0))){for(var r=0,i=1,c,o,a;io&&(o=c,r=t);return r}function W8(e){var t=e.map(U8);return Fl(e).sort(function(r,i){return t[r]-t[i]})}function U8(e){for(var t=0,r=-1,i=e.length,c;++rg&&(g=f),w=y*y*_,b=Math.max(g/w,w/v),b>x){y-=f;break}x=b}a.push(l={value:y,dice:h1?i:1)},r}(H8);function Kie(e,t,r,i,c){var o=e.children,a,n=o.length,l,f=new Array(n+1);for(f[0]=l=a=0;a=d-1){var g=o[u];g.x0=p,g.y0=m,g.x1=y,g.y1=v;return}for(var b=f[u],x=h/2+b,_=u+1,w=d-1;_>>1;f[k]v-m){var S=(p*M+y*T)/h;s(u,_,T,p,m,S,v),s(_,d,M,S,m,y,v)}else{var C=(m*M+v*T)/h;s(u,_,T,p,m,y,C),s(_,d,M,p,C,y,v)}}}function Jie(e,t,r,i,c){(e.depth&1?Kh:Zh)(e,t,r,i,c)}const Qie=function e(t){function r(i,c,o,a,n){if((l=i._squarify)&&l.ratio===t)for(var l,f,s,u,d=-1,h,p=l.length,m=i.value;++d1?i:1)},r}(H8);var Km=new Date,Jm=new Date;function ra(e,t,r,i){function c(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return c.floor=function(o){return e(o=new Date(+o)),o},c.ceil=function(o){return e(o=new Date(o-1)),t(o,1),e(o),o},c.round=function(o){var a=c(o),n=c.ceil(o);return o-a0))return l;do l.push(f=new Date(+o)),t(o,n),e(o);while(f=a)for(;e(a),!o(a);)a.setTime(a-1)},function(a,n){if(a>=a)if(n<0)for(;++n<=0;)for(;t(a,-1),!o(a););else for(;--n>=0;)for(;t(a,1),!o(a););})},r&&(c.count=function(o,a){return Km.setTime(+o),Jm.setTime(+a),e(Km),e(Jm),Math.floor(r(Km,Jm))},c.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?c.filter(i?function(a){return i(a)%o===0}:function(a){return c.count(0,a)%o===0}):c}),c}var Vu=ra(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Vu.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ra(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):Vu};Vu.range;var cd=1e3,Lo=6e4,fd=36e5,Y8=864e5,G8=6048e5,mv=ra(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*cd)},function(e,t){return(t-e)/cd},function(e){return e.getUTCSeconds()});mv.range;var X8=ra(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*cd)},function(e,t){e.setTime(+e+t*Lo)},function(e,t){return(t-e)/Lo},function(e){return e.getMinutes()});X8.range;var Z8=ra(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*cd-e.getMinutes()*Lo)},function(e,t){e.setTime(+e+t*fd)},function(e,t){return(t-e)/fd},function(e){return e.getHours()});Z8.range;var Jh=ra(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Lo)/Y8},function(e){return e.getDate()-1});Jh.range;function Zo(e){return ra(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,r){t.setDate(t.getDate()+r*7)},function(t,r){return(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Lo)/G8})}var dd=Zo(0),Yu=Zo(1),K8=Zo(2),J8=Zo(3),Io=Zo(4),Q8=Zo(5),e7=Zo(6);dd.range;Yu.range;K8.range;J8.range;Io.range;Q8.range;e7.range;var t7=ra(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});t7.range;var to=ra(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});to.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ra(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)})};to.range;var n7=ra(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Lo)},function(e,t){return(t-e)/Lo},function(e){return e.getUTCMinutes()});n7.range;var r7=ra(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*fd)},function(e,t){return(t-e)/fd},function(e){return e.getUTCHours()});r7.range;var Qh=ra(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/Y8},function(e){return e.getUTCDate()-1});Qh.range;function Ko(e){return ra(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCDate(t.getUTCDate()+r*7)},function(t,r){return(r-t)/G8})}var hd=Ko(0),Gu=Ko(1),a7=Ko(2),i7=Ko(3),Fo=Ko(4),o7=Ko(5),l7=Ko(6);hd.range;Gu.range;a7.range;i7.range;Fo.range;o7.range;l7.range;var s7=ra(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});s7.range;var no=ra(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});no.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ra(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})};no.range;function Qm(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 e0(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 iu(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function eoe(e){var t=e.dateTime,r=e.date,i=e.time,c=e.periods,o=e.days,a=e.shortDays,n=e.months,l=e.shortMonths,f=ou(c),s=lu(c),u=ou(o),d=lu(o),h=ou(a),p=lu(a),m=ou(n),y=lu(n),v=ou(l),g=lu(l),b={a:A,A:z,b:B,B:$,c:null,d:bk,e:bk,f:Toe,g:Roe,G:Ioe,H:xoe,I:woe,j:_oe,L:u7,m:koe,M:Moe,p:j,q:N,Q:_k,s:Tk,S:Soe,u:Coe,U:Ooe,V:Aoe,w:Poe,W:Doe,x:null,X:null,y:Eoe,Y:Loe,Z:Foe,"%":wk},x={a:E,A:W,b:G,B:L,c:null,d:xk,e:xk,f:Boe,g:Zoe,G:Joe,H:Noe,I:joe,j:$oe,L:f7,m:zoe,M:qoe,p:q,q:H,Q:_k,s:Tk,S:Woe,u:Uoe,U:Hoe,V:Voe,w:Yoe,W:Goe,x:null,X:null,y:Xoe,Y:Koe,Z:Qoe,"%":wk},_={a:S,A:C,b:P,B:D,c:O,d:vk,e:vk,f:moe,g:mk,G:gk,H:yk,I:yk,j:doe,L:goe,m:foe,M:hoe,p:M,q:coe,Q:yoe,s:boe,S:poe,u:ioe,U:ooe,V:loe,w:aoe,W:soe,x:R,X:F,y:mk,Y:gk,Z:uoe,"%":voe};b.x=w(r,b),b.X=w(i,b),b.c=w(t,b),x.x=w(r,x),x.X=w(i,x),x.c=w(t,x);function w(V,te){return function(ee){var U=[],Q=-1,Y=0,Z=V.length,X,re,ie;for(ee instanceof Date||(ee=new Date(+ee));++Q53)return null;"w"in U||(U.w=1),"Z"in U?(Y=e0(iu(U.y,0,1)),Z=Y.getUTCDay(),Y=Z>4||Z===0?Gu.ceil(Y):Gu(Y),Y=Qh.offset(Y,(U.V-1)*7),U.y=Y.getUTCFullYear(),U.m=Y.getUTCMonth(),U.d=Y.getUTCDate()+(U.w+6)%7):(Y=Qm(iu(U.y,0,1)),Z=Y.getDay(),Y=Z>4||Z===0?Yu.ceil(Y):Yu(Y),Y=Jh.offset(Y,(U.V-1)*7),U.y=Y.getFullYear(),U.m=Y.getMonth(),U.d=Y.getDate()+(U.w+6)%7)}else("W"in U||"U"in U)&&("w"in U||(U.w="u"in U?U.u%7:"W"in U?1:0),Z="Z"in U?e0(iu(U.y,0,1)).getUTCDay():Qm(iu(U.y,0,1)).getDay(),U.m=0,U.d="W"in U?(U.w+6)%7+U.W*7-(Z+5)%7:U.w+U.U*7-(Z+6)%7);return"Z"in U?(U.H+=U.Z/100|0,U.M+=U.Z%100,e0(U)):Qm(U)}}function T(V,te,ee,U){for(var Q=0,Y=te.length,Z=ee.length,X,re;Q=Z)return-1;if(X=te.charCodeAt(Q++),X===37){if(X=te.charAt(Q++),re=_[X in pk?te.charAt(Q++):X],!re||(U=re(V,ee,U))<0)return-1}else if(X!=ee.charCodeAt(U++))return-1}return U}function M(V,te,ee){var U=f.exec(te.slice(ee));return U?(V.p=s[U[0].toLowerCase()],ee+U[0].length):-1}function S(V,te,ee){var U=h.exec(te.slice(ee));return U?(V.w=p[U[0].toLowerCase()],ee+U[0].length):-1}function C(V,te,ee){var U=u.exec(te.slice(ee));return U?(V.w=d[U[0].toLowerCase()],ee+U[0].length):-1}function P(V,te,ee){var U=v.exec(te.slice(ee));return U?(V.m=g[U[0].toLowerCase()],ee+U[0].length):-1}function D(V,te,ee){var U=m.exec(te.slice(ee));return U?(V.m=y[U[0].toLowerCase()],ee+U[0].length):-1}function O(V,te,ee){return T(V,t,te,ee)}function R(V,te,ee){return T(V,r,te,ee)}function F(V,te,ee){return T(V,i,te,ee)}function A(V){return a[V.getDay()]}function z(V){return o[V.getDay()]}function B(V){return l[V.getMonth()]}function $(V){return n[V.getMonth()]}function j(V){return c[+(V.getHours()>=12)]}function N(V){return 1+~~(V.getMonth()/3)}function E(V){return a[V.getUTCDay()]}function W(V){return o[V.getUTCDay()]}function G(V){return l[V.getUTCMonth()]}function L(V){return n[V.getUTCMonth()]}function q(V){return c[+(V.getUTCHours()>=12)]}function H(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var te=w(V+="",b);return te.toString=function(){return V},te},parse:function(V){var te=k(V+="",!1);return te.toString=function(){return V},te},utcFormat:function(V){var te=w(V+="",x);return te.toString=function(){return V},te},utcParse:function(V){var te=k(V+="",!0);return te.toString=function(){return V},te}}}var pk={"-":"",_:" ",0:"0"},aa=/^\s*\d+/,toe=/^%/,noe=/[\\^$*+?|[\]().{}]/g;function rr(e,t,r){var i=e<0?"-":"",c=(i?-e:e)+"",o=c.length;return i+(o68?1900:2e3),r+i[0].length):-1}function uoe(e,t,r){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),r+i[0].length):-1}function coe(e,t,r){var i=aa.exec(t.slice(r,r+1));return i?(e.q=i[0]*3-3,r+i[0].length):-1}function foe(e,t,r){var i=aa.exec(t.slice(r,r+2));return i?(e.m=i[0]-1,r+i[0].length):-1}function vk(e,t,r){var i=aa.exec(t.slice(r,r+2));return i?(e.d=+i[0],r+i[0].length):-1}function doe(e,t,r){var i=aa.exec(t.slice(r,r+3));return i?(e.m=0,e.d=+i[0],r+i[0].length):-1}function yk(e,t,r){var i=aa.exec(t.slice(r,r+2));return i?(e.H=+i[0],r+i[0].length):-1}function hoe(e,t,r){var i=aa.exec(t.slice(r,r+2));return i?(e.M=+i[0],r+i[0].length):-1}function poe(e,t,r){var i=aa.exec(t.slice(r,r+2));return i?(e.S=+i[0],r+i[0].length):-1}function goe(e,t,r){var i=aa.exec(t.slice(r,r+3));return i?(e.L=+i[0],r+i[0].length):-1}function moe(e,t,r){var i=aa.exec(t.slice(r,r+6));return i?(e.L=Math.floor(i[0]/1e3),r+i[0].length):-1}function voe(e,t,r){var i=toe.exec(t.slice(r,r+1));return i?r+i[0].length:-1}function yoe(e,t,r){var i=aa.exec(t.slice(r));return i?(e.Q=+i[0],r+i[0].length):-1}function boe(e,t,r){var i=aa.exec(t.slice(r));return i?(e.s=+i[0],r+i[0].length):-1}function bk(e,t){return rr(e.getDate(),t,2)}function xoe(e,t){return rr(e.getHours(),t,2)}function woe(e,t){return rr(e.getHours()%12||12,t,2)}function _oe(e,t){return rr(1+Jh.count(to(e),e),t,3)}function u7(e,t){return rr(e.getMilliseconds(),t,3)}function Toe(e,t){return u7(e,t)+"000"}function koe(e,t){return rr(e.getMonth()+1,t,2)}function Moe(e,t){return rr(e.getMinutes(),t,2)}function Soe(e,t){return rr(e.getSeconds(),t,2)}function Coe(e){var t=e.getDay();return t===0?7:t}function Ooe(e,t){return rr(dd.count(to(e)-1,e),t,2)}function c7(e){var t=e.getDay();return t>=4||t===0?Io(e):Io.ceil(e)}function Aoe(e,t){return e=c7(e),rr(Io.count(to(e),e)+(to(e).getDay()===4),t,2)}function Poe(e){return e.getDay()}function Doe(e,t){return rr(Yu.count(to(e)-1,e),t,2)}function Eoe(e,t){return rr(e.getFullYear()%100,t,2)}function Roe(e,t){return e=c7(e),rr(e.getFullYear()%100,t,2)}function Loe(e,t){return rr(e.getFullYear()%1e4,t,4)}function Ioe(e,t){var r=e.getDay();return e=r>=4||r===0?Io(e):Io.ceil(e),rr(e.getFullYear()%1e4,t,4)}function Foe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+rr(t/60|0,"0",2)+rr(t%60,"0",2)}function xk(e,t){return rr(e.getUTCDate(),t,2)}function Noe(e,t){return rr(e.getUTCHours(),t,2)}function joe(e,t){return rr(e.getUTCHours()%12||12,t,2)}function $oe(e,t){return rr(1+Qh.count(no(e),e),t,3)}function f7(e,t){return rr(e.getUTCMilliseconds(),t,3)}function Boe(e,t){return f7(e,t)+"000"}function zoe(e,t){return rr(e.getUTCMonth()+1,t,2)}function qoe(e,t){return rr(e.getUTCMinutes(),t,2)}function Woe(e,t){return rr(e.getUTCSeconds(),t,2)}function Uoe(e){var t=e.getUTCDay();return t===0?7:t}function Hoe(e,t){return rr(hd.count(no(e)-1,e),t,2)}function d7(e){var t=e.getUTCDay();return t>=4||t===0?Fo(e):Fo.ceil(e)}function Voe(e,t){return e=d7(e),rr(Fo.count(no(e),e)+(no(e).getUTCDay()===4),t,2)}function Yoe(e){return e.getUTCDay()}function Goe(e,t){return rr(Gu.count(no(e)-1,e),t,2)}function Xoe(e,t){return rr(e.getUTCFullYear()%100,t,2)}function Zoe(e,t){return e=d7(e),rr(e.getUTCFullYear()%100,t,2)}function Koe(e,t){return rr(e.getUTCFullYear()%1e4,t,4)}function Joe(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Fo(e):Fo.ceil(e),rr(e.getUTCFullYear()%1e4,t,4)}function Qoe(){return"+0000"}function wk(){return"%"}function _k(e){return+e}function Tk(e){return Math.floor(+e/1e3)}var ul,Sb,h7,p7;ele({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function ele(e){return ul=eoe(e),Sb=ul.format,h7=ul.parse,ul.utcFormat,p7=ul.utcParse,ul}var su={},uu={},kk;function tle(){if(kk)return uu;kk=1,uu.__esModule=!0,uu.default=void 0;var e=function(i){if(typeof i=="string")return i;if(i)return i.displayName||i.name||"Component"},t=e;return uu.default=t,uu}var Mk;function os(){if(Mk)return su;Mk=1;var e=Rn;su.__esModule=!0,su.default=void 0;var t=e(tle()),r=function(o,a){return a+"("+(0,t.default)(o)+")"},i=r;return su.default=i,su}var Fi={},cu={},Sk;function g7(){if(Sk)return cu;Sk=1,cu.__esModule=!0,cu.default=void 0;var e=function(i,c){return function(o){return o[i]=c,o}},t=e;return cu.default=t,cu}var nle=Rn;Fi.__esModule=!0;var Cb=Fi.default=void 0,rle=nle(g7()),ale=function(t){return(0,rle.default)("displayName",t)},ile=ale;Cb=Fi.default=ile;var fu={},Ck;function ole(){if(Ck)return fu;Ck=1;var e=Rn;fu.__esModule=!0,fu.default=void 0;var t=$e;e(Fi),e(os());var r=function(o){return function(a){var n=(0,t.createFactory)(a),l=function(s){return n(o(s))};return l}},i=r;return fu.default=i,fu}var ep=Rn;ep(hr());ep(os());ep(Fi);ep(ole());function lle(e,t){for(var r=-1,i=e==null?0:e.length;++rn))return!1;var f=o.get(e),s=o.get(t);if(f&&s)return f==t&&s==e;var u=-1,d=!0,h=r&hle?new ule:void 0;for(o.set(e,t),o.set(t,e);++u{const e=document.querySelector("head");return e||un(),e},m3=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function dH(e,t){const r=Xn(()=>cH(e),[e]),i=$e.useRef(null),u=$e.useRef(null),o=Sn(Qr(c=>{const d=u.current;d||un(),d.textContent=c}),[]),a=Sn(c=>{const d=i.current;d||un(),d.textContent=c},[]);Fa(()=>{!i.current&&!u.current||un();const c=m3(t),d=m3(t);return i.current=c,u.current=d,c.setAttribute(`${Ol}-always`,e),d.setAttribute(`${Ol}-dynamic`,e),Mm().appendChild(c),Mm().appendChild(d),a(r.always),o(r.resting),()=>{const h=p=>{const m=p.current;m||un(),Mm().removeChild(m),p.current=null};h(i),h(u)}},[t,a,o,r.always,r.resting,e]);const n=Sn(()=>o(r.dragging),[o,r.dragging]),l=Sn(c=>{if(c==="DROP"){o(r.dropAnimating);return}o(r.userCancel)},[o,r.dropAnimating,r.userCancel]),f=Sn(()=>{u.current&&o(r.resting)},[o,r.resting]);return Xn(()=>({dragging:n,dropping:l,resting:f}),[n,l,f])}function H6(e,t){return Array.from(e.querySelectorAll(t))}var V6=e=>{var t;return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)||window};function Xd(e){return e instanceof V6(e).HTMLElement}function hH(e,t){const r=`[${Al.contextId}="${e}"]`,i=H6(document,r);if(!i.length)return null;const u=i.find(o=>o.getAttribute(Al.draggableId)===t);return!u||!Xd(u)?null:u}function pH(e){const t=$e.useRef({}),r=$e.useRef(null),i=$e.useRef(null),u=$e.useRef(!1),o=Sn(function(d,h){const p={id:d,focus:h};return t.current[d]=p,function(){const y=t.current;y[d]!==p&&delete y[d]}},[]),a=Sn(function(d){const h=hH(e,d);h&&h!==document.activeElement&&h.focus()},[e]),n=Sn(function(d,h){r.current===d&&(r.current=h)},[]),l=Sn(function(){i.current||u.current&&(i.current=requestAnimationFrame(()=>{i.current=null;const d=r.current;d&&a(d)}))},[a]),f=Sn(function(d){r.current=null;const h=document.activeElement;h&&h.getAttribute(Al.draggableId)===d&&(r.current=d)},[]);return Fa(()=>(u.current=!0,function(){u.current=!1;const d=i.current;d&&cancelAnimationFrame(d)}),[]),Xn(()=>({register:o,tryRecordFocus:f,tryRestoreFocusRecorded:l,tryShiftRecord:n}),[o,f,l,n])}function gH(){const e={draggables:{},droppables:{}},t=[];function r(c){return t.push(c),function(){const h=t.indexOf(c);h!==-1&&t.splice(h,1)}}function i(c){t.length&&t.forEach(d=>d(c))}function u(c){return e.draggables[c]||null}function o(c){const d=u(c);return d||un(),d}const a={register:c=>{e.draggables[c.descriptor.id]=c,i({type:"ADDITION",value:c})},update:(c,d)=>{const h=e.draggables[d.descriptor.id];h&&h.uniqueId===c.uniqueId&&(delete e.draggables[d.descriptor.id],e.draggables[c.descriptor.id]=c)},unregister:c=>{const d=c.descriptor.id,h=u(d);h&&c.uniqueId===h.uniqueId&&(delete e.draggables[d],e.droppables[c.descriptor.droppableId]&&i({type:"REMOVAL",value:c}))},getById:o,findById:u,exists:c=>!!u(c),getAllByType:c=>Object.values(e.draggables).filter(d=>d.descriptor.type===c)};function n(c){return e.droppables[c]||null}function l(c){const d=n(c);return d||un(),d}const f={register:c=>{e.droppables[c.descriptor.id]=c},unregister:c=>{const d=n(c.descriptor.id);d&&c.uniqueId===d.uniqueId&&delete e.droppables[c.descriptor.id]},getById:l,findById:n,exists:c=>!!n(c),getAllByType:c=>Object.values(e.droppables).filter(d=>d.descriptor.type===c)};function s(){e.draggables={},e.droppables={},t.length=0}return{draggable:a,droppable:f,subscribe:r,clean:s}}function mH(){const e=Xn(gH,[]);return $e.useEffect(()=>function(){et.version.startsWith("16")||et.version.startsWith("17")?requestAnimationFrame(e.clean):e.clean()},[e]),e}var _1=et.createContext(null),Hf=()=>{const e=document.body;return e||un(),e};const vH={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};var yH=vH;const bH=e=>`rfd-announcement-${e}`;function xH(e){const t=Xn(()=>bH(e),[e]),r=$e.useRef(null);return $e.useEffect(function(){const o=document.createElement("div");return r.current=o,o.id=t,o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true"),Gt(o.style,yH),Hf().appendChild(o),function(){setTimeout(function(){const l=Hf();l.contains(o)&&l.removeChild(o),o===r.current&&(r.current=null)})}},[t]),Sn(u=>{const o=r.current;if(o){o.textContent=u;return}},[])}let Y6=0;const G6={separator:"::"};function wH(){Y6=0}function _H(e,t){return t===void 0&&(t=G6),Xn(()=>`${e}${t.separator}${Y6++}`,[t.separator,e])}function TH(e,t){t===void 0&&(t=G6);const r=et.useId();return Xn(()=>`${e}${t.separator}${r}`,[t.separator,e,r])}var T1="useId"in et?TH:_H;function kH(e){let{contextId:t,uniqueId:r}=e;return`rfd-hidden-text-${t}-${r}`}function MH(e){let{contextId:t,text:r}=e;const i=T1("hidden-text",{separator:"-"}),u=Xn(()=>kH({contextId:t,uniqueId:i}),[i,t]);return $e.useEffect(function(){const a=document.createElement("div");return a.id=u,a.textContent=r,a.style.display="none",Hf().appendChild(a),function(){const l=Hf();l.contains(a)&&l.removeChild(a)}},[u,r]),u}var Zd=et.createContext(null);function X6(e){const t=$e.useRef(e);return $e.useEffect(()=>{t.current=e}),t}function SH(){let e=null;function t(){return!!e}function r(a){return a===e}function i(a){e&&un();const n={abandon:a};return e=n,n}function u(){e||un(),e=null}function o(){e&&(e.abandon(),u())}return{isClaimed:t,isActive:r,claim:i,release:u,tryAbandon:o}}function ju(e){return e.phase==="IDLE"||e.phase==="DROP_ANIMATING"?!1:e.isDragging}const CH=9,OH=13,k1=27,Z6=32,AH=33,PH=34,DH=35,EH=36,RH=37,LH=38,IH=39,FH=40,NH={[OH]:!0,[CH]:!0};var K6=e=>{NH[e.keyCode]&&e.preventDefault()};const jH=(()=>{const e="visibilitychange";return typeof document>"u"?e:[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find(i=>`on${i}`in document)||e})();var Kd=jH;const J6=0,v3=5;function $H(e,t){return Math.abs(t.x-e.x)>=v3||Math.abs(t.y-e.y)>=v3}const y3={type:"IDLE"};function BH(e){let{cancel:t,completed:r,getPhase:i,setPhase:u}=e;return[{eventName:"mousemove",fn:o=>{const{button:a,clientX:n,clientY:l}=o;if(a!==J6)return;const f={x:n,y:l},s=i();if(s.type==="DRAGGING"){o.preventDefault(),s.actions.move(f);return}s.type!=="PENDING"&&un();const c=s.point;if(!$H(c,f))return;o.preventDefault();const d=s.actions.fluidLift(f);u({type:"DRAGGING",actions:d})}},{eventName:"mouseup",fn:o=>{const a=i();if(a.type!=="DRAGGING"){t();return}o.preventDefault(),a.actions.drop({shouldBlockNextClick:!0}),r()}},{eventName:"mousedown",fn:o=>{i().type==="DRAGGING"&&o.preventDefault(),t()}},{eventName:"keydown",fn:o=>{if(i().type==="PENDING"){t();return}if(o.keyCode===k1){o.preventDefault(),t();return}K6(o)}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{i().type==="PENDING"&&t()}},{eventName:"webkitmouseforcedown",fn:o=>{const a=i();if(a.type==="IDLE"&&un(),a.actions.shouldRespectForcePress()){t();return}o.preventDefault()}},{eventName:Kd,fn:t}]}function Q6(e){const t=$e.useRef(y3),r=$e.useRef(Xi),i=Xn(()=>({eventName:"mousedown",fn:function(c){if(c.defaultPrevented||c.button!==J6||c.ctrlKey||c.metaKey||c.shiftKey||c.altKey)return;const d=e.findClosestDraggableId(c);if(!d)return;const h=e.tryGetLock(d,a,{sourceEvent:c});if(!h)return;c.preventDefault();const p={x:c.clientX,y:c.clientY};r.current(),f(h,p)}}),[e]),u=Xn(()=>({eventName:"webkitmouseforcewillbegin",fn:s=>{if(s.defaultPrevented)return;const c=e.findClosestDraggableId(s);if(!c)return;const d=e.findOptionsForDraggable(c);d&&(d.shouldRespectForcePress||e.canGetLock(c)&&s.preventDefault())}}),[e]),o=Sn(function(){const c={passive:!1,capture:!0};r.current=Wa(window,[u,i],c)},[u,i]),a=Sn(()=>{t.current.type!=="IDLE"&&(t.current=y3,r.current(),o())},[o]),n=Sn(()=>{const s=t.current;a(),s.type==="DRAGGING"&&s.actions.cancel({shouldBlockNextClick:!0}),s.type==="PENDING"&&s.actions.abort()},[a]),l=Sn(function(){const c={capture:!0,passive:!1},d=BH({cancel:n,completed:a,getPhase:()=>t.current,setPhase:h=>{t.current=h}});r.current=Wa(window,d,c)},[n,a]),f=Sn(function(c,d){t.current.type!=="IDLE"&&un(),t.current={type:"PENDING",point:d,actions:c},l()},[l]);Fa(function(){return o(),function(){r.current()}},[o])}function zH(){}const qH={[PH]:!0,[AH]:!0,[EH]:!0,[DH]:!0};function WH(e,t){function r(){t(),e.cancel()}function i(){t(),e.drop()}return[{eventName:"keydown",fn:u=>{if(u.keyCode===k1){u.preventDefault(),r();return}if(u.keyCode===Z6){u.preventDefault(),i();return}if(u.keyCode===FH){u.preventDefault(),e.moveDown();return}if(u.keyCode===LH){u.preventDefault(),e.moveUp();return}if(u.keyCode===IH){u.preventDefault(),e.moveRight();return}if(u.keyCode===RH){u.preventDefault(),e.moveLeft();return}if(qH[u.keyCode]){u.preventDefault();return}K6(u)}},{eventName:"mousedown",fn:r},{eventName:"mouseup",fn:r},{eventName:"click",fn:r},{eventName:"touchstart",fn:r},{eventName:"resize",fn:r},{eventName:"wheel",fn:r,options:{passive:!0}},{eventName:Kd,fn:r}]}function eC(e){const t=$e.useRef(zH),r=Xn(()=>({eventName:"keydown",fn:function(o){if(o.defaultPrevented||o.keyCode!==Z6)return;const a=e.findClosestDraggableId(o);if(!a)return;const n=e.tryGetLock(a,s,{sourceEvent:o});if(!n)return;o.preventDefault();let l=!0;const f=n.snapLift();t.current();function s(){l||un(),l=!1,t.current(),i()}t.current=Wa(window,WH(f,s),{capture:!0,passive:!1})}}),[e]),i=Sn(function(){const o={passive:!1,capture:!0};t.current=Wa(window,[r],o)},[r]);Fa(function(){return i(),function(){t.current()}},[i])}const Sm={type:"IDLE"},UH=120,HH=.15;function VH(e){let{cancel:t,getPhase:r}=e;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:i=>{i.preventDefault()}},{eventName:"keydown",fn:i=>{if(r().type!=="DRAGGING"){t();return}i.keyCode===k1&&i.preventDefault(),t()}},{eventName:Kd,fn:t}]}function YH(e){let{cancel:t,completed:r,getPhase:i}=e;return[{eventName:"touchmove",options:{capture:!1},fn:u=>{const o=i();if(o.type!=="DRAGGING"){t();return}o.hasMoved=!0;const{clientX:a,clientY:n}=u.touches[0],l={x:a,y:n};u.preventDefault(),o.actions.move(l)}},{eventName:"touchend",fn:u=>{const o=i();if(o.type!=="DRAGGING"){t();return}u.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),r()}},{eventName:"touchcancel",fn:u=>{if(i().type!=="DRAGGING"){t();return}u.preventDefault(),t()}},{eventName:"touchforcechange",fn:u=>{const o=i();o.type==="IDLE"&&un();const a=u.touches[0];if(!a||!(a.force>=HH))return;const l=o.actions.shouldRespectForcePress();if(o.type==="PENDING"){l&&t();return}if(l){if(o.hasMoved){u.preventDefault();return}t();return}u.preventDefault()}},{eventName:Kd,fn:t}]}function tC(e){const t=$e.useRef(Sm),r=$e.useRef(Xi),i=Sn(function(){return t.current},[]),u=Sn(function(h){t.current=h},[]),o=Xn(()=>({eventName:"touchstart",fn:function(h){if(h.defaultPrevented)return;const p=e.findClosestDraggableId(h);if(!p)return;const m=e.tryGetLock(p,n,{sourceEvent:h});if(!m)return;const y=h.touches[0],{clientX:v,clientY:g}=y,b={x:v,y:g};r.current(),c(m,b)}}),[e]),a=Sn(function(){const h={capture:!0,passive:!1};r.current=Wa(window,[o],h)},[o]),n=Sn(()=>{const d=t.current;d.type!=="IDLE"&&(d.type==="PENDING"&&clearTimeout(d.longPressTimerId),u(Sm),r.current(),a())},[a,u]),l=Sn(()=>{const d=t.current;n(),d.type==="DRAGGING"&&d.actions.cancel({shouldBlockNextClick:!0}),d.type==="PENDING"&&d.actions.abort()},[n]),f=Sn(function(){const h={capture:!0,passive:!1},p={cancel:l,completed:n,getPhase:i},m=Wa(window,YH(p),h),y=Wa(window,VH(p),h);r.current=function(){m(),y()}},[l,i,n]),s=Sn(function(){const h=i();h.type!=="PENDING"&&un();const p=h.actions.fluidLift(h.point);u({type:"DRAGGING",actions:p,hasMoved:!1})},[i,u]),c=Sn(function(h,p){i().type!=="IDLE"&&un();const m=setTimeout(s,UH);u({type:"PENDING",point:p,actions:h,longPressTimerId:m}),f()},[f,i,u,s]);Fa(function(){return a(),function(){r.current();const p=i();p.type==="PENDING"&&(clearTimeout(p.longPressTimerId),u(Sm))}},[i,a,u]),Fa(function(){return Wa(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}const GH=["input","button","textarea","select","option","optgroup","video","audio"];function nC(e,t){if(t==null)return!1;if(GH.includes(t.tagName.toLowerCase()))return!0;const i=t.getAttribute("contenteditable");return i==="true"||i===""?!0:t===e?!1:nC(e,t.parentElement)}function XH(e,t){const r=t.target;return Xd(r)?nC(e,r):!1}var ZH=e=>Qa(e.getBoundingClientRect()).center;function KH(e){return e instanceof V6(e).Element}const JH=(()=>{const e="matches";return typeof document>"u"?e:[e,"msMatchesSelector","webkitMatchesSelector"].find(i=>i in Element.prototype)||e})();function rC(e,t){return e==null?null:e[JH](t)?e:rC(e.parentElement,t)}function QH(e,t){return e.closest?e.closest(t):rC(e,t)}function eV(e){return`[${Al.contextId}="${e}"]`}function tV(e,t){const r=t.target;if(!KH(r))return null;const i=eV(e),u=QH(r,i);return!u||!Xd(u)?null:u}function nV(e,t){const r=tV(e,t);return r?r.getAttribute(Al.draggableId):null}function rV(e,t){const r=`[${W0.contextId}="${e}"]`,u=H6(document,r).find(o=>o.getAttribute(W0.id)===t);return!u||!Xd(u)?null:u}function aV(e){e.preventDefault()}function Zc(e){let{expected:t,phase:r,isLockActive:i,shouldWarn:u}=e;return!(!i()||t!==r)}function aC(e){let{lockAPI:t,store:r,registry:i,draggableId:u}=e;if(t.isClaimed())return!1;const o=i.draggable.findById(u);return!(!o||!o.options.isEnabled||!z6(r.getState(),u))}function iV(e){let{lockAPI:t,contextId:r,store:i,registry:u,draggableId:o,forceSensorStop:a,sourceEvent:n}=e;if(!aC({lockAPI:t,store:i,registry:u,draggableId:o}))return null;const f=u.draggable.getById(o),s=rV(r,f.descriptor.id);if(!s||n&&!f.options.canDragInteractiveElements&&XH(s,n))return null;const c=t.claim(a||Xi);let d="PRE_DRAG";function h(){return f.options.shouldRespectForcePress}function p(){return t.isActive(c)}function m(w,k){Zc({expected:w,phase:d,isLockActive:p,shouldWarn:!0})&&i.dispatch(k())}const y=m.bind(null,"DRAGGING");function v(w){function k(){t.release(),d="COMPLETED"}d!=="PRE_DRAG"&&(k(),un()),i.dispatch(VW(w.liftActionArgs)),d="DRAGGING";function T(M,S){if(S===void 0&&(S={shouldBlockNextClick:!1}),w.cleanup(),S.shouldBlockNextClick){const C=Wa(window,[{eventName:"click",fn:aV,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(C)}k(),i.dispatch(R6({reason:M}))}return{isActive:()=>Zc({expected:"DRAGGING",phase:d,isLockActive:p,shouldWarn:!1}),shouldRespectForcePress:h,drop:M=>T("DROP",M),cancel:M=>T("CANCEL",M),...w.actions}}function g(w){const k=Eu(M=>{y(()=>E6({client:M}))});return{...v({liftActionArgs:{id:o,clientSelection:w,movementMode:"FLUID"},cleanup:()=>k.cancel(),actions:{move:k}}),move:k}}function b(){const w={moveUp:()=>y(tU),moveRight:()=>y(rU),moveDown:()=>y(nU),moveLeft:()=>y(aU)};return v({liftActionArgs:{id:o,clientSelection:ZH(s),movementMode:"SNAP"},cleanup:Xi,actions:w})}function x(){Zc({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!0})&&t.release()}return{isActive:()=>Zc({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!1}),shouldRespectForcePress:h,fluidLift:g,snapLift:b,abort:x}}const oV=[Q6,eC,tC];function lV(e){let{contextId:t,store:r,registry:i,customSensors:u,enableDefaultSensors:o}=e;const a=[...o?oV:[],...u||[]],n=$e.useState(()=>SH())[0],l=Sn(function(v,g){ju(v)&&!ju(g)&&n.tryAbandon()},[n]);Fa(function(){let v=r.getState();return r.subscribe(()=>{const b=r.getState();l(v,b),v=b})},[n,r,l]),Fa(()=>n.tryAbandon,[n.tryAbandon]);const f=Sn(y=>aC({lockAPI:n,registry:i,store:r,draggableId:y}),[n,i,r]),s=Sn((y,v,g)=>iV({lockAPI:n,registry:i,contextId:t,store:r,draggableId:y,forceSensorStop:v||null,sourceEvent:g&&g.sourceEvent?g.sourceEvent:null}),[t,n,i,r]),c=Sn(y=>nV(t,y),[t]),d=Sn(y=>{const v=i.draggable.findById(y);return v?v.options:null},[i.draggable]),h=Sn(function(){n.isClaimed()&&(n.tryAbandon(),r.getState().phase!=="IDLE"&&r.dispatch(g1()))},[n,r]),p=Sn(()=>n.isClaimed(),[n]),m=Xn(()=>({canGetLock:f,tryGetLock:s,findClosestDraggableId:c,findOptionsForDraggable:d,tryReleaseLock:h,isLockClaimed:p}),[f,s,c,d,h,p]);for(let y=0;y({onBeforeCapture:t=>{const r=()=>{e.onBeforeCapture&&e.onBeforeCapture(t)};et.version.startsWith("16")||et.version.startsWith("17")?r():yy.flushSync(r)},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}),uV=e=>({...Nu,...e.autoScrollerOptions,durationDampening:{...Nu.durationDampening,...e.autoScrollerOptions}});function $s(e){return e.current||un(),e.current}function cV(e){const{contextId:t,setCallbacks:r,sensors:i,nonce:u,dragHandleUsageInstructions:o}=e,a=$e.useRef(null),n=X6(e),l=Sn(()=>sV(n.current),[n]),f=Sn(()=>uV(n.current),[n]),s=xH(t),c=MH({contextId:t,text:o}),d=dH(t,u),h=Sn(S=>{$s(a).dispatch(S)},[]),p=Xn(()=>V_({publishWhileDragging:GW,updateDroppableScroll:ZW,updateDroppableIsEnabled:KW,updateDroppableIsCombineEnabled:JW,collectionStarting:XW},h),[h]),m=mH(),y=Xn(()=>WU(m,p),[m,p]),v=Xn(()=>oH({scrollWindow:UU,scrollDroppable:y.scrollDroppable,getAutoScrollerOptions:f,...V_({move:E6},h)}),[y.scrollDroppable,h,f]),g=pH(t),b=Xn(()=>$U({announce:s,autoScroller:v,dimensionMarshal:y,focusMarshal:g,getResponders:l,styleMarshal:d}),[s,v,y,g,l,d]);a.current=b;const x=Sn(()=>{const S=$s(a);S.getState().phase!=="IDLE"&&S.dispatch(g1())},[]),_=Sn(()=>{const S=$s(a).getState();return S.phase==="DROP_ANIMATING"?!0:S.phase==="IDLE"?!1:S.isDragging},[]),w=Xn(()=>({isDragging:_,tryAbort:x}),[_,x]);r(w);const k=Sn(S=>z6($s(a).getState(),S),[]),T=Sn(()=>mo($s(a).getState()),[]),M=Xn(()=>({marshal:y,focus:g,contextId:t,canLift:k,isMovementAllowed:T,dragHandleUsageInstructionsId:c,registry:m}),[t,y,c,g,k,T,m]);return lV({contextId:t,store:b,registry:m,customSensors:i||null,enableDefaultSensors:e.enableDefaultSensors!==!1}),$e.useEffect(()=>x,[x]),et.createElement(Zd.Provider,{value:M},et.createElement(Mq,{context:_1,store:b},e.children))}let iC=0;function fV(){iC=0}function dV(){return Xn(()=>`${iC++}`,[])}function hV(){return et.useId()}var pV="useId"in et?hV:dV;function gV(){"useId"in et||(fV(),wH())}function mV(e){const t=pV(),r=e.dragHandleUsageInstructions||gf.dragHandleUsageInstructions;return et.createElement(Lq,null,i=>et.createElement(cV,{nonce:e.nonce,contextId:t,setCallbacks:i,dragHandleUsageInstructions:r,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children))}const b3={dragging:5e3,dropAnimating:4500},vV=(e,t)=>t?Cu.drop(t.duration):e?Cu.snap:Cu.fluid,yV=(e,t)=>{if(e)return t?Fu.opacity.drop:Fu.opacity.combining},bV=e=>e.forceShouldAnimate!=null?e.forceShouldAnimate:e.mode==="SNAP";function xV(e){const r=e.dimension.client,{offset:i,combineWith:u,dropping:o}=e,a=!!u,n=bV(e),l=!!o,f=l?z0.drop(i,a):z0.moveTo(i);return{position:"fixed",top:r.marginBox.top,left:r.marginBox.left,boxSizing:"border-box",width:r.borderBox.width,height:r.borderBox.height,transition:vV(n,o),transform:f,opacity:yV(a,l),zIndex:l?b3.dropAnimating:b3.dragging,pointerEvents:"none"}}function wV(e){return{transform:z0.moveTo(e.offset),transition:e.shouldAnimateDisplacement?void 0:"none"}}function _V(e){return e.type==="DRAGGING"?xV(e):wV(e)}function TV(e,t,r){r===void 0&&(r=ea);const i=window.getComputedStyle(t),u=t.getBoundingClientRect(),o=l6(u,i),a=zf(o,r),n={client:o,tagName:t.tagName.toLowerCase(),display:i.display},l={x:o.marginBox.width,y:o.marginBox.height};return{descriptor:e,placeholder:n,displaceBy:l,client:o,page:a}}function kV(e){const t=T1("draggable"),{descriptor:r,registry:i,getDraggableRef:u,canDragInteractiveElements:o,shouldRespectForcePress:a,isEnabled:n}=e,l=Xn(()=>({canDragInteractiveElements:o,shouldRespectForcePress:a,isEnabled:n}),[o,n,a]),f=Sn(h=>{const p=u();return p||un(),TV(r,p,h)},[r,u]),s=Xn(()=>({uniqueId:t,descriptor:r,options:l,getDimension:f}),[r,f,l,t]),c=$e.useRef(s),d=$e.useRef(!0);Fa(()=>(i.draggable.register(c.current),()=>i.draggable.unregister(c.current)),[i.draggable]),Fa(()=>{if(d.current){d.current=!1;return}const h=c.current;c.current=s,i.draggable.update(s,h)},[s,i.draggable])}var M1=et.createContext(null);function Vf(e){const t=$e.useContext(e);return t||un(),t}function MV(e){e.preventDefault()}const SV=e=>{const t=$e.useRef(null),r=Sn(function(w){w===void 0&&(w=null),t.current=w},[]),i=Sn(()=>t.current,[]),{contextId:u,dragHandleUsageInstructionsId:o,registry:a}=Vf(Zd),{type:n,droppableId:l}=Vf(M1),f=Xn(()=>({id:e.draggableId,index:e.index,type:n,droppableId:l}),[e.draggableId,e.index,n,l]),{children:s,draggableId:c,isEnabled:d,shouldRespectForcePress:h,canDragInteractiveElements:p,isClone:m,mapped:y,dropAnimationFinished:v}=e;if(!m){const w=Xn(()=>({descriptor:f,registry:a,getDraggableRef:i,canDragInteractiveElements:p,shouldRespectForcePress:h,isEnabled:d}),[f,a,i,p,h,d]);kV(w)}const g=Xn(()=>d?{tabIndex:0,role:"button","aria-describedby":o,"data-rfd-drag-handle-draggable-id":c,"data-rfd-drag-handle-context-id":u,draggable:!1,onDragStart:MV}:null,[u,o,c,d]),b=Sn(w=>{y.type==="DRAGGING"&&y.dropping&&w.propertyName==="transform"&&(et.version.startsWith("16")||et.version.startsWith("17")?v():yy.flushSync(v))},[v,y]),x=Xn(()=>{const w=_V(y),k=y.type==="DRAGGING"&&y.dropping?b:void 0;return{innerRef:r,draggableProps:{"data-rfd-draggable-context-id":u,"data-rfd-draggable-id":c,style:w,onTransitionEnd:k},dragHandleProps:g}},[u,g,c,y,b,r]),_=Xn(()=>({draggableId:f.id,type:f.type,source:{index:f.index,droppableId:f.droppableId}}),[f.droppableId,f.id,f.index,f.type]);return et.createElement(et.Fragment,null,s(x,y.snapshot,_))};var CV=SV,oC=(e,t)=>e===t,lC=e=>{const{combine:t,destination:r}=e;return r?r.droppableId:t?t.droppableId:null};const OV=e=>e.combine?e.combine.draggableId:null,AV=e=>e.at&&e.at.type==="COMBINE"?e.at.combine.draggableId:null;function PV(){const e=Qr((u,o)=>({x:u,y:o})),t=Qr(function(u,o,a,n,l){return a===void 0&&(a=null),n===void 0&&(n=null),l===void 0&&(l=null),{isDragging:!0,isClone:o,isDropAnimating:!!l,dropAnimation:l,mode:u,draggingOver:a,combineWith:n,combineTargetFor:null}}),r=Qr(function(u,o,a,n,l,f,s){return l===void 0&&(l=null),f===void 0&&(f=null),s===void 0&&(s=null),{mapped:{type:"DRAGGING",dropping:null,draggingOver:l,combineWith:f,mode:o,offset:u,dimension:a,forceShouldAnimate:s,snapshot:t(o,n,l,f,null)}}});return(u,o)=>{if(ju(u)){if(u.critical.draggable.id!==o.draggableId)return null;const a=u.current.client.offset,n=u.dimensions.draggables[o.draggableId],l=Ia(u.impact),f=AV(u.impact),s=u.forceShouldAnimate;return r(e(a.x,a.y),u.movementMode,n,o.isClone,l,f,s)}if(u.phase==="DROP_ANIMATING"){const a=u.completed;if(a.result.draggableId!==o.draggableId)return null;const n=o.isClone,l=u.dimensions.draggables[o.draggableId],f=a.result,s=f.mode,c=lC(f),d=OV(f),p={duration:u.dropDuration,curve:v1.drop,moveTo:u.newHomeClientOffset,opacity:d?Fu.opacity.drop:null,scale:d?Fu.scale.drop:null};return{mapped:{type:"DRAGGING",offset:u.newHomeClientOffset,dimension:l,dropping:p,draggingOver:c,combineWith:d,mode:s,forceShouldAnimate:null,snapshot:t(s,n,c,d,p)}}}return null}}function sC(e){return e===void 0&&(e=null),{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const DV={mapped:{type:"SECONDARY",offset:ea,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:sC(null)}};function EV(){const e=Qr((a,n)=>({x:a,y:n})),t=Qr(sC),r=Qr(function(a,n,l){return n===void 0&&(n=null),{mapped:{type:"SECONDARY",offset:a,combineTargetFor:n,shouldAnimateDisplacement:l,snapshot:t(n)}}}),i=a=>a?r(ea,a,!0):null,u=(a,n,l,f)=>{const s=l.displaced.visible[a],c=!!(f.inVirtualList&&f.effected[a]),d=Vd(l),h=d&&d.draggableId===a?n:null;if(!s){if(!c)return i(h);if(l.displaced.invisible[a])return null;const y=Wl(f.displacedBy.point),v=e(y.x,y.y);return r(v,h,!0)}if(c)return i(h);const p=l.displacedBy.point,m=e(p.x,p.y);return r(m,h,s.shouldAnimate)};return(a,n)=>{if(ju(a))return a.critical.draggable.id===n.draggableId?null:u(n.draggableId,a.critical.draggable.id,a.impact,a.afterCritical);if(a.phase==="DROP_ANIMATING"){const l=a.completed;return l.result.draggableId===n.draggableId?null:u(n.draggableId,l.result.draggableId,l.impact,l.afterCritical)}return null}}const RV=()=>{const e=PV(),t=EV();return(i,u)=>e(i,u)||t(i,u)||DV},LV={dropAnimationFinished:L6},IV=i6(RV,LV,null,{context:_1,areStatePropsEqual:oC})(CV);var FV=IV;function uC(e){return Vf(M1).isUsingCloneFor===e.draggableId&&!e.isClone?null:et.createElement(FV,e)}function NV(e){const t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,r=!!e.disableInteractiveElementBlocking,i=!!e.shouldRespectForcePress;return et.createElement(uC,Gt({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:i}))}const cC=e=>t=>e===t,jV=cC("scroll"),$V=cC("auto"),x3=(e,t)=>t(e.overflowX)||t(e.overflowY),BV=e=>{const t=window.getComputedStyle(e),r={overflowX:t.overflowX,overflowY:t.overflowY};return x3(r,jV)||x3(r,$V)},zV=()=>!1,fC=e=>e==null?null:e===document.body?zV()?e:null:e===document.documentElement?null:BV(e)?e:fC(e.parentElement);var qV=fC,U0=e=>({x:e.scrollLeft,y:e.scrollTop});const dC=e=>e?window.getComputedStyle(e).position==="fixed"?!0:dC(e.parentElement):!1;var WV=e=>{const t=qV(e),r=dC(e);return{closestScrollable:t,isFixedOnPage:r}},UV=e=>{let{descriptor:t,isEnabled:r,isCombineEnabled:i,isFixedOnPage:u,direction:o,client:a,page:n,closest:l}=e;const f=(()=>{if(!l)return null;const{scrollSize:h,client:p}=l,m=j6({scrollHeight:h.scrollHeight,scrollWidth:h.scrollWidth,height:p.paddingBox.height,width:p.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:p,scrollSize:h,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:m,diff:{value:ea,displacement:ea}}}})(),s=o==="vertical"?c1:v6,c=Cl({page:n,withPlaceholder:null,axis:s,frame:f});return{descriptor:t,isCombineEnabled:i,isFixedOnPage:u,axis:s,isEnabled:r,client:a,page:n,frame:f,subject:c}};const HV=(e,t)=>{const r=s6(e);if(!t||e!==t)return r;const i=r.paddingBox.top-t.scrollTop,u=r.paddingBox.left-t.scrollLeft,o=i+t.scrollHeight,a=u+t.scrollWidth,l=o1({top:i,right:a,bottom:o,left:u},r.border);return l1({borderBox:l,margin:r.margin,border:r.border,padding:r.padding})};var VV=e=>{let{ref:t,descriptor:r,env:i,windowScroll:u,direction:o,isDropDisabled:a,isCombineEnabled:n,shouldClipSubject:l}=e;const f=i.closestScrollable,s=HV(t,f),c=zf(s,u),d=(()=>{if(!f)return null;const p=s6(f),m={scrollHeight:f.scrollHeight,scrollWidth:f.scrollWidth};return{client:p,page:zf(p,u),scroll:U0(f),scrollSize:m,shouldClipSubject:l}})();return UV({descriptor:r,isEnabled:!a,isCombineEnabled:n,isFixedOnPage:i.isFixedOnPage,direction:o,client:s,page:c,closest:d})};const YV={passive:!1},GV={passive:!0};var w3=e=>e.shouldPublishImmediately?YV:GV;const Kc=e=>e&&e.env.closestScrollable||null;function XV(e){const t=$e.useRef(null),r=Vf(Zd),i=T1("droppable"),{registry:u,marshal:o}=r,a=X6(e),n=Xn(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),l=$e.useRef(n),f=Xn(()=>Qr((x,_)=>{t.current||un();const w={x,y:_};o.updateDroppableScroll(n.id,w)}),[n.id,o]),s=Sn(()=>{const x=t.current;return!x||!x.env.closestScrollable?ea:U0(x.env.closestScrollable)},[]),c=Sn(()=>{const x=s();f(x.x,x.y)},[s,f]),d=Xn(()=>Eu(c),[c]),h=Sn(()=>{const x=t.current,_=Kc(x);if(x&&_||un(),x.scrollOptions.shouldPublishImmediately){c();return}d()},[d,c]),p=Sn((x,_)=>{t.current&&un();const w=a.current,k=w.getDroppableRef();k||un();const T=WV(k),M={ref:k,descriptor:n,env:T,scrollOptions:_};t.current=M;const S=VV({ref:k,descriptor:n,env:T,windowScroll:x,direction:w.direction,isDropDisabled:w.isDropDisabled,isCombineEnabled:w.isCombineEnabled,shouldClipSubject:!w.ignoreContainerClipping}),C=T.closestScrollable;return C&&(C.setAttribute(g3.contextId,r.contextId),C.addEventListener("scroll",h,w3(M.scrollOptions))),S},[r.contextId,n,h,a]),m=Sn(()=>{const x=t.current,_=Kc(x);return x&&_||un(),U0(_)},[]),y=Sn(()=>{const x=t.current;x||un();const _=Kc(x);t.current=null,_&&(d.cancel(),_.removeAttribute(g3.contextId),_.removeEventListener("scroll",h,w3(x.scrollOptions)))},[h,d]),v=Sn(x=>{const _=t.current;_||un();const w=Kc(_);w||un(),w.scrollTop+=x.y,w.scrollLeft+=x.x},[]),g=Xn(()=>({getDimensionAndWatchScroll:p,getScrollWhileDragging:m,dragStopped:y,scroll:v}),[y,p,m,v]),b=Xn(()=>({uniqueId:i,descriptor:n,callbacks:g}),[g,n,i]);Fa(()=>(l.current=b.descriptor,u.droppable.register(b),()=>{t.current&&y(),u.droppable.unregister(b)}),[g,n,y,b,o,u.droppable]),Fa(()=>{t.current&&o.updateDroppableIsEnabled(l.current.id,!e.isDropDisabled)},[e.isDropDisabled,o]),Fa(()=>{t.current&&o.updateDroppableIsCombineEnabled(l.current.id,e.isCombineEnabled)},[e.isCombineEnabled,o])}function Cm(){}const _3={width:0,height:0,margin:zq},ZV=e=>{let{isAnimatingOpenOnMount:t,placeholder:r,animate:i}=e;return t||i==="close"?_3:{height:r.client.borderBox.height,width:r.client.borderBox.width,margin:r.client.margin}},KV=e=>{let{isAnimatingOpenOnMount:t,placeholder:r,animate:i}=e;const u=ZV({isAnimatingOpenOnMount:t,placeholder:r,animate:i});return{display:r.display,boxSizing:"border-box",width:u.width,height:u.height,marginTop:u.margin.top,marginRight:u.margin.right,marginBottom:u.margin.bottom,marginLeft:u.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:i!=="none"?Cu.placeholder:null}},JV=e=>{const t=$e.useRef(null),r=Sn(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]),{animate:i,onTransitionEnd:u,onClose:o,contextId:a}=e,[n,l]=$e.useState(e.animate==="open");$e.useEffect(()=>n?i!=="open"?(r(),l(!1),Cm):t.current?Cm:(t.current=setTimeout(()=>{t.current=null,l(!1)}),r):Cm,[i,n,r]);const f=Sn(c=>{c.propertyName==="height"&&(u(),i==="close"&&o())},[i,o,u]),s=KV({isAnimatingOpenOnMount:n,animate:e.animate,placeholder:e.placeholder});return et.createElement(e.placeholder.tagName,{style:s,"data-rfd-placeholder-context-id":a,onTransitionEnd:f,ref:e.innerRef})};var QV=et.memo(JV);class eY extends et.PureComponent{constructor(){super(...arguments),this.state={isVisible:!!this.props.on,data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{this.state.animate==="close"&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(t,r){return t.shouldAnimate?t.on?{isVisible:!0,data:t.on,animate:"open"}:r.isVisible?{isVisible:!0,data:r.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!t.on,data:t.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const t={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(t)}}const tY=e=>{const t=$e.useContext(Zd);t||un();const{contextId:r,isMovementAllowed:i}=t,u=$e.useRef(null),o=$e.useRef(null),{children:a,droppableId:n,type:l,mode:f,direction:s,ignoreContainerClipping:c,isDropDisabled:d,isCombineEnabled:h,snapshot:p,useClone:m,updateViewportMaxScroll:y,getContainerForClone:v}=e,g=Sn(()=>u.current,[]),b=Sn(function(C){C===void 0&&(C=null),u.current=C},[]);Sn(()=>o.current,[]);const x=Sn(function(C){C===void 0&&(C=null),o.current=C},[]),_=Sn(()=>{i()&&y({maxScroll:B6()})},[i,y]);XV({droppableId:n,type:l,mode:f,direction:s,isDropDisabled:d,isCombineEnabled:h,ignoreContainerClipping:c,getDroppableRef:g});const w=Xn(()=>et.createElement(eY,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},C=>{let{onClose:P,data:D,animate:O}=C;return et.createElement(QV,{placeholder:D,onClose:P,innerRef:x,animate:O,contextId:r,onTransitionEnd:_})}),[r,_,e.placeholder,e.shouldAnimatePlaceholder,x]),k=Xn(()=>({innerRef:b,placeholder:w,droppableProps:{"data-rfd-droppable-id":n,"data-rfd-droppable-context-id":r}}),[r,n,w,b]),T=m?m.dragging.draggableId:null,M=Xn(()=>({droppableId:n,type:l,isUsingCloneFor:T}),[n,T,l]);function S(){if(!m)return null;const{dragging:C,render:P}=m,D=et.createElement(uC,{draggableId:C.draggableId,index:C.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(O,R)=>P(O,R,C));return V9.createPortal(D,v())}return et.createElement(M1.Provider,{value:M},a(k,p),S())};var nY=tY;function rY(){return document.body||un(),document.body}const T3={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:rY},hC=e=>{let t={...e},r;for(r in T3)e[r]===void 0&&(t={...t,[r]:T3[r]});return t},Om=(e,t)=>e===t.droppable.type,k3=(e,t)=>t.draggables[e.draggable.id],aY=()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},r=Qr(o=>({draggableId:o.id,type:o.type,source:{index:o.index,droppableId:o.droppableId}})),i=Qr((o,a,n,l,f,s)=>{const c=f.descriptor.id;if(f.descriptor.droppableId===o){const p=s?{render:s,dragging:r(f.descriptor)}:null,m={isDraggingOver:n,draggingOverWith:n?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:f.placeholder,shouldAnimatePlaceholder:!1,snapshot:m,useClone:p}}if(!a)return t;if(!l)return e;const h={isDraggingOver:n,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:f.placeholder,shouldAnimatePlaceholder:!0,snapshot:h,useClone:null}});return(o,a)=>{const n=hC(a),l=n.droppableId,f=n.type,s=!n.isDropDisabled,c=n.renderClone;if(ju(o)){const d=o.critical;if(!Om(f,d))return t;const h=k3(d,o.dimensions),p=Ia(o.impact)===l;return i(l,s,p,p,h,c)}if(o.phase==="DROP_ANIMATING"){const d=o.completed;if(!Om(f,d.critical))return t;const h=k3(d.critical,o.dimensions);return i(l,s,lC(d.result)===l,Ia(d.impact)===l,h,c)}if(o.phase==="IDLE"&&o.completed&&!o.shouldFlush){const d=o.completed;if(!Om(f,d.critical))return t;const h=Ia(d.impact)===l,p=!!(d.impact.at&&d.impact.at.type==="COMBINE"),m=d.critical.droppable.id===l;return h?p?e:t:m?e:t}return t}},iY={updateViewportMaxScroll:eU},oY=i6(aY,iY,(e,t,r)=>({...hC(r),...e,...t}),{context:_1,areStatePropsEqual:oC})(nY);var lY=oY;const sY=Object.freeze(Object.defineProperty({__proto__:null,DragDropContext:mV,Draggable:NV,Droppable:lY,resetServerContext:gV,useKeyboardSensor:eC,useMouseSensor:Q6,useTouchSensor:tC},Symbol.toStringTag,{value:"Module"})),S1=qn(sY);var M3;function uY(){return M3||(M3=1,function(e){var t=Rn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(hr()),u=t(zo),o=t(Jr()),a=t(K4),n=t(Qz),l=t(Ud),f=t(Or),s=m($e),c=S1,d=ei(),h=tc();function p(x){if(typeof WeakMap!="function")return null;var _=new WeakMap,w=new WeakMap;return(p=function(T){return T?w:_})(x)}function m(x,_){if(x&&x.__esModule)return x;if(x===null||r(x)!=="object"&&typeof x!="function")return{default:x};var w=p(_);if(w&&w.has(x))return w.get(x);var k={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in x)if(M!=="default"&&Object.prototype.hasOwnProperty.call(x,M)){var S=T?Object.getOwnPropertyDescriptor(x,M):null;S&&(S.get||S.set)?Object.defineProperty(k,M,S):k[M]=x[M]}return k.default=x,w&&w.set(x,k),k}function y(x,_){var w=Object.keys(x);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(x);_&&(k=k.filter(function(T){return Object.getOwnPropertyDescriptor(x,T).enumerable})),w.push.apply(w,k)}return w}function v(x){for(var _=1;_0&&s.default.createElement(l.default,{variant:"caption",sx:{padding:1}},_.groupedBy),x.groupColumns.map(function(P,D){return s.default.createElement(c.Draggable,{key:P.tableData.id.toString(),draggableId:P.tableData.id.toString(),index:D},function(O,R){var F;return s.default.createElement(u.default,(0,i.default)({ref:O.innerRef},O.draggableProps,O.dragHandleProps,{sx:T(R.isDragging,O.draggableProps.style)}),s.default.createElement(n.default,(0,i.default)({},O.dragHandleProps,k.groupChipProps,{onClick:function(){return x.onSortChanged(P)},label:s.default.createElement(u.default,{sx:{display:"flex",alignItems:"center"}},s.default.createElement(u.default,{sx:{float:"left"}},P.title),P.tableData.groupSort&&s.default.createElement(w.SortArrow,{sx:{transition:"300ms ease all",transform:P.tableData.groupSort==="asc"?"rotate(-180deg)":"none",fontSize:18}})),sx:v({boxShadow:"none",textTransform:"none"},(F=k.groupChipProps)!==null&&F!==void 0?F:{}),onDelete:function(){return x.onGroupRemoved(P,D)}})))})}),x.groupColumns.length===0&&s.default.createElement(l.default,{variant:"caption",sx:{padding:1}},_.placeholder),S.placeholder)}))}g.defaultProps={},g.propTypes={forwardedRef:f.default.element,className:f.default.string,onSortChanged:f.default.func,onGroupRemoved:f.default.func,onGroupChange:f.default.func,persistentGroupingsId:f.default.string};var b=s.default.forwardRef(function(_,w){return s.default.createElement(g,(0,i.default)({},_,{forwardedRef:w}))});e.default=b}(vm)),vm}var Am={},S3;function cY(){return S3||(S3=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(hr()),i=t(Jr()),u=t(io()),o=t(zl()),a=t(mi),n=t(Pi),l=t(ql),f=t(qo),s=t(Or),c=t($e),d=ei();function h(v,g){var b=Object.keys(v);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(v);g&&(x=x.filter(function(_){return Object.getOwnPropertyDescriptor(v,_).enumerable})),b.push.apply(b,x)}return b}function p(v){for(var g=1;g0&&_++;var w=v.groups[v.level],k;v.groupData.isExpanded&&(v.groups.length>v.level+1?k=v.groupData.groups.map(function(j,N){return c.default.createElement(v.components.GroupRow,{actions:v.actions,key:j.value||""+N,columns:v.columns,components:v.components,detailPanel:v.detailPanel,getFieldValue:v.getFieldValue,groupData:j,groups:v.groups,level:v.level+1,path:[].concat((0,o.default)(v.path),[N]),onGroupExpandChanged:v.onGroupExpandChanged,onGroupSelected:v.onGroupSelected,onRowSelected:v.onRowSelected,onRowClick:v.onRowClick,onToggleDetailPanel:v.onToggleDetailPanel,onTreeExpandChanged:v.onTreeExpandChanged,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,hasAnyEditingRow:v.hasAnyEditingRow,isTreeData:v.isTreeData,cellEditable:v.cellEditable,onCellEditStarted:v.onCellEditStarted,onCellEditFinished:v.onCellEditFinished,scrollWidth:v.scrollWidth,treeDataMaxLevel:v.treeDataMaxLevel})}):k=v.groupData.data.map(function(j,N){return j.tableData.editing?c.default.createElement(v.components.EditRow,{columns:v.columns,components:v.components,data:j,path:[].concat((0,o.default)(v.path),[j.tableData.uuid]),localization:v.localization,key:N,mode:j.tableData.editing,isTreeData:v.isTreeData,detailPanel:v.detailPanel,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,getFieldValue:v.getFieldValue,onBulkEditRowChanged:v.onBulkEditRowChanged,scrollWidth:v.scrollWidth}):c.default.createElement(v.components.Row,{actions:v.actions,key:N,columns:v.columns,components:v.components,data:j,detailPanel:v.detailPanel,level:(v.level||0)+1,getFieldValue:v.getFieldValue,path:[].concat((0,o.default)(v.path),[j.tableData.uuid]),onRowSelected:v.onRowSelected,onRowClick:v.onRowClick,onToggleDetailPanel:v.onToggleDetailPanel,isTreeData:v.isTreeData,onTreeExpandChanged:v.onTreeExpandChanged,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,hasAnyEditingRow:v.hasAnyEditingRow,cellEditable:v.cellEditable,onCellEditStarted:v.onCellEditStarted,onCellEditFinished:v.onCellEditFinished,scrollWidth:v.scrollWidth,treeDataMaxLevel:v.treeDataMaxLevel})}));for(var T=[],M=0;M0&&A!==z,checked:A===z,onChange:function(N,E){return v.onGroupSelected&&v.onGroupSelected(E,v.groupData.path)},style:{marginRight:8}}),c.default.createElement("b",null,C,P)))),k)}m.defaultProps={columns:[],groups:[],level:0},m.propTypes={actions:s.default.array,columns:s.default.arrayOf(s.default.object),components:s.default.object,cellEditable:s.default.object,detailPanel:s.default.oneOfType([s.default.func,s.default.arrayOf(s.default.object)]),forwardedRef:s.default.element,getFieldValue:s.default.func,groupData:s.default.object,groups:s.default.arrayOf(s.default.object),hasAnyEditingRow:s.default.bool,icons:s.default.object,isTreeData:s.default.bool.isRequired,level:s.default.number,localization:s.default.object,onBulkEditRowChanged:s.default.func,onCellEditFinished:s.default.func,onCellEditStarted:s.default.func,onEditingApproved:s.default.func,onEditingCanceled:s.default.func,onGroupExpandChanged:s.default.func,onRowClick:s.default.func,onGroupSelected:s.default.func,onRowSelected:s.default.func,onToggleDetailPanel:s.default.func.isRequired,onTreeExpandChanged:s.default.func.isRequired,path:s.default.arrayOf(s.default.number),scrollWidth:s.default.number.isRequired,treeDataMaxLevel:s.default.number};var y=c.default.forwardRef(function(g,b){return c.default.createElement(m,(0,r.default)({},g,{forwardedRef:b}))});e.default=y}(Am)),Am}var Pm={};const fY=qn(Y9),dY=qn(G9);var C3;function hY(){return C3||(C3=1,function(e){var t=Rn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableHeader=T,e.styles=e.default=void 0;var i=t(zo),u=t(Wo),o=t(hr()),a=t(Jr()),n=t(io()),l=t(Bl()),f=t($e),s=t(Or),c=t(fY),d=t(Pi),h=t(mi),p=t(dY),m=t(qo),y=S1,v=_(Li()),g=ei(),b=["onColumnResized","classes","sx","columns"];function x(O){if(typeof WeakMap!="function")return null;var R=new WeakMap,F=new WeakMap;return(x=function(z){return z?F:R})(O)}function _(O,R){if(O&&O.__esModule)return O;if(O===null||r(O)!=="object"&&typeof O!="function")return{default:O};var F=x(R);if(F&&F.has(O))return F.get(O);var A={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in O)if(B!=="default"&&Object.prototype.hasOwnProperty.call(O,B)){var $=z?Object.getOwnPropertyDescriptor(O,B):null;$&&($.get||$.set)?Object.defineProperty(A,B,$):A[B]=O[B]}return A.default=O,F&&F.set(O,A),A}function w(O,R){var F=Object.keys(O);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(O);R&&(A=A.filter(function(z){return Object.getOwnPropertyDescriptor(O,z).enumerable})),F.push.apply(F,A)}return F}function k(O){for(var R=1;R-1)&&!ce.tableData.hiddden}).sort(function(ce,ye){return ce.tableData.columnOrder-ye.tableData.columnOrder}).map(function(ce,ye,J){var ne=ce.align!==void 0?ce.align:["numeric","currency"].indexOf(ce.type)!==-1?"right":"left",de=ce.title;if(j.draggable&&ce.draggable!==!1?de=f.default.createElement(y.Draggable,{key:ce.tableData.id,draggableId:ce.tableData.id.toString(),index:ye,style:{zIndex:99}},function(ue,ge){return f.default.createElement("div",(0,o.default)({ref:ue.innerRef},ue.draggableProps,ue.dragHandleProps,{style:ge.isDragging?ue.draggableProps.style:{position:"relative",minWidth:0,display:"flex",flexDirection:ne==="right"?"row-reverse":void 0}}),ce.sorting!==!1&&B.sorting&&B.allowSorting?f.default.createElement(S,{columnDef:ce,keepSortDirectionOnColumnSwitch:j.keepSortDirectionOnColumnSwitch,icon:N.SortArrow,thirdSortClick:j.thirdSortClick,onOrderChange:B.onOrderChange,orderByCollection:B.orderByCollection,showColumnSortOrder:j.showColumnSortOrder,sortOrderIndicatorStyle:j.sortOrderIndicatorStyle},ce.title):ce.title)}):ce.sorting!==!1&&B.sorting&&B.allowSorting&&(de=f.default.createElement(S,{columnDef:ce,keepSortDirectionOnColumnSwitch:j.keepSortDirectionOnColumnSwitch,icon:N.SortArrow,thirdSortClick:j.thirdSortClick,onOrderChange:B.onOrderChange,orderByCollection:B.orderByCollection,showColumnSortOrder:j.showColumnSortOrder,sortOrderIndicatorStyle:j.sortOrderIndicatorStyle},ce.title)),ce.tooltip&&(de=f.default.createElement(u.default,{title:ce.tooltip,placement:"bottom"},f.default.createElement("span",null,de))),j.tableLayout==="fixed"&&j.columnResizable&&ce.resizable!==!1&&!(j.tableWidth==="full"&&ye===J.length-1)){var xe=N.Resize?N.Resize:function(ue){return f.default.createElement(i.default,(0,o.default)({},ue,{"data-test-id":"drag_handle"}))};de=f.default.createElement(i.default,{sx:C.headerWrap(ne==="right")},f.default.createElement(i.default,{sx:C.headerContent(ne==="right")},de),f.default.createElement("div",null),f.default.createElement(xe,{sx:C.headerResize((q==null?void 0:q.col)&&q.col.tableData.id===ce.tableData.id),onMouseDown:function(ge){return Y(ge,ce,ye)}}))}return f.default.createElement(h.default,{key:ce.tableData.id,align:ne,sx:C.header,style:le(ce),size:Me,"aria-label":ce.ariaLabel},de)})}function pe(){var Me=v.selectionMaxWidth(k(k({},B),{},{options:j}),B.treeDataMaxLevel);return f.default.createElement(h.default,{padding:"none",key:"key-selection-column",sx:C.header,style:k(k({},j.headerStyle),{},{width:Me})},j.showSelectAllCheckbox&&f.default.createElement(m.default,(0,o.default)({indeterminate:B.selectedCount>0&&B.selectedCount0&&B.selectedCount>=B.dataCount,onChange:function(ye,J){return B.onAllSelected&&B.onAllSelected(J)}},j.headerSelectionProps)))}function Te(){return f.default.createElement(h.default,{padding:"none",key:"key-detail-panel-column",sx:C.header,style:j.headerStyle})}var Se=se();if(j.selection&&Se.splice(0,0,pe()),B.showActionsColumn)if(j.actionsColumnIndex>=0){var Oe=0;j.selection&&(Oe=1),Se.splice(j.actionsColumnIndex+Oe,0,ie())}else j.actionsColumnIndex===-1&&Se.push(ie());return B.hasDetailPanel&&j.showDetailPanelIcon&&(j.detailPanelColumnAlignment==="right"?Se.push(Te()):Se.splice(0,0,Te())),B.isTreeData>0&&Se.splice(0,0,f.default.createElement(h.default,{padding:"none",key:"key-tree-data-header",sx:C.header,style:j.headerStyle})),Q.filter(function(Me){return Me.tableData.groupOrder>-1}).forEach(function(Me){Se.splice(0,0,f.default.createElement(h.default,{padding:"checkbox",key:"key-group-header"+Me.tableData.id,sx:C.header,style:j.headerStyle}))}),f.default.createElement(c.default,{ref:B.forwardedRef,classes:F,sx:A},f.default.createElement(d.default,{sx:C.headerRow},Se))}var M=function(R,F,A,z,B){return A.tableData.id!==R?B&&F||"asc":F==="asc"?"desc":F==="desc"&&z?"":"asc"};function S(O){var R=O.columnDef,F=O.keepSortDirectionOnColumnSwitch,A=O.icon,z=O.thirdSortClick,B=O.onOrderChange,$=O.children,j=O.orderByCollection,N=O.showColumnSortOrder,E=O.sortOrderIndicatorStyle,W=j.find(function(H){var V=H.orderBy;return V===R.tableData.id}),G=(W||F)&&W&&W.orderDirection||"asc",L="none";W&&G==="asc"?L=R.ariaSortAsc||"ascending":W&&G==="desc"&&(L=R.ariaSortDesc||"descending");var q=W&&W.orderBy;return f.default.createElement(f.default.Fragment,null,f.default.createElement(p.default,{role:"columnheader","aria-sort":L,"aria-label":R.ariaLabel,IconComponent:A,active:!!W,"data-testid":"mtableheader-sortlabel",direction:G,onClick:function(){var V=M(q,G,R,z,F);B(R.tableData.id,V,W&&W.sortOrder)}},$),f.default.createElement("span",{style:k(k({},E),{},{width:"1em"}),"data-testid":"material-table-column-sort-order-indicator"},N&&W?W.sortOrder:""))}T.defaultProps={dataCount:0,selectedCount:0,orderByCollection:[],allowSorting:!0},T.propTypes={columns:s.default.array.isRequired,classes:s.default.object,sx:s.default.object,dataCount:s.default.number,hasDetailPanel:s.default.bool.isRequired,selectedCount:s.default.number,onAllSelected:s.default.func,onOrderChange:s.default.func,showActionsColumn:s.default.bool,orderByCollection:s.default.array,showColumnSortOrder:s.default.bool,tooltip:s.default.string,allowSorting:s.default.bool};var C={headerRow:{zIndex:10},header:{top:0},headerWrap:function(R){return{display:"flex",alignItems:"center",position:"relative",left:4}},headerWrapRight:function(R){return{display:"flex",alignItems:"center",pr:R?1:void 0,position:"relative",left:4,justifyContent:"flex-end"}},headerContent:function(R){return{minWidth:0,display:"flex",flex:"1 0 100%",flexDirection:R?"row-reverse":void 0,justifyContent:"flex-start",alignItems:"center",width:"100%",position:"relative"}},headerResize:function(R){return{color:R?"primary.main":"inherit",flex:1,cursor:"col-resize",position:"absolute",height:"100%",width:16,display:"flex",justifyContent:"center",right:-8,zIndex:20}}};e.styles=C;var P=f.default.forwardRef(function(R,F){return f.default.createElement(T,(0,o.default)({},R,{forwardedRef:F}))}),D=f.default.memo(P);e.default=D}(Pm)),Pm}var Dm={};const pY=qn(X9);var O3;function gY(){return O3||(O3=1,function(e){var t=Rn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(hr()),u=t(ql),o=t(Wo),a=t(zo),n=t(pY),l=t(Or),f=t($e),s=$l,c=p(Li()),d=ei();function h(b){if(typeof WeakMap!="function")return null;var x=new WeakMap,_=new WeakMap;return(h=function(k){return k?_:x})(b)}function p(b,x){if(b&&b.__esModule)return b;if(b===null||r(b)!=="object"&&typeof b!="function")return{default:b};var _=h(x);if(_&&_.has(b))return _.get(b);var w={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in b)if(T!=="default"&&Object.prototype.hasOwnProperty.call(b,T)){var M=k?Object.getOwnPropertyDescriptor(b,T):null;M&&(M.get||M.set)?Object.defineProperty(w,T,M):w[T]=b[T]}return w.default=b,_&&_.set(b,w),w}function m(b){var x=(0,s.useTheme)(),_=(0,d.useLocalizationStore)().pagination,w=(0,d.useIconStore)(),k=function(G){b.onPageChange(G,0)},T=function(G){b.onPageChange(G,b.page-1)},M=function(G){b.onPageChange(G,b.page+1)},S=function(G){return function(L){b.onPageChange(L,G)}},C=function(G){b.onPageChange(G,Math.max(0,Math.ceil(b.count/b.rowsPerPage)-1))};function P(W,G,L,q){var H=[];q=Math.max(1,Math.min(10,q));for(var V=Math.max(W-q+1,0);V<=Math.min(G+q-1,L);V++){var te=V===b.page?"contained":"text";H.push(f.default.createElement(n.default,{size:"small",style:{boxShadow:"none",maxWidth:"30px",maxHeight:"30px",minWidth:"30px",minHeight:"30px"},disabled:V===b.page,variant:te,onClick:S(V),key:V},V+1))}return f.default.createElement("span",null,H)}var D=b.count,O=b.page,R=b.rowsPerPage,F=b.showFirstLastPageButtons,A=b.numberOfPagesAround,z=Math.ceil(D/R)-1,B=Math.max(O-1,0),$=Math.min(z,O+1),j=c.parseFirstLastPageButtons(F,x.direction==="rtl"),N=j.first,E=j.last;return f.default.createElement(a.default,{sx:{flexShrink:0,color:"text.secondary",marginLeft:2.5,display:"flex",alignItems:"center"},ref:b.forwardedRef},N&&f.default.createElement(o.default,{title:_.firstTooltip},f.default.createElement("span",null,f.default.createElement(u.default,{onClick:k,disabled:O===0,"aria-label":_.firstAriaLabel,size:"large"},x.direction==="rtl"?f.default.createElement(w.LastPage,null):f.default.createElement(w.FirstPage,null)))),f.default.createElement(o.default,{title:_.previousTooltip},f.default.createElement("span",null,f.default.createElement(u.default,{onClick:T,disabled:O===0,"aria-label":_.previousAriaLabel},f.default.createElement(w.PreviousPage,null)))),f.default.createElement(a.default,{sx:{display:{xs:"false",sm:"false",md:"block"}}},P(B,$,z,A)),f.default.createElement(o.default,{title:_.nextTooltip},f.default.createElement("span",null,f.default.createElement(u.default,{onClick:M,disabled:O>=z,"aria-label":_.nextAriaLabel,size:"large"},x.direction==="rtl"?f.default.createElement(w.PreviousPage,null):f.default.createElement(w.NextPage,null)))),E&&f.default.createElement(o.default,{title:_.lastTooltip},f.default.createElement("span",null,f.default.createElement(u.default,{onClick:C,disabled:O>=Math.ceil(D/R)-1,"aria-label":_.lastAriaLabel,size:"large"},x.direction==="rtl"?f.default.createElement(w.FirstPage,null):f.default.createElement(w.LastPage,null)))))}m.propTypes={onPageChange:l.default.func,page:l.default.number,forwardedRef:l.default.func,count:l.default.number,rowsPerPage:l.default.number,numberOfPagesAround:l.default.number,classes:l.default.object,theme:l.default.any,showFirstLastPageButtons:l.default.oneOfType([l.default.object,l.default.bool])},m.defaultProps={showFirstLastPageButtons:!0};var y=f.default.forwardRef(function(x,_){return f.default.createElement(m,(0,i.default)({},x,{forwardedRef:_}))}),v=y,g=v;e.default=g}(Dm)),Dm}var Em={},A3;function mY(){return A3||(A3=1,function(e){var t=Rn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(hr()),u=t(zo),o=t(ql),a=t(Wo),n=t(Ud),l=t(Or),f=t($e),s=$l,c=p(Li()),d=tc();function h(b){if(typeof WeakMap!="function")return null;var x=new WeakMap,_=new WeakMap;return(h=function(k){return k?_:x})(b)}function p(b,x){if(b&&b.__esModule)return b;if(b===null||r(b)!=="object"&&typeof b!="function")return{default:b};var _=h(x);if(_&&_.has(b))return _.get(b);var w={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in b)if(T!=="default"&&Object.prototype.hasOwnProperty.call(b,T)){var M=k?Object.getOwnPropertyDescriptor(b,T):null;M&&(M.get||M.set)?Object.defineProperty(w,T,M):w[T]=b[T]}return w.default=b,_&&_.set(b,w),w}function m(b){var x=(0,s.useTheme)(),_=(0,d.useIconStore)(),w=(0,d.useLocalizationStore)().pagination,k=function(B){b.onPageChange(B,0)},T=function(B){b.onPageChange(B,b.page-1)},M=function(B){b.onPageChange(B,b.page+1)},S=function(B){b.onPageChange(B,Math.max(0,Math.ceil(b.count/b.rowsPerPage)-1))},C=b.count,P=b.page,D=b.rowsPerPage,O=b.showFirstLastPageButtons,R=c.parseFirstLastPageButtons(O,x.direction==="rtl"),F=R.first,A=R.last;return f.default.createElement(u.default,{sx:{flexShrink:0,color:"text.secondary",display:"flex",alignItems:"center"},ref:b.forwardedRef},F&&f.default.createElement(a.default,{title:w.firstTooltip},f.default.createElement("span",null,f.default.createElement(o.default,{onClick:k,disabled:P===0,"aria-label":w.firstAriaLabel,size:"large"},x.direction==="rtl"?f.default.createElement(_.LastPage,null):f.default.createElement(_.FirstPage,null)))),f.default.createElement(a.default,{title:w.previousTooltip},f.default.createElement("span",null,f.default.createElement(o.default,{onClick:T,disabled:P===0,"aria-label":w.previousAriaLabel},x.direction==="rtl"?f.default.createElement(_.NextPage,null):f.default.createElement(_.PreviousPage,null)))),f.default.createElement(n.default,{variant:"caption",style:{flex:1,textAlign:"center",alignSelf:"center",flexBasis:"inherit"}},w.labelDisplayedRows.replace("{from}",b.count===0?0:b.page*b.rowsPerPage+1).replace("{to}",Math.min((b.page+1)*b.rowsPerPage,b.count)).replace("{count}",b.count)),f.default.createElement(a.default,{title:w.nextTooltip},f.default.createElement("span",null,f.default.createElement(o.default,{onClick:M,disabled:P>=Math.ceil(C/D)-1,"aria-label":w.nextAriaLabel},x.direction==="rtl"?f.default.createElement(_.PreviousPage,null):f.default.createElement(_.NextPage,null)))),A&&f.default.createElement(a.default,{title:w.lastTooltip},f.default.createElement("span",null,f.default.createElement(o.default,{onClick:S,disabled:P>=Math.ceil(C/D)-1,"aria-label":w.lastAriaLabel,size:"large"},x.direction==="rtl"?f.default.createElement(_.FirstPage,null):f.default.createElement(_.LastPage,null)))))}m.propTypes={onPageChange:l.default.func,page:l.default.number,count:l.default.number,rowsPerPage:l.default.number,classes:l.default.object,localization:l.default.object,showFirstLastPageButtons:l.default.oneOfType([l.default.object,l.default.bool]),forwardedRef:l.default.func},m.defaultProps={showFirstLastPageButtons:!0};var y=f.default.forwardRef(function(x,_){return f.default.createElement(m,(0,i.default)({},x,{forwardedRef:_}))}),v=y,g=v;e.default=g}(Em)),Em}var Rm={},P3;function vY(){return P3||(P3=1,function(e){var t=Rn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableSummaryRow=v,e.default=void 0;var i=t(Pi),u=t(Ur()),o=t(zl()),a=t(mi),n=t(Jr()),l=p($e),f=Wd(),s=p(Li()),c=ei(),d=t(Or);function h(b){if(typeof WeakMap!="function")return null;var x=new WeakMap,_=new WeakMap;return(h=function(k){return k?_:x})(b)}function p(b,x){if(b&&b.__esModule)return b;if(b===null||r(b)!=="object"&&typeof b!="function")return{default:b};var _=h(x);if(_&&_.has(b))return _.get(b);var w={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in b)if(T!=="default"&&Object.prototype.hasOwnProperty.call(b,T)){var M=k?Object.getOwnPropertyDescriptor(b,T):null;M&&(M.get||M.set)?Object.defineProperty(w,T,M):w[T]=b[T]}return w.default=b,_&&_.set(b,w),w}function m(b,x){var _=Object.keys(b);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(b);x&&(w=w.filter(function(k){return Object.getOwnPropertyDescriptor(b,k).enumerable})),_.push.apply(_,w)}return _}function y(b){for(var x=1;x1&&arguments[1]!==void 0?arguments[1]:1,R=s.elementSize(y(y({},_),{},{options:k})),F=O*s.baseIconSize(y(y({},_),{},{options:k}));return l.createElement(a.default,{key:"placeholder.".concat(D),size:R,padding:"none",style:{width:F,padding:"0px 5px",boxSizing:"border-box"}})}var M=[],S=[],C=0;if(k.selection&&M.push(T(C++)),_.actions&&_.actions.filter(function(D){return D.position==="row"||typeof D=="function"}).length>0){var P=s.rowActions(_).length;k.actionsColumnIndex===-1?S.push(T(C++,P)):k.actionsColumnIndex>=0&&M.push(T(C++,P))}return _.detailPanel&&k.showDetailPanelIcon&&(k.detailPanelColumnAlignment==="right"?S.push(T(C++)):M.push(T(C++))),_.isTreeData&&M.push(T(C++)),l.createElement(i.default,null,M,(0,o.default)(x).sort(function(D,O){return D.tableData.columnOrder-O.tableData.columnOrder}).map(function(D,O){var R=w({index:D.tableData.columnOrder,column:D,columns:x}),F=D.align!==void 0?D.align:["numeric","currency"].indexOf(D.type)!==-1?"right":"left",A="",z=(0,f.getStyle)({columnDef:D,scrollWidth:0});return(0,u.default)(R)==="object"&&R!==null?(A=R.value,z=R.style):A=R,l.createElement(a.default,{key:O,style:z,align:F},A)}),S)}v.propTypes={columns:d.default.array,renderSummaryRow:d.default.func};var g=v;e.default=g}(Rm)),Rm}var Lm={};const yY=qn(Z9);var D3;function bY(){return D3||(D3=1,function(e){var t=Rn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableToolbar=M,e.default=void 0;var i=t(hr()),u=t(Jr()),o=t(zo),a=t(io()),n=t(qo),l=t(X4),f=t(ql),s=t(yY),c=t(Oy),d=t(Ld),h=t(K4),p=t(Wo),m=t(Ud),y=$l,v=t(Or),g=_($e),b=ei();function x(O){if(typeof WeakMap!="function")return null;var R=new WeakMap,F=new WeakMap;return(x=function(z){return z?F:R})(O)}function _(O,R){if(O&&O.__esModule)return O;if(O===null||r(O)!=="object"&&typeof O!="function")return{default:O};var F=x(R);if(F&&F.has(O))return F.get(O);var A={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in O)if(B!=="default"&&Object.prototype.hasOwnProperty.call(O,B)){var $=z?Object.getOwnPropertyDescriptor(O,B):null;$&&($.get||$.set)?Object.defineProperty(A,B,$):A[B]=O[B]}return A.default=O,F&&F.set(O,A),A}function w(O,R){var F=Object.keys(O);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(O);R&&(A=A.filter(function(z){return Object.getOwnPropertyDescriptor(O,z).enumerable})),F.push.apply(F,A)}return F}function k(O){for(var R=1;ROe.tableData.columnOrder?1:-1}),pe=P(O.data()),Te=pe.map(function(Se){return se.reduce(function(Oe,Me){var ce;return typeof Me.customExport=="function"?ce=Me.customExport(Se):ce=O.getFieldValue(Se,Me),Oe[Me.field]=ce,Oe},{})});return[se,Te]};function Y(){return te.search?g.default.createElement(d.default,{autoFocus:te.searchAutoFocus,sx:te.searchFieldAlignment==="left"&&te.showTitle===!1?void 0:S.searchField,value:B,onChange:function(se){return U(se.target.value)},placeholder:F.searchPlaceholder,variant:te.searchFieldVariant,InputProps:{startAdornment:g.default.createElement(l.default,{position:"start"},g.default.createElement(p.default,{title:F.searchTooltip},g.default.createElement(V.Search,{fontSize:"small"}))),endAdornment:g.default.createElement(l.default,{position:"end"},g.default.createElement(f.default,{disabled:!B,onClick:function(){return U("")},"aria-label":F.clearSearchAriaLabel},g.default.createElement(V.ResetSearch,{fontSize:"small","aria-label":"clear"}))),style:te.searchFieldStyle,inputProps:{"aria-label":F.searchAriaLabel}}}):null}function Z(le){var se=le?"toolbarOnSelect":"toolbar";return g.default.createElement("div",{style:{display:"flex"}},te.columnsButton&&!le&&g.default.createElement("span",null,g.default.createElement(p.default,{title:F.showColumnsTitle},g.default.createElement(f.default,{color:"inherit",onClick:function(Te){return H(Te.currentTarget)},"aria-label":F.showColumnsAriaLabel},g.default.createElement(V.ViewColumn,null))),g.default.createElement(s.default,{anchorEl:q,open:!!q,onClose:function(){return H(null)}},g.default.createElement(c.default,{key:"text",disabled:!0,style:{opacity:1,fontWeight:600,fontSize:12}},F.addRemoveColumns),O.columns.map(function(pe){var Te=pe.hiddenByColumnsButton!==void 0?pe.hiddenByColumnsButton:O.columnsHiddenInColumnsButton;return Te?null:g.default.createElement("li",{key:pe.tableData.id},g.default.createElement(c.default,{sx:S.formControlLabel,component:"label",htmlFor:"column-toggle-".concat(pe.tableData.id),disabled:pe.removable===!1},g.default.createElement(n.default,{checked:!pe.hidden,id:"column-toggle-".concat(pe.tableData.id),onChange:function(){return O.onColumnsChanged(pe,!pe.hidden)}}),g.default.createElement("span",null,pe.title)))}))),te.exportMenu.length>0&&g.default.createElement("span",null,g.default.createElement(p.default,{title:F.exportTitle},g.default.createElement(f.default,{color:"inherit",onClick:function(Te){return W(Te.currentTarget)},"aria-label":F.exportAriaLabel},g.default.createElement(V.Export,null))),g.default.createElement(s.default,{anchorEl:E,open:!!E,onClose:function(){return W(null)}},te.exportMenu.map(function(pe,Te){var Se=Q(),Oe=(0,a.default)(Se,2),Me=Oe[0],ce=Oe[1];return g.default.createElement(c.default,{key:"".concat(pe.label).concat(Te),onClick:function(){pe.exportFunc(Me,ce,{searchedData:O.dataManager.searchedData,filteredData:O.dataManager.filteredData,groupedData:O.dataManager.groupedData,selectedData:ee}),W(null)}},pe.label)}))),g.default.createElement("span",null,g.default.createElement(O.components.Actions,{actions:O.actions&&O.actions.filter(function(pe){return pe.position===se}),data:le?ee:void 0,components:O.components})))}function X(){return g.default.createElement(o.default,{sx:S.actions},g.default.createElement("div",null,Z(ee.length>0)))}function re(le){var se=typeof le=="string"?g.default.createElement(m.default,{variant:"h6",style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},le):le;return g.default.createElement(o.default,{sx:S.title},se)}var ie=te.showTextRowsSelected&&ee.length>0?typeof F.nRowsSelected=="function"?F.nRowsSelected(ee.length):F.nRowsSelected.replace("{0}",ee.length):te.showTitle?O.title:null;return g.default.createElement(h.default,{ref:O.forwardedRef,className:O.className,sx:k(k({},S.root),te.showTextRowsSelected&&ee.length>0?S.highlight(R):{})},ie&&re(ie),te.searchFieldAlignment==="left"&&Y(),te.toolbarButtonAlignment==="left"&&X(),g.default.createElement(o.default,{sx:S.spacer}),te.searchFieldAlignment==="right"&&Y(),te.toolbarButtonAlignment==="right"&&X())}M.defaultProps={actions:[],columns:[],columnsHiddenInColumnsButton:!1,searchText:"",originalData:[],title:"No Title!"},M.propTypes={actions:v.default.array,className:v.default.string,columns:v.default.array,components:v.default.object.isRequired,getFieldValue:v.default.func.isRequired,onColumnsChanged:v.default.func.isRequired,dataManager:v.default.object.isRequired,searchText:v.default.string,onSearchChanged:v.default.func.isRequired,originalData:v.default.array,title:v.default.oneOfType([v.default.element,v.default.string]),renderData:v.default.array,data:v.default.oneOfType([v.default.array,v.default.func]),exportAllData:v.default.bool,exportMenu:v.default.arrayOf(v.default.shape({name:v.default.string,handler:v.default.func})),searchAutoFocus:v.default.bool,classes:v.default.object};var S={root:{paddingRight:1,paddingLeft:2},highlight:function(R){return R.palette.mode==="light"?{color:R.palette.secondary.main,backgroundColor:(0,y.lighten)(R.palette.secondary.light,.85)}:{color:R.palette.text.primary,backgroundColor:R.palette.secondary.dark}},spacer:{flex:"1 1 10%"},actions:{color:"text.secondary"},title:{overflow:"hidden"},searchField:{minWidth:150,paddingLeft:2},formControlLabel:{px:1}},C=g.default.forwardRef(function(R,F){return g.default.createElement(M,(0,i.default)({},R,{forwardedRef:F}))});function P(O){for(var R=O;Array.isArray((F=R)===null||F===void 0||(A=F[0])===null||A===void 0?void 0:A.data);){var F,A;R=R.map(function(z){return z.groups.length!==0?z.groups:z.data}).flat()}return R}var D=g.default.memo(C);e.default=D}(Lm)),Lm}var E3;function Jd(){return E3||(E3=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Container",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"MTableAction",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"MTableActions",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"MTableBody",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"MTableBodyRow",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"MTableCell",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"MTableCustomIcon",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"MTableEditCell",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"MTableEditField",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"MTableEditRow",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"MTableFilterRow",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"MTableGroupRow",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"MTableGroupbar",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"MTableHeader",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"MTablePagination",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"MTableScrollbar",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"MTableSteppedPagination",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"MTableSummaryRow",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"MTableToolbar",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"OverlayError",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"OverlayLoading",{enumerable:!0,get:function(){return r.default}});var r=t(yE()),i=t(uR()),u=t(dR()),o=t(pR()),a=t(bR()),n=t(Pz()),l=t(Dz()),f=t(Iz()),s=t(Fz()),c=t(Bz()),d=t(Wz()),h=t(Uz()),p=t(Hz()),m=t(Z4()),y=t(uY()),v=t(cY()),g=t(hY()),b=t(gY()),x=t(mY()),_=t(vY()),w=t(bY())}(fg)),fg}var R3;function pC(){return R3||(R3=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(vE),i=Jd(),u={Action:i.MTableAction,Actions:i.MTableActions,Body:i.MTableBody,Cell:i.MTableCell,Container:i.Container,EditCell:i.MTableEditCell,EditField:i.MTableEditField,EditRow:i.MTableEditRow,FilterRow:i.MTableFilterRow,Groupbar:i.MTableGroupbar,GroupRow:i.MTableGroupRow,Header:i.MTableHeader,OverlayLoading:i.OverlayLoading,OverlayError:i.OverlayError,Pagination:r.default,Row:i.MTableBodyRow,SummaryRow:i.MTableSummaryRow,Toolbar:i.MTableToolbar};e.default=u}(cg)),cg}var L3;function xY(){if(L3)return vs;L3=1;var e=Rn;Object.defineProperty(vs,"__esModule",{value:!0}),vs.defaultProps=void 0;var t=e(pC()),r=e(PS()),i=e(OS()),u=e(AS()),o={actions:[],classes:{},columns:[],components:t.default,data:[],icons:r.default,isLoading:!1,title:"Table Title",options:u.default,localization:i.default,style:{}};return vs.defaultProps=o,vs}var Bs={},zs={},I3;function C1(){if(I3)return zs;I3=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.ALL_COLUMNS=void 0;var e="all_columns";return zs.ALL_COLUMNS=e,zs}var F3;function wY(){if(F3)return Bs;F3=1;var e=Rn;Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.propTypes=void 0;var t=e(Or),r=C1(),i=t.default.shape({current:t.default.element}),u=t.default.shape({classes:t.default.object,innerRef:i}),o={actions:t.default.arrayOf(t.default.oneOfType([t.default.func,t.default.shape({icon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,i]).isRequired,isFreeAction:t.default.bool,position:t.default.oneOf(["auto","toolbar","toolbarOnSelect","row"]),tooltip:t.default.string,onClick:t.default.func.isRequired,onMouseEnter:t.default.func,onMouseLeave:t.default.func,iconProps:t.default.object,disabled:t.default.bool,hidden:t.default.bool}),t.default.shape({action:t.default.func,position:t.default.oneOf(["auto","toolbar","toolbarOnSelect","row"])})])),renderSummaryRow:t.default.func,columns:t.default.arrayOf(t.default.shape({cellStyle:t.default.oneOfType([t.default.object,t.default.func]),currencySetting:t.default.shape({locale:t.default.string,currencyCode:t.default.string,minimumFractionDigits:t.default.number,maximumFractionDigits:t.default.number}),ariaLabel:t.default.string,ariaSortAsc:t.default.oneOf(["ascending","descending","none","other"]),ariaSortDesc:t.default.oneOf(["ascending","descending","none","other"]),draggable:t.default.bool,customFilterAndSearch:t.default.func,customSort:t.default.func,customExport:t.default.func,defaultFilter:t.default.any,defaultSort:t.default.oneOf(["asc","desc"]),editComponent:t.default.oneOfType([t.default.element,t.default.func]),emptyValue:t.default.oneOfType([t.default.string,t.default.node,t.default.func]),export:t.default.bool,field:t.default.oneOfType([t.default.string,t.default.arrayOf(t.default.string)]),filtering:t.default.bool,filterCellStyle:t.default.object,filterPlaceholder:t.default.string,filterComponent:t.default.oneOfType([t.default.element,t.default.func]),grouping:t.default.bool,headerStyle:t.default.object,hidden:t.default.bool,hideFilterIcon:t.default.bool,initialEditValue:t.default.any,lookup:t.default.object,editable:t.default.oneOfType([t.default.func,t.default.oneOf(["always","onUpdate","onAdd","never"])]),removable:t.default.bool,render:t.default.func,searchable:t.default.bool,sorting:t.default.bool,title:t.default.oneOfType([t.default.element,t.default.string]),type:t.default.oneOf(["string","boolean","numeric","date","datetime","time","currency"])})).isRequired,components:t.default.shape({Action:t.default.oneOfType([t.default.element,t.default.func,u]),Actions:t.default.oneOfType([t.default.element,t.default.func,u]),Body:t.default.oneOfType([t.default.element,t.default.func,u]),Cell:t.default.oneOfType([t.default.element,t.default.func,u]),Container:t.default.oneOfType([t.default.element,t.default.func,u]),EditField:t.default.oneOfType([t.default.element,t.default.func,u]),EditRow:t.default.oneOfType([t.default.element,t.default.func,u]),FilterRow:t.default.oneOfType([t.default.element,t.default.func,u]),Groupbar:t.default.oneOfType([t.default.element,t.default.func,u]),GroupRow:t.default.oneOfType([t.default.element,t.default.func,u]),Header:t.default.oneOfType([t.default.element,t.default.func,u]),OverlayLoading:t.default.oneOfType([t.default.element,t.default.func,u]),OverlayError:t.default.oneOfType([t.default.element,t.default.func,u]),Pagination:t.default.oneOfType([t.default.element,t.default.func,u]),Row:t.default.oneOfType([t.default.element,t.default.func,u]),Toolbar:t.default.oneOfType([t.default.element,t.default.func,u])}),data:t.default.oneOfType([t.default.arrayOf(t.default.object),t.default.func]).isRequired,editable:t.default.shape({isEditable:t.default.func,isBulkEditable:t.default.func,isDeletable:t.default.func,onRowAdd:t.default.func,onRowUpdate:t.default.func,onRowDelete:t.default.func,onRowAddCancelled:t.default.func,onRowUpdateCancelled:t.default.func,isEditHidden:t.default.func,isDeleteHidden:t.default.func}),detailPanel:t.default.oneOfType([t.default.func,t.default.arrayOf(t.default.oneOfType([t.default.func,t.default.shape({disabled:t.default.bool,icon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,i]),openIcon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,i]),tooltip:t.default.string,render:t.default.func.isRequired})]))]),icons:t.default.shape({Add:t.default.oneOfType([t.default.element,t.default.func,i]),Check:t.default.oneOfType([t.default.element,t.default.func,i]),Clear:t.default.oneOfType([t.default.element,t.default.func,i]),Delete:t.default.oneOfType([t.default.element,t.default.func,i]),DetailPanel:t.default.oneOfType([t.default.element,t.default.func,i]),Edit:t.default.oneOfType([t.default.element,t.default.func,i]),Export:t.default.oneOfType([t.default.element,t.default.func,i]),Filter:t.default.oneOfType([t.default.element,t.default.func,i]),FirstPage:t.default.oneOfType([t.default.element,t.default.func,i]),LastPage:t.default.oneOfType([t.default.element,t.default.func,i]),NextPage:t.default.oneOfType([t.default.element,t.default.func,i]),PreviousPage:t.default.oneOfType([t.default.element,t.default.func,i]),Refresh:t.default.oneOfType([t.default.element,t.default.func,i]),ResetSearch:t.default.oneOfType([t.default.element,t.default.func,i]),Search:t.default.oneOfType([t.default.element,t.default.func,i]),SortArrow:t.default.oneOfType([t.default.element,t.default.func,i]),ThirdStateCheck:t.default.oneOfType([t.default.element,t.default.func,i]),ViewColumn:t.default.oneOfType([t.default.element,t.default.func,i])}),isLoading:t.default.bool,title:t.default.oneOfType([t.default.element,t.default.string]),options:t.default.shape({actionsCellStyle:t.default.object,editCellStyle:t.default.object,idSynonym:t.default.string,detailPanelColumnStyle:t.default.object,actionsColumnIndex:t.default.number,addRowPosition:t.default.oneOf(["first","last"]),columnsButton:t.default.bool,defaultExpanded:t.default.oneOfType([t.default.bool,t.default.func]),debounceInterval:t.default.number,detailPanelType:t.default.oneOf(["single","multiple"]),doubleHorizontalScroll:t.default.bool,emptyRowsWhenPaging:t.default.bool,exportAllData:t.default.bool,exportMenu:t.default.arrayOf(t.default.shape({label:t.default.string,exportFunc:t.default.func})),filtering:t.default.bool,filterCellStyle:t.default.object,filterRowStyle:t.default.object,header:t.default.bool,headerSelectionProps:t.default.object,headerStyle:t.default.object,hideFilterIcons:t.default.bool,initialPage:t.default.number,maxBodyHeight:t.default.oneOfType([t.default.number,t.default.string]),minBodyHeight:t.default.oneOfType([t.default.number,t.default.string]),loadingType:t.default.oneOf(["overlay","linear"]),overflowY:t.default.oneOf(["visible","hidden","scroll","auto","initial","inherit","overlay"]),padding:t.default.oneOf(["normal","dense"]),paging:t.default.bool,pageSize:t.default.number,pageSizeOptions:t.default.arrayOf(t.default.number),paginationType:t.default.oneOf(["normal","stepped"]),paginationPosition:t.default.oneOf(["bottom","top","both"]),persistentGroupingsId:t.default.string,rowStyle:t.default.oneOfType([t.default.object,t.default.func]),search:t.default.bool,searchText:t.default.string,searchDebounceDelay:t.default.number,toolbarButtonAlignment:t.default.oneOf(["left","right"]),searchFieldAlignment:t.default.oneOf(["left","right"]),searchFieldStyle:t.default.object,searchAutoFocus:t.default.bool,searchFieldVariant:t.default.oneOf(["standard","filled","outlined"]),selection:t.default.bool,selectionProps:t.default.oneOfType([t.default.object,t.default.func]),showEmptyDataSourceMessage:t.default.bool,showFirstLastPageButtons:t.default.oneOfType([t.default.object,t.default.bool]),showSelectAllCheckbox:t.default.bool,showSelectGroupCheckbox:t.default.bool,showTitle:t.default.bool,showTextRowsSelected:t.default.bool,sorting:t.default.bool,defaultOrderByCollection:t.default.arrayOf(t.default.shape({orderBy:t.default.number,orderDirection:t.default.string,sortOrder:t.default.number,orderIndex:t.default.number})),maxColumnSort:t.default.oneOf([0,1,2,3,4,5,6,7,8,9,10,r.ALL_COLUMNS]),showColumnSortOrder:t.default.bool,sortOrderIndicatorStyle:t.default.object,keepSortDirectionOnColumnSwitch:t.default.bool,clientSorting:t.default.bool,toolbar:t.default.bool,thirdSortClick:t.default.bool,numberOfPagesAround:t.default.oneOf([1,2,3,4,5,6,7,8,9,10])}),localization:t.default.shape({grouping:t.default.shape({groupedBy:t.default.string,placeholder:t.default.string}),pagination:t.default.object,toolbar:t.default.object,header:t.default.object,body:t.default.object}),initialFormData:t.default.object,onSearchChange:t.default.func,onFilterChange:t.default.func,onColumnDragged:t.default.func,onColumnResized:t.default.func,onGroupRemoved:t.default.func,onGroupChange:t.default.func,onSelectionChange:t.default.func,onRowsPerPageChange:t.default.func,onPageChange:t.default.func,onChangeColumnHidden:t.default.func,onOrderChange:t.default.func,onOrderCollectionChange:t.default.func,onRowClick:t.default.func,onRowDoubleClick:t.default.func,onTreeExpandChange:t.default.func,onQueryChange:t.default.func,onBulkEditOpen:t.default.func,tableRef:t.default.any,style:t.default.object,page:t.default.number,totalCount:t.default.number};return Bs.propTypes=o,Bs}var Im={};const _Y=qn(K9),TY=qn(J9),kY=qn(Q9);var Fm,N3;function MY(){if(N3)return Fm;N3=1;function e(t,r,i){var u,o,a,n,l;r==null&&(r=100);function f(){var c=Date.now()-n;c=0?u=setTimeout(f,r-c):(u=null,i||(l=t.apply(a,o),a=o=null))}var s=function(){a=this,o=arguments,n=Date.now();var c=i&&!u;return u||(u=setTimeout(f,r)),c&&(l=t.apply(a,o),a=o=null),l};return s.clear=function(){u&&(clearTimeout(u),u=null)},s.flush=function(){u&&(l=t.apply(a,o),a=o=null,clearTimeout(u),u=null)},s}return e.debounce=e,Fm=e,Fm}var Nm={};const SY=qn($L);var jm={},qs={},Jc={},j3;function gC(){if(j3)return Jc;j3=1,Object.defineProperty(Jc,"__esModule",{value:!0}),Jc.default=r;let e;const t=new Uint8Array(16);function r(){if(!e&&(e=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!e))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(t)}return Jc}var ll={},Ws={},Us={},$3;function CY(){if($3)return Us;$3=1,Object.defineProperty(Us,"__esModule",{value:!0}),Us.default=void 0;var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return Us.default=e,Us}var B3;function Qd(){if(B3)return Ws;B3=1,Object.defineProperty(Ws,"__esModule",{value:!0}),Ws.default=void 0;var e=t(CY());function t(u){return u&&u.__esModule?u:{default:u}}function r(u){return typeof u=="string"&&e.default.test(u)}var i=r;return Ws.default=i,Ws}var z3;function eh(){if(z3)return ll;z3=1,Object.defineProperty(ll,"__esModule",{value:!0}),ll.default=void 0,ll.unsafeStringify=i;var e=t(Qd());function t(a){return a&&a.__esModule?a:{default:a}}const r=[];for(let a=0;a<256;++a)r.push((a+256).toString(16).slice(1));function i(a,n=0){return r[a[n+0]]+r[a[n+1]]+r[a[n+2]]+r[a[n+3]]+"-"+r[a[n+4]]+r[a[n+5]]+"-"+r[a[n+6]]+r[a[n+7]]+"-"+r[a[n+8]]+r[a[n+9]]+"-"+r[a[n+10]]+r[a[n+11]]+r[a[n+12]]+r[a[n+13]]+r[a[n+14]]+r[a[n+15]]}function u(a,n=0){const l=i(a,n);if(!(0,e.default)(l))throw TypeError("Stringified UUID is invalid");return l}var o=u;return ll.default=o,ll}var q3;function OY(){if(q3)return qs;q3=1,Object.defineProperty(qs,"__esModule",{value:!0}),qs.default=void 0;var e=r(gC()),t=eh();function r(f){return f&&f.__esModule?f:{default:f}}let i,u,o=0,a=0;function n(f,s,c){let d=s&&c||0;const h=s||new Array(16);f=f||{};let p=f.node||i,m=f.clockseq!==void 0?f.clockseq:u;if(p==null||m==null){const _=f.random||(f.rng||e.default)();p==null&&(p=i=[_[0]|1,_[1],_[2],_[3],_[4],_[5]]),m==null&&(m=u=(_[6]<<8|_[7])&16383)}let y=f.msecs!==void 0?f.msecs:Date.now(),v=f.nsecs!==void 0?f.nsecs:a+1;const g=y-o+(v-a)/1e4;if(g<0&&f.clockseq===void 0&&(m=m+1&16383),(g<0||y>o)&&f.nsecs===void 0&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");o=y,a=v,u=m,y+=122192928e5;const b=((y&268435455)*1e4+v)%4294967296;h[d++]=b>>>24&255,h[d++]=b>>>16&255,h[d++]=b>>>8&255,h[d++]=b&255;const x=y/4294967296*1e4&268435455;h[d++]=x>>>8&255,h[d++]=x&255,h[d++]=x>>>24&15|16,h[d++]=x>>>16&255,h[d++]=m>>>8|128,h[d++]=m&255;for(let _=0;_<6;++_)h[d+_]=p[_];return s||(0,t.unsafeStringify)(h)}var l=n;return qs.default=l,qs}var Hs={},Ui={},Vs={},W3;function mC(){if(W3)return Vs;W3=1,Object.defineProperty(Vs,"__esModule",{value:!0}),Vs.default=void 0;var e=t(Qd());function t(u){return u&&u.__esModule?u:{default:u}}function r(u){if(!(0,e.default)(u))throw TypeError("Invalid UUID");let o;const a=new Uint8Array(16);return a[0]=(o=parseInt(u.slice(0,8),16))>>>24,a[1]=o>>>16&255,a[2]=o>>>8&255,a[3]=o&255,a[4]=(o=parseInt(u.slice(9,13),16))>>>8,a[5]=o&255,a[6]=(o=parseInt(u.slice(14,18),16))>>>8,a[7]=o&255,a[8]=(o=parseInt(u.slice(19,23),16))>>>8,a[9]=o&255,a[10]=(o=parseInt(u.slice(24,36),16))/1099511627776&255,a[11]=o/4294967296&255,a[12]=o>>>24&255,a[13]=o>>>16&255,a[14]=o>>>8&255,a[15]=o&255,a}var i=r;return Vs.default=i,Vs}var U3;function vC(){if(U3)return Ui;U3=1,Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.URL=Ui.DNS=void 0,Ui.default=a;var e=eh(),t=r(mC());function r(n){return n&&n.__esModule?n:{default:n}}function i(n){n=unescape(encodeURIComponent(n));const l=[];for(let f=0;f>5]>>>v%32&255,b=parseInt(y.charAt(g>>>4&15)+y.charAt(g&15),16);p.push(b)}return p}function r(h){return(h+64>>>9<<4)+14+1}function i(h,p){h[p>>5]|=128<>5]|=(h[y/8]&255)<>16)+(p>>16)+(m>>16)<<16|m&65535}function a(h,p){return h<>>32-p}function n(h,p,m,y,v,g){return o(a(o(o(p,h),o(y,g)),v),m)}function l(h,p,m,y,v,g,b){return n(p&m|~p&y,h,p,v,g,b)}function f(h,p,m,y,v,g,b){return n(p&y|m&~y,h,p,v,g,b)}function s(h,p,m,y,v,g,b){return n(p^m^y,h,p,v,g,b)}function c(h,p,m,y,v,g,b){return n(m^(p|~y),h,p,v,g,b)}var d=e;return Ys.default=d,Ys}var V3;function PY(){if(V3)return Hs;V3=1,Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.default=void 0;var e=r(vC()),t=r(AY());function r(o){return o&&o.__esModule?o:{default:o}}var u=(0,e.default)("v3",48,t.default);return Hs.default=u,Hs}var Gs={},Xs={},Y3;function DY(){if(Y3)return Xs;Y3=1,Object.defineProperty(Xs,"__esModule",{value:!0}),Xs.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return Xs.default=t,Xs}var G3;function EY(){if(G3)return Gs;G3=1,Object.defineProperty(Gs,"__esModule",{value:!0}),Gs.default=void 0;var e=i(DY()),t=i(gC()),r=eh();function i(a){return a&&a.__esModule?a:{default:a}}function u(a,n,l){if(e.default.randomUUID&&!n&&!a)return e.default.randomUUID();a=a||{};const f=a.random||(a.rng||t.default)();if(f[6]=f[6]&15|64,f[8]=f[8]&63|128,n){l=l||0;for(let s=0;s<16;++s)n[l+s]=f[s];return n}return(0,r.unsafeStringify)(f)}var o=u;return Gs.default=o,Gs}var Zs={},Ks={},X3;function RY(){if(X3)return Ks;X3=1,Object.defineProperty(Ks,"__esModule",{value:!0}),Ks.default=void 0;function e(u,o,a,n){switch(u){case 0:return o&a^~o&n;case 1:return o^a^n;case 2:return o&a^o&n^a&n;case 3:return o^a^n}}function t(u,o){return u<>>32-o}function r(u){const o=[1518500249,1859775393,2400959708,3395469782],a=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof u=="string"){const s=unescape(encodeURIComponent(u));u=[];for(let c=0;c>>0;y=m,m=p,p=t(h,30)>>>0,h=d,d=b}a[0]=a[0]+d>>>0,a[1]=a[1]+h>>>0,a[2]=a[2]+p>>>0,a[3]=a[3]+m>>>0,a[4]=a[4]+y>>>0}return[a[0]>>24&255,a[0]>>16&255,a[0]>>8&255,a[0]&255,a[1]>>24&255,a[1]>>16&255,a[1]>>8&255,a[1]&255,a[2]>>24&255,a[2]>>16&255,a[2]>>8&255,a[2]&255,a[3]>>24&255,a[3]>>16&255,a[3]>>8&255,a[3]&255,a[4]>>24&255,a[4]>>16&255,a[4]>>8&255,a[4]&255]}var i=r;return Ks.default=i,Ks}var Z3;function LY(){if(Z3)return Zs;Z3=1,Object.defineProperty(Zs,"__esModule",{value:!0}),Zs.default=void 0;var e=r(vC()),t=r(RY());function r(o){return o&&o.__esModule?o:{default:o}}var u=(0,e.default)("v5",80,t.default);return Zs.default=u,Zs}var Js={},K3;function IY(){if(K3)return Js;K3=1,Object.defineProperty(Js,"__esModule",{value:!0}),Js.default=void 0;var e="00000000-0000-0000-0000-000000000000";return Js.default=e,Js}var Qs={},J3;function FY(){if(J3)return Qs;J3=1,Object.defineProperty(Qs,"__esModule",{value:!0}),Qs.default=void 0;var e=t(Qd());function t(u){return u&&u.__esModule?u:{default:u}}function r(u){if(!(0,e.default)(u))throw TypeError("Invalid UUID");return parseInt(u.slice(14,15),16)}var i=r;return Qs.default=i,Qs}var Q3;function NY(){return Q3||(Q3=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return a.default}});var t=s(OY()),r=s(PY()),i=s(EY()),u=s(LY()),o=s(IY()),a=s(FY()),n=s(Qd()),l=s(eh()),f=s(mC());function s(c){return c&&c.__esModule?c:{default:c}}}(jm)),jm}var eT;function jY(){return eT||(eT=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(zl()),i=t(Ed()),u=t(Rd()),o=t(Jr()),a=t(SY),n=NY(),l=Wd(),f=Li(),s=C1();function c(v,g){var b=Object.keys(v);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(v);g&&(x=x.filter(function(_){return Object.getOwnPropertyDescriptor(v,_).enumerable})),b.push.apply(b,x)}return b}function d(v){for(var g=1;g=v.length?{done:!0}:{done:!1,value:v[x++]}},e:function(S){throw S},f:_}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w=!0,k=!1,T;return{s:function(){b=b.call(v)},n:function(){var S=b.next();return w=S.done,S},e:function(S){k=!0,T=S},f:function(){try{!w&&b.return!=null&&b.return()}finally{if(k)throw T}}}}function p(v,g){if(v){if(typeof v=="string")return m(v,g);var b=Object.prototype.toString.call(v).slice(8,-1);if(b==="Object"&&v.constructor&&(b=v.constructor.name),b==="Map"||b==="Set")return Array.from(v);if(b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b))return m(v,g)}}function m(v,g){(g==null||g>v.length)&&(g=v.length);for(var b=0,x=new Array(g);b0?T(S.groups):S.data.forEach(function(C){C.tableData.checked!==b&&(C.tableData.checked=C.tableData.disabled?!1:b,g.selectedCount=g.selectedCount+(b?1:-1))})})};k([_])}),(0,o.default)(this,"getOrderByCollection",function(){return g.orderByCollection.filter(function(b){return b.sortOrder})}),(0,o.default)(this,"sortOrderCollection",function(b){return b.sort(function(x,_){return x.sortOrder?_.sortOrder?x.sortOrder-_.sortOrder:-1:1})}),(0,o.default)(this,"startCellEditable",function(b,x){b.tableData.editCellList=[].concat((0,r.default)(b.tableData.editCellList||[]),[x])}),(0,o.default)(this,"finishCellEditable",function(b,x){if(b.tableData.editCellList){var _=b.tableData.editCellList.findIndex(function(w){return w.tableData.id.toString()===x.tableData.id.toString()});_!==-1&&b.tableData.editCellList.splice(_,1)}}),(0,o.default)(this,"clearBulkEditChangedRows",function(){g.bulkEditChangedRows={}}),(0,o.default)(this,"onBulkEditRowChanged",function(b,x){g.bulkEditChangedRows[b.tableData.id]={oldData:b,newData:x}}),(0,o.default)(this,"expandTreeForNodes",function(b){b.forEach(function(x){for(var _=x;g.parentFunc(_,g.data);){var w=g.parentFunc(_,g.data);w&&(w.tableData.isTreeExpanded=!0),_=w}})}),(0,o.default)(this,"findDataByPath",function(b,x){if(g.isDataType("tree")){var _=x.reduce(function(T,M){return T&&T.tableData&&T.tableData.childRows&&T.tableData.childRows.find(function(S){return S&&S.tableData.uuid===M})},{tableData:{childRows:b}});return _}else{var w={groups:b},k=x.reduce(function(T,M){return T.groups.length>0?T.groups[M]:T.data?T.data[M]||T.data.find(function(S){var C;return((C=S.tableData)===null||C===void 0?void 0:C.uuid)===M}):void 0},w);return k}}),(0,o.default)(this,"getFieldValue",function(b,x){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,w=typeof b[x.field]<"u"?b[x.field]:(0,l.selectFromObject)(b,x.field);return x.lookup&&_&&(w=x.lookup[w]),w}),(0,o.default)(this,"getRenderState",function(){return g.filtered===!1&&g.filterData(),g.searched===!1&&g.searchData(),g.grouped===!1&&g.isDataType("group")&&g.groupData(),g.treefied===!1&&g.isDataType("tree")&&g.treefyData(),g.sorted===!1&&g.sortData(),g.paged===!1&&g.pageData(),{columns:g.columns,currentPage:g.currentPage,data:g.sortedData,lastEditingRow:g.lastEditingRow,orderByCollection:g.orderByCollection,maxColumnSort:g.maxColumnSort,originalData:(0,r.default)(g.data),pageSize:g.pageSize,renderData:g.pagedData,searchText:g.searchText,selectedCount:g.selectedCount,treefiedDataLength:g.treefiedDataLength,treeDataMaxLevel:g.treeDataMaxLevel,groupedDataLength:g.groupedDataLength,tableStyleWidth:g.tableStyleWidth}}),(0,o.default)(this,"filterData",function(){g.searched=g.grouped=g.treefied=g.sorted=g.paged=!1,g.filteredData=(0,r.default)(g.data),g.applyFilters&&g.columns.filter(function(b){return b.tableData.filterValue!==void 0}).forEach(function(b){var x=b.lookup,_=b.type,w=b.tableData;b.customFilterAndSearch?g.filteredData=g.filteredData.filter(function(k){return!!b.customFilterAndSearch(w.filterValue,k,b)}):x?g.filteredData=g.filteredData.filter(function(k){var T=g.getFieldValue(k,b,!1);return!w.filterValue||w.filterValue.length===0||w.filterValue.indexOf(T!=null&&T.toString())>-1}):_==="numeric"?g.filteredData=g.filteredData.filter(function(k){var T=g.getFieldValue(k,b);return T+""===w.filterValue}):_==="boolean"&&w.filterValue?g.filteredData=g.filteredData.filter(function(k){var T=g.getFieldValue(k,b);return T&&w.filterValue==="checked"||!T&&w.filterValue==="unchecked"}):["date","datetime"].includes(_)?g.filteredData=g.filteredData.filter(function(k){var T=g.getFieldValue(k,b),M=T?new Date(T):null;if(M&&M.toString()!=="Invalid Date"){var S=w.filterValue,C="",P="";return _==="date"?(C=(0,a.default)(M,"MM/dd/yyyy"),P=(0,a.default)(S,"MM/dd/yyyy")):_==="datetime"&&(C=(0,a.default)(M,"MM/dd/yyyy - HH:mm"),P=(0,a.default)(S,"MM/dd/yyyy - HH:mm")),C===P}return!0}):_==="time"?g.filteredData=g.filteredData.filter(function(k){var T=g.getFieldValue(k,b),M=T||null;if(M){var S=w.filterValue,C=(0,a.default)(S,"HH:mm");return M===C}return!0}):g.filteredData=g.filteredData.filter(function(k){var T=g.getFieldValue(k,b);return T!=null&&T.toString().toUpperCase().includes(w.filterValue.toUpperCase())})}),g.filtered=!0}),(0,o.default)(this,"searchData",function(){if(g.grouped=g.treefied=g.sorted=g.paged=!1,g.searchedData=(0,r.default)(g.filteredData),g.searchText&&g.applySearch){var b=g.searchText.trim();g.searchedData=g.searchedData.filter(function(x){return g.columns.filter(function(_){return _.searchable===void 0?!_.hidden:_.searchable}).some(function(_){if(_.customFilterAndSearch)return!!_.customFilterAndSearch(b,x,_);if(_.field){var w=g.getFieldValue(x,_);if(w)return w.toString().toUpperCase().includes(b.toUpperCase())}return!1})})}g.searched=!0}),(0,o.default)(this,"clearCriteria",function(){g.changeOrder(-1,""),g.changeSearchText("");var b=h(g.columns),x;try{for(b.s();!(x=b.n()).done;){var _=x.value;g.changeFilterValue(_.tableData.id,"")}}catch(w){b.e(w)}finally{b.f()}g.changeSearchText(""),g.changePaging(0)})}return(0,u.default)(v,[{key:"setData",value:function(b,x){var _=this;this.selectedCount=0;var w={};this.data.length!==0&&this.data[0][x]!==void 0&&(w=this.data.reduce(function(k,T){return k[T.tableData.id]=T.tableData,k},{})),this.data=b.map(function(k,T){var M=w[k[x]]||{},S=d(d({index:T,id:k[x]||T,uuid:k.uuid||(0,n.v4)()},M),k.tableData);S.checked&&_.selectedCount++;var C=d(d({},k),{},{tableData:S});return _.lastDetailPanelRow&&_.lastDetailPanelRow.tableData===M&&(_.lastDetailPanelRow=C),_.lastEditingRow&&_.lastEditingRow.tableData===M&&(_.lastEditingRow=C),C}),this.filtered=!1}},{key:"setTableWidth",value:function(b){this.tableWidth=b}},{key:"setColumns",value:function(b){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},w=0,k=[];this.columns=b.map(function(S,C){var P,D=(0,f.widthToNumber)(S.width),O=typeof S.width=="number"?S.width+"px":S.width;O&&(isNaN(D)?k.push(O):w+=D);var R=x.find(function(z){var B=z.id;return B===C}),F=(P=_[S.field])!==null&&P!==void 0?P:{},A=d(d(d(d({columnOrder:C,filterValue:S.defaultFilter,groupOrder:S.defaultGroupOrder,groupSort:S.defaultGroupSort||"asc",width:O,initialWidth:O,widthPx:isNaN(D)?void 0:D,additionalWidth:0},F),R?R.tableData:{}),S.tableData),{},{id:C});return S.tableData=A,S});var T=this.columns.filter(function(S){return S.hidden||S.columnDef&&S.columnDef.tableData&&S.columnDef.tableData.width?!1:S.width===void 0}),M=(w!==0?"".concat(w,"px"):"0px")+(k.length>0?" - "+k.join(" - "):"");T.forEach(function(S){S.tableData.width=S.tableData.initialWidth="calc((100% - ".concat(M,") / ").concat(T.length,")")}),this.tableStyleWidth=this.tableWidth==="full"||T.length>0||k.length>0?"100%":w}},{key:"setDefaultExpanded",value:function(b){this.defaultExpanded=b}},{key:"setClientSorting",value:function(b){this.clientSorting=!!b}},{key:"setMaxColumnSort",value:function(b){var x=this.columns.filter(function(_){return _.sorting!==!1}).length;b===s.ALL_COLUMNS?this.maxColumnSort=x:this.maxColumnSort=Math.min(b,x)}},{key:"setOrderByCollection",value:function(){var b=this.getOrderByCollection(),x=this.columns.map(function(_){var w=_.tableData.id,k=b.find(function(T){return T.orderBy===w});return k?d({},k):{orderBy:_.tableData.id,sortOrder:void 0,orderDirection:""}});x=this.sortOrderCollection(x),this.orderByCollection=(0,r.default)(x)}},{key:"setDefaultOrderByCollection",value:function(b){this.defaultOrderByCollection=(0,r.default)(b)}},{key:"getDefaultOrderByCollection",value:function(){return this.defaultOrderByCollection}},{key:"changeApplySearch",value:function(b){this.applySearch=b,this.searched=!1}},{key:"changeApplyFilters",value:function(b){this.applyFilters=b,this.filtered=!1}},{key:"changeApplySort",value:function(b){this.applySort=b,this.sorted=!1}},{key:"changePaging",value:function(b){this.paging=b,this.paged=!1}},{key:"changeCurrentPage",value:function(b){this.currentPage=b,this.paged=!1}},{key:"changePageSize",value:function(b){this.pageSize=b,this.paged=!1}},{key:"changeParentFunc",value:function(b){this.parentFunc=b}},{key:"changeFilterValue",value:function(b,x){var _=this.columns.find(function(w){return w.tableData.id===b});_.tableData.filterValue=x,this.filtered=!1}},{key:"changeRowSelected",value:function(b,x){var _=this,w=this.findDataByPath(this.sortedData,x);w.tableData.checked=b,this.selectedCount=this.selectedCount+(b?1:-1);var k=function T(M){M.tableData.childRows&&M.tableData.childRows.forEach(function(S){S.tableData.checked!==b&&(S.tableData.checked=b,_.selectedCount=_.selectedCount+(b?1:-1)),T(S)})};k(w),this.filtered=!1}},{key:"changeDetailPanelVisibility",value:function(b,x){var _=this.findDataByPath(this.sortedData,b);(_.tableData.showDetailPanel||"").toString()===x.toString()?_.tableData.showDetailPanel=void 0:_.tableData.showDetailPanel=x,this.detailPanelType==="single"&&this.lastDetailPanelRow&&this.lastDetailPanelRow!==_&&(this.lastDetailPanelRow.tableData.showDetailPanel=void 0),this.lastDetailPanelRow=_}},{key:"changeGroupExpand",value:function(b){var x=this.findDataByPath(this.sortedData,b);x.isExpanded=!x.isExpanded}},{key:"changeSearchText",value:function(b){this.searchText=b,this.searched=!1,this.currentPage=0}},{key:"changeSearchDebounce",value:function(b){this.searchDebounceDelay=b}},{key:"changeRowEditing",value:function(b,x){b?(b.tableData.editing=x,this.lastEditingRow&&this.lastEditingRow!==b&&(this.lastEditingRow.tableData.editing=void 0),x?this.lastEditingRow=b:this.lastEditingRow=void 0):this.lastEditingRow&&(this.lastEditingRow.tableData.editing=void 0,this.lastEditingRow=void 0)}},{key:"changeBulkEditOpen",value:function(b){this.bulkEditOpen=b}},{key:"changeAllSelected",value:function(b,x){var _=0,w=function(S){var C=x instanceof Function?x(S):{disabled:!1};return S.tableData.disabled||C.disabled?!1:b};if(this.isDataType("group")){var k=function M(S){S.forEach(function(C){C.groups.length>0?M(C.groups):C.data.forEach(function(P){P.tableData.checked=w(P),_++})})};k(this.groupedData)}else{var T=function M(S){S.tableData.childRows&&S.tableData.childRows.forEach(function(C){C.tableData.checked=w(S),M(C)})};this.searchedData.forEach(function(M){M.tableData.checked=w(M),T(M)}),_=this.searchedData.length}this.selectedCount=b?_:0}},{key:"changeColumnOrder",value:function(b,x,_){var w=[],k=this.getOrderByCollection();k.length===this.maxColumnSort&&!_?(this.orderByCollection[0].orderDirection="",this.orderByCollection[0].sortOrder=void 0,w=this.orderByCollection.map(function(T){return T.sortOrder?T.sortOrder-=1:T.orderBy===b&&x&&(T.sortOrder=k.length,T.orderDirection=x),T})):w=this.orderByCollection.map(function(T){return T.orderBy===b&&x?(T.orderDirection=x,T.sortOrder=_||k.length+1):!x&&T.orderBy===b?(T.orderDirection=x,T.sortOrder=void 0):!x&&_-1}).sort(function(W,G){return W.tableData.groupOrder-G.tableData.groupOrder});if(b.destination.droppableId==="groups"&&b.source.droppableId==="groups"){x=Math.min(b.destination.index,b.source.index);var w=Math.max(b.destination.index,b.source.index);if(_=_.slice(x,w+1),b.destination.index-1})&&(x="group"),b===x}},{key:"sort",value:function(b,x,_){if(_==="numeric")return b-x;if(b!==x){if(!b)return-1;if(!x)return 1}return bx?1:0}},{key:"sortList",value:function(b){if(!this.clientSorting)return b;var x=this.orderByCollection.map(function(M){return M.orderBy}),_=new Map;this.columns.forEach(function(M){var S=M.tableData.id;x.includes(S)&&_.set(S,M)});var w=this.sort,k=this.getFieldValue,T=this.orderByCollection;return b.sort(function M(S,C){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_,D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:T,O=D[0],R=O.orderBy,F=O.orderDirection,A=P.get(R),z=0;A.customSort?F==="desc"?z=A.customSort(C,S,"row",F):z=A.customSort(S,C,"row",F):(z=w(k(S,A),k(C,A),A.type),z=F.toLowerCase()==="desc"?z*-1:z);var B=z===0&&D.filter(function($){return $.sortOrder!==void 0}).length!==1;return B?M(S,C,P,D.slice(1)):z})}},{key:"groupData",value:function(){var b=this;this.sorted=this.paged=!1,this.groupedDataLength=0;var x=(0,r.default)(this.searchedData),_=this.columns.filter(function(k){return k.tableData.groupOrder>-1}).sort(function(k,T){return k.tableData.groupOrder-T.tableData.groupOrder}),w=x.reduce(function(k,T){var M=k;return M=_.reduce(function(S,C){var P=T[C.field]||(0,l.selectFromObject)(T,C.field),D;if(S.groupsIndex[P]!==void 0&&(D=S.groups[S.groupsIndex[P]]),!D){var O=[].concat((0,r.default)(S.path||[]),[P]),R=b.findGroupByGroupPath(b.groupedData,O)||{isExpanded:typeof b.defaultExpanded=="boolean"?b.defaultExpanded:!1};D={value:P,groups:[],groupsIndex:{},data:[],isExpanded:R.isExpanded,path:O},S.groups.push(D),S.groupsIndex[P]=S.groups.length-1}return D},M),M.data.push(T),b.groupedDataLength++,k},{groups:[],groupsIndex:{}});this.groupedData=w.groups,this.grouped=!0,this.rootGroupsIndex=w.groupsIndex}},{key:"treefyData",value:function(){var b=this;this.sorted=this.paged=!1,this.data.forEach(function(T){return T.tableData.childRows=null}),this.treefiedData=[],this.treefiedDataLength=0,this.treeDataMaxLevel=0,(this.searchText||this.columns.some(function(T){return T.tableData.filterValue}))&&(this.data.forEach(function(T){T.tableData.isTreeExpanded=!1}),this.expandTreeForNodes(this.searchedData));var x=function T(M){M.tableData.markedForTreeRemove=!1;var S=b.parentFunc(M,b.data);S?(S.tableData.childRows=S.tableData.childRows||[],S.tableData.childRows.includes(M)||(S.tableData.childRows.push(M),b.treefiedDataLength++),T(S),M.tableData.path=[].concat((0,r.default)(S.tableData.path),[M.tableData.uuid]),b.treeDataMaxLevel=Math.max(b.treeDataMaxLevel,M.tableData.path.length)):b.treefiedData.includes(M)||(b.treefiedData.push(M),b.treefiedDataLength++,M.tableData.path=[M.tableData.uuid])};this.data.forEach(function(T){x(T)});var _=function(M){var S=b.treefiedData;M.tableData.path.forEach(function(C){S.tableData&&S.tableData.childRows&&(S=S.tableData.childRows),Array.isArray(S)&&(S=S.find(function(P){return P.tableData.uuid===C}))}),S.tableData.markedForTreeRemove=!0},w=function T(M){M.tableData.childRows&&M.tableData.childRows.forEach(function(S){T(S)}),M.tableData.markedForTreeRemove=!1};this.data.forEach(function(T){if(!b.searchText&&!b.columns.some(function(C){return C.tableData.filterValue})&&T.tableData.isTreeExpanded===void 0){var M=typeof b.defaultExpanded=="boolean"?b.defaultExpanded:b.defaultExpanded(T);T.tableData.isTreeExpanded=M}var S=T.tableData.isTreeExpanded;!S&&b.searchedData.indexOf(T)<0&&_(T)}),this.data.forEach(function(T){b.searchedData.indexOf(T)>-1&&w(T)});var k=function T(M){for(var S=M.length-1;S>=0;S--){var C=M[S];C.tableData.childRows&&T(C.tableData.childRows),C.tableData.markedForTreeRemove&&M.splice(S,1)}};k(this.treefiedData),this.treefiedDataLength=this.treefiedData.length,this.treefied=!0}},{key:"sortData",value:function(){var b=this;if(this.paged=!1,this.isDataType("group")){this.sortedData=(0,r.default)(this.groupedData);var x=this.columns.filter(function(M){return M.tableData.groupOrder>-1}).sort(function(M,S){return M.tableData.groupOrder-S.tableData.groupOrder}),_=function(S,C){return C.customSort?S.sort(C.tableData.groupSort==="desc"?function(P,D){return C.customSort(D.value,P.value,"group",C.tableData.groupSort)}:function(P,D){return C.customSort(P.value,D.value,"group",C.tableData.groupSort)}):S.sort(C.tableData.groupSort==="desc"?function(P,D){return b.sort(D.value,P.value,C.type)}:function(P,D){return b.sort(P.value,D.value,C.type)})};this.sortedData=_(this.sortedData,x[0]);var w=function(S){return S.reduce(function(C,P){return C[P.value]=S.findIndex(function(D){return D.value===P.value}),C},{})},k=function M(S,C){S.forEach(function(P){if(P.groups.length>0){var D=x[C];P.groups=_(P.groups,D),P.groupsIndex=w(P.groups),M(P.groups,C+1)}else b.maxColumnSort>0&&b.getOrderByCollection().length>0?P.data=b.sortList(P.data):b.maxColumnSort>0&&(P.data=P.data.sort(function(O,R){return b.data.findIndex(function(F){return F.tableData.id===O.tableData.id})-b.data.findIndex(function(F){return F.tableData.id===R.tableData.id})}))})};k(this.sortedData,1)}else if(this.isDataType("tree")){if(this.sortedData=(0,r.default)(this.treefiedData),this.maxColumnSort>0&&this.getOrderByCollection().length>0){this.sortedData=this.sortList(this.sortedData);var T=function M(S){S.forEach(function(C){C.tableData.childRows&&(C.tableData.childRows=b.sortList(C.tableData.childRows),M(C.tableData.childRows))})};T(this.sortedData)}}else this.isDataType("normal")&&(this.sortedData=(0,r.default)(this.searchedData),this.maxColumnSort>0&&this.getOrderByCollection().length>0&&this.applySort&&(this.sortedData=this.sortList(this.sortedData)));this.sorted=!0}},{key:"pageData",value:function(){if(this.pagedData=(0,r.default)(this.sortedData),this.paging){var b=this.currentPage*this.pageSize,x=b+this.pageSize;this.pagedData=this.pagedData.slice(b,x)}this.paged=!0}}]),v}();e.default=y}(Nm)),Nm}var tT;function $Y(){return tT||(tT=1,function(e){var t=Rn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(_Y),u=t(TY),o=t(Pi),a=t(hr()),n=t(zo),l=t(zl()),f=t(kY),s=t(Ur()),c=t(io()),d=t(Ed()),h=t(Rd()),p=t(My()),m=t(ky()),y=t(Sy()),v=t(Cy()),g=t(Jr()),b=t($e),x=MY(),_=t(CS()),w=C(Li()),k=S1,T=t(jY()),M=Jd();function S(B){if(typeof WeakMap!="function")return null;var $=new WeakMap,j=new WeakMap;return(S=function(E){return E?j:$})(B)}function C(B,$){if(B&&B.__esModule)return B;if(B===null||r(B)!=="object"&&typeof B!="function")return{default:B};var j=S($);if(j&&j.has(B))return j.get(B);var N={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var W in B)if(W!=="default"&&Object.prototype.hasOwnProperty.call(B,W)){var G=E?Object.getOwnPropertyDescriptor(B,W):null;G&&(G.get||G.set)?Object.defineProperty(N,W,G):N[W]=B[W]}return N.default=B,j&&j.set(B,N),N}function P(B,$){var j=Object.keys(B);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(B);$&&(N=N.filter(function(E){return Object.getOwnPropertyDescriptor(B,E).enumerable})),j.push.apply(j,N)}return j}function D(B){for(var $=1;$"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var F=function(B){(0,m.default)(j,B);var $=O(j);function j(N){var E;(0,d.default)(this,j),E=$.call(this,N),(0,g.default)((0,p.default)(E),"dataManager",new T.default),(0,g.default)((0,p.default)(E),"checkedForFunctions",!1),(0,g.default)((0,p.default)(E),"clearCriteria",function(){E.dataManager.clearCriteria(),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,p.default)(E),"isRemoteData",function(L){return!Array.isArray((L||E.props).data)}),(0,g.default)((0,p.default)(E),"onAllSelected",function(L){E.dataManager.changeAllSelected(L,E.props.options.selectionProps),E.setState(E.dataManager.getRenderState(),function(){return E.onSelectionChange()})}),(0,g.default)((0,p.default)(E),"onGroupSelected",function(L,q){E.dataManager.changeGroupSelected(L,q),E.setState(E.dataManager.getRenderState(),function(){return E.onSelectionChange()})}),(0,g.default)((0,p.default)(E),"onChangeColumnHidden",function(L,q){E.dataManager.changeColumnHidden(L,q),E.setState(E.dataManager.getRenderState(),function(){E.props.onChangeColumnHidden&&E.props.onChangeColumnHidden(L,q)})}),(0,g.default)((0,p.default)(E),"onChangeGroupOrder",function(L){E.dataManager.changeGroupOrder(L.tableData.id),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,p.default)(E),"onChangeOrder",function(L,q,H){E.dataManager.changeColumnOrder(L,q,H);var V=E.dataManager.getOrderByCollection();if(E.isRemoteData()){var te=D({},E.state.query);te.page=0,te.orderBy=E.state.columns.find(function(ee){return ee.tableData.id===L}),te.orderDirection=q,console.warn("Properties orderBy and orderDirection had been deprecated when remote data, please start using orderByCollection instead"),te.orderByCollection=V,E.onQueryChange(te,function(){E.props.onOrderChange&&E.props.onOrderChange(L,q),E.props.onOrderCollectionChange&&E.props.onOrderCollectionChange(V)})}else E.setState(E.dataManager.getRenderState(),function(){E.props.onOrderChange&&E.props.onOrderChange(L,q),E.props.onOrderCollectionChange&&E.props.onOrderCollectionChange(V)})}),(0,g.default)((0,p.default)(E),"onPageChange",function(L,q){if(E.isRemoteData()){var H=D({},E.state.query);H.page=q,E.onQueryChange(H,function(){E.props.onPageChange&&E.props.onPageChange(q,H.pageSize)})}else E.dataManager.changeCurrentPage(q),E.setState(E.dataManager.getRenderState(),function(){E.props.onPageChange&&E.props.onPageChange(q,E.state.pageSize)})}),(0,g.default)((0,p.default)(E),"onRowsPerPageChange",function(L){var q=L.target.value;E.dataManager.changePageSize(q);var H=function(){E.props.onPageChange&&E.props.onPageChange(0,q),E.props.onRowsPerPageChange&&E.props.onRowsPerPageChange(q)};if(E.isRemoteData()){var V=D({},E.state.query);V.pageSize=L.target.value,V.page=0,E.onQueryChange(V,H)}else E.dataManager.changeCurrentPage(0),E.setState(E.dataManager.getRenderState(),H)}),(0,g.default)((0,p.default)(E),"onDragEnd",function(L){!L||!L.source||!L.destination||(E.dataManager.changeByDrag(L),E.setState(E.dataManager.getRenderState(),function(){E.props.onColumnDragged&&L.destination.droppableId==="headers"&&L.source.droppableId==="headers"&&E.props.onColumnDragged(L.source.index,L.destination.index)}))}),(0,g.default)((0,p.default)(E),"onGroupExpandChanged",function(L){E.dataManager.changeGroupExpand(L),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,p.default)(E),"onGroupRemoved",function(L,q){var H={combine:null,destination:{droppableId:"headers",index:0},draggableId:L.tableData.id,mode:"FLUID",reason:"DROP",source:{index:q,droppableId:"groups"},type:"DEFAULT"};E.dataManager.changeByDrag(H),E.setState(E.dataManager.getRenderState(),function(){E.props.onGroupRemoved&&E.props.onGroupRemoved(L,q)})}),(0,g.default)((0,p.default)(E),"onEditingApproved",function(L,q,H){L==="add"&&E.props.editable&&E.props.editable.onRowAdd?E.setState({isLoading:!0},function(){E.props.editable.onRowAdd(q).then(function(V){E.setState({isLoading:!1,showAddRow:!1},function(){E.isRemoteData()&&E.onQueryChange(E.state.query)})}).catch(function(V){var te={message:V,errorCause:"add"};E.setState({isLoading:!1,errorState:te})})}):L==="update"&&E.props.editable&&E.props.editable.onRowUpdate?E.setState({isLoading:!0},function(){E.props.editable.onRowUpdate(q,H).then(function(V){E.dataManager.changeRowEditing(H),E.setState(D({isLoading:!1},E.dataManager.getRenderState()),function(){E.isRemoteData()&&E.onQueryChange(E.state.query)})}).catch(function(V){var te={message:V,errorCause:"update"};E.setState({isLoading:!1,errorState:te})})}):L==="delete"&&E.props.editable&&E.props.editable.onRowDelete?E.setState({isLoading:!0},function(){E.props.editable.onRowDelete(Object.entries(H).reduce(function(V,te){var ee=(0,c.default)(te,2),U=ee[0],Q=ee[1];return U!=="tableData"&&(V[U]=Q),V},{})).then(function(V){E.dataManager.changeRowEditing(H),E.setState(D({isLoading:!1},E.dataManager.getRenderState()),function(){E.isRemoteData()&&E.onQueryChange(E.state.query)})}).catch(function(V){var te={message:V,errorCause:"delete"};E.setState({isLoading:!1,errorState:te})})}):L==="bulk"&&E.props.editable&&E.props.editable.onBulkUpdate&&E.setState({isLoading:!0},function(){E.props.editable.onBulkUpdate(E.dataManager.bulkEditChangedRows).then(function(V){E.dataManager.changeBulkEditOpen(!1),E.props.onBulkEditOpen&&E.props.onBulkEditOpen(!1),E.dataManager.clearBulkEditChangedRows(),E.setState(D({isLoading:!1},E.dataManager.getRenderState()),function(){E.isRemoteData()&&E.onQueryChange(E.state.query)})}).catch(function(V){var te={message:V,errorCause:"bulk edit"};E.setState({isLoading:!1,errorState:te})})})}),(0,g.default)((0,p.default)(E),"onEditingCanceled",function(L,q){L==="add"?(E.props.editable.onRowAddCancelled&&E.props.editable.onRowAddCancelled(),E.setState({showAddRow:!1})):L==="update"?(E.props.editable.onRowUpdateCancelled&&E.props.editable.onRowUpdateCancelled(),E.dataManager.changeRowEditing(q),E.setState(E.dataManager.getRenderState())):L==="delete"&&(E.dataManager.changeRowEditing(q),E.setState(E.dataManager.getRenderState()))}),(0,g.default)((0,p.default)(E),"retry",function(){E.onQueryChange(E.state.query)}),(0,g.default)((0,p.default)(E),"onQueryChange",function(L,q){L=D(D(D({},E.state.query),L),{},{error:E.state.errorState}),E.setState({isLoading:!0,errorState:void 0},function(){E.props.data(L).then(function(H){L.totalCount=H.totalCount,L.page=H.page;var V=D(D({},L),{},{totalCount:H.totalCount,page:H.page});E.dataManager.setData(H.data,E.props.options.idSynonym),E.setState(D(D({isLoading:!1,errorState:!1},E.dataManager.getRenderState()),{},{query:V}),function(){q&&q()})}).catch(function(H){var V={message:(0,s.default)(H)==="object"?H.message:H!==void 0?H:E.props.localization.error,errorCause:"query"};E.setState(D({isLoading:!1,errorState:V},E.dataManager.getRenderState()))})})}),(0,g.default)((0,p.default)(E),"onRowSelected",function(L,q,H){E.dataManager.changeRowSelected(L.target.checked,q),E.setState(E.dataManager.getRenderState(),function(){return E.onSelectionChange(H)})}),(0,g.default)((0,p.default)(E),"onSelectionChange",function(L){if(E.props.onSelectionChange){var q=[],H=function(te){te.forEach(function(ee){ee.tableData.checked&&q.push(ee)})};H(E.state.originalData),E.props.onSelectionChange(q,L)}}),(0,g.default)((0,p.default)(E),"onSearchChangeDebounce",(0,x.debounce)(function(L){if(E.isRemoteData()){var q=D({},E.state.query);q.page=0,q.search=L,E.onQueryChange(q,function(){E.props.onSearchChange&&E.props.onSearchChange(L)})}else E.setState(E.dataManager.getRenderState(),function(){E.props.onSearchChange&&E.props.onSearchChange(L)})},E.props.options.debounceInterval)),(0,g.default)((0,p.default)(E),"onFilterChange",function(L,q){E.dataManager.changeFilterValue(L,q),E.setState({},E.onFilterChangeDebounce)}),(0,g.default)((0,p.default)(E),"onFilterChangeDebounce",(0,x.debounce)(function(){if(E.isRemoteData()){var L=D({},E.state.query);L.page=0,L.filters=E.state.columns.filter(function(q){return q.tableData.filterValue}).map(function(q){return{column:q,operator:"=",value:q.tableData.filterValue}}),E.onQueryChange(L,function(){E.props.onFilterChange&&E.props.onFilterChange(L.filters)})}else E.setState(E.dataManager.getRenderState(),function(){if(E.props.onFilterChange){var q=E.state.columns.filter(function(H){return H.tableData.filterValue}).map(function(H){return{column:H,operator:"=",value:H.tableData.filterValue}});E.props.onFilterChange(q)}})},E.props.options.debounceInterval)),(0,g.default)((0,p.default)(E),"onTreeExpandChanged",function(L,q){E.dataManager.changeTreeExpand(L),E.setState(E.dataManager.getRenderState(),function(){E.props.onTreeExpandChange&&E.props.onTreeExpandChange(q,q.tableData.isTreeExpanded)})}),(0,g.default)((0,p.default)(E),"onToggleDetailPanel",function(L,q){E.dataManager.changeDetailPanelVisibility(L,q),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,p.default)(E),"onCellEditStarted",function(L,q){E.dataManager.startCellEditable(L,q),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,p.default)(E),"onCellEditFinished",function(L,q){E.dataManager.finishCellEditable(L,q),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,p.default)(E),"onEditRowDataChanged",function(L,q){E.dataManager.setEditRowData(L,q),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,p.default)(E),"onColumnResized",function(L,q,H,V){var te=function(Q){return D(D(D({field:Q.field,width:Q.tableData.width,widthPx:Q.tableData.widthPx},Q.id&&{id:Q.id}),Q.minWidth&&{minWidth:Q.minWidth}),Q.maxWidth&&{maxWidth:Q.maxWidth})},ee=E.dataManager.onColumnResized(L,q,H,V);E.setState(E.dataManager.getRenderState(),function(){q===0&&E.props.onColumnResized&&ee.length>0&&E.props.onColumnResized(ee.map(function(U){return te(U)}),E.state.columns.map(function(U){return te(U)}))})}),(0,g.default)((0,p.default)(E),"renderTable",function(L){var q;return b.default.createElement(f.default,{sx:L.sx,style:D(D({},L.options.tableWidth==="variable"&&{width:E.state.tableStyleWidth}),{},{tableLayout:L.options.fixedColumns&&(L.options.fixedColumns.left||L.options.fixedColumns.right)?"fixed":L.options.tableLayout})},L.options.header&&b.default.createElement(L.components.Header,{actions:E.state.actions,columns:E.state.columns,selectedCount:E.state.selectedCount,dataCount:L.parentChildData?E.dataManager.searchedData.length:E.state.columns.some(function(H){return H.tableData.groupOrder>-1})?E.state.groupedDataLength:E.state.data.length,hasDetailPanel:!!L.detailPanel,showActionsColumn:!E.dataManager.bulkEditOpen&&E.state.actions&&E.state.actions.some(function(H){return H.position==="row"||typeof H=="function"}),onAllSelected:E.onAllSelected,onOrderChange:E.onChangeOrder,isTreeData:E.props.parentChildData!==void 0,treeDataMaxLevel:E.state.treeDataMaxLevel,onColumnResized:E.onColumnResized,scrollWidth:E.state.width,sorting:L.options.sorting||E.dataManager.maxColumnSort!==0,allowSorting:E.dataManager.maxColumnSort!==0,orderByCollection:E.dataManager.getOrderByCollection(),tableWidth:(q=L.options.tableWidth)!==null&&q!==void 0?q:"full"}),b.default.createElement(L.components.Body,{actions:E.state.actions,components:E.props.components,renderData:E.state.renderData,data:E.state.data,renderSummaryRow:E.props.renderSummaryRow,currentPage:E.isRemoteData()?0:E.state.currentPage,initialFormData:L.initialFormData,pageSize:E.state.pageSize,columns:E.state.columns,errorState:E.state.errorState,detailPanel:L.detailPanel,options:L.options,getFieldValue:E.dataManager.getFieldValue,isTreeData:E.props.parentChildData!==void 0,onFilterChanged:E.onFilterChange,onRowSelected:E.onRowSelected,onGroupSelected:E.onGroupSelected,onToggleDetailPanel:E.onToggleDetailPanel,onGroupExpandChanged:E.onGroupExpandChanged,onTreeExpandChanged:E.onTreeExpandChanged,onEditingCanceled:E.onEditingCanceled,onEditingApproved:E.onEditingApproved,onRowClick:E.props.onRowClick,onRowDoubleClick:E.props.onRowDoubleClick,showAddRow:E.state.showAddRow,hasAnyEditingRow:!!(E.state.lastEditingRow||E.state.showAddRow),hasDetailPanel:!!L.detailPanel,treeDataMaxLevel:E.state.treeDataMaxLevel,cellEditable:L.cellEditable,onCellEditStarted:E.onCellEditStarted,onCellEditFinished:E.onCellEditFinished,onRowEditStarted:E.onRowEditStarted,bulkEditOpen:E.dataManager.bulkEditOpen,bulkEditChangedRows:E.dataManager.bulkEditChangedRows,onBulkEditRowChanged:E.dataManager.onBulkEditRowChanged,scrollWidth:E.state.width}))}),(0,g.default)((0,p.default)(E),"onRowEditStarted",function(L){var q;(q=E.props.editable)!==null&&q!==void 0&&q.onRowUpdate&&(E.dataManager.changeRowEditing(L,"update"),E.setState(D(D({},E.dataManager.getRenderState()),{},{showAddRow:!1})))}),(0,g.default)((0,p.default)(E),"getColumnsWidth",function(L,q){var H=[],V=w.actionsColumnWidth(L);if(V>0&&(q>0&&L.options.actionsColumnIndex>=0&&L.options.actionsColumnIndex=q)&&H.push(V+"px"),L.options.selection&&q>0){var te=w.selectionMaxWidth(L,E.state.treeDataMaxLevel);H.push(te+"px")}for(var ee=0;ee=0?ee:E.state.columns.length-1-ee];U.tableData&&(typeof U.tableData.width=="number"?H.push(U.tableData.width+"px"):H.push(U.tableData.width))}return"calc("+H.join(" + ")+")"}),(0,g.default)((0,p.default)(E),"getRenderData",function(){return E.props.options.exportAllData?E.state.data:E.state.renderData});var W=E.getProps(N);E.setDataManagerFields(W,!0);var G=E.dataManager.getRenderState();return E.state=D(D({data:[],errorState:void 0},G),{},{query:{filters:G.columns.filter(function(L){return L.tableData.filterValue}).map(function(L){return{column:L,operator:"=",value:L.tableData.filterValue}}),orderBy:G.columns.find(function(L){return L.tableData.id===G.orderBy}),orderDirection:G.orderDirection,orderByCollection:G.orderByCollection,page:0,pageSize:W.options.pageSize,search:G.searchText,totalCount:0},showAddRow:!1,bulkEditOpen:!1,width:0,tableInitialWidthPx:void 0,tableStyleWidth:"100%",actions:W.actions}),E.tableContainerDiv=b.default.createRef(),E}return(0,h.default)(j,[{key:"componentDidMount",value:function(){var E=this;this.setState(D(D({},this.dataManager.getRenderState()),{},{width:this.tableContainerDiv.current.scrollWidth}),function(){E.isRemoteData()&&E.onQueryChange(D(D({},E.state.query),{},{page:E.props.options.initialPage||0})),E.props.onDoubleRowClick!==void 0&&console.warn("Property `onDoubleRowClick` has been renamed to `onRowDoubleClick`"),E.props.options.sorting!==void 0&&console.warn("Property `sorting` has been deprecated, please start using `maxColumnSort` instead. https://github.com/material-table-core/core/pull/619")})}},{key:"setDataManagerFields",value:function(E,W,G){var L,q=this,H={};if(E.options.persistentGroupingsId&&localStorage){var V=localStorage.getItem("material-table-groupings");V&&(V=JSON.parse(V),V[E.options.persistentGroupingsId]&&V[E.options.persistentGroupingsId].forEach(function(Te){H[Te.field]={groupOrder:Te.groupOrder,groupSort:Te.groupSort,columnOrder:Te.columnOrder}}))}this.dataManager.setTableWidth((L=E.options.tableWidth)!==null&&L!==void 0?L:"full"),this.dataManager.setColumns(E.columns,G,H),this.dataManager.setDefaultExpanded(E.options.defaultExpanded),this.dataManager.changeRowEditing();var te=E.options,ee=te.clientSorting,U=te.grouping,Q=te.maxColumnSort;this.dataManager.setClientSorting(ee),this.dataManager.setMaxColumnSort(U?1:Q),this.dataManager.setOrderByCollection(),this.isRemoteData(E)?(this.dataManager.changeApplySearch(!1),this.dataManager.changeApplyFilters(!1),this.dataManager.changeApplySort(!1)):(this.dataManager.changeApplySearch(!0),this.dataManager.changeApplyFilters(!0),this.dataManager.changeApplySort(!0),this.dataManager.setData(E.data,E.options.idSynonym));var Y=this.dataManager.getDefaultOrderByCollection(),Z=E.options.defaultOrderByCollection,X=[],re="",ie="";if(Z&&Z.length>0)X=(0,l.default)(Z).slice(0,Q),X=this.dataManager.sortOrderCollection(X),re=JSON.stringify(X),ie=JSON.stringify(Y),re!==ie&&this.dataManager.setDefaultOrderByCollection(X);else{var le=A(E.columns,G,this.dataManager.maxColumnSort);X=(0,l.default)(le[0]),re=JSON.stringify(X),ie=JSON.stringify((0,l.default)(le[1]))}var se=JSON.stringify(this.dataManager.orderByCollection),pe=W||!this.isRemoteData()&&X.length&&re!==ie&&re!==se;pe&&X.length>0&&Q>0&&X.forEach(function(Te){var Se=Te.orderBy,Oe=Te.orderDirection,Me=Te.sortOrder;return q.dataManager.changeColumnOrder(Se,Oe,Me)}),W&&this.dataManager.changeSearchText(E.options.searchText||""),W&&this.dataManager.changeSearchDebounce(E.options.searchDebounceDelay),W&&this.dataManager.changeCurrentPage(E.options.initialPage?E.options.initialPage:0),W&&this.dataManager.changePageSize(E.options.pageSize),this.dataManager.changePaging(this.isRemoteData()?!1:E.options.paging),W&&this.dataManager.changeParentFunc(E.parentChildData),this.dataManager.changeDetailPanelType(E.options.detailPanelType)}},{key:"cleanColumns",value:function(E){return E.map(function(W){var G=D({},W);return delete G.tableData,G})}},{key:"componentDidUpdate",value:function(E){var W=this.cleanColumns(E.columns),G=this.cleanColumns(this.props.columns),L=!(0,_.default)(W,G),q=L||!(0,_.default)(E.options,this.props.options);if(this.isRemoteData()||(q=q||!(0,_.default)(E.data,this.props.data)),E.options.pageSize!==this.props.options.pageSize&&this.dataManager.changePageSize(this.props.options.pageSize),q){var H=this.getProps(this.props);this.setDataManagerFields(H,!1,E.columns),this.setState(D(D({},this.dataManager.getRenderState()),{},{actions:H.actions}))}var V=this.isRemoteData()?this.state.query.totalCount:this.state.data.length,te=this.isRemoteData()?this.state.query.page:this.state.currentPage,ee=this.isRemoteData()?this.state.query.pageSize:this.state.pageSize;V<=ee*te&&te!==0&&!this.state.isLoading&&this.onPageChange(null,Math.max(0,Math.ceil(V/ee)-1))}},{key:"getProps",value:function(E){var W=this,G=D({},E||this.props),L=this.props.localization.body;if(G.options.selection?G.actions=G.actions.filter(function(H){return H}).map(function(H){return H.position==="auto"||H.isFreeAction===!1||H.position===void 0&&H.isFreeAction===void 0?typeof H=="function"?{action:H,position:"toolbarOnSelect"}:D(D({},H),{},{position:"toolbarOnSelect"}):H.isFreeAction?typeof H=="function"?{action:H,position:"toolbar"}:D(D({},H),{},{position:"toolbar"}):H}):G.actions=G.actions.filter(function(H){return H}).map(function(H){return H.position==="auto"||H.isFreeAction===!1||H.position===void 0&&H.isFreeAction===void 0?typeof H=="function"?{action:H,position:"row"}:D(D({},H),{},{position:"row"}):H.isFreeAction?typeof H=="function"?{action:H,position:"toolbar"}:D(D({},H),{},{position:"toolbar"}):H}),G.editable){var q;G.editable.onRowAdd&&G.actions.push({icon:G.icons.Add,tooltip:L.addTooltip,position:"toolbar",disabled:!!this.dataManager.lastEditingRow,onClick:function(){W.dataManager.changeRowEditing(),W.state.showAddRow&&W.props.editable.onRowAddCancelled&&W.props.editable.onRowAddCancelled(),W.setState(D(D({},W.dataManager.getRenderState()),{},{showAddRow:!W.state.showAddRow}))}}),G.editable.onRowUpdate&&G.actions.push(function(H){return{icon:G.icons.Edit,tooltip:G.editable.editTooltip?G.editable.editTooltip(H):L.editTooltip,disabled:G.editable.isEditable&&!G.editable.isEditable(H),hidden:G.editable.isEditHidden&&G.editable.isEditHidden(H),onClick:function(te,ee){W.onRowEditStarted(ee)}}}),G.editable.onRowDelete&&G.actions.push(function(H){return{icon:G.icons.Delete,tooltip:G.editable.deleteTooltip?G.editable.deleteTooltip(H):L.deleteTooltip,disabled:G.editable.isDeletable&&!G.editable.isDeletable(H),hidden:G.editable.isDeleteHidden&&G.editable.isDeleteHidden(H),onClick:function(te,ee){W.dataManager.changeRowEditing(ee,"delete"),W.setState(D(D({},W.dataManager.getRenderState()),{},{showAddRow:!1}))}}}),G.editable.onBulkUpdate&&(G.actions.push({icon:G.icons.Edit,tooltip:L.bulkEditTooltip,position:"toolbar",hidden:this.dataManager.bulkEditOpen,disabled:G.isBulkEditable&&G.isBulkEditable(),onClick:function(){W.dataManager.changeBulkEditOpen(!0),W.props.onBulkEditOpen&&W.props.onBulkEditOpen(!0),W.setState(W.dataManager.getRenderState())}}),G.actions.push({icon:G.icons.Check,tooltip:L.bulkEditApprove,position:"toolbar",hidden:!this.dataManager.bulkEditOpen,onClick:function(){return W.onEditingApproved("bulk")}}),G.actions.push({icon:G.icons.Clear,tooltip:L.bulkEditCancel,position:"toolbar",hidden:!this.dataManager.bulkEditOpen,onClick:function(){W.dataManager.changeBulkEditOpen(!1),W.props.onBulkEditOpen&&W.props.onBulkEditOpen(!1),W.dataManager.clearBulkEditChangedRows(),W.setState(W.dataManager.getRenderState())}})),(q=this.state)!==null&&q!==void 0&&q.showAddRow&&G.editable.onRowAdd&&G.actions.filter(function(H){return H.position==="row"}).length===0&&G.actions.push({icon:void 0,position:"row",onClick:function(){},disabled:!0})}return G}},{key:"renderFooter",value:function(){var E=this.getProps();if(E.options.paging){var W=this.isRemoteData()?Math.min(E.page,Math.floor(E.totalCount/this.state.pageSize)):this.state.currentPage,G=this.isRemoteData()?E.totalCount:this.state.data.length;return b.default.createElement(f.default,null,b.default.createElement(u.default,{style:{display:"grid"}},b.default.createElement(o.default,{style:{display:"grid"}},b.default.createElement(E.components.Pagination,{sx:{display:"flex",justifyContent:E.options.paginationAlignment?E.options.paginationAlignment:"flex-end",overflowX:"auto","& .MuiTablePagination-displayedRows":{display:"none"}},colSpan:3,count:this.isRemoteData()?this.state.query.totalCount:G,rowsPerPage:this.state.pageSize,rowsPerPageOptions:E.options.pageSizeOptions,SelectProps:{renderValue:function(q){return b.default.createElement(n.default,{sx:{padding:"0px 5px"}},q+" "+E.localization.pagination.labelRows+" ")}},page:this.isRemoteData()?this.state.query.page:W,onPageChange:this.onPageChange,onRowsPerPageChange:this.onRowsPerPageChange,ActionsComponent:function(q){return E.options.paginationType==="normal"?b.default.createElement(M.MTablePagination,(0,a.default)({},q,{showFirstLastPageButtons:E.options.showFirstLastPageButtons})):b.default.createElement(M.MTableSteppedPagination,(0,a.default)({},q,{showFirstLastPageButtons:E.options.showFirstLastPageButtons,numberOfPagesAround:E.options.numberOfPagesAround}))},labelRowsPerPage:E.localization.pagination.labelRowsPerPage}))))}}},{key:"render",value:function(){var E=this,W=this.getProps();return b.default.createElement(k.DragDropContext,{onDragEnd:this.onDragEnd,nonce:W.options.cspNonce},b.default.createElement(this.props.components.Container,{style:D({position:"relative"},W.style)},W.options.paginationPosition==="top"||W.options.paginationPosition==="both"?this.renderFooter():null,W.options.toolbar&&b.default.createElement(this.props.components.Toolbar,{actions:W.actions,components:this.props.components,originalData:this.state.originalData,columns:this.state.columns,selectedCount:this.state.selectedCount,getFieldValue:this.dataManager.getFieldValue,data:this.getRenderData,title:W.title,searchText:this.dataManager.searchText,searchDebounceDelay:this.dataManager.searchDebounceDelay,onSearchChanged:this.onSearchChangeDebounce,isRemoteData:this.isRemoteData(),dataManager:this.dataManager,onColumnsChanged:this.onChangeColumnHidden}),W.options.grouping&&b.default.createElement(this.props.components.Groupbar,{groupColumns:this.state.columns.filter(function(G){return G.tableData.groupOrder>-1}).sort(function(G,L){return G.tableData.groupOrder-L.tableData.groupOrder}),onSortChanged:this.onChangeGroupOrder,onGroupRemoved:this.onGroupRemoved,onGroupChange:this.props.onGroupChange,persistentGroupingsId:W.options.persistentGroupingsId}),b.default.createElement(M.MTableScrollbar,{double:W.options.doubleHorizontalScroll},b.default.createElement(k.Droppable,{droppableId:"headers",direction:"horizontal"},function(G,L){var q=E.renderTable(W);return b.default.createElement("div",{ref:G.innerRef},b.default.createElement("div",{ref:E.tableContainerDiv,style:{maxHeight:W.options.maxBodyHeight,minHeight:W.options.minBodyHeight,overflowY:W.options.overflowY}},E.state.width&&W.options.fixedColumns&&W.options.fixedColumns.right?b.default.createElement("div",{style:{width:E.getColumnsWidth(W,-1*W.options.fixedColumns.right),position:"absolute",top:0,right:0,boxShadow:"-2px 0px 15px rgba(125,147,178,.25)",overflowX:"clip",zIndex:11}},b.default.createElement("div",{style:{width:E.state.width,background:"white",transform:"translateX(calc(".concat(E.getColumnsWidth(W,-1*W.options.fixedColumns.right)," - 100%))")}},q)):null,b.default.createElement("div",null,q),E.state.width&&W.options.fixedColumns&&W.options.fixedColumns.left?b.default.createElement("div",{style:{width:E.getColumnsWidth(W,W.options.fixedColumns.left),position:"absolute",top:0,left:0,boxShadow:"2px 0px 15px rgba(125,147,178,.25)",overflowX:"clip",zIndex:11}},b.default.createElement("div",{style:{width:E.state.width,background:"white"},onKeyDown:function(V){V.key==="Tab"&&V.preventDefault()}},q)):null),G.placeholder)})),(this.state.isLoading||W.isLoading)&&W.options.loadingType==="linear"&&b.default.createElement("div",{style:{position:"relative",width:"100%"}},b.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%"}},b.default.createElement(i.default,null))),W.options.paginationPosition==="bottom"||W.options.paginationPosition==="both"?this.renderFooter():null,(this.state.isLoading||W.isLoading)&&W.options.loadingType==="overlay"&&b.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%",zIndex:11}},b.default.createElement(this.props.components.OverlayLoading,{theme:W.theme})),this.state.errorState&&this.state.errorState.errorCause==="query"&&b.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%",zIndex:11}},b.default.createElement(this.props.components.OverlayError,{error:this.state.errorState,retry:this.retry,theme:W.theme}))))}}]),j}(b.default.Component);e.default=F;function A(B,$,j){var N=[],E=[];return j>0&&(N=z(B,j)),$&&(E=z($,j)),[N,E]}function z(B,$){var j=B.filter(function(N){return N.defaultSort&&N.sorting!==!1});return j.slice(0,$).map(function(N,E){return{orderBy:N.tableData?N.tableData.id:B.findIndex(function(W){return W.field===N.field}),orderDirection:N.defaultSort,sortOrder:E+1}})}}(Im)),Im}(function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ALL_COLUMNS",{enumerable:!0,get:function(){return s.ALL_COLUMNS}}),Object.defineProperty(e,"MTableAction",{enumerable:!0,get:function(){return f.MTableAction}}),Object.defineProperty(e,"MTableActions",{enumerable:!0,get:function(){return f.MTableActions}}),Object.defineProperty(e,"MTableBody",{enumerable:!0,get:function(){return f.MTableBody}}),Object.defineProperty(e,"MTableBodyRow",{enumerable:!0,get:function(){return f.MTableBodyRow}}),Object.defineProperty(e,"MTableCell",{enumerable:!0,get:function(){return f.MTableCell}}),Object.defineProperty(e,"MTableEditCell",{enumerable:!0,get:function(){return f.MTableEditCell}}),Object.defineProperty(e,"MTableEditField",{enumerable:!0,get:function(){return f.MTableEditField}}),Object.defineProperty(e,"MTableEditRow",{enumerable:!0,get:function(){return f.MTableEditRow}}),Object.defineProperty(e,"MTableFilterRow",{enumerable:!0,get:function(){return f.MTableFilterRow}}),Object.defineProperty(e,"MTableGroupRow",{enumerable:!0,get:function(){return f.MTableGroupRow}}),Object.defineProperty(e,"MTableGroupbar",{enumerable:!0,get:function(){return f.MTableGroupbar}}),Object.defineProperty(e,"MTableHeader",{enumerable:!0,get:function(){return f.MTableHeader}}),Object.defineProperty(e,"MTablePagination",{enumerable:!0,get:function(){return f.MTablePagination}}),Object.defineProperty(e,"MTableSteppedPagination",{enumerable:!0,get:function(){return f.MTableSteppedPagination}}),Object.defineProperty(e,"MTableToolbar",{enumerable:!0,get:function(){return f.MTableToolbar}}),e.default=void 0,Object.defineProperty(e,"useLocalizationStore",{enumerable:!0,get:function(){return l.useLocalizationStore}});var r=t(hr()),i=t($e),u=xY(),o=wY(),a=t($Y()),n=$l,l=tc(),f=Jd(),s=C1();a.default.defaultProps=u.defaultProps,a.default.propTypes=o.propTypes;var c=(0,l.withContext)(function(d){var h=(0,n.useTheme)(),p=(0,l.useMergeProps)(d),m=p.localization,y=p.options,v=p.components;return i.default.createElement(a.default,(0,r.default)({},d,{theme:h,options:y,components:v,localization:m,ref:d.tableRef}))});e.default=c})(gS);const BY=ir(gS);class zY{constructor(t){Nc(this,"cachedGraphs");Nc(this,"cachedWidgets");Nc(this,"inner");this.inner=t,this.cachedGraphs=new Map,this.cachedWidgets=new Map}async getAdditionGraphData(t){let r=this.cachedGraphs.get(t);return r!==void 0||(r=await this.inner.getAdditionGraphData(t),this.cachedGraphs.set(t,r)),r}async getAdditionWidgetData(t){let r=this.cachedWidgets.get(t);return r!==void 0||(r=await this.inner.getAdditionWidgetData(t),this.cachedWidgets.set(t,r)),r}}const yC=et.createContext({getAdditionGraphData:()=>new Promise((e,t)=>t("default context doesn't contain methods to get data")),getAdditionWidgetData:()=>new Promise((e,t)=>t("default context doesn't contain methods to get data"))});function J5e(e){return new zY(e)}const qY=e=>{const t=e.activeTab===-1?0:e.activeTab;return je.jsxs("div",{children:[je.jsx(aS,{value:t,onChange:e.onNewTabSelected,indicatorColor:"primary",textColor:"primary",children:e.tabs.map(r=>je.jsx(A0,{disabled:r.disabled??!1,label:je.jsx(Kr,{className:e.tabStyle,children:je.jsxs(Kr,{display:"flex",sx:{fontSize:"0.875rem"},children:[je.jsx("span",{children:r.icon}),r.title]})})}))}),je.jsx(Kr,{children:e.tabs.map((r,i)=>je.jsx("div",{hidden:(e.activeTab===-1?0:e.activeTab)!==i,children:(e.activeTab===-1?0:e.activeTab)!==i?je.jsx("div",{}):r.tab}))})]})},O1=e=>{const[t,r]=$e.useState({activeTab:0});return je.jsx(et.Fragment,{children:je.jsx(qY,{activeTab:t.activeTab,onNewTabSelected:(i,u)=>r(o=>({...o,activeTab:u})),tabs:e.tabs})})},H0=({func:e,children:t})=>{const[r,i]=$e.useState(()=>({status:0,func:e}));return r.status===0&&i(u=>({...u,status:1})),r.status===1&&(i(u=>({...u,status:2})),r.func().then(u=>i(o=>({...o,status:3,result:u}))).catch(()=>i(u=>({...u,status:4})))),je.jsx(je.Fragment,{children:r.status===3?t&&r.result&&t(r.result):r.status===4?je.jsx(Cr,{align:"center",children:"Failed"}):r.status===2?je.jsx(Kr,{textAlign:"center",children:je.jsx(eE,{})}):null})},bC=e=>je.jsxs(wy,{severity:e.data.severity,children:[je.jsx(by,{children:e.data.title}),e.data.text]}),xC=()=>je.jsx("div",{children:"Not implemented"}),WY=e=>e.type??"graph",nT=(e,t,r)=>{switch(WY(t)){case"graph":{const i=()=>e.getAdditionGraphData(t.id),u=o=>je.jsx(Pd,{...o,widgetSize:r});return je.jsx(H0,{func:i,children:u})}case"widget":{const i=()=>e.getAdditionWidgetData(t.id),u=o=>Tc(t.id,o);return je.jsx(H0,{func:i,children:u})}default:return je.jsx(xC,{})}},A1=e=>je.jsx(yC.Consumer,{children:t=>je.jsxs(Kr,{children:[e.details.parts.length>1?je.jsx(O1,{tabs:e.details.parts.map(r=>({title:r.title,tab:nT(t,r,e.widgetSize)}))}):nT(t,e.details.parts[0],e.widgetSize),e.details.insights===void 0?je.jsx(je.Fragment,{}):e.details.insights.map(r=>je.jsx(bC,{data:r},r.text+r.title+r.severity))]})}),UY=e=>je.jsx(yC.Consumer,{children:t=>je.jsx(H0,{func:()=>t.getAdditionGraphData(e.graphId),children:r=>je.jsx(Pd,{...r,widgetSize:e.widgetSize})})});var V0={exports:{}},Y0={exports:{}};(function(e,t){t.__esModule=!0,t.default=r;function r(i){var u={};for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(u[o]=0);return u}e.exports=t.default})(Y0,Y0.exports);var P1=Y0.exports,G0={exports:{}};(function(e,t){t.__esModule=!0,t.default=r;function r(i){var u={};for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(u[o]=typeof i[o]=="number"?i[o]:i[o].val);return u}e.exports=t.default})(G0,G0.exports);var th=G0.exports,X0={exports:{}};(function(e,t){t.__esModule=!0,t.default=i;var r=[0,0];function i(u,o,a,n,l,f,s){var c=-l*(o-n),d=-f*a,h=c+d,p=a+h*u,m=o+p*u;return Math.abs(p)"u"?Sa:window,Qc=["moz","webkit"],yl="AnimationFrame",Pl=Mi["request"+yl],$u=Mi["cancel"+yl]||Mi["cancelRequest"+yl];for(var eu=0;!Pl&&euk*10&&(P.accumulatedTime=0),P.accumulatedTime===0){P.animationID=null,P.startAnimationIfNecessary();return}var A=(P.accumulatedTime-Math.floor(P.accumulatedTime/k)*k)/k,z=Math.floor(P.accumulatedTime/k),B={},$={},j={},N={};for(var E in O)if(Object.prototype.hasOwnProperty.call(O,E)){var W=O[E];if(typeof W=="number")j[E]=W,N[E]=0,B[E]=W,$[E]=0;else{for(var G=P.state.lastIdealStyle[E],L=P.state.lastIdealVelocity[E],q=0;qk*10&&(D.accumulatedTime=0),D.accumulatedTime===0){D.animationID=null,D.startAnimationIfNecessary();return}for(var z=(D.accumulatedTime-Math.floor(D.accumulatedTime/k)*k)/k,B=Math.floor(D.accumulatedTime/k),$=[],j=[],N=[],E=[],W=0;Wa[g])return-1;if(h>l[g]&&ya[g])return 1;if(p>l[g]&&mM*10&&(A.accumulatedTime=0),A.accumulatedTime===0){A.animationID=null,A.startAnimationIfNecessary();return}for(var E=(A.accumulatedTime-Math.floor(A.accumulatedTime/M)*M)/M,W=Math.floor(A.accumulatedTime/M),G=P(A.props.willEnter,A.props.willLeave,A.props.didLeave,A.state.mergedPropsStyles,$,A.state.currentStyles,A.state.currentVelocities,A.state.lastIdealStyles,A.state.lastIdealVelocities),L=G[0],q=G[1],H=G[2],V=G[3],te=G[4],ee=0;ee0},e.prototype.connect_=function(){!rv||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),dG?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!rv||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,i=r===void 0?"":r,u=fG.some(function(o){return!!~i.indexOf(o)});u&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),TC=function(e,t){for(var r=0,i=Object.keys(t);r"u"||!(Element instanceof Object))){if(!(t instanceof Dl(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new wG(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Dl(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(i){return new _G(i.target,i.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),MC=typeof WeakMap<"u"?new WeakMap:new _C,SC=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=hG.getInstance(),i=new TG(t,r,this);MC.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach(function(e){SC.prototype[e]=function(){var t;return(t=MC.get(this))[e].apply(t,arguments)}});var kG=function(){return typeof Yf.ResizeObserver<"u"?Yf.ResizeObserver:SC}(),MG=["client","offset","scroll","bounds","margin"];function iT(e){var t=[];return MG.forEach(function(r){e[r]&&t.push(r)}),t}function oT(e,t){var r={};if(t.indexOf("client")>-1&&(r.client={top:e.clientTop,left:e.clientLeft,width:e.clientWidth,height:e.clientHeight}),t.indexOf("offset")>-1&&(r.offset={top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight}),t.indexOf("scroll")>-1&&(r.scroll={top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}),t.indexOf("bounds")>-1){var i=e.getBoundingClientRect();r.bounds={top:i.top,right:i.right,bottom:i.bottom,left:i.left,width:i.width,height:i.height}}if(t.indexOf("margin")>-1){var u=getComputedStyle(e);r.margin={top:u?parseInt(u.marginTop):0,right:u?parseInt(u.marginRight):0,bottom:u?parseInt(u.marginBottom):0,left:u?parseInt(u.marginLeft):0}}return r}function SG(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||window}function CG(e){return function(t){var r,i;return i=r=function(u){tE(o,u);function o(){for(var n,l=arguments.length,f=new Array(l),s=0;s-1}var oX=iX,lX=oh;function sX(e,t){var r=this.__data__,i=lX(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}var uX=sX,cX=VG,fX=eX,dX=rX,hX=oX,pX=uX;function Yl(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=xJ}var W1=wJ,_J=sh,TJ=W1;function kJ(e){return e!=null&&TJ(e.length)&&!_J(e)}var Jl=kJ,MJ=Jl,SJ=Na;function CJ(e){return SJ(e)&&MJ(e)}var BC=CJ,Kf={exports:{}};function OJ(){return!1}var AJ=OJ;Kf.exports;(function(e,t){var r=Oa,i=AJ,u=t&&!t.nodeType&&t,o=u&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===u,n=a?r.Buffer:void 0,l=n?n.isBuffer:void 0,f=l||i;e.exports=f})(Kf,Kf.exports);var gh=Kf.exports,PJ=Ii,DJ=z1,EJ=Na,RJ="[object Object]",LJ=Function.prototype,IJ=Object.prototype,zC=LJ.toString,FJ=IJ.hasOwnProperty,NJ=zC.call(Object);function jJ(e){if(!EJ(e)||PJ(e)!=RJ)return!1;var t=DJ(e);if(t===null)return!0;var r=FJ.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&zC.call(r)==NJ}var U1=jJ;const Wu=ir(U1);var $J=Ii,BJ=W1,zJ=Na,qJ="[object Arguments]",WJ="[object Array]",UJ="[object Boolean]",HJ="[object Date]",VJ="[object Error]",YJ="[object Function]",GJ="[object Map]",XJ="[object Number]",ZJ="[object Object]",KJ="[object RegExp]",JJ="[object Set]",QJ="[object String]",eQ="[object WeakMap]",tQ="[object ArrayBuffer]",nQ="[object DataView]",rQ="[object Float32Array]",aQ="[object Float64Array]",iQ="[object Int8Array]",oQ="[object Int16Array]",lQ="[object Int32Array]",sQ="[object Uint8Array]",uQ="[object Uint8ClampedArray]",cQ="[object Uint16Array]",fQ="[object Uint32Array]",xr={};xr[rQ]=xr[aQ]=xr[iQ]=xr[oQ]=xr[lQ]=xr[sQ]=xr[uQ]=xr[cQ]=xr[fQ]=!0;xr[qJ]=xr[WJ]=xr[tQ]=xr[UJ]=xr[nQ]=xr[HJ]=xr[VJ]=xr[YJ]=xr[GJ]=xr[XJ]=xr[ZJ]=xr[KJ]=xr[JJ]=xr[QJ]=xr[eQ]=!1;function dQ(e){return zJ(e)&&BJ(e.length)&&!!xr[$J(e)]}var hQ=dQ;function pQ(e){return function(t){return e(t)}}var Ql=pQ,Jf={exports:{}};Jf.exports;(function(e,t){var r=OC,i=t&&!t.nodeType&&t,u=i&&!0&&e&&!e.nodeType&&e,o=u&&u.exports===i,a=o&&r.process,n=function(){try{var l=u&&u.require&&u.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=n})(Jf,Jf.exports);var mh=Jf.exports,gQ=hQ,mQ=Ql,xT=mh,wT=xT&&xT.isTypedArray,vQ=wT?mQ(wT):gQ,H1=vQ;function yQ(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var qC=yQ,bQ=$1,xQ=cc,wQ=Object.prototype,_Q=wQ.hasOwnProperty;function TQ(e,t,r){var i=e[t];(!(_Q.call(e,t)&&xQ(i,r))||r===void 0&&!(t in e))&&bQ(e,t,r)}var V1=TQ,kQ=V1,MQ=$1;function SQ(e,t,r,i){var u=!r;r||(r={});for(var o=-1,a=t.length;++o-1&&e%1==0&&e0){if(++t>=Iee)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var VC=jee,$ee=Lee,Bee=VC,zee=Bee($ee),G1=zee,qee=Yo,Wee=HC,Uee=G1;function Hee(e,t){return Uee(Wee(e,t,qee),e+"")}var vh=Hee,Vee=cc,Yee=Jl,Gee=fc,Xee=Ya;function Zee(e,t,r){if(!Xee(r))return!1;var i=typeof t;return(i=="number"?Yee(r)&&Gee(t,r.length):i=="string"&&t in r)?Vee(r[t],e):!1}var X1=Zee,Kee=vh,Jee=X1;function Qee(e){return Kee(function(t,r){var i=-1,u=r.length,o=u>1?r[u-1]:void 0,a=u>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(u--,o):void 0,a&&Jee(r[0],r[1],a)&&(o=u<3?void 0:o,u=1),t=Object(t);++it?1:e>=t?0:NaN}function J1(e){let t=e,r=e;e.length===1&&(t=(a,n)=>e(a)-n,r=cne(e));function i(a,n,l,f){for(l==null&&(l=0),f==null&&(f=a.length);l>>1;r(a[s],n)<0?l=s+1:f=s}return l}function u(a,n,l,f){for(l==null&&(l=0),f==null&&(f=a.length);l>>1;r(a[s],n)>0?f=s:l=s+1}return l}function o(a,n,l,f){l==null&&(l=0),f==null&&(f=a.length);const s=i(a,n,l,f-1);return s>l&&t(a[s-1],n)>-t(a[s],n)?s-1:s}return{left:i,center:o,right:u}}function cne(e){return(t,r)=>JC(e(t),r)}function fne(e){return e===null?NaN:+e}const dne=J1(JC),hne=dne.right;J1(fne).center;var av=Math.sqrt(50),iv=Math.sqrt(10),ov=Math.sqrt(2);function lv(e,t,r){var i,u=-1,o,a,n;if(t=+t,e=+e,r=+r,e===t&&r>0)return[e];if((i=t0){let l=Math.round(e/n),f=Math.round(t/n);for(l*nt&&--f,a=new Array(o=f-l+1);++ut&&--f,a=new Array(o=f-l+1);++u=0?(o>=av?10:o>=iv?5:o>=ov?2:1)*Math.pow(10,u):-Math.pow(10,-u)/(o>=av?10:o>=iv?5:o>=ov?2:1)}function sv(e,t,r){var i=Math.abs(t-e)/Math.max(0,r),u=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/u;return o>=av?u*=10:o>=iv?u*=5:o>=ov&&(u*=2),t>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?tf(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?tf(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=vne.exec(e))?new Ra(t[1],t[2],t[3],1):(t=yne.exec(e))?new Ra(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=bne.exec(e))?tf(t[1],t[2],t[3],t[4]):(t=xne.exec(e))?tf(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=wne.exec(e))?$T(t[1],t[2]/100,t[3]/100,1):(t=_ne.exec(e))?$T(t[1],t[2]/100,t[3]/100,t[4]):RT.hasOwnProperty(e)?FT(RT[e]):e==="transparent"?new Ra(NaN,NaN,NaN,0):null}function FT(e){return new Ra(e>>16&255,e>>8&255,e&255,1)}function tf(e,t,r,i){return i<=0&&(e=t=r=NaN),new Ra(e,t,r,i)}function kne(e){return e instanceof pc||(e=Po(e)),e?(e=e.rgb(),new Ra(e.r,e.g,e.b,e.opacity)):new Ra}function Do(e,t,r,i){return arguments.length===1?kne(e):new Ra(e,t,r,i??1)}function Ra(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}eb(Ra,Do,t8(pc,{brighter:function(e){return e=e==null?Qf:Math.pow(Qf,e),new Ra(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?Uu:Math.pow(Uu,e),new Ra(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:NT,formatHex:NT,formatRgb:jT,toString:jT}));function NT(){return"#"+zm(this.r)+zm(this.g)+zm(this.b)}function jT(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function zm(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function $T(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new fi(e,t,r,i)}function n8(e){if(e instanceof fi)return new fi(e.h,e.s,e.l,e.opacity);if(e instanceof pc||(e=Po(e)),!e)return new fi;if(e instanceof fi)return e;e=e.rgb();var t=e.r/255,r=e.g/255,i=e.b/255,u=Math.min(t,r,i),o=Math.max(t,r,i),a=NaN,n=o-u,l=(o+u)/2;return n?(t===o?a=(r-i)/n+(r0&&l<1?0:a,new fi(a,n,l,e.opacity)}function Mne(e,t,r,i){return arguments.length===1?n8(e):new fi(e,t,r,i??1)}function fi(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}eb(fi,Mne,t8(pc,{brighter:function(e){return e=e==null?Qf:Math.pow(Qf,e),new fi(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Uu:Math.pow(Uu,e),new fi(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*t,u=2*r-i;return new Ra(qm(e>=240?e-240:e+120,u,i),qm(e,u,i),qm(e<120?e+240:e-120,u,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function qm(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const tb=e=>()=>e;function Sne(e,t){return function(r){return e+r*t}}function Cne(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(i){return Math.pow(e+i*t,r)}}function One(e){return(e=+e)==1?r8:function(t,r){return r-t?Cne(t,r,e):tb(isNaN(t)?r:t)}}function r8(e,t){var r=t-e;return r?Sne(e,r):tb(isNaN(e)?t:e)}const BT=function e(t){var r=One(t);function i(u,o){var a=r((u=Do(u)).r,(o=Do(o)).r),n=r(u.g,o.g),l=r(u.b,o.b),f=r8(u.opacity,o.opacity);return function(s){return u.r=a(s),u.g=n(s),u.b=l(s),u.opacity=f(s),u+""}}return i.gamma=e,i}(1);function Ane(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,i=t.slice(),u;return function(o){for(u=0;ur&&(o=t.slice(r,o),n[a]?n[a]+=o:n[++a]=o),(i=i[0])===(u=u[0])?n[a]?n[a]+=u:n[++a]=u:(n[++a]=null,l.push({i:a,x:ed(i,u)})),r=Wm.lastIndex;return rt&&(r=e,e=t,t=r),function(i){return Math.max(e,Math.min(t,i))}}function zne(e,t,r){var i=e[0],u=e[1],o=t[0],a=t[1];return u2?qne:zne,l=f=null,c}function c(d){return d==null||isNaN(d=+d)?o:(l||(l=n(e.map(i),t,r)))(i(a(d)))}return c.invert=function(d){return a(u((f||(f=n(t,e.map(i),ed)))(d)))},c.domain=function(d){return arguments.length?(e=Array.from(d,$ne),s()):e.slice()},c.range=function(d){return arguments.length?(t=Array.from(d),s()):t.slice()},c.rangeRound=function(d){return t=Array.from(d),r=Nne,s()},c.clamp=function(d){return arguments.length?(a=d?!0:pl,s()):a!==pl},c.interpolate=function(d){return arguments.length?(r=d,s()):r},c.unknown=function(d){return arguments.length?(o=d,c):o},function(d,h){return i=d,u=h,s()}}function i8(){return a8()(pl,pl)}function Wne(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function td(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,i=e.slice(0,r);return[i.length>1?i[0]+i.slice(2):i,+e.slice(r+1)]}function El(e){return e=td(Math.abs(e)),e?e[1]:NaN}function Une(e,t){return function(r,i){for(var u=r.length,o=[],a=0,n=e[0],l=0;u>0&&n>0&&(l+n+1>i&&(n=Math.max(1,i-l)),o.push(r.substring(u-=n,u+n)),!((l+=n+1)>i));)n=e[a=(a+1)%e.length];return o.reverse().join(t)}}function Hne(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var Vne=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function nd(e){if(!(t=Vne.exec(e)))throw new Error("invalid format: "+e);var t;return new ab({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]})}nd.prototype=ab.prototype;function ab(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}ab.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Yne(e){e:for(var t=e.length,r=1,i=-1,u;r0&&(i=0);break}return i>0?e.slice(0,i)+e.slice(u+1):e}var o8;function Gne(e,t){var r=td(e,t);if(!r)return e+"";var i=r[0],u=r[1],o=u-(o8=Math.max(-8,Math.min(8,Math.floor(u/3)))*3)+1,a=i.length;return o===a?i:o>a?i+new Array(o-a+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+td(e,Math.max(0,t+o-1))[0]}function qT(e,t){var r=td(e,t);if(!r)return e+"";var i=r[0],u=r[1];return u<0?"0."+new Array(-u).join("0")+i:i.length>u+1?i.slice(0,u+1)+"."+i.slice(u+1):i+new Array(u-i.length+2).join("0")}const WT={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:Wne,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return qT(e*100,t)},r:qT,s:Gne,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function UT(e){return e}var HT=Array.prototype.map,VT=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Xne(e){var t=e.grouping===void 0||e.thousands===void 0?UT:Une(HT.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",i=e.currency===void 0?"":e.currency[1]+"",u=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?UT:Hne(HT.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",n=e.minus===void 0?"-":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function f(c){c=nd(c);var d=c.fill,h=c.align,p=c.sign,m=c.symbol,y=c.zero,v=c.width,g=c.comma,b=c.precision,x=c.trim,_=c.type;_==="n"?(g=!0,_="g"):WT[_]||(b===void 0&&(b=12),x=!0,_="g"),(y||d==="0"&&h==="=")&&(y=!0,d="0",h="=");var w=m==="$"?r:m==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",k=m==="$"?i:/[%p]/.test(_)?a:"",T=WT[_],M=/[defgprs%]/.test(_);b=b===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function S(C){var P=w,D=k,O,R,F;if(_==="c")D=T(C)+D,C="";else{C=+C;var A=C<0||1/C<0;if(C=isNaN(C)?l:T(Math.abs(C),b),x&&(C=Yne(C)),A&&+C==0&&p!=="+"&&(A=!1),P=(A?p==="("?p:n:p==="-"||p==="("?"":p)+P,D=(_==="s"?VT[8+o8/3]:"")+D+(A&&p==="("?")":""),M){for(O=-1,R=C.length;++OF||F>57){D=(F===46?u+C.slice(O+1):C.slice(O))+D,C=C.slice(0,O);break}}}g&&!y&&(C=t(C,1/0));var z=P.length+C.length+D.length,B=z>1)+P+C+D+B.slice(z);break;default:C=B+P+C+D;break}return o(C)}return S.toString=function(){return c+""},S}function s(c,d){var h=f((c=nd(c),c.type="f",c)),p=Math.max(-8,Math.min(8,Math.floor(El(d)/3)))*3,m=Math.pow(10,-p),y=VT[8+p/3];return function(v){return h(m*v)+y}}return{format:f,formatPrefix:s}}var nf,is,l8;Zne({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function Zne(e){return nf=Xne(e),is=nf.format,l8=nf.formatPrefix,nf}function Kne(e){return Math.max(0,-El(Math.abs(e)))}function Jne(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(El(t)/3)))*3-El(Math.abs(e)))}function Qne(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,El(t)-El(e))+1}function ere(e,t,r,i){var u=sv(e,t,r),o;switch(i=nd(i??",f"),i.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return i.precision==null&&!isNaN(o=Jne(u,a))&&(i.precision=o),l8(i,a)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(o=Qne(u,Math.max(Math.abs(e),Math.abs(t))))&&(i.precision=o-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(o=Kne(u))&&(i.precision=o-(i.type==="%")*2);break}}return is(i)}function tre(e){var t=e.domain;return e.ticks=function(r){var i=t();return lv(i[0],i[i.length-1],r??10)},e.tickFormat=function(r,i){var u=t();return ere(u[0],u[u.length-1],r??10,i)},e.nice=function(r){r==null&&(r=10);var i=t(),u=0,o=i.length-1,a=i[u],n=i[o],l,f,s=10;for(n0;){if(f=QC(a,n,r),f===l)return i[u]=a,i[o]=n,t(i);if(f>0)a=Math.floor(a/f)*f,n=Math.ceil(n/f)*f;else if(f<0)a=Math.ceil(a*f)/f,n=Math.floor(n*f)/f;else break;l=f}return e},e}function Eo(){var e=i8();return e.copy=function(){return rb(e,Eo())},as.apply(e,arguments),tre(e)}function s8(e,t){e=e.slice();var r=0,i=e.length-1,u=e[r],o=e[i],a;return o0){for(;d<=h;++d)for(m=1,p=o(d);ms)break;g.push(y)}}else for(;d<=h;++d)for(m=i-1,p=o(d);m>=1;--m)if(y=p*m,!(ys)break;g.push(y)}g.length*20))return l;do l.push(f=new Date(+o)),t(o,n),e(o);while(f=a)for(;e(a),!o(a);)a.setTime(a-1)},function(a,n){if(a>=a)if(n<0)for(;++n<=0;)for(;t(a,-1),!o(a););else for(;--n>=0;)for(;t(a,1),!o(a););})},r&&(u.count=function(o,a){return Um.setTime(+o),Hm.setTime(+a),e(Um),e(Hm),Math.floor(r(Um,Hm))},u.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?u.filter(i?function(a){return i(a)%o===0}:function(a){return u.count(0,a)%o===0}):u}),u}var rd=ta(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});rd.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ta(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):rd};rd.range;const Ti=1e3,Ua=Ti*60,ki=Ua*60,Ro=ki*24,ib=Ro*7,ZT=Ro*30,Vm=Ro*365;var Mo=ta(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Ti)},function(e,t){return(t-e)/Ti},function(e){return e.getUTCSeconds()});Mo.range;var ob=ta(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ti)},function(e,t){e.setTime(+e+t*Ua)},function(e,t){return(t-e)/Ua},function(e){return e.getMinutes()});ob.range;var lb=ta(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ti-e.getMinutes()*Ua)},function(e,t){e.setTime(+e+t*ki)},function(e,t){return(t-e)/ki},function(e){return e.getHours()});lb.range;var gc=ta(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ua)/Ro,e=>e.getDate()-1);gc.range;function Go(e){return ta(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,r){t.setDate(t.getDate()+r*7)},function(t,r){return(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Ua)/ib})}var bh=Go(0),ad=Go(1),sre=Go(2),ure=Go(3),Rl=Go(4),cre=Go(5),fre=Go(6);bh.range;ad.range;sre.range;ure.range;Rl.range;cre.range;fre.range;var sb=ta(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});sb.range;var Oi=ta(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});Oi.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ta(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)})};Oi.range;var ub=ta(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Ua)},function(e,t){return(t-e)/Ua},function(e){return e.getUTCMinutes()});ub.range;var cb=ta(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*ki)},function(e,t){return(t-e)/ki},function(e){return e.getUTCHours()});cb.range;var mc=ta(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/Ro},function(e){return e.getUTCDate()-1});mc.range;function Xo(e){return ta(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCDate(t.getUTCDate()+r*7)},function(t,r){return(r-t)/ib})}var xh=Xo(0),id=Xo(1),dre=Xo(2),hre=Xo(3),Ll=Xo(4),pre=Xo(5),gre=Xo(6);xh.range;id.range;dre.range;hre.range;Ll.range;pre.range;gre.range;var fb=ta(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});fb.range;var Ai=ta(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});Ai.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ta(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})};Ai.range;function c8(e,t,r,i,u,o){const a=[[Mo,1,Ti],[Mo,5,5*Ti],[Mo,15,15*Ti],[Mo,30,30*Ti],[o,1,Ua],[o,5,5*Ua],[o,15,15*Ua],[o,30,30*Ua],[u,1,ki],[u,3,3*ki],[u,6,6*ki],[u,12,12*ki],[i,1,Ro],[i,2,2*Ro],[r,1,ib],[t,1,ZT],[t,3,3*ZT],[e,1,Vm]];function n(f,s,c){const d=sy).right(a,d);if(h===a.length)return e.every(sv(f/Vm,s/Vm,c));if(h===0)return rd.every(Math.max(sv(f,s,c),1));const[p,m]=a[d/a[h-1][2]53)return null;"w"in U||(U.w=1),"Z"in U?(Y=Gm(nu(U.y,0,1)),Z=Y.getUTCDay(),Y=Z>4||Z===0?id.ceil(Y):id(Y),Y=mc.offset(Y,(U.V-1)*7),U.y=Y.getUTCFullYear(),U.m=Y.getUTCMonth(),U.d=Y.getUTCDate()+(U.w+6)%7):(Y=Ym(nu(U.y,0,1)),Z=Y.getDay(),Y=Z>4||Z===0?ad.ceil(Y):ad(Y),Y=gc.offset(Y,(U.V-1)*7),U.y=Y.getFullYear(),U.m=Y.getMonth(),U.d=Y.getDate()+(U.w+6)%7)}else("W"in U||"U"in U)&&("w"in U||(U.w="u"in U?U.u%7:"W"in U?1:0),Z="Z"in U?Gm(nu(U.y,0,1)).getUTCDay():Ym(nu(U.y,0,1)).getDay(),U.m=0,U.d="W"in U?(U.w+6)%7+U.W*7-(Z+5)%7:U.w+U.U*7-(Z+6)%7);return"Z"in U?(U.H+=U.Z/100|0,U.M+=U.Z%100,Gm(U)):Ym(U)}}function T(V,te,ee,U){for(var Q=0,Y=te.length,Z=ee.length,X,re;Q=Z)return-1;if(X=te.charCodeAt(Q++),X===37){if(X=te.charAt(Q++),re=_[X in KT?te.charAt(Q++):X],!re||(U=re(V,ee,U))<0)return-1}else if(X!=ee.charCodeAt(U++))return-1}return U}function M(V,te,ee){var U=f.exec(te.slice(ee));return U?(V.p=s.get(U[0].toLowerCase()),ee+U[0].length):-1}function S(V,te,ee){var U=h.exec(te.slice(ee));return U?(V.w=p.get(U[0].toLowerCase()),ee+U[0].length):-1}function C(V,te,ee){var U=c.exec(te.slice(ee));return U?(V.w=d.get(U[0].toLowerCase()),ee+U[0].length):-1}function P(V,te,ee){var U=v.exec(te.slice(ee));return U?(V.m=g.get(U[0].toLowerCase()),ee+U[0].length):-1}function D(V,te,ee){var U=m.exec(te.slice(ee));return U?(V.m=y.get(U[0].toLowerCase()),ee+U[0].length):-1}function O(V,te,ee){return T(V,t,te,ee)}function R(V,te,ee){return T(V,r,te,ee)}function F(V,te,ee){return T(V,i,te,ee)}function A(V){return a[V.getDay()]}function z(V){return o[V.getDay()]}function B(V){return l[V.getMonth()]}function $(V){return n[V.getMonth()]}function j(V){return u[+(V.getHours()>=12)]}function N(V){return 1+~~(V.getMonth()/3)}function E(V){return a[V.getUTCDay()]}function W(V){return o[V.getUTCDay()]}function G(V){return l[V.getUTCMonth()]}function L(V){return n[V.getUTCMonth()]}function q(V){return u[+(V.getUTCHours()>=12)]}function H(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var te=w(V+="",b);return te.toString=function(){return V},te},parse:function(V){var te=k(V+="",!1);return te.toString=function(){return V},te},utcFormat:function(V){var te=w(V+="",x);return te.toString=function(){return V},te},utcParse:function(V){var te=k(V+="",!0);return te.toString=function(){return V},te}}}var KT={"-":"",_:" ",0:"0"},na=/^\s*\d+/,wre=/^%/,_re=/[\\^$*+?|[\]().{}]/g;function nr(e,t,r){var i=e<0?"-":"",u=(i?-e:e)+"",o=u.length;return i+(o[t.toLowerCase(),r]))}function kre(e,t,r){var i=na.exec(t.slice(r,r+1));return i?(e.w=+i[0],r+i[0].length):-1}function Mre(e,t,r){var i=na.exec(t.slice(r,r+1));return i?(e.u=+i[0],r+i[0].length):-1}function Sre(e,t,r){var i=na.exec(t.slice(r,r+2));return i?(e.U=+i[0],r+i[0].length):-1}function Cre(e,t,r){var i=na.exec(t.slice(r,r+2));return i?(e.V=+i[0],r+i[0].length):-1}function Ore(e,t,r){var i=na.exec(t.slice(r,r+2));return i?(e.W=+i[0],r+i[0].length):-1}function JT(e,t,r){var i=na.exec(t.slice(r,r+4));return i?(e.y=+i[0],r+i[0].length):-1}function QT(e,t,r){var i=na.exec(t.slice(r,r+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),r+i[0].length):-1}function Are(e,t,r){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),r+i[0].length):-1}function Pre(e,t,r){var i=na.exec(t.slice(r,r+1));return i?(e.q=i[0]*3-3,r+i[0].length):-1}function Dre(e,t,r){var i=na.exec(t.slice(r,r+2));return i?(e.m=i[0]-1,r+i[0].length):-1}function ek(e,t,r){var i=na.exec(t.slice(r,r+2));return i?(e.d=+i[0],r+i[0].length):-1}function Ere(e,t,r){var i=na.exec(t.slice(r,r+3));return i?(e.m=0,e.d=+i[0],r+i[0].length):-1}function tk(e,t,r){var i=na.exec(t.slice(r,r+2));return i?(e.H=+i[0],r+i[0].length):-1}function Rre(e,t,r){var i=na.exec(t.slice(r,r+2));return i?(e.M=+i[0],r+i[0].length):-1}function Lre(e,t,r){var i=na.exec(t.slice(r,r+2));return i?(e.S=+i[0],r+i[0].length):-1}function Ire(e,t,r){var i=na.exec(t.slice(r,r+3));return i?(e.L=+i[0],r+i[0].length):-1}function Fre(e,t,r){var i=na.exec(t.slice(r,r+6));return i?(e.L=Math.floor(i[0]/1e3),r+i[0].length):-1}function Nre(e,t,r){var i=wre.exec(t.slice(r,r+1));return i?r+i[0].length:-1}function jre(e,t,r){var i=na.exec(t.slice(r));return i?(e.Q=+i[0],r+i[0].length):-1}function $re(e,t,r){var i=na.exec(t.slice(r));return i?(e.s=+i[0],r+i[0].length):-1}function nk(e,t){return nr(e.getDate(),t,2)}function Bre(e,t){return nr(e.getHours(),t,2)}function zre(e,t){return nr(e.getHours()%12||12,t,2)}function qre(e,t){return nr(1+gc.count(Oi(e),e),t,3)}function f8(e,t){return nr(e.getMilliseconds(),t,3)}function Wre(e,t){return f8(e,t)+"000"}function Ure(e,t){return nr(e.getMonth()+1,t,2)}function Hre(e,t){return nr(e.getMinutes(),t,2)}function Vre(e,t){return nr(e.getSeconds(),t,2)}function Yre(e){var t=e.getDay();return t===0?7:t}function Gre(e,t){return nr(bh.count(Oi(e)-1,e),t,2)}function d8(e){var t=e.getDay();return t>=4||t===0?Rl(e):Rl.ceil(e)}function Xre(e,t){return e=d8(e),nr(Rl.count(Oi(e),e)+(Oi(e).getDay()===4),t,2)}function Zre(e){return e.getDay()}function Kre(e,t){return nr(ad.count(Oi(e)-1,e),t,2)}function Jre(e,t){return nr(e.getFullYear()%100,t,2)}function Qre(e,t){return e=d8(e),nr(e.getFullYear()%100,t,2)}function eae(e,t){return nr(e.getFullYear()%1e4,t,4)}function tae(e,t){var r=e.getDay();return e=r>=4||r===0?Rl(e):Rl.ceil(e),nr(e.getFullYear()%1e4,t,4)}function nae(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+nr(t/60|0,"0",2)+nr(t%60,"0",2)}function rk(e,t){return nr(e.getUTCDate(),t,2)}function rae(e,t){return nr(e.getUTCHours(),t,2)}function aae(e,t){return nr(e.getUTCHours()%12||12,t,2)}function iae(e,t){return nr(1+mc.count(Ai(e),e),t,3)}function h8(e,t){return nr(e.getUTCMilliseconds(),t,3)}function oae(e,t){return h8(e,t)+"000"}function lae(e,t){return nr(e.getUTCMonth()+1,t,2)}function sae(e,t){return nr(e.getUTCMinutes(),t,2)}function uae(e,t){return nr(e.getUTCSeconds(),t,2)}function cae(e){var t=e.getUTCDay();return t===0?7:t}function fae(e,t){return nr(xh.count(Ai(e)-1,e),t,2)}function p8(e){var t=e.getUTCDay();return t>=4||t===0?Ll(e):Ll.ceil(e)}function dae(e,t){return e=p8(e),nr(Ll.count(Ai(e),e)+(Ai(e).getUTCDay()===4),t,2)}function hae(e){return e.getUTCDay()}function pae(e,t){return nr(id.count(Ai(e)-1,e),t,2)}function gae(e,t){return nr(e.getUTCFullYear()%100,t,2)}function mae(e,t){return e=p8(e),nr(e.getUTCFullYear()%100,t,2)}function vae(e,t){return nr(e.getUTCFullYear()%1e4,t,4)}function yae(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Ll(e):Ll.ceil(e),nr(e.getUTCFullYear()%1e4,t,4)}function bae(){return"+0000"}function ak(){return"%"}function ik(e){return+e}function ok(e){return Math.floor(+e/1e3)}var sl,g8,m8;xae({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function xae(e){return sl=xre(e),g8=sl.format,sl.parse,m8=sl.utcFormat,sl.utcParse,sl}function wae(e){return new Date(e)}function _ae(e){return e instanceof Date?+e:+new Date(+e)}function db(e,t,r,i,u,o,a,n,l,f){var s=i8(),c=s.invert,d=s.domain,h=f(".%L"),p=f(":%S"),m=f("%I:%M"),y=f("%I %p"),v=f("%a %d"),g=f("%b %d"),b=f("%B"),x=f("%Y");function _(w){return(l(w)=1?(r=1,t-1):Math.floor(r*t),u=e[i],o=e[i+1],a=i>0?e[i-1]:2*u-o,n=ir&&(o=t.slice(r,o),n[a]?n[a]+=o:n[++a]=o),(i=i[0])===(u=u[0])?n[a]?n[a]+=u:n[++a]=u:(n[++a]=null,l.push({i:a,x:fv(i,u)})),r=Xm.lastIndex;return r-1}var vb=oie;function lie(e,t,r){for(var i=-1,u=e==null?0:e.length;++i=gie&&(o=pie,a=!1,t=new uie(t));e:for(;++uvo)if(!(Math.abs(s*n-l*f)>vo)||!u)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var d=r-o,h=i-a,p=n*n+l*l,m=d*d+h*h,y=Math.sqrt(p),v=Math.sqrt(c),g=u*Math.tan((hv-Math.acos((p+c-m)/(2*y*v)))/2),b=g/v,x=g/y;Math.abs(b-1)>vo&&(this._+="L"+(e+b*f)+","+(t+b*s)),this._+="A"+u+","+u+",0,0,"+ +(s*d>f*h)+","+(this._x1=e+x*n)+","+(this._y1=t+x*l)}},arc:function(e,t,r,i,u,o){e=+e,t=+t,r=+r,o=!!o;var a=r*Math.cos(i),n=r*Math.sin(i),l=e+a,f=t+n,s=1^o,c=o?i-u:u-i;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+l+","+f:(Math.abs(this._x1-l)>vo||Math.abs(this._y1-f)>vo)&&(this._+="L"+l+","+f),r&&(c<0&&(c=c%pv+pv),c>Tie?this._+="A"+r+","+r+",0,1,"+s+","+(e-a)+","+(t-n)+"A"+r+","+r+",0,1,"+s+","+(this._x1=l)+","+(this._y1=f):c>vo&&(this._+="A"+r+","+r+",0,"+ +(c>=hv)+","+s+","+(this._x1=e+r*Math.cos(u))+","+(this._y1=t+r*Math.sin(u))))},rect:function(e,t,r,i){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +r+"v"+ +i+"h"+-r+"Z"},toString:function(){return this._}};function ua(e){return function(){return e}}var sk=1e-12;function O8(e){this._context=e}O8.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function xb(e){return new O8(e)}function A8(e){return e[0]}function P8(e){return e[1]}function D8(){var e=A8,t=P8,r=ua(!0),i=null,u=xb,o=null;function a(n){var l,f=n.length,s,c=!1,d;for(i==null&&(o=u(d=bb())),l=0;l<=f;++l)!(l=d;--h)n.point(g[h],b[h]);n.lineEnd(),n.areaEnd()}y&&(g[c]=+e(m,c,s),b[c]=+r(m,c,s),n.point(t?+t(m,c,s):g[c],i?+i(m,c,s):b[c]))}if(v)return n=null,v+""||null}function f(){return D8().defined(u).curve(a).context(o)}return l.x=function(s){return arguments.length?(e=typeof s=="function"?s:ua(+s),t=null,l):e},l.x0=function(s){return arguments.length?(e=typeof s=="function"?s:ua(+s),l):e},l.x1=function(s){return arguments.length?(t=s==null?null:typeof s=="function"?s:ua(+s),l):t},l.y=function(s){return arguments.length?(r=typeof s=="function"?s:ua(+s),i=null,l):r},l.y0=function(s){return arguments.length?(r=typeof s=="function"?s:ua(+s),l):r},l.y1=function(s){return arguments.length?(i=s==null?null:typeof s=="function"?s:ua(+s),l):i},l.lineX0=l.lineY0=function(){return f().x(e).y(r)},l.lineY1=function(){return f().x(e).y(i)},l.lineX1=function(){return f().x(t).y(r)},l.defined=function(s){return arguments.length?(u=typeof s=="function"?s:ua(!!s),l):u},l.curve=function(s){return arguments.length?(a=s,o!=null&&(n=a(o)),l):a},l.context=function(s){return arguments.length?(s==null?o=n=null:n=a(o=s),l):o},l}var uk=Array.prototype.slice;function eo(){}function ld(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 Gh(e){this._context=e}Gh.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:ld(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ld(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Mie(e){return new Gh(e)}function E8(e){this._context=e}E8.prototype={areaStart:eo,areaEnd:eo,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:ld(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Sie(e){return new E8(e)}function R8(e){this._context=e}R8.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:ld(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Cie(e){return new R8(e)}function L8(e,t){this._basis=new Gh(e),this._beta=t}L8.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 i=e[0],u=t[0],o=e[r]-i,a=t[r]-u,n=-1,l;++n<=r;)l=n/r,this._basis.point(this._beta*e[n]+(1-this._beta)*(i+l*o),this._beta*t[n]+(1-this._beta)*(u+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const Oie=function e(t){function r(i){return t===1?new Gh(i):new L8(i,t)}return r.beta=function(i){return e(+i)},r}(.85);function sd(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 wb(e,t){this._context=e,this._k=(1-t)/6}wb.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:sd(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:sd(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Aie=function e(t){function r(i){return new wb(i,t)}return r.tension=function(i){return e(+i)},r}(0);function _b(e,t){this._context=e,this._k=(1-t)/6}_b.prototype={areaStart:eo,areaEnd:eo,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);break}}},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:sd(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Pie=function e(t){function r(i){return new _b(i,t)}return r.tension=function(i){return e(+i)},r}(0);function Tb(e,t){this._context=e,this._k=(1-t)/6}Tb.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||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:sd(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Die=function e(t){function r(i){return new Tb(i,t)}return r.tension=function(i){return e(+i)},r}(0);function kb(e,t,r){var i=e._x1,u=e._y1,o=e._x2,a=e._y2;if(e._l01_a>sk){var n=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*n-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,u=(u*n-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>sk){var f=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,s=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*f+e._x1*e._l23_2a-t*e._l12_2a)/s,a=(a*f+e._y1*e._l23_2a-r*e._l12_2a)/s}e._context.bezierCurveTo(i,u,o,a,e._x2,e._y2)}function I8(e,t){this._context=e,this._alpha=t}I8.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);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,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:kb(this,e,t);break}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}};const Eie=function e(t){function r(i){return t?new I8(i,t):new wb(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function F8(e,t){this._context=e,this._alpha=t}F8.prototype={areaStart:eo,areaEnd:eo,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);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,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:kb(this,e,t);break}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}};const Rie=function e(t){function r(i){return t?new F8(i,t):new _b(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function N8(e,t){this._context=e,this._alpha=t}N8.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||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,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:kb(this,e,t);break}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}};const Lie=function e(t){function r(i){return t?new N8(i,t):new Tb(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function j8(e){this._context=e}j8.prototype={areaStart:eo,areaEnd:eo,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Iie(e){return new j8(e)}function ck(e){return e<0?-1:1}function fk(e,t,r){var i=e._x1-e._x0,u=t-e._x1,o=(e._y1-e._y0)/(i||u<0&&-0),a=(r-e._y1)/(u||i<0&&-0),n=(o*u+a*i)/(i+u);return(ck(o)+ck(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(n))||0}function dk(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Zm(e,t,r){var i=e._x0,u=e._y0,o=e._x1,a=e._y1,n=(o-i)/3;e._context.bezierCurveTo(i+n,u+n*t,o-n,a-n*r,o,a)}function ud(e){this._context=e}ud.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:Zm(this,this._t0,dk(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Zm(this,dk(this,r=fk(this,e,t)),r);break;default:Zm(this,this._t0,r=fk(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function $8(e){this._context=new B8(e)}($8.prototype=Object.create(ud.prototype)).point=function(e,t){ud.prototype.point.call(this,t,e)};function B8(e){this._context=e}B8.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,i,u,o){this._context.bezierCurveTo(t,e,i,r,o,u)}};function Fie(e){return new ud(e)}function Nie(e){return new $8(e)}function z8(e){this._context=e}z8.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var i=hk(e),u=hk(t),o=0,a=1;a=0;--t)u[t]=(a[t]-u[t+1])/o[t];for(o[r-1]=(e[r]+u[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function $ie(e){return new Xh(e,.5)}function Bie(e){return new Xh(e,0)}function zie(e){return new Xh(e,1)}function Il(e,t){if((a=e.length)>1)for(var r=1,i,u,o=e[t[0]],a,n=o.length;r=0;)r[t]=t;return r}function qie(e,t){return e[t]}function q8(){var e=ua([]),t=Fl,r=Il,i=qie;function u(o){var a=e.apply(this,arguments),n,l=o.length,f=a.length,s=new Array(f),c;for(n=0;n0){for(var r,i,u=0,o=e[0].length,a;u0)for(var r,i=0,u,o,a,n,l,f=e[t[0]].length;i0?(u[0]=a,u[1]=a+=o):o<0?(u[1]=n,u[0]=n+=o):(u[0]=0,u[1]=o)}function Uie(e,t){if((u=e.length)>0){for(var r=0,i=e[t[0]],u,o=i.length;r0)||!((o=(u=e[t[0]]).length)>0))){for(var r=0,i=1,u,o,a;io&&(o=u,r=t);return r}function W8(e){var t=e.map(U8);return Fl(e).sort(function(r,i){return t[r]-t[i]})}function U8(e){for(var t=0,r=-1,i=e.length,u;++rg&&(g=f),w=y*y*_,b=Math.max(g/w,w/v),b>x){y-=f;break}x=b}a.push(l={value:y,dice:h1?i:1)},r}(H8);function Jie(e,t,r,i,u){var o=e.children,a,n=o.length,l,f=new Array(n+1);for(f[0]=l=a=0;a=d-1){var g=o[c];g.x0=p,g.y0=m,g.x1=y,g.y1=v;return}for(var b=f[c],x=h/2+b,_=c+1,w=d-1;_>>1;f[k]v-m){var S=(p*M+y*T)/h;s(c,_,T,p,m,S,v),s(_,d,M,S,m,y,v)}else{var C=(m*M+v*T)/h;s(c,_,T,p,m,y,C),s(_,d,M,p,C,y,v)}}}function Qie(e,t,r,i,u){(e.depth&1?Kh:Zh)(e,t,r,i,u)}const eoe=function e(t){function r(i,u,o,a,n){if((l=i._squarify)&&l.ratio===t)for(var l,f,s,c,d=-1,h,p=l.length,m=i.value;++d1?i:1)},r}(H8);var Km=new Date,Jm=new Date;function ra(e,t,r,i){function u(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return u.floor=function(o){return e(o=new Date(+o)),o},u.ceil=function(o){return e(o=new Date(o-1)),t(o,1),e(o),o},u.round=function(o){var a=u(o),n=u.ceil(o);return o-a0))return l;do l.push(f=new Date(+o)),t(o,n),e(o);while(f=a)for(;e(a),!o(a);)a.setTime(a-1)},function(a,n){if(a>=a)if(n<0)for(;++n<=0;)for(;t(a,-1),!o(a););else for(;--n>=0;)for(;t(a,1),!o(a););})},r&&(u.count=function(o,a){return Km.setTime(+o),Jm.setTime(+a),e(Km),e(Jm),Math.floor(r(Km,Jm))},u.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?u.filter(i?function(a){return i(a)%o===0}:function(a){return u.count(0,a)%o===0}):u}),u}var Vu=ra(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Vu.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ra(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):Vu};Vu.range;var cd=1e3,Lo=6e4,fd=36e5,Y8=864e5,G8=6048e5,mv=ra(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*cd)},function(e,t){return(t-e)/cd},function(e){return e.getUTCSeconds()});mv.range;var X8=ra(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*cd)},function(e,t){e.setTime(+e+t*Lo)},function(e,t){return(t-e)/Lo},function(e){return e.getMinutes()});X8.range;var Z8=ra(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*cd-e.getMinutes()*Lo)},function(e,t){e.setTime(+e+t*fd)},function(e,t){return(t-e)/fd},function(e){return e.getHours()});Z8.range;var Jh=ra(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Lo)/Y8},function(e){return e.getDate()-1});Jh.range;function Zo(e){return ra(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,r){t.setDate(t.getDate()+r*7)},function(t,r){return(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Lo)/G8})}var dd=Zo(0),Yu=Zo(1),K8=Zo(2),J8=Zo(3),Io=Zo(4),Q8=Zo(5),e7=Zo(6);dd.range;Yu.range;K8.range;J8.range;Io.range;Q8.range;e7.range;var t7=ra(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});t7.range;var to=ra(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});to.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ra(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)})};to.range;var n7=ra(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Lo)},function(e,t){return(t-e)/Lo},function(e){return e.getUTCMinutes()});n7.range;var r7=ra(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*fd)},function(e,t){return(t-e)/fd},function(e){return e.getUTCHours()});r7.range;var Qh=ra(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/Y8},function(e){return e.getUTCDate()-1});Qh.range;function Ko(e){return ra(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCDate(t.getUTCDate()+r*7)},function(t,r){return(r-t)/G8})}var hd=Ko(0),Gu=Ko(1),a7=Ko(2),i7=Ko(3),Fo=Ko(4),o7=Ko(5),l7=Ko(6);hd.range;Gu.range;a7.range;i7.range;Fo.range;o7.range;l7.range;var s7=ra(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});s7.range;var no=ra(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});no.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ra(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})};no.range;function Qm(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 e0(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 iu(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function toe(e){var t=e.dateTime,r=e.date,i=e.time,u=e.periods,o=e.days,a=e.shortDays,n=e.months,l=e.shortMonths,f=ou(u),s=lu(u),c=ou(o),d=lu(o),h=ou(a),p=lu(a),m=ou(n),y=lu(n),v=ou(l),g=lu(l),b={a:A,A:z,b:B,B:$,c:null,d:bk,e:bk,f:koe,g:Loe,G:Foe,H:woe,I:_oe,j:Toe,L:u7,m:Moe,M:Soe,p:j,q:N,Q:_k,s:Tk,S:Coe,u:Ooe,U:Aoe,V:Poe,w:Doe,W:Eoe,x:null,X:null,y:Roe,Y:Ioe,Z:Noe,"%":wk},x={a:E,A:W,b:G,B:L,c:null,d:xk,e:xk,f:zoe,g:Koe,G:Qoe,H:joe,I:$oe,j:Boe,L:f7,m:qoe,M:Woe,p:q,q:H,Q:_k,s:Tk,S:Uoe,u:Hoe,U:Voe,V:Yoe,w:Goe,W:Xoe,x:null,X:null,y:Zoe,Y:Joe,Z:ele,"%":wk},_={a:S,A:C,b:P,B:D,c:O,d:vk,e:vk,f:voe,g:mk,G:gk,H:yk,I:yk,j:hoe,L:moe,m:doe,M:poe,p:M,q:foe,Q:boe,s:xoe,S:goe,u:ooe,U:loe,V:soe,w:ioe,W:uoe,x:R,X:F,y:mk,Y:gk,Z:coe,"%":yoe};b.x=w(r,b),b.X=w(i,b),b.c=w(t,b),x.x=w(r,x),x.X=w(i,x),x.c=w(t,x);function w(V,te){return function(ee){var U=[],Q=-1,Y=0,Z=V.length,X,re,ie;for(ee instanceof Date||(ee=new Date(+ee));++Q53)return null;"w"in U||(U.w=1),"Z"in U?(Y=e0(iu(U.y,0,1)),Z=Y.getUTCDay(),Y=Z>4||Z===0?Gu.ceil(Y):Gu(Y),Y=Qh.offset(Y,(U.V-1)*7),U.y=Y.getUTCFullYear(),U.m=Y.getUTCMonth(),U.d=Y.getUTCDate()+(U.w+6)%7):(Y=Qm(iu(U.y,0,1)),Z=Y.getDay(),Y=Z>4||Z===0?Yu.ceil(Y):Yu(Y),Y=Jh.offset(Y,(U.V-1)*7),U.y=Y.getFullYear(),U.m=Y.getMonth(),U.d=Y.getDate()+(U.w+6)%7)}else("W"in U||"U"in U)&&("w"in U||(U.w="u"in U?U.u%7:"W"in U?1:0),Z="Z"in U?e0(iu(U.y,0,1)).getUTCDay():Qm(iu(U.y,0,1)).getDay(),U.m=0,U.d="W"in U?(U.w+6)%7+U.W*7-(Z+5)%7:U.w+U.U*7-(Z+6)%7);return"Z"in U?(U.H+=U.Z/100|0,U.M+=U.Z%100,e0(U)):Qm(U)}}function T(V,te,ee,U){for(var Q=0,Y=te.length,Z=ee.length,X,re;Q=Z)return-1;if(X=te.charCodeAt(Q++),X===37){if(X=te.charAt(Q++),re=_[X in pk?te.charAt(Q++):X],!re||(U=re(V,ee,U))<0)return-1}else if(X!=ee.charCodeAt(U++))return-1}return U}function M(V,te,ee){var U=f.exec(te.slice(ee));return U?(V.p=s[U[0].toLowerCase()],ee+U[0].length):-1}function S(V,te,ee){var U=h.exec(te.slice(ee));return U?(V.w=p[U[0].toLowerCase()],ee+U[0].length):-1}function C(V,te,ee){var U=c.exec(te.slice(ee));return U?(V.w=d[U[0].toLowerCase()],ee+U[0].length):-1}function P(V,te,ee){var U=v.exec(te.slice(ee));return U?(V.m=g[U[0].toLowerCase()],ee+U[0].length):-1}function D(V,te,ee){var U=m.exec(te.slice(ee));return U?(V.m=y[U[0].toLowerCase()],ee+U[0].length):-1}function O(V,te,ee){return T(V,t,te,ee)}function R(V,te,ee){return T(V,r,te,ee)}function F(V,te,ee){return T(V,i,te,ee)}function A(V){return a[V.getDay()]}function z(V){return o[V.getDay()]}function B(V){return l[V.getMonth()]}function $(V){return n[V.getMonth()]}function j(V){return u[+(V.getHours()>=12)]}function N(V){return 1+~~(V.getMonth()/3)}function E(V){return a[V.getUTCDay()]}function W(V){return o[V.getUTCDay()]}function G(V){return l[V.getUTCMonth()]}function L(V){return n[V.getUTCMonth()]}function q(V){return u[+(V.getUTCHours()>=12)]}function H(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var te=w(V+="",b);return te.toString=function(){return V},te},parse:function(V){var te=k(V+="",!1);return te.toString=function(){return V},te},utcFormat:function(V){var te=w(V+="",x);return te.toString=function(){return V},te},utcParse:function(V){var te=k(V+="",!0);return te.toString=function(){return V},te}}}var pk={"-":"",_:" ",0:"0"},aa=/^\s*\d+/,noe=/^%/,roe=/[\\^$*+?|[\]().{}]/g;function rr(e,t,r){var i=e<0?"-":"",u=(i?-e:e)+"",o=u.length;return i+(o68?1900:2e3),r+i[0].length):-1}function coe(e,t,r){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),r+i[0].length):-1}function foe(e,t,r){var i=aa.exec(t.slice(r,r+1));return i?(e.q=i[0]*3-3,r+i[0].length):-1}function doe(e,t,r){var i=aa.exec(t.slice(r,r+2));return i?(e.m=i[0]-1,r+i[0].length):-1}function vk(e,t,r){var i=aa.exec(t.slice(r,r+2));return i?(e.d=+i[0],r+i[0].length):-1}function hoe(e,t,r){var i=aa.exec(t.slice(r,r+3));return i?(e.m=0,e.d=+i[0],r+i[0].length):-1}function yk(e,t,r){var i=aa.exec(t.slice(r,r+2));return i?(e.H=+i[0],r+i[0].length):-1}function poe(e,t,r){var i=aa.exec(t.slice(r,r+2));return i?(e.M=+i[0],r+i[0].length):-1}function goe(e,t,r){var i=aa.exec(t.slice(r,r+2));return i?(e.S=+i[0],r+i[0].length):-1}function moe(e,t,r){var i=aa.exec(t.slice(r,r+3));return i?(e.L=+i[0],r+i[0].length):-1}function voe(e,t,r){var i=aa.exec(t.slice(r,r+6));return i?(e.L=Math.floor(i[0]/1e3),r+i[0].length):-1}function yoe(e,t,r){var i=noe.exec(t.slice(r,r+1));return i?r+i[0].length:-1}function boe(e,t,r){var i=aa.exec(t.slice(r));return i?(e.Q=+i[0],r+i[0].length):-1}function xoe(e,t,r){var i=aa.exec(t.slice(r));return i?(e.s=+i[0],r+i[0].length):-1}function bk(e,t){return rr(e.getDate(),t,2)}function woe(e,t){return rr(e.getHours(),t,2)}function _oe(e,t){return rr(e.getHours()%12||12,t,2)}function Toe(e,t){return rr(1+Jh.count(to(e),e),t,3)}function u7(e,t){return rr(e.getMilliseconds(),t,3)}function koe(e,t){return u7(e,t)+"000"}function Moe(e,t){return rr(e.getMonth()+1,t,2)}function Soe(e,t){return rr(e.getMinutes(),t,2)}function Coe(e,t){return rr(e.getSeconds(),t,2)}function Ooe(e){var t=e.getDay();return t===0?7:t}function Aoe(e,t){return rr(dd.count(to(e)-1,e),t,2)}function c7(e){var t=e.getDay();return t>=4||t===0?Io(e):Io.ceil(e)}function Poe(e,t){return e=c7(e),rr(Io.count(to(e),e)+(to(e).getDay()===4),t,2)}function Doe(e){return e.getDay()}function Eoe(e,t){return rr(Yu.count(to(e)-1,e),t,2)}function Roe(e,t){return rr(e.getFullYear()%100,t,2)}function Loe(e,t){return e=c7(e),rr(e.getFullYear()%100,t,2)}function Ioe(e,t){return rr(e.getFullYear()%1e4,t,4)}function Foe(e,t){var r=e.getDay();return e=r>=4||r===0?Io(e):Io.ceil(e),rr(e.getFullYear()%1e4,t,4)}function Noe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+rr(t/60|0,"0",2)+rr(t%60,"0",2)}function xk(e,t){return rr(e.getUTCDate(),t,2)}function joe(e,t){return rr(e.getUTCHours(),t,2)}function $oe(e,t){return rr(e.getUTCHours()%12||12,t,2)}function Boe(e,t){return rr(1+Qh.count(no(e),e),t,3)}function f7(e,t){return rr(e.getUTCMilliseconds(),t,3)}function zoe(e,t){return f7(e,t)+"000"}function qoe(e,t){return rr(e.getUTCMonth()+1,t,2)}function Woe(e,t){return rr(e.getUTCMinutes(),t,2)}function Uoe(e,t){return rr(e.getUTCSeconds(),t,2)}function Hoe(e){var t=e.getUTCDay();return t===0?7:t}function Voe(e,t){return rr(hd.count(no(e)-1,e),t,2)}function d7(e){var t=e.getUTCDay();return t>=4||t===0?Fo(e):Fo.ceil(e)}function Yoe(e,t){return e=d7(e),rr(Fo.count(no(e),e)+(no(e).getUTCDay()===4),t,2)}function Goe(e){return e.getUTCDay()}function Xoe(e,t){return rr(Gu.count(no(e)-1,e),t,2)}function Zoe(e,t){return rr(e.getUTCFullYear()%100,t,2)}function Koe(e,t){return e=d7(e),rr(e.getUTCFullYear()%100,t,2)}function Joe(e,t){return rr(e.getUTCFullYear()%1e4,t,4)}function Qoe(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Fo(e):Fo.ceil(e),rr(e.getUTCFullYear()%1e4,t,4)}function ele(){return"+0000"}function wk(){return"%"}function _k(e){return+e}function Tk(e){return Math.floor(+e/1e3)}var ul,Sb,h7,p7;tle({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function tle(e){return ul=toe(e),Sb=ul.format,h7=ul.parse,ul.utcFormat,p7=ul.utcParse,ul}var su={},uu={},kk;function nle(){if(kk)return uu;kk=1,uu.__esModule=!0,uu.default=void 0;var e=function(i){if(typeof i=="string")return i;if(i)return i.displayName||i.name||"Component"},t=e;return uu.default=t,uu}var Mk;function os(){if(Mk)return su;Mk=1;var e=Rn;su.__esModule=!0,su.default=void 0;var t=e(nle()),r=function(o,a){return a+"("+(0,t.default)(o)+")"},i=r;return su.default=i,su}var Fi={},cu={},Sk;function g7(){if(Sk)return cu;Sk=1,cu.__esModule=!0,cu.default=void 0;var e=function(i,u){return function(o){return o[i]=u,o}},t=e;return cu.default=t,cu}var rle=Rn;Fi.__esModule=!0;var Cb=Fi.default=void 0,ale=rle(g7()),ile=function(t){return(0,ale.default)("displayName",t)},ole=ile;Cb=Fi.default=ole;var fu={},Ck;function lle(){if(Ck)return fu;Ck=1;var e=Rn;fu.__esModule=!0,fu.default=void 0;var t=$e;e(Fi),e(os());var r=function(o){return function(a){var n=(0,t.createFactory)(a),l=function(s){return n(o(s))};return l}},i=r;return fu.default=i,fu}var ep=Rn;ep(hr());ep(os());ep(Fi);ep(lle());function sle(e,t){for(var r=-1,i=e==null?0:e.length;++rn))return!1;var f=o.get(e),s=o.get(t);if(f&&s)return f==t&&s==e;var c=-1,d=!0,h=r&ple?new cle:void 0;for(o.set(e,t),o.set(t,e);++c1?"& ":"")+t[i],t=t.join(r>2?", ":" "),e.replace(yce,`{ +https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=O7,t.componentWillReceiveProps=A7),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=P7;var n=t.componentDidUpdate;t.componentDidUpdate=function(f,s,c){var d=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:c;n.call(this,f,s,d)}}return e}const iue=Object.freeze(Object.defineProperty({__proto__:null,polyfill:aue},Symbol.toStringTag,{value:"Module"})),oue=qn(iue);var du={},Vk;function lue(){if(Vk)return du;Vk=1,du.__esModule=!0,du.default=void 0;var e=function(i,u){for(var o={},a=0;a1?"& ":"")+t[i],t=t.join(r>2?", ":" "),e.replace(bce,`{ /* [wrapped with `+t+`] */ -`)}var xce=bce;function wce(e,t){for(var r=-1,i=e==null?0:e.length;++r1&&g.reverse(),s&&l0&&r(n)?t>1?G7(n,t-1,r,i,c):Zde(c,n):i||(c[c.length]=n)}return c}var Fb=G7,Jde=Fb;function Qde(e){var t=e==null?0:e.length;return t?Jde(e,1):[]}var ehe=Qde,the=ehe,nhe=HC,rhe=G1;function ahe(e){return rhe(nhe(e,void 0,the),e+"")}var X7=ahe,ihe=Hde,ohe=X7,lhe=ohe(function(e,t){return e==null?{}:ihe(e,t)}),she=lhe;const uhe=ir(she);var So=function(){};function No(e){for(var t=1;t2&&arguments[2]!==void 0?arguments[2]:{};return $e.useMemo(function(){var c=Fhe({},Tv,i);return{margin:c,innerWidth:t-c.left-c.right,innerHeight:r-c.top-c.bottom,outerWidth:t,outerHeight:r}},[t,r,i.top,i.right,i.bottom,i.left])},jhe=function(t){return $e.useMemo(function(){return J7(K7,t)},[t])},$he=function(t){return typeof t=="function"?t:typeof t=="string"?t.indexOf("time:")===0?Sb(t.slice("5")):is(t):function(r){return r}},Xu=function(t){return $e.useMemo(function(){return $he(t)},[t])},jb=$e.createContext(),Bhe={},tO=function(t){var r=t.theme,i=r===void 0?Bhe:r,c=t.children,o=jhe(i);return et.createElement(jb.Provider,{value:o},c)};tO.propTypes={children:oe.node.isRequired,theme:oe.object};var Hr=function(){return $e.useContext(jb)};function mf(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?mf=function(r){return typeof r}:mf=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},mf(e)}function kv(){return kv=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function Whe(e,t){if(e==null)return{};var r={},i=Object.keys(e),c,o;for(o=0;o=0)&&(r[c]=e[c]);return r}function Uhe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hhe(e,t){for(var r=0;r"u"||l[f].value!==this.newInters[f].value)&&(this.newInters[f]=l[f],this.stepValues[f]=this.currentStepValues[f]+1,this.stepInterpolators[f]=this.newInters[f].interpolator(this.oldValues[f],this.newInters[f].value)),l[f]=An(this.stepValues[f],this.newInters[f].config));return et.createElement(Ci,kv({},n,{style:l}),function(s){var u={};for(var d in s)if(i.stepValues[d]){i.currentStepValues[d]=s[d];var h=i.currentStepValues[d]-i.stepValues[d]+1;i.oldValues[d]=u[d]=i.stepInterpolators[d](h)}return a(zhe({},s,u))})}}]),t}($e.PureComponent);xo(lp,"propTypes",{children:oe.func.isRequired,style:oe.func.isRequired});var nO=$e.createContext(),sp=function(t){var r=t.children,i=t.animate,c=t.stiffness,o=t.damping,a=$e.useMemo(function(){return{animate:i,springConfig:{stiffness:c,damping:o}}},[i,c,o]);return et.createElement(nO.Provider,{value:a},r)};sp.propTypes={children:oe.node.isRequired,animate:oe.bool.isRequired,stiffness:oe.number.isRequired,damping:oe.number.isRequired};sp.defaultProps={animate:!0,stiffness:90,damping:15};var Aa=function(){return $e.useContext(nO)};function Zhe(e){for(var t=1;t0&&a>0;return et.createElement(Bu,{bounds:!0,onResize:function(f){i.setState({dimensions:f.bounds})}},function(l){var f=l.measureRef;return et.createElement("div",{ref:f,style:{width:"100%",height:"100%"}},n&&i.props.children({width:o,height:a}))})}}]),t}($e.Component);aO(cp,"propTypes",{children:oe.func.isRequired});var iO=function(t){var r=t.id,i=t.colors;return et.createElement("linearGradient",{id:r,x1:0,x2:0,y1:0,y2:1},i.map(function(c){var o=c.offset,a=c.color,n=c.opacity;return et.createElement("stop",{key:o,offset:"".concat(o,"%"),stopColor:a,stopOpacity:n!==void 0?n:1})}))};iO.propTypes={id:oe.string.isRequired,colors:oe.arrayOf(oe.shape({offset:oe.number.isRequired,color:oe.string.isRequired})).isRequired};var oO={linearGradient:iO},fp=$e.memo(function(e){var t=e.id,r=e.background,i=e.color,c=e.size,o=e.padding,a=e.stagger,n=c+o,l=c/2,f=o/2;return a===!0&&(n=c*2+o*2),et.createElement("pattern",{id:t,width:n,height:n,patternUnits:"userSpaceOnUse"},et.createElement("rect",{width:n,height:n,fill:r}),et.createElement("circle",{cx:f+l,cy:f+l,r:l,fill:i}),a&&et.createElement("circle",{cx:o*1.5+c+l,cy:o*1.5+c+l,r:l,fill:i}))});fp.displayName="PatternDots";fp.propTypes={id:oe.string.isRequired,color:oe.string.isRequired,background:oe.string.isRequired,size:oe.number.isRequired,padding:oe.number.isRequired,stagger:oe.bool.isRequired};fp.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var Av=function(t){return t*Math.PI/180},upe=function(t){return 180*t/Math.PI},cpe=function(t,r){return{x:Math.cos(t)*r,y:Math.sin(t)*r}},fpe=function(t){var r=t%360;return r<0&&(r+=360),r},dpe={svg:{align:{left:"start",center:"middle",right:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},dp=$e.memo(function(e){var t=e.id,r=e.spacing,i=e.rotation,c=e.background,o=e.color,a=e.lineWidth,n=Math.round(i)%360,l=Math.abs(r);n>180?n=n-360:n>90?n=n-180:n<-180?n=n+360:n<-90&&(n=n+180);var f=l,s=l,u;return n===0?u=` +`)}var wce=xce;function _ce(e,t){for(var r=-1,i=e==null?0:e.length;++r1&&g.reverse(),s&&l0&&r(n)?t>1?G7(n,t-1,r,i,u):Kde(u,n):i||(u[u.length]=n)}return u}var Fb=G7,Qde=Fb;function ehe(e){var t=e==null?0:e.length;return t?Qde(e,1):[]}var the=ehe,nhe=the,rhe=HC,ahe=G1;function ihe(e){return ahe(rhe(e,void 0,nhe),e+"")}var X7=ihe,ohe=Vde,lhe=X7,she=lhe(function(e,t){return e==null?{}:ohe(e,t)}),uhe=she;const che=ir(uhe);var So=function(){};function No(e){for(var t=1;t2&&arguments[2]!==void 0?arguments[2]:{};return $e.useMemo(function(){var u=Nhe({},Tv,i);return{margin:u,innerWidth:t-u.left-u.right,innerHeight:r-u.top-u.bottom,outerWidth:t,outerHeight:r}},[t,r,i.top,i.right,i.bottom,i.left])},$he=function(t){return $e.useMemo(function(){return J7(K7,t)},[t])},Bhe=function(t){return typeof t=="function"?t:typeof t=="string"?t.indexOf("time:")===0?Sb(t.slice("5")):is(t):function(r){return r}},Xu=function(t){return $e.useMemo(function(){return Bhe(t)},[t])},jb=$e.createContext(),zhe={},tO=function(t){var r=t.theme,i=r===void 0?zhe:r,u=t.children,o=$he(i);return et.createElement(jb.Provider,{value:o},u)};tO.propTypes={children:oe.node.isRequired,theme:oe.object};var Hr=function(){return $e.useContext(jb)};function mf(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?mf=function(r){return typeof r}:mf=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},mf(e)}function kv(){return kv=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function Uhe(e,t){if(e==null)return{};var r={},i=Object.keys(e),u,o;for(o=0;o=0)&&(r[u]=e[u]);return r}function Hhe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vhe(e,t){for(var r=0;r"u"||l[f].value!==this.newInters[f].value)&&(this.newInters[f]=l[f],this.stepValues[f]=this.currentStepValues[f]+1,this.stepInterpolators[f]=this.newInters[f].interpolator(this.oldValues[f],this.newInters[f].value)),l[f]=An(this.stepValues[f],this.newInters[f].config));return et.createElement(Ci,kv({},n,{style:l}),function(s){var c={};for(var d in s)if(i.stepValues[d]){i.currentStepValues[d]=s[d];var h=i.currentStepValues[d]-i.stepValues[d]+1;i.oldValues[d]=c[d]=i.stepInterpolators[d](h)}return a(qhe({},s,c))})}}]),t}($e.PureComponent);xo(lp,"propTypes",{children:oe.func.isRequired,style:oe.func.isRequired});var nO=$e.createContext(),sp=function(t){var r=t.children,i=t.animate,u=t.stiffness,o=t.damping,a=$e.useMemo(function(){return{animate:i,springConfig:{stiffness:u,damping:o}}},[i,u,o]);return et.createElement(nO.Provider,{value:a},r)};sp.propTypes={children:oe.node.isRequired,animate:oe.bool.isRequired,stiffness:oe.number.isRequired,damping:oe.number.isRequired};sp.defaultProps={animate:!0,stiffness:90,damping:15};var Aa=function(){return $e.useContext(nO)};function Khe(e){for(var t=1;t0&&a>0;return et.createElement(Bu,{bounds:!0,onResize:function(f){i.setState({dimensions:f.bounds})}},function(l){var f=l.measureRef;return et.createElement("div",{ref:f,style:{width:"100%",height:"100%"}},n&&i.props.children({width:o,height:a}))})}}]),t}($e.Component);aO(cp,"propTypes",{children:oe.func.isRequired});var iO=function(t){var r=t.id,i=t.colors;return et.createElement("linearGradient",{id:r,x1:0,x2:0,y1:0,y2:1},i.map(function(u){var o=u.offset,a=u.color,n=u.opacity;return et.createElement("stop",{key:o,offset:"".concat(o,"%"),stopColor:a,stopOpacity:n!==void 0?n:1})}))};iO.propTypes={id:oe.string.isRequired,colors:oe.arrayOf(oe.shape({offset:oe.number.isRequired,color:oe.string.isRequired})).isRequired};var oO={linearGradient:iO},fp=$e.memo(function(e){var t=e.id,r=e.background,i=e.color,u=e.size,o=e.padding,a=e.stagger,n=u+o,l=u/2,f=o/2;return a===!0&&(n=u*2+o*2),et.createElement("pattern",{id:t,width:n,height:n,patternUnits:"userSpaceOnUse"},et.createElement("rect",{width:n,height:n,fill:r}),et.createElement("circle",{cx:f+l,cy:f+l,r:l,fill:i}),a&&et.createElement("circle",{cx:o*1.5+u+l,cy:o*1.5+u+l,r:l,fill:i}))});fp.displayName="PatternDots";fp.propTypes={id:oe.string.isRequired,color:oe.string.isRequired,background:oe.string.isRequired,size:oe.number.isRequired,padding:oe.number.isRequired,stagger:oe.bool.isRequired};fp.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var Av=function(t){return t*Math.PI/180},cpe=function(t){return 180*t/Math.PI},fpe=function(t,r){return{x:Math.cos(t)*r,y:Math.sin(t)*r}},dpe=function(t){var r=t%360;return r<0&&(r+=360),r},hpe={svg:{align:{left:"start",center:"middle",right:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},dp=$e.memo(function(e){var t=e.id,r=e.spacing,i=e.rotation,u=e.background,o=e.color,a=e.lineWidth,n=Math.round(i)%360,l=Math.abs(r);n>180?n=n-360:n>90?n=n-180:n<-180?n=n+360:n<-90&&(n=n+180);var f=l,s=l,c;return n===0?c=` M 0 0 L `.concat(f,` 0 M 0 `).concat(s," L ").concat(f," ").concat(s,` - `):n===90?u=` + `):n===90?c=` M 0 0 L 0 `.concat(s,` M `).concat(f," 0 L ").concat(f," ").concat(s,` - `):(f=Math.abs(l/Math.sin(Av(n))),s=l/Math.sin(Av(90-n)),n>0?u=` + `):(f=Math.abs(l/Math.sin(Av(n))),s=l/Math.sin(Av(90-n)),n>0?c=` M 0 `.concat(-s," L ").concat(f*2," ").concat(s,` M `).concat(-f," ").concat(-s," L ").concat(f," ").concat(s,` M `).concat(-f," 0 L ").concat(f," ").concat(s*2,` - `):u=` + `):c=` M `.concat(-f," ").concat(s," L ").concat(f," ").concat(-s,` M `).concat(-f," ").concat(s*2," L ").concat(f*2," ").concat(-s,` M 0 `).concat(s*2," L ").concat(f*2,` 0 - `)),et.createElement("pattern",{id:t,width:f,height:s,patternUnits:"userSpaceOnUse"},et.createElement("rect",{width:f,height:s,fill:c,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),et.createElement("path",{d:u,strokeWidth:a,stroke:o,strokeLinecap:"square"}))});dp.displayName="PatternLines";dp.propTypes={id:oe.string.isRequired,spacing:oe.number.isRequired,rotation:oe.number.isRequired,background:oe.string.isRequired,color:oe.string.isRequired,lineWidth:oe.number.isRequired};dp.defaultProps={spacing:5,rotation:0,color:"#000000",background:"#ffffff",lineWidth:2};var hp=$e.memo(function(e){var t=e.id,r=e.background,i=e.color,c=e.size,o=e.padding,a=e.stagger,n=c+o,l=o/2;return a===!0&&(n=c*2+o*2),et.createElement("pattern",{id:t,width:n,height:n,patternUnits:"userSpaceOnUse"},et.createElement("rect",{width:n,height:n,fill:r}),et.createElement("rect",{x:l,y:l,width:c,height:c,fill:i}),a&&et.createElement("rect",{x:o*1.5+c,y:o*1.5+c,width:c,height:c,fill:i}))});hp.displayName="PatternSquares";hp.propTypes={id:oe.string.isRequired,color:oe.string.isRequired,background:oe.string.isRequired,size:oe.number.isRequired,padding:oe.number.isRequired,stagger:oe.bool.isRequired};hp.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var lO={patternDots:fp,patternLines:dp,patternSquares:hp};function hpe(e,t){if(e==null)return{};var r=ppe(e,t),i,c;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(c=0;c=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function ppe(e,t){if(e==null)return{};var r={},i=Object.keys(e),c,o;for(o=0;o=0)&&(r[c]=e[c]);return r}function sO(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{},t=e.srcKey,r=t===void 0?"theme":t,i=e.destKey,c=i===void 0?"theme":i;return Jo(np(xM({},r,oe.object)),ha([r],function(o){return xM({},c,J7(K7,o[r]))}))};function yf(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?yf=function(r){return typeof r}:yf=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},yf(e)}function Tpe(e,t){if(e==null)return{};var r=kpe(e,t),i,c;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(c=0;c=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function kpe(e,t){if(e==null)return{};var r={},i=Object.keys(e),c,o;for(o=0;o=0)&&(r[c]=e[c]);return r}function Mpe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Spe(e,t){for(var r=0;r3&&arguments[3]!==void 0?arguments[3]:{},o=c.dataKey,a=c.colorKey,n=a===void 0?"color":a,l=c.targetKey,f=l===void 0?"fill":l,s=[],u={};return t.length&&r.length&&(s=Rpe(t),r.forEach(function(d){for(var h=function(v){var g=i[v],b=g.id,x=g.match;if($pe(x,d,o)){var _=t.find(function(O){var R=O.id;return R===b});if(_){if(jpe.includes(_.type))if(_.background==="inherit"||_.color==="inherit"){var w=Ki(d,n),k=_.background,T=_.color,M=b;_.background==="inherit"&&(M="".concat(M,".bg.").concat(w),k=w),_.color==="inherit"&&(M="".concat(M,".fg.").concat(w),T=w),To(d,f,"url(#".concat(M,")")),u[M]||(s.push(u0({},_,{id:M,background:k,color:T})),u[M]=1)}else To(d,f,"url(#".concat(b,")"));else if(Npe.includes(_.type)){var S=_.colors.map(function(O){var R=O.color;return R});if(S.includes("inherit")){var C=Ki(d,n),P=b,D=u0({},_,{colors:_.colors.map(function(O,R){return O.color!=="inherit"?O:(P="".concat(P,".").concat(R,".").concat(C),u0({},O,{color:O.color==="inherit"?C:O.color}))})});D.id=P,To(d,f,"url(#".concat(P,")")),u[P]||(s.push(D),u[P]=1)}else To(d,f,"url(#".concat(b,")"))}}return"break"}},p=0;p0?(v=d.align.right,g=d.baseline.center):(c==="after"&&l>0||c==="before"&&l<0)&&(v=d.align.left,g=d.baseline.center)):(y=function(_){return{x:0,y:h(_)}},p.lineX=a*(c==="after"?1:-1),m.textX=(a+n)*(c==="after"?1:-1),c==="after"?v=d.align.left:v=d.align.right);var b=u.map(function(x){return Hpe({key:x,value:x},y(x),p,m)});return{ticks:b,textAlign:v,textBaseline:g}},wO=function(t,r){if(!t||typeof t=="function")return t;if(r.type==="time"){var i=Sb(t);return function(c){return i(new Date(c))}}return is(t)},Lv=function(t){var r=t.width,i=t.height,c=t.scale,o=t.axis,a=t.values,n=Array.isArray(a)?a:void 0,l=gp(a)?a:void 0,f=n||bO(c,l),s=c.bandwidth?vO(c):c,u;return o==="x"?u=f.map(function(d){return{key:"".concat(d),x1:s(d),x2:s(d),y1:0,y2:i}}):o==="y"&&(u=f.map(function(d){return{key:"".concat(d),x1:0,x2:r,y1:s(d),y2:s(d)}})),u},_O={ticksPosition:oe.oneOf(["before","after"]),tickValues:oe.oneOfType([oe.number,oe.arrayOf(oe.oneOfType([oe.number,oe.string,oe.instanceOf(Date)])),oe.string]),tickSize:oe.number,tickPadding:oe.number,tickRotation:oe.number,format:oe.oneOfType([oe.func,oe.string]),renderTick:oe.func,legend:oe.node,legendPosition:oe.oneOf(["start","middle","end"]),legendOffset:oe.number},pa=oe.shape(_O);function Iv(){return Iv=Object.assign||function(e){for(var t=1;t0&&(t.lineWidth=T.axis.domain.line.strokeWidth,t.lineCap="square",t.strokeStyle=T.axis.domain.line.stroke,t.beginPath(),t.moveTo(0,0),t.lineTo(i==="x"?f:0,i==="x"?0:f),t.stroke()),S.forEach(function(A){T.axis.ticks.line.strokeWidth>0&&(t.lineWidth=T.axis.ticks.line.strokeWidth,t.lineCap="square",t.strokeStyle=T.axis.ticks.line.stroke,t.beginPath(),t.moveTo(A.x,A.y),t.lineTo(A.x+A.lineX,A.y+A.lineY),t.stroke());var z=g!==void 0?g(A.value):A.value;t.save(),t.translate(A.x+A.textX,A.y+A.textY),t.rotate(TM(v)),t.fillStyle=T.axis.ticks.text.fill,t.fillText(z,0,0),t.restore()}),b!==void 0){var D=0,O=0,R=0,F;i==="y"?(R=-90,D=k,_==="start"?(F="start",O=f):_==="middle"?(F="center",O=f/2):_==="end"&&(F="end")):(O=k,_==="start"?F="start":_==="middle"?(F="center",D=f/2):_==="end"&&(F="end",D=f)),t.translate(D,O),t.rotate(TM(R)),t.font="".concat(T.axis.legend.text.fontWeight?"".concat(T.axis.legend.text.fontWeight," "):"").concat(T.axis.legend.text.fontSize,"px ").concat(T.axis.legend.text.fontFamily),t.fillStyle=T.axis.legend.text.fill,t.textAlign=F,t.textBaseline="middle",t.fillText(b,0,0)}t.restore()},ige=["top","right","bottom","left"],Gb=function(t,r){var i=r.xScale,c=r.yScale,o=r.width,a=r.height,n=r.top,l=r.right,f=r.bottom,s=r.left,u=r.theme,d={top:n,right:l,bottom:f,left:s};ige.forEach(function(h){var p=d[h];if(!p)return null;var m=h==="top"||h==="bottom",y=h==="top"||h==="left"?"before":"after",v=m?i:c,g=wO(p.format,v);age(t,nge({},p,{axis:m?"x":"y",x:h==="right"?o:0,y:h==="bottom"?a:0,scale:v,format:g,length:m?o:a,ticksPosition:y,theme:u}))})},Nl=function(t,r){var i=r.width,c=r.height,o=r.scale,a=r.axis,n=r.values,l=Lv({width:i,height:c,scale:o,axis:a,values:n});l.forEach(function(f){t.beginPath(),t.moveTo(f.x1,f.y1),t.lineTo(f.x2,f.y2),t.stroke()})},mp="row",vp="column",Xb="top",Zb="top-right",Kb="right",Jb="bottom-right",Qb="bottom",ex="bottom-left",tx="left",SO="top-left",nx="center",yp="left-to-right",bp="right-to-left",xp="top-to-bottom",wp="bottom-to-top";function oge(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function gpe(e,t){if(e==null)return{};var r={},i=Object.keys(e),u,o;for(o=0;o=0)&&(r[u]=e[u]);return r}function sO(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{},t=e.srcKey,r=t===void 0?"theme":t,i=e.destKey,u=i===void 0?"theme":i;return Jo(np(xM({},r,oe.object)),ha([r],function(o){return xM({},u,J7(K7,o[r]))}))};function yf(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?yf=function(r){return typeof r}:yf=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},yf(e)}function kpe(e,t){if(e==null)return{};var r=Mpe(e,t),i,u;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(u=0;u=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function Mpe(e,t){if(e==null)return{};var r={},i=Object.keys(e),u,o;for(o=0;o=0)&&(r[u]=e[u]);return r}function Spe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cpe(e,t){for(var r=0;r3&&arguments[3]!==void 0?arguments[3]:{},o=u.dataKey,a=u.colorKey,n=a===void 0?"color":a,l=u.targetKey,f=l===void 0?"fill":l,s=[],c={};return t.length&&r.length&&(s=Lpe(t),r.forEach(function(d){for(var h=function(v){var g=i[v],b=g.id,x=g.match;if(Bpe(x,d,o)){var _=t.find(function(O){var R=O.id;return R===b});if(_){if($pe.includes(_.type))if(_.background==="inherit"||_.color==="inherit"){var w=Ki(d,n),k=_.background,T=_.color,M=b;_.background==="inherit"&&(M="".concat(M,".bg.").concat(w),k=w),_.color==="inherit"&&(M="".concat(M,".fg.").concat(w),T=w),To(d,f,"url(#".concat(M,")")),c[M]||(s.push(u0({},_,{id:M,background:k,color:T})),c[M]=1)}else To(d,f,"url(#".concat(b,")"));else if(jpe.includes(_.type)){var S=_.colors.map(function(O){var R=O.color;return R});if(S.includes("inherit")){var C=Ki(d,n),P=b,D=u0({},_,{colors:_.colors.map(function(O,R){return O.color!=="inherit"?O:(P="".concat(P,".").concat(R,".").concat(C),u0({},O,{color:O.color==="inherit"?C:O.color}))})});D.id=P,To(d,f,"url(#".concat(P,")")),c[P]||(s.push(D),c[P]=1)}else To(d,f,"url(#".concat(b,")"))}}return"break"}},p=0;p0?(v=d.align.right,g=d.baseline.center):(u==="after"&&l>0||u==="before"&&l<0)&&(v=d.align.left,g=d.baseline.center)):(y=function(_){return{x:0,y:h(_)}},p.lineX=a*(u==="after"?1:-1),m.textX=(a+n)*(u==="after"?1:-1),u==="after"?v=d.align.left:v=d.align.right);var b=c.map(function(x){return Vpe({key:x,value:x},y(x),p,m)});return{ticks:b,textAlign:v,textBaseline:g}},wO=function(t,r){if(!t||typeof t=="function")return t;if(r.type==="time"){var i=Sb(t);return function(u){return i(new Date(u))}}return is(t)},Lv=function(t){var r=t.width,i=t.height,u=t.scale,o=t.axis,a=t.values,n=Array.isArray(a)?a:void 0,l=gp(a)?a:void 0,f=n||bO(u,l),s=u.bandwidth?vO(u):u,c;return o==="x"?c=f.map(function(d){return{key:"".concat(d),x1:s(d),x2:s(d),y1:0,y2:i}}):o==="y"&&(c=f.map(function(d){return{key:"".concat(d),x1:0,x2:r,y1:s(d),y2:s(d)}})),c},_O={ticksPosition:oe.oneOf(["before","after"]),tickValues:oe.oneOfType([oe.number,oe.arrayOf(oe.oneOfType([oe.number,oe.string,oe.instanceOf(Date)])),oe.string]),tickSize:oe.number,tickPadding:oe.number,tickRotation:oe.number,format:oe.oneOfType([oe.func,oe.string]),renderTick:oe.func,legend:oe.node,legendPosition:oe.oneOf(["start","middle","end"]),legendOffset:oe.number},pa=oe.shape(_O);function Iv(){return Iv=Object.assign||function(e){for(var t=1;t0&&(t.lineWidth=T.axis.domain.line.strokeWidth,t.lineCap="square",t.strokeStyle=T.axis.domain.line.stroke,t.beginPath(),t.moveTo(0,0),t.lineTo(i==="x"?f:0,i==="x"?0:f),t.stroke()),S.forEach(function(A){T.axis.ticks.line.strokeWidth>0&&(t.lineWidth=T.axis.ticks.line.strokeWidth,t.lineCap="square",t.strokeStyle=T.axis.ticks.line.stroke,t.beginPath(),t.moveTo(A.x,A.y),t.lineTo(A.x+A.lineX,A.y+A.lineY),t.stroke());var z=g!==void 0?g(A.value):A.value;t.save(),t.translate(A.x+A.textX,A.y+A.textY),t.rotate(TM(v)),t.fillStyle=T.axis.ticks.text.fill,t.fillText(z,0,0),t.restore()}),b!==void 0){var D=0,O=0,R=0,F;i==="y"?(R=-90,D=k,_==="start"?(F="start",O=f):_==="middle"?(F="center",O=f/2):_==="end"&&(F="end")):(O=k,_==="start"?F="start":_==="middle"?(F="center",D=f/2):_==="end"&&(F="end",D=f)),t.translate(D,O),t.rotate(TM(R)),t.font="".concat(T.axis.legend.text.fontWeight?"".concat(T.axis.legend.text.fontWeight," "):"").concat(T.axis.legend.text.fontSize,"px ").concat(T.axis.legend.text.fontFamily),t.fillStyle=T.axis.legend.text.fill,t.textAlign=F,t.textBaseline="middle",t.fillText(b,0,0)}t.restore()},oge=["top","right","bottom","left"],Gb=function(t,r){var i=r.xScale,u=r.yScale,o=r.width,a=r.height,n=r.top,l=r.right,f=r.bottom,s=r.left,c=r.theme,d={top:n,right:l,bottom:f,left:s};oge.forEach(function(h){var p=d[h];if(!p)return null;var m=h==="top"||h==="bottom",y=h==="top"||h==="left"?"before":"after",v=m?i:u,g=wO(p.format,v);ige(t,rge({},p,{axis:m?"x":"y",x:h==="right"?o:0,y:h==="bottom"?a:0,scale:v,format:g,length:m?o:a,ticksPosition:y,theme:c}))})},Nl=function(t,r){var i=r.width,u=r.height,o=r.scale,a=r.axis,n=r.values,l=Lv({width:i,height:u,scale:o,axis:a,values:n});l.forEach(function(f){t.beginPath(),t.moveTo(f.x1,f.y1),t.lineTo(f.x2,f.y2),t.stroke()})},mp="row",vp="column",Xb="top",Zb="top-right",Kb="right",Jb="bottom-right",Qb="bottom",ex="bottom-left",tx="left",SO="top-left",nx="center",yp="left-to-right",bp="right-to-left",xp="top-to-bottom",wp="bottom-to-top";function lge(e){for(var t=1;t0){var E=x.filter(function(G){var L=G.on;return L==="hover"}),W=E.reduce(function(G,L){return Tf({},G,L.style)},{});T(W)}g!==void 0&&g(a,N)},[g,a,x]),P=$e.useCallback(function(){if(x.length>0){var N=x.filter(function(W){var G=W.on;return G!=="hover"}),E=N.reduce(function(W,G){return Tf({},W,G.style)},{});T(E)}b!==void 0&&b(a,event)},[b,a,x]),D=OO({direction:n,justify:l,symbolSize:k.symbolSize||h,symbolSpacing:p,width:c,height:o}),O=D.symbolX,R=D.symbolY,F=D.labelX,A=D.labelY,z=D.labelAnchor,B=D.labelAlignment,$=[v,g,b].some(function(N){return N!==void 0}),j;return qu(d)?j=d:j=zge[d],et.createElement("g",{transform:"translate(".concat(r,",").concat(i,")"),style:{opacity:k.itemOpacity!==void 0?k.itemOpacity:u}},et.createElement("rect",{width:c,height:o,fill:k.itemBackground||s,style:{cursor:$?"pointer":"auto"},onClick:S,onMouseEnter:C,onMouseLeave:P}),et.createElement(j,{id:a.id,x:O,y:R,size:k.symbolSize||h,fill:a.fill||a.color,borderWidth:k.symbolBorderWidth!==void 0?k.symbolBorderWidth:m,borderColor:k.symbolBorderColor||y}),et.createElement("text",{textAnchor:z,style:Tf({},M.legends.text,{fill:k.itemTextColor||f,dominantBaseline:B,pointerEvents:"none",userSelect:"none"}),x:F,y:A},a.label))};Yi.displayName="LegendSvgItem";Yi.propTypes=Tf({data:kp.isRequired,x:oe.number.isRequired,y:oe.number.isRequired,width:oe.number.isRequired,height:oe.number.isRequired,textColor:oe.string,background:oe.string,opacity:oe.number,direction:oe.oneOf(["left-to-right","right-to-left","top-to-bottom","bottom-to-top"]).isRequired,justify:oe.bool.isRequired},_p,Tp);Yi.defaultProps={direction:"left-to-right",justify:!1,textColor:"black",background:"transparent",opacity:1,symbolShape:"square",symbolSize:16,symbolSpacing:8,symbolBorderWidth:0,symbolBorderColor:"transparent",effects:[]};function qge(e){for(var t=1;tt}var nme=tme,rme=RO,ame=nme,ime=Yo;function ome(e){return e&&e.length?rme(e,ime,ame):void 0}var lme=ome;const IO=ir(lme);var sme=Math.ceil,ume=Math.max;function cme(e,t,r,i){for(var c=-1,o=ume(sme((t-e)/(r||1)),0),a=Array(o);o--;)a[i?o:++c]=e,e+=r;return a}var fme=cme,dme=fme,hme=X1,f0=H7;function pme(e){return function(t,r,i){return i&&typeof i!="number"&&hme(t,r,i)&&(r=i=void 0),t=f0(t),r===void 0?(r=t,t=0):r=f0(r),i=i===void 0?t=C0e){var f=t?null:M0e(e);if(f)return S0e(f);a=!1,c=k0e,l=new w0e}else l=t?[]:n;e:for(;++i-1}function hve(e,t){var r=this.__data__,i=Ap(r,e);return i<0?r.push([e,t]):r[i][1]=t,this}us.prototype.clear=uve;us.prototype.delete=cve;us.prototype.get=fve;us.prototype.has=dve;us.prototype.set=hve;function el(e){var t=-1,r=e?e.length:0;for(this.clear();++t11))throw new Error("Invalid size '".concat(t.size,"' for diverging color scheme '").concat(t.scheme,"', must be between 3~11"));var l=ko(kf[t.scheme][t.size||11]),f=function(h){return l(i(h))};return f.scale=l,f}if(Qve(t.scheme)){if(t.size!==void 0&&(t.size<3||t.size>9))throw new Error("Invalid size '".concat(t.size,"' for sequential color scheme '").concat(t.scheme,"', must be between 3~9"));var s=ko(kf[t.scheme][t.size||9]),u=function(h){return s(i(h))};return u.scale=s,u}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return t}},tA=function(t,r){return $e.useMemo(function(){return eA(t,r)},[t,r])};function tye(e,t){return aye(e)||rye(e,t)||nye()}function nye(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function rye(e,t){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]"){var r=[],i=!0,c=!1,o=void 0;try{for(var a=e[Symbol.iterator](),n;!(i=(n=a.next()).done)&&(r.push(n.value),!(t&&r.length===t));i=!0);}catch(l){c=!0,o=l}finally{try{!i&&a.return!=null&&a.return()}finally{if(c)throw o}}return r}}function aye(e){if(Array.isArray(e))return e}var Mf=function(t,r){if(typeof t=="function")return function(d){return t(d)};if(ZO(t)){if(t.theme!==void 0){if(r===void 0)throw new Error("Unable to use color from theme as no theme was provided");var i=yd(r,t.theme);if(i===void 0)throw new Error("Color from theme is undefined at path: '".concat(t.theme,"'"));return function(){return i}}if(t.from!==void 0){var c=function(h){return yd(h,t.from)};if(Array.isArray(t.modifiers)){var o=[],a=!0,n=!1,l=void 0;try{for(var f=function(){var h=u.value,p=tye(h,2),m=p[0],y=p[1];if(m==="brighter")o.push(function(v){return v.brighter(y)});else if(m==="darker")o.push(function(v){return v.darker(y)});else if(m==="opacity")o.push(function(v){return v.opacity=y,v});else throw new Error("Invalid color modifier: '".concat(m,"', must be one of: 'brighter', 'darker', 'opacity'"))},s=t.modifiers[Symbol.iterator](),u;!(a=(u=s.next()).done);a=!0)f()}catch(d){n=!0,l=d}finally{try{!a&&s.return!=null&&s.return()}finally{if(n)throw l}}return o.length===0?c:function(d){return o.reduce(function(h,p){return p(h)},Do(c(d))).toString()}}return c}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return t}},bd=function(t,r){return $e.useMemo(function(){return Mf(t,r)},[t,r])},bx=oe.oneOfType([oe.func,oe.arrayOf(oe.string),oe.shape({scheme:oe.oneOf(eye).isRequired,size:oe.number}),oe.shape({datum:oe.string.isRequired}),oe.string]),iye=oe.oneOfType([oe.func,oe.string]),p0=oe.oneOfType([oe.string,oe.func,oe.shape({theme:oe.string.isRequired}),oe.shape({from:oe.string.isRequired,modifiers:oe.arrayOf(oe.array)})]),oye=RC,lye=vc;function sye(e,t){return e&&oye(e,t,lye)}var uye=sye,cye=Jl;function fye(e,t){return function(r,i){if(r==null)return r;if(!cye(r))return e(r,i);for(var c=r.length,o=t?c:-1,a=Object(r);(t?o--:++oc?0:c+t),r=r>c?c:r,r<0&&(r+=c),c=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(c);++i1),o}),pxe(e,vxe(e),r),i&&(r=fxe(r,yxe|bxe|xxe,gxe));for(var c=t.length;c--;)dxe(r,t[c]);return r}),_xe=wxe;const sA=ir(_xe);var Txe=oe.shape({match:oe.oneOfType([oe.func,oe.object]).isRequired,type:oe.oneOf(["circle","rect","dot"]).isRequired,noteX:oe.oneOfType([oe.number,oe.shape({abs:oe.number.isRequired})]).isRequired,noteY:oe.oneOfType([oe.number,oe.shape({abs:oe.number.isRequired})]).isRequired,noteWidth:oe.number,noteTextOffset:oe.number,note:oe.oneOfType([oe.node,oe.func]).isRequired,offset:oe.number}),xd={noteWidth:120,noteTextOffset:8,animate:!0,motionStiffness:90,motionDamping:13};function kxe(e){for(var t=1;t180?(_-=u,k-=u):k+=u,{points:[[y,v],[p,m],[k,T]],text:[_,w],angle:g+90}},uA=function(t){var r=t.items,i=t.annotations,c=t.getPosition,o=t.getDimensions;return $e.useMemo(function(){return Cxe({items:r,annotations:i,getPosition:c,getDimensions:o})},[r,i,c,o])},Pxe=function(t){var r=t.type,i=t.containerWidth,c=t.containerHeight,o=t.x,a=t.y,n=t.size,l=t.width,f=t.height,s=t.noteX,u=t.noteY,d=t.noteWidth,h=t.noteTextOffset;return $e.useMemo(function(){return Axe({type:r,containerWidth:i,containerHeight:c,x:o,y:a,size:n,width:l,height:f,noteX:s,noteY:u,noteWidth:d,noteTextOffset:h})},[r,i,c,o,a,n,l,f,s,u,d,h])};function Dxe(e){for(var t=1;t0&&et.createElement("text",{x:r,y:i,style:Dxe({},o.annotations.text,{strokeLinejoin:"round",strokeWidth:o.annotations.text.outlineWidth*2,stroke:o.annotations.text.outlineColor})},c),et.createElement("text",{x:r,y:i,style:sA(o.annotations.text,["outlineWidth","outlineColor"])},c))});Qu.displayName="AnnotationNote";Qu.propTypes={datum:oe.object.isRequired,x:oe.number.isRequired,y:oe.number.isRequired,note:oe.oneOfType([oe.node,oe.func]).isRequired};Qu.defaultProps={};function Rxe(e){for(var t=1;t0&&et.createElement("circle",{cx:l.x,cy:l.y,r:l.size/2,style:NM({},c.annotations.outline,{fill:"none",strokeWidth:c.annotations.outline.strokeWidth+c.annotations.outline.outlineWidth*2,stroke:c.annotations.outline.outlineColor})}),et.createElement("circle",{cx:l.x,cy:l.y,r:l.size/2,style:c.annotations.outline}))}):et.createElement(et.Fragment,null,c.annotations.outline.outlineWidth>0&&et.createElement("circle",{cx:t,cy:r,r:i/2,style:NM({},c.annotations.outline,{fill:"none",strokeWidth:c.annotations.outline.strokeWidth+c.annotations.outline.outlineWidth*2,stroke:c.annotations.outline.outlineColor})}),et.createElement("circle",{cx:t,cy:r,r:i/2,style:c.annotations.outline}))});xx.displayName="CircleAnnotationOutline";xx.propTypes={x:oe.number.isRequired,y:oe.number.isRequired,size:oe.number.isRequired};function jM(e){for(var t=1;t0&&et.createElement("circle",{cx:l.x,cy:l.y,r:l.size/2,style:jM({},c.annotations.outline,{fill:"none",strokeWidth:c.annotations.outline.outlineWidth*2,stroke:c.annotations.outline.outlineColor})}),et.createElement("circle",{cx:l.x,cy:l.y,r:l.size/2,style:c.annotations.symbol}))}):et.createElement(et.Fragment,null,c.annotations.outline.outlineWidth>0&&et.createElement("circle",{cx:t,cy:r,r:i/2,style:jM({},c.annotations.outline,{fill:"none",strokeWidth:c.annotations.outline.outlineWidth*2,stroke:c.annotations.outline.outlineColor})}),et.createElement("circle",{cx:t,cy:r,r:i/2,style:c.annotations.symbol}))});Dp.displayName="DotAnnotationOutline";Dp.propTypes={x:oe.number.isRequired,y:oe.number.isRequired,size:oe.number.isRequired};Dp.defaultProps={size:4};function $M(e){for(var t=1;t0&&et.createElement("rect",{x:f.x,y:f.y,width:f.width,height:f.height,style:$M({},o.annotations.outline,{fill:"none",strokeWidth:o.annotations.outline.strokeWidth+o.annotations.outline.outlineWidth*2,stroke:o.annotations.outline.outlineColor})}),et.createElement("rect",{x:f.x,y:f.y,width:f.width,height:f.height,style:o.annotations.outline}))}):et.createElement(et.Fragment,null,o.annotations.outline.outlineWidth>0&&et.createElement("rect",{x:t-i/2,y:r-c/2,width:i,height:c,style:$M({},o.annotations.outline,{fill:"none",strokeWidth:o.annotations.outline.strokeWidth+o.annotations.outline.outlineWidth*2,stroke:o.annotations.outline.outlineColor})}),et.createElement("rect",{x:t-i/2,y:r-c/2,width:i,height:c,style:o.annotations.outline}))});wx.displayName="RectAnnotationOutline";wx.propTypes={x:oe.number.isRequired,y:oe.number.isRequired,width:oe.number.isRequired,height:oe.number.isRequired};var xc=$e.memo(function(e){var t=e.datum,r=e.type,i=e.containerWidth,c=e.containerHeight,o=e.x,a=e.y,n=e.size,l=e.width,f=e.height,s=e.noteX,u=e.noteY,d=e.noteWidth,h=e.noteTextOffset,p=e.note,m=Aa(),y=m.animate,v=m.springConfig,g=Pxe({type:r,containerWidth:i,containerHeight:c,x:o,y:a,size:n,width:l,height:f,noteX:s,noteY:u,noteWidth:d,noteTextOffset:h});return et.createElement(et.Fragment,null,et.createElement(ec,{points:g.points,isOutline:!0}),r==="circle"&&et.createElement(xx,{x:o,y:a,size:n}),r==="dot"&&et.createElement(Dp,{x:o,y:a,size:n}),r==="rect"&&et.createElement(wx,{x:o,y:a,width:l,height:f}),et.createElement(ec,{points:g.points}),!y&&et.createElement(Qu,{x:g.text[0],y:g.text[1],note:p}),y&&et.createElement(Ci,{style:{x:An(g.text[0],v),y:An(g.text[1],v)}},function(b){return et.createElement(Qu,{datum:t,x:b.x,y:b.y,note:p})}))});xc.displayName="Annotation";xc.propTypes={datum:oe.object.isRequired,type:oe.oneOf(["circle","rect","dot"]).isRequired,containerWidth:oe.number.isRequired,containerHeight:oe.number.isRequired,x:oe.number.isRequired,y:oe.number.isRequired,size:oe.number,width:oe.number,height:oe.number,noteX:oe.oneOfType([oe.number,oe.shape({abs:oe.number.isRequired})]).isRequired,noteY:oe.oneOfType([oe.number,oe.shape({abs:oe.number.isRequired})]).isRequired,noteWidth:oe.number.isRequired,noteTextOffset:oe.number.isRequired,note:oe.oneOfType([oe.node,oe.func]).isRequired};xc.defaultProps={noteWidth:xd.noteWidth,noteTextOffset:xd.noteTextOffset};var Ep=function(t,r,i,c){return Q1().rangeRound(i).domain(t.map(r)).padding(c)};function BM(e){return Bxe(e)||$xe(e)||jxe()}function jxe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function $xe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Bxe(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t0&&(l=0)),Eo().rangeRound(o).domain([l,n])},zxe=function(t){var r=t.data,i=t.getIndex,c=t.keys,o=t.minValue,a=t.maxValue,n=t.reverse,l=t.width,f=t.height,s=t.getColor,u=t.padding,d=u===void 0?0:u,h=t.innerPadding,p=h===void 0?0:h,m=Ep(r,i,[0,l],d),y=n?[0,f]:[f,0],v=cA(r,c,o,a,y),g=(m.bandwidth()-p*(c.length-1))/c.length,b=v(0),x=function(T){return T>0?v(T):b},_=function(T,M){return T>0?b-M:v(T)-b};n&&(x=function(T){return T<0?v(T):b},_=function(T,M){return T<0?b-M:v(T)-b});var w=[];return g>0&&c.forEach(function(k,T){FO(m.domain().length).forEach(function(M){var S=m(i(r[M]))+g*T+p*T,C=x(r[M][k]),P=_(r[M][k],C);if(g>0&&P>0){var D={id:k,value:r[M][k],index:M,indexValue:i(r[M]),data:r[M]};w.push({key:"".concat(k,".").concat(D.indexValue),data:D,x:S,y:C,width:g,height:P,color:s(D)})}})}),{xScale:m,yScale:v,bars:w}},qxe=function(t){var r=t.data,i=t.getIndex,c=t.keys,o=t.minValue,a=t.maxValue,n=t.reverse,l=t.width,f=t.height,s=t.getColor,u=t.padding,d=u===void 0?0:u,h=t.innerPadding,p=h===void 0?0:h,m=n?[l,0]:[0,l],y=cA(r,c,o,a,m),v=Ep(r,i,[f,0],d),g=(v.bandwidth()-p*(c.length-1))/c.length,b=y(0),x=function(T){return T>0?b:y(T)},_=function(T,M){return T>0?y(T)-b:b-M};n&&(x=function(T){return T<0?b:y(T)},_=function(T,M){return T<0?y(T)-b:b-M});var w=[];return g>0&&c.forEach(function(k,T){FO(v.domain().length).forEach(function(M){var S=x(r[M][k]),C=v(i(r[M]))+g*T+p*T,P=_(r[M][k],S);if(P>0){var D={id:k,value:r[M][k],index:M,indexValue:i(r[M]),data:r[M]};w.push({key:"".concat(k,".").concat(D.indexValue),data:D,x:S,y:C,width:P,height:g,color:s(D)})}})}),{xScale:y,yScale:v,bars:w}},fA=function(t){return t.layout==="vertical"?zxe(t):qxe(t)},dA=function(t,r,i,c){var o=Tme(t,2),a=r;a==="auto"&&(a=LO(o));var n=i;return n==="auto"&&(n=IO(o)),Eo().rangeRound(c).domain([a,n])},Wxe=function(t){var r=t.data,i=t.getIndex,c=t.keys,o=t.minValue,a=t.maxValue,n=t.reverse,l=t.width,f=t.height,s=t.getColor,u=t.padding,d=u===void 0?0:u,h=t.innerPadding,p=h===void 0?0:h,m=q8().keys(c).offset(Mb)(r),y=Ep(r,i,[0,l],d),v=n?[0,f]:[f,0],g=dA(m,o,a,v),b=[],x=y.bandwidth(),_=function(T){return g(T[1])},w=function(T,M){return g(T[0])-M};return n&&(_=function(T){return g(T[0])},w=function(T,M){return g(T[1])-M}),x>0&&m.forEach(function(k){y.domain().forEach(function(T,M){var S=k[M],C=y(i(S.data)),P=_(S),D=w(S,P);if(p>0&&(P+=p*.5,D-=p),D>0){var O={id:k.key,value:S.data[k.key],index:M,indexValue:T,data:S.data};b.push({key:"".concat(k.key,".").concat(T),data:O,x:C,y:P,width:x,height:D,color:s(O)})}})}),{xScale:y,yScale:g,bars:b}},Uxe=function(t){var r=t.data,i=t.getIndex,c=t.keys,o=t.minValue,a=t.maxValue,n=t.reverse,l=t.width,f=t.height,s=t.getColor,u=t.padding,d=u===void 0?0:u,h=t.innerPadding,p=h===void 0?0:h,m=q8().keys(c).offset(Mb)(r),y=n?[l,0]:[0,l],v=dA(m,o,a,y),g=Ep(r,i,[f,0],d),b=[],x=g.bandwidth(),_=function(T){return v(T[0])},w=function(T,M){return v(T[1])-M};return n&&(_=function(T){return v(T[1])},w=function(T,M){return v(T[0])-M}),x>0&&m.forEach(function(k){g.domain().forEach(function(T,M){var S=k[M],C=g(i(S.data)),P={id:k.key,value:S.data[k.key],index:M,indexValue:T,data:S.data},D=_(S),O=w(S,D);p>0&&(D+=p*.5,O-=p),O>0&&b.push({key:"".concat(k.key,".").concat(T),data:P,x:D,y:C,width:O,height:x,color:s(P)})})}),{xScale:v,yScale:g,bars:b}},hA=function(t){return t.layout==="vertical"?Wxe(t):Uxe(t)},Hxe=function(t,r,i,c,o){var a=Ku(t.map(function(n){return{id:n.data.id,label:n.data.id,color:n.color,fill:n.data.fill}}),function(n){var l=n.id;return l});return(r==="vertical"&&c==="stacked"&&i==="column"&&o!==!0||r==="horizontal"&&c==="stacked"&&o===!0)&&a.reverse(),a},Vxe=function(t){return Ku(t.map(function(r){return{id:r.data.indexValue,label:r.data.indexValue,color:r.color,fill:r.data.fill}}),function(r){var i=r.id;return i})},Yxe=function(t){var r=t.from,i=t.bars,c=t.layout,o=t.direction,a=t.groupMode,n=t.reverse;return r==="indexes"?Vxe(i):Hxe(i,c,o,a,n)};function Vv(e){for(var t=1;t0&&ce0&&ye0&&(this.ctx.lineWidth=M.grid.line.strokeWidth,this.ctx.strokeStyle=M.grid.line.stroke,O&&Nl(this.ctx,{width:s,height:u,scale:B.xScale,axis:"x",values:R}),F&&Nl(this.ctx,{width:s,height:u,scale:B.yScale,axis:"y",values:A})),this.ctx.strokeStyle="#dddddd";var $=Ku(B.bars.map(function(N){return{id:N.data.id,label:N.data.id,color:N.color,fill:N.data.fill}}).reverse(),function(N){var E=N.id;return E}),j=Ku(B.bars.map(function(N){return{id:N.data.indexValue,label:N.data.indexValue,color:N.color,fill:N.data.fill}}),function(N){var E=N.id;return E});D.forEach(function(N){var E;if(N.dataFrom==="keys"?E=$:N.dataFrom==="indexes"&&(E=j),E===void 0)return null;hx(c.ctx,qM({},N,{data:E,containerWidth:s,containerHeight:u,itemTextColor:"#999",symbolSize:16,theme:M}))}),Gb(this.ctx,{xScale:B.xScale,yScale:B.yScale,width:s,height:u,top:_,right:w,bottom:k,left:T,theme:M}),B.bars.forEach(function(N){var E=N.x,W=N.y,G=N.color,L=N.width,q=N.height;c.ctx.fillStyle=G,C>0&&(c.ctx.strokeStyle=P(N),c.ctx.lineWidth=C),c.ctx.beginPath(),c.ctx.rect(E,W,L,q),c.ctx.fill(),C>0&&c.ctx.stroke()})}},{key:"render",value:function(){var i=this,c=this.props,o=c.outerWidth,a=c.outerHeight,n=c.pixelRatio,l=c.isInteractive,f=c.theme;return et.createElement(up,{isInteractive:l,theme:f,animate:!1},function(s){var u=s.showTooltip,d=s.hideTooltip;return et.createElement("canvas",{ref:function(p){i.surface=p},width:o*n,height:a*n,style:{width:o,height:a},onMouseEnter:i.handleMouseHover(u,d),onMouseMove:i.handleMouseHover(u,d),onMouseLeave:i.handleMouseLeave(d),onClick:i.handleClick})})}}]),t}($e.Component);bA.propTypes=gA;var d2e=Cb("BarCanvas")(mA(bA));function Zv(){return Zv=Object.assign||function(e){for(var t=1;t{const t=_y();return je.jsx(Kr,{sx:{maxWidth:200,height:50},children:je.jsx(h2e,{data:e.data[e.xField].map((r,i)=>({id:r,x:e.data[e.yField][i]})),theme:t,margin:{top:3,right:3,bottom:3,left:3},indexBy:"id",keys:["x"],colors:[e.color],axisTop:null,axisRight:null,enableGridX:!1,enableGridY:!1})})},g2e=p2e;var m2e=$O;function v2e(e){return e&&e.length?m2e(e):[]}var y2e=v2e;const HM=ir(y2e);var b2e=nA,x2e=Jl;function w2e(e,t){var r=-1,i=x2e(e)?Array(e.length):[];return b2e(e,function(c,o,a){i[++r]=t(c,o,a)}),i}var _2e=w2e;function T2e(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var k2e=T2e,VM=ts;function M2e(e,t){if(e!==t){var r=e!==void 0,i=e===null,c=e===e,o=VM(e),a=t!==void 0,n=t===null,l=t===t,f=VM(t);if(!n&&!f&&!o&&e>t||o&&a&&l&&!n&&!f||i&&a&&l||!r&&l||!c)return 1;if(!i&&!o&&!f&&e=n)return l;var f=r[i];return l*(f=="desc"?-1:1)}}return e.index-t.index}var A2e=O2e,g0=yh,P2e=hc,D2e=px,E2e=_2e,R2e=k2e,L2e=Ql,I2e=A2e,F2e=Yo,N2e=xa;function j2e(e,t,r){t.length?t=g0(t,function(o){return N2e(o)?function(a){return P2e(a,o.length===1?o[0]:o)}:o}):t=[F2e];var i=-1;t=g0(t,L2e(D2e));var c=E2e(e,function(o,a,n){var l=g0(t,function(f){return f(o)});return{criteria:l,index:++i,value:o}});return R2e(c,function(o,a){return I2e(o,a,r)})}var $2e=j2e,B2e=Fb,z2e=$2e,q2e=vh,YM=X1,W2e=q2e(function(e,t){if(e==null)return[];var r=t.length;return r>1&&YM(e,t[0],t[1])?t=[]:r>2&&YM(t[0],t[1],t[2])&&(t=[t[0]]),z2e(e,B2e(t,1),[])}),U2e=W2e;const H2e=ir(U2e);var V2e=Ii,Y2e=Na,G2e="[object Date]";function X2e(e){return Y2e(e)&&V2e(e)==G2e}var Z2e=X2e,K2e=Z2e,J2e=Ql,GM=mh,XM=GM&&GM.isDate,Q2e=XM?J2e(XM):K2e,ewe=Q2e;const twe=ir(ewe);var nwe=function(t,r,i,c){var o=t.axis,a=t.min,n=a===void 0?0:a,l=t.max,f=l===void 0?"auto":l,s=t.stacked,u=s===void 0?!1:s,d=t.reverse,h=d===void 0?!1:d,p=r[o],m=o==="x"?i:c,y=n;n==="auto"&&(y=u===!0?p.minStacked:p.min);var v=f;f==="auto"&&(v=u===!0?p.maxStacked:p.max);var g=Eo().rangeRound(o==="x"?[0,m]:[m,0]);return h===!0?g.domain([v,y]):g.domain([y,v]),g.type="linear",g.stacked=u,g},rwe={type:oe.oneOf(["linear"]).isRequired,min:oe.oneOfType([oe.oneOf(["auto"]),oe.number]),max:oe.oneOfType([oe.oneOf(["auto"]),oe.number]),stacked:oe.bool,reverse:oe.bool},awe=function(t,r,i,c){var o=t.axis,a=t.base,n=a===void 0?10:a,l=t.min,f=l===void 0?"auto":l,s=t.max,u=s===void 0?"auto":s,d=r[o],h=o==="x"?i:c,p=d.all.some(function(x){return x===0}),m,y=!1;if(d.all.forEach(function(x){y!==!0&&(m===void 0?m=Math.sign(x):Math.sign(x)!==m&&(y=!0))}),p||y)throw new Error(["a log scale domain must be strictly-positive or strictly-negative,","and must not include or cross zero."].join(` -`));var v=f;f==="auto"&&(v=d.min);var g=u;u==="auto"&&(g=d.max);var b=u8().domain([v,g]).rangeRound(o==="x"?[0,h]:[h,0]).base(n).nice();return b.type="log",b},iwe={type:oe.oneOf(["log"]).isRequired,base:oe.number,min:oe.oneOfType([oe.oneOf(["auto"]),oe.number]),max:oe.oneOfType([oe.oneOf(["auto"]),oe.number])},owe=function(t,r,i,c){var o=t.axis,a=r[o],n=o==="x"?i:c,l=pne().range([0,n]).domain(a.all);return l.type="point",l},lwe={type:oe.oneOf(["point"]).isRequired},wi;function po(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _x="millisecond",xA="second",wA="minute",_A="hour",TA="day",kA="month",MA="year",swe=[_x,xA,wA,_A,TA,kA,MA],cl=[function(e){return e.setMilliseconds(0)},function(e){return e.setSeconds(0)},function(e){return e.setMinutes(0)},function(e){return e.setHours(0)},function(e){return e.setDate(1)},function(e){return e.setMonth(0)}],uwe=(wi={},po(wi,_x,[]),po(wi,xA,cl.slice(0,1)),po(wi,wA,cl.slice(0,2)),po(wi,_A,cl.slice(0,3)),po(wi,TA,cl.slice(0,4)),po(wi,kA,cl.slice(0,5)),po(wi,MA,cl.slice(0,6)),wi),cwe=function(t){return function(r){return uwe[t].forEach(function(i){i(r)}),r}},SA=function(t){var r=t.format,i=r===void 0?"native":r,c=t.precision,o=c===void 0?"millisecond":c,a=t.useUTC,n=a===void 0?!0:a,l=cwe(o);if(i==="native")return function(s){return l(s)};var f=n?p7(i):h7(i);return function(s){return l(f(s))}},fwe=function(t,r,i,c){var o=t.axis,a=t.format,n=a===void 0?"native":a,l=t.precision,f=l===void 0?_x:l,s=t.min,u=s===void 0?"auto":s,d=t.max,h=d===void 0?"auto":d,p=t.useUTC,m=p===void 0?!0:p,y=r[o],v=o==="x"?i:c,g=SA({format:n,precision:f,useUTC:m}),b=u;u==="auto"?b=y.min:n!=="native"&&(b=g(u));var x=h;h==="auto"?x=y.max:n!=="native"&&(x=g(h));var _=m?Tae():_ae();return _.domain([b,x]).range([0,v]),_.type="time",_.useUTC=m,_},dwe={type:oe.oneOf(["time"]).isRequired,format:oe.string,precision:oe.oneOf(swe)};function _d(e){return gwe(e)||pwe(e)||hwe()}function hwe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function pwe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function gwe(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t3&&arguments[3]!==void 0?arguments[3]:{},o=c.getValue,a=o===void 0?function(h){return h.data[r]}:o,n=c.setValue,l=n===void 0?function(h,p){h.data[r]=p}:n;if(i.type==="linear")t.forEach(function(h){h.data.forEach(function(p){l(p,a(p)===null?null:parseFloat(a(p)))})});else if(i.type==="time"&&i.format!=="native"){var f=SA(i);t.forEach(function(h){h.data.forEach(function(p){l(p,a(p)===null?null:f(a(p)))})})}var s=[];t.forEach(function(h){h.data.forEach(function(p){s.push(a(p))})});var u,d;return i.type==="linear"?(s=HM(s),s=H2e(s,function(h){return h}),u=Math.min.apply(Math,_d(s)),d=Math.max.apply(Math,_d(s))):i.type==="time"?(s=Ku(s,function(h){return h.getTime()}),s=s.slice(0).sort(function(h,p){return p-h}).reverse(),u=s[0],d=Mn(s)):(s=HM(s),u=s[0],d=Mn(s)),{all:s,min:u,max:d}},OA=function(t,r,i,c){var o=vwe(t),a=[];i[o].all.forEach(function(n){var l=twe(n)?bwe:ywe,f=[];c.forEach(function(s){var u=s.data.find(function(m){return l(m.data[o],n)}),d=null,h=null;if(u!==void 0){if(d=u.data[t],d!==null){var p=Mn(f);p===void 0?h=d:p!==null&&(h=p+d)}u.data["".concat(t,"Stacked")]=h}f.push(h),a.push(h)})}),a=a.filter(function(n){return n!==null}),i[t].minStacked=Math.min.apply(Math,_d(a)),i[t].maxStacked=Math.max.apply(Math,_d(a))},wwe=function(t,r,i){return OA("x",t,r,i)},_we=function(t,r,i){return OA("y",t,r,i)},Td=oe.oneOfType([oe.shape(rwe),oe.shape(lwe),oe.shape(dwe),oe.shape(iwe)]);const JM=Math.pow(2,-52),of=new Uint32Array(512);class kd{static from(t,r=Cwe,i=Owe){const c=t.length,o=new Float64Array(c*2);for(let a=0;a>1;if(r>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const i=Math.max(2*r-5,0);this._triangles=new Uint32Array(i*3),this._halfedges=new Int32Array(i*3),this._hashSize=Math.ceil(Math.sqrt(r)),this._hullPrev=new Uint32Array(r),this._hullNext=new Uint32Array(r),this._hullTri=new Uint32Array(r),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(r),this._dists=new Float64Array(r),this.update()}update(){const{coords:t,_hullPrev:r,_hullNext:i,_hullTri:c,_hullHash:o}=this,a=t.length>>1;let n=1/0,l=1/0,f=-1/0,s=-1/0;for(let S=0;Sf&&(f=C),P>s&&(s=P),this._ids[S]=S}const u=(n+f)/2,d=(l+s)/2;let h=1/0,p,m,y;for(let S=0;S0&&(m=S,h=C)}let b=t[2*m],x=t[2*m+1],_=1/0;for(let S=0;SD&&(S[C++]=O,D=this._dists[O])}this.hull=S.subarray(0,C),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(lf(v,g,b,x,w,k)){const S=m,C=b,P=x;m=y,b=w,x=k,y=S,w=C,k=P}const T=Swe(v,g,b,x,w,k);this._cx=T.x,this._cy=T.y;for(let S=0;S0&&Math.abs(O-C)<=JM&&Math.abs(R-P)<=JM||(C=O,P=R,D===p||D===m||D===y))continue;let F=0;for(let j=0,N=this._hashKey(O,R);j0?3-r:1+r)/4}function m0(e,t,r,i){const c=e-r,o=t-i;return c*c+o*o}function v0(e,t,r,i,c,o){const a=(i-t)*(c-e),n=(r-e)*(o-t);return Math.abs(a-n)>=33306690738754716e-32*Math.abs(a+n)?a-n:0}function lf(e,t,r,i,c,o){return(v0(c,o,e,t,r,i)||v0(e,t,r,i,c,o)||v0(r,i,c,o,e,t))<0}function kwe(e,t,r,i,c,o,a,n){const l=e-a,f=t-n,s=r-a,u=i-n,d=c-a,h=o-n,p=l*l+f*f,m=s*s+u*u,y=d*d+h*h;return l*(u*y-m*h)-f*(s*y-m*d)+p*(s*h-u*d)<0}function Mwe(e,t,r,i,c,o){const a=r-e,n=i-t,l=c-e,f=o-t,s=a*a+n*n,u=l*l+f*f,d=.5/(a*f-n*l),h=(f*s-n*u)*d,p=(a*u-l*s)*d;return h*h+p*p}function Swe(e,t,r,i,c,o){const a=r-e,n=i-t,l=c-e,f=o-t,s=a*a+n*n,u=l*l+f*f,d=.5/(a*f-n*l),h=e+(f*s-n*u)*d,p=t+(a*u-l*s)*d;return{x:h,y:p}}function gl(e,t,r,i){if(i-r<=20)for(let c=r+1;c<=i;c++){const o=e[c],a=t[o];let n=c-1;for(;n>=r&&t[e[n]]>a;)e[n+1]=e[n--];e[n+1]=o}else{const c=r+i>>1;let o=r+1,a=i;vu(e,c,o),t[e[r]]>t[e[i]]&&vu(e,r,i),t[e[o]]>t[e[i]]&&vu(e,o,i),t[e[r]]>t[e[o]]&&vu(e,r,o);const n=e[o],l=t[n];for(;;){do o++;while(t[e[o]]l);if(a=a-r?(gl(e,t,o,i),gl(e,t,r,a-1)):(gl(e,t,r,a-1),gl(e,t,o,i))}}function vu(e,t,r){const i=e[t];e[t]=e[r],e[r]=i}function Cwe(e){return e[0]}function Owe(e){return e[1]}const QM=1e-6;class Co{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,r){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,r){this._+=`L${this._x1=+t},${this._y1=+r}`}arc(t,r,i){t=+t,r=+r,i=+i;const c=t+i,o=r;if(i<0)throw new Error("negative radius");this._x1===null?this._+=`M${c},${o}`:(Math.abs(this._x1-c)>QM||Math.abs(this._y1-o)>QM)&&(this._+="L"+c+","+o),i&&(this._+=`A${i},${i},0,1,1,${t-i},${r}A${i},${i},0,1,1,${this._x1=c},${this._y1=o}`)}rect(t,r,i,c){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${+i}v${+c}h${-i}Z`}value(){return this._||null}}class Kv{constructor(){this._=[]}moveTo(t,r){this._.push([t,r])}closePath(){this._.push(this._[0].slice())}lineTo(t,r){this._.push([t,r])}value(){return this._.length?this._:null}}let Awe=class{constructor(t,[r,i,c,o]=[0,0,960,500]){if(!((c=+c)>=(r=+r))||!((o=+o)>=(i=+i)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=c,this.xmin=r,this.ymax=o,this.ymin=i,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:r,triangles:i},vectors:c}=this,o=this.circumcenters=this._circumcenters.subarray(0,i.length/3*2);for(let h=0,p=0,m=i.length,y,v;h1;)o-=2;for(let a=2;a4)for(let a=0;a0){if(r>=this.ymax)return null;(a=(this.ymax-r)/c)0){if(t>=this.xmax)return null;(a=(this.xmax-t)/i)this.xmax?2:0)|(rthis.ymax?8:0)}};const Pwe=2*Math.PI,fl=Math.pow;function Dwe(e){return e[0]}function Ewe(e){return e[1]}function Rwe(e){const{triangles:t,coords:r}=e;for(let i=0;i1e-10)return!1}return!0}function Lwe(e,t,r){return[e+Math.sin(e+t)*r,t+Math.cos(e-t)*r]}class Rp{static from(t,r=Dwe,i=Ewe,c){return new Rp("length"in t?Iwe(t,r,i,c):Float64Array.from(Fwe(t,r,i,c)))}constructor(t){this._delaunator=new kd(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,r=this.points;if(t.hull&&t.hull.length>2&&Rwe(t)){this.collinear=Int32Array.from({length:r.length/2},(d,h)=>h).sort((d,h)=>r[2*d]-r[2*h]||r[2*d+1]-r[2*h+1]);const l=this.collinear[0],f=this.collinear[this.collinear.length-1],s=[r[2*l],r[2*l+1],r[2*f],r[2*f+1]],u=1e-8*Math.hypot(s[3]-s[1],s[2]-s[0]);for(let d=0,h=r.length/2;d0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=c[0],this.triangles[1]=c[1],this.triangles[2]=c[1],a[c[0]]=1,c.length===2&&(a[c[1]]=0))}voronoi(t){return new Awe(this,t)}*neighbors(t){const{inedges:r,hull:i,_hullIndex:c,halfedges:o,triangles:a,collinear:n}=this;if(n){const u=n.indexOf(t);u>0&&(yield n[u-1]),u=0&&o!==i&&o!==c;)i=o;return o}_step(t,r,i){const{inedges:c,hull:o,_hullIndex:a,halfedges:n,triangles:l,points:f}=this;if(c[t]===-1||!f.length)return(t+1)%(f.length>>1);let s=t,u=fl(r-f[t*2],2)+fl(i-f[t*2+1],2);const d=c[t];let h=d;do{let p=l[h];const m=fl(r-f[p*2],2)+fl(i-f[p*2+1],2);if(m0&&(de.lineWidth=H.grid.line.strokeWidth,de.strokeStyle=H.grid.line.stroke,k&&Nl(de,{width:W,height:G,scale:re,axis:"x",values:T}),M&&Nl(de,{width:W,height:G,scale:ie,axis:"y",values:S})),xe==="axes"&&Gb(de,{xScale:re,yScale:ie,width:W,height:G,top:C,right:P,bottom:D,left:O,theme:H}),xe==="areas"&&m===!0&&(de.save(),de.globalAlpha=v,Z.context(de),X.forEach(function(ge){de.fillStyle=ge.color,de.beginPath(),Z(ge.data.map(function(be){return be.position})),de.fill()}),de.restore()),xe==="lines"&&(Y.context(de),X.forEach(function(ge){de.strokeStyle=ge.color,de.lineWidth=p,de.beginPath(),Y(ge.data.map(function(be){return be.position})),de.stroke()})),xe==="points"&&g===!0&&b>0&&le.forEach(function(ge){de.fillStyle=ge.color,de.beginPath(),de.arc(ge.x,ge.y,b/2,0,2*Math.PI),de.fill(),_>0&&(de.strokeStyle=ge.borderColor,de.lineWidth=_,de.stroke())}),xe==="mesh"&&A===!0&&(PA(de,Te),ee&&DA(de,Te,ee.index)),xe==="legends"){var ue=X.map(function(ge){return{id:ge.id,label:ge.id,color:ge.color}}).reverse();R.forEach(function(ge){hx(de,x_e({},ge,{data:ge.data||ue,containerWidth:W,containerHeight:G,theme:H}))})}})},[j,L,q,d,H,Y,X,re,ie,k,T,M,S,C,P,D,O,R,le,g,b,ee]);var Se=$e.useCallback(function(de){var xe=Zu(j.current,de),ue=a5(xe,2),ge=ue[0],be=ue[1];if(!qb(E.left,E.top,W,G,ge,be))return null;var we=pe.find(ge-E.left,be-E.top);return le[we]},[j,E,W,G,pe]),Oe=Vl(),Me=Oe.showTooltipFromEvent,ce=Oe.hideTooltip,ye=$e.useCallback(function(de){var xe=Se(de);U(xe),xe?Me(et.createElement($,{point:xe}),de):ce()},[Se,U,Me,ce,$]),J=$e.useCallback(function(de){ce(),U(null),ee&&z&&z(ee,de)},[ce,U,z]),ne=$e.useCallback(function(de){if(B){var xe=Se(de);xe&&B(xe,de)}},[Se,B]);return et.createElement("canvas",{ref:j,width:L*o,height:q*o,style:{width:L,height:q,cursor:F?"auto":"normal"},onMouseEnter:F?ye:void 0,onMouseMove:F?ye:void 0,onMouseLeave:F?J:void 0,onClick:F?ne:void 0})};Sx.propTypes=Xwe;Sx.defaultProps=Zwe;var M_e=pp(Sx);function ey(){return ey=Object.assign||function(e){for(var t=1;t{const t=_y();return je.jsx(Kr,{sx:{maxWidth:200,height:50},children:je.jsx(S_e,{data:[{id:"1",data:e.data[e.xField].map((r,i)=>({x:r,y:e.data[e.yField][i]}))}],theme:t,margin:{top:0,right:0,bottom:0,left:0},xScale:{type:"linear",min:0,max:25},axisTop:null,colors:[e.color],axisRight:null,enableGridX:!1,enableGridY:!1})})},O_e=C_e;function A_e(e){for(var t=1;t{const t=_y();return je.jsx(Kr,{sx:{maxWidth:200,height:50},children:je.jsx(Q_e,{data:[{id:"1",data:e.data[e.xField].map((r,i)=>({x:r,y:e.data[e.yField][i]}))}],theme:t,margin:{top:3,right:3,bottom:3,left:3},xScale:{type:"linear",min:0,max:1e3},nodeSize:4,colors:[e.color],useMesh:!1,axisTop:null,axisRight:null,enableGridX:!1,enableGridY:!1})})},i3e=a3e,o3e=new Map([["line",(e,t)=>t[e.field]?je.jsx(O_e,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):je.jsx("div",{})],["scatter",(e,t)=>t[e.field]?je.jsx(i3e,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):je.jsx("div",{})],["histogram",(e,t)=>t[e.field]?je.jsx(g2e,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):je.jsx("div",{})]]),l5=e=>e.map(t=>({def:t,gen:o3e.get(t.type??"string")})).map(({def:t,gen:r})=>r?{...t,type:void 0,render:i=>r(t,i)}:{...t,sorting:!0,defaultSort:t.sort,type:"string"}),l3e=e=>{const[t,r]=$e.useState({open:!1,anchorEl:void 0});return je.jsxs(Kr,{sx:{width:50},onClick:i=>r(c=>({open:!c.open,anchorEl:i.currentTarget})),children:[je.jsx(nE,{}),je.jsx(iS,{open:t.open,anchorEl:t.anchorEl,anchorOrigin:{horizontal:"left",vertical:"bottom"},children:je.jsx(Cr,{p:1,children:e.longText})})]})},s3e=e=>{const{columns:t,data:r}=e,i={search:!0,showTitle:!1,pageSize:e.rowsPerPage??5,detailPanelColumnStyle:{minWidth:42},emptyRowsWhenPaging:!1};return je.jsx(et.Fragment,{children:je.jsx($Y,{columns:e.showInfoColumn??!1?[...l5(t),{title:"Info",render:c=>{var o,a,n;return je.jsx(et.Fragment,{children:(o=c.details)!=null&&o.insights?je.jsx(l3e,{longText:`${(a=c.details)==null?void 0:a.insights[0].title}: ${(n=c.details)==null?void 0:n.insights[0].text}`}):je.jsx("div",{})})},width:50}]:[...l5(t)],data:r,detailPanel:({rowData:c})=>c.graphId?je.jsx(WY,{graphId:c.graphId,widgetSize:e.widgetSize}):c.details?je.jsx(A1,{details:c.details,widgetSize:e.widgetSize}):null,options:i})})},s5=e=>je.jsxs("div",{children:[je.jsx(Cr,{align:"center",fontWeight:500,sx:{fontSize:36},children:e.value}),je.jsx(Cr,{align:"center",variant:"h5",fontWeight:500,children:e.label})]}),u3e=e=>je.jsx(et.Fragment,{children:e.counters.length===1?je.jsx(s5,{...e.counters[0]}):je.jsx(Jn,{container:!0,spacing:1,direction:"row",alignItems:"center",children:e.counters.map(t=>je.jsx(Jn,{item:!0,xs:!0,component:Kr,height:"100%",children:je.jsx(Kr,{children:je.jsx(s5,{...t})})},t.label+t.value))})}),c3e=e=>je.jsxs("div",{children:[je.jsxs(Kr,{display:"flex",alignItems:"center",children:[je.jsx(Kr,{width:"100%",mr:1,children:je.jsx(rE,{variant:"determinate",value:e.value/e.maxValue*100})}),je.jsx(Kr,{minWidth:35,children:je.jsx(Cr,{variant:"body2",color:"textSecondary",children:`${Math.round(e.value/e.maxValue*100)}%`})})]}),je.jsx(Kr,{width:"100%",children:je.jsx(Cr,{variant:"body2",color:"textSecondary",children:e.details??""})})]}),f3e=e=>{var o,a,n,l;const[t,r]=$e.useState(!1),c=fS()==="dark"?{template:{...ml,layout:{...ml.layout,colorway:((n=(a=(o=e.graph)==null?void 0:o.layout.template)==null?void 0:a.layout)==null?void 0:n.colorway)||((l=ml.layout)==null?void 0:l.colorway)}}}:void 0;return je.jsx(et.Fragment,{children:je.jsxs(Jn,{container:!0,spacing:2,justifyContent:"center",alignItems:"center",children:[je.jsxs(Jn,{item:!0,xs:2,children:[je.jsx(Cr,{variant:"h5",children:e.header}),je.jsx(Cr,{variant:"subtitle1",children:e.description})]}),je.jsx(Jn,{item:!0,xs:e.graph===void 0?10:5,children:je.jsxs(oS,{children:[je.jsx(lS,{children:je.jsxs(Rf,{children:[je.jsx(Vi,{}),e.metricsValuesHeaders.map(f=>je.jsx(Vi,{children:f}))]})}),je.jsx(sS,{children:e.metrics.map(f=>je.jsxs(Rf,{children:[je.jsx(Vi,{children:f.label}),f.values.map(s=>je.jsx(Vi,{children:s}))]}))})]})}),e.graph===void 0?je.jsx(je.Fragment,{}):je.jsx(Jn,{item:!0,xs:5,children:je.jsx(pS,{data:e.graph.data,layout:{...e.graph.layout,...c,title:void 0},config:{responsive:!0},style:{width:"100%",minHeight:150+100*(1+e.widgetSize/2),maxHeight:250}})}),e.details===void 0||e.details.parts.length===0?je.jsx(je.Fragment,{}):je.jsxs(je.Fragment,{children:[je.jsx(Jn,{item:!0,xs:12,children:je.jsx(hi,{variant:"outlined",startIcon:t?je.jsx(aE,{}):je.jsx(iE,{}),onClick:()=>r(f=>!f),children:"Details"})}),je.jsx(Jn,{item:!0,xs:12,children:je.jsx(xy,{in:t,mountOnEnter:!0,unmountOnExit:!0,children:je.jsx(A1,{details:e.details,widgetSize:e.widgetSize})})})]})]})})},d3e=e=>je.jsx(O1,{tabs:e.graphs.map(t=>({title:t.title,tab:je.jsx(Pd,{widgetSize:e.widgetSize,data:t.graph.data,layout:t.graph.layout})}))}),h3e=e=>je.jsx(O1,{tabs:e.tabs.map(t=>({title:t.title,tab:Tc(`${e.id}1`,t.widget)}))}),p3e=e=>je.jsx(oE,{children:je.jsxs(oS,{sx:{minWidth:650},size:"small","aria-label":"a dense table",children:[je.jsx(lS,{children:je.jsxs(Rf,{children:[je.jsx(Vi,{children:e.header[0]},-1),e.header.slice(1).map(t=>je.jsx(Vi,{align:"right",children:t},t))]})}),je.jsx(sS,{children:e.data.map(t=>je.jsxs(Rf,{children:[je.jsx(Vi,{component:"th",scope:"row",children:t[0]},-1),t.slice(1).map(r=>je.jsx(Vi,{align:"right",children:r},r))]},t[0]))})]})});function g3e(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const m3e=/[ \t\n\f\r]/g;function v3e(e){return typeof e=="object"?e.type==="text"?u5(e.value):!1:u5(e)}function u5(e){return e.replace(m3e,"")===""}class wc{constructor(t,r,i){this.property=t,this.normal=r,i&&(this.space=i)}}wc.prototype.property={};wc.prototype.normal={};wc.prototype.space=null;function nP(e,t){const r={},i={};let c=-1;for(;++c4&&r.slice(0,4)==="data"&&_3e.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(f5,S3e);i="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!f5.test(o)){let a=o.replace(T3e,M3e);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}c=Ax}return new c(i,t)}function M3e(e){return"-"+e.toLowerCase()}function S3e(e){return e.charAt(1).toUpperCase()}const C3e={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},O3e=nP([iP,aP,sP,uP,x3e],"html"),cP=nP([iP,aP,sP,uP,w3e],"svg");function A3e(e){return e.join(" ").trim()}var Px={exports:{}},d5=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,P3e=/\n/g,D3e=/^\s*/,E3e=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,R3e=/^:\s*/,L3e=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,I3e=/^[;\s]*/,F3e=/^\s+|\s+$/g,N3e=` -`,h5="/",p5="*",wo="",j3e="comment",$3e="declaration",B3e=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,i=1;function c(p){var m=p.match(P3e);m&&(r+=m.length);var y=p.lastIndexOf(N3e);i=~y?p.length-y:i+p.length}function o(){var p={line:r,column:i};return function(m){return m.position=new a(p),f(),m}}function a(p){this.start=p,this.end={line:r,column:i},this.source=t.source}a.prototype.content=e;function n(p){var m=new Error(t.source+":"+r+":"+i+": "+p);if(m.reason=p,m.filename=t.source,m.line=r,m.column=i,m.source=e,!t.silent)throw m}function l(p){var m=p.exec(e);if(m){var y=m[0];return c(y),e=e.slice(y.length),m}}function f(){l(D3e)}function s(p){var m;for(p=p||[];m=u();)m!==!1&&p.push(m);return p}function u(){var p=o();if(!(h5!=e.charAt(0)||p5!=e.charAt(1))){for(var m=2;wo!=e.charAt(m)&&(p5!=e.charAt(m)||h5!=e.charAt(m+1));)++m;if(m+=2,wo===e.charAt(m-1))return n("End of comment missing");var y=e.slice(2,m-2);return i+=2,c(y),e=e.slice(m),i+=2,p({type:j3e,comment:y})}}function d(){var p=o(),m=l(E3e);if(m){if(u(),!l(R3e))return n("property missing ':'");var y=l(L3e),v=p({type:$3e,property:g5(m[0].replace(d5,wo)),value:y?g5(y[0].replace(d5,wo)):wo});return l(I3e),v}}function h(){var p=[];s(p);for(var m;m=d();)m!==!1&&(p.push(m),s(p));return p}return f(),h()};function g5(e){return e?e.replace(F3e,wo):wo}var z3e=B3e;function fP(e,t){var r=null;if(!e||typeof e!="string")return r;for(var i,c=z3e(e),o=typeof t=="function",a,n,l=0,f=c.length;l0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function U3e(e){const t=Dx(e),r=dP(e);if(t&&r)return{start:t,end:r}}function Ou(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?m5(e.position):"start"in e||"end"in e?m5(e):"line"in e||"column"in e?ly(e):""}function ly(e){return v5(e&&e.line)+":"+v5(e&&e.column)}function m5(e){return ly(e&&e.start)+"-"+ly(e&&e.end)}function v5(e){return e&&typeof e=="number"?e:1}class wa extends Error{constructor(t,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let c="",o={},a=!1;if(r&&("line"in r&&"column"in r?o={place:r}:"start"in r&&"end"in r?o={place:r}:"type"in r?o={ancestors:[r],place:r.position}:o={...r}),typeof t=="string"?c=t:!o.cause&&t&&(a=!0,c=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof i=="string"){const l=i.indexOf(":");l===-1?o.ruleId=i:(o.source=i.slice(0,l),o.ruleId=i.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const n=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=n?n.column:void 0,this.fatal=void 0,this.file,this.message=c,this.line=n?n.line:void 0,this.name=Ou(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}wa.prototype.file="";wa.prototype.name="";wa.prototype.reason="";wa.prototype.message="";wa.prototype.stack="";wa.prototype.column=void 0;wa.prototype.line=void 0;wa.prototype.ancestors=void 0;wa.prototype.cause=void 0;wa.prototype.fatal=void 0;wa.prototype.place=void 0;wa.prototype.ruleId=void 0;wa.prototype.source=void 0;const Ex={}.hasOwnProperty,H3e=new Map,V3e=/[A-Z]/g,Y3e=/-([a-z])/g,G3e=new Set(["table","tbody","thead","tfoot","tr"]),X3e=new Set(["td","th"]);function Z3e(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=J3e(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=K3e(r,t.jsx,t.jsxs)}const c={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?cP:O3e,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=pP(c,e,void 0);return o&&typeof o!="string"?o:c.create(e,c.Fragment,{children:o||void 0},void 0)}function pP(e,t,r){if(t.type==="element"||t.type==="root"){const i=e.schema;let c=i;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(c=cP,e.schema=c),e.ancestors.push(t);let o=Q3e(e,t);const a=eTe(e,e.ancestors);let n=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(o&&G3e.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!v3e(l):!0})),Ex.call(e.components,t.tagName)){const l=t.tagName;n=e.components[l],typeof n!="string"&&n!==e.Fragment&&e.passNode&&(a.node=t)}else n=t.tagName;if(o.length>0){const l=o.length>1?o:o[0];l&&(a.children=l)}return e.schema=i,e.create(t,n,a,r)}if(t.type==="text")return t.value}function K3e(e,t,r){return i;function i(c,o,a,n){const f=Array.isArray(a.children)?r:t;return n?f(o,a,n):f(o,a)}}function J3e(e,t){return r;function r(i,c,o,a){const n=Array.isArray(o.children),l=Dx(i);return t(c,o,a,n,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function Q3e(e,t){const r=[];let i=-1;const c=e.passKeys?new Map:H3e;for(;++i-1&&e.test(String.fromCharCode(r))}}const dTe={'"':"quot","&":"amp","<":"lt",">":"gt"};function hTe(e){return e.replace(/["&<>]/g,t);function t(r){return"&"+dTe[r]+";"}}function pTe(e,t){const r=hTe(nl(e||""));if(!t)return r;const i=r.indexOf(":"),c=r.indexOf("?"),o=r.indexOf("#"),a=r.indexOf("/");return i<0||a>-1&&i>a||c>-1&&i>c||o>-1&&i>o||t.test(r.slice(0,i))?r:""}function nl(e){const t=[];let r=-1,i=0,c=0;for(;++r55295&&o<57344){const n=e.charCodeAt(r+1);o<56320&&n>56319&&n<57344?(a=String.fromCharCode(o,n),c=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(i,r),encodeURIComponent(a)),i=r+c+1,a=""),c&&(r+=c,c=0)}return t.join("")+e.slice(i)}const gTe={};function mTe(e,t){const r=gTe,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,c=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return mP(e,i,c)}function mP(e,t,r){if(vTe(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return y5(e.children,t,r)}return Array.isArray(e)?y5(e,t,r):""}function y5(e,t,r){const i=[];let c=-1;for(;++cc?0:c+t:t=t>c?c:t,r=r>0?r:0,i.length<1e4)a=Array.from(i),a.unshift(t,r),e.splice(...a);else for(r&&e.splice(t,r);o0?(gi(e,e.length,0,t),e):t}const x5={}.hasOwnProperty;function yTe(e){const t={};let r=-1;for(;++r13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCharCode(r)}function wl(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function vr(e,t,r,i){const c=i?i-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return ar(l)?(e.enter(r),n(l)):t(l)}function n(l){return ar(l)&&o++a))return;const k=t.events.length;let T=k,M,S;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){if(M){S=t.events[T][1].end;break}M=!0}for(v(i),w=k;wb;){const _=r[x];t.containerState=_[1],_[0].exit.call(t,e)}r.length=b}function g(){c.write([null]),o=void 0,c=void 0,t.containerState._closeFlow=void 0}}function MTe(e,t,r){return vr(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function _5(e){if(e===null||Ca(e)||fTe(e))return 1;if(cTe(e))return 2}function Lx(e,t,r){const i=[];let c=-1;for(;++c1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const u=Object.assign({},e[i][1].end),d=Object.assign({},e[r][1].start);T5(u,-l),T5(d,l),a={type:l>1?"strongSequence":"emphasisSequence",start:u,end:Object.assign({},e[i][1].end)},n={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[r][1].start),end:d},o={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[i][1].end),end:Object.assign({},e[r][1].start)},c={type:l>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},n.end)},e[i][1].end=Object.assign({},a.start),e[r][1].start=Object.assign({},n.end),f=[],e[i][1].end.offset-e[i][1].start.offset&&(f=qa(f,[["enter",e[i][1],t],["exit",e[i][1],t]])),f=qa(f,[["enter",c,t],["enter",a,t],["exit",a,t],["enter",o,t]]),f=qa(f,Lx(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),f=qa(f,[["exit",o,t],["enter",n,t],["exit",n,t],["exit",c,t]]),e[r][1].end.offset-e[r][1].start.offset?(s=2,f=qa(f,[["enter",e[r][1],t],["exit",e[r][1],t]])):s=0,gi(e,i-1,r-i+3,f),r=i+f.length-s-2;break}}for(r=-1;++r0&&ar(w)?vr(e,g,"linePrefix",o+1)(w):g(w)}function g(w){return w===null||Fn(w)?e.check(k5,m,x)(w):(e.enter("codeFlowValue"),b(w))}function b(w){return w===null||Fn(w)?(e.exit("codeFlowValue"),g(w)):(e.consume(w),b)}function x(w){return e.exit("codeFenced"),t(w)}function _(w,k,T){let M=0;return S;function S(R){return w.enter("lineEnding"),w.consume(R),w.exit("lineEnding"),C}function C(R){return w.enter("codeFencedFence"),ar(R)?vr(w,P,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):P(R)}function P(R){return R===n?(w.enter("codeFencedFenceSequence"),D(R)):T(R)}function D(R){return R===n?(M++,w.consume(R),D):M>=a?(w.exit("codeFencedFenceSequence"),ar(R)?vr(w,O,"whitespace")(R):O(R)):T(R)}function O(R){return R===null||Fn(R)?(w.exit("codeFencedFence"),k(R)):T(R)}}}function NTe(e,t,r){const i=this;return c;function c(a){return a===null?r(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return i.parser.lazy[i.now().line]?r(a):t(a)}}const x0={name:"codeIndented",tokenize:$Te},jTe={tokenize:BTe,partial:!0};function $Te(e,t,r){const i=this;return c;function c(f){return e.enter("codeIndented"),vr(e,o,"linePrefix",5)(f)}function o(f){const s=i.events[i.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?a(f):r(f)}function a(f){return f===null?l(f):Fn(f)?e.attempt(jTe,a,l)(f):(e.enter("codeFlowValue"),n(f))}function n(f){return f===null||Fn(f)?(e.exit("codeFlowValue"),a(f)):(e.consume(f),n)}function l(f){return e.exit("codeIndented"),t(f)}}function BTe(e,t,r){const i=this;return c;function c(a){return i.parser.lazy[i.now().line]?r(a):Fn(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),c):vr(e,o,"linePrefix",5)(a)}function o(a){const n=i.events[i.events.length-1];return n&&n[1].type==="linePrefix"&&n[2].sliceSerialize(n[1],!0).length>=4?t(a):Fn(a)?c(a):r(a)}}const zTe={name:"codeText",tokenize:UTe,resolve:qTe,previous:WTe};function qTe(e){let t=e.length-4,r=3,i,c;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=r;++i=4?t(a):e.interrupt(i.parser.constructs.flow,r,t)(a)}}function _P(e,t,r,i,c,o,a,n,l){const f=l||Number.POSITIVE_INFINITY;let s=0;return u;function u(v){return v===60?(e.enter(i),e.enter(c),e.enter(o),e.consume(v),e.exit(o),d):v===null||v===32||v===41||sy(v)?r(v):(e.enter(i),e.enter(a),e.enter(n),e.enter("chunkString",{contentType:"string"}),m(v))}function d(v){return v===62?(e.enter(o),e.consume(v),e.exit(o),e.exit(c),e.exit(i),t):(e.enter(n),e.enter("chunkString",{contentType:"string"}),h(v))}function h(v){return v===62?(e.exit("chunkString"),e.exit(n),d(v)):v===null||v===60||Fn(v)?r(v):(e.consume(v),v===92?p:h)}function p(v){return v===60||v===62||v===92?(e.consume(v),h):h(v)}function m(v){return!s&&(v===null||v===41||Ca(v))?(e.exit("chunkString"),e.exit(n),e.exit(a),e.exit(i),t(v)):s999||h===null||h===91||h===93&&!l||h===94&&!n&&"_hiddenFootnoteSupport"in a.parser.constructs?r(h):h===93?(e.exit(o),e.enter(c),e.consume(h),e.exit(c),e.exit(i),t):Fn(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),u(h))}function u(h){return h===null||h===91||h===93||Fn(h)||n++>999?(e.exit("chunkString"),s(h)):(e.consume(h),l||(l=!ar(h)),h===92?d:u)}function d(h){return h===91||h===92||h===93?(e.consume(h),n++,u):u(h)}}function kP(e,t,r,i,c,o){let a;return n;function n(d){return d===34||d===39||d===40?(e.enter(i),e.enter(c),e.consume(d),e.exit(c),a=d===40?41:d,l):r(d)}function l(d){return d===a?(e.enter(c),e.consume(d),e.exit(c),e.exit(i),t):(e.enter(o),f(d))}function f(d){return d===a?(e.exit(o),l(a)):d===null?r(d):Fn(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),vr(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(d))}function s(d){return d===a||d===null||Fn(d)?(e.exit("chunkString"),f(d)):(e.consume(d),d===92?u:s)}function u(d){return d===a||d===92?(e.consume(d),s):s(d)}}function Au(e,t){let r;return i;function i(c){return Fn(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),r=!0,i):ar(c)?vr(e,i,r?"linePrefix":"lineSuffix")(c):t(c)}}const KTe={name:"definition",tokenize:QTe},JTe={tokenize:eke,partial:!0};function QTe(e,t,r){const i=this;let c;return o;function o(h){return e.enter("definition"),a(h)}function a(h){return TP.call(i,e,n,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function n(h){return c=wl(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):r(h)}function l(h){return Ca(h)?Au(e,f)(h):f(h)}function f(h){return _P(e,s,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function s(h){return e.attempt(JTe,u,u)(h)}function u(h){return ar(h)?vr(e,d,"whitespace")(h):d(h)}function d(h){return h===null||Fn(h)?(e.exit("definition"),i.parser.defined.push(c),t(h)):r(h)}}function eke(e,t,r){return i;function i(n){return Ca(n)?Au(e,c)(n):r(n)}function c(n){return kP(e,o,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(n)}function o(n){return ar(n)?vr(e,a,"whitespace")(n):a(n)}function a(n){return n===null||Fn(n)?t(n):r(n)}}const tke={name:"hardBreakEscape",tokenize:nke};function nke(e,t,r){return i;function i(o){return e.enter("hardBreakEscape"),e.consume(o),c}function c(o){return Fn(o)?(e.exit("hardBreakEscape"),t(o)):r(o)}}const rke={name:"headingAtx",tokenize:ike,resolve:ake};function ake(e,t){let r=e.length-2,i=3,c,o;return e[i][1].type==="whitespace"&&(i+=2),r-2>i&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&e[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(c={type:"atxHeadingText",start:e[i][1].start,end:e[r][1].end},o={type:"chunkText",start:e[i][1].start,end:e[r][1].end,contentType:"text"},gi(e,i,r-i+1,[["enter",c,t],["enter",o,t],["exit",o,t],["exit",c,t]])),e}function ike(e,t,r){let i=0;return c;function c(s){return e.enter("atxHeading"),o(s)}function o(s){return e.enter("atxHeadingSequence"),a(s)}function a(s){return s===35&&i++<6?(e.consume(s),a):s===null||Ca(s)?(e.exit("atxHeadingSequence"),n(s)):r(s)}function n(s){return s===35?(e.enter("atxHeadingSequence"),l(s)):s===null||Fn(s)?(e.exit("atxHeading"),t(s)):ar(s)?vr(e,n,"whitespace")(s):(e.enter("atxHeadingText"),f(s))}function l(s){return s===35?(e.consume(s),l):(e.exit("atxHeadingSequence"),n(s))}function f(s){return s===null||s===35||Ca(s)?(e.exit("atxHeadingText"),n(s)):(e.consume(s),f)}}const oke=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],S5=["pre","script","style","textarea"],lke={name:"htmlFlow",tokenize:fke,resolveTo:cke,concrete:!0},ske={tokenize:hke,partial:!0},uke={tokenize:dke,partial:!0};function cke(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function fke(e,t,r){const i=this;let c,o,a,n,l;return f;function f(E){return s(E)}function s(E){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(E),u}function u(E){return E===33?(e.consume(E),d):E===47?(e.consume(E),o=!0,m):E===63?(e.consume(E),c=3,i.interrupt?t:$):di(E)?(e.consume(E),a=String.fromCharCode(E),y):r(E)}function d(E){return E===45?(e.consume(E),c=2,h):E===91?(e.consume(E),c=5,n=0,p):di(E)?(e.consume(E),c=4,i.interrupt?t:$):r(E)}function h(E){return E===45?(e.consume(E),i.interrupt?t:$):r(E)}function p(E){const W="CDATA[";return E===W.charCodeAt(n++)?(e.consume(E),n===W.length?i.interrupt?t:P:p):r(E)}function m(E){return di(E)?(e.consume(E),a=String.fromCharCode(E),y):r(E)}function y(E){if(E===null||E===47||E===62||Ca(E)){const W=E===47,G=a.toLowerCase();return!W&&!o&&S5.includes(G)?(c=1,i.interrupt?t(E):P(E)):oke.includes(a.toLowerCase())?(c=6,W?(e.consume(E),v):i.interrupt?t(E):P(E)):(c=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(E):o?g(E):b(E))}return E===45||La(E)?(e.consume(E),a+=String.fromCharCode(E),y):r(E)}function v(E){return E===62?(e.consume(E),i.interrupt?t:P):r(E)}function g(E){return ar(E)?(e.consume(E),g):S(E)}function b(E){return E===47?(e.consume(E),S):E===58||E===95||di(E)?(e.consume(E),x):ar(E)?(e.consume(E),b):S(E)}function x(E){return E===45||E===46||E===58||E===95||La(E)?(e.consume(E),x):_(E)}function _(E){return E===61?(e.consume(E),w):ar(E)?(e.consume(E),_):b(E)}function w(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(e.consume(E),l=E,k):ar(E)?(e.consume(E),w):T(E)}function k(E){return E===l?(e.consume(E),l=null,M):E===null||Fn(E)?r(E):(e.consume(E),k)}function T(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||Ca(E)?_(E):(e.consume(E),T)}function M(E){return E===47||E===62||ar(E)?b(E):r(E)}function S(E){return E===62?(e.consume(E),C):r(E)}function C(E){return E===null||Fn(E)?P(E):ar(E)?(e.consume(E),C):r(E)}function P(E){return E===45&&c===2?(e.consume(E),F):E===60&&c===1?(e.consume(E),A):E===62&&c===4?(e.consume(E),j):E===63&&c===3?(e.consume(E),$):E===93&&c===5?(e.consume(E),B):Fn(E)&&(c===6||c===7)?(e.exit("htmlFlowData"),e.check(ske,N,D)(E)):E===null||Fn(E)?(e.exit("htmlFlowData"),D(E)):(e.consume(E),P)}function D(E){return e.check(uke,O,N)(E)}function O(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),R}function R(E){return E===null||Fn(E)?D(E):(e.enter("htmlFlowData"),P(E))}function F(E){return E===45?(e.consume(E),$):P(E)}function A(E){return E===47?(e.consume(E),a="",z):P(E)}function z(E){if(E===62){const W=a.toLowerCase();return S5.includes(W)?(e.consume(E),j):P(E)}return di(E)&&a.length<8?(e.consume(E),a+=String.fromCharCode(E),z):P(E)}function B(E){return E===93?(e.consume(E),$):P(E)}function $(E){return E===62?(e.consume(E),j):E===45&&c===2?(e.consume(E),$):P(E)}function j(E){return E===null||Fn(E)?(e.exit("htmlFlowData"),N(E)):(e.consume(E),j)}function N(E){return e.exit("htmlFlow"),t(E)}}function dke(e,t,r){const i=this;return c;function c(a){return Fn(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):r(a)}function o(a){return i.parser.lazy[i.now().line]?r(a):t(a)}}function hke(e,t,r){return i;function i(c){return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),e.attempt(jp,t,r)}}const pke={name:"htmlText",tokenize:gke};function gke(e,t,r){const i=this;let c,o,a;return n;function n($){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume($),l}function l($){return $===33?(e.consume($),f):$===47?(e.consume($),_):$===63?(e.consume($),b):di($)?(e.consume($),T):r($)}function f($){return $===45?(e.consume($),s):$===91?(e.consume($),o=0,p):di($)?(e.consume($),g):r($)}function s($){return $===45?(e.consume($),h):r($)}function u($){return $===null?r($):$===45?(e.consume($),d):Fn($)?(a=u,A($)):(e.consume($),u)}function d($){return $===45?(e.consume($),h):u($)}function h($){return $===62?F($):$===45?d($):u($)}function p($){const j="CDATA[";return $===j.charCodeAt(o++)?(e.consume($),o===j.length?m:p):r($)}function m($){return $===null?r($):$===93?(e.consume($),y):Fn($)?(a=m,A($)):(e.consume($),m)}function y($){return $===93?(e.consume($),v):m($)}function v($){return $===62?F($):$===93?(e.consume($),v):m($)}function g($){return $===null||$===62?F($):Fn($)?(a=g,A($)):(e.consume($),g)}function b($){return $===null?r($):$===63?(e.consume($),x):Fn($)?(a=b,A($)):(e.consume($),b)}function x($){return $===62?F($):b($)}function _($){return di($)?(e.consume($),w):r($)}function w($){return $===45||La($)?(e.consume($),w):k($)}function k($){return Fn($)?(a=k,A($)):ar($)?(e.consume($),k):F($)}function T($){return $===45||La($)?(e.consume($),T):$===47||$===62||Ca($)?M($):r($)}function M($){return $===47?(e.consume($),F):$===58||$===95||di($)?(e.consume($),S):Fn($)?(a=M,A($)):ar($)?(e.consume($),M):F($)}function S($){return $===45||$===46||$===58||$===95||La($)?(e.consume($),S):C($)}function C($){return $===61?(e.consume($),P):Fn($)?(a=C,A($)):ar($)?(e.consume($),C):M($)}function P($){return $===null||$===60||$===61||$===62||$===96?r($):$===34||$===39?(e.consume($),c=$,D):Fn($)?(a=P,A($)):ar($)?(e.consume($),P):(e.consume($),O)}function D($){return $===c?(e.consume($),c=void 0,R):$===null?r($):Fn($)?(a=D,A($)):(e.consume($),D)}function O($){return $===null||$===34||$===39||$===60||$===61||$===96?r($):$===47||$===62||Ca($)?M($):(e.consume($),O)}function R($){return $===47||$===62||Ca($)?M($):r($)}function F($){return $===62?(e.consume($),e.exit("htmlTextData"),e.exit("htmlText"),t):r($)}function A($){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume($),e.exit("lineEnding"),z}function z($){return ar($)?vr(e,B,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):B($)}function B($){return e.enter("htmlTextData"),a($)}}const Ix={name:"labelEnd",tokenize:wke,resolveTo:xke,resolveAll:bke},mke={tokenize:_ke},vke={tokenize:Tke},yke={tokenize:kke};function bke(e){let t=-1;for(;++t=3&&(f===null||Fn(f))?(e.exit("thematicBreak"),t(f)):r(f)}function l(f){return f===c?(e.consume(f),i++,l):(e.exit("thematicBreakSequence"),ar(f)?vr(e,n,"whitespace")(f):n(f))}}const ka={name:"list",tokenize:Rke,continuation:{tokenize:Lke},exit:Fke},Dke={tokenize:Nke,partial:!0},Eke={tokenize:Ike,partial:!0};function Rke(e,t,r){const i=this,c=i.events[i.events.length-1];let o=c&&c[1].type==="linePrefix"?c[2].sliceSerialize(c[1],!0).length:0,a=0;return n;function n(h){const p=i.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!i.containerState.marker||h===i.containerState.marker:uy(h)){if(i.containerState.type||(i.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Pf,r,f)(h):f(h);if(!i.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return r(h)}function l(h){return uy(h)&&++a<10?(e.consume(h),l):(!i.interrupt||a<2)&&(i.containerState.marker?h===i.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),f(h)):r(h)}function f(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||h,e.check(jp,i.interrupt?r:s,e.attempt(Dke,d,u))}function s(h){return i.containerState.initialBlankLine=!0,o++,d(h)}function u(h){return ar(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),d):r(h)}function d(h){return i.containerState.size=o+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function Lke(e,t,r){const i=this;return i.containerState._closeFlow=void 0,e.check(jp,c,o);function c(n){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,vr(e,t,"listItemIndent",i.containerState.size+1)(n)}function o(n){return i.containerState.furtherBlankLines||!ar(n)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,a(n)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(Eke,t,a)(n))}function a(n){return i.containerState._closeFlow=!0,i.interrupt=void 0,vr(e,e.attempt(ka,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(n)}}function Ike(e,t,r){const i=this;return vr(e,c,"listItemIndent",i.containerState.size+1);function c(o){const a=i.events[i.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===i.containerState.size?t(o):r(o)}}function Fke(e){e.exit(this.containerState.type)}function Nke(e,t,r){const i=this;return vr(e,c,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function c(o){const a=i.events[i.events.length-1];return!ar(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):r(o)}}const C5={name:"setextUnderline",tokenize:$ke,resolveTo:jke};function jke(e,t){let r=e.length,i,c,o;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(c=r)}else e[r][1].type==="content"&&e.splice(r,1),!o&&e[r][1].type==="definition"&&(o=r);const a={type:"setextHeading",start:Object.assign({},e[c][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[c][1].type="setextHeadingText",o?(e.splice(c,0,["enter",a,t]),e.splice(o+1,0,["exit",e[i][1],t]),e[i][1].end=Object.assign({},e[o][1].end)):e[i][1]=a,e.push(["exit",a,t]),e}function $ke(e,t,r){const i=this;let c;return o;function o(f){let s=i.events.length,u;for(;s--;)if(i.events[s][1].type!=="lineEnding"&&i.events[s][1].type!=="linePrefix"&&i.events[s][1].type!=="content"){u=i.events[s][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||u)?(e.enter("setextHeadingLine"),c=f,a(f)):r(f)}function a(f){return e.enter("setextHeadingLineSequence"),n(f)}function n(f){return f===c?(e.consume(f),n):(e.exit("setextHeadingLineSequence"),ar(f)?vr(e,l,"lineSuffix")(f):l(f))}function l(f){return f===null||Fn(f)?(e.exit("setextHeadingLine"),t(f)):r(f)}}const Bke={tokenize:zke};function zke(e){const t=this,r=e.attempt(jp,i,e.attempt(this.parser.constructs.flowInitial,c,vr(e,e.attempt(this.parser.constructs.flow,c,e.attempt(VTe,c)),"linePrefix")));return r;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function c(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const qke={resolveAll:SP()},Wke=MP("string"),Uke=MP("text");function MP(e){return{tokenize:t,resolveAll:SP(e==="text"?Hke:void 0)};function t(r){const i=this,c=this.parser.constructs[e],o=r.attempt(c,a,n);return a;function a(s){return f(s)?o(s):n(s)}function n(s){if(s===null){r.consume(s);return}return r.enter("data"),r.consume(s),l}function l(s){return f(s)?(r.exit("data"),o(s)):(r.consume(s),l)}function f(s){if(s===null)return!0;const u=c[s];let d=-1;if(u)for(;++d-1){const n=a[0];typeof n=="string"?a[0]=n.slice(i):a.shift()}o>0&&a.push(e[c].slice(0,o))}return a}function Gke(e,t){let r=-1;const i=[];let c;for(;++r0){var E=x.filter(function(G){var L=G.on;return L==="hover"}),W=E.reduce(function(G,L){return Tf({},G,L.style)},{});T(W)}g!==void 0&&g(a,N)},[g,a,x]),P=$e.useCallback(function(){if(x.length>0){var N=x.filter(function(W){var G=W.on;return G!=="hover"}),E=N.reduce(function(W,G){return Tf({},W,G.style)},{});T(E)}b!==void 0&&b(a,event)},[b,a,x]),D=OO({direction:n,justify:l,symbolSize:k.symbolSize||h,symbolSpacing:p,width:u,height:o}),O=D.symbolX,R=D.symbolY,F=D.labelX,A=D.labelY,z=D.labelAnchor,B=D.labelAlignment,$=[v,g,b].some(function(N){return N!==void 0}),j;return qu(d)?j=d:j=qge[d],et.createElement("g",{transform:"translate(".concat(r,",").concat(i,")"),style:{opacity:k.itemOpacity!==void 0?k.itemOpacity:c}},et.createElement("rect",{width:u,height:o,fill:k.itemBackground||s,style:{cursor:$?"pointer":"auto"},onClick:S,onMouseEnter:C,onMouseLeave:P}),et.createElement(j,{id:a.id,x:O,y:R,size:k.symbolSize||h,fill:a.fill||a.color,borderWidth:k.symbolBorderWidth!==void 0?k.symbolBorderWidth:m,borderColor:k.symbolBorderColor||y}),et.createElement("text",{textAnchor:z,style:Tf({},M.legends.text,{fill:k.itemTextColor||f,dominantBaseline:B,pointerEvents:"none",userSelect:"none"}),x:F,y:A},a.label))};Yi.displayName="LegendSvgItem";Yi.propTypes=Tf({data:kp.isRequired,x:oe.number.isRequired,y:oe.number.isRequired,width:oe.number.isRequired,height:oe.number.isRequired,textColor:oe.string,background:oe.string,opacity:oe.number,direction:oe.oneOf(["left-to-right","right-to-left","top-to-bottom","bottom-to-top"]).isRequired,justify:oe.bool.isRequired},_p,Tp);Yi.defaultProps={direction:"left-to-right",justify:!1,textColor:"black",background:"transparent",opacity:1,symbolShape:"square",symbolSize:16,symbolSpacing:8,symbolBorderWidth:0,symbolBorderColor:"transparent",effects:[]};function Wge(e){for(var t=1;tt}var rme=nme,ame=RO,ime=rme,ome=Yo;function lme(e){return e&&e.length?ame(e,ome,ime):void 0}var sme=lme;const IO=ir(sme);var ume=Math.ceil,cme=Math.max;function fme(e,t,r,i){for(var u=-1,o=cme(ume((t-e)/(r||1)),0),a=Array(o);o--;)a[i?o:++u]=e,e+=r;return a}var dme=fme,hme=dme,pme=X1,f0=H7;function gme(e){return function(t,r,i){return i&&typeof i!="number"&&pme(t,r,i)&&(r=i=void 0),t=f0(t),r===void 0?(r=t,t=0):r=f0(r),i=i===void 0?t=O0e){var f=t?null:S0e(e);if(f)return C0e(f);a=!1,u=M0e,l=new _0e}else l=t?[]:n;e:for(;++i-1}function pve(e,t){var r=this.__data__,i=Ap(r,e);return i<0?r.push([e,t]):r[i][1]=t,this}us.prototype.clear=cve;us.prototype.delete=fve;us.prototype.get=dve;us.prototype.has=hve;us.prototype.set=pve;function el(e){var t=-1,r=e?e.length:0;for(this.clear();++t11))throw new Error("Invalid size '".concat(t.size,"' for diverging color scheme '").concat(t.scheme,"', must be between 3~11"));var l=ko(kf[t.scheme][t.size||11]),f=function(h){return l(i(h))};return f.scale=l,f}if(eye(t.scheme)){if(t.size!==void 0&&(t.size<3||t.size>9))throw new Error("Invalid size '".concat(t.size,"' for sequential color scheme '").concat(t.scheme,"', must be between 3~9"));var s=ko(kf[t.scheme][t.size||9]),c=function(h){return s(i(h))};return c.scale=s,c}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return t}},tA=function(t,r){return $e.useMemo(function(){return eA(t,r)},[t,r])};function nye(e,t){return iye(e)||aye(e,t)||rye()}function rye(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function aye(e,t){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]"){var r=[],i=!0,u=!1,o=void 0;try{for(var a=e[Symbol.iterator](),n;!(i=(n=a.next()).done)&&(r.push(n.value),!(t&&r.length===t));i=!0);}catch(l){u=!0,o=l}finally{try{!i&&a.return!=null&&a.return()}finally{if(u)throw o}}return r}}function iye(e){if(Array.isArray(e))return e}var Mf=function(t,r){if(typeof t=="function")return function(d){return t(d)};if(ZO(t)){if(t.theme!==void 0){if(r===void 0)throw new Error("Unable to use color from theme as no theme was provided");var i=yd(r,t.theme);if(i===void 0)throw new Error("Color from theme is undefined at path: '".concat(t.theme,"'"));return function(){return i}}if(t.from!==void 0){var u=function(h){return yd(h,t.from)};if(Array.isArray(t.modifiers)){var o=[],a=!0,n=!1,l=void 0;try{for(var f=function(){var h=c.value,p=nye(h,2),m=p[0],y=p[1];if(m==="brighter")o.push(function(v){return v.brighter(y)});else if(m==="darker")o.push(function(v){return v.darker(y)});else if(m==="opacity")o.push(function(v){return v.opacity=y,v});else throw new Error("Invalid color modifier: '".concat(m,"', must be one of: 'brighter', 'darker', 'opacity'"))},s=t.modifiers[Symbol.iterator](),c;!(a=(c=s.next()).done);a=!0)f()}catch(d){n=!0,l=d}finally{try{!a&&s.return!=null&&s.return()}finally{if(n)throw l}}return o.length===0?u:function(d){return o.reduce(function(h,p){return p(h)},Do(u(d))).toString()}}return u}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return t}},bd=function(t,r){return $e.useMemo(function(){return Mf(t,r)},[t,r])},bx=oe.oneOfType([oe.func,oe.arrayOf(oe.string),oe.shape({scheme:oe.oneOf(tye).isRequired,size:oe.number}),oe.shape({datum:oe.string.isRequired}),oe.string]),oye=oe.oneOfType([oe.func,oe.string]),p0=oe.oneOfType([oe.string,oe.func,oe.shape({theme:oe.string.isRequired}),oe.shape({from:oe.string.isRequired,modifiers:oe.arrayOf(oe.array)})]),lye=RC,sye=vc;function uye(e,t){return e&&lye(e,t,sye)}var cye=uye,fye=Jl;function dye(e,t){return function(r,i){if(r==null)return r;if(!fye(r))return e(r,i);for(var u=r.length,o=t?u:-1,a=Object(r);(t?o--:++ou?0:u+t),r=r>u?u:r,r<0&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(u);++i1),o}),gxe(e,yxe(e),r),i&&(r=dxe(r,bxe|xxe|wxe,mxe));for(var u=t.length;u--;)hxe(r,t[u]);return r}),Txe=_xe;const sA=ir(Txe);var kxe=oe.shape({match:oe.oneOfType([oe.func,oe.object]).isRequired,type:oe.oneOf(["circle","rect","dot"]).isRequired,noteX:oe.oneOfType([oe.number,oe.shape({abs:oe.number.isRequired})]).isRequired,noteY:oe.oneOfType([oe.number,oe.shape({abs:oe.number.isRequired})]).isRequired,noteWidth:oe.number,noteTextOffset:oe.number,note:oe.oneOfType([oe.node,oe.func]).isRequired,offset:oe.number}),xd={noteWidth:120,noteTextOffset:8,animate:!0,motionStiffness:90,motionDamping:13};function Mxe(e){for(var t=1;t180?(_-=c,k-=c):k+=c,{points:[[y,v],[p,m],[k,T]],text:[_,w],angle:g+90}},uA=function(t){var r=t.items,i=t.annotations,u=t.getPosition,o=t.getDimensions;return $e.useMemo(function(){return Oxe({items:r,annotations:i,getPosition:u,getDimensions:o})},[r,i,u,o])},Dxe=function(t){var r=t.type,i=t.containerWidth,u=t.containerHeight,o=t.x,a=t.y,n=t.size,l=t.width,f=t.height,s=t.noteX,c=t.noteY,d=t.noteWidth,h=t.noteTextOffset;return $e.useMemo(function(){return Pxe({type:r,containerWidth:i,containerHeight:u,x:o,y:a,size:n,width:l,height:f,noteX:s,noteY:c,noteWidth:d,noteTextOffset:h})},[r,i,u,o,a,n,l,f,s,c,d,h])};function Exe(e){for(var t=1;t0&&et.createElement("text",{x:r,y:i,style:Exe({},o.annotations.text,{strokeLinejoin:"round",strokeWidth:o.annotations.text.outlineWidth*2,stroke:o.annotations.text.outlineColor})},u),et.createElement("text",{x:r,y:i,style:sA(o.annotations.text,["outlineWidth","outlineColor"])},u))});Qu.displayName="AnnotationNote";Qu.propTypes={datum:oe.object.isRequired,x:oe.number.isRequired,y:oe.number.isRequired,note:oe.oneOfType([oe.node,oe.func]).isRequired};Qu.defaultProps={};function Lxe(e){for(var t=1;t0&&et.createElement("circle",{cx:l.x,cy:l.y,r:l.size/2,style:NM({},u.annotations.outline,{fill:"none",strokeWidth:u.annotations.outline.strokeWidth+u.annotations.outline.outlineWidth*2,stroke:u.annotations.outline.outlineColor})}),et.createElement("circle",{cx:l.x,cy:l.y,r:l.size/2,style:u.annotations.outline}))}):et.createElement(et.Fragment,null,u.annotations.outline.outlineWidth>0&&et.createElement("circle",{cx:t,cy:r,r:i/2,style:NM({},u.annotations.outline,{fill:"none",strokeWidth:u.annotations.outline.strokeWidth+u.annotations.outline.outlineWidth*2,stroke:u.annotations.outline.outlineColor})}),et.createElement("circle",{cx:t,cy:r,r:i/2,style:u.annotations.outline}))});xx.displayName="CircleAnnotationOutline";xx.propTypes={x:oe.number.isRequired,y:oe.number.isRequired,size:oe.number.isRequired};function jM(e){for(var t=1;t0&&et.createElement("circle",{cx:l.x,cy:l.y,r:l.size/2,style:jM({},u.annotations.outline,{fill:"none",strokeWidth:u.annotations.outline.outlineWidth*2,stroke:u.annotations.outline.outlineColor})}),et.createElement("circle",{cx:l.x,cy:l.y,r:l.size/2,style:u.annotations.symbol}))}):et.createElement(et.Fragment,null,u.annotations.outline.outlineWidth>0&&et.createElement("circle",{cx:t,cy:r,r:i/2,style:jM({},u.annotations.outline,{fill:"none",strokeWidth:u.annotations.outline.outlineWidth*2,stroke:u.annotations.outline.outlineColor})}),et.createElement("circle",{cx:t,cy:r,r:i/2,style:u.annotations.symbol}))});Dp.displayName="DotAnnotationOutline";Dp.propTypes={x:oe.number.isRequired,y:oe.number.isRequired,size:oe.number.isRequired};Dp.defaultProps={size:4};function $M(e){for(var t=1;t0&&et.createElement("rect",{x:f.x,y:f.y,width:f.width,height:f.height,style:$M({},o.annotations.outline,{fill:"none",strokeWidth:o.annotations.outline.strokeWidth+o.annotations.outline.outlineWidth*2,stroke:o.annotations.outline.outlineColor})}),et.createElement("rect",{x:f.x,y:f.y,width:f.width,height:f.height,style:o.annotations.outline}))}):et.createElement(et.Fragment,null,o.annotations.outline.outlineWidth>0&&et.createElement("rect",{x:t-i/2,y:r-u/2,width:i,height:u,style:$M({},o.annotations.outline,{fill:"none",strokeWidth:o.annotations.outline.strokeWidth+o.annotations.outline.outlineWidth*2,stroke:o.annotations.outline.outlineColor})}),et.createElement("rect",{x:t-i/2,y:r-u/2,width:i,height:u,style:o.annotations.outline}))});wx.displayName="RectAnnotationOutline";wx.propTypes={x:oe.number.isRequired,y:oe.number.isRequired,width:oe.number.isRequired,height:oe.number.isRequired};var xc=$e.memo(function(e){var t=e.datum,r=e.type,i=e.containerWidth,u=e.containerHeight,o=e.x,a=e.y,n=e.size,l=e.width,f=e.height,s=e.noteX,c=e.noteY,d=e.noteWidth,h=e.noteTextOffset,p=e.note,m=Aa(),y=m.animate,v=m.springConfig,g=Dxe({type:r,containerWidth:i,containerHeight:u,x:o,y:a,size:n,width:l,height:f,noteX:s,noteY:c,noteWidth:d,noteTextOffset:h});return et.createElement(et.Fragment,null,et.createElement(ec,{points:g.points,isOutline:!0}),r==="circle"&&et.createElement(xx,{x:o,y:a,size:n}),r==="dot"&&et.createElement(Dp,{x:o,y:a,size:n}),r==="rect"&&et.createElement(wx,{x:o,y:a,width:l,height:f}),et.createElement(ec,{points:g.points}),!y&&et.createElement(Qu,{x:g.text[0],y:g.text[1],note:p}),y&&et.createElement(Ci,{style:{x:An(g.text[0],v),y:An(g.text[1],v)}},function(b){return et.createElement(Qu,{datum:t,x:b.x,y:b.y,note:p})}))});xc.displayName="Annotation";xc.propTypes={datum:oe.object.isRequired,type:oe.oneOf(["circle","rect","dot"]).isRequired,containerWidth:oe.number.isRequired,containerHeight:oe.number.isRequired,x:oe.number.isRequired,y:oe.number.isRequired,size:oe.number,width:oe.number,height:oe.number,noteX:oe.oneOfType([oe.number,oe.shape({abs:oe.number.isRequired})]).isRequired,noteY:oe.oneOfType([oe.number,oe.shape({abs:oe.number.isRequired})]).isRequired,noteWidth:oe.number.isRequired,noteTextOffset:oe.number.isRequired,note:oe.oneOfType([oe.node,oe.func]).isRequired};xc.defaultProps={noteWidth:xd.noteWidth,noteTextOffset:xd.noteTextOffset};var Ep=function(t,r,i,u){return Q1().rangeRound(i).domain(t.map(r)).padding(u)};function BM(e){return zxe(e)||Bxe(e)||$xe()}function $xe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Bxe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function zxe(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t0&&(l=0)),Eo().rangeRound(o).domain([l,n])},qxe=function(t){var r=t.data,i=t.getIndex,u=t.keys,o=t.minValue,a=t.maxValue,n=t.reverse,l=t.width,f=t.height,s=t.getColor,c=t.padding,d=c===void 0?0:c,h=t.innerPadding,p=h===void 0?0:h,m=Ep(r,i,[0,l],d),y=n?[0,f]:[f,0],v=cA(r,u,o,a,y),g=(m.bandwidth()-p*(u.length-1))/u.length,b=v(0),x=function(T){return T>0?v(T):b},_=function(T,M){return T>0?b-M:v(T)-b};n&&(x=function(T){return T<0?v(T):b},_=function(T,M){return T<0?b-M:v(T)-b});var w=[];return g>0&&u.forEach(function(k,T){FO(m.domain().length).forEach(function(M){var S=m(i(r[M]))+g*T+p*T,C=x(r[M][k]),P=_(r[M][k],C);if(g>0&&P>0){var D={id:k,value:r[M][k],index:M,indexValue:i(r[M]),data:r[M]};w.push({key:"".concat(k,".").concat(D.indexValue),data:D,x:S,y:C,width:g,height:P,color:s(D)})}})}),{xScale:m,yScale:v,bars:w}},Wxe=function(t){var r=t.data,i=t.getIndex,u=t.keys,o=t.minValue,a=t.maxValue,n=t.reverse,l=t.width,f=t.height,s=t.getColor,c=t.padding,d=c===void 0?0:c,h=t.innerPadding,p=h===void 0?0:h,m=n?[l,0]:[0,l],y=cA(r,u,o,a,m),v=Ep(r,i,[f,0],d),g=(v.bandwidth()-p*(u.length-1))/u.length,b=y(0),x=function(T){return T>0?b:y(T)},_=function(T,M){return T>0?y(T)-b:b-M};n&&(x=function(T){return T<0?b:y(T)},_=function(T,M){return T<0?y(T)-b:b-M});var w=[];return g>0&&u.forEach(function(k,T){FO(v.domain().length).forEach(function(M){var S=x(r[M][k]),C=v(i(r[M]))+g*T+p*T,P=_(r[M][k],S);if(P>0){var D={id:k,value:r[M][k],index:M,indexValue:i(r[M]),data:r[M]};w.push({key:"".concat(k,".").concat(D.indexValue),data:D,x:S,y:C,width:P,height:g,color:s(D)})}})}),{xScale:y,yScale:v,bars:w}},fA=function(t){return t.layout==="vertical"?qxe(t):Wxe(t)},dA=function(t,r,i,u){var o=kme(t,2),a=r;a==="auto"&&(a=LO(o));var n=i;return n==="auto"&&(n=IO(o)),Eo().rangeRound(u).domain([a,n])},Uxe=function(t){var r=t.data,i=t.getIndex,u=t.keys,o=t.minValue,a=t.maxValue,n=t.reverse,l=t.width,f=t.height,s=t.getColor,c=t.padding,d=c===void 0?0:c,h=t.innerPadding,p=h===void 0?0:h,m=q8().keys(u).offset(Mb)(r),y=Ep(r,i,[0,l],d),v=n?[0,f]:[f,0],g=dA(m,o,a,v),b=[],x=y.bandwidth(),_=function(T){return g(T[1])},w=function(T,M){return g(T[0])-M};return n&&(_=function(T){return g(T[0])},w=function(T,M){return g(T[1])-M}),x>0&&m.forEach(function(k){y.domain().forEach(function(T,M){var S=k[M],C=y(i(S.data)),P=_(S),D=w(S,P);if(p>0&&(P+=p*.5,D-=p),D>0){var O={id:k.key,value:S.data[k.key],index:M,indexValue:T,data:S.data};b.push({key:"".concat(k.key,".").concat(T),data:O,x:C,y:P,width:x,height:D,color:s(O)})}})}),{xScale:y,yScale:g,bars:b}},Hxe=function(t){var r=t.data,i=t.getIndex,u=t.keys,o=t.minValue,a=t.maxValue,n=t.reverse,l=t.width,f=t.height,s=t.getColor,c=t.padding,d=c===void 0?0:c,h=t.innerPadding,p=h===void 0?0:h,m=q8().keys(u).offset(Mb)(r),y=n?[l,0]:[0,l],v=dA(m,o,a,y),g=Ep(r,i,[f,0],d),b=[],x=g.bandwidth(),_=function(T){return v(T[0])},w=function(T,M){return v(T[1])-M};return n&&(_=function(T){return v(T[1])},w=function(T,M){return v(T[0])-M}),x>0&&m.forEach(function(k){g.domain().forEach(function(T,M){var S=k[M],C=g(i(S.data)),P={id:k.key,value:S.data[k.key],index:M,indexValue:T,data:S.data},D=_(S),O=w(S,D);p>0&&(D+=p*.5,O-=p),O>0&&b.push({key:"".concat(k.key,".").concat(T),data:P,x:D,y:C,width:O,height:x,color:s(P)})})}),{xScale:v,yScale:g,bars:b}},hA=function(t){return t.layout==="vertical"?Uxe(t):Hxe(t)},Vxe=function(t,r,i,u,o){var a=Ku(t.map(function(n){return{id:n.data.id,label:n.data.id,color:n.color,fill:n.data.fill}}),function(n){var l=n.id;return l});return(r==="vertical"&&u==="stacked"&&i==="column"&&o!==!0||r==="horizontal"&&u==="stacked"&&o===!0)&&a.reverse(),a},Yxe=function(t){return Ku(t.map(function(r){return{id:r.data.indexValue,label:r.data.indexValue,color:r.color,fill:r.data.fill}}),function(r){var i=r.id;return i})},Gxe=function(t){var r=t.from,i=t.bars,u=t.layout,o=t.direction,a=t.groupMode,n=t.reverse;return r==="indexes"?Yxe(i):Vxe(i,u,o,a,n)};function Vv(e){for(var t=1;t0&&ce0&&ye0&&(this.ctx.lineWidth=M.grid.line.strokeWidth,this.ctx.strokeStyle=M.grid.line.stroke,O&&Nl(this.ctx,{width:s,height:c,scale:B.xScale,axis:"x",values:R}),F&&Nl(this.ctx,{width:s,height:c,scale:B.yScale,axis:"y",values:A})),this.ctx.strokeStyle="#dddddd";var $=Ku(B.bars.map(function(N){return{id:N.data.id,label:N.data.id,color:N.color,fill:N.data.fill}}).reverse(),function(N){var E=N.id;return E}),j=Ku(B.bars.map(function(N){return{id:N.data.indexValue,label:N.data.indexValue,color:N.color,fill:N.data.fill}}),function(N){var E=N.id;return E});D.forEach(function(N){var E;if(N.dataFrom==="keys"?E=$:N.dataFrom==="indexes"&&(E=j),E===void 0)return null;hx(u.ctx,qM({},N,{data:E,containerWidth:s,containerHeight:c,itemTextColor:"#999",symbolSize:16,theme:M}))}),Gb(this.ctx,{xScale:B.xScale,yScale:B.yScale,width:s,height:c,top:_,right:w,bottom:k,left:T,theme:M}),B.bars.forEach(function(N){var E=N.x,W=N.y,G=N.color,L=N.width,q=N.height;u.ctx.fillStyle=G,C>0&&(u.ctx.strokeStyle=P(N),u.ctx.lineWidth=C),u.ctx.beginPath(),u.ctx.rect(E,W,L,q),u.ctx.fill(),C>0&&u.ctx.stroke()})}},{key:"render",value:function(){var i=this,u=this.props,o=u.outerWidth,a=u.outerHeight,n=u.pixelRatio,l=u.isInteractive,f=u.theme;return et.createElement(up,{isInteractive:l,theme:f,animate:!1},function(s){var c=s.showTooltip,d=s.hideTooltip;return et.createElement("canvas",{ref:function(p){i.surface=p},width:o*n,height:a*n,style:{width:o,height:a},onMouseEnter:i.handleMouseHover(c,d),onMouseMove:i.handleMouseHover(c,d),onMouseLeave:i.handleMouseLeave(d),onClick:i.handleClick})})}}]),t}($e.Component);bA.propTypes=gA;var h2e=Cb("BarCanvas")(mA(bA));function Zv(){return Zv=Object.assign||function(e){for(var t=1;t{const t=_y();return je.jsx(Kr,{sx:{maxWidth:200,height:50},children:je.jsx(p2e,{data:e.data[e.xField].map((r,i)=>({id:r,x:e.data[e.yField][i]})),theme:t,margin:{top:3,right:3,bottom:3,left:3},indexBy:"id",keys:["x"],colors:[e.color],axisTop:null,axisRight:null,enableGridX:!1,enableGridY:!1})})},m2e=g2e;var v2e=$O;function y2e(e){return e&&e.length?v2e(e):[]}var b2e=y2e;const HM=ir(b2e);var x2e=nA,w2e=Jl;function _2e(e,t){var r=-1,i=w2e(e)?Array(e.length):[];return x2e(e,function(u,o,a){i[++r]=t(u,o,a)}),i}var T2e=_2e;function k2e(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var M2e=k2e,VM=ts;function S2e(e,t){if(e!==t){var r=e!==void 0,i=e===null,u=e===e,o=VM(e),a=t!==void 0,n=t===null,l=t===t,f=VM(t);if(!n&&!f&&!o&&e>t||o&&a&&l&&!n&&!f||i&&a&&l||!r&&l||!u)return 1;if(!i&&!o&&!f&&e=n)return l;var f=r[i];return l*(f=="desc"?-1:1)}}return e.index-t.index}var P2e=A2e,g0=yh,D2e=hc,E2e=px,R2e=T2e,L2e=M2e,I2e=Ql,F2e=P2e,N2e=Yo,j2e=xa;function $2e(e,t,r){t.length?t=g0(t,function(o){return j2e(o)?function(a){return D2e(a,o.length===1?o[0]:o)}:o}):t=[N2e];var i=-1;t=g0(t,I2e(E2e));var u=R2e(e,function(o,a,n){var l=g0(t,function(f){return f(o)});return{criteria:l,index:++i,value:o}});return L2e(u,function(o,a){return F2e(o,a,r)})}var B2e=$2e,z2e=Fb,q2e=B2e,W2e=vh,YM=X1,U2e=W2e(function(e,t){if(e==null)return[];var r=t.length;return r>1&&YM(e,t[0],t[1])?t=[]:r>2&&YM(t[0],t[1],t[2])&&(t=[t[0]]),q2e(e,z2e(t,1),[])}),H2e=U2e;const V2e=ir(H2e);var Y2e=Ii,G2e=Na,X2e="[object Date]";function Z2e(e){return G2e(e)&&Y2e(e)==X2e}var K2e=Z2e,J2e=K2e,Q2e=Ql,GM=mh,XM=GM&&GM.isDate,ewe=XM?Q2e(XM):J2e,twe=ewe;const nwe=ir(twe);var rwe=function(t,r,i,u){var o=t.axis,a=t.min,n=a===void 0?0:a,l=t.max,f=l===void 0?"auto":l,s=t.stacked,c=s===void 0?!1:s,d=t.reverse,h=d===void 0?!1:d,p=r[o],m=o==="x"?i:u,y=n;n==="auto"&&(y=c===!0?p.minStacked:p.min);var v=f;f==="auto"&&(v=c===!0?p.maxStacked:p.max);var g=Eo().rangeRound(o==="x"?[0,m]:[m,0]);return h===!0?g.domain([v,y]):g.domain([y,v]),g.type="linear",g.stacked=c,g},awe={type:oe.oneOf(["linear"]).isRequired,min:oe.oneOfType([oe.oneOf(["auto"]),oe.number]),max:oe.oneOfType([oe.oneOf(["auto"]),oe.number]),stacked:oe.bool,reverse:oe.bool},iwe=function(t,r,i,u){var o=t.axis,a=t.base,n=a===void 0?10:a,l=t.min,f=l===void 0?"auto":l,s=t.max,c=s===void 0?"auto":s,d=r[o],h=o==="x"?i:u,p=d.all.some(function(x){return x===0}),m,y=!1;if(d.all.forEach(function(x){y!==!0&&(m===void 0?m=Math.sign(x):Math.sign(x)!==m&&(y=!0))}),p||y)throw new Error(["a log scale domain must be strictly-positive or strictly-negative,","and must not include or cross zero."].join(` +`));var v=f;f==="auto"&&(v=d.min);var g=c;c==="auto"&&(g=d.max);var b=u8().domain([v,g]).rangeRound(o==="x"?[0,h]:[h,0]).base(n).nice();return b.type="log",b},owe={type:oe.oneOf(["log"]).isRequired,base:oe.number,min:oe.oneOfType([oe.oneOf(["auto"]),oe.number]),max:oe.oneOfType([oe.oneOf(["auto"]),oe.number])},lwe=function(t,r,i,u){var o=t.axis,a=r[o],n=o==="x"?i:u,l=gne().range([0,n]).domain(a.all);return l.type="point",l},swe={type:oe.oneOf(["point"]).isRequired},wi;function po(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _x="millisecond",xA="second",wA="minute",_A="hour",TA="day",kA="month",MA="year",uwe=[_x,xA,wA,_A,TA,kA,MA],cl=[function(e){return e.setMilliseconds(0)},function(e){return e.setSeconds(0)},function(e){return e.setMinutes(0)},function(e){return e.setHours(0)},function(e){return e.setDate(1)},function(e){return e.setMonth(0)}],cwe=(wi={},po(wi,_x,[]),po(wi,xA,cl.slice(0,1)),po(wi,wA,cl.slice(0,2)),po(wi,_A,cl.slice(0,3)),po(wi,TA,cl.slice(0,4)),po(wi,kA,cl.slice(0,5)),po(wi,MA,cl.slice(0,6)),wi),fwe=function(t){return function(r){return cwe[t].forEach(function(i){i(r)}),r}},SA=function(t){var r=t.format,i=r===void 0?"native":r,u=t.precision,o=u===void 0?"millisecond":u,a=t.useUTC,n=a===void 0?!0:a,l=fwe(o);if(i==="native")return function(s){return l(s)};var f=n?p7(i):h7(i);return function(s){return l(f(s))}},dwe=function(t,r,i,u){var o=t.axis,a=t.format,n=a===void 0?"native":a,l=t.precision,f=l===void 0?_x:l,s=t.min,c=s===void 0?"auto":s,d=t.max,h=d===void 0?"auto":d,p=t.useUTC,m=p===void 0?!0:p,y=r[o],v=o==="x"?i:u,g=SA({format:n,precision:f,useUTC:m}),b=c;c==="auto"?b=y.min:n!=="native"&&(b=g(c));var x=h;h==="auto"?x=y.max:n!=="native"&&(x=g(h));var _=m?kae():Tae();return _.domain([b,x]).range([0,v]),_.type="time",_.useUTC=m,_},hwe={type:oe.oneOf(["time"]).isRequired,format:oe.string,precision:oe.oneOf(uwe)};function _d(e){return mwe(e)||gwe(e)||pwe()}function pwe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function gwe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function mwe(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t3&&arguments[3]!==void 0?arguments[3]:{},o=u.getValue,a=o===void 0?function(h){return h.data[r]}:o,n=u.setValue,l=n===void 0?function(h,p){h.data[r]=p}:n;if(i.type==="linear")t.forEach(function(h){h.data.forEach(function(p){l(p,a(p)===null?null:parseFloat(a(p)))})});else if(i.type==="time"&&i.format!=="native"){var f=SA(i);t.forEach(function(h){h.data.forEach(function(p){l(p,a(p)===null?null:f(a(p)))})})}var s=[];t.forEach(function(h){h.data.forEach(function(p){s.push(a(p))})});var c,d;return i.type==="linear"?(s=HM(s),s=V2e(s,function(h){return h}),c=Math.min.apply(Math,_d(s)),d=Math.max.apply(Math,_d(s))):i.type==="time"?(s=Ku(s,function(h){return h.getTime()}),s=s.slice(0).sort(function(h,p){return p-h}).reverse(),c=s[0],d=Mn(s)):(s=HM(s),c=s[0],d=Mn(s)),{all:s,min:c,max:d}},OA=function(t,r,i,u){var o=ywe(t),a=[];i[o].all.forEach(function(n){var l=nwe(n)?xwe:bwe,f=[];u.forEach(function(s){var c=s.data.find(function(m){return l(m.data[o],n)}),d=null,h=null;if(c!==void 0){if(d=c.data[t],d!==null){var p=Mn(f);p===void 0?h=d:p!==null&&(h=p+d)}c.data["".concat(t,"Stacked")]=h}f.push(h),a.push(h)})}),a=a.filter(function(n){return n!==null}),i[t].minStacked=Math.min.apply(Math,_d(a)),i[t].maxStacked=Math.max.apply(Math,_d(a))},_we=function(t,r,i){return OA("x",t,r,i)},Twe=function(t,r,i){return OA("y",t,r,i)},Td=oe.oneOfType([oe.shape(awe),oe.shape(swe),oe.shape(hwe),oe.shape(owe)]);const JM=Math.pow(2,-52),of=new Uint32Array(512);class kd{static from(t,r=Owe,i=Awe){const u=t.length,o=new Float64Array(u*2);for(let a=0;a>1;if(r>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const i=Math.max(2*r-5,0);this._triangles=new Uint32Array(i*3),this._halfedges=new Int32Array(i*3),this._hashSize=Math.ceil(Math.sqrt(r)),this._hullPrev=new Uint32Array(r),this._hullNext=new Uint32Array(r),this._hullTri=new Uint32Array(r),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(r),this._dists=new Float64Array(r),this.update()}update(){const{coords:t,_hullPrev:r,_hullNext:i,_hullTri:u,_hullHash:o}=this,a=t.length>>1;let n=1/0,l=1/0,f=-1/0,s=-1/0;for(let S=0;Sf&&(f=C),P>s&&(s=P),this._ids[S]=S}const c=(n+f)/2,d=(l+s)/2;let h=1/0,p,m,y;for(let S=0;S0&&(m=S,h=C)}let b=t[2*m],x=t[2*m+1],_=1/0;for(let S=0;SD&&(S[C++]=O,D=this._dists[O])}this.hull=S.subarray(0,C),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(lf(v,g,b,x,w,k)){const S=m,C=b,P=x;m=y,b=w,x=k,y=S,w=C,k=P}const T=Cwe(v,g,b,x,w,k);this._cx=T.x,this._cy=T.y;for(let S=0;S0&&Math.abs(O-C)<=JM&&Math.abs(R-P)<=JM||(C=O,P=R,D===p||D===m||D===y))continue;let F=0;for(let j=0,N=this._hashKey(O,R);j0?3-r:1+r)/4}function m0(e,t,r,i){const u=e-r,o=t-i;return u*u+o*o}function v0(e,t,r,i,u,o){const a=(i-t)*(u-e),n=(r-e)*(o-t);return Math.abs(a-n)>=33306690738754716e-32*Math.abs(a+n)?a-n:0}function lf(e,t,r,i,u,o){return(v0(u,o,e,t,r,i)||v0(e,t,r,i,u,o)||v0(r,i,u,o,e,t))<0}function Mwe(e,t,r,i,u,o,a,n){const l=e-a,f=t-n,s=r-a,c=i-n,d=u-a,h=o-n,p=l*l+f*f,m=s*s+c*c,y=d*d+h*h;return l*(c*y-m*h)-f*(s*y-m*d)+p*(s*h-c*d)<0}function Swe(e,t,r,i,u,o){const a=r-e,n=i-t,l=u-e,f=o-t,s=a*a+n*n,c=l*l+f*f,d=.5/(a*f-n*l),h=(f*s-n*c)*d,p=(a*c-l*s)*d;return h*h+p*p}function Cwe(e,t,r,i,u,o){const a=r-e,n=i-t,l=u-e,f=o-t,s=a*a+n*n,c=l*l+f*f,d=.5/(a*f-n*l),h=e+(f*s-n*c)*d,p=t+(a*c-l*s)*d;return{x:h,y:p}}function gl(e,t,r,i){if(i-r<=20)for(let u=r+1;u<=i;u++){const o=e[u],a=t[o];let n=u-1;for(;n>=r&&t[e[n]]>a;)e[n+1]=e[n--];e[n+1]=o}else{const u=r+i>>1;let o=r+1,a=i;vu(e,u,o),t[e[r]]>t[e[i]]&&vu(e,r,i),t[e[o]]>t[e[i]]&&vu(e,o,i),t[e[r]]>t[e[o]]&&vu(e,r,o);const n=e[o],l=t[n];for(;;){do o++;while(t[e[o]]l);if(a=a-r?(gl(e,t,o,i),gl(e,t,r,a-1)):(gl(e,t,r,a-1),gl(e,t,o,i))}}function vu(e,t,r){const i=e[t];e[t]=e[r],e[r]=i}function Owe(e){return e[0]}function Awe(e){return e[1]}const QM=1e-6;class Co{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,r){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,r){this._+=`L${this._x1=+t},${this._y1=+r}`}arc(t,r,i){t=+t,r=+r,i=+i;const u=t+i,o=r;if(i<0)throw new Error("negative radius");this._x1===null?this._+=`M${u},${o}`:(Math.abs(this._x1-u)>QM||Math.abs(this._y1-o)>QM)&&(this._+="L"+u+","+o),i&&(this._+=`A${i},${i},0,1,1,${t-i},${r}A${i},${i},0,1,1,${this._x1=u},${this._y1=o}`)}rect(t,r,i,u){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${+i}v${+u}h${-i}Z`}value(){return this._||null}}class Kv{constructor(){this._=[]}moveTo(t,r){this._.push([t,r])}closePath(){this._.push(this._[0].slice())}lineTo(t,r){this._.push([t,r])}value(){return this._.length?this._:null}}let Pwe=class{constructor(t,[r,i,u,o]=[0,0,960,500]){if(!((u=+u)>=(r=+r))||!((o=+o)>=(i=+i)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=u,this.xmin=r,this.ymax=o,this.ymin=i,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:r,triangles:i},vectors:u}=this,o=this.circumcenters=this._circumcenters.subarray(0,i.length/3*2);for(let h=0,p=0,m=i.length,y,v;h1;)o-=2;for(let a=2;a4)for(let a=0;a0){if(r>=this.ymax)return null;(a=(this.ymax-r)/u)0){if(t>=this.xmax)return null;(a=(this.xmax-t)/i)this.xmax?2:0)|(rthis.ymax?8:0)}};const Dwe=2*Math.PI,fl=Math.pow;function Ewe(e){return e[0]}function Rwe(e){return e[1]}function Lwe(e){const{triangles:t,coords:r}=e;for(let i=0;i1e-10)return!1}return!0}function Iwe(e,t,r){return[e+Math.sin(e+t)*r,t+Math.cos(e-t)*r]}class Rp{static from(t,r=Ewe,i=Rwe,u){return new Rp("length"in t?Fwe(t,r,i,u):Float64Array.from(Nwe(t,r,i,u)))}constructor(t){this._delaunator=new kd(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,r=this.points;if(t.hull&&t.hull.length>2&&Lwe(t)){this.collinear=Int32Array.from({length:r.length/2},(d,h)=>h).sort((d,h)=>r[2*d]-r[2*h]||r[2*d+1]-r[2*h+1]);const l=this.collinear[0],f=this.collinear[this.collinear.length-1],s=[r[2*l],r[2*l+1],r[2*f],r[2*f+1]],c=1e-8*Math.hypot(s[3]-s[1],s[2]-s[0]);for(let d=0,h=r.length/2;d0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=u[0],this.triangles[1]=u[1],this.triangles[2]=u[1],a[u[0]]=1,u.length===2&&(a[u[1]]=0))}voronoi(t){return new Pwe(this,t)}*neighbors(t){const{inedges:r,hull:i,_hullIndex:u,halfedges:o,triangles:a,collinear:n}=this;if(n){const c=n.indexOf(t);c>0&&(yield n[c-1]),c=0&&o!==i&&o!==u;)i=o;return o}_step(t,r,i){const{inedges:u,hull:o,_hullIndex:a,halfedges:n,triangles:l,points:f}=this;if(u[t]===-1||!f.length)return(t+1)%(f.length>>1);let s=t,c=fl(r-f[t*2],2)+fl(i-f[t*2+1],2);const d=u[t];let h=d;do{let p=l[h];const m=fl(r-f[p*2],2)+fl(i-f[p*2+1],2);if(m0&&(de.lineWidth=H.grid.line.strokeWidth,de.strokeStyle=H.grid.line.stroke,k&&Nl(de,{width:W,height:G,scale:re,axis:"x",values:T}),M&&Nl(de,{width:W,height:G,scale:ie,axis:"y",values:S})),xe==="axes"&&Gb(de,{xScale:re,yScale:ie,width:W,height:G,top:C,right:P,bottom:D,left:O,theme:H}),xe==="areas"&&m===!0&&(de.save(),de.globalAlpha=v,Z.context(de),X.forEach(function(ge){de.fillStyle=ge.color,de.beginPath(),Z(ge.data.map(function(be){return be.position})),de.fill()}),de.restore()),xe==="lines"&&(Y.context(de),X.forEach(function(ge){de.strokeStyle=ge.color,de.lineWidth=p,de.beginPath(),Y(ge.data.map(function(be){return be.position})),de.stroke()})),xe==="points"&&g===!0&&b>0&&le.forEach(function(ge){de.fillStyle=ge.color,de.beginPath(),de.arc(ge.x,ge.y,b/2,0,2*Math.PI),de.fill(),_>0&&(de.strokeStyle=ge.borderColor,de.lineWidth=_,de.stroke())}),xe==="mesh"&&A===!0&&(PA(de,Te),ee&&DA(de,Te,ee.index)),xe==="legends"){var ue=X.map(function(ge){return{id:ge.id,label:ge.id,color:ge.color}}).reverse();R.forEach(function(ge){hx(de,w_e({},ge,{data:ge.data||ue,containerWidth:W,containerHeight:G,theme:H}))})}})},[j,L,q,d,H,Y,X,re,ie,k,T,M,S,C,P,D,O,R,le,g,b,ee]);var Se=$e.useCallback(function(de){var xe=Zu(j.current,de),ue=a5(xe,2),ge=ue[0],be=ue[1];if(!qb(E.left,E.top,W,G,ge,be))return null;var we=pe.find(ge-E.left,be-E.top);return le[we]},[j,E,W,G,pe]),Oe=Vl(),Me=Oe.showTooltipFromEvent,ce=Oe.hideTooltip,ye=$e.useCallback(function(de){var xe=Se(de);U(xe),xe?Me(et.createElement($,{point:xe}),de):ce()},[Se,U,Me,ce,$]),J=$e.useCallback(function(de){ce(),U(null),ee&&z&&z(ee,de)},[ce,U,z]),ne=$e.useCallback(function(de){if(B){var xe=Se(de);xe&&B(xe,de)}},[Se,B]);return et.createElement("canvas",{ref:j,width:L*o,height:q*o,style:{width:L,height:q,cursor:F?"auto":"normal"},onMouseEnter:F?ye:void 0,onMouseMove:F?ye:void 0,onMouseLeave:F?J:void 0,onClick:F?ne:void 0})};Sx.propTypes=Zwe;Sx.defaultProps=Kwe;var S_e=pp(Sx);function ey(){return ey=Object.assign||function(e){for(var t=1;t{const t=_y();return je.jsx(Kr,{sx:{maxWidth:200,height:50},children:je.jsx(C_e,{data:[{id:"1",data:e.data[e.xField].map((r,i)=>({x:r,y:e.data[e.yField][i]}))}],theme:t,margin:{top:0,right:0,bottom:0,left:0},xScale:{type:"linear",min:0,max:25},axisTop:null,colors:[e.color],axisRight:null,enableGridX:!1,enableGridY:!1})})},A_e=O_e;function P_e(e){for(var t=1;t{const t=_y();return je.jsx(Kr,{sx:{maxWidth:200,height:50},children:je.jsx(e3e,{data:[{id:"1",data:e.data[e.xField].map((r,i)=>({x:r,y:e.data[e.yField][i]}))}],theme:t,margin:{top:3,right:3,bottom:3,left:3},xScale:{type:"linear",min:0,max:1e3},nodeSize:4,colors:[e.color],useMesh:!1,axisTop:null,axisRight:null,enableGridX:!1,enableGridY:!1})})},o3e=i3e,l3e=new Map([["line",(e,t)=>t[e.field]?je.jsx(A_e,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):je.jsx("div",{})],["scatter",(e,t)=>t[e.field]?je.jsx(o3e,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):je.jsx("div",{})],["histogram",(e,t)=>t[e.field]?je.jsx(m2e,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):je.jsx("div",{})]]),l5=e=>e.map(t=>({def:t,gen:l3e.get(t.type??"string")})).map(({def:t,gen:r})=>r?{...t,type:void 0,render:i=>r(t,i)}:{...t,sorting:!0,defaultSort:t.sort,type:"string"}),s3e=e=>{const[t,r]=$e.useState({open:!1,anchorEl:void 0});return je.jsxs(Kr,{sx:{width:50},onClick:i=>r(u=>({open:!u.open,anchorEl:i.currentTarget})),children:[je.jsx(nE,{}),je.jsx(iS,{open:t.open,anchorEl:t.anchorEl,anchorOrigin:{horizontal:"left",vertical:"bottom"},children:je.jsx(Cr,{p:1,children:e.longText})})]})},u3e=e=>{const{columns:t,data:r}=e,i={search:!0,showTitle:!1,pageSize:e.rowsPerPage??5,detailPanelColumnStyle:{minWidth:42},emptyRowsWhenPaging:!1};return je.jsx(et.Fragment,{children:je.jsx(BY,{columns:e.showInfoColumn??!1?[...l5(t),{title:"Info",render:u=>{var o,a,n;return je.jsx(et.Fragment,{children:(o=u.details)!=null&&o.insights?je.jsx(s3e,{longText:`${(a=u.details)==null?void 0:a.insights[0].title}: ${(n=u.details)==null?void 0:n.insights[0].text}`}):je.jsx("div",{})})},width:50}]:[...l5(t)],data:r,detailPanel:({rowData:u})=>u.graphId?je.jsx(UY,{graphId:u.graphId,widgetSize:e.widgetSize}):u.details?je.jsx(A1,{details:u.details,widgetSize:e.widgetSize}):null,options:i})})},s5=e=>je.jsxs("div",{children:[je.jsx(Cr,{align:"center",fontWeight:500,sx:{fontSize:36},children:e.value}),je.jsx(Cr,{align:"center",variant:"h5",fontWeight:500,children:e.label})]}),c3e=e=>je.jsx(et.Fragment,{children:e.counters.length===1?je.jsx(s5,{...e.counters[0]}):je.jsx(Jn,{container:!0,spacing:1,direction:"row",alignItems:"center",children:e.counters.map(t=>je.jsx(Jn,{item:!0,xs:!0,component:Kr,height:"100%",children:je.jsx(Kr,{children:je.jsx(s5,{...t})})},t.label+t.value))})}),f3e=e=>je.jsxs("div",{children:[je.jsxs(Kr,{display:"flex",alignItems:"center",children:[je.jsx(Kr,{width:"100%",mr:1,children:je.jsx(rE,{variant:"determinate",value:e.value/e.maxValue*100})}),je.jsx(Kr,{minWidth:35,children:je.jsx(Cr,{variant:"body2",color:"textSecondary",children:`${Math.round(e.value/e.maxValue*100)}%`})})]}),je.jsx(Kr,{width:"100%",children:je.jsx(Cr,{variant:"body2",color:"textSecondary",children:e.details??""})})]}),d3e=e=>{var o,a,n,l;const[t,r]=$e.useState(!1),u=fS()==="dark"?{template:{...ml,layout:{...ml.layout,colorway:((n=(a=(o=e.graph)==null?void 0:o.layout.template)==null?void 0:a.layout)==null?void 0:n.colorway)||((l=ml.layout)==null?void 0:l.colorway)}}}:void 0;return je.jsx(et.Fragment,{children:je.jsxs(Jn,{container:!0,spacing:2,justifyContent:"center",alignItems:"center",children:[je.jsxs(Jn,{item:!0,xs:2,children:[je.jsx(Cr,{variant:"h5",children:e.header}),je.jsx(Cr,{variant:"subtitle1",children:e.description})]}),je.jsx(Jn,{item:!0,xs:e.graph===void 0?10:5,children:je.jsxs(oS,{children:[je.jsx(lS,{children:je.jsxs(Rf,{children:[je.jsx(Vi,{}),e.metricsValuesHeaders.map(f=>je.jsx(Vi,{children:f}))]})}),je.jsx(sS,{children:e.metrics.map(f=>je.jsxs(Rf,{children:[je.jsx(Vi,{children:f.label}),f.values.map(s=>je.jsx(Vi,{children:s}))]}))})]})}),e.graph===void 0?je.jsx(je.Fragment,{}):je.jsx(Jn,{item:!0,xs:5,children:je.jsx(pS,{data:e.graph.data,layout:{...e.graph.layout,...u,title:void 0},config:{responsive:!0},style:{width:"100%",minHeight:150+100*(1+e.widgetSize/2),maxHeight:250}})}),e.details===void 0||e.details.parts.length===0?je.jsx(je.Fragment,{}):je.jsxs(je.Fragment,{children:[je.jsx(Jn,{item:!0,xs:12,children:je.jsx(hi,{variant:"outlined",startIcon:t?je.jsx(aE,{}):je.jsx(iE,{}),onClick:()=>r(f=>!f),children:"Details"})}),je.jsx(Jn,{item:!0,xs:12,children:je.jsx(xy,{in:t,mountOnEnter:!0,unmountOnExit:!0,children:je.jsx(A1,{details:e.details,widgetSize:e.widgetSize})})})]})]})})},h3e=e=>je.jsx(O1,{tabs:e.graphs.map(t=>({title:t.title,tab:je.jsx(Pd,{widgetSize:e.widgetSize,data:t.graph.data,layout:t.graph.layout})}))}),p3e=e=>je.jsx(O1,{tabs:e.tabs.map(t=>({title:t.title,tab:Tc(`${e.id}1`,t.widget)}))}),g3e=e=>je.jsx(oE,{children:je.jsxs(oS,{sx:{minWidth:650},size:"small","aria-label":"a dense table",children:[je.jsx(lS,{children:je.jsxs(Rf,{children:[je.jsx(Vi,{children:e.header[0]},-1),e.header.slice(1).map(t=>je.jsx(Vi,{align:"right",children:t},t))]})}),je.jsx(sS,{children:e.data.map(t=>je.jsxs(Rf,{children:[je.jsx(Vi,{component:"th",scope:"row",children:t[0]},-1),t.slice(1).map(r=>je.jsx(Vi,{align:"right",children:r},r))]},t[0]))})]})});function m3e(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const v3e=/[ \t\n\f\r]/g;function y3e(e){return typeof e=="object"?e.type==="text"?u5(e.value):!1:u5(e)}function u5(e){return e.replace(v3e,"")===""}class wc{constructor(t,r,i){this.property=t,this.normal=r,i&&(this.space=i)}}wc.prototype.property={};wc.prototype.normal={};wc.prototype.space=null;function nP(e,t){const r={},i={};let u=-1;for(;++u4&&r.slice(0,4)==="data"&&T3e.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(f5,C3e);i="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!f5.test(o)){let a=o.replace(k3e,S3e);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}u=Ax}return new u(i,t)}function S3e(e){return"-"+e.toLowerCase()}function C3e(e){return e.charAt(1).toUpperCase()}const O3e={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},A3e=nP([iP,aP,sP,uP,w3e],"html"),cP=nP([iP,aP,sP,uP,_3e],"svg");function P3e(e){return e.join(" ").trim()}var Px={exports:{}},d5=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,D3e=/\n/g,E3e=/^\s*/,R3e=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,L3e=/^:\s*/,I3e=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,F3e=/^[;\s]*/,N3e=/^\s+|\s+$/g,j3e=` +`,h5="/",p5="*",wo="",$3e="comment",B3e="declaration",z3e=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,i=1;function u(p){var m=p.match(D3e);m&&(r+=m.length);var y=p.lastIndexOf(j3e);i=~y?p.length-y:i+p.length}function o(){var p={line:r,column:i};return function(m){return m.position=new a(p),f(),m}}function a(p){this.start=p,this.end={line:r,column:i},this.source=t.source}a.prototype.content=e;function n(p){var m=new Error(t.source+":"+r+":"+i+": "+p);if(m.reason=p,m.filename=t.source,m.line=r,m.column=i,m.source=e,!t.silent)throw m}function l(p){var m=p.exec(e);if(m){var y=m[0];return u(y),e=e.slice(y.length),m}}function f(){l(E3e)}function s(p){var m;for(p=p||[];m=c();)m!==!1&&p.push(m);return p}function c(){var p=o();if(!(h5!=e.charAt(0)||p5!=e.charAt(1))){for(var m=2;wo!=e.charAt(m)&&(p5!=e.charAt(m)||h5!=e.charAt(m+1));)++m;if(m+=2,wo===e.charAt(m-1))return n("End of comment missing");var y=e.slice(2,m-2);return i+=2,u(y),e=e.slice(m),i+=2,p({type:$3e,comment:y})}}function d(){var p=o(),m=l(R3e);if(m){if(c(),!l(L3e))return n("property missing ':'");var y=l(I3e),v=p({type:B3e,property:g5(m[0].replace(d5,wo)),value:y?g5(y[0].replace(d5,wo)):wo});return l(F3e),v}}function h(){var p=[];s(p);for(var m;m=d();)m!==!1&&(p.push(m),s(p));return p}return f(),h()};function g5(e){return e?e.replace(N3e,wo):wo}var q3e=z3e;function fP(e,t){var r=null;if(!e||typeof e!="string")return r;for(var i,u=q3e(e),o=typeof t=="function",a,n,l=0,f=u.length;l0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function H3e(e){const t=Dx(e),r=dP(e);if(t&&r)return{start:t,end:r}}function Ou(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?m5(e.position):"start"in e||"end"in e?m5(e):"line"in e||"column"in e?ly(e):""}function ly(e){return v5(e&&e.line)+":"+v5(e&&e.column)}function m5(e){return ly(e&&e.start)+"-"+ly(e&&e.end)}function v5(e){return e&&typeof e=="number"?e:1}class wa extends Error{constructor(t,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let u="",o={},a=!1;if(r&&("line"in r&&"column"in r?o={place:r}:"start"in r&&"end"in r?o={place:r}:"type"in r?o={ancestors:[r],place:r.position}:o={...r}),typeof t=="string"?u=t:!o.cause&&t&&(a=!0,u=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof i=="string"){const l=i.indexOf(":");l===-1?o.ruleId=i:(o.source=i.slice(0,l),o.ruleId=i.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const n=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=n?n.column:void 0,this.fatal=void 0,this.file,this.message=u,this.line=n?n.line:void 0,this.name=Ou(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}wa.prototype.file="";wa.prototype.name="";wa.prototype.reason="";wa.prototype.message="";wa.prototype.stack="";wa.prototype.column=void 0;wa.prototype.line=void 0;wa.prototype.ancestors=void 0;wa.prototype.cause=void 0;wa.prototype.fatal=void 0;wa.prototype.place=void 0;wa.prototype.ruleId=void 0;wa.prototype.source=void 0;const Ex={}.hasOwnProperty,V3e=new Map,Y3e=/[A-Z]/g,G3e=/-([a-z])/g,X3e=new Set(["table","tbody","thead","tfoot","tr"]),Z3e=new Set(["td","th"]);function K3e(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=Q3e(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=J3e(r,t.jsx,t.jsxs)}const u={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?cP:A3e,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=pP(u,e,void 0);return o&&typeof o!="string"?o:u.create(e,u.Fragment,{children:o||void 0},void 0)}function pP(e,t,r){if(t.type==="element"||t.type==="root"){const i=e.schema;let u=i;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(u=cP,e.schema=u),e.ancestors.push(t);let o=eTe(e,t);const a=tTe(e,e.ancestors);let n=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(o&&X3e.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!y3e(l):!0})),Ex.call(e.components,t.tagName)){const l=t.tagName;n=e.components[l],typeof n!="string"&&n!==e.Fragment&&e.passNode&&(a.node=t)}else n=t.tagName;if(o.length>0){const l=o.length>1?o:o[0];l&&(a.children=l)}return e.schema=i,e.create(t,n,a,r)}if(t.type==="text")return t.value}function J3e(e,t,r){return i;function i(u,o,a,n){const f=Array.isArray(a.children)?r:t;return n?f(o,a,n):f(o,a)}}function Q3e(e,t){return r;function r(i,u,o,a){const n=Array.isArray(o.children),l=Dx(i);return t(u,o,a,n,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function eTe(e,t){const r=[];let i=-1;const u=e.passKeys?new Map:V3e;for(;++i-1&&e.test(String.fromCharCode(r))}}const hTe={'"':"quot","&":"amp","<":"lt",">":"gt"};function pTe(e){return e.replace(/["&<>]/g,t);function t(r){return"&"+hTe[r]+";"}}function gTe(e,t){const r=pTe(nl(e||""));if(!t)return r;const i=r.indexOf(":"),u=r.indexOf("?"),o=r.indexOf("#"),a=r.indexOf("/");return i<0||a>-1&&i>a||u>-1&&i>u||o>-1&&i>o||t.test(r.slice(0,i))?r:""}function nl(e){const t=[];let r=-1,i=0,u=0;for(;++r55295&&o<57344){const n=e.charCodeAt(r+1);o<56320&&n>56319&&n<57344?(a=String.fromCharCode(o,n),u=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(i,r),encodeURIComponent(a)),i=r+u+1,a=""),u&&(r+=u,u=0)}return t.join("")+e.slice(i)}const mTe={};function vTe(e,t){const r=mTe,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,u=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return mP(e,i,u)}function mP(e,t,r){if(yTe(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return y5(e.children,t,r)}return Array.isArray(e)?y5(e,t,r):""}function y5(e,t,r){const i=[];let u=-1;for(;++uu?0:u+t:t=t>u?u:t,r=r>0?r:0,i.length<1e4)a=Array.from(i),a.unshift(t,r),e.splice(...a);else for(r&&e.splice(t,r);o0?(gi(e,e.length,0,t),e):t}const x5={}.hasOwnProperty;function bTe(e){const t={};let r=-1;for(;++r13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCharCode(r)}function wl(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function vr(e,t,r,i){const u=i?i-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return ar(l)?(e.enter(r),n(l)):t(l)}function n(l){return ar(l)&&o++a))return;const k=t.events.length;let T=k,M,S;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){if(M){S=t.events[T][1].end;break}M=!0}for(v(i),w=k;wb;){const _=r[x];t.containerState=_[1],_[0].exit.call(t,e)}r.length=b}function g(){u.write([null]),o=void 0,u=void 0,t.containerState._closeFlow=void 0}}function STe(e,t,r){return vr(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function _5(e){if(e===null||Ca(e)||dTe(e))return 1;if(fTe(e))return 2}function Lx(e,t,r){const i=[];let u=-1;for(;++u1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const c=Object.assign({},e[i][1].end),d=Object.assign({},e[r][1].start);T5(c,-l),T5(d,l),a={type:l>1?"strongSequence":"emphasisSequence",start:c,end:Object.assign({},e[i][1].end)},n={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[r][1].start),end:d},o={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[i][1].end),end:Object.assign({},e[r][1].start)},u={type:l>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},n.end)},e[i][1].end=Object.assign({},a.start),e[r][1].start=Object.assign({},n.end),f=[],e[i][1].end.offset-e[i][1].start.offset&&(f=qa(f,[["enter",e[i][1],t],["exit",e[i][1],t]])),f=qa(f,[["enter",u,t],["enter",a,t],["exit",a,t],["enter",o,t]]),f=qa(f,Lx(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),f=qa(f,[["exit",o,t],["enter",n,t],["exit",n,t],["exit",u,t]]),e[r][1].end.offset-e[r][1].start.offset?(s=2,f=qa(f,[["enter",e[r][1],t],["exit",e[r][1],t]])):s=0,gi(e,i-1,r-i+3,f),r=i+f.length-s-2;break}}for(r=-1;++r0&&ar(w)?vr(e,g,"linePrefix",o+1)(w):g(w)}function g(w){return w===null||Fn(w)?e.check(k5,m,x)(w):(e.enter("codeFlowValue"),b(w))}function b(w){return w===null||Fn(w)?(e.exit("codeFlowValue"),g(w)):(e.consume(w),b)}function x(w){return e.exit("codeFenced"),t(w)}function _(w,k,T){let M=0;return S;function S(R){return w.enter("lineEnding"),w.consume(R),w.exit("lineEnding"),C}function C(R){return w.enter("codeFencedFence"),ar(R)?vr(w,P,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):P(R)}function P(R){return R===n?(w.enter("codeFencedFenceSequence"),D(R)):T(R)}function D(R){return R===n?(M++,w.consume(R),D):M>=a?(w.exit("codeFencedFenceSequence"),ar(R)?vr(w,O,"whitespace")(R):O(R)):T(R)}function O(R){return R===null||Fn(R)?(w.exit("codeFencedFence"),k(R)):T(R)}}}function jTe(e,t,r){const i=this;return u;function u(a){return a===null?r(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return i.parser.lazy[i.now().line]?r(a):t(a)}}const x0={name:"codeIndented",tokenize:BTe},$Te={tokenize:zTe,partial:!0};function BTe(e,t,r){const i=this;return u;function u(f){return e.enter("codeIndented"),vr(e,o,"linePrefix",5)(f)}function o(f){const s=i.events[i.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?a(f):r(f)}function a(f){return f===null?l(f):Fn(f)?e.attempt($Te,a,l)(f):(e.enter("codeFlowValue"),n(f))}function n(f){return f===null||Fn(f)?(e.exit("codeFlowValue"),a(f)):(e.consume(f),n)}function l(f){return e.exit("codeIndented"),t(f)}}function zTe(e,t,r){const i=this;return u;function u(a){return i.parser.lazy[i.now().line]?r(a):Fn(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),u):vr(e,o,"linePrefix",5)(a)}function o(a){const n=i.events[i.events.length-1];return n&&n[1].type==="linePrefix"&&n[2].sliceSerialize(n[1],!0).length>=4?t(a):Fn(a)?u(a):r(a)}}const qTe={name:"codeText",tokenize:HTe,resolve:WTe,previous:UTe};function WTe(e){let t=e.length-4,r=3,i,u;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=r;++i=4?t(a):e.interrupt(i.parser.constructs.flow,r,t)(a)}}function _P(e,t,r,i,u,o,a,n,l){const f=l||Number.POSITIVE_INFINITY;let s=0;return c;function c(v){return v===60?(e.enter(i),e.enter(u),e.enter(o),e.consume(v),e.exit(o),d):v===null||v===32||v===41||sy(v)?r(v):(e.enter(i),e.enter(a),e.enter(n),e.enter("chunkString",{contentType:"string"}),m(v))}function d(v){return v===62?(e.enter(o),e.consume(v),e.exit(o),e.exit(u),e.exit(i),t):(e.enter(n),e.enter("chunkString",{contentType:"string"}),h(v))}function h(v){return v===62?(e.exit("chunkString"),e.exit(n),d(v)):v===null||v===60||Fn(v)?r(v):(e.consume(v),v===92?p:h)}function p(v){return v===60||v===62||v===92?(e.consume(v),h):h(v)}function m(v){return!s&&(v===null||v===41||Ca(v))?(e.exit("chunkString"),e.exit(n),e.exit(a),e.exit(i),t(v)):s999||h===null||h===91||h===93&&!l||h===94&&!n&&"_hiddenFootnoteSupport"in a.parser.constructs?r(h):h===93?(e.exit(o),e.enter(u),e.consume(h),e.exit(u),e.exit(i),t):Fn(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===null||h===91||h===93||Fn(h)||n++>999?(e.exit("chunkString"),s(h)):(e.consume(h),l||(l=!ar(h)),h===92?d:c)}function d(h){return h===91||h===92||h===93?(e.consume(h),n++,c):c(h)}}function kP(e,t,r,i,u,o){let a;return n;function n(d){return d===34||d===39||d===40?(e.enter(i),e.enter(u),e.consume(d),e.exit(u),a=d===40?41:d,l):r(d)}function l(d){return d===a?(e.enter(u),e.consume(d),e.exit(u),e.exit(i),t):(e.enter(o),f(d))}function f(d){return d===a?(e.exit(o),l(a)):d===null?r(d):Fn(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),vr(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(d))}function s(d){return d===a||d===null||Fn(d)?(e.exit("chunkString"),f(d)):(e.consume(d),d===92?c:s)}function c(d){return d===a||d===92?(e.consume(d),s):s(d)}}function Au(e,t){let r;return i;function i(u){return Fn(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),r=!0,i):ar(u)?vr(e,i,r?"linePrefix":"lineSuffix")(u):t(u)}}const JTe={name:"definition",tokenize:eke},QTe={tokenize:tke,partial:!0};function eke(e,t,r){const i=this;let u;return o;function o(h){return e.enter("definition"),a(h)}function a(h){return TP.call(i,e,n,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function n(h){return u=wl(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):r(h)}function l(h){return Ca(h)?Au(e,f)(h):f(h)}function f(h){return _P(e,s,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function s(h){return e.attempt(QTe,c,c)(h)}function c(h){return ar(h)?vr(e,d,"whitespace")(h):d(h)}function d(h){return h===null||Fn(h)?(e.exit("definition"),i.parser.defined.push(u),t(h)):r(h)}}function tke(e,t,r){return i;function i(n){return Ca(n)?Au(e,u)(n):r(n)}function u(n){return kP(e,o,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(n)}function o(n){return ar(n)?vr(e,a,"whitespace")(n):a(n)}function a(n){return n===null||Fn(n)?t(n):r(n)}}const nke={name:"hardBreakEscape",tokenize:rke};function rke(e,t,r){return i;function i(o){return e.enter("hardBreakEscape"),e.consume(o),u}function u(o){return Fn(o)?(e.exit("hardBreakEscape"),t(o)):r(o)}}const ake={name:"headingAtx",tokenize:oke,resolve:ike};function ike(e,t){let r=e.length-2,i=3,u,o;return e[i][1].type==="whitespace"&&(i+=2),r-2>i&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&e[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(u={type:"atxHeadingText",start:e[i][1].start,end:e[r][1].end},o={type:"chunkText",start:e[i][1].start,end:e[r][1].end,contentType:"text"},gi(e,i,r-i+1,[["enter",u,t],["enter",o,t],["exit",o,t],["exit",u,t]])),e}function oke(e,t,r){let i=0;return u;function u(s){return e.enter("atxHeading"),o(s)}function o(s){return e.enter("atxHeadingSequence"),a(s)}function a(s){return s===35&&i++<6?(e.consume(s),a):s===null||Ca(s)?(e.exit("atxHeadingSequence"),n(s)):r(s)}function n(s){return s===35?(e.enter("atxHeadingSequence"),l(s)):s===null||Fn(s)?(e.exit("atxHeading"),t(s)):ar(s)?vr(e,n,"whitespace")(s):(e.enter("atxHeadingText"),f(s))}function l(s){return s===35?(e.consume(s),l):(e.exit("atxHeadingSequence"),n(s))}function f(s){return s===null||s===35||Ca(s)?(e.exit("atxHeadingText"),n(s)):(e.consume(s),f)}}const lke=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],S5=["pre","script","style","textarea"],ske={name:"htmlFlow",tokenize:dke,resolveTo:fke,concrete:!0},uke={tokenize:pke,partial:!0},cke={tokenize:hke,partial:!0};function fke(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function dke(e,t,r){const i=this;let u,o,a,n,l;return f;function f(E){return s(E)}function s(E){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(E),c}function c(E){return E===33?(e.consume(E),d):E===47?(e.consume(E),o=!0,m):E===63?(e.consume(E),u=3,i.interrupt?t:$):di(E)?(e.consume(E),a=String.fromCharCode(E),y):r(E)}function d(E){return E===45?(e.consume(E),u=2,h):E===91?(e.consume(E),u=5,n=0,p):di(E)?(e.consume(E),u=4,i.interrupt?t:$):r(E)}function h(E){return E===45?(e.consume(E),i.interrupt?t:$):r(E)}function p(E){const W="CDATA[";return E===W.charCodeAt(n++)?(e.consume(E),n===W.length?i.interrupt?t:P:p):r(E)}function m(E){return di(E)?(e.consume(E),a=String.fromCharCode(E),y):r(E)}function y(E){if(E===null||E===47||E===62||Ca(E)){const W=E===47,G=a.toLowerCase();return!W&&!o&&S5.includes(G)?(u=1,i.interrupt?t(E):P(E)):lke.includes(a.toLowerCase())?(u=6,W?(e.consume(E),v):i.interrupt?t(E):P(E)):(u=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(E):o?g(E):b(E))}return E===45||La(E)?(e.consume(E),a+=String.fromCharCode(E),y):r(E)}function v(E){return E===62?(e.consume(E),i.interrupt?t:P):r(E)}function g(E){return ar(E)?(e.consume(E),g):S(E)}function b(E){return E===47?(e.consume(E),S):E===58||E===95||di(E)?(e.consume(E),x):ar(E)?(e.consume(E),b):S(E)}function x(E){return E===45||E===46||E===58||E===95||La(E)?(e.consume(E),x):_(E)}function _(E){return E===61?(e.consume(E),w):ar(E)?(e.consume(E),_):b(E)}function w(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(e.consume(E),l=E,k):ar(E)?(e.consume(E),w):T(E)}function k(E){return E===l?(e.consume(E),l=null,M):E===null||Fn(E)?r(E):(e.consume(E),k)}function T(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||Ca(E)?_(E):(e.consume(E),T)}function M(E){return E===47||E===62||ar(E)?b(E):r(E)}function S(E){return E===62?(e.consume(E),C):r(E)}function C(E){return E===null||Fn(E)?P(E):ar(E)?(e.consume(E),C):r(E)}function P(E){return E===45&&u===2?(e.consume(E),F):E===60&&u===1?(e.consume(E),A):E===62&&u===4?(e.consume(E),j):E===63&&u===3?(e.consume(E),$):E===93&&u===5?(e.consume(E),B):Fn(E)&&(u===6||u===7)?(e.exit("htmlFlowData"),e.check(uke,N,D)(E)):E===null||Fn(E)?(e.exit("htmlFlowData"),D(E)):(e.consume(E),P)}function D(E){return e.check(cke,O,N)(E)}function O(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),R}function R(E){return E===null||Fn(E)?D(E):(e.enter("htmlFlowData"),P(E))}function F(E){return E===45?(e.consume(E),$):P(E)}function A(E){return E===47?(e.consume(E),a="",z):P(E)}function z(E){if(E===62){const W=a.toLowerCase();return S5.includes(W)?(e.consume(E),j):P(E)}return di(E)&&a.length<8?(e.consume(E),a+=String.fromCharCode(E),z):P(E)}function B(E){return E===93?(e.consume(E),$):P(E)}function $(E){return E===62?(e.consume(E),j):E===45&&u===2?(e.consume(E),$):P(E)}function j(E){return E===null||Fn(E)?(e.exit("htmlFlowData"),N(E)):(e.consume(E),j)}function N(E){return e.exit("htmlFlow"),t(E)}}function hke(e,t,r){const i=this;return u;function u(a){return Fn(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):r(a)}function o(a){return i.parser.lazy[i.now().line]?r(a):t(a)}}function pke(e,t,r){return i;function i(u){return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),e.attempt(jp,t,r)}}const gke={name:"htmlText",tokenize:mke};function mke(e,t,r){const i=this;let u,o,a;return n;function n($){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume($),l}function l($){return $===33?(e.consume($),f):$===47?(e.consume($),_):$===63?(e.consume($),b):di($)?(e.consume($),T):r($)}function f($){return $===45?(e.consume($),s):$===91?(e.consume($),o=0,p):di($)?(e.consume($),g):r($)}function s($){return $===45?(e.consume($),h):r($)}function c($){return $===null?r($):$===45?(e.consume($),d):Fn($)?(a=c,A($)):(e.consume($),c)}function d($){return $===45?(e.consume($),h):c($)}function h($){return $===62?F($):$===45?d($):c($)}function p($){const j="CDATA[";return $===j.charCodeAt(o++)?(e.consume($),o===j.length?m:p):r($)}function m($){return $===null?r($):$===93?(e.consume($),y):Fn($)?(a=m,A($)):(e.consume($),m)}function y($){return $===93?(e.consume($),v):m($)}function v($){return $===62?F($):$===93?(e.consume($),v):m($)}function g($){return $===null||$===62?F($):Fn($)?(a=g,A($)):(e.consume($),g)}function b($){return $===null?r($):$===63?(e.consume($),x):Fn($)?(a=b,A($)):(e.consume($),b)}function x($){return $===62?F($):b($)}function _($){return di($)?(e.consume($),w):r($)}function w($){return $===45||La($)?(e.consume($),w):k($)}function k($){return Fn($)?(a=k,A($)):ar($)?(e.consume($),k):F($)}function T($){return $===45||La($)?(e.consume($),T):$===47||$===62||Ca($)?M($):r($)}function M($){return $===47?(e.consume($),F):$===58||$===95||di($)?(e.consume($),S):Fn($)?(a=M,A($)):ar($)?(e.consume($),M):F($)}function S($){return $===45||$===46||$===58||$===95||La($)?(e.consume($),S):C($)}function C($){return $===61?(e.consume($),P):Fn($)?(a=C,A($)):ar($)?(e.consume($),C):M($)}function P($){return $===null||$===60||$===61||$===62||$===96?r($):$===34||$===39?(e.consume($),u=$,D):Fn($)?(a=P,A($)):ar($)?(e.consume($),P):(e.consume($),O)}function D($){return $===u?(e.consume($),u=void 0,R):$===null?r($):Fn($)?(a=D,A($)):(e.consume($),D)}function O($){return $===null||$===34||$===39||$===60||$===61||$===96?r($):$===47||$===62||Ca($)?M($):(e.consume($),O)}function R($){return $===47||$===62||Ca($)?M($):r($)}function F($){return $===62?(e.consume($),e.exit("htmlTextData"),e.exit("htmlText"),t):r($)}function A($){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume($),e.exit("lineEnding"),z}function z($){return ar($)?vr(e,B,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):B($)}function B($){return e.enter("htmlTextData"),a($)}}const Ix={name:"labelEnd",tokenize:_ke,resolveTo:wke,resolveAll:xke},vke={tokenize:Tke},yke={tokenize:kke},bke={tokenize:Mke};function xke(e){let t=-1;for(;++t=3&&(f===null||Fn(f))?(e.exit("thematicBreak"),t(f)):r(f)}function l(f){return f===u?(e.consume(f),i++,l):(e.exit("thematicBreakSequence"),ar(f)?vr(e,n,"whitespace")(f):n(f))}}const ka={name:"list",tokenize:Lke,continuation:{tokenize:Ike},exit:Nke},Eke={tokenize:jke,partial:!0},Rke={tokenize:Fke,partial:!0};function Lke(e,t,r){const i=this,u=i.events[i.events.length-1];let o=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,a=0;return n;function n(h){const p=i.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!i.containerState.marker||h===i.containerState.marker:uy(h)){if(i.containerState.type||(i.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Pf,r,f)(h):f(h);if(!i.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return r(h)}function l(h){return uy(h)&&++a<10?(e.consume(h),l):(!i.interrupt||a<2)&&(i.containerState.marker?h===i.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),f(h)):r(h)}function f(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||h,e.check(jp,i.interrupt?r:s,e.attempt(Eke,d,c))}function s(h){return i.containerState.initialBlankLine=!0,o++,d(h)}function c(h){return ar(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),d):r(h)}function d(h){return i.containerState.size=o+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function Ike(e,t,r){const i=this;return i.containerState._closeFlow=void 0,e.check(jp,u,o);function u(n){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,vr(e,t,"listItemIndent",i.containerState.size+1)(n)}function o(n){return i.containerState.furtherBlankLines||!ar(n)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,a(n)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(Rke,t,a)(n))}function a(n){return i.containerState._closeFlow=!0,i.interrupt=void 0,vr(e,e.attempt(ka,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(n)}}function Fke(e,t,r){const i=this;return vr(e,u,"listItemIndent",i.containerState.size+1);function u(o){const a=i.events[i.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===i.containerState.size?t(o):r(o)}}function Nke(e){e.exit(this.containerState.type)}function jke(e,t,r){const i=this;return vr(e,u,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(o){const a=i.events[i.events.length-1];return!ar(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):r(o)}}const C5={name:"setextUnderline",tokenize:Bke,resolveTo:$ke};function $ke(e,t){let r=e.length,i,u,o;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(u=r)}else e[r][1].type==="content"&&e.splice(r,1),!o&&e[r][1].type==="definition"&&(o=r);const a={type:"setextHeading",start:Object.assign({},e[u][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[u][1].type="setextHeadingText",o?(e.splice(u,0,["enter",a,t]),e.splice(o+1,0,["exit",e[i][1],t]),e[i][1].end=Object.assign({},e[o][1].end)):e[i][1]=a,e.push(["exit",a,t]),e}function Bke(e,t,r){const i=this;let u;return o;function o(f){let s=i.events.length,c;for(;s--;)if(i.events[s][1].type!=="lineEnding"&&i.events[s][1].type!=="linePrefix"&&i.events[s][1].type!=="content"){c=i.events[s][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||c)?(e.enter("setextHeadingLine"),u=f,a(f)):r(f)}function a(f){return e.enter("setextHeadingLineSequence"),n(f)}function n(f){return f===u?(e.consume(f),n):(e.exit("setextHeadingLineSequence"),ar(f)?vr(e,l,"lineSuffix")(f):l(f))}function l(f){return f===null||Fn(f)?(e.exit("setextHeadingLine"),t(f)):r(f)}}const zke={tokenize:qke};function qke(e){const t=this,r=e.attempt(jp,i,e.attempt(this.parser.constructs.flowInitial,u,vr(e,e.attempt(this.parser.constructs.flow,u,e.attempt(YTe,u)),"linePrefix")));return r;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function u(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const Wke={resolveAll:SP()},Uke=MP("string"),Hke=MP("text");function MP(e){return{tokenize:t,resolveAll:SP(e==="text"?Vke:void 0)};function t(r){const i=this,u=this.parser.constructs[e],o=r.attempt(u,a,n);return a;function a(s){return f(s)?o(s):n(s)}function n(s){if(s===null){r.consume(s);return}return r.enter("data"),r.consume(s),l}function l(s){return f(s)?(r.exit("data"),o(s)):(r.consume(s),l)}function f(s){if(s===null)return!0;const c=u[s];let d=-1;if(c)for(;++d-1){const n=a[0];typeof n=="string"?a[0]=n.slice(i):a.shift()}o>0&&a.push(e[u].slice(0,o))}return a}function Xke(e,t){let r=-1;const i=[];let u;for(;++r0){const de=ye.tokenStack[ye.tokenStack.length-1];(de[1]||A5).call(ye,void 0,de[0])}for(ce.position={start:Hi(Me.length>0?Me[0][1].start:{line:1,column:1,offset:0}),end:Hi(Me.length>0?Me[Me.length-2][1].end:{line:1,column:1,offset:0})},ne=-1;++ne1?"-"+n:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const f={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,f),e.applyData(t,f)}function wMe(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function _Me(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function AP(e,t){const r=t.referenceType;let i="]";if(r==="collapsed"?i+="[]":r==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const c=e.all(t),o=c[0];o&&o.type==="text"?o.value="["+o.value:c.unshift({type:"text",value:"["});const a=c[c.length-1];return a&&a.type==="text"?a.value+=i:c.push({type:"text",value:i}),c}function TMe(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return AP(e,t);const c={src:nl(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(c.title=i.title);const o={type:"element",tagName:"img",properties:c,children:[]};return e.patch(t,o),e.applyData(t,o)}function kMe(e,t){const r={src:nl(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function MMe(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const i={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,i),e.applyData(t,i)}function SMe(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return AP(e,t);const c={href:nl(i.url||"")};i.title!==null&&i.title!==void 0&&(c.title=i.title);const o={type:"element",tagName:"a",properties:c,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function CMe(e,t){const r={href:nl(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function OMe(e,t,r){const i=e.all(t),c=r?AMe(r):PP(t),o={},a=[];if(typeof t.checked=="boolean"){const s=i[0];let u;s&&s.type==="element"&&s.tagName==="p"?u=s:(u={type:"element",tagName:"p",properties:{},children:[]},i.unshift(u)),u.children.length>0&&u.children.unshift({type:"text",value:" "}),u.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let n=-1;for(;++n1}function PMe(e,t){const r={},i=e.all(t);let c=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++c0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},n=Dx(t.children[1]),l=dP(t.children[t.children.length-1]);n&&l&&(a.position={start:n,end:l}),c.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(c,!0)};return e.patch(t,o),e.applyData(t,o)}function IMe(e,t,r){const i=r?r.children:void 0,o=(i?i.indexOf(t):1)===0?"th":"td",a=r&&r.type==="table"?r.align:void 0,n=a?a.length:t.children.length;let l=-1;const f=[];for(;++l0,!0),i[0]),c=i.index+i[0].length,i=r.exec(t);return o.push(E5(t.slice(c),c>0,!1)),o.join("")}function E5(e,t,r){let i=0,c=e.length;if(t){let o=e.codePointAt(i);for(;o===P5||o===D5;)i++,o=e.codePointAt(i)}if(r){let o=e.codePointAt(c-1);for(;o===P5||o===D5;)c--,o=e.codePointAt(c-1)}return c>i?e.slice(i,c):""}function jMe(e,t){const r={type:"text",value:NMe(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function $Me(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const BMe={blockquote:gMe,break:mMe,code:vMe,delete:yMe,emphasis:bMe,footnoteReference:xMe,heading:wMe,html:_Me,imageReference:TMe,image:kMe,inlineCode:MMe,linkReference:SMe,link:CMe,listItem:OMe,list:PMe,paragraph:DMe,root:EMe,strong:RMe,table:LMe,tableCell:FMe,tableRow:IMe,text:jMe,thematicBreak:$Me,toml:sf,yaml:sf,definition:sf,footnoteDefinition:sf};function sf(){}const DP=-1,$p=0,Md=1,Sd=2,Fx=3,Nx=4,jx=5,$x=6,EP=7,RP=8,R5=typeof self=="object"?self:globalThis,zMe=(e,t)=>{const r=(c,o)=>(e.set(o,c),c),i=c=>{if(e.has(c))return e.get(c);const[o,a]=t[c];switch(o){case $p:case DP:return r(a,c);case Md:{const n=r([],c);for(const l of a)n.push(i(l));return n}case Sd:{const n=r({},c);for(const[l,f]of a)n[i(l)]=i(f);return n}case Fx:return r(new Date(a),c);case Nx:{const{source:n,flags:l}=a;return r(new RegExp(n,l),c)}case jx:{const n=r(new Map,c);for(const[l,f]of a)n.set(i(l),i(f));return n}case $x:{const n=r(new Set,c);for(const l of a)n.add(i(l));return n}case EP:{const{name:n,message:l}=a;return r(new R5[n](l),c)}case RP:return r(BigInt(a),c);case"BigInt":return r(Object(BigInt(a)),c)}return r(new R5[o](a),c)};return i},L5=e=>zMe(new Map,e)(0),dl="",{toString:qMe}={},{keys:WMe}=Object,bu=e=>{const t=typeof e;if(t!=="object"||!e)return[$p,t];const r=qMe.call(e).slice(8,-1);switch(r){case"Array":return[Md,dl];case"Object":return[Sd,dl];case"Date":return[Fx,dl];case"RegExp":return[Nx,dl];case"Map":return[jx,dl];case"Set":return[$x,dl]}return r.includes("Array")?[Md,r]:r.includes("Error")?[EP,r]:[Sd,r]},uf=([e,t])=>e===$p&&(t==="function"||t==="symbol"),UMe=(e,t,r,i)=>{const c=(a,n)=>{const l=i.push(a)-1;return r.set(n,l),l},o=a=>{if(r.has(a))return r.get(a);let[n,l]=bu(a);switch(n){case $p:{let s=a;switch(l){case"bigint":n=RP,s=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);s=null;break;case"undefined":return c([DP],a)}return c([n,s],a)}case Md:{if(l)return c([l,[...a]],a);const s=[],u=c([n,s],a);for(const d of a)s.push(o(d));return u}case Sd:{if(l)switch(l){case"BigInt":return c([l,a.toString()],a);case"Boolean":case"Number":case"String":return c([l,a.valueOf()],a)}if(t&&"toJSON"in a)return o(a.toJSON());const s=[],u=c([n,s],a);for(const d of WMe(a))(e||!uf(bu(a[d])))&&s.push([o(d),o(a[d])]);return u}case Fx:return c([n,a.toISOString()],a);case Nx:{const{source:s,flags:u}=a;return c([n,{source:s,flags:u}],a)}case jx:{const s=[],u=c([n,s],a);for(const[d,h]of a)(e||!(uf(bu(d))||uf(bu(h))))&&s.push([o(d),o(h)]);return u}case $x:{const s=[],u=c([n,s],a);for(const d of a)(e||!uf(bu(d)))&&s.push(o(d));return u}}const{message:f}=a;return c([n,{name:l,message:f}],a)};return o},I5=(e,{json:t,lossy:r}={})=>{const i=[];return UMe(!(t||r),!!t,new Map,i)(e),i},Cd=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?L5(I5(e,t)):structuredClone(e):(e,t)=>L5(I5(e,t));function HMe(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function VMe(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function YMe(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||HMe,i=e.options.footnoteBackLabel||VMe,c=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},n=[];let l=-1;for(;++l0&&p.push({type:"text",value:" "});let g=typeof r=="string"?r:r(l,h);typeof g=="string"&&(g={type:"text",value:g}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(l,h),className:["data-footnote-backref"]},children:Array.isArray(g)?g:[g]})}const y=s[s.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const g=y.children[y.children.length-1];g&&g.type==="text"?g.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...p)}else s.push(...p);const v={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(s,!0)};e.patch(f,v),n.push(v)}if(n.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Cd(a),id:"footnote-label"},children:[{type:"text",value:c}]},{type:"text",value:` +`;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&u)continue;a=" ";break}default:a=String.fromCharCode(o)}u=o===-2,i.push(a)}return i.join("")}const Zke={42:ka,43:ka,45:ka,48:ka,49:ka,50:ka,51:ka,52:ka,53:ka,54:ka,55:ka,56:ka,57:ka,62:yP},Kke={91:JTe},Jke={[-2]:x0,[-1]:x0,32:x0},Qke={35:ake,42:Pf,45:[C5,Pf],60:ske,61:C5,95:Pf,96:M5,126:M5},eMe={38:xP,92:bP},tMe={[-5]:w0,[-4]:w0,[-3]:w0,33:Ske,38:xP,42:cy,60:[ATe,gke],91:Oke,92:[nke,bP],93:Ix,95:cy,96:qTe},nMe={null:[cy,Wke]},rMe={null:[42,95]},aMe={null:[]},iMe=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:rMe,contentInitial:Kke,disable:aMe,document:Zke,flow:Qke,flowInitial:Jke,insideSpan:nMe,string:eMe,text:tMe},Symbol.toStringTag,{value:"Module"}));function oMe(e){const r=bTe([iMe,...(e||{}).extensions||[]]),i={defined:[],lazy:{},constructs:r,content:u(_Te),document:u(kTe),flow:u(zke),string:u(Uke),text:u(Hke)};return i;function u(o){return a;function a(n){return Yke(i,o,n)}}}function lMe(e){for(;!wP(e););return e}const O5=/[\0\t\n\r]/g;function sMe(){let e=1,t="",r=!0,i;return u;function u(o,a,n){const l=[];let f,s,c,d,h;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(a||void 0).decode(o)),c=0,t="",r&&(o.charCodeAt(0)===65279&&c++,r=void 0);c0){const de=ye.tokenStack[ye.tokenStack.length-1];(de[1]||A5).call(ye,void 0,de[0])}for(ce.position={start:Hi(Me.length>0?Me[0][1].start:{line:1,column:1,offset:0}),end:Hi(Me.length>0?Me[Me.length-2][1].end:{line:1,column:1,offset:0})},ne=-1;++ne1?"-"+n:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const f={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,f),e.applyData(t,f)}function _Me(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function TMe(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function AP(e,t){const r=t.referenceType;let i="]";if(r==="collapsed"?i+="[]":r==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const u=e.all(t),o=u[0];o&&o.type==="text"?o.value="["+o.value:u.unshift({type:"text",value:"["});const a=u[u.length-1];return a&&a.type==="text"?a.value+=i:u.push({type:"text",value:i}),u}function kMe(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return AP(e,t);const u={src:nl(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(u.title=i.title);const o={type:"element",tagName:"img",properties:u,children:[]};return e.patch(t,o),e.applyData(t,o)}function MMe(e,t){const r={src:nl(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function SMe(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const i={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,i),e.applyData(t,i)}function CMe(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return AP(e,t);const u={href:nl(i.url||"")};i.title!==null&&i.title!==void 0&&(u.title=i.title);const o={type:"element",tagName:"a",properties:u,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function OMe(e,t){const r={href:nl(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function AMe(e,t,r){const i=e.all(t),u=r?PMe(r):PP(t),o={},a=[];if(typeof t.checked=="boolean"){const s=i[0];let c;s&&s.type==="element"&&s.tagName==="p"?c=s:(c={type:"element",tagName:"p",properties:{},children:[]},i.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let n=-1;for(;++n1}function DMe(e,t){const r={},i=e.all(t);let u=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++u0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},n=Dx(t.children[1]),l=dP(t.children[t.children.length-1]);n&&l&&(a.position={start:n,end:l}),u.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(u,!0)};return e.patch(t,o),e.applyData(t,o)}function FMe(e,t,r){const i=r?r.children:void 0,o=(i?i.indexOf(t):1)===0?"th":"td",a=r&&r.type==="table"?r.align:void 0,n=a?a.length:t.children.length;let l=-1;const f=[];for(;++l0,!0),i[0]),u=i.index+i[0].length,i=r.exec(t);return o.push(E5(t.slice(u),u>0,!1)),o.join("")}function E5(e,t,r){let i=0,u=e.length;if(t){let o=e.codePointAt(i);for(;o===P5||o===D5;)i++,o=e.codePointAt(i)}if(r){let o=e.codePointAt(u-1);for(;o===P5||o===D5;)u--,o=e.codePointAt(u-1)}return u>i?e.slice(i,u):""}function $Me(e,t){const r={type:"text",value:jMe(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function BMe(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const zMe={blockquote:mMe,break:vMe,code:yMe,delete:bMe,emphasis:xMe,footnoteReference:wMe,heading:_Me,html:TMe,imageReference:kMe,image:MMe,inlineCode:SMe,linkReference:CMe,link:OMe,listItem:AMe,list:DMe,paragraph:EMe,root:RMe,strong:LMe,table:IMe,tableCell:NMe,tableRow:FMe,text:$Me,thematicBreak:BMe,toml:sf,yaml:sf,definition:sf,footnoteDefinition:sf};function sf(){}const DP=-1,$p=0,Md=1,Sd=2,Fx=3,Nx=4,jx=5,$x=6,EP=7,RP=8,R5=typeof self=="object"?self:globalThis,qMe=(e,t)=>{const r=(u,o)=>(e.set(o,u),u),i=u=>{if(e.has(u))return e.get(u);const[o,a]=t[u];switch(o){case $p:case DP:return r(a,u);case Md:{const n=r([],u);for(const l of a)n.push(i(l));return n}case Sd:{const n=r({},u);for(const[l,f]of a)n[i(l)]=i(f);return n}case Fx:return r(new Date(a),u);case Nx:{const{source:n,flags:l}=a;return r(new RegExp(n,l),u)}case jx:{const n=r(new Map,u);for(const[l,f]of a)n.set(i(l),i(f));return n}case $x:{const n=r(new Set,u);for(const l of a)n.add(i(l));return n}case EP:{const{name:n,message:l}=a;return r(new R5[n](l),u)}case RP:return r(BigInt(a),u);case"BigInt":return r(Object(BigInt(a)),u)}return r(new R5[o](a),u)};return i},L5=e=>qMe(new Map,e)(0),dl="",{toString:WMe}={},{keys:UMe}=Object,bu=e=>{const t=typeof e;if(t!=="object"||!e)return[$p,t];const r=WMe.call(e).slice(8,-1);switch(r){case"Array":return[Md,dl];case"Object":return[Sd,dl];case"Date":return[Fx,dl];case"RegExp":return[Nx,dl];case"Map":return[jx,dl];case"Set":return[$x,dl]}return r.includes("Array")?[Md,r]:r.includes("Error")?[EP,r]:[Sd,r]},uf=([e,t])=>e===$p&&(t==="function"||t==="symbol"),HMe=(e,t,r,i)=>{const u=(a,n)=>{const l=i.push(a)-1;return r.set(n,l),l},o=a=>{if(r.has(a))return r.get(a);let[n,l]=bu(a);switch(n){case $p:{let s=a;switch(l){case"bigint":n=RP,s=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);s=null;break;case"undefined":return u([DP],a)}return u([n,s],a)}case Md:{if(l)return u([l,[...a]],a);const s=[],c=u([n,s],a);for(const d of a)s.push(o(d));return c}case Sd:{if(l)switch(l){case"BigInt":return u([l,a.toString()],a);case"Boolean":case"Number":case"String":return u([l,a.valueOf()],a)}if(t&&"toJSON"in a)return o(a.toJSON());const s=[],c=u([n,s],a);for(const d of UMe(a))(e||!uf(bu(a[d])))&&s.push([o(d),o(a[d])]);return c}case Fx:return u([n,a.toISOString()],a);case Nx:{const{source:s,flags:c}=a;return u([n,{source:s,flags:c}],a)}case jx:{const s=[],c=u([n,s],a);for(const[d,h]of a)(e||!(uf(bu(d))||uf(bu(h))))&&s.push([o(d),o(h)]);return c}case $x:{const s=[],c=u([n,s],a);for(const d of a)(e||!uf(bu(d)))&&s.push(o(d));return c}}const{message:f}=a;return u([n,{name:l,message:f}],a)};return o},I5=(e,{json:t,lossy:r}={})=>{const i=[];return HMe(!(t||r),!!t,new Map,i)(e),i},Cd=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?L5(I5(e,t)):structuredClone(e):(e,t)=>L5(I5(e,t));function VMe(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function YMe(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function GMe(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||VMe,i=e.options.footnoteBackLabel||YMe,u=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},n=[];let l=-1;for(;++l0&&p.push({type:"text",value:" "});let g=typeof r=="string"?r:r(l,h);typeof g=="string"&&(g={type:"text",value:g}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(l,h),className:["data-footnote-backref"]},children:Array.isArray(g)?g:[g]})}const y=s[s.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const g=y.children[y.children.length-1];g&&g.type==="text"?g.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...p)}else s.push(...p);const v={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(s,!0)};e.patch(f,v),n.push(v)}if(n.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Cd(a),id:"footnote-label"},children:[{type:"text",value:u}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(n,!0)},{type:"text",value:` -`}]}}const LP=function(e){if(e==null)return KMe;if(typeof e=="function")return Bp(e);if(typeof e=="object")return Array.isArray(e)?GMe(e):XMe(e);if(typeof e=="string")return ZMe(e);throw new Error("Expected function, string, or object as test")};function GMe(e){const t=[];let r=-1;for(;++r":""))+")"})}return d;function d(){let h=IP,p,m,y;if((!t||o(l,f,s[s.length-1]||void 0))&&(h=n5e(r(l,s)),h[0]===F5))return h;if("children"in l&&l.children){const v=l;if(v.children&&h[0]!==e5e)for(m=(i?v.children.length:-1)+a,y=s.concat(v);m>-1&&m":""))+")"})}return d;function d(){let h=IP,p,m,y;if((!t||o(l,f,s[s.length-1]||void 0))&&(h=r5e(r(l,s)),h[0]===F5))return h;if("children"in l&&l.children){const v=l;if(v.children&&h[0]!==t5e)for(m=(i?v.children.length:-1)+a,y=s.concat(v);m>-1&&m0&&r.push({type:"text",value:` -`}),r}function N5(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function j5(e,t){const r=a5e(e,t),i=r.one(e,void 0),c=YMe(r),o=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return c&&o.children.push({type:"text",value:` -`},c),o}function u5e(e,t){return e&&"run"in e?async function(r,i){const c=j5(r,t);await e.run(c,i)}:function(r){return j5(r,t||e)}}function $5(e){if(e)throw e}var Df=Object.prototype.hasOwnProperty,NP=Object.prototype.toString,B5=Object.defineProperty,z5=Object.getOwnPropertyDescriptor,q5=function(t){return typeof Array.isArray=="function"?Array.isArray(t):NP.call(t)==="[object Array]"},W5=function(t){if(!t||NP.call(t)!=="[object Object]")return!1;var r=Df.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&Df.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!i)return!1;var c;for(c in t);return typeof c>"u"||Df.call(t,c)},U5=function(t,r){B5&&r.name==="__proto__"?B5(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},H5=function(t,r){if(r==="__proto__")if(Df.call(t,r)){if(z5)return z5(t,r).value}else return;return t[r]},c5e=function e(){var t,r,i,c,o,a,n=arguments[0],l=1,f=arguments.length,s=!1;for(typeof n=="boolean"&&(s=n,n=arguments[1]||{},l=2),(n==null||typeof n!="object"&&typeof n!="function")&&(n={});la.length;let l;n&&a.push(c);try{l=e.apply(this,a)}catch(f){const s=f;if(n&&r)throw s;return c(s)}n||(l instanceof Promise?l.then(o,c):l instanceof Error?c(l):o(l))}function c(a,...n){r||(r=!0,t(a,...n))}function o(a){c(null,a)}}const li={basename:h5e,dirname:p5e,extname:g5e,join:m5e,sep:"/"};function h5e(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');_c(e);let r=0,i=-1,c=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;c--;)if(e.codePointAt(c)===47){if(o){r=c+1;break}}else i<0&&(o=!0,i=c+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let a=-1,n=t.length-1;for(;c--;)if(e.codePointAt(c)===47){if(o){r=c+1;break}}else a<0&&(o=!0,a=c+1),n>-1&&(e.codePointAt(c)===t.codePointAt(n--)?n<0&&(i=c):(n=-1,i=a));return r===i?i=a:i<0&&(i=e.length),e.slice(r,i)}function p5e(e){if(_c(e),e.length===0)return".";let t=-1,r=e.length,i;for(;--r;)if(e.codePointAt(r)===47){if(i){t=r;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function g5e(e){_c(e);let t=e.length,r=-1,i=0,c=-1,o=0,a;for(;t--;){const n=e.codePointAt(t);if(n===47){if(a){i=t+1;break}continue}r<0&&(a=!0,r=t+1),n===46?c<0?c=t:o!==1&&(o=1):c>-1&&(o=-1)}return c<0||r<0||o===0||o===1&&c===r-1&&c===i+1?"":e.slice(c,r)}function m5e(...e){let t=-1,r;for(;++t0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function y5e(e,t){let r="",i=0,c=-1,o=0,a=-1,n,l;for(;++a<=e.length;){if(a2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",i=0):(r=r.slice(0,l),i=r.length-1-r.lastIndexOf("/")),c=a,o=0;continue}}else if(r.length>0){r="",i=0,c=a,o=0;continue}}t&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+e.slice(c+1,a):r=e.slice(c+1,a),i=a-c-1;c=a,o=0}else n===46&&o>-1?o++:o=-1}return r}function _c(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const b5e={cwd:x5e};function x5e(){return"/"}function hy(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function w5e(e){if(typeof e=="string")e=new URL(e);else if(!hy(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return _5e(e)}function _5e(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let r=-1;for(;++r0){let[h,...p]=s;const m=i[d][1];dy(m)&&dy(h)&&(h=_0(!0,m,h)),i[d]=[f,h,...p]}}}}const S5e=new Bx().freeze();function S0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function C0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function O0(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Y5(e){if(!dy(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function G5(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function cf(e){return C5e(e)?e:new jP(e)}function C5e(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function O5e(e){return typeof e=="string"||A5e(e)}function A5e(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const X5={}.hasOwnProperty,P5e="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Z5=[],K5={allowDangerousHtml:!0},D5e=/^(https?|ircs?|mailto|xmpp)$/i,E5e=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function $P(e){const t=e.allowedElements,r=e.allowElement,i=e.children||"",c=e.className,o=e.components,a=e.disallowedElements,n=e.rehypePlugins||Z5,l=e.remarkPlugins||Z5,f=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...K5}:K5,s=e.skipHtml,u=e.unwrapDisallowed,d=e.urlTransform||R5e,h=S5e().use(pMe).use(l).use(u5e,f).use(n),p=new jP;typeof i=="string"&&(p.value=i);for(const g of E5e)Object.hasOwn(e,g.from)&&(""+g.from+(g.to?"use `"+g.to+"` instead":"remove it")+P5e+g.id,void 0);const m=h.parse(p);let y=h.runSync(m,p);return c&&(y={type:"element",tagName:"div",properties:{className:c},children:y.type==="root"?y.children:[y]}),FP(y,v),Z3e(y,{Fragment:je.Fragment,components:o,ignoreInvalidStyle:!0,jsx:je.jsx,jsxs:je.jsxs,passKeys:!0,passNode:!0});function v(g,b,x){if(g.type==="raw"&&x&&typeof b=="number")return s?x.children.splice(b,1):x.children[b]={type:"text",value:g.value},b;if(g.type==="element"){let _;for(_ in b0)if(X5.call(b0,_)&&X5.call(g.properties,_)){const w=g.properties[_],k=b0[_];(k===null||k.includes(g.tagName))&&(g.properties[_]=d(String(w||""),_,g))}}if(g.type==="element"){let _=t?!t.includes(g.tagName):a?a.includes(g.tagName):!1;if(!_&&r&&typeof b=="number"&&(_=!r(g,b,x)),_&&x&&typeof b=="number")return u&&g.children?x.children.splice(b,1,...g.children):x.children.splice(b,1),b}}}function R5e(e){return pTe(e,D5e)}const J5=["unknown","success","warning","fail"],BP=e=>{switch(e){case"error":case"unknown":return"info";case"success":return"success";case"warning":return"warning";case"fail":return"error"}},zP=({title:e,description:t,state:r,details:i})=>{const[c,o]=$e.useState({active:!1}),a=i!=null&&i.parts.length>0;return J5.includes(r)||(console.error(`unexpected state: ${r} (expected one of [${J5.join(", ")}])`),r="unknown"),je.jsx(je.Fragment,{children:je.jsxs(Kr,{children:[je.jsxs(wy,{severity:BP(r),action:a?je.jsx(hi,{onClick:()=>o(n=>({active:!n.active})),color:"inherit",size:"small",children:"Details"}):null,children:[je.jsx(by,{children:e}),je.jsx($P,{children:t})]}),a?je.jsx(xy,{in:c.active,mountOnEnter:!0,unmountOnExit:!0,children:je.jsx(Kr,{style:{padding:"2px"},children:je.jsx(A1,{details:i,widgetSize:2})})}):je.jsx(je.Fragment,{})]})})},L5e=({type:e,availableTypes:t,onChange:r})=>je.jsx(je.Fragment,{children:je.jsx(lE,{variant:"standard",value:e,onChange:i=>r(i.target.value),native:!0,children:t.map(i=>je.jsx("option",{value:i.id,children:i.title},i.id))})}),I5e=({groupInfo:e,tests:t})=>{const[r,i]=$e.useState({active:!1});return je.jsx(je.Fragment,{children:je.jsxs(Kr,{mt:2,px:2,children:[je.jsxs(wy,{severity:BP(e.severity??"unknown"),icon:!1,action:je.jsx(hi,{onClick:()=>i(c=>({active:!c.active})),color:"inherit",size:"small",children:r.active?"Hide":"Show"}),children:[je.jsx(by,{children:e.title}),e.description]}),je.jsx(xy,{in:r.active,mountOnEnter:!0,unmountOnExit:!0,children:je.jsx(Jn,{container:!0,spacing:2,style:{padding:10,paddingTop:20},children:t.map(c=>je.jsx(Jn,{item:!0,xs:12,children:je.jsx(zP,{...c})}))})})]})})},F5e=({type:e,groupsInfo:t,tests:r})=>{function i(n){if(n==="status")return[t.find(s=>s.id===n).values,s=>s.state];const l=t.find(s=>s.id===n);if(l===void 0)throw"unexpected type";return[l.values.find(s=>s.id==="no group")!==void 0?l.values:[...l.values,{id:"no group",title:"No Group",sortIndex:-1,description:"No group of this type was provided"}],s=>s.groups[n]??"no group"]}const[c,o]=i(e),a=r.reduce((n,l)=>(n.set(o(l),[...n.get(o(l))??[],l]),n),new Map);return je.jsx(je.Fragment,{children:je.jsx(Jn,{container:!0,spacing:2,children:Array.from(a.entries()).map(([n,l])=>[c.find(f=>f.id===n)??{id:n,title:n},l]).sort((n,l)=>(n[0].sortIndex??0)-(l[0].sortIndex??0)).map(([n,l])=>je.jsx(Jn,{item:!0,xs:12,children:je.jsx(I5e,{groupInfo:n,tests:l})}))})})},N5e=[{id:"none",title:"All tests",values:[]},{id:"status",title:"By test status",values:[{id:"success",title:"Passed tests",sortIndex:3,description:"",severity:"success"},{id:"fail",title:"Failed tests",sortIndex:1,description:"",severity:"fail"},{id:"warning",title:"Failed non-critical tests",sortIndex:2,description:"",severity:"warning"},{id:"error",title:"Tests with execution errors",sortIndex:2,description:"",severity:"error"}]}],j5e=({tests:e,testGroupTypes:t})=>{const[r,i]=et.useState({group_type:"none"}),c=[];for(let a=0;as===f)===-1&&c.push(f)}const o=[...N5e,...(t??[]).filter(a=>c.findIndex(n=>n===a.id)!==-1)];return je.jsx(je.Fragment,{children:je.jsxs(Jn,{container:!0,spacing:2,children:[je.jsx(Jn,{item:!0,xs:12,children:je.jsx(L5e,{type:r.group_type,availableTypes:o,onChange:a=>i({group_type:a})})}),je.jsx(Jn,{item:!0,xs:12,children:je.jsx(Jn,{container:!0,spacing:2,children:r.group_type==="none"?e.map(a=>je.jsx(Jn,{item:!0,xs:12,children:je.jsx(zP,{...a})},a.title+a.description)):je.jsx(F5e,{type:r.group_type,groupsInfo:o,tests:e})})})]})})},$5e=e=>je.jsx(je.Fragment,{children:je.jsx($P,{children:e.text})});function ff(e){return e.palette.mode==="dark"?uS:cS}function df(e){return e.palette.mode==="light"?cS:uS}const py=e=>{const[t,r]=$e.useState({open:!1});return je.jsxs(rS,{elevation:0,onClick:i=>r(c=>({open:!c.open,anchorEl:i.currentTarget})),sx:[{border:"1px solid",borderColor:i=>i.palette.divider},{color:i=>df(i)(i.palette.info.main,.6),backgroundColor:i=>ff(i)(i.palette.info.main,.9)},e.data.state==="success"&&{color:i=>df(i)(i.palette.success.main,.6),backgroundColor:i=>ff(i)(i.palette.success.main,.9)},e.data.state==="warning"&&{color:i=>df(i)(i.palette.warning.main,.6),backgroundColor:i=>ff(i)(i.palette.warning.main,.9)},e.data.state==="error"&&{color:i=>df(i)(i.palette.error.main,.6),backgroundColor:i=>ff(i)(i.palette.error.main,.9)}],children:[je.jsx(Cr,{align:"center",variant:"h6",component:"div",children:e.data.value}),je.jsx(Cr,{align:"center",variant:"body1",component:"div",children:e.data.text}),je.jsx(iS,{open:t.open,anchorEl:t.anchorEl,anchorOrigin:{horizontal:"left",vertical:"bottom"},children:e.customPopup??je.jsx(Cr,{padding:1,children:e.data.longText})})]})},Q5=e=>{const{alertStats:t}=e;return je.jsx(py,{data:{value:`${t.triggered.last_24h}`,state:"info",text:"alerts in the last 24 hours",longText:"alerts triggered in the period / alerts triggered in 24 hours / alerts active "},customPopup:je.jsx(Cr,{sx:{pr:1},children:je.jsxs("ul",{children:[je.jsxs("li",{children:[t.triggered.period," alerts triggered in the period"]}),je.jsxs("li",{children:[t.triggered.last_24h," alerts triggered in 24 hours"]}),je.jsxs("li",{children:[t.active," total active alerts"]})]})})})};function B5e(e){return e===12?{xs:12,sm:12,md:12,lg:12}:e===6?{xs:12,sm:12,md:6,lg:6}:e===3?{xs:12,sm:6,md:3,lg:3}:{xs:6,sm:3,md:1,lg:1}}const z5e=e=>{const{size:t,ItemWrapper:r}=e,i=e.children.alertsPosition??"row",{id:c,title:o,details:a,content:n,alerts:l,alertStats:f,insights:s}=e.children,u=l===void 0?!1:l.length>0,d=s===void 0?!1:s.length>0,h=je.jsx(sE,{elevation:0,children:je.jsx(uE,{children:je.jsxs(Jn,{container:!0,spacing:1,direction:"column",children:[i==="row"?je.jsxs(Jn,{container:!0,spacing:1,item:!0,children:[je.jsxs(Jn,{item:!0,xs:u&&i==="row"?9:12,children:[o?je.jsx(Cr,{fontWeight:500,variant:"h5",children:o}):je.jsx("div",{}),je.jsx("div",{children:n}),a?je.jsx(Cr,{variant:"subtitle1",children:a}):je.jsx("div",{})]}),u?je.jsx(Jn,{container:!0,spacing:1,direction:"column",justifyContent:"center",item:!0,xs:3,children:l?je.jsxs(et.Fragment,{children:[f?je.jsx(Jn,{item:!0,children:je.jsx(Q5,{alertStats:f})}):je.jsx("div",{}),l.map(p=>je.jsx(Jn,{item:!0,children:je.jsx(py,{data:p})}))]}):je.jsx("div",{})}):je.jsx("div",{})]}):je.jsxs(et.Fragment,{children:[je.jsxs(Jn,{item:!0,children:[o?je.jsx(Cr,{variant:"h5",children:o}):je.jsx("div",{}),je.jsx("div",{children:n}),a?je.jsx(Cr,{variant:"subtitle1",children:a}):je.jsx("div",{})]}),u?je.jsx(Jn,{item:!0,xs:!0,children:je.jsx(Jn,{container:!0,direction:"row",spacing:1,children:l?je.jsxs(et.Fragment,{children:[f?je.jsx(Jn,{item:!0,xs:!0,children:je.jsx(Q5,{alertStats:f})}):je.jsx("div",{}),l.map(p=>je.jsx(Jn,{item:!0,xs:!0,children:je.jsx(py,{data:p})}))]}):je.jsx("div",{})})}):je.jsx("div",{})]}),d?s==null?void 0:s.map(p=>je.jsx(Jn,{item:!0,xs:!0,sm:!0,md:!0,children:je.jsx(bC,{data:p})})):je.jsx("div",{})]})})});return je.jsx(Jn,{item:!0,...B5e(t),children:r?r({id:c,children:h}):h})};class qP extends et.Component{render(){return je.jsx(Jn,{container:!0,alignItems:"stretch",spacing:1,direction:"row",mt:1,children:this.props.children})}}const q5e=e=>{const[t,r]=et.useState({page:0}),i=e.widgets.slice(t.page*e.pageSize,(t.page+1)*e.pageSize);return je.jsxs(qP,{children:[i.map((c,o)=>Tc(`wi_${o}`,c)),je.jsxs(Jn,{item:!0,xs:12,children:[je.jsx(hi,{startIcon:je.jsx(cE,{}),disabled:t.page===0,onClick:()=>r(c=>({page:c.page-1})),children:"Previous"}),je.jsxs("span",{children:[t.page+1," / ",Math.round(e.widgets.length/e.pageSize)]}),je.jsx(hi,{endIcon:je.jsx(fE,{}),disabled:t.page>=e.widgets.length/e.pageSize-1,onClick:()=>r(c=>({page:c.page+1})),children:"Next"})]})]})};function W5e(e){return e===hf.Small?3:e===hf.Medium?6:(e===hf.Big,12)}function Tc(e,t,r){let i=je.jsx(xC,{});if(t.type==="counter")i=je.jsx(u3e,{...t.params});else if(t.type==="percent")i=je.jsx(c3e,{...t.params});else if(t.type==="big_graph")i=je.jsx(Pd,{...t.params,widgetSize:t.size});else if(t.type==="tabbed_graph")i=je.jsx(d3e,{...t.params,widgetSize:t.size});else if(t.type==="tabs")i=je.jsx(h3e,{...t,widgetSize:t.size,id:"twc_"});else if(t.type==="table")i=je.jsx(p3e,{...t.params});else if(t.type==="big_table")i=je.jsx(s3e,{...t.params,widgetSize:t.size});else if(t.type==="group")i=je.jsx(qP,{children:t.widgets.map((c,o)=>Tc(`wi_${o}`,c))});else if(t.type==="rich_data")i=je.jsx(f3e,{...t.params,widgetSize:t.size});else if(t.type==="list"){const c=t;i=je.jsx(q5e,{widgets:c.widgets,pageSize:c.pageSize,widgetSize:t.size})}else t.type==="text"?i=je.jsx($5e,{...t.params}):t.type==="test_suite"&&(i=je.jsx(j5e,{...t.params}));return je.jsx(z5e,{size:W5e(t.size),ItemWrapper:r,children:{...t,content:i}},e)}const Z5e=({widgets:e,ItemWrapper:t})=>je.jsx(je.Fragment,{children:e.length>0&&e.map((r,i)=>je.jsx(et.Fragment,{children:Tc(`wi_${i}`,r,t)},r.id))});export{G5e as C,Z5e as D,yC as a}; +`}),r}function N5(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function j5(e,t){const r=i5e(e,t),i=r.one(e,void 0),u=GMe(r),o=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return u&&o.children.push({type:"text",value:` +`},u),o}function c5e(e,t){return e&&"run"in e?async function(r,i){const u=j5(r,t);await e.run(u,i)}:function(r){return j5(r,t||e)}}function $5(e){if(e)throw e}var Df=Object.prototype.hasOwnProperty,NP=Object.prototype.toString,B5=Object.defineProperty,z5=Object.getOwnPropertyDescriptor,q5=function(t){return typeof Array.isArray=="function"?Array.isArray(t):NP.call(t)==="[object Array]"},W5=function(t){if(!t||NP.call(t)!=="[object Object]")return!1;var r=Df.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&Df.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!i)return!1;var u;for(u in t);return typeof u>"u"||Df.call(t,u)},U5=function(t,r){B5&&r.name==="__proto__"?B5(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},H5=function(t,r){if(r==="__proto__")if(Df.call(t,r)){if(z5)return z5(t,r).value}else return;return t[r]},f5e=function e(){var t,r,i,u,o,a,n=arguments[0],l=1,f=arguments.length,s=!1;for(typeof n=="boolean"&&(s=n,n=arguments[1]||{},l=2),(n==null||typeof n!="object"&&typeof n!="function")&&(n={});la.length;let l;n&&a.push(u);try{l=e.apply(this,a)}catch(f){const s=f;if(n&&r)throw s;return u(s)}n||(l instanceof Promise?l.then(o,u):l instanceof Error?u(l):o(l))}function u(a,...n){r||(r=!0,t(a,...n))}function o(a){u(null,a)}}const li={basename:p5e,dirname:g5e,extname:m5e,join:v5e,sep:"/"};function p5e(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');_c(e);let r=0,i=-1,u=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;u--;)if(e.codePointAt(u)===47){if(o){r=u+1;break}}else i<0&&(o=!0,i=u+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let a=-1,n=t.length-1;for(;u--;)if(e.codePointAt(u)===47){if(o){r=u+1;break}}else a<0&&(o=!0,a=u+1),n>-1&&(e.codePointAt(u)===t.codePointAt(n--)?n<0&&(i=u):(n=-1,i=a));return r===i?i=a:i<0&&(i=e.length),e.slice(r,i)}function g5e(e){if(_c(e),e.length===0)return".";let t=-1,r=e.length,i;for(;--r;)if(e.codePointAt(r)===47){if(i){t=r;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function m5e(e){_c(e);let t=e.length,r=-1,i=0,u=-1,o=0,a;for(;t--;){const n=e.codePointAt(t);if(n===47){if(a){i=t+1;break}continue}r<0&&(a=!0,r=t+1),n===46?u<0?u=t:o!==1&&(o=1):u>-1&&(o=-1)}return u<0||r<0||o===0||o===1&&u===r-1&&u===i+1?"":e.slice(u,r)}function v5e(...e){let t=-1,r;for(;++t0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function b5e(e,t){let r="",i=0,u=-1,o=0,a=-1,n,l;for(;++a<=e.length;){if(a2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",i=0):(r=r.slice(0,l),i=r.length-1-r.lastIndexOf("/")),u=a,o=0;continue}}else if(r.length>0){r="",i=0,u=a,o=0;continue}}t&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+e.slice(u+1,a):r=e.slice(u+1,a),i=a-u-1;u=a,o=0}else n===46&&o>-1?o++:o=-1}return r}function _c(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const x5e={cwd:w5e};function w5e(){return"/"}function hy(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function _5e(e){if(typeof e=="string")e=new URL(e);else if(!hy(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return T5e(e)}function T5e(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let r=-1;for(;++r0){let[h,...p]=s;const m=i[d][1];dy(m)&&dy(h)&&(h=_0(!0,m,h)),i[d]=[f,h,...p]}}}}const C5e=new Bx().freeze();function S0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function C0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function O0(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Y5(e){if(!dy(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function G5(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function cf(e){return O5e(e)?e:new jP(e)}function O5e(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function A5e(e){return typeof e=="string"||P5e(e)}function P5e(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const X5={}.hasOwnProperty,D5e="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Z5=[],K5={allowDangerousHtml:!0},E5e=/^(https?|ircs?|mailto|xmpp)$/i,R5e=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function $P(e){const t=e.allowedElements,r=e.allowElement,i=e.children||"",u=e.className,o=e.components,a=e.disallowedElements,n=e.rehypePlugins||Z5,l=e.remarkPlugins||Z5,f=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...K5}:K5,s=e.skipHtml,c=e.unwrapDisallowed,d=e.urlTransform||L5e,h=C5e().use(gMe).use(l).use(c5e,f).use(n),p=new jP;typeof i=="string"&&(p.value=i);for(const g of R5e)Object.hasOwn(e,g.from)&&(""+g.from+(g.to?"use `"+g.to+"` instead":"remove it")+D5e+g.id,void 0);const m=h.parse(p);let y=h.runSync(m,p);return u&&(y={type:"element",tagName:"div",properties:{className:u},children:y.type==="root"?y.children:[y]}),FP(y,v),K3e(y,{Fragment:je.Fragment,components:o,ignoreInvalidStyle:!0,jsx:je.jsx,jsxs:je.jsxs,passKeys:!0,passNode:!0});function v(g,b,x){if(g.type==="raw"&&x&&typeof b=="number")return s?x.children.splice(b,1):x.children[b]={type:"text",value:g.value},b;if(g.type==="element"){let _;for(_ in b0)if(X5.call(b0,_)&&X5.call(g.properties,_)){const w=g.properties[_],k=b0[_];(k===null||k.includes(g.tagName))&&(g.properties[_]=d(String(w||""),_,g))}}if(g.type==="element"){let _=t?!t.includes(g.tagName):a?a.includes(g.tagName):!1;if(!_&&r&&typeof b=="number"&&(_=!r(g,b,x)),_&&x&&typeof b=="number")return c&&g.children?x.children.splice(b,1,...g.children):x.children.splice(b,1),b}}}function L5e(e){return gTe(e,E5e)}const J5=["unknown","success","warning","fail"],BP=e=>{switch(e){case"error":case"unknown":return"info";case"success":return"success";case"warning":return"warning";case"fail":return"error"}},zP=({title:e,description:t,state:r,details:i})=>{const[u,o]=$e.useState({active:!1}),a=i!=null&&i.parts.length>0;return J5.includes(r)||(console.error(`unexpected state: ${r} (expected one of [${J5.join(", ")}])`),r="unknown"),je.jsx(je.Fragment,{children:je.jsxs(Kr,{children:[je.jsxs(wy,{severity:BP(r),action:a?je.jsx(hi,{onClick:()=>o(n=>({active:!n.active})),color:"inherit",size:"small",children:"Details"}):null,children:[je.jsx(by,{children:e}),je.jsx($P,{children:t})]}),a?je.jsx(xy,{in:u.active,mountOnEnter:!0,unmountOnExit:!0,children:je.jsx(Kr,{style:{padding:"2px"},children:je.jsx(A1,{details:i,widgetSize:2})})}):je.jsx(je.Fragment,{})]})})},I5e=({type:e,availableTypes:t,onChange:r})=>je.jsx(je.Fragment,{children:je.jsx(lE,{variant:"standard",value:e,onChange:i=>r(i.target.value),native:!0,children:t.map(i=>je.jsx("option",{value:i.id,children:i.title},i.id))})}),F5e=({groupInfo:e,tests:t})=>{const[r,i]=$e.useState({active:!1});return je.jsx(je.Fragment,{children:je.jsxs(Kr,{mt:2,px:2,children:[je.jsxs(wy,{severity:BP(e.severity??"unknown"),icon:!1,action:je.jsx(hi,{onClick:()=>i(u=>({active:!u.active})),color:"inherit",size:"small",children:r.active?"Hide":"Show"}),children:[je.jsx(by,{children:e.title}),e.description]}),je.jsx(xy,{in:r.active,mountOnEnter:!0,unmountOnExit:!0,children:je.jsx(Jn,{container:!0,spacing:2,style:{padding:10,paddingTop:20},children:t.map(u=>je.jsx(Jn,{item:!0,xs:12,children:je.jsx(zP,{...u})}))})})]})})},N5e=({type:e,groupsInfo:t,tests:r})=>{function i(n){if(n==="status")return[t.find(s=>s.id===n).values,s=>s.state];const l=t.find(s=>s.id===n);if(l===void 0)throw"unexpected type";return[l.values.find(s=>s.id==="no group")!==void 0?l.values:[...l.values,{id:"no group",title:"No Group",sortIndex:-1,description:"No group of this type was provided"}],s=>s.groups[n]??"no group"]}const[u,o]=i(e),a=r.reduce((n,l)=>(n.set(o(l),[...n.get(o(l))??[],l]),n),new Map);return je.jsx(je.Fragment,{children:je.jsx(Jn,{container:!0,spacing:2,children:Array.from(a.entries()).map(([n,l])=>[u.find(f=>f.id===n)??{id:n,title:n},l]).sort((n,l)=>(n[0].sortIndex??0)-(l[0].sortIndex??0)).map(([n,l])=>je.jsx(Jn,{item:!0,xs:12,children:je.jsx(F5e,{groupInfo:n,tests:l})}))})})},j5e=[{id:"none",title:"All tests",values:[]},{id:"status",title:"By test status",values:[{id:"success",title:"Passed tests",sortIndex:3,description:"",severity:"success"},{id:"fail",title:"Failed tests",sortIndex:1,description:"",severity:"fail"},{id:"warning",title:"Failed non-critical tests",sortIndex:2,description:"",severity:"warning"},{id:"error",title:"Tests with execution errors",sortIndex:2,description:"",severity:"error"}]}],$5e=({tests:e,testGroupTypes:t})=>{const[r,i]=et.useState({group_type:"none"}),u=[];for(let a=0;as===f)===-1&&u.push(f)}const o=[...j5e,...(t??[]).filter(a=>u.findIndex(n=>n===a.id)!==-1)];return je.jsx(je.Fragment,{children:je.jsxs(Jn,{container:!0,spacing:2,children:[je.jsx(Jn,{item:!0,xs:12,children:je.jsx(I5e,{type:r.group_type,availableTypes:o,onChange:a=>i({group_type:a})})}),je.jsx(Jn,{item:!0,xs:12,children:je.jsx(Jn,{container:!0,spacing:2,children:r.group_type==="none"?e.map(a=>je.jsx(Jn,{item:!0,xs:12,children:je.jsx(zP,{...a})},a.title+a.description)):je.jsx(N5e,{type:r.group_type,groupsInfo:o,tests:e})})})]})})},B5e=e=>je.jsx(je.Fragment,{children:je.jsx($P,{children:e.text})}),z5e=({children:e})=>je.jsx(je.Fragment,{children:e}),q5e=et.createContext({WidgetWrapper:z5e}),W5e=()=>$e.useContext(q5e);function ff(e){return e.palette.mode==="dark"?uS:cS}function df(e){return e.palette.mode==="light"?cS:uS}const py=e=>{const[t,r]=$e.useState({open:!1});return je.jsxs(rS,{elevation:0,onClick:i=>r(u=>({open:!u.open,anchorEl:i.currentTarget})),sx:[{border:"1px solid",borderColor:i=>i.palette.divider},{color:i=>df(i)(i.palette.info.main,.6),backgroundColor:i=>ff(i)(i.palette.info.main,.9)},e.data.state==="success"&&{color:i=>df(i)(i.palette.success.main,.6),backgroundColor:i=>ff(i)(i.palette.success.main,.9)},e.data.state==="warning"&&{color:i=>df(i)(i.palette.warning.main,.6),backgroundColor:i=>ff(i)(i.palette.warning.main,.9)},e.data.state==="error"&&{color:i=>df(i)(i.palette.error.main,.6),backgroundColor:i=>ff(i)(i.palette.error.main,.9)}],children:[je.jsx(Cr,{align:"center",variant:"h6",component:"div",children:e.data.value}),je.jsx(Cr,{align:"center",variant:"body1",component:"div",children:e.data.text}),je.jsx(iS,{open:t.open,anchorEl:t.anchorEl,anchorOrigin:{horizontal:"left",vertical:"bottom"},children:e.customPopup??je.jsx(Cr,{padding:1,children:e.data.longText})})]})},Q5=e=>{const{alertStats:t}=e;return je.jsx(py,{data:{value:`${t.triggered.last_24h}`,state:"info",text:"alerts in the last 24 hours",longText:"alerts triggered in the period / alerts triggered in 24 hours / alerts active "},customPopup:je.jsx(Cr,{sx:{pr:1},children:je.jsxs("ul",{children:[je.jsxs("li",{children:[t.triggered.period," alerts triggered in the period"]}),je.jsxs("li",{children:[t.triggered.last_24h," alerts triggered in 24 hours"]}),je.jsxs("li",{children:[t.active," total active alerts"]})]})})})};function U5e(e){return e===12?{xs:12,sm:12,md:12,lg:12}:e===6?{xs:12,sm:12,md:6,lg:6}:e===3?{xs:12,sm:6,md:3,lg:3}:{xs:6,sm:3,md:1,lg:1}}const H5e=e=>{const{size:t}=e,r=e.children.alertsPosition??"row",{id:i,title:u,details:o,content:a,alerts:n,alertStats:l,insights:f}=e.children,s=n===void 0?!1:n.length>0,c=f===void 0?!1:f.length>0,{WidgetWrapper:d}=W5e();return je.jsx(Jn,{item:!0,...U5e(t),children:je.jsx(d,{id:i,children:je.jsx(sE,{elevation:0,children:je.jsx(uE,{children:je.jsxs(Jn,{container:!0,spacing:1,direction:"column",children:[r==="row"?je.jsxs(Jn,{container:!0,spacing:1,item:!0,children:[je.jsxs(Jn,{item:!0,xs:s&&r==="row"?9:12,children:[u?je.jsx(Cr,{fontWeight:500,variant:"h5",children:u}):je.jsx("div",{}),je.jsx("div",{children:a}),o?je.jsx(Cr,{variant:"subtitle1",children:o}):je.jsx("div",{})]}),s?je.jsx(Jn,{container:!0,spacing:1,direction:"column",justifyContent:"center",item:!0,xs:3,children:n?je.jsxs(et.Fragment,{children:[l?je.jsx(Jn,{item:!0,children:je.jsx(Q5,{alertStats:l})}):je.jsx("div",{}),n.map(h=>je.jsx(Jn,{item:!0,children:je.jsx(py,{data:h})}))]}):je.jsx("div",{})}):je.jsx("div",{})]}):je.jsxs(et.Fragment,{children:[je.jsxs(Jn,{item:!0,children:[u?je.jsx(Cr,{variant:"h5",children:u}):je.jsx("div",{}),je.jsx("div",{children:a}),o?je.jsx(Cr,{variant:"subtitle1",children:o}):je.jsx("div",{})]}),s?je.jsx(Jn,{item:!0,xs:!0,children:je.jsx(Jn,{container:!0,direction:"row",spacing:1,children:n?je.jsxs(et.Fragment,{children:[l?je.jsx(Jn,{item:!0,xs:!0,children:je.jsx(Q5,{alertStats:l})}):je.jsx("div",{}),n.map(h=>je.jsx(Jn,{item:!0,xs:!0,children:je.jsx(py,{data:h})}))]}):je.jsx("div",{})})}):je.jsx("div",{})]}),c?f==null?void 0:f.map(h=>je.jsx(Jn,{item:!0,xs:!0,sm:!0,md:!0,children:je.jsx(bC,{data:h})})):je.jsx("div",{})]})})})})})};class qP extends et.Component{render(){return je.jsx(Jn,{container:!0,alignItems:"stretch",spacing:1,direction:"row",mt:1,children:this.props.children})}}const V5e=e=>{const[t,r]=et.useState({page:0}),i=e.widgets.slice(t.page*e.pageSize,(t.page+1)*e.pageSize);return je.jsxs(qP,{children:[i.map((u,o)=>Tc(`wi_${o}`,u)),je.jsxs(Jn,{item:!0,xs:12,children:[je.jsx(hi,{startIcon:je.jsx(cE,{}),disabled:t.page===0,onClick:()=>r(u=>({page:u.page-1})),children:"Previous"}),je.jsxs("span",{children:[t.page+1," / ",Math.round(e.widgets.length/e.pageSize)]}),je.jsx(hi,{endIcon:je.jsx(fE,{}),disabled:t.page>=e.widgets.length/e.pageSize-1,onClick:()=>r(u=>({page:u.page+1})),children:"Next"})]})]})};function Y5e(e){return e===hf.Small?3:e===hf.Medium?6:(e===hf.Big,12)}function Tc(e,t){let r=je.jsx(xC,{});if(t.type==="counter")r=je.jsx(c3e,{...t.params});else if(t.type==="percent")r=je.jsx(f3e,{...t.params});else if(t.type==="big_graph")r=je.jsx(Pd,{...t.params,widgetSize:t.size});else if(t.type==="tabbed_graph")r=je.jsx(h3e,{...t.params,widgetSize:t.size});else if(t.type==="tabs")r=je.jsx(p3e,{...t,widgetSize:t.size,id:"twc_"});else if(t.type==="table")r=je.jsx(g3e,{...t.params});else if(t.type==="big_table")r=je.jsx(u3e,{...t.params,widgetSize:t.size});else if(t.type==="group")r=je.jsx(qP,{children:t.widgets.map((i,u)=>Tc(`wi_${u}`,i))});else if(t.type==="rich_data")r=je.jsx(d3e,{...t.params,widgetSize:t.size});else if(t.type==="list"){const i=t;r=je.jsx(V5e,{widgets:i.widgets,pageSize:i.pageSize,widgetSize:t.size})}else t.type==="text"?r=je.jsx(B5e,{...t.params}):t.type==="test_suite"&&(r=je.jsx($5e,{...t.params}));return je.jsx(H5e,{size:Y5e(t.size),children:{...t,content:r}},e)}const eSe=({widgets:e})=>je.jsx(je.Fragment,{children:e.length>0&&e.map((t,r)=>je.jsx(et.Fragment,{children:Tc(`wi_${r}`,t)},t.id))});export{J5e as C,eSe as D,yC as a}; diff --git a/src/evidently/ui/assets/static/js/DashboardWidgets-B4lotoT2.js b/src/evidently/ui/assets/static/js/DashboardWidgets-B4lotoT2.js new file mode 100644 index 0000000000..52dbdbf817 --- /dev/null +++ b/src/evidently/ui/assets/static/js/DashboardWidgets-B4lotoT2.js @@ -0,0 +1 @@ +import{j as r,T as a,G as e}from"./vendor-C2GWNUp2.js";import{D as n}from"./DashboardContent-B-RwgqJG.js";import"./DashboardViewParams-D9XhJzJS.js";import"./index-D-BBKVDE.js";const m=({widgets:t})=>t.length===0?r.jsx(a,{my:3,align:"center",variant:"h4",children:"This dashboard is currently empty. Please add a monitoring panel to start."}):r.jsx(r.Fragment,{children:r.jsx(e,{container:!0,spacing:3,direction:"row",alignItems:"stretch",children:r.jsx(n,{widgets:t})})});export{m as DashboardWidgets}; diff --git a/src/evidently/ui/assets/static/js/DashboardWidgets-BRGpEdMo.js b/src/evidently/ui/assets/static/js/DashboardWidgets-BRGpEdMo.js deleted file mode 100644 index 5ba997a62a..0000000000 --- a/src/evidently/ui/assets/static/js/DashboardWidgets-BRGpEdMo.js +++ /dev/null @@ -1 +0,0 @@ -import{j as r,T as e,G as n}from"./vendor-C2GWNUp2.js";import{D as i}from"./DashboardContent-Ka8LC1DI.js";import"./DashboardViewParams-D9XhJzJS.js";import"./index-BnvKIZBQ.js";const h=({widgets:t,ItemWrapper:a})=>t.length===0?r.jsx(e,{my:3,align:"center",variant:"h4",children:"This dashboard is currently empty. Please add a monitoring panel to start."}):r.jsx(r.Fragment,{children:r.jsx(n,{container:!0,spacing:3,direction:"row",alignItems:"stretch",children:r.jsx(i,{widgets:t,ItemWrapper:a})})});export{h as DashboardWidgets}; diff --git a/src/evidently/ui/assets/static/js/index-CWfr-A2J.js b/src/evidently/ui/assets/static/js/index-Be9iI6RW.js similarity index 91% rename from src/evidently/ui/assets/static/js/index-CWfr-A2J.js rename to src/evidently/ui/assets/static/js/index-Be9iI6RW.js index 0f84901597..529e13542b 100644 --- a/src/evidently/ui/assets/static/js/index-CWfr-A2J.js +++ b/src/evidently/ui/assets/static/js/index-Be9iI6RW.js @@ -1 +1 @@ -import{ak as l,m as p,a5 as x,K as e,q as c,j as s}from"./vendor-C2GWNUp2.js";import{D as h}from"./index-BnvKIZBQ.js";import{D as j}from"./DashboardViewParams-D9XhJzJS.js";const g=({Dashboard:o,OnClickedPointComponent:r,OnHoveredPlotComponent:m})=>{const{projectId:i}=l();p(i);const a=x(),n=a.min_timestamp!==null&&a.max_timestamp!==null,d={minDate:e(a.min_timestamp),maxDate:e(a.max_timestamp)},[t,D]=c("dashboard-hide-dates",!1);return s.jsxs(s.Fragment,{children:[s.jsx(h,{dataRanges:d,isShowDateFilter:n,isDashboardHideDates:t,setIsDashboardHideDates:D}),s.jsx(j.Provider,{value:{isXaxisAsCategorical:t,OnClickedPointComponent:r,OnHoveredPlotComponent:m},children:s.jsx(o,{data:a})})]})};export{g as DashboardComponentTemplate}; +import{ak as l,m as p,a5 as x,K as e,q as c,j as s}from"./vendor-C2GWNUp2.js";import{D as h}from"./index-D-BBKVDE.js";import{D as j}from"./DashboardViewParams-D9XhJzJS.js";const g=({Dashboard:o,OnClickedPointComponent:r,OnHoveredPlotComponent:m})=>{const{projectId:i}=l();p(i);const a=x(),n=a.min_timestamp!==null&&a.max_timestamp!==null,d={minDate:e(a.min_timestamp),maxDate:e(a.max_timestamp)},[t,D]=c("dashboard-hide-dates",!1);return s.jsxs(s.Fragment,{children:[s.jsx(h,{dataRanges:d,isShowDateFilter:n,isDashboardHideDates:t,setIsDashboardHideDates:D}),s.jsx(j.Provider,{value:{isXaxisAsCategorical:t,OnClickedPointComponent:r,OnHoveredPlotComponent:m},children:s.jsx(o,{data:a})})]})};export{g as DashboardComponentTemplate}; diff --git a/src/evidently/ui/assets/static/js/index-DJ2Ae9EQ.js b/src/evidently/ui/assets/static/js/index-BlQyByTT.js similarity index 99% rename from src/evidently/ui/assets/static/js/index-DJ2Ae9EQ.js rename to src/evidently/ui/assets/static/js/index-BlQyByTT.js index c1d7808e80..2c15a94110 100644 --- a/src/evidently/ui/assets/static/js/index-DJ2Ae9EQ.js +++ b/src/evidently/ui/assets/static/js/index-BlQyByTT.js @@ -1 +1 @@ -import{R as oe,j as r,p as z,al as Ea,am as Da,P as Ma,an as Ia,ao as $a,M as Aa,r as y,B as $,ap as Q,I as G,aq as Fa,a8 as _a,ah as Ka,ak as Pa,a5 as Oa,X as Ua,ab as Qa,Z as Za,m as Wa,J as za,q as Ha,a7 as qa,T as de,ar as Ga,as as Xa,at as Z,au as I,av as Ya,aw as er,K as ar,o as rr,af as tr,ac as nr,G as W,ax as sr,aj as ce,F as lr,x as ir}from"./vendor-C2GWNUp2.js";import{u as or}from"./index-BnvKIZBQ.js";const dr=[{title:"Download HTML",format:"html"},{title:"Download JSON",format:"json"}];function cr(a){const[e,t]=oe.useState(!1),n=oe.useRef(null),c=(s,d)=>{window.open(`${s}?report_format=${d}`,"_blank"),t(!1)},o=()=>{t(s=>!s)},i=s=>{var d;(d=n.current)!=null&&d.contains(s.target)||t(!1)};return r.jsxs(r.Fragment,{children:[r.jsx(z,{disabled:a.disabled,variant:a.variant,ref:n,color:"primary","aria-controls":e?"split-button-menu":void 0,"aria-expanded":e?"true":void 0,"aria-label":"select merge strategy","aria-haspopup":"menu",onClick:o,children:"Download"}),r.jsx(Ea,{open:e,anchorEl:n.current,transition:!0,children:({TransitionProps:s,placement:d})=>r.jsx(Da,{...s,style:{transformOrigin:d==="bottom"?"center top":"center bottom"},children:r.jsx(Ma,{children:r.jsx(Ia,{onClickAway:i,children:r.jsx($a,{id:"split-button-menu",children:dr.map(v=>r.jsx(Aa,{onClick:()=>c(a.downloadLink,v.format),children:v.title},v.format))})})})})})]})}const vr=({onClick:a,tags:e,limitTags:t=2})=>{const[n,c]=y.useState(!1);return r.jsxs($,{display:"flex",alignContent:"center",flexWrap:"wrap",children:[e.slice(0,t).map(o=>r.jsx(Q,{onClick:()=>a(o),label:o,style:{margin:3}},o)),n&&e.slice(t).map(o=>r.jsx(Q,{onClick:()=>a(o),label:o,style:{margin:3}},o)),!n&&e.length>t&&r.jsx(Q,{variant:"outlined",label:`+${e.length-t}`,style:{margin:3,borderColor:"grey"},onClick:()=>c(!0)},"+N"),e.length>0&&n&&r.jsx(G,{style:{margin:3},onClick:()=>c(!1),children:r.jsx(Fa,{fontSize:"small"})})]})},ur=({showText:a,copyText:e})=>r.jsxs($,{children:[a,r.jsx(G,{size:"small",style:{marginLeft:10},onClick:()=>navigator.clipboard.writeText(e),children:r.jsx(_a,{fontSize:"small"})})]});function l(){return l=Object.assign?Object.assign.bind():function(a){for(var e=1;el({},a,e),yr=()=>y.useContext(pe),X=y.createContext(()=>{});X.displayName="JVR.DispatchShowTools";function mr(){return y.useReducer(pr,ue)}function ye(){return y.useContext(X)}var me=a=>{var{initial:e,dispatch:t,children:n}=a;return r.jsx(pe.Provider,{value:e,children:r.jsx(X.Provider,{value:t,children:n})})};me.displayName="JVR.ShowTools";var fe={},he=y.createContext(fe),fr=(a,e)=>l({},a,e),U=()=>y.useContext(he),Y=y.createContext(()=>{});Y.displayName="JVR.DispatchExpands";function hr(){return y.useReducer(fr,fe)}function jr(){return y.useContext(Y)}var je=a=>{var{initial:e,dispatch:t,children:n}=a;return r.jsx(he.Provider,{value:e,children:r.jsx(Y.Provider,{value:t,children:n})})};je.displayName="JVR.Expands";var xe={Str:{as:"span","data-type":"string",style:{color:"var(--w-rjv-type-string-color, #cb4b16)"},className:"w-rjv-type",children:"string"},Url:{as:"a",style:{color:"var(--w-rjv-type-url-color, #0969da)"},"data-type":"url",className:"w-rjv-type",children:"url"},Undefined:{style:{color:"var(--w-rjv-type-undefined-color, #586e75)"},as:"span","data-type":"undefined",className:"w-rjv-type",children:"undefined"},Null:{style:{color:"var(--w-rjv-type-null-color, #d33682)"},as:"span","data-type":"null",className:"w-rjv-type",children:"null"},Map:{style:{color:"var(--w-rjv-type-map-color, #268bd2)",marginRight:3},as:"span","data-type":"map",className:"w-rjv-type",children:"Map"},Nan:{style:{color:"var(--w-rjv-type-nan-color, #859900)"},as:"span","data-type":"nan",className:"w-rjv-type",children:"NaN"},Bigint:{style:{color:"var(--w-rjv-type-bigint-color, #268bd2)"},as:"span","data-type":"bigint",className:"w-rjv-type",children:"bigint"},Int:{style:{color:"var(--w-rjv-type-int-color, #268bd2)"},as:"span","data-type":"int",className:"w-rjv-type",children:"int"},Set:{style:{color:"var(--w-rjv-type-set-color, #268bd2)",marginRight:3},as:"span","data-type":"set",className:"w-rjv-type",children:"Set"},Float:{style:{color:"var(--w-rjv-type-float-color, #859900)"},as:"span","data-type":"float",className:"w-rjv-type",children:"float"},True:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},False:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},Date:{style:{color:"var(--w-rjv-type-date-color, #268bd2)"},as:"span","data-type":"date",className:"w-rjv-type",children:"date"}},Ne=y.createContext(xe),xr=(a,e)=>l({},a,e),b=()=>y.useContext(Ne),ee=y.createContext(()=>{});ee.displayName="JVR.DispatchTypes";function Nr(){return y.useReducer(xr,xe)}function wr(){return y.useContext(ee)}function we(a){var{initial:e,dispatch:t,children:n}=a;return r.jsx(Ne.Provider,{value:e,children:r.jsx(ee.Provider,{value:t,children:n})})}we.displayName="JVR.Types";var Cr=["style"];function Ce(a){var{style:e}=a,t=j(a,Cr),n=l({cursor:"pointer",height:"1em",width:"1em",userSelect:"none",display:"inline-flex"},e);return r.jsx("svg",l({viewBox:"0 0 24 24",fill:"var(--w-rjv-arrow-color, currentColor)",style:n},t,{children:r.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})}))}Ce.displayName="JVR.TriangleArrow";var ge={Arrow:{as:"span",className:"w-rjv-arrow",style:{transform:"rotate(0deg)",transition:"all 0.3s"},children:r.jsx(Ce,{})},Colon:{as:"span",style:{color:"var(--w-rjv-colon-color, var(--w-rjv-color))",marginLeft:0,marginRight:2},className:"w-rjv-colon",children:":"},Quote:{as:"span",style:{color:"var(--w-rjv-quotes-color, #236a7c)"},className:"w-rjv-quotes",children:'"'},ValueQuote:{as:"span",style:{color:"var(--w-rjv-quotes-string-color, #cb4b16)"},className:"w-rjv-quotes",children:'"'},BracketsLeft:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-start",children:"["},BracketsRight:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-end",children:"]"},BraceLeft:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-start",children:"{"},BraceRight:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-end",children:"}"}},be=y.createContext(ge),gr=(a,e)=>l({},a,e),V=()=>y.useContext(be),ae=y.createContext(()=>{});ae.displayName="JVR.DispatchSymbols";function br(){return y.useReducer(gr,ge)}function kr(){return y.useContext(ae)}var ke=a=>{var{initial:e,dispatch:t,children:n}=a;return r.jsx(be.Provider,{value:e,children:r.jsx(ae.Provider,{value:t,children:n})})};ke.displayName="JVR.Symbols";var Re={Copied:{className:"w-rjv-copied",style:{height:"1em",width:"1em",cursor:"pointer",verticalAlign:"middle",marginLeft:5}},CountInfo:{as:"span",className:"w-rjv-object-size",style:{color:"var(--w-rjv-info-color, #0000004d)",paddingLeft:8,fontStyle:"italic"}},CountInfoExtra:{as:"span",className:"w-rjv-object-extra",style:{paddingLeft:8}},Ellipsis:{as:"span",style:{cursor:"pointer",color:"var(--w-rjv-ellipsis-color, #cb4b16)",userSelect:"none"},className:"w-rjv-ellipsis",children:"..."},Row:{as:"div",className:"w-rjv-line"},KeyName:{as:"span",className:"w-rjv-object-key"}},Se=y.createContext(Re),Rr=(a,e)=>l({},a,e),B=()=>y.useContext(Se),re=y.createContext(()=>{});re.displayName="JVR.DispatchSection";function Sr(){return y.useReducer(Rr,Re)}function Vr(){return y.useContext(re)}var Ve=a=>{var{initial:e,dispatch:t,children:n}=a;return r.jsx(Se.Provider,{value:e,children:r.jsx(re.Provider,{value:t,children:n})})};Ve.displayName="JVR.Section";var Le={objectSortKeys:!1,indentWidth:15},te=y.createContext(Le);te.displayName="JVR.Context";var Te=y.createContext(()=>{});Te.displayName="JVR.DispatchContext";function Lr(a,e){return l({},a,e)}var K=()=>y.useContext(te),Je=a=>{var{children:e,initialState:t,initialTypes:n}=a,[c,o]=y.useReducer(Lr,Object.assign({},Le,t)),[i,s]=mr(),[d,v]=hr(),[u,p]=Nr(),[m,f]=br(),[x,N]=Sr();return y.useEffect(()=>o(l({},t)),[t]),r.jsx(te.Provider,{value:c,children:r.jsx(Te.Provider,{value:o,children:r.jsx(me,{initial:i,dispatch:s,children:r.jsx(je,{initial:d,dispatch:v,children:r.jsx(we,{initial:l({},u,n),dispatch:p,children:r.jsx(ke,{initial:m,dispatch:f,children:r.jsx(Ve,{initial:x,dispatch:N,children:e})})})})})})})};Je.displayName="JVR.Provider";function Tr(a){if(a==null)throw new TypeError("Cannot destructure "+a)}var Jr=["isNumber","value","parentValue","keyName","keys"],Br=["as","render"],Er=["as","render"],Dr=["as","render"],Mr=["as","style","render"],Ir=["as","render"],$r=["as","render"],Ar=["as","render"],Fr=["as","render"],H=a=>{var{Quote:e={}}=V(),{isNumber:t,value:n,parentValue:c,keyName:o,keys:i}=a,s=j(a,Jr);if(t)return null;var{as:d,render:v}=e,u=j(e,Br),p=d||"span",m=l({},s,u),f={value:n,parentValue:c,keyName:o,keys:i||(o?[o]:[])},x=v&&typeof v=="function"&&v(m,f);return x||r.jsx(p,l({},m))};H.displayName="JVR.Quote";var O=a=>{var{ValueQuote:e={}}=V(),t=l({},(Tr(a),a)),{as:n,render:c}=e,o=j(e,Er),i=n||"span",s=l({},t,o),d=c&&typeof c=="function"&&c(s,{});return d||r.jsx(i,l({},s))};O.displayName="JVR.ValueQuote";var Be=a=>{var{value:e,parentValue:t,keyName:n,keys:c}=a,{Colon:o={}}=V(),{as:i,render:s}=o,d=j(o,Dr),v=i||"span",u=s&&typeof s=="function"&&s(d,{value:e,parentValue:t,keyName:n,keys:c||(n?[n]:[])});return u||r.jsx(v,l({},d))};Be.displayName="JVR.Colon";var Ee=a=>{var{Arrow:e={}}=V(),t=U(),{expandKey:n,style:c,value:o,parentValue:i,keyName:s,keys:d}=a,v=!!t[n],{as:u,style:p,render:m}=e,f=j(e,Mr),x=u||"span",N=m&&typeof m=="function",w=l({},f,{"data-expanded":v,style:l({},p,c)}),k={value:o,parentValue:i,keyName:s,keys:d||(s?[s]:[])},C=N&&m(w,k);return C||r.jsx(x,l({},f,{style:l({},p,c)}))};Ee.displayName="JVR.Arrow";var De=a=>{var{isBrackets:e,value:t,parentValue:n,keyName:c,keys:o}=a,{BracketsLeft:i={},BraceLeft:s={}}=V(),d={value:t,parentValue:n,keyName:c,keys:o||(c?[c]:[])};if(e){var{as:v,render:u}=i,p=j(i,Ir),m=v||"span",f=u&&typeof u=="function"&&u(p,d);return f||r.jsx(m,l({},p))}var{as:x,render:N}=s,w=j(s,$r),k=x||"span",C=N&&typeof N=="function"&&N(w,d);return C||r.jsx(k,l({},w))};De.displayName="JVR.BracketsOpen";var ne=a=>{var{isBrackets:e,isVisiable:t,value:n,parentValue:c,keyName:o,keys:i}=a,s={value:n,parentValue:c,keyName:o,keys:i||(o?[o]:[])};if(!t)return null;var{BracketsRight:d={},BraceRight:v={}}=V();if(e){var{as:u,render:p}=d,m=j(d,Ar),f=u||"span",x=p&&typeof p=="function"&&p(m,s);return x||r.jsx(f,l({},m))}var{as:N,render:w}=v,k=j(v,Fr),C=N||"span",S=w&&typeof w=="function"&&w(k,s);return S||r.jsx(C,l({},k))};ne.displayName="JVR.BracketsClose";var Me=a=>{var e,{value:t,expandKey:n,level:c,keys:o=[]}=a,i=U(),s=Array.isArray(t),{collapsed:d,shouldExpandNodeInitially:v}=K(),u=t instanceof Set,p=typeof d=="boolean"?d:typeof d=="number"?c>d:!1,m=(e=i[n])!=null?e:p,f=Object.keys(t).length;if(i[n]===void 0&&v&&v(m,{value:t,keys:o,level:c})||m||f===0)return null;var x={paddingLeft:4};return r.jsx("div",{style:x,children:r.jsx(ne,{isBrackets:s||u,isVisiable:!0})})};Me.displayName="JVR.NestedClose";var _r=["as","render"],Kr=["as","render"],Pr=["as","render"],Or=["as","render"],Ur=["as","render"],Qr=["as","render"],Zr=["as","render"],Wr=["as","render"],zr=["as","render"],Hr=["as","render"],qr=["as","render"],Gr=["as","render"],Xr=["as","render"],q=a=>{if(a===void 0)return"0n";if(typeof a=="string")try{a=BigInt(a)}catch{return"0n"}return a?a.toString()+"n":"0n"},Ie=a=>{var{value:e,keyName:t}=a,{Set:n={},displayDataTypes:c}=b(),o=e instanceof Set;if(!o||!c)return null;var{as:i,render:s}=n,d=j(n,_r),v=s&&typeof s=="function",u=v&&s(d,{type:"type",value:e,keyName:t});if(u)return u;var p=i||"span";return r.jsx(p,l({},d))};Ie.displayName="JVR.SetComp";var $e=a=>{var{value:e,keyName:t}=a,{Map:n={},displayDataTypes:c}=b(),o=e instanceof Map;if(!o||!c)return null;var{as:i,render:s}=n,d=j(n,Kr),v=s&&typeof s=="function",u=v&&s(d,{type:"type",value:e,keyName:t});if(u)return u;var p=i||"span";return r.jsx(p,l({},d))};$e.displayName="JVR.MapComp";var D={opacity:.75,paddingRight:4},Ae=a=>{var{children:e="",keyName:t}=a,{Str:n={},displayDataTypes:c}=b(),{shortenTextAfterLength:o=30}=K(),{as:i,render:s}=n,d=j(n,Pr),v=e,[u,p]=y.useState(o&&v.length>o);y.useEffect(()=>p(o&&v.length>o),[o]);var m=i||"span",f=l({},D,n.style||{});o>0&&(d.style=l({},d.style,{cursor:v.length<=o?"initial":"pointer"}),v.length>o&&(d.onClick=()=>{p(!u)}));var x=u?v.slice(0,o)+"...":v,N=s&&typeof s=="function",w=N&&s(l({},d,{style:f}),{type:"type",value:e,keyName:t}),k=N&&s(l({},d,{children:x,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(w||r.jsx(m,l({},d,{style:f}))),k||r.jsxs(y.Fragment,{children:[r.jsx(O,{}),r.jsx(m,l({},d,{className:"w-rjv-value",children:x})),r.jsx(O,{})]})]})};Ae.displayName="JVR.TypeString";var Fe=a=>{var{children:e,keyName:t}=a,{True:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Or),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m||r.jsx(d,l({},s,{className:"w-rjv-value",children:e==null?void 0:e.toString()}))]})};Fe.displayName="JVR.TypeTrue";var _e=a=>{var{children:e,keyName:t}=a,{False:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Ur),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m||r.jsx(d,l({},s,{className:"w-rjv-value",children:e==null?void 0:e.toString()}))]})};_e.displayName="JVR.TypeFalse";var Ke=a=>{var{children:e,keyName:t}=a,{Float:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Qr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m||r.jsx(d,l({},s,{className:"w-rjv-value",children:e==null?void 0:e.toString()}))]})};Ke.displayName="JVR.TypeFloat";var Pe=a=>{var{children:e,keyName:t}=a,{Int:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Zr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m||r.jsx(d,l({},s,{className:"w-rjv-value",children:e==null?void 0:e.toString()}))]})};Pe.displayName="JVR.TypeInt";var Oe=a=>{var{children:e,keyName:t}=a,{Bigint:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Wr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m||r.jsx(d,l({},s,{className:"w-rjv-value",children:q(e==null?void 0:e.toString())}))]})};Oe.displayName="JVR.TypeFloat";var Ue=a=>{var{children:e,keyName:t}=a,{Url:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,zr),d=o||"span",v=l({},D,n.style),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e==null?void 0:e.href,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m||r.jsxs("a",l({href:e==null?void 0:e.href,target:"_blank"},s,{className:"w-rjv-value",children:[r.jsx(O,{}),e==null?void 0:e.href,r.jsx(O,{})]}))]})};Ue.displayName="JVR.TypeUrl";var Qe=a=>{var{children:e,keyName:t}=a,{Date:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Hr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=e instanceof Date?e.toLocaleString():e,f=u&&i(l({},s,{children:m,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),f||r.jsx(d,l({},s,{className:"w-rjv-value",children:m}))]})};Qe.displayName="JVR.TypeDate";var Ze=a=>{var{children:e,keyName:t}=a,{Undefined:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,qr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m]})};Ze.displayName="JVR.TypeUndefined";var We=a=>{var{children:e,keyName:t}=a,{Null:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Gr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m]})};We.displayName="JVR.TypeNull";var ze=a=>{var{children:e,keyName:t}=a,{Nan:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Xr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e==null?void 0:e.toString(),className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m]})};ze.displayName="JVR.TypeNan";var Yr=a=>Number(a)===a&&a%1!==0||isNaN(a),He=a=>{var{value:e,keyName:t}=a,n={keyName:t};return e instanceof URL?r.jsx(Ue,l({},n,{children:e})):typeof e=="string"?r.jsx(Ae,l({},n,{children:e})):e===!0?r.jsx(Fe,l({},n,{children:e})):e===!1?r.jsx(_e,l({},n,{children:e})):e===null?r.jsx(We,l({},n,{children:e})):e===void 0?r.jsx(Ze,l({},n,{children:e})):e instanceof Date?r.jsx(Qe,l({},n,{children:e})):typeof e=="number"&&isNaN(e)?r.jsx(ze,l({},n,{children:e})):typeof e=="number"&&Yr(e)?r.jsx(Ke,l({},n,{children:e})):typeof e=="bigint"?r.jsx(Oe,l({},n,{children:e})):typeof e=="number"?r.jsx(Pe,l({},n,{children:e})):null};He.displayName="JVR.Value";function F(a,e,t){var n=kr(),c=[a.className,e.className].filter(Boolean).join(" "),o=l({},a,e,{className:c,style:l({},a.style,e.style),children:e.children||a.children});y.useEffect(()=>n({[t]:o}),[e])}function T(a,e,t){var n=wr(),c=[a.className,e.className].filter(Boolean).join(" "),o=l({},a,e,{className:c,style:l({},a.style,e.style),children:e.children||a.children});y.useEffect(()=>n({[t]:o}),[e])}function P(a,e,t){var n=Vr(),c=[a.className,e.className].filter(Boolean).join(" "),o=l({},a,e,{className:c,style:l({},a.style,e.style),children:e.children||a.children});y.useEffect(()=>n({[t]:o}),[e])}var et=["as","render"],qe=a=>{var{KeyName:e={}}=B();return P(e,a,"KeyName"),null};qe.displayName="JVR.KeyName";var Ge=a=>{var{children:e,value:t,parentValue:n,keyName:c,keys:o}=a,i=typeof e=="number",s={color:i?"var(--w-rjv-key-number, #268bd2)":"var(--w-rjv-key-string, #002b36)"},{KeyName:d={}}=B(),{as:v,render:u}=d,p=j(d,et);p.style=l({},p.style,s);var m=v||"span",f=u&&typeof u=="function"&&u(l({},p,{children:e}),{value:t,parentValue:n,keyName:c,keys:o||(c?[c]:[])});return f||r.jsx(m,l({},p,{children:e}))};Ge.displayName="JVR.KeyNameComp";var at=["children","value","parentValue","keyName","keys"],rt=["as","render","children"],Xe=a=>{var{Row:e={}}=B();return P(e,a,"Row"),null};Xe.displayName="JVR.Row";var Ye=a=>{var{children:e,value:t,parentValue:n,keyName:c,keys:o}=a,i=j(a,at),{Row:s={}}=B(),{as:d,render:v}=s,u=j(s,rt),p=d||"div",m=v&&typeof v=="function"&&v(l({},i,u,{children:e}),{value:t,keyName:c,parentValue:n,keys:o});return m||r.jsx(p,l({},i,u,{children:e}))};Ye.displayName="JVR.RowComp";function tt(a){var e=y.useRef();return y.useEffect(()=>{e.current=a}),e.current}function nt(a){var{value:e,highlightUpdates:t,highlightContainer:n}=a,c=tt(e),o=y.useMemo(()=>{if(!t||c===void 0)return!1;if(typeof e!=typeof c)return!0;if(typeof e=="number")return isNaN(e)&&isNaN(c)?!1:e!==c;if(Array.isArray(e)!==Array.isArray(c))return!0;if(typeof e=="object"||typeof e=="function")return!1;if(e!==c)return!0},[t,e]);y.useEffect(()=>{n&&n.current&&o&&"animate"in n.current&&n.current.animate([{backgroundColor:"var(--w-rjv-update-color, #ebcb8b)"},{backgroundColor:""}],{duration:1e3,easing:"ease-in"})},[o,e,n])}var st=["keyName","value","parentValue","expandKey","keys"],lt=["as","render"],se=a=>{var{keyName:e,value:t,parentValue:n,expandKey:c,keys:o}=a,i=j(a,st),{onCopied:s,enableClipboard:d}=K(),v=yr(),u=v[c],[p,m]=y.useState(!1),{Copied:f={}}=B();if(d===!1||!u)return null;var x=_=>{_.stopPropagation();var J="";typeof t=="number"&&t===1/0?J="Infinity":typeof t=="number"&&isNaN(t)?J="NaN":typeof t=="bigint"?J=q(t):t instanceof Date?J=t.toLocaleString():J=JSON.stringify(t,(R,M)=>typeof M=="bigint"?q(M):M,2),s&&s(J,t),m(!0);var h=navigator.clipboard||{writeText(R){return new Promise((M,A)=>{var L=document.createElement("textarea");L.style.position="absolute",L.style.opacity="0",L.style.left="-99999999px",L.value=R,document.body.appendChild(L),L.select(),document.execCommand("copy")?M():A(),L.remove()})}};h.writeText(J).then(()=>{var R=setTimeout(()=>{m(!1),clearTimeout(R)},3e3)}).catch(R=>{})},N={style:{display:"inline-flex"},fill:p?"var(--w-rjv-copied-success-color, #28a745)":"var(--w-rjv-copied-color, currentColor)",onClick:x},{render:w}=f,k=j(f,lt),C=l({},k,i,N,{style:l({},k.style,i.style,N.style)}),S=w&&typeof w=="function",E=S&&w(l({},C,{"data-copied":p}),{value:t,keyName:e,keys:o,parentValue:n});return E||(p?r.jsx("svg",l({viewBox:"0 0 32 36"},C,{children:r.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})):r.jsx("svg",l({viewBox:"0 0 32 36"},C,{children:r.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})))};se.displayName="JVR.Copied";function ea(){var a=y.useRef(null);return a.current===null&&(a.current="custom-id-"+Math.random().toString(36).substr(2,9)),a.current}var aa=a=>{var e,{value:t,expandKey:n="",level:c,keys:o=[]}=a,i=U(),{objectSortKeys:s,indentWidth:d,collapsed:v,shouldExpandNodeInitially:u}=K(),p=Array.isArray(t),m=typeof v=="boolean"?v:typeof v=="number"?c>v:!1,f=(e=i[n])!=null?e:m;if(i[n]===void 0&&u&&u(f,{value:t,keys:o,level:c})||f)return null;var x=p?Object.entries(t).map(w=>[Number(w[0]),w[1]]):Object.entries(t);s&&(x=s===!0?x.sort((w,k)=>{var[C]=w,[S]=k;return typeof C=="string"&&typeof S=="string"?C.localeCompare(S):0}):x.sort((w,k)=>{var[C,S]=w,[E,_]=k;return typeof C=="string"&&typeof E=="string"?s(C,E,S,_):0}));var N={borderLeft:"var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",paddingLeft:d,marginLeft:6};return r.jsx("div",{className:"w-rjv-wrap",style:N,children:x.map((w,k)=>{var[C,S]=w;return r.jsx(ra,{parentValue:t,keyName:C,keys:[...o,C],value:S,level:c},k)})})};aa.displayName="JVR.KeyValues";var le=a=>{var{keyName:e,parentValue:t,keys:n,value:c}=a,{highlightUpdates:o}=K(),i=typeof e=="number",s=y.useRef(null);nt({value:c,highlightUpdates:o,highlightContainer:s});var d={keyName:e,value:c,keys:n,parentValue:t};return r.jsxs(y.Fragment,{children:[r.jsxs("span",{ref:s,children:[r.jsx(H,l({isNumber:i,"data-placement":"left"},d)),r.jsx(Ge,l({},d,{children:e})),r.jsx(H,l({isNumber:i,"data-placement":"right"},d))]}),r.jsx(Be,l({},d))]})};le.displayName="JVR.KayName";var ra=a=>{var{keyName:e,value:t,parentValue:n,level:c=0,keys:o=[]}=a,i=ye(),s=ea(),d=Array.isArray(t),v=t instanceof Set,u=t instanceof Map,p=t instanceof Date,m=t instanceof URL,f=t&&typeof t=="object"&&!d&&!v&&!u&&!p&&!m,x=f||d||v||u;if(x){var N=v?Array.from(t):u?Object.fromEntries(t):t;return r.jsx(ie,{keyName:e,value:N,parentValue:n,initialValue:t,keys:o,level:c+1})}var w={onMouseEnter:()=>i({[s]:!0}),onMouseLeave:()=>i({[s]:!1})};return r.jsxs(Ye,l({className:"w-rjv-line",value:t,keyName:e,keys:o,parentValue:n},w,{children:[r.jsx(le,{keyName:e,value:t,keys:o,parentValue:n}),r.jsx(He,{keyName:e,value:t}),r.jsx(se,{keyName:e,value:t,keys:o,parentValue:n,expandKey:s})]}))};ra.displayName="JVR.KeyValuesItem";var it=["value","keyName"],ot=["as","render"],ta=a=>{var{CountInfoExtra:e={}}=B();return P(e,a,"CountInfoExtra"),null};ta.displayName="JVR.CountInfoExtra";var na=a=>{var{value:e={},keyName:t}=a,n=j(a,it),{CountInfoExtra:c={}}=B(),{as:o,render:i}=c,s=j(c,ot);if(!i&&!s.children)return null;var d=o||"span",v=i&&typeof i=="function",u=l({},s,n),p=v&&i(u,{value:e,keyName:t});return p||r.jsx(d,l({},u))};na.displayName="JVR.CountInfoExtraComps";var dt=["value","keyName"],ct=["as","render"],sa=a=>{var{CountInfo:e={}}=B();return P(e,a,"CountInfo"),null};sa.displayName="JVR.CountInfo";var la=a=>{var{value:e={},keyName:t}=a,n=j(a,dt),{displayObjectSize:c}=K(),{CountInfo:o={}}=B();if(!c)return null;var{as:i,render:s}=o,d=j(o,ct),v=i||"span";d.style=l({},d.style,a.style);var u=Object.keys(e).length;d.children||(d.children=u+" item"+(u===1?"":"s"));var p=l({},d,n),m=s&&typeof s=="function",f=m&&s(l({},p,{"data-length":u}),{value:e,keyName:t});return f||r.jsx(v,l({},p))};la.displayName="JVR.CountInfoComp";var vt=["as","render"],ia=a=>{var{Ellipsis:e={}}=B();return P(e,a,"Ellipsis"),null};ia.displayName="JVR.Ellipsis";var oa=a=>{var{isExpanded:e,value:t,keyName:n}=a,{Ellipsis:c={}}=B(),{as:o,render:i}=c,s=j(c,vt),d=o||"span",v=i&&typeof i=="function"&&i(l({},s,{"data-expanded":e}),{value:t,keyName:n});return v||(!e||typeof t=="object"&&Object.keys(t).length==0?null:r.jsx(d,l({},s)))};oa.displayName="JVR.EllipsisComp";var da=a=>{var e,{keyName:t,expandKey:n,keys:c=[],initialValue:o,value:i,parentValue:s,level:d}=a,v=U(),u=jr(),{onExpand:p,collapsed:m,shouldExpandNodeInitially:f}=K(),x=Array.isArray(i),N=i instanceof Set,w=typeof m=="boolean"?m:typeof m=="number"?d>m:!1,k=typeof i=="object",C=(e=v[n])!=null?e:w,S=f&&f(C,{value:i,keys:c,level:d});v[n]===void 0&&S!==void 0&&(C=S);var E=()=>{var L={expand:!C,value:i,keyid:n,keyName:t};p&&p(L),u({[n]:L.expand})},_={display:"inline-flex",alignItems:"center"},J={transform:"rotate("+(C?"-90":"0")+"deg)",transition:"all 0.3s"},h=Object.keys(i).length,R=h!==0&&(x||N||k),M={style:_};R&&(M.onClick=E);var A={keyName:t,value:i,keys:c,parentValue:s};return r.jsxs("span",l({},M,{children:[R&&r.jsx(Ee,l({style:J,expandKey:n},A)),(t||typeof t=="number")&&r.jsx(le,l({},A)),r.jsx(Ie,{value:o,keyName:t}),r.jsx($e,{value:o,keyName:t}),r.jsx(De,l({isBrackets:x||N},A)),r.jsx(oa,{keyName:t,value:i,isExpanded:C}),r.jsx(ne,l({isVisiable:C||!R,isBrackets:x||N},A)),r.jsx(la,{value:i,keyName:t}),r.jsx(na,{value:i,keyName:t}),r.jsx(se,{keyName:t,value:i,expandKey:n,parentValue:s,keys:c})]}))};da.displayName="JVR.NestedOpen";var ut=["className","children","parentValue","keyid","level","value","initialValue","keys","keyName"],ie=y.forwardRef((a,e)=>{var{className:t="",parentValue:n,level:c=1,value:o,initialValue:i,keys:s,keyName:d}=a,v=j(a,ut),u=ye(),p=ea(),m=[t,"w-rjv-inner"].filter(Boolean).join(" "),f={onMouseEnter:()=>u({[p]:!0}),onMouseLeave:()=>u({[p]:!1})};return r.jsxs("div",l({className:m,ref:e},v,f,{children:[r.jsx(da,{expandKey:p,value:o,level:c,keys:s,parentValue:n,keyName:d,initialValue:i}),r.jsx(aa,{expandKey:p,value:o,level:c,keys:s,parentValue:n,keyName:d}),r.jsx(Me,{expandKey:p,value:o,level:c,keys:s})]}))});ie.displayName="JVR.Container";var ca=a=>{var{BraceLeft:e={}}=V();return F(e,a,"BraceLeft"),null};ca.displayName="JVR.BraceLeft";var va=a=>{var{BraceRight:e={}}=V();return F(e,a,"BraceRight"),null};va.displayName="JVR.BraceRight";var ua=a=>{var{BracketsLeft:e={}}=V();return F(e,a,"BracketsLeft"),null};ua.displayName="JVR.BracketsLeft";var pa=a=>{var{BracketsRight:e={}}=V();return F(e,a,"BracketsRight"),null};pa.displayName="JVR.BracketsRight";var ya=a=>{var{Arrow:e={}}=V();return F(e,a,"Arrow"),null};ya.displayName="JVR.Arrow";var ma=a=>{var{Colon:e={}}=V();return F(e,a,"Colon"),null};ma.displayName="JVR.Colon";var fa=a=>{var{Quote:e={}}=V();return F(e,a,"Quote"),null};fa.displayName="JVR.Quote";var ha=a=>{var{ValueQuote:e={}}=V();return F(e,a,"ValueQuote"),null};ha.displayName="JVR.ValueQuote";var ja=a=>{var{Bigint:e={}}=b();return T(e,a,"Bigint"),null};ja.displayName="JVR.Bigint";var xa=a=>{var{Date:e={}}=b();return T(e,a,"Date"),null};xa.displayName="JVR.Date";var Na=a=>{var{False:e={}}=b();return T(e,a,"False"),null};Na.displayName="JVR.False";var wa=a=>{var{Float:e={}}=b();return T(e,a,"Float"),null};wa.displayName="JVR.Float";var Ca=a=>{var{Int:e={}}=b();return T(e,a,"Int"),null};Ca.displayName="JVR.Int";var ga=a=>{var{Map:e={}}=b();return T(e,a,"Map"),null};ga.displayName="JVR.Map";var ba=a=>{var{Nan:e={}}=b();return T(e,a,"Nan"),null};ba.displayName="JVR.Nan";var ka=a=>{var{Null:e={}}=b();return T(e,a,"Null"),null};ka.displayName="JVR.Null";var Ra=a=>{var{Set:e={}}=b();return T(e,a,"Set"),null};Ra.displayName="JVR.Set";var Sa=a=>{var{Str:e={}}=b();return T(e,a,"Str"),null};Sa.displayName="JVR.StringText";var Va=a=>{var{True:e={}}=b();return T(e,a,"True"),null};Va.displayName="JVR.True";var La=a=>{var{Undefined:e={}}=b();return T(e,a,"Undefined"),null};La.displayName="JVR.Undefined";var Ta=a=>{var{Url:e={}}=b();return T(e,a,"Url"),null};Ta.displayName="JVR.Url";var Ja=a=>{var{Copied:e={}}=B();return P(e,a,"Copied"),null};Ja.displayName="JVR.Copied";var pt=["className","style","value","children","collapsed","shouldExpandNodeInitially","indentWidth","displayObjectSize","shortenTextAfterLength","highlightUpdates","enableClipboard","displayDataTypes","objectSortKeys","onExpand","onCopied"],g=y.forwardRef((a,e)=>{var{className:t="",style:n,value:c,children:o,collapsed:i,shouldExpandNodeInitially:s,indentWidth:d=15,displayObjectSize:v=!0,shortenTextAfterLength:u=30,highlightUpdates:p=!0,enableClipboard:m=!0,displayDataTypes:f=!0,objectSortKeys:x=!1,onExpand:N,onCopied:w}=a,k=j(a,pt),C=l({lineHeight:1.4,fontFamily:"var(--w-rjv-font-family, Menlo, monospace)",color:"var(--w-rjv-color, #002b36)",backgroundColor:"var(--w-rjv-background-color, #00000000)",fontSize:13},n),S=["w-json-view-container","w-rjv",t].filter(Boolean).join(" ");return r.jsxs(Je,{initialState:{value:c,objectSortKeys:x,indentWidth:d,shouldExpandNodeInitially:s,displayObjectSize:v,collapsed:i,enableClipboard:m,shortenTextAfterLength:u,highlightUpdates:p,onCopied:w,onExpand:N},initialTypes:{displayDataTypes:f},children:[r.jsx(ie,l({value:c},k,{ref:e,className:S,style:C})),o]})});g.Bigint=ja;g.Date=xa;g.False=Na;g.Float=wa;g.Int=Ca;g.Map=ga;g.Nan=ba;g.Null=ka;g.Set=Ra;g.String=Sa;g.True=Va;g.Undefined=La;g.Url=Ta;g.ValueQuote=ha;g.Arrow=ya;g.Colon=ma;g.Quote=fa;g.Ellipsis=ia;g.BraceLeft=ca;g.BraceRight=va;g.BracketsLeft=ua;g.BracketsRight=pa;g.Copied=Ja;g.CountInfo=sa;g.CountInfoExtra=ta;g.KeyName=qe;g.Row=Xe;g.displayName="JVR.JsonView";var yt={"--w-rjv-font-family":"monospace","--w-rjv-color":"#79c0ff","--w-rjv-key-string":"#79c0ff","--w-rjv-background-color":"#0d1117","--w-rjv-line-color":"#94949480","--w-rjv-arrow-color":"#ccc","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#7b7b7b","--w-rjv-update-color":"#ebcb8b","--w-rjv-copied-color":"#79c0ff","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#8b949e","--w-rjv-colon-color":"#c9d1d9","--w-rjv-brackets-color":"#8b949e","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#a5d6ff","--w-rjv-type-int-color":"#79c0ff","--w-rjv-type-float-color":"#79c0ff","--w-rjv-type-bigint-color":"#79c0ff","--w-rjv-type-boolean-color":"#ffab70","--w-rjv-type-date-color":"#79c0ff","--w-rjv-type-url-color":"#4facff","--w-rjv-type-null-color":"#ff7b72","--w-rjv-type-nan-color":"#859900","--w-rjv-type-undefined-color":"#79c0ff"},mt={"--w-rjv-font-family":"monospace","--w-rjv-color":"#6f42c1","--w-rjv-key-string":"#6f42c1","--w-rjv-background-color":"#ffffff","--w-rjv-line-color":"#ddd","--w-rjv-arrow-color":"#6e7781","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#0000004d","--w-rjv-update-color":"#ebcb8b","--w-rjv-copied-color":"#002b36","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#6a737d","--w-rjv-colon-color":"#24292e","--w-rjv-brackets-color":"#6a737d","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#032f62","--w-rjv-type-int-color":"#005cc5","--w-rjv-type-float-color":"#005cc5","--w-rjv-type-bigint-color":"#005cc5","--w-rjv-type-boolean-color":"#d73a49","--w-rjv-type-date-color":"#005cc5","--w-rjv-type-url-color":"#0969da","--w-rjv-type-null-color":"#d73a49","--w-rjv-type-nan-color":"#859900","--w-rjv-type-undefined-color":"#005cc5"};const ft=({...a})=>{const e=or(),{palette:{primary:{main:t}}}=Ka(),n=y.useMemo(()=>({...e==="light"?mt:yt,"--w-rjv-background-color":"transparent","--w-rjv-ellipsis-color":t}),[e,t]);return r.jsx(g,{...a,style:n,displayObjectSize:!1,displayDataTypes:!1})};function ve(a,e){y.useEffect(()=>{const t=new URLSearchParams(window.location.search),n=t.get(a)??"";if(e===n)return;e?t.set(a,e):t.delete(a);const c=[window.location.pathname,t.toString()].filter(Boolean).join("?");window.history.replaceState(null,"",c)},[a,e])}const xt=()=>!0,Nt={crumb:(a,{pathname:e})=>({to:e,linkText:e.split("/").reverse()[0]==="reports"?"Reports":"Test Suites"})},Ba=a=>Object.values(a).map(e=>Array.isArray(e)?e.join(" "):typeof e=="object"?Ba(e):e).join(" "),wt=({type:a,slots:e})=>{const{projectId:t}=Pa(),n=Oa(),c=Ua(),o=Qa(),s=Za().state!=="idle";Wa(t);const[d]=za(),[v,u]=y.useState("desc"),[p,m]=Ha("show-full-json-metadata",!1),[f,x]=y.useState(()=>{var h;return((h=d.get("tags"))==null?void 0:h.split(","))||[]}),[N,w]=y.useState(()=>d.get("metadata-query")||"");ve("tags",f.join(",")),ve("metadata-query",String(N));const k=c.find(({handle:h})=>{var R;return((R=h==null?void 0:h.hide)==null?void 0:R.snapshotList)===!0}),C=y.useMemo(()=>Array.from(new Set(n.flatMap(({tags:h})=>h))),[n]),S=y.useMemo(()=>n.filter(({tags:h})=>f.every(R=>h.includes(R))),[n,f]),E=y.useMemo(()=>S.filter(({metadata:h})=>N===""?!0:Ba(h).includes(N)),[S,N]),_=y.useMemo(()=>v===void 0?E:E.sort((h,R)=>{const[M,A]=[Date.parse(h.timestamp),Date.parse(R.timestamp)],L=M-A;return v==="desc"?-L:v==="asc"?L:0}),[E,v]);if(k)return r.jsx(qa,{});const J=r.jsx($,{sx:{padding:2},children:r.jsxs(W,{container:!0,gap:2,alignItems:"flex-end",justifyContent:"space-around",children:[r.jsx(W,{item:!0,xs:12,md:4,children:r.jsx(sr,{multiple:!0,limitTags:2,value:f,onChange:(h,R)=>x(R),options:C,renderInput:h=>r.jsx(ce,{...h,variant:"standard",label:"Filter by Tags"})})}),r.jsx(W,{item:!0,xs:12,md:7,children:r.jsxs($,{display:"flex",alignItems:"flex-end",gap:2,children:[r.jsx(ce,{fullWidth:!0,value:N,onChange:h=>w(h.target.value),variant:"standard",label:"Search in Metadata"}),r.jsx($,{minWidth:220,display:"flex",justifyContent:"center",children:r.jsx(lr,{control:r.jsx(ir,{checked:p,onChange:h=>m(h.target.checked)}),label:"Hide Metadata"})}),r.jsx($,{display:"flex",justifyContent:"flex-end",children:r.jsxs(z,{sx:{minWidth:160},variant:"outlined",onClick:()=>o({action:"reload-snapshots"},{method:"post",replace:!0,encType:"application/json"}),color:"primary",disabled:s,children:["refresh ",a]})})]})})]})});return n.length===0?r.jsxs(r.Fragment,{children:[J,r.jsxs(de,{my:3,variant:"h4",align:"center",children:["You don't have any ",a," yet."]})]}):r.jsxs(r.Fragment,{children:[J,r.jsxs(Ga,{children:[r.jsxs(Xa,{children:[r.jsxs(Z,{children:[r.jsx(I,{children:a==="reports"?"Report ID":a==="test suites"?"Test Suite ID":"indefined"}),r.jsx(I,{children:"Tags"}),r.jsx(I,{children:"Metadata"}),r.jsx(I,{children:r.jsx(Ya,{active:!!v,direction:v,onClick:()=>{u(h=>{if(h===void 0)return"desc";if(h==="desc")return"asc"})},children:"Timestamp"})}),r.jsx(I,{align:"center",children:"Actions"})]}),r.jsx(Z,{})]}),r.jsx(er,{children:_.map(h=>r.jsxs(Z,{children:[r.jsx(I,{children:r.jsx(ur,{showText:h.id,copyText:h.id})}),r.jsx(I,{children:r.jsx($,{maxWidth:250,children:r.jsx(vr,{onClick:R=>{f.includes(R)||x([...f,R])},tags:h.tags})})}),r.jsx(I,{children:r.jsx(ft,{collapsed:p,value:h.metadata,enableClipboard:!1})}),r.jsx(I,{children:r.jsx(de,{variant:"body2",children:ar(h.timestamp).locale("en-gb").format("llll")})}),r.jsx(I,{children:r.jsxs($,{display:"flex",justifyContent:"center",gap:1,children:[e!=null&&e.ViewButton?r.jsx(e.ViewButton,{snapshotId:h.id,projectId:t}):r.jsx(z,{disabled:s,component:rr,to:`${h.id}`,children:"View"}),r.jsx(cr,{variant:(e==null?void 0:e.donwloadButtonVariant)||"outlined",disabled:s,downloadLink:`/api/projects/${t}/${h.id}/download`}),(e==null?void 0:e.additionalSnapshotActions)&&r.jsx(e.additionalSnapshotActions,{snapshotId:h.id,projectId:t}),r.jsx($,{children:r.jsx(tr,{title:"delete snapshot",placement:"top",children:r.jsx(G,{onClick:()=>{confirm("Are you sure?")===!0&&o({action:"delete-snapshot",snapshotId:h.id},{method:"post",replace:!0,encType:"application/json"})},color:"primary",disabled:s,children:r.jsx(nr,{})})})})]})})]},`r-${h.id}`))})]})]})};export{wt as SnapshotsListTemplate,Nt as handle,xt as shouldRevalidate}; +import{R as oe,j as r,p as z,al as Ea,am as Da,P as Ma,an as Ia,ao as $a,M as Aa,r as y,B as $,ap as Q,I as G,aq as Fa,a8 as _a,ah as Ka,ak as Pa,a5 as Oa,X as Ua,ab as Qa,Z as Za,m as Wa,J as za,q as Ha,a7 as qa,T as de,ar as Ga,as as Xa,at as Z,au as I,av as Ya,aw as er,K as ar,o as rr,af as tr,ac as nr,G as W,ax as sr,aj as ce,F as lr,x as ir}from"./vendor-C2GWNUp2.js";import{u as or}from"./index-D-BBKVDE.js";const dr=[{title:"Download HTML",format:"html"},{title:"Download JSON",format:"json"}];function cr(a){const[e,t]=oe.useState(!1),n=oe.useRef(null),c=(s,d)=>{window.open(`${s}?report_format=${d}`,"_blank"),t(!1)},o=()=>{t(s=>!s)},i=s=>{var d;(d=n.current)!=null&&d.contains(s.target)||t(!1)};return r.jsxs(r.Fragment,{children:[r.jsx(z,{disabled:a.disabled,variant:a.variant,ref:n,color:"primary","aria-controls":e?"split-button-menu":void 0,"aria-expanded":e?"true":void 0,"aria-label":"select merge strategy","aria-haspopup":"menu",onClick:o,children:"Download"}),r.jsx(Ea,{open:e,anchorEl:n.current,transition:!0,children:({TransitionProps:s,placement:d})=>r.jsx(Da,{...s,style:{transformOrigin:d==="bottom"?"center top":"center bottom"},children:r.jsx(Ma,{children:r.jsx(Ia,{onClickAway:i,children:r.jsx($a,{id:"split-button-menu",children:dr.map(v=>r.jsx(Aa,{onClick:()=>c(a.downloadLink,v.format),children:v.title},v.format))})})})})})]})}const vr=({onClick:a,tags:e,limitTags:t=2})=>{const[n,c]=y.useState(!1);return r.jsxs($,{display:"flex",alignContent:"center",flexWrap:"wrap",children:[e.slice(0,t).map(o=>r.jsx(Q,{onClick:()=>a(o),label:o,style:{margin:3}},o)),n&&e.slice(t).map(o=>r.jsx(Q,{onClick:()=>a(o),label:o,style:{margin:3}},o)),!n&&e.length>t&&r.jsx(Q,{variant:"outlined",label:`+${e.length-t}`,style:{margin:3,borderColor:"grey"},onClick:()=>c(!0)},"+N"),e.length>0&&n&&r.jsx(G,{style:{margin:3},onClick:()=>c(!1),children:r.jsx(Fa,{fontSize:"small"})})]})},ur=({showText:a,copyText:e})=>r.jsxs($,{children:[a,r.jsx(G,{size:"small",style:{marginLeft:10},onClick:()=>navigator.clipboard.writeText(e),children:r.jsx(_a,{fontSize:"small"})})]});function l(){return l=Object.assign?Object.assign.bind():function(a){for(var e=1;el({},a,e),yr=()=>y.useContext(pe),X=y.createContext(()=>{});X.displayName="JVR.DispatchShowTools";function mr(){return y.useReducer(pr,ue)}function ye(){return y.useContext(X)}var me=a=>{var{initial:e,dispatch:t,children:n}=a;return r.jsx(pe.Provider,{value:e,children:r.jsx(X.Provider,{value:t,children:n})})};me.displayName="JVR.ShowTools";var fe={},he=y.createContext(fe),fr=(a,e)=>l({},a,e),U=()=>y.useContext(he),Y=y.createContext(()=>{});Y.displayName="JVR.DispatchExpands";function hr(){return y.useReducer(fr,fe)}function jr(){return y.useContext(Y)}var je=a=>{var{initial:e,dispatch:t,children:n}=a;return r.jsx(he.Provider,{value:e,children:r.jsx(Y.Provider,{value:t,children:n})})};je.displayName="JVR.Expands";var xe={Str:{as:"span","data-type":"string",style:{color:"var(--w-rjv-type-string-color, #cb4b16)"},className:"w-rjv-type",children:"string"},Url:{as:"a",style:{color:"var(--w-rjv-type-url-color, #0969da)"},"data-type":"url",className:"w-rjv-type",children:"url"},Undefined:{style:{color:"var(--w-rjv-type-undefined-color, #586e75)"},as:"span","data-type":"undefined",className:"w-rjv-type",children:"undefined"},Null:{style:{color:"var(--w-rjv-type-null-color, #d33682)"},as:"span","data-type":"null",className:"w-rjv-type",children:"null"},Map:{style:{color:"var(--w-rjv-type-map-color, #268bd2)",marginRight:3},as:"span","data-type":"map",className:"w-rjv-type",children:"Map"},Nan:{style:{color:"var(--w-rjv-type-nan-color, #859900)"},as:"span","data-type":"nan",className:"w-rjv-type",children:"NaN"},Bigint:{style:{color:"var(--w-rjv-type-bigint-color, #268bd2)"},as:"span","data-type":"bigint",className:"w-rjv-type",children:"bigint"},Int:{style:{color:"var(--w-rjv-type-int-color, #268bd2)"},as:"span","data-type":"int",className:"w-rjv-type",children:"int"},Set:{style:{color:"var(--w-rjv-type-set-color, #268bd2)",marginRight:3},as:"span","data-type":"set",className:"w-rjv-type",children:"Set"},Float:{style:{color:"var(--w-rjv-type-float-color, #859900)"},as:"span","data-type":"float",className:"w-rjv-type",children:"float"},True:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},False:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},Date:{style:{color:"var(--w-rjv-type-date-color, #268bd2)"},as:"span","data-type":"date",className:"w-rjv-type",children:"date"}},Ne=y.createContext(xe),xr=(a,e)=>l({},a,e),b=()=>y.useContext(Ne),ee=y.createContext(()=>{});ee.displayName="JVR.DispatchTypes";function Nr(){return y.useReducer(xr,xe)}function wr(){return y.useContext(ee)}function we(a){var{initial:e,dispatch:t,children:n}=a;return r.jsx(Ne.Provider,{value:e,children:r.jsx(ee.Provider,{value:t,children:n})})}we.displayName="JVR.Types";var Cr=["style"];function Ce(a){var{style:e}=a,t=j(a,Cr),n=l({cursor:"pointer",height:"1em",width:"1em",userSelect:"none",display:"inline-flex"},e);return r.jsx("svg",l({viewBox:"0 0 24 24",fill:"var(--w-rjv-arrow-color, currentColor)",style:n},t,{children:r.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})}))}Ce.displayName="JVR.TriangleArrow";var ge={Arrow:{as:"span",className:"w-rjv-arrow",style:{transform:"rotate(0deg)",transition:"all 0.3s"},children:r.jsx(Ce,{})},Colon:{as:"span",style:{color:"var(--w-rjv-colon-color, var(--w-rjv-color))",marginLeft:0,marginRight:2},className:"w-rjv-colon",children:":"},Quote:{as:"span",style:{color:"var(--w-rjv-quotes-color, #236a7c)"},className:"w-rjv-quotes",children:'"'},ValueQuote:{as:"span",style:{color:"var(--w-rjv-quotes-string-color, #cb4b16)"},className:"w-rjv-quotes",children:'"'},BracketsLeft:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-start",children:"["},BracketsRight:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-end",children:"]"},BraceLeft:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-start",children:"{"},BraceRight:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-end",children:"}"}},be=y.createContext(ge),gr=(a,e)=>l({},a,e),V=()=>y.useContext(be),ae=y.createContext(()=>{});ae.displayName="JVR.DispatchSymbols";function br(){return y.useReducer(gr,ge)}function kr(){return y.useContext(ae)}var ke=a=>{var{initial:e,dispatch:t,children:n}=a;return r.jsx(be.Provider,{value:e,children:r.jsx(ae.Provider,{value:t,children:n})})};ke.displayName="JVR.Symbols";var Re={Copied:{className:"w-rjv-copied",style:{height:"1em",width:"1em",cursor:"pointer",verticalAlign:"middle",marginLeft:5}},CountInfo:{as:"span",className:"w-rjv-object-size",style:{color:"var(--w-rjv-info-color, #0000004d)",paddingLeft:8,fontStyle:"italic"}},CountInfoExtra:{as:"span",className:"w-rjv-object-extra",style:{paddingLeft:8}},Ellipsis:{as:"span",style:{cursor:"pointer",color:"var(--w-rjv-ellipsis-color, #cb4b16)",userSelect:"none"},className:"w-rjv-ellipsis",children:"..."},Row:{as:"div",className:"w-rjv-line"},KeyName:{as:"span",className:"w-rjv-object-key"}},Se=y.createContext(Re),Rr=(a,e)=>l({},a,e),B=()=>y.useContext(Se),re=y.createContext(()=>{});re.displayName="JVR.DispatchSection";function Sr(){return y.useReducer(Rr,Re)}function Vr(){return y.useContext(re)}var Ve=a=>{var{initial:e,dispatch:t,children:n}=a;return r.jsx(Se.Provider,{value:e,children:r.jsx(re.Provider,{value:t,children:n})})};Ve.displayName="JVR.Section";var Le={objectSortKeys:!1,indentWidth:15},te=y.createContext(Le);te.displayName="JVR.Context";var Te=y.createContext(()=>{});Te.displayName="JVR.DispatchContext";function Lr(a,e){return l({},a,e)}var K=()=>y.useContext(te),Je=a=>{var{children:e,initialState:t,initialTypes:n}=a,[c,o]=y.useReducer(Lr,Object.assign({},Le,t)),[i,s]=mr(),[d,v]=hr(),[u,p]=Nr(),[m,f]=br(),[x,N]=Sr();return y.useEffect(()=>o(l({},t)),[t]),r.jsx(te.Provider,{value:c,children:r.jsx(Te.Provider,{value:o,children:r.jsx(me,{initial:i,dispatch:s,children:r.jsx(je,{initial:d,dispatch:v,children:r.jsx(we,{initial:l({},u,n),dispatch:p,children:r.jsx(ke,{initial:m,dispatch:f,children:r.jsx(Ve,{initial:x,dispatch:N,children:e})})})})})})})};Je.displayName="JVR.Provider";function Tr(a){if(a==null)throw new TypeError("Cannot destructure "+a)}var Jr=["isNumber","value","parentValue","keyName","keys"],Br=["as","render"],Er=["as","render"],Dr=["as","render"],Mr=["as","style","render"],Ir=["as","render"],$r=["as","render"],Ar=["as","render"],Fr=["as","render"],H=a=>{var{Quote:e={}}=V(),{isNumber:t,value:n,parentValue:c,keyName:o,keys:i}=a,s=j(a,Jr);if(t)return null;var{as:d,render:v}=e,u=j(e,Br),p=d||"span",m=l({},s,u),f={value:n,parentValue:c,keyName:o,keys:i||(o?[o]:[])},x=v&&typeof v=="function"&&v(m,f);return x||r.jsx(p,l({},m))};H.displayName="JVR.Quote";var O=a=>{var{ValueQuote:e={}}=V(),t=l({},(Tr(a),a)),{as:n,render:c}=e,o=j(e,Er),i=n||"span",s=l({},t,o),d=c&&typeof c=="function"&&c(s,{});return d||r.jsx(i,l({},s))};O.displayName="JVR.ValueQuote";var Be=a=>{var{value:e,parentValue:t,keyName:n,keys:c}=a,{Colon:o={}}=V(),{as:i,render:s}=o,d=j(o,Dr),v=i||"span",u=s&&typeof s=="function"&&s(d,{value:e,parentValue:t,keyName:n,keys:c||(n?[n]:[])});return u||r.jsx(v,l({},d))};Be.displayName="JVR.Colon";var Ee=a=>{var{Arrow:e={}}=V(),t=U(),{expandKey:n,style:c,value:o,parentValue:i,keyName:s,keys:d}=a,v=!!t[n],{as:u,style:p,render:m}=e,f=j(e,Mr),x=u||"span",N=m&&typeof m=="function",w=l({},f,{"data-expanded":v,style:l({},p,c)}),k={value:o,parentValue:i,keyName:s,keys:d||(s?[s]:[])},C=N&&m(w,k);return C||r.jsx(x,l({},f,{style:l({},p,c)}))};Ee.displayName="JVR.Arrow";var De=a=>{var{isBrackets:e,value:t,parentValue:n,keyName:c,keys:o}=a,{BracketsLeft:i={},BraceLeft:s={}}=V(),d={value:t,parentValue:n,keyName:c,keys:o||(c?[c]:[])};if(e){var{as:v,render:u}=i,p=j(i,Ir),m=v||"span",f=u&&typeof u=="function"&&u(p,d);return f||r.jsx(m,l({},p))}var{as:x,render:N}=s,w=j(s,$r),k=x||"span",C=N&&typeof N=="function"&&N(w,d);return C||r.jsx(k,l({},w))};De.displayName="JVR.BracketsOpen";var ne=a=>{var{isBrackets:e,isVisiable:t,value:n,parentValue:c,keyName:o,keys:i}=a,s={value:n,parentValue:c,keyName:o,keys:i||(o?[o]:[])};if(!t)return null;var{BracketsRight:d={},BraceRight:v={}}=V();if(e){var{as:u,render:p}=d,m=j(d,Ar),f=u||"span",x=p&&typeof p=="function"&&p(m,s);return x||r.jsx(f,l({},m))}var{as:N,render:w}=v,k=j(v,Fr),C=N||"span",S=w&&typeof w=="function"&&w(k,s);return S||r.jsx(C,l({},k))};ne.displayName="JVR.BracketsClose";var Me=a=>{var e,{value:t,expandKey:n,level:c,keys:o=[]}=a,i=U(),s=Array.isArray(t),{collapsed:d,shouldExpandNodeInitially:v}=K(),u=t instanceof Set,p=typeof d=="boolean"?d:typeof d=="number"?c>d:!1,m=(e=i[n])!=null?e:p,f=Object.keys(t).length;if(i[n]===void 0&&v&&v(m,{value:t,keys:o,level:c})||m||f===0)return null;var x={paddingLeft:4};return r.jsx("div",{style:x,children:r.jsx(ne,{isBrackets:s||u,isVisiable:!0})})};Me.displayName="JVR.NestedClose";var _r=["as","render"],Kr=["as","render"],Pr=["as","render"],Or=["as","render"],Ur=["as","render"],Qr=["as","render"],Zr=["as","render"],Wr=["as","render"],zr=["as","render"],Hr=["as","render"],qr=["as","render"],Gr=["as","render"],Xr=["as","render"],q=a=>{if(a===void 0)return"0n";if(typeof a=="string")try{a=BigInt(a)}catch{return"0n"}return a?a.toString()+"n":"0n"},Ie=a=>{var{value:e,keyName:t}=a,{Set:n={},displayDataTypes:c}=b(),o=e instanceof Set;if(!o||!c)return null;var{as:i,render:s}=n,d=j(n,_r),v=s&&typeof s=="function",u=v&&s(d,{type:"type",value:e,keyName:t});if(u)return u;var p=i||"span";return r.jsx(p,l({},d))};Ie.displayName="JVR.SetComp";var $e=a=>{var{value:e,keyName:t}=a,{Map:n={},displayDataTypes:c}=b(),o=e instanceof Map;if(!o||!c)return null;var{as:i,render:s}=n,d=j(n,Kr),v=s&&typeof s=="function",u=v&&s(d,{type:"type",value:e,keyName:t});if(u)return u;var p=i||"span";return r.jsx(p,l({},d))};$e.displayName="JVR.MapComp";var D={opacity:.75,paddingRight:4},Ae=a=>{var{children:e="",keyName:t}=a,{Str:n={},displayDataTypes:c}=b(),{shortenTextAfterLength:o=30}=K(),{as:i,render:s}=n,d=j(n,Pr),v=e,[u,p]=y.useState(o&&v.length>o);y.useEffect(()=>p(o&&v.length>o),[o]);var m=i||"span",f=l({},D,n.style||{});o>0&&(d.style=l({},d.style,{cursor:v.length<=o?"initial":"pointer"}),v.length>o&&(d.onClick=()=>{p(!u)}));var x=u?v.slice(0,o)+"...":v,N=s&&typeof s=="function",w=N&&s(l({},d,{style:f}),{type:"type",value:e,keyName:t}),k=N&&s(l({},d,{children:x,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(w||r.jsx(m,l({},d,{style:f}))),k||r.jsxs(y.Fragment,{children:[r.jsx(O,{}),r.jsx(m,l({},d,{className:"w-rjv-value",children:x})),r.jsx(O,{})]})]})};Ae.displayName="JVR.TypeString";var Fe=a=>{var{children:e,keyName:t}=a,{True:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Or),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m||r.jsx(d,l({},s,{className:"w-rjv-value",children:e==null?void 0:e.toString()}))]})};Fe.displayName="JVR.TypeTrue";var _e=a=>{var{children:e,keyName:t}=a,{False:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Ur),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m||r.jsx(d,l({},s,{className:"w-rjv-value",children:e==null?void 0:e.toString()}))]})};_e.displayName="JVR.TypeFalse";var Ke=a=>{var{children:e,keyName:t}=a,{Float:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Qr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m||r.jsx(d,l({},s,{className:"w-rjv-value",children:e==null?void 0:e.toString()}))]})};Ke.displayName="JVR.TypeFloat";var Pe=a=>{var{children:e,keyName:t}=a,{Int:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Zr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m||r.jsx(d,l({},s,{className:"w-rjv-value",children:e==null?void 0:e.toString()}))]})};Pe.displayName="JVR.TypeInt";var Oe=a=>{var{children:e,keyName:t}=a,{Bigint:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Wr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m||r.jsx(d,l({},s,{className:"w-rjv-value",children:q(e==null?void 0:e.toString())}))]})};Oe.displayName="JVR.TypeFloat";var Ue=a=>{var{children:e,keyName:t}=a,{Url:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,zr),d=o||"span",v=l({},D,n.style),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e==null?void 0:e.href,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m||r.jsxs("a",l({href:e==null?void 0:e.href,target:"_blank"},s,{className:"w-rjv-value",children:[r.jsx(O,{}),e==null?void 0:e.href,r.jsx(O,{})]}))]})};Ue.displayName="JVR.TypeUrl";var Qe=a=>{var{children:e,keyName:t}=a,{Date:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Hr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=e instanceof Date?e.toLocaleString():e,f=u&&i(l({},s,{children:m,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),f||r.jsx(d,l({},s,{className:"w-rjv-value",children:m}))]})};Qe.displayName="JVR.TypeDate";var Ze=a=>{var{children:e,keyName:t}=a,{Undefined:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,qr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m]})};Ze.displayName="JVR.TypeUndefined";var We=a=>{var{children:e,keyName:t}=a,{Null:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Gr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m]})};We.displayName="JVR.TypeNull";var ze=a=>{var{children:e,keyName:t}=a,{Nan:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Xr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e==null?void 0:e.toString(),className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m]})};ze.displayName="JVR.TypeNan";var Yr=a=>Number(a)===a&&a%1!==0||isNaN(a),He=a=>{var{value:e,keyName:t}=a,n={keyName:t};return e instanceof URL?r.jsx(Ue,l({},n,{children:e})):typeof e=="string"?r.jsx(Ae,l({},n,{children:e})):e===!0?r.jsx(Fe,l({},n,{children:e})):e===!1?r.jsx(_e,l({},n,{children:e})):e===null?r.jsx(We,l({},n,{children:e})):e===void 0?r.jsx(Ze,l({},n,{children:e})):e instanceof Date?r.jsx(Qe,l({},n,{children:e})):typeof e=="number"&&isNaN(e)?r.jsx(ze,l({},n,{children:e})):typeof e=="number"&&Yr(e)?r.jsx(Ke,l({},n,{children:e})):typeof e=="bigint"?r.jsx(Oe,l({},n,{children:e})):typeof e=="number"?r.jsx(Pe,l({},n,{children:e})):null};He.displayName="JVR.Value";function F(a,e,t){var n=kr(),c=[a.className,e.className].filter(Boolean).join(" "),o=l({},a,e,{className:c,style:l({},a.style,e.style),children:e.children||a.children});y.useEffect(()=>n({[t]:o}),[e])}function T(a,e,t){var n=wr(),c=[a.className,e.className].filter(Boolean).join(" "),o=l({},a,e,{className:c,style:l({},a.style,e.style),children:e.children||a.children});y.useEffect(()=>n({[t]:o}),[e])}function P(a,e,t){var n=Vr(),c=[a.className,e.className].filter(Boolean).join(" "),o=l({},a,e,{className:c,style:l({},a.style,e.style),children:e.children||a.children});y.useEffect(()=>n({[t]:o}),[e])}var et=["as","render"],qe=a=>{var{KeyName:e={}}=B();return P(e,a,"KeyName"),null};qe.displayName="JVR.KeyName";var Ge=a=>{var{children:e,value:t,parentValue:n,keyName:c,keys:o}=a,i=typeof e=="number",s={color:i?"var(--w-rjv-key-number, #268bd2)":"var(--w-rjv-key-string, #002b36)"},{KeyName:d={}}=B(),{as:v,render:u}=d,p=j(d,et);p.style=l({},p.style,s);var m=v||"span",f=u&&typeof u=="function"&&u(l({},p,{children:e}),{value:t,parentValue:n,keyName:c,keys:o||(c?[c]:[])});return f||r.jsx(m,l({},p,{children:e}))};Ge.displayName="JVR.KeyNameComp";var at=["children","value","parentValue","keyName","keys"],rt=["as","render","children"],Xe=a=>{var{Row:e={}}=B();return P(e,a,"Row"),null};Xe.displayName="JVR.Row";var Ye=a=>{var{children:e,value:t,parentValue:n,keyName:c,keys:o}=a,i=j(a,at),{Row:s={}}=B(),{as:d,render:v}=s,u=j(s,rt),p=d||"div",m=v&&typeof v=="function"&&v(l({},i,u,{children:e}),{value:t,keyName:c,parentValue:n,keys:o});return m||r.jsx(p,l({},i,u,{children:e}))};Ye.displayName="JVR.RowComp";function tt(a){var e=y.useRef();return y.useEffect(()=>{e.current=a}),e.current}function nt(a){var{value:e,highlightUpdates:t,highlightContainer:n}=a,c=tt(e),o=y.useMemo(()=>{if(!t||c===void 0)return!1;if(typeof e!=typeof c)return!0;if(typeof e=="number")return isNaN(e)&&isNaN(c)?!1:e!==c;if(Array.isArray(e)!==Array.isArray(c))return!0;if(typeof e=="object"||typeof e=="function")return!1;if(e!==c)return!0},[t,e]);y.useEffect(()=>{n&&n.current&&o&&"animate"in n.current&&n.current.animate([{backgroundColor:"var(--w-rjv-update-color, #ebcb8b)"},{backgroundColor:""}],{duration:1e3,easing:"ease-in"})},[o,e,n])}var st=["keyName","value","parentValue","expandKey","keys"],lt=["as","render"],se=a=>{var{keyName:e,value:t,parentValue:n,expandKey:c,keys:o}=a,i=j(a,st),{onCopied:s,enableClipboard:d}=K(),v=yr(),u=v[c],[p,m]=y.useState(!1),{Copied:f={}}=B();if(d===!1||!u)return null;var x=_=>{_.stopPropagation();var J="";typeof t=="number"&&t===1/0?J="Infinity":typeof t=="number"&&isNaN(t)?J="NaN":typeof t=="bigint"?J=q(t):t instanceof Date?J=t.toLocaleString():J=JSON.stringify(t,(R,M)=>typeof M=="bigint"?q(M):M,2),s&&s(J,t),m(!0);var h=navigator.clipboard||{writeText(R){return new Promise((M,A)=>{var L=document.createElement("textarea");L.style.position="absolute",L.style.opacity="0",L.style.left="-99999999px",L.value=R,document.body.appendChild(L),L.select(),document.execCommand("copy")?M():A(),L.remove()})}};h.writeText(J).then(()=>{var R=setTimeout(()=>{m(!1),clearTimeout(R)},3e3)}).catch(R=>{})},N={style:{display:"inline-flex"},fill:p?"var(--w-rjv-copied-success-color, #28a745)":"var(--w-rjv-copied-color, currentColor)",onClick:x},{render:w}=f,k=j(f,lt),C=l({},k,i,N,{style:l({},k.style,i.style,N.style)}),S=w&&typeof w=="function",E=S&&w(l({},C,{"data-copied":p}),{value:t,keyName:e,keys:o,parentValue:n});return E||(p?r.jsx("svg",l({viewBox:"0 0 32 36"},C,{children:r.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})):r.jsx("svg",l({viewBox:"0 0 32 36"},C,{children:r.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})))};se.displayName="JVR.Copied";function ea(){var a=y.useRef(null);return a.current===null&&(a.current="custom-id-"+Math.random().toString(36).substr(2,9)),a.current}var aa=a=>{var e,{value:t,expandKey:n="",level:c,keys:o=[]}=a,i=U(),{objectSortKeys:s,indentWidth:d,collapsed:v,shouldExpandNodeInitially:u}=K(),p=Array.isArray(t),m=typeof v=="boolean"?v:typeof v=="number"?c>v:!1,f=(e=i[n])!=null?e:m;if(i[n]===void 0&&u&&u(f,{value:t,keys:o,level:c})||f)return null;var x=p?Object.entries(t).map(w=>[Number(w[0]),w[1]]):Object.entries(t);s&&(x=s===!0?x.sort((w,k)=>{var[C]=w,[S]=k;return typeof C=="string"&&typeof S=="string"?C.localeCompare(S):0}):x.sort((w,k)=>{var[C,S]=w,[E,_]=k;return typeof C=="string"&&typeof E=="string"?s(C,E,S,_):0}));var N={borderLeft:"var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",paddingLeft:d,marginLeft:6};return r.jsx("div",{className:"w-rjv-wrap",style:N,children:x.map((w,k)=>{var[C,S]=w;return r.jsx(ra,{parentValue:t,keyName:C,keys:[...o,C],value:S,level:c},k)})})};aa.displayName="JVR.KeyValues";var le=a=>{var{keyName:e,parentValue:t,keys:n,value:c}=a,{highlightUpdates:o}=K(),i=typeof e=="number",s=y.useRef(null);nt({value:c,highlightUpdates:o,highlightContainer:s});var d={keyName:e,value:c,keys:n,parentValue:t};return r.jsxs(y.Fragment,{children:[r.jsxs("span",{ref:s,children:[r.jsx(H,l({isNumber:i,"data-placement":"left"},d)),r.jsx(Ge,l({},d,{children:e})),r.jsx(H,l({isNumber:i,"data-placement":"right"},d))]}),r.jsx(Be,l({},d))]})};le.displayName="JVR.KayName";var ra=a=>{var{keyName:e,value:t,parentValue:n,level:c=0,keys:o=[]}=a,i=ye(),s=ea(),d=Array.isArray(t),v=t instanceof Set,u=t instanceof Map,p=t instanceof Date,m=t instanceof URL,f=t&&typeof t=="object"&&!d&&!v&&!u&&!p&&!m,x=f||d||v||u;if(x){var N=v?Array.from(t):u?Object.fromEntries(t):t;return r.jsx(ie,{keyName:e,value:N,parentValue:n,initialValue:t,keys:o,level:c+1})}var w={onMouseEnter:()=>i({[s]:!0}),onMouseLeave:()=>i({[s]:!1})};return r.jsxs(Ye,l({className:"w-rjv-line",value:t,keyName:e,keys:o,parentValue:n},w,{children:[r.jsx(le,{keyName:e,value:t,keys:o,parentValue:n}),r.jsx(He,{keyName:e,value:t}),r.jsx(se,{keyName:e,value:t,keys:o,parentValue:n,expandKey:s})]}))};ra.displayName="JVR.KeyValuesItem";var it=["value","keyName"],ot=["as","render"],ta=a=>{var{CountInfoExtra:e={}}=B();return P(e,a,"CountInfoExtra"),null};ta.displayName="JVR.CountInfoExtra";var na=a=>{var{value:e={},keyName:t}=a,n=j(a,it),{CountInfoExtra:c={}}=B(),{as:o,render:i}=c,s=j(c,ot);if(!i&&!s.children)return null;var d=o||"span",v=i&&typeof i=="function",u=l({},s,n),p=v&&i(u,{value:e,keyName:t});return p||r.jsx(d,l({},u))};na.displayName="JVR.CountInfoExtraComps";var dt=["value","keyName"],ct=["as","render"],sa=a=>{var{CountInfo:e={}}=B();return P(e,a,"CountInfo"),null};sa.displayName="JVR.CountInfo";var la=a=>{var{value:e={},keyName:t}=a,n=j(a,dt),{displayObjectSize:c}=K(),{CountInfo:o={}}=B();if(!c)return null;var{as:i,render:s}=o,d=j(o,ct),v=i||"span";d.style=l({},d.style,a.style);var u=Object.keys(e).length;d.children||(d.children=u+" item"+(u===1?"":"s"));var p=l({},d,n),m=s&&typeof s=="function",f=m&&s(l({},p,{"data-length":u}),{value:e,keyName:t});return f||r.jsx(v,l({},p))};la.displayName="JVR.CountInfoComp";var vt=["as","render"],ia=a=>{var{Ellipsis:e={}}=B();return P(e,a,"Ellipsis"),null};ia.displayName="JVR.Ellipsis";var oa=a=>{var{isExpanded:e,value:t,keyName:n}=a,{Ellipsis:c={}}=B(),{as:o,render:i}=c,s=j(c,vt),d=o||"span",v=i&&typeof i=="function"&&i(l({},s,{"data-expanded":e}),{value:t,keyName:n});return v||(!e||typeof t=="object"&&Object.keys(t).length==0?null:r.jsx(d,l({},s)))};oa.displayName="JVR.EllipsisComp";var da=a=>{var e,{keyName:t,expandKey:n,keys:c=[],initialValue:o,value:i,parentValue:s,level:d}=a,v=U(),u=jr(),{onExpand:p,collapsed:m,shouldExpandNodeInitially:f}=K(),x=Array.isArray(i),N=i instanceof Set,w=typeof m=="boolean"?m:typeof m=="number"?d>m:!1,k=typeof i=="object",C=(e=v[n])!=null?e:w,S=f&&f(C,{value:i,keys:c,level:d});v[n]===void 0&&S!==void 0&&(C=S);var E=()=>{var L={expand:!C,value:i,keyid:n,keyName:t};p&&p(L),u({[n]:L.expand})},_={display:"inline-flex",alignItems:"center"},J={transform:"rotate("+(C?"-90":"0")+"deg)",transition:"all 0.3s"},h=Object.keys(i).length,R=h!==0&&(x||N||k),M={style:_};R&&(M.onClick=E);var A={keyName:t,value:i,keys:c,parentValue:s};return r.jsxs("span",l({},M,{children:[R&&r.jsx(Ee,l({style:J,expandKey:n},A)),(t||typeof t=="number")&&r.jsx(le,l({},A)),r.jsx(Ie,{value:o,keyName:t}),r.jsx($e,{value:o,keyName:t}),r.jsx(De,l({isBrackets:x||N},A)),r.jsx(oa,{keyName:t,value:i,isExpanded:C}),r.jsx(ne,l({isVisiable:C||!R,isBrackets:x||N},A)),r.jsx(la,{value:i,keyName:t}),r.jsx(na,{value:i,keyName:t}),r.jsx(se,{keyName:t,value:i,expandKey:n,parentValue:s,keys:c})]}))};da.displayName="JVR.NestedOpen";var ut=["className","children","parentValue","keyid","level","value","initialValue","keys","keyName"],ie=y.forwardRef((a,e)=>{var{className:t="",parentValue:n,level:c=1,value:o,initialValue:i,keys:s,keyName:d}=a,v=j(a,ut),u=ye(),p=ea(),m=[t,"w-rjv-inner"].filter(Boolean).join(" "),f={onMouseEnter:()=>u({[p]:!0}),onMouseLeave:()=>u({[p]:!1})};return r.jsxs("div",l({className:m,ref:e},v,f,{children:[r.jsx(da,{expandKey:p,value:o,level:c,keys:s,parentValue:n,keyName:d,initialValue:i}),r.jsx(aa,{expandKey:p,value:o,level:c,keys:s,parentValue:n,keyName:d}),r.jsx(Me,{expandKey:p,value:o,level:c,keys:s})]}))});ie.displayName="JVR.Container";var ca=a=>{var{BraceLeft:e={}}=V();return F(e,a,"BraceLeft"),null};ca.displayName="JVR.BraceLeft";var va=a=>{var{BraceRight:e={}}=V();return F(e,a,"BraceRight"),null};va.displayName="JVR.BraceRight";var ua=a=>{var{BracketsLeft:e={}}=V();return F(e,a,"BracketsLeft"),null};ua.displayName="JVR.BracketsLeft";var pa=a=>{var{BracketsRight:e={}}=V();return F(e,a,"BracketsRight"),null};pa.displayName="JVR.BracketsRight";var ya=a=>{var{Arrow:e={}}=V();return F(e,a,"Arrow"),null};ya.displayName="JVR.Arrow";var ma=a=>{var{Colon:e={}}=V();return F(e,a,"Colon"),null};ma.displayName="JVR.Colon";var fa=a=>{var{Quote:e={}}=V();return F(e,a,"Quote"),null};fa.displayName="JVR.Quote";var ha=a=>{var{ValueQuote:e={}}=V();return F(e,a,"ValueQuote"),null};ha.displayName="JVR.ValueQuote";var ja=a=>{var{Bigint:e={}}=b();return T(e,a,"Bigint"),null};ja.displayName="JVR.Bigint";var xa=a=>{var{Date:e={}}=b();return T(e,a,"Date"),null};xa.displayName="JVR.Date";var Na=a=>{var{False:e={}}=b();return T(e,a,"False"),null};Na.displayName="JVR.False";var wa=a=>{var{Float:e={}}=b();return T(e,a,"Float"),null};wa.displayName="JVR.Float";var Ca=a=>{var{Int:e={}}=b();return T(e,a,"Int"),null};Ca.displayName="JVR.Int";var ga=a=>{var{Map:e={}}=b();return T(e,a,"Map"),null};ga.displayName="JVR.Map";var ba=a=>{var{Nan:e={}}=b();return T(e,a,"Nan"),null};ba.displayName="JVR.Nan";var ka=a=>{var{Null:e={}}=b();return T(e,a,"Null"),null};ka.displayName="JVR.Null";var Ra=a=>{var{Set:e={}}=b();return T(e,a,"Set"),null};Ra.displayName="JVR.Set";var Sa=a=>{var{Str:e={}}=b();return T(e,a,"Str"),null};Sa.displayName="JVR.StringText";var Va=a=>{var{True:e={}}=b();return T(e,a,"True"),null};Va.displayName="JVR.True";var La=a=>{var{Undefined:e={}}=b();return T(e,a,"Undefined"),null};La.displayName="JVR.Undefined";var Ta=a=>{var{Url:e={}}=b();return T(e,a,"Url"),null};Ta.displayName="JVR.Url";var Ja=a=>{var{Copied:e={}}=B();return P(e,a,"Copied"),null};Ja.displayName="JVR.Copied";var pt=["className","style","value","children","collapsed","shouldExpandNodeInitially","indentWidth","displayObjectSize","shortenTextAfterLength","highlightUpdates","enableClipboard","displayDataTypes","objectSortKeys","onExpand","onCopied"],g=y.forwardRef((a,e)=>{var{className:t="",style:n,value:c,children:o,collapsed:i,shouldExpandNodeInitially:s,indentWidth:d=15,displayObjectSize:v=!0,shortenTextAfterLength:u=30,highlightUpdates:p=!0,enableClipboard:m=!0,displayDataTypes:f=!0,objectSortKeys:x=!1,onExpand:N,onCopied:w}=a,k=j(a,pt),C=l({lineHeight:1.4,fontFamily:"var(--w-rjv-font-family, Menlo, monospace)",color:"var(--w-rjv-color, #002b36)",backgroundColor:"var(--w-rjv-background-color, #00000000)",fontSize:13},n),S=["w-json-view-container","w-rjv",t].filter(Boolean).join(" ");return r.jsxs(Je,{initialState:{value:c,objectSortKeys:x,indentWidth:d,shouldExpandNodeInitially:s,displayObjectSize:v,collapsed:i,enableClipboard:m,shortenTextAfterLength:u,highlightUpdates:p,onCopied:w,onExpand:N},initialTypes:{displayDataTypes:f},children:[r.jsx(ie,l({value:c},k,{ref:e,className:S,style:C})),o]})});g.Bigint=ja;g.Date=xa;g.False=Na;g.Float=wa;g.Int=Ca;g.Map=ga;g.Nan=ba;g.Null=ka;g.Set=Ra;g.String=Sa;g.True=Va;g.Undefined=La;g.Url=Ta;g.ValueQuote=ha;g.Arrow=ya;g.Colon=ma;g.Quote=fa;g.Ellipsis=ia;g.BraceLeft=ca;g.BraceRight=va;g.BracketsLeft=ua;g.BracketsRight=pa;g.Copied=Ja;g.CountInfo=sa;g.CountInfoExtra=ta;g.KeyName=qe;g.Row=Xe;g.displayName="JVR.JsonView";var yt={"--w-rjv-font-family":"monospace","--w-rjv-color":"#79c0ff","--w-rjv-key-string":"#79c0ff","--w-rjv-background-color":"#0d1117","--w-rjv-line-color":"#94949480","--w-rjv-arrow-color":"#ccc","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#7b7b7b","--w-rjv-update-color":"#ebcb8b","--w-rjv-copied-color":"#79c0ff","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#8b949e","--w-rjv-colon-color":"#c9d1d9","--w-rjv-brackets-color":"#8b949e","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#a5d6ff","--w-rjv-type-int-color":"#79c0ff","--w-rjv-type-float-color":"#79c0ff","--w-rjv-type-bigint-color":"#79c0ff","--w-rjv-type-boolean-color":"#ffab70","--w-rjv-type-date-color":"#79c0ff","--w-rjv-type-url-color":"#4facff","--w-rjv-type-null-color":"#ff7b72","--w-rjv-type-nan-color":"#859900","--w-rjv-type-undefined-color":"#79c0ff"},mt={"--w-rjv-font-family":"monospace","--w-rjv-color":"#6f42c1","--w-rjv-key-string":"#6f42c1","--w-rjv-background-color":"#ffffff","--w-rjv-line-color":"#ddd","--w-rjv-arrow-color":"#6e7781","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#0000004d","--w-rjv-update-color":"#ebcb8b","--w-rjv-copied-color":"#002b36","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#6a737d","--w-rjv-colon-color":"#24292e","--w-rjv-brackets-color":"#6a737d","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#032f62","--w-rjv-type-int-color":"#005cc5","--w-rjv-type-float-color":"#005cc5","--w-rjv-type-bigint-color":"#005cc5","--w-rjv-type-boolean-color":"#d73a49","--w-rjv-type-date-color":"#005cc5","--w-rjv-type-url-color":"#0969da","--w-rjv-type-null-color":"#d73a49","--w-rjv-type-nan-color":"#859900","--w-rjv-type-undefined-color":"#005cc5"};const ft=({...a})=>{const e=or(),{palette:{primary:{main:t}}}=Ka(),n=y.useMemo(()=>({...e==="light"?mt:yt,"--w-rjv-background-color":"transparent","--w-rjv-ellipsis-color":t}),[e,t]);return r.jsx(g,{...a,style:n,displayObjectSize:!1,displayDataTypes:!1})};function ve(a,e){y.useEffect(()=>{const t=new URLSearchParams(window.location.search),n=t.get(a)??"";if(e===n)return;e?t.set(a,e):t.delete(a);const c=[window.location.pathname,t.toString()].filter(Boolean).join("?");window.history.replaceState(null,"",c)},[a,e])}const xt=()=>!0,Nt={crumb:(a,{pathname:e})=>({to:e,linkText:e.split("/").reverse()[0]==="reports"?"Reports":"Test Suites"})},Ba=a=>Object.values(a).map(e=>Array.isArray(e)?e.join(" "):typeof e=="object"?Ba(e):e).join(" "),wt=({type:a,slots:e})=>{const{projectId:t}=Pa(),n=Oa(),c=Ua(),o=Qa(),s=Za().state!=="idle";Wa(t);const[d]=za(),[v,u]=y.useState("desc"),[p,m]=Ha("show-full-json-metadata",!1),[f,x]=y.useState(()=>{var h;return((h=d.get("tags"))==null?void 0:h.split(","))||[]}),[N,w]=y.useState(()=>d.get("metadata-query")||"");ve("tags",f.join(",")),ve("metadata-query",String(N));const k=c.find(({handle:h})=>{var R;return((R=h==null?void 0:h.hide)==null?void 0:R.snapshotList)===!0}),C=y.useMemo(()=>Array.from(new Set(n.flatMap(({tags:h})=>h))),[n]),S=y.useMemo(()=>n.filter(({tags:h})=>f.every(R=>h.includes(R))),[n,f]),E=y.useMemo(()=>S.filter(({metadata:h})=>N===""?!0:Ba(h).includes(N)),[S,N]),_=y.useMemo(()=>v===void 0?E:E.sort((h,R)=>{const[M,A]=[Date.parse(h.timestamp),Date.parse(R.timestamp)],L=M-A;return v==="desc"?-L:v==="asc"?L:0}),[E,v]);if(k)return r.jsx(qa,{});const J=r.jsx($,{sx:{padding:2},children:r.jsxs(W,{container:!0,gap:2,alignItems:"flex-end",justifyContent:"space-around",children:[r.jsx(W,{item:!0,xs:12,md:4,children:r.jsx(sr,{multiple:!0,limitTags:2,value:f,onChange:(h,R)=>x(R),options:C,renderInput:h=>r.jsx(ce,{...h,variant:"standard",label:"Filter by Tags"})})}),r.jsx(W,{item:!0,xs:12,md:7,children:r.jsxs($,{display:"flex",alignItems:"flex-end",gap:2,children:[r.jsx(ce,{fullWidth:!0,value:N,onChange:h=>w(h.target.value),variant:"standard",label:"Search in Metadata"}),r.jsx($,{minWidth:220,display:"flex",justifyContent:"center",children:r.jsx(lr,{control:r.jsx(ir,{checked:p,onChange:h=>m(h.target.checked)}),label:"Hide Metadata"})}),r.jsx($,{display:"flex",justifyContent:"flex-end",children:r.jsxs(z,{sx:{minWidth:160},variant:"outlined",onClick:()=>o({action:"reload-snapshots"},{method:"post",replace:!0,encType:"application/json"}),color:"primary",disabled:s,children:["refresh ",a]})})]})})]})});return n.length===0?r.jsxs(r.Fragment,{children:[J,r.jsxs(de,{my:3,variant:"h4",align:"center",children:["You don't have any ",a," yet."]})]}):r.jsxs(r.Fragment,{children:[J,r.jsxs(Ga,{children:[r.jsxs(Xa,{children:[r.jsxs(Z,{children:[r.jsx(I,{children:a==="reports"?"Report ID":a==="test suites"?"Test Suite ID":"indefined"}),r.jsx(I,{children:"Tags"}),r.jsx(I,{children:"Metadata"}),r.jsx(I,{children:r.jsx(Ya,{active:!!v,direction:v,onClick:()=>{u(h=>{if(h===void 0)return"desc";if(h==="desc")return"asc"})},children:"Timestamp"})}),r.jsx(I,{align:"center",children:"Actions"})]}),r.jsx(Z,{})]}),r.jsx(er,{children:_.map(h=>r.jsxs(Z,{children:[r.jsx(I,{children:r.jsx(ur,{showText:h.id,copyText:h.id})}),r.jsx(I,{children:r.jsx($,{maxWidth:250,children:r.jsx(vr,{onClick:R=>{f.includes(R)||x([...f,R])},tags:h.tags})})}),r.jsx(I,{children:r.jsx(ft,{collapsed:p,value:h.metadata,enableClipboard:!1})}),r.jsx(I,{children:r.jsx(de,{variant:"body2",children:ar(h.timestamp).locale("en-gb").format("llll")})}),r.jsx(I,{children:r.jsxs($,{display:"flex",justifyContent:"center",gap:1,children:[e!=null&&e.ViewButton?r.jsx(e.ViewButton,{snapshotId:h.id,projectId:t}):r.jsx(z,{disabled:s,component:rr,to:`${h.id}`,children:"View"}),r.jsx(cr,{variant:(e==null?void 0:e.donwloadButtonVariant)||"outlined",disabled:s,downloadLink:`/api/projects/${t}/${h.id}/download`}),(e==null?void 0:e.additionalSnapshotActions)&&r.jsx(e.additionalSnapshotActions,{snapshotId:h.id,projectId:t}),r.jsx($,{children:r.jsx(tr,{title:"delete snapshot",placement:"top",children:r.jsx(G,{onClick:()=>{confirm("Are you sure?")===!0&&o({action:"delete-snapshot",snapshotId:h.id},{method:"post",replace:!0,encType:"application/json"})},color:"primary",disabled:s,children:r.jsx(nr,{})})})})]})})]},`r-${h.id}`))})]})]})};export{wt as SnapshotsListTemplate,Nt as handle,xt as shouldRevalidate}; diff --git a/src/evidently/ui/assets/static/js/index-CykUxFwF.js b/src/evidently/ui/assets/static/js/index-CkUAhjno.js similarity index 87% rename from src/evidently/ui/assets/static/js/index-CykUxFwF.js rename to src/evidently/ui/assets/static/js/index-CkUAhjno.js index d5889cd2f2..78923717e1 100644 --- a/src/evidently/ui/assets/static/js/index-CykUxFwF.js +++ b/src/evidently/ui/assets/static/js/index-CkUAhjno.js @@ -1 +1 @@ -import{ak as p,m as o,a5 as h,j as e,G as c}from"./vendor-C2GWNUp2.js";import{r as n,J as d}from"./index-BnvKIZBQ.js";import{a as m,C as g,D as _}from"./DashboardContent-Ka8LC1DI.js";import"./DashboardViewParams-D9XhJzJS.js";const C={crumb:(s,{pathname:t,params:a})=>({to:t,linkText:String(a.snapshotId)}),hide:{snapshotList:!0}},D=({api:s})=>{const{projectId:t,snapshotId:a}=p();o(t),o(a);const i=h();return e.jsx(e.Fragment,{children:e.jsx(m.Provider,{value:g({getAdditionGraphData:r=>s.GET("/api/projects/{project_id}/{snapshot_id}/graphs_data/{graph_id}",{params:{path:{project_id:t,snapshot_id:a,graph_id:encodeURIComponent(r)}},parseAs:"text"}).then(n()).then(d),getAdditionWidgetData:r=>s.GET("/api/projects/{project_id}/{snapshot_id}/graphs_data/{graph_id}",{params:{path:{project_id:t,snapshot_id:a,graph_id:encodeURIComponent(r)}},parseAs:"text"}).then(n()).then(d)}),children:e.jsx(c,{container:!0,spacing:3,direction:"row",alignItems:"stretch",children:e.jsx(_,{widgets:i.widgets})})})})};export{D as SnapshotTemplate,C as handle}; +import{ak as p,m as o,a5 as h,j as e,G as c}from"./vendor-C2GWNUp2.js";import{r as n,J as d}from"./index-D-BBKVDE.js";import{a as m,C as g,D as _}from"./DashboardContent-B-RwgqJG.js";import"./DashboardViewParams-D9XhJzJS.js";const C={crumb:(s,{pathname:t,params:a})=>({to:t,linkText:String(a.snapshotId)}),hide:{snapshotList:!0}},D=({api:s})=>{const{projectId:t,snapshotId:a}=p();o(t),o(a);const i=h();return e.jsx(e.Fragment,{children:e.jsx(m.Provider,{value:g({getAdditionGraphData:r=>s.GET("/api/projects/{project_id}/{snapshot_id}/graphs_data/{graph_id}",{params:{path:{project_id:t,snapshot_id:a,graph_id:encodeURIComponent(r)}},parseAs:"text"}).then(n()).then(d),getAdditionWidgetData:r=>s.GET("/api/projects/{project_id}/{snapshot_id}/graphs_data/{graph_id}",{params:{path:{project_id:t,snapshot_id:a,graph_id:encodeURIComponent(r)}},parseAs:"text"}).then(n()).then(d)}),children:e.jsx(c,{container:!0,spacing:3,direction:"row",alignItems:"stretch",children:e.jsx(_,{widgets:i.widgets})})})})};export{D as SnapshotTemplate,C as handle}; diff --git a/src/evidently/ui/assets/static/js/index-BnvKIZBQ.js b/src/evidently/ui/assets/static/js/index-D-BBKVDE.js similarity index 96% rename from src/evidently/ui/assets/static/js/index-BnvKIZBQ.js rename to src/evidently/ui/assets/static/js/index-D-BBKVDE.js index f7b88d5f70..ce7c62dfef 100644 --- a/src/evidently/ui/assets/static/js/index-BnvKIZBQ.js +++ b/src/evidently/ui/assets/static/js/index-D-BBKVDE.js @@ -1,3 +1,3 @@ -const __vite__fileDeps=["static/js/index-CDNqhC_e.js","static/js/vendor-C2GWNUp2.js","static/js/index-CWfr-A2J.js","static/js/DashboardViewParams-D9XhJzJS.js","static/js/DashboardWidgets-BRGpEdMo.js","static/js/DashboardContent-Ka8LC1DI.js","static/js/index-CykUxFwF.js","static/js/index-DJ2Ae9EQ.js","static/js/index-qb_niS19.js","static/js/index-DJhIIsZf.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -var se=Object.defineProperty;var oe=(e,r,s)=>r in e?se(e,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[r]=s;var w=(e,r,s)=>(oe(e,typeof r!="symbol"?r+"":r,s),s);import{c as G,g as R,u as ne,a as ie,r as k,j as t,A as ae,b as ce,d as F,i as he,T as S,e as le,R as M,S as W,B as d,I as J,C as Y,f as de,h as ue,k as pe,l as fe,m as E,n as me,L as je,o as xe,p as Le,q as ye,P as ge,s as _e,t as ve,v as Ce,w as Se,G as I,F as Ee,x as be,y as ke,z as we,D as Ie,M as f,E as H,H as Pe,J as Te,K as A,N as p,O as Oe,Q as Ae,U as De,V as Re,W as Me}from"./vendor-C2GWNUp2.js";(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))o(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&o(a)}).observe(document,{childList:!0,subtree:!0});function s(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(n){if(n.ep)return;n.ep=!0;const i=s(n);fetch(n.href,i)}})();const{transitions:b}=G(),P="#ed0500",Fe=G({cssVariables:{colorSchemeSelector:"class"},colorSchemes:{light:{palette:{text:{primary:"#09090b"},primary:{main:"#09090b",light:R[200]},secondary:{main:P,dark:"#c10400",light:R[200]}}},dark:{palette:{text:{primary:"#fafafa"},primary:{main:"#fafafa",light:R[900]},secondary:{main:P}}}},shape:{borderRadius:5},components:{MuiInputBase:{styleOverrides:{input:{"&:-webkit-autofill":{transitionDelay:"9999s",transitionProperty:"background-color, box-shadow, color"}}}},MuiLink:{styleOverrides:{root:{transition:b.create("color",{duration:b.duration.enteringScreen}),"&:hover":{color:P}}}},MuiTabs:{styleOverrides:{flexContainer:{gap:"10px"},indicator:{backgroundColor:P}}},MuiTab:{defaultProps:{color:"secondary"},styleOverrides:{root:{fontSize:"1rem",borderRadius:"5px"}}},MuiIconButton:{styleOverrides:{root:{transition:b.create("color",{duration:b.duration.enteringScreen}),color:"inherit","&:hover":{color:P}}}},MuiSwitch:{defaultProps:{color:"secondary"}},MuiToggleButton:{defaultProps:{color:"secondary"},styleOverrides:{root:{transition:b.create("color",{duration:b.duration.enteringScreen}),color:"inherit","&.Mui-disabled":{border:"unset"}}}},MuiLinearProgress:{defaultProps:{color:"secondary"}},MuiPaper:{defaultProps:{sx:{border:"1px solid",borderColor:e=>e.palette.divider}},styleOverrides:{root:{boxShadow:"unset"}}}},typography:{fontFamily:["-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),button:{fontWeight:"bold",textTransform:"none"}}}),q=()=>{const{mode:e}=ne(),r=ie("(prefers-color-scheme: dark)");return!e||e==="system"?r?"dark":"light":e},It=()=>{const e=q();return k.useMemo(()=>e==="dark"?{tooltip:{container:{background:"#000",color:"#fff"}}}:void 0,[e])},N=({forseFilled:e,sx:r,...s})=>{const o=q();return t.jsx(ae,{sx:[n=>n.applyStyles("light",{border:"none"}),...Array.isArray(r)?r:[r]],variant:o==="dark"?e?"filled":"outlined":void 0,...s})},_=()=>{var r;const e=ce();return t.jsxs(N,{severity:"error",children:[t.jsx(F,{children:"Something went wrong"}),he(e)&&t.jsxs(t.Fragment,{children:[t.jsx(S,{fontWeight:"bold",children:[`Status: ${e.status}`,typeof((r=e.data)==null?void 0:r.detail)=="string"&&e.data.detail].filter(Boolean).join(", ")}),typeof e.data=="string"&&t.jsx(S,{children:e.data})]}),typeof e=="string"&&t.jsx(S,{fontWeight:"bold",children:e})]})},Q=({data:e})=>{const[r,s]=M.useState(!1),o=M.useRef(null);return k.useEffect(()=>{e!=null&&e.error&&(o.current=e.error,s(!0))},[e]),t.jsx(W,{open:r,onClose:(n,i)=>{i!=="clickaway"&&s(!1)},children:t.jsx(d,{children:t.jsx(N,{severity:"error",forseFilled:!0,children:t.jsxs(d,{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:2,children:[t.jsxs(d,{children:[t.jsx(F,{children:"Something went wrong"}),o.current&&t.jsx(S,{fontWeight:"bold",children:[typeof o.current.status_code=="number"&&`Status: ${o.current.status_code}`,typeof o.current.detail=="string"&&o.current.detail].filter(Boolean).join(", ")})]}),t.jsx(d,{children:t.jsx(J,{size:"small","aria-label":"close",color:"inherit",onClick:()=>{s(!1)},children:t.jsx(Y,{})})})]})})})})},B=()=>{const e=le();return t.jsx(Q,{data:e})},Ne=()=>{var s;const r=(s=de().find(o=>{var n;return!!((n=o.data)!=null&&n.error)}))==null?void 0:s.data;return t.jsx(Q,{data:r})},Be={path:"*",Component:()=>t.jsx(d,{display:"flex",justifyContent:"center",children:t.jsx(S,{variant:"h4",children:"Page Not Found"})})},$e="modulepreload",He=function(e){return"/"+e},V={},g=function(r,s,o){let n=Promise.resolve();if(s&&s.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),a=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));n=Promise.all(s.map(c=>{if(c=He(c),c in V)return;V[c]=!0;const m=c.endsWith(".css"),h=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${h}`))return;const l=document.createElement("link");if(l.rel=m?"stylesheet":$e,m||(l.as="script",l.crossOrigin=""),l.href=c,a&&l.setAttribute("nonce",a),document.head.appendChild(l),m)return new Promise((x,D)=>{l.addEventListener("load",x),l.addEventListener("error",()=>D(new Error(`Unable to preload CSS for ${c}`)))})}))}return n.then(()=>r()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})},Ve=()=>t.jsx(ue,{fontSize:"large",sx:{width:180},children:t.jsxs("svg",{"aria-hidden":"true",width:"734",height:"219",viewBox:"0 70 734 90",version:"1.1",children:[t.jsx("path",{d:"M 180 113 L 180 141 201.500 141 L 223 141 223 136.500 L 223 132 207 132 L 191 132 191 124.500 L 191 117 204.500 117 L 218 117 218 112.500 L 218 108 204.500 108 L 191 108 191 101 L 191 94 206 94 L 221 94 221 89.500 L 221 85 200.500 85 L 180 85 180 113 M 221.989 87.250 C 221.983 88.487, 227.010 101.088, 233.160 115.250 L 244.342 141 249.931 141 L 255.521 141 266.865 114.959 C 273.104 100.636, 278.439 88.036, 278.721 86.959 C 279.183 85.191, 278.709 85.002, 273.867 85.024 L 268.500 85.049 259.393 106.080 L 250.285 127.111 243.204 110.806 C 239.309 101.838, 235.210 92.362, 234.096 89.750 L 232.071 85 227.036 85 C 222.483 85, 221.999 85.216, 221.989 87.250 M 280 113 L 280 141 285.500 141 L 291 141 291 113 L 291 85 285.500 85 L 280 85 280 113 M 301 113 L 301 141 316.818 141 C 327.946 141, 334.130 140.557, 337.672 139.505 C 340.601 138.635, 344.617 136.329, 347.270 133.993 C 349.779 131.785, 352.871 127.845, 354.141 125.239 C 355.926 121.575, 356.450 118.799, 356.450 113 C 356.450 107.201, 355.926 104.425, 354.141 100.761 C 352.871 98.155, 349.779 94.215, 347.270 92.007 C 344.617 89.671, 340.601 87.365, 337.672 86.495 C 334.130 85.443, 327.946 85, 316.818 85 L 301 85 301 113 M 362 113 L 362 141 383.500 141 L 405 141 405 136.500 L 405 132 389 132 L 373 132 373 124.500 L 373 117 386.500 117 L 400 117 400 112.500 L 400 108 386.500 108 L 373 108 373 101 L 373 94 388.500 94 L 404 94 404 89.500 L 404 85 383 85 L 362 85 362 113 M 411 113 L 411 141 416.500 141 L 422 141 422 122.426 L 422 103.851 437.126 122.426 L 452.253 141 457.126 141 L 462 141 462 113 L 462 85 456.522 85 L 451.044 85 450.772 103.414 L 450.500 121.828 435.550 103.414 L 420.600 85 415.800 85 L 411 85 411 113 M 464 89.500 L 464 94 473.500 94 L 483 94 483 117.500 L 483 141 488.500 141 L 494 141 494 117.500 L 494 94 503 94 L 512 94 512 89.500 L 512 85 488 85 L 464 85 464 89.500 M 514 113 L 514 141 534.500 141 L 555 141 555 136.500 L 555 132 540.500 132 L 526 132 526 108.500 L 526 85 520 85 L 514 85 514 113 M 544 85.624 C 544 85.967, 548.725 94.001, 554.500 103.477 L 565 120.707 565 130.853 L 565 141 571 141 L 577 141 577 130.825 L 577 120.649 587.500 103.291 C 593.275 93.743, 598 85.722, 598 85.466 C 598 85.210, 595.577 85, 592.615 85 L 587.230 85 579.505 97.991 C 575.257 105.136, 571.435 110.769, 571.012 110.507 C 570.589 110.246, 566.926 104.410, 562.872 97.538 L 555.500 85.043 549.750 85.021 C 546.587 85.010, 544 85.281, 544 85.624 M 312 113 L 312 132 320.250 131.994 C 324.788 131.991, 330.174 131.524, 332.219 130.956 C 334.264 130.388, 337.363 128.724, 339.105 127.258 C 340.847 125.793, 342.886 123.124, 343.636 121.329 C 344.386 119.533, 345 115.785, 345 113 C 345 110.215, 344.386 106.467, 343.636 104.671 C 342.886 102.876, 340.847 100.207, 339.105 98.742 C 337.363 97.276, 334.264 95.612, 332.219 95.044 C 330.174 94.476, 324.788 94.009, 320.250 94.006 L 312 94 312 113",fill:"currentColor",fillRule:"evenodd"}),t.jsx("path",{d:"M 121 112 L 121 169 133.500 169 L 146 169 146 112 L 146 55 133.500 55 L 121 55 121 112 M 77 126 L 77 169 90 169 L 103 169 103 126 L 103 83 90 83 L 77 83 77 126 M 633.540 88.199 C 632.771 90.015, 627.159 102.517, 621.070 115.982 C 614.982 129.447, 610 140.832, 610 141.282 C 610 141.732, 612.528 141.965, 615.617 141.800 L 621.235 141.500 623.794 135.250 L 626.353 129 640.218 129 L 654.084 129 657 135.500 L 659.916 142 665.526 142 C 670.413 142, 671.063 141.775, 670.577 140.250 C 670.271 139.287, 664.639 126.575, 658.064 112 L 646.108 85.500 640.524 85.199 C 635.051 84.904, 634.913 84.964, 633.540 88.199 M 673 113.500 L 673 142 678.500 142 L 684 142 684 113.500 L 684 85 678.500 85 L 673 85 673 113.500 M 635.630 107.723 C 633.074 113.650, 630.986 118.838, 630.991 119.250 C 630.996 119.662, 635.275 120, 640.500 120 C 645.725 120, 650 119.819, 650 119.598 C 650 119.377, 647.923 114.315, 645.385 108.348 C 642.847 102.382, 640.659 97.375, 640.524 97.223 C 640.389 97.070, 638.187 101.795, 635.630 107.723 M 34 140.500 L 34 169 47 169 L 60 169 60 140.500 L 60 112 47 112 L 34 112 34 140.500",fill:"#ed0500",fillRule:"evenodd"})]})});function u(e){return e!=null&&e.notThrowExc?Ue:ze}const ze=e=>{const{data:r,error:s,response:o}=e;if(s)throw pe(s,{status:o.status});return r},Ue=e=>{const{data:r,error:s,response:o}=e;return s?{error:{...s,status_code:o.status}}:r},Ge=({api:e})=>({loader:()=>e.GET("/api/version").then(u())}),We=fe,v=We({baseUrl:"/"}),{loader:Je}=Ge({api:v}),Ye={path:"/",lazy:async()=>{const{HomeComponentTemplate:e,...r}=await g(()=>import("./index-CDNqhC_e.js"),__vite__mapDeps([0,1]));return{Component:()=>t.jsxs(t.Fragment,{children:[t.jsx(Ne,{}),t.jsx(e,{LogoSvg:Ve})]}),...r}},loader:Je,ErrorBoundary:_},K=e=>{if(e.id)return{...e,id:e.id};throw`"id" is missing in object: ${JSON.stringify(e)}`},X=e=>{if(e.headers.get("Content-type")!=="application/json")throw new Response("Unsupported Media Type",{status:415})},qe=({api:e})=>({loader:({params:r})=>{const{projectId:s}=r;return E(s),e.GET("/api/projects/{project_id}/info",{params:{path:{project_id:s}}}).then(u()).then(K)}}),Qe=({event:e})=>{const s=e.points[0].customdata;if(!s)return t.jsx(t.Fragment,{});const o="metric_fingerprint"in s?"report":"test-suite";return t.jsx(t.Fragment,{children:t.jsx(d,{sx:{position:"absolute",bottom:0,right:0,background:n=>n.palette.background.default,p:1,borderRadius:"10px"},children:t.jsx(me,{direction:"row",alignItems:"center",gap:2,children:t.jsx(je,{component:xe,to:`${o}s/${s.snapshot_id}`,children:t.jsxs(Le,{variant:"outlined",children:["View ",o.split("-").join(" ")]})})})})})},Ke=()=>{const[e,r]=ye("is-user-saw-click-on-datapoints-hint",!1),[s,o]=k.useState(!e);return k.useEffect(()=>r(!0),[]),s?t.jsx(t.Fragment,{children:t.jsx(W,{open:s,onClose:(n,i)=>{i!=="clickaway"&&o(!1)},children:t.jsx(ge,{sx:{p:1,borderRadius:2,border:"1px solid",borderColor:n=>n.palette.divider},children:t.jsxs(d,{display:"flex",justifyContent:"space-between",alignItems:"center",gap:2,children:[t.jsx(d,{children:t.jsx(S,{children:"You can click on the data point to open the Report."})}),t.jsx(d,{children:t.jsx(J,{size:"small",onClick:()=>{o(!1)},children:t.jsx(Y,{})})})]})})})}):t.jsx(t.Fragment,{})};function z(e){return`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}T${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}`}const y={FROM:"date_from",TO:"date_to"},Xe=e=>{const r=e.get(y.FROM),s=e.get(y.TO);return{date_from:r,date_to:s}},Ze=({dataRanges:e})=>{const[r,s]=Te(),{date_from:o,date_to:n}=Xe(r),i=A(o||e.minDate),a=A(n||e.maxDate);return{isCorrectTimeInterval:i.isValid()&&a.isValid()&&(i.isSame(a)||i.isBefore(a)),date_from:i,date_to:a,setSearchParams:s}},Pt=({dataRanges:e,isDashboardHideDates:r,setIsDashboardHideDates:s,isShowDateFilter:o})=>{const n=_e(),{isCorrectTimeInterval:i,date_from:a,date_to:c,setSearchParams:m}=Ze({dataRanges:e}),[h,l]=k.useState({date_from:a,date_to:c}),x=ve(h,300),D=i?"":"incorrect time interval";return k.useEffect(()=>{var T,O;if(n)return;const j=(T=x==null?void 0:x.date_to)==null?void 0:T.toDate(),L=(O=x==null?void 0:x.date_from)==null?void 0:O.toDate();m(C=>(C.delete(y.FROM),C.delete(y.TO),L&&C.append(y.FROM,z(L)),j&&C.append(y.TO,z(j)),C),{preventScrollReset:!0,replace:!0})},[x]),t.jsx(Ce,{dateAdapter:Se,adapterLocale:"en-gb",children:t.jsxs(I,{container:!0,padding:1,zIndex:1,gap:2,justifyContent:"flex-end",alignItems:"flex-end",children:[t.jsx(I,{item:!0,children:t.jsx(d,{minWidth:180,display:"flex",justifyContent:"center",children:t.jsx(Ee,{control:t.jsx(be,{checked:r,onChange:j=>s(j.target.checked)}),label:"Show in order"})})}),o&&t.jsxs(t.Fragment,{children:[t.jsx(I,{item:!0,xs:12,md:2,children:t.jsxs(ke,{fullWidth:!0,children:[t.jsx(we,{children:"Period"}),t.jsxs(Ie,{variant:"standard",defaultValue:"",onChange:j=>{const[L,T]=j.target.value.split(",");if(L===""){l({date_from:null,date_to:null});return}const[O,C]=[Number(L),T],$=e.maxDate.subtract(O,C);l({date_from:$.isBefore(e.minDate)?e.minDate:$,date_to:e.maxDate})},children:[t.jsx(f,{value:"",children:t.jsx("em",{children:"None"})}),t.jsx(f,{value:"10,minutes",children:"Last 10 Minutes"}),t.jsx(f,{value:"30,minutes",children:"Last 30 Minutes"}),t.jsx(f,{value:"1,hours",children:"Last 1 Hours"}),t.jsx(f,{value:"2,hours",children:"Last 2 Hours"}),t.jsx(f,{value:"8,hours",children:"Last 8 Hours"}),t.jsx(f,{value:"24,hours",children:"Last 24 Hours"}),t.jsx(f,{value:"7,days",children:"Last 7 Days"}),t.jsx(f,{value:"14,days",children:"Last 14 Days"}),t.jsx(f,{value:"28,days",children:"Last 28 Days"}),t.jsx(f,{value:"60,days",children:"Last 60 Days"})]})]})}),t.jsx(I,{item:!0,children:t.jsxs(d,{display:"flex",alignItems:"center",gap:2,children:[t.jsx(H,{minDate:e.minDate,maxDate:e.maxDate&&c,slotProps:{textField:{variant:"standard"}},label:"From",value:h.date_from,onChange:j=>l(L=>({...L,date_from:j}))}),t.jsx(d,{height:1,display:"flex",alignItems:"center",children:t.jsx(S,{children:" - "})}),t.jsx(H,{minDate:e.minDate&&a,maxDate:e.maxDate,slotProps:{textField:{variant:"standard"}},label:"To",value:h.date_to,onChange:j=>l(L=>({...L,date_to:j}))})]})}),t.jsx(I,{item:!0,xs:12,children:t.jsx(Pe,{unmountOnExit:!0,in:!i,children:t.jsxs(N,{severity:"error",children:[t.jsx(F,{children:"Error"}),D]})})})]})]})})};class et{constructor(){w(this,"at",0);w(this,"ch","");w(this,"text","");w(this,"escapee",{'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:` -`,r:"\r",t:" "})}error(r){throw{name:"SyntaxError",message:r,at:this.at,text:this.text}}next(){return this.ch=this.text.charAt(this.at++)}check(r){r!==this.ch&&this.error(`Expected '${r}' instead of '${this.ch}'`),this.ch=this.text.charAt(this.at++)}number(){var r="";if(this.ch==="-"&&(r="-",this.check("-")),this.ch==="I")return this.check("I"),this.check("n"),this.check("f"),this.check("i"),this.check("n"),this.check("i"),this.check("t"),this.check("y"),Number.NEGATIVE_INFINITY;for(;this.ch>="0"&&this.ch<="9";)r+=this.ch,this.next();if(this.ch===".")for(r+=".";this.next()&&this.ch>="0"&&this.ch<="9";)r+=this.ch;if(this.ch==="e"||this.ch==="E")for(r+=this.ch,this.next(),(this.ch==="-"||this.ch==="+")&&(r+=this.ch,this.next());this.ch>="0"&&this.ch<="9";)r+=this.ch,this.next();return+r}string(){var r,s,o="",n;if(this.ch==='"')for(;this.next();){if(this.ch==='"')return this.next(),o;if(this.ch==="\\")if(this.next(),this.ch==="u"){for(n=0,s=0;s<4&&(r=Number.parseInt(this.next(),16),!!isFinite(r));s++)n=n*16+r;o+=String.fromCharCode(n)}else if(this.escapee[this.ch])o+=this.escapee[this.ch];else break;else o+=this.ch}this.error("Bad string")}white(){for(;this.ch&&this.ch<=" ";)this.next()}word(){switch(this.ch){case"t":return this.check("t"),this.check("r"),this.check("u"),this.check("e"),!0;case"f":return this.check("f"),this.check("a"),this.check("l"),this.check("s"),this.check("e"),!1;case"n":return this.check("n"),this.check("u"),this.check("l"),this.check("l"),null;case"N":return this.check("N"),this.check("a"),this.check("N"),Number.NaN;case"I":return this.check("I"),this.check("n"),this.check("f"),this.check("i"),this.check("n"),this.check("i"),this.check("t"),this.check("y"),Number.POSITIVE_INFINITY}this.error("Unexpected '"+this.ch+"'")}array(){var r=[];if(this.ch==="["){if(this.check("["),this.white(),this.ch==="]")return this.check("]"),r;for(;this.ch;){if(r.push(this.value()),this.white(),this.ch==="]")return this.check("]"),r;this.check(","),this.white()}}this.error("Bad array")}object(){var r,s={};if(this.ch==="{"){if(this.check("{"),this.white(),this.ch==="}")return this.check("}"),s;for(;this.ch;){if(r=this.string(),this.white(),this.check(":"),Object.hasOwnProperty.call(s,r)&&this.error('Duplicate key "'+r+'"'),s[r]=this.value(),this.white(),this.ch==="}")return this.check("}"),s;this.check(","),this.white()}}this.error("Bad object")}value(){switch(this.white(),this.ch){case"{":return this.object();case"[":return this.array();case'"':return this.string();case"-":return this.number();default:return this.ch>="0"&&this.ch<="9"?this.number():this.word()}}parse(r,s){let o;return this.text=r,this.at=0,this.ch=" ",o=this.value(),this.white(),this.ch&&this.error("Syntax error"),s!==void 0?function n(i,a){var c,m,h=i[a];if(h&&typeof h=="object")for(c in h)Object.prototype.hasOwnProperty.call(h,c)&&(m=n(h,c),m!==void 0?h[c]=m:delete h[c]);return s.call(i,a,h)}({"":o},""):o}}const Z=e=>new et().parse(e),tt=({api:e})=>({loader:({params:r,request:s})=>{E(r.projectId);const{searchParams:o}=new URL(s.url);let n=o.get(y.FROM),i=o.get(y.TO);return n&&!A(n).isValid()&&(n=null),i&&!A(i).isValid()&&(i=null),e.GET("/api/projects/{project_id}/dashboard",{params:{path:{project_id:r.projectId},query:{timestamp_start:n,timestamp_end:i}},parseAs:"text"}).then(u()).then(Z)}}),{loader:rt}=tt({api:v}),st={index:!0,id:"dashboard",lazy:async()=>{const[{DashboardComponentTemplate:e},{DashboardWidgets:r}]=await Promise.all([g(()=>import("./index-CWfr-A2J.js"),__vite__mapDeps([2,1,3])),g(()=>import("./DashboardWidgets-BRGpEdMo.js"),__vite__mapDeps([4,1,5,3]))]);return{Component:()=>t.jsx(e,{Dashboard:({data:{widgets:s}})=>t.jsx(r,{widgets:s}),OnClickedPointComponent:Qe,OnHoveredPlotComponent:Ke})}},loader:rt,ErrorBoundary:_},ee={RELOAD_SNAPSHOTS:"reload-snapshots",DELETE_SNAPSHOT:"delete-snapshot"},ot=p.object({action:p.literal(ee.RELOAD_SNAPSHOTS)}),nt=p.object({action:p.literal(ee.DELETE_SNAPSHOT),snapshotId:p.string().uuid()}),te=e=>async({request:r,params:s})=>{E(s.projectId),X(r);const o=await r.json();if(ot.safeParse(o).success)return e.GET("/api/projects/{project_id}/reload",{params:{path:{project_id:s.projectId}}}).then(u({notThrowExc:!0}));const i=nt.safeParse(o);return i.success?e.DELETE("/api/projects/{project_id}/{snapshot_id}",{params:{path:{project_id:s.projectId,snapshot_id:i.data.snapshotId}}}).then(u({notThrowExc:!0})):{error:{status_code:!1,detail:"Unknown action"}}},it=({api:e})=>({loader:({params:r})=>(E(r.projectId),r.snapshotId?Promise.resolve([]):e.GET("/api/projects/{project_id}/reports",{params:{path:{project_id:r.projectId}}}).then(u())),action:te(e)}),at=({api:e})=>({loader:({params:r})=>(E(r.projectId),r.snapshotId?Promise.resolve([]):e.GET("/api/projects/{project_id}/test_suites",{params:{path:{project_id:r.projectId}}}).then(u())),action:te(e)}),ct=({api:e})=>({loader:({params:r})=>{const{projectId:s,snapshotId:o}=r;return E(s),E(o),e.GET("/api/projects/{project_id}/{snapshot_id}/data",{params:{path:{project_id:s,snapshot_id:o}},parseAs:"text"}).then(u()).then(Z)}}),{loader:ht}=ct({api:v}),re={path:":snapshotId",lazy:async()=>{const{SnapshotTemplate:e,...r}=await g(()=>import("./index-CykUxFwF.js"),__vite__mapDeps([6,1,5,3]));return{Component:()=>t.jsx(e,{api:v}),...r}},loader:ht,ErrorBoundary:_},{loader:lt,action:dt}=it({api:v}),ut={id:"reports",path:"reports",lazy:async()=>{const{SnapshotsListTemplate:e,...r}=await g(()=>import("./index-DJ2Ae9EQ.js"),__vite__mapDeps([7,1]));return{...r,Component:()=>t.jsxs(t.Fragment,{children:[t.jsx(B,{}),t.jsx(e,{type:"reports"})]})}},loader:lt,action:dt,ErrorBoundary:_,children:[re]},{loader:pt,action:ft}=at({api:v}),mt={id:"test_suites",path:"test-suites",lazy:async()=>{const{SnapshotsListTemplate:e,...r}=await g(()=>import("./index-DJ2Ae9EQ.js"),__vite__mapDeps([7,1]));return{...r,Component:()=>t.jsxs(t.Fragment,{children:[t.jsx(B,{}),t.jsx(e,{type:"test suites"})]})}},loader:pt,action:ft,ErrorBoundary:_,children:[re]},{loader:jt}=qe({api:v}),xt={path:"projects/:projectId",lazy:()=>g(()=>import("./index-qb_niS19.js"),__vite__mapDeps([8,1])),loader:jt,ErrorBoundary:_,children:[st,ut,mt]},Lt=p.object({action:p.literal("edit-project")}),yt=p.object({action:p.literal("create-new-project")}),gt=p.object({action:p.literal("delete-project"),projectId:p.string().uuid()}),_t=({api:e})=>({loader:()=>e.GET("/api/projects").then(u()).then(r=>r.map(K)),action:async({request:r})=>{X(r);const s=await r.json();if(yt.safeParse(s).success)return e.POST("/api/projects",{body:s}).then(u({notThrowExc:!0}));const o=gt.safeParse(s);if(o.success)return e.DELETE("/api/projects/{project_id}",{params:{path:{project_id:o.data.projectId}}}).then(u({notThrowExc:!0}));if(Lt.safeParse(s).success)return e.POST("/api/projects/{project_id}/info",{params:{path:{project_id:s.id}},body:s}).then(u({notThrowExc:!0}));throw"Undefined action"}}),{loader:vt,action:Ct}=_t({api:v}),St={index:!0,lazy:()=>g(()=>import("./index-DJhIIsZf.js"),__vite__mapDeps([9,1])).then(e=>({...e,Component:()=>t.jsxs(t.Fragment,{children:[t.jsx(B,{}),t.jsx(e.Component,{})]})})),loader:vt,action:Ct,ErrorBoundary:_},Et={...Ye,children:[St,xt,Be],ErrorBoundary:_},bt=Oe([Et]),U=document.getElementById("root");U&&Ae.createRoot(U).render(t.jsx(M.StrictMode,{children:t.jsxs(De,{theme:Fe,children:[t.jsx(Re,{}),t.jsx(Me,{router:bt})]})}));export{N as A,Pt as D,Z as J,It as a,u as r,q as u}; +const __vite__fileDeps=["static/js/index-Jx8S0k4k.js","static/js/vendor-C2GWNUp2.js","static/js/index-Be9iI6RW.js","static/js/DashboardViewParams-D9XhJzJS.js","static/js/DashboardWidgets-B4lotoT2.js","static/js/DashboardContent-B-RwgqJG.js","static/js/index-CkUAhjno.js","static/js/index-BlQyByTT.js","static/js/index-qb_niS19.js","static/js/index-DJhIIsZf.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +var se=Object.defineProperty;var oe=(e,r,s)=>r in e?se(e,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[r]=s;var w=(e,r,s)=>(oe(e,typeof r!="symbol"?r+"":r,s),s);import{c as G,g as R,u as ne,a as ie,r as k,j as t,A as ae,b as ce,d as F,i as he,T as S,e as le,R as M,S as W,B as d,I as J,C as Y,f as de,h as ue,k as pe,l as fe,m as E,n as me,L as je,o as xe,p as Le,q as ye,P as ge,s as _e,t as ve,v as Ce,w as Se,G as I,F as Ee,x as be,y as ke,z as we,D as Ie,M as f,E as H,H as Pe,J as Te,K as A,N as p,O as Oe,Q as Ae,U as De,V as Re,W as Me}from"./vendor-C2GWNUp2.js";(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))o(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&o(a)}).observe(document,{childList:!0,subtree:!0});function s(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(n){if(n.ep)return;n.ep=!0;const i=s(n);fetch(n.href,i)}})();const{transitions:b}=G(),P="#ed0500",Fe=G({cssVariables:{colorSchemeSelector:"class"},colorSchemes:{light:{palette:{text:{primary:"#09090b"},primary:{main:"#09090b",light:R[200]},secondary:{main:P,dark:"#c10400",light:R[200]}}},dark:{palette:{text:{primary:"#fafafa"},primary:{main:"#fafafa",light:R[900]},secondary:{main:P}}}},shape:{borderRadius:5},components:{MuiInputBase:{styleOverrides:{input:{"&:-webkit-autofill":{transitionDelay:"9999s",transitionProperty:"background-color, box-shadow, color"}}}},MuiLink:{styleOverrides:{root:{transition:b.create("color",{duration:b.duration.enteringScreen}),"&:hover":{color:P}}}},MuiTabs:{styleOverrides:{flexContainer:{gap:"10px"},indicator:{backgroundColor:P}}},MuiTab:{defaultProps:{color:"secondary"},styleOverrides:{root:{fontSize:"1rem",borderRadius:"5px"}}},MuiIconButton:{styleOverrides:{root:{transition:b.create("color",{duration:b.duration.enteringScreen}),color:"inherit","&:hover":{color:P}}}},MuiSwitch:{defaultProps:{color:"secondary"}},MuiToggleButton:{defaultProps:{color:"secondary"},styleOverrides:{root:{transition:b.create("color",{duration:b.duration.enteringScreen}),color:"inherit","&.Mui-disabled":{border:"unset"}}}},MuiLinearProgress:{defaultProps:{color:"secondary"}},MuiPaper:{defaultProps:{sx:{border:"1px solid",borderColor:e=>e.palette.divider}},styleOverrides:{root:{boxShadow:"unset"}}}},typography:{fontFamily:["-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),button:{fontWeight:"bold",textTransform:"none"}}}),q=()=>{const{mode:e}=ne(),r=ie("(prefers-color-scheme: dark)");return!e||e==="system"?r?"dark":"light":e},It=()=>{const e=q();return k.useMemo(()=>e==="dark"?{tooltip:{container:{background:"#000",color:"#fff"}}}:void 0,[e])},N=({forseFilled:e,sx:r,...s})=>{const o=q();return t.jsx(ae,{sx:[n=>n.applyStyles("light",{border:"none"}),...Array.isArray(r)?r:[r]],variant:o==="dark"?e?"filled":"outlined":void 0,...s})},_=()=>{var r;const e=ce();return t.jsxs(N,{severity:"error",children:[t.jsx(F,{children:"Something went wrong"}),he(e)&&t.jsxs(t.Fragment,{children:[t.jsx(S,{fontWeight:"bold",children:[`Status: ${e.status}`,typeof((r=e.data)==null?void 0:r.detail)=="string"&&e.data.detail].filter(Boolean).join(", ")}),typeof e.data=="string"&&t.jsx(S,{children:e.data})]}),typeof e=="string"&&t.jsx(S,{fontWeight:"bold",children:e})]})},Q=({data:e})=>{const[r,s]=M.useState(!1),o=M.useRef(null);return k.useEffect(()=>{e!=null&&e.error&&(o.current=e.error,s(!0))},[e]),t.jsx(W,{open:r,onClose:(n,i)=>{i!=="clickaway"&&s(!1)},children:t.jsx(d,{children:t.jsx(N,{severity:"error",forseFilled:!0,children:t.jsxs(d,{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:2,children:[t.jsxs(d,{children:[t.jsx(F,{children:"Something went wrong"}),o.current&&t.jsx(S,{fontWeight:"bold",children:[typeof o.current.status_code=="number"&&`Status: ${o.current.status_code}`,typeof o.current.detail=="string"&&o.current.detail].filter(Boolean).join(", ")})]}),t.jsx(d,{children:t.jsx(J,{size:"small","aria-label":"close",color:"inherit",onClick:()=>{s(!1)},children:t.jsx(Y,{})})})]})})})})},B=()=>{const e=le();return t.jsx(Q,{data:e})},Ne=()=>{var s;const r=(s=de().find(o=>{var n;return!!((n=o.data)!=null&&n.error)}))==null?void 0:s.data;return t.jsx(Q,{data:r})},Be={path:"*",Component:()=>t.jsx(d,{display:"flex",justifyContent:"center",children:t.jsx(S,{variant:"h4",children:"Page Not Found"})})},$e="modulepreload",He=function(e){return"/"+e},V={},g=function(r,s,o){let n=Promise.resolve();if(s&&s.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),a=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));n=Promise.all(s.map(c=>{if(c=He(c),c in V)return;V[c]=!0;const m=c.endsWith(".css"),h=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${h}`))return;const l=document.createElement("link");if(l.rel=m?"stylesheet":$e,m||(l.as="script",l.crossOrigin=""),l.href=c,a&&l.setAttribute("nonce",a),document.head.appendChild(l),m)return new Promise((x,D)=>{l.addEventListener("load",x),l.addEventListener("error",()=>D(new Error(`Unable to preload CSS for ${c}`)))})}))}return n.then(()=>r()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})},Ve=()=>t.jsx(ue,{fontSize:"large",sx:{width:180},children:t.jsxs("svg",{"aria-hidden":"true",width:"734",height:"219",viewBox:"0 70 734 90",version:"1.1",children:[t.jsx("path",{d:"M 180 113 L 180 141 201.500 141 L 223 141 223 136.500 L 223 132 207 132 L 191 132 191 124.500 L 191 117 204.500 117 L 218 117 218 112.500 L 218 108 204.500 108 L 191 108 191 101 L 191 94 206 94 L 221 94 221 89.500 L 221 85 200.500 85 L 180 85 180 113 M 221.989 87.250 C 221.983 88.487, 227.010 101.088, 233.160 115.250 L 244.342 141 249.931 141 L 255.521 141 266.865 114.959 C 273.104 100.636, 278.439 88.036, 278.721 86.959 C 279.183 85.191, 278.709 85.002, 273.867 85.024 L 268.500 85.049 259.393 106.080 L 250.285 127.111 243.204 110.806 C 239.309 101.838, 235.210 92.362, 234.096 89.750 L 232.071 85 227.036 85 C 222.483 85, 221.999 85.216, 221.989 87.250 M 280 113 L 280 141 285.500 141 L 291 141 291 113 L 291 85 285.500 85 L 280 85 280 113 M 301 113 L 301 141 316.818 141 C 327.946 141, 334.130 140.557, 337.672 139.505 C 340.601 138.635, 344.617 136.329, 347.270 133.993 C 349.779 131.785, 352.871 127.845, 354.141 125.239 C 355.926 121.575, 356.450 118.799, 356.450 113 C 356.450 107.201, 355.926 104.425, 354.141 100.761 C 352.871 98.155, 349.779 94.215, 347.270 92.007 C 344.617 89.671, 340.601 87.365, 337.672 86.495 C 334.130 85.443, 327.946 85, 316.818 85 L 301 85 301 113 M 362 113 L 362 141 383.500 141 L 405 141 405 136.500 L 405 132 389 132 L 373 132 373 124.500 L 373 117 386.500 117 L 400 117 400 112.500 L 400 108 386.500 108 L 373 108 373 101 L 373 94 388.500 94 L 404 94 404 89.500 L 404 85 383 85 L 362 85 362 113 M 411 113 L 411 141 416.500 141 L 422 141 422 122.426 L 422 103.851 437.126 122.426 L 452.253 141 457.126 141 L 462 141 462 113 L 462 85 456.522 85 L 451.044 85 450.772 103.414 L 450.500 121.828 435.550 103.414 L 420.600 85 415.800 85 L 411 85 411 113 M 464 89.500 L 464 94 473.500 94 L 483 94 483 117.500 L 483 141 488.500 141 L 494 141 494 117.500 L 494 94 503 94 L 512 94 512 89.500 L 512 85 488 85 L 464 85 464 89.500 M 514 113 L 514 141 534.500 141 L 555 141 555 136.500 L 555 132 540.500 132 L 526 132 526 108.500 L 526 85 520 85 L 514 85 514 113 M 544 85.624 C 544 85.967, 548.725 94.001, 554.500 103.477 L 565 120.707 565 130.853 L 565 141 571 141 L 577 141 577 130.825 L 577 120.649 587.500 103.291 C 593.275 93.743, 598 85.722, 598 85.466 C 598 85.210, 595.577 85, 592.615 85 L 587.230 85 579.505 97.991 C 575.257 105.136, 571.435 110.769, 571.012 110.507 C 570.589 110.246, 566.926 104.410, 562.872 97.538 L 555.500 85.043 549.750 85.021 C 546.587 85.010, 544 85.281, 544 85.624 M 312 113 L 312 132 320.250 131.994 C 324.788 131.991, 330.174 131.524, 332.219 130.956 C 334.264 130.388, 337.363 128.724, 339.105 127.258 C 340.847 125.793, 342.886 123.124, 343.636 121.329 C 344.386 119.533, 345 115.785, 345 113 C 345 110.215, 344.386 106.467, 343.636 104.671 C 342.886 102.876, 340.847 100.207, 339.105 98.742 C 337.363 97.276, 334.264 95.612, 332.219 95.044 C 330.174 94.476, 324.788 94.009, 320.250 94.006 L 312 94 312 113",fill:"currentColor",fillRule:"evenodd"}),t.jsx("path",{d:"M 121 112 L 121 169 133.500 169 L 146 169 146 112 L 146 55 133.500 55 L 121 55 121 112 M 77 126 L 77 169 90 169 L 103 169 103 126 L 103 83 90 83 L 77 83 77 126 M 633.540 88.199 C 632.771 90.015, 627.159 102.517, 621.070 115.982 C 614.982 129.447, 610 140.832, 610 141.282 C 610 141.732, 612.528 141.965, 615.617 141.800 L 621.235 141.500 623.794 135.250 L 626.353 129 640.218 129 L 654.084 129 657 135.500 L 659.916 142 665.526 142 C 670.413 142, 671.063 141.775, 670.577 140.250 C 670.271 139.287, 664.639 126.575, 658.064 112 L 646.108 85.500 640.524 85.199 C 635.051 84.904, 634.913 84.964, 633.540 88.199 M 673 113.500 L 673 142 678.500 142 L 684 142 684 113.500 L 684 85 678.500 85 L 673 85 673 113.500 M 635.630 107.723 C 633.074 113.650, 630.986 118.838, 630.991 119.250 C 630.996 119.662, 635.275 120, 640.500 120 C 645.725 120, 650 119.819, 650 119.598 C 650 119.377, 647.923 114.315, 645.385 108.348 C 642.847 102.382, 640.659 97.375, 640.524 97.223 C 640.389 97.070, 638.187 101.795, 635.630 107.723 M 34 140.500 L 34 169 47 169 L 60 169 60 140.500 L 60 112 47 112 L 34 112 34 140.500",fill:"#ed0500",fillRule:"evenodd"})]})});function u(e){return e!=null&&e.notThrowExc?Ue:ze}const ze=e=>{const{data:r,error:s,response:o}=e;if(s)throw pe(s,{status:o.status});return r},Ue=e=>{const{data:r,error:s,response:o}=e;return s?{error:{...s,status_code:o.status}}:r},Ge=({api:e})=>({loader:()=>e.GET("/api/version").then(u())}),We=fe,v=We({baseUrl:"/"}),{loader:Je}=Ge({api:v}),Ye={path:"/",lazy:async()=>{const{HomeComponentTemplate:e,...r}=await g(()=>import("./index-Jx8S0k4k.js"),__vite__mapDeps([0,1]));return{Component:()=>t.jsxs(t.Fragment,{children:[t.jsx(Ne,{}),t.jsx(e,{LogoSvg:Ve})]}),...r}},loader:Je,ErrorBoundary:_},K=e=>{if(e.id)return{...e,id:e.id};throw`"id" is missing in object: ${JSON.stringify(e)}`},X=e=>{if(e.headers.get("Content-type")!=="application/json")throw new Response("Unsupported Media Type",{status:415})},qe=({api:e})=>({loader:({params:r})=>{const{projectId:s}=r;return E(s),e.GET("/api/projects/{project_id}/info",{params:{path:{project_id:s}}}).then(u()).then(K)}}),Qe=({event:e})=>{const s=e.points[0].customdata;if(!s)return t.jsx(t.Fragment,{});const o="metric_fingerprint"in s?"report":"test-suite";return t.jsx(t.Fragment,{children:t.jsx(d,{sx:{position:"absolute",bottom:0,right:0,background:n=>n.palette.background.default,p:1,borderRadius:"10px"},children:t.jsx(me,{direction:"row",alignItems:"center",gap:2,children:t.jsx(je,{component:xe,to:`${o}s/${s.snapshot_id}`,children:t.jsxs(Le,{variant:"outlined",children:["View ",o.split("-").join(" ")]})})})})})},Ke=()=>{const[e,r]=ye("is-user-saw-click-on-datapoints-hint",!1),[s,o]=k.useState(!e);return k.useEffect(()=>r(!0),[]),s?t.jsx(t.Fragment,{children:t.jsx(W,{open:s,onClose:(n,i)=>{i!=="clickaway"&&o(!1)},children:t.jsx(ge,{sx:{p:1,borderRadius:2,border:"1px solid",borderColor:n=>n.palette.divider},children:t.jsxs(d,{display:"flex",justifyContent:"space-between",alignItems:"center",gap:2,children:[t.jsx(d,{children:t.jsx(S,{children:"You can click on the data point to open the Report."})}),t.jsx(d,{children:t.jsx(J,{size:"small",onClick:()=>{o(!1)},children:t.jsx(Y,{})})})]})})})}):t.jsx(t.Fragment,{})};function z(e){return`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}T${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}`}const y={FROM:"date_from",TO:"date_to"},Xe=e=>{const r=e.get(y.FROM),s=e.get(y.TO);return{date_from:r,date_to:s}},Ze=({dataRanges:e})=>{const[r,s]=Te(),{date_from:o,date_to:n}=Xe(r),i=A(o||e.minDate),a=A(n||e.maxDate);return{isCorrectTimeInterval:i.isValid()&&a.isValid()&&(i.isSame(a)||i.isBefore(a)),date_from:i,date_to:a,setSearchParams:s}},Pt=({dataRanges:e,isDashboardHideDates:r,setIsDashboardHideDates:s,isShowDateFilter:o})=>{const n=_e(),{isCorrectTimeInterval:i,date_from:a,date_to:c,setSearchParams:m}=Ze({dataRanges:e}),[h,l]=k.useState({date_from:a,date_to:c}),x=ve(h,300),D=i?"":"incorrect time interval";return k.useEffect(()=>{var T,O;if(n)return;const j=(T=x==null?void 0:x.date_to)==null?void 0:T.toDate(),L=(O=x==null?void 0:x.date_from)==null?void 0:O.toDate();m(C=>(C.delete(y.FROM),C.delete(y.TO),L&&C.append(y.FROM,z(L)),j&&C.append(y.TO,z(j)),C),{preventScrollReset:!0,replace:!0})},[x]),t.jsx(Ce,{dateAdapter:Se,adapterLocale:"en-gb",children:t.jsxs(I,{container:!0,padding:1,zIndex:1,gap:2,justifyContent:"flex-end",alignItems:"flex-end",children:[t.jsx(I,{item:!0,children:t.jsx(d,{minWidth:180,display:"flex",justifyContent:"center",children:t.jsx(Ee,{control:t.jsx(be,{checked:r,onChange:j=>s(j.target.checked)}),label:"Show in order"})})}),o&&t.jsxs(t.Fragment,{children:[t.jsx(I,{item:!0,xs:12,md:2,children:t.jsxs(ke,{fullWidth:!0,children:[t.jsx(we,{children:"Period"}),t.jsxs(Ie,{variant:"standard",defaultValue:"",onChange:j=>{const[L,T]=j.target.value.split(",");if(L===""){l({date_from:null,date_to:null});return}const[O,C]=[Number(L),T],$=e.maxDate.subtract(O,C);l({date_from:$.isBefore(e.minDate)?e.minDate:$,date_to:e.maxDate})},children:[t.jsx(f,{value:"",children:t.jsx("em",{children:"None"})}),t.jsx(f,{value:"10,minutes",children:"Last 10 Minutes"}),t.jsx(f,{value:"30,minutes",children:"Last 30 Minutes"}),t.jsx(f,{value:"1,hours",children:"Last 1 Hours"}),t.jsx(f,{value:"2,hours",children:"Last 2 Hours"}),t.jsx(f,{value:"8,hours",children:"Last 8 Hours"}),t.jsx(f,{value:"24,hours",children:"Last 24 Hours"}),t.jsx(f,{value:"7,days",children:"Last 7 Days"}),t.jsx(f,{value:"14,days",children:"Last 14 Days"}),t.jsx(f,{value:"28,days",children:"Last 28 Days"}),t.jsx(f,{value:"60,days",children:"Last 60 Days"})]})]})}),t.jsx(I,{item:!0,children:t.jsxs(d,{display:"flex",alignItems:"center",gap:2,children:[t.jsx(H,{minDate:e.minDate,maxDate:e.maxDate&&c,slotProps:{textField:{variant:"standard"}},label:"From",value:h.date_from,onChange:j=>l(L=>({...L,date_from:j}))}),t.jsx(d,{height:1,display:"flex",alignItems:"center",children:t.jsx(S,{children:" - "})}),t.jsx(H,{minDate:e.minDate&&a,maxDate:e.maxDate,slotProps:{textField:{variant:"standard"}},label:"To",value:h.date_to,onChange:j=>l(L=>({...L,date_to:j}))})]})}),t.jsx(I,{item:!0,xs:12,children:t.jsx(Pe,{unmountOnExit:!0,in:!i,children:t.jsxs(N,{severity:"error",children:[t.jsx(F,{children:"Error"}),D]})})})]})]})})};class et{constructor(){w(this,"at",0);w(this,"ch","");w(this,"text","");w(this,"escapee",{'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:` +`,r:"\r",t:" "})}error(r){throw{name:"SyntaxError",message:r,at:this.at,text:this.text}}next(){return this.ch=this.text.charAt(this.at++)}check(r){r!==this.ch&&this.error(`Expected '${r}' instead of '${this.ch}'`),this.ch=this.text.charAt(this.at++)}number(){var r="";if(this.ch==="-"&&(r="-",this.check("-")),this.ch==="I")return this.check("I"),this.check("n"),this.check("f"),this.check("i"),this.check("n"),this.check("i"),this.check("t"),this.check("y"),Number.NEGATIVE_INFINITY;for(;this.ch>="0"&&this.ch<="9";)r+=this.ch,this.next();if(this.ch===".")for(r+=".";this.next()&&this.ch>="0"&&this.ch<="9";)r+=this.ch;if(this.ch==="e"||this.ch==="E")for(r+=this.ch,this.next(),(this.ch==="-"||this.ch==="+")&&(r+=this.ch,this.next());this.ch>="0"&&this.ch<="9";)r+=this.ch,this.next();return+r}string(){var r,s,o="",n;if(this.ch==='"')for(;this.next();){if(this.ch==='"')return this.next(),o;if(this.ch==="\\")if(this.next(),this.ch==="u"){for(n=0,s=0;s<4&&(r=Number.parseInt(this.next(),16),!!isFinite(r));s++)n=n*16+r;o+=String.fromCharCode(n)}else if(this.escapee[this.ch])o+=this.escapee[this.ch];else break;else o+=this.ch}this.error("Bad string")}white(){for(;this.ch&&this.ch<=" ";)this.next()}word(){switch(this.ch){case"t":return this.check("t"),this.check("r"),this.check("u"),this.check("e"),!0;case"f":return this.check("f"),this.check("a"),this.check("l"),this.check("s"),this.check("e"),!1;case"n":return this.check("n"),this.check("u"),this.check("l"),this.check("l"),null;case"N":return this.check("N"),this.check("a"),this.check("N"),Number.NaN;case"I":return this.check("I"),this.check("n"),this.check("f"),this.check("i"),this.check("n"),this.check("i"),this.check("t"),this.check("y"),Number.POSITIVE_INFINITY}this.error("Unexpected '"+this.ch+"'")}array(){var r=[];if(this.ch==="["){if(this.check("["),this.white(),this.ch==="]")return this.check("]"),r;for(;this.ch;){if(r.push(this.value()),this.white(),this.ch==="]")return this.check("]"),r;this.check(","),this.white()}}this.error("Bad array")}object(){var r,s={};if(this.ch==="{"){if(this.check("{"),this.white(),this.ch==="}")return this.check("}"),s;for(;this.ch;){if(r=this.string(),this.white(),this.check(":"),Object.hasOwnProperty.call(s,r)&&this.error('Duplicate key "'+r+'"'),s[r]=this.value(),this.white(),this.ch==="}")return this.check("}"),s;this.check(","),this.white()}}this.error("Bad object")}value(){switch(this.white(),this.ch){case"{":return this.object();case"[":return this.array();case'"':return this.string();case"-":return this.number();default:return this.ch>="0"&&this.ch<="9"?this.number():this.word()}}parse(r,s){let o;return this.text=r,this.at=0,this.ch=" ",o=this.value(),this.white(),this.ch&&this.error("Syntax error"),s!==void 0?function n(i,a){var c,m,h=i[a];if(h&&typeof h=="object")for(c in h)Object.prototype.hasOwnProperty.call(h,c)&&(m=n(h,c),m!==void 0?h[c]=m:delete h[c]);return s.call(i,a,h)}({"":o},""):o}}const Z=e=>new et().parse(e),tt=({api:e})=>({loader:({params:r,request:s})=>{E(r.projectId);const{searchParams:o}=new URL(s.url);let n=o.get(y.FROM),i=o.get(y.TO);return n&&!A(n).isValid()&&(n=null),i&&!A(i).isValid()&&(i=null),e.GET("/api/projects/{project_id}/dashboard",{params:{path:{project_id:r.projectId},query:{timestamp_start:n,timestamp_end:i}},parseAs:"text"}).then(u()).then(Z)}}),{loader:rt}=tt({api:v}),st={index:!0,id:"dashboard",lazy:async()=>{const[{DashboardComponentTemplate:e},{DashboardWidgets:r}]=await Promise.all([g(()=>import("./index-Be9iI6RW.js"),__vite__mapDeps([2,1,3])),g(()=>import("./DashboardWidgets-B4lotoT2.js"),__vite__mapDeps([4,1,5,3]))]);return{Component:()=>t.jsx(e,{Dashboard:({data:{widgets:s}})=>t.jsx(r,{widgets:s}),OnClickedPointComponent:Qe,OnHoveredPlotComponent:Ke})}},loader:rt,ErrorBoundary:_},ee={RELOAD_SNAPSHOTS:"reload-snapshots",DELETE_SNAPSHOT:"delete-snapshot"},ot=p.object({action:p.literal(ee.RELOAD_SNAPSHOTS)}),nt=p.object({action:p.literal(ee.DELETE_SNAPSHOT),snapshotId:p.string().uuid()}),te=e=>async({request:r,params:s})=>{E(s.projectId),X(r);const o=await r.json();if(ot.safeParse(o).success)return e.GET("/api/projects/{project_id}/reload",{params:{path:{project_id:s.projectId}}}).then(u({notThrowExc:!0}));const i=nt.safeParse(o);return i.success?e.DELETE("/api/projects/{project_id}/{snapshot_id}",{params:{path:{project_id:s.projectId,snapshot_id:i.data.snapshotId}}}).then(u({notThrowExc:!0})):{error:{status_code:!1,detail:"Unknown action"}}},it=({api:e})=>({loader:({params:r})=>(E(r.projectId),r.snapshotId?Promise.resolve([]):e.GET("/api/projects/{project_id}/reports",{params:{path:{project_id:r.projectId}}}).then(u())),action:te(e)}),at=({api:e})=>({loader:({params:r})=>(E(r.projectId),r.snapshotId?Promise.resolve([]):e.GET("/api/projects/{project_id}/test_suites",{params:{path:{project_id:r.projectId}}}).then(u())),action:te(e)}),ct=({api:e})=>({loader:({params:r})=>{const{projectId:s,snapshotId:o}=r;return E(s),E(o),e.GET("/api/projects/{project_id}/{snapshot_id}/data",{params:{path:{project_id:s,snapshot_id:o}},parseAs:"text"}).then(u()).then(Z)}}),{loader:ht}=ct({api:v}),re={path:":snapshotId",lazy:async()=>{const{SnapshotTemplate:e,...r}=await g(()=>import("./index-CkUAhjno.js"),__vite__mapDeps([6,1,5,3]));return{Component:()=>t.jsx(e,{api:v}),...r}},loader:ht,ErrorBoundary:_},{loader:lt,action:dt}=it({api:v}),ut={id:"reports",path:"reports",lazy:async()=>{const{SnapshotsListTemplate:e,...r}=await g(()=>import("./index-BlQyByTT.js"),__vite__mapDeps([7,1]));return{...r,Component:()=>t.jsxs(t.Fragment,{children:[t.jsx(B,{}),t.jsx(e,{type:"reports"})]})}},loader:lt,action:dt,ErrorBoundary:_,children:[re]},{loader:pt,action:ft}=at({api:v}),mt={id:"test_suites",path:"test-suites",lazy:async()=>{const{SnapshotsListTemplate:e,...r}=await g(()=>import("./index-BlQyByTT.js"),__vite__mapDeps([7,1]));return{...r,Component:()=>t.jsxs(t.Fragment,{children:[t.jsx(B,{}),t.jsx(e,{type:"test suites"})]})}},loader:pt,action:ft,ErrorBoundary:_,children:[re]},{loader:jt}=qe({api:v}),xt={path:"projects/:projectId",lazy:()=>g(()=>import("./index-qb_niS19.js"),__vite__mapDeps([8,1])),loader:jt,ErrorBoundary:_,children:[st,ut,mt]},Lt=p.object({action:p.literal("edit-project")}),yt=p.object({action:p.literal("create-new-project")}),gt=p.object({action:p.literal("delete-project"),projectId:p.string().uuid()}),_t=({api:e})=>({loader:()=>e.GET("/api/projects").then(u()).then(r=>r.map(K)),action:async({request:r})=>{X(r);const s=await r.json();if(yt.safeParse(s).success)return e.POST("/api/projects",{body:s}).then(u({notThrowExc:!0}));const o=gt.safeParse(s);if(o.success)return e.DELETE("/api/projects/{project_id}",{params:{path:{project_id:o.data.projectId}}}).then(u({notThrowExc:!0}));if(Lt.safeParse(s).success)return e.POST("/api/projects/{project_id}/info",{params:{path:{project_id:s.id}},body:s}).then(u({notThrowExc:!0}));throw"Undefined action"}}),{loader:vt,action:Ct}=_t({api:v}),St={index:!0,lazy:()=>g(()=>import("./index-DJhIIsZf.js"),__vite__mapDeps([9,1])).then(e=>({...e,Component:()=>t.jsxs(t.Fragment,{children:[t.jsx(B,{}),t.jsx(e.Component,{})]})})),loader:vt,action:Ct,ErrorBoundary:_},Et={...Ye,children:[St,xt,Be],ErrorBoundary:_},bt=Oe([Et]),U=document.getElementById("root");U&&Ae.createRoot(U).render(t.jsx(M.StrictMode,{children:t.jsxs(De,{theme:Fe,children:[t.jsx(Re,{}),t.jsx(Me,{router:bt})]})}));export{N as A,Pt as D,Z as J,It as a,u as r,q as u}; diff --git a/src/evidently/ui/assets/static/js/index-CDNqhC_e.js b/src/evidently/ui/assets/static/js/index-Jx8S0k4k.js similarity index 96% rename from src/evidently/ui/assets/static/js/index-CDNqhC_e.js rename to src/evidently/ui/assets/static/js/index-Jx8S0k4k.js index 51b30f4dec..fced789d47 100644 --- a/src/evidently/ui/assets/static/js/index-CDNqhC_e.js +++ b/src/evidently/ui/assets/static/js/index-Jx8S0k4k.js @@ -1 +1 @@ -import{X as f,j as e,B as p,Y as k,L as x,o as b,Z as y,f as C,_ as S,$ as B,h as I,u as M,r as T,I as h,a0 as j,a1 as m,a2 as z,D as L,M as d,a3 as D,a4 as w,n as g,p as v,a5 as E,a6 as R,a7 as A}from"./vendor-C2GWNUp2.js";import{u as N}from"./index-BnvKIZBQ.js";const F=o=>{var t;return typeof((t=o==null?void 0:o.handle)==null?void 0:t.crumb)=="function"},H=()=>{const t=f().filter(F).map(({handle:s,data:r,id:n,pathname:i,params:a})=>s.crumb(r,{id:n,pathname:i,params:a}));return e.jsx(p,{children:e.jsx(k,{"aria-label":"breadcrumb",children:t.map(s=>e.jsx(x,{component:b,color:"inherit",to:s.to,children:s.linkText},s.to))})})},O=()=>{const o=y(),t=C(),{state:s}=S();return o.state!=="idle"||t.some(({state:n})=>n!=="idle")||s!=="idle"?e.jsx(p,{width:1,sx:{position:"fixed",top:0,left:0,zIndex:1e3},children:e.jsx(B,{sx:{height:"3px"}})}):null},P=()=>e.jsx(I,{children:e.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028 14.09 14.09 0 0 0 1.226-1.994.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z"})})}),_=()=>{const{mode:o,setMode:t}=M(),s=N(),[r,n]=T.useState(null),i=l=>n(l.currentTarget),a=()=>n(null),u=!!r,c=u?"simple-popover":void 0;return o?e.jsxs("div",{children:[e.jsx(h,{"aria-describedby":c,onClick:i,children:s==="dark"?e.jsx(j,{}):e.jsx(m,{})}),e.jsx(z,{id:c,open:u,anchorEl:r,onClose:a,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:e.jsxs(L,{size:"small",value:o,onChange:l=>{t(l.target.value),a()},children:[e.jsx(d,{value:"system",children:"System"}),e.jsx(d,{value:"light",children:"Light"}),e.jsx(d,{value:"dark",children:"Dark"})]})})]}):e.jsx(h,{"aria-describedby":c,children:s==="dark"?e.jsx(j,{}):e.jsx(m,{})})};function Y({LogoSvg:o,version:t,authComponent:s}){return e.jsx(e.Fragment,{children:e.jsx(D,{position:"static",sx:{borderLeft:"none",borderRight:"none",borderTop:"none",borderBottom:"1px solid",borderColor:r=>r.palette.divider},color:"transparent",children:e.jsxs(w,{sx:{gap:1},children:[e.jsx(g,{flexGrow:1,justifyContent:"flex-start",direction:"row",children:e.jsxs(g,{direction:"row",alignItems:"flex-end",gap:1,children:[e.jsx(h,{component:b,to:"/",sx:r=>({color:"#4d4d4d",...r.applyStyles("dark",{color:r.palette.text.primary}),"&:hover":{borderRadius:"5px",color:r.palette.text.disabled,...r.applyStyles("dark",{color:r.palette.text.secondary})}}),children:e.jsx(o,{})}),e.jsx("span",{style:{verticalAlign:"super",fontSize:"0.75rem"},children:t})]})}),s,e.jsx(v,{component:x,startIcon:e.jsx(P,{}),href:"https://discord.gg/EJxU68uynY",target:"_blank",children:"Support"}),e.jsx(v,{component:x,href:"https://docs.evidentlyai.com",target:"_blank",children:"Docs"}),e.jsx(_,{})]})})})}const J=({LogoSvg:o,authComponent:t})=>{const{version:s}=E();return e.jsxs(e.Fragment,{children:[e.jsx(Y,{authComponent:t,version:s,LogoSvg:o}),e.jsx(O,{}),e.jsx(R,{}),e.jsxs(p,{p:3,children:[e.jsx(H,{}),e.jsx(A,{})]})]})},U={crumb:()=>({to:"/",linkText:"Home"})};export{J as HomeComponentTemplate,U as handle}; +import{X as f,j as e,B as p,Y as k,L as x,o as b,Z as y,f as C,_ as S,$ as B,h as I,u as M,r as T,I as h,a0 as j,a1 as m,a2 as z,D as L,M as d,a3 as D,a4 as w,n as g,p as v,a5 as E,a6 as R,a7 as A}from"./vendor-C2GWNUp2.js";import{u as N}from"./index-D-BBKVDE.js";const F=o=>{var t;return typeof((t=o==null?void 0:o.handle)==null?void 0:t.crumb)=="function"},H=()=>{const t=f().filter(F).map(({handle:s,data:r,id:n,pathname:i,params:a})=>s.crumb(r,{id:n,pathname:i,params:a}));return e.jsx(p,{children:e.jsx(k,{"aria-label":"breadcrumb",children:t.map(s=>e.jsx(x,{component:b,color:"inherit",to:s.to,children:s.linkText},s.to))})})},O=()=>{const o=y(),t=C(),{state:s}=S();return o.state!=="idle"||t.some(({state:n})=>n!=="idle")||s!=="idle"?e.jsx(p,{width:1,sx:{position:"fixed",top:0,left:0,zIndex:1e3},children:e.jsx(B,{sx:{height:"3px"}})}):null},P=()=>e.jsx(I,{children:e.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028 14.09 14.09 0 0 0 1.226-1.994.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z"})})}),_=()=>{const{mode:o,setMode:t}=M(),s=N(),[r,n]=T.useState(null),i=l=>n(l.currentTarget),a=()=>n(null),u=!!r,c=u?"simple-popover":void 0;return o?e.jsxs("div",{children:[e.jsx(h,{"aria-describedby":c,onClick:i,children:s==="dark"?e.jsx(j,{}):e.jsx(m,{})}),e.jsx(z,{id:c,open:u,anchorEl:r,onClose:a,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:e.jsxs(L,{size:"small",value:o,onChange:l=>{t(l.target.value),a()},children:[e.jsx(d,{value:"system",children:"System"}),e.jsx(d,{value:"light",children:"Light"}),e.jsx(d,{value:"dark",children:"Dark"})]})})]}):e.jsx(h,{"aria-describedby":c,children:s==="dark"?e.jsx(j,{}):e.jsx(m,{})})};function Y({LogoSvg:o,version:t,authComponent:s}){return e.jsx(e.Fragment,{children:e.jsx(D,{position:"static",sx:{borderLeft:"none",borderRight:"none",borderTop:"none",borderBottom:"1px solid",borderColor:r=>r.palette.divider},color:"transparent",children:e.jsxs(w,{sx:{gap:1},children:[e.jsx(g,{flexGrow:1,justifyContent:"flex-start",direction:"row",children:e.jsxs(g,{direction:"row",alignItems:"flex-end",gap:1,children:[e.jsx(h,{component:b,to:"/",sx:r=>({color:"#4d4d4d",...r.applyStyles("dark",{color:r.palette.text.primary}),"&:hover":{borderRadius:"5px",color:r.palette.text.disabled,...r.applyStyles("dark",{color:r.palette.text.secondary})}}),children:e.jsx(o,{})}),e.jsx("span",{style:{verticalAlign:"super",fontSize:"0.75rem"},children:t})]})}),s,e.jsx(v,{component:x,startIcon:e.jsx(P,{}),href:"https://discord.gg/EJxU68uynY",target:"_blank",children:"Support"}),e.jsx(v,{component:x,href:"https://docs.evidentlyai.com",target:"_blank",children:"Docs"}),e.jsx(_,{})]})})})}const J=({LogoSvg:o,authComponent:t})=>{const{version:s}=E();return e.jsxs(e.Fragment,{children:[e.jsx(Y,{authComponent:t,version:s,LogoSvg:o}),e.jsx(O,{}),e.jsx(R,{}),e.jsxs(p,{p:3,children:[e.jsx(H,{}),e.jsx(A,{})]})]})},U={crumb:()=>({to:"/",linkText:"Home"})};export{J as HomeComponentTemplate,U as handle}; diff --git a/src/evidently/ui/dashboards/reports.py b/src/evidently/ui/dashboards/reports.py index 38276f99cf..f241ff408e 100644 --- a/src/evidently/ui/dashboards/reports.py +++ b/src/evidently/ui/dashboards/reports.py @@ -1,4 +1,5 @@ import datetime +from collections import defaultdict from typing import TYPE_CHECKING from typing import Any from typing import Dict @@ -29,6 +30,7 @@ from evidently.ui.type_aliases import DataPointsAsType from evidently.ui.type_aliases import PointInfo from evidently.ui.type_aliases import ProjectID +from evidently.ui.type_aliases import SnapshotID if TYPE_CHECKING: from evidently.ui.base import DataStorage @@ -173,10 +175,13 @@ async def build( raise ValueError(f"Cannot build hist from {self.value}") if len(bins_for_hists) > 1: raise ValueError(f"Ambiguious metrics for {self.value}") - bins_for_hist: List[Tuple[datetime.datetime, HistogramData]] = next( + metric = next(iter(bins_for_hists.keys())) + fingerprint = metric.get_fingerprint() + bins_for_hist: List[Tuple[datetime.datetime, SnapshotID, HistogramData]] = next( [ ( d.timestamp, + d.snapshot_id, d.value if isinstance(d.value, HistogramData) else HistogramData.from_distribution(d.value), ) for d in v @@ -187,26 +192,35 @@ async def build( timestamps: List[datetime.datetime] = [] names: Set[str] = set() values: List[Dict[str, Any]] = [] + snapshot_ids = [] - for timestamp, hist in bins_for_hist: + for timestamp, snapshot_id, hist in bins_for_hist: timestamps.append(timestamp) data = dict(zip(hist.x, hist.count)) - names.update(data.keys()) values.append(data) + names.update(data.keys()) + snapshot_ids.append(snapshot_id) names_sorted = list(sorted(names)) - name_to_date_value: Dict[str, List[Any]] = {name: [] for name in names_sorted} - for timestamp, data in zip(timestamps, values): + name_to_date_value: Dict[str, List[Any]] = defaultdict(list) + name_to_snapshot_id: Dict[str, List[SnapshotID]] = defaultdict(list) + for timestamp, snapshot_id, data in zip(timestamps, snapshot_ids, values): for name in names_sorted: name_to_date_value[name].append(data.get(name)) + name_to_snapshot_id[name].append(snapshot_id) + hovertemplate = "{name}: %{{y}}
Timestamp: %{{x}}" fig = go.Figure( data=[ go.Bar( name=name, x=timestamps, - y=name_to_date_value.get(name), + y=name_to_date_value[name], hovertemplate=hovertemplate.format(name=name), + customdata=[ + {"metric_fingerprint": fingerprint, "snapshot_id": str(snapshot_id)} + for snapshot_id in name_to_snapshot_id[name] + ], ) for name in names_sorted ] diff --git a/src/evidently/ui/dashboards/test_suites.py b/src/evidently/ui/dashboards/test_suites.py index e4325b4dd1..8e349b4b84 100644 --- a/src/evidently/ui/dashboards/test_suites.py +++ b/src/evidently/ui/dashboards/test_suites.py @@ -130,6 +130,7 @@ def _create_aggregate_fig(self, points: TestResultPoints): layout={"showlegend": True}, ) fig.update_layout(barmode="stack") + fig.update_xaxes(type="category") return fig def _create_detailed_fig(self, points: TestResultPoints): @@ -185,6 +186,7 @@ def get_color(test, date) -> Optional[str]: barnorm="fraction", ) fig.update_yaxes(showticklabels=False) + fig.update_xaxes(type="category") return fig diff --git a/src/evidently/ui/managers/auth.py b/src/evidently/ui/managers/auth.py index 5ffa9079e2..4ab54c1854 100644 --- a/src/evidently/ui/managers/auth.py +++ b/src/evidently/ui/managers/auth.py @@ -121,6 +121,7 @@ class DefaultRole(Enum): (DefaultRole.VIEWER, EntityType.Project): { Permission.LIST_USERS, Permission.PROJECT_READ, + Permission.DATASET_READ, }, (DefaultRole.VIEWER, EntityType.Dataset): { Permission.LIST_USERS, diff --git a/ui/packages/evidently-ui-lib/src/components/DashboardContent.tsx b/ui/packages/evidently-ui-lib/src/components/DashboardContent.tsx index d0c2d0136d..3427c2881e 100644 --- a/ui/packages/evidently-ui-lib/src/components/DashboardContent.tsx +++ b/ui/packages/evidently-ui-lib/src/components/DashboardContent.tsx @@ -4,17 +4,13 @@ import { WidgetRenderer } from '~/widgets/WidgetRenderer' export interface DashboardContentProps { widgets: WidgetInfo[] - ItemWrapper?: ({ id, children }: { id: string; children: React.ReactNode }) => React.ReactNode } -export const DashboardContentWidgets: FunctionComponent = ({ - widgets, - ItemWrapper -}) => ( +export const DashboardContentWidgets: FunctionComponent = ({ widgets }) => ( <> {widgets.length > 0 && widgets.map((wi, idx) => ( - {WidgetRenderer(`wi_${idx}`, wi, ItemWrapper)} + {WidgetRenderer(`wi_${idx}`, wi)} ))} ) diff --git a/ui/packages/evidently-ui-lib/src/components/DashboardWidgets.tsx b/ui/packages/evidently-ui-lib/src/components/DashboardWidgets.tsx index 05d3e02a11..913943de21 100644 --- a/ui/packages/evidently-ui-lib/src/components/DashboardWidgets.tsx +++ b/ui/packages/evidently-ui-lib/src/components/DashboardWidgets.tsx @@ -3,11 +3,9 @@ import type { WidgetInfo } from '~/api' import { DashboardContentWidgets } from '~/components/DashboardContent' export const DashboardWidgets = ({ - widgets, - ItemWrapper + widgets }: { widgets: WidgetInfo[] - ItemWrapper?: ({ id, children }: { id: string; children: React.ReactNode }) => React.ReactNode }) => { if (widgets.length === 0) { return ( @@ -20,7 +18,7 @@ export const DashboardWidgets = ({ return ( <> - + ) diff --git a/ui/packages/evidently-ui-lib/src/contexts/WidgetWrapper.tsx b/ui/packages/evidently-ui-lib/src/contexts/WidgetWrapper.tsx new file mode 100644 index 0000000000..287ac192d5 --- /dev/null +++ b/ui/packages/evidently-ui-lib/src/contexts/WidgetWrapper.tsx @@ -0,0 +1,13 @@ +import React, { useContext } from 'react' + +export type WidgetWrapper = { + WidgetWrapper: ({ id, children }: { id: string; children: React.ReactNode }) => JSX.Element +} + +const EmptyWidgetWrapper: WidgetWrapper['WidgetWrapper'] = ({ children }) => <>{children} + +export const widgetWrapperContext = React.createContext({ + WidgetWrapper: EmptyWidgetWrapper +}) + +export const useWidgetWrapper = () => useContext(widgetWrapperContext) diff --git a/ui/packages/evidently-ui-lib/src/widgets/BigGraphWidgetContent.tsx b/ui/packages/evidently-ui-lib/src/widgets/BigGraphWidgetContent.tsx index 0862f2b018..43a798d9b2 100644 --- a/ui/packages/evidently-ui-lib/src/widgets/BigGraphWidgetContent.tsx +++ b/ui/packages/evidently-ui-lib/src/widgets/BigGraphWidgetContent.tsx @@ -1,5 +1,5 @@ import { Box } from '@mui/material' -import type { PlotMouseEvent, Shape } from 'plotly.js' +import type { Datum, PlotMouseEvent, Shape } from 'plotly.js' import type React from 'react' import { useState } from 'react' @@ -8,6 +8,14 @@ import Plot, { darkPlotlyLayoutTemplate } from '~/components/Plot' import { useDashboardViewParams } from '~/contexts/DashboardViewParams' import { useThemeMode } from '~/hooks/theme' +const roundPoint2Digit = (y: Datum) => { + if (typeof y === 'number') { + return Math.round(y * 100) / 100 + } + + return y +} + interface BigGraphWidgetProps extends AdditionalGraphInfo { widgetSize: number } @@ -24,28 +32,48 @@ const BigGraphWidgetContent: React.FunctionComponent = (pro const [clickEvent, setClickEvent] = useState(null) const [isHovered, setIsHovered] = useState(false) - const lineOnClickedPoint: Partial | undefined = + const lineOnClickedPoint: Partial[] = OnClickComponent && clickEvent - ? { - type: 'line', - x0: clickEvent.points[0].x, // X-coordinate where the line starts - x1: clickEvent.points[0].x, // X-coordinate where the line ends - y0: 0, - y1: 1, - xref: 'x', - yref: 'paper', - line: { - color: mode === 'dark' ? 'rgba(255, 255, 255, 0.5)' : 'rgba(0, 0, 0, 0.5)', - width: 3, - dash: 'solid' + ? [ + { + type: 'line', + x0: clickEvent.points[0].x, // X-coordinate where the line starts + x1: clickEvent.points[0].x, // X-coordinate where the line ends + y0: 0, + y1: 1, + xref: 'x', + yref: 'paper', + line: { + color: mode === 'dark' ? 'rgba(255, 255, 255, 0.5)' : 'rgba(0, 0, 0, 0.5)', + width: 3, + dash: 'dash' + } } - } - : undefined + ] + : [] + + const circleOnClickedPointData = + OnClickComponent && + clickEvent && + props.data.every((e) => e.type !== 'bar' && e.type !== 'histogram') + ? [ + { + x: [clickEvent.points[0].x], // X-coordinate of the dot + y: [clickEvent.points[0].y], // Y-coordinate of the dot + mode: 'markers', + marker: { + size: 8, // Size of the dot + color: mode === 'dark' ? 'rgba(255, 255, 255, 1)' : 'rgba(0, 0, 0, 1)' // Color of the dot + }, + // text: [], + // textposition: 'top center', + name: `selected point
${clickEvent.points[0].x}: ${roundPoint2Digit(clickEvent.points[0].y)}`, + hoverinfo: 'skip' + } satisfies Plotly.Data + ] + : [] - const shapes = [ - ...(props.layout.shapes ?? []), - ...(lineOnClickedPoint ? [lineOnClickedPoint] : []) - ] + const shapes = [...(props.layout.shapes ?? []), ...lineOnClickedPoint] const tOverride = mode === 'dark' @@ -71,7 +99,7 @@ const BigGraphWidgetContent: React.FunctionComponent = (pro !isHovered && setIsHovered(true)} onClick={OnClickComponent ? (e) => setClickEvent(e) : undefined} - data={props.data} + data={[...props.data, ...circleOnClickedPointData]} layout={{ ...props.layout, ...tOverride, diff --git a/ui/packages/evidently-ui-lib/src/widgets/Widget.tsx b/ui/packages/evidently-ui-lib/src/widgets/Widget.tsx index db09f06c1b..5399e97c76 100644 --- a/ui/packages/evidently-ui-lib/src/widgets/Widget.tsx +++ b/ui/packages/evidently-ui-lib/src/widgets/Widget.tsx @@ -3,6 +3,7 @@ import type { WidgetInfo } from '~/api' import { Card, CardContent, Grid, Typography } from '@mui/material' +import { useWidgetWrapper } from '~/contexts/WidgetWrapper' import AlertBlock from './AlertBlock' import AlertStatBlock from './AlertStatBlock' import InsightBlock from './InsightBlock' @@ -59,127 +60,123 @@ function Sizes(size: number): sizes { } } -const Widget = ( - props: WidgetProps & { - ItemWrapper?: ({ id, children }: { id: string; children: React.ReactNode }) => React.ReactNode - } -) => { - const { size, ItemWrapper } = props +const Widget = (props: WidgetProps) => { + const { size } = props const alertsPosition = props.children.alertsPosition ?? 'row' const { id, title, details, content, alerts, alertStats, insights } = props.children const isAlertsExists = alerts === undefined ? false : alerts.length > 0 const isInsightsExists = insights === undefined ? false : insights.length > 0 - const Component = ( - - - - {alertsPosition === 'row' ? ( - - - {title ? ( - - {title} - - ) : ( -
- )} -
{content}
- {details ? {details} :
} - - {isAlertsExists ? ( - - {alerts ? ( - - {alertStats ? ( - - - + const { WidgetWrapper } = useWidgetWrapper() + + return ( + + + + + + {alertsPosition === 'row' ? ( + + + {title ? ( + + {title} + + ) : ( +
+ )} +
{content}
+ {details ? {details} :
} + + {isAlertsExists ? ( + + {alerts ? ( + + {alertStats ? ( + + + + ) : ( +
+ )} + {alerts.map((alert) => ( + // biome-ignore lint/correctness/useJsxKeyInIterable: not reordered + + + + ))} + ) : (
)} - {alerts.map((alert) => ( - // biome-ignore lint/correctness/useJsxKeyInIterable: not reordered - - - - ))} - + ) : (
)} ) : ( -
- )} - - ) : ( - - - {title ? {title} :
} -
{content}
- {details ? {details} :
} - - {isAlertsExists ? ( - - - {alerts ? ( - - {alertStats ? ( - - - + + + {title ? {title} :
} +
{content}
+ {details ? {details} :
} + + {isAlertsExists ? ( + + + {alerts ? ( + + {alertStats ? ( + + + + ) : ( +
+ )} + {alerts.map((alert) => ( + // biome-ignore lint/correctness/useJsxKeyInIterable: not reordered + + + + ))} + ) : (
)} - {alerts.map((alert) => ( - // biome-ignore lint/correctness/useJsxKeyInIterable: not reordered - - - - ))} - - ) : ( -
- )} + + + ) : ( +
+ )} + + )} + {isInsightsExists ? ( + insights?.map((insight) => ( + // biome-ignore lint/correctness/useJsxKeyInIterable: not reordered + + - + )) ) : (
)} - - )} - {isInsightsExists ? ( - insights?.map((insight) => ( - // biome-ignore lint/correctness/useJsxKeyInIterable: not reordered - - - - )) - ) : ( -
- )} - - - - ) - - return ( - - {ItemWrapper ? ItemWrapper({ id, children: Component }) : Component} + + + + ) } diff --git a/ui/packages/evidently-ui-lib/src/widgets/WidgetRenderer.tsx b/ui/packages/evidently-ui-lib/src/widgets/WidgetRenderer.tsx index c0713206cb..587ccc99d4 100644 --- a/ui/packages/evidently-ui-lib/src/widgets/WidgetRenderer.tsx +++ b/ui/packages/evidently-ui-lib/src/widgets/WidgetRenderer.tsx @@ -46,11 +46,7 @@ function sizeTransform(size: WidgetSize): 1 | 3 | 6 | 12 { return 12 } -export function WidgetRenderer( - key: string, - info: WidgetInfo, - ItemWrapper?: ({ id, children }: { id: string; children: React.ReactNode }) => React.ReactNode -) { +export function WidgetRenderer(key: string, info: WidgetInfo) { let content = if (info.type === 'counter') { content = @@ -102,7 +98,7 @@ export function WidgetRenderer( content = } return ( - + {{ ...info, content: content