gs-calendar
Version:
1,486 lines (1,483 loc) • 296 kB
JavaScript
import * as k from "react";
import ht, { useMemo as Mt, useState as Ze, useCallback as _e, forwardRef as Pa, useContext as Va, useLayoutEffect as Jo, useRef as ct, createContext as zo, Component as jo, Fragment as Fr, useEffect as qn } from "react";
import { createPortal as Uo } from "react-dom";
var Pr = { exports: {} }, qt = {};
/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var ji;
function $o() {
return ji || (ji = 1, process.env.NODE_ENV !== "production" && function() {
var e = ht, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), u = Symbol.for("react.context"), o = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), C = Symbol.iterator, y = "@@iterator";
function g(d) {
if (d === null || typeof d != "object")
return null;
var A = C && d[C] || d[y];
return typeof A == "function" ? A : null;
}
var h = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function S(d) {
{
for (var A = arguments.length, G = new Array(A > 1 ? A - 1 : 0), W = 1; W < A; W++)
G[W - 1] = arguments[W];
E("error", d, G);
}
}
function E(d, A, G) {
{
var W = h.ReactDebugCurrentFrame, U = W.getStackAddendum();
U !== "" && (A += "%s", G = G.concat([U]));
var te = G.map(function(Z) {
return String(Z);
});
te.unshift("Warning: " + A), Function.prototype.apply.call(console[d], console, te);
}
}
var M = !1, I = !1, T = !1, R = !1, N = !1, B;
B = Symbol.for("react.module.reference");
function P(d) {
return !!(typeof d == "string" || typeof d == "function" || d === i || d === a || N || d === r || d === l || d === c || R || d === b || M || I || T || typeof d == "object" && d !== null && (d.$$typeof === v || d.$$typeof === f || d.$$typeof === s || d.$$typeof === u || d.$$typeof === o || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since
// we don't know which Flight build this will end up being used
// with.
d.$$typeof === B || d.getModuleId !== void 0));
}
function ae(d, A, G) {
var W = d.displayName;
if (W)
return W;
var U = A.displayName || A.name || "";
return U !== "" ? G + "(" + U + ")" : G;
}
function le(d) {
return d.displayName || "Context";
}
function ce(d) {
if (d == null)
return null;
if (typeof d.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof d == "function")
return d.displayName || d.name || null;
if (typeof d == "string")
return d;
switch (d) {
case i:
return "Fragment";
case n:
return "Portal";
case a:
return "Profiler";
case r:
return "StrictMode";
case l:
return "Suspense";
case c:
return "SuspenseList";
}
if (typeof d == "object")
switch (d.$$typeof) {
case u:
var A = d;
return le(A) + ".Consumer";
case s:
var G = d;
return le(G._context) + ".Provider";
case o:
return ae(d, d.render, "ForwardRef");
case f:
var W = d.displayName || null;
return W !== null ? W : ce(d.type) || "Memo";
case v: {
var U = d, te = U._payload, Z = U._init;
try {
return ce(Z(te));
} catch {
return null;
}
}
}
return null;
}
var be = Object.assign, ne = 0, se, Ge, Ie, Pe, Te, it, oe;
function ye() {
}
ye.__reactDisabledLog = !0;
function Ve() {
{
if (ne === 0) {
se = console.log, Ge = console.info, Ie = console.warn, Pe = console.error, Te = console.group, it = console.groupCollapsed, oe = console.groupEnd;
var d = {
configurable: !0,
enumerable: !0,
value: ye,
writable: !0
};
Object.defineProperties(console, {
info: d,
log: d,
warn: d,
error: d,
group: d,
groupCollapsed: d,
groupEnd: d
});
}
ne++;
}
}
function Be() {
{
if (ne--, ne === 0) {
var d = {
configurable: !0,
enumerable: !0,
writable: !0
};
Object.defineProperties(console, {
log: be({}, d, {
value: se
}),
info: be({}, d, {
value: Ge
}),
warn: be({}, d, {
value: Ie
}),
error: be({}, d, {
value: Pe
}),
group: be({}, d, {
value: Te
}),
groupCollapsed: be({}, d, {
value: it
}),
groupEnd: be({}, d, {
value: oe
})
});
}
ne < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
}
var Ce = h.ReactCurrentDispatcher, Oe;
function xe(d, A, G) {
{
if (Oe === void 0)
try {
throw Error();
} catch (U) {
var W = U.stack.trim().match(/\n( *(at )?)/);
Oe = W && W[1] || "";
}
return `
` + Oe + d;
}
}
var $e = !1, Ct;
{
var Ft = typeof WeakMap == "function" ? WeakMap : Map;
Ct = new Ft();
}
function O(d, A) {
if (!d || $e)
return "";
{
var G = Ct.get(d);
if (G !== void 0)
return G;
}
var W;
$e = !0;
var U = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var te;
te = Ce.current, Ce.current = null, Ve();
try {
if (A) {
var Z = function() {
throw Error();
};
if (Object.defineProperty(Z.prototype, "props", {
set: function() {
throw Error();
}
}), typeof Reflect == "object" && Reflect.construct) {
try {
Reflect.construct(Z, []);
} catch (ot) {
W = ot;
}
Reflect.construct(d, [], Z);
} else {
try {
Z.call();
} catch (ot) {
W = ot;
}
d.call(Z.prototype);
}
} else {
try {
throw Error();
} catch (ot) {
W = ot;
}
d();
}
} catch (ot) {
if (ot && W && typeof ot.stack == "string") {
for (var H = ot.stack.split(`
`), Me = W.stack.split(`
`), fe = H.length - 1, ge = Me.length - 1; fe >= 1 && ge >= 0 && H[fe] !== Me[ge]; )
ge--;
for (; fe >= 1 && ge >= 0; fe--, ge--)
if (H[fe] !== Me[ge]) {
if (fe !== 1 || ge !== 1)
do
if (fe--, ge--, ge < 0 || H[fe] !== Me[ge]) {
var We = `
` + H[fe].replace(" at new ", " at ");
return d.displayName && We.includes("<anonymous>") && (We = We.replace("<anonymous>", d.displayName)), typeof d == "function" && Ct.set(d, We), We;
}
while (fe >= 1 && ge >= 0);
break;
}
}
} finally {
$e = !1, Ce.current = te, Be(), Error.prepareStackTrace = U;
}
var Vt = d ? d.displayName || d.name : "", zi = Vt ? xe(Vt) : "";
return typeof d == "function" && Ct.set(d, zi), zi;
}
function Rt(d, A, G) {
return O(d, !1);
}
function at(d) {
var A = d.prototype;
return !!(A && A.isReactComponent);
}
function st(d, A, G) {
if (d == null)
return "";
if (typeof d == "function")
return O(d, at(d));
if (typeof d == "string")
return xe(d);
switch (d) {
case l:
return xe("Suspense");
case c:
return xe("SuspenseList");
}
if (typeof d == "object")
switch (d.$$typeof) {
case o:
return Rt(d.render);
case f:
return st(d.type, A, G);
case v: {
var W = d, U = W._payload, te = W._init;
try {
return st(te(U), A, G);
} catch {
}
}
}
return "";
}
var An = Object.prototype.hasOwnProperty, Pi = {}, Vi = h.ReactDebugCurrentFrame;
function Sn(d) {
if (d) {
var A = d._owner, G = st(d.type, d._source, A ? A.type : null);
Vi.setExtraStackFrame(G);
} else
Vi.setExtraStackFrame(null);
}
function wo(d, A, G, W, U) {
{
var te = Function.call.bind(An);
for (var Z in d)
if (te(d, Z)) {
var H = void 0;
try {
if (typeof d[Z] != "function") {
var Me = Error((W || "React class") + ": " + G + " type `" + Z + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof d[Z] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw Me.name = "Invariant Violation", Me;
}
H = d[Z](A, Z, W, G, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (fe) {
H = fe;
}
H && !(H instanceof Error) && (Sn(U), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", W || "React class", G, Z, typeof H), Sn(null)), H instanceof Error && !(H.message in Pi) && (Pi[H.message] = !0, Sn(U), S("Failed %s type: %s", G, H.message), Sn(null));
}
}
}
var Ro = Array.isArray;
function pr(d) {
return Ro(d);
}
function Go(d) {
{
var A = typeof Symbol == "function" && Symbol.toStringTag, G = A && d[Symbol.toStringTag] || d.constructor.name || "Object";
return G;
}
}
function Mo(d) {
try {
return Ni(d), !1;
} catch {
return !0;
}
}
function Ni(d) {
return "" + d;
}
function Yi(d) {
if (Mo(d))
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Go(d)), Ni(d);
}
var Kt = h.ReactCurrentOwner, _o = {
key: !0,
ref: !0,
__self: !0,
__source: !0
}, Bi, Wi, vr;
vr = {};
function To(d) {
if (An.call(d, "ref")) {
var A = Object.getOwnPropertyDescriptor(d, "ref").get;
if (A && A.isReactWarning)
return !1;
}
return d.ref !== void 0;
}
function Oo(d) {
if (An.call(d, "key")) {
var A = Object.getOwnPropertyDescriptor(d, "key").get;
if (A && A.isReactWarning)
return !1;
}
return d.key !== void 0;
}
function Do(d, A) {
if (typeof d.ref == "string" && Kt.current && A && Kt.current.stateNode !== A) {
var G = ce(Kt.current.type);
vr[G] || (S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', ce(Kt.current.type), d.ref), vr[G] = !0);
}
}
function Fo(d, A) {
{
var G = function() {
Bi || (Bi = !0, S("%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://reactjs.org/link/special-props)", A));
};
G.isReactWarning = !0, Object.defineProperty(d, "key", {
get: G,
configurable: !0
});
}
}
function Po(d, A) {
{
var G = function() {
Wi || (Wi = !0, S("%s: `ref` 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://reactjs.org/link/special-props)", A));
};
G.isReactWarning = !0, Object.defineProperty(d, "ref", {
get: G,
configurable: !0
});
}
}
var Vo = function(d, A, G, W, U, te, Z) {
var H = {
// This tag allows us to uniquely identify this as a React Element
$$typeof: t,
// Built-in properties that belong on the element
type: d,
key: A,
ref: G,
props: Z,
// Record the component responsible for creating this element.
_owner: te
};
return H._store = {}, Object.defineProperty(H._store, "validated", {
configurable: !1,
enumerable: !1,
writable: !0,
value: !1
}), Object.defineProperty(H, "_self", {
configurable: !1,
enumerable: !1,
writable: !1,
value: W
}), Object.defineProperty(H, "_source", {
configurable: !1,
enumerable: !1,
writable: !1,
value: U
}), Object.freeze && (Object.freeze(H.props), Object.freeze(H)), H;
};
function No(d, A, G, W, U) {
{
var te, Z = {}, H = null, Me = null;
G !== void 0 && (Yi(G), H = "" + G), Oo(A) && (Yi(A.key), H = "" + A.key), To(A) && (Me = A.ref, Do(A, U));
for (te in A)
An.call(A, te) && !_o.hasOwnProperty(te) && (Z[te] = A[te]);
if (d && d.defaultProps) {
var fe = d.defaultProps;
for (te in fe)
Z[te] === void 0 && (Z[te] = fe[te]);
}
if (H || Me) {
var ge = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
H && Fo(Z, ge), Me && Po(Z, ge);
}
return Vo(d, H, Me, U, W, Kt.current, Z);
}
}
var Ir = h.ReactCurrentOwner, ki = h.ReactDebugCurrentFrame;
function Pt(d) {
if (d) {
var A = d._owner, G = st(d.type, d._source, A ? A.type : null);
ki.setExtraStackFrame(G);
} else
ki.setExtraStackFrame(null);
}
var yr;
yr = !1;
function Cr(d) {
return typeof d == "object" && d !== null && d.$$typeof === t;
}
function Xi() {
{
if (Ir.current) {
var d = ce(Ir.current.type);
if (d)
return `
Check the render method of \`` + d + "`.";
}
return "";
}
}
function Yo(d) {
{
if (d !== void 0) {
var A = d.fileName.replace(/^.*[\\\/]/, ""), G = d.lineNumber;
return `
Check your code at ` + A + ":" + G + ".";
}
return "";
}
}
var Hi = {};
function Bo(d) {
{
var A = Xi();
if (!A) {
var G = typeof d == "string" ? d : d.displayName || d.name;
G && (A = `
Check the top-level render call using <` + G + ">.");
}
return A;
}
}
function Li(d, A) {
{
if (!d._store || d._store.validated || d.key != null)
return;
d._store.validated = !0;
var G = Bo(A);
if (Hi[G])
return;
Hi[G] = !0;
var W = "";
d && d._owner && d._owner !== Ir.current && (W = " It was passed a child from " + ce(d._owner.type) + "."), Pt(d), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', G, W), Pt(null);
}
}
function Zi(d, A) {
{
if (typeof d != "object")
return;
if (pr(d))
for (var G = 0; G < d.length; G++) {
var W = d[G];
Cr(W) && Li(W, A);
}
else if (Cr(d))
d._store && (d._store.validated = !0);
else if (d) {
var U = g(d);
if (typeof U == "function" && U !== d.entries)
for (var te = U.call(d), Z; !(Z = te.next()).done; )
Cr(Z.value) && Li(Z.value, A);
}
}
}
function Wo(d) {
{
var A = d.type;
if (A == null || typeof A == "string")
return;
var G;
if (typeof A == "function")
G = A.propTypes;
else if (typeof A == "object" && (A.$$typeof === o || // Note: Memo only checks outer props here.
// Inner props are checked in the reconciler.
A.$$typeof === f))
G = A.propTypes;
else
return;
if (G) {
var W = ce(A);
wo(G, d.props, "prop", W, d);
} else if (A.PropTypes !== void 0 && !yr) {
yr = !0;
var U = ce(A);
S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", U || "Unknown");
}
typeof A.getDefaultProps == "function" && !A.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}
}
function ko(d) {
{
for (var A = Object.keys(d.props), G = 0; G < A.length; G++) {
var W = A[G];
if (W !== "children" && W !== "key") {
Pt(d), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", W), Pt(null);
break;
}
}
d.ref !== null && (Pt(d), S("Invalid attribute `ref` supplied to `React.Fragment`."), Pt(null));
}
}
function Ji(d, A, G, W, U, te) {
{
var Z = P(d);
if (!Z) {
var H = "";
(d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (H += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
var Me = Yo(U);
Me ? H += Me : H += Xi();
var fe;
d === null ? fe = "null" : pr(d) ? fe = "array" : d !== void 0 && d.$$typeof === t ? (fe = "<" + (ce(d.type) || "Unknown") + " />", H = " Did you accidentally export a JSX literal instead of a component?") : fe = typeof d, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", fe, H);
}
var ge = No(d, A, G, U, te);
if (ge == null)
return ge;
if (Z) {
var We = A.children;
if (We !== void 0)
if (W)
if (pr(We)) {
for (var Vt = 0; Vt < We.length; Vt++)
Zi(We[Vt], d);
Object.freeze && Object.freeze(We);
} else
S("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
Zi(We, d);
}
return d === i ? ko(ge) : Wo(ge), ge;
}
}
function Xo(d, A, G) {
return Ji(d, A, G, !0);
}
function Ho(d, A, G) {
return Ji(d, A, G, !1);
}
var Lo = Ho, Zo = Xo;
qt.Fragment = i, qt.jsx = Lo, qt.jsxs = Zo;
}()), qt;
}
var en = {};
/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var Ui;
function Qo() {
if (Ui)
return en;
Ui = 1;
var e = ht, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
function s(u, o, l) {
var c, f = {}, v = null, b = null;
l !== void 0 && (v = "" + l), o.key !== void 0 && (v = "" + o.key), o.ref !== void 0 && (b = o.ref);
for (c in o)
i.call(o, c) && !a.hasOwnProperty(c) && (f[c] = o[c]);
if (u && u.defaultProps)
for (c in o = u.defaultProps, o)
f[c] === void 0 && (f[c] = o[c]);
return { $$typeof: t, type: u, key: v, ref: b, props: f, _owner: r.current };
}
return en.Fragment = n, en.jsx = s, en.jsxs = s, en;
}
process.env.NODE_ENV === "production" ? Pr.exports = Qo() : Pr.exports = $o();
var pe = Pr.exports;
//! moment.js
//! version : 2.30.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
var Na;
function w() {
return Na.apply(null, arguments);
}
function Ko(e) {
Na = e;
}
function ze(e) {
return e instanceof Array || Object.prototype.toString.call(e) === "[object Array]";
}
function Tt(e) {
return e != null && Object.prototype.toString.call(e) === "[object Object]";
}
function z(e, t) {
return Object.prototype.hasOwnProperty.call(e, t);
}
function ei(e) {
if (Object.getOwnPropertyNames)
return Object.getOwnPropertyNames(e).length === 0;
var t;
for (t in e)
if (z(e, t))
return !1;
return !0;
}
function De(e) {
return e === void 0;
}
function pt(e) {
return typeof e == "number" || Object.prototype.toString.call(e) === "[object Number]";
}
function pn(e) {
return e instanceof Date || Object.prototype.toString.call(e) === "[object Date]";
}
function Ya(e, t) {
var n = [], i, r = e.length;
for (i = 0; i < r; ++i)
n.push(t(e[i], i));
return n;
}
function At(e, t) {
for (var n in t)
z(t, n) && (e[n] = t[n]);
return z(t, "toString") && (e.toString = t.toString), z(t, "valueOf") && (e.valueOf = t.valueOf), e;
}
function nt(e, t, n, i) {
return os(e, t, n, i, !0).utc();
}
function qo() {
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 X(e) {
return e._pf == null && (e._pf = qo()), e._pf;
}
var Vr;
Array.prototype.some ? Vr = Array.prototype.some : Vr = function(e) {
var t = Object(this), n = t.length >>> 0, i;
for (i = 0; i < n; i++)
if (i in t && e.call(this, t[i], i, t))
return !0;
return !1;
};
function ti(e) {
var t = null, n = !1, i = e._d && !isNaN(e._d.getTime());
if (i && (t = X(e), n = Vr.call(t.parsedDateParts, function(r) {
return r != null;
}), i = t.overflow < 0 && !t.empty && !t.invalidEra && !t.invalidMonth && !t.invalidWeekday && !t.weekdayMismatch && !t.nullInput && !t.invalidFormat && !t.userInvalidated && (!t.meridiem || t.meridiem && n), e._strict && (i = i && t.charsLeftOver === 0 && t.unusedTokens.length === 0 && t.bigHour === void 0)), Object.isFrozen == null || !Object.isFrozen(e))
e._isValid = i;
else
return i;
return e._isValid;
}
function er(e) {
var t = nt(NaN);
return e != null ? At(X(t), e) : X(t).userInvalidated = !0, t;
}
var $i = w.momentProperties = [], Ar = !1;
function ni(e, t) {
var n, i, r, a = $i.length;
if (De(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject), De(t._i) || (e._i = t._i), De(t._f) || (e._f = t._f), De(t._l) || (e._l = t._l), De(t._strict) || (e._strict = t._strict), De(t._tzm) || (e._tzm = t._tzm), De(t._isUTC) || (e._isUTC = t._isUTC), De(t._offset) || (e._offset = t._offset), De(t._pf) || (e._pf = X(t)), De(t._locale) || (e._locale = t._locale), a > 0)
for (n = 0; n < a; n++)
i = $i[n], r = t[i], De(r) || (e[i] = r);
return e;
}
function vn(e) {
ni(this, e), this._d = new Date(e._d != null ? e._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), Ar === !1 && (Ar = !0, w.updateOffset(this), Ar = !1);
}
function je(e) {
return e instanceof vn || e != null && e._isAMomentObject != null;
}
function Ba(e) {
w.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + e);
}
function Xe(e, t) {
var n = !0;
return At(function() {
if (w.deprecationHandler != null && w.deprecationHandler(null, e), n) {
var i = [], r, a, s, u = arguments.length;
for (a = 0; a < u; a++) {
if (r = "", typeof arguments[a] == "object") {
r += `
[` + a + "] ";
for (s in arguments[0])
z(arguments[0], s) && (r += s + ": " + arguments[0][s] + ", ");
r = r.slice(0, -2);
} else
r = arguments[a];
i.push(r);
}
Ba(
e + `
Arguments: ` + Array.prototype.slice.call(i).join("") + `
` + new Error().stack
), n = !1;
}
return t.apply(this, arguments);
}, t);
}
var Qi = {};
function Wa(e, t) {
w.deprecationHandler != null && w.deprecationHandler(e, t), Qi[e] || (Ba(t), Qi[e] = !0);
}
w.suppressDeprecationWarnings = !1;
w.deprecationHandler = null;
function rt(e) {
return typeof Function < "u" && e instanceof Function || Object.prototype.toString.call(e) === "[object Function]";
}
function eu(e) {
var t, n;
for (n in e)
z(e, n) && (t = e[n], rt(t) ? this[n] = t : this["_" + n] = t);
this._config = e, this._dayOfMonthOrdinalParseLenient = new RegExp(
(this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source
);
}
function Nr(e, t) {
var n = At({}, e), i;
for (i in t)
z(t, i) && (Tt(e[i]) && Tt(t[i]) ? (n[i] = {}, At(n[i], e[i]), At(n[i], t[i])) : t[i] != null ? n[i] = t[i] : delete n[i]);
for (i in e)
z(e, i) && !z(t, i) && Tt(e[i]) && (n[i] = At({}, n[i]));
return n;
}
function ri(e) {
e != null && this.set(e);
}
var Yr;
Object.keys ? Yr = Object.keys : Yr = function(e) {
var t, n = [];
for (t in e)
z(e, t) && n.push(t);
return n;
};
var tu = {
sameDay: "[Today at] LT",
nextDay: "[Tomorrow at] LT",
nextWeek: "dddd [at] LT",
lastDay: "[Yesterday at] LT",
lastWeek: "[Last] dddd [at] LT",
sameElse: "L"
};
function nu(e, t, n) {
var i = this._calendar[e] || this._calendar.sameElse;
return rt(i) ? i.call(t, n) : i;
}
function tt(e, t, n) {
var i = "" + Math.abs(e), r = t - i.length, a = e >= 0;
return (a ? n ? "+" : "" : "-") + Math.pow(10, Math.max(0, r)).toString().substr(1) + i;
}
var ii = /(\[[^\[]*\])|(\\)?([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, xn = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, Sr = {}, Xt = {};
function F(e, t, n, i) {
var r = i;
typeof i == "string" && (r = function() {
return this[i]();
}), e && (Xt[e] = r), t && (Xt[t[0]] = function() {
return tt(r.apply(this, arguments), t[1], t[2]);
}), n && (Xt[n] = function() {
return this.localeData().ordinal(
r.apply(this, arguments),
e
);
});
}
function ru(e) {
return e.match(/\[[\s\S]/) ? e.replace(/^\[|\]$/g, "") : e.replace(/\\/g, "");
}
function iu(e) {
var t = e.match(ii), n, i;
for (n = 0, i = t.length; n < i; n++)
Xt[t[n]] ? t[n] = Xt[t[n]] : t[n] = ru(t[n]);
return function(r) {
var a = "", s;
for (s = 0; s < i; s++)
a += rt(t[s]) ? t[s].call(r, e) : t[s];
return a;
};
}
function Tn(e, t) {
return e.isValid() ? (t = ka(t, e.localeData()), Sr[t] = Sr[t] || iu(t), Sr[t](e)) : e.localeData().invalidDate();
}
function ka(e, t) {
var n = 5;
function i(r) {
return t.longDateFormat(r) || r;
}
for (xn.lastIndex = 0; n >= 0 && xn.test(e); )
e = e.replace(
xn,
i
), xn.lastIndex = 0, n -= 1;
return e;
}
var au = {
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 su(e) {
var t = this._longDateFormat[e], n = this._longDateFormat[e.toUpperCase()];
return t || !n ? t : (this._longDateFormat[e] = n.match(ii).map(function(i) {
return i === "MMMM" || i === "MM" || i === "DD" || i === "dddd" ? i.slice(1) : i;
}).join(""), this._longDateFormat[e]);
}
var ou = "Invalid date";
function uu() {
return this._invalidDate;
}
var lu = "%d", cu = /\d{1,2}/;
function du(e) {
return this._ordinal.replace("%d", e);
}
var fu = {
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 hu(e, t, n, i) {
var r = this._relativeTime[n];
return rt(r) ? r(e, t, n, i) : r.replace(/%d/i, e);
}
function gu(e, t) {
var n = this._relativeTime[e > 0 ? "future" : "past"];
return rt(n) ? n(t) : n.replace(/%s/i, t);
}
var Ki = {
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 He(e) {
return typeof e == "string" ? Ki[e] || Ki[e.toLowerCase()] : void 0;
}
function ai(e) {
var t = {}, n, i;
for (i in e)
z(e, i) && (n = He(i), n && (t[n] = e[i]));
return t;
}
var mu = {
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 bu(e) {
var t = [], n;
for (n in e)
z(e, n) && t.push({ unit: n, priority: mu[n] });
return t.sort(function(i, r) {
return i.priority - r.priority;
}), t;
}
var Xa = /\d/, Ye = /\d\d/, Ha = /\d{3}/, si = /\d{4}/, tr = /[+-]?\d{6}/, ie = /\d\d?/, La = /\d\d\d\d?/, Za = /\d\d\d\d\d\d?/, nr = /\d{1,3}/, oi = /\d{1,4}/, rr = /[+-]?\d{1,6}/, jt = /\d+/, ir = /[+-]?\d+/, pu = /Z|[+-]\d\d:?\d\d/gi, ar = /Z|[+-]\d\d(?::?\d\d)?/gi, vu = /[+-]?\d+(\.\d{1,3})?/, In = /[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, Ut = /^[1-9]\d?/, ui = /^([1-9]\d|\d)/, Yn;
Yn = {};
function _(e, t, n) {
Yn[e] = rt(t) ? t : function(i, r) {
return i && n ? n : t;
};
}
function Iu(e, t) {
return z(Yn, e) ? Yn[e](t._strict, t._locale) : new RegExp(yu(e));
}
function yu(e) {
return gt(
e.replace("\\", "").replace(
/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
function(t, n, i, r, a) {
return n || i || r || a;
}
)
);
}
function gt(e) {
return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
}
function ke(e) {
return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
}
function L(e) {
var t = +e, n = 0;
return t !== 0 && isFinite(t) && (n = ke(t)), n;
}
var Br = {};
function ee(e, t) {
var n, i = t, r;
for (typeof e == "string" && (e = [e]), pt(t) && (i = function(a, s) {
s[t] = L(a);
}), r = e.length, n = 0; n < r; n++)
Br[e[n]] = i;
}
function yn(e, t) {
ee(e, function(n, i, r, a) {
r._w = r._w || {}, t(n, r._w, r, a);
});
}
function Cu(e, t, n) {
t != null && z(Br, e) && Br[e](t, n._a, n, e);
}
function sr(e) {
return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0;
}
var Re = 0, dt = 1, qe = 2, ve = 3, Le = 4, ft = 5, _t = 6, Au = 7, Su = 8;
F("Y", 0, 0, function() {
var e = this.year();
return e <= 9999 ? tt(e, 4) : "+" + e;
});
F(0, ["YY", 2], 0, function() {
return this.year() % 100;
});
F(0, ["YYYY", 4], 0, "year");
F(0, ["YYYYY", 5], 0, "year");
F(0, ["YYYYYY", 6, !0], 0, "year");
_("Y", ir);
_("YY", ie, Ye);
_("YYYY", oi, si);
_("YYYYY", rr, tr);
_("YYYYYY", rr, tr);
ee(["YYYYY", "YYYYYY"], Re);
ee("YYYY", function(e, t) {
t[Re] = e.length === 2 ? w.parseTwoDigitYear(e) : L(e);
});
ee("YY", function(e, t) {
t[Re] = w.parseTwoDigitYear(e);
});
ee("Y", function(e, t) {
t[Re] = parseInt(e, 10);
});
function un(e) {
return sr(e) ? 366 : 365;
}
w.parseTwoDigitYear = function(e) {
return L(e) + (L(e) > 68 ? 1900 : 2e3);
};
var Ja = $t("FullYear", !0);
function xu() {
return sr(this.year());
}
function $t(e, t) {
return function(n) {
return n != null ? (za(this, e, n), w.updateOffset(this, t), this) : ln(this, e);
};
}
function ln(e, t) {
if (!e.isValid())
return NaN;
var n = e._d, i = e._isUTC;
switch (t) {
case "Milliseconds":
return i ? n.getUTCMilliseconds() : n.getMilliseconds();
case "Seconds":
return i ? n.getUTCSeconds() : n.getSeconds();
case "Minutes":
return i ? n.getUTCMinutes() : n.getMinutes();
case "Hours":
return i ? n.getUTCHours() : n.getHours();
case "Date":
return i ? n.getUTCDate() : n.getDate();
case "Day":
return i ? n.getUTCDay() : n.getDay();
case "Month":
return i ? n.getUTCMonth() : n.getMonth();
case "FullYear":
return i ? n.getUTCFullYear() : n.getFullYear();
default:
return NaN;
}
}
function za(e, t, n) {
var i, r, a, s, u;
if (!(!e.isValid() || isNaN(n))) {
switch (i = e._d, r = e._isUTC, t) {
case "Milliseconds":
return void (r ? i.setUTCMilliseconds(n) : i.setMilliseconds(n));
case "Seconds":
return void (r ? i.setUTCSeconds(n) : i.setSeconds(n));
case "Minutes":
return void (r ? i.setUTCMinutes(n) : i.setMinutes(n));
case "Hours":
return void (r ? i.setUTCHours(n) : i.setHours(n));
case "Date":
return void (r ? i.setUTCDate(n) : i.setDate(n));
case "FullYear":
break;
default:
return;
}
a = n, s = e.month(), u = e.date(), u = u === 29 && s === 1 && !sr(a) ? 28 : u, r ? i.setUTCFullYear(a, s, u) : i.setFullYear(a, s, u);
}
}
function Eu(e) {
return e = He(e), rt(this[e]) ? this[e]() : this;
}
function wu(e, t) {
if (typeof e == "object") {
e = ai(e);
var n = bu(e), i, r = n.length;
for (i = 0; i < r; i++)
this[n[i].unit](e[n[i].unit]);
} else if (e = He(e), rt(this[e]))
return this[e](t);
return this;
}
function Ru(e, t) {
return (e % t + t) % t;
}
var he;
Array.prototype.indexOf ? he = Array.prototype.indexOf : he = function(e) {
var t;
for (t = 0; t < this.length; ++t)
if (this[t] === e)
return t;
return -1;
};
function li(e, t) {
if (isNaN(e) || isNaN(t))
return NaN;
var n = Ru(t, 12);
return e += (t - n) / 12, n === 1 ? sr(e) ? 29 : 28 : 31 - n % 7 % 2;
}
F("M", ["MM", 2], "Mo", function() {
return this.month() + 1;
});
F("MMM", 0, 0, function(e) {
return this.localeData().monthsShort(this, e);
});
F("MMMM", 0, 0, function(e) {
return this.localeData().months(this, e);
});
_("M", ie, Ut);
_("MM", ie, Ye);
_("MMM", function(e, t) {
return t.monthsShortRegex(e);
});
_("MMMM", function(e, t) {
return t.monthsRegex(e);
});
ee(["M", "MM"], function(e, t) {
t[dt] = L(e) - 1;
});
ee(["MMM", "MMMM"], function(e, t, n, i) {
var r = n._locale.monthsParse(e, i, n._strict);
r != null ? t[dt] = r : X(n).invalidMonth = e;
});
var Gu = "January_February_March_April_May_June_July_August_September_October_November_December".split(
"_"
), ja = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), Ua = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, Mu = In, _u = In;
function Tu(e, t) {
return e ? ze(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || Ua).test(t) ? "format" : "standalone"][e.month()] : ze(this._months) ? this._months : this._months.standalone;
}
function Ou(e, t) {
return e ? ze(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[Ua.test(t) ? "format" : "standalone"][e.month()] : ze(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
}
function Du(e, t, n) {
var i, r, a, s = e.toLocaleLowerCase();
if (!this._monthsParse)
for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], i = 0; i < 12; ++i)
a = nt([2e3, i]), this._shortMonthsParse[i] = this.monthsShort(
a,
""
).toLocaleLowerCase(), this._longMonthsParse[i] = this.months(a, "").toLocaleLowerCase();
return n ? t === "MMM" ? (r = he.call(this._shortMonthsParse, s), r !== -1 ? r : null) : (r = he.call(this._longMonthsParse, s), r !== -1 ? r : null) : t === "MMM" ? (r = he.call(this._shortMonthsParse, s), r !== -1 ? r : (r = he.call(this._longMonthsParse, s), r !== -1 ? r : null)) : (r = he.call(this._longMonthsParse, s), r !== -1 ? r : (r = he.call(this._shortMonthsParse, s), r !== -1 ? r : null));
}
function Fu(e, t, n) {
var i, r, a;
if (this._monthsParseExact)
return Du.call(this, e, t, n);
for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), i = 0; i < 12; i++) {
if (r = nt([2e3, i]), n && !this._longMonthsParse[i] && (this._longMonthsParse[i] = new RegExp(
"^" + this.months(r, "").replace(".", "") + "$",
"i"
), this._shortMonthsParse[i] = new RegExp(
"^" + this.monthsShort(r, "").replace(".", "") + "$",
"i"
)), !n && !this._monthsParse[i] && (a = "^" + this.months(r, "") + "|^" + this.monthsShort(r, ""), this._monthsParse[i] = new RegExp(a.replace(".", ""), "i")), n && t === "MMMM" && this._longMonthsParse[i].test(e))
return i;
if (n && t === "MMM" && this._shortMonthsParse[i].test(e))
return i;
if (!n && this._monthsParse[i].test(e))
return i;
}
}
function $a(e, t) {
if (!e.isValid())
return e;
if (typeof t == "string") {
if (/^\d+$/.test(t))
t = L(t);
else if (t = e.localeData().monthsParse(t), !pt(t))
return e;
}
var n = t, i = e.date();
return i = i < 29 ? i : Math.min(i, li(e.year(), n)), e._isUTC ? e._d.setUTCMonth(n, i) : e._d.setMonth(n, i), e;
}
function Qa(e) {
return e != null ? ($a(this, e), w.updateOffset(this, !0), this) : ln(this, "Month");
}
function Pu() {
return li(this.year(), this.month());
}
function Vu(e) {
return this._monthsParseExact ? (z(this, "_monthsRegex") || Ka.call(this), e ? this._monthsShortStrictRegex : this._monthsShortRegex) : (z(this, "_monthsShortRegex") || (this._monthsShortRegex = Mu), this._monthsShortStrictRegex && e ? this._monthsShortStrictRegex : this._monthsShortRegex);
}
function Nu(e) {
return this._monthsParseExact ? (z(this, "_monthsRegex") || Ka.call(this), e ? this._monthsStrictRegex : this._monthsRegex) : (z(this, "_monthsRegex") || (this._monthsRegex = _u), this._monthsStrictRegex && e ? this._monthsStrictRegex : this._monthsRegex);
}
function Ka() {
function e(o, l) {
return l.length - o.length;
}
var t = [], n = [], i = [], r, a, s, u;
for (r = 0; r < 12; r++)
a = nt([2e3, r]), s = gt(this.monthsShort(a, "")), u = gt(this.months(a, "")), t.push(s), n.push(u), i.push(u), i.push(s);
t.sort(e), n.sort(e), i.sort(e), this._monthsRegex = new RegExp("^(" + i.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp(
"^(" + n.join("|") + ")",
"i"
), this._monthsShortStrictRegex = new RegExp(
"^(" + t.join("|") + ")",
"i"
);
}
function Yu(e, t, n, i, r, a, s) {
var u;
return e < 100 && e >= 0 ? (u = new Date(e + 400, t, n, i, r, a, s), isFinite(u.getFullYear()) && u.setFullYear(e)) : u = new Date(e, t, n, i, r, a, s), u;
}
function cn(e) {
var t, n;
return e < 100 && e >= 0 ? (n = Array.prototype.slice.call(arguments), n[0] = e + 400, t = new Date(Date.UTC.apply(null, n)), isFinite(t.getUTCFullYear()) && t.setUTCFullYear(e)) : t = new Date(Date.UTC.apply(null, arguments)), t;
}
function Bn(e, t, n) {
var i = 7 + t - n, r = (7 + cn(e, 0, i).getUTCDay() - t) % 7;
return -r + i - 1;
}
function qa(e, t, n, i, r) {
var a = (7 + n - i) % 7, s = Bn(e, i, r), u = 1 + 7 * (t - 1) + a + s, o, l;
return u <= 0 ? (o = e - 1, l = un(o) + u) : u > un(e) ? (o = e + 1, l = u - un(e)) : (o = e, l = u), {
year: o,
dayOfYear: l
};
}
function dn(e, t, n) {
var i = Bn(e.year(), t, n), r = Math.floor((e.dayOfYear() - i - 1) / 7) + 1, a, s;
return r < 1 ? (s = e.year() - 1, a = r + mt(s, t, n)) : r > mt(e.year(), t, n) ? (a = r - mt(e.year(), t, n), s = e.year() + 1) : (s = e.year(), a = r), {
week: a,
year: s
};
}
function mt(e, t, n) {
var i = Bn(e, t, n), r = Bn(e + 1, t, n);
return (un(e) - i + r) / 7;
}
F("w", ["ww", 2], "wo", "week");
F("W", ["WW", 2], "Wo", "isoWeek");
_("w", ie, Ut);
_("ww", ie, Ye);
_("W", ie, Ut);
_("WW", ie, Ye);
yn(
["w", "ww", "W", "WW"],
function(e, t, n, i) {
t[i.substr(0, 1)] = L(e);
}
);
function Bu(e) {
return dn(e, this._week.dow, this._week.doy).week;
}
var Wu = {
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 ku() {
return this._week.dow;
}
function Xu() {
return this._week.doy;
}
function Hu(e) {
var t = this.localeData().week(this);
return e == null ? t : this.add((e - t) * 7, "d");
}
function Lu(e) {
var t = dn(this, 1, 4).week;
return e == null ? t : this.add((e - t) * 7, "d");
}
F("d", 0, "do", "day");
F("dd", 0, 0, function(e) {
return this.localeData().weekdaysMin(this, e);
});
F("ddd", 0, 0, function(e) {
return this.localeData().weekdaysShort(this, e);
});
F("dddd", 0, 0, function(e) {
return this.localeData().weekdays(this, e);
});
F("e", 0, 0, "weekday");
F("E", 0, 0, "isoWeekday");
_("d", ie);
_("e", ie);
_("E", ie);
_("dd", function(e, t) {
return t.weekdaysMinRegex(e);
});
_("ddd", function(e, t) {
return t.weekdaysShortRegex(e);
});
_("dddd", function(e, t) {
return t.weekdaysRegex(e);
});
yn(["dd", "ddd", "dddd"], function(e, t, n, i) {
var r = n._locale.weekdaysParse(e, i, n._strict);
r != null ? t.d = r : X(n).invalidWeekday = e;
});
yn(["d", "e", "E"], function(e, t, n, i) {
t[i] = L(e);
});
function Zu(e, t) {
return typeof e != "string" ? e : isNaN(e) ? (e = t.weekdaysParse(e), typeof e == "number" ? e : null) : parseInt(e, 10);
}
function Ju(e, t) {
return typeof e == "string" ? t.weekdaysParse(e) % 7 || 7 : isNaN(e) ? null : e;
}
function ci(e, t) {
return e.slice(t, 7).concat(e.slice(0, t));
}
var zu = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), es = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), ju = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), Uu = In, $u = In, Qu = In;
function Ku(e, t) {
var n = ze(this._weekdays) ? this._weekdays : this._weekdays[e && e !== !0 && this._weekdays.isFormat.test(t) ? "format" : "standalone"];
return e === !0 ? ci(n, this._week.dow) : e ? n[e.day()] : n;
}
function qu(e) {
return e === !0 ? ci(this._weekdaysShort, this._week.dow) : e ? this._weekdaysShort[e.day()] : this._weekdaysShort;
}
function el(e) {
return e === !0 ? ci(this._weekdaysMin, this._week.dow) : e ? this._weekdaysMin[e.day()] : this._weekdaysMin;
}
function tl(e, t, n) {
var i, r, a, s = e.toLocaleLowerCase();
if (!this._weekdaysParse)
for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], i = 0; i < 7; ++i)
a = nt([2e3, 1]).day(i), this._minWeekdaysParse[i] = this.weekdaysMin(
a,
""
).toLocaleLowerCase(), this._shortWeekdaysParse[i] = this.weekdaysShort(
a,
""
).toLocaleLowerCase(), this._weekdaysParse[i] = this.weekdays(a, "").toLocaleLowerCase();
return n ? t === "dddd" ? (r = he.call(this._weekdaysParse, s), r !== -1 ? r : null) : t === "ddd" ? (r = he.call(this._shortWeekdaysParse, s), r !== -1 ? r : null) : (r = he.call(this._minWeekdaysParse, s), r !== -1 ? r : null) : t === "dddd" ? (r = he.call(this._weekdaysParse, s), r !== -1 || (r = he.call(this._shortWeekdaysParse, s), r !== -1) ? r : (r = he.call(this._minWeekdaysParse, s), r !== -1 ? r : null)) : t === "ddd" ? (r = he.call(this._shortWeekdaysParse, s), r !== -1 || (r = he.call(this._weekdaysParse, s), r !== -1) ? r : (r = he.call(this._minWeekdaysParse, s), r !== -1 ? r : null)) : (r = he.call(this._minWeekdaysParse, s), r !== -1 || (r = he.call(this._weekdaysParse, s), r !== -1) ? r : (r = he.call(this._shortWeekdaysParse, s), r !== -1 ? r : null));
}
function nl(e, t, n) {
var i, r, a;
if (this._weekdaysParseExact)
return tl.call(this, e, t, n);
for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), i = 0; i < 7; i++) {
if (r = nt([2e3, 1]).day(i), n && !this._fullWeekdaysParse[i] && (this._fullWeekdaysParse[i] = new RegExp(
"^" + this.weekdays(r, "").replace(".", "\\.?") + "$",
"i"
), this._shortWeekdaysParse[i] = new RegExp(
"^" + this.weekdaysShort(r, "").replace(".", "\\.?") + "$",
"i"
), this._minWeekdaysParse[i] = new RegExp(
"^" + this.weekdaysMin(r, "").replace(".", "\\.?") + "$",
"i"
)), this._weekdaysParse[i] || (a = "^" + this.weekdays(r, "") + "|^" + this.weekdaysShort(r, "") + "|^" + this.weekdaysMin(r, ""), this._weekdaysParse[i] = new RegExp(a.replace(".", ""), "i")), n && t === "dddd" && this._fullWeekdaysParse[i].test(e))
return i;
if (n && t === "ddd" && this._shortWeekdaysParse[i].test(e))
return i;
if (n && t === "dd" && this._minWeekdaysParse[i].test(e))
return i;
if (!n && this._weekdaysParse[i].test(e))
return i;
}
}
function rl(e) {
if (!this.isValid())
return e != null ? this : NaN;
var t = ln(this, "Day");
return e != null ? (e = Zu(e, this.localeData()), this.add(e - t, "d")) : t;
}
function il(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 al(e) {
if (!this.isValid())
return e != null ? this : NaN;
if (e != null) {
var t = Ju(e, this.localeData());
return this.day(this.day() % 7 ? t : t - 7);
} else
return this.day() || 7;
}
function sl(e) {
return this._weekdaysParseExact ? (z(this, "_weekdaysRegex") || di.call(this), e ? this._weekdaysStrictRegex : this._weekdaysRegex) : (z(this, "_weekdaysRegex") || (this._weekdaysRegex = Uu), this._weekdaysStrictRegex && e ? this._weekdaysStrictRegex : this._weekdaysRegex);
}
function ol(e) {
return this._weekdaysParseExact ? (z(this, "_weekdaysRegex") || di.call(this), e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : (z(this, "_weekdaysShortRegex") || (this._weekdaysShortRegex = $u), this._weekdaysShortStrictRegex && e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex);
}
function ul(e) {
return this._weekdaysParseExact ? (z(this, "_weekdaysRegex") || di.call(this), e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (z(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = Qu), this._weekdaysMinStrictRegex && e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex);
}
function di() {
function e(c, f) {
return f.length - c.length;
}
var t = [], n = [], i = [], r = [], a, s, u, o, l;
for (a = 0; a < 7; a++)
s = nt([2e3, 1]).day(a), u = gt(this.weekdaysMin(s, "")), o = gt(this.weekdaysShort(s, "")), l = gt(this.weekdays(s, "")), t.push(u), n.push(o), i.push(l), r.push(u), r.push(o), r.push(l);
t.sort(e), n.sort(e), i.sort(e), r.sort(e), this._weekdaysRegex = new RegExp("^(" + r.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp(
"^(" + i.join("|") + ")",
"i"
), this._weekdaysShortStrictRegex = new RegExp(
"^(" + n.join("|") + ")",
"i"
), this._weekdaysMinStrictRegex = new RegExp(
"^(" + t.join("|") + ")",
"i"
);
}
function fi() {
return this.hours() % 12 || 12;
}
function ll() {
return this.hours() || 24;
}
F("H", ["HH", 2], 0, "hour");
F("h", ["hh", 2], 0, fi);
F("k", ["kk", 2], 0, ll);
F("hmm", 0, 0, function() {
return "" + fi.apply(this) + tt(this.minutes(), 2);
});
F("hmmss", 0, 0, function() {
return "" + fi.apply(this) + tt(this.minutes(), 2) + tt(this.seconds(), 2);
});
F("Hmm", 0, 0, function() {
return "" + this.hours() + tt(this.minutes(), 2);
});
F("Hmmss", 0, 0, function() {
return "" + this.hours() + tt(