@malloy-publisher/server 0.0.171 → 0.0.173

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,4 +1,4 @@
1
- import{V as vie}from"./index-DUmIwFQ_.js";function sJe(d2,h2){for(var sn=0;sn<h2.length;sn++){const ht=h2[sn];if(typeof ht!="string"&&!Array.isArray(ht)){for(const zs in ht)if(zs!=="default"&&!(zs in d2)){const pd=Object.getOwnPropertyDescriptor(ht,zs);pd&&Object.defineProperty(d2,zs,pd.get?pd:{enumerable:!0,get:()=>ht[zs]})}}}return Object.freeze(Object.defineProperty(d2,Symbol.toStringTag,{value:"Module"}))}var c2={exports:{}},lJe=c2.exports,bie;function uJe(){return bie||(bie=1,(function(d2,h2){(function(sn,ht){ht(h2)})(lJe,function(sn){class ht{constructor(){this.tagOptionExtractors={}}addExtractor(t,...n){for(const r in n)this.tagOptionExtractors[n[r]]=t}activates(t){return!1}isValidMatch(t){return!0}matches(t){return t.renderer===this.rendererName}parseTagParameters(t){const n={};for(const r in this.tagOptionExtractors){const i=t.tag(r);i&&this.tagOptionExtractors[r](n,i)}return n}}function zs(e){if(e.isArray())return e.values.map(t=>zs(t));if(e.isNumber()||e.isBoolean()||e.isString()||e.isNull())return e.value;if(e.isTime())return e.value.toISOString();if(e.isJSON())try{return JSON.parse(e.value)}catch{return e.value}else if(e.isRecord()){const t={};for(const n of e.columns)t[n.field.name]=zs(n);return t}return null}class pd{constructor(t){this.document=t}async render(t){const n=this.document.createElement("pre");return n.appendChild(this.document.createTextNode(JSON.stringify(zs(t),void 0,2))),n}}const qx=class extends ht{create(t,n,r,i,a){return new pd(t)}get rendererName(){return"json"}};qx.instance=new qx;let wie=qx;class _ie{constructor(t,n,r){this.document=t,this.options=n,this.tagged=r}}class p2 extends _ie{constructor(){super(...arguments),this.childRenderers={}}get defaultStylesForChildren(){return this.childrenStyleDefaults}static make(t,n,r,i,a){return new t(n,i,a)}}var pr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof vie<"u"?vie:typeof self<"u"?self:{};function kie(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Cie(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}var Aie=Cie;function Sie(e){return function(t){return e?.[t]}}var Eie=Sie,Mie=Eie,Die={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},$ie=Mie(Die),Fie=$ie,Tie=typeof pr=="object"&&pr&&pr.Object===Object&&pr,Oie=Tie,Nie=Oie,zie=typeof self=="object"&&self&&self.Object===Object&&self,Rie=Nie||zie||Function("return this")(),Pie=Rie,Bie=Pie,qie=Bie.Symbol,Lx=qie;function Lie(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var jie=Lie,Iie=Array.isArray,Uie=Iie,H$=Lx,Y$=Object.prototype,Vie=Y$.hasOwnProperty,Wie=Y$.toString,B1=H$?H$.toStringTag:void 0;function Hie(e){var t=Vie.call(e,B1),n=e[B1];try{e[B1]=void 0;var r=!0}catch{}var i=Wie.call(e);return r&&(t?e[B1]=n:delete e[B1]),i}var Yie=Hie,Gie=Object.prototype,Zie=Gie.toString;function Xie(e){return Zie.call(e)}var Jie=Xie,G$=Lx,Qie=Yie,Kie=Jie,eae="[object Null]",tae="[object Undefined]",Z$=G$?G$.toStringTag:void 0;function nae(e){return e==null?e===void 0?tae:eae:Z$&&Z$ in Object(e)?Qie(e):Kie(e)}var rae=nae;function iae(e){return e!=null&&typeof e=="object"}var aae=iae,oae=rae,sae=aae,lae="[object Symbol]";function uae(e){return typeof e=="symbol"||sae(e)&&oae(e)==lae}var cae=uae,X$=Lx,fae=jie,dae=Uie,hae=cae,J$=X$?X$.prototype:void 0,Q$=J$?J$.toString:void 0;function K$(e){if(typeof e=="string")return e;if(dae(e))return fae(e,K$)+"";if(hae(e))return Q$?Q$.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var pae=K$,mae=pae;function gae(e){return e==null?"":mae(e)}var jx=gae,yae=Fie,vae=jx,bae=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xae="\\u0300-\\u036f",wae="\\ufe20-\\ufe2f",_ae="\\u20d0-\\u20ff",kae=xae+wae+_ae,Cae="["+kae+"]",Aae=RegExp(Cae,"g");function Sae(e){return e=vae(e),e&&e.replace(bae,yae).replace(Aae,"")}var Eae=Sae,Mae=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Dae(e){return e.match(Mae)||[]}var $ae=Dae,Fae=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Tae(e){return Fae.test(e)}var Oae=Tae,eF="\\ud800-\\udfff",Nae="\\u0300-\\u036f",zae="\\ufe20-\\ufe2f",Rae="\\u20d0-\\u20ff",Pae=Nae+zae+Rae,tF="\\u2700-\\u27bf",nF="a-z\\xdf-\\xf6\\xf8-\\xff",Bae="\\xac\\xb1\\xd7\\xf7",qae="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Lae="\\u2000-\\u206f",jae=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rF="A-Z\\xc0-\\xd6\\xd8-\\xde",Iae="\\ufe0e\\ufe0f",iF=Bae+qae+Lae+jae,aF="['’]",oF="["+iF+"]",Uae="["+Pae+"]",sF="\\d+",Vae="["+tF+"]",lF="["+nF+"]",uF="[^"+eF+iF+sF+tF+nF+rF+"]",Wae="\\ud83c[\\udffb-\\udfff]",Hae="(?:"+Uae+"|"+Wae+")",Yae="[^"+eF+"]",cF="(?:\\ud83c[\\udde6-\\uddff]){2}",fF="[\\ud800-\\udbff][\\udc00-\\udfff]",md="["+rF+"]",Gae="\\u200d",dF="(?:"+lF+"|"+uF+")",Zae="(?:"+md+"|"+uF+")",hF="(?:"+aF+"(?:d|ll|m|re|s|t|ve))?",pF="(?:"+aF+"(?:D|LL|M|RE|S|T|VE))?",mF=Hae+"?",gF="["+Iae+"]?",Xae="(?:"+Gae+"(?:"+[Yae,cF,fF].join("|")+")"+gF+mF+")*",Jae="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Qae="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Kae=gF+mF+Xae,eoe="(?:"+[Vae,cF,fF].join("|")+")"+Kae,toe=RegExp([md+"?"+lF+"+"+hF+"(?="+[oF,md,"$"].join("|")+")",Zae+"+"+pF+"(?="+[oF,md+dF,"$"].join("|")+")",md+"?"+dF+"+"+hF,md+"+"+pF,Qae,Jae,sF,eoe].join("|"),"g");function noe(e){return e.match(toe)||[]}var roe=noe,ioe=$ae,aoe=Oae,ooe=jx,soe=roe;function loe(e,t,n){return e=ooe(e),t=n?void 0:t,t===void 0?aoe(e)?soe(e):ioe(e):e.match(t)||[]}var uoe=loe,coe=Aie,foe=Eae,doe=uoe,hoe="['’]",poe=RegExp(hoe,"g");function moe(e){return function(t){return coe(doe(foe(t).replace(poe,"")),e,"")}}var goe=moe;function yoe(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}var voe=yoe,boe=voe;function xoe(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:boe(e,t,n)}var woe=xoe,_oe="\\ud800-\\udfff",koe="\\u0300-\\u036f",Coe="\\ufe20-\\ufe2f",Aoe="\\u20d0-\\u20ff",Soe=koe+Coe+Aoe,Eoe="\\ufe0e\\ufe0f",Moe="\\u200d",Doe=RegExp("["+Moe+_oe+Soe+Eoe+"]");function $oe(e){return Doe.test(e)}var yF=$oe;function Foe(e){return e.split("")}var Toe=Foe,vF="\\ud800-\\udfff",Ooe="\\u0300-\\u036f",Noe="\\ufe20-\\ufe2f",zoe="\\u20d0-\\u20ff",Roe=Ooe+Noe+zoe,Poe="\\ufe0e\\ufe0f",Boe="["+vF+"]",Ix="["+Roe+"]",Ux="\\ud83c[\\udffb-\\udfff]",qoe="(?:"+Ix+"|"+Ux+")",bF="[^"+vF+"]",xF="(?:\\ud83c[\\udde6-\\uddff]){2}",wF="[\\ud800-\\udbff][\\udc00-\\udfff]",Loe="\\u200d",_F=qoe+"?",kF="["+Poe+"]?",joe="(?:"+Loe+"(?:"+[bF,xF,wF].join("|")+")"+kF+_F+")*",Ioe=kF+_F+joe,Uoe="(?:"+[bF+Ix+"?",Ix,xF,wF,Boe].join("|")+")",Voe=RegExp(Ux+"(?="+Ux+")|"+Uoe+Ioe,"g");function Woe(e){return e.match(Voe)||[]}var Hoe=Woe,Yoe=Toe,Goe=yF,Zoe=Hoe;function Xoe(e){return Goe(e)?Zoe(e):Yoe(e)}var Joe=Xoe,Qoe=woe,Koe=yF,ese=Joe,tse=jx;function nse(e){return function(t){t=tse(t);var n=Koe(t)?ese(t):void 0,r=n?n[0]:t.charAt(0),i=n?Qoe(n,1).join(""):t.slice(1);return r[e]()+i}}var rse=nse,ise=rse,ase=ise("toUpperCase"),ose=ase,sse=goe,lse=ose,use=sse(function(e,t,n){return e+(n?" ":"")+lse(t)}),cse=use;const fse=kie(cse);class pc extends Error{}class dse extends pc{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class hse extends pc{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class pse extends pc{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class gd extends pc{}class CF extends pc{constructor(t){super(`Invalid unit ${t}`)}}class mr extends pc{}class Zl extends pc{constructor(){super("Zone is an abstract class")}}const ye="numeric",Ta="short",Ti="long",m2={year:ye,month:ye,day:ye},AF={year:ye,month:Ta,day:ye},mse={year:ye,month:Ta,day:ye,weekday:Ta},SF={year:ye,month:Ti,day:ye},EF={year:ye,month:Ti,day:ye,weekday:Ti},MF={hour:ye,minute:ye},DF={hour:ye,minute:ye,second:ye},$F={hour:ye,minute:ye,second:ye,timeZoneName:Ta},FF={hour:ye,minute:ye,second:ye,timeZoneName:Ti},TF={hour:ye,minute:ye,hourCycle:"h23"},OF={hour:ye,minute:ye,second:ye,hourCycle:"h23"},NF={hour:ye,minute:ye,second:ye,hourCycle:"h23",timeZoneName:Ta},zF={hour:ye,minute:ye,second:ye,hourCycle:"h23",timeZoneName:Ti},RF={year:ye,month:ye,day:ye,hour:ye,minute:ye},PF={year:ye,month:ye,day:ye,hour:ye,minute:ye,second:ye},BF={year:ye,month:Ta,day:ye,hour:ye,minute:ye},qF={year:ye,month:Ta,day:ye,hour:ye,minute:ye,second:ye},gse={year:ye,month:Ta,day:ye,weekday:Ta,hour:ye,minute:ye},LF={year:ye,month:Ti,day:ye,hour:ye,minute:ye,timeZoneName:Ta},jF={year:ye,month:Ti,day:ye,hour:ye,minute:ye,second:ye,timeZoneName:Ta},IF={year:ye,month:Ti,day:ye,weekday:Ti,hour:ye,minute:ye,timeZoneName:Ti},UF={year:ye,month:Ti,day:ye,weekday:Ti,hour:ye,minute:ye,second:ye,timeZoneName:Ti};class q1{get type(){throw new Zl}get name(){throw new Zl}get ianaName(){return this.name}get isUniversal(){throw new Zl}offsetName(t,n){throw new Zl}formatOffset(t,n){throw new Zl}offset(t){throw new Zl}equals(t){throw new Zl}get isValid(){throw new Zl}}let Vx=null;class g2 extends q1{static get instance(){return Vx===null&&(Vx=new g2),Vx}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return mT(t,n,r)}formatOffset(t,n){return I1(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}const Wx=new Map;function yse(e){let t=Wx.get(e);return t===void 0&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),Wx.set(e,t)),t}const vse={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function bse(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,i,a,o,s,l,u,c]=r;return[o,i,a,s,l,u,c]}function xse(e,t){const n=e.formatToParts(t),r=[];for(let i=0;i<n.length;i++){const{type:a,value:o}=n[i],s=vse[a];a==="era"?r[s]=o:He(s)||(r[s]=parseInt(o,10))}return r}const Hx=new Map;class Rs extends q1{static create(t){let n=Hx.get(t);return n===void 0&&Hx.set(t,n=new Rs(t)),n}static resetCache(){Hx.clear(),Wx.clear()}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=Rs.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return mT(t,n,r,this.name)}formatOffset(t,n){return I1(this.offset(t),n)}offset(t){if(!this.valid)return NaN;const n=new Date(t);if(isNaN(n))return NaN;const r=yse(this.name);let[i,a,o,s,l,u,c]=r.formatToParts?xse(r,n):bse(r,n);s==="BC"&&(i=-Math.abs(i)+1);const f=_2({year:i,month:a,day:o,hour:l===24?0:l,minute:u,second:c,millisecond:0});let d=+n;const h=d%1e3;return d-=h>=0?h:1e3+h,(f-d)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let VF={};function wse(e,t={}){const n=JSON.stringify([e,t]);let r=VF[n];return r||(r=new Intl.ListFormat(e,t),VF[n]=r),r}const Yx=new Map;function Gx(e,t={}){const n=JSON.stringify([e,t]);let r=Yx.get(n);return r===void 0&&(r=new Intl.DateTimeFormat(e,t),Yx.set(n,r)),r}const Zx=new Map;function _se(e,t={}){const n=JSON.stringify([e,t]);let r=Zx.get(n);return r===void 0&&(r=new Intl.NumberFormat(e,t),Zx.set(n,r)),r}const Xx=new Map;function kse(e,t={}){const{base:n,...r}=t,i=JSON.stringify([e,r]);let a=Xx.get(i);return a===void 0&&(a=new Intl.RelativeTimeFormat(e,t),Xx.set(i,a)),a}let y2=null;function Cse(){return y2||(y2=new Intl.DateTimeFormat().resolvedOptions().locale,y2)}const Jx=new Map;function WF(e){let t=Jx.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),Jx.set(e,t)),t}const Qx=new Map;function Ase(e){let t=Qx.get(e);if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in t||(t={...HF,...t}),Qx.set(e,t)}return t}function Sse(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(n===-1)return[e];{let r,i;try{r=Gx(e).resolvedOptions(),i=e}catch{const s=e.substring(0,n);r=Gx(s).resolvedOptions(),i=s}const{numberingSystem:a,calendar:o}=r;return[i,a,o]}}function Ese(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function Mse(e){const t=[];for(let n=1;n<=12;n++){const r=Ye.utc(2009,n,1);t.push(e(r))}return t}function Dse(e){const t=[];for(let n=1;n<=7;n++){const r=Ye.utc(2016,11,13+n);t.push(e(r))}return t}function v2(e,t,n,r){const i=e.listingMode();return i==="error"?null:i==="en"?n(t):r(t)}function $se(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||WF(e.locale).numberingSystem==="latn"}class Fse{constructor(t,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:i,floor:a,...o}=r;if(!n||Object.keys(o).length>0){const s={useGrouping:!1,...r};r.padTo>0&&(s.minimumIntegerDigits=r.padTo),this.inf=_se(t,s)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):s6(t,3);return Sn(n,this.padTo)}}}class Tse{constructor(t,n,r){this.opts=r,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const o=-1*(t.offset/60),s=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;t.offset!==0&&Rs.create(s).valid?(i=s,this.dt=t):(i="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,i=t.zone.name):(i="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const a={...this.opts};a.timeZone=a.timeZone||i,this.dtf=Gx(n,a)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class Ose{constructor(t,n,r){this.opts={style:"long",...r},!n&&fT()&&(this.rtf=kse(t,r))}format(t,n){return this.rtf?this.rtf.format(t,n):tle(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}const HF={firstDay:1,minimalDays:4,weekend:[6,7]};class kt{static fromOpts(t){return kt.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,r,i,a=!1){const o=t||pn.defaultLocale,s=o||(a?"en-US":Cse()),l=n||pn.defaultNumberingSystem,u=r||pn.defaultOutputCalendar,c=a6(i)||pn.defaultWeekSettings;return new kt(s,l,u,c,o)}static resetCache(){y2=null,Yx.clear(),Zx.clear(),Xx.clear(),Jx.clear(),Qx.clear()}static fromObject({locale:t,numberingSystem:n,outputCalendar:r,weekSettings:i}={}){return kt.create(t,n,r,i)}constructor(t,n,r,i,a){const[o,s,l]=Sse(t);this.locale=o,this.numberingSystem=n||s||null,this.outputCalendar=r||l||null,this.weekSettings=i,this.intl=Ese(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=a,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=$se(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:kt.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,a6(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return v2(this,t,vT,()=>{const r=this.intl==="ja"||this.intl.startsWith("ja-");n&=!r;const i=n?{month:t,day:"numeric"}:{month:t},a=n?"format":"standalone";if(!this.monthsCache[a][t]){const o=r?s=>this.dtFormatter(s,i).format():s=>this.extract(s,i,"month");this.monthsCache[a][t]=Mse(o)}return this.monthsCache[a][t]})}weekdays(t,n=!1){return v2(this,t,wT,()=>{const r=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},i=n?"format":"standalone";return this.weekdaysCache[i][t]||(this.weekdaysCache[i][t]=Dse(a=>this.extract(a,r,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return v2(this,void 0,()=>_T,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ye.utc(2016,11,13,9),Ye.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return v2(this,t,kT,()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[Ye.utc(-40,1,1),Ye.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[t]})}extract(t,n,r){const i=this.dtFormatter(t,n),a=i.formatToParts(),o=a.find(s=>s.type.toLowerCase()===r);return o?o.value:null}numberFormatter(t={}){return new Fse(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new Tse(t,this.intl,n)}relFormatter(t={}){return new Ose(this.intl,this.isEnglish(),t)}listFormatter(t={}){return wse(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||WF(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:dT()?Ase(this.locale):HF}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let Kx=null;class Nr extends q1{static get utcInstance(){return Kx===null&&(Kx=new Nr(0)),Kx}static instance(t){return t===0?Nr.utcInstance:new Nr(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new Nr(k2(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${I1(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${I1(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return I1(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class Nse extends q1{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Xl(e,t){if(He(e)||e===null)return t;if(e instanceof q1)return e;if(Lse(e)){const n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?g2.instance:n==="utc"||n==="gmt"?Nr.utcInstance:Nr.parseSpecifier(n)||Rs.create(e)}else return Jl(e)?Nr.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new Nse(e)}const e6={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},YF={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},zse=e6.hanidec.replace(/[\[|\]]/g,"").split("");function Rse(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(e[n].search(e6.hanidec)!==-1)t+=zse.indexOf(e[n]);else for(const i in YF){const[a,o]=YF[i];r>=a&&r<=o&&(t+=r-a)}}return parseInt(t,10)}else return t}const t6=new Map;function Pse(){t6.clear()}function Oa({numberingSystem:e},t=""){const n=e||"latn";let r=t6.get(n);r===void 0&&(r=new Map,t6.set(n,r));let i=r.get(t);return i===void 0&&(i=new RegExp(`${e6[n]}${t}`),r.set(t,i)),i}let GF=()=>Date.now(),ZF="system",XF=null,JF=null,QF=null,KF=60,eT,tT=null;class pn{static get now(){return GF}static set now(t){GF=t}static set defaultZone(t){ZF=t}static get defaultZone(){return Xl(ZF,g2.instance)}static get defaultLocale(){return XF}static set defaultLocale(t){XF=t}static get defaultNumberingSystem(){return JF}static set defaultNumberingSystem(t){JF=t}static get defaultOutputCalendar(){return QF}static set defaultOutputCalendar(t){QF=t}static get defaultWeekSettings(){return tT}static set defaultWeekSettings(t){tT=a6(t)}static get twoDigitCutoffYear(){return KF}static set twoDigitCutoffYear(t){KF=t%100}static get throwOnInvalid(){return eT}static set throwOnInvalid(t){eT=t}static resetCaches(){kt.resetCache(),Rs.resetCache(),Ye.resetCache(),Pse()}}class Na{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const nT=[0,31,59,90,120,151,181,212,243,273,304,334],rT=[0,31,60,91,121,152,182,213,244,274,305,335];function Xi(e,t){return new Na("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function n6(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const i=r.getUTCDay();return i===0?7:i}function iT(e,t,n){return n+(L1(e)?rT:nT)[t-1]}function aT(e,t){const n=L1(e)?rT:nT,r=n.findIndex(a=>a<t),i=t-n[r];return{month:r+1,day:i}}function r6(e,t){return(e-t+7)%7+1}function b2(e,t=4,n=1){const{year:r,month:i,day:a}=e,o=iT(r,i,a),s=r6(n6(r,i,a),n);let l=Math.floor((o-s+14-t)/7),u;return l<1?(u=r-1,l=j1(u,t,n)):l>j1(r,t,n)?(u=r+1,l=1):u=r,{weekYear:u,weekNumber:l,weekday:s,...A2(e)}}function oT(e,t=4,n=1){const{weekYear:r,weekNumber:i,weekday:a}=e,o=r6(n6(r,1,t),n),s=vd(r);let l=i*7+a-o-7+t,u;l<1?(u=r-1,l+=vd(u)):l>s?(u=r+1,l-=vd(r)):u=r;const{month:c,day:f}=aT(u,l);return{year:u,month:c,day:f,...A2(e)}}function i6(e){const{year:t,month:n,day:r}=e,i=iT(t,n,r);return{year:t,ordinal:i,...A2(e)}}function sT(e){const{year:t,ordinal:n}=e,{month:r,day:i}=aT(t,n);return{year:t,month:r,day:i,...A2(e)}}function lT(e,t){if(!He(e.localWeekday)||!He(e.localWeekNumber)||!He(e.localWeekYear)){if(!He(e.weekday)||!He(e.weekNumber)||!He(e.weekYear))throw new gd("Cannot mix locale-based week fields with ISO-based week fields");return He(e.localWeekday)||(e.weekday=e.localWeekday),He(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),He(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Bse(e,t=4,n=1){const r=x2(e.weekYear),i=Ji(e.weekNumber,1,j1(e.weekYear,t,n)),a=Ji(e.weekday,1,7);return r?i?a?!1:Xi("weekday",e.weekday):Xi("week",e.weekNumber):Xi("weekYear",e.weekYear)}function qse(e){const t=x2(e.year),n=Ji(e.ordinal,1,vd(e.year));return t?n?!1:Xi("ordinal",e.ordinal):Xi("year",e.year)}function uT(e){const t=x2(e.year),n=Ji(e.month,1,12),r=Ji(e.day,1,w2(e.year,e.month));return t?n?r?!1:Xi("day",e.day):Xi("month",e.month):Xi("year",e.year)}function cT(e){const{hour:t,minute:n,second:r,millisecond:i}=e,a=Ji(t,0,23)||t===24&&n===0&&r===0&&i===0,o=Ji(n,0,59),s=Ji(r,0,59),l=Ji(i,0,999);return a?o?s?l?!1:Xi("millisecond",i):Xi("second",r):Xi("minute",n):Xi("hour",t)}function He(e){return typeof e>"u"}function Jl(e){return typeof e=="number"}function x2(e){return typeof e=="number"&&e%1===0}function Lse(e){return typeof e=="string"}function jse(e){return Object.prototype.toString.call(e)==="[object Date]"}function fT(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function dT(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Ise(e){return Array.isArray(e)?e:[e]}function hT(e,t,n){if(e.length!==0)return e.reduce((r,i)=>{const a=[t(i),i];return r&&n(r[0],a[0])===r[0]?r:a},null)[1]}function Use(e,t){return t.reduce((n,r)=>(n[r]=e[r],n),{})}function yd(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function a6(e){if(e==null)return null;if(typeof e!="object")throw new mr("Week settings must be an object");if(!Ji(e.firstDay,1,7)||!Ji(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!Ji(t,1,7)))throw new mr("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Ji(e,t,n){return x2(e)&&e>=t&&e<=n}function Vse(e,t){return e-t*Math.floor(e/t)}function Sn(e,t=2){const n=e<0;let r;return n?r="-"+(""+-e).padStart(t,"0"):r=(""+e).padStart(t,"0"),r}function Ql(e){if(!(He(e)||e===null||e===""))return parseInt(e,10)}function mc(e){if(!(He(e)||e===null||e===""))return parseFloat(e)}function o6(e){if(!(He(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function s6(e,t,n="round"){const r=10**t;switch(n){case"expand":return e>0?Math.ceil(e*r)/r:Math.floor(e*r)/r;case"trunc":return Math.trunc(e*r)/r;case"round":return Math.round(e*r)/r;case"floor":return Math.floor(e*r)/r;case"ceil":return Math.ceil(e*r)/r;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function L1(e){return e%4===0&&(e%100!==0||e%400===0)}function vd(e){return L1(e)?366:365}function w2(e,t){const n=Vse(t-1,12)+1,r=e+(t-n)/12;return n===2?L1(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function _2(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function pT(e,t,n){return-r6(n6(e,1,t),n)+t-1}function j1(e,t=4,n=1){const r=pT(e,t,n),i=pT(e+1,t,n);return(vd(e)-r+i)/7}function l6(e){return e>99?e:e>pn.twoDigitCutoffYear?1900+e:2e3+e}function mT(e,t,n,r=null){const i=new Date(e),a={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(a.timeZone=r);const o={timeZoneName:t,...a},s=new Intl.DateTimeFormat(n,o).formatToParts(i).find(l=>l.type.toLowerCase()==="timezonename");return s?s.value:null}function k2(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0,i=n<0||Object.is(n,-0)?-r:r;return n*60+i}function gT(e){const t=Number(e);if(typeof e=="boolean"||e===""||!Number.isFinite(t))throw new mr(`Invalid unit value ${e}`);return t}function C2(e,t){const n={};for(const r in e)if(yd(e,r)){const i=e[r];if(i==null)continue;n[t(r)]=gT(i)}return n}function I1(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${Sn(n,2)}:${Sn(r,2)}`;case"narrow":return`${i}${n}${r>0?`:${r}`:""}`;case"techie":return`${i}${Sn(n,2)}${Sn(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function A2(e){return Use(e,["hour","minute","second","millisecond"])}const Wse=["January","February","March","April","May","June","July","August","September","October","November","December"],yT=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Hse=["J","F","M","A","M","J","J","A","S","O","N","D"];function vT(e){switch(e){case"narrow":return[...Hse];case"short":return[...yT];case"long":return[...Wse];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const bT=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],xT=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Yse=["M","T","W","T","F","S","S"];function wT(e){switch(e){case"narrow":return[...Yse];case"short":return[...xT];case"long":return[...bT];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const _T=["AM","PM"],Gse=["Before Christ","Anno Domini"],Zse=["BC","AD"],Xse=["B","A"];function kT(e){switch(e){case"narrow":return[...Xse];case"short":return[...Zse];case"long":return[...Gse];default:return null}}function Jse(e){return _T[e.hour<12?0:1]}function Qse(e,t){return wT(t)[e.weekday-1]}function Kse(e,t){return vT(t)[e.month-1]}function ele(e,t){return kT(t)[e.year<0?0:1]}function tle(e,t,n="always",r=!1){const i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&a){const f=e==="days";switch(t){case 1:return f?"tomorrow":`next ${i[e][0]}`;case-1:return f?"yesterday":`last ${i[e][0]}`;case 0:return f?"today":`this ${i[e][0]}`}}const o=Object.is(t,-0)||t<0,s=Math.abs(t),l=s===1,u=i[e],c=r?l?u[1]:u[2]||u[1]:l?i[e][0]:e;return o?`${s} ${c} ago`:`in ${s} ${c}`}function CT(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const nle={D:m2,DD:AF,DDD:SF,DDDD:EF,t:MF,tt:DF,ttt:$F,tttt:FF,T:TF,TT:OF,TTT:NF,TTTT:zF,f:RF,ff:BF,fff:LF,ffff:IF,F:PF,FF:qF,FFF:jF,FFFF:UF};class gr{static create(t,n={}){return new gr(t,n)}static parseFormat(t){let n=null,r="",i=!1;const a=[];for(let o=0;o<t.length;o++){const s=t.charAt(o);s==="'"?((r.length>0||i)&&a.push({literal:i||/^\s+$/.test(r),val:r===""?"'":r}),n=null,r="",i=!i):i||s===n?r+=s:(r.length>0&&a.push({literal:/^\s+$/.test(r),val:r}),r=s,n=s)}return r.length>0&&a.push({literal:i||/^\s+$/.test(r),val:r}),a}static macroTokenToFormatOpts(t){return nle[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0,r=void 0){if(this.opts.forceSimple)return Sn(t,n);const i={...this.opts};return n>0&&(i.padTo=n),r&&(i.signDisplay=r),this.loc.numberFormatter(i).format(t)}formatDateTimeFromString(t,n){const r=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",a=(h,p)=>this.loc.extract(t,h,p),o=h=>t.isOffsetFixed&&t.offset===0&&h.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,h.format):"",s=()=>r?Jse(t):a({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(h,p)=>r?Kse(t,h):a(p?{month:h}:{month:h,day:"numeric"},"month"),u=(h,p)=>r?Qse(t,h):a(p?{weekday:h}:{weekday:h,month:"long",day:"numeric"},"weekday"),c=h=>{const p=gr.macroTokenToFormatOpts(h);return p?this.formatWithSystemDefault(t,p):h},f=h=>r?ele(t,h):a({era:h},"era"),d=h=>{switch(h){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return s();case"d":return i?a({day:"numeric"},"day"):this.num(t.day);case"dd":return i?a({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return i?a({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return i?a({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return i?a({month:"numeric"},"month"):this.num(t.month);case"MM":return i?a({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return i?a({year:"numeric"},"year"):this.num(t.year);case"yy":return i?a({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return i?a({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return i?a({year:"numeric"},"year"):this.num(t.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return c(h)}};return CT(gr.parseFormat(n),d)}formatDurationFromString(t,n){const r=this.opts.signMode==="negativeLargestOnly"?-1:1,i=c=>{switch(c[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},a=(c,f)=>d=>{const h=i(d);if(h){const p=f.isNegativeDuration&&h!==f.largestUnit?r:1;let m;return this.opts.signMode==="negativeLargestOnly"&&h!==f.largestUnit?m="never":this.opts.signMode==="all"?m="always":m="auto",this.num(c.get(h)*p,d.length,m)}else return d},o=gr.parseFormat(n),s=o.reduce((c,{literal:f,val:d})=>f?c:c.concat(d),[]),l=t.shiftTo(...s.map(i).filter(c=>c)),u={isNegativeDuration:l<0,largestUnit:Object.keys(l.values)[0]};return CT(o,a(l,u))}}const AT=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function bd(...e){const t=e.reduce((n,r)=>n+r.source,"");return RegExp(`^${t}$`)}function xd(...e){return t=>e.reduce(([n,r,i],a)=>{const[o,s,l]=a(t,i);return[{...n,...o},s||r,l]},[{},null,1]).slice(0,2)}function wd(e,...t){if(e==null)return[null,null];for(const[n,r]of t){const i=n.exec(e);if(i)return r(i)}return[null,null]}function ST(...e){return(t,n)=>{const r={};let i;for(i=0;i<e.length;i++)r[e[i]]=Ql(t[n+i]);return[r,null,n+i]}}const ET=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,rle=`(?:${ET.source}?(?:\\[(${AT.source})\\])?)?`,u6=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,MT=RegExp(`${u6.source}${rle}`),c6=RegExp(`(?:[Tt]${MT.source})?`),ile=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,ale=/(\d{4})-?W(\d\d)(?:-?(\d))?/,ole=/(\d{4})-?(\d{3})/,sle=ST("weekYear","weekNumber","weekDay"),lle=ST("year","ordinal"),ule=/(\d{4})-(\d\d)-(\d\d)/,DT=RegExp(`${u6.source} ?(?:${ET.source}|(${AT.source}))?`),cle=RegExp(`(?: ${DT.source})?`);function _d(e,t,n){const r=e[t];return He(r)?n:Ql(r)}function fle(e,t){return[{year:_d(e,t),month:_d(e,t+1,1),day:_d(e,t+2,1)},null,t+3]}function kd(e,t){return[{hours:_d(e,t,0),minutes:_d(e,t+1,0),seconds:_d(e,t+2,0),milliseconds:o6(e[t+3])},null,t+4]}function U1(e,t){const n=!e[t]&&!e[t+1],r=k2(e[t+1],e[t+2]),i=n?null:Nr.instance(r);return[{},i,t+3]}function V1(e,t){const n=e[t]?Rs.create(e[t]):null;return[{},n,t+1]}const dle=RegExp(`^T?${u6.source}$`),hle=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function ple(e){const[t,n,r,i,a,o,s,l,u]=e,c=t[0]==="-",f=l&&l[0]==="-",d=(h,p=!1)=>h!==void 0&&(p||h&&c)?-h:h;return[{years:d(mc(n)),months:d(mc(r)),weeks:d(mc(i)),days:d(mc(a)),hours:d(mc(o)),minutes:d(mc(s)),seconds:d(mc(l),l==="-0"),milliseconds:d(o6(u),f)}]}const mle={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function f6(e,t,n,r,i,a,o){const s={year:t.length===2?l6(Ql(t)):Ql(t),month:yT.indexOf(n)+1,day:Ql(r),hour:Ql(i),minute:Ql(a)};return o&&(s.second=Ql(o)),e&&(s.weekday=e.length>3?bT.indexOf(e)+1:xT.indexOf(e)+1),s}const gle=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function yle(e){const[,t,n,r,i,a,o,s,l,u,c,f]=e,d=f6(t,i,r,n,a,o,s);let h;return l?h=mle[l]:u?h=0:h=k2(c,f),[d,new Nr(h)]}function vle(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const ble=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,xle=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,wle=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function $T(e){const[,t,n,r,i,a,o,s]=e;return[f6(t,i,r,n,a,o,s),Nr.utcInstance]}function _le(e){const[,t,n,r,i,a,o,s]=e;return[f6(t,s,n,r,i,a,o),Nr.utcInstance]}const kle=bd(ile,c6),Cle=bd(ale,c6),Ale=bd(ole,c6),Sle=bd(MT),FT=xd(fle,kd,U1,V1),Ele=xd(sle,kd,U1,V1),Mle=xd(lle,kd,U1,V1),Dle=xd(kd,U1,V1);function $le(e){return wd(e,[kle,FT],[Cle,Ele],[Ale,Mle],[Sle,Dle])}function Fle(e){return wd(vle(e),[gle,yle])}function Tle(e){return wd(e,[ble,$T],[xle,$T],[wle,_le])}function Ole(e){return wd(e,[hle,ple])}const Nle=xd(kd);function zle(e){return wd(e,[dle,Nle])}const Rle=bd(ule,cle),Ple=bd(DT),Ble=xd(kd,U1,V1);function qle(e){return wd(e,[Rle,FT],[Ple,Ble])}const TT="Invalid Duration",OT={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Lle={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...OT},Qi=146097/400,Cd=146097/4800,jle={years:{quarters:4,months:12,weeks:Qi/7,days:Qi,hours:Qi*24,minutes:Qi*24*60,seconds:Qi*24*60*60,milliseconds:Qi*24*60*60*1e3},quarters:{months:3,weeks:Qi/28,days:Qi/4,hours:Qi*24/4,minutes:Qi*24*60/4,seconds:Qi*24*60*60/4,milliseconds:Qi*24*60*60*1e3/4},months:{weeks:Cd/7,days:Cd,hours:Cd*24,minutes:Cd*24*60,seconds:Cd*24*60*60,milliseconds:Cd*24*60*60*1e3},...OT},gc=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Ile=gc.slice(0).reverse();function Ps(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new ft(r)}function NT(e,t){let n=t.milliseconds??0;for(const r of Ile.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function zT(e,t){const n=NT(e,t)<0?-1:1;gc.reduceRight((r,i)=>{if(He(t[i]))return r;if(r){const a=t[r]*n,o=e[i][r],s=Math.floor(a/o);t[i]+=s*n,t[r]-=s*o*n}return i},null),gc.reduce((r,i)=>{if(He(t[i]))return r;if(r){const a=t[r]%1;t[r]-=a,t[i]+=a*e[r][i]}return i},null)}function RT(e){const t={};for(const[n,r]of Object.entries(e))r!==0&&(t[n]=r);return t}class ft{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;let r=n?jle:Lle;t.matrix&&(r=t.matrix),this.values=t.values,this.loc=t.loc||kt.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(t,n){return ft.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new mr(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new ft({values:C2(t,ft.normalizeUnit),loc:kt.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(Jl(t))return ft.fromMillis(t);if(ft.isDuration(t))return t;if(typeof t=="object")return ft.fromObject(t);throw new mr(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[r]=Ole(t);return r?ft.fromObject(r,n):ft.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[r]=zle(t);return r?ft.fromObject(r,n):ft.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new mr("need to specify a reason the Duration is invalid");const r=t instanceof Na?t:new Na(t,n);if(pn.throwOnInvalid)throw new pse(r);return new ft({invalid:r})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new CF(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?gr.create(this.loc,r).formatDurationFromString(this,t):TT}toHuman(t={}){if(!this.isValid)return TT;const n=t.showZeros!==!1,r=gc.map(i=>{const a=this.values[i];return He(a)||a===0&&!n?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:i.slice(0,-1)}).format(a)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=s6(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},Ye.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?NT(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=ft.fromDurationLike(t),r={};for(const i of gc)(yd(n.values,i)||yd(this.values,i))&&(r[i]=n.get(i)+this.get(i));return Ps(this,{values:r},!0)}minus(t){if(!this.isValid)return this;const n=ft.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=gT(t(this.values[r],r));return Ps(this,{values:n},!0)}get(t){return this[ft.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...C2(t,ft.normalizeUnit)};return Ps(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:r,matrix:i}={}){const a={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:i,conversionAccuracy:r};return Ps(this,a)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return zT(this.matrix,t),Ps(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=RT(this.normalize().shiftToAll().toObject());return Ps(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(o=>ft.normalizeUnit(o));const n={},r={},i=this.toObject();let a;for(const o of gc)if(t.indexOf(o)>=0){a=o;let s=0;for(const u in r)s+=this.matrix[u][o]*r[u],r[u]=0;Jl(i[o])&&(s+=i[o]);const l=Math.trunc(s);n[o]=l,r[o]=(s*1e3-l*1e3)/1e3}else Jl(i[o])&&(r[o]=i[o]);for(const o in r)r[o]!==0&&(n[a]+=o===a?r[o]:r[o]/this.matrix[a][o]);return zT(this.matrix,n),Ps(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return Ps(this,{values:t},!0)}removeZeros(){if(!this.isValid)return this;const t=RT(this.values);return Ps(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(r,i){return r===void 0||r===0?i===void 0||i===0:r===i}for(const r of gc)if(!n(this.values[r],t.values[r]))return!1;return!0}}const Ad="Invalid Interval";function Ule(e,t){return!e||!e.isValid?mn.invalid("missing or invalid start"):!t||!t.isValid?mn.invalid("missing or invalid end"):t<e?mn.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class mn{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new mr("need to specify a reason the Interval is invalid");const r=t instanceof Na?t:new Na(t,n);if(pn.throwOnInvalid)throw new hse(r);return new mn({invalid:r})}static fromDateTimes(t,n){const r=Y1(t),i=Y1(n);return Ule(r,i)??new mn({start:r,end:i})}static after(t,n){const r=ft.fromDurationLike(n),i=Y1(t);return mn.fromDateTimes(i,i.plus(r))}static before(t,n){const r=ft.fromDurationLike(n),i=Y1(t);return mn.fromDateTimes(i.minus(r),i)}static fromISO(t,n){const[r,i]=(t||"").split("/",2);if(r&&i){let a,o;try{a=Ye.fromISO(r,n),o=a.isValid}catch{o=!1}let s,l;try{s=Ye.fromISO(i,n),l=s.isValid}catch{l=!1}if(o&&l)return mn.fromDateTimes(a,s);if(o){const u=ft.fromISO(i,n);if(u.isValid)return mn.after(a,u)}else if(l){const u=ft.fromISO(r,n);if(u.isValid)return mn.before(s,u)}}return mn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",n){if(!this.isValid)return NaN;const r=this.start.startOf(t,n);let i;return n!=null&&n.useLocaleWeeks?i=this.end.reconfigure({locale:r.locale}):i=this.end,i=i.startOf(t,n),Math.floor(i.diff(r,t).get(t))+(i.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?mn.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(Y1).filter(o=>this.contains(o)).sort((o,s)=>o.toMillis()-s.toMillis()),r=[];let{s:i}=this,a=0;for(;i<this.e;){const o=n[a]||this.e,s=+o>+this.e?this.e:o;r.push(mn.fromDateTimes(i,s)),i=s,a+=1}return r}splitBy(t){const n=ft.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,i=1,a;const o=[];for(;r<this.e;){const s=this.start.plus(n.mapUnits(l=>l*i));a=+s>+this.e?this.e:s,o.push(mn.fromDateTimes(r,a)),r=a,i+=1}return o}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,r=this.e<t.e?this.e:t.e;return n>=r?null:mn.fromDateTimes(n,r)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,r=this.e>t.e?this.e:t.e;return mn.fromDateTimes(n,r)}static merge(t){const[n,r]=t.sort((i,a)=>i.s-a.s).reduce(([i,a],o)=>a?a.overlaps(o)||a.abutsStart(o)?[i,a.union(o)]:[i.concat([a]),o]:[i,o],[[],null]);return r&&n.push(r),n}static xor(t){let n=null,r=0;const i=[],a=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),o=Array.prototype.concat(...a),s=o.sort((l,u)=>l.time-u.time);for(const l of s)r+=l.type==="s"?1:-1,r===1?n=l.time:(n&&+n!=+l.time&&i.push(mn.fromDateTimes(n,l.time)),n=null);return mn.merge(i)}difference(...t){return mn.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Ad}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=m2,n={}){return this.isValid?gr.create(this.s.loc.clone(n),t).formatInterval(this):Ad}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Ad}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Ad}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Ad}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:Ad}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):ft.invalid(this.invalidReason)}mapEndpoints(t){return mn.fromDateTimes(t(this.s),t(this.e))}}let S2=class{static hasDST(e=pn.defaultZone){const t=Ye.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return Rs.isValidZone(e)}static normalizeZone(e){return Xl(e,pn.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||kt.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||kt.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||kt.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||kt.create(t,n,i)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||kt.create(t,n,i)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||kt.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||kt.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return kt.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return kt.create(t,null,"gregory").eras(e)}static features(){return{relative:fT(),localeWeek:dT()}}};function PT(e,t){const n=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(ft.fromMillis(r).as("days"))}function Vle(e,t,n){const r=[["years",(l,u)=>u.year-l.year],["quarters",(l,u)=>u.quarter-l.quarter+(u.year-l.year)*4],["months",(l,u)=>u.month-l.month+(u.year-l.year)*12],["weeks",(l,u)=>{const c=PT(l,u);return(c-c%7)/7}],["days",PT]],i={},a=e;let o,s;for(const[l,u]of r)n.indexOf(l)>=0&&(o=l,i[l]=u(e,t),s=a.plus(i),s>t?(i[l]--,e=a.plus(i),e>t&&(s=e,i[l]--,e=a.plus(i))):e=s);return[e,i,s,o]}function Wle(e,t,n,r){let[i,a,o,s]=Vle(e,t,n);const l=t-i,u=n.filter(f=>["hours","minutes","seconds","milliseconds"].indexOf(f)>=0);u.length===0&&(o<t&&(o=i.plus({[s]:1})),o!==i&&(a[s]=(a[s]||0)+l/(o-i)));const c=ft.fromObject(a,r);return u.length>0?ft.fromMillis(l,r).shiftTo(...u).plus(c):c}const Hle="missing Intl.DateTimeFormat.formatToParts support";function xt(e,t=n=>n){return{regex:e,deser:([n])=>t(Rse(n))}}const BT="[  ]",qT=new RegExp(BT,"g");function Yle(e){return e.replace(/\./g,"\\.?").replace(qT,BT)}function LT(e){return e.replace(/\./g,"").replace(qT," ").toLowerCase()}function za(e,t){return e===null?null:{regex:RegExp(e.map(Yle).join("|")),deser:([n])=>e.findIndex(r=>LT(n)===LT(r))+t}}function jT(e,t){return{regex:e,deser:([,n,r])=>k2(n,r),groups:t}}function E2(e){return{regex:e,deser:([t])=>t}}function Gle(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Zle(e,t){const n=Oa(t),r=Oa(t,"{2}"),i=Oa(t,"{3}"),a=Oa(t,"{4}"),o=Oa(t,"{6}"),s=Oa(t,"{1,2}"),l=Oa(t,"{1,3}"),u=Oa(t,"{1,6}"),c=Oa(t,"{1,9}"),f=Oa(t,"{2,4}"),d=Oa(t,"{4,6}"),h=m=>({regex:RegExp(Gle(m.val)),deser:([g])=>g,literal:!0}),p=(m=>{if(e.literal)return h(m);switch(m.val){case"G":return za(t.eras("short"),0);case"GG":return za(t.eras("long"),0);case"y":return xt(u);case"yy":return xt(f,l6);case"yyyy":return xt(a);case"yyyyy":return xt(d);case"yyyyyy":return xt(o);case"M":return xt(s);case"MM":return xt(r);case"MMM":return za(t.months("short",!0),1);case"MMMM":return za(t.months("long",!0),1);case"L":return xt(s);case"LL":return xt(r);case"LLL":return za(t.months("short",!1),1);case"LLLL":return za(t.months("long",!1),1);case"d":return xt(s);case"dd":return xt(r);case"o":return xt(l);case"ooo":return xt(i);case"HH":return xt(r);case"H":return xt(s);case"hh":return xt(r);case"h":return xt(s);case"mm":return xt(r);case"m":return xt(s);case"q":return xt(s);case"qq":return xt(r);case"s":return xt(s);case"ss":return xt(r);case"S":return xt(l);case"SSS":return xt(i);case"u":return E2(c);case"uu":return E2(s);case"uuu":return xt(n);case"a":return za(t.meridiems(),0);case"kkkk":return xt(a);case"kk":return xt(f,l6);case"W":return xt(s);case"WW":return xt(r);case"E":case"c":return xt(n);case"EEE":return za(t.weekdays("short",!1),1);case"EEEE":return za(t.weekdays("long",!1),1);case"ccc":return za(t.weekdays("short",!0),1);case"cccc":return za(t.weekdays("long",!0),1);case"Z":case"ZZ":return jT(new RegExp(`([+-]${s.source})(?::(${r.source}))?`),2);case"ZZZ":return jT(new RegExp(`([+-]${s.source})(${r.source})?`),2);case"z":return E2(/[a-z_+-/]{1,256}?/i);case" ":return E2(/[^\S\n\r]/);default:return h(m)}})(e)||{invalidReason:Hle};return p.token=e,p}const Xle={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function Jle(e,t,n){const{type:r,value:i}=e;if(r==="literal"){const l=/^\s+$/.test(i);return{literal:!l,val:l?" ":i}}const a=t[r];let o=r;r==="hour"&&(t.hour12!=null?o=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?o="hour12":o="hour24":o=n.hour12?"hour12":"hour24");let s=Xle[o];if(typeof s=="object"&&(s=s[a]),s)return{literal:!1,val:s}}function Qle(e){return[`^${e.map(t=>t.regex).reduce((t,n)=>`${t}(${n.source})`,"")}$`,e]}function Kle(e,t,n){const r=e.match(t);if(r){const i={};let a=1;for(const o in n)if(yd(n,o)){const s=n[o],l=s.groups?s.groups+1:1;!s.literal&&s.token&&(i[s.token.val[0]]=s.deser(r.slice(a,a+l))),a+=l}return[r,i]}else return[r,{}]}function eue(e){const t=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return He(e.z)||(n=Rs.create(e.z)),He(e.Z)||(n||(n=new Nr(e.Z)),r=e.Z),He(e.q)||(e.M=(e.q-1)*3+1),He(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),He(e.u)||(e.S=o6(e.u)),[Object.keys(e).reduce((i,a)=>{const o=t(a);return o&&(i[o]=e[a]),i},{}),n,r]}let d6=null;function tue(){return d6||(d6=Ye.fromMillis(1555555555555)),d6}function nue(e,t){if(e.literal)return e;const n=gr.macroTokenToFormatOpts(e.val),r=WT(n,t);return r==null||r.includes(void 0)?e:r}function IT(e,t){return Array.prototype.concat(...e.map(n=>nue(n,t)))}class UT{constructor(t,n){if(this.locale=t,this.format=n,this.tokens=IT(gr.parseFormat(n),t),this.units=this.tokens.map(r=>Zle(r,t)),this.disqualifyingUnit=this.units.find(r=>r.invalidReason),!this.disqualifyingUnit){const[r,i]=Qle(this.units);this.regex=RegExp(r,"i"),this.handlers=i}}explainFromTokens(t){if(this.isValid){const[n,r]=Kle(t,this.regex,this.handlers),[i,a,o]=r?eue(r):[null,null,void 0];if(yd(r,"a")&&yd(r,"H"))throw new gd("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:r,result:i,zone:a,specificOffset:o}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function VT(e,t,n){return new UT(e,n).explainFromTokens(t)}function rue(e,t,n){const{result:r,zone:i,specificOffset:a,invalidReason:o}=VT(e,t,n);return[r,i,a,o]}function WT(e,t){if(!e)return null;const n=gr.create(t,e).dtFormatter(tue()),r=n.formatToParts(),i=n.resolvedOptions();return r.map(a=>Jle(a,e,i))}const h6="Invalid DateTime",HT=864e13;function W1(e){return new Na("unsupported zone",`the zone "${e.name}" is not supported`)}function p6(e){return e.weekData===null&&(e.weekData=b2(e.c)),e.weekData}function m6(e){return e.localWeekData===null&&(e.localWeekData=b2(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function yc(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Ye({...n,...t,old:n})}function YT(e,t,n){let r=e-t*60*1e3;const i=n.offset(r);if(t===i)return[r,t];r-=(i-t)*60*1e3;const a=n.offset(r);return i===a?[r,i]:[e-Math.min(i,a)*60*1e3,Math.max(i,a)]}function M2(e,t){e+=t*60*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function D2(e,t,n){return YT(_2(e),t,n)}function GT(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,a={...e.c,year:r,month:i,day:Math.min(e.c.day,w2(r,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},o=ft.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=_2(a);let[l,u]=YT(s,n,e.zone);return o!==0&&(l+=o,u=e.zone.offset(l)),{ts:l,o:u}}function Sd(e,t,n,r,i,a){const{setZone:o,zone:s}=n;if(e&&Object.keys(e).length!==0||t){const l=t||s,u=Ye.fromObject(e,{...n,zone:l,specificOffset:a});return o?u:u.setZone(s)}else return Ye.invalid(new Na("unparsable",`the input "${i}" can't be parsed as ${r}`))}function $2(e,t,n=!0){return e.isValid?gr.create(kt.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function g6(e,t,n){const r=e.c.year>9999||e.c.year<0;let i="";if(r&&e.c.year>=0&&(i+="+"),i+=Sn(e.c.year,r?6:4),n==="year")return i;if(t){if(i+="-",i+=Sn(e.c.month),n==="month")return i;i+="-"}else if(i+=Sn(e.c.month),n==="month")return i;return i+=Sn(e.c.day),i}function ZT(e,t,n,r,i,a,o){let s=!n||e.c.millisecond!==0||e.c.second!==0,l="";switch(o){case"day":case"month":case"year":break;default:if(l+=Sn(e.c.hour),o==="hour")break;if(t){if(l+=":",l+=Sn(e.c.minute),o==="minute")break;s&&(l+=":",l+=Sn(e.c.second))}else{if(l+=Sn(e.c.minute),o==="minute")break;s&&(l+=Sn(e.c.second))}if(o==="second")break;s&&(!r||e.c.millisecond!==0)&&(l+=".",l+=Sn(e.c.millisecond,3))}return i&&(e.isOffsetFixed&&e.offset===0&&!a?l+="Z":e.o<0?(l+="-",l+=Sn(Math.trunc(-e.o/60)),l+=":",l+=Sn(Math.trunc(-e.o%60))):(l+="+",l+=Sn(Math.trunc(e.o/60)),l+=":",l+=Sn(Math.trunc(e.o%60)))),a&&(l+="["+e.zone.ianaName+"]"),l}const XT={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},iue={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},aue={ordinal:1,hour:0,minute:0,second:0,millisecond:0},F2=["year","month","day","hour","minute","second","millisecond"],oue=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],sue=["year","ordinal","hour","minute","second","millisecond"];function T2(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new CF(e);return t}function JT(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return T2(e)}}function lue(e){if(H1===void 0&&(H1=pn.now()),e.type!=="iana")return e.offset(H1);const t=e.name;let n=y6.get(t);return n===void 0&&(n=e.offset(H1),y6.set(t,n)),n}function QT(e,t){const n=Xl(t.zone,pn.defaultZone);if(!n.isValid)return Ye.invalid(W1(n));const r=kt.fromObject(t);let i,a;if(He(e.year))i=pn.now();else{for(const l of F2)He(e[l])&&(e[l]=XT[l]);const o=uT(e)||cT(e);if(o)return Ye.invalid(o);const s=lue(n);[i,a]=D2(e,s,n)}return new Ye({ts:i,zone:n,loc:r,o:a})}function KT(e,t,n){const r=He(n.round)?!0:n.round,i=He(n.rounding)?"trunc":n.rounding,a=(s,l)=>(s=s6(s,r||n.calendary?0:2,n.calendary?"round":i),t.loc.clone(n).relFormatter(n).format(s,l)),o=s=>n.calendary?t.hasSame(e,s)?0:t.startOf(s).diff(e.startOf(s),s).get(s):t.diff(e,s).get(s);if(n.unit)return a(o(n.unit),n.unit);for(const s of n.units){const l=o(s);if(Math.abs(l)>=1)return a(l,s)}return a(e>t?-0:0,n.units[n.units.length-1])}function eO(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}let H1;const y6=new Map;class Ye{constructor(t){const n=t.zone||pn.defaultZone;let r=t.invalid||(Number.isNaN(t.ts)?new Na("invalid input"):null)||(n.isValid?null:W1(n));this.ts=He(t.ts)?pn.now():t.ts;let i=null,a=null;if(!r)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[i,a]=[t.old.c,t.old.o];else{const o=Jl(t.o)&&!t.old?t.o:n.offset(this.ts);i=M2(this.ts,o),r=Number.isNaN(i.year)?new Na("invalid input"):null,i=r?null:i,a=r?null:o}this._zone=n,this.loc=t.loc||kt.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=i,this.o=a,this.isLuxonDateTime=!0}static now(){return new Ye({})}static local(){const[t,n]=eO(arguments),[r,i,a,o,s,l,u]=n;return QT({year:r,month:i,day:a,hour:o,minute:s,second:l,millisecond:u},t)}static utc(){const[t,n]=eO(arguments),[r,i,a,o,s,l,u]=n;return t.zone=Nr.utcInstance,QT({year:r,month:i,day:a,hour:o,minute:s,second:l,millisecond:u},t)}static fromJSDate(t,n={}){const r=jse(t)?t.valueOf():NaN;if(Number.isNaN(r))return Ye.invalid("invalid input");const i=Xl(n.zone,pn.defaultZone);return i.isValid?new Ye({ts:r,zone:i,loc:kt.fromObject(n)}):Ye.invalid(W1(i))}static fromMillis(t,n={}){if(Jl(t))return t<-HT||t>HT?Ye.invalid("Timestamp out of range"):new Ye({ts:t,zone:Xl(n.zone,pn.defaultZone),loc:kt.fromObject(n)});throw new mr(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(Jl(t))return new Ye({ts:t*1e3,zone:Xl(n.zone,pn.defaultZone),loc:kt.fromObject(n)});throw new mr("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const r=Xl(n.zone,pn.defaultZone);if(!r.isValid)return Ye.invalid(W1(r));const i=kt.fromObject(n),a=C2(t,JT),{minDaysInFirstWeek:o,startOfWeek:s}=lT(a,i),l=pn.now(),u=He(n.specificOffset)?r.offset(l):n.specificOffset,c=!He(a.ordinal),f=!He(a.year),d=!He(a.month)||!He(a.day),h=f||d,p=a.weekYear||a.weekNumber;if((h||c)&&p)throw new gd("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&c)throw new gd("Can't mix ordinal dates with month/day");const m=p||a.weekday&&!h;let g,y,v=M2(l,u);m?(g=oue,y=iue,v=b2(v,o,s)):c?(g=sue,y=aue,v=i6(v)):(g=F2,y=XT);let b=!1;for(const S of g){const E=a[S];He(E)?b?a[S]=y[S]:a[S]=v[S]:b=!0}const w=m?Bse(a,o,s):c?qse(a):uT(a),_=w||cT(a);if(_)return Ye.invalid(_);const k=m?oT(a,o,s):c?sT(a):a,[x,C]=D2(k,u,r),A=new Ye({ts:x,zone:r,o:C,loc:i});return a.weekday&&h&&t.weekday!==A.weekday?Ye.invalid("mismatched weekday",`you can't specify both a weekday of ${a.weekday} and a date of ${A.toISO()}`):A.isValid?A:Ye.invalid(A.invalid)}static fromISO(t,n={}){const[r,i]=$le(t);return Sd(r,i,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[r,i]=Fle(t);return Sd(r,i,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[r,i]=Tle(t);return Sd(r,i,n,"HTTP",n)}static fromFormat(t,n,r={}){if(He(t)||He(n))throw new mr("fromFormat requires an input string and a format");const{locale:i=null,numberingSystem:a=null}=r,o=kt.fromOpts({locale:i,numberingSystem:a,defaultToEN:!0}),[s,l,u,c]=rue(o,t,n);return c?Ye.invalid(c):Sd(s,l,r,`format ${n}`,t,u)}static fromString(t,n,r={}){return Ye.fromFormat(t,n,r)}static fromSQL(t,n={}){const[r,i]=qle(t);return Sd(r,i,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new mr("need to specify a reason the DateTime is invalid");const r=t instanceof Na?t:new Na(t,n);if(pn.throwOnInvalid)throw new dse(r);return new Ye({invalid:r})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const r=WT(t,kt.fromObject(n));return r?r.map(i=>i?i.val:null).join(""):null}static expandFormat(t,n={}){return IT(gr.parseFormat(t),kt.fromObject(n)).map(r=>r.val).join("")}static resetCache(){H1=void 0,y6.clear()}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?p6(this).weekYear:NaN}get weekNumber(){return this.isValid?p6(this).weekNumber:NaN}get weekday(){return this.isValid?p6(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?m6(this).weekday:NaN}get localWeekNumber(){return this.isValid?m6(this).weekNumber:NaN}get localWeekYear(){return this.isValid?m6(this).weekYear:NaN}get ordinal(){return this.isValid?i6(this.c).ordinal:NaN}get monthShort(){return this.isValid?S2.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?S2.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?S2.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?S2.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,n=6e4,r=_2(this.c),i=this.zone.offset(r-t),a=this.zone.offset(r+t),o=this.zone.offset(r-i*n),s=this.zone.offset(r-a*n);if(o===s)return[this];const l=r-o*n,u=r-s*n,c=M2(l,o),f=M2(u,s);return c.hour===f.hour&&c.minute===f.minute&&c.second===f.second&&c.millisecond===f.millisecond?[yc(this,{ts:l}),yc(this,{ts:u})]:[this]}get isInLeapYear(){return L1(this.year)}get daysInMonth(){return w2(this.year,this.month)}get daysInYear(){return this.isValid?vd(this.year):NaN}get weeksInWeekYear(){return this.isValid?j1(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?j1(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:r,calendar:i}=gr.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:i}}toUTC(t=0,n={}){return this.setZone(Nr.instance(t),n)}toLocal(){return this.setZone(pn.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(t=Xl(t,pn.defaultZone),t.equals(this.zone))return this;if(t.isValid){let i=this.ts;if(n||r){const a=t.offset(this.ts),o=this.toObject();[i]=D2(o,a,t)}return yc(this,{ts:i,zone:t})}else return Ye.invalid(W1(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:r}={}){const i=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:r});return yc(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=C2(t,JT),{minDaysInFirstWeek:r,startOfWeek:i}=lT(n,this.loc),a=!He(n.weekYear)||!He(n.weekNumber)||!He(n.weekday),o=!He(n.ordinal),s=!He(n.year),l=!He(n.month)||!He(n.day),u=s||l,c=n.weekYear||n.weekNumber;if((u||o)&&c)throw new gd("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&o)throw new gd("Can't mix ordinal dates with month/day");let f;a?f=oT({...b2(this.c,r,i),...n},r,i):He(n.ordinal)?(f={...this.toObject(),...n},He(n.day)&&(f.day=Math.min(w2(f.year,f.month),f.day))):f=sT({...i6(this.c),...n});const[d,h]=D2(f,this.o,this.zone);return yc(this,{ts:d,o:h})}plus(t){if(!this.isValid)return this;const n=ft.fromDurationLike(t);return yc(this,GT(this,n))}minus(t){if(!this.isValid)return this;const n=ft.fromDurationLike(t).negate();return yc(this,GT(this,n))}startOf(t,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const r={},i=ft.normalizeUnit(t);switch(i){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(i==="weeks")if(n){const a=this.loc.getStartOfWeek(),{weekday:o}=this;o<a&&(r.weekNumber=this.weekNumber-1),r.weekday=a}else r.weekday=1;if(i==="quarters"){const a=Math.ceil(this.month/3);r.month=(a-1)*3+1}return this.set(r)}endOf(t,n){return this.isValid?this.plus({[t]:1}).startOf(t,n).minus(1):this}toFormat(t,n={}){return this.isValid?gr.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):h6}toLocaleString(t=m2,n={}){return this.isValid?gr.create(this.loc.clone(n),t).formatDateTime(this):h6}toLocaleParts(t={}){return this.isValid?gr.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:i=!0,extendedZone:a=!1,precision:o="milliseconds"}={}){if(!this.isValid)return null;o=T2(o);const s=t==="extended";let l=g6(this,s,o);return F2.indexOf(o)>=3&&(l+="T"),l+=ZT(this,s,n,r,i,a,o),l}toISODate({format:t="extended",precision:n="day"}={}){return this.isValid?g6(this,t==="extended",T2(n)):null}toISOWeekDate(){return $2(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:i=!1,extendedZone:a=!1,format:o="extended",precision:s="milliseconds"}={}){return this.isValid?(s=T2(s),(i&&F2.indexOf(s)>=3?"T":"")+ZT(this,o==="extended",n,t,r,a,s)):null}toRFC2822(){return $2(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return $2(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?g6(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let i="HH:mm:ss.SSS";return(n||t)&&(r&&(i+=" "),n?i+="z":t&&(i+="ZZ")),$2(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():h6}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",r={}){if(!this.isValid||!t.isValid)return ft.invalid("created by diffing an invalid DateTime");const i={locale:this.locale,numberingSystem:this.numberingSystem,...r},a=Ise(n).map(ft.normalizeUnit),o=t.valueOf()>this.valueOf(),s=o?this:t,l=o?t:this,u=Wle(s,l,a,i);return o?u.negate():u}diffNow(t="milliseconds",n={}){return this.diff(Ye.now(),t,n)}until(t){return this.isValid?mn.fromDateTimes(this,t):this}hasSame(t,n,r){if(!this.isValid)return!1;const i=t.valueOf(),a=this.setZone(t.zone,{keepLocalTime:!0});return a.startOf(n,r)<=i&&i<=a.endOf(n,r)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||Ye.fromObject({},{zone:this.zone}),r=t.padding?this<n?-t.padding:t.padding:0;let i=["years","months","days","hours","minutes","seconds"],a=t.unit;return Array.isArray(t.unit)&&(i=t.unit,a=void 0),KT(n,this.plus(r),{...t,numeric:"always",units:i,unit:a})}toRelativeCalendar(t={}){return this.isValid?KT(t.base||Ye.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(Ye.isDateTime))throw new mr("min requires all arguments be DateTimes");return hT(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(Ye.isDateTime))throw new mr("max requires all arguments be DateTimes");return hT(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,r={}){const{locale:i=null,numberingSystem:a=null}=r,o=kt.fromOpts({locale:i,numberingSystem:a,defaultToEN:!0});return VT(o,t,n)}static fromStringExplain(t,n,r={}){return Ye.fromFormatExplain(t,n,r)}static buildFormatParser(t,n={}){const{locale:r=null,numberingSystem:i=null}=n,a=kt.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});return new UT(a,t)}static fromFormatParser(t,n,r={}){if(He(t)||He(n))throw new mr("fromFormatParser requires an input string and a format parser");const{locale:i=null,numberingSystem:a=null}=r,o=kt.fromOpts({locale:i,numberingSystem:a,defaultToEN:!0});if(!o.equals(n.locale))throw new mr(`fromFormatParser called with a locale of ${o}, but the format parser was created for ${n.locale}`);const{result:s,zone:l,specificOffset:u,invalidReason:c}=n.explainFromTokens(t);return c?Ye.invalid(c):Sd(s,l,r,`format ${n.format}`,t,u)}static get DATE_SHORT(){return m2}static get DATE_MED(){return AF}static get DATE_MED_WITH_WEEKDAY(){return mse}static get DATE_FULL(){return SF}static get DATE_HUGE(){return EF}static get TIME_SIMPLE(){return MF}static get TIME_WITH_SECONDS(){return DF}static get TIME_WITH_SHORT_OFFSET(){return $F}static get TIME_WITH_LONG_OFFSET(){return FF}static get TIME_24_SIMPLE(){return TF}static get TIME_24_WITH_SECONDS(){return OF}static get TIME_24_WITH_SHORT_OFFSET(){return NF}static get TIME_24_WITH_LONG_OFFSET(){return zF}static get DATETIME_SHORT(){return RF}static get DATETIME_SHORT_WITH_SECONDS(){return PF}static get DATETIME_MED(){return BF}static get DATETIME_MED_WITH_SECONDS(){return qF}static get DATETIME_MED_WITH_WEEKDAY(){return gse}static get DATETIME_FULL(){return LF}static get DATETIME_FULL_WITH_SECONDS(){return jF}static get DATETIME_HUGE(){return IF}static get DATETIME_HUGE_WITH_SECONDS(){return UF}}function Y1(e){if(Ye.isDateTime(e))return e;if(e&&e.valueOf&&Jl(e.valueOf()))return Ye.fromJSDate(e);if(e&&typeof e=="object")return Ye.fromObject(e);throw new mr(`Unknown datetime argument: ${e}, of type ${typeof e}`)}function Ra(e,t,n=!1){if(e!==void 0)switch(e){case"ordinal":return{range:["#C2D5EE","#1A73E8"]};case"temporal":case"quantitative":return t?n?{range:["#6BA4EE","#EEA361"]}:{range:["#1A73E8","#E8710A"]}:{range:["#C2D5EE","#1A73E8"]};case"nominal":return n?{range:["#6BA4EE","#66CEDC","#EC72B8","#EEA361","#F9C85B","#AACD85","#B87CED","#ACB0B3"]}:{range:["#1A73E8","#12B5CB","#E52592","#E8710A","#F9AB00","#7CB342","#9334E6","#80868B"]}}}function Xt(e,t){return e.toString().padStart(t,"0")}function O2(e,t,n){t||(t="second");const r=Ye.fromJSDate(e,{zone:n??"UTC"});switch(t){case"year":return`${Xt(r.year,4)}`;case"quarter":{const i=Xt(r.year,4),a=Math.floor(r.month/3)+1;return`${i}-Q${a}`}case"month":{const i=Xt(r.year,2),a=Xt(r.month,2);return`${i}-${a}`}case"week":{const i=Xt(r.year,2),a=Xt(r.month,2),o=Xt(r.day,2);return`${i}-${a}-${o}-WK`}case"day":{const i=Xt(r.year,2),a=Xt(r.month,2),o=Xt(r.day,2);return`${i}-${a}-${o}`}case"hour":{const i=Xt(r.year,2),a=Xt(r.month,2),o=Xt(r.day,2),s=Xt(r.hour,2);return`${i}-${a}-${o} ${s}`}case"minute":{const i=Xt(r.year,2),a=Xt(r.month,2),o=Xt(r.day,2),s=Xt(r.hour,2),l=Xt(r.minute,2);return`${i}-${a}-${o} ${s}:${l}`}case"second":{const i=Xt(r.year,2),a=Xt(r.month,2),o=Xt(r.day,2),s=Xt(r.hour,2),l=Xt(r.minute,2),u=Xt(r.second,2);return`${i}-${a}-${o} ${s}:${l}:${u}`}default:throw new Error("Unknown timeframe.")}}function tO(e,t){const n=Ye.fromJSDate(e,{zone:t??"UTC"});return new Date(n.year,n.month-1,n.day,n.hour,n.minute,n.second,n.millisecond)}let v6;const uue=100;async function N2(){const e=Date.now();if(!(v6&&e<v6+uue))return v6=e,new Promise(t=>{setTimeout(t,0)})}function Ki(e,t){const n=e.createElement("span");return n.classList.add("error"),n.appendChild(e.createTextNode(typeof t=="string"?t:t.message)),n}function G1(e){const t=e.createElement("span");return t.appendChild(e.createTextNode("∅")),t.classList.add("value-null"),t}function nO(e){const t=e.createElement("div");return t.classList.add("drill-icon"),t.innerHTML=`
1
+ import{V as vie}from"./index-CGKwxuak.js";function sJe(d2,h2){for(var sn=0;sn<h2.length;sn++){const ht=h2[sn];if(typeof ht!="string"&&!Array.isArray(ht)){for(const zs in ht)if(zs!=="default"&&!(zs in d2)){const pd=Object.getOwnPropertyDescriptor(ht,zs);pd&&Object.defineProperty(d2,zs,pd.get?pd:{enumerable:!0,get:()=>ht[zs]})}}}return Object.freeze(Object.defineProperty(d2,Symbol.toStringTag,{value:"Module"}))}var c2={exports:{}},lJe=c2.exports,bie;function uJe(){return bie||(bie=1,(function(d2,h2){(function(sn,ht){ht(h2)})(lJe,function(sn){class ht{constructor(){this.tagOptionExtractors={}}addExtractor(t,...n){for(const r in n)this.tagOptionExtractors[n[r]]=t}activates(t){return!1}isValidMatch(t){return!0}matches(t){return t.renderer===this.rendererName}parseTagParameters(t){const n={};for(const r in this.tagOptionExtractors){const i=t.tag(r);i&&this.tagOptionExtractors[r](n,i)}return n}}function zs(e){if(e.isArray())return e.values.map(t=>zs(t));if(e.isNumber()||e.isBoolean()||e.isString()||e.isNull())return e.value;if(e.isTime())return e.value.toISOString();if(e.isJSON())try{return JSON.parse(e.value)}catch{return e.value}else if(e.isRecord()){const t={};for(const n of e.columns)t[n.field.name]=zs(n);return t}return null}class pd{constructor(t){this.document=t}async render(t){const n=this.document.createElement("pre");return n.appendChild(this.document.createTextNode(JSON.stringify(zs(t),void 0,2))),n}}const qx=class extends ht{create(t,n,r,i,a){return new pd(t)}get rendererName(){return"json"}};qx.instance=new qx;let wie=qx;class _ie{constructor(t,n,r){this.document=t,this.options=n,this.tagged=r}}class p2 extends _ie{constructor(){super(...arguments),this.childRenderers={}}get defaultStylesForChildren(){return this.childrenStyleDefaults}static make(t,n,r,i,a){return new t(n,i,a)}}var pr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof vie<"u"?vie:typeof self<"u"?self:{};function kie(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Cie(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}var Aie=Cie;function Sie(e){return function(t){return e?.[t]}}var Eie=Sie,Mie=Eie,Die={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},$ie=Mie(Die),Fie=$ie,Tie=typeof pr=="object"&&pr&&pr.Object===Object&&pr,Oie=Tie,Nie=Oie,zie=typeof self=="object"&&self&&self.Object===Object&&self,Rie=Nie||zie||Function("return this")(),Pie=Rie,Bie=Pie,qie=Bie.Symbol,Lx=qie;function Lie(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var jie=Lie,Iie=Array.isArray,Uie=Iie,H$=Lx,Y$=Object.prototype,Vie=Y$.hasOwnProperty,Wie=Y$.toString,B1=H$?H$.toStringTag:void 0;function Hie(e){var t=Vie.call(e,B1),n=e[B1];try{e[B1]=void 0;var r=!0}catch{}var i=Wie.call(e);return r&&(t?e[B1]=n:delete e[B1]),i}var Yie=Hie,Gie=Object.prototype,Zie=Gie.toString;function Xie(e){return Zie.call(e)}var Jie=Xie,G$=Lx,Qie=Yie,Kie=Jie,eae="[object Null]",tae="[object Undefined]",Z$=G$?G$.toStringTag:void 0;function nae(e){return e==null?e===void 0?tae:eae:Z$&&Z$ in Object(e)?Qie(e):Kie(e)}var rae=nae;function iae(e){return e!=null&&typeof e=="object"}var aae=iae,oae=rae,sae=aae,lae="[object Symbol]";function uae(e){return typeof e=="symbol"||sae(e)&&oae(e)==lae}var cae=uae,X$=Lx,fae=jie,dae=Uie,hae=cae,J$=X$?X$.prototype:void 0,Q$=J$?J$.toString:void 0;function K$(e){if(typeof e=="string")return e;if(dae(e))return fae(e,K$)+"";if(hae(e))return Q$?Q$.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var pae=K$,mae=pae;function gae(e){return e==null?"":mae(e)}var jx=gae,yae=Fie,vae=jx,bae=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xae="\\u0300-\\u036f",wae="\\ufe20-\\ufe2f",_ae="\\u20d0-\\u20ff",kae=xae+wae+_ae,Cae="["+kae+"]",Aae=RegExp(Cae,"g");function Sae(e){return e=vae(e),e&&e.replace(bae,yae).replace(Aae,"")}var Eae=Sae,Mae=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Dae(e){return e.match(Mae)||[]}var $ae=Dae,Fae=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Tae(e){return Fae.test(e)}var Oae=Tae,eF="\\ud800-\\udfff",Nae="\\u0300-\\u036f",zae="\\ufe20-\\ufe2f",Rae="\\u20d0-\\u20ff",Pae=Nae+zae+Rae,tF="\\u2700-\\u27bf",nF="a-z\\xdf-\\xf6\\xf8-\\xff",Bae="\\xac\\xb1\\xd7\\xf7",qae="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Lae="\\u2000-\\u206f",jae=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rF="A-Z\\xc0-\\xd6\\xd8-\\xde",Iae="\\ufe0e\\ufe0f",iF=Bae+qae+Lae+jae,aF="['’]",oF="["+iF+"]",Uae="["+Pae+"]",sF="\\d+",Vae="["+tF+"]",lF="["+nF+"]",uF="[^"+eF+iF+sF+tF+nF+rF+"]",Wae="\\ud83c[\\udffb-\\udfff]",Hae="(?:"+Uae+"|"+Wae+")",Yae="[^"+eF+"]",cF="(?:\\ud83c[\\udde6-\\uddff]){2}",fF="[\\ud800-\\udbff][\\udc00-\\udfff]",md="["+rF+"]",Gae="\\u200d",dF="(?:"+lF+"|"+uF+")",Zae="(?:"+md+"|"+uF+")",hF="(?:"+aF+"(?:d|ll|m|re|s|t|ve))?",pF="(?:"+aF+"(?:D|LL|M|RE|S|T|VE))?",mF=Hae+"?",gF="["+Iae+"]?",Xae="(?:"+Gae+"(?:"+[Yae,cF,fF].join("|")+")"+gF+mF+")*",Jae="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Qae="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Kae=gF+mF+Xae,eoe="(?:"+[Vae,cF,fF].join("|")+")"+Kae,toe=RegExp([md+"?"+lF+"+"+hF+"(?="+[oF,md,"$"].join("|")+")",Zae+"+"+pF+"(?="+[oF,md+dF,"$"].join("|")+")",md+"?"+dF+"+"+hF,md+"+"+pF,Qae,Jae,sF,eoe].join("|"),"g");function noe(e){return e.match(toe)||[]}var roe=noe,ioe=$ae,aoe=Oae,ooe=jx,soe=roe;function loe(e,t,n){return e=ooe(e),t=n?void 0:t,t===void 0?aoe(e)?soe(e):ioe(e):e.match(t)||[]}var uoe=loe,coe=Aie,foe=Eae,doe=uoe,hoe="['’]",poe=RegExp(hoe,"g");function moe(e){return function(t){return coe(doe(foe(t).replace(poe,"")),e,"")}}var goe=moe;function yoe(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}var voe=yoe,boe=voe;function xoe(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:boe(e,t,n)}var woe=xoe,_oe="\\ud800-\\udfff",koe="\\u0300-\\u036f",Coe="\\ufe20-\\ufe2f",Aoe="\\u20d0-\\u20ff",Soe=koe+Coe+Aoe,Eoe="\\ufe0e\\ufe0f",Moe="\\u200d",Doe=RegExp("["+Moe+_oe+Soe+Eoe+"]");function $oe(e){return Doe.test(e)}var yF=$oe;function Foe(e){return e.split("")}var Toe=Foe,vF="\\ud800-\\udfff",Ooe="\\u0300-\\u036f",Noe="\\ufe20-\\ufe2f",zoe="\\u20d0-\\u20ff",Roe=Ooe+Noe+zoe,Poe="\\ufe0e\\ufe0f",Boe="["+vF+"]",Ix="["+Roe+"]",Ux="\\ud83c[\\udffb-\\udfff]",qoe="(?:"+Ix+"|"+Ux+")",bF="[^"+vF+"]",xF="(?:\\ud83c[\\udde6-\\uddff]){2}",wF="[\\ud800-\\udbff][\\udc00-\\udfff]",Loe="\\u200d",_F=qoe+"?",kF="["+Poe+"]?",joe="(?:"+Loe+"(?:"+[bF,xF,wF].join("|")+")"+kF+_F+")*",Ioe=kF+_F+joe,Uoe="(?:"+[bF+Ix+"?",Ix,xF,wF,Boe].join("|")+")",Voe=RegExp(Ux+"(?="+Ux+")|"+Uoe+Ioe,"g");function Woe(e){return e.match(Voe)||[]}var Hoe=Woe,Yoe=Toe,Goe=yF,Zoe=Hoe;function Xoe(e){return Goe(e)?Zoe(e):Yoe(e)}var Joe=Xoe,Qoe=woe,Koe=yF,ese=Joe,tse=jx;function nse(e){return function(t){t=tse(t);var n=Koe(t)?ese(t):void 0,r=n?n[0]:t.charAt(0),i=n?Qoe(n,1).join(""):t.slice(1);return r[e]()+i}}var rse=nse,ise=rse,ase=ise("toUpperCase"),ose=ase,sse=goe,lse=ose,use=sse(function(e,t,n){return e+(n?" ":"")+lse(t)}),cse=use;const fse=kie(cse);class pc extends Error{}class dse extends pc{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class hse extends pc{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class pse extends pc{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class gd extends pc{}class CF extends pc{constructor(t){super(`Invalid unit ${t}`)}}class mr extends pc{}class Zl extends pc{constructor(){super("Zone is an abstract class")}}const ye="numeric",Ta="short",Ti="long",m2={year:ye,month:ye,day:ye},AF={year:ye,month:Ta,day:ye},mse={year:ye,month:Ta,day:ye,weekday:Ta},SF={year:ye,month:Ti,day:ye},EF={year:ye,month:Ti,day:ye,weekday:Ti},MF={hour:ye,minute:ye},DF={hour:ye,minute:ye,second:ye},$F={hour:ye,minute:ye,second:ye,timeZoneName:Ta},FF={hour:ye,minute:ye,second:ye,timeZoneName:Ti},TF={hour:ye,minute:ye,hourCycle:"h23"},OF={hour:ye,minute:ye,second:ye,hourCycle:"h23"},NF={hour:ye,minute:ye,second:ye,hourCycle:"h23",timeZoneName:Ta},zF={hour:ye,minute:ye,second:ye,hourCycle:"h23",timeZoneName:Ti},RF={year:ye,month:ye,day:ye,hour:ye,minute:ye},PF={year:ye,month:ye,day:ye,hour:ye,minute:ye,second:ye},BF={year:ye,month:Ta,day:ye,hour:ye,minute:ye},qF={year:ye,month:Ta,day:ye,hour:ye,minute:ye,second:ye},gse={year:ye,month:Ta,day:ye,weekday:Ta,hour:ye,minute:ye},LF={year:ye,month:Ti,day:ye,hour:ye,minute:ye,timeZoneName:Ta},jF={year:ye,month:Ti,day:ye,hour:ye,minute:ye,second:ye,timeZoneName:Ta},IF={year:ye,month:Ti,day:ye,weekday:Ti,hour:ye,minute:ye,timeZoneName:Ti},UF={year:ye,month:Ti,day:ye,weekday:Ti,hour:ye,minute:ye,second:ye,timeZoneName:Ti};class q1{get type(){throw new Zl}get name(){throw new Zl}get ianaName(){return this.name}get isUniversal(){throw new Zl}offsetName(t,n){throw new Zl}formatOffset(t,n){throw new Zl}offset(t){throw new Zl}equals(t){throw new Zl}get isValid(){throw new Zl}}let Vx=null;class g2 extends q1{static get instance(){return Vx===null&&(Vx=new g2),Vx}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return mT(t,n,r)}formatOffset(t,n){return I1(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}const Wx=new Map;function yse(e){let t=Wx.get(e);return t===void 0&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),Wx.set(e,t)),t}const vse={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function bse(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,i,a,o,s,l,u,c]=r;return[o,i,a,s,l,u,c]}function xse(e,t){const n=e.formatToParts(t),r=[];for(let i=0;i<n.length;i++){const{type:a,value:o}=n[i],s=vse[a];a==="era"?r[s]=o:He(s)||(r[s]=parseInt(o,10))}return r}const Hx=new Map;class Rs extends q1{static create(t){let n=Hx.get(t);return n===void 0&&Hx.set(t,n=new Rs(t)),n}static resetCache(){Hx.clear(),Wx.clear()}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=Rs.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return mT(t,n,r,this.name)}formatOffset(t,n){return I1(this.offset(t),n)}offset(t){if(!this.valid)return NaN;const n=new Date(t);if(isNaN(n))return NaN;const r=yse(this.name);let[i,a,o,s,l,u,c]=r.formatToParts?xse(r,n):bse(r,n);s==="BC"&&(i=-Math.abs(i)+1);const f=_2({year:i,month:a,day:o,hour:l===24?0:l,minute:u,second:c,millisecond:0});let d=+n;const h=d%1e3;return d-=h>=0?h:1e3+h,(f-d)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let VF={};function wse(e,t={}){const n=JSON.stringify([e,t]);let r=VF[n];return r||(r=new Intl.ListFormat(e,t),VF[n]=r),r}const Yx=new Map;function Gx(e,t={}){const n=JSON.stringify([e,t]);let r=Yx.get(n);return r===void 0&&(r=new Intl.DateTimeFormat(e,t),Yx.set(n,r)),r}const Zx=new Map;function _se(e,t={}){const n=JSON.stringify([e,t]);let r=Zx.get(n);return r===void 0&&(r=new Intl.NumberFormat(e,t),Zx.set(n,r)),r}const Xx=new Map;function kse(e,t={}){const{base:n,...r}=t,i=JSON.stringify([e,r]);let a=Xx.get(i);return a===void 0&&(a=new Intl.RelativeTimeFormat(e,t),Xx.set(i,a)),a}let y2=null;function Cse(){return y2||(y2=new Intl.DateTimeFormat().resolvedOptions().locale,y2)}const Jx=new Map;function WF(e){let t=Jx.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),Jx.set(e,t)),t}const Qx=new Map;function Ase(e){let t=Qx.get(e);if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in t||(t={...HF,...t}),Qx.set(e,t)}return t}function Sse(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(n===-1)return[e];{let r,i;try{r=Gx(e).resolvedOptions(),i=e}catch{const s=e.substring(0,n);r=Gx(s).resolvedOptions(),i=s}const{numberingSystem:a,calendar:o}=r;return[i,a,o]}}function Ese(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function Mse(e){const t=[];for(let n=1;n<=12;n++){const r=Ye.utc(2009,n,1);t.push(e(r))}return t}function Dse(e){const t=[];for(let n=1;n<=7;n++){const r=Ye.utc(2016,11,13+n);t.push(e(r))}return t}function v2(e,t,n,r){const i=e.listingMode();return i==="error"?null:i==="en"?n(t):r(t)}function $se(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||WF(e.locale).numberingSystem==="latn"}class Fse{constructor(t,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:i,floor:a,...o}=r;if(!n||Object.keys(o).length>0){const s={useGrouping:!1,...r};r.padTo>0&&(s.minimumIntegerDigits=r.padTo),this.inf=_se(t,s)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):s6(t,3);return Sn(n,this.padTo)}}}class Tse{constructor(t,n,r){this.opts=r,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const o=-1*(t.offset/60),s=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;t.offset!==0&&Rs.create(s).valid?(i=s,this.dt=t):(i="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,i=t.zone.name):(i="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const a={...this.opts};a.timeZone=a.timeZone||i,this.dtf=Gx(n,a)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class Ose{constructor(t,n,r){this.opts={style:"long",...r},!n&&fT()&&(this.rtf=kse(t,r))}format(t,n){return this.rtf?this.rtf.format(t,n):tle(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}const HF={firstDay:1,minimalDays:4,weekend:[6,7]};class kt{static fromOpts(t){return kt.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,r,i,a=!1){const o=t||pn.defaultLocale,s=o||(a?"en-US":Cse()),l=n||pn.defaultNumberingSystem,u=r||pn.defaultOutputCalendar,c=a6(i)||pn.defaultWeekSettings;return new kt(s,l,u,c,o)}static resetCache(){y2=null,Yx.clear(),Zx.clear(),Xx.clear(),Jx.clear(),Qx.clear()}static fromObject({locale:t,numberingSystem:n,outputCalendar:r,weekSettings:i}={}){return kt.create(t,n,r,i)}constructor(t,n,r,i,a){const[o,s,l]=Sse(t);this.locale=o,this.numberingSystem=n||s||null,this.outputCalendar=r||l||null,this.weekSettings=i,this.intl=Ese(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=a,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=$se(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:kt.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,a6(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return v2(this,t,vT,()=>{const r=this.intl==="ja"||this.intl.startsWith("ja-");n&=!r;const i=n?{month:t,day:"numeric"}:{month:t},a=n?"format":"standalone";if(!this.monthsCache[a][t]){const o=r?s=>this.dtFormatter(s,i).format():s=>this.extract(s,i,"month");this.monthsCache[a][t]=Mse(o)}return this.monthsCache[a][t]})}weekdays(t,n=!1){return v2(this,t,wT,()=>{const r=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},i=n?"format":"standalone";return this.weekdaysCache[i][t]||(this.weekdaysCache[i][t]=Dse(a=>this.extract(a,r,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return v2(this,void 0,()=>_T,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ye.utc(2016,11,13,9),Ye.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return v2(this,t,kT,()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[Ye.utc(-40,1,1),Ye.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[t]})}extract(t,n,r){const i=this.dtFormatter(t,n),a=i.formatToParts(),o=a.find(s=>s.type.toLowerCase()===r);return o?o.value:null}numberFormatter(t={}){return new Fse(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new Tse(t,this.intl,n)}relFormatter(t={}){return new Ose(this.intl,this.isEnglish(),t)}listFormatter(t={}){return wse(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||WF(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:dT()?Ase(this.locale):HF}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let Kx=null;class Nr extends q1{static get utcInstance(){return Kx===null&&(Kx=new Nr(0)),Kx}static instance(t){return t===0?Nr.utcInstance:new Nr(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new Nr(k2(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${I1(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${I1(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return I1(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class Nse extends q1{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Xl(e,t){if(He(e)||e===null)return t;if(e instanceof q1)return e;if(Lse(e)){const n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?g2.instance:n==="utc"||n==="gmt"?Nr.utcInstance:Nr.parseSpecifier(n)||Rs.create(e)}else return Jl(e)?Nr.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new Nse(e)}const e6={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},YF={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},zse=e6.hanidec.replace(/[\[|\]]/g,"").split("");function Rse(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(e[n].search(e6.hanidec)!==-1)t+=zse.indexOf(e[n]);else for(const i in YF){const[a,o]=YF[i];r>=a&&r<=o&&(t+=r-a)}}return parseInt(t,10)}else return t}const t6=new Map;function Pse(){t6.clear()}function Oa({numberingSystem:e},t=""){const n=e||"latn";let r=t6.get(n);r===void 0&&(r=new Map,t6.set(n,r));let i=r.get(t);return i===void 0&&(i=new RegExp(`${e6[n]}${t}`),r.set(t,i)),i}let GF=()=>Date.now(),ZF="system",XF=null,JF=null,QF=null,KF=60,eT,tT=null;class pn{static get now(){return GF}static set now(t){GF=t}static set defaultZone(t){ZF=t}static get defaultZone(){return Xl(ZF,g2.instance)}static get defaultLocale(){return XF}static set defaultLocale(t){XF=t}static get defaultNumberingSystem(){return JF}static set defaultNumberingSystem(t){JF=t}static get defaultOutputCalendar(){return QF}static set defaultOutputCalendar(t){QF=t}static get defaultWeekSettings(){return tT}static set defaultWeekSettings(t){tT=a6(t)}static get twoDigitCutoffYear(){return KF}static set twoDigitCutoffYear(t){KF=t%100}static get throwOnInvalid(){return eT}static set throwOnInvalid(t){eT=t}static resetCaches(){kt.resetCache(),Rs.resetCache(),Ye.resetCache(),Pse()}}class Na{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const nT=[0,31,59,90,120,151,181,212,243,273,304,334],rT=[0,31,60,91,121,152,182,213,244,274,305,335];function Xi(e,t){return new Na("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function n6(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const i=r.getUTCDay();return i===0?7:i}function iT(e,t,n){return n+(L1(e)?rT:nT)[t-1]}function aT(e,t){const n=L1(e)?rT:nT,r=n.findIndex(a=>a<t),i=t-n[r];return{month:r+1,day:i}}function r6(e,t){return(e-t+7)%7+1}function b2(e,t=4,n=1){const{year:r,month:i,day:a}=e,o=iT(r,i,a),s=r6(n6(r,i,a),n);let l=Math.floor((o-s+14-t)/7),u;return l<1?(u=r-1,l=j1(u,t,n)):l>j1(r,t,n)?(u=r+1,l=1):u=r,{weekYear:u,weekNumber:l,weekday:s,...A2(e)}}function oT(e,t=4,n=1){const{weekYear:r,weekNumber:i,weekday:a}=e,o=r6(n6(r,1,t),n),s=vd(r);let l=i*7+a-o-7+t,u;l<1?(u=r-1,l+=vd(u)):l>s?(u=r+1,l-=vd(r)):u=r;const{month:c,day:f}=aT(u,l);return{year:u,month:c,day:f,...A2(e)}}function i6(e){const{year:t,month:n,day:r}=e,i=iT(t,n,r);return{year:t,ordinal:i,...A2(e)}}function sT(e){const{year:t,ordinal:n}=e,{month:r,day:i}=aT(t,n);return{year:t,month:r,day:i,...A2(e)}}function lT(e,t){if(!He(e.localWeekday)||!He(e.localWeekNumber)||!He(e.localWeekYear)){if(!He(e.weekday)||!He(e.weekNumber)||!He(e.weekYear))throw new gd("Cannot mix locale-based week fields with ISO-based week fields");return He(e.localWeekday)||(e.weekday=e.localWeekday),He(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),He(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Bse(e,t=4,n=1){const r=x2(e.weekYear),i=Ji(e.weekNumber,1,j1(e.weekYear,t,n)),a=Ji(e.weekday,1,7);return r?i?a?!1:Xi("weekday",e.weekday):Xi("week",e.weekNumber):Xi("weekYear",e.weekYear)}function qse(e){const t=x2(e.year),n=Ji(e.ordinal,1,vd(e.year));return t?n?!1:Xi("ordinal",e.ordinal):Xi("year",e.year)}function uT(e){const t=x2(e.year),n=Ji(e.month,1,12),r=Ji(e.day,1,w2(e.year,e.month));return t?n?r?!1:Xi("day",e.day):Xi("month",e.month):Xi("year",e.year)}function cT(e){const{hour:t,minute:n,second:r,millisecond:i}=e,a=Ji(t,0,23)||t===24&&n===0&&r===0&&i===0,o=Ji(n,0,59),s=Ji(r,0,59),l=Ji(i,0,999);return a?o?s?l?!1:Xi("millisecond",i):Xi("second",r):Xi("minute",n):Xi("hour",t)}function He(e){return typeof e>"u"}function Jl(e){return typeof e=="number"}function x2(e){return typeof e=="number"&&e%1===0}function Lse(e){return typeof e=="string"}function jse(e){return Object.prototype.toString.call(e)==="[object Date]"}function fT(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function dT(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Ise(e){return Array.isArray(e)?e:[e]}function hT(e,t,n){if(e.length!==0)return e.reduce((r,i)=>{const a=[t(i),i];return r&&n(r[0],a[0])===r[0]?r:a},null)[1]}function Use(e,t){return t.reduce((n,r)=>(n[r]=e[r],n),{})}function yd(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function a6(e){if(e==null)return null;if(typeof e!="object")throw new mr("Week settings must be an object");if(!Ji(e.firstDay,1,7)||!Ji(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!Ji(t,1,7)))throw new mr("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Ji(e,t,n){return x2(e)&&e>=t&&e<=n}function Vse(e,t){return e-t*Math.floor(e/t)}function Sn(e,t=2){const n=e<0;let r;return n?r="-"+(""+-e).padStart(t,"0"):r=(""+e).padStart(t,"0"),r}function Ql(e){if(!(He(e)||e===null||e===""))return parseInt(e,10)}function mc(e){if(!(He(e)||e===null||e===""))return parseFloat(e)}function o6(e){if(!(He(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function s6(e,t,n="round"){const r=10**t;switch(n){case"expand":return e>0?Math.ceil(e*r)/r:Math.floor(e*r)/r;case"trunc":return Math.trunc(e*r)/r;case"round":return Math.round(e*r)/r;case"floor":return Math.floor(e*r)/r;case"ceil":return Math.ceil(e*r)/r;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function L1(e){return e%4===0&&(e%100!==0||e%400===0)}function vd(e){return L1(e)?366:365}function w2(e,t){const n=Vse(t-1,12)+1,r=e+(t-n)/12;return n===2?L1(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function _2(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function pT(e,t,n){return-r6(n6(e,1,t),n)+t-1}function j1(e,t=4,n=1){const r=pT(e,t,n),i=pT(e+1,t,n);return(vd(e)-r+i)/7}function l6(e){return e>99?e:e>pn.twoDigitCutoffYear?1900+e:2e3+e}function mT(e,t,n,r=null){const i=new Date(e),a={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(a.timeZone=r);const o={timeZoneName:t,...a},s=new Intl.DateTimeFormat(n,o).formatToParts(i).find(l=>l.type.toLowerCase()==="timezonename");return s?s.value:null}function k2(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0,i=n<0||Object.is(n,-0)?-r:r;return n*60+i}function gT(e){const t=Number(e);if(typeof e=="boolean"||e===""||!Number.isFinite(t))throw new mr(`Invalid unit value ${e}`);return t}function C2(e,t){const n={};for(const r in e)if(yd(e,r)){const i=e[r];if(i==null)continue;n[t(r)]=gT(i)}return n}function I1(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${Sn(n,2)}:${Sn(r,2)}`;case"narrow":return`${i}${n}${r>0?`:${r}`:""}`;case"techie":return`${i}${Sn(n,2)}${Sn(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function A2(e){return Use(e,["hour","minute","second","millisecond"])}const Wse=["January","February","March","April","May","June","July","August","September","October","November","December"],yT=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Hse=["J","F","M","A","M","J","J","A","S","O","N","D"];function vT(e){switch(e){case"narrow":return[...Hse];case"short":return[...yT];case"long":return[...Wse];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const bT=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],xT=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Yse=["M","T","W","T","F","S","S"];function wT(e){switch(e){case"narrow":return[...Yse];case"short":return[...xT];case"long":return[...bT];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const _T=["AM","PM"],Gse=["Before Christ","Anno Domini"],Zse=["BC","AD"],Xse=["B","A"];function kT(e){switch(e){case"narrow":return[...Xse];case"short":return[...Zse];case"long":return[...Gse];default:return null}}function Jse(e){return _T[e.hour<12?0:1]}function Qse(e,t){return wT(t)[e.weekday-1]}function Kse(e,t){return vT(t)[e.month-1]}function ele(e,t){return kT(t)[e.year<0?0:1]}function tle(e,t,n="always",r=!1){const i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&a){const f=e==="days";switch(t){case 1:return f?"tomorrow":`next ${i[e][0]}`;case-1:return f?"yesterday":`last ${i[e][0]}`;case 0:return f?"today":`this ${i[e][0]}`}}const o=Object.is(t,-0)||t<0,s=Math.abs(t),l=s===1,u=i[e],c=r?l?u[1]:u[2]||u[1]:l?i[e][0]:e;return o?`${s} ${c} ago`:`in ${s} ${c}`}function CT(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const nle={D:m2,DD:AF,DDD:SF,DDDD:EF,t:MF,tt:DF,ttt:$F,tttt:FF,T:TF,TT:OF,TTT:NF,TTTT:zF,f:RF,ff:BF,fff:LF,ffff:IF,F:PF,FF:qF,FFF:jF,FFFF:UF};class gr{static create(t,n={}){return new gr(t,n)}static parseFormat(t){let n=null,r="",i=!1;const a=[];for(let o=0;o<t.length;o++){const s=t.charAt(o);s==="'"?((r.length>0||i)&&a.push({literal:i||/^\s+$/.test(r),val:r===""?"'":r}),n=null,r="",i=!i):i||s===n?r+=s:(r.length>0&&a.push({literal:/^\s+$/.test(r),val:r}),r=s,n=s)}return r.length>0&&a.push({literal:i||/^\s+$/.test(r),val:r}),a}static macroTokenToFormatOpts(t){return nle[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0,r=void 0){if(this.opts.forceSimple)return Sn(t,n);const i={...this.opts};return n>0&&(i.padTo=n),r&&(i.signDisplay=r),this.loc.numberFormatter(i).format(t)}formatDateTimeFromString(t,n){const r=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",a=(h,p)=>this.loc.extract(t,h,p),o=h=>t.isOffsetFixed&&t.offset===0&&h.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,h.format):"",s=()=>r?Jse(t):a({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(h,p)=>r?Kse(t,h):a(p?{month:h}:{month:h,day:"numeric"},"month"),u=(h,p)=>r?Qse(t,h):a(p?{weekday:h}:{weekday:h,month:"long",day:"numeric"},"weekday"),c=h=>{const p=gr.macroTokenToFormatOpts(h);return p?this.formatWithSystemDefault(t,p):h},f=h=>r?ele(t,h):a({era:h},"era"),d=h=>{switch(h){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return s();case"d":return i?a({day:"numeric"},"day"):this.num(t.day);case"dd":return i?a({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return i?a({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return i?a({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return i?a({month:"numeric"},"month"):this.num(t.month);case"MM":return i?a({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return i?a({year:"numeric"},"year"):this.num(t.year);case"yy":return i?a({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return i?a({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return i?a({year:"numeric"},"year"):this.num(t.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return c(h)}};return CT(gr.parseFormat(n),d)}formatDurationFromString(t,n){const r=this.opts.signMode==="negativeLargestOnly"?-1:1,i=c=>{switch(c[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},a=(c,f)=>d=>{const h=i(d);if(h){const p=f.isNegativeDuration&&h!==f.largestUnit?r:1;let m;return this.opts.signMode==="negativeLargestOnly"&&h!==f.largestUnit?m="never":this.opts.signMode==="all"?m="always":m="auto",this.num(c.get(h)*p,d.length,m)}else return d},o=gr.parseFormat(n),s=o.reduce((c,{literal:f,val:d})=>f?c:c.concat(d),[]),l=t.shiftTo(...s.map(i).filter(c=>c)),u={isNegativeDuration:l<0,largestUnit:Object.keys(l.values)[0]};return CT(o,a(l,u))}}const AT=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function bd(...e){const t=e.reduce((n,r)=>n+r.source,"");return RegExp(`^${t}$`)}function xd(...e){return t=>e.reduce(([n,r,i],a)=>{const[o,s,l]=a(t,i);return[{...n,...o},s||r,l]},[{},null,1]).slice(0,2)}function wd(e,...t){if(e==null)return[null,null];for(const[n,r]of t){const i=n.exec(e);if(i)return r(i)}return[null,null]}function ST(...e){return(t,n)=>{const r={};let i;for(i=0;i<e.length;i++)r[e[i]]=Ql(t[n+i]);return[r,null,n+i]}}const ET=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,rle=`(?:${ET.source}?(?:\\[(${AT.source})\\])?)?`,u6=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,MT=RegExp(`${u6.source}${rle}`),c6=RegExp(`(?:[Tt]${MT.source})?`),ile=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,ale=/(\d{4})-?W(\d\d)(?:-?(\d))?/,ole=/(\d{4})-?(\d{3})/,sle=ST("weekYear","weekNumber","weekDay"),lle=ST("year","ordinal"),ule=/(\d{4})-(\d\d)-(\d\d)/,DT=RegExp(`${u6.source} ?(?:${ET.source}|(${AT.source}))?`),cle=RegExp(`(?: ${DT.source})?`);function _d(e,t,n){const r=e[t];return He(r)?n:Ql(r)}function fle(e,t){return[{year:_d(e,t),month:_d(e,t+1,1),day:_d(e,t+2,1)},null,t+3]}function kd(e,t){return[{hours:_d(e,t,0),minutes:_d(e,t+1,0),seconds:_d(e,t+2,0),milliseconds:o6(e[t+3])},null,t+4]}function U1(e,t){const n=!e[t]&&!e[t+1],r=k2(e[t+1],e[t+2]),i=n?null:Nr.instance(r);return[{},i,t+3]}function V1(e,t){const n=e[t]?Rs.create(e[t]):null;return[{},n,t+1]}const dle=RegExp(`^T?${u6.source}$`),hle=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function ple(e){const[t,n,r,i,a,o,s,l,u]=e,c=t[0]==="-",f=l&&l[0]==="-",d=(h,p=!1)=>h!==void 0&&(p||h&&c)?-h:h;return[{years:d(mc(n)),months:d(mc(r)),weeks:d(mc(i)),days:d(mc(a)),hours:d(mc(o)),minutes:d(mc(s)),seconds:d(mc(l),l==="-0"),milliseconds:d(o6(u),f)}]}const mle={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function f6(e,t,n,r,i,a,o){const s={year:t.length===2?l6(Ql(t)):Ql(t),month:yT.indexOf(n)+1,day:Ql(r),hour:Ql(i),minute:Ql(a)};return o&&(s.second=Ql(o)),e&&(s.weekday=e.length>3?bT.indexOf(e)+1:xT.indexOf(e)+1),s}const gle=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function yle(e){const[,t,n,r,i,a,o,s,l,u,c,f]=e,d=f6(t,i,r,n,a,o,s);let h;return l?h=mle[l]:u?h=0:h=k2(c,f),[d,new Nr(h)]}function vle(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const ble=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,xle=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,wle=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function $T(e){const[,t,n,r,i,a,o,s]=e;return[f6(t,i,r,n,a,o,s),Nr.utcInstance]}function _le(e){const[,t,n,r,i,a,o,s]=e;return[f6(t,s,n,r,i,a,o),Nr.utcInstance]}const kle=bd(ile,c6),Cle=bd(ale,c6),Ale=bd(ole,c6),Sle=bd(MT),FT=xd(fle,kd,U1,V1),Ele=xd(sle,kd,U1,V1),Mle=xd(lle,kd,U1,V1),Dle=xd(kd,U1,V1);function $le(e){return wd(e,[kle,FT],[Cle,Ele],[Ale,Mle],[Sle,Dle])}function Fle(e){return wd(vle(e),[gle,yle])}function Tle(e){return wd(e,[ble,$T],[xle,$T],[wle,_le])}function Ole(e){return wd(e,[hle,ple])}const Nle=xd(kd);function zle(e){return wd(e,[dle,Nle])}const Rle=bd(ule,cle),Ple=bd(DT),Ble=xd(kd,U1,V1);function qle(e){return wd(e,[Rle,FT],[Ple,Ble])}const TT="Invalid Duration",OT={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Lle={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...OT},Qi=146097/400,Cd=146097/4800,jle={years:{quarters:4,months:12,weeks:Qi/7,days:Qi,hours:Qi*24,minutes:Qi*24*60,seconds:Qi*24*60*60,milliseconds:Qi*24*60*60*1e3},quarters:{months:3,weeks:Qi/28,days:Qi/4,hours:Qi*24/4,minutes:Qi*24*60/4,seconds:Qi*24*60*60/4,milliseconds:Qi*24*60*60*1e3/4},months:{weeks:Cd/7,days:Cd,hours:Cd*24,minutes:Cd*24*60,seconds:Cd*24*60*60,milliseconds:Cd*24*60*60*1e3},...OT},gc=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Ile=gc.slice(0).reverse();function Ps(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new ft(r)}function NT(e,t){let n=t.milliseconds??0;for(const r of Ile.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function zT(e,t){const n=NT(e,t)<0?-1:1;gc.reduceRight((r,i)=>{if(He(t[i]))return r;if(r){const a=t[r]*n,o=e[i][r],s=Math.floor(a/o);t[i]+=s*n,t[r]-=s*o*n}return i},null),gc.reduce((r,i)=>{if(He(t[i]))return r;if(r){const a=t[r]%1;t[r]-=a,t[i]+=a*e[r][i]}return i},null)}function RT(e){const t={};for(const[n,r]of Object.entries(e))r!==0&&(t[n]=r);return t}class ft{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;let r=n?jle:Lle;t.matrix&&(r=t.matrix),this.values=t.values,this.loc=t.loc||kt.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(t,n){return ft.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new mr(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new ft({values:C2(t,ft.normalizeUnit),loc:kt.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(Jl(t))return ft.fromMillis(t);if(ft.isDuration(t))return t;if(typeof t=="object")return ft.fromObject(t);throw new mr(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[r]=Ole(t);return r?ft.fromObject(r,n):ft.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[r]=zle(t);return r?ft.fromObject(r,n):ft.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new mr("need to specify a reason the Duration is invalid");const r=t instanceof Na?t:new Na(t,n);if(pn.throwOnInvalid)throw new pse(r);return new ft({invalid:r})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new CF(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?gr.create(this.loc,r).formatDurationFromString(this,t):TT}toHuman(t={}){if(!this.isValid)return TT;const n=t.showZeros!==!1,r=gc.map(i=>{const a=this.values[i];return He(a)||a===0&&!n?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:i.slice(0,-1)}).format(a)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=s6(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},Ye.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?NT(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=ft.fromDurationLike(t),r={};for(const i of gc)(yd(n.values,i)||yd(this.values,i))&&(r[i]=n.get(i)+this.get(i));return Ps(this,{values:r},!0)}minus(t){if(!this.isValid)return this;const n=ft.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=gT(t(this.values[r],r));return Ps(this,{values:n},!0)}get(t){return this[ft.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...C2(t,ft.normalizeUnit)};return Ps(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:r,matrix:i}={}){const a={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:i,conversionAccuracy:r};return Ps(this,a)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return zT(this.matrix,t),Ps(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=RT(this.normalize().shiftToAll().toObject());return Ps(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(o=>ft.normalizeUnit(o));const n={},r={},i=this.toObject();let a;for(const o of gc)if(t.indexOf(o)>=0){a=o;let s=0;for(const u in r)s+=this.matrix[u][o]*r[u],r[u]=0;Jl(i[o])&&(s+=i[o]);const l=Math.trunc(s);n[o]=l,r[o]=(s*1e3-l*1e3)/1e3}else Jl(i[o])&&(r[o]=i[o]);for(const o in r)r[o]!==0&&(n[a]+=o===a?r[o]:r[o]/this.matrix[a][o]);return zT(this.matrix,n),Ps(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return Ps(this,{values:t},!0)}removeZeros(){if(!this.isValid)return this;const t=RT(this.values);return Ps(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(r,i){return r===void 0||r===0?i===void 0||i===0:r===i}for(const r of gc)if(!n(this.values[r],t.values[r]))return!1;return!0}}const Ad="Invalid Interval";function Ule(e,t){return!e||!e.isValid?mn.invalid("missing or invalid start"):!t||!t.isValid?mn.invalid("missing or invalid end"):t<e?mn.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class mn{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new mr("need to specify a reason the Interval is invalid");const r=t instanceof Na?t:new Na(t,n);if(pn.throwOnInvalid)throw new hse(r);return new mn({invalid:r})}static fromDateTimes(t,n){const r=Y1(t),i=Y1(n);return Ule(r,i)??new mn({start:r,end:i})}static after(t,n){const r=ft.fromDurationLike(n),i=Y1(t);return mn.fromDateTimes(i,i.plus(r))}static before(t,n){const r=ft.fromDurationLike(n),i=Y1(t);return mn.fromDateTimes(i.minus(r),i)}static fromISO(t,n){const[r,i]=(t||"").split("/",2);if(r&&i){let a,o;try{a=Ye.fromISO(r,n),o=a.isValid}catch{o=!1}let s,l;try{s=Ye.fromISO(i,n),l=s.isValid}catch{l=!1}if(o&&l)return mn.fromDateTimes(a,s);if(o){const u=ft.fromISO(i,n);if(u.isValid)return mn.after(a,u)}else if(l){const u=ft.fromISO(r,n);if(u.isValid)return mn.before(s,u)}}return mn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",n){if(!this.isValid)return NaN;const r=this.start.startOf(t,n);let i;return n!=null&&n.useLocaleWeeks?i=this.end.reconfigure({locale:r.locale}):i=this.end,i=i.startOf(t,n),Math.floor(i.diff(r,t).get(t))+(i.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?mn.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(Y1).filter(o=>this.contains(o)).sort((o,s)=>o.toMillis()-s.toMillis()),r=[];let{s:i}=this,a=0;for(;i<this.e;){const o=n[a]||this.e,s=+o>+this.e?this.e:o;r.push(mn.fromDateTimes(i,s)),i=s,a+=1}return r}splitBy(t){const n=ft.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,i=1,a;const o=[];for(;r<this.e;){const s=this.start.plus(n.mapUnits(l=>l*i));a=+s>+this.e?this.e:s,o.push(mn.fromDateTimes(r,a)),r=a,i+=1}return o}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,r=this.e<t.e?this.e:t.e;return n>=r?null:mn.fromDateTimes(n,r)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,r=this.e>t.e?this.e:t.e;return mn.fromDateTimes(n,r)}static merge(t){const[n,r]=t.sort((i,a)=>i.s-a.s).reduce(([i,a],o)=>a?a.overlaps(o)||a.abutsStart(o)?[i,a.union(o)]:[i.concat([a]),o]:[i,o],[[],null]);return r&&n.push(r),n}static xor(t){let n=null,r=0;const i=[],a=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),o=Array.prototype.concat(...a),s=o.sort((l,u)=>l.time-u.time);for(const l of s)r+=l.type==="s"?1:-1,r===1?n=l.time:(n&&+n!=+l.time&&i.push(mn.fromDateTimes(n,l.time)),n=null);return mn.merge(i)}difference(...t){return mn.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Ad}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=m2,n={}){return this.isValid?gr.create(this.s.loc.clone(n),t).formatInterval(this):Ad}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Ad}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Ad}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Ad}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:Ad}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):ft.invalid(this.invalidReason)}mapEndpoints(t){return mn.fromDateTimes(t(this.s),t(this.e))}}let S2=class{static hasDST(e=pn.defaultZone){const t=Ye.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return Rs.isValidZone(e)}static normalizeZone(e){return Xl(e,pn.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||kt.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||kt.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||kt.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||kt.create(t,n,i)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||kt.create(t,n,i)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||kt.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||kt.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return kt.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return kt.create(t,null,"gregory").eras(e)}static features(){return{relative:fT(),localeWeek:dT()}}};function PT(e,t){const n=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(ft.fromMillis(r).as("days"))}function Vle(e,t,n){const r=[["years",(l,u)=>u.year-l.year],["quarters",(l,u)=>u.quarter-l.quarter+(u.year-l.year)*4],["months",(l,u)=>u.month-l.month+(u.year-l.year)*12],["weeks",(l,u)=>{const c=PT(l,u);return(c-c%7)/7}],["days",PT]],i={},a=e;let o,s;for(const[l,u]of r)n.indexOf(l)>=0&&(o=l,i[l]=u(e,t),s=a.plus(i),s>t?(i[l]--,e=a.plus(i),e>t&&(s=e,i[l]--,e=a.plus(i))):e=s);return[e,i,s,o]}function Wle(e,t,n,r){let[i,a,o,s]=Vle(e,t,n);const l=t-i,u=n.filter(f=>["hours","minutes","seconds","milliseconds"].indexOf(f)>=0);u.length===0&&(o<t&&(o=i.plus({[s]:1})),o!==i&&(a[s]=(a[s]||0)+l/(o-i)));const c=ft.fromObject(a,r);return u.length>0?ft.fromMillis(l,r).shiftTo(...u).plus(c):c}const Hle="missing Intl.DateTimeFormat.formatToParts support";function xt(e,t=n=>n){return{regex:e,deser:([n])=>t(Rse(n))}}const BT="[  ]",qT=new RegExp(BT,"g");function Yle(e){return e.replace(/\./g,"\\.?").replace(qT,BT)}function LT(e){return e.replace(/\./g,"").replace(qT," ").toLowerCase()}function za(e,t){return e===null?null:{regex:RegExp(e.map(Yle).join("|")),deser:([n])=>e.findIndex(r=>LT(n)===LT(r))+t}}function jT(e,t){return{regex:e,deser:([,n,r])=>k2(n,r),groups:t}}function E2(e){return{regex:e,deser:([t])=>t}}function Gle(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Zle(e,t){const n=Oa(t),r=Oa(t,"{2}"),i=Oa(t,"{3}"),a=Oa(t,"{4}"),o=Oa(t,"{6}"),s=Oa(t,"{1,2}"),l=Oa(t,"{1,3}"),u=Oa(t,"{1,6}"),c=Oa(t,"{1,9}"),f=Oa(t,"{2,4}"),d=Oa(t,"{4,6}"),h=m=>({regex:RegExp(Gle(m.val)),deser:([g])=>g,literal:!0}),p=(m=>{if(e.literal)return h(m);switch(m.val){case"G":return za(t.eras("short"),0);case"GG":return za(t.eras("long"),0);case"y":return xt(u);case"yy":return xt(f,l6);case"yyyy":return xt(a);case"yyyyy":return xt(d);case"yyyyyy":return xt(o);case"M":return xt(s);case"MM":return xt(r);case"MMM":return za(t.months("short",!0),1);case"MMMM":return za(t.months("long",!0),1);case"L":return xt(s);case"LL":return xt(r);case"LLL":return za(t.months("short",!1),1);case"LLLL":return za(t.months("long",!1),1);case"d":return xt(s);case"dd":return xt(r);case"o":return xt(l);case"ooo":return xt(i);case"HH":return xt(r);case"H":return xt(s);case"hh":return xt(r);case"h":return xt(s);case"mm":return xt(r);case"m":return xt(s);case"q":return xt(s);case"qq":return xt(r);case"s":return xt(s);case"ss":return xt(r);case"S":return xt(l);case"SSS":return xt(i);case"u":return E2(c);case"uu":return E2(s);case"uuu":return xt(n);case"a":return za(t.meridiems(),0);case"kkkk":return xt(a);case"kk":return xt(f,l6);case"W":return xt(s);case"WW":return xt(r);case"E":case"c":return xt(n);case"EEE":return za(t.weekdays("short",!1),1);case"EEEE":return za(t.weekdays("long",!1),1);case"ccc":return za(t.weekdays("short",!0),1);case"cccc":return za(t.weekdays("long",!0),1);case"Z":case"ZZ":return jT(new RegExp(`([+-]${s.source})(?::(${r.source}))?`),2);case"ZZZ":return jT(new RegExp(`([+-]${s.source})(${r.source})?`),2);case"z":return E2(/[a-z_+-/]{1,256}?/i);case" ":return E2(/[^\S\n\r]/);default:return h(m)}})(e)||{invalidReason:Hle};return p.token=e,p}const Xle={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function Jle(e,t,n){const{type:r,value:i}=e;if(r==="literal"){const l=/^\s+$/.test(i);return{literal:!l,val:l?" ":i}}const a=t[r];let o=r;r==="hour"&&(t.hour12!=null?o=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?o="hour12":o="hour24":o=n.hour12?"hour12":"hour24");let s=Xle[o];if(typeof s=="object"&&(s=s[a]),s)return{literal:!1,val:s}}function Qle(e){return[`^${e.map(t=>t.regex).reduce((t,n)=>`${t}(${n.source})`,"")}$`,e]}function Kle(e,t,n){const r=e.match(t);if(r){const i={};let a=1;for(const o in n)if(yd(n,o)){const s=n[o],l=s.groups?s.groups+1:1;!s.literal&&s.token&&(i[s.token.val[0]]=s.deser(r.slice(a,a+l))),a+=l}return[r,i]}else return[r,{}]}function eue(e){const t=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return He(e.z)||(n=Rs.create(e.z)),He(e.Z)||(n||(n=new Nr(e.Z)),r=e.Z),He(e.q)||(e.M=(e.q-1)*3+1),He(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),He(e.u)||(e.S=o6(e.u)),[Object.keys(e).reduce((i,a)=>{const o=t(a);return o&&(i[o]=e[a]),i},{}),n,r]}let d6=null;function tue(){return d6||(d6=Ye.fromMillis(1555555555555)),d6}function nue(e,t){if(e.literal)return e;const n=gr.macroTokenToFormatOpts(e.val),r=WT(n,t);return r==null||r.includes(void 0)?e:r}function IT(e,t){return Array.prototype.concat(...e.map(n=>nue(n,t)))}class UT{constructor(t,n){if(this.locale=t,this.format=n,this.tokens=IT(gr.parseFormat(n),t),this.units=this.tokens.map(r=>Zle(r,t)),this.disqualifyingUnit=this.units.find(r=>r.invalidReason),!this.disqualifyingUnit){const[r,i]=Qle(this.units);this.regex=RegExp(r,"i"),this.handlers=i}}explainFromTokens(t){if(this.isValid){const[n,r]=Kle(t,this.regex,this.handlers),[i,a,o]=r?eue(r):[null,null,void 0];if(yd(r,"a")&&yd(r,"H"))throw new gd("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:r,result:i,zone:a,specificOffset:o}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function VT(e,t,n){return new UT(e,n).explainFromTokens(t)}function rue(e,t,n){const{result:r,zone:i,specificOffset:a,invalidReason:o}=VT(e,t,n);return[r,i,a,o]}function WT(e,t){if(!e)return null;const n=gr.create(t,e).dtFormatter(tue()),r=n.formatToParts(),i=n.resolvedOptions();return r.map(a=>Jle(a,e,i))}const h6="Invalid DateTime",HT=864e13;function W1(e){return new Na("unsupported zone",`the zone "${e.name}" is not supported`)}function p6(e){return e.weekData===null&&(e.weekData=b2(e.c)),e.weekData}function m6(e){return e.localWeekData===null&&(e.localWeekData=b2(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function yc(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Ye({...n,...t,old:n})}function YT(e,t,n){let r=e-t*60*1e3;const i=n.offset(r);if(t===i)return[r,t];r-=(i-t)*60*1e3;const a=n.offset(r);return i===a?[r,i]:[e-Math.min(i,a)*60*1e3,Math.max(i,a)]}function M2(e,t){e+=t*60*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function D2(e,t,n){return YT(_2(e),t,n)}function GT(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,a={...e.c,year:r,month:i,day:Math.min(e.c.day,w2(r,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},o=ft.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=_2(a);let[l,u]=YT(s,n,e.zone);return o!==0&&(l+=o,u=e.zone.offset(l)),{ts:l,o:u}}function Sd(e,t,n,r,i,a){const{setZone:o,zone:s}=n;if(e&&Object.keys(e).length!==0||t){const l=t||s,u=Ye.fromObject(e,{...n,zone:l,specificOffset:a});return o?u:u.setZone(s)}else return Ye.invalid(new Na("unparsable",`the input "${i}" can't be parsed as ${r}`))}function $2(e,t,n=!0){return e.isValid?gr.create(kt.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function g6(e,t,n){const r=e.c.year>9999||e.c.year<0;let i="";if(r&&e.c.year>=0&&(i+="+"),i+=Sn(e.c.year,r?6:4),n==="year")return i;if(t){if(i+="-",i+=Sn(e.c.month),n==="month")return i;i+="-"}else if(i+=Sn(e.c.month),n==="month")return i;return i+=Sn(e.c.day),i}function ZT(e,t,n,r,i,a,o){let s=!n||e.c.millisecond!==0||e.c.second!==0,l="";switch(o){case"day":case"month":case"year":break;default:if(l+=Sn(e.c.hour),o==="hour")break;if(t){if(l+=":",l+=Sn(e.c.minute),o==="minute")break;s&&(l+=":",l+=Sn(e.c.second))}else{if(l+=Sn(e.c.minute),o==="minute")break;s&&(l+=Sn(e.c.second))}if(o==="second")break;s&&(!r||e.c.millisecond!==0)&&(l+=".",l+=Sn(e.c.millisecond,3))}return i&&(e.isOffsetFixed&&e.offset===0&&!a?l+="Z":e.o<0?(l+="-",l+=Sn(Math.trunc(-e.o/60)),l+=":",l+=Sn(Math.trunc(-e.o%60))):(l+="+",l+=Sn(Math.trunc(e.o/60)),l+=":",l+=Sn(Math.trunc(e.o%60)))),a&&(l+="["+e.zone.ianaName+"]"),l}const XT={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},iue={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},aue={ordinal:1,hour:0,minute:0,second:0,millisecond:0},F2=["year","month","day","hour","minute","second","millisecond"],oue=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],sue=["year","ordinal","hour","minute","second","millisecond"];function T2(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new CF(e);return t}function JT(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return T2(e)}}function lue(e){if(H1===void 0&&(H1=pn.now()),e.type!=="iana")return e.offset(H1);const t=e.name;let n=y6.get(t);return n===void 0&&(n=e.offset(H1),y6.set(t,n)),n}function QT(e,t){const n=Xl(t.zone,pn.defaultZone);if(!n.isValid)return Ye.invalid(W1(n));const r=kt.fromObject(t);let i,a;if(He(e.year))i=pn.now();else{for(const l of F2)He(e[l])&&(e[l]=XT[l]);const o=uT(e)||cT(e);if(o)return Ye.invalid(o);const s=lue(n);[i,a]=D2(e,s,n)}return new Ye({ts:i,zone:n,loc:r,o:a})}function KT(e,t,n){const r=He(n.round)?!0:n.round,i=He(n.rounding)?"trunc":n.rounding,a=(s,l)=>(s=s6(s,r||n.calendary?0:2,n.calendary?"round":i),t.loc.clone(n).relFormatter(n).format(s,l)),o=s=>n.calendary?t.hasSame(e,s)?0:t.startOf(s).diff(e.startOf(s),s).get(s):t.diff(e,s).get(s);if(n.unit)return a(o(n.unit),n.unit);for(const s of n.units){const l=o(s);if(Math.abs(l)>=1)return a(l,s)}return a(e>t?-0:0,n.units[n.units.length-1])}function eO(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}let H1;const y6=new Map;class Ye{constructor(t){const n=t.zone||pn.defaultZone;let r=t.invalid||(Number.isNaN(t.ts)?new Na("invalid input"):null)||(n.isValid?null:W1(n));this.ts=He(t.ts)?pn.now():t.ts;let i=null,a=null;if(!r)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[i,a]=[t.old.c,t.old.o];else{const o=Jl(t.o)&&!t.old?t.o:n.offset(this.ts);i=M2(this.ts,o),r=Number.isNaN(i.year)?new Na("invalid input"):null,i=r?null:i,a=r?null:o}this._zone=n,this.loc=t.loc||kt.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=i,this.o=a,this.isLuxonDateTime=!0}static now(){return new Ye({})}static local(){const[t,n]=eO(arguments),[r,i,a,o,s,l,u]=n;return QT({year:r,month:i,day:a,hour:o,minute:s,second:l,millisecond:u},t)}static utc(){const[t,n]=eO(arguments),[r,i,a,o,s,l,u]=n;return t.zone=Nr.utcInstance,QT({year:r,month:i,day:a,hour:o,minute:s,second:l,millisecond:u},t)}static fromJSDate(t,n={}){const r=jse(t)?t.valueOf():NaN;if(Number.isNaN(r))return Ye.invalid("invalid input");const i=Xl(n.zone,pn.defaultZone);return i.isValid?new Ye({ts:r,zone:i,loc:kt.fromObject(n)}):Ye.invalid(W1(i))}static fromMillis(t,n={}){if(Jl(t))return t<-HT||t>HT?Ye.invalid("Timestamp out of range"):new Ye({ts:t,zone:Xl(n.zone,pn.defaultZone),loc:kt.fromObject(n)});throw new mr(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(Jl(t))return new Ye({ts:t*1e3,zone:Xl(n.zone,pn.defaultZone),loc:kt.fromObject(n)});throw new mr("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const r=Xl(n.zone,pn.defaultZone);if(!r.isValid)return Ye.invalid(W1(r));const i=kt.fromObject(n),a=C2(t,JT),{minDaysInFirstWeek:o,startOfWeek:s}=lT(a,i),l=pn.now(),u=He(n.specificOffset)?r.offset(l):n.specificOffset,c=!He(a.ordinal),f=!He(a.year),d=!He(a.month)||!He(a.day),h=f||d,p=a.weekYear||a.weekNumber;if((h||c)&&p)throw new gd("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&c)throw new gd("Can't mix ordinal dates with month/day");const m=p||a.weekday&&!h;let g,y,v=M2(l,u);m?(g=oue,y=iue,v=b2(v,o,s)):c?(g=sue,y=aue,v=i6(v)):(g=F2,y=XT);let b=!1;for(const S of g){const E=a[S];He(E)?b?a[S]=y[S]:a[S]=v[S]:b=!0}const w=m?Bse(a,o,s):c?qse(a):uT(a),_=w||cT(a);if(_)return Ye.invalid(_);const k=m?oT(a,o,s):c?sT(a):a,[x,C]=D2(k,u,r),A=new Ye({ts:x,zone:r,o:C,loc:i});return a.weekday&&h&&t.weekday!==A.weekday?Ye.invalid("mismatched weekday",`you can't specify both a weekday of ${a.weekday} and a date of ${A.toISO()}`):A.isValid?A:Ye.invalid(A.invalid)}static fromISO(t,n={}){const[r,i]=$le(t);return Sd(r,i,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[r,i]=Fle(t);return Sd(r,i,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[r,i]=Tle(t);return Sd(r,i,n,"HTTP",n)}static fromFormat(t,n,r={}){if(He(t)||He(n))throw new mr("fromFormat requires an input string and a format");const{locale:i=null,numberingSystem:a=null}=r,o=kt.fromOpts({locale:i,numberingSystem:a,defaultToEN:!0}),[s,l,u,c]=rue(o,t,n);return c?Ye.invalid(c):Sd(s,l,r,`format ${n}`,t,u)}static fromString(t,n,r={}){return Ye.fromFormat(t,n,r)}static fromSQL(t,n={}){const[r,i]=qle(t);return Sd(r,i,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new mr("need to specify a reason the DateTime is invalid");const r=t instanceof Na?t:new Na(t,n);if(pn.throwOnInvalid)throw new dse(r);return new Ye({invalid:r})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const r=WT(t,kt.fromObject(n));return r?r.map(i=>i?i.val:null).join(""):null}static expandFormat(t,n={}){return IT(gr.parseFormat(t),kt.fromObject(n)).map(r=>r.val).join("")}static resetCache(){H1=void 0,y6.clear()}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?p6(this).weekYear:NaN}get weekNumber(){return this.isValid?p6(this).weekNumber:NaN}get weekday(){return this.isValid?p6(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?m6(this).weekday:NaN}get localWeekNumber(){return this.isValid?m6(this).weekNumber:NaN}get localWeekYear(){return this.isValid?m6(this).weekYear:NaN}get ordinal(){return this.isValid?i6(this.c).ordinal:NaN}get monthShort(){return this.isValid?S2.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?S2.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?S2.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?S2.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,n=6e4,r=_2(this.c),i=this.zone.offset(r-t),a=this.zone.offset(r+t),o=this.zone.offset(r-i*n),s=this.zone.offset(r-a*n);if(o===s)return[this];const l=r-o*n,u=r-s*n,c=M2(l,o),f=M2(u,s);return c.hour===f.hour&&c.minute===f.minute&&c.second===f.second&&c.millisecond===f.millisecond?[yc(this,{ts:l}),yc(this,{ts:u})]:[this]}get isInLeapYear(){return L1(this.year)}get daysInMonth(){return w2(this.year,this.month)}get daysInYear(){return this.isValid?vd(this.year):NaN}get weeksInWeekYear(){return this.isValid?j1(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?j1(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:r,calendar:i}=gr.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:i}}toUTC(t=0,n={}){return this.setZone(Nr.instance(t),n)}toLocal(){return this.setZone(pn.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(t=Xl(t,pn.defaultZone),t.equals(this.zone))return this;if(t.isValid){let i=this.ts;if(n||r){const a=t.offset(this.ts),o=this.toObject();[i]=D2(o,a,t)}return yc(this,{ts:i,zone:t})}else return Ye.invalid(W1(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:r}={}){const i=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:r});return yc(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=C2(t,JT),{minDaysInFirstWeek:r,startOfWeek:i}=lT(n,this.loc),a=!He(n.weekYear)||!He(n.weekNumber)||!He(n.weekday),o=!He(n.ordinal),s=!He(n.year),l=!He(n.month)||!He(n.day),u=s||l,c=n.weekYear||n.weekNumber;if((u||o)&&c)throw new gd("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&o)throw new gd("Can't mix ordinal dates with month/day");let f;a?f=oT({...b2(this.c,r,i),...n},r,i):He(n.ordinal)?(f={...this.toObject(),...n},He(n.day)&&(f.day=Math.min(w2(f.year,f.month),f.day))):f=sT({...i6(this.c),...n});const[d,h]=D2(f,this.o,this.zone);return yc(this,{ts:d,o:h})}plus(t){if(!this.isValid)return this;const n=ft.fromDurationLike(t);return yc(this,GT(this,n))}minus(t){if(!this.isValid)return this;const n=ft.fromDurationLike(t).negate();return yc(this,GT(this,n))}startOf(t,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const r={},i=ft.normalizeUnit(t);switch(i){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(i==="weeks")if(n){const a=this.loc.getStartOfWeek(),{weekday:o}=this;o<a&&(r.weekNumber=this.weekNumber-1),r.weekday=a}else r.weekday=1;if(i==="quarters"){const a=Math.ceil(this.month/3);r.month=(a-1)*3+1}return this.set(r)}endOf(t,n){return this.isValid?this.plus({[t]:1}).startOf(t,n).minus(1):this}toFormat(t,n={}){return this.isValid?gr.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):h6}toLocaleString(t=m2,n={}){return this.isValid?gr.create(this.loc.clone(n),t).formatDateTime(this):h6}toLocaleParts(t={}){return this.isValid?gr.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:i=!0,extendedZone:a=!1,precision:o="milliseconds"}={}){if(!this.isValid)return null;o=T2(o);const s=t==="extended";let l=g6(this,s,o);return F2.indexOf(o)>=3&&(l+="T"),l+=ZT(this,s,n,r,i,a,o),l}toISODate({format:t="extended",precision:n="day"}={}){return this.isValid?g6(this,t==="extended",T2(n)):null}toISOWeekDate(){return $2(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:i=!1,extendedZone:a=!1,format:o="extended",precision:s="milliseconds"}={}){return this.isValid?(s=T2(s),(i&&F2.indexOf(s)>=3?"T":"")+ZT(this,o==="extended",n,t,r,a,s)):null}toRFC2822(){return $2(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return $2(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?g6(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let i="HH:mm:ss.SSS";return(n||t)&&(r&&(i+=" "),n?i+="z":t&&(i+="ZZ")),$2(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():h6}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",r={}){if(!this.isValid||!t.isValid)return ft.invalid("created by diffing an invalid DateTime");const i={locale:this.locale,numberingSystem:this.numberingSystem,...r},a=Ise(n).map(ft.normalizeUnit),o=t.valueOf()>this.valueOf(),s=o?this:t,l=o?t:this,u=Wle(s,l,a,i);return o?u.negate():u}diffNow(t="milliseconds",n={}){return this.diff(Ye.now(),t,n)}until(t){return this.isValid?mn.fromDateTimes(this,t):this}hasSame(t,n,r){if(!this.isValid)return!1;const i=t.valueOf(),a=this.setZone(t.zone,{keepLocalTime:!0});return a.startOf(n,r)<=i&&i<=a.endOf(n,r)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||Ye.fromObject({},{zone:this.zone}),r=t.padding?this<n?-t.padding:t.padding:0;let i=["years","months","days","hours","minutes","seconds"],a=t.unit;return Array.isArray(t.unit)&&(i=t.unit,a=void 0),KT(n,this.plus(r),{...t,numeric:"always",units:i,unit:a})}toRelativeCalendar(t={}){return this.isValid?KT(t.base||Ye.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(Ye.isDateTime))throw new mr("min requires all arguments be DateTimes");return hT(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(Ye.isDateTime))throw new mr("max requires all arguments be DateTimes");return hT(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,r={}){const{locale:i=null,numberingSystem:a=null}=r,o=kt.fromOpts({locale:i,numberingSystem:a,defaultToEN:!0});return VT(o,t,n)}static fromStringExplain(t,n,r={}){return Ye.fromFormatExplain(t,n,r)}static buildFormatParser(t,n={}){const{locale:r=null,numberingSystem:i=null}=n,a=kt.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});return new UT(a,t)}static fromFormatParser(t,n,r={}){if(He(t)||He(n))throw new mr("fromFormatParser requires an input string and a format parser");const{locale:i=null,numberingSystem:a=null}=r,o=kt.fromOpts({locale:i,numberingSystem:a,defaultToEN:!0});if(!o.equals(n.locale))throw new mr(`fromFormatParser called with a locale of ${o}, but the format parser was created for ${n.locale}`);const{result:s,zone:l,specificOffset:u,invalidReason:c}=n.explainFromTokens(t);return c?Ye.invalid(c):Sd(s,l,r,`format ${n.format}`,t,u)}static get DATE_SHORT(){return m2}static get DATE_MED(){return AF}static get DATE_MED_WITH_WEEKDAY(){return mse}static get DATE_FULL(){return SF}static get DATE_HUGE(){return EF}static get TIME_SIMPLE(){return MF}static get TIME_WITH_SECONDS(){return DF}static get TIME_WITH_SHORT_OFFSET(){return $F}static get TIME_WITH_LONG_OFFSET(){return FF}static get TIME_24_SIMPLE(){return TF}static get TIME_24_WITH_SECONDS(){return OF}static get TIME_24_WITH_SHORT_OFFSET(){return NF}static get TIME_24_WITH_LONG_OFFSET(){return zF}static get DATETIME_SHORT(){return RF}static get DATETIME_SHORT_WITH_SECONDS(){return PF}static get DATETIME_MED(){return BF}static get DATETIME_MED_WITH_SECONDS(){return qF}static get DATETIME_MED_WITH_WEEKDAY(){return gse}static get DATETIME_FULL(){return LF}static get DATETIME_FULL_WITH_SECONDS(){return jF}static get DATETIME_HUGE(){return IF}static get DATETIME_HUGE_WITH_SECONDS(){return UF}}function Y1(e){if(Ye.isDateTime(e))return e;if(e&&e.valueOf&&Jl(e.valueOf()))return Ye.fromJSDate(e);if(e&&typeof e=="object")return Ye.fromObject(e);throw new mr(`Unknown datetime argument: ${e}, of type ${typeof e}`)}function Ra(e,t,n=!1){if(e!==void 0)switch(e){case"ordinal":return{range:["#C2D5EE","#1A73E8"]};case"temporal":case"quantitative":return t?n?{range:["#6BA4EE","#EEA361"]}:{range:["#1A73E8","#E8710A"]}:{range:["#C2D5EE","#1A73E8"]};case"nominal":return n?{range:["#6BA4EE","#66CEDC","#EC72B8","#EEA361","#F9C85B","#AACD85","#B87CED","#ACB0B3"]}:{range:["#1A73E8","#12B5CB","#E52592","#E8710A","#F9AB00","#7CB342","#9334E6","#80868B"]}}}function Xt(e,t){return e.toString().padStart(t,"0")}function O2(e,t,n){t||(t="second");const r=Ye.fromJSDate(e,{zone:n??"UTC"});switch(t){case"year":return`${Xt(r.year,4)}`;case"quarter":{const i=Xt(r.year,4),a=Math.floor(r.month/3)+1;return`${i}-Q${a}`}case"month":{const i=Xt(r.year,2),a=Xt(r.month,2);return`${i}-${a}`}case"week":{const i=Xt(r.year,2),a=Xt(r.month,2),o=Xt(r.day,2);return`${i}-${a}-${o}-WK`}case"day":{const i=Xt(r.year,2),a=Xt(r.month,2),o=Xt(r.day,2);return`${i}-${a}-${o}`}case"hour":{const i=Xt(r.year,2),a=Xt(r.month,2),o=Xt(r.day,2),s=Xt(r.hour,2);return`${i}-${a}-${o} ${s}`}case"minute":{const i=Xt(r.year,2),a=Xt(r.month,2),o=Xt(r.day,2),s=Xt(r.hour,2),l=Xt(r.minute,2);return`${i}-${a}-${o} ${s}:${l}`}case"second":{const i=Xt(r.year,2),a=Xt(r.month,2),o=Xt(r.day,2),s=Xt(r.hour,2),l=Xt(r.minute,2),u=Xt(r.second,2);return`${i}-${a}-${o} ${s}:${l}:${u}`}default:throw new Error("Unknown timeframe.")}}function tO(e,t){const n=Ye.fromJSDate(e,{zone:t??"UTC"});return new Date(n.year,n.month-1,n.day,n.hour,n.minute,n.second,n.millisecond)}let v6;const uue=100;async function N2(){const e=Date.now();if(!(v6&&e<v6+uue))return v6=e,new Promise(t=>{setTimeout(t,0)})}function Ki(e,t){const n=e.createElement("span");return n.classList.add("error"),n.appendChild(e.createTextNode(typeof t=="string"?t:t.message)),n}function G1(e){const t=e.createElement("span");return t.appendChild(e.createTextNode("∅")),t.classList.add("value-null"),t}function nO(e){const t=e.createElement("div");return t.classList.add("drill-icon"),t.innerHTML=`
2
2
  <style>
3
3
  .drill-icon:hover .copy-circle {
4
4
  fill: #eef7f9;
@@ -12,7 +12,7 @@
12
12
  href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap"
13
13
  />
14
14
  <title>Malloy Publisher</title>
15
- <script type="module" crossorigin src="/assets/index-DUmIwFQ_.js"></script>
15
+ <script type="module" crossorigin src="/assets/index-CGKwxuak.js"></script>
16
16
  <link rel="stylesheet" crossorigin href="/assets/index-CMlGQMcl.css">
17
17
  </head>
18
18
  <body>