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