Files
qhmes/web-dist/js/parser-CkLNbmjG.js
2026-06-16 18:19:57 +08:00

3 lines
87 KiB
Java
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var di=Object.defineProperty,hi=Object.defineProperties;var mi=Object.getOwnPropertyDescriptors;var rt=Object.getOwnPropertySymbols;var sn=Object.prototype.hasOwnProperty,an=Object.prototype.propertyIsEnumerable;var on=Math.pow,nn=(T,p,y)=>p in T?di(T,p,{enumerable:!0,configurable:!0,writable:!0,value:y}):T[p]=y,E=(T,p)=>{for(var y in p||(p={}))sn.call(p,y)&&nn(T,y,p[y]);if(rt)for(var y of rt(p))an.call(p,y)&&nn(T,y,p[y]);return T},te=(T,p)=>hi(T,mi(p));var _t=(T,p)=>{var y={};for(var c in T)sn.call(T,c)&&p.indexOf(c)<0&&(y[c]=T[c]);if(T!=null&&rt)for(var c of rt(T))p.indexOf(c)<0&&an.call(T,c)&&(y[c]=T[c]);return y};import{g as yi}from"./emoji-mart-vue-fast-R0uJEDq-.js";import{gM as gi}from"./index-X7Y8jykP.js";var B={},un;function pi(){if(un)return B;un=1,Object.defineProperty(B,"__esModule",{value:!0});class T extends Error{}class p extends T{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class y extends T{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class c extends T{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class h extends T{}class m extends T{constructor(e){super(`Invalid unit ${e}`)}}class f extends T{}class w extends T{constructor(){super("Zone is an abstract class")}}const l="numeric",v="short",g="long",k={year:l,month:l,day:l},I={year:l,month:v,day:l},A={year:l,month:v,day:l,weekday:v},M={year:l,month:g,day:l},z={year:l,month:g,day:l,weekday:g},W={hour:l,minute:l},L={hour:l,minute:l,second:l},b={hour:l,minute:l,second:l,timeZoneName:v},U={hour:l,minute:l,second:l,timeZoneName:g},j={hour:l,minute:l,hourCycle:"h23"},C={hour:l,minute:l,second:l,hourCycle:"h23"},$={hour:l,minute:l,second:l,hourCycle:"h23",timeZoneName:v},P={hour:l,minute:l,second:l,hourCycle:"h23",timeZoneName:g},Q={year:l,month:l,day:l,hour:l,minute:l},ue={year:l,month:l,day:l,hour:l,minute:l,second:l},$t={year:l,month:v,day:l,hour:l,minute:l},Zt={year:l,month:v,day:l,hour:l,minute:l,second:l},mn={year:l,month:v,day:l,weekday:v,hour:l,minute:l},zt={year:l,month:g,day:l,hour:l,minute:l,timeZoneName:v},Ut={year:l,month:g,day:l,hour:l,minute:l,second:l,timeZoneName:v},At={year:l,month:g,day:l,weekday:g,hour:l,minute:l,timeZoneName:g},Rt={year:l,month:g,day:l,weekday:g,hour:l,minute:l,second:l,timeZoneName:g};class ge{get type(){throw new w}get name(){throw new w}get ianaName(){return this.name}get isUniversal(){throw new w}offsetName(e,t){throw new w}formatOffset(e,t){throw new w}offset(e){throw new w}equals(e){throw new w}get isValid(){throw new w}}let nt=null;class Ie extends ge{static get instance(){return nt===null&&(nt=new Ie),nt}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return yr(e,t,n)}formatOffset(e,t){return be(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}const st=new Map;function yn(r){let e=st.get(r);return e===void 0&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),st.set(r,e)),e}const gn={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function pn(r,e){const t=r.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(t),[,s,i,a,o,u,d,O]=n;return[a,s,i,o,u,d,O]}function wn(r,e){const t=r.formatToParts(e),n=[];for(let s=0;s<t.length;s++){const{type:i,value:a}=t[s],o=gn[i];i==="era"?n[o]=a:D(o)||(n[o]=parseInt(a,10))}return n}const it=new Map;class ae extends ge{static create(e){let t=it.get(e);return t===void 0&&it.set(e,t=new ae(e)),t}static resetCache(){it.clear(),st.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(t){return!1}}constructor(e){super(),this.zoneName=e,this.valid=ae.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return yr(e,t,n,this.name)}formatOffset(e,t){return be(this.offset(e),t)}offset(e){if(!this.valid)return NaN;const t=new Date(e);if(isNaN(t))return NaN;const n=yn(this.name);let[s,i,a,o,u,d,O]=n.formatToParts?wn(n,t):pn(n,t);o==="BC"&&(s=-Math.abs(s)+1);const Z=Pe({year:s,month:i,day:a,hour:u===24?0:u,minute:d,second:O,millisecond:0});let S=+t;const Y=S%1e3;return S-=Y>=0?Y:1e3+Y,(Z-S)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let qt={};function Tn(r,e={}){const t=JSON.stringify([r,e]);let n=qt[t];return n||(n=new Intl.ListFormat(r,e),qt[t]=n),n}const at=new Map;function ot(r,e={}){const t=JSON.stringify([r,e]);let n=at.get(t);return n===void 0&&(n=new Intl.DateTimeFormat(r,e),at.set(t,n)),n}const ut=new Map;function kn(r,e={}){const t=JSON.stringify([r,e]);let n=ut.get(t);return n===void 0&&(n=new Intl.NumberFormat(r,e),ut.set(t,n)),n}const lt=new Map;function vn(r,e={}){const a=e,{base:t}=a,n=_t(a,["base"]),s=JSON.stringify([r,n]);let i=lt.get(s);return i===void 0&&(i=new Intl.RelativeTimeFormat(r,e),lt.set(s,i)),i}let xe=null;function On(){return xe||(xe=new Intl.DateTimeFormat().resolvedOptions().locale,xe)}const ct=new Map;function Ht(r){let e=ct.get(r);return e===void 0&&(e=new Intl.DateTimeFormat(r).resolvedOptions(),ct.set(r,e)),e}const ft=new Map;function Sn(r){let e=ft.get(r);if(!e){const t=new Intl.Locale(r);e="getWeekInfo"in t?t.getWeekInfo():t.weekInfo,"minimalDays"in e||(e=E(E({},Yt),e)),ft.set(r,e)}return e}function Mn(r){const e=r.indexOf("-x-");e!==-1&&(r=r.substring(0,e));const t=r.indexOf("-u-");if(t===-1)return[r];{let n,s;try{n=ot(r).resolvedOptions(),s=r}catch(o){const u=r.substring(0,t);n=ot(u).resolvedOptions(),s=u}const{numberingSystem:i,calendar:a}=n;return[s,i,a]}}function Dn(r,e,t){return(t||e)&&(r.includes("-u-")||(r+="-u"),t&&(r+=`-ca-${t}`),e&&(r+=`-nu-${e}`)),r}function Nn(r){const e=[];for(let t=1;t<=12;t++){const n=N.utc(2009,t,1);e.push(r(n))}return e}function En(r){const e=[];for(let t=1;t<=7;t++){const n=N.utc(2016,11,13+t);e.push(r(n))}return e}function Re(r,e,t,n){const s=r.listingMode();return s==="error"?null:s==="en"?t(e):n(e)}function In(r){return r.numberingSystem&&r.numberingSystem!=="latn"?!1:r.numberingSystem==="latn"||!r.locale||r.locale.startsWith("en")||Ht(r.locale).numberingSystem==="latn"}class xn{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const o=n,{padTo:s,floor:i}=o,a=_t(o,["padTo","floor"]);if(!t||Object.keys(a).length>0){const u=E({useGrouping:!1},n);n.padTo>0&&(u.minimumIntegerDigits=n.padTo),this.inf=kn(e,u)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}else{const t=this.floor?Math.floor(e):kt(e,3);return H(t,this.padTo)}}}class Cn{constructor(e,t,n){this.opts=n,this.originalZone=void 0;let s;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const a=-1*(e.offset/60),o=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;e.offset!==0&&ae.create(o).valid?(s=o,this.dt=e):(s="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,s=e.zone.name):(s="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const i=E({},this.opts);i.timeZone=i.timeZone||s,this.dtf=ot(t,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(t=>{if(t.type==="timeZoneName"){const n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return te(E({},t),{value:n})}else return t}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class _n{constructor(e,t,n){this.opts=E({style:"long"},n),!t&&fr()&&(this.rtf=vn(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):Kn(t,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}const Yt={firstDay:1,minimalDays:4,weekend:[6,7]};class V{static fromOpts(e){return V.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,n,s,i=!1){const a=e||R.defaultLocale,o=a||(i?"en-US":On()),u=t||R.defaultNumberingSystem,d=n||R.defaultOutputCalendar,O=wt(s)||R.defaultWeekSettings;return new V(o,u,d,O,a)}static resetCache(){xe=null,at.clear(),ut.clear(),lt.clear(),ct.clear(),ft.clear()}static fromObject({locale:e,numberingSystem:t,outputCalendar:n,weekSettings:s}={}){return V.create(e,t,n,s)}constructor(e,t,n,s,i){const[a,o,u]=Mn(e);this.locale=a,this.numberingSystem=t||o||null,this.outputCalendar=n||u||null,this.weekSettings=s,this.intl=Dn(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=In(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&t?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:V.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,wt(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone(te(E({},e),{defaultToEN:!0}))}redefaultToSystem(e={}){return this.clone(te(E({},e),{defaultToEN:!1}))}months(e,t=!1){return Re(this,e,wr,()=>{const n=this.intl==="ja"||this.intl.startsWith("ja-");t&=!n;const s=t?{month:e,day:"numeric"}:{month:e},i=t?"format":"standalone";if(!this.monthsCache[i][e]){const a=n?o=>this.dtFormatter(o,s).format():o=>this.extract(o,s,"month");this.monthsCache[i][e]=Nn(a)}return this.monthsCache[i][e]})}weekdays(e,t=!1){return Re(this,e,vr,()=>{const n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},s=t?"format":"standalone";return this.weekdaysCache[s][e]||(this.weekdaysCache[s][e]=En(i=>this.extract(i,n,"weekday"))),this.weekdaysCache[s][e]})}meridiems(){return Re(this,void 0,()=>Or,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[N.utc(2016,11,13,9),N.utc(2016,11,13,19)].map(t=>this.extract(t,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Re(this,e,Sr,()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[N.utc(-40,1,1),N.utc(2017,1,1)].map(n=>this.extract(n,t,"era"))),this.eraCache[e]})}extract(e,t,n){const s=this.dtFormatter(e,t),i=s.formatToParts(),a=i.find(o=>o.type.toLowerCase()===n);return a?a.value:null}numberFormatter(e={}){return new xn(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new Cn(e,this.intl,t)}relFormatter(e={}){return new _n(this.intl,this.isEnglish(),e)}listFormatter(e={}){return Tn(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||Ht(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:dr()?Sn(this.locale):Yt}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let dt=null;class G extends ge{static get utcInstance(){return dt===null&&(dt=new G(0)),dt}static instance(e){return e===0?G.utcInstance:new G(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new G(Ge(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${be(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${be(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return be(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class Pt extends ge{constructor(e){super(),this.zoneName=e}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 ce(r,e){if(D(r)||r===null)return e;if(r instanceof ge)return r;if($n(r)){const t=r.toLowerCase();return t==="default"?e:t==="local"||t==="system"?Ie.instance:t==="utc"||t==="gmt"?G.utcInstance:G.parseSpecifier(t)||ae.create(r)}else return fe(r)?G.instance(r):typeof r=="object"&&"offset"in r&&typeof r.offset=="function"?r:new Pt(r)}const ht={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[-৯]",deva:"[-९]",fullwide:"[-]",gujr:"[-૯]",hanidec:"[|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[-೯]",laoo:"[-໙]",limb:"[᥆-᥏]",mlym:"[-൯]",mong:"[᠐-᠙]",mymr:"[-၉]",orya:"[-୯]",tamldec:"[-௯]",telu:"[-౯]",thai:"[-๙]",tibt:"[༠-༩]",latn:"\\d"},Gt={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]},bn=ht.hanidec.replace(/[\[|\]]/g,"").split("");function Fn(r){let e=parseInt(r,10);if(isNaN(e)){e="";for(let t=0;t<r.length;t++){const n=r.charCodeAt(t);if(r[t].search(ht.hanidec)!==-1)e+=bn.indexOf(r[t]);else for(const s in Gt){const[i,a]=Gt[s];n>=i&&n<=a&&(e+=n-i)}}return parseInt(e,10)}else return e}const mt=new Map;function Vn(){mt.clear()}function re({numberingSystem:r},e=""){const t=r||"latn";let n=mt.get(t);n===void 0&&(n=new Map,mt.set(t,n));let s=n.get(e);return s===void 0&&(s=new RegExp(`${ht[t]}${e}`),n.set(e,s)),s}let Jt=()=>Date.now(),jt="system",Bt=null,Qt=null,Kt=null,Xt=60,er,tr=null;class R{static get now(){return Jt}static set now(e){Jt=e}static set defaultZone(e){jt=e}static get defaultZone(){return ce(jt,Ie.instance)}static get defaultLocale(){return Bt}static set defaultLocale(e){Bt=e}static get defaultNumberingSystem(){return Qt}static set defaultNumberingSystem(e){Qt=e}static get defaultOutputCalendar(){return Kt}static set defaultOutputCalendar(e){Kt=e}static get defaultWeekSettings(){return tr}static set defaultWeekSettings(e){tr=wt(e)}static get twoDigitCutoffYear(){return Xt}static set twoDigitCutoffYear(e){Xt=e%100}static get throwOnInvalid(){return er}static set throwOnInvalid(e){er=e}static resetCaches(){V.resetCache(),ae.resetCache(),N.resetCache(),Vn()}}class ne{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const rr=[0,31,59,90,120,151,181,212,243,273,304,334],nr=[0,31,60,91,121,152,182,213,244,274,305,335];function K(r,e){return new ne("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${r}, which is invalid`)}function yt(r,e,t){const n=new Date(Date.UTC(r,e-1,t));r<100&&r>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const s=n.getUTCDay();return s===0?7:s}function sr(r,e,t){return t+(Ce(r)?nr:rr)[e-1]}function ir(r,e){const t=Ce(r)?nr:rr,n=t.findIndex(i=>i<e),s=e-t[n];return{month:n+1,day:s}}function gt(r,e){return(r-e+7)%7+1}function qe(r,e=4,t=1){const{year:n,month:s,day:i}=r,a=sr(n,s,i),o=gt(yt(n,s,i),t);let u=Math.floor((a-o+14-e)/7),d;return u<1?(d=n-1,u=_e(d,e,t)):u>_e(n,e,t)?(d=n+1,u=1):d=n,E({weekYear:d,weekNumber:u,weekday:o},je(r))}function ar(r,e=4,t=1){const{weekYear:n,weekNumber:s,weekday:i}=r,a=gt(yt(n,1,e),t),o=we(n);let u=s*7+i-a-7+e,d;u<1?(d=n-1,u+=we(d)):u>o?(d=n+1,u-=we(n)):d=n;const{month:O,day:x}=ir(d,u);return E({year:d,month:O,day:x},je(r))}function pt(r){const{year:e,month:t,day:n}=r,s=sr(e,t,n);return E({year:e,ordinal:s},je(r))}function or(r){const{year:e,ordinal:t}=r,{month:n,day:s}=ir(e,t);return E({year:e,month:n,day:s},je(r))}function ur(r,e){if(!D(r.localWeekday)||!D(r.localWeekNumber)||!D(r.localWeekYear)){if(!D(r.weekday)||!D(r.weekNumber)||!D(r.weekYear))throw new h("Cannot mix locale-based week fields with ISO-based week fields");return D(r.localWeekday)||(r.weekday=r.localWeekday),D(r.localWeekNumber)||(r.weekNumber=r.localWeekNumber),D(r.localWeekYear)||(r.weekYear=r.localWeekYear),delete r.localWeekday,delete r.localWeekNumber,delete r.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Wn(r,e=4,t=1){const n=He(r.weekYear),s=X(r.weekNumber,1,_e(r.weekYear,e,t)),i=X(r.weekday,1,7);return n?s?i?!1:K("weekday",r.weekday):K("week",r.weekNumber):K("weekYear",r.weekYear)}function Ln(r){const e=He(r.year),t=X(r.ordinal,1,we(r.year));return e?t?!1:K("ordinal",r.ordinal):K("year",r.year)}function lr(r){const e=He(r.year),t=X(r.month,1,12),n=X(r.day,1,Ye(r.year,r.month));return e?t?n?!1:K("day",r.day):K("month",r.month):K("year",r.year)}function cr(r){const{hour:e,minute:t,second:n,millisecond:s}=r,i=X(e,0,23)||e===24&&t===0&&n===0&&s===0,a=X(t,0,59),o=X(n,0,59),u=X(s,0,999);return i?a?o?u?!1:K("millisecond",s):K("second",n):K("minute",t):K("hour",e)}function D(r){return typeof r=="undefined"}function fe(r){return typeof r=="number"}function He(r){return typeof r=="number"&&r%1===0}function $n(r){return typeof r=="string"}function Zn(r){return Object.prototype.toString.call(r)==="[object Date]"}function fr(){try{return typeof Intl!="undefined"&&!!Intl.RelativeTimeFormat}catch(r){return!1}}function dr(){try{return typeof Intl!="undefined"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(r){return!1}}function zn(r){return Array.isArray(r)?r:[r]}function hr(r,e,t){if(r.length!==0)return r.reduce((n,s)=>{const i=[e(s),s];return n&&t(n[0],i[0])===n[0]?n:i},null)[1]}function Un(r,e){return e.reduce((t,n)=>(t[n]=r[n],t),{})}function pe(r,e){return Object.prototype.hasOwnProperty.call(r,e)}function wt(r){if(r==null)return null;if(typeof r!="object")throw new f("Week settings must be an object");if(!X(r.firstDay,1,7)||!X(r.minimalDays,1,7)||!Array.isArray(r.weekend)||r.weekend.some(e=>!X(e,1,7)))throw new f("Invalid week settings");return{firstDay:r.firstDay,minimalDays:r.minimalDays,weekend:Array.from(r.weekend)}}function X(r,e,t){return He(r)&&r>=e&&r<=t}function An(r,e){return r-e*Math.floor(r/e)}function H(r,e=2){const t=r<0;let n;return t?n="-"+(""+-r).padStart(e,"0"):n=(""+r).padStart(e,"0"),n}function de(r){if(!(D(r)||r===null||r===""))return parseInt(r,10)}function he(r){if(!(D(r)||r===null||r===""))return parseFloat(r)}function Tt(r){if(!(D(r)||r===null||r==="")){const e=parseFloat("0."+r)*1e3;return Math.floor(e)}}function kt(r,e,t="round"){const n=on(10,e);switch(t){case"expand":return r>0?Math.ceil(r*n)/n:Math.floor(r*n)/n;case"trunc":return Math.trunc(r*n)/n;case"round":return Math.round(r*n)/n;case"floor":return Math.floor(r*n)/n;case"ceil":return Math.ceil(r*n)/n;default:throw new RangeError(`Value rounding ${t} is out of range`)}}function Ce(r){return r%4===0&&(r%100!==0||r%400===0)}function we(r){return Ce(r)?366:365}function Ye(r,e){const t=An(e-1,12)+1,n=r+(e-t)/12;return t===2?Ce(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][t-1]}function Pe(r){let e=Date.UTC(r.year,r.month-1,r.day,r.hour,r.minute,r.second,r.millisecond);return r.year<100&&r.year>=0&&(e=new Date(e),e.setUTCFullYear(r.year,r.month-1,r.day)),+e}function mr(r,e,t){return-gt(yt(r,1,e),t)+e-1}function _e(r,e=4,t=1){const n=mr(r,e,t),s=mr(r+1,e,t);return(we(r)-n+s)/7}function vt(r){return r>99?r:r>R.twoDigitCutoffYear?1900+r:2e3+r}function yr(r,e,t,n=null){const s=new Date(r),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(i.timeZone=n);const a=E({timeZoneName:e},i),o=new Intl.DateTimeFormat(t,a).formatToParts(s).find(u=>u.type.toLowerCase()==="timezonename");return o?o.value:null}function Ge(r,e){let t=parseInt(r,10);Number.isNaN(t)&&(t=0);const n=parseInt(e,10)||0,s=t<0||Object.is(t,-0)?-n:n;return t*60+s}function gr(r){const e=Number(r);if(typeof r=="boolean"||r===""||!Number.isFinite(e))throw new f(`Invalid unit value ${r}`);return e}function Je(r,e){const t={};for(const n in r)if(pe(r,n)){const s=r[n];if(s==null)continue;t[e(n)]=gr(s)}return t}function be(r,e){const t=Math.trunc(Math.abs(r/60)),n=Math.trunc(Math.abs(r%60)),s=r>=0?"+":"-";switch(e){case"short":return`${s}${H(t,2)}:${H(n,2)}`;case"narrow":return`${s}${t}${n>0?`:${n}`:""}`;case"techie":return`${s}${H(t,2)}${H(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function je(r){return Un(r,["hour","minute","second","millisecond"])}const Rn=["January","February","March","April","May","June","July","August","September","October","November","December"],pr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],qn=["J","F","M","A","M","J","J","A","S","O","N","D"];function wr(r){switch(r){case"narrow":return[...qn];case"short":return[...pr];case"long":return[...Rn];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 Tr=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],kr=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Hn=["M","T","W","T","F","S","S"];function vr(r){switch(r){case"narrow":return[...Hn];case"short":return[...kr];case"long":return[...Tr];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Or=["AM","PM"],Yn=["Before Christ","Anno Domini"],Pn=["BC","AD"],Gn=["B","A"];function Sr(r){switch(r){case"narrow":return[...Gn];case"short":return[...Pn];case"long":return[...Yn];default:return null}}function Jn(r){return Or[r.hour<12?0:1]}function jn(r,e){return vr(e)[r.weekday-1]}function Bn(r,e){return wr(e)[r.month-1]}function Qn(r,e){return Sr(e)[r.year<0?0:1]}function Kn(r,e,t="always",n=!1){const s={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."]},i=["hours","minutes","seconds"].indexOf(r)===-1;if(t==="auto"&&i){const x=r==="days";switch(e){case 1:return x?"tomorrow":`next ${s[r][0]}`;case-1:return x?"yesterday":`last ${s[r][0]}`;case 0:return x?"today":`this ${s[r][0]}`}}const a=Object.is(e,-0)||e<0,o=Math.abs(e),u=o===1,d=s[r],O=n?u?d[1]:d[2]||d[1]:u?s[r][0]:r;return a?`${o} ${O} ago`:`in ${o} ${O}`}function Mr(r,e){let t="";for(const n of r)n.literal?t+=n.val:t+=e(n.val);return t}const Xn={D:k,DD:I,DDD:M,DDDD:z,t:W,tt:L,ttt:b,tttt:U,T:j,TT:C,TTT:$,TTTT:P,f:Q,ff:$t,fff:zt,ffff:At,F:ue,FF:Zt,FFF:Ut,FFFF:Rt};class J{static create(e,t={}){return new J(e,t)}static parseFormat(e){let t=null,n="",s=!1;const i=[];for(let a=0;a<e.length;a++){const o=e.charAt(a);o==="'"?((n.length>0||s)&&i.push({literal:s||/^\s+$/.test(n),val:n===""?"'":n}),t=null,n="",s=!s):s||o===t?n+=o:(n.length>0&&i.push({literal:/^\s+$/.test(n),val:n}),n=o,t=o)}return n.length>0&&i.push({literal:s||/^\s+$/.test(n),val:n}),i}static macroTokenToFormatOpts(e){return Xn[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,E(E({},this.opts),t)).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,E(E({},this.opts),t))}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0,n=void 0){if(this.opts.forceSimple)return H(e,t);const s=E({},this.opts);return t>0&&(s.padTo=t),n&&(s.signDisplay=n),this.loc.numberFormatter(s).format(e)}formatDateTimeFromString(e,t){const n=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(S,Y)=>this.loc.extract(e,S,Y),a=S=>e.isOffsetFixed&&e.offset===0&&S.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,S.format):"",o=()=>n?Jn(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),u=(S,Y)=>n?Bn(e,S):i(Y?{month:S}:{month:S,day:"numeric"},"month"),d=(S,Y)=>n?jn(e,S):i(Y?{weekday:S}:{weekday:S,month:"long",day:"numeric"},"weekday"),O=S=>{const Y=J.macroTokenToFormatOpts(S);return Y?this.formatWithSystemDefault(e,Y):S},x=S=>n?Qn(e,S):i({era:S},"era"),Z=S=>{switch(S){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return o();case"d":return s?i({day:"numeric"},"day"):this.num(e.day);case"dd":return s?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return s?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return s?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("narrow",!0);case"M":return s?i({month:"numeric"},"month"):this.num(e.month);case"MM":return s?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("narrow",!1);case"y":return s?i({year:"numeric"},"year"):this.num(e.year);case"yy":return s?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return s?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return s?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return x("short");case"GG":return x("long");case"GGGGG":return x("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return O(S)}};return Mr(J.parseFormat(t),Z)}formatDurationFromString(e,t){const n=this.opts.signMode==="negativeLargestOnly"?-1:1,s=O=>{switch(O[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}},i=(O,x)=>Z=>{const S=s(Z);if(S){const Y=x.isNegativeDuration&&S!==x.largestUnit?n:1;let ie;return this.opts.signMode==="negativeLargestOnly"&&S!==x.largestUnit?ie="never":this.opts.signMode==="all"?ie="always":ie="auto",this.num(O.get(S)*Y,Z.length,ie)}else return Z},a=J.parseFormat(t),o=a.reduce((O,{literal:x,val:Z})=>x?O:O.concat(Z),[]),u=e.shiftTo(...o.map(s).filter(O=>O)),d={isNegativeDuration:u<0,largestUnit:Object.keys(u.values)[0]};return Mr(a,i(u,d))}}const Dr=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Te(...r){const e=r.reduce((t,n)=>t+n.source,"");return RegExp(`^${e}$`)}function ke(...r){return e=>r.reduce(([t,n,s],i)=>{const[a,o,u]=i(e,s);return[E(E({},t),a),o||n,u]},[{},null,1]).slice(0,2)}function ve(r,...e){if(r==null)return[null,null];for(const[t,n]of e){const s=t.exec(r);if(s)return n(s)}return[null,null]}function Nr(...r){return(e,t)=>{const n={};let s;for(s=0;s<r.length;s++)n[r[s]]=de(e[t+s]);return[n,null,t+s]}}const Er=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,es=`(?:${Er.source}?(?:\\[(${Dr.source})\\])?)?`,Ot=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Ir=RegExp(`${Ot.source}${es}`),St=RegExp(`(?:[Tt]${Ir.source})?`),ts=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,rs=/(\d{4})-?W(\d\d)(?:-?(\d))?/,ns=/(\d{4})-?(\d{3})/,ss=Nr("weekYear","weekNumber","weekDay"),is=Nr("year","ordinal"),as=/(\d{4})-(\d\d)-(\d\d)/,xr=RegExp(`${Ot.source} ?(?:${Er.source}|(${Dr.source}))?`),os=RegExp(`(?: ${xr.source})?`);function Oe(r,e,t){const n=r[e];return D(n)?t:de(n)}function us(r,e){return[{year:Oe(r,e),month:Oe(r,e+1,1),day:Oe(r,e+2,1)},null,e+3]}function Se(r,e){return[{hours:Oe(r,e,0),minutes:Oe(r,e+1,0),seconds:Oe(r,e+2,0),milliseconds:Tt(r[e+3])},null,e+4]}function Fe(r,e){const t=!r[e]&&!r[e+1],n=Ge(r[e+1],r[e+2]),s=t?null:G.instance(n);return[{},s,e+3]}function Ve(r,e){const t=r[e]?ae.create(r[e]):null;return[{},t,e+1]}const ls=RegExp(`^T?${Ot.source}$`),cs=/^-?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 fs(r){const[e,t,n,s,i,a,o,u,d]=r,O=e[0]==="-",x=u&&u[0]==="-",Z=(S,Y=!1)=>S!==void 0&&(Y||S&&O)?-S:S;return[{years:Z(he(t)),months:Z(he(n)),weeks:Z(he(s)),days:Z(he(i)),hours:Z(he(a)),minutes:Z(he(o)),seconds:Z(he(u),u==="-0"),milliseconds:Z(Tt(d),x)}]}const ds={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Mt(r,e,t,n,s,i,a){const o={year:e.length===2?vt(de(e)):de(e),month:pr.indexOf(t)+1,day:de(n),hour:de(s),minute:de(i)};return a&&(o.second=de(a)),r&&(o.weekday=r.length>3?Tr.indexOf(r)+1:kr.indexOf(r)+1),o}const hs=/^(?:(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 ms(r){const[,e,t,n,s,i,a,o,u,d,O,x]=r,Z=Mt(e,s,n,t,i,a,o);let S;return u?S=ds[u]:d?S=0:S=Ge(O,x),[Z,new G(S)]}function ys(r){return r.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const gs=/^(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$/,ps=/^(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$/,ws=/^(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 Cr(r){const[,e,t,n,s,i,a,o]=r;return[Mt(e,s,n,t,i,a,o),G.utcInstance]}function Ts(r){const[,e,t,n,s,i,a,o]=r;return[Mt(e,o,t,n,s,i,a),G.utcInstance]}const ks=Te(ts,St),vs=Te(rs,St),Os=Te(ns,St),Ss=Te(Ir),_r=ke(us,Se,Fe,Ve),Ms=ke(ss,Se,Fe,Ve),Ds=ke(is,Se,Fe,Ve),Ns=ke(Se,Fe,Ve);function Es(r){return ve(r,[ks,_r],[vs,Ms],[Os,Ds],[Ss,Ns])}function Is(r){return ve(ys(r),[hs,ms])}function xs(r){return ve(r,[gs,Cr],[ps,Cr],[ws,Ts])}function Cs(r){return ve(r,[cs,fs])}const _s=ke(Se);function bs(r){return ve(r,[ls,_s])}const Fs=Te(as,os),Vs=Te(xr),Ws=ke(Se,Fe,Ve);function Ls(r){return ve(r,[Fs,_r],[Vs,Ws])}const br="Invalid Duration",Fr={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}},$s=E({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}},Fr),ee=146097/400,Me=146097/4800,Zs=E({years:{quarters:4,months:12,weeks:ee/7,days:ee,hours:ee*24,minutes:ee*24*60,seconds:ee*24*60*60,milliseconds:ee*24*60*60*1e3},quarters:{months:3,weeks:ee/28,days:ee/4,hours:ee*24/4,minutes:ee*24*60/4,seconds:ee*24*60*60/4,milliseconds:ee*24*60*60*1e3/4},months:{weeks:Me/7,days:Me,hours:Me*24,minutes:Me*24*60,seconds:Me*24*60*60,milliseconds:Me*24*60*60*1e3}},Fr),me=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],zs=me.slice(0).reverse();function le(r,e,t=!1){const n={values:t?e.values:E(E({},r.values),e.values||{}),loc:r.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||r.conversionAccuracy,matrix:e.matrix||r.matrix};return new _(n)}function Vr(r,e){var t;let n=(t=e.milliseconds)!=null?t:0;for(const s of zs.slice(1))e[s]&&(n+=e[s]*r[s].milliseconds);return n}function Wr(r,e){const t=Vr(r,e)<0?-1:1;me.reduceRight((n,s)=>{if(D(e[s]))return n;if(n){const i=e[n]*t,a=r[s][n],o=Math.floor(i/a);e[s]+=o*t,e[n]-=o*a*t}return s},null),me.reduce((n,s)=>{if(D(e[s]))return n;if(n){const i=e[n]%1;e[n]-=i,e[s]+=i*r[n][s]}return s},null)}function Lr(r){const e={};for(const[t,n]of Object.entries(r))n!==0&&(e[t]=n);return e}class _{constructor(e){const t=e.conversionAccuracy==="longterm"||!1;let n=t?Zs:$s;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||V.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,t){return _.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(e==null||typeof e!="object")throw new f(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new _({values:Je(e,_.normalizeUnit),loc:V.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(fe(e))return _.fromMillis(e);if(_.isDuration(e))return e;if(typeof e=="object")return _.fromObject(e);throw new f(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[n]=Cs(e);return n?_.fromObject(n,t):_.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[n]=bs(e);return n?_.fromObject(n,t):_.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new f("need to specify a reason the Duration is invalid");const n=e instanceof ne?e:new ne(e,t);if(R.throwOnInvalid)throw new c(n);return new _({invalid:n})}static normalizeUnit(e){const t={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"}[e&&e.toLowerCase()];if(!t)throw new m(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const n=te(E({},t),{floor:t.round!==!1&&t.floor!==!1});return this.isValid?J.create(this.loc,n).formatDurationFromString(this,e):br}toHuman(e={}){if(!this.isValid)return br;const t=e.showZeros!==!1,n=me.map(s=>{const i=this.values[s];return D(i)||i===0&&!t?null:this.loc.numberFormatter(te(E({style:"unit",unitDisplay:"long"},e),{unit:s.slice(0,-1)})).format(i)}).filter(s=>s);return this.loc.listFormatter(E({type:"conjunction",style:e.listStyle||"narrow"},e)).format(n)}toObject(){return this.isValid?E({},this.values):{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=kt(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();return t<0||t>=864e5?null:(e=te(E({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},e),{includeOffset:!1}),N.fromMillis(t,{zone:"UTC"}).toISOTime(e))}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?Vr(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=_.fromDurationLike(e),n={};for(const s of me)(pe(t.values,s)||pe(this.values,s))&&(n[s]=t.get(s)+this.get(s));return le(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const t=_.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=gr(e(this.values[n],n));return le(this,{values:t},!0)}get(e){return this[_.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const t=E(E({},this.values),Je(e,_.normalizeUnit));return le(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:s}={}){const a={loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:s,conversionAccuracy:n};return le(this,a)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return Wr(this.matrix,e),le(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=Lr(this.normalize().shiftToAll().toObject());return le(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(a=>_.normalizeUnit(a));const t={},n={},s=this.toObject();let i;for(const a of me)if(e.indexOf(a)>=0){i=a;let o=0;for(const d in n)o+=this.matrix[d][a]*n[d],n[d]=0;fe(s[a])&&(o+=s[a]);const u=Math.trunc(o);t[a]=u,n[a]=(o*1e3-u*1e3)/1e3}else fe(s[a])&&(n[a]=s[a]);for(const a in n)n[a]!==0&&(t[i]+=a===i?n[a]:n[a]/this.matrix[i][a]);return Wr(this.matrix,t),le(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=this.values[t]===0?0:-this.values[t];return le(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;const e=Lr(this.values);return le(this,{values:e},!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(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function t(n,s){return n===void 0||n===0?s===void 0||s===0:n===s}for(const n of me)if(!t(this.values[n],e.values[n]))return!1;return!0}}const De="Invalid Interval";function Us(r,e){return!r||!r.isValid?q.invalid("missing or invalid start"):!e||!e.isValid?q.invalid("missing or invalid end"):e<r?q.invalid("end before start",`The end of an interval must be after its start, but you had start=${r.toISO()} and end=${e.toISO()}`):null}class q{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new f("need to specify a reason the Interval is invalid");const n=e instanceof ne?e:new ne(e,t);if(R.throwOnInvalid)throw new y(n);return new q({invalid:n})}static fromDateTimes(e,t){const n=Ze(e),s=Ze(t),i=Us(n,s);return i==null?new q({start:n,end:s}):i}static after(e,t){const n=_.fromDurationLike(t),s=Ze(e);return q.fromDateTimes(s,s.plus(n))}static before(e,t){const n=_.fromDurationLike(t),s=Ze(e);return q.fromDateTimes(s.minus(n),s)}static fromISO(e,t){const[n,s]=(e||"").split("/",2);if(n&&s){let i,a;try{i=N.fromISO(n,t),a=i.isValid}catch(d){a=!1}let o,u;try{o=N.fromISO(s,t),u=o.isValid}catch(d){u=!1}if(a&&u)return q.fromDateTimes(i,o);if(a){const d=_.fromISO(s,t);if(d.isValid)return q.after(i,d)}else if(u){const d=_.fromISO(n,t);if(d.isValid)return q.before(o,d)}}return q.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.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(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",t){if(!this.isValid)return NaN;const n=this.start.startOf(e,t);let s;return t!=null&&t.useLocaleWeeks?s=this.end.reconfigure({locale:n.locale}):s=this.end,s=s.startOf(e,t),Math.floor(s.diff(n,e).get(e))+(s.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:t}={}){return this.isValid?q.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(Ze).filter(a=>this.contains(a)).sort((a,o)=>a.toMillis()-o.toMillis()),n=[];let{s}=this,i=0;for(;s<this.e;){const a=t[i]||this.e,o=+a>+this.e?this.e:a;n.push(q.fromDateTimes(s,o)),s=o,i+=1}return n}splitBy(e){const t=_.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as("milliseconds")===0)return[];let{s:n}=this,s=1,i;const a=[];for(;n<this.e;){const o=this.start.plus(t.mapUnits(u=>u*s));i=+o>+this.e?this.e:o,a.push(q.fromDateTimes(n,i)),n=i,s+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return t>=n?null:q.fromDateTimes(t,n)}union(e){if(!this.isValid)return this;const t=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return q.fromDateTimes(t,n)}static merge(e){const[t,n]=e.sort((s,i)=>s.s-i.s).reduce(([s,i],a)=>i?i.overlaps(a)||i.abutsStart(a)?[s,i.union(a)]:[s.concat([i]),a]:[s,a],[[],null]);return n&&t.push(n),t}static xor(e){let t=null,n=0;const s=[],i=e.map(u=>[{time:u.s,type:"s"},{time:u.e,type:"e"}]),a=Array.prototype.concat(...i),o=a.sort((u,d)=>u.time-d.time);for(const u of o)n+=u.type==="s"?1:-1,n===1?t=u.time:(t&&+t!=+u.time&&s.push(q.fromDateTimes(t,u.time)),t=null);return q.merge(s)}difference(...e){return q.xor([this].concat(e)).map(t=>this.intersection(t)).filter(t=>t&&!t.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} ${this.e.toISO()})`:De}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=k,t={}){return this.isValid?J.create(this.s.loc.clone(t),e).formatInterval(this):De}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:De}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:De}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:De}toFormat(e,{separator:t=" "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:De}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):_.invalid(this.invalidReason)}mapEndpoints(e){return q.fromDateTimes(e(this.s),e(this.e))}}class We{static hasDST(e=R.defaultZone){const t=N.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return ae.isValidZone(e)}static normalizeZone(e){return ce(e,R.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||V.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||V.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||V.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||V.create(t,n,i)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||V.create(t,n,i)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:s=null}={}){return(s||V.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:s=null}={}){return(s||V.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return V.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return V.create(t,null,"gregory").eras(e)}static features(){return{relative:fr(),localeWeek:dr()}}}function $r(r,e){const t=s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=t(e)-t(r);return Math.floor(_.fromMillis(n).as("days"))}function As(r,e,t){const n=[["years",(u,d)=>d.year-u.year],["quarters",(u,d)=>d.quarter-u.quarter+(d.year-u.year)*4],["months",(u,d)=>d.month-u.month+(d.year-u.year)*12],["weeks",(u,d)=>{const O=$r(u,d);return(O-O%7)/7}],["days",$r]],s={},i=r;let a,o;for(const[u,d]of n)t.indexOf(u)>=0&&(a=u,s[u]=d(r,e),o=i.plus(s),o>e?(s[u]--,r=i.plus(s),r>e&&(o=r,s[u]--,r=i.plus(s))):r=o);return[r,s,o,a]}function Rs(r,e,t,n){let[s,i,a,o]=As(r,e,t);const u=e-s,d=t.filter(x=>["hours","minutes","seconds","milliseconds"].indexOf(x)>=0);d.length===0&&(a<e&&(a=s.plus({[o]:1})),a!==s&&(i[o]=(i[o]||0)+u/(a-s)));const O=_.fromObject(i,n);return d.length>0?_.fromMillis(u,n).shiftTo(...d).plus(O):O}const qs="missing Intl.DateTimeFormat.formatToParts support";function F(r,e=t=>t){return{regex:r,deser:([t])=>e(Fn(t))}}const Zr="[  ]",zr=new RegExp(Zr,"g");function Hs(r){return r.replace(/\./g,"\\.?").replace(zr,Zr)}function Ur(r){return r.replace(/\./g,"").replace(zr," ").toLowerCase()}function se(r,e){return r===null?null:{regex:RegExp(r.map(Hs).join("|")),deser:([t])=>r.findIndex(n=>Ur(t)===Ur(n))+e}}function Ar(r,e){return{regex:r,deser:([,t,n])=>Ge(t,n),groups:e}}function Be(r){return{regex:r,deser:([e])=>e}}function Ys(r){return r.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Ps(r,e){const t=re(e),n=re(e,"{2}"),s=re(e,"{3}"),i=re(e,"{4}"),a=re(e,"{6}"),o=re(e,"{1,2}"),u=re(e,"{1,3}"),d=re(e,"{1,6}"),O=re(e,"{1,9}"),x=re(e,"{2,4}"),Z=re(e,"{4,6}"),S=oe=>({regex:RegExp(Ys(oe.val)),deser:([Ee])=>Ee,literal:!0}),ie=(oe=>{if(r.literal)return S(oe);switch(oe.val){case"G":return se(e.eras("short"),0);case"GG":return se(e.eras("long"),0);case"y":return F(d);case"yy":return F(x,vt);case"yyyy":return F(i);case"yyyyy":return F(Z);case"yyyyyy":return F(a);case"M":return F(o);case"MM":return F(n);case"MMM":return se(e.months("short",!0),1);case"MMMM":return se(e.months("long",!0),1);case"L":return F(o);case"LL":return F(n);case"LLL":return se(e.months("short",!1),1);case"LLLL":return se(e.months("long",!1),1);case"d":return F(o);case"dd":return F(n);case"o":return F(u);case"ooo":return F(s);case"HH":return F(n);case"H":return F(o);case"hh":return F(n);case"h":return F(o);case"mm":return F(n);case"m":return F(o);case"q":return F(o);case"qq":return F(n);case"s":return F(o);case"ss":return F(n);case"S":return F(u);case"SSS":return F(s);case"u":return Be(O);case"uu":return Be(o);case"uuu":return F(t);case"a":return se(e.meridiems(),0);case"kkkk":return F(i);case"kk":return F(x,vt);case"W":return F(o);case"WW":return F(n);case"E":case"c":return F(t);case"EEE":return se(e.weekdays("short",!1),1);case"EEEE":return se(e.weekdays("long",!1),1);case"ccc":return se(e.weekdays("short",!0),1);case"cccc":return se(e.weekdays("long",!0),1);case"Z":case"ZZ":return Ar(new RegExp(`([+-]${o.source})(?::(${n.source}))?`),2);case"ZZZ":return Ar(new RegExp(`([+-]${o.source})(${n.source})?`),2);case"z":return Be(/[a-z_+-/]{1,256}?/i);case" ":return Be(/[^\S\n\r]/);default:return S(oe)}})(r)||{invalidReason:qs};return ie.token=r,ie}const Gs={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 Js(r,e,t){const{type:n,value:s}=r;if(n==="literal"){const u=/^\s+$/.test(s);return{literal:!u,val:u?" ":s}}const i=e[n];let a=n;n==="hour"&&(e.hour12!=null?a=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?a="hour12":a="hour24":a=t.hour12?"hour12":"hour24");let o=Gs[a];if(typeof o=="object"&&(o=o[i]),o)return{literal:!1,val:o}}function js(r){return[`^${r.map(t=>t.regex).reduce((t,n)=>`${t}(${n.source})`,"")}$`,r]}function Bs(r,e,t){const n=r.match(e);if(n){const s={};let i=1;for(const a in t)if(pe(t,a)){const o=t[a],u=o.groups?o.groups+1:1;!o.literal&&o.token&&(s[o.token.val[0]]=o.deser(n.slice(i,i+u))),i+=u}return[n,s]}else return[n,{}]}function Qs(r){const e=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 t=null,n;return D(r.z)||(t=ae.create(r.z)),D(r.Z)||(t||(t=new G(r.Z)),n=r.Z),D(r.q)||(r.M=(r.q-1)*3+1),D(r.h)||(r.h<12&&r.a===1?r.h+=12:r.h===12&&r.a===0&&(r.h=0)),r.G===0&&r.y&&(r.y=-r.y),D(r.u)||(r.S=Tt(r.u)),[Object.keys(r).reduce((i,a)=>{const o=e(a);return o&&(i[o]=r[a]),i},{}),t,n]}let Dt=null;function Ks(){return Dt||(Dt=N.fromMillis(1555555555555)),Dt}function Xs(r,e){if(r.literal)return r;const t=J.macroTokenToFormatOpts(r.val),n=Yr(t,e);return n==null||n.includes(void 0)?r:n}function Rr(r,e){return Array.prototype.concat(...r.map(t=>Xs(t,e)))}class qr{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=Rr(J.parseFormat(t),e),this.units=this.tokens.map(n=>Ps(n,e)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){const[n,s]=js(this.units);this.regex=RegExp(n,"i"),this.handlers=s}}explainFromTokens(e){if(this.isValid){const[t,n]=Bs(e,this.regex,this.handlers),[s,i,a]=n?Qs(n):[null,null,void 0];if(pe(n,"a")&&pe(n,"H"))throw new h("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:t,matches:n,result:s,zone:i,specificOffset:a}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function Hr(r,e,t){return new qr(r,t).explainFromTokens(e)}function ei(r,e,t){const{result:n,zone:s,specificOffset:i,invalidReason:a}=Hr(r,e,t);return[n,s,i,a]}function Yr(r,e){if(!r)return null;const n=J.create(e,r).dtFormatter(Ks()),s=n.formatToParts(),i=n.resolvedOptions();return s.map(a=>Js(a,r,i))}const Nt="Invalid DateTime",Pr=864e13;function Le(r){return new ne("unsupported zone",`the zone "${r.name}" is not supported`)}function Et(r){return r.weekData===null&&(r.weekData=qe(r.c)),r.weekData}function It(r){return r.localWeekData===null&&(r.localWeekData=qe(r.c,r.loc.getMinDaysInFirstWeek(),r.loc.getStartOfWeek())),r.localWeekData}function ye(r,e){const t={ts:r.ts,zone:r.zone,c:r.c,o:r.o,loc:r.loc,invalid:r.invalid};return new N(te(E(E({},t),e),{old:t}))}function Gr(r,e,t){let n=r-e*60*1e3;const s=t.offset(n);if(e===s)return[n,e];n-=(s-e)*60*1e3;const i=t.offset(n);return s===i?[n,s]:[r-Math.min(s,i)*60*1e3,Math.max(s,i)]}function Qe(r,e){r+=e*60*1e3;const t=new Date(r);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds()}}function Ke(r,e,t){return Gr(Pe(r),e,t)}function Jr(r,e){const t=r.o,n=r.c.year+Math.trunc(e.years),s=r.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i=te(E({},r.c),{year:n,month:s,day:Math.min(r.c.day,Ye(n,s))+Math.trunc(e.days)+Math.trunc(e.weeks)*7}),a=_.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),o=Pe(i);let[u,d]=Gr(o,t,r.zone);return a!==0&&(u+=a,d=r.zone.offset(u)),{ts:u,o:d}}function Ne(r,e,t,n,s,i){const{setZone:a,zone:o}=t;if(r&&Object.keys(r).length!==0||e){const u=e||o,d=N.fromObject(r,te(E({},t),{zone:u,specificOffset:i}));return a?d:d.setZone(o)}else return N.invalid(new ne("unparsable",`the input "${s}" can't be parsed as ${n}`))}function Xe(r,e,t=!0){return r.isValid?J.create(V.create("en-US"),{allowZ:t,forceSimple:!0}).formatDateTimeFromString(r,e):null}function xt(r,e,t){const n=r.c.year>9999||r.c.year<0;let s="";if(n&&r.c.year>=0&&(s+="+"),s+=H(r.c.year,n?6:4),t==="year")return s;if(e){if(s+="-",s+=H(r.c.month),t==="month")return s;s+="-"}else if(s+=H(r.c.month),t==="month")return s;return s+=H(r.c.day),s}function jr(r,e,t,n,s,i,a){let o=!t||r.c.millisecond!==0||r.c.second!==0,u="";switch(a){case"day":case"month":case"year":break;default:if(u+=H(r.c.hour),a==="hour")break;if(e){if(u+=":",u+=H(r.c.minute),a==="minute")break;o&&(u+=":",u+=H(r.c.second))}else{if(u+=H(r.c.minute),a==="minute")break;o&&(u+=H(r.c.second))}if(a==="second")break;o&&(!n||r.c.millisecond!==0)&&(u+=".",u+=H(r.c.millisecond,3))}return s&&(r.isOffsetFixed&&r.offset===0&&!i?u+="Z":r.o<0?(u+="-",u+=H(Math.trunc(-r.o/60)),u+=":",u+=H(Math.trunc(-r.o%60))):(u+="+",u+=H(Math.trunc(r.o/60)),u+=":",u+=H(Math.trunc(r.o%60)))),i&&(u+="["+r.zone.ianaName+"]"),u}const Br={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},ti={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},ri={ordinal:1,hour:0,minute:0,second:0,millisecond:0},et=["year","month","day","hour","minute","second","millisecond"],ni=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],si=["year","ordinal","hour","minute","second","millisecond"];function tt(r){const e={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"}[r.toLowerCase()];if(!e)throw new m(r);return e}function Qr(r){switch(r.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return tt(r)}}function ii(r){if($e===void 0&&($e=R.now()),r.type!=="iana")return r.offset($e);const e=r.name;let t=Ct.get(e);return t===void 0&&(t=r.offset($e),Ct.set(e,t)),t}function Kr(r,e){const t=ce(e.zone,R.defaultZone);if(!t.isValid)return N.invalid(Le(t));const n=V.fromObject(e);let s,i;if(D(r.year))s=R.now();else{for(const u of et)D(r[u])&&(r[u]=Br[u]);const a=lr(r)||cr(r);if(a)return N.invalid(a);const o=ii(t);[s,i]=Ke(r,o,t)}return new N({ts:s,zone:t,loc:n,o:i})}function Xr(r,e,t){const n=D(t.round)?!0:t.round,s=D(t.rounding)?"trunc":t.rounding,i=(o,u)=>(o=kt(o,n||t.calendary?0:2,t.calendary?"round":s),e.loc.clone(t).relFormatter(t).format(o,u)),a=o=>t.calendary?e.hasSame(r,o)?0:e.startOf(o).diff(r.startOf(o),o).get(o):e.diff(r,o).get(o);if(t.unit)return i(a(t.unit),t.unit);for(const o of t.units){const u=a(o);if(Math.abs(u)>=1)return i(u,o)}return i(r>e?-0:0,t.units[t.units.length-1])}function en(r){let e={},t;return r.length>0&&typeof r[r.length-1]=="object"?(e=r[r.length-1],t=Array.from(r).slice(0,r.length-1)):t=Array.from(r),[e,t]}let $e;const Ct=new Map;class N{constructor(e){const t=e.zone||R.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new ne("invalid input"):null)||(t.isValid?null:Le(t));this.ts=D(e.ts)?R.now():e.ts;let s=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[s,i]=[e.old.c,e.old.o];else{const o=fe(e.o)&&!e.old?e.o:t.offset(this.ts);s=Qe(this.ts,o),n=Number.isNaN(s.year)?new ne("invalid input"):null,s=n?null:s,i=n?null:o}this._zone=t,this.loc=e.loc||V.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=s,this.o=i,this.isLuxonDateTime=!0}static now(){return new N({})}static local(){const[e,t]=en(arguments),[n,s,i,a,o,u,d]=t;return Kr({year:n,month:s,day:i,hour:a,minute:o,second:u,millisecond:d},e)}static utc(){const[e,t]=en(arguments),[n,s,i,a,o,u,d]=t;return e.zone=G.utcInstance,Kr({year:n,month:s,day:i,hour:a,minute:o,second:u,millisecond:d},e)}static fromJSDate(e,t={}){const n=Zn(e)?e.valueOf():NaN;if(Number.isNaN(n))return N.invalid("invalid input");const s=ce(t.zone,R.defaultZone);return s.isValid?new N({ts:n,zone:s,loc:V.fromObject(t)}):N.invalid(Le(s))}static fromMillis(e,t={}){if(fe(e))return e<-Pr||e>Pr?N.invalid("Timestamp out of range"):new N({ts:e,zone:ce(t.zone,R.defaultZone),loc:V.fromObject(t)});throw new f(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(fe(e))return new N({ts:e*1e3,zone:ce(t.zone,R.defaultZone),loc:V.fromObject(t)});throw new f("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const n=ce(t.zone,R.defaultZone);if(!n.isValid)return N.invalid(Le(n));const s=V.fromObject(t),i=Je(e,Qr),{minDaysInFirstWeek:a,startOfWeek:o}=ur(i,s),u=R.now(),d=D(t.specificOffset)?n.offset(u):t.specificOffset,O=!D(i.ordinal),x=!D(i.year),Z=!D(i.month)||!D(i.day),S=x||Z,Y=i.weekYear||i.weekNumber;if((S||O)&&Y)throw new h("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(Z&&O)throw new h("Can't mix ordinal dates with month/day");const ie=Y||i.weekday&&!S;let oe,Ee,ze=Qe(u,d);ie?(oe=ni,Ee=ti,ze=qe(ze,a,o)):O?(oe=si,Ee=ri,ze=pt(ze)):(oe=et,Ee=Br);let tn=!1;for(const Ae of oe){const fi=i[Ae];D(fi)?tn?i[Ae]=Ee[Ae]:i[Ae]=ze[Ae]:tn=!0}const oi=ie?Wn(i,a,o):O?Ln(i):lr(i),rn=oi||cr(i);if(rn)return N.invalid(rn);const ui=ie?ar(i,a,o):O?or(i):i,[li,ci]=Ke(ui,d,n),Ue=new N({ts:li,zone:n,o:ci,loc:s});return i.weekday&&S&&e.weekday!==Ue.weekday?N.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${Ue.toISO()}`):Ue.isValid?Ue:N.invalid(Ue.invalid)}static fromISO(e,t={}){const[n,s]=Es(e);return Ne(n,s,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[n,s]=Is(e);return Ne(n,s,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[n,s]=xs(e);return Ne(n,s,t,"HTTP",t)}static fromFormat(e,t,n={}){if(D(e)||D(t))throw new f("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:i=null}=n,a=V.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0}),[o,u,d,O]=ei(a,e,t);return O?N.invalid(O):Ne(o,u,n,`format ${t}`,e,d)}static fromString(e,t,n={}){return N.fromFormat(e,t,n)}static fromSQL(e,t={}){const[n,s]=Ls(e);return Ne(n,s,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new f("need to specify a reason the DateTime is invalid");const n=e instanceof ne?e:new ne(e,t);if(R.throwOnInvalid)throw new p(n);return new N({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const n=Yr(e,V.fromObject(t));return n?n.map(s=>s?s.val:null).join(""):null}static expandFormat(e,t={}){return Rr(J.parseFormat(e),V.fromObject(t)).map(s=>s.val).join("")}static resetCache(){$e=void 0,Ct.clear()}get(e){return this[e]}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?Et(this).weekYear:NaN}get weekNumber(){return this.isValid?Et(this).weekNumber:NaN}get weekday(){return this.isValid?Et(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?It(this).weekday:NaN}get localWeekNumber(){return this.isValid?It(this).weekNumber:NaN}get localWeekYear(){return this.isValid?It(this).weekYear:NaN}get ordinal(){return this.isValid?pt(this.c).ordinal:NaN}get monthShort(){return this.isValid?We.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?We.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?We.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?We.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 e=864e5,t=6e4,n=Pe(this.c),s=this.zone.offset(n-e),i=this.zone.offset(n+e),a=this.zone.offset(n-s*t),o=this.zone.offset(n-i*t);if(a===o)return[this];const u=n-a*t,d=n-o*t,O=Qe(u,a),x=Qe(d,o);return O.hour===x.hour&&O.minute===x.minute&&O.second===x.second&&O.millisecond===x.millisecond?[ye(this,{ts:u}),ye(this,{ts:d})]:[this]}get isInLeapYear(){return Ce(this.year)}get daysInMonth(){return Ye(this.year,this.month)}get daysInYear(){return this.isValid?we(this.year):NaN}get weeksInWeekYear(){return this.isValid?_e(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?_e(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:n,calendar:s}=J.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:s}}toUTC(e=0,t={}){return this.setZone(G.instance(e),t)}toLocal(){return this.setZone(R.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if(e=ce(e,R.defaultZone),e.equals(this.zone))return this;if(e.isValid){let s=this.ts;if(t||n){const i=e.offset(this.ts),a=this.toObject();[s]=Ke(a,i,e)}return ye(this,{ts:s,zone:e})}else return N.invalid(Le(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){const s=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n});return ye(this,{loc:s})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=Je(e,Qr),{minDaysInFirstWeek:n,startOfWeek:s}=ur(t,this.loc),i=!D(t.weekYear)||!D(t.weekNumber)||!D(t.weekday),a=!D(t.ordinal),o=!D(t.year),u=!D(t.month)||!D(t.day),d=o||u,O=t.weekYear||t.weekNumber;if((d||a)&&O)throw new h("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&a)throw new h("Can't mix ordinal dates with month/day");let x;i?x=ar(E(E({},qe(this.c,n,s)),t),n,s):D(t.ordinal)?(x=E(E({},this.toObject()),t),D(t.day)&&(x.day=Math.min(Ye(x.year,x.month),x.day))):x=or(E(E({},pt(this.c)),t));const[Z,S]=Ke(x,this.o,this.zone);return ye(this,{ts:Z,o:S})}plus(e){if(!this.isValid)return this;const t=_.fromDurationLike(e);return ye(this,Jr(this,t))}minus(e){if(!this.isValid)return this;const t=_.fromDurationLike(e).negate();return ye(this,Jr(this,t))}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;const n={},s=_.normalizeUnit(e);switch(s){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(s==="weeks")if(t){const i=this.loc.getStartOfWeek(),{weekday:a}=this;a<i&&(n.weekNumber=this.weekNumber-1),n.weekday=i}else n.weekday=1;if(s==="quarters"){const i=Math.ceil(this.month/3);n.month=(i-1)*3+1}return this.set(n)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?J.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Nt}toLocaleString(e=k,t={}){return this.isValid?J.create(this.loc.clone(t),e).formatDateTime(this):Nt}toLocaleParts(e={}){return this.isValid?J.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:s=!0,extendedZone:i=!1,precision:a="milliseconds"}={}){if(!this.isValid)return null;a=tt(a);const o=e==="extended";let u=xt(this,o,a);return et.indexOf(a)>=3&&(u+="T"),u+=jr(this,o,t,n,s,i,a),u}toISODate({format:e="extended",precision:t="day"}={}){return this.isValid?xt(this,e==="extended",tt(t)):null}toISOWeekDate(){return Xe(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:s=!1,extendedZone:i=!1,format:a="extended",precision:o="milliseconds"}={}){return this.isValid?(o=tt(o),(s&&et.indexOf(o)>=3?"T":"")+jr(this,a==="extended",t,e,n,i,o)):null}toRFC2822(){return Xe(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Xe(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?xt(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let s="HH:mm:ss.SSS";return(t||e)&&(n&&(s+=" "),t?s+="z":e&&(s+="ZZ")),Xe(this,s,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Nt}[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(e={}){if(!this.isValid)return{};const t=E({},this.c);return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid)return _.invalid("created by diffing an invalid DateTime");const s=E({locale:this.locale,numberingSystem:this.numberingSystem},n),i=zn(t).map(_.normalizeUnit),a=e.valueOf()>this.valueOf(),o=a?this:e,u=a?e:this,d=Rs(o,u,i,s);return a?d.negate():d}diffNow(e="milliseconds",t={}){return this.diff(N.now(),e,t)}until(e){return this.isValid?q.fromDateTimes(this,e):this}hasSame(e,t,n){if(!this.isValid)return!1;const s=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(t,n)<=s&&s<=i.endOf(t,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||N.fromObject({},{zone:this.zone}),n=e.padding?this<t?-e.padding:e.padding:0;let s=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(s=e.unit,i=void 0),Xr(t,this.plus(n),te(E({},e),{numeric:"always",units:s,unit:i}))}toRelativeCalendar(e={}){return this.isValid?Xr(e.base||N.fromObject({},{zone:this.zone}),this,te(E({},e),{numeric:"auto",units:["years","months","days"],calendary:!0})):null}static min(...e){if(!e.every(N.isDateTime))throw new f("min requires all arguments be DateTimes");return hr(e,t=>t.valueOf(),Math.min)}static max(...e){if(!e.every(N.isDateTime))throw new f("max requires all arguments be DateTimes");return hr(e,t=>t.valueOf(),Math.max)}static fromFormatExplain(e,t,n={}){const{locale:s=null,numberingSystem:i=null}=n,a=V.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0});return Hr(a,e,t)}static fromStringExplain(e,t,n={}){return N.fromFormatExplain(e,t,n)}static buildFormatParser(e,t={}){const{locale:n=null,numberingSystem:s=null}=t,i=V.fromOpts({locale:n,numberingSystem:s,defaultToEN:!0});return new qr(i,e)}static fromFormatParser(e,t,n={}){if(D(e)||D(t))throw new f("fromFormatParser requires an input string and a format parser");const{locale:s=null,numberingSystem:i=null}=n,a=V.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0});if(!a.equals(t.locale))throw new f(`fromFormatParser called with a locale of ${a}, but the format parser was created for ${t.locale}`);const{result:o,zone:u,specificOffset:d,invalidReason:O}=t.explainFromTokens(e);return O?N.invalid(O):Ne(o,u,n,`format ${t.format}`,e,d)}static get DATE_SHORT(){return k}static get DATE_MED(){return I}static get DATE_MED_WITH_WEEKDAY(){return A}static get DATE_FULL(){return M}static get DATE_HUGE(){return z}static get TIME_SIMPLE(){return W}static get TIME_WITH_SECONDS(){return L}static get TIME_WITH_SHORT_OFFSET(){return b}static get TIME_WITH_LONG_OFFSET(){return U}static get TIME_24_SIMPLE(){return j}static get TIME_24_WITH_SECONDS(){return C}static get TIME_24_WITH_SHORT_OFFSET(){return $}static get TIME_24_WITH_LONG_OFFSET(){return P}static get DATETIME_SHORT(){return Q}static get DATETIME_SHORT_WITH_SECONDS(){return ue}static get DATETIME_MED(){return $t}static get DATETIME_MED_WITH_SECONDS(){return Zt}static get DATETIME_MED_WITH_WEEKDAY(){return mn}static get DATETIME_FULL(){return zt}static get DATETIME_FULL_WITH_SECONDS(){return Ut}static get DATETIME_HUGE(){return At}static get DATETIME_HUGE_WITH_SECONDS(){return Rt}}function Ze(r){if(N.isDateTime(r))return r;if(r&&r.valueOf&&fe(r.valueOf()))return N.fromJSDate(r);if(r&&typeof r=="object")return N.fromObject(r);throw new f(`Unknown datetime argument: ${r}, of type ${typeof r}`)}const ai="3.7.2";return B.DateTime=N,B.Duration=_,B.FixedOffsetZone=G,B.IANAZone=ae,B.Info=We,B.Interval=q,B.InvalidZone=Pt,B.Settings=R,B.SystemZone=Ie,B.VERSION=ai,B.Zone=ge,B}var bt,ln;function wi(){if(ln)return bt;ln=1;var T=pi();p.prototype.addYear=function(){this._date=this._date.plus({years:1})},p.prototype.addMonth=function(){this._date=this._date.plus({months:1}).startOf("month")},p.prototype.addDay=function(){this._date=this._date.plus({days:1}).startOf("day")},p.prototype.addHour=function(){var y=this._date;this._date=this._date.plus({hours:1}).startOf("hour"),this._date<=y&&(this._date=this._date.plus({hours:1}))},p.prototype.addMinute=function(){var y=this._date;this._date=this._date.plus({minutes:1}).startOf("minute"),this._date<y&&(this._date=this._date.plus({hours:1}))},p.prototype.addSecond=function(){var y=this._date;this._date=this._date.plus({seconds:1}).startOf("second"),this._date<y&&(this._date=this._date.plus({hours:1}))},p.prototype.subtractYear=function(){this._date=this._date.minus({years:1})},p.prototype.subtractMonth=function(){this._date=this._date.minus({months:1}).endOf("month").startOf("second")},p.prototype.subtractDay=function(){this._date=this._date.minus({days:1}).endOf("day").startOf("second")},p.prototype.subtractHour=function(){var y=this._date;this._date=this._date.minus({hours:1}).endOf("hour").startOf("second"),this._date>=y&&(this._date=this._date.minus({hours:1}))},p.prototype.subtractMinute=function(){var y=this._date;this._date=this._date.minus({minutes:1}).endOf("minute").startOf("second"),this._date>y&&(this._date=this._date.minus({hours:1}))},p.prototype.subtractSecond=function(){var y=this._date;this._date=this._date.minus({seconds:1}).startOf("second"),this._date>y&&(this._date=this._date.minus({hours:1}))},p.prototype.getDate=function(){return this._date.day},p.prototype.getFullYear=function(){return this._date.year},p.prototype.getDay=function(){var y=this._date.weekday;return y==7?0:y},p.prototype.getMonth=function(){return this._date.month-1},p.prototype.getHours=function(){return this._date.hour},p.prototype.getMinutes=function(){return this._date.minute},p.prototype.getSeconds=function(){return this._date.second},p.prototype.getMilliseconds=function(){return this._date.millisecond},p.prototype.getTime=function(){return this._date.valueOf()},p.prototype.getUTCDate=function(){return this._getUTC().day},p.prototype.getUTCFullYear=function(){return this._getUTC().year},p.prototype.getUTCDay=function(){var y=this._getUTC().weekday;return y==7?0:y},p.prototype.getUTCMonth=function(){return this._getUTC().month-1},p.prototype.getUTCHours=function(){return this._getUTC().hour},p.prototype.getUTCMinutes=function(){return this._getUTC().minute},p.prototype.getUTCSeconds=function(){return this._getUTC().second},p.prototype.toISOString=function(){return this._date.toUTC().toISO()},p.prototype.toJSON=function(){return this._date.toJSON()},p.prototype.setDate=function(y){this._date=this._date.set({day:y})},p.prototype.setFullYear=function(y){this._date=this._date.set({year:y})},p.prototype.setDay=function(y){this._date=this._date.set({weekday:y})},p.prototype.setMonth=function(y){this._date=this._date.set({month:y+1})},p.prototype.setHours=function(y){this._date=this._date.set({hour:y})},p.prototype.setMinutes=function(y){this._date=this._date.set({minute:y})},p.prototype.setSeconds=function(y){this._date=this._date.set({second:y})},p.prototype.setMilliseconds=function(y){this._date=this._date.set({millisecond:y})},p.prototype._getUTC=function(){return this._date.toUTC()},p.prototype.toString=function(){return this.toDate().toString()},p.prototype.toDate=function(){return this._date.toJSDate()},p.prototype.isLastDayOfMonth=function(){var y=this._date.plus({days:1}).startOf("day");return this._date.month!==y.month},p.prototype.isLastWeekdayOfMonth=function(){var y=this._date.plus({days:7}).startOf("day");return this._date.month!==y.month};function p(y,c){var h={zone:c};if(y?y instanceof p?this._date=y._date:y instanceof Date?this._date=T.DateTime.fromJSDate(y,h):typeof y=="number"?this._date=T.DateTime.fromMillis(y,h):typeof y=="string"&&(this._date=T.DateTime.fromISO(y,h),this._date.isValid||(this._date=T.DateTime.fromRFC2822(y,h)),this._date.isValid||(this._date=T.DateTime.fromSQL(y,h)),this._date.isValid||(this._date=T.DateTime.fromFormat(y,"EEE, d MMM yyyy HH:mm:ss",h))):this._date=T.DateTime.local(),!this._date||!this._date.isValid)throw new Error("CronDate: unhandled timestamp: "+JSON.stringify(y));c&&c!==this._date.zoneName&&(this._date=this._date.setZone(c))}return bt=p,bt}var Ft,cn;function Ti(){if(cn)return Ft;cn=1;function T(h){return{start:h,count:1}}function p(h,m){h.end=m,h.step=m-h.start,h.count=2}function y(h,m,f){m&&(m.count===2?(h.push(T(m.start)),h.push(T(m.end))):h.push(m)),f&&h.push(f)}function c(h){for(var m=[],f=void 0,w=0;w<h.length;w++){var l=h[w];typeof l!="number"?(y(m,f,T(l)),f=void 0):f?f.count===1?p(f,l):f.step===l-f.end?(f.count++,f.end=l):f.count===2?(m.push(T(f.start)),f=T(f.end),p(f,l)):(y(m,f),f=T(l)):f=T(l)}return y(m,f),m}return Ft=c,Ft}var Vt,fn;function ki(){if(fn)return Vt;fn=1;var T=Ti();function p(y,c,h){var m=T(y);if(m.length===1){var f=m[0],w=f.step;if(w===1&&f.start===c&&f.end===h)return"*";if(w!==1&&f.start===c&&f.end===h-w+1)return"*/"+w}for(var l=[],v=0,g=m.length;v<g;++v){var k=m[v];if(k.count===1){l.push(k.start);continue}var w=k.step;if(k.step===1){l.push(k.start+"-"+k.end);continue}var I=k.start==0?k.count-1:k.count;k.step*I>k.end?l=l.concat(Array.from({length:k.end-k.start+1}).map(function(M,z){var W=k.start+z;return(W-k.start)%k.step===0?W:null}).filter(function(M){return M!=null})):k.end===h-k.step+1?l.push(k.start+"/"+k.step):l.push(k.start+"-"+k.end+"/"+k.step)}return l.join(",")}return Vt=p,Vt}var Wt,dn;function vi(){if(dn)return Wt;dn=1;var T=wi(),p=ki(),y=1e4;function c(h,m){this._options=m,this._utc=m.utc||!1,this._tz=this._utc?"UTC":m.tz,this._currentDate=new T(m.currentDate,this._tz),this._startDate=m.startDate?new T(m.startDate,this._tz):null,this._endDate=m.endDate?new T(m.endDate,this._tz):null,this._isIterator=m.iterator||!1,this._hasIterated=!1,this._nthDayOfWeek=m.nthDayOfWeek||0,this.fields=c._freezeFields(h)}return c.map=["second","minute","hour","dayOfMonth","month","dayOfWeek"],c.predefined={"@yearly":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@hourly":"0 * * * *"},c.constraints=[{min:0,max:59,chars:[]},{min:0,max:59,chars:[]},{min:0,max:23,chars:[]},{min:1,max:31,chars:["L"]},{min:1,max:12,chars:[]},{min:0,max:7,chars:["L"]}],c.daysInMonth=[31,29,31,30,31,30,31,31,30,31,30,31],c.aliases={month:{jan:1,feb:2,mar:3,apr:4,may:5,jun:6,jul:7,aug:8,sep:9,oct:10,nov:11,dec:12},dayOfWeek:{sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6}},c.parseDefaults=["0","*","*","*","*","*"],c.standardValidCharacters=/^[,*\d/-]+$/,c.dayOfWeekValidCharacters=/^[?,*\dL#/-]+$/,c.dayOfMonthValidCharacters=/^[?,*\dL/-]+$/,c.validCharacters={second:c.standardValidCharacters,minute:c.standardValidCharacters,hour:c.standardValidCharacters,dayOfMonth:c.dayOfMonthValidCharacters,month:c.standardValidCharacters,dayOfWeek:c.dayOfWeekValidCharacters},c._isValidConstraintChar=function(m,f){return typeof f!="string"?!1:m.chars.some(function(w){return f.indexOf(w)>-1})},c._parseField=function(m,f,w){switch(m){case"month":case"dayOfWeek":var l=c.aliases[m];f=f.replace(/[a-z]{3}/gi,function(I){if(I=I.toLowerCase(),typeof l[I]!="undefined")return l[I];throw new Error('Validation error, cannot resolve alias "'+I+'"')});break}if(!c.validCharacters[m].test(f))throw new Error("Invalid characters, got value: "+f);f.indexOf("*")!==-1?f=f.replace(/\*/g,w.min+"-"+w.max):f.indexOf("?")!==-1&&(f=f.replace(/\?/g,w.min+"-"+w.max));function v(I){var A=[];function M(b){if(b instanceof Array)for(var U=0,j=b.length;U<j;U++){var C=b[U];if(c._isValidConstraintChar(w,C)){A.push(C);continue}if(typeof C!="number"||Number.isNaN(C)||C<w.min||C>w.max)throw new Error("Constraint error, got value "+C+" expected range "+w.min+"-"+w.max);A.push(C)}else{if(c._isValidConstraintChar(w,b)){A.push(b);return}var $=+b;if(Number.isNaN($)||$<w.min||$>w.max)throw new Error("Constraint error, got value "+b+" expected range "+w.min+"-"+w.max);m==="dayOfWeek"&&($=$%7),A.push($)}}var z=I.split(",");if(!z.every(function(b){return b.length>0}))throw new Error("Invalid list value format");if(z.length>1)for(var W=0,L=z.length;W<L;W++)M(g(z[W]));else M(g(I));return A.sort(c._sortCompareFn),A}function g(I){var A=1,M=I.split("/");if(M.length>2)throw new Error("Invalid repeat: "+I);return M.length>1?(M[0]==+M[0]&&(M=[M[0]+"-"+w.max,M[1]]),k(M[0],M[M.length-1])):k(I,A)}function k(I,A){var M=[],z=I.split("-");if(z.length>1){if(z.length<2)return+I;if(!z[0].length){if(!z[1].length)throw new Error("Invalid range: "+I);return+I}var W=+z[0],L=+z[1];if(Number.isNaN(W)||Number.isNaN(L)||W<w.min||L>w.max)throw new Error("Constraint error, got range "+W+"-"+L+" expected range "+w.min+"-"+w.max);if(W>L)throw new Error("Invalid range: "+I);var b=+A;if(Number.isNaN(b)||b<=0)throw new Error("Constraint error, cannot repeat at every "+b+" time.");m==="dayOfWeek"&&L%7===0&&M.push(0);for(var U=W,j=L;U<=j;U++){var C=M.indexOf(U)!==-1;!C&&b>0&&b%A===0?(b=1,M.push(U)):b++}return M}return Number.isNaN(+I)?I:+I}return v(f)},c._sortCompareFn=function(h,m){var f=typeof h=="number",w=typeof m=="number";return f&&w?h-m:!f&&w?1:f&&!w?-1:h.localeCompare(m)},c._handleMaxDaysInMonth=function(h){if(h.month.length===1){var m=c.daysInMonth[h.month[0]-1];if(h.dayOfMonth[0]>m)throw new Error("Invalid explicit day of month definition");return h.dayOfMonth.filter(function(f){return f==="L"?!0:f<=m}).sort(c._sortCompareFn)}},c._freezeFields=function(h){for(var m=0,f=c.map.length;m<f;++m){var w=c.map[m],l=h[w];h[w]=Object.freeze(l)}return Object.freeze(h)},c.prototype._applyTimezoneShift=function(h,m,f){if(f==="Month"||f==="Day"){var w=h.getTime();h[m+f]();var l=h.getTime();w===l&&(h.getMinutes()===0&&h.getSeconds()===0?h.addHour():h.getMinutes()===59&&h.getSeconds()===59&&h.subtractHour())}else{var v=h.getHours();h[m+f]();var g=h.getHours(),k=g-v;k===2?this.fields.hour.length!==24&&(this._dstStart=g):k===0&&h.getMinutes()===0&&h.getSeconds()===0&&this.fields.hour.length!==24&&(this._dstEnd=g)}},c.prototype._findSchedule=function(m){function f(C,$){for(var P=0,Q=$.length;P<Q;P++)if($[P]>=C)return $[P]===C;return $[0]===C}function w(C,$){if($<6){if(C.getDate()<8&&$===1)return!0;var P=C.getDate()%7?1:0,Q=C.getDate()-C.getDate()%7,ue=Math.floor(Q/7)+P;return ue===$}return!1}function l(C){return C.length>0&&C.some(function($){return typeof $=="string"&&$.indexOf("L")>=0})}m=m||!1;var v=m?"subtract":"add",g=new T(this._currentDate,this._tz),k=this._startDate,I=this._endDate,A=g.getTime(),M=0;function z(C){return C.some(function($){if(!l([$]))return!1;var P=Number.parseInt($[0])%7;if(Number.isNaN(P))throw new Error("Invalid last weekday of the month expression: "+$);return g.getDay()===P&&g.isLastWeekdayOfMonth()})}for(;M<y;){if(M++,m){if(k&&g.getTime()-k.getTime()<0)throw new Error("Out of the timespan range")}else if(I&&I.getTime()-g.getTime()<0)throw new Error("Out of the timespan range");var W=f(g.getDate(),this.fields.dayOfMonth);l(this.fields.dayOfMonth)&&(W=W||g.isLastDayOfMonth());var L=f(g.getDay(),this.fields.dayOfWeek);l(this.fields.dayOfWeek)&&(L=L||z(this.fields.dayOfWeek));var b=this.fields.dayOfMonth.length>=c.daysInMonth[g.getMonth()],U=this.fields.dayOfWeek.length===c.constraints[5].max-c.constraints[5].min+1,j=g.getHours();if(!W&&(!L||U)){this._applyTimezoneShift(g,v,"Day");continue}if(!b&&U&&!W){this._applyTimezoneShift(g,v,"Day");continue}if(b&&!U&&!L){this._applyTimezoneShift(g,v,"Day");continue}if(this._nthDayOfWeek>0&&!w(g,this._nthDayOfWeek)){this._applyTimezoneShift(g,v,"Day");continue}if(!f(g.getMonth()+1,this.fields.month)){this._applyTimezoneShift(g,v,"Month");continue}if(f(j,this.fields.hour)){if(this._dstEnd===j&&!m){this._dstEnd=null,this._applyTimezoneShift(g,"add","Hour");continue}}else if(this._dstStart!==j){this._dstStart=null,this._applyTimezoneShift(g,v,"Hour");continue}else if(!f(j-1,this.fields.hour)){g[v+"Hour"]();continue}if(!f(g.getMinutes(),this.fields.minute)){this._applyTimezoneShift(g,v,"Minute");continue}if(!f(g.getSeconds(),this.fields.second)){this._applyTimezoneShift(g,v,"Second");continue}if(A===g.getTime()){v==="add"||g.getMilliseconds()===0?this._applyTimezoneShift(g,v,"Second"):g.setMilliseconds(0);continue}break}if(M>=y)throw new Error("Invalid expression, loop limit exceeded");return this._currentDate=new T(g,this._tz),this._hasIterated=!0,g},c.prototype.next=function(){var m=this._findSchedule();return this._isIterator?{value:m,done:!this.hasNext()}:m},c.prototype.prev=function(){var m=this._findSchedule(!0);return this._isIterator?{value:m,done:!this.hasPrev()}:m},c.prototype.hasNext=function(){var h=this._currentDate,m=this._hasIterated;try{return this._findSchedule(),!0}catch(f){return!1}finally{this._currentDate=h,this._hasIterated=m}},c.prototype.hasPrev=function(){var h=this._currentDate,m=this._hasIterated;try{return this._findSchedule(!0),!0}catch(f){return!1}finally{this._currentDate=h,this._hasIterated=m}},c.prototype.iterate=function(m,f){var w=[];if(m>=0)for(var l=0,v=m;l<v;l++)try{var g=this.next();w.push(g),f&&f(g,l)}catch(k){break}else for(var l=0,v=m;l>v;l--)try{var g=this.prev();w.push(g),f&&f(g,l)}catch(A){break}return w},c.prototype.reset=function(m){this._currentDate=new T(m||this._options.currentDate)},c.prototype.stringify=function(m){for(var f=[],w=m?0:1,l=c.map.length;w<l;++w){var v=c.map[w],g=this.fields[v],k=c.constraints[w];v==="dayOfMonth"&&this.fields.month.length===1?k={min:1,max:c.daysInMonth[this.fields.month[0]-1]}:v==="dayOfWeek"&&(k={min:0,max:6},g=g[g.length-1]===7?g.slice(0,-1):g),f.push(p(g,k.min,k.max))}return f.join(" ")},c.parse=function(m,f){var w=this;typeof f=="function"&&(f={});function l(v,g){g||(g={}),typeof g.currentDate=="undefined"&&(g.currentDate=new T(void 0,w._tz)),c.predefined[v]&&(v=c.predefined[v]);var k=[],I=(v+"").trim().split(/\s+/);if(I.length>6)throw new Error("Invalid cron expression");for(var A=c.map.length-I.length,M=0,z=c.map.length;M<z;++M){var W=c.map[M],L=I[I.length>z?M:M-A];if(M<A||!L)k.push(c._parseField(W,c.parseDefaults[M],c.constraints[M]));else{var b=W==="dayOfWeek"?$(L):L;k.push(c._parseField(W,b,c.constraints[M]))}}for(var U={},M=0,z=c.map.length;M<z;M++){var j=c.map[M];U[j]=k[M]}var C=c._handleMaxDaysInMonth(U);return U.dayOfMonth=C||U.dayOfMonth,new c(U,g);function $(P){var Q=P.split("#");if(Q.length>1){var ue=+Q[Q.length-1];if(/,/.test(P))throw new Error("Constraint error, invalid dayOfWeek `#` and `,` special characters are incompatible");if(/\//.test(P))throw new Error("Constraint error, invalid dayOfWeek `#` and `/` special characters are incompatible");if(/-/.test(P))throw new Error("Constraint error, invalid dayOfWeek `#` and `-` special characters are incompatible");if(Q.length>2||Number.isNaN(ue)||ue<1||ue>5)throw new Error("Constraint error, invalid dayOfWeek occurrence number (#)");return g.nthDayOfWeek=ue,Q[0]}return P}}return l(m,f)},c.fieldsToExpression=function(m,f){function w(W,L,b){if(!L)throw new Error("Validation error, Field "+W+" is missing");if(L.length===0)throw new Error("Validation error, Field "+W+" contains no values");for(var U=0,j=L.length;U<j;U++){var C=L[U];if(!c._isValidConstraintChar(b,C)&&(typeof C!="number"||Number.isNaN(C)||C<b.min||C>b.max))throw new Error("Constraint error, got value "+C+" expected range "+b.min+"-"+b.max)}}for(var l={},v=0,g=c.map.length;v<g;++v){var k=c.map[v],I=m[k];w(k,I,c.constraints[v]);for(var A=[],M=-1;++M<I.length;)A[M]=I[M];if(I=A.sort(c._sortCompareFn).filter(function(W,L,b){return!L||W!==b[L-1]}),I.length!==A.length)throw new Error("Validation error, Field "+k+" contains duplicate values");l[k]=I}var z=c._handleMaxDaysInMonth(l);return l.dayOfMonth=z||l.dayOfMonth,new c(l,f||{})},Wt=c,Wt}var Lt,hn;function Oi(){if(hn)return Lt;hn=1;var T=vi();function p(){}return p._parseEntry=function(c){var h=c.split(" ");if(h.length===6)return{interval:T.parse(c)};if(h.length>6)return{interval:T.parse(h.slice(0,6).join(" ")),command:h.slice(6,h.length)};throw new Error("Invalid entry: "+c)},p.parseExpression=function(c,h){return T.parse(c,h)},p.fieldsToExpression=function(c,h){return T.fieldsToExpression(c,h)},p.parseString=function(c){for(var h=c.split(`
`),m={variables:{},expressions:[],errors:{}},f=0,w=h.length;f<w;f++){var l=h[f],v=null,g=l.trim();if(g.length>0){if(g.match(/^#/))continue;if(v=g.match(/^(.*)=(.*)$/))m.variables[v[1]]=v[2];else{var k=null;try{k=p._parseEntry("0 "+g),m.expressions.push(k.interval)}catch(I){m.errors[g]=I}}}}return m},p.parseFile=function(c,h){gi.readFile(c,function(m,f){if(m){h(m);return}return h(null,p.parseString(f.toString()))})},Lt=p,Lt}var Si=Oi();const Ii=yi(Si);export{Ii as C};