vue3-nepali-date-picker
Version:
A Nepali Date Picker for Vue 3
1,494 lines • 106 kB
JavaScript
import { ref as He, computed as we, watch as Xt, onMounted as fr, onUnmounted as cr, openBlock as V, createElementBlock as G, createElementVNode as E, toDisplayString as Ne, createCommentVNode as Jt, withModifiers as ct, withDirectives as Qt, Fragment as Ve, renderList as Ge, vModelSelect as Kt, normalizeClass as _r } from "vue";
//! moment.js
//! version : 2.30.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
var ls;
function d() {
return ls.apply(null, arguments);
}
function mr(e) {
ls = e;
}
function z(e) {
return e instanceof Array || Object.prototype.toString.call(e) === "[object Array]";
}
function me(e) {
return e != null && Object.prototype.toString.call(e) === "[object Object]";
}
function g(e, t) {
return Object.prototype.hasOwnProperty.call(e, t);
}
function Ot(e) {
if (Object.getOwnPropertyNames)
return Object.getOwnPropertyNames(e).length === 0;
var t;
for (t in e)
if (g(e, t))
return !1;
return !0;
}
function P(e) {
return e === void 0;
}
function ie(e) {
return typeof e == "number" || Object.prototype.toString.call(e) === "[object Number]";
}
function Ee(e) {
return e instanceof Date || Object.prototype.toString.call(e) === "[object Date]";
}
function us(e, t) {
var s = [], r, a = e.length;
for (r = 0; r < a; ++r)
s.push(t(e[r], r));
return s;
}
function ue(e, t) {
for (var s in t)
g(t, s) && (e[s] = t[s]);
return g(t, "toString") && (e.toString = t.toString), g(t, "valueOf") && (e.valueOf = t.valueOf), e;
}
function J(e, t, s, r) {
return Ws(e, t, s, r, !0).utc();
}
function yr() {
return {
empty: !1,
unusedTokens: [],
unusedInput: [],
overflow: -2,
charsLeftOver: 0,
nullInput: !1,
invalidEra: null,
invalidMonth: null,
invalidFormat: !1,
userInvalidated: !1,
iso: !1,
parsedDateParts: [],
era: null,
meridiem: null,
rfc2822: !1,
weekdayMismatch: !1
};
}
function m(e) {
return e._pf == null && (e._pf = yr()), e._pf;
}
var Dt;
Array.prototype.some ? Dt = Array.prototype.some : Dt = function(e) {
var t = Object(this), s = t.length >>> 0, r;
for (r = 0; r < s; r++)
if (r in t && e.call(this, t[r], r, t))
return !0;
return !1;
};
function Tt(e) {
var t = null, s = !1, r = e._d && !isNaN(e._d.getTime());
if (r && (t = m(e), s = Dt.call(t.parsedDateParts, function(a) {
return a != null;
}), r = t.overflow < 0 && !t.empty && !t.invalidEra && !t.invalidMonth && !t.invalidWeekday && !t.weekdayMismatch && !t.nullInput && !t.invalidFormat && !t.userInvalidated && (!t.meridiem || t.meridiem && s), e._strict && (r = r && t.charsLeftOver === 0 && t.unusedTokens.length === 0 && t.bigHour === void 0)), Object.isFrozen == null || !Object.isFrozen(e))
e._isValid = r;
else
return r;
return e._isValid;
}
function tt(e) {
var t = J(NaN);
return e != null ? ue(m(t), e) : m(t).userInvalidated = !0, t;
}
var es = d.momentProperties = [], _t = !1;
function Nt(e, t) {
var s, r, a, n = es.length;
if (P(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject), P(t._i) || (e._i = t._i), P(t._f) || (e._f = t._f), P(t._l) || (e._l = t._l), P(t._strict) || (e._strict = t._strict), P(t._tzm) || (e._tzm = t._tzm), P(t._isUTC) || (e._isUTC = t._isUTC), P(t._offset) || (e._offset = t._offset), P(t._pf) || (e._pf = m(t)), P(t._locale) || (e._locale = t._locale), n > 0)
for (s = 0; s < n; s++)
r = es[s], a = t[r], P(a) || (e[r] = a);
return e;
}
function Ce(e) {
Nt(this, e), this._d = new Date(e._d != null ? e._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), _t === !1 && (_t = !0, d.updateOffset(this), _t = !1);
}
function Z(e) {
return e instanceof Ce || e != null && e._isAMomentObject != null;
}
function ds(e) {
d.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + e);
}
function L(e, t) {
var s = !0;
return ue(function() {
if (d.deprecationHandler != null && d.deprecationHandler(null, e), s) {
var r = [], a, n, i, u = arguments.length;
for (n = 0; n < u; n++) {
if (a = "", typeof arguments[n] == "object") {
a += `
[` + n + "] ";
for (i in arguments[0])
g(arguments[0], i) && (a += i + ": " + arguments[0][i] + ", ");
a = a.slice(0, -2);
} else
a = arguments[n];
r.push(a);
}
ds(
e + `
Arguments: ` + Array.prototype.slice.call(r).join("") + `
` + new Error().stack
), s = !1;
}
return t.apply(this, arguments);
}, t);
}
var ts = {};
function hs(e, t) {
d.deprecationHandler != null && d.deprecationHandler(e, t), ts[e] || (ds(t), ts[e] = !0);
}
d.suppressDeprecationWarnings = !1;
d.deprecationHandler = null;
function Q(e) {
return typeof Function < "u" && e instanceof Function || Object.prototype.toString.call(e) === "[object Function]";
}
function wr(e) {
var t, s;
for (s in e)
g(e, s) && (t = e[s], Q(t) ? this[s] = t : this["_" + s] = t);
this._config = e, this._dayOfMonthOrdinalParseLenient = new RegExp(
(this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source
);
}
function gt(e, t) {
var s = ue({}, e), r;
for (r in t)
g(t, r) && (me(e[r]) && me(t[r]) ? (s[r] = {}, ue(s[r], e[r]), ue(s[r], t[r])) : t[r] != null ? s[r] = t[r] : delete s[r]);
for (r in e)
g(e, r) && !g(t, r) && me(e[r]) && (s[r] = ue({}, s[r]));
return s;
}
function bt(e) {
e != null && this.set(e);
}
var St;
Object.keys ? St = Object.keys : St = function(e) {
var t, s = [];
for (t in e)
g(e, t) && s.push(t);
return s;
};
var Dr = {
sameDay: "[Today at] LT",
nextDay: "[Tomorrow at] LT",
nextWeek: "dddd [at] LT",
lastDay: "[Yesterday at] LT",
lastWeek: "[Last] dddd [at] LT",
sameElse: "L"
};
function gr(e, t, s) {
var r = this._calendar[e] || this._calendar.sameElse;
return Q(r) ? r.call(t, s) : r;
}
function X(e, t, s) {
var r = "" + Math.abs(e), a = t - r.length, n = e >= 0;
return (n ? s ? "+" : "" : "-") + Math.pow(10, Math.max(0, a)).toString().substr(1) + r;
}
var xt = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, je = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, mt = {}, Me = {};
function c(e, t, s, r) {
var a = r;
typeof r == "string" && (a = function() {
return this[r]();
}), e && (Me[e] = a), t && (Me[t[0]] = function() {
return X(a.apply(this, arguments), t[1], t[2]);
}), s && (Me[s] = function() {
return this.localeData().ordinal(
a.apply(this, arguments),
e
);
});
}
function Sr(e) {
return e.match(/\[[\s\S]/) ? e.replace(/^\[|\]$/g, "") : e.replace(/\\/g, "");
}
function Mr(e) {
var t = e.match(xt), s, r;
for (s = 0, r = t.length; s < r; s++)
Me[t[s]] ? t[s] = Me[t[s]] : t[s] = Sr(t[s]);
return function(a) {
var n = "", i;
for (i = 0; i < r; i++)
n += Q(t[i]) ? t[i].call(a, e) : t[i];
return n;
};
}
function $e(e, t) {
return e.isValid() ? (t = fs(t, e.localeData()), mt[t] = mt[t] || Mr(t), mt[t](e)) : e.localeData().invalidDate();
}
function fs(e, t) {
var s = 5;
function r(a) {
return t.longDateFormat(a) || a;
}
for (je.lastIndex = 0; s >= 0 && je.test(e); )
e = e.replace(
je,
r
), je.lastIndex = 0, s -= 1;
return e;
}
var kr = {
LTS: "h:mm:ss A",
LT: "h:mm A",
L: "MM/DD/YYYY",
LL: "MMMM D, YYYY",
LLL: "MMMM D, YYYY h:mm A",
LLLL: "dddd, MMMM D, YYYY h:mm A"
};
function vr(e) {
var t = this._longDateFormat[e], s = this._longDateFormat[e.toUpperCase()];
return t || !s ? t : (this._longDateFormat[e] = s.match(xt).map(function(r) {
return r === "MMMM" || r === "MM" || r === "DD" || r === "dddd" ? r.slice(1) : r;
}).join(""), this._longDateFormat[e]);
}
var pr = "Invalid date";
function Yr() {
return this._invalidDate;
}
var Or = "%d", Tr = /\d{1,2}/;
function Nr(e) {
return this._ordinal.replace("%d", e);
}
var br = {
future: "in %s",
past: "%s ago",
s: "a few seconds",
ss: "%d seconds",
m: "a minute",
mm: "%d minutes",
h: "an hour",
hh: "%d hours",
d: "a day",
dd: "%d days",
w: "a week",
ww: "%d weeks",
M: "a month",
MM: "%d months",
y: "a year",
yy: "%d years"
};
function xr(e, t, s, r) {
var a = this._relativeTime[s];
return Q(a) ? a(e, t, s, r) : a.replace(/%d/i, e);
}
function Rr(e, t) {
var s = this._relativeTime[e > 0 ? "future" : "past"];
return Q(s) ? s(t) : s.replace(/%s/i, t);
}
var ss = {
D: "date",
dates: "date",
date: "date",
d: "day",
days: "day",
day: "day",
e: "weekday",
weekdays: "weekday",
weekday: "weekday",
E: "isoWeekday",
isoweekdays: "isoWeekday",
isoweekday: "isoWeekday",
DDD: "dayOfYear",
dayofyears: "dayOfYear",
dayofyear: "dayOfYear",
h: "hour",
hours: "hour",
hour: "hour",
ms: "millisecond",
milliseconds: "millisecond",
millisecond: "millisecond",
m: "minute",
minutes: "minute",
minute: "minute",
M: "month",
months: "month",
month: "month",
Q: "quarter",
quarters: "quarter",
quarter: "quarter",
s: "second",
seconds: "second",
second: "second",
gg: "weekYear",
weekyears: "weekYear",
weekyear: "weekYear",
GG: "isoWeekYear",
isoweekyears: "isoWeekYear",
isoweekyear: "isoWeekYear",
w: "week",
weeks: "week",
week: "week",
W: "isoWeek",
isoweeks: "isoWeek",
isoweek: "isoWeek",
y: "year",
years: "year",
year: "year"
};
function U(e) {
return typeof e == "string" ? ss[e] || ss[e.toLowerCase()] : void 0;
}
function Rt(e) {
var t = {}, s, r;
for (r in e)
g(e, r) && (s = U(r), s && (t[s] = e[r]));
return t;
}
var Wr = {
date: 9,
day: 11,
weekday: 11,
isoWeekday: 11,
dayOfYear: 4,
hour: 13,
millisecond: 16,
minute: 14,
month: 8,
quarter: 7,
second: 15,
weekYear: 1,
isoWeekYear: 1,
week: 5,
isoWeek: 5,
year: 1
};
function Ar(e) {
var t = [], s;
for (s in e)
g(e, s) && t.push({ unit: s, priority: Wr[s] });
return t.sort(function(r, a) {
return r.priority - a.priority;
}), t;
}
var cs = /\d/, I = /\d\d/, _s = /\d{3}/, Wt = /\d{4}/, st = /[+-]?\d{6}/, p = /\d\d?/, ms = /\d\d\d\d?/, ys = /\d\d\d\d\d\d?/, rt = /\d{1,3}/, At = /\d{1,4}/, at = /[+-]?\d{1,6}/, pe = /\d+/, nt = /[+-]?\d+/, Pr = /Z|[+-]\d\d:?\d\d/gi, it = /Z|[+-]\d\d(?::?\d\d)?/gi, Fr = /[+-]?\d+(\.\d{1,3})?/, Le = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, Ye = /^[1-9]\d?/, Pt = /^([1-9]\d|\d)/, Xe;
Xe = {};
function h(e, t, s) {
Xe[e] = Q(t) ? t : function(r, a) {
return r && s ? s : t;
};
}
function Ir(e, t) {
return g(Xe, e) ? Xe[e](t._strict, t._locale) : new RegExp(Er(e));
}
function Er(e) {
return ae(
e.replace("\\", "").replace(
/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
function(t, s, r, a, n) {
return s || r || a || n;
}
)
);
}
function ae(e) {
return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
}
function C(e) {
return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
}
function w(e) {
var t = +e, s = 0;
return t !== 0 && isFinite(t) && (s = C(t)), s;
}
var Mt = {};
function k(e, t) {
var s, r = t, a;
for (typeof e == "string" && (e = [e]), ie(t) && (r = function(n, i) {
i[t] = w(n);
}), a = e.length, s = 0; s < a; s++)
Mt[e[s]] = r;
}
function Ue(e, t) {
k(e, function(s, r, a, n) {
a._w = a._w || {}, t(s, a._w, a, n);
});
}
function Cr(e, t, s) {
t != null && g(Mt, e) && Mt[e](t, s._a, s, e);
}
function ot(e) {
return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0;
}
var A = 0, se = 1, q = 2, N = 3, j = 4, re = 5, _e = 6, Lr = 7, Ur = 8;
c("Y", 0, 0, function() {
var e = this.year();
return e <= 9999 ? X(e, 4) : "+" + e;
});
c(0, ["YY", 2], 0, function() {
return this.year() % 100;
});
c(0, ["YYYY", 4], 0, "year");
c(0, ["YYYYY", 5], 0, "year");
c(0, ["YYYYYY", 6, !0], 0, "year");
h("Y", nt);
h("YY", p, I);
h("YYYY", At, Wt);
h("YYYYY", at, st);
h("YYYYYY", at, st);
k(["YYYYY", "YYYYYY"], A);
k("YYYY", function(e, t) {
t[A] = e.length === 2 ? d.parseTwoDigitYear(e) : w(e);
});
k("YY", function(e, t) {
t[A] = d.parseTwoDigitYear(e);
});
k("Y", function(e, t) {
t[A] = parseInt(e, 10);
});
function We(e) {
return ot(e) ? 366 : 365;
}
d.parseTwoDigitYear = function(e) {
return w(e) + (w(e) > 68 ? 1900 : 2e3);
};
var ws = Oe("FullYear", !0);
function Hr() {
return ot(this.year());
}
function Oe(e, t) {
return function(s) {
return s != null ? (Ds(this, e, s), d.updateOffset(this, t), this) : Ae(this, e);
};
}
function Ae(e, t) {
if (!e.isValid())
return NaN;
var s = e._d, r = e._isUTC;
switch (t) {
case "Milliseconds":
return r ? s.getUTCMilliseconds() : s.getMilliseconds();
case "Seconds":
return r ? s.getUTCSeconds() : s.getSeconds();
case "Minutes":
return r ? s.getUTCMinutes() : s.getMinutes();
case "Hours":
return r ? s.getUTCHours() : s.getHours();
case "Date":
return r ? s.getUTCDate() : s.getDate();
case "Day":
return r ? s.getUTCDay() : s.getDay();
case "Month":
return r ? s.getUTCMonth() : s.getMonth();
case "FullYear":
return r ? s.getUTCFullYear() : s.getFullYear();
default:
return NaN;
}
}
function Ds(e, t, s) {
var r, a, n, i, u;
if (!(!e.isValid() || isNaN(s))) {
switch (r = e._d, a = e._isUTC, t) {
case "Milliseconds":
return void (a ? r.setUTCMilliseconds(s) : r.setMilliseconds(s));
case "Seconds":
return void (a ? r.setUTCSeconds(s) : r.setSeconds(s));
case "Minutes":
return void (a ? r.setUTCMinutes(s) : r.setMinutes(s));
case "Hours":
return void (a ? r.setUTCHours(s) : r.setHours(s));
case "Date":
return void (a ? r.setUTCDate(s) : r.setDate(s));
case "FullYear":
break;
default:
return;
}
n = s, i = e.month(), u = e.date(), u = u === 29 && i === 1 && !ot(n) ? 28 : u, a ? r.setUTCFullYear(n, i, u) : r.setFullYear(n, i, u);
}
}
function Vr(e) {
return e = U(e), Q(this[e]) ? this[e]() : this;
}
function Gr(e, t) {
if (typeof e == "object") {
e = Rt(e);
var s = Ar(e), r, a = s.length;
for (r = 0; r < a; r++)
this[s[r].unit](e[s[r].unit]);
} else if (e = U(e), Q(this[e]))
return this[e](t);
return this;
}
function jr(e, t) {
return (e % t + t) % t;
}
var O;
Array.prototype.indexOf ? O = Array.prototype.indexOf : O = function(e) {
var t;
for (t = 0; t < this.length; ++t)
if (this[t] === e)
return t;
return -1;
};
function Ft(e, t) {
if (isNaN(e) || isNaN(t))
return NaN;
var s = jr(t, 12);
return e += (t - s) / 12, s === 1 ? ot(e) ? 29 : 28 : 31 - s % 7 % 2;
}
c("M", ["MM", 2], "Mo", function() {
return this.month() + 1;
});
c("MMM", 0, 0, function(e) {
return this.localeData().monthsShort(this, e);
});
c("MMMM", 0, 0, function(e) {
return this.localeData().months(this, e);
});
h("M", p, Ye);
h("MM", p, I);
h("MMM", function(e, t) {
return t.monthsShortRegex(e);
});
h("MMMM", function(e, t) {
return t.monthsRegex(e);
});
k(["M", "MM"], function(e, t) {
t[se] = w(e) - 1;
});
k(["MMM", "MMMM"], function(e, t, s, r) {
var a = s._locale.monthsParse(e, r, s._strict);
a != null ? t[se] = a : m(s).invalidMonth = e;
});
var zr = "January_February_March_April_May_June_July_August_September_October_November_December".split(
"_"
), gs = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), Ss = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, Zr = Le, $r = Le;
function Br(e, t) {
return e ? z(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || Ss).test(t) ? "format" : "standalone"][e.month()] : z(this._months) ? this._months : this._months.standalone;
}
function qr(e, t) {
return e ? z(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[Ss.test(t) ? "format" : "standalone"][e.month()] : z(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
}
function Xr(e, t, s) {
var r, a, n, i = e.toLocaleLowerCase();
if (!this._monthsParse)
for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], r = 0; r < 12; ++r)
n = J([2e3, r]), this._shortMonthsParse[r] = this.monthsShort(
n,
""
).toLocaleLowerCase(), this._longMonthsParse[r] = this.months(n, "").toLocaleLowerCase();
return s ? t === "MMM" ? (a = O.call(this._shortMonthsParse, i), a !== -1 ? a : null) : (a = O.call(this._longMonthsParse, i), a !== -1 ? a : null) : t === "MMM" ? (a = O.call(this._shortMonthsParse, i), a !== -1 ? a : (a = O.call(this._longMonthsParse, i), a !== -1 ? a : null)) : (a = O.call(this._longMonthsParse, i), a !== -1 ? a : (a = O.call(this._shortMonthsParse, i), a !== -1 ? a : null));
}
function Jr(e, t, s) {
var r, a, n;
if (this._monthsParseExact)
return Xr.call(this, e, t, s);
for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), r = 0; r < 12; r++) {
if (a = J([2e3, r]), s && !this._longMonthsParse[r] && (this._longMonthsParse[r] = new RegExp(
"^" + this.months(a, "").replace(".", "") + "$",
"i"
), this._shortMonthsParse[r] = new RegExp(
"^" + this.monthsShort(a, "").replace(".", "") + "$",
"i"
)), !s && !this._monthsParse[r] && (n = "^" + this.months(a, "") + "|^" + this.monthsShort(a, ""), this._monthsParse[r] = new RegExp(n.replace(".", ""), "i")), s && t === "MMMM" && this._longMonthsParse[r].test(e))
return r;
if (s && t === "MMM" && this._shortMonthsParse[r].test(e))
return r;
if (!s && this._monthsParse[r].test(e))
return r;
}
}
function Ms(e, t) {
if (!e.isValid())
return e;
if (typeof t == "string") {
if (/^\d+$/.test(t))
t = w(t);
else if (t = e.localeData().monthsParse(t), !ie(t))
return e;
}
var s = t, r = e.date();
return r = r < 29 ? r : Math.min(r, Ft(e.year(), s)), e._isUTC ? e._d.setUTCMonth(s, r) : e._d.setMonth(s, r), e;
}
function ks(e) {
return e != null ? (Ms(this, e), d.updateOffset(this, !0), this) : Ae(this, "Month");
}
function Qr() {
return Ft(this.year(), this.month());
}
function Kr(e) {
return this._monthsParseExact ? (g(this, "_monthsRegex") || vs.call(this), e ? this._monthsShortStrictRegex : this._monthsShortRegex) : (g(this, "_monthsShortRegex") || (this._monthsShortRegex = Zr), this._monthsShortStrictRegex && e ? this._monthsShortStrictRegex : this._monthsShortRegex);
}
function ea(e) {
return this._monthsParseExact ? (g(this, "_monthsRegex") || vs.call(this), e ? this._monthsStrictRegex : this._monthsRegex) : (g(this, "_monthsRegex") || (this._monthsRegex = $r), this._monthsStrictRegex && e ? this._monthsStrictRegex : this._monthsRegex);
}
function vs() {
function e(f, y) {
return y.length - f.length;
}
var t = [], s = [], r = [], a, n, i, u;
for (a = 0; a < 12; a++)
n = J([2e3, a]), i = ae(this.monthsShort(n, "")), u = ae(this.months(n, "")), t.push(i), s.push(u), r.push(u), r.push(i);
t.sort(e), s.sort(e), r.sort(e), this._monthsRegex = new RegExp("^(" + r.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp(
"^(" + s.join("|") + ")",
"i"
), this._monthsShortStrictRegex = new RegExp(
"^(" + t.join("|") + ")",
"i"
);
}
function ta(e, t, s, r, a, n, i) {
var u;
return e < 100 && e >= 0 ? (u = new Date(e + 400, t, s, r, a, n, i), isFinite(u.getFullYear()) && u.setFullYear(e)) : u = new Date(e, t, s, r, a, n, i), u;
}
function Pe(e) {
var t, s;
return e < 100 && e >= 0 ? (s = Array.prototype.slice.call(arguments), s[0] = e + 400, t = new Date(Date.UTC.apply(null, s)), isFinite(t.getUTCFullYear()) && t.setUTCFullYear(e)) : t = new Date(Date.UTC.apply(null, arguments)), t;
}
function Je(e, t, s) {
var r = 7 + t - s, a = (7 + Pe(e, 0, r).getUTCDay() - t) % 7;
return -a + r - 1;
}
function ps(e, t, s, r, a) {
var n = (7 + s - r) % 7, i = Je(e, r, a), u = 1 + 7 * (t - 1) + n + i, f, y;
return u <= 0 ? (f = e - 1, y = We(f) + u) : u > We(e) ? (f = e + 1, y = u - We(e)) : (f = e, y = u), {
year: f,
dayOfYear: y
};
}
function Fe(e, t, s) {
var r = Je(e.year(), t, s), a = Math.floor((e.dayOfYear() - r - 1) / 7) + 1, n, i;
return a < 1 ? (i = e.year() - 1, n = a + ne(i, t, s)) : a > ne(e.year(), t, s) ? (n = a - ne(e.year(), t, s), i = e.year() + 1) : (i = e.year(), n = a), {
week: n,
year: i
};
}
function ne(e, t, s) {
var r = Je(e, t, s), a = Je(e + 1, t, s);
return (We(e) - r + a) / 7;
}
c("w", ["ww", 2], "wo", "week");
c("W", ["WW", 2], "Wo", "isoWeek");
h("w", p, Ye);
h("ww", p, I);
h("W", p, Ye);
h("WW", p, I);
Ue(
["w", "ww", "W", "WW"],
function(e, t, s, r) {
t[r.substr(0, 1)] = w(e);
}
);
function sa(e) {
return Fe(e, this._week.dow, this._week.doy).week;
}
var ra = {
dow: 0,
// Sunday is the first day of the week.
doy: 6
// The week that contains Jan 6th is the first week of the year.
};
function aa() {
return this._week.dow;
}
function na() {
return this._week.doy;
}
function ia(e) {
var t = this.localeData().week(this);
return e == null ? t : this.add((e - t) * 7, "d");
}
function oa(e) {
var t = Fe(this, 1, 4).week;
return e == null ? t : this.add((e - t) * 7, "d");
}
c("d", 0, "do", "day");
c("dd", 0, 0, function(e) {
return this.localeData().weekdaysMin(this, e);
});
c("ddd", 0, 0, function(e) {
return this.localeData().weekdaysShort(this, e);
});
c("dddd", 0, 0, function(e) {
return this.localeData().weekdays(this, e);
});
c("e", 0, 0, "weekday");
c("E", 0, 0, "isoWeekday");
h("d", p);
h("e", p);
h("E", p);
h("dd", function(e, t) {
return t.weekdaysMinRegex(e);
});
h("ddd", function(e, t) {
return t.weekdaysShortRegex(e);
});
h("dddd", function(e, t) {
return t.weekdaysRegex(e);
});
Ue(["dd", "ddd", "dddd"], function(e, t, s, r) {
var a = s._locale.weekdaysParse(e, r, s._strict);
a != null ? t.d = a : m(s).invalidWeekday = e;
});
Ue(["d", "e", "E"], function(e, t, s, r) {
t[r] = w(e);
});
function la(e, t) {
return typeof e != "string" ? e : isNaN(e) ? (e = t.weekdaysParse(e), typeof e == "number" ? e : null) : parseInt(e, 10);
}
function ua(e, t) {
return typeof e == "string" ? t.weekdaysParse(e) % 7 || 7 : isNaN(e) ? null : e;
}
function It(e, t) {
return e.slice(t, 7).concat(e.slice(0, t));
}
var da = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), Ys = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), ha = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), fa = Le, ca = Le, _a = Le;
function ma(e, t) {
var s = z(this._weekdays) ? this._weekdays : this._weekdays[e && e !== !0 && this._weekdays.isFormat.test(t) ? "format" : "standalone"];
return e === !0 ? It(s, this._week.dow) : e ? s[e.day()] : s;
}
function ya(e) {
return e === !0 ? It(this._weekdaysShort, this._week.dow) : e ? this._weekdaysShort[e.day()] : this._weekdaysShort;
}
function wa(e) {
return e === !0 ? It(this._weekdaysMin, this._week.dow) : e ? this._weekdaysMin[e.day()] : this._weekdaysMin;
}
function Da(e, t, s) {
var r, a, n, i = e.toLocaleLowerCase();
if (!this._weekdaysParse)
for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], r = 0; r < 7; ++r)
n = J([2e3, 1]).day(r), this._minWeekdaysParse[r] = this.weekdaysMin(
n,
""
).toLocaleLowerCase(), this._shortWeekdaysParse[r] = this.weekdaysShort(
n,
""
).toLocaleLowerCase(), this._weekdaysParse[r] = this.weekdays(n, "").toLocaleLowerCase();
return s ? t === "dddd" ? (a = O.call(this._weekdaysParse, i), a !== -1 ? a : null) : t === "ddd" ? (a = O.call(this._shortWeekdaysParse, i), a !== -1 ? a : null) : (a = O.call(this._minWeekdaysParse, i), a !== -1 ? a : null) : t === "dddd" ? (a = O.call(this._weekdaysParse, i), a !== -1 || (a = O.call(this._shortWeekdaysParse, i), a !== -1) ? a : (a = O.call(this._minWeekdaysParse, i), a !== -1 ? a : null)) : t === "ddd" ? (a = O.call(this._shortWeekdaysParse, i), a !== -1 || (a = O.call(this._weekdaysParse, i), a !== -1) ? a : (a = O.call(this._minWeekdaysParse, i), a !== -1 ? a : null)) : (a = O.call(this._minWeekdaysParse, i), a !== -1 || (a = O.call(this._weekdaysParse, i), a !== -1) ? a : (a = O.call(this._shortWeekdaysParse, i), a !== -1 ? a : null));
}
function ga(e, t, s) {
var r, a, n;
if (this._weekdaysParseExact)
return Da.call(this, e, t, s);
for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), r = 0; r < 7; r++) {
if (a = J([2e3, 1]).day(r), s && !this._fullWeekdaysParse[r] && (this._fullWeekdaysParse[r] = new RegExp(
"^" + this.weekdays(a, "").replace(".", "\\.?") + "$",
"i"
), this._shortWeekdaysParse[r] = new RegExp(
"^" + this.weekdaysShort(a, "").replace(".", "\\.?") + "$",
"i"
), this._minWeekdaysParse[r] = new RegExp(
"^" + this.weekdaysMin(a, "").replace(".", "\\.?") + "$",
"i"
)), this._weekdaysParse[r] || (n = "^" + this.weekdays(a, "") + "|^" + this.weekdaysShort(a, "") + "|^" + this.weekdaysMin(a, ""), this._weekdaysParse[r] = new RegExp(n.replace(".", ""), "i")), s && t === "dddd" && this._fullWeekdaysParse[r].test(e))
return r;
if (s && t === "ddd" && this._shortWeekdaysParse[r].test(e))
return r;
if (s && t === "dd" && this._minWeekdaysParse[r].test(e))
return r;
if (!s && this._weekdaysParse[r].test(e))
return r;
}
}
function Sa(e) {
if (!this.isValid())
return e != null ? this : NaN;
var t = Ae(this, "Day");
return e != null ? (e = la(e, this.localeData()), this.add(e - t, "d")) : t;
}
function Ma(e) {
if (!this.isValid())
return e != null ? this : NaN;
var t = (this.day() + 7 - this.localeData()._week.dow) % 7;
return e == null ? t : this.add(e - t, "d");
}
function ka(e) {
if (!this.isValid())
return e != null ? this : NaN;
if (e != null) {
var t = ua(e, this.localeData());
return this.day(this.day() % 7 ? t : t - 7);
} else
return this.day() || 7;
}
function va(e) {
return this._weekdaysParseExact ? (g(this, "_weekdaysRegex") || Et.call(this), e ? this._weekdaysStrictRegex : this._weekdaysRegex) : (g(this, "_weekdaysRegex") || (this._weekdaysRegex = fa), this._weekdaysStrictRegex && e ? this._weekdaysStrictRegex : this._weekdaysRegex);
}
function pa(e) {
return this._weekdaysParseExact ? (g(this, "_weekdaysRegex") || Et.call(this), e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : (g(this, "_weekdaysShortRegex") || (this._weekdaysShortRegex = ca), this._weekdaysShortStrictRegex && e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex);
}
function Ya(e) {
return this._weekdaysParseExact ? (g(this, "_weekdaysRegex") || Et.call(this), e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (g(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = _a), this._weekdaysMinStrictRegex && e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex);
}
function Et() {
function e(b, H) {
return H.length - b.length;
}
var t = [], s = [], r = [], a = [], n, i, u, f, y;
for (n = 0; n < 7; n++)
i = J([2e3, 1]).day(n), u = ae(this.weekdaysMin(i, "")), f = ae(this.weekdaysShort(i, "")), y = ae(this.weekdays(i, "")), t.push(u), s.push(f), r.push(y), a.push(u), a.push(f), a.push(y);
t.sort(e), s.sort(e), r.sort(e), a.sort(e), this._weekdaysRegex = new RegExp("^(" + a.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp(
"^(" + r.join("|") + ")",
"i"
), this._weekdaysShortStrictRegex = new RegExp(
"^(" + s.join("|") + ")",
"i"
), this._weekdaysMinStrictRegex = new RegExp(
"^(" + t.join("|") + ")",
"i"
);
}
function Ct() {
return this.hours() % 12 || 12;
}
function Oa() {
return this.hours() || 24;
}
c("H", ["HH", 2], 0, "hour");
c("h", ["hh", 2], 0, Ct);
c("k", ["kk", 2], 0, Oa);
c("hmm", 0, 0, function() {
return "" + Ct.apply(this) + X(this.minutes(), 2);
});
c("hmmss", 0, 0, function() {
return "" + Ct.apply(this) + X(this.minutes(), 2) + X(this.seconds(), 2);
});
c("Hmm", 0, 0, function() {
return "" + this.hours() + X(this.minutes(), 2);
});
c("Hmmss", 0, 0, function() {
return "" + this.hours() + X(this.minutes(), 2) + X(this.seconds(), 2);
});
function Os(e, t) {
c(e, 0, 0, function() {
return this.localeData().meridiem(
this.hours(),
this.minutes(),
t
);
});
}
Os("a", !0);
Os("A", !1);
function Ts(e, t) {
return t._meridiemParse;
}
h("a", Ts);
h("A", Ts);
h("H", p, Pt);
h("h", p, Ye);
h("k", p, Ye);
h("HH", p, I);
h("hh", p, I);
h("kk", p, I);
h("hmm", ms);
h("hmmss", ys);
h("Hmm", ms);
h("Hmmss", ys);
k(["H", "HH"], N);
k(["k", "kk"], function(e, t, s) {
var r = w(e);
t[N] = r === 24 ? 0 : r;
});
k(["a", "A"], function(e, t, s) {
s._isPm = s._locale.isPM(e), s._meridiem = e;
});
k(["h", "hh"], function(e, t, s) {
t[N] = w(e), m(s).bigHour = !0;
});
k("hmm", function(e, t, s) {
var r = e.length - 2;
t[N] = w(e.substr(0, r)), t[j] = w(e.substr(r)), m(s).bigHour = !0;
});
k("hmmss", function(e, t, s) {
var r = e.length - 4, a = e.length - 2;
t[N] = w(e.substr(0, r)), t[j] = w(e.substr(r, 2)), t[re] = w(e.substr(a)), m(s).bigHour = !0;
});
k("Hmm", function(e, t, s) {
var r = e.length - 2;
t[N] = w(e.substr(0, r)), t[j] = w(e.substr(r));
});
k("Hmmss", function(e, t, s) {
var r = e.length - 4, a = e.length - 2;
t[N] = w(e.substr(0, r)), t[j] = w(e.substr(r, 2)), t[re] = w(e.substr(a));
});
function Ta(e) {
return (e + "").toLowerCase().charAt(0) === "p";
}
var Na = /[ap]\.?m?\.?/i, ba = Oe("Hours", !0);
function xa(e, t, s) {
return e > 11 ? s ? "pm" : "PM" : s ? "am" : "AM";
}
var Ns = {
calendar: Dr,
longDateFormat: kr,
invalidDate: pr,
ordinal: Or,
dayOfMonthOrdinalParse: Tr,
relativeTime: br,
months: zr,
monthsShort: gs,
week: ra,
weekdays: da,
weekdaysMin: ha,
weekdaysShort: Ys,
meridiemParse: Na
}, Y = {}, be = {}, Ie;
function Ra(e, t) {
var s, r = Math.min(e.length, t.length);
for (s = 0; s < r; s += 1)
if (e[s] !== t[s])
return s;
return r;
}
function rs(e) {
return e && e.toLowerCase().replace("_", "-");
}
function Wa(e) {
for (var t = 0, s, r, a, n; t < e.length; ) {
for (n = rs(e[t]).split("-"), s = n.length, r = rs(e[t + 1]), r = r ? r.split("-") : null; s > 0; ) {
if (a = lt(n.slice(0, s).join("-")), a)
return a;
if (r && r.length >= s && Ra(n, r) >= s - 1)
break;
s--;
}
t++;
}
return Ie;
}
function Aa(e) {
return !!(e && e.match("^[^/\\\\]*$"));
}
function lt(e) {
var t = null, s;
if (Y[e] === void 0 && typeof module < "u" && module && module.exports && Aa(e))
try {
t = Ie._abbr, s = require, s("./locale/" + e), he(t);
} catch {
Y[e] = null;
}
return Y[e];
}
function he(e, t) {
var s;
return e && (P(t) ? s = oe(e) : s = Lt(e, t), s ? Ie = s : typeof console < "u" && console.warn && console.warn(
"Locale " + e + " not found. Did you forget to load it?"
)), Ie._abbr;
}
function Lt(e, t) {
if (t !== null) {
var s, r = Ns;
if (t.abbr = e, Y[e] != null)
hs(
"defineLocaleOverride",
"use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."
), r = Y[e]._config;
else if (t.parentLocale != null)
if (Y[t.parentLocale] != null)
r = Y[t.parentLocale]._config;
else if (s = lt(t.parentLocale), s != null)
r = s._config;
else
return be[t.parentLocale] || (be[t.parentLocale] = []), be[t.parentLocale].push({
name: e,
config: t
}), null;
return Y[e] = new bt(gt(r, t)), be[e] && be[e].forEach(function(a) {
Lt(a.name, a.config);
}), he(e), Y[e];
} else
return delete Y[e], null;
}
function Pa(e, t) {
if (t != null) {
var s, r, a = Ns;
Y[e] != null && Y[e].parentLocale != null ? Y[e].set(gt(Y[e]._config, t)) : (r = lt(e), r != null && (a = r._config), t = gt(a, t), r == null && (t.abbr = e), s = new bt(t), s.parentLocale = Y[e], Y[e] = s), he(e);
} else
Y[e] != null && (Y[e].parentLocale != null ? (Y[e] = Y[e].parentLocale, e === he() && he(e)) : Y[e] != null && delete Y[e]);
return Y[e];
}
function oe(e) {
var t;
if (e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e)
return Ie;
if (!z(e)) {
if (t = lt(e), t)
return t;
e = [e];
}
return Wa(e);
}
function Fa() {
return St(Y);
}
function Ut(e) {
var t, s = e._a;
return s && m(e).overflow === -2 && (t = s[se] < 0 || s[se] > 11 ? se : s[q] < 1 || s[q] > Ft(s[A], s[se]) ? q : s[N] < 0 || s[N] > 24 || s[N] === 24 && (s[j] !== 0 || s[re] !== 0 || s[_e] !== 0) ? N : s[j] < 0 || s[j] > 59 ? j : s[re] < 0 || s[re] > 59 ? re : s[_e] < 0 || s[_e] > 999 ? _e : -1, m(e)._overflowDayOfYear && (t < A || t > q) && (t = q), m(e)._overflowWeeks && t === -1 && (t = Lr), m(e)._overflowWeekday && t === -1 && (t = Ur), m(e).overflow = t), e;
}
var Ia = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, Ea = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, Ca = /Z|[+-]\d\d(?::?\d\d)?/, ze = [
["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
["YYYY-MM-DD", /\d{4}-\d\d-\d\d/],
["GGGG-[W]WW-E", /\d{4}-W\d\d-\d/],
["GGGG-[W]WW", /\d{4}-W\d\d/, !1],
["YYYY-DDD", /\d{4}-\d{3}/],
["YYYY-MM", /\d{4}-\d\d/, !1],
["YYYYYYMMDD", /[+-]\d{10}/],
["YYYYMMDD", /\d{8}/],
["GGGG[W]WWE", /\d{4}W\d{3}/],
["GGGG[W]WW", /\d{4}W\d{2}/, !1],
["YYYYDDD", /\d{7}/],
["YYYYMM", /\d{6}/, !1],
["YYYY", /\d{4}/, !1]
], yt = [
["HH:mm:ss.SSSS", /\d\d:\d\d:\d\d\.\d+/],
["HH:mm:ss,SSSS", /\d\d:\d\d:\d\d,\d+/],
["HH:mm:ss", /\d\d:\d\d:\d\d/],
["HH:mm", /\d\d:\d\d/],
["HHmmss.SSSS", /\d\d\d\d\d\d\.\d+/],
["HHmmss,SSSS", /\d\d\d\d\d\d,\d+/],
["HHmmss", /\d\d\d\d\d\d/],
["HHmm", /\d\d\d\d/],
["HH", /\d\d/]
], La = /^\/?Date\((-?\d+)/i, Ua = /^(?:(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{4}))$/, Ha = {
UT: 0,
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 bs(e) {
var t, s, r = e._i, a = Ia.exec(r) || Ea.exec(r), n, i, u, f, y = ze.length, b = yt.length;
if (a) {
for (m(e).iso = !0, t = 0, s = y; t < s; t++)
if (ze[t][1].exec(a[1])) {
i = ze[t][0], n = ze[t][2] !== !1;
break;
}
if (i == null) {
e._isValid = !1;
return;
}
if (a[3]) {
for (t = 0, s = b; t < s; t++)
if (yt[t][1].exec(a[3])) {
u = (a[2] || " ") + yt[t][0];
break;
}
if (u == null) {
e._isValid = !1;
return;
}
}
if (!n && u != null) {
e._isValid = !1;
return;
}
if (a[4])
if (Ca.exec(a[4]))
f = "Z";
else {
e._isValid = !1;
return;
}
e._f = i + (u || "") + (f || ""), Vt(e);
} else
e._isValid = !1;
}
function Va(e, t, s, r, a, n) {
var i = [
Ga(e),
gs.indexOf(t),
parseInt(s, 10),
parseInt(r, 10),
parseInt(a, 10)
];
return n && i.push(parseInt(n, 10)), i;
}
function Ga(e) {
var t = parseInt(e, 10);
return t <= 49 ? 2e3 + t : t <= 999 ? 1900 + t : t;
}
function ja(e) {
return e.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, "");
}
function za(e, t, s) {
if (e) {
var r = Ys.indexOf(e), a = new Date(
t[0],
t[1],
t[2]
).getDay();
if (r !== a)
return m(s).weekdayMismatch = !0, s._isValid = !1, !1;
}
return !0;
}
function Za(e, t, s) {
if (e)
return Ha[e];
if (t)
return 0;
var r = parseInt(s, 10), a = r % 100, n = (r - a) / 100;
return n * 60 + a;
}
function xs(e) {
var t = Ua.exec(ja(e._i)), s;
if (t) {
if (s = Va(
t[4],
t[3],
t[2],
t[5],
t[6],
t[7]
), !za(t[1], s, e))
return;
e._a = s, e._tzm = Za(t[8], t[9], t[10]), e._d = Pe.apply(null, e._a), e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), m(e).rfc2822 = !0;
} else
e._isValid = !1;
}
function $a(e) {
var t = La.exec(e._i);
if (t !== null) {
e._d = /* @__PURE__ */ new Date(+t[1]);
return;
}
if (bs(e), e._isValid === !1)
delete e._isValid;
else
return;
if (xs(e), e._isValid === !1)
delete e._isValid;
else
return;
e._strict ? e._isValid = !1 : d.createFromInputFallback(e);
}
d.createFromInputFallback = L(
"value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",
function(e) {
e._d = /* @__PURE__ */ new Date(e._i + (e._useUTC ? " UTC" : ""));
}
);
function ge(e, t, s) {
return e ?? t ?? s;
}
function Ba(e) {
var t = new Date(d.now());
return e._useUTC ? [
t.getUTCFullYear(),
t.getUTCMonth(),
t.getUTCDate()
] : [t.getFullYear(), t.getMonth(), t.getDate()];
}
function Ht(e) {
var t, s, r = [], a, n, i;
if (!e._d) {
for (a = Ba(e), e._w && e._a[q] == null && e._a[se] == null && qa(e), e._dayOfYear != null && (i = ge(e._a[A], a[A]), (e._dayOfYear > We(i) || e._dayOfYear === 0) && (m(e)._overflowDayOfYear = !0), s = Pe(i, 0, e._dayOfYear), e._a[se] = s.getUTCMonth(), e._a[q] = s.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
e._a[t] = r[t] = a[t];
for (; t < 7; t++)
e._a[t] = r[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
e._a[N] === 24 && e._a[j] === 0 && e._a[re] === 0 && e._a[_e] === 0 && (e._nextDay = !0, e._a[N] = 0), e._d = (e._useUTC ? Pe : ta).apply(
null,
r
), n = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), e._tzm != null && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[N] = 24), e._w && typeof e._w.d < "u" && e._w.d !== n && (m(e).weekdayMismatch = !0);
}
}
function qa(e) {
var t, s, r, a, n, i, u, f, y;
t = e._w, t.GG != null || t.W != null || t.E != null ? (n = 1, i = 4, s = ge(
t.GG,
e._a[A],
Fe(v(), 1, 4).year
), r = ge(t.W, 1), a = ge(t.E, 1), (a < 1 || a > 7) && (f = !0)) : (n = e._locale._week.dow, i = e._locale._week.doy, y = Fe(v(), n, i), s = ge(t.gg, e._a[A], y.year), r = ge(t.w, y.week), t.d != null ? (a = t.d, (a < 0 || a > 6) && (f = !0)) : t.e != null ? (a = t.e + n, (t.e < 0 || t.e > 6) && (f = !0)) : a = n), r < 1 || r > ne(s, n, i) ? m(e)._overflowWeeks = !0 : f != null ? m(e)._overflowWeekday = !0 : (u = ps(s, r, a, n, i), e._a[A] = u.year, e._dayOfYear = u.dayOfYear);
}
d.ISO_8601 = function() {
};
d.RFC_2822 = function() {
};
function Vt(e) {
if (e._f === d.ISO_8601) {
bs(e);
return;
}
if (e._f === d.RFC_2822) {
xs(e);
return;
}
e._a = [], m(e).empty = !0;
var t = "" + e._i, s, r, a, n, i, u = t.length, f = 0, y, b;
for (a = fs(e._f, e._locale).match(xt) || [], b = a.length, s = 0; s < b; s++)
n = a[s], r = (t.match(Ir(n, e)) || [])[0], r && (i = t.substr(0, t.indexOf(r)), i.length > 0 && m(e).unusedInput.push(i), t = t.slice(
t.indexOf(r) + r.length
), f += r.length), Me[n] ? (r ? m(e).empty = !1 : m(e).unusedTokens.push(n), Cr(n, r, e)) : e._strict && !r && m(e).unusedTokens.push(n);
m(e).charsLeftOver = u - f, t.length > 0 && m(e).unusedInput.push(t), e._a[N] <= 12 && m(e).bigHour === !0 && e._a[N] > 0 && (m(e).bigHour = void 0), m(e).parsedDateParts = e._a.slice(0), m(e).meridiem = e._meridiem, e._a[N] = Xa(
e._locale,
e._a[N],
e._meridiem
), y = m(e).era, y !== null && (e._a[A] = e._locale.erasConvertYear(y, e._a[A])), Ht(e), Ut(e);
}
function Xa(e, t, s) {
var r;
return s == null ? t : e.meridiemHour != null ? e.meridiemHour(t, s) : (e.isPM != null && (r = e.isPM(s), r && t < 12 && (t += 12), !r && t === 12 && (t = 0)), t);
}
function Ja(e) {
var t, s, r, a, n, i, u = !1, f = e._f.length;
if (f === 0) {
m(e).invalidFormat = !0, e._d = /* @__PURE__ */ new Date(NaN);
return;
}
for (a = 0; a < f; a++)
n = 0, i = !1, t = Nt({}, e), e._useUTC != null && (t._useUTC = e._useUTC), t._f = e._f[a], Vt(t), Tt(t) && (i = !0), n += m(t).charsLeftOver, n += m(t).unusedTokens.length * 10, m(t).score = n, u ? n < r && (r = n, s = t) : (r == null || n < r || i) && (r = n, s = t, i && (u = !0));
ue(e, s || t);
}
function Qa(e) {
if (!e._d) {
var t = Rt(e._i), s = t.day === void 0 ? t.date : t.day;
e._a = us(
[t.year, t.month, s, t.hour, t.minute, t.second, t.millisecond],
function(r) {
return r && parseInt(r, 10);
}
), Ht(e);
}
}
function Ka(e) {
var t = new Ce(Ut(Rs(e)));
return t._nextDay && (t.add(1, "d"), t._nextDay = void 0), t;
}
function Rs(e) {
var t = e._i, s = e._f;
return e._locale = e._locale || oe(e._l), t === null || s === void 0 && t === "" ? tt({ nullInput: !0 }) : (typeof t == "string" && (e._i = t = e._locale.preparse(t)), Z(t) ? new Ce(Ut(t)) : (Ee(t) ? e._d = t : z(s) ? Ja(e) : s ? Vt(e) : en(e), Tt(e) || (e._d = null), e));
}
function en(e) {
var t = e._i;
P(t) ? e._d = new Date(d.now()) : Ee(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? $a(e) : z(t) ? (e._a = us(t.slice(0), function(s) {
return parseInt(s, 10);
}), Ht(e)) : me(t) ? Qa(e) : ie(t) ? e._d = new Date(t) : d.createFromInputFallback(e);
}
function Ws(e, t, s, r, a) {
var n = {};
return (t === !0 || t === !1) && (r = t, t = void 0), (s === !0 || s === !1) && (r = s, s = void 0), (me(e) && Ot(e) || z(e) && e.length === 0) && (e = void 0), n._isAMomentObject = !0, n._useUTC = n._isUTC = a, n._l = s, n._i = e, n._f = t, n._strict = r, Ka(n);
}
function v(e, t, s, r) {
return Ws(e, t, s, r, !1);
}
var tn = L(
"moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
function() {
var e = v.apply(null, arguments);
return this.isValid() && e.isValid() ? e < this ? this : e : tt();
}
), sn = L(
"moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",
function() {
var e = v.apply(null, arguments);
return this.isValid() && e.isValid() ? e > this ? this : e : tt();
}
);
function As(e, t) {
var s, r;
if (t.length === 1 && z(t[0]) && (t = t[0]), !t.length)
return v();
for (s = t[0], r = 1; r < t.length; ++r)
(!t[r].isValid() || t[r][e](s)) && (s = t[r]);
return s;
}
function rn() {
var e = [].slice.call(arguments, 0);
return As("isBefore", e);
}
function an() {
var e = [].slice.call(arguments, 0);
return As("isAfter", e);
}
var nn = function() {
return Date.now ? Date.now() : +/* @__PURE__ */ new Date();
}, xe = [
"year",
"quarter",
"month",
"week",
"day",
"hour",
"minute",
"second",
"millisecond"
];
function on(e) {
var t, s = !1, r, a = xe.length;
for (t in e)
if (g(e, t) && !(O.call(xe, t) !== -1 && (e[t] == null || !isNaN(e[t]))))
return !1;
for (r = 0; r < a; ++r)
if (e[xe[r]]) {
if (s)
return !1;
parseFloat(e[xe[r]]) !== w(e[xe[r]]) && (s = !0);
}
return !0;
}
function ln() {
return this._isValid;
}
function un() {
return $(NaN);
}
function ut(e) {
var t = Rt(e), s = t.year || 0, r = t.quarter || 0, a = t.month || 0, n = t.week || t.isoWeek || 0, i = t.day || 0, u = t.hour || 0, f = t.minute || 0, y = t.second || 0, b = t.millisecond || 0;
this._isValid = on(t), this._milliseconds = +b + y * 1e3 + // 1000
f * 6e4 + // 1000 * 60
u * 1e3 * 60 * 60, this._days = +i + n * 7, this._months = +a + r * 3 + s * 12, this._data = {}, this._locale = oe(), this._bubble();
}
function Be(e) {
return e instanceof ut;
}
function kt(e) {
return e < 0 ? Math.round(-1 * e) * -1 : Math.round(e);
}
function dn(e, t, s) {
var r = Math.min(e.length, t.length), a = Math.abs(e.length - t.length), n = 0, i;
for (i = 0; i < r; i++)
(s && e[i] !== t[i] || !s && w(e[i]) !== w(t[i])) && n++;
return n + a;
}
function Ps(e, t) {
c(e, 0, 0, function() {
var s = this.utcOffset(), r = "+";
return s < 0 && (s = -s, r = "-"), r + X(~~(s / 60), 2) + t + X(~~s % 60, 2);
});
}
Ps("Z", ":");
Ps("ZZ", "");
h("Z", it);
h("ZZ", it);
k(["Z", "ZZ"], function(e, t, s) {
s._useUTC = !0, s._tzm = Gt(it, e);
});
var hn = /([\+\-]|\d\d)/gi;
function Gt(e, t) {
var s = (t || "").match(e), r, a, n;
return s === null ? null : (r = s[s.length - 1] || [], a = (r + "").match(hn) || ["-", 0, 0], n = +(a[1] * 60) + w(a[2]), n === 0 ? 0 : a[0] === "+" ? n : -n);
}
function jt(e, t) {
var s, r;
return t._isUTC ? (s = t.clone(), r = (Z(e) || Ee(e) ? e.valueOf() : v(e).valueOf()) - s.valueOf(), s._d.setTime(s._d.valueOf() + r), d.updateOffset(s, !1), s) : v(e).local();
}
function vt(e) {
return -Math.round(e._d.getTimezoneOffset());
}
d.updateOffset = function() {
};
function fn(e, t, s) {
var r = this._offset || 0, a;
if (!this.isValid())
return e != null ? this : NaN;
if (e != null) {
if (typeof e == "string") {
if (e = Gt(it, e), e === null)
return this;
} else
Math.abs(e) < 16 && !s && (e = e * 60);
return !this._isUTC && t && (a = vt(this)), this._offset = e, this._isUTC = !0, a != null && this.add(a, "m"), r !== e && (!t || this._changeInProgress ? Es(
this,
$(e - r, "m"),
1,
!1
) : this._changeInProgress || (this._changeInProgress = !0, d.updateOffset(this, !0), this._changeInProgress = null)), this;
} else
return this._isUTC ? r : vt(this);
}
function cn(e, t) {
return e != null ? (typeof e != "string" && (e = -e), this.utcOffset(e, t), this) : -this.utcOffset();
}
function _n(e) {
return this.utcOffset(0, e);
}
function mn(e) {
return this._isUTC && (this.utcOffset(0, e), this._isUTC = !1, e && this.subtract(vt(this), "m")), this;
}
function yn() {
if (this._tzm != null)
this.utcOffset(this._tzm, !1, !0);
else if (typeof this._i == "string") {
var e = Gt(Pr, this._i);
e != null ? this.utcOffset(e) : this.utcOffset(0, !0);
}
return this;
}
function wn(e) {
return this.isValid() ? (e = e ? v(e).utcOffset() : 0, (this.utcOffset() - e) % 60 === 0) : !1;
}
function Dn() {
return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();
}
function gn() {
if (!P(this._isDSTShifted))
return this._isDSTShifted;
var e = {}, t;
return Nt(e, this), e = Rs(e), e._a ? (t = e._isUTC ? J(e._a) : v(e._a), this._isDSTShifted = this.isValid() && dn(e._a, t.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
}
function Sn() {
return this.isValid() ? !this._isUTC : !1;
}
function Mn() {
return this.isValid() ? this._isUTC : !1;
}
function Fs() {
return this.isValid() ? this._isUTC && this._offset === 0 : !1;
}
var kn = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, vn = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
function $(e, t) {
var s = e, r = null, a, n, i;
return Be(e) ? s = {
ms: e._milliseconds,
d: e._days,
M: e._months
} : ie(e) || !isNaN(+e) ? (s = {}, t ? s[t] = +e : s.milliseconds = +e) : (r = kn.exec(e)) ? (a = r[1] === "-" ? -1 : 1, s = {
y: 0,
d: w(r[q]) * a,
h: w(r[N]) * a,
m: w(r[j]) * a,
s: w(r[re]) * a,
ms: w(kt(r[_e] * 1e3)) * a
// the millisecond decimal point is included in the match
}) : (r = vn.exec(e)) ? (a = r[1] === "-" ? -1 : 1, s = {
y: ce(r[2], a),
M: ce(r[3], a),
w: ce(r[4], a),
d: ce(r[5], a),
h: ce(r[6], a),
m: ce(r[7], a),
s: ce(r[8], a)
}) : s == null ? s = {} : typeof s == "object" && ("from" in s || "to" in s) && (i = pn(
v(s.from),
v(s.to)
), s = {}, s.ms = i.milliseconds, s.M = i.months), n = new ut(s), Be(e) && g(e, "_locale") && (n._locale = e._locale), Be(e) && g(e, "_isValid") && (n._isValid = e._isValid), n;
}
$.fn = ut.prototype;
$.invalid = un;
function ce(e, t) {
var s = e && parseFloat(e.replace(",", "."));
return (isNaN(s) ? 0 : s) * t;
}
function as(e, t) {
var s = {};
return s.months = t.month() - e.month() + (t.year() - e.year()) * 12, e.clone().add(s.months, "M").isAfter(t) && --s.months, s.milliseconds = +t - +e.clone().add(s.months, "M"), s;
}
function pn(e, t) {
var s;
return e.isValid() && t.isValid() ? (t = jt(t, e), e.isBefore(t) ? s = as(e, t) : (s = as(t, e), s.milliseconds = -s.milliseconds, s.months = -s.months), s) : { milliseconds: 0, months: 0 };
}
function Is(e, t) {
return function(s, r) {
var a, n;
return r !== null && !isNaN(+r) && (hs(
t,
"moment()." + t + "(period, number) is deprecated. Please use moment()." + t + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
), n = s, s = r, r = n), a = $(s, r), Es(this, a, e), this;
};
}
function Es(e, t, s, r) {
var a = t._milliseconds, n = kt(t.