@js-smart/react-kit 5.22.0 → 5.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/index.mjs +9 -3
- package/lib/components/toast/ToastManager.d.ts +2 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -31,4 +31,4 @@ theme.transitions = createTransitions(theme.transitions || {});
|
|
|
31
31
|
|
|
32
32
|
export default theme;`}function Ds(t){return typeof t=="number"?`${(t*100).toFixed(0)}%`:`calc((${t}) * 100%)`}const Mf=t=>{if(!Number.isNaN(+t))return+t;const e=t.match(/\d*\.?\d+/g);if(!e)return 0;let n=0;for(let r=0;r<e.length;r+=1)n+=+e[r];return n};function xf(t){Object.assign(t,{alpha(e,n){const r=this||t;return r.colorSpace?`oklch(from ${e} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${e.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:jc(e,Mf(n))},lighten(e,n){const r=this||t;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${e}, #fff ${Ds(n)})`:li(e,n)},darken(e,n){const r=this||t;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${e}, #000 ${Ds(n)})`:ci(e,n)}})}function Ki(t={},...e){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:s={},shape:c,colorSpace:l,...u}=t;if(t.vars&&t.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":gn(20));const d=Ta({...i,colorSpace:l}),h=wa(t);let y=pt(h,{mixins:gf(h.breakpoints,r),palette:d,shadows:Ef.slice(),typography:pf(d,s),transitions:Df(a),zIndex:{...Of}});if(y=pt(y,u),y=e.reduce((p,g)=>pt(p,g),y),process.env.NODE_ENV!=="production"){const p=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],g=(v,w)=>{let D;for(D in v){const O=v[D];if(p.includes(D)&&Object.keys(O).length>0){if(process.env.NODE_ENV!=="production"){const C=Ea("",D);console.error([`MUI: The \`${w}\` component increases the CSS specificity of the \`${D}\` internal state.`,"You can not override it like this: ",JSON.stringify(v,null,2),"",`Instead, you need to use the '&.${C}' syntax:`,JSON.stringify({root:{[`&.${C}`]:O}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
33
33
|
`))}v[D]={}}}};Object.keys(y.components).forEach(v=>{const w=y.components[v].styleOverrides;w&&v.startsWith("Mui")&&g(w,v)})}return y.unstable_sxConfig={...ai,...u?.unstable_sxConfig},y.unstable_sx=function(g){return or({sx:g,theme:this})},y.toRuntimeSource=Fc,xf(y),y}function $f(t){let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,Math.round(e*10)/1e3}const Rf=[...Array(25)].map((t,e)=>{if(e===0)return"none";const n=$f(e);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Vc(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function Wc(t){return t==="dark"?Rf:[]}function kf(t){const{palette:e={mode:"light"},opacity:n,overlays:r,colorSpace:o,...i}=t,a=Ta({...e,colorSpace:o});return{palette:a,opacity:{...Vc(a.mode),...n},overlays:r||Wc(a.mode),...i}}function Af(t){return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!t[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const If=t=>[...[...Array(25)].map((e,n)=>`--${t?`${t}-`:""}overlays-${n}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],Pf=t=>(e,n)=>{const r=t.rootSelector||":root",o=t.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),t.defaultColorScheme===e){if(e==="dark"){const a={};return If(t.cssVarPrefix).forEach(s=>{a[s]=n[s],delete n[s]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:i?{[i.replace("%s",e)]:a,[`${r}, ${i.replace("%s",e)}`]:n}:{[r]:{...n,...a}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(e))}`}else if(e){if(i==="media")return{[`@media (prefers-color-scheme: ${String(e)})`]:{[r]:n}};if(i)return i.replace("%s",String(e))}return r};function Nf(t,e){e.forEach(n=>{t[n]||(t[n]={})})}function T(t,e,n){!t[e]&&n&&(t[e]=n)}function Sr(t){return typeof t!="string"||!t.startsWith("hsl")?t:Lc(t)}function qt(t,e){`${e}Channel`in t||(t[`${e}Channel`]=Or(Sr(t[e]),`MUI: Can't create \`palette.${e}Channel\` because \`palette.${e}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
34
|
-
To suppress this warning, you need to explicitly provide the \`palette.${e}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Lf(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const At=t=>{try{return t()}catch{}},jf=(t="mui")=>ef(t);function Pi(t,e,n,r,o){if(!n)return;n=n===!0?{}:n;const i=o==="dark"?"dark":"light";if(!r){e[o]=kf({...n,palette:{mode:i,...n?.palette},colorSpace:t});return}const{palette:a,...s}=Ki({...r,palette:{mode:i,...n?.palette},colorSpace:t});return e[o]={...n,palette:a,opacity:{...Vc(i),...n?.opacity},overlays:n?.overlays||Wc(i)},s}function Yf(t={},...e){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:s=Af,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...u}=t,d=Object.keys(n)[0],h=r||(n.light&&d!=="light"?"light":d),y=jf(i),{[h]:p,light:g,dark:v,...w}=n,D={...w};let O=p;if((h==="dark"&&!("dark"in n)||h==="light"&&!("light"in n))&&(O=!0),!O)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${h}\` option is either missing or invalid.`:gn(21,h));let C;a&&(C="oklch");const E=Pi(C,D,O,u,h);g&&!D.light&&Pi(C,D,g,void 0,"light"),v&&!D.dark&&Pi(C,D,v,void 0,"dark");let S={defaultColorScheme:h,...E,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:l,getCssVar:y,colorSchemes:D,font:{...mf(E.typography),...E.font},spacing:Lf(u.spacing)};Object.keys(S.colorSchemes).forEach(B=>{const b=S.colorSchemes[B].palette,k=Y=>{const Z=Y.split("-"),pe=Z[1],at=Z[2];return y(Y,b[pe][at])};b.mode==="light"&&(T(b.common,"background","#fff"),T(b.common,"onBackground","#000")),b.mode==="dark"&&(T(b.common,"background","#000"),T(b.common,"onBackground","#fff"));function x(Y,Z,pe){if(C){let at;return Y===Cn&&(at=`transparent ${((1-pe)*100).toFixed(0)}%`),Y===de&&(at=`#000 ${(pe*100).toFixed(0)}%`),Y===fe&&(at=`#fff ${(pe*100).toFixed(0)}%`),`color-mix(in ${C}, ${Z}, ${at})`}return Y(Z,pe)}if(Nf(b,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),b.mode==="light"){T(b.Alert,"errorColor",x(de,b.error.light,.6)),T(b.Alert,"infoColor",x(de,b.info.light,.6)),T(b.Alert,"successColor",x(de,b.success.light,.6)),T(b.Alert,"warningColor",x(de,b.warning.light,.6)),T(b.Alert,"errorFilledBg",k("palette-error-main")),T(b.Alert,"infoFilledBg",k("palette-info-main")),T(b.Alert,"successFilledBg",k("palette-success-main")),T(b.Alert,"warningFilledBg",k("palette-warning-main")),T(b.Alert,"errorFilledColor",At(()=>b.getContrastText(b.error.main))),T(b.Alert,"infoFilledColor",At(()=>b.getContrastText(b.info.main))),T(b.Alert,"successFilledColor",At(()=>b.getContrastText(b.success.main))),T(b.Alert,"warningFilledColor",At(()=>b.getContrastText(b.warning.main))),T(b.Alert,"errorStandardBg",x(fe,b.error.light,.9)),T(b.Alert,"infoStandardBg",x(fe,b.info.light,.9)),T(b.Alert,"successStandardBg",x(fe,b.success.light,.9)),T(b.Alert,"warningStandardBg",x(fe,b.warning.light,.9)),T(b.Alert,"errorIconColor",k("palette-error-main")),T(b.Alert,"infoIconColor",k("palette-info-main")),T(b.Alert,"successIconColor",k("palette-success-main")),T(b.Alert,"warningIconColor",k("palette-warning-main")),T(b.AppBar,"defaultBg",k("palette-grey-100")),T(b.Avatar,"defaultBg",k("palette-grey-400")),T(b.Button,"inheritContainedBg",k("palette-grey-300")),T(b.Button,"inheritContainedHoverBg",k("palette-grey-A100")),T(b.Chip,"defaultBorder",k("palette-grey-400")),T(b.Chip,"defaultAvatarColor",k("palette-grey-700")),T(b.Chip,"defaultIconColor",k("palette-grey-700")),T(b.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),T(b.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),T(b.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),T(b.LinearProgress,"primaryBg",x(fe,b.primary.main,.62)),T(b.LinearProgress,"secondaryBg",x(fe,b.secondary.main,.62)),T(b.LinearProgress,"errorBg",x(fe,b.error.main,.62)),T(b.LinearProgress,"infoBg",x(fe,b.info.main,.62)),T(b.LinearProgress,"successBg",x(fe,b.success.main,.62)),T(b.LinearProgress,"warningBg",x(fe,b.warning.main,.62)),T(b.Skeleton,"bg",C?x(Cn,b.text.primary,.11):`rgba(${k("palette-text-primaryChannel")} / 0.11)`),T(b.Slider,"primaryTrack",x(fe,b.primary.main,.62)),T(b.Slider,"secondaryTrack",x(fe,b.secondary.main,.62)),T(b.Slider,"errorTrack",x(fe,b.error.main,.62)),T(b.Slider,"infoTrack",x(fe,b.info.main,.62)),T(b.Slider,"successTrack",x(fe,b.success.main,.62)),T(b.Slider,"warningTrack",x(fe,b.warning.main,.62));const Y=C?x(de,b.background.default,.6825):To(b.background.default,.8);T(b.SnackbarContent,"bg",Y),T(b.SnackbarContent,"color",At(()=>C?Gi.text.primary:b.getContrastText(Y))),T(b.SpeedDialAction,"fabHoverBg",To(b.background.paper,.15)),T(b.StepConnector,"border",k("palette-grey-400")),T(b.StepContent,"border",k("palette-grey-400")),T(b.Switch,"defaultColor",k("palette-common-white")),T(b.Switch,"defaultDisabledColor",k("palette-grey-100")),T(b.Switch,"primaryDisabledColor",x(fe,b.primary.main,.62)),T(b.Switch,"secondaryDisabledColor",x(fe,b.secondary.main,.62)),T(b.Switch,"errorDisabledColor",x(fe,b.error.main,.62)),T(b.Switch,"infoDisabledColor",x(fe,b.info.main,.62)),T(b.Switch,"successDisabledColor",x(fe,b.success.main,.62)),T(b.Switch,"warningDisabledColor",x(fe,b.warning.main,.62)),T(b.TableCell,"border",x(fe,x(Cn,b.divider,1),.88)),T(b.Tooltip,"bg",x(Cn,b.grey[700],.92))}if(b.mode==="dark"){T(b.Alert,"errorColor",x(fe,b.error.light,.6)),T(b.Alert,"infoColor",x(fe,b.info.light,.6)),T(b.Alert,"successColor",x(fe,b.success.light,.6)),T(b.Alert,"warningColor",x(fe,b.warning.light,.6)),T(b.Alert,"errorFilledBg",k("palette-error-dark")),T(b.Alert,"infoFilledBg",k("palette-info-dark")),T(b.Alert,"successFilledBg",k("palette-success-dark")),T(b.Alert,"warningFilledBg",k("palette-warning-dark")),T(b.Alert,"errorFilledColor",At(()=>b.getContrastText(b.error.dark))),T(b.Alert,"infoFilledColor",At(()=>b.getContrastText(b.info.dark))),T(b.Alert,"successFilledColor",At(()=>b.getContrastText(b.success.dark))),T(b.Alert,"warningFilledColor",At(()=>b.getContrastText(b.warning.dark))),T(b.Alert,"errorStandardBg",x(de,b.error.light,.9)),T(b.Alert,"infoStandardBg",x(de,b.info.light,.9)),T(b.Alert,"successStandardBg",x(de,b.success.light,.9)),T(b.Alert,"warningStandardBg",x(de,b.warning.light,.9)),T(b.Alert,"errorIconColor",k("palette-error-main")),T(b.Alert,"infoIconColor",k("palette-info-main")),T(b.Alert,"successIconColor",k("palette-success-main")),T(b.Alert,"warningIconColor",k("palette-warning-main")),T(b.AppBar,"defaultBg",k("palette-grey-900")),T(b.AppBar,"darkBg",k("palette-background-paper")),T(b.AppBar,"darkColor",k("palette-text-primary")),T(b.Avatar,"defaultBg",k("palette-grey-600")),T(b.Button,"inheritContainedBg",k("palette-grey-800")),T(b.Button,"inheritContainedHoverBg",k("palette-grey-700")),T(b.Chip,"defaultBorder",k("palette-grey-700")),T(b.Chip,"defaultAvatarColor",k("palette-grey-300")),T(b.Chip,"defaultIconColor",k("palette-grey-300")),T(b.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),T(b.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),T(b.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),T(b.LinearProgress,"primaryBg",x(de,b.primary.main,.5)),T(b.LinearProgress,"secondaryBg",x(de,b.secondary.main,.5)),T(b.LinearProgress,"errorBg",x(de,b.error.main,.5)),T(b.LinearProgress,"infoBg",x(de,b.info.main,.5)),T(b.LinearProgress,"successBg",x(de,b.success.main,.5)),T(b.LinearProgress,"warningBg",x(de,b.warning.main,.5)),T(b.Skeleton,"bg",C?x(Cn,b.text.primary,.13):`rgba(${k("palette-text-primaryChannel")} / 0.13)`),T(b.Slider,"primaryTrack",x(de,b.primary.main,.5)),T(b.Slider,"secondaryTrack",x(de,b.secondary.main,.5)),T(b.Slider,"errorTrack",x(de,b.error.main,.5)),T(b.Slider,"infoTrack",x(de,b.info.main,.5)),T(b.Slider,"successTrack",x(de,b.success.main,.5)),T(b.Slider,"warningTrack",x(de,b.warning.main,.5));const Y=C?x(fe,b.background.default,.985):To(b.background.default,.98);T(b.SnackbarContent,"bg",Y),T(b.SnackbarContent,"color",At(()=>C?zc.text.primary:b.getContrastText(Y))),T(b.SpeedDialAction,"fabHoverBg",To(b.background.paper,.15)),T(b.StepConnector,"border",k("palette-grey-600")),T(b.StepContent,"border",k("palette-grey-600")),T(b.Switch,"defaultColor",k("palette-grey-300")),T(b.Switch,"defaultDisabledColor",k("palette-grey-600")),T(b.Switch,"primaryDisabledColor",x(de,b.primary.main,.55)),T(b.Switch,"secondaryDisabledColor",x(de,b.secondary.main,.55)),T(b.Switch,"errorDisabledColor",x(de,b.error.main,.55)),T(b.Switch,"infoDisabledColor",x(de,b.info.main,.55)),T(b.Switch,"successDisabledColor",x(de,b.success.main,.55)),T(b.Switch,"warningDisabledColor",x(de,b.warning.main,.55)),T(b.TableCell,"border",x(de,x(Cn,b.divider,1),.68)),T(b.Tooltip,"bg",x(Cn,b.grey[700],.92))}qt(b.background,"default"),qt(b.background,"paper"),qt(b.common,"background"),qt(b.common,"onBackground"),qt(b,"divider"),Object.keys(b).forEach(Y=>{const Z=b[Y];Y!=="tonalOffset"&&Z&&typeof Z=="object"&&(Z.main&&T(b[Y],"mainChannel",Or(Sr(Z.main))),Z.light&&T(b[Y],"lightChannel",Or(Sr(Z.light))),Z.dark&&T(b[Y],"darkChannel",Or(Sr(Z.dark))),Z.contrastText&&T(b[Y],"contrastTextChannel",Or(Sr(Z.contrastText))),Y==="text"&&(qt(b[Y],"primary"),qt(b[Y],"secondary")),Y==="action"&&(Z.active&&qt(b[Y],"active"),Z.selected&&qt(b[Y],"selected")))})}),S=e.reduce((B,b)=>pt(B,b),S);const P={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:Pf(S),enableContrastVars:a},{vars:z,generateThemeVars:j,generateStyleSheets:ae}=rf(S,P);return S.vars=z,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([B,b])=>{S[B]=b}),S.generateThemeVars=j,S.generateStyleSheets=ae,S.generateSpacing=function(){return kc(u.spacing,ba(this))},S.getColorSchemeSelector=of(c),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=s,S.unstable_sxConfig={...ai,...u?.unstable_sxConfig},S.unstable_sx=function(b){return or({sx:b,theme:this})},S.toRuntimeSource=Fc,S}function Os(t,e,n){t.colorSchemes&&n&&(t.colorSchemes[e]={...n!==!0&&n,palette:Ta({...n===!0?{}:n.palette,mode:e})})}function zf(t={},...e){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n?.mode,...a}=t,s=i||"light",c=o?.[s],l={...o,...n?{[s]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in t))return Ki(t,...e);let u=n;"palette"in t||l[s]&&(l[s]!==!0?u=l[s].palette:s==="dark"&&(u={mode:"dark"}));const d=Ki({...t,palette:u},...e);return d.defaultColorScheme=s,d.colorSchemes=l,d.palette.mode==="light"&&(d.colorSchemes.light={...l.light!==!0&&l.light,palette:d.palette},Os(d,"dark",l.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:d.palette},Os(d,"light",l.light)),d}return!n&&!("light"in l)&&s==="light"&&(l.light=!0),Yf({...a,colorSchemes:l,defaultColorScheme:s,...typeof r!="boolean"&&r},...e)}const qc=zf(),Hc="$$material";function Uf(){const t=Id(qc);return process.env.NODE_ENV!=="production"&&ge.useDebugValue(t),t[Hc]||t}function Ff(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const Vf=t=>Ff(t)&&t!=="classes",Wf=Ud({themeId:Hc,defaultTheme:qc,rootShouldForwardProp:Vf}),qf=Jd;process.env.NODE_ENV!=="production"&&(se.node,se.object.isRequired);function Hf(t){return Qd(t)}function Bf(t){return Ea("MuiSvgIcon",t)}Nd("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Zf=t=>{const{color:e,fontSize:n,classes:r}=t,o={root:["root",e!=="inherit"&&`color${Rn(e)}`,`fontSize${Rn(n)}`]};return Tu(o,Bf,r)},Gf=Wf("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="inherit"&&e[`color${Rn(n.color)}`],e[`fontSize${Rn(n.fontSize)}`]]}})(qf(({theme:t})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:t.transitions?.create?.("fill",{duration:(t.vars??t).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:t.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:t.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:t.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,e])=>e&&e.main).map(([e])=>({props:{color:e},style:{color:(t.vars??t).palette?.[e]?.main}})),{props:{color:"action"},style:{color:(t.vars??t).palette?.action?.active}},{props:{color:"disabled"},style:{color:(t.vars??t).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),No=ge.forwardRef(function(e,n){const r=Hf({props:e,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:c="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:d,viewBox:h="0 0 24 24",...y}=r,p=ge.isValidElement(o)&&o.type==="svg",g={...r,color:a,component:s,fontSize:c,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:p},v={};u||(v.viewBox=h);const w=Zf(g);return R.jsxs(Gf,{as:s,className:Mc(w.root,i),focusable:"false",color:l,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...v,...y,...p&&o.props,ownerState:g,children:[p?o.props.children:o,d?R.jsx("title",{children:d}):null]})});process.env.NODE_ENV!=="production"&&(No.propTypes={children:se.node,classes:se.object,className:se.string,color:se.oneOfType([se.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),se.string]),component:se.elementType,fontSize:se.oneOfType([se.oneOf(["inherit","large","medium","small"]),se.string]),htmlColor:se.string,inheritViewBox:se.bool,shapeRendering:se.string,sx:se.oneOfType([se.arrayOf(se.oneOfType([se.func,se.object,se.bool])),se.func,se.object]),titleAccess:se.string,viewBox:se.string});No.muiName="SvgIcon";function Et(t,e){function n(r,o){return R.jsx(No,{"data-testid":process.env.NODE_ENV!=="production"?`${e}Icon`:void 0,ref:o,...r,children:t})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${e}Icon`),n.muiName=No.muiName,ge.memo(ge.forwardRef(n))}const Kf=Et(R.jsx("path",{d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8"}),"Undo");function Xf(t){return R.jsx(W.Button,{name:t.name,"data-cy":t.dataCy??"cancel-button",className:t.className,sx:t.sx,startIcon:t.startIcon??R.jsx(Kf,{}),variant:t.variant??"contained",color:t.color??"secondary",type:t.type??"button",onClick:()=>t.onClick(),"aria-label":t.ariaLabel??t.name??"Cancel",children:t.children??t.name})}const Qf=Et(R.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"DeleteForever");function Jf(t){return R.jsx(W.Button,{"data-cy":t.dataCy??"delete-button",loading:t.loading??!1,loadingPosition:t.loadingPosition??"start",startIcon:t.startIcon??R.jsx(Qf,{}),name:t.name,variant:t.variant??"contained",color:t.color??"error",sx:{m:1},type:t.type??"button",onClick:t.onClick,"aria-label":t.ariaLabel??t.label??"Delete",children:t.label?t.label:"Delete"})}const eh=Et(R.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");function th(t){return R.jsx(W.Tooltip,{title:t.tooltipTitle,children:R.jsx(W.IconButton,{sx:{padding:"0.25rem"},color:t.color??"primary",onClick:()=>t.onClick(!0),"aria-label":t.ariaLabel??t.tooltipTitle,children:R.jsx(eh,{})})})}function nh(t){return R.jsx(W.Button,{"data-cy":t.dataCy??"excel-button",style:{borderRadius:"20px"},className:t.className,name:t.name,sx:t.sx,startIcon:t.startIcon,variant:"contained",color:"success",type:t.type??"button",onClick:()=>t.onClick(),"aria-label":t.ariaLabel??t.name??"Export to Excel",children:t.children??t.name})}const rh=Et(R.jsx("path",{d:"M11.67 3.87 9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"}),"ArrowBackIos");function oh(t){return R.jsx(W.Tooltip,{title:"Go Back to Previous Page",children:R.jsxs(W.IconButton,{name:t.name,color:t.color??"primary",onClick:()=>t.navigate(-1),"aria-label":t.ariaLabel??"Go back to previous page",children:[R.jsx(rh,{}),t.children]})})}const ih=Et(R.jsx("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z"}),"History");function ah(t){return R.jsx(W.Button,{name:t.name,"data-cy":t.dataCy??"history-button",className:t.className,sx:t.sx??{p:1,m:1},startIcon:t.startIcon??R.jsx(ih,{}),variant:t.variant??"contained",color:t.color??"primary",type:t.type??"button",onClick:()=>t.onClick(),"aria-label":t.ariaLabel??t.name??"History",children:t.children??t.name})}const sh=Et(R.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save"),ch={backgroundColor:"$primary-color",color:"var(--white-color)",margin:"20px"};function lh(t){return R.jsx(W.Button,{name:t.name,"data-cy":t.dataCy??"loading-success-button",variant:t.variant??"contained",color:t.color??"success",loadingPosition:"start",startIcon:t.startIcon??R.jsx(sh,{}),loading:t.loading,type:t.type??"button",style:ch,sx:t.sx,onClick:t.onClick,"aria-label":t.ariaLabel??t.name??"Save",children:t.children??t.name})}const uh=Et(R.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");function dh(t){return R.jsx(W.Button,{name:t.name,"data-cy":t.dataCy??"manage-button",className:t.className,onClick:()=>t.onClick(),variant:t.variant??"contained",color:t.color??"primary",size:t.size??"large",startIcon:t.startIcon??R.jsx(uh,{}),"aria-label":t.ariaLabel??(typeof t.children=="string"?t.children:void 0)??"Manage",children:t.children?t.children:"Manage"})}function fh(t){return R.jsx(W.Button,{name:t.name,"data-cy":t.dataCy??"success-button",className:t.className,sx:t.sx,startIcon:t.startIcon,variant:t.variant??"contained",color:t.color??"success",type:t.type??"button",onClick:()=>t.onClick(),"aria-label":t.ariaLabel??t.name??"Save",children:t.children??t.name})}const Ca=Et(R.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),hh=t=>{const[e,n]=Fe.useState(!1);Fe.useEffect(()=>{n(t.open)},[t.open,t.progressState]);const r=R.jsx(W.IconButton,{size:"small","aria-label":"close",color:"inherit",onClick:()=>n(!1),children:R.jsx(Ca,{fontSize:"small"})});return R.jsxs(R.Fragment,{children:[R.jsx(W.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:e&&t.progressState.isSuccess,autoHideDuration:t.autoHideDuration??3e3,onClose:()=>n(!1),children:R.jsx(W.Alert,{variant:"filled",severity:"success",sx:{width:"100%"},action:r,children:t.progressState.message})}),R.jsx(W.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:e&&t.progressState.isError,slots:{transition:W.Slide},autoHideDuration:t.autoHideDuration??3e3,onClose:()=>n(!1),children:R.jsx(W.Alert,{variant:"filled",sx:{width:"100%"},severity:"error",action:r,children:t.progressState.message})})]})},mh=t=>{const[e,n]=Fe.useState(!1);Fe.useEffect(()=>{n(t.open)},[t.open,t]);const r=R.jsx(W.IconButton,{size:"small","aria-label":"close",color:"inherit",onClick:()=>n(!1),children:R.jsx(Ca,{fontSize:"small"})});return R.jsxs(R.Fragment,{children:[R.jsx(W.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:e&&t.isSuccess,autoHideDuration:t.autoHideDuration??3e3,onClose:()=>n(!1),children:R.jsx(W.Alert,{variant:"filled",severity:"success",sx:{width:"100%"},action:r,children:t.message})}),R.jsx(W.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:e&&t.isError,TransitionComponent:W.Slide,autoHideDuration:t.autoHideDuration??3e3,onClose:()=>n(!1),children:R.jsx(W.Alert,{variant:"filled",sx:{width:"100%"},severity:"error",action:r,children:t.message})})]})};let Co={message:"",open:!1,autoHideDuration:3e3,type:"info"};const Do=new Set,$o={subscribe(t){return Do.add(t),()=>Do.delete(t)},getSnapshot(){return Co},show(t,e="info",n=3e3){Co={message:t,type:e,open:!0,autoHideDuration:n},Do.forEach(r=>r())},close(){Co={...Co,open:!1},Do.forEach(t=>t())}},gh=(t,e)=>$o.show(t,e),yh=()=>{const t=Fe.useSyncExternalStore($o.subscribe,$o.getSnapshot),e=(n,r)=>{r!=="clickaway"&&$o.close()};return R.jsx(W.Snackbar,{open:t.open,autoHideDuration:t.autoHideDuration,onClose:e,anchorOrigin:{vertical:"bottom",horizontal:"right"},children:R.jsx(W.Alert,{severity:t.type,variant:"filled",onClose:e,children:t.message})})};function ph(){return R.jsx("div",{style:{margin:"1.5rem"},className:"app-flex-justify-center",role:"status","aria-label":"Loading",children:R.jsx(W.CircularProgress,{})})}function bh(t){const{onClose:e,title:n,message:r,open:o,...i}=t;return R.jsxs(W.Dialog,{sx:{"& .MuiDialog-paper":{width:"80%",maxHeight:435}},maxWidth:"xs",open:o,...i,children:[R.jsx(W.DialogTitle,{children:n??"Confirm"}),R.jsx(W.DialogContent,{dividers:!0,children:r}),R.jsxs(W.DialogActions,{children:[R.jsx(W.Button,{autoFocus:!0,onClick:()=>e("No"),"aria-label":"Cancel",children:"Cancel"}),R.jsx(W.Button,{onClick:()=>e("Yes"),"aria-label":"Yes",children:"Yes"})]})]})}function vh(t){const{ariaLabel:e,...n}=t,[r,o]=Fe.useState(!0),[i]=Fe.useState(t.dismissible??!0),[a]=Fe.useState(t.dismissOnTimeOut??!0),[s]=Fe.useState(t.dismissTimeOut??5e3);return setTimeout(()=>{o(a?!1:r)},s),R.jsx("span",{children:r&&R.jsx(W.Alert,{action:i?R.jsx(W.IconButton,{"aria-label":"close",color:"inherit",size:"small",onClick:()=>{o(!1)},children:R.jsx(Ca,{fontSize:"inherit"})}):null,style:{margin:"20px"},"aria-label":e??"Dismissible Alert",...n,children:n.message})})}function wh(t){return typeof t=="function"}function Ss(t,e){return wh(t)?t(e):t}const Eh=Object.prototype.hasOwnProperty,Ms=Object.prototype.propertyIsEnumerable;function Bc(t,e,n=0){if(t===e)return t;if(n>500)return e;const r=e,o=Rs(t)&&Rs(r);if(!o&&!(Lo(t)&&Lo(r)))return r;const i=o?t:xs(t);if(!i)return r;const a=o?r:xs(r);if(!a)return r;const s=i.length,c=a.length,l=o?new Array(c):{};let u=0;for(let d=0;d<c;d++){const h=o?d:a[d],y=t[h],p=r[h];if(y===p){l[h]=y,(o?d<s:Eh.call(t,h))&&u++;continue}if(y===null||p===null||typeof y!="object"||typeof p!="object"){l[h]=p;continue}const g=Bc(y,p,n+1);l[h]=g,g===y&&u++}return s===c&&u===s?t:l}function xs(t){const e=Object.getOwnPropertyNames(t);for(const o of e)if(!Ms.call(t,o))return!1;const n=Object.getOwnPropertySymbols(t);if(n.length===0)return e;const r=e;for(const o of n){if(!Ms.call(t,o))return!1;r.push(o)}return r}function Lo(t){if(!$s(t))return!1;const e=t.constructor;if(typeof e>"u")return!0;const n=e.prototype;return!(!$s(n)||!n.hasOwnProperty("isPrototypeOf"))}function $s(t){return Object.prototype.toString.call(t)==="[object Object]"}function Rs(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Ro(t,e,n){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0,o=t.length;r<o;r++)if(!Ro(t[r],e[r],n))return!1;return!0}if(Lo(t)&&Lo(e)){const r=n?.ignoreUndefined??!0;if(n?.partial){for(const a in e)if((!r||e[a]!==void 0)&&!Ro(t[a],e[a],n))return!1;return!0}let o=0;if(!r)o=Object.keys(t).length;else for(const a in t)t[a]!==void 0&&o++;let i=0;for(const a in e)if((!r||e[a]!==void 0)&&(i++,i>o||!Ro(t[a],e[a],n)))return!1;return o===i}return!1}function ks(t,e){if(!t)return!1;try{const n=new URL(t);return!e.has(n.protocol)}catch{return!1}}function jo(t,e){return t?.endsWith("/")&&t!=="/"&&t!==`${e}/`?t.slice(0,-1):t}function _h(t,e,n){return jo(t,n)===jo(e,n)}const Th="Error preloading route! ☝️";function Ch(t,e,n={},r={}){ge.useEffect(()=>{if(!t.current||r.disabled||typeof IntersectionObserver!="function")return;const o=new IntersectionObserver(([i])=>{e(i)},n);return o.observe(t.current),()=>{o.disconnect()}},[e,n,r.disabled,t])}function Dh(t){const e=ge.useRef(null);return ge.useImperativeHandle(t,()=>e.current,[]),e}function Oh(){return Fe.useSyncExternalStore(Sh,()=>!0,()=>!1)}function Sh(){return()=>{}}var Mh=process.env.NODE_ENV==="production";function xh(t,e){if(!Mh){if(t)return;var n="Warning: "+e;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}var Oo={exports:{}},Ni={},So={exports:{}},Li={};var As;function $h(){if(As)return Li;As=1;var t=Fe;function e(d,h){return d===h&&(d!==0||1/d===1/h)||d!==d&&h!==h}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,o=t.useEffect,i=t.useLayoutEffect,a=t.useDebugValue;function s(d,h){var y=h(),p=r({inst:{value:y,getSnapshot:h}}),g=p[0].inst,v=p[1];return i(function(){g.value=y,g.getSnapshot=h,c(g)&&v({inst:g})},[d,y,h]),o(function(){return c(g)&&v({inst:g}),d(function(){c(g)&&v({inst:g})})},[d]),a(y),y}function c(d){var h=d.getSnapshot;d=d.value;try{var y=h();return!n(d,y)}catch{return!0}}function l(d,h){return h()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l:s;return Li.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:u,Li}var ji={};var Is;function Rh(){return Is||(Is=1,process.env.NODE_ENV!=="production"&&(function(){function t(y,p){return y===p&&(y!==0||1/y===1/p)||y!==y&&p!==p}function e(y,p){u||o.startTransition===void 0||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var g=p();if(!d){var v=p();i(g,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}v=a({inst:{value:g,getSnapshot:p}});var w=v[0].inst,D=v[1];return c(function(){w.value=g,w.getSnapshot=p,n(w)&&D({inst:w})},[y,g,p]),s(function(){return n(w)&&D({inst:w}),y(function(){n(w)&&D({inst:w})})},[y]),l(g),g}function n(y){var p=y.getSnapshot;y=y.value;try{var g=p();return!i(y,g)}catch{return!0}}function r(y,p){return p()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=Fe,i=typeof Object.is=="function"?Object.is:t,a=o.useState,s=o.useEffect,c=o.useLayoutEffect,l=o.useDebugValue,u=!1,d=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;ji.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),ji}var Ps;function Zc(){return Ps||(Ps=1,process.env.NODE_ENV==="production"?So.exports=$h():So.exports=Rh()),So.exports}var Ns;function kh(){if(Ns)return Ni;Ns=1;var t=Fe,e=Zc();function n(l,u){return l===u&&(l!==0||1/l===1/u)||l!==l&&u!==u}var r=typeof Object.is=="function"?Object.is:n,o=e.useSyncExternalStore,i=t.useRef,a=t.useEffect,s=t.useMemo,c=t.useDebugValue;return Ni.useSyncExternalStoreWithSelector=function(l,u,d,h,y){var p=i(null);if(p.current===null){var g={hasValue:!1,value:null};p.current=g}else g=p.current;p=s(function(){function w(S){if(!D){if(D=!0,O=S,S=h(S),y!==void 0&&g.hasValue){var P=g.value;if(y(P,S))return C=P}return C=S}if(P=C,r(O,S))return P;var z=h(S);return y!==void 0&&y(P,z)?(O=S,P):(O=S,C=z)}var D=!1,O,C,E=d===void 0?null:d;return[function(){return w(u())},E===null?void 0:function(){return w(E())}]},[u,d,h,y]);var v=o(l,p[0],p[1]);return a(function(){g.hasValue=!0,g.value=v},[v]),c(v),v},Ni}var Yi={};var Ls;function Ah(){return Ls||(Ls=1,process.env.NODE_ENV!=="production"&&(function(){function t(l,u){return l===u&&(l!==0||1/l===1/u)||l!==l&&u!==u}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var e=Fe,n=Zc(),r=typeof Object.is=="function"?Object.is:t,o=n.useSyncExternalStore,i=e.useRef,a=e.useEffect,s=e.useMemo,c=e.useDebugValue;Yi.useSyncExternalStoreWithSelector=function(l,u,d,h,y){var p=i(null);if(p.current===null){var g={hasValue:!1,value:null};p.current=g}else g=p.current;p=s(function(){function w(S){if(!D){if(D=!0,O=S,S=h(S),y!==void 0&&g.hasValue){var P=g.value;if(y(P,S))return C=P}return C=S}if(P=C,r(O,S))return P;var z=h(S);return y!==void 0&&y(P,z)?(O=S,P):(O=S,C=z)}var D=!1,O,C,E=d===void 0?null:d;return[function(){return w(u())},E===null?void 0:function(){return w(E())}]},[u,d,h,y]);var v=o(l,p[0],p[1]);return a(function(){g.hasValue=!0,g.value=v},[v]),c(v),v},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Yi}var js;function Ih(){return js||(js=1,process.env.NODE_ENV==="production"?Oo.exports=kh():Oo.exports=Ah()),Oo.exports}var Ph=Ih();function Nh(t,e=r=>r,n={}){const r=n.equal??Lh;return Ph.useSyncExternalStoreWithSelector(t.subscribe,()=>t.state,()=>t.state,e,r)}function Lh(t,e){if(Object.is(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(const[r,o]of t)if(!e.has(r)||!Object.is(o,e.get(r)))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(const r of t)if(!e.has(r))return!1;return!0}if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();const n=Ys(t);if(n.length!==Ys(e).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(e,n[r])||!Object.is(t[n[r]],e[n[r]]))return!1;return!0}function Ys(t){return Object.keys(t).concat(Object.getOwnPropertySymbols(t))}const zi=ge.createContext(null);function jh(){return typeof document>"u"?zi:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=zi,zi)}function Gc(t){const e=ge.useContext(jh());return xh(!((t?.warn??!0)&&!e),"useRouter must be used inside a <RouterProvider> component!"),e}function zs(t){const e=Gc({warn:t?.router===void 0}),n=t?.router||e,r=Fe.useRef(void 0);return Nh(n.__store,o=>{if(t?.select){if(t.structuralSharing??n.options.defaultStructuralSharing){const i=Bc(r.current,t.select(o));return r.current=i,i}return t.select(o)}return o})}function Yh(t,e){const n=Gc(),r=Dh(e),{activeProps:o,inactiveProps:i,activeOptions:a,to:s,preload:c,preloadDelay:l,hashScrollIntoView:u,replace:d,startTransition:h,resetScroll:y,viewTransition:p,children:g,target:v,disabled:w,style:D,className:O,onClick:C,onFocus:E,onMouseEnter:S,onMouseLeave:P,onTouchStart:z,ignoreBlocker:j,params:ae,search:B,hash:b,state:k,mask:x,reloadDocument:Y,unsafeRelative:Z,from:pe,_fromLocation:at,...cn}=t,$=Oh(),I=zs({select:ve=>{const Ie=ve.matches[ve.matches.length-1];return{search:Ie?.search,hash:ve.location.hash,path:Ie?.pathname}},structuralSharing:!0}),J=t.from,H=ge.useMemo(()=>({...t,from:J}),[n,I,J,t._fromLocation,t.hash,t.to,t.search,t.params,t.state,t.mask,t.unsafeRelative]),L=ge.useMemo(()=>n.buildLocation({...H}),[n,H]),ne=L.maskedLocation?L.maskedLocation.publicHref:L.publicHref,G=L.maskedLocation?L.maskedLocation.external:L.external,q=ge.useMemo(()=>qh(ne,G,n.history,w),[w,G,ne,n.history]),ee=ge.useMemo(()=>{if(q?.external){if(ks(q.href,n.protocolAllowlist)){process.env.NODE_ENV!=="production"&&console.warn(`Blocked Link with dangerous protocol: ${q.href}`);return}return q.href}if(!Hh(s)&&!(typeof s!="string"||s.indexOf(":")===-1))try{if(new URL(s),ks(s,n.protocolAllowlist)){process.env.NODE_ENV!=="production"&&console.warn(`Blocked Link with dangerous protocol: ${s}`);return}return s}catch{}},[s,q,n.protocolAllowlist]),oe=zs({select:ve=>{if(ee)return!1;if(a?.exact){if(!_h(ve.location.pathname,L.pathname,n.basepath))return!1}else{const Ie=jo(ve.location.pathname,n.basepath),$t=jo(L.pathname,n.basepath);if(!(Ie.startsWith($t)&&(Ie.length===$t.length||Ie[$t.length]==="/")))return!1}return(a?.includeSearch??!0)&&!Ro(ve.location.search,L.search,{partial:!a?.exact,ignoreUndefined:!a?.explicitUndefined})?!1:a?.includeHash?$&&ve.location.hash===L.hash:!0}}),te=oe?Ss(o,{})??zh:Ui,xe=oe?Ui:Ss(i,{})??Ui,A=[O,te.className,xe.className].filter(Boolean).join(" "),ht=(D||te.style||xe.style)&&{...D,...te.style,...xe.style},[Un,vr]=ge.useState(!1),qa=ge.useRef(!1),Fn=t.reloadDocument||ee?!1:c??n.options.defaultPreload,Di=l??n.options.defaultPreloadDelay??0,Tn=ge.useCallback(()=>{n.preloadRoute({...H,_builtLocation:L}).catch(ve=>{console.warn(ve),console.warn(Th)})},[n,H,L]),ru=ge.useCallback(ve=>{ve?.isIntersecting&&Tn()},[Tn]);Ch(r,ru,Wh,{disabled:!!w||Fn!=="viewport"}),ge.useEffect(()=>{qa.current||!w&&Fn==="render"&&(Tn(),qa.current=!0)},[w,Tn,Fn]);const ou=ve=>{const Ie=ve.currentTarget.getAttribute("target"),$t=v!==void 0?v:Ie;if(!w&&!Zh(ve)&&!ve.defaultPrevented&&(!$t||$t==="_self")&&ve.button===0){ve.preventDefault(),uu.flushSync(()=>{vr(!0)});const Ba=n.subscribe("onResolved",()=>{Ba(),vr(!1)});n.navigate({...H,replace:d,resetScroll:y,hashScrollIntoView:u,startTransition:h,viewTransition:p,ignoreBlocker:j})}};if(ee)return{...cn,ref:r,href:ee,...g&&{children:g},...v&&{target:v},...w&&{disabled:w},...D&&{style:D},...O&&{className:O},...C&&{onClick:C},...E&&{onFocus:E},...S&&{onMouseEnter:S},...P&&{onMouseLeave:P},...z&&{onTouchStart:z}};const Ha=ve=>{w||Fn&&Tn()},iu=Ha,au=ve=>{if(!(w||!Fn))if(!Di)Tn();else{const Ie=ve.target;if(Er.has(Ie))return;const $t=setTimeout(()=>{Er.delete(Ie),Tn()},Di);Er.set(Ie,$t)}},su=ve=>{if(w||!Fn||!Di)return;const Ie=ve.target,$t=Er.get(Ie);$t&&(clearTimeout($t),Er.delete(Ie))};return{...cn,...te,...xe,href:q?.href,ref:r,onClick:_r([C,ou]),onFocus:_r([E,Ha]),onMouseEnter:_r([S,au]),onMouseLeave:_r([P,su]),onTouchStart:_r([z,iu]),disabled:!!w,target:v,...ht&&{style:ht},...A&&{className:A},...w&&Uh,...oe&&Fh,...$&&Un&&Vh}}const Ui={},zh={className:"active"},Uh={role:"link","aria-disabled":!0},Fh={"data-status":"active","aria-current":"page"},Vh={"data-transitioning":"transitioning"},Er=new WeakMap,Wh={rootMargin:"100px"},_r=t=>e=>{for(const n of t)if(n){if(e.defaultPrevented)return;n(e)}};function qh(t,e,n,r){if(!r)return e?{href:t,external:!0}:{href:n.createHref(t)||"/",external:!1}}function Hh(t){if(typeof t!="string")return!1;const e=t.charCodeAt(0);return e===47?t.charCodeAt(1)!==47:e===46}function Bh(t){return ge.forwardRef(function(n,r){return R.jsx(Da,{...n,_asChild:t,ref:r})})}const Da=ge.forwardRef((t,e)=>{const{_asChild:n,...r}=t,{type:o,...i}=Yh(r,e),a=typeof r.children=="function"?r.children({isActive:i["data-status"]==="active"}):r.children;if(!n){const{disabled:s,...c}=i;return ge.createElement("a",c,a)}return ge.createElement(n,i,a)});function Zh(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Gh(t){return R.jsx(W.Link,{component:Da,to:t.href,className:"next-btn-link",underline:"hover","aria-label":t.ariaLabel,children:t.linkText??t.children})}const Kh=Et(R.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew");function Xh(t){return R.jsxs(W.Link,{component:Da,to:t.href,target:t.target||"_blank",rel:"noreferrer",className:"next-btn-link",underline:"hover","aria-label":t.ariaLabel??t.linkText??(typeof t.children=="string"?t.children:void 0),children:[t.linkText??t.children,R.jsx(W.Icon,{sx:{fontSize:"1.1rem",mx:.75,verticalAlign:"middle",display:"inline-flex"},component:Kh})]})}function Qh(t){const{condition:e,children:n,else:r}=t;return e?typeof n=="function"?n():n:r?typeof r=="function"?r():r:null}const Jh=t=>{const e=["next-btn-link",t.className].filter(Boolean).join(" ");return R.jsx(W.Link,{...t,className:e,underline:t.underline??"hover"})},em=Bh(Jh),Us=Et(R.jsx("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Fs=Et(R.jsx("path",{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6z"}),"KeyboardArrowLeft"),Vs=Et(R.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"}),"KeyboardArrowRight"),Ws=Et(R.jsx("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function tm(t){const e=Uf(),{count:n,page:r,rowsPerPage:o,onPageChange:i}=t,a=u=>{i(u,0)},s=u=>{i(u,r-1)},c=u=>{i(u,r+1)},l=u=>{i(u,Math.max(0,Math.ceil(n/o)-1))};return R.jsxs(W.Box,{sx:{flexShrink:0,ml:2.5},children:[R.jsx(W.IconButton,{onClick:a,disabled:r===0,"aria-label":"first page",children:e.direction==="rtl"?R.jsx(Ws,{}):R.jsx(Us,{})}),R.jsx(W.IconButton,{onClick:s,disabled:r===0,"aria-label":"previous page",children:e.direction==="rtl"?R.jsx(Vs,{}):R.jsx(Fs,{})}),R.jsx(W.IconButton,{onClick:c,disabled:r>=Math.ceil(n/o)-1,"aria-label":"next page",children:e.direction==="rtl"?R.jsx(Fs,{}):R.jsx(Vs,{})}),R.jsx(W.IconButton,{onClick:l,disabled:r>=Math.ceil(n/o)-1,"aria-label":"last page",children:e.direction==="rtl"?R.jsx(Us,{}):R.jsx(Ws,{})})]})}function nm(t){const{children:e,index:n,...r}=t;return R.jsx("div",{className:"tabPanel",role:"tabpanel",id:`vertical-tabpanel-${n}`,"aria-labelledby":`vertical-tab-${n}`,...r,children:R.jsx(W.Box,{sx:{p:3},children:R.jsx(W.Typography,{component:"span",children:e})})})}function rm(t){return{id:`vertical-tab-${t}`,"aria-controls":`vertical-tabpanel-${t}`}}function om(t){return typeof t=="boolean"?t:typeof t=="string"?t.toLowerCase()==="true":!1}function im(t){return getComputedStyle(document.documentElement).getPropertyValue(t).trim()}class f extends Array{constructor(e,n){if(super(e),this.sign=n,Object.setPrototypeOf(this,f.prototype),e>f.__kMaxLength)throw new RangeError("Maximum BigInt size exceeded")}static BigInt(e){var n=Math.floor,r=Number.isFinite;if(typeof e=="number"){if(e===0)return f.__zero();if(f.__isOneDigitInt(e))return 0>e?f.__oneDigit(-e,!0):f.__oneDigit(e,!1);if(!r(e)||n(e)!==e)throw new RangeError("The number "+e+" cannot be converted to BigInt because it is not an integer");return f.__fromDouble(e)}if(typeof e=="string"){const o=f.__fromString(e);if(o===null)throw new SyntaxError("Cannot convert "+e+" to a BigInt");return o}if(typeof e=="boolean")return e===!0?f.__oneDigit(1,!1):f.__zero();if(typeof e=="object"){if(e.constructor===f)return e;const o=f.__toPrimitive(e);return f.BigInt(o)}throw new TypeError("Cannot convert "+e+" to a BigInt")}toDebugString(){const e=["BigInt["];for(const n of this)e.push((n&&(n>>>0).toString(16))+", ");return e.push("]"),e.join("")}toString(e=10){if(2>e||36<e)throw new RangeError("toString() radix argument must be between 2 and 36");return this.length===0?"0":(e&e-1)==0?f.__toStringBasePowerOfTwo(this,e):f.__toStringGeneric(this,e,!1)}valueOf(){throw new Error("Convert JSBI instances to native numbers using `toNumber`.")}static toNumber(e){const n=e.length;if(n===0)return 0;if(n===1){const v=e.__unsignedDigit(0);return e.sign?-v:v}const r=e.__digit(n-1),o=f.__clz30(r),i=30*n-o;if(1024<i)return e.sign?-1/0:1/0;let a=i-1,s=r,c=n-1;const l=o+3;let u=l===32?0:s<<l;u>>>=12;const d=l-12;let h=12<=l?0:s<<20+l,y=20+l;for(0<d&&0<c&&(c--,s=e.__digit(c),u|=s>>>30-d,h=s<<d+2,y=d+2);0<y&&0<c;)c--,s=e.__digit(c),h|=30<=y?s<<y-30:s>>>30-y,y-=30;const p=f.__decideRounding(e,y,c,s);if((p===1||p===0&&(1&h)==1)&&(h=h+1>>>0,h===0&&(u++,u>>>20!=0&&(u=0,a++,1023<a))))return e.sign?-1/0:1/0;const g=e.sign?-2147483648:0;return a=a+1023<<20,f.__kBitConversionInts[f.__kBitConversionIntHigh]=g|a|u,f.__kBitConversionInts[f.__kBitConversionIntLow]=h,f.__kBitConversionDouble[0]}static unaryMinus(e){if(e.length===0)return e;const n=e.__copy();return n.sign=!e.sign,n}static bitwiseNot(e){return e.sign?f.__absoluteSubOne(e).__trim():f.__absoluteAddOne(e,!0)}static exponentiate(e,n){if(n.sign)throw new RangeError("Exponent must be positive");if(n.length===0)return f.__oneDigit(1,!1);if(e.length===0)return e;if(e.length===1&&e.__digit(0)===1)return e.sign&&(1&n.__digit(0))==0?f.unaryMinus(e):e;if(1<n.length)throw new RangeError("BigInt too big");let r=n.__unsignedDigit(0);if(r===1)return e;if(r>=f.__kMaxLengthBits)throw new RangeError("BigInt too big");if(e.length===1&&e.__digit(0)===2){const a=1+(0|r/30),s=e.sign&&(1&r)!=0,c=new f(a,s);c.__initializeDigits();const l=1<<r%30;return c.__setDigit(a-1,l),c}let o=null,i=e;for((1&r)!=0&&(o=e),r>>=1;r!==0;r>>=1)i=f.multiply(i,i),(1&r)!=0&&(o===null?o=i:o=f.multiply(o,i));return o}static multiply(e,n){if(e.length===0)return e;if(n.length===0)return n;let r=e.length+n.length;30<=e.__clzmsd()+n.__clzmsd()&&r--;const o=new f(r,e.sign!==n.sign);o.__initializeDigits();for(let i=0;i<e.length;i++)f.__multiplyAccumulate(n,e.__digit(i),o,i);return o.__trim()}static divide(e,n){if(n.length===0)throw new RangeError("Division by zero");if(0>f.__absoluteCompare(e,n))return f.__zero();const r=e.sign!==n.sign,o=n.__unsignedDigit(0);let i;if(n.length===1&&32767>=o){if(o===1)return r===e.sign?e:f.unaryMinus(e);i=f.__absoluteDivSmall(e,o,null)}else i=f.__absoluteDivLarge(e,n,!0,!1);return i.sign=r,i.__trim()}static remainder(e,n){if(n.length===0)throw new RangeError("Division by zero");if(0>f.__absoluteCompare(e,n))return e;const r=n.__unsignedDigit(0);if(n.length===1&&32767>=r){if(r===1)return f.__zero();const i=f.__absoluteModSmall(e,r);return i===0?f.__zero():f.__oneDigit(i,e.sign)}const o=f.__absoluteDivLarge(e,n,!1,!0);return o.sign=e.sign,o.__trim()}static add(e,n){const r=e.sign;return r===n.sign?f.__absoluteAdd(e,n,r):0<=f.__absoluteCompare(e,n)?f.__absoluteSub(e,n,r):f.__absoluteSub(n,e,!r)}static subtract(e,n){const r=e.sign;return r===n.sign?0<=f.__absoluteCompare(e,n)?f.__absoluteSub(e,n,r):f.__absoluteSub(n,e,!r):f.__absoluteAdd(e,n,r)}static leftShift(e,n){return n.length===0||e.length===0?e:n.sign?f.__rightShiftByAbsolute(e,n):f.__leftShiftByAbsolute(e,n)}static signedRightShift(e,n){return n.length===0||e.length===0?e:n.sign?f.__leftShiftByAbsolute(e,n):f.__rightShiftByAbsolute(e,n)}static unsignedRightShift(){throw new TypeError("BigInts have no unsigned right shift; use >> instead")}static lessThan(e,n){return 0>f.__compareToBigInt(e,n)}static lessThanOrEqual(e,n){return 0>=f.__compareToBigInt(e,n)}static greaterThan(e,n){return 0<f.__compareToBigInt(e,n)}static greaterThanOrEqual(e,n){return 0<=f.__compareToBigInt(e,n)}static equal(e,n){if(e.sign!==n.sign||e.length!==n.length)return!1;for(let r=0;r<e.length;r++)if(e.__digit(r)!==n.__digit(r))return!1;return!0}static notEqual(e,n){return!f.equal(e,n)}static bitwiseAnd(e,n){var r=Math.max;if(!e.sign&&!n.sign)return f.__absoluteAnd(e,n).__trim();if(e.sign&&n.sign){const o=r(e.length,n.length)+1;let i=f.__absoluteSubOne(e,o);const a=f.__absoluteSubOne(n);return i=f.__absoluteOr(i,a,i),f.__absoluteAddOne(i,!0,i).__trim()}return e.sign&&([e,n]=[n,e]),f.__absoluteAndNot(e,f.__absoluteSubOne(n)).__trim()}static bitwiseXor(e,n){var r=Math.max;if(!e.sign&&!n.sign)return f.__absoluteXor(e,n).__trim();if(e.sign&&n.sign){const a=r(e.length,n.length),s=f.__absoluteSubOne(e,a),c=f.__absoluteSubOne(n);return f.__absoluteXor(s,c,s).__trim()}const o=r(e.length,n.length)+1;e.sign&&([e,n]=[n,e]);let i=f.__absoluteSubOne(n,o);return i=f.__absoluteXor(i,e,i),f.__absoluteAddOne(i,!0,i).__trim()}static bitwiseOr(e,n){var r=Math.max;const o=r(e.length,n.length);if(!e.sign&&!n.sign)return f.__absoluteOr(e,n).__trim();if(e.sign&&n.sign){let a=f.__absoluteSubOne(e,o);const s=f.__absoluteSubOne(n);return a=f.__absoluteAnd(a,s,a),f.__absoluteAddOne(a,!0,a).__trim()}e.sign&&([e,n]=[n,e]);let i=f.__absoluteSubOne(n,o);return i=f.__absoluteAndNot(i,e,i),f.__absoluteAddOne(i,!0,i).__trim()}static asIntN(e,n){var r=Math.floor;if(n.length===0)return n;if(e=r(e),0>e)throw new RangeError("Invalid value: not (convertible to) a safe integer");if(e===0)return f.__zero();if(e>=f.__kMaxLengthBits)return n;const o=0|(e+29)/30;if(n.length<o)return n;const i=n.__unsignedDigit(o-1),a=1<<(e-1)%30;if(n.length===o&&i<a)return n;if((i&a)!==a)return f.__truncateToNBits(e,n);if(!n.sign)return f.__truncateAndSubFromPowerOfTwo(e,n,!0);if((i&a-1)==0){for(let s=o-2;0<=s;s--)if(n.__digit(s)!==0)return f.__truncateAndSubFromPowerOfTwo(e,n,!1);return n.length===o&&i===a?n:f.__truncateToNBits(e,n)}return f.__truncateAndSubFromPowerOfTwo(e,n,!1)}static asUintN(e,n){var r=Math.floor;if(n.length===0)return n;if(e=r(e),0>e)throw new RangeError("Invalid value: not (convertible to) a safe integer");if(e===0)return f.__zero();if(n.sign){if(e>f.__kMaxLengthBits)throw new RangeError("BigInt too big");return f.__truncateAndSubFromPowerOfTwo(e,n,!1)}if(e>=f.__kMaxLengthBits)return n;const o=0|(e+29)/30;if(n.length<o)return n;const i=e%30;return n.length==o&&(i===0||!(n.__digit(o-1)>>>i))?n:f.__truncateToNBits(e,n)}static ADD(e,n){if(e=f.__toPrimitive(e),n=f.__toPrimitive(n),typeof e=="string")return typeof n!="string"&&(n=n.toString()),e+n;if(typeof n=="string")return e.toString()+n;if(e=f.__toNumeric(e),n=f.__toNumeric(n),f.__isBigInt(e)&&f.__isBigInt(n))return f.add(e,n);if(typeof e=="number"&&typeof n=="number")return e+n;throw new TypeError("Cannot mix BigInt and other types, use explicit conversions")}static LT(e,n){return f.__compare(e,n,0)}static LE(e,n){return f.__compare(e,n,1)}static GT(e,n){return f.__compare(e,n,2)}static GE(e,n){return f.__compare(e,n,3)}static EQ(e,n){for(;;){if(f.__isBigInt(e))return f.__isBigInt(n)?f.equal(e,n):f.EQ(n,e);if(typeof e=="number"){if(f.__isBigInt(n))return f.__equalToNumber(n,e);if(typeof n!="object")return e==n;n=f.__toPrimitive(n)}else if(typeof e=="string"){if(f.__isBigInt(n))return e=f.__fromString(e),e!==null&&f.equal(e,n);if(typeof n!="object")return e==n;n=f.__toPrimitive(n)}else if(typeof e=="boolean"){if(f.__isBigInt(n))return f.__equalToNumber(n,+e);if(typeof n!="object")return e==n;n=f.__toPrimitive(n)}else if(typeof e=="symbol"){if(f.__isBigInt(n))return!1;if(typeof n!="object")return e==n;n=f.__toPrimitive(n)}else if(typeof e=="object"){if(typeof n=="object"&&n.constructor!==f)return e==n;e=f.__toPrimitive(e)}else return e==n}}static NE(e,n){return!f.EQ(e,n)}static DataViewGetBigInt64(e,n,r=!1){return f.asIntN(64,f.DataViewGetBigUint64(e,n,r))}static DataViewGetBigUint64(e,n,r=!1){const[o,i]=r?[4,0]:[0,4],a=e.getUint32(n+o,r),s=e.getUint32(n+i,r),c=new f(3,!1);return c.__setDigit(0,1073741823&s),c.__setDigit(1,(268435455&a)<<2|s>>>30),c.__setDigit(2,a>>>28),c.__trim()}static DataViewSetBigInt64(e,n,r,o=!1){f.DataViewSetBigUint64(e,n,r,o)}static DataViewSetBigUint64(e,n,r,o=!1){r=f.asUintN(64,r);let i=0,a=0;if(0<r.length&&(a=r.__digit(0),1<r.length)){const l=r.__digit(1);a|=l<<30,i=l>>>2,2<r.length&&(i|=r.__digit(2)<<28)}const[s,c]=o?[4,0]:[0,4];e.setUint32(n+s,i,o),e.setUint32(n+c,a,o)}static __zero(){return new f(0,!1)}static __oneDigit(e,n){const r=new f(1,n);return r.__setDigit(0,e),r}__copy(){const e=new f(this.length,this.sign);for(let n=0;n<this.length;n++)e[n]=this[n];return e}__trim(){let e=this.length,n=this[e-1];for(;n===0;)e--,n=this[e-1],this.pop();return e===0&&(this.sign=!1),this}__initializeDigits(){for(let e=0;e<this.length;e++)this[e]=0}static __decideRounding(e,n,r,o){if(0<n)return-1;let i;if(0>n)i=-n-1;else{if(r===0)return-1;r--,o=e.__digit(r),i=29}let a=1<<i;if((o&a)==0)return-1;if(a-=1,(o&a)!=0)return 1;for(;0<r;)if(r--,e.__digit(r)!==0)return 1;return 0}static __fromDouble(e){f.__kBitConversionDouble[0]=e;const n=2047&f.__kBitConversionInts[f.__kBitConversionIntHigh]>>>20,r=n-1023,o=(0|r/30)+1,i=new f(o,0>e);let a=1048575&f.__kBitConversionInts[f.__kBitConversionIntHigh]|1048576,s=f.__kBitConversionInts[f.__kBitConversionIntLow];const c=20,l=r%30;let u,d=0;if(l<20){const h=c-l;d=h+32,u=a>>>h,a=a<<32-h|s>>>h,s<<=32-h}else if(l===20)d=32,u=a,a=s,s=0;else{const h=l-c;d=32-h,u=a<<h|s>>>32-h,a=s<<h,s=0}i.__setDigit(o-1,u);for(let h=o-2;0<=h;h--)0<d?(d-=30,u=a>>>2,a=a<<30|s>>>2,s<<=30):u=0,i.__setDigit(h,u);return i.__trim()}static __isWhitespace(e){return 13>=e&&9<=e||(159>=e?e==32:131071>=e?e==160||e==5760:196607>=e?(e&=131071,10>=e||e==40||e==41||e==47||e==95||e==4096):e==65279)}static __fromString(e,n=0){let r=0;const o=e.length;let i=0;if(i===o)return f.__zero();let a=e.charCodeAt(i);for(;f.__isWhitespace(a);){if(++i===o)return f.__zero();a=e.charCodeAt(i)}if(a===43){if(++i===o)return null;a=e.charCodeAt(i),r=1}else if(a===45){if(++i===o)return null;a=e.charCodeAt(i),r=-1}if(n===0){if(n=10,a===48){if(++i===o)return f.__zero();if(a=e.charCodeAt(i),a===88||a===120){if(n=16,++i===o)return null;a=e.charCodeAt(i)}else if(a===79||a===111){if(n=8,++i===o)return null;a=e.charCodeAt(i)}else if(a===66||a===98){if(n=2,++i===o)return null;a=e.charCodeAt(i)}}}else if(n===16&&a===48){if(++i===o)return f.__zero();if(a=e.charCodeAt(i),a===88||a===120){if(++i===o)return null;a=e.charCodeAt(i)}}if(r!=0&&n!==10)return null;for(;a===48;){if(++i===o)return f.__zero();a=e.charCodeAt(i)}const s=o-i;let c=f.__kMaxBitsPerChar[n],l=f.__kBitsPerCharTableMultiplier-1;if(s>1073741824/c)return null;const u=c*s+l>>>f.__kBitsPerCharTableShift,d=new f(0|(u+29)/30,!1),h=10>n?n:10,y=10<n?n-10:0;if((n&n-1)==0){c>>=f.__kBitsPerCharTableShift;const p=[],g=[];let v=!1;do{let w=0,D=0;for(;;){let O;if(a-48>>>0<h)O=a-48;else if((32|a)-97>>>0<y)O=(32|a)-87;else{v=!0;break}if(D+=c,w=w<<c|O,++i===o){v=!0;break}if(a=e.charCodeAt(i),30<D+c)break}p.push(w),g.push(D)}while(!v);f.__fillFromParts(d,p,g)}else{d.__initializeDigits();let p=!1,g=0;do{let v=0,w=1;for(;;){let O;if(a-48>>>0<h)O=a-48;else if((32|a)-97>>>0<y)O=(32|a)-87;else{p=!0;break}const C=w*n;if(1073741823<C)break;if(w=C,v=v*n+O,g++,++i===o){p=!0;break}a=e.charCodeAt(i)}l=30*f.__kBitsPerCharTableMultiplier-1;const D=0|(c*g+l>>>f.__kBitsPerCharTableShift)/30;d.__inplaceMultiplyAdd(w,v,D)}while(!p)}if(i!==o){if(!f.__isWhitespace(a))return null;for(i++;i<o;i++)if(a=e.charCodeAt(i),!f.__isWhitespace(a))return null}return d.sign=r==-1,d.__trim()}static __fillFromParts(e,n,r){let o=0,i=0,a=0;for(let s=n.length-1;0<=s;s--){const c=n[s],l=r[s];i|=c<<a,a+=l,a===30?(e.__setDigit(o++,i),a=0,i=0):30<a&&(e.__setDigit(o++,1073741823&i),a-=30,i=c>>>l-a)}if(i!==0){if(o>=e.length)throw new Error("implementation bug");e.__setDigit(o++,i)}for(;o<e.length;o++)e.__setDigit(o,0)}static __toStringBasePowerOfTwo(e,n){const r=e.length;let o=n-1;o=(85&o>>>1)+(85&o),o=(51&o>>>2)+(51&o),o=(15&o>>>4)+(15&o);const i=o,a=n-1,s=e.__digit(r-1),c=f.__clz30(s);let l=0|(30*r-c+i-1)/i;if(e.sign&&l++,268435456<l)throw new Error("string too long");const u=Array(l);let d=l-1,h=0,y=0;for(let g=0;g<r-1;g++){const v=e.__digit(g),w=(h|v<<y)&a;u[d--]=f.__kConversionChars[w];const D=i-y;for(h=v>>>D,y=30-D;y>=i;)u[d--]=f.__kConversionChars[h&a],h>>>=i,y-=i}const p=(h|s<<y)&a;for(u[d--]=f.__kConversionChars[p],h=s>>>i-y;h!==0;)u[d--]=f.__kConversionChars[h&a],h>>>=i;if(e.sign&&(u[d--]="-"),d!=-1)throw new Error("implementation bug");return u.join("")}static __toStringGeneric(e,n,r){const o=e.length;if(o===0)return"";if(o===1){let g=e.__unsignedDigit(0).toString(n);return r===!1&&e.sign&&(g="-"+g),g}const i=30*o-f.__clz30(e.__digit(o-1)),a=f.__kMaxBitsPerChar[n],s=a-1;let c=i*f.__kBitsPerCharTableMultiplier;c+=s-1,c=0|c/s;const l=c+1>>1,u=f.exponentiate(f.__oneDigit(n,!1),f.__oneDigit(l,!1));let d,h;const y=u.__unsignedDigit(0);if(u.length===1&&32767>=y){d=new f(e.length,!1),d.__initializeDigits();let g=0;for(let v=2*e.length-1;0<=v;v--){const w=g<<15|e.__halfDigit(v);d.__setHalfDigit(v,0|w/y),g=0|w%y}h=g.toString(n)}else{const g=f.__absoluteDivLarge(e,u,!0,!0);d=g.quotient;const v=g.remainder.__trim();h=f.__toStringGeneric(v,n,!0)}d.__trim();let p=f.__toStringGeneric(d,n,!0);for(;h.length<l;)h="0"+h;return r===!1&&e.sign&&(p="-"+p),p+h}static __unequalSign(e){return e?-1:1}static __absoluteGreater(e){return e?-1:1}static __absoluteLess(e){return e?1:-1}static __compareToBigInt(e,n){const r=e.sign;if(r!==n.sign)return f.__unequalSign(r);const o=f.__absoluteCompare(e,n);return 0<o?f.__absoluteGreater(r):0>o?f.__absoluteLess(r):0}static __compareToNumber(e,n){if(f.__isOneDigitInt(n)){const r=e.sign,o=0>n;if(r!==o)return f.__unequalSign(r);if(e.length===0){if(o)throw new Error("implementation bug");return n===0?0:-1}if(1<e.length)return f.__absoluteGreater(r);const i=Math.abs(n),a=e.__unsignedDigit(0);return a>i?f.__absoluteGreater(r):a<i?f.__absoluteLess(r):0}return f.__compareToDouble(e,n)}static __compareToDouble(e,n){if(n!==n)return n;if(n===1/0)return-1;if(n===-1/0)return 1;const r=e.sign;if(r!==0>n)return f.__unequalSign(r);if(n===0)throw new Error("implementation bug: should be handled elsewhere");if(e.length===0)return-1;f.__kBitConversionDouble[0]=n;const o=2047&f.__kBitConversionInts[f.__kBitConversionIntHigh]>>>20;if(o==2047)throw new Error("implementation bug: handled elsewhere");const i=o-1023;if(0>i)return f.__absoluteGreater(r);const a=e.length;let s=e.__digit(a-1);const c=f.__clz30(s),l=30*a-c,u=i+1;if(l<u)return f.__absoluteLess(r);if(l>u)return f.__absoluteGreater(r);let d=1048576|1048575&f.__kBitConversionInts[f.__kBitConversionIntHigh],h=f.__kBitConversionInts[f.__kBitConversionIntLow];const y=20,p=29-c;if(p!==(0|(l-1)%30))throw new Error("implementation bug");let g,v=0;if(20>p){const w=y-p;v=w+32,g=d>>>w,d=d<<32-w|h>>>w,h<<=32-w}else if(p===20)v=32,g=d,d=h,h=0;else{const w=p-y;v=32-w,g=d<<w|h>>>32-w,d=h<<w,h=0}if(s>>>=0,g>>>=0,s>g)return f.__absoluteGreater(r);if(s<g)return f.__absoluteLess(r);for(let w=a-2;0<=w;w--){0<v?(v-=30,g=d>>>2,d=d<<30|h>>>2,h<<=30):g=0;const D=e.__unsignedDigit(w);if(D>g)return f.__absoluteGreater(r);if(D<g)return f.__absoluteLess(r)}if(d!==0||h!==0){if(v===0)throw new Error("implementation bug");return f.__absoluteLess(r)}return 0}static __equalToNumber(e,n){var r=Math.abs;return f.__isOneDigitInt(n)?n===0?e.length===0:e.length===1&&e.sign===0>n&&e.__unsignedDigit(0)===r(n):f.__compareToDouble(e,n)===0}static __comparisonResultToBool(e,n){return n===0?0>e:n===1?0>=e:n===2?0<e:n===3?0<=e:void 0}static __compare(e,n,r){if(e=f.__toPrimitive(e),n=f.__toPrimitive(n),typeof e=="string"&&typeof n=="string")switch(r){case 0:return e<n;case 1:return e<=n;case 2:return e>n;case 3:return e>=n}if(f.__isBigInt(e)&&typeof n=="string")return n=f.__fromString(n),n!==null&&f.__comparisonResultToBool(f.__compareToBigInt(e,n),r);if(typeof e=="string"&&f.__isBigInt(n))return e=f.__fromString(e),e!==null&&f.__comparisonResultToBool(f.__compareToBigInt(e,n),r);if(e=f.__toNumeric(e),n=f.__toNumeric(n),f.__isBigInt(e)){if(f.__isBigInt(n))return f.__comparisonResultToBool(f.__compareToBigInt(e,n),r);if(typeof n!="number")throw new Error("implementation bug");return f.__comparisonResultToBool(f.__compareToNumber(e,n),r)}if(typeof e!="number")throw new Error("implementation bug");if(f.__isBigInt(n))return f.__comparisonResultToBool(f.__compareToNumber(n,e),2^r);if(typeof n!="number")throw new Error("implementation bug");return r===0?e<n:r===1?e<=n:r===2?e>n:r===3?e>=n:void 0}__clzmsd(){return f.__clz30(this.__digit(this.length-1))}static __absoluteAdd(e,n,r){if(e.length<n.length)return f.__absoluteAdd(n,e,r);if(e.length===0)return e;if(n.length===0)return e.sign===r?e:f.unaryMinus(e);let o=e.length;(e.__clzmsd()===0||n.length===e.length&&n.__clzmsd()===0)&&o++;const i=new f(o,r);let a=0,s=0;for(;s<n.length;s++){const c=e.__digit(s)+n.__digit(s)+a;a=c>>>30,i.__setDigit(s,1073741823&c)}for(;s<e.length;s++){const c=e.__digit(s)+a;a=c>>>30,i.__setDigit(s,1073741823&c)}return s<i.length&&i.__setDigit(s,a),i.__trim()}static __absoluteSub(e,n,r){if(e.length===0)return e;if(n.length===0)return e.sign===r?e:f.unaryMinus(e);const o=new f(e.length,r);let i=0,a=0;for(;a<n.length;a++){const s=e.__digit(a)-n.__digit(a)-i;i=1&s>>>30,o.__setDigit(a,1073741823&s)}for(;a<e.length;a++){const s=e.__digit(a)-i;i=1&s>>>30,o.__setDigit(a,1073741823&s)}return o.__trim()}static __absoluteAddOne(e,n,r=null){const o=e.length;r===null?r=new f(o,n):r.sign=n;let i=1;for(let a=0;a<o;a++){const s=e.__digit(a)+i;i=s>>>30,r.__setDigit(a,1073741823&s)}return i!=0&&r.__setDigitGrow(o,1),r}static __absoluteSubOne(e,n){const r=e.length;n=n||r;const o=new f(n,!1);let i=1;for(let a=0;a<r;a++){const s=e.__digit(a)-i;i=1&s>>>30,o.__setDigit(a,1073741823&s)}if(i!=0)throw new Error("implementation bug");for(let a=r;a<n;a++)o.__setDigit(a,0);return o}static __absoluteAnd(e,n,r=null){let o=e.length,i=n.length,a=i;if(o<i){a=o;const l=e,u=o;e=n,o=i,n=l,i=u}let s=a;r===null?r=new f(s,!1):s=r.length;let c=0;for(;c<a;c++)r.__setDigit(c,e.__digit(c)&n.__digit(c));for(;c<s;c++)r.__setDigit(c,0);return r}static __absoluteAndNot(e,n,r=null){const o=e.length,i=n.length;let a=i;o<i&&(a=o);let s=o;r===null?r=new f(s,!1):s=r.length;let c=0;for(;c<a;c++)r.__setDigit(c,e.__digit(c)&~n.__digit(c));for(;c<o;c++)r.__setDigit(c,e.__digit(c));for(;c<s;c++)r.__setDigit(c,0);return r}static __absoluteOr(e,n,r=null){let o=e.length,i=n.length,a=i;if(o<i){a=o;const l=e,u=o;e=n,o=i,n=l,i=u}let s=o;r===null?r=new f(s,!1):s=r.length;let c=0;for(;c<a;c++)r.__setDigit(c,e.__digit(c)|n.__digit(c));for(;c<o;c++)r.__setDigit(c,e.__digit(c));for(;c<s;c++)r.__setDigit(c,0);return r}static __absoluteXor(e,n,r=null){let o=e.length,i=n.length,a=i;if(o<i){a=o;const l=e,u=o;e=n,o=i,n=l,i=u}let s=o;r===null?r=new f(s,!1):s=r.length;let c=0;for(;c<a;c++)r.__setDigit(c,e.__digit(c)^n.__digit(c));for(;c<o;c++)r.__setDigit(c,e.__digit(c));for(;c<s;c++)r.__setDigit(c,0);return r}static __absoluteCompare(e,n){const r=e.length-n.length;if(r!=0)return r;let o=e.length-1;for(;0<=o&&e.__digit(o)===n.__digit(o);)o--;return 0>o?0:e.__unsignedDigit(o)>n.__unsignedDigit(o)?1:-1}static __multiplyAccumulate(e,n,r,o){if(n===0)return;const i=32767&n,a=n>>>15;let s=0,c=0;for(let l,u=0;u<e.length;u++,o++){l=r.__digit(o);const d=e.__digit(u),h=32767&d,y=d>>>15,p=f.__imul(h,i),g=f.__imul(h,a),v=f.__imul(y,i),w=f.__imul(y,a);l+=c+p+s,s=l>>>30,l&=1073741823,l+=((32767&g)<<15)+((32767&v)<<15),s+=l>>>30,c=w+(g>>>15)+(v>>>15),r.__setDigit(o,1073741823&l)}for(;s!=0||c!==0;o++){let l=r.__digit(o);l+=s+c,c=0,s=l>>>30,r.__setDigit(o,1073741823&l)}}static __internalMultiplyAdd(e,n,r,o,i){let a=r,s=0;for(let c=0;c<o;c++){const l=e.__digit(c),u=f.__imul(32767&l,n),d=f.__imul(l>>>15,n),h=u+((32767&d)<<15)+s+a;a=h>>>30,s=d>>>15,i.__setDigit(c,1073741823&h)}if(i.length>o)for(i.__setDigit(o++,a+s);o<i.length;)i.__setDigit(o++,0);else if(a+s!==0)throw new Error("implementation bug")}__inplaceMultiplyAdd(e,n,r){r>this.length&&(r=this.length);const o=32767&e,i=e>>>15;let a=0,s=n;for(let c=0;c<r;c++){const l=this.__digit(c),u=32767&l,d=l>>>15,h=f.__imul(u,o),y=f.__imul(u,i),p=f.__imul(d,o),g=f.__imul(d,i);let v=s+h+a;a=v>>>30,v&=1073741823,v+=((32767&y)<<15)+((32767&p)<<15),a+=v>>>30,s=g+(y>>>15)+(p>>>15),this.__setDigit(c,1073741823&v)}if(a!=0||s!==0)throw new Error("implementation bug")}static __absoluteDivSmall(e,n,r=null){r===null&&(r=new f(e.length,!1));let o=0;for(let i,a=2*e.length-1;0<=a;a-=2){i=(o<<15|e.__halfDigit(a))>>>0;const s=0|i/n;o=0|i%n,i=(o<<15|e.__halfDigit(a-1))>>>0;const c=0|i/n;o=0|i%n,r.__setDigit(a>>>1,s<<15|c)}return r}static __absoluteModSmall(e,n){let r=0;for(let o=2*e.length-1;0<=o;o--)r=0|((r<<15|e.__halfDigit(o))>>>0)%n;return r}static __absoluteDivLarge(e,n,r,o){const i=n.__halfDigitLength(),a=n.length,s=e.__halfDigitLength()-i;let c=null;r&&(c=new f(s+2>>>1,!1),c.__initializeDigits());const l=new f(i+2>>>1,!1);l.__initializeDigits();const u=f.__clz15(n.__halfDigit(i-1));0<u&&(n=f.__specialLeftShift(n,u,0));const d=f.__specialLeftShift(e,u,1),h=n.__halfDigit(i-1);let y=0;for(let p,g=s;0<=g;g--){p=32767;const v=d.__halfDigit(g+i);if(v!==h){const D=(v<<15|d.__halfDigit(g+i-1))>>>0;p=0|D/h;let O=0|D%h;const C=n.__halfDigit(i-2),E=d.__halfDigit(g+i-2);for(;f.__imul(p,C)>>>0>(O<<16|E)>>>0&&(p--,O+=h,!(32767<O)););}f.__internalMultiplyAdd(n,p,0,a,l);let w=d.__inplaceSub(l,g,i+1);w!==0&&(w=d.__inplaceAdd(n,g,i),d.__setHalfDigit(g+i,32767&d.__halfDigit(g+i)+w),p--),r&&(1&g?y=p<<15:c.__setDigit(g>>>1,y|p))}if(o)return d.__inplaceRightShift(u),r?{quotient:c,remainder:d}:d;if(r)return c;throw new Error("unreachable")}static __clz15(e){return f.__clz30(e)-15}__inplaceAdd(e,n,r){let o=0;for(let i=0;i<r;i++){const a=this.__halfDigit(n+i)+e.__halfDigit(i)+o;o=a>>>15,this.__setHalfDigit(n+i,32767&a)}return o}__inplaceSub(e,n,r){let o=0;if(1&n){n>>=1;let i=this.__digit(n),a=32767&i,s=0;for(;s<r-1>>>1;s++){const u=e.__digit(s),d=(i>>>15)-(32767&u)-o;o=1&d>>>15,this.__setDigit(n+s,(32767&d)<<15|32767&a),i=this.__digit(n+s+1),a=(32767&i)-(u>>>15)-o,o=1&a>>>15}const c=e.__digit(s),l=(i>>>15)-(32767&c)-o;if(o=1&l>>>15,this.__setDigit(n+s,(32767&l)<<15|32767&a),n+s+1>=this.length)throw new RangeError("out of bounds");(1&r)==0&&(i=this.__digit(n+s+1),a=(32767&i)-(c>>>15)-o,o=1&a>>>15,this.__setDigit(n+e.length,1073709056&i|32767&a))}else{n>>=1;let i=0;for(;i<e.length-1;i++){const u=this.__digit(n+i),d=e.__digit(i),h=(32767&u)-(32767&d)-o;o=1&h>>>15;const y=(u>>>15)-(d>>>15)-o;o=1&y>>>15,this.__setDigit(n+i,(32767&y)<<15|32767&h)}const a=this.__digit(n+i),s=e.__digit(i),c=(32767&a)-(32767&s)-o;o=1&c>>>15;let l=0;(1&r)==0&&(l=(a>>>15)-(s>>>15)-o,o=1&l>>>15),this.__setDigit(n+i,(32767&l)<<15|32767&c)}return o}__inplaceRightShift(e){if(e===0)return;let n=this.__digit(0)>>>e;const r=this.length-1;for(let o=0;o<r;o++){const i=this.__digit(o+1);this.__setDigit(o,1073741823&i<<30-e|n),n=i>>>e}this.__setDigit(r,n)}static __specialLeftShift(e,n,r){const o=e.length,i=new f(o+r,!1);if(n===0){for(let s=0;s<o;s++)i.__setDigit(s,e.__digit(s));return 0<r&&i.__setDigit(o,0),i}let a=0;for(let s=0;s<o;s++){const c=e.__digit(s);i.__setDigit(s,1073741823&c<<n|a),a=c>>>30-n}return 0<r&&i.__setDigit(o,a),i}static __leftShiftByAbsolute(e,n){const r=f.__toShiftAmount(n);if(0>r)throw new RangeError("BigInt too big");const o=0|r/30,i=r%30,a=e.length,s=i!==0&&e.__digit(a-1)>>>30-i!=0,c=a+o+(s?1:0),l=new f(c,e.sign);if(i===0){let u=0;for(;u<o;u++)l.__setDigit(u,0);for(;u<c;u++)l.__setDigit(u,e.__digit(u-o))}else{let u=0;for(let d=0;d<o;d++)l.__setDigit(d,0);for(let d=0;d<a;d++){const h=e.__digit(d);l.__setDigit(d+o,1073741823&h<<i|u),u=h>>>30-i}if(s)l.__setDigit(a+o,u);else if(u!==0)throw new Error("implementation bug")}return l.__trim()}static __rightShiftByAbsolute(e,n){const r=e.length,o=e.sign,i=f.__toShiftAmount(n);if(0>i)return f.__rightShiftByMaximum(o);const a=0|i/30,s=i%30;let c=r-a;if(0>=c)return f.__rightShiftByMaximum(o);let l=!1;if(o){if((e.__digit(a)&(1<<s)-1)!=0)l=!0;else for(let d=0;d<a;d++)if(e.__digit(d)!==0){l=!0;break}}l&&s===0&&~e.__digit(r-1)==0&&c++;let u=new f(c,o);if(s===0){u.__setDigit(c-1,0);for(let d=a;d<r;d++)u.__setDigit(d-a,e.__digit(d))}else{let d=e.__digit(a)>>>s;const h=r-a-1;for(let y=0;y<h;y++){const p=e.__digit(y+a+1);u.__setDigit(y,1073741823&p<<30-s|d),d=p>>>s}u.__setDigit(h,d)}return l&&(u=f.__absoluteAddOne(u,!0,u)),u.__trim()}static __rightShiftByMaximum(e){return e?f.__oneDigit(1,!0):f.__zero()}static __toShiftAmount(e){if(1<e.length)return-1;const n=e.__unsignedDigit(0);return n>f.__kMaxLengthBits?-1:n}static __toPrimitive(e,n="default"){if(typeof e!="object"||e.constructor===f)return e;if(typeof Symbol<"u"&&typeof Symbol.toPrimitive=="symbol"&&e[Symbol.toPrimitive]){const i=e[Symbol.toPrimitive](n);if(typeof i!="object")return i;throw new TypeError("Cannot convert object to primitive value")}const r=e.valueOf;if(r){const i=r.call(e);if(typeof i!="object")return i}const o=e.toString;if(o){const i=o.call(e);if(typeof i!="object")return i}throw new TypeError("Cannot convert object to primitive value")}static __toNumeric(e){return f.__isBigInt(e)?e:+e}static __isBigInt(e){return typeof e=="object"&&e!==null&&e.constructor===f}static __truncateToNBits(e,n){const r=0|(e+29)/30,o=new f(r,n.sign),i=r-1;for(let s=0;s<i;s++)o.__setDigit(s,n.__digit(s));let a=n.__digit(i);if(e%30!=0){const s=32-e%30;a=a<<s>>>s}return o.__setDigit(i,a),o.__trim()}static __truncateAndSubFromPowerOfTwo(e,n,r){var o=Math.min;const i=0|(e+29)/30,a=new f(i,r);let s=0;const c=i-1;let l=0;for(const y=o(c,n.length);s<y;s++){const p=0-n.__digit(s)-l;l=1&p>>>30,a.__setDigit(s,1073741823&p)}for(;s<c;s++)a.__setDigit(s,0|1073741823&-l);let u=c<n.length?n.__digit(c):0;const d=e%30;let h;if(d==0)h=0-u-l,h&=1073741823;else{const y=32-d;u=u<<y>>>y;const p=1<<32-y;h=p-u-l,h&=p-1}return a.__setDigit(c,h),a.__trim()}__digit(e){return this[e]}__unsignedDigit(e){return this[e]>>>0}__setDigit(e,n){this[e]=0|n}__setDigitGrow(e,n){this[e]=0|n}__halfDigitLength(){const e=this.length;return 32767>=this.__unsignedDigit(e-1)?2*e-1:2*e}__halfDigit(e){return 32767&this[e>>>1]>>>15*(1&e)}__setHalfDigit(e,n){const r=e>>>1,o=this.__digit(r),i=1&e?32767&o|n<<15:1073709056&o|32767&n;this.__setDigit(r,i)}static __digitPow(e,n){let r=1;for(;0<n;)1&n&&(r*=e),n>>>=1,e*=e;return r}static __detectBigEndian(){return f.__kBitConversionDouble[0]=-0,f.__kBitConversionInts[0]!==0}static __isOneDigitInt(e){return(1073741823&e)===e}}f.__kMaxLength=33554432,f.__kMaxLengthBits=f.__kMaxLength<<5,f.__kMaxBitsPerChar=[0,0,32,51,64,75,83,90,96,102,107,111,115,119,122,126,128,131,134,136,139,141,143,145,147,149,151,153,154,156,158,159,160,162,163,165,166],f.__kBitsPerCharTableShift=5,f.__kBitsPerCharTableMultiplier=1<<f.__kBitsPerCharTableShift,f.__kConversionChars=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],f.__kBitConversionBuffer=new ArrayBuffer(8),f.__kBitConversionDouble=new Float64Array(f.__kBitConversionBuffer),f.__kBitConversionInts=new Int32Array(f.__kBitConversionBuffer),f.__kBitConversionIntHigh=f.__detectBigEndian()?0:1,f.__kBitConversionIntLow=f.__detectBigEndian()?1:0,f.__clz30=Math.clz32?function(t){return Math.clz32(t)-2}:function(t){return t===0?30:0|29-(0|Math.log(t>>>0)/Math.LN2)},f.__imul=Math.imul||function(t,e){return 0|t*e};const yt=f.BigInt(0),Wr=f.BigInt(1),Oa=f.BigInt(2),am=f.BigInt(10),sm=f.BigInt(24),cm=f.BigInt(60),lm=f.BigInt(1e3),no=f.BigInt(1e6),Lr=f.BigInt(1e9),Kc=f.multiply(f.BigInt(3600),Lr),um=f.multiply(cm,Lr),pn=f.multiply(Kc,sm);function Bt(t){return typeof t=="bigint"?f.BigInt(t.toString(10)):t}function Xc(t){return f.equal(f.remainder(t,Oa),yt)}function Dn(t){return f.lessThan(t,yt)?f.unaryMinus(t):t}function Yo(t,e){return f.lessThan(t,e)?-1:f.greaterThan(t,e)?1:0}function Mr(t,e){return{quotient:f.divide(t,e),remainder:f.remainder(t,e)}}var qs,Hs;const U="slot-epochNanoSeconds",F="slot-iso-date",be="slot-iso-date-time",Te="slot-time",M="slot-calendar",Qc="slot-date-brand",Jc="slot-year-month-brand",el="slot-month-day-brand",ce="slot-time-zone",He="slot-years",Be="slot-months",st="slot-weeks",Ze="slot-days",Ge="slot-hours",Ke="slot-minutes",Xe="slot-seconds",Qe="slot-milliseconds",Je="slot-microseconds",ct="slot-nanoseconds",tl="date",nl="ym",rl="md",ol="time",il="datetime",al="instant",jn="original",Xn="timezone-canonical",Xi="timezone-original",xr="calendar-id",sl="locale",Qi="options",cl=new WeakMap,Ji=Symbol.for("@@Temporal__GetSlots");(qs=globalThis)[Ji]||(qs[Ji]=function(t){return cl.get(t)});const ui=globalThis[Ji],ea=Symbol.for("@@Temporal__CreateSlots");(Hs=globalThis)[ea]||(Hs[ea]=function(t){cl.set(t,Object.create(null))});const an=globalThis[ea];function ot(t,...e){if(!t||typeof t!="object")return!1;const n=ui(t);return!!n&&e.every((r=>r in n))}function m(t,e){const n=ui(t)?.[e];if(n===void 0)throw new TypeError(`Missing internal slot ${e}`);return n}function K(t,e,n){const r=ui(t);if(r===void 0)throw new TypeError("Missing slots for the given container");if(r[e])throw new TypeError(`${e} already has set`);r[e]=n}const ta={};function sn(t,e){Object.defineProperty(t.prototype,Symbol.toStringTag,{value:e,writable:!1,enumerable:!1,configurable:!0});const n=Object.getOwnPropertyNames(t);for(let o=0;o<n.length;o++){const i=n[o],a=Object.getOwnPropertyDescriptor(t,i);a.configurable&&a.enumerable&&(a.enumerable=!1,Object.defineProperty(t,i,a))}const r=Object.getOwnPropertyNames(t.prototype);for(let o=0;o<r.length;o++){const i=r[o],a=Object.getOwnPropertyDescriptor(t.prototype,i);a.configurable&&a.enumerable&&(a.enumerable=!1,Object.defineProperty(t.prototype,i,a))}na(e,t),na(`${e}.prototype`,t.prototype)}function na(t,e){const n=`%${t}%`;if(ta[n]!==void 0)throw new Error(`intrinsic ${t} already exists`);ta[n]=e}function je(t){return ta[t]}function Jn(t,e){let n=t;if(n===0)return{div:n,mod:n};const r=Math.sign(n);n=Math.abs(n);const o=Math.trunc(1+Math.log10(n));if(e>=o)return{div:0*r,mod:r*n};if(e===0)return{div:r*n,mod:0*r};const i=n.toPrecision(o);return{div:r*Number.parseInt(i.slice(0,o-e),10),mod:r*Number.parseInt(i.slice(o-e),10)}}function Fi(t,e,n){let r=t,o=n;if(r===0)return o;const i=Math.sign(r)||Math.sign(o);r=Math.abs(r),o=Math.abs(o);const a=r.toPrecision(Math.trunc(1+Math.log10(r)));if(o===0)return i*Number.parseInt(a+"0".repeat(e),10);const s=a+o.toPrecision(Math.trunc(1+Math.log10(o))).padStart(e,"0");return i*Number.parseInt(s,10)}function di(t,e){const n=e==="negative";switch(t){case"ceil":return n?"zero":"infinity";case"floor":return n?"infinity":"zero";case"expand":return"infinity";case"trunc":return"zero";case"halfCeil":return n?"half-zero":"half-infinity";case"halfFloor":return n?"half-infinity":"half-zero";case"halfExpand":return"half-infinity";case"halfTrunc":return"half-zero";case"halfEven":return"half-even"}}function fi(t,e,n,r,o){return o==="zero"?t:o==="infinity"?e:n<0?t:n>0?e:o==="half-zero"?t:o==="half-infinity"?e:r?t:e}class Q{constructor(e){this.totalNs=Bt(e),this.sec=f.toNumber(f.divide(this.totalNs,Lr)),this.subsec=f.toNumber(f.remainder(this.totalNs,Lr))}static validateNew(e,n){if(f.greaterThan(Dn(e),Q.MAX))throw new RangeError(`${n} of duration time units cannot exceed ${Q.MAX} s`);return new Q(e)}static fromEpochNsDiff(e,n){const r=f.subtract(Bt(e),Bt(n));return new Q(r)}static fromComponents(e,n,r,o,i,a){const s=f.add(f.add(f.add(f.add(f.add(f.BigInt(a),f.multiply(f.BigInt(i),lm)),f.multiply(f.BigInt(o),no)),f.multiply(f.BigInt(r),Lr)),f.multiply(f.BigInt(n),um)),f.multiply(f.BigInt(e),Kc));return Q.validateNew(s,"total")}abs(){return new Q(Dn(this.totalNs))}add(e){return Q.validateNew(f.add(this.totalNs,e.totalNs),"sum")}add24HourDays(e){return Q.validateNew(f.add(this.totalNs,f.multiply(f.BigInt(e),pn)),"sum")}addToEpochNs(e){return f.add(Bt(e),this.totalNs)}cmp(e){return Yo(this.totalNs,e.totalNs)}divmod(e){const{quotient:n,remainder:r}=Mr(this.totalNs,f.BigInt(e));return{quotient:f.toNumber(n),remainder:new Q(r)}}fdiv(e){const n=Bt(e),r=f.BigInt(n);let{quotient:o,remainder:i}=Mr(this.totalNs,r);const a=[];let s;const c=(f.lessThan(this.totalNs,yt)?-1:1)*Math.sign(f.toNumber(n));for(;!f.equal(i,yt)&&a.length<50;)i=f.multiply(i,am),{quotient:s,remainder:i}=Mr(i,r),a.push(Math.abs(f.toNumber(s)));return c*+(Dn(o).toString()+"."+a.join(""))}isZero(){return f.equal(this.totalNs,yt)}round(e,n){const r=Bt(e);if(f.equal(r,Wr))return this;const{quotient:o,remainder:i}=Mr(this.totalNs,r),a=f.lessThan(this.totalNs,yt)?"negative":"positive",s=f.multiply(Dn(o),r),c=f.add(s,r),l=Yo(Dn(f.multiply(i,Oa)),r),u=di(n,a),d=f.equal(Dn(this.totalNs),s)?s:fi(s,c,l,Xc(o),u),h=a==="positive"?d:f.unaryMinus(d);return Q.validateNew(h,"rounding")}sign(){return this.cmp(new Q(yt))}subtract(e){return Q.validateNew(f.subtract(this.totalNs,e.totalNs),"difference")}}Q.MAX=f.BigInt("9007199254740991999999999"),Q.ZERO=new Q(yt);const Bs=/[A-Za-z._][A-Za-z._0-9+-]*/,ro=new RegExp(`(?:${/(?:[+-](?:[01][0-9]|2[0-3])(?::?[0-5][0-9])?)/.source}|(?:${Bs.source})(?:\\/(?:${Bs.source}))*)`),ll=/(?:[+-]\d{6}|\d{4})/,zo=/(?:0[1-9]|1[0-2])/,ra=/(?:0[1-9]|[12]\d|3[01])/,dm=new RegExp(`(${ll.source})(?:-(${zo.source})-(${ra.source})|(${zo.source})(${ra.source}))`),ul=/(\d{2})(?::(\d{2})(?::(\d{2})(?:[.,](\d{1,9}))?)?|(\d{2})(?:(\d{2})(?:[.,](\d{1,9}))?)?)?/,dl=/((?:[+-])(?:[01][0-9]|2[0-3])(?::?(?:[0-5][0-9])(?::?(?:[0-5][0-9])(?:[.,](?:\d{1,9}))?)?)?)/,fl=new RegExp(`([zZ])|${dl.source}?`),ir=/\[(!)?([a-z_][a-z0-9_-]*)=([A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)\]/g,fm=new RegExp([`^${dm.source}`,`(?:(?:[tT]|\\s+)${ul.source}(?:${fl.source})?)?`,`(?:\\[!?(${ro.source})\\])?`,`((?:${ir.source})*)$`].join("")),hm=new RegExp([`^[tT]?${ul.source}`,`(?:${fl.source})?`,`(?:\\[!?${ro.source}\\])?`,`((?:${ir.source})*)$`].join("")),mm=new RegExp(`^(${ll.source})-?(${zo.source})(?:\\[!?${ro.source}\\])?((?:${ir.source})*)$`),gm=new RegExp(`^(?:--)?(${zo.source})-?(${ra.source})(?:\\[!?${ro.source}\\])?((?:${ir.source})*)$`),Vi=/(\d+)(?:[.,](\d{1,9}))?/,ym=new RegExp(`(?:${Vi.source}H)?(?:${Vi.source}M)?(?:${Vi.source}S)?`),pm=new RegExp(`^([+-])?P${/(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?/.source}(?:T(?!$)${ym.source})?$`,"i"),bn=864e5,Uo=1e6*bn,bm=6e10,hl=1e8*bn,ar=Yt(hl),qr=f.unaryMinus(ar),vm=f.add(f.subtract(qr,pn),Wr),wm=f.subtract(f.add(ar,pn),Wr),Em=146097*bn,Zs=-271821,Gs=275760,jr=Date.UTC(1847,0,1),_m=["iso8601","hebrew","islamic","islamic-umalqura","islamic-tbla","islamic-civil","islamic-rgsa","islamicc","persian","ethiopic","ethioaa","ethiopic-amete-alem","coptic","chinese","dangi","roc","indian","buddhist","japanese","gregory"],Tm=new Set(["ACT","AET","AGT","ART","AST","BET","BST","CAT","CNT","CST","CTT","EAT","ECT","IET","IST","JST","MIT","NET","NST","PLT","PNT","PRT","PST","SST","VST"]);function Ce(t){return typeof t=="object"&&t!==null||typeof t=="function"}function hi(t){if(typeof t=="bigint")throw new TypeError("Cannot convert BigInt to number");return Number(t)}function mi(t){if(typeof t=="symbol")throw new TypeError("Cannot convert a Symbol value to a String");return String(t)}function V(t){const e=hi(t);if(e===0)return 0;if(Number.isNaN(e)||e===1/0||e===-1/0)throw new RangeError("invalid number value");const n=Math.trunc(e);return n===0?0:n}function Ks(t,e){const n=V(t);if(n<=0)throw e!==void 0?new RangeError(`property '${e}' cannot be a a number less than one`):new RangeError("Cannot convert a number less than one to a positive integer");return n}function Rt(t){const e=hi(t);if(Number.isNaN(e))throw new RangeError("not a number");if(e===1/0||e===-1/0)throw new RangeError("infinity is out of range");if(!(function(n){if(typeof n!="number"||Number.isNaN(n)||n===1/0||n===-1/0)return!1;const r=Math.abs(n);return Math.floor(r)===r})(e))throw new RangeError(`unsupported fractional value ${t}`);return e===0?0:e}function Hr(t,e){return String(t).padStart(e,"0")}function $e(t){if(typeof t!="string")throw new TypeError(`expected a string, not ${String(t)}`);return t}function oa(t,e){if(Ce(t)){const n=t?.toString();if(typeof n=="string"||typeof n=="number")return n;throw new TypeError("Cannot convert object to primitive value")}return t}const ia=["era","eraYear","year","month","monthCode","day","hour","minute","second","millisecond","microsecond","nanosecond","offset","timeZone"],Cm={era:mi,eraYear:V,year:V,month:Ks,monthCode:function(t){const e=$e(oa(t));if(e.length<3||e.length>4||e[0]!=="M"||"0123456789".indexOf(e[1])===-1||"0123456789".indexOf(e[2])===-1||e[1]+e[2]==="00"&&e[3]!=="L"||e[3]!=="L"&&e[3]!==void 0)throw new RangeError(`bad month code ${e}; must match M01-M99 or M00L-M99L`);return e},day:Ks,hour:V,minute:V,second:V,millisecond:V,microsecond:V,nanosecond:V,offset:function(t){const e=$e(oa(t));return yr(e),e},timeZone:nt},Dm={hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0},sr=[["years","year","date"],["months","month","date"],["weeks","week","date"],["days","day","date"],["hours","hour","time"],["minutes","minute","time"],["seconds","second","time"],["milliseconds","millisecond","time"],["microseconds","microsecond","time"],["nanoseconds","nanosecond","time"]],Xs=Object.fromEntries(sr.map((t=>[t[0],t[1]]))),Om=Object.fromEntries(sr.map((([t,e])=>[e,t]))),Yr=sr.map((([,t])=>t)),cr={day:Uo,hour:36e11,minute:6e10,second:1e9,millisecond:1e6,microsecond:1e3,nanosecond:1},Fo=["days","hours","microseconds","milliseconds","minutes","months","nanoseconds","seconds","weeks","years"],Sm=Intl.DateTimeFormat,Qs=new Map;function ml(t){const e=Xr(t);let n=Qs.get(e);return n===void 0&&(n=new Sm("en-us",{timeZone:e,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Qs.set(e,n)),n}function Pe(t){return ot(t,U)&&!ot(t,ce,M)}function Ee(t){return ot(t,He,Be,Ze,Ge,Ke,Xe,Qe,Je,ct)}function _e(t){return ot(t,Qc)}function Se(t){return ot(t,Te)}function ye(t){return ot(t,be)}function Ne(t){return ot(t,Jc)}function mt(t){return ot(t,el)}function X(t){return ot(t,U,ce,M)}function _(t,e){if(!e(t))throw new TypeError("invalid receiver: method called with the wrong type of this-object")}function hr(t){if(ot(t,M)||ot(t,ce))throw new TypeError("with() does not support a calendar or timeZone property");if(Se(t))throw new TypeError("with() does not accept Temporal.PlainTime, use withPlainTime() instead");if(t.calendar!==void 0)throw new TypeError("with() does not support a calendar property");if(t.timeZone!==void 0)throw new TypeError("with() does not support a timeZone property")}function oo(t,e){return e==="never"||e==="auto"&&t==="iso8601"?"":`[${e==="critical"?"!":""}u-ca=${t}]`}function gi(t){let e,n,r=!1;for(ir.lastIndex=0;n=ir.exec(t);){const{1:o,2:i,3:a}=n;if(i==="u-ca"){if(e===void 0)e=a,r=o==="!";else if(o==="!"||r)throw new RangeError(`Invalid annotations in ${t}: more than one u-ca present with critical flag`)}else if(o==="!")throw new RangeError(`Unrecognized annotation: !${i}=${a}`)}return e}function Wt(t){const e=fm.exec(t);if(!e)throw new RangeError(`invalid RFC 9557 string: ${t}`);const n=gi(e[16]);let r=e[1];if(r==="-000000")throw new RangeError(`invalid RFC 9557 string: ${t}`);const o=+r,i=+(e[2]??e[4]??1),a=+(e[3]??e[5]??1),s=e[6]!==void 0,c=+(e[6]??0),l=+(e[7]??e[10]??0);let u=+(e[8]??e[11]??0);u===60&&(u=59);const d=(e[9]??e[12]??"")+"000000000",h=+d.slice(0,3),y=+d.slice(3,6),p=+d.slice(6,9);let g,v=!1;e[13]?(g=void 0,v=!0):e[14]&&(g=e[14]);const w=e[15];return ka(o,i,a,c,l,u,h,y,p),{year:o,month:i,day:a,time:s?{hour:c,minute:l,second:u,millisecond:h,microsecond:y,nanosecond:p}:"start-of-day",tzAnnotation:w,offset:g,z:v,calendar:n}}function gl(t){const e=hm.exec(t);let n,r,o,i,a,s,c;if(e){c=gi(e[10]),n=+(e[1]??0),r=+(e[2]??e[5]??0),o=+(e[3]??e[6]??0),o===60&&(o=59);const l=(e[4]??e[7]??"")+"000000000";if(i=+l.slice(0,3),a=+l.slice(3,6),s=+l.slice(6,9),e[8])throw new RangeError("Z designator not supported for PlainTime")}else{let l,u;if({time:l,z:u,calendar:c}=Wt(t),l==="start-of-day")throw new RangeError(`time is missing in string: ${t}`);if(u)throw new RangeError("Z designator not supported for PlainTime");({hour:n,minute:r,second:o,millisecond:i,microsecond:a,nanosecond:s}=l)}if(vi(n,r,o,i,a,s),/[tT ][0-9][0-9]/.test(t))return{hour:n,minute:r,second:o,millisecond:i,microsecond:a,nanosecond:s,calendar:c};try{const{month:l,day:u}=Ma(t);An(1972,l,u)}catch{try{const{year:l,month:u}=Sa(t);An(l,u,1)}catch{return{hour:n,minute:r,second:o,millisecond:i,microsecond:a,nanosecond:s,calendar:c}}}throw new RangeError(`invalid RFC 9557 time-only string ${t}; may need a T prefix`)}function Sa(t){const e=mm.exec(t);let n,r,o,i;if(e){o=gi(e[3]);let a=e[1];if(a==="-000000")throw new RangeError(`invalid RFC 9557 string: ${t}`);if(n=+a,r=+e[2],i=1,o!==void 0&&o!=="iso8601")throw new RangeError("YYYY-MM format is only valid with iso8601 calendar")}else{let a;if({year:n,month:r,calendar:o,day:i,z:a}=Wt(t),a)throw new RangeError("Z designator not supported for PlainYearMonth")}return{year:n,month:r,calendar:o,referenceISODay:i}}function Ma(t){const e=gm.exec(t);let n,r,o,i;if(e){if(o=gi(e[3]),n=+e[1],r=+e[2],o!==void 0&&o!=="iso8601")throw new RangeError("MM-DD format is only valid with iso8601 calendar")}else{let a;if({month:n,day:r,calendar:o,year:i,z:a}=Wt(t),a)throw new RangeError("Z designator not supported for PlainMonthDay")}return{month:n,day:r,calendar:o,referenceISOYear:i}}const yl=new RegExp(`^${ro.source}$`,"i"),pl=new RegExp(`^${/([+-])([01][0-9]|2[0-3])(?::?([0-5][0-9])?)?/.source}$`);function bl(t){const e=xm.test(t)?"Seconds not allowed in offset time zone":"Invalid time zone";throw new RangeError(`${e}: ${t}`)}function mn(t){return yl.test(t)||bl(t),pl.test(t)?{offsetMinutes:yr(t)/6e10}:{tzName:t}}function zr(t,e,n,r){let o=t,i=e,a=n;switch(r){case"reject":An(o,i,a);break;case"constrain":({year:o,month:i,day:a}=Pl(o,i,a))}return{year:o,month:i,day:a}}function yi(t,e,n,r,o,i,a){let s=t,c=e,l=n,u=r,d=o,h=i;switch(a){case"reject":vi(s,c,l,u,d,h);break;case"constrain":s=et(s,0,23),c=et(c,0,59),l=et(l,0,59),u=et(u,0,999),d=et(d,0,999),h=et(h,0,999)}return{hour:s,minute:c,second:l,millisecond:u,microsecond:d,nanosecond:h}}function vl(t){if(!Ce(t))throw new TypeError("invalid duration-like");const e={years:void 0,months:void 0,weeks:void 0,days:void 0,hours:void 0,minutes:void 0,seconds:void 0,milliseconds:void 0,microseconds:void 0,nanoseconds:void 0};let n=!1;for(let r=0;r<Fo.length;r++){const o=Fo[r],i=t[o];i!==void 0&&(n=!0,e[o]=Rt(i))}if(!n)throw new TypeError("invalid duration-like");return e}function ze({years:t,months:e,weeks:n,days:r},o,i,a){return{years:t,months:a??e,weeks:i??n,days:o??r}}function ie(t,e){return{isoDate:t,time:e}}function re(t){return tn(t,"overflow",["constrain","reject"],"constrain")}function Ur(t){return tn(t,"disambiguation",["compatible","earlier","later","reject"],"compatible")}function kt(t,e){return tn(t,"roundingMode",["ceil","floor","expand","trunc","halfCeil","halfFloor","halfExpand","halfTrunc","halfEven"],e)}function ko(t,e){return tn(t,"offset",["prefer","use","ignore","reject"],e)}function io(t){return tn(t,"calendarName",["auto","always","never","critical"],"auto")}function mr(t){let e=t.roundingIncrement;if(e===void 0)return 1;const n=V(e);if(n<1||n>1e9)throw new RangeError(`roundingIncrement must be at least 1 and at most 1e9, not ${e}`);return n}function gr(t,e,n){const r=n?e:e-1;if(t>r)throw new RangeError(`roundingIncrement must be at least 1 and less than ${r}, not ${t}`);if(e%t!=0)throw new RangeError(`Rounding increment must divide evenly into ${e}`)}function ao(t){const e=t.fractionalSecondDigits;if(e===void 0)return"auto";if(typeof e!="number"){if(mi(e)!=="auto")throw new RangeError(`fractionalSecondDigits must be 'auto' or 0 through 9, not ${e}`);return"auto"}const n=Math.floor(e);if(!Number.isFinite(n)||n<0||n>9)throw new RangeError(`fractionalSecondDigits must be 'auto' or 0 through 9, not ${e}`);return n}function so(t,e){switch(t){case"minute":return{precision:"minute",unit:"minute",increment:1};case"second":return{precision:0,unit:"second",increment:1};case"millisecond":return{precision:3,unit:"millisecond",increment:1};case"microsecond":return{precision:6,unit:"microsecond",increment:1};case"nanosecond":return{precision:9,unit:"nanosecond",increment:1}}switch(e){case"auto":return{precision:e,unit:"nanosecond",increment:1};case 0:return{precision:e,unit:"second",increment:1};case 1:case 2:case 3:return{precision:e,unit:"millisecond",increment:10**(3-e)};case 4:case 5:case 6:return{precision:e,unit:"microsecond",increment:10**(6-e)};case 7:case 8:case 9:return{precision:e,unit:"nanosecond",increment:10**(9-e)};default:throw new RangeError(`fractionalSecondDigits must be 'auto' or 0 through 9, not ${e}`)}}const on=Symbol("~required~");function ut(t,e,n,r,o=[]){let i=[];for(let l=0;l<sr.length;l++){const u=sr[l],d=u[1],h=u[2];n!=="datetime"&&n!==h||i.push(d)}i=i.concat(o);let a=r;a===on?a=void 0:a!==void 0&&i.push(a);let s=[];s=s.concat(i);for(let l=0;l<i.length;l++){const u=i[l],d=Om[u];d!==void 0&&s.push(d)}let c=tn(t,e,s,a);if(c===void 0&&r===on)throw new RangeError(`${e} is required`);return c&&c in Xs?Xs[c]:c}function Wi(t){const e=t.relativeTo;if(e===void 0)return{};let n,r,o,i,a,s="option",c=!1;if(Ce(e)){if(X(e))return{zonedRelativeTo:e};if(_e(e))return{plainRelativeTo:e};if(ye(e))return{plainRelativeTo:tt(m(e,be).isoDate,m(e,M))};o=ho(e);const l=wt(o,e,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond","offset","timeZone"],[]);({isoDate:n,time:r}=lo(o,l,"constrain")),{offset:a,timeZone:i}=l,a===void 0&&(s="wall")}else{let l,u,d,h,y;if({year:d,month:h,day:y,time:r,calendar:o,tzAnnotation:l,offset:a,z:u}=Wt($e(e)),l)i=nt(l),u?s="exact":a||(s="wall"),c=!0;else if(u)throw new RangeError("Z designator not supported for PlainDate relativeTo; either remove the Z or add a bracketed time zone");o||(o="iso8601"),o=it(o),n={year:d,month:h,day:y}}return i===void 0?{plainRelativeTo:tt(n,o)}:{zonedRelativeTo:Ye(Vo(n,r,s,s==="option"?yr(a):0,i,"compatible","reject",c),i,o)}}function Gt(t){return m(t,He)!==0?"year":m(t,Be)!==0?"month":m(t,st)!==0?"week":m(t,Ze)!==0?"day":m(t,Ge)!==0?"hour":m(t,Ke)!==0?"minute":m(t,Xe)!==0?"second":m(t,Qe)!==0?"millisecond":m(t,Je)!==0?"microsecond":"nanosecond"}function Jt(t,e){return Yr.indexOf(t)>Yr.indexOf(e)?e:t}function Pt(t){return t==="year"||t==="month"||t==="week"}function Kt(t){return Pt(t)||t==="day"?"date":"time"}function En(t){return je("%calendarImpl%")(t)}function co(t){return je("%calendarImpl%")(m(t,M))}function rt(t,e,n="date"){const r=Object.create(null),o=En(t).isoToDate(e,{year:!0,monthCode:!0,day:!0});return r.monthCode=o.monthCode,n!=="month-day"&&n!=="date"||(r.day=o.day),n!=="year-month"&&n!=="date"||(r.year=o.year),r}function wt(t,e,n,r,o){const i=En(t).extraFields(n),a=n.concat(r,i),s=Object.create(null);let c=!1;a.sort();for(let l=0;l<a.length;l++){const u=a[l],d=e[u];if(d!==void 0)c=!0,s[u]=(0,Cm[u])(d);else if(o!=="partial"){if(o.includes(u))throw new TypeError(`required property '${u}' missing or undefined`);s[u]=Dm[u]}}if(o==="partial"&&!c)throw new TypeError("no supported properties found");return s}function aa(t,e="complete"){const n=["hour","microsecond","millisecond","minute","nanosecond","second"];let r=!1;const o=Object.create(null);for(let i=0;i<n.length;i++){const a=n[i],s=t[a];s!==void 0?(o[a]=V(s),r=!0):e==="complete"&&(o[a]=0)}if(!r)throw new TypeError("invalid time-like");return o}function $r(t,e){if(Ce(t)){if(_e(t))return re(N(e)),tt(m(t,F),m(t,M));if(X(t)){const c=St(m(t,ce),m(t,U));return re(N(e)),tt(c.isoDate,m(t,M))}if(ye(t))return re(N(e)),tt(m(t,be).isoDate,m(t,M));const s=ho(t);return tt(vn(s,wt(s,t,["year","month","monthCode","day"],[],[]),re(N(e))),s)}let{year:n,month:r,day:o,calendar:i,z:a}=Wt($e(t));if(a)throw new RangeError("Z designator not supported for PlainDate");return i||(i="iso8601"),i=it(i),re(N(e)),tt({year:n,month:r,day:o},i)}function lo(t,e,n){return ie(vn(t,e,n),yi(e.hour,e.minute,e.second,e.millisecond,e.microsecond,e.nanosecond,n))}function Rr(t,e){let n,r,o;if(Ce(t)){if(ye(t))return re(N(e)),Tt(m(t,be),m(t,M));if(X(t)){const s=St(m(t,ce),m(t,U));return re(N(e)),Tt(s,m(t,M))}if(_e(t))return re(N(e)),Tt(ie(m(t,F),{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),m(t,M));o=ho(t);const i=wt(o,t,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond"],[]),a=re(N(e));({isoDate:n,time:r}=lo(o,i,a))}else{let i,a,s,c;if({year:a,month:s,day:c,time:r,calendar:o,z:i}=Wt($e(t)),i)throw new RangeError("Z designator not supported for PlainDateTime");r==="start-of-day"&&(r={deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),ka(a,s,c,r.hour,r.minute,r.second,r.millisecond,r.microsecond,r.nanosecond),o||(o="iso8601"),o=it(o),re(N(e)),n={year:a,month:s,day:c}}return Tt(ie(n,r),o)}function Ot(t){const e=je("%Temporal.Duration%");if(Ee(t))return new e(m(t,He),m(t,Be),m(t,st),m(t,Ze),m(t,Ge),m(t,Ke),m(t,Xe),m(t,Qe),m(t,Je),m(t,ct));if(!Ce(t))return(function(o){const{years:i,months:a,weeks:s,days:c,hours:l,minutes:u,seconds:d,milliseconds:h,microseconds:y,nanoseconds:p}=(function(g){const v=pm.exec(g);if(!v)throw new RangeError(`invalid duration: ${g}`);if(v.every(((at,cn)=>cn<2||at===void 0)))throw new RangeError(`invalid duration: ${g}`);const w=v[1]==="-"?-1:1,D=v[2]===void 0?0:V(v[2])*w,O=v[3]===void 0?0:V(v[3])*w,C=v[4]===void 0?0:V(v[4])*w,E=v[5]===void 0?0:V(v[5])*w,S=v[6]===void 0?0:V(v[6])*w,P=v[7],z=v[8],j=v[9],ae=v[10],B=v[11];let b=0,k=0,x=0;if(P!==void 0){if(z??j??ae??B)throw new RangeError("only the smallest unit can be fractional");x=3600*V((P+"000000000").slice(0,9))*w}else if(b=z===void 0?0:V(z)*w,j!==void 0){if(ae??B)throw new RangeError("only the smallest unit can be fractional");x=60*V((j+"000000000").slice(0,9))*w}else k=ae===void 0?0:V(ae)*w,B!==void 0&&(x=V((B+"000000000").slice(0,9))*w);const Y=x%1e3,Z=Math.trunc(x/1e3)%1e3,pe=Math.trunc(x/1e6)%1e3;return k+=Math.trunc(x/1e9)%60,b+=Math.trunc(x/6e10),wi(D,O,C,E,S,b,k,pe,Z,Y),{years:D,months:O,weeks:C,days:E,hours:S,minutes:b,seconds:k,milliseconds:pe,microseconds:Z,nanoseconds:Y}})(o);return new(je("%Temporal.Duration%"))(i,a,s,c,l,u,d,h,y,p)})($e(t));const n={years:0,months:0,weeks:0,days:0,hours:0,minutes:0,seconds:0,milliseconds:0,microseconds:0,nanoseconds:0};let r=vl(t);for(let o=0;o<Fo.length;o++){const i=Fo[o],a=r[i];a!==void 0&&(n[i]=a)}return new e(n.years,n.months,n.weeks,n.days,n.hours,n.minutes,n.seconds,n.milliseconds,n.microseconds,n.nanoseconds)}function kr(t){let e;if(Ce(t)){if(Pe(t)||X(t))return Lt(m(t,U));e=oa(t)}else e=t;const{year:n,month:r,day:o,time:i,offset:a,z:s}=(function(g){const v=Wt(g);if(!v.z&&!v.offset)throw new RangeError("Temporal.Instant requires a time zone offset");return v})($e(e)),{hour:c=0,minute:l=0,second:u=0,millisecond:d=0,microsecond:h=0,nanosecond:y=0}=i==="start-of-day"?{}:i,p=Kr(n,r,o,c,l,u,d,h,y-(s?0:yr(a)));return rr(p.isoDate),Lt(Le(p))}function Js(t,e){if(Ce(t)){if(mt(t))return re(N(e)),er(m(t,F),m(t,M));let s;return ot(t,M)?s=m(t,M):(s=t.calendar,s===void 0&&(s="iso8601"),s=fo(s)),er(Wo(s,wt(s,t,["year","month","monthCode","day"],[],[]),re(N(e))),s)}let{month:n,day:r,referenceISOYear:o,calendar:i}=Ma($e(t));if(i===void 0&&(i="iso8601"),i=it(i),re(N(e)),i==="iso8601")return er({year:1972,month:n,day:r},i);let a={year:o,month:n,day:r};return Yn(a),a=Wo(i,rt(i,a,"month-day"),"constrain"),er(a,i)}function fn(t,e){let n;if(Ce(t)){if(Se(t))return re(N(e)),Xt(m(t,Te));if(ye(t))return re(N(e)),Xt(m(t,be).time);if(X(t)){const l=St(m(t,ce),m(t,U));return re(N(e)),Xt(l.time)}const{hour:r,minute:o,second:i,millisecond:a,microsecond:s,nanosecond:c}=aa(t);n=yi(r,o,i,a,s,c,re(N(e)))}else n=gl($e(t)),re(N(e));return Xt(n)}function wl(t){return t===void 0?{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}:m(fn(t),Te)}function Ar(t,e){if(Ce(t)){if(Ne(t))return re(N(e)),nr(m(t,F),m(t,M));const s=ho(t);return nr(Br(s,wt(s,t,["year","month","monthCode"],[],[]),re(N(e))),s)}let{year:n,month:r,referenceISODay:o,calendar:i}=Sa($e(t));i===void 0&&(i="iso8601"),i=it(i),re(N(e));let a={year:n,month:r,day:o};return Aa(a),a=Br(i,rt(i,a,"year-month"),"constrain"),nr(a,i)}function Vo(t,e,n,r,o,i,a,s){if(e==="start-of-day")return ln(o,t);const c=ie(t,e);if(n==="wall"||a==="ignore")return Ue(o,c,i);if(n==="exact"||a==="use"){const d=Kr(t.year,t.month,t.day,e.hour,e.minute,e.second,e.millisecond,e.microsecond,e.nanosecond-r);rr(d.isoDate);const h=Le(d);return Ft(h),h}rr(t);const l=Le(c),u=Zr(o,c);for(let d=0;d<u.length;d++){const h=u[d],y=f.toNumber(f.subtract(l,h)),p=hn(y,6e10,"halfExpand");if(y===r||s&&p===r)return h}if(a==="reject"){const d=sa(r),h=Gr(c,"iso8601","auto");throw new RangeError(`Offset ${d} is invalid for ${h} in ${o}`)}return xl(u,o,c,i)}function Ir(t,e){let n,r,o,i,a,s,c,l=!1,u="option";if(Ce(t)){if(X(t)){const g=N(e);return Ur(g),ko(g,"reject"),re(g),Ye(m(t,U),m(t,ce),m(t,M))}a=ho(t);const h=wt(a,t,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond","offset","timeZone"],["timeZone"]);({offset:i,timeZone:o}=h),i===void 0&&(u="wall");const y=N(e);s=Ur(y),c=ko(y,"reject");const p=re(y);({isoDate:n,time:r}=lo(a,h,p))}else{let h,y,p,g,v;({year:p,month:g,day:v,time:r,tzAnnotation:h,offset:i,z:y,calendar:a}=(function(D){const O=Wt(D);if(!O.tzAnnotation)throw new RangeError("Temporal.ZonedDateTime requires a time zone ID in brackets");return O})($e(t))),o=nt(h),y?u="exact":i||(u="wall"),a||(a="iso8601"),a=it(a),l=!0;const w=N(e);s=Ur(w),c=ko(w,"reject"),re(w),n={year:p,month:g,day:v}}let d=0;return u==="option"&&(d=yr(i)),Ye(Vo(n,r,u,d,o,s,c,l),o,a)}function El(t,e,n){Yn(e),an(t),K(t,F,e),K(t,M,n),K(t,Qc,!0)}function tt(t,e){const n=je("%Temporal.PlainDate%"),r=Object.create(n.prototype);return El(r,t,e),r}function _l(t,e,n){In(e),an(t),K(t,be,e),K(t,M,n)}function Tt(t,e){const n=je("%Temporal.PlainDateTime%"),r=Object.create(n.prototype);return _l(r,t,e),r}function Tl(t,e,n){Yn(e),an(t),K(t,F,e),K(t,M,n),K(t,el,!0)}function er(t,e){const n=je("%Temporal.PlainMonthDay%"),r=Object.create(n.prototype);return Tl(r,t,e),r}function Cl(t,e){an(t),K(t,Te,e)}function Xt(t){const e=je("%Temporal.PlainTime%"),n=Object.create(e.prototype);return Cl(n,t),n}function Dl(t,e,n){Aa(e),an(t),K(t,F,e),K(t,M,n),K(t,Jc,!0)}function nr(t,e){const n=je("%Temporal.PlainYearMonth%"),r=Object.create(n.prototype);return Dl(r,t,e),r}function Ol(t,e){Ft(e),an(t),K(t,U,e)}function Lt(t){const e=je("%Temporal.Instant%"),n=Object.create(e.prototype);return Ol(n,t),n}function Sl(t,e,n,r){Ft(e),an(t),K(t,U,e),K(t,ce,n),K(t,M,r)}function Ye(t,e,n="iso8601"){const r=je("%Temporal.ZonedDateTime%"),o=Object.create(r.prototype);return Sl(o,t,e,n),o}function ec(t){return ia.filter((e=>t[e]!==void 0))}function kn(t,e,n){const r=ec(n),o=En(t).fieldKeysToIgnore(r),i=Object.create(null),a=ec(e);for(let s=0;s<ia.length;s++){let c;const l=ia[s];a.includes(l)&&!o.includes(l)&&(c=e[l]),r.includes(l)&&(c=n[l]),c!==void 0&&(i[l]=c)}return i}function bt(t,e,n,r){const o=En(t).dateAdd(e,n,r);return Yn(o),o}function uo(t,e,n,r){return En(t).dateUntil(e,n,r)}function fo(t){if(Ce(t)&&ot(t,M))return m(t,M);const e=$e(t);try{return it(e)}catch{}let n;try{({calendar:n}=Wt(e))}catch{try{({calendar:n}=gl(e))}catch{try{({calendar:n}=Sa(e))}catch{({calendar:n}=Ma(e))}}}return n||(n="iso8601"),it(n)}function ho(t){if(ot(t,M))return m(t,M);const{calendar:e}=t;return e===void 0?"iso8601":fo(e)}function Ut(t,e){return it(t)===it(e)}function vn(t,e,n){const r=En(t);r.resolveFields(e,"date");const o=r.dateToISO(e,n);return Yn(o),o}function Br(t,e,n){const r=En(t);r.resolveFields(e,"year-month"),e.day=1;const o=r.dateToISO(e,n);return Aa(o),o}function Wo(t,e,n){const r=En(t);r.resolveFields(e,"month-day");const o=r.monthDayToISOReferenceDate(e,n);return Yn(o),o}function nt(t){if(Ce(t)&&X(t))return m(t,ce);const e=$e(t);if(e==="UTC")return"UTC";const{tzName:n,offsetMinutes:r}=(function(i){const{tzAnnotation:a,offset:s,z:c}=(function(l){if(yl.test(l))return{tzAnnotation:l,offset:void 0,z:!1};try{const{tzAnnotation:u,offset:d,z:h}=Wt(l);if(h||u||d)return{tzAnnotation:u,offset:d,z:h}}catch{}bl(l)})(i);return a?mn(a):c?mn("UTC"):s?mn(s):void 0})(e);if(r!==void 0)return xa(r);const o=qo(n);if(!o)throw new RangeError(`Unrecognized time zone ${n}`);return o.identifier}function Ml(t,e){if(t===e)return!0;const n=mn(t).offsetMinutes,r=mn(e).offsetMinutes;if(n===void 0&&r===void 0){const o=qo(e);if(!o)return!1;const i=qo(t);return!!i&&i.primaryIdentifier===o.primaryIdentifier}return n===r}function Qt(t,e){const n=mn(t).offsetMinutes;return n!==void 0?6e10*n:ca(t,e)}function sa(t){const e=t<0?"-":"+",n=Math.abs(t),r=Math.floor(n/36e11),o=Math.floor(n/6e10)%60,i=Math.floor(n/1e9)%60,a=n%1e9;return`${e}${pi(r,o,i,a,i===0&&a===0?"minute":"auto")}`}function St(t,e){const n=Qt(t,e);let{isoDate:{year:r,month:o,day:i},time:{hour:a,minute:s,second:c,millisecond:l,microsecond:u,nanosecond:d}}=kl(e);return Kr(r,o,i,a,s,c,l,u,d+n)}function Ue(t,e,n){return xl(Zr(t,e),t,e,n)}function xl(t,e,n,r){const o=t.length;if(o===1)return t[0];if(o)switch(r){case"compatible":case"earlier":return t[0];case"later":return t[o-1];case"reject":throw new RangeError("multiple instants found")}if(r==="reject")throw new RangeError("multiple instants found");const i=Le(n),a=f.subtract(i,pn);Ft(a);const s=Qt(e,a),c=f.add(i,pn);Ft(c);const l=Qt(e,c)-s;switch(r){case"earlier":{const u=Q.fromComponents(0,0,0,0,0,-l),d=lr(n.time,u);return Zr(e,ie(dt(n.isoDate.year,n.isoDate.month,n.isoDate.day+d.deltaDays),d))[0]}case"compatible":case"later":{const u=Q.fromComponents(0,0,0,0,0,l),d=lr(n.time,u),h=Zr(e,ie(dt(n.isoDate.year,n.isoDate.month,n.isoDate.day+d.deltaDays),d));return h[h.length-1]}}}function Zr(t,e){if(t==="UTC")return rr(e.isoDate),[Le(e)];const n=mn(t).offsetMinutes;if(n!==void 0){const r=Kr(e.isoDate.year,e.isoDate.month,e.isoDate.day,e.time.hour,e.time.minute-n,e.time.second,e.time.millisecond,e.time.microsecond,e.time.nanosecond);rr(r.isoDate);const o=Le(r);return Ft(o),[o]}return rr(e.isoDate),(function(r,o){let i=Le(o),a=f.subtract(i,pn);f.lessThan(a,qr)&&(a=i);let s=f.add(i,pn);f.greaterThan(s,ar)&&(s=i);const c=ca(r,a),l=ca(r,s);return(c===l?[c]:[c,l]).map((d=>{const h=f.subtract(i,f.BigInt(d)),y=(function(p,g){const{epochMilliseconds:v,time:{millisecond:w,microsecond:D,nanosecond:O}}=kl(g),{year:C,month:E,day:S,hour:P,minute:z,second:j}=Al(p,v);return Kr(C,E,S,P,z,j,w,D,O)})(r,h);if(ur(o,y)===0)return Ft(h),h})).filter((d=>d!==void 0))})(t,e)}function ln(t,e){const n=ie(e,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),r=Zr(t,n);if(r.length)return r[0];const o=Le(n),i=f.subtract(o,pn);return Ft(i),Ra(t,i)}function mo(t){let e;return e=t<0||t>9999?(t<0?"-":"+")+Hr(Math.abs(t),6):Hr(t,4),e}function vt(t){return Hr(t,2)}function $l(t,e){let n;if(e==="auto"){if(t===0)return"";n=Hr(t,9).replace(/0+$/,"")}else{if(e===0)return"";n=Hr(t,9).slice(0,e)}return`.${n}`}function pi(t,e,n,r,o){let i=`${vt(t)}:${vt(e)}`;return o==="minute"||(i+=`:${vt(n)}`,i+=$l(r,o)),i}function tc(t,e,n){let r=e;r===void 0&&(r="UTC");const o=m(t,U),i=Gr(St(r,o),"iso8601",n,"never");let a="Z";return e!==void 0&&(a=Rl(Qt(r,o))),`${i}${a}`}function Mo(t,e){const n=m(t,He),r=m(t,Be),o=m(t,st),i=m(t,Ze),a=m(t,Ge),s=m(t,Ke),c=Bo(t);let l="";n!==0&&(l+=`${Math.abs(n)}Y`),r!==0&&(l+=`${Math.abs(r)}M`),o!==0&&(l+=`${Math.abs(o)}W`),i!==0&&(l+=`${Math.abs(i)}D`);let u="";a!==0&&(u+=`${Math.abs(a)}H`),s!==0&&(u+=`${Math.abs(s)}M`);const d=Q.fromComponents(0,0,m(t,Xe),m(t,Qe),m(t,Je),m(t,ct));d.isZero()&&!["second","millisecond","microsecond","nanosecond"].includes(Gt(t))&&e==="auto"||(u+=`${Math.abs(d.sec)}${$l(Math.abs(d.subsec),e)}S`);let h=`${c<0?"-":""}P${l}`;return u&&(h=`${h}T${u}`),h}function nc(t,e="auto"){const{year:n,month:r,day:o}=m(t,F);return`${mo(n)}-${vt(r)}-${vt(o)}${oo(m(t,M),e)}`}function rc({hour:t,minute:e,second:n,millisecond:r,microsecond:o,nanosecond:i},a){return pi(t,e,n,1e6*r+1e3*o+i,a)}function Gr(t,e,n,r="auto"){const{isoDate:{year:o,month:i,day:a},time:{hour:s,minute:c,second:l,millisecond:u,microsecond:d,nanosecond:h}}=t;return`${mo(o)}-${vt(i)}-${vt(a)}T${pi(s,c,l,1e6*u+1e3*d+h,n)}${oo(e,r)}`}function oc(t,e="auto"){const{year:n,month:r,day:o}=m(t,F);let i=`${vt(r)}-${vt(o)}`;const a=m(t,M);e!=="always"&&e!=="critical"&&a==="iso8601"||(i=`${mo(n)}-${i}`);const s=oo(a,e);return s&&(i+=s),i}function ic(t,e="auto"){const{year:n,month:r,day:o}=m(t,F);let i=`${mo(n)}-${vt(r)}`;const a=m(t,M);e!=="always"&&e!=="critical"&&a==="iso8601"||(i+=`-${vt(o)}`);const s=oo(a,e);return s&&(i+=s),i}function ac(t,e,n="auto",r="auto",o="auto",i=void 0){let a=m(t,U);if(i){const{unit:u,increment:d,roundingMode:h}=i;a=fa(a,d,u,h)}const s=m(t,ce),c=Qt(s,a);let l=Gr(St(s,a),"iso8601",e,"never");return o!=="never"&&(l+=Rl(c)),r!=="never"&&(l+=`[${r==="critical"?"!":""}${s}]`),l+=oo(m(t,M),n),l}function sc(t){return pl.test(t)}function yr(t){const e=$m.exec(t);if(!e)throw new RangeError(`invalid time zone offset: ${t}; must match ±HH:MM[:SS.SSSSSSSSS]`);return(e[1]==="-"?-1:1)*(1e9*(60*(60*+e[2]+ +(e[3]||0))+ +(e[4]||0))+ +((e[5]||0)+"000000000").slice(0,9))}let Tr;const Mm=Object.assign(Object.create(null),{"/":!0,"-":!0,_:!0});function qo(t){if(Tr===void 0){const i=Intl.supportedValuesOf?.("timeZone");if(i){Tr=new Map;for(let a=0;a<i.length;a++){const s=i[a];Tr.set(Xr(s),s)}}else Tr=null}const e=Xr(t);let n=Tr?.get(e);if(n)return{identifier:n,primaryIdentifier:n};try{n=ml(t).resolvedOptions().timeZone}catch{return}if(e==="antarctica/south_pole"&&(n="Antarctica/McMurdo"),Tm.has(t))throw new RangeError(`${t} is a legacy time zone identifier from ICU. Use ${n} instead`);const r=[...e].map(((i,a)=>a===0||Mm[e[a-1]]?i.toUpperCase():i)).join("").split("/");if(r.length===1)return e==="gb-eire"?{identifier:"GB-Eire",primaryIdentifier:n}:{identifier:e.length<=3||/[-0-9]/.test(e)?e.toUpperCase():r[0],primaryIdentifier:n};if(r[0]==="Etc")return{identifier:`Etc/${["Zulu","Greenwich","Universal"].includes(r[1])?r[1]:r[1].toUpperCase()}`,primaryIdentifier:n};if(r[0]==="Us")return{identifier:`US/${r[1]}`,primaryIdentifier:n};const o=new Map([["Act","ACT"],["Lhi","LHI"],["Nsw","NSW"],["Dar_Es_Salaam","Dar_es_Salaam"],["Port_Of_Spain","Port_of_Spain"],["Port-Au-Prince","Port-au-Prince"],["Isle_Of_Man","Isle_of_Man"],["Comodrivadavia","ComodRivadavia"],["Knox_In","Knox_IN"],["Dumontdurville","DumontDUrville"],["Mcmurdo","McMurdo"],["Denoronha","DeNoronha"],["Easterisland","EasterIsland"],["Bajanorte","BajaNorte"],["Bajasur","BajaSur"]]);return r[1]=o.get(r[1])??r[1],r.length>2&&(r[2]=o.get(r[2])??r[2]),{identifier:r.join("/"),primaryIdentifier:n}}function xn(t,e){const{year:n,month:r,day:o,hour:i,minute:a,second:s}=Al(t,e);let c=e%1e3;return c<0&&(c+=1e3),1e6*($a({isoDate:{year:n,month:r,day:o},time:{hour:i,minute:a,second:s,millisecond:c}})-e)}function ca(t,e){return xn(t,Mt(e,"floor"))}function xa(t){const e=t<0?"-":"+",n=Math.abs(t);return`${e}${pi(Math.floor(n/60),n%60,0,0,"minute")}`}function Rl(t){return xa(hn(t,bm,"halfExpand")/6e10)}function $a({isoDate:{year:t,month:e,day:n},time:{hour:r,minute:o,second:i,millisecond:a}}){const s=t%400,c=(t-s)/400,l=new Date;return l.setUTCHours(r,o,i,a),l.setUTCFullYear(s,e-1,n),l.getTime()+Em*c}function Le(t){const e=$a(t),n=1e3*t.time.microsecond+t.time.nanosecond;return f.add(Yt(e),f.BigInt(n))}function kl(t){let e=Mt(t,"trunc"),n=f.toNumber(f.remainder(t,no));n<0&&(n+=1e6,e-=1);const r=Math.floor(n/1e3)%1e3,o=n%1e3,i=new Date(e);return{epochMilliseconds:e,isoDate:{year:i.getUTCFullYear(),month:i.getUTCMonth()+1,day:i.getUTCDate()},time:{hour:i.getUTCHours(),minute:i.getUTCMinutes(),second:i.getUTCSeconds(),millisecond:i.getUTCMilliseconds(),microsecond:r,nanosecond:o}}}function Ra(t,e){if(t==="UTC")return null;const n=Mt(e,"floor");if(n<jr)return Ra(t,Yt(jr));const r=Date.now(),o=Math.max(n,r)+366*bn*3;let i=n,a=xn(t,i),s=i,c=a;for(;a===c&&i<o;){if(s=i+2*bn*7,s>hl)return null;c=xn(t,s),a===c&&(i=s)}return a===c?null:Yt(Vl((l=>xn(t,l)),i,s,a,c))}function la(t,e){if(t==="UTC")return null;const n=Mt(e,"ceil"),r=Date.now(),o=r+366*bn*3;if(n>o){const l=la(t,Yt(o));if(l===null||f.lessThan(l,Yt(r)))return l}if(t==="Africa/Casablanca"||t==="Africa/El_Aaiun"){const l=Date.UTC(2088,0,1);if(l<n)return la(t,Yt(l))}let i=n-1;if(i<jr)return null;let a=xn(t,i),s=i,c=a;for(;a===c&&i>jr;){if(s=i-2*bn*7,s<jr)return null;c=xn(t,s),a===c&&(i=s)}return a===c?null:Yt(Vl((l=>xn(t,l)),s,i,c,a))}function Al(t,e){return(function(n){const r=n.split(/[^\w]+/);if(r.length!==7)throw new RangeError(`expected 7 parts in "${n}`);const o=+r[0],i=+r[1];let a=+r[2];const s=r[3];if(s[0]==="b"||s[0]==="B")a=1-a;else if(s[0]!=="a"&&s[0]!=="A")throw new RangeError(`Unknown era ${s} in "${n}`);const c=r[4]==="24"?0:+r[4],l=+r[5],u=+r[6];if(!(Number.isFinite(a)&&Number.isFinite(o)&&Number.isFinite(i)&&Number.isFinite(c)&&Number.isFinite(l)&&Number.isFinite(u)))throw new RangeError(`Invalid number in "${n}`);return{year:a,month:o,day:i,hour:c,minute:l,second:u}})(ml(t).format(e))}function Ho(t){return t!==void 0&&!(t%4!=0||t%100==0&&t%400!=0)}function $n(t,e){return{standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]}[Ho(t)?"leapyear":"standard"][e-1]}function Bo(t){const e=[m(t,He),m(t,Be),m(t,st),m(t,Ze),m(t,Ge),m(t,Ke),m(t,Xe),m(t,Qe),m(t,Je),m(t,ct)];for(let n=0;n<e.length;n++){const r=e[n];if(r!==0)return r<0?-1:1}return 0}function bi(t){const e=["years","months","weeks","days"];for(let n=0;n<e.length;n++){const r=t[e[n]];if(r!==0)return r<0?-1:1}return 0}function Il(t){const e=bi(t.date);return e!==0?e:t.time.sign()}function Sn(t,e){let n=t,r=e;if(!Number.isFinite(n)||!Number.isFinite(r))throw new RangeError("infinity is out of range");return r-=1,n+=Math.floor(r/12),r%=12,r<0&&(r+=12),r+=1,{year:n,month:r}}function dt(t,e,n){let r=t,o=e,i=n;if(!Number.isFinite(i))throw new RangeError("infinity is out of range");({year:r,month:o}=Sn(r,o));const a=146097;if(Math.abs(i)>a){const l=Math.trunc(i/a);r+=400*l,i-=l*a}let s=0,c=o>2?r:r-1;for(;s=Ho(c)?366:365,i<-s;)r-=1,c-=1,i+=s;for(c+=1;s=Ho(c)?366:365,i>s;)r+=1,c+=1,i-=s;for(;i<1;)({year:r,month:o}=Sn(r,o-1)),i+=$n(r,o);for(;i>$n(r,o);)i-=$n(r,o),{year:r,month:o}=Sn(r,o+1);return{year:r,month:o,day:i}}function Kr(t,e,n,r,o,i,a,s,c){const l=un(r,o,i,a,s,c);return ie(dt(t,e,n+l.deltaDays),l)}function un(t,e,n,r,o,i){let a,s=t,c=e,l=n,u=r,d=o,h=i;({div:a,mod:h}=Jn(h,3)),d+=a,h<0&&(d-=1,h+=1e3),{div:a,mod:d}=Jn(d,3),u+=a,d<0&&(u-=1,d+=1e3),l+=Math.trunc(u/1e3),u%=1e3,u<0&&(l-=1,u+=1e3),c+=Math.trunc(l/60),l%=60,l<0&&(c-=1,l+=60),s+=Math.trunc(c/60),c%=60,c<0&&(s-=1,c+=60);let y=Math.trunc(s/24);return s%=24,s<0&&(y-=1,s+=24),y+=0,s+=0,c+=0,l+=0,u+=0,d+=0,h+=0,{deltaDays:y,hour:s,minute:c,second:l,millisecond:u,microsecond:d,nanosecond:h}}function cc(t,e){const n=ze(t,0);if(bi(n)===0)return t.days;const r=m(e,F),o=bt(m(e,M),r,n,"constrain"),i=Pn(r.year,r.month-1,r.day),a=Pn(o.year,o.month-1,o.day)-i;return t.days+a}function ft(t){return new(je("%Temporal.Duration%"))(-m(t,He),-m(t,Be),-m(t,st),-m(t,Ze),-m(t,Ge),-m(t,Ke),-m(t,Xe),-m(t,Qe),-m(t,Je),-m(t,ct))}function et(t,e,n){return Math.min(n,Math.max(e,t))}function Pl(t,e,n){const r=et(e,1,12);return{year:t,month:r,day:et(n,1,$n(t,r))}}function ke(t,e,n){if(t<e||t>n)throw new RangeError(`value out of range: ${e} <= ${t} <= ${n}`)}function An(t,e,n){ke(e,1,12),ke(n,1,$n(t,e))}function Yn(t){In(ie(t,{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}))}function vi(t,e,n,r,o,i){ke(t,0,23),ke(e,0,59),ke(n,0,59),ke(r,0,999),ke(o,0,999),ke(i,0,999)}function ka(t,e,n,r,o,i,a,s,c){An(t,e,n),vi(r,o,i,a,s,c)}function In(t){const e=Le(t);(f.lessThan(e,vm)||f.greaterThan(e,wm))&&Ft(e)}function ua(t){Le(t)}function Ft(t){if(f.lessThan(t,qr)||f.greaterThan(t,ar))throw new RangeError("date/time value is outside of supported range")}function Aa({year:t,month:e}){ke(t,Zs,Gs),t===Zs?ke(e,4,12):t===Gs&&ke(e,1,9)}function wi(t,e,n,r,o,i,a,s,c,l){let u=0;const d=[t,e,n,r,o,i,a,s,c,l];for(let w=0;w<d.length;w++){const D=d[w];if(D===1/0||D===-1/0)throw new RangeError("infinite values not allowed as duration fields");if(D!==0){const O=D<0?-1:1;if(u!==0&&O!==u)throw new RangeError("mixed-sign values not allowed as duration fields");u=O}}if(Math.abs(t)>=2**32||Math.abs(e)>=2**32||Math.abs(n)>=2**32)throw new RangeError("years, months, and weeks must be < 2³²");const h=Jn(s,3),y=Jn(c,6),p=Jn(l,9),g=Jn(1e6*h.mod+1e3*y.mod+p.mod,9).div,v=86400*r+3600*o+60*i+a+h.div+y.div+p.div+g;if(!Number.isSafeInteger(v))throw new RangeError("total of duration time units cannot exceed 9007199254740991.999999999 s")}function Qn(t){return{date:{years:m(t,He),months:m(t,Be),weeks:m(t,st),days:m(t,Ze)},time:Q.fromComponents(m(t,Ge),m(t,Ke),m(t,Xe),m(t,Qe),m(t,Je),m(t,ct))}}function jt(t){const e=Q.fromComponents(m(t,Ge),m(t,Ke),m(t,Xe),m(t,Qe),m(t,Je),m(t,ct)).add24HourDays(m(t,Ze));return{date:{years:m(t,He),months:m(t,Be),weeks:m(t,st),days:0},time:e}}function Nl(t){const e=jt(t),n=Math.trunc(e.time.sec/86400);return wi(e.date.years,e.date.months,e.date.weeks,n,0,0,0,0,0,0),{...e.date,days:n}}function Ct(t,e){const n=t.time.sign();let r=t.time.abs().subsec,o=0,i=0,a=t.time.abs().sec,s=0,c=0,l=0;switch(e){case"year":case"month":case"week":case"day":o=Math.trunc(r/1e3),r%=1e3,i=Math.trunc(o/1e3),o%=1e3,a+=Math.trunc(i/1e3),i%=1e3,s=Math.trunc(a/60),a%=60,c=Math.trunc(s/60),s%=60,l=Math.trunc(c/24),c%=24;break;case"hour":o=Math.trunc(r/1e3),r%=1e3,i=Math.trunc(o/1e3),o%=1e3,a+=Math.trunc(i/1e3),i%=1e3,s=Math.trunc(a/60),a%=60,c=Math.trunc(s/60),s%=60;break;case"minute":o=Math.trunc(r/1e3),r%=1e3,i=Math.trunc(o/1e3),o%=1e3,a+=Math.trunc(i/1e3),i%=1e3,s=Math.trunc(a/60),a%=60;break;case"second":o=Math.trunc(r/1e3),r%=1e3,i=Math.trunc(o/1e3),o%=1e3,a+=Math.trunc(i/1e3),i%=1e3;break;case"millisecond":o=Math.trunc(r/1e3),r%=1e3,i=Fi(a,3,Math.trunc(o/1e3)),o%=1e3,a=0;break;case"microsecond":o=Fi(a,6,Math.trunc(r/1e3)),r%=1e3,a=0;break;case"nanosecond":r=Fi(a,9,r),a=0}return new(je("%Temporal.Duration%"))(t.date.years,t.date.months,t.date.weeks,t.date.days+n*l,n*c,n*s,n*a,n*i,n*o,n*r)}function en(t,e){return bi(t),e.sign(),{date:t,time:e}}function Pn(t,e,n){return $a({isoDate:{year:t,month:e+1,day:n},time:{hour:0,minute:0,second:0,millisecond:0}})/bn}function rr({year:t,month:e,day:n}){if(Math.abs(Pn(t,e-1,n))>1e8)throw new RangeError("date/time value is outside the supported range")}function Ia(t,e){const n=e.hour-t.hour,r=e.minute-t.minute,o=e.second-t.second,i=e.millisecond-t.millisecond,a=e.microsecond-t.microsecond,s=e.nanosecond-t.nanosecond;return Q.fromComponents(n,r,o,i,a,s)}function Pa(t,e,n,r,o){let i=Q.fromEpochNsDiff(e,t);return i=Zo(i,n,r,o),en({years:0,months:0,weeks:0,days:0},i)}function Ll(t,e,n,r){ua(t),ua(e);let o=Ia(t.time,e.time);const i=o.sign(),a=Vt(t.isoDate,e.isoDate);let s=e.isoDate;a===i&&(s=dt(s.year,s.month,s.day+i),o=o.add24HourDays(-i));const c=Jt("day",r),l=uo(n,t.isoDate,s,c);return r!==c&&(o=o.add24HourDays(l.days),l.days=0),en(l,o)}function jl(t,e,n,r,o){const i=f.subtract(e,t);if(f.equal(i,yt))return{date:{years:0,months:0,weeks:0,days:0},time:Q.ZERO};const a=f.lessThan(i,yt)?-1:1,s=St(n,t),c=St(n,e);let l,u=0,d=a===1?2:1,h=Ia(s.time,c.time);for(h.sign()===-a&&u++;u<=d;u++){l=ie(dt(c.isoDate.year,c.isoDate.month,c.isoDate.day-u*a),s.time);const p=Ue(n,l,"compatible");if(h=Q.fromEpochNsDiff(e,p),h.sign()!==-a)break}const y=Jt("day",o);return en(uo(r,s.isoDate,l.isoDate,y),h)}function Yl(t,e,n,r,o,i,a,s,c){let l,u,d,h,y=e;switch(s){case"year":{const b=hn(y.date.years,a,"trunc");l=b,u=b+a*t,d={years:l,months:0,weeks:0,days:0},h={...d,years:u};break}case"month":{const b=hn(y.date.months,a,"trunc");l=b,u=b+a*t,d=ze(y.date,0,0,l),h=ze(y.date,0,0,u);break}case"week":{const b=ze(y.date,0,0),k=bt(i,r.isoDate,b,"constrain"),x=uo(i,k,dt(k.year,k.month,k.day+y.date.days),"week"),Y=hn(y.date.weeks+x.weeks,a,"trunc");l=Y,u=Y+a*t,d=ze(y.date,0,l),h=ze(y.date,0,u);break}case"day":{const b=hn(y.date.days,a,"trunc");l=b,u=b+a*t,d=ze(y.date,l),h=ze(y.date,u);break}}const p=bt(i,r.isoDate,d,"constrain"),g=bt(i,r.isoDate,h,"constrain");let v,w;const D=ie(p,r.time),O=ie(g,r.time);o?(v=Ue(o,D,"compatible"),w=Ue(o,O,"compatible")):(v=Le(D),w=Le(O));const C=Q.fromEpochNsDiff(n,v),E=Q.fromEpochNsDiff(w,v),S=di(c,t<0?"negative":"positive"),P=C.add(C).abs().subtract(E.abs()).sign(),z=Math.abs(l)/a%2==0,j=C.isZero()?Math.abs(l):C.cmp(E)?fi(Math.abs(l),Math.abs(u),P,z,S):Math.abs(u),ae=new Q(f.add(f.multiply(E.totalNs,f.BigInt(l)),f.multiply(C.totalNs,f.BigInt(a*t)))).fdiv(E.totalNs),B=j===Math.abs(u);return y={date:B?h:d,time:Q.ZERO},{nudgeResult:{duration:y,nudgedEpochNs:B?w:v,didExpandCalendarUnit:B},total:ae}}function Ei(t,e,n,r,o,i,a,s,c){let l=t;const u=Pt(s)||r&&s==="day",d=Il(l)<0?-1:1;let h;return u?{nudgeResult:h}=Yl(d,l,e,n,r,o,a,s,c):h=r?(function(y,p,g,v,w,D,O,C){let E=p;const S=bt(w,g.isoDate,E.date,"constrain"),P=ie(S,g.time),z=ie(dt(S.year,S.month,S.day+y),g.time),j=Ue(v,P,"compatible"),ae=Ue(v,z,"compatible"),B=Q.fromEpochNsDiff(ae,j);if(B.sign()!==y)throw new RangeError("time zone returned inconsistent Instants");const b=f.BigInt(cr[O]*D);let k=E.time.round(b,C);const x=k.subtract(B),Y=x.sign()!==-y;let Z,pe;return Y?(Z=y,k=x.round(b,C),pe=k.addToEpochNs(ae)):(Z=0,pe=k.addToEpochNs(j)),{duration:en(ze(E.date,E.date.days+Z),k),nudgedEpochNs:pe,didExpandCalendarUnit:Y}})(d,l,n,r,o,a,s,c):(function(y,p,g,v,w,D){let O=y;const C=O.time.add24HourDays(O.date.days),E=C.round(f.BigInt(v*cr[w]),D),S=E.subtract(C),{quotient:P}=C.divmod(Uo),{quotient:z}=E.divmod(Uo),j=Math.sign(z-P)===C.sign(),ae=S.addToEpochNs(p);let B=0,b=E;return Kt(g)==="date"&&(B=z,b=E.add(Q.fromComponents(24*-z,0,0,0,0,0))),{duration:{date:ze(O.date,B),time:b},nudgedEpochNs:ae,didExpandCalendarUnit:j}})(l,e,i,a,s,c),l=h.duration,h.didExpandCalendarUnit&&s!=="week"&&(l=(function(y,p,g,v,w,D,O,C){let E=p;if(C===O)return E;const S=Yr.indexOf(O);for(let P=Yr.indexOf(C)-1;P>=S;P--){const z=Yr[P];if(z==="week"&&O!=="week")continue;let j;switch(z){case"year":j={years:E.date.years+y,months:0,weeks:0,days:0};break;case"month":{const b=E.date.months+y;j=ze(E.date,0,0,b);break}case"week":{const b=E.date.weeks+y;j=ze(E.date,0,b);break}}const ae=ie(bt(D,v.isoDate,j,"constrain"),v.time);let B;if(B=w?Ue(w,ae,"compatible"):Le(ae),Yo(g,B)===-y)break;E={date:j,time:Q.ZERO}}return E})(d,l,h.nudgedEpochNs,n,r,o,i,Jt(s,"day"))),l}function lc(t,e,n,r,o,i){return Pt(i)||r&&i==="day"?Yl(Il(t)<0?-1:1,t,e,n,r,o,1,i,"trunc").total:Fr(t.time.add24HourDays(t.date.days),i)}function zl(t,e,n,r,o,i,a){if(ur(t,e)==0)return{date:{years:0,months:0,weeks:0,days:0},time:Q.ZERO};In(t),In(e);const s=Ll(t,e,n,r);return i==="nanosecond"&&o===1?s:Ei(s,Le(e),t,null,n,r,o,i,a)}function Ul(t,e,n,r,o,i,a,s){if(Kt(o)==="time")return Pa(t,e,i,a,s);const c=jl(t,e,n,r,o);return a==="nanosecond"&&i===1?c:Ei(c,e,St(n,t),n,r,o,i,a,s)}function pr(t,e,n,r,o,i){const a=sr.reduce(((y,p)=>{const g=p[0],v=p[1],w=p[2];return n!=="datetime"&&w!==n||r.includes(v)||y.push(v,g),y}),[]);let s=ut(e,"largestUnit",n,"auto");if(r.includes(s))throw new RangeError(`largestUnit must be one of ${a.join(", ")}, not ${s}`);const c=mr(e);let l=kt(e,"trunc");t==="since"&&(l=(function(y){switch(y){case"ceil":return"floor";case"floor":return"ceil";case"halfCeil":return"halfFloor";case"halfFloor":return"halfCeil";default:return y}})(l));const u=ut(e,"smallestUnit",n,o);if(r.includes(u))throw new RangeError(`smallestUnit must be one of ${a.join(", ")}, not ${u}`);const d=Jt(i,u);if(s==="auto"&&(s=d),Jt(s,u)!==s)throw new RangeError(`largestUnit ${s} cannot be smaller than smallestUnit ${u}`);const h={hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[u];return h!==void 0&&gr(c,h,!1),{largestUnit:s,roundingIncrement:c,roundingMode:l,smallestUnit:u}}function uc(t,e,n,r){const o=kr(n),i=pr(t,N(r),"time",[],"nanosecond","second");let a=Ct(Pa(m(e,U),m(o,U),i.roundingIncrement,i.smallestUnit,i.roundingMode),i.largestUnit);return t==="since"&&(a=ft(a)),a}function dc(t,e,n,r){const o=$r(n),i=m(e,M),a=m(o,M);if(!Ut(i,a))throw new RangeError(`cannot compute difference between dates of ${i} and ${a} calendars`);const s=pr(t,N(r),"date",[],"day","day"),c=je("%Temporal.Duration%"),l=m(e,F),u=m(o,F);if(Vt(l,u)===0)return new c;let d={date:uo(i,l,u,s.largestUnit),time:Q.ZERO};if(s.smallestUnit!=="day"||s.roundingIncrement!==1){const y=ie(l,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});d=Ei(d,Le(ie(u,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0})),y,null,i,s.largestUnit,s.roundingIncrement,s.smallestUnit,s.roundingMode)}let h=Ct(d,"day");return t==="since"&&(h=ft(h)),h}function fc(t,e,n,r){const o=Rr(n),i=m(e,M),a=m(o,M);if(!Ut(i,a))throw new RangeError(`cannot compute difference between dates of ${i} and ${a} calendars`);const s=pr(t,N(r),"datetime",[],"nanosecond","day"),c=je("%Temporal.Duration%"),l=m(e,be),u=m(o,be);if(ur(l,u)===0)return new c;let d=Ct(zl(l,u,i,s.largestUnit,s.roundingIncrement,s.smallestUnit,s.roundingMode),s.largestUnit);return t==="since"&&(d=ft(d)),d}function hc(t,e,n,r){const o=fn(n),i=pr(t,N(r),"time",[],"nanosecond","hour");let a=Ia(m(e,Te),m(o,Te));a=Zo(a,i.roundingIncrement,i.smallestUnit,i.roundingMode);let s=Ct(en({years:0,months:0,weeks:0,days:0},a),i.largestUnit);return t==="since"&&(s=ft(s)),s}function mc(t,e,n,r){const o=Ar(n),i=m(e,M),a=m(o,M);if(!Ut(i,a))throw new RangeError(`cannot compute difference between months of ${i} and ${a} calendars`);const s=pr(t,N(r),"date",["week","day"],"month","year"),c=je("%Temporal.Duration%");if(Vt(m(e,F),m(o,F))==0)return new c;const l=rt(i,m(e,F),"year-month");l.day=1;const u=vn(i,l,"constrain"),d=rt(i,m(o,F),"year-month");d.day=1;const h=vn(i,d,"constrain");let y={date:ze(uo(i,u,h,s.largestUnit),0,0),time:Q.ZERO};if(s.smallestUnit!=="month"||s.roundingIncrement!==1){const g=ie(u,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});y=Ei(y,Le(ie(h,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0})),g,null,i,s.largestUnit,s.roundingIncrement,s.smallestUnit,s.roundingMode)}let p=Ct(y,"day");return t==="since"&&(p=ft(p)),p}function gc(t,e,n,r){const o=Ir(n),i=m(e,M),a=m(o,M);if(!Ut(i,a))throw new RangeError(`cannot compute difference between dates of ${i} and ${a} calendars`);const s=pr(t,N(r),"datetime",[],"nanosecond","hour"),c=m(e,U),l=m(o,U),u=je("%Temporal.Duration%");let d;if(Kt(s.largestUnit)!=="date")d=Ct(Pa(c,l,s.roundingIncrement,s.smallestUnit,s.roundingMode),s.largestUnit);else{const h=m(e,ce);if(!Ml(h,m(o,ce)))throw new RangeError("When calculating difference between time zones, largestUnit must be 'hours' or smaller because day lengths can vary between time zones due to DST or time zone offset changes.");if(f.equal(c,l))return new u;d=Ct(Ul(c,l,h,i,s.largestUnit,s.roundingIncrement,s.smallestUnit,s.roundingMode),"hour")}return t==="since"&&(d=ft(d)),d}function lr({hour:t,minute:e,second:n,millisecond:r,microsecond:o,nanosecond:i},a){let s=n,c=i;return s+=a.sec,c+=a.subsec,un(t,e,s,r,o,c)}function da(t,e){const n=e.addToEpochNs(t);return Ft(n),n}function Pr(t,e,n,r,o="constrain"){if(bi(r.date)===0)return da(t,r.time);const i=St(e,t);return da(Ue(e,ie(bt(n,i.isoDate,r.date,o),i.time),"compatible"),r.time)}function yc(t,e,n){let r=Ot(n);t==="subtract"&&(r=ft(r));const o=Jt(Gt(e),Gt(r));if(Pt(o))throw new RangeError("For years, months, or weeks arithmetic, use date arithmetic relative to a starting point");const i=jt(e),a=jt(r);return Ct(en({years:0,months:0,weeks:0,days:0},i.time.add(a.time)),o)}function pc(t,e,n){let r=Ot(n);t==="subtract"&&(r=ft(r));const o=Gt(r);if(Kt(o)==="date")throw new RangeError(`Duration field ${o} not supported by Temporal.Instant. Try Temporal.ZonedDateTime instead.`);const i=jt(r);return Lt(da(m(e,U),i.time))}function bc(t,e,n,r){const o=m(e,M);let i=Ot(n);t==="subtract"&&(i=ft(i));const a=Nl(i),s=re(N(r));return tt(bt(o,m(e,F),a,s),o)}function vc(t,e,n,r){let o=Ot(n);t==="subtract"&&(o=ft(o));const i=re(N(r)),a=m(e,M),s=jt(o),c=m(e,be),l=lr(c.time,s.time),u=ze(s.date,l.deltaDays);return wi(u.years,u.months,u.weeks,u.days,0,0,0,0,0,0),Tt(ie(bt(a,c.isoDate,u,i),l),a)}function wc(t,e,n){let r=Ot(n);t==="subtract"&&(r=ft(r));const o=jt(r),{hour:i,minute:a,second:s,millisecond:c,microsecond:l,nanosecond:u}=lr(m(e,Te),o.time);return Xt(yi(i,a,s,c,l,u,"reject"))}function Ec(t,e,n,r){let o=Ot(n);t==="subtract"&&(o=ft(o));const i=re(N(r)),a=Bo(o),s=m(e,M),c=rt(s,m(e,F),"year-month");c.day=1;let l=vn(s,c,"constrain");if(a<0){const d=bt(s,l,{months:1},"constrain");l=dt(d.year,d.month,d.day-1)}const u=Nl(o);return Yn(l),nr(Br(s,rt(s,bt(s,l,u,i),"year-month"),i),s)}function _c(t,e,n,r){let o=Ot(n);t==="subtract"&&(o=ft(o));const i=re(N(r)),a=m(e,ce),s=m(e,M),c=Qn(o);return Ye(Pr(m(e,U),a,s,c,i),a,s)}function hn(t,e,n){const r=Math.trunc(t/e),o=t%e,i=t<0?"negative":"positive",a=Math.abs(r),s=a+1,c=lt(Math.abs(2*o)-e),l=a%2==0,u=di(n,i),d=o===0?a:fi(a,s,c,l,u);return e*(i==="positive"?d:-d)}function fa(t,e,n,r){const o=cr[n]*e;return(function(i,a,s){const c=Bt(i),l=Bt(a),u=f.divide(c,l),d=f.remainder(c,l),h=di(s,"positive");let y,p;f.lessThan(c,yt)?(y=f.subtract(u,Wr),p=u):(y=u,p=f.add(u,Wr));const g=Yo(Dn(f.multiply(d,Oa)),l)*(f.lessThan(c,yt)?-1:1)+0,v=f.equal(d,yt)?u:fi(y,p,g,Xc(y),h);return f.multiply(v,l)})(t,f.BigInt(o),r)}function ha(t,e,n,r){ua(t);const{year:o,month:i,day:a}=t.isoDate,s=ma(t.time,e,n,r);return ie(dt(o,i,a+s.deltaDays),s)}function ma({hour:t,minute:e,second:n,millisecond:r,microsecond:o,nanosecond:i},a,s,c){let l;switch(s){case"day":case"hour":l=1e3*(1e3*(1e3*(60*(60*t+e)+n)+r)+o)+i;break;case"minute":l=1e3*(1e3*(1e3*(60*e+n)+r)+o)+i;break;case"second":l=1e3*(1e3*(1e3*n+r)+o)+i;break;case"millisecond":l=1e3*(1e3*r+o)+i;break;case"microsecond":l=1e3*o+i;break;case"nanosecond":l=i}const u=cr[s],d=hn(l,u*a,c)/u;switch(s){case"day":return{deltaDays:d,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0};case"hour":return un(d,0,0,0,0,0);case"minute":return un(t,d,0,0,0,0);case"second":return un(t,e,d,0,0,0);case"millisecond":return un(t,e,n,d,0,0);case"microsecond":return un(t,e,n,r,d,0);case"nanosecond":return un(t,e,n,r,o,d);default:throw new Error(`Invalid unit ${s}`)}}function Zo(t,e,n,r){const o=cr[n];return t.round(f.BigInt(o*e),r)}function Fr(t,e){const n=cr[e];return t.fdiv(f.BigInt(n))}function Vt(t,e){return t.year!==e.year?lt(t.year-e.year):t.month!==e.month?lt(t.month-e.month):t.day!==e.day?lt(t.day-e.day):0}function ga(t,e){return t.hour!==e.hour?lt(t.hour-e.hour):t.minute!==e.minute?lt(t.minute-e.minute):t.second!==e.second?lt(t.second-e.second):t.millisecond!==e.millisecond?lt(t.millisecond-e.millisecond):t.microsecond!==e.microsecond?lt(t.microsecond-e.microsecond):t.nanosecond!==e.nanosecond?lt(t.nanosecond-e.nanosecond):0}function ur(t,e){const n=Vt(t.isoDate,e.isoDate);return n!==0?n:ga(t.time,e.time)}function Fl(t){const e=Go(t);return globalThis.BigInt!==void 0?globalThis.BigInt(e.toString(10)):e}function Mt(t,e){const n=Bt(t),{quotient:r,remainder:o}=Mr(n,no);let i=f.toNumber(r);return e==="floor"&&f.toNumber(o)<0&&(i-=1),e==="ceil"&&f.toNumber(o)>0&&(i+=1),i}function Yt(t){if(!Number.isInteger(t))throw new RangeError("epoch milliseconds must be an integer");return f.multiply(f.BigInt(t),no)}function Go(t){let e=t;if(typeof t=="object"){const n=t[Symbol.toPrimitive];n&&typeof n=="function"&&(e=n.call(t,"number"))}if(typeof e=="number")throw new TypeError("cannot convert number to bigint");return typeof e=="bigint"?f.BigInt(e.toString(10)):f.BigInt(e)}const ya=(()=>{let t=f.BigInt(Date.now()%1e6);return()=>{const e=Date.now(),n=f.BigInt(e),r=f.add(Yt(e),t);return t=f.remainder(n,no),f.greaterThan(r,ar)?ar:f.lessThan(r,qr)?qr:r}})();function Cr(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}function lt(t){return t<0?-1:t>0?1:t}function N(t){if(t===void 0)return Object.create(null);if(Ce(t)&&t!==null)return t;throw new TypeError("Options parameter must be an object, not "+(t===null?"null":typeof t))}function Nn(t,e){const n=Object.create(null);return n[t]=e,n}function tn(t,e,n,r){let o=t[e];if(o!==void 0){if(o=mi(o),!n.includes(o))throw new RangeError(`${e} must be one of ${n.join(", ")}, not ${o}`);return o}if(r===on)throw new RangeError(`${e} option is required`);return r}function it(t){const e=Xr(t);if(!_m.includes(Xr(e)))throw new RangeError(`invalid calendar identifier ${e}`);switch(e){case"ethiopic-amete-alem":return"ethioaa";case"islamicc":return"islamic-civil"}return e}function Xr(t){let e="";for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);e+=r>=65&&r<=90?String.fromCharCode(r+32):String.fromCharCode(r)}return e}function _n(t){throw new TypeError(`Do not use built-in arithmetic operators with Temporal objects. When comparing, use ${t==="PlainMonthDay"?"Temporal.PlainDate.compare(obj1.toPlainDate(year), obj2.toPlainDate(year))":`Temporal.${t}.compare(obj1, obj2)`}, not obj1 > obj2. When coercing to strings, use \`\${obj}\` or String(obj), not '' + obj. When coercing to numbers, use properties or methods of the object, not \`+obj\`. When concatenating with strings, use \`\${str}\${obj}\` or str.concat(obj), not str + obj. In React, coerce to a string before rendering a Temporal object.`)}const xm=new RegExp(`^${dl.source}$`),$m=new RegExp(`^${/([+-])([01][0-9]|2[0-3])(?::?([0-5][0-9])(?::?([0-5][0-9])(?:[.,](\d{1,9}))?)?)?/.source}$`);function Vl(t,e,n,r=t(e),o=t(n)){let i=e,a=n,s=r,c=o;for(;a-i>1;){let l=Math.trunc((i+a)/2);const u=t(l);u===s?(i=l,s=u):u===c&&(a=l,c=u)}return a}function Wl(t){return[...t]}function ql(t,e){if(t!=="gregory"&&t!=="iso8601")return;const n=go[t];let r=e.year;const{dayOfWeek:o,dayOfYear:i,daysInYear:a}=n.isoToDate(e,{dayOfWeek:!0,dayOfYear:!0,daysInYear:!0}),s=n.getFirstDayOfWeek(),c=n.getMinimalDaysInFirstWeek();let l=(o+7-s)%7,u=(o-i+7001-s)%7,d=Math.floor((i-1+u)/7);if(7-u>=c&&++d,d==0)d=(function(h,y,p,g){let v=(g-h-p+1)%7;v<0&&(v+=7);let w=Math.floor((p+v-1)/7);return 7-v>=y&&++w,w})(s,c,i+n.isoToDate(n.dateAdd(e,{years:-1},"constrain"),{daysInYear:!0}).daysInYear,o),r--;else if(i>=a-5){let h=(l+a-i)%7;h<0&&(h+=7),6-h>=c&&i+7-l>a&&(d=1,r++)}return{week:d,year:r}}function Tc(t,e,n,r,o){if(e!==o.year){if(t*(e-o.year)>0)return!0}else if(n!==o.month){if(t*(n-o.month)>0)return!0}else if(r!==o.day&&t*(r-o.day)>0)return!0;return!1}const go={};function Ln(t){if(!t.startsWith("M"))throw new RangeError(`Invalid month code: ${t}. Month codes must start with M.`);const e=+t.slice(1);if(Number.isNaN(e))throw new RangeError(`Invalid month code: ${t}`);return e}function zt(t,e=!1){return`M${`${t}`.padStart(2,"0")}${e?"L":""}`}function Na(t,e=void 0,n=12){let{month:r,monthCode:o}=t;if(o===void 0){if(r===void 0)throw new TypeError("Either month or monthCode are required");e==="reject"&&ke(r,1,n),e==="constrain"&&(r=et(r,1,n)),o=zt(r)}else{const i=Ln(o);if(o!==zt(i))throw new RangeError(`Invalid month code: ${o}`);if(r!==void 0&&r!==i)throw new RangeError(`monthCode ${o} and month ${r} must match if both are present`);if(r=i,r<1||r>n)throw new RangeError(`Invalid monthCode: ${o}`)}return{...t,month:r,monthCode:o}}go.iso8601={resolveFields(t,e){if((e==="date"||e==="year-month")&&t.year===void 0)throw new TypeError("year is required");if((e==="date"||e==="month-day")&&t.day===void 0)throw new TypeError("day is required");Object.assign(t,Na(t))},dateToISO:(t,e)=>zr(t.year,t.month,t.day,e),monthDayToISOReferenceDate(t,e){const{month:n,day:r}=zr(t.year??1972,t.month,t.day,e);return{month:n,day:r,year:1972}},extraFields:()=>[],fieldKeysToIgnore(t){const e=new Set;for(let n=0;n<t.length;n++){const r=t[n];e.add(r),r==="month"?e.add("monthCode"):r==="monthCode"&&e.add("month")}return Wl(e)},dateAdd(t,{years:e=0,months:n=0,weeks:r=0,days:o=0},i){let{year:a,month:s,day:c}=t;return a+=e,s+=n,{year:a,month:s}=Sn(a,s),{year:a,month:s,day:c}=zr(a,s,c,i),c+=o+7*r,dt(a,s,c)},dateUntil(t,e,n){const r=-Vt(t,e);if(r===0)return{years:0,months:0,weeks:0,days:0};let o,i=0,a=0;if(n==="year"||n==="month"){let u=e.year-t.year;for(u!==0&&(u-=r);!Tc(r,t.year+u,t.month,t.day,e);)i=u,u+=r;let d=r;for(o=Sn(t.year+i,t.month+d);!Tc(r,o.year,o.month,t.day,e);)a=d,d+=r,o=Sn(o.year,o.month+r);n==="month"&&(a+=12*i,i=0)}o=Sn(t.year+i,t.month+a);const s=Pl(o.year,o.month,t.day);let c=0,l=Pn(e.year,e.month-1,e.day)-Pn(s.year,s.month-1,s.day);return n==="week"&&(c=Math.trunc(l/7),l%=7),{years:i,months:a,weeks:c,days:l}},isoToDate({year:t,month:e,day:n},r){const o={era:void 0,eraYear:void 0,year:t,month:e,day:n,daysInWeek:7,monthsInYear:12};if(r.monthCode&&(o.monthCode=zt(e)),r.dayOfWeek){const i=e+(e<3?10:-2),a=t-(e<3?1:0),s=Math.floor(a/100),c=a-100*s,l=(n+Math.floor(2.6*i-.2)+(c+Math.floor(c/4))+(Math.floor(s/4)-2*s))%7;o.dayOfWeek=l+(l<=0?7:0)}if(r.dayOfYear){let i=n;for(let a=e-1;a>0;a--)i+=$n(t,a);o.dayOfYear=i}return r.weekOfYear&&(o.weekOfYear=ql("iso8601",{year:t,month:e,day:n})),r.daysInMonth&&(o.daysInMonth=$n(t,e)),(r.daysInYear||r.inLeapYear)&&(o.inLeapYear=Ho(t),o.daysInYear=o.inLeapYear?366:365),o},getFirstDayOfWeek:()=>1,getMinimalDaysInFirstWeek:()=>4};class Re{constructor(e){if(this.map=new Map,this.calls=0,this.hits=0,this.misses=0,e!==void 0){let n=0;for(const r of e.map.entries()){if(++n>Re.MAX_CACHE_ENTRIES)break;this.map.set(...r)}}}get(e){const n=this.map.get(e);return n&&(this.hits++,this.report()),this.calls++,n}set(e,n){this.map.set(e,n),this.misses++,this.report()}report(){}setObject(e){if(Re.objectMap.get(e))throw new RangeError("object already cached");Re.objectMap.set(e,this),this.report()}static getCacheForObject(e){let n=Re.objectMap.get(e);return n||(n=new Re,Re.objectMap.set(e,n)),n}}function Hl({isoYear:t,isoMonth:e,isoDay:n}){return`${mo(t)}-${vt(e)}-${vt(n)}T00:00Z`}function qi(t,e){return{years:t.year-e.year,months:t.month-e.month,days:t.day-e.day}}Re.objectMap=new WeakMap,Re.MAX_CACHE_ENTRIES=1e3;class zn{constructor(){this.eras=[],this.hasEra=!1,this.erasBeginMidYear=!1}getFormatter(){return this.formatter===void 0&&(this.formatter=new Intl.DateTimeFormat(`en-US-u-ca-${this.id}`,{day:"numeric",month:"numeric",year:"numeric",era:"short",timeZone:"UTC"})),this.formatter}getCalendarParts(e){let n=this.getFormatter(),r=new Date(e);if(e==="-271821-04-19T00:00Z"){const o=n.resolvedOptions();n=new Intl.DateTimeFormat(o.locale,{...o,timeZone:"Etc/GMT+1"}),r=new Date("-271821-04-20T00:00Z")}try{return n.formatToParts(r)}catch{throw new RangeError(`Invalid ISO date: ${e}`)}}isoToCalendarDate(e,n){const{year:r,month:o,day:i}=e,a=JSON.stringify({func:"isoToCalendarDate",isoYear:r,isoMonth:o,isoDay:i,id:this.id}),s=n.get(a);if(s)return s;const c=Hl({isoYear:r,isoMonth:o,isoDay:i}),l=this.getCalendarParts(c),u={};for(let h=0;h<l.length;h++){const{type:y,value:p}=l[h];if(y!=="year"&&y!=="relatedYear"||(this.hasEra?u.eraYear=+p:u.year=+p),y==="month"){const g=/^([0-9]*)(.*?)$/.exec(p);if(!g||g.length!=3||!g[1]&&!g[2])throw new RangeError(`Unexpected month: ${p}`);if(u.month=g[1]?+g[1]:1,u.month<1)throw new RangeError(`Invalid month ${p} from ${c}[u-ca-${this.id}] (probably due to https://bugs.chromium.org/p/v8/issues/detail?id=10527)`);if(u.month>13)throw new RangeError(`Invalid month ${p} from ${c}[u-ca-${this.id}] (probably due to https://bugs.chromium.org/p/v8/issues/detail?id=10529)`);g[2]&&(u.monthExtra=g[2])}y==="day"&&(u.day=+p),this.hasEra&&y==="era"&&p!=null&&p!==""&&(u.era=p.split(" (")[0].normalize("NFD").replace(/[^-0-9 \p{L}]/gu,"").replace(/ /g,"-").toLowerCase())}if(this.hasEra&&u.eraYear===void 0)throw new RangeError(`Intl.DateTimeFormat.formatToParts lacks relatedYear in ${this.id} calendar. Try Node 14+ or modern browsers.`);if(this.hasEra){const h=this.eras.find((y=>u.era===y.genericName));h&&(u.era=h.code)}if(this.reviseIntlEra){const{era:h,eraYear:y}=this.reviseIntlEra(u,e);u.era=h,u.eraYear=y}this.checkIcuBugs&&this.checkIcuBugs(e);const d=this.adjustCalendarDate(u,n,"constrain",!0);if(d.year===void 0)throw new RangeError(`Missing year converting ${JSON.stringify(e)}`);if(d.month===void 0)throw new RangeError(`Missing month converting ${JSON.stringify(e)}`);if(d.day===void 0)throw new RangeError(`Missing day converting ${JSON.stringify(e)}`);return n.set(a,d),["constrain","reject"].forEach((h=>{const y=JSON.stringify({func:"calendarToIsoDate",year:d.year,month:d.month,day:d.day,overflow:h,id:this.id});n.set(y,e)})),d}validateCalendarDate(e){const{month:n,year:r,day:o,eraYear:i,monthCode:a,monthExtra:s}=e;if(s!==void 0)throw new RangeError("Unexpected `monthExtra` value");if(r===void 0&&i===void 0)throw new TypeError("year or eraYear is required");if(n===void 0&&a===void 0)throw new TypeError("month or monthCode is required");if(o===void 0)throw new RangeError("Missing day");if(a!==void 0){if(typeof a!="string")throw new RangeError("monthCode must be a string, not "+typeof a);if(!/^M([01]?\d)(L?)$/.test(a))throw new RangeError(`Invalid monthCode: ${a}`)}if(this.hasEra&&e.era===void 0!=(e.eraYear===void 0))throw new TypeError("properties era and eraYear must be provided together")}adjustCalendarDate(e,n=void 0,r="constrain",o=!1){if(this.calendarType==="lunisolar")throw new RangeError("Override required for lunisolar calendars");let i=e;this.validateCalendarDate(i);const a=this.monthsInYear(i,n);let{month:s,monthCode:c}=i;return{month:s,monthCode:c}=Na(i,r,a),{...i,month:s,monthCode:c}}regulateMonthDayNaive(e,n,r){const o=this.monthsInYear(e,r);let{month:i,day:a}=e;return n==="reject"?(ke(i,1,o),ke(a,1,this.maximumMonthLength(e))):(i=et(i,1,o),a=et(a,1,this.maximumMonthLength({...e,month:i}))),{...e,month:i,day:a}}calendarToIsoDate(e,n="constrain",r){const o=e;let i=this.adjustCalendarDate(e,r,n,!1);i=this.regulateMonthDayNaive(i,n,r);const{year:a,month:s,day:c}=i,l=JSON.stringify({func:"calendarToIsoDate",year:a,month:s,day:c,overflow:n,id:this.id});let u,d=r.get(l);if(d||o.year!==void 0&&o.month!==void 0&&o.day!==void 0&&(o.year!==i.year||o.month!==i.month||o.day!==i.day)&&(u=JSON.stringify({func:"calendarToIsoDate",year:o.year,month:o.month,day:o.day,overflow:n,id:this.id}),d=r.get(u),d))return d;let h=this.estimateIsoDate({year:a,month:s,day:c});const y=D=>{let O=this.addDaysIso(h,D);if(i.day>this.minimumMonthLength(i)){let C=this.isoToCalendarDate(O,r);for(;C.month!==s||C.year!==a;){if(n==="reject")throw new RangeError(`day ${c} does not exist in month ${s} of year ${a}`);O=this.addDaysIso(O,-1),C=this.isoToCalendarDate(O,r)}}return O};let p=0,g=this.isoToCalendarDate(h,r),v=qi(i,g);if(v.years!==0||v.months!==0||v.days!==0){const D=365*v.years+30*v.months+v.days;h=this.addDaysIso(h,D),g=this.isoToCalendarDate(h,r),v=qi(i,g),v.years===0&&v.months===0?h=y(v.days):p=this.compareCalendarDates(i,g)}let w=8;for(;p;){h=this.addDaysIso(h,p*w);const D=g;g=this.isoToCalendarDate(h,r);const O=p;if(p=this.compareCalendarDates(i,g),p){if(v=qi(i,g),v.years===0&&v.months===0)h=y(v.days),p=0;else if(O&&p!==O)if(w>1)w/=2;else{if(n==="reject")throw new RangeError(`Can't find ISO date from calendar date: ${JSON.stringify({...o})}`);this.compareCalendarDates(g,D)>0&&(h=this.addDaysIso(h,-1)),p=0}}}if(r.set(l,h),u&&r.set(u,h),i.year===void 0||i.month===void 0||i.day===void 0||i.monthCode===void 0||this.hasEra&&(i.era===void 0||i.eraYear===void 0))throw new RangeError("Unexpected missing property");return h}compareCalendarDates(e,n){return e.year!==n.year?lt(e.year-n.year):e.month!==n.month?lt(e.month-n.month):e.day!==n.day?lt(e.day-n.day):0}regulateDate(e,n="constrain",r){const o=this.calendarToIsoDate(e,n,r);return this.isoToCalendarDate(o,r)}addDaysIso(e,n){return dt(e.year,e.month,e.day+n)}addDaysCalendar(e,n,r){const o=this.calendarToIsoDate(e,"constrain",r),i=this.addDaysIso(o,n);return this.isoToCalendarDate(i,r)}addMonthsCalendar(e,n,r,o){let i=e;const{day:a}=i;for(let s=0,c=Math.abs(n);s<c;s++){const{month:l}=i,u=i,d=n<0?-Math.max(a,this.daysInPreviousMonth(i,o)):this.daysInMonth(i,o),h=this.calendarToIsoDate(i,"constrain",o);let y=this.addDaysIso(h,d);if(i=this.isoToCalendarDate(y,o),n>0){const p=this.monthsInYear(u,o);for(;i.month-1!=l%p;)y=this.addDaysIso(y,-1),i=this.isoToCalendarDate(y,o)}i.day!==a&&(i=this.regulateDate({...i,day:a},"constrain",o))}if(r==="reject"&&i.day!==a)throw new RangeError(`Day ${a} does not exist in resulting calendar month`);return i}addCalendar(e,{years:n=0,months:r=0,weeks:o=0,days:i=0},a,s){const{year:c,day:l,monthCode:u}=e,d=this.adjustCalendarDate({year:c+n,monthCode:u,day:l},s),h=this.addMonthsCalendar(d,r,a,s),y=i+7*o;return this.addDaysCalendar(h,y,s)}untilCalendar(e,n,r,o){let i=0,a=0,s=0,c=0;switch(r){case"day":i=this.calendarDaysUntil(e,n,o);break;case"week":{const l=this.calendarDaysUntil(e,n,o);i=l%7,a=(l-i)/7;break}case"month":case"year":{const l=this.compareCalendarDates(n,e);if(!l)return{years:0,months:0,weeks:0,days:0};const u=n.year-e.year,d=n.day-e.day;if(r==="year"&&u){let p=0;n.monthCode>e.monthCode&&(p=1),n.monthCode<e.monthCode&&(p=-1),p||(p=Math.sign(d)),c=p*l<0?u-l:u}let h,y=c?this.addCalendar(e,{years:c},"constrain",o):e;do s+=l,h=y,y=this.addMonthsCalendar(h,l,"constrain",o),y.day!==e.day&&(y=this.regulateDate({...y,day:e.day},"constrain",o));while(this.compareCalendarDates(n,y)*l>=0);s-=l,i=this.calendarDaysUntil(h,n,o);break}}return{years:c,months:s,weeks:a,days:i}}daysInMonth(e,n){const{day:r}=e,o=this.maximumMonthLength(e),i=this.minimumMonthLength(e);if(i===o)return i;const a=r<=o-i?o:i,s=this.calendarToIsoDate(e,"constrain",n),c=this.addDaysIso(s,a),l=this.isoToCalendarDate(c,n),u=this.addDaysIso(c,-l.day);return this.isoToCalendarDate(u,n).day}daysInPreviousMonth(e,n){const{day:r,month:o,year:i}=e;let a={year:o>1?i:i-1,month:o,day:1};const s=o>1?o-1:this.monthsInYear(a,n);a={...a,month:s};const c=this.minimumMonthLength(a),l=this.maximumMonthLength(a);if(c===l)return l;const u=this.calendarToIsoDate(e,"constrain",n),d=this.addDaysIso(u,-r);return this.isoToCalendarDate(d,n).day}startOfCalendarYear(e){return{year:e.year,month:1,monthCode:"M01",day:1}}startOfCalendarMonth(e){return{year:e.year,month:e.month,day:1}}calendarDaysUntil(e,n,r){const o=this.calendarToIsoDate(e,"constrain",r),i=this.calendarToIsoDate(n,"constrain",r);return Pn(i.year,i.month-1,i.day)-Pn(o.year,o.month-1,o.day)}monthDaySearchStartYear(e,n){return 1972}monthDayFromFields(e,n,r){let o,i,a,s,c,{era:l,eraYear:u,year:d,month:h,monthCode:y,day:p}=e;if(h!==void 0&&d===void 0&&(!this.hasEra||l===void 0||u===void 0))throw new TypeError("when month is present, year (or era and eraYear) are required");(y===void 0||d!==void 0||this.hasEra&&u!==void 0)&&({monthCode:y,day:p}=this.isoToCalendarDate(this.calendarToIsoDate(e,n,r),r));const g={year:this.monthDaySearchStartYear(y,p),month:12,day:31},v=this.isoToCalendarDate(g,r),w=v.monthCode>y||v.monthCode===y&&v.day>=p?v.year:v.year-1;for(let D=0;D<20;D++){const O=this.adjustCalendarDate({day:p,monthCode:y,year:w-D},r),C=this.calendarToIsoDate(O,"constrain",r),E=this.isoToCalendarDate(C,r);if({year:o,month:i,day:a}=C,E.monthCode===y&&E.day===p)return{month:i,day:a,year:o};if(n==="constrain"){const S=this.maxLengthOfMonthCodeInAnyYear(E.monthCode);if(E.monthCode===y&&E.day===S&&p>S)return{month:i,day:a,year:o};(s===void 0||E.monthCode===s.monthCode&&E.day>s.day)&&(s=E,c=C)}}if(n==="constrain"&&c!==void 0)return c;throw new RangeError(`No recent ${this.id} year with monthCode ${y} and day ${p}`)}getFirstDayOfWeek(){}getMinimalDaysInFirstWeek(){}}class Rm extends zn{constructor(){super(...arguments),this.id="hebrew",this.calendarType="lunisolar",this.months={Tishri:{leap:1,regular:1,monthCode:"M01",days:30},Heshvan:{leap:2,regular:2,monthCode:"M02",days:{min:29,max:30}},Kislev:{leap:3,regular:3,monthCode:"M03",days:{min:29,max:30}},Tevet:{leap:4,regular:4,monthCode:"M04",days:29},Shevat:{leap:5,regular:5,monthCode:"M05",days:30},Adar:{leap:void 0,regular:6,monthCode:"M06",days:29},"Adar I":{leap:6,regular:void 0,monthCode:"M05L",days:30},"Adar II":{leap:7,regular:void 0,monthCode:"M06",days:29},Nisan:{leap:8,regular:7,monthCode:"M07",days:30},Iyar:{leap:9,regular:8,monthCode:"M08",days:29},Sivan:{leap:10,regular:9,monthCode:"M09",days:30},Tamuz:{leap:11,regular:10,monthCode:"M10",days:29},Av:{leap:12,regular:11,monthCode:"M11",days:30},Elul:{leap:13,regular:12,monthCode:"M12",days:29}}}inLeapYear(e){const{year:n}=e;return(7*n+1)%19<7}monthsInYear(e){return this.inLeapYear(e)?13:12}minimumMonthLength(e){return this.minMaxMonthLength(e,"min")}maximumMonthLength(e){return this.minMaxMonthLength(e,"max")}minMaxMonthLength(e,n){const{month:r,year:o}=e,i=this.getMonthCode(o,r),a=Object.entries(this.months).find((c=>c[1].monthCode===i));if(a===void 0)throw new RangeError(`unmatched Hebrew month: ${r}`);const s=a[1].days;return typeof s=="number"?s:s[n]}maxLengthOfMonthCodeInAnyYear(e){return["M04","M06","M08","M10","M12"].includes(e)?29:30}estimateIsoDate(e){const{year:n}=e;return{year:n-3760,month:1,day:1}}getMonthCode(e,n){return this.inLeapYear({year:e})?n===6?zt(5,!0):zt(n<6?n:n-1):zt(n)}adjustCalendarDate(e,n,r="constrain",o=!1){let{year:i,month:a,monthCode:s,day:c,monthExtra:l}=e;if(i===void 0)throw new TypeError("Missing property: year");if(o){if(l){const u=this.months[l];if(!u)throw new RangeError(`Unrecognized month from formatToParts: ${l}`);a=this.inLeapYear({year:i})?u.leap:u.regular}return s=this.getMonthCode(i,a),{year:i,month:a,day:c,monthCode:s}}if(this.validateCalendarDate(e),a===void 0)if(s.endsWith("L")){if(s!=="M05L")throw new RangeError(`Hebrew leap month must have monthCode M05L, not ${s}`);if(a=6,!this.inLeapYear({year:i})){if(r==="reject")throw new RangeError(`Hebrew monthCode M05L is invalid in year ${i} which is not a leap year`);a=6,s="M06"}}else{a=Ln(s),this.inLeapYear({year:i})&&a>=6&&a++;const u=this.monthsInYear({year:i});if(a<1||a>u)throw new RangeError(`Invalid monthCode: ${s}`)}else if(r==="reject"?(ke(a,1,this.monthsInYear({year:i})),ke(c,1,this.maximumMonthLength({year:i,month:a}))):(a=et(a,1,this.monthsInYear({year:i})),c=et(c,1,this.maximumMonthLength({year:i,month:a}))),s===void 0)s=this.getMonthCode(i,a);else if(this.getMonthCode(i,a)!==s)throw new RangeError(`monthCode ${s} doesn't correspond to month ${a} in Hebrew year ${i}`);return{...e,day:c,month:a,monthCode:s,year:i}}}class br extends zn{constructor(){super(...arguments),this.calendarType="lunar",this.DAYS_PER_ISLAMIC_YEAR=354+11/30,this.DAYS_PER_ISO_YEAR=365.2425}inLeapYear(e,n){const r={year:e.year,month:1,monthCode:"M01",day:1},o={year:e.year+1,month:1,monthCode:"M01",day:1};return this.calendarDaysUntil(r,o,n)===355}monthsInYear(){return 12}minimumMonthLength(){return 29}maximumMonthLength(){return 30}maxLengthOfMonthCodeInAnyYear(){return 30}estimateIsoDate(e){const{year:n}=this.adjustCalendarDate(e);return{year:Math.floor(n*this.DAYS_PER_ISLAMIC_YEAR/this.DAYS_PER_ISO_YEAR)+622,month:1,day:1}}}class km extends br{constructor(){super(...arguments),this.id="islamic"}}class Am extends br{constructor(){super(...arguments),this.id="islamic-umalqura"}}class Im extends br{constructor(){super(...arguments),this.id="islamic-tbla"}}class Pm extends br{constructor(){super(...arguments),this.id="islamic-civil"}}class Nm extends br{constructor(){super(...arguments),this.id="islamic-rgsa"}}class Lm extends br{constructor(){super(...arguments),this.id="islamicc"}}class jm extends zn{constructor(){super(...arguments),this.id="persian",this.calendarType="solar"}inLeapYear(e,n){return this.daysInMonth({year:e.year,month:12,day:1},n)===30}monthsInYear(){return 12}minimumMonthLength(e){const{month:n}=e;return n===12?29:n<=6?31:30}maximumMonthLength(e){const{month:n}=e;return n===12?30:n<=6?31:30}maxLengthOfMonthCodeInAnyYear(e){return Ln(e)<=6?31:30}estimateIsoDate(e){const{year:n}=this.adjustCalendarDate(e);return{year:n+621,month:1,day:1}}}class Ym extends zn{constructor(){super(...arguments),this.id="indian",this.calendarType="solar",this.months={1:{length:30,month:3,day:22,leap:{length:31,month:3,day:21}},2:{length:31,month:4,day:21},3:{length:31,month:5,day:22},4:{length:31,month:6,day:22},5:{length:31,month:7,day:23},6:{length:31,month:8,day:23},7:{length:30,month:9,day:23},8:{length:30,month:10,day:23},9:{length:30,month:11,day:22},10:{length:30,month:12,day:22},11:{length:30,month:1,nextYear:!0,day:21},12:{length:30,month:2,nextYear:!0,day:20}},this.vulnerableToBceBug=new Date("0000-01-01T00:00Z").toLocaleDateString("en-US-u-ca-indian",{timeZone:"UTC"})!=="10/11/-79 Saka"}inLeapYear(e){return La(e.year+78)}monthsInYear(){return 12}minimumMonthLength(e){return this.getMonthInfo(e).length}maximumMonthLength(e){return this.getMonthInfo(e).length}maxLengthOfMonthCodeInAnyYear(e){const n=Ln(e);let r=this.months[n];return r=r.leap??r,r.length}getMonthInfo(e){const{month:n}=e;let r=this.months[n];if(r===void 0)throw new RangeError(`Invalid month: ${n}`);return this.inLeapYear(e)&&r.leap&&(r=r.leap),r}estimateIsoDate(e){const n=this.adjustCalendarDate(e),r=this.getMonthInfo(n);return dt(n.year+78+(r.nextYear?1:0),r.month,r.day+n.day-1)}checkIcuBugs(e){if(this.vulnerableToBceBug&&e.year<1)throw new RangeError(`calendar '${this.id}' is broken for ISO dates before 0001-01-01 (see https://bugs.chromium.org/p/v8/issues/detail?id=10529)`)}}function La(t){return t%4==0&&(t%100!=0||t%400==0)}class Bl extends zn{constructor(e,n){super(),this.calendarType="solar",this.id=e,this.isoEpoch=n}inLeapYear(e){const{year:n}=this.estimateIsoDate({month:1,day:1,year:e.year});return La(n)}monthsInYear(){return 12}minimumMonthLength(e){const{month:n}=e;return n===2?this.inLeapYear(e)?29:28:[4,6,9,11].indexOf(n)>=0?30:31}maximumMonthLength(e){return this.minimumMonthLength(e)}maxLengthOfMonthCodeInAnyYear(e){return[31,29,31,30,31,30,31,31,30,31,30,31][Ln(e)-1]}estimateIsoDate(e){const n=this.adjustCalendarDate(e);return zr(n.year+this.isoEpoch.year,n.month+this.isoEpoch.month,n.day+this.isoEpoch.day,"constrain")}}class Zl extends zn{constructor(e,n){super(),this.hasEra=!0,this.calendarType="solar",this.id=e;const{eras:r,anchorEra:o}=(function(i){let a,s=i;if(s.length===0)throw new RangeError("Invalid era data: eras are required");if(s.length===1&&s[0].reverseOf)throw new RangeError("Invalid era data: anchor era cannot count years backwards");if(s.length===1&&!s[0].code)throw new RangeError("Invalid era data: at least one named era is required");if(s.filter((l=>l.reverseOf!=null)).length>1)throw new RangeError("Invalid era data: only one era can count years backwards");s.forEach((l=>{if(l.isAnchor||!l.anchorEpoch&&!l.reverseOf){if(a)throw new RangeError("Invalid era data: cannot have multiple anchor eras");a=l,l.anchorEpoch={year:l.hasYearZero?0:1}}else if(!l.code)throw new RangeError("If era name is blank, it must be the anchor era")})),s=s.filter((l=>l.code)),s.forEach((l=>{const{reverseOf:u}=l;if(u){const d=s.find((h=>h.code===u));if(d===void 0)throw new RangeError(`Invalid era data: unmatched reverseOf era: ${u}`);l.reverseOf=d,l.anchorEpoch=d.anchorEpoch,l.isoEpoch=d.isoEpoch}l.anchorEpoch.month===void 0&&(l.anchorEpoch.month=1),l.anchorEpoch.day===void 0&&(l.anchorEpoch.day=1)})),s.sort(((l,u)=>{if(l.reverseOf)return 1;if(u.reverseOf)return-1;if(!l.isoEpoch||!u.isoEpoch)throw new RangeError("Invalid era data: missing ISO epoch");return u.isoEpoch.year-l.isoEpoch.year}));const c=s[s.length-1].reverseOf;if(c&&c!==s[s.length-2])throw new RangeError("Invalid era data: invalid reverse-sign era");return s.forEach(((l,u)=>{l.genericName="era"+(s.length-1-u)})),{eras:s,anchorEra:a||s[0]}})(n);this.anchorEra=o,this.eras=r}inLeapYear(e){const{year:n}=this.estimateIsoDate({month:1,day:1,year:e.year});return La(n)}monthsInYear(){return 12}minimumMonthLength(e){const{month:n}=e;return n===2?this.inLeapYear(e)?29:28:[4,6,9,11].indexOf(n)>=0?30:31}maximumMonthLength(e){return this.minimumMonthLength(e)}maxLengthOfMonthCodeInAnyYear(e){return[31,29,31,30,31,30,31,31,30,31,30,31][Ln(e)-1]}completeEraYear(e){const n=(s,c,l)=>{const u=e[s];if(u!=null&&u!=c&&!(l||[]).includes(u)){const d=l?.[0];throw new RangeError(`Input ${s} ${u} doesn't match calculated value ${d?`${c} (also called ${d})`:c}`)}},r=s=>{let c;const l={...e,year:s},u=this.eras.find(((d,h)=>{if(h===this.eras.length-1){if(d.reverseOf){if(s>0)throw new RangeError(`Signed year ${s} is invalid for era ${d.code}`);return c=d.anchorEpoch.year-s,!0}return c=s-d.anchorEpoch.year+(d.hasYearZero?0:1),!0}return this.compareCalendarDates(l,d.anchorEpoch)>=0&&(c=s-d.anchorEpoch.year+(d.hasYearZero?0:1),!0)}));if(!u)throw new RangeError(`Year ${s} was not matched by any era`);return{eraYear:c,era:u.code,eraNames:u.names}};let{year:o,eraYear:i,era:a}=e;if(o!=null){const s=r(o);({eraYear:i,era:a}=s),n("era",a,s?.eraNames),n("eraYear",i)}else{if(i==null)throw new RangeError("Either year or eraYear and era are required");{if(a===void 0)throw new RangeError("era and eraYear must be provided together");const s=this.eras.find((({code:c,names:l=[]})=>c===a||l.includes(a)));if(!s)throw new RangeError(`Era ${a} (ISO year ${i}) was not matched by any era`);o=s.reverseOf?s.anchorEpoch.year-i:i+s.anchorEpoch.year-(s.hasYearZero?0:1),n("year",o),{eraYear:i,era:a}=r(o)}}return{...e,year:o,eraYear:i,era:a}}adjustCalendarDate(e,n,r="constrain"){let o=e;const{month:i,monthCode:a}=o;return i===void 0&&(o={...o,month:Ln(a)}),this.validateCalendarDate(o),o=this.completeEraYear(o),super.adjustCalendarDate(o,n,r)}estimateIsoDate(e){const n=this.adjustCalendarDate(e),{year:r,month:o,day:i}=n,{anchorEra:a}=this;return zr(r+a.isoEpoch.year-(a.hasYearZero?0:1),o,i,"constrain")}}class ja extends Zl{constructor(e,n){super(e,n)}isoToCalendarDate(e){const{year:n,month:r,day:o}=e,i=zt(r),a=n-this.anchorEra.isoEpoch.year+1;return this.completeEraYear({year:a,month:r,monthCode:i,day:o})}}const Nt={inLeapYear(t){const{year:e}=t;return(e+1)%4==0},monthsInYear:()=>13,minimumMonthLength(t){const{month:e}=t;return e===13?this.inLeapYear(t)?6:5:30},maximumMonthLength(t){return this.minimumMonthLength(t)},maxLengthOfMonthCodeInAnyYear:t=>t==="M13"?6:30};class zm extends Bl{constructor(e,n){super(e,n),this.inLeapYear=Nt.inLeapYear,this.monthsInYear=Nt.monthsInYear,this.minimumMonthLength=Nt.minimumMonthLength,this.maximumMonthLength=Nt.maximumMonthLength,this.maxLengthOfMonthCodeInAnyYear=Nt.maxLengthOfMonthCodeInAnyYear}}class Gl extends Zl{constructor(e,n){super(e,n),this.inLeapYear=Nt.inLeapYear,this.monthsInYear=Nt.monthsInYear,this.minimumMonthLength=Nt.minimumMonthLength,this.maximumMonthLength=Nt.maximumMonthLength,this.maxLengthOfMonthCodeInAnyYear=Nt.maxLengthOfMonthCodeInAnyYear}}class Um extends zm{constructor(){super("ethioaa",{year:-5492,month:7,day:17})}}class Fm extends Gl{constructor(){super("coptic",[{code:"coptic",isoEpoch:{year:284,month:8,day:29}},{code:"coptic-inverse",reverseOf:"coptic"}])}}class Vm extends Gl{constructor(){super("ethiopic",[{code:"ethioaa",names:["ethiopic-amete-alem","mundi"],isoEpoch:{year:-5492,month:7,day:17}},{code:"ethiopic",names:["incar"],isoEpoch:{year:8,month:8,day:27},anchorEpoch:{year:5501}}])}}class Wm extends ja{constructor(){super("roc",[{code:"roc",names:["minguo"],isoEpoch:{year:1912,month:1,day:1}},{code:"roc-inverse",names:["before-roc"],reverseOf:"roc"}])}}class qm extends Bl{constructor(){super("buddhist",{year:-543,month:1,day:1})}}class Hm extends ja{constructor(){super("gregory",[{code:"gregory",names:["ad","ce"],isoEpoch:{year:1,month:1,day:1}},{code:"gregory-inverse",names:["be","bce"],reverseOf:"gregory"}])}reviseIntlEra(e){let{era:n,eraYear:r}=e;return n==="b"&&(n="gregory-inverse"),n==="a"&&(n="gregory"),{era:n,eraYear:r}}getFirstDayOfWeek(){return 1}getMinimalDaysInFirstWeek(){return 1}}class Bm extends ja{constructor(){super("japanese",[{code:"reiwa",isoEpoch:{year:2019,month:5,day:1},anchorEpoch:{year:2019,month:5,day:1}},{code:"heisei",isoEpoch:{year:1989,month:1,day:8},anchorEpoch:{year:1989,month:1,day:8}},{code:"showa",isoEpoch:{year:1926,month:12,day:25},anchorEpoch:{year:1926,month:12,day:25}},{code:"taisho",isoEpoch:{year:1912,month:7,day:30},anchorEpoch:{year:1912,month:7,day:30}},{code:"meiji",isoEpoch:{year:1868,month:9,day:8},anchorEpoch:{year:1868,month:9,day:8}},{code:"japanese",names:["japanese","gregory","ad","ce"],isoEpoch:{year:1,month:1,day:1}},{code:"japanese-inverse",names:["japanese-inverse","gregory-inverse","bc","bce"],reverseOf:"japanese"}]),this.erasBeginMidYear=!0}reviseIntlEra(e,n){const{era:r,eraYear:o}=e,{year:i}=n;return this.eras.find((a=>a.code===r))?{era:r,eraYear:o}:i<1?{era:"japanese-inverse",eraYear:1-i}:{era:"japanese",eraYear:i}}}class Kl extends zn{constructor(){super(...arguments),this.calendarType="lunisolar"}inLeapYear(e,n){const r=this.getMonthList(e.year,n);return Object.entries(r).length===13}monthsInYear(e,n){return this.inLeapYear(e,n)?13:12}minimumMonthLength(){return 29}maximumMonthLength(){return 30}maxLengthOfMonthCodeInAnyYear(e){return["M01L","M09L","M10L","M11L","M12L"].includes(e)?29:30}monthDaySearchStartYear(e,n){const r={M01L:[1651,1651],M02L:[1947,1765],M03L:[1966,1955],M04L:[1963,1944],M05L:[1971,1952],M06L:[1960,1941],M07L:[1968,1938],M08L:[1957,1718],M09L:[1832,1832],M10L:[1870,1870],M11L:[1814,1814],M12L:[1890,1890]}[e]??[1972,1972];return n<30?r[0]:r[1]}getMonthList(e,n){if(e===void 0)throw new TypeError("Missing year");const r=JSON.stringify({func:"getMonthList",calendarYear:e,id:this.id}),o=n.get(r);if(o)return o;const i=this.getFormatter(),a=(v,w)=>{const D=Hl({isoYear:v,isoMonth:2,isoDay:1}),O=new Date(D);O.setUTCDate(w+1);const C=i.formatToParts(O),E=C.find((j=>j.type==="month")).value,S=+C.find((j=>j.type==="day")).value,P=C.find((j=>j.type==="relatedYear"));let z;if(P===void 0)throw new RangeError(`Intl.DateTimeFormat.formatToParts lacks relatedYear in ${this.id} calendar. Try Node 14+ or modern browsers.`);return z=+P.value,{calendarMonthString:E,calendarDay:S,calendarYearToVerify:z}};let s=17,{calendarMonthString:c,calendarDay:l,calendarYearToVerify:u}=a(e,s);c!=="1"&&(s+=29,{calendarMonthString:c,calendarDay:l}=a(e,s)),s-=l-5;const d={};let h,y,p=1,g=!1;do({calendarMonthString:c,calendarDay:l,calendarYearToVerify:u}=a(e,s)),h&&(d[y].daysInMonth=h+30-l),u!==e?g=!0:(d[c]={monthIndex:p++},s+=30),h=l,y=c;while(!g);return d[y].daysInMonth=h+30-l,n.set(r,d),d}estimateIsoDate(e){const{year:n,month:r}=e;return{year:n,month:r>=12?12:r+1,day:1}}adjustCalendarDate(e,n,r="constrain",o=!1){let{year:i,month:a,monthExtra:s,day:c,monthCode:l}=e;if(i===void 0)throw new TypeError("Missing property: year");if(o){if(s&&s!=="bis")throw new RangeError(`Unexpected leap month suffix: ${s}`);const u=zt(a,s!==void 0),d=`${a}${s||""}`,h=this.getMonthList(i,n)[d];if(h===void 0)throw new RangeError(`Unmatched month ${d} in Chinese year ${i}`);return a=h.monthIndex,{year:i,month:a,day:c,monthCode:u}}if(this.validateCalendarDate(e),a===void 0){const u=this.getMonthList(i,n);let d=l.replace(/^M|L$/g,(y=>y==="L"?"bis":""));d[0]==="0"&&(d=d.slice(1));let h=u[d];if(a=h&&h.monthIndex,a===void 0&&l.endsWith("L")&&l!="M13L"&&r==="constrain"){const y=+l.replace(/^M0?|L$/g,"");h=u[y],h&&(a=h.monthIndex,l=zt(y))}if(a===void 0)throw new RangeError(`Unmatched month ${l} in Chinese year ${i}`)}else if(l===void 0){const u=this.getMonthList(i,n),d=Object.entries(u),h=d.length;r==="reject"?(ke(a,1,h),ke(c,1,this.maximumMonthLength())):(a=et(a,1,h),c=et(c,1,this.maximumMonthLength()));const y=d.find((p=>p[1].monthIndex===a));if(y===void 0)throw new RangeError(`Invalid month ${a} in Chinese year ${i}`);l=zt(+y[0].replace("bis",""),y[0].indexOf("bis")!==-1)}else{const u=this.getMonthList(i,n);let d=l.replace(/^M|L$/g,(y=>y==="L"?"bis":""));d[0]==="0"&&(d=d.slice(1));const h=u[d];if(!h)throw new RangeError(`Unmatched monthCode ${l} in Chinese year ${i}`);if(a!==h.monthIndex)throw new RangeError(`monthCode ${l} doesn't correspond to month ${a} in Chinese year ${i}`)}return{...e,year:i,month:a,monthCode:l,day:c}}}class Zm extends Kl{constructor(){super(...arguments),this.id="chinese"}}class Gm extends Kl{constructor(){super(...arguments),this.id="dangi"}}class Km{constructor(e){this.helper=e}extraFields(e){return this.helper.hasEra&&e.includes("year")?["era","eraYear"]:[]}resolveFields(e){if(this.helper.calendarType!=="lunisolar"){const n=new Re;Na(e,void 0,this.helper.monthsInYear({year:e.year??1972},n))}}dateToISO(e,n){const r=new Re,o=this.helper.calendarToIsoDate(e,n,r);return r.setObject(o),o}monthDayToISOReferenceDate(e,n){const r=new Re,o=this.helper.monthDayFromFields(e,n,r);return r.setObject(o),o}fieldKeysToIgnore(e){const n=new Set;for(let r=0;r<e.length;r++){const o=e[r];switch(n.add(o),o){case"era":n.add("eraYear"),n.add("year");break;case"eraYear":n.add("era"),n.add("year");break;case"year":n.add("era"),n.add("eraYear");break;case"month":n.add("monthCode"),this.helper.erasBeginMidYear&&(n.add("era"),n.add("eraYear"));break;case"monthCode":n.add("month"),this.helper.erasBeginMidYear&&(n.add("era"),n.add("eraYear"));break;case"day":this.helper.erasBeginMidYear&&(n.add("era"),n.add("eraYear"))}}return Wl(n)}dateAdd(e,{years:n,months:r,weeks:o,days:i},a){const s=Re.getCacheForObject(e),c=this.helper.isoToCalendarDate(e,s),l=this.helper.addCalendar(c,{years:n,months:r,weeks:o,days:i},a,s),u=this.helper.calendarToIsoDate(l,"constrain",s);return Re.getCacheForObject(u)||new Re(s).setObject(u),u}dateUntil(e,n,r){const o=Re.getCacheForObject(e),i=Re.getCacheForObject(n),a=this.helper.isoToCalendarDate(e,o),s=this.helper.isoToCalendarDate(n,i);return this.helper.untilCalendar(a,s,r,o)}isoToDate(e,n){const r=Re.getCacheForObject(e),o=this.helper.isoToCalendarDate(e,r);if(n.dayOfWeek&&(o.dayOfWeek=go.iso8601.isoToDate(e,{dayOfWeek:!0}).dayOfWeek),n.dayOfYear){const i=this.helper.startOfCalendarYear(o),a=this.helper.calendarDaysUntil(i,o,r);o.dayOfYear=a+1}if(n.weekOfYear&&(o.weekOfYear=ql(this.helper.id,e)),o.daysInWeek=7,n.daysInMonth&&(o.daysInMonth=this.helper.daysInMonth(o,r)),n.daysInYear){const i=this.helper.startOfCalendarYear(o),a=this.helper.addCalendar(i,{years:1},"constrain",r);o.daysInYear=this.helper.calendarDaysUntil(i,a,r)}return n.monthsInYear&&(o.monthsInYear=this.helper.monthsInYear(o,r)),n.inLeapYear&&(o.inLeapYear=this.helper.inLeapYear(o,r)),o}getFirstDayOfWeek(){return this.helper.getFirstDayOfWeek()}getMinimalDaysInFirstWeek(){return this.helper.getMinimalDaysInFirstWeek()}}for(const t of[Rm,jm,Vm,Um,Fm,Zm,Gm,Wm,Ym,qm,Hm,Bm,km,Am,Im,Pm,Nm,Lm]){const e=new t;go[e.id]=new Km(e)}na("calendarImpl",(function(t){return go[t]}));const Qr=Intl.DateTimeFormat;function Zn(t,e){let n=m(t,e);return typeof n=="function"&&(n=new Qr(m(t,sl),n(m(t,Qi))),(function(r,o,i){const a=ui(r);if(a===void 0)throw new TypeError("Missing slots for the given container");if(a[o]===void 0)throw new TypeError(`tried to reset ${o} which was not set`);a[o]=i})(t,e,n)),n}function Dr(t){return ot(t,jn)}class Jr{constructor(e=void 0,n=void 0){(function(r,o,i){const a=i!==void 0;let s;if(a){const d=["localeMatcher","calendar","numberingSystem","hour12","hourCycle","timeZone","weekday","era","year","month","day","dayPeriod","hour","minute","second","fractionalSecondDigits","timeZoneName","formatMatcher","dateStyle","timeStyle"];s=(function(y){if(y==null)throw new TypeError(`Expected object not ${y}`);return Object(y)})(i);const h=Object.create(null);for(let y=0;y<d.length;y++){const p=d[y];Object.prototype.hasOwnProperty.call(s,p)&&(h[p]=s[p])}s=h}else s=Object.create(null);const c=new Qr(o,s),l=c.resolvedOptions();if(an(r),a){const d=Object.assign(Object.create(null),l);for(const h in d)Object.prototype.hasOwnProperty.call(s,h)||delete d[h];d.hour12=s.hour12,d.hourCycle=s.hourCycle,K(r,Qi,d)}else K(r,Qi,s);K(r,sl,l.locale),K(r,jn,c),K(r,Xn,l.timeZone),K(r,xr,l.calendar),K(r,tl,i0),K(r,nl,r0),K(r,rl,o0),K(r,ol,n0),K(r,il,a0),K(r,al,s0);const u=a?s.timeZone:void 0;if(u===void 0)K(r,Xi,l.timeZone);else{const d=mi(u);if(d.startsWith("−"))throw new RangeError("Unicode minus (U+2212) is not supported in time zone offsets");K(r,Xi,nt(d))}})(this,e,n)}get format(){_(this,Dr);const e=Qm.bind(this);return Object.defineProperties(e,{length:{value:1,enumerable:!1,writable:!1,configurable:!0},name:{value:"",enumerable:!1,writable:!1,configurable:!0}}),e}formatRange(e,n){return _(this,Dr),e0.call(this,e,n)}formatToParts(e,...n){return _(this,Dr),Jm.call(this,e,...n)}formatRangeToParts(e,n){return _(this,Dr),t0.call(this,e,n)}resolvedOptions(){return _(this,Dr),Xm.call(this)}}"formatToParts"in Qr.prototype||delete Jr.prototype.formatToParts,"formatRangeToParts"in Qr.prototype||delete Jr.prototype.formatRangeToParts;const Dt=function(t=void 0,e=void 0){return new Jr(t,e)};function Xm(){const t=m(this,jn).resolvedOptions();return t.timeZone=m(this,Xi),t}function Qm(t,...e){let n,r,o=dr(t,this);return o.formatter?(n=o.formatter,r=[Mt(o.epochNs,"floor")]):(n=m(this,jn),r=[t,...e]),n.format(...r)}function Jm(t,...e){let n,r,o=dr(t,this);return o.formatter?(n=o.formatter,r=[Mt(o.epochNs,"floor")]):(n=m(this,jn),r=[t,...e]),n.formatToParts(...r)}function e0(t,e){if(t===void 0||e===void 0)throw new TypeError("Intl.DateTimeFormat.formatRange requires two values");const n=Ko(t),r=Ko(e);let o,i=[n,r];if(nn(n)!==nn(r))throw new TypeError("Intl.DateTimeFormat.formatRange accepts two values of the same type");if(nn(n)){if(!Xl(n,r))throw new TypeError("Intl.DateTimeFormat.formatRange accepts two values of the same type");const{epochNs:a,formatter:s}=dr(n,this),{epochNs:c,formatter:l}=dr(r,this);s&&(o=s,i=[Mt(a,"floor"),Mt(c,"floor")])}return o||(o=m(this,jn)),o.formatRange(...i)}function t0(t,e){if(t===void 0||e===void 0)throw new TypeError("Intl.DateTimeFormat.formatRange requires two values");const n=Ko(t),r=Ko(e);let o,i=[n,r];if(nn(n)!==nn(r))throw new TypeError("Intl.DateTimeFormat.formatRangeToParts accepts two values of the same type");if(nn(n)){if(!Xl(n,r))throw new TypeError("Intl.DateTimeFormat.formatRangeToParts accepts two values of the same type");const{epochNs:a,formatter:s}=dr(n,this),{epochNs:c,formatter:l}=dr(r,this);s&&(o=s,i=[Mt(a,"floor"),Mt(c,"floor")])}return o||(o=m(this,jn)),o.formatRangeToParts(...i)}function yo(t={},e={}){const n=Object.assign({},t),r=["year","month","day","hour","minute","second","weekday","dayPeriod","timeZoneName","dateStyle","timeStyle"];for(let o=0;o<r.length;o++){const i=r[o];n[i]=i in e?e[i]:n[i],n[i]!==!1&&n[i]!==void 0||delete n[i]}return n}function n0(t){const e=yo(t,{year:!1,month:!1,day:!1,weekday:!1,timeZoneName:!1,dateStyle:!1});if(e.timeStyle!=="long"&&e.timeStyle!=="full"||(delete e.timeStyle,Object.assign(e,{hour:"numeric",minute:"2-digit",second:"2-digit"})),!Ti(e)){if(po(t))throw new TypeError(`cannot format Temporal.PlainTime with options [${Object.keys(t)}]`);Object.assign(e,{hour:"numeric",minute:"numeric",second:"numeric"})}return e}function r0(t){const e={short:{year:"2-digit",month:"numeric"},medium:{year:"numeric",month:"short"},long:{year:"numeric",month:"long"},full:{year:"numeric",month:"long"}},n=yo(t,{day:!1,hour:!1,minute:!1,second:!1,weekday:!1,dayPeriod:!1,timeZoneName:!1,timeStyle:!1});if("dateStyle"in n&&n.dateStyle){const r=n.dateStyle;delete n.dateStyle,Object.assign(n,e[r])}if(!("year"in n||"month"in n||"era"in n)){if(po(t))throw new TypeError(`cannot format PlainYearMonth with options [${Object.keys(t)}]`);Object.assign(n,{year:"numeric",month:"numeric"})}return n}function o0(t){const e={short:{month:"numeric",day:"numeric"},medium:{month:"short",day:"numeric"},long:{month:"long",day:"numeric"},full:{month:"long",day:"numeric"}},n=yo(t,{year:!1,hour:!1,minute:!1,second:!1,weekday:!1,dayPeriod:!1,timeZoneName:!1,timeStyle:!1});if("dateStyle"in n&&n.dateStyle){const r=n.dateStyle;delete n.dateStyle,Object.assign(n,e[r])}if(!("month"in n)&&!("day"in n)){if(po(t))throw new TypeError(`cannot format PlainMonthDay with options [${Object.keys(t)}]`);Object.assign(n,{month:"numeric",day:"numeric"})}return n}function i0(t){const e=yo(t,{hour:!1,minute:!1,second:!1,dayPeriod:!1,timeZoneName:!1,timeStyle:!1});if(!_i(e)){if(po(t))throw new TypeError(`cannot format PlainDate with options [${Object.keys(t)}]`);Object.assign(e,{year:"numeric",month:"numeric",day:"numeric"})}return e}function a0(t){const e=yo(t,{timeZoneName:!1});if((e.timeStyle==="long"||e.timeStyle==="full")&&(delete e.timeStyle,Object.assign(e,{hour:"numeric",minute:"2-digit",second:"2-digit"}),e.dateStyle)&&(Object.assign(e,{short:{year:"numeric",month:"numeric",day:"numeric"},medium:{year:"numeric",month:"short",day:"numeric"},long:{year:"numeric",month:"long",day:"numeric"},full:{year:"numeric",month:"long",day:"numeric",weekday:"long"}}[e.dateStyle]),delete e.dateStyle),!Ti(e)&&!_i(e)){if(po(t))throw new TypeError(`cannot format PlainDateTime with options [${Object.keys(t)}]`);Object.assign(e,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})}return e}function s0(t){let e=t;return Ti(e)||_i(e)||(e=Object.assign({},e,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})),e}function _i(t){return"year"in t||"month"in t||"day"in t||"weekday"in t||"dateStyle"in t||"era"in t}function Ti(t){return"hour"in t||"minute"in t||"second"in t||"timeStyle"in t||"dayPeriod"in t||"fractionalSecondDigits"in t}function po(t){return _i(t)||Ti(t)||"dateStyle"in t||"timeStyle"in t||"timeZoneName"in t}function nn(t){return _e(t)||Se(t)||ye(t)||X(t)||Ne(t)||mt(t)||Pe(t)}function Ko(t){return nn(t)?t:hi(t)}function Xl(t,e){return!(!nn(t)||!nn(e)||Se(t)&&!Se(e)||_e(t)&&!_e(e)||ye(t)&&!ye(e)||X(t)&&!X(e)||Ne(t)&&!Ne(e)||mt(t)&&!mt(e)||Pe(t)&&!Pe(e))}function dr(t,e){if(Se(t)){const n={isoDate:{year:1970,month:1,day:1},time:m(t,Te)};return{epochNs:Ue(m(e,Xn),n,"compatible"),formatter:Zn(e,ol)}}if(Ne(t)){const n=m(t,M),r=m(e,xr);if(n!==r)throw new RangeError(`cannot format PlainYearMonth with calendar ${n} in locale with calendar ${r}`);const o=ie(m(t,F),{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});return{epochNs:Ue(m(e,Xn),o,"compatible"),formatter:Zn(e,nl)}}if(mt(t)){const n=m(t,M),r=m(e,xr);if(n!==r)throw new RangeError(`cannot format PlainMonthDay with calendar ${n} in locale with calendar ${r}`);const o=ie(m(t,F),{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});return{epochNs:Ue(m(e,Xn),o,"compatible"),formatter:Zn(e,rl)}}if(_e(t)){const n=m(t,M),r=m(e,xr);if(n!=="iso8601"&&n!==r)throw new RangeError(`cannot format PlainDate with calendar ${n} in locale with calendar ${r}`);const o=ie(m(t,F),{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});return{epochNs:Ue(m(e,Xn),o,"compatible"),formatter:Zn(e,tl)}}if(ye(t)){const n=m(t,M),r=m(e,xr);if(n!=="iso8601"&&n!==r)throw new RangeError(`cannot format PlainDateTime with calendar ${n} in locale with calendar ${r}`);const o=m(t,be);return{epochNs:Ue(m(e,Xn),o,"compatible"),formatter:Zn(e,il)}}if(X(t))throw new TypeError("Temporal.ZonedDateTime not supported in DateTimeFormat methods. Use toLocaleString() instead.");return Pe(t)?{epochNs:m(t,U),formatter:Zn(e,al)}:{}}function Ql(t){const e=Object.create(null);return e.years=m(t,He),e.months=m(t,Be),e.weeks=m(t,st),e.days=m(t,Ze),e.hours=m(t,Ge),e.minutes=m(t,Ke),e.seconds=m(t,Xe),e.milliseconds=m(t,Qe),e.microseconds=m(t,Je),e.nanoseconds=m(t,ct),e}Jr.prototype.constructor=Dt,Object.defineProperty(Dt,"prototype",{value:Jr.prototype,writable:!1,enumerable:!1,configurable:!1}),Dt.supportedLocalesOf=Qr.supportedLocalesOf,sn(Dt,"Intl.DateTimeFormat");const{format:c0,formatToParts:l0}=Intl.DurationFormat?.prototype??Object.create(null);function Jl(t){Intl.DurationFormat.prototype.resolvedOptions.call(this);const e=Ql(Ot(t));return c0.call(this,e)}Intl.DurationFormat?.prototype&&(Intl.DurationFormat.prototype.format=Jl,Intl.DurationFormat.prototype.formatToParts=function(t){Intl.DurationFormat.prototype.resolvedOptions.call(this);const e=Ql(Ot(t));return l0.call(this,e)});class Ya{constructor(e){if(arguments.length<1)throw new TypeError("missing argument: epochNanoseconds is required");Ol(this,Go(e))}get epochMilliseconds(){return _(this,Pe),Mt(m(this,U),"floor")}get epochNanoseconds(){return _(this,Pe),Fl(f.BigInt(m(this,U)))}add(e){return _(this,Pe),pc("add",this,e)}subtract(e){return _(this,Pe),pc("subtract",this,e)}until(e,n=void 0){return _(this,Pe),uc("until",this,e,n)}since(e,n=void 0){return _(this,Pe),uc("since",this,e,n)}round(e){if(_(this,Pe),e===void 0)throw new TypeError("options parameter is required");const n=typeof e=="string"?Nn("smallestUnit",e):N(e),r=mr(n),o=kt(n,"halfExpand"),i=ut(n,"smallestUnit","time",on);return gr(r,{hour:24,minute:1440,second:86400,millisecond:864e5,microsecond:864e8,nanosecond:864e11}[i],!0),Lt(fa(m(this,U),r,i,o))}equals(e){_(this,Pe);const n=kr(e),r=m(this,U),o=m(n,U);return f.equal(f.BigInt(r),f.BigInt(o))}toString(e=void 0){_(this,Pe);const n=N(e),r=ao(n),o=kt(n,"trunc"),i=ut(n,"smallestUnit","time",void 0);if(i==="hour")throw new RangeError('smallestUnit must be a time unit other than "hour"');let a=n.timeZone;a!==void 0&&(a=nt(a));const{precision:s,unit:c,increment:l}=so(i,r);return tc(Lt(fa(m(this,U),l,c,o)),a,s)}toJSON(){return _(this,Pe),tc(this,void 0,"auto")}toLocaleString(e=void 0,n=void 0){return _(this,Pe),new Dt(e,n).format(this)}valueOf(){_n("Instant")}toZonedDateTimeISO(e){_(this,Pe);const n=nt(e);return Ye(m(this,U),n,"iso8601")}static fromEpochMilliseconds(e){return Lt(Yt(hi(e)))}static fromEpochNanoseconds(e){return Lt(Go(e))}static from(e){return kr(e)}static compare(e,n){const r=kr(e),o=kr(n),i=m(r,U),a=m(o,U);return f.lessThan(i,a)?-1:f.greaterThan(i,a)?1:0}}sn(Ya,"Temporal.Instant");class za{constructor(e,n,r,o="iso8601"){const i=V(e),a=V(n),s=V(r),c=it(o===void 0?"iso8601":$e(o));An(i,a,s),El(this,{year:i,month:a,day:s},c)}get calendarId(){return _(this,_e),m(this,M)}get era(){return Ve(this,"era")}get eraYear(){return Ve(this,"eraYear")}get year(){return Ve(this,"year")}get month(){return Ve(this,"month")}get monthCode(){return Ve(this,"monthCode")}get day(){return Ve(this,"day")}get dayOfWeek(){return Ve(this,"dayOfWeek")}get dayOfYear(){return Ve(this,"dayOfYear")}get weekOfYear(){return Ve(this,"weekOfYear")?.week}get yearOfWeek(){return Ve(this,"weekOfYear")?.year}get daysInWeek(){return Ve(this,"daysInWeek")}get daysInMonth(){return Ve(this,"daysInMonth")}get daysInYear(){return Ve(this,"daysInYear")}get monthsInYear(){return Ve(this,"monthsInYear")}get inLeapYear(){return Ve(this,"inLeapYear")}with(e,n=void 0){if(_(this,_e),!Ce(e))throw new TypeError("invalid argument");hr(e);const r=m(this,M);let o=rt(r,m(this,F));return o=kn(r,o,wt(r,e,["year","month","monthCode","day"],[],"partial")),tt(vn(r,o,re(N(n))),r)}withCalendar(e){_(this,_e);const n=fo(e);return tt(m(this,F),n)}add(e,n=void 0){return _(this,_e),bc("add",this,e,n)}subtract(e,n=void 0){return _(this,_e),bc("subtract",this,e,n)}until(e,n=void 0){return _(this,_e),dc("until",this,e,n)}since(e,n=void 0){return _(this,_e),dc("since",this,e,n)}equals(e){_(this,_e);const n=$r(e);return Vt(m(this,F),m(n,F))===0&&Ut(m(this,M),m(n,M))}toString(e=void 0){return _(this,_e),nc(this,io(N(e)))}toJSON(){return _(this,_e),nc(this)}toLocaleString(e=void 0,n=void 0){return _(this,_e),new Dt(e,n).format(this)}valueOf(){_n("PlainDate")}toPlainDateTime(e=void 0){_(this,_e);const n=wl(e);return Tt(ie(m(this,F),n),m(this,M))}toZonedDateTime(e){let n,r;if(_(this,_e),Ce(e)){const a=e.timeZone;a===void 0?n=nt(e):(n=nt(a),r=e.plainTime)}else n=nt(e);const o=m(this,F);let i;return r===void 0?i=ln(n,o):(r=fn(r),i=Ue(n,ie(o,m(r,Te)),"compatible")),Ye(i,n,m(this,M))}toPlainYearMonth(){_(this,_e);const e=m(this,M);return nr(Br(e,rt(e,m(this,F)),"constrain"),e)}toPlainMonthDay(){_(this,_e);const e=m(this,M);return er(Wo(e,rt(e,m(this,F)),"constrain"),e)}static from(e,n=void 0){return $r(e,n)}static compare(e,n){const r=$r(e),o=$r(n);return Vt(m(r,F),m(o,F))}}function Ve(t,e){_(t,_e);const n=m(t,F);return co(t).isoToDate(n,{[e]:!0})[e]}sn(za,"Temporal.PlainDate");class Ua{constructor(e,n,r,o=0,i=0,a=0,s=0,c=0,l=0,u="iso8601"){const d=V(e),h=V(n),y=V(r),p=o===void 0?0:V(o),g=i===void 0?0:V(i),v=a===void 0?0:V(a),w=s===void 0?0:V(s),D=c===void 0?0:V(c),O=l===void 0?0:V(l),C=it(u===void 0?"iso8601":$e(u));ka(d,h,y,p,g,v,w,D,O),_l(this,{isoDate:{year:d,month:h,day:y},time:{hour:p,minute:g,second:v,millisecond:w,microsecond:D,nanosecond:O}},C)}get calendarId(){return _(this,ye),m(this,M)}get year(){return We(this,"year")}get month(){return We(this,"month")}get monthCode(){return We(this,"monthCode")}get day(){return We(this,"day")}get hour(){return Gn(this,"hour")}get minute(){return Gn(this,"minute")}get second(){return Gn(this,"second")}get millisecond(){return Gn(this,"millisecond")}get microsecond(){return Gn(this,"microsecond")}get nanosecond(){return Gn(this,"nanosecond")}get era(){return We(this,"era")}get eraYear(){return We(this,"eraYear")}get dayOfWeek(){return We(this,"dayOfWeek")}get dayOfYear(){return We(this,"dayOfYear")}get weekOfYear(){return We(this,"weekOfYear")?.week}get yearOfWeek(){return We(this,"weekOfYear")?.year}get daysInWeek(){return We(this,"daysInWeek")}get daysInYear(){return We(this,"daysInYear")}get daysInMonth(){return We(this,"daysInMonth")}get monthsInYear(){return We(this,"monthsInYear")}get inLeapYear(){return We(this,"inLeapYear")}with(e,n=void 0){if(_(this,ye),!Ce(e))throw new TypeError("invalid argument");hr(e);const r=m(this,M),o=m(this,be);let i={...rt(r,o.isoDate),...o.time};return i=kn(r,i,wt(r,e,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond"],"partial")),Tt(lo(r,i,re(N(n))),r)}withPlainTime(e=void 0){_(this,ye);const n=wl(e);return Tt(ie(m(this,be).isoDate,n),m(this,M))}withCalendar(e){_(this,ye);const n=fo(e);return Tt(m(this,be),n)}add(e,n=void 0){return _(this,ye),vc("add",this,e,n)}subtract(e,n=void 0){return _(this,ye),vc("subtract",this,e,n)}until(e,n=void 0){return _(this,ye),fc("until",this,e,n)}since(e,n=void 0){return _(this,ye),fc("since",this,e,n)}round(e){if(_(this,ye),e===void 0)throw new TypeError("options parameter is required");const n=typeof e=="string"?Nn("smallestUnit",e):N(e),r=mr(n),o=kt(n,"halfExpand"),i=ut(n,"smallestUnit","time",on,["day"]),a={day:1,hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[i];gr(r,a,a===1);const s=m(this,be);return Tt(r===1&&i==="nanosecond"?s:ha(s,r,i,o),m(this,M))}equals(e){_(this,ye);const n=Rr(e);return ur(m(this,be),m(n,be))===0&&Ut(m(this,M),m(n,M))}toString(e=void 0){_(this,ye);const n=N(e),r=io(n),o=ao(n),i=kt(n,"trunc"),a=ut(n,"smallestUnit","time",void 0);if(a==="hour")throw new RangeError('smallestUnit must be a time unit other than "hour"');const{precision:s,unit:c,increment:l}=so(a,o),u=ha(m(this,be),l,c,i);return In(u),Gr(u,m(this,M),s,r)}toJSON(){return _(this,ye),Gr(m(this,be),m(this,M),"auto")}toLocaleString(e=void 0,n=void 0){return _(this,ye),new Dt(e,n).format(this)}valueOf(){_n("PlainDateTime")}toZonedDateTime(e,n=void 0){_(this,ye);const r=nt(e),o=Ur(N(n));return Ye(Ue(r,m(this,be),o),r,m(this,M))}toPlainDate(){return _(this,ye),tt(m(this,be).isoDate,m(this,M))}toPlainTime(){return _(this,ye),Xt(m(this,be).time)}static from(e,n=void 0){return Rr(e,n)}static compare(e,n){const r=Rr(e),o=Rr(n);return ur(m(r,be),m(o,be))}}function We(t,e){_(t,ye);const n=m(t,be).isoDate;return co(t).isoToDate(n,{[e]:!0})[e]}function Gn(t,e){return _(t,ye),m(t,be).time[e]}sn(Ua,"Temporal.PlainDateTime");class fr{constructor(e=0,n=0,r=0,o=0,i=0,a=0,s=0,c=0,l=0,u=0){const d=e===void 0?0:Rt(e),h=n===void 0?0:Rt(n),y=r===void 0?0:Rt(r),p=o===void 0?0:Rt(o),g=i===void 0?0:Rt(i),v=a===void 0?0:Rt(a),w=s===void 0?0:Rt(s),D=c===void 0?0:Rt(c),O=l===void 0?0:Rt(l),C=u===void 0?0:Rt(u);wi(d,h,y,p,g,v,w,D,O,C),an(this),K(this,He,d),K(this,Be,h),K(this,st,y),K(this,Ze,p),K(this,Ge,g),K(this,Ke,v),K(this,Xe,w),K(this,Qe,D),K(this,Je,O),K(this,ct,C)}get years(){return _(this,Ee),m(this,He)}get months(){return _(this,Ee),m(this,Be)}get weeks(){return _(this,Ee),m(this,st)}get days(){return _(this,Ee),m(this,Ze)}get hours(){return _(this,Ee),m(this,Ge)}get minutes(){return _(this,Ee),m(this,Ke)}get seconds(){return _(this,Ee),m(this,Xe)}get milliseconds(){return _(this,Ee),m(this,Qe)}get microseconds(){return _(this,Ee),m(this,Je)}get nanoseconds(){return _(this,Ee),m(this,ct)}get sign(){return _(this,Ee),Bo(this)}get blank(){return _(this,Ee),Bo(this)===0}with(e){_(this,Ee);const n=vl(e),{years:r=m(this,He),months:o=m(this,Be),weeks:i=m(this,st),days:a=m(this,Ze),hours:s=m(this,Ge),minutes:c=m(this,Ke),seconds:l=m(this,Xe),milliseconds:u=m(this,Qe),microseconds:d=m(this,Je),nanoseconds:h=m(this,ct)}=n;return new fr(r,o,i,a,s,c,l,u,d,h)}negated(){return _(this,Ee),ft(this)}abs(){return _(this,Ee),new fr(Math.abs(m(this,He)),Math.abs(m(this,Be)),Math.abs(m(this,st)),Math.abs(m(this,Ze)),Math.abs(m(this,Ge)),Math.abs(m(this,Ke)),Math.abs(m(this,Xe)),Math.abs(m(this,Qe)),Math.abs(m(this,Je)),Math.abs(m(this,ct)))}add(e){return _(this,Ee),yc("add",this,e)}subtract(e){return _(this,Ee),yc("subtract",this,e)}round(e){if(_(this,Ee),e===void 0)throw new TypeError("options parameter is required");const n=Gt(this),r=typeof e=="string"?Nn("smallestUnit",e):N(e);let o=ut(r,"largestUnit","datetime",void 0,["auto"]),{plainRelativeTo:i,zonedRelativeTo:a}=Wi(r);const s=mr(r),c=kt(r,"halfExpand");let l=ut(r,"smallestUnit","datetime",void 0),u=!0;l||(u=!1,l="nanosecond");const d=Jt(n,l);let h=!0;if(o||(h=!1,o=d),o==="auto"&&(o=d),!u&&!h)throw new RangeError("at least one of smallestUnit or largestUnit is required");if(Jt(o,l)!==o)throw new RangeError(`largestUnit ${o} cannot be smaller than smallestUnit ${l}`);const y={hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[l];if(y!==void 0&&gr(s,y,!1),s>1&&Kt(l)==="date"&&o!==l)throw new RangeError("For calendar units with roundingIncrement > 1, use largestUnit = smallestUnit");if(a){let g=Qn(this);const v=m(a,ce),w=m(a,M),D=m(a,U);return g=Ul(D,Pr(D,v,w,g),v,w,o,s,l,c),Kt(o)==="date"&&(o="hour"),Ct(g,o)}if(i){let g=jt(this);const v=lr({hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0},g.time),w=m(i,F),D=m(i,M),O=bt(D,w,ze(g.date,v.deltaDays),"constrain");return g=zl(ie(w,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),ie(O,v),D,o,s,l,c),Ct(g,o)}if(Pt(n))throw new RangeError(`a starting point is required for ${n}s balancing`);if(Pt(o))throw new RangeError(`a starting point is required for ${o}s balancing`);let p=jt(this);if(l==="day"){const{quotient:g,remainder:v}=p.time.divmod(Uo);let w=p.date.days+g+Fr(v,"day");w=hn(w,s,c),p=en({years:0,months:0,weeks:0,days:w},Q.ZERO)}else p=en({years:0,months:0,weeks:0,days:0},Zo(p.time,s,l,c));return Ct(p,o)}total(e){if(_(this,Ee),e===void 0)throw new TypeError("options argument is required");const n=typeof e=="string"?Nn("unit",e):N(e);let{plainRelativeTo:r,zonedRelativeTo:o}=Wi(n);const i=ut(n,"unit","datetime",on);if(o){const s=Qn(this),c=m(o,ce),l=m(o,M),u=m(o,U);return(function(d,h,y,p,g){return Kt(g)==="time"?Fr(Q.fromEpochNsDiff(h,d),g):lc(jl(d,h,y,p,g),h,St(y,d),y,p,g)})(u,Pr(u,c,l,s),c,l,i)}if(r){const s=jt(this);let c=lr({hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0},s.time);const l=m(r,F),u=m(r,M),d=bt(u,l,ze(s.date,c.deltaDays),"constrain");return(function(h,y,p,g){if(ur(h,y)==0)return 0;In(h),In(y);const v=Ll(h,y,p,g);return g==="nanosecond"?f.toNumber(v.time.totalNs):lc(v,Le(y),h,null,p,g)})(ie(l,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),ie(d,c),u,i)}const a=Gt(this);if(Pt(a))throw new RangeError(`a starting point is required for ${a}s total`);if(Pt(i))throw new RangeError(`a starting point is required for ${i}s total`);return Fr(jt(this).time,i)}toString(e=void 0){_(this,Ee);const n=N(e),r=ao(n),o=kt(n,"trunc"),i=ut(n,"smallestUnit","time",void 0);if(i==="hour"||i==="minute")throw new RangeError('smallestUnit must be a time unit other than "hours" or "minutes"');const{precision:a,unit:s,increment:c}=so(i,r);if(s==="nanosecond"&&c===1)return Mo(this,a);const l=Gt(this);let u=Qn(this);const d=Zo(u.time,c,s,o);return u=en(u.date,d),Mo(Ct(u,Jt(l,"second")),a)}toJSON(){return _(this,Ee),Mo(this,"auto")}toLocaleString(e=void 0,n=void 0){if(_(this,Ee),typeof Intl.DurationFormat=="function"){const r=new Intl.DurationFormat(e,n);return Jl.call(r,this)}return console.warn("Temporal.Duration.prototype.toLocaleString() requires Intl.DurationFormat."),Mo(this,"auto")}valueOf(){_n("Duration")}static from(e){return Ot(e)}static compare(e,n,r=void 0){const o=Ot(e),i=Ot(n),a=N(r),{plainRelativeTo:s,zonedRelativeTo:c}=Wi(a);if(m(o,He)===m(i,He)&&m(o,Be)===m(i,Be)&&m(o,st)===m(i,st)&&m(o,Ze)===m(i,Ze)&&m(o,Ge)===m(i,Ge)&&m(o,Ke)===m(i,Ke)&&m(o,Xe)===m(i,Xe)&&m(o,Qe)===m(i,Qe)&&m(o,Je)===m(i,Je)&&m(o,ct)===m(i,ct))return 0;const l=Gt(o),u=Gt(i),d=Qn(o),h=Qn(i);if(c&&(Kt(l)==="date"||Kt(u)==="date")){const w=m(c,ce),D=m(c,M),O=m(c,U),C=Pr(O,w,D,d),E=Pr(O,w,D,h);return lt(f.toNumber(f.subtract(C,E)))}let y=d.date.days,p=h.date.days;if(Pt(l)||Pt(u)){if(!s)throw new RangeError("A starting point is required for years, months, or weeks comparison");y=cc(d.date,s),p=cc(h.date,s)}const g=d.time.add24HourDays(y),v=h.time.add24HourDays(p);return g.cmp(v)}}sn(fr,"Temporal.Duration");class Fa{constructor(e,n,r="iso8601",o=1972){const i=V(e),a=V(n),s=it(r===void 0?"iso8601":$e(r)),c=V(o);An(c,i,a),Tl(this,{year:c,month:i,day:a},s)}get monthCode(){return Cc(this,"monthCode")}get day(){return Cc(this,"day")}get calendarId(){return _(this,mt),m(this,M)}with(e,n=void 0){if(_(this,mt),!Ce(e))throw new TypeError("invalid argument");hr(e);const r=m(this,M);let o=rt(r,m(this,F),"month-day");return o=kn(r,o,wt(r,e,["year","month","monthCode","day"],[],"partial")),er(Wo(r,o,re(N(n))),r)}equals(e){_(this,mt);const n=Js(e);return Vt(m(this,F),m(n,F))===0&&Ut(m(this,M),m(n,M))}toString(e=void 0){return _(this,mt),oc(this,io(N(e)))}toJSON(){return _(this,mt),oc(this)}toLocaleString(e=void 0,n=void 0){return _(this,mt),new Dt(e,n).format(this)}valueOf(){_n("PlainMonthDay")}toPlainDate(e){if(_(this,mt),!Ce(e))throw new TypeError("argument should be an object");const n=m(this,M);return tt(vn(n,kn(n,rt(n,m(this,F),"month-day"),wt(n,e,["year"],[],[])),"constrain"),n)}static from(e,n=void 0){return Js(e,n)}}function Cc(t,e){_(t,mt);const n=m(t,F);return co(t).isoToDate(n,{[e]:!0})[e]}function Hi(t){return St(t,ya())}sn(Fa,"Temporal.PlainMonthDay");const eu={instant:()=>Lt(ya()),plainDateTimeISO:(t=Cr())=>Tt(Hi(nt(t)),"iso8601"),plainDateISO:(t=Cr())=>tt(Hi(nt(t)).isoDate,"iso8601"),plainTimeISO:(t=Cr())=>Xt(Hi(nt(t)).time),timeZoneId:()=>Cr(),zonedDateTimeISO:(t=Cr())=>{const e=nt(t);return Ye(ya(),e,"iso8601")},[Symbol.toStringTag]:"Temporal.Now"};Object.defineProperty(eu,Symbol.toStringTag,{value:"Temporal.Now",writable:!1,enumerable:!1,configurable:!0});class bo{constructor(e=0,n=0,r=0,o=0,i=0,a=0){const s=e===void 0?0:V(e),c=n===void 0?0:V(n),l=r===void 0?0:V(r),u=o===void 0?0:V(o),d=i===void 0?0:V(i),h=a===void 0?0:V(a);vi(s,c,l,u,d,h),Cl(this,{hour:s,minute:c,second:l,millisecond:u,microsecond:d,nanosecond:h})}get hour(){return _(this,Se),m(this,Te).hour}get minute(){return _(this,Se),m(this,Te).minute}get second(){return _(this,Se),m(this,Te).second}get millisecond(){return _(this,Se),m(this,Te).millisecond}get microsecond(){return _(this,Se),m(this,Te).microsecond}get nanosecond(){return _(this,Se),m(this,Te).nanosecond}with(e,n=void 0){if(_(this,Se),!Ce(e))throw new TypeError("invalid argument");hr(e);const r=aa(e,"partial"),o=aa(this);let{hour:i,minute:a,second:s,millisecond:c,microsecond:l,nanosecond:u}=Object.assign(o,r);const d=re(N(n));return{hour:i,minute:a,second:s,millisecond:c,microsecond:l,nanosecond:u}=yi(i,a,s,c,l,u,d),new bo(i,a,s,c,l,u)}add(e){return _(this,Se),wc("add",this,e)}subtract(e){return _(this,Se),wc("subtract",this,e)}until(e,n=void 0){return _(this,Se),hc("until",this,e,n)}since(e,n=void 0){return _(this,Se),hc("since",this,e,n)}round(e){if(_(this,Se),e===void 0)throw new TypeError("options parameter is required");const n=typeof e=="string"?Nn("smallestUnit",e):N(e),r=mr(n),o=kt(n,"halfExpand"),i=ut(n,"smallestUnit","time",on);return gr(r,{hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[i],!1),Xt(ma(m(this,Te),r,i,o))}equals(e){_(this,Se);const n=fn(e);return ga(m(this,Te),m(n,Te))===0}toString(e=void 0){_(this,Se);const n=N(e),r=ao(n),o=kt(n,"trunc"),i=ut(n,"smallestUnit","time",void 0);if(i==="hour")throw new RangeError('smallestUnit must be a time unit other than "hour"');const{precision:a,unit:s,increment:c}=so(i,r);return rc(ma(m(this,Te),c,s,o),a)}toJSON(){return _(this,Se),rc(m(this,Te),"auto")}toLocaleString(e=void 0,n=void 0){return _(this,Se),new Dt(e,n).format(this)}valueOf(){_n("PlainTime")}static from(e,n=void 0){return fn(e,n)}static compare(e,n){const r=fn(e),o=fn(n);return ga(m(r,Te),m(o,Te))}}sn(bo,"Temporal.PlainTime");class Va{constructor(e,n,r="iso8601",o=1){const i=V(e),a=V(n),s=it(r===void 0?"iso8601":$e(r)),c=V(o);An(i,a,c),Dl(this,{year:i,month:a,day:c},s)}get year(){return Ht(this,"year")}get month(){return Ht(this,"month")}get monthCode(){return Ht(this,"monthCode")}get calendarId(){return _(this,Ne),m(this,M)}get era(){return Ht(this,"era")}get eraYear(){return Ht(this,"eraYear")}get daysInMonth(){return Ht(this,"daysInMonth")}get daysInYear(){return Ht(this,"daysInYear")}get monthsInYear(){return Ht(this,"monthsInYear")}get inLeapYear(){return Ht(this,"inLeapYear")}with(e,n=void 0){if(_(this,Ne),!Ce(e))throw new TypeError("invalid argument");hr(e);const r=m(this,M);let o=rt(r,m(this,F),"year-month");return o=kn(r,o,wt(r,e,["year","month","monthCode"],[],"partial")),nr(Br(r,o,re(N(n))),r)}add(e,n=void 0){return _(this,Ne),Ec("add",this,e,n)}subtract(e,n=void 0){return _(this,Ne),Ec("subtract",this,e,n)}until(e,n=void 0){return _(this,Ne),mc("until",this,e,n)}since(e,n=void 0){return _(this,Ne),mc("since",this,e,n)}equals(e){_(this,Ne);const n=Ar(e);return Vt(m(this,F),m(n,F))===0&&Ut(m(this,M),m(n,M))}toString(e=void 0){return _(this,Ne),ic(this,io(N(e)))}toJSON(){return _(this,Ne),ic(this)}toLocaleString(e=void 0,n=void 0){return _(this,Ne),new Dt(e,n).format(this)}valueOf(){_n("PlainYearMonth")}toPlainDate(e){if(_(this,Ne),!Ce(e))throw new TypeError("argument should be an object");const n=m(this,M);return tt(vn(n,kn(n,rt(n,m(this,F),"year-month"),wt(n,e,["day"],[],[])),"constrain"),n)}static from(e,n=void 0){return Ar(e,n)}static compare(e,n){const r=Ar(e),o=Ar(n);return Vt(m(r,F),m(o,F))}}function Ht(t,e){_(t,Ne);const n=m(t,F);return co(t).isoToDate(n,{[e]:!0})[e]}sn(Va,"Temporal.PlainYearMonth");const u0=Dt.prototype.resolvedOptions;class Wa{constructor(e,n,r="iso8601"){if(arguments.length<1)throw new TypeError("missing argument: epochNanoseconds is required");const o=Go(e);let i=$e(n);const{tzName:a,offsetMinutes:s}=mn(i);if(s===void 0){const c=qo(a);if(!c)throw new RangeError(`unknown time zone ${a}`);i=c.identifier}else i=xa(s);Sl(this,o,i,it(r===void 0?"iso8601":$e(r)))}get calendarId(){return _(this,X),m(this,M)}get timeZoneId(){return _(this,X),m(this,ce)}get year(){return qe(this,"year")}get month(){return qe(this,"month")}get monthCode(){return qe(this,"monthCode")}get day(){return qe(this,"day")}get hour(){return Kn(this,"hour")}get minute(){return Kn(this,"minute")}get second(){return Kn(this,"second")}get millisecond(){return Kn(this,"millisecond")}get microsecond(){return Kn(this,"microsecond")}get nanosecond(){return Kn(this,"nanosecond")}get era(){return qe(this,"era")}get eraYear(){return qe(this,"eraYear")}get epochMilliseconds(){return _(this,X),Mt(m(this,U),"floor")}get epochNanoseconds(){return _(this,X),Fl(m(this,U))}get dayOfWeek(){return qe(this,"dayOfWeek")}get dayOfYear(){return qe(this,"dayOfYear")}get weekOfYear(){return qe(this,"weekOfYear")?.week}get yearOfWeek(){return qe(this,"weekOfYear")?.year}get hoursInDay(){_(this,X);const e=m(this,ce),n=It(this).isoDate,r=dt(n.year,n.month,n.day+1),o=ln(e,n),i=ln(e,r);return Fr(Q.fromEpochNsDiff(i,o),"hour")}get daysInWeek(){return qe(this,"daysInWeek")}get daysInMonth(){return qe(this,"daysInMonth")}get daysInYear(){return qe(this,"daysInYear")}get monthsInYear(){return qe(this,"monthsInYear")}get inLeapYear(){return qe(this,"inLeapYear")}get offset(){return _(this,X),sa(Qt(m(this,ce),m(this,U)))}get offsetNanoseconds(){return _(this,X),Qt(m(this,ce),m(this,U))}with(e,n=void 0){if(_(this,X),!Ce(e))throw new TypeError("invalid zoned-date-time-like");hr(e);const r=m(this,M),o=m(this,ce),i=Qt(o,m(this,U)),a=It(this);let s={...rt(r,a.isoDate),...a.time,offset:sa(i)};s=kn(r,s,wt(r,e,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond","offset"],"partial"));const c=N(n),l=Ur(c),u=ko(c,"prefer"),d=lo(r,s,re(c)),h=yr(s.offset);return Ye(Vo(d.isoDate,d.time,"option",h,o,l,u,!1),o,r)}withPlainTime(e=void 0){_(this,X);const n=m(this,ce),r=m(this,M),o=It(this).isoDate;let i;return i=e===void 0?ln(n,o):Ue(n,ie(o,m(fn(e),Te)),"compatible"),Ye(i,n,r)}withTimeZone(e){_(this,X);const n=nt(e);return Ye(m(this,U),n,m(this,M))}withCalendar(e){_(this,X);const n=fo(e);return Ye(m(this,U),m(this,ce),n)}add(e,n=void 0){return _(this,X),_c("add",this,e,n)}subtract(e,n=void 0){return _(this,X),_c("subtract",this,e,n)}until(e,n=void 0){return _(this,X),gc("until",this,e,n)}since(e,n=void 0){return _(this,X),gc("since",this,e,n)}round(e){if(_(this,X),e===void 0)throw new TypeError("options parameter is required");const n=typeof e=="string"?Nn("smallestUnit",e):N(e),r=mr(n),o=kt(n,"halfExpand"),i=ut(n,"smallestUnit","time",on,["day"]),a={day:1,hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[i];if(gr(r,a,a===1),i==="nanosecond"&&r===1)return Ye(m(this,U),m(this,ce),m(this,M));const s=m(this,ce),c=m(this,U),l=It(this);let u;if(i==="day"){const d=l.isoDate,h=dt(d.year,d.month,d.day+1),y=ln(s,d),p=ln(s,h),g=f.subtract(p,y);u=Q.fromEpochNsDiff(c,y).round(g,o).addToEpochNs(y)}else{const d=ha(l,r,i,o),h=Qt(s,c);u=Vo(d.isoDate,d.time,"option",h,s,"compatible","prefer",!1)}return Ye(u,s,m(this,M))}equals(e){_(this,X);const n=Ir(e),r=m(this,U),o=m(n,U);return!!f.equal(f.BigInt(r),f.BigInt(o))&&!!Ml(m(this,ce),m(n,ce))&&Ut(m(this,M),m(n,M))}toString(e=void 0){_(this,X);const n=N(e),r=io(n),o=ao(n),i=(function(h){return tn(h,"offset",["auto","never"],"auto")})(n),a=kt(n,"trunc"),s=ut(n,"smallestUnit","time",void 0);if(s==="hour")throw new RangeError('smallestUnit must be a time unit other than "hour"');const c=(function(h){return tn(h,"timeZoneName",["auto","never","critical"],"auto")})(n),{precision:l,unit:u,increment:d}=so(s,o);return ac(this,l,r,c,i,{unit:u,increment:d,roundingMode:a})}toLocaleString(e=void 0,n=void 0){_(this,X);const r=N(n),o=Object.create(null);if((function(c,l,u,d){if(l==null)return;const h=Reflect.ownKeys(l);for(let y=0;y<h.length;y++){const p=h[y];if(!u.some((g=>Object.is(g,p)))&&Object.prototype.propertyIsEnumerable.call(l,p)){const g=l[p];c[p]=g}}})(o,r,["timeZone"]),r.timeZone!==void 0)throw new TypeError("ZonedDateTime toLocaleString does not accept a timeZone option");if(o.year===void 0&&o.month===void 0&&o.day===void 0&&o.era===void 0&&o.weekday===void 0&&o.dateStyle===void 0&&o.hour===void 0&&o.minute===void 0&&o.second===void 0&&o.fractionalSecondDigits===void 0&&o.timeStyle===void 0&&o.dayPeriod===void 0&&o.timeZoneName===void 0&&(o.timeZoneName="short"),o.timeZone=m(this,ce),sc(o.timeZone))throw new RangeError("toLocaleString does not currently support offset time zones");const i=new Dt(e,o),a=u0.call(i).calendar,s=m(this,M);if(s!=="iso8601"&&a!=="iso8601"&&!Ut(a,s))throw new RangeError(`cannot format ZonedDateTime with calendar ${s} in locale with calendar ${a}`);return i.format(Lt(m(this,U)))}toJSON(){return _(this,X),ac(this,"auto")}valueOf(){_n("ZonedDateTime")}startOfDay(){_(this,X);const e=m(this,ce);return Ye(ln(e,It(this).isoDate),e,m(this,M))}getTimeZoneTransition(e){_(this,X);const n=m(this,ce);if(e===void 0)throw new TypeError("options parameter is required");const r=tn(typeof e=="string"?Nn("direction",e):N(e),"direction",["next","previous"],on);if(r===void 0)throw new TypeError("direction option is required");if(sc(n)||n==="UTC")return null;const o=m(this,U),i=r==="next"?Ra(n,o):la(n,o);return i===null?null:Ye(i,n,m(this,M))}toInstant(){return _(this,X),Lt(m(this,U))}toPlainDate(){return _(this,X),tt(It(this).isoDate,m(this,M))}toPlainTime(){return _(this,X),Xt(It(this).time)}toPlainDateTime(){return _(this,X),Tt(It(this),m(this,M))}static from(e,n=void 0){return Ir(e,n)}static compare(e,n){const r=Ir(e),o=Ir(n),i=m(r,U),a=m(o,U);return f.lessThan(f.BigInt(i),f.BigInt(a))?-1:f.greaterThan(f.BigInt(i),f.BigInt(a))?1:0}}function It(t){return St(m(t,ce),m(t,U))}function qe(t,e){_(t,X);const n=It(t).isoDate;return co(t).isoToDate(n,{[e]:!0})[e]}function Kn(t,e){return _(t,X),It(t).time[e]}sn(Wa,"Temporal.ZonedDateTime");var Ae=Object.freeze({__proto__:null,Duration:fr,Instant:Ya,Now:eu,PlainDate:za,PlainDateTime:Ua,PlainMonthDay:Fa,PlainTime:bo,PlainYearMonth:Va,ZonedDateTime:Wa});const d0=[Ya,za,Ua,fr,Fa,bo,Va,Wa];for(const t of d0){const e=Object.getOwnPropertyDescriptor(t,"prototype");(e.configurable||e.enumerable||e.writable)&&(e.configurable=!1,e.enumerable=!1,e.writable=!1,Object.defineProperty(t,"prototype",e))}var vo=(t=>(t.SYSTEM_TIME_ZONE="America/New_York",t.SYSTEM_LOCALE="en-US",t.SYSTEM_DATE_FORMAT="MM/dd/yyyy",t.SYSTEM_DATE_TIME_FORMAT="MM/dd/yyyy hh:mm:ss a",t.ISO_DATE_FORMAT="yyyy-MM-dd",t[t.SYSTEM_COOKIE_TIMEOUT_MILLI_SECONDS=36e5]="SYSTEM_COOKIE_TIMEOUT_MILLI_SECONDS",t))(vo||{});const Ci={month:"2-digit",day:"2-digit",year:"numeric"},tu={...Ci,hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0},f0=t=>t?(typeof t=="string"?Ae.Instant.from(t):Ae.Instant.fromEpochMilliseconds(t.getTime())).toZonedDateTimeISO(Ae.Now.timeZoneId()).toLocaleString(vo.SYSTEM_LOCALE,tu):"",h0=t=>t?(typeof t=="string"?Ae.Instant.from(t):Ae.Instant.fromEpochMilliseconds(t.getTime())).toZonedDateTimeISO(Ae.Now.timeZoneId()).toLocaleString(vo.SYSTEM_LOCALE,Ci):"",m0=t=>t?Ae.PlainDate.from(t).toLocaleString(vo.SYSTEM_LOCALE,Ci):"",nu=t=>t?(typeof t=="string"?Ae.Instant.from(t):Ae.Instant.fromEpochMilliseconds(t.getTime())).toZonedDateTimeISO(Ae.Now.timeZoneId()).toPlainDate().toString():"",g0=t=>t?nu(t):"",y0=t=>{if(!t)return null;const e=Ae.PlainDate.from(t);return new Date(e.year,e.month-1,e.day)},p0=t=>{if(!t)return;const e=Ae.Instant.fromEpochMilliseconds(Number(t));return new Date(e.toZonedDateTimeISO(Ae.Now.timeZoneId()).toPlainDate().toString())},b0=(t,e)=>{if(!t||!e)return!1;const n=typeof t=="string"?Ae.Instant.from(t):Ae.Instant.fromEpochMilliseconds(t.getTime()),r=typeof e=="string"?Ae.Instant.from(e):Ae.Instant.fromEpochMilliseconds(e.getTime());return Ae.Instant.compare(n,r)>0};function v0(t){if(typeof t=="string")return Number.parseInt(t,10)}const w0=()=>({isLoading:!1,isSuccess:!1,isError:!1,isComplete:!1,message:""}),E0=t=>({...t,isLoading:!0,isSuccess:!1,isError:!1,message:""}),_0=(t,e)=>({...t,isLoading:!1,isSuccess:!0,isError:!1,isComplete:!0,message:e||""}),T0=(t,e)=>({...t,isLoading:!1,isSuccess:!1,isError:!0,isComplete:!0,message:e||""});function C0(t){return t==null?!0:typeof t=="string"?t.trim()==="":!1}const D0=t=>{try{return decodeURIComponent(t)!==t}catch{return!1}};exports.AppSnackBar=hh;exports.CancelButton=Xf;exports.CenteredCircularProgress=ph;exports.ConfirmDialog=bh;exports.DeleteButton=Jf;exports.DismissibleAlert=vh;exports.EditIconButton=th;exports.ExcelButton=nh;exports.GoBackButton=oh;exports.HistoryButton=ah;exports.LoadingSuccessButton=lh;exports.ManageButton=dh;exports.NextLink=Gh;exports.OpenInNewIconLink=Xh;exports.QuerySnackBar=mh;exports.ReactIf=Qh;exports.RouterLink=em;exports.SuccessButton=fh;exports.SystemConfig=vo;exports.TEMPORAL_DATE_FORMAT=Ci;exports.TEMPORAL_DATE_TIME_FORMAT=tu;exports.TabPanel=nm;exports.TablePaginationActions=tm;exports.ToastContainer=yh;exports.a11yProps=rm;exports.formatIsoToAppDate=m0;exports.formatOldDateToIsoDate=g0;exports.formatOldDateToIsoString=nu;exports.formatToAppDate=h0;exports.formatToAppDateTime=f0;exports.formatUnixTimeToOldDate=p0;exports.getCssVariable=im;exports.initializeState=w0;exports.isAfter=b0;exports.isBlankOrEmpty=C0;exports.isEncoded=D0;exports.markError=T0;exports.markLoading=E0;exports.markSuccess=_0;exports.parseBoolean=om;exports.parseIsoDate=y0;exports.parseNumber=v0;exports.toast=gh;
|
|
34
|
+
To suppress this warning, you need to explicitly provide the \`palette.${e}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Lf(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const At=t=>{try{return t()}catch{}},jf=(t="mui")=>ef(t);function Pi(t,e,n,r,o){if(!n)return;n=n===!0?{}:n;const i=o==="dark"?"dark":"light";if(!r){e[o]=kf({...n,palette:{mode:i,...n?.palette},colorSpace:t});return}const{palette:a,...s}=Ki({...r,palette:{mode:i,...n?.palette},colorSpace:t});return e[o]={...n,palette:a,opacity:{...Vc(i),...n?.opacity},overlays:n?.overlays||Wc(i)},s}function Yf(t={},...e){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:s=Af,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...u}=t,d=Object.keys(n)[0],h=r||(n.light&&d!=="light"?"light":d),y=jf(i),{[h]:p,light:g,dark:v,...w}=n,D={...w};let O=p;if((h==="dark"&&!("dark"in n)||h==="light"&&!("light"in n))&&(O=!0),!O)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${h}\` option is either missing or invalid.`:gn(21,h));let C;a&&(C="oklch");const E=Pi(C,D,O,u,h);g&&!D.light&&Pi(C,D,g,void 0,"light"),v&&!D.dark&&Pi(C,D,v,void 0,"dark");let S={defaultColorScheme:h,...E,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:l,getCssVar:y,colorSchemes:D,font:{...mf(E.typography),...E.font},spacing:Lf(u.spacing)};Object.keys(S.colorSchemes).forEach(B=>{const b=S.colorSchemes[B].palette,k=Y=>{const Z=Y.split("-"),pe=Z[1],at=Z[2];return y(Y,b[pe][at])};b.mode==="light"&&(T(b.common,"background","#fff"),T(b.common,"onBackground","#000")),b.mode==="dark"&&(T(b.common,"background","#000"),T(b.common,"onBackground","#fff"));function x(Y,Z,pe){if(C){let at;return Y===Cn&&(at=`transparent ${((1-pe)*100).toFixed(0)}%`),Y===de&&(at=`#000 ${(pe*100).toFixed(0)}%`),Y===fe&&(at=`#fff ${(pe*100).toFixed(0)}%`),`color-mix(in ${C}, ${Z}, ${at})`}return Y(Z,pe)}if(Nf(b,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),b.mode==="light"){T(b.Alert,"errorColor",x(de,b.error.light,.6)),T(b.Alert,"infoColor",x(de,b.info.light,.6)),T(b.Alert,"successColor",x(de,b.success.light,.6)),T(b.Alert,"warningColor",x(de,b.warning.light,.6)),T(b.Alert,"errorFilledBg",k("palette-error-main")),T(b.Alert,"infoFilledBg",k("palette-info-main")),T(b.Alert,"successFilledBg",k("palette-success-main")),T(b.Alert,"warningFilledBg",k("palette-warning-main")),T(b.Alert,"errorFilledColor",At(()=>b.getContrastText(b.error.main))),T(b.Alert,"infoFilledColor",At(()=>b.getContrastText(b.info.main))),T(b.Alert,"successFilledColor",At(()=>b.getContrastText(b.success.main))),T(b.Alert,"warningFilledColor",At(()=>b.getContrastText(b.warning.main))),T(b.Alert,"errorStandardBg",x(fe,b.error.light,.9)),T(b.Alert,"infoStandardBg",x(fe,b.info.light,.9)),T(b.Alert,"successStandardBg",x(fe,b.success.light,.9)),T(b.Alert,"warningStandardBg",x(fe,b.warning.light,.9)),T(b.Alert,"errorIconColor",k("palette-error-main")),T(b.Alert,"infoIconColor",k("palette-info-main")),T(b.Alert,"successIconColor",k("palette-success-main")),T(b.Alert,"warningIconColor",k("palette-warning-main")),T(b.AppBar,"defaultBg",k("palette-grey-100")),T(b.Avatar,"defaultBg",k("palette-grey-400")),T(b.Button,"inheritContainedBg",k("palette-grey-300")),T(b.Button,"inheritContainedHoverBg",k("palette-grey-A100")),T(b.Chip,"defaultBorder",k("palette-grey-400")),T(b.Chip,"defaultAvatarColor",k("palette-grey-700")),T(b.Chip,"defaultIconColor",k("palette-grey-700")),T(b.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),T(b.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),T(b.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),T(b.LinearProgress,"primaryBg",x(fe,b.primary.main,.62)),T(b.LinearProgress,"secondaryBg",x(fe,b.secondary.main,.62)),T(b.LinearProgress,"errorBg",x(fe,b.error.main,.62)),T(b.LinearProgress,"infoBg",x(fe,b.info.main,.62)),T(b.LinearProgress,"successBg",x(fe,b.success.main,.62)),T(b.LinearProgress,"warningBg",x(fe,b.warning.main,.62)),T(b.Skeleton,"bg",C?x(Cn,b.text.primary,.11):`rgba(${k("palette-text-primaryChannel")} / 0.11)`),T(b.Slider,"primaryTrack",x(fe,b.primary.main,.62)),T(b.Slider,"secondaryTrack",x(fe,b.secondary.main,.62)),T(b.Slider,"errorTrack",x(fe,b.error.main,.62)),T(b.Slider,"infoTrack",x(fe,b.info.main,.62)),T(b.Slider,"successTrack",x(fe,b.success.main,.62)),T(b.Slider,"warningTrack",x(fe,b.warning.main,.62));const Y=C?x(de,b.background.default,.6825):To(b.background.default,.8);T(b.SnackbarContent,"bg",Y),T(b.SnackbarContent,"color",At(()=>C?Gi.text.primary:b.getContrastText(Y))),T(b.SpeedDialAction,"fabHoverBg",To(b.background.paper,.15)),T(b.StepConnector,"border",k("palette-grey-400")),T(b.StepContent,"border",k("palette-grey-400")),T(b.Switch,"defaultColor",k("palette-common-white")),T(b.Switch,"defaultDisabledColor",k("palette-grey-100")),T(b.Switch,"primaryDisabledColor",x(fe,b.primary.main,.62)),T(b.Switch,"secondaryDisabledColor",x(fe,b.secondary.main,.62)),T(b.Switch,"errorDisabledColor",x(fe,b.error.main,.62)),T(b.Switch,"infoDisabledColor",x(fe,b.info.main,.62)),T(b.Switch,"successDisabledColor",x(fe,b.success.main,.62)),T(b.Switch,"warningDisabledColor",x(fe,b.warning.main,.62)),T(b.TableCell,"border",x(fe,x(Cn,b.divider,1),.88)),T(b.Tooltip,"bg",x(Cn,b.grey[700],.92))}if(b.mode==="dark"){T(b.Alert,"errorColor",x(fe,b.error.light,.6)),T(b.Alert,"infoColor",x(fe,b.info.light,.6)),T(b.Alert,"successColor",x(fe,b.success.light,.6)),T(b.Alert,"warningColor",x(fe,b.warning.light,.6)),T(b.Alert,"errorFilledBg",k("palette-error-dark")),T(b.Alert,"infoFilledBg",k("palette-info-dark")),T(b.Alert,"successFilledBg",k("palette-success-dark")),T(b.Alert,"warningFilledBg",k("palette-warning-dark")),T(b.Alert,"errorFilledColor",At(()=>b.getContrastText(b.error.dark))),T(b.Alert,"infoFilledColor",At(()=>b.getContrastText(b.info.dark))),T(b.Alert,"successFilledColor",At(()=>b.getContrastText(b.success.dark))),T(b.Alert,"warningFilledColor",At(()=>b.getContrastText(b.warning.dark))),T(b.Alert,"errorStandardBg",x(de,b.error.light,.9)),T(b.Alert,"infoStandardBg",x(de,b.info.light,.9)),T(b.Alert,"successStandardBg",x(de,b.success.light,.9)),T(b.Alert,"warningStandardBg",x(de,b.warning.light,.9)),T(b.Alert,"errorIconColor",k("palette-error-main")),T(b.Alert,"infoIconColor",k("palette-info-main")),T(b.Alert,"successIconColor",k("palette-success-main")),T(b.Alert,"warningIconColor",k("palette-warning-main")),T(b.AppBar,"defaultBg",k("palette-grey-900")),T(b.AppBar,"darkBg",k("palette-background-paper")),T(b.AppBar,"darkColor",k("palette-text-primary")),T(b.Avatar,"defaultBg",k("palette-grey-600")),T(b.Button,"inheritContainedBg",k("palette-grey-800")),T(b.Button,"inheritContainedHoverBg",k("palette-grey-700")),T(b.Chip,"defaultBorder",k("palette-grey-700")),T(b.Chip,"defaultAvatarColor",k("palette-grey-300")),T(b.Chip,"defaultIconColor",k("palette-grey-300")),T(b.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),T(b.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),T(b.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),T(b.LinearProgress,"primaryBg",x(de,b.primary.main,.5)),T(b.LinearProgress,"secondaryBg",x(de,b.secondary.main,.5)),T(b.LinearProgress,"errorBg",x(de,b.error.main,.5)),T(b.LinearProgress,"infoBg",x(de,b.info.main,.5)),T(b.LinearProgress,"successBg",x(de,b.success.main,.5)),T(b.LinearProgress,"warningBg",x(de,b.warning.main,.5)),T(b.Skeleton,"bg",C?x(Cn,b.text.primary,.13):`rgba(${k("palette-text-primaryChannel")} / 0.13)`),T(b.Slider,"primaryTrack",x(de,b.primary.main,.5)),T(b.Slider,"secondaryTrack",x(de,b.secondary.main,.5)),T(b.Slider,"errorTrack",x(de,b.error.main,.5)),T(b.Slider,"infoTrack",x(de,b.info.main,.5)),T(b.Slider,"successTrack",x(de,b.success.main,.5)),T(b.Slider,"warningTrack",x(de,b.warning.main,.5));const Y=C?x(fe,b.background.default,.985):To(b.background.default,.98);T(b.SnackbarContent,"bg",Y),T(b.SnackbarContent,"color",At(()=>C?zc.text.primary:b.getContrastText(Y))),T(b.SpeedDialAction,"fabHoverBg",To(b.background.paper,.15)),T(b.StepConnector,"border",k("palette-grey-600")),T(b.StepContent,"border",k("palette-grey-600")),T(b.Switch,"defaultColor",k("palette-grey-300")),T(b.Switch,"defaultDisabledColor",k("palette-grey-600")),T(b.Switch,"primaryDisabledColor",x(de,b.primary.main,.55)),T(b.Switch,"secondaryDisabledColor",x(de,b.secondary.main,.55)),T(b.Switch,"errorDisabledColor",x(de,b.error.main,.55)),T(b.Switch,"infoDisabledColor",x(de,b.info.main,.55)),T(b.Switch,"successDisabledColor",x(de,b.success.main,.55)),T(b.Switch,"warningDisabledColor",x(de,b.warning.main,.55)),T(b.TableCell,"border",x(de,x(Cn,b.divider,1),.68)),T(b.Tooltip,"bg",x(Cn,b.grey[700],.92))}qt(b.background,"default"),qt(b.background,"paper"),qt(b.common,"background"),qt(b.common,"onBackground"),qt(b,"divider"),Object.keys(b).forEach(Y=>{const Z=b[Y];Y!=="tonalOffset"&&Z&&typeof Z=="object"&&(Z.main&&T(b[Y],"mainChannel",Or(Sr(Z.main))),Z.light&&T(b[Y],"lightChannel",Or(Sr(Z.light))),Z.dark&&T(b[Y],"darkChannel",Or(Sr(Z.dark))),Z.contrastText&&T(b[Y],"contrastTextChannel",Or(Sr(Z.contrastText))),Y==="text"&&(qt(b[Y],"primary"),qt(b[Y],"secondary")),Y==="action"&&(Z.active&&qt(b[Y],"active"),Z.selected&&qt(b[Y],"selected")))})}),S=e.reduce((B,b)=>pt(B,b),S);const P={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:Pf(S),enableContrastVars:a},{vars:z,generateThemeVars:j,generateStyleSheets:ae}=rf(S,P);return S.vars=z,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([B,b])=>{S[B]=b}),S.generateThemeVars=j,S.generateStyleSheets=ae,S.generateSpacing=function(){return kc(u.spacing,ba(this))},S.getColorSchemeSelector=of(c),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=s,S.unstable_sxConfig={...ai,...u?.unstable_sxConfig},S.unstable_sx=function(b){return or({sx:b,theme:this})},S.toRuntimeSource=Fc,S}function Os(t,e,n){t.colorSchemes&&n&&(t.colorSchemes[e]={...n!==!0&&n,palette:Ta({...n===!0?{}:n.palette,mode:e})})}function zf(t={},...e){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n?.mode,...a}=t,s=i||"light",c=o?.[s],l={...o,...n?{[s]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in t))return Ki(t,...e);let u=n;"palette"in t||l[s]&&(l[s]!==!0?u=l[s].palette:s==="dark"&&(u={mode:"dark"}));const d=Ki({...t,palette:u},...e);return d.defaultColorScheme=s,d.colorSchemes=l,d.palette.mode==="light"&&(d.colorSchemes.light={...l.light!==!0&&l.light,palette:d.palette},Os(d,"dark",l.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:d.palette},Os(d,"light",l.light)),d}return!n&&!("light"in l)&&s==="light"&&(l.light=!0),Yf({...a,colorSchemes:l,defaultColorScheme:s,...typeof r!="boolean"&&r},...e)}const qc=zf(),Hc="$$material";function Uf(){const t=Id(qc);return process.env.NODE_ENV!=="production"&&ge.useDebugValue(t),t[Hc]||t}function Ff(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const Vf=t=>Ff(t)&&t!=="classes",Wf=Ud({themeId:Hc,defaultTheme:qc,rootShouldForwardProp:Vf}),qf=Jd;process.env.NODE_ENV!=="production"&&(se.node,se.object.isRequired);function Hf(t){return Qd(t)}function Bf(t){return Ea("MuiSvgIcon",t)}Nd("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Zf=t=>{const{color:e,fontSize:n,classes:r}=t,o={root:["root",e!=="inherit"&&`color${Rn(e)}`,`fontSize${Rn(n)}`]};return Tu(o,Bf,r)},Gf=Wf("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="inherit"&&e[`color${Rn(n.color)}`],e[`fontSize${Rn(n.fontSize)}`]]}})(qf(({theme:t})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:t.transitions?.create?.("fill",{duration:(t.vars??t).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:t.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:t.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:t.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,e])=>e&&e.main).map(([e])=>({props:{color:e},style:{color:(t.vars??t).palette?.[e]?.main}})),{props:{color:"action"},style:{color:(t.vars??t).palette?.action?.active}},{props:{color:"disabled"},style:{color:(t.vars??t).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),No=ge.forwardRef(function(e,n){const r=Hf({props:e,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:c="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:d,viewBox:h="0 0 24 24",...y}=r,p=ge.isValidElement(o)&&o.type==="svg",g={...r,color:a,component:s,fontSize:c,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:p},v={};u||(v.viewBox=h);const w=Zf(g);return R.jsxs(Gf,{as:s,className:Mc(w.root,i),focusable:"false",color:l,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...v,...y,...p&&o.props,ownerState:g,children:[p?o.props.children:o,d?R.jsx("title",{children:d}):null]})});process.env.NODE_ENV!=="production"&&(No.propTypes={children:se.node,classes:se.object,className:se.string,color:se.oneOfType([se.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),se.string]),component:se.elementType,fontSize:se.oneOfType([se.oneOf(["inherit","large","medium","small"]),se.string]),htmlColor:se.string,inheritViewBox:se.bool,shapeRendering:se.string,sx:se.oneOfType([se.arrayOf(se.oneOfType([se.func,se.object,se.bool])),se.func,se.object]),titleAccess:se.string,viewBox:se.string});No.muiName="SvgIcon";function Et(t,e){function n(r,o){return R.jsx(No,{"data-testid":process.env.NODE_ENV!=="production"?`${e}Icon`:void 0,ref:o,...r,children:t})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${e}Icon`),n.muiName=No.muiName,ge.memo(ge.forwardRef(n))}const Kf=Et(R.jsx("path",{d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8"}),"Undo");function Xf(t){return R.jsx(W.Button,{name:t.name,"data-cy":t.dataCy??"cancel-button",className:t.className,sx:t.sx,startIcon:t.startIcon??R.jsx(Kf,{}),variant:t.variant??"contained",color:t.color??"secondary",type:t.type??"button",onClick:()=>t.onClick(),"aria-label":t.ariaLabel??t.name??"Cancel",children:t.children??t.name})}const Qf=Et(R.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"DeleteForever");function Jf(t){return R.jsx(W.Button,{"data-cy":t.dataCy??"delete-button",loading:t.loading??!1,loadingPosition:t.loadingPosition??"start",startIcon:t.startIcon??R.jsx(Qf,{}),name:t.name,variant:t.variant??"contained",color:t.color??"error",sx:{m:1},type:t.type??"button",onClick:t.onClick,"aria-label":t.ariaLabel??t.label??"Delete",children:t.label?t.label:"Delete"})}const eh=Et(R.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");function th(t){return R.jsx(W.Tooltip,{title:t.tooltipTitle,children:R.jsx(W.IconButton,{sx:{padding:"0.25rem"},color:t.color??"primary",onClick:()=>t.onClick(!0),"aria-label":t.ariaLabel??t.tooltipTitle,children:R.jsx(eh,{})})})}function nh(t){return R.jsx(W.Button,{"data-cy":t.dataCy??"excel-button",style:{borderRadius:"20px"},className:t.className,name:t.name,sx:t.sx,startIcon:t.startIcon,variant:"contained",color:"success",type:t.type??"button",onClick:()=>t.onClick(),"aria-label":t.ariaLabel??t.name??"Export to Excel",children:t.children??t.name})}const rh=Et(R.jsx("path",{d:"M11.67 3.87 9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"}),"ArrowBackIos");function oh(t){return R.jsx(W.Tooltip,{title:"Go Back to Previous Page",children:R.jsxs(W.IconButton,{name:t.name,color:t.color??"primary",onClick:()=>t.navigate(-1),"aria-label":t.ariaLabel??"Go back to previous page",children:[R.jsx(rh,{}),t.children]})})}const ih=Et(R.jsx("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z"}),"History");function ah(t){return R.jsx(W.Button,{name:t.name,"data-cy":t.dataCy??"history-button",className:t.className,sx:t.sx??{p:1,m:1},startIcon:t.startIcon??R.jsx(ih,{}),variant:t.variant??"contained",color:t.color??"primary",type:t.type??"button",onClick:()=>t.onClick(),"aria-label":t.ariaLabel??t.name??"History",children:t.children??t.name})}const sh=Et(R.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save"),ch={backgroundColor:"$primary-color",color:"var(--white-color)",margin:"20px"};function lh(t){return R.jsx(W.Button,{name:t.name,"data-cy":t.dataCy??"loading-success-button",variant:t.variant??"contained",color:t.color??"success",loadingPosition:"start",startIcon:t.startIcon??R.jsx(sh,{}),loading:t.loading,type:t.type??"button",style:ch,sx:t.sx,onClick:t.onClick,"aria-label":t.ariaLabel??t.name??"Save",children:t.children??t.name})}const uh=Et(R.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");function dh(t){return R.jsx(W.Button,{name:t.name,"data-cy":t.dataCy??"manage-button",className:t.className,onClick:()=>t.onClick(),variant:t.variant??"contained",color:t.color??"primary",size:t.size??"large",startIcon:t.startIcon??R.jsx(uh,{}),"aria-label":t.ariaLabel??(typeof t.children=="string"?t.children:void 0)??"Manage",children:t.children?t.children:"Manage"})}function fh(t){return R.jsx(W.Button,{name:t.name,"data-cy":t.dataCy??"success-button",className:t.className,sx:t.sx,startIcon:t.startIcon,variant:t.variant??"contained",color:t.color??"success",type:t.type??"button",onClick:()=>t.onClick(),"aria-label":t.ariaLabel??t.name??"Save",children:t.children??t.name})}const Ca=Et(R.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),hh=t=>{const[e,n]=Fe.useState(!1);Fe.useEffect(()=>{n(t.open)},[t.open,t.progressState]);const r=R.jsx(W.IconButton,{size:"small","aria-label":"close",color:"inherit",onClick:()=>n(!1),children:R.jsx(Ca,{fontSize:"small"})});return R.jsxs(R.Fragment,{children:[R.jsx(W.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:e&&t.progressState.isSuccess,autoHideDuration:t.autoHideDuration??3e3,onClose:()=>n(!1),children:R.jsx(W.Alert,{variant:"filled",severity:"success",sx:{width:"100%"},action:r,children:t.progressState.message})}),R.jsx(W.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:e&&t.progressState.isError,slots:{transition:W.Slide},autoHideDuration:t.autoHideDuration??3e3,onClose:()=>n(!1),children:R.jsx(W.Alert,{variant:"filled",sx:{width:"100%"},severity:"error",action:r,children:t.progressState.message})})]})},mh=t=>{const[e,n]=Fe.useState(!1);Fe.useEffect(()=>{n(t.open)},[t.open,t]);const r=R.jsx(W.IconButton,{size:"small","aria-label":"close",color:"inherit",onClick:()=>n(!1),children:R.jsx(Ca,{fontSize:"small"})});return R.jsxs(R.Fragment,{children:[R.jsx(W.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:e&&t.isSuccess,autoHideDuration:t.autoHideDuration??3e3,onClose:()=>n(!1),children:R.jsx(W.Alert,{variant:"filled",severity:"success",sx:{width:"100%"},action:r,children:t.message})}),R.jsx(W.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:e&&t.isError,TransitionComponent:W.Slide,autoHideDuration:t.autoHideDuration??3e3,onClose:()=>n(!1),children:R.jsx(W.Alert,{variant:"filled",sx:{width:"100%"},severity:"error",action:r,children:t.message})})]})};let Co={message:"",open:!1,autoHideDuration:3e3,anchorOrigin:{vertical:"bottom",horizontal:"center"},type:"info"};const Do=new Set,$o={subscribe(t){return Do.add(t),()=>Do.delete(t)},getSnapshot(){return Co},show(t,e="info",n=3e3){Co={message:t,type:e,open:!0,autoHideDuration:n,anchorOrigin:{vertical:"bottom",horizontal:"center"}},Do.forEach(r=>r())},close(){Co={...Co,open:!1},Do.forEach(t=>t())}},gh=(t,e)=>$o.show(t,e),yh=()=>{const t=Fe.useSyncExternalStore($o.subscribe,$o.getSnapshot),e=(n,r)=>{r!=="clickaway"&&$o.close()};return R.jsx(W.Snackbar,{open:t.open,autoHideDuration:t.autoHideDuration,onClose:e,anchorOrigin:{vertical:"bottom",horizontal:"center"},children:R.jsx(W.Alert,{severity:t.type,variant:"filled",onClose:e,children:t.message})})};function ph(){return R.jsx("div",{style:{margin:"1.5rem"},className:"app-flex-justify-center",role:"status","aria-label":"Loading",children:R.jsx(W.CircularProgress,{})})}function bh(t){const{onClose:e,title:n,message:r,open:o,...i}=t;return R.jsxs(W.Dialog,{sx:{"& .MuiDialog-paper":{width:"80%",maxHeight:435}},maxWidth:"xs",open:o,...i,children:[R.jsx(W.DialogTitle,{children:n??"Confirm"}),R.jsx(W.DialogContent,{dividers:!0,children:r}),R.jsxs(W.DialogActions,{children:[R.jsx(W.Button,{autoFocus:!0,onClick:()=>e("No"),"aria-label":"Cancel",children:"Cancel"}),R.jsx(W.Button,{onClick:()=>e("Yes"),"aria-label":"Yes",children:"Yes"})]})]})}function vh(t){const{ariaLabel:e,...n}=t,[r,o]=Fe.useState(!0),[i]=Fe.useState(t.dismissible??!0),[a]=Fe.useState(t.dismissOnTimeOut??!0),[s]=Fe.useState(t.dismissTimeOut??5e3);return setTimeout(()=>{o(a?!1:r)},s),R.jsx("span",{children:r&&R.jsx(W.Alert,{action:i?R.jsx(W.IconButton,{"aria-label":"close",color:"inherit",size:"small",onClick:()=>{o(!1)},children:R.jsx(Ca,{fontSize:"inherit"})}):null,style:{margin:"20px"},"aria-label":e??"Dismissible Alert",...n,children:n.message})})}function wh(t){return typeof t=="function"}function Ss(t,e){return wh(t)?t(e):t}const Eh=Object.prototype.hasOwnProperty,Ms=Object.prototype.propertyIsEnumerable;function Bc(t,e,n=0){if(t===e)return t;if(n>500)return e;const r=e,o=Rs(t)&&Rs(r);if(!o&&!(Lo(t)&&Lo(r)))return r;const i=o?t:xs(t);if(!i)return r;const a=o?r:xs(r);if(!a)return r;const s=i.length,c=a.length,l=o?new Array(c):{};let u=0;for(let d=0;d<c;d++){const h=o?d:a[d],y=t[h],p=r[h];if(y===p){l[h]=y,(o?d<s:Eh.call(t,h))&&u++;continue}if(y===null||p===null||typeof y!="object"||typeof p!="object"){l[h]=p;continue}const g=Bc(y,p,n+1);l[h]=g,g===y&&u++}return s===c&&u===s?t:l}function xs(t){const e=Object.getOwnPropertyNames(t);for(const o of e)if(!Ms.call(t,o))return!1;const n=Object.getOwnPropertySymbols(t);if(n.length===0)return e;const r=e;for(const o of n){if(!Ms.call(t,o))return!1;r.push(o)}return r}function Lo(t){if(!$s(t))return!1;const e=t.constructor;if(typeof e>"u")return!0;const n=e.prototype;return!(!$s(n)||!n.hasOwnProperty("isPrototypeOf"))}function $s(t){return Object.prototype.toString.call(t)==="[object Object]"}function Rs(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Ro(t,e,n){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0,o=t.length;r<o;r++)if(!Ro(t[r],e[r],n))return!1;return!0}if(Lo(t)&&Lo(e)){const r=n?.ignoreUndefined??!0;if(n?.partial){for(const a in e)if((!r||e[a]!==void 0)&&!Ro(t[a],e[a],n))return!1;return!0}let o=0;if(!r)o=Object.keys(t).length;else for(const a in t)t[a]!==void 0&&o++;let i=0;for(const a in e)if((!r||e[a]!==void 0)&&(i++,i>o||!Ro(t[a],e[a],n)))return!1;return o===i}return!1}function ks(t,e){if(!t)return!1;try{const n=new URL(t);return!e.has(n.protocol)}catch{return!1}}function jo(t,e){return t?.endsWith("/")&&t!=="/"&&t!==`${e}/`?t.slice(0,-1):t}function _h(t,e,n){return jo(t,n)===jo(e,n)}const Th="Error preloading route! ☝️";function Ch(t,e,n={},r={}){ge.useEffect(()=>{if(!t.current||r.disabled||typeof IntersectionObserver!="function")return;const o=new IntersectionObserver(([i])=>{e(i)},n);return o.observe(t.current),()=>{o.disconnect()}},[e,n,r.disabled,t])}function Dh(t){const e=ge.useRef(null);return ge.useImperativeHandle(t,()=>e.current,[]),e}function Oh(){return Fe.useSyncExternalStore(Sh,()=>!0,()=>!1)}function Sh(){return()=>{}}var Mh=process.env.NODE_ENV==="production";function xh(t,e){if(!Mh){if(t)return;var n="Warning: "+e;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}var Oo={exports:{}},Ni={},So={exports:{}},Li={};var As;function $h(){if(As)return Li;As=1;var t=Fe;function e(d,h){return d===h&&(d!==0||1/d===1/h)||d!==d&&h!==h}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,o=t.useEffect,i=t.useLayoutEffect,a=t.useDebugValue;function s(d,h){var y=h(),p=r({inst:{value:y,getSnapshot:h}}),g=p[0].inst,v=p[1];return i(function(){g.value=y,g.getSnapshot=h,c(g)&&v({inst:g})},[d,y,h]),o(function(){return c(g)&&v({inst:g}),d(function(){c(g)&&v({inst:g})})},[d]),a(y),y}function c(d){var h=d.getSnapshot;d=d.value;try{var y=h();return!n(d,y)}catch{return!0}}function l(d,h){return h()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l:s;return Li.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:u,Li}var ji={};var Is;function Rh(){return Is||(Is=1,process.env.NODE_ENV!=="production"&&(function(){function t(y,p){return y===p&&(y!==0||1/y===1/p)||y!==y&&p!==p}function e(y,p){u||o.startTransition===void 0||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var g=p();if(!d){var v=p();i(g,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}v=a({inst:{value:g,getSnapshot:p}});var w=v[0].inst,D=v[1];return c(function(){w.value=g,w.getSnapshot=p,n(w)&&D({inst:w})},[y,g,p]),s(function(){return n(w)&&D({inst:w}),y(function(){n(w)&&D({inst:w})})},[y]),l(g),g}function n(y){var p=y.getSnapshot;y=y.value;try{var g=p();return!i(y,g)}catch{return!0}}function r(y,p){return p()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=Fe,i=typeof Object.is=="function"?Object.is:t,a=o.useState,s=o.useEffect,c=o.useLayoutEffect,l=o.useDebugValue,u=!1,d=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;ji.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),ji}var Ps;function Zc(){return Ps||(Ps=1,process.env.NODE_ENV==="production"?So.exports=$h():So.exports=Rh()),So.exports}var Ns;function kh(){if(Ns)return Ni;Ns=1;var t=Fe,e=Zc();function n(l,u){return l===u&&(l!==0||1/l===1/u)||l!==l&&u!==u}var r=typeof Object.is=="function"?Object.is:n,o=e.useSyncExternalStore,i=t.useRef,a=t.useEffect,s=t.useMemo,c=t.useDebugValue;return Ni.useSyncExternalStoreWithSelector=function(l,u,d,h,y){var p=i(null);if(p.current===null){var g={hasValue:!1,value:null};p.current=g}else g=p.current;p=s(function(){function w(S){if(!D){if(D=!0,O=S,S=h(S),y!==void 0&&g.hasValue){var P=g.value;if(y(P,S))return C=P}return C=S}if(P=C,r(O,S))return P;var z=h(S);return y!==void 0&&y(P,z)?(O=S,P):(O=S,C=z)}var D=!1,O,C,E=d===void 0?null:d;return[function(){return w(u())},E===null?void 0:function(){return w(E())}]},[u,d,h,y]);var v=o(l,p[0],p[1]);return a(function(){g.hasValue=!0,g.value=v},[v]),c(v),v},Ni}var Yi={};var Ls;function Ah(){return Ls||(Ls=1,process.env.NODE_ENV!=="production"&&(function(){function t(l,u){return l===u&&(l!==0||1/l===1/u)||l!==l&&u!==u}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var e=Fe,n=Zc(),r=typeof Object.is=="function"?Object.is:t,o=n.useSyncExternalStore,i=e.useRef,a=e.useEffect,s=e.useMemo,c=e.useDebugValue;Yi.useSyncExternalStoreWithSelector=function(l,u,d,h,y){var p=i(null);if(p.current===null){var g={hasValue:!1,value:null};p.current=g}else g=p.current;p=s(function(){function w(S){if(!D){if(D=!0,O=S,S=h(S),y!==void 0&&g.hasValue){var P=g.value;if(y(P,S))return C=P}return C=S}if(P=C,r(O,S))return P;var z=h(S);return y!==void 0&&y(P,z)?(O=S,P):(O=S,C=z)}var D=!1,O,C,E=d===void 0?null:d;return[function(){return w(u())},E===null?void 0:function(){return w(E())}]},[u,d,h,y]);var v=o(l,p[0],p[1]);return a(function(){g.hasValue=!0,g.value=v},[v]),c(v),v},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Yi}var js;function Ih(){return js||(js=1,process.env.NODE_ENV==="production"?Oo.exports=kh():Oo.exports=Ah()),Oo.exports}var Ph=Ih();function Nh(t,e=r=>r,n={}){const r=n.equal??Lh;return Ph.useSyncExternalStoreWithSelector(t.subscribe,()=>t.state,()=>t.state,e,r)}function Lh(t,e){if(Object.is(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(const[r,o]of t)if(!e.has(r)||!Object.is(o,e.get(r)))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(const r of t)if(!e.has(r))return!1;return!0}if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();const n=Ys(t);if(n.length!==Ys(e).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(e,n[r])||!Object.is(t[n[r]],e[n[r]]))return!1;return!0}function Ys(t){return Object.keys(t).concat(Object.getOwnPropertySymbols(t))}const zi=ge.createContext(null);function jh(){return typeof document>"u"?zi:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=zi,zi)}function Gc(t){const e=ge.useContext(jh());return xh(!((t?.warn??!0)&&!e),"useRouter must be used inside a <RouterProvider> component!"),e}function zs(t){const e=Gc({warn:t?.router===void 0}),n=t?.router||e,r=Fe.useRef(void 0);return Nh(n.__store,o=>{if(t?.select){if(t.structuralSharing??n.options.defaultStructuralSharing){const i=Bc(r.current,t.select(o));return r.current=i,i}return t.select(o)}return o})}function Yh(t,e){const n=Gc(),r=Dh(e),{activeProps:o,inactiveProps:i,activeOptions:a,to:s,preload:c,preloadDelay:l,hashScrollIntoView:u,replace:d,startTransition:h,resetScroll:y,viewTransition:p,children:g,target:v,disabled:w,style:D,className:O,onClick:C,onFocus:E,onMouseEnter:S,onMouseLeave:P,onTouchStart:z,ignoreBlocker:j,params:ae,search:B,hash:b,state:k,mask:x,reloadDocument:Y,unsafeRelative:Z,from:pe,_fromLocation:at,...cn}=t,$=Oh(),I=zs({select:ve=>{const Ie=ve.matches[ve.matches.length-1];return{search:Ie?.search,hash:ve.location.hash,path:Ie?.pathname}},structuralSharing:!0}),J=t.from,H=ge.useMemo(()=>({...t,from:J}),[n,I,J,t._fromLocation,t.hash,t.to,t.search,t.params,t.state,t.mask,t.unsafeRelative]),L=ge.useMemo(()=>n.buildLocation({...H}),[n,H]),ne=L.maskedLocation?L.maskedLocation.publicHref:L.publicHref,G=L.maskedLocation?L.maskedLocation.external:L.external,q=ge.useMemo(()=>qh(ne,G,n.history,w),[w,G,ne,n.history]),ee=ge.useMemo(()=>{if(q?.external){if(ks(q.href,n.protocolAllowlist)){process.env.NODE_ENV!=="production"&&console.warn(`Blocked Link with dangerous protocol: ${q.href}`);return}return q.href}if(!Hh(s)&&!(typeof s!="string"||s.indexOf(":")===-1))try{if(new URL(s),ks(s,n.protocolAllowlist)){process.env.NODE_ENV!=="production"&&console.warn(`Blocked Link with dangerous protocol: ${s}`);return}return s}catch{}},[s,q,n.protocolAllowlist]),oe=zs({select:ve=>{if(ee)return!1;if(a?.exact){if(!_h(ve.location.pathname,L.pathname,n.basepath))return!1}else{const Ie=jo(ve.location.pathname,n.basepath),$t=jo(L.pathname,n.basepath);if(!(Ie.startsWith($t)&&(Ie.length===$t.length||Ie[$t.length]==="/")))return!1}return(a?.includeSearch??!0)&&!Ro(ve.location.search,L.search,{partial:!a?.exact,ignoreUndefined:!a?.explicitUndefined})?!1:a?.includeHash?$&&ve.location.hash===L.hash:!0}}),te=oe?Ss(o,{})??zh:Ui,xe=oe?Ui:Ss(i,{})??Ui,A=[O,te.className,xe.className].filter(Boolean).join(" "),ht=(D||te.style||xe.style)&&{...D,...te.style,...xe.style},[Un,vr]=ge.useState(!1),qa=ge.useRef(!1),Fn=t.reloadDocument||ee?!1:c??n.options.defaultPreload,Di=l??n.options.defaultPreloadDelay??0,Tn=ge.useCallback(()=>{n.preloadRoute({...H,_builtLocation:L}).catch(ve=>{console.warn(ve),console.warn(Th)})},[n,H,L]),ru=ge.useCallback(ve=>{ve?.isIntersecting&&Tn()},[Tn]);Ch(r,ru,Wh,{disabled:!!w||Fn!=="viewport"}),ge.useEffect(()=>{qa.current||!w&&Fn==="render"&&(Tn(),qa.current=!0)},[w,Tn,Fn]);const ou=ve=>{const Ie=ve.currentTarget.getAttribute("target"),$t=v!==void 0?v:Ie;if(!w&&!Zh(ve)&&!ve.defaultPrevented&&(!$t||$t==="_self")&&ve.button===0){ve.preventDefault(),uu.flushSync(()=>{vr(!0)});const Ba=n.subscribe("onResolved",()=>{Ba(),vr(!1)});n.navigate({...H,replace:d,resetScroll:y,hashScrollIntoView:u,startTransition:h,viewTransition:p,ignoreBlocker:j})}};if(ee)return{...cn,ref:r,href:ee,...g&&{children:g},...v&&{target:v},...w&&{disabled:w},...D&&{style:D},...O&&{className:O},...C&&{onClick:C},...E&&{onFocus:E},...S&&{onMouseEnter:S},...P&&{onMouseLeave:P},...z&&{onTouchStart:z}};const Ha=ve=>{w||Fn&&Tn()},iu=Ha,au=ve=>{if(!(w||!Fn))if(!Di)Tn();else{const Ie=ve.target;if(Er.has(Ie))return;const $t=setTimeout(()=>{Er.delete(Ie),Tn()},Di);Er.set(Ie,$t)}},su=ve=>{if(w||!Fn||!Di)return;const Ie=ve.target,$t=Er.get(Ie);$t&&(clearTimeout($t),Er.delete(Ie))};return{...cn,...te,...xe,href:q?.href,ref:r,onClick:_r([C,ou]),onFocus:_r([E,Ha]),onMouseEnter:_r([S,au]),onMouseLeave:_r([P,su]),onTouchStart:_r([z,iu]),disabled:!!w,target:v,...ht&&{style:ht},...A&&{className:A},...w&&Uh,...oe&&Fh,...$&&Un&&Vh}}const Ui={},zh={className:"active"},Uh={role:"link","aria-disabled":!0},Fh={"data-status":"active","aria-current":"page"},Vh={"data-transitioning":"transitioning"},Er=new WeakMap,Wh={rootMargin:"100px"},_r=t=>e=>{for(const n of t)if(n){if(e.defaultPrevented)return;n(e)}};function qh(t,e,n,r){if(!r)return e?{href:t,external:!0}:{href:n.createHref(t)||"/",external:!1}}function Hh(t){if(typeof t!="string")return!1;const e=t.charCodeAt(0);return e===47?t.charCodeAt(1)!==47:e===46}function Bh(t){return ge.forwardRef(function(n,r){return R.jsx(Da,{...n,_asChild:t,ref:r})})}const Da=ge.forwardRef((t,e)=>{const{_asChild:n,...r}=t,{type:o,...i}=Yh(r,e),a=typeof r.children=="function"?r.children({isActive:i["data-status"]==="active"}):r.children;if(!n){const{disabled:s,...c}=i;return ge.createElement("a",c,a)}return ge.createElement(n,i,a)});function Zh(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Gh(t){return R.jsx(W.Link,{component:Da,to:t.href,className:"next-btn-link",underline:"hover","aria-label":t.ariaLabel,children:t.linkText??t.children})}const Kh=Et(R.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew");function Xh(t){return R.jsxs(W.Link,{component:Da,to:t.href,target:t.target||"_blank",rel:"noreferrer",className:"next-btn-link",underline:"hover","aria-label":t.ariaLabel??t.linkText??(typeof t.children=="string"?t.children:void 0),children:[t.linkText??t.children,R.jsx(W.Icon,{sx:{fontSize:"1.1rem",mx:.75,verticalAlign:"middle",display:"inline-flex"},component:Kh})]})}function Qh(t){const{condition:e,children:n,else:r}=t;return e?typeof n=="function"?n():n:r?typeof r=="function"?r():r:null}const Jh=t=>{const e=["next-btn-link",t.className].filter(Boolean).join(" ");return R.jsx(W.Link,{...t,className:e,underline:t.underline??"hover"})},em=Bh(Jh),Us=Et(R.jsx("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Fs=Et(R.jsx("path",{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6z"}),"KeyboardArrowLeft"),Vs=Et(R.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"}),"KeyboardArrowRight"),Ws=Et(R.jsx("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function tm(t){const e=Uf(),{count:n,page:r,rowsPerPage:o,onPageChange:i}=t,a=u=>{i(u,0)},s=u=>{i(u,r-1)},c=u=>{i(u,r+1)},l=u=>{i(u,Math.max(0,Math.ceil(n/o)-1))};return R.jsxs(W.Box,{sx:{flexShrink:0,ml:2.5},children:[R.jsx(W.IconButton,{onClick:a,disabled:r===0,"aria-label":"first page",children:e.direction==="rtl"?R.jsx(Ws,{}):R.jsx(Us,{})}),R.jsx(W.IconButton,{onClick:s,disabled:r===0,"aria-label":"previous page",children:e.direction==="rtl"?R.jsx(Vs,{}):R.jsx(Fs,{})}),R.jsx(W.IconButton,{onClick:c,disabled:r>=Math.ceil(n/o)-1,"aria-label":"next page",children:e.direction==="rtl"?R.jsx(Fs,{}):R.jsx(Vs,{})}),R.jsx(W.IconButton,{onClick:l,disabled:r>=Math.ceil(n/o)-1,"aria-label":"last page",children:e.direction==="rtl"?R.jsx(Us,{}):R.jsx(Ws,{})})]})}function nm(t){const{children:e,index:n,...r}=t;return R.jsx("div",{className:"tabPanel",role:"tabpanel",id:`vertical-tabpanel-${n}`,"aria-labelledby":`vertical-tab-${n}`,...r,children:R.jsx(W.Box,{sx:{p:3},children:R.jsx(W.Typography,{component:"span",children:e})})})}function rm(t){return{id:`vertical-tab-${t}`,"aria-controls":`vertical-tabpanel-${t}`}}function om(t){return typeof t=="boolean"?t:typeof t=="string"?t.toLowerCase()==="true":!1}function im(t){return getComputedStyle(document.documentElement).getPropertyValue(t).trim()}class f extends Array{constructor(e,n){if(super(e),this.sign=n,Object.setPrototypeOf(this,f.prototype),e>f.__kMaxLength)throw new RangeError("Maximum BigInt size exceeded")}static BigInt(e){var n=Math.floor,r=Number.isFinite;if(typeof e=="number"){if(e===0)return f.__zero();if(f.__isOneDigitInt(e))return 0>e?f.__oneDigit(-e,!0):f.__oneDigit(e,!1);if(!r(e)||n(e)!==e)throw new RangeError("The number "+e+" cannot be converted to BigInt because it is not an integer");return f.__fromDouble(e)}if(typeof e=="string"){const o=f.__fromString(e);if(o===null)throw new SyntaxError("Cannot convert "+e+" to a BigInt");return o}if(typeof e=="boolean")return e===!0?f.__oneDigit(1,!1):f.__zero();if(typeof e=="object"){if(e.constructor===f)return e;const o=f.__toPrimitive(e);return f.BigInt(o)}throw new TypeError("Cannot convert "+e+" to a BigInt")}toDebugString(){const e=["BigInt["];for(const n of this)e.push((n&&(n>>>0).toString(16))+", ");return e.push("]"),e.join("")}toString(e=10){if(2>e||36<e)throw new RangeError("toString() radix argument must be between 2 and 36");return this.length===0?"0":(e&e-1)==0?f.__toStringBasePowerOfTwo(this,e):f.__toStringGeneric(this,e,!1)}valueOf(){throw new Error("Convert JSBI instances to native numbers using `toNumber`.")}static toNumber(e){const n=e.length;if(n===0)return 0;if(n===1){const v=e.__unsignedDigit(0);return e.sign?-v:v}const r=e.__digit(n-1),o=f.__clz30(r),i=30*n-o;if(1024<i)return e.sign?-1/0:1/0;let a=i-1,s=r,c=n-1;const l=o+3;let u=l===32?0:s<<l;u>>>=12;const d=l-12;let h=12<=l?0:s<<20+l,y=20+l;for(0<d&&0<c&&(c--,s=e.__digit(c),u|=s>>>30-d,h=s<<d+2,y=d+2);0<y&&0<c;)c--,s=e.__digit(c),h|=30<=y?s<<y-30:s>>>30-y,y-=30;const p=f.__decideRounding(e,y,c,s);if((p===1||p===0&&(1&h)==1)&&(h=h+1>>>0,h===0&&(u++,u>>>20!=0&&(u=0,a++,1023<a))))return e.sign?-1/0:1/0;const g=e.sign?-2147483648:0;return a=a+1023<<20,f.__kBitConversionInts[f.__kBitConversionIntHigh]=g|a|u,f.__kBitConversionInts[f.__kBitConversionIntLow]=h,f.__kBitConversionDouble[0]}static unaryMinus(e){if(e.length===0)return e;const n=e.__copy();return n.sign=!e.sign,n}static bitwiseNot(e){return e.sign?f.__absoluteSubOne(e).__trim():f.__absoluteAddOne(e,!0)}static exponentiate(e,n){if(n.sign)throw new RangeError("Exponent must be positive");if(n.length===0)return f.__oneDigit(1,!1);if(e.length===0)return e;if(e.length===1&&e.__digit(0)===1)return e.sign&&(1&n.__digit(0))==0?f.unaryMinus(e):e;if(1<n.length)throw new RangeError("BigInt too big");let r=n.__unsignedDigit(0);if(r===1)return e;if(r>=f.__kMaxLengthBits)throw new RangeError("BigInt too big");if(e.length===1&&e.__digit(0)===2){const a=1+(0|r/30),s=e.sign&&(1&r)!=0,c=new f(a,s);c.__initializeDigits();const l=1<<r%30;return c.__setDigit(a-1,l),c}let o=null,i=e;for((1&r)!=0&&(o=e),r>>=1;r!==0;r>>=1)i=f.multiply(i,i),(1&r)!=0&&(o===null?o=i:o=f.multiply(o,i));return o}static multiply(e,n){if(e.length===0)return e;if(n.length===0)return n;let r=e.length+n.length;30<=e.__clzmsd()+n.__clzmsd()&&r--;const o=new f(r,e.sign!==n.sign);o.__initializeDigits();for(let i=0;i<e.length;i++)f.__multiplyAccumulate(n,e.__digit(i),o,i);return o.__trim()}static divide(e,n){if(n.length===0)throw new RangeError("Division by zero");if(0>f.__absoluteCompare(e,n))return f.__zero();const r=e.sign!==n.sign,o=n.__unsignedDigit(0);let i;if(n.length===1&&32767>=o){if(o===1)return r===e.sign?e:f.unaryMinus(e);i=f.__absoluteDivSmall(e,o,null)}else i=f.__absoluteDivLarge(e,n,!0,!1);return i.sign=r,i.__trim()}static remainder(e,n){if(n.length===0)throw new RangeError("Division by zero");if(0>f.__absoluteCompare(e,n))return e;const r=n.__unsignedDigit(0);if(n.length===1&&32767>=r){if(r===1)return f.__zero();const i=f.__absoluteModSmall(e,r);return i===0?f.__zero():f.__oneDigit(i,e.sign)}const o=f.__absoluteDivLarge(e,n,!1,!0);return o.sign=e.sign,o.__trim()}static add(e,n){const r=e.sign;return r===n.sign?f.__absoluteAdd(e,n,r):0<=f.__absoluteCompare(e,n)?f.__absoluteSub(e,n,r):f.__absoluteSub(n,e,!r)}static subtract(e,n){const r=e.sign;return r===n.sign?0<=f.__absoluteCompare(e,n)?f.__absoluteSub(e,n,r):f.__absoluteSub(n,e,!r):f.__absoluteAdd(e,n,r)}static leftShift(e,n){return n.length===0||e.length===0?e:n.sign?f.__rightShiftByAbsolute(e,n):f.__leftShiftByAbsolute(e,n)}static signedRightShift(e,n){return n.length===0||e.length===0?e:n.sign?f.__leftShiftByAbsolute(e,n):f.__rightShiftByAbsolute(e,n)}static unsignedRightShift(){throw new TypeError("BigInts have no unsigned right shift; use >> instead")}static lessThan(e,n){return 0>f.__compareToBigInt(e,n)}static lessThanOrEqual(e,n){return 0>=f.__compareToBigInt(e,n)}static greaterThan(e,n){return 0<f.__compareToBigInt(e,n)}static greaterThanOrEqual(e,n){return 0<=f.__compareToBigInt(e,n)}static equal(e,n){if(e.sign!==n.sign||e.length!==n.length)return!1;for(let r=0;r<e.length;r++)if(e.__digit(r)!==n.__digit(r))return!1;return!0}static notEqual(e,n){return!f.equal(e,n)}static bitwiseAnd(e,n){var r=Math.max;if(!e.sign&&!n.sign)return f.__absoluteAnd(e,n).__trim();if(e.sign&&n.sign){const o=r(e.length,n.length)+1;let i=f.__absoluteSubOne(e,o);const a=f.__absoluteSubOne(n);return i=f.__absoluteOr(i,a,i),f.__absoluteAddOne(i,!0,i).__trim()}return e.sign&&([e,n]=[n,e]),f.__absoluteAndNot(e,f.__absoluteSubOne(n)).__trim()}static bitwiseXor(e,n){var r=Math.max;if(!e.sign&&!n.sign)return f.__absoluteXor(e,n).__trim();if(e.sign&&n.sign){const a=r(e.length,n.length),s=f.__absoluteSubOne(e,a),c=f.__absoluteSubOne(n);return f.__absoluteXor(s,c,s).__trim()}const o=r(e.length,n.length)+1;e.sign&&([e,n]=[n,e]);let i=f.__absoluteSubOne(n,o);return i=f.__absoluteXor(i,e,i),f.__absoluteAddOne(i,!0,i).__trim()}static bitwiseOr(e,n){var r=Math.max;const o=r(e.length,n.length);if(!e.sign&&!n.sign)return f.__absoluteOr(e,n).__trim();if(e.sign&&n.sign){let a=f.__absoluteSubOne(e,o);const s=f.__absoluteSubOne(n);return a=f.__absoluteAnd(a,s,a),f.__absoluteAddOne(a,!0,a).__trim()}e.sign&&([e,n]=[n,e]);let i=f.__absoluteSubOne(n,o);return i=f.__absoluteAndNot(i,e,i),f.__absoluteAddOne(i,!0,i).__trim()}static asIntN(e,n){var r=Math.floor;if(n.length===0)return n;if(e=r(e),0>e)throw new RangeError("Invalid value: not (convertible to) a safe integer");if(e===0)return f.__zero();if(e>=f.__kMaxLengthBits)return n;const o=0|(e+29)/30;if(n.length<o)return n;const i=n.__unsignedDigit(o-1),a=1<<(e-1)%30;if(n.length===o&&i<a)return n;if((i&a)!==a)return f.__truncateToNBits(e,n);if(!n.sign)return f.__truncateAndSubFromPowerOfTwo(e,n,!0);if((i&a-1)==0){for(let s=o-2;0<=s;s--)if(n.__digit(s)!==0)return f.__truncateAndSubFromPowerOfTwo(e,n,!1);return n.length===o&&i===a?n:f.__truncateToNBits(e,n)}return f.__truncateAndSubFromPowerOfTwo(e,n,!1)}static asUintN(e,n){var r=Math.floor;if(n.length===0)return n;if(e=r(e),0>e)throw new RangeError("Invalid value: not (convertible to) a safe integer");if(e===0)return f.__zero();if(n.sign){if(e>f.__kMaxLengthBits)throw new RangeError("BigInt too big");return f.__truncateAndSubFromPowerOfTwo(e,n,!1)}if(e>=f.__kMaxLengthBits)return n;const o=0|(e+29)/30;if(n.length<o)return n;const i=e%30;return n.length==o&&(i===0||!(n.__digit(o-1)>>>i))?n:f.__truncateToNBits(e,n)}static ADD(e,n){if(e=f.__toPrimitive(e),n=f.__toPrimitive(n),typeof e=="string")return typeof n!="string"&&(n=n.toString()),e+n;if(typeof n=="string")return e.toString()+n;if(e=f.__toNumeric(e),n=f.__toNumeric(n),f.__isBigInt(e)&&f.__isBigInt(n))return f.add(e,n);if(typeof e=="number"&&typeof n=="number")return e+n;throw new TypeError("Cannot mix BigInt and other types, use explicit conversions")}static LT(e,n){return f.__compare(e,n,0)}static LE(e,n){return f.__compare(e,n,1)}static GT(e,n){return f.__compare(e,n,2)}static GE(e,n){return f.__compare(e,n,3)}static EQ(e,n){for(;;){if(f.__isBigInt(e))return f.__isBigInt(n)?f.equal(e,n):f.EQ(n,e);if(typeof e=="number"){if(f.__isBigInt(n))return f.__equalToNumber(n,e);if(typeof n!="object")return e==n;n=f.__toPrimitive(n)}else if(typeof e=="string"){if(f.__isBigInt(n))return e=f.__fromString(e),e!==null&&f.equal(e,n);if(typeof n!="object")return e==n;n=f.__toPrimitive(n)}else if(typeof e=="boolean"){if(f.__isBigInt(n))return f.__equalToNumber(n,+e);if(typeof n!="object")return e==n;n=f.__toPrimitive(n)}else if(typeof e=="symbol"){if(f.__isBigInt(n))return!1;if(typeof n!="object")return e==n;n=f.__toPrimitive(n)}else if(typeof e=="object"){if(typeof n=="object"&&n.constructor!==f)return e==n;e=f.__toPrimitive(e)}else return e==n}}static NE(e,n){return!f.EQ(e,n)}static DataViewGetBigInt64(e,n,r=!1){return f.asIntN(64,f.DataViewGetBigUint64(e,n,r))}static DataViewGetBigUint64(e,n,r=!1){const[o,i]=r?[4,0]:[0,4],a=e.getUint32(n+o,r),s=e.getUint32(n+i,r),c=new f(3,!1);return c.__setDigit(0,1073741823&s),c.__setDigit(1,(268435455&a)<<2|s>>>30),c.__setDigit(2,a>>>28),c.__trim()}static DataViewSetBigInt64(e,n,r,o=!1){f.DataViewSetBigUint64(e,n,r,o)}static DataViewSetBigUint64(e,n,r,o=!1){r=f.asUintN(64,r);let i=0,a=0;if(0<r.length&&(a=r.__digit(0),1<r.length)){const l=r.__digit(1);a|=l<<30,i=l>>>2,2<r.length&&(i|=r.__digit(2)<<28)}const[s,c]=o?[4,0]:[0,4];e.setUint32(n+s,i,o),e.setUint32(n+c,a,o)}static __zero(){return new f(0,!1)}static __oneDigit(e,n){const r=new f(1,n);return r.__setDigit(0,e),r}__copy(){const e=new f(this.length,this.sign);for(let n=0;n<this.length;n++)e[n]=this[n];return e}__trim(){let e=this.length,n=this[e-1];for(;n===0;)e--,n=this[e-1],this.pop();return e===0&&(this.sign=!1),this}__initializeDigits(){for(let e=0;e<this.length;e++)this[e]=0}static __decideRounding(e,n,r,o){if(0<n)return-1;let i;if(0>n)i=-n-1;else{if(r===0)return-1;r--,o=e.__digit(r),i=29}let a=1<<i;if((o&a)==0)return-1;if(a-=1,(o&a)!=0)return 1;for(;0<r;)if(r--,e.__digit(r)!==0)return 1;return 0}static __fromDouble(e){f.__kBitConversionDouble[0]=e;const n=2047&f.__kBitConversionInts[f.__kBitConversionIntHigh]>>>20,r=n-1023,o=(0|r/30)+1,i=new f(o,0>e);let a=1048575&f.__kBitConversionInts[f.__kBitConversionIntHigh]|1048576,s=f.__kBitConversionInts[f.__kBitConversionIntLow];const c=20,l=r%30;let u,d=0;if(l<20){const h=c-l;d=h+32,u=a>>>h,a=a<<32-h|s>>>h,s<<=32-h}else if(l===20)d=32,u=a,a=s,s=0;else{const h=l-c;d=32-h,u=a<<h|s>>>32-h,a=s<<h,s=0}i.__setDigit(o-1,u);for(let h=o-2;0<=h;h--)0<d?(d-=30,u=a>>>2,a=a<<30|s>>>2,s<<=30):u=0,i.__setDigit(h,u);return i.__trim()}static __isWhitespace(e){return 13>=e&&9<=e||(159>=e?e==32:131071>=e?e==160||e==5760:196607>=e?(e&=131071,10>=e||e==40||e==41||e==47||e==95||e==4096):e==65279)}static __fromString(e,n=0){let r=0;const o=e.length;let i=0;if(i===o)return f.__zero();let a=e.charCodeAt(i);for(;f.__isWhitespace(a);){if(++i===o)return f.__zero();a=e.charCodeAt(i)}if(a===43){if(++i===o)return null;a=e.charCodeAt(i),r=1}else if(a===45){if(++i===o)return null;a=e.charCodeAt(i),r=-1}if(n===0){if(n=10,a===48){if(++i===o)return f.__zero();if(a=e.charCodeAt(i),a===88||a===120){if(n=16,++i===o)return null;a=e.charCodeAt(i)}else if(a===79||a===111){if(n=8,++i===o)return null;a=e.charCodeAt(i)}else if(a===66||a===98){if(n=2,++i===o)return null;a=e.charCodeAt(i)}}}else if(n===16&&a===48){if(++i===o)return f.__zero();if(a=e.charCodeAt(i),a===88||a===120){if(++i===o)return null;a=e.charCodeAt(i)}}if(r!=0&&n!==10)return null;for(;a===48;){if(++i===o)return f.__zero();a=e.charCodeAt(i)}const s=o-i;let c=f.__kMaxBitsPerChar[n],l=f.__kBitsPerCharTableMultiplier-1;if(s>1073741824/c)return null;const u=c*s+l>>>f.__kBitsPerCharTableShift,d=new f(0|(u+29)/30,!1),h=10>n?n:10,y=10<n?n-10:0;if((n&n-1)==0){c>>=f.__kBitsPerCharTableShift;const p=[],g=[];let v=!1;do{let w=0,D=0;for(;;){let O;if(a-48>>>0<h)O=a-48;else if((32|a)-97>>>0<y)O=(32|a)-87;else{v=!0;break}if(D+=c,w=w<<c|O,++i===o){v=!0;break}if(a=e.charCodeAt(i),30<D+c)break}p.push(w),g.push(D)}while(!v);f.__fillFromParts(d,p,g)}else{d.__initializeDigits();let p=!1,g=0;do{let v=0,w=1;for(;;){let O;if(a-48>>>0<h)O=a-48;else if((32|a)-97>>>0<y)O=(32|a)-87;else{p=!0;break}const C=w*n;if(1073741823<C)break;if(w=C,v=v*n+O,g++,++i===o){p=!0;break}a=e.charCodeAt(i)}l=30*f.__kBitsPerCharTableMultiplier-1;const D=0|(c*g+l>>>f.__kBitsPerCharTableShift)/30;d.__inplaceMultiplyAdd(w,v,D)}while(!p)}if(i!==o){if(!f.__isWhitespace(a))return null;for(i++;i<o;i++)if(a=e.charCodeAt(i),!f.__isWhitespace(a))return null}return d.sign=r==-1,d.__trim()}static __fillFromParts(e,n,r){let o=0,i=0,a=0;for(let s=n.length-1;0<=s;s--){const c=n[s],l=r[s];i|=c<<a,a+=l,a===30?(e.__setDigit(o++,i),a=0,i=0):30<a&&(e.__setDigit(o++,1073741823&i),a-=30,i=c>>>l-a)}if(i!==0){if(o>=e.length)throw new Error("implementation bug");e.__setDigit(o++,i)}for(;o<e.length;o++)e.__setDigit(o,0)}static __toStringBasePowerOfTwo(e,n){const r=e.length;let o=n-1;o=(85&o>>>1)+(85&o),o=(51&o>>>2)+(51&o),o=(15&o>>>4)+(15&o);const i=o,a=n-1,s=e.__digit(r-1),c=f.__clz30(s);let l=0|(30*r-c+i-1)/i;if(e.sign&&l++,268435456<l)throw new Error("string too long");const u=Array(l);let d=l-1,h=0,y=0;for(let g=0;g<r-1;g++){const v=e.__digit(g),w=(h|v<<y)&a;u[d--]=f.__kConversionChars[w];const D=i-y;for(h=v>>>D,y=30-D;y>=i;)u[d--]=f.__kConversionChars[h&a],h>>>=i,y-=i}const p=(h|s<<y)&a;for(u[d--]=f.__kConversionChars[p],h=s>>>i-y;h!==0;)u[d--]=f.__kConversionChars[h&a],h>>>=i;if(e.sign&&(u[d--]="-"),d!=-1)throw new Error("implementation bug");return u.join("")}static __toStringGeneric(e,n,r){const o=e.length;if(o===0)return"";if(o===1){let g=e.__unsignedDigit(0).toString(n);return r===!1&&e.sign&&(g="-"+g),g}const i=30*o-f.__clz30(e.__digit(o-1)),a=f.__kMaxBitsPerChar[n],s=a-1;let c=i*f.__kBitsPerCharTableMultiplier;c+=s-1,c=0|c/s;const l=c+1>>1,u=f.exponentiate(f.__oneDigit(n,!1),f.__oneDigit(l,!1));let d,h;const y=u.__unsignedDigit(0);if(u.length===1&&32767>=y){d=new f(e.length,!1),d.__initializeDigits();let g=0;for(let v=2*e.length-1;0<=v;v--){const w=g<<15|e.__halfDigit(v);d.__setHalfDigit(v,0|w/y),g=0|w%y}h=g.toString(n)}else{const g=f.__absoluteDivLarge(e,u,!0,!0);d=g.quotient;const v=g.remainder.__trim();h=f.__toStringGeneric(v,n,!0)}d.__trim();let p=f.__toStringGeneric(d,n,!0);for(;h.length<l;)h="0"+h;return r===!1&&e.sign&&(p="-"+p),p+h}static __unequalSign(e){return e?-1:1}static __absoluteGreater(e){return e?-1:1}static __absoluteLess(e){return e?1:-1}static __compareToBigInt(e,n){const r=e.sign;if(r!==n.sign)return f.__unequalSign(r);const o=f.__absoluteCompare(e,n);return 0<o?f.__absoluteGreater(r):0>o?f.__absoluteLess(r):0}static __compareToNumber(e,n){if(f.__isOneDigitInt(n)){const r=e.sign,o=0>n;if(r!==o)return f.__unequalSign(r);if(e.length===0){if(o)throw new Error("implementation bug");return n===0?0:-1}if(1<e.length)return f.__absoluteGreater(r);const i=Math.abs(n),a=e.__unsignedDigit(0);return a>i?f.__absoluteGreater(r):a<i?f.__absoluteLess(r):0}return f.__compareToDouble(e,n)}static __compareToDouble(e,n){if(n!==n)return n;if(n===1/0)return-1;if(n===-1/0)return 1;const r=e.sign;if(r!==0>n)return f.__unequalSign(r);if(n===0)throw new Error("implementation bug: should be handled elsewhere");if(e.length===0)return-1;f.__kBitConversionDouble[0]=n;const o=2047&f.__kBitConversionInts[f.__kBitConversionIntHigh]>>>20;if(o==2047)throw new Error("implementation bug: handled elsewhere");const i=o-1023;if(0>i)return f.__absoluteGreater(r);const a=e.length;let s=e.__digit(a-1);const c=f.__clz30(s),l=30*a-c,u=i+1;if(l<u)return f.__absoluteLess(r);if(l>u)return f.__absoluteGreater(r);let d=1048576|1048575&f.__kBitConversionInts[f.__kBitConversionIntHigh],h=f.__kBitConversionInts[f.__kBitConversionIntLow];const y=20,p=29-c;if(p!==(0|(l-1)%30))throw new Error("implementation bug");let g,v=0;if(20>p){const w=y-p;v=w+32,g=d>>>w,d=d<<32-w|h>>>w,h<<=32-w}else if(p===20)v=32,g=d,d=h,h=0;else{const w=p-y;v=32-w,g=d<<w|h>>>32-w,d=h<<w,h=0}if(s>>>=0,g>>>=0,s>g)return f.__absoluteGreater(r);if(s<g)return f.__absoluteLess(r);for(let w=a-2;0<=w;w--){0<v?(v-=30,g=d>>>2,d=d<<30|h>>>2,h<<=30):g=0;const D=e.__unsignedDigit(w);if(D>g)return f.__absoluteGreater(r);if(D<g)return f.__absoluteLess(r)}if(d!==0||h!==0){if(v===0)throw new Error("implementation bug");return f.__absoluteLess(r)}return 0}static __equalToNumber(e,n){var r=Math.abs;return f.__isOneDigitInt(n)?n===0?e.length===0:e.length===1&&e.sign===0>n&&e.__unsignedDigit(0)===r(n):f.__compareToDouble(e,n)===0}static __comparisonResultToBool(e,n){return n===0?0>e:n===1?0>=e:n===2?0<e:n===3?0<=e:void 0}static __compare(e,n,r){if(e=f.__toPrimitive(e),n=f.__toPrimitive(n),typeof e=="string"&&typeof n=="string")switch(r){case 0:return e<n;case 1:return e<=n;case 2:return e>n;case 3:return e>=n}if(f.__isBigInt(e)&&typeof n=="string")return n=f.__fromString(n),n!==null&&f.__comparisonResultToBool(f.__compareToBigInt(e,n),r);if(typeof e=="string"&&f.__isBigInt(n))return e=f.__fromString(e),e!==null&&f.__comparisonResultToBool(f.__compareToBigInt(e,n),r);if(e=f.__toNumeric(e),n=f.__toNumeric(n),f.__isBigInt(e)){if(f.__isBigInt(n))return f.__comparisonResultToBool(f.__compareToBigInt(e,n),r);if(typeof n!="number")throw new Error("implementation bug");return f.__comparisonResultToBool(f.__compareToNumber(e,n),r)}if(typeof e!="number")throw new Error("implementation bug");if(f.__isBigInt(n))return f.__comparisonResultToBool(f.__compareToNumber(n,e),2^r);if(typeof n!="number")throw new Error("implementation bug");return r===0?e<n:r===1?e<=n:r===2?e>n:r===3?e>=n:void 0}__clzmsd(){return f.__clz30(this.__digit(this.length-1))}static __absoluteAdd(e,n,r){if(e.length<n.length)return f.__absoluteAdd(n,e,r);if(e.length===0)return e;if(n.length===0)return e.sign===r?e:f.unaryMinus(e);let o=e.length;(e.__clzmsd()===0||n.length===e.length&&n.__clzmsd()===0)&&o++;const i=new f(o,r);let a=0,s=0;for(;s<n.length;s++){const c=e.__digit(s)+n.__digit(s)+a;a=c>>>30,i.__setDigit(s,1073741823&c)}for(;s<e.length;s++){const c=e.__digit(s)+a;a=c>>>30,i.__setDigit(s,1073741823&c)}return s<i.length&&i.__setDigit(s,a),i.__trim()}static __absoluteSub(e,n,r){if(e.length===0)return e;if(n.length===0)return e.sign===r?e:f.unaryMinus(e);const o=new f(e.length,r);let i=0,a=0;for(;a<n.length;a++){const s=e.__digit(a)-n.__digit(a)-i;i=1&s>>>30,o.__setDigit(a,1073741823&s)}for(;a<e.length;a++){const s=e.__digit(a)-i;i=1&s>>>30,o.__setDigit(a,1073741823&s)}return o.__trim()}static __absoluteAddOne(e,n,r=null){const o=e.length;r===null?r=new f(o,n):r.sign=n;let i=1;for(let a=0;a<o;a++){const s=e.__digit(a)+i;i=s>>>30,r.__setDigit(a,1073741823&s)}return i!=0&&r.__setDigitGrow(o,1),r}static __absoluteSubOne(e,n){const r=e.length;n=n||r;const o=new f(n,!1);let i=1;for(let a=0;a<r;a++){const s=e.__digit(a)-i;i=1&s>>>30,o.__setDigit(a,1073741823&s)}if(i!=0)throw new Error("implementation bug");for(let a=r;a<n;a++)o.__setDigit(a,0);return o}static __absoluteAnd(e,n,r=null){let o=e.length,i=n.length,a=i;if(o<i){a=o;const l=e,u=o;e=n,o=i,n=l,i=u}let s=a;r===null?r=new f(s,!1):s=r.length;let c=0;for(;c<a;c++)r.__setDigit(c,e.__digit(c)&n.__digit(c));for(;c<s;c++)r.__setDigit(c,0);return r}static __absoluteAndNot(e,n,r=null){const o=e.length,i=n.length;let a=i;o<i&&(a=o);let s=o;r===null?r=new f(s,!1):s=r.length;let c=0;for(;c<a;c++)r.__setDigit(c,e.__digit(c)&~n.__digit(c));for(;c<o;c++)r.__setDigit(c,e.__digit(c));for(;c<s;c++)r.__setDigit(c,0);return r}static __absoluteOr(e,n,r=null){let o=e.length,i=n.length,a=i;if(o<i){a=o;const l=e,u=o;e=n,o=i,n=l,i=u}let s=o;r===null?r=new f(s,!1):s=r.length;let c=0;for(;c<a;c++)r.__setDigit(c,e.__digit(c)|n.__digit(c));for(;c<o;c++)r.__setDigit(c,e.__digit(c));for(;c<s;c++)r.__setDigit(c,0);return r}static __absoluteXor(e,n,r=null){let o=e.length,i=n.length,a=i;if(o<i){a=o;const l=e,u=o;e=n,o=i,n=l,i=u}let s=o;r===null?r=new f(s,!1):s=r.length;let c=0;for(;c<a;c++)r.__setDigit(c,e.__digit(c)^n.__digit(c));for(;c<o;c++)r.__setDigit(c,e.__digit(c));for(;c<s;c++)r.__setDigit(c,0);return r}static __absoluteCompare(e,n){const r=e.length-n.length;if(r!=0)return r;let o=e.length-1;for(;0<=o&&e.__digit(o)===n.__digit(o);)o--;return 0>o?0:e.__unsignedDigit(o)>n.__unsignedDigit(o)?1:-1}static __multiplyAccumulate(e,n,r,o){if(n===0)return;const i=32767&n,a=n>>>15;let s=0,c=0;for(let l,u=0;u<e.length;u++,o++){l=r.__digit(o);const d=e.__digit(u),h=32767&d,y=d>>>15,p=f.__imul(h,i),g=f.__imul(h,a),v=f.__imul(y,i),w=f.__imul(y,a);l+=c+p+s,s=l>>>30,l&=1073741823,l+=((32767&g)<<15)+((32767&v)<<15),s+=l>>>30,c=w+(g>>>15)+(v>>>15),r.__setDigit(o,1073741823&l)}for(;s!=0||c!==0;o++){let l=r.__digit(o);l+=s+c,c=0,s=l>>>30,r.__setDigit(o,1073741823&l)}}static __internalMultiplyAdd(e,n,r,o,i){let a=r,s=0;for(let c=0;c<o;c++){const l=e.__digit(c),u=f.__imul(32767&l,n),d=f.__imul(l>>>15,n),h=u+((32767&d)<<15)+s+a;a=h>>>30,s=d>>>15,i.__setDigit(c,1073741823&h)}if(i.length>o)for(i.__setDigit(o++,a+s);o<i.length;)i.__setDigit(o++,0);else if(a+s!==0)throw new Error("implementation bug")}__inplaceMultiplyAdd(e,n,r){r>this.length&&(r=this.length);const o=32767&e,i=e>>>15;let a=0,s=n;for(let c=0;c<r;c++){const l=this.__digit(c),u=32767&l,d=l>>>15,h=f.__imul(u,o),y=f.__imul(u,i),p=f.__imul(d,o),g=f.__imul(d,i);let v=s+h+a;a=v>>>30,v&=1073741823,v+=((32767&y)<<15)+((32767&p)<<15),a+=v>>>30,s=g+(y>>>15)+(p>>>15),this.__setDigit(c,1073741823&v)}if(a!=0||s!==0)throw new Error("implementation bug")}static __absoluteDivSmall(e,n,r=null){r===null&&(r=new f(e.length,!1));let o=0;for(let i,a=2*e.length-1;0<=a;a-=2){i=(o<<15|e.__halfDigit(a))>>>0;const s=0|i/n;o=0|i%n,i=(o<<15|e.__halfDigit(a-1))>>>0;const c=0|i/n;o=0|i%n,r.__setDigit(a>>>1,s<<15|c)}return r}static __absoluteModSmall(e,n){let r=0;for(let o=2*e.length-1;0<=o;o--)r=0|((r<<15|e.__halfDigit(o))>>>0)%n;return r}static __absoluteDivLarge(e,n,r,o){const i=n.__halfDigitLength(),a=n.length,s=e.__halfDigitLength()-i;let c=null;r&&(c=new f(s+2>>>1,!1),c.__initializeDigits());const l=new f(i+2>>>1,!1);l.__initializeDigits();const u=f.__clz15(n.__halfDigit(i-1));0<u&&(n=f.__specialLeftShift(n,u,0));const d=f.__specialLeftShift(e,u,1),h=n.__halfDigit(i-1);let y=0;for(let p,g=s;0<=g;g--){p=32767;const v=d.__halfDigit(g+i);if(v!==h){const D=(v<<15|d.__halfDigit(g+i-1))>>>0;p=0|D/h;let O=0|D%h;const C=n.__halfDigit(i-2),E=d.__halfDigit(g+i-2);for(;f.__imul(p,C)>>>0>(O<<16|E)>>>0&&(p--,O+=h,!(32767<O)););}f.__internalMultiplyAdd(n,p,0,a,l);let w=d.__inplaceSub(l,g,i+1);w!==0&&(w=d.__inplaceAdd(n,g,i),d.__setHalfDigit(g+i,32767&d.__halfDigit(g+i)+w),p--),r&&(1&g?y=p<<15:c.__setDigit(g>>>1,y|p))}if(o)return d.__inplaceRightShift(u),r?{quotient:c,remainder:d}:d;if(r)return c;throw new Error("unreachable")}static __clz15(e){return f.__clz30(e)-15}__inplaceAdd(e,n,r){let o=0;for(let i=0;i<r;i++){const a=this.__halfDigit(n+i)+e.__halfDigit(i)+o;o=a>>>15,this.__setHalfDigit(n+i,32767&a)}return o}__inplaceSub(e,n,r){let o=0;if(1&n){n>>=1;let i=this.__digit(n),a=32767&i,s=0;for(;s<r-1>>>1;s++){const u=e.__digit(s),d=(i>>>15)-(32767&u)-o;o=1&d>>>15,this.__setDigit(n+s,(32767&d)<<15|32767&a),i=this.__digit(n+s+1),a=(32767&i)-(u>>>15)-o,o=1&a>>>15}const c=e.__digit(s),l=(i>>>15)-(32767&c)-o;if(o=1&l>>>15,this.__setDigit(n+s,(32767&l)<<15|32767&a),n+s+1>=this.length)throw new RangeError("out of bounds");(1&r)==0&&(i=this.__digit(n+s+1),a=(32767&i)-(c>>>15)-o,o=1&a>>>15,this.__setDigit(n+e.length,1073709056&i|32767&a))}else{n>>=1;let i=0;for(;i<e.length-1;i++){const u=this.__digit(n+i),d=e.__digit(i),h=(32767&u)-(32767&d)-o;o=1&h>>>15;const y=(u>>>15)-(d>>>15)-o;o=1&y>>>15,this.__setDigit(n+i,(32767&y)<<15|32767&h)}const a=this.__digit(n+i),s=e.__digit(i),c=(32767&a)-(32767&s)-o;o=1&c>>>15;let l=0;(1&r)==0&&(l=(a>>>15)-(s>>>15)-o,o=1&l>>>15),this.__setDigit(n+i,(32767&l)<<15|32767&c)}return o}__inplaceRightShift(e){if(e===0)return;let n=this.__digit(0)>>>e;const r=this.length-1;for(let o=0;o<r;o++){const i=this.__digit(o+1);this.__setDigit(o,1073741823&i<<30-e|n),n=i>>>e}this.__setDigit(r,n)}static __specialLeftShift(e,n,r){const o=e.length,i=new f(o+r,!1);if(n===0){for(let s=0;s<o;s++)i.__setDigit(s,e.__digit(s));return 0<r&&i.__setDigit(o,0),i}let a=0;for(let s=0;s<o;s++){const c=e.__digit(s);i.__setDigit(s,1073741823&c<<n|a),a=c>>>30-n}return 0<r&&i.__setDigit(o,a),i}static __leftShiftByAbsolute(e,n){const r=f.__toShiftAmount(n);if(0>r)throw new RangeError("BigInt too big");const o=0|r/30,i=r%30,a=e.length,s=i!==0&&e.__digit(a-1)>>>30-i!=0,c=a+o+(s?1:0),l=new f(c,e.sign);if(i===0){let u=0;for(;u<o;u++)l.__setDigit(u,0);for(;u<c;u++)l.__setDigit(u,e.__digit(u-o))}else{let u=0;for(let d=0;d<o;d++)l.__setDigit(d,0);for(let d=0;d<a;d++){const h=e.__digit(d);l.__setDigit(d+o,1073741823&h<<i|u),u=h>>>30-i}if(s)l.__setDigit(a+o,u);else if(u!==0)throw new Error("implementation bug")}return l.__trim()}static __rightShiftByAbsolute(e,n){const r=e.length,o=e.sign,i=f.__toShiftAmount(n);if(0>i)return f.__rightShiftByMaximum(o);const a=0|i/30,s=i%30;let c=r-a;if(0>=c)return f.__rightShiftByMaximum(o);let l=!1;if(o){if((e.__digit(a)&(1<<s)-1)!=0)l=!0;else for(let d=0;d<a;d++)if(e.__digit(d)!==0){l=!0;break}}l&&s===0&&~e.__digit(r-1)==0&&c++;let u=new f(c,o);if(s===0){u.__setDigit(c-1,0);for(let d=a;d<r;d++)u.__setDigit(d-a,e.__digit(d))}else{let d=e.__digit(a)>>>s;const h=r-a-1;for(let y=0;y<h;y++){const p=e.__digit(y+a+1);u.__setDigit(y,1073741823&p<<30-s|d),d=p>>>s}u.__setDigit(h,d)}return l&&(u=f.__absoluteAddOne(u,!0,u)),u.__trim()}static __rightShiftByMaximum(e){return e?f.__oneDigit(1,!0):f.__zero()}static __toShiftAmount(e){if(1<e.length)return-1;const n=e.__unsignedDigit(0);return n>f.__kMaxLengthBits?-1:n}static __toPrimitive(e,n="default"){if(typeof e!="object"||e.constructor===f)return e;if(typeof Symbol<"u"&&typeof Symbol.toPrimitive=="symbol"&&e[Symbol.toPrimitive]){const i=e[Symbol.toPrimitive](n);if(typeof i!="object")return i;throw new TypeError("Cannot convert object to primitive value")}const r=e.valueOf;if(r){const i=r.call(e);if(typeof i!="object")return i}const o=e.toString;if(o){const i=o.call(e);if(typeof i!="object")return i}throw new TypeError("Cannot convert object to primitive value")}static __toNumeric(e){return f.__isBigInt(e)?e:+e}static __isBigInt(e){return typeof e=="object"&&e!==null&&e.constructor===f}static __truncateToNBits(e,n){const r=0|(e+29)/30,o=new f(r,n.sign),i=r-1;for(let s=0;s<i;s++)o.__setDigit(s,n.__digit(s));let a=n.__digit(i);if(e%30!=0){const s=32-e%30;a=a<<s>>>s}return o.__setDigit(i,a),o.__trim()}static __truncateAndSubFromPowerOfTwo(e,n,r){var o=Math.min;const i=0|(e+29)/30,a=new f(i,r);let s=0;const c=i-1;let l=0;for(const y=o(c,n.length);s<y;s++){const p=0-n.__digit(s)-l;l=1&p>>>30,a.__setDigit(s,1073741823&p)}for(;s<c;s++)a.__setDigit(s,0|1073741823&-l);let u=c<n.length?n.__digit(c):0;const d=e%30;let h;if(d==0)h=0-u-l,h&=1073741823;else{const y=32-d;u=u<<y>>>y;const p=1<<32-y;h=p-u-l,h&=p-1}return a.__setDigit(c,h),a.__trim()}__digit(e){return this[e]}__unsignedDigit(e){return this[e]>>>0}__setDigit(e,n){this[e]=0|n}__setDigitGrow(e,n){this[e]=0|n}__halfDigitLength(){const e=this.length;return 32767>=this.__unsignedDigit(e-1)?2*e-1:2*e}__halfDigit(e){return 32767&this[e>>>1]>>>15*(1&e)}__setHalfDigit(e,n){const r=e>>>1,o=this.__digit(r),i=1&e?32767&o|n<<15:1073709056&o|32767&n;this.__setDigit(r,i)}static __digitPow(e,n){let r=1;for(;0<n;)1&n&&(r*=e),n>>>=1,e*=e;return r}static __detectBigEndian(){return f.__kBitConversionDouble[0]=-0,f.__kBitConversionInts[0]!==0}static __isOneDigitInt(e){return(1073741823&e)===e}}f.__kMaxLength=33554432,f.__kMaxLengthBits=f.__kMaxLength<<5,f.__kMaxBitsPerChar=[0,0,32,51,64,75,83,90,96,102,107,111,115,119,122,126,128,131,134,136,139,141,143,145,147,149,151,153,154,156,158,159,160,162,163,165,166],f.__kBitsPerCharTableShift=5,f.__kBitsPerCharTableMultiplier=1<<f.__kBitsPerCharTableShift,f.__kConversionChars=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],f.__kBitConversionBuffer=new ArrayBuffer(8),f.__kBitConversionDouble=new Float64Array(f.__kBitConversionBuffer),f.__kBitConversionInts=new Int32Array(f.__kBitConversionBuffer),f.__kBitConversionIntHigh=f.__detectBigEndian()?0:1,f.__kBitConversionIntLow=f.__detectBigEndian()?1:0,f.__clz30=Math.clz32?function(t){return Math.clz32(t)-2}:function(t){return t===0?30:0|29-(0|Math.log(t>>>0)/Math.LN2)},f.__imul=Math.imul||function(t,e){return 0|t*e};const yt=f.BigInt(0),Wr=f.BigInt(1),Oa=f.BigInt(2),am=f.BigInt(10),sm=f.BigInt(24),cm=f.BigInt(60),lm=f.BigInt(1e3),no=f.BigInt(1e6),Lr=f.BigInt(1e9),Kc=f.multiply(f.BigInt(3600),Lr),um=f.multiply(cm,Lr),pn=f.multiply(Kc,sm);function Bt(t){return typeof t=="bigint"?f.BigInt(t.toString(10)):t}function Xc(t){return f.equal(f.remainder(t,Oa),yt)}function Dn(t){return f.lessThan(t,yt)?f.unaryMinus(t):t}function Yo(t,e){return f.lessThan(t,e)?-1:f.greaterThan(t,e)?1:0}function Mr(t,e){return{quotient:f.divide(t,e),remainder:f.remainder(t,e)}}var qs,Hs;const U="slot-epochNanoSeconds",F="slot-iso-date",be="slot-iso-date-time",Te="slot-time",M="slot-calendar",Qc="slot-date-brand",Jc="slot-year-month-brand",el="slot-month-day-brand",ce="slot-time-zone",He="slot-years",Be="slot-months",st="slot-weeks",Ze="slot-days",Ge="slot-hours",Ke="slot-minutes",Xe="slot-seconds",Qe="slot-milliseconds",Je="slot-microseconds",ct="slot-nanoseconds",tl="date",nl="ym",rl="md",ol="time",il="datetime",al="instant",jn="original",Xn="timezone-canonical",Xi="timezone-original",xr="calendar-id",sl="locale",Qi="options",cl=new WeakMap,Ji=Symbol.for("@@Temporal__GetSlots");(qs=globalThis)[Ji]||(qs[Ji]=function(t){return cl.get(t)});const ui=globalThis[Ji],ea=Symbol.for("@@Temporal__CreateSlots");(Hs=globalThis)[ea]||(Hs[ea]=function(t){cl.set(t,Object.create(null))});const an=globalThis[ea];function ot(t,...e){if(!t||typeof t!="object")return!1;const n=ui(t);return!!n&&e.every((r=>r in n))}function m(t,e){const n=ui(t)?.[e];if(n===void 0)throw new TypeError(`Missing internal slot ${e}`);return n}function K(t,e,n){const r=ui(t);if(r===void 0)throw new TypeError("Missing slots for the given container");if(r[e])throw new TypeError(`${e} already has set`);r[e]=n}const ta={};function sn(t,e){Object.defineProperty(t.prototype,Symbol.toStringTag,{value:e,writable:!1,enumerable:!1,configurable:!0});const n=Object.getOwnPropertyNames(t);for(let o=0;o<n.length;o++){const i=n[o],a=Object.getOwnPropertyDescriptor(t,i);a.configurable&&a.enumerable&&(a.enumerable=!1,Object.defineProperty(t,i,a))}const r=Object.getOwnPropertyNames(t.prototype);for(let o=0;o<r.length;o++){const i=r[o],a=Object.getOwnPropertyDescriptor(t.prototype,i);a.configurable&&a.enumerable&&(a.enumerable=!1,Object.defineProperty(t.prototype,i,a))}na(e,t),na(`${e}.prototype`,t.prototype)}function na(t,e){const n=`%${t}%`;if(ta[n]!==void 0)throw new Error(`intrinsic ${t} already exists`);ta[n]=e}function je(t){return ta[t]}function Jn(t,e){let n=t;if(n===0)return{div:n,mod:n};const r=Math.sign(n);n=Math.abs(n);const o=Math.trunc(1+Math.log10(n));if(e>=o)return{div:0*r,mod:r*n};if(e===0)return{div:r*n,mod:0*r};const i=n.toPrecision(o);return{div:r*Number.parseInt(i.slice(0,o-e),10),mod:r*Number.parseInt(i.slice(o-e),10)}}function Fi(t,e,n){let r=t,o=n;if(r===0)return o;const i=Math.sign(r)||Math.sign(o);r=Math.abs(r),o=Math.abs(o);const a=r.toPrecision(Math.trunc(1+Math.log10(r)));if(o===0)return i*Number.parseInt(a+"0".repeat(e),10);const s=a+o.toPrecision(Math.trunc(1+Math.log10(o))).padStart(e,"0");return i*Number.parseInt(s,10)}function di(t,e){const n=e==="negative";switch(t){case"ceil":return n?"zero":"infinity";case"floor":return n?"infinity":"zero";case"expand":return"infinity";case"trunc":return"zero";case"halfCeil":return n?"half-zero":"half-infinity";case"halfFloor":return n?"half-infinity":"half-zero";case"halfExpand":return"half-infinity";case"halfTrunc":return"half-zero";case"halfEven":return"half-even"}}function fi(t,e,n,r,o){return o==="zero"?t:o==="infinity"?e:n<0?t:n>0?e:o==="half-zero"?t:o==="half-infinity"?e:r?t:e}class Q{constructor(e){this.totalNs=Bt(e),this.sec=f.toNumber(f.divide(this.totalNs,Lr)),this.subsec=f.toNumber(f.remainder(this.totalNs,Lr))}static validateNew(e,n){if(f.greaterThan(Dn(e),Q.MAX))throw new RangeError(`${n} of duration time units cannot exceed ${Q.MAX} s`);return new Q(e)}static fromEpochNsDiff(e,n){const r=f.subtract(Bt(e),Bt(n));return new Q(r)}static fromComponents(e,n,r,o,i,a){const s=f.add(f.add(f.add(f.add(f.add(f.BigInt(a),f.multiply(f.BigInt(i),lm)),f.multiply(f.BigInt(o),no)),f.multiply(f.BigInt(r),Lr)),f.multiply(f.BigInt(n),um)),f.multiply(f.BigInt(e),Kc));return Q.validateNew(s,"total")}abs(){return new Q(Dn(this.totalNs))}add(e){return Q.validateNew(f.add(this.totalNs,e.totalNs),"sum")}add24HourDays(e){return Q.validateNew(f.add(this.totalNs,f.multiply(f.BigInt(e),pn)),"sum")}addToEpochNs(e){return f.add(Bt(e),this.totalNs)}cmp(e){return Yo(this.totalNs,e.totalNs)}divmod(e){const{quotient:n,remainder:r}=Mr(this.totalNs,f.BigInt(e));return{quotient:f.toNumber(n),remainder:new Q(r)}}fdiv(e){const n=Bt(e),r=f.BigInt(n);let{quotient:o,remainder:i}=Mr(this.totalNs,r);const a=[];let s;const c=(f.lessThan(this.totalNs,yt)?-1:1)*Math.sign(f.toNumber(n));for(;!f.equal(i,yt)&&a.length<50;)i=f.multiply(i,am),{quotient:s,remainder:i}=Mr(i,r),a.push(Math.abs(f.toNumber(s)));return c*+(Dn(o).toString()+"."+a.join(""))}isZero(){return f.equal(this.totalNs,yt)}round(e,n){const r=Bt(e);if(f.equal(r,Wr))return this;const{quotient:o,remainder:i}=Mr(this.totalNs,r),a=f.lessThan(this.totalNs,yt)?"negative":"positive",s=f.multiply(Dn(o),r),c=f.add(s,r),l=Yo(Dn(f.multiply(i,Oa)),r),u=di(n,a),d=f.equal(Dn(this.totalNs),s)?s:fi(s,c,l,Xc(o),u),h=a==="positive"?d:f.unaryMinus(d);return Q.validateNew(h,"rounding")}sign(){return this.cmp(new Q(yt))}subtract(e){return Q.validateNew(f.subtract(this.totalNs,e.totalNs),"difference")}}Q.MAX=f.BigInt("9007199254740991999999999"),Q.ZERO=new Q(yt);const Bs=/[A-Za-z._][A-Za-z._0-9+-]*/,ro=new RegExp(`(?:${/(?:[+-](?:[01][0-9]|2[0-3])(?::?[0-5][0-9])?)/.source}|(?:${Bs.source})(?:\\/(?:${Bs.source}))*)`),ll=/(?:[+-]\d{6}|\d{4})/,zo=/(?:0[1-9]|1[0-2])/,ra=/(?:0[1-9]|[12]\d|3[01])/,dm=new RegExp(`(${ll.source})(?:-(${zo.source})-(${ra.source})|(${zo.source})(${ra.source}))`),ul=/(\d{2})(?::(\d{2})(?::(\d{2})(?:[.,](\d{1,9}))?)?|(\d{2})(?:(\d{2})(?:[.,](\d{1,9}))?)?)?/,dl=/((?:[+-])(?:[01][0-9]|2[0-3])(?::?(?:[0-5][0-9])(?::?(?:[0-5][0-9])(?:[.,](?:\d{1,9}))?)?)?)/,fl=new RegExp(`([zZ])|${dl.source}?`),ir=/\[(!)?([a-z_][a-z0-9_-]*)=([A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)\]/g,fm=new RegExp([`^${dm.source}`,`(?:(?:[tT]|\\s+)${ul.source}(?:${fl.source})?)?`,`(?:\\[!?(${ro.source})\\])?`,`((?:${ir.source})*)$`].join("")),hm=new RegExp([`^[tT]?${ul.source}`,`(?:${fl.source})?`,`(?:\\[!?${ro.source}\\])?`,`((?:${ir.source})*)$`].join("")),mm=new RegExp(`^(${ll.source})-?(${zo.source})(?:\\[!?${ro.source}\\])?((?:${ir.source})*)$`),gm=new RegExp(`^(?:--)?(${zo.source})-?(${ra.source})(?:\\[!?${ro.source}\\])?((?:${ir.source})*)$`),Vi=/(\d+)(?:[.,](\d{1,9}))?/,ym=new RegExp(`(?:${Vi.source}H)?(?:${Vi.source}M)?(?:${Vi.source}S)?`),pm=new RegExp(`^([+-])?P${/(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?/.source}(?:T(?!$)${ym.source})?$`,"i"),bn=864e5,Uo=1e6*bn,bm=6e10,hl=1e8*bn,ar=Yt(hl),qr=f.unaryMinus(ar),vm=f.add(f.subtract(qr,pn),Wr),wm=f.subtract(f.add(ar,pn),Wr),Em=146097*bn,Zs=-271821,Gs=275760,jr=Date.UTC(1847,0,1),_m=["iso8601","hebrew","islamic","islamic-umalqura","islamic-tbla","islamic-civil","islamic-rgsa","islamicc","persian","ethiopic","ethioaa","ethiopic-amete-alem","coptic","chinese","dangi","roc","indian","buddhist","japanese","gregory"],Tm=new Set(["ACT","AET","AGT","ART","AST","BET","BST","CAT","CNT","CST","CTT","EAT","ECT","IET","IST","JST","MIT","NET","NST","PLT","PNT","PRT","PST","SST","VST"]);function Ce(t){return typeof t=="object"&&t!==null||typeof t=="function"}function hi(t){if(typeof t=="bigint")throw new TypeError("Cannot convert BigInt to number");return Number(t)}function mi(t){if(typeof t=="symbol")throw new TypeError("Cannot convert a Symbol value to a String");return String(t)}function V(t){const e=hi(t);if(e===0)return 0;if(Number.isNaN(e)||e===1/0||e===-1/0)throw new RangeError("invalid number value");const n=Math.trunc(e);return n===0?0:n}function Ks(t,e){const n=V(t);if(n<=0)throw e!==void 0?new RangeError(`property '${e}' cannot be a a number less than one`):new RangeError("Cannot convert a number less than one to a positive integer");return n}function Rt(t){const e=hi(t);if(Number.isNaN(e))throw new RangeError("not a number");if(e===1/0||e===-1/0)throw new RangeError("infinity is out of range");if(!(function(n){if(typeof n!="number"||Number.isNaN(n)||n===1/0||n===-1/0)return!1;const r=Math.abs(n);return Math.floor(r)===r})(e))throw new RangeError(`unsupported fractional value ${t}`);return e===0?0:e}function Hr(t,e){return String(t).padStart(e,"0")}function $e(t){if(typeof t!="string")throw new TypeError(`expected a string, not ${String(t)}`);return t}function oa(t,e){if(Ce(t)){const n=t?.toString();if(typeof n=="string"||typeof n=="number")return n;throw new TypeError("Cannot convert object to primitive value")}return t}const ia=["era","eraYear","year","month","monthCode","day","hour","minute","second","millisecond","microsecond","nanosecond","offset","timeZone"],Cm={era:mi,eraYear:V,year:V,month:Ks,monthCode:function(t){const e=$e(oa(t));if(e.length<3||e.length>4||e[0]!=="M"||"0123456789".indexOf(e[1])===-1||"0123456789".indexOf(e[2])===-1||e[1]+e[2]==="00"&&e[3]!=="L"||e[3]!=="L"&&e[3]!==void 0)throw new RangeError(`bad month code ${e}; must match M01-M99 or M00L-M99L`);return e},day:Ks,hour:V,minute:V,second:V,millisecond:V,microsecond:V,nanosecond:V,offset:function(t){const e=$e(oa(t));return yr(e),e},timeZone:nt},Dm={hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0},sr=[["years","year","date"],["months","month","date"],["weeks","week","date"],["days","day","date"],["hours","hour","time"],["minutes","minute","time"],["seconds","second","time"],["milliseconds","millisecond","time"],["microseconds","microsecond","time"],["nanoseconds","nanosecond","time"]],Xs=Object.fromEntries(sr.map((t=>[t[0],t[1]]))),Om=Object.fromEntries(sr.map((([t,e])=>[e,t]))),Yr=sr.map((([,t])=>t)),cr={day:Uo,hour:36e11,minute:6e10,second:1e9,millisecond:1e6,microsecond:1e3,nanosecond:1},Fo=["days","hours","microseconds","milliseconds","minutes","months","nanoseconds","seconds","weeks","years"],Sm=Intl.DateTimeFormat,Qs=new Map;function ml(t){const e=Xr(t);let n=Qs.get(e);return n===void 0&&(n=new Sm("en-us",{timeZone:e,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Qs.set(e,n)),n}function Pe(t){return ot(t,U)&&!ot(t,ce,M)}function Ee(t){return ot(t,He,Be,Ze,Ge,Ke,Xe,Qe,Je,ct)}function _e(t){return ot(t,Qc)}function Se(t){return ot(t,Te)}function ye(t){return ot(t,be)}function Ne(t){return ot(t,Jc)}function mt(t){return ot(t,el)}function X(t){return ot(t,U,ce,M)}function _(t,e){if(!e(t))throw new TypeError("invalid receiver: method called with the wrong type of this-object")}function hr(t){if(ot(t,M)||ot(t,ce))throw new TypeError("with() does not support a calendar or timeZone property");if(Se(t))throw new TypeError("with() does not accept Temporal.PlainTime, use withPlainTime() instead");if(t.calendar!==void 0)throw new TypeError("with() does not support a calendar property");if(t.timeZone!==void 0)throw new TypeError("with() does not support a timeZone property")}function oo(t,e){return e==="never"||e==="auto"&&t==="iso8601"?"":`[${e==="critical"?"!":""}u-ca=${t}]`}function gi(t){let e,n,r=!1;for(ir.lastIndex=0;n=ir.exec(t);){const{1:o,2:i,3:a}=n;if(i==="u-ca"){if(e===void 0)e=a,r=o==="!";else if(o==="!"||r)throw new RangeError(`Invalid annotations in ${t}: more than one u-ca present with critical flag`)}else if(o==="!")throw new RangeError(`Unrecognized annotation: !${i}=${a}`)}return e}function Wt(t){const e=fm.exec(t);if(!e)throw new RangeError(`invalid RFC 9557 string: ${t}`);const n=gi(e[16]);let r=e[1];if(r==="-000000")throw new RangeError(`invalid RFC 9557 string: ${t}`);const o=+r,i=+(e[2]??e[4]??1),a=+(e[3]??e[5]??1),s=e[6]!==void 0,c=+(e[6]??0),l=+(e[7]??e[10]??0);let u=+(e[8]??e[11]??0);u===60&&(u=59);const d=(e[9]??e[12]??"")+"000000000",h=+d.slice(0,3),y=+d.slice(3,6),p=+d.slice(6,9);let g,v=!1;e[13]?(g=void 0,v=!0):e[14]&&(g=e[14]);const w=e[15];return ka(o,i,a,c,l,u,h,y,p),{year:o,month:i,day:a,time:s?{hour:c,minute:l,second:u,millisecond:h,microsecond:y,nanosecond:p}:"start-of-day",tzAnnotation:w,offset:g,z:v,calendar:n}}function gl(t){const e=hm.exec(t);let n,r,o,i,a,s,c;if(e){c=gi(e[10]),n=+(e[1]??0),r=+(e[2]??e[5]??0),o=+(e[3]??e[6]??0),o===60&&(o=59);const l=(e[4]??e[7]??"")+"000000000";if(i=+l.slice(0,3),a=+l.slice(3,6),s=+l.slice(6,9),e[8])throw new RangeError("Z designator not supported for PlainTime")}else{let l,u;if({time:l,z:u,calendar:c}=Wt(t),l==="start-of-day")throw new RangeError(`time is missing in string: ${t}`);if(u)throw new RangeError("Z designator not supported for PlainTime");({hour:n,minute:r,second:o,millisecond:i,microsecond:a,nanosecond:s}=l)}if(vi(n,r,o,i,a,s),/[tT ][0-9][0-9]/.test(t))return{hour:n,minute:r,second:o,millisecond:i,microsecond:a,nanosecond:s,calendar:c};try{const{month:l,day:u}=Ma(t);An(1972,l,u)}catch{try{const{year:l,month:u}=Sa(t);An(l,u,1)}catch{return{hour:n,minute:r,second:o,millisecond:i,microsecond:a,nanosecond:s,calendar:c}}}throw new RangeError(`invalid RFC 9557 time-only string ${t}; may need a T prefix`)}function Sa(t){const e=mm.exec(t);let n,r,o,i;if(e){o=gi(e[3]);let a=e[1];if(a==="-000000")throw new RangeError(`invalid RFC 9557 string: ${t}`);if(n=+a,r=+e[2],i=1,o!==void 0&&o!=="iso8601")throw new RangeError("YYYY-MM format is only valid with iso8601 calendar")}else{let a;if({year:n,month:r,calendar:o,day:i,z:a}=Wt(t),a)throw new RangeError("Z designator not supported for PlainYearMonth")}return{year:n,month:r,calendar:o,referenceISODay:i}}function Ma(t){const e=gm.exec(t);let n,r,o,i;if(e){if(o=gi(e[3]),n=+e[1],r=+e[2],o!==void 0&&o!=="iso8601")throw new RangeError("MM-DD format is only valid with iso8601 calendar")}else{let a;if({month:n,day:r,calendar:o,year:i,z:a}=Wt(t),a)throw new RangeError("Z designator not supported for PlainMonthDay")}return{month:n,day:r,calendar:o,referenceISOYear:i}}const yl=new RegExp(`^${ro.source}$`,"i"),pl=new RegExp(`^${/([+-])([01][0-9]|2[0-3])(?::?([0-5][0-9])?)?/.source}$`);function bl(t){const e=xm.test(t)?"Seconds not allowed in offset time zone":"Invalid time zone";throw new RangeError(`${e}: ${t}`)}function mn(t){return yl.test(t)||bl(t),pl.test(t)?{offsetMinutes:yr(t)/6e10}:{tzName:t}}function zr(t,e,n,r){let o=t,i=e,a=n;switch(r){case"reject":An(o,i,a);break;case"constrain":({year:o,month:i,day:a}=Pl(o,i,a))}return{year:o,month:i,day:a}}function yi(t,e,n,r,o,i,a){let s=t,c=e,l=n,u=r,d=o,h=i;switch(a){case"reject":vi(s,c,l,u,d,h);break;case"constrain":s=et(s,0,23),c=et(c,0,59),l=et(l,0,59),u=et(u,0,999),d=et(d,0,999),h=et(h,0,999)}return{hour:s,minute:c,second:l,millisecond:u,microsecond:d,nanosecond:h}}function vl(t){if(!Ce(t))throw new TypeError("invalid duration-like");const e={years:void 0,months:void 0,weeks:void 0,days:void 0,hours:void 0,minutes:void 0,seconds:void 0,milliseconds:void 0,microseconds:void 0,nanoseconds:void 0};let n=!1;for(let r=0;r<Fo.length;r++){const o=Fo[r],i=t[o];i!==void 0&&(n=!0,e[o]=Rt(i))}if(!n)throw new TypeError("invalid duration-like");return e}function ze({years:t,months:e,weeks:n,days:r},o,i,a){return{years:t,months:a??e,weeks:i??n,days:o??r}}function ie(t,e){return{isoDate:t,time:e}}function re(t){return tn(t,"overflow",["constrain","reject"],"constrain")}function Ur(t){return tn(t,"disambiguation",["compatible","earlier","later","reject"],"compatible")}function kt(t,e){return tn(t,"roundingMode",["ceil","floor","expand","trunc","halfCeil","halfFloor","halfExpand","halfTrunc","halfEven"],e)}function ko(t,e){return tn(t,"offset",["prefer","use","ignore","reject"],e)}function io(t){return tn(t,"calendarName",["auto","always","never","critical"],"auto")}function mr(t){let e=t.roundingIncrement;if(e===void 0)return 1;const n=V(e);if(n<1||n>1e9)throw new RangeError(`roundingIncrement must be at least 1 and at most 1e9, not ${e}`);return n}function gr(t,e,n){const r=n?e:e-1;if(t>r)throw new RangeError(`roundingIncrement must be at least 1 and less than ${r}, not ${t}`);if(e%t!=0)throw new RangeError(`Rounding increment must divide evenly into ${e}`)}function ao(t){const e=t.fractionalSecondDigits;if(e===void 0)return"auto";if(typeof e!="number"){if(mi(e)!=="auto")throw new RangeError(`fractionalSecondDigits must be 'auto' or 0 through 9, not ${e}`);return"auto"}const n=Math.floor(e);if(!Number.isFinite(n)||n<0||n>9)throw new RangeError(`fractionalSecondDigits must be 'auto' or 0 through 9, not ${e}`);return n}function so(t,e){switch(t){case"minute":return{precision:"minute",unit:"minute",increment:1};case"second":return{precision:0,unit:"second",increment:1};case"millisecond":return{precision:3,unit:"millisecond",increment:1};case"microsecond":return{precision:6,unit:"microsecond",increment:1};case"nanosecond":return{precision:9,unit:"nanosecond",increment:1}}switch(e){case"auto":return{precision:e,unit:"nanosecond",increment:1};case 0:return{precision:e,unit:"second",increment:1};case 1:case 2:case 3:return{precision:e,unit:"millisecond",increment:10**(3-e)};case 4:case 5:case 6:return{precision:e,unit:"microsecond",increment:10**(6-e)};case 7:case 8:case 9:return{precision:e,unit:"nanosecond",increment:10**(9-e)};default:throw new RangeError(`fractionalSecondDigits must be 'auto' or 0 through 9, not ${e}`)}}const on=Symbol("~required~");function ut(t,e,n,r,o=[]){let i=[];for(let l=0;l<sr.length;l++){const u=sr[l],d=u[1],h=u[2];n!=="datetime"&&n!==h||i.push(d)}i=i.concat(o);let a=r;a===on?a=void 0:a!==void 0&&i.push(a);let s=[];s=s.concat(i);for(let l=0;l<i.length;l++){const u=i[l],d=Om[u];d!==void 0&&s.push(d)}let c=tn(t,e,s,a);if(c===void 0&&r===on)throw new RangeError(`${e} is required`);return c&&c in Xs?Xs[c]:c}function Wi(t){const e=t.relativeTo;if(e===void 0)return{};let n,r,o,i,a,s="option",c=!1;if(Ce(e)){if(X(e))return{zonedRelativeTo:e};if(_e(e))return{plainRelativeTo:e};if(ye(e))return{plainRelativeTo:tt(m(e,be).isoDate,m(e,M))};o=ho(e);const l=wt(o,e,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond","offset","timeZone"],[]);({isoDate:n,time:r}=lo(o,l,"constrain")),{offset:a,timeZone:i}=l,a===void 0&&(s="wall")}else{let l,u,d,h,y;if({year:d,month:h,day:y,time:r,calendar:o,tzAnnotation:l,offset:a,z:u}=Wt($e(e)),l)i=nt(l),u?s="exact":a||(s="wall"),c=!0;else if(u)throw new RangeError("Z designator not supported for PlainDate relativeTo; either remove the Z or add a bracketed time zone");o||(o="iso8601"),o=it(o),n={year:d,month:h,day:y}}return i===void 0?{plainRelativeTo:tt(n,o)}:{zonedRelativeTo:Ye(Vo(n,r,s,s==="option"?yr(a):0,i,"compatible","reject",c),i,o)}}function Gt(t){return m(t,He)!==0?"year":m(t,Be)!==0?"month":m(t,st)!==0?"week":m(t,Ze)!==0?"day":m(t,Ge)!==0?"hour":m(t,Ke)!==0?"minute":m(t,Xe)!==0?"second":m(t,Qe)!==0?"millisecond":m(t,Je)!==0?"microsecond":"nanosecond"}function Jt(t,e){return Yr.indexOf(t)>Yr.indexOf(e)?e:t}function Pt(t){return t==="year"||t==="month"||t==="week"}function Kt(t){return Pt(t)||t==="day"?"date":"time"}function En(t){return je("%calendarImpl%")(t)}function co(t){return je("%calendarImpl%")(m(t,M))}function rt(t,e,n="date"){const r=Object.create(null),o=En(t).isoToDate(e,{year:!0,monthCode:!0,day:!0});return r.monthCode=o.monthCode,n!=="month-day"&&n!=="date"||(r.day=o.day),n!=="year-month"&&n!=="date"||(r.year=o.year),r}function wt(t,e,n,r,o){const i=En(t).extraFields(n),a=n.concat(r,i),s=Object.create(null);let c=!1;a.sort();for(let l=0;l<a.length;l++){const u=a[l],d=e[u];if(d!==void 0)c=!0,s[u]=(0,Cm[u])(d);else if(o!=="partial"){if(o.includes(u))throw new TypeError(`required property '${u}' missing or undefined`);s[u]=Dm[u]}}if(o==="partial"&&!c)throw new TypeError("no supported properties found");return s}function aa(t,e="complete"){const n=["hour","microsecond","millisecond","minute","nanosecond","second"];let r=!1;const o=Object.create(null);for(let i=0;i<n.length;i++){const a=n[i],s=t[a];s!==void 0?(o[a]=V(s),r=!0):e==="complete"&&(o[a]=0)}if(!r)throw new TypeError("invalid time-like");return o}function $r(t,e){if(Ce(t)){if(_e(t))return re(N(e)),tt(m(t,F),m(t,M));if(X(t)){const c=St(m(t,ce),m(t,U));return re(N(e)),tt(c.isoDate,m(t,M))}if(ye(t))return re(N(e)),tt(m(t,be).isoDate,m(t,M));const s=ho(t);return tt(vn(s,wt(s,t,["year","month","monthCode","day"],[],[]),re(N(e))),s)}let{year:n,month:r,day:o,calendar:i,z:a}=Wt($e(t));if(a)throw new RangeError("Z designator not supported for PlainDate");return i||(i="iso8601"),i=it(i),re(N(e)),tt({year:n,month:r,day:o},i)}function lo(t,e,n){return ie(vn(t,e,n),yi(e.hour,e.minute,e.second,e.millisecond,e.microsecond,e.nanosecond,n))}function Rr(t,e){let n,r,o;if(Ce(t)){if(ye(t))return re(N(e)),Tt(m(t,be),m(t,M));if(X(t)){const s=St(m(t,ce),m(t,U));return re(N(e)),Tt(s,m(t,M))}if(_e(t))return re(N(e)),Tt(ie(m(t,F),{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),m(t,M));o=ho(t);const i=wt(o,t,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond"],[]),a=re(N(e));({isoDate:n,time:r}=lo(o,i,a))}else{let i,a,s,c;if({year:a,month:s,day:c,time:r,calendar:o,z:i}=Wt($e(t)),i)throw new RangeError("Z designator not supported for PlainDateTime");r==="start-of-day"&&(r={deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),ka(a,s,c,r.hour,r.minute,r.second,r.millisecond,r.microsecond,r.nanosecond),o||(o="iso8601"),o=it(o),re(N(e)),n={year:a,month:s,day:c}}return Tt(ie(n,r),o)}function Ot(t){const e=je("%Temporal.Duration%");if(Ee(t))return new e(m(t,He),m(t,Be),m(t,st),m(t,Ze),m(t,Ge),m(t,Ke),m(t,Xe),m(t,Qe),m(t,Je),m(t,ct));if(!Ce(t))return(function(o){const{years:i,months:a,weeks:s,days:c,hours:l,minutes:u,seconds:d,milliseconds:h,microseconds:y,nanoseconds:p}=(function(g){const v=pm.exec(g);if(!v)throw new RangeError(`invalid duration: ${g}`);if(v.every(((at,cn)=>cn<2||at===void 0)))throw new RangeError(`invalid duration: ${g}`);const w=v[1]==="-"?-1:1,D=v[2]===void 0?0:V(v[2])*w,O=v[3]===void 0?0:V(v[3])*w,C=v[4]===void 0?0:V(v[4])*w,E=v[5]===void 0?0:V(v[5])*w,S=v[6]===void 0?0:V(v[6])*w,P=v[7],z=v[8],j=v[9],ae=v[10],B=v[11];let b=0,k=0,x=0;if(P!==void 0){if(z??j??ae??B)throw new RangeError("only the smallest unit can be fractional");x=3600*V((P+"000000000").slice(0,9))*w}else if(b=z===void 0?0:V(z)*w,j!==void 0){if(ae??B)throw new RangeError("only the smallest unit can be fractional");x=60*V((j+"000000000").slice(0,9))*w}else k=ae===void 0?0:V(ae)*w,B!==void 0&&(x=V((B+"000000000").slice(0,9))*w);const Y=x%1e3,Z=Math.trunc(x/1e3)%1e3,pe=Math.trunc(x/1e6)%1e3;return k+=Math.trunc(x/1e9)%60,b+=Math.trunc(x/6e10),wi(D,O,C,E,S,b,k,pe,Z,Y),{years:D,months:O,weeks:C,days:E,hours:S,minutes:b,seconds:k,milliseconds:pe,microseconds:Z,nanoseconds:Y}})(o);return new(je("%Temporal.Duration%"))(i,a,s,c,l,u,d,h,y,p)})($e(t));const n={years:0,months:0,weeks:0,days:0,hours:0,minutes:0,seconds:0,milliseconds:0,microseconds:0,nanoseconds:0};let r=vl(t);for(let o=0;o<Fo.length;o++){const i=Fo[o],a=r[i];a!==void 0&&(n[i]=a)}return new e(n.years,n.months,n.weeks,n.days,n.hours,n.minutes,n.seconds,n.milliseconds,n.microseconds,n.nanoseconds)}function kr(t){let e;if(Ce(t)){if(Pe(t)||X(t))return Lt(m(t,U));e=oa(t)}else e=t;const{year:n,month:r,day:o,time:i,offset:a,z:s}=(function(g){const v=Wt(g);if(!v.z&&!v.offset)throw new RangeError("Temporal.Instant requires a time zone offset");return v})($e(e)),{hour:c=0,minute:l=0,second:u=0,millisecond:d=0,microsecond:h=0,nanosecond:y=0}=i==="start-of-day"?{}:i,p=Kr(n,r,o,c,l,u,d,h,y-(s?0:yr(a)));return rr(p.isoDate),Lt(Le(p))}function Js(t,e){if(Ce(t)){if(mt(t))return re(N(e)),er(m(t,F),m(t,M));let s;return ot(t,M)?s=m(t,M):(s=t.calendar,s===void 0&&(s="iso8601"),s=fo(s)),er(Wo(s,wt(s,t,["year","month","monthCode","day"],[],[]),re(N(e))),s)}let{month:n,day:r,referenceISOYear:o,calendar:i}=Ma($e(t));if(i===void 0&&(i="iso8601"),i=it(i),re(N(e)),i==="iso8601")return er({year:1972,month:n,day:r},i);let a={year:o,month:n,day:r};return Yn(a),a=Wo(i,rt(i,a,"month-day"),"constrain"),er(a,i)}function fn(t,e){let n;if(Ce(t)){if(Se(t))return re(N(e)),Xt(m(t,Te));if(ye(t))return re(N(e)),Xt(m(t,be).time);if(X(t)){const l=St(m(t,ce),m(t,U));return re(N(e)),Xt(l.time)}const{hour:r,minute:o,second:i,millisecond:a,microsecond:s,nanosecond:c}=aa(t);n=yi(r,o,i,a,s,c,re(N(e)))}else n=gl($e(t)),re(N(e));return Xt(n)}function wl(t){return t===void 0?{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}:m(fn(t),Te)}function Ar(t,e){if(Ce(t)){if(Ne(t))return re(N(e)),nr(m(t,F),m(t,M));const s=ho(t);return nr(Br(s,wt(s,t,["year","month","monthCode"],[],[]),re(N(e))),s)}let{year:n,month:r,referenceISODay:o,calendar:i}=Sa($e(t));i===void 0&&(i="iso8601"),i=it(i),re(N(e));let a={year:n,month:r,day:o};return Aa(a),a=Br(i,rt(i,a,"year-month"),"constrain"),nr(a,i)}function Vo(t,e,n,r,o,i,a,s){if(e==="start-of-day")return ln(o,t);const c=ie(t,e);if(n==="wall"||a==="ignore")return Ue(o,c,i);if(n==="exact"||a==="use"){const d=Kr(t.year,t.month,t.day,e.hour,e.minute,e.second,e.millisecond,e.microsecond,e.nanosecond-r);rr(d.isoDate);const h=Le(d);return Ft(h),h}rr(t);const l=Le(c),u=Zr(o,c);for(let d=0;d<u.length;d++){const h=u[d],y=f.toNumber(f.subtract(l,h)),p=hn(y,6e10,"halfExpand");if(y===r||s&&p===r)return h}if(a==="reject"){const d=sa(r),h=Gr(c,"iso8601","auto");throw new RangeError(`Offset ${d} is invalid for ${h} in ${o}`)}return xl(u,o,c,i)}function Ir(t,e){let n,r,o,i,a,s,c,l=!1,u="option";if(Ce(t)){if(X(t)){const g=N(e);return Ur(g),ko(g,"reject"),re(g),Ye(m(t,U),m(t,ce),m(t,M))}a=ho(t);const h=wt(a,t,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond","offset","timeZone"],["timeZone"]);({offset:i,timeZone:o}=h),i===void 0&&(u="wall");const y=N(e);s=Ur(y),c=ko(y,"reject");const p=re(y);({isoDate:n,time:r}=lo(a,h,p))}else{let h,y,p,g,v;({year:p,month:g,day:v,time:r,tzAnnotation:h,offset:i,z:y,calendar:a}=(function(D){const O=Wt(D);if(!O.tzAnnotation)throw new RangeError("Temporal.ZonedDateTime requires a time zone ID in brackets");return O})($e(t))),o=nt(h),y?u="exact":i||(u="wall"),a||(a="iso8601"),a=it(a),l=!0;const w=N(e);s=Ur(w),c=ko(w,"reject"),re(w),n={year:p,month:g,day:v}}let d=0;return u==="option"&&(d=yr(i)),Ye(Vo(n,r,u,d,o,s,c,l),o,a)}function El(t,e,n){Yn(e),an(t),K(t,F,e),K(t,M,n),K(t,Qc,!0)}function tt(t,e){const n=je("%Temporal.PlainDate%"),r=Object.create(n.prototype);return El(r,t,e),r}function _l(t,e,n){In(e),an(t),K(t,be,e),K(t,M,n)}function Tt(t,e){const n=je("%Temporal.PlainDateTime%"),r=Object.create(n.prototype);return _l(r,t,e),r}function Tl(t,e,n){Yn(e),an(t),K(t,F,e),K(t,M,n),K(t,el,!0)}function er(t,e){const n=je("%Temporal.PlainMonthDay%"),r=Object.create(n.prototype);return Tl(r,t,e),r}function Cl(t,e){an(t),K(t,Te,e)}function Xt(t){const e=je("%Temporal.PlainTime%"),n=Object.create(e.prototype);return Cl(n,t),n}function Dl(t,e,n){Aa(e),an(t),K(t,F,e),K(t,M,n),K(t,Jc,!0)}function nr(t,e){const n=je("%Temporal.PlainYearMonth%"),r=Object.create(n.prototype);return Dl(r,t,e),r}function Ol(t,e){Ft(e),an(t),K(t,U,e)}function Lt(t){const e=je("%Temporal.Instant%"),n=Object.create(e.prototype);return Ol(n,t),n}function Sl(t,e,n,r){Ft(e),an(t),K(t,U,e),K(t,ce,n),K(t,M,r)}function Ye(t,e,n="iso8601"){const r=je("%Temporal.ZonedDateTime%"),o=Object.create(r.prototype);return Sl(o,t,e,n),o}function ec(t){return ia.filter((e=>t[e]!==void 0))}function kn(t,e,n){const r=ec(n),o=En(t).fieldKeysToIgnore(r),i=Object.create(null),a=ec(e);for(let s=0;s<ia.length;s++){let c;const l=ia[s];a.includes(l)&&!o.includes(l)&&(c=e[l]),r.includes(l)&&(c=n[l]),c!==void 0&&(i[l]=c)}return i}function bt(t,e,n,r){const o=En(t).dateAdd(e,n,r);return Yn(o),o}function uo(t,e,n,r){return En(t).dateUntil(e,n,r)}function fo(t){if(Ce(t)&&ot(t,M))return m(t,M);const e=$e(t);try{return it(e)}catch{}let n;try{({calendar:n}=Wt(e))}catch{try{({calendar:n}=gl(e))}catch{try{({calendar:n}=Sa(e))}catch{({calendar:n}=Ma(e))}}}return n||(n="iso8601"),it(n)}function ho(t){if(ot(t,M))return m(t,M);const{calendar:e}=t;return e===void 0?"iso8601":fo(e)}function Ut(t,e){return it(t)===it(e)}function vn(t,e,n){const r=En(t);r.resolveFields(e,"date");const o=r.dateToISO(e,n);return Yn(o),o}function Br(t,e,n){const r=En(t);r.resolveFields(e,"year-month"),e.day=1;const o=r.dateToISO(e,n);return Aa(o),o}function Wo(t,e,n){const r=En(t);r.resolveFields(e,"month-day");const o=r.monthDayToISOReferenceDate(e,n);return Yn(o),o}function nt(t){if(Ce(t)&&X(t))return m(t,ce);const e=$e(t);if(e==="UTC")return"UTC";const{tzName:n,offsetMinutes:r}=(function(i){const{tzAnnotation:a,offset:s,z:c}=(function(l){if(yl.test(l))return{tzAnnotation:l,offset:void 0,z:!1};try{const{tzAnnotation:u,offset:d,z:h}=Wt(l);if(h||u||d)return{tzAnnotation:u,offset:d,z:h}}catch{}bl(l)})(i);return a?mn(a):c?mn("UTC"):s?mn(s):void 0})(e);if(r!==void 0)return xa(r);const o=qo(n);if(!o)throw new RangeError(`Unrecognized time zone ${n}`);return o.identifier}function Ml(t,e){if(t===e)return!0;const n=mn(t).offsetMinutes,r=mn(e).offsetMinutes;if(n===void 0&&r===void 0){const o=qo(e);if(!o)return!1;const i=qo(t);return!!i&&i.primaryIdentifier===o.primaryIdentifier}return n===r}function Qt(t,e){const n=mn(t).offsetMinutes;return n!==void 0?6e10*n:ca(t,e)}function sa(t){const e=t<0?"-":"+",n=Math.abs(t),r=Math.floor(n/36e11),o=Math.floor(n/6e10)%60,i=Math.floor(n/1e9)%60,a=n%1e9;return`${e}${pi(r,o,i,a,i===0&&a===0?"minute":"auto")}`}function St(t,e){const n=Qt(t,e);let{isoDate:{year:r,month:o,day:i},time:{hour:a,minute:s,second:c,millisecond:l,microsecond:u,nanosecond:d}}=kl(e);return Kr(r,o,i,a,s,c,l,u,d+n)}function Ue(t,e,n){return xl(Zr(t,e),t,e,n)}function xl(t,e,n,r){const o=t.length;if(o===1)return t[0];if(o)switch(r){case"compatible":case"earlier":return t[0];case"later":return t[o-1];case"reject":throw new RangeError("multiple instants found")}if(r==="reject")throw new RangeError("multiple instants found");const i=Le(n),a=f.subtract(i,pn);Ft(a);const s=Qt(e,a),c=f.add(i,pn);Ft(c);const l=Qt(e,c)-s;switch(r){case"earlier":{const u=Q.fromComponents(0,0,0,0,0,-l),d=lr(n.time,u);return Zr(e,ie(dt(n.isoDate.year,n.isoDate.month,n.isoDate.day+d.deltaDays),d))[0]}case"compatible":case"later":{const u=Q.fromComponents(0,0,0,0,0,l),d=lr(n.time,u),h=Zr(e,ie(dt(n.isoDate.year,n.isoDate.month,n.isoDate.day+d.deltaDays),d));return h[h.length-1]}}}function Zr(t,e){if(t==="UTC")return rr(e.isoDate),[Le(e)];const n=mn(t).offsetMinutes;if(n!==void 0){const r=Kr(e.isoDate.year,e.isoDate.month,e.isoDate.day,e.time.hour,e.time.minute-n,e.time.second,e.time.millisecond,e.time.microsecond,e.time.nanosecond);rr(r.isoDate);const o=Le(r);return Ft(o),[o]}return rr(e.isoDate),(function(r,o){let i=Le(o),a=f.subtract(i,pn);f.lessThan(a,qr)&&(a=i);let s=f.add(i,pn);f.greaterThan(s,ar)&&(s=i);const c=ca(r,a),l=ca(r,s);return(c===l?[c]:[c,l]).map((d=>{const h=f.subtract(i,f.BigInt(d)),y=(function(p,g){const{epochMilliseconds:v,time:{millisecond:w,microsecond:D,nanosecond:O}}=kl(g),{year:C,month:E,day:S,hour:P,minute:z,second:j}=Al(p,v);return Kr(C,E,S,P,z,j,w,D,O)})(r,h);if(ur(o,y)===0)return Ft(h),h})).filter((d=>d!==void 0))})(t,e)}function ln(t,e){const n=ie(e,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),r=Zr(t,n);if(r.length)return r[0];const o=Le(n),i=f.subtract(o,pn);return Ft(i),Ra(t,i)}function mo(t){let e;return e=t<0||t>9999?(t<0?"-":"+")+Hr(Math.abs(t),6):Hr(t,4),e}function vt(t){return Hr(t,2)}function $l(t,e){let n;if(e==="auto"){if(t===0)return"";n=Hr(t,9).replace(/0+$/,"")}else{if(e===0)return"";n=Hr(t,9).slice(0,e)}return`.${n}`}function pi(t,e,n,r,o){let i=`${vt(t)}:${vt(e)}`;return o==="minute"||(i+=`:${vt(n)}`,i+=$l(r,o)),i}function tc(t,e,n){let r=e;r===void 0&&(r="UTC");const o=m(t,U),i=Gr(St(r,o),"iso8601",n,"never");let a="Z";return e!==void 0&&(a=Rl(Qt(r,o))),`${i}${a}`}function Mo(t,e){const n=m(t,He),r=m(t,Be),o=m(t,st),i=m(t,Ze),a=m(t,Ge),s=m(t,Ke),c=Bo(t);let l="";n!==0&&(l+=`${Math.abs(n)}Y`),r!==0&&(l+=`${Math.abs(r)}M`),o!==0&&(l+=`${Math.abs(o)}W`),i!==0&&(l+=`${Math.abs(i)}D`);let u="";a!==0&&(u+=`${Math.abs(a)}H`),s!==0&&(u+=`${Math.abs(s)}M`);const d=Q.fromComponents(0,0,m(t,Xe),m(t,Qe),m(t,Je),m(t,ct));d.isZero()&&!["second","millisecond","microsecond","nanosecond"].includes(Gt(t))&&e==="auto"||(u+=`${Math.abs(d.sec)}${$l(Math.abs(d.subsec),e)}S`);let h=`${c<0?"-":""}P${l}`;return u&&(h=`${h}T${u}`),h}function nc(t,e="auto"){const{year:n,month:r,day:o}=m(t,F);return`${mo(n)}-${vt(r)}-${vt(o)}${oo(m(t,M),e)}`}function rc({hour:t,minute:e,second:n,millisecond:r,microsecond:o,nanosecond:i},a){return pi(t,e,n,1e6*r+1e3*o+i,a)}function Gr(t,e,n,r="auto"){const{isoDate:{year:o,month:i,day:a},time:{hour:s,minute:c,second:l,millisecond:u,microsecond:d,nanosecond:h}}=t;return`${mo(o)}-${vt(i)}-${vt(a)}T${pi(s,c,l,1e6*u+1e3*d+h,n)}${oo(e,r)}`}function oc(t,e="auto"){const{year:n,month:r,day:o}=m(t,F);let i=`${vt(r)}-${vt(o)}`;const a=m(t,M);e!=="always"&&e!=="critical"&&a==="iso8601"||(i=`${mo(n)}-${i}`);const s=oo(a,e);return s&&(i+=s),i}function ic(t,e="auto"){const{year:n,month:r,day:o}=m(t,F);let i=`${mo(n)}-${vt(r)}`;const a=m(t,M);e!=="always"&&e!=="critical"&&a==="iso8601"||(i+=`-${vt(o)}`);const s=oo(a,e);return s&&(i+=s),i}function ac(t,e,n="auto",r="auto",o="auto",i=void 0){let a=m(t,U);if(i){const{unit:u,increment:d,roundingMode:h}=i;a=fa(a,d,u,h)}const s=m(t,ce),c=Qt(s,a);let l=Gr(St(s,a),"iso8601",e,"never");return o!=="never"&&(l+=Rl(c)),r!=="never"&&(l+=`[${r==="critical"?"!":""}${s}]`),l+=oo(m(t,M),n),l}function sc(t){return pl.test(t)}function yr(t){const e=$m.exec(t);if(!e)throw new RangeError(`invalid time zone offset: ${t}; must match ±HH:MM[:SS.SSSSSSSSS]`);return(e[1]==="-"?-1:1)*(1e9*(60*(60*+e[2]+ +(e[3]||0))+ +(e[4]||0))+ +((e[5]||0)+"000000000").slice(0,9))}let Tr;const Mm=Object.assign(Object.create(null),{"/":!0,"-":!0,_:!0});function qo(t){if(Tr===void 0){const i=Intl.supportedValuesOf?.("timeZone");if(i){Tr=new Map;for(let a=0;a<i.length;a++){const s=i[a];Tr.set(Xr(s),s)}}else Tr=null}const e=Xr(t);let n=Tr?.get(e);if(n)return{identifier:n,primaryIdentifier:n};try{n=ml(t).resolvedOptions().timeZone}catch{return}if(e==="antarctica/south_pole"&&(n="Antarctica/McMurdo"),Tm.has(t))throw new RangeError(`${t} is a legacy time zone identifier from ICU. Use ${n} instead`);const r=[...e].map(((i,a)=>a===0||Mm[e[a-1]]?i.toUpperCase():i)).join("").split("/");if(r.length===1)return e==="gb-eire"?{identifier:"GB-Eire",primaryIdentifier:n}:{identifier:e.length<=3||/[-0-9]/.test(e)?e.toUpperCase():r[0],primaryIdentifier:n};if(r[0]==="Etc")return{identifier:`Etc/${["Zulu","Greenwich","Universal"].includes(r[1])?r[1]:r[1].toUpperCase()}`,primaryIdentifier:n};if(r[0]==="Us")return{identifier:`US/${r[1]}`,primaryIdentifier:n};const o=new Map([["Act","ACT"],["Lhi","LHI"],["Nsw","NSW"],["Dar_Es_Salaam","Dar_es_Salaam"],["Port_Of_Spain","Port_of_Spain"],["Port-Au-Prince","Port-au-Prince"],["Isle_Of_Man","Isle_of_Man"],["Comodrivadavia","ComodRivadavia"],["Knox_In","Knox_IN"],["Dumontdurville","DumontDUrville"],["Mcmurdo","McMurdo"],["Denoronha","DeNoronha"],["Easterisland","EasterIsland"],["Bajanorte","BajaNorte"],["Bajasur","BajaSur"]]);return r[1]=o.get(r[1])??r[1],r.length>2&&(r[2]=o.get(r[2])??r[2]),{identifier:r.join("/"),primaryIdentifier:n}}function xn(t,e){const{year:n,month:r,day:o,hour:i,minute:a,second:s}=Al(t,e);let c=e%1e3;return c<0&&(c+=1e3),1e6*($a({isoDate:{year:n,month:r,day:o},time:{hour:i,minute:a,second:s,millisecond:c}})-e)}function ca(t,e){return xn(t,Mt(e,"floor"))}function xa(t){const e=t<0?"-":"+",n=Math.abs(t);return`${e}${pi(Math.floor(n/60),n%60,0,0,"minute")}`}function Rl(t){return xa(hn(t,bm,"halfExpand")/6e10)}function $a({isoDate:{year:t,month:e,day:n},time:{hour:r,minute:o,second:i,millisecond:a}}){const s=t%400,c=(t-s)/400,l=new Date;return l.setUTCHours(r,o,i,a),l.setUTCFullYear(s,e-1,n),l.getTime()+Em*c}function Le(t){const e=$a(t),n=1e3*t.time.microsecond+t.time.nanosecond;return f.add(Yt(e),f.BigInt(n))}function kl(t){let e=Mt(t,"trunc"),n=f.toNumber(f.remainder(t,no));n<0&&(n+=1e6,e-=1);const r=Math.floor(n/1e3)%1e3,o=n%1e3,i=new Date(e);return{epochMilliseconds:e,isoDate:{year:i.getUTCFullYear(),month:i.getUTCMonth()+1,day:i.getUTCDate()},time:{hour:i.getUTCHours(),minute:i.getUTCMinutes(),second:i.getUTCSeconds(),millisecond:i.getUTCMilliseconds(),microsecond:r,nanosecond:o}}}function Ra(t,e){if(t==="UTC")return null;const n=Mt(e,"floor");if(n<jr)return Ra(t,Yt(jr));const r=Date.now(),o=Math.max(n,r)+366*bn*3;let i=n,a=xn(t,i),s=i,c=a;for(;a===c&&i<o;){if(s=i+2*bn*7,s>hl)return null;c=xn(t,s),a===c&&(i=s)}return a===c?null:Yt(Vl((l=>xn(t,l)),i,s,a,c))}function la(t,e){if(t==="UTC")return null;const n=Mt(e,"ceil"),r=Date.now(),o=r+366*bn*3;if(n>o){const l=la(t,Yt(o));if(l===null||f.lessThan(l,Yt(r)))return l}if(t==="Africa/Casablanca"||t==="Africa/El_Aaiun"){const l=Date.UTC(2088,0,1);if(l<n)return la(t,Yt(l))}let i=n-1;if(i<jr)return null;let a=xn(t,i),s=i,c=a;for(;a===c&&i>jr;){if(s=i-2*bn*7,s<jr)return null;c=xn(t,s),a===c&&(i=s)}return a===c?null:Yt(Vl((l=>xn(t,l)),s,i,c,a))}function Al(t,e){return(function(n){const r=n.split(/[^\w]+/);if(r.length!==7)throw new RangeError(`expected 7 parts in "${n}`);const o=+r[0],i=+r[1];let a=+r[2];const s=r[3];if(s[0]==="b"||s[0]==="B")a=1-a;else if(s[0]!=="a"&&s[0]!=="A")throw new RangeError(`Unknown era ${s} in "${n}`);const c=r[4]==="24"?0:+r[4],l=+r[5],u=+r[6];if(!(Number.isFinite(a)&&Number.isFinite(o)&&Number.isFinite(i)&&Number.isFinite(c)&&Number.isFinite(l)&&Number.isFinite(u)))throw new RangeError(`Invalid number in "${n}`);return{year:a,month:o,day:i,hour:c,minute:l,second:u}})(ml(t).format(e))}function Ho(t){return t!==void 0&&!(t%4!=0||t%100==0&&t%400!=0)}function $n(t,e){return{standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]}[Ho(t)?"leapyear":"standard"][e-1]}function Bo(t){const e=[m(t,He),m(t,Be),m(t,st),m(t,Ze),m(t,Ge),m(t,Ke),m(t,Xe),m(t,Qe),m(t,Je),m(t,ct)];for(let n=0;n<e.length;n++){const r=e[n];if(r!==0)return r<0?-1:1}return 0}function bi(t){const e=["years","months","weeks","days"];for(let n=0;n<e.length;n++){const r=t[e[n]];if(r!==0)return r<0?-1:1}return 0}function Il(t){const e=bi(t.date);return e!==0?e:t.time.sign()}function Sn(t,e){let n=t,r=e;if(!Number.isFinite(n)||!Number.isFinite(r))throw new RangeError("infinity is out of range");return r-=1,n+=Math.floor(r/12),r%=12,r<0&&(r+=12),r+=1,{year:n,month:r}}function dt(t,e,n){let r=t,o=e,i=n;if(!Number.isFinite(i))throw new RangeError("infinity is out of range");({year:r,month:o}=Sn(r,o));const a=146097;if(Math.abs(i)>a){const l=Math.trunc(i/a);r+=400*l,i-=l*a}let s=0,c=o>2?r:r-1;for(;s=Ho(c)?366:365,i<-s;)r-=1,c-=1,i+=s;for(c+=1;s=Ho(c)?366:365,i>s;)r+=1,c+=1,i-=s;for(;i<1;)({year:r,month:o}=Sn(r,o-1)),i+=$n(r,o);for(;i>$n(r,o);)i-=$n(r,o),{year:r,month:o}=Sn(r,o+1);return{year:r,month:o,day:i}}function Kr(t,e,n,r,o,i,a,s,c){const l=un(r,o,i,a,s,c);return ie(dt(t,e,n+l.deltaDays),l)}function un(t,e,n,r,o,i){let a,s=t,c=e,l=n,u=r,d=o,h=i;({div:a,mod:h}=Jn(h,3)),d+=a,h<0&&(d-=1,h+=1e3),{div:a,mod:d}=Jn(d,3),u+=a,d<0&&(u-=1,d+=1e3),l+=Math.trunc(u/1e3),u%=1e3,u<0&&(l-=1,u+=1e3),c+=Math.trunc(l/60),l%=60,l<0&&(c-=1,l+=60),s+=Math.trunc(c/60),c%=60,c<0&&(s-=1,c+=60);let y=Math.trunc(s/24);return s%=24,s<0&&(y-=1,s+=24),y+=0,s+=0,c+=0,l+=0,u+=0,d+=0,h+=0,{deltaDays:y,hour:s,minute:c,second:l,millisecond:u,microsecond:d,nanosecond:h}}function cc(t,e){const n=ze(t,0);if(bi(n)===0)return t.days;const r=m(e,F),o=bt(m(e,M),r,n,"constrain"),i=Pn(r.year,r.month-1,r.day),a=Pn(o.year,o.month-1,o.day)-i;return t.days+a}function ft(t){return new(je("%Temporal.Duration%"))(-m(t,He),-m(t,Be),-m(t,st),-m(t,Ze),-m(t,Ge),-m(t,Ke),-m(t,Xe),-m(t,Qe),-m(t,Je),-m(t,ct))}function et(t,e,n){return Math.min(n,Math.max(e,t))}function Pl(t,e,n){const r=et(e,1,12);return{year:t,month:r,day:et(n,1,$n(t,r))}}function ke(t,e,n){if(t<e||t>n)throw new RangeError(`value out of range: ${e} <= ${t} <= ${n}`)}function An(t,e,n){ke(e,1,12),ke(n,1,$n(t,e))}function Yn(t){In(ie(t,{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}))}function vi(t,e,n,r,o,i){ke(t,0,23),ke(e,0,59),ke(n,0,59),ke(r,0,999),ke(o,0,999),ke(i,0,999)}function ka(t,e,n,r,o,i,a,s,c){An(t,e,n),vi(r,o,i,a,s,c)}function In(t){const e=Le(t);(f.lessThan(e,vm)||f.greaterThan(e,wm))&&Ft(e)}function ua(t){Le(t)}function Ft(t){if(f.lessThan(t,qr)||f.greaterThan(t,ar))throw new RangeError("date/time value is outside of supported range")}function Aa({year:t,month:e}){ke(t,Zs,Gs),t===Zs?ke(e,4,12):t===Gs&&ke(e,1,9)}function wi(t,e,n,r,o,i,a,s,c,l){let u=0;const d=[t,e,n,r,o,i,a,s,c,l];for(let w=0;w<d.length;w++){const D=d[w];if(D===1/0||D===-1/0)throw new RangeError("infinite values not allowed as duration fields");if(D!==0){const O=D<0?-1:1;if(u!==0&&O!==u)throw new RangeError("mixed-sign values not allowed as duration fields");u=O}}if(Math.abs(t)>=2**32||Math.abs(e)>=2**32||Math.abs(n)>=2**32)throw new RangeError("years, months, and weeks must be < 2³²");const h=Jn(s,3),y=Jn(c,6),p=Jn(l,9),g=Jn(1e6*h.mod+1e3*y.mod+p.mod,9).div,v=86400*r+3600*o+60*i+a+h.div+y.div+p.div+g;if(!Number.isSafeInteger(v))throw new RangeError("total of duration time units cannot exceed 9007199254740991.999999999 s")}function Qn(t){return{date:{years:m(t,He),months:m(t,Be),weeks:m(t,st),days:m(t,Ze)},time:Q.fromComponents(m(t,Ge),m(t,Ke),m(t,Xe),m(t,Qe),m(t,Je),m(t,ct))}}function jt(t){const e=Q.fromComponents(m(t,Ge),m(t,Ke),m(t,Xe),m(t,Qe),m(t,Je),m(t,ct)).add24HourDays(m(t,Ze));return{date:{years:m(t,He),months:m(t,Be),weeks:m(t,st),days:0},time:e}}function Nl(t){const e=jt(t),n=Math.trunc(e.time.sec/86400);return wi(e.date.years,e.date.months,e.date.weeks,n,0,0,0,0,0,0),{...e.date,days:n}}function Ct(t,e){const n=t.time.sign();let r=t.time.abs().subsec,o=0,i=0,a=t.time.abs().sec,s=0,c=0,l=0;switch(e){case"year":case"month":case"week":case"day":o=Math.trunc(r/1e3),r%=1e3,i=Math.trunc(o/1e3),o%=1e3,a+=Math.trunc(i/1e3),i%=1e3,s=Math.trunc(a/60),a%=60,c=Math.trunc(s/60),s%=60,l=Math.trunc(c/24),c%=24;break;case"hour":o=Math.trunc(r/1e3),r%=1e3,i=Math.trunc(o/1e3),o%=1e3,a+=Math.trunc(i/1e3),i%=1e3,s=Math.trunc(a/60),a%=60,c=Math.trunc(s/60),s%=60;break;case"minute":o=Math.trunc(r/1e3),r%=1e3,i=Math.trunc(o/1e3),o%=1e3,a+=Math.trunc(i/1e3),i%=1e3,s=Math.trunc(a/60),a%=60;break;case"second":o=Math.trunc(r/1e3),r%=1e3,i=Math.trunc(o/1e3),o%=1e3,a+=Math.trunc(i/1e3),i%=1e3;break;case"millisecond":o=Math.trunc(r/1e3),r%=1e3,i=Fi(a,3,Math.trunc(o/1e3)),o%=1e3,a=0;break;case"microsecond":o=Fi(a,6,Math.trunc(r/1e3)),r%=1e3,a=0;break;case"nanosecond":r=Fi(a,9,r),a=0}return new(je("%Temporal.Duration%"))(t.date.years,t.date.months,t.date.weeks,t.date.days+n*l,n*c,n*s,n*a,n*i,n*o,n*r)}function en(t,e){return bi(t),e.sign(),{date:t,time:e}}function Pn(t,e,n){return $a({isoDate:{year:t,month:e+1,day:n},time:{hour:0,minute:0,second:0,millisecond:0}})/bn}function rr({year:t,month:e,day:n}){if(Math.abs(Pn(t,e-1,n))>1e8)throw new RangeError("date/time value is outside the supported range")}function Ia(t,e){const n=e.hour-t.hour,r=e.minute-t.minute,o=e.second-t.second,i=e.millisecond-t.millisecond,a=e.microsecond-t.microsecond,s=e.nanosecond-t.nanosecond;return Q.fromComponents(n,r,o,i,a,s)}function Pa(t,e,n,r,o){let i=Q.fromEpochNsDiff(e,t);return i=Zo(i,n,r,o),en({years:0,months:0,weeks:0,days:0},i)}function Ll(t,e,n,r){ua(t),ua(e);let o=Ia(t.time,e.time);const i=o.sign(),a=Vt(t.isoDate,e.isoDate);let s=e.isoDate;a===i&&(s=dt(s.year,s.month,s.day+i),o=o.add24HourDays(-i));const c=Jt("day",r),l=uo(n,t.isoDate,s,c);return r!==c&&(o=o.add24HourDays(l.days),l.days=0),en(l,o)}function jl(t,e,n,r,o){const i=f.subtract(e,t);if(f.equal(i,yt))return{date:{years:0,months:0,weeks:0,days:0},time:Q.ZERO};const a=f.lessThan(i,yt)?-1:1,s=St(n,t),c=St(n,e);let l,u=0,d=a===1?2:1,h=Ia(s.time,c.time);for(h.sign()===-a&&u++;u<=d;u++){l=ie(dt(c.isoDate.year,c.isoDate.month,c.isoDate.day-u*a),s.time);const p=Ue(n,l,"compatible");if(h=Q.fromEpochNsDiff(e,p),h.sign()!==-a)break}const y=Jt("day",o);return en(uo(r,s.isoDate,l.isoDate,y),h)}function Yl(t,e,n,r,o,i,a,s,c){let l,u,d,h,y=e;switch(s){case"year":{const b=hn(y.date.years,a,"trunc");l=b,u=b+a*t,d={years:l,months:0,weeks:0,days:0},h={...d,years:u};break}case"month":{const b=hn(y.date.months,a,"trunc");l=b,u=b+a*t,d=ze(y.date,0,0,l),h=ze(y.date,0,0,u);break}case"week":{const b=ze(y.date,0,0),k=bt(i,r.isoDate,b,"constrain"),x=uo(i,k,dt(k.year,k.month,k.day+y.date.days),"week"),Y=hn(y.date.weeks+x.weeks,a,"trunc");l=Y,u=Y+a*t,d=ze(y.date,0,l),h=ze(y.date,0,u);break}case"day":{const b=hn(y.date.days,a,"trunc");l=b,u=b+a*t,d=ze(y.date,l),h=ze(y.date,u);break}}const p=bt(i,r.isoDate,d,"constrain"),g=bt(i,r.isoDate,h,"constrain");let v,w;const D=ie(p,r.time),O=ie(g,r.time);o?(v=Ue(o,D,"compatible"),w=Ue(o,O,"compatible")):(v=Le(D),w=Le(O));const C=Q.fromEpochNsDiff(n,v),E=Q.fromEpochNsDiff(w,v),S=di(c,t<0?"negative":"positive"),P=C.add(C).abs().subtract(E.abs()).sign(),z=Math.abs(l)/a%2==0,j=C.isZero()?Math.abs(l):C.cmp(E)?fi(Math.abs(l),Math.abs(u),P,z,S):Math.abs(u),ae=new Q(f.add(f.multiply(E.totalNs,f.BigInt(l)),f.multiply(C.totalNs,f.BigInt(a*t)))).fdiv(E.totalNs),B=j===Math.abs(u);return y={date:B?h:d,time:Q.ZERO},{nudgeResult:{duration:y,nudgedEpochNs:B?w:v,didExpandCalendarUnit:B},total:ae}}function Ei(t,e,n,r,o,i,a,s,c){let l=t;const u=Pt(s)||r&&s==="day",d=Il(l)<0?-1:1;let h;return u?{nudgeResult:h}=Yl(d,l,e,n,r,o,a,s,c):h=r?(function(y,p,g,v,w,D,O,C){let E=p;const S=bt(w,g.isoDate,E.date,"constrain"),P=ie(S,g.time),z=ie(dt(S.year,S.month,S.day+y),g.time),j=Ue(v,P,"compatible"),ae=Ue(v,z,"compatible"),B=Q.fromEpochNsDiff(ae,j);if(B.sign()!==y)throw new RangeError("time zone returned inconsistent Instants");const b=f.BigInt(cr[O]*D);let k=E.time.round(b,C);const x=k.subtract(B),Y=x.sign()!==-y;let Z,pe;return Y?(Z=y,k=x.round(b,C),pe=k.addToEpochNs(ae)):(Z=0,pe=k.addToEpochNs(j)),{duration:en(ze(E.date,E.date.days+Z),k),nudgedEpochNs:pe,didExpandCalendarUnit:Y}})(d,l,n,r,o,a,s,c):(function(y,p,g,v,w,D){let O=y;const C=O.time.add24HourDays(O.date.days),E=C.round(f.BigInt(v*cr[w]),D),S=E.subtract(C),{quotient:P}=C.divmod(Uo),{quotient:z}=E.divmod(Uo),j=Math.sign(z-P)===C.sign(),ae=S.addToEpochNs(p);let B=0,b=E;return Kt(g)==="date"&&(B=z,b=E.add(Q.fromComponents(24*-z,0,0,0,0,0))),{duration:{date:ze(O.date,B),time:b},nudgedEpochNs:ae,didExpandCalendarUnit:j}})(l,e,i,a,s,c),l=h.duration,h.didExpandCalendarUnit&&s!=="week"&&(l=(function(y,p,g,v,w,D,O,C){let E=p;if(C===O)return E;const S=Yr.indexOf(O);for(let P=Yr.indexOf(C)-1;P>=S;P--){const z=Yr[P];if(z==="week"&&O!=="week")continue;let j;switch(z){case"year":j={years:E.date.years+y,months:0,weeks:0,days:0};break;case"month":{const b=E.date.months+y;j=ze(E.date,0,0,b);break}case"week":{const b=E.date.weeks+y;j=ze(E.date,0,b);break}}const ae=ie(bt(D,v.isoDate,j,"constrain"),v.time);let B;if(B=w?Ue(w,ae,"compatible"):Le(ae),Yo(g,B)===-y)break;E={date:j,time:Q.ZERO}}return E})(d,l,h.nudgedEpochNs,n,r,o,i,Jt(s,"day"))),l}function lc(t,e,n,r,o,i){return Pt(i)||r&&i==="day"?Yl(Il(t)<0?-1:1,t,e,n,r,o,1,i,"trunc").total:Fr(t.time.add24HourDays(t.date.days),i)}function zl(t,e,n,r,o,i,a){if(ur(t,e)==0)return{date:{years:0,months:0,weeks:0,days:0},time:Q.ZERO};In(t),In(e);const s=Ll(t,e,n,r);return i==="nanosecond"&&o===1?s:Ei(s,Le(e),t,null,n,r,o,i,a)}function Ul(t,e,n,r,o,i,a,s){if(Kt(o)==="time")return Pa(t,e,i,a,s);const c=jl(t,e,n,r,o);return a==="nanosecond"&&i===1?c:Ei(c,e,St(n,t),n,r,o,i,a,s)}function pr(t,e,n,r,o,i){const a=sr.reduce(((y,p)=>{const g=p[0],v=p[1],w=p[2];return n!=="datetime"&&w!==n||r.includes(v)||y.push(v,g),y}),[]);let s=ut(e,"largestUnit",n,"auto");if(r.includes(s))throw new RangeError(`largestUnit must be one of ${a.join(", ")}, not ${s}`);const c=mr(e);let l=kt(e,"trunc");t==="since"&&(l=(function(y){switch(y){case"ceil":return"floor";case"floor":return"ceil";case"halfCeil":return"halfFloor";case"halfFloor":return"halfCeil";default:return y}})(l));const u=ut(e,"smallestUnit",n,o);if(r.includes(u))throw new RangeError(`smallestUnit must be one of ${a.join(", ")}, not ${u}`);const d=Jt(i,u);if(s==="auto"&&(s=d),Jt(s,u)!==s)throw new RangeError(`largestUnit ${s} cannot be smaller than smallestUnit ${u}`);const h={hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[u];return h!==void 0&&gr(c,h,!1),{largestUnit:s,roundingIncrement:c,roundingMode:l,smallestUnit:u}}function uc(t,e,n,r){const o=kr(n),i=pr(t,N(r),"time",[],"nanosecond","second");let a=Ct(Pa(m(e,U),m(o,U),i.roundingIncrement,i.smallestUnit,i.roundingMode),i.largestUnit);return t==="since"&&(a=ft(a)),a}function dc(t,e,n,r){const o=$r(n),i=m(e,M),a=m(o,M);if(!Ut(i,a))throw new RangeError(`cannot compute difference between dates of ${i} and ${a} calendars`);const s=pr(t,N(r),"date",[],"day","day"),c=je("%Temporal.Duration%"),l=m(e,F),u=m(o,F);if(Vt(l,u)===0)return new c;let d={date:uo(i,l,u,s.largestUnit),time:Q.ZERO};if(s.smallestUnit!=="day"||s.roundingIncrement!==1){const y=ie(l,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});d=Ei(d,Le(ie(u,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0})),y,null,i,s.largestUnit,s.roundingIncrement,s.smallestUnit,s.roundingMode)}let h=Ct(d,"day");return t==="since"&&(h=ft(h)),h}function fc(t,e,n,r){const o=Rr(n),i=m(e,M),a=m(o,M);if(!Ut(i,a))throw new RangeError(`cannot compute difference between dates of ${i} and ${a} calendars`);const s=pr(t,N(r),"datetime",[],"nanosecond","day"),c=je("%Temporal.Duration%"),l=m(e,be),u=m(o,be);if(ur(l,u)===0)return new c;let d=Ct(zl(l,u,i,s.largestUnit,s.roundingIncrement,s.smallestUnit,s.roundingMode),s.largestUnit);return t==="since"&&(d=ft(d)),d}function hc(t,e,n,r){const o=fn(n),i=pr(t,N(r),"time",[],"nanosecond","hour");let a=Ia(m(e,Te),m(o,Te));a=Zo(a,i.roundingIncrement,i.smallestUnit,i.roundingMode);let s=Ct(en({years:0,months:0,weeks:0,days:0},a),i.largestUnit);return t==="since"&&(s=ft(s)),s}function mc(t,e,n,r){const o=Ar(n),i=m(e,M),a=m(o,M);if(!Ut(i,a))throw new RangeError(`cannot compute difference between months of ${i} and ${a} calendars`);const s=pr(t,N(r),"date",["week","day"],"month","year"),c=je("%Temporal.Duration%");if(Vt(m(e,F),m(o,F))==0)return new c;const l=rt(i,m(e,F),"year-month");l.day=1;const u=vn(i,l,"constrain"),d=rt(i,m(o,F),"year-month");d.day=1;const h=vn(i,d,"constrain");let y={date:ze(uo(i,u,h,s.largestUnit),0,0),time:Q.ZERO};if(s.smallestUnit!=="month"||s.roundingIncrement!==1){const g=ie(u,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});y=Ei(y,Le(ie(h,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0})),g,null,i,s.largestUnit,s.roundingIncrement,s.smallestUnit,s.roundingMode)}let p=Ct(y,"day");return t==="since"&&(p=ft(p)),p}function gc(t,e,n,r){const o=Ir(n),i=m(e,M),a=m(o,M);if(!Ut(i,a))throw new RangeError(`cannot compute difference between dates of ${i} and ${a} calendars`);const s=pr(t,N(r),"datetime",[],"nanosecond","hour"),c=m(e,U),l=m(o,U),u=je("%Temporal.Duration%");let d;if(Kt(s.largestUnit)!=="date")d=Ct(Pa(c,l,s.roundingIncrement,s.smallestUnit,s.roundingMode),s.largestUnit);else{const h=m(e,ce);if(!Ml(h,m(o,ce)))throw new RangeError("When calculating difference between time zones, largestUnit must be 'hours' or smaller because day lengths can vary between time zones due to DST or time zone offset changes.");if(f.equal(c,l))return new u;d=Ct(Ul(c,l,h,i,s.largestUnit,s.roundingIncrement,s.smallestUnit,s.roundingMode),"hour")}return t==="since"&&(d=ft(d)),d}function lr({hour:t,minute:e,second:n,millisecond:r,microsecond:o,nanosecond:i},a){let s=n,c=i;return s+=a.sec,c+=a.subsec,un(t,e,s,r,o,c)}function da(t,e){const n=e.addToEpochNs(t);return Ft(n),n}function Pr(t,e,n,r,o="constrain"){if(bi(r.date)===0)return da(t,r.time);const i=St(e,t);return da(Ue(e,ie(bt(n,i.isoDate,r.date,o),i.time),"compatible"),r.time)}function yc(t,e,n){let r=Ot(n);t==="subtract"&&(r=ft(r));const o=Jt(Gt(e),Gt(r));if(Pt(o))throw new RangeError("For years, months, or weeks arithmetic, use date arithmetic relative to a starting point");const i=jt(e),a=jt(r);return Ct(en({years:0,months:0,weeks:0,days:0},i.time.add(a.time)),o)}function pc(t,e,n){let r=Ot(n);t==="subtract"&&(r=ft(r));const o=Gt(r);if(Kt(o)==="date")throw new RangeError(`Duration field ${o} not supported by Temporal.Instant. Try Temporal.ZonedDateTime instead.`);const i=jt(r);return Lt(da(m(e,U),i.time))}function bc(t,e,n,r){const o=m(e,M);let i=Ot(n);t==="subtract"&&(i=ft(i));const a=Nl(i),s=re(N(r));return tt(bt(o,m(e,F),a,s),o)}function vc(t,e,n,r){let o=Ot(n);t==="subtract"&&(o=ft(o));const i=re(N(r)),a=m(e,M),s=jt(o),c=m(e,be),l=lr(c.time,s.time),u=ze(s.date,l.deltaDays);return wi(u.years,u.months,u.weeks,u.days,0,0,0,0,0,0),Tt(ie(bt(a,c.isoDate,u,i),l),a)}function wc(t,e,n){let r=Ot(n);t==="subtract"&&(r=ft(r));const o=jt(r),{hour:i,minute:a,second:s,millisecond:c,microsecond:l,nanosecond:u}=lr(m(e,Te),o.time);return Xt(yi(i,a,s,c,l,u,"reject"))}function Ec(t,e,n,r){let o=Ot(n);t==="subtract"&&(o=ft(o));const i=re(N(r)),a=Bo(o),s=m(e,M),c=rt(s,m(e,F),"year-month");c.day=1;let l=vn(s,c,"constrain");if(a<0){const d=bt(s,l,{months:1},"constrain");l=dt(d.year,d.month,d.day-1)}const u=Nl(o);return Yn(l),nr(Br(s,rt(s,bt(s,l,u,i),"year-month"),i),s)}function _c(t,e,n,r){let o=Ot(n);t==="subtract"&&(o=ft(o));const i=re(N(r)),a=m(e,ce),s=m(e,M),c=Qn(o);return Ye(Pr(m(e,U),a,s,c,i),a,s)}function hn(t,e,n){const r=Math.trunc(t/e),o=t%e,i=t<0?"negative":"positive",a=Math.abs(r),s=a+1,c=lt(Math.abs(2*o)-e),l=a%2==0,u=di(n,i),d=o===0?a:fi(a,s,c,l,u);return e*(i==="positive"?d:-d)}function fa(t,e,n,r){const o=cr[n]*e;return(function(i,a,s){const c=Bt(i),l=Bt(a),u=f.divide(c,l),d=f.remainder(c,l),h=di(s,"positive");let y,p;f.lessThan(c,yt)?(y=f.subtract(u,Wr),p=u):(y=u,p=f.add(u,Wr));const g=Yo(Dn(f.multiply(d,Oa)),l)*(f.lessThan(c,yt)?-1:1)+0,v=f.equal(d,yt)?u:fi(y,p,g,Xc(y),h);return f.multiply(v,l)})(t,f.BigInt(o),r)}function ha(t,e,n,r){ua(t);const{year:o,month:i,day:a}=t.isoDate,s=ma(t.time,e,n,r);return ie(dt(o,i,a+s.deltaDays),s)}function ma({hour:t,minute:e,second:n,millisecond:r,microsecond:o,nanosecond:i},a,s,c){let l;switch(s){case"day":case"hour":l=1e3*(1e3*(1e3*(60*(60*t+e)+n)+r)+o)+i;break;case"minute":l=1e3*(1e3*(1e3*(60*e+n)+r)+o)+i;break;case"second":l=1e3*(1e3*(1e3*n+r)+o)+i;break;case"millisecond":l=1e3*(1e3*r+o)+i;break;case"microsecond":l=1e3*o+i;break;case"nanosecond":l=i}const u=cr[s],d=hn(l,u*a,c)/u;switch(s){case"day":return{deltaDays:d,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0};case"hour":return un(d,0,0,0,0,0);case"minute":return un(t,d,0,0,0,0);case"second":return un(t,e,d,0,0,0);case"millisecond":return un(t,e,n,d,0,0);case"microsecond":return un(t,e,n,r,d,0);case"nanosecond":return un(t,e,n,r,o,d);default:throw new Error(`Invalid unit ${s}`)}}function Zo(t,e,n,r){const o=cr[n];return t.round(f.BigInt(o*e),r)}function Fr(t,e){const n=cr[e];return t.fdiv(f.BigInt(n))}function Vt(t,e){return t.year!==e.year?lt(t.year-e.year):t.month!==e.month?lt(t.month-e.month):t.day!==e.day?lt(t.day-e.day):0}function ga(t,e){return t.hour!==e.hour?lt(t.hour-e.hour):t.minute!==e.minute?lt(t.minute-e.minute):t.second!==e.second?lt(t.second-e.second):t.millisecond!==e.millisecond?lt(t.millisecond-e.millisecond):t.microsecond!==e.microsecond?lt(t.microsecond-e.microsecond):t.nanosecond!==e.nanosecond?lt(t.nanosecond-e.nanosecond):0}function ur(t,e){const n=Vt(t.isoDate,e.isoDate);return n!==0?n:ga(t.time,e.time)}function Fl(t){const e=Go(t);return globalThis.BigInt!==void 0?globalThis.BigInt(e.toString(10)):e}function Mt(t,e){const n=Bt(t),{quotient:r,remainder:o}=Mr(n,no);let i=f.toNumber(r);return e==="floor"&&f.toNumber(o)<0&&(i-=1),e==="ceil"&&f.toNumber(o)>0&&(i+=1),i}function Yt(t){if(!Number.isInteger(t))throw new RangeError("epoch milliseconds must be an integer");return f.multiply(f.BigInt(t),no)}function Go(t){let e=t;if(typeof t=="object"){const n=t[Symbol.toPrimitive];n&&typeof n=="function"&&(e=n.call(t,"number"))}if(typeof e=="number")throw new TypeError("cannot convert number to bigint");return typeof e=="bigint"?f.BigInt(e.toString(10)):f.BigInt(e)}const ya=(()=>{let t=f.BigInt(Date.now()%1e6);return()=>{const e=Date.now(),n=f.BigInt(e),r=f.add(Yt(e),t);return t=f.remainder(n,no),f.greaterThan(r,ar)?ar:f.lessThan(r,qr)?qr:r}})();function Cr(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}function lt(t){return t<0?-1:t>0?1:t}function N(t){if(t===void 0)return Object.create(null);if(Ce(t)&&t!==null)return t;throw new TypeError("Options parameter must be an object, not "+(t===null?"null":typeof t))}function Nn(t,e){const n=Object.create(null);return n[t]=e,n}function tn(t,e,n,r){let o=t[e];if(o!==void 0){if(o=mi(o),!n.includes(o))throw new RangeError(`${e} must be one of ${n.join(", ")}, not ${o}`);return o}if(r===on)throw new RangeError(`${e} option is required`);return r}function it(t){const e=Xr(t);if(!_m.includes(Xr(e)))throw new RangeError(`invalid calendar identifier ${e}`);switch(e){case"ethiopic-amete-alem":return"ethioaa";case"islamicc":return"islamic-civil"}return e}function Xr(t){let e="";for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);e+=r>=65&&r<=90?String.fromCharCode(r+32):String.fromCharCode(r)}return e}function _n(t){throw new TypeError(`Do not use built-in arithmetic operators with Temporal objects. When comparing, use ${t==="PlainMonthDay"?"Temporal.PlainDate.compare(obj1.toPlainDate(year), obj2.toPlainDate(year))":`Temporal.${t}.compare(obj1, obj2)`}, not obj1 > obj2. When coercing to strings, use \`\${obj}\` or String(obj), not '' + obj. When coercing to numbers, use properties or methods of the object, not \`+obj\`. When concatenating with strings, use \`\${str}\${obj}\` or str.concat(obj), not str + obj. In React, coerce to a string before rendering a Temporal object.`)}const xm=new RegExp(`^${dl.source}$`),$m=new RegExp(`^${/([+-])([01][0-9]|2[0-3])(?::?([0-5][0-9])(?::?([0-5][0-9])(?:[.,](\d{1,9}))?)?)?/.source}$`);function Vl(t,e,n,r=t(e),o=t(n)){let i=e,a=n,s=r,c=o;for(;a-i>1;){let l=Math.trunc((i+a)/2);const u=t(l);u===s?(i=l,s=u):u===c&&(a=l,c=u)}return a}function Wl(t){return[...t]}function ql(t,e){if(t!=="gregory"&&t!=="iso8601")return;const n=go[t];let r=e.year;const{dayOfWeek:o,dayOfYear:i,daysInYear:a}=n.isoToDate(e,{dayOfWeek:!0,dayOfYear:!0,daysInYear:!0}),s=n.getFirstDayOfWeek(),c=n.getMinimalDaysInFirstWeek();let l=(o+7-s)%7,u=(o-i+7001-s)%7,d=Math.floor((i-1+u)/7);if(7-u>=c&&++d,d==0)d=(function(h,y,p,g){let v=(g-h-p+1)%7;v<0&&(v+=7);let w=Math.floor((p+v-1)/7);return 7-v>=y&&++w,w})(s,c,i+n.isoToDate(n.dateAdd(e,{years:-1},"constrain"),{daysInYear:!0}).daysInYear,o),r--;else if(i>=a-5){let h=(l+a-i)%7;h<0&&(h+=7),6-h>=c&&i+7-l>a&&(d=1,r++)}return{week:d,year:r}}function Tc(t,e,n,r,o){if(e!==o.year){if(t*(e-o.year)>0)return!0}else if(n!==o.month){if(t*(n-o.month)>0)return!0}else if(r!==o.day&&t*(r-o.day)>0)return!0;return!1}const go={};function Ln(t){if(!t.startsWith("M"))throw new RangeError(`Invalid month code: ${t}. Month codes must start with M.`);const e=+t.slice(1);if(Number.isNaN(e))throw new RangeError(`Invalid month code: ${t}`);return e}function zt(t,e=!1){return`M${`${t}`.padStart(2,"0")}${e?"L":""}`}function Na(t,e=void 0,n=12){let{month:r,monthCode:o}=t;if(o===void 0){if(r===void 0)throw new TypeError("Either month or monthCode are required");e==="reject"&&ke(r,1,n),e==="constrain"&&(r=et(r,1,n)),o=zt(r)}else{const i=Ln(o);if(o!==zt(i))throw new RangeError(`Invalid month code: ${o}`);if(r!==void 0&&r!==i)throw new RangeError(`monthCode ${o} and month ${r} must match if both are present`);if(r=i,r<1||r>n)throw new RangeError(`Invalid monthCode: ${o}`)}return{...t,month:r,monthCode:o}}go.iso8601={resolveFields(t,e){if((e==="date"||e==="year-month")&&t.year===void 0)throw new TypeError("year is required");if((e==="date"||e==="month-day")&&t.day===void 0)throw new TypeError("day is required");Object.assign(t,Na(t))},dateToISO:(t,e)=>zr(t.year,t.month,t.day,e),monthDayToISOReferenceDate(t,e){const{month:n,day:r}=zr(t.year??1972,t.month,t.day,e);return{month:n,day:r,year:1972}},extraFields:()=>[],fieldKeysToIgnore(t){const e=new Set;for(let n=0;n<t.length;n++){const r=t[n];e.add(r),r==="month"?e.add("monthCode"):r==="monthCode"&&e.add("month")}return Wl(e)},dateAdd(t,{years:e=0,months:n=0,weeks:r=0,days:o=0},i){let{year:a,month:s,day:c}=t;return a+=e,s+=n,{year:a,month:s}=Sn(a,s),{year:a,month:s,day:c}=zr(a,s,c,i),c+=o+7*r,dt(a,s,c)},dateUntil(t,e,n){const r=-Vt(t,e);if(r===0)return{years:0,months:0,weeks:0,days:0};let o,i=0,a=0;if(n==="year"||n==="month"){let u=e.year-t.year;for(u!==0&&(u-=r);!Tc(r,t.year+u,t.month,t.day,e);)i=u,u+=r;let d=r;for(o=Sn(t.year+i,t.month+d);!Tc(r,o.year,o.month,t.day,e);)a=d,d+=r,o=Sn(o.year,o.month+r);n==="month"&&(a+=12*i,i=0)}o=Sn(t.year+i,t.month+a);const s=Pl(o.year,o.month,t.day);let c=0,l=Pn(e.year,e.month-1,e.day)-Pn(s.year,s.month-1,s.day);return n==="week"&&(c=Math.trunc(l/7),l%=7),{years:i,months:a,weeks:c,days:l}},isoToDate({year:t,month:e,day:n},r){const o={era:void 0,eraYear:void 0,year:t,month:e,day:n,daysInWeek:7,monthsInYear:12};if(r.monthCode&&(o.monthCode=zt(e)),r.dayOfWeek){const i=e+(e<3?10:-2),a=t-(e<3?1:0),s=Math.floor(a/100),c=a-100*s,l=(n+Math.floor(2.6*i-.2)+(c+Math.floor(c/4))+(Math.floor(s/4)-2*s))%7;o.dayOfWeek=l+(l<=0?7:0)}if(r.dayOfYear){let i=n;for(let a=e-1;a>0;a--)i+=$n(t,a);o.dayOfYear=i}return r.weekOfYear&&(o.weekOfYear=ql("iso8601",{year:t,month:e,day:n})),r.daysInMonth&&(o.daysInMonth=$n(t,e)),(r.daysInYear||r.inLeapYear)&&(o.inLeapYear=Ho(t),o.daysInYear=o.inLeapYear?366:365),o},getFirstDayOfWeek:()=>1,getMinimalDaysInFirstWeek:()=>4};class Re{constructor(e){if(this.map=new Map,this.calls=0,this.hits=0,this.misses=0,e!==void 0){let n=0;for(const r of e.map.entries()){if(++n>Re.MAX_CACHE_ENTRIES)break;this.map.set(...r)}}}get(e){const n=this.map.get(e);return n&&(this.hits++,this.report()),this.calls++,n}set(e,n){this.map.set(e,n),this.misses++,this.report()}report(){}setObject(e){if(Re.objectMap.get(e))throw new RangeError("object already cached");Re.objectMap.set(e,this),this.report()}static getCacheForObject(e){let n=Re.objectMap.get(e);return n||(n=new Re,Re.objectMap.set(e,n)),n}}function Hl({isoYear:t,isoMonth:e,isoDay:n}){return`${mo(t)}-${vt(e)}-${vt(n)}T00:00Z`}function qi(t,e){return{years:t.year-e.year,months:t.month-e.month,days:t.day-e.day}}Re.objectMap=new WeakMap,Re.MAX_CACHE_ENTRIES=1e3;class zn{constructor(){this.eras=[],this.hasEra=!1,this.erasBeginMidYear=!1}getFormatter(){return this.formatter===void 0&&(this.formatter=new Intl.DateTimeFormat(`en-US-u-ca-${this.id}`,{day:"numeric",month:"numeric",year:"numeric",era:"short",timeZone:"UTC"})),this.formatter}getCalendarParts(e){let n=this.getFormatter(),r=new Date(e);if(e==="-271821-04-19T00:00Z"){const o=n.resolvedOptions();n=new Intl.DateTimeFormat(o.locale,{...o,timeZone:"Etc/GMT+1"}),r=new Date("-271821-04-20T00:00Z")}try{return n.formatToParts(r)}catch{throw new RangeError(`Invalid ISO date: ${e}`)}}isoToCalendarDate(e,n){const{year:r,month:o,day:i}=e,a=JSON.stringify({func:"isoToCalendarDate",isoYear:r,isoMonth:o,isoDay:i,id:this.id}),s=n.get(a);if(s)return s;const c=Hl({isoYear:r,isoMonth:o,isoDay:i}),l=this.getCalendarParts(c),u={};for(let h=0;h<l.length;h++){const{type:y,value:p}=l[h];if(y!=="year"&&y!=="relatedYear"||(this.hasEra?u.eraYear=+p:u.year=+p),y==="month"){const g=/^([0-9]*)(.*?)$/.exec(p);if(!g||g.length!=3||!g[1]&&!g[2])throw new RangeError(`Unexpected month: ${p}`);if(u.month=g[1]?+g[1]:1,u.month<1)throw new RangeError(`Invalid month ${p} from ${c}[u-ca-${this.id}] (probably due to https://bugs.chromium.org/p/v8/issues/detail?id=10527)`);if(u.month>13)throw new RangeError(`Invalid month ${p} from ${c}[u-ca-${this.id}] (probably due to https://bugs.chromium.org/p/v8/issues/detail?id=10529)`);g[2]&&(u.monthExtra=g[2])}y==="day"&&(u.day=+p),this.hasEra&&y==="era"&&p!=null&&p!==""&&(u.era=p.split(" (")[0].normalize("NFD").replace(/[^-0-9 \p{L}]/gu,"").replace(/ /g,"-").toLowerCase())}if(this.hasEra&&u.eraYear===void 0)throw new RangeError(`Intl.DateTimeFormat.formatToParts lacks relatedYear in ${this.id} calendar. Try Node 14+ or modern browsers.`);if(this.hasEra){const h=this.eras.find((y=>u.era===y.genericName));h&&(u.era=h.code)}if(this.reviseIntlEra){const{era:h,eraYear:y}=this.reviseIntlEra(u,e);u.era=h,u.eraYear=y}this.checkIcuBugs&&this.checkIcuBugs(e);const d=this.adjustCalendarDate(u,n,"constrain",!0);if(d.year===void 0)throw new RangeError(`Missing year converting ${JSON.stringify(e)}`);if(d.month===void 0)throw new RangeError(`Missing month converting ${JSON.stringify(e)}`);if(d.day===void 0)throw new RangeError(`Missing day converting ${JSON.stringify(e)}`);return n.set(a,d),["constrain","reject"].forEach((h=>{const y=JSON.stringify({func:"calendarToIsoDate",year:d.year,month:d.month,day:d.day,overflow:h,id:this.id});n.set(y,e)})),d}validateCalendarDate(e){const{month:n,year:r,day:o,eraYear:i,monthCode:a,monthExtra:s}=e;if(s!==void 0)throw new RangeError("Unexpected `monthExtra` value");if(r===void 0&&i===void 0)throw new TypeError("year or eraYear is required");if(n===void 0&&a===void 0)throw new TypeError("month or monthCode is required");if(o===void 0)throw new RangeError("Missing day");if(a!==void 0){if(typeof a!="string")throw new RangeError("monthCode must be a string, not "+typeof a);if(!/^M([01]?\d)(L?)$/.test(a))throw new RangeError(`Invalid monthCode: ${a}`)}if(this.hasEra&&e.era===void 0!=(e.eraYear===void 0))throw new TypeError("properties era and eraYear must be provided together")}adjustCalendarDate(e,n=void 0,r="constrain",o=!1){if(this.calendarType==="lunisolar")throw new RangeError("Override required for lunisolar calendars");let i=e;this.validateCalendarDate(i);const a=this.monthsInYear(i,n);let{month:s,monthCode:c}=i;return{month:s,monthCode:c}=Na(i,r,a),{...i,month:s,monthCode:c}}regulateMonthDayNaive(e,n,r){const o=this.monthsInYear(e,r);let{month:i,day:a}=e;return n==="reject"?(ke(i,1,o),ke(a,1,this.maximumMonthLength(e))):(i=et(i,1,o),a=et(a,1,this.maximumMonthLength({...e,month:i}))),{...e,month:i,day:a}}calendarToIsoDate(e,n="constrain",r){const o=e;let i=this.adjustCalendarDate(e,r,n,!1);i=this.regulateMonthDayNaive(i,n,r);const{year:a,month:s,day:c}=i,l=JSON.stringify({func:"calendarToIsoDate",year:a,month:s,day:c,overflow:n,id:this.id});let u,d=r.get(l);if(d||o.year!==void 0&&o.month!==void 0&&o.day!==void 0&&(o.year!==i.year||o.month!==i.month||o.day!==i.day)&&(u=JSON.stringify({func:"calendarToIsoDate",year:o.year,month:o.month,day:o.day,overflow:n,id:this.id}),d=r.get(u),d))return d;let h=this.estimateIsoDate({year:a,month:s,day:c});const y=D=>{let O=this.addDaysIso(h,D);if(i.day>this.minimumMonthLength(i)){let C=this.isoToCalendarDate(O,r);for(;C.month!==s||C.year!==a;){if(n==="reject")throw new RangeError(`day ${c} does not exist in month ${s} of year ${a}`);O=this.addDaysIso(O,-1),C=this.isoToCalendarDate(O,r)}}return O};let p=0,g=this.isoToCalendarDate(h,r),v=qi(i,g);if(v.years!==0||v.months!==0||v.days!==0){const D=365*v.years+30*v.months+v.days;h=this.addDaysIso(h,D),g=this.isoToCalendarDate(h,r),v=qi(i,g),v.years===0&&v.months===0?h=y(v.days):p=this.compareCalendarDates(i,g)}let w=8;for(;p;){h=this.addDaysIso(h,p*w);const D=g;g=this.isoToCalendarDate(h,r);const O=p;if(p=this.compareCalendarDates(i,g),p){if(v=qi(i,g),v.years===0&&v.months===0)h=y(v.days),p=0;else if(O&&p!==O)if(w>1)w/=2;else{if(n==="reject")throw new RangeError(`Can't find ISO date from calendar date: ${JSON.stringify({...o})}`);this.compareCalendarDates(g,D)>0&&(h=this.addDaysIso(h,-1)),p=0}}}if(r.set(l,h),u&&r.set(u,h),i.year===void 0||i.month===void 0||i.day===void 0||i.monthCode===void 0||this.hasEra&&(i.era===void 0||i.eraYear===void 0))throw new RangeError("Unexpected missing property");return h}compareCalendarDates(e,n){return e.year!==n.year?lt(e.year-n.year):e.month!==n.month?lt(e.month-n.month):e.day!==n.day?lt(e.day-n.day):0}regulateDate(e,n="constrain",r){const o=this.calendarToIsoDate(e,n,r);return this.isoToCalendarDate(o,r)}addDaysIso(e,n){return dt(e.year,e.month,e.day+n)}addDaysCalendar(e,n,r){const o=this.calendarToIsoDate(e,"constrain",r),i=this.addDaysIso(o,n);return this.isoToCalendarDate(i,r)}addMonthsCalendar(e,n,r,o){let i=e;const{day:a}=i;for(let s=0,c=Math.abs(n);s<c;s++){const{month:l}=i,u=i,d=n<0?-Math.max(a,this.daysInPreviousMonth(i,o)):this.daysInMonth(i,o),h=this.calendarToIsoDate(i,"constrain",o);let y=this.addDaysIso(h,d);if(i=this.isoToCalendarDate(y,o),n>0){const p=this.monthsInYear(u,o);for(;i.month-1!=l%p;)y=this.addDaysIso(y,-1),i=this.isoToCalendarDate(y,o)}i.day!==a&&(i=this.regulateDate({...i,day:a},"constrain",o))}if(r==="reject"&&i.day!==a)throw new RangeError(`Day ${a} does not exist in resulting calendar month`);return i}addCalendar(e,{years:n=0,months:r=0,weeks:o=0,days:i=0},a,s){const{year:c,day:l,monthCode:u}=e,d=this.adjustCalendarDate({year:c+n,monthCode:u,day:l},s),h=this.addMonthsCalendar(d,r,a,s),y=i+7*o;return this.addDaysCalendar(h,y,s)}untilCalendar(e,n,r,o){let i=0,a=0,s=0,c=0;switch(r){case"day":i=this.calendarDaysUntil(e,n,o);break;case"week":{const l=this.calendarDaysUntil(e,n,o);i=l%7,a=(l-i)/7;break}case"month":case"year":{const l=this.compareCalendarDates(n,e);if(!l)return{years:0,months:0,weeks:0,days:0};const u=n.year-e.year,d=n.day-e.day;if(r==="year"&&u){let p=0;n.monthCode>e.monthCode&&(p=1),n.monthCode<e.monthCode&&(p=-1),p||(p=Math.sign(d)),c=p*l<0?u-l:u}let h,y=c?this.addCalendar(e,{years:c},"constrain",o):e;do s+=l,h=y,y=this.addMonthsCalendar(h,l,"constrain",o),y.day!==e.day&&(y=this.regulateDate({...y,day:e.day},"constrain",o));while(this.compareCalendarDates(n,y)*l>=0);s-=l,i=this.calendarDaysUntil(h,n,o);break}}return{years:c,months:s,weeks:a,days:i}}daysInMonth(e,n){const{day:r}=e,o=this.maximumMonthLength(e),i=this.minimumMonthLength(e);if(i===o)return i;const a=r<=o-i?o:i,s=this.calendarToIsoDate(e,"constrain",n),c=this.addDaysIso(s,a),l=this.isoToCalendarDate(c,n),u=this.addDaysIso(c,-l.day);return this.isoToCalendarDate(u,n).day}daysInPreviousMonth(e,n){const{day:r,month:o,year:i}=e;let a={year:o>1?i:i-1,month:o,day:1};const s=o>1?o-1:this.monthsInYear(a,n);a={...a,month:s};const c=this.minimumMonthLength(a),l=this.maximumMonthLength(a);if(c===l)return l;const u=this.calendarToIsoDate(e,"constrain",n),d=this.addDaysIso(u,-r);return this.isoToCalendarDate(d,n).day}startOfCalendarYear(e){return{year:e.year,month:1,monthCode:"M01",day:1}}startOfCalendarMonth(e){return{year:e.year,month:e.month,day:1}}calendarDaysUntil(e,n,r){const o=this.calendarToIsoDate(e,"constrain",r),i=this.calendarToIsoDate(n,"constrain",r);return Pn(i.year,i.month-1,i.day)-Pn(o.year,o.month-1,o.day)}monthDaySearchStartYear(e,n){return 1972}monthDayFromFields(e,n,r){let o,i,a,s,c,{era:l,eraYear:u,year:d,month:h,monthCode:y,day:p}=e;if(h!==void 0&&d===void 0&&(!this.hasEra||l===void 0||u===void 0))throw new TypeError("when month is present, year (or era and eraYear) are required");(y===void 0||d!==void 0||this.hasEra&&u!==void 0)&&({monthCode:y,day:p}=this.isoToCalendarDate(this.calendarToIsoDate(e,n,r),r));const g={year:this.monthDaySearchStartYear(y,p),month:12,day:31},v=this.isoToCalendarDate(g,r),w=v.monthCode>y||v.monthCode===y&&v.day>=p?v.year:v.year-1;for(let D=0;D<20;D++){const O=this.adjustCalendarDate({day:p,monthCode:y,year:w-D},r),C=this.calendarToIsoDate(O,"constrain",r),E=this.isoToCalendarDate(C,r);if({year:o,month:i,day:a}=C,E.monthCode===y&&E.day===p)return{month:i,day:a,year:o};if(n==="constrain"){const S=this.maxLengthOfMonthCodeInAnyYear(E.monthCode);if(E.monthCode===y&&E.day===S&&p>S)return{month:i,day:a,year:o};(s===void 0||E.monthCode===s.monthCode&&E.day>s.day)&&(s=E,c=C)}}if(n==="constrain"&&c!==void 0)return c;throw new RangeError(`No recent ${this.id} year with monthCode ${y} and day ${p}`)}getFirstDayOfWeek(){}getMinimalDaysInFirstWeek(){}}class Rm extends zn{constructor(){super(...arguments),this.id="hebrew",this.calendarType="lunisolar",this.months={Tishri:{leap:1,regular:1,monthCode:"M01",days:30},Heshvan:{leap:2,regular:2,monthCode:"M02",days:{min:29,max:30}},Kislev:{leap:3,regular:3,monthCode:"M03",days:{min:29,max:30}},Tevet:{leap:4,regular:4,monthCode:"M04",days:29},Shevat:{leap:5,regular:5,monthCode:"M05",days:30},Adar:{leap:void 0,regular:6,monthCode:"M06",days:29},"Adar I":{leap:6,regular:void 0,monthCode:"M05L",days:30},"Adar II":{leap:7,regular:void 0,monthCode:"M06",days:29},Nisan:{leap:8,regular:7,monthCode:"M07",days:30},Iyar:{leap:9,regular:8,monthCode:"M08",days:29},Sivan:{leap:10,regular:9,monthCode:"M09",days:30},Tamuz:{leap:11,regular:10,monthCode:"M10",days:29},Av:{leap:12,regular:11,monthCode:"M11",days:30},Elul:{leap:13,regular:12,monthCode:"M12",days:29}}}inLeapYear(e){const{year:n}=e;return(7*n+1)%19<7}monthsInYear(e){return this.inLeapYear(e)?13:12}minimumMonthLength(e){return this.minMaxMonthLength(e,"min")}maximumMonthLength(e){return this.minMaxMonthLength(e,"max")}minMaxMonthLength(e,n){const{month:r,year:o}=e,i=this.getMonthCode(o,r),a=Object.entries(this.months).find((c=>c[1].monthCode===i));if(a===void 0)throw new RangeError(`unmatched Hebrew month: ${r}`);const s=a[1].days;return typeof s=="number"?s:s[n]}maxLengthOfMonthCodeInAnyYear(e){return["M04","M06","M08","M10","M12"].includes(e)?29:30}estimateIsoDate(e){const{year:n}=e;return{year:n-3760,month:1,day:1}}getMonthCode(e,n){return this.inLeapYear({year:e})?n===6?zt(5,!0):zt(n<6?n:n-1):zt(n)}adjustCalendarDate(e,n,r="constrain",o=!1){let{year:i,month:a,monthCode:s,day:c,monthExtra:l}=e;if(i===void 0)throw new TypeError("Missing property: year");if(o){if(l){const u=this.months[l];if(!u)throw new RangeError(`Unrecognized month from formatToParts: ${l}`);a=this.inLeapYear({year:i})?u.leap:u.regular}return s=this.getMonthCode(i,a),{year:i,month:a,day:c,monthCode:s}}if(this.validateCalendarDate(e),a===void 0)if(s.endsWith("L")){if(s!=="M05L")throw new RangeError(`Hebrew leap month must have monthCode M05L, not ${s}`);if(a=6,!this.inLeapYear({year:i})){if(r==="reject")throw new RangeError(`Hebrew monthCode M05L is invalid in year ${i} which is not a leap year`);a=6,s="M06"}}else{a=Ln(s),this.inLeapYear({year:i})&&a>=6&&a++;const u=this.monthsInYear({year:i});if(a<1||a>u)throw new RangeError(`Invalid monthCode: ${s}`)}else if(r==="reject"?(ke(a,1,this.monthsInYear({year:i})),ke(c,1,this.maximumMonthLength({year:i,month:a}))):(a=et(a,1,this.monthsInYear({year:i})),c=et(c,1,this.maximumMonthLength({year:i,month:a}))),s===void 0)s=this.getMonthCode(i,a);else if(this.getMonthCode(i,a)!==s)throw new RangeError(`monthCode ${s} doesn't correspond to month ${a} in Hebrew year ${i}`);return{...e,day:c,month:a,monthCode:s,year:i}}}class br extends zn{constructor(){super(...arguments),this.calendarType="lunar",this.DAYS_PER_ISLAMIC_YEAR=354+11/30,this.DAYS_PER_ISO_YEAR=365.2425}inLeapYear(e,n){const r={year:e.year,month:1,monthCode:"M01",day:1},o={year:e.year+1,month:1,monthCode:"M01",day:1};return this.calendarDaysUntil(r,o,n)===355}monthsInYear(){return 12}minimumMonthLength(){return 29}maximumMonthLength(){return 30}maxLengthOfMonthCodeInAnyYear(){return 30}estimateIsoDate(e){const{year:n}=this.adjustCalendarDate(e);return{year:Math.floor(n*this.DAYS_PER_ISLAMIC_YEAR/this.DAYS_PER_ISO_YEAR)+622,month:1,day:1}}}class km extends br{constructor(){super(...arguments),this.id="islamic"}}class Am extends br{constructor(){super(...arguments),this.id="islamic-umalqura"}}class Im extends br{constructor(){super(...arguments),this.id="islamic-tbla"}}class Pm extends br{constructor(){super(...arguments),this.id="islamic-civil"}}class Nm extends br{constructor(){super(...arguments),this.id="islamic-rgsa"}}class Lm extends br{constructor(){super(...arguments),this.id="islamicc"}}class jm extends zn{constructor(){super(...arguments),this.id="persian",this.calendarType="solar"}inLeapYear(e,n){return this.daysInMonth({year:e.year,month:12,day:1},n)===30}monthsInYear(){return 12}minimumMonthLength(e){const{month:n}=e;return n===12?29:n<=6?31:30}maximumMonthLength(e){const{month:n}=e;return n===12?30:n<=6?31:30}maxLengthOfMonthCodeInAnyYear(e){return Ln(e)<=6?31:30}estimateIsoDate(e){const{year:n}=this.adjustCalendarDate(e);return{year:n+621,month:1,day:1}}}class Ym extends zn{constructor(){super(...arguments),this.id="indian",this.calendarType="solar",this.months={1:{length:30,month:3,day:22,leap:{length:31,month:3,day:21}},2:{length:31,month:4,day:21},3:{length:31,month:5,day:22},4:{length:31,month:6,day:22},5:{length:31,month:7,day:23},6:{length:31,month:8,day:23},7:{length:30,month:9,day:23},8:{length:30,month:10,day:23},9:{length:30,month:11,day:22},10:{length:30,month:12,day:22},11:{length:30,month:1,nextYear:!0,day:21},12:{length:30,month:2,nextYear:!0,day:20}},this.vulnerableToBceBug=new Date("0000-01-01T00:00Z").toLocaleDateString("en-US-u-ca-indian",{timeZone:"UTC"})!=="10/11/-79 Saka"}inLeapYear(e){return La(e.year+78)}monthsInYear(){return 12}minimumMonthLength(e){return this.getMonthInfo(e).length}maximumMonthLength(e){return this.getMonthInfo(e).length}maxLengthOfMonthCodeInAnyYear(e){const n=Ln(e);let r=this.months[n];return r=r.leap??r,r.length}getMonthInfo(e){const{month:n}=e;let r=this.months[n];if(r===void 0)throw new RangeError(`Invalid month: ${n}`);return this.inLeapYear(e)&&r.leap&&(r=r.leap),r}estimateIsoDate(e){const n=this.adjustCalendarDate(e),r=this.getMonthInfo(n);return dt(n.year+78+(r.nextYear?1:0),r.month,r.day+n.day-1)}checkIcuBugs(e){if(this.vulnerableToBceBug&&e.year<1)throw new RangeError(`calendar '${this.id}' is broken for ISO dates before 0001-01-01 (see https://bugs.chromium.org/p/v8/issues/detail?id=10529)`)}}function La(t){return t%4==0&&(t%100!=0||t%400==0)}class Bl extends zn{constructor(e,n){super(),this.calendarType="solar",this.id=e,this.isoEpoch=n}inLeapYear(e){const{year:n}=this.estimateIsoDate({month:1,day:1,year:e.year});return La(n)}monthsInYear(){return 12}minimumMonthLength(e){const{month:n}=e;return n===2?this.inLeapYear(e)?29:28:[4,6,9,11].indexOf(n)>=0?30:31}maximumMonthLength(e){return this.minimumMonthLength(e)}maxLengthOfMonthCodeInAnyYear(e){return[31,29,31,30,31,30,31,31,30,31,30,31][Ln(e)-1]}estimateIsoDate(e){const n=this.adjustCalendarDate(e);return zr(n.year+this.isoEpoch.year,n.month+this.isoEpoch.month,n.day+this.isoEpoch.day,"constrain")}}class Zl extends zn{constructor(e,n){super(),this.hasEra=!0,this.calendarType="solar",this.id=e;const{eras:r,anchorEra:o}=(function(i){let a,s=i;if(s.length===0)throw new RangeError("Invalid era data: eras are required");if(s.length===1&&s[0].reverseOf)throw new RangeError("Invalid era data: anchor era cannot count years backwards");if(s.length===1&&!s[0].code)throw new RangeError("Invalid era data: at least one named era is required");if(s.filter((l=>l.reverseOf!=null)).length>1)throw new RangeError("Invalid era data: only one era can count years backwards");s.forEach((l=>{if(l.isAnchor||!l.anchorEpoch&&!l.reverseOf){if(a)throw new RangeError("Invalid era data: cannot have multiple anchor eras");a=l,l.anchorEpoch={year:l.hasYearZero?0:1}}else if(!l.code)throw new RangeError("If era name is blank, it must be the anchor era")})),s=s.filter((l=>l.code)),s.forEach((l=>{const{reverseOf:u}=l;if(u){const d=s.find((h=>h.code===u));if(d===void 0)throw new RangeError(`Invalid era data: unmatched reverseOf era: ${u}`);l.reverseOf=d,l.anchorEpoch=d.anchorEpoch,l.isoEpoch=d.isoEpoch}l.anchorEpoch.month===void 0&&(l.anchorEpoch.month=1),l.anchorEpoch.day===void 0&&(l.anchorEpoch.day=1)})),s.sort(((l,u)=>{if(l.reverseOf)return 1;if(u.reverseOf)return-1;if(!l.isoEpoch||!u.isoEpoch)throw new RangeError("Invalid era data: missing ISO epoch");return u.isoEpoch.year-l.isoEpoch.year}));const c=s[s.length-1].reverseOf;if(c&&c!==s[s.length-2])throw new RangeError("Invalid era data: invalid reverse-sign era");return s.forEach(((l,u)=>{l.genericName="era"+(s.length-1-u)})),{eras:s,anchorEra:a||s[0]}})(n);this.anchorEra=o,this.eras=r}inLeapYear(e){const{year:n}=this.estimateIsoDate({month:1,day:1,year:e.year});return La(n)}monthsInYear(){return 12}minimumMonthLength(e){const{month:n}=e;return n===2?this.inLeapYear(e)?29:28:[4,6,9,11].indexOf(n)>=0?30:31}maximumMonthLength(e){return this.minimumMonthLength(e)}maxLengthOfMonthCodeInAnyYear(e){return[31,29,31,30,31,30,31,31,30,31,30,31][Ln(e)-1]}completeEraYear(e){const n=(s,c,l)=>{const u=e[s];if(u!=null&&u!=c&&!(l||[]).includes(u)){const d=l?.[0];throw new RangeError(`Input ${s} ${u} doesn't match calculated value ${d?`${c} (also called ${d})`:c}`)}},r=s=>{let c;const l={...e,year:s},u=this.eras.find(((d,h)=>{if(h===this.eras.length-1){if(d.reverseOf){if(s>0)throw new RangeError(`Signed year ${s} is invalid for era ${d.code}`);return c=d.anchorEpoch.year-s,!0}return c=s-d.anchorEpoch.year+(d.hasYearZero?0:1),!0}return this.compareCalendarDates(l,d.anchorEpoch)>=0&&(c=s-d.anchorEpoch.year+(d.hasYearZero?0:1),!0)}));if(!u)throw new RangeError(`Year ${s} was not matched by any era`);return{eraYear:c,era:u.code,eraNames:u.names}};let{year:o,eraYear:i,era:a}=e;if(o!=null){const s=r(o);({eraYear:i,era:a}=s),n("era",a,s?.eraNames),n("eraYear",i)}else{if(i==null)throw new RangeError("Either year or eraYear and era are required");{if(a===void 0)throw new RangeError("era and eraYear must be provided together");const s=this.eras.find((({code:c,names:l=[]})=>c===a||l.includes(a)));if(!s)throw new RangeError(`Era ${a} (ISO year ${i}) was not matched by any era`);o=s.reverseOf?s.anchorEpoch.year-i:i+s.anchorEpoch.year-(s.hasYearZero?0:1),n("year",o),{eraYear:i,era:a}=r(o)}}return{...e,year:o,eraYear:i,era:a}}adjustCalendarDate(e,n,r="constrain"){let o=e;const{month:i,monthCode:a}=o;return i===void 0&&(o={...o,month:Ln(a)}),this.validateCalendarDate(o),o=this.completeEraYear(o),super.adjustCalendarDate(o,n,r)}estimateIsoDate(e){const n=this.adjustCalendarDate(e),{year:r,month:o,day:i}=n,{anchorEra:a}=this;return zr(r+a.isoEpoch.year-(a.hasYearZero?0:1),o,i,"constrain")}}class ja extends Zl{constructor(e,n){super(e,n)}isoToCalendarDate(e){const{year:n,month:r,day:o}=e,i=zt(r),a=n-this.anchorEra.isoEpoch.year+1;return this.completeEraYear({year:a,month:r,monthCode:i,day:o})}}const Nt={inLeapYear(t){const{year:e}=t;return(e+1)%4==0},monthsInYear:()=>13,minimumMonthLength(t){const{month:e}=t;return e===13?this.inLeapYear(t)?6:5:30},maximumMonthLength(t){return this.minimumMonthLength(t)},maxLengthOfMonthCodeInAnyYear:t=>t==="M13"?6:30};class zm extends Bl{constructor(e,n){super(e,n),this.inLeapYear=Nt.inLeapYear,this.monthsInYear=Nt.monthsInYear,this.minimumMonthLength=Nt.minimumMonthLength,this.maximumMonthLength=Nt.maximumMonthLength,this.maxLengthOfMonthCodeInAnyYear=Nt.maxLengthOfMonthCodeInAnyYear}}class Gl extends Zl{constructor(e,n){super(e,n),this.inLeapYear=Nt.inLeapYear,this.monthsInYear=Nt.monthsInYear,this.minimumMonthLength=Nt.minimumMonthLength,this.maximumMonthLength=Nt.maximumMonthLength,this.maxLengthOfMonthCodeInAnyYear=Nt.maxLengthOfMonthCodeInAnyYear}}class Um extends zm{constructor(){super("ethioaa",{year:-5492,month:7,day:17})}}class Fm extends Gl{constructor(){super("coptic",[{code:"coptic",isoEpoch:{year:284,month:8,day:29}},{code:"coptic-inverse",reverseOf:"coptic"}])}}class Vm extends Gl{constructor(){super("ethiopic",[{code:"ethioaa",names:["ethiopic-amete-alem","mundi"],isoEpoch:{year:-5492,month:7,day:17}},{code:"ethiopic",names:["incar"],isoEpoch:{year:8,month:8,day:27},anchorEpoch:{year:5501}}])}}class Wm extends ja{constructor(){super("roc",[{code:"roc",names:["minguo"],isoEpoch:{year:1912,month:1,day:1}},{code:"roc-inverse",names:["before-roc"],reverseOf:"roc"}])}}class qm extends Bl{constructor(){super("buddhist",{year:-543,month:1,day:1})}}class Hm extends ja{constructor(){super("gregory",[{code:"gregory",names:["ad","ce"],isoEpoch:{year:1,month:1,day:1}},{code:"gregory-inverse",names:["be","bce"],reverseOf:"gregory"}])}reviseIntlEra(e){let{era:n,eraYear:r}=e;return n==="b"&&(n="gregory-inverse"),n==="a"&&(n="gregory"),{era:n,eraYear:r}}getFirstDayOfWeek(){return 1}getMinimalDaysInFirstWeek(){return 1}}class Bm extends ja{constructor(){super("japanese",[{code:"reiwa",isoEpoch:{year:2019,month:5,day:1},anchorEpoch:{year:2019,month:5,day:1}},{code:"heisei",isoEpoch:{year:1989,month:1,day:8},anchorEpoch:{year:1989,month:1,day:8}},{code:"showa",isoEpoch:{year:1926,month:12,day:25},anchorEpoch:{year:1926,month:12,day:25}},{code:"taisho",isoEpoch:{year:1912,month:7,day:30},anchorEpoch:{year:1912,month:7,day:30}},{code:"meiji",isoEpoch:{year:1868,month:9,day:8},anchorEpoch:{year:1868,month:9,day:8}},{code:"japanese",names:["japanese","gregory","ad","ce"],isoEpoch:{year:1,month:1,day:1}},{code:"japanese-inverse",names:["japanese-inverse","gregory-inverse","bc","bce"],reverseOf:"japanese"}]),this.erasBeginMidYear=!0}reviseIntlEra(e,n){const{era:r,eraYear:o}=e,{year:i}=n;return this.eras.find((a=>a.code===r))?{era:r,eraYear:o}:i<1?{era:"japanese-inverse",eraYear:1-i}:{era:"japanese",eraYear:i}}}class Kl extends zn{constructor(){super(...arguments),this.calendarType="lunisolar"}inLeapYear(e,n){const r=this.getMonthList(e.year,n);return Object.entries(r).length===13}monthsInYear(e,n){return this.inLeapYear(e,n)?13:12}minimumMonthLength(){return 29}maximumMonthLength(){return 30}maxLengthOfMonthCodeInAnyYear(e){return["M01L","M09L","M10L","M11L","M12L"].includes(e)?29:30}monthDaySearchStartYear(e,n){const r={M01L:[1651,1651],M02L:[1947,1765],M03L:[1966,1955],M04L:[1963,1944],M05L:[1971,1952],M06L:[1960,1941],M07L:[1968,1938],M08L:[1957,1718],M09L:[1832,1832],M10L:[1870,1870],M11L:[1814,1814],M12L:[1890,1890]}[e]??[1972,1972];return n<30?r[0]:r[1]}getMonthList(e,n){if(e===void 0)throw new TypeError("Missing year");const r=JSON.stringify({func:"getMonthList",calendarYear:e,id:this.id}),o=n.get(r);if(o)return o;const i=this.getFormatter(),a=(v,w)=>{const D=Hl({isoYear:v,isoMonth:2,isoDay:1}),O=new Date(D);O.setUTCDate(w+1);const C=i.formatToParts(O),E=C.find((j=>j.type==="month")).value,S=+C.find((j=>j.type==="day")).value,P=C.find((j=>j.type==="relatedYear"));let z;if(P===void 0)throw new RangeError(`Intl.DateTimeFormat.formatToParts lacks relatedYear in ${this.id} calendar. Try Node 14+ or modern browsers.`);return z=+P.value,{calendarMonthString:E,calendarDay:S,calendarYearToVerify:z}};let s=17,{calendarMonthString:c,calendarDay:l,calendarYearToVerify:u}=a(e,s);c!=="1"&&(s+=29,{calendarMonthString:c,calendarDay:l}=a(e,s)),s-=l-5;const d={};let h,y,p=1,g=!1;do({calendarMonthString:c,calendarDay:l,calendarYearToVerify:u}=a(e,s)),h&&(d[y].daysInMonth=h+30-l),u!==e?g=!0:(d[c]={monthIndex:p++},s+=30),h=l,y=c;while(!g);return d[y].daysInMonth=h+30-l,n.set(r,d),d}estimateIsoDate(e){const{year:n,month:r}=e;return{year:n,month:r>=12?12:r+1,day:1}}adjustCalendarDate(e,n,r="constrain",o=!1){let{year:i,month:a,monthExtra:s,day:c,monthCode:l}=e;if(i===void 0)throw new TypeError("Missing property: year");if(o){if(s&&s!=="bis")throw new RangeError(`Unexpected leap month suffix: ${s}`);const u=zt(a,s!==void 0),d=`${a}${s||""}`,h=this.getMonthList(i,n)[d];if(h===void 0)throw new RangeError(`Unmatched month ${d} in Chinese year ${i}`);return a=h.monthIndex,{year:i,month:a,day:c,monthCode:u}}if(this.validateCalendarDate(e),a===void 0){const u=this.getMonthList(i,n);let d=l.replace(/^M|L$/g,(y=>y==="L"?"bis":""));d[0]==="0"&&(d=d.slice(1));let h=u[d];if(a=h&&h.monthIndex,a===void 0&&l.endsWith("L")&&l!="M13L"&&r==="constrain"){const y=+l.replace(/^M0?|L$/g,"");h=u[y],h&&(a=h.monthIndex,l=zt(y))}if(a===void 0)throw new RangeError(`Unmatched month ${l} in Chinese year ${i}`)}else if(l===void 0){const u=this.getMonthList(i,n),d=Object.entries(u),h=d.length;r==="reject"?(ke(a,1,h),ke(c,1,this.maximumMonthLength())):(a=et(a,1,h),c=et(c,1,this.maximumMonthLength()));const y=d.find((p=>p[1].monthIndex===a));if(y===void 0)throw new RangeError(`Invalid month ${a} in Chinese year ${i}`);l=zt(+y[0].replace("bis",""),y[0].indexOf("bis")!==-1)}else{const u=this.getMonthList(i,n);let d=l.replace(/^M|L$/g,(y=>y==="L"?"bis":""));d[0]==="0"&&(d=d.slice(1));const h=u[d];if(!h)throw new RangeError(`Unmatched monthCode ${l} in Chinese year ${i}`);if(a!==h.monthIndex)throw new RangeError(`monthCode ${l} doesn't correspond to month ${a} in Chinese year ${i}`)}return{...e,year:i,month:a,monthCode:l,day:c}}}class Zm extends Kl{constructor(){super(...arguments),this.id="chinese"}}class Gm extends Kl{constructor(){super(...arguments),this.id="dangi"}}class Km{constructor(e){this.helper=e}extraFields(e){return this.helper.hasEra&&e.includes("year")?["era","eraYear"]:[]}resolveFields(e){if(this.helper.calendarType!=="lunisolar"){const n=new Re;Na(e,void 0,this.helper.monthsInYear({year:e.year??1972},n))}}dateToISO(e,n){const r=new Re,o=this.helper.calendarToIsoDate(e,n,r);return r.setObject(o),o}monthDayToISOReferenceDate(e,n){const r=new Re,o=this.helper.monthDayFromFields(e,n,r);return r.setObject(o),o}fieldKeysToIgnore(e){const n=new Set;for(let r=0;r<e.length;r++){const o=e[r];switch(n.add(o),o){case"era":n.add("eraYear"),n.add("year");break;case"eraYear":n.add("era"),n.add("year");break;case"year":n.add("era"),n.add("eraYear");break;case"month":n.add("monthCode"),this.helper.erasBeginMidYear&&(n.add("era"),n.add("eraYear"));break;case"monthCode":n.add("month"),this.helper.erasBeginMidYear&&(n.add("era"),n.add("eraYear"));break;case"day":this.helper.erasBeginMidYear&&(n.add("era"),n.add("eraYear"))}}return Wl(n)}dateAdd(e,{years:n,months:r,weeks:o,days:i},a){const s=Re.getCacheForObject(e),c=this.helper.isoToCalendarDate(e,s),l=this.helper.addCalendar(c,{years:n,months:r,weeks:o,days:i},a,s),u=this.helper.calendarToIsoDate(l,"constrain",s);return Re.getCacheForObject(u)||new Re(s).setObject(u),u}dateUntil(e,n,r){const o=Re.getCacheForObject(e),i=Re.getCacheForObject(n),a=this.helper.isoToCalendarDate(e,o),s=this.helper.isoToCalendarDate(n,i);return this.helper.untilCalendar(a,s,r,o)}isoToDate(e,n){const r=Re.getCacheForObject(e),o=this.helper.isoToCalendarDate(e,r);if(n.dayOfWeek&&(o.dayOfWeek=go.iso8601.isoToDate(e,{dayOfWeek:!0}).dayOfWeek),n.dayOfYear){const i=this.helper.startOfCalendarYear(o),a=this.helper.calendarDaysUntil(i,o,r);o.dayOfYear=a+1}if(n.weekOfYear&&(o.weekOfYear=ql(this.helper.id,e)),o.daysInWeek=7,n.daysInMonth&&(o.daysInMonth=this.helper.daysInMonth(o,r)),n.daysInYear){const i=this.helper.startOfCalendarYear(o),a=this.helper.addCalendar(i,{years:1},"constrain",r);o.daysInYear=this.helper.calendarDaysUntil(i,a,r)}return n.monthsInYear&&(o.monthsInYear=this.helper.monthsInYear(o,r)),n.inLeapYear&&(o.inLeapYear=this.helper.inLeapYear(o,r)),o}getFirstDayOfWeek(){return this.helper.getFirstDayOfWeek()}getMinimalDaysInFirstWeek(){return this.helper.getMinimalDaysInFirstWeek()}}for(const t of[Rm,jm,Vm,Um,Fm,Zm,Gm,Wm,Ym,qm,Hm,Bm,km,Am,Im,Pm,Nm,Lm]){const e=new t;go[e.id]=new Km(e)}na("calendarImpl",(function(t){return go[t]}));const Qr=Intl.DateTimeFormat;function Zn(t,e){let n=m(t,e);return typeof n=="function"&&(n=new Qr(m(t,sl),n(m(t,Qi))),(function(r,o,i){const a=ui(r);if(a===void 0)throw new TypeError("Missing slots for the given container");if(a[o]===void 0)throw new TypeError(`tried to reset ${o} which was not set`);a[o]=i})(t,e,n)),n}function Dr(t){return ot(t,jn)}class Jr{constructor(e=void 0,n=void 0){(function(r,o,i){const a=i!==void 0;let s;if(a){const d=["localeMatcher","calendar","numberingSystem","hour12","hourCycle","timeZone","weekday","era","year","month","day","dayPeriod","hour","minute","second","fractionalSecondDigits","timeZoneName","formatMatcher","dateStyle","timeStyle"];s=(function(y){if(y==null)throw new TypeError(`Expected object not ${y}`);return Object(y)})(i);const h=Object.create(null);for(let y=0;y<d.length;y++){const p=d[y];Object.prototype.hasOwnProperty.call(s,p)&&(h[p]=s[p])}s=h}else s=Object.create(null);const c=new Qr(o,s),l=c.resolvedOptions();if(an(r),a){const d=Object.assign(Object.create(null),l);for(const h in d)Object.prototype.hasOwnProperty.call(s,h)||delete d[h];d.hour12=s.hour12,d.hourCycle=s.hourCycle,K(r,Qi,d)}else K(r,Qi,s);K(r,sl,l.locale),K(r,jn,c),K(r,Xn,l.timeZone),K(r,xr,l.calendar),K(r,tl,i0),K(r,nl,r0),K(r,rl,o0),K(r,ol,n0),K(r,il,a0),K(r,al,s0);const u=a?s.timeZone:void 0;if(u===void 0)K(r,Xi,l.timeZone);else{const d=mi(u);if(d.startsWith("−"))throw new RangeError("Unicode minus (U+2212) is not supported in time zone offsets");K(r,Xi,nt(d))}})(this,e,n)}get format(){_(this,Dr);const e=Qm.bind(this);return Object.defineProperties(e,{length:{value:1,enumerable:!1,writable:!1,configurable:!0},name:{value:"",enumerable:!1,writable:!1,configurable:!0}}),e}formatRange(e,n){return _(this,Dr),e0.call(this,e,n)}formatToParts(e,...n){return _(this,Dr),Jm.call(this,e,...n)}formatRangeToParts(e,n){return _(this,Dr),t0.call(this,e,n)}resolvedOptions(){return _(this,Dr),Xm.call(this)}}"formatToParts"in Qr.prototype||delete Jr.prototype.formatToParts,"formatRangeToParts"in Qr.prototype||delete Jr.prototype.formatRangeToParts;const Dt=function(t=void 0,e=void 0){return new Jr(t,e)};function Xm(){const t=m(this,jn).resolvedOptions();return t.timeZone=m(this,Xi),t}function Qm(t,...e){let n,r,o=dr(t,this);return o.formatter?(n=o.formatter,r=[Mt(o.epochNs,"floor")]):(n=m(this,jn),r=[t,...e]),n.format(...r)}function Jm(t,...e){let n,r,o=dr(t,this);return o.formatter?(n=o.formatter,r=[Mt(o.epochNs,"floor")]):(n=m(this,jn),r=[t,...e]),n.formatToParts(...r)}function e0(t,e){if(t===void 0||e===void 0)throw new TypeError("Intl.DateTimeFormat.formatRange requires two values");const n=Ko(t),r=Ko(e);let o,i=[n,r];if(nn(n)!==nn(r))throw new TypeError("Intl.DateTimeFormat.formatRange accepts two values of the same type");if(nn(n)){if(!Xl(n,r))throw new TypeError("Intl.DateTimeFormat.formatRange accepts two values of the same type");const{epochNs:a,formatter:s}=dr(n,this),{epochNs:c,formatter:l}=dr(r,this);s&&(o=s,i=[Mt(a,"floor"),Mt(c,"floor")])}return o||(o=m(this,jn)),o.formatRange(...i)}function t0(t,e){if(t===void 0||e===void 0)throw new TypeError("Intl.DateTimeFormat.formatRange requires two values");const n=Ko(t),r=Ko(e);let o,i=[n,r];if(nn(n)!==nn(r))throw new TypeError("Intl.DateTimeFormat.formatRangeToParts accepts two values of the same type");if(nn(n)){if(!Xl(n,r))throw new TypeError("Intl.DateTimeFormat.formatRangeToParts accepts two values of the same type");const{epochNs:a,formatter:s}=dr(n,this),{epochNs:c,formatter:l}=dr(r,this);s&&(o=s,i=[Mt(a,"floor"),Mt(c,"floor")])}return o||(o=m(this,jn)),o.formatRangeToParts(...i)}function yo(t={},e={}){const n=Object.assign({},t),r=["year","month","day","hour","minute","second","weekday","dayPeriod","timeZoneName","dateStyle","timeStyle"];for(let o=0;o<r.length;o++){const i=r[o];n[i]=i in e?e[i]:n[i],n[i]!==!1&&n[i]!==void 0||delete n[i]}return n}function n0(t){const e=yo(t,{year:!1,month:!1,day:!1,weekday:!1,timeZoneName:!1,dateStyle:!1});if(e.timeStyle!=="long"&&e.timeStyle!=="full"||(delete e.timeStyle,Object.assign(e,{hour:"numeric",minute:"2-digit",second:"2-digit"})),!Ti(e)){if(po(t))throw new TypeError(`cannot format Temporal.PlainTime with options [${Object.keys(t)}]`);Object.assign(e,{hour:"numeric",minute:"numeric",second:"numeric"})}return e}function r0(t){const e={short:{year:"2-digit",month:"numeric"},medium:{year:"numeric",month:"short"},long:{year:"numeric",month:"long"},full:{year:"numeric",month:"long"}},n=yo(t,{day:!1,hour:!1,minute:!1,second:!1,weekday:!1,dayPeriod:!1,timeZoneName:!1,timeStyle:!1});if("dateStyle"in n&&n.dateStyle){const r=n.dateStyle;delete n.dateStyle,Object.assign(n,e[r])}if(!("year"in n||"month"in n||"era"in n)){if(po(t))throw new TypeError(`cannot format PlainYearMonth with options [${Object.keys(t)}]`);Object.assign(n,{year:"numeric",month:"numeric"})}return n}function o0(t){const e={short:{month:"numeric",day:"numeric"},medium:{month:"short",day:"numeric"},long:{month:"long",day:"numeric"},full:{month:"long",day:"numeric"}},n=yo(t,{year:!1,hour:!1,minute:!1,second:!1,weekday:!1,dayPeriod:!1,timeZoneName:!1,timeStyle:!1});if("dateStyle"in n&&n.dateStyle){const r=n.dateStyle;delete n.dateStyle,Object.assign(n,e[r])}if(!("month"in n)&&!("day"in n)){if(po(t))throw new TypeError(`cannot format PlainMonthDay with options [${Object.keys(t)}]`);Object.assign(n,{month:"numeric",day:"numeric"})}return n}function i0(t){const e=yo(t,{hour:!1,minute:!1,second:!1,dayPeriod:!1,timeZoneName:!1,timeStyle:!1});if(!_i(e)){if(po(t))throw new TypeError(`cannot format PlainDate with options [${Object.keys(t)}]`);Object.assign(e,{year:"numeric",month:"numeric",day:"numeric"})}return e}function a0(t){const e=yo(t,{timeZoneName:!1});if((e.timeStyle==="long"||e.timeStyle==="full")&&(delete e.timeStyle,Object.assign(e,{hour:"numeric",minute:"2-digit",second:"2-digit"}),e.dateStyle)&&(Object.assign(e,{short:{year:"numeric",month:"numeric",day:"numeric"},medium:{year:"numeric",month:"short",day:"numeric"},long:{year:"numeric",month:"long",day:"numeric"},full:{year:"numeric",month:"long",day:"numeric",weekday:"long"}}[e.dateStyle]),delete e.dateStyle),!Ti(e)&&!_i(e)){if(po(t))throw new TypeError(`cannot format PlainDateTime with options [${Object.keys(t)}]`);Object.assign(e,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})}return e}function s0(t){let e=t;return Ti(e)||_i(e)||(e=Object.assign({},e,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})),e}function _i(t){return"year"in t||"month"in t||"day"in t||"weekday"in t||"dateStyle"in t||"era"in t}function Ti(t){return"hour"in t||"minute"in t||"second"in t||"timeStyle"in t||"dayPeriod"in t||"fractionalSecondDigits"in t}function po(t){return _i(t)||Ti(t)||"dateStyle"in t||"timeStyle"in t||"timeZoneName"in t}function nn(t){return _e(t)||Se(t)||ye(t)||X(t)||Ne(t)||mt(t)||Pe(t)}function Ko(t){return nn(t)?t:hi(t)}function Xl(t,e){return!(!nn(t)||!nn(e)||Se(t)&&!Se(e)||_e(t)&&!_e(e)||ye(t)&&!ye(e)||X(t)&&!X(e)||Ne(t)&&!Ne(e)||mt(t)&&!mt(e)||Pe(t)&&!Pe(e))}function dr(t,e){if(Se(t)){const n={isoDate:{year:1970,month:1,day:1},time:m(t,Te)};return{epochNs:Ue(m(e,Xn),n,"compatible"),formatter:Zn(e,ol)}}if(Ne(t)){const n=m(t,M),r=m(e,xr);if(n!==r)throw new RangeError(`cannot format PlainYearMonth with calendar ${n} in locale with calendar ${r}`);const o=ie(m(t,F),{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});return{epochNs:Ue(m(e,Xn),o,"compatible"),formatter:Zn(e,nl)}}if(mt(t)){const n=m(t,M),r=m(e,xr);if(n!==r)throw new RangeError(`cannot format PlainMonthDay with calendar ${n} in locale with calendar ${r}`);const o=ie(m(t,F),{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});return{epochNs:Ue(m(e,Xn),o,"compatible"),formatter:Zn(e,rl)}}if(_e(t)){const n=m(t,M),r=m(e,xr);if(n!=="iso8601"&&n!==r)throw new RangeError(`cannot format PlainDate with calendar ${n} in locale with calendar ${r}`);const o=ie(m(t,F),{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});return{epochNs:Ue(m(e,Xn),o,"compatible"),formatter:Zn(e,tl)}}if(ye(t)){const n=m(t,M),r=m(e,xr);if(n!=="iso8601"&&n!==r)throw new RangeError(`cannot format PlainDateTime with calendar ${n} in locale with calendar ${r}`);const o=m(t,be);return{epochNs:Ue(m(e,Xn),o,"compatible"),formatter:Zn(e,il)}}if(X(t))throw new TypeError("Temporal.ZonedDateTime not supported in DateTimeFormat methods. Use toLocaleString() instead.");return Pe(t)?{epochNs:m(t,U),formatter:Zn(e,al)}:{}}function Ql(t){const e=Object.create(null);return e.years=m(t,He),e.months=m(t,Be),e.weeks=m(t,st),e.days=m(t,Ze),e.hours=m(t,Ge),e.minutes=m(t,Ke),e.seconds=m(t,Xe),e.milliseconds=m(t,Qe),e.microseconds=m(t,Je),e.nanoseconds=m(t,ct),e}Jr.prototype.constructor=Dt,Object.defineProperty(Dt,"prototype",{value:Jr.prototype,writable:!1,enumerable:!1,configurable:!1}),Dt.supportedLocalesOf=Qr.supportedLocalesOf,sn(Dt,"Intl.DateTimeFormat");const{format:c0,formatToParts:l0}=Intl.DurationFormat?.prototype??Object.create(null);function Jl(t){Intl.DurationFormat.prototype.resolvedOptions.call(this);const e=Ql(Ot(t));return c0.call(this,e)}Intl.DurationFormat?.prototype&&(Intl.DurationFormat.prototype.format=Jl,Intl.DurationFormat.prototype.formatToParts=function(t){Intl.DurationFormat.prototype.resolvedOptions.call(this);const e=Ql(Ot(t));return l0.call(this,e)});class Ya{constructor(e){if(arguments.length<1)throw new TypeError("missing argument: epochNanoseconds is required");Ol(this,Go(e))}get epochMilliseconds(){return _(this,Pe),Mt(m(this,U),"floor")}get epochNanoseconds(){return _(this,Pe),Fl(f.BigInt(m(this,U)))}add(e){return _(this,Pe),pc("add",this,e)}subtract(e){return _(this,Pe),pc("subtract",this,e)}until(e,n=void 0){return _(this,Pe),uc("until",this,e,n)}since(e,n=void 0){return _(this,Pe),uc("since",this,e,n)}round(e){if(_(this,Pe),e===void 0)throw new TypeError("options parameter is required");const n=typeof e=="string"?Nn("smallestUnit",e):N(e),r=mr(n),o=kt(n,"halfExpand"),i=ut(n,"smallestUnit","time",on);return gr(r,{hour:24,minute:1440,second:86400,millisecond:864e5,microsecond:864e8,nanosecond:864e11}[i],!0),Lt(fa(m(this,U),r,i,o))}equals(e){_(this,Pe);const n=kr(e),r=m(this,U),o=m(n,U);return f.equal(f.BigInt(r),f.BigInt(o))}toString(e=void 0){_(this,Pe);const n=N(e),r=ao(n),o=kt(n,"trunc"),i=ut(n,"smallestUnit","time",void 0);if(i==="hour")throw new RangeError('smallestUnit must be a time unit other than "hour"');let a=n.timeZone;a!==void 0&&(a=nt(a));const{precision:s,unit:c,increment:l}=so(i,r);return tc(Lt(fa(m(this,U),l,c,o)),a,s)}toJSON(){return _(this,Pe),tc(this,void 0,"auto")}toLocaleString(e=void 0,n=void 0){return _(this,Pe),new Dt(e,n).format(this)}valueOf(){_n("Instant")}toZonedDateTimeISO(e){_(this,Pe);const n=nt(e);return Ye(m(this,U),n,"iso8601")}static fromEpochMilliseconds(e){return Lt(Yt(hi(e)))}static fromEpochNanoseconds(e){return Lt(Go(e))}static from(e){return kr(e)}static compare(e,n){const r=kr(e),o=kr(n),i=m(r,U),a=m(o,U);return f.lessThan(i,a)?-1:f.greaterThan(i,a)?1:0}}sn(Ya,"Temporal.Instant");class za{constructor(e,n,r,o="iso8601"){const i=V(e),a=V(n),s=V(r),c=it(o===void 0?"iso8601":$e(o));An(i,a,s),El(this,{year:i,month:a,day:s},c)}get calendarId(){return _(this,_e),m(this,M)}get era(){return Ve(this,"era")}get eraYear(){return Ve(this,"eraYear")}get year(){return Ve(this,"year")}get month(){return Ve(this,"month")}get monthCode(){return Ve(this,"monthCode")}get day(){return Ve(this,"day")}get dayOfWeek(){return Ve(this,"dayOfWeek")}get dayOfYear(){return Ve(this,"dayOfYear")}get weekOfYear(){return Ve(this,"weekOfYear")?.week}get yearOfWeek(){return Ve(this,"weekOfYear")?.year}get daysInWeek(){return Ve(this,"daysInWeek")}get daysInMonth(){return Ve(this,"daysInMonth")}get daysInYear(){return Ve(this,"daysInYear")}get monthsInYear(){return Ve(this,"monthsInYear")}get inLeapYear(){return Ve(this,"inLeapYear")}with(e,n=void 0){if(_(this,_e),!Ce(e))throw new TypeError("invalid argument");hr(e);const r=m(this,M);let o=rt(r,m(this,F));return o=kn(r,o,wt(r,e,["year","month","monthCode","day"],[],"partial")),tt(vn(r,o,re(N(n))),r)}withCalendar(e){_(this,_e);const n=fo(e);return tt(m(this,F),n)}add(e,n=void 0){return _(this,_e),bc("add",this,e,n)}subtract(e,n=void 0){return _(this,_e),bc("subtract",this,e,n)}until(e,n=void 0){return _(this,_e),dc("until",this,e,n)}since(e,n=void 0){return _(this,_e),dc("since",this,e,n)}equals(e){_(this,_e);const n=$r(e);return Vt(m(this,F),m(n,F))===0&&Ut(m(this,M),m(n,M))}toString(e=void 0){return _(this,_e),nc(this,io(N(e)))}toJSON(){return _(this,_e),nc(this)}toLocaleString(e=void 0,n=void 0){return _(this,_e),new Dt(e,n).format(this)}valueOf(){_n("PlainDate")}toPlainDateTime(e=void 0){_(this,_e);const n=wl(e);return Tt(ie(m(this,F),n),m(this,M))}toZonedDateTime(e){let n,r;if(_(this,_e),Ce(e)){const a=e.timeZone;a===void 0?n=nt(e):(n=nt(a),r=e.plainTime)}else n=nt(e);const o=m(this,F);let i;return r===void 0?i=ln(n,o):(r=fn(r),i=Ue(n,ie(o,m(r,Te)),"compatible")),Ye(i,n,m(this,M))}toPlainYearMonth(){_(this,_e);const e=m(this,M);return nr(Br(e,rt(e,m(this,F)),"constrain"),e)}toPlainMonthDay(){_(this,_e);const e=m(this,M);return er(Wo(e,rt(e,m(this,F)),"constrain"),e)}static from(e,n=void 0){return $r(e,n)}static compare(e,n){const r=$r(e),o=$r(n);return Vt(m(r,F),m(o,F))}}function Ve(t,e){_(t,_e);const n=m(t,F);return co(t).isoToDate(n,{[e]:!0})[e]}sn(za,"Temporal.PlainDate");class Ua{constructor(e,n,r,o=0,i=0,a=0,s=0,c=0,l=0,u="iso8601"){const d=V(e),h=V(n),y=V(r),p=o===void 0?0:V(o),g=i===void 0?0:V(i),v=a===void 0?0:V(a),w=s===void 0?0:V(s),D=c===void 0?0:V(c),O=l===void 0?0:V(l),C=it(u===void 0?"iso8601":$e(u));ka(d,h,y,p,g,v,w,D,O),_l(this,{isoDate:{year:d,month:h,day:y},time:{hour:p,minute:g,second:v,millisecond:w,microsecond:D,nanosecond:O}},C)}get calendarId(){return _(this,ye),m(this,M)}get year(){return We(this,"year")}get month(){return We(this,"month")}get monthCode(){return We(this,"monthCode")}get day(){return We(this,"day")}get hour(){return Gn(this,"hour")}get minute(){return Gn(this,"minute")}get second(){return Gn(this,"second")}get millisecond(){return Gn(this,"millisecond")}get microsecond(){return Gn(this,"microsecond")}get nanosecond(){return Gn(this,"nanosecond")}get era(){return We(this,"era")}get eraYear(){return We(this,"eraYear")}get dayOfWeek(){return We(this,"dayOfWeek")}get dayOfYear(){return We(this,"dayOfYear")}get weekOfYear(){return We(this,"weekOfYear")?.week}get yearOfWeek(){return We(this,"weekOfYear")?.year}get daysInWeek(){return We(this,"daysInWeek")}get daysInYear(){return We(this,"daysInYear")}get daysInMonth(){return We(this,"daysInMonth")}get monthsInYear(){return We(this,"monthsInYear")}get inLeapYear(){return We(this,"inLeapYear")}with(e,n=void 0){if(_(this,ye),!Ce(e))throw new TypeError("invalid argument");hr(e);const r=m(this,M),o=m(this,be);let i={...rt(r,o.isoDate),...o.time};return i=kn(r,i,wt(r,e,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond"],"partial")),Tt(lo(r,i,re(N(n))),r)}withPlainTime(e=void 0){_(this,ye);const n=wl(e);return Tt(ie(m(this,be).isoDate,n),m(this,M))}withCalendar(e){_(this,ye);const n=fo(e);return Tt(m(this,be),n)}add(e,n=void 0){return _(this,ye),vc("add",this,e,n)}subtract(e,n=void 0){return _(this,ye),vc("subtract",this,e,n)}until(e,n=void 0){return _(this,ye),fc("until",this,e,n)}since(e,n=void 0){return _(this,ye),fc("since",this,e,n)}round(e){if(_(this,ye),e===void 0)throw new TypeError("options parameter is required");const n=typeof e=="string"?Nn("smallestUnit",e):N(e),r=mr(n),o=kt(n,"halfExpand"),i=ut(n,"smallestUnit","time",on,["day"]),a={day:1,hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[i];gr(r,a,a===1);const s=m(this,be);return Tt(r===1&&i==="nanosecond"?s:ha(s,r,i,o),m(this,M))}equals(e){_(this,ye);const n=Rr(e);return ur(m(this,be),m(n,be))===0&&Ut(m(this,M),m(n,M))}toString(e=void 0){_(this,ye);const n=N(e),r=io(n),o=ao(n),i=kt(n,"trunc"),a=ut(n,"smallestUnit","time",void 0);if(a==="hour")throw new RangeError('smallestUnit must be a time unit other than "hour"');const{precision:s,unit:c,increment:l}=so(a,o),u=ha(m(this,be),l,c,i);return In(u),Gr(u,m(this,M),s,r)}toJSON(){return _(this,ye),Gr(m(this,be),m(this,M),"auto")}toLocaleString(e=void 0,n=void 0){return _(this,ye),new Dt(e,n).format(this)}valueOf(){_n("PlainDateTime")}toZonedDateTime(e,n=void 0){_(this,ye);const r=nt(e),o=Ur(N(n));return Ye(Ue(r,m(this,be),o),r,m(this,M))}toPlainDate(){return _(this,ye),tt(m(this,be).isoDate,m(this,M))}toPlainTime(){return _(this,ye),Xt(m(this,be).time)}static from(e,n=void 0){return Rr(e,n)}static compare(e,n){const r=Rr(e),o=Rr(n);return ur(m(r,be),m(o,be))}}function We(t,e){_(t,ye);const n=m(t,be).isoDate;return co(t).isoToDate(n,{[e]:!0})[e]}function Gn(t,e){return _(t,ye),m(t,be).time[e]}sn(Ua,"Temporal.PlainDateTime");class fr{constructor(e=0,n=0,r=0,o=0,i=0,a=0,s=0,c=0,l=0,u=0){const d=e===void 0?0:Rt(e),h=n===void 0?0:Rt(n),y=r===void 0?0:Rt(r),p=o===void 0?0:Rt(o),g=i===void 0?0:Rt(i),v=a===void 0?0:Rt(a),w=s===void 0?0:Rt(s),D=c===void 0?0:Rt(c),O=l===void 0?0:Rt(l),C=u===void 0?0:Rt(u);wi(d,h,y,p,g,v,w,D,O,C),an(this),K(this,He,d),K(this,Be,h),K(this,st,y),K(this,Ze,p),K(this,Ge,g),K(this,Ke,v),K(this,Xe,w),K(this,Qe,D),K(this,Je,O),K(this,ct,C)}get years(){return _(this,Ee),m(this,He)}get months(){return _(this,Ee),m(this,Be)}get weeks(){return _(this,Ee),m(this,st)}get days(){return _(this,Ee),m(this,Ze)}get hours(){return _(this,Ee),m(this,Ge)}get minutes(){return _(this,Ee),m(this,Ke)}get seconds(){return _(this,Ee),m(this,Xe)}get milliseconds(){return _(this,Ee),m(this,Qe)}get microseconds(){return _(this,Ee),m(this,Je)}get nanoseconds(){return _(this,Ee),m(this,ct)}get sign(){return _(this,Ee),Bo(this)}get blank(){return _(this,Ee),Bo(this)===0}with(e){_(this,Ee);const n=vl(e),{years:r=m(this,He),months:o=m(this,Be),weeks:i=m(this,st),days:a=m(this,Ze),hours:s=m(this,Ge),minutes:c=m(this,Ke),seconds:l=m(this,Xe),milliseconds:u=m(this,Qe),microseconds:d=m(this,Je),nanoseconds:h=m(this,ct)}=n;return new fr(r,o,i,a,s,c,l,u,d,h)}negated(){return _(this,Ee),ft(this)}abs(){return _(this,Ee),new fr(Math.abs(m(this,He)),Math.abs(m(this,Be)),Math.abs(m(this,st)),Math.abs(m(this,Ze)),Math.abs(m(this,Ge)),Math.abs(m(this,Ke)),Math.abs(m(this,Xe)),Math.abs(m(this,Qe)),Math.abs(m(this,Je)),Math.abs(m(this,ct)))}add(e){return _(this,Ee),yc("add",this,e)}subtract(e){return _(this,Ee),yc("subtract",this,e)}round(e){if(_(this,Ee),e===void 0)throw new TypeError("options parameter is required");const n=Gt(this),r=typeof e=="string"?Nn("smallestUnit",e):N(e);let o=ut(r,"largestUnit","datetime",void 0,["auto"]),{plainRelativeTo:i,zonedRelativeTo:a}=Wi(r);const s=mr(r),c=kt(r,"halfExpand");let l=ut(r,"smallestUnit","datetime",void 0),u=!0;l||(u=!1,l="nanosecond");const d=Jt(n,l);let h=!0;if(o||(h=!1,o=d),o==="auto"&&(o=d),!u&&!h)throw new RangeError("at least one of smallestUnit or largestUnit is required");if(Jt(o,l)!==o)throw new RangeError(`largestUnit ${o} cannot be smaller than smallestUnit ${l}`);const y={hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[l];if(y!==void 0&&gr(s,y,!1),s>1&&Kt(l)==="date"&&o!==l)throw new RangeError("For calendar units with roundingIncrement > 1, use largestUnit = smallestUnit");if(a){let g=Qn(this);const v=m(a,ce),w=m(a,M),D=m(a,U);return g=Ul(D,Pr(D,v,w,g),v,w,o,s,l,c),Kt(o)==="date"&&(o="hour"),Ct(g,o)}if(i){let g=jt(this);const v=lr({hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0},g.time),w=m(i,F),D=m(i,M),O=bt(D,w,ze(g.date,v.deltaDays),"constrain");return g=zl(ie(w,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),ie(O,v),D,o,s,l,c),Ct(g,o)}if(Pt(n))throw new RangeError(`a starting point is required for ${n}s balancing`);if(Pt(o))throw new RangeError(`a starting point is required for ${o}s balancing`);let p=jt(this);if(l==="day"){const{quotient:g,remainder:v}=p.time.divmod(Uo);let w=p.date.days+g+Fr(v,"day");w=hn(w,s,c),p=en({years:0,months:0,weeks:0,days:w},Q.ZERO)}else p=en({years:0,months:0,weeks:0,days:0},Zo(p.time,s,l,c));return Ct(p,o)}total(e){if(_(this,Ee),e===void 0)throw new TypeError("options argument is required");const n=typeof e=="string"?Nn("unit",e):N(e);let{plainRelativeTo:r,zonedRelativeTo:o}=Wi(n);const i=ut(n,"unit","datetime",on);if(o){const s=Qn(this),c=m(o,ce),l=m(o,M),u=m(o,U);return(function(d,h,y,p,g){return Kt(g)==="time"?Fr(Q.fromEpochNsDiff(h,d),g):lc(jl(d,h,y,p,g),h,St(y,d),y,p,g)})(u,Pr(u,c,l,s),c,l,i)}if(r){const s=jt(this);let c=lr({hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0},s.time);const l=m(r,F),u=m(r,M),d=bt(u,l,ze(s.date,c.deltaDays),"constrain");return(function(h,y,p,g){if(ur(h,y)==0)return 0;In(h),In(y);const v=Ll(h,y,p,g);return g==="nanosecond"?f.toNumber(v.time.totalNs):lc(v,Le(y),h,null,p,g)})(ie(l,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),ie(d,c),u,i)}const a=Gt(this);if(Pt(a))throw new RangeError(`a starting point is required for ${a}s total`);if(Pt(i))throw new RangeError(`a starting point is required for ${i}s total`);return Fr(jt(this).time,i)}toString(e=void 0){_(this,Ee);const n=N(e),r=ao(n),o=kt(n,"trunc"),i=ut(n,"smallestUnit","time",void 0);if(i==="hour"||i==="minute")throw new RangeError('smallestUnit must be a time unit other than "hours" or "minutes"');const{precision:a,unit:s,increment:c}=so(i,r);if(s==="nanosecond"&&c===1)return Mo(this,a);const l=Gt(this);let u=Qn(this);const d=Zo(u.time,c,s,o);return u=en(u.date,d),Mo(Ct(u,Jt(l,"second")),a)}toJSON(){return _(this,Ee),Mo(this,"auto")}toLocaleString(e=void 0,n=void 0){if(_(this,Ee),typeof Intl.DurationFormat=="function"){const r=new Intl.DurationFormat(e,n);return Jl.call(r,this)}return console.warn("Temporal.Duration.prototype.toLocaleString() requires Intl.DurationFormat."),Mo(this,"auto")}valueOf(){_n("Duration")}static from(e){return Ot(e)}static compare(e,n,r=void 0){const o=Ot(e),i=Ot(n),a=N(r),{plainRelativeTo:s,zonedRelativeTo:c}=Wi(a);if(m(o,He)===m(i,He)&&m(o,Be)===m(i,Be)&&m(o,st)===m(i,st)&&m(o,Ze)===m(i,Ze)&&m(o,Ge)===m(i,Ge)&&m(o,Ke)===m(i,Ke)&&m(o,Xe)===m(i,Xe)&&m(o,Qe)===m(i,Qe)&&m(o,Je)===m(i,Je)&&m(o,ct)===m(i,ct))return 0;const l=Gt(o),u=Gt(i),d=Qn(o),h=Qn(i);if(c&&(Kt(l)==="date"||Kt(u)==="date")){const w=m(c,ce),D=m(c,M),O=m(c,U),C=Pr(O,w,D,d),E=Pr(O,w,D,h);return lt(f.toNumber(f.subtract(C,E)))}let y=d.date.days,p=h.date.days;if(Pt(l)||Pt(u)){if(!s)throw new RangeError("A starting point is required for years, months, or weeks comparison");y=cc(d.date,s),p=cc(h.date,s)}const g=d.time.add24HourDays(y),v=h.time.add24HourDays(p);return g.cmp(v)}}sn(fr,"Temporal.Duration");class Fa{constructor(e,n,r="iso8601",o=1972){const i=V(e),a=V(n),s=it(r===void 0?"iso8601":$e(r)),c=V(o);An(c,i,a),Tl(this,{year:c,month:i,day:a},s)}get monthCode(){return Cc(this,"monthCode")}get day(){return Cc(this,"day")}get calendarId(){return _(this,mt),m(this,M)}with(e,n=void 0){if(_(this,mt),!Ce(e))throw new TypeError("invalid argument");hr(e);const r=m(this,M);let o=rt(r,m(this,F),"month-day");return o=kn(r,o,wt(r,e,["year","month","monthCode","day"],[],"partial")),er(Wo(r,o,re(N(n))),r)}equals(e){_(this,mt);const n=Js(e);return Vt(m(this,F),m(n,F))===0&&Ut(m(this,M),m(n,M))}toString(e=void 0){return _(this,mt),oc(this,io(N(e)))}toJSON(){return _(this,mt),oc(this)}toLocaleString(e=void 0,n=void 0){return _(this,mt),new Dt(e,n).format(this)}valueOf(){_n("PlainMonthDay")}toPlainDate(e){if(_(this,mt),!Ce(e))throw new TypeError("argument should be an object");const n=m(this,M);return tt(vn(n,kn(n,rt(n,m(this,F),"month-day"),wt(n,e,["year"],[],[])),"constrain"),n)}static from(e,n=void 0){return Js(e,n)}}function Cc(t,e){_(t,mt);const n=m(t,F);return co(t).isoToDate(n,{[e]:!0})[e]}function Hi(t){return St(t,ya())}sn(Fa,"Temporal.PlainMonthDay");const eu={instant:()=>Lt(ya()),plainDateTimeISO:(t=Cr())=>Tt(Hi(nt(t)),"iso8601"),plainDateISO:(t=Cr())=>tt(Hi(nt(t)).isoDate,"iso8601"),plainTimeISO:(t=Cr())=>Xt(Hi(nt(t)).time),timeZoneId:()=>Cr(),zonedDateTimeISO:(t=Cr())=>{const e=nt(t);return Ye(ya(),e,"iso8601")},[Symbol.toStringTag]:"Temporal.Now"};Object.defineProperty(eu,Symbol.toStringTag,{value:"Temporal.Now",writable:!1,enumerable:!1,configurable:!0});class bo{constructor(e=0,n=0,r=0,o=0,i=0,a=0){const s=e===void 0?0:V(e),c=n===void 0?0:V(n),l=r===void 0?0:V(r),u=o===void 0?0:V(o),d=i===void 0?0:V(i),h=a===void 0?0:V(a);vi(s,c,l,u,d,h),Cl(this,{hour:s,minute:c,second:l,millisecond:u,microsecond:d,nanosecond:h})}get hour(){return _(this,Se),m(this,Te).hour}get minute(){return _(this,Se),m(this,Te).minute}get second(){return _(this,Se),m(this,Te).second}get millisecond(){return _(this,Se),m(this,Te).millisecond}get microsecond(){return _(this,Se),m(this,Te).microsecond}get nanosecond(){return _(this,Se),m(this,Te).nanosecond}with(e,n=void 0){if(_(this,Se),!Ce(e))throw new TypeError("invalid argument");hr(e);const r=aa(e,"partial"),o=aa(this);let{hour:i,minute:a,second:s,millisecond:c,microsecond:l,nanosecond:u}=Object.assign(o,r);const d=re(N(n));return{hour:i,minute:a,second:s,millisecond:c,microsecond:l,nanosecond:u}=yi(i,a,s,c,l,u,d),new bo(i,a,s,c,l,u)}add(e){return _(this,Se),wc("add",this,e)}subtract(e){return _(this,Se),wc("subtract",this,e)}until(e,n=void 0){return _(this,Se),hc("until",this,e,n)}since(e,n=void 0){return _(this,Se),hc("since",this,e,n)}round(e){if(_(this,Se),e===void 0)throw new TypeError("options parameter is required");const n=typeof e=="string"?Nn("smallestUnit",e):N(e),r=mr(n),o=kt(n,"halfExpand"),i=ut(n,"smallestUnit","time",on);return gr(r,{hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[i],!1),Xt(ma(m(this,Te),r,i,o))}equals(e){_(this,Se);const n=fn(e);return ga(m(this,Te),m(n,Te))===0}toString(e=void 0){_(this,Se);const n=N(e),r=ao(n),o=kt(n,"trunc"),i=ut(n,"smallestUnit","time",void 0);if(i==="hour")throw new RangeError('smallestUnit must be a time unit other than "hour"');const{precision:a,unit:s,increment:c}=so(i,r);return rc(ma(m(this,Te),c,s,o),a)}toJSON(){return _(this,Se),rc(m(this,Te),"auto")}toLocaleString(e=void 0,n=void 0){return _(this,Se),new Dt(e,n).format(this)}valueOf(){_n("PlainTime")}static from(e,n=void 0){return fn(e,n)}static compare(e,n){const r=fn(e),o=fn(n);return ga(m(r,Te),m(o,Te))}}sn(bo,"Temporal.PlainTime");class Va{constructor(e,n,r="iso8601",o=1){const i=V(e),a=V(n),s=it(r===void 0?"iso8601":$e(r)),c=V(o);An(i,a,c),Dl(this,{year:i,month:a,day:c},s)}get year(){return Ht(this,"year")}get month(){return Ht(this,"month")}get monthCode(){return Ht(this,"monthCode")}get calendarId(){return _(this,Ne),m(this,M)}get era(){return Ht(this,"era")}get eraYear(){return Ht(this,"eraYear")}get daysInMonth(){return Ht(this,"daysInMonth")}get daysInYear(){return Ht(this,"daysInYear")}get monthsInYear(){return Ht(this,"monthsInYear")}get inLeapYear(){return Ht(this,"inLeapYear")}with(e,n=void 0){if(_(this,Ne),!Ce(e))throw new TypeError("invalid argument");hr(e);const r=m(this,M);let o=rt(r,m(this,F),"year-month");return o=kn(r,o,wt(r,e,["year","month","monthCode"],[],"partial")),nr(Br(r,o,re(N(n))),r)}add(e,n=void 0){return _(this,Ne),Ec("add",this,e,n)}subtract(e,n=void 0){return _(this,Ne),Ec("subtract",this,e,n)}until(e,n=void 0){return _(this,Ne),mc("until",this,e,n)}since(e,n=void 0){return _(this,Ne),mc("since",this,e,n)}equals(e){_(this,Ne);const n=Ar(e);return Vt(m(this,F),m(n,F))===0&&Ut(m(this,M),m(n,M))}toString(e=void 0){return _(this,Ne),ic(this,io(N(e)))}toJSON(){return _(this,Ne),ic(this)}toLocaleString(e=void 0,n=void 0){return _(this,Ne),new Dt(e,n).format(this)}valueOf(){_n("PlainYearMonth")}toPlainDate(e){if(_(this,Ne),!Ce(e))throw new TypeError("argument should be an object");const n=m(this,M);return tt(vn(n,kn(n,rt(n,m(this,F),"year-month"),wt(n,e,["day"],[],[])),"constrain"),n)}static from(e,n=void 0){return Ar(e,n)}static compare(e,n){const r=Ar(e),o=Ar(n);return Vt(m(r,F),m(o,F))}}function Ht(t,e){_(t,Ne);const n=m(t,F);return co(t).isoToDate(n,{[e]:!0})[e]}sn(Va,"Temporal.PlainYearMonth");const u0=Dt.prototype.resolvedOptions;class Wa{constructor(e,n,r="iso8601"){if(arguments.length<1)throw new TypeError("missing argument: epochNanoseconds is required");const o=Go(e);let i=$e(n);const{tzName:a,offsetMinutes:s}=mn(i);if(s===void 0){const c=qo(a);if(!c)throw new RangeError(`unknown time zone ${a}`);i=c.identifier}else i=xa(s);Sl(this,o,i,it(r===void 0?"iso8601":$e(r)))}get calendarId(){return _(this,X),m(this,M)}get timeZoneId(){return _(this,X),m(this,ce)}get year(){return qe(this,"year")}get month(){return qe(this,"month")}get monthCode(){return qe(this,"monthCode")}get day(){return qe(this,"day")}get hour(){return Kn(this,"hour")}get minute(){return Kn(this,"minute")}get second(){return Kn(this,"second")}get millisecond(){return Kn(this,"millisecond")}get microsecond(){return Kn(this,"microsecond")}get nanosecond(){return Kn(this,"nanosecond")}get era(){return qe(this,"era")}get eraYear(){return qe(this,"eraYear")}get epochMilliseconds(){return _(this,X),Mt(m(this,U),"floor")}get epochNanoseconds(){return _(this,X),Fl(m(this,U))}get dayOfWeek(){return qe(this,"dayOfWeek")}get dayOfYear(){return qe(this,"dayOfYear")}get weekOfYear(){return qe(this,"weekOfYear")?.week}get yearOfWeek(){return qe(this,"weekOfYear")?.year}get hoursInDay(){_(this,X);const e=m(this,ce),n=It(this).isoDate,r=dt(n.year,n.month,n.day+1),o=ln(e,n),i=ln(e,r);return Fr(Q.fromEpochNsDiff(i,o),"hour")}get daysInWeek(){return qe(this,"daysInWeek")}get daysInMonth(){return qe(this,"daysInMonth")}get daysInYear(){return qe(this,"daysInYear")}get monthsInYear(){return qe(this,"monthsInYear")}get inLeapYear(){return qe(this,"inLeapYear")}get offset(){return _(this,X),sa(Qt(m(this,ce),m(this,U)))}get offsetNanoseconds(){return _(this,X),Qt(m(this,ce),m(this,U))}with(e,n=void 0){if(_(this,X),!Ce(e))throw new TypeError("invalid zoned-date-time-like");hr(e);const r=m(this,M),o=m(this,ce),i=Qt(o,m(this,U)),a=It(this);let s={...rt(r,a.isoDate),...a.time,offset:sa(i)};s=kn(r,s,wt(r,e,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond","offset"],"partial"));const c=N(n),l=Ur(c),u=ko(c,"prefer"),d=lo(r,s,re(c)),h=yr(s.offset);return Ye(Vo(d.isoDate,d.time,"option",h,o,l,u,!1),o,r)}withPlainTime(e=void 0){_(this,X);const n=m(this,ce),r=m(this,M),o=It(this).isoDate;let i;return i=e===void 0?ln(n,o):Ue(n,ie(o,m(fn(e),Te)),"compatible"),Ye(i,n,r)}withTimeZone(e){_(this,X);const n=nt(e);return Ye(m(this,U),n,m(this,M))}withCalendar(e){_(this,X);const n=fo(e);return Ye(m(this,U),m(this,ce),n)}add(e,n=void 0){return _(this,X),_c("add",this,e,n)}subtract(e,n=void 0){return _(this,X),_c("subtract",this,e,n)}until(e,n=void 0){return _(this,X),gc("until",this,e,n)}since(e,n=void 0){return _(this,X),gc("since",this,e,n)}round(e){if(_(this,X),e===void 0)throw new TypeError("options parameter is required");const n=typeof e=="string"?Nn("smallestUnit",e):N(e),r=mr(n),o=kt(n,"halfExpand"),i=ut(n,"smallestUnit","time",on,["day"]),a={day:1,hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[i];if(gr(r,a,a===1),i==="nanosecond"&&r===1)return Ye(m(this,U),m(this,ce),m(this,M));const s=m(this,ce),c=m(this,U),l=It(this);let u;if(i==="day"){const d=l.isoDate,h=dt(d.year,d.month,d.day+1),y=ln(s,d),p=ln(s,h),g=f.subtract(p,y);u=Q.fromEpochNsDiff(c,y).round(g,o).addToEpochNs(y)}else{const d=ha(l,r,i,o),h=Qt(s,c);u=Vo(d.isoDate,d.time,"option",h,s,"compatible","prefer",!1)}return Ye(u,s,m(this,M))}equals(e){_(this,X);const n=Ir(e),r=m(this,U),o=m(n,U);return!!f.equal(f.BigInt(r),f.BigInt(o))&&!!Ml(m(this,ce),m(n,ce))&&Ut(m(this,M),m(n,M))}toString(e=void 0){_(this,X);const n=N(e),r=io(n),o=ao(n),i=(function(h){return tn(h,"offset",["auto","never"],"auto")})(n),a=kt(n,"trunc"),s=ut(n,"smallestUnit","time",void 0);if(s==="hour")throw new RangeError('smallestUnit must be a time unit other than "hour"');const c=(function(h){return tn(h,"timeZoneName",["auto","never","critical"],"auto")})(n),{precision:l,unit:u,increment:d}=so(s,o);return ac(this,l,r,c,i,{unit:u,increment:d,roundingMode:a})}toLocaleString(e=void 0,n=void 0){_(this,X);const r=N(n),o=Object.create(null);if((function(c,l,u,d){if(l==null)return;const h=Reflect.ownKeys(l);for(let y=0;y<h.length;y++){const p=h[y];if(!u.some((g=>Object.is(g,p)))&&Object.prototype.propertyIsEnumerable.call(l,p)){const g=l[p];c[p]=g}}})(o,r,["timeZone"]),r.timeZone!==void 0)throw new TypeError("ZonedDateTime toLocaleString does not accept a timeZone option");if(o.year===void 0&&o.month===void 0&&o.day===void 0&&o.era===void 0&&o.weekday===void 0&&o.dateStyle===void 0&&o.hour===void 0&&o.minute===void 0&&o.second===void 0&&o.fractionalSecondDigits===void 0&&o.timeStyle===void 0&&o.dayPeriod===void 0&&o.timeZoneName===void 0&&(o.timeZoneName="short"),o.timeZone=m(this,ce),sc(o.timeZone))throw new RangeError("toLocaleString does not currently support offset time zones");const i=new Dt(e,o),a=u0.call(i).calendar,s=m(this,M);if(s!=="iso8601"&&a!=="iso8601"&&!Ut(a,s))throw new RangeError(`cannot format ZonedDateTime with calendar ${s} in locale with calendar ${a}`);return i.format(Lt(m(this,U)))}toJSON(){return _(this,X),ac(this,"auto")}valueOf(){_n("ZonedDateTime")}startOfDay(){_(this,X);const e=m(this,ce);return Ye(ln(e,It(this).isoDate),e,m(this,M))}getTimeZoneTransition(e){_(this,X);const n=m(this,ce);if(e===void 0)throw new TypeError("options parameter is required");const r=tn(typeof e=="string"?Nn("direction",e):N(e),"direction",["next","previous"],on);if(r===void 0)throw new TypeError("direction option is required");if(sc(n)||n==="UTC")return null;const o=m(this,U),i=r==="next"?Ra(n,o):la(n,o);return i===null?null:Ye(i,n,m(this,M))}toInstant(){return _(this,X),Lt(m(this,U))}toPlainDate(){return _(this,X),tt(It(this).isoDate,m(this,M))}toPlainTime(){return _(this,X),Xt(It(this).time)}toPlainDateTime(){return _(this,X),Tt(It(this),m(this,M))}static from(e,n=void 0){return Ir(e,n)}static compare(e,n){const r=Ir(e),o=Ir(n),i=m(r,U),a=m(o,U);return f.lessThan(f.BigInt(i),f.BigInt(a))?-1:f.greaterThan(f.BigInt(i),f.BigInt(a))?1:0}}function It(t){return St(m(t,ce),m(t,U))}function qe(t,e){_(t,X);const n=It(t).isoDate;return co(t).isoToDate(n,{[e]:!0})[e]}function Kn(t,e){return _(t,X),It(t).time[e]}sn(Wa,"Temporal.ZonedDateTime");var Ae=Object.freeze({__proto__:null,Duration:fr,Instant:Ya,Now:eu,PlainDate:za,PlainDateTime:Ua,PlainMonthDay:Fa,PlainTime:bo,PlainYearMonth:Va,ZonedDateTime:Wa});const d0=[Ya,za,Ua,fr,Fa,bo,Va,Wa];for(const t of d0){const e=Object.getOwnPropertyDescriptor(t,"prototype");(e.configurable||e.enumerable||e.writable)&&(e.configurable=!1,e.enumerable=!1,e.writable=!1,Object.defineProperty(t,"prototype",e))}var vo=(t=>(t.SYSTEM_TIME_ZONE="America/New_York",t.SYSTEM_LOCALE="en-US",t.SYSTEM_DATE_FORMAT="MM/dd/yyyy",t.SYSTEM_DATE_TIME_FORMAT="MM/dd/yyyy hh:mm:ss a",t.ISO_DATE_FORMAT="yyyy-MM-dd",t[t.SYSTEM_COOKIE_TIMEOUT_MILLI_SECONDS=36e5]="SYSTEM_COOKIE_TIMEOUT_MILLI_SECONDS",t))(vo||{});const Ci={month:"2-digit",day:"2-digit",year:"numeric"},tu={...Ci,hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0},f0=t=>t?(typeof t=="string"?Ae.Instant.from(t):Ae.Instant.fromEpochMilliseconds(t.getTime())).toZonedDateTimeISO(Ae.Now.timeZoneId()).toLocaleString(vo.SYSTEM_LOCALE,tu):"",h0=t=>t?(typeof t=="string"?Ae.Instant.from(t):Ae.Instant.fromEpochMilliseconds(t.getTime())).toZonedDateTimeISO(Ae.Now.timeZoneId()).toLocaleString(vo.SYSTEM_LOCALE,Ci):"",m0=t=>t?Ae.PlainDate.from(t).toLocaleString(vo.SYSTEM_LOCALE,Ci):"",nu=t=>t?(typeof t=="string"?Ae.Instant.from(t):Ae.Instant.fromEpochMilliseconds(t.getTime())).toZonedDateTimeISO(Ae.Now.timeZoneId()).toPlainDate().toString():"",g0=t=>t?nu(t):"",y0=t=>{if(!t)return null;const e=Ae.PlainDate.from(t);return new Date(e.year,e.month-1,e.day)},p0=t=>{if(!t)return;const e=Ae.Instant.fromEpochMilliseconds(Number(t));return new Date(e.toZonedDateTimeISO(Ae.Now.timeZoneId()).toPlainDate().toString())},b0=(t,e)=>{if(!t||!e)return!1;const n=typeof t=="string"?Ae.Instant.from(t):Ae.Instant.fromEpochMilliseconds(t.getTime()),r=typeof e=="string"?Ae.Instant.from(e):Ae.Instant.fromEpochMilliseconds(e.getTime());return Ae.Instant.compare(n,r)>0};function v0(t){if(typeof t=="string")return Number.parseInt(t,10)}const w0=()=>({isLoading:!1,isSuccess:!1,isError:!1,isComplete:!1,message:""}),E0=t=>({...t,isLoading:!0,isSuccess:!1,isError:!1,message:""}),_0=(t,e)=>({...t,isLoading:!1,isSuccess:!0,isError:!1,isComplete:!0,message:e||""}),T0=(t,e)=>({...t,isLoading:!1,isSuccess:!1,isError:!0,isComplete:!0,message:e||""});function C0(t){return t==null?!0:typeof t=="string"?t.trim()==="":!1}const D0=t=>{try{return decodeURIComponent(t)!==t}catch{return!1}};exports.AppSnackBar=hh;exports.CancelButton=Xf;exports.CenteredCircularProgress=ph;exports.ConfirmDialog=bh;exports.DeleteButton=Jf;exports.DismissibleAlert=vh;exports.EditIconButton=th;exports.ExcelButton=nh;exports.GoBackButton=oh;exports.HistoryButton=ah;exports.LoadingSuccessButton=lh;exports.ManageButton=dh;exports.NextLink=Gh;exports.OpenInNewIconLink=Xh;exports.QuerySnackBar=mh;exports.ReactIf=Qh;exports.RouterLink=em;exports.SuccessButton=fh;exports.SystemConfig=vo;exports.TEMPORAL_DATE_FORMAT=Ci;exports.TEMPORAL_DATE_TIME_FORMAT=tu;exports.TabPanel=nm;exports.TablePaginationActions=tm;exports.ToastContainer=yh;exports.a11yProps=rm;exports.formatIsoToAppDate=m0;exports.formatOldDateToIsoDate=g0;exports.formatOldDateToIsoString=nu;exports.formatToAppDate=h0;exports.formatToAppDateTime=f0;exports.formatUnixTimeToOldDate=p0;exports.getCssVariable=im;exports.initializeState=w0;exports.isAfter=b0;exports.isBlankOrEmpty=C0;exports.isEncoded=D0;exports.markError=T0;exports.markLoading=E0;exports.markSuccess=_0;exports.parseBoolean=om;exports.parseIsoDate=y0;exports.parseNumber=v0;exports.toast=gh;
|
package/index.mjs
CHANGED
|
@@ -3916,7 +3916,13 @@ const $a = vt(/* @__PURE__ */ k("path", {
|
|
|
3916
3916
|
)
|
|
3917
3917
|
] });
|
|
3918
3918
|
};
|
|
3919
|
-
let Mo = {
|
|
3919
|
+
let Mo = {
|
|
3920
|
+
message: "",
|
|
3921
|
+
open: !1,
|
|
3922
|
+
autoHideDuration: 3e3,
|
|
3923
|
+
anchorOrigin: { vertical: "bottom", horizontal: "center" },
|
|
3924
|
+
type: "info"
|
|
3925
|
+
};
|
|
3920
3926
|
const $o = /* @__PURE__ */ new Set(), Io = {
|
|
3921
3927
|
subscribe(t) {
|
|
3922
3928
|
return $o.add(t), () => $o.delete(t);
|
|
@@ -3926,7 +3932,7 @@ const $o = /* @__PURE__ */ new Set(), Io = {
|
|
|
3926
3932
|
},
|
|
3927
3933
|
// The "magic" function you call everywhere
|
|
3928
3934
|
show(t, e = "info", n = 3e3) {
|
|
3929
|
-
Mo = { message: t, type: e, open: !0, autoHideDuration: n }, $o.forEach((r) => r());
|
|
3935
|
+
Mo = { message: t, type: e, open: !0, autoHideDuration: n, anchorOrigin: { vertical: "bottom", horizontal: "center" } }, $o.forEach((r) => r());
|
|
3930
3936
|
},
|
|
3931
3937
|
close() {
|
|
3932
3938
|
Mo = { ...Mo, open: !1 }, $o.forEach((t) => t());
|
|
@@ -3941,7 +3947,7 @@ const $o = /* @__PURE__ */ new Set(), Io = {
|
|
|
3941
3947
|
open: t.open,
|
|
3942
3948
|
autoHideDuration: t.autoHideDuration,
|
|
3943
3949
|
onClose: e,
|
|
3944
|
-
anchorOrigin: { vertical: "bottom", horizontal: "
|
|
3950
|
+
anchorOrigin: { vertical: "bottom", horizontal: "center" },
|
|
3945
3951
|
children: /* @__PURE__ */ k(ar, { severity: t.type, variant: "filled", onClose: e, children: t.message })
|
|
3946
3952
|
}
|
|
3947
3953
|
);
|