@js-smart/react-kit 5.19.0 → 5.20.0
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 +10 -1
- package/lib/components/buttons/DeleteButton.d.ts +4 -4
- package/package.json +44 -44
package/index.js
CHANGED
|
@@ -31,4 +31,4 @@ theme.transitions = createTransitions(theme.transitions || {});
|
|
|
31
31
|
|
|
32
32
|
export default theme;`}function Ja(t){return typeof t=="number"?`${(t*100).toFixed(0)}%`:`calc((${t}) * 100%)`}const Ad=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 Id(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})`:Js(e,Ad(n))},lighten(e,n){const r=this||t;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${e}, #fff ${Ja(n)})`:Zo(e,n)},darken(e,n){const r=this||t;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${e}, #000 ${Ja(n)})`:Ho(e,n)}})}function xi(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.":dn(20));const d=ea({...i,colorSpace:l}),m=Xi(t);let y=ht(m,{mixins:vd(m.breakpoints,r),palette:d,shadows:Md.slice(),typography:Td(d,s),transitions:Sd(a),zIndex:{...kd}});if(y=ht(y,u),y=e.reduce((b,g)=>ht(b,g),y),process.env.NODE_ENV!=="production"){const b=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],g=(w,v)=>{let D;for(D in w){const M=w[D];if(b.includes(D)&&Object.keys(M).length>0){if(process.env.NODE_ENV!=="production"){const C=Qi("",D);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${D}\` internal state.`,"You can not override it like this: ",JSON.stringify(w,null,2),"",`Instead, you need to use the '&.${C}' syntax:`,JSON.stringify({root:{[`&.${C}`]:M}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
33
33
|
`))}w[D]={}}}};Object.keys(y.components).forEach(w=>{const v=y.components[w].styleOverrides;v&&w.startsWith("Mui")&&g(v,w)})}return y.unstable_sxConfig={...Wo,...u?.unstable_sxConfig},y.unstable_sx=function(g){return Xn({sx:g,theme:this})},y.toRuntimeSource=rc,Id(y),y}function Pd(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 Nd=[...Array(25)].map((t,e)=>{if(e===0)return"none";const n=Pd(e);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function oc(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function ic(t){return t==="dark"?Nd:[]}function jd(t){const{palette:e={mode:"light"},opacity:n,overlays:r,colorSpace:o,...i}=t,a=ea({...e,colorSpace:o});return{palette:a,opacity:{...oc(a.mode),...n},overlays:r||ic(a.mode),...i}}function Ld(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 Yd=t=>[...[...Array(25)].map((e,n)=>`--${t?`${t}-`:""}overlays-${n}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],zd=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 Yd(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 Ud(t,e){e.forEach(n=>{t[n]||(t[n]={})})}function _(t,e,n){!t[e]&&n&&(t[e]=n)}function br(t){return typeof t!="string"||!t.startsWith("hsl")?t:Qs(t)}function Ut(t,e){`${e}Channel`in t||(t[`${e}Channel`]=pr(br(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 Fd(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const Ot=t=>{try{return t()}catch{}},qd=(t="mui")=>ad(t);function bi(t,e,n,r,o){if(!n)return;n=n===!0?{}:n;const i=o==="dark"?"dark":"light";if(!r){e[o]=jd({...n,palette:{mode:i,...n?.palette},colorSpace:t});return}const{palette:a,...s}=xi({...r,palette:{mode:i,...n?.palette},colorSpace:t});return e[o]={...n,palette:a,opacity:{...oc(i),...n?.opacity},overlays:n?.overlays||ic(i)},s}function Wd(t={},...e){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:s=Ld,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...u}=t,d=Object.keys(n)[0],m=r||(n.light&&d!=="light"?"light":d),y=qd(i),{[m]:b,light:g,dark:w,...v}=n,D={...v};let M=b;if((m==="dark"&&!("dark"in n)||m==="light"&&!("light"in n))&&(M=!0),!M)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${m}\` option is either missing or invalid.`:dn(21,m));let C;a&&(C="oklch");const T=bi(C,D,M,u,m);g&&!D.light&&bi(C,D,g,void 0,"light"),w&&!D.dark&&bi(C,D,w,void 0,"dark");let k={defaultColorScheme:m,...T,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:l,getCssVar:y,colorSchemes:D,font:{...wd(T.typography),...T.font},spacing:Fd(u.spacing)};Object.keys(k.colorSchemes).forEach(q=>{const p=k.colorSchemes[q].palette,R=j=>{const H=j.split("-"),pe=H[1],ct=H[2];return y(j,p[pe][ct])};p.mode==="light"&&(_(p.common,"background","#fff"),_(p.common,"onBackground","#000")),p.mode==="dark"&&(_(p.common,"background","#000"),_(p.common,"onBackground","#fff"));function O(j,H,pe){if(C){let ct;return j===wn&&(ct=`transparent ${((1-pe)*100).toFixed(0)}%`),j===de&&(ct=`#000 ${(pe*100).toFixed(0)}%`),j===he&&(ct=`#fff ${(pe*100).toFixed(0)}%`),`color-mix(in ${C}, ${H}, ${ct})`}return j(H,pe)}if(Ud(p,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),p.mode==="light"){_(p.Alert,"errorColor",O(de,p.error.light,.6)),_(p.Alert,"infoColor",O(de,p.info.light,.6)),_(p.Alert,"successColor",O(de,p.success.light,.6)),_(p.Alert,"warningColor",O(de,p.warning.light,.6)),_(p.Alert,"errorFilledBg",R("palette-error-main")),_(p.Alert,"infoFilledBg",R("palette-info-main")),_(p.Alert,"successFilledBg",R("palette-success-main")),_(p.Alert,"warningFilledBg",R("palette-warning-main")),_(p.Alert,"errorFilledColor",Ot(()=>p.getContrastText(p.error.main))),_(p.Alert,"infoFilledColor",Ot(()=>p.getContrastText(p.info.main))),_(p.Alert,"successFilledColor",Ot(()=>p.getContrastText(p.success.main))),_(p.Alert,"warningFilledColor",Ot(()=>p.getContrastText(p.warning.main))),_(p.Alert,"errorStandardBg",O(he,p.error.light,.9)),_(p.Alert,"infoStandardBg",O(he,p.info.light,.9)),_(p.Alert,"successStandardBg",O(he,p.success.light,.9)),_(p.Alert,"warningStandardBg",O(he,p.warning.light,.9)),_(p.Alert,"errorIconColor",R("palette-error-main")),_(p.Alert,"infoIconColor",R("palette-info-main")),_(p.Alert,"successIconColor",R("palette-success-main")),_(p.Alert,"warningIconColor",R("palette-warning-main")),_(p.AppBar,"defaultBg",R("palette-grey-100")),_(p.Avatar,"defaultBg",R("palette-grey-400")),_(p.Button,"inheritContainedBg",R("palette-grey-300")),_(p.Button,"inheritContainedHoverBg",R("palette-grey-A100")),_(p.Chip,"defaultBorder",R("palette-grey-400")),_(p.Chip,"defaultAvatarColor",R("palette-grey-700")),_(p.Chip,"defaultIconColor",R("palette-grey-700")),_(p.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),_(p.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),_(p.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),_(p.LinearProgress,"primaryBg",O(he,p.primary.main,.62)),_(p.LinearProgress,"secondaryBg",O(he,p.secondary.main,.62)),_(p.LinearProgress,"errorBg",O(he,p.error.main,.62)),_(p.LinearProgress,"infoBg",O(he,p.info.main,.62)),_(p.LinearProgress,"successBg",O(he,p.success.main,.62)),_(p.LinearProgress,"warningBg",O(he,p.warning.main,.62)),_(p.Skeleton,"bg",C?O(wn,p.text.primary,.11):`rgba(${R("palette-text-primaryChannel")} / 0.11)`),_(p.Slider,"primaryTrack",O(he,p.primary.main,.62)),_(p.Slider,"secondaryTrack",O(he,p.secondary.main,.62)),_(p.Slider,"errorTrack",O(he,p.error.main,.62)),_(p.Slider,"infoTrack",O(he,p.info.main,.62)),_(p.Slider,"successTrack",O(he,p.success.main,.62)),_(p.Slider,"warningTrack",O(he,p.warning.main,.62));const j=C?O(de,p.background.default,.6825):go(p.background.default,.8);_(p.SnackbarContent,"bg",j),_(p.SnackbarContent,"color",Ot(()=>C?Mi.text.primary:p.getContrastText(j))),_(p.SpeedDialAction,"fabHoverBg",go(p.background.paper,.15)),_(p.StepConnector,"border",R("palette-grey-400")),_(p.StepContent,"border",R("palette-grey-400")),_(p.Switch,"defaultColor",R("palette-common-white")),_(p.Switch,"defaultDisabledColor",R("palette-grey-100")),_(p.Switch,"primaryDisabledColor",O(he,p.primary.main,.62)),_(p.Switch,"secondaryDisabledColor",O(he,p.secondary.main,.62)),_(p.Switch,"errorDisabledColor",O(he,p.error.main,.62)),_(p.Switch,"infoDisabledColor",O(he,p.info.main,.62)),_(p.Switch,"successDisabledColor",O(he,p.success.main,.62)),_(p.Switch,"warningDisabledColor",O(he,p.warning.main,.62)),_(p.TableCell,"border",O(he,O(wn,p.divider,1),.88)),_(p.Tooltip,"bg",O(wn,p.grey[700],.92))}if(p.mode==="dark"){_(p.Alert,"errorColor",O(he,p.error.light,.6)),_(p.Alert,"infoColor",O(he,p.info.light,.6)),_(p.Alert,"successColor",O(he,p.success.light,.6)),_(p.Alert,"warningColor",O(he,p.warning.light,.6)),_(p.Alert,"errorFilledBg",R("palette-error-dark")),_(p.Alert,"infoFilledBg",R("palette-info-dark")),_(p.Alert,"successFilledBg",R("palette-success-dark")),_(p.Alert,"warningFilledBg",R("palette-warning-dark")),_(p.Alert,"errorFilledColor",Ot(()=>p.getContrastText(p.error.dark))),_(p.Alert,"infoFilledColor",Ot(()=>p.getContrastText(p.info.dark))),_(p.Alert,"successFilledColor",Ot(()=>p.getContrastText(p.success.dark))),_(p.Alert,"warningFilledColor",Ot(()=>p.getContrastText(p.warning.dark))),_(p.Alert,"errorStandardBg",O(de,p.error.light,.9)),_(p.Alert,"infoStandardBg",O(de,p.info.light,.9)),_(p.Alert,"successStandardBg",O(de,p.success.light,.9)),_(p.Alert,"warningStandardBg",O(de,p.warning.light,.9)),_(p.Alert,"errorIconColor",R("palette-error-main")),_(p.Alert,"infoIconColor",R("palette-info-main")),_(p.Alert,"successIconColor",R("palette-success-main")),_(p.Alert,"warningIconColor",R("palette-warning-main")),_(p.AppBar,"defaultBg",R("palette-grey-900")),_(p.AppBar,"darkBg",R("palette-background-paper")),_(p.AppBar,"darkColor",R("palette-text-primary")),_(p.Avatar,"defaultBg",R("palette-grey-600")),_(p.Button,"inheritContainedBg",R("palette-grey-800")),_(p.Button,"inheritContainedHoverBg",R("palette-grey-700")),_(p.Chip,"defaultBorder",R("palette-grey-700")),_(p.Chip,"defaultAvatarColor",R("palette-grey-300")),_(p.Chip,"defaultIconColor",R("palette-grey-300")),_(p.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),_(p.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),_(p.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),_(p.LinearProgress,"primaryBg",O(de,p.primary.main,.5)),_(p.LinearProgress,"secondaryBg",O(de,p.secondary.main,.5)),_(p.LinearProgress,"errorBg",O(de,p.error.main,.5)),_(p.LinearProgress,"infoBg",O(de,p.info.main,.5)),_(p.LinearProgress,"successBg",O(de,p.success.main,.5)),_(p.LinearProgress,"warningBg",O(de,p.warning.main,.5)),_(p.Skeleton,"bg",C?O(wn,p.text.primary,.13):`rgba(${R("palette-text-primaryChannel")} / 0.13)`),_(p.Slider,"primaryTrack",O(de,p.primary.main,.5)),_(p.Slider,"secondaryTrack",O(de,p.secondary.main,.5)),_(p.Slider,"errorTrack",O(de,p.error.main,.5)),_(p.Slider,"infoTrack",O(de,p.info.main,.5)),_(p.Slider,"successTrack",O(de,p.success.main,.5)),_(p.Slider,"warningTrack",O(de,p.warning.main,.5));const j=C?O(he,p.background.default,.985):go(p.background.default,.98);_(p.SnackbarContent,"bg",j),_(p.SnackbarContent,"color",Ot(()=>C?tc.text.primary:p.getContrastText(j))),_(p.SpeedDialAction,"fabHoverBg",go(p.background.paper,.15)),_(p.StepConnector,"border",R("palette-grey-600")),_(p.StepContent,"border",R("palette-grey-600")),_(p.Switch,"defaultColor",R("palette-grey-300")),_(p.Switch,"defaultDisabledColor",R("palette-grey-600")),_(p.Switch,"primaryDisabledColor",O(de,p.primary.main,.55)),_(p.Switch,"secondaryDisabledColor",O(de,p.secondary.main,.55)),_(p.Switch,"errorDisabledColor",O(de,p.error.main,.55)),_(p.Switch,"infoDisabledColor",O(de,p.info.main,.55)),_(p.Switch,"successDisabledColor",O(de,p.success.main,.55)),_(p.Switch,"warningDisabledColor",O(de,p.warning.main,.55)),_(p.TableCell,"border",O(de,O(wn,p.divider,1),.68)),_(p.Tooltip,"bg",O(wn,p.grey[700],.92))}Ut(p.background,"default"),Ut(p.background,"paper"),Ut(p.common,"background"),Ut(p.common,"onBackground"),Ut(p,"divider"),Object.keys(p).forEach(j=>{const H=p[j];j!=="tonalOffset"&&H&&typeof H=="object"&&(H.main&&_(p[j],"mainChannel",pr(br(H.main))),H.light&&_(p[j],"lightChannel",pr(br(H.light))),H.dark&&_(p[j],"darkChannel",pr(br(H.dark))),H.contrastText&&_(p[j],"contrastTextChannel",pr(br(H.contrastText))),j==="text"&&(Ut(p[j],"primary"),Ut(p[j],"secondary")),j==="action"&&(H.active&&Ut(p[j],"active"),H.selected&&Ut(p[j],"selected")))})}),k=e.reduce((q,p)=>ht(q,p),k);const U={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:zd(k),enableContrastVars:a},{vars:G,generateThemeVars:N,generateStyleSheets:ae}=ld(k,U);return k.vars=G,Object.entries(k.colorSchemes[k.defaultColorScheme]).forEach(([q,p])=>{k[q]=p}),k.generateThemeVars=N,k.generateStyleSheets=ae,k.generateSpacing=function(){return Zs(u.spacing,Gi(this))},k.getColorSchemeSelector=ud(c),k.spacing=k.generateSpacing(),k.shouldSkipGeneratingVar=s,k.unstable_sxConfig={...Wo,...u?.unstable_sxConfig},k.unstable_sx=function(p){return Xn({sx:p,theme:this})},k.toRuntimeSource=rc,k}function es(t,e,n){t.colorSchemes&&n&&(t.colorSchemes[e]={...n!==!0&&n,palette:ea({...n===!0?{}:n.palette,mode:e})})}function Vd(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 xi(t,...e);let u=n;"palette"in t||l[s]&&(l[s]!==!0?u=l[s].palette:s==="dark"&&(u={mode:"dark"}));const d=xi({...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},es(d,"dark",l.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:d.palette},es(d,"light",l.light)),d}return!n&&!("light"in l)&&s==="light"&&(l.light=!0),Wd({...a,colorSchemes:l,defaultColorScheme:s,...typeof r!="boolean"&&r},...e)}const ac=Vd(),sc="$$material";function Hd(){const t=zu(ac);return process.env.NODE_ENV!=="production"&&Nt.useDebugValue(t),t[sc]||t}function Zd(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const Bd=t=>Zd(t)&&t!=="classes",Gd=Zu({themeId:sc,defaultTheme:ac,rootShouldForwardProp:Bd}),Kd=id;process.env.NODE_ENV!=="production"&&(ie.node,ie.object.isRequired);function Xd(t){return od(t)}function Qd(t){return Qi("MuiSvgIcon",t)}Fu("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Jd=t=>{const{color:e,fontSize:n,classes:r}=t,o={root:["root",e!=="inherit"&&`color${Mn(e)}`,`fontSize${Mn(n)}`]};return $l(o,Qd,r)},eh=Gd("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="inherit"&&e[`color${Mn(n.color)}`],e[`fontSize${Mn(n.fontSize)}`]]}})(Kd(({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}}]}))),To=Nt.forwardRef(function(e,n){const r=Xd({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:m="0 0 24 24",...y}=r,b=Nt.isValidElement(o)&&o.type==="svg",g={...r,color:a,component:s,fontSize:c,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:m,hasSvgAsChild:b},w={};u||(w.viewBox=m);const v=Jd(g);return S.jsxs(eh,{as:s,className:qs(v.root,i),focusable:"false",color:l,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...w,...y,...b&&o.props,ownerState:g,children:[b?o.props.children:o,d?S.jsx("title",{children:d}):null]})});process.env.NODE_ENV!=="production"&&(To.propTypes={children:ie.node,classes:ie.object,className:ie.string,color:ie.oneOfType([ie.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),ie.string]),component:ie.elementType,fontSize:ie.oneOfType([ie.oneOf(["inherit","large","medium","small"]),ie.string]),htmlColor:ie.string,inheritViewBox:ie.bool,shapeRendering:ie.string,sx:ie.oneOfType([ie.arrayOf(ie.oneOfType([ie.func,ie.object,ie.bool])),ie.func,ie.object]),titleAccess:ie.string,viewBox:ie.string});To.muiName="SvgIcon";function yt(t,e){function n(r,o){return S.jsx(To,{"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=To.muiName,Nt.memo(Nt.forwardRef(n))}const th=yt(S.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 nh(t){return S.jsx(F.Button,{name:t.name,"data-cy":t.dataCy??"cancel-button",className:t.className,sx:t.sx,startIcon:t.startIcon??S.jsx(th,{}),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 rh=yt(S.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 oh(t){return S.jsx(F.Button,{"data-cy":t.dataCy??"delete-button",loading:t.loading??!1,loadingPosition:t.loadingPosition??"start",startIcon:t.startIcon??S.jsx(rh,{}),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 ih=yt(S.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 ah(t){return S.jsx(F.Tooltip,{title:t.tooltipTitle,children:S.jsx(F.IconButton,{color:t.color??"primary",onClick:()=>t.onClick(!0),"aria-label":t.ariaLabel??t.tooltipTitle,children:S.jsx(ih,{})})})}function sh(t){return S.jsx(F.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 ch=yt(S.jsx("path",{d:"M11.67 3.87 9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"}),"ArrowBackIos");function lh(t){return S.jsx(F.Tooltip,{title:"Go Back to Previous Page",children:S.jsxs(F.IconButton,{name:t.name,color:t.color??"primary",onClick:()=>t.navigate(-1),"aria-label":t.ariaLabel??"Go back to previous page",children:[S.jsx(ch,{}),t.children]})})}const uh=yt(S.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 dh(t){return S.jsx(F.Button,{name:t.name,"data-cy":t.dataCy??"history-button",className:t.className,sx:t.sx??{p:1,m:1},startIcon:t.startIcon??S.jsx(uh,{}),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 hh=yt(S.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"),fh={backgroundColor:"$primary-color",color:"var(--white-color)",margin:"20px"};function mh(t){return S.jsx(F.Button,{name:t.name,"data-cy":t.dataCy??"loading-success-button",variant:t.variant??"contained",color:t.color??"success",loadingPosition:"start",startIcon:t.startIcon??S.jsx(hh,{}),loading:t.loading,type:t.type??"button",style:fh,sx:t.sx,onClick:t.onClick,"aria-label":t.ariaLabel??t.name??"Save",children:t.children??t.name})}const gh=yt(S.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 yh(t){return S.jsx(F.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??S.jsx(gh,{}),"aria-label":t.ariaLabel??(typeof t.children=="string"?t.children:void 0)??"Manage",children:t.children?t.children:"Manage"})}function ph(t){return S.jsx(F.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 ta=yt(S.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"),bh=t=>{const[e,n]=Zt.useState(!1);Zt.useEffect(()=>{n(t.open)},[t.open,t.progressState]);const r=S.jsx(F.IconButton,{size:"small","aria-label":"close",color:"inherit",onClick:()=>n(!1),children:S.jsx(ta,{fontSize:"small"})});return S.jsxs(S.Fragment,{children:[S.jsx(F.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:e&&t.progressState.isSuccess,autoHideDuration:t.autoHideDuration??3e3,onClose:()=>n(!1),children:S.jsx(F.Alert,{variant:"filled",severity:"success",sx:{width:"100%"},action:r,children:t.progressState.message})}),S.jsx(F.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:e&&t.progressState.isError,slots:{transition:F.Slide},autoHideDuration:t.autoHideDuration??3e3,onClose:()=>n(!1),children:S.jsx(F.Alert,{variant:"filled",sx:{width:"100%"},severity:"error",action:r,children:t.progressState.message})})]})},wh=t=>{const[e,n]=Zt.useState(!1);Zt.useEffect(()=>{n(t.open)},[t.open,t]);const r=S.jsx(F.IconButton,{size:"small","aria-label":"close",color:"inherit",onClick:()=>n(!1),children:S.jsx(ta,{fontSize:"small"})});return S.jsxs(S.Fragment,{children:[S.jsx(F.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:e&&t.isSuccess,autoHideDuration:t.autoHideDuration??3e3,onClose:()=>n(!1),children:S.jsx(F.Alert,{variant:"filled",severity:"success",sx:{width:"100%"},action:r,children:t.message})}),S.jsx(F.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:e&&t.isError,TransitionComponent:F.Slide,autoHideDuration:t.autoHideDuration??3e3,onClose:()=>n(!1),children:S.jsx(F.Alert,{variant:"filled",sx:{width:"100%"},severity:"error",action:r,children:t.message})})]})};function vh(){return S.jsx("div",{style:{margin:"1.5rem"},className:"app-flex-justify-center",role:"status","aria-label":"Loading",children:S.jsx(F.CircularProgress,{})})}function Eh(t){const{onClose:e,title:n,message:r,open:o,...i}=t;return S.jsxs(F.Dialog,{sx:{"& .MuiDialog-paper":{width:"80%",maxHeight:435}},maxWidth:"xs",open:o,...i,children:[S.jsx(F.DialogTitle,{children:n??"Confirm"}),S.jsx(F.DialogContent,{dividers:!0,children:r}),S.jsxs(F.DialogActions,{children:[S.jsx(F.Button,{autoFocus:!0,onClick:()=>e("No"),"aria-label":"Cancel",children:"Cancel"}),S.jsx(F.Button,{onClick:()=>e("Yes"),"aria-label":"Yes",children:"Yes"})]})]})}function Th(t){const{ariaLabel:e,...n}=t,[r,o]=Zt.useState(!0),[i]=Zt.useState(t.dismissible??!0),[a]=Zt.useState(t.dismissOnTimeOut??!0),[s]=Zt.useState(t.dismissTimeOut??5e3);return setTimeout(()=>{o(a?!1:r)},s),S.jsx("span",{children:r&&S.jsx(F.Alert,{action:i?S.jsx(F.IconButton,{"aria-label":"close",color:"inherit",size:"small",onClick:()=>{o(!1)},children:S.jsx(ta,{fontSize:"inherit"})}):null,style:{margin:"20px"},"aria-label":e??"Dismissible Alert",...n,children:n.message})})}function _h(t){return S.jsx(F.Link,{component:Ys.Link,to:t.href,className:"next-btn-link",underline:"hover","aria-label":t.ariaLabel,children:t.linkText??t.children})}const Ch=yt(S.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 Dh(t){return S.jsxs(F.Link,{component:Ys.Link,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,S.jsx(F.Icon,{sx:{fontSize:"1.1rem",mx:.75,verticalAlign:"middle",display:"inline-flex"},component:Ch})]})}function Mh(t){const{condition:e,children:n,else:r}=t;return e?typeof n=="function"?n():n:r?typeof r=="function"?r():r:null}const ts=yt(S.jsx("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),ns=yt(S.jsx("path",{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6z"}),"KeyboardArrowLeft"),rs=yt(S.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"}),"KeyboardArrowRight"),os=yt(S.jsx("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function xh(t){const e=Hd(),{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 S.jsxs(F.Box,{sx:{flexShrink:0,ml:2.5},children:[S.jsx(F.IconButton,{onClick:a,disabled:r===0,"aria-label":"first page",children:e.direction==="rtl"?S.jsx(os,{}):S.jsx(ts,{})}),S.jsx(F.IconButton,{onClick:s,disabled:r===0,"aria-label":"previous page",children:e.direction==="rtl"?S.jsx(rs,{}):S.jsx(ns,{})}),S.jsx(F.IconButton,{onClick:c,disabled:r>=Math.ceil(n/o)-1,"aria-label":"next page",children:e.direction==="rtl"?S.jsx(ns,{}):S.jsx(rs,{})}),S.jsx(F.IconButton,{onClick:l,disabled:r>=Math.ceil(n/o)-1,"aria-label":"last page",children:e.direction==="rtl"?S.jsx(ts,{}):S.jsx(os,{})})]})}function Oh(t){const{children:e,index:n,...r}=t;return S.jsx("div",{className:"tabPanel",role:"tabpanel",id:`vertical-tabpanel-${n}`,"aria-labelledby":`vertical-tab-${n}`,...r,children:S.jsx(F.Box,{sx:{p:3},children:S.jsx(F.Typography,{component:"span",children:e})})})}function $h(t){return{id:`vertical-tab-${t}`,"aria-controls":`vertical-tabpanel-${t}`}}function Sh(t){return typeof t=="boolean"?t:typeof t=="string"?t.toLowerCase()==="true":!1}function kh(t){return getComputedStyle(document.documentElement).getPropertyValue(t).trim()}class h extends Array{constructor(e,n){if(super(e),this.sign=n,Object.setPrototypeOf(this,h.prototype),e>h.__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 h.__zero();if(h.__isOneDigitInt(e))return 0>e?h.__oneDigit(-e,!0):h.__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 h.__fromDouble(e)}if(typeof e=="string"){const o=h.__fromString(e);if(o===null)throw new SyntaxError("Cannot convert "+e+" to a BigInt");return o}if(typeof e=="boolean")return e===!0?h.__oneDigit(1,!1):h.__zero();if(typeof e=="object"){if(e.constructor===h)return e;const o=h.__toPrimitive(e);return h.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?h.__toStringBasePowerOfTwo(this,e):h.__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 w=e.__unsignedDigit(0);return e.sign?-w:w}const r=e.__digit(n-1),o=h.__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 m=12<=l?0:s<<20+l,y=20+l;for(0<d&&0<c&&(c--,s=e.__digit(c),u|=s>>>30-d,m=s<<d+2,y=d+2);0<y&&0<c;)c--,s=e.__digit(c),m|=30<=y?s<<y-30:s>>>30-y,y-=30;const b=h.__decideRounding(e,y,c,s);if((b===1||b===0&&(1&m)==1)&&(m=m+1>>>0,m===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,h.__kBitConversionInts[h.__kBitConversionIntHigh]=g|a|u,h.__kBitConversionInts[h.__kBitConversionIntLow]=m,h.__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?h.__absoluteSubOne(e).__trim():h.__absoluteAddOne(e,!0)}static exponentiate(e,n){if(n.sign)throw new RangeError("Exponent must be positive");if(n.length===0)return h.__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?h.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>=h.__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 h(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=h.multiply(i,i),(1&r)!=0&&(o===null?o=i:o=h.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 h(r,e.sign!==n.sign);o.__initializeDigits();for(let i=0;i<e.length;i++)h.__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>h.__absoluteCompare(e,n))return h.__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:h.unaryMinus(e);i=h.__absoluteDivSmall(e,o,null)}else i=h.__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>h.__absoluteCompare(e,n))return e;const r=n.__unsignedDigit(0);if(n.length===1&&32767>=r){if(r===1)return h.__zero();const i=h.__absoluteModSmall(e,r);return i===0?h.__zero():h.__oneDigit(i,e.sign)}const o=h.__absoluteDivLarge(e,n,!1,!0);return o.sign=e.sign,o.__trim()}static add(e,n){const r=e.sign;return r===n.sign?h.__absoluteAdd(e,n,r):0<=h.__absoluteCompare(e,n)?h.__absoluteSub(e,n,r):h.__absoluteSub(n,e,!r)}static subtract(e,n){const r=e.sign;return r===n.sign?0<=h.__absoluteCompare(e,n)?h.__absoluteSub(e,n,r):h.__absoluteSub(n,e,!r):h.__absoluteAdd(e,n,r)}static leftShift(e,n){return n.length===0||e.length===0?e:n.sign?h.__rightShiftByAbsolute(e,n):h.__leftShiftByAbsolute(e,n)}static signedRightShift(e,n){return n.length===0||e.length===0?e:n.sign?h.__leftShiftByAbsolute(e,n):h.__rightShiftByAbsolute(e,n)}static unsignedRightShift(){throw new TypeError("BigInts have no unsigned right shift; use >> instead")}static lessThan(e,n){return 0>h.__compareToBigInt(e,n)}static lessThanOrEqual(e,n){return 0>=h.__compareToBigInt(e,n)}static greaterThan(e,n){return 0<h.__compareToBigInt(e,n)}static greaterThanOrEqual(e,n){return 0<=h.__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!h.equal(e,n)}static bitwiseAnd(e,n){var r=Math.max;if(!e.sign&&!n.sign)return h.__absoluteAnd(e,n).__trim();if(e.sign&&n.sign){const o=r(e.length,n.length)+1;let i=h.__absoluteSubOne(e,o);const a=h.__absoluteSubOne(n);return i=h.__absoluteOr(i,a,i),h.__absoluteAddOne(i,!0,i).__trim()}return e.sign&&([e,n]=[n,e]),h.__absoluteAndNot(e,h.__absoluteSubOne(n)).__trim()}static bitwiseXor(e,n){var r=Math.max;if(!e.sign&&!n.sign)return h.__absoluteXor(e,n).__trim();if(e.sign&&n.sign){const a=r(e.length,n.length),s=h.__absoluteSubOne(e,a),c=h.__absoluteSubOne(n);return h.__absoluteXor(s,c,s).__trim()}const o=r(e.length,n.length)+1;e.sign&&([e,n]=[n,e]);let i=h.__absoluteSubOne(n,o);return i=h.__absoluteXor(i,e,i),h.__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 h.__absoluteOr(e,n).__trim();if(e.sign&&n.sign){let a=h.__absoluteSubOne(e,o);const s=h.__absoluteSubOne(n);return a=h.__absoluteAnd(a,s,a),h.__absoluteAddOne(a,!0,a).__trim()}e.sign&&([e,n]=[n,e]);let i=h.__absoluteSubOne(n,o);return i=h.__absoluteAndNot(i,e,i),h.__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 h.__zero();if(e>=h.__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 h.__truncateToNBits(e,n);if(!n.sign)return h.__truncateAndSubFromPowerOfTwo(e,n,!0);if((i&a-1)==0){for(let s=o-2;0<=s;s--)if(n.__digit(s)!==0)return h.__truncateAndSubFromPowerOfTwo(e,n,!1);return n.length===o&&i===a?n:h.__truncateToNBits(e,n)}return h.__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 h.__zero();if(n.sign){if(e>h.__kMaxLengthBits)throw new RangeError("BigInt too big");return h.__truncateAndSubFromPowerOfTwo(e,n,!1)}if(e>=h.__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:h.__truncateToNBits(e,n)}static ADD(e,n){if(e=h.__toPrimitive(e),n=h.__toPrimitive(n),typeof e=="string")return typeof n!="string"&&(n=n.toString()),e+n;if(typeof n=="string")return e.toString()+n;if(e=h.__toNumeric(e),n=h.__toNumeric(n),h.__isBigInt(e)&&h.__isBigInt(n))return h.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 h.__compare(e,n,0)}static LE(e,n){return h.__compare(e,n,1)}static GT(e,n){return h.__compare(e,n,2)}static GE(e,n){return h.__compare(e,n,3)}static EQ(e,n){for(;;){if(h.__isBigInt(e))return h.__isBigInt(n)?h.equal(e,n):h.EQ(n,e);if(typeof e=="number"){if(h.__isBigInt(n))return h.__equalToNumber(n,e);if(typeof n!="object")return e==n;n=h.__toPrimitive(n)}else if(typeof e=="string"){if(h.__isBigInt(n))return e=h.__fromString(e),e!==null&&h.equal(e,n);if(typeof n!="object")return e==n;n=h.__toPrimitive(n)}else if(typeof e=="boolean"){if(h.__isBigInt(n))return h.__equalToNumber(n,+e);if(typeof n!="object")return e==n;n=h.__toPrimitive(n)}else if(typeof e=="symbol"){if(h.__isBigInt(n))return!1;if(typeof n!="object")return e==n;n=h.__toPrimitive(n)}else if(typeof e=="object"){if(typeof n=="object"&&n.constructor!==h)return e==n;e=h.__toPrimitive(e)}else return e==n}}static NE(e,n){return!h.EQ(e,n)}static DataViewGetBigInt64(e,n,r=!1){return h.asIntN(64,h.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 h(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){h.DataViewSetBigUint64(e,n,r,o)}static DataViewSetBigUint64(e,n,r,o=!1){r=h.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 h(0,!1)}static __oneDigit(e,n){const r=new h(1,n);return r.__setDigit(0,e),r}__copy(){const e=new h(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){h.__kBitConversionDouble[0]=e;const n=2047&h.__kBitConversionInts[h.__kBitConversionIntHigh]>>>20,r=n-1023,o=(0|r/30)+1,i=new h(o,0>e);let a=1048575&h.__kBitConversionInts[h.__kBitConversionIntHigh]|1048576,s=h.__kBitConversionInts[h.__kBitConversionIntLow];const c=20,l=r%30;let u,d=0;if(l<20){const m=c-l;d=m+32,u=a>>>m,a=a<<32-m|s>>>m,s<<=32-m}else if(l===20)d=32,u=a,a=s,s=0;else{const m=l-c;d=32-m,u=a<<m|s>>>32-m,a=s<<m,s=0}i.__setDigit(o-1,u);for(let m=o-2;0<=m;m--)0<d?(d-=30,u=a>>>2,a=a<<30|s>>>2,s<<=30):u=0,i.__setDigit(m,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 h.__zero();let a=e.charCodeAt(i);for(;h.__isWhitespace(a);){if(++i===o)return h.__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 h.__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 h.__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 h.__zero();a=e.charCodeAt(i)}const s=o-i;let c=h.__kMaxBitsPerChar[n],l=h.__kBitsPerCharTableMultiplier-1;if(s>1073741824/c)return null;const u=c*s+l>>>h.__kBitsPerCharTableShift,d=new h(0|(u+29)/30,!1),m=10>n?n:10,y=10<n?n-10:0;if((n&n-1)==0){c>>=h.__kBitsPerCharTableShift;const b=[],g=[];let w=!1;do{let v=0,D=0;for(;;){let M;if(a-48>>>0<m)M=a-48;else if((32|a)-97>>>0<y)M=(32|a)-87;else{w=!0;break}if(D+=c,v=v<<c|M,++i===o){w=!0;break}if(a=e.charCodeAt(i),30<D+c)break}b.push(v),g.push(D)}while(!w);h.__fillFromParts(d,b,g)}else{d.__initializeDigits();let b=!1,g=0;do{let w=0,v=1;for(;;){let M;if(a-48>>>0<m)M=a-48;else if((32|a)-97>>>0<y)M=(32|a)-87;else{b=!0;break}const C=v*n;if(1073741823<C)break;if(v=C,w=w*n+M,g++,++i===o){b=!0;break}a=e.charCodeAt(i)}l=30*h.__kBitsPerCharTableMultiplier-1;const D=0|(c*g+l>>>h.__kBitsPerCharTableShift)/30;d.__inplaceMultiplyAdd(v,w,D)}while(!b)}if(i!==o){if(!h.__isWhitespace(a))return null;for(i++;i<o;i++)if(a=e.charCodeAt(i),!h.__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=h.__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,m=0,y=0;for(let g=0;g<r-1;g++){const w=e.__digit(g),v=(m|w<<y)&a;u[d--]=h.__kConversionChars[v];const D=i-y;for(m=w>>>D,y=30-D;y>=i;)u[d--]=h.__kConversionChars[m&a],m>>>=i,y-=i}const b=(m|s<<y)&a;for(u[d--]=h.__kConversionChars[b],m=s>>>i-y;m!==0;)u[d--]=h.__kConversionChars[m&a],m>>>=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-h.__clz30(e.__digit(o-1)),a=h.__kMaxBitsPerChar[n],s=a-1;let c=i*h.__kBitsPerCharTableMultiplier;c+=s-1,c=0|c/s;const l=c+1>>1,u=h.exponentiate(h.__oneDigit(n,!1),h.__oneDigit(l,!1));let d,m;const y=u.__unsignedDigit(0);if(u.length===1&&32767>=y){d=new h(e.length,!1),d.__initializeDigits();let g=0;for(let w=2*e.length-1;0<=w;w--){const v=g<<15|e.__halfDigit(w);d.__setHalfDigit(w,0|v/y),g=0|v%y}m=g.toString(n)}else{const g=h.__absoluteDivLarge(e,u,!0,!0);d=g.quotient;const w=g.remainder.__trim();m=h.__toStringGeneric(w,n,!0)}d.__trim();let b=h.__toStringGeneric(d,n,!0);for(;m.length<l;)m="0"+m;return r===!1&&e.sign&&(b="-"+b),b+m}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 h.__unequalSign(r);const o=h.__absoluteCompare(e,n);return 0<o?h.__absoluteGreater(r):0>o?h.__absoluteLess(r):0}static __compareToNumber(e,n){if(h.__isOneDigitInt(n)){const r=e.sign,o=0>n;if(r!==o)return h.__unequalSign(r);if(e.length===0){if(o)throw new Error("implementation bug");return n===0?0:-1}if(1<e.length)return h.__absoluteGreater(r);const i=Math.abs(n),a=e.__unsignedDigit(0);return a>i?h.__absoluteGreater(r):a<i?h.__absoluteLess(r):0}return h.__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 h.__unequalSign(r);if(n===0)throw new Error("implementation bug: should be handled elsewhere");if(e.length===0)return-1;h.__kBitConversionDouble[0]=n;const o=2047&h.__kBitConversionInts[h.__kBitConversionIntHigh]>>>20;if(o==2047)throw new Error("implementation bug: handled elsewhere");const i=o-1023;if(0>i)return h.__absoluteGreater(r);const a=e.length;let s=e.__digit(a-1);const c=h.__clz30(s),l=30*a-c,u=i+1;if(l<u)return h.__absoluteLess(r);if(l>u)return h.__absoluteGreater(r);let d=1048576|1048575&h.__kBitConversionInts[h.__kBitConversionIntHigh],m=h.__kBitConversionInts[h.__kBitConversionIntLow];const y=20,b=29-c;if(b!==(0|(l-1)%30))throw new Error("implementation bug");let g,w=0;if(20>b){const v=y-b;w=v+32,g=d>>>v,d=d<<32-v|m>>>v,m<<=32-v}else if(b===20)w=32,g=d,d=m,m=0;else{const v=b-y;w=32-v,g=d<<v|m>>>32-v,d=m<<v,m=0}if(s>>>=0,g>>>=0,s>g)return h.__absoluteGreater(r);if(s<g)return h.__absoluteLess(r);for(let v=a-2;0<=v;v--){0<w?(w-=30,g=d>>>2,d=d<<30|m>>>2,m<<=30):g=0;const D=e.__unsignedDigit(v);if(D>g)return h.__absoluteGreater(r);if(D<g)return h.__absoluteLess(r)}if(d!==0||m!==0){if(w===0)throw new Error("implementation bug");return h.__absoluteLess(r)}return 0}static __equalToNumber(e,n){var r=Math.abs;return h.__isOneDigitInt(n)?n===0?e.length===0:e.length===1&&e.sign===0>n&&e.__unsignedDigit(0)===r(n):h.__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=h.__toPrimitive(e),n=h.__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(h.__isBigInt(e)&&typeof n=="string")return n=h.__fromString(n),n!==null&&h.__comparisonResultToBool(h.__compareToBigInt(e,n),r);if(typeof e=="string"&&h.__isBigInt(n))return e=h.__fromString(e),e!==null&&h.__comparisonResultToBool(h.__compareToBigInt(e,n),r);if(e=h.__toNumeric(e),n=h.__toNumeric(n),h.__isBigInt(e)){if(h.__isBigInt(n))return h.__comparisonResultToBool(h.__compareToBigInt(e,n),r);if(typeof n!="number")throw new Error("implementation bug");return h.__comparisonResultToBool(h.__compareToNumber(e,n),r)}if(typeof e!="number")throw new Error("implementation bug");if(h.__isBigInt(n))return h.__comparisonResultToBool(h.__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 h.__clz30(this.__digit(this.length-1))}static __absoluteAdd(e,n,r){if(e.length<n.length)return h.__absoluteAdd(n,e,r);if(e.length===0)return e;if(n.length===0)return e.sign===r?e:h.unaryMinus(e);let o=e.length;(e.__clzmsd()===0||n.length===e.length&&n.__clzmsd()===0)&&o++;const i=new h(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:h.unaryMinus(e);const o=new h(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 h(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 h(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 h(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 h(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 h(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 h(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),m=32767&d,y=d>>>15,b=h.__imul(m,i),g=h.__imul(m,a),w=h.__imul(y,i),v=h.__imul(y,a);l+=c+b+s,s=l>>>30,l&=1073741823,l+=((32767&g)<<15)+((32767&w)<<15),s+=l>>>30,c=v+(g>>>15)+(w>>>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=h.__imul(32767&l,n),d=h.__imul(l>>>15,n),m=u+((32767&d)<<15)+s+a;a=m>>>30,s=d>>>15,i.__setDigit(c,1073741823&m)}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,m=h.__imul(u,o),y=h.__imul(u,i),b=h.__imul(d,o),g=h.__imul(d,i);let w=s+m+a;a=w>>>30,w&=1073741823,w+=((32767&y)<<15)+((32767&b)<<15),a+=w>>>30,s=g+(y>>>15)+(b>>>15),this.__setDigit(c,1073741823&w)}if(a!=0||s!==0)throw new Error("implementation bug")}static __absoluteDivSmall(e,n,r=null){r===null&&(r=new h(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 h(s+2>>>1,!1),c.__initializeDigits());const l=new h(i+2>>>1,!1);l.__initializeDigits();const u=h.__clz15(n.__halfDigit(i-1));0<u&&(n=h.__specialLeftShift(n,u,0));const d=h.__specialLeftShift(e,u,1),m=n.__halfDigit(i-1);let y=0;for(let b,g=s;0<=g;g--){b=32767;const w=d.__halfDigit(g+i);if(w!==m){const D=(w<<15|d.__halfDigit(g+i-1))>>>0;b=0|D/m;let M=0|D%m;const C=n.__halfDigit(i-2),T=d.__halfDigit(g+i-2);for(;h.__imul(b,C)>>>0>(M<<16|T)>>>0&&(b--,M+=m,!(32767<M)););}h.__internalMultiplyAdd(n,b,0,a,l);let v=d.__inplaceSub(l,g,i+1);v!==0&&(v=d.__inplaceAdd(n,g,i),d.__setHalfDigit(g+i,32767&d.__halfDigit(g+i)+v),b--),r&&(1&g?y=b<<15:c.__setDigit(g>>>1,y|b))}if(o)return d.__inplaceRightShift(u),r?{quotient:c,remainder:d}:d;if(r)return c;throw new Error("unreachable")}static __clz15(e){return h.__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),m=(32767&u)-(32767&d)-o;o=1&m>>>15;const y=(u>>>15)-(d>>>15)-o;o=1&y>>>15,this.__setDigit(n+i,(32767&y)<<15|32767&m)}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 h(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=h.__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 h(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 m=e.__digit(d);l.__setDigit(d+o,1073741823&m<<i|u),u=m>>>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=h.__toShiftAmount(n);if(0>i)return h.__rightShiftByMaximum(o);const a=0|i/30,s=i%30;let c=r-a;if(0>=c)return h.__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 h(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 m=r-a-1;for(let y=0;y<m;y++){const b=e.__digit(y+a+1);u.__setDigit(y,1073741823&b<<30-s|d),d=b>>>s}u.__setDigit(m,d)}return l&&(u=h.__absoluteAddOne(u,!0,u)),u.__trim()}static __rightShiftByMaximum(e){return e?h.__oneDigit(1,!0):h.__zero()}static __toShiftAmount(e){if(1<e.length)return-1;const n=e.__unsignedDigit(0);return n>h.__kMaxLengthBits?-1:n}static __toPrimitive(e,n="default"){if(typeof e!="object"||e.constructor===h)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 h.__isBigInt(e)?e:+e}static __isBigInt(e){return typeof e=="object"&&e!==null&&e.constructor===h}static __truncateToNBits(e,n){const r=0|(e+29)/30,o=new h(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 h(i,r);let s=0;const c=i-1;let l=0;for(const y=o(c,n.length);s<y;s++){const b=0-n.__digit(s)-l;l=1&b>>>30,a.__setDigit(s,1073741823&b)}for(;s<c;s++)a.__setDigit(s,0|1073741823&-l);let u=c<n.length?n.__digit(c):0;const d=e%30;let m;if(d==0)m=0-u-l,m&=1073741823;else{const y=32-d;u=u<<y>>>y;const b=1<<32-y;m=b-u-l,m&=b-1}return a.__setDigit(c,m),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 h.__kBitConversionDouble[0]=-0,h.__kBitConversionInts[0]!==0}static __isOneDigitInt(e){return(1073741823&e)===e}}h.__kMaxLength=33554432,h.__kMaxLengthBits=h.__kMaxLength<<5,h.__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],h.__kBitsPerCharTableShift=5,h.__kBitsPerCharTableMultiplier=1<<h.__kBitsPerCharTableShift,h.__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"],h.__kBitConversionBuffer=new ArrayBuffer(8),h.__kBitConversionDouble=new Float64Array(h.__kBitConversionBuffer),h.__kBitConversionInts=new Int32Array(h.__kBitConversionBuffer),h.__kBitConversionIntHigh=h.__detectBigEndian()?0:1,h.__kBitConversionIntLow=h.__detectBigEndian()?1:0,h.__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)},h.__imul=Math.imul||function(t,e){return 0|t*e};const dt=h.BigInt(0),Pr=h.BigInt(1),na=h.BigInt(2),Rh=h.BigInt(10),Ah=h.BigInt(24),Ih=h.BigInt(60),Ph=h.BigInt(1e3),Zr=h.BigInt(1e6),Or=h.BigInt(1e9),cc=h.multiply(h.BigInt(3600),Or),Nh=h.multiply(Ih,Or),fn=h.multiply(cc,Ah);function qt(t){return typeof t=="bigint"?h.BigInt(t.toString(10)):t}function lc(t){return h.equal(h.remainder(t,na),dt)}function vn(t){return h.lessThan(t,dt)?h.unaryMinus(t):t}function _o(t,e){return h.lessThan(t,e)?-1:h.greaterThan(t,e)?1:0}function wr(t,e){return{quotient:h.divide(t,e),remainder:h.remainder(t,e)}}var is,as;const L="slot-epochNanoSeconds",Y="slot-iso-date",ye="slot-iso-date-time",Ee="slot-time",x="slot-calendar",uc="slot-date-brand",dc="slot-year-month-brand",hc="slot-month-day-brand",se="slot-time-zone",Ue="slot-years",Fe="slot-months",nt="slot-weeks",qe="slot-days",We="slot-hours",Ve="slot-minutes",He="slot-seconds",Ze="slot-milliseconds",Be="slot-microseconds",rt="slot-nanoseconds",fc="date",mc="ym",gc="md",yc="time",pc="datetime",bc="instant",An="original",Wn="timezone-canonical",Oi="timezone-original",vr="calendar-id",wc="locale",$i="options",vc=new WeakMap,Si=Symbol.for("@@Temporal__GetSlots");(is=globalThis)[Si]||(is[Si]=function(t){return vc.get(t)});const Bo=globalThis[Si],ki=Symbol.for("@@Temporal__CreateSlots");(as=globalThis)[ki]||(as[ki]=function(t){vc.set(t,Object.create(null))});const nn=globalThis[ki];function Je(t,...e){if(!t||typeof t!="object")return!1;const n=Bo(t);return!!n&&e.every((r=>r in n))}function f(t,e){const n=Bo(t)?.[e];if(n===void 0)throw new TypeError(`Missing internal slot ${e}`);return n}function V(t,e,n){const r=Bo(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 Ri={};function rn(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))}Ai(e,t),Ai(`${e}.prototype`,t.prototype)}function Ai(t,e){const n=`%${t}%`;if(Ri[n]!==void 0)throw new Error(`intrinsic ${t} already exists`);Ri[n]=e}function Ie(t){return Ri[t]}function Hn(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 wi(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 Go(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 Ko(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 B{constructor(e){this.totalNs=qt(e),this.sec=h.toNumber(h.divide(this.totalNs,Or)),this.subsec=h.toNumber(h.remainder(this.totalNs,Or))}static validateNew(e,n){if(h.greaterThan(vn(e),B.MAX))throw new RangeError(`${n} of duration time units cannot exceed ${B.MAX} s`);return new B(e)}static fromEpochNsDiff(e,n){const r=h.subtract(qt(e),qt(n));return new B(r)}static fromComponents(e,n,r,o,i,a){const s=h.add(h.add(h.add(h.add(h.add(h.BigInt(a),h.multiply(h.BigInt(i),Ph)),h.multiply(h.BigInt(o),Zr)),h.multiply(h.BigInt(r),Or)),h.multiply(h.BigInt(n),Nh)),h.multiply(h.BigInt(e),cc));return B.validateNew(s,"total")}abs(){return new B(vn(this.totalNs))}add(e){return B.validateNew(h.add(this.totalNs,e.totalNs),"sum")}add24HourDays(e){return B.validateNew(h.add(this.totalNs,h.multiply(h.BigInt(e),fn)),"sum")}addToEpochNs(e){return h.add(qt(e),this.totalNs)}cmp(e){return _o(this.totalNs,e.totalNs)}divmod(e){const{quotient:n,remainder:r}=wr(this.totalNs,h.BigInt(e));return{quotient:h.toNumber(n),remainder:new B(r)}}fdiv(e){const n=qt(e),r=h.BigInt(n);let{quotient:o,remainder:i}=wr(this.totalNs,r);const a=[];let s;const c=(h.lessThan(this.totalNs,dt)?-1:1)*Math.sign(h.toNumber(n));for(;!h.equal(i,dt)&&a.length<50;)i=h.multiply(i,Rh),{quotient:s,remainder:i}=wr(i,r),a.push(Math.abs(h.toNumber(s)));return c*+(vn(o).toString()+"."+a.join(""))}isZero(){return h.equal(this.totalNs,dt)}round(e,n){const r=qt(e);if(h.equal(r,Pr))return this;const{quotient:o,remainder:i}=wr(this.totalNs,r),a=h.lessThan(this.totalNs,dt)?"negative":"positive",s=h.multiply(vn(o),r),c=h.add(s,r),l=_o(vn(h.multiply(i,na)),r),u=Go(n,a),d=h.equal(vn(this.totalNs),s)?s:Ko(s,c,l,lc(o),u),m=a==="positive"?d:h.unaryMinus(d);return B.validateNew(m,"rounding")}sign(){return this.cmp(new B(dt))}subtract(e){return B.validateNew(h.subtract(this.totalNs,e.totalNs),"difference")}}B.MAX=h.BigInt("9007199254740991999999999"),B.ZERO=new B(dt);const ss=/[A-Za-z._][A-Za-z._0-9+-]*/,Br=new RegExp(`(?:${/(?:[+-](?:[01][0-9]|2[0-3])(?::?[0-5][0-9])?)/.source}|(?:${ss.source})(?:\\/(?:${ss.source}))*)`),Ec=/(?:[+-]\d{6}|\d{4})/,Co=/(?:0[1-9]|1[0-2])/,Ii=/(?:0[1-9]|[12]\d|3[01])/,jh=new RegExp(`(${Ec.source})(?:-(${Co.source})-(${Ii.source})|(${Co.source})(${Ii.source}))`),Tc=/(\d{2})(?::(\d{2})(?::(\d{2})(?:[.,](\d{1,9}))?)?|(\d{2})(?:(\d{2})(?:[.,](\d{1,9}))?)?)?/,_c=/((?:[+-])(?:[01][0-9]|2[0-3])(?::?(?:[0-5][0-9])(?::?(?:[0-5][0-9])(?:[.,](?:\d{1,9}))?)?)?)/,Cc=new RegExp(`([zZ])|${_c.source}?`),Qn=/\[(!)?([a-z_][a-z0-9_-]*)=([A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)\]/g,Lh=new RegExp([`^${jh.source}`,`(?:(?:[tT]|\\s+)${Tc.source}(?:${Cc.source})?)?`,`(?:\\[!?(${Br.source})\\])?`,`((?:${Qn.source})*)$`].join("")),Yh=new RegExp([`^[tT]?${Tc.source}`,`(?:${Cc.source})?`,`(?:\\[!?${Br.source}\\])?`,`((?:${Qn.source})*)$`].join("")),zh=new RegExp(`^(${Ec.source})-?(${Co.source})(?:\\[!?${Br.source}\\])?((?:${Qn.source})*)$`),Uh=new RegExp(`^(?:--)?(${Co.source})-?(${Ii.source})(?:\\[!?${Br.source}\\])?((?:${Qn.source})*)$`),vi=/(\d+)(?:[.,](\d{1,9}))?/,Fh=new RegExp(`(?:${vi.source}H)?(?:${vi.source}M)?(?:${vi.source}S)?`),qh=new RegExp(`^([+-])?P${/(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?/.source}(?:T(?!$)${Fh.source})?$`,"i"),mn=864e5,Do=1e6*mn,Wh=6e10,Dc=1e8*mn,Jn=It(Dc),Nr=h.unaryMinus(Jn),Vh=h.add(h.subtract(Nr,fn),Pr),Hh=h.subtract(h.add(Jn,fn),Pr),Zh=146097*mn,cs=-271821,ls=275760,$r=Date.UTC(1847,0,1),Bh=["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"],Gh=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 Te(t){return typeof t=="object"&&t!==null||typeof t=="function"}function Xo(t){if(typeof t=="bigint")throw new TypeError("Cannot convert BigInt to number");return Number(t)}function Qo(t){if(typeof t=="symbol")throw new TypeError("Cannot convert a Symbol value to a String");return String(t)}function z(t){const e=Xo(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 us(t,e){const n=z(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 Dt(t){const e=Xo(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 jr(t,e){return String(t).padStart(e,"0")}function xe(t){if(typeof t!="string")throw new TypeError(`expected a string, not ${String(t)}`);return t}function Pi(t,e){if(Te(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 Ni=["era","eraYear","year","month","monthCode","day","hour","minute","second","millisecond","microsecond","nanosecond","offset","timeZone"],Kh={era:Qo,eraYear:z,year:z,month:us,monthCode:function(t){const e=xe(Pi(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:us,hour:z,minute:z,second:z,millisecond:z,microsecond:z,nanosecond:z,offset:function(t){const e=xe(Pi(t));return lr(e),e},timeZone:Xe},Xh={hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0},er=[["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"]],ds=Object.fromEntries(er.map((t=>[t[0],t[1]]))),Qh=Object.fromEntries(er.map((([t,e])=>[e,t]))),Sr=er.map((([,t])=>t)),tr={day:Do,hour:36e11,minute:6e10,second:1e9,millisecond:1e6,microsecond:1e3,nanosecond:1},Mo=["days","hours","microseconds","milliseconds","minutes","months","nanoseconds","seconds","weeks","years"],Jh=Intl.DateTimeFormat,hs=new Map;function Mc(t){const e=Fr(t);let n=hs.get(e);return n===void 0&&(n=new Jh("en-us",{timeZone:e,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),hs.set(e,n)),n}function ke(t){return Je(t,L)&&!Je(t,se,x)}function we(t){return Je(t,Ue,Fe,qe,We,Ve,He,Ze,Be,rt)}function ve(t){return Je(t,uc)}function De(t){return Je(t,Ee)}function ge(t){return Je(t,ye)}function Re(t){return Je(t,dc)}function lt(t){return Je(t,hc)}function Z(t){return Je(t,L,se,x)}function E(t,e){if(!e(t))throw new TypeError("invalid receiver: method called with the wrong type of this-object")}function ar(t){if(Je(t,x)||Je(t,se))throw new TypeError("with() does not support a calendar or timeZone property");if(De(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 Gr(t,e){return e==="never"||e==="auto"&&t==="iso8601"?"":`[${e==="critical"?"!":""}u-ca=${t}]`}function Jo(t){let e,n,r=!1;for(Qn.lastIndex=0;n=Qn.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 zt(t){const e=Lh.exec(t);if(!e)throw new RangeError(`invalid RFC 9557 string: ${t}`);const n=Jo(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",m=+d.slice(0,3),y=+d.slice(3,6),b=+d.slice(6,9);let g,w=!1;e[13]?(g=void 0,w=!0):e[14]&&(g=e[14]);const v=e[15];return ca(o,i,a,c,l,u,m,y,b),{year:o,month:i,day:a,time:s?{hour:c,minute:l,second:u,millisecond:m,microsecond:y,nanosecond:b}:"start-of-day",tzAnnotation:v,offset:g,z:w,calendar:n}}function xc(t){const e=Yh.exec(t);let n,r,o,i,a,s,c;if(e){c=Jo(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}=zt(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(ri(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}=oa(t);On(1972,l,u)}catch{try{const{year:l,month:u}=ra(t);On(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 ra(t){const e=zh.exec(t);let n,r,o,i;if(e){o=Jo(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}=zt(t),a)throw new RangeError("Z designator not supported for PlainYearMonth")}return{year:n,month:r,calendar:o,referenceISODay:i}}function oa(t){const e=Uh.exec(t);let n,r,o,i;if(e){if(o=Jo(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}=zt(t),a)throw new RangeError("Z designator not supported for PlainMonthDay")}return{month:n,day:r,calendar:o,referenceISOYear:i}}const Oc=new RegExp(`^${Br.source}$`,"i"),$c=new RegExp(`^${/([+-])([01][0-9]|2[0-3])(?::?([0-5][0-9])?)?/.source}$`);function Sc(t){const e=tf.test(t)?"Seconds not allowed in offset time zone":"Invalid time zone";throw new RangeError(`${e}: ${t}`)}function un(t){return Oc.test(t)||Sc(t),$c.test(t)?{offsetMinutes:lr(t)/6e10}:{tzName:t}}function kr(t,e,n,r){let o=t,i=e,a=n;switch(r){case"reject":On(o,i,a);break;case"constrain":({year:o,month:i,day:a}=Zc(o,i,a))}return{year:o,month:i,day:a}}function ei(t,e,n,r,o,i,a){let s=t,c=e,l=n,u=r,d=o,m=i;switch(a){case"reject":ri(s,c,l,u,d,m);break;case"constrain":s=Ge(s,0,23),c=Ge(c,0,59),l=Ge(l,0,59),u=Ge(u,0,999),d=Ge(d,0,999),m=Ge(m,0,999)}return{hour:s,minute:c,second:l,millisecond:u,microsecond:d,nanosecond:m}}function kc(t){if(!Te(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<Mo.length;r++){const o=Mo[r],i=t[o];i!==void 0&&(n=!0,e[o]=Dt(i))}if(!n)throw new TypeError("invalid duration-like");return e}function Ne({years:t,months:e,weeks:n,days:r},o,i,a){return{years:t,months:a??e,weeks:i??n,days:o??r}}function te(t,e){return{isoDate:t,time:e}}function ee(t){return Qt(t,"overflow",["constrain","reject"],"constrain")}function Rr(t){return Qt(t,"disambiguation",["compatible","earlier","later","reject"],"compatible")}function Mt(t,e){return Qt(t,"roundingMode",["ceil","floor","expand","trunc","halfCeil","halfFloor","halfExpand","halfTrunc","halfEven"],e)}function bo(t,e){return Qt(t,"offset",["prefer","use","ignore","reject"],e)}function Kr(t){return Qt(t,"calendarName",["auto","always","never","critical"],"auto")}function sr(t){let e=t.roundingIncrement;if(e===void 0)return 1;const n=z(e);if(n<1||n>1e9)throw new RangeError(`roundingIncrement must be at least 1 and at most 1e9, not ${e}`);return n}function cr(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 Xr(t){const e=t.fractionalSecondDigits;if(e===void 0)return"auto";if(typeof e!="number"){if(Qo(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 Qr(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 tn=Symbol("~required~");function it(t,e,n,r,o=[]){let i=[];for(let l=0;l<er.length;l++){const u=er[l],d=u[1],m=u[2];n!=="datetime"&&n!==m||i.push(d)}i=i.concat(o);let a=r;a===tn?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=Qh[u];d!==void 0&&s.push(d)}let c=Qt(t,e,s,a);if(c===void 0&&r===tn)throw new RangeError(`${e} is required`);return c&&c in ds?ds[c]:c}function Ei(t){const e=t.relativeTo;if(e===void 0)return{};let n,r,o,i,a,s="option",c=!1;if(Te(e)){if(Z(e))return{zonedRelativeTo:e};if(ve(e))return{plainRelativeTo:e};if(ge(e))return{plainRelativeTo:Ke(f(e,ye).isoDate,f(e,x))};o=ro(e);const l=gt(o,e,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond","offset","timeZone"],[]);({isoDate:n,time:r}=eo(o,l,"constrain")),{offset:a,timeZone:i}=l,a===void 0&&(s="wall")}else{let l,u,d,m,y;if({year:d,month:m,day:y,time:r,calendar:o,tzAnnotation:l,offset:a,z:u}=zt(xe(e)),l)i=Xe(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=et(o),n={year:d,month:m,day:y}}return i===void 0?{plainRelativeTo:Ke(n,o)}:{zonedRelativeTo:Pe(xo(n,r,s,s==="option"?lr(a):0,i,"compatible","reject",c),i,o)}}function Vt(t){return f(t,Ue)!==0?"year":f(t,Fe)!==0?"month":f(t,nt)!==0?"week":f(t,qe)!==0?"day":f(t,We)!==0?"hour":f(t,Ve)!==0?"minute":f(t,He)!==0?"second":f(t,Ze)!==0?"millisecond":f(t,Be)!==0?"microsecond":"nanosecond"}function Kt(t,e){return Sr.indexOf(t)>Sr.indexOf(e)?e:t}function St(t){return t==="year"||t==="month"||t==="week"}function Ht(t){return St(t)||t==="day"?"date":"time"}function pn(t){return Ie("%calendarImpl%")(t)}function Jr(t){return Ie("%calendarImpl%")(f(t,x))}function Qe(t,e,n="date"){const r=Object.create(null),o=pn(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 gt(t,e,n,r,o){const i=pn(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,Kh[u])(d);else if(o!=="partial"){if(o.includes(u))throw new TypeError(`required property '${u}' missing or undefined`);s[u]=Xh[u]}}if(o==="partial"&&!c)throw new TypeError("no supported properties found");return s}function ji(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]=z(s),r=!0):e==="complete"&&(o[a]=0)}if(!r)throw new TypeError("invalid time-like");return o}function Er(t,e){if(Te(t)){if(ve(t))return ee(P(e)),Ke(f(t,Y),f(t,x));if(Z(t)){const c=Tt(f(t,se),f(t,L));return ee(P(e)),Ke(c.isoDate,f(t,x))}if(ge(t))return ee(P(e)),Ke(f(t,ye).isoDate,f(t,x));const s=ro(t);return Ke(gn(s,gt(s,t,["year","month","monthCode","day"],[],[]),ee(P(e))),s)}let{year:n,month:r,day:o,calendar:i,z:a}=zt(xe(t));if(a)throw new RangeError("Z designator not supported for PlainDate");return i||(i="iso8601"),i=et(i),ee(P(e)),Ke({year:n,month:r,day:o},i)}function eo(t,e,n){return te(gn(t,e,n),ei(e.hour,e.minute,e.second,e.millisecond,e.microsecond,e.nanosecond,n))}function Tr(t,e){let n,r,o;if(Te(t)){if(ge(t))return ee(P(e)),bt(f(t,ye),f(t,x));if(Z(t)){const s=Tt(f(t,se),f(t,L));return ee(P(e)),bt(s,f(t,x))}if(ve(t))return ee(P(e)),bt(te(f(t,Y),{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),f(t,x));o=ro(t);const i=gt(o,t,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond"],[]),a=ee(P(e));({isoDate:n,time:r}=eo(o,i,a))}else{let i,a,s,c;if({year:a,month:s,day:c,time:r,calendar:o,z:i}=zt(xe(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}),ca(a,s,c,r.hour,r.minute,r.second,r.millisecond,r.microsecond,r.nanosecond),o||(o="iso8601"),o=et(o),ee(P(e)),n={year:a,month:s,day:c}}return bt(te(n,r),o)}function Et(t){const e=Ie("%Temporal.Duration%");if(we(t))return new e(f(t,Ue),f(t,Fe),f(t,nt),f(t,qe),f(t,We),f(t,Ve),f(t,He),f(t,Ze),f(t,Be),f(t,rt));if(!Te(t))return(function(o){const{years:i,months:a,weeks:s,days:c,hours:l,minutes:u,seconds:d,milliseconds:m,microseconds:y,nanoseconds:b}=(function(g){const w=qh.exec(g);if(!w)throw new RangeError(`invalid duration: ${g}`);if(w.every(((ct,hr)=>hr<2||ct===void 0)))throw new RangeError(`invalid duration: ${g}`);const v=w[1]==="-"?-1:1,D=w[2]===void 0?0:z(w[2])*v,M=w[3]===void 0?0:z(w[3])*v,C=w[4]===void 0?0:z(w[4])*v,T=w[5]===void 0?0:z(w[5])*v,k=w[6]===void 0?0:z(w[6])*v,U=w[7],G=w[8],N=w[9],ae=w[10],q=w[11];let p=0,R=0,O=0;if(U!==void 0){if(G??N??ae??q)throw new RangeError("only the smallest unit can be fractional");O=3600*z((U+"000000000").slice(0,9))*v}else if(p=G===void 0?0:z(G)*v,N!==void 0){if(ae??q)throw new RangeError("only the smallest unit can be fractional");O=60*z((N+"000000000").slice(0,9))*v}else R=ae===void 0?0:z(ae)*v,q!==void 0&&(O=z((q+"000000000").slice(0,9))*v);const j=O%1e3,H=Math.trunc(O/1e3)%1e3,pe=Math.trunc(O/1e6)%1e3;return R+=Math.trunc(O/1e9)%60,p+=Math.trunc(O/6e10),oi(D,M,C,T,k,p,R,pe,H,j),{years:D,months:M,weeks:C,days:T,hours:k,minutes:p,seconds:R,milliseconds:pe,microseconds:H,nanoseconds:j}})(o);return new(Ie("%Temporal.Duration%"))(i,a,s,c,l,u,d,m,y,b)})(xe(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=kc(t);for(let o=0;o<Mo.length;o++){const i=Mo[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 _r(t){let e;if(Te(t)){if(ke(t)||Z(t))return Rt(f(t,L));e=Pi(t)}else e=t;const{year:n,month:r,day:o,time:i,offset:a,z:s}=(function(g){const w=zt(g);if(!w.z&&!w.offset)throw new RangeError("Temporal.Instant requires a time zone offset");return w})(xe(e)),{hour:c=0,minute:l=0,second:u=0,millisecond:d=0,microsecond:m=0,nanosecond:y=0}=i==="start-of-day"?{}:i,b=Ur(n,r,o,c,l,u,d,m,y-(s?0:lr(a)));return Kn(b.isoDate),Rt(Ae(b))}function fs(t,e){if(Te(t)){if(lt(t))return ee(P(e)),Zn(f(t,Y),f(t,x));let s;return Je(t,x)?s=f(t,x):(s=t.calendar,s===void 0&&(s="iso8601"),s=no(s)),Zn(Oo(s,gt(s,t,["year","month","monthCode","day"],[],[]),ee(P(e))),s)}let{month:n,day:r,referenceISOYear:o,calendar:i}=oa(xe(t));if(i===void 0&&(i="iso8601"),i=et(i),ee(P(e)),i==="iso8601")return Zn({year:1972,month:n,day:r},i);let a={year:o,month:n,day:r};return In(a),a=Oo(i,Qe(i,a,"month-day"),"constrain"),Zn(a,i)}function cn(t,e){let n;if(Te(t)){if(De(t))return ee(P(e)),Bt(f(t,Ee));if(ge(t))return ee(P(e)),Bt(f(t,ye).time);if(Z(t)){const l=Tt(f(t,se),f(t,L));return ee(P(e)),Bt(l.time)}const{hour:r,minute:o,second:i,millisecond:a,microsecond:s,nanosecond:c}=ji(t);n=ei(r,o,i,a,s,c,ee(P(e)))}else n=xc(xe(t)),ee(P(e));return Bt(n)}function Rc(t){return t===void 0?{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}:f(cn(t),Ee)}function Cr(t,e){if(Te(t)){if(Re(t))return ee(P(e)),Gn(f(t,Y),f(t,x));const s=ro(t);return Gn(Lr(s,gt(s,t,["year","month","monthCode"],[],[]),ee(P(e))),s)}let{year:n,month:r,referenceISODay:o,calendar:i}=ra(xe(t));i===void 0&&(i="iso8601"),i=et(i),ee(P(e));let a={year:n,month:r,day:o};return la(a),a=Lr(i,Qe(i,a,"year-month"),"constrain"),Gn(a,i)}function xo(t,e,n,r,o,i,a,s){if(e==="start-of-day")return on(o,t);const c=te(t,e);if(n==="wall"||a==="ignore")return je(o,c,i);if(n==="exact"||a==="use"){const d=Ur(t.year,t.month,t.day,e.hour,e.minute,e.second,e.millisecond,e.microsecond,e.nanosecond-r);Kn(d.isoDate);const m=Ae(d);return Lt(m),m}Kn(t);const l=Ae(c),u=Yr(o,c);for(let d=0;d<u.length;d++){const m=u[d],y=h.toNumber(h.subtract(l,m)),b=ln(y,6e10,"halfExpand");if(y===r||s&&b===r)return m}if(a==="reject"){const d=Li(r),m=zr(c,"iso8601","auto");throw new RangeError(`Offset ${d} is invalid for ${m} in ${o}`)}return Uc(u,o,c,i)}function Dr(t,e){let n,r,o,i,a,s,c,l=!1,u="option";if(Te(t)){if(Z(t)){const g=P(e);return Rr(g),bo(g,"reject"),ee(g),Pe(f(t,L),f(t,se),f(t,x))}a=ro(t);const m=gt(a,t,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond","offset","timeZone"],["timeZone"]);({offset:i,timeZone:o}=m),i===void 0&&(u="wall");const y=P(e);s=Rr(y),c=bo(y,"reject");const b=ee(y);({isoDate:n,time:r}=eo(a,m,b))}else{let m,y,b,g,w;({year:b,month:g,day:w,time:r,tzAnnotation:m,offset:i,z:y,calendar:a}=(function(D){const M=zt(D);if(!M.tzAnnotation)throw new RangeError("Temporal.ZonedDateTime requires a time zone ID in brackets");return M})(xe(t))),o=Xe(m),y?u="exact":i||(u="wall"),a||(a="iso8601"),a=et(a),l=!0;const v=P(e);s=Rr(v),c=bo(v,"reject"),ee(v),n={year:b,month:g,day:w}}let d=0;return u==="option"&&(d=lr(i)),Pe(xo(n,r,u,d,o,s,c,l),o,a)}function Ac(t,e,n){In(e),nn(t),V(t,Y,e),V(t,x,n),V(t,uc,!0)}function Ke(t,e){const n=Ie("%Temporal.PlainDate%"),r=Object.create(n.prototype);return Ac(r,t,e),r}function Ic(t,e,n){$n(e),nn(t),V(t,ye,e),V(t,x,n)}function bt(t,e){const n=Ie("%Temporal.PlainDateTime%"),r=Object.create(n.prototype);return Ic(r,t,e),r}function Pc(t,e,n){In(e),nn(t),V(t,Y,e),V(t,x,n),V(t,hc,!0)}function Zn(t,e){const n=Ie("%Temporal.PlainMonthDay%"),r=Object.create(n.prototype);return Pc(r,t,e),r}function Nc(t,e){nn(t),V(t,Ee,e)}function Bt(t){const e=Ie("%Temporal.PlainTime%"),n=Object.create(e.prototype);return Nc(n,t),n}function jc(t,e,n){la(e),nn(t),V(t,Y,e),V(t,x,n),V(t,dc,!0)}function Gn(t,e){const n=Ie("%Temporal.PlainYearMonth%"),r=Object.create(n.prototype);return jc(r,t,e),r}function Lc(t,e){Lt(e),nn(t),V(t,L,e)}function Rt(t){const e=Ie("%Temporal.Instant%"),n=Object.create(e.prototype);return Lc(n,t),n}function Yc(t,e,n,r){Lt(e),nn(t),V(t,L,e),V(t,se,n),V(t,x,r)}function Pe(t,e,n="iso8601"){const r=Ie("%Temporal.ZonedDateTime%"),o=Object.create(r.prototype);return Yc(o,t,e,n),o}function ms(t){return Ni.filter((e=>t[e]!==void 0))}function xn(t,e,n){const r=ms(n),o=pn(t).fieldKeysToIgnore(r),i=Object.create(null),a=ms(e);for(let s=0;s<Ni.length;s++){let c;const l=Ni[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 ft(t,e,n,r){const o=pn(t).dateAdd(e,n,r);return In(o),o}function to(t,e,n,r){return pn(t).dateUntil(e,n,r)}function no(t){if(Te(t)&&Je(t,x))return f(t,x);const e=xe(t);try{return et(e)}catch{}let n;try{({calendar:n}=zt(e))}catch{try{({calendar:n}=xc(e))}catch{try{({calendar:n}=ra(e))}catch{({calendar:n}=oa(e))}}}return n||(n="iso8601"),et(n)}function ro(t){if(Je(t,x))return f(t,x);const{calendar:e}=t;return e===void 0?"iso8601":no(e)}function jt(t,e){return et(t)===et(e)}function gn(t,e,n){const r=pn(t);r.resolveFields(e,"date");const o=r.dateToISO(e,n);return In(o),o}function Lr(t,e,n){const r=pn(t);r.resolveFields(e,"year-month"),e.day=1;const o=r.dateToISO(e,n);return la(o),o}function Oo(t,e,n){const r=pn(t);r.resolveFields(e,"month-day");const o=r.monthDayToISOReferenceDate(e,n);return In(o),o}function Xe(t){if(Te(t)&&Z(t))return f(t,se);const e=xe(t);if(e==="UTC")return"UTC";const{tzName:n,offsetMinutes:r}=(function(i){const{tzAnnotation:a,offset:s,z:c}=(function(l){if(Oc.test(l))return{tzAnnotation:l,offset:void 0,z:!1};try{const{tzAnnotation:u,offset:d,z:m}=zt(l);if(m||u||d)return{tzAnnotation:u,offset:d,z:m}}catch{}Sc(l)})(i);return a?un(a):c?un("UTC"):s?un(s):void 0})(e);if(r!==void 0)return ia(r);const o=$o(n);if(!o)throw new RangeError(`Unrecognized time zone ${n}`);return o.identifier}function zc(t,e){if(t===e)return!0;const n=un(t).offsetMinutes,r=un(e).offsetMinutes;if(n===void 0&&r===void 0){const o=$o(e);if(!o)return!1;const i=$o(t);return!!i&&i.primaryIdentifier===o.primaryIdentifier}return n===r}function Gt(t,e){const n=un(t).offsetMinutes;return n!==void 0?6e10*n:Yi(t,e)}function Li(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}${ti(r,o,i,a,i===0&&a===0?"minute":"auto")}`}function Tt(t,e){const n=Gt(t,e);let{isoDate:{year:r,month:o,day:i},time:{hour:a,minute:s,second:c,millisecond:l,microsecond:u,nanosecond:d}}=Wc(e);return Ur(r,o,i,a,s,c,l,u,d+n)}function je(t,e,n){return Uc(Yr(t,e),t,e,n)}function Uc(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=Ae(n),a=h.subtract(i,fn);Lt(a);const s=Gt(e,a),c=h.add(i,fn);Lt(c);const l=Gt(e,c)-s;switch(r){case"earlier":{const u=B.fromComponents(0,0,0,0,0,-l),d=nr(n.time,u);return Yr(e,te(at(n.isoDate.year,n.isoDate.month,n.isoDate.day+d.deltaDays),d))[0]}case"compatible":case"later":{const u=B.fromComponents(0,0,0,0,0,l),d=nr(n.time,u),m=Yr(e,te(at(n.isoDate.year,n.isoDate.month,n.isoDate.day+d.deltaDays),d));return m[m.length-1]}}}function Yr(t,e){if(t==="UTC")return Kn(e.isoDate),[Ae(e)];const n=un(t).offsetMinutes;if(n!==void 0){const r=Ur(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);Kn(r.isoDate);const o=Ae(r);return Lt(o),[o]}return Kn(e.isoDate),(function(r,o){let i=Ae(o),a=h.subtract(i,fn);h.lessThan(a,Nr)&&(a=i);let s=h.add(i,fn);h.greaterThan(s,Jn)&&(s=i);const c=Yi(r,a),l=Yi(r,s);return(c===l?[c]:[c,l]).map((d=>{const m=h.subtract(i,h.BigInt(d)),y=(function(b,g){const{epochMilliseconds:w,time:{millisecond:v,microsecond:D,nanosecond:M}}=Wc(g),{year:C,month:T,day:k,hour:U,minute:G,second:N}=Vc(b,w);return Ur(C,T,k,U,G,N,v,D,M)})(r,m);if(rr(o,y)===0)return Lt(m),m})).filter((d=>d!==void 0))})(t,e)}function on(t,e){const n=te(e,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),r=Yr(t,n);if(r.length)return r[0];const o=Ae(n),i=h.subtract(o,fn);return Lt(i),sa(t,i)}function oo(t){let e;return e=t<0||t>9999?(t<0?"-":"+")+jr(Math.abs(t),6):jr(t,4),e}function mt(t){return jr(t,2)}function Fc(t,e){let n;if(e==="auto"){if(t===0)return"";n=jr(t,9).replace(/0+$/,"")}else{if(e===0)return"";n=jr(t,9).slice(0,e)}return`.${n}`}function ti(t,e,n,r,o){let i=`${mt(t)}:${mt(e)}`;return o==="minute"||(i+=`:${mt(n)}`,i+=Fc(r,o)),i}function gs(t,e,n){let r=e;r===void 0&&(r="UTC");const o=f(t,L),i=zr(Tt(r,o),"iso8601",n,"never");let a="Z";return e!==void 0&&(a=qc(Gt(r,o))),`${i}${a}`}function yo(t,e){const n=f(t,Ue),r=f(t,Fe),o=f(t,nt),i=f(t,qe),a=f(t,We),s=f(t,Ve),c=ko(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=B.fromComponents(0,0,f(t,He),f(t,Ze),f(t,Be),f(t,rt));d.isZero()&&!["second","millisecond","microsecond","nanosecond"].includes(Vt(t))&&e==="auto"||(u+=`${Math.abs(d.sec)}${Fc(Math.abs(d.subsec),e)}S`);let m=`${c<0?"-":""}P${l}`;return u&&(m=`${m}T${u}`),m}function ys(t,e="auto"){const{year:n,month:r,day:o}=f(t,Y);return`${oo(n)}-${mt(r)}-${mt(o)}${Gr(f(t,x),e)}`}function ps({hour:t,minute:e,second:n,millisecond:r,microsecond:o,nanosecond:i},a){return ti(t,e,n,1e6*r+1e3*o+i,a)}function zr(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:m}}=t;return`${oo(o)}-${mt(i)}-${mt(a)}T${ti(s,c,l,1e6*u+1e3*d+m,n)}${Gr(e,r)}`}function bs(t,e="auto"){const{year:n,month:r,day:o}=f(t,Y);let i=`${mt(r)}-${mt(o)}`;const a=f(t,x);e!=="always"&&e!=="critical"&&a==="iso8601"||(i=`${oo(n)}-${i}`);const s=Gr(a,e);return s&&(i+=s),i}function ws(t,e="auto"){const{year:n,month:r,day:o}=f(t,Y);let i=`${oo(n)}-${mt(r)}`;const a=f(t,x);e!=="always"&&e!=="critical"&&a==="iso8601"||(i+=`-${mt(o)}`);const s=Gr(a,e);return s&&(i+=s),i}function vs(t,e,n="auto",r="auto",o="auto",i=void 0){let a=f(t,L);if(i){const{unit:u,increment:d,roundingMode:m}=i;a=qi(a,d,u,m)}const s=f(t,se),c=Gt(s,a);let l=zr(Tt(s,a),"iso8601",e,"never");return o!=="never"&&(l+=qc(c)),r!=="never"&&(l+=`[${r==="critical"?"!":""}${s}]`),l+=Gr(f(t,x),n),l}function Es(t){return $c.test(t)}function lr(t){const e=nf.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 mr;const ef=Object.assign(Object.create(null),{"/":!0,"-":!0,_:!0});function $o(t){if(mr===void 0){const i=Intl.supportedValuesOf?.("timeZone");if(i){mr=new Map;for(let a=0;a<i.length;a++){const s=i[a];mr.set(Fr(s),s)}}else mr=null}const e=Fr(t);let n=mr?.get(e);if(n)return{identifier:n,primaryIdentifier:n};try{n=Mc(t).resolvedOptions().timeZone}catch{return}if(e==="antarctica/south_pole"&&(n="Antarctica/McMurdo"),Gh.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||ef[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 Cn(t,e){const{year:n,month:r,day:o,hour:i,minute:a,second:s}=Vc(t,e);let c=e%1e3;return c<0&&(c+=1e3),1e6*(aa({isoDate:{year:n,month:r,day:o},time:{hour:i,minute:a,second:s,millisecond:c}})-e)}function Yi(t,e){return Cn(t,_t(e,"floor"))}function ia(t){const e=t<0?"-":"+",n=Math.abs(t);return`${e}${ti(Math.floor(n/60),n%60,0,0,"minute")}`}function qc(t){return ia(ln(t,Wh,"halfExpand")/6e10)}function aa({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()+Zh*c}function Ae(t){const e=aa(t),n=1e3*t.time.microsecond+t.time.nanosecond;return h.add(It(e),h.BigInt(n))}function Wc(t){let e=_t(t,"trunc"),n=h.toNumber(h.remainder(t,Zr));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 sa(t,e){if(t==="UTC")return null;const n=_t(e,"floor");if(n<$r)return sa(t,It($r));const r=Date.now(),o=Math.max(n,r)+366*mn*3;let i=n,a=Cn(t,i),s=i,c=a;for(;a===c&&i<o;){if(s=i+2*mn*7,s>Dc)return null;c=Cn(t,s),a===c&&(i=s)}return a===c?null:It(tl((l=>Cn(t,l)),i,s,a,c))}function zi(t,e){if(t==="UTC")return null;const n=_t(e,"ceil"),r=Date.now(),o=r+366*mn*3;if(n>o){const l=zi(t,It(o));if(l===null||h.lessThan(l,It(r)))return l}if(t==="Africa/Casablanca"||t==="Africa/El_Aaiun"){const l=Date.UTC(2088,0,1);if(l<n)return zi(t,It(l))}let i=n-1;if(i<$r)return null;let a=Cn(t,i),s=i,c=a;for(;a===c&&i>$r;){if(s=i-2*mn*7,s<$r)return null;c=Cn(t,s),a===c&&(i=s)}return a===c?null:It(tl((l=>Cn(t,l)),s,i,c,a))}function Vc(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}})(Mc(t).format(e))}function So(t){return t!==void 0&&!(t%4!=0||t%100==0&&t%400!=0)}function Dn(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]}[So(t)?"leapyear":"standard"][e-1]}function ko(t){const e=[f(t,Ue),f(t,Fe),f(t,nt),f(t,qe),f(t,We),f(t,Ve),f(t,He),f(t,Ze),f(t,Be),f(t,rt)];for(let n=0;n<e.length;n++){const r=e[n];if(r!==0)return r<0?-1:1}return 0}function ni(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 Hc(t){const e=ni(t.date);return e!==0?e:t.time.sign()}function Tn(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 at(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}=Tn(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=So(c)?366:365,i<-s;)r-=1,c-=1,i+=s;for(c+=1;s=So(c)?366:365,i>s;)r+=1,c+=1,i-=s;for(;i<1;)({year:r,month:o}=Tn(r,o-1)),i+=Dn(r,o);for(;i>Dn(r,o);)i-=Dn(r,o),{year:r,month:o}=Tn(r,o+1);return{year:r,month:o,day:i}}function Ur(t,e,n,r,o,i,a,s,c){const l=an(r,o,i,a,s,c);return te(at(t,e,n+l.deltaDays),l)}function an(t,e,n,r,o,i){let a,s=t,c=e,l=n,u=r,d=o,m=i;({div:a,mod:m}=Hn(m,3)),d+=a,m<0&&(d-=1,m+=1e3),{div:a,mod:d}=Hn(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,m+=0,{deltaDays:y,hour:s,minute:c,second:l,millisecond:u,microsecond:d,nanosecond:m}}function Ts(t,e){const n=Ne(t,0);if(ni(n)===0)return t.days;const r=f(e,Y),o=ft(f(e,x),r,n,"constrain"),i=Sn(r.year,r.month-1,r.day),a=Sn(o.year,o.month-1,o.day)-i;return t.days+a}function st(t){return new(Ie("%Temporal.Duration%"))(-f(t,Ue),-f(t,Fe),-f(t,nt),-f(t,qe),-f(t,We),-f(t,Ve),-f(t,He),-f(t,Ze),-f(t,Be),-f(t,rt))}function Ge(t,e,n){return Math.min(n,Math.max(e,t))}function Zc(t,e,n){const r=Ge(e,1,12);return{year:t,month:r,day:Ge(n,1,Dn(t,r))}}function $e(t,e,n){if(t<e||t>n)throw new RangeError(`value out of range: ${e} <= ${t} <= ${n}`)}function On(t,e,n){$e(e,1,12),$e(n,1,Dn(t,e))}function In(t){$n(te(t,{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}))}function ri(t,e,n,r,o,i){$e(t,0,23),$e(e,0,59),$e(n,0,59),$e(r,0,999),$e(o,0,999),$e(i,0,999)}function ca(t,e,n,r,o,i,a,s,c){On(t,e,n),ri(r,o,i,a,s,c)}function $n(t){const e=Ae(t);(h.lessThan(e,Vh)||h.greaterThan(e,Hh))&&Lt(e)}function Ui(t){Ae(t)}function Lt(t){if(h.lessThan(t,Nr)||h.greaterThan(t,Jn))throw new RangeError("date/time value is outside of supported range")}function la({year:t,month:e}){$e(t,cs,ls),t===cs?$e(e,4,12):t===ls&&$e(e,1,9)}function oi(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 v=0;v<d.length;v++){const D=d[v];if(D===1/0||D===-1/0)throw new RangeError("infinite values not allowed as duration fields");if(D!==0){const M=D<0?-1:1;if(u!==0&&M!==u)throw new RangeError("mixed-sign values not allowed as duration fields");u=M}}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 m=Hn(s,3),y=Hn(c,6),b=Hn(l,9),g=Hn(1e6*m.mod+1e3*y.mod+b.mod,9).div,w=86400*r+3600*o+60*i+a+m.div+y.div+b.div+g;if(!Number.isSafeInteger(w))throw new RangeError("total of duration time units cannot exceed 9007199254740991.999999999 s")}function Vn(t){return{date:{years:f(t,Ue),months:f(t,Fe),weeks:f(t,nt),days:f(t,qe)},time:B.fromComponents(f(t,We),f(t,Ve),f(t,He),f(t,Ze),f(t,Be),f(t,rt))}}function At(t){const e=B.fromComponents(f(t,We),f(t,Ve),f(t,He),f(t,Ze),f(t,Be),f(t,rt)).add24HourDays(f(t,qe));return{date:{years:f(t,Ue),months:f(t,Fe),weeks:f(t,nt),days:0},time:e}}function Bc(t){const e=At(t),n=Math.trunc(e.time.sec/86400);return oi(e.date.years,e.date.months,e.date.weeks,n,0,0,0,0,0,0),{...e.date,days:n}}function wt(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=wi(a,3,Math.trunc(o/1e3)),o%=1e3,a=0;break;case"microsecond":o=wi(a,6,Math.trunc(r/1e3)),r%=1e3,a=0;break;case"nanosecond":r=wi(a,9,r),a=0}return new(Ie("%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 Xt(t,e){return ni(t),e.sign(),{date:t,time:e}}function Sn(t,e,n){return aa({isoDate:{year:t,month:e+1,day:n},time:{hour:0,minute:0,second:0,millisecond:0}})/mn}function Kn({year:t,month:e,day:n}){if(Math.abs(Sn(t,e-1,n))>1e8)throw new RangeError("date/time value is outside the supported range")}function ua(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 B.fromComponents(n,r,o,i,a,s)}function da(t,e,n,r,o){let i=B.fromEpochNsDiff(e,t);return i=Ro(i,n,r,o),Xt({years:0,months:0,weeks:0,days:0},i)}function Gc(t,e,n,r){Ui(t),Ui(e);let o=ua(t.time,e.time);const i=o.sign(),a=Yt(t.isoDate,e.isoDate);let s=e.isoDate;a===i&&(s=at(s.year,s.month,s.day+i),o=o.add24HourDays(-i));const c=Kt("day",r),l=to(n,t.isoDate,s,c);return r!==c&&(o=o.add24HourDays(l.days),l.days=0),Xt(l,o)}function Kc(t,e,n,r,o){const i=h.subtract(e,t);if(h.equal(i,dt))return{date:{years:0,months:0,weeks:0,days:0},time:B.ZERO};const a=h.lessThan(i,dt)?-1:1,s=Tt(n,t),c=Tt(n,e);let l,u=0,d=a===1?2:1,m=ua(s.time,c.time);for(m.sign()===-a&&u++;u<=d;u++){l=te(at(c.isoDate.year,c.isoDate.month,c.isoDate.day-u*a),s.time);const b=je(n,l,"compatible");if(m=B.fromEpochNsDiff(e,b),m.sign()!==-a)break}const y=Kt("day",o);return Xt(to(r,s.isoDate,l.isoDate,y),m)}function Xc(t,e,n,r,o,i,a,s,c){let l,u,d,m,y=e;switch(s){case"year":{const p=ln(y.date.years,a,"trunc");l=p,u=p+a*t,d={years:l,months:0,weeks:0,days:0},m={...d,years:u};break}case"month":{const p=ln(y.date.months,a,"trunc");l=p,u=p+a*t,d=Ne(y.date,0,0,l),m=Ne(y.date,0,0,u);break}case"week":{const p=Ne(y.date,0,0),R=ft(i,r.isoDate,p,"constrain"),O=to(i,R,at(R.year,R.month,R.day+y.date.days),"week"),j=ln(y.date.weeks+O.weeks,a,"trunc");l=j,u=j+a*t,d=Ne(y.date,0,l),m=Ne(y.date,0,u);break}case"day":{const p=ln(y.date.days,a,"trunc");l=p,u=p+a*t,d=Ne(y.date,l),m=Ne(y.date,u);break}}const b=ft(i,r.isoDate,d,"constrain"),g=ft(i,r.isoDate,m,"constrain");let w,v;const D=te(b,r.time),M=te(g,r.time);o?(w=je(o,D,"compatible"),v=je(o,M,"compatible")):(w=Ae(D),v=Ae(M));const C=B.fromEpochNsDiff(n,w),T=B.fromEpochNsDiff(v,w),k=Go(c,t<0?"negative":"positive"),U=C.add(C).abs().subtract(T.abs()).sign(),G=Math.abs(l)/a%2==0,N=C.isZero()?Math.abs(l):C.cmp(T)?Ko(Math.abs(l),Math.abs(u),U,G,k):Math.abs(u),ae=new B(h.add(h.multiply(T.totalNs,h.BigInt(l)),h.multiply(C.totalNs,h.BigInt(a*t)))).fdiv(T.totalNs),q=N===Math.abs(u);return y={date:q?m:d,time:B.ZERO},{nudgeResult:{duration:y,nudgedEpochNs:q?v:w,didExpandCalendarUnit:q},total:ae}}function ii(t,e,n,r,o,i,a,s,c){let l=t;const u=St(s)||r&&s==="day",d=Hc(l)<0?-1:1;let m;return u?{nudgeResult:m}=Xc(d,l,e,n,r,o,a,s,c):m=r?(function(y,b,g,w,v,D,M,C){let T=b;const k=ft(v,g.isoDate,T.date,"constrain"),U=te(k,g.time),G=te(at(k.year,k.month,k.day+y),g.time),N=je(w,U,"compatible"),ae=je(w,G,"compatible"),q=B.fromEpochNsDiff(ae,N);if(q.sign()!==y)throw new RangeError("time zone returned inconsistent Instants");const p=h.BigInt(tr[M]*D);let R=T.time.round(p,C);const O=R.subtract(q),j=O.sign()!==-y;let H,pe;return j?(H=y,R=O.round(p,C),pe=R.addToEpochNs(ae)):(H=0,pe=R.addToEpochNs(N)),{duration:Xt(Ne(T.date,T.date.days+H),R),nudgedEpochNs:pe,didExpandCalendarUnit:j}})(d,l,n,r,o,a,s,c):(function(y,b,g,w,v,D){let M=y;const C=M.time.add24HourDays(M.date.days),T=C.round(h.BigInt(w*tr[v]),D),k=T.subtract(C),{quotient:U}=C.divmod(Do),{quotient:G}=T.divmod(Do),N=Math.sign(G-U)===C.sign(),ae=k.addToEpochNs(b);let q=0,p=T;return Ht(g)==="date"&&(q=G,p=T.add(B.fromComponents(24*-G,0,0,0,0,0))),{duration:{date:Ne(M.date,q),time:p},nudgedEpochNs:ae,didExpandCalendarUnit:N}})(l,e,i,a,s,c),l=m.duration,m.didExpandCalendarUnit&&s!=="week"&&(l=(function(y,b,g,w,v,D,M,C){let T=b;if(C===M)return T;const k=Sr.indexOf(M);for(let U=Sr.indexOf(C)-1;U>=k;U--){const G=Sr[U];if(G==="week"&&M!=="week")continue;let N;switch(G){case"year":N={years:T.date.years+y,months:0,weeks:0,days:0};break;case"month":{const p=T.date.months+y;N=Ne(T.date,0,0,p);break}case"week":{const p=T.date.weeks+y;N=Ne(T.date,0,p);break}}const ae=te(ft(D,w.isoDate,N,"constrain"),w.time);let q;if(q=v?je(v,ae,"compatible"):Ae(ae),_o(g,q)===-y)break;T={date:N,time:B.ZERO}}return T})(d,l,m.nudgedEpochNs,n,r,o,i,Kt(s,"day"))),l}function _s(t,e,n,r,o,i){return St(i)||r&&i==="day"?Xc(Hc(t)<0?-1:1,t,e,n,r,o,1,i,"trunc").total:Ar(t.time.add24HourDays(t.date.days),i)}function Qc(t,e,n,r,o,i,a){if(rr(t,e)==0)return{date:{years:0,months:0,weeks:0,days:0},time:B.ZERO};$n(t),$n(e);const s=Gc(t,e,n,r);return i==="nanosecond"&&o===1?s:ii(s,Ae(e),t,null,n,r,o,i,a)}function Jc(t,e,n,r,o,i,a,s){if(Ht(o)==="time")return da(t,e,i,a,s);const c=Kc(t,e,n,r,o);return a==="nanosecond"&&i===1?c:ii(c,e,Tt(n,t),n,r,o,i,a,s)}function ur(t,e,n,r,o,i){const a=er.reduce(((y,b)=>{const g=b[0],w=b[1],v=b[2];return n!=="datetime"&&v!==n||r.includes(w)||y.push(w,g),y}),[]);let s=it(e,"largestUnit",n,"auto");if(r.includes(s))throw new RangeError(`largestUnit must be one of ${a.join(", ")}, not ${s}`);const c=sr(e);let l=Mt(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=it(e,"smallestUnit",n,o);if(r.includes(u))throw new RangeError(`smallestUnit must be one of ${a.join(", ")}, not ${u}`);const d=Kt(i,u);if(s==="auto"&&(s=d),Kt(s,u)!==s)throw new RangeError(`largestUnit ${s} cannot be smaller than smallestUnit ${u}`);const m={hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[u];return m!==void 0&&cr(c,m,!1),{largestUnit:s,roundingIncrement:c,roundingMode:l,smallestUnit:u}}function Cs(t,e,n,r){const o=_r(n),i=ur(t,P(r),"time",[],"nanosecond","second");let a=wt(da(f(e,L),f(o,L),i.roundingIncrement,i.smallestUnit,i.roundingMode),i.largestUnit);return t==="since"&&(a=st(a)),a}function Ds(t,e,n,r){const o=Er(n),i=f(e,x),a=f(o,x);if(!jt(i,a))throw new RangeError(`cannot compute difference between dates of ${i} and ${a} calendars`);const s=ur(t,P(r),"date",[],"day","day"),c=Ie("%Temporal.Duration%"),l=f(e,Y),u=f(o,Y);if(Yt(l,u)===0)return new c;let d={date:to(i,l,u,s.largestUnit),time:B.ZERO};if(s.smallestUnit!=="day"||s.roundingIncrement!==1){const y=te(l,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});d=ii(d,Ae(te(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 m=wt(d,"day");return t==="since"&&(m=st(m)),m}function Ms(t,e,n,r){const o=Tr(n),i=f(e,x),a=f(o,x);if(!jt(i,a))throw new RangeError(`cannot compute difference between dates of ${i} and ${a} calendars`);const s=ur(t,P(r),"datetime",[],"nanosecond","day"),c=Ie("%Temporal.Duration%"),l=f(e,ye),u=f(o,ye);if(rr(l,u)===0)return new c;let d=wt(Qc(l,u,i,s.largestUnit,s.roundingIncrement,s.smallestUnit,s.roundingMode),s.largestUnit);return t==="since"&&(d=st(d)),d}function xs(t,e,n,r){const o=cn(n),i=ur(t,P(r),"time",[],"nanosecond","hour");let a=ua(f(e,Ee),f(o,Ee));a=Ro(a,i.roundingIncrement,i.smallestUnit,i.roundingMode);let s=wt(Xt({years:0,months:0,weeks:0,days:0},a),i.largestUnit);return t==="since"&&(s=st(s)),s}function Os(t,e,n,r){const o=Cr(n),i=f(e,x),a=f(o,x);if(!jt(i,a))throw new RangeError(`cannot compute difference between months of ${i} and ${a} calendars`);const s=ur(t,P(r),"date",["week","day"],"month","year"),c=Ie("%Temporal.Duration%");if(Yt(f(e,Y),f(o,Y))==0)return new c;const l=Qe(i,f(e,Y),"year-month");l.day=1;const u=gn(i,l,"constrain"),d=Qe(i,f(o,Y),"year-month");d.day=1;const m=gn(i,d,"constrain");let y={date:Ne(to(i,u,m,s.largestUnit),0,0),time:B.ZERO};if(s.smallestUnit!=="month"||s.roundingIncrement!==1){const g=te(u,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});y=ii(y,Ae(te(m,{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 b=wt(y,"day");return t==="since"&&(b=st(b)),b}function $s(t,e,n,r){const o=Dr(n),i=f(e,x),a=f(o,x);if(!jt(i,a))throw new RangeError(`cannot compute difference between dates of ${i} and ${a} calendars`);const s=ur(t,P(r),"datetime",[],"nanosecond","hour"),c=f(e,L),l=f(o,L),u=Ie("%Temporal.Duration%");let d;if(Ht(s.largestUnit)!=="date")d=wt(da(c,l,s.roundingIncrement,s.smallestUnit,s.roundingMode),s.largestUnit);else{const m=f(e,se);if(!zc(m,f(o,se)))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(h.equal(c,l))return new u;d=wt(Jc(c,l,m,i,s.largestUnit,s.roundingIncrement,s.smallestUnit,s.roundingMode),"hour")}return t==="since"&&(d=st(d)),d}function nr({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,an(t,e,s,r,o,c)}function Fi(t,e){const n=e.addToEpochNs(t);return Lt(n),n}function Mr(t,e,n,r,o="constrain"){if(ni(r.date)===0)return Fi(t,r.time);const i=Tt(e,t);return Fi(je(e,te(ft(n,i.isoDate,r.date,o),i.time),"compatible"),r.time)}function Ss(t,e,n){let r=Et(n);t==="subtract"&&(r=st(r));const o=Kt(Vt(e),Vt(r));if(St(o))throw new RangeError("For years, months, or weeks arithmetic, use date arithmetic relative to a starting point");const i=At(e),a=At(r);return wt(Xt({years:0,months:0,weeks:0,days:0},i.time.add(a.time)),o)}function ks(t,e,n){let r=Et(n);t==="subtract"&&(r=st(r));const o=Vt(r);if(Ht(o)==="date")throw new RangeError(`Duration field ${o} not supported by Temporal.Instant. Try Temporal.ZonedDateTime instead.`);const i=At(r);return Rt(Fi(f(e,L),i.time))}function Rs(t,e,n,r){const o=f(e,x);let i=Et(n);t==="subtract"&&(i=st(i));const a=Bc(i),s=ee(P(r));return Ke(ft(o,f(e,Y),a,s),o)}function As(t,e,n,r){let o=Et(n);t==="subtract"&&(o=st(o));const i=ee(P(r)),a=f(e,x),s=At(o),c=f(e,ye),l=nr(c.time,s.time),u=Ne(s.date,l.deltaDays);return oi(u.years,u.months,u.weeks,u.days,0,0,0,0,0,0),bt(te(ft(a,c.isoDate,u,i),l),a)}function Is(t,e,n){let r=Et(n);t==="subtract"&&(r=st(r));const o=At(r),{hour:i,minute:a,second:s,millisecond:c,microsecond:l,nanosecond:u}=nr(f(e,Ee),o.time);return Bt(ei(i,a,s,c,l,u,"reject"))}function Ps(t,e,n,r){let o=Et(n);t==="subtract"&&(o=st(o));const i=ee(P(r)),a=ko(o),s=f(e,x),c=Qe(s,f(e,Y),"year-month");c.day=1;let l=gn(s,c,"constrain");if(a<0){const d=ft(s,l,{months:1},"constrain");l=at(d.year,d.month,d.day-1)}const u=Bc(o);return In(l),Gn(Lr(s,Qe(s,ft(s,l,u,i),"year-month"),i),s)}function Ns(t,e,n,r){let o=Et(n);t==="subtract"&&(o=st(o));const i=ee(P(r)),a=f(e,se),s=f(e,x),c=Vn(o);return Pe(Mr(f(e,L),a,s,c,i),a,s)}function ln(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=ot(Math.abs(2*o)-e),l=a%2==0,u=Go(n,i),d=o===0?a:Ko(a,s,c,l,u);return e*(i==="positive"?d:-d)}function qi(t,e,n,r){const o=tr[n]*e;return(function(i,a,s){const c=qt(i),l=qt(a),u=h.divide(c,l),d=h.remainder(c,l),m=Go(s,"positive");let y,b;h.lessThan(c,dt)?(y=h.subtract(u,Pr),b=u):(y=u,b=h.add(u,Pr));const g=_o(vn(h.multiply(d,na)),l)*(h.lessThan(c,dt)?-1:1)+0,w=h.equal(d,dt)?u:Ko(y,b,g,lc(y),m);return h.multiply(w,l)})(t,h.BigInt(o),r)}function Wi(t,e,n,r){Ui(t);const{year:o,month:i,day:a}=t.isoDate,s=Vi(t.time,e,n,r);return te(at(o,i,a+s.deltaDays),s)}function Vi({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=tr[s],d=ln(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 an(d,0,0,0,0,0);case"minute":return an(t,d,0,0,0,0);case"second":return an(t,e,d,0,0,0);case"millisecond":return an(t,e,n,d,0,0);case"microsecond":return an(t,e,n,r,d,0);case"nanosecond":return an(t,e,n,r,o,d);default:throw new Error(`Invalid unit ${s}`)}}function Ro(t,e,n,r){const o=tr[n];return t.round(h.BigInt(o*e),r)}function Ar(t,e){const n=tr[e];return t.fdiv(h.BigInt(n))}function Yt(t,e){return t.year!==e.year?ot(t.year-e.year):t.month!==e.month?ot(t.month-e.month):t.day!==e.day?ot(t.day-e.day):0}function Hi(t,e){return t.hour!==e.hour?ot(t.hour-e.hour):t.minute!==e.minute?ot(t.minute-e.minute):t.second!==e.second?ot(t.second-e.second):t.millisecond!==e.millisecond?ot(t.millisecond-e.millisecond):t.microsecond!==e.microsecond?ot(t.microsecond-e.microsecond):t.nanosecond!==e.nanosecond?ot(t.nanosecond-e.nanosecond):0}function rr(t,e){const n=Yt(t.isoDate,e.isoDate);return n!==0?n:Hi(t.time,e.time)}function el(t){const e=Ao(t);return globalThis.BigInt!==void 0?globalThis.BigInt(e.toString(10)):e}function _t(t,e){const n=qt(t),{quotient:r,remainder:o}=wr(n,Zr);let i=h.toNumber(r);return e==="floor"&&h.toNumber(o)<0&&(i-=1),e==="ceil"&&h.toNumber(o)>0&&(i+=1),i}function It(t){if(!Number.isInteger(t))throw new RangeError("epoch milliseconds must be an integer");return h.multiply(h.BigInt(t),Zr)}function Ao(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"?h.BigInt(e.toString(10)):h.BigInt(e)}const Zi=(()=>{let t=h.BigInt(Date.now()%1e6);return()=>{const e=Date.now(),n=h.BigInt(e),r=h.add(It(e),t);return t=h.remainder(n,Zr),h.greaterThan(r,Jn)?Jn:h.lessThan(r,Nr)?Nr:r}})();function gr(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}function ot(t){return t<0?-1:t>0?1:t}function P(t){if(t===void 0)return Object.create(null);if(Te(t)&&t!==null)return t;throw new TypeError("Options parameter must be an object, not "+(t===null?"null":typeof t))}function kn(t,e){const n=Object.create(null);return n[t]=e,n}function Qt(t,e,n,r){let o=t[e];if(o!==void 0){if(o=Qo(o),!n.includes(o))throw new RangeError(`${e} must be one of ${n.join(", ")}, not ${o}`);return o}if(r===tn)throw new RangeError(`${e} option is required`);return r}function et(t){const e=Fr(t);if(!Bh.includes(Fr(e)))throw new RangeError(`invalid calendar identifier ${e}`);switch(e){case"ethiopic-amete-alem":return"ethioaa";case"islamicc":return"islamic-civil"}return e}function Fr(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 bn(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 tf=new RegExp(`^${_c.source}$`),nf=new RegExp(`^${/([+-])([01][0-9]|2[0-3])(?::?([0-5][0-9])(?::?([0-5][0-9])(?:[.,](\d{1,9}))?)?)?/.source}$`);function tl(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 nl(t){return[...t]}function rl(t,e){if(t!=="gregory"&&t!=="iso8601")return;const n=io[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(m,y,b,g){let w=(g-m-b+1)%7;w<0&&(w+=7);let v=Math.floor((b+w-1)/7);return 7-w>=y&&++v,v})(s,c,i+n.isoToDate(n.dateAdd(e,{years:-1},"constrain"),{daysInYear:!0}).daysInYear,o),r--;else if(i>=a-5){let m=(l+a-i)%7;m<0&&(m+=7),6-m>=c&&i+7-l>a&&(d=1,r++)}return{week:d,year:r}}function js(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 io={};function Rn(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 Pt(t,e=!1){return`M${`${t}`.padStart(2,"0")}${e?"L":""}`}function ha(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"&&$e(r,1,n),e==="constrain"&&(r=Ge(r,1,n)),o=Pt(r)}else{const i=Rn(o);if(o!==Pt(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}}io.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,ha(t))},dateToISO:(t,e)=>kr(t.year,t.month,t.day,e),monthDayToISOReferenceDate(t,e){const{month:n,day:r}=kr(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 nl(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}=Tn(a,s),{year:a,month:s,day:c}=kr(a,s,c,i),c+=o+7*r,at(a,s,c)},dateUntil(t,e,n){const r=-Yt(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);!js(r,t.year+u,t.month,t.day,e);)i=u,u+=r;let d=r;for(o=Tn(t.year+i,t.month+d);!js(r,o.year,o.month,t.day,e);)a=d,d+=r,o=Tn(o.year,o.month+r);n==="month"&&(a+=12*i,i=0)}o=Tn(t.year+i,t.month+a);const s=Zc(o.year,o.month,t.day);let c=0,l=Sn(e.year,e.month-1,e.day)-Sn(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=Pt(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+=Dn(t,a);o.dayOfYear=i}return r.weekOfYear&&(o.weekOfYear=rl("iso8601",{year:t,month:e,day:n})),r.daysInMonth&&(o.daysInMonth=Dn(t,e)),(r.daysInYear||r.inLeapYear)&&(o.inLeapYear=So(t),o.daysInYear=o.inLeapYear?366:365),o},getFirstDayOfWeek:()=>1,getMinimalDaysInFirstWeek:()=>4};class Oe{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>Oe.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(Oe.objectMap.get(e))throw new RangeError("object already cached");Oe.objectMap.set(e,this),this.report()}static getCacheForObject(e){let n=Oe.objectMap.get(e);return n||(n=new Oe,Oe.objectMap.set(e,n)),n}}function ol({isoYear:t,isoMonth:e,isoDay:n}){return`${oo(t)}-${mt(e)}-${mt(n)}T00:00Z`}function Ti(t,e){return{years:t.year-e.year,months:t.month-e.month,days:t.day-e.day}}Oe.objectMap=new WeakMap,Oe.MAX_CACHE_ENTRIES=1e3;class Pn{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=ol({isoYear:r,isoMonth:o,isoDay:i}),l=this.getCalendarParts(c),u={};for(let m=0;m<l.length;m++){const{type:y,value:b}=l[m];if(y!=="year"&&y!=="relatedYear"||(this.hasEra?u.eraYear=+b:u.year=+b),y==="month"){const g=/^([0-9]*)(.*?)$/.exec(b);if(!g||g.length!=3||!g[1]&&!g[2])throw new RangeError(`Unexpected month: ${b}`);if(u.month=g[1]?+g[1]:1,u.month<1)throw new RangeError(`Invalid month ${b} 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 ${b} 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=+b),this.hasEra&&y==="era"&&b!=null&&b!==""&&(u.era=b.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 m=this.eras.find((y=>u.era===y.genericName));m&&(u.era=m.code)}if(this.reviseIntlEra){const{era:m,eraYear:y}=this.reviseIntlEra(u,e);u.era=m,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((m=>{const y=JSON.stringify({func:"calendarToIsoDate",year:d.year,month:d.month,day:d.day,overflow:m,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}=ha(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"?($e(i,1,o),$e(a,1,this.maximumMonthLength(e))):(i=Ge(i,1,o),a=Ge(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 m=this.estimateIsoDate({year:a,month:s,day:c});const y=D=>{let M=this.addDaysIso(m,D);if(i.day>this.minimumMonthLength(i)){let C=this.isoToCalendarDate(M,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}`);M=this.addDaysIso(M,-1),C=this.isoToCalendarDate(M,r)}}return M};let b=0,g=this.isoToCalendarDate(m,r),w=Ti(i,g);if(w.years!==0||w.months!==0||w.days!==0){const D=365*w.years+30*w.months+w.days;m=this.addDaysIso(m,D),g=this.isoToCalendarDate(m,r),w=Ti(i,g),w.years===0&&w.months===0?m=y(w.days):b=this.compareCalendarDates(i,g)}let v=8;for(;b;){m=this.addDaysIso(m,b*v);const D=g;g=this.isoToCalendarDate(m,r);const M=b;if(b=this.compareCalendarDates(i,g),b){if(w=Ti(i,g),w.years===0&&w.months===0)m=y(w.days),b=0;else if(M&&b!==M)if(v>1)v/=2;else{if(n==="reject")throw new RangeError(`Can't find ISO date from calendar date: ${JSON.stringify({...o})}`);this.compareCalendarDates(g,D)>0&&(m=this.addDaysIso(m,-1)),b=0}}}if(r.set(l,m),u&&r.set(u,m),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 m}compareCalendarDates(e,n){return e.year!==n.year?ot(e.year-n.year):e.month!==n.month?ot(e.month-n.month):e.day!==n.day?ot(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 at(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),m=this.calendarToIsoDate(i,"constrain",o);let y=this.addDaysIso(m,d);if(i=this.isoToCalendarDate(y,o),n>0){const b=this.monthsInYear(u,o);for(;i.month-1!=l%b;)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),m=this.addMonthsCalendar(d,r,a,s),y=i+7*o;return this.addDaysCalendar(m,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 b=0;n.monthCode>e.monthCode&&(b=1),n.monthCode<e.monthCode&&(b=-1),b||(b=Math.sign(d)),c=b*l<0?u-l:u}let m,y=c?this.addCalendar(e,{years:c},"constrain",o):e;do s+=l,m=y,y=this.addMonthsCalendar(m,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(m,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 Sn(i.year,i.month-1,i.day)-Sn(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:m,monthCode:y,day:b}=e;if(m!==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:b}=this.isoToCalendarDate(this.calendarToIsoDate(e,n,r),r));const g={year:this.monthDaySearchStartYear(y,b),month:12,day:31},w=this.isoToCalendarDate(g,r),v=w.monthCode>y||w.monthCode===y&&w.day>=b?w.year:w.year-1;for(let D=0;D<20;D++){const M=this.adjustCalendarDate({day:b,monthCode:y,year:v-D},r),C=this.calendarToIsoDate(M,"constrain",r),T=this.isoToCalendarDate(C,r);if({year:o,month:i,day:a}=C,T.monthCode===y&&T.day===b)return{month:i,day:a,year:o};if(n==="constrain"){const k=this.maxLengthOfMonthCodeInAnyYear(T.monthCode);if(T.monthCode===y&&T.day===k&&b>k)return{month:i,day:a,year:o};(s===void 0||T.monthCode===s.monthCode&&T.day>s.day)&&(s=T,c=C)}}if(n==="constrain"&&c!==void 0)return c;throw new RangeError(`No recent ${this.id} year with monthCode ${y} and day ${b}`)}getFirstDayOfWeek(){}getMinimalDaysInFirstWeek(){}}class rf extends Pn{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?Pt(5,!0):Pt(n<6?n:n-1):Pt(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=Rn(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"?($e(a,1,this.monthsInYear({year:i})),$e(c,1,this.maximumMonthLength({year:i,month:a}))):(a=Ge(a,1,this.monthsInYear({year:i})),c=Ge(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 dr extends Pn{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 of extends dr{constructor(){super(...arguments),this.id="islamic"}}class af extends dr{constructor(){super(...arguments),this.id="islamic-umalqura"}}class sf extends dr{constructor(){super(...arguments),this.id="islamic-tbla"}}class cf extends dr{constructor(){super(...arguments),this.id="islamic-civil"}}class lf extends dr{constructor(){super(...arguments),this.id="islamic-rgsa"}}class uf extends dr{constructor(){super(...arguments),this.id="islamicc"}}class df extends Pn{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 Rn(e)<=6?31:30}estimateIsoDate(e){const{year:n}=this.adjustCalendarDate(e);return{year:n+621,month:1,day:1}}}class hf extends Pn{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 fa(e.year+78)}monthsInYear(){return 12}minimumMonthLength(e){return this.getMonthInfo(e).length}maximumMonthLength(e){return this.getMonthInfo(e).length}maxLengthOfMonthCodeInAnyYear(e){const n=Rn(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 at(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 fa(t){return t%4==0&&(t%100!=0||t%400==0)}class il extends Pn{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 fa(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][Rn(e)-1]}estimateIsoDate(e){const n=this.adjustCalendarDate(e);return kr(n.year+this.isoEpoch.year,n.month+this.isoEpoch.month,n.day+this.isoEpoch.day,"constrain")}}class al extends Pn{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((m=>m.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 fa(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][Rn(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,m)=>{if(m===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:Rn(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 kr(r+a.isoEpoch.year-(a.hasYearZero?0:1),o,i,"constrain")}}class ma extends al{constructor(e,n){super(e,n)}isoToCalendarDate(e){const{year:n,month:r,day:o}=e,i=Pt(r),a=n-this.anchorEra.isoEpoch.year+1;return this.completeEraYear({year:a,month:r,monthCode:i,day:o})}}const kt={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 ff extends il{constructor(e,n){super(e,n),this.inLeapYear=kt.inLeapYear,this.monthsInYear=kt.monthsInYear,this.minimumMonthLength=kt.minimumMonthLength,this.maximumMonthLength=kt.maximumMonthLength,this.maxLengthOfMonthCodeInAnyYear=kt.maxLengthOfMonthCodeInAnyYear}}class sl extends al{constructor(e,n){super(e,n),this.inLeapYear=kt.inLeapYear,this.monthsInYear=kt.monthsInYear,this.minimumMonthLength=kt.minimumMonthLength,this.maximumMonthLength=kt.maximumMonthLength,this.maxLengthOfMonthCodeInAnyYear=kt.maxLengthOfMonthCodeInAnyYear}}class mf extends ff{constructor(){super("ethioaa",{year:-5492,month:7,day:17})}}class gf extends sl{constructor(){super("coptic",[{code:"coptic",isoEpoch:{year:284,month:8,day:29}},{code:"coptic-inverse",reverseOf:"coptic"}])}}class yf extends sl{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 pf extends ma{constructor(){super("roc",[{code:"roc",names:["minguo"],isoEpoch:{year:1912,month:1,day:1}},{code:"roc-inverse",names:["before-roc"],reverseOf:"roc"}])}}class bf extends il{constructor(){super("buddhist",{year:-543,month:1,day:1})}}class wf extends ma{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 vf extends ma{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 cl extends Pn{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=(w,v)=>{const D=ol({isoYear:w,isoMonth:2,isoDay:1}),M=new Date(D);M.setUTCDate(v+1);const C=i.formatToParts(M),T=C.find((N=>N.type==="month")).value,k=+C.find((N=>N.type==="day")).value,U=C.find((N=>N.type==="relatedYear"));let G;if(U===void 0)throw new RangeError(`Intl.DateTimeFormat.formatToParts lacks relatedYear in ${this.id} calendar. Try Node 14+ or modern browsers.`);return G=+U.value,{calendarMonthString:T,calendarDay:k,calendarYearToVerify:G}};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 m,y,b=1,g=!1;do({calendarMonthString:c,calendarDay:l,calendarYearToVerify:u}=a(e,s)),m&&(d[y].daysInMonth=m+30-l),u!==e?g=!0:(d[c]={monthIndex:b++},s+=30),m=l,y=c;while(!g);return d[y].daysInMonth=m+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=Pt(a,s!==void 0),d=`${a}${s||""}`,m=this.getMonthList(i,n)[d];if(m===void 0)throw new RangeError(`Unmatched month ${d} in Chinese year ${i}`);return a=m.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 m=u[d];if(a=m&&m.monthIndex,a===void 0&&l.endsWith("L")&&l!="M13L"&&r==="constrain"){const y=+l.replace(/^M0?|L$/g,"");m=u[y],m&&(a=m.monthIndex,l=Pt(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),m=d.length;r==="reject"?($e(a,1,m),$e(c,1,this.maximumMonthLength())):(a=Ge(a,1,m),c=Ge(c,1,this.maximumMonthLength()));const y=d.find((b=>b[1].monthIndex===a));if(y===void 0)throw new RangeError(`Invalid month ${a} in Chinese year ${i}`);l=Pt(+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 m=u[d];if(!m)throw new RangeError(`Unmatched monthCode ${l} in Chinese year ${i}`);if(a!==m.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 Ef extends cl{constructor(){super(...arguments),this.id="chinese"}}class Tf extends cl{constructor(){super(...arguments),this.id="dangi"}}class _f{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 Oe;ha(e,void 0,this.helper.monthsInYear({year:e.year??1972},n))}}dateToISO(e,n){const r=new Oe,o=this.helper.calendarToIsoDate(e,n,r);return r.setObject(o),o}monthDayToISOReferenceDate(e,n){const r=new Oe,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 nl(n)}dateAdd(e,{years:n,months:r,weeks:o,days:i},a){const s=Oe.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 Oe.getCacheForObject(u)||new Oe(s).setObject(u),u}dateUntil(e,n,r){const o=Oe.getCacheForObject(e),i=Oe.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=Oe.getCacheForObject(e),o=this.helper.isoToCalendarDate(e,r);if(n.dayOfWeek&&(o.dayOfWeek=io.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=rl(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[rf,df,yf,mf,gf,Ef,Tf,pf,hf,bf,wf,vf,of,af,sf,cf,lf,uf]){const e=new t;io[e.id]=new _f(e)}Ai("calendarImpl",(function(t){return io[t]}));const qr=Intl.DateTimeFormat;function Un(t,e){let n=f(t,e);return typeof n=="function"&&(n=new qr(f(t,wc),n(f(t,$i))),(function(r,o,i){const a=Bo(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 yr(t){return Je(t,An)}class Wr{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 m=Object.create(null);for(let y=0;y<d.length;y++){const b=d[y];Object.prototype.hasOwnProperty.call(s,b)&&(m[b]=s[b])}s=m}else s=Object.create(null);const c=new qr(o,s),l=c.resolvedOptions();if(nn(r),a){const d=Object.assign(Object.create(null),l);for(const m in d)Object.prototype.hasOwnProperty.call(s,m)||delete d[m];d.hour12=s.hour12,d.hourCycle=s.hourCycle,V(r,$i,d)}else V(r,$i,s);V(r,wc,l.locale),V(r,An,c),V(r,Wn,l.timeZone),V(r,vr,l.calendar),V(r,fc,Rf),V(r,mc,Sf),V(r,gc,kf),V(r,yc,$f),V(r,pc,Af),V(r,bc,If);const u=a?s.timeZone:void 0;if(u===void 0)V(r,Oi,l.timeZone);else{const d=Qo(u);if(d.startsWith("−"))throw new RangeError("Unicode minus (U+2212) is not supported in time zone offsets");V(r,Oi,Xe(d))}})(this,e,n)}get format(){E(this,yr);const e=Df.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 E(this,yr),xf.call(this,e,n)}formatToParts(e,...n){return E(this,yr),Mf.call(this,e,...n)}formatRangeToParts(e,n){return E(this,yr),Of.call(this,e,n)}resolvedOptions(){return E(this,yr),Cf.call(this)}}"formatToParts"in qr.prototype||delete Wr.prototype.formatToParts,"formatRangeToParts"in qr.prototype||delete Wr.prototype.formatRangeToParts;const vt=function(t=void 0,e=void 0){return new Wr(t,e)};function Cf(){const t=f(this,An).resolvedOptions();return t.timeZone=f(this,Oi),t}function Df(t,...e){let n,r,o=or(t,this);return o.formatter?(n=o.formatter,r=[_t(o.epochNs,"floor")]):(n=f(this,An),r=[t,...e]),n.format(...r)}function Mf(t,...e){let n,r,o=or(t,this);return o.formatter?(n=o.formatter,r=[_t(o.epochNs,"floor")]):(n=f(this,An),r=[t,...e]),n.formatToParts(...r)}function xf(t,e){if(t===void 0||e===void 0)throw new TypeError("Intl.DateTimeFormat.formatRange requires two values");const n=Io(t),r=Io(e);let o,i=[n,r];if(Jt(n)!==Jt(r))throw new TypeError("Intl.DateTimeFormat.formatRange accepts two values of the same type");if(Jt(n)){if(!ll(n,r))throw new TypeError("Intl.DateTimeFormat.formatRange accepts two values of the same type");const{epochNs:a,formatter:s}=or(n,this),{epochNs:c,formatter:l}=or(r,this);s&&(o=s,i=[_t(a,"floor"),_t(c,"floor")])}return o||(o=f(this,An)),o.formatRange(...i)}function Of(t,e){if(t===void 0||e===void 0)throw new TypeError("Intl.DateTimeFormat.formatRange requires two values");const n=Io(t),r=Io(e);let o,i=[n,r];if(Jt(n)!==Jt(r))throw new TypeError("Intl.DateTimeFormat.formatRangeToParts accepts two values of the same type");if(Jt(n)){if(!ll(n,r))throw new TypeError("Intl.DateTimeFormat.formatRangeToParts accepts two values of the same type");const{epochNs:a,formatter:s}=or(n,this),{epochNs:c,formatter:l}=or(r,this);s&&(o=s,i=[_t(a,"floor"),_t(c,"floor")])}return o||(o=f(this,An)),o.formatRangeToParts(...i)}function ao(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 $f(t){const e=ao(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"})),!si(e)){if(so(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 Sf(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=ao(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(so(t))throw new TypeError(`cannot format PlainYearMonth with options [${Object.keys(t)}]`);Object.assign(n,{year:"numeric",month:"numeric"})}return n}function kf(t){const e={short:{month:"numeric",day:"numeric"},medium:{month:"short",day:"numeric"},long:{month:"long",day:"numeric"},full:{month:"long",day:"numeric"}},n=ao(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(so(t))throw new TypeError(`cannot format PlainMonthDay with options [${Object.keys(t)}]`);Object.assign(n,{month:"numeric",day:"numeric"})}return n}function Rf(t){const e=ao(t,{hour:!1,minute:!1,second:!1,dayPeriod:!1,timeZoneName:!1,timeStyle:!1});if(!ai(e)){if(so(t))throw new TypeError(`cannot format PlainDate with options [${Object.keys(t)}]`);Object.assign(e,{year:"numeric",month:"numeric",day:"numeric"})}return e}function Af(t){const e=ao(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),!si(e)&&!ai(e)){if(so(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 If(t){let e=t;return si(e)||ai(e)||(e=Object.assign({},e,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})),e}function ai(t){return"year"in t||"month"in t||"day"in t||"weekday"in t||"dateStyle"in t||"era"in t}function si(t){return"hour"in t||"minute"in t||"second"in t||"timeStyle"in t||"dayPeriod"in t||"fractionalSecondDigits"in t}function so(t){return ai(t)||si(t)||"dateStyle"in t||"timeStyle"in t||"timeZoneName"in t}function Jt(t){return ve(t)||De(t)||ge(t)||Z(t)||Re(t)||lt(t)||ke(t)}function Io(t){return Jt(t)?t:Xo(t)}function ll(t,e){return!(!Jt(t)||!Jt(e)||De(t)&&!De(e)||ve(t)&&!ve(e)||ge(t)&&!ge(e)||Z(t)&&!Z(e)||Re(t)&&!Re(e)||lt(t)&&!lt(e)||ke(t)&&!ke(e))}function or(t,e){if(De(t)){const n={isoDate:{year:1970,month:1,day:1},time:f(t,Ee)};return{epochNs:je(f(e,Wn),n,"compatible"),formatter:Un(e,yc)}}if(Re(t)){const n=f(t,x),r=f(e,vr);if(n!==r)throw new RangeError(`cannot format PlainYearMonth with calendar ${n} in locale with calendar ${r}`);const o=te(f(t,Y),{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});return{epochNs:je(f(e,Wn),o,"compatible"),formatter:Un(e,mc)}}if(lt(t)){const n=f(t,x),r=f(e,vr);if(n!==r)throw new RangeError(`cannot format PlainMonthDay with calendar ${n} in locale with calendar ${r}`);const o=te(f(t,Y),{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});return{epochNs:je(f(e,Wn),o,"compatible"),formatter:Un(e,gc)}}if(ve(t)){const n=f(t,x),r=f(e,vr);if(n!=="iso8601"&&n!==r)throw new RangeError(`cannot format PlainDate with calendar ${n} in locale with calendar ${r}`);const o=te(f(t,Y),{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});return{epochNs:je(f(e,Wn),o,"compatible"),formatter:Un(e,fc)}}if(ge(t)){const n=f(t,x),r=f(e,vr);if(n!=="iso8601"&&n!==r)throw new RangeError(`cannot format PlainDateTime with calendar ${n} in locale with calendar ${r}`);const o=f(t,ye);return{epochNs:je(f(e,Wn),o,"compatible"),formatter:Un(e,pc)}}if(Z(t))throw new TypeError("Temporal.ZonedDateTime not supported in DateTimeFormat methods. Use toLocaleString() instead.");return ke(t)?{epochNs:f(t,L),formatter:Un(e,bc)}:{}}function ul(t){const e=Object.create(null);return e.years=f(t,Ue),e.months=f(t,Fe),e.weeks=f(t,nt),e.days=f(t,qe),e.hours=f(t,We),e.minutes=f(t,Ve),e.seconds=f(t,He),e.milliseconds=f(t,Ze),e.microseconds=f(t,Be),e.nanoseconds=f(t,rt),e}Wr.prototype.constructor=vt,Object.defineProperty(vt,"prototype",{value:Wr.prototype,writable:!1,enumerable:!1,configurable:!1}),vt.supportedLocalesOf=qr.supportedLocalesOf,rn(vt,"Intl.DateTimeFormat");const{format:Pf,formatToParts:Nf}=Intl.DurationFormat?.prototype??Object.create(null);function dl(t){Intl.DurationFormat.prototype.resolvedOptions.call(this);const e=ul(Et(t));return Pf.call(this,e)}Intl.DurationFormat?.prototype&&(Intl.DurationFormat.prototype.format=dl,Intl.DurationFormat.prototype.formatToParts=function(t){Intl.DurationFormat.prototype.resolvedOptions.call(this);const e=ul(Et(t));return Nf.call(this,e)});class ga{constructor(e){if(arguments.length<1)throw new TypeError("missing argument: epochNanoseconds is required");Lc(this,Ao(e))}get epochMilliseconds(){return E(this,ke),_t(f(this,L),"floor")}get epochNanoseconds(){return E(this,ke),el(h.BigInt(f(this,L)))}add(e){return E(this,ke),ks("add",this,e)}subtract(e){return E(this,ke),ks("subtract",this,e)}until(e,n=void 0){return E(this,ke),Cs("until",this,e,n)}since(e,n=void 0){return E(this,ke),Cs("since",this,e,n)}round(e){if(E(this,ke),e===void 0)throw new TypeError("options parameter is required");const n=typeof e=="string"?kn("smallestUnit",e):P(e),r=sr(n),o=Mt(n,"halfExpand"),i=it(n,"smallestUnit","time",tn);return cr(r,{hour:24,minute:1440,second:86400,millisecond:864e5,microsecond:864e8,nanosecond:864e11}[i],!0),Rt(qi(f(this,L),r,i,o))}equals(e){E(this,ke);const n=_r(e),r=f(this,L),o=f(n,L);return h.equal(h.BigInt(r),h.BigInt(o))}toString(e=void 0){E(this,ke);const n=P(e),r=Xr(n),o=Mt(n,"trunc"),i=it(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=Xe(a));const{precision:s,unit:c,increment:l}=Qr(i,r);return gs(Rt(qi(f(this,L),l,c,o)),a,s)}toJSON(){return E(this,ke),gs(this,void 0,"auto")}toLocaleString(e=void 0,n=void 0){return E(this,ke),new vt(e,n).format(this)}valueOf(){bn("Instant")}toZonedDateTimeISO(e){E(this,ke);const n=Xe(e);return Pe(f(this,L),n,"iso8601")}static fromEpochMilliseconds(e){return Rt(It(Xo(e)))}static fromEpochNanoseconds(e){return Rt(Ao(e))}static from(e){return _r(e)}static compare(e,n){const r=_r(e),o=_r(n),i=f(r,L),a=f(o,L);return h.lessThan(i,a)?-1:h.greaterThan(i,a)?1:0}}rn(ga,"Temporal.Instant");class ya{constructor(e,n,r,o="iso8601"){const i=z(e),a=z(n),s=z(r),c=et(o===void 0?"iso8601":xe(o));On(i,a,s),Ac(this,{year:i,month:a,day:s},c)}get calendarId(){return E(this,ve),f(this,x)}get era(){return Le(this,"era")}get eraYear(){return Le(this,"eraYear")}get year(){return Le(this,"year")}get month(){return Le(this,"month")}get monthCode(){return Le(this,"monthCode")}get day(){return Le(this,"day")}get dayOfWeek(){return Le(this,"dayOfWeek")}get dayOfYear(){return Le(this,"dayOfYear")}get weekOfYear(){return Le(this,"weekOfYear")?.week}get yearOfWeek(){return Le(this,"weekOfYear")?.year}get daysInWeek(){return Le(this,"daysInWeek")}get daysInMonth(){return Le(this,"daysInMonth")}get daysInYear(){return Le(this,"daysInYear")}get monthsInYear(){return Le(this,"monthsInYear")}get inLeapYear(){return Le(this,"inLeapYear")}with(e,n=void 0){if(E(this,ve),!Te(e))throw new TypeError("invalid argument");ar(e);const r=f(this,x);let o=Qe(r,f(this,Y));return o=xn(r,o,gt(r,e,["year","month","monthCode","day"],[],"partial")),Ke(gn(r,o,ee(P(n))),r)}withCalendar(e){E(this,ve);const n=no(e);return Ke(f(this,Y),n)}add(e,n=void 0){return E(this,ve),Rs("add",this,e,n)}subtract(e,n=void 0){return E(this,ve),Rs("subtract",this,e,n)}until(e,n=void 0){return E(this,ve),Ds("until",this,e,n)}since(e,n=void 0){return E(this,ve),Ds("since",this,e,n)}equals(e){E(this,ve);const n=Er(e);return Yt(f(this,Y),f(n,Y))===0&&jt(f(this,x),f(n,x))}toString(e=void 0){return E(this,ve),ys(this,Kr(P(e)))}toJSON(){return E(this,ve),ys(this)}toLocaleString(e=void 0,n=void 0){return E(this,ve),new vt(e,n).format(this)}valueOf(){bn("PlainDate")}toPlainDateTime(e=void 0){E(this,ve);const n=Rc(e);return bt(te(f(this,Y),n),f(this,x))}toZonedDateTime(e){let n,r;if(E(this,ve),Te(e)){const a=e.timeZone;a===void 0?n=Xe(e):(n=Xe(a),r=e.plainTime)}else n=Xe(e);const o=f(this,Y);let i;return r===void 0?i=on(n,o):(r=cn(r),i=je(n,te(o,f(r,Ee)),"compatible")),Pe(i,n,f(this,x))}toPlainYearMonth(){E(this,ve);const e=f(this,x);return Gn(Lr(e,Qe(e,f(this,Y)),"constrain"),e)}toPlainMonthDay(){E(this,ve);const e=f(this,x);return Zn(Oo(e,Qe(e,f(this,Y)),"constrain"),e)}static from(e,n=void 0){return Er(e,n)}static compare(e,n){const r=Er(e),o=Er(n);return Yt(f(r,Y),f(o,Y))}}function Le(t,e){E(t,ve);const n=f(t,Y);return Jr(t).isoToDate(n,{[e]:!0})[e]}rn(ya,"Temporal.PlainDate");class pa{constructor(e,n,r,o=0,i=0,a=0,s=0,c=0,l=0,u="iso8601"){const d=z(e),m=z(n),y=z(r),b=o===void 0?0:z(o),g=i===void 0?0:z(i),w=a===void 0?0:z(a),v=s===void 0?0:z(s),D=c===void 0?0:z(c),M=l===void 0?0:z(l),C=et(u===void 0?"iso8601":xe(u));ca(d,m,y,b,g,w,v,D,M),Ic(this,{isoDate:{year:d,month:m,day:y},time:{hour:b,minute:g,second:w,millisecond:v,microsecond:D,nanosecond:M}},C)}get calendarId(){return E(this,ge),f(this,x)}get year(){return Ye(this,"year")}get month(){return Ye(this,"month")}get monthCode(){return Ye(this,"monthCode")}get day(){return Ye(this,"day")}get hour(){return Fn(this,"hour")}get minute(){return Fn(this,"minute")}get second(){return Fn(this,"second")}get millisecond(){return Fn(this,"millisecond")}get microsecond(){return Fn(this,"microsecond")}get nanosecond(){return Fn(this,"nanosecond")}get era(){return Ye(this,"era")}get eraYear(){return Ye(this,"eraYear")}get dayOfWeek(){return Ye(this,"dayOfWeek")}get dayOfYear(){return Ye(this,"dayOfYear")}get weekOfYear(){return Ye(this,"weekOfYear")?.week}get yearOfWeek(){return Ye(this,"weekOfYear")?.year}get daysInWeek(){return Ye(this,"daysInWeek")}get daysInYear(){return Ye(this,"daysInYear")}get daysInMonth(){return Ye(this,"daysInMonth")}get monthsInYear(){return Ye(this,"monthsInYear")}get inLeapYear(){return Ye(this,"inLeapYear")}with(e,n=void 0){if(E(this,ge),!Te(e))throw new TypeError("invalid argument");ar(e);const r=f(this,x),o=f(this,ye);let i={...Qe(r,o.isoDate),...o.time};return i=xn(r,i,gt(r,e,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond"],"partial")),bt(eo(r,i,ee(P(n))),r)}withPlainTime(e=void 0){E(this,ge);const n=Rc(e);return bt(te(f(this,ye).isoDate,n),f(this,x))}withCalendar(e){E(this,ge);const n=no(e);return bt(f(this,ye),n)}add(e,n=void 0){return E(this,ge),As("add",this,e,n)}subtract(e,n=void 0){return E(this,ge),As("subtract",this,e,n)}until(e,n=void 0){return E(this,ge),Ms("until",this,e,n)}since(e,n=void 0){return E(this,ge),Ms("since",this,e,n)}round(e){if(E(this,ge),e===void 0)throw new TypeError("options parameter is required");const n=typeof e=="string"?kn("smallestUnit",e):P(e),r=sr(n),o=Mt(n,"halfExpand"),i=it(n,"smallestUnit","time",tn,["day"]),a={day:1,hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[i];cr(r,a,a===1);const s=f(this,ye);return bt(r===1&&i==="nanosecond"?s:Wi(s,r,i,o),f(this,x))}equals(e){E(this,ge);const n=Tr(e);return rr(f(this,ye),f(n,ye))===0&&jt(f(this,x),f(n,x))}toString(e=void 0){E(this,ge);const n=P(e),r=Kr(n),o=Xr(n),i=Mt(n,"trunc"),a=it(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}=Qr(a,o),u=Wi(f(this,ye),l,c,i);return $n(u),zr(u,f(this,x),s,r)}toJSON(){return E(this,ge),zr(f(this,ye),f(this,x),"auto")}toLocaleString(e=void 0,n=void 0){return E(this,ge),new vt(e,n).format(this)}valueOf(){bn("PlainDateTime")}toZonedDateTime(e,n=void 0){E(this,ge);const r=Xe(e),o=Rr(P(n));return Pe(je(r,f(this,ye),o),r,f(this,x))}toPlainDate(){return E(this,ge),Ke(f(this,ye).isoDate,f(this,x))}toPlainTime(){return E(this,ge),Bt(f(this,ye).time)}static from(e,n=void 0){return Tr(e,n)}static compare(e,n){const r=Tr(e),o=Tr(n);return rr(f(r,ye),f(o,ye))}}function Ye(t,e){E(t,ge);const n=f(t,ye).isoDate;return Jr(t).isoToDate(n,{[e]:!0})[e]}function Fn(t,e){return E(t,ge),f(t,ye).time[e]}rn(pa,"Temporal.PlainDateTime");class ir{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:Dt(e),m=n===void 0?0:Dt(n),y=r===void 0?0:Dt(r),b=o===void 0?0:Dt(o),g=i===void 0?0:Dt(i),w=a===void 0?0:Dt(a),v=s===void 0?0:Dt(s),D=c===void 0?0:Dt(c),M=l===void 0?0:Dt(l),C=u===void 0?0:Dt(u);oi(d,m,y,b,g,w,v,D,M,C),nn(this),V(this,Ue,d),V(this,Fe,m),V(this,nt,y),V(this,qe,b),V(this,We,g),V(this,Ve,w),V(this,He,v),V(this,Ze,D),V(this,Be,M),V(this,rt,C)}get years(){return E(this,we),f(this,Ue)}get months(){return E(this,we),f(this,Fe)}get weeks(){return E(this,we),f(this,nt)}get days(){return E(this,we),f(this,qe)}get hours(){return E(this,we),f(this,We)}get minutes(){return E(this,we),f(this,Ve)}get seconds(){return E(this,we),f(this,He)}get milliseconds(){return E(this,we),f(this,Ze)}get microseconds(){return E(this,we),f(this,Be)}get nanoseconds(){return E(this,we),f(this,rt)}get sign(){return E(this,we),ko(this)}get blank(){return E(this,we),ko(this)===0}with(e){E(this,we);const n=kc(e),{years:r=f(this,Ue),months:o=f(this,Fe),weeks:i=f(this,nt),days:a=f(this,qe),hours:s=f(this,We),minutes:c=f(this,Ve),seconds:l=f(this,He),milliseconds:u=f(this,Ze),microseconds:d=f(this,Be),nanoseconds:m=f(this,rt)}=n;return new ir(r,o,i,a,s,c,l,u,d,m)}negated(){return E(this,we),st(this)}abs(){return E(this,we),new ir(Math.abs(f(this,Ue)),Math.abs(f(this,Fe)),Math.abs(f(this,nt)),Math.abs(f(this,qe)),Math.abs(f(this,We)),Math.abs(f(this,Ve)),Math.abs(f(this,He)),Math.abs(f(this,Ze)),Math.abs(f(this,Be)),Math.abs(f(this,rt)))}add(e){return E(this,we),Ss("add",this,e)}subtract(e){return E(this,we),Ss("subtract",this,e)}round(e){if(E(this,we),e===void 0)throw new TypeError("options parameter is required");const n=Vt(this),r=typeof e=="string"?kn("smallestUnit",e):P(e);let o=it(r,"largestUnit","datetime",void 0,["auto"]),{plainRelativeTo:i,zonedRelativeTo:a}=Ei(r);const s=sr(r),c=Mt(r,"halfExpand");let l=it(r,"smallestUnit","datetime",void 0),u=!0;l||(u=!1,l="nanosecond");const d=Kt(n,l);let m=!0;if(o||(m=!1,o=d),o==="auto"&&(o=d),!u&&!m)throw new RangeError("at least one of smallestUnit or largestUnit is required");if(Kt(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&&cr(s,y,!1),s>1&&Ht(l)==="date"&&o!==l)throw new RangeError("For calendar units with roundingIncrement > 1, use largestUnit = smallestUnit");if(a){let g=Vn(this);const w=f(a,se),v=f(a,x),D=f(a,L);return g=Jc(D,Mr(D,w,v,g),w,v,o,s,l,c),Ht(o)==="date"&&(o="hour"),wt(g,o)}if(i){let g=At(this);const w=nr({hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0},g.time),v=f(i,Y),D=f(i,x),M=ft(D,v,Ne(g.date,w.deltaDays),"constrain");return g=Qc(te(v,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),te(M,w),D,o,s,l,c),wt(g,o)}if(St(n))throw new RangeError(`a starting point is required for ${n}s balancing`);if(St(o))throw new RangeError(`a starting point is required for ${o}s balancing`);let b=At(this);if(l==="day"){const{quotient:g,remainder:w}=b.time.divmod(Do);let v=b.date.days+g+Ar(w,"day");v=ln(v,s,c),b=Xt({years:0,months:0,weeks:0,days:v},B.ZERO)}else b=Xt({years:0,months:0,weeks:0,days:0},Ro(b.time,s,l,c));return wt(b,o)}total(e){if(E(this,we),e===void 0)throw new TypeError("options argument is required");const n=typeof e=="string"?kn("unit",e):P(e);let{plainRelativeTo:r,zonedRelativeTo:o}=Ei(n);const i=it(n,"unit","datetime",tn);if(o){const s=Vn(this),c=f(o,se),l=f(o,x),u=f(o,L);return(function(d,m,y,b,g){return Ht(g)==="time"?Ar(B.fromEpochNsDiff(m,d),g):_s(Kc(d,m,y,b,g),m,Tt(y,d),y,b,g)})(u,Mr(u,c,l,s),c,l,i)}if(r){const s=At(this);let c=nr({hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0},s.time);const l=f(r,Y),u=f(r,x),d=ft(u,l,Ne(s.date,c.deltaDays),"constrain");return(function(m,y,b,g){if(rr(m,y)==0)return 0;$n(m),$n(y);const w=Gc(m,y,b,g);return g==="nanosecond"?h.toNumber(w.time.totalNs):_s(w,Ae(y),m,null,b,g)})(te(l,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),te(d,c),u,i)}const a=Vt(this);if(St(a))throw new RangeError(`a starting point is required for ${a}s total`);if(St(i))throw new RangeError(`a starting point is required for ${i}s total`);return Ar(At(this).time,i)}toString(e=void 0){E(this,we);const n=P(e),r=Xr(n),o=Mt(n,"trunc"),i=it(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}=Qr(i,r);if(s==="nanosecond"&&c===1)return yo(this,a);const l=Vt(this);let u=Vn(this);const d=Ro(u.time,c,s,o);return u=Xt(u.date,d),yo(wt(u,Kt(l,"second")),a)}toJSON(){return E(this,we),yo(this,"auto")}toLocaleString(e=void 0,n=void 0){if(E(this,we),typeof Intl.DurationFormat=="function"){const r=new Intl.DurationFormat(e,n);return dl.call(r,this)}return console.warn("Temporal.Duration.prototype.toLocaleString() requires Intl.DurationFormat."),yo(this,"auto")}valueOf(){bn("Duration")}static from(e){return Et(e)}static compare(e,n,r=void 0){const o=Et(e),i=Et(n),a=P(r),{plainRelativeTo:s,zonedRelativeTo:c}=Ei(a);if(f(o,Ue)===f(i,Ue)&&f(o,Fe)===f(i,Fe)&&f(o,nt)===f(i,nt)&&f(o,qe)===f(i,qe)&&f(o,We)===f(i,We)&&f(o,Ve)===f(i,Ve)&&f(o,He)===f(i,He)&&f(o,Ze)===f(i,Ze)&&f(o,Be)===f(i,Be)&&f(o,rt)===f(i,rt))return 0;const l=Vt(o),u=Vt(i),d=Vn(o),m=Vn(i);if(c&&(Ht(l)==="date"||Ht(u)==="date")){const v=f(c,se),D=f(c,x),M=f(c,L),C=Mr(M,v,D,d),T=Mr(M,v,D,m);return ot(h.toNumber(h.subtract(C,T)))}let y=d.date.days,b=m.date.days;if(St(l)||St(u)){if(!s)throw new RangeError("A starting point is required for years, months, or weeks comparison");y=Ts(d.date,s),b=Ts(m.date,s)}const g=d.time.add24HourDays(y),w=m.time.add24HourDays(b);return g.cmp(w)}}rn(ir,"Temporal.Duration");class ba{constructor(e,n,r="iso8601",o=1972){const i=z(e),a=z(n),s=et(r===void 0?"iso8601":xe(r)),c=z(o);On(c,i,a),Pc(this,{year:c,month:i,day:a},s)}get monthCode(){return Ls(this,"monthCode")}get day(){return Ls(this,"day")}get calendarId(){return E(this,lt),f(this,x)}with(e,n=void 0){if(E(this,lt),!Te(e))throw new TypeError("invalid argument");ar(e);const r=f(this,x);let o=Qe(r,f(this,Y),"month-day");return o=xn(r,o,gt(r,e,["year","month","monthCode","day"],[],"partial")),Zn(Oo(r,o,ee(P(n))),r)}equals(e){E(this,lt);const n=fs(e);return Yt(f(this,Y),f(n,Y))===0&&jt(f(this,x),f(n,x))}toString(e=void 0){return E(this,lt),bs(this,Kr(P(e)))}toJSON(){return E(this,lt),bs(this)}toLocaleString(e=void 0,n=void 0){return E(this,lt),new vt(e,n).format(this)}valueOf(){bn("PlainMonthDay")}toPlainDate(e){if(E(this,lt),!Te(e))throw new TypeError("argument should be an object");const n=f(this,x);return Ke(gn(n,xn(n,Qe(n,f(this,Y),"month-day"),gt(n,e,["year"],[],[])),"constrain"),n)}static from(e,n=void 0){return fs(e,n)}}function Ls(t,e){E(t,lt);const n=f(t,Y);return Jr(t).isoToDate(n,{[e]:!0})[e]}function _i(t){return Tt(t,Zi())}rn(ba,"Temporal.PlainMonthDay");const hl={instant:()=>Rt(Zi()),plainDateTimeISO:(t=gr())=>bt(_i(Xe(t)),"iso8601"),plainDateISO:(t=gr())=>Ke(_i(Xe(t)).isoDate,"iso8601"),plainTimeISO:(t=gr())=>Bt(_i(Xe(t)).time),timeZoneId:()=>gr(),zonedDateTimeISO:(t=gr())=>{const e=Xe(t);return Pe(Zi(),e,"iso8601")},[Symbol.toStringTag]:"Temporal.Now"};Object.defineProperty(hl,Symbol.toStringTag,{value:"Temporal.Now",writable:!1,enumerable:!1,configurable:!0});class co{constructor(e=0,n=0,r=0,o=0,i=0,a=0){const s=e===void 0?0:z(e),c=n===void 0?0:z(n),l=r===void 0?0:z(r),u=o===void 0?0:z(o),d=i===void 0?0:z(i),m=a===void 0?0:z(a);ri(s,c,l,u,d,m),Nc(this,{hour:s,minute:c,second:l,millisecond:u,microsecond:d,nanosecond:m})}get hour(){return E(this,De),f(this,Ee).hour}get minute(){return E(this,De),f(this,Ee).minute}get second(){return E(this,De),f(this,Ee).second}get millisecond(){return E(this,De),f(this,Ee).millisecond}get microsecond(){return E(this,De),f(this,Ee).microsecond}get nanosecond(){return E(this,De),f(this,Ee).nanosecond}with(e,n=void 0){if(E(this,De),!Te(e))throw new TypeError("invalid argument");ar(e);const r=ji(e,"partial"),o=ji(this);let{hour:i,minute:a,second:s,millisecond:c,microsecond:l,nanosecond:u}=Object.assign(o,r);const d=ee(P(n));return{hour:i,minute:a,second:s,millisecond:c,microsecond:l,nanosecond:u}=ei(i,a,s,c,l,u,d),new co(i,a,s,c,l,u)}add(e){return E(this,De),Is("add",this,e)}subtract(e){return E(this,De),Is("subtract",this,e)}until(e,n=void 0){return E(this,De),xs("until",this,e,n)}since(e,n=void 0){return E(this,De),xs("since",this,e,n)}round(e){if(E(this,De),e===void 0)throw new TypeError("options parameter is required");const n=typeof e=="string"?kn("smallestUnit",e):P(e),r=sr(n),o=Mt(n,"halfExpand"),i=it(n,"smallestUnit","time",tn);return cr(r,{hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[i],!1),Bt(Vi(f(this,Ee),r,i,o))}equals(e){E(this,De);const n=cn(e);return Hi(f(this,Ee),f(n,Ee))===0}toString(e=void 0){E(this,De);const n=P(e),r=Xr(n),o=Mt(n,"trunc"),i=it(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}=Qr(i,r);return ps(Vi(f(this,Ee),c,s,o),a)}toJSON(){return E(this,De),ps(f(this,Ee),"auto")}toLocaleString(e=void 0,n=void 0){return E(this,De),new vt(e,n).format(this)}valueOf(){bn("PlainTime")}static from(e,n=void 0){return cn(e,n)}static compare(e,n){const r=cn(e),o=cn(n);return Hi(f(r,Ee),f(o,Ee))}}rn(co,"Temporal.PlainTime");class wa{constructor(e,n,r="iso8601",o=1){const i=z(e),a=z(n),s=et(r===void 0?"iso8601":xe(r)),c=z(o);On(i,a,c),jc(this,{year:i,month:a,day:c},s)}get year(){return Ft(this,"year")}get month(){return Ft(this,"month")}get monthCode(){return Ft(this,"monthCode")}get calendarId(){return E(this,Re),f(this,x)}get era(){return Ft(this,"era")}get eraYear(){return Ft(this,"eraYear")}get daysInMonth(){return Ft(this,"daysInMonth")}get daysInYear(){return Ft(this,"daysInYear")}get monthsInYear(){return Ft(this,"monthsInYear")}get inLeapYear(){return Ft(this,"inLeapYear")}with(e,n=void 0){if(E(this,Re),!Te(e))throw new TypeError("invalid argument");ar(e);const r=f(this,x);let o=Qe(r,f(this,Y),"year-month");return o=xn(r,o,gt(r,e,["year","month","monthCode"],[],"partial")),Gn(Lr(r,o,ee(P(n))),r)}add(e,n=void 0){return E(this,Re),Ps("add",this,e,n)}subtract(e,n=void 0){return E(this,Re),Ps("subtract",this,e,n)}until(e,n=void 0){return E(this,Re),Os("until",this,e,n)}since(e,n=void 0){return E(this,Re),Os("since",this,e,n)}equals(e){E(this,Re);const n=Cr(e);return Yt(f(this,Y),f(n,Y))===0&&jt(f(this,x),f(n,x))}toString(e=void 0){return E(this,Re),ws(this,Kr(P(e)))}toJSON(){return E(this,Re),ws(this)}toLocaleString(e=void 0,n=void 0){return E(this,Re),new vt(e,n).format(this)}valueOf(){bn("PlainYearMonth")}toPlainDate(e){if(E(this,Re),!Te(e))throw new TypeError("argument should be an object");const n=f(this,x);return Ke(gn(n,xn(n,Qe(n,f(this,Y),"year-month"),gt(n,e,["day"],[],[])),"constrain"),n)}static from(e,n=void 0){return Cr(e,n)}static compare(e,n){const r=Cr(e),o=Cr(n);return Yt(f(r,Y),f(o,Y))}}function Ft(t,e){E(t,Re);const n=f(t,Y);return Jr(t).isoToDate(n,{[e]:!0})[e]}rn(wa,"Temporal.PlainYearMonth");const jf=vt.prototype.resolvedOptions;class va{constructor(e,n,r="iso8601"){if(arguments.length<1)throw new TypeError("missing argument: epochNanoseconds is required");const o=Ao(e);let i=xe(n);const{tzName:a,offsetMinutes:s}=un(i);if(s===void 0){const c=$o(a);if(!c)throw new RangeError(`unknown time zone ${a}`);i=c.identifier}else i=ia(s);Yc(this,o,i,et(r===void 0?"iso8601":xe(r)))}get calendarId(){return E(this,Z),f(this,x)}get timeZoneId(){return E(this,Z),f(this,se)}get year(){return ze(this,"year")}get month(){return ze(this,"month")}get monthCode(){return ze(this,"monthCode")}get day(){return ze(this,"day")}get hour(){return qn(this,"hour")}get minute(){return qn(this,"minute")}get second(){return qn(this,"second")}get millisecond(){return qn(this,"millisecond")}get microsecond(){return qn(this,"microsecond")}get nanosecond(){return qn(this,"nanosecond")}get era(){return ze(this,"era")}get eraYear(){return ze(this,"eraYear")}get epochMilliseconds(){return E(this,Z),_t(f(this,L),"floor")}get epochNanoseconds(){return E(this,Z),el(f(this,L))}get dayOfWeek(){return ze(this,"dayOfWeek")}get dayOfYear(){return ze(this,"dayOfYear")}get weekOfYear(){return ze(this,"weekOfYear")?.week}get yearOfWeek(){return ze(this,"weekOfYear")?.year}get hoursInDay(){E(this,Z);const e=f(this,se),n=$t(this).isoDate,r=at(n.year,n.month,n.day+1),o=on(e,n),i=on(e,r);return Ar(B.fromEpochNsDiff(i,o),"hour")}get daysInWeek(){return ze(this,"daysInWeek")}get daysInMonth(){return ze(this,"daysInMonth")}get daysInYear(){return ze(this,"daysInYear")}get monthsInYear(){return ze(this,"monthsInYear")}get inLeapYear(){return ze(this,"inLeapYear")}get offset(){return E(this,Z),Li(Gt(f(this,se),f(this,L)))}get offsetNanoseconds(){return E(this,Z),Gt(f(this,se),f(this,L))}with(e,n=void 0){if(E(this,Z),!Te(e))throw new TypeError("invalid zoned-date-time-like");ar(e);const r=f(this,x),o=f(this,se),i=Gt(o,f(this,L)),a=$t(this);let s={...Qe(r,a.isoDate),...a.time,offset:Li(i)};s=xn(r,s,gt(r,e,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond","offset"],"partial"));const c=P(n),l=Rr(c),u=bo(c,"prefer"),d=eo(r,s,ee(c)),m=lr(s.offset);return Pe(xo(d.isoDate,d.time,"option",m,o,l,u,!1),o,r)}withPlainTime(e=void 0){E(this,Z);const n=f(this,se),r=f(this,x),o=$t(this).isoDate;let i;return i=e===void 0?on(n,o):je(n,te(o,f(cn(e),Ee)),"compatible"),Pe(i,n,r)}withTimeZone(e){E(this,Z);const n=Xe(e);return Pe(f(this,L),n,f(this,x))}withCalendar(e){E(this,Z);const n=no(e);return Pe(f(this,L),f(this,se),n)}add(e,n=void 0){return E(this,Z),Ns("add",this,e,n)}subtract(e,n=void 0){return E(this,Z),Ns("subtract",this,e,n)}until(e,n=void 0){return E(this,Z),$s("until",this,e,n)}since(e,n=void 0){return E(this,Z),$s("since",this,e,n)}round(e){if(E(this,Z),e===void 0)throw new TypeError("options parameter is required");const n=typeof e=="string"?kn("smallestUnit",e):P(e),r=sr(n),o=Mt(n,"halfExpand"),i=it(n,"smallestUnit","time",tn,["day"]),a={day:1,hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[i];if(cr(r,a,a===1),i==="nanosecond"&&r===1)return Pe(f(this,L),f(this,se),f(this,x));const s=f(this,se),c=f(this,L),l=$t(this);let u;if(i==="day"){const d=l.isoDate,m=at(d.year,d.month,d.day+1),y=on(s,d),b=on(s,m),g=h.subtract(b,y);u=B.fromEpochNsDiff(c,y).round(g,o).addToEpochNs(y)}else{const d=Wi(l,r,i,o),m=Gt(s,c);u=xo(d.isoDate,d.time,"option",m,s,"compatible","prefer",!1)}return Pe(u,s,f(this,x))}equals(e){E(this,Z);const n=Dr(e),r=f(this,L),o=f(n,L);return!!h.equal(h.BigInt(r),h.BigInt(o))&&!!zc(f(this,se),f(n,se))&&jt(f(this,x),f(n,x))}toString(e=void 0){E(this,Z);const n=P(e),r=Kr(n),o=Xr(n),i=(function(m){return Qt(m,"offset",["auto","never"],"auto")})(n),a=Mt(n,"trunc"),s=it(n,"smallestUnit","time",void 0);if(s==="hour")throw new RangeError('smallestUnit must be a time unit other than "hour"');const c=(function(m){return Qt(m,"timeZoneName",["auto","never","critical"],"auto")})(n),{precision:l,unit:u,increment:d}=Qr(s,o);return vs(this,l,r,c,i,{unit:u,increment:d,roundingMode:a})}toLocaleString(e=void 0,n=void 0){E(this,Z);const r=P(n),o=Object.create(null);if((function(c,l,u,d){if(l==null)return;const m=Reflect.ownKeys(l);for(let y=0;y<m.length;y++){const b=m[y];if(!u.some((g=>Object.is(g,b)))&&Object.prototype.propertyIsEnumerable.call(l,b)){const g=l[b];c[b]=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=f(this,se),Es(o.timeZone))throw new RangeError("toLocaleString does not currently support offset time zones");const i=new vt(e,o),a=jf.call(i).calendar,s=f(this,x);if(s!=="iso8601"&&a!=="iso8601"&&!jt(a,s))throw new RangeError(`cannot format ZonedDateTime with calendar ${s} in locale with calendar ${a}`);return i.format(Rt(f(this,L)))}toJSON(){return E(this,Z),vs(this,"auto")}valueOf(){bn("ZonedDateTime")}startOfDay(){E(this,Z);const e=f(this,se);return Pe(on(e,$t(this).isoDate),e,f(this,x))}getTimeZoneTransition(e){E(this,Z);const n=f(this,se);if(e===void 0)throw new TypeError("options parameter is required");const r=Qt(typeof e=="string"?kn("direction",e):P(e),"direction",["next","previous"],tn);if(r===void 0)throw new TypeError("direction option is required");if(Es(n)||n==="UTC")return null;const o=f(this,L),i=r==="next"?sa(n,o):zi(n,o);return i===null?null:Pe(i,n,f(this,x))}toInstant(){return E(this,Z),Rt(f(this,L))}toPlainDate(){return E(this,Z),Ke($t(this).isoDate,f(this,x))}toPlainTime(){return E(this,Z),Bt($t(this).time)}toPlainDateTime(){return E(this,Z),bt($t(this),f(this,x))}static from(e,n=void 0){return Dr(e,n)}static compare(e,n){const r=Dr(e),o=Dr(n),i=f(r,L),a=f(o,L);return h.lessThan(h.BigInt(i),h.BigInt(a))?-1:h.greaterThan(h.BigInt(i),h.BigInt(a))?1:0}}function $t(t){return Tt(f(t,se),f(t,L))}function ze(t,e){E(t,Z);const n=$t(t).isoDate;return Jr(t).isoToDate(n,{[e]:!0})[e]}function qn(t,e){return E(t,Z),$t(t).time[e]}rn(va,"Temporal.ZonedDateTime");var Se=Object.freeze({__proto__:null,Duration:ir,Instant:ga,Now:hl,PlainDate:ya,PlainDateTime:pa,PlainMonthDay:ba,PlainTime:co,PlainYearMonth:wa,ZonedDateTime:va});const Lf=[ga,ya,pa,ir,ba,co,wa,va];for(const t of Lf){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 lo=(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))(lo||{});const ci={month:"2-digit",day:"2-digit",year:"numeric"},fl={...ci,hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0},Yf=t=>t?(typeof t=="string"?Se.Instant.from(t):Se.Instant.fromEpochMilliseconds(t.getTime())).toZonedDateTimeISO(Se.Now.timeZoneId()).toLocaleString(lo.SYSTEM_LOCALE,fl):"",zf=t=>t?(typeof t=="string"?Se.Instant.from(t):Se.Instant.fromEpochMilliseconds(t.getTime())).toZonedDateTimeISO(Se.Now.timeZoneId()).toLocaleString(lo.SYSTEM_LOCALE,ci):"",Uf=t=>t?Se.PlainDate.from(t).toLocaleString(lo.SYSTEM_LOCALE,ci):"",ml=t=>t?(typeof t=="string"?Se.Instant.from(t):Se.Instant.fromEpochMilliseconds(t.getTime())).toZonedDateTimeISO(Se.Now.timeZoneId()).toPlainDate().toString():"",Ff=t=>t?ml(t):"",qf=t=>{if(!t)return null;const e=Se.PlainDate.from(t);return new Date(e.year,e.month-1,e.day)},Wf=t=>{if(!t)return;const e=Se.Instant.fromEpochMilliseconds(Number(t));return new Date(e.toZonedDateTimeISO(Se.Now.timeZoneId()).toPlainDate().toString())},Vf=(t,e)=>{if(!t||!e)return!1;const n=typeof t=="string"?Se.Instant.from(t):Se.Instant.fromEpochMilliseconds(t.getTime()),r=typeof e=="string"?Se.Instant.from(e):Se.Instant.fromEpochMilliseconds(e.getTime());return Se.Instant.compare(n,r)>0};function Hf(t){if(typeof t=="string")return Number.parseInt(t,10)}const Zf=()=>({isLoading:!1,isSuccess:!1,isError:!1,isComplete:!1,message:""}),Bf=t=>({...t,isLoading:!0,isSuccess:!1,isError:!1,message:""}),Gf=(t,e)=>({...t,isLoading:!1,isSuccess:!0,isError:!1,isComplete:!0,message:e||""}),Kf=(t,e)=>({...t,isLoading:!1,isSuccess:!1,isError:!0,isComplete:!0,message:e||""});function Xf(t){return t==null?!0:typeof t=="string"?t.trim()==="":!1}const Qf=t=>{try{return decodeURIComponent(t)!==t}catch{return!1}};exports.AppSnackBar=bh;exports.CancelButton=nh;exports.CenteredCircularProgress=vh;exports.ConfirmDialog=Eh;exports.DeleteButton=oh;exports.DismissibleAlert=Th;exports.EditIconButton=ah;exports.ExcelButton=sh;exports.GoBackButton=lh;exports.HistoryButton=dh;exports.LoadingSuccessButton=mh;exports.ManageButton=yh;exports.NextLink=_h;exports.OpenInNewIconLink=Dh;exports.QuerySnackBar=wh;exports.ReactIf=Mh;exports.SuccessButton=ph;exports.SystemConfig=lo;exports.TEMPORAL_DATE_FORMAT=ci;exports.TEMPORAL_DATE_TIME_FORMAT=fl;exports.TabPanel=Oh;exports.TablePaginationActions=xh;exports.a11yProps=$h;exports.formatIsoToAppDate=Uf;exports.formatOldDateToIsoDate=Ff;exports.formatOldDateToIsoString=ml;exports.formatToAppDate=zf;exports.formatToAppDateTime=Yf;exports.formatUnixTimeToOldDate=Wf;exports.getCssVariable=kh;exports.initializeState=Zf;exports.isAfter=Vf;exports.isBlankOrEmpty=Xf;exports.isEncoded=Qf;exports.markError=Kf;exports.markLoading=Bf;exports.markSuccess=Gf;exports.parseBoolean=Sh;exports.parseIsoDate=qf;exports.parseNumber=Hf;
|
|
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 Fd(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const Ot=t=>{try{return t()}catch{}},qd=(t="mui")=>ad(t);function bi(t,e,n,r,o){if(!n)return;n=n===!0?{}:n;const i=o==="dark"?"dark":"light";if(!r){e[o]=jd({...n,palette:{mode:i,...n?.palette},colorSpace:t});return}const{palette:a,...s}=xi({...r,palette:{mode:i,...n?.palette},colorSpace:t});return e[o]={...n,palette:a,opacity:{...oc(i),...n?.opacity},overlays:n?.overlays||ic(i)},s}function Wd(t={},...e){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:s=Ld,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...u}=t,d=Object.keys(n)[0],m=r||(n.light&&d!=="light"?"light":d),y=qd(i),{[m]:b,light:g,dark:w,...v}=n,D={...v};let M=b;if((m==="dark"&&!("dark"in n)||m==="light"&&!("light"in n))&&(M=!0),!M)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${m}\` option is either missing or invalid.`:dn(21,m));let C;a&&(C="oklch");const T=bi(C,D,M,u,m);g&&!D.light&&bi(C,D,g,void 0,"light"),w&&!D.dark&&bi(C,D,w,void 0,"dark");let k={defaultColorScheme:m,...T,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:l,getCssVar:y,colorSchemes:D,font:{...wd(T.typography),...T.font},spacing:Fd(u.spacing)};Object.keys(k.colorSchemes).forEach(q=>{const p=k.colorSchemes[q].palette,R=j=>{const H=j.split("-"),pe=H[1],ct=H[2];return y(j,p[pe][ct])};p.mode==="light"&&(_(p.common,"background","#fff"),_(p.common,"onBackground","#000")),p.mode==="dark"&&(_(p.common,"background","#000"),_(p.common,"onBackground","#fff"));function O(j,H,pe){if(C){let ct;return j===wn&&(ct=`transparent ${((1-pe)*100).toFixed(0)}%`),j===de&&(ct=`#000 ${(pe*100).toFixed(0)}%`),j===he&&(ct=`#fff ${(pe*100).toFixed(0)}%`),`color-mix(in ${C}, ${H}, ${ct})`}return j(H,pe)}if(Ud(p,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),p.mode==="light"){_(p.Alert,"errorColor",O(de,p.error.light,.6)),_(p.Alert,"infoColor",O(de,p.info.light,.6)),_(p.Alert,"successColor",O(de,p.success.light,.6)),_(p.Alert,"warningColor",O(de,p.warning.light,.6)),_(p.Alert,"errorFilledBg",R("palette-error-main")),_(p.Alert,"infoFilledBg",R("palette-info-main")),_(p.Alert,"successFilledBg",R("palette-success-main")),_(p.Alert,"warningFilledBg",R("palette-warning-main")),_(p.Alert,"errorFilledColor",Ot(()=>p.getContrastText(p.error.main))),_(p.Alert,"infoFilledColor",Ot(()=>p.getContrastText(p.info.main))),_(p.Alert,"successFilledColor",Ot(()=>p.getContrastText(p.success.main))),_(p.Alert,"warningFilledColor",Ot(()=>p.getContrastText(p.warning.main))),_(p.Alert,"errorStandardBg",O(he,p.error.light,.9)),_(p.Alert,"infoStandardBg",O(he,p.info.light,.9)),_(p.Alert,"successStandardBg",O(he,p.success.light,.9)),_(p.Alert,"warningStandardBg",O(he,p.warning.light,.9)),_(p.Alert,"errorIconColor",R("palette-error-main")),_(p.Alert,"infoIconColor",R("palette-info-main")),_(p.Alert,"successIconColor",R("palette-success-main")),_(p.Alert,"warningIconColor",R("palette-warning-main")),_(p.AppBar,"defaultBg",R("palette-grey-100")),_(p.Avatar,"defaultBg",R("palette-grey-400")),_(p.Button,"inheritContainedBg",R("palette-grey-300")),_(p.Button,"inheritContainedHoverBg",R("palette-grey-A100")),_(p.Chip,"defaultBorder",R("palette-grey-400")),_(p.Chip,"defaultAvatarColor",R("palette-grey-700")),_(p.Chip,"defaultIconColor",R("palette-grey-700")),_(p.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),_(p.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),_(p.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),_(p.LinearProgress,"primaryBg",O(he,p.primary.main,.62)),_(p.LinearProgress,"secondaryBg",O(he,p.secondary.main,.62)),_(p.LinearProgress,"errorBg",O(he,p.error.main,.62)),_(p.LinearProgress,"infoBg",O(he,p.info.main,.62)),_(p.LinearProgress,"successBg",O(he,p.success.main,.62)),_(p.LinearProgress,"warningBg",O(he,p.warning.main,.62)),_(p.Skeleton,"bg",C?O(wn,p.text.primary,.11):`rgba(${R("palette-text-primaryChannel")} / 0.11)`),_(p.Slider,"primaryTrack",O(he,p.primary.main,.62)),_(p.Slider,"secondaryTrack",O(he,p.secondary.main,.62)),_(p.Slider,"errorTrack",O(he,p.error.main,.62)),_(p.Slider,"infoTrack",O(he,p.info.main,.62)),_(p.Slider,"successTrack",O(he,p.success.main,.62)),_(p.Slider,"warningTrack",O(he,p.warning.main,.62));const j=C?O(de,p.background.default,.6825):go(p.background.default,.8);_(p.SnackbarContent,"bg",j),_(p.SnackbarContent,"color",Ot(()=>C?Mi.text.primary:p.getContrastText(j))),_(p.SpeedDialAction,"fabHoverBg",go(p.background.paper,.15)),_(p.StepConnector,"border",R("palette-grey-400")),_(p.StepContent,"border",R("palette-grey-400")),_(p.Switch,"defaultColor",R("palette-common-white")),_(p.Switch,"defaultDisabledColor",R("palette-grey-100")),_(p.Switch,"primaryDisabledColor",O(he,p.primary.main,.62)),_(p.Switch,"secondaryDisabledColor",O(he,p.secondary.main,.62)),_(p.Switch,"errorDisabledColor",O(he,p.error.main,.62)),_(p.Switch,"infoDisabledColor",O(he,p.info.main,.62)),_(p.Switch,"successDisabledColor",O(he,p.success.main,.62)),_(p.Switch,"warningDisabledColor",O(he,p.warning.main,.62)),_(p.TableCell,"border",O(he,O(wn,p.divider,1),.88)),_(p.Tooltip,"bg",O(wn,p.grey[700],.92))}if(p.mode==="dark"){_(p.Alert,"errorColor",O(he,p.error.light,.6)),_(p.Alert,"infoColor",O(he,p.info.light,.6)),_(p.Alert,"successColor",O(he,p.success.light,.6)),_(p.Alert,"warningColor",O(he,p.warning.light,.6)),_(p.Alert,"errorFilledBg",R("palette-error-dark")),_(p.Alert,"infoFilledBg",R("palette-info-dark")),_(p.Alert,"successFilledBg",R("palette-success-dark")),_(p.Alert,"warningFilledBg",R("palette-warning-dark")),_(p.Alert,"errorFilledColor",Ot(()=>p.getContrastText(p.error.dark))),_(p.Alert,"infoFilledColor",Ot(()=>p.getContrastText(p.info.dark))),_(p.Alert,"successFilledColor",Ot(()=>p.getContrastText(p.success.dark))),_(p.Alert,"warningFilledColor",Ot(()=>p.getContrastText(p.warning.dark))),_(p.Alert,"errorStandardBg",O(de,p.error.light,.9)),_(p.Alert,"infoStandardBg",O(de,p.info.light,.9)),_(p.Alert,"successStandardBg",O(de,p.success.light,.9)),_(p.Alert,"warningStandardBg",O(de,p.warning.light,.9)),_(p.Alert,"errorIconColor",R("palette-error-main")),_(p.Alert,"infoIconColor",R("palette-info-main")),_(p.Alert,"successIconColor",R("palette-success-main")),_(p.Alert,"warningIconColor",R("palette-warning-main")),_(p.AppBar,"defaultBg",R("palette-grey-900")),_(p.AppBar,"darkBg",R("palette-background-paper")),_(p.AppBar,"darkColor",R("palette-text-primary")),_(p.Avatar,"defaultBg",R("palette-grey-600")),_(p.Button,"inheritContainedBg",R("palette-grey-800")),_(p.Button,"inheritContainedHoverBg",R("palette-grey-700")),_(p.Chip,"defaultBorder",R("palette-grey-700")),_(p.Chip,"defaultAvatarColor",R("palette-grey-300")),_(p.Chip,"defaultIconColor",R("palette-grey-300")),_(p.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),_(p.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),_(p.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),_(p.LinearProgress,"primaryBg",O(de,p.primary.main,.5)),_(p.LinearProgress,"secondaryBg",O(de,p.secondary.main,.5)),_(p.LinearProgress,"errorBg",O(de,p.error.main,.5)),_(p.LinearProgress,"infoBg",O(de,p.info.main,.5)),_(p.LinearProgress,"successBg",O(de,p.success.main,.5)),_(p.LinearProgress,"warningBg",O(de,p.warning.main,.5)),_(p.Skeleton,"bg",C?O(wn,p.text.primary,.13):`rgba(${R("palette-text-primaryChannel")} / 0.13)`),_(p.Slider,"primaryTrack",O(de,p.primary.main,.5)),_(p.Slider,"secondaryTrack",O(de,p.secondary.main,.5)),_(p.Slider,"errorTrack",O(de,p.error.main,.5)),_(p.Slider,"infoTrack",O(de,p.info.main,.5)),_(p.Slider,"successTrack",O(de,p.success.main,.5)),_(p.Slider,"warningTrack",O(de,p.warning.main,.5));const j=C?O(he,p.background.default,.985):go(p.background.default,.98);_(p.SnackbarContent,"bg",j),_(p.SnackbarContent,"color",Ot(()=>C?tc.text.primary:p.getContrastText(j))),_(p.SpeedDialAction,"fabHoverBg",go(p.background.paper,.15)),_(p.StepConnector,"border",R("palette-grey-600")),_(p.StepContent,"border",R("palette-grey-600")),_(p.Switch,"defaultColor",R("palette-grey-300")),_(p.Switch,"defaultDisabledColor",R("palette-grey-600")),_(p.Switch,"primaryDisabledColor",O(de,p.primary.main,.55)),_(p.Switch,"secondaryDisabledColor",O(de,p.secondary.main,.55)),_(p.Switch,"errorDisabledColor",O(de,p.error.main,.55)),_(p.Switch,"infoDisabledColor",O(de,p.info.main,.55)),_(p.Switch,"successDisabledColor",O(de,p.success.main,.55)),_(p.Switch,"warningDisabledColor",O(de,p.warning.main,.55)),_(p.TableCell,"border",O(de,O(wn,p.divider,1),.68)),_(p.Tooltip,"bg",O(wn,p.grey[700],.92))}Ut(p.background,"default"),Ut(p.background,"paper"),Ut(p.common,"background"),Ut(p.common,"onBackground"),Ut(p,"divider"),Object.keys(p).forEach(j=>{const H=p[j];j!=="tonalOffset"&&H&&typeof H=="object"&&(H.main&&_(p[j],"mainChannel",pr(br(H.main))),H.light&&_(p[j],"lightChannel",pr(br(H.light))),H.dark&&_(p[j],"darkChannel",pr(br(H.dark))),H.contrastText&&_(p[j],"contrastTextChannel",pr(br(H.contrastText))),j==="text"&&(Ut(p[j],"primary"),Ut(p[j],"secondary")),j==="action"&&(H.active&&Ut(p[j],"active"),H.selected&&Ut(p[j],"selected")))})}),k=e.reduce((q,p)=>ht(q,p),k);const U={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:zd(k),enableContrastVars:a},{vars:G,generateThemeVars:N,generateStyleSheets:ae}=ld(k,U);return k.vars=G,Object.entries(k.colorSchemes[k.defaultColorScheme]).forEach(([q,p])=>{k[q]=p}),k.generateThemeVars=N,k.generateStyleSheets=ae,k.generateSpacing=function(){return Zs(u.spacing,Gi(this))},k.getColorSchemeSelector=ud(c),k.spacing=k.generateSpacing(),k.shouldSkipGeneratingVar=s,k.unstable_sxConfig={...Wo,...u?.unstable_sxConfig},k.unstable_sx=function(p){return Xn({sx:p,theme:this})},k.toRuntimeSource=rc,k}function es(t,e,n){t.colorSchemes&&n&&(t.colorSchemes[e]={...n!==!0&&n,palette:ea({...n===!0?{}:n.palette,mode:e})})}function Vd(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 xi(t,...e);let u=n;"palette"in t||l[s]&&(l[s]!==!0?u=l[s].palette:s==="dark"&&(u={mode:"dark"}));const d=xi({...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},es(d,"dark",l.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:d.palette},es(d,"light",l.light)),d}return!n&&!("light"in l)&&s==="light"&&(l.light=!0),Wd({...a,colorSchemes:l,defaultColorScheme:s,...typeof r!="boolean"&&r},...e)}const ac=Vd(),sc="$$material";function Hd(){const t=zu(ac);return process.env.NODE_ENV!=="production"&&Nt.useDebugValue(t),t[sc]||t}function Zd(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const Bd=t=>Zd(t)&&t!=="classes",Gd=Zu({themeId:sc,defaultTheme:ac,rootShouldForwardProp:Bd}),Kd=id;process.env.NODE_ENV!=="production"&&(ie.node,ie.object.isRequired);function Xd(t){return od(t)}function Qd(t){return Qi("MuiSvgIcon",t)}Fu("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Jd=t=>{const{color:e,fontSize:n,classes:r}=t,o={root:["root",e!=="inherit"&&`color${Mn(e)}`,`fontSize${Mn(n)}`]};return $l(o,Qd,r)},eh=Gd("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="inherit"&&e[`color${Mn(n.color)}`],e[`fontSize${Mn(n.fontSize)}`]]}})(Kd(({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}}]}))),To=Nt.forwardRef(function(e,n){const r=Xd({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:m="0 0 24 24",...y}=r,b=Nt.isValidElement(o)&&o.type==="svg",g={...r,color:a,component:s,fontSize:c,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:m,hasSvgAsChild:b},w={};u||(w.viewBox=m);const v=Jd(g);return S.jsxs(eh,{as:s,className:qs(v.root,i),focusable:"false",color:l,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...w,...y,...b&&o.props,ownerState:g,children:[b?o.props.children:o,d?S.jsx("title",{children:d}):null]})});process.env.NODE_ENV!=="production"&&(To.propTypes={children:ie.node,classes:ie.object,className:ie.string,color:ie.oneOfType([ie.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),ie.string]),component:ie.elementType,fontSize:ie.oneOfType([ie.oneOf(["inherit","large","medium","small"]),ie.string]),htmlColor:ie.string,inheritViewBox:ie.bool,shapeRendering:ie.string,sx:ie.oneOfType([ie.arrayOf(ie.oneOfType([ie.func,ie.object,ie.bool])),ie.func,ie.object]),titleAccess:ie.string,viewBox:ie.string});To.muiName="SvgIcon";function yt(t,e){function n(r,o){return S.jsx(To,{"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=To.muiName,Nt.memo(Nt.forwardRef(n))}const th=yt(S.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 nh(t){return S.jsx(F.Button,{name:t.name,"data-cy":t.dataCy??"cancel-button",className:t.className,sx:t.sx,startIcon:t.startIcon??S.jsx(th,{}),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 rh=yt(S.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 oh(t){return S.jsx(F.Button,{"data-cy":t.dataCy??"delete-button",loading:t.loading??!1,loadingPosition:t.loadingPosition??"start",startIcon:t.startIcon??S.jsx(rh,{}),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 ih=yt(S.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 ah(t){return S.jsx(F.Tooltip,{title:t.tooltipTitle,children:S.jsx(F.IconButton,{sx:{padding:"0.25rem"},color:t.color??"primary",onClick:()=>t.onClick(!0),"aria-label":t.ariaLabel??t.tooltipTitle,children:S.jsx(ih,{})})})}function sh(t){return S.jsx(F.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 ch=yt(S.jsx("path",{d:"M11.67 3.87 9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"}),"ArrowBackIos");function lh(t){return S.jsx(F.Tooltip,{title:"Go Back to Previous Page",children:S.jsxs(F.IconButton,{name:t.name,color:t.color??"primary",onClick:()=>t.navigate(-1),"aria-label":t.ariaLabel??"Go back to previous page",children:[S.jsx(ch,{}),t.children]})})}const uh=yt(S.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 dh(t){return S.jsx(F.Button,{name:t.name,"data-cy":t.dataCy??"history-button",className:t.className,sx:t.sx??{p:1,m:1},startIcon:t.startIcon??S.jsx(uh,{}),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 hh=yt(S.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"),fh={backgroundColor:"$primary-color",color:"var(--white-color)",margin:"20px"};function mh(t){return S.jsx(F.Button,{name:t.name,"data-cy":t.dataCy??"loading-success-button",variant:t.variant??"contained",color:t.color??"success",loadingPosition:"start",startIcon:t.startIcon??S.jsx(hh,{}),loading:t.loading,type:t.type??"button",style:fh,sx:t.sx,onClick:t.onClick,"aria-label":t.ariaLabel??t.name??"Save",children:t.children??t.name})}const gh=yt(S.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 yh(t){return S.jsx(F.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??S.jsx(gh,{}),"aria-label":t.ariaLabel??(typeof t.children=="string"?t.children:void 0)??"Manage",children:t.children?t.children:"Manage"})}function ph(t){return S.jsx(F.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 ta=yt(S.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"),bh=t=>{const[e,n]=Zt.useState(!1);Zt.useEffect(()=>{n(t.open)},[t.open,t.progressState]);const r=S.jsx(F.IconButton,{size:"small","aria-label":"close",color:"inherit",onClick:()=>n(!1),children:S.jsx(ta,{fontSize:"small"})});return S.jsxs(S.Fragment,{children:[S.jsx(F.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:e&&t.progressState.isSuccess,autoHideDuration:t.autoHideDuration??3e3,onClose:()=>n(!1),children:S.jsx(F.Alert,{variant:"filled",severity:"success",sx:{width:"100%"},action:r,children:t.progressState.message})}),S.jsx(F.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:e&&t.progressState.isError,slots:{transition:F.Slide},autoHideDuration:t.autoHideDuration??3e3,onClose:()=>n(!1),children:S.jsx(F.Alert,{variant:"filled",sx:{width:"100%"},severity:"error",action:r,children:t.progressState.message})})]})},wh=t=>{const[e,n]=Zt.useState(!1);Zt.useEffect(()=>{n(t.open)},[t.open,t]);const r=S.jsx(F.IconButton,{size:"small","aria-label":"close",color:"inherit",onClick:()=>n(!1),children:S.jsx(ta,{fontSize:"small"})});return S.jsxs(S.Fragment,{children:[S.jsx(F.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:e&&t.isSuccess,autoHideDuration:t.autoHideDuration??3e3,onClose:()=>n(!1),children:S.jsx(F.Alert,{variant:"filled",severity:"success",sx:{width:"100%"},action:r,children:t.message})}),S.jsx(F.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:e&&t.isError,TransitionComponent:F.Slide,autoHideDuration:t.autoHideDuration??3e3,onClose:()=>n(!1),children:S.jsx(F.Alert,{variant:"filled",sx:{width:"100%"},severity:"error",action:r,children:t.message})})]})};function vh(){return S.jsx("div",{style:{margin:"1.5rem"},className:"app-flex-justify-center",role:"status","aria-label":"Loading",children:S.jsx(F.CircularProgress,{})})}function Eh(t){const{onClose:e,title:n,message:r,open:o,...i}=t;return S.jsxs(F.Dialog,{sx:{"& .MuiDialog-paper":{width:"80%",maxHeight:435}},maxWidth:"xs",open:o,...i,children:[S.jsx(F.DialogTitle,{children:n??"Confirm"}),S.jsx(F.DialogContent,{dividers:!0,children:r}),S.jsxs(F.DialogActions,{children:[S.jsx(F.Button,{autoFocus:!0,onClick:()=>e("No"),"aria-label":"Cancel",children:"Cancel"}),S.jsx(F.Button,{onClick:()=>e("Yes"),"aria-label":"Yes",children:"Yes"})]})]})}function Th(t){const{ariaLabel:e,...n}=t,[r,o]=Zt.useState(!0),[i]=Zt.useState(t.dismissible??!0),[a]=Zt.useState(t.dismissOnTimeOut??!0),[s]=Zt.useState(t.dismissTimeOut??5e3);return setTimeout(()=>{o(a?!1:r)},s),S.jsx("span",{children:r&&S.jsx(F.Alert,{action:i?S.jsx(F.IconButton,{"aria-label":"close",color:"inherit",size:"small",onClick:()=>{o(!1)},children:S.jsx(ta,{fontSize:"inherit"})}):null,style:{margin:"20px"},"aria-label":e??"Dismissible Alert",...n,children:n.message})})}function _h(t){return S.jsx(F.Link,{component:Ys.Link,to:t.href,className:"next-btn-link",underline:"hover","aria-label":t.ariaLabel,children:t.linkText??t.children})}const Ch=yt(S.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 Dh(t){return S.jsxs(F.Link,{component:Ys.Link,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,S.jsx(F.Icon,{sx:{fontSize:"1.1rem",mx:.75,verticalAlign:"middle",display:"inline-flex"},component:Ch})]})}function Mh(t){const{condition:e,children:n,else:r}=t;return e?typeof n=="function"?n():n:r?typeof r=="function"?r():r:null}const ts=yt(S.jsx("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),ns=yt(S.jsx("path",{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6z"}),"KeyboardArrowLeft"),rs=yt(S.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"}),"KeyboardArrowRight"),os=yt(S.jsx("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function xh(t){const e=Hd(),{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 S.jsxs(F.Box,{sx:{flexShrink:0,ml:2.5},children:[S.jsx(F.IconButton,{onClick:a,disabled:r===0,"aria-label":"first page",children:e.direction==="rtl"?S.jsx(os,{}):S.jsx(ts,{})}),S.jsx(F.IconButton,{onClick:s,disabled:r===0,"aria-label":"previous page",children:e.direction==="rtl"?S.jsx(rs,{}):S.jsx(ns,{})}),S.jsx(F.IconButton,{onClick:c,disabled:r>=Math.ceil(n/o)-1,"aria-label":"next page",children:e.direction==="rtl"?S.jsx(ns,{}):S.jsx(rs,{})}),S.jsx(F.IconButton,{onClick:l,disabled:r>=Math.ceil(n/o)-1,"aria-label":"last page",children:e.direction==="rtl"?S.jsx(ts,{}):S.jsx(os,{})})]})}function Oh(t){const{children:e,index:n,...r}=t;return S.jsx("div",{className:"tabPanel",role:"tabpanel",id:`vertical-tabpanel-${n}`,"aria-labelledby":`vertical-tab-${n}`,...r,children:S.jsx(F.Box,{sx:{p:3},children:S.jsx(F.Typography,{component:"span",children:e})})})}function $h(t){return{id:`vertical-tab-${t}`,"aria-controls":`vertical-tabpanel-${t}`}}function Sh(t){return typeof t=="boolean"?t:typeof t=="string"?t.toLowerCase()==="true":!1}function kh(t){return getComputedStyle(document.documentElement).getPropertyValue(t).trim()}class h extends Array{constructor(e,n){if(super(e),this.sign=n,Object.setPrototypeOf(this,h.prototype),e>h.__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 h.__zero();if(h.__isOneDigitInt(e))return 0>e?h.__oneDigit(-e,!0):h.__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 h.__fromDouble(e)}if(typeof e=="string"){const o=h.__fromString(e);if(o===null)throw new SyntaxError("Cannot convert "+e+" to a BigInt");return o}if(typeof e=="boolean")return e===!0?h.__oneDigit(1,!1):h.__zero();if(typeof e=="object"){if(e.constructor===h)return e;const o=h.__toPrimitive(e);return h.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?h.__toStringBasePowerOfTwo(this,e):h.__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 w=e.__unsignedDigit(0);return e.sign?-w:w}const r=e.__digit(n-1),o=h.__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 m=12<=l?0:s<<20+l,y=20+l;for(0<d&&0<c&&(c--,s=e.__digit(c),u|=s>>>30-d,m=s<<d+2,y=d+2);0<y&&0<c;)c--,s=e.__digit(c),m|=30<=y?s<<y-30:s>>>30-y,y-=30;const b=h.__decideRounding(e,y,c,s);if((b===1||b===0&&(1&m)==1)&&(m=m+1>>>0,m===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,h.__kBitConversionInts[h.__kBitConversionIntHigh]=g|a|u,h.__kBitConversionInts[h.__kBitConversionIntLow]=m,h.__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?h.__absoluteSubOne(e).__trim():h.__absoluteAddOne(e,!0)}static exponentiate(e,n){if(n.sign)throw new RangeError("Exponent must be positive");if(n.length===0)return h.__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?h.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>=h.__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 h(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=h.multiply(i,i),(1&r)!=0&&(o===null?o=i:o=h.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 h(r,e.sign!==n.sign);o.__initializeDigits();for(let i=0;i<e.length;i++)h.__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>h.__absoluteCompare(e,n))return h.__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:h.unaryMinus(e);i=h.__absoluteDivSmall(e,o,null)}else i=h.__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>h.__absoluteCompare(e,n))return e;const r=n.__unsignedDigit(0);if(n.length===1&&32767>=r){if(r===1)return h.__zero();const i=h.__absoluteModSmall(e,r);return i===0?h.__zero():h.__oneDigit(i,e.sign)}const o=h.__absoluteDivLarge(e,n,!1,!0);return o.sign=e.sign,o.__trim()}static add(e,n){const r=e.sign;return r===n.sign?h.__absoluteAdd(e,n,r):0<=h.__absoluteCompare(e,n)?h.__absoluteSub(e,n,r):h.__absoluteSub(n,e,!r)}static subtract(e,n){const r=e.sign;return r===n.sign?0<=h.__absoluteCompare(e,n)?h.__absoluteSub(e,n,r):h.__absoluteSub(n,e,!r):h.__absoluteAdd(e,n,r)}static leftShift(e,n){return n.length===0||e.length===0?e:n.sign?h.__rightShiftByAbsolute(e,n):h.__leftShiftByAbsolute(e,n)}static signedRightShift(e,n){return n.length===0||e.length===0?e:n.sign?h.__leftShiftByAbsolute(e,n):h.__rightShiftByAbsolute(e,n)}static unsignedRightShift(){throw new TypeError("BigInts have no unsigned right shift; use >> instead")}static lessThan(e,n){return 0>h.__compareToBigInt(e,n)}static lessThanOrEqual(e,n){return 0>=h.__compareToBigInt(e,n)}static greaterThan(e,n){return 0<h.__compareToBigInt(e,n)}static greaterThanOrEqual(e,n){return 0<=h.__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!h.equal(e,n)}static bitwiseAnd(e,n){var r=Math.max;if(!e.sign&&!n.sign)return h.__absoluteAnd(e,n).__trim();if(e.sign&&n.sign){const o=r(e.length,n.length)+1;let i=h.__absoluteSubOne(e,o);const a=h.__absoluteSubOne(n);return i=h.__absoluteOr(i,a,i),h.__absoluteAddOne(i,!0,i).__trim()}return e.sign&&([e,n]=[n,e]),h.__absoluteAndNot(e,h.__absoluteSubOne(n)).__trim()}static bitwiseXor(e,n){var r=Math.max;if(!e.sign&&!n.sign)return h.__absoluteXor(e,n).__trim();if(e.sign&&n.sign){const a=r(e.length,n.length),s=h.__absoluteSubOne(e,a),c=h.__absoluteSubOne(n);return h.__absoluteXor(s,c,s).__trim()}const o=r(e.length,n.length)+1;e.sign&&([e,n]=[n,e]);let i=h.__absoluteSubOne(n,o);return i=h.__absoluteXor(i,e,i),h.__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 h.__absoluteOr(e,n).__trim();if(e.sign&&n.sign){let a=h.__absoluteSubOne(e,o);const s=h.__absoluteSubOne(n);return a=h.__absoluteAnd(a,s,a),h.__absoluteAddOne(a,!0,a).__trim()}e.sign&&([e,n]=[n,e]);let i=h.__absoluteSubOne(n,o);return i=h.__absoluteAndNot(i,e,i),h.__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 h.__zero();if(e>=h.__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 h.__truncateToNBits(e,n);if(!n.sign)return h.__truncateAndSubFromPowerOfTwo(e,n,!0);if((i&a-1)==0){for(let s=o-2;0<=s;s--)if(n.__digit(s)!==0)return h.__truncateAndSubFromPowerOfTwo(e,n,!1);return n.length===o&&i===a?n:h.__truncateToNBits(e,n)}return h.__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 h.__zero();if(n.sign){if(e>h.__kMaxLengthBits)throw new RangeError("BigInt too big");return h.__truncateAndSubFromPowerOfTwo(e,n,!1)}if(e>=h.__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:h.__truncateToNBits(e,n)}static ADD(e,n){if(e=h.__toPrimitive(e),n=h.__toPrimitive(n),typeof e=="string")return typeof n!="string"&&(n=n.toString()),e+n;if(typeof n=="string")return e.toString()+n;if(e=h.__toNumeric(e),n=h.__toNumeric(n),h.__isBigInt(e)&&h.__isBigInt(n))return h.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 h.__compare(e,n,0)}static LE(e,n){return h.__compare(e,n,1)}static GT(e,n){return h.__compare(e,n,2)}static GE(e,n){return h.__compare(e,n,3)}static EQ(e,n){for(;;){if(h.__isBigInt(e))return h.__isBigInt(n)?h.equal(e,n):h.EQ(n,e);if(typeof e=="number"){if(h.__isBigInt(n))return h.__equalToNumber(n,e);if(typeof n!="object")return e==n;n=h.__toPrimitive(n)}else if(typeof e=="string"){if(h.__isBigInt(n))return e=h.__fromString(e),e!==null&&h.equal(e,n);if(typeof n!="object")return e==n;n=h.__toPrimitive(n)}else if(typeof e=="boolean"){if(h.__isBigInt(n))return h.__equalToNumber(n,+e);if(typeof n!="object")return e==n;n=h.__toPrimitive(n)}else if(typeof e=="symbol"){if(h.__isBigInt(n))return!1;if(typeof n!="object")return e==n;n=h.__toPrimitive(n)}else if(typeof e=="object"){if(typeof n=="object"&&n.constructor!==h)return e==n;e=h.__toPrimitive(e)}else return e==n}}static NE(e,n){return!h.EQ(e,n)}static DataViewGetBigInt64(e,n,r=!1){return h.asIntN(64,h.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 h(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){h.DataViewSetBigUint64(e,n,r,o)}static DataViewSetBigUint64(e,n,r,o=!1){r=h.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 h(0,!1)}static __oneDigit(e,n){const r=new h(1,n);return r.__setDigit(0,e),r}__copy(){const e=new h(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){h.__kBitConversionDouble[0]=e;const n=2047&h.__kBitConversionInts[h.__kBitConversionIntHigh]>>>20,r=n-1023,o=(0|r/30)+1,i=new h(o,0>e);let a=1048575&h.__kBitConversionInts[h.__kBitConversionIntHigh]|1048576,s=h.__kBitConversionInts[h.__kBitConversionIntLow];const c=20,l=r%30;let u,d=0;if(l<20){const m=c-l;d=m+32,u=a>>>m,a=a<<32-m|s>>>m,s<<=32-m}else if(l===20)d=32,u=a,a=s,s=0;else{const m=l-c;d=32-m,u=a<<m|s>>>32-m,a=s<<m,s=0}i.__setDigit(o-1,u);for(let m=o-2;0<=m;m--)0<d?(d-=30,u=a>>>2,a=a<<30|s>>>2,s<<=30):u=0,i.__setDigit(m,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 h.__zero();let a=e.charCodeAt(i);for(;h.__isWhitespace(a);){if(++i===o)return h.__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 h.__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 h.__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 h.__zero();a=e.charCodeAt(i)}const s=o-i;let c=h.__kMaxBitsPerChar[n],l=h.__kBitsPerCharTableMultiplier-1;if(s>1073741824/c)return null;const u=c*s+l>>>h.__kBitsPerCharTableShift,d=new h(0|(u+29)/30,!1),m=10>n?n:10,y=10<n?n-10:0;if((n&n-1)==0){c>>=h.__kBitsPerCharTableShift;const b=[],g=[];let w=!1;do{let v=0,D=0;for(;;){let M;if(a-48>>>0<m)M=a-48;else if((32|a)-97>>>0<y)M=(32|a)-87;else{w=!0;break}if(D+=c,v=v<<c|M,++i===o){w=!0;break}if(a=e.charCodeAt(i),30<D+c)break}b.push(v),g.push(D)}while(!w);h.__fillFromParts(d,b,g)}else{d.__initializeDigits();let b=!1,g=0;do{let w=0,v=1;for(;;){let M;if(a-48>>>0<m)M=a-48;else if((32|a)-97>>>0<y)M=(32|a)-87;else{b=!0;break}const C=v*n;if(1073741823<C)break;if(v=C,w=w*n+M,g++,++i===o){b=!0;break}a=e.charCodeAt(i)}l=30*h.__kBitsPerCharTableMultiplier-1;const D=0|(c*g+l>>>h.__kBitsPerCharTableShift)/30;d.__inplaceMultiplyAdd(v,w,D)}while(!b)}if(i!==o){if(!h.__isWhitespace(a))return null;for(i++;i<o;i++)if(a=e.charCodeAt(i),!h.__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=h.__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,m=0,y=0;for(let g=0;g<r-1;g++){const w=e.__digit(g),v=(m|w<<y)&a;u[d--]=h.__kConversionChars[v];const D=i-y;for(m=w>>>D,y=30-D;y>=i;)u[d--]=h.__kConversionChars[m&a],m>>>=i,y-=i}const b=(m|s<<y)&a;for(u[d--]=h.__kConversionChars[b],m=s>>>i-y;m!==0;)u[d--]=h.__kConversionChars[m&a],m>>>=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-h.__clz30(e.__digit(o-1)),a=h.__kMaxBitsPerChar[n],s=a-1;let c=i*h.__kBitsPerCharTableMultiplier;c+=s-1,c=0|c/s;const l=c+1>>1,u=h.exponentiate(h.__oneDigit(n,!1),h.__oneDigit(l,!1));let d,m;const y=u.__unsignedDigit(0);if(u.length===1&&32767>=y){d=new h(e.length,!1),d.__initializeDigits();let g=0;for(let w=2*e.length-1;0<=w;w--){const v=g<<15|e.__halfDigit(w);d.__setHalfDigit(w,0|v/y),g=0|v%y}m=g.toString(n)}else{const g=h.__absoluteDivLarge(e,u,!0,!0);d=g.quotient;const w=g.remainder.__trim();m=h.__toStringGeneric(w,n,!0)}d.__trim();let b=h.__toStringGeneric(d,n,!0);for(;m.length<l;)m="0"+m;return r===!1&&e.sign&&(b="-"+b),b+m}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 h.__unequalSign(r);const o=h.__absoluteCompare(e,n);return 0<o?h.__absoluteGreater(r):0>o?h.__absoluteLess(r):0}static __compareToNumber(e,n){if(h.__isOneDigitInt(n)){const r=e.sign,o=0>n;if(r!==o)return h.__unequalSign(r);if(e.length===0){if(o)throw new Error("implementation bug");return n===0?0:-1}if(1<e.length)return h.__absoluteGreater(r);const i=Math.abs(n),a=e.__unsignedDigit(0);return a>i?h.__absoluteGreater(r):a<i?h.__absoluteLess(r):0}return h.__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 h.__unequalSign(r);if(n===0)throw new Error("implementation bug: should be handled elsewhere");if(e.length===0)return-1;h.__kBitConversionDouble[0]=n;const o=2047&h.__kBitConversionInts[h.__kBitConversionIntHigh]>>>20;if(o==2047)throw new Error("implementation bug: handled elsewhere");const i=o-1023;if(0>i)return h.__absoluteGreater(r);const a=e.length;let s=e.__digit(a-1);const c=h.__clz30(s),l=30*a-c,u=i+1;if(l<u)return h.__absoluteLess(r);if(l>u)return h.__absoluteGreater(r);let d=1048576|1048575&h.__kBitConversionInts[h.__kBitConversionIntHigh],m=h.__kBitConversionInts[h.__kBitConversionIntLow];const y=20,b=29-c;if(b!==(0|(l-1)%30))throw new Error("implementation bug");let g,w=0;if(20>b){const v=y-b;w=v+32,g=d>>>v,d=d<<32-v|m>>>v,m<<=32-v}else if(b===20)w=32,g=d,d=m,m=0;else{const v=b-y;w=32-v,g=d<<v|m>>>32-v,d=m<<v,m=0}if(s>>>=0,g>>>=0,s>g)return h.__absoluteGreater(r);if(s<g)return h.__absoluteLess(r);for(let v=a-2;0<=v;v--){0<w?(w-=30,g=d>>>2,d=d<<30|m>>>2,m<<=30):g=0;const D=e.__unsignedDigit(v);if(D>g)return h.__absoluteGreater(r);if(D<g)return h.__absoluteLess(r)}if(d!==0||m!==0){if(w===0)throw new Error("implementation bug");return h.__absoluteLess(r)}return 0}static __equalToNumber(e,n){var r=Math.abs;return h.__isOneDigitInt(n)?n===0?e.length===0:e.length===1&&e.sign===0>n&&e.__unsignedDigit(0)===r(n):h.__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=h.__toPrimitive(e),n=h.__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(h.__isBigInt(e)&&typeof n=="string")return n=h.__fromString(n),n!==null&&h.__comparisonResultToBool(h.__compareToBigInt(e,n),r);if(typeof e=="string"&&h.__isBigInt(n))return e=h.__fromString(e),e!==null&&h.__comparisonResultToBool(h.__compareToBigInt(e,n),r);if(e=h.__toNumeric(e),n=h.__toNumeric(n),h.__isBigInt(e)){if(h.__isBigInt(n))return h.__comparisonResultToBool(h.__compareToBigInt(e,n),r);if(typeof n!="number")throw new Error("implementation bug");return h.__comparisonResultToBool(h.__compareToNumber(e,n),r)}if(typeof e!="number")throw new Error("implementation bug");if(h.__isBigInt(n))return h.__comparisonResultToBool(h.__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 h.__clz30(this.__digit(this.length-1))}static __absoluteAdd(e,n,r){if(e.length<n.length)return h.__absoluteAdd(n,e,r);if(e.length===0)return e;if(n.length===0)return e.sign===r?e:h.unaryMinus(e);let o=e.length;(e.__clzmsd()===0||n.length===e.length&&n.__clzmsd()===0)&&o++;const i=new h(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:h.unaryMinus(e);const o=new h(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 h(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 h(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 h(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 h(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 h(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 h(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),m=32767&d,y=d>>>15,b=h.__imul(m,i),g=h.__imul(m,a),w=h.__imul(y,i),v=h.__imul(y,a);l+=c+b+s,s=l>>>30,l&=1073741823,l+=((32767&g)<<15)+((32767&w)<<15),s+=l>>>30,c=v+(g>>>15)+(w>>>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=h.__imul(32767&l,n),d=h.__imul(l>>>15,n),m=u+((32767&d)<<15)+s+a;a=m>>>30,s=d>>>15,i.__setDigit(c,1073741823&m)}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,m=h.__imul(u,o),y=h.__imul(u,i),b=h.__imul(d,o),g=h.__imul(d,i);let w=s+m+a;a=w>>>30,w&=1073741823,w+=((32767&y)<<15)+((32767&b)<<15),a+=w>>>30,s=g+(y>>>15)+(b>>>15),this.__setDigit(c,1073741823&w)}if(a!=0||s!==0)throw new Error("implementation bug")}static __absoluteDivSmall(e,n,r=null){r===null&&(r=new h(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 h(s+2>>>1,!1),c.__initializeDigits());const l=new h(i+2>>>1,!1);l.__initializeDigits();const u=h.__clz15(n.__halfDigit(i-1));0<u&&(n=h.__specialLeftShift(n,u,0));const d=h.__specialLeftShift(e,u,1),m=n.__halfDigit(i-1);let y=0;for(let b,g=s;0<=g;g--){b=32767;const w=d.__halfDigit(g+i);if(w!==m){const D=(w<<15|d.__halfDigit(g+i-1))>>>0;b=0|D/m;let M=0|D%m;const C=n.__halfDigit(i-2),T=d.__halfDigit(g+i-2);for(;h.__imul(b,C)>>>0>(M<<16|T)>>>0&&(b--,M+=m,!(32767<M)););}h.__internalMultiplyAdd(n,b,0,a,l);let v=d.__inplaceSub(l,g,i+1);v!==0&&(v=d.__inplaceAdd(n,g,i),d.__setHalfDigit(g+i,32767&d.__halfDigit(g+i)+v),b--),r&&(1&g?y=b<<15:c.__setDigit(g>>>1,y|b))}if(o)return d.__inplaceRightShift(u),r?{quotient:c,remainder:d}:d;if(r)return c;throw new Error("unreachable")}static __clz15(e){return h.__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),m=(32767&u)-(32767&d)-o;o=1&m>>>15;const y=(u>>>15)-(d>>>15)-o;o=1&y>>>15,this.__setDigit(n+i,(32767&y)<<15|32767&m)}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 h(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=h.__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 h(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 m=e.__digit(d);l.__setDigit(d+o,1073741823&m<<i|u),u=m>>>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=h.__toShiftAmount(n);if(0>i)return h.__rightShiftByMaximum(o);const a=0|i/30,s=i%30;let c=r-a;if(0>=c)return h.__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 h(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 m=r-a-1;for(let y=0;y<m;y++){const b=e.__digit(y+a+1);u.__setDigit(y,1073741823&b<<30-s|d),d=b>>>s}u.__setDigit(m,d)}return l&&(u=h.__absoluteAddOne(u,!0,u)),u.__trim()}static __rightShiftByMaximum(e){return e?h.__oneDigit(1,!0):h.__zero()}static __toShiftAmount(e){if(1<e.length)return-1;const n=e.__unsignedDigit(0);return n>h.__kMaxLengthBits?-1:n}static __toPrimitive(e,n="default"){if(typeof e!="object"||e.constructor===h)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 h.__isBigInt(e)?e:+e}static __isBigInt(e){return typeof e=="object"&&e!==null&&e.constructor===h}static __truncateToNBits(e,n){const r=0|(e+29)/30,o=new h(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 h(i,r);let s=0;const c=i-1;let l=0;for(const y=o(c,n.length);s<y;s++){const b=0-n.__digit(s)-l;l=1&b>>>30,a.__setDigit(s,1073741823&b)}for(;s<c;s++)a.__setDigit(s,0|1073741823&-l);let u=c<n.length?n.__digit(c):0;const d=e%30;let m;if(d==0)m=0-u-l,m&=1073741823;else{const y=32-d;u=u<<y>>>y;const b=1<<32-y;m=b-u-l,m&=b-1}return a.__setDigit(c,m),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 h.__kBitConversionDouble[0]=-0,h.__kBitConversionInts[0]!==0}static __isOneDigitInt(e){return(1073741823&e)===e}}h.__kMaxLength=33554432,h.__kMaxLengthBits=h.__kMaxLength<<5,h.__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],h.__kBitsPerCharTableShift=5,h.__kBitsPerCharTableMultiplier=1<<h.__kBitsPerCharTableShift,h.__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"],h.__kBitConversionBuffer=new ArrayBuffer(8),h.__kBitConversionDouble=new Float64Array(h.__kBitConversionBuffer),h.__kBitConversionInts=new Int32Array(h.__kBitConversionBuffer),h.__kBitConversionIntHigh=h.__detectBigEndian()?0:1,h.__kBitConversionIntLow=h.__detectBigEndian()?1:0,h.__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)},h.__imul=Math.imul||function(t,e){return 0|t*e};const dt=h.BigInt(0),Pr=h.BigInt(1),na=h.BigInt(2),Rh=h.BigInt(10),Ah=h.BigInt(24),Ih=h.BigInt(60),Ph=h.BigInt(1e3),Zr=h.BigInt(1e6),Or=h.BigInt(1e9),cc=h.multiply(h.BigInt(3600),Or),Nh=h.multiply(Ih,Or),fn=h.multiply(cc,Ah);function qt(t){return typeof t=="bigint"?h.BigInt(t.toString(10)):t}function lc(t){return h.equal(h.remainder(t,na),dt)}function vn(t){return h.lessThan(t,dt)?h.unaryMinus(t):t}function _o(t,e){return h.lessThan(t,e)?-1:h.greaterThan(t,e)?1:0}function wr(t,e){return{quotient:h.divide(t,e),remainder:h.remainder(t,e)}}var is,as;const L="slot-epochNanoSeconds",Y="slot-iso-date",ye="slot-iso-date-time",Ee="slot-time",x="slot-calendar",uc="slot-date-brand",dc="slot-year-month-brand",hc="slot-month-day-brand",se="slot-time-zone",Ue="slot-years",Fe="slot-months",nt="slot-weeks",qe="slot-days",We="slot-hours",Ve="slot-minutes",He="slot-seconds",Ze="slot-milliseconds",Be="slot-microseconds",rt="slot-nanoseconds",fc="date",mc="ym",gc="md",yc="time",pc="datetime",bc="instant",An="original",Wn="timezone-canonical",Oi="timezone-original",vr="calendar-id",wc="locale",$i="options",vc=new WeakMap,Si=Symbol.for("@@Temporal__GetSlots");(is=globalThis)[Si]||(is[Si]=function(t){return vc.get(t)});const Bo=globalThis[Si],ki=Symbol.for("@@Temporal__CreateSlots");(as=globalThis)[ki]||(as[ki]=function(t){vc.set(t,Object.create(null))});const nn=globalThis[ki];function Je(t,...e){if(!t||typeof t!="object")return!1;const n=Bo(t);return!!n&&e.every((r=>r in n))}function f(t,e){const n=Bo(t)?.[e];if(n===void 0)throw new TypeError(`Missing internal slot ${e}`);return n}function V(t,e,n){const r=Bo(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 Ri={};function rn(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))}Ai(e,t),Ai(`${e}.prototype`,t.prototype)}function Ai(t,e){const n=`%${t}%`;if(Ri[n]!==void 0)throw new Error(`intrinsic ${t} already exists`);Ri[n]=e}function Ie(t){return Ri[t]}function Hn(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 wi(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 Go(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 Ko(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 B{constructor(e){this.totalNs=qt(e),this.sec=h.toNumber(h.divide(this.totalNs,Or)),this.subsec=h.toNumber(h.remainder(this.totalNs,Or))}static validateNew(e,n){if(h.greaterThan(vn(e),B.MAX))throw new RangeError(`${n} of duration time units cannot exceed ${B.MAX} s`);return new B(e)}static fromEpochNsDiff(e,n){const r=h.subtract(qt(e),qt(n));return new B(r)}static fromComponents(e,n,r,o,i,a){const s=h.add(h.add(h.add(h.add(h.add(h.BigInt(a),h.multiply(h.BigInt(i),Ph)),h.multiply(h.BigInt(o),Zr)),h.multiply(h.BigInt(r),Or)),h.multiply(h.BigInt(n),Nh)),h.multiply(h.BigInt(e),cc));return B.validateNew(s,"total")}abs(){return new B(vn(this.totalNs))}add(e){return B.validateNew(h.add(this.totalNs,e.totalNs),"sum")}add24HourDays(e){return B.validateNew(h.add(this.totalNs,h.multiply(h.BigInt(e),fn)),"sum")}addToEpochNs(e){return h.add(qt(e),this.totalNs)}cmp(e){return _o(this.totalNs,e.totalNs)}divmod(e){const{quotient:n,remainder:r}=wr(this.totalNs,h.BigInt(e));return{quotient:h.toNumber(n),remainder:new B(r)}}fdiv(e){const n=qt(e),r=h.BigInt(n);let{quotient:o,remainder:i}=wr(this.totalNs,r);const a=[];let s;const c=(h.lessThan(this.totalNs,dt)?-1:1)*Math.sign(h.toNumber(n));for(;!h.equal(i,dt)&&a.length<50;)i=h.multiply(i,Rh),{quotient:s,remainder:i}=wr(i,r),a.push(Math.abs(h.toNumber(s)));return c*+(vn(o).toString()+"."+a.join(""))}isZero(){return h.equal(this.totalNs,dt)}round(e,n){const r=qt(e);if(h.equal(r,Pr))return this;const{quotient:o,remainder:i}=wr(this.totalNs,r),a=h.lessThan(this.totalNs,dt)?"negative":"positive",s=h.multiply(vn(o),r),c=h.add(s,r),l=_o(vn(h.multiply(i,na)),r),u=Go(n,a),d=h.equal(vn(this.totalNs),s)?s:Ko(s,c,l,lc(o),u),m=a==="positive"?d:h.unaryMinus(d);return B.validateNew(m,"rounding")}sign(){return this.cmp(new B(dt))}subtract(e){return B.validateNew(h.subtract(this.totalNs,e.totalNs),"difference")}}B.MAX=h.BigInt("9007199254740991999999999"),B.ZERO=new B(dt);const ss=/[A-Za-z._][A-Za-z._0-9+-]*/,Br=new RegExp(`(?:${/(?:[+-](?:[01][0-9]|2[0-3])(?::?[0-5][0-9])?)/.source}|(?:${ss.source})(?:\\/(?:${ss.source}))*)`),Ec=/(?:[+-]\d{6}|\d{4})/,Co=/(?:0[1-9]|1[0-2])/,Ii=/(?:0[1-9]|[12]\d|3[01])/,jh=new RegExp(`(${Ec.source})(?:-(${Co.source})-(${Ii.source})|(${Co.source})(${Ii.source}))`),Tc=/(\d{2})(?::(\d{2})(?::(\d{2})(?:[.,](\d{1,9}))?)?|(\d{2})(?:(\d{2})(?:[.,](\d{1,9}))?)?)?/,_c=/((?:[+-])(?:[01][0-9]|2[0-3])(?::?(?:[0-5][0-9])(?::?(?:[0-5][0-9])(?:[.,](?:\d{1,9}))?)?)?)/,Cc=new RegExp(`([zZ])|${_c.source}?`),Qn=/\[(!)?([a-z_][a-z0-9_-]*)=([A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)\]/g,Lh=new RegExp([`^${jh.source}`,`(?:(?:[tT]|\\s+)${Tc.source}(?:${Cc.source})?)?`,`(?:\\[!?(${Br.source})\\])?`,`((?:${Qn.source})*)$`].join("")),Yh=new RegExp([`^[tT]?${Tc.source}`,`(?:${Cc.source})?`,`(?:\\[!?${Br.source}\\])?`,`((?:${Qn.source})*)$`].join("")),zh=new RegExp(`^(${Ec.source})-?(${Co.source})(?:\\[!?${Br.source}\\])?((?:${Qn.source})*)$`),Uh=new RegExp(`^(?:--)?(${Co.source})-?(${Ii.source})(?:\\[!?${Br.source}\\])?((?:${Qn.source})*)$`),vi=/(\d+)(?:[.,](\d{1,9}))?/,Fh=new RegExp(`(?:${vi.source}H)?(?:${vi.source}M)?(?:${vi.source}S)?`),qh=new RegExp(`^([+-])?P${/(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?/.source}(?:T(?!$)${Fh.source})?$`,"i"),mn=864e5,Do=1e6*mn,Wh=6e10,Dc=1e8*mn,Jn=It(Dc),Nr=h.unaryMinus(Jn),Vh=h.add(h.subtract(Nr,fn),Pr),Hh=h.subtract(h.add(Jn,fn),Pr),Zh=146097*mn,cs=-271821,ls=275760,$r=Date.UTC(1847,0,1),Bh=["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"],Gh=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 Te(t){return typeof t=="object"&&t!==null||typeof t=="function"}function Xo(t){if(typeof t=="bigint")throw new TypeError("Cannot convert BigInt to number");return Number(t)}function Qo(t){if(typeof t=="symbol")throw new TypeError("Cannot convert a Symbol value to a String");return String(t)}function z(t){const e=Xo(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 us(t,e){const n=z(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 Dt(t){const e=Xo(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 jr(t,e){return String(t).padStart(e,"0")}function xe(t){if(typeof t!="string")throw new TypeError(`expected a string, not ${String(t)}`);return t}function Pi(t,e){if(Te(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 Ni=["era","eraYear","year","month","monthCode","day","hour","minute","second","millisecond","microsecond","nanosecond","offset","timeZone"],Kh={era:Qo,eraYear:z,year:z,month:us,monthCode:function(t){const e=xe(Pi(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:us,hour:z,minute:z,second:z,millisecond:z,microsecond:z,nanosecond:z,offset:function(t){const e=xe(Pi(t));return lr(e),e},timeZone:Xe},Xh={hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0},er=[["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"]],ds=Object.fromEntries(er.map((t=>[t[0],t[1]]))),Qh=Object.fromEntries(er.map((([t,e])=>[e,t]))),Sr=er.map((([,t])=>t)),tr={day:Do,hour:36e11,minute:6e10,second:1e9,millisecond:1e6,microsecond:1e3,nanosecond:1},Mo=["days","hours","microseconds","milliseconds","minutes","months","nanoseconds","seconds","weeks","years"],Jh=Intl.DateTimeFormat,hs=new Map;function Mc(t){const e=Fr(t);let n=hs.get(e);return n===void 0&&(n=new Jh("en-us",{timeZone:e,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),hs.set(e,n)),n}function ke(t){return Je(t,L)&&!Je(t,se,x)}function we(t){return Je(t,Ue,Fe,qe,We,Ve,He,Ze,Be,rt)}function ve(t){return Je(t,uc)}function De(t){return Je(t,Ee)}function ge(t){return Je(t,ye)}function Re(t){return Je(t,dc)}function lt(t){return Je(t,hc)}function Z(t){return Je(t,L,se,x)}function E(t,e){if(!e(t))throw new TypeError("invalid receiver: method called with the wrong type of this-object")}function ar(t){if(Je(t,x)||Je(t,se))throw new TypeError("with() does not support a calendar or timeZone property");if(De(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 Gr(t,e){return e==="never"||e==="auto"&&t==="iso8601"?"":`[${e==="critical"?"!":""}u-ca=${t}]`}function Jo(t){let e,n,r=!1;for(Qn.lastIndex=0;n=Qn.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 zt(t){const e=Lh.exec(t);if(!e)throw new RangeError(`invalid RFC 9557 string: ${t}`);const n=Jo(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",m=+d.slice(0,3),y=+d.slice(3,6),b=+d.slice(6,9);let g,w=!1;e[13]?(g=void 0,w=!0):e[14]&&(g=e[14]);const v=e[15];return ca(o,i,a,c,l,u,m,y,b),{year:o,month:i,day:a,time:s?{hour:c,minute:l,second:u,millisecond:m,microsecond:y,nanosecond:b}:"start-of-day",tzAnnotation:v,offset:g,z:w,calendar:n}}function xc(t){const e=Yh.exec(t);let n,r,o,i,a,s,c;if(e){c=Jo(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}=zt(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(ri(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}=oa(t);On(1972,l,u)}catch{try{const{year:l,month:u}=ra(t);On(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 ra(t){const e=zh.exec(t);let n,r,o,i;if(e){o=Jo(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}=zt(t),a)throw new RangeError("Z designator not supported for PlainYearMonth")}return{year:n,month:r,calendar:o,referenceISODay:i}}function oa(t){const e=Uh.exec(t);let n,r,o,i;if(e){if(o=Jo(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}=zt(t),a)throw new RangeError("Z designator not supported for PlainMonthDay")}return{month:n,day:r,calendar:o,referenceISOYear:i}}const Oc=new RegExp(`^${Br.source}$`,"i"),$c=new RegExp(`^${/([+-])([01][0-9]|2[0-3])(?::?([0-5][0-9])?)?/.source}$`);function Sc(t){const e=tf.test(t)?"Seconds not allowed in offset time zone":"Invalid time zone";throw new RangeError(`${e}: ${t}`)}function un(t){return Oc.test(t)||Sc(t),$c.test(t)?{offsetMinutes:lr(t)/6e10}:{tzName:t}}function kr(t,e,n,r){let o=t,i=e,a=n;switch(r){case"reject":On(o,i,a);break;case"constrain":({year:o,month:i,day:a}=Zc(o,i,a))}return{year:o,month:i,day:a}}function ei(t,e,n,r,o,i,a){let s=t,c=e,l=n,u=r,d=o,m=i;switch(a){case"reject":ri(s,c,l,u,d,m);break;case"constrain":s=Ge(s,0,23),c=Ge(c,0,59),l=Ge(l,0,59),u=Ge(u,0,999),d=Ge(d,0,999),m=Ge(m,0,999)}return{hour:s,minute:c,second:l,millisecond:u,microsecond:d,nanosecond:m}}function kc(t){if(!Te(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<Mo.length;r++){const o=Mo[r],i=t[o];i!==void 0&&(n=!0,e[o]=Dt(i))}if(!n)throw new TypeError("invalid duration-like");return e}function Ne({years:t,months:e,weeks:n,days:r},o,i,a){return{years:t,months:a??e,weeks:i??n,days:o??r}}function te(t,e){return{isoDate:t,time:e}}function ee(t){return Qt(t,"overflow",["constrain","reject"],"constrain")}function Rr(t){return Qt(t,"disambiguation",["compatible","earlier","later","reject"],"compatible")}function Mt(t,e){return Qt(t,"roundingMode",["ceil","floor","expand","trunc","halfCeil","halfFloor","halfExpand","halfTrunc","halfEven"],e)}function bo(t,e){return Qt(t,"offset",["prefer","use","ignore","reject"],e)}function Kr(t){return Qt(t,"calendarName",["auto","always","never","critical"],"auto")}function sr(t){let e=t.roundingIncrement;if(e===void 0)return 1;const n=z(e);if(n<1||n>1e9)throw new RangeError(`roundingIncrement must be at least 1 and at most 1e9, not ${e}`);return n}function cr(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 Xr(t){const e=t.fractionalSecondDigits;if(e===void 0)return"auto";if(typeof e!="number"){if(Qo(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 Qr(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 tn=Symbol("~required~");function it(t,e,n,r,o=[]){let i=[];for(let l=0;l<er.length;l++){const u=er[l],d=u[1],m=u[2];n!=="datetime"&&n!==m||i.push(d)}i=i.concat(o);let a=r;a===tn?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=Qh[u];d!==void 0&&s.push(d)}let c=Qt(t,e,s,a);if(c===void 0&&r===tn)throw new RangeError(`${e} is required`);return c&&c in ds?ds[c]:c}function Ei(t){const e=t.relativeTo;if(e===void 0)return{};let n,r,o,i,a,s="option",c=!1;if(Te(e)){if(Z(e))return{zonedRelativeTo:e};if(ve(e))return{plainRelativeTo:e};if(ge(e))return{plainRelativeTo:Ke(f(e,ye).isoDate,f(e,x))};o=ro(e);const l=gt(o,e,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond","offset","timeZone"],[]);({isoDate:n,time:r}=eo(o,l,"constrain")),{offset:a,timeZone:i}=l,a===void 0&&(s="wall")}else{let l,u,d,m,y;if({year:d,month:m,day:y,time:r,calendar:o,tzAnnotation:l,offset:a,z:u}=zt(xe(e)),l)i=Xe(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=et(o),n={year:d,month:m,day:y}}return i===void 0?{plainRelativeTo:Ke(n,o)}:{zonedRelativeTo:Pe(xo(n,r,s,s==="option"?lr(a):0,i,"compatible","reject",c),i,o)}}function Vt(t){return f(t,Ue)!==0?"year":f(t,Fe)!==0?"month":f(t,nt)!==0?"week":f(t,qe)!==0?"day":f(t,We)!==0?"hour":f(t,Ve)!==0?"minute":f(t,He)!==0?"second":f(t,Ze)!==0?"millisecond":f(t,Be)!==0?"microsecond":"nanosecond"}function Kt(t,e){return Sr.indexOf(t)>Sr.indexOf(e)?e:t}function St(t){return t==="year"||t==="month"||t==="week"}function Ht(t){return St(t)||t==="day"?"date":"time"}function pn(t){return Ie("%calendarImpl%")(t)}function Jr(t){return Ie("%calendarImpl%")(f(t,x))}function Qe(t,e,n="date"){const r=Object.create(null),o=pn(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 gt(t,e,n,r,o){const i=pn(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,Kh[u])(d);else if(o!=="partial"){if(o.includes(u))throw new TypeError(`required property '${u}' missing or undefined`);s[u]=Xh[u]}}if(o==="partial"&&!c)throw new TypeError("no supported properties found");return s}function ji(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]=z(s),r=!0):e==="complete"&&(o[a]=0)}if(!r)throw new TypeError("invalid time-like");return o}function Er(t,e){if(Te(t)){if(ve(t))return ee(P(e)),Ke(f(t,Y),f(t,x));if(Z(t)){const c=Tt(f(t,se),f(t,L));return ee(P(e)),Ke(c.isoDate,f(t,x))}if(ge(t))return ee(P(e)),Ke(f(t,ye).isoDate,f(t,x));const s=ro(t);return Ke(gn(s,gt(s,t,["year","month","monthCode","day"],[],[]),ee(P(e))),s)}let{year:n,month:r,day:o,calendar:i,z:a}=zt(xe(t));if(a)throw new RangeError("Z designator not supported for PlainDate");return i||(i="iso8601"),i=et(i),ee(P(e)),Ke({year:n,month:r,day:o},i)}function eo(t,e,n){return te(gn(t,e,n),ei(e.hour,e.minute,e.second,e.millisecond,e.microsecond,e.nanosecond,n))}function Tr(t,e){let n,r,o;if(Te(t)){if(ge(t))return ee(P(e)),bt(f(t,ye),f(t,x));if(Z(t)){const s=Tt(f(t,se),f(t,L));return ee(P(e)),bt(s,f(t,x))}if(ve(t))return ee(P(e)),bt(te(f(t,Y),{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),f(t,x));o=ro(t);const i=gt(o,t,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond"],[]),a=ee(P(e));({isoDate:n,time:r}=eo(o,i,a))}else{let i,a,s,c;if({year:a,month:s,day:c,time:r,calendar:o,z:i}=zt(xe(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}),ca(a,s,c,r.hour,r.minute,r.second,r.millisecond,r.microsecond,r.nanosecond),o||(o="iso8601"),o=et(o),ee(P(e)),n={year:a,month:s,day:c}}return bt(te(n,r),o)}function Et(t){const e=Ie("%Temporal.Duration%");if(we(t))return new e(f(t,Ue),f(t,Fe),f(t,nt),f(t,qe),f(t,We),f(t,Ve),f(t,He),f(t,Ze),f(t,Be),f(t,rt));if(!Te(t))return(function(o){const{years:i,months:a,weeks:s,days:c,hours:l,minutes:u,seconds:d,milliseconds:m,microseconds:y,nanoseconds:b}=(function(g){const w=qh.exec(g);if(!w)throw new RangeError(`invalid duration: ${g}`);if(w.every(((ct,hr)=>hr<2||ct===void 0)))throw new RangeError(`invalid duration: ${g}`);const v=w[1]==="-"?-1:1,D=w[2]===void 0?0:z(w[2])*v,M=w[3]===void 0?0:z(w[3])*v,C=w[4]===void 0?0:z(w[4])*v,T=w[5]===void 0?0:z(w[5])*v,k=w[6]===void 0?0:z(w[6])*v,U=w[7],G=w[8],N=w[9],ae=w[10],q=w[11];let p=0,R=0,O=0;if(U!==void 0){if(G??N??ae??q)throw new RangeError("only the smallest unit can be fractional");O=3600*z((U+"000000000").slice(0,9))*v}else if(p=G===void 0?0:z(G)*v,N!==void 0){if(ae??q)throw new RangeError("only the smallest unit can be fractional");O=60*z((N+"000000000").slice(0,9))*v}else R=ae===void 0?0:z(ae)*v,q!==void 0&&(O=z((q+"000000000").slice(0,9))*v);const j=O%1e3,H=Math.trunc(O/1e3)%1e3,pe=Math.trunc(O/1e6)%1e3;return R+=Math.trunc(O/1e9)%60,p+=Math.trunc(O/6e10),oi(D,M,C,T,k,p,R,pe,H,j),{years:D,months:M,weeks:C,days:T,hours:k,minutes:p,seconds:R,milliseconds:pe,microseconds:H,nanoseconds:j}})(o);return new(Ie("%Temporal.Duration%"))(i,a,s,c,l,u,d,m,y,b)})(xe(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=kc(t);for(let o=0;o<Mo.length;o++){const i=Mo[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 _r(t){let e;if(Te(t)){if(ke(t)||Z(t))return Rt(f(t,L));e=Pi(t)}else e=t;const{year:n,month:r,day:o,time:i,offset:a,z:s}=(function(g){const w=zt(g);if(!w.z&&!w.offset)throw new RangeError("Temporal.Instant requires a time zone offset");return w})(xe(e)),{hour:c=0,minute:l=0,second:u=0,millisecond:d=0,microsecond:m=0,nanosecond:y=0}=i==="start-of-day"?{}:i,b=Ur(n,r,o,c,l,u,d,m,y-(s?0:lr(a)));return Kn(b.isoDate),Rt(Ae(b))}function fs(t,e){if(Te(t)){if(lt(t))return ee(P(e)),Zn(f(t,Y),f(t,x));let s;return Je(t,x)?s=f(t,x):(s=t.calendar,s===void 0&&(s="iso8601"),s=no(s)),Zn(Oo(s,gt(s,t,["year","month","monthCode","day"],[],[]),ee(P(e))),s)}let{month:n,day:r,referenceISOYear:o,calendar:i}=oa(xe(t));if(i===void 0&&(i="iso8601"),i=et(i),ee(P(e)),i==="iso8601")return Zn({year:1972,month:n,day:r},i);let a={year:o,month:n,day:r};return In(a),a=Oo(i,Qe(i,a,"month-day"),"constrain"),Zn(a,i)}function cn(t,e){let n;if(Te(t)){if(De(t))return ee(P(e)),Bt(f(t,Ee));if(ge(t))return ee(P(e)),Bt(f(t,ye).time);if(Z(t)){const l=Tt(f(t,se),f(t,L));return ee(P(e)),Bt(l.time)}const{hour:r,minute:o,second:i,millisecond:a,microsecond:s,nanosecond:c}=ji(t);n=ei(r,o,i,a,s,c,ee(P(e)))}else n=xc(xe(t)),ee(P(e));return Bt(n)}function Rc(t){return t===void 0?{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}:f(cn(t),Ee)}function Cr(t,e){if(Te(t)){if(Re(t))return ee(P(e)),Gn(f(t,Y),f(t,x));const s=ro(t);return Gn(Lr(s,gt(s,t,["year","month","monthCode"],[],[]),ee(P(e))),s)}let{year:n,month:r,referenceISODay:o,calendar:i}=ra(xe(t));i===void 0&&(i="iso8601"),i=et(i),ee(P(e));let a={year:n,month:r,day:o};return la(a),a=Lr(i,Qe(i,a,"year-month"),"constrain"),Gn(a,i)}function xo(t,e,n,r,o,i,a,s){if(e==="start-of-day")return on(o,t);const c=te(t,e);if(n==="wall"||a==="ignore")return je(o,c,i);if(n==="exact"||a==="use"){const d=Ur(t.year,t.month,t.day,e.hour,e.minute,e.second,e.millisecond,e.microsecond,e.nanosecond-r);Kn(d.isoDate);const m=Ae(d);return Lt(m),m}Kn(t);const l=Ae(c),u=Yr(o,c);for(let d=0;d<u.length;d++){const m=u[d],y=h.toNumber(h.subtract(l,m)),b=ln(y,6e10,"halfExpand");if(y===r||s&&b===r)return m}if(a==="reject"){const d=Li(r),m=zr(c,"iso8601","auto");throw new RangeError(`Offset ${d} is invalid for ${m} in ${o}`)}return Uc(u,o,c,i)}function Dr(t,e){let n,r,o,i,a,s,c,l=!1,u="option";if(Te(t)){if(Z(t)){const g=P(e);return Rr(g),bo(g,"reject"),ee(g),Pe(f(t,L),f(t,se),f(t,x))}a=ro(t);const m=gt(a,t,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond","offset","timeZone"],["timeZone"]);({offset:i,timeZone:o}=m),i===void 0&&(u="wall");const y=P(e);s=Rr(y),c=bo(y,"reject");const b=ee(y);({isoDate:n,time:r}=eo(a,m,b))}else{let m,y,b,g,w;({year:b,month:g,day:w,time:r,tzAnnotation:m,offset:i,z:y,calendar:a}=(function(D){const M=zt(D);if(!M.tzAnnotation)throw new RangeError("Temporal.ZonedDateTime requires a time zone ID in brackets");return M})(xe(t))),o=Xe(m),y?u="exact":i||(u="wall"),a||(a="iso8601"),a=et(a),l=!0;const v=P(e);s=Rr(v),c=bo(v,"reject"),ee(v),n={year:b,month:g,day:w}}let d=0;return u==="option"&&(d=lr(i)),Pe(xo(n,r,u,d,o,s,c,l),o,a)}function Ac(t,e,n){In(e),nn(t),V(t,Y,e),V(t,x,n),V(t,uc,!0)}function Ke(t,e){const n=Ie("%Temporal.PlainDate%"),r=Object.create(n.prototype);return Ac(r,t,e),r}function Ic(t,e,n){$n(e),nn(t),V(t,ye,e),V(t,x,n)}function bt(t,e){const n=Ie("%Temporal.PlainDateTime%"),r=Object.create(n.prototype);return Ic(r,t,e),r}function Pc(t,e,n){In(e),nn(t),V(t,Y,e),V(t,x,n),V(t,hc,!0)}function Zn(t,e){const n=Ie("%Temporal.PlainMonthDay%"),r=Object.create(n.prototype);return Pc(r,t,e),r}function Nc(t,e){nn(t),V(t,Ee,e)}function Bt(t){const e=Ie("%Temporal.PlainTime%"),n=Object.create(e.prototype);return Nc(n,t),n}function jc(t,e,n){la(e),nn(t),V(t,Y,e),V(t,x,n),V(t,dc,!0)}function Gn(t,e){const n=Ie("%Temporal.PlainYearMonth%"),r=Object.create(n.prototype);return jc(r,t,e),r}function Lc(t,e){Lt(e),nn(t),V(t,L,e)}function Rt(t){const e=Ie("%Temporal.Instant%"),n=Object.create(e.prototype);return Lc(n,t),n}function Yc(t,e,n,r){Lt(e),nn(t),V(t,L,e),V(t,se,n),V(t,x,r)}function Pe(t,e,n="iso8601"){const r=Ie("%Temporal.ZonedDateTime%"),o=Object.create(r.prototype);return Yc(o,t,e,n),o}function ms(t){return Ni.filter((e=>t[e]!==void 0))}function xn(t,e,n){const r=ms(n),o=pn(t).fieldKeysToIgnore(r),i=Object.create(null),a=ms(e);for(let s=0;s<Ni.length;s++){let c;const l=Ni[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 ft(t,e,n,r){const o=pn(t).dateAdd(e,n,r);return In(o),o}function to(t,e,n,r){return pn(t).dateUntil(e,n,r)}function no(t){if(Te(t)&&Je(t,x))return f(t,x);const e=xe(t);try{return et(e)}catch{}let n;try{({calendar:n}=zt(e))}catch{try{({calendar:n}=xc(e))}catch{try{({calendar:n}=ra(e))}catch{({calendar:n}=oa(e))}}}return n||(n="iso8601"),et(n)}function ro(t){if(Je(t,x))return f(t,x);const{calendar:e}=t;return e===void 0?"iso8601":no(e)}function jt(t,e){return et(t)===et(e)}function gn(t,e,n){const r=pn(t);r.resolveFields(e,"date");const o=r.dateToISO(e,n);return In(o),o}function Lr(t,e,n){const r=pn(t);r.resolveFields(e,"year-month"),e.day=1;const o=r.dateToISO(e,n);return la(o),o}function Oo(t,e,n){const r=pn(t);r.resolveFields(e,"month-day");const o=r.monthDayToISOReferenceDate(e,n);return In(o),o}function Xe(t){if(Te(t)&&Z(t))return f(t,se);const e=xe(t);if(e==="UTC")return"UTC";const{tzName:n,offsetMinutes:r}=(function(i){const{tzAnnotation:a,offset:s,z:c}=(function(l){if(Oc.test(l))return{tzAnnotation:l,offset:void 0,z:!1};try{const{tzAnnotation:u,offset:d,z:m}=zt(l);if(m||u||d)return{tzAnnotation:u,offset:d,z:m}}catch{}Sc(l)})(i);return a?un(a):c?un("UTC"):s?un(s):void 0})(e);if(r!==void 0)return ia(r);const o=$o(n);if(!o)throw new RangeError(`Unrecognized time zone ${n}`);return o.identifier}function zc(t,e){if(t===e)return!0;const n=un(t).offsetMinutes,r=un(e).offsetMinutes;if(n===void 0&&r===void 0){const o=$o(e);if(!o)return!1;const i=$o(t);return!!i&&i.primaryIdentifier===o.primaryIdentifier}return n===r}function Gt(t,e){const n=un(t).offsetMinutes;return n!==void 0?6e10*n:Yi(t,e)}function Li(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}${ti(r,o,i,a,i===0&&a===0?"minute":"auto")}`}function Tt(t,e){const n=Gt(t,e);let{isoDate:{year:r,month:o,day:i},time:{hour:a,minute:s,second:c,millisecond:l,microsecond:u,nanosecond:d}}=Wc(e);return Ur(r,o,i,a,s,c,l,u,d+n)}function je(t,e,n){return Uc(Yr(t,e),t,e,n)}function Uc(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=Ae(n),a=h.subtract(i,fn);Lt(a);const s=Gt(e,a),c=h.add(i,fn);Lt(c);const l=Gt(e,c)-s;switch(r){case"earlier":{const u=B.fromComponents(0,0,0,0,0,-l),d=nr(n.time,u);return Yr(e,te(at(n.isoDate.year,n.isoDate.month,n.isoDate.day+d.deltaDays),d))[0]}case"compatible":case"later":{const u=B.fromComponents(0,0,0,0,0,l),d=nr(n.time,u),m=Yr(e,te(at(n.isoDate.year,n.isoDate.month,n.isoDate.day+d.deltaDays),d));return m[m.length-1]}}}function Yr(t,e){if(t==="UTC")return Kn(e.isoDate),[Ae(e)];const n=un(t).offsetMinutes;if(n!==void 0){const r=Ur(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);Kn(r.isoDate);const o=Ae(r);return Lt(o),[o]}return Kn(e.isoDate),(function(r,o){let i=Ae(o),a=h.subtract(i,fn);h.lessThan(a,Nr)&&(a=i);let s=h.add(i,fn);h.greaterThan(s,Jn)&&(s=i);const c=Yi(r,a),l=Yi(r,s);return(c===l?[c]:[c,l]).map((d=>{const m=h.subtract(i,h.BigInt(d)),y=(function(b,g){const{epochMilliseconds:w,time:{millisecond:v,microsecond:D,nanosecond:M}}=Wc(g),{year:C,month:T,day:k,hour:U,minute:G,second:N}=Vc(b,w);return Ur(C,T,k,U,G,N,v,D,M)})(r,m);if(rr(o,y)===0)return Lt(m),m})).filter((d=>d!==void 0))})(t,e)}function on(t,e){const n=te(e,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),r=Yr(t,n);if(r.length)return r[0];const o=Ae(n),i=h.subtract(o,fn);return Lt(i),sa(t,i)}function oo(t){let e;return e=t<0||t>9999?(t<0?"-":"+")+jr(Math.abs(t),6):jr(t,4),e}function mt(t){return jr(t,2)}function Fc(t,e){let n;if(e==="auto"){if(t===0)return"";n=jr(t,9).replace(/0+$/,"")}else{if(e===0)return"";n=jr(t,9).slice(0,e)}return`.${n}`}function ti(t,e,n,r,o){let i=`${mt(t)}:${mt(e)}`;return o==="minute"||(i+=`:${mt(n)}`,i+=Fc(r,o)),i}function gs(t,e,n){let r=e;r===void 0&&(r="UTC");const o=f(t,L),i=zr(Tt(r,o),"iso8601",n,"never");let a="Z";return e!==void 0&&(a=qc(Gt(r,o))),`${i}${a}`}function yo(t,e){const n=f(t,Ue),r=f(t,Fe),o=f(t,nt),i=f(t,qe),a=f(t,We),s=f(t,Ve),c=ko(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=B.fromComponents(0,0,f(t,He),f(t,Ze),f(t,Be),f(t,rt));d.isZero()&&!["second","millisecond","microsecond","nanosecond"].includes(Vt(t))&&e==="auto"||(u+=`${Math.abs(d.sec)}${Fc(Math.abs(d.subsec),e)}S`);let m=`${c<0?"-":""}P${l}`;return u&&(m=`${m}T${u}`),m}function ys(t,e="auto"){const{year:n,month:r,day:o}=f(t,Y);return`${oo(n)}-${mt(r)}-${mt(o)}${Gr(f(t,x),e)}`}function ps({hour:t,minute:e,second:n,millisecond:r,microsecond:o,nanosecond:i},a){return ti(t,e,n,1e6*r+1e3*o+i,a)}function zr(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:m}}=t;return`${oo(o)}-${mt(i)}-${mt(a)}T${ti(s,c,l,1e6*u+1e3*d+m,n)}${Gr(e,r)}`}function bs(t,e="auto"){const{year:n,month:r,day:o}=f(t,Y);let i=`${mt(r)}-${mt(o)}`;const a=f(t,x);e!=="always"&&e!=="critical"&&a==="iso8601"||(i=`${oo(n)}-${i}`);const s=Gr(a,e);return s&&(i+=s),i}function ws(t,e="auto"){const{year:n,month:r,day:o}=f(t,Y);let i=`${oo(n)}-${mt(r)}`;const a=f(t,x);e!=="always"&&e!=="critical"&&a==="iso8601"||(i+=`-${mt(o)}`);const s=Gr(a,e);return s&&(i+=s),i}function vs(t,e,n="auto",r="auto",o="auto",i=void 0){let a=f(t,L);if(i){const{unit:u,increment:d,roundingMode:m}=i;a=qi(a,d,u,m)}const s=f(t,se),c=Gt(s,a);let l=zr(Tt(s,a),"iso8601",e,"never");return o!=="never"&&(l+=qc(c)),r!=="never"&&(l+=`[${r==="critical"?"!":""}${s}]`),l+=Gr(f(t,x),n),l}function Es(t){return $c.test(t)}function lr(t){const e=nf.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 mr;const ef=Object.assign(Object.create(null),{"/":!0,"-":!0,_:!0});function $o(t){if(mr===void 0){const i=Intl.supportedValuesOf?.("timeZone");if(i){mr=new Map;for(let a=0;a<i.length;a++){const s=i[a];mr.set(Fr(s),s)}}else mr=null}const e=Fr(t);let n=mr?.get(e);if(n)return{identifier:n,primaryIdentifier:n};try{n=Mc(t).resolvedOptions().timeZone}catch{return}if(e==="antarctica/south_pole"&&(n="Antarctica/McMurdo"),Gh.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||ef[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 Cn(t,e){const{year:n,month:r,day:o,hour:i,minute:a,second:s}=Vc(t,e);let c=e%1e3;return c<0&&(c+=1e3),1e6*(aa({isoDate:{year:n,month:r,day:o},time:{hour:i,minute:a,second:s,millisecond:c}})-e)}function Yi(t,e){return Cn(t,_t(e,"floor"))}function ia(t){const e=t<0?"-":"+",n=Math.abs(t);return`${e}${ti(Math.floor(n/60),n%60,0,0,"minute")}`}function qc(t){return ia(ln(t,Wh,"halfExpand")/6e10)}function aa({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()+Zh*c}function Ae(t){const e=aa(t),n=1e3*t.time.microsecond+t.time.nanosecond;return h.add(It(e),h.BigInt(n))}function Wc(t){let e=_t(t,"trunc"),n=h.toNumber(h.remainder(t,Zr));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 sa(t,e){if(t==="UTC")return null;const n=_t(e,"floor");if(n<$r)return sa(t,It($r));const r=Date.now(),o=Math.max(n,r)+366*mn*3;let i=n,a=Cn(t,i),s=i,c=a;for(;a===c&&i<o;){if(s=i+2*mn*7,s>Dc)return null;c=Cn(t,s),a===c&&(i=s)}return a===c?null:It(tl((l=>Cn(t,l)),i,s,a,c))}function zi(t,e){if(t==="UTC")return null;const n=_t(e,"ceil"),r=Date.now(),o=r+366*mn*3;if(n>o){const l=zi(t,It(o));if(l===null||h.lessThan(l,It(r)))return l}if(t==="Africa/Casablanca"||t==="Africa/El_Aaiun"){const l=Date.UTC(2088,0,1);if(l<n)return zi(t,It(l))}let i=n-1;if(i<$r)return null;let a=Cn(t,i),s=i,c=a;for(;a===c&&i>$r;){if(s=i-2*mn*7,s<$r)return null;c=Cn(t,s),a===c&&(i=s)}return a===c?null:It(tl((l=>Cn(t,l)),s,i,c,a))}function Vc(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}})(Mc(t).format(e))}function So(t){return t!==void 0&&!(t%4!=0||t%100==0&&t%400!=0)}function Dn(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]}[So(t)?"leapyear":"standard"][e-1]}function ko(t){const e=[f(t,Ue),f(t,Fe),f(t,nt),f(t,qe),f(t,We),f(t,Ve),f(t,He),f(t,Ze),f(t,Be),f(t,rt)];for(let n=0;n<e.length;n++){const r=e[n];if(r!==0)return r<0?-1:1}return 0}function ni(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 Hc(t){const e=ni(t.date);return e!==0?e:t.time.sign()}function Tn(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 at(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}=Tn(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=So(c)?366:365,i<-s;)r-=1,c-=1,i+=s;for(c+=1;s=So(c)?366:365,i>s;)r+=1,c+=1,i-=s;for(;i<1;)({year:r,month:o}=Tn(r,o-1)),i+=Dn(r,o);for(;i>Dn(r,o);)i-=Dn(r,o),{year:r,month:o}=Tn(r,o+1);return{year:r,month:o,day:i}}function Ur(t,e,n,r,o,i,a,s,c){const l=an(r,o,i,a,s,c);return te(at(t,e,n+l.deltaDays),l)}function an(t,e,n,r,o,i){let a,s=t,c=e,l=n,u=r,d=o,m=i;({div:a,mod:m}=Hn(m,3)),d+=a,m<0&&(d-=1,m+=1e3),{div:a,mod:d}=Hn(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,m+=0,{deltaDays:y,hour:s,minute:c,second:l,millisecond:u,microsecond:d,nanosecond:m}}function Ts(t,e){const n=Ne(t,0);if(ni(n)===0)return t.days;const r=f(e,Y),o=ft(f(e,x),r,n,"constrain"),i=Sn(r.year,r.month-1,r.day),a=Sn(o.year,o.month-1,o.day)-i;return t.days+a}function st(t){return new(Ie("%Temporal.Duration%"))(-f(t,Ue),-f(t,Fe),-f(t,nt),-f(t,qe),-f(t,We),-f(t,Ve),-f(t,He),-f(t,Ze),-f(t,Be),-f(t,rt))}function Ge(t,e,n){return Math.min(n,Math.max(e,t))}function Zc(t,e,n){const r=Ge(e,1,12);return{year:t,month:r,day:Ge(n,1,Dn(t,r))}}function $e(t,e,n){if(t<e||t>n)throw new RangeError(`value out of range: ${e} <= ${t} <= ${n}`)}function On(t,e,n){$e(e,1,12),$e(n,1,Dn(t,e))}function In(t){$n(te(t,{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}))}function ri(t,e,n,r,o,i){$e(t,0,23),$e(e,0,59),$e(n,0,59),$e(r,0,999),$e(o,0,999),$e(i,0,999)}function ca(t,e,n,r,o,i,a,s,c){On(t,e,n),ri(r,o,i,a,s,c)}function $n(t){const e=Ae(t);(h.lessThan(e,Vh)||h.greaterThan(e,Hh))&&Lt(e)}function Ui(t){Ae(t)}function Lt(t){if(h.lessThan(t,Nr)||h.greaterThan(t,Jn))throw new RangeError("date/time value is outside of supported range")}function la({year:t,month:e}){$e(t,cs,ls),t===cs?$e(e,4,12):t===ls&&$e(e,1,9)}function oi(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 v=0;v<d.length;v++){const D=d[v];if(D===1/0||D===-1/0)throw new RangeError("infinite values not allowed as duration fields");if(D!==0){const M=D<0?-1:1;if(u!==0&&M!==u)throw new RangeError("mixed-sign values not allowed as duration fields");u=M}}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 m=Hn(s,3),y=Hn(c,6),b=Hn(l,9),g=Hn(1e6*m.mod+1e3*y.mod+b.mod,9).div,w=86400*r+3600*o+60*i+a+m.div+y.div+b.div+g;if(!Number.isSafeInteger(w))throw new RangeError("total of duration time units cannot exceed 9007199254740991.999999999 s")}function Vn(t){return{date:{years:f(t,Ue),months:f(t,Fe),weeks:f(t,nt),days:f(t,qe)},time:B.fromComponents(f(t,We),f(t,Ve),f(t,He),f(t,Ze),f(t,Be),f(t,rt))}}function At(t){const e=B.fromComponents(f(t,We),f(t,Ve),f(t,He),f(t,Ze),f(t,Be),f(t,rt)).add24HourDays(f(t,qe));return{date:{years:f(t,Ue),months:f(t,Fe),weeks:f(t,nt),days:0},time:e}}function Bc(t){const e=At(t),n=Math.trunc(e.time.sec/86400);return oi(e.date.years,e.date.months,e.date.weeks,n,0,0,0,0,0,0),{...e.date,days:n}}function wt(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=wi(a,3,Math.trunc(o/1e3)),o%=1e3,a=0;break;case"microsecond":o=wi(a,6,Math.trunc(r/1e3)),r%=1e3,a=0;break;case"nanosecond":r=wi(a,9,r),a=0}return new(Ie("%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 Xt(t,e){return ni(t),e.sign(),{date:t,time:e}}function Sn(t,e,n){return aa({isoDate:{year:t,month:e+1,day:n},time:{hour:0,minute:0,second:0,millisecond:0}})/mn}function Kn({year:t,month:e,day:n}){if(Math.abs(Sn(t,e-1,n))>1e8)throw new RangeError("date/time value is outside the supported range")}function ua(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 B.fromComponents(n,r,o,i,a,s)}function da(t,e,n,r,o){let i=B.fromEpochNsDiff(e,t);return i=Ro(i,n,r,o),Xt({years:0,months:0,weeks:0,days:0},i)}function Gc(t,e,n,r){Ui(t),Ui(e);let o=ua(t.time,e.time);const i=o.sign(),a=Yt(t.isoDate,e.isoDate);let s=e.isoDate;a===i&&(s=at(s.year,s.month,s.day+i),o=o.add24HourDays(-i));const c=Kt("day",r),l=to(n,t.isoDate,s,c);return r!==c&&(o=o.add24HourDays(l.days),l.days=0),Xt(l,o)}function Kc(t,e,n,r,o){const i=h.subtract(e,t);if(h.equal(i,dt))return{date:{years:0,months:0,weeks:0,days:0},time:B.ZERO};const a=h.lessThan(i,dt)?-1:1,s=Tt(n,t),c=Tt(n,e);let l,u=0,d=a===1?2:1,m=ua(s.time,c.time);for(m.sign()===-a&&u++;u<=d;u++){l=te(at(c.isoDate.year,c.isoDate.month,c.isoDate.day-u*a),s.time);const b=je(n,l,"compatible");if(m=B.fromEpochNsDiff(e,b),m.sign()!==-a)break}const y=Kt("day",o);return Xt(to(r,s.isoDate,l.isoDate,y),m)}function Xc(t,e,n,r,o,i,a,s,c){let l,u,d,m,y=e;switch(s){case"year":{const p=ln(y.date.years,a,"trunc");l=p,u=p+a*t,d={years:l,months:0,weeks:0,days:0},m={...d,years:u};break}case"month":{const p=ln(y.date.months,a,"trunc");l=p,u=p+a*t,d=Ne(y.date,0,0,l),m=Ne(y.date,0,0,u);break}case"week":{const p=Ne(y.date,0,0),R=ft(i,r.isoDate,p,"constrain"),O=to(i,R,at(R.year,R.month,R.day+y.date.days),"week"),j=ln(y.date.weeks+O.weeks,a,"trunc");l=j,u=j+a*t,d=Ne(y.date,0,l),m=Ne(y.date,0,u);break}case"day":{const p=ln(y.date.days,a,"trunc");l=p,u=p+a*t,d=Ne(y.date,l),m=Ne(y.date,u);break}}const b=ft(i,r.isoDate,d,"constrain"),g=ft(i,r.isoDate,m,"constrain");let w,v;const D=te(b,r.time),M=te(g,r.time);o?(w=je(o,D,"compatible"),v=je(o,M,"compatible")):(w=Ae(D),v=Ae(M));const C=B.fromEpochNsDiff(n,w),T=B.fromEpochNsDiff(v,w),k=Go(c,t<0?"negative":"positive"),U=C.add(C).abs().subtract(T.abs()).sign(),G=Math.abs(l)/a%2==0,N=C.isZero()?Math.abs(l):C.cmp(T)?Ko(Math.abs(l),Math.abs(u),U,G,k):Math.abs(u),ae=new B(h.add(h.multiply(T.totalNs,h.BigInt(l)),h.multiply(C.totalNs,h.BigInt(a*t)))).fdiv(T.totalNs),q=N===Math.abs(u);return y={date:q?m:d,time:B.ZERO},{nudgeResult:{duration:y,nudgedEpochNs:q?v:w,didExpandCalendarUnit:q},total:ae}}function ii(t,e,n,r,o,i,a,s,c){let l=t;const u=St(s)||r&&s==="day",d=Hc(l)<0?-1:1;let m;return u?{nudgeResult:m}=Xc(d,l,e,n,r,o,a,s,c):m=r?(function(y,b,g,w,v,D,M,C){let T=b;const k=ft(v,g.isoDate,T.date,"constrain"),U=te(k,g.time),G=te(at(k.year,k.month,k.day+y),g.time),N=je(w,U,"compatible"),ae=je(w,G,"compatible"),q=B.fromEpochNsDiff(ae,N);if(q.sign()!==y)throw new RangeError("time zone returned inconsistent Instants");const p=h.BigInt(tr[M]*D);let R=T.time.round(p,C);const O=R.subtract(q),j=O.sign()!==-y;let H,pe;return j?(H=y,R=O.round(p,C),pe=R.addToEpochNs(ae)):(H=0,pe=R.addToEpochNs(N)),{duration:Xt(Ne(T.date,T.date.days+H),R),nudgedEpochNs:pe,didExpandCalendarUnit:j}})(d,l,n,r,o,a,s,c):(function(y,b,g,w,v,D){let M=y;const C=M.time.add24HourDays(M.date.days),T=C.round(h.BigInt(w*tr[v]),D),k=T.subtract(C),{quotient:U}=C.divmod(Do),{quotient:G}=T.divmod(Do),N=Math.sign(G-U)===C.sign(),ae=k.addToEpochNs(b);let q=0,p=T;return Ht(g)==="date"&&(q=G,p=T.add(B.fromComponents(24*-G,0,0,0,0,0))),{duration:{date:Ne(M.date,q),time:p},nudgedEpochNs:ae,didExpandCalendarUnit:N}})(l,e,i,a,s,c),l=m.duration,m.didExpandCalendarUnit&&s!=="week"&&(l=(function(y,b,g,w,v,D,M,C){let T=b;if(C===M)return T;const k=Sr.indexOf(M);for(let U=Sr.indexOf(C)-1;U>=k;U--){const G=Sr[U];if(G==="week"&&M!=="week")continue;let N;switch(G){case"year":N={years:T.date.years+y,months:0,weeks:0,days:0};break;case"month":{const p=T.date.months+y;N=Ne(T.date,0,0,p);break}case"week":{const p=T.date.weeks+y;N=Ne(T.date,0,p);break}}const ae=te(ft(D,w.isoDate,N,"constrain"),w.time);let q;if(q=v?je(v,ae,"compatible"):Ae(ae),_o(g,q)===-y)break;T={date:N,time:B.ZERO}}return T})(d,l,m.nudgedEpochNs,n,r,o,i,Kt(s,"day"))),l}function _s(t,e,n,r,o,i){return St(i)||r&&i==="day"?Xc(Hc(t)<0?-1:1,t,e,n,r,o,1,i,"trunc").total:Ar(t.time.add24HourDays(t.date.days),i)}function Qc(t,e,n,r,o,i,a){if(rr(t,e)==0)return{date:{years:0,months:0,weeks:0,days:0},time:B.ZERO};$n(t),$n(e);const s=Gc(t,e,n,r);return i==="nanosecond"&&o===1?s:ii(s,Ae(e),t,null,n,r,o,i,a)}function Jc(t,e,n,r,o,i,a,s){if(Ht(o)==="time")return da(t,e,i,a,s);const c=Kc(t,e,n,r,o);return a==="nanosecond"&&i===1?c:ii(c,e,Tt(n,t),n,r,o,i,a,s)}function ur(t,e,n,r,o,i){const a=er.reduce(((y,b)=>{const g=b[0],w=b[1],v=b[2];return n!=="datetime"&&v!==n||r.includes(w)||y.push(w,g),y}),[]);let s=it(e,"largestUnit",n,"auto");if(r.includes(s))throw new RangeError(`largestUnit must be one of ${a.join(", ")}, not ${s}`);const c=sr(e);let l=Mt(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=it(e,"smallestUnit",n,o);if(r.includes(u))throw new RangeError(`smallestUnit must be one of ${a.join(", ")}, not ${u}`);const d=Kt(i,u);if(s==="auto"&&(s=d),Kt(s,u)!==s)throw new RangeError(`largestUnit ${s} cannot be smaller than smallestUnit ${u}`);const m={hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[u];return m!==void 0&&cr(c,m,!1),{largestUnit:s,roundingIncrement:c,roundingMode:l,smallestUnit:u}}function Cs(t,e,n,r){const o=_r(n),i=ur(t,P(r),"time",[],"nanosecond","second");let a=wt(da(f(e,L),f(o,L),i.roundingIncrement,i.smallestUnit,i.roundingMode),i.largestUnit);return t==="since"&&(a=st(a)),a}function Ds(t,e,n,r){const o=Er(n),i=f(e,x),a=f(o,x);if(!jt(i,a))throw new RangeError(`cannot compute difference between dates of ${i} and ${a} calendars`);const s=ur(t,P(r),"date",[],"day","day"),c=Ie("%Temporal.Duration%"),l=f(e,Y),u=f(o,Y);if(Yt(l,u)===0)return new c;let d={date:to(i,l,u,s.largestUnit),time:B.ZERO};if(s.smallestUnit!=="day"||s.roundingIncrement!==1){const y=te(l,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});d=ii(d,Ae(te(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 m=wt(d,"day");return t==="since"&&(m=st(m)),m}function Ms(t,e,n,r){const o=Tr(n),i=f(e,x),a=f(o,x);if(!jt(i,a))throw new RangeError(`cannot compute difference between dates of ${i} and ${a} calendars`);const s=ur(t,P(r),"datetime",[],"nanosecond","day"),c=Ie("%Temporal.Duration%"),l=f(e,ye),u=f(o,ye);if(rr(l,u)===0)return new c;let d=wt(Qc(l,u,i,s.largestUnit,s.roundingIncrement,s.smallestUnit,s.roundingMode),s.largestUnit);return t==="since"&&(d=st(d)),d}function xs(t,e,n,r){const o=cn(n),i=ur(t,P(r),"time",[],"nanosecond","hour");let a=ua(f(e,Ee),f(o,Ee));a=Ro(a,i.roundingIncrement,i.smallestUnit,i.roundingMode);let s=wt(Xt({years:0,months:0,weeks:0,days:0},a),i.largestUnit);return t==="since"&&(s=st(s)),s}function Os(t,e,n,r){const o=Cr(n),i=f(e,x),a=f(o,x);if(!jt(i,a))throw new RangeError(`cannot compute difference between months of ${i} and ${a} calendars`);const s=ur(t,P(r),"date",["week","day"],"month","year"),c=Ie("%Temporal.Duration%");if(Yt(f(e,Y),f(o,Y))==0)return new c;const l=Qe(i,f(e,Y),"year-month");l.day=1;const u=gn(i,l,"constrain"),d=Qe(i,f(o,Y),"year-month");d.day=1;const m=gn(i,d,"constrain");let y={date:Ne(to(i,u,m,s.largestUnit),0,0),time:B.ZERO};if(s.smallestUnit!=="month"||s.roundingIncrement!==1){const g=te(u,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});y=ii(y,Ae(te(m,{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 b=wt(y,"day");return t==="since"&&(b=st(b)),b}function $s(t,e,n,r){const o=Dr(n),i=f(e,x),a=f(o,x);if(!jt(i,a))throw new RangeError(`cannot compute difference between dates of ${i} and ${a} calendars`);const s=ur(t,P(r),"datetime",[],"nanosecond","hour"),c=f(e,L),l=f(o,L),u=Ie("%Temporal.Duration%");let d;if(Ht(s.largestUnit)!=="date")d=wt(da(c,l,s.roundingIncrement,s.smallestUnit,s.roundingMode),s.largestUnit);else{const m=f(e,se);if(!zc(m,f(o,se)))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(h.equal(c,l))return new u;d=wt(Jc(c,l,m,i,s.largestUnit,s.roundingIncrement,s.smallestUnit,s.roundingMode),"hour")}return t==="since"&&(d=st(d)),d}function nr({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,an(t,e,s,r,o,c)}function Fi(t,e){const n=e.addToEpochNs(t);return Lt(n),n}function Mr(t,e,n,r,o="constrain"){if(ni(r.date)===0)return Fi(t,r.time);const i=Tt(e,t);return Fi(je(e,te(ft(n,i.isoDate,r.date,o),i.time),"compatible"),r.time)}function Ss(t,e,n){let r=Et(n);t==="subtract"&&(r=st(r));const o=Kt(Vt(e),Vt(r));if(St(o))throw new RangeError("For years, months, or weeks arithmetic, use date arithmetic relative to a starting point");const i=At(e),a=At(r);return wt(Xt({years:0,months:0,weeks:0,days:0},i.time.add(a.time)),o)}function ks(t,e,n){let r=Et(n);t==="subtract"&&(r=st(r));const o=Vt(r);if(Ht(o)==="date")throw new RangeError(`Duration field ${o} not supported by Temporal.Instant. Try Temporal.ZonedDateTime instead.`);const i=At(r);return Rt(Fi(f(e,L),i.time))}function Rs(t,e,n,r){const o=f(e,x);let i=Et(n);t==="subtract"&&(i=st(i));const a=Bc(i),s=ee(P(r));return Ke(ft(o,f(e,Y),a,s),o)}function As(t,e,n,r){let o=Et(n);t==="subtract"&&(o=st(o));const i=ee(P(r)),a=f(e,x),s=At(o),c=f(e,ye),l=nr(c.time,s.time),u=Ne(s.date,l.deltaDays);return oi(u.years,u.months,u.weeks,u.days,0,0,0,0,0,0),bt(te(ft(a,c.isoDate,u,i),l),a)}function Is(t,e,n){let r=Et(n);t==="subtract"&&(r=st(r));const o=At(r),{hour:i,minute:a,second:s,millisecond:c,microsecond:l,nanosecond:u}=nr(f(e,Ee),o.time);return Bt(ei(i,a,s,c,l,u,"reject"))}function Ps(t,e,n,r){let o=Et(n);t==="subtract"&&(o=st(o));const i=ee(P(r)),a=ko(o),s=f(e,x),c=Qe(s,f(e,Y),"year-month");c.day=1;let l=gn(s,c,"constrain");if(a<0){const d=ft(s,l,{months:1},"constrain");l=at(d.year,d.month,d.day-1)}const u=Bc(o);return In(l),Gn(Lr(s,Qe(s,ft(s,l,u,i),"year-month"),i),s)}function Ns(t,e,n,r){let o=Et(n);t==="subtract"&&(o=st(o));const i=ee(P(r)),a=f(e,se),s=f(e,x),c=Vn(o);return Pe(Mr(f(e,L),a,s,c,i),a,s)}function ln(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=ot(Math.abs(2*o)-e),l=a%2==0,u=Go(n,i),d=o===0?a:Ko(a,s,c,l,u);return e*(i==="positive"?d:-d)}function qi(t,e,n,r){const o=tr[n]*e;return(function(i,a,s){const c=qt(i),l=qt(a),u=h.divide(c,l),d=h.remainder(c,l),m=Go(s,"positive");let y,b;h.lessThan(c,dt)?(y=h.subtract(u,Pr),b=u):(y=u,b=h.add(u,Pr));const g=_o(vn(h.multiply(d,na)),l)*(h.lessThan(c,dt)?-1:1)+0,w=h.equal(d,dt)?u:Ko(y,b,g,lc(y),m);return h.multiply(w,l)})(t,h.BigInt(o),r)}function Wi(t,e,n,r){Ui(t);const{year:o,month:i,day:a}=t.isoDate,s=Vi(t.time,e,n,r);return te(at(o,i,a+s.deltaDays),s)}function Vi({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=tr[s],d=ln(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 an(d,0,0,0,0,0);case"minute":return an(t,d,0,0,0,0);case"second":return an(t,e,d,0,0,0);case"millisecond":return an(t,e,n,d,0,0);case"microsecond":return an(t,e,n,r,d,0);case"nanosecond":return an(t,e,n,r,o,d);default:throw new Error(`Invalid unit ${s}`)}}function Ro(t,e,n,r){const o=tr[n];return t.round(h.BigInt(o*e),r)}function Ar(t,e){const n=tr[e];return t.fdiv(h.BigInt(n))}function Yt(t,e){return t.year!==e.year?ot(t.year-e.year):t.month!==e.month?ot(t.month-e.month):t.day!==e.day?ot(t.day-e.day):0}function Hi(t,e){return t.hour!==e.hour?ot(t.hour-e.hour):t.minute!==e.minute?ot(t.minute-e.minute):t.second!==e.second?ot(t.second-e.second):t.millisecond!==e.millisecond?ot(t.millisecond-e.millisecond):t.microsecond!==e.microsecond?ot(t.microsecond-e.microsecond):t.nanosecond!==e.nanosecond?ot(t.nanosecond-e.nanosecond):0}function rr(t,e){const n=Yt(t.isoDate,e.isoDate);return n!==0?n:Hi(t.time,e.time)}function el(t){const e=Ao(t);return globalThis.BigInt!==void 0?globalThis.BigInt(e.toString(10)):e}function _t(t,e){const n=qt(t),{quotient:r,remainder:o}=wr(n,Zr);let i=h.toNumber(r);return e==="floor"&&h.toNumber(o)<0&&(i-=1),e==="ceil"&&h.toNumber(o)>0&&(i+=1),i}function It(t){if(!Number.isInteger(t))throw new RangeError("epoch milliseconds must be an integer");return h.multiply(h.BigInt(t),Zr)}function Ao(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"?h.BigInt(e.toString(10)):h.BigInt(e)}const Zi=(()=>{let t=h.BigInt(Date.now()%1e6);return()=>{const e=Date.now(),n=h.BigInt(e),r=h.add(It(e),t);return t=h.remainder(n,Zr),h.greaterThan(r,Jn)?Jn:h.lessThan(r,Nr)?Nr:r}})();function gr(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}function ot(t){return t<0?-1:t>0?1:t}function P(t){if(t===void 0)return Object.create(null);if(Te(t)&&t!==null)return t;throw new TypeError("Options parameter must be an object, not "+(t===null?"null":typeof t))}function kn(t,e){const n=Object.create(null);return n[t]=e,n}function Qt(t,e,n,r){let o=t[e];if(o!==void 0){if(o=Qo(o),!n.includes(o))throw new RangeError(`${e} must be one of ${n.join(", ")}, not ${o}`);return o}if(r===tn)throw new RangeError(`${e} option is required`);return r}function et(t){const e=Fr(t);if(!Bh.includes(Fr(e)))throw new RangeError(`invalid calendar identifier ${e}`);switch(e){case"ethiopic-amete-alem":return"ethioaa";case"islamicc":return"islamic-civil"}return e}function Fr(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 bn(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 tf=new RegExp(`^${_c.source}$`),nf=new RegExp(`^${/([+-])([01][0-9]|2[0-3])(?::?([0-5][0-9])(?::?([0-5][0-9])(?:[.,](\d{1,9}))?)?)?/.source}$`);function tl(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 nl(t){return[...t]}function rl(t,e){if(t!=="gregory"&&t!=="iso8601")return;const n=io[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(m,y,b,g){let w=(g-m-b+1)%7;w<0&&(w+=7);let v=Math.floor((b+w-1)/7);return 7-w>=y&&++v,v})(s,c,i+n.isoToDate(n.dateAdd(e,{years:-1},"constrain"),{daysInYear:!0}).daysInYear,o),r--;else if(i>=a-5){let m=(l+a-i)%7;m<0&&(m+=7),6-m>=c&&i+7-l>a&&(d=1,r++)}return{week:d,year:r}}function js(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 io={};function Rn(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 Pt(t,e=!1){return`M${`${t}`.padStart(2,"0")}${e?"L":""}`}function ha(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"&&$e(r,1,n),e==="constrain"&&(r=Ge(r,1,n)),o=Pt(r)}else{const i=Rn(o);if(o!==Pt(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}}io.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,ha(t))},dateToISO:(t,e)=>kr(t.year,t.month,t.day,e),monthDayToISOReferenceDate(t,e){const{month:n,day:r}=kr(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 nl(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}=Tn(a,s),{year:a,month:s,day:c}=kr(a,s,c,i),c+=o+7*r,at(a,s,c)},dateUntil(t,e,n){const r=-Yt(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);!js(r,t.year+u,t.month,t.day,e);)i=u,u+=r;let d=r;for(o=Tn(t.year+i,t.month+d);!js(r,o.year,o.month,t.day,e);)a=d,d+=r,o=Tn(o.year,o.month+r);n==="month"&&(a+=12*i,i=0)}o=Tn(t.year+i,t.month+a);const s=Zc(o.year,o.month,t.day);let c=0,l=Sn(e.year,e.month-1,e.day)-Sn(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=Pt(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+=Dn(t,a);o.dayOfYear=i}return r.weekOfYear&&(o.weekOfYear=rl("iso8601",{year:t,month:e,day:n})),r.daysInMonth&&(o.daysInMonth=Dn(t,e)),(r.daysInYear||r.inLeapYear)&&(o.inLeapYear=So(t),o.daysInYear=o.inLeapYear?366:365),o},getFirstDayOfWeek:()=>1,getMinimalDaysInFirstWeek:()=>4};class Oe{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>Oe.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(Oe.objectMap.get(e))throw new RangeError("object already cached");Oe.objectMap.set(e,this),this.report()}static getCacheForObject(e){let n=Oe.objectMap.get(e);return n||(n=new Oe,Oe.objectMap.set(e,n)),n}}function ol({isoYear:t,isoMonth:e,isoDay:n}){return`${oo(t)}-${mt(e)}-${mt(n)}T00:00Z`}function Ti(t,e){return{years:t.year-e.year,months:t.month-e.month,days:t.day-e.day}}Oe.objectMap=new WeakMap,Oe.MAX_CACHE_ENTRIES=1e3;class Pn{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=ol({isoYear:r,isoMonth:o,isoDay:i}),l=this.getCalendarParts(c),u={};for(let m=0;m<l.length;m++){const{type:y,value:b}=l[m];if(y!=="year"&&y!=="relatedYear"||(this.hasEra?u.eraYear=+b:u.year=+b),y==="month"){const g=/^([0-9]*)(.*?)$/.exec(b);if(!g||g.length!=3||!g[1]&&!g[2])throw new RangeError(`Unexpected month: ${b}`);if(u.month=g[1]?+g[1]:1,u.month<1)throw new RangeError(`Invalid month ${b} 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 ${b} 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=+b),this.hasEra&&y==="era"&&b!=null&&b!==""&&(u.era=b.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 m=this.eras.find((y=>u.era===y.genericName));m&&(u.era=m.code)}if(this.reviseIntlEra){const{era:m,eraYear:y}=this.reviseIntlEra(u,e);u.era=m,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((m=>{const y=JSON.stringify({func:"calendarToIsoDate",year:d.year,month:d.month,day:d.day,overflow:m,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}=ha(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"?($e(i,1,o),$e(a,1,this.maximumMonthLength(e))):(i=Ge(i,1,o),a=Ge(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 m=this.estimateIsoDate({year:a,month:s,day:c});const y=D=>{let M=this.addDaysIso(m,D);if(i.day>this.minimumMonthLength(i)){let C=this.isoToCalendarDate(M,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}`);M=this.addDaysIso(M,-1),C=this.isoToCalendarDate(M,r)}}return M};let b=0,g=this.isoToCalendarDate(m,r),w=Ti(i,g);if(w.years!==0||w.months!==0||w.days!==0){const D=365*w.years+30*w.months+w.days;m=this.addDaysIso(m,D),g=this.isoToCalendarDate(m,r),w=Ti(i,g),w.years===0&&w.months===0?m=y(w.days):b=this.compareCalendarDates(i,g)}let v=8;for(;b;){m=this.addDaysIso(m,b*v);const D=g;g=this.isoToCalendarDate(m,r);const M=b;if(b=this.compareCalendarDates(i,g),b){if(w=Ti(i,g),w.years===0&&w.months===0)m=y(w.days),b=0;else if(M&&b!==M)if(v>1)v/=2;else{if(n==="reject")throw new RangeError(`Can't find ISO date from calendar date: ${JSON.stringify({...o})}`);this.compareCalendarDates(g,D)>0&&(m=this.addDaysIso(m,-1)),b=0}}}if(r.set(l,m),u&&r.set(u,m),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 m}compareCalendarDates(e,n){return e.year!==n.year?ot(e.year-n.year):e.month!==n.month?ot(e.month-n.month):e.day!==n.day?ot(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 at(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),m=this.calendarToIsoDate(i,"constrain",o);let y=this.addDaysIso(m,d);if(i=this.isoToCalendarDate(y,o),n>0){const b=this.monthsInYear(u,o);for(;i.month-1!=l%b;)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),m=this.addMonthsCalendar(d,r,a,s),y=i+7*o;return this.addDaysCalendar(m,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 b=0;n.monthCode>e.monthCode&&(b=1),n.monthCode<e.monthCode&&(b=-1),b||(b=Math.sign(d)),c=b*l<0?u-l:u}let m,y=c?this.addCalendar(e,{years:c},"constrain",o):e;do s+=l,m=y,y=this.addMonthsCalendar(m,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(m,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 Sn(i.year,i.month-1,i.day)-Sn(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:m,monthCode:y,day:b}=e;if(m!==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:b}=this.isoToCalendarDate(this.calendarToIsoDate(e,n,r),r));const g={year:this.monthDaySearchStartYear(y,b),month:12,day:31},w=this.isoToCalendarDate(g,r),v=w.monthCode>y||w.monthCode===y&&w.day>=b?w.year:w.year-1;for(let D=0;D<20;D++){const M=this.adjustCalendarDate({day:b,monthCode:y,year:v-D},r),C=this.calendarToIsoDate(M,"constrain",r),T=this.isoToCalendarDate(C,r);if({year:o,month:i,day:a}=C,T.monthCode===y&&T.day===b)return{month:i,day:a,year:o};if(n==="constrain"){const k=this.maxLengthOfMonthCodeInAnyYear(T.monthCode);if(T.monthCode===y&&T.day===k&&b>k)return{month:i,day:a,year:o};(s===void 0||T.monthCode===s.monthCode&&T.day>s.day)&&(s=T,c=C)}}if(n==="constrain"&&c!==void 0)return c;throw new RangeError(`No recent ${this.id} year with monthCode ${y} and day ${b}`)}getFirstDayOfWeek(){}getMinimalDaysInFirstWeek(){}}class rf extends Pn{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?Pt(5,!0):Pt(n<6?n:n-1):Pt(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=Rn(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"?($e(a,1,this.monthsInYear({year:i})),$e(c,1,this.maximumMonthLength({year:i,month:a}))):(a=Ge(a,1,this.monthsInYear({year:i})),c=Ge(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 dr extends Pn{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 of extends dr{constructor(){super(...arguments),this.id="islamic"}}class af extends dr{constructor(){super(...arguments),this.id="islamic-umalqura"}}class sf extends dr{constructor(){super(...arguments),this.id="islamic-tbla"}}class cf extends dr{constructor(){super(...arguments),this.id="islamic-civil"}}class lf extends dr{constructor(){super(...arguments),this.id="islamic-rgsa"}}class uf extends dr{constructor(){super(...arguments),this.id="islamicc"}}class df extends Pn{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 Rn(e)<=6?31:30}estimateIsoDate(e){const{year:n}=this.adjustCalendarDate(e);return{year:n+621,month:1,day:1}}}class hf extends Pn{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 fa(e.year+78)}monthsInYear(){return 12}minimumMonthLength(e){return this.getMonthInfo(e).length}maximumMonthLength(e){return this.getMonthInfo(e).length}maxLengthOfMonthCodeInAnyYear(e){const n=Rn(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 at(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 fa(t){return t%4==0&&(t%100!=0||t%400==0)}class il extends Pn{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 fa(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][Rn(e)-1]}estimateIsoDate(e){const n=this.adjustCalendarDate(e);return kr(n.year+this.isoEpoch.year,n.month+this.isoEpoch.month,n.day+this.isoEpoch.day,"constrain")}}class al extends Pn{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((m=>m.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 fa(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][Rn(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,m)=>{if(m===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:Rn(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 kr(r+a.isoEpoch.year-(a.hasYearZero?0:1),o,i,"constrain")}}class ma extends al{constructor(e,n){super(e,n)}isoToCalendarDate(e){const{year:n,month:r,day:o}=e,i=Pt(r),a=n-this.anchorEra.isoEpoch.year+1;return this.completeEraYear({year:a,month:r,monthCode:i,day:o})}}const kt={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 ff extends il{constructor(e,n){super(e,n),this.inLeapYear=kt.inLeapYear,this.monthsInYear=kt.monthsInYear,this.minimumMonthLength=kt.minimumMonthLength,this.maximumMonthLength=kt.maximumMonthLength,this.maxLengthOfMonthCodeInAnyYear=kt.maxLengthOfMonthCodeInAnyYear}}class sl extends al{constructor(e,n){super(e,n),this.inLeapYear=kt.inLeapYear,this.monthsInYear=kt.monthsInYear,this.minimumMonthLength=kt.minimumMonthLength,this.maximumMonthLength=kt.maximumMonthLength,this.maxLengthOfMonthCodeInAnyYear=kt.maxLengthOfMonthCodeInAnyYear}}class mf extends ff{constructor(){super("ethioaa",{year:-5492,month:7,day:17})}}class gf extends sl{constructor(){super("coptic",[{code:"coptic",isoEpoch:{year:284,month:8,day:29}},{code:"coptic-inverse",reverseOf:"coptic"}])}}class yf extends sl{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 pf extends ma{constructor(){super("roc",[{code:"roc",names:["minguo"],isoEpoch:{year:1912,month:1,day:1}},{code:"roc-inverse",names:["before-roc"],reverseOf:"roc"}])}}class bf extends il{constructor(){super("buddhist",{year:-543,month:1,day:1})}}class wf extends ma{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 vf extends ma{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 cl extends Pn{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=(w,v)=>{const D=ol({isoYear:w,isoMonth:2,isoDay:1}),M=new Date(D);M.setUTCDate(v+1);const C=i.formatToParts(M),T=C.find((N=>N.type==="month")).value,k=+C.find((N=>N.type==="day")).value,U=C.find((N=>N.type==="relatedYear"));let G;if(U===void 0)throw new RangeError(`Intl.DateTimeFormat.formatToParts lacks relatedYear in ${this.id} calendar. Try Node 14+ or modern browsers.`);return G=+U.value,{calendarMonthString:T,calendarDay:k,calendarYearToVerify:G}};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 m,y,b=1,g=!1;do({calendarMonthString:c,calendarDay:l,calendarYearToVerify:u}=a(e,s)),m&&(d[y].daysInMonth=m+30-l),u!==e?g=!0:(d[c]={monthIndex:b++},s+=30),m=l,y=c;while(!g);return d[y].daysInMonth=m+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=Pt(a,s!==void 0),d=`${a}${s||""}`,m=this.getMonthList(i,n)[d];if(m===void 0)throw new RangeError(`Unmatched month ${d} in Chinese year ${i}`);return a=m.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 m=u[d];if(a=m&&m.monthIndex,a===void 0&&l.endsWith("L")&&l!="M13L"&&r==="constrain"){const y=+l.replace(/^M0?|L$/g,"");m=u[y],m&&(a=m.monthIndex,l=Pt(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),m=d.length;r==="reject"?($e(a,1,m),$e(c,1,this.maximumMonthLength())):(a=Ge(a,1,m),c=Ge(c,1,this.maximumMonthLength()));const y=d.find((b=>b[1].monthIndex===a));if(y===void 0)throw new RangeError(`Invalid month ${a} in Chinese year ${i}`);l=Pt(+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 m=u[d];if(!m)throw new RangeError(`Unmatched monthCode ${l} in Chinese year ${i}`);if(a!==m.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 Ef extends cl{constructor(){super(...arguments),this.id="chinese"}}class Tf extends cl{constructor(){super(...arguments),this.id="dangi"}}class _f{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 Oe;ha(e,void 0,this.helper.monthsInYear({year:e.year??1972},n))}}dateToISO(e,n){const r=new Oe,o=this.helper.calendarToIsoDate(e,n,r);return r.setObject(o),o}monthDayToISOReferenceDate(e,n){const r=new Oe,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 nl(n)}dateAdd(e,{years:n,months:r,weeks:o,days:i},a){const s=Oe.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 Oe.getCacheForObject(u)||new Oe(s).setObject(u),u}dateUntil(e,n,r){const o=Oe.getCacheForObject(e),i=Oe.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=Oe.getCacheForObject(e),o=this.helper.isoToCalendarDate(e,r);if(n.dayOfWeek&&(o.dayOfWeek=io.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=rl(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[rf,df,yf,mf,gf,Ef,Tf,pf,hf,bf,wf,vf,of,af,sf,cf,lf,uf]){const e=new t;io[e.id]=new _f(e)}Ai("calendarImpl",(function(t){return io[t]}));const qr=Intl.DateTimeFormat;function Un(t,e){let n=f(t,e);return typeof n=="function"&&(n=new qr(f(t,wc),n(f(t,$i))),(function(r,o,i){const a=Bo(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 yr(t){return Je(t,An)}class Wr{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 m=Object.create(null);for(let y=0;y<d.length;y++){const b=d[y];Object.prototype.hasOwnProperty.call(s,b)&&(m[b]=s[b])}s=m}else s=Object.create(null);const c=new qr(o,s),l=c.resolvedOptions();if(nn(r),a){const d=Object.assign(Object.create(null),l);for(const m in d)Object.prototype.hasOwnProperty.call(s,m)||delete d[m];d.hour12=s.hour12,d.hourCycle=s.hourCycle,V(r,$i,d)}else V(r,$i,s);V(r,wc,l.locale),V(r,An,c),V(r,Wn,l.timeZone),V(r,vr,l.calendar),V(r,fc,Rf),V(r,mc,Sf),V(r,gc,kf),V(r,yc,$f),V(r,pc,Af),V(r,bc,If);const u=a?s.timeZone:void 0;if(u===void 0)V(r,Oi,l.timeZone);else{const d=Qo(u);if(d.startsWith("−"))throw new RangeError("Unicode minus (U+2212) is not supported in time zone offsets");V(r,Oi,Xe(d))}})(this,e,n)}get format(){E(this,yr);const e=Df.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 E(this,yr),xf.call(this,e,n)}formatToParts(e,...n){return E(this,yr),Mf.call(this,e,...n)}formatRangeToParts(e,n){return E(this,yr),Of.call(this,e,n)}resolvedOptions(){return E(this,yr),Cf.call(this)}}"formatToParts"in qr.prototype||delete Wr.prototype.formatToParts,"formatRangeToParts"in qr.prototype||delete Wr.prototype.formatRangeToParts;const vt=function(t=void 0,e=void 0){return new Wr(t,e)};function Cf(){const t=f(this,An).resolvedOptions();return t.timeZone=f(this,Oi),t}function Df(t,...e){let n,r,o=or(t,this);return o.formatter?(n=o.formatter,r=[_t(o.epochNs,"floor")]):(n=f(this,An),r=[t,...e]),n.format(...r)}function Mf(t,...e){let n,r,o=or(t,this);return o.formatter?(n=o.formatter,r=[_t(o.epochNs,"floor")]):(n=f(this,An),r=[t,...e]),n.formatToParts(...r)}function xf(t,e){if(t===void 0||e===void 0)throw new TypeError("Intl.DateTimeFormat.formatRange requires two values");const n=Io(t),r=Io(e);let o,i=[n,r];if(Jt(n)!==Jt(r))throw new TypeError("Intl.DateTimeFormat.formatRange accepts two values of the same type");if(Jt(n)){if(!ll(n,r))throw new TypeError("Intl.DateTimeFormat.formatRange accepts two values of the same type");const{epochNs:a,formatter:s}=or(n,this),{epochNs:c,formatter:l}=or(r,this);s&&(o=s,i=[_t(a,"floor"),_t(c,"floor")])}return o||(o=f(this,An)),o.formatRange(...i)}function Of(t,e){if(t===void 0||e===void 0)throw new TypeError("Intl.DateTimeFormat.formatRange requires two values");const n=Io(t),r=Io(e);let o,i=[n,r];if(Jt(n)!==Jt(r))throw new TypeError("Intl.DateTimeFormat.formatRangeToParts accepts two values of the same type");if(Jt(n)){if(!ll(n,r))throw new TypeError("Intl.DateTimeFormat.formatRangeToParts accepts two values of the same type");const{epochNs:a,formatter:s}=or(n,this),{epochNs:c,formatter:l}=or(r,this);s&&(o=s,i=[_t(a,"floor"),_t(c,"floor")])}return o||(o=f(this,An)),o.formatRangeToParts(...i)}function ao(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 $f(t){const e=ao(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"})),!si(e)){if(so(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 Sf(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=ao(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(so(t))throw new TypeError(`cannot format PlainYearMonth with options [${Object.keys(t)}]`);Object.assign(n,{year:"numeric",month:"numeric"})}return n}function kf(t){const e={short:{month:"numeric",day:"numeric"},medium:{month:"short",day:"numeric"},long:{month:"long",day:"numeric"},full:{month:"long",day:"numeric"}},n=ao(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(so(t))throw new TypeError(`cannot format PlainMonthDay with options [${Object.keys(t)}]`);Object.assign(n,{month:"numeric",day:"numeric"})}return n}function Rf(t){const e=ao(t,{hour:!1,minute:!1,second:!1,dayPeriod:!1,timeZoneName:!1,timeStyle:!1});if(!ai(e)){if(so(t))throw new TypeError(`cannot format PlainDate with options [${Object.keys(t)}]`);Object.assign(e,{year:"numeric",month:"numeric",day:"numeric"})}return e}function Af(t){const e=ao(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),!si(e)&&!ai(e)){if(so(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 If(t){let e=t;return si(e)||ai(e)||(e=Object.assign({},e,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})),e}function ai(t){return"year"in t||"month"in t||"day"in t||"weekday"in t||"dateStyle"in t||"era"in t}function si(t){return"hour"in t||"minute"in t||"second"in t||"timeStyle"in t||"dayPeriod"in t||"fractionalSecondDigits"in t}function so(t){return ai(t)||si(t)||"dateStyle"in t||"timeStyle"in t||"timeZoneName"in t}function Jt(t){return ve(t)||De(t)||ge(t)||Z(t)||Re(t)||lt(t)||ke(t)}function Io(t){return Jt(t)?t:Xo(t)}function ll(t,e){return!(!Jt(t)||!Jt(e)||De(t)&&!De(e)||ve(t)&&!ve(e)||ge(t)&&!ge(e)||Z(t)&&!Z(e)||Re(t)&&!Re(e)||lt(t)&&!lt(e)||ke(t)&&!ke(e))}function or(t,e){if(De(t)){const n={isoDate:{year:1970,month:1,day:1},time:f(t,Ee)};return{epochNs:je(f(e,Wn),n,"compatible"),formatter:Un(e,yc)}}if(Re(t)){const n=f(t,x),r=f(e,vr);if(n!==r)throw new RangeError(`cannot format PlainYearMonth with calendar ${n} in locale with calendar ${r}`);const o=te(f(t,Y),{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});return{epochNs:je(f(e,Wn),o,"compatible"),formatter:Un(e,mc)}}if(lt(t)){const n=f(t,x),r=f(e,vr);if(n!==r)throw new RangeError(`cannot format PlainMonthDay with calendar ${n} in locale with calendar ${r}`);const o=te(f(t,Y),{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});return{epochNs:je(f(e,Wn),o,"compatible"),formatter:Un(e,gc)}}if(ve(t)){const n=f(t,x),r=f(e,vr);if(n!=="iso8601"&&n!==r)throw new RangeError(`cannot format PlainDate with calendar ${n} in locale with calendar ${r}`);const o=te(f(t,Y),{deltaDays:0,hour:12,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0});return{epochNs:je(f(e,Wn),o,"compatible"),formatter:Un(e,fc)}}if(ge(t)){const n=f(t,x),r=f(e,vr);if(n!=="iso8601"&&n!==r)throw new RangeError(`cannot format PlainDateTime with calendar ${n} in locale with calendar ${r}`);const o=f(t,ye);return{epochNs:je(f(e,Wn),o,"compatible"),formatter:Un(e,pc)}}if(Z(t))throw new TypeError("Temporal.ZonedDateTime not supported in DateTimeFormat methods. Use toLocaleString() instead.");return ke(t)?{epochNs:f(t,L),formatter:Un(e,bc)}:{}}function ul(t){const e=Object.create(null);return e.years=f(t,Ue),e.months=f(t,Fe),e.weeks=f(t,nt),e.days=f(t,qe),e.hours=f(t,We),e.minutes=f(t,Ve),e.seconds=f(t,He),e.milliseconds=f(t,Ze),e.microseconds=f(t,Be),e.nanoseconds=f(t,rt),e}Wr.prototype.constructor=vt,Object.defineProperty(vt,"prototype",{value:Wr.prototype,writable:!1,enumerable:!1,configurable:!1}),vt.supportedLocalesOf=qr.supportedLocalesOf,rn(vt,"Intl.DateTimeFormat");const{format:Pf,formatToParts:Nf}=Intl.DurationFormat?.prototype??Object.create(null);function dl(t){Intl.DurationFormat.prototype.resolvedOptions.call(this);const e=ul(Et(t));return Pf.call(this,e)}Intl.DurationFormat?.prototype&&(Intl.DurationFormat.prototype.format=dl,Intl.DurationFormat.prototype.formatToParts=function(t){Intl.DurationFormat.prototype.resolvedOptions.call(this);const e=ul(Et(t));return Nf.call(this,e)});class ga{constructor(e){if(arguments.length<1)throw new TypeError("missing argument: epochNanoseconds is required");Lc(this,Ao(e))}get epochMilliseconds(){return E(this,ke),_t(f(this,L),"floor")}get epochNanoseconds(){return E(this,ke),el(h.BigInt(f(this,L)))}add(e){return E(this,ke),ks("add",this,e)}subtract(e){return E(this,ke),ks("subtract",this,e)}until(e,n=void 0){return E(this,ke),Cs("until",this,e,n)}since(e,n=void 0){return E(this,ke),Cs("since",this,e,n)}round(e){if(E(this,ke),e===void 0)throw new TypeError("options parameter is required");const n=typeof e=="string"?kn("smallestUnit",e):P(e),r=sr(n),o=Mt(n,"halfExpand"),i=it(n,"smallestUnit","time",tn);return cr(r,{hour:24,minute:1440,second:86400,millisecond:864e5,microsecond:864e8,nanosecond:864e11}[i],!0),Rt(qi(f(this,L),r,i,o))}equals(e){E(this,ke);const n=_r(e),r=f(this,L),o=f(n,L);return h.equal(h.BigInt(r),h.BigInt(o))}toString(e=void 0){E(this,ke);const n=P(e),r=Xr(n),o=Mt(n,"trunc"),i=it(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=Xe(a));const{precision:s,unit:c,increment:l}=Qr(i,r);return gs(Rt(qi(f(this,L),l,c,o)),a,s)}toJSON(){return E(this,ke),gs(this,void 0,"auto")}toLocaleString(e=void 0,n=void 0){return E(this,ke),new vt(e,n).format(this)}valueOf(){bn("Instant")}toZonedDateTimeISO(e){E(this,ke);const n=Xe(e);return Pe(f(this,L),n,"iso8601")}static fromEpochMilliseconds(e){return Rt(It(Xo(e)))}static fromEpochNanoseconds(e){return Rt(Ao(e))}static from(e){return _r(e)}static compare(e,n){const r=_r(e),o=_r(n),i=f(r,L),a=f(o,L);return h.lessThan(i,a)?-1:h.greaterThan(i,a)?1:0}}rn(ga,"Temporal.Instant");class ya{constructor(e,n,r,o="iso8601"){const i=z(e),a=z(n),s=z(r),c=et(o===void 0?"iso8601":xe(o));On(i,a,s),Ac(this,{year:i,month:a,day:s},c)}get calendarId(){return E(this,ve),f(this,x)}get era(){return Le(this,"era")}get eraYear(){return Le(this,"eraYear")}get year(){return Le(this,"year")}get month(){return Le(this,"month")}get monthCode(){return Le(this,"monthCode")}get day(){return Le(this,"day")}get dayOfWeek(){return Le(this,"dayOfWeek")}get dayOfYear(){return Le(this,"dayOfYear")}get weekOfYear(){return Le(this,"weekOfYear")?.week}get yearOfWeek(){return Le(this,"weekOfYear")?.year}get daysInWeek(){return Le(this,"daysInWeek")}get daysInMonth(){return Le(this,"daysInMonth")}get daysInYear(){return Le(this,"daysInYear")}get monthsInYear(){return Le(this,"monthsInYear")}get inLeapYear(){return Le(this,"inLeapYear")}with(e,n=void 0){if(E(this,ve),!Te(e))throw new TypeError("invalid argument");ar(e);const r=f(this,x);let o=Qe(r,f(this,Y));return o=xn(r,o,gt(r,e,["year","month","monthCode","day"],[],"partial")),Ke(gn(r,o,ee(P(n))),r)}withCalendar(e){E(this,ve);const n=no(e);return Ke(f(this,Y),n)}add(e,n=void 0){return E(this,ve),Rs("add",this,e,n)}subtract(e,n=void 0){return E(this,ve),Rs("subtract",this,e,n)}until(e,n=void 0){return E(this,ve),Ds("until",this,e,n)}since(e,n=void 0){return E(this,ve),Ds("since",this,e,n)}equals(e){E(this,ve);const n=Er(e);return Yt(f(this,Y),f(n,Y))===0&&jt(f(this,x),f(n,x))}toString(e=void 0){return E(this,ve),ys(this,Kr(P(e)))}toJSON(){return E(this,ve),ys(this)}toLocaleString(e=void 0,n=void 0){return E(this,ve),new vt(e,n).format(this)}valueOf(){bn("PlainDate")}toPlainDateTime(e=void 0){E(this,ve);const n=Rc(e);return bt(te(f(this,Y),n),f(this,x))}toZonedDateTime(e){let n,r;if(E(this,ve),Te(e)){const a=e.timeZone;a===void 0?n=Xe(e):(n=Xe(a),r=e.plainTime)}else n=Xe(e);const o=f(this,Y);let i;return r===void 0?i=on(n,o):(r=cn(r),i=je(n,te(o,f(r,Ee)),"compatible")),Pe(i,n,f(this,x))}toPlainYearMonth(){E(this,ve);const e=f(this,x);return Gn(Lr(e,Qe(e,f(this,Y)),"constrain"),e)}toPlainMonthDay(){E(this,ve);const e=f(this,x);return Zn(Oo(e,Qe(e,f(this,Y)),"constrain"),e)}static from(e,n=void 0){return Er(e,n)}static compare(e,n){const r=Er(e),o=Er(n);return Yt(f(r,Y),f(o,Y))}}function Le(t,e){E(t,ve);const n=f(t,Y);return Jr(t).isoToDate(n,{[e]:!0})[e]}rn(ya,"Temporal.PlainDate");class pa{constructor(e,n,r,o=0,i=0,a=0,s=0,c=0,l=0,u="iso8601"){const d=z(e),m=z(n),y=z(r),b=o===void 0?0:z(o),g=i===void 0?0:z(i),w=a===void 0?0:z(a),v=s===void 0?0:z(s),D=c===void 0?0:z(c),M=l===void 0?0:z(l),C=et(u===void 0?"iso8601":xe(u));ca(d,m,y,b,g,w,v,D,M),Ic(this,{isoDate:{year:d,month:m,day:y},time:{hour:b,minute:g,second:w,millisecond:v,microsecond:D,nanosecond:M}},C)}get calendarId(){return E(this,ge),f(this,x)}get year(){return Ye(this,"year")}get month(){return Ye(this,"month")}get monthCode(){return Ye(this,"monthCode")}get day(){return Ye(this,"day")}get hour(){return Fn(this,"hour")}get minute(){return Fn(this,"minute")}get second(){return Fn(this,"second")}get millisecond(){return Fn(this,"millisecond")}get microsecond(){return Fn(this,"microsecond")}get nanosecond(){return Fn(this,"nanosecond")}get era(){return Ye(this,"era")}get eraYear(){return Ye(this,"eraYear")}get dayOfWeek(){return Ye(this,"dayOfWeek")}get dayOfYear(){return Ye(this,"dayOfYear")}get weekOfYear(){return Ye(this,"weekOfYear")?.week}get yearOfWeek(){return Ye(this,"weekOfYear")?.year}get daysInWeek(){return Ye(this,"daysInWeek")}get daysInYear(){return Ye(this,"daysInYear")}get daysInMonth(){return Ye(this,"daysInMonth")}get monthsInYear(){return Ye(this,"monthsInYear")}get inLeapYear(){return Ye(this,"inLeapYear")}with(e,n=void 0){if(E(this,ge),!Te(e))throw new TypeError("invalid argument");ar(e);const r=f(this,x),o=f(this,ye);let i={...Qe(r,o.isoDate),...o.time};return i=xn(r,i,gt(r,e,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond"],"partial")),bt(eo(r,i,ee(P(n))),r)}withPlainTime(e=void 0){E(this,ge);const n=Rc(e);return bt(te(f(this,ye).isoDate,n),f(this,x))}withCalendar(e){E(this,ge);const n=no(e);return bt(f(this,ye),n)}add(e,n=void 0){return E(this,ge),As("add",this,e,n)}subtract(e,n=void 0){return E(this,ge),As("subtract",this,e,n)}until(e,n=void 0){return E(this,ge),Ms("until",this,e,n)}since(e,n=void 0){return E(this,ge),Ms("since",this,e,n)}round(e){if(E(this,ge),e===void 0)throw new TypeError("options parameter is required");const n=typeof e=="string"?kn("smallestUnit",e):P(e),r=sr(n),o=Mt(n,"halfExpand"),i=it(n,"smallestUnit","time",tn,["day"]),a={day:1,hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[i];cr(r,a,a===1);const s=f(this,ye);return bt(r===1&&i==="nanosecond"?s:Wi(s,r,i,o),f(this,x))}equals(e){E(this,ge);const n=Tr(e);return rr(f(this,ye),f(n,ye))===0&&jt(f(this,x),f(n,x))}toString(e=void 0){E(this,ge);const n=P(e),r=Kr(n),o=Xr(n),i=Mt(n,"trunc"),a=it(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}=Qr(a,o),u=Wi(f(this,ye),l,c,i);return $n(u),zr(u,f(this,x),s,r)}toJSON(){return E(this,ge),zr(f(this,ye),f(this,x),"auto")}toLocaleString(e=void 0,n=void 0){return E(this,ge),new vt(e,n).format(this)}valueOf(){bn("PlainDateTime")}toZonedDateTime(e,n=void 0){E(this,ge);const r=Xe(e),o=Rr(P(n));return Pe(je(r,f(this,ye),o),r,f(this,x))}toPlainDate(){return E(this,ge),Ke(f(this,ye).isoDate,f(this,x))}toPlainTime(){return E(this,ge),Bt(f(this,ye).time)}static from(e,n=void 0){return Tr(e,n)}static compare(e,n){const r=Tr(e),o=Tr(n);return rr(f(r,ye),f(o,ye))}}function Ye(t,e){E(t,ge);const n=f(t,ye).isoDate;return Jr(t).isoToDate(n,{[e]:!0})[e]}function Fn(t,e){return E(t,ge),f(t,ye).time[e]}rn(pa,"Temporal.PlainDateTime");class ir{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:Dt(e),m=n===void 0?0:Dt(n),y=r===void 0?0:Dt(r),b=o===void 0?0:Dt(o),g=i===void 0?0:Dt(i),w=a===void 0?0:Dt(a),v=s===void 0?0:Dt(s),D=c===void 0?0:Dt(c),M=l===void 0?0:Dt(l),C=u===void 0?0:Dt(u);oi(d,m,y,b,g,w,v,D,M,C),nn(this),V(this,Ue,d),V(this,Fe,m),V(this,nt,y),V(this,qe,b),V(this,We,g),V(this,Ve,w),V(this,He,v),V(this,Ze,D),V(this,Be,M),V(this,rt,C)}get years(){return E(this,we),f(this,Ue)}get months(){return E(this,we),f(this,Fe)}get weeks(){return E(this,we),f(this,nt)}get days(){return E(this,we),f(this,qe)}get hours(){return E(this,we),f(this,We)}get minutes(){return E(this,we),f(this,Ve)}get seconds(){return E(this,we),f(this,He)}get milliseconds(){return E(this,we),f(this,Ze)}get microseconds(){return E(this,we),f(this,Be)}get nanoseconds(){return E(this,we),f(this,rt)}get sign(){return E(this,we),ko(this)}get blank(){return E(this,we),ko(this)===0}with(e){E(this,we);const n=kc(e),{years:r=f(this,Ue),months:o=f(this,Fe),weeks:i=f(this,nt),days:a=f(this,qe),hours:s=f(this,We),minutes:c=f(this,Ve),seconds:l=f(this,He),milliseconds:u=f(this,Ze),microseconds:d=f(this,Be),nanoseconds:m=f(this,rt)}=n;return new ir(r,o,i,a,s,c,l,u,d,m)}negated(){return E(this,we),st(this)}abs(){return E(this,we),new ir(Math.abs(f(this,Ue)),Math.abs(f(this,Fe)),Math.abs(f(this,nt)),Math.abs(f(this,qe)),Math.abs(f(this,We)),Math.abs(f(this,Ve)),Math.abs(f(this,He)),Math.abs(f(this,Ze)),Math.abs(f(this,Be)),Math.abs(f(this,rt)))}add(e){return E(this,we),Ss("add",this,e)}subtract(e){return E(this,we),Ss("subtract",this,e)}round(e){if(E(this,we),e===void 0)throw new TypeError("options parameter is required");const n=Vt(this),r=typeof e=="string"?kn("smallestUnit",e):P(e);let o=it(r,"largestUnit","datetime",void 0,["auto"]),{plainRelativeTo:i,zonedRelativeTo:a}=Ei(r);const s=sr(r),c=Mt(r,"halfExpand");let l=it(r,"smallestUnit","datetime",void 0),u=!0;l||(u=!1,l="nanosecond");const d=Kt(n,l);let m=!0;if(o||(m=!1,o=d),o==="auto"&&(o=d),!u&&!m)throw new RangeError("at least one of smallestUnit or largestUnit is required");if(Kt(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&&cr(s,y,!1),s>1&&Ht(l)==="date"&&o!==l)throw new RangeError("For calendar units with roundingIncrement > 1, use largestUnit = smallestUnit");if(a){let g=Vn(this);const w=f(a,se),v=f(a,x),D=f(a,L);return g=Jc(D,Mr(D,w,v,g),w,v,o,s,l,c),Ht(o)==="date"&&(o="hour"),wt(g,o)}if(i){let g=At(this);const w=nr({hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0},g.time),v=f(i,Y),D=f(i,x),M=ft(D,v,Ne(g.date,w.deltaDays),"constrain");return g=Qc(te(v,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),te(M,w),D,o,s,l,c),wt(g,o)}if(St(n))throw new RangeError(`a starting point is required for ${n}s balancing`);if(St(o))throw new RangeError(`a starting point is required for ${o}s balancing`);let b=At(this);if(l==="day"){const{quotient:g,remainder:w}=b.time.divmod(Do);let v=b.date.days+g+Ar(w,"day");v=ln(v,s,c),b=Xt({years:0,months:0,weeks:0,days:v},B.ZERO)}else b=Xt({years:0,months:0,weeks:0,days:0},Ro(b.time,s,l,c));return wt(b,o)}total(e){if(E(this,we),e===void 0)throw new TypeError("options argument is required");const n=typeof e=="string"?kn("unit",e):P(e);let{plainRelativeTo:r,zonedRelativeTo:o}=Ei(n);const i=it(n,"unit","datetime",tn);if(o){const s=Vn(this),c=f(o,se),l=f(o,x),u=f(o,L);return(function(d,m,y,b,g){return Ht(g)==="time"?Ar(B.fromEpochNsDiff(m,d),g):_s(Kc(d,m,y,b,g),m,Tt(y,d),y,b,g)})(u,Mr(u,c,l,s),c,l,i)}if(r){const s=At(this);let c=nr({hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0},s.time);const l=f(r,Y),u=f(r,x),d=ft(u,l,Ne(s.date,c.deltaDays),"constrain");return(function(m,y,b,g){if(rr(m,y)==0)return 0;$n(m),$n(y);const w=Gc(m,y,b,g);return g==="nanosecond"?h.toNumber(w.time.totalNs):_s(w,Ae(y),m,null,b,g)})(te(l,{deltaDays:0,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0}),te(d,c),u,i)}const a=Vt(this);if(St(a))throw new RangeError(`a starting point is required for ${a}s total`);if(St(i))throw new RangeError(`a starting point is required for ${i}s total`);return Ar(At(this).time,i)}toString(e=void 0){E(this,we);const n=P(e),r=Xr(n),o=Mt(n,"trunc"),i=it(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}=Qr(i,r);if(s==="nanosecond"&&c===1)return yo(this,a);const l=Vt(this);let u=Vn(this);const d=Ro(u.time,c,s,o);return u=Xt(u.date,d),yo(wt(u,Kt(l,"second")),a)}toJSON(){return E(this,we),yo(this,"auto")}toLocaleString(e=void 0,n=void 0){if(E(this,we),typeof Intl.DurationFormat=="function"){const r=new Intl.DurationFormat(e,n);return dl.call(r,this)}return console.warn("Temporal.Duration.prototype.toLocaleString() requires Intl.DurationFormat."),yo(this,"auto")}valueOf(){bn("Duration")}static from(e){return Et(e)}static compare(e,n,r=void 0){const o=Et(e),i=Et(n),a=P(r),{plainRelativeTo:s,zonedRelativeTo:c}=Ei(a);if(f(o,Ue)===f(i,Ue)&&f(o,Fe)===f(i,Fe)&&f(o,nt)===f(i,nt)&&f(o,qe)===f(i,qe)&&f(o,We)===f(i,We)&&f(o,Ve)===f(i,Ve)&&f(o,He)===f(i,He)&&f(o,Ze)===f(i,Ze)&&f(o,Be)===f(i,Be)&&f(o,rt)===f(i,rt))return 0;const l=Vt(o),u=Vt(i),d=Vn(o),m=Vn(i);if(c&&(Ht(l)==="date"||Ht(u)==="date")){const v=f(c,se),D=f(c,x),M=f(c,L),C=Mr(M,v,D,d),T=Mr(M,v,D,m);return ot(h.toNumber(h.subtract(C,T)))}let y=d.date.days,b=m.date.days;if(St(l)||St(u)){if(!s)throw new RangeError("A starting point is required for years, months, or weeks comparison");y=Ts(d.date,s),b=Ts(m.date,s)}const g=d.time.add24HourDays(y),w=m.time.add24HourDays(b);return g.cmp(w)}}rn(ir,"Temporal.Duration");class ba{constructor(e,n,r="iso8601",o=1972){const i=z(e),a=z(n),s=et(r===void 0?"iso8601":xe(r)),c=z(o);On(c,i,a),Pc(this,{year:c,month:i,day:a},s)}get monthCode(){return Ls(this,"monthCode")}get day(){return Ls(this,"day")}get calendarId(){return E(this,lt),f(this,x)}with(e,n=void 0){if(E(this,lt),!Te(e))throw new TypeError("invalid argument");ar(e);const r=f(this,x);let o=Qe(r,f(this,Y),"month-day");return o=xn(r,o,gt(r,e,["year","month","monthCode","day"],[],"partial")),Zn(Oo(r,o,ee(P(n))),r)}equals(e){E(this,lt);const n=fs(e);return Yt(f(this,Y),f(n,Y))===0&&jt(f(this,x),f(n,x))}toString(e=void 0){return E(this,lt),bs(this,Kr(P(e)))}toJSON(){return E(this,lt),bs(this)}toLocaleString(e=void 0,n=void 0){return E(this,lt),new vt(e,n).format(this)}valueOf(){bn("PlainMonthDay")}toPlainDate(e){if(E(this,lt),!Te(e))throw new TypeError("argument should be an object");const n=f(this,x);return Ke(gn(n,xn(n,Qe(n,f(this,Y),"month-day"),gt(n,e,["year"],[],[])),"constrain"),n)}static from(e,n=void 0){return fs(e,n)}}function Ls(t,e){E(t,lt);const n=f(t,Y);return Jr(t).isoToDate(n,{[e]:!0})[e]}function _i(t){return Tt(t,Zi())}rn(ba,"Temporal.PlainMonthDay");const hl={instant:()=>Rt(Zi()),plainDateTimeISO:(t=gr())=>bt(_i(Xe(t)),"iso8601"),plainDateISO:(t=gr())=>Ke(_i(Xe(t)).isoDate,"iso8601"),plainTimeISO:(t=gr())=>Bt(_i(Xe(t)).time),timeZoneId:()=>gr(),zonedDateTimeISO:(t=gr())=>{const e=Xe(t);return Pe(Zi(),e,"iso8601")},[Symbol.toStringTag]:"Temporal.Now"};Object.defineProperty(hl,Symbol.toStringTag,{value:"Temporal.Now",writable:!1,enumerable:!1,configurable:!0});class co{constructor(e=0,n=0,r=0,o=0,i=0,a=0){const s=e===void 0?0:z(e),c=n===void 0?0:z(n),l=r===void 0?0:z(r),u=o===void 0?0:z(o),d=i===void 0?0:z(i),m=a===void 0?0:z(a);ri(s,c,l,u,d,m),Nc(this,{hour:s,minute:c,second:l,millisecond:u,microsecond:d,nanosecond:m})}get hour(){return E(this,De),f(this,Ee).hour}get minute(){return E(this,De),f(this,Ee).minute}get second(){return E(this,De),f(this,Ee).second}get millisecond(){return E(this,De),f(this,Ee).millisecond}get microsecond(){return E(this,De),f(this,Ee).microsecond}get nanosecond(){return E(this,De),f(this,Ee).nanosecond}with(e,n=void 0){if(E(this,De),!Te(e))throw new TypeError("invalid argument");ar(e);const r=ji(e,"partial"),o=ji(this);let{hour:i,minute:a,second:s,millisecond:c,microsecond:l,nanosecond:u}=Object.assign(o,r);const d=ee(P(n));return{hour:i,minute:a,second:s,millisecond:c,microsecond:l,nanosecond:u}=ei(i,a,s,c,l,u,d),new co(i,a,s,c,l,u)}add(e){return E(this,De),Is("add",this,e)}subtract(e){return E(this,De),Is("subtract",this,e)}until(e,n=void 0){return E(this,De),xs("until",this,e,n)}since(e,n=void 0){return E(this,De),xs("since",this,e,n)}round(e){if(E(this,De),e===void 0)throw new TypeError("options parameter is required");const n=typeof e=="string"?kn("smallestUnit",e):P(e),r=sr(n),o=Mt(n,"halfExpand"),i=it(n,"smallestUnit","time",tn);return cr(r,{hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[i],!1),Bt(Vi(f(this,Ee),r,i,o))}equals(e){E(this,De);const n=cn(e);return Hi(f(this,Ee),f(n,Ee))===0}toString(e=void 0){E(this,De);const n=P(e),r=Xr(n),o=Mt(n,"trunc"),i=it(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}=Qr(i,r);return ps(Vi(f(this,Ee),c,s,o),a)}toJSON(){return E(this,De),ps(f(this,Ee),"auto")}toLocaleString(e=void 0,n=void 0){return E(this,De),new vt(e,n).format(this)}valueOf(){bn("PlainTime")}static from(e,n=void 0){return cn(e,n)}static compare(e,n){const r=cn(e),o=cn(n);return Hi(f(r,Ee),f(o,Ee))}}rn(co,"Temporal.PlainTime");class wa{constructor(e,n,r="iso8601",o=1){const i=z(e),a=z(n),s=et(r===void 0?"iso8601":xe(r)),c=z(o);On(i,a,c),jc(this,{year:i,month:a,day:c},s)}get year(){return Ft(this,"year")}get month(){return Ft(this,"month")}get monthCode(){return Ft(this,"monthCode")}get calendarId(){return E(this,Re),f(this,x)}get era(){return Ft(this,"era")}get eraYear(){return Ft(this,"eraYear")}get daysInMonth(){return Ft(this,"daysInMonth")}get daysInYear(){return Ft(this,"daysInYear")}get monthsInYear(){return Ft(this,"monthsInYear")}get inLeapYear(){return Ft(this,"inLeapYear")}with(e,n=void 0){if(E(this,Re),!Te(e))throw new TypeError("invalid argument");ar(e);const r=f(this,x);let o=Qe(r,f(this,Y),"year-month");return o=xn(r,o,gt(r,e,["year","month","monthCode"],[],"partial")),Gn(Lr(r,o,ee(P(n))),r)}add(e,n=void 0){return E(this,Re),Ps("add",this,e,n)}subtract(e,n=void 0){return E(this,Re),Ps("subtract",this,e,n)}until(e,n=void 0){return E(this,Re),Os("until",this,e,n)}since(e,n=void 0){return E(this,Re),Os("since",this,e,n)}equals(e){E(this,Re);const n=Cr(e);return Yt(f(this,Y),f(n,Y))===0&&jt(f(this,x),f(n,x))}toString(e=void 0){return E(this,Re),ws(this,Kr(P(e)))}toJSON(){return E(this,Re),ws(this)}toLocaleString(e=void 0,n=void 0){return E(this,Re),new vt(e,n).format(this)}valueOf(){bn("PlainYearMonth")}toPlainDate(e){if(E(this,Re),!Te(e))throw new TypeError("argument should be an object");const n=f(this,x);return Ke(gn(n,xn(n,Qe(n,f(this,Y),"year-month"),gt(n,e,["day"],[],[])),"constrain"),n)}static from(e,n=void 0){return Cr(e,n)}static compare(e,n){const r=Cr(e),o=Cr(n);return Yt(f(r,Y),f(o,Y))}}function Ft(t,e){E(t,Re);const n=f(t,Y);return Jr(t).isoToDate(n,{[e]:!0})[e]}rn(wa,"Temporal.PlainYearMonth");const jf=vt.prototype.resolvedOptions;class va{constructor(e,n,r="iso8601"){if(arguments.length<1)throw new TypeError("missing argument: epochNanoseconds is required");const o=Ao(e);let i=xe(n);const{tzName:a,offsetMinutes:s}=un(i);if(s===void 0){const c=$o(a);if(!c)throw new RangeError(`unknown time zone ${a}`);i=c.identifier}else i=ia(s);Yc(this,o,i,et(r===void 0?"iso8601":xe(r)))}get calendarId(){return E(this,Z),f(this,x)}get timeZoneId(){return E(this,Z),f(this,se)}get year(){return ze(this,"year")}get month(){return ze(this,"month")}get monthCode(){return ze(this,"monthCode")}get day(){return ze(this,"day")}get hour(){return qn(this,"hour")}get minute(){return qn(this,"minute")}get second(){return qn(this,"second")}get millisecond(){return qn(this,"millisecond")}get microsecond(){return qn(this,"microsecond")}get nanosecond(){return qn(this,"nanosecond")}get era(){return ze(this,"era")}get eraYear(){return ze(this,"eraYear")}get epochMilliseconds(){return E(this,Z),_t(f(this,L),"floor")}get epochNanoseconds(){return E(this,Z),el(f(this,L))}get dayOfWeek(){return ze(this,"dayOfWeek")}get dayOfYear(){return ze(this,"dayOfYear")}get weekOfYear(){return ze(this,"weekOfYear")?.week}get yearOfWeek(){return ze(this,"weekOfYear")?.year}get hoursInDay(){E(this,Z);const e=f(this,se),n=$t(this).isoDate,r=at(n.year,n.month,n.day+1),o=on(e,n),i=on(e,r);return Ar(B.fromEpochNsDiff(i,o),"hour")}get daysInWeek(){return ze(this,"daysInWeek")}get daysInMonth(){return ze(this,"daysInMonth")}get daysInYear(){return ze(this,"daysInYear")}get monthsInYear(){return ze(this,"monthsInYear")}get inLeapYear(){return ze(this,"inLeapYear")}get offset(){return E(this,Z),Li(Gt(f(this,se),f(this,L)))}get offsetNanoseconds(){return E(this,Z),Gt(f(this,se),f(this,L))}with(e,n=void 0){if(E(this,Z),!Te(e))throw new TypeError("invalid zoned-date-time-like");ar(e);const r=f(this,x),o=f(this,se),i=Gt(o,f(this,L)),a=$t(this);let s={...Qe(r,a.isoDate),...a.time,offset:Li(i)};s=xn(r,s,gt(r,e,["year","month","monthCode","day"],["hour","minute","second","millisecond","microsecond","nanosecond","offset"],"partial"));const c=P(n),l=Rr(c),u=bo(c,"prefer"),d=eo(r,s,ee(c)),m=lr(s.offset);return Pe(xo(d.isoDate,d.time,"option",m,o,l,u,!1),o,r)}withPlainTime(e=void 0){E(this,Z);const n=f(this,se),r=f(this,x),o=$t(this).isoDate;let i;return i=e===void 0?on(n,o):je(n,te(o,f(cn(e),Ee)),"compatible"),Pe(i,n,r)}withTimeZone(e){E(this,Z);const n=Xe(e);return Pe(f(this,L),n,f(this,x))}withCalendar(e){E(this,Z);const n=no(e);return Pe(f(this,L),f(this,se),n)}add(e,n=void 0){return E(this,Z),Ns("add",this,e,n)}subtract(e,n=void 0){return E(this,Z),Ns("subtract",this,e,n)}until(e,n=void 0){return E(this,Z),$s("until",this,e,n)}since(e,n=void 0){return E(this,Z),$s("since",this,e,n)}round(e){if(E(this,Z),e===void 0)throw new TypeError("options parameter is required");const n=typeof e=="string"?kn("smallestUnit",e):P(e),r=sr(n),o=Mt(n,"halfExpand"),i=it(n,"smallestUnit","time",tn,["day"]),a={day:1,hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[i];if(cr(r,a,a===1),i==="nanosecond"&&r===1)return Pe(f(this,L),f(this,se),f(this,x));const s=f(this,se),c=f(this,L),l=$t(this);let u;if(i==="day"){const d=l.isoDate,m=at(d.year,d.month,d.day+1),y=on(s,d),b=on(s,m),g=h.subtract(b,y);u=B.fromEpochNsDiff(c,y).round(g,o).addToEpochNs(y)}else{const d=Wi(l,r,i,o),m=Gt(s,c);u=xo(d.isoDate,d.time,"option",m,s,"compatible","prefer",!1)}return Pe(u,s,f(this,x))}equals(e){E(this,Z);const n=Dr(e),r=f(this,L),o=f(n,L);return!!h.equal(h.BigInt(r),h.BigInt(o))&&!!zc(f(this,se),f(n,se))&&jt(f(this,x),f(n,x))}toString(e=void 0){E(this,Z);const n=P(e),r=Kr(n),o=Xr(n),i=(function(m){return Qt(m,"offset",["auto","never"],"auto")})(n),a=Mt(n,"trunc"),s=it(n,"smallestUnit","time",void 0);if(s==="hour")throw new RangeError('smallestUnit must be a time unit other than "hour"');const c=(function(m){return Qt(m,"timeZoneName",["auto","never","critical"],"auto")})(n),{precision:l,unit:u,increment:d}=Qr(s,o);return vs(this,l,r,c,i,{unit:u,increment:d,roundingMode:a})}toLocaleString(e=void 0,n=void 0){E(this,Z);const r=P(n),o=Object.create(null);if((function(c,l,u,d){if(l==null)return;const m=Reflect.ownKeys(l);for(let y=0;y<m.length;y++){const b=m[y];if(!u.some((g=>Object.is(g,b)))&&Object.prototype.propertyIsEnumerable.call(l,b)){const g=l[b];c[b]=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=f(this,se),Es(o.timeZone))throw new RangeError("toLocaleString does not currently support offset time zones");const i=new vt(e,o),a=jf.call(i).calendar,s=f(this,x);if(s!=="iso8601"&&a!=="iso8601"&&!jt(a,s))throw new RangeError(`cannot format ZonedDateTime with calendar ${s} in locale with calendar ${a}`);return i.format(Rt(f(this,L)))}toJSON(){return E(this,Z),vs(this,"auto")}valueOf(){bn("ZonedDateTime")}startOfDay(){E(this,Z);const e=f(this,se);return Pe(on(e,$t(this).isoDate),e,f(this,x))}getTimeZoneTransition(e){E(this,Z);const n=f(this,se);if(e===void 0)throw new TypeError("options parameter is required");const r=Qt(typeof e=="string"?kn("direction",e):P(e),"direction",["next","previous"],tn);if(r===void 0)throw new TypeError("direction option is required");if(Es(n)||n==="UTC")return null;const o=f(this,L),i=r==="next"?sa(n,o):zi(n,o);return i===null?null:Pe(i,n,f(this,x))}toInstant(){return E(this,Z),Rt(f(this,L))}toPlainDate(){return E(this,Z),Ke($t(this).isoDate,f(this,x))}toPlainTime(){return E(this,Z),Bt($t(this).time)}toPlainDateTime(){return E(this,Z),bt($t(this),f(this,x))}static from(e,n=void 0){return Dr(e,n)}static compare(e,n){const r=Dr(e),o=Dr(n),i=f(r,L),a=f(o,L);return h.lessThan(h.BigInt(i),h.BigInt(a))?-1:h.greaterThan(h.BigInt(i),h.BigInt(a))?1:0}}function $t(t){return Tt(f(t,se),f(t,L))}function ze(t,e){E(t,Z);const n=$t(t).isoDate;return Jr(t).isoToDate(n,{[e]:!0})[e]}function qn(t,e){return E(t,Z),$t(t).time[e]}rn(va,"Temporal.ZonedDateTime");var Se=Object.freeze({__proto__:null,Duration:ir,Instant:ga,Now:hl,PlainDate:ya,PlainDateTime:pa,PlainMonthDay:ba,PlainTime:co,PlainYearMonth:wa,ZonedDateTime:va});const Lf=[ga,ya,pa,ir,ba,co,wa,va];for(const t of Lf){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 lo=(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))(lo||{});const ci={month:"2-digit",day:"2-digit",year:"numeric"},fl={...ci,hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0},Yf=t=>t?(typeof t=="string"?Se.Instant.from(t):Se.Instant.fromEpochMilliseconds(t.getTime())).toZonedDateTimeISO(Se.Now.timeZoneId()).toLocaleString(lo.SYSTEM_LOCALE,fl):"",zf=t=>t?(typeof t=="string"?Se.Instant.from(t):Se.Instant.fromEpochMilliseconds(t.getTime())).toZonedDateTimeISO(Se.Now.timeZoneId()).toLocaleString(lo.SYSTEM_LOCALE,ci):"",Uf=t=>t?Se.PlainDate.from(t).toLocaleString(lo.SYSTEM_LOCALE,ci):"",ml=t=>t?(typeof t=="string"?Se.Instant.from(t):Se.Instant.fromEpochMilliseconds(t.getTime())).toZonedDateTimeISO(Se.Now.timeZoneId()).toPlainDate().toString():"",Ff=t=>t?ml(t):"",qf=t=>{if(!t)return null;const e=Se.PlainDate.from(t);return new Date(e.year,e.month-1,e.day)},Wf=t=>{if(!t)return;const e=Se.Instant.fromEpochMilliseconds(Number(t));return new Date(e.toZonedDateTimeISO(Se.Now.timeZoneId()).toPlainDate().toString())},Vf=(t,e)=>{if(!t||!e)return!1;const n=typeof t=="string"?Se.Instant.from(t):Se.Instant.fromEpochMilliseconds(t.getTime()),r=typeof e=="string"?Se.Instant.from(e):Se.Instant.fromEpochMilliseconds(e.getTime());return Se.Instant.compare(n,r)>0};function Hf(t){if(typeof t=="string")return Number.parseInt(t,10)}const Zf=()=>({isLoading:!1,isSuccess:!1,isError:!1,isComplete:!1,message:""}),Bf=t=>({...t,isLoading:!0,isSuccess:!1,isError:!1,message:""}),Gf=(t,e)=>({...t,isLoading:!1,isSuccess:!0,isError:!1,isComplete:!0,message:e||""}),Kf=(t,e)=>({...t,isLoading:!1,isSuccess:!1,isError:!0,isComplete:!0,message:e||""});function Xf(t){return t==null?!0:typeof t=="string"?t.trim()==="":!1}const Qf=t=>{try{return decodeURIComponent(t)!==t}catch{return!1}};exports.AppSnackBar=bh;exports.CancelButton=nh;exports.CenteredCircularProgress=vh;exports.ConfirmDialog=Eh;exports.DeleteButton=oh;exports.DismissibleAlert=Th;exports.EditIconButton=ah;exports.ExcelButton=sh;exports.GoBackButton=lh;exports.HistoryButton=dh;exports.LoadingSuccessButton=mh;exports.ManageButton=yh;exports.NextLink=_h;exports.OpenInNewIconLink=Dh;exports.QuerySnackBar=wh;exports.ReactIf=Mh;exports.SuccessButton=ph;exports.SystemConfig=lo;exports.TEMPORAL_DATE_FORMAT=ci;exports.TEMPORAL_DATE_TIME_FORMAT=fl;exports.TabPanel=Oh;exports.TablePaginationActions=xh;exports.a11yProps=$h;exports.formatIsoToAppDate=Uf;exports.formatOldDateToIsoDate=Ff;exports.formatOldDateToIsoString=ml;exports.formatToAppDate=zf;exports.formatToAppDateTime=Yf;exports.formatUnixTimeToOldDate=Wf;exports.getCssVariable=kh;exports.initializeState=Zf;exports.isAfter=Vf;exports.isBlankOrEmpty=Xf;exports.isEncoded=Qf;exports.markError=Kf;exports.markLoading=Bf;exports.markSuccess=Gf;exports.parseBoolean=Sh;exports.parseIsoDate=qf;exports.parseNumber=Hf;
|
package/index.mjs
CHANGED
|
@@ -3719,7 +3719,16 @@ const ph = gt(/* @__PURE__ */ k("path", {
|
|
|
3719
3719
|
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"
|
|
3720
3720
|
}), "Edit");
|
|
3721
3721
|
function Uf(t) {
|
|
3722
|
-
return /* @__PURE__ */ k(Vs, { title: t.tooltipTitle, children: /* @__PURE__ */ k(
|
|
3722
|
+
return /* @__PURE__ */ k(Vs, { title: t.tooltipTitle, children: /* @__PURE__ */ k(
|
|
3723
|
+
Ht,
|
|
3724
|
+
{
|
|
3725
|
+
sx: { padding: "0.25rem" },
|
|
3726
|
+
color: t.color ?? "primary",
|
|
3727
|
+
onClick: () => t.onClick(!0),
|
|
3728
|
+
"aria-label": t.ariaLabel ?? t.tooltipTitle,
|
|
3729
|
+
children: /* @__PURE__ */ k(ph, {})
|
|
3730
|
+
}
|
|
3731
|
+
) });
|
|
3723
3732
|
}
|
|
3724
3733
|
function Ff(t) {
|
|
3725
3734
|
return /* @__PURE__ */ k(
|
|
@@ -3,10 +3,10 @@ interface DeleteButtonProps {
|
|
|
3
3
|
loading: boolean;
|
|
4
4
|
label?: string;
|
|
5
5
|
loadingLabel?: string;
|
|
6
|
-
loadingPosition?:
|
|
7
|
-
type?:
|
|
8
|
-
variant?:
|
|
9
|
-
color?:
|
|
6
|
+
loadingPosition?: 'start' | 'end' | 'center';
|
|
7
|
+
type?: 'button' | 'submit' | 'reset' | undefined;
|
|
8
|
+
variant?: 'text' | 'outlined' | 'contained';
|
|
9
|
+
color?: 'inherit' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning';
|
|
10
10
|
name?: string;
|
|
11
11
|
dataCy?: string;
|
|
12
12
|
startIcon?: React.ReactNode;
|
package/package.json
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
2
|
+
"name": "@js-smart/react-kit",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "5.20.0",
|
|
5
|
+
"main": "./index.js",
|
|
6
|
+
"types": "./index.d.ts",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public"
|
|
9
|
+
},
|
|
10
|
+
"peerDependencies": {
|
|
11
|
+
"@emotion/react": "^11.14.0",
|
|
12
|
+
"@emotion/styled": "^11.14.1",
|
|
13
|
+
"@mui/icons-material": "^7.3.1",
|
|
14
|
+
"@mui/material": "^7.3.1",
|
|
15
|
+
"date-fns": "^4.1.0",
|
|
16
|
+
"react": "^18.3.1 || ^19.0.0",
|
|
17
|
+
"react-dom": "^18.3.1 || ^19.0.0",
|
|
18
|
+
"react-router-dom": "^7.8.0"
|
|
19
|
+
},
|
|
20
|
+
"exports": {
|
|
21
|
+
".": {
|
|
22
|
+
"types": "./index.d.ts",
|
|
23
|
+
"import": "./index.mjs",
|
|
24
|
+
"require": "./index.js"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "https://github.com/js-smart/react-kit"
|
|
30
|
+
},
|
|
31
|
+
"author": {
|
|
32
|
+
"name": "Pavan Kumar Jadda",
|
|
33
|
+
"email": "contact@pavankjadda.dev"
|
|
34
|
+
},
|
|
35
|
+
"keywords": [
|
|
36
|
+
"react",
|
|
37
|
+
"react-kit",
|
|
38
|
+
"react-components",
|
|
39
|
+
"react-utils",
|
|
40
|
+
"typescript"
|
|
41
|
+
],
|
|
42
|
+
"license": "MIT",
|
|
43
|
+
"bugs": {
|
|
44
|
+
"url": "https://github.com/js-smart/react-kit/issues"
|
|
45
|
+
}
|
|
46
46
|
}
|