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,se=Object.getOwnPropertySymbols,ys=Object.prototype.hasOwnProperty,gs=Object.prototype.propertyIsEnumerable,Si=Math.pow,as=(m,f,h)=>f in m?wi(m,f,{enumerable:!0,configurable:!0,writable:!0,value:h}):m[f]=h,M=(m,f)=>{for(var h in f||(f={}))ys.call(f,h)&&as(m,h,f[h]);if(se)for(var h of se(f))gs.call(f,h)&&as(m,h,f[h]);return m},it=(m,f)=>vi(m,ki(f)),os=(m,f)=>{var h={};for(var u in m)ys.call(m,u)&&f.indexOf(u)<0&&(h[u]=m[u]);if(m!=null&&se)for(var u of se(m))f.indexOf(u)<0&&gs.call(m,u)&&(h[u]=m[u]);return h},Q={},us;function Oi(){if(us)return Q;us=1,Object.defineProperty(Q,"__esModule",{value:!0});class m extends Error{}class f extends m{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class h extends m{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class u extends m{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class c 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},ws={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:s}){return wn(t,e,s)}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 vs(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 ks={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Ss(n,t){const e=n.format(t).replace(/\u200E/g,""),s=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(e),[,r,i,a,o,l,w,S]=s;return[a,r,i,o,l,w,S]}function Os(n,t){const e=n.formatToParts(t),s=[];for(let r=0;r<e.length;r++){const{type:i,value:a}=e[r],o=ks[i];i==="era"?s[o]=a:D(o)||(s[o]=parseInt(a,10))}return s}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:s}){return wn(t,e,s,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 s=vs(this.name);let[r,i,a,o,l,w,S]=s.formatToParts?Os(s,e):Ss(s,e);o==="BC"&&(r=-Math.abs(r)+1);const x=Pt({year:r,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 bs(n,t={}){const e=JSON.stringify([n,t]);let s=He[e];return s||(s=new Intl.ListFormat(n,t),He[e]=s),s}const ue=new Map;function le(n,t={}){const e=JSON.stringify([n,t]);let s=ue.get(e);return s===void 0&&(s=new Intl.DateTimeFormat(n,t),ue.set(e,s)),s}const ce=new Map;function Ds(n,t={}){const e=JSON.stringify([n,t]);let s=ce.get(e);return s===void 0&&(s=new Intl.NumberFormat(n,t),ce.set(e,s)),s}const he=new Map;function Ts(n,t={}){const e=t,{base:s}=e,r=os(e,["base"]),i=JSON.stringify([n,r]);let a=he.get(i);return a===void 0&&(a=new Intl.RelativeTimeFormat(n,t),he.set(i,a)),a}let At=null;function Ms(){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 Ns(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 xs(n){const t=n.indexOf("-x-");t!==-1&&(n=n.substring(0,t));const e=n.indexOf("-u-");if(e===-1)return[n];{let s,r;try{s=le(n).resolvedOptions(),r=n}catch(o){const l=n.substring(0,e);s=le(l).resolvedOptions(),r=l}const{numberingSystem:i,calendar:a}=s;return[r,i,a]}}function Es(n,t,e){return(e||t)&&(n.includes("-u-")||(n+="-u"),e&&(n+=`-ca-${e}`),t&&(n+=`-nu-${t}`)),n}function Is(n){const t=[];for(let e=1;e<=12;e++){const s=T.utc(2009,e,1);t.push(n(s))}return t}function Vs(n){const t=[];for(let e=1;e<=7;e++){const s=T.utc(2016,11,13+e);t.push(n(s))}return t}function Ut(n,t,e,s){const r=n.listingMode();return r==="error"?null:r==="en"?e(t):s(t)}function Fs(n){return n.numberingSystem&&n.numberingSystem!=="latn"?!1:n.numberingSystem==="latn"||!n.locale||n.locale.startsWith("en")||Pe(n.locale).numberingSystem==="latn"}class Cs{constructor(t,e,s){this.padTo=s.padTo||0,this.floor=s.floor||!1;const r=s,{padTo:i,floor:a}=r,o=os(r,["padTo","floor"]);if(!e||Object.keys(o).length>0){const l=M({useGrouping:!1},s);s.padTo>0&&(l.minimumIntegerDigits=s.padTo),this.inf=Ds(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 _s{constructor(t,e,s){this.opts=s,this.originalZone=void 0;let r;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?(r=o,this.dt=t):(r="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,r=t.zone.name):(r="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const i=M({},this.opts);i.timeZone=i.timeZone||r,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 s=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return it(M({},e),{value:s})}else return e}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class $s{constructor(t,e,s){this.opts=M({style:"long"},s),!e&&mn()&&(this.rtf=Ts(t,s))}format(t,e){return this.rtf?this.rtf.format(t,e):nr(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,s,r,i=!1){const a=t||U.defaultLocale,o=a||(i?"en-US":Ms()),l=e||U.defaultNumberingSystem,w=s||U.defaultOutputCalendar,S=ke(r)||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:s,weekSettings:r}={}){return _.create(t,e,s,r)}constructor(t,e,s,r,i){const[a,o,l]=xs(t);this.locale=a,this.numberingSystem=e||o||null,this.outputCalendar=s||l||null,this.weekSettings=r,this.intl=Es(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=Fs(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 s=this.intl==="ja"||this.intl.startsWith("ja-");e&=!s;const r=e?{month:t,day:"numeric"}:{month:t},i=e?"format":"standalone";if(!this.monthsCache[i][t]){const a=s?o=>this.dtFormatter(o,r).format():o=>this.extract(o,r,"month");this.monthsCache[i][t]=Is(a)}return this.monthsCache[i][t]})}weekdays(t,e=!1){return Ut(this,t,Dn,()=>{const s=e?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},r=e?"format":"standalone";return this.weekdaysCache[r][t]||(this.weekdaysCache[r][t]=Vs(i=>this.extract(i,s,"weekday"))),this.weekdaysCache[r][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(s=>this.extract(s,e,"era"))),this.eraCache[t]})}extract(t,e,s){const r=this.dtFormatter(t,e),i=r.formatToParts(),a=i.find(o=>o.type.toLowerCase()===s);return a?a.value:null}numberFormatter(t={}){return new Cs(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,e={}){return new _s(t,this.intl,e)}relFormatter(t={}){return new $s(this.intl,this.isEnglish(),t)}listFormatter(t={}){return bs(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()?Ns(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(As(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]},Ws=ye.hanidec.replace(/[\[|\]]/g,"").split("");function Zs(n){let t=parseInt(n,10);if(isNaN(t)){t="";for(let e=0;e<n.length;e++){const s=n.charCodeAt(e);if(n[e].search(ye.hanidec)!==-1)t+=Ws.indexOf(n[e]);else for(const r in Ge){const[i,a]=Ge[r];s>=i&&s<=a&&(t+=s-i)}}return parseInt(t,10)}else return t}const ge=new Map;function Ls(){ge.clear()}function nt({numberingSystem:n},t=""){const e=n||"latn";let s=ge.get(e);s===void 0&&(s=new Map,ge.set(e,s));let r=s.get(t);return r===void 0&&(r=new RegExp(`${ye[e]}${t}`),s.set(t,r)),r}let Be=()=>Date.now(),Qe="system",Ke=null,Xe=null,tn=null,en=60,nn,sn=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 sn}static set defaultWeekSettings(t){sn=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(),Ls()}}class st{constructor(t,e){this.reason=t,this.explanation=e}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const rn=[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 st("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${n}, which is invalid`)}function pe(n,t,e){const s=new Date(Date.UTC(n,t-1,e));n<100&&n>=0&&s.setUTCFullYear(s.getUTCFullYear()-1900);const r=s.getUTCDay();return r===0?7:r}function on(n,t,e){return e+(Et(n)?an:rn)[t-1]}function un(n,t){const e=Et(n)?an:rn,s=e.findIndex(i=>i<t),r=t-e[s];return{month:s+1,day:r}}function we(n,t){return(n-t+7)%7+1}function qt(n,t=4,e=1){const{year:s,month:r,day:i}=n,a=on(s,r,i),o=we(pe(s,r,i),e);let l=Math.floor((a-o+14-t)/7),w;return l<1?(w=s-1,l=It(w,t,e)):l>It(s,t,e)?(w=s+1,l=1):w=s,M({weekYear:w,weekNumber:l,weekday:o},Gt(n))}function ln(n,t=4,e=1){const{weekYear:s,weekNumber:r,weekday:i}=n,a=we(pe(s,1,t),e),o=wt(s);let l=r*7+i-a-7+t,w;l<1?(w=s-1,l+=wt(w)):l>o?(w=s+1,l-=wt(s)):w=s;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:s}=n,r=on(t,e,s);return M({year:t,ordinal:r},Gt(n))}function cn(n){const{year:t,ordinal:e}=n,{month:s,day:r}=un(t,e);return M({year:t,month:s,day:r},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 c("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 zs(n,t=4,e=1){const s=Yt(n.weekYear),r=tt(n.weekNumber,1,It(n.weekYear,t,e)),i=tt(n.weekday,1,7);return s?r?i?!1:X("weekday",n.weekday):X("week",n.weekNumber):X("weekYear",n.weekYear)}function js(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),s=tt(n.day,1,Ht(n.year,n.month));return t?e?s?!1:X("day",n.day):X("month",n.month):X("year",n.year)}function fn(n){const{hour:t,minute:e,second:s,millisecond:r}=n,i=tt(t,0,23)||t===24&&e===0&&s===0&&r===0,a=tt(e,0,59),o=tt(s,0,59),l=tt(r,0,999);return i?a?o?l?!1:X("millisecond",r):X("second",s):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 As(n){return typeof n=="string"}function Us(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 qs(n){return Array.isArray(n)?n:[n]}function gn(n,t,e){if(n.length!==0)return n.reduce((s,r)=>{const i=[t(r),r];return s&&e(s[0],i[0])===s[0]?s:i},null)[1]}function Ys(n,t){return t.reduce((e,s)=>(e[s]=n[s],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 Hs(n,t){return n-t*Math.floor(n/t)}function Y(n,t=2){const e=n<0;let s;return e?s="-"+(""+-n).padStart(t,"0"):s=(""+n).padStart(t,"0"),s}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 s=Si(10,t);switch(e){case"expand":return n>0?Math.ceil(n*s)/s:Math.floor(n*s)/s;case"trunc":return Math.trunc(n*s)/s;case"round":return Math.round(n*s)/s;case"floor":return Math.floor(n*s)/s;case"ceil":return Math.ceil(n*s)/s;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=Hs(t-1,12)+1,s=n+(t-e)/12;return e===2?Et(s)?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 s=pn(n,t,e),r=pn(n+1,t,e);return(wt(n)-s+r)/7}function be(n){return n>99?n:n>U.twoDigitCutoffYear?1900+n:2e3+n}function wn(n,t,e,s=null){const r=new Date(n),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};s&&(i.timeZone=s);const a=M({timeZoneName:t},i),o=new Intl.DateTimeFormat(e,a).formatToParts(r).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 s=parseInt(t,10)||0,r=e<0||Object.is(e,-0)?-s:s;return e*60+r}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 s in n)if(pt(n,s)){const r=n[s];if(r==null)continue;e[t(s)]=vn(r)}return e}function Vt(n,t){const e=Math.trunc(Math.abs(n/60)),s=Math.trunc(Math.abs(n%60)),r=n>=0?"+":"-";switch(t){case"short":return`${r}${Y(e,2)}:${Y(s,2)}`;case"narrow":return`${r}${e}${s>0?`:${s}`:""}`;case"techie":return`${r}${Y(e,2)}${Y(s,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Gt(n){return Ys(n,["hour","minute","second","millisecond"])}const Ps=["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"],Rs=["J","F","M","A","M","J","J","A","S","O","N","D"];function Sn(n){switch(n){case"narrow":return[...Rs];case"short":return[...kn];case"long":return[...Ps];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"],Js=["M","T","W","T","F","S","S"];function Dn(n){switch(n){case"narrow":return[...Js];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"],Gs=["Before Christ","Anno Domini"],Bs=["BC","AD"],Qs=["B","A"];function Mn(n){switch(n){case"narrow":return[...Qs];case"short":return[...Bs];case"long":return[...Gs];default:return null}}function Ks(n){return Tn[n.hour<12?0:1]}function Xs(n,t){return Dn(t)[n.weekday-1]}function tr(n,t){return Sn(t)[n.month-1]}function er(n,t){return Mn(t)[n.year<0?0:1]}function nr(n,t,e="always",s=!1){const r={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 ${r[n][0]}`;case-1:return x?"yesterday":`last ${r[n][0]}`;case 0:return x?"today":`this ${r[n][0]}`}}const a=Object.is(t,-0)||t<0,o=Math.abs(t),l=o===1,w=r[n],S=s?l?w[1]:w[2]||w[1]:l?r[n][0]:n;return a?`${o} ${S} ago`:`in ${o} ${S}`}function Nn(n,t){let e="";for(const s of n)s.literal?e+=s.val:e+=t(s.val);return e}const sr={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,s="",r=!1;const i=[];for(let a=0;a<t.length;a++){const o=t.charAt(a);o==="'"?((s.length>0||r)&&i.push({literal:r||/^\s+$/.test(s),val:s===""?"'":s}),e=null,s="",r=!r):r||o===e?s+=o:(s.length>0&&i.push({literal:/^\s+$/.test(s),val:s}),s=o,e=o)}return s.length>0&&i.push({literal:r||/^\s+$/.test(s),val:s}),i}static macroTokenToFormatOpts(t){return sr[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,s=void 0){if(this.opts.forceSimple)return Y(t,e);const r=M({},this.opts);return e>0&&(r.padTo=e),s&&(r.signDisplay=s),this.loc.numberFormatter(r).format(t)}formatDateTimeFromString(t,e){const s=this.loc.listingMode()==="en",r=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=()=>s?Ks(t):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(b,P)=>s?tr(t,b):i(P?{month:b}:{month:b,day:"numeric"},"month"),w=(b,P)=>s?Xs(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=>s?er(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 r?i({day:"numeric"},"day"):this.num(t.day);case"dd":return r?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 r?i({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return r?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 r?i({month:"numeric"},"month"):this.num(t.month);case"MM":return r?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 r?i({year:"numeric"},"year"):this.num(t.year);case"yy":return r?i({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return r?i({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return r?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 s=this.opts.signMode==="negativeLargestOnly"?-1:1,r=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=r($);if(b){const P=x.isNegativeDuration&&b!==x.largestUnit?s: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(r).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,s)=>e+s.source,"");return RegExp(`^${t}$`)}function kt(...n){return t=>n.reduce(([e,s,r],i)=>{const[a,o,l]=i(t,r);return[M(M({},e),a),o||s,l]},[{},null,1]).slice(0,2)}function St(n,...t){if(n==null)return[null,null];for(const[e,s]of t){const r=e.exec(n);if(r)return s(r)}return[null,null]}function En(...n){return(t,e)=>{const s={};let r;for(r=0;r<n.length;r++)s[n[r]]=dt(t[e+r]);return[s,null,e+r]}}const In=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,rr=`(?:${In.source}?(?:\\[(${xn.source})\\])?)?`,De=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Vn=RegExp(`${De.source}${rr}`),Te=RegExp(`(?:[Tt]${Vn.source})?`),ir=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,ar=/(\d{4})-?W(\d\d)(?:-?(\d))?/,or=/(\d{4})-?(\d{3})/,ur=En("weekYear","weekNumber","weekDay"),lr=En("year","ordinal"),cr=/(\d{4})-(\d\d)-(\d\d)/,Fn=RegExp(`${De.source} ?(?:${In.source}|(${xn.source}))?`),hr=RegExp(`(?: ${Fn.source})?`);function Ot(n,t,e){const s=n[t];return D(s)?e:dt(s)}function dr(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],s=Rt(n[t+1],n[t+2]),r=e?null:R.instance(s);return[{},r,t+3]}function Ct(n,t){const e=n[t]?at.create(n[t]):null;return[{},e,t+1]}const fr=RegExp(`^T?${De.source}$`),mr=/^-?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 yr(n){const[t,e,s,r,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(s)),weeks:$(ft(r)),days:$(ft(i)),hours:$(ft(a)),minutes:$(ft(o)),seconds:$(ft(l),l==="-0"),milliseconds:$(Se(w),x)}]}const gr={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Me(n,t,e,s,r,i,a){const o={year:t.length===2?be(dt(t)):dt(t),month:kn.indexOf(e)+1,day:dt(s),hour:dt(r),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 pr=/^(?:(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 wr(n){const[,t,e,s,r,i,a,o,l,w,S,x]=n,$=Me(t,r,s,e,i,a,o);let b;return l?b=gr[l]:w?b=0:b=Rt(S,x),[$,new R(b)]}function vr(n){return n.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const kr=/^(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$/,Sr=/^(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$/,Or=/^(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,s,r,i,a,o]=n;return[Me(t,r,s,e,i,a,o),R.utcInstance]}function br(n){const[,t,e,s,r,i,a,o]=n;return[Me(t,o,e,s,r,i,a),R.utcInstance]}const Dr=vt(ir,Te),Tr=vt(ar,Te),Mr=vt(or,Te),Nr=vt(Vn),_n=kt(dr,bt,Ft,Ct),xr=kt(ur,bt,Ft,Ct),Er=kt(lr,bt,Ft,Ct),Ir=kt(bt,Ft,Ct);function Vr(n){return St(n,[Dr,_n],[Tr,xr],[Mr,Er],[Nr,Ir])}function Fr(n){return St(vr(n),[pr,wr])}function Cr(n){return St(n,[kr,Cn],[Sr,Cn],[Or,br])}function _r(n){return St(n,[mr,yr])}const $r=kt(bt);function Wr(n){return St(n,[fr,$r])}const Zr=vt(cr,hr),Lr=vt(Fn),zr=kt(bt,Ft,Ct);function jr(n){return St(n,[Zr,_n],[Lr,zr])}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}},Ar=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,Ur=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"],qr=mt.slice(0).reverse();function ut(n,t,e=!1){const s={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(s)}function Zn(n,t){var e;let s=(e=t.milliseconds)!=null?e:0;for(const r of qr.slice(1))t[r]&&(s+=t[r]*n[r].milliseconds);return s}function Ln(n,t){const e=Zn(n,t)<0?-1:1;mt.reduceRight((s,r)=>{if(D(t[r]))return s;if(s){const i=t[s]*e,a=n[r][s],o=Math.floor(i/a);t[r]+=o*e,t[s]-=o*a*e}return r},null),mt.reduce((s,r)=>{if(D(t[r]))return s;if(s){const i=t[s]%1;t[s]-=i,t[r]+=i*n[s][r]}return r},null)}function zn(n){const t={};for(const[e,s]of Object.entries(n))s!==0&&(t[e]=s);return t}class I{constructor(t){const e=t.conversionAccuracy==="longterm"||!1;let s=e?Ur:Ar;t.matrix&&(s=t.matrix),this.values=t.values,this.loc=t.loc||_.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=s,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[s]=_r(t);return s?I.fromObject(s,e):I.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,e){const[s]=Wr(t);return s?I.fromObject(s,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 s=t instanceof st?t:new st(t,e);if(U.throwOnInvalid)throw new u(s);return new I({invalid:s})}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 s=it(M({},e),{floor:e.round!==!1&&e.floor!==!1});return this.isValid?J.create(this.loc,s).formatDurationFromString(this,t):$n}toHuman(t={}){if(!this.isValid)return $n;const e=t.showZeros!==!1,s=mt.map(r=>{const i=this.values[r];return D(i)||i===0&&!e?null:this.loc.numberFormatter(it(M({style:"unit",unitDisplay:"long"},t),{unit:r.slice(0,-1)})).format(i)}).filter(r=>r);return this.loc.listFormatter(M({type:"conjunction",style:t.listStyle||"narrow"},t)).format(s)}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),s={};for(const r of mt)(pt(e.values,r)||pt(this.values,r))&&(s[r]=e.get(r)+this.get(r));return ut(this,{values:s},!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 s of Object.keys(this.values))e[s]=vn(t(this.values[s],s));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:s,matrix:r}={}){const i={loc:this.loc.clone({locale:t,numberingSystem:e}),matrix:r,conversionAccuracy:s};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={},s={},r=this.toObject();let i;for(const a of mt)if(t.indexOf(a)>=0){i=a;let o=0;for(const w in s)o+=this.matrix[w][a]*s[w],s[w]=0;ht(r[a])&&(o+=r[a]);const l=Math.trunc(o);e[a]=l,s[a]=(o*1e3-l*1e3)/1e3}else ht(r[a])&&(s[a]=r[a]);for(const a in s)s[a]!==0&&(e[i]+=a===i?s[a]:s[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(s,r){return s===void 0||s===0?r===void 0||r===0:s===r}for(const s of mt)if(!e(this.values[s],t.values[s]))return!1;return!0}}const Tt="Invalid Interval";function Yr(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 s=t instanceof st?t:new st(t,e);if(U.throwOnInvalid)throw new h(s);return new q({invalid:s})}static fromDateTimes(t,e){const s=Zt(t),r=Zt(e),i=Yr(s,r);return i==null?new q({start:s,end:r}):i}static after(t,e){const s=I.fromDurationLike(e),r=Zt(t);return q.fromDateTimes(r,r.plus(s))}static before(t,e){const s=I.fromDurationLike(e),r=Zt(t);return q.fromDateTimes(r.minus(s),r)}static fromISO(t,e){const[s,r]=(t||"").split("/",2);if(s&&r){let i,a;try{i=T.fromISO(s,e),a=i.isValid}catch(w){a=!1}let o,l;try{o=T.fromISO(r,e),l=o.isValid}catch(w){l=!1}if(a&&l)return q.fromDateTimes(i,o);if(a){const w=I.fromISO(r,e);if(w.isValid)return q.after(i,w)}else if(l){const w=I.fromISO(s,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 s=this.start.startOf(t,e);let r;return e!=null&&e.useLocaleWeeks?r=this.end.reconfigure({locale:s.locale}):r=this.end,r=r.startOf(t,e),Math.floor(r.diff(s,t).get(t))+(r.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()),s=[];let{s:r}=this,i=0;for(;r<this.e;){const a=e[i]||this.e,o=+a>+this.e?this.e:a;s.push(q.fromDateTimes(r,o)),r=o,i+=1}return s}splitBy(t){const e=I.fromDurationLike(t);if(!this.isValid||!e.isValid||e.as("milliseconds")===0)return[];let{s}=this,r=1,i;const a=[];for(;s<this.e;){const o=this.start.plus(e.mapUnits(l=>l*r));i=+o>+this.e?this.e:o,a.push(q.fromDateTimes(s,i)),s=i,r+=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,s=this.e<t.e?this.e:t.e;return e>=s?null:q.fromDateTimes(e,s)}union(t){if(!this.isValid)return this;const e=this.s<t.s?this.s:t.s,s=this.e>t.e?this.e:t.e;return q.fromDateTimes(e,s)}static merge(t){const[e,s]=t.sort((r,i)=>r.s-i.s).reduce(([r,i],a)=>i?i.overlaps(a)||i.abutsStart(a)?[r,i.union(a)]:[r.concat([i]),a]:[r,a],[[],null]);return s&&e.push(s),e}static xor(t){let e=null,s=0;const r=[],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)s+=l.type==="s"?1:-1,s===1?e=l.time:(e&&+e!=+l.time&&r.push(q.fromDateTimes(e,l.time)),e=null);return q.merge(r)}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:s=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||_.create(e,s,i)).months(t)}static monthsFormat(t="long",{locale:e=null,numberingSystem:s=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||_.create(e,s,i)).months(t,!0)}static weekdays(t="long",{locale:e=null,numberingSystem:s=null,locObj:r=null}={}){return(r||_.create(e,s,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:e=null,numberingSystem:s=null,locObj:r=null}={}){return(r||_.create(e,s,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=r=>r.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),s=e(t)-e(n);return Math.floor(I.fromMillis(s).as("days"))}function Hr(n,t,e){const s=[["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]],r={},i=n;let a,o;for(const[l,w]of s)e.indexOf(l)>=0&&(a=l,r[l]=w(n,t),o=i.plus(r),o>t?(r[l]--,n=i.plus(r),n>t&&(o=n,r[l]--,n=i.plus(r))):n=o);return[n,r,o,a]}function Pr(n,t,e,s){let[r,i,a,o]=Hr(n,t,e);const l=t-r,w=e.filter(x=>["hours","minutes","seconds","milliseconds"].indexOf(x)>=0);w.length===0&&(a<t&&(a=r.plus({[o]:1})),a!==r&&(i[o]=(i[o]||0)+l/(a-r)));const S=I.fromObject(i,s);return w.length>0?I.fromMillis(l,s).shiftTo(...w).plus(S):S}const Rr="missing Intl.DateTimeFormat.formatToParts support";function C(n,t=e=>e){return{regex:n,deser:([e])=>t(Zs(e))}}const An="[ ]",Un=new RegExp(An,"g");function Jr(n){return n.replace(/\./g,"\\.?").replace(Un,An)}function qn(n){return n.replace(/\./g,"").replace(Un," ").toLowerCase()}function rt(n,t){return n===null?null:{regex:RegExp(n.map(Jr).join("|")),deser:([e])=>n.findIndex(s=>qn(e)===qn(s))+t}}function Yn(n,t){return{regex:n,deser:([,e,s])=>Rt(e,s),groups:t}}function Bt(n){return{regex:n,deser:([t])=>t}}function Gr(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Br(n,t){const e=nt(t),s=nt(t,"{2}"),r=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(Gr(B.val)),deser:([Nt])=>Nt,literal:!0}),P=(B=>{if(n.literal)return b(B);switch(B.val){case"G":return rt(t.eras("short"),0);case"GG":return rt(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(s);case"MMM":return rt(t.months("short",!0),1);case"MMMM":return rt(t.months("long",!0),1);case"L":return C(o);case"LL":return C(s);case"LLL":return rt(t.months("short",!1),1);case"LLLL":return rt(t.months("long",!1),1);case"d":return C(o);case"dd":return C(s);case"o":return C(l);case"ooo":return C(r);case"HH":return C(s);case"H":return C(o);case"hh":return C(s);case"h":return C(o);case"mm":return C(s);case"m":return C(o);case"q":return C(o);case"qq":return C(s);case"s":return C(o);case"ss":return C(s);case"S":return C(l);case"SSS":return C(r);case"u":return Bt(S);case"uu":return Bt(o);case"uuu":return C(e);case"a":return rt(t.meridiems(),0);case"kkkk":return C(i);case"kk":return C(x,be);case"W":return C(o);case"WW":return C(s);case"E":case"c":return C(e);case"EEE":return rt(t.weekdays("short",!1),1);case"EEEE":return rt(t.weekdays("long",!1),1);case"ccc":return rt(t.weekdays("short",!0),1);case"cccc":return rt(t.weekdays("long",!0),1);case"Z":case"ZZ":return Yn(new RegExp(`([+-]${o.source})(?::(${s.source}))?`),2);case"ZZZ":return Yn(new RegExp(`([+-]${o.source})(${s.source})?`),2);case"z":return Bt(/[a-z_+-/]{1,256}?/i);case" ":return Bt(/[^\S\n\r]/);default:return b(B)}})(n)||{invalidReason:Rr};return P.token=n,P}const Qr={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 Kr(n,t,e){const{type:s,value:r}=n;if(s==="literal"){const l=/^\s+$/.test(r);return{literal:!l,val:l?" ":r}}const i=t[s];let a=s;s==="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=Qr[a];if(typeof o=="object"&&(o=o[i]),o)return{literal:!1,val:o}}function Xr(n){return[`^${n.map(t=>t.regex).reduce((t,e)=>`${t}(${e.source})`,"")}$`,n]}function ti(n,t,e){const s=n.match(t);if(s){const r={};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&&(r[o.token.val[0]]=o.deser(s.slice(i,i+l))),i+=l}return[s,r]}else return[s,{}]}function ei(n){const t=r=>{switch(r){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,s;return D(n.z)||(e=at.create(n.z)),D(n.Z)||(e||(e=new R(n.Z)),s=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((r,i)=>{const a=t(i);return a&&(r[a]=n[i]),r},{}),e,s]}let Ne=null;function ni(){return Ne||(Ne=T.fromMillis(1555555555555)),Ne}function si(n,t){if(n.literal)return n;const e=J.macroTokenToFormatOpts(n.val),s=Jn(e,t);return s==null||s.includes(void 0)?n:s}function Hn(n,t){return Array.prototype.concat(...n.map(e=>si(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(s=>Br(s,t)),this.disqualifyingUnit=this.units.find(s=>s.invalidReason),!this.disqualifyingUnit){const[s,r]=Xr(this.units);this.regex=RegExp(s,"i"),this.handlers=r}}explainFromTokens(t){if(this.isValid){const[e,s]=ti(t,this.regex,this.handlers),[r,i,a]=s?ei(s):[null,null,void 0];if(pt(s,"a")&&pt(s,"H"))throw new c("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:e,matches:s,result:r,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 ri(n,t,e){const{result:s,zone:r,specificOffset:i,invalidReason:a}=Rn(n,t,e);return[s,r,i,a]}function Jn(n,t){if(!n)return null;const e=J.create(t,n).dtFormatter(ni()),s=e.formatToParts(),r=e.resolvedOptions();return s.map(i=>Kr(i,n,r))}const xe="Invalid DateTime",Gn=864e13;function $t(n){return new st("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 s=n-t*60*1e3;const r=e.offset(s);if(t===r)return[s,t];s-=(r-t)*60*1e3;const i=e.offset(s);return r===i?[s,r]:[n-Math.min(r,i)*60*1e3,Math.max(r,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,s=n.c.year+Math.trunc(t.years),r=n.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,i=it(M({},n.c),{year:s,month:r,day:Math.min(n.c.day,Ht(s,r))+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,s,r,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 st("unparsable",`the input "${r}" can't be parsed as ${s}`))}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 s=n.c.year>9999||n.c.year<0;let r="";if(s&&n.c.year>=0&&(r+="+"),r+=Y(n.c.year,s?6:4),e==="year")return r;if(t){if(r+="-",r+=Y(n.c.month),e==="month")return r;r+="-"}else if(r+=Y(n.c.month),e==="month")return r;return r+=Y(n.c.day),r}function Kn(n,t,e,s,r,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&&(!s||n.c.millisecond!==0)&&(l+=".",l+=Y(n.c.millisecond,3))}return r&&(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 ts(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 es(n,t){const e=ct(t.zone,U.defaultZone);if(!e.isValid)return T.invalid($t(e));const s=_.fromObject(t);let r,i;if(D(n.year))r=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);[r,i]=Kt(n,o,e)}return new T({ts:r,zone:e,loc:s,o:i})}function ns(n,t,e){const s=D(e.round)?!0:e.round,r=D(e.rounding)?"trunc":e.rounding,i=(o,l)=>(o=Oe(o,s||e.calendary?0:2,e.calendary?"round":r),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 ss(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 s=t.invalid||(Number.isNaN(t.ts)?new st("invalid input"):null)||(e.isValid?null:$t(e));this.ts=D(t.ts)?U.now():t.ts;let r=null,i=null;if(!s)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(e))[r,i]=[t.old.c,t.old.o];else{const a=ht(t.o)&&!t.old?t.o:e.offset(this.ts);r=Qt(this.ts,a),s=Number.isNaN(r.year)?new st("invalid input"):null,r=s?null:r,i=s?null:a}this._zone=e,this.loc=t.loc||_.create(),this.invalid=s,this.weekData=null,this.localWeekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}static now(){return new T({})}static local(){const[t,e]=ss(arguments),[s,r,i,a,o,l,w]=e;return es({year:s,month:r,day:i,hour:a,minute:o,second:l,millisecond:w},t)}static utc(){const[t,e]=ss(arguments),[s,r,i,a,o,l,w]=e;return t.zone=R.utcInstance,es({year:s,month:r,day:i,hour:a,minute:o,second:l,millisecond:w},t)}static fromJSDate(t,e={}){const s=Us(t)?t.valueOf():NaN;if(Number.isNaN(s))return T.invalid("invalid input");const r=ct(e.zone,U.defaultZone);return r.isValid?new T({ts:s,zone:r,loc:_.fromObject(e)}):T.invalid($t(r))}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 s=ct(e.zone,U.defaultZone);if(!s.isValid)return T.invalid($t(s));const r=_.fromObject(e),i=Jt(t,ts),{minDaysInFirstWeek:a,startOfWeek:o}=hn(i,r),l=U.now(),w=D(e.specificOffset)?s.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 c("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if($&&S)throw new c("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 rs=!1;for(const jt of Nt){const yi=i[jt];D(yi)?rs?i[jt]=ne[jt]:i[jt]=Lt[jt]:rs=!0}const hi=B?zs(i,a,o):S?js(i):dn(i),is=hi||fn(i);if(is)return T.invalid(is);const di=B?ln(i,a,o):S?cn(i):i,[fi,mi]=Kt(di,w,s),zt=new T({ts:fi,zone:s,o:mi,loc:r});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[s,r]=Vr(t);return Mt(s,r,e,"ISO 8601",t)}static fromRFC2822(t,e={}){const[s,r]=Fr(t);return Mt(s,r,e,"RFC 2822",t)}static fromHTTP(t,e={}){const[s,r]=Cr(t);return Mt(s,r,e,"HTTP",e)}static fromFormat(t,e,s={}){if(D(t)||D(e))throw new g("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:i=null}=s,a=_.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0}),[o,l,w,S]=ri(a,t,e);return S?T.invalid(S):Mt(o,l,s,`format ${e}`,t,w)}static fromString(t,e,s={}){return T.fromFormat(t,e,s)}static fromSQL(t,e={}){const[s,r]=jr(t);return Mt(s,r,e,"SQL",t)}static invalid(t,e=null){if(!t)throw new g("need to specify a reason the DateTime is invalid");const s=t instanceof st?t:new st(t,e);if(U.throwOnInvalid)throw new f(s);return new T({invalid:s})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,e={}){const s=Jn(t,_.fromObject(e));return s?s.map(r=>r?r.val:null).join(""):null}static expandFormat(t,e={}){return Hn(J.parseFormat(t),_.fromObject(e)).map(s=>s.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,s=Pt(this.c),r=this.zone.offset(s-t),i=this.zone.offset(s+t),a=this.zone.offset(s-r*e),o=this.zone.offset(s-i*e);if(a===o)return[this];const l=s-a*e,w=s-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:s,calendar:r}=J.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:e,numberingSystem:s,outputCalendar:r}}toUTC(t=0,e={}){return this.setZone(R.instance(t),e)}toLocal(){return this.setZone(U.defaultZone)}setZone(t,{keepLocalTime:e=!1,keepCalendarTime:s=!1}={}){if(t=ct(t,U.defaultZone),t.equals(this.zone))return this;if(t.isValid){let r=this.ts;if(e||s){const i=t.offset(this.ts),a=this.toObject();[r]=Kt(a,i,t)}return yt(this,{ts:r,zone:t})}else return T.invalid($t(t))}reconfigure({locale:t,numberingSystem:e,outputCalendar:s}={}){const r=this.loc.clone({locale:t,numberingSystem:e,outputCalendar:s});return yt(this,{loc:r})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const e=Jt(t,ts),{minDaysInFirstWeek:s,startOfWeek:r}=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 c("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&a)throw new c("Can't mix ordinal dates with month/day");let x;i?x=ln(M(M({},qt(this.c,s,r)),e),s,r):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 s={},r=I.normalizeUnit(t);switch(r){case"years":s.month=1;case"quarters":case"months":s.day=1;case"weeks":case"days":s.hour=0;case"hours":s.minute=0;case"minutes":s.second=0;case"seconds":s.millisecond=0;break}if(r==="weeks")if(e){const i=this.loc.getStartOfWeek(),{weekday:a}=this;a<i&&(s.weekNumber=this.weekNumber-1),s.weekday=i}else s.weekday=1;if(r==="quarters"){const i=Math.ceil(this.month/3);s.month=(i-1)*3+1}return this.set(s)}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:s=!1,includeOffset:r=!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,s,r,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:s=!0,includePrefix:r=!1,extendedZone:i=!1,format:a="extended",precision:o="milliseconds"}={}){return this.isValid?(o=ee(o),(r&&te.indexOf(o)>=3?"T":"")+Kn(this,a==="extended",e,t,s,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:s=!0}={}){let r="HH:mm:ss.SSS";return(e||t)&&(s&&(r+=" "),e?r+="z":t&&(r+="ZZ")),Xt(this,r,!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",s={}){if(!this.isValid||!t.isValid)return I.invalid("created by diffing an invalid DateTime");const r=M({locale:this.locale,numberingSystem:this.numberingSystem},s),i=qs(e).map(I.normalizeUnit),a=t.valueOf()>this.valueOf(),o=a?this:t,l=a?t:this,w=Pr(o,l,i,r);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,s){if(!this.isValid)return!1;const r=t.valueOf(),i=this.setZone(t.zone,{keepLocalTime:!0});return i.startOf(e,s)<=r&&r<=i.endOf(e,s)}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}),s=t.padding?this<e?-t.padding:t.padding:0;let r=["years","months","days","hours","minutes","seconds"],i=t.unit;return Array.isArray(t.unit)&&(r=t.unit,i=void 0),ns(e,this.plus(s),it(M({},t),{numeric:"always",units:r,unit:i}))}toRelativeCalendar(t={}){return this.isValid?ns(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,s={}){const{locale:r=null,numberingSystem:i=null}=s,a=_.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0});return Rn(a,t,e)}static fromStringExplain(t,e,s={}){return T.fromFormatExplain(t,e,s)}static buildFormatParser(t,e={}){const{locale:s=null,numberingSystem:r=null}=e,i=_.fromOpts({locale:s,numberingSystem:r,defaultToEN:!0});return new Pn(i,t)}static fromFormatParser(t,e,s={}){if(D(t)||D(e))throw new g("fromFormatParser requires an input string and a format parser");const{locale:r=null,numberingSystem:i=null}=s,a=_.fromOpts({locale:r,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,s,`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 ws}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,ls;function bi(){if(ls)return Ce;ls=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 h=this._date;this._date=this._date.plus({hours:1}).startOf("hour"),this._date<=h&&(this._date=this._date.plus({hours:1}))},f.prototype.addMinute=function(){var h=this._date;this._date=this._date.plus({minutes:1}).startOf("minute"),this._date<h&&(this._date=this._date.plus({hours:1}))},f.prototype.addSecond=function(){var h=this._date;this._date=this._date.plus({seconds:1}).startOf("second"),this._date<h&&(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 h=this._date;this._date=this._date.minus({hours:1}).endOf("hour").startOf("second"),this._date>=h&&(this._date=this._date.minus({hours:1}))},f.prototype.subtractMinute=function(){var h=this._date;this._date=this._date.minus({minutes:1}).endOf("minute").startOf("second"),this._date>h&&(this._date=this._date.minus({hours:1}))},f.prototype.subtractSecond=function(){var h=this._date;this._date=this._date.minus({seconds:1}).startOf("second"),this._date>h&&(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 h=this._date.weekday;return h==7?0:h},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 h=this._getUTC().weekday;return h==7?0:h},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(h){this._date=this._date.set({day:h})},f.prototype.setFullYear=function(h){this._date=this._date.set({year:h})},f.prototype.setDay=function(h){this._date=this._date.set({weekday:h})},f.prototype.setMonth=function(h){this._date=this._date.set({month:h+1})},f.prototype.setHours=function(h){this._date=this._date.set({hour:h})},f.prototype.setMinutes=function(h){this._date=this._date.set({minute:h})},f.prototype.setSeconds=function(h){this._date=this._date.set({second:h})},f.prototype.setMilliseconds=function(h){this._date=this._date.set({millisecond:h})},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 h=this._date.plus({days:1}).startOf("day");return this._date.month!==h.month},f.prototype.isLastWeekdayOfMonth=function(){var h=this._date.plus({days:7}).startOf("day");return this._date.month!==h.month};function f(h,u){var c={zone:u};if(h?h instanceof f?this._date=h._date:h instanceof Date?this._date=m.DateTime.fromJSDate(h,c):typeof h=="number"?this._date=m.DateTime.fromMillis(h,c):typeof h=="string"&&(this._date=m.DateTime.fromISO(h,c),this._date.isValid||(this._date=m.DateTime.fromRFC2822(h,c)),this._date.isValid||(this._date=m.DateTime.fromSQL(h,c)),this._date.isValid||(this._date=m.DateTime.fromFormat(h,"EEE, d MMM yyyy HH:mm:ss",c))):this._date=m.DateTime.local(),!this._date||!this._date.isValid)throw new Error("CronDate: unhandled timestamp: "+JSON.stringify(h));u&&u!==this._date.zoneName&&(this._date=this._date.setZone(u))}return Ce=f,Ce}var _e,cs;function Di(){if(cs)return _e;cs=1;function m(c){return{start:c,count:1}}function f(c,y){c.end=y,c.step=y-c.start,c.count=2}function h(c,y,g){y&&(y.count===2?(c.push(m(y.start)),c.push(m(y.end))):c.push(y)),g&&c.push(g)}function u(c){for(var y=[],g=void 0,k=0;k<c.length;k++){var d=c[k];typeof d!="number"?(h(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)):(h(y,g),g=m(d)):g=m(d)}return h(y,g),y}return _e=u,_e}var $e,hs;function Ti(){if(hs)return $e;hs=1;var m=Di();function f(h,u,c){var y=m(h);if(y.length===1){var g=y[0],k=g.step;if(k===1&&g.start===u&&g.end===c)return"*";if(k!==1&&g.start===u&&g.end===c-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===c-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,ds;function Mi(){if(ds)return We;ds=1;var m=bi(),f=Ti(),h=1e4;function u(c,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(c)}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(c,y){return typeof y!="string"?!1:c.chars.some(function(g){return y.indexOf(g)>-1})},u._parseField=function(c,y,g){switch(c){case"month":case"dayOfWeek":var k=u.aliases[c];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[c].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);c==="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.");c==="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(c,y){var g=typeof c=="number",k=typeof y=="number";return g&&k?c-y:!g&&k?1:g&&!k?-1:c.localeCompare(y)},u._handleMaxDaysInMonth=function(c){if(c.month.length===1){var y=u.daysInMonth[c.month[0]-1];if(c.dayOfMonth[0]>y)throw new Error("Invalid explicit day of month definition");return c.dayOfMonth.filter(function(g){return g==="L"?!0:g<=y}).sort(u._sortCompareFn)}},u._freezeFields=function(c){for(var y=0,g=u.map.length;y<g;++y){var k=u.map[y],d=c[k];c[k]=Object.freeze(d)}return Object.freeze(c)},u.prototype._applyTimezoneShift=function(c,y,g){if(g==="Month"||g==="Day"){var k=c.getTime();c[y+g]();var d=c.getTime();k===d&&(c.getMinutes()===0&&c.getSeconds()===0?c.addHour():c.getMinutes()===59&&c.getSeconds()===59&&c.subtractHour())}else{var p=c.getHours();c[y+g]();var O=c.getHours(),v=O-p;v===2?this.fields.hour.length!==24&&(this._dstStart=O):v===0&&c.getMinutes()===0&&c.getSeconds()===0&&this.fields.hour.length!==24&&(this._dstEnd=O)}},u.prototype._findSchedule=function(c){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})}c=c||!1;var d=c?"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<h;){if(N++,c){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&&!c){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>=h)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 c=this._findSchedule();return this._isIterator?{value:c,done:!this.hasNext()}:c},u.prototype.prev=function(){var c=this._findSchedule(!0);return this._isIterator?{value:c,done:!this.hasPrev()}:c},u.prototype.hasNext=function(){var c=this._currentDate,y=this._hasIterated;try{return this._findSchedule(),!0}catch(g){return!1}finally{this._currentDate=c,this._hasIterated=y}},u.prototype.hasPrev=function(){var c=this._currentDate,y=this._hasIterated;try{return this._findSchedule(!0),!0}catch(g){return!1}finally{this._currentDate=c,this._hasIterated=y}},u.prototype.iterate=function(c,y){var g=[];if(c>=0)for(var k=0,d=c;k<d;k++)try{var p=this.next();g.push(p),y&&y(p,k)}catch(O){break}else for(var k=0,d=c;k>d;k--)try{var p=this.prev();g.push(p),y&&y(p,k)}catch(L){break}return g},u.prototype.reset=function(c){this._currentDate=new m(c||this._options.currentDate)},u.prototype.stringify=function(c){for(var y=[],g=c?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(c,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(c,y)},u.fieldsToExpression=function(c,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=c[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,fs;function Ii(){if(fs)return Ze;fs=1;var m=Mi();function f(){}return f._parseEntry=function(h){var u=h.split(" ");if(u.length===6)return{interval:m.parse(h)};if(u.length>6)return{interval:m.parse(u.slice(0,6).join(" ")),command:u.slice(6,u.length)};throw new Error("Invalid entry: "+h)},f.parseExpression=function(h,u){return m.parse(h,u)},f.fieldsToExpression=function(h,u){return m.fieldsToExpression(h,u)},f.parseString=function(h){for(var u=h.split(`
|
||
`),c={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(/^(.*)=(.*)$/))c.variables[d[1]]=d[2];else{var O=null;try{O=f._parseEntry("0 "+p),c.expressions.push(O.interval)}catch(v){c.errors[p]=v}}}}return c},f.parseFile=function(h,u){Ei.readFile(h,function(c,y){if(c){u(c);return}return u(null,f.parseString(y.toString()))})},Ze=f,Ze}var Vi=Ii();const Fi=pi(Vi),Ci="__custom__";function ps(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:h,hour:u}=ps(m);return[{label:"每分钟",value:`${f} 0/1 * * * ?`,type:"minute"},{label:"每小时",value:`${f} ${h} 0/1 * * ?`,type:"hour"},{label:"每天",value:`${f} ${h} ${u} * * ?`,type:"day"},{label:"自定义",value:Ci,type:"custom"}]}function Hi(m,f){const h=_i(m),u=h.find(c=>c.type===f);return u?u.value:h[0].value}function $i(m,f){const h=[];if(!m)return h;const u=f&&f.count&&f.count>0?f.count:10,c=f?ms(f.startTime):void 0,y=f?ms(f.endTime):void 0;if(c&&y&<(c).isAfter(y))return h;const g={currentDate:c?lt(c).subtract(1,"second").toDate():new Date};c&&(g.startDate=c),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;h.push(lt(O).format("YYYY-MM-DD HH:mm:ss"))}}catch(k){}return h}function ms(m){if(m==null)return;const f=lt(m);if(f.isValid())return f.toDate()}function Pi(m){var f,h;const u=[],c=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:c,g=(h=m.endTime)!=null?h: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=c;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:h}=ps(m);return{time:{second:f,minute:h},hour:{mode:"every"},day:{type:"day",day:{mode:"every"}},month:{mode:"every"}}}function Ri(m){var f,h;const u=m!=null?m:Wi(),c=A((f=u.time)==null?void 0:f.second,0,59,0),y=A((h=u.time)==null?void 0:h.minute,0,59,0),g=Zi(u.hour),k=Li(u.month),{dayField:d,weekField:p}=zi(u.day);return`${c} ${y} ${g} ${d} ${k} ${p}`}function Ji(m){const f=m?m.trim().split(/\s+/):[];if(f.length<6)return null;const[h,u,c,y,g,k]=f,d={second:A(Number(h),0,59,0),minute:A(Number(u),0,59,0)},p=ji(c);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,h,u){const c=typeof m=="number"&&Number.isFinite(m)?Math.floor(m):NaN;return Number.isNaN(c)?u:c<f?f:c>h?h:c}function Zi(m){var f;if(!m)return"*";const h={mode:(f=m.mode)!=null?f:"every",range:m.range,values:m.values,interval:m.interval};if(h.mode==="range"&&h.range&&h.range.length===2){const[u,c]=h.range;return`${A(u,0,23,0)}-${A(c,0,23,23)}`}if(h.mode==="value"&&Array.isArray(h.values)&&h.values.length>0){const u=Array.from(new Set(h.values.map(c=>A(c,0,23,0))));return u.sort((c,y)=>c-y),u.join(",")}if(h.mode==="interval"&&h.interval){const u=A(h.interval.start,0,23,0),c=A(h.interval.step,1,23,1);return`${u}/${c}`}return"*"}function Li(m){var f;if(!m)return"*";const h={mode:(f=m.mode)!=null?f:"every",values:m.values};if(h.mode==="value"&&Array.isArray(h.values)&&h.values.length>0){const u=Array.from(new Set(h.values.map(c=>A(c,1,12,1))));return u.sort((c,y)=>c-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,c=Array.isArray(u)&&u.length>0?u:[1],y=Array.from(new Set(c.map(g=>A(g,1,7,1))));return y.sort((g,k)=>g-k),{dayField:"?",weekField:y.join(",")}}const h=m==null?void 0:m.day;if(h&&h.mode==="range"&&h.range&&h.range.length===2){const[u,c]=h.range;return{dayField:`${A(u,1,31,1)}-${A(c,1,31,31)}`,weekField:"?"}}if(h&&h.mode==="value"&&Array.isArray(h.values)&&h.values.length>0){const u=Array.from(new Set(h.values.map(c=>A(c,1,31,1))));return u.sort((c,y)=>c-y),{dayField:u.join(","),weekField:"?"}}if(h&&h.mode==="interval"&&h.interval){const u=A(h.interval.start,1,31,1),c=A(h.interval.step,1,31,1);return{dayField:`${u}/${c}`,weekField:"?"}}return h&&h.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[h,u]=m.split("/"),c=Number(h),y=Number(u);return{mode:"interval",interval:{start:A(c,0,23,0),step:A(y,1,23,1)}}}if(m.includes("-")){const[h,u]=m.split("-"),c=Number(h),y=Number(u);return{mode:"range",range:[A(c,0,23,0),A(y,0,23,23)]}}const f=re(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=re(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[c,y]=m.split("/"),g=Number(c),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[c,y]=m.split("-"),g=Number(c),k=Number(y);return{type:"day",day:{mode:"range",range:[A(g,1,31,1),A(k,1,31,31)]}}}const u=re(m,1,31);return u&&u.length>0?{type:"day",day:{mode:"value",values:u}}:{type:"day",day:{mode:"every"}}}const h=re(f,1,7);return{type:"week",week:{values:h&&h.length>0?h:[1]}}}function re(m,f,h){if(!m)return null;const u=m.split(",").map(y=>A(Number(y),f,h,f)),c=Array.from(new Set(u));return c.sort((y,g)=>y-g),c}export{Ji as B,Ci as F,Hi as G,Pi as J,Wi as L,_i as V,Ri as j};
|