Socket
Socket
Sign inDemoInstall

temporal-polyfill

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

temporal-polyfill - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

chunks/fEYw9zwg.esm.js

2

global.d.ts

@@ -1,1 +0,1 @@

export * from 'temporal-spec/global'
export * from 'temporal-spec/global';

@@ -1,9 +0,11 @@

import { c as t, T as a, D as e, t as s } from "./chunk-33169ef4.esm.js";
import { Temporal as jt, DateTimeFormat as kt, toTemporalInstant as qt } from "./impl.esm.js";
Object.defineProperties(globalThis, t({
Temporal: a
})), Object.defineProperties(Intl, t({
DateTimeFormat: e
})), Object.defineProperties(Date.prototype, t({
toTemporalInstant: s
import { createPropDescriptors as xt } from "./chunks/fEYw9zwg.esm.js";
Object.defineProperties(globalThis, xt({
Temporal: jt
})), Object.defineProperties(Intl, xt({
DateTimeFormat: kt
})), Object.defineProperties(Date.prototype, xt({
toTemporalInstant: qt
}));

@@ -1,1 +0,1 @@

!function(){"use strict";function n(n,...t){return(...r)=>n(...t,...r)}function t(n){return null!==n&&Oi.test(typeof n)}function r(n,t,r){const e={};for(const o in t)e[o]=n(t[o],o,r);return e}function e(n,t){const r={};let e=n.length;for(const o of t)r[n[--e]]=o;return r}function o(n,t,r){const e={};for(let o=0;o<t.length;o++){const i=t[o];e[i]=n(i,o,r)}return e}function i(n,t){const r={};for(const e of n)r[e]=t[e];return r}function u(n){n={...n};const t=Object.keys(n);for(const r of t)void 0===n[r]&&delete n[r];return n}function c(n,t,r){for(const e of n)if(t[e]!==r[e])return 0;return 1}function s(n,t=Map){const r=new t;return(t,...e)=>{if(r.has(t))return r.get(t);{const o=n(t,...e);return r.set(t,o),o}}}function a(n){return f({name:n},1)}function f(n,t){return r((n=>({value:n,configurable:1,writable:!t})),n)}function h(n){return r((n=>({get:n,configurable:1})),n)}function l(n){return{[Symbol.toStringTag]:{value:n,configurable:1}}}function d(n){return n}function w(n,t){return String(t).padStart(n,"0")}function m(n,t){return Math.sign(n-t)}function g(n,t,r){return Math.min(Math.max(n,t),r)}function y(n,t,r,e,o){const i=g(t,r,e);if(o&&t!==i)throw new RangeError(_o(n,t,r,e));return i}function v(n,t,r,e,o){return y(t,p(n,t),r,e,o)}function p(n,t){const r=n[t];if(void 0===r)throw new TypeError(Go(t));return r}function M(n,t){return[Math.floor(n/t),b(n,t)]}function b(n,t){return(n%t+t)%t}function E(n,t){return[O(n,t),I(n,t)]}function O(n,t){return Math.trunc(n/t)||0}function I(n,t){return n%t||0}function T(n){return.5===Math.abs(n%1)}function R(n,t,r){let e=0,o=0;for(let i=0;i<=t;i++){const t=n[r[i]],u=ki[i],c=$i/u,[s,a]=E(t,c);e+=a*u,o+=s}const[i,u]=E(e,$i);return[o+i,u]}function D(n,t,r){const e={};for(let o=t;o>=0;o--){const t=ki[o];e[r[o]]=O(n,t),n=I(n,t)}return e}function S(n){if(!t(n))throw new TypeError(Ao);return n}function P(n,t,r=n){if(typeof t!==n)throw new TypeError(zo(r,t));return t}function N(n){return Y(ou(n))}function j(n){return F(N(n))}function Y(n,t="number"){if(!Number.isInteger(n))throw new RangeError(xo(t,n));return n||0}function F(n,t="number"){if(n<=0)throw new RangeError(qo(t,n));return n}function Z(n){if(null==n)throw new TypeError("Cannot be null or undefined");return n}function C(n,t){if(null==t)throw new RangeError(Go(n));return t}function $(n){if("symbol"==typeof n)throw new TypeError(Ho);return String(n)}function k(n,r){return t(n)?String(n):ru(n,r)}function L(n){if("string"==typeof n)return BigInt(n);if("bigint"!=typeof n)throw new TypeError(Jo(n));return n}function W(n,t="number"){if("bigint"==typeof n)throw new TypeError(Uo(t));if(n=Number(n),!Number.isFinite(n))throw new RangeError(Bo(t,n));return n}function x(n,t){return Math.trunc(W(n,t))||0}function q(n,t){return Y(W(n,t),t)}function B(n,t){return F(x(n,t),t)}function U(n){return void 0===n?0:Ou(S(n))}function J(n,t=0){n=tn(n);const r=Iu(n),e=Tu(n,t);return[Ou(n),e,r]}function H(n){return Iu(tn(n))}function A(n,t,r,e=9,o=0,i=4){t=tn(t);let u=bu(t,e,o),c=V(t),s=Pu(t,i),a=Mu(t,e,o,1);return null==u?u=Math.max(r,a):sn(u,a),c=X(c,a,1),n&&(s=(n=>n<4?(n+2)%4:n)(s)),[u,a,c,s]}function _(n,t=6,r){let e=V(n=rn(n,du));const o=Pu(n,7);let i=Mu(n,t);return i=C(du,i),e=X(e,i,void 0,r),[i,e,o]}function z(n){return Ru(tn(n))}function G(n,t){return K(tn(n),t)}function K(n,t=4){const r=nn(n);return[Pu(n,4),...Q(Mu(n,t),r)]}function Q(n,t){return null!=n?[ki[n],n<4?9-3*n:-1]:[void 0===t?1:10**(9-t),t]}function V(n){let t=n[mu];return void 0===t?1:x(t,mu)}function X(n,t,r,e){const o=e?$i:ki[t+1];if(o){const r=ki[t];if(o%((n=y(mu,n,1,o/r-(e?0:1),1))*r))throw new RangeError(zo(mu,n))}else n=y(mu,n,1,r?10**9:1,1);return n}function nn(n){let t=n[gu];if(void 0!==t){if("number"!=typeof t){if("auto"===$(t))return;throw new RangeError(zo(gu,t))}t=y(gu,Math.floor(t),0,9,1)}return t}function tn(n){return void 0===n?{}:S(n)}function rn(n,t){return"string"==typeof n?{[t]:n}:S(n)}function en(n){if(void 0!==n){if(t(n))return Object.assign(Object.create(null),n);throw new TypeError(Ao)}}function on(n,t){return n&&Object.assign(Object.create(null),n,{overflow:pu[t]})}function un(n,t,r=9,e=0,o){let i=t[n];if(void 0===i)return o?e:void 0;if(i=$(i),"auto"===i)return o?e:null;let u=Di[i];if(void 0===u&&(u=fu[i]),void 0===u)throw new RangeError(zo(n,i));return y(n,u,e,r,1),u}function cn(n,t,r,e=0){const o=r[n];if(void 0===o)return e;const i=$(o),u=t[i];if(void 0===u)throw new RangeError(zo(n,i));return u}function sn(n,t){if(t>n)throw new RangeError(Mi)}function an(n,t){let[r,e]=E(t,$i),o=n+r;const i=Math.sign(o);return i&&i===-Math.sign(e)&&(o-=i,e+=i*$i),[o,e]}function fn(n,t){return an(n[0],n[1]+t)}function hn(n,t,r=1){return an(n[0]+t[0]*r,n[1]+t[1]*r)}function ln(n,t){return an(t[0]-n[0],t[1]-n[1])}function dn(n,t){return m(n[0],t[0])||m(n[1],t[1])}function wn(n,t=1){const r=BigInt($i/t);return[Number(n/r),Number(n%r)*t]}function mn(n,t=1){const r=$i/t,[e,o]=E(n,r);return[e,o*t]}function gn(n,t=1){const[r,e]=n,o=Math.floor(e/t),i=$i/t;return BigInt(r)*BigInt(i)+BigInt(o)}function yn(n,t=1,r){const[e,o]=vn(n,t);return e+(r?o/t:0)}function vn(n,t){const[r,e]=n,[o,i]=M(e,t);return[r*($i/t)+o,i]}function pn(n){return v(n,"isoYear",_u,Au,1),n.isoYear===_u?v(n,"isoMonth",4,12,1):n.isoYear===Au&&v(n,"isoMonth",1,9,1),n}function Mn(n){return bn({...n,...Bu,isoHour:12}),n}function bn(n){const t=v(n,"isoYear",_u,Au,1),r=t===_u?1:t===Au?-1:0;return r&&En(Sn({...n,isoDay:n.isoDay+r,isoNanosecond:n.isoNanosecond-r})),n}function En(n){if(!n||-1===dn(n,Hu)||1===dn(n,Ju))throw new RangeError(gi);return n}function On(n){return R(n,5,$u)[1]}function In(n){const[t,r]=M(n,$i);return[D(r,5,$u),t]}function Tn(n){return yn(n,Fi)}function Rn(n){return yn(n,Yi)}function Dn(n){return jn(n.isoYear,n.isoMonth,n.isoDay,n.isoHour,n.isoMinute,n.isoSecond,n.isoMillisecond)}function Sn(n){const t=Dn(n);if(void 0!==t){const[r,e]=E(t,Pi);return[r,e*Yi+(n.isoMicrosecond||0)*ji+(n.isoNanosecond||0)]}}function Pn(n,t){const[r,e]=In(On(n)-t);return En(Sn({...n,isoDay:n.isoDay+e,...r}))}function Nn(...n){return jn(...n)/Ni}function jn(...n){const[t,r]=Yn(...n),e=t.getTime();if(!isNaN(e))return e-r*Pi}function Yn(n,t=1,r=1,e=0,o=0,i=0,u=0){const c=n===_u?1:n===Au?-1:0,s=new Date;return s.setUTCHours(e,o,i,u),s.setUTCFullYear(n,t-1,r+c),[s,c]}function Fn(n,t){let[r,e]=fn(n,t);e<0&&(e+=$i,r-=1);const[o,i]=M(e,Yi),[u,c]=M(i,ji);return{...Zn(r*Pi+o),isoMicrosecond:u,isoNanosecond:c}}function Zn(n){const t=n<-Pi*Uu?1:n>Pi*Uu?-1:0,r=new Date(n+t*Pi);return e(Lu,[r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate()-t,r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds()])}function Cn(n,t,r=[]){const e=new Set(r);return r=>(((n,t)=>{for(const r of t)if(r in n)return 1;return 0})(r=((n,t)=>{const r={};for(const e in n)t.has(e)||(r[e]=n[e]);return r})(r,e),n)||Object.assign(r,t),r)}function $n(n,t){return zt(Et(t.timeZone),{...Bu,isoHour:12,...n})}function kn(n){return n.epochNanoseconds}function Ln(n,t=Wn){const[r]=n;return(e,o=Dc,i,u)=>{const c=t(e,o,r,i,u),s=c.resolvedOptions();return[c,...xn(n,s,i,u)]}}function Wn(n,t,r,e,o){return new Gu(n,r(t,e,o))}function xn(n,t,r,e){return[qn(n,t,r),void 0!==e?qn(n,t,e):void 0]}function qn([,n,t],r,e){return e.calendar&&((n,t,r)=>{if((r||n!==Nu)&&n!==t)throw new RangeError(hi)})(ze(e.calendar),r.calendar,t),Rn(n(e,r))}function Bn(n,t){const r=n.formatToParts(t),e={};for(const n of r)e[n.type]=n.value;return e}function Un(n,t,r,e=[]){const o=An(n,t,Vi,e);return n.dateFromFields(o,r)}function Jn(n,t,r,e){const o=An(n,t,Ki,e);return n.yearMonthFromFields(o,r)}function Hn(n,t,r,e,o=[]){const i=An(n,r,Vi,o);return t&&void 0!==i.month&&void 0===i.monthCode&&void 0===i.year&&(i.year=Jc),n.monthDayFromFields(i,e)}function An(n,t,r,e=[],o=[]){return _n(t,[...n.fields(r),...o].sort(),e)}function _n(n,t,r,e=!r){const o={};let i,u=0;for(const e of t){if(e===i)throw new RangeError(Qo(e));if("constructor"===e||"__proto__"===e)throw new RangeError(Ko(e));let t=n[e];if(void 0!==t)u=1,Pc[e]&&(t=Pc[e](t,e)),o[e]=t;else if(r){if(r.includes(e))throw new TypeError(Go(e));o[e]=tu[e]}i=e}if(e&&!u)throw new TypeError(Vo);return o}function zn(n,t){return Ur(Nc({...tu,...n}),t)}function Gn(n,t,r,e,o=[],i=[]){const u=[...n.fields(e),...o].sort();let c=_n(t,u,i);const s=_n(r,u);return c=n.mergeFields(c,s),_n(c,u,[])}function Kn(n,t){const r=An(n,t,nu);return n.monthDayFromFields(r)}function Qn(n,t,r){const e=An(n,t,Qi);return n.yearMonthFromFields(e,r)}function Vn(n,t,r,e,o){t=i(r=n.fields(r),t),e=_n(e,o=n.fields(o),[]);let u=n.mergeFields(t,e);return u=_n(u,[...r,...o].sort(),[]),n.dateFromFields(u)}function Xn(n,t){let{era:r,eraYear:e,year:o}=t;const i=ct(n);if(void 0!==r||void 0!==e){if(void 0===r||void 0===e)throw new TypeError(ti);if(!i)throw new RangeError(ni);const n=i[r];if(void 0===n)throw new RangeError(ei(r));const t=ut(e,n);if(void 0!==o&&o!==t)throw new RangeError(ri);o=t}else if(void 0===o)throw new TypeError(oi(i));return o}function nt(n,t,r,e){let{month:o,monthCode:i}=t;if(void 0!==i){const t=((n,t,r,e)=>{const o=n.o(r),[i,u]=et(t);let c=ot(i,u,o);if(u){const t=st(n);if(void 0===t)throw new RangeError(ai);if(t>0){if(c>t)throw new RangeError(ai);if(void 0===o){if(1===e)throw new RangeError(ai);c--}}else{if(c!==-t)throw new RangeError(ai);if(void 0===o&&1===e)throw new RangeError(ai)}}return c})(n,i,r,e);if(void 0!==o&&o!==t)throw new RangeError(ui);o=t,e=1}else if(void 0===o)throw new TypeError(ci);return y("month",o,1,n.i(r),e)}function tt(n,t,r,e,o){return v(t,"day",1,n.u(e,r),o)}function rt(n,t,r,e){let o=0;const i=[];for(const n of r)void 0!==t[n]?o=1:i.push(n);if(Object.assign(n,t),o)for(const t of e||i)delete n[t]}function et(n){const t=Yc.exec(n);if(!t)throw new RangeError(ii(n));return[parseInt(t[1]),Boolean(t[2])]}function ot(n,t,r){return n+(t||r&&n>=r?1:0)}function it(n,t){return n-(t&&n>=t?1:0)}function ut(n,t){return(t+n)*(Math.sign(t)||1)||0}function ct(n){return Fu[at(n)]}function st(n){return Cu[at(n)]}function at(n){return ft(n.id||Nu)}function ft(n){return n.split("-")[0]}function ht(n){return s((t=>{const r=Dn(t);return n(r)}),WeakMap)}function lt(n){const t=n(0).year-Uc;return s((r=>{let e,o=jn(r-t);const i=[],u=[];do{o+=400*Pi}while((e=n(o)).year<=r);do{o+=(1-e.day)*Pi,e.year===r&&(i.push(o),u.push(e.month)),o-=Pi}while((e=n(o)).year>=r);return{h:i.reverse(),l:Ii(u.reverse())}}))}function dt(n,t){let r,e,o=parseInt(n.relatedYear||n.year);if(n.era){const u=Fu[t];void 0!==u&&(i=(i=n.era).normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g,""),r=Zu[i]||i,e=o,o=ut(e,u[r]||0))}var i;return{era:r,eraYear:e,year:o}}function wt(n){return new Gu(Sc,{calendar:n,timeZone:Zc,era:"short",year:"numeric",month:"short",day:"numeric"})}function mt(n){const{year:t,month:r,day:e}=this.m(n),{l:o}=this.v(t);return[t,o[r]+1,e]}function gt(n,t=1,r=1){return this.v(n).h[t-1]+(r-1)*Pi}function yt(n){const t=bt(this,n),r=bt(this,n-1),e=t.length;if(e>r.length){const n=st(this);if(n<0)return-n;for(let n=0;n<e;n++)if(t[n]!==r[n])return n+1}}function vt(n){return Pr(gt.call(this,n),gt.call(this,n+1))}function pt(n,t){const{h:r}=this.v(n);let e=t+1,o=r;return e>r.length&&(e=1,o=this.v(n+1).h),Pr(r[t-1],o[e-1])}function Mt(n){return this.v(n).h.length}function bt(n,t){return Object.keys(n.v(t).l)}function Et(n){const t=De(n=n.toLocaleUpperCase(),1);return void 0!==t?new Wc(t):Lc(n)}function Ot(n,t){return[n,t]}function It(n){const t=Math.floor(n/Cc)*Cc;return[t,t+Cc]}function Tt(n,t,r,e){const[o,i,u,c]=(n=>{const t=K(n=tn(n));return[n.timeZone,...t]})(e),s=void 0!==o;return((n,t,r,e,o,i)=>{r=fr(r,o,e,1);let u=t.getOffsetNanosecondsFor(r);return Ct(Fn(r,u),i)+(n?xt(sr(u)):"Z")})(s,t(s?n(o):Zc),r.epochNanoseconds,i,u,c)}function Rt(n,t,r){return((n,t,r,e,o,i,u,c,s,a)=>{e=fr(e,s,c,1);const f=n(r).getOffsetNanosecondsFor(e);return Ct(Fn(e,f),a)+xt(sr(f),u)+((n,t)=>1!==t?"["+(2===t?"!":"")+ze(n)+"]":"")(r,i)+qt(t,o)})(n,t.calendar,t.timeZone,t.epochNanoseconds,...(n=>{n=tn(n);const t=Ru(n),r=nn(n),e=Su(n),o=Pu(n,4),i=Mu(n,4);return[t,Du(n),e,o,...Q(i,r)]})(r))}function Dt(n,t){return((n,t,r,e,o,i)=>Ct(tr(t,o,e),i)+qt(n,r))(n.calendar,n,...(n=>(n=tn(n),[Ru(n),...K(n)]))(t))}function St(n,t){return r=n.calendar,e=n,o=z(t),$t(e)+qt(r,o);var r,e,o}function Pt(n,t){return Ft(n.calendar,kt,n,z(t))}function Nt(n,t){return Ft(n.calendar,Lt,n,z(t))}function jt(n,t){return((n,t,r,e)=>Wt(rr(n,r,t)[0],e))(n,...G(t))}function Yt(n,t){const[r,e,o]=G(t,3);return e>1&&(n={...n,...or(n,Math.min(we(n),6),e,r)}),((n,t)=>{const r=Kc(n),e=-1===r?ue(n):n,{hours:o,minutes:i}=e,[u,c]=vn(R(e,3,uu),Fi),s=Ut(c,t),a=t>=0||!r||s;return(r<0?"-":"")+"P"+Zt({Y:Ht(e.years),M:Ht(e.months),W:Ht(e.weeks),D:Ht(e.days)})+(o||i||u||a?"T"+Zt({H:Ht(o),M:Ht(i),S:Ht(u,a)+s}):"")})(n,o)}function Ft(n,t,r,e){const o=ze(n),i=e>1||0===e&&o!==Nu;return 1===e?o===Nu?t(r):$t(r):i?$t(r)+Bt(o,2===e):t(r)}function Zt(n){const t=[];for(const r in n){const e=n[r];e&&t.push(e,r)}return t.join("")}function Ct(n,t){return $t(n)+"T"+Wt(n,t)}function $t(n){return kt(n)+"-"+Ri(n.isoDay)}function kt(n){const{isoYear:t}=n;return(t<0||t>9999?Jt(t)+w(6,Math.abs(t)):w(4,t))+"-"+Ri(n.isoMonth)}function Lt(n){return Ri(n.isoMonth)+"-"+Ri(n.isoDay)}function Wt(n,t){const r=[Ri(n.isoHour),Ri(n.isoMinute)];return-1!==t&&r.push(Ri(n.isoSecond)+((n,t,r,e)=>Ut(n*Yi+t*ji+r,e))(n.isoMillisecond,n.isoMicrosecond,n.isoNanosecond,t)),r.join(":")}function xt(n,t=0){if(1===t)return"";const[r,e]=M(Math.abs(n),Ci),[o,i]=M(e,Zi),[u,c]=M(i,Fi);return Jt(n)+Ri(r)+":"+Ri(o)+(u||c?":"+Ri(u)+Ut(c):"")}function qt(n,t){if(1!==t){const r=ze(n);if(t>1||0===t&&r!==Nu)return Bt(r,2===t)}return""}function Bt(n,t){return"["+(t?"!":"")+"u-ca="+n+"]"}function Ut(n,t){let r=w(9,n);return r=void 0===t?r.replace(qc,""):r.slice(0,t),r?"."+r:""}function Jt(n){return n<0?"-":"+"}function Ht(n,t){return n||t?n.toLocaleString("fullwide",{useGrouping:0}):""}function At(n,t){return Fn(t,n.getOffsetNanosecondsFor(t))}function _t(n,t,r,e=0,o=0,i,u){if(void 0!==r&&1===e&&(1===e||u))return Pn(t,r);const c=n.getPossibleInstantsFor(t);if(void 0!==r&&3!==e){const n=((n,t,r,e)=>{const o=Sn(t);e&&(r=sr(r));for(const t of n){let n=yn(ln(t,o));if(e&&(n=sr(n)),n===r)return t}})(c,t,r,i);if(void 0!==n)return n;if(0===e)throw new RangeError(wi)}return u?Sn(t):zt(n,t,o,c)}function zt(n,t,r=0,e=n.getPossibleInstantsFor(t)){if(1===e.length)return e[0];if(1===r)throw new RangeError(mi);if(e.length)return e[3===r?1:0];const o=Sn(t),i=((n,t)=>{const r=n.getOffsetNanosecondsFor(fn(t,-$i));return n.getOffsetNanosecondsFor(fn(t,$i))-r})(n,o),u=i*(2===r?-1:1);return(e=n.getPossibleInstantsFor(Fn(o,u)))[2===r?0:e.length-1]}function Gt(n,t){t={...t,...Bu};const r=yn(ln(zt(n,{...t,...Bu}),zt(n,{...te(t,1),...Bu})));if(r<=0)throw new RangeError(fi);return r}function Kt(n){if(Math.abs(n)>=$i)throw new RangeError(di);return n}function Qt(n,t){return yn(n,ki[t],1)}function Vt(n,t,r,e,o,i){const u={...hu,[uu[t]]:r},c=i(e,n),s=i(c,u);return[o(c),o(s)]}function Xt(n,t,r){const e=yn(ln(n,t));if(!e)throw new RangeError(fi);return yn(ln(n,r))/e}function nr(n,t,r,e,o){return 6===t?((n,t,r)=>{if(t){const e=Gt(t,n);return bn({...te(n,cr(On(n),e,r)/e),...Bu})}return tr(n,$i,r)})(n,o,e):tr(n,ur(t,r),e)}function tr(n,t,r){const[e,o]=rr(n,t,r);return bn({...te(n,o),...e})}function rr(n,t,r){return In(cr(On(n),t,r))}function er(n,t,r,e,o){return fe(ar(ae(n,6),r,e,o),t)}function or(n,t,r,e){return fe(fr(ae(n,t),r,e),t)}function ir(n,t,r,e,o,i,u,c,s){const a=c===d?e>6?dr:6===e?hr:lr:e>6?dr:hr;let[f,h,l]=a(n,t,r,e,o,i,u,c,s);return l&&(f=((n,t,r,e,o,i,u)=>{const c=Kc(n);for(let s=e+1;s<=r;s++){if(7===s&&7!==r)continue;const e=le(n,s-1);e[uu[s]]+=c;const a=yn(ln(i(u(o,e)),t));if(a&&Math.sign(a)!==c)break;n=e}return n})(f,h,r,Math.max(6,e),u,c,s)),f}function ur(n,t){return ki[n]*t}function cr(n,t,r){return((n,t)=>zu[t](n))(n/t,r)*t}function sr(n){return cr(n,Zi,7)}function ar(n,t,r,e,o){return 6===t?[cr(Qt(n,6),r,e),0]:fr(n,ur(t,r),e,o)}function fr(n,t,r,e){let[o,i]=n;e&&i<0&&(i+=$i,o-=1);const[u,c]=M(cr(i,t,r),$i);return an(o+u,c)}function hr(n,t,r,e,o,i){const u=Kc(n),c=ae(n,6),s=ar(c,e,o,i),a=ln(c,s),f=Math.sign(s[0]-c[0])===u,h=fe(s,Math.min(r,6));return[{...n,...h},hn(t,a),f]}function lr(n,t,r,e,o,i,u,c,s){const a=Kc(n);let[f,h]=R(n,5,uu);const l=ur(e,o);let d=cr(h,l,i);const[w,m]=Vt({...n,...lu},6,a,u,c,s),g=d-yn(ln(w,m));g&&Math.sign(g)!==a?t=fn(w,d):(f+=a,d=cr(g,l,i),t=fn(m,d));const y=he(d);return[{...n,...y,days:n.days+f},t,Boolean(f)]}function dr(n,t,r,e,o,i,u,c,s){const a=Kc(n),f=uu[e],h=le(n,e-1),l=O(n[f],o)*o;h[f]=l;const[d,w]=Vt(h,e,o*a,u,c,s),m=l+Xt(d,w,t)*a*o,g=cr(m,o,i),y=Math.sign(g-m)===a;return h[f]=g,[h,y?w:d,y]}function wr(n,t,r,e){const o=A(e,en(r),3,5);let i=Tr(n.epochNanoseconds,t.epochNanoseconds,...o);return Be(e?ue(i):i)}function mr(t,r,e,o,i,u){const c=Je(e.calendar,o.calendar),s=en(i),[a,f,h,l]=A(u,s,5),w=e.epochNanoseconds,m=o.epochNanoseconds,g=dn(m,w);let y;if(g)if(a<6)y=Tr(w,m,a,f,h,l);else{const i=r(((n,t)=>{if(!Ae(n,t,1))throw new RangeError(li);return n})(e.timeZone,o.timeZone)),u=t(c);y=Or(u,i,g,w,m,a,s),!g||0===f&&1===h||(y=ir(y,m,a,f,h,l,w,d,n(Kr,u,i)))}else y=hu;return Be(u?ue(y):y)}function gr(t,r,e,o,i){const u=Je(r.calendar,e.calendar),c=en(o),[s,a,f,h]=A(i,c,6),l=Sn(r),d=Sn(e),w=dn(d,l);let m;if(w)if(s<=6)m=Tr(l,d,s,a,f,h);else{const o=t(u);m=Ir(o,w,r,e,s,c),!w||0===a&&1===f||(m=ir(m,d,s,a,f,h,r,Sn,n(Qr,o)))}else m=hu;return Be(i?ue(m):m)}function yr(n,t,r,e,o){const i=Je(t.calendar,r.calendar),u=en(e);return pr(o||0,(()=>n(i)),t,r,...A(o,u,6,9,6),u)}function vr(n,t,r,e,o){const i=Je(t.calendar,r.calendar),u=en(e),c=A(o,u,9,9,8),s=n(i);return pr(o||0,(()=>s),Xr(s,t),Xr(s,r),...c,u)}function pr(n,t,r,e,o,i,u,c,s){const a=Sn(r),f=Sn(e);let h;if(dn(f,a)){let n;6===o?h=Dr(r,e):(n=t(),h=n.dateUntil(r,e,o,s)),6===i&&1===u||(n||(n=t()),h=ir(h,f,o,i,u,c,r,Sn,((t,r)=>n.dateAdd(t,r))))}else h=hu;return Be(n?ue(h):h)}function Mr(n,t,r,e){const o=en(r),[i,u,c,s]=A(e,o,5,5),a=On(n),f=cr(On(t)-a,ur(u,c),s);let h={...hu,...he(f,i)};return Be(e?ue(h):h)}function br(n,t,r,e,o,i){const u=dn(e,r);return u?o<6?Rr(r,e,o):Or(n,t,u,r,e,o,i):hu}function Er(n,t,r,e,o){const i=Sn(t),u=Sn(r),c=dn(u,i);return c?e<=6?Rr(i,u,e):Ir(n,c,t,r,e,o):hu}function Or(t,r,e,o,u,c,s){const a=At(r,o),f=i($u,a),h=At(r,u),l=n(zt,r);let d,w,m,g=0;do{if(g>2)throw new RangeError(fi);d={...te(h,g++*-e),...f},w=l(d),m=dn(u,w)}while(m===-e);return{...6===c?Dr(a,d):t.dateUntil(a,d,c,s),...he(yn(ln(w,u)))}}function Ir(n,t,r,e,o,i){const u=On(r);let c=On(e)-u,s=r;return Math.sign(c)===-t&&(s=te(r,t),c+=$i*t),{...n.dateUntil({...s,...Bu},{...e,...Bu},o,i),...he(c)}}function Tr(n,t,r,e,o,i){return{...hu,...fe(ar(ln(n,t),e,o,i),r)}}function Rr(n,t,r){return{...hu,...fe(ln(n,t),r)}}function Dr(n,t){return{...hu,days:Sr(n,t)}}function Sr(n,t){return Pr(Dn(n),Dn(t))}function Pr(n,t){return Math.round((t-n)/Pi)}function Nr(){return Hc}function jr(n,t){switch(t){case 2:return Fr(n)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function Yr(n){return Fr(n)?366:365}function Fr(n){return n%4==0&&(n%100!=0||n%400==0)}function Zr(n){return Pr(Dn(kr(n)),Dn({...n,...Bu}))+1}function Cr(n){const[t,r]=Yn(n.isoYear,n.isoMonth,n.isoDay);return b(t.getDay()+1-r,7)||7}function $r(n){const t=Zr(n),r=Cr(n),e=Cr(kr(n)),o=Math.floor((t-r+10)/Ac),{isoYear:i}=n;return o<1?[i-1,5===e||6===e&&Fr(i-1)?53:52]:53===o&&Yr(i)-t<4-r?[i+1,1]:[i,o]}function kr(n){return{...n,isoMonth:1,isoDay:1,...Bu}}function Lr({isoYear:n}){return n<1?["bce",1-n]:["ce",n]}function Wr(n){return xr(n),Ur(n,1),n}function xr(n){return Br(n,1),n}function qr(n){return c(ku,n,Br(n))}function Br(n,t){const{isoYear:r}=n,e=v(n,"isoMonth",1,Nr(),t);return{isoYear:r,isoMonth:e,isoDay:v(n,"isoDay",1,jr(r,e),t)}}function Ur(n,t){return e($u,[v(n,"isoHour",0,23,t),v(n,"isoMinute",0,59,t),v(n,"isoSecond",0,59,t),v(n,"isoMillisecond",0,999,t),v(n,"isoMicrosecond",0,999,t),v(n,"isoNanosecond",0,999,t)])}function Jr(n,t,r){return Ce(En(hn(n.epochNanoseconds,(n=>{if(de(n))throw new RangeError(pi);return ae(n,5)})(r?ue(t):t))))}function Hr(n,t,r,e,o=Object.create(null),i){const u=t(r.timeZone),c=Kr(n(r.calendar),u,r.epochNanoseconds,i?ue(e):e,o);return{...r,epochNanoseconds:c}}function Ar(n,t,r,e=Object.create(null),o){return ke({...t,...Qr(n(t.calendar),t,o?ue(r):r,e)})}function _r(n,t,r,e,o){return{...t,...Vr(n(t.calendar),t,o?ue(r):r,e)}}function zr(n,t,r,e=Object.create(null),o){const i=t.calendar,u=n(i);let c=Xr(u,t);o&&(r=ie(r)),Kc(r)<0&&(c=u.dateAdd(c,{...hu,months:1}),c=te(c,-1));const s=u.dateAdd(c,r,e);return We(Xr(u,s),i)}function Gr(n,t,r){return qe(ne(n,r?ue(t):t)[0])}function Kr(n,t,r,e,o){const u=ae(e,5);if(de(e)){const c=At(t,r);r=hn(zt(t,{...Vr(n,c,{...e,...lu},o),...i($u,c),calendar:Nu}),u)}else r=hn(r,u),U(o);return En(r)}function Qr(n,t,r,e){const[o,i]=ne(t,r);return bn({...Vr(n,t,{...r,...lu,days:r.days+i},e),...o})}function Vr(n,t,r,e){if(r.years||r.months||r.weeks)return n.dateAdd(t,r,e);U(e);const o=r.days+R(r,5,uu)[0];return o?Mn(te(t,o)):t}function Xr(n,t){return te(t,1-n.day(t))}function ne(n,t){const[r,e]=R(t,5,uu),[o,i]=In(On(n)+e);return[o,r+i]}function te(n,t){return t&&(n=Zn(Dn(n)+t*Pi)),n}function re(t,r,e){const{calendar:o,timeZone:i,epochNanoseconds:u}=e,c=t(o);if(u){const t=r(i);return[u,d,n(Kr,c,t),n(br,c,t)]}return[{...e,...Bu},Sn,n(Qr,c),n(Er,c)]}function ee(n,t,r,e,o,i,u){let c=i(e,n);return t&&(c=i(c,t)),[u(e,c,r),o(c)]}function oe(n,t,r,e,o,i,u){const c=n(tn(i).relativeTo),s=Math.max(we(e),we(o));if(s<6||6===s&&(!c||!c.epochNanoseconds))return Be(((n,t,r,e)=>{const o=hn(ae(n,6),ae(t,6),e?-1:1);if(!Number.isFinite(o[0]))throw new RangeError(gi);return{...hu,...fe(o,r)}})(e,o,s,u));if(!c)throw new RangeError(vi);return u&&(o=ue(o)),Be(ee(e,o,s,...re(t,r,c))[0])}function ie(n){return Be(ue(n))}function ue(n){const t={};for(const r of uu)t[r]=-1*n[r]||0;return t}function ce(n,t=uu){let r=0;for(const e of t){const t=Math.sign(n[e]);if(t){if(r&&r!==t)throw new RangeError(yi);r=t}}return r}function se(n){return Kc(n),n}function ae(n,t){return R(n,t,uu)}function fe(n,t=6){const[r,e]=n,o=D(e,t,uu);if(o[uu[t]]+=r*($i/ki[t]),!Number.isFinite(o[uu[t]]))throw new RangeError(gi);return o}function he(n,t=5){return D(n,t,uu)}function le(n,t){const r={...n};for(let n=0;n<=t;n++)r[uu[n]]=0;return r}function de(n){return Boolean(ce(n,au))}function we(n){let t=9;for(;t>0&&!n[uu[t]];t--);return t}function me(n){return(n=ge(n))!==Nu&&n!==ju&&Fc(n),n}function ge(n){return"islamicc"===(n=n.toLocaleLowerCase())&&(n="islamic-civil"),n}function ye(n){const t=De(n);if(void 0===t)throw new RangeError(bi(n));return t}function ve(n){const t=Ie(ru(n));if(!t||t.p)throw new RangeError(bi(n));return Le(t.O?be(t):Ee(t))}function pe(n){if(n.calendar!==Nu)throw new RangeError(Ei(n.calendar))}function Me(n,t,r=0,e=0){const o=Et(n.timeZone);return $e(_t(o,Wr(n),t,r,e,!(o instanceof Wc),n.p),o.id,me(n.calendar))}function be(n){return Oe(bn(Wr(n)))}function Ee(n){return Oe(Mn(xr(n)))}function Oe(n){return{...n,calendar:me(n.calendar)}}function Ie(n){const t=ls.exec(n);return t?(n=>{const t=n[10],r="Z"===(t||"").toUpperCase();return{isoYear:Se(n),isoMonth:parseInt(n[4]),isoDay:parseInt(n[5]),...Pe(n.slice(5)),...Ne(n[16]),O:Boolean(n[6]),p:r,offset:r?void 0:t}})(t):void 0}function Te(n){const t=fs.exec(n);return t?(n=>({isoYear:Se(n),isoMonth:parseInt(n[4]),isoDay:1,...Ne(n[5])}))(t):void 0}function Re(n){const t=hs.exec(n);return t?(n=>({isoYear:Jc,isoMonth:parseInt(n[1]),isoDay:parseInt(n[2]),...Ne(n[3])}))(t):void 0}function De(n,t){const r=ws.exec(n);return r?((n,t)=>{const r=n[4]||n[5];if(t&&r)throw new RangeError(Ei(r));return Kt((Ze(n[2])*Ci+Ze(n[3])*Zi+Ze(n[4])*Fi+je(n[5]||""))*Fe(n[1]))})(r,t):void 0}function Se(n){const t=Fe(n[1]),r=parseInt(n[2]||n[3]);if(t<0&&!r)throw new RangeError(Ei(-0));return t*r}function Pe(n){const t=Ze(n[3]);return{...In(je(n[4]||""))[0],isoHour:Ze(n[1]),isoMinute:Ze(n[2]),isoSecond:60===t?59:t}}function Ne(n){let t,r;const e=[];if(n.replace(ms,((n,o,i)=>{const u=Boolean(o),[c,s]=i.split("=").reverse();if(s){if("u-ca"===s)e.push(c),t||(t=u);else if(u)throw new RangeError(Ei(n))}else{if(r)throw new RangeError(Ei(n));r=c}return""})),e.length>1&&t)throw new RangeError(Ei(n));return{timeZone:r,calendar:e[0]||Nu}}function je(n){return parseInt(n.padEnd(9,"0"))}function Ye(n){return new RegExp(`^${n}$`,"i")}function Fe(n){return n&&"+"!==n?-1:1}function Ze(n){return void 0===n?0:parseInt(n)}function Ce(n){return{I:Os,epochNanoseconds:n}}function $e(n,t,r){return{I:Es,calendar:r,timeZone:t,epochNanoseconds:n}}function ke(n,t=n.calendar){return{I:Ms,calendar:t,...i(qu,n)}}function Le(n,t=n.calendar){return{I:ps,calendar:t,...i(Wu,n)}}function We(n,t=n.calendar){return{I:ys,calendar:t,...i(Wu,n)}}function xe(n,t=n.calendar){return{I:vs,calendar:t,...i(Wu,n)}}function qe(n){return{I:bs,...i(xu,n)}}function Be(n){return{I:Is,...i(cu,n)}}function Ue(n){return delete(n={...n}).I,n}function Je(n,t){if(!Ge(n,t))throw new RangeError(hi);return n}function He(n,t){if(n===t)return n;const r=ze(n),e=ze(t);if(r===e||r===Nu)return t;if(e===Nu)return n;throw new RangeError(hi)}function Ae(n,t,r){return n===t||_e(n,r)===_e(t,r)}function _e(n,t){const r=ze(n);if(t&&r===Zc)return 0;const e=De(r);return void 0!==e?e:r}function ze(n){return"string"==typeof n?n:ru(n.id)}function Ge(n,t){return n===t||ze(n)===ze(t)}function Ke(n,t){const r={};for(const e in n)r[e]=({R:n},r)=>{const o=Ja(r)||{},{I:i}=o,u=i===ps||t.includes(i)?o:Do(r);return n[e](u)};return r}function Qe(n){const t={};for(const r in n)t[r]=n=>{const{calendar:t}=n;return(e=t,"string"==typeof e?Xc(e):(o=e,Object.assign(Object.create(Cs),{P:o})))[r](n);var e,o};return t}function Ve(){throw new TypeError("Cannot use valueOf")}function Xe({calendar:n}){return"string"==typeof n?new _a(n):n}function no(n,t){return dn(n.epochNanoseconds,t.epochNanoseconds)}function to(n,t){return dn(n.epochNanoseconds,t.epochNanoseconds)}function ro(n,t){return eo(n,t)||oo(n,t)}function eo(n,t){return m(Dn(n),Dn(t))}function oo(n,t){return m(On(n),On(t))}function io(n,t,r=Nu){return $e(n.epochNanoseconds,t,r)}function uo(n,t){return ke(Bc(t,n(t.timeZone)),t.calendar)}function co(n,t){return Le(Bc(t,n(t.timeZone)),t.calendar)}function so(n,t){return qe(Bc(t,n(t.timeZone)))}function ao(n,r){if(r=en(r),t(n)){const t=Ja(n);if(t&&t.I===vs)return U(r),t;const e=Co(n);return Hn(ma(e||Nu),!e,n,r)}const e=((n,t)=>{const r=Re(ru(t));if(r)return pe(r),xe(xr(r));const e=ve(t),{calendar:o}=e,i=n(o),[u,c,s]=i.N(e),[a,f]=i.j(u,c),[h,l]=i.F(a,f,s);return xe(i.C(h,l,s),o)})(Xc,n);return U(r),e}function fo(n,r){if(r=en(r),t(n)){const t=Ja(n);return t&&t.I===ys?(U(r),t):Jn(da(Zo(n)),n,r)}const e=((n,t)=>{const r=Te(ru(t));if(r)return pe(r),We(pn(xr(r)));const e=ve(t),o=Xr(n(e.calendar),e);return We({...e,...o})})(Xc,n);return U(r),e}function ho(n,t,r){return j(t.call(n,La(Le(r,n))))}function lo(t){return r=>"string"==typeof r?Xc(r):((t,r)=>{const e=Object.keys(r).sort(),o={};for(const i of e)o[i]=n(r[i],t,t[i]);return o})(r,t)}function wo(n,t,r){const e=t.$(po(r).epochNanoseconds,n);return e?Sa(Ce(e)):null}function mo(n,t){return{...n,calendar:t}}function go(n){return r((n=>t=>n(yo(t))),n)}function yo(n){const t=Oo(n.timeZone);return{...Bc(n,t),calendar:n.calendar}}function vo(n,r){if(r=en(r),t(n)){const t=Ja(n);if(t&&t.I===Es)return J(r),t;const e=Zo(n);return((n,t,r,e,o,i)=>{const u=An(r,o,Vi,qi,Ui),c=n(u.timeZone),[s,a,f]=J(i),h=r.dateFromFields(u,on(i,s)),l=zn(u,s);return $e(_t(t(c),{...h,...l},void 0!==u.offset?ye(u.offset):void 0,a,f),c,e)})($o,Eo,wa(e),e,n,r)}return((n,t)=>{const r=Ie(ru(n));if(!r||!r.timeZone)throw new RangeError(bi(n));const{offset:e}=r,o=e?ye(e):void 0,[,i,u]=J(t);return Me(r,o,i,u)})(n,r)}function po(n){if(t(n)){const t=Ja(n);if(t)switch(t.I){case Os:return t;case Es:return Ce(t.epochNanoseconds)}}return(n=>{const t=Ie(n=k(n));if(!t)throw new RangeError(bi(n));let r;if(t.p)r=0;else{if(!t.offset)throw new RangeError(bi(n));r=ye(t.offset)}return t.timeZone&&De(t.timeZone,1),Ce(Pn(Wr(t),r))})(n)}function Mo(n,t,r){return Kt(N(t.call(n,Sa(Ce(r)))))}function bo(t,r=Na){const e=Object.keys(r).sort(),o={};for(const i of e)o[i]=n(r[i],t,iu(t[i]));return o}function Eo(n,t){return"string"==typeof n?Et(n):bo(n,t)}function Oo(n){return Eo(n,ja)}function Io(n){if(t(n)){const t=Ja(n);return t&&t.I===Is?t:(n=>{const t=_n(n,cu);return Be(se({...hu,...t}))})(n)}return(n=>{const t=(n=>{const t=gs.exec(n);return t?(n=>{function t(n,t,e){let u=0,c=0;if(e&&([u,i]=M(i,ki[e])),void 0!==n){if(o)throw new RangeError(Ei(n));c=(n=>{const t=parseInt(n);if(!Number.isFinite(t))throw new RangeError(Ei(n));return t})(n),r=1,t&&(i=je(t)*(ki[e]/Fi),o=1)}return u+c}let r=0,o=0,i=0,u={...e(uu,[t(n[2]),t(n[3]),t(n[4]),t(n[5]),t(n[6],n[7],5),t(n[8],n[9],4),t(n[10],n[11],3)]),...D(i,2,uu)};if(!r)throw new RangeError(Vo);return Fe(n[1])<0&&(u=ue(u)),u})(t):void 0})(ru(n));if(!t)throw new RangeError(bi(n));return Be(t)})(n)}function To(n){if(void 0!==n){if(t(n)){const t=Ja(n)||{};switch(t.I){case Es:case ps:return t;case Ms:return Le(t)}const r=Zo(n);return{...((n,t,r,e)=>{const o=An(r,e,Vi,[],Ui);if(void 0!==o.timeZone){const e=r.dateFromFields(o),i=zn(o),u=n(o.timeZone);return{epochNanoseconds:_t(t(u),{...e,...i},void 0!==o.offset?ye(o.offset):void 0),timeZone:u}}return{...r.dateFromFields(o),...Bu}})($o,Eo,wa(r),n),calendar:r}}return(n=>{const t=Ie(ru(n));if(!t)throw new RangeError(bi(n));if(t.timeZone)return Me(t,t.offset?ye(t.offset):void 0);if(t.p)throw new RangeError(bi(n));return Ee(t)})(n)}}function Ro(n,r){if(r=en(r),t(n)){const t=Ja(n)||{};switch(t.I){case Ms:return U(r),t;case ps:return U(r),ke({...t,...Bu});case Es:return U(r),uo(Oo,t)}return((n,t,r)=>{const e=An(n,t,Vi,[],Li),o=U(r);return ke(bn({...n.dateFromFields(e,on(r,o)),...zn(e,o)}))})(wa(Zo(n)),n,r)}const e=(n=>{const t=Ie(ru(n));if(!t||t.p)throw new RangeError(bi(n));return ke(be(t))})(n);return U(r),e}function Do(n,r){if(r=en(r),t(n)){const t=Ja(n)||{};switch(t.I){case ps:return U(r),t;case Ms:return U(r),Le(t);case Es:return U(r),co(Oo,t)}return Un(wa(Zo(n)),n,r)}const e=ve(n);return U(r),e}function So(n,r){if(t(n)){const t=Ja(n)||{};switch(t.I){case bs:return U(r),t;case Ms:return U(r),qe(t);case Es:return U(r),so(Oo,t)}return((n,t)=>{const r=U(t);return qe(zn(_n(n,Wi,[],1),r))})(n,r)}return U(r),(n=>{let t,r=(n=>{const t=ds.exec(n);return t?(Ne(t[10]),Pe(t)):void 0})(ru(n));if(!r){if(r=Ie(n),!r)throw new RangeError(bi(n));if(!r.O)throw new RangeError(bi(n));if(r.p)throw new RangeError(Ei("Z"));pe(r)}if((t=Te(n))&&qr(t))throw new RangeError(bi(n));if((t=Re(n))&&qr(t))throw new RangeError(bi(n));return qe(Ur(r,1))})(n)}function Po(n){return n=n.concat("id").sort(),t=>{if(!((n,t)=>{for(const r of t)if(!(r in n))return 0;return 1})(t,n))throw new TypeError("Invalid protocol")}}function No(n){return void 0===n?void 0:So(n)}function jo(n,t,e,o,i){function u(...n){if(!(this instanceof u))throw new TypeError(Xo);Ha(this,t(...n))}function c(t,r){return Object.defineProperties((function(...r){const e=Ja(this);if(!e||e.I!==n)throw new TypeError(Xo);return t.call(this,e,...r)}),a(r))}return Object.defineProperties(u.prototype,{...h(r(c,e)),...f(r(c,o)),...l("Temporal."+n)}),Object.defineProperties(u,{...f(i),...a(n)}),[u,n=>{const t=Object.create(u.prototype);return Ha(t,n),t},t=>{const r=Ja(t);if(!r||r.I!==n)throw new TypeError(Xo);return r}]}function Yo(n){if(Ja(n)||void 0!==n.calendar||void 0!==n.timeZone)throw new TypeError("Invalid bag");return n}function Fo(n){if(t(n)){const{calendar:t}=Ja(n)||{};return t||(za(n),n)}return(n=>me((n=>{const t=Ie(n)||Te(n)||Re(n);return t?t.calendar:n})(ru(n))))(n)}function Zo(n){return Co(n)||Nu}function Co(n){const{calendar:t}=n;if(void 0!==t)return Fo(t)}function $o(n){if(t(n)){const{timeZone:t}=Ja(n)||{};return t||(Ba(n),n)}return(n=>Et((n=>{const t=Ie(n);return t&&(t.timeZone||t.p&&Zc||t.offset)||n})(ru(n))).id)(n)}function ko(n){const t={epochNanoseconds:Lo()};return i(Lu,Bc(t,n))}function Lo(){return mn(Date.now(),Yi)}function Wo(){return Ga||(Ga=(new Gu).resolvedOptions().timeZone)}const xo=(n,t)=>`Non-integer ${n}: ${t}`,qo=(n,t)=>`Non-positive ${n}: ${t}`,Bo=(n,t)=>`Non-finite ${n}: ${t}`,Uo=n=>`Cannot convert bigint to ${n}`,Jo=n=>`Invalid bigint: ${n}`,Ho="Cannot convert Symbol to string",Ao="Invalid object",_o=(n,t,r,e)=>`${n} ${t} must be between ${r}-${e}`,zo=(n,t)=>`Invalid ${n}: ${t}`,Go=n=>`Missing ${n}`,Ko=n=>`Invalid field ${n}`,Qo=n=>`Duplicate field ${n}`,Vo="No valid fields",Xo="Invalid calling context",ni="Forbidden era/eraYear",ti="Mismatching era/eraYear",ri="Mismatching year/eraYear",ei=n=>`Invalid era: ${n}`,oi=n=>"Missing year"+(n?"/era/eraYear":""),ii=n=>`Invalid monthCode: ${n}`,ui="Mismatching month/monthCode",ci="Missing month/monthCode",si="Cannot guess year",ai="Invalid leap month",fi="Invalid protocol results",hi="Mismatching Calendars",li="Mismatching TimeZones",di="Out-of-bounds offset",wi="Invalid offset for TimeZone",mi="Ambiguous offset",gi="Out-of-bounds date",yi="Cannot mix duration signs",vi="Missing relativeTo",pi="Cannot use large units",Mi="smallestUnit > largestUnit",bi=n=>`Cannot parse: ${n}`,Ei=n=>`Invalid substring: ${n}`,Oi=/object|function/,Ii=n(o,((n,t)=>t)),Ti=n(o,((n,t,r)=>r)),Ri=n(w,2),Di={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},Si=Object.keys(Di),Pi=864e5,Ni=1e3,ji=1e3,Yi=1e6,Fi=1e9,Zi=6e10,Ci=36e11,$i=864e11,ki=[1,ji,Yi,Fi,Zi,Ci,$i],Li=Si.slice(0,6),Wi=Li.slice().sort(),xi=["offset"],qi=["timeZone"],Bi=[...Li,...xi],Ui=[...Bi,...qi],Ji=["era","eraYear"],Hi=[...Ji,"year"],Ai=["year"],_i=["monthCode"],zi=["month",..._i],Gi=["day"],Ki=[...zi,...Ai],Qi=[..._i,...Ai],Vi=[...Gi,...Ki],Xi=[...Gi,...zi],nu=[...Gi,..._i],tu=Ti(Li,0),ru=n(P,"string"),eu=n(P,"boolean"),ou=n(P,"number"),iu=n(P,"function"),uu=Si.map((n=>n+"s")),cu=uu.slice().sort(),su=uu.slice(0,6),au=uu.slice(6),fu=Ii(uu),hu=Ti(uu,0),lu=Ti(su,0),du="smallestUnit",wu="unit",mu="roundingIncrement",gu="fractionalSecondDigits",yu="relativeTo",vu={constrain:0,reject:1},pu=Object.keys(vu),Mu=n(un,du),bu=n(un,"largestUnit"),Eu=n(un,wu),Ou=n(cn,"overflow",vu),Iu=n(cn,"disambiguation",{compatible:0,reject:1,earlier:2,later:3}),Tu=n(cn,"offset",{reject:0,use:1,prefer:2,ignore:3}),Ru=n(cn,"calendarName",{auto:0,never:1,critical:2,always:3}),Du=n(cn,"timeZoneName",{auto:0,never:1,critical:2}),Su=n(cn,"offset",{auto:0,never:1}),Pu=n(cn,"roundingMode",{floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8}),Nu="iso8601",ju="gregory",Yu="japanese",Fu={[ju]:{bce:-1,ce:0},[Yu]:{bce:-1,ce:0,meiji:1867,taisho:1911,showa:1925,heisei:1988,reiwa:2018},ethioaa:{era0:0},ethiopic:{era0:0,era1:5500},coptic:{era0:-1,era1:0},roc:{beforeroc:-1,minguo:0},buddhist:{be:0},islamic:{ah:0},indian:{saka:0},persian:{ap:0}},Zu={bc:"bce",ad:"ce"},Cu={chinese:13,dangi:13,hebrew:-6},$u=["isoNanosecond","isoMicrosecond","isoMillisecond","isoSecond","isoMinute","isoHour"],ku=["isoDay","isoMonth","isoYear"],Lu=[...$u,...ku],Wu=ku.slice().sort(),xu=$u.slice().sort(),qu=Lu.slice().sort(),Bu=Ti(xu,0),Uu=1e8,Ju=[Uu,0],Hu=[-Uu,0],Au=275760,_u=-271821,zu=[Math.floor,n=>T(n)?Math.floor(n):Math.round(n),Math.ceil,n=>T(n)?Math.ceil(n):Math.round(n),Math.trunc,n=>T(n)?Math.trunc(n)||0:Math.round(n),n=>n<0?Math.floor(n):Math.ceil(n),n=>Math.sign(n)*Math.round(Math.abs(n))||0,n=>T(n)?(n=Math.trunc(n)||0)+n%2:Math.round(n)],Gu=Intl.DateTimeFormat,Ku="numeric",Qu=["timeZoneName"],Vu={month:Ku,day:Ku},Xu={year:Ku,month:Ku},nc={...Xu,day:Ku},tc={hour:Ku,minute:Ku,second:Ku},rc={...nc,...tc},ec={...rc,timeZoneName:"short"},oc=Object.keys(Vu),ic=Object.keys(Xu),uc=[...Object.keys(nc),"weekday","dateStyle"],cc=[...Object.keys(tc),"dayPeriod","timeStyle"],sc=[...uc,...cc],ac=[...sc,...Qu],fc=[...Qu,...cc],hc=[...Qu,...uc],lc=[...Qu,"day","weekday","dateStyle",...cc],dc=Cn(oc,Vu,[...Qu,"year","weekday","dateStyle",...cc]),wc=Cn(ic,Xu,lc),mc=Cn(uc,nc,fc),gc=Cn(sc,rc,Qu),yc=Cn(cc,tc,hc),vc=Cn(sc,rc),pc=Cn(ac,ec),Mc=[wc,$n,1],bc=[dc,$n,1],Ec=[mc,$n],Oc=[gc,$n],Ic=[yc,(n,t)=>zt(Et(t.timeZone),{isoYear:Uc,isoMonth:1,isoDay:1,...n})],Tc=[vc,kn],Rc=[(n,t,r)=>{if(void 0!==(n=pc(n)).timeZone)throw new TypeError("Forbidden timeZone");return n.timeZone=((n,t)=>{const r=ze(n.timeZone);if(t&&ze(t.timeZone)!==r)throw new RangeError(li);return r})(t,r),n},kn],Dc={},Sc="en-GB",Pc={era:k,eraYear:x,year:x,month:B,monthCode:k,day:B,...Ti(Li,x),...Ti(uu,q),offset:k},Nc=n(((n,t,r)=>{const e={};for(let o=0;o<n.length;o++)e[t[o]]=r[n[o]];return e}),Li,$u),jc={dateAdd(n,t,r){const e=U(r);let o,{years:i,months:u,weeks:c,days:s}=t;if(s+=R(t,5,uu)[0],i||u){let[t,r,c]=this.N(n);if(i){const[n,o]=this.j(t,r);t+=i,r=ot(n,o,this.o(t)),r=y("month",r,1,this.i(t),e)}u&&([t,r]=this.k(t,r,u)),c=y("day",c,1,this.u(t,r),e),o=this.L(t,r,c)}else{if(!c&&!s)return n;o=Dn(n)}return o+=(c*Ac+s)*Pi,Mn(Zn(o))},dateUntil(n,t,r){if(r<=7){let e=0,o=Sr(n,t);return 7===r&&([e,o]=E(o,Ac)),{...hu,weeks:e,days:o}}const e=this.N(n),o=this.N(t);let[i,u,c]=((n,t,r,e,o,i,u)=>{function c(){let[e,u]=n.j(t,r),[c,s]=n.j(o,i);a=o-t,f=n.i(o),h=a?c-e||Number(s)-Number(u):i-Math.min(r,f)}function s(){c(),l=n.u(o,i),d=u-Math.min(e,l)}let a,f,h,l,d;s();const w=Math.sign(d),m=Math.sign(a)||Math.sign(h)||w;if(m){if(w===-m){const t=l;[o,i]=n.k(o,i,-m),s(),d+=m<0?-t:l}if(Math.sign(h)===-m){const n=f;o-=m,c(),h+=m<0?-n:f}}return[a,h,d]})(this,...e,...o);return 8===r&&(u+=this.q(i,e[0]),i=0),{...hu,years:i,months:u,days:c}},dateFromFields(n,t){const r=U(t),e=Xn(this,n),o=nt(this,n,e,r),i=tt(this,n,o,e,r);return Le(Mn(this.C(e,o,i)),this.id||Nu)},yearMonthFromFields(n,t){const r=U(t),e=Xn(this,n),o=nt(this,n,e,r);return We(pn(this.C(e,o,1)),this.id||Nu)},monthDayFromFields(n,t){const r=U(t);let e,o,i,u,c,s=!this.id,{monthCode:a,year:f,month:h}=n;if(void 0!==a){[e,o]=et(a),c=p(n,"day");const t=this.F(e,o,c);if(!t)throw new RangeError(si);if([i,u]=t,void 0!==h&&h!==u)throw new RangeError(ui);s&&(u=y("month",u,1,Hc,1),c=y("day",c,1,jr(void 0!==f?f:i,u),r))}else{i=void 0===f&&s?Jc:Xn(this,n),u=nt(this,n,i,r),c=tt(this,n,u,i,r);const t=this.o(i);o=u===t,e=it(u,t);const a=this.F(e,o,c);if(!a)throw new RangeError(si);[i,u]=a}return xe(this.C(i,u,c),this.id||Nu)},fields(n){return ct(this)&&n.includes("year")?[...n,...Ji]:n},mergeFields(n,t){const r=Object.assign(Object.create(null),n);return rt(r,t,zi),ct(this)&&(rt(r,t,Hi),this.id===Yu&&rt(r,t,Xi,Ji)),r},inLeapYear(n){const[t]=this.N(n);return this.B(t)},monthsInYear(n){const[t]=this.N(n);return this.i(t)},daysInMonth(n){const[t,r]=this.N(n);return this.u(t,r)},daysInYear(n){const[t]=this.N(n);return this.U(t)},era(n){return this.J(n)[0]},eraYear(n){return this.J(n)[1]},monthCode(n){const[t,r]=this.N(n),[e,o]=this.j(t,r);return((n,t)=>"M"+Ri(n)+(t?"L":""))(e,o)},dayOfWeek:Cr,weekOfYear(n){return $r(n)[1]},yearOfWeek(n){return $r(n)[0]},daysInWeek(){return Ac}},Yc=/^M(\d{2})(L?)$/,Fc=s((n=>{function t(n){return((n,t)=>({...dt(n,t),month:n.month,day:parseInt(n.day)}))(Bn(r,n),e)}const r=wt(n),e=ft(n);if(e!==ft(r.resolvedOptions().calendar))throw new RangeError((n=>`Invalid Calendar: ${n}`)(n));return{id:n,m:ht(t),v:lt(t)}})),Zc="UTC",Cc=5184e3,$c=Nn(1847),kc=Nn((new Date).getUTCFullYear()+10),Lc=s((n=>n===Zc?new Wc(0,n):new xc(n)));class Wc{constructor(n,t=xt(n)){this._=n,this.id=t}getOffsetNanosecondsFor(n){return this._}getPossibleInstantsFor(n){return[Pn(n,this._)]}$(n,t){}}class xc{constructor(n){const t=new Gu(Sc,{timeZone:n,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"});this.id=t.resolvedOptions().timeZone,this.store=(n=>{function t(n){const t=g(n,i,u),[c,s]=It(t),a=e(c),f=e(s);return a===f?a:r(o(c,s),a,f,n)}function r(t,r,e,o){let i,u;for(;(void 0===o||void 0===(i=o<t[0]?r:o>=t[1]?e:void 0))&&(u=t[1]-t[0]);){const r=t[0]+Math.floor(u/2);n(r)===e?t[1]=r:t[0]=r+1}return i}const e=s(n),o=s(Ot);let i=$c,u=kc;return{G(n){const r=t(n-86400),e=t(n+86400),o=n-r,i=n-e;if(r===e)return[o];const u=t(o);return u===t(i)?[n-u]:r>e?[o,i]:[]},K:t,$(n,t){const c=g(n,i,u);let[s,a]=It(c);const f=Cc*t,h=t<0?()=>a>i||(i=c,0):()=>s<u||(u=c,0);for(;h();){const i=e(s),u=e(a);if(i!==u){const e=o(s,a);r(e,i,u);const c=e[0];if((m(c,n)||1)===t)return c}s+=f,a+=f}}}})((n=>t=>{const r=Bn(n,t*Ni);return Nn(dt(r,Nu).year,parseInt(r.month),parseInt(r.day),parseInt(r.hour),parseInt(r.minute),parseInt(r.second))-t})(t))}getOffsetNanosecondsFor(n){return this.store.K(Tn(n))*Fi}getPossibleInstantsFor(n){const[t,r]=[Nn((e=n).isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond),e.isoMillisecond*Yi+e.isoMicrosecond*ji+e.isoNanosecond];var e;return this.store.G(t).map((n=>En(fn(mn(n,Fi),r))))}$(n,t){const[r,e]=(n=>vn(n,Fi))(n),o=this.store.$(r+(t>0||e?1:0),t);if(void 0!==o)return mn(o,Fi)}}const qc=/0+$/,Bc=s(((n,t)=>{const{epochNanoseconds:r}=n,e=t.getOffsetNanosecondsFor(r);return{...Fn(r,e),offsetNanoseconds:e}}),WeakMap),Uc=1970,Jc=1972,Hc=12,Ac=7,_c=s((n=>{const t=Dn(n);if(t<zc)return Lr(n);Gc||(Gc=wt(Yu));const r=Bn(Gc,t),{era:e,eraYear:o}=dt(r,Yu);return[e,o]}),WeakMap),zc=jn(1868,9,8);let Gc;const Kc=s(ce,WeakMap),Qc={...jc,N(n){return[n.isoYear,n.isoMonth,n.isoDay]},J(n){return this.id===ju?Lr(n):this.id===Yu?_c(n):[void 0,void 0]},j(n,t){return[t,0]},F(n,t){if(!t)return[Jc,n]},B:Fr,o(){},i:Nr,q:n=>n*Hc,u:jr,U:Yr,dayOfYear:Zr,C(n,t,r){return{isoYear:n,isoMonth:t,isoDay:r}},L:jn,k(n,t,r){return n+=O(r,Hc),(t+=I(r,Hc))<1?(n--,t+=Hc):t>Hc&&(n++,t-=Hc),[n,t]},year(n){return n.isoYear},month(n){return n.isoMonth},day:n=>n.isoDay},Vc={...jc,N:mt,J(n){const t=this.m(n);return[t.era,t.eraYear]},j(n,t){const r=yt.call(this,n);return[it(t,r),r===t]},F(n,t,r){let[e,o,i]=mt.call(this,{isoYear:Jc,isoMonth:Hc,isoDay:31});const u=yt.call(this,e),c=o===u;1===(m(n,it(o,u))||m(Number(t),Number(c))||m(r,i))&&e--;for(let o=0;o<100;o++){const i=e-o,u=yt.call(this,i),c=ot(n,t,u);if(t===(c===u)&&r<=pt.call(this,i,c))return[i,c]}},B(n){const t=vt.call(this,n);return t>vt.call(this,n-1)&&t>vt.call(this,n+1)},o:yt,i:Mt,q(n,t){const r=t+n,e=Math.sign(n),o=e<0?-1:0;let i=0;for(let n=t;n!==r;n+=e)i+=Mt.call(this,n+o);return i},u:pt,U:vt,dayOfYear(n){const t=Dn({...n,...Bu}),{year:r}=this.m(n);return Pr(gt.call(this,r),t)},C(n,t,r){return Mn({...Zn(gt.call(this,n,t,r))})},L:gt,k(n,t,r){if(r)if(t+=r,r<0){if(t<Number.MIN_SAFE_INTEGER)throw new RangeError(gi);for(;t<1;)t+=Mt.call(this,--n)}else{if(t>Number.MAX_SAFE_INTEGER)throw new RangeError(gi);let r;for(;t>(r=Mt.call(this,n));)t-=r,n++}return[n,t]},year(n){return this.m(n).year},month(n){const{year:t,month:r}=this.m(n),{l:e}=this.v(t);return e[r]+1},day(n){return this.m(n).day}},Xc=(ns=Qc,ts=Vc,n=>n===Nu?ns:n===ju||n===Yu?Object.assign(Object.create(ns),{id:n}):Object.assign(Object.create(ts),Fc(n)));var ns,ts;const rs="([+āˆ’-])",es="(?:[.,](\\d{1,9}))?",os=`(?:(?:${rs}(\\d{6}))|(\\d{4}))-?(\\d{2})`,is="(\\d{2})(?::?(\\d{2})(?::?(\\d{2})"+es+")?)?",us=rs+is,cs=os+"-?(\\d{2})(?:[T ]"+is+"(Z|"+us+")?)?",ss="\\[(!?)([^\\]]*)\\]",as=`((?:${ss})*)`,fs=Ye(os+as),hs=Ye("(?:--)?(\\d{2})-?(\\d{2})"+as),ls=Ye(cs+as),ds=Ye("T?"+is+"(?:"+us+")?"+as),ws=Ye(us),ms=new RegExp(ss,"g"),gs=Ye(`${rs}?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)${es}H)?(?:(\\d+)${es}M)?(?:(\\d+)${es}S)?)?`),ys="PlainYearMonth",vs="PlainMonthDay",ps="PlainDate",Ms="PlainDateTime",bs="PlainTime",Es="ZonedDateTime",Os="Instant",Is="Duration",Ts={era(n){if(void 0!==n&&"string"!=typeof n)throw new TypeError("Expected string or undefined");return n},eraYear(n){if("number"==typeof n)Y(n);else if(void 0!==n)throw new TypeError("Expected integer or undefined");return n},year:N,month:j,daysInMonth:j,daysInYear:j,inLeapYear:eu,monthsInYear:j},Rs={monthCode:ru},Ds={day:j},Ss={dayOfWeek:j,dayOfYear:j,weekOfYear:j,yearOfWeek:N,daysInWeek:j},Ps={...Ts,...Rs,...Ds,...Ss},Ns={...Ke(Ts,[ys]),...Ke(Ss,[]),...Ke(Rs,[ys,vs]),...Ke(Ds,[vs])},js=Qe(Ps),Ys=Qe({...Ts,...Rs}),Fs=Qe({...Rs,...Ds}),Zs={calendarId:n=>ze(n.calendar)},Cs=r(((n,t)=>function(r){const{P:e}=this;return n(e[t](La(Le(r,e))))}),Ps),$s=o((n=>t=>t[n]),uu),ks=o(((n,t)=>n=>n[$u[t]]),Li),Ls={epochSeconds:n=>Tn(n.epochNanoseconds),epochMilliseconds:n=>Rn(n.epochNanoseconds),epochMicroseconds:n=>gn(n.epochNanoseconds,ji),epochNanoseconds:n=>gn(n.epochNanoseconds)},Ws=new WeakMap;class xs extends Gu{constructor(n,t={}){super(n,t);const r=this.resolvedOptions(),e=i(Object.keys(t),r);Ws.set(this,((n,t)=>{const r=t.locale,e=s((t=>{const[e]=qs[t],o=e(n);return new Gu(r,o)}));return(n,r)=>{const o=Ja(n),{I:i}=o||{};let u;if(void 0!==r&&(u=Ja(r),i!==(u||{}).I))throw new TypeError("Mismatching types for formatting");if(i){const n=qs[i];if(!n)throw new TypeError((n=>`Cannot format ${n}`)(i));return[e(i),...xn(n,t,o,u)]}return[]}})(e,r))}format(n){const t=Ws.get(this),[r,e]=t(n);return r?r.format(e):super.format(n)}formatToParts(n){const t=Ws.get(this),[r,e]=t(n);return r?r.formatToParts(e):super.formatToParts(n)}}["formatRange","formatRangeToParts"].forEach((n=>{const t=Gu.prototype[n];t&&Object.defineProperties(xs.prototype,f({[n](n,r){const e=Ws.get(this),[o,i,u]=e(n,r);return o?t.call(o,i,u):t.call(this,n,r)}}))}));const qs={PlainYearMonth:Mc,PlainMonthDay:bc,PlainDate:Ec,PlainDateTime:Oc,PlainTime:Ic,Instant:Tc},Bs=Ln(Mc),Us=Ln(bc),Js=Ln(Ec),Hs=Ln(Oc),As=Ln(Ic),_s=Ln(Tc),zs=Ln(Rc),[Gs,Ks,Qs]=jo(vs,n(((n,t,r,e=Nu,o=Jc)=>{const i=x(t),u=x(r),c=n(e);return xe(Mn(xr({isoYear:x(o),isoMonth:i,isoDay:u})),c)}),Fo),{...Zs,...Fs},{with(n,t,r){return Ks(((n,t,r,e,o)=>{const i=en(o);return((n,t,r,e)=>{const o=Gn(n,t,r,Vi);return n.monthDayFromFields(o,e)})(n(t.calendar),r,e,i)})(va,n,this,Yo(t),r))},equals(n,t){return!eo(r=n,e=ao(t))&&Ge(r.calendar,e.calendar);var r,e},toString:Nt,toJSON:n=>Nt(n),toLocaleString(n,t,r){const[e,o]=Us(t,r,n);return e.format(o)},toPlainDate(n,t){return La(((n,t,r,e)=>((n,t,r)=>Vn(n,t,nu,S(r),Ai))(n(t.calendar),r,e))(ya,n,this,t))},getISOFields:Ue,getCalendar:Xe,valueOf:Ve},{from:(n,t)=>Ks(ao(n,t))}),[Vs,Xs,na]=jo(ys,n(((n,t,r,e=Nu,o=1)=>{const i=x(t),u=x(r),c=n(e);return We(pn(xr({isoYear:i,isoMonth:u,isoDay:x(o)})),c)}),Fo),{...Zs,...Ys},{with(n,t,r){return Xs(((n,t,r,e,o)=>{const i=en(o);return We(((n,t,r,e)=>{const o=Gn(n,t,r,Ki);return n.yearMonthFromFields(o,e)})(n(t.calendar),r,e,i))})(ga,n,this,Yo(t),r))},add:(n,t,r)=>Xs(zr(ba,n,Io(t),r)),subtract:(n,t,r)=>Xs(zr(ba,n,Io(t),r,1)),until:(n,t,r)=>Fa(vr(Ea,n,fo(t),r)),since:(n,t,r)=>Fa(vr(Ea,n,fo(t),r,1)),equals(n,t){return!eo(r=n,e=fo(t))&&Ge(r.calendar,e.calendar);var r,e},toString:Pt,toJSON:n=>Pt(n),toLocaleString(n,t,r){const[e,o]=Bs(t,r,n);return e.format(o)},toPlainDate(n,t){return La(((n,t,r,e)=>((n,t,r)=>Vn(n,t,Qi,S(r),Gi))(n(t.calendar),r,e))(ya,n,this,t))},getISOFields:Ue,getCalendar:Xe,valueOf:Ve},{from:(n,t)=>Xs(fo(n,t)),compare:(n,t)=>eo(fo(n),fo(t))}),ta={fields(n,t,r){return[...t.call(n,r)]}},ra={dateFromFields(n,t,r,e){return Wa(t.call(n,Object.assign(Object.create(null),r),e))},...ta},ea={yearMonthFromFields(n,t,r,e){return na(t.call(n,Object.assign(Object.create(null),r),e))},...ta},oa={monthDayFromFields(n,t,r,e){return Qs(t.call(n,Object.assign(Object.create(null),r),e))},...ta},ia={mergeFields(n,t,r,e){return S(t.call(n,Object.assign(Object.create(null),r),Object.assign(Object.create(null),e)))}},ua={...ra,...ia},ca={...ea,...ia},sa={...oa,...ia},aa={dateAdd(n,t,r,e,o){return Wa(t.call(n,La(Le(r,n)),Fa(Be(e)),o))}},fa={...aa,dateUntil(n,t,r,e,o,i){return Za(t.call(n,La(Le(r,n)),La(Le(e,n)),Object.assign(Object.create(null),i,{largestUnit:Si[o]})))}},ha={...aa,day:ho},la={...fa,day:ho},da=lo(ea),wa=lo(ra),ma=lo(oa),ga=lo(ca),ya=lo(ua),va=lo(sa),pa=lo(aa),Ma=lo(fa),ba=lo(ha),Ea=lo(la),[Oa,Ia]=jo("TimeZone",(n=>{const t=Et(ru(n));return{I:"TimeZone",id:t.id,R:t}}),{id:n=>n.id},{toString:n=>n.id,toJSON:n=>n.id,getPossibleInstantsFor:({R:n},t)=>n.getPossibleInstantsFor(Ro(t)).map((n=>Sa(Ce(n)))),getOffsetNanosecondsFor:({R:n},t)=>n.getOffsetNanosecondsFor(po(t).epochNanoseconds),getOffsetStringFor(n,t){const r=po(t).epochNanoseconds;return xt(bo(this,ja).getOffsetNanosecondsFor(r))},getPlainDateTimeFor(n,t,r=Nu){const e=po(t).epochNanoseconds,o=bo(this,ja).getOffsetNanosecondsFor(e);return $a(ke(Fn(e,o),Fo(r)))},getInstantFor(n,t,r){const e=Ro(t),o=H(r),i=bo(this);return Sa(Ce(zt(i,e,o)))},getNextTransition:({R:n},t)=>wo(1,n,t),getPreviousTransition:({R:n},t)=>wo(-1,n,t),equals(n,t){return Ae(this,$o(t))}},{from(n){const t=$o(n);return"string"==typeof t?new Oa(t):t}}),[Ta,Ra]=jo(Es,n(((n,t,r,e,o=Nu)=>$e(En(wn(L(r))),t(e),n(o))),Fo,$o),{...Ls,...Zs,...go(js),...go(ks),hoursInDay:n=>((n,t)=>{const r=n(t.timeZone);return Gt(r,Bc(t,r))/Ci})(Eo,n),offsetNanoseconds:n=>yo(n).offsetNanoseconds,offset:n=>xt(yo(n).offsetNanoseconds),timeZoneId:n=>ze(n.timeZone)},{with(n,t,r){return Ra(((n,t,r,e,o,i)=>{const u=en(i),{calendar:c,timeZone:s}=r;return $e(((n,t,r,e,o)=>{const i=Gn(n,r,e,Vi,Bi,xi),[u,c,s]=J(o,2);return _t(t,{...n.dateFromFields(i,on(o,u)),...zn(i,u)},ye(i.offset),c,s)})(n(c),t(s),e,o,u),s,c)})(ya,Eo,n,this,Yo(t),r))},withPlainTime:(n,t)=>Ra(((n,t,r=Bu)=>{const e=t.timeZone,o=n(e),i={...Bc(t,o),...r};return $e(_t(o,i,i.offsetNanoseconds,2),e,t.calendar)})(Eo,n,No(t))),withPlainDate:(n,t)=>Ra(((n,t,r)=>{const e=t.timeZone,o=n(e),i={...Bc(t,o),...r},u=He(t.calendar,r.calendar);return $e(_t(o,i,i.offsetNanoseconds,2),e,u)})(Eo,n,Do(t))),withTimeZone:(n,t)=>Ra(((n,t)=>({...n,timeZone:t}))(n,$o(t))),withCalendar:(n,t)=>Ra(mo(n,Fo(t))),add:(n,t,r)=>Ra(Hr(pa,Eo,n,Io(t),r)),subtract:(n,t,r)=>Ra(Hr(pa,Eo,n,Io(t),r,1)),until:(n,t,r)=>Fa(Be(mr(Ma,Eo,n,vo(t),r))),since:(n,t,r)=>Fa(Be(mr(Ma,Eo,n,vo(t),r,1))),round:(n,t)=>Ra(((n,t,r)=>{let{epochNanoseconds:e,timeZone:o,calendar:i}=t;const[u,c,s]=_(r);if(0===u&&1===c)return t;const a=n(o),f=a.getOffsetNanosecondsFor(e);let h={...Fn(e,f),calendar:i};return h={calendar:i,...nr(h,u,c,s,a)},e=_t(a,h,f,2,0,1),$e(e,o,i)})(Eo,n,t)),startOfDay:n=>Ra(((n,t)=>{let{epochNanoseconds:r,timeZone:e,calendar:o}=t;const i=n(e);return r=_t(i,{...Bc(t,i),...Bu},void 0,0,0,1),$e(r,e,o)})(Eo,n)),equals(n,t){return!to(r=n,e=vo(t))&&Ae(r.timeZone,e.timeZone)&&Ge(r.calendar,e.calendar);var r,e},toString:(n,t)=>Rt(Oo,n,t),toJSON:n=>Rt(Oo,n),toLocaleString(n,t,r={}){const[e,o]=zs(t,r,n);return e.format(o)},toInstant:n=>Sa(Ce(n.epochNanoseconds)),toPlainDate:n=>La(co(Oo,n)),toPlainTime:n=>qa(so(Oo,n)),toPlainDateTime:n=>$a(uo(Oo,n)),toPlainYearMonth(n){return Xs(Qn(da(n.calendar),this))},toPlainMonthDay(n){return Ks(Kn(ma(n.calendar),this))},getISOFields:n=>((n,t)=>{const r=Bc(t,n(t.timeZone));return{calendar:t.calendar,...i(qu,r),offset:xt(r.offsetNanoseconds),timeZone:t.timeZone}})(Oo,n),getCalendar:Xe,getTimeZone:({timeZone:n})=>"string"==typeof n?new Oa(n):n,valueOf:Ve},{from:(n,t)=>Ra(vo(n,t)),compare:(n,t)=>to(vo(n),vo(t))}),[Da,Sa,Pa]=jo(Os,(n=>Ce(En(wn(L(n))))),Ls,{add:(n,t)=>Sa(Jr(n,Io(t))),subtract:(n,t)=>Sa(Jr(n,Io(t),1)),until:(n,t,r)=>Fa(wr(n,po(t),r)),since:(n,t,r)=>Fa(wr(n,po(t),r,1)),round:(n,t)=>Sa(((n,t)=>{const[r,e,o]=_(t,5,1);return Ce(ar(n.epochNanoseconds,r,e,o,1))})(n,t)),equals(n,t){return!no(n,po(t))},toString:(n,t)=>Tt($o,Oo,n,t),toJSON:n=>Tt($o,Oo,n),toLocaleString(n,t,r){const[e,o]=_s(t,r,n);return e.format(o)},toZonedDateTimeISO:(n,t)=>Ra(io(n,$o(t))),toZonedDateTime(n,t){const r=S(t);return Ra(io(n,$o(r.timeZone),Fo(r.calendar)))},valueOf:Ve},{from:n=>Sa(po(n)),fromEpochSeconds:n=>Sa((n=>Ce(En(mn(n,Fi))))(n)),fromEpochMilliseconds:n=>Sa((n=>Ce(En(mn(n,Yi))))(n)),fromEpochMicroseconds:n=>Sa((n=>Ce(En(wn(L(n),ji))))(n)),fromEpochNanoseconds:n=>Sa((n=>Ce(En(wn(L(n)))))(n)),compare:(n,t)=>no(po(n),po(t))}),Na={getOffsetNanosecondsFor:Mo,getPossibleInstantsFor(n,t,r){return[...t.call(n,$a(ke(r,Nu)))].map((n=>Pa(n).epochNanoseconds))}},ja={getOffsetNanosecondsFor:Mo},[Ya,Fa,Za]=jo(Is,((n=0,t=0,o=0,i=0,u=0,c=0,s=0,a=0,f=0,h=0)=>Be(se(r(q,e(uu,[n,t,o,i,u,c,s,a,f,h]))))),{...$s,blank:n=>!Kc(n),sign:n=>Kc(n)},{with:(n,t)=>Fa(((n,t)=>{return Be((r=n,e=t,se({...r,..._n(e,cu)})));var r,e})(n,t)),add:(n,t,r)=>Fa(oe(To,Ma,Eo,n,Io(t),r)),subtract:(n,t,r)=>Fa(oe(To,Ma,Eo,n,Io(t),r,1)),negated:n=>Fa(ie(n)),abs:n=>Fa((n=>{return Be(-1===Kc(t=n)?ue(t):t);var t})(n)),round:(n,t)=>Fa(((n,t,r,e,o)=>{const i=we(e),[u,c,s,a,f]=((n,t,r)=>{n=rn(n,du);let e=bu(n);const o=r(n[yu]);let i=V(n);const u=Pu(n,7);let c=Mu(n);if(void 0===e&&void 0===c)throw new RangeError("Required smallestUnit or largestUnit");return null==c&&(c=0),null==e&&(e=Math.max(c,t)),sn(e,c),i=X(i,c,1),[e,c,i,u,o]})(o,i,n),h=Math.max(i,u);if(h<6||6===h&&(!f||!f.epochNanoseconds))return Be(((n,t,r,e,o)=>({...hu,...er(n,t,r,e,o)}))(e,u,c,s,a));if(!f)throw new RangeError(vi);const l=re(t,r,f);let d=0;e.weeks&&7===c&&(d=e.weeks,e={...e,weeks:0});let[w,m]=ee(e,void 0,u,...l);const g=Kc(e),y=Kc(w);if(g&&y&&g!==y)throw new RangeError(fi);return!y||0===c&&1===s||(w=ir(w,m,u,c,s,a,...l)),w.weeks+=d,Be(w)})(To,Ma,Eo,n,t)),total:(n,t)=>((n,t,r,e,o)=>{const i=we(e),[u,c]=((n,t)=>{const r=t((n=rn(n,wu))[yu]);let e=Eu(n);return e=C(wu,e),[e,r]})(o,n),s=Math.max(u,i);if(s<6||6===s&&(!c||!c.epochNanoseconds))return((n,t)=>Qt(ae(n,6),t))(e,u);if(!c)throw new RangeError(vi);const a=re(t,r,c);return((n,t,r,e,o,i)=>{const u=Kc(n),[c,s]=Vt(le(n,r-1),r,u,e,o,i),a=Xt(c,s,t);return n[uu[r]]+a*u})(...ee(e,void 0,u,...a),u,...a)})(To,Ma,Eo,n,t),toString:Yt,toLocaleString(n,t,r){return new Intl.DurationFormat(t,r).format(this)},toJSON:n=>Yt(n),valueOf:Ve},{from:n=>Fa(Io(n)),compare:(n,t,r)=>((n,t,r,e,o,i)=>{const u=n(tn(i).relativeTo),s=Math.max(we(e),we(o));if(c(uu,e,o))return 0;if(s<6||6===s&&(!u||!u.epochNanoseconds))return dn(R(e,6,uu),R(o,6,uu));if(!u)throw new RangeError(vi);const[a,f,h]=re(t,r,u);return dn(f(h(a,e)),f(h(a,o)))})(To,Ma,Eo,Io(n),Io(t),r)}),[Ca,$a]=jo(Ms,n(((n,t,o,i,u=0,c=0,s=0,a=0,f=0,h=0,l=Nu)=>ke(bn(Wr(r(x,e(Lu,[t,o,i,u,c,s,a,f,h])))),n(l))),Fo),{...Zs,...js,...ks},{with(n,t,r){return $a(((n,t,r,e,o)=>{const i=en(o);return ke(((n,t,r,e)=>{const o=Gn(n,t,r,Vi,Li),i=U(e);return bn({...n.dateFromFields(o,on(e,i)),...zn(o,i)})})(n(t.calendar),r,e,i))})(ya,n,this,Yo(t),r))},withPlainTime:(n,t)=>$a(((n,t=Bu)=>ke({...n,...t}))(n,No(t))),withPlainDate(n,t){return $a((r=n,e=Do(t),ke({...r,...e},He(r.calendar,e.calendar))));var r,e},withCalendar:(n,t)=>$a(mo(n,Fo(t))),add:(n,t,r)=>$a(Ar(pa,n,Io(t),r)),subtract:(n,t,r)=>$a(Ar(pa,n,Io(t),r,1)),until:(n,t,r)=>Fa(gr(Ma,n,Ro(t),r)),since:(n,t,r)=>Fa(gr(Ma,n,Ro(t),r,1)),round:(n,t)=>$a(((n,t)=>ke(nr(n,..._(t)),n.calendar))(n,t)),equals(n,t){return!ro(r=n,e=Ro(t))&&Ge(r.calendar,e.calendar);var r,e},toString:(n,t)=>Dt(n,t),toJSON:n=>Dt(n),toLocaleString(n,t,r){const[e,o]=Hs(t,r,n);return e.format(o)},toZonedDateTime:(n,t,r)=>Ra(((n,t,r,e)=>$e(((n,t,r,e)=>{const o=H(e);return En(zt(n(t),r,o))})(n,r,t,e),r,t.calendar))(Eo,n,$o(t),r)),toPlainDate:n=>La(Le(n)),toPlainYearMonth(n){return Xs(((n,t,r)=>{const e=n(t.calendar);return We({...t,...Qn(e,r)})})(da,n,this))},toPlainMonthDay(n){return Ks(Kn(ma(n.calendar),this))},toPlainTime:n=>qa(qe(n)),getISOFields:Ue,getCalendar:Xe,valueOf:Ve},{from:(n,t)=>$a(Ro(n,t)),compare:(n,t)=>ro(Ro(n),Ro(t))}),[ka,La,Wa]=jo(ps,n(((n,t,e,o,i=Nu)=>Le(Mn(xr(r(x,{isoYear:t,isoMonth:e,isoDay:o}))),n(i))),Fo),{...Zs,...js},{with(n,t,r){return La(((n,t,r,e,o)=>{const i=en(o);return((n,t,r,e)=>{const o=Gn(n,t,r,Vi);return n.dateFromFields(o,e)})(n(t.calendar),r,e,i)})(ya,n,this,Yo(t),r))},withCalendar:(n,t)=>La(mo(n,Fo(t))),add:(n,t,r)=>La(_r(pa,n,Io(t),r)),subtract:(n,t,r)=>La(_r(pa,n,Io(t),r,1)),until:(n,t,r)=>Fa(yr(Ma,n,Do(t),r)),since:(n,t,r)=>Fa(yr(Ma,n,Do(t),r,1)),equals(n,t){return!eo(r=n,e=Do(t))&&Ge(r.calendar,e.calendar);var r,e},toString:St,toJSON:n=>St(n),toLocaleString(n,t,r){const[e,o]=Js(t,r,n);return e.format(o)},toZonedDateTime(n,r){const e=!t(r)||r instanceof Oa?{timeZone:r}:r;return Ra(((n,t,r,e,o)=>{const i=n(o.timeZone),u=o.plainTime,c=void 0!==u?t(u):Bu;return $e(zt(r(i),{...e,...c}),i,e.calendar)})($o,So,Eo,n,e))},toPlainDateTime:(n,t)=>$a(((n,t=Bu)=>ke(bn({...n,...t})))(n,No(t))),toPlainYearMonth(n){return Xs(Qn(da(n.calendar),this))},toPlainMonthDay(n){return Ks(Kn(ma(n.calendar),this))},getISOFields:Ue,getCalendar:Xe,valueOf:Ve},{from:(n,t)=>La(Do(n,t)),compare:(n,t)=>eo(Do(n),Do(t))}),[xa,qa]=jo(bs,((n=0,t=0,o=0,i=0,u=0,c=0)=>qe(Ur(r(x,e($u,[n,t,o,i,u,c])),1))),ks,{with(n,t,r){return qa(((n,t,r)=>qe(((n,t,r)=>{const e=U(r);return zn({...i(Wi,n),..._n(t,Wi)},e)})(n,t,r)))(this,Yo(t),r))},add:(n,t)=>qa(Gr(n,Io(t))),subtract:(n,t)=>qa(Gr(n,Io(t),1)),until:(n,t,r)=>Fa(Mr(n,So(t),r)),since:(n,t,r)=>Fa(Mr(n,So(t),r,1)),round:(n,t)=>qa(((n,t)=>qe(((n,t,r,e)=>rr(n,ur(t,r),e)[0])(n,..._(t,5))))(n,t)),equals(n,t){return!oo(n,So(t))},toString:jt,toJSON:n=>jt(n),toLocaleString(n,t,r){const[e,o]=As(t,r,n);return e.format(o)},toZonedDateTime:(n,t)=>Ra(((n,t,r,e,o)=>{const i=t(o.plainDate),u=n(o.timeZone);return $e(zt(r(u),{...i,...e}),u,i.calendar)})($o,Do,Eo,n,t)),toPlainDateTime(n,t){return $a((r=n,e=Do(t),ke(bn({...r,...e}))));var r,e},getISOFields:Ue,valueOf:Ve},{from:(n,t)=>qa(So(n,t)),compare:(n,t)=>oo(So(n),So(t))}),Ba=Po(Object.keys(Na)),Ua=new WeakMap,Ja=Ua.get.bind(Ua),Ha=Ua.set.bind(Ua),Aa={toString:n=>n.id,toJSON:n=>n.id,...Ns,dateAdd:({id:n,R:t},r,e,o)=>La(Le(t.dateAdd(Do(r),Io(e),o),n)),dateUntil:({R:n},t,r,e)=>Fa(Be(n.dateUntil(Do(t),Do(r),(n=>(n=tn(n),bu(n,9,6,1)))(e)))),dateFromFields:({id:n,R:t},r,e)=>La(Un(t,r,e,n===Nu?["year","day"]:[])),yearMonthFromFields:({id:n,R:t},r,e)=>Xs(Jn(t,r,e,n===Nu?Ai:[])),monthDayFromFields:({id:n,R:t},r,e)=>Ks(Hn(t,0,r,e,n===Nu?Gi:[])),fields({R:n},t){const r=new Set(Vi),e=[];for(const n of t){if(ru(n),!r.has(n))throw new RangeError(Ko(n));r.delete(n),e.push(n)}return n.fields(e)},mergeFields:({R:n},t,r)=>n.mergeFields(u(Z(t)),u(Z(r)))},[_a]=jo("Calendar",(n=>({I:"Calendar",id:n=ge(ru(n)),R:Xc(n)})),{id:n=>n.id},Aa,{from(n){const t=Fo(n);return"string"==typeof t?new _a(t):t}}),za=Po(Object.keys(Aa).slice(4));let Ga;const Ka=Object.defineProperties({},{...l("Temporal.Now"),...f({timeZoneId:()=>Wo(),instant:()=>Sa(Ce(Lo())),zonedDateTime:(n,t=Wo())=>Ra($e(Lo(),$o(t),Fo(n))),zonedDateTimeISO:(n=Wo())=>Ra($e(Lo(),$o(n),Nu)),plainDateTime:(n,t=Wo())=>$a(ke(ko(Oo($o(t))),Fo(n))),plainDateTimeISO:(n=Wo())=>$a(ke(ko(Oo($o(n))),Nu)),plainDate:(n,t=Wo())=>La(Le(ko(Oo($o(t))),Fo(n))),plainDateISO:(n=Wo())=>La(Le(ko(Oo($o(n))),Nu)),plainTimeISO:(n=Wo())=>qa(qe(ko(Oo($o(n)))))})}),Qa=Object.defineProperties({},{...l("Temporal"),...f({PlainYearMonth:Vs,PlainMonthDay:Gs,PlainDate:ka,PlainTime:xa,PlainDateTime:Ca,ZonedDateTime:Ta,Instant:Da,Calendar:_a,TimeZone:Oa,Duration:Ya,Now:Ka})});Object.defineProperties(globalThis,f({Temporal:Qa})),Object.defineProperties(Intl,f({DateTimeFormat:xs})),Object.defineProperties(Date.prototype,f({toTemporalInstant(){return Sa(Ce(mn(this.valueOf(),Yi)))}}))}();
!function(){"use strict";function n(n,t,r,e,o){const i=E(t,r,e);if(o&&t!==i)throw new RangeError(Vo(n,t,r,e));return i}function t(t,e,o,i,u){return n(e,r(t,e),o,i,u)}function r(n,t){const r=n[t];if(void 0===r)throw new TypeError(ni(t));return r}function e(n){return null!==n&&/object|function/.test(typeof n)}function o(n,t=Map){const r=new t;return(t,...e)=>{if(r.has(t))return r.get(t);const o=n(t,...e);return r.set(t,o),o}}function i(n){return u({name:n},1)}function u(n,t){return f((n=>({value:n,configurable:1,writable:!t})),n)}function c(n){return f((n=>({get:n,configurable:1})),n)}function s(n){return{[Symbol.toStringTag]:{value:n,configurable:1}}}function a(n,t){const r={};let e=n.length;for(const o of t)r[n[--e]]=o;return r}function f(n,t,r){const e={};for(const o in t)e[o]=n(t[o],o,r);return e}function h(n,t,r){const e={};for(let o=0;o<t.length;o++){const i=t[o];e[i]=n(i,o,r)}return e}function d(n,t){const r={};for(const e of n)r[e]=t[e];return r}function l(n,t){const r={};for(const e in t)n.has(e)||(r[e]=t[e]);return r}function w(n){n={...n};const t=Object.keys(n);for(const r of t)void 0===n[r]&&delete n[r];return n}function m(n,t,r){for(const e of n)if(t[e]!==r[e])return 0;return 1}function g(n,...t){return(...r)=>n(...t,...r)}function y(n){return n}function v(n){return n[0].toUpperCase()+n.substring(1)}function b(n){return n.slice().sort()}function p(n,t){return String(t).padStart(n,"0")}function M(n,t){return Math.sign(n-t)}function E(n,t,r){return Math.min(Math.max(n,t),r)}function O(n,t){return[Math.floor(n/t),I(n,t)]}function I(n,t){return(n%t+t)%t}function T(n,t){return[R(n,t),D(n,t)]}function R(n,t){return Math.trunc(n/t)||0}function D(n,t){return n%t||0}function S(n){return.5===Math.abs(n%1)}function j(n,t,r){let e=0,o=0;for(let i=0;i<=t;i++){const t=n[r[i]],u=Ji[i],c=Ui/u,[s,a]=T(t,c);e+=a*u,o+=s}const[i,u]=T(e,Ui);return[o+i,u]}function P(n,t,r){const e={};for(let o=t;o>=0;o--){const t=Ji[o];e[r[o]]=R(n,t),n=D(n,t)}return e}function N(n,t){let[r,e]=T(t,Ui),o=n+r;const i=Math.sign(o);return i&&i===-Math.sign(e)&&(o-=i,e+=i*Ui),[o,e]}function Y(n,t){return N(n[0],n[1]+t)}function F(n,t,r=1){return N(n[0]+t[0]*r,n[1]+t[1]*r)}function Z(n,t){return N(t[0]-n[0],t[1]-n[1])}function C(n,t){return M(n[0],t[0])||M(n[1],t[1])}function $(n,t=1){const r=BigInt(Ui/t);return[Number(n/r),Number(n%r)*t]}function k(n,t=1){const r=Ui/t,[e,o]=T(n,r);return[e,o*t]}function L(n,t=1){const[r,e]=n,o=Math.floor(e/t),i=Ui/t;return BigInt(r)*BigInt(i)+BigInt(o)}function W(n,t=1,r){const[e,o]=x(n,t);return e+(r?o/t:0)}function x(n,t){const[r,e]=n,[o,i]=O(e,t);return[r*(Ui/t)+o,i]}function q(n,t){const r=n.formatToParts(t),e={};for(const n of r)e[n.type]=n.value;return e}function B(n){return t(n,"isoYear",Cu,Zu,1),n.isoYear===Cu?t(n,"isoMonth",4,12,1):n.isoYear===Zu&&t(n,"isoMonth",1,9,1),n}function U(n){return J({...n,...Su,isoHour:12}),n}function J(n){const r=t(n,"isoYear",Cu,Zu,1),e=r===Cu?1:r===Zu?-1:0;return e&&H(Q({...n,isoDay:n.isoDay+e,isoNanosecond:n.isoNanosecond-e})),n}function H(n){if(!n||-1===C(n,Fu)||1===C(n,Yu))throw new RangeError(Ei);return n}function A(n){return j(n,5,Eu)[1]}function z(n){const[t,r]=O(n,Ui);return[P(r,5,Eu),t]}function _(n){return W(n,xi)}function G(n){return W(n,Wi)}function K(n){return nn(n.isoYear,n.isoMonth,n.isoDay,n.isoHour,n.isoMinute,n.isoSecond,n.isoMillisecond)}function Q(n){const t=K(n);if(void 0!==t){const[r,e]=T(t,$i);return[r,e*Wi+(n.isoMicrosecond||0)*Li+(n.isoNanosecond||0)]}}function V(n,t){const[r,e]=z(A(n)-t);return H(Q({...n,isoDay:n.isoDay+e,...r}))}function X(...n){return nn(...n)/ki}function nn(...n){const[t,r]=tn(...n),e=t.getTime();if(!isNaN(e))return e-r*$i}function tn(n,t=1,r=1,e=0,o=0,i=0,u=0){const c=n===Cu?1:n===Zu?-1:0,s=new Date;return s.setUTCHours(e,o,i,u),s.setUTCFullYear(n,t-1,r+c),[s,c]}function rn(n,t){let[r,e]=Y(n,t);e<0&&(e+=Ui,r-=1);const[o,i]=O(e,Wi),[u,c]=O(i,Li);return{...en(r*$i+o),isoMicrosecond:u,isoNanosecond:c}}function en(n){const t=n<-$i*Nu?1:n>$i*Nu?-1:0,r=new Date(n+t*$i);return a(Iu,[r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate()-t,r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds()])}function on(){return Lu}function un(n,t){switch(t){case 2:return sn(n)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function cn(n){return sn(n)?366:365}function sn(n){return n%4==0&&(n%100!=0||n%400==0)}function an(n){return we(K(dn(n)),K({...n,...Su}))+1}function fn(n){const[t,r]=tn(n.isoYear,n.isoMonth,n.isoDay);return I(t.getUTCDay()-r,7)||7}function hn(n){const t=an(n),r=fn(n),e=fn(dn(n)),o=Math.floor((t-r+10)/Wu),{isoYear:i}=n;return o<1?[i-1,5===e||6===e&&sn(i-1)?53:52]:53===o&&cn(i)-t<4-r?[i+1,1]:[i,o]}function dn(n){return{...n,isoMonth:1,isoDay:1,...Su}}function ln({isoYear:n}){return n<1?["bce",1-n]:["ce",n]}function wn(n){return mn(n),vn(n,1),n}function mn(n){return yn(n,1),n}function gn(n){return m(Ou,n,yn(n))}function yn(n,r){const{isoYear:e}=n,o=t(n,"isoMonth",1,on(),r);return{isoYear:e,isoMonth:o,isoDay:t(n,"isoDay",1,un(e,o),r)}}function vn(n,r){return a(Eu,[t(n,"isoHour",0,23,r),t(n,"isoMinute",0,59,r),t(n,"isoSecond",0,59,r),t(n,"isoMillisecond",0,999,r),t(n,"isoMicrosecond",0,999,r),t(n,"isoNanosecond",0,999,r)])}function bn(n){if(!e(n))throw new TypeError(Qo);return n}function pn(n,t,r=n){if(typeof t!==n)throw new TypeError(Xo(r,t));return t}function Mn(n){return On(Ju(n))}function En(n){return In(Mn(n))}function On(n,t="number"){if(!Number.isInteger(n))throw new RangeError(Ho(t,n));return n||0}function In(n,t="number"){if(n<=0)throw new RangeError(Ao(t,n));return n}function Tn(n){if(null==n)throw new TypeError("Cannot be null or undefined");return n}function Rn(n,t){if(null==t)throw new RangeError(ni(n));return t}function Dn(n){if("symbol"==typeof n)throw new TypeError(Ko);return String(n)}function Sn(n,t){return e(n)?String(n):Bu(n,t)}function jn(n){if("string"==typeof n)return BigInt(n);if("bigint"!=typeof n)throw new TypeError(Go(n));return n}function Pn(n,t="number"){if("bigint"==typeof n)throw new TypeError(_o(t));if(n=Number(n),!Number.isFinite(n))throw new RangeError(zo(t,n));return n}function Nn(n,t){return Math.trunc(Pn(n,t))||0}function Yn(n,t){return On(Pn(n,t),t)}function Fn(n,t){return In(Nn(n,t),t)}function Zn(n){return void 0===n?0:rc(bn(n))}function Cn(n,t=0){n=An(n);const r=ec(n),e=oc(n,t);return[rc(n),e,r]}function $n(n){return ec(An(n))}function kn(n,t,r,e=9,o=0,i=4){t=An(t);let u=nc(t,e,o),c=Un(t),s=sc(t,i);const a=Xu(t,e,o,1);return null==u?u=Math.max(r,a):Vn(u,a),c=Jn(c,a,1),n&&(s=(n=>n<4?(n+2)%4:n)(s)),[u,a,c,s]}function Ln(n,t=6,r){let e=Un(n=zn(n,Au));const o=sc(n,7);let i=Xu(n,t);return i=Rn(Au,i),e=Jn(e,i,void 0,r),[i,e,o]}function Wn(n){return ic(An(n))}function xn(n,t){return qn(An(n),t)}function qn(n,t=4){const r=Hn(n);return[sc(n,4),...Bn(Xu(n,t),r)]}function Bn(n,t){return null!=n?[Ji[n],n<4?9-3*n:-1]:[void 0===t?1:10**(9-t),t]}function Un(n){const t=n[_u];return void 0===t?1:Nn(t,_u)}function Jn(t,r,e,o){const i=o?Ui:Ji[r+1];if(i){const e=Ji[r];if(i%((t=n(_u,t,1,i/e-(o?0:1),1))*e))throw new RangeError(Xo(_u,t))}else t=n(_u,t,1,e?10**9:1,1);return t}function Hn(t){let r=t[Gu];if(void 0!==r){if("number"!=typeof r){if("auto"===Dn(r))return;throw new RangeError(Xo(Gu,r))}r=n(Gu,Math.floor(r),0,9,1)}return r}function An(n){return void 0===n?{}:bn(n)}function zn(n,t){return"string"==typeof n?{[t]:n}:bn(n)}function _n(n){if(void 0!==n){if(e(n))return Object.assign(Object.create(null),n);throw new TypeError(Qo)}}function Gn(n,t){return n&&Object.assign(Object.create(null),n,{overflow:Vu[t]})}function Kn(t,r,e=9,o=0,i){let u=r[t];if(void 0===u)return i?o:void 0;if(u=Dn(u),"auto"===u)return i?o:null;let c=Zi[u];if(void 0===c&&(c=bu[u]),void 0===c)throw new RangeError(Xo(t,u));return n(t,c,o,e,1),c}function Qn(n,t,r,e=0){const o=r[n];if(void 0===o)return e;const i=Dn(o),u=t[i];if(void 0===u)throw new RangeError(Xo(n,i));return u}function Vn(n,t){if(t>n)throw new RangeError(Ri)}function Xn(n){return{branding:mc,epochNanoseconds:n}}function nt(n,t,r){return{branding:wc,calendar:r,timeZone:t,epochNanoseconds:n}}function tt(n,t=n.calendar){return{branding:dc,calendar:t,...d(Du,n)}}function rt(n,t=n.calendar){return{branding:hc,calendar:t,...d(Tu,n)}}function et(n,t=n.calendar){return{branding:ac,calendar:t,...d(Tu,n)}}function ot(n,t=n.calendar){return{branding:fc,calendar:t,...d(Tu,n)}}function it(n){return{branding:lc,...d(Ru,n)}}function ut(n){return{branding:gc,...d(gu,n)}}function ct(n){return"string"==typeof n?n:Bu(n.id)}function st(n,t){return n===t||ct(n)===ct(t)}function at(n,t){return W(n,Ji[t],1)}function ft(n,t,r,e,o,i){const u={...pu,[mu[t]]:r},c=i(e,n),s=i(c,u);return[o(c),o(s)]}function ht(n,t,r){const e=W(Z(n,t));if(!e)throw new RangeError(mi);return W(Z(n,r))/e}function dt(n,t,r,e,o){return 6===t?((n,t,r)=>{if(t){const e=Kt(t,n);return J({...fr(n,bt(A(n),e,r)/e),...Su})}return lt(n,Ui,r)})(n,o,e):lt(n,vt(t,r),e)}function lt(n,t,r){const[e,o]=wt(n,t,r);return J({...fr(n,o),...e})}function wt(n,t,r){return z(bt(A(n),t,r))}function mt(n,t,r,e,o){return br(Mt(vr(n,6),r,e,o),t)}function gt(n,t,r,e){return br(Et(vr(n,t),r,e),t)}function yt(n,t,r,e,o,i,u,c,s){const a=c===y?e>6?Tt:6===e?Ot:It:e>6?Tt:Ot;let[f,h,d]=a(n,t,r,e,o,i,u,c,s);return d&&(f=((n,t,r,e,o,i,u)=>{const c=Ic(n);for(let s=e+1;s<=r;s++){if(7===s&&7!==r)continue;const e=Mr(n,s-1);e[mu[s]]+=c;const a=W(Z(i(u(o,e)),t));if(a&&Math.sign(a)!==c)break;n=e}return n})(f,h,r,Math.max(6,e),u,c,s)),f}function vt(n,t){return Ji[n]*t}function bt(n,t,r){return((n,t)=>yc[t](n))(n/t,r)*t}function pt(n){return bt(n,qi,7)}function Mt(n,t,r,e,o){return 6===t?[bt(at(n,6),r,e),0]:Et(n,vt(t,r),e,o)}function Et(n,t,r,e){let[o,i]=n;e&&i<0&&(i+=Ui,o-=1);const[u,c]=O(bt(i,t,r),Ui);return N(o+u,c)}function Ot(n,t,r,e,o,i){const u=Ic(n),c=vr(n,6),s=Mt(c,e,o,i),a=Z(c,s),f=Math.sign(s[0]-c[0])===u,h=br(s,Math.min(r,6));return[{...n,...h},F(t,a),f]}function It(n,t,r,e,o,i,u,c,s){const a=Ic(n);let[f,h]=j(n,5,mu);const d=vt(e,o);let l=bt(h,d,i);const[w,m]=ft({...n,...Mu},6,a,u,c,s),g=l-W(Z(w,m));g&&Math.sign(g)!==a?t=Y(w,l):(f+=a,l=bt(g,d,i),t=Y(m,l));const y=pr(l);return[{...n,...y,days:n.days+f},t,Boolean(f)]}function Tt(n,t,r,e,o,i,u,c,s){const a=Ic(n),f=mu[e],h=Mr(n,e-1),d=R(n[f],o)*o;h[f]=d;const[l,w]=ft(h,e,o*a,u,c,s),m=d+ht(l,w,t)*a*o,g=bt(m,o,i),y=Math.sign(g-m)===a;return h[f]=g,[h,y?w:l,y]}function Rt(n,t,r,e){const[o,i,u,c]=(n=>{const t=qn(n=An(n));return[n.timeZone,...t]})(e),s=void 0!==o;return((n,t,r,e,o,i)=>{r=Et(r,o,e,1);const u=t.getOffsetNanosecondsFor(r);return $t(rn(r,u),i)+(n?qt(pt(u)):"Z")})(s,t(s?n(o):vc),r.epochNanoseconds,i,u,c)}function Dt(n,t,r){return((n,t,r,e,o,i,u,c,s,a)=>{e=Et(e,s,c,1);const f=n(r).getOffsetNanosecondsFor(e);return $t(rn(e,f),a)+qt(pt(f),u)+((n,t)=>1!==t?"["+(2===t?"!":"")+ct(n)+"]":"")(r,i)+Bt(t,o)})(n,t.calendar,t.timeZone,t.epochNanoseconds,...(n=>{n=An(n);const t=ic(n),r=Hn(n),e=cc(n),o=sc(n,4),i=Xu(n,4);return[t,uc(n),e,o,...Bn(i,r)]})(r))}function St(n,t){return((n,t,r,e,o,i)=>$t(lt(t,o,e),i)+Bt(n,r))(n.calendar,n,...(n=>(n=An(n),[ic(n),...qn(n)]))(t))}function jt(n,t){return r=n.calendar,e=n,o=Wn(t),kt(e)+Bt(r,o);var r,e,o}function Pt(n,t){return Zt(n.calendar,Lt,n,Wn(t))}function Nt(n,t){return Zt(n.calendar,Wt,n,Wn(t))}function Yt(n,t){return((n,t,r,e)=>xt(wt(n,r,t)[0],e))(n,...xn(t))}function Ft(n,t){const[r,e,o]=xn(t,3);return e>1&&(n={...n,...gt(n,Math.min(Or(n),6),e,r)}),((n,t)=>{const r=Ic(n),e=-1===r?mr(n):n,{hours:o,minutes:i}=e,[u,c]=x(j(e,3,mu),xi),s=Jt(c,t),a=t>=0||!r||s;return(r<0?"-":"")+"P"+Ct({Y:At(e.years),M:At(e.months),W:At(e.weeks),D:At(e.days)})+(o||i||u||a?"T"+Ct({H:At(o),M:At(i),S:At(u,a)+s}):"")})(n,o)}function Zt(n,t,r,e){const o=ct(n),i=e>1||0===e&&o!==au;return 1===e?o===au?t(r):kt(r):i?kt(r)+Ut(o,2===e):t(r)}function Ct(n){const t=[];for(const r in n){const e=n[r];e&&t.push(e,r)}return t.join("")}function $t(n,t){return kt(n)+"T"+xt(n,t)}function kt(n){return Lt(n)+"-"+Fi(n.isoDay)}function Lt(n){const{isoYear:t}=n;return(t<0||t>9999?Ht(t)+p(6,Math.abs(t)):p(4,t))+"-"+Fi(n.isoMonth)}function Wt(n){return Fi(n.isoMonth)+"-"+Fi(n.isoDay)}function xt(n,t){const r=[Fi(n.isoHour),Fi(n.isoMinute)];return-1!==t&&r.push(Fi(n.isoSecond)+((n,t,r,e)=>Jt(n*Wi+t*Li+r,e))(n.isoMillisecond,n.isoMicrosecond,n.isoNanosecond,t)),r.join(":")}function qt(n,t=0){if(1===t)return"";const[r,e]=O(Math.abs(n),Bi),[o,i]=O(e,qi),[u,c]=O(i,xi);return Ht(n)+Fi(r)+":"+Fi(o)+(u||c?":"+Fi(u)+Jt(c):"")}function Bt(n,t){if(1!==t){const r=ct(n);if(t>1||0===t&&r!==au)return Ut(r,2===t)}return""}function Ut(n,t){return"["+(t?"!":"")+"u-ca="+n+"]"}function Jt(n,t){let r=p(9,n);return r=void 0===t?r.replace(Ec,""):r.slice(0,t),r?"."+r:""}function Ht(n){return n<0?"-":"+"}function At(n,t){return n||t?n.toLocaleString("fullwide",{useGrouping:0}):""}function zt(n,t){return rn(t,n.getOffsetNanosecondsFor(t))}function _t(n,t,r,e=0,o=0,i,u){if(void 0!==r&&1===e&&(1===e||u))return V(t,r);const c=n.getPossibleInstantsFor(t);if(void 0!==r&&3!==e){const n=((n,t,r,e)=>{const o=Q(t);e&&(r=pt(r));for(const t of n){let n=W(Z(t,o));if(e&&(n=pt(n)),n===r)return t}})(c,t,r,i);if(void 0!==n)return n;if(0===e)throw new RangeError(pi)}return u?Q(t):Gt(n,t,o,c)}function Gt(n,t,r=0,e=n.getPossibleInstantsFor(t)){if(1===e.length)return e[0];if(1===r)throw new RangeError(Mi);if(e.length)return e[3===r?1:0];const o=Q(t),i=((n,t)=>{const r=n.getOffsetNanosecondsFor(Y(t,-Ui));return n.getOffsetNanosecondsFor(Y(t,Ui))-r})(n,o),u=i*(2===r?-1:1);return(e=n.getPossibleInstantsFor(rn(o,u)))[2===r?0:e.length-1]}function Kt(n,t){t={...t,...Su};const r=W(Z(Gt(n,{...t,...Su}),Gt(n,{...fr(t,1),...Su})));if(r<=0)throw new RangeError(mi);return r}function Qt(n){if(Math.abs(n)>=Ui)throw new RangeError(bi);return n}function Vt(n,t,r){return Xn(H(F(t.epochNanoseconds,(n=>{if(Er(n))throw new RangeError(Ti);return vr(n,5)})(n?mr(r):r))))}function Xt(n,t,r,e,o,i=Object.create(null)){const u=t(e.timeZone),c=or(n(e.calendar),u,e.epochNanoseconds,r?mr(o):o,i);return{...e,epochNanoseconds:c}}function nr(n,t,r,e,o=Object.create(null)){return tt({...r,...ir(n(r.calendar),r,t?mr(e):e,o)})}function tr(n,t,r,e,o){return{...r,...ur(n(r.calendar),r,t?mr(e):e,o)}}function rr(n,t,r,e,o=Object.create(null)){const i=r.calendar,u=n(i);let c=cr(u,r);t&&(e=wr(e)),Ic(e)<0&&(c=u.dateAdd(c,{...pu,months:1}),c=fr(c,-1));const s=u.dateAdd(c,e,o);return et(cr(u,s),i)}function er(n,t,r){return it(sr(t,n?mr(r):r)[0])}function or(n,t,r,e,o){const i=vr(e,5);if(Er(e)){const u=zt(t,r);r=F(Gt(t,{...ur(n,u,{...e,...Mu},o),...d(Eu,u),calendar:au}),i)}else r=F(r,i),Zn(o);return H(r)}function ir(n,t,r,e){const[o,i]=sr(t,r);return J({...ur(n,t,{...r,...Mu,days:r.days+i},e),...o})}function ur(n,t,r,e){if(r.years||r.months||r.weeks)return n.dateAdd(t,r,e);Zn(e);const o=r.days+j(r,5,mu)[0];return o?U(fr(t,o)):t}function cr(n,t){return fr(t,1-n.day(t))}function sr(n,t){const[r,e]=j(t,5,mu),[o,i]=z(A(n)+e);return[o,r+i]}function ar(t,r,e){const o=Zn(e);let i,{years:u,months:c,weeks:s,days:a}=r;if(a+=j(r,5,mu)[0],u||c){let[r,e,s]=this.u(t);if(u){const[t,i]=this.l(r,e);r+=u,e=Pe(t,i,this.F(r)),e=n("month",e,1,this.O(r),o)}c&&([r,e]=this.L(r,e,c)),s=n("day",s,1,this.k(r,e),o),i=this.U(r,e,s)}else{if(!s&&!a)return t;i=K(t)}return i+=(s*Wu+a)*$i,U(en(i))}function fr(n,t){return t&&(n=en(K(n)+t*$i)),n}function hr(n,t,r){const{calendar:e,timeZone:o,epochNanoseconds:i}=r,u=n(e);if(i){const n=t(o);return[i,y,g(or,u,n),g(ue,u,n)]}return[{...r,...Su},Q,g(ir,u),g(ce,u)]}function dr(n,t,r,e,o,i,u){let c=i(e,n);return t&&(c=i(c,t)),[u(e,c,r),o(c)]}function lr(n,t,r,e,o,i,u){const c=n(An(u).relativeTo),s=Math.max(Or(o),Or(i));if(s<6||6===s&&(!c||!c.epochNanoseconds))return ut(((n,t,r,e)=>{const o=F(vr(n,6),vr(t,6),e?-1:1);if(!Number.isFinite(o[0]))throw new RangeError(Ei);return{...pu,...br(o,r)}})(o,i,s,e));if(!c)throw new RangeError(Ii);return e&&(i=mr(i)),ut(dr(o,i,s,...hr(t,r,c))[0])}function wr(n){return ut(mr(n))}function mr(n){const t={};for(const r of mu)t[r]=-1*n[r]||0;return t}function gr(n,t=mu){let r=0;for(const e of t){const t=Math.sign(n[e]);if(t){if(r&&r!==t)throw new RangeError(Oi);r=t}}return r}function yr(n){return Ic(n),n}function vr(n,t){return j(n,t,mu)}function br(n,t=6){const[r,e]=n,o=P(e,t,mu);if(o[mu[t]]+=r*(Ui/Ji[t]),!Number.isFinite(o[mu[t]]))throw new RangeError(Ei);return o}function pr(n,t=5){return P(n,t,mu)}function Mr(n,t){const r={...n};for(let n=0;n<=t;n++)r[mu[n]]=0;return r}function Er(n){return Boolean(gr(n,vu))}function Or(n){let t=9;for(;t>0&&!n[mu[t]];t--);return t}function Ir(n,t){return[n,t]}function Tr(n){const t=Math.floor(n/bc)*bc;return[t,t+bc]}function Rr(n){const t=$r(n);if(void 0===t)throw new RangeError(Di(n));return t}function Dr(n){const t=Fr(Bu(n));if(!t||t.o)throw new RangeError(Di(n));return rt(t.i?Pr(t):Nr(t))}function Sr(n){if(n.calendar!==au)throw new RangeError(Si(n.calendar))}function jr(n,t,r=0,e=0){const o=Jr(n.timeZone),i=Tc(o);return nt(_t(i,wn(n),t,r,e,!i.h,n.o),o,De(n.calendar))}function Pr(n){return Yr(J(wn(n)))}function Nr(n){return Yr(U(mn(n)))}function Yr(n){return{...n,calendar:De(n.calendar)}}function Fr(n){const t=Lc.exec(n);return t?(n=>{const t=n[10],r="Z"===(t||"").toUpperCase();return{isoYear:kr(n),isoMonth:parseInt(n[4]),isoDay:parseInt(n[5]),...Lr(n.slice(5)),...Wr(n[16]),i:Boolean(n[6]),o:r,offset:r?void 0:t}})(t):void 0}function Zr(n){const t=$c.exec(n);return t?(n=>({isoYear:kr(n),isoMonth:parseInt(n[4]),isoDay:1,...Wr(n[5])}))(t):void 0}function Cr(n){const t=kc.exec(n);return t?(n=>({isoYear:ku,isoMonth:parseInt(n[1]),isoDay:parseInt(n[2]),...Wr(n[3])}))(t):void 0}function $r(n,t){const r=xc.exec(n);return r?((n,t)=>{const r=n[4]||n[5];if(t&&r)throw new RangeError(Si(r));return Qt((Ur(n[2])*Bi+Ur(n[3])*qi+Ur(n[4])*xi+xr(n[5]||""))*Br(n[1]))})(r,t):void 0}function kr(n){const t=Br(n[1]),r=parseInt(n[2]||n[3]);if(t<0&&!r)throw new RangeError(Si(-0));return t*r}function Lr(n){const t=Ur(n[3]);return{...z(xr(n[4]||""))[0],isoHour:Ur(n[1]),isoMinute:Ur(n[2]),isoSecond:60===t?59:t}}function Wr(n){let t,r;const e=[];if(n.replace(qc,((n,o,i)=>{const u=Boolean(o),[c,s]=i.split("=").reverse();if(s){if("u-ca"===s)e.push(c),t||(t=u);else if(u)throw new RangeError(Si(n))}else{if(r)throw new RangeError(Si(n));r=c}return""})),e.length>1&&t)throw new RangeError(Si(n));return{timeZone:r,calendar:e[0]||au}}function xr(n){return parseInt(n.padEnd(9,"0"))}function qr(n){return new RegExp(`^${n}$`,"i")}function Br(n){return n&&"+"!==n?-1:1}function Ur(n){return void 0===n?0:parseInt(n)}function Jr(n){const t=Ar(n);return"number"==typeof t?qt(t):t?(n=>n.toLowerCase().split("/").map(((n,t)=>(n.length<=3||/\d/.test(n))&&!/etc|yap/.test(n)?n.toUpperCase():n.replace(/baja|dumont|[a-z]+/g,((n,r)=>n.length<=2&&!t||"in"===n||"chat"===n?n.toUpperCase():n.length>2||!r?v(n).replace(/island|noronha|murdo|rivadavia|urville/,v):n)))).join("/"))(n):vc}function Hr(n){const t=Ar(n);return"number"==typeof t?t:t?t.resolvedOptions().timeZone:vc}function Ar(n){const t=$r(n=n.toUpperCase(),1);return void 0!==t?t:n!==vc?Uc(n):void 0}function zr(n,t){return C(n.epochNanoseconds,t.epochNanoseconds)}function _r(n,t){return C(n.epochNanoseconds,t.epochNanoseconds)}function Gr(n,t){return Kr(n,t)||Qr(n,t)}function Kr(n,t){return M(K(n),K(t))}function Qr(n,t){return M(A(n),A(t))}function Vr(n,t){if(n===t)return 1;const r=ct(n),e=ct(t);if(r===e)return 1;try{return Hr(r)===Hr(e)}catch(n){}}function Xr(n,t,r,e){const o=kn(n,_n(e),3,5),i=fe(t.epochNanoseconds,r.epochNanoseconds,...o);return ut(n?mr(i):i)}function ne(n,t,r,e,o,i){const u=me(e.calendar,o.calendar),c=_n(i),[s,a,f,h]=kn(r,c,5),d=e.epochNanoseconds,l=o.epochNanoseconds,w=C(l,d);let m;if(w)if(s<6)m=fe(d,l,s,a,f,h);else{const r=t(((n,t)=>{if(!Vr(n,t))throw new RangeError(vi);return n})(e.timeZone,o.timeZone)),i=n(u);m=se(i,r,w,d,l,s,c),!w||0===a&&1===f||(m=yt(m,l,s,a,f,h,d,y,g(or,i,r)))}else m=pu;return ut(r?mr(m):m)}function te(n,t,r,e,o){const i=me(r.calendar,e.calendar),u=_n(o),[c,s,a,f]=kn(t,u,6),h=Q(r),d=Q(e),l=C(d,h);let w;if(l)if(c<=6)w=fe(h,d,c,s,a,f);else{const t=n(i);w=ae(t,l,r,e,c,u),!l||0===s&&1===a||(w=yt(w,d,c,s,a,f,r,Q,g(ir,t)))}else w=pu;return ut(t?mr(w):w)}function re(n,t,r,e,o){const i=me(r.calendar,e.calendar),u=_n(o);return oe(t||0,(()=>n(i)),r,e,...kn(t,u,6,9,6),u)}function ee(n,t,r,e,o){const i=me(r.calendar,e.calendar),u=_n(o),c=kn(t,u,9,9,8),s=n(i);return oe(t||0,(()=>s),cr(s,r),cr(s,e),...c,u)}function oe(n,t,r,e,o,i,u,c,s){const a=Q(r),f=Q(e);let h;if(C(f,a)){let n;6===o?h=de(r,e):(n=t(),h=n.dateUntil(r,e,o,s)),6===i&&1===u||(n||(n=t()),h=yt(h,f,o,i,u,c,r,Q,((t,r)=>n.dateAdd(t,r))))}else h=pu;return ut(n?mr(h):h)}function ie(n,t,r,e){const o=_n(e),[i,u,c,s]=kn(n,o,5,5),a=A(t),f=bt(A(r)-a,vt(u,c),s),h={...pu,...pr(f,i)};return ut(n?mr(h):h)}function ue(n,t,r,e,o,i){const u=C(e,r);return u?o<6?he(r,e,o):se(n,t,u,r,e,o,i):pu}function ce(n,t,r,e,o){const i=Q(t),u=Q(r),c=C(u,i);return c?e<=6?he(i,u,e):ae(n,c,t,r,e,o):pu}function se(n,t,r,e,o,i,u){const c=zt(t,e),s=d(Eu,c),a=zt(t,o),f=g(Gt,t);let h,l,w,m=0;do{if(m>2)throw new RangeError(mi);h={...fr(a,m++*-r),...s},l=f(h),w=C(o,l)}while(w===-r);return{...6===i?de(c,h):n.dateUntil(c,h,i,u),...pr(W(Z(l,o)))}}function ae(n,t,r,e,o,i){const u=A(r);let c=A(e)-u,s=r;return Math.sign(c)===-t&&(s=fr(r,t),c+=Ui*t),{...n.dateUntil({...s,...Su},{...e,...Su},o,i),...pr(c)}}function fe(n,t,r,e,o,i){return{...pu,...br(Mt(Z(n,t),e,o,i),r)}}function he(n,t,r){return{...pu,...br(Z(n,t),r)}}function de(n,t){return{...pu,days:le(n,t)}}function le(n,t){return we(K(n),K(t))}function we(n,t){return Math.round((t-n)/$i)}function me(n,t){if(!st(n,t))throw new RangeError(yi);return n}function ge(n){return o((t=>{const r=K(t);return n(r)}),WeakMap)}function ye(n){const t=n(0).year-$u;return o((r=>{let e,o=nn(r-t);const i=[],u=[];do{o+=400*$i}while((e=n(o)).year<=r);do{o+=(1-e.day)*$i,e.year===r&&(i.push(o),u.push(e.month)),o-=$i}while((e=n(o)).year>=r);return{P:i.reverse(),v:Ni(u.reverse())}}))}function ve(n,t){let r,e,o=be(n);if(n.era){const u=du[t];void 0!==u&&(i=(i=n.era).normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g,""),r=lu[i]||i,e=o,o=Ye(e,u[r]||0))}var i;return{era:r,eraYear:e,year:o}}function be(n){return parseInt(n.relatedYear||n.year)}function pe(n){const{year:t,month:r,day:e}=this.I(n),{v:o}=this.N(t);return[t,o[r]+1,e]}function Me(n,t=1,r=1){return this.N(n).P[t-1]+(r-1)*$i}function Ee(n){const t=Re(this,n),r=Re(this,n-1),e=t.length;if(e>r.length){const n=Ze(this);if(n<0)return-n;for(let n=0;n<e;n++)if(t[n]!==r[n])return n+1}}function Oe(n){return we(Me.call(this,n),Me.call(this,n+1))}function Ie(n,t){const{P:r}=this.N(n);let e=t+1,o=r;return e>r.length&&(e=1,o=this.N(n+1).P),we(r[t-1],o[e-1])}function Te(n){return this.N(n).P.length}function Re(n,t){return Object.keys(n.N(t).v)}function De(n){if((n=(n=>("islamicc"===(n=n.toLowerCase())&&(n="islamic-civil"),n))(n))!==au&&n!==fu&&Se(n)!==Se(Hc(n).resolvedOptions().calendar))throw new RangeError(gi(n));return n}function Se(n){return n.split("-")[0]}function je(n){const t=zc.exec(n);if(!t)throw new RangeError(fi(n));return[parseInt(t[1]),Boolean(t[2])]}function Pe(n,t,r){return n+(t||r&&n>=r?1:0)}function Ne(n,t){return n-(t&&n>=t?1:0)}function Ye(n,t){return(t+n)*(Math.sign(t)||1)||0}function Fe(n){return du[Ce(n)]}function Ze(n){return wu[Ce(n)]}function Ce(n){return Se(n.id||au)}function $e(n,t,r,e=[]){const o=We(n,t,iu,e);return n.dateFromFields(o,r)}function ke(n,t,r,e){const o=We(n,t,eu,e);return n.yearMonthFromFields(o,r)}function Le(n,t,r,e,o=[]){const i=We(n,r,iu,o);return t&&void 0!==i.month&&void 0===i.monthCode&&void 0===i.year&&(i.year=ku),n.monthDayFromFields(i,e)}function We(n,t,r,e=[],o=[]){return xe(t,[...n.fields(r),...o].sort(),e)}function xe(n,t,r,e=!r){const o={};let i,u=0;for(const e of t){if(e===i)throw new RangeError(ri(e));if("constructor"===e||"__proto__"===e)throw new RangeError(ti(e));let t=n[e];if(void 0!==t)u=1,_c[e]&&(t=_c[e](t,e)),o[e]=t;else if(r){if(r.includes(e))throw new TypeError(ni(e));o[e]=su[e]}i=e}if(e&&!u)throw new TypeError(ei);return o}function qe(n,t){return vn(Gc({...su,...n}),t)}function Be(n,t,r,e,o=[],i=[]){const u=[...n.fields(e),...o].sort();let c=xe(t,u,i);const s=xe(r,u);return c=n.mergeFields(c,s),xe(c,u,[])}function Ue(n,t){const r=We(n,t,cu);return n.monthDayFromFields(r)}function Je(n,t,r){const e=We(n,t,ou);return n.yearMonthFromFields(e,r)}function He(n,t,r,e,o){t=d(r=n.fields(r),t),e=xe(e,o=n.fields(o),[]);let i=n.mergeFields(t,e);return i=xe(i,[...r,...o].sort(),[]),n.dateFromFields(i)}function Ae(n,t){let{era:r,eraYear:e,year:o}=t;const i=Fe(n);if(void 0!==r||void 0!==e){if(void 0===r||void 0===e)throw new TypeError(ui);if(!i)throw new RangeError(ii);const n=i[r];if(void 0===n)throw new RangeError(si(r));const t=Ye(e,n);if(void 0!==o&&o!==t)throw new RangeError(ci);o=t}else if(void 0===o)throw new TypeError(ai(i));return o}function ze(t,r,e,o){let{month:i,monthCode:u}=r;if(void 0!==u){const n=((n,t,r,e)=>{const o=n.F(r),[i,u]=je(t);let c=Pe(i,u,o);if(u){const t=Ze(n);if(void 0===t)throw new RangeError(wi);if(t>0){if(c>t)throw new RangeError(wi);if(void 0===o){if(1===e)throw new RangeError(wi);c--}}else{if(c!==-t)throw new RangeError(wi);if(void 0===o&&1===e)throw new RangeError(wi)}}return c})(t,u,e,o);if(void 0!==i&&i!==n)throw new RangeError(hi);i=n,o=1}else if(void 0===i)throw new TypeError(di);return n("month",i,1,t.O(e),o)}function _e(n,r,e,o,i){return t(r,"day",1,n.k(o,e),i)}function Ge(n,t,r,e){let o=0;const i=[];for(const n of r)void 0!==t[n]?o=1:i.push(n);if(Object.assign(n,t),o)for(const t of e||i)delete n[t]}function Ke(n,t,r=au){return nt(n.epochNanoseconds,t,r)}function Qe(n,t){return tt(Oc(t,n))}function Ve(n,t){return rt(Oc(t,n))}function Xe(n,t){return it(Oc(t,n))}function no(n,t){return{...n,calendar:t}}function to(n,t){if(n===t)return n;const r=ct(n),e=ct(t);if(r===e||r===au)return t;if(e===au)return n;throw new RangeError(yi)}function ro(n,t,r=[]){const e=new Set(r);return r=>(((n,t)=>{for(const r of t)if(r in n)return 1;return 0})(r=l(e,r),n)||Object.assign(r,t),r)}function eo(n,t){return Gt(Tc(t.timeZone),{...Su,isoHour:12,...n})}function oo(n){return n.epochNanoseconds}function io(n,t=uo){const[r,,,e]=n;return(o,i=Rs,...u)=>{const c=t(e?e(...u):void 0,o,i,r),s=c.resolvedOptions();return[c,...co(n,s,...u)]}}function uo(n,t,r,e){if(r=e(r),n){if(void 0!==r.timeZone)throw new TypeError(Pi);r.timeZone=n}return new ju(t,r)}function co(n,t,...r){const[,e,o]=n;return r.map((n=>(n.calendar&&((n,t,r)=>{if((r||n!==au)&&n!==t)throw new RangeError(yi)})(ct(n.calendar),t.calendar,o),G(e(n,t)))))}function so(n,t,r,e,o){function a(...n){if(!(this instanceof a))throw new TypeError(oi);js(this,t(...n))}function h(n,t){return Object.defineProperties((function(...t){return n.call(this,d(this),...t)}),i(t))}function d(t){const r=Ss(t);if(!r||r.branding!==n)throw new TypeError(oi);return r}return Object.defineProperties(a.prototype,{...c(f(h,r)),...u(f(h,e)),...s("Temporal."+n)}),Object.defineProperties(a,{...u(o),...i(n)}),[a,n=>{const t=Object.create(a.prototype);return js(t,n),t},d]}function ao(n){return n=n.concat("id").sort(),t=>{if(!((n,t)=>{for(const r of t)if(!(r in n))return 0;return 1})(t,n))throw new TypeError("Invalid protocol");return t}}function fo(n){if(Ss(n)||void 0!==n.calendar||void 0!==n.timeZone)throw new TypeError("Invalid bag");return n}function ho(n){return function(...t){const r=Ns.get(this),[e,...o]=r(...t);return e[n](...o)}}function lo(n){return function(...t){return Ns.get(this).J[n](...t)}}function wo(n){const t=Ys[n];if(!t)throw new TypeError(ji(n));return io(t,o(uo))}function mo(n,t){const r={};for(const e in n)r[e]=({K:n},r)=>{const o=Ss(r)||{},{branding:i}=o,u=i===hc||t.includes(i)?o:Zo(r);return n[e](u)};return r}function go(n){const t={};for(const r in n)t[r]=n=>{const{calendar:t}=n;return(e=t,"string"==typeof e?Vc(e):(o=e,Object.assign(Object.create(Ks),{X:o})))[r](n);var e,o};return t}function yo(){throw new TypeError("Cannot use valueOf")}function vo({calendar:n}){return"string"==typeof n?new Ka(n):n}function bo(n,t){if(t=_n(t),e(n)){const r=Ss(n);if(r&&r.branding===fc)return Zn(t),r;const e=xo(n);return Le(La(e||au),!e,n,t)}const r=((n,t)=>{const r=Cr(Bu(t));if(r)return Sr(r),ot(mn(r));const e=Dr(t),{calendar:o}=e,i=n(o),[u,c,s]=i.u(e),[a,f]=i.l(u,c),[h,d]=i.m(a,f,s);return ot(i.p(h,d,s),o)})(Vc,n);return Zn(t),r}function po(n,t,r){return Qt(Mn(t.call(n,da(Xn(r)))))}function Mo(n,t=oa){const r=Object.keys(t).sort(),e={};for(const o of r)e[o]=g(t[o],n,Hu(n[o]));return e}function Eo(n,t){return"string"==typeof n?Tc(n):Mo(n,t)}function Oo(n){return Eo(n,ia)}function Io(n,t){if(t=_n(t),e(n)){const r=Ss(n);return r&&r.branding===ac?(Zn(t),r):ke($a(Wo(n)),n,t)}const r=((n,t)=>{const r=Zr(Bu(t));if(r)return Sr(r),et(B(mn(r)));const e=Dr(t),o=cr(n(e.calendar),e);return et({...e,...o})})(Vc,n);return Zn(t),r}function To(n,t){if(t=_n(t),e(n)){const r=Ss(n);if(r&&r.branding===wc)return Cn(t),r;const e=Wo(n);return((n,t,r,e,o,i)=>{const u=We(r,o,iu,_i,Ki),c=n(u.timeZone),[s,a,f]=Cn(i),h=r.dateFromFields(u,Gn(i,s)),d=qe(u,s);return nt(_t(t(c),{...h,...d},void 0!==u.offset?Rr(u.offset):void 0,a,f),c,e)})(Po,Eo,ka(e),e,n,t)}return((n,t)=>{const r=Fr(Bu(n));if(!r||!r.timeZone)throw new RangeError(Di(n));const{offset:e}=r,o=e?Rr(e):void 0,[,i,u]=Cn(t);return jr(r,o,i,u)})(n,t)}function Ro(n){return Oc(n,Oo)}function Do(n){return f((n=>t=>n(Ro(t))),n)}function So(n){if(e(n)){const t=Ss(n);if(t)switch(t.branding){case mc:return t;case wc:return Xn(t.epochNanoseconds)}}return(n=>{const t=Fr(n=Sn(n));if(!t)throw new RangeError(Di(n));let r;if(t.o)r=0;else{if(!t.offset)throw new RangeError(Di(n));r=Rr(t.offset)}return t.timeZone&&$r(t.timeZone,1),Xn(V(wn(t),r))})(n)}function jo(n,t,r){const e=t.C(So(r).epochNanoseconds,n);return e?da(Xn(e)):null}function Po(n){return e(n)?(Ss(n)||{}).timeZone||ga(n):(n=>Jr((n=>{const t=Fr(n);return t&&(t.timeZone||t.o&&vc||t.offset)||n})(Bu(n))))(n)}function No(n,t){if(e(n)){const r=Ss(n)||{};switch(r.branding){case lc:return Zn(t),r;case dc:return Zn(t),it(r);case wc:return Zn(t),Xe(Oo,r)}return((n,t)=>{const r=Zn(t);return it(qe(xe(n,Ai,[],1),r))})(n,t)}return Zn(t),(n=>{let t,r=(n=>{const t=Wc.exec(n);return t?(Wr(t[10]),Lr(t)):void 0})(Bu(n));if(!r){if(r=Fr(n),!r)throw new RangeError(Di(n));if(!r.i)throw new RangeError(Di(n));if(r.o)throw new RangeError(Si("Z"));Sr(r)}if((t=Zr(n))&&gn(t))throw new RangeError(Di(n));if((t=Cr(n))&&gn(t))throw new RangeError(Di(n));return it(vn(r,1))})(n)}function Yo(n){return void 0===n?void 0:No(n)}function Fo(n,t){if(t=_n(t),e(n)){const r=Ss(n)||{};switch(r.branding){case dc:return Zn(t),r;case hc:return Zn(t),tt({...r,...Su});case wc:return Zn(t),Qe(Oo,r)}return((n,t,r)=>{const e=We(n,t,iu,[],Hi),o=Zn(r);return tt(J({...n.dateFromFields(e,Gn(r,o)),...qe(e,o)}))})(ka(Wo(n)),n,t)}const r=(n=>{const t=Fr(Bu(n));if(!t||t.o)throw new RangeError(Di(n));return tt(Pr(t))})(n);return Zn(t),r}function Zo(n,t){if(t=_n(t),e(n)){const r=Ss(n)||{};switch(r.branding){case hc:return Zn(t),r;case dc:return Zn(t),rt(r);case wc:return Zn(t),Ve(Oo,r)}return $e(ka(Wo(n)),n,t)}const r=Dr(n);return Zn(t),r}function Co(n,t,r){return En(t.call(n,Ea(rt(r,n))))}function $o(n){return t=>"string"==typeof t?Vc(t):((n,t)=>{const r=Object.keys(t).sort(),e={};for(const o of r)e[o]=g(t[o],n,n[o]);return e})(t,n)}function ko(n){if(e(n)){const t=Ss(n);return t&&t.branding===gc?t:(n=>{const t=xe(n,gu);return ut(yr({...pu,...t}))})(n)}return(n=>{const t=(n=>{const t=Bc.exec(n);return t?(n=>{function t(n,t,i){let u=0,c=0;if(i&&([u,o]=O(o,Ji[i])),void 0!==n){if(e)throw new RangeError(Si(n));c=(n=>{const t=parseInt(n);if(!Number.isFinite(t))throw new RangeError(Si(n));return t})(n),r=1,t&&(o=xr(t)*(Ji[i]/xi),e=1)}return u+c}let r=0,e=0,o=0,i={...a(mu,[t(n[2]),t(n[3]),t(n[4]),t(n[5]),t(n[6],n[7],5),t(n[8],n[9],4),t(n[10],n[11],3)]),...P(o,2,mu)};if(!r)throw new RangeError(ei);return Br(n[1])<0&&(i=mr(i)),i})(t):void 0})(Bu(n));if(!t)throw new RangeError(Di(n));return ut(t)})(n)}function Lo(n){if(void 0!==n){if(e(n)){const t=Ss(n)||{};switch(t.branding){case wc:case hc:return t;case dc:return rt(t)}const r=Wo(n);return{...((n,t,r,e)=>{const o=We(r,e,iu,[],Ki);if(void 0!==o.timeZone){const e=r.dateFromFields(o),i=qe(o),u=n(o.timeZone);return{epochNanoseconds:_t(t(u),{...e,...i},void 0!==o.offset?Rr(o.offset):void 0),timeZone:u}}return{...r.dateFromFields(o),...Su}})(Po,Eo,ka(r),n),calendar:r}}return(n=>{const t=Fr(Bu(n));if(!t)throw new RangeError(Di(n));if(t.timeZone)return jr(t,t.offset?Rr(t.offset):void 0);if(t.o)throw new RangeError(Di(n));return Nr(t)})(n)}}function Wo(n){return xo(n)||au}function xo(n){const{calendar:t}=n;if(void 0!==t)return qo(t)}function qo(n){return e(n)?(Ss(n)||{}).calendar||Qa(n):(n=>De((n=>{const t=Fr(n)||Zr(n)||Cr(n);return t?t.calendar:n})(Bu(n))))(n)}function Bo(n){const t=zt(n,Uo());return d(Iu,t)}function Uo(){return k(Date.now(),Wi)}function Jo(){return Va||(Va=(new ju).resolvedOptions().timeZone)}const Ho=(n,t)=>`Non-integer ${n}: ${t}`,Ao=(n,t)=>`Non-positive ${n}: ${t}`,zo=(n,t)=>`Non-finite ${n}: ${t}`,_o=n=>`Cannot convert bigint to ${n}`,Go=n=>`Invalid bigint: ${n}`,Ko="Cannot convert Symbol to string",Qo="Invalid object",Vo=(n,t,r,e)=>`${n} ${t} must be between ${r}-${e}`,Xo=(n,t)=>`Invalid ${n}: ${t}`,ni=n=>`Missing ${n}`,ti=n=>`Invalid field ${n}`,ri=n=>`Duplicate field ${n}`,ei="No valid fields",oi="Invalid calling context",ii="Forbidden era/eraYear",ui="Mismatching era/eraYear",ci="Mismatching year/eraYear",si=n=>`Invalid era: ${n}`,ai=n=>"Missing year"+(n?"/era/eraYear":""),fi=n=>`Invalid monthCode: ${n}`,hi="Mismatching month/monthCode",di="Missing month/monthCode",li="Cannot guess year",wi="Invalid leap month",mi="Invalid protocol results",gi=n=>`Invalid Calendar: ${n}`,yi="Mismatching Calendars",vi="Mismatching TimeZones",bi="Out-of-bounds offset",pi="Invalid offset for TimeZone",Mi="Ambiguous offset",Ei="Out-of-bounds date",Oi="Cannot mix duration signs",Ii="Missing relativeTo",Ti="Cannot use large units",Ri="smallestUnit > largestUnit",Di=n=>`Cannot parse: ${n}`,Si=n=>`Invalid substring: ${n}`,ji=n=>`Cannot format ${n}`,Pi="Forbidden timeZone",Ni=g(h,((n,t)=>t)),Yi=g(h,((n,t,r)=>r)),Fi=g(p,2),Zi={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},Ci=Object.keys(Zi),$i=864e5,ki=1e3,Li=1e3,Wi=1e6,xi=1e9,qi=6e10,Bi=36e11,Ui=864e11,Ji=[1,Li,Wi,xi,qi,Bi,Ui],Hi=Ci.slice(0,6),Ai=b(Hi),zi=["offset"],_i=["timeZone"],Gi=[...Hi,...zi],Ki=[...Gi,..._i],Qi=["era","eraYear"],Vi=[...Qi,"year"],Xi=["year"],nu=["monthCode"],tu=["month",...nu],ru=["day"],eu=[...tu,...Xi],ou=[...nu,...Xi],iu=[...ru,...eu],uu=[...ru,...tu],cu=[...ru,...nu],su=Yi(Hi,0),au="iso8601",fu="gregory",hu="japanese",du={[fu]:{bce:-1,ce:0},[hu]:{bce:-1,ce:0,meiji:1867,taisho:1911,showa:1925,heisei:1988,reiwa:2018},ethioaa:{era0:0},ethiopic:{era0:0,era1:5500},coptic:{era0:-1,era1:0},roc:{beforeroc:-1,minguo:0},buddhist:{be:0},islamic:{ah:0},indian:{saka:0},persian:{ap:0}},lu={bc:"bce",ad:"ce"},wu={chinese:13,dangi:13,hebrew:-6},mu=Ci.map((n=>n+"s")),gu=b(mu),yu=mu.slice(0,6),vu=mu.slice(6),bu=Ni(mu),pu=Yi(mu,0),Mu=Yi(yu,0),Eu=["isoNanosecond","isoMicrosecond","isoMillisecond","isoSecond","isoMinute","isoHour"],Ou=["isoDay","isoMonth","isoYear"],Iu=[...Eu,...Ou],Tu=b(Ou),Ru=b(Eu),Du=b(Iu),Su=Yi(Ru,0),ju=Intl.DateTimeFormat,Pu="en-GB",Nu=1e8,Yu=[Nu,0],Fu=[-Nu,0],Zu=275760,Cu=-271821,$u=1970,ku=1972,Lu=12,Wu=7,xu=nn(1868,9,8),qu=o((n=>{const t=K(n);if(t<xu)return ln(n);const r=q(Hc(hu),t),{era:e,eraYear:o}=ve(r,hu);return[e,o]}),WeakMap),Bu=g(pn,"string"),Uu=g(pn,"boolean"),Ju=g(pn,"number"),Hu=g(pn,"function"),Au="smallestUnit",zu="unit",_u="roundingIncrement",Gu="fractionalSecondDigits",Ku="relativeTo",Qu={constrain:0,reject:1},Vu=Object.keys(Qu),Xu=g(Kn,Au),nc=g(Kn,"largestUnit"),tc=g(Kn,zu),rc=g(Qn,"overflow",Qu),ec=g(Qn,"disambiguation",{compatible:0,reject:1,earlier:2,later:3}),oc=g(Qn,"offset",{reject:0,use:1,prefer:2,ignore:3}),ic=g(Qn,"calendarName",{auto:0,never:1,critical:2,always:3}),uc=g(Qn,"timeZoneName",{auto:0,never:1,critical:2}),cc=g(Qn,"offset",{auto:0,never:1}),sc=g(Qn,"roundingMode",{floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8}),ac="PlainYearMonth",fc="PlainMonthDay",hc="PlainDate",dc="PlainDateTime",lc="PlainTime",wc="ZonedDateTime",mc="Instant",gc="Duration",yc=[Math.floor,n=>S(n)?Math.floor(n):Math.round(n),Math.ceil,n=>S(n)?Math.ceil(n):Math.round(n),Math.trunc,n=>S(n)?Math.trunc(n)||0:Math.round(n),n=>n<0?Math.floor(n):Math.ceil(n),n=>Math.sign(n)*Math.round(Math.abs(n))||0,n=>S(n)?(n=Math.trunc(n)||0)+n%2:Math.round(n)],vc="UTC",bc=5184e3,pc=X(1847),Mc=X((new Date).getUTCFullYear()+10),Ec=/0+$/,Oc=o(((n,t)=>{const{epochNanoseconds:r}=n,e=(t.getOffsetNanosecondsFor?t:t(n.timeZone)).getOffsetNanosecondsFor(r),o=rn(r,e);return{calendar:n.calendar,...o,offsetNanoseconds:e}}),WeakMap),Ic=o(gr,WeakMap),Tc=o((n=>{const t=Ar(n);return"object"==typeof t?new Dc(t):new Rc(t||0)}));class Rc{constructor(n){this.h=n}getOffsetNanosecondsFor(){return this.h}getPossibleInstantsFor(n){return[V(n,this.h)]}C(){}}class Dc{constructor(n){this.B=(n=>{function t(n){const t=E(n,u,c),[o,s]=Tr(t),a=e(o),f=e(s);return a===f?a:r(i(o,s),a,f,n)}function r(t,r,e,o){let i,u;for(;(void 0===o||void 0===(i=o<t[0]?r:o>=t[1]?e:void 0))&&(u=t[1]-t[0]);){const r=t[0]+Math.floor(u/2);n(r)===e?t[1]=r:t[0]=r+1}return i}const e=o(n),i=o(Ir);let u=pc,c=Mc;return{R(n){const r=t(n-86400),e=t(n+86400),o=n-r,i=n-e;if(r===e)return[o];const u=t(o);return u===t(i)?[n-u]:r>e?[o,i]:[]},q:t,C(n,t){const o=E(n,u,c);let[s,a]=Tr(o);const f=bc*t,h=t<0?()=>a>u||(u=o,0):()=>s<c||(c=o,0);for(;h();){const o=e(s),u=e(a);if(o!==u){const e=i(s,a);r(e,o,u);const c=e[0];if((M(c,n)||1)===t)return c}s+=f,a+=f}}}})((n=>t=>{const r=q(n,t*ki);return X(be(r),parseInt(r.month),parseInt(r.day),parseInt(r.hour),parseInt(r.minute),parseInt(r.second))-t})(n))}getOffsetNanosecondsFor(n){return this.B.q(_(n))*xi}getPossibleInstantsFor(n){const[t,r]=[X((e=n).isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond),e.isoMillisecond*Wi+e.isoMicrosecond*Li+e.isoNanosecond];var e;return this.B.R(t).map((n=>H(Y(k(n,xi),r))))}C(n,t){const[r,e]=(n=>x(n,xi))(n),o=this.B.C(r+(t>0||e?1:0),t);if(void 0!==o)return k(o,xi)}}const Sc="([+āˆ’-])",jc="(?:[.,](\\d{1,9}))?",Pc=`(?:(?:${Sc}(\\d{6}))|(\\d{4}))-?(\\d{2})`,Nc="(\\d{2})(?::?(\\d{2})(?::?(\\d{2})"+jc+")?)?",Yc=Sc+Nc,Fc=Pc+"-?(\\d{2})(?:[T ]"+Nc+"(Z|"+Yc+")?)?",Zc="\\[(!?)([^\\]]*)\\]",Cc=`((?:${Zc})*)`,$c=qr(Pc+Cc),kc=qr("(?:--)?(\\d{2})-?(\\d{2})"+Cc),Lc=qr(Fc+Cc),Wc=qr("T?"+Nc+"(?:"+Yc+")?"+Cc),xc=qr(Yc),qc=new RegExp(Zc,"g"),Bc=qr(`${Sc}?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)${jc}H)?(?:(\\d+)${jc}M)?(?:(\\d+)${jc}S)?)?`),Uc=o((n=>new ju(Pu,{timeZone:n,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}))),Jc=o((n=>{function t(n){return((n,t)=>({...ve(n,t),month:n.month,day:parseInt(n.day)}))(q(r,n),e)}const r=Hc(n),e=Se(n);return{id:n,I:ge(t),N:ye(t)}})),Hc=o((n=>new ju(Pu,{calendar:n,timeZone:vc,era:"short",year:"numeric",month:"short",day:"numeric"}))),Ac={dateAdd:ar,dateUntil(n,t,r){if(r<=7){let e=0,o=le(n,t);return 7===r&&([e,o]=T(o,Wu)),{...pu,weeks:e,days:o}}const e=this.u(n),o=this.u(t);let[i,u,c]=((n,t,r,e,o,i,u)=>{function c(){const[e,u]=n.l(t,r),[c,s]=n.l(o,i);a=o-t,f=n.O(o),h=a?c-e||Number(s)-Number(u):i-Math.min(r,f)}function s(){c(),d=n.k(o,i),l=u-Math.min(e,d)}let a,f,h,d,l;s();const w=Math.sign(l),m=Math.sign(a)||Math.sign(h)||w;if(m){if(w===-m){const t=d;[o,i]=n.L(o,i,-m),s(),l+=m<0?-t:d}if(Math.sign(h)===-m){const n=f;o-=m,c(),h+=m<0?-n:f}}return[a,h,l]})(this,...e,...o);return 8===r&&(u+=this.j(i,e[0]),i=0),{...pu,years:i,months:u,days:c}},dateFromFields(n,t){const r=Zn(t),e=Ae(this,n),o=ze(this,n,e,r),i=_e(this,n,o,e,r);return rt(U(this.p(e,o,i)),this.id||au)},yearMonthFromFields(n,t){const r=Zn(t),e=Ae(this,n),o=ze(this,n,e,r);return et(B(this.p(e,o,1)),this.id||au)},monthDayFromFields(t,e){const o=Zn(e),i=!this.id,{monthCode:u,year:c,month:s}=t;let a,f,h,d,l;if(void 0!==u){[a,f]=je(u),l=r(t,"day");const e=this.m(a,f,l);if(!e)throw new RangeError(li);if([h,d]=e,void 0!==s&&s!==d)throw new RangeError(hi);i&&(d=n("month",d,1,Lu,1),l=n("day",l,1,un(void 0!==c?c:h,d),o))}else{h=void 0===c&&i?ku:Ae(this,t),d=ze(this,t,h,o),l=_e(this,t,d,h,o);const n=this.F(h);f=d===n,a=Ne(d,n);const r=this.m(a,f,l);if(!r)throw new RangeError(li);[h,d]=r}return ot(this.p(h,d,l),this.id||au)},fields(n){return Fe(this)&&n.includes("year")?[...n,...Qi]:n},mergeFields(n,t){const r=Object.assign(Object.create(null),n);return Ge(r,t,tu),Fe(this)&&(Ge(r,t,Vi),this.id===hu&&Ge(r,t,uu,Qi)),r},inLeapYear(n){const[t]=this.u(n);return this.$(t)},monthsInYear(n){const[t]=this.u(n);return this.O(t)},daysInMonth(n){const[t,r]=this.u(n);return this.k(t,r)},daysInYear(n){const[t]=this.u(n);return this.G(t)},era(n){return this.V(n)[0]},eraYear(n){return this.V(n)[1]},monthCode(n){const[t,r]=this.u(n),[e,o]=this.l(t,r);return((n,t)=>"M"+Fi(n)+(t?"L":""))(e,o)},dayOfWeek:fn,weekOfYear(n){return hn(n)[1]},yearOfWeek(n){return hn(n)[0]},daysInWeek(){return Wu}},zc=/^M(\d{2})(L?)$/,_c={era:Sn,eraYear:Nn,year:Nn,month:Fn,monthCode:Sn,day:Fn,...Yi(Hi,Nn),...Yi(mu,Yn),offset:Sn},Gc=g(((n,t,r)=>{const e={};for(let o=0;o<n.length;o++)e[t[o]]=r[n[o]];return e}),Hi,Eu),Kc={...Ac,u(n){return[n.isoYear,n.isoMonth,n.isoDay]},V(n){return this.id===fu?ln(n):this.id===hu?qu(n):[void 0,void 0]},l(n,t){return[t,0]},m(n,t){if(!t)return[ku,n]},$:sn,F(){},O:on,j:n=>n*Lu,k:un,G:cn,dayOfYear:an,p(n,t,r){return{isoYear:n,isoMonth:t,isoDay:r}},U:nn,L(n,t,r){return n+=R(r,Lu),(t+=D(r,Lu))<1?(n--,t+=Lu):t>Lu&&(n++,t-=Lu),[n,t]},year(n){return n.isoYear},month(n){return n.isoMonth},day:n=>n.isoDay},Qc={...Ac,u:pe,V(n){const t=this.I(n);return[t.era,t.eraYear]},l(n,t){const r=Ee.call(this,n);return[Ne(t,r),r===t]},m(n,t,r){let[e,o,i]=pe.call(this,{isoYear:ku,isoMonth:Lu,isoDay:31});const u=Ee.call(this,e),c=o===u;1===(M(n,Ne(o,u))||M(Number(t),Number(c))||M(r,i))&&e--;for(let o=0;o<100;o++){const i=e-o,u=Ee.call(this,i),c=Pe(n,t,u);if(t===(c===u)&&r<=Ie.call(this,i,c))return[i,c]}},$(n){const t=Oe.call(this,n);return t>Oe.call(this,n-1)&&t>Oe.call(this,n+1)},F:Ee,O:Te,j(n,t){const r=t+n,e=Math.sign(n),o=e<0?-1:0;let i=0;for(let n=t;n!==r;n+=e)i+=Te.call(this,n+o);return i},k:Ie,G:Oe,dayOfYear(n){const t=K({...n,...Su}),{year:r}=this.I(n);return we(Me.call(this,r),t)},p(n,t,r){return U({...en(Me.call(this,n,t,r))})},U:Me,L(n,t,r){if(r)if(t+=r,r<0){if(t<Number.MIN_SAFE_INTEGER)throw new RangeError(Ei);for(;t<1;)t+=Te.call(this,--n)}else{if(t>Number.MAX_SAFE_INTEGER)throw new RangeError(Ei);let r;for(;t>(r=Te.call(this,n));)t-=r,n++}return[n,t]},year(n){return this.I(n).year},month(n){const{year:t,month:r}=this.I(n),{v:e}=this.N(t);return e[r]+1},day(n){return this.I(n).day}},Vc=(Xc=Kc,ns=Qc,n=>n===au?Xc:n===fu||n===hu?Object.assign(Object.create(Xc),{id:n}):Object.assign(Object.create(ns),Jc(n)));var Xc,ns;const ts="numeric",rs=["timeZoneName"],es={month:ts,day:ts},os={year:ts,month:ts},is={...os,day:ts},us={hour:ts,minute:ts,second:ts},cs={...is,...us},ss={...cs,timeZoneName:"short"},as=Object.keys(es),fs=Object.keys(os),hs=[...Object.keys(is),"weekday","dateStyle"],ds=[...Object.keys(us),"dayPeriod","timeStyle"],ls=[...hs,...ds],ws=[...ls,...rs],ms=[...rs,...ds],gs=[...rs,...hs],ys=[...rs,"day","weekday","dateStyle",...ds],vs=ro(as,es,[...rs,"year","weekday","dateStyle",...ds]),bs=[ro(fs,os,ys),eo,1],ps=[vs,eo,1],Ms=[ro(hs,is,ms),eo],Es=[ro(ls,cs,rs),eo],Os=[ro(ds,us,gs),(n,t)=>Gt(Tc(t.timeZone),{isoYear:$u,isoMonth:1,isoDay:1,...n})],Is=[ro(ls,cs),oo],Ts=[ro(ws,ss),oo,0,(n,t)=>{const r=ct(n.timeZone);if(t&&ct(t.timeZone)!==r)throw new RangeError(vi);return r}],Rs={},Ds=new WeakMap,Ss=Ds.get.bind(Ds),js=Ds.set.bind(Ds),Ps=function(){const n=ju.prototype,t=Object.getOwnPropertyDescriptors(n),r=Object.getOwnPropertyDescriptors(ju),e=function(n,t={}){if(!(this instanceof e))return new e(n,t);Ns.set(this,((n,t={})=>{const r=new ju(n,t),e=r.resolvedOptions(),i=e.locale,u=d(Object.keys(t),e),c=o(wo),s=(...n)=>{let t;const e=n.map(((n,r)=>{const e=Ss(n),o=(e||{}).branding;if(r&&t&&t!==o)throw new TypeError("Mismatching types for formatting");return t=o,e}));return t?c(t)(i,u,...e):[r,...n]};return s.J=r,s})(n,t))};for(const n in t){const r=t[n],o=n.startsWith("format")&&ho(n);"function"==typeof r.value?r.value="constructor"===n?e:o||lo(n):o&&(r.get=function(){return o.bind(this)})}return r.prototype.value=Object.create(n,t),Object.defineProperties(e,r),e}(),Ns=new WeakMap,Ys={PlainYearMonth:bs,PlainMonthDay:ps,PlainDate:Ms,PlainDateTime:Es,PlainTime:Os,Instant:Is},Fs=io(bs),Zs=io(ps),Cs=io(Ms),$s=io(Es),ks=io(Os),Ls=io(Is),Ws=io(Ts),xs={era(n){if(void 0!==n&&"string"!=typeof n)throw new TypeError("Expected string or undefined");return n},eraYear(n){if("number"==typeof n)On(n);else if(void 0!==n)throw new TypeError("Expected integer or undefined");return n},year:Mn,month:En,daysInMonth:En,daysInYear:En,inLeapYear:Uu,monthsInYear:En},qs={monthCode:Bu},Bs={day:En},Us={dayOfWeek:En,dayOfYear:En,weekOfYear:En,yearOfWeek:Mn,daysInWeek:En},Js={...xs,...qs,...Bs,...Us},Hs={...mo(xs,[ac]),...mo(Us,[]),...mo(qs,[ac,fc]),...mo(Bs,[fc])},As=go(Js),zs=go({...xs,...qs}),_s=go({...qs,...Bs}),Gs={calendarId:n=>ct(n.calendar)},Ks=f(((n,t)=>function(r){const{X:e}=this;return n(e[t](Ea(rt(r,e))))}),Js),Qs=h((n=>t=>t[n]),mu),Vs=h(((n,t)=>n=>n[Eu[t]]),Hi),Xs={epochSeconds(n){return _(n.epochNanoseconds)},epochMilliseconds(n){return G(n.epochNanoseconds)},epochMicroseconds(n){return L(n.epochNanoseconds,Li)},epochNanoseconds(n){return L(n.epochNanoseconds)}},na=g(l,new Set(["branding"])),[ta,ra,ea]=so(fc,g(((n,t,r,e=au,o=ku)=>{const i=Nn(t),u=Nn(r),c=n(e);return ot(U(mn({isoYear:Nn(o),isoMonth:i,isoDay:u})),c)}),qo),{...Gs,..._s},{with(n,t,r){return ra(((n,t,r,e,o)=>{const i=_n(o);return((n,t,r,e)=>{const o=Be(n,t,r,iu);return n.monthDayFromFields(o,e)})(n(t.calendar),r,e,i)})(qa,n,this,fo(t),r))},equals(n,t){return!Kr(r=n,e=bo(t))&&st(r.calendar,e.calendar);var r,e},toString:Nt,toJSON:n=>Nt(n),toLocaleString(n,t,r){const[e,o]=Zs(t,r,n);return e.format(o)},toPlainDate(n,t){return Ea(((n,t,r,e)=>((n,t,r)=>He(n,t,cu,bn(r),Xi))(n(t.calendar),r,e))(xa,n,this,t))},getISOFields:na,getCalendar:vo,valueOf:yo},{from:(n,t)=>ra(bo(n,t))}),oa={getOffsetNanosecondsFor:po,getPossibleInstantsFor(n,t,r){return[...t.call(n,pa(tt(r,au)))].map((n=>la(n).epochNanoseconds))}},ia={getOffsetNanosecondsFor:po},[ua,ca,sa]=so(ac,g(((n,t,r,e=au,o=1)=>{const i=Nn(t),u=Nn(r),c=n(e);return et(B(mn({isoYear:i,isoMonth:u,isoDay:Nn(o)})),c)}),qo),{...Gs,...zs},{with(n,t,r){return ca(((n,t,r,e,o)=>{const i=_n(o);return et(((n,t,r,e)=>{const o=Be(n,t,r,eu);return n.yearMonthFromFields(o,e)})(n(t.calendar),r,e,i))})(Wa,n,this,fo(t),r))},add:(n,t,r)=>ca(rr(Ja,0,n,ko(t),r)),subtract:(n,t,r)=>ca(rr(Ja,1,n,ko(t),r)),until:(n,t,r)=>za(ee(Ha,0,n,Io(t),r)),since:(n,t,r)=>za(ee(Ha,1,n,Io(t),r)),equals(n,t){return!Kr(r=n,e=Io(t))&&st(r.calendar,e.calendar);var r,e},toString:Pt,toJSON:n=>Pt(n),toLocaleString(n,t,r){const[e,o]=Fs(t,r,n);return e.format(o)},toPlainDate(n,t){return Ea(((n,t,r,e)=>((n,t,r)=>He(n,t,ou,bn(r),ru))(n(t.calendar),r,e))(xa,n,this,t))},getISOFields:na,getCalendar:vo,valueOf:yo},{from:(n,t)=>ca(Io(n,t)),compare:(n,t)=>Kr(Io(n),Io(t))}),[aa,fa]=so(wc,g(((n,t,r,e,o=au)=>nt(H($(jn(r))),t(e),n(o))),qo,Po),{...Xs,...Gs,...Do(As),...Do(Vs),hoursInDay:n=>((n,t)=>{const r=n(t.timeZone);return Kt(r,Oc(t,r))/Bi})(Eo,n),offsetNanoseconds:n=>Ro(n).offsetNanoseconds,offset:n=>qt(Ro(n).offsetNanoseconds),timeZoneId:n=>ct(n.timeZone)},{with(n,t,r){return fa(((n,t,r,e,o,i)=>{const u=_n(i),{calendar:c,timeZone:s}=r;return nt(((n,t,r,e,o)=>{const i=Be(n,r,e,iu,Gi,zi),[u,c,s]=Cn(o,2);return _t(t,{...n.dateFromFields(i,Gn(o,u)),...qe(i,u)},Rr(i.offset),c,s)})(n(c),t(s),e,o,u),s,c)})(xa,Eo,n,this,fo(t),r))},withPlainTime:(n,t)=>fa(((n,t,r=Su)=>{const e=t.timeZone,o=n(e),i={...Oc(t,o),...r};return nt(_t(o,i,i.offsetNanoseconds,2),e,t.calendar)})(Eo,n,Yo(t))),withPlainDate:(n,t)=>fa(((n,t,r)=>{const e=t.timeZone,o=n(e),i={...Oc(t,o),...r},u=to(t.calendar,r.calendar);return nt(_t(o,i,i.offsetNanoseconds,2),e,u)})(Eo,n,Zo(t))),withTimeZone:(n,t)=>fa(((n,t)=>({...n,timeZone:t}))(n,Po(t))),withCalendar:(n,t)=>fa(no(n,qo(t))),add:(n,t,r)=>fa(Xt(Ba,Eo,0,n,ko(t),r)),subtract:(n,t,r)=>fa(Xt(Ba,Eo,1,n,ko(t),r)),until:(n,t,r)=>za(ut(ne(Ua,Eo,0,n,To(t),r))),since:(n,t,r)=>za(ut(ne(Ua,Eo,1,n,To(t),r))),round:(n,t)=>fa(((n,t,r)=>{let{epochNanoseconds:e,timeZone:o,calendar:i}=t;const[u,c,s]=Ln(r);if(0===u&&1===c)return t;const a=n(o),f=a.getOffsetNanosecondsFor(e);let h={...rn(e,f),calendar:i};return h={calendar:i,...dt(h,u,c,s,a)},e=_t(a,h,f,2,0,1),nt(e,o,i)})(Eo,n,t)),startOfDay:n=>fa(((n,t)=>{let{epochNanoseconds:r,timeZone:e,calendar:o}=t;const i=n(e);return r=_t(i,{...Oc(t,i),...Su},void 0,0,0,1),nt(r,e,o)})(Eo,n)),equals(n,t){return!_r(r=n,e=To(t))&&!!Vr(r.timeZone,e.timeZone)&&st(r.calendar,e.calendar);var r,e},toString:(n,t)=>Dt(Oo,n,t),toJSON:n=>Dt(Oo,n),toLocaleString(n,t,r={}){const[e,o]=Ws(t,r,n);return e.format(o)},toInstant:n=>da(Xn(n.epochNanoseconds)),toPlainDate:n=>Ea(Ve(Oo,n)),toPlainTime:n=>va(Xe(Oo,n)),toPlainDateTime:n=>pa(Qe(Oo,n)),toPlainYearMonth(n){return ca(Je($a(n.calendar),this))},toPlainMonthDay(n){return ra(Ue(La(n.calendar),this))},getISOFields:n=>((n,t)=>{const r=Oc(t,n);return{calendar:t.calendar,...d(Du,r),offset:qt(r.offsetNanoseconds),timeZone:t.timeZone}})(Oo,n),getCalendar:vo,getTimeZone:({timeZone:n})=>"string"==typeof n?new wa(n):n,valueOf:yo},{from:(n,t)=>fa(To(n,t)),compare:(n,t)=>_r(To(n),To(t))}),[ha,da,la]=so(mc,(n=>Xn(H($(jn(n))))),Xs,{add:(n,t)=>da(Vt(0,n,ko(t))),subtract:(n,t)=>da(Vt(1,n,ko(t))),until:(n,t,r)=>za(Xr(0,n,So(t),r)),since:(n,t,r)=>za(Xr(1,n,So(t),r)),round:(n,t)=>da(((n,t)=>{const[r,e,o]=Ln(t,5,1);return Xn(Mt(n.epochNanoseconds,r,e,o,1))})(n,t)),equals(n,t){return!zr(n,So(t))},toString:(n,t)=>Rt(Po,Oo,n,t),toJSON:n=>Rt(Po,Oo,n),toLocaleString(n,t,r){const[e,o]=Ls(t,r,n);return e.format(o)},toZonedDateTimeISO:(n,t)=>fa(Ke(n,Po(t))),toZonedDateTime(n,t){const r=bn(t);return fa(Ke(n,Po(r.timeZone),qo(r.calendar)))},valueOf:yo},{from:n=>da(So(n)),fromEpochSeconds:n=>da((n=>Xn(H(k(n,xi))))(n)),fromEpochMilliseconds:n=>da((n=>Xn(H(k(n,Wi))))(n)),fromEpochMicroseconds:n=>da((n=>Xn(H($(jn(n),Li))))(n)),fromEpochNanoseconds:n=>da((n=>Xn(H($(jn(n)))))(n)),compare:(n,t)=>zr(So(n),So(t))}),[wa,ma]=so("TimeZone",(n=>{const t=Jr(n);return{branding:"TimeZone",id:t,K:Tc(t)}}),{id:n=>n.id},{toString:n=>n.id,toJSON:n=>n.id,getPossibleInstantsFor:({K:n},t)=>n.getPossibleInstantsFor(Fo(t)).map((n=>da(Xn(n)))),getOffsetNanosecondsFor:({K:n},t)=>n.getOffsetNanosecondsFor(So(t).epochNanoseconds),getOffsetStringFor(n,t){const r=So(t).epochNanoseconds;return qt(Mo(this,ia).getOffsetNanosecondsFor(r))},getPlainDateTimeFor(n,t,r=au){const e=So(t).epochNanoseconds,o=Mo(this,ia).getOffsetNanosecondsFor(e);return pa(tt(rn(e,o),qo(r)))},getInstantFor(n,t,r){const e=Fo(t),o=$n(r),i=Mo(this);return da(Xn(Gt(i,e,o)))},getNextTransition:({K:n},t)=>jo(1,n,t),getPreviousTransition:({K:n},t)=>jo(-1,n,t),equals(n,t){return!!Vr(this,Po(t))}},{from(n){const t=Po(n);return"string"==typeof t?new wa(t):t}}),ga=ao(Object.keys(oa)),[ya,va]=so(lc,((n=0,t=0,r=0,e=0,o=0,i=0)=>it(vn(f(Nn,a(Eu,[n,t,r,e,o,i])),1))),Vs,{with(n,t,r){return va(((n,t,r)=>it(((n,t,r)=>{const e=Zn(r);return qe({...d(Ai,n),...xe(t,Ai)},e)})(n,t,r)))(this,fo(t),r))},add:(n,t)=>va(er(0,n,ko(t))),subtract:(n,t)=>va(er(1,n,ko(t))),until:(n,t,r)=>za(ie(0,n,No(t),r)),since:(n,t,r)=>za(ie(1,n,No(t),r)),round:(n,t)=>va(((n,t)=>it(((n,t,r,e)=>wt(n,vt(t,r),e)[0])(n,...Ln(t,5))))(n,t)),equals(n,t){return!Qr(n,No(t))},toString:Yt,toJSON:n=>Yt(n),toLocaleString(n,t,r){const[e,o]=ks(t,r,n);return e.format(o)},toZonedDateTime:(n,t)=>fa(((n,t,r,e,o)=>{const i=bn(o),u=t(i.plainDate),c=n(i.timeZone);return nt(Gt(r(c),{...u,...e}),c,u.calendar)})(Po,Zo,Eo,n,t)),toPlainDateTime(n,t){return pa((r=n,e=Zo(t),tt(J({...r,...e}))));var r,e},getISOFields:na,valueOf:yo},{from:(n,t)=>va(No(n,t)),compare:(n,t)=>Qr(No(n),No(t))}),[ba,pa]=so(dc,g(((n,t,r,e,o=0,i=0,u=0,c=0,s=0,h=0,d=au)=>tt(J(wn(f(Nn,a(Iu,[t,r,e,o,i,u,c,s,h])))),n(d))),qo),{...Gs,...As,...Vs},{with(n,t,r){return pa(((n,t,r,e,o)=>{const i=_n(o);return tt(((n,t,r,e)=>{const o=Be(n,t,r,iu,Hi),i=Zn(e);return J({...n.dateFromFields(o,Gn(e,i)),...qe(o,i)})})(n(t.calendar),r,e,i))})(xa,n,this,fo(t),r))},withPlainTime:(n,t)=>pa(((n,t=Su)=>tt({...n,...t}))(n,Yo(t))),withPlainDate(n,t){return pa((r=n,e=Zo(t),tt({...r,...e},to(r.calendar,e.calendar))));var r,e},withCalendar:(n,t)=>pa(no(n,qo(t))),add:(n,t,r)=>pa(nr(Ba,0,n,ko(t),r)),subtract:(n,t,r)=>pa(nr(Ba,1,n,ko(t),r)),until:(n,t,r)=>za(te(Ua,0,n,Fo(t),r)),since:(n,t,r)=>za(te(Ua,1,n,Fo(t),r)),round:(n,t)=>pa(((n,t)=>tt(dt(n,...Ln(t)),n.calendar))(n,t)),equals(n,t){return!Gr(r=n,e=Fo(t))&&st(r.calendar,e.calendar);var r,e},toString:(n,t)=>St(n,t),toJSON:n=>St(n),toLocaleString(n,t,r){const[e,o]=$s(t,r,n);return e.format(o)},toZonedDateTime:(n,t,r)=>fa(((n,t,r,e)=>nt(((n,t,r,e)=>{const o=$n(e);return H(Gt(n(t),r,o))})(n,r,t,e),r,t.calendar))(Eo,n,Po(t),r)),toPlainDate:n=>Ea(rt(n)),toPlainYearMonth(n){return ca(((n,t,r)=>{const e=n(t.calendar);return et({...t,...Je(e,r)})})($a,n,this))},toPlainMonthDay(n){return ra(Ue(La(n.calendar),this))},toPlainTime:n=>va(it(n)),getISOFields:na,getCalendar:vo,valueOf:yo},{from:(n,t)=>pa(Fo(n,t)),compare:(n,t)=>Gr(Fo(n),Fo(t))}),[Ma,Ea,Oa]=so(hc,g(((n,t,r,e,o=au)=>rt(U(mn(f(Nn,{isoYear:t,isoMonth:r,isoDay:e}))),n(o))),qo),{...Gs,...As},{with(n,t,r){return Ea(((n,t,r,e,o)=>{const i=_n(o);return((n,t,r,e)=>{const o=Be(n,t,r,iu);return n.dateFromFields(o,e)})(n(t.calendar),r,e,i)})(xa,n,this,fo(t),r))},withCalendar:(n,t)=>Ea(no(n,qo(t))),add:(n,t,r)=>Ea(tr(Ba,0,n,ko(t),r)),subtract:(n,t,r)=>Ea(tr(Ba,1,n,ko(t),r)),until:(n,t,r)=>za(re(Ua,0,n,Zo(t),r)),since:(n,t,r)=>za(re(Ua,1,n,Zo(t),r)),equals(n,t){return!Kr(r=n,e=Zo(t))&&st(r.calendar,e.calendar);var r,e},toString:jt,toJSON:n=>jt(n),toLocaleString(n,t,r){const[e,o]=Cs(t,r,n);return e.format(o)},toZonedDateTime(n,t){const r=!e(t)||t instanceof wa?{timeZone:t}:t;return fa(((n,t,r,e,o)=>{const i=n(o.timeZone),u=o.plainTime,c=void 0!==u?t(u):Su;return nt(Gt(r(i),{...e,...c}),i,e.calendar)})(Po,No,Eo,n,r))},toPlainDateTime:(n,t)=>pa(((n,t=Su)=>tt(J({...n,...t})))(n,Yo(t))),toPlainYearMonth(n){return ca(Je($a(n.calendar),this))},toPlainMonthDay(n){return ra(Ue(La(n.calendar),this))},getISOFields:na,getCalendar:vo,valueOf:yo},{from:(n,t)=>Ea(Zo(n,t)),compare:(n,t)=>Kr(Zo(n),Zo(t))}),Ia={fields(n,t,r){return[...t.call(n,r)]}},Ta={dateFromFields(n,t,r,e){return Oa(t.call(n,Object.assign(Object.create(null),r),e))},...Ia},Ra={yearMonthFromFields(n,t,r,e){return sa(t.call(n,Object.assign(Object.create(null),r),e))},...Ia},Da={monthDayFromFields(n,t,r,e){return ea(t.call(n,Object.assign(Object.create(null),r),e))},...Ia},Sa={mergeFields(n,t,r,e){return bn(t.call(n,Object.assign(Object.create(null),r),Object.assign(Object.create(null),e)))}},ja={...Ta,...Sa},Pa={...Ra,...Sa},Na={...Da,...Sa},Ya={dateAdd(n,t,r,e,o){return Oa(t.call(n,Ea(rt(r,n)),za(ut(e)),o))}},Fa={...Ya,dateUntil(n,t,r,e,o,i){return _a(t.call(n,Ea(rt(r,n)),Ea(rt(e,n)),Object.assign(Object.create(null),i,{largestUnit:Ci[o]})))}},Za={...Ya,day:Co},Ca={...Fa,day:Co},$a=$o(Ra),ka=$o(Ta),La=$o(Da),Wa=$o(Pa),xa=$o(ja),qa=$o(Na),Ba=$o(Ya),Ua=$o(Fa),Ja=$o(Za),Ha=$o(Ca),[Aa,za,_a]=so(gc,((n=0,t=0,r=0,e=0,o=0,i=0,u=0,c=0,s=0,h=0)=>ut(yr(f(Yn,a(mu,[n,t,r,e,o,i,u,c,s,h]))))),{...Qs,blank:n=>!Ic(n),sign:n=>Ic(n)},{with:(n,t)=>za(((n,t)=>{return ut((r=n,e=t,yr({...r,...xe(e,gu)})));var r,e})(n,t)),add:(n,t,r)=>za(lr(Lo,Ua,Eo,0,n,ko(t),r)),subtract:(n,t,r)=>za(lr(Lo,Ua,Eo,1,n,ko(t),r)),negated:n=>za(wr(n)),abs:n=>za((n=>{return ut(-1===Ic(t=n)?mr(t):t);var t})(n)),round:(n,t)=>za(((n,t,r,e,o)=>{const i=Or(e),[u,c,s,a,f]=((n,t,r)=>{n=zn(n,Au);let e=nc(n);const o=r(n[Ku]);let i=Un(n);const u=sc(n,7);let c=Xu(n);if(void 0===e&&void 0===c)throw new RangeError("Required smallestUnit or largestUnit");return null==c&&(c=0),null==e&&(e=Math.max(c,t)),Vn(e,c),i=Jn(i,c,1),[e,c,i,u,o]})(o,i,n),h=Math.max(i,u);if(h<6||6===h&&(!f||!f.epochNanoseconds))return ut(((n,t,r,e,o)=>({...pu,...mt(n,t,r,e,o)}))(e,u,c,s,a));if(!f)throw new RangeError(Ii);const d=hr(t,r,f);let l=0;e.weeks&&7===c&&(l=e.weeks,e={...e,weeks:0});let[w,m]=dr(e,void 0,u,...d);const g=Ic(e),y=Ic(w);if(g&&y&&g!==y)throw new RangeError(mi);return!y||0===c&&1===s||(w=yt(w,m,u,c,s,a,...d)),w.weeks+=l,ut(w)})(Lo,Ua,Eo,n,t)),total:(n,t)=>((n,t,r,e,o)=>{const i=Or(e),[u,c]=((n,t)=>{const r=t((n=zn(n,zu))[Ku]);let e=tc(n);return e=Rn(zu,e),[e,r]})(o,n),s=Math.max(u,i);if(s<6||6===s&&(!c||!c.epochNanoseconds))return((n,t)=>at(vr(n,6),t))(e,u);if(!c)throw new RangeError(Ii);const a=hr(t,r,c);return((n,t,r,e,o,i)=>{const u=Ic(n),[c,s]=ft(Mr(n,r-1),r,u,e,o,i),a=ht(c,s,t);return n[mu[r]]+a*u})(...dr(e,void 0,u,...a),u,...a)})(Lo,Ua,Eo,n,t),toString:Ft,toLocaleString(n,t,r){return Intl.DurationFormat?new Intl.DurationFormat(t,r).format(this):Ft(n)},toJSON:n=>Ft(n),valueOf:yo},{from:n=>za(ko(n)),compare:(n,t,r)=>((n,t,r,e,o,i)=>{const u=n(An(i).relativeTo),c=Math.max(Or(e),Or(o));if(m(mu,e,o))return 0;if(c<6||6===c&&(!u||!u.epochNanoseconds))return C(j(e,6,mu),j(o,6,mu));if(!u)throw new RangeError(Ii);const[s,a,f]=hr(t,r,u);return C(a(f(s,e)),a(f(s,o)))})(Lo,Ua,Eo,ko(n),ko(t),r)}),Ga={toString:n=>n.id,toJSON:n=>n.id,...Hs,dateAdd:({id:n,K:t},r,e,o)=>Ea(rt(t.dateAdd(Zo(r),ko(e),o),n)),dateUntil:({K:n},t,r,e)=>za(ut(n.dateUntil(Zo(t),Zo(r),(n=>(n=An(n),nc(n,9,6,1)))(e)))),dateFromFields:({id:n,K:t},r,e)=>Ea($e(t,r,e,n===au?["year","day"]:[])),yearMonthFromFields:({id:n,K:t},r,e)=>ca(ke(t,r,e,n===au?Xi:[])),monthDayFromFields:({id:n,K:t},r,e)=>ra(Le(t,0,r,e,n===au?ru:[])),fields({K:n},t){const r=new Set(iu),e=[];for(const n of t){if(Bu(n),!r.has(n))throw new RangeError(ti(n));r.delete(n),e.push(n)}return n.fields(e)},mergeFields:({K:n},t,r)=>n.mergeFields(w(Tn(t)),w(Tn(r)))},[Ka]=so("Calendar",(n=>{const t=De(Bu(n));return{branding:"Calendar",id:t,K:Vc(t)}}),{id:n=>n.id},Ga,{from(n){const t=qo(n);return"string"==typeof t?new Ka(t):t}}),Qa=ao(Object.keys(Ga).slice(4));let Va;const Xa=Object.defineProperties({},{...s("Temporal.Now"),...u({timeZoneId:()=>Jo(),instant:()=>da(Xn(Uo())),zonedDateTime:(n,t=Jo())=>fa(nt(Uo(),Po(t),qo(n))),zonedDateTimeISO:(n=Jo())=>fa(nt(Uo(),Po(n),au)),plainDateTime:(n,t=Jo())=>pa(tt(Bo(Oo(Po(t))),qo(n))),plainDateTimeISO:(n=Jo())=>pa(tt(Bo(Oo(Po(n))),au)),plainDate:(n,t=Jo())=>Ea(rt(Bo(Oo(Po(t))),qo(n))),plainDateISO:(n=Jo())=>Ea(rt(Bo(Oo(Po(n))),au)),plainTimeISO:(n=Jo())=>va(it(Bo(Oo(Po(n)))))})}),nf=Object.defineProperties({},{...s("Temporal"),...u({PlainYearMonth:ua,PlainMonthDay:ta,PlainDate:Ma,PlainTime:ya,PlainDateTime:ba,ZonedDateTime:aa,Instant:ha,Calendar:Ka,TimeZone:wa,Duration:Aa,Now:Xa})});Object.defineProperties(globalThis,u({Temporal:nf})),Object.defineProperties(Intl,u({DateTimeFormat:Ps})),Object.defineProperties(Date.prototype,u({toTemporalInstant(){return da(Xn(k(this.valueOf(),Wi)))}}))}();

@@ -1,1 +0,1 @@

export * from 'temporal-spec'
export * from 'temporal-spec';

@@ -1,1 +0,779 @@

export { D as DateTimeFormat, T as Temporal, t as toTemporalInstant } from "./chunk-33169ef4.esm.js";
function createSlotClass(e, t, n, o, r) {
function Class(...e) {
if (!(this instanceof Class)) {
throw new TypeError(i);
}
Ea(this, t(...e));
}
function bindMethod(e, t) {
return Object.defineProperties((function(...t) {
return e.call(this, getSpecificSlots(this), ...t);
}), Yt(t));
}
function getSpecificSlots(t) {
const n = Aa(t);
if (!n || n.branding !== e) {
throw new TypeError(i);
}
return n;
}
return Object.defineProperties(Class.prototype, {
...Ct(Zt(bindMethod, n)),
...xt(Zt(bindMethod, o)),
...Bt("Temporal." + e)
}), Object.defineProperties(Class, {
...xt(r),
...Yt(e)
}), [ Class, e => {
const t = Object.create(Class.prototype);
return Ea(t, e), t;
}, getSpecificSlots ];
}
function createProtocolValidator(e) {
return e = e.concat("id").sort(), t => {
if (!At(t, e)) {
throw new TypeError(m);
}
return t;
};
}
function rejectInvalidBag(e) {
if (Aa(e) || void 0 !== e.calendar || void 0 !== e.timeZone) {
throw new TypeError(o);
}
return e;
}
function createDateTimeFormatClass() {
const e = Fe.prototype, t = Object.getOwnPropertyDescriptors(e), n = Object.getOwnPropertyDescriptors(Fe), DateTimeFormat = function(e, t = {}) {
if (!(this instanceof DateTimeFormat)) {
return new DateTimeFormat(e, t);
}
Va.set(this, ((e, t = {}) => {
const n = new Fe(e, t), o = n.resolvedOptions(), r = o.locale, a = Vt(Object.keys(t), o), i = Jt(createFormatPrepperForBranding), prepFormat = (...e) => {
let t;
const o = e.map(((e, n) => {
const o = Aa(e), r = (o || {}).branding;
if (n && t && t !== r) {
throw new TypeError(F);
}
return t = r, o;
}));
return t ? i(t)(r, a, ...o) : [ n, ...e ];
};
return prepFormat.J = n, prepFormat;
})(e, t));
};
for (const e in t) {
const n = t[e], o = e.startsWith("format") && createFormatMethod(e);
"function" == typeof n.value ? n.value = "constructor" === e ? DateTimeFormat : o || createProxiedMethod(e) : o && (n.get = function() {
return o.bind(this);
});
}
return n.prototype.value = Object.create(e, t), Object.defineProperties(DateTimeFormat, n),
DateTimeFormat;
}
function createFormatMethod(e) {
return function(...t) {
const n = Va.get(this), [o, ...r] = n(...t);
return o[e](...r);
};
}
function createProxiedMethod(e) {
return function(...t) {
return Va.get(this).J[e](...t);
};
}
function createFormatPrepperForBranding(e) {
const t = Ja[e];
if (!t) {
throw new TypeError(Lt(e));
}
return Rt(t, Jt(Wt));
}
function createCalendarFieldMethods(e, t) {
const n = {};
for (const o in e) {
n[o] = ({K: e}, n) => {
const r = Aa(n) || {}, {branding: a} = r, i = a === hn || t.includes(a) ? r : toPlainDateSlots(n);
return e[o](i);
};
}
return n;
}
function createCalendarGetters(e) {
const t = {};
for (const n in e) {
t[n] = e => {
const {calendar: t} = e;
return (o = t, "string" == typeof o ? nt(o) : (r = o, Object.assign(Object.create(ni), {
X: r
})))[n](e);
var o, r;
};
}
return t;
}
function neverValueOf() {
throw new TypeError(r);
}
function createCalendarFromSlots({calendar: e}) {
return "string" == typeof e ? new ns(e) : e;
}
function toPlainMonthDaySlots(e, t) {
if (t = co(t), uo(e)) {
const n = Aa(e);
if (n && n.branding === pn) {
return fo(t), n;
}
const o = extractCalendarSlotFromBag(e);
return mo(Wi(o || ae), !o, e, t);
}
const n = So(nt, e);
return fo(t), n;
}
function getOffsetNanosecondsForAdapter(e, t, n) {
return o = t.call(e, hi(Oo(n))), po(zt(o));
var o;
}
function createAdapterOps(e, t = ui) {
const n = Object.keys(t).sort(), o = {};
for (const r of n) {
o[r] = no(t[r], e, je(e[r]));
}
return o;
}
function createTimeZoneOps(e, t) {
return "string" == typeof e ? wn(e) : createAdapterOps(e, t);
}
function createTimeZoneOffsetOps(e) {
return createTimeZoneOps(e, di);
}
function toPlainYearMonthSlots(e, t) {
if (t = co(t), uo(e)) {
const n = Aa(e);
return n && n.branding === mn ? (fo(t), n) : Fo(xi(getCalendarSlotFromBag(e)), e, t);
}
const n = Io(nt, e);
return fo(t), n;
}
function toZonedDateTimeSlots(e, t) {
if (t = co(t), uo(e)) {
const n = Aa(e);
if (n && n.branding === In) {
return Qo(t), n;
}
const o = getCalendarSlotFromBag(e);
return Xo(refineTimeZoneSlot, createTimeZoneOps, Ri(o), o, e, t);
}
return $o(e, t);
}
function slotsToIso(e) {
return bn(e, createTimeZoneOffsetOps);
}
function adaptDateMethods(e) {
return Zt((e => t => e(slotsToIso(t))), e);
}
function toInstantSlots(e) {
if (uo(e)) {
const t = Aa(e);
if (t) {
switch (t.branding) {
case gn:
return t;
case In:
return Oo(t.epochNanoseconds);
}
}
}
return lr(e);
}
function qt() {
return hi(Oo(cr(this.valueOf(), Z)));
}
function getImplTransition(e, t, n) {
const o = t.C(toInstantSlots(n).epochNanoseconds, e);
return o ? hi(Oo(o)) : null;
}
function refineTimeZoneSlot(e) {
return uo(e) ? (Aa(e) || {}).timeZone || gi(e) : (e => Pr(Dr(Le(e))))(e);
}
function toPlainTimeSlots(e, t) {
if (uo(e)) {
const n = Aa(e) || {};
switch (n.branding) {
case Dn:
return fo(t), n;
case Tn:
return fo(t), Mr(n);
case In:
return fo(t), Wo(createTimeZoneOffsetOps, n);
}
return yr(e, t);
}
return fo(t), Nr(e);
}
function optionalToPlainTimeFields(e) {
return void 0 === e ? void 0 : toPlainTimeSlots(e);
}
function toPlainDateTimeSlots(e, t) {
if (t = co(t), uo(e)) {
const n = Aa(e) || {};
switch (n.branding) {
case Tn:
return fo(t), n;
case hn:
return fo(t), To({
...n,
...ve
});
case In:
return fo(t), Go(createTimeZoneOffsetOps, n);
}
return Ur(Ri(getCalendarSlotFromBag(e)), e, t);
}
const n = zr(e);
return fo(t), n;
}
function toPlainDateSlots(e, t) {
if (t = co(t), uo(e)) {
const n = Aa(e) || {};
switch (n.branding) {
case hn:
return fo(t), n;
case Tn:
return fo(t), Xt(n);
case In:
return fo(t), Ro(createTimeZoneOffsetOps, n);
}
return aa(Ri(getCalendarSlotFromBag(e)), e, t);
}
const n = ia(e);
return fo(t), n;
}
function dayAdapter(e, t, n) {
return Ht(t.call(e, wi(Xt(n, e))));
}
function createCompoundOpsCreator(e) {
return t => "string" == typeof t ? nt(t) : ((e, t) => {
const n = Object.keys(t).sort(), o = {};
for (const r of n) {
o[r] = no(t[r], e, e[r]);
}
return o;
})(t, e);
}
function toDurationSlots(e) {
if (uo(e)) {
const t = Aa(e);
return t && t.branding === yn ? t : Ta(e);
}
return pa(e);
}
function refinePublicRelativeTo(e) {
if (void 0 !== e) {
if (uo(e)) {
const t = Aa(e) || {};
switch (t.branding) {
case In:
case hn:
return t;
case Tn:
return Xt(t);
}
const n = getCalendarSlotFromBag(e);
return {
...ha(refineTimeZoneSlot, createTimeZoneOps, Ri(n), e),
calendar: n
};
}
return Pa(e);
}
}
function getCalendarSlotFromBag(e) {
return extractCalendarSlotFromBag(e) || ae;
}
function extractCalendarSlotFromBag(e) {
const {calendar: t} = e;
if (void 0 !== t) {
return refineCalendarSlot(t);
}
}
function refineCalendarSlot(e) {
return uo(e) ? (Aa(e) || {}).calendar || os(e) : (e => Fa(Ia(Le(e))))(e);
}
import { createGetterDescriptors as Ct, mapProps as Zt, createPropDescriptors as xt, createStringTagDescriptors as Bt, createNameDescriptors as Yt, invalidCallingContext as i, hasAllPropsByName as At, invalidProtocol as m, invalidBag as o, RawDateTimeFormat as Fe, pluckProps as Vt, createLazyGenerator as Jt, invalidFormatType as Lt, createFormatPrepper as Rt, createFormatForPrep as Wt, mismatchingFormatTypes as F, plainYearMonthConfig as Mt, plainMonthDayConfig as Pt, plainDateConfig as Et, plainDateTimeConfig as vt, plainTimeConfig as Ft, instantConfig as bt, zonedDateTimeConfig as St, requireStringOrUndefined as Gt, requireIntegerOrUndefined as Ut, requireInteger as zt, requirePositiveInteger as Ht, requireBoolean as Ae, requireString as Le, mapPropNames as Kt, getId as Qt, createPlainDateSlots as Xt, durationFieldNamesAsc as de, timeFieldNamesAsc as j, isoTimeFieldNamesAsc as ge, getEpochSeconds as $t, getEpochMilliseconds as _t, getEpochMicroseconds as eo, getEpochNanoseconds as to, createNativeStandardOps as nt, forbiddenValueOf as r, bindArgs as no, excludePropsByName as oo, PlainDateBranding as hn, PlainYearMonthBranding as mn, PlainMonthDayBranding as pn, plainMonthDayWithFields as ro, plainMonthDaysEqual as ao, formatPlainMonthDayIso as io, plainMonthDayToPlainDate as so, constructPlainMonthDaySlots as lo, copyOptions as co, isObjectLike as uo, refineOverflowOptions as fo, refinePlainMonthDayBag as mo, parsePlainMonthDay as So, isoCalendarId as ae, requireFunction as je, createInstantSlots as Oo, createPlainDateTimeSlots as To, validateTimeZoneOffset as po, queryNativeTimeZone as wn, plainYearMonthWithFields as ho, movePlainYearMonth as Po, diffPlainYearMonth as Do, plainYearMonthsEqual as Co, formatPlainYearMonthIso as go, plainYearMonthToPlainDate as Zo, constructPlainYearMonthSlots as bo, refinePlainYearMonthBag as Fo, parsePlainYearMonth as Io, compareIsoDateFields as vo, computeHoursInDay as wo, formatOffsetNano as jo, ZonedDateTimeBranding as In, zonedEpochSlotsToIso as bn, zonedDateTimeWithFields as Mo, zonedDateTimeWithPlainTime as yo, zonedDateTimeWithPlainDate as No, slotsWithTimeZone as Bo, slotsWithCalendar as Yo, moveZonedDateTime as Ao, createDurationSlots as Eo, diffZonedDateTimes as Vo, roundZonedDateTime as Jo, computeStartOfDay as Lo, zonedDateTimesEqual as ko, formatZonedDateTimeIso as qo, zonedDateTimeToInstant as xo, zonedDateTimeToPlainDate as Ro, zonedDateTimeToPlainTime as Wo, zonedDateTimeToPlainDateTime as Go, zonedDateTimeToPlainYearMonth as Uo, zonedDateTimeToPlainMonthDay as zo, buildZonedIsoFields as Ho, constructZonedDateTimeSlots as Ko, refineZonedFieldOptions as Qo, refineZonedDateTimeBag as Xo, parseZonedDateTime as $o, compareZonedDateTimes as _o, moveInstant as er, diffInstants as tr, roundInstant as nr, instantsEqual as or, formatInstantIso as rr, instantToZonedDateTime as ar, requireObjectLike as ir, constructInstantSlots as sr, InstantBranding as gn, parseInstant as lr, numberToDayTimeNano as cr, epochSecToInstant as ur, epochMilliToInstant as dr, epochMicroToInstant as fr, epochNanoToInstant as mr, compareInstants as Sr, nanoInMilli as Z, epochNanoToIso as Or, refineEpochDisambigOptions as Tr, getSingleInstantFor as pr, isTimeZoneSlotsEqual as hr, resolveTimeZoneId as Pr, parseTimeZoneId as Dr, plainTimeWithFields as Cr, movePlainTime as gr, diffPlainTimes as Zr, roundPlainTime as br, plainTimesEqual as Fr, formatPlainTimeIso as Ir, plainTimeToZonedDateTime as vr, plainTimeToPlainDateTime as wr, constructPlainTimeSlots as jr, PlainTimeBranding as Dn, PlainDateTimeBranding as Tn, createPlainTimeSlots as Mr, refinePlainTimeBag as yr, parsePlainTime as Nr, compareIsoTimeFields as Br, plainDateTimeWithFields as Yr, plainDateTimeWithPlainTime as Ar, plainDateTimeWithPlainDate as Er, movePlainDateTime as Vr, diffPlainDateTimes as Jr, roundPlainDateTime as Lr, plainDateTimesEqual as kr, formatPlainDateTimeIso as qr, plainDateTimeToZonedDateTime as xr, plainDateTimeToPlainYearMonth as Rr, plainDateTimeToPlainMonthDay as Wr, constructPlainDateTimeSlots as Gr, isoTimeFieldDefaults as ve, refinePlainDateTimeBag as Ur, parsePlainDateTime as zr, compareIsoDateTimeFields as Hr, plainDateWithFields as Kr, movePlainDate as Qr, diffPlainDates as Xr, plainDatesEqual as $r, formatPlainDateIso as _r, plainDateToZonedDateTime as ea, plainDateToPlainDateTime as ta, plainDateToPlainYearMonth as na, plainDateToPlainMonthDay as oa, constructPlainDateSlots as ra, refinePlainDateBag as aa, parsePlainDate as ia, unitNamesAsc as k, queryDurationBlank as sa, queryDurationSign as Sn, constructDurationSlots as la, DurationBranding as yn, durationWithFields as ca, addDurations as ua, negateDuration as da, absDuration as fa, roundDuration as ma, totalDuration as Sa, formatDurationIso as Oa, refineDurationBag as Ta, parseDuration as pa, refineMaybeZonedDateTimeBag as ha, parseZonedOrPlainDateTime as Pa, compareDurations as Da, refineCalendarDiffOptions as Ca, dateFieldNamesAlpha as te, forbiddenField as ga, excludeUndefinedProps as Za, requireNonNullish as ba, resolveCalendarId as Fa, parseCalendarId as Ia, getRequiredDateFields as va, getRequiredMonthDayFields as wa, getRequiredYearMonthFields as ja, getCurrentTimeZoneId as Ma, getCurrentEpochNanoseconds as ya, createZonedDateTimeSlots as Na, getCurrentIsoDateTime as Ba } from "./chunks/fEYw9zwg.esm.js";
const Ya = /*@__PURE__*/ new WeakMap, Aa = /*@__PURE__*/ Ya.get.bind(Ya), Ea = /*@__PURE__*/ Ya.set.bind(Ya), kt = /*@__PURE__*/ createDateTimeFormatClass(), Va = /*@__PURE__*/ new WeakMap, Ja = {
PlainYearMonth: Mt,
PlainMonthDay: Pt,
PlainDate: Et,
PlainDateTime: vt,
PlainTime: Ft,
Instant: bt
}, La = /*@__PURE__*/ Rt(Mt), ka = /*@__PURE__*/ Rt(Pt), qa = /*@__PURE__*/ Rt(Et), xa = /*@__PURE__*/ Rt(vt), Ra = /*@__PURE__*/ Rt(Ft), Wa = /*@__PURE__*/ Rt(bt), Ga = /*@__PURE__*/ Rt(St), Ua = {
era: Gt,
eraYear: Ut,
year: zt,
month: Ht,
daysInMonth: Ht,
daysInYear: Ht,
inLeapYear: Ae,
monthsInYear: Ht
}, za = {
monthCode: Le
}, Ha = {
day: Ht
}, Ka = {
dayOfWeek: Ht,
dayOfYear: Ht,
weekOfYear: Ht,
yearOfWeek: zt,
daysInWeek: Ht
}, Qa = /*@__PURE__*/ Object.assign({}, Ua, za, Ha, Ka), Xa = {
...createCalendarFieldMethods(Ua, [ mn ]),
...createCalendarFieldMethods(Ka, []),
...createCalendarFieldMethods(za, [ mn, pn ]),
...createCalendarFieldMethods(Ha, [ pn ])
}, $a = /*@__PURE__*/ createCalendarGetters(Qa), _a = /*@__PURE__*/ createCalendarGetters({
...Ua,
...za
}), ei = /*@__PURE__*/ createCalendarGetters({
...za,
...Ha
}), ti = {
calendarId: e => Qt(e.calendar)
}, ni = /*@__PURE__*/ Zt(((e, t) => function(n) {
const {X: o} = this;
return e(o[t](wi(Xt(n, o))));
}), Qa), oi = /*@__PURE__*/ Kt((e => t => t[e]), de), ri = /*@__PURE__*/ Kt(((e, t) => e => e[ge[t]]), j), ai = {
epochSeconds: $t,
epochMilliseconds: _t,
epochMicroseconds: eo,
epochNanoseconds: to
}, ii = /*@__PURE__*/ no(oo, new Set([ "branding" ])), [si, li, ci] = createSlotClass(pn, no(lo, refineCalendarSlot), {
...ti,
...ei
}, {
with(e, t, n) {
return li(ro(zi, e, this, rejectInvalidBag(t), n));
},
equals: (e, t) => ao(e, toPlainMonthDaySlots(t)),
toString: io,
toJSON: e => io(e),
toLocaleString(e, t, n) {
const [o, r] = ka(t, n, e);
return o.format(r);
},
toPlainDate(e, t) {
return wi(so(Ui, e, this, t));
},
getISOFields: ii,
getCalendar: createCalendarFromSlots,
valueOf: neverValueOf
}, {
from: (e, t) => li(toPlainMonthDaySlots(e, t))
}), ui = {
getOffsetNanosecondsFor: getOffsetNanosecondsForAdapter,
getPossibleInstantsFor(e, t, n) {
return [ ...t.call(e, Ii(To(n, ae))) ].map((e => Pi(e).epochNanoseconds));
}
}, di = {
getOffsetNanosecondsFor: getOffsetNanosecondsForAdapter
}, [fi, mi, Si] = createSlotClass(mn, no(bo, refineCalendarSlot), {
...ti,
..._a
}, {
with(e, t, n) {
return mi(ho(Gi, e, this, rejectInvalidBag(t), n));
},
add: (e, t, n) => mi(Po(Qi, 0, e, toDurationSlots(t), n)),
subtract: (e, t, n) => mi(Po(Qi, 1, e, toDurationSlots(t), n)),
until: (e, t, n) => _i(Do(Xi, 0, e, toPlainYearMonthSlots(t), n)),
since: (e, t, n) => _i(Do(Xi, 1, e, toPlainYearMonthSlots(t), n)),
equals: (e, t) => Co(e, toPlainYearMonthSlots(t)),
toString: go,
toJSON: e => go(e),
toLocaleString(e, t, n) {
const [o, r] = La(t, n, e);
return o.format(r);
},
toPlainDate(e, t) {
return wi(Zo(Ui, e, this, t));
},
getISOFields: ii,
getCalendar: createCalendarFromSlots,
valueOf: neverValueOf
}, {
from: (e, t) => mi(toPlainYearMonthSlots(e, t)),
compare: (e, t) => vo(toPlainYearMonthSlots(e), toPlainYearMonthSlots(t))
}), [Oi, Ti] = createSlotClass(In, no(Ko, refineCalendarSlot, refineTimeZoneSlot), {
...ai,
...ti,
...adaptDateMethods($a),
...adaptDateMethods(ri),
hoursInDay: e => wo(createTimeZoneOps, e),
offsetNanoseconds: e => slotsToIso(e).offsetNanoseconds,
offset: e => jo(slotsToIso(e).offsetNanoseconds),
timeZoneId: e => Qt(e.timeZone)
}, {
with(e, t, n) {
return Ti(Mo(Ui, createTimeZoneOps, e, this, rejectInvalidBag(t), n));
},
withPlainTime: (e, t) => Ti(yo(createTimeZoneOps, e, optionalToPlainTimeFields(t))),
withPlainDate: (e, t) => Ti(No(createTimeZoneOps, e, toPlainDateSlots(t))),
withTimeZone: (e, t) => Ti(Bo(e, refineTimeZoneSlot(t))),
withCalendar: (e, t) => Ti(Yo(e, refineCalendarSlot(t))),
add: (e, t, n) => Ti(Ao(Hi, createTimeZoneOps, 0, e, toDurationSlots(t), n)),
subtract: (e, t, n) => Ti(Ao(Hi, createTimeZoneOps, 1, e, toDurationSlots(t), n)),
until: (e, t, n) => _i(Eo(Vo(Ki, createTimeZoneOps, 0, e, toZonedDateTimeSlots(t), n))),
since: (e, t, n) => _i(Eo(Vo(Ki, createTimeZoneOps, 1, e, toZonedDateTimeSlots(t), n))),
round: (e, t) => Ti(Jo(createTimeZoneOps, e, t)),
startOfDay: e => Ti(Lo(createTimeZoneOps, e)),
equals: (e, t) => ko(e, toZonedDateTimeSlots(t)),
toString: (e, t) => qo(createTimeZoneOffsetOps, e, t),
toJSON: e => qo(createTimeZoneOffsetOps, e),
toLocaleString(e, t, n = {}) {
const [o, r] = Ga(t, n, e);
return o.format(r);
},
toInstant: e => hi(xo(e)),
toPlainDate: e => wi(Ro(createTimeZoneOffsetOps, e)),
toPlainTime: e => bi(Wo(createTimeZoneOffsetOps, e)),
toPlainDateTime: e => Ii(Go(createTimeZoneOffsetOps, e)),
toPlainYearMonth(e) {
return mi(Uo(xi, e, this));
},
toPlainMonthDay(e) {
return li(zo(Wi, e, this));
},
getISOFields: e => Ho(createTimeZoneOffsetOps, e),
getCalendar: createCalendarFromSlots,
getTimeZone: ({timeZone: e}) => "string" == typeof e ? new Di(e) : e,
valueOf: neverValueOf
}, {
from: (e, t) => Ti(toZonedDateTimeSlots(e, t)),
compare: (e, t) => _o(toZonedDateTimeSlots(e), toZonedDateTimeSlots(t))
}), [pi, hi, Pi] = createSlotClass(gn, sr, ai, {
add: (e, t) => hi(er(0, e, toDurationSlots(t))),
subtract: (e, t) => hi(er(1, e, toDurationSlots(t))),
until: (e, t, n) => _i(tr(0, e, toInstantSlots(t), n)),
since: (e, t, n) => _i(tr(1, e, toInstantSlots(t), n)),
round: (e, t) => hi(nr(e, t)),
equals: (e, t) => or(e, toInstantSlots(t)),
toString: (e, t) => rr(refineTimeZoneSlot, createTimeZoneOffsetOps, e, t),
toJSON: e => rr(refineTimeZoneSlot, createTimeZoneOffsetOps, e),
toLocaleString(e, t, n) {
const [o, r] = Wa(t, n, e);
return o.format(r);
},
toZonedDateTimeISO: (e, t) => Ti(ar(e, refineTimeZoneSlot(t))),
toZonedDateTime(e, t) {
const n = ir(t);
return Ti(ar(e, refineTimeZoneSlot(n.timeZone), refineCalendarSlot(n.calendar)));
},
valueOf: neverValueOf
}, {
from: e => hi(toInstantSlots(e)),
fromEpochSeconds: e => hi(ur(e)),
fromEpochMilliseconds: e => hi(dr(e)),
fromEpochMicroseconds: e => hi(fr(e)),
fromEpochNanoseconds: e => hi(mr(e)),
compare: (e, t) => Sr(toInstantSlots(e), toInstantSlots(t))
}), [Di, Ci] = createSlotClass("TimeZone", (e => {
const t = Pr(e);
return {
branding: "TimeZone",
id: t,
K: wn(t)
};
}), {
id: e => e.id
}, {
toString: e => e.id,
toJSON: e => e.id,
getPossibleInstantsFor: ({K: e}, t) => e.getPossibleInstantsFor(toPlainDateTimeSlots(t)).map((e => hi(Oo(e)))),
getOffsetNanosecondsFor: ({K: e}, t) => e.getOffsetNanosecondsFor(toInstantSlots(t).epochNanoseconds),
getOffsetStringFor(e, t) {
const n = toInstantSlots(t).epochNanoseconds, o = createAdapterOps(this, di).getOffsetNanosecondsFor(n);
return jo(o);
},
getPlainDateTimeFor(e, t, n = ae) {
const o = toInstantSlots(t).epochNanoseconds, r = createAdapterOps(this, di).getOffsetNanosecondsFor(o);
return Ii(To(Or(o, r), refineCalendarSlot(n)));
},
getInstantFor(e, t, n) {
const o = toPlainDateTimeSlots(t), r = Tr(n), a = createAdapterOps(this);
return hi(Oo(pr(a, o, r)));
},
getNextTransition: ({K: e}, t) => getImplTransition(1, e, t),
getPreviousTransition: ({K: e}, t) => getImplTransition(-1, e, t),
equals(e, t) {
return !!hr(this, refineTimeZoneSlot(t));
}
}, {
from(e) {
const t = refineTimeZoneSlot(e);
return "string" == typeof t ? new Di(t) : t;
}
}), gi = /*@__PURE__*/ createProtocolValidator(Object.keys(ui)), [Zi, bi] = createSlotClass(Dn, jr, ri, {
with(e, t, n) {
return bi(Cr(this, rejectInvalidBag(t), n));
},
add: (e, t) => bi(gr(0, e, toDurationSlots(t))),
subtract: (e, t) => bi(gr(1, e, toDurationSlots(t))),
until: (e, t, n) => _i(Zr(0, e, toPlainTimeSlots(t), n)),
since: (e, t, n) => _i(Zr(1, e, toPlainTimeSlots(t), n)),
round: (e, t) => bi(br(e, t)),
equals: (e, t) => Fr(e, toPlainTimeSlots(t)),
toString: Ir,
toJSON: e => Ir(e),
toLocaleString(e, t, n) {
const [o, r] = Ra(t, n, e);
return o.format(r);
},
toZonedDateTime: (e, t) => Ti(vr(refineTimeZoneSlot, toPlainDateSlots, createTimeZoneOps, e, t)),
toPlainDateTime: (e, t) => Ii(wr(e, toPlainDateSlots(t))),
getISOFields: ii,
valueOf: neverValueOf
}, {
from: (e, t) => bi(toPlainTimeSlots(e, t)),
compare: (e, t) => Br(toPlainTimeSlots(e), toPlainTimeSlots(t))
}), [Fi, Ii] = createSlotClass(Tn, no(Gr, refineCalendarSlot), {
...ti,
...$a,
...ri
}, {
with(e, t, n) {
return Ii(Yr(Ui, e, this, rejectInvalidBag(t), n));
},
withPlainTime: (e, t) => Ii(Ar(e, optionalToPlainTimeFields(t))),
withPlainDate: (e, t) => Ii(Er(e, toPlainDateSlots(t))),
withCalendar: (e, t) => Ii(Yo(e, refineCalendarSlot(t))),
add: (e, t, n) => Ii(Vr(Hi, 0, e, toDurationSlots(t), n)),
subtract: (e, t, n) => Ii(Vr(Hi, 1, e, toDurationSlots(t), n)),
until: (e, t, n) => _i(Jr(Ki, 0, e, toPlainDateTimeSlots(t), n)),
since: (e, t, n) => _i(Jr(Ki, 1, e, toPlainDateTimeSlots(t), n)),
round: (e, t) => Ii(Lr(e, t)),
equals: (e, t) => kr(e, toPlainDateTimeSlots(t)),
toString: (e, t) => qr(e, t),
toJSON: e => qr(e),
toLocaleString(e, t, n) {
const [o, r] = xa(t, n, e);
return o.format(r);
},
toZonedDateTime: (e, t, n) => Ti(xr(createTimeZoneOps, e, refineTimeZoneSlot(t), n)),
toPlainDate: e => wi(Xt(e)),
toPlainYearMonth(e) {
return mi(Rr(xi, e, this));
},
toPlainMonthDay(e) {
return li(Wr(Wi, e, this));
},
toPlainTime: e => bi(Mr(e)),
getISOFields: ii,
getCalendar: createCalendarFromSlots,
valueOf: neverValueOf
}, {
from: (e, t) => Ii(toPlainDateTimeSlots(e, t)),
compare: (e, t) => Hr(toPlainDateTimeSlots(e), toPlainDateTimeSlots(t))
}), [vi, wi, ji] = createSlotClass(hn, no(ra, refineCalendarSlot), {
...ti,
...$a
}, {
with(e, t, n) {
return wi(Kr(Ui, e, this, rejectInvalidBag(t), n));
},
withCalendar: (e, t) => wi(Yo(e, refineCalendarSlot(t))),
add: (e, t, n) => wi(Qr(Hi, 0, e, toDurationSlots(t), n)),
subtract: (e, t, n) => wi(Qr(Hi, 1, e, toDurationSlots(t), n)),
until: (e, t, n) => _i(Xr(Ki, 0, e, toPlainDateSlots(t), n)),
since: (e, t, n) => _i(Xr(Ki, 1, e, toPlainDateSlots(t), n)),
equals: (e, t) => $r(e, toPlainDateSlots(t)),
toString: _r,
toJSON: e => _r(e),
toLocaleString(e, t, n) {
const [o, r] = qa(t, n, e);
return o.format(r);
},
toZonedDateTime(e, t) {
const n = !uo(t) || t instanceof Di ? {
timeZone: t
} : t;
return Ti(ea(refineTimeZoneSlot, toPlainTimeSlots, createTimeZoneOps, e, n));
},
toPlainDateTime: (e, t) => Ii(ta(e, optionalToPlainTimeFields(t))),
toPlainYearMonth(e) {
return mi(na(xi, e, this));
},
toPlainMonthDay(e) {
return li(oa(Wi, e, this));
},
getISOFields: ii,
getCalendar: createCalendarFromSlots,
valueOf: neverValueOf
}, {
from: (e, t) => wi(toPlainDateSlots(e, t)),
compare: (e, t) => vo(toPlainDateSlots(e), toPlainDateSlots(t))
}), Mi = {
fields(e, t, n) {
return [ ...t.call(e, n) ];
}
}, yi = /*@__PURE__*/ Object.assign({
dateFromFields(e, t, n, o) {
return ji(t.call(e, Object.assign(Object.create(null), n), o));
}
}, Mi), Ni = /*@__PURE__*/ Object.assign({
yearMonthFromFields(e, t, n, o) {
return Si(t.call(e, Object.assign(Object.create(null), n), o));
}
}, Mi), Bi = /*@__PURE__*/ Object.assign({
monthDayFromFields(e, t, n, o) {
return ci(t.call(e, Object.assign(Object.create(null), n), o));
}
}, Mi), Yi = {
mergeFields(e, t, n, o) {
return ir(t.call(e, Object.assign(Object.create(null), n), Object.assign(Object.create(null), o)));
}
}, Ai = /*@__PURE__*/ Object.assign({}, yi, Yi), Ei = /*@__PURE__*/ Object.assign({}, Ni, Yi), Vi = /*@__PURE__*/ Object.assign({}, Bi, Yi), Ji = {
dateAdd(e, t, n, o, r) {
return ji(t.call(e, wi(Xt(n, e)), _i(Eo(o)), r));
}
}, Li = /*@__PURE__*/ Object.assign({}, Ji, {
dateUntil(e, t, n, o, r, a) {
return es(t.call(e, wi(Xt(n, e)), wi(Xt(o, e)), Object.assign(Object.create(null), a, {
largestUnit: k[r]
})));
}
}), ki = /*@__PURE__*/ Object.assign({}, Ji, {
day: dayAdapter
}), qi = /*@__PURE__*/ Object.assign({}, Li, {
day: dayAdapter
}), xi = /*@__PURE__*/ createCompoundOpsCreator(Ni), Ri = /*@__PURE__*/ createCompoundOpsCreator(yi), Wi = /*@__PURE__*/ createCompoundOpsCreator(Bi), Gi = /*@__PURE__*/ createCompoundOpsCreator(Ei), Ui = /*@__PURE__*/ createCompoundOpsCreator(Ai), zi = /*@__PURE__*/ createCompoundOpsCreator(Vi), Hi = /*@__PURE__*/ createCompoundOpsCreator(Ji), Ki = /*@__PURE__*/ createCompoundOpsCreator(Li), Qi = /*@__PURE__*/ createCompoundOpsCreator(ki), Xi = /*@__PURE__*/ createCompoundOpsCreator(qi), [$i, _i, es] = createSlotClass(yn, la, {
...oi,
blank: e => sa(e),
sign: e => Sn(e)
}, {
with: (e, t) => _i(ca(e, t)),
add: (e, t, n) => _i(ua(refinePublicRelativeTo, Ki, createTimeZoneOps, 0, e, toDurationSlots(t), n)),
subtract: (e, t, n) => _i(ua(refinePublicRelativeTo, Ki, createTimeZoneOps, 1, e, toDurationSlots(t), n)),
negated: e => _i(da(e)),
abs: e => _i(fa(e)),
round: (e, t) => _i(ma(refinePublicRelativeTo, Ki, createTimeZoneOps, e, t)),
total: (e, t) => Sa(refinePublicRelativeTo, Ki, createTimeZoneOps, e, t),
toString: Oa,
toLocaleString(e, t, n) {
return Intl.DurationFormat ? new Intl.DurationFormat(t, n).format(this) : Oa(e);
},
toJSON: e => Oa(e),
valueOf: neverValueOf
}, {
from: e => _i(toDurationSlots(e)),
compare: (e, t, n) => Da(refinePublicRelativeTo, Ki, createTimeZoneOps, toDurationSlots(e), toDurationSlots(t), n)
}), ts = {
toString: e => e.id,
toJSON: e => e.id,
...Xa,
dateAdd: ({id: e, K: t}, n, o, r) => wi(Xt(t.dateAdd(toPlainDateSlots(n), toDurationSlots(o), r), e)),
dateUntil: ({K: e}, t, n, o) => _i(Eo(e.dateUntil(toPlainDateSlots(t), toPlainDateSlots(n), Ca(o)))),
dateFromFields: ({id: e, K: t}, n, o) => wi(aa(t, n, o, va(e))),
yearMonthFromFields: ({id: e, K: t}, n, o) => mi(Fo(t, n, o, ja(e))),
monthDayFromFields: ({id: e, K: t}, n, o) => li(mo(t, 0, n, o, wa(e))),
fields({K: e}, t) {
const n = new Set(te), o = [];
for (const e of t) {
if (Le(e), !n.has(e)) {
throw new RangeError(ga(e));
}
n.delete(e), o.push(e);
}
return e.fields(o);
},
mergeFields: ({K: e}, t, n) => e.mergeFields(Za(ba(t)), Za(ba(n)))
}, [ns] = createSlotClass("Calendar", (e => {
const t = Fa(Le(e));
return {
branding: "Calendar",
id: t,
K: nt(t)
};
}), {
id: e => e.id
}, ts, {
from(e) {
const t = refineCalendarSlot(e);
return "string" == typeof t ? new ns(t) : t;
}
}), os = /*@__PURE__*/ createProtocolValidator(Object.keys(ts).slice(4)), rs = /*@__PURE__*/ Object.defineProperties({}, {
...Bt("Temporal.Now"),
...xt({
timeZoneId: () => Ma(),
instant: () => hi(Oo(ya())),
zonedDateTime: (e, t = Ma()) => Ti(Na(ya(), refineTimeZoneSlot(t), refineCalendarSlot(e))),
zonedDateTimeISO: (e = Ma()) => Ti(Na(ya(), refineTimeZoneSlot(e), ae)),
plainDateTime: (e, t = Ma()) => Ii(To(Ba(createTimeZoneOffsetOps(refineTimeZoneSlot(t))), refineCalendarSlot(e))),
plainDateTimeISO: (e = Ma()) => Ii(To(Ba(createTimeZoneOffsetOps(refineTimeZoneSlot(e))), ae)),
plainDate: (e, t = Ma()) => wi(Xt(Ba(createTimeZoneOffsetOps(refineTimeZoneSlot(t))), refineCalendarSlot(e))),
plainDateISO: (e = Ma()) => wi(Xt(Ba(createTimeZoneOffsetOps(refineTimeZoneSlot(e))), ae)),
plainTimeISO: (e = Ma()) => bi(Mr(Ba(createTimeZoneOffsetOps(refineTimeZoneSlot(e)))))
})
}), jt = /*@__PURE__*/ Object.defineProperties({}, {
...Bt("Temporal"),
...xt({
PlainYearMonth: fi,
PlainMonthDay: si,
PlainDate: vi,
PlainTime: Zi,
PlainDateTime: Fi,
ZonedDateTime: Oi,
Instant: pi,
Calendar: ns,
TimeZone: Di,
Duration: $i,
Now: rs
})
});
export { kt as DateTimeFormat, jt as Temporal, qt as toTemporalInstant };

@@ -1,1 +0,1 @@

export * from 'temporal-spec'
export * from 'temporal-spec';

@@ -1,1 +0,1 @@

export { D as DateTimeFormat, T as Temporal, t as toTemporalInstant } from "./chunk-33169ef4.esm.js";
export { DateTimeFormat, Temporal, toTemporalInstant } from "./impl.esm.js";
{
"name": "temporal-polyfill",
"version": "0.2.0",
"version": "0.2.1",
"title": "Temporal Polyfill",

@@ -18,7 +18,6 @@ "description": "A lightweight polyfill for Temporal, successor to the JavaScript Date object",

"license": "MIT",
"copyright": "2022 Adam Shaw",
"copyright": "2024 Adam Shaw",
"repository": {
"type": "git",
"url": "https://github.com/fullcalendar/temporal-polyfill.git",
"directory": "packages/temporal-polyfill"
"url": "https://github.com/fullcalendar/temporal-polyfill.git"
},

@@ -38,3 +37,4 @@ "type": "module",

"require": "./index.cjs",
"import": "./index.esm.js"
"import": "./index.esm.js",
"default": "./index.esm.js"
},

@@ -44,3 +44,4 @@ "./impl": {

"require": "./impl.cjs",
"import": "./impl.esm.js"
"import": "./impl.esm.js",
"default": "./impl.esm.js"
},

@@ -50,5 +51,12 @@ "./global": {

"require": "./global.cjs",
"import": "./global.esm.js"
"import": "./global.esm.js",
"default": "./global.esm.js"
}
}
},
"sideEffects": [
"./global.cjs",
"./global.esm.js",
"./global.js",
"./global.min.js"
]
}

@@ -16,3 +16,3 @@

- [BigInt Considerations](#bigint-considerations)
- [Tree-shakeable API](#tree-shakeable-api) (coming soon)
- [Tree-shakable API](#tree-shakable-api) (coming soon)

@@ -45,3 +45,3 @@

```html
<script src='https://cdn.jsdelivr.net/npm/temporal-polyfill@0.2.0/global.min.js'></script>
<script src='https://cdn.jsdelivr.net/npm/temporal-polyfill@0.2.1/global.min.js'></script>
<script>

@@ -84,12 +84,7 @@ console.log(Temporal.Now.zonedDateTimeISO().toString())

<tr>
<td>Minified+gzip size &#10013;</td>
<td>20.0 kB</td>
<td>43.2 kB (+116%)</td>
<td>Minified+gzip size</td>
<td><a href='https://bundlephobia.com/package/temporal-polyfill'>20 KB<a></td>
<td><a href='https://bundlephobia.com/package/@js-temporal/polyfill'>56 KB</a> (+180%)</td>
</tr>
<tr>
<td>Minified-only size &#10013;</td>
<td>58.7 kB</td>
<td>206.0 kB (+251%)</td>
</tr>
<tr>
<td>Spec compliance</td>

@@ -107,3 +102,3 @@ <td>

<td>
Nov 2023 (latest)
Nov 2023
</td>

@@ -115,3 +110,3 @@ <td>

<tr>
<td>BigInt Approach</td>
<td>BigInt approach</td>
<td>Internally avoids BigInt operations altogether</td>

@@ -129,5 +124,3 @@ <td>Internally relies on <a href='https://github.com/GoogleChromeLabs/jsbi'>JSBI</a></td>

&#10013; Compares [global.min.js](https://cdn.jsdelivr.net/npm/temporal-polyfill@0.2.0/global.min.js) with [index.esm.js](https://cdn.jsdelivr.net/npm/@js-temporal/polyfill@0.4.4/dist/index.esm.js), which are similarly transpiled.
## Spec Compliance

@@ -140,5 +133,4 @@

- `Duration::toString` does not display units greater than `Number.MAX_SAFE_INTEGER` according to spec. Precision is chosen differently.
- *Custom implementations* of Calendars and TimeZones are queried differently. Only affects those subclassing built-in classes, which is extremely rare. See the CALLING entries in the [test-ignore file](https://github.com/fullcalendar/temporal/blob/main/packages/temporal-polyfill/scripts/test-config/expected-failures.txt).
- There are believed to be 3 bugs in the Temporal spec itself, one of which [has been filed](https://github.com/tc39/proposal-temporal/issues/2742). See SPEC-BUG entries in the [test-ignore file](https://github.com/fullcalendar/temporal/blob/main/packages/temporal-polyfill/scripts/test-config/expected-failures.txt).
- Canonicalization of time zone IDs is simplified, leveraging the built-in `Intl` API.
- *Custom implementations* of Calendars and TimeZones are queried differently. Only affects those subclassing built-in classes, which is extremely rare. See the CALLING entries in the [test-skip file](https://github.com/fullcalendar/temporal/blob/main/packages/temporal-polyfill/scripts/test-config/expected-failures.txt).
- There are believed to be 3 bugs in the Temporal spec itself, one of which [has been reported](https://github.com/tc39/proposal-temporal/issues/2742). See SPEC-BUG entries in the [test-skip file](https://github.com/fullcalendar/temporal/blob/main/packages/temporal-polyfill/scripts/test-config/expected-failures.txt).
- `Intl.DateTimeFormat` has not been polyfilled to accept number-offset values for the `timeZone` option.

@@ -151,4 +143,4 @@ - Method descriptors and `Function::length` are not strictly compliant due to ES-related space-saving techniques.

- 6138 *passed* by `temporal-polyfill`
- 495 *ignored* due to superficial method descriptor compliance
- 178 *ignored* due to other aforementioned intentional deviations
- 495 *skipped* due to superficial method descriptor non-compliance
- 178 *skipped* due to other aforementioned intentional deviations

@@ -271,3 +263,3 @@

## Tree-shakeable API
## Tree-shakable API

@@ -274,0 +266,0 @@ šŸš§ Coming Soon

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with āš”ļø by Socket Inc