var luxon=function(e){"use strict";function r(e,t){for(var n=0;n=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var u=a;u.literal?n+=u.val:n+=t(u.val)}return n}var Ee={D:p,DD:w,DDD:k,DDDD:b,t:O,tt:S,ttt:M,tttt:D,T:E,TT:I,TTT:V,TTTT:L,f:x,ff:C,fff:A,ffff:_,F:F,FF:Z,FFF:z,FFFF:q},Ie=function(){function f(e,t){this.opts=t,this.loc=e,this.systemLoc=null}f.create=function(e,t){return void 0===t&&(t={}),new f(e,t)},f.parseFormat=function(e){for(var t=null,n="",r=!1,i=[],o=0;oQt.indexOf(c)&&en(this.matrix,a,h,i,c)}else U(a[c])&&(o[c]=a[c])}for(var m in o)0!==o[m]&&(i[r]+=m===r?o[m]:o[m]/this.matrix[r][m]);return Xt(this,{values:i},!0).normalize()},e.negate=function(){if(!this.isValid)return this;for(var e={},t=0,n=Object.keys(this.values);te},e.isBefore=function(e){return!!this.isValid&&this.e<=e},e.contains=function(e){return!!this.isValid&&(this.s<=e&&this.e>e)},e.set=function(e){var t=void 0===e?{}:e,n=t.start,r=t.end;return this.isValid?f.fromDateTimes(n||this.s,r||this.e):this},e.splitAt=function(){var t=this;if(!this.isValid)return[];for(var e=arguments.length,n=new Array(e),r=0;r+this.e?this.e:s;o.push(f.fromDateTimes(a,c)),a=c,u+=1}return o},e.splitBy=function(e){var t=rn(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];for(var n,r,i=this.s,o=[];i+this.e?this.e:n,o.push(f.fromDateTimes(i,r)),i=r;return o},e.divideEqually=function(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]},e.overlaps=function(e){return this.e>e.s&&this.s=e.e)},e.equals=function(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))},e.intersection=function(e){if(!this.isValid)return this;var t=this.s>e.s?this.s:e.s,n=this.ee.e?this.e:e.e;return f.fromDateTimes(t,n)},f.merge=function(e){var t=e.sort(function(e,t){return e.s-t.s}).reduce(function(e,t){var n=e[0],r=e[1];return r?r.overlaps(t)||r.abutsStart(t)?[n,r.union(t)]:[n.concat([r]),t]:[n,t]},[[],null]),n=t[0],r=t[1];return r&&n.push(r),n},f.xor=function(e){var t,n=null,r=0,i=[],o=e.map(function(e){return[{time:e.s,type:"s"},{time:e.e,type:"e"}]}),a=(t=Array.prototype).concat.apply(t,o).sort(function(e,t){return e.time-t.time}),u=Array.isArray(a),s=0;for(a=u?a:a[Symbol.iterator]();;){var c;if(u){if(s>=a.length)break;c=a[s++]}else{if((s=a.next()).done)break;c=s.value}var l=c;n=1===(r+="s"===l.type?1:-1)?l.time:(n&&+n!=+l.time&&i.push(f.fromDateTimes(n,l.time)),null)}return f.merge(i)},e.difference=function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;rie(n)?(t=n+1,u=1):t=n,Object.assign({weekYear:t,weekNumber:u,weekday:a},fe(e))}function xn(e){var t,n=e.weekYear,r=e.weekNumber,i=e.weekday,o=En(n,1,4),a=te(n),u=7*r+i-o-3;u<1?u+=te(t=n-1):a=a.length)break;c=a[s++]}else{if((s=a.next()).done)break;c=s.value}var l=c,f=i(l);if(1<=Math.abs(f))return e(f,l)}return e(0,r.units[r.units.length-1])}var rr=function(){function T(e){var t=e.zone||$e.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new Ve("invalid input"):null)||(t.isValid?null:zn(t));this.ts=H(e.ts)?$e.now():e.ts;var r=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t)){var o=[e.old.c,e.old.o];r=o[0],i=o[1]}else r=Un(this.ts,t.offset(this.ts)),r=(n=Number.isNaN(r.year)?new Ve("invalid input"):null)?null:r,i=n?null:t.offset(this.ts);this._zone=t,this.loc=e.loc||ot.create(),this.invalid=n,this.weekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}T.local=function(e,t,n,r,i,o,a){return H(e)?new T({ts:$e.now()}):tr({year:e,month:t,day:n,hour:r,minute:i,second:o,millisecond:a},$e.defaultZone)},T.utc=function(e,t,n,r,i,o,a){return H(e)?new T({ts:$e.now(),zone:qe.utcInstance}):tr({year:e,month:t,day:n,hour:r,minute:i,second:o,millisecond:a},qe.utcInstance)},T.fromJSDate=function(e,t){void 0===t&&(t={});var n=function(e){return"[object Date]"===Object.prototype.toString.call(e)}(e)?e.valueOf():NaN;if(Number.isNaN(n))return T.invalid("invalid input");var r=Ue(t.zone,$e.defaultZone);return r.isValid?new T({ts:n,zone:r,loc:ot.fromObject(t)}):T.invalid(zn(r))},T.fromMillis=function(e,t){if(void 0===t&&(t={}),U(e))return e<-864e13||864e13=v.length)break;w=v[p++]}else{if((p=v.next()).done)break;w=p.value}var k=w;H(i[k])?i[k]=y?d[k]:m[k]:y=!0}var b=(h?function(e){var t=R(e.weekYear),n=$(e.weekNumber,1,ie(e.weekYear)),r=$(e.weekday,1,7);return t?n?!r&&Dn("weekday",e.weekday):Dn("week",e.week):Dn("weekYear",e.weekYear)}(i):o?function(e){var t=R(e.year),n=$(e.ordinal,1,te(e.year));return t?!n&&Dn("ordinal",e.ordinal):Dn("year",e.year)}(i):Zn(i))||jn(i);if(b)return T.invalid(b);var O=Rn(h?xn(i):o?Cn(i):i,r,t),S=new T({ts:O[0],zone:t,o:O[1],loc:l});return i.weekday&&s&&e.weekday!==S.weekday?T.invalid("mismatched weekday","you can't specify both a weekday of "+i.weekday+" and a date of "+S.toISO()):S},T.fromISO=function(e,t){void 0===t&&(t={});var n=function(e){return st(e,[Ct,zt],[Zt,_t],[jt,qt],[At,Ht])}(e);return Pn(n[0],n[1],t,"ISO 8601",e)},T.fromRFC2822=function(e,t){void 0===t&&(t={});var n=function(e){return st(function(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[Dt,Et])}(e);return Pn(n[0],n[1],t,"RFC 2822",e)},T.fromHTTP=function(e,t){void 0===t&&(t={});var n=function(e){return st(e,[It,xt],[Vt,xt],[Lt,Ft])}(e);return Pn(n[0],n[1],t,"HTTP",t)},T.fromFormat=function(e,t,n){if(void 0===n&&(n={}),H(e)||H(t))throw new h("fromFormat requires an input string and a format");var r=n,i=r.locale,o=void 0===i?null:i,a=r.numberingSystem,u=void 0===a?null:a,s=function(e,t,n){var r=Tn(e,t,n);return[r.result,r.zone,r.invalidReason]}(ot.fromOpts({locale:o,numberingSystem:u,defaultToEN:!0}),e,t),c=s[0],l=s[1],f=s[2];return f?T.invalid(f):Pn(c,l,n,"format "+t,e)},T.fromString=function(e,t,n){return void 0===n&&(n={}),T.fromFormat(e,t,n)},T.fromSQL=function(e,t){void 0===t&&(t={});var n=function(e){return st(e,[Ut,Wt],[Rt,Pt])}(e);return Pn(n[0],n[1],t,"SQL",e)},T.invalid=function(e,t){if(void 0===t&&(t=null),!e)throw new h("need to specify a reason the DateTime is invalid");var n=e instanceof Ve?e:new Ve(e,t);if($e.throwOnInvalid)throw new c(n);return new T({invalid:n})},T.isDateTime=function(e){return e&&e.isLuxonDateTime||!1};var e=T.prototype;return e.get=function(e){return this[e]},e.resolvedLocaleOpts=function(e){void 0===e&&(e={});var t=Ie.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t.locale,numberingSystem:t.numberingSystem,outputCalendar:t.calendar}},e.toUTC=function(e,t){return void 0===e&&(e=0),void 0===t&&(t={}),this.setZone(qe.instance(e),t)},e.toLocal=function(){return this.setZone($e.defaultZone)},e.setZone=function(e,t){var n=void 0===t?{}:t,r=n.keepLocalTime,i=void 0!==r&&r,o=n.keepCalendarTime,a=void 0!==o&&o;if((e=Ue(e,$e.defaultZone)).equals(this.zone))return this;if(e.isValid){var u=this.ts;if(i||a){var s=this.o-e.offset(this.ts);u=Rn(this.toObject(),s,e)[0]}return qn(this,{ts:u,zone:e})}return T.invalid(zn(e))},e.reconfigure=function(e){var t=void 0===e?{}:e,n=t.locale,r=t.numberingSystem,i=t.outputCalendar,o=this.loc.clone({locale:n,numberingSystem:r,outputCalendar:i});return qn(this,{loc:o})},e.setLocale=function(e){return this.reconfigure({locale:e})},e.set=function(e){if(!this.isValid)return this;var t,n=ce(e,er,[]);!H(n.weekYear)||!H(n.weekNumber)||!H(n.weekday)?t=xn(Object.assign(Ln(this.c),n)):H(n.ordinal)?(t=Object.assign(this.toObject(),n),H(n.day)&&(t.day=Math.min(ne(t.year,t.month),t.day))):t=Cn(Object.assign(Fn(this.c),n));var r=Rn(t,this.o,this.zone);return qn(this,{ts:r[0],o:r[1]})},e.plus=function(e){return this.isValid?qn(this,Wn(this,rn(e))):this},e.minus=function(e){return this.isValid?qn(this,Wn(this,rn(e).negate())):this},e.startOf=function(e){if(!this.isValid)return this;var t={},n=nn.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}if("weeks"===n&&(t.weekday=1),"quarters"===n){var r=Math.ceil(this.month/3);t.month=3*(r-1)+1}return this.set(t)},e.endOf=function(e){var t;return this.isValid?this.plus(((t={})[e]=1,t)).startOf(e).minus(1):this},e.toFormat=function(e,t){return void 0===t&&(t={}),this.isValid?Ie.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):An},e.toLocaleString=function(e){return void 0===e&&(e=p),this.isValid?Ie.create(this.loc.clone(e),e).formatDateTime(this):An},e.toLocaleParts=function(e){return void 0===e&&(e={}),this.isValid?Ie.create(this.loc.clone(e),e).formatDateTimeParts(this):[]},e.toISO=function(e){return void 0===e&&(e={}),this.isValid?this.toISODate()+"T"+this.toISOTime(e):null},e.toISODate=function(){var e="yyyy-MM-dd";return 9999this.valueOf(),a=cn(o?this:e,o?e:this,i,r);return o?a.negate():a},e.diffNow=function(e,t){return void 0===e&&(e="milliseconds"),void 0===t&&(t={}),this.diff(T.local(),e,t)},e.until=function(e){return this.isValid?an.fromDateTimes(this,e):this},e.hasSame=function(e,t){if(!this.isValid)return!1;if("millisecond"===t)return this.valueOf()===e.valueOf();var n=e.valueOf();return this.startOf(t)<=n&&n<=this.endOf(t)},e.equals=function(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)},e.toRelative=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var t=e.base||T.fromObject({zone:this.zone}),n=e.padding?thisthis.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return ee(this.year)}},{key:"daysInMonth",get:function(){return ne(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?te(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?ie(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return p}},{key:"DATE_MED",get:function(){return w}},{key:"DATE_FULL",get:function(){return k}},{key:"DATE_HUGE",get:function(){return b}},{key:"TIME_SIMPLE",get:function(){return O}},{key:"TIME_WITH_SECONDS",get:function(){return S}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return M}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return D}},{key:"TIME_24_SIMPLE",get:function(){return E}},{key:"TIME_24_WITH_SECONDS",get:function(){return I}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return V}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return L}},{key:"DATETIME_SHORT",get:function(){return x}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return F}},{key:"DATETIME_MED",get:function(){return C}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return Z}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return j}},{key:"DATETIME_FULL",get:function(){return A}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return z}},{key:"DATETIME_HUGE",get:function(){return _}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return q}}]),T}();function ir(e){if(rr.isDateTime(e))return e;if(e&&e.valueOf&&U(e.valueOf()))return rr.fromJSDate(e);if(e&&"object"==typeof e)return rr.fromObject(e);throw new h("Unknown datetime argument: "+e+", of type "+typeof e)}return e.DateTime=rr,e.Duration=nn,e.FixedOffsetZone=qe,e.IANAZone=ze,e.Info=un,e.Interval=an,e.InvalidZone=He,e.LocalZone=Fe,e.Settings=$e,e.Zone=Le,e}({});