diff --git a/src/evidently/nbextension/static/index.js b/src/evidently/nbextension/static/index.js index 56d5d16e6c..b245340b13 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),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)}`}]:[],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={};/** +`)):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)}`}]:[],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 * @@ -494,7 +494,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 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 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 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 $2e=` +`),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 @@ -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 f3e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?ge.useLayoutEffect:ge.useEffect;var li=f3e;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 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(){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 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=Ke.useId();return cr(()=>`${e}${t.separator}${n}`,[t.separator,e,n])}var _4="useId"in Ke?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=Ke.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)};Ke.version.startsWith("16")||Ke.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]),Ke.createElement(lx.Provider,{value:C},Ke.createElement(S2e,{context:w4,store:y},e.children))}let xU=0;function fTe(){xU=0}function pTe(){return cr(()=>`${xU++}`,[])}function hTe(){return Ke.useId()}var mTe="useId"in Ke?hTe:pTe;function gTe(){"useId"in Ke||(fTe(),_3e())}function vTe(e){const t=mTe(),n=e.dragHandleUsageInstructions||_v.dragHandleUsageInstructions;return Ke.createElement(I2e,null,r=>Ke.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=Ke.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"&&(Ke.version.startsWith("16")||Ke.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 Ke.createElement(Ke.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:Ke.createElement(NTe,e)}function FTe(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,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 Ke.createElement(e.placeholder.tagName,{style:c,"data-rfd-placeholder-context-id":o,onTransitionEnd:u,ref:e.innerRef})};var eSe=Ke.memo(JTe);class tSe 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 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(()=>Ke.createElement(tSe,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},M=>{let{onClose:O,data:D,animate:P}=M;return Ke.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=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 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(Ke.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);++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(xIe,`{ /* [wrapped with `+t+`] */ -`)}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 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 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 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(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 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 QFe(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},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=` +`)}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,19 +572,19 @@ 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 mje(e,t){if(e==null)return{};var n=gje(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 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;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=qze[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 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&&Ke.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),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 IGe(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=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 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 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 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 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(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=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(Ke.Fragment,{children:Te.jsx(BSe,{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(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(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))})}),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(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(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=` + `),fill:a,strokeWidth:s,stroke:u,style:{pointerEvents:"none"}}))}}]),t}(ge.PureComponent);dP(fP,"propTypes",VG({},$2));dP(fP,"defaultProps",VG({},N2));function Av(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=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;++re0&&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=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]=Ke.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})});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 Vtt(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 Gtt=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,...Vtt(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 Ytt=kr(Te.jsx("path",{d:"m14 7-5 5 5 5z"}),"ArrowLeft"),Xtt=kr(Te.jsx("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight"),Ktt=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(Ytt,{}),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(Xtt,{}),disabled:t.page>=e.widgets.length/e.pageSize-1,onClick:()=>n(l=>({page:l.page+1})),children:"Next"})]})]})};function Ztt(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(dZe,{...t.params});else if(t.type==="percent")r=Te.jsx(fZe,{...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(gZe,{...t.params,widgetSize:t.size});else if(t.type==="tabs")r=Te.jsx(vZe,{...t,widgetSize:t.size,id:"twc_"});else if(t.type==="table")r=Te.jsx(yZe,{...t.params});else if(t.type==="big_table")r=Te.jsx(cZe,{...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(mZe,{...t.params,widgetSize:t.size});else if(t.type==="list"){const l=t;r=Te.jsx(Ktt,{widgets:l.widgets,pageSize:l.pageSize,widgetSize:t.size})}else t.type==="text"?r=Te.jsx(Htt,{...t.params}):t.type==="test_suite"&&(r=Te.jsx(Utt,{...t.params}));return Te.jsx(Gtt,{size:Ztt(t.size),ItemWrapper:n,children:{...t,content:r}},e)}const Qtt=({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))}),Jtt=({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(Qtt,{widgets:e,ItemWrapper:t})})});function ent({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(Jtt,{widgets:e})})}function tnt(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(ent,{dashboard:e,additionalGraphs:t})]})}))}window.drawDashboard=tnt; +`},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/ui/assets/index.html b/src/evidently/ui/assets/index.html index fcb5edaed8..83e188f6cb 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-e7KTxqKe.js b/src/evidently/ui/assets/static/js/DashboardContent-CcUT0yWs.js similarity index 99% rename from src/evidently/ui/assets/static/js/DashboardContent-e7KTxqKe.js rename to src/evidently/ui/assets/static/js/DashboardContent-CcUT0yWs.js index b218c7894c..166b68c70f 100644 --- a/src/evidently/ui/assets/static/js/DashboardContent-e7KTxqKe.js +++ b/src/evidently/ui/assets/static/js/DashboardContent-CcUT0yWs.js @@ -1,4 +1,4 @@ -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-D461mMJX.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)+` +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-Bk_zDyHx.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(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(` @@ -253,7 +253,7 @@ ${L.current.stack} -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 fH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?$e.useLayoutEffect:$e.useEffect;var Fa=fH;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 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 X5e(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);++cv.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);++c0&&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=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})});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 z5e(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 q5e=e=>{const{size:t,ItemWrapper:r}=e,i=e.children.alertsPosition??"row",{id:u,title:o,details:a,content:n,alerts:l,alertStats:f,insights:s}=e.children,c=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:c&&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",{})]}),c?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",{})]}),c?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,...z5e(t),children:r?r({id:u,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 W5e=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 U5e(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(c3e,{...t.params});else if(t.type==="percent")i=je.jsx(f3e,{...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(h3e,{...t.params,widgetSize:t.size});else if(t.type==="tabs")i=je.jsx(p3e,{...t,widgetSize:t.size,id:"twc_"});else if(t.type==="table")i=je.jsx(g3e,{...t.params});else if(t.type==="big_table")i=je.jsx(u3e,{...t.params,widgetSize:t.size});else if(t.type==="group")i=je.jsx(qP,{children:t.widgets.map((u,o)=>Tc(`wi_${o}`,u))});else if(t.type==="rich_data")i=je.jsx(d3e,{...t.params,widgetSize:t.size});else if(t.type==="list"){const u=t;i=je.jsx(W5e,{widgets:u.widgets,pageSize:u.pageSize,widgetSize:t.size})}else t.type==="text"?i=je.jsx(B5e,{...t.params}):t.type==="test_suite"&&(i=je.jsx($5e,{...t.params}));return je.jsx(q5e,{size:U5e(t.size),ItemWrapper:r,children:{...t,content:i}},e)}const K5e=({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{X5e as C,K5e as D,yC as a}; +`},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-CryUXPc0.js b/src/evidently/ui/assets/static/js/DashboardWidgets-CryUXPc0.js new file mode 100644 index 0000000000..f9c68df482 --- /dev/null +++ b/src/evidently/ui/assets/static/js/DashboardWidgets-CryUXPc0.js @@ -0,0 +1 @@ +import{j as r,T as a,G as e}from"./vendor-C2GWNUp2.js";import{D as n}from"./DashboardContent-CcUT0yWs.js";import"./DashboardViewParams-D9XhJzJS.js";import"./index-Bk_zDyHx.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-D4HyoZRA.js b/src/evidently/ui/assets/static/js/DashboardWidgets-D4HyoZRA.js deleted file mode 100644 index c9f680de33..0000000000 --- a/src/evidently/ui/assets/static/js/DashboardWidgets-D4HyoZRA.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-e7KTxqKe.js";import"./DashboardViewParams-D9XhJzJS.js";import"./index-D461mMJX.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-D461mMJX.js b/src/evidently/ui/assets/static/js/index-Bk_zDyHx.js similarity index 96% rename from src/evidently/ui/assets/static/js/index-D461mMJX.js rename to src/evidently/ui/assets/static/js/index-Bk_zDyHx.js index 01d8f4e5ce..0589c04dd8 100644 --- a/src/evidently/ui/assets/static/js/index-D461mMJX.js +++ b/src/evidently/ui/assets/static/js/index-Bk_zDyHx.js @@ -1,3 +1,3 @@ -const __vite__fileDeps=["static/js/index-DZiNc7B1.js","static/js/vendor-C2GWNUp2.js","static/js/index-CTy28emH.js","static/js/DashboardViewParams-D9XhJzJS.js","static/js/DashboardWidgets-D4HyoZRA.js","static/js/DashboardContent-e7KTxqKe.js","static/js/index-6fgIpYYZ.js","static/js/index-CYUjUYEr.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-DZiNc7B1.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-CTy28emH.js"),__vite__mapDeps([2,1,3])),g(()=>import("./DashboardWidgets-D4HyoZRA.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-6fgIpYYZ.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-CYUjUYEr.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-CYUjUYEr.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-rWHfvhvA.js","static/js/vendor-C2GWNUp2.js","static/js/index-C3mFZ9xg.js","static/js/DashboardViewParams-D9XhJzJS.js","static/js/DashboardWidgets-CryUXPc0.js","static/js/DashboardContent-CcUT0yWs.js","static/js/index-Bv_AN6d-.js","static/js/index-Bl_O4Jjc.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-rWHfvhvA.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-C3mFZ9xg.js"),__vite__mapDeps([2,1,3])),g(()=>import("./DashboardWidgets-CryUXPc0.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-Bv_AN6d-.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-Bl_O4Jjc.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-Bl_O4Jjc.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-CYUjUYEr.js b/src/evidently/ui/assets/static/js/index-Bl_O4Jjc.js similarity index 99% rename from src/evidently/ui/assets/static/js/index-CYUjUYEr.js rename to src/evidently/ui/assets/static/js/index-Bl_O4Jjc.js index 41983b0ab5..104d970768 100644 --- a/src/evidently/ui/assets/static/js/index-CYUjUYEr.js +++ b/src/evidently/ui/assets/static/js/index-Bl_O4Jjc.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-D461mMJX.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-Bk_zDyHx.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-6fgIpYYZ.js b/src/evidently/ui/assets/static/js/index-Bv_AN6d-.js similarity index 87% rename from src/evidently/ui/assets/static/js/index-6fgIpYYZ.js rename to src/evidently/ui/assets/static/js/index-Bv_AN6d-.js index 43ee15f790..5ae7fed00e 100644 --- a/src/evidently/ui/assets/static/js/index-6fgIpYYZ.js +++ b/src/evidently/ui/assets/static/js/index-Bv_AN6d-.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-D461mMJX.js";import{a as m,C as g,D as _}from"./DashboardContent-e7KTxqKe.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-Bk_zDyHx.js";import{a as m,C as g,D as _}from"./DashboardContent-CcUT0yWs.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-CTy28emH.js b/src/evidently/ui/assets/static/js/index-C3mFZ9xg.js similarity index 91% rename from src/evidently/ui/assets/static/js/index-CTy28emH.js rename to src/evidently/ui/assets/static/js/index-C3mFZ9xg.js index bc9709c792..b619496ee1 100644 --- a/src/evidently/ui/assets/static/js/index-CTy28emH.js +++ b/src/evidently/ui/assets/static/js/index-C3mFZ9xg.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-D461mMJX.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-Bk_zDyHx.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-DZiNc7B1.js b/src/evidently/ui/assets/static/js/index-rWHfvhvA.js similarity index 96% rename from src/evidently/ui/assets/static/js/index-DZiNc7B1.js rename to src/evidently/ui/assets/static/js/index-rWHfvhvA.js index eaf8015fb5..9360e9a9a2 100644 --- a/src/evidently/ui/assets/static/js/index-DZiNc7B1.js +++ b/src/evidently/ui/assets/static/js/index-rWHfvhvA.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-D461mMJX.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-Bk_zDyHx.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/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/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