class P extends Error{}class zn extends P{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class Un extends P{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class Rn extends P{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class j extends P{}class Wt extends P{constructor(e){super(`Invalid unit ${e}`)}}class M extends P{}class Z extends P{constructor(){super("Zone is an abstract class")}}const c="numeric",W="short",E="long",Ne={year:c,month:c,day:c},Lt={year:c,month:W,day:c},qn={year:c,month:W,day:c,weekday:W},$t={year:c,month:E,day:c},Zt={year:c,month:E,day:c,weekday:E},At={hour:c,minute:c},zt={hour:c,minute:c,second:c},Ut={hour:c,minute:c,second:c,timeZoneName:W},Rt={hour:c,minute:c,second:c,timeZoneName:E},qt={hour:c,minute:c,hourCycle:"h23"},Ht={hour:c,minute:c,second:c,hourCycle:"h23"},Yt={hour:c,minute:c,second:c,hourCycle:"h23",timeZoneName:W},Pt={hour:c,minute:c,second:c,hourCycle:"h23",timeZoneName:E},Gt={year:c,month:c,day:c,hour:c,minute:c},Jt={year:c,month:c,day:c,hour:c,minute:c,second:c},_t={year:c,month:W,day:c,hour:c,minute:c},Bt={year:c,month:W,day:c,hour:c,minute:c,second:c},Hn={year:c,month:W,day:c,weekday:W,hour:c,minute:c},jt={year:c,month:E,day:c,hour:c,minute:c,timeZoneName:W},Qt={year:c,month:E,day:c,hour:c,minute:c,second:c,timeZoneName:W},Kt={year:c,month:E,day:c,weekday:E,hour:c,minute:c,timeZoneName:E},Xt={year:c,month:E,day:c,weekday:E,hour:c,minute:c,second:c,timeZoneName:E};class fe{get type(){throw new Z}get name(){throw new Z}get ianaName(){return this.name}get isUniversal(){throw new Z}offsetName(e,t){throw new Z}formatOffset(e,t){throw new Z}offset(e){throw new Z}equals(e){throw new Z}get isValid(){throw new Z}}let We=null;class De extends fe{static get instance(){return We===null&&(We=new De),We}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:r}){return ln(e,t,r)}formatOffset(e,t){return le(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let Oe={};function Yn(n){return Oe[n]||(Oe[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Oe[n]}const Pn={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Gn(n,e){const t=n.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(t),[,s,i,a,o,u,l,f]=r;return[a,s,i,o,u,l,f]}function Jn(n,e){const t=n.formatToParts(e),r=[];for(let s=0;s