UNPKG

reactjs-datetime-range-picker

Version:

ReactJS datetime range picker with daily, weekly, monthly, quarterly & yearly levels

1,529 lines 137 kB
import './style.css'; import hn, { useRef as Ma, useState as Qe, useEffect as vr } from "react"; var ga = { exports: {} }, wt = {}; /** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var pr; function mn() { if (pr) return wt; pr = 1; var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment"); function a(r, s, n) { var i = null; if (n !== void 0 && (i = "" + n), s.key !== void 0 && (i = "" + s.key), "key" in s) { n = {}; for (var o in s) o !== "key" && (n[o] = s[o]); } else n = s; return s = n.ref, { $$typeof: e, type: r, key: i, ref: s !== void 0 ? s : null, props: n }; } return wt.Fragment = t, wt.jsx = a, wt.jsxs = a, wt; } var Tt = {}; /** * @license React * react-jsx-runtime.development.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var wr; function yn() { return wr || (wr = 1, process.env.NODE_ENV !== "production" && function() { function e(c) { if (c == null) return null; if (typeof c == "function") return c.$$typeof === He ? null : c.displayName || c.name || null; if (typeof c == "string") return c; switch (c) { case W: return "Fragment"; case ee: return "Profiler"; case V: return "StrictMode"; case ne: return "Suspense"; case B: return "SuspenseList"; case Fe: return "Activity"; } if (typeof c == "object") switch (typeof c.tag == "number" && console.error( "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." ), c.$$typeof) { case k: return "Portal"; case Q: return (c.displayName || "Context") + ".Provider"; case te: return (c._context.displayName || "Context") + ".Consumer"; case ae: var g = c.render; return c = c.displayName, c || (c = g.displayName || g.name || "", c = c !== "" ? "ForwardRef(" + c + ")" : "ForwardRef"), c; case X: return g = c.displayName || null, g !== null ? g : e(c.type) || "Memo"; case re: g = c._payload, c = c._init; try { return e(c(g)); } catch { } } return null; } function t(c) { return "" + c; } function a(c) { try { t(c); var g = !1; } catch { g = !0; } if (g) { g = console; var A = g.error, Z = typeof Symbol == "function" && Symbol.toStringTag && c[Symbol.toStringTag] || c.constructor.name || "Object"; return A.call( g, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", Z ), t(c); } } function r(c) { if (c === W) return "<>"; if (typeof c == "object" && c !== null && c.$$typeof === re) return "<...>"; try { var g = e(c); return g ? "<" + g + ">" : "<...>"; } catch { return "<...>"; } } function s() { var c = Be.A; return c === null ? null : c.getOwner(); } function n() { return Error("react-stack-top-frame"); } function i(c) { if (ut.call(c, "key")) { var g = Object.getOwnPropertyDescriptor(c, "key").get; if (g && g.isReactWarning) return !1; } return c.key !== void 0; } function o(c, g) { function A() { dt || (dt = !0, console.error( "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", g )); } A.isReactWarning = !0, Object.defineProperty(c, "key", { get: A, configurable: !0 }); } function d() { var c = e(this.type); return ct[c] || (ct[c] = !0, console.error( "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release." )), c = this.props.ref, c !== void 0 ? c : null; } function h(c, g, A, Z, we, le, J, he) { return A = le.ref, c = { $$typeof: y, type: c, key: g, props: le, _owner: we }, (A !== void 0 ? A : null) !== null ? Object.defineProperty(c, "ref", { enumerable: !1, get: d }) : Object.defineProperty(c, "ref", { enumerable: !1, value: null }), c._store = {}, Object.defineProperty(c._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: 0 }), Object.defineProperty(c, "_debugInfo", { configurable: !1, enumerable: !1, writable: !0, value: null }), Object.defineProperty(c, "_debugStack", { configurable: !1, enumerable: !1, writable: !0, value: J }), Object.defineProperty(c, "_debugTask", { configurable: !1, enumerable: !1, writable: !0, value: he }), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c; } function m(c, g, A, Z, we, le, J, he) { var q = g.children; if (q !== void 0) if (Z) if (Ct(q)) { for (Z = 0; Z < q.length; Z++) D(q[Z]); Object.freeze && Object.freeze(q); } else console.error( "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead." ); else D(q); if (ut.call(g, "key")) { q = e(c); var Ae = Object.keys(g).filter(function(ma) { return ma !== "key"; }); Z = 0 < Ae.length ? "{key: someKey, " + Ae.join(": ..., ") + ": ...}" : "{key: someKey}", mt[q + Z] || (Ae = 0 < Ae.length ? "{" + Ae.join(": ..., ") + ": ...}" : "{}", console.error( `A props object containing a "key" prop is being spread into JSX: let props = %s; <%s {...props} /> React keys must be passed directly to JSX without using spread: let props = %s; <%s key={someKey} {...props} />`, Z, q, Ae, q ), mt[q + Z] = !0); } if (q = null, A !== void 0 && (a(A), q = "" + A), i(g) && (a(g.key), q = "" + g.key), "key" in g) { A = {}; for (var yt in g) yt !== "key" && (A[yt] = g[yt]); } else A = g; return q && o( A, typeof c == "function" ? c.displayName || c.name || "Unknown" : c ), h( c, q, le, we, s(), A, J, he ); } function D(c) { typeof c == "object" && c !== null && c.$$typeof === y && c._store && (c._store.validated = 1); } var v = hn, y = Symbol.for("react.transitional.element"), k = Symbol.for("react.portal"), W = Symbol.for("react.fragment"), V = Symbol.for("react.strict_mode"), ee = Symbol.for("react.profiler"), te = Symbol.for("react.consumer"), Q = Symbol.for("react.context"), ae = Symbol.for("react.forward_ref"), ne = Symbol.for("react.suspense"), B = Symbol.for("react.suspense_list"), X = Symbol.for("react.memo"), re = Symbol.for("react.lazy"), Fe = Symbol.for("react.activity"), He = Symbol.for("react.client.reference"), Be = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ut = Object.prototype.hasOwnProperty, Ct = Array.isArray, Je = console.createTask ? console.createTask : function() { return null; }; v = { "react-stack-bottom-frame": function(c) { return c(); } }; var dt, ct = {}, ft = v["react-stack-bottom-frame"].bind( v, n )(), ht = Je(r(n)), mt = {}; Tt.Fragment = W, Tt.jsx = function(c, g, A, Z, we) { var le = 1e4 > Be.recentlyCreatedOwnerStacks++; return m( c, g, A, !1, Z, we, le ? Error("react-stack-top-frame") : ft, le ? Je(r(c)) : ht ); }, Tt.jsxs = function(c, g, A, Z, we) { var le = 1e4 > Be.recentlyCreatedOwnerStacks++; return m( c, g, A, !0, Z, we, le ? Error("react-stack-top-frame") : ft, le ? Je(r(c)) : ht ); }; }()), Tt; } process.env.NODE_ENV === "production" ? ga.exports = mn() : ga.exports = yn(); var w = ga.exports; //! moment.js //! version : 2.30.1 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com var Pr; function l() { return Pr.apply(null, arguments); } function Dn(e) { Pr = e; } function De(e) { return e instanceof Array || Object.prototype.toString.call(e) === "[object Array]"; } function ze(e) { return e != null && Object.prototype.toString.call(e) === "[object Object]"; } function C(e, t) { return Object.prototype.hasOwnProperty.call(e, t); } function Ia(e) { if (Object.getOwnPropertyNames) return Object.getOwnPropertyNames(e).length === 0; var t; for (t in e) if (C(e, t)) return !1; return !0; } function se(e) { return e === void 0; } function Re(e) { return typeof e == "number" || Object.prototype.toString.call(e) === "[object Number]"; } function Nt(e) { return e instanceof Date || Object.prototype.toString.call(e) === "[object Date]"; } function Cr(e, t) { var a = [], r, s = e.length; for (r = 0; r < s; ++r) a.push(t(e[r], r)); return a; } function je(e, t) { for (var a in t) C(t, a) && (e[a] = t[a]); return C(t, "toString") && (e.toString = t.toString), C(t, "valueOf") && (e.valueOf = t.valueOf), e; } function ke(e, t, a, r) { return rs(e, t, a, r, !0).utc(); } function vn() { 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 Y(e) { return e._pf == null && (e._pf = vn()), e._pf; } var Ya; Array.prototype.some ? Ya = Array.prototype.some : Ya = function(e) { var t = Object(this), a = t.length >>> 0, r; for (r = 0; r < a; r++) if (r in t && e.call(this, t[r], r, t)) return !0; return !1; }; function ja(e) { var t = null, a = !1, r = e._d && !isNaN(e._d.getTime()); if (r && (t = Y(e), a = Ya.call(t.parsedDateParts, function(s) { return s != 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 && a), 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 ra(e) { var t = ke(NaN); return e != null ? je(Y(t), e) : Y(t).userInvalidated = !0, t; } var Tr = l.momentProperties = [], _a = !1; function La(e, t) { var a, r, s, n = Tr.length; if (se(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject), se(t._i) || (e._i = t._i), se(t._f) || (e._f = t._f), se(t._l) || (e._l = t._l), se(t._strict) || (e._strict = t._strict), se(t._tzm) || (e._tzm = t._tzm), se(t._isUTC) || (e._isUTC = t._isUTC), se(t._offset) || (e._offset = t._offset), se(t._pf) || (e._pf = Y(t)), se(t._locale) || (e._locale = t._locale), n > 0) for (a = 0; a < n; a++) r = Tr[a], s = t[r], se(s) || (e[r] = s); return e; } function Rt(e) { La(this, e), this._d = new Date(e._d != null ? e._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), _a === !1 && (_a = !0, l.updateOffset(this), _a = !1); } function ve(e) { return e instanceof Rt || e != null && e._isAMomentObject != null; } function Fr(e) { l.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + e); } function ce(e, t) { var a = !0; return je(function() { if (l.deprecationHandler != null && l.deprecationHandler(null, e), a) { var r = [], s, n, i, o = arguments.length; for (n = 0; n < o; n++) { if (s = "", typeof arguments[n] == "object") { s += ` [` + n + "] "; for (i in arguments[0]) C(arguments[0], i) && (s += i + ": " + arguments[0][i] + ", "); s = s.slice(0, -2); } else s = arguments[n]; r.push(s); } Fr( e + ` Arguments: ` + Array.prototype.slice.call(r).join("") + ` ` + new Error().stack ), a = !1; } return t.apply(this, arguments); }, t); } var _r = {}; function Ar(e, t) { l.deprecationHandler != null && l.deprecationHandler(e, t), _r[e] || (Fr(t), _r[e] = !0); } l.suppressDeprecationWarnings = !1; l.deprecationHandler = null; function Se(e) { return typeof Function < "u" && e instanceof Function || Object.prototype.toString.call(e) === "[object Function]"; } function pn(e) { var t, a; for (a in e) C(e, a) && (t = e[a], Se(t) ? this[a] = t : this["_" + a] = t); this._config = e, this._dayOfMonthOrdinalParseLenient = new RegExp( (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source ); } function ba(e, t) { var a = je({}, e), r; for (r in t) C(t, r) && (ze(e[r]) && ze(t[r]) ? (a[r] = {}, je(a[r], e[r]), je(a[r], t[r])) : t[r] != null ? a[r] = t[r] : delete a[r]); for (r in e) C(e, r) && !C(t, r) && ze(e[r]) && (a[r] = je({}, a[r])); return a; } function $a(e) { e != null && this.set(e); } var xa; Object.keys ? xa = Object.keys : xa = function(e) { var t, a = []; for (t in e) C(e, t) && a.push(t); return a; }; var wn = { sameDay: "[Today at] LT", nextDay: "[Tomorrow at] LT", nextWeek: "dddd [at] LT", lastDay: "[Yesterday at] LT", lastWeek: "[Last] dddd [at] LT", sameElse: "L" }; function Tn(e, t, a) { var r = this._calendar[e] || this._calendar.sameElse; return Se(r) ? r.call(t, a) : r; } function _e(e, t, a) { var r = "" + Math.abs(e), s = t - r.length, n = e >= 0; return (n ? a ? "+" : "" : "-") + Math.pow(10, Math.max(0, s)).toString().substr(1) + r; } var Ua = /(\[[^\[]*\])|(\\)?([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, jt = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, ka = {}, rt = {}; function O(e, t, a, r) { var s = r; typeof r == "string" && (s = function() { return this[r](); }), e && (rt[e] = s), t && (rt[t[0]] = function() { return _e(s.apply(this, arguments), t[1], t[2]); }), a && (rt[a] = function() { return this.localeData().ordinal( s.apply(this, arguments), e ); }); } function _n(e) { return e.match(/\[[\s\S]/) ? e.replace(/^\[|\]$/g, "") : e.replace(/\\/g, ""); } function kn(e) { var t = e.match(Ua), a, r; for (a = 0, r = t.length; a < r; a++) rt[t[a]] ? t[a] = rt[t[a]] : t[a] = _n(t[a]); return function(s) { var n = "", i; for (i = 0; i < r; i++) n += Se(t[i]) ? t[i].call(s, e) : t[i]; return n; }; } function Ht(e, t) { return e.isValid() ? (t = Wr(t, e.localeData()), ka[t] = ka[t] || kn(t), ka[t](e)) : e.localeData().invalidDate(); } function Wr(e, t) { var a = 5; function r(s) { return t.longDateFormat(s) || s; } for (jt.lastIndex = 0; a >= 0 && jt.test(e); ) e = e.replace( jt, r ), jt.lastIndex = 0, a -= 1; return e; } var Sn = { 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 On(e) { var t = this._longDateFormat[e], a = this._longDateFormat[e.toUpperCase()]; return t || !a ? t : (this._longDateFormat[e] = a.match(Ua).map(function(r) { return r === "MMMM" || r === "MM" || r === "DD" || r === "dddd" ? r.slice(1) : r; }).join(""), this._longDateFormat[e]); } var Mn = "Invalid date"; function gn() { return this._invalidDate; } var Yn = "%d", bn = /\d{1,2}/; function xn(e) { return this._ordinal.replace("%d", e); } var Nn = { 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 Rn(e, t, a, r) { var s = this._relativeTime[a]; return Se(s) ? s(e, t, a, r) : s.replace(/%d/i, e); } function En(e, t) { var a = this._relativeTime[e > 0 ? "future" : "past"]; return Se(a) ? a(t) : a.replace(/%s/i, t); } var kr = { 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 fe(e) { return typeof e == "string" ? kr[e] || kr[e.toLowerCase()] : void 0; } function Ha(e) { var t = {}, a, r; for (r in e) C(e, r) && (a = fe(r), a && (t[a] = e[r])); return t; } var Pn = { 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 Cn(e) { var t = [], a; for (a in e) C(e, a) && t.push({ unit: a, priority: Pn[a] }); return t.sort(function(r, s) { return r.priority - s.priority; }), t; } var Ir = /\d/, ie = /\d\d/, jr = /\d{3}/, Va = /\d{4}/, sa = /[+-]?\d{6}/, L = /\d\d?/, Lr = /\d\d\d\d?/, $r = /\d\d\d\d\d\d?/, na = /\d{1,3}/, Ga = /\d{1,4}/, ia = /[+-]?\d{1,6}/, it = /\d+/, la = /[+-]?\d+/, Fn = /Z|[+-]\d\d:?\d\d/gi, oa = /Z|[+-]\d\d(?::?\d\d)?/gi, An = /[+-]?\d+(\.\d{1,3})?/, Et = /[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, lt = /^[1-9]\d?/, za = /^([1-9]\d|\d)/, Bt; Bt = {}; function p(e, t, a) { Bt[e] = Se(t) ? t : function(r, s) { return r && a ? a : t; }; } function Wn(e, t) { return C(Bt, e) ? Bt[e](t._strict, t._locale) : new RegExp(In(e)); } function In(e) { return xe( e.replace("\\", "").replace( /\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function(t, a, r, s, n) { return a || r || s || n; } ) ); } function xe(e) { return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&"); } function oe(e) { return e < 0 ? Math.ceil(e) || 0 : Math.floor(e); } function R(e) { var t = +e, a = 0; return t !== 0 && isFinite(t) && (a = oe(t)), a; } var Na = {}; function I(e, t) { var a, r = t, s; for (typeof e == "string" && (e = [e]), Re(t) && (r = function(n, i) { i[t] = R(n); }), s = e.length, a = 0; a < s; a++) Na[e[a]] = r; } function Pt(e, t) { I(e, function(a, r, s, n) { s._w = s._w || {}, t(a, s._w, s, n); }); } function jn(e, t, a) { t != null && C(Na, e) && Na[e](t, a._a, a, e); } function ua(e) { return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0; } var K = 0, ge = 1, Te = 2, z = 3, ye = 4, Ye = 5, Ge = 6, Ln = 7, $n = 8; O("Y", 0, 0, function() { var e = this.year(); return e <= 9999 ? _e(e, 4) : "+" + e; }); O(0, ["YY", 2], 0, function() { return this.year() % 100; }); O(0, ["YYYY", 4], 0, "year"); O(0, ["YYYYY", 5], 0, "year"); O(0, ["YYYYYY", 6, !0], 0, "year"); p("Y", la); p("YY", L, ie); p("YYYY", Ga, Va); p("YYYYY", ia, sa); p("YYYYYY", ia, sa); I(["YYYYY", "YYYYYY"], K); I("YYYY", function(e, t) { t[K] = e.length === 2 ? l.parseTwoDigitYear(e) : R(e); }); I("YY", function(e, t) { t[K] = l.parseTwoDigitYear(e); }); I("Y", function(e, t) { t[K] = parseInt(e, 10); }); function Ot(e) { return ua(e) ? 366 : 365; } l.parseTwoDigitYear = function(e) { return R(e) + (R(e) > 68 ? 1900 : 2e3); }; var Ur = ot("FullYear", !0); function Un() { return ua(this.year()); } function ot(e, t) { return function(a) { return a != null ? (Hr(this, e, a), l.updateOffset(this, t), this) : Mt(this, e); }; } function Mt(e, t) { if (!e.isValid()) return NaN; var a = e._d, r = e._isUTC; switch (t) { case "Milliseconds": return r ? a.getUTCMilliseconds() : a.getMilliseconds(); case "Seconds": return r ? a.getUTCSeconds() : a.getSeconds(); case "Minutes": return r ? a.getUTCMinutes() : a.getMinutes(); case "Hours": return r ? a.getUTCHours() : a.getHours(); case "Date": return r ? a.getUTCDate() : a.getDate(); case "Day": return r ? a.getUTCDay() : a.getDay(); case "Month": return r ? a.getUTCMonth() : a.getMonth(); case "FullYear": return r ? a.getUTCFullYear() : a.getFullYear(); default: return NaN; } } function Hr(e, t, a) { var r, s, n, i, o; if (!(!e.isValid() || isNaN(a))) { switch (r = e._d, s = e._isUTC, t) { case "Milliseconds": return void (s ? r.setUTCMilliseconds(a) : r.setMilliseconds(a)); case "Seconds": return void (s ? r.setUTCSeconds(a) : r.setSeconds(a)); case "Minutes": return void (s ? r.setUTCMinutes(a) : r.setMinutes(a)); case "Hours": return void (s ? r.setUTCHours(a) : r.setHours(a)); case "Date": return void (s ? r.setUTCDate(a) : r.setDate(a)); case "FullYear": break; default: return; } n = a, i = e.month(), o = e.date(), o = o === 29 && i === 1 && !ua(n) ? 28 : o, s ? r.setUTCFullYear(n, i, o) : r.setFullYear(n, i, o); } } function Hn(e) { return e = fe(e), Se(this[e]) ? this[e]() : this; } function Vn(e, t) { if (typeof e == "object") { e = Ha(e); var a = Cn(e), r, s = a.length; for (r = 0; r < s; r++) this[a[r].unit](e[a[r].unit]); } else if (e = fe(e), Se(this[e])) return this[e](t); return this; } function Gn(e, t) { return (e % t + t) % t; } var H; Array.prototype.indexOf ? H = Array.prototype.indexOf : H = function(e) { var t; for (t = 0; t < this.length; ++t) if (this[t] === e) return t; return -1; }; function Za(e, t) { if (isNaN(e) || isNaN(t)) return NaN; var a = Gn(t, 12); return e += (t - a) / 12, a === 1 ? ua(e) ? 29 : 28 : 31 - a % 7 % 2; } O("M", ["MM", 2], "Mo", function() { return this.month() + 1; }); O("MMM", 0, 0, function(e) { return this.localeData().monthsShort(this, e); }); O("MMMM", 0, 0, function(e) { return this.localeData().months(this, e); }); p("M", L, lt); p("MM", L, ie); p("MMM", function(e, t) { return t.monthsShortRegex(e); }); p("MMMM", function(e, t) { return t.monthsRegex(e); }); I(["M", "MM"], function(e, t) { t[ge] = R(e) - 1; }); I(["MMM", "MMMM"], function(e, t, a, r) { var s = a._locale.monthsParse(e, r, a._strict); s != null ? t[ge] = s : Y(a).invalidMonth = e; }); var zn = "January_February_March_April_May_June_July_August_September_October_November_December".split( "_" ), Vr = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), Gr = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, Zn = Et, qn = Et; function Bn(e, t) { return e ? De(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || Gr).test(t) ? "format" : "standalone"][e.month()] : De(this._months) ? this._months : this._months.standalone; } function Jn(e, t) { return e ? De(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[Gr.test(t) ? "format" : "standalone"][e.month()] : De(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone; } function Qn(e, t, a) { var r, s, n, i = e.toLocaleLowerCase(); if (!this._monthsParse) for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], r = 0; r < 12; ++r) n = ke([2e3, r]), this._shortMonthsParse[r] = this.monthsShort( n, "" ).toLocaleLowerCase(), this._longMonthsParse[r] = this.months(n, "").toLocaleLowerCase(); return a ? t === "MMM" ? (s = H.call(this._shortMonthsParse, i), s !== -1 ? s : null) : (s = H.call(this._longMonthsParse, i), s !== -1 ? s : null) : t === "MMM" ? (s = H.call(this._shortMonthsParse, i), s !== -1 ? s : (s = H.call(this._longMonthsParse, i), s !== -1 ? s : null)) : (s = H.call(this._longMonthsParse, i), s !== -1 ? s : (s = H.call(this._shortMonthsParse, i), s !== -1 ? s : null)); } function Xn(e, t, a) { var r, s, n; if (this._monthsParseExact) return Qn.call(this, e, t, a); for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), r = 0; r < 12; r++) { if (s = ke([2e3, r]), a && !this._longMonthsParse[r] && (this._longMonthsParse[r] = new RegExp( "^" + this.months(s, "").replace(".", "") + "$", "i" ), this._shortMonthsParse[r] = new RegExp( "^" + this.monthsShort(s, "").replace(".", "") + "$", "i" )), !a && !this._monthsParse[r] && (n = "^" + this.months(s, "") + "|^" + this.monthsShort(s, ""), this._monthsParse[r] = new RegExp(n.replace(".", ""), "i")), a && t === "MMMM" && this._longMonthsParse[r].test(e)) return r; if (a && t === "MMM" && this._shortMonthsParse[r].test(e)) return r; if (!a && this._monthsParse[r].test(e)) return r; } } function zr(e, t) { if (!e.isValid()) return e; if (typeof t == "string") { if (/^\d+$/.test(t)) t = R(t); else if (t = e.localeData().monthsParse(t), !Re(t)) return e; } var a = t, r = e.date(); return r = r < 29 ? r : Math.min(r, Za(e.year(), a)), e._isUTC ? e._d.setUTCMonth(a, r) : e._d.setMonth(a, r), e; } function Zr(e) { return e != null ? (zr(this, e), l.updateOffset(this, !0), this) : Mt(this, "Month"); } function Kn() { return Za(this.year(), this.month()); } function ei(e) { return this._monthsParseExact ? (C(this, "_monthsRegex") || qr.call(this), e ? this._monthsShortStrictRegex : this._monthsShortRegex) : (C(this, "_monthsShortRegex") || (this._monthsShortRegex = Zn), this._monthsShortStrictRegex && e ? this._monthsShortStrictRegex : this._monthsShortRegex); } function ti(e) { return this._monthsParseExact ? (C(this, "_monthsRegex") || qr.call(this), e ? this._monthsStrictRegex : this._monthsRegex) : (C(this, "_monthsRegex") || (this._monthsRegex = qn), this._monthsStrictRegex && e ? this._monthsStrictRegex : this._monthsRegex); } function qr() { function e(d, h) { return h.length - d.length; } var t = [], a = [], r = [], s, n, i, o; for (s = 0; s < 12; s++) n = ke([2e3, s]), i = xe(this.monthsShort(n, "")), o = xe(this.months(n, "")), t.push(i), a.push(o), r.push(o), r.push(i); t.sort(e), a.sort(e), r.sort(e), this._monthsRegex = new RegExp("^(" + r.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp( "^(" + a.join("|") + ")", "i" ), this._monthsShortStrictRegex = new RegExp( "^(" + t.join("|") + ")", "i" ); } function ai(e, t, a, r, s, n, i) { var o; return e < 100 && e >= 0 ? (o = new Date(e + 400, t, a, r, s, n, i), isFinite(o.getFullYear()) && o.setFullYear(e)) : o = new Date(e, t, a, r, s, n, i), o; } function gt(e) { var t, a; return e < 100 && e >= 0 ? (a = Array.prototype.slice.call(arguments), a[0] = e + 400, t = new Date(Date.UTC.apply(null, a)), isFinite(t.getUTCFullYear()) && t.setUTCFullYear(e)) : t = new Date(Date.UTC.apply(null, arguments)), t; } function Jt(e, t, a) { var r = 7 + t - a, s = (7 + gt(e, 0, r).getUTCDay() - t) % 7; return -s + r - 1; } function Br(e, t, a, r, s) { var n = (7 + a - r) % 7, i = Jt(e, r, s), o = 1 + 7 * (t - 1) + n + i, d, h; return o <= 0 ? (d = e - 1, h = Ot(d) + o) : o > Ot(e) ? (d = e + 1, h = o - Ot(e)) : (d = e, h = o), { year: d, dayOfYear: h }; } function Yt(e, t, a) { var r = Jt(e.year(), t, a), s = Math.floor((e.dayOfYear() - r - 1) / 7) + 1, n, i; return s < 1 ? (i = e.year() - 1, n = s + Ne(i, t, a)) : s > Ne(e.year(), t, a) ? (n = s - Ne(e.year(), t, a), i = e.year() + 1) : (i = e.year(), n = s), { week: n, year: i }; } function Ne(e, t, a) { var r = Jt(e, t, a), s = Jt(e + 1, t, a); return (Ot(e) - r + s) / 7; } O("w", ["ww", 2], "wo", "week"); O("W", ["WW", 2], "Wo", "isoWeek"); p("w", L, lt); p("ww", L, ie); p("W", L, lt); p("WW", L, ie); Pt( ["w", "ww", "W", "WW"], function(e, t, a, r) { t[r.substr(0, 1)] = R(e); } ); function ri(e) { return Yt(e, this._week.dow, this._week.doy).week; } var si = { 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 ni() { return this._week.dow; } function ii() { return this._week.doy; } function li(e) { var t = this.localeData().week(this); return e == null ? t : this.add((e - t) * 7, "d"); } function oi(e) { var t = Yt(this, 1, 4).week; return e == null ? t : this.add((e - t) * 7, "d"); } O("d", 0, "do", "day"); O("dd", 0, 0, function(e) { return this.localeData().weekdaysMin(this, e); }); O("ddd", 0, 0, function(e) { return this.localeData().weekdaysShort(this, e); }); O("dddd", 0, 0, function(e) { return this.localeData().weekdays(this, e); }); O("e", 0, 0, "weekday"); O("E", 0, 0, "isoWeekday"); p("d", L); p("e", L); p("E", L); p("dd", function(e, t) { return t.weekdaysMinRegex(e); }); p("ddd", function(e, t) { return t.weekdaysShortRegex(e); }); p("dddd", function(e, t) { return t.weekdaysRegex(e); }); Pt(["dd", "ddd", "dddd"], function(e, t, a, r) { var s = a._locale.weekdaysParse(e, r, a._strict); s != null ? t.d = s : Y(a).invalidWeekday = e; }); Pt(["d", "e", "E"], function(e, t, a, r) { t[r] = R(e); }); function ui(e, t) { return typeof e != "string" ? e : isNaN(e) ? (e = t.weekdaysParse(e), typeof e == "number" ? e : null) : parseInt(e, 10); } function di(e, t) { return typeof e == "string" ? t.weekdaysParse(e) % 7 || 7 : isNaN(e) ? null : e; } function qa(e, t) { return e.slice(t, 7).concat(e.slice(0, t)); } var ci = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), Jr = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), fi = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), hi = Et, mi = Et, yi = Et; function Di(e, t) { var a = De(this._weekdays) ? this._weekdays : this._weekdays[e && e !== !0 && this._weekdays.isFormat.test(t) ? "format" : "standalone"]; return e === !0 ? qa(a, this._week.dow) : e ? a[e.day()] : a; } function vi(e) { return e === !0 ? qa(this._weekdaysShort, this._week.dow) : e ? this._weekdaysShort[e.day()] : this._weekdaysShort; } function pi(e) { return e === !0 ? qa(this._weekdaysMin, this._week.dow) : e ? this._weekdaysMin[e.day()] : this._weekdaysMin; } function wi(e, t, a) { var r, s, n, i = e.toLocaleLowerCase(); if (!this._weekdaysParse) for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], r = 0; r < 7; ++r) n = ke([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 a ? t === "dddd" ? (s = H.call(this._weekdaysParse, i), s !== -1 ? s : null) : t === "ddd" ? (s = H.call(this._shortWeekdaysParse, i), s !== -1 ? s : null) : (s = H.call(this._minWeekdaysParse, i), s !== -1 ? s : null) : t === "dddd" ? (s = H.call(this._weekdaysParse, i), s !== -1 || (s = H.call(this._shortWeekdaysParse, i), s !== -1) ? s : (s = H.call(this._minWeekdaysParse, i), s !== -1 ? s : null)) : t === "ddd" ? (s = H.call(this._shortWeekdaysParse, i), s !== -1 || (s = H.call(this._weekdaysParse, i), s !== -1) ? s : (s = H.call(this._minWeekdaysParse, i), s !== -1 ? s : null)) : (s = H.call(this._minWeekdaysParse, i), s !== -1 || (s = H.call(this._weekdaysParse, i), s !== -1) ? s : (s = H.call(this._shortWeekdaysParse, i), s !== -1 ? s : null)); } function Ti(e, t, a) { var r, s, n; if (this._weekdaysParseExact) return wi.call(this, e, t, a); for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), r = 0; r < 7; r++) { if (s = ke([2e3, 1]).day(r), a && !this._fullWeekdaysParse[r] && (this._fullWeekdaysParse[r] = new RegExp( "^" + this.weekdays(s, "").replace(".", "\\.?") + "$", "i" ), this._shortWeekdaysParse[r] = new RegExp( "^" + this.weekdaysShort(s, "").replace(".", "\\.?") + "$", "i" ), this._minWeekdaysParse[r] = new RegExp( "^" + this.weekdaysMin(s, "").replace(".", "\\.?") + "$", "i" )), this._weekdaysParse[r] || (n = "^" + this.weekdays(s, "") + "|^" + this.weekdaysShort(s, "") + "|^" + this.weekdaysMin(s, ""), this._weekdaysParse[r] = new RegExp(n.replace(".", ""), "i")), a && t === "dddd" && this._fullWeekdaysParse[r].test(e)) return r; if (a && t === "ddd" && this._shortWeekdaysParse[r].test(e)) return r; if (a && t === "dd" && this._minWeekdaysParse[r].test(e)) return r; if (!a && this._weekdaysParse[r].test(e)) return r; } } function _i(e) { if (!this.isValid()) return e != null ? this : NaN; var t = Mt(this, "Day"); return e != null ? (e = ui(e, this.localeData()), this.add(e - t, "d")) : t; } function ki(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 Si(e) { if (!this.isValid()) return e != null ? this : NaN; if (e != null) { var t = di(e, this.localeData()); return this.day(this.day() % 7 ? t : t - 7); } else return this.day() || 7; } function Oi(e) { return this._weekdaysParseExact ? (C(this, "_weekdaysRegex") || Ba.call(this), e ? this._weekdaysStrictRegex : this._weekdaysRegex) : (C(this, "_weekdaysRegex") || (this._weekdaysRegex = hi), this._weekdaysStrictRegex && e ? this._weekdaysStrictRegex : this._weekdaysRegex); } function Mi(e) { return this._weekdaysParseExact ? (C(this, "_weekdaysRegex") || Ba.call(this), e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : (C(this, "_weekdaysShortRegex") || (this._weekdaysShortRegex = mi), this._weekdaysShortStrictRegex && e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex); } function gi(e) { return this._weekdaysParseExact ? (C(this, "_weekdaysRegex") || Ba.call(this), e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (C(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = yi), this._weekdaysMinStrictRegex && e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex); } function Ba() { function e(m, D) { return D.length - m.length; } var t = [], a = [], r = [], s = [], n, i, o, d, h; for (n = 0; n < 7; n++) i = ke([2e3, 1]).day(n), o = xe(this.weekdaysMin(i, "")), d = xe(this.weekdaysShort(i, "")), h = xe(this.weekdays(i, "")), t.push(o), a.push(d), r.push(h), s.push(o), s.push(d), s.push(h); t.sort(e), a.sort(e), r.sort(e), s.sort(e), this._weekdaysRegex = new RegExp("^(" + s.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp( "^(" + r.join("|") + ")", "i" ), this._weekdaysShortStrictRegex = new RegExp( "^(" + a.join("|") + ")", "i" ), this._weekdaysMinStrictRegex = new RegExp( "^(" + t.join("|") + ")", "i" ); } function Ja() { return this.hours() % 12 || 12; } function Yi() { return this.hours() || 24; } O("H", ["HH", 2], 0, "hour"); O("h", ["hh", 2], 0, Ja); O("k", ["kk", 2], 0, Yi); O("hmm", 0, 0, function() { return "" + Ja.apply(this) + _e(this.minutes(), 2); }); O("hmmss", 0, 0, function() { return "" + Ja.apply(this) + _e(this.minutes(), 2) + _e(this.seconds(), 2); }); O("Hmm", 0, 0, function() { return "" + this.hours() + _e(this.minutes(), 2); }); O("Hmmss", 0, 0, function() { return "" + this.hours() + _e(this.minutes(), 2) + _e(this.seconds(), 2); }); function Qr(e, t) { O(e, 0, 0, function() { return this.localeData().meridiem( this.hours(), this.minutes(), t ); }); } Qr("a", !0); Qr("A", !1); function Xr(e, t) { return t._meridiemParse; } p("a", Xr); p("A", Xr); p("H", L, za); p("h", L, lt); p("k", L, lt); p("HH", L, ie); p("hh", L, ie); p("kk", L, ie); p("hmm", Lr); p("hmmss", $r); p("Hmm", Lr); p("Hmmss", $r); I(["H", "HH"], z); I(["k", "kk"], function(e, t, a) { var r = R(e); t[z] = r === 24 ? 0 : r; }); I(["a", "A"], function(e, t, a) { a._isPm = a._locale.isPM(e), a._meridiem = e; }); I(["h", "hh"], function(e, t, a) { t[z] = R(e), Y(a).bigHour = !0; }); I("hmm", function(e, t, a) { var r = e.length - 2; t[z] = R(e.substr(0, r)), t[ye] = R(e.substr(r)), Y(a).bigHour = !0; }); I("hmmss", function(e, t, a) { var r = e.length - 4, s = e.length - 2; t[z] = R(e.substr(0, r)), t[ye] = R(e.substr(r, 2)), t[Ye] = R(e.substr(s)), Y(a).bigHour = !0; }); I("Hmm", function(e, t, a) { var r = e.length - 2; t[z] = R(e.substr(0, r)), t[ye] = R(e.substr(r)); }); I("Hmmss", function(e, t, a) { var r = e.length - 4, s = e.length - 2; t[z] = R(e.substr(0, r)), t[ye] = R(e.substr(r, 2)), t[Ye] = R(e.substr(s)); }); function bi(e) { return (e + "").toLowerCase().charAt(0) === "p"; } var xi = /[ap]\.?m?\.?/i, Ni = ot("Hours", !0); function Ri(e, t, a) { return e > 11 ? a ? "pm" : "PM" : a ? "am" : "AM"; } var Kr = { calendar: wn, longDateFormat: Sn, invalidDate: Mn, ordinal: Yn, dayOfMonthOrdinalParse: bn, relativeTime: Nn, months: zn, monthsShort: Vr, week: si, weekdays: ci, weekdaysMin: fi, weekdaysShort: Jr, meridiemParse: xi }, $ = {}, _t = {}, bt; function Ei(e, t) { var a, r = Math.min(e.length, t.length); for (a = 0; a < r; a += 1) if (e[a] !== t[a]) return a; return r; } function Sr(e) { return e && e.toLowerCase().replace("_", "-"); } function Pi(e) { for (var t = 0, a, r, s, n; t < e.length; ) { for (n = Sr(e[t]).split("-"), a = n.length, r = Sr(e[t + 1]), r = r ? r.split("-") : null; a > 0; ) { if (s = da(n.slice(0, a).join("-")), s) return s; if (r && r.length >= a && Ei(n, r) >= a - 1) break; a--; } t++; } return bt; } function Ci(e) { return !!(e && e.match("^[^/\\\\]*$")); } function da(e) { var t = null, a; if ($[e] === void 0 && typeof module < "u" && module && module.exports && Ci(e)) try { t = bt._abbr, a = require, a("./locale/" + e), Ue(t); } catch { $[e] = null; } return $[e]; } function Ue(e, t) { var a; return e && (se(t) ? a = Ee(e) : a = Qa(e, t), a ? bt = a : typeof console < "u" && console.warn && console.warn( "Locale " + e + " not found. Did you forget to load it?" )), bt._abbr; } function Qa(e, t) { if (t !== null) { var a, r = Kr; if (t.abbr = e, $[e] != null) Ar( "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 = $[e]._config; else if (t.parentLocale != null) if ($[t.parentLocale] != null) r = $[t.parentLocale]._config; else if (a = da(t.parentLocale), a != null) r = a._config; else return _t[t.parentLocale] || (_t[t.parentLocale] = []), _t[t.parentLocale].push({ name: e, config: t }), null; return $[e] = new $a(ba(r, t)), _t[e] && _t[e].forEach(function(s) { Qa(s.name, s.config); }), Ue(e), $[e]; } else return delete $[e], null; } function Fi(e, t) { if (t != null) { var a, r, s = Kr; $[e] != null && $[e].parentLocale != null ? $[e].set(ba($[e]._config, t)) : (r = da(e), r != null && (s = r._config), t = ba(s, t), r == null && (t.abbr = e), a = new $a(t), a.parentLocale = $[e], $[e] = a), Ue(e); } else $[e] != null && ($[e].parentLocale != null ? ($[e] = $[e].parentLocale, e === Ue() && Ue(e)) : $[e] != null && delete $[e]); return $[e]; } function Ee(e) { var t; if (e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e) return bt; if (!De(e)) { if (t = da(e), t) return t; e = [e]; } return Pi(e); } function Ai() { return xa($); } function Xa(e) { var t, a = e._a; return a && Y(e).overflow === -2 && (t = a[ge] < 0 || a[ge] > 11 ? ge : a[Te] < 1 || a[Te] > Za(a[K], a[ge]) ? Te : a[z] < 0 || a[z] > 24 || a[z] === 24 && (a[ye] !== 0 || a[Ye] !== 0 || a[Ge] !== 0) ? z : a[ye] < 0 || a[ye] > 59 ? ye : a[Ye] < 0 || a[Ye] > 59 ? Ye : a[Ge] < 0 || a[Ge] > 999 ? Ge : -1, Y(e)._overflowDayOfYear && (t < K || t > Te) && (t = Te), Y(e)._overflowWeeks && t === -1 && (t = Ln), Y(e)._overflowWeekday && t === -1 && (t = $n), Y(e).overflow = t), e; } var Wi = /^\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)?)?$/, Ii = /^\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)?)?$/, ji = /Z|[+-]\d\d(?::?\d\d)?/, Lt = [ ["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] ], Sa = [ ["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/] ], Li = /^\/?Date\((-?\d+)/i, $i = /^(?:(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}))$/, Ui = { 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 es(e) { var t, a, r = e._i, s = Wi.exec(r) || Ii.exec(r), n, i, o, d, h = Lt.length, m = Sa.length; if (s) { for (Y(e).iso = !0, t = 0, a = h; t < a; t++) if (Lt[t][1].exec(s[1])) { i = Lt[t][0], n = Lt[t][2] !== !1; break; } if (i == null) { e._isValid = !1; return; } if (s[3]) { for (t = 0, a = m; t < a; t++) if (Sa[t][1].exec(s[3])) { o = (s[2] || " ") + Sa[t][0]; break; } if (o == null) { e._isValid = !1; return; } } if (!n && o != null) { e._isValid = !1; return; } if (s[4]) if (ji.exec(s[4])) d = "Z"; else { e._isValid = !1; return; } e._f = i + (o || "") + (d || ""), er(e); } else e._isValid = !1; } function Hi(e, t, a, r, s, n) { var i = [ Vi(e), Vr.indexOf(t), parseInt(a, 10), parseInt(r, 10), parseInt(s, 10) ]; return n && i.push(parseInt(n, 10)), i; } function Vi(e) { var t = parseInt(e, 10); return t <= 49 ? 2e3 + t : t <= 999 ? 1900 + t : t; } function Gi(e) { return e.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, ""); } function zi(e, t, a) { if (e) { var r = Jr.indexOf(e), s = new Date( t[0], t[1], t[2] ).getDay(); if (r !== s) return Y(a).weekdayMismatch = !0, a._isValid = !1, !1; } return !0; } function Zi(e, t, a) { if (e) return Ui[e]; if (t) return 0; var r = parseInt(a, 10), s = r % 100, n = (r - s) / 100; return n * 60 + s; } function ts(e) { var t = $i.exec(Gi(e._i)), a; if (t) { if (a = Hi( t[4], t[3], t[2], t[5], t[6], t[7] ), !zi(t[1], a, e)) return; e._a = a, e._tzm = Zi(t[8], t[9], t[10]), e._d = gt.apply(null, e._a), e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), Y(e).rfc2822 = !0; } else e._isValid = !1; } function qi(e) { var t = Li.exec(e._i); if (t !== null) { e._d = /* @__PURE__ */ new Date(+t[1]); return; } if (es(e), e._isValid === !1) delete e._isValid; else return; if (ts(e), e._isValid === !1) delete e._isValid; else return; e._strict ? e._isValid = !1 : l.createFromInputFallback(e); } l.createFromInputFallback = ce( "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 et(e, t, a) { return e ?? t ?? a; } function Bi(e) { var t = new Date(l.now()); return e._useUTC ? [ t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate() ] : [t.getFullYear(), t.getMonth(), t.getDate()]; } function Ka(e) { var t, a, r = [], s, n, i; if (!e._d) { for (s = Bi(e), e._w && e._a[Te] == null && e._a[ge] == null && Ji(e), e._dayOfYear != null && (i = et(e._a[K], s[K]), (e._dayOfYear > Ot(i) || e._dayOfYear === 0) && (Y(e)._overflowDayOfYear = !0), a = gt(i, 0, e._dayOfYear), e._a[ge] = a.getUTCMonth(), e._a[Te] = a.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t) e._a[t] = r[t] = s[t]; for (; t < 7; t++) e._a[t] = r[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t]; e._a[z] === 24 && e._a[ye] === 0 && e._a[Ye] === 0 && e._a[Ge] === 0 && (e._nextDay = !0, e._a[z] = 0), e._d = (e._useUTC ? gt : ai).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[z] = 24), e._w && typeof e._w.d < "u" && e._w.d !== n && (Y(e).weekdayMismatch = !0); } } function Ji(e) { var t, a, r, s, n, i, o, d, h; t = e._w, t.GG != null || t.W != null || t.E != null ? (n = 1, i = 4, a = et( t.GG, e._a[K], Yt(j(), 1, 4).year ), r = et(t.W, 1), s = et(t.E, 1), (s < 1 || s > 7) && (d = !0)) : (n = e._locale._week.dow, i = e._locale._week.doy, h = Yt(j(), n, i), a = et(t.gg, e._a[K], h.year), r = et(t.w, h.week), t.d != null ? (s = t.d, (s < 0 || s > 6) && (d = !0)) : t.e != null ? (s = t.e + n, (t.e < 0 || t.e > 6) && (d = !0)) : s = n), r < 1 || r > Ne(a, n, i) ? Y(e)._overflowWeeks = !0 : d != null ? Y(e)._overflowWeekday = !0 : (o = Br(a, r, s, n, i), e._a[K] = o.year, e._dayOfYear = o.dayOfYear); } l.ISO_8601 = function() { }; l.RFC_2822 = function() { }; function er(e) { if (e._f === l.ISO_8601) { es(e); return; } if (e._f === l.RFC_2822) { ts(e); return; } e._a = [], Y(e).empty = !0; var t = "" + e._i, a, r, s, n, i, o = t.length, d = 0, h, m; for (s = Wr(e._f, e._locale).match(Ua) || [], m = s.length, a = 0; a < m; a++) n = s[a], r = (t.match(Wn(n, e)) || [])[0], r && (i = t.substr(0, t.indexOf(r)), i.length > 0 && Y(e).unusedInput.push(i), t = t.slice( t.indexOf(r) + r.length ), d += r.length), rt[n] ? (r ? Y(e).empty = !1 : Y(e).unusedTokens.push(n), jn(n, r, e)) : e._strict && !r && Y(e).unusedTokens.push(n); Y(e).charsLeftOver = o - d, t.length > 0 && Y(e).unusedInput.push(t), e._a[z] <= 12 && Y(e).bigHour === !0 && e._a[z] > 0 && (Y(e).bigHour = void 0), Y(e).parsedDateParts = e._a.slice(0), Y(e).meridiem = e._meridiem, e._a[z] = Qi( e._locale, e._a[z], e._meridiem ), h = Y(e).era, h !== null && (e._a[K] = e._locale.erasConvertYear(h, e._a[K])), Ka(e), Xa(e); } function Qi(e, t, a) { var r; return a == null ? t : e.meridiemHour != null ? e.meridiemHour(t, a) : (e.isPM != null && (r = e.isPM(a), r && t < 12 && (t += 12), !r && t === 12 && (t = 0)), t); } function Xi(e) { var t, a, r, s, n, i, o = !1, d = e._f.length; if (d === 0) { Y(e).invalidFormat = !0, e._d = /* @__PURE__ */ new Date(NaN); return; } for (s = 0; s < d; s++) n = 0, i = !1, t = La({}, e), e._useUTC != null && (t._useUTC = e._useUTC), t._f = e._f[s