@techdocs/cli 1.1.3-next.1 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/embedded-app/index.html +1 -1
- package/dist/embedded-app/static/{1553.c884332b.chunk.js → 1553.c2a9eb50.chunk.js} +2 -2
- package/dist/embedded-app/static/{1553.c884332b.chunk.js.map → 1553.c2a9eb50.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{2426.56f057f3.chunk.js → 2426.32fc1ca1.chunk.js} +2 -2
- package/dist/embedded-app/static/{2426.56f057f3.chunk.js.map → 2426.32fc1ca1.chunk.js.map} +1 -1
- package/dist/embedded-app/static/3555.4d83af5a.chunk.js +8 -0
- package/dist/embedded-app/static/3555.4d83af5a.chunk.js.map +1 -0
- package/dist/embedded-app/static/{390.7315e170.chunk.js → 390.74a27040.chunk.js} +2 -2
- package/dist/embedded-app/static/{390.7315e170.chunk.js.map → 390.74a27040.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{4022.e53705a4.chunk.js → 4022.ca590614.chunk.js} +2 -2
- package/dist/embedded-app/static/{4022.e53705a4.chunk.js.map → 4022.ca590614.chunk.js.map} +1 -1
- package/dist/embedded-app/static/4949.bffcfed7.chunk.js +3 -0
- package/dist/embedded-app/static/4949.bffcfed7.chunk.js.map +1 -0
- package/dist/embedded-app/static/{6235.fb68ef83.chunk.js → 6235.61c00d19.chunk.js} +2 -2
- package/dist/embedded-app/static/{6235.fb68ef83.chunk.js.map → 6235.61c00d19.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{6583.19098eda.chunk.js → 6583.0b42ebbe.chunk.js} +2 -2
- package/dist/embedded-app/static/{6583.19098eda.chunk.js.map → 6583.0b42ebbe.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{7110.b2c2b46c.chunk.js → 7110.135c2721.chunk.js} +2 -2
- package/dist/embedded-app/static/{7110.b2c2b46c.chunk.js.map → 7110.135c2721.chunk.js.map} +1 -1
- package/dist/embedded-app/static/7758.75aef2ae.chunk.js +3 -0
- package/dist/embedded-app/static/7758.75aef2ae.chunk.js.map +1 -0
- package/dist/embedded-app/static/{8061.b78f645f.chunk.js → 8061.f5e20bb7.chunk.js} +2 -2
- package/dist/embedded-app/static/{8061.b78f645f.chunk.js.map → 8061.f5e20bb7.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{8718.b6fd1dca.chunk.js → 8718.bd799167.chunk.js} +2 -2
- package/dist/embedded-app/static/8718.bd799167.chunk.js.map +1 -0
- package/dist/embedded-app/static/{8792.0fea0909.chunk.js → 8792.6f60e67c.chunk.js} +2 -2
- package/dist/embedded-app/static/{8792.0fea0909.chunk.js.map → 8792.6f60e67c.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{9028.48dec376.chunk.js → 9028.1e31ab6a.chunk.js} +2 -2
- package/dist/embedded-app/static/{9028.48dec376.chunk.js.map → 9028.1e31ab6a.chunk.js.map} +1 -1
- package/dist/embedded-app/static/main.a9307e40.js +487 -0
- package/dist/embedded-app/static/main.a9307e40.js.map +1 -0
- package/dist/embedded-app/static/module-luxon.ee0def5d.js +3 -0
- package/dist/embedded-app/static/module-luxon.ee0def5d.js.map +1 -0
- package/dist/embedded-app/static/{module-material-ui.1e05f502.js → module-material-ui.cd8dff4a.js} +11 -11
- package/dist/embedded-app/static/module-material-ui.cd8dff4a.js.map +1 -0
- package/dist/embedded-app/static/module-yaml.0874c6f8.js +136 -0
- package/dist/embedded-app/static/module-yaml.0874c6f8.js.map +1 -0
- package/dist/embedded-app/static/module-zod.53b5d347.js +3 -0
- package/dist/embedded-app/static/module-zod.53b5d347.js.map +1 -0
- package/dist/embedded-app/static/{runtime.a38c77d9.js → runtime.a9307e40.js} +2 -2
- package/dist/embedded-app/static/{runtime.a38c77d9.js.map → runtime.a9307e40.js.map} +1 -1
- package/dist/embedded-app/static/vendor.a9307e40.js +102 -0
- package/dist/embedded-app/static/vendor.a9307e40.js.map +1 -0
- package/dist/index.cjs.js +1 -1
- package/package.json +7 -7
- package/dist/embedded-app/static/1959.9f791e1b.chunk.js +0 -8
- package/dist/embedded-app/static/1959.9f791e1b.chunk.js.map +0 -1
- package/dist/embedded-app/static/3860.30afe880.chunk.js +0 -3
- package/dist/embedded-app/static/3860.30afe880.chunk.js.map +0 -1
- package/dist/embedded-app/static/7758.94a98122.chunk.js +0 -3
- package/dist/embedded-app/static/7758.94a98122.chunk.js.map +0 -1
- package/dist/embedded-app/static/8718.b6fd1dca.chunk.js.map +0 -1
- package/dist/embedded-app/static/main.a38c77d9.js +0 -487
- package/dist/embedded-app/static/main.a38c77d9.js.map +0 -1
- package/dist/embedded-app/static/module-material-ui.1e05f502.js.map +0 -1
- package/dist/embedded-app/static/module-yaml.63d08f2d.js +0 -151
- package/dist/embedded-app/static/module-yaml.63d08f2d.js.map +0 -1
- package/dist/embedded-app/static/module-zod.2193e794.js +0 -3
- package/dist/embedded-app/static/module-zod.2193e794.js.map +0 -1
- package/dist/embedded-app/static/vendor.a38c77d9.js +0 -103
- package/dist/embedded-app/static/vendor.a38c77d9.js.map +0 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[2194],{55912:function(){class dt extends Error{}class vn extends null{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class kn extends null{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class Fn extends null{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Nn extends null{}class xn extends null{constructor(e){super(`Invalid unit ${e}`)}}class Ln extends null{}class k extends dt{constructor(){super("Zone is an abstract class")}}const c="numeric",D="short",p="long",ft={year:c,month:c,day:c},mt={year:c,month:D,day:c},bn={year:c,month:D,day:c,weekday:D},ht={year:c,month:p,day:c},yt={year:c,month:p,day:c,weekday:p},gt={hour:c,minute:c},Tt={hour:c,minute:c,second:c},Et={hour:c,minute:c,second:c,timeZoneName:D},St={hour:c,minute:c,second:c,timeZoneName:p},wt={hour:c,minute:c,hourCycle:"h23"},pt={hour:c,minute:c,second:c,hourCycle:"h23"},Ot={hour:c,minute:c,second:c,hourCycle:"h23",timeZoneName:D},It={hour:c,minute:c,second:c,hourCycle:"h23",timeZoneName:p},Dt={year:c,month:c,day:c,hour:c,minute:c},Mt={year:c,month:c,day:c,hour:c,minute:c,second:c},vt={year:c,month:D,day:c,hour:c,minute:c},kt={year:c,month:D,day:c,hour:c,minute:c,second:c},Cn={year:c,month:D,day:c,weekday:D,hour:c,minute:c},Ft={year:c,month:p,day:c,hour:c,minute:c,timeZoneName:D},Nt={year:c,month:p,day:c,hour:c,minute:c,second:c,timeZoneName:D},xt={year:c,month:p,day:c,weekday:p,hour:c,minute:c,timeZoneName:p},Lt={year:c,month:p,day:c,weekday:p,hour:c,minute:c,second:c,timeZoneName:p};function U(r){return typeof r=="undefined"}function An(r){return typeof r=="number"}function bt(r){return typeof r=="number"&&r%1===0}function Vn(r){return typeof r=="string"}function _n(r){return Object.prototype.toString.call(r)==="[object Date]"}function Zn(){try{return typeof Intl!="undefined"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Un(r){return Array.isArray(r)?r:[r]}function Hn(r,e,t){if(r.length!==0)return r.reduce((n,s)=>{const a=[e(s),s];return n&&t(n[0],a[0])===n[0]?n:a},null)[1]}function Ct(r,e){return e.reduce((t,n)=>(t[n]=r[n],t),{})}function At(r,e){return Object.prototype.hasOwnProperty.call(r,e)}function Wn(r,e,t){return bt(r)&&r>=e&&r<=t}function Vt(r,e){return r-e*Math.floor(r/e)}function j(r,e=2){const t=r<0;let n;return t?n="-"+(""+-r).padStart(e,"0"):n=(""+r).padStart(e,"0"),n}function we(r){if(!(U(r)||r===null||r===""))return parseInt(r,10)}function Rn(r){if(!(U(r)||r===null||r===""))return parseFloat(r)}function _t(r){if(!(U(r)||r===null||r==="")){const e=parseFloat("0."+r)*1e3;return Math.floor(e)}}function $n(r,e,t=!1){const n=10**e;return(t?Math.trunc:Math.round)(r*n)/n}function pe(r){return r%4===0&&(r%100!==0||r%400===0)}function zn(r){return pe(r)?366:365}function qn(r,e){const t=Vt(e-1,12)+1,n=r+(e-t)/12;return t===2?pe(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][t-1]}function Zt(r){let e=Date.UTC(r.year,r.month-1,r.day,r.hour,r.minute,r.second,r.millisecond);return r.year<100&&r.year>=0&&(e=new Date(e),e.setUTCFullYear(e.getUTCFullYear()-1900)),+e}function Pn(r){const e=(r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400))%7,t=r-1,n=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7;return e===4||n===3?53:52}function Yn(r){return r>99?r:r>60?1900+r:2e3+r}function Ut(r,e,t,n=null){const s=new Date(r),a={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(a.timeZone=n);const i={timeZoneName:e,...a},o=new Intl.DateTimeFormat(t,i).formatToParts(s).find(u=>u.type.toLowerCase()==="timezonename");return o?o.value:null}function Oe(r,e){let t=parseInt(r,10);Number.isNaN(t)&&(t=0);const n=parseInt(e,10)||0,s=t<0||Object.is(t,-0)?-n:n;return t*60+s}function Ht(r){const e=Number(r);if(typeof r=="boolean"||r===""||Number.isNaN(e))throw new InvalidArgumentError(`Invalid unit value ${r}`);return e}function Gn(r,e){const t={};for(const n in r)if(At(r,n)){const s=r[n];if(s==null)continue;t[e(n)]=Ht(s)}return t}function B(r,e){const t=Math.trunc(Math.abs(r/60)),n=Math.trunc(Math.abs(r%60)),s=r>=0?"+":"-";switch(e){case"short":return`${s}${j(t,2)}:${j(n,2)}`;case"narrow":return`${s}${t}${n>0?`:${n}`:""}`;case"techie":return`${s}${j(t,2)}${j(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function jn(r){return Ct(r,["hour","minute","second","millisecond"])}const Ie=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function g(r){return JSON.stringify(r,Object.keys(r).sort())}const Wt=null,Rt=null,$t=null;function zt(r){switch(r){case"narrow":return[...$t];case"short":return[...Rt];case"long":return[...Wt];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 qt=null,Pt=null,Yt=null;function Gt(r){switch(r){case"narrow":return[...Yt];case"short":return[...Pt];case"long":return[...qt];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const jt=null,Bt=null,Jt=null,Kt=null;function Qt(r){switch(r){case"narrow":return[...Kt];case"short":return[...Jt];case"long":return[...Bt];default:return null}}function Bn(r){return jt[r.hour<12?0:1]}function Jn(r,e){return Gt(e)[r.weekday-1]}function Kn(r,e){return zt(e)[r.month-1]}function Qn(r,e){return Qt(e)[r.year<0?0:1]}function Xn(r,e,t="always",n=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=["hours","minutes","seconds"].indexOf(r)===-1;if(t==="auto"&&a){const y=r==="days";switch(e){case 1:return y?"tomorrow":`next ${s[r][0]}`;case-1:return y?"yesterday":`last ${s[r][0]}`;case 0:return y?"today":`this ${s[r][0]}`;default:}}const i=Object.is(e,-0)||e<0,o=Math.abs(e),u=o===1,l=s[r],f=n?u?l[1]:l[2]||l[1]:u?s[r][0]:r;return i?`${o} ${f} ago`:`in ${o} ${f}`}function es(r){const e=pick(r,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle"]),t=g(e),n="EEEE, LLLL d, yyyy, h:mm a";switch(t){case g(Formats.DATE_SHORT):return"M/d/yyyy";case g(Formats.DATE_MED):return"LLL d, yyyy";case g(Formats.DATE_MED_WITH_WEEKDAY):return"EEE, LLL d, yyyy";case g(Formats.DATE_FULL):return"LLLL d, yyyy";case g(Formats.DATE_HUGE):return"EEEE, LLLL d, yyyy";case g(Formats.TIME_SIMPLE):return"h:mm a";case g(Formats.TIME_WITH_SECONDS):return"h:mm:ss a";case g(Formats.TIME_WITH_SHORT_OFFSET):return"h:mm a";case g(Formats.TIME_WITH_LONG_OFFSET):return"h:mm a";case g(Formats.TIME_24_SIMPLE):return"HH:mm";case g(Formats.TIME_24_WITH_SECONDS):return"HH:mm:ss";case g(Formats.TIME_24_WITH_SHORT_OFFSET):return"HH:mm";case g(Formats.TIME_24_WITH_LONG_OFFSET):return"HH:mm";case g(Formats.DATETIME_SHORT):return"M/d/yyyy, h:mm a";case g(Formats.DATETIME_MED):return"LLL d, yyyy, h:mm a";case g(Formats.DATETIME_FULL):return"LLLL d, yyyy, h:mm a";case g(Formats.DATETIME_HUGE):return n;case g(Formats.DATETIME_SHORT_WITH_SECONDS):return"M/d/yyyy, h:mm:ss a";case g(Formats.DATETIME_MED_WITH_SECONDS):return"LLL d, yyyy, h:mm:ss a";case g(Formats.DATETIME_MED_WITH_WEEKDAY):return"EEE, d LLL yyyy, h:mm a";case g(Formats.DATETIME_FULL_WITH_SECONDS):return"LLLL d, yyyy, h:mm:ss a";case g(Formats.DATETIME_HUGE_WITH_SECONDS):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return n}}function De(r,e){let t="";for(const n of r)n.literal?t+=n.val:t+=e(n.val);return t}const Xt={D:ft,DD:mt,DDD:ht,DDDD:yt,t:gt,tt:Tt,ttt:Et,tttt:St,T:wt,TT:pt,TTT:Ot,TTTT:It,f:Dt,ff:vt,fff:Ft,ffff:xt,F:Mt,FF:kt,FFF:Nt,FFFF:Lt};class H{static create(e,t={}){return new H(e,t)}static parseFormat(e){let t=null,n="",s=!1;const a=[];for(let i=0;i<e.length;i++){const o=e.charAt(i);o==="'"?(n.length>0&&a.push({literal:s,val:n}),t=null,n="",s=!s):s||o===t?n+=o:(n.length>0&&a.push({literal:!1,val:n}),n=o,t=o)}return n.length>0&&a.push({literal:s,val:n}),a}static macroTokenToFormatOpts(e){return Xt[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}formatDateTime(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t}).format()}formatDateTimeParts(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t}).formatToParts()}resolvedOptions(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t}).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return padStart(e,t);const n={...this.opts};return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,t){const n=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",a=(d,S)=>this.loc.extract(e,d,S),i=d=>e.isOffsetFixed&&e.offset===0&&d.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,d.format):"",o=()=>n?English.meridiemForDateTime(e):a({hour:"numeric",hourCycle:"h12"},"dayperiod"),u=(d,S)=>n?English.monthForDateTime(e,d):a(S?{month:d}:{month:d,day:"numeric"},"month"),l=(d,S)=>n?English.weekdayForDateTime(e,d):a(S?{weekday:d}:{weekday:d,month:"long",day:"numeric"},"weekday"),f=d=>{const S=H.macroTokenToFormatOpts(d);return S?this.formatWithSystemDefault(e,S):d},y=d=>n?English.eraForDateTime(e,d):a({era:d},"era"),E=d=>{switch(d){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 i({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return i({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return i({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return o();case"d":return s?a({day:"numeric"},"day"):this.num(e.day);case"dd":return s?a({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return s?a({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return s?a({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("narrow",!0);case"M":return s?a({month:"numeric"},"month"):this.num(e.month);case"MM":return s?a({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("narrow",!1);case"y":return s?a({year:"numeric"},"year"):this.num(e.year);case"yy":return s?a({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return s?a({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return s?a({year:"numeric"},"year"):this.num(e.year,6);case"G":return y("short");case"GG":return y("long");case"GGGGG":return y("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"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 f(d)}};return De(H.parseFormat(t),E)}formatDurationFromString(e,t){const n=u=>{switch(u[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}},s=u=>l=>{const f=n(l);return f?this.num(u.get(f),l.length):l},a=H.parseFormat(t),i=a.reduce((u,{literal:l,val:f})=>l?u:u.concat(f),[]),o=e.shiftTo(...i.map(n).filter(u=>u));return De(a,s(o))}}class Me{get type(){throw new k}get name(){throw new k}get ianaName(){return this.name}get isUniversal(){throw new k}offsetName(e,t){throw new k}formatOffset(e,t){throw new k}offset(e){throw new k}equals(e){throw new k}get isValid(){throw new k}}let se=null;class ve extends null{static get instance(){return se===null&&(se=new ve),se}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return parseZoneInfo(e,t,n)}formatOffset(e,t){return formatOffset(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let J={};function er(r){return J[r]||(J[r]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),J[r]}const tr={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function rr(r,e){const t=r.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(t),[,s,a,i,o,u,l,f]=n;return[i,s,a,o,u,l,f]}function nr(r,e){const t=r.formatToParts(e),n=[];for(let s=0;s<t.length;s++){const{type:a,value:i}=t[s],o=tr[a];a==="era"?n[o]=i:U(o)||(n[o]=parseInt(i,10))}return n}let K={};class Q extends Me{static create(e){return K[e]||(K[e]=new Q(e)),K[e]}static resetCache(){K={},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{return!1}}constructor(e){super(),this.zoneName=e,this.valid=Q.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return Ut(e,t,n,this.name)}formatOffset(e,t){return B(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const n=er(this.name);let[s,a,i,o,u,l,f]=n.formatToParts?nr(n,t):rr(n,t);o==="BC"&&(s=-Math.abs(s)+1);const E=Zt({year:s,month:a,day:i,hour:u===24?0:u,minute:l,second:f,millisecond:0});let d=+t;const S=d%1e3;return d-=S>=0?S:1e3+S,(E-d)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let ie=null;class L extends Me{static get utcInstance(){return ie===null&&(ie=new L(0)),ie}static instance(e){return e===0?L.utcInstance:new L(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new L(Oe(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${B(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${B(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return B(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class ts extends null{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 rs(r,e){let t;if(isUndefined(r)||r===null)return e;if(r instanceof Zone)return r;if(isString(r)){const n=r.toLowerCase();return n==="default"?e:n==="local"||n==="system"?SystemZone.instance:n==="utc"||n==="gmt"?FixedOffsetZone.utcInstance:FixedOffsetZone.parseSpecifier(n)||IANAZone.create(r)}else return isNumber(r)?FixedOffsetZone.instance(r):typeof r=="object"&&r.offset&&typeof r.offset=="number"?r:new InvalidZone(r)}let ke=()=>Date.now(),Fe="system",Ne=null,xe=null,Le=null,be;class ns{static get now(){return ke}static set now(e){ke=e}static set defaultZone(e){Fe=e}static get defaultZone(){return normalizeZone(Fe,SystemZone.instance)}static get defaultLocale(){return Ne}static set defaultLocale(e){Ne=e}static get defaultNumberingSystem(){return xe}static set defaultNumberingSystem(e){xe=e}static get defaultOutputCalendar(){return Le}static set defaultOutputCalendar(e){Le=e}static get throwOnInvalid(){return be}static set throwOnInvalid(e){be=e}static resetCaches(){Locale.resetCache(),IANAZone.resetCache()}}let Ce={};function sr(r,e={}){const t=JSON.stringify([r,e]);let n=Ce[t];return n||(n=new Intl.ListFormat(r,e),Ce[t]=n),n}let ae={};function oe(r,e={}){const t=JSON.stringify([r,e]);let n=ae[t];return n||(n=new Intl.DateTimeFormat(r,e),ae[t]=n),n}let ue={};function ir(r,e={}){const t=JSON.stringify([r,e]);let n=ue[t];return n||(n=new Intl.NumberFormat(r,e),ue[t]=n),n}let le={};function ar(r,e={}){const{base:t,...n}=e,s=JSON.stringify([r,n]);let a=le[s];return a||(a=new Intl.RelativeTimeFormat(r,e),le[s]=a),a}let W=null;function or(){return W||(W=new Intl.DateTimeFormat().resolvedOptions().locale,W)}function ur(r){const e=r.indexOf("-u-");if(e===-1)return[r];{let t;const n=r.substring(0,e);try{t=oe(r).resolvedOptions()}catch{t=oe(n).resolvedOptions()}const{numberingSystem:s,calendar:a}=t;return[n,s,a]}}function lr(r,e,t){return(t||e)&&(r+="-u",t&&(r+=`-ca-${t}`),e&&(r+=`-nu-${e}`)),r}function cr(r){const e=[];for(let t=1;t<=12;t++){const n=DateTime.utc(2016,t,1);e.push(r(n))}return e}function dr(r){const e=[];for(let t=1;t<=7;t++){const n=DateTime.utc(2016,11,13+t);e.push(r(n))}return e}function X(r,e,t,n,s){const a=r.listingMode(t);return a==="error"?null:a==="en"?n(e):s(e)}function fr(r){return r.numberingSystem&&r.numberingSystem!=="latn"?!1:r.numberingSystem==="latn"||!r.locale||r.locale.startsWith("en")||new Intl.DateTimeFormat(r.intl).resolvedOptions().numberingSystem==="latn"}class mr{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:s,floor:a,...i}=n;if(!t||Object.keys(i).length>0){const o={useGrouping:!1,...n};n.padTo>0&&(o.minimumIntegerDigits=n.padTo),this.inf=ir(e,o)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}else{const t=this.floor?Math.floor(e):roundTo(e,3);return padStart(t,this.padTo)}}}class hr{constructor(e,t,n){this.opts=n;let s;if(e.zone.isUniversal){const i=-1*(e.offset/60),o=i>=0?`Etc/GMT+${i}`:`Etc/GMT${i}`;e.offset!==0&&IANAZone.create(o).valid?(s=o,this.dt=e):(s="UTC",n.timeZoneName?this.dt=e:this.dt=e.offset===0?e:DateTime.fromMillis(e.ts+e.offset*60*1e3))}else e.zone.type==="system"?this.dt=e:(this.dt=e,s=e.zone.name);const a={...this.opts};s&&(a.timeZone=s),this.dtf=oe(t,a)}format(){return this.dtf.format(this.dt.toJSDate())}formatToParts(){return this.dtf.formatToParts(this.dt.toJSDate())}resolvedOptions(){return this.dtf.resolvedOptions()}}class yr{constructor(e,t,n){this.opts={style:"long",...n},!t&&hasRelative()&&(this.rtf=ar(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):English.formatRelativeTime(t,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}class R{static fromOpts(e){return R.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,t,n,s=!1){const a=e||Settings.defaultLocale,i=a||(s?"en-US":or()),o=t||Settings.defaultNumberingSystem,u=n||Settings.defaultOutputCalendar;return new R(i,o,u,a)}static resetCache(){W=null,ae={},ue={},le={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:n}={}){return R.create(e,t,n)}constructor(e,t,n,s){const[a,i,o]=ur(e);this.locale=a,this.numberingSystem=t||i||null,this.outputCalendar=n||o||null,this.intl=lr(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=s,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=fr(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&t?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:R.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1,n=!0){return X(this,e,n,English.months,()=>{const s=t?{month:e,day:"numeric"}:{month:e},a=t?"format":"standalone";return this.monthsCache[a][e]||(this.monthsCache[a][e]=cr(i=>this.extract(i,s,"month"))),this.monthsCache[a][e]})}weekdays(e,t=!1,n=!0){return X(this,e,n,English.weekdays,()=>{const s=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},a=t?"format":"standalone";return this.weekdaysCache[a][e]||(this.weekdaysCache[a][e]=dr(i=>this.extract(i,s,"weekday"))),this.weekdaysCache[a][e]})}meridiems(e=!0){return X(this,void 0,e,()=>English.meridiems,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(e,t=!0){return X(this,e,t,English.eras,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map(s=>this.extract(s,n,"era"))),this.eraCache[e]})}extract(e,t,n){const s=this.dtFormatter(e,t),a=s.formatToParts(),i=a.find(o=>o.type.toLowerCase()===n);return i?i.value:null}numberFormatter(e={}){return new mr(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new hr(e,this.intl,t)}relFormatter(e={}){return new yr(this.intl,this.isEnglish(),e)}listFormatter(e={}){return sr(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}function b(...r){const e=r.reduce((t,n)=>t+n.source,"");return RegExp(`^${e}$`)}function C(...r){return e=>r.reduce(([t,n,s],a)=>{const[i,o,u]=a(e,s);return[{...t,...i},o||n,u]},[{},null,1]).slice(0,2)}function A(r,...e){if(r==null)return[null,null];for(const[t,n]of e){const s=t.exec(r);if(s)return n(s)}return[null,null]}function Ae(...r){return(e,t)=>{const n={};let s;for(s=0;s<r.length;s++)n[r[s]]=we(e[t+s]);return[n,null,t+s]}}const Ve=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,gr=`(?:${Ve.source}?(?:\\[(${Ie.source})\\])?)?`,ce=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,_e=RegExp(`${ce.source}${gr}`),de=RegExp(`(?:T${_e.source})?`),Tr=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Er=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Sr=/(\d{4})-?(\d{3})/,wr=Ae("weekYear","weekNumber","weekDay"),pr=Ae("year","ordinal"),Or=/(\d{4})-(\d\d)-(\d\d)/,Ze=RegExp(`${ce.source} ?(?:${Ve.source}|(${Ie.source}))?`),Ir=RegExp(`(?: ${Ze.source})?`);function V(r,e,t){const n=r[e];return U(n)?t:we(n)}function Dr(r,e){return[{year:V(r,e),month:V(r,e+1,1),day:V(r,e+2,1)},null,e+3]}function _(r,e){return[{hours:V(r,e,0),minutes:V(r,e+1,0),seconds:V(r,e+2,0),milliseconds:_t(r[e+3])},null,e+4]}function $(r,e){const t=!r[e]&&!r[e+1],n=Oe(r[e+1],r[e+2]),s=t?null:L.instance(n);return[{},s,e+3]}function z(r,e){const t=r[e]?Q.create(r[e]):null;return[{},t,e+1]}const Mr=RegExp(`^T?${ce.source}$`),vr=/^-?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 kr(r){const[e,t,n,s,a,i,o,u,l]=r,f=e[0]==="-",y=u&&u[0]==="-",E=(d,S=!1)=>d!==void 0&&(S||d&&f)?-d:d;return[{years:E(parseFloating(t)),months:E(parseFloating(n)),weeks:E(parseFloating(s)),days:E(parseFloating(a)),hours:E(parseFloating(i)),minutes:E(parseFloating(o)),seconds:E(parseFloating(u),u==="-0"),milliseconds:E(parseMillis(l),y)}]}const Fr={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function fe(r,e,t,n,s,a,i){const o={year:e.length===2?untruncateYear(parseInteger(e)):parseInteger(e),month:English.monthsShort.indexOf(t)+1,day:parseInteger(n),hour:parseInteger(s),minute:parseInteger(a)};return i&&(o.second=parseInteger(i)),r&&(o.weekday=r.length>3?English.weekdaysLong.indexOf(r)+1:English.weekdaysShort.indexOf(r)+1),o}const Nr=/^(?:(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 xr(r){const[,e,t,n,s,a,i,o,u,l,f,y]=r,E=fe(e,s,n,t,a,i,o);let d;return u?d=Fr[u]:l?d=0:d=signedOffset(f,y),[E,new FixedOffsetZone(d)]}function Lr(r){return r.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const br=/^(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$/,Cr=/^(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$/,Ar=/^(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 Ue(r){const[,e,t,n,s,a,i,o]=r;return[fe(e,s,n,t,a,i,o),FixedOffsetZone.utcInstance]}function Vr(r){const[,e,t,n,s,a,i,o]=r;return[fe(e,o,t,n,s,a,i),FixedOffsetZone.utcInstance]}const _r=b(Tr,de),Zr=b(Er,de),Ur=b(Sr,de),Hr=b(_e),He=C(Dr,_,$,z),Wr=C(wr,_,$,z),Rr=C(pr,_,$,z),$r=C(_,$,z);function ss(r){return A(r,[_r,He],[Zr,Wr],[Ur,Rr],[Hr,$r])}function is(r){return A(Lr(r),[Nr,xr])}function as(r){return A(r,[br,Ue],[Cr,Ue],[Ar,Vr])}function os(r){return A(r,[vr,kr])}const zr=C(_);function us(r){return A(r,[Mr,zr])}const qr=b(Or,Ir),Pr=b(Ze),Yr=C(_,$,z);function ls(r){return A(r,[qr,He],[Pr,Yr])}const Gr="Invalid Duration",We={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},jr={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:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...We},O=146097/400,Z=146097/4800,Br={years:{quarters:4,months:12,weeks:O/7,days:O,hours:O*24,minutes:O*24*60,seconds:O*24*60*60,milliseconds:O*24*60*60*1e3},quarters:{months:3,weeks:O/28,days:O/4,hours:O*24/4,minutes:O*24*60/4,seconds:O*24*60*60/4,milliseconds:O*24*60*60*1e3/4},months:{weeks:Z/7,days:Z,hours:Z*24,minutes:Z*24*60,seconds:Z*24*60*60,milliseconds:Z*24*60*60*1e3},...We},F=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Jr=F.slice(0).reverse();function N(r,e,t=!1){const n={values:t?e.values:{...r.values,...e.values||{}},loc:r.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||r.conversionAccuracy};return new w(n)}function Kr(r){return r<0?Math.floor(r):Math.ceil(r)}function Re(r,e,t,n,s){const a=r[s][t],i=e[t]/a,o=Math.sign(i)===Math.sign(n[s]),u=!o&&n[s]!==0&&Math.abs(i)<=1?Kr(i):Math.trunc(i);n[s]+=u,e[t]-=u*a}function Qr(r,e){Jr.reduce((t,n)=>isUndefined(e[n])?t:(t&&Re(r,e,t,e,n),n),null)}class w{constructor(e){const t=e.conversionAccuracy==="longterm"||!1;this.values=e.values,this.loc=e.loc||Locale.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=t?Br:jr,this.isLuxonDuration=!0}static fromMillis(e,t){return w.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(e==null||typeof e!="object")throw new InvalidArgumentError(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new w({values:normalizeObject(e,w.normalizeUnit),loc:Locale.fromObject(t),conversionAccuracy:t.conversionAccuracy})}static fromDurationLike(e){if(isNumber(e))return w.fromMillis(e);if(w.isDuration(e))return e;if(typeof e=="object")return w.fromObject(e);throw new InvalidArgumentError(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[n]=parseISODuration(e);return n?w.fromObject(n,t):w.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[n]=parseISOTimeOnly(e);return n?w.fromObject(n,t):w.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new InvalidArgumentError("need to specify a reason the Duration is invalid");const n=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid)throw new InvalidDurationError(n);return new w({invalid:n})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!t)throw new InvalidUnitError(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const n={...t,floor:t.round!==!1&&t.floor!==!1};return this.isValid?Formatter.create(this.loc,n).formatDurationFromString(this,e):Gr}toHuman(e={}){const t=F.map(n=>{const s=this.values[n];return isUndefined(s)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:n.slice(0,-1)}).format(s)}).filter(n=>n);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 this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=roundTo(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e};const n=this.shiftTo("hours","minutes","seconds","milliseconds");let s=e.format==="basic"?"hhmm":"hh:mm";(!e.suppressSeconds||n.seconds!==0||n.milliseconds!==0)&&(s+=e.format==="basic"?"ss":":ss",(!e.suppressMilliseconds||n.milliseconds!==0)&&(s+=".SSS"));let a=n.toFormat(s);return e.includePrefix&&(a="T"+a),a}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=w.fromDurationLike(e),n={};for(const s of F)(hasOwnProperty(t.values,s)||hasOwnProperty(this.values,s))&&(n[s]=t.get(s)+this.get(s));return N(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const t=w.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=asNumber(e(this.values[n],n));return N(this,{values:t},!0)}get(e){return this[w.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const t={...this.values,...normalizeObject(e,w.normalizeUnit)};return N(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n}={}){const s=this.loc.clone({locale:e,numberingSystem:t}),a={loc:s};return n&&(a.conversionAccuracy=n),N(this,a)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return Qr(this.matrix,e),N(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(i=>w.normalizeUnit(i));const t={},n={},s=this.toObject();let a;for(const i of F)if(e.indexOf(i)>=0){a=i;let o=0;for(const l in n)o+=this.matrix[l][i]*n[l],n[l]=0;isNumber(s[i])&&(o+=s[i]);const u=Math.trunc(o);t[i]=u,n[i]=(o*1e3-u*1e3)/1e3;for(const l in s)F.indexOf(l)>F.indexOf(i)&&Re(this.matrix,s,l,t,i)}else isNumber(s[i])&&(n[i]=s[i]);for(const i in n)n[i]!==0&&(t[a]+=i===a?n[i]:n[i]/this.matrix[a][i]);return N(this,{values:t},!0).normalize()}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=this.values[t]===0?0:-this.values[t];return N(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function t(n,s){return n===void 0||n===0?s===void 0||s===0:n===s}for(const n of F)if(!t(this.values[n],e.values[n]))return!1;return!0}}const q="Invalid Interval";function Xr(r,e){return!r||!r.isValid?T.invalid("missing or invalid start"):!e||!e.isValid?T.invalid("missing or invalid end"):e<r?T.invalid("end before start",`The end of an interval must be after its start, but you had start=${r.toISO()} and end=${e.toISO()}`):null}class T{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 InvalidArgumentError("need to specify a reason the Interval is invalid");const n=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid)throw new InvalidIntervalError(n);return new T({invalid:n})}static fromDateTimes(e,t){const n=friendlyDateTime(e),s=friendlyDateTime(t),a=Xr(n,s);return a==null?new T({start:n,end:s}):a}static after(e,t){const n=Duration.fromDurationLike(t),s=friendlyDateTime(e);return T.fromDateTimes(s,s.plus(n))}static before(e,t){const n=Duration.fromDurationLike(t),s=friendlyDateTime(e);return T.fromDateTimes(s.minus(n),s)}static fromISO(e,t){const[n,s]=(e||"").split("/",2);if(n&&s){let a,i;try{a=DateTime.fromISO(n,t),i=a.isValid}catch{i=!1}let o,u;try{o=DateTime.fromISO(s,t),u=o.isValid}catch{u=!1}if(i&&u)return T.fromDateTimes(a,o);if(i){const l=Duration.fromISO(s,t);if(l.isValid)return T.after(a,l)}else if(u){const l=Duration.fromISO(n,t);if(l.isValid)return T.before(o,l)}}return T.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds"){if(!this.isValid)return NaN;const t=this.start.startOf(e),n=this.end.startOf(e);return Math.floor(n.diff(t,e).get(e))+1}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:t}={}){return this.isValid?T.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(friendlyDateTime).filter(i=>this.contains(i)).sort(),n=[];let{s}=this,a=0;for(;s<this.e;){const i=t[a]||this.e,o=+i>+this.e?this.e:i;n.push(T.fromDateTimes(s,o)),s=o,a+=1}return n}splitBy(e){const t=Duration.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as("milliseconds")===0)return[];let{s:n}=this,s=1,a;const i=[];for(;n<this.e;){const o=this.start.plus(t.mapUnits(u=>u*s));a=+o>+this.e?this.e:o,i.push(T.fromDateTimes(n,a)),n=a,s+=1}return i}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return t>=n?null:T.fromDateTimes(t,n)}union(e){if(!this.isValid)return this;const t=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return T.fromDateTimes(t,n)}static merge(e){const[t,n]=e.sort((s,a)=>s.s-a.s).reduce(([s,a],i)=>a?a.overlaps(i)||a.abutsStart(i)?[s,a.union(i)]:[s.concat([a]),i]:[s,i],[[],null]);return n&&t.push(n),t}static xor(e){let t=null,n=0;const s=[],a=e.map(u=>[{time:u.s,type:"s"},{time:u.e,type:"e"}]),i=Array.prototype.concat(...a),o=i.sort((u,l)=>u.time-l.time);for(const u of o)n+=u.type==="s"?1:-1,n===1?t=u.time:(t&&+t!=+u.time&&s.push(T.fromDateTimes(t,u.time)),t=null);return T.merge(s)}difference(...e){return T.xor([this].concat(e)).map(t=>this.intersection(t)).filter(t=>t&&!t.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:q}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:q}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:q}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:q}toFormat(e,{separator:t=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:q}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):Duration.invalid(this.invalidReason)}mapEndpoints(e){return T.fromDateTimes(e(this.s),e(this.e))}}class cs{static hasDST(e=Settings.defaultZone){const t=DateTime.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return IANAZone.isValidZone(e)}static normalizeZone(e){return normalizeZone(e,Settings.defaultZone)}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:s=null,outputCalendar:a="gregory"}={}){return(s||Locale.create(t,n,a)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:s=null,outputCalendar:a="gregory"}={}){return(s||Locale.create(t,n,a)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:s=null}={}){return(s||Locale.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:s=null}={}){return(s||Locale.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Locale.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Locale.create(t,null,"gregory").eras(e)}static features(){return{relative:hasRelative()}}}function $e(r,e){const t=s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=t(e)-t(r);return Math.floor(Duration.fromMillis(n).as("days"))}function en(r,e,t){const n=[["years",(o,u)=>u.year-o.year],["quarters",(o,u)=>u.quarter-o.quarter],["months",(o,u)=>u.month-o.month+(u.year-o.year)*12],["weeks",(o,u)=>{const l=$e(o,u);return(l-l%7)/7}],["days",$e]],s={};let a,i;for(const[o,u]of n)if(t.indexOf(o)>=0){a=o;let l=u(r,e);i=r.plus({[o]:l}),i>e?(r=r.plus({[o]:l-1}),l-=1):r=i,s[o]=l}return[r,s,i,a]}function ds(r,e,t,n){let[s,a,i,o]=en(r,e,t);const u=e-s,l=t.filter(y=>["hours","minutes","seconds","milliseconds"].indexOf(y)>=0);l.length===0&&(i<e&&(i=s.plus({[o]:1})),i!==s&&(a[o]=(a[o]||0)+u/(i-s)));const f=Duration.fromObject(a,n);return l.length>0?Duration.fromMillis(u,n).shiftTo(...l).plus(f):f}const me={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},ze={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]},tn=me.hanidec.replace(/[\[|\]]/g,"").split("");function fs(r){let e=parseInt(r,10);if(isNaN(e)){e="";for(let t=0;t<r.length;t++){const n=r.charCodeAt(t);if(r[t].search(me.hanidec)!==-1)e+=tn.indexOf(r[t]);else for(const s in ze){const[a,i]=ze[s];n>=a&&n<=i&&(e+=n-a)}}return parseInt(e,10)}else return e}function ms({numberingSystem:r},e=""){return new RegExp(`${me[r||"latn"]}${e}`)}const rn="missing Intl.DateTimeFormat.formatToParts support";function m(r,e=t=>t){return{regex:r,deser:([t])=>e(parseDigits(t))}}const qe=`[ ${String.fromCharCode(160)}]`,Pe=new RegExp(qe,"g");function nn(r){return r.replace(/\./g,"\\.?").replace(Pe,qe)}function Ye(r){return r.replace(/\./g,"").replace(Pe," ").toLowerCase()}function M(r,e){return r===null?null:{regex:RegExp(r.map(nn).join("|")),deser:([t])=>r.findIndex(n=>Ye(t)===Ye(n))+e}}function Ge(r,e){return{regex:r,deser:([,t,n])=>signedOffset(t,n),groups:e}}function he(r){return{regex:r,deser:([e])=>e}}function sn(r){return r.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function an(r,e){const t=digitRegex(e),n=digitRegex(e,"{2}"),s=digitRegex(e,"{3}"),a=digitRegex(e,"{4}"),i=digitRegex(e,"{6}"),o=digitRegex(e,"{1,2}"),u=digitRegex(e,"{1,3}"),l=digitRegex(e,"{1,6}"),f=digitRegex(e,"{1,9}"),y=digitRegex(e,"{2,4}"),E=digitRegex(e,"{4,6}"),d=v=>({regex:RegExp(sn(v.val)),deser:([ne])=>ne,literal:!0}),x=(v=>{if(r.literal)return d(v);switch(v.val){case"G":return M(e.eras("short",!1),0);case"GG":return M(e.eras("long",!1),0);case"y":return m(l);case"yy":return m(y,untruncateYear);case"yyyy":return m(a);case"yyyyy":return m(E);case"yyyyyy":return m(i);case"M":return m(o);case"MM":return m(n);case"MMM":return M(e.months("short",!0,!1),1);case"MMMM":return M(e.months("long",!0,!1),1);case"L":return m(o);case"LL":return m(n);case"LLL":return M(e.months("short",!1,!1),1);case"LLLL":return M(e.months("long",!1,!1),1);case"d":return m(o);case"dd":return m(n);case"o":return m(u);case"ooo":return m(s);case"HH":return m(n);case"H":return m(o);case"hh":return m(n);case"h":return m(o);case"mm":return m(n);case"m":return m(o);case"q":return m(o);case"qq":return m(n);case"s":return m(o);case"ss":return m(n);case"S":return m(u);case"SSS":return m(s);case"u":return he(f);case"uu":return he(o);case"uuu":return m(t);case"a":return M(e.meridiems(),0);case"kkkk":return m(a);case"kk":return m(y,untruncateYear);case"W":return m(o);case"WW":return m(n);case"E":case"c":return m(t);case"EEE":return M(e.weekdays("short",!1,!1),1);case"EEEE":return M(e.weekdays("long",!1,!1),1);case"ccc":return M(e.weekdays("short",!0,!1),1);case"cccc":return M(e.weekdays("long",!0,!1),1);case"Z":case"ZZ":return Ge(new RegExp(`([+-]${o.source})(?::(${n.source}))?`),2);case"ZZZ":return Ge(new RegExp(`([+-]${o.source})(${n.source})?`),2);case"z":return he(/[a-z_+-/]{1,256}?/i);default:return d(v)}})(r)||{invalidReason:rn};return x.token=r,x}const on={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",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function un(r,e,t){const{type:n,value:s}=r;if(n==="literal")return{literal:!0,val:s};const a=t[n];let i=on[n];if(typeof i=="object"&&(i=i[a]),i)return{literal:!1,val:i}}function ln(r){return[`^${r.map(t=>t.regex).reduce((t,n)=>`${t}(${n.source})`,"")}$`,r]}function cn(r,e,t){const n=r.match(e);if(n){const s={};let a=1;for(const i in t)if(hasOwnProperty(t,i)){const o=t[i],u=o.groups?o.groups+1:1;!o.literal&&o.token&&(s[o.token.val[0]]=o.deser(n.slice(a,a+u))),a+=u}return[n,s]}else return[n,{}]}function dn(r){const e=a=>{switch(a){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let t=null,n;return isUndefined(r.z)||(t=IANAZone.create(r.z)),isUndefined(r.Z)||(t||(t=new FixedOffsetZone(r.Z)),n=r.Z),isUndefined(r.q)||(r.M=(r.q-1)*3+1),isUndefined(r.h)||(r.h<12&&r.a===1?r.h+=12:r.h===12&&r.a===0&&(r.h=0)),r.G===0&&r.y&&(r.y=-r.y),isUndefined(r.u)||(r.S=parseMillis(r.u)),[Object.keys(r).reduce((a,i)=>{const o=e(i);return o&&(a[o]=r[i]),a},{}),t,n]}let ye=null;function fn(){return ye||(ye=DateTime.fromMillis(1555555555555)),ye}function mn(r,e){if(r.literal)return r;const t=Formatter.macroTokenToFormatOpts(r.val),n=gn(t,e);return n==null||n.includes(void 0)?r:n}function hn(r,e){return Array.prototype.concat(...r.map(t=>mn(t,e)))}function yn(r,e,t){const n=hn(Formatter.parseFormat(t),r),s=n.map(i=>an(i,r)),a=s.find(i=>i.invalidReason);if(a)return{input:e,tokens:n,invalidReason:a.invalidReason};{const[i,o]=ln(s),u=RegExp(i,"i"),[l,f]=cn(e,u,o),[y,E,d]=f?dn(f):[null,null,void 0];if(hasOwnProperty(f,"a")&&hasOwnProperty(f,"H"))throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:n,regex:u,rawMatches:l,matches:f,result:y,zone:E,specificOffset:d}}}function ys(r,e,t){const{result:n,zone:s,specificOffset:a,invalidReason:i}=yn(r,e,t);return[n,s,a,i]}function gn(r,e){return r?Formatter.create(e,r).formatDateTimeParts(fn()).map(s=>un(s,e,r)):null}const je=null,Be=null;function I(r,e){return new Invalid("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${r}, which is invalid`)}function Je(r,e,t){const n=new Date(Date.UTC(r,e-1,t));r<100&&r>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const s=n.getUTCDay();return s===0?7:s}function Ke(r,e,t){return t+(isLeapYear(r)?Be:je)[e-1]}function Qe(r,e){const t=isLeapYear(r)?Be:je,n=t.findIndex(a=>a<e),s=e-t[n];return{month:n+1,day:s}}function gs(r){const{year:e,month:t,day:n}=r,s=Ke(e,t,n),a=Je(e,t,n);let i=Math.floor((s-a+10)/7),o;return i<1?(o=e-1,i=weeksInWeekYear(o)):i>weeksInWeekYear(e)?(o=e+1,i=1):o=e,{weekYear:o,weekNumber:i,weekday:a,...timeObject(r)}}function Ts(r){const{weekYear:e,weekNumber:t,weekday:n}=r,s=Je(e,1,4),a=daysInYear(e);let i=t*7+n-s-3,o;i<1?(o=e-1,i+=daysInYear(o)):i>a?(o=e+1,i-=daysInYear(e)):o=e;const{month:u,day:l}=Qe(o,i);return{year:o,month:u,day:l,...timeObject(r)}}function Es(r){const{year:e,month:t,day:n}=r,s=Ke(e,t,n);return{year:e,ordinal:s,...timeObject(r)}}function Ss(r){const{year:e,ordinal:t}=r,{month:n,day:s}=Qe(e,t);return{year:e,month:n,day:s,...timeObject(r)}}function ws(r){const e=isInteger(r.weekYear),t=integerBetween(r.weekNumber,1,weeksInWeekYear(r.weekYear)),n=integerBetween(r.weekday,1,7);return e?t?n?!1:I("weekday",r.weekday):I("week",r.week):I("weekYear",r.weekYear)}function ps(r){const e=isInteger(r.year),t=integerBetween(r.ordinal,1,daysInYear(r.year));return e?t?!1:I("ordinal",r.ordinal):I("year",r.year)}function Os(r){const e=isInteger(r.year),t=integerBetween(r.month,1,12),n=integerBetween(r.day,1,daysInMonth(r.year,r.month));return e?t?n?!1:I("day",r.day):I("month",r.month):I("year",r.year)}function Is(r){const{hour:e,minute:t,second:n,millisecond:s}=r,a=integerBetween(e,0,23)||e===24&&t===0&&n===0&&s===0,i=integerBetween(t,0,59),o=integerBetween(n,0,59),u=integerBetween(s,0,999);return a?i?o?u?!1:I("millisecond",s):I("second",n):I("minute",t):I("hour",e)}const ge="Invalid DateTime",Xe=864e13;function ee(r){return new Invalid("unsupported zone",`the zone "${r.name}" is not supported`)}function Te(r){return r.weekData===null&&(r.weekData=gregorianToWeek(r.c)),r.weekData}function P(r,e){const t={ts:r.ts,zone:r.zone,c:r.c,o:r.o,loc:r.loc,invalid:r.invalid};return new h({...t,...e,old:t})}function et(r,e,t){let n=r-e*60*1e3;const s=t.offset(n);if(e===s)return[n,e];n-=(s-e)*60*1e3;const a=t.offset(n);return s===a?[n,s]:[r-Math.min(s,a)*60*1e3,Math.max(s,a)]}function tt(r,e){r+=e*60*1e3;const t=new Date(r);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds()}}function te(r,e,t){return et(objToLocalTS(r),e,t)}function rt(r,e){const t=r.o,n=r.c.year+Math.trunc(e.years),s=r.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,a={...r.c,year:n,month:s,day:Math.min(r.c.day,daysInMonth(n,s))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},i=Duration.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),o=objToLocalTS(a);let[u,l]=et(o,t,r.zone);return i!==0&&(u+=i,l=r.zone.offset(u)),{ts:u,o:l}}function Y(r,e,t,n,s,a){const{setZone:i,zone:o}=t;if(r&&Object.keys(r).length!==0){const u=e||o,l=h.fromObject(r,{...t,zone:u,specificOffset:a});return i?l:l.setZone(o)}else return h.invalid(new Invalid("unparsable",`the input "${s}" can't be parsed as ${n}`))}function re(r,e,t=!0){return r.isValid?Formatter.create(Locale.create("en-US"),{allowZ:t,forceSimple:!0}).formatDateTimeFromString(r,e):null}function Ee(r,e){const t=r.c.year>9999||r.c.year<0;let n="";return t&&r.c.year>=0&&(n+="+"),n+=padStart(r.c.year,t?6:4),e?(n+="-",n+=padStart(r.c.month),n+="-",n+=padStart(r.c.day)):(n+=padStart(r.c.month),n+=padStart(r.c.day)),n}function nt(r,e,t,n,s,a){let i=padStart(r.c.hour);return e?(i+=":",i+=padStart(r.c.minute),(r.c.second!==0||!t)&&(i+=":")):i+=padStart(r.c.minute),(r.c.second!==0||!t)&&(i+=padStart(r.c.second),(r.c.millisecond!==0||!n)&&(i+=".",i+=padStart(r.c.millisecond,3))),s&&(r.isOffsetFixed&&r.offset===0&&!a?i+="Z":r.o<0?(i+="-",i+=padStart(Math.trunc(-r.o/60)),i+=":",i+=padStart(Math.trunc(-r.o%60))):(i+="+",i+=padStart(Math.trunc(r.o/60)),i+=":",i+=padStart(Math.trunc(r.o%60)))),a&&(i+="["+r.zone.ianaName+"]"),i}const st={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Tn={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},En={ordinal:1,hour:0,minute:0,second:0,millisecond:0},it=null,Sn=null,wn=null;function at(r){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[r.toLowerCase()];if(!e)throw new InvalidUnitError(r);return e}function ot(r,e){const t=normalizeZone(e.zone,Settings.defaultZone),n=Locale.fromObject(e),s=Settings.now();let a,i;if(isUndefined(r.year))a=s;else{for(const l of it)isUndefined(r[l])&&(r[l]=st[l]);const o=hasInvalidGregorianData(r)||hasInvalidTimeData(r);if(o)return h.invalid(o);const u=t.offset(s);[a,i]=te(r,u,t)}return new h({ts:a,zone:t,loc:n,o:i})}function ut(r,e,t){const n=isUndefined(t.round)?!0:t.round,s=(i,o)=>(i=roundTo(i,n||t.calendary?0:2,!0),e.loc.clone(t).relFormatter(t).format(i,o)),a=i=>t.calendary?e.hasSame(r,i)?0:e.startOf(i).diff(r.startOf(i),i).get(i):e.diff(r,i).get(i);if(t.unit)return s(a(t.unit),t.unit);for(const i of t.units){const o=a(i);if(Math.abs(o)>=1)return s(o,i)}return s(r>e?-0:0,t.units[t.units.length-1])}function lt(r){let e={},t;return r.length>0&&typeof r[r.length-1]=="object"?(e=r[r.length-1],t=Array.from(r).slice(0,r.length-1)):t=Array.from(r),[e,t]}class h{constructor(e){const t=e.zone||Settings.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new Invalid("invalid input"):null)||(t.isValid?null:ee(t));this.ts=isUndefined(e.ts)?Settings.now():e.ts;let s=null,a=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[s,a]=[e.old.c,e.old.o];else{const o=t.offset(this.ts);s=tt(this.ts,o),n=Number.isNaN(s.year)?new Invalid("invalid input"):null,s=n?null:s,a=n?null:o}this._zone=t,this.loc=e.loc||Locale.create(),this.invalid=n,this.weekData=null,this.c=s,this.o=a,this.isLuxonDateTime=!0}static now(){return new h({})}static local(){const[e,t]=lt(arguments),[n,s,a,i,o,u,l]=t;return ot({year:n,month:s,day:a,hour:i,minute:o,second:u,millisecond:l},e)}static utc(){const[e,t]=lt(arguments),[n,s,a,i,o,u,l]=t;return e.zone=FixedOffsetZone.utcInstance,ot({year:n,month:s,day:a,hour:i,minute:o,second:u,millisecond:l},e)}static fromJSDate(e,t={}){const n=isDate(e)?e.valueOf():NaN;if(Number.isNaN(n))return h.invalid("invalid input");const s=normalizeZone(t.zone,Settings.defaultZone);return s.isValid?new h({ts:n,zone:s,loc:Locale.fromObject(t)}):h.invalid(ee(s))}static fromMillis(e,t={}){if(isNumber(e))return e<-Xe||e>Xe?h.invalid("Timestamp out of range"):new h({ts:e,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)});throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(isNumber(e))return new h({ts:e*1e3,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)});throw new InvalidArgumentError("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const n=normalizeZone(t.zone,Settings.defaultZone);if(!n.isValid)return h.invalid(ee(n));const s=Settings.now(),a=isUndefined(t.specificOffset)?n.offset(s):t.specificOffset,i=normalizeObject(e,at),o=!isUndefined(i.ordinal),u=!isUndefined(i.year),l=!isUndefined(i.month)||!isUndefined(i.day),f=u||l,y=i.weekYear||i.weekNumber,E=Locale.fromObject(t);if((f||o)&&y)throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&o)throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");const d=y||i.weekday&&!f;let S,x,v=tt(s,a);d?(S=Sn,x=Tn,v=gregorianToWeek(v)):o?(S=wn,x=En,v=gregorianToOrdinal(v)):(S=it,x=st);let ne=!1;for(const G of S){const Mn=i[G];isUndefined(Mn)?ne?i[G]=x[G]:i[G]=v[G]:ne=!0}const pn=d?hasInvalidWeekData(i):o?hasInvalidOrdinalData(i):hasInvalidGregorianData(i),ct=pn||hasInvalidTimeData(i);if(ct)return h.invalid(ct);const On=d?weekToGregorian(i):o?ordinalToGregorian(i):i,[In,Dn]=te(On,a,n),Se=new h({ts:In,zone:n,o:Dn,loc:E});return i.weekday&&f&&e.weekday!==Se.weekday?h.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${Se.toISO()}`):Se}static fromISO(e,t={}){const[n,s]=parseISODate(e);return Y(n,s,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[n,s]=parseRFC2822Date(e);return Y(n,s,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[n,s]=parseHTTPDate(e);return Y(n,s,t,"HTTP",t)}static fromFormat(e,t,n={}){if(isUndefined(e)||isUndefined(t))throw new InvalidArgumentError("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:a=null}=n,i=Locale.fromOpts({locale:s,numberingSystem:a,defaultToEN:!0}),[o,u,l,f]=parseFromTokens(i,e,t);return f?h.invalid(f):Y(o,u,n,`format ${t}`,e,l)}static fromString(e,t,n={}){return h.fromFormat(e,t,n)}static fromSQL(e,t={}){const[n,s]=parseSQL(e);return Y(n,s,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new InvalidArgumentError("need to specify a reason the DateTime is invalid");const n=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid)throw new InvalidDateTimeError(n);return new h({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const n=formatOptsToTokens(e,Locale.fromObject(t));return n?n.map(s=>s?s.val:null).join(""):null}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Te(this).weekYear:NaN}get weekNumber(){return this.isValid?Te(this).weekNumber:NaN}get weekday(){return this.isValid?Te(this).weekday:NaN}get ordinal(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info.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}get isInLeapYear(){return isLeapYear(this.year)}get daysInMonth(){return daysInMonth(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:n,calendar:s}=Formatter.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:s}}toUTC(e=0,t={}){return this.setZone(FixedOffsetZone.instance(e),t)}toLocal(){return this.setZone(Settings.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if(e=normalizeZone(e,Settings.defaultZone),e.equals(this.zone))return this;if(e.isValid){let s=this.ts;if(t||n){const a=e.offset(this.ts),i=this.toObject();[s]=te(i,a,e)}return P(this,{ts:s,zone:e})}else return h.invalid(ee(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){const s=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n});return P(this,{loc:s})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=normalizeObject(e,at),n=!isUndefined(t.weekYear)||!isUndefined(t.weekNumber)||!isUndefined(t.weekday),s=!isUndefined(t.ordinal),a=!isUndefined(t.year),i=!isUndefined(t.month)||!isUndefined(t.day),o=a||i,u=t.weekYear||t.weekNumber;if((o||s)&&u)throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(i&&s)throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");let l;n?l=weekToGregorian({...gregorianToWeek(this.c),...t}):isUndefined(t.ordinal)?(l={...this.toObject(),...t},isUndefined(t.day)&&(l.day=Math.min(daysInMonth(l.year,l.month),l.day))):l=ordinalToGregorian({...gregorianToOrdinal(this.c),...t});const[f,y]=te(l,this.o,this.zone);return P(this,{ts:f,o:y})}plus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e);return P(this,rt(this,t))}minus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e).negate();return P(this,rt(this,t))}startOf(e){if(!this.isValid)return this;const t={},n=Duration.normalizeUnit(e);switch(n){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0;break;case"milliseconds":break}if(n==="weeks"&&(t.weekday=1),n==="quarters"){const s=Math.ceil(this.month/3);t.month=(s-1)*3+1}return this.set(t)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,t={}){return this.isValid?Formatter.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):ge}toLocaleString(e=Formats.DATE_SHORT,t={}){return this.isValid?Formatter.create(this.loc.clone(t),e).formatDateTime(this):ge}toLocaleParts(e={}){return this.isValid?Formatter.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:s=!0,extendedZone:a=!1}={}){if(!this.isValid)return null;const i=e==="extended";let o=Ee(this,i);return o+="T",o+=nt(this,i,t,n,s,a),o}toISODate({format:e="extended"}={}){return this.isValid?Ee(this,e==="extended"):null}toISOWeekDate(){return re(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:s=!1,extendedZone:a=!1,format:i="extended"}={}){return this.isValid?(s?"T":"")+nt(this,i==="extended",t,e,n,a):null}toRFC2822(){return re(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return re(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Ee(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let s="HH:mm:ss.SSS";return(t||e)&&(n&&(s+=" "),t?s+="z":e&&(s+="ZZ")),re(this,s,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():ge}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid)return Duration.invalid("created by diffing an invalid DateTime");const s={locale:this.locale,numberingSystem:this.numberingSystem,...n},a=maybeArray(t).map(Duration.normalizeUnit),i=e.valueOf()>this.valueOf(),o=i?this:e,u=i?e:this,l=diff(o,u,a,s);return i?l.negate():l}diffNow(e="milliseconds",t={}){return this.diff(h.now(),e,t)}until(e){return this.isValid?Interval.fromDateTimes(this,e):this}hasSame(e,t){if(!this.isValid)return!1;const n=e.valueOf(),s=this.setZone(e.zone,{keepLocalTime:!0});return s.startOf(t)<=n&&n<=s.endOf(t)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||h.fromObject({},{zone:this.zone}),n=e.padding?this<t?-e.padding:e.padding:0;let s=["years","months","days","hours","minutes","seconds"],a=e.unit;return Array.isArray(e.unit)&&(s=e.unit,a=void 0),ut(t,this.plus(n),{...e,numeric:"always",units:s,unit:a})}toRelativeCalendar(e={}){return this.isValid?ut(e.base||h.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(h.isDateTime))throw new InvalidArgumentError("min requires all arguments be DateTimes");return bestBy(e,t=>t.valueOf(),Math.min)}static max(...e){if(!e.every(h.isDateTime))throw new InvalidArgumentError("max requires all arguments be DateTimes");return bestBy(e,t=>t.valueOf(),Math.max)}static fromFormatExplain(e,t,n={}){const{locale:s=null,numberingSystem:a=null}=n,i=Locale.fromOpts({locale:s,numberingSystem:a,defaultToEN:!0});return explainFromTokens(i,e,t)}static fromStringExplain(e,t,n={}){return h.fromFormatExplain(e,t,n)}static get DATE_SHORT(){return Formats.DATE_SHORT}static get DATE_MED(){return Formats.DATE_MED}static get DATE_MED_WITH_WEEKDAY(){return Formats.DATE_MED_WITH_WEEKDAY}static get DATE_FULL(){return Formats.DATE_FULL}static get DATE_HUGE(){return Formats.DATE_HUGE}static get TIME_SIMPLE(){return Formats.TIME_SIMPLE}static get TIME_WITH_SECONDS(){return Formats.TIME_WITH_SECONDS}static get TIME_WITH_SHORT_OFFSET(){return Formats.TIME_WITH_SHORT_OFFSET}static get TIME_WITH_LONG_OFFSET(){return Formats.TIME_WITH_LONG_OFFSET}static get TIME_24_SIMPLE(){return Formats.TIME_24_SIMPLE}static get TIME_24_WITH_SECONDS(){return Formats.TIME_24_WITH_SECONDS}static get TIME_24_WITH_SHORT_OFFSET(){return Formats.TIME_24_WITH_SHORT_OFFSET}static get TIME_24_WITH_LONG_OFFSET(){return Formats.TIME_24_WITH_LONG_OFFSET}static get DATETIME_SHORT(){return Formats.DATETIME_SHORT}static get DATETIME_SHORT_WITH_SECONDS(){return Formats.DATETIME_SHORT_WITH_SECONDS}static get DATETIME_MED(){return Formats.DATETIME_MED}static get DATETIME_MED_WITH_SECONDS(){return Formats.DATETIME_MED_WITH_SECONDS}static get DATETIME_MED_WITH_WEEKDAY(){return Formats.DATETIME_MED_WITH_WEEKDAY}static get DATETIME_FULL(){return Formats.DATETIME_FULL}static get DATETIME_FULL_WITH_SECONDS(){return Formats.DATETIME_FULL_WITH_SECONDS}static get DATETIME_HUGE(){return Formats.DATETIME_HUGE}static get DATETIME_HUGE_WITH_SECONDS(){return Formats.DATETIME_HUGE_WITH_SECONDS}}function Ds(r){if(h.isDateTime(r))return r;if(r&&r.valueOf&&isNumber(r.valueOf()))return h.fromJSDate(r);if(r&&typeof r=="object")return h.fromObject(r);throw new InvalidArgumentError(`Unknown datetime argument: ${r}, of type ${typeof r}`)}const Ms="3.0.1"}}]);})();
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=module-luxon.ee0def5d.js.map
|