"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9593],{29593:(e,t,r)=>{let n;r.d(t,{c9:()=>rY,IX:()=>rn});class i extends Error{}class s extends i{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class a extends i{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class o extends i{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class l extends i{}class u extends i{constructor(e){super(`Invalid unit ${e}`)}}class c extends i{}class h extends i{constructor(){super("Zone is an abstract class")}}let d="numeric",m="short",f="long",y={year:d,month:d,day:d},g={year:d,month:m,day:d},w={year:d,month:m,day:d,weekday:m},p={year:d,month:f,day:d},k={year:d,month:f,day:d,weekday:f},v={hour:d,minute:d},T={hour:d,minute:d,second:d},S={hour:d,minute:d,second:d,timeZoneName:m},O={hour:d,minute:d,second:d,timeZoneName:f},N={hour:d,minute:d,hourCycle:"h23"},b={hour:d,minute:d,second:d,hourCycle:"h23"},D={hour:d,minute:d,second:d,hourCycle:"h23",timeZoneName:m},M={hour:d,minute:d,second:d,hourCycle:"h23",timeZoneName:f},I={year:d,month:d,day:d,hour:d,minute:d},V={year:d,month:d,day:d,hour:d,minute:d,second:d},E={year:d,month:m,day:d,hour:d,minute:d},x={year:d,month:m,day:d,hour:d,minute:d,second:d},F={year:d,month:m,day:d,weekday:m,hour:d,minute:d},C={year:d,month:f,day:d,hour:d,minute:d,timeZoneName:m},$={year:d,month:f,day:d,hour:d,minute:d,second:d,timeZoneName:m},W={year:d,month:f,day:d,weekday:f,hour:d,minute:d,timeZoneName:f},Z={year:d,month:f,day:d,weekday:f,hour:d,minute:d,second:d,timeZoneName:f};class L{get type(){throw new h}get name(){throw new h}get ianaName(){return this.name}get isUniversal(){throw new h}offsetName(e,t){throw new h}formatOffset(e,t){throw new h}offset(e){throw new h}equals(e){throw new h}get isValid(){throw new h}}let z=null;class q extends L{static get instance(){return null===z&&(z=new q),z}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:r}){return e2(e,t,r)}formatOffset(e,t){return e5(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}let j={},A={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6},U={};class _ extends L{static create(e){return U[e]||(U[e]=new _(e)),U[e]}static resetCache(){U={},j={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=_.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:r}){return e2(e,t,r,this.name)}formatOffset(e,t){return e5(this.offset(e),t)}offset(e){var t;let r=new Date(e);if(isNaN(r))return NaN;let n=(j[t=this.name]||(j[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),j[t]),[i,s,a,o,l,u,c]=n.formatToParts?function(e,t){let r=e.formatToParts(t),n=[];for(let e=0;e=0?m:1e3+m))/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let Y={},H={};function R(e,t={}){let r=JSON.stringify([e,t]),n=H[r];return n||(n=new Intl.DateTimeFormat(e,t),H[r]=n),n}let J={},P={},G=null,B={};function Q(e,t,r,n){let i=e.listingMode();return"error"===i?null:"en"===i?r(t):n(t)}class K{constructor(e,t,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;let{padTo:n,floor:i,...s}=r;if(!t||Object.keys(s).length>0){let t={useGrouping:!1,...r};r.padTo>0&&(t.minimumIntegerDigits=r.padTo),this.inf=function(e,t={}){let r=JSON.stringify([e,t]),n=J[r];return n||(n=new Intl.NumberFormat(e,t),J[r]=n),n}(e,t)}}format(e){if(!this.inf)return eY(this.floor?Math.floor(e):eP(e,3),this.padTo);{let t=this.floor?Math.floor(e):e;return this.inf.format(t)}}}class X{constructor(e,t,r){let n;if(this.opts=r,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){let t=-1*(e.offset/60),r=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&_.create(r).valid?(n=r,this.dt=e):(n="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,n=e.zone.name):(n="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let i={...this.opts};i.timeZone=i.timeZone||n,this.dtf=R(t,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(e=>{if("timeZoneName"!==e.type)return e;{let t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class ee{constructor(e,t,r){this.opts={style:"long",...r},!t&&ez()&&(this.rtf=function(e,t={}){let{base:r,...n}=t,i=JSON.stringify([e,n]),s=P[i];return s||(s=new Intl.RelativeTimeFormat(e,t),P[i]=s),s}(e,r))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,r="always",n=!1){let i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},s=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===r&&s){let r="days"===e;switch(t){case 1:return r?"tomorrow":`next ${i[e][0]}`;case -1:return r?"yesterday":`last ${i[e][0]}`;case 0:return r?"today":`this ${i[e][0]}`}}let a=Object.is(t,-0)||t<0,o=Math.abs(t),l=1===o,u=i[e],c=n?l?u[1]:u[2]||u[1]:l?i[e][0]:e;return a?`${o} ${c} ago`:`in ${o} ${c}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}let et={firstDay:1,minimalDays:4,weekend:[6,7]};class er{static fromOpts(e){return er.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,r,n,i=!1){let s=e||ev.defaultLocale,a=s||(i?"en-US":G||(G=new Intl.DateTimeFormat().resolvedOptions().locale)),o=t||ev.defaultNumberingSystem;return new er(a,o,r||ev.defaultOutputCalendar,eU(n)||ev.defaultWeekSettings,s)}static resetCache(){G=null,H={},J={},P={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:r,weekSettings:n}={}){return er.create(e,t,r,n)}constructor(e,t,r,n,i){let[s,a,o]=function(e){let t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));let r=e.indexOf("-u-");if(-1===r)return[e];{let t,n;try{t=R(e).resolvedOptions(),n=e}catch(s){let i=e.substring(0,r);t=R(i).resolvedOptions(),n=i}let{numberingSystem:i,calendar:s}=t;return[n,i,s]}}(e);this.locale=s,this.numberingSystem=t||a||null,this.outputCalendar=r||o||null,this.weekSettings=n,this.intl=function(e,t,r){return(r||t)&&(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`)),e}(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(){if(null==this.fastNumbersCached)this.fastNumbersCached=(!this.numberingSystem||"latn"===this.numberingSystem)&&("latn"===this.numberingSystem||!this.locale||this.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(this.intl).resolvedOptions().numberingSystem);return this.fastNumbersCached}listingMode(){let e=this.isEnglish(),t=(null===this.numberingSystem||"latn"===this.numberingSystem)&&(null===this.outputCalendar||"gregory"===this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?er.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,eU(e.weekSettings)||this.weekSettings,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return Q(this,e,tt,()=>{let r=t?{month:e,day:"numeric"}:{month:e},n=t?"format":"standalone";return this.monthsCache[n][e]||(this.monthsCache[n][e]=function(e){let t=[];for(let r=1;r<=12;r++){let n=rY.utc(2009,r,1);t.push(e(n))}return t}(e=>this.extract(e,r,"month"))),this.monthsCache[n][e]})}weekdays(e,t=!1){return Q(this,e,ts,()=>{let r=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},n=t?"format":"standalone";return this.weekdaysCache[n][e]||(this.weekdaysCache[n][e]=function(e){let t=[];for(let r=1;r<=7;r++){let n=rY.utc(2016,11,13+r);t.push(e(n))}return t}(e=>this.extract(e,r,"weekday"))),this.weekdaysCache[n][e]})}meridiems(){return Q(this,void 0,()=>ta,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[rY.utc(2016,11,13,9),rY.utc(2016,11,13,19)].map(t=>this.extract(t,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Q(this,e,tc,()=>{let t={era:e};return this.eraCache[e]||(this.eraCache[e]=[rY.utc(-40,1,1),rY.utc(2017,1,1)].map(e=>this.extract(e,t,"era"))),this.eraCache[e]})}extract(e,t,r){let n=this.dtFormatter(e,t).formatToParts().find(e=>e.type.toLowerCase()===r);return n?n.value:null}numberFormatter(e={}){return new K(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new X(e,this.intl,t)}relFormatter(e={}){return new ee(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){let r=JSON.stringify([e,t]),n=Y[r];return n||(n=new Intl.ListFormat(e,t),Y[r]=n),n}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:eq()?function(e){let t=B[e];if(!t){let r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,B[e]=t}return t}(this.locale):et}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let en=null;class ei extends L{static get utcInstance(){return null===en&&(en=new ei(0)),en}static instance(e){return 0===e?ei.utcInstance:new ei(e)}static parseSpecifier(e){if(e){let t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new ei(e3(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${e5(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${e5(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return e5(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class es extends L{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function ea(e,t){if(eW(e)||null===e)return t;if(e instanceof L)return e;if("string"==typeof e){let r=e.toLowerCase();return"default"===r?t:"local"===r||"system"===r?q.instance:"utc"===r||"gmt"===r?ei.utcInstance:ei.parseSpecifier(r)||_.create(e)}if(eZ(e))return ei.instance(e);if("object"==typeof e&&"offset"in e&&"function"==typeof e.offset)return e;else return new es(e)}let eo={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},el={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]},eu=eo.hanidec.replace(/[\[|\]]/g,"").split(""),ec={};function eh({numberingSystem:e},t=""){let r=e||"latn";return ec[r]||(ec[r]={}),ec[r][t]||(ec[r][t]=RegExp(`${eo[r]}${t}`)),ec[r][t]}let ed=()=>Date.now(),em="system",ef=null,ey=null,eg=null,ew=60,ep,ek=null;class ev{static get now(){return ed}static set now(e){ed=e}static set defaultZone(e){em=e}static get defaultZone(){return ea(em,q.instance)}static get defaultLocale(){return ef}static set defaultLocale(e){ef=e}static get defaultNumberingSystem(){return ey}static set defaultNumberingSystem(e){ey=e}static get defaultOutputCalendar(){return eg}static set defaultOutputCalendar(e){eg=e}static get defaultWeekSettings(){return ek}static set defaultWeekSettings(e){ek=eU(e)}static get twoDigitCutoffYear(){return ew}static set twoDigitCutoffYear(e){ew=e%100}static get throwOnInvalid(){return ep}static set throwOnInvalid(e){ep=e}static resetCaches(){er.resetCache(),_.resetCache(),rY.resetCache(),ec={}}}class eT{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}let eS=[0,31,59,90,120,151,181,212,243,273,304,334],eO=[0,31,60,91,121,152,182,213,244,274,305,335];function eN(e,t){return new eT("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function eb(e,t,r){let n=new Date(Date.UTC(e,t-1,r));e<100&&e>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);let i=n.getUTCDay();return 0===i?7:i}function eD(e,t){let r=eG(e)?eO:eS,n=r.findIndex(e=>ee1(n,t,r)?(u=n+1,l=1):u=n,{weekYear:u,weekNumber:l,weekday:o,...e9(e)}}function eV(e,t=4,r=1){let{weekYear:n,weekNumber:i,weekday:s}=e,a=eM(eb(n,1,t),r),o=eB(n),l=7*i+s-a-7+t,u;l<1?l+=eB(u=n-1):l>o?(u=n+1,l-=eB(n)):u=n;let{month:c,day:h}=eD(u,l);return{year:u,month:c,day:h,...e9(e)}}function eE(e){let{year:t,month:r,day:n}=e,i=n+(eG(t)?eO:eS)[r-1];return{year:t,ordinal:i,...e9(e)}}function ex(e){let{year:t,ordinal:r}=e,{month:n,day:i}=eD(t,r);return{year:t,month:n,day:i,...e9(e)}}function eF(e,t){if(!(!eW(e.localWeekday)||!eW(e.localWeekNumber)||!eW(e.localWeekYear)))return{minDaysInFirstWeek:4,startOfWeek:1};if(!eW(e.weekday)||!eW(e.weekNumber)||!eW(e.weekYear))throw new l("Cannot mix locale-based week fields with ISO-based week fields");return eW(e.localWeekday)||(e.weekday=e.localWeekday),eW(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),eW(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}function eC(e){let t=eL(e.year),r=e_(e.month,1,12),n=e_(e.day,1,eQ(e.year,e.month));return t?r?!n&&eN("day",e.day):eN("month",e.month):eN("year",e.year)}function e$(e){let{hour:t,minute:r,second:n,millisecond:i}=e,s=e_(t,0,23)||24===t&&0===r&&0===n&&0===i,a=e_(r,0,59),o=e_(n,0,59),l=e_(i,0,999);return s?a?o?!l&&eN("millisecond",i):eN("second",n):eN("minute",r):eN("hour",t)}function eW(e){return void 0===e}function eZ(e){return"number"==typeof e}function eL(e){return"number"==typeof e&&e%1==0}function ez(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function eq(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return!1}}function ej(e,t,r){if(0!==e.length)return e.reduce((e,n)=>{let i=[t(n),n];return e&&r(e[0],i[0])===e[0]?e:i},null)[1]}function eA(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function eU(e){if(null==e)return null;if("object"!=typeof e)throw new c("Week settings must be an object");if(!e_(e.firstDay,1,7)||!e_(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(e=>!e_(e,1,7)))throw new c("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function e_(e,t,r){return eL(e)&&e>=t&&e<=r}function eY(e,t=2){let r;return e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0")}function eH(e){if(!eW(e)&&null!==e&&""!==e)return parseInt(e,10)}function eR(e){if(!eW(e)&&null!==e&&""!==e)return parseFloat(e)}function eJ(e){if(!eW(e)&&null!==e&&""!==e)return Math.floor(1e3*parseFloat("0."+e))}function eP(e,t,r=!1){let n=10**t;return(r?Math.trunc:Math.round)(e*n)/n}function eG(e){return e%4==0&&(e%100!=0||e%400==0)}function eB(e){return eG(e)?366:365}function eQ(e,t){var r;let n=(r=t-1)-12*Math.floor(r/12)+1;return 2===n?eG(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function eK(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t)).setUTCFullYear(e.year,e.month-1,e.day),+t}function eX(e,t,r){return-eM(eb(e,1,t),r)+t-1}function e1(e,t=4,r=1){let n=eX(e,t,r),i=eX(e+1,t,r);return(eB(e)-n+i)/7}function e0(e){return e>99?e:e>ev.twoDigitCutoffYear?1900+e:2e3+e}function e2(e,t,r,n=null){let i=new Date(e),s={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(s.timeZone=n);let a={timeZoneName:t,...s},o=new Intl.DateTimeFormat(r,a).formatToParts(i).find(e=>"timezonename"===e.type.toLowerCase());return o?o.value:null}function e3(e,t){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);let n=parseInt(t,10)||0,i=r<0||Object.is(r,-0)?-n:n;return 60*r+i}function e4(e){let t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new c(`Invalid unit value ${e}`);return t}function e6(e,t){let r={};for(let n in e)if(eA(e,n)){let i=e[n];if(null==i)continue;r[t(n)]=e4(i)}return r}function e5(e,t){let r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${eY(r,2)}:${eY(n,2)}`;case"narrow":return`${i}${r}${n>0?`:${n}`:""}`;case"techie":return`${i}${eY(r,2)}${eY(n,2)}`;default:throw RangeError(`Value format ${t} is out of range for property format`)}}function e9(e){return["hour","minute","second","millisecond"].reduce((t,r)=>(t[r]=e[r],t),{})}let e7=["January","February","March","April","May","June","July","August","September","October","November","December"],e8=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],te=["J","F","M","A","M","J","J","A","S","O","N","D"];function tt(e){switch(e){case"narrow":return[...te];case"short":return[...e8];case"long":return[...e7];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}}let tr=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],tn=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],ti=["M","T","W","T","F","S","S"];function ts(e){switch(e){case"narrow":return[...ti];case"short":return[...tn];case"long":return[...tr];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}let ta=["AM","PM"],to=["Before Christ","Anno Domini"],tl=["BC","AD"],tu=["B","A"];function tc(e){switch(e){case"narrow":return[...tu];case"short":return[...tl];case"long":return[...to];default:return null}}function th(e,t){let r="";for(let n of e)n.literal?r+=n.val:r+=t(n.val);return r}let td={D:y,DD:g,DDD:p,DDDD:k,t:v,tt:T,ttt:S,tttt:O,T:N,TT:b,TTT:D,TTTT:M,f:I,ff:E,fff:C,ffff:W,F:V,FF:x,FFF:$,FFFF:Z};class tm{static create(e,t={}){return new tm(e,t)}static parseFormat(e){let t=null,r="",n=!1,i=[];for(let s=0;s0&&i.push({literal:n||/^\s+$/.test(r),val:r}),t=null,r="",n=!n):n?r+=a:a===t?r+=a:(r.length>0&&i.push({literal:/^\s+$/.test(r),val:r}),r=a,t=a)}return r.length>0&&i.push({literal:n||/^\s+$/.test(r),val:r}),i}static macroTokenToFormatOpts(e){return td[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return eY(e,t);let r={...this.opts};return t>0&&(r.padTo=t),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,t){let r="en"===this.loc.listingMode(),n=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,i=(t,r)=>this.loc.extract(e,t,r),s=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",a=()=>r?ta[e.hour<12?0:1]:i({hour:"numeric",hourCycle:"h12"},"dayperiod"),o=(t,n)=>r?tt(t)[e.month-1]:i(n?{month:t}:{month:t,day:"numeric"},"month"),l=(t,n)=>r?ts(t)[e.weekday-1]:i(n?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),u=t=>{let r=tm.macroTokenToFormatOpts(t);return r?this.formatWithSystemDefault(e,r):t},c=t=>r?tc(t)[e.year<0?0:1]:i({era:t},"era");return th(tm.parseFormat(t),t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return a();case"d":return n?i({day:"numeric"},"day"):this.num(e.day);case"dd":return n?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return n?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return n?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return o("short",!0);case"LLLL":return o("long",!0);case"LLLLL":return o("narrow",!0);case"M":return n?i({month:"numeric"},"month"):this.num(e.month);case"MM":return n?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return o("short",!1);case"MMMM":return o("long",!1);case"MMMMM":return o("narrow",!1);case"y":return n?i({year:"numeric"},"year"):this.num(e.year);case"yy":return n?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return n?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return n?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return u(t)}})}formatDurationFromString(e,t){let r;let n=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},i=tm.parseFormat(t),s=i.reduce((e,{literal:t,val:r})=>t?e:e.concat(r),[]);return th(i,(r=e.shiftTo(...s.map(n).filter(e=>e)),e=>{let t=n(e);return t?this.num(r.get(t),e.length):e}))}}let tf=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function ty(...e){let t=e.reduce((e,t)=>e+t.source,"");return RegExp(`^${t}$`)}function tg(...e){return t=>e.reduce(([e,r,n],i)=>{let[s,a,o]=i(t,n);return[{...e,...s},a||r,o]},[{},null,1]).slice(0,2)}function tw(e,...t){if(null==e)return[null,null];for(let[r,n]of t){let t=r.exec(e);if(t)return n(t)}return[null,null]}function tp(...e){return(t,r)=>{let n;let i={};for(n=0;nvoid 0!==e&&(t||e&&c)?-e:e;return[{years:d(eR(r)),months:d(eR(n)),weeks:d(eR(i)),days:d(eR(s)),hours:d(eR(a)),minutes:d(eR(o)),seconds:d(eR(l),"-0"===l),milliseconds:d(eJ(u),h)}]}let tW={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function tZ(e,t,r,n,i,s,a){let o={year:2===t.length?e0(eH(t)):eH(t),month:e8.indexOf(r)+1,day:eH(n),hour:eH(i),minute:eH(s)};return a&&(o.second=eH(a)),e&&(o.weekday=e.length>3?tr.indexOf(e)+1:tn.indexOf(e)+1),o}let tL=/^(?:(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 tz(e){let t;let[,r,n,i,s,a,o,l,u,c,h,d]=e;return[tZ(r,s,i,n,a,o,l),new ei(u?tW[u]:c?0:e3(h,d))]}let tq=/^(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$/,tj=/^(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$/,tA=/^(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 tU(e){let[,t,r,n,i,s,a,o]=e;return[tZ(t,i,n,r,s,a,o),ei.utcInstance]}function t_(e){let[,t,r,n,i,s,a,o]=e;return[tZ(t,o,r,n,i,s,a),ei.utcInstance]}let tY=ty(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,tO),tH=ty(/(\d{4})-?W(\d\d)(?:-?(\d))?/,tO),tR=ty(/(\d{4})-?(\d{3})/,tO),tJ=ty(tS),tP=tg(function(e,t){return[{year:tI(e,t),month:tI(e,t+1,1),day:tI(e,t+2,1)},null,t+3]},tV,tE,tx),tG=tg(tN,tV,tE,tx),tB=tg(tb,tV,tE,tx),tQ=tg(tV,tE,tx),tK=tg(tV),tX=ty(/(\d{4})-(\d\d)-(\d\d)/,tM),t1=ty(tD),t0=tg(tV,tE,tx),t2="Invalid Duration",t3={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},t4={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...t3},t6={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:0x1e18558,milliseconds:31556952e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:7889238,milliseconds:7889238e3},months:{weeks:30.436875/7,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...t3},t5=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],t9=t5.slice(0).reverse();function t7(e,t,r=!1){return new rt({values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix})}function t8(e,t){let r=t.milliseconds??0;for(let n of t9.slice(1))t[n]&&(r+=t[n]*e[n].milliseconds);return r}function re(e,t){let r=0>t8(e,t)?-1:1;t5.reduceRight((n,i)=>{if(eW(t[i]))return n;if(n){let s=t[n]*r,a=e[i][n],o=Math.floor(s/a);t[i]+=o*r,t[n]-=o*a*r}return i},null),t5.reduce((r,n)=>{if(eW(t[n]))return r;if(r){let i=t[r]%1;t[r]-=i,t[n]+=i*e[r][n]}return n},null)}class rt{constructor(e){let t="longterm"===e.conversionAccuracy,r=t?t6:t4;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||er.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,t){return rt.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new c(`Duration.fromObject: argument expected to be an object, got ${null===e?"null":typeof e}`);return new rt({values:e6(e,rt.normalizeUnit),loc:er.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(eZ(e))return rt.fromMillis(e);if(rt.isDuration(e))return e;if("object"==typeof e)return rt.fromObject(e);throw new c(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){let[r]=tw(e,[tC,t$]);return r?rt.fromObject(r,t):rt.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){let[r]=tw(e,[tF,tK]);return r?rt.fromObject(r,t):rt.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new c("need to specify a reason the Duration is invalid");let r=e instanceof eT?e:new eT(e,t);if(!ev.throwOnInvalid)return new rt({invalid:r});throw new o(r)}static normalizeUnit(e){let t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new u(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){let r={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?tm.create(this.loc,r).formatDurationFromString(this,e):t2}toHuman(e={}){if(!this.isValid)return t2;let t=t5.map(t=>{let r=this.values[t];return eW(r)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(r)}).filter(e=>e);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),(0!==this.months||0!==this.quarters)&&(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)&&(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),(0!==this.seconds||0!==this.milliseconds)&&(e+=eP(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},rY.fromMillis(t,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?t8(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let t=rt.fromDurationLike(e),r={};for(let e of t5)(eA(t.values,e)||eA(this.values,e))&&(r[e]=t.get(e)+this.get(e));return t7(this,{values:r},!0)}minus(e){if(!this.isValid)return this;let t=rt.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;let t={};for(let r of Object.keys(this.values))t[r]=e4(e(this.values[r],r));return t7(this,{values:t},!0)}get(e){return this[rt.normalizeUnit(e)]}set(e){return this.isValid?t7(this,{values:{...this.values,...e6(e,rt.normalizeUnit)}}):this}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:r,matrix:n}={}){return t7(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:n,conversionAccuracy:r})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return re(this.matrix,e),t7(this,{values:e},!0)}rescale(){return this.isValid?t7(this,{values:function(e){let t={};for(let[r,n]of Object.entries(e))0!==n&&(t[r]=n);return t}(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...e){let t;if(!this.isValid||0===e.length)return this;e=e.map(e=>rt.normalizeUnit(e));let r={},n={},i=this.toObject();for(let s of t5)if(e.indexOf(s)>=0){t=s;let e=0;for(let t in n)e+=this.matrix[t][s]*n[t],n[t]=0;eZ(i[s])&&(e+=i[s]);let a=Math.trunc(e);r[s]=a,n[s]=(1e3*e-1e3*a)/1e3}else eZ(i[s])&&(n[s]=i[s]);for(let e in n)0!==n[e]&&(r[t]+=e===t?n[e]:n[e]/this.matrix[t][e]);return re(this.matrix,r),t7(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let e={};for(let t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return t7(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;for(let n of t5){var t,r;if(t=this.values[n],r=e.values[n],void 0===t||0===t?void 0!==r&&0!==r:t!==r)return!1}return!0}}let rr="Invalid Interval";class rn{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new c("need to specify a reason the Interval is invalid");let r=e instanceof eT?e:new eT(e,t);if(!ev.throwOnInvalid)return new rn({invalid:r});throw new a(r)}static fromDateTimes(e,t){var r,n;let i=rH(e),s=rH(t),a=(r=i,n=s,r&&r.isValid?n&&n.isValid?ne}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&this.s<=e&&this.e>e}set({start:e,end:t}={}){return this.isValid?rn.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];let t=e.map(rH).filter(e=>this.contains(e)).sort((e,t)=>e.toMillis()-t.toMillis()),r=[],{s:n}=this,i=0;for(;n+this.e?this.e:e;r.push(rn.fromDateTimes(n,s)),n=s,i+=1}return r}splitBy(e){let t=rt.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let{s:r}=this,n=1,i,s=[];for(;re*n));i=+e>+this.e?this.e:e,s.push(rn.fromDateTimes(r,i)),r=i,n+=1}return s}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s=e.e}equals(e){return!!this.isValid&&!!e.isValid&&this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;let t=this.s>e.s?this.s:e.s,r=this.e=r?null:rn.fromDateTimes(t,r)}union(e){if(!this.isValid)return this;let t=this.se.e?this.e:e.e;return rn.fromDateTimes(t,r)}static merge(e){let[t,r]=e.sort((e,t)=>e.s-t.s).reduce(([e,t],r)=>t?t.overlaps(r)||t.abutsStart(r)?[e,t.union(r)]:[e.concat([t]),r]:[e,r],[[],null]);return r&&t.push(r),t}static xor(e){let t=null,r=0,n=[],i=e.map(e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}]);for(let e of Array.prototype.concat(...i).sort((e,t)=>e.time-t.time))1===(r+="s"===e.type?1:-1)?t=e.time:(t&&+t!=+e.time&&n.push(rn.fromDateTimes(t,e.time)),t=null);return rn.merge(n)}difference(...e){return rn.xor([this].concat(e)).map(e=>this.intersection(e)).filter(e=>e&&!e.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:rr}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=y,t={}){return this.isValid?tm.create(this.s.loc.clone(t),e).formatInterval(this):rr}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:rr}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:rr}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:rr}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:rr}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):rt.invalid(this.invalidReason)}mapEndpoints(e){return rn.fromDateTimes(e(this.s),e(this.e))}}class ri{static hasDST(e=ev.defaultZone){let t=rY.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return _.isValidZone(e)}static normalizeZone(e){return ea(e,ev.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||er.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||er.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||er.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:i="gregory"}={}){return(n||er.create(t,r,i)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:i="gregory"}={}){return(n||er.create(t,r,i)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||er.create(t,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||er.create(t,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return er.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return er.create(t,null,"gregory").eras(e)}static features(){return{relative:ez(),localeWeek:eq()}}}function rs(e,t){let r=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(t)-r(e);return Math.floor(rt.fromMillis(n).as("days"))}function ra(e,t=e=>e){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(!isNaN(t))return t;t="";for(let r=0;r=r&&n<=i&&(t+=n-r)}}return parseInt(t,10)}(e))}}let ro=String.fromCharCode(160),rl=`[ ${ro}]`,ru=RegExp(rl,"g");function rc(e){return e.replace(/\./g,"\\.?").replace(ru,rl)}function rh(e){return e.replace(/\./g,"").replace(ru," ").toLowerCase()}function rd(e,t){return null===e?null:{regex:RegExp(e.map(rc).join("|")),deser:([r])=>e.findIndex(e=>rh(r)===rh(e))+t}}function rm(e,t){return{regex:e,deser:([,e,t])=>e3(e,t),groups:t}}function rf(e){return{regex:e,deser:([e])=>e}}let ry={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"}},rg=null;function rw(e,t){return Array.prototype.concat(...e.map(e=>(function(e,t){if(e.literal)return e;let r=rv(tm.macroTokenToFormatOpts(e.val),t);return null==r||r.includes(void 0)?e:r})(e,t)))}class rp{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=rw(tm.parseFormat(t),e),this.units=this.tokens.map(t=>(function(e,t){let r=eh(t),n=eh(t,"{2}"),i=eh(t,"{3}"),s=eh(t,"{4}"),a=eh(t,"{6}"),o=eh(t,"{1,2}"),l=eh(t,"{1,3}"),u=eh(t,"{1,6}"),c=eh(t,"{1,9}"),h=eh(t,"{2,4}"),d=eh(t,"{4,6}"),m=e=>({regex:RegExp(e.val.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")),deser:([e])=>e,literal:!0}),f=(f=>{if(e.literal)return m(f);switch(f.val){case"G":return rd(t.eras("short"),0);case"GG":return rd(t.eras("long"),0);case"y":return ra(u);case"yy":case"kk":return ra(h,e0);case"yyyy":case"kkkk":return ra(s);case"yyyyy":return ra(d);case"yyyyyy":return ra(a);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return ra(o);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return ra(n);case"MMM":return rd(t.months("short",!0),1);case"MMMM":return rd(t.months("long",!0),1);case"LLL":return rd(t.months("short",!1),1);case"LLLL":return rd(t.months("long",!1),1);case"o":case"S":return ra(l);case"ooo":case"SSS":return ra(i);case"u":return rf(c);case"uu":return rf(o);case"uuu":case"E":case"c":return ra(r);case"a":return rd(t.meridiems(),0);case"EEE":return rd(t.weekdays("short",!1),1);case"EEEE":return rd(t.weekdays("long",!1),1);case"ccc":return rd(t.weekdays("short",!0),1);case"cccc":return rd(t.weekdays("long",!0),1);case"Z":case"ZZ":return rm(RegExp(`([+-]${o.source})(?::(${n.source}))?`),2);case"ZZZ":return rm(RegExp(`([+-]${o.source})(${n.source})?`),2);case"z":return rf(/[a-z_+-/]{1,256}?/i);case" ":return rf(/[^\S\n\r]/);default:return m(f)}})(e)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return f.token=e,f})(t,e)),this.disqualifyingUnit=this.units.find(e=>e.invalidReason),!this.disqualifyingUnit){let[e,t]=function(e){let t=e.map(e=>e.regex).reduce((e,t)=>`${e}(${t.source})`,"");return[`^${t}$`,e]}(this.units);this.regex=RegExp(e,"i"),this.handlers=t}}explainFromTokens(e){if(!this.isValid)return{input:e,tokens:this.tokens,invalidReason:this.invalidReason};{let[t,r]=function(e,t,r){let n=e.match(t);if(!n)return[n,{}];{let e={},t=1;for(let i in r)if(eA(r,i)){let s=r[i],a=s.groups?s.groups+1:1;!s.literal&&s.token&&(e[s.token.val[0]]=s.deser(n.slice(t,t+a))),t+=a}return[n,e]}}(e,this.regex,this.handlers),[n,i,s]=r?function(e){let t;let r=e=>{switch(e){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}},n=null;return eW(e.z)||(n=_.create(e.z)),eW(e.Z)||(n||(n=new ei(e.Z)),t=e.Z),eW(e.q)||(e.M=(e.q-1)*3+1),eW(e.h)||(e.h<12&&1===e.a?e.h+=12:12!==e.h||0!==e.a||(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),eW(e.u)||(e.S=eJ(e.u)),[Object.keys(e).reduce((t,n)=>{let i=r(n);return i&&(t[i]=e[n]),t},{}),n,t]}(r):[null,null,void 0];if(eA(r,"a")&&eA(r,"H"))throw new l("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:t,matches:r,result:n,zone:i,specificOffset:s}}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function rk(e,t,r){return new rp(e,r).explainFromTokens(t)}function rv(e,t){if(!e)return null;let r=tm.create(t,e).dtFormatter((rg||(rg=rY.fromMillis(0x16a2e5618e3)),rg)),n=r.formatToParts(),i=r.resolvedOptions();return n.map(t=>(function(e,t,r){let{type:n,value:i}=e;if("literal"===n){let e=/^\s+$/.test(i);return{literal:!e,val:e?" ":i}}let s=t[n],a=n;"hour"===n&&(a=null!=t.hour12?t.hour12?"hour12":"hour24":null!=t.hourCycle?"h11"===t.hourCycle||"h12"===t.hourCycle?"hour12":"hour24":r.hour12?"hour12":"hour24");let o=ry[a];if("object"==typeof o&&(o=o[s]),o)return{literal:!1,val:o}})(t,e,i))}let rT="Invalid DateTime";function rS(e){return new eT("unsupported zone",`the zone "${e.name}" is not supported`)}function rO(e){return null===e.weekData&&(e.weekData=eI(e.c)),e.weekData}function rN(e){return null===e.localWeekData&&(e.localWeekData=eI(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function rb(e,t){let r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new rY({...r,...t,old:r})}function rD(e,t,r){let n=e-6e4*t,i=r.offset(n);if(t===i)return[n,t];n-=(i-t)*6e4;let s=r.offset(n);return i===s?[n,i]:[e-6e4*Math.min(i,s),Math.max(i,s)]}function rM(e,t){let r=new Date(e+=6e4*t);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function rI(e,t){let r=e.o,n=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),s={...e.c,year:n,month:i,day:Math.min(e.c.day,eQ(n,i))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},a=rt.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,l]=rD(eK(s),r,e.zone);return 0!==a&&(o+=a,l=e.zone.offset(o)),{ts:o,o:l}}function rV(e,t,r,n,i,s){let{setZone:a,zone:o}=r;if((!e||0===Object.keys(e).length)&&!t)return rY.invalid(new eT("unparsable",`the input "${i}" can't be parsed as ${n}`));{let n=rY.fromObject(e,{...r,zone:t||o,specificOffset:s});return a?n:n.setZone(o)}}function rE(e,t,r=!0){return e.isValid?tm.create(er.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function rx(e,t){let r=e.c.year>9999||e.c.year<0,n="";return r&&e.c.year>=0&&(n+="+"),n+=eY(e.c.year,r?6:4),t?(n+="-",n+=eY(e.c.month),n+="-"):n+=eY(e.c.month),n+=eY(e.c.day)}function rF(e,t,r,n,i,s){let a=eY(e.c.hour);return t?(a+=":",a+=eY(e.c.minute),0===e.c.millisecond&&0===e.c.second&&r||(a+=":")):a+=eY(e.c.minute),0===e.c.millisecond&&0===e.c.second&&r||(a+=eY(e.c.second),0===e.c.millisecond&&n||(a+=".",a+=eY(e.c.millisecond,3))),i&&(e.isOffsetFixed&&0===e.offset&&!s?a+="Z":e.o<0?(a+="-",a+=eY(Math.trunc(-e.o/60)),a+=":",a+=eY(Math.trunc(-e.o%60))):(a+="+",a+=eY(Math.trunc(e.o/60)),a+=":",a+=eY(Math.trunc(e.o%60)))),s&&(a+="["+e.zone.ianaName+"]"),a}let rC={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},r$={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},rW={ordinal:1,hour:0,minute:0,second:0,millisecond:0},rZ=["year","month","day","hour","minute","second","millisecond"],rL=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],rz=["year","ordinal","hour","minute","second","millisecond"];function rq(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function(e){let t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new u(e);return t}(e)}}function rj(e,t){let r,i;let s=ea(t.zone,ev.defaultZone);if(!s.isValid)return rY.invalid(rS(s));let a=er.fromObject(t);if(eW(e.year))r=ev.now();else{for(let t of rZ)eW(e[t])&&(e[t]=rC[t]);let t=eC(e)||e$(e);if(t)return rY.invalid(t);let a=(r_[s]||(void 0===n&&(n=ev.now()),r_[s]=s.offset(n)),r_[s]);[r,i]=rD(eK(e),a,s)}return new rY({ts:r,zone:s,loc:a,o:i})}function rA(e,t,r){let n=!!eW(r.round)||r.round,i=(e,i)=>(e=eP(e,n||r.calendary?0:2,!0),t.loc.clone(r).relFormatter(r).format(e,i)),s=n=>r.calendary?t.hasSame(e,n)?0:t.startOf(n).diff(e.startOf(n),n).get(n):t.diff(e,n).get(n);if(r.unit)return i(s(r.unit),r.unit);for(let e of r.units){let t=s(e);if(Math.abs(t)>=1)return i(t,e)}return i(e>t?-0:0,r.units[r.units.length-1])}function rU(e){let t={},r;return e.length>0&&"object"==typeof e[e.length-1]?(t=e[e.length-1],r=Array.from(e).slice(0,e.length-1)):r=Array.from(e),[t,r]}let r_={};class rY{constructor(e){let t=e.zone||ev.defaultZone,r=e.invalid||(Number.isNaN(e.ts)?new eT("invalid input"):null)||(t.isValid?null:rS(t));this.ts=eW(e.ts)?ev.now():e.ts;let n=null,i=null;if(!r){if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[n,i]=[e.old.c,e.old.o];else{let s=eZ(e.o)&&!e.old?e.o:t.offset(this.ts);n=(r=Number.isNaN((n=rM(this.ts,s)).year)?new eT("invalid input"):null)?null:n,i=r?null:s}}this._zone=t,this.loc=e.loc||er.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=n,this.o=i,this.isLuxonDateTime=!0}static now(){return new rY({})}static local(){let[e,t]=rU(arguments),[r,n,i,s,a,o,l]=t;return rj({year:r,month:n,day:i,hour:s,minute:a,second:o,millisecond:l},e)}static utc(){let[e,t]=rU(arguments),[r,n,i,s,a,o,l]=t;return e.zone=ei.utcInstance,rj({year:r,month:n,day:i,hour:s,minute:a,second:o,millisecond:l},e)}static fromJSDate(e,t={}){let r="[object Date]"===Object.prototype.toString.call(e)?e.valueOf():NaN;if(Number.isNaN(r))return rY.invalid("invalid input");let n=ea(t.zone,ev.defaultZone);return n.isValid?new rY({ts:r,zone:n,loc:er.fromObject(t)}):rY.invalid(rS(n))}static fromMillis(e,t={}){if(eZ(e))return e<-864e13||e>864e13?rY.invalid("Timestamp out of range"):new rY({ts:e,zone:ea(t.zone,ev.defaultZone),loc:er.fromObject(t)});throw new c(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(eZ(e))return new rY({ts:1e3*e,zone:ea(t.zone,ev.defaultZone),loc:er.fromObject(t)});throw new c("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};let r=ea(t.zone,ev.defaultZone);if(!r.isValid)return rY.invalid(rS(r));let n=er.fromObject(t),i=e6(e,rq),{minDaysInFirstWeek:s,startOfWeek:a}=eF(i,n),o=ev.now(),u=eW(t.specificOffset)?r.offset(o):t.specificOffset,c=!eW(i.ordinal),h=!eW(i.year),d=!eW(i.month)||!eW(i.day),m=h||d,f=i.weekYear||i.weekNumber;if((m||c)&&f)throw new l("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&c)throw new l("Can't mix ordinal dates with month/day");let y=f||i.weekday&&!m,g,w,p=rM(o,u);y?(g=rL,w=r$,p=eI(p,s,a)):c?(g=rz,w=rW,p=eE(p)):(g=rZ,w=rC);let k=!1;for(let e of g)eW(i[e])?k?i[e]=w[e]:i[e]=p[e]:k=!0;let v=(y?function(e,t=4,r=1){let n=eL(e.weekYear),i=e_(e.weekNumber,1,e1(e.weekYear,t,r)),s=e_(e.weekday,1,7);return n?i?!s&&eN("weekday",e.weekday):eN("week",e.weekNumber):eN("weekYear",e.weekYear)}(i,s,a):c?function(e){let t=eL(e.year),r=e_(e.ordinal,1,eB(e.year));return t?!r&&eN("ordinal",e.ordinal):eN("year",e.year)}(i):eC(i))||e$(i);if(v)return rY.invalid(v);let[T,S]=rD(eK(y?eV(i,s,a):c?ex(i):i),u,r),O=new rY({ts:T,zone:r,o:S,loc:n});return i.weekday&&m&&e.weekday!==O.weekday?rY.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${O.toISO()}`):O.isValid?O:rY.invalid(O.invalid)}static fromISO(e,t={}){let[r,n]=tw(e,[tY,tP],[tH,tG],[tR,tB],[tJ,tQ]);return rV(r,n,t,"ISO 8601",e)}static fromRFC2822(e,t={}){let[r,n]=tw(e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim(),[tL,tz]);return rV(r,n,t,"RFC 2822",e)}static fromHTTP(e,t={}){let[r,n]=tw(e,[tq,tU],[tj,tU],[tA,t_]);return rV(r,n,t,"HTTP",t)}static fromFormat(e,t,r={}){if(eW(e)||eW(t))throw new c("fromFormat requires an input string and a format");let{locale:n=null,numberingSystem:i=null}=r,[s,a,o,l]=function(e,t,r){let{result:n,zone:i,specificOffset:s,invalidReason:a}=rk(e,t,r);return[n,i,s,a]}(er.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0}),e,t);return l?rY.invalid(l):rV(s,a,r,`format ${t}`,e,o)}static fromString(e,t,r={}){return rY.fromFormat(e,t,r)}static fromSQL(e,t={}){let[r,n]=tw(e,[tX,tP],[t1,t0]);return rV(r,n,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new c("need to specify a reason the DateTime is invalid");let r=e instanceof eT?e:new eT(e,t);if(!ev.throwOnInvalid)return new rY({invalid:r});throw new s(r)}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){let r=rv(e,er.fromObject(t));return r?r.map(e=>e?e.val:null).join(""):null}static expandFormat(e,t={}){return rw(tm.parseFormat(e),er.fromObject(t)).map(e=>e.val).join("")}static resetCache(){n=void 0,r_={}}get(e){return this[e]}get isValid(){return null===this.invalid}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?rO(this).weekYear:NaN}get weekNumber(){return this.isValid?rO(this).weekNumber:NaN}get weekday(){return this.isValid?rO(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?rN(this).weekday:NaN}get localWeekNumber(){return this.isValid?rN(this).weekNumber:NaN}get localWeekYear(){return this.isValid?rN(this).weekYear:NaN}get ordinal(){return this.isValid?eE(this.c).ordinal:NaN}get monthShort(){return this.isValid?ri.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?ri.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?ri.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?ri.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&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let e=eK(this.c),t=this.zone.offset(e-864e5),r=this.zone.offset(e+864e5),n=this.zone.offset(e-6e4*t),i=this.zone.offset(e-6e4*r);if(n===i)return[this];let s=e-6e4*n,a=e-6e4*i,o=rM(s,n),l=rM(a,i);return o.hour===l.hour&&o.minute===l.minute&&o.second===l.second&&o.millisecond===l.millisecond?[rb(this,{ts:s}),rb(this,{ts:a})]:[this]}get isInLeapYear(){return eG(this.year)}get daysInMonth(){return eQ(this.year,this.month)}get daysInYear(){return this.isValid?eB(this.year):NaN}get weeksInWeekYear(){return this.isValid?e1(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?e1(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:t,numberingSystem:r,calendar:n}=tm.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:r,outputCalendar:n}}toUTC(e=0,t={}){return this.setZone(ei.instance(e),t)}toLocal(){return this.setZone(ev.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:r=!1}={}){if((e=ea(e,ev.defaultZone)).equals(this.zone))return this;if(!e.isValid)return rY.invalid(rS(e));{let i=this.ts;if(t||r){var n;let t=e.offset(this.ts),r=this.toObject();[i]=(n=e,rD(eK(r),t,n))}return rb(this,{ts:i,zone:e})}}reconfigure({locale:e,numberingSystem:t,outputCalendar:r}={}){return rb(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:r})})}setLocale(e){return this.reconfigure({locale:e})}set(e){var t,r,n;let i;if(!this.isValid)return this;let s=e6(e,rq),{minDaysInFirstWeek:a,startOfWeek:o}=eF(s,this.loc),u=!eW(s.weekYear)||!eW(s.weekNumber)||!eW(s.weekday),c=!eW(s.ordinal),h=!eW(s.year),d=!eW(s.month)||!eW(s.day),m=s.weekYear||s.weekNumber;if((h||d||c)&&m)throw new l("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&c)throw new l("Can't mix ordinal dates with month/day");u?i=eV({...eI(this.c,a,o),...s},a,o):eW(s.ordinal)?(i={...this.toObject(),...s},eW(s.day)&&(i.day=Math.min(eQ(i.year,i.month),i.day))):i=ex({...eE(this.c),...s});let[f,y]=(t=i,r=this.o,n=this.zone,rD(eK(t),r,n));return rb(this,{ts:f,o:y})}plus(e){return this.isValid?rb(this,rI(this,rt.fromDurationLike(e))):this}minus(e){return this.isValid?rb(this,rI(this,rt.fromDurationLike(e).negate())):this}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;let r={},n=rt.normalizeUnit(e);switch(n){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0}if("weeks"===n){if(t){let e=this.loc.getStartOfWeek(),{weekday:t}=this;tthis.valueOf(),a=function(e,t,r,n){let[i,s,a,o]=function(e,t,r){let n,i;let s={},a=e;for(let[o,l]of[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+(t.year-e.year)*4],["months",(e,t)=>t.month-e.month+(t.year-e.year)*12],["weeks",(e,t)=>{let r=rs(e,t);return(r-r%7)/7}],["days",rs]])r.indexOf(o)>=0&&(n=o,s[o]=l(e,t),(i=a.plus(s))>t?(s[o]--,(e=a.plus(s))>t&&(i=e,s[o]--,e=a.plus(s))):e=i);return[e,s,i,n]}(e,t,r),l=t-i,u=r.filter(e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0);0===u.length&&(a0?rt.fromMillis(l,n).shiftTo(...u).plus(c):c}(s?this:e,s?e:this,i,n);return s?a.negate():a}diffNow(e="milliseconds",t={}){return this.diff(rY.now(),e,t)}until(e){return this.isValid?rn.fromDateTimes(this,e):this}hasSame(e,t,r){if(!this.isValid)return!1;let n=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(t,r)<=n&&n<=i.endOf(t,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let t=e.base||rY.fromObject({},{zone:this.zone}),r=e.padding?thise.valueOf(),Math.min)}static max(...e){if(!e.every(rY.isDateTime))throw new c("max requires all arguments be DateTimes");return ej(e,e=>e.valueOf(),Math.max)}static fromFormatExplain(e,t,r={}){let{locale:n=null,numberingSystem:i=null}=r;return rk(er.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,r={}){return rY.fromFormatExplain(e,t,r)}static buildFormatParser(e,t={}){let{locale:r=null,numberingSystem:n=null}=t;return new rp(er.fromOpts({locale:r,numberingSystem:n,defaultToEN:!0}),e)}static fromFormatParser(e,t,r={}){if(eW(e)||eW(t))throw new c("fromFormatParser requires an input string and a format parser");let{locale:n=null,numberingSystem:i=null}=r,s=er.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0});if(!s.equals(t.locale))throw new c(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${t.locale}`);let{result:a,zone:o,specificOffset:l,invalidReason:u}=t.explainFromTokens(e);return u?rY.invalid(u):rV(a,o,r,`format ${t.format}`,e,l)}static get DATE_SHORT(){return y}static get DATE_MED(){return g}static get DATE_MED_WITH_WEEKDAY(){return w}static get DATE_FULL(){return p}static get DATE_HUGE(){return k}static get TIME_SIMPLE(){return v}static get TIME_WITH_SECONDS(){return T}static get TIME_WITH_SHORT_OFFSET(){return S}static get TIME_WITH_LONG_OFFSET(){return O}static get TIME_24_SIMPLE(){return N}static get TIME_24_WITH_SECONDS(){return b}static get TIME_24_WITH_SHORT_OFFSET(){return D}static get TIME_24_WITH_LONG_OFFSET(){return M}static get DATETIME_SHORT(){return I}static get DATETIME_SHORT_WITH_SECONDS(){return V}static get DATETIME_MED(){return E}static get DATETIME_MED_WITH_SECONDS(){return x}static get DATETIME_MED_WITH_WEEKDAY(){return F}static get DATETIME_FULL(){return C}static get DATETIME_FULL_WITH_SECONDS(){return $}static get DATETIME_HUGE(){return W}static get DATETIME_HUGE_WITH_SECONDS(){return Z}}function rH(e){if(rY.isDateTime(e))return e;if(e&&e.valueOf&&eZ(e.valueOf()))return rY.fromJSDate(e);if(e&&"object"==typeof e)return rY.fromObject(e);throw new c(`Unknown datetime argument: ${e}, of type ${typeof e}`)}}}]);