@getvitops/core 8.0.1 → 8.2.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- const e=(e,t)=>`Non-positive ${e}: ${t}`,t=(e,t)=>`Non-finite ${e}: ${t}`,n=e=>`Cannot convert bigint to ${e}`,r=(e,t,n,r)=>i(e,t)+`; must be between ${n}-${r}`,i=(e,t)=>`Invalid ${e}: ${t}`;function a(e){return e===void 0?Object.create(null):f(e)}function o(e,r=`number`){if(typeof e==`bigint`)throw TypeError(n(r));if(e=Number(e),!Number.isFinite(e))throw RangeError(t(r,e));return e}function s(e,t){return Math.trunc(o(e,t))||0}function c(e,t){return l(s(e,t),t)}function l(t,n=`number`){if(t<=0)throw RangeError(e(n,t));return t}function u(e,t,n){return Math.min(Math.max(e,t),n)}function d(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}function f(e){if(!d(e))throw TypeError(`Invalid object`);return e}const p=i,m=e=>`Missing ${e}`,ee=e=>`No valid fields: `+e.join(),h=(e,t,n)=>i(e,t)+`; must be `+Object.keys(n).join(),te=e=>`Missing year`+(e?`/era/eraYear`:``),ne=`Invalid leap month`,re=e=>i(`Calendar`,e),ie=(e,t)=>`Unknown calendar ${e}; might need ${t}`,ae=e=>i(`TimeZone`,e),oe=e=>`Cannot parse: ${e}`,se=e=>`Invalid substring: ${e}`,ce=e=>`Cannot format ${e}`,le=u,g=d;function _(e){throw RangeError(e)}function v(e){throw TypeError(e)}function ue(e,t,n,r,i){return de(t,((e,t)=>{let n=e[t];return n===void 0&&v(m(t)),n})(e,t),n,r,i)}function de(e,t,n,i,a,o){let s=le(t,n,i);return a&&t!==s&&_(((e,t,n,i,a)=>a?r(e,a[t],a[n],a[i]):r(e,t,n,i))(e,t,n,i,o)),s}function fe(e,t=Map){let n=new t;return(t,...r)=>{if(n.has(t))return n.get(t);let i=e(t,...r);return n.set(t,i),i}}const pe=e=>me({name:e},1),me=(e,t)=>ge(e=>({value:e,configurable:1,writable:!t}),e),he=e=>({[Symbol.toStringTag]:{value:e,configurable:1}});function ge(e,t){let n={};for(let r in t)n[r]=e(t[r],r);return n}function _e(e,t){let n={};for(let r of e)n[r]=t;return n}function ve(e){let t={};for(let n of e)t[n]=e=>e[n];return t}function y(e,t,n=Object.create(null)){for(let r of e)n[r]=t[r];return n}function ye(e,t,n){for(let r of e)if(t[r]!==n[r])return 0;return 1}function be(e,t,n){let r={...n};for(let n=0;n<t;n++)r[e[n]]=0;return r}function b(e,...t){return(...n)=>e(...t,...n)}function xe(e){return e}function Se(){}function Ce(e){return e[0].toUpperCase()+e.substring(1)}function x(...e){return[].concat(...e).sort()}function we(e){return RegExp(`^${e}$`,`i`)}function Te(e){return parseInt(e.padEnd(9,`0`))}function Ee(e){return e&&e!==`+`?-1:1}function De(e){return e===void 0?0:parseInt(e)}function Oe(e,t){return String(t).padStart(e,`0`)}const ke=b(Oe,2);function Ae(e,t){return Math.sign(e-t)}function S(e,t){return e<t?-1:+(e>t)}function je(e,t){let n=e/t;return e%t<0n?n-1n:n}function Me(e,t){let n=je(e,t);return[n,e-n*t]}function Ne(e,t){return[Math.floor(e/t),Pe(e,t)]}function Pe(e,t){return(e%t+t)%t}function Fe(e,t){return Math.trunc(e/t)||0}function Ie(e,t){return e%t||0}function Le(e,t=1){return t*(.5+e/5)}function Re(e){return Math.abs(e%1)===.5}const ze={bce:-1,ce:0};function Be(e){let t=e.normalize(`NFD`).toLowerCase().replace(/[^a-z0-9]/g,``);return t===`bc`||t===`b`?`bce`:t===`ad`||t===`a`?`ce`:t}function Ve(e){return e===void 0?`iso8601`:e===0?`gregory`:e.id}const He=/^M(\d{2})(L?)$/;function Ue(e){let t=He.exec(e);return t||_((e=>`Invalid monthCode: ${e}`)(e)),[parseInt(t[1]),!!t[2]]}function We(e,t){return`M`+ke(e)+(t?`L`:``)}function Ge(e,t,n){return e+(t||n&&e>=n?1:0)}const Ke={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},qe=Object.keys(Ke),Je=1e3,Ye=1e6,Xe=1e9,Ze=6e10,Qe=36e11,$e=864e11,C=[1,Je,Ye,Xe,Ze,Qe,$e],et=BigInt(Je),tt=BigInt(Ye),nt=BigInt(Xe),rt=BigInt(Ze),it=BigInt(Qe),w=BigInt($e);function at(e,t){let n=Number(e/w),r=Number(e%w);return $e/t*n+(Math.trunc(r/t)+r%t/t)}const T=qe.slice(0,6),ot=ve(T),st=[`year`],ct=[`day`],lt=[`day`,`month`,`year`],ut=[`offset`],dt=[`timeZone`],ft=[`era`,`eraYear`],pt=[`era`,`eraYear`,`year`],mt=[`month`,`monthCode`],ht=[`day`,`month`,`monthCode`],gt=x(T),_t=x(ft,st),vt=x(mt,st),yt=x(ft,vt),bt=x([`monthCode`],st),xt=x(ft,bt),St=x(ct,[`monthCode`]),Ct=x(ct,vt),wt=x(ct,ft,vt),Tt=x(Ct,T),Et=x(wt,T),Dt=x(Ct,T,ut),Ot=x(wt,T,ut),kt=x(Ct,T,ut,dt),At=x(wt,T,ut,dt),jt=x(ct,bt),Mt=x(ct,ft,bt),Nt=_e(T,0);function Pt(e){return It(e,1),e}const Ft={hour:23,minute:59,second:59};function It(e,t){let n={};for(let r of T)n[r]=de(r,e[r],0,Ft[r]||999,t);return n}function E(e){return Rt(e)*Xe+zt(e)}function Lt(e){return 1e3*Rt(e)+e.millisecond}function Rt(e){return 3600*e.hour+60*e.minute+e.second}function zt(e){return e.millisecond*Ye+e.microsecond*Je+e.nanosecond}function Bt(e){let[t,n]=Ne(e,$e);return[Vt(n),t]}function Vt(e){let[t,n]=Ne(e,Ye),[r,i]=Ne(n,Je);return Ht(t,r,i)}function Ht(e,t=0,n=0){let[r,i]=Ne(e,36e5),[a,o]=Ne(i,6e4),[s,c]=Ne(o,1e3);return{hour:r,minute:a,second:s,millisecond:c,microsecond:t,nanosecond:n}}function Ut(e){let[t,n]=Me(e,nt);return[Number(t),Number(n)]}function Wt(e){return Kt(e)+BigInt(E(e))}function Gt(e){return qt(e)+Lt(e)}function Kt(e){return BigInt(Jt(e))*w}function qt(e){return 864e5*Jt(e)}function Jt(e){return Yt(e.year,e.month,e.day)}function Yt(e,t=1,n=1){let r=t-1;return e+=Math.floor(r/12),t=Pe(r,12),Date.UTC(e%400-400,t,0)/864e5+146097*(Fe(e,400)+1)+n}function Xt(e){let[t,n]=Me(e,w);return{...Zt(Number(t)),...Vt(Number(n))}}function Zt(e){let t=new Date(864e5*Pe(e,146097));return{year:t.getUTCFullYear()+400*Math.floor(e/146097),month:t.getUTCMonth()+1,day:t.getUTCDate()}}function Qt(e){return[e,0]}function $t(e,t){if(!t)return{year:1972,month:e}}function en(e,t,n){return{year:e,month:t,day:n}}function tn(e,t){switch(t){case 2:return rn(e)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function nn(e){return rn(e)?366:365}function rn(e){return e%4==0&&(e%100!=0||e%400==0)}function an(e,t,n){return e+=Fe(n,12),(t+=Ie(n,12))<1?(e--,t+=12):t>12&&(e++,t-=12),{year:e,month:t}}function on(e,t,n,r){return 12*(n-e)+r-t}function sn(e){return Pe(Yt(e.year,e.month,e.day)+4,7)||7}function cn(e){return Yt(e.year,e.month,e.day)-Yt(e.year)+1}function ln(e){let t=e.year,n=Math.floor((cn(e)-sn(e)+10)/7),r=un(t);return n<1?n=r=un(--t):n>r&&(n=1,r=un(++t)),{weekOfYear:n,yearOfWeek:t,Ie:r}}function un(e){let t=sn({year:e,month:1,day:1});return t===4||t===3&&rn(e)?53:52}function dn({year:e}){return e<1?{era:`bce`,eraYear:1-e}:{era:`ce`,eraYear:e}}function fn(e){return pn(e),Pt(e)}function pn(e){return hn(e,1),e}function mn(e){return ye(lt,e,hn(e))}function hn(e,t){let{year:n}=e,r=ue(e,`month`,1,12,t);return{year:n,month:r,day:ue(e,`day`,1,tn(n,r),t)}}function D(e,t){return e?e.ie(t):t}function gn(e,t,n){return e?e.O(t,n):Qt(n)}function _n(e,t){return e===0?dn(t):e?e.h(t):{}}function vn(e,t,n,r){return e?e.je(t,n,r):en(t,n,r)}function yn(e,t){return e?e.k(t):12}function bn(e,t,n){return e?e.p(t,n):tn(t,n)}function xn(e,t){let{year:n,month:r}=D(e,t),[i,a]=gn(e,n,r);return We(i,a)}function Sn(e,t){let{year:n}=D(e,t);return e?e.u(n):rn(n)}function Cn(e,t){let{year:n}=D(e,t);return yn(e,n)}function wn(e,t){let{year:n,month:r}=D(e,t);return bn(e,n,r)}function Tn(e,t){let{year:n}=D(e,t);return e?e.j(n):nn(n)}function En(e,t){if(!e)return cn(t);let{year:n}=D(e,t),r=vn(e,n,1,1);return Jt(t)-Jt(r)+1}function Dn(e,t){return e===void 0?ln(t).weekOfYear:void 0}function On(e,t){return e===void 0?ln(t).yearOfWeek:void 0}const O=qe.map(e=>e+`s`),kn=ve(O),An=x(O),jn=O.slice(0,6),Mn=O.slice(6),Nn=Mn.slice(1),Pn=O.reduce((e,t,n)=>(e[t]=n,e),{}),k=_e(O,0),Fn=_e(jn,0),In=b(be,O);function Ln(e,t){return t??_(m(e)),t}const A=b(Rn,`string`);function Rn(e,t,n=e){return typeof t!==e&&v(p(n,t)),t}function zn(e,t=`number`){return Number.isInteger(e)||_(((e,t)=>`Non-integer ${e}: ${t}`)(t,e)),e||0}function Bn(e){return typeof e==`symbol`&&v(`Cannot convert Symbol to string`),String(e)}function Vn(e,t){return d(e)?String(e):A(e,t)}function Hn(e){return typeof e==`boolean`?BigInt(+!!e):typeof e==`string`?BigInt(e):(typeof e!=`bigint`&&v(`Invalid bigint: ${e}`),e)}function Un(e,t){return zn(o(e,t),t)}function Wn(e,t){return typeof e==`string`?((e,t)=>{let n=Object.create(null);return n[e]=t,n})(t,e):f(e)}const Gn=`smallestUnit`,Kn={constrain:0,reject:1},qn={compatible:0,reject:1,earlier:2,later:3},Jn={reject:0,use:1,prefer:2,ignore:3},Yn={auto:0,never:1,critical:2,always:3},Xn={auto:0,never:1,critical:2},Zn={auto:0,never:1},Qn={floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8},$n=[Math.floor,e=>Re(e)?Math.floor(e):Math.round(e),Math.ceil,e=>Re(e)?Math.ceil(e):Math.round(e),Math.trunc,e=>Re(e)?Math.trunc(e)||0:Math.round(e),e=>e<0?Math.floor(e):Math.ceil(e),e=>Math.sign(e)*Math.round(Math.abs(e))||0,e=>Re(e)?(e=Math.trunc(e)||0)+e%2:Math.round(e)],er={previous:-1,next:1};function tr(e){let t=e.roundingIncrement;return t===void 0?1:s(t,`roundingIncrement`)}function nr(e){let t=e.fractionalSecondDigits;if(t!==void 0){if(typeof t!=`number`){if(Bn(t)===`auto`)return;_(p(`fractionalSecondDigits`,t))}t=de(`fractionalSecondDigits`,Math.floor(t),0,9,1)}return t}function rr(e,t,n=0,r){let i=t[e];if(i===void 0)return r?n:void 0;if(i=Bn(i),i===`auto`)return r?n:null;let a=Ke[i];return a===void 0&&(a=Pn[i]),a===void 0&&_(h(e,i,Ke)),a}function ir(e,t,n,r=0){let i=n[e];if(i===void 0)return r;let a=Bn(i),o=t[a];return o===void 0&&_(h(e,a,t)),o}const ar=b(rr,Gn),or=b(rr,`largestUnit`),sr=b(rr,`unit`),cr=b(ir,`overflow`,Kn),lr=b(ir,`disambiguation`,qn),ur=b(ir,`offset`,Jn),dr=b(ir,`calendarName`,Yn),fr=b(ir,`timeZoneName`,Xn),pr=b(ir,`offset`,Zn),mr=b(ir,`roundingMode`,Qn),hr=b(ir,`direction`,er);function gr(e,t,n,r){let i=r?$e:C[t+1];if(i){let n=C[t];i%((e=de(`roundingIncrement`,e,1,i/n-+!r,1))*n)&&_(p(`roundingIncrement`,e))}else e=de(`roundingIncrement`,e,1,n?10**9:1,1);return e}function _r(e,t,n,r){return t!=null&&de(e,t,n,r,1,qe),t}function vr(e,t){t>e&&_(`smallestUnit > largestUnit`)}function yr(e,t,n,r=9,i=0,o=4){t=a(t);let s=or(t,i),c=tr(t),l=mr(t,o),u=ar(t,i,1);return s=_r(`largestUnit`,s,i,r),u=_r(Gn,u,i,r),s==null?s=Math.max(n,u):vr(s,u),c=gr(c,u,1),e&&(l=(e=>e<4?(e+2)%4:e)(l)),[s,u,c,l]}function br(e,t=6,n){let r=tr(e=Wn(e,Gn)),i=mr(e,7),a=ar(e);return a=Ln(Gn,a),a=_r(Gn,a,0,t),r=gr(r,a,void 0,n),[a,r,i]}function j(e,t){return y(lt,e,y(T,t))}function M(e){return e===void 0?0:cr(f(e))}function xr(e,t=0){e=a(e);let n=lr(e),r=ur(e,t);return[cr(e),r,n]}const Sr=BigInt(1e8)*w,Cr=BigInt(-1e8)*w,wr=Cr-w,Tr=-3261848;function Er(e){let t=12*e.year+e.month;return(t<Tr||t>3309129)&&_(`Out-of-bounds date`),e}function N(e,t=1){return Or(Kt(e),t),e}function Dr(e){let t=Kt(e);return Or(t),t!==wr||E(e)||_(`Out-of-bounds date`),e}function Or(e,t=1){(e<(t?wr:Cr)||e>Sr)&&_(`Out-of-bounds date`)}function kr(e){return(e<Cr||e>Sr)&&_(`Out-of-bounds date`),e}function Ar(e,t){return kr(Kt(e)+BigInt(E(e)-t))}function jr(e){return{epochNanoseconds:e}}function Mr(e,t,n){return{calendar:n,timeZone:t,epochNanoseconds:e}}function Nr(e,t){return y(T,e,P(e,t))}function P(e,t){return y(lt,e,{calendar:t})}function Pr(e){return y(T,e)}function F(e){return y(O,e,{sign:na(e)})}function Fr(e){return t=e.epochNanoseconds,Number(je(t,tt));var t}function Ir(e){return e.epochNanoseconds}function Lr(e,t,n){let r=da(t),[i,a]=((e,t)=>{let n=t((e=Wn(e,`unit`)).relativeTo),r=sr(e);return r=Ln(`unit`,r),[r,n]})(n,e);if(!a&&Ji(Math.max(i,r),a))return zr(t,i);if(a||_(`Missing relativeTo`),!t.sign&&Ji(i,a))return 0;let o=Hi(a),s=o.G(o.i,t);Gi(o,s);let c=o.re(o.i,s,i);return Ji(i,a)?zr(c,i):Rr(c,o.V(s),i,o)}function Rr(e,t,n,r){let i=na(e)||1,a=Br(In(n,e),n,i,r,t),o=a.ae,s=a.de,c=Number(s-o),l=Number(t-o);return a.ye[O[n]]+l/c*i}function zr(e,t){return at(aa(e),C[t])}function Br(e,t,n,r,i){let a=O[t],o=e,s=0,c=Vr(o,a,n,r);return i&&!((e,t,n,r)=>r>0?S(t,e)<=0&&S(e,n)<=0:S(n,e)<=0&&S(e,t)<=0)(i,c.ae,c.de,Math.sign(n))&&(o={...e,[a]:e[a]+n},s=1,c=Vr(o,a,n,r)),{...c,ye:o,He:s}}function Vr(e,t,n,r){let i={...e,[t]:e[t]+n};return{ae:Ui(r,e),de:Ui(r,i),Ae:i}}function Hr(e,t,n){let r=n-t,i=e-t;if(!i)return 0;let a=i<0n?-i:i,o=r<0n?-r:r,s=S(i,0n)===S(r,0n)?1:-1;return S(a,o)<=0?a===o?s:Le(S(2n*a,o),s):Number(i)/Number(r)}function Ur(e,t,n,r){let{epochNanoseconds:i}=e,{timeZone:a,calendar:o}=e;if(t===0&&n===1)return{epochNanoseconds:i,timeZone:a,calendar:o};if(t===6){let t=j(I(e),Nt),n=j(yi(t,1),Nt),o=di(a,t),s=di(a,n);i=ri(Hr(i,o,s),r)?s:o}else{let o=I(e),s=o.offsetNanoseconds;i=li(a,Kr(o,Yr(t,n),r),s,2,0,1)}return{epochNanoseconds:i,timeZone:a,calendar:o}}function Wr(e){let{timeZone:t}=e,n=j(I(e),Nt),r=j(yi(n,1),Nt),i=di(t,n);return at(di(t,r)-i,Qe)}function Gr(e){let{timeZone:t,calendar:n}=e;return Mr(di(t,j(I(e),Nt)),t,n)}function Kr(e,t,n){let[r,i]=qr(e,t,n),a=j(yi(e,i),r);return Dr(a),a}function qr(e,t,n){return Bt(ni(E(e),t,n))}function Jr(e){return ni(e,Ze,7)}function Yr(e,t){return C[e]*t}function Xr(e,t){return BigInt(C[e])*BigInt(t)}function Zr(e,t,n){let r=Math.min(da(e),6);return ca($r(aa(e),BigInt(t),n),r)}function Qr(e,t,n,r,i,a,o){if(r===0&&i===1)return e;let s=na(e)||1,[c,l,u]=(Ji(r,o.i)?Wi(o.i)&&r<6&&n>=6?ai:ii:oi)(s,e,t,n,r,i,a,o);return u&&r!==7&&(c=((e,t,n,r,i,a)=>{for(let o=r+1;o<=n;o++){if(o===7&&n!==7)continue;let r=In(o,e);r[O[o]]+=i;let s=S(t,Ui(a,r));if(s&&s!==i)break;e=r}return e})(c,l,n,Math.max(6,r),s,o)),c}function $r(e,t,n){return ti(e,t,n,e/t%2n)}function ei(e,t,n){let[r,i]=Me(e,w),a=r*w;return a+ti(i,t,n,(a/t+i/t)%2n)}function ti(e,t,n,r){let i=e/t,a=e%t,o=0;a&&(o=Le(S(2n*(a<0n?-a:a),t),Math.sign(Number(a))));let s=ri(Number(r)+o,n);return(i-r+BigInt(s))*t}function ni(e,t,n){return ri(e/t,n)*t}function ri(e,t){return $n[t](e)}function ii(e,t,n,r,i,a,o){let s=aa(t),c=$r(s,Xr(i,a),o),l=c-s,u=Math.sign(Number(c/w)-Number(s/w))===e,d=ca(c,Math.min(r,6));return[{...t,...d},n+l,u]}function ai(e,t,n,r,i,a,o,s){let c=Number(oa(t)),l=Yr(i,a),u=ni(c,l,o),d=Br({...t,...Fn},6,e,s,n),f=d.ae,p=d.de,m=u-Number(p-f),ee=0;m&&Math.sign(m)!==e?n=f+BigInt(u):(ee+=e,u=ni(m,l,o),n=p+BigInt(u));let h=la(u);return[{...t,...h,days:t.days+ee},n,!!ee]}function oi(e,t,n,r,i,a,o,s){let c=O[i],l=In(i,t);i===7&&(t={...t,weeks:t.weeks+Math.trunc(t.days/7)}),l[c]=Fe(t[c],a)*a;let u=Br(l,i,a*e,s,n),d=u.ae,f=u.de,p=Hr(n,d,f),m=u.ye[c],ee=u.Ae[c],h=ni(m+p*e*a,a,o),te=h===ee;return l[c]=h,[l,te?f:d,u.He||te]}function si(e,t){return e.timeZone.U(e.epochNanoseconds,(e=>{let t=hr(Wn(e,`direction`),0);return t||_(p(`direction`,t)),t})(t))}const I=fe(ci,WeakMap);function ci(e){let{epochNanoseconds:t,timeZone:n}=e,r=n.C(t);return{...Xt(t+BigInt(r)),offsetNanoseconds:r}}function li(e,t,n,r=0,i=0,a,o){if(n!==void 0&&r===1&&(r===1||o))return Ar(t,n);r!==2&&r!==0||N(t,0);let s=e.R(t);if(n!==void 0&&r!==3){let e=((e,t,n,r)=>{let i=Wt(t);r&&(n=Jr(n));for(let t of e){let e=Number(i-t);if(r&&(e=Jr(e)),e===n)return t}})(s,t,n,a);if(e!==void 0)return e;r===0&&_(`Invalid TimeZone offset`)}return o?Wt(t):ui(e,t,i,s)}function ui(e,t,n=0,r=e.R(t)){if(r.length===1)return r[0];if(n===1&&_(`Ambiguous offset`),r.length)return r[+(n===3)];let i=Wt(t),a=((e,t)=>{let n=e.C(t-w);return(e=>(e>864e11&&_(`Out-of-bounds TimeZone gap`),e))(e.C(t+w)-n)})(e,i),o=Xt(i+BigInt(a*(n===2?-1:1)));return(r=e.R(o))[n===2?0:r.length-1]}function di(e,t){let n=e.R(t);if(n.length)return n[0];let r=Wt(t)-w;return e.U(r,1)}function fi(e,t,n,r,i){let a=M(i);return r.sign&&da(r)<8&&_(`Cannot use small units`),_i(t,bi(t,N(_i(t,n)),e?L(r):r,a))}function pi(e,t){return kr(e+(ua(n=t)&&_(`Cannot use large units`),oa(n)));var n}function mi(e,t,n){let{calendar:r,epochNanoseconds:i,timeZone:a}=e,o=oa(t),s=i;if(ua(t)){let i=I(e);s=ui(a,j(gi(r,i,{...t,...Fn},n),i))+o}else s+=o,M(n);return{...e,epochNanoseconds:kr(s)}}function hi(e,t,n,r){let[i,a]=vi(t,n),o=j(gi(e,t,{...n,...Fn,days:n.days+a},r),i);return Dr(o),o}function gi(e,t,n,r){if(n.years||n.months||n.weeks)return bi(e,t,n,M(r));M(r);let i=n.days+Number(oa(n)/w);return i?N(yi(t,i)):t}function _i(e,t){return yi(t,1-D(e,t).day)}function vi(e,t){let n=oa(t),r=Number(n/w),i=Number(n%w),[a,o]=Bt(E(e)+i);return[a,r+o]}function yi(e,t){return t?Zt(Jt(e)+t):e}function bi(e,t,n,r){let{years:i,months:a,weeks:o,days:s}=n,c;if(s+=Number(oa(n)/w),i||a)c=xi(e,t,i,a,r);else{if(!o&&!s)return t;c=t}return(o||s)&&(c=yi(c,7*o+s)),N(c)}function xi(e,t,n,r,i){let{year:a,month:o,day:s}=D(e,t);if(n){let[t,r]=gn(e,a,o);a+=n,o=Si(e,t,r,e?e.q(a):void 0,i),o=de(`month`,o,1,yn(e,a),i)}if(r){let t=e?e.N(a,o,r):an(a,o,r);({year:a,month:o}=t)}return s=de(`day`,s,1,bn(e,a,o),i),vn(e,a,o,s)}function Si(e,t,n,r,i){if(n){let n=e?e.m:void 0;return r!==void 0&&(n<0||r===t+1)?r:(i===1&&_(ne),n<0?-n:t)}return Ge(t,0,r)}function Ci(e,t){return Ve(e)!==Ve(t)&&_(`Mismatching Calendars`),e}function wi(e,t){return e.o!==t.o&&_(`Mismatching TimeZones`),e}function Ti(e){return e.timeZone.id}function Ei(e,t,n,r){let[i,a,o,s]=yr(e,r,3,5),c=zi(t.epochNanoseconds,n.epochNanoseconds,i,a,o,s);return F(e?L(c):c)}function Di(e,t,n,r,i){let[a,o,s,c]=yr(e,i,5),l=n.epochNanoseconds,u=r.epochNanoseconds,d;return S(u,l)?a<6?d=zi(l,u,a,o,s,c):(d=Ni(wi(n.timeZone,r.timeZone),t,n,r,a),d=Qr(d,u,a,o,s,c,Vi(n,Ir,mi))):d=k,F(e?L(d):d)}function Oi(e,t,n,r,i){let[a,o,s,c]=yr(e,i,6),l=Wt(n),u=Wt(r),d=S(u,l),f;return d?a<=6?f=zi(l,u,a,o,s,c):(f=Fi(t,n,r,d,a),f=Qr(f,u,a,o,s,c,Vi(n,Wt,b(hi,t)))):f=k,F(e?L(f):f)}function ki(e,t,n,r,i){let[a,o,s,c]=yr(e,i,6,9,6);return ji(e,t,n,r,a,o,s,c)}function Ai(e,t,n,r,i){let[a,o,s,c]=yr(e,i,9,9,8),l=_i(t,n),u=_i(t,r);return Li(l,u)?ji(e,t,N(l),N(u),a,o,s,c,8):F(k)}function ji(e,t,n,r,i,a,o,s,c=6){let l=Kt(n),u=Kt(r),d;return S(u,l)?i===6?d=zi(l,u,i,a,o,s):(d=Ii(t,n,r,i),a===c&&o===1||(d=Qr(d,u,i,a,o,s,Vi(n,Kt,b(gi,t))))):d=k,F(e?L(d):d)}function Mi(e,t,n,r){let[i,a,o,s]=yr(e,r,5,5),c=ni(E(n)-E(t),Yr(a,o),s),l={...k,...la(c,i)};return F(e?L(l):l)}function Ni(e,t,n,r,i){let a=S(r.epochNanoseconds,n.epochNanoseconds);if(!a)return k;if(i<6)return{...k,...ca(r.epochNanoseconds-n.epochNanoseconds,i)};if(!Li(I(n),I(r)))return{...k,...ca(r.epochNanoseconds-n.epochNanoseconds,5)};let[o,s,c]=Ri(e,n,r,a);return{...i===6?{...k,days:Bi(o,s)}:Ii(t,o,s,i),...la(c)}}function Pi(e,t,n,r){let i=Wt(t),a=Wt(n),o=S(a,i);return o?r<=6?{...k,...ca(a-i,r)}:Fi(e,t,n,o,r):k}function Fi(e,t,n,r,i){let a=n,o=E(n)-E(t);return Math.sign(o)===-r&&(a=yi(n,-r),o+=864e11*r),{...Ii(e,t,a,i),...la(o)}}function Ii(e,t,n,r){if(r<=7){let e=Bi(t,n);return r===7?{...k,weeks:Fe(e,7),days:Ie(e,7)}:{...k,days:e}}let i=D(e,t),a=D(e,n);if(r===8){let{year:r,month:o,day:s}=i,{year:c,month:l,day:u}=a,d=Math.sign(Ae(c,r)||Ae(l,o)||Bi(t,n)),f=0,p=0;if(d){f=e?e.ne(r,o,c,l):on(r,o,c,l);let i=xi(e,t,0,f,0);d*Ae(s,u)>0&&(f-=d,i=xi(e,t,0,f,0)),p=Bi(i,n)}return{...k,months:f,days:p}}let{year:o,month:s,day:c}=i,{year:l,month:u,day:d}=a,f=l-o,p=u-s,m=d-c;if(f||p){let t=Math.sign(f||p),n=bn(e,l,u),r=0;if(Math.sign(d-c)===-t){let i=n,a=e?e.N(l,u,-t):an(l,u,-t);({year:l,month:u}=a),f=l-o,p=u-s,n=bn(e,l,u),r=t<0?-i:n}if(m=d-Math.min(c,n)+r,f){let[n,r]=gn(e,o,s),[i,a]=gn(e,l,u),c=e?e.m:void 0;if(p=c!==void 0&&r&&!a&&(c<0?t>0&&i===-c:t<0&&i===n)?0:i-n||Number(a)-Number(r),Math.sign(p)===-t){let i=t<0&&-yn(e,l);l-=t,f=l-o,p=u-Si(e,n,r,e?e.q(l):void 0,0)+(i||yn(e,l))}else if(e){let t=Si(e,n,r,e.q(l),0);p=e.ne(l,t,l,u)}}}return{...k,years:f,months:p,days:m}}function Li(e,t){return Ae(e.year,t.year)||Ae(e.month,t.month)||Ae(e.day,t.day)}function Ri(e,t,n,r){let i=I(t),a=I(n),o=n.epochNanoseconds,s=0,c=E(a)-E(i);Math.sign(c)===-r&&s++;let l=s+ +(r>0);for(;s<=l;s++){let t=yi(a,s*-r),n=ui(e,j(t,i));if(S(o,n)!==-r)return[i,t,Number(o-n)]}}function zi(e,t,n,r,i,a){return{...k,...ca($r(t-e,Xr(r,i),a),n)}}function Bi(e,t){return Jt(t)-Jt(e)}function Vi(e,t,n){return{i:e,V:t,G:n}}function Hi(e){let{calendar:t}=e;if(Wi(e)){let{timeZone:n}=e;return{i:e,V:Ir,G:mi,re:b(Ni,n,t)}}return{i:Ki(e),V:Wt,G:b(hi,t),re:b(Pi,t)}}function Ui(e,t){return e.V(e.G(e.i,t))}function Wi(e){return`timeZone`in e}function Gi(e,t){Wi(e.i)||(qi(e.i),qi(t))}function Ki(e){return j(e,`hour`in e?e:Nt)}function qi(e){Dr(Ki(e))}function Ji(e,t){return e<=6-(t&&Wi(t)?1:0)}function Yi(e,t,n){let r={};for(let i=t;i>=0;i--){let t=C[i];r[n[i]]=Fe(e,t),e=Ie(e,t)}return r}const Xi=2**53;function Zi(e,t,n,r,i){let o=e(a(i).relativeTo),s=Math.max(da(n),da(r));if(Ji(s,o))return Qi(t,n,r,s);o||_(`Missing relativeTo`),t&&(r=L(r));let c=Hi(o),l=c.G(c.i,n),u=c.G(l,r);return F(c.re(c.i,u,s))}function Qi(e,t,n,r){return F(ra(((e,t,n,r)=>{let i=aa(e)+aa(t)*BigInt(r?-1:1);return Number.isFinite(Number(i/w))||_(`Out-of-bounds date`),{...k,...ca(i,n)}})(t,n,r,e)))}function $i(e,t,n){let r=da(t),[i,a,o,s,c]=((e,t,n)=>{e=Wn(e,Gn);let r=or(e),i=n(e.relativeTo),a=tr(e),o=mr(e,7),s=ar(e);return r===void 0&&s===void 0&&_(`Required smallestUnit or largestUnit`),s??=0,r??=Math.max(s,t),vr(r,s),a=gr(a,s,1),a>1&&s>5&&r!==s&&_(`For calendar units with roundingIncrement > 1, use largestUnit = smallestUnit`),[r,s,a,o,i]})(n,r,e);if(!c&&Math.max(r,i)<=6)return F(ra(((e,t,n,r,i)=>{let a=$r(aa(e),Xr(n,r),i);return{...k,...ca(a,t)}})(t,i,a,o,s)));let l=c&&Wi(c)&&i>=6&&a<6;if(!t.sign&&!l)return t;c||_(`Missing relativeTo`);let u=Hi(c),d=u.G(u.i,t);Gi(u,d);let f=u.re(u.i,d,i);return f=Qr(f,u.V(d),i,a,o,s,u),F(f)}function ea(e){return e.sign===-1?ta(e):e}function ta(e){return F(L(e))}function L(e){let t={};for(let n of O)t[n]=-1*e[n]||0;return t}function na(e,t=O){let n=0;for(let r of t){let t=Math.sign(e[r]);t&&(n&&n!==t&&_(`Cannot mix duration signs`),n=t)}return n}function ra(e){for(let t of Nn)de(t,e[t],-4294967295,4294967295,1);let t=aa(e);return ia(Number(t/nt)),e}function ia(e){Number.isSafeInteger(e)||_(`Out-of-bounds duration`)}function aa(e){return BigInt(e.days)*w+oa(e)}function oa(e){return BigInt(e.hours)*it+BigInt(e.minutes)*rt+sa(e)}function sa(e){return BigInt(e.seconds)*nt+BigInt(e.milliseconds)*tt+BigInt(e.microseconds)*et+BigInt(e.nanoseconds)}function ca(e,t=6){let n=Number(e/w),r=Number(e%w),i=C[t],a=t<=3?Number(e/BigInt(i)):$e/i*n+Fe(r,i);Number.isFinite(a)||_(`Out-of-bounds date`),t<=3&&Math.abs(a)/(Xe/C[t])>=Xi&&_(`Out-of-bounds date`);let o=Yi(r,t,O);return o[O[t]]=a,o}function la(e,t=5){return Yi(e,t,O)}function ua(e){return!!na(e,Mn)}function da(e){let t=9;for(;t>0&&!e[O[t]];t--);return t}function fa(e,t){return S(e.epochNanoseconds,t.epochNanoseconds)}function pa(e,t){return S(e.epochNanoseconds,t.epochNanoseconds)}function ma(e,t,n,r){let i=e(a(r).relativeTo),o=Math.max(da(t),da(n));if(ye(O,t,n))return 0;if(Ji(o,i))return S(aa(t),aa(n));i||_(`Missing relativeTo`);let s=Hi(i);return S(Ui(s,t),Ui(s,n))}function ha(e,t){return ga(e,t)||_a(e,t)}function ga(e,t){return Ae(Jt(e),Jt(t))}function _a(e,t){return Ae(E(e),E(t))}function va(e,t){return!fa(e,t)}function ya(e,t){return!pa(e,t)&&e.timeZone.o===t.timeZone.o&&e.calendar===t.calendar}function ba(e,t){return!ha(e,t)&&e.calendar===t.calendar}function xa(e,t){return!ga(e,t)&&e.calendar===t.calendar}function Sa(e,t){return!ga(e,t)&&e.calendar===t.calendar}function Ca(e,t){return!ga(e,t)&&e.calendar===t.calendar}function wa(e,t){return!_a(e,t)}function Ta(e){return e===0?ze:e?e.l:void 0}function R(e,t,n=t){return Ta(e)?n:t}function Ea(e,t){let n=e||void 0,r=Ta(e),{era:i,eraYear:a,year:o}=t;if(o!==void 0&&(o=s(o,`year`)),a!==void 0&&(a=s(a,`eraYear`)),i!==void 0||a!==void 0){i!==void 0&&a!==void 0||v(`Mismatching era/eraYear`),r||_(`Forbidden era/eraYear`);let e=Be(i),t=r[e];t===void 0&&_((e=>`Invalid era: ${e}`)(i));let s=n?.te?n.te(a,e,t):ka(a,t);o!==void 0&&o!==s&&_(`Mismatching year/eraYear`),o=s}else o===void 0&&v(te(r));return o}function Da(e,t,n,r,i){let{month:a,monthCode:o}=t;if(o!==void 0){let t=((e,t,n,r,i=Ue(t))=>{let a=e?e.q(n):void 0,[o,s]=i,c=Ge(o,s,a);if(s){let t=e?e.m:void 0;t===void 0&&_(ne),t>0?(c>t&&_(ne),a!==c&&(r===1&&_(ne),c=Ge(o,0,a))):(c!==-t&&_(ne),a===void 0&&r===1&&_(ne))}return c})(e,o,n,r,i);a!==void 0&&a!==t&&_(`Mismatching month/monthCode`),a=t,r=1}else a===void 0&&v(`Missing month/monthCode`);return de(`month`,a,1,yn(e,n),r)}function Oa(e,t,n,r,i){return ue(t,`day`,1,bn(e,r,n),i)}function ka(e,t){return(t+e)*(Math.sign(t)||1)||0}function Aa(e,t){return It(y(T,{...Nt,...e}),t)}const ja=we(`([+-])(\\d{2})(?::?(\\d{2})(?::?(\\d{2})(?:[.,](\\d{1,9}))?)?)?`);function Ma(e){let t=Na(e);return t===void 0&&_(oe(e)),t}function Na(e,t){let n=ja.exec(e);if(n&&(e=>(e=>{e[0]!==`T`&&e[0]!==`t`||(e=e.slice(1));let t=e.search(/[.,]/),n=t<0?e:e.slice(0,t),r=n.split(`:`);return r.length===1?/^(?:\d{2}|\d{4}|\d{6})$/i.test(n):(r.length===2||r.length===3)&&r.every(e=>e.length===2&&/^\d{2}$/i.test(e))})(e.slice(1)))(n[0]))return((e,t)=>{let n=e[4]||e[5];return t&&n&&_(se(n)),r=(De(e[2])*Qe+De(e[3])*Ze+De(e[4])*Xe+Te(e[5]||``))*Ee(e[1]),Math.abs(r)>=864e11&&_(`Out-of-bounds offset`),r;var r})(n,t)}const z={era:Vn,month:c,monthCode(e,t=`monthCode`){return((e,t)=>{if(typeof e==`string`)return e;if(e&&typeof e==`object`){let n=e.toString;if(typeof n==`function`)return A(n.call(e),t)}return A(e,t)})(e,t)},day:c},Pa=_e(T,s),Fa=_e(O,Un),Ia={offset(e){return Ma(Vn(e))}},La=Object.assign({},z,Pa),Ra=Object.assign({},La,Ia);function B(e,t,n,r,i=!r){let a={},o=0;for(let i of t){let t=e[i];if(t!==void 0){o=1;let e=n[i];e&&(t=e(t,i)),a[i]=t}else r&&r.includes(i)&&v(m(i))}return i&&!o&&v(ee(t)),a}function za(e,t=Nt,n){let r=j(e,t);return Dr(r),Nr(r,n)}function Ba(e,t,n){return Ha(e,t,Wa(e,t),M(n))}function Va(e,t,n){let r=Wa(e,t),i=n();return[Ha(e,t,r,i[0]),...i]}function Ha(e,t,n,r){let i=n[1],a=Da(e,t,i,r,n[0]);return P(N(vn(e,i,a,Oa(e,t,a,i,r))),e)}function Ua(e){if(e.monthCode!==void 0)return Ue(e.monthCode)}function Wa(e,t){let n=Ta(e);return t.year!==void 0||t.era!==void 0&&t.eraYear!==void 0||v(te(n)),t.monthCode===void 0&&t.month===void 0&&v(`Missing month/monthCode`),t.day===void 0&&v(m(`day`)),[Ua(t),Ea(e,t)]}function Ga(e,t,n){let r=Ta(e);t.year!==void 0||t.era!==void 0&&t.eraYear!==void 0||v(te(r)),t.monthCode===void 0&&t.month===void 0&&v(`Missing month/monthCode`);let i=Ua(t),a=Ea(e,t);return P(Er(vn(e,a,Da(e,t,a,M(n),i),1)),e)}function Ka(e,t,n){let r=e===void 0,i=Ta(e);t.day===void 0&&v(m(`day`)),r||t.month===void 0||t.year!==void 0||t.era!==void 0&&t.eraYear!==void 0||v(te(i));let a=Ua(t),o=t.eraYear!==void 0||t.year!==void 0?Ea(e,t):void 0,s=M(n),c,l,u;if(o===void 0&&r&&(o=1972),o!==void 0){r||N(vn(e,o,1,1));let n=Da(e,t,o,s,a);c=Oa(e,t,n,o,s),[l,u]=gn(e,o,n)}else{t.monthCode===void 0&&v(`Missing month/monthCode`),[l,u]=a;let n=e?e.ge:1972;if(n!==void 0)c=Oa(e,t,Da(e,t,n,s,a),n,s);else{let n=s===0&&e?e.ke?.(l,u,t.day):void 0;c=n===void 0?t.day:n}}u&&((e&&e.Z?.[l])??1/0)<t.day&&(s===1&&_(ne),u=0,c=le(t.day,1,(e&&e.X)??1/0));let d=e?e.v(l,!!u,c):$t(l,!!u);for(;!d&&s===0&&c>1;)c--,d=e?e.v(l,!!u,c):$t(l,!!u);d||_(`Cannot guess year`);let{year:f,month:p}=d;return P(N(vn(e,f,p,c)),e)}const V=Intl.DateTimeFormat;function qa(e,t){t<-864e13&&_(`Out-of-bounds date`);let n=e.formatToParts(t),r={};for(let e of n)r[e.type]=e.value;return r}const Ja={El_Aaiun:17,Tucuman:12,Tirane:11,Riga:10,Simferopol:9,Vienna:9,Tunis:8,Boa_Vista:6,Fortaleza:6,Maceio:6,Noronha:6,Recife:6,Gaza:6,Hebron:6,DeNoronha:6},Ya=-388152e4;function Xa(e,t=4){let n=nr(e);return[mr(e,4),...$a(_r(Gn,ar(e),0,t),n)]}function Za(e){return dr(a(e))}function Qa(e,t){return Xa(a(e),t)}function $a(e,t){return e==null?[t===void 0?1:10**(9-t),t]:[C[e],e<4?9-3*e:-1]}function eo(e,t,n){let[r,i,o,s]=(e=>{let t=nr(e=a(e)),n=mr(e,4),r=ar(e);return[e.timeZone,n,...$a(_r(Gn,r,0,4),t)]})(n),c=r!==void 0;return((e,t,n,r,i,a)=>{n=ei(n,BigInt(i),r);let o=t.C(n);return po(Xt(n+BigInt(o)),a)+(e?vo(Jr(o)):`Z`)})(c,H(c?e(r):`UTC`),t.epochNanoseconds,i,o,s)}function to(e,t){let n=(e=>{e=a(e);let t=dr(e),n=nr(e),r=pr(e),i=mr(e,4),o=ar(e);return[t,fr(e),r,i,...$a(_r(Gn,o,0,4),n)]})(t);return((e,t,n,r,i,a,o,s,c,l)=>{r=ei(r,BigInt(c),s);let u=n.C(r);return po(Xt(r+BigInt(u)),l)+vo(Jr(u),o)+yo(t,a)+bo(e,i)})(e.calendar,e.timeZone.id,e.timeZone,e.epochNanoseconds,...n)}function no(e,t){let n=(e=>(e=a(e),[dr(e),...Xa(e)]))(t);return((e,t,n,r,i,a)=>po(Kr(t,i,r),a)+bo(e,n))(e.calendar,e,...n)}function ro(e,t){return n=e.calendar,r=e,i=Za(t),mo(r)+bo(n,i);var n,r,i}function io(e,t){return oo(e.calendar,ho,e,Za(t))}function ao(e,t){return oo(e.calendar,go,e,Za(t))}function oo(e,t,n,r){return r===1?e===void 0?t(n):mo(n):r>1||r===0&&e!==void 0?mo(n)+xo(Ve(e),r===2):t(n)}function so(e,t){return((e,t,n,r)=>_o(qr(e,n,t)[0],r))(e,...Qa(t))}function co(e,t){let[n,r,i]=Qa(t,3);return r>1&&ra(e={...e,...Zr(e,r,n)}),lo(e,i)}function lo(e,t){let{sign:n}=e,r=n===-1?L(e):e,{hours:i,minutes:a}=r,o=sa(r),s=Number(o/nt),c=Number(o%nt);ia(s);let l=Co(c,t),u=t>=0||!n||l;return(n<0?`-`:``)+`P`+uo({Y:fo(r.years),M:fo(r.months),W:fo(r.weeks),D:fo(r.days)})+(i||a||s||u?`T`+uo({H:fo(i),M:fo(a),S:fo(s,u)+l}):``)}function uo(e){let t=[];for(let n in e){let r=e[n];r&&t.push(r,n)}return t.join(``)}function fo(e,t){if(!e&&!t)return``;let n=Object.create(null);return n.useGrouping=0,e.toLocaleString(`fullwide`,n)}function po(e,t){return mo(e)+`T`+_o(e,t)}function mo(e){return ho(e)+`-`+ke(e.day)}function ho(e){let{year:t}=e;return(t<0||t>9999?wo(t)+Oe(6,Math.abs(t)):Oe(4,t))+`-`+ke(e.month)}function go(e){return ke(e.month)+`-`+ke(e.day)}function _o(e,t){let n=[ke(e.hour),ke(e.minute)];return t!==-1&&n.push(ke(e.second)+((e,t,n,r)=>Co(e*Ye+t*Je+n,r))(e.millisecond,e.microsecond,e.nanosecond,t)),n.join(`:`)}function vo(e,t=0){if(t===1)return``;let[n,r]=Ne(Math.abs(e),Qe),[i,a]=Ne(r,Ze),[o,s]=Ne(a,Xe);return wo(e)+ke(n)+`:`+ke(i)+(o||s?`:`+ke(o)+Co(s):``)}function yo(e,t){return t===1?``:`[`+(t===2?`!`:``)+e+`]`}function bo(e,t){return t>1||t===0&&e!==void 0?xo(Ve(e),t===2):``}function xo(e,t){return`[`+(t?`!`:``)+`u-ca=`+e+`]`}const So=/0+$/;function Co(e,t){let n=Oe(9,e);return n=t===void 0?n.replace(So,``):n.slice(0,t),n?`.`+n:``}function wo(e){return e<0?`-`:`+`}const To=/^(AC|AE|AG|AR|AS|BE|BS|CA|CN|CS|CT|EA|EC|IE|IS|JS|MI|NE|NS|PL|PN|PR|PS|SS|VS)T$/,Eo=/[^\w\/:+-]+/;function Do(e){return Oo(A(e))}function Oo(e){return ko(e).id}function ko(e){let t=e.toUpperCase(),n=(e=>{let t=Na(e,1);if(t!==void 0)return{id:vo(t),_:t,o:t}})(t);return n?{kind:`fixed`,...n}:Ao(t===`UTC`?`UTC`:(e=>(Eo.test(e)&&_(ae(e)),To.test(e)&&_(`Forbidden ICU TimeZone`),e.toLowerCase().split(`/`).map((e,t)=>(e.length<=3||/\d/.test(e))&&!/etc|yap/.test(e)?e.toUpperCase():e.replace(/baja|dumont|[a-z]+/g,(e,n)=>e.length<=2&&!t||e===`in`||e===`chat`?e.toUpperCase():e.length>2||!n?Ce(e).replace(/island|noronha|murdo|rivadavia|urville/,Ce):e)).join(`/`)))(e))}const Ao=fe(e=>{if(e===`UTC`)return{kind:`utc`,id:e,o:e};let t=jo(e.toUpperCase());return{kind:`named`,id:e,format:t,o:t.resolvedOptions().timeZone}}),jo=fe(e=>new V(`en-u-hc-h23`,{calendar:`iso8601`,timeZone:e,era:`short`,year:`numeric`,month:`numeric`,day:`numeric`,hour:`numeric`,minute:`numeric`,second:`numeric`}));function H(e){let t=ko(e);return Mo(t.id,t)}const Mo=fe((e,t)=>t.kind===`named`?new Po(e,t.o,t.format):new No(e,t.o,t.kind===`fixed`?t._:0));var No=class{constructor(e,t,n){this.id=e,this.o=t,this._=n}C(){return this._}R(e){return[Ar(e,this._)]}U(){}},Po=class{constructor(e,t,n){this.id=e,this.o=t,this.qe=((e,t)=>{let n=fe(e),r=fe(Io),i=86400*t;function a(e){let[t,a]=Lo(e,i),s=Ro(t),c=Ro(a),l=n(s),u=n(c);return l===u?l:o(r(s,c),l,u,e)}function o(t,n,r,i){let a,o;for(;(i===void 0||(a=i<t[0]?n:i>=t[1]?r:void 0)===void 0)&&(o=t[1]-t[0]);){let n=t[0]+Math.floor(o/2);e(n)===r?t[1]=n:t[0]=n+1}return a}return{Ee(e){let t=a(e-86400),n=a(e+86400),r=e-t,i=e-n;if(t===n)return[r];let o=a(r);return o===a(i)?[e-o]:t>n?[r,i]:[]},De:a,U:function e(t,a){if(a>0&&t>=864e10)return;if(a<0){if(t<=Ya)return;let n=Fo()+94867200;if(t>n)return e(n,-1)}let[s,c]=Lo(a>0?Math.max(t,Ya):t,i),l=i*a,u=a>0?Math.max(t,Fo())+94867200:Ya,d=()=>a<0?c>u:s<u;for(;d();){let e=Ro(s),i=Ro(c),u=n(e),d=n(i);if(u!==d){let n=r(e,i);o(n,u,d);let s=n[0];if((Ae(s,t)||1)===a)return s}s+=l,c+=l}}}})((e=>t=>{let n=qa(e,1e3*t);return 86400*Yt((e=>{let t=e.relatedYear;if(t!==void 0)return parseInt(t);let n=parseInt(e.year);return e.era!==void 0&&Be(e.era)===`bce`?1-n:n})(n),parseInt(n.month),parseInt(n.day))+3600*parseInt(n.hour)+60*parseInt(n.minute)+parseInt(n.second)-t})(n),(e=>Ja[e.split(`/`).pop()]||60)(e))}C(e){return this.qe.De((e=>Ut(e)[0])(e))*Xe}R(e){let t=86400*Jt(e)+Rt(e),n=zt(e);return this.qe.Ee(t).map(e=>kr(BigInt(e)*nt+BigInt(n)))}U(e,t){let[n,r]=Ut(e),i=this.qe.U(n+(t>0||r?1:0),t);if(i!==void 0)return BigInt(i)*nt}};function Fo(){return Math.floor(Date.now()/1e3)}function Io(e,t){return[e,t]}function Lo(e,t){let n=Math.floor(e/t)*t;return[n,n+t]}function Ro(e){return le(e,-1e10,864e10)}function zo(e,t,n){let r=B(n,R(t,kt,At),Ra,[],0);if(r.timeZone!==void 0){let n=Ba(t,r),i=Aa(r),a=H(e(r.timeZone));return{epochNanoseconds:li(a,j(n,i),r.offset),timeZone:a,calendar:t}}return Ba(t,r)}function Bo(e,t,n,r){let i=B(n,R(t,kt,At),Ra,dt,0),a=e(i.timeZone),[o,s,c,l]=Va(t,i,()=>xr(r)),u=Aa(i,s),d=H(a);return Mr(li(d,j(o,u),i.offset,c,l),d,t)}function Vo(e,t,n){let r=B(t,R(e,Tt,Et),La,[],0),[i,a]=Va(e,r,()=>[M(n)]);return za(i,Aa(r,a),e)}function Ho(e,t,n,r=[]){return Ba(e,B(t,R(e,Ct,wt),z,r),n)}function Uo(e,t,n,r){return Ga(e,B(t,R(e,vt,yt),z,r),n)}function Wo(e,t,n,r){let i=B(n,R(e,Ct,wt),z,ct,0);return t&&i.month!==void 0&&i.monthCode===void 0&&i.year===void 0&&(i.year=1972),Ka(e,i,r)}function Go(e,t){return Aa(B(e,gt,Pa,[],1),M(t))}function Ko(e){let t=B(e,An,Fa);return F(ra({...k,...t}))}function U(e){_(oe(e))}function qo(e){let t=xs(e=Vn(e)),n;return t||U(e),t.F?n=0:t.offset?n=Ma(t.offset):U(e),t.timeZoneId&&Na(t.timeZoneId,1),fn(t),jr(Ar(t,n))}function Jo(e,t){let n=xs(A(e));return n||U(e),n.timeZoneId?ls(n,t,void 0):(n.F&&U(e),ds(n,t))}function Yo(e,t,n){let r=xs(A(e));return r&&r.timeZoneId||U(e),ls(r,t,n)}function Xo(e,t){let n=xs(A(e));return n&&!n.F||U(e),us(n,t)}function Zo(e,t){let n=os(as(A(e)),void 0,t);return P(n,n.calendar)}function Qo(e,t){let n=Ss(A(e));if(n)return $o(n),P(Er(pn(n)),t(n.calendarId));let r=os(as(e),ss,t),{calendar:i}=r;return P(_i(i,r),i)}function $o(e){e.calendarId!==`iso8601`&&_(se(e.calendarId))}function es(e,t){let n=Cs(A(e));if(n)return $o(n),P(pn(n),t(n.calendarId));let r=os(as(e),cs,t),{calendar:i}=r,{year:a,month:o,day:s}=D(i,r),[c,l]=gn(i,a,o),{year:u,month:d}=((e,t,n,r)=>{let i=e?e.v(t,n,r):$t(t,n);return i||_(`Cannot guess year`),i})(i,c,l,s);return P(N(vn(i,u,d,s)),i)}function ts(e){let t=(e=>{let t=ws(e);return t?(Ds(t[13]),Ts(t,1)):void 0})(e=A(e)),n;return t||(t=xs(e),t?(t.fe||U(e),t.F&&_(se(`Z`)),$o(t)):U(e)),(n=Ss(e))&&mn(n)&&U(e),(n=Cs(e))&&mn(n)&&U(e),Pr(Pt(t))}function ns(e){let t=(e=>{let t=bs.exec(e);return t?(e=>{let t=0,n=0,r=0,i={years:a(e[2]),months:a(e[3]),weeks:a(e[4]),days:a(e[5]),hours:a(e[6],e[7],5),minutes:a(e[8],e[9],4),seconds:a(e[10],e[11],3),...Yi(r,2,O)};return t||_(ee(O)),Ee(e[1])<0&&(i=L(i)),i;function a(e,i,a){let o=0,s=0;return a&&([o,r]=Ne(r,C[a])),e!==void 0&&(n&&_(se(e)),s=(e=>{let t=parseInt(e);return Number.isFinite(t)||_(se(e)),t})(e),t=1,i&&(r=Te(i)*(C[a]/Xe),n=1)),o+s}})(t):void 0})(A(e));return t||U(e),F(ra(t))}function rs(e){let t=xs(e)||Ss(e)||Cs(e);if(t)return t.calendarId;let n=ws(e);return n?Ds(n[13]).calendarId:e}function is(e){let t=xs(e);return t&&(t.timeZoneId||t.F&&`UTC`||t.offset)||e}function as(e){let t=xs(e);return t&&!t.F||U(e),t}function os(e,t,n){return t&&e.calendarId===`iso8601`?(pn(e),e.fe&&Pt(e),ds(t(e),n)):e.fe?us(e,n):ds(e,n)}function ss(e){let t=12*e.year+e.month===Tr?20:1;return{...e,day:t}}function cs(e){return{...e,year:1972}}function ls(e,t,n){let r=H(Oo(e.timeZoneId)),i;if(fn(e),e.fe){let t=e.offset?Ma(e.offset):void 0,[,o,s]=xr(n);i=li(r,e,t,o,s,!(r._||e.offset===void 0||(a=e.offset,a.replace(/\D/g,``).length>4)),e.F)}else xr(n),i=di(r,e);var a;return kr(i),Mr(i,r,t(e.calendarId))}function us(e,t){return fn(e),Dr(e),{...j(e,e),calendar:t(e.calendarId)}}function ds(e,t){return pn(e),N(e),{calendar:t(e.calendarId),year:e.year,month:e.month,day:e.day}}function fs(e){return`(\\d{2})(?:(:?)(\\d{2})(?:\\${e}(\\d{2})(?:[.,](\\d{1,9}))?)?)?`}function ps(e){return`([+-])`+fs(e)}const ms=`(?:(?:([+-])(\\d{6}))|(\\d{4}))(-?)(\\d{2})\\4(\\d{2})(?:[T ]`+fs(8)+`(Z|`+ps(15)+`)?)?`,hs=we(`(?:(?:([+-])(\\d{6}))|(\\d{4}))-?(\\d{2})((?:\\[(!?)([^\\]]*)\\]){0,9})`),gs=we(`(?:--)?(\\d{2})-?(\\d{2})((?:\\[(!?)([^\\]]*)\\]){0,9})`),_s=we(ms+`((?:\\[(!?)([^\\]]*)\\]){0,9})`),vs=we(`T?`+fs(2)+`(${ps(9)})?((?:\\[(!?)([^\\]]*)\\]){0,9})`),ys=RegExp(`\\[(!?)([^\\]]*)\\]`,`g`),bs=we(`([+-])?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)(?:[.,](\\d{1,9}))?H)?(?:(\\d+)(?:[.,](\\d{1,9}))?M)?(?:(\\d+)(?:[.,](\\d{1,9}))?S)?)?`);function xs(e){let t=_s.exec(e);return t?(e=>{let t=e[12],n=(t||``).toUpperCase()===`Z`;return{year:Es(e),month:parseInt(e[5]),day:parseInt(e[6]),...Ts(e,7),...Ds(e[19]),fe:!!e[7],F:n,offset:n?void 0:t}})(t):void 0}function Ss(e){let t=hs.exec(e);if(t)return(e=>({year:Es(e),month:parseInt(e[4]),day:1,...Ds(e[5])}))(t)}function Cs(e){let t=gs.exec(e);return t?(e=>({year:1972,month:parseInt(e[1]),day:parseInt(e[2]),...Ds(e[3])}))(t):void 0}function ws(e){let t=vs.exec(e);if(t)return t[6]&&Ma(t[6]),t}function Ts(e,t){let n=De(e[t+3]);return{...Bt(Te(e[t+4]||``))[0],hour:De(e[t]),minute:De(e[t+2]),second:n===60?59:n}}function Es(e){let t=Ee(e[1]),n=parseInt(e[2]||e[3]);return t<0&&!n&&_(se(-0)),t*n}function Ds(e){let t,n,r=[];return e.replace(ys,(e,i,a)=>{let o=!!i,[s,c]=a.split(`=`).reverse();return c?c===`u-ca`?(r.push(s.toLowerCase()),t||=o):(o||/[A-Z]/.test(c))&&_(se(e)):(n&&_(se(e)),n=s),``}),r.length>1&&t&&_(se(e)),{timeZoneId:n,calendarId:r[0]||`iso8601`}}function Os(e,t,n){let r=Object.assign(Object.create(null),t);return ks(r,n,mt),Ta(e)&&(ks(r,n,pt),e&&e.le&&ks(r,n,ht,ft)),r}function ks(e,t,n,r){let i=0,a=[];for(let e of n)t[e]===void 0?a.push(e):i=1;if(Object.assign(e,t),i)for(let t of r||a)delete e[t]}function As(e,t,n){let{calendar:r,timeZone:i}=e,a=R(r,Dt,Ot),o=I(e),{year:s,month:c,day:l}=D(r,o),u={year:s,monthCode:Ls(r,s,c),day:l,hour:o.hour,minute:o.minute,second:o.second,millisecond:o.millisecond,microsecond:o.microsecond,nanosecond:o.nanosecond,offset:o.offsetNanoseconds},d=B(t,a,Ra),f=Os(r,u,d),p={...u,...d},[m,ee,h,te]=Va(r,f,()=>xr(n,2));return Mr(li(i,j(m,It(p,ee)),p.offset,h,te),i,r)}function js(e,t,n){let{calendar:r}=e,i=R(r,Tt,Et),{year:a,month:o,day:s}=D(r,e),c={year:a,monthCode:Ls(r,a,o),day:s,hour:e.hour,minute:e.minute,second:e.second,millisecond:e.millisecond,microsecond:e.microsecond,nanosecond:e.nanosecond},l=B(t,i,La),u=Os(r,c,l),d={...c,...l},[f,p]=Va(r,u,()=>[M(n)]);return za(f,It(d,p),r)}function Ms(e,t,n){let{calendar:r}=e,i=R(r,Ct,wt),{year:a,month:o,day:s}=D(r,e);return Ba(r,Os(r,{year:a,monthCode:Ls(r,a,o),day:s},B(t,i,z)),n)}function Ns(e,t,n){let{calendar:r}=e,i=R(r,vt,yt),{year:a,month:o}=D(r,e);return Ga(r,Os(r,{year:a,monthCode:Ls(r,a,o)},B(t,i,z)),n)}function Ps(e,t,n){let{calendar:r}=e,i=R(r,Ct,wt),{year:a,month:o,day:s}=D(r,e);return Ka(r,Os(r,{monthCode:Ls(r,a,o),day:s},B(t,i,z)),n)}function Fs(e,t,n){return((e,t,n)=>Aa({...y(gt,e),...B(t,gt,Pa)},M(n)))(e,t,n)}function Is(e,t){return F((n=e,r=t,ra({...n,...B(r,An,Fa)})));var n,r}function Ls(e,t,n){let[r,i]=gn(e,t,n);return We(r,i)}function Rs(e,t,n){return Mr(e.epochNanoseconds,t,n)}function zs(e){return jr(e.epochNanoseconds)}function Bs(e){return Nr(I(e),e.calendar)}function Vs(e){return P(I(e),e.calendar)}function Hs(e){return Pr(I(e))}function Us(e,t,n){return Mr(kr(((e,t,n)=>ui(e,t,(e=>lr(a(e)))(n)))(t,e,n)),t,e.calendar)}function Ws(e,t,n,r){let i=e(r.timeZone),a=r.plainTime,o=a===void 0?void 0:t(a),s=H(i),c;return c=o?ui(s,j(n,o)):di(s,j(n,Nt)),Mr(c,s,n.calendar)}function Gs(e,t,n){return Ys(e,y(R(e,bt,xt),t),B(f(n),ct,z,[]))}function Ks(e,t,n){let r=R(e,st,_t);return Ys(e,y(St,t),B(f(n),r,z,[]))}function qs(e,t){return Ka(e,B(t,St,z))}function Js(e,t,n){return Ga(e,B(t,R(e,bt,xt),z),n)}function Ys(e,t,n){let r=R(e,jt,Mt),i=Os(e,t,n);return i=B(i,r,z,[]),Ba(e,i)}function Xs(e){return jr(kr(BigInt(Un(e))*tt))}function Zs(e){return jr(kr(Hn(e)))}function Qs(e){return e.timeZone=`UTC`,[`full`,`long`].includes(e.timeStyle)&&(e.timeStyle=`medium`),e}function $s(e,t){return e.timeZone!==void 0&&v(`Cannot specify TimeZone`),e.timeZone=t,e}function ec(e,t,n){let r=e.resolvedOptions().calendar;!n&&t.calendar===void 0||Ve(t.calendar)===r||_(`Mismatching Calendars`)}function tc(e,t,n,r,i){let a=new Set(e),o=new Set(t),s=new Set(n);return(e,t)=>{let n=((e,t,n,r)=>{let i={dateStyle:void 0,timeStyle:void 0,me:{},pe:{},xe:{},oe:0,ue:0};for(let a of Object.keys(e)){let o=e[a];o===void 0||r.has(a)||(t.has(a)?a===`dateStyle`?i.dateStyle=o:a===`timeStyle`?i.timeStyle=o:i.me[a]=o:a===`era`?i.pe[a]=o:n.has(a)?a===`dateStyle`||a===`timeStyle`?i.ue=1:i.oe=1:i.xe[a]=o)}return i})(e,a,o,s),c=n.dateStyle!==void 0,l=n.timeStyle!==void 0,u=c||l,d=Object.keys(n.me).length>0,f=n.oe||n.ue,p=d||c||l,m=Object.keys(n.pe).length>0,ee=d||m||n.oe;(!t&&f||t&&f&&!p||u&&ee)&&v(`Invalid formatting options`);let h={};return u||p||Object.assign(h,r),Object.assign(h,n.me,n.pe,n.xe),c&&(i?Object.assign(h,i[n.dateStyle]):h.dateStyle=n.dateStyle),l&&(h.timeStyle=n.timeStyle),h}}const nc={year:`numeric`,month:`numeric`,day:`numeric`},rc={hour:`numeric`,minute:`numeric`,second:`numeric`},ic=Object.assign({},nc,rc),ac=Object.assign({},ic,{timeZoneName:`short`}),oc={year:`numeric`,month:`numeric`},sc={month:`numeric`,day:`numeric`},cc=[`weekday`,`year`,`month`,`day`,`dateStyle`],lc=[`dayPeriod`,`hour`,`minute`,`second`,`fractionalSecondDigits`,`timeStyle`],uc=cc.concat(lc),dc=[`weekday`,`day`].concat(lc),fc=[`weekday`,`year`].concat(lc),pc=tc(uc,[],[],ic),mc=tc(uc,[],[],ac),hc=tc(uc,[],[`timeZoneName`],ic),gc=tc(cc,lc,[`timeZoneName`],nc),_c=tc(lc,cc,[`timeZoneName`,`era`],rc),vc=tc([`year`,`month`,`dateStyle`],dc,[`timeZoneName`],oc,{full:{year:`numeric`,month:`long`},long:{year:`numeric`,month:`long`},medium:{year:`numeric`,month:`short`},short:{year:`2-digit`,month:`numeric`}}),yc=tc([`month`,`day`,`dateStyle`],fc,[`timeZoneName`,`era`],sc,{full:{month:`long`,day:`numeric`},long:{month:`long`,day:`numeric`},medium:{month:`short`,day:`numeric`},short:{month:`numeric`,day:`numeric`}});function bc(e,t){let{timeZone:n}=e,r=I(e),{offsetNanoseconds:i}=r,a=t||Nt,o;return o=t?li(n,j(r,a),i,2):di(n,j(r,a)),Mr(o,n,e.calendar)}function xc(e){let t=Sc(),n=e.C(t);return Xt(t+BigInt(n))}function Sc(){return BigInt(Date.now())*tt}function Cc(){return new V().resolvedOptions().timeZone}function wc(e,t=xe){let n=new WeakMap;function r(e){let t=n.get(e);return t||v(`Invalid calling context`),t}class i{constructor(r,i=Object.create(null)){let a=t(i),o=new V(r,a),s=o.resolvedOptions(),c=y(Object.keys(i),s);n.set(this,{ee:e({t:o,Ge:s.locale,I:c,Je:a}),t:o})}get format(){let e=r(this);return e.ze||=t=>{let[n,...r]=e.ee.B(t);return n.format(...r)}}formatToParts(e){let{ee:t}=r(this),[n,...i]=t.B(e);return n.formatToParts(...i)}resolvedOptions(){return r(this).t.resolvedOptions()}}let{prototype:a}=i;function o(e,t){return new i(e,t)}V.prototype.formatRange&&Object.defineProperties(a,me({formatRange(e,t){let{ee:n}=r(this),[i,a,o]=n.A(e,t);return i.formatRange(a,o)},formatRangeToParts(e,t){let{ee:n}=r(this),[i,a,o]=n.A(e,t);return i.formatRangeToParts(a,o)}}));let s=Object.getOwnPropertyDescriptors(V);return s.prototype.value=a,Object.defineProperties(o,s),a.constructor=o,Object.defineProperties(a,he(`Intl.DateTimeFormat`)),o}const Tc=globalThis.Temporal,Ec=`PlainYearMonth`,Dc=`PlainMonthDay`,Oc=`PlainDate`,kc=`PlainDateTime`,Ac=`PlainTime`,jc=`ZonedDateTime`,Mc=`Instant`,Nc=`Duration`;function Pc(e,t,n,...r){Object.defineProperties(t,pe(e)),Object.defineProperties(t.prototype,he(`Temporal.`+e));for(let e of r)Fc(t.prototype,n,e);return t}function Fc(e,t,n){Object.defineProperties(e,ge(e=>({get(){return e(t(this))},configurable:1}),n))}const Ic=Se.name===`noop`?e=>{Object.defineProperty(e,"_str_",{value:e.toJSON()})}:Se;function Lc(){v(`Invalid calling context`)}function Rc(){v(`Cannot use valueOf`)}const zc={era(e){return _n(e.calendar,e).era},eraYear(e){return _n(e.calendar,e).eraYear},year(e){return D(e.calendar,e).year},month(e){return D(e.calendar,e).month},monthCode(e){return xn(e.calendar,e)}},Bc={era(e){return _n(e.calendar,e).era},eraYear(e){return _n(e.calendar,e).eraYear},year(e){return D(e.calendar,e).year},month(e){return D(e.calendar,e).month},monthCode(e){return xn(e.calendar,e)},day(e){return D(e.calendar,e).day}},Vc={monthCode(e){return xn(e.calendar,e)},day(e){return D(e.calendar,e).day}},Hc={daysInMonth(e){return wn(e.calendar,e)},daysInYear(e){return Tn(e.calendar,e)},monthsInYear(e){return Cn(e.calendar,e)},inLeapYear(e){return Sn(e.calendar,e)}},Uc={dayOfWeek(e){return sn(e)},dayOfYear(e){return En(e.calendar,e)},weekOfYear(e){return Dn(e.calendar,e)},yearOfWeek(e){return On(e.calendar,e)},daysInWeek(){return 7},daysInMonth(e){return wn(e.calendar,e)},daysInYear(e){return Tn(e.calendar,e)},monthsInYear(e){return Cn(e.calendar,e)},inLeapYear(e){return Sn(e.calendar,e)}};function Wc(e){return ve(Object.keys(e))}Wc(Hc),Wc(Uc);function Gc(e){return wc(t=>{let n=fe(e=>((e,t)=>{let n;switch(t){case Mc:n=pc(e.I,1);break;case kc:n=Qs(hc(e.I,1));break;case Oc:n=Qs(gc(e.I,1));break;case Ac:n=Qs(_c(e.I,1));break;case Ec:n=Qs(vc(e.I,1));break;case Dc:n=Qs(yc(e.I,1));break;default:v(ce(t))}return new V(e.Ge,n)})(t,e));return{B(r){if(r===void 0)return[t.t];let i=e(r);if(!i)return[t.t,Number(r)];let[a,o]=i,s=n(a);return Kc(s,a,o),[s,qc(a,o)]},A(r,i){r!==void 0&&i!==void 0||v(`Mismatching types for formatting`);let a=e(r),o=a?void 0:Number(r),s=e(i),c=s?void 0:Number(i);if(!a&&!s)return[t.t,o,c];a&&s||v(`Mismatching types for formatting`);let[l,u]=a,[d,f]=s;l!==d&&v(`Mismatching types for formatting`);let p=n(l);return Kc(p,l,u),Kc(p,l,f),[p,qc(l,u),qc(l,f)]}}})}function Kc(e,t,n){switch(t){case Mc:case Ac:return;case kc:case Oc:ec(e,n);return;case Ec:case Dc:ec(e,n,1);return;default:v(ce(t))}}function qc(e,t){switch(e){case Mc:return Fr(t);case kc:return Gt(t);case Oc:case Ec:case Dc:return qt(t);case Ac:return Lt(t);default:v(ce(e))}}function Jc(e){let t=A(e).toLowerCase();return t===`iso8601`?void 0:t===`gregory`?0:void _(ie(e,`temporal-polyfill/full`))}function Yc(e=`iso8601`){return Jc(e)}const Xc=new WeakMap,Zc=Pc(jc,class{constructor(e,t,n=void 0){let r=kr(Hn(e)),i=H(Do(t)),a=Yc(n);tl(this,Mr(r,i,a))}static from(e,t=void 0){return W(el(e,t))}static compare(e,t){return pa(el(e),el(t))}get calendarId(){return Ve(G(this).calendar)}get timeZoneId(){return G(this).timeZone.id}get epochMilliseconds(){return Fr(G(this))}get epochNanoseconds(){return Ir(G(this))}get offset(){return vo(I(G(this)).offsetNanoseconds)}get offsetNanoseconds(){return I(G(this)).offsetNanoseconds}get hoursInDay(){return Wr(G(this))}with(e,t=void 0){return W(As(G(this),Cl(e),t))}withCalendar(e){return W({...G(this),calendar:Kl(e)})}withTimeZone(e){return W({...G(this),timeZone:H(K(e))})}withPlainTime(e=void 0){return W(bc(G(this),Al(e)))}add(e,t=void 0){return W(mi(G(this),$(e),t))}subtract(e,t=void 0){return W(mi(G(this),L($(e)),t))}until(e,t=void 0){let n=G(this),r=el(e);return Z(F(Di(0,Ci(n.calendar,r.calendar),n,r,t)))}since(e,t=void 0){let n=G(this),r=el(e);return Z(F(Di(1,Ci(n.calendar,r.calendar),n,r,t)))}round(e){let t=G(this),[n,r,i]=br(e);return W(Ur(t,n,r,i))}startOfDay(){return W(Gr(G(this)))}equals(e){return ya(G(this),el(e))}toInstant(){return il(zs(G(this)))}toPlainDateTime(){return Pl(Bs(G(this)))}toPlainDate(){return Bl(Vs(G(this)))}toPlainTime(){return El(Hs(G(this)))}toLocaleString(e=void 0,t={}){let n=G(this),r=new V(e,$s(mc(t),Ti(n)));return ec(r,n),r.format(Fr(n))}toString(e=void 0){return to(G(this),e)}toJSON(){return to(G(this))}getTimeZoneTransition(e){let t=G(this),n=si(t,e);return n?W({...t,epochNanoseconds:n}):null}valueOf(){return Rc()}},Qc,Bc,Uc,ot);function W(e){return tl(Object.create(Zc.prototype),e)}function G(e){return $c(e)||Lc()}function Qc(e){let t=G(e);return{...I(t),calendar:t.calendar}}function $c(e){return Xc.get(e)}function el(e,t){if(g(e)){let n=$c(e);return n?(xr(t),n):Bo(K,Wl(e),e,t)}return Yo(e,Jc,t)}function tl(e,t){return Xc.set(e,t),Ic(e),e}function K(e){if(g(e)){let t=$c(e);return t||v(ae(e)),t.timeZone.id}return(e=>Oo(is(A(e))))(e)}const nl=new WeakMap,rl=Pc(Mc,class{constructor(e){let t=kr(Hn(e));cl(this,jr(t))}static from(e){return il(ol(e))}static fromEpochMilliseconds(e){return il(Xs(e))}static fromEpochNanoseconds(e){return il(Zs(e))}static compare(e,t){return fa(ol(e),ol(t))}get epochMilliseconds(){return Fr(q(this))}get epochNanoseconds(){return Ir(q(this))}add(e){return il(jr(pi(q(this).epochNanoseconds,$(e))))}subtract(e){return il(jr(pi(q(this).epochNanoseconds,L($(e)))))}until(e,t=void 0){return Z(Ei(0,q(this),ol(e),t))}since(e,t=void 0){return Z(Ei(1,q(this),ol(e),t))}round(e){let t=q(this),[n,r,i]=br(e,5,1);return il(jr(ei(t.epochNanoseconds,Xr(n,r),i)))}equals(e){return va(q(this),ol(e))}toZonedDateTimeISO(e){return W(Rs(q(this),H(K(e))))}toLocaleString(e=void 0,t={}){let n=q(this);return new V(e,pc(t)).format(Fr(n))}toString(e=void 0){return eo(K,q(this),e)}toJSON(){return eo(K,q(this))}valueOf(){return Rc()}});function il(e){return cl(Object.create(rl.prototype),e)}function q(e){return al(e)||Lc()}function al(e){return nl.get(e)}function ol(e){if(g(e)){let t=al(e);if(t)return t;let n=$c(e);if(n)return jr(n.epochNanoseconds)}return qo(e)}const{toTemporalInstant:sl}={toTemporalInstant(){let e=Date.prototype.valueOf.call(this);return il(jr(BigInt(zn(e))*tt))}};function cl(e,t){return nl.set(e,t),Ic(e),e}const ll=new WeakMap,ul=Pc(Dc,class{constructor(e,t,n=void 0,r){let i=s(e),a=s(t),o=Yc(n),c=N(pn({year:s(r??1972),month:i,day:a}));hl(this,P(c,o))}static from(e,t=void 0){return dl(ml(e,t))}get calendarId(){return Ve(fl(this).calendar)}with(e,t=void 0){return dl(Ps(fl(this),Cl(e),t))}equals(e){return Ca(fl(this),ml(e))}toPlainDate(e){return Bl(Ks(fl(this).calendar,this,e))}toLocaleString(e=void 0,t={}){let n=fl(this),r=new V(e,Qs(yc(t)));return ec(r,n,1),r.format(qt(n))}toString(e=void 0){return ao(fl(this),e)}toJSON(){return ao(fl(this))}valueOf(){return Rc()}},fl,Vc);function dl(e){return hl(Object.create(ul.prototype),e)}function fl(e){return pl(e)||Lc()}function pl(e){return ll.get(e)}function ml(e,t){if(g(e)){let n=pl(e);if(n)return M(t),n;let r=Gl(e);return Wo(r===void 0?void 0:r,r===void 0,e,t)}let n=es(e,Jc);return M(t),n}function hl(e,t){return ll.set(e,t),Ic(e),e}const gl=new WeakMap,_l=Pc(Ec,class{constructor(e,t,n=void 0,r){let i=s(e),a=s(t),o=Yc(n),c=Er(pn({year:i,month:a,day:s(r??1)}));xl(this,P(c,o))}static from(e,t=void 0){return vl(bl(e,t))}static compare(e,t){return ga(bl(e),bl(t))}get calendarId(){return Ve(J(this).calendar)}with(e,t=void 0){return vl(Ns(J(this),Cl(e),t))}add(e,t=void 0){let n=J(this);return vl(P(fi(0,n.calendar,n,$(e),t),n.calendar))}subtract(e,t=void 0){let n=J(this);return vl(P(fi(1,n.calendar,n,$(e),t),n.calendar))}until(e,t=void 0){let n=J(this),r=bl(e);return Z(Ai(0,Ci(n.calendar,r.calendar),n,r,t))}since(e,t=void 0){let n=J(this),r=bl(e);return Z(Ai(1,Ci(n.calendar,r.calendar),n,r,t))}equals(e){return Sa(J(this),bl(e))}toPlainDate(e){return Bl(Gs(J(this).calendar,this,e))}toLocaleString(e=void 0,t={}){let n=J(this),r=new V(e,Qs(vc(t)));return ec(r,n,1),r.format(qt(n))}toString(e=void 0){return io(J(this),e)}toJSON(){return io(J(this))}valueOf(){return Rc()}},J,zc,Hc);function vl(e){return xl(Object.create(_l.prototype),e)}function J(e){return yl(e)||Lc()}function yl(e){return gl.get(e)}function bl(e,t){if(g(e)){let n=yl(e);return n?(M(t),n):Uo(Wl(e),e,t)}let n=Qo(e,Jc);return M(t),n}function xl(e,t){return gl.set(e,t),Ic(e),e}function Sl(e){if(!g(e))return;let t=al(e);return t?[Mc,t]:(t=$c(e),t?[jc,t]:(t=Fl(e),t?[kc,t]:(t=Vl(e),t?[Oc,t]:(t=Ol(e),t?[Ac,t]:(t=yl(e),t?[Ec,t]:(t=pl(e),t?[Dc,t]:(t=Yl(e),t?[Nc,t]:void 0)))))))}function Cl(e){return(Sl(e)||e.calendar!==void 0||e.timeZone!==void 0)&&v(`Invalid bag`),e}const wl=new WeakMap,Tl=Pc(Ac,class{constructor(e=0,t=0,n=0,r=0,i=0,a=0){let o=Pt(ge(s,{hour:e,minute:t,second:n,millisecond:r,microsecond:i,nanosecond:a}));jl(this,Pr(o))}static from(e,t=void 0){return El(kl(e,t))}static compare(e,t){return _a(kl(e),kl(t))}with(e,t=void 0){return El(Fs(Dl(this),Cl(e),t))}add(e){return El(vi(Dl(this),$(e))[0])}subtract(e){return El(vi(Dl(this),L($(e)))[0])}until(e,t=void 0){return Z(Mi(0,Dl(this),kl(e),t))}since(e,t=void 0){return Z(Mi(1,Dl(this),kl(e),t))}round(e){let t=Dl(this),[n,r,i]=br(e,5);return El(qr(t,Yr(n,r),i)[0])}equals(e){return wa(Dl(this),kl(e))}toLocaleString(e=void 0,t={}){let n=Dl(this);return new V(e,Qs(_c(t))).format(Lt(n))}toString(e=void 0){return so(Dl(this),e)}toJSON(){return so(Dl(this))}valueOf(){return Rc()}},Dl,ot);function El(e){return jl(Object.create(Tl.prototype),e)}function Dl(e){return Ol(e)||Lc()}function Ol(e){return wl.get(e)}function kl(e,t){if(g(e)){let n=Ol(e);if(n)return M(t),n;let r=Fl(e);if(r)return M(t),Pr(r);let i=$c(e);return i?(M(t),Hs(i)):Go(e,t)}let n=ts(e);return M(t),n}function Al(e){return e===void 0?void 0:kl(e)}function jl(e,t){return wl.set(e,t),Ic(e),e}const Ml=new WeakMap,Nl=Pc(kc,class{constructor(e,t,n,r=0,i=0,a=0,o=0,c=0,l=0,u=void 0){let d=Dr(fn(ge(s,{year:e,month:t,day:n,hour:r,minute:i,second:a,millisecond:o,microsecond:c,nanosecond:l}))),f=Yc(u);Ll(this,Nr(d,f))}static from(e,t=void 0){return Pl(Il(e,t))}static compare(e,t){return ha(Il(e),Il(t))}get calendarId(){return Ve(Y(this).calendar)}with(e,t=void 0){return Pl(js(Y(this),Cl(e),t))}withCalendar(e){return Pl(Nr(Y(this),Kl(e)))}withPlainTime(e=void 0){let t=Y(this);return Pl(za(t,Al(e),t.calendar))}add(e,t=void 0){let n=Y(this);return Pl(Nr(hi(n.calendar,n,$(e),t),n.calendar))}subtract(e,t=void 0){let n=Y(this);return Pl(Nr(hi(n.calendar,n,L($(e)),t),n.calendar))}until(e,t=void 0){let n=Y(this),r=Il(e);return Z(Oi(0,Ci(n.calendar,r.calendar),n,r,t))}since(e,t=void 0){let n=Y(this),r=Il(e);return Z(Oi(1,Ci(n.calendar,r.calendar),n,r,t))}round(e){let t=Y(this),[n,r,i]=br(e);return Pl(Nr(Kr(t,Yr(n,r),i),t.calendar))}equals(e){return ba(Y(this),Il(e))}toZonedDateTime(e,t=void 0){return W(Us(Y(this),H(K(e)),t))}toPlainDate(){let e=Y(this);return Bl(P(e,e.calendar))}toPlainTime(){return El(Pr(Y(this)))}toLocaleString(e=void 0,t={}){let n=Y(this),r=new V(e,Qs(hc(t)));return ec(r,n),r.format(Gt(n))}toString(e=void 0){return no(Y(this),e)}toJSON(){return no(Y(this))}valueOf(){return Rc()}},Y,Bc,Uc,ot);function Pl(e){return Ll(Object.create(Nl.prototype),e)}function Y(e){return Fl(e)||Lc()}function Fl(e){return Ml.get(e)}function Il(e,t){if(g(e)){let n=Fl(e);if(n)return M(t),n;let r=Vl(e);if(r)return M(t),Nr(j(r,Nt),r.calendar);let i=$c(e);return i?(M(t),Bs(i)):Vo(Wl(e),e,t)}let n=Xo(e,Jc);return M(t),n}function Ll(e,t){return Ml.set(e,t),Ic(e),e}const Rl=new WeakMap,zl=Pc(Oc,class{constructor(e,t,n,r=void 0){let i=N(pn(ge(s,{year:e,month:t,day:n}))),a=Yc(r);Ul(this,P(i,a))}static from(e,t=void 0){return Bl(Hl(e,t))}static compare(e,t){return ga(Hl(e),Hl(t))}get calendarId(){return Ve(X(this).calendar)}with(e,t=void 0){return Bl(Ms(X(this),Cl(e),t))}withCalendar(e){return Bl(P(X(this),Kl(e)))}add(e,t=void 0){let n=X(this);return Bl(P(gi(n.calendar,n,$(e),t),n.calendar))}subtract(e,t=void 0){let n=X(this);return Bl(P(gi(n.calendar,n,L($(e)),t),n.calendar))}until(e,t=void 0){let n=X(this),r=Hl(e);return Z(ki(0,Ci(n.calendar,r.calendar),n,r,t))}since(e,t=void 0){let n=X(this),r=Hl(e);return Z(ki(1,Ci(n.calendar,r.calendar),n,r,t))}equals(e){return xa(X(this),Hl(e))}toZonedDateTime(e){let t=g(e)?{timeZone:e.timeZone,plainTime:e.plainTime}:{timeZone:e};return W(Ws(K,kl,X(this),t))}toPlainDateTime(e=void 0){let t=X(this);return Pl(za(t,Al(e),t.calendar))}toPlainYearMonth(){return vl(Js(X(this).calendar,this))}toPlainMonthDay(){return dl(qs(X(this).calendar,this))}toLocaleString(e=void 0,t={}){let n=X(this),r=new V(e,Qs(gc(t)));return ec(r,n),r.format(qt(n))}toString(e=void 0){return ro(X(this),e)}toJSON(){return ro(X(this))}valueOf(){return Rc()}},X,Bc,Uc);function Bl(e){return Ul(Object.create(zl.prototype),e)}function X(e){return Vl(e)||Lc()}function Vl(e){return Rl.get(e)}function Hl(e,t){if(g(e)){let n=Vl(e);if(n)return M(t),n;let r=Fl(e);if(r)return M(t),P(r,r.calendar);let i=$c(e);return i?(M(t),Vs(i)):Ho(Wl(e),e,t)}let n=Zo(e,Jc);return M(t),n}function Ul(e,t){return Rl.set(e,t),Ic(e),e}function Wl(e){let t=Gl(e);return t===void 0?void 0:t}function Gl(e){let{calendar:t}=e;if(t!==void 0)return Kl(t)}function Kl(e){if(g(e)){let t=Vl(e)||Fl(e)||$c(e)||pl(e)||yl(e);return t||v(re(e)),t.calendar}return(e=>Jc(rs(A(e))))(e)}const ql=new WeakMap,Jl=Pc(Nc,class{constructor(e=0,t=0,n=0,r=0,i=0,a=0,o=0,s=0,c=0,l=0){let u=ra(ge(Un,{years:e,months:t,weeks:n,days:r,hours:i,minutes:a,seconds:o,milliseconds:s,microseconds:c,nanoseconds:l}));Zl(this,F(u))}static from(e){return Z($(e))}static compare(e,t,n=void 0){return ma(Xl,$(e),$(t),n)}get sign(){return Q(this).sign}get blank(){return!Q(this).sign}with(e){return Z(Is(Q(this),e))}negated(){return Z(ta(Q(this)))}abs(){return Z(ea(Q(this)))}add(e,t=void 0){return Z(Zi(Xl,0,Q(this),$(e),t))}subtract(e,t=void 0){return Z(Zi(Xl,1,Q(this),$(e),t))}round(e){return Z($i(Xl,Q(this),e))}total(e){return Lr(Xl,Q(this),e)}toLocaleString(e=void 0,t){let n=Q(this);return Intl.DurationFormat?new Intl.DurationFormat(e,t).format(n):co(n,t)}toString(e=void 0){return co(Q(this),e)}toJSON(){return co(Q(this))}valueOf(){return Rc()}},Q,kn);function Z(e){return Zl(Object.create(Jl.prototype),e)}function Q(e){return Yl(e)||Lc()}function Yl(e){return ql.get(e)}function $(e){return g(e)?Yl(e)||Ko(e):ns(e)}function Xl(e){if(e!==void 0){if(g(e)){let t=$c(e);if(t)return t;let n=Vl(e);if(n)return n;let r=Fl(e);return r?P(r,r.calendar):zo(K,Wl(e),e)}return Jo(e,Jc)}}function Zl(e,t){return ql.set(e,t),Ic(e),e}const Ql=Object.defineProperties({},{...he(`Temporal.Now`),...me({timeZoneId(){return Cc()},instant(){return il(jr(Sc()))},zonedDateTimeISO(e=Cc()){let t=H(K(e));return W(Mr(Sc(),t))},plainDateTimeISO(e=Cc()){return Pl(Nr(xc(H(K(e)))))},plainDateISO(e=Cc()){return Bl(P(xc(H(K(e)))))},plainTimeISO(e=Cc()){return El(Pr(xc(H(K(e)))))}})}),$l=Object.defineProperties({},{...he(`Temporal`),...me({PlainYearMonth:_l,PlainMonthDay:ul,PlainDate:zl,PlainTime:Tl,PlainDateTime:Nl,ZonedDateTime:Zc,Instant:rl,Duration:Jl,Now:Ql})}),eu=Gc(Sl);function tu(){Object.defineProperties(globalThis,me({Temporal:$l})),Object.defineProperties(Intl,me({DateTimeFormat:eu})),Object.defineProperties(Date.prototype,me({toTemporalInstant:sl}))}function nu(){Tc||tu()}nu();
1
+ const e=(e,t)=>`Non-positive ${e}: ${t}`,t=(e,t)=>`Non-finite ${e}: ${t}`,n=e=>`Cannot convert bigint to ${e}`,r=(e,t,n,r)=>i(e,t)+`; must be between ${n}-${r}`,i=(e,t)=>`Invalid ${e}: ${t}`;function a(e){return e===void 0?Object.create(null):f(e)}function o(e,r=`number`){if(typeof e==`bigint`)throw TypeError(n(r));if(e=Number(e),!Number.isFinite(e))throw RangeError(t(r,e));return e}function s(e,t){return Math.trunc(o(e,t))||0}function c(e,t){return l(s(e,t),t)}function l(t,n=`number`){if(t<=0)throw RangeError(e(n,t));return t}function u(e,t,n){return Math.min(Math.max(e,t),n)}function d(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}function f(e){if(!d(e))throw TypeError(`Invalid object`);return e}const p=i,m=e=>`Missing ${e}`,ee=e=>`No valid fields: `+e.join(),h=(e,t,n)=>i(e,t)+`; must be `+Object.keys(n).join(),te=e=>`Missing year`+(e?`/era/eraYear`:``),ne=`Invalid leap month`,re=e=>i(`Calendar`,e),ie=(e,t)=>`Unknown calendar ${e}; might need ${t}`,ae=e=>i(`TimeZone`,e),oe=e=>`Cannot parse: ${e}`,se=e=>`Invalid substring: ${e}`,ce=e=>`Cannot format ${e}`,le=u,g=d;function _(e){throw RangeError(e)}function v(e){throw TypeError(e)}function ue(e,t,n,r,i){return de(t,((e,t)=>{let n=e[t];return n===void 0&&v(m(t)),n})(e,t),n,r,i)}function de(e,t,n,i,a,o){let s=le(t,n,i);return a&&t!==s&&_(((e,t,n,i,a)=>a?r(e,a[t],a[n],a[i]):r(e,t,n,i))(e,t,n,i,o)),s}function fe(e,t=Map){let n=new t;return(t,...r)=>{if(n.has(t))return n.get(t);let i=e(t,...r);return n.set(t,i),i}}const pe=e=>me({name:e},1),me=(e,t)=>ge(e=>({value:e,configurable:1,writable:!t}),e),he=e=>({[Symbol.toStringTag]:{value:e,configurable:1}});function ge(e,t){let n={};for(let r in t)n[r]=e(t[r],r);return n}function _e(e,t){let n={};for(let r of e)n[r]=t;return n}function ve(e){let t={};for(let n of e)t[n]=e=>e[n];return t}function y(e,t,n=Object.create(null)){for(let r of e)n[r]=t[r];return n}function ye(e,t,n){for(let r of e)if(t[r]!==n[r])return 0;return 1}function be(e,t,n){let r={...n};for(let n=0;n<t;n++)r[e[n]]=0;return r}function b(e,...t){return(...n)=>e(...t,...n)}function xe(e){return e}function Se(){}function Ce(e){return e[0].toUpperCase()+e.substring(1)}function x(...e){return[].concat(...e).sort()}function we(e){return RegExp(`^${e}$`,`i`)}function Te(e){return parseInt(e.padEnd(9,`0`))}function Ee(e){return e&&e!==`+`?-1:1}function De(e){return e===void 0?0:parseInt(e)}function Oe(e,t){return String(t).padStart(e,`0`)}const ke=/*@__PURE__*/ b(Oe,2);function Ae(e,t){return Math.sign(e-t)}function S(e,t){return e<t?-1:+(e>t)}function je(e,t){let n=e/t;return e%t<0n?n-1n:n}function Me(e,t){let n=je(e,t);return[n,e-n*t]}function Ne(e,t){return[Math.floor(e/t),Pe(e,t)]}function Pe(e,t){return(e%t+t)%t}function Fe(e,t){return Math.trunc(e/t)||0}function Ie(e,t){return e%t||0}function Le(e,t=1){return t*(.5+e/5)}function Re(e){return Math.abs(e%1)===.5}const ze={bce:-1,ce:0};function Be(e){let t=e.normalize(`NFD`).toLowerCase().replace(/[^a-z0-9]/g,``);return t===`bc`||t===`b`?`bce`:t===`ad`||t===`a`?`ce`:t}function Ve(e){return e===void 0?`iso8601`:e===0?`gregory`:e.id}const He=/^M(\d{2})(L?)$/;function Ue(e){let t=He.exec(e);return t||_((e=>`Invalid monthCode: ${e}`)(e)),[parseInt(t[1]),!!t[2]]}function We(e,t){return`M`+ke(e)+(t?`L`:``)}function Ge(e,t,n){return e+(t||n&&e>=n?1:0)}const Ke={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},qe=/*@__PURE__*/ Object.keys(Ke),Je=1e3,Ye=1e6,Xe=1e9,Ze=6e10,Qe=36e11,$e=864e11,C=[1,Je,Ye,Xe,Ze,Qe,$e],et=/*@__PURE__*/ BigInt(Je),tt=/*@__PURE__*/ BigInt(Ye),nt=/*@__PURE__*/ BigInt(Xe),rt=/*@__PURE__*/ BigInt(Ze),it=/*@__PURE__*/ BigInt(Qe),w=/*@__PURE__*/ BigInt($e);function at(e,t){let n=Number(e/w),r=Number(e%w);return $e/t*n+(Math.trunc(r/t)+r%t/t)}const T=/*@__PURE__*/ qe.slice(0,6),ot=/*@__PURE__*/ ve(T),st=[`year`],ct=[`day`],lt=[`day`,`month`,`year`],ut=[`offset`],dt=[`timeZone`],ft=[`era`,`eraYear`],pt=[`era`,`eraYear`,`year`],mt=[`month`,`monthCode`],ht=[`day`,`month`,`monthCode`],gt=/*@__PURE__*/ x(T),_t=/*@__PURE__*/ x(ft,st),vt=/*@__PURE__*/ x(mt,st),yt=/*@__PURE__*/ x(ft,vt),bt=/*@__PURE__*/ x([`monthCode`],st),xt=/*@__PURE__*/ x(ft,bt),St=/*@__PURE__*/ x(ct,[`monthCode`]),Ct=/*@__PURE__*/ x(ct,vt),wt=/*@__PURE__*/ x(ct,ft,vt),Tt=/*@__PURE__*/ x(Ct,T),Et=/*@__PURE__*/ x(wt,T),Dt=/*@__PURE__*/ x(Ct,T,ut),Ot=/*@__PURE__*/ x(wt,T,ut),kt=/*@__PURE__*/ x(Ct,T,ut,dt),At=/*@__PURE__*/ x(wt,T,ut,dt),jt=/*@__PURE__*/ x(ct,bt),Mt=/*@__PURE__*/ x(ct,ft,bt),Nt=/*@__PURE__*/ _e(T,0);function Pt(e){return It(e,1),e}const Ft={hour:23,minute:59,second:59};function It(e,t){let n={};for(let r of T)n[r]=de(r,e[r],0,Ft[r]||999,t);return n}function E(e){return Rt(e)*Xe+zt(e)}function Lt(e){return 1e3*Rt(e)+e.millisecond}function Rt(e){return 3600*e.hour+60*e.minute+e.second}function zt(e){return e.millisecond*Ye+e.microsecond*Je+e.nanosecond}function Bt(e){let[t,n]=Ne(e,$e);return[Vt(n),t]}function Vt(e){let[t,n]=Ne(e,Ye),[r,i]=Ne(n,Je);return Ht(t,r,i)}function Ht(e,t=0,n=0){let[r,i]=Ne(e,36e5),[a,o]=Ne(i,6e4),[s,c]=Ne(o,1e3);return{hour:r,minute:a,second:s,millisecond:c,microsecond:t,nanosecond:n}}function Ut(e){let[t,n]=Me(e,nt);return[Number(t),Number(n)]}function Wt(e){return Kt(e)+BigInt(E(e))}function Gt(e){return qt(e)+Lt(e)}function Kt(e){return BigInt(Jt(e))*w}function qt(e){return 864e5*Jt(e)}function Jt(e){return Yt(e.year,e.month,e.day)}function Yt(e,t=1,n=1){let r=t-1;return e+=Math.floor(r/12),t=Pe(r,12),Date.UTC(e%400-400,t,0)/864e5+146097*(Fe(e,400)+1)+n}function Xt(e){let[t,n]=Me(e,w);return{...Zt(Number(t)),...Vt(Number(n))}}function Zt(e){let t=/* @__PURE__ */ new Date(864e5*Pe(e,146097));return{year:t.getUTCFullYear()+400*Math.floor(e/146097),month:t.getUTCMonth()+1,day:t.getUTCDate()}}function Qt(e){return[e,0]}function $t(e,t){if(!t)return{year:1972,month:e}}function en(e,t,n){return{year:e,month:t,day:n}}function tn(e,t){switch(t){case 2:return rn(e)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function nn(e){return rn(e)?366:365}function rn(e){return e%4==0&&(e%100!=0||e%400==0)}function an(e,t,n){return e+=Fe(n,12),(t+=Ie(n,12))<1?(e--,t+=12):t>12&&(e++,t-=12),{year:e,month:t}}function on(e,t,n,r){return 12*(n-e)+r-t}function sn(e){return Pe(Yt(e.year,e.month,e.day)+4,7)||7}function cn(e){return Yt(e.year,e.month,e.day)-Yt(e.year)+1}function ln(e){let t=e.year,n=Math.floor((cn(e)-sn(e)+10)/7),r=un(t);return n<1?n=r=un(--t):n>r&&(n=1,r=un(++t)),{weekOfYear:n,yearOfWeek:t,Ie:r}}function un(e){let t=sn({year:e,month:1,day:1});return t===4||t===3&&rn(e)?53:52}function dn({year:e}){return e<1?{era:`bce`,eraYear:1-e}:{era:`ce`,eraYear:e}}function fn(e){return pn(e),Pt(e)}function pn(e){return hn(e,1),e}function mn(e){return ye(lt,e,hn(e))}function hn(e,t){let{year:n}=e,r=ue(e,`month`,1,12,t);return{year:n,month:r,day:ue(e,`day`,1,tn(n,r),t)}}function D(e,t){return e?e.ie(t):t}function gn(e,t,n){return e?e.O(t,n):Qt(n)}function _n(e,t){return e===0?dn(t):e?e.h(t):{}}function vn(e,t,n,r){return e?e.je(t,n,r):en(t,n,r)}function yn(e,t){return e?e.k(t):12}function bn(e,t,n){return e?e.p(t,n):tn(t,n)}function xn(e,t){let{year:n,month:r}=D(e,t),[i,a]=gn(e,n,r);return We(i,a)}function Sn(e,t){let{year:n}=D(e,t);return e?e.u(n):rn(n)}function Cn(e,t){let{year:n}=D(e,t);return yn(e,n)}function wn(e,t){let{year:n,month:r}=D(e,t);return bn(e,n,r)}function Tn(e,t){let{year:n}=D(e,t);return e?e.j(n):nn(n)}function En(e,t){if(!e)return cn(t);let{year:n}=D(e,t),r=vn(e,n,1,1);return Jt(t)-Jt(r)+1}function Dn(e,t){return e===void 0?ln(t).weekOfYear:void 0}function On(e,t){return e===void 0?ln(t).yearOfWeek:void 0}const O=/*@__PURE__*/ qe.map(e=>e+`s`),kn=/*@__PURE__*/ ve(O),An=/*@__PURE__*/ x(O),jn=/*@__PURE__*/ O.slice(0,6),Mn=/*@__PURE__*/ O.slice(6),Nn=/*@__PURE__*/ Mn.slice(1),Pn=/*@__PURE__*/ O.reduce((e,t,n)=>(e[t]=n,e),{}),k=/*@__PURE__*/ _e(O,0),Fn=/*@__PURE__*/ _e(jn,0),In=/*@__PURE__*/ b(be,O);function Ln(e,t){return t??_(m(e)),t}const A=/*@__PURE__*/ b(Rn,`string`);function Rn(e,t,n=e){return typeof t!==e&&v(p(n,t)),t}function zn(e,t=`number`){return Number.isInteger(e)||_(((e,t)=>`Non-integer ${e}: ${t}`)(t,e)),e||0}function Bn(e){return typeof e==`symbol`&&v(`Cannot convert Symbol to string`),String(e)}function Vn(e,t){return d(e)?String(e):A(e,t)}function Hn(e){return typeof e==`boolean`?BigInt(+!!e):typeof e==`string`?BigInt(e):(typeof e!=`bigint`&&v(`Invalid bigint: ${e}`),e)}function Un(e,t){return zn(o(e,t),t)}function Wn(e,t){return typeof e==`string`?((e,t)=>{let n=Object.create(null);return n[e]=t,n})(t,e):f(e)}const Gn=`smallestUnit`,Kn={constrain:0,reject:1},qn={compatible:0,reject:1,earlier:2,later:3},Jn={reject:0,use:1,prefer:2,ignore:3},Yn={auto:0,never:1,critical:2,always:3},Xn={auto:0,never:1,critical:2},Zn={auto:0,never:1},Qn={floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8},$n=[Math.floor,e=>Re(e)?Math.floor(e):Math.round(e),Math.ceil,e=>Re(e)?Math.ceil(e):Math.round(e),Math.trunc,e=>Re(e)?Math.trunc(e)||0:Math.round(e),e=>e<0?Math.floor(e):Math.ceil(e),e=>Math.sign(e)*Math.round(Math.abs(e))||0,e=>Re(e)?(e=Math.trunc(e)||0)+e%2:Math.round(e)],er={previous:-1,next:1};function tr(e){let t=e.roundingIncrement;return t===void 0?1:s(t,`roundingIncrement`)}function nr(e){let t=e.fractionalSecondDigits;if(t!==void 0){if(typeof t!=`number`){if(Bn(t)===`auto`)return;_(p(`fractionalSecondDigits`,t))}t=de(`fractionalSecondDigits`,Math.floor(t),0,9,1)}return t}function rr(e,t,n=0,r){let i=t[e];if(i===void 0)return r?n:void 0;if(i=Bn(i),i===`auto`)return r?n:null;let a=Ke[i];return a===void 0&&(a=Pn[i]),a===void 0&&_(h(e,i,Ke)),a}function ir(e,t,n,r=0){let i=n[e];if(i===void 0)return r;let a=Bn(i),o=t[a];return o===void 0&&_(h(e,a,t)),o}const ar=/*@__PURE__*/ b(rr,Gn),or=/*@__PURE__*/ b(rr,`largestUnit`),sr=/*@__PURE__*/ b(rr,`unit`),cr=/*@__PURE__*/ b(ir,`overflow`,Kn),lr=/*@__PURE__*/ b(ir,`disambiguation`,qn),ur=/*@__PURE__*/ b(ir,`offset`,Jn),dr=/*@__PURE__*/ b(ir,`calendarName`,Yn),fr=/*@__PURE__*/ b(ir,`timeZoneName`,Xn),pr=/*@__PURE__*/ b(ir,`offset`,Zn),mr=/*@__PURE__*/ b(ir,`roundingMode`,Qn),hr=/*@__PURE__*/ b(ir,`direction`,er);function gr(e,t,n,r){let i=r?$e:C[t+1];if(i){let n=C[t];i%((e=de(`roundingIncrement`,e,1,i/n-+!r,1))*n)&&_(p(`roundingIncrement`,e))}else e=de(`roundingIncrement`,e,1,n?10**9:1,1);return e}function _r(e,t,n,r){return t!=null&&de(e,t,n,r,1,qe),t}function vr(e,t){t>e&&_(`smallestUnit > largestUnit`)}function yr(e,t,n,r=9,i=0,o=4){t=a(t);let s=or(t,i),c=tr(t),l=mr(t,o),u=ar(t,i,1);return s=_r(`largestUnit`,s,i,r),u=_r(Gn,u,i,r),s==null?s=Math.max(n,u):vr(s,u),c=gr(c,u,1),e&&(l=(e=>e<4?(e+2)%4:e)(l)),[s,u,c,l]}function br(e,t=6,n){let r=tr(e=Wn(e,Gn)),i=mr(e,7),a=ar(e);return a=Ln(Gn,a),a=_r(Gn,a,0,t),r=gr(r,a,void 0,n),[a,r,i]}function j(e,t){return y(lt,e,y(T,t))}function M(e){return e===void 0?0:cr(f(e))}function xr(e,t=0){e=a(e);let n=lr(e),r=ur(e,t);return[cr(e),r,n]}const Sr=/*@__PURE__*/ BigInt(1e8)*w,Cr=/*@__PURE__*/ BigInt(-1e8)*w,wr=Cr-w,Tr=-3261848;function Er(e){let t=12*e.year+e.month;return(t<Tr||t>3309129)&&_(`Out-of-bounds date`),e}function N(e,t=1){return Or(Kt(e),t),e}function Dr(e){let t=Kt(e);return Or(t),t!==wr||E(e)||_(`Out-of-bounds date`),e}function Or(e,t=1){(e<(t?wr:Cr)||e>Sr)&&_(`Out-of-bounds date`)}function kr(e){return(e<Cr||e>Sr)&&_(`Out-of-bounds date`),e}function Ar(e,t){return kr(Kt(e)+BigInt(E(e)-t))}function jr(e){return{epochNanoseconds:e}}function Mr(e,t,n){return{calendar:n,timeZone:t,epochNanoseconds:e}}function Nr(e,t){return y(T,e,P(e,t))}function P(e,t){return y(lt,e,{calendar:t})}function Pr(e){return y(T,e)}function F(e){return y(O,e,{sign:na(e)})}function Fr(e){return t=e.epochNanoseconds,Number(je(t,tt));var t}function Ir(e){return e.epochNanoseconds}function Lr(e,t,n){let r=da(t),[i,a]=((e,t)=>{let n=t((e=Wn(e,`unit`)).relativeTo),r=sr(e);return r=Ln(`unit`,r),[r,n]})(n,e);if(!a&&Ji(Math.max(i,r),a))return zr(t,i);if(a||_(`Missing relativeTo`),!t.sign&&Ji(i,a))return 0;let o=Hi(a),s=o.G(o.i,t);Gi(o,s);let c=o.re(o.i,s,i);return Ji(i,a)?zr(c,i):Rr(c,o.V(s),i,o)}function Rr(e,t,n,r){let i=na(e)||1,a=Br(In(n,e),n,i,r,t),o=a.ae,s=a.de,c=Number(s-o),l=Number(t-o);return a.ye[O[n]]+l/c*i}function zr(e,t){return at(aa(e),C[t])}function Br(e,t,n,r,i){let a=O[t],o=e,s=0,c=Vr(o,a,n,r);return i&&!((e,t,n,r)=>r>0?S(t,e)<=0&&S(e,n)<=0:S(n,e)<=0&&S(e,t)<=0)(i,c.ae,c.de,Math.sign(n))&&(o={...e,[a]:e[a]+n},s=1,c=Vr(o,a,n,r)),{...c,ye:o,He:s}}function Vr(e,t,n,r){let i={...e,[t]:e[t]+n};return{ae:Ui(r,e),de:Ui(r,i),Ae:i}}function Hr(e,t,n){let r=n-t,i=e-t;if(!i)return 0;let a=i<0n?-i:i,o=r<0n?-r:r,s=S(i,0n)===S(r,0n)?1:-1;return S(a,o)<=0?a===o?s:Le(S(2n*a,o),s):Number(i)/Number(r)}function Ur(e,t,n,r){let{epochNanoseconds:i}=e,{timeZone:a,calendar:o}=e;if(t===0&&n===1)return{epochNanoseconds:i,timeZone:a,calendar:o};if(t===6){let t=j(I(e),Nt),n=j(yi(t,1),Nt),o=di(a,t),s=di(a,n);i=ri(Hr(i,o,s),r)?s:o}else{let o=I(e),s=o.offsetNanoseconds;i=li(a,Kr(o,Yr(t,n),r),s,2,0,1)}return{epochNanoseconds:i,timeZone:a,calendar:o}}function Wr(e){let{timeZone:t}=e,n=j(I(e),Nt),r=j(yi(n,1),Nt),i=di(t,n);return at(di(t,r)-i,Qe)}function Gr(e){let{timeZone:t,calendar:n}=e;return Mr(di(t,j(I(e),Nt)),t,n)}function Kr(e,t,n){let[r,i]=qr(e,t,n),a=j(yi(e,i),r);return Dr(a),a}function qr(e,t,n){return Bt(ni(E(e),t,n))}function Jr(e){return ni(e,Ze,7)}function Yr(e,t){return C[e]*t}function Xr(e,t){return BigInt(C[e])*BigInt(t)}function Zr(e,t,n){let r=Math.min(da(e),6);return ca($r(aa(e),BigInt(t),n),r)}function Qr(e,t,n,r,i,a,o){if(r===0&&i===1)return e;let s=na(e)||1,[c,l,u]=(Ji(r,o.i)?Wi(o.i)&&r<6&&n>=6?ai:ii:oi)(s,e,t,n,r,i,a,o);return u&&r!==7&&(c=((e,t,n,r,i,a)=>{for(let o=r+1;o<=n;o++){if(o===7&&n!==7)continue;let r=In(o,e);r[O[o]]+=i;let s=S(t,Ui(a,r));if(s&&s!==i)break;e=r}return e})(c,l,n,Math.max(6,r),s,o)),c}function $r(e,t,n){return ti(e,t,n,e/t%2n)}function ei(e,t,n){let[r,i]=Me(e,w),a=r*w;return a+ti(i,t,n,(a/t+i/t)%2n)}function ti(e,t,n,r){let i=e/t,a=e%t,o=0;a&&(o=Le(S(2n*(a<0n?-a:a),t),Math.sign(Number(a))));let s=ri(Number(r)+o,n);return(i-r+BigInt(s))*t}function ni(e,t,n){return ri(e/t,n)*t}function ri(e,t){return $n[t](e)}function ii(e,t,n,r,i,a,o){let s=aa(t),c=$r(s,Xr(i,a),o),l=c-s,u=Math.sign(Number(c/w)-Number(s/w))===e,d=ca(c,Math.min(r,6));return[{...t,...d},n+l,u]}function ai(e,t,n,r,i,a,o,s){let c=Number(oa(t)),l=Yr(i,a),u=ni(c,l,o),d=Br({...t,...Fn},6,e,s,n),f=d.ae,p=d.de,m=u-Number(p-f),ee=0;m&&Math.sign(m)!==e?n=f+BigInt(u):(ee+=e,u=ni(m,l,o),n=p+BigInt(u));let h=la(u);return[{...t,...h,days:t.days+ee},n,!!ee]}function oi(e,t,n,r,i,a,o,s){let c=O[i],l=In(i,t);i===7&&(t={...t,weeks:t.weeks+Math.trunc(t.days/7)}),l[c]=Fe(t[c],a)*a;let u=Br(l,i,a*e,s,n),d=u.ae,f=u.de,p=Hr(n,d,f),m=u.ye[c],ee=u.Ae[c],h=ni(m+p*e*a,a,o),te=h===ee;return l[c]=h,[l,te?f:d,u.He||te]}function si(e,t){return e.timeZone.U(e.epochNanoseconds,(e=>{let t=Wn(e,`direction`),n=hr(t,0);return n||_(p(`direction`,n)),n})(t))}const I=/*@__PURE__*/ fe(ci,WeakMap);function ci(e){let{epochNanoseconds:t,timeZone:n}=e,r=n.C(t);return{...Xt(t+BigInt(r)),offsetNanoseconds:r}}function li(e,t,n,r=0,i=0,a,o){if(n!==void 0&&r===1&&(r===1||o))return Ar(t,n);r!==2&&r!==0||N(t,0);let s=e.R(t);if(n!==void 0&&r!==3){let e=((e,t,n,r)=>{let i=Wt(t);r&&(n=Jr(n));for(let t of e){let e=Number(i-t);if(r&&(e=Jr(e)),e===n)return t}})(s,t,n,a);if(e!==void 0)return e;r===0&&_(`Invalid TimeZone offset`)}return o?Wt(t):ui(e,t,i,s)}function ui(e,t,n=0,r=e.R(t)){if(r.length===1)return r[0];if(n===1&&_(`Ambiguous offset`),r.length)return r[+(n===3)];let i=Wt(t),a=((e,t)=>{let n=e.C(t-w);return(e=>(e>864e11&&_(`Out-of-bounds TimeZone gap`),e))(e.C(t+w)-n)})(e,i),o=Xt(i+BigInt(a*(n===2?-1:1)));return(r=e.R(o))[n===2?0:r.length-1]}function di(e,t){let n=e.R(t);if(n.length)return n[0];let r=Wt(t)-w;return e.U(r,1)}function fi(e,t,n,r,i){let a=M(i);return r.sign&&da(r)<8&&_(`Cannot use small units`),_i(t,bi(t,N(_i(t,n)),e?L(r):r,a))}function pi(e,t){return kr(e+(ua(n=t)&&_(`Cannot use large units`),oa(n)));var n}function mi(e,t,n){let{calendar:r,epochNanoseconds:i,timeZone:a}=e,o=oa(t),s=i;if(ua(t)){let i=I(e);s=ui(a,j(gi(r,i,{...t,...Fn},n),i))+o}else s+=o,M(n);return{...e,epochNanoseconds:kr(s)}}function hi(e,t,n,r){let[i,a]=vi(t,n),o=j(gi(e,t,{...n,...Fn,days:n.days+a},r),i);return Dr(o),o}function gi(e,t,n,r){if(n.years||n.months||n.weeks)return bi(e,t,n,M(r));M(r);let i=n.days+Number(oa(n)/w);return i?N(yi(t,i)):t}function _i(e,t){return yi(t,1-D(e,t).day)}function vi(e,t){let n=oa(t),r=Number(n/w),i=Number(n%w),[a,o]=Bt(E(e)+i);return[a,r+o]}function yi(e,t){return t?Zt(Jt(e)+t):e}function bi(e,t,n,r){let{years:i,months:a,weeks:o,days:s}=n,c;if(s+=Number(oa(n)/w),i||a)c=xi(e,t,i,a,r);else{if(!o&&!s)return t;c=t}return(o||s)&&(c=yi(c,7*o+s)),N(c)}function xi(e,t,n,r,i){let{year:a,month:o,day:s}=D(e,t);if(n){let[t,r]=gn(e,a,o);a+=n,o=Si(e,t,r,e?e.q(a):void 0,i),o=de(`month`,o,1,yn(e,a),i)}if(r){let t=e?e.N(a,o,r):an(a,o,r);({year:a,month:o}=t)}return s=de(`day`,s,1,bn(e,a,o),i),vn(e,a,o,s)}function Si(e,t,n,r,i){if(n){let n=e?e.m:void 0;return r!==void 0&&(n<0||r===t+1)?r:(i===1&&_(ne),n<0?-n:t)}return Ge(t,0,r)}function Ci(e,t){return Ve(e)!==Ve(t)&&_(`Mismatching Calendars`),e}function wi(e,t){return e.o!==t.o&&_(`Mismatching TimeZones`),e}function Ti(e){return e.timeZone.id}function Ei(e,t,n,r){let[i,a,o,s]=yr(e,r,3,5),c=zi(t.epochNanoseconds,n.epochNanoseconds,i,a,o,s);return F(e?L(c):c)}function Di(e,t,n,r,i){let[a,o,s,c]=yr(e,i,5),l=n.epochNanoseconds,u=r.epochNanoseconds,d;return S(u,l)?a<6?d=zi(l,u,a,o,s,c):(d=Ni(wi(n.timeZone,r.timeZone),t,n,r,a),d=Qr(d,u,a,o,s,c,Vi(n,Ir,mi))):d=k,F(e?L(d):d)}function Oi(e,t,n,r,i){let[a,o,s,c]=yr(e,i,6),l=Wt(n),u=Wt(r),d=S(u,l),f;return d?a<=6?f=zi(l,u,a,o,s,c):(f=Fi(t,n,r,d,a),f=Qr(f,u,a,o,s,c,Vi(n,Wt,b(hi,t)))):f=k,F(e?L(f):f)}function ki(e,t,n,r,i){let[a,o,s,c]=yr(e,i,6,9,6);return ji(e,t,n,r,a,o,s,c)}function Ai(e,t,n,r,i){let[a,o,s,c]=yr(e,i,9,9,8),l=_i(t,n),u=_i(t,r);return Li(l,u)?ji(e,t,N(l),N(u),a,o,s,c,8):F(k)}function ji(e,t,n,r,i,a,o,s,c=6){let l=Kt(n),u=Kt(r),d;return S(u,l)?i===6?d=zi(l,u,i,a,o,s):(d=Ii(t,n,r,i),a===c&&o===1||(d=Qr(d,u,i,a,o,s,Vi(n,Kt,b(gi,t))))):d=k,F(e?L(d):d)}function Mi(e,t,n,r){let[i,a,o,s]=yr(e,r,5,5),c=ni(E(n)-E(t),Yr(a,o),s),l={...k,...la(c,i)};return F(e?L(l):l)}function Ni(e,t,n,r,i){let a=S(r.epochNanoseconds,n.epochNanoseconds);if(!a)return k;if(i<6)return{...k,...ca(r.epochNanoseconds-n.epochNanoseconds,i)};if(!Li(I(n),I(r)))return{...k,...ca(r.epochNanoseconds-n.epochNanoseconds,5)};let[o,s,c]=Ri(e,n,r,a);return{...i===6?{...k,days:Bi(o,s)}:Ii(t,o,s,i),...la(c)}}function Pi(e,t,n,r){let i=Wt(t),a=Wt(n),o=S(a,i);return o?r<=6?{...k,...ca(a-i,r)}:Fi(e,t,n,o,r):k}function Fi(e,t,n,r,i){let a=n,o=E(n)-E(t);return Math.sign(o)===-r&&(a=yi(n,-r),o+=864e11*r),{...Ii(e,t,a,i),...la(o)}}function Ii(e,t,n,r){if(r<=7){let e=Bi(t,n);return r===7?{...k,weeks:Fe(e,7),days:Ie(e,7)}:{...k,days:e}}let i=D(e,t),a=D(e,n);if(r===8){let{year:r,month:o,day:s}=i,{year:c,month:l,day:u}=a,d=Math.sign(Ae(c,r)||Ae(l,o)||Bi(t,n)),f=0,p=0;if(d){f=e?e.ne(r,o,c,l):on(r,o,c,l);let i=xi(e,t,0,f,0);d*Ae(s,u)>0&&(f-=d,i=xi(e,t,0,f,0)),p=Bi(i,n)}return{...k,months:f,days:p}}let{year:o,month:s,day:c}=i,{year:l,month:u,day:d}=a,f=l-o,p=u-s,m=d-c;if(f||p){let t=Math.sign(f||p),n=bn(e,l,u),r=0;if(Math.sign(d-c)===-t){let i=n,a=e?e.N(l,u,-t):an(l,u,-t);({year:l,month:u}=a),f=l-o,p=u-s,n=bn(e,l,u),r=t<0?-i:n}if(m=d-Math.min(c,n)+r,f){let[n,r]=gn(e,o,s),[i,a]=gn(e,l,u),c=e?e.m:void 0;if(p=c!==void 0&&r&&!a&&(c<0?t>0&&i===-c:t<0&&i===n)?0:i-n||Number(a)-Number(r),Math.sign(p)===-t){let i=t<0&&-yn(e,l);l-=t,f=l-o,p=u-Si(e,n,r,e?e.q(l):void 0,0)+(i||yn(e,l))}else if(e){let t=Si(e,n,r,e.q(l),0);p=e.ne(l,t,l,u)}}}return{...k,years:f,months:p,days:m}}function Li(e,t){return Ae(e.year,t.year)||Ae(e.month,t.month)||Ae(e.day,t.day)}function Ri(e,t,n,r){let i=I(t),a=I(n),o=n.epochNanoseconds,s=0,c=E(a)-E(i);Math.sign(c)===-r&&s++;let l=s+ +(r>0);for(;s<=l;s++){let t=yi(a,s*-r),n=ui(e,j(t,i));if(S(o,n)!==-r)return[i,t,Number(o-n)]}}function zi(e,t,n,r,i,a){return{...k,...ca($r(t-e,Xr(r,i),a),n)}}function Bi(e,t){return Jt(t)-Jt(e)}function Vi(e,t,n){return{i:e,V:t,G:n}}function Hi(e){let{calendar:t}=e;if(Wi(e)){let{timeZone:n}=e;return{i:e,V:Ir,G:mi,re:b(Ni,n,t)}}return{i:Ki(e),V:Wt,G:b(hi,t),re:b(Pi,t)}}function Ui(e,t){return e.V(e.G(e.i,t))}function Wi(e){return`timeZone`in e}function Gi(e,t){Wi(e.i)||(qi(e.i),qi(t))}function Ki(e){return j(e,`hour`in e?e:Nt)}function qi(e){Dr(Ki(e))}function Ji(e,t){return e<=6-(t&&Wi(t)?1:0)}function Yi(e,t,n){let r={};for(let i=t;i>=0;i--){let t=C[i];r[n[i]]=Fe(e,t),e=Ie(e,t)}return r}const Xi=2**53;function Zi(e,t,n,r,i){let o=e(a(i).relativeTo),s=Math.max(da(n),da(r));if(Ji(s,o))return Qi(t,n,r,s);o||_(`Missing relativeTo`),t&&(r=L(r));let c=Hi(o),l=c.G(c.i,n),u=c.G(l,r);return F(c.re(c.i,u,s))}function Qi(e,t,n,r){return F(ra(((e,t,n,r)=>{let i=aa(e)+aa(t)*BigInt(r?-1:1);return Number.isFinite(Number(i/w))||_(`Out-of-bounds date`),{...k,...ca(i,n)}})(t,n,r,e)))}function $i(e,t,n){let r=da(t),[i,a,o,s,c]=((e,t,n)=>{e=Wn(e,Gn);let r=or(e),i=n(e.relativeTo),a=tr(e),o=mr(e,7),s=ar(e);return r===void 0&&s===void 0&&_(`Required smallestUnit or largestUnit`),s??=0,r??=Math.max(s,t),vr(r,s),a=gr(a,s,1),a>1&&s>5&&r!==s&&_(`For calendar units with roundingIncrement > 1, use largestUnit = smallestUnit`),[r,s,a,o,i]})(n,r,e);if(!c&&Math.max(r,i)<=6)return F(ra(((e,t,n,r,i)=>{let a=$r(aa(e),Xr(n,r),i);return{...k,...ca(a,t)}})(t,i,a,o,s)));let l=c&&Wi(c)&&i>=6&&a<6;if(!t.sign&&!l)return t;c||_(`Missing relativeTo`);let u=Hi(c),d=u.G(u.i,t);Gi(u,d);let f=u.re(u.i,d,i);return f=Qr(f,u.V(d),i,a,o,s,u),F(f)}function ea(e){return e.sign===-1?ta(e):e}function ta(e){return F(L(e))}function L(e){let t={};for(let n of O)t[n]=-1*e[n]||0;return t}function na(e,t=O){let n=0;for(let r of t){let t=Math.sign(e[r]);t&&(n&&n!==t&&_(`Cannot mix duration signs`),n=t)}return n}function ra(e){for(let t of Nn)de(t,e[t],-4294967295,4294967295,1);let t=aa(e);return ia(Number(t/nt)),e}function ia(e){Number.isSafeInteger(e)||_(`Out-of-bounds duration`)}function aa(e){return BigInt(e.days)*w+oa(e)}function oa(e){return BigInt(e.hours)*it+BigInt(e.minutes)*rt+sa(e)}function sa(e){return BigInt(e.seconds)*nt+BigInt(e.milliseconds)*tt+BigInt(e.microseconds)*et+BigInt(e.nanoseconds)}function ca(e,t=6){let n=Number(e/w),r=Number(e%w),i=C[t],a=t<=3?Number(e/BigInt(i)):$e/i*n+Fe(r,i);Number.isFinite(a)||_(`Out-of-bounds date`),t<=3&&Math.abs(a)/(Xe/C[t])>=Xi&&_(`Out-of-bounds date`);let o=Yi(r,t,O);return o[O[t]]=a,o}function la(e,t=5){return Yi(e,t,O)}function ua(e){return!!na(e,Mn)}function da(e){let t=9;for(;t>0&&!e[O[t]];t--);return t}function fa(e,t){return S(e.epochNanoseconds,t.epochNanoseconds)}function pa(e,t){return S(e.epochNanoseconds,t.epochNanoseconds)}function ma(e,t,n,r){let i=e(a(r).relativeTo),o=Math.max(da(t),da(n));if(ye(O,t,n))return 0;if(Ji(o,i))return S(aa(t),aa(n));i||_(`Missing relativeTo`);let s=Hi(i);return S(Ui(s,t),Ui(s,n))}function ha(e,t){return ga(e,t)||_a(e,t)}function ga(e,t){return Ae(Jt(e),Jt(t))}function _a(e,t){return Ae(E(e),E(t))}function va(e,t){return!fa(e,t)}function ya(e,t){return!pa(e,t)&&e.timeZone.o===t.timeZone.o&&e.calendar===t.calendar}function ba(e,t){return!ha(e,t)&&e.calendar===t.calendar}function xa(e,t){return!ga(e,t)&&e.calendar===t.calendar}function Sa(e,t){return!ga(e,t)&&e.calendar===t.calendar}function Ca(e,t){return!ga(e,t)&&e.calendar===t.calendar}function wa(e,t){return!_a(e,t)}function Ta(e){return e===0?ze:e?e.l:void 0}function R(e,t,n=t){return Ta(e)?n:t}function Ea(e,t){let n=e||void 0,r=Ta(e),{era:i,eraYear:a,year:o}=t;if(o!==void 0&&(o=s(o,`year`)),a!==void 0&&(a=s(a,`eraYear`)),i!==void 0||a!==void 0){i!==void 0&&a!==void 0||v(`Mismatching era/eraYear`),r||_(`Forbidden era/eraYear`);let e=Be(i),t=r[e];t===void 0&&_((e=>`Invalid era: ${e}`)(i));let s=n?.te?n.te(a,e,t):ka(a,t);o!==void 0&&o!==s&&_(`Mismatching year/eraYear`),o=s}else o===void 0&&v(te(r));return o}function Da(e,t,n,r,i){let{month:a,monthCode:o}=t;if(o!==void 0){let t=((e,t,n,r,i=Ue(t))=>{let a=e?e.q(n):void 0,[o,s]=i,c=Ge(o,s,a);if(s){let t=e?e.m:void 0;t===void 0&&_(ne),t>0?(c>t&&_(ne),a!==c&&(r===1&&_(ne),c=Ge(o,0,a))):(c!==-t&&_(ne),a===void 0&&r===1&&_(ne))}return c})(e,o,n,r,i);a!==void 0&&a!==t&&_(`Mismatching month/monthCode`),a=t,r=1}else a===void 0&&v(`Missing month/monthCode`);return de(`month`,a,1,yn(e,n),r)}function Oa(e,t,n,r,i){return ue(t,`day`,1,bn(e,r,n),i)}function ka(e,t){return(t+e)*(Math.sign(t)||1)||0}function Aa(e,t){return It(y(T,{...Nt,...e}),t)}const ja=/*@__PURE__*/ we(`([+-])(\\d{2})(?::?(\\d{2})(?::?(\\d{2})(?:[.,](\\d{1,9}))?)?)?`);function Ma(e){let t=Na(e);return t===void 0&&_(oe(e)),t}function Na(e,t){let n=ja.exec(e);if(n&&(e=>(e=>{e[0]!==`T`&&e[0]!==`t`||(e=e.slice(1));let t=e.search(/[.,]/),n=t<0?e:e.slice(0,t),r=n.split(`:`);return r.length===1?/^(?:\d{2}|\d{4}|\d{6})$/i.test(n):(r.length===2||r.length===3)&&r.every(e=>e.length===2&&/^\d{2}$/i.test(e))})(e.slice(1)))(n[0]))return((e,t)=>{let n=e[4]||e[5];return t&&n&&_(se(n)),r=(De(e[2])*Qe+De(e[3])*Ze+De(e[4])*Xe+Te(e[5]||``))*Ee(e[1]),Math.abs(r)>=864e11&&_(`Out-of-bounds offset`),r;var r})(n,t)}const z={era:Vn,month:c,monthCode(e,t=`monthCode`){return((e,t)=>{if(typeof e==`string`)return e;if(e&&typeof e==`object`){let n=e.toString;if(typeof n==`function`)return A(n.call(e),t)}return A(e,t)})(e,t)},day:c},Pa=/*@__PURE__*/ _e(T,s),Fa=/*@__PURE__*/ _e(O,Un),Ia={offset(e){return Ma(Vn(e))}},La=/*@__PURE__*/ Object.assign({},z,Pa),Ra=/*@__PURE__*/ Object.assign({},La,Ia);function B(e,t,n,r,i=!r){let a={},o=0;for(let i of t){let t=e[i];if(t!==void 0){o=1;let e=n[i];e&&(t=e(t,i)),a[i]=t}else r&&r.includes(i)&&v(m(i))}return i&&!o&&v(ee(t)),a}function za(e,t=Nt,n){let r=j(e,t);return Dr(r),Nr(r,n)}function Ba(e,t,n){return Ha(e,t,Wa(e,t),M(n))}function Va(e,t,n){let r=Wa(e,t),i=n();return[Ha(e,t,r,i[0]),...i]}function Ha(e,t,n,r){let i=n[1],a=Da(e,t,i,r,n[0]);return P(N(vn(e,i,a,Oa(e,t,a,i,r))),e)}function Ua(e){if(e.monthCode!==void 0)return Ue(e.monthCode)}function Wa(e,t){let n=Ta(e);return t.year!==void 0||t.era!==void 0&&t.eraYear!==void 0||v(te(n)),t.monthCode===void 0&&t.month===void 0&&v(`Missing month/monthCode`),t.day===void 0&&v(m(`day`)),[Ua(t),Ea(e,t)]}function Ga(e,t,n){let r=Ta(e);t.year!==void 0||t.era!==void 0&&t.eraYear!==void 0||v(te(r)),t.monthCode===void 0&&t.month===void 0&&v(`Missing month/monthCode`);let i=Ua(t),a=Ea(e,t);return P(Er(vn(e,a,Da(e,t,a,M(n),i),1)),e)}function Ka(e,t,n){let r=e===void 0,i=Ta(e);t.day===void 0&&v(m(`day`)),r||t.month===void 0||t.year!==void 0||t.era!==void 0&&t.eraYear!==void 0||v(te(i));let a=Ua(t),o=t.eraYear!==void 0||t.year!==void 0?Ea(e,t):void 0,s=M(n),c,l,u;if(o===void 0&&r&&(o=1972),o!==void 0){r||N(vn(e,o,1,1));let n=Da(e,t,o,s,a);c=Oa(e,t,n,o,s),[l,u]=gn(e,o,n)}else{t.monthCode===void 0&&v(`Missing month/monthCode`),[l,u]=a;let n=e?e.ge:1972;if(n!==void 0)c=Oa(e,t,Da(e,t,n,s,a),n,s);else{let n=s===0&&e?e.ke?.(l,u,t.day):void 0;c=n===void 0?t.day:n}}u&&((e&&e.Z?.[l])??1/0)<t.day&&(s===1&&_(ne),u=0,c=le(t.day,1,(e&&e.X)??1/0));let d=e?e.v(l,!!u,c):$t(l,!!u);for(;!d&&s===0&&c>1;)c--,d=e?e.v(l,!!u,c):$t(l,!!u);d||_(`Cannot guess year`);let{year:f,month:p}=d;return P(N(vn(e,f,p,c)),e)}const V=Intl.DateTimeFormat;function qa(e,t){t<-864e13&&_(`Out-of-bounds date`);let n=e.formatToParts(t),r={};for(let e of n)r[e.type]=e.value;return r}const Ja={El_Aaiun:17,Tucuman:12,Tirane:11,Riga:10,Simferopol:9,Vienna:9,Tunis:8,Boa_Vista:6,Fortaleza:6,Maceio:6,Noronha:6,Recife:6,Gaza:6,Hebron:6,DeNoronha:6},Ya=-388152e4;function Xa(e,t=4){let n=nr(e),r=mr(e,4),i=ar(e);return[r,...$a(_r(Gn,i,0,t),n)]}function Za(e){return dr(a(e))}function Qa(e,t){return Xa(a(e),t)}function $a(e,t){return e==null?[t===void 0?1:10**(9-t),t]:[C[e],e<4?9-3*e:-1]}function eo(e,t,n){let[r,i,o,s]=(e=>{let t=nr(e=a(e)),n=mr(e,4),r=ar(e);return[e.timeZone,n,...$a(_r(Gn,r,0,4),t)]})(n),c=r!==void 0;return((e,t,n,r,i,a)=>{n=ei(n,BigInt(i),r);let o=t.C(n);return po(Xt(n+BigInt(o)),a)+(e?vo(Jr(o)):`Z`)})(c,H(c?e(r):`UTC`),t.epochNanoseconds,i,o,s)}function to(e,t){let n=(e=>{e=a(e);let t=dr(e),n=nr(e),r=pr(e),i=mr(e,4),o=ar(e);return[t,fr(e),r,i,...$a(_r(Gn,o,0,4),n)]})(t);return((e,t,n,r,i,a,o,s,c,l)=>{r=ei(r,BigInt(c),s);let u=n.C(r);return po(Xt(r+BigInt(u)),l)+vo(Jr(u),o)+yo(t,a)+bo(e,i)})(e.calendar,e.timeZone.id,e.timeZone,e.epochNanoseconds,...n)}function no(e,t){let n=(e=>(e=a(e),[dr(e),...Xa(e)]))(t);return((e,t,n,r,i,a)=>po(Kr(t,i,r),a)+bo(e,n))(e.calendar,e,...n)}function ro(e,t){return n=e.calendar,r=e,i=Za(t),mo(r)+bo(n,i);var n,r,i}function io(e,t){return oo(e.calendar,ho,e,Za(t))}function ao(e,t){return oo(e.calendar,go,e,Za(t))}function oo(e,t,n,r){return r===1?e===void 0?t(n):mo(n):r>1||r===0&&e!==void 0?mo(n)+xo(Ve(e),r===2):t(n)}function so(e,t){return((e,t,n,r)=>_o(qr(e,n,t)[0],r))(e,...Qa(t))}function co(e,t){let[n,r,i]=Qa(t,3);return r>1&&ra(e={...e,...Zr(e,r,n)}),lo(e,i)}function lo(e,t){let{sign:n}=e,r=n===-1?L(e):e,{hours:i,minutes:a}=r,o=sa(r),s=Number(o/nt),c=Number(o%nt);ia(s);let l=Co(c,t),u=t>=0||!n||l;return(n<0?`-`:``)+`P`+uo({Y:fo(r.years),M:fo(r.months),W:fo(r.weeks),D:fo(r.days)})+(i||a||s||u?`T`+uo({H:fo(i),M:fo(a),S:fo(s,u)+l}):``)}function uo(e){let t=[];for(let n in e){let r=e[n];r&&t.push(r,n)}return t.join(``)}function fo(e,t){if(!e&&!t)return``;let n=Object.create(null);return n.useGrouping=0,e.toLocaleString(`fullwide`,n)}function po(e,t){return mo(e)+`T`+_o(e,t)}function mo(e){return ho(e)+`-`+ke(e.day)}function ho(e){let{year:t}=e;return(t<0||t>9999?wo(t)+Oe(6,Math.abs(t)):Oe(4,t))+`-`+ke(e.month)}function go(e){return ke(e.month)+`-`+ke(e.day)}function _o(e,t){let n=[ke(e.hour),ke(e.minute)];return t!==-1&&n.push(ke(e.second)+((e,t,n,r)=>Co(e*Ye+t*Je+n,r))(e.millisecond,e.microsecond,e.nanosecond,t)),n.join(`:`)}function vo(e,t=0){if(t===1)return``;let[n,r]=Ne(Math.abs(e),Qe),[i,a]=Ne(r,Ze),[o,s]=Ne(a,Xe);return wo(e)+ke(n)+`:`+ke(i)+(o||s?`:`+ke(o)+Co(s):``)}function yo(e,t){return t===1?``:`[`+(t===2?`!`:``)+e+`]`}function bo(e,t){return t>1||t===0&&e!==void 0?xo(Ve(e),t===2):``}function xo(e,t){return`[`+(t?`!`:``)+`u-ca=`+e+`]`}const So=/0+$/;function Co(e,t){let n=Oe(9,e);return n=t===void 0?n.replace(So,``):n.slice(0,t),n?`.`+n:``}function wo(e){return e<0?`-`:`+`}const To=/^(AC|AE|AG|AR|AS|BE|BS|CA|CN|CS|CT|EA|EC|IE|IS|JS|MI|NE|NS|PL|PN|PR|PS|SS|VS)T$/,Eo=/[^\w\/:+-]+/;function Do(e){return Oo(A(e))}function Oo(e){return ko(e).id}function ko(e){let t=e.toUpperCase(),n=(e=>{let t=Na(e,1);if(t!==void 0)return{id:vo(t),_:t,o:t}})(t);if(n)return{kind:`fixed`,...n};let r=t===`UTC`?`UTC`:(e=>(Eo.test(e)&&_(ae(e)),To.test(e)&&_(`Forbidden ICU TimeZone`),e.toLowerCase().split(`/`).map((e,t)=>(e.length<=3||/\d/.test(e))&&!/etc|yap/.test(e)?e.toUpperCase():e.replace(/baja|dumont|[a-z]+/g,(e,n)=>e.length<=2&&!t||e===`in`||e===`chat`?e.toUpperCase():e.length>2||!n?Ce(e).replace(/island|noronha|murdo|rivadavia|urville/,Ce):e)).join(`/`)))(e);return Ao(r)}const Ao=/*@__PURE__*/ fe(e=>{if(e===`UTC`)return{kind:`utc`,id:e,o:e};let t=e.toUpperCase(),n=jo(t);return{kind:`named`,id:e,format:n,o:n.resolvedOptions().timeZone}}),jo=/*@__PURE__*/ fe(e=>new V(`en-u-hc-h23`,{calendar:`iso8601`,timeZone:e,era:`short`,year:`numeric`,month:`numeric`,day:`numeric`,hour:`numeric`,minute:`numeric`,second:`numeric`}));function H(e){let t=ko(e);return Mo(t.id,t)}const Mo=/*@__PURE__*/ fe((e,t)=>t.kind===`named`?new Po(e,t.o,t.format):new No(e,t.o,t.kind===`fixed`?t._:0));var No=class{constructor(e,t,n){this.id=e,this.o=t,this._=n}C(){return this._}R(e){return[Ar(e,this._)]}U(){}},Po=class{constructor(e,t,n){this.id=e,this.o=t,this.qe=((e,t)=>{let n=fe(e),r=fe(Io),i=86400*t;function a(e){let[t,a]=Lo(e,i),s=Ro(t),c=Ro(a),l=n(s),u=n(c);return l===u?l:o(r(s,c),l,u,e)}function o(t,n,r,i){let a,o;for(;(i===void 0||(a=i<t[0]?n:i>=t[1]?r:void 0)===void 0)&&(o=t[1]-t[0]);){let n=t[0]+Math.floor(o/2);e(n)===r?t[1]=n:t[0]=n+1}return a}return{Ee(e){let t=a(e-86400),n=a(e+86400),r=e-t,i=e-n;if(t===n)return[r];let o=a(r);return o===a(i)?[e-o]:t>n?[r,i]:[]},De:a,U:function e(t,a){if(a>0&&t>=864e10)return;if(a<0){if(t<=Ya)return;let n=Fo()+94867200;if(t>n)return e(n,-1)}let[s,c]=Lo(a>0?Math.max(t,Ya):t,i),l=i*a,u=a>0?Math.max(t,Fo())+94867200:Ya,d=()=>a<0?c>u:s<u;for(;d();){let e=Ro(s),i=Ro(c),u=n(e),d=n(i);if(u!==d){let n=r(e,i);o(n,u,d);let s=n[0];if((Ae(s,t)||1)===a)return s}s+=l,c+=l}}}})((e=>t=>{let n=qa(e,1e3*t);return 86400*Yt((e=>{let t=e.relatedYear;if(t!==void 0)return parseInt(t);let n=parseInt(e.year);return e.era!==void 0&&Be(e.era)===`bce`?1-n:n})(n),parseInt(n.month),parseInt(n.day))+3600*parseInt(n.hour)+60*parseInt(n.minute)+parseInt(n.second)-t})(n),(e=>{let t=e.split(`/`).pop();return Ja[t]||60})(e))}C(e){return this.qe.De((e=>Ut(e)[0])(e))*Xe}R(e){let t=86400*Jt(e)+Rt(e),n=zt(e);return this.qe.Ee(t).map(e=>kr(BigInt(e)*nt+BigInt(n)))}U(e,t){let[n,r]=Ut(e),i=this.qe.U(n+(t>0||r?1:0),t);if(i!==void 0)return BigInt(i)*nt}};function Fo(){return Math.floor(Date.now()/1e3)}function Io(e,t){return[e,t]}function Lo(e,t){let n=Math.floor(e/t)*t;return[n,n+t]}function Ro(e){return le(e,-1e10,864e10)}function zo(e,t,n){let r=B(n,R(t,kt,At),Ra,[],0);if(r.timeZone!==void 0){let n=Ba(t,r),i=Aa(r),a=H(e(r.timeZone));return{epochNanoseconds:li(a,j(n,i),r.offset),timeZone:a,calendar:t}}return Ba(t,r)}function Bo(e,t,n,r){let i=B(n,R(t,kt,At),Ra,dt,0),a=e(i.timeZone),[o,s,c,l]=Va(t,i,()=>xr(r)),u=Aa(i,s),d=H(a);return Mr(li(d,j(o,u),i.offset,c,l),d,t)}function Vo(e,t,n){let r=B(t,R(e,Tt,Et),La,[],0),[i,a]=Va(e,r,()=>[M(n)]);return za(i,Aa(r,a),e)}function Ho(e,t,n,r=[]){return Ba(e,B(t,R(e,Ct,wt),z,r),n)}function Uo(e,t,n,r){return Ga(e,B(t,R(e,vt,yt),z,r),n)}function Wo(e,t,n,r){let i=B(n,R(e,Ct,wt),z,ct,0);return t&&i.month!==void 0&&i.monthCode===void 0&&i.year===void 0&&(i.year=1972),Ka(e,i,r)}function Go(e,t){return Aa(B(e,gt,Pa,[],1),M(t))}function Ko(e){let t=B(e,An,Fa);return F(ra({...k,...t}))}function U(e){_(oe(e))}function qo(e){let t=xs(e=Vn(e)),n;return t||U(e),t.F?n=0:t.offset?n=Ma(t.offset):U(e),t.timeZoneId&&Na(t.timeZoneId,1),fn(t),jr(Ar(t,n))}function Jo(e,t){let n=xs(A(e));return n||U(e),n.timeZoneId?ls(n,t,void 0):(n.F&&U(e),ds(n,t))}function Yo(e,t,n){let r=xs(A(e));return r&&r.timeZoneId||U(e),ls(r,t,n)}function Xo(e,t){let n=xs(A(e));return n&&!n.F||U(e),us(n,t)}function Zo(e,t){let n=os(as(A(e)),void 0,t);return P(n,n.calendar)}function Qo(e,t){let n=Ss(A(e));if(n)return $o(n),P(Er(pn(n)),t(n.calendarId));let r=os(as(e),ss,t),{calendar:i}=r;return P(_i(i,r),i)}function $o(e){e.calendarId!==`iso8601`&&_(se(e.calendarId))}function es(e,t){let n=Cs(A(e));if(n)return $o(n),P(pn(n),t(n.calendarId));let r=os(as(e),cs,t),{calendar:i}=r,{year:a,month:o,day:s}=D(i,r),[c,l]=gn(i,a,o),{year:u,month:d}=((e,t,n,r)=>{let i=e?e.v(t,n,r):$t(t,n);return i||_(`Cannot guess year`),i})(i,c,l,s);return P(N(vn(i,u,d,s)),i)}function ts(e){let t=(e=>{let t=ws(e);return t?(Ds(t[13]),Ts(t,1)):void 0})(e=A(e)),n;return t||(t=xs(e),t?(t.fe||U(e),t.F&&_(se(`Z`)),$o(t)):U(e)),(n=Ss(e))&&mn(n)&&U(e),(n=Cs(e))&&mn(n)&&U(e),Pr(Pt(t))}function ns(e){let t=(e=>{let t=bs.exec(e);return t?(e=>{let t=0,n=0,r=0,i={years:a(e[2]),months:a(e[3]),weeks:a(e[4]),days:a(e[5]),hours:a(e[6],e[7],5),minutes:a(e[8],e[9],4),seconds:a(e[10],e[11],3),...Yi(r,2,O)};return t||_(ee(O)),Ee(e[1])<0&&(i=L(i)),i;function a(e,i,a){let o=0,s=0;return a&&([o,r]=Ne(r,C[a])),e!==void 0&&(n&&_(se(e)),s=(e=>{let t=parseInt(e);return Number.isFinite(t)||_(se(e)),t})(e),t=1,i&&(r=Te(i)*(C[a]/Xe),n=1)),o+s}})(t):void 0})(A(e));return t||U(e),F(ra(t))}function rs(e){let t=xs(e)||Ss(e)||Cs(e);if(t)return t.calendarId;let n=ws(e);return n?Ds(n[13]).calendarId:e}function is(e){let t=xs(e);return t&&(t.timeZoneId||t.F&&`UTC`||t.offset)||e}function as(e){let t=xs(e);return t&&!t.F||U(e),t}function os(e,t,n){return t&&e.calendarId===`iso8601`?(pn(e),e.fe&&Pt(e),ds(t(e),n)):e.fe?us(e,n):ds(e,n)}function ss(e){let t=12*e.year+e.month===Tr?20:1;return{...e,day:t}}function cs(e){return{...e,year:1972}}function ls(e,t,n){let r=H(Oo(e.timeZoneId)),i;if(fn(e),e.fe){let t=e.offset?Ma(e.offset):void 0,[,o,s]=xr(n);i=li(r,e,t,o,s,!(r._||e.offset===void 0||(a=e.offset,a.replace(/\D/g,``).length>4)),e.F)}else xr(n),i=di(r,e);var a;return kr(i),Mr(i,r,t(e.calendarId))}function us(e,t){return fn(e),Dr(e),{...j(e,e),calendar:t(e.calendarId)}}function ds(e,t){return pn(e),N(e),{calendar:t(e.calendarId),year:e.year,month:e.month,day:e.day}}function fs(e){return`(\\d{2})(?:(:?)(\\d{2})(?:\\${e}(\\d{2})(?:[.,](\\d{1,9}))?)?)?`}function ps(e){return`([+-])`+fs(e)}const ms=`(?:(?:([+-])(\\d{6}))|(\\d{4}))(-?)(\\d{2})\\4(\\d{2})(?:[T ]`+fs(8)+`(Z|`+ps(15)+`)?)?`,hs=/*@__PURE__*/ we(`(?:(?:([+-])(\\d{6}))|(\\d{4}))-?(\\d{2})((?:\\[(!?)([^\\]]*)\\]){0,9})`),gs=/*@__PURE__*/ we(`(?:--)?(\\d{2})-?(\\d{2})((?:\\[(!?)([^\\]]*)\\]){0,9})`),_s=/*@__PURE__*/ we(ms+`((?:\\[(!?)([^\\]]*)\\]){0,9})`),vs=/*@__PURE__*/ we(`T?`+fs(2)+`(${ps(9)})?((?:\\[(!?)([^\\]]*)\\]){0,9})`),ys=/*@__PURE__*/ RegExp(`\\[(!?)([^\\]]*)\\]`,`g`),bs=/*@__PURE__*/ we(`([+-])?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)(?:[.,](\\d{1,9}))?H)?(?:(\\d+)(?:[.,](\\d{1,9}))?M)?(?:(\\d+)(?:[.,](\\d{1,9}))?S)?)?`);function xs(e){let t=_s.exec(e);return t?(e=>{let t=e[12],n=(t||``).toUpperCase()===`Z`;return{year:Es(e),month:parseInt(e[5]),day:parseInt(e[6]),...Ts(e,7),...Ds(e[19]),fe:!!e[7],F:n,offset:n?void 0:t}})(t):void 0}function Ss(e){let t=hs.exec(e);if(t)return(e=>({year:Es(e),month:parseInt(e[4]),day:1,...Ds(e[5])}))(t)}function Cs(e){let t=gs.exec(e);return t?(e=>({year:1972,month:parseInt(e[1]),day:parseInt(e[2]),...Ds(e[3])}))(t):void 0}function ws(e){let t=vs.exec(e);if(t)return t[6]&&Ma(t[6]),t}function Ts(e,t){let n=De(e[t+3]);return{...Bt(Te(e[t+4]||``))[0],hour:De(e[t]),minute:De(e[t+2]),second:n===60?59:n}}function Es(e){let t=Ee(e[1]),n=parseInt(e[2]||e[3]);return t<0&&!n&&_(se(-0)),t*n}function Ds(e){let t,n,r=[];return e.replace(ys,(e,i,a)=>{let o=!!i,[s,c]=a.split(`=`).reverse();return c?c===`u-ca`?(r.push(s.toLowerCase()),t||=o):(o||/[A-Z]/.test(c))&&_(se(e)):(n&&_(se(e)),n=s),``}),r.length>1&&t&&_(se(e)),{timeZoneId:n,calendarId:r[0]||`iso8601`}}function Os(e,t,n){let r=Object.assign(Object.create(null),t);return ks(r,n,mt),Ta(e)&&(ks(r,n,pt),e&&e.le&&ks(r,n,ht,ft)),r}function ks(e,t,n,r){let i=0,a=[];for(let e of n)t[e]===void 0?a.push(e):i=1;if(Object.assign(e,t),i)for(let t of r||a)delete e[t]}function As(e,t,n){let{calendar:r,timeZone:i}=e,a=R(r,Dt,Ot),o=I(e),{year:s,month:c,day:l}=D(r,o),u={year:s,monthCode:Ls(r,s,c),day:l,hour:o.hour,minute:o.minute,second:o.second,millisecond:o.millisecond,microsecond:o.microsecond,nanosecond:o.nanosecond,offset:o.offsetNanoseconds},d=B(t,a,Ra),f=Os(r,u,d),p={...u,...d},[m,ee,h,te]=Va(r,f,()=>xr(n,2));return Mr(li(i,j(m,It(p,ee)),p.offset,h,te),i,r)}function js(e,t,n){let{calendar:r}=e,i=R(r,Tt,Et),{year:a,month:o,day:s}=D(r,e),c={year:a,monthCode:Ls(r,a,o),day:s,hour:e.hour,minute:e.minute,second:e.second,millisecond:e.millisecond,microsecond:e.microsecond,nanosecond:e.nanosecond},l=B(t,i,La),u=Os(r,c,l),d={...c,...l},[f,p]=Va(r,u,()=>[M(n)]);return za(f,It(d,p),r)}function Ms(e,t,n){let{calendar:r}=e,i=R(r,Ct,wt),{year:a,month:o,day:s}=D(r,e);return Ba(r,Os(r,{year:a,monthCode:Ls(r,a,o),day:s},B(t,i,z)),n)}function Ns(e,t,n){let{calendar:r}=e,i=R(r,vt,yt),{year:a,month:o}=D(r,e);return Ga(r,Os(r,{year:a,monthCode:Ls(r,a,o)},B(t,i,z)),n)}function Ps(e,t,n){let{calendar:r}=e,i=R(r,Ct,wt),{year:a,month:o,day:s}=D(r,e);return Ka(r,Os(r,{monthCode:Ls(r,a,o),day:s},B(t,i,z)),n)}function Fs(e,t,n){return((e,t,n)=>Aa({...y(gt,e),...B(t,gt,Pa)},M(n)))(e,t,n)}function Is(e,t){return F((n=e,r=t,ra({...n,...B(r,An,Fa)})));var n,r}function Ls(e,t,n){let[r,i]=gn(e,t,n);return We(r,i)}function Rs(e,t,n){return Mr(e.epochNanoseconds,t,n)}function zs(e){return jr(e.epochNanoseconds)}function Bs(e){return Nr(I(e),e.calendar)}function Vs(e){return P(I(e),e.calendar)}function Hs(e){return Pr(I(e))}function Us(e,t,n){return Mr(kr(((e,t,n)=>ui(e,t,(e=>lr(a(e)))(n)))(t,e,n)),t,e.calendar)}function Ws(e,t,n,r){let i=e(r.timeZone),a=r.plainTime,o=a===void 0?void 0:t(a),s=H(i),c;return c=o?ui(s,j(n,o)):di(s,j(n,Nt)),Mr(c,s,n.calendar)}function Gs(e,t,n){return Ys(e,y(R(e,bt,xt),t),B(f(n),ct,z,[]))}function Ks(e,t,n){let r=R(e,st,_t);return Ys(e,y(St,t),B(f(n),r,z,[]))}function qs(e,t){return Ka(e,B(t,St,z))}function Js(e,t,n){return Ga(e,B(t,R(e,bt,xt),z),n)}function Ys(e,t,n){let r=R(e,jt,Mt),i=Os(e,t,n);return i=B(i,r,z,[]),Ba(e,i)}function Xs(e){return jr(kr(BigInt(Un(e))*tt))}function Zs(e){return jr(kr(Hn(e)))}function Qs(e){return e.timeZone=`UTC`,[`full`,`long`].includes(e.timeStyle)&&(e.timeStyle=`medium`),e}function $s(e,t){return e.timeZone!==void 0&&v(`Cannot specify TimeZone`),e.timeZone=t,e}function ec(e,t,n){let r=e.resolvedOptions().calendar;!n&&t.calendar===void 0||Ve(t.calendar)===r||_(`Mismatching Calendars`)}function tc(e,t,n,r,i){let a=new Set(e),o=new Set(t),s=new Set(n);return(e,t)=>{let n=((e,t,n,r)=>{let i={dateStyle:void 0,timeStyle:void 0,me:{},pe:{},xe:{},oe:0,ue:0};for(let a of Object.keys(e)){let o=e[a];o===void 0||r.has(a)||(t.has(a)?a===`dateStyle`?i.dateStyle=o:a===`timeStyle`?i.timeStyle=o:i.me[a]=o:a===`era`?i.pe[a]=o:n.has(a)?a===`dateStyle`||a===`timeStyle`?i.ue=1:i.oe=1:i.xe[a]=o)}return i})(e,a,o,s),c=n.dateStyle!==void 0,l=n.timeStyle!==void 0,u=c||l,d=Object.keys(n.me).length>0,f=n.oe||n.ue,p=d||c||l,m=Object.keys(n.pe).length>0,ee=d||m||n.oe;(!t&&f||t&&f&&!p||u&&ee)&&v(`Invalid formatting options`);let h={};return u||p||Object.assign(h,r),Object.assign(h,n.me,n.pe,n.xe),c&&(i?Object.assign(h,i[n.dateStyle]):h.dateStyle=n.dateStyle),l&&(h.timeStyle=n.timeStyle),h}}const nc={year:`numeric`,month:`numeric`,day:`numeric`},rc={hour:`numeric`,minute:`numeric`,second:`numeric`},ic=/*@__PURE__*/ Object.assign({},nc,rc),ac=/*@__PURE__*/ Object.assign({},ic,{timeZoneName:`short`}),oc={year:`numeric`,month:`numeric`},sc={month:`numeric`,day:`numeric`},cc=[`weekday`,`year`,`month`,`day`,`dateStyle`],lc=[`dayPeriod`,`hour`,`minute`,`second`,`fractionalSecondDigits`,`timeStyle`],uc=/*@__PURE__*/ cc.concat(lc),dc=/*@__PURE__*/ [`weekday`,`day`].concat(lc),fc=/*@__PURE__*/ [`weekday`,`year`].concat(lc),pc=/*@__PURE__*/ tc(uc,[],[],ic),mc=/*@__PURE__*/ tc(uc,[],[],ac),hc=/*@__PURE__*/ tc(uc,[],[`timeZoneName`],ic),gc=/*@__PURE__*/ tc(cc,lc,[`timeZoneName`],nc),_c=/*@__PURE__*/ tc(lc,cc,[`timeZoneName`,`era`],rc),vc=/*@__PURE__*/ tc([`year`,`month`,`dateStyle`],dc,[`timeZoneName`],oc,{full:{year:`numeric`,month:`long`},long:{year:`numeric`,month:`long`},medium:{year:`numeric`,month:`short`},short:{year:`2-digit`,month:`numeric`}}),yc=/*@__PURE__*/ tc([`month`,`day`,`dateStyle`],fc,[`timeZoneName`,`era`],sc,{full:{month:`long`,day:`numeric`},long:{month:`long`,day:`numeric`},medium:{month:`short`,day:`numeric`},short:{month:`numeric`,day:`numeric`}});function bc(e,t){let{timeZone:n}=e,r=I(e),{offsetNanoseconds:i}=r,a=t||Nt,o;return o=t?li(n,j(r,a),i,2):di(n,j(r,a)),Mr(o,n,e.calendar)}function xc(e){let t=Sc(),n=e.C(t);return Xt(t+BigInt(n))}function Sc(){return BigInt(Date.now())*tt}function Cc(){return new V().resolvedOptions().timeZone}function wc(e,t=xe){let n=/* @__PURE__ */ new WeakMap;function r(e){let t=n.get(e);return t||v(`Invalid calling context`),t}class i{constructor(r,i=Object.create(null)){let a=t(i),o=new V(r,a),s=o.resolvedOptions(),c=y(Object.keys(i),s);n.set(this,{ee:e({t:o,Ge:s.locale,I:c,Je:a}),t:o})}get format(){let e=r(this);return e.ze||=t=>{let[n,...r]=e.ee.B(t);return n.format(...r)}}formatToParts(e){let{ee:t}=r(this),[n,...i]=t.B(e);return n.formatToParts(...i)}resolvedOptions(){return r(this).t.resolvedOptions()}}let{prototype:a}=i;function o(e,t){return new i(e,t)}V.prototype.formatRange&&Object.defineProperties(a,me({formatRange(e,t){let{ee:n}=r(this),[i,a,o]=n.A(e,t);return i.formatRange(a,o)},formatRangeToParts(e,t){let{ee:n}=r(this),[i,a,o]=n.A(e,t);return i.formatRangeToParts(a,o)}}));let s=Object.getOwnPropertyDescriptors(V);return s.prototype.value=a,Object.defineProperties(o,s),a.constructor=o,Object.defineProperties(a,he(`Intl.DateTimeFormat`)),o}const Tc=globalThis.Temporal,Ec=`PlainYearMonth`,Dc=`PlainMonthDay`,Oc=`PlainDate`,kc=`PlainDateTime`,Ac=`PlainTime`,jc=`ZonedDateTime`,Mc=`Instant`,Nc=`Duration`;function Pc(e,t,n,...r){Object.defineProperties(t,pe(e)),Object.defineProperties(t.prototype,he(`Temporal.`+e));for(let e of r)Fc(t.prototype,n,e);return t}function Fc(e,t,n){Object.defineProperties(e,ge(e=>({get(){return e(t(this))},configurable:1}),n))}const Ic=Se.name===`noop`?e=>{Object.defineProperty(e,"_str_",{value:e.toJSON()})}:Se;function Lc(){v(`Invalid calling context`)}function Rc(){v(`Cannot use valueOf`)}const zc={era(e){return _n(e.calendar,e).era},eraYear(e){return _n(e.calendar,e).eraYear},year(e){return D(e.calendar,e).year},month(e){return D(e.calendar,e).month},monthCode(e){return xn(e.calendar,e)}},Bc={era(e){return _n(e.calendar,e).era},eraYear(e){return _n(e.calendar,e).eraYear},year(e){return D(e.calendar,e).year},month(e){return D(e.calendar,e).month},monthCode(e){return xn(e.calendar,e)},day(e){return D(e.calendar,e).day}},Vc={monthCode(e){return xn(e.calendar,e)},day(e){return D(e.calendar,e).day}},Hc={daysInMonth(e){return wn(e.calendar,e)},daysInYear(e){return Tn(e.calendar,e)},monthsInYear(e){return Cn(e.calendar,e)},inLeapYear(e){return Sn(e.calendar,e)}},Uc={dayOfWeek(e){return sn(e)},dayOfYear(e){return En(e.calendar,e)},weekOfYear(e){return Dn(e.calendar,e)},yearOfWeek(e){return On(e.calendar,e)},daysInWeek(){return 7},daysInMonth(e){return wn(e.calendar,e)},daysInYear(e){return Tn(e.calendar,e)},monthsInYear(e){return Cn(e.calendar,e)},inLeapYear(e){return Sn(e.calendar,e)}};function Wc(e){return ve(Object.keys(e))}Wc(Hc),Wc(Uc);function Gc(e){return wc(t=>{let n=fe(e=>((e,t)=>{let n;switch(t){case Mc:n=pc(e.I,1);break;case kc:n=Qs(hc(e.I,1));break;case Oc:n=Qs(gc(e.I,1));break;case Ac:n=Qs(_c(e.I,1));break;case Ec:n=Qs(vc(e.I,1));break;case Dc:n=Qs(yc(e.I,1));break;default:v(ce(t))}return new V(e.Ge,n)})(t,e));return{B(r){if(r===void 0)return[t.t];let i=e(r);if(!i)return[t.t,Number(r)];let[a,o]=i,s=n(a);return Kc(s,a,o),[s,qc(a,o)]},A(r,i){r!==void 0&&i!==void 0||v(`Mismatching types for formatting`);let a=e(r),o=a?void 0:Number(r),s=e(i),c=s?void 0:Number(i);if(!a&&!s)return[t.t,o,c];a&&s||v(`Mismatching types for formatting`);let[l,u]=a,[d,f]=s;l!==d&&v(`Mismatching types for formatting`);let p=n(l);return Kc(p,l,u),Kc(p,l,f),[p,qc(l,u),qc(l,f)]}}})}function Kc(e,t,n){switch(t){case Mc:case Ac:return;case kc:case Oc:ec(e,n);return;case Ec:case Dc:ec(e,n,1);return;default:v(ce(t))}}function qc(e,t){switch(e){case Mc:return Fr(t);case kc:return Gt(t);case Oc:case Ec:case Dc:return qt(t);case Ac:return Lt(t);default:v(ce(e))}}function Jc(e){let t=A(e).toLowerCase();return t===`iso8601`?void 0:t===`gregory`?0:void _(ie(e,`temporal-polyfill/full`))}function Yc(e=`iso8601`){return Jc(e)}const Xc=/*@__PURE__*/ new WeakMap,Zc=/*@__PURE__*/ Pc(jc,class{constructor(e,t,n=void 0){let r=kr(Hn(e)),i=H(Do(t)),a=Yc(n);tl(this,Mr(r,i,a))}static from(e,t=void 0){return W(el(e,t))}static compare(e,t){return pa(el(e),el(t))}get calendarId(){return Ve(G(this).calendar)}get timeZoneId(){return G(this).timeZone.id}get epochMilliseconds(){return Fr(G(this))}get epochNanoseconds(){return Ir(G(this))}get offset(){return vo(I(G(this)).offsetNanoseconds)}get offsetNanoseconds(){return I(G(this)).offsetNanoseconds}get hoursInDay(){return Wr(G(this))}with(e,t=void 0){return W(As(G(this),Cl(e),t))}withCalendar(e){return W({...G(this),calendar:Kl(e)})}withTimeZone(e){return W({...G(this),timeZone:H(K(e))})}withPlainTime(e=void 0){return W(bc(G(this),Al(e)))}add(e,t=void 0){return W(mi(G(this),$(e),t))}subtract(e,t=void 0){return W(mi(G(this),L($(e)),t))}until(e,t=void 0){let n=G(this),r=el(e);return Z(F(Di(0,Ci(n.calendar,r.calendar),n,r,t)))}since(e,t=void 0){let n=G(this),r=el(e);return Z(F(Di(1,Ci(n.calendar,r.calendar),n,r,t)))}round(e){let t=G(this),[n,r,i]=br(e);return W(Ur(t,n,r,i))}startOfDay(){return W(Gr(G(this)))}equals(e){return ya(G(this),el(e))}toInstant(){return il(zs(G(this)))}toPlainDateTime(){return Pl(Bs(G(this)))}toPlainDate(){return Bl(Vs(G(this)))}toPlainTime(){return El(Hs(G(this)))}toLocaleString(e=void 0,t={}){let n=G(this),r=new V(e,$s(mc(t),Ti(n)));return ec(r,n),r.format(Fr(n))}toString(e=void 0){return to(G(this),e)}toJSON(){return to(G(this))}getTimeZoneTransition(e){let t=G(this),n=si(t,e);return n?W({...t,epochNanoseconds:n}):null}valueOf(){return Rc()}},Qc,Bc,Uc,ot);function W(e){return tl(Object.create(Zc.prototype),e)}function G(e){return $c(e)||Lc()}function Qc(e){let t=G(e);return{...I(t),calendar:t.calendar}}function $c(e){return Xc.get(e)}function el(e,t){if(g(e)){let n=$c(e);return n?(xr(t),n):Bo(K,Wl(e),e,t)}return Yo(e,Jc,t)}function tl(e,t){return Xc.set(e,t),Ic(e),e}function K(e){if(g(e)){let t=$c(e);return t||v(ae(e)),t.timeZone.id}return(e=>Oo(is(A(e))))(e)}const nl=/*@__PURE__*/ new WeakMap,rl=/*@__PURE__*/ Pc(Mc,class{constructor(e){let t=kr(Hn(e));cl(this,jr(t))}static from(e){return il(ol(e))}static fromEpochMilliseconds(e){return il(Xs(e))}static fromEpochNanoseconds(e){return il(Zs(e))}static compare(e,t){return fa(ol(e),ol(t))}get epochMilliseconds(){return Fr(q(this))}get epochNanoseconds(){return Ir(q(this))}add(e){return il(jr(pi(q(this).epochNanoseconds,$(e))))}subtract(e){return il(jr(pi(q(this).epochNanoseconds,L($(e)))))}until(e,t=void 0){return Z(Ei(0,q(this),ol(e),t))}since(e,t=void 0){return Z(Ei(1,q(this),ol(e),t))}round(e){let t=q(this),[n,r,i]=br(e,5,1);return il(jr(ei(t.epochNanoseconds,Xr(n,r),i)))}equals(e){return va(q(this),ol(e))}toZonedDateTimeISO(e){return W(Rs(q(this),H(K(e))))}toLocaleString(e=void 0,t={}){let n=q(this);return new V(e,pc(t)).format(Fr(n))}toString(e=void 0){return eo(K,q(this),e)}toJSON(){return eo(K,q(this))}valueOf(){return Rc()}});function il(e){return cl(Object.create(rl.prototype),e)}function q(e){return al(e)||Lc()}function al(e){return nl.get(e)}function ol(e){if(g(e)){let t=al(e);if(t)return t;let n=$c(e);if(n)return jr(n.epochNanoseconds)}return qo(e)}const{toTemporalInstant:sl}={toTemporalInstant(){let e=Date.prototype.valueOf.call(this);return il(jr(BigInt(zn(e))*tt))}};function cl(e,t){return nl.set(e,t),Ic(e),e}const ll=/*@__PURE__*/ new WeakMap,ul=/*@__PURE__*/ Pc(Dc,class{constructor(e,t,n=void 0,r){let i=s(e),a=s(t),o=Yc(n),c=N(pn({year:s(r??1972),month:i,day:a}));hl(this,P(c,o))}static from(e,t=void 0){return dl(ml(e,t))}get calendarId(){return Ve(fl(this).calendar)}with(e,t=void 0){return dl(Ps(fl(this),Cl(e),t))}equals(e){return Ca(fl(this),ml(e))}toPlainDate(e){return Bl(Ks(fl(this).calendar,this,e))}toLocaleString(e=void 0,t={}){let n=fl(this),r=new V(e,Qs(yc(t)));return ec(r,n,1),r.format(qt(n))}toString(e=void 0){return ao(fl(this),e)}toJSON(){return ao(fl(this))}valueOf(){return Rc()}},fl,Vc);function dl(e){return hl(Object.create(ul.prototype),e)}function fl(e){return pl(e)||Lc()}function pl(e){return ll.get(e)}function ml(e,t){if(g(e)){let n=pl(e);if(n)return M(t),n;let r=Gl(e);return Wo(r===void 0?void 0:r,r===void 0,e,t)}let n=es(e,Jc);return M(t),n}function hl(e,t){return ll.set(e,t),Ic(e),e}const gl=/*@__PURE__*/ new WeakMap,_l=/*@__PURE__*/ Pc(Ec,class{constructor(e,t,n=void 0,r){let i=s(e),a=s(t),o=Yc(n),c=Er(pn({year:i,month:a,day:s(r??1)}));xl(this,P(c,o))}static from(e,t=void 0){return vl(bl(e,t))}static compare(e,t){return ga(bl(e),bl(t))}get calendarId(){return Ve(J(this).calendar)}with(e,t=void 0){return vl(Ns(J(this),Cl(e),t))}add(e,t=void 0){let n=J(this);return vl(P(fi(0,n.calendar,n,$(e),t),n.calendar))}subtract(e,t=void 0){let n=J(this);return vl(P(fi(1,n.calendar,n,$(e),t),n.calendar))}until(e,t=void 0){let n=J(this),r=bl(e);return Z(Ai(0,Ci(n.calendar,r.calendar),n,r,t))}since(e,t=void 0){let n=J(this),r=bl(e);return Z(Ai(1,Ci(n.calendar,r.calendar),n,r,t))}equals(e){return Sa(J(this),bl(e))}toPlainDate(e){return Bl(Gs(J(this).calendar,this,e))}toLocaleString(e=void 0,t={}){let n=J(this),r=new V(e,Qs(vc(t)));return ec(r,n,1),r.format(qt(n))}toString(e=void 0){return io(J(this),e)}toJSON(){return io(J(this))}valueOf(){return Rc()}},J,zc,Hc);function vl(e){return xl(Object.create(_l.prototype),e)}function J(e){return yl(e)||Lc()}function yl(e){return gl.get(e)}function bl(e,t){if(g(e)){let n=yl(e);return n?(M(t),n):Uo(Wl(e),e,t)}let n=Qo(e,Jc);return M(t),n}function xl(e,t){return gl.set(e,t),Ic(e),e}function Sl(e){if(!g(e))return;let t=al(e);return t?[Mc,t]:(t=$c(e),t?[jc,t]:(t=Fl(e),t?[kc,t]:(t=Vl(e),t?[Oc,t]:(t=Ol(e),t?[Ac,t]:(t=yl(e),t?[Ec,t]:(t=pl(e),t?[Dc,t]:(t=Yl(e),t?[Nc,t]:void 0)))))))}function Cl(e){return(Sl(e)||e.calendar!==void 0||e.timeZone!==void 0)&&v(`Invalid bag`),e}const wl=/*@__PURE__*/ new WeakMap,Tl=/*@__PURE__*/ Pc(Ac,class{constructor(e=0,t=0,n=0,r=0,i=0,a=0){let o=Pt(ge(s,{hour:e,minute:t,second:n,millisecond:r,microsecond:i,nanosecond:a}));jl(this,Pr(o))}static from(e,t=void 0){return El(kl(e,t))}static compare(e,t){return _a(kl(e),kl(t))}with(e,t=void 0){return El(Fs(Dl(this),Cl(e),t))}add(e){return El(vi(Dl(this),$(e))[0])}subtract(e){return El(vi(Dl(this),L($(e)))[0])}until(e,t=void 0){return Z(Mi(0,Dl(this),kl(e),t))}since(e,t=void 0){return Z(Mi(1,Dl(this),kl(e),t))}round(e){let t=Dl(this),[n,r,i]=br(e,5);return El(qr(t,Yr(n,r),i)[0])}equals(e){return wa(Dl(this),kl(e))}toLocaleString(e=void 0,t={}){let n=Dl(this);return new V(e,Qs(_c(t))).format(Lt(n))}toString(e=void 0){return so(Dl(this),e)}toJSON(){return so(Dl(this))}valueOf(){return Rc()}},Dl,ot);function El(e){return jl(Object.create(Tl.prototype),e)}function Dl(e){return Ol(e)||Lc()}function Ol(e){return wl.get(e)}function kl(e,t){if(g(e)){let n=Ol(e);if(n)return M(t),n;let r=Fl(e);if(r)return M(t),Pr(r);let i=$c(e);return i?(M(t),Hs(i)):Go(e,t)}let n=ts(e);return M(t),n}function Al(e){return e===void 0?void 0:kl(e)}function jl(e,t){return wl.set(e,t),Ic(e),e}const Ml=/*@__PURE__*/ new WeakMap,Nl=/*@__PURE__*/ Pc(kc,class{constructor(e,t,n,r=0,i=0,a=0,o=0,c=0,l=0,u=void 0){let d=Dr(fn(ge(s,{year:e,month:t,day:n,hour:r,minute:i,second:a,millisecond:o,microsecond:c,nanosecond:l}))),f=Yc(u);Ll(this,Nr(d,f))}static from(e,t=void 0){return Pl(Il(e,t))}static compare(e,t){return ha(Il(e),Il(t))}get calendarId(){return Ve(Y(this).calendar)}with(e,t=void 0){return Pl(js(Y(this),Cl(e),t))}withCalendar(e){return Pl(Nr(Y(this),Kl(e)))}withPlainTime(e=void 0){let t=Y(this);return Pl(za(t,Al(e),t.calendar))}add(e,t=void 0){let n=Y(this);return Pl(Nr(hi(n.calendar,n,$(e),t),n.calendar))}subtract(e,t=void 0){let n=Y(this);return Pl(Nr(hi(n.calendar,n,L($(e)),t),n.calendar))}until(e,t=void 0){let n=Y(this),r=Il(e);return Z(Oi(0,Ci(n.calendar,r.calendar),n,r,t))}since(e,t=void 0){let n=Y(this),r=Il(e);return Z(Oi(1,Ci(n.calendar,r.calendar),n,r,t))}round(e){let t=Y(this),[n,r,i]=br(e);return Pl(Nr(Kr(t,Yr(n,r),i),t.calendar))}equals(e){return ba(Y(this),Il(e))}toZonedDateTime(e,t=void 0){return W(Us(Y(this),H(K(e)),t))}toPlainDate(){let e=Y(this);return Bl(P(e,e.calendar))}toPlainTime(){return El(Pr(Y(this)))}toLocaleString(e=void 0,t={}){let n=Y(this),r=new V(e,Qs(hc(t)));return ec(r,n),r.format(Gt(n))}toString(e=void 0){return no(Y(this),e)}toJSON(){return no(Y(this))}valueOf(){return Rc()}},Y,Bc,Uc,ot);function Pl(e){return Ll(Object.create(Nl.prototype),e)}function Y(e){return Fl(e)||Lc()}function Fl(e){return Ml.get(e)}function Il(e,t){if(g(e)){let n=Fl(e);if(n)return M(t),n;let r=Vl(e);if(r)return M(t),Nr(j(r,Nt),r.calendar);let i=$c(e);return i?(M(t),Bs(i)):Vo(Wl(e),e,t)}let n=Xo(e,Jc);return M(t),n}function Ll(e,t){return Ml.set(e,t),Ic(e),e}const Rl=/*@__PURE__*/ new WeakMap,zl=/*@__PURE__*/ Pc(Oc,class{constructor(e,t,n,r=void 0){let i=N(pn(ge(s,{year:e,month:t,day:n}))),a=Yc(r);Ul(this,P(i,a))}static from(e,t=void 0){return Bl(Hl(e,t))}static compare(e,t){return ga(Hl(e),Hl(t))}get calendarId(){return Ve(X(this).calendar)}with(e,t=void 0){return Bl(Ms(X(this),Cl(e),t))}withCalendar(e){return Bl(P(X(this),Kl(e)))}add(e,t=void 0){let n=X(this);return Bl(P(gi(n.calendar,n,$(e),t),n.calendar))}subtract(e,t=void 0){let n=X(this);return Bl(P(gi(n.calendar,n,L($(e)),t),n.calendar))}until(e,t=void 0){let n=X(this),r=Hl(e);return Z(ki(0,Ci(n.calendar,r.calendar),n,r,t))}since(e,t=void 0){let n=X(this),r=Hl(e);return Z(ki(1,Ci(n.calendar,r.calendar),n,r,t))}equals(e){return xa(X(this),Hl(e))}toZonedDateTime(e){let t=g(e)?{timeZone:e.timeZone,plainTime:e.plainTime}:{timeZone:e};return W(Ws(K,kl,X(this),t))}toPlainDateTime(e=void 0){let t=X(this);return Pl(za(t,Al(e),t.calendar))}toPlainYearMonth(){return vl(Js(X(this).calendar,this))}toPlainMonthDay(){return dl(qs(X(this).calendar,this))}toLocaleString(e=void 0,t={}){let n=X(this),r=new V(e,Qs(gc(t)));return ec(r,n),r.format(qt(n))}toString(e=void 0){return ro(X(this),e)}toJSON(){return ro(X(this))}valueOf(){return Rc()}},X,Bc,Uc);function Bl(e){return Ul(Object.create(zl.prototype),e)}function X(e){return Vl(e)||Lc()}function Vl(e){return Rl.get(e)}function Hl(e,t){if(g(e)){let n=Vl(e);if(n)return M(t),n;let r=Fl(e);if(r)return M(t),P(r,r.calendar);let i=$c(e);return i?(M(t),Vs(i)):Ho(Wl(e),e,t)}let n=Zo(e,Jc);return M(t),n}function Ul(e,t){return Rl.set(e,t),Ic(e),e}function Wl(e){let t=Gl(e);return t===void 0?void 0:t}function Gl(e){let{calendar:t}=e;if(t!==void 0)return Kl(t)}function Kl(e){if(g(e)){let t=Vl(e)||Fl(e)||$c(e)||pl(e)||yl(e);return t||v(re(e)),t.calendar}return(e=>Jc(rs(A(e))))(e)}const ql=/*@__PURE__*/ new WeakMap,Jl=/*@__PURE__*/ Pc(Nc,class{constructor(e=0,t=0,n=0,r=0,i=0,a=0,o=0,s=0,c=0,l=0){let u=ra(ge(Un,{years:e,months:t,weeks:n,days:r,hours:i,minutes:a,seconds:o,milliseconds:s,microseconds:c,nanoseconds:l}));Zl(this,F(u))}static from(e){return Z($(e))}static compare(e,t,n=void 0){return ma(Xl,$(e),$(t),n)}get sign(){return Q(this).sign}get blank(){return!Q(this).sign}with(e){return Z(Is(Q(this),e))}negated(){return Z(ta(Q(this)))}abs(){return Z(ea(Q(this)))}add(e,t=void 0){return Z(Zi(Xl,0,Q(this),$(e),t))}subtract(e,t=void 0){return Z(Zi(Xl,1,Q(this),$(e),t))}round(e){return Z($i(Xl,Q(this),e))}total(e){return Lr(Xl,Q(this),e)}toLocaleString(e=void 0,t){let n=Q(this);return Intl.DurationFormat?new Intl.DurationFormat(e,t).format(n):co(n,t)}toString(e=void 0){return co(Q(this),e)}toJSON(){return co(Q(this))}valueOf(){return Rc()}},Q,kn);function Z(e){return Zl(Object.create(Jl.prototype),e)}function Q(e){return Yl(e)||Lc()}function Yl(e){return ql.get(e)}function $(e){return g(e)?Yl(e)||Ko(e):ns(e)}function Xl(e){if(e!==void 0){if(g(e)){let t=$c(e);if(t)return t;let n=Vl(e);if(n)return n;let r=Fl(e);return r?P(r,r.calendar):zo(K,Wl(e),e)}return Jo(e,Jc)}}function Zl(e,t){return ql.set(e,t),Ic(e),e}const Ql=/*@__PURE__*/ Object.defineProperties({},{...he(`Temporal.Now`),...me({timeZoneId(){return Cc()},instant(){return il(jr(Sc()))},zonedDateTimeISO(e=Cc()){let t=H(K(e));return W(Mr(Sc(),t))},plainDateTimeISO(e=Cc()){return Pl(Nr(xc(H(K(e)))))},plainDateISO(e=Cc()){return Bl(P(xc(H(K(e)))))},plainTimeISO(e=Cc()){return El(Pr(xc(H(K(e)))))}})}),$l=/*@__PURE__*/ Object.defineProperties({},{...he(`Temporal`),...me({PlainYearMonth:_l,PlainMonthDay:ul,PlainDate:zl,PlainTime:Tl,PlainDateTime:Nl,ZonedDateTime:Zc,Instant:rl,Duration:Jl,Now:Ql})}),eu=/*@__PURE__*/ Gc(Sl);function tu(){Object.defineProperties(globalThis,me({Temporal:$l})),Object.defineProperties(Intl,me({DateTimeFormat:eu})),Object.defineProperties(Date.prototype,me({toTemporalInstant:sl}))}function nu(){Tc||tu()}nu();
@@ -1 +1 @@
1
- function e(){return typeof HTMLButtonElement<`u`&&`command`in HTMLButtonElement.prototype&&`source`in((globalThis.CommandEvent||{}).prototype||{})}function t(){document.addEventListener(`invoke`,e=>{e.type==`invoke`&&e.isTrusted&&(e.stopImmediatePropagation(),e.preventDefault())},!0),document.addEventListener(`command`,e=>{e.type==`command`&&e.isTrusted&&(e.stopImmediatePropagation(),e.preventDefault())},!0);function e(e,t,n=!0){Object.defineProperty(e,t,{...Object.getOwnPropertyDescriptor(e,t),enumerable:n})}function t(e){return e&&typeof e.getRootNode==`function`?e.getRootNode():e&&e.parentNode?t(e.parentNode):e}let n=new WeakMap,r=new WeakMap;class i extends Event{constructor(e,t={}){super(e,t);let{source:i,command:a}=t;if(i!=null&&!(i instanceof Element))throw TypeError(`source must be an element`);n.set(this,i||null),r.set(this,a===void 0?``:String(a))}get[Symbol.toStringTag](){return`CommandEvent`}get source(){if(!n.has(this))throw TypeError(`illegal invocation`);let e=n.get(this);if(!(e instanceof Element))return null;let r=t(e);return r===t(this.target||document)?e:r.host}get command(){if(!r.has(this))throw TypeError(`illegal invocation`);return r.get(this)}}e(i.prototype,`source`),e(i.prototype,`command`);let a=new WeakMap;function o(e){Object.defineProperties(e.prototype,{commandForElement:{enumerable:!0,configurable:!0,set(e){if(e===null)this.removeAttribute(`commandfor`),a.delete(this);else if(e instanceof Element){this.setAttribute(`commandfor`,``);let n=t(e);t(this)===n||n===this.ownerDocument?a.set(this,e):a.delete(this)}else throw TypeError(`commandForElement must be an element or null`)},get(){if(this.localName!==`button`||this.disabled)return null;if(this.form&&this.getAttribute(`type`)!==`button`)return console.warn("Element with `commandFor` is a form participant. It should explicitly set `type=button` in order for `commandFor` to work"),null;let e=a.get(this);if(e)return e.isConnected?e:(a.delete(this),null);let n=t(this),r=this.getAttribute(`commandfor`);return(n instanceof Document||n instanceof ShadowRoot)&&r&&n.getElementById(r)||null}},command:{enumerable:!0,configurable:!0,get(){let e=this.getAttribute(`command`)||``;if(e.startsWith(`--`))return e;let t=e.toLowerCase();switch(t){case`show-modal`:case`request-close`:case`close`:case`toggle-popover`:case`hide-popover`:case`show-popover`:return t}return``},set(e){this.setAttribute(`command`,e)}}})}let s=new WeakMap;Object.defineProperties(HTMLElement.prototype,{oncommand:{enumerable:!0,configurable:!0,get(){return l.takeRecords(),s.get(this)||null},set(e){let t=s.get(this)||null;t&&this.removeEventListener(`command`,t),s.set(this,typeof e==`object`||typeof e==`function`?e:null),typeof e==`function`&&this.addEventListener(`command`,e)}}});function c(e){for(let t of e)t.oncommand=Function(`event`,t.getAttribute(`oncommand`))}let l=new MutationObserver(e=>{for(let t of e){let{target:e}=t;t.type===`childList`?c(e.querySelectorAll(`[oncommand]`)):c([e])}});l.observe(document,{subtree:!0,childList:!0,attributeFilter:[`oncommand`]}),c(document.querySelectorAll(`[oncommand]`));let u=new WeakSet;function d(e){if(u.has(e)||(u.add(e),e.defaultPrevented)||e.type!==`click`)return;let t=e.composedPath().find(e=>e.matches?.(`button[commandfor], button[command]`));if(!t)return;if(t.form&&t.getAttribute(`type`)!==`button`)throw e.preventDefault(),Error("Element with `commandFor` is a form participant. It should explicitly set `type=button` in order for `commandFor` to work. In order for it to act as a Submit button, it must not have command or commandfor attributes");if(t.hasAttribute(`command`)!==t.hasAttribute(`commandfor`)){let e=t.hasAttribute(`command`)?`command`:`commandfor`,n=t.hasAttribute(`command`)?`commandfor`:`command`;throw Error(`Element with ${e} attribute must also have a ${n} attribute to function.`)}if(t.command!==`show-popover`&&t.command!==`hide-popover`&&t.command!==`toggle-popover`&&t.command!==`show-modal`&&t.command!==`request-close`&&t.command!==`close`&&!t.command.startsWith(`--`)){console.warn(`"${t.command}" is not a valid command value. Custom commands must begin with --`);return}let n=t.commandForElement;if(!n)return;let r=new i(`command`,{command:t.command,source:t,cancelable:!0});if(n.dispatchEvent(r),r.defaultPrevented)return;let a=r.command.toLowerCase();if(n.popover){let e=!n.matches(`:popover-open`);e&&(a===`toggle-popover`||a===`show-popover`)?n.showPopover({source:t}):!e&&a===`hide-popover`&&n.hidePopover()}else if(n.localName===`dialog`){let e=!n.hasAttribute(`open`);e&&a==`show-modal`?n.showModal():!e&&a==`close`?n.close(t.value?t.value:void 0):!e&&a==`request-close`&&(HTMLDialogElement.prototype.requestClose||(HTMLDialogElement.prototype.requestClose=function(){let e=new Event(`cancel`,{cancelable:!0});this.dispatchEvent(e),e.defaultPrevented||this.close()}),n.requestClose(t.value?t.value:void 0))}}function f(e){e.addEventListener(`click`,d,!0)}function p(e,t){let n=e.prototype.attachShadow;e.prototype.attachShadow=function(e){let r=n.call(this,e);return t(r),r};let r=e.prototype.attachInternals;e.prototype.attachInternals=function(){let e=r.call(this);return e.shadowRoot&&t(e.shadowRoot),e}}o(HTMLButtonElement),p(HTMLElement,e=>{f(e),l.observe(e,{attributeFilter:[`oncommand`]}),c(e.querySelectorAll(`[oncommand]`))}),f(document),Object.assign(globalThis,{CommandEvent:i})}e()||t();
1
+ function e(){return typeof HTMLButtonElement<`u`&&`command`in HTMLButtonElement.prototype&&`source`in((globalThis.CommandEvent||{}).prototype||{})}function t(){document.addEventListener(`invoke`,e=>{e.type==`invoke`&&e.isTrusted&&(e.stopImmediatePropagation(),e.preventDefault())},!0),document.addEventListener(`command`,e=>{e.type==`command`&&e.isTrusted&&(e.stopImmediatePropagation(),e.preventDefault())},!0);function e(e,t,n=!0){Object.defineProperty(e,t,{...Object.getOwnPropertyDescriptor(e,t),enumerable:n})}function t(e){return e&&typeof e.getRootNode==`function`?e.getRootNode():e&&e.parentNode?t(e.parentNode):e}let n=/* @__PURE__ */ new WeakMap,r=/* @__PURE__ */ new WeakMap;class i extends Event{constructor(e,t={}){super(e,t);let{source:i,command:a}=t;if(i!=null&&!(i instanceof Element))throw TypeError(`source must be an element`);n.set(this,i||null),r.set(this,a===void 0?``:String(a))}get[Symbol.toStringTag](){return`CommandEvent`}get source(){if(!n.has(this))throw TypeError(`illegal invocation`);let e=n.get(this);if(!(e instanceof Element))return null;let r=t(e);return r===t(this.target||document)?e:r.host}get command(){if(!r.has(this))throw TypeError(`illegal invocation`);return r.get(this)}}e(i.prototype,`source`),e(i.prototype,`command`);let a=/* @__PURE__ */ new WeakMap;function o(e){Object.defineProperties(e.prototype,{commandForElement:{enumerable:!0,configurable:!0,set(e){if(e===null)this.removeAttribute(`commandfor`),a.delete(this);else if(e instanceof Element){this.setAttribute(`commandfor`,``);let n=t(e);t(this)===n||n===this.ownerDocument?a.set(this,e):a.delete(this)}else throw TypeError(`commandForElement must be an element or null`)},get(){if(this.localName!==`button`||this.disabled)return null;if(this.form&&this.getAttribute(`type`)!==`button`)return console.warn("Element with `commandFor` is a form participant. It should explicitly set `type=button` in order for `commandFor` to work"),null;let e=a.get(this);if(e)return e.isConnected?e:(a.delete(this),null);let n=t(this),r=this.getAttribute(`commandfor`);return(n instanceof Document||n instanceof ShadowRoot)&&r&&n.getElementById(r)||null}},command:{enumerable:!0,configurable:!0,get(){let e=this.getAttribute(`command`)||``;if(e.startsWith(`--`))return e;let t=e.toLowerCase();switch(t){case`show-modal`:case`request-close`:case`close`:case`toggle-popover`:case`hide-popover`:case`show-popover`:return t}return``},set(e){this.setAttribute(`command`,e)}}})}let s=/* @__PURE__ */ new WeakMap;Object.defineProperties(HTMLElement.prototype,{oncommand:{enumerable:!0,configurable:!0,get(){return l.takeRecords(),s.get(this)||null},set(e){let t=s.get(this)||null;t&&this.removeEventListener(`command`,t),s.set(this,typeof e==`object`||typeof e==`function`?e:null),typeof e==`function`&&this.addEventListener(`command`,e)}}});function c(e){for(let t of e)t.oncommand=Function(`event`,t.getAttribute(`oncommand`))}let l=new MutationObserver(e=>{for(let t of e){let{target:e}=t;t.type===`childList`?c(e.querySelectorAll(`[oncommand]`)):c([e])}});l.observe(document,{subtree:!0,childList:!0,attributeFilter:[`oncommand`]}),c(document.querySelectorAll(`[oncommand]`));let u=/* @__PURE__ */ new WeakSet;function d(e){if(u.has(e)||(u.add(e),e.defaultPrevented)||e.type!==`click`)return;let t=e.composedPath().find(e=>e.matches?.(`button[commandfor], button[command]`));if(!t)return;if(t.form&&t.getAttribute(`type`)!==`button`)throw e.preventDefault(),Error("Element with `commandFor` is a form participant. It should explicitly set `type=button` in order for `commandFor` to work. In order for it to act as a Submit button, it must not have command or commandfor attributes");if(t.hasAttribute(`command`)!==t.hasAttribute(`commandfor`)){let e=t.hasAttribute(`command`)?`command`:`commandfor`,n=t.hasAttribute(`command`)?`commandfor`:`command`;throw Error(`Element with ${e} attribute must also have a ${n} attribute to function.`)}if(t.command!==`show-popover`&&t.command!==`hide-popover`&&t.command!==`toggle-popover`&&t.command!==`show-modal`&&t.command!==`request-close`&&t.command!==`close`&&!t.command.startsWith(`--`)){console.warn(`"${t.command}" is not a valid command value. Custom commands must begin with --`);return}let n=t.commandForElement;if(!n)return;let r=new i(`command`,{command:t.command,source:t,cancelable:!0});if(n.dispatchEvent(r),r.defaultPrevented)return;let a=r.command.toLowerCase();if(n.popover){let e=!n.matches(`:popover-open`);e&&(a===`toggle-popover`||a===`show-popover`)?n.showPopover({source:t}):!e&&a===`hide-popover`&&n.hidePopover()}else if(n.localName===`dialog`){let e=!n.hasAttribute(`open`);e&&a==`show-modal`?n.showModal():!e&&a==`close`?n.close(t.value?t.value:void 0):!e&&a==`request-close`&&(HTMLDialogElement.prototype.requestClose||(HTMLDialogElement.prototype.requestClose=function(){let e=new Event(`cancel`,{cancelable:!0});this.dispatchEvent(e),e.defaultPrevented||this.close()}),n.requestClose(t.value?t.value:void 0))}}function f(e){e.addEventListener(`click`,d,!0)}function p(e,t){let n=e.prototype.attachShadow;e.prototype.attachShadow=function(e){let r=n.call(this,e);return t(r),r};let r=e.prototype.attachInternals;e.prototype.attachInternals=function(){let e=r.call(this);return e.shadowRoot&&t(e.shadowRoot),e}}o(HTMLButtonElement),p(HTMLElement,e=>{f(e),l.observe(e,{attributeFilter:[`oncommand`]}),c(e.querySelectorAll(`[oncommand]`))}),f(document),Object.assign(globalThis,{CommandEvent:i})}e()||t();
@@ -1,4 +1,4 @@
1
- var e=class extends Event{oldState;newState;constructor(e,t={}){let n=Object.assign({},t);delete n.oldState,delete n.newState,super(e,n),this.oldState=String(t.oldState||``),this.newState=String(t.newState||``)}},t=new WeakMap;function n(n,r,i){t.set(n,setTimeout(()=>{t.has(n)&&n.dispatchEvent(new e(`toggle`,{cancelable:!1,oldState:r,newState:i}))},0))}var r=globalThis.ShadowRoot||function(){},i=globalThis.HTMLDialogElement||function(){},a=new WeakMap,o=new WeakMap,s=new WeakMap,c=new WeakMap;function l(e){return c.get(e)||`hidden`}var u=new WeakMap;function d(e){return[...e].pop()}function f(e){let t=e.popoverTargetElement;if(!(t instanceof HTMLElement))return;let n=l(t);e.popoverTargetAction===`show`&&n===`showing`||e.popoverTargetAction===`hide`&&n===`hidden`||(n===`showing`?D(t,!0,!0):p(t,!1)&&(u.set(t,e),E(t)))}function p(e,t){return!(e.popover!==`auto`&&e.popover!==`manual`&&e.popover!==`hint`||!e.isConnected||t&&l(e)!==`showing`||!t&&l(e)!==`hidden`||e instanceof i&&e.hasAttribute(`open`)||document.fullscreenElement===e)}function m(e){if(!e)return 0;let t=o.get(document)||new Set,n=s.get(document)||new Set;return n.has(e)?[...n].indexOf(e)+t.size+1:t.has(e)?[...t].indexOf(e)+1:0}function h(e){let t=y(e),n=b(e);return m(t)>m(n)?t:n}function g(e){let t,n=s.get(e)||new Set,r=o.get(e)||new Set,i=n.size>0?n:r.size>0?r:null;return i?(t=d(i),t.isConnected?t:(i.delete(t),g(e))):null}function _(e){for(let t of e||[])if(!t.isConnected)e.delete(t);else return t;return null}function v(e){return typeof e.getRootNode==`function`?e.getRootNode():e.parentNode?v(e.parentNode):e}function y(e){for(;e;){if(e instanceof HTMLElement&&e.popover===`auto`&&c.get(e)===`showing`)return e;if(e=e instanceof Element&&e.assignedSlot||e.parentElement||v(e),e instanceof r&&(e=e.host),e instanceof Document)return}}function b(e){for(;e;){let t=e.popoverTargetElement;if(t instanceof HTMLElement)return t;if(e=e.parentElement||v(e),e instanceof r&&(e=e.host),e instanceof Document)return}}function x(e,t){let n=new Map,r=0;for(let e of t||[])n.set(e,r),r+=1;n.set(e,r),r+=1;let i=null;function a(t){if(!t)return;let r=!1,a=null;for(;!r;){if(a=y(t)||null,a===null||!n.has(a))return;(e.popover===`hint`||a.popover===`auto`)&&(r=!0),r||(t=a.parentElement)}let o=n.get(a)??null;(i===null||n.get(i)<o)&&(i=a)}return a(e.parentElement||v(e)),i}function S(e){return e.hidden||e instanceof r||(e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLOptGroupElement||e instanceof HTMLOptionElement||e instanceof HTMLFieldSetElement)&&e.disabled||e instanceof HTMLInputElement&&e.type===`hidden`||e instanceof HTMLAnchorElement&&e.href===``?!1:typeof e.tabIndex==`number`&&e.tabIndex!==-1}function C(e){if(e.shadowRoot&&e.shadowRoot.delegatesFocus!==!0)return null;let t=e;t.shadowRoot&&(t=t.shadowRoot);let n=t.querySelector(`[autofocus]`);if(n)return n;{let e=t.querySelectorAll(`slot`);for(let t of e){let e=t.assignedElements({flatten:!0});for(let t of e)if(t.hasAttribute(`autofocus`))return t;else if(n=t.querySelector(`[autofocus]`),n)return n}}let r=e.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_ELEMENT),i=r.currentNode;for(;i;){if(S(i))return i;i=r.nextNode()}}function w(e){var t;(t=C(e))==null||t.focus()}var T=new WeakMap;function E(t){if(!p(t,!1))return;let r=t.ownerDocument;if(!t.dispatchEvent(new e(`beforetoggle`,{cancelable:!0,oldState:`closed`,newState:`open`}))||!p(t,!1))return;let i=!1,l=t.popover,d=null,f=x(t,o.get(r)||new Set),m=x(t,s.get(r)||new Set);if(l===`auto`&&(k(s.get(r)||new Set,i,!0),j(f||r,i,!0),d=`auto`),l===`hint`&&(m?(j(m,i,!0),d=`hint`):(k(s.get(r)||new Set,i,!0),f?(j(f,i,!0),d=`auto`):d=`hint`)),l===`auto`||l===`hint`){if(l!==t.popover||!p(t,!1))return;g(r)||(i=!0),d===`auto`?(o.has(r)||o.set(r,new Set),o.get(r).add(t)):d===`hint`&&(s.has(r)||s.set(r,new Set),s.get(r).add(t))}T.delete(t);let h=r.activeElement;t.classList.add(`:popover-open`),c.set(t,`showing`),a.has(r)||a.set(r,new Set),a.get(r).add(t),F(u.get(t),!0),w(t),i&&h&&t.popover===`auto`&&T.set(t,h),n(t,`closed`,`open`)}function D(t,r=!1,i=!1){var l,f;if(!p(t,!0))return;let m=t.ownerDocument;if([`auto`,`hint`].includes(t.popover)&&(j(t,r,i),!p(t,!0)))return;let h=o.get(m)||new Set,g=h.has(t)&&d(h)===t;if(F(u.get(t),!1),u.delete(t),i&&(t.dispatchEvent(new e(`beforetoggle`,{oldState:`open`,newState:`closed`})),g&&d(h)!==t&&j(t,r,i),!p(t,!0)))return;(l=a.get(m))==null||l.delete(t),h.delete(t),(f=s.get(m))==null||f.delete(t),t.classList.remove(`:popover-open`),c.set(t,`hidden`),i&&n(t,`open`,`closed`);let _=T.get(t);_&&(T.delete(t),r&&_.focus())}function O(e,t=!1,n=!1){let r=g(e);for(;r;)D(r,t,n),r=g(e)}function k(e,t=!1,n=!1){let r=_(e);for(;r;)D(r,t,n),r=_(e)}function A(e,t,n,r){let i=!1,a=!1;for(;i||!a;){a=!0;let o=null,s=!1;for(let n of t)if(n===e)s=!0;else if(s){o=n;break}if(!o)return;for(;l(o)===`showing`&&t.size;)D(d(t),n,r);t.has(e)&&d(t)!==e&&(i=!0),i&&(r=!1)}}function j(e,t,n){let r=e.ownerDocument||e;if(e instanceof Document)return O(r,t,n);if(s.get(r)?.has(e)){A(e,s.get(r),t,n);return}k(s.get(r)||new Set,t,n),o.get(r)?.has(e)&&A(e,o.get(r),t,n)}var M=new WeakMap;function N(e){if(!e.isTrusted)return;let t=e.composedPath()[0];if(!t)return;let n=t.ownerDocument;if(!g(n))return;let r=h(t);if(r&&e.type===`pointerdown`)M.set(n,r);else if(e.type===`pointerup`){let e=M.get(n)===r;M.delete(n),e&&j(r||n,!1,!0)}}var P=new WeakMap;function F(e,t=!1){if(!e)return;P.has(e)||P.set(e,e.getAttribute(`aria-expanded`));let n=e.popoverTargetElement;if(n instanceof HTMLElement&&n.popover===`auto`)e.setAttribute(`aria-expanded`,String(t));else{let t=P.get(e);t?e.setAttribute(`aria-expanded`,t):e.removeAttribute(`aria-expanded`)}}var I=globalThis.ShadowRoot||function(){},L=`popover-polyfill`;function R(){return typeof HTMLElement<`u`&&typeof HTMLElement.prototype==`object`&&`popover`in HTMLElement.prototype}function z(e,t,n){let r=e[t];Object.defineProperty(e,t,{value(e){return r.call(this,n(e))}})}var B=/(^|[^\\]):popover-open\b/g;function V(){return typeof globalThis.CSSLayerBlockRule==`function`}function H(e){let t=V(),n=CSS.escape(e??window.POPOVER_POLYFILL_OPTIONS?.layerName??L);return`
1
+ var e=class extends Event{oldState;newState;constructor(e,t={}){let n=Object.assign({},t);delete n.oldState,delete n.newState,super(e,n),this.oldState=String(t.oldState||``),this.newState=String(t.newState||``)}},t=/* @__PURE__ */ new WeakMap;function n(n,r,i){t.set(n,setTimeout(()=>{t.has(n)&&n.dispatchEvent(new e(`toggle`,{cancelable:!1,oldState:r,newState:i}))},0))}var r=globalThis.ShadowRoot||function(){},i=globalThis.HTMLDialogElement||function(){},a=/* @__PURE__ */ new WeakMap,o=/* @__PURE__ */ new WeakMap,s=/* @__PURE__ */ new WeakMap,c=/* @__PURE__ */ new WeakMap;function l(e){return c.get(e)||`hidden`}var u=/* @__PURE__ */ new WeakMap;function d(e){return[...e].pop()}function f(e){let t=e.popoverTargetElement;if(!(t instanceof HTMLElement))return;let n=l(t);(e.popoverTargetAction!==`show`||n!==`showing`)&&(e.popoverTargetAction!==`hide`||n!==`hidden`)&&(n===`showing`?D(t,!0,!0):p(t,!1)&&(u.set(t,e),E(t)))}function p(e,t){return!(e.popover!==`auto`&&e.popover!==`manual`&&e.popover!==`hint`||!e.isConnected||t&&l(e)!==`showing`||!t&&l(e)!==`hidden`||e instanceof i&&e.hasAttribute(`open`)||document.fullscreenElement===e)}function m(e){if(!e)return 0;let t=o.get(document)||/* @__PURE__ */ new Set,n=s.get(document)||/* @__PURE__ */ new Set;return n.has(e)?[...n].indexOf(e)+t.size+1:t.has(e)?[...t].indexOf(e)+1:0}function h(e){let t=y(e),n=b(e);return m(t)>m(n)?t:n}function g(e){let t,n=s.get(e)||/* @__PURE__ */ new Set,r=o.get(e)||/* @__PURE__ */ new Set,i=n.size>0?n:r.size>0?r:null;return i?(t=d(i),t.isConnected?t:(i.delete(t),g(e))):null}function _(e){for(let t of e||[])if(!t.isConnected)e.delete(t);else return t;return null}function v(e){return typeof e.getRootNode==`function`?e.getRootNode():e.parentNode?v(e.parentNode):e}function y(e){for(;e;){if(e instanceof HTMLElement&&e.popover===`auto`&&c.get(e)===`showing`)return e;if(e=e instanceof Element&&e.assignedSlot||e.parentElement||v(e),e instanceof r&&(e=e.host),e instanceof Document)return}}function b(e){for(;e;){let t=e.popoverTargetElement;if(t instanceof HTMLElement)return t;if(e=e.parentElement||v(e),e instanceof r&&(e=e.host),e instanceof Document)return}}function x(e,t){let n=/* @__PURE__ */ new Map,r=0;for(let e of t||[])n.set(e,r),r+=1;n.set(e,r),r+=1;let i=null;function a(t){if(!t)return;let r=!1,a=null;for(;!r;){if(a=y(t)||null,a===null||!n.has(a))return;(e.popover===`hint`||a.popover===`auto`)&&(r=!0),r||(t=a.parentElement)}let o=n.get(a)??null;(i===null||n.get(i)<o)&&(i=a)}return a(e.parentElement||v(e)),i}function S(e){return e.hidden||e instanceof r||(e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLOptGroupElement||e instanceof HTMLOptionElement||e instanceof HTMLFieldSetElement)&&e.disabled||e instanceof HTMLInputElement&&e.type===`hidden`||e instanceof HTMLAnchorElement&&e.href===``?!1:typeof e.tabIndex==`number`&&e.tabIndex!==-1}function C(e){if(e.shadowRoot&&e.shadowRoot.delegatesFocus!==!0)return null;let t=e;t.shadowRoot&&(t=t.shadowRoot);let n=t.querySelector(`[autofocus]`);if(n)return n;{let e=t.querySelectorAll(`slot`);for(let t of e){let e=t.assignedElements({flatten:!0});for(let t of e)if(t.hasAttribute(`autofocus`))return t;else if(n=t.querySelector(`[autofocus]`),n)return n}}let r=e.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_ELEMENT),i=r.currentNode;for(;i;){if(S(i))return i;i=r.nextNode()}}function w(e){var t;(t=C(e))==null||t.focus()}var T=/* @__PURE__ */ new WeakMap;function E(t){if(!p(t,!1))return;let r=t.ownerDocument;if(!t.dispatchEvent(new e(`beforetoggle`,{cancelable:!0,oldState:`closed`,newState:`open`}))||!p(t,!1))return;let i=!1,l=t.popover,d=null,f=x(t,o.get(r)||/* @__PURE__ */ new Set),m=x(t,s.get(r)||/* @__PURE__ */ new Set);if(l===`auto`&&(k(s.get(r)||/* @__PURE__ */ new Set,i,!0),j(f||r,i,!0),d=`auto`),l===`hint`&&(m?(j(m,i,!0),d=`hint`):(k(s.get(r)||/* @__PURE__ */ new Set,i,!0),f?(j(f,i,!0),d=`auto`):d=`hint`)),l===`auto`||l===`hint`){if(l!==t.popover||!p(t,!1))return;g(r)||(i=!0),d===`auto`?(o.has(r)||o.set(r,/* @__PURE__ */ new Set),o.get(r).add(t)):d===`hint`&&(s.has(r)||s.set(r,/* @__PURE__ */ new Set),s.get(r).add(t))}T.delete(t);let h=r.activeElement;t.classList.add(`:popover-open`),c.set(t,`showing`),a.has(r)||a.set(r,/* @__PURE__ */ new Set),a.get(r).add(t),F(u.get(t),!0),w(t),i&&h&&t.popover===`auto`&&T.set(t,h),n(t,`closed`,`open`)}function D(t,r=!1,i=!1){var l,f;if(!p(t,!0))return;let m=t.ownerDocument;if([`auto`,`hint`].includes(t.popover)&&(j(t,r,i),!p(t,!0)))return;let h=o.get(m)||/* @__PURE__ */ new Set,g=h.has(t)&&d(h)===t;if(F(u.get(t),!1),u.delete(t),i&&(t.dispatchEvent(new e(`beforetoggle`,{oldState:`open`,newState:`closed`})),g&&d(h)!==t&&j(t,r,i),!p(t,!0)))return;(l=a.get(m))==null||l.delete(t),h.delete(t),(f=s.get(m))==null||f.delete(t),t.classList.remove(`:popover-open`),c.set(t,`hidden`),i&&n(t,`open`,`closed`);let _=T.get(t);_&&(T.delete(t),r&&_.focus())}function O(e,t=!1,n=!1){let r=g(e);for(;r;)D(r,t,n),r=g(e)}function k(e,t=!1,n=!1){let r=_(e);for(;r;)D(r,t,n),r=_(e)}function A(e,t,n,r){let i=!1,a=!1;for(;i||!a;){a=!0;let o=null,s=!1;for(let n of t)if(n===e)s=!0;else if(s){o=n;break}if(!o)return;for(;l(o)===`showing`&&t.size;)D(d(t),n,r);t.has(e)&&d(t)!==e&&(i=!0),i&&(r=!1)}}function j(e,t,n){let r=e.ownerDocument||e;if(e instanceof Document)return O(r,t,n);if(s.get(r)?.has(e)){A(e,s.get(r),t,n);return}k(s.get(r)||/* @__PURE__ */ new Set,t,n),o.get(r)?.has(e)&&A(e,o.get(r),t,n)}var M=/* @__PURE__ */ new WeakMap;function N(e){if(!e.isTrusted)return;let t=e.composedPath()[0];if(!t)return;let n=t.ownerDocument;if(!g(n))return;let r=h(t);if(r&&e.type===`pointerdown`)M.set(n,r);else if(e.type===`pointerup`){let e=M.get(n)===r;M.delete(n),e&&j(r||n,!1,!0)}}var P=/* @__PURE__ */ new WeakMap;function F(e,t=!1){if(!e)return;P.has(e)||P.set(e,e.getAttribute(`aria-expanded`));let n=e.popoverTargetElement;if(n instanceof HTMLElement&&n.popover===`auto`)e.setAttribute(`aria-expanded`,String(t));else{let t=P.get(e);t?e.setAttribute(`aria-expanded`,t):e.removeAttribute(`aria-expanded`)}}var I=globalThis.ShadowRoot||function(){},L=`popover-polyfill`;function R(){return typeof HTMLElement<`u`&&typeof HTMLElement.prototype==`object`&&`popover`in HTMLElement.prototype}function z(e,t,n){let r=e[t];Object.defineProperty(e,t,{value(e){return r.call(this,n(e))}})}var B=/(^|[^\\]):popover-open\b/g;function V(){return typeof globalThis.CSSLayerBlockRule==`function`}function H(e){let t=V(),n=CSS.escape(e??window.POPOVER_POLYFILL_OPTIONS?.layerName??L);return`
2
2
  ${t?`@layer ${n} {`:``}
3
3
  :where([popover]) {
4
4
  position: fixed;
@@ -60,4 +60,4 @@ ${t?`@layer ${n} {`:``}
60
60
  }
61
61
  }
62
62
  ${t?`}`:``}
63
- `}var U=null;function W(e,t){let n=H(t);if(U===null)try{U=new CSSStyleSheet,U.replaceSync(n)}catch{U=!1}if(U===!1){let t=document.createElement(`style`);t.textContent=n,e instanceof Document?e.head.prepend(t):e.prepend(t)}else e.adoptedStyleSheets=[U,...e.adoptedStyleSheets]}function G(t){if(typeof window>`u`)return;let n=t?.layerName;window.ToggleEvent=window.ToggleEvent||e;function r(e){return e?.includes(`:popover-open`)&&(e=e.replace(B,`$1.\\:popover-open`)),e}z(Document.prototype,`querySelector`,r),z(Document.prototype,`querySelectorAll`,r),z(Element.prototype,`querySelector`,r),z(Element.prototype,`querySelectorAll`,r),z(Element.prototype,`matches`,r),z(Element.prototype,`closest`,r),z(DocumentFragment.prototype,`querySelectorAll`,r),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute(`popover`))return null;let e=(this.getAttribute(`popover`)||``).toLowerCase();return e===``||e==`auto`?`auto`:e==`hint`?`hint`:`manual`},set(e){e===null?this.removeAttribute(`popover`):this.setAttribute(`popover`,e)}},showPopover:{enumerable:!0,configurable:!0,value(e={}){E(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){D(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(e={}){return typeof e==`boolean`&&(e={force:e}),c.get(this)===`showing`&&e.force===void 0||e.force===!1?D(this,!0,!0):(e.force===void 0||e.force===!0)&&E(this),c.get(this)===`showing`}}});let i=Element.prototype.attachShadow;i&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(e){let t=i.call(this,e);return W(t,n),t}}});let a=HTMLElement.prototype.attachInternals;a&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){let e=a.call(this);return e.shadowRoot&&W(e.shadowRoot,n),e}}});let o=new WeakMap;function s(e){Object.defineProperties(e.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(e){if(e===null)this.removeAttribute(`popovertarget`),o.delete(this);else if(e instanceof Element)this.setAttribute(`popovertarget`,``),o.set(this,e);else throw TypeError(`popoverTargetElement must be an element or null`)},get(){if(this.localName!==`button`&&this.localName!==`input`||this.localName===`input`&&this.type!==`reset`&&this.type!==`image`&&this.type!==`button`||this.disabled||this.form&&this.type===`submit`)return null;let e=o.get(this);if(e&&e.isConnected)return e;if(e&&!e.isConnected)return o.delete(this),null;let t=v(this),n=this.getAttribute(`popovertarget`);return(t instanceof Document||t instanceof I)&&n&&t.getElementById(n)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){let e=(this.getAttribute(`popovertargetaction`)||``).toLowerCase();return e===`show`||e===`hide`?e:`toggle`},set(e){this.setAttribute(`popovertargetaction`,e)}}})}s(HTMLButtonElement),s(HTMLInputElement);let l=e=>{if(e.defaultPrevented)return;let t=e.composedPath(),n=t[0];if(!(n instanceof Element)||n?.shadowRoot)return;let r=v(n);if(!(r instanceof I||r instanceof Document))return;let i=t.find(e=>e.matches?.call(e,`[popovertargetaction],[popovertarget]`));if(i){f(i),e.preventDefault();return}},u=e=>{let t=e.key,n=e.target;!e.defaultPrevented&&n&&(t===`Escape`||t===`Esc`)&&j(n.ownerDocument,!0,!0)};(e=>{e.addEventListener(`click`,l),e.addEventListener(`keydown`,u),e.addEventListener(`pointerdown`,N),e.addEventListener(`pointerup`,N)})(document),W(document,n)}R()||G();
63
+ `}var U=null;function W(e,t){let n=H(t);if(U===null)try{U=new CSSStyleSheet,U.replaceSync(n)}catch{U=!1}if(U===!1){let t=document.createElement(`style`);t.textContent=n,e instanceof Document?e.head.prepend(t):e.prepend(t)}else e.adoptedStyleSheets=[U,...e.adoptedStyleSheets]}function G(t){if(typeof window>`u`)return;let n=t?.layerName;window.ToggleEvent=window.ToggleEvent||e;function r(e){return e?.includes(`:popover-open`)&&(e=e.replace(B,`$1.\\:popover-open`)),e}z(Document.prototype,`querySelector`,r),z(Document.prototype,`querySelectorAll`,r),z(Element.prototype,`querySelector`,r),z(Element.prototype,`querySelectorAll`,r),z(Element.prototype,`matches`,r),z(Element.prototype,`closest`,r),z(DocumentFragment.prototype,`querySelectorAll`,r),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute(`popover`))return null;let e=(this.getAttribute(`popover`)||``).toLowerCase();return e===``||e==`auto`?`auto`:e==`hint`?`hint`:`manual`},set(e){e===null?this.removeAttribute(`popover`):this.setAttribute(`popover`,e)}},showPopover:{enumerable:!0,configurable:!0,value(e={}){E(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){D(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(e={}){return typeof e==`boolean`&&(e={force:e}),c.get(this)===`showing`&&e.force===void 0||e.force===!1?D(this,!0,!0):(e.force===void 0||e.force===!0)&&E(this),c.get(this)===`showing`}}});let i=Element.prototype.attachShadow;i&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(e){let t=i.call(this,e);return W(t,n),t}}});let a=HTMLElement.prototype.attachInternals;a&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){let e=a.call(this);return e.shadowRoot&&W(e.shadowRoot,n),e}}});let o=/* @__PURE__ */ new WeakMap;function s(e){Object.defineProperties(e.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(e){if(e===null)this.removeAttribute(`popovertarget`),o.delete(this);else if(e instanceof Element)this.setAttribute(`popovertarget`,``),o.set(this,e);else throw TypeError(`popoverTargetElement must be an element or null`)},get(){if(this.localName!==`button`&&this.localName!==`input`||this.localName===`input`&&this.type!==`reset`&&this.type!==`image`&&this.type!==`button`||this.disabled||this.form&&this.type===`submit`)return null;let e=o.get(this);if(e&&e.isConnected)return e;if(e&&!e.isConnected)return o.delete(this),null;let t=v(this),n=this.getAttribute(`popovertarget`);return(t instanceof Document||t instanceof I)&&n&&t.getElementById(n)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){let e=(this.getAttribute(`popovertargetaction`)||``).toLowerCase();return e===`show`||e===`hide`?e:`toggle`},set(e){this.setAttribute(`popovertargetaction`,e)}}})}s(HTMLButtonElement),s(HTMLInputElement);let l=e=>{if(e.defaultPrevented)return;let t=e.composedPath(),n=t[0];if(!(n instanceof Element)||n?.shadowRoot)return;let r=v(n);if(!(r instanceof I||r instanceof Document))return;let i=t.find(e=>e.matches?.call(e,`[popovertargetaction],[popovertarget]`));if(i){f(i),e.preventDefault();return}},u=e=>{let t=e.key,n=e.target;!e.defaultPrevented&&n&&(t===`Escape`||t===`Esc`)&&j(n.ownerDocument,!0,!0)};(e=>{e.addEventListener(`click`,l),e.addEventListener(`keydown`,u),e.addEventListener(`pointerdown`,N),e.addEventListener(`pointerup`,N)})(document),W(document,n)}R()||G();