@opfr/canvas 0.8.1 → 0.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +1732 -1720
- package/dist/index.umd.js +6 -6
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -1,164 +1,164 @@
|
|
|
1
|
-
import { loadImage as
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { loadImage as Ct, GlobalFonts as Ts, createCanvas as bs } from "@napi-rs/canvas";
|
|
2
|
+
const Lt = /* @__PURE__ */ new Map(), Ga = (e, t) => {
|
|
3
|
+
Ct(t).then((s) => {
|
|
4
|
+
Lt.set(e, s);
|
|
5
5
|
});
|
|
6
|
-
},
|
|
7
|
-
const
|
|
8
|
-
if (!
|
|
9
|
-
throw new Error(`image "${
|
|
10
|
-
return
|
|
11
|
-
}, Va = (
|
|
12
|
-
...
|
|
13
|
-
...
|
|
14
|
-
text: "text" in
|
|
15
|
-
},
|
|
16
|
-
...
|
|
17
|
-
x:
|
|
18
|
-
y:
|
|
19
|
-
}),
|
|
20
|
-
var
|
|
21
|
-
const za = (
|
|
22
|
-
|
|
23
|
-
},
|
|
24
|
-
for (const
|
|
25
|
-
if (!
|
|
26
|
-
throw new Error("Font loading error: " +
|
|
27
|
-
},
|
|
28
|
-
"top-left": (
|
|
29
|
-
top: (
|
|
30
|
-
"top-right": (
|
|
31
|
-
left: (
|
|
32
|
-
center: (
|
|
33
|
-
right: (
|
|
34
|
-
"bottom-left": (
|
|
35
|
-
bottom: (
|
|
36
|
-
"bottom-right": (
|
|
37
|
-
},
|
|
38
|
-
const
|
|
39
|
-
const { x:
|
|
6
|
+
}, Ns = (e) => {
|
|
7
|
+
const t = Lt.get(e);
|
|
8
|
+
if (!t)
|
|
9
|
+
throw new Error(`image "${e}" not found`);
|
|
10
|
+
return t;
|
|
11
|
+
}, Va = (e, t) => (e.options = {
|
|
12
|
+
...e.options,
|
|
13
|
+
...t,
|
|
14
|
+
text: "text" in e.options ? e.options.text : ""
|
|
15
|
+
}, t.enable && (e.options = {
|
|
16
|
+
...e.options,
|
|
17
|
+
x: t.x + (t.width ?? 0),
|
|
18
|
+
y: t.y
|
|
19
|
+
}), e);
|
|
20
|
+
var Fe = /* @__PURE__ */ ((e) => (e.TOP_LEFT = "top-left", e.TOP = "top", e.TOP_RIGHT = "top-right", e.LEFT = "left", e.CENTER = "center", e.RIGHT = "right", e.BOTTOM_LEFT = "bottom-left", e.BOTTOM = "bottom", e.BOTTOM_RIGHT = "bottom-right", e))(Fe || {});
|
|
21
|
+
const za = (e) => {
|
|
22
|
+
e.addColorStop(0, "#E1B34C"), e.addColorStop(0.1, "#E1B34C"), e.addColorStop(0.3, "white"), e.addColorStop(0.55, "#E1B34C"), e.addColorStop(0.65, "#E1B34C"), e.addColorStop(0.8, "white"), e.addColorStop(1, "#E1B34C");
|
|
23
|
+
}, $a = (e) => {
|
|
24
|
+
for (const t of e)
|
|
25
|
+
if (!Ts.registerFromPath(t.path, t.name))
|
|
26
|
+
throw new Error("Font loading error: " + t.path);
|
|
27
|
+
}, it = {
|
|
28
|
+
"top-left": (e, t) => ({ x: e, y: t }),
|
|
29
|
+
top: (e, t, s) => ({ x: e - s / 2, y: t }),
|
|
30
|
+
"top-right": (e, t, s) => ({ x: e - s, y: t }),
|
|
31
|
+
left: (e, t, s, r) => ({ x: e, y: t - r / 2 }),
|
|
32
|
+
center: (e, t, s, r) => ({ x: e - s / 2, y: t - r / 2 }),
|
|
33
|
+
right: (e, t, s, r) => ({ x: e - s, y: t - r / 2 }),
|
|
34
|
+
"bottom-left": (e, t, s, r) => ({ x: e, y: t - r }),
|
|
35
|
+
bottom: (e, t, s, r) => ({ x: e - s / 2, y: t - r }),
|
|
36
|
+
"bottom-right": (e, t, s, r) => ({ x: e - s, y: t - r })
|
|
37
|
+
}, Ps = (e) => {
|
|
38
|
+
const t = (r, i, n, a = !0) => {
|
|
39
|
+
const { x: l, y: f } = it[i.origin](
|
|
40
40
|
i.x,
|
|
41
41
|
i.y,
|
|
42
|
-
(i.width ??
|
|
43
|
-
(i.height ??
|
|
42
|
+
(i.width ?? n.width) * i.scale,
|
|
43
|
+
(i.height ?? n.height) * i.scale
|
|
44
44
|
);
|
|
45
|
-
return
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
(i.width ??
|
|
50
|
-
(i.height ??
|
|
51
|
-
), { x:
|
|
52
|
-
},
|
|
45
|
+
return r.globalCompositeOperation = i.composite, r.rotate(i.angle * Math.PI / 180), a && r.drawImage(
|
|
46
|
+
n,
|
|
47
|
+
l,
|
|
48
|
+
f,
|
|
49
|
+
(i.width ?? n.width) * i.scale,
|
|
50
|
+
(i.height ?? n.height) * i.scale
|
|
51
|
+
), { x: l, y: f };
|
|
52
|
+
}, s = {
|
|
53
53
|
imageName: null,
|
|
54
54
|
x: 0,
|
|
55
55
|
y: 0,
|
|
56
|
-
origin:
|
|
56
|
+
origin: Fe.TOP_LEFT,
|
|
57
57
|
scale: 1,
|
|
58
58
|
angle: 0,
|
|
59
59
|
composite: "source-over"
|
|
60
60
|
};
|
|
61
61
|
return {
|
|
62
|
-
context:
|
|
63
|
-
options:
|
|
64
|
-
setImageName(
|
|
65
|
-
return this.options.imageName =
|
|
62
|
+
context: e.context,
|
|
63
|
+
options: s,
|
|
64
|
+
setImageName(r) {
|
|
65
|
+
return this.options.imageName = r, this;
|
|
66
66
|
},
|
|
67
|
-
setPosition(
|
|
68
|
-
return this.options.x =
|
|
67
|
+
setPosition(r, i) {
|
|
68
|
+
return this.options.x = r, this.options.y = i, this;
|
|
69
69
|
},
|
|
70
|
-
setDimensions(
|
|
71
|
-
return this.options.width =
|
|
70
|
+
setDimensions(r, i) {
|
|
71
|
+
return this.options.width = r, this.options.height = i, this;
|
|
72
72
|
},
|
|
73
|
-
setOrigin(
|
|
74
|
-
return this.options.origin =
|
|
73
|
+
setOrigin(r) {
|
|
74
|
+
return this.options.origin = r, this;
|
|
75
75
|
},
|
|
76
|
-
setAngle(
|
|
77
|
-
return this.options.angle =
|
|
76
|
+
setAngle(r) {
|
|
77
|
+
return this.options.angle = r, this;
|
|
78
78
|
},
|
|
79
|
-
setScale(
|
|
80
|
-
return this.options.scale =
|
|
79
|
+
setScale(r) {
|
|
80
|
+
return this.options.scale = r, this;
|
|
81
81
|
},
|
|
82
|
-
setComposite(
|
|
83
|
-
return this.options.composite =
|
|
82
|
+
setComposite(r) {
|
|
83
|
+
return this.options.composite = r, this;
|
|
84
84
|
},
|
|
85
|
-
async drawFromUrl(
|
|
85
|
+
async drawFromUrl(r) {
|
|
86
86
|
this.context.save();
|
|
87
|
-
const i = await
|
|
88
|
-
|
|
87
|
+
const i = await Ct(r);
|
|
88
|
+
t(this.context, this.options, i), this.context.restore();
|
|
89
89
|
},
|
|
90
|
-
draw(
|
|
90
|
+
draw(r = !0) {
|
|
91
91
|
if (!this.options.imageName)
|
|
92
92
|
throw new Error("No image chose");
|
|
93
93
|
this.context.save(), this.context.globalCompositeOperation = this.options.composite;
|
|
94
|
-
const i =
|
|
95
|
-
return this.options.width = this.options.width ?? i.width, this.options.height = this.options.height ?? i.height,
|
|
94
|
+
const i = Ns(this.options.imageName);
|
|
95
|
+
return this.options.width = this.options.width ?? i.width, this.options.height = this.options.height ?? i.height, t(this.context, this.options, i, r), this.context.restore(), {
|
|
96
96
|
width: this.options.width * this.options.scale,
|
|
97
|
-
next: (
|
|
97
|
+
next: (n) => n(e, {
|
|
98
98
|
...this.options,
|
|
99
|
-
enable:
|
|
99
|
+
enable: r
|
|
100
100
|
})
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
|
-
},
|
|
105
|
-
const a =
|
|
106
|
-
return
|
|
107
|
-
},
|
|
104
|
+
}, Ws = (e, t) => (s, r, i, n) => {
|
|
105
|
+
const a = e.context.createLinearGradient(s, r, i, n);
|
|
106
|
+
return t(a), a;
|
|
107
|
+
}, Rs = (e, t, s, r, i, n) => typeof e == "string" ? e : Ws(t, e)(s, r, i, n);
|
|
108
108
|
//! moment.js
|
|
109
109
|
//! version : 2.30.1
|
|
110
110
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
111
111
|
//! license : MIT
|
|
112
112
|
//! momentjs.com
|
|
113
|
-
var
|
|
114
|
-
function
|
|
115
|
-
return
|
|
113
|
+
var Et;
|
|
114
|
+
function u() {
|
|
115
|
+
return Et.apply(null, arguments);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
118
|
-
|
|
117
|
+
function Fs(e) {
|
|
118
|
+
Et = e;
|
|
119
119
|
}
|
|
120
|
-
function R(
|
|
121
|
-
return
|
|
120
|
+
function R(e) {
|
|
121
|
+
return e instanceof Array || Object.prototype.toString.call(e) === "[object Array]";
|
|
122
122
|
}
|
|
123
|
-
function
|
|
124
|
-
return
|
|
123
|
+
function se(e) {
|
|
124
|
+
return e != null && Object.prototype.toString.call(e) === "[object Object]";
|
|
125
125
|
}
|
|
126
|
-
function
|
|
127
|
-
return Object.prototype.hasOwnProperty.call(
|
|
126
|
+
function w(e, t) {
|
|
127
|
+
return Object.prototype.hasOwnProperty.call(e, t);
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function nt(e) {
|
|
130
130
|
if (Object.getOwnPropertyNames)
|
|
131
|
-
return Object.getOwnPropertyNames(
|
|
132
|
-
var
|
|
133
|
-
for (
|
|
134
|
-
if (
|
|
131
|
+
return Object.getOwnPropertyNames(e).length === 0;
|
|
132
|
+
var t;
|
|
133
|
+
for (t in e)
|
|
134
|
+
if (w(e, t))
|
|
135
135
|
return !1;
|
|
136
136
|
return !0;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
139
|
-
return
|
|
138
|
+
function x(e) {
|
|
139
|
+
return e === void 0;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
142
|
-
return typeof
|
|
141
|
+
function Z(e) {
|
|
142
|
+
return typeof e == "number" || Object.prototype.toString.call(e) === "[object Number]";
|
|
143
143
|
}
|
|
144
|
-
function
|
|
145
|
-
return
|
|
144
|
+
function ke(e) {
|
|
145
|
+
return e instanceof Date || Object.prototype.toString.call(e) === "[object Date]";
|
|
146
146
|
}
|
|
147
|
-
function
|
|
148
|
-
var
|
|
149
|
-
for (
|
|
150
|
-
|
|
151
|
-
return
|
|
147
|
+
function It(e, t) {
|
|
148
|
+
var s = [], r, i = e.length;
|
|
149
|
+
for (r = 0; r < i; ++r)
|
|
150
|
+
s.push(t(e[r], r));
|
|
151
|
+
return s;
|
|
152
152
|
}
|
|
153
|
-
function Q(
|
|
154
|
-
for (var
|
|
155
|
-
|
|
156
|
-
return
|
|
153
|
+
function Q(e, t) {
|
|
154
|
+
for (var s in t)
|
|
155
|
+
w(t, s) && (e[s] = t[s]);
|
|
156
|
+
return w(t, "toString") && (e.toString = t.toString), w(t, "valueOf") && (e.valueOf = t.valueOf), e;
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
return
|
|
158
|
+
function I(e, t, s, r) {
|
|
159
|
+
return os(e, t, s, r, !0).utc();
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function Cs() {
|
|
162
162
|
return {
|
|
163
163
|
empty: !1,
|
|
164
164
|
unusedTokens: [],
|
|
@@ -178,109 +178,109 @@ function Fn() {
|
|
|
178
178
|
weekdayMismatch: !1
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
|
-
function
|
|
182
|
-
return
|
|
181
|
+
function c(e) {
|
|
182
|
+
return e._pf == null && (e._pf = Cs()), e._pf;
|
|
183
183
|
}
|
|
184
|
-
var
|
|
185
|
-
Array.prototype.some ?
|
|
186
|
-
var
|
|
187
|
-
for (
|
|
188
|
-
if (
|
|
184
|
+
var Qe;
|
|
185
|
+
Array.prototype.some ? Qe = Array.prototype.some : Qe = function(e) {
|
|
186
|
+
var t = Object(this), s = t.length >>> 0, r;
|
|
187
|
+
for (r = 0; r < s; r++)
|
|
188
|
+
if (r in t && e.call(this, t[r], r, t))
|
|
189
189
|
return !0;
|
|
190
190
|
return !1;
|
|
191
191
|
};
|
|
192
|
-
function
|
|
193
|
-
var
|
|
194
|
-
if (
|
|
192
|
+
function at(e) {
|
|
193
|
+
var t = null, s = !1, r = e._d && !isNaN(e._d.getTime());
|
|
194
|
+
if (r && (t = c(e), s = Qe.call(t.parsedDateParts, function(i) {
|
|
195
195
|
return i != null;
|
|
196
|
-
}),
|
|
197
|
-
|
|
196
|
+
}), 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))
|
|
197
|
+
e._isValid = r;
|
|
198
198
|
else
|
|
199
|
-
return
|
|
200
|
-
return
|
|
201
|
-
}
|
|
202
|
-
function
|
|
203
|
-
var
|
|
204
|
-
return
|
|
205
|
-
}
|
|
206
|
-
var
|
|
207
|
-
function
|
|
208
|
-
var
|
|
209
|
-
if (
|
|
210
|
-
for (
|
|
211
|
-
|
|
212
|
-
return
|
|
199
|
+
return r;
|
|
200
|
+
return e._isValid;
|
|
201
|
+
}
|
|
202
|
+
function Ce(e) {
|
|
203
|
+
var t = I(NaN);
|
|
204
|
+
return e != null ? Q(c(t), e) : c(t).userInvalidated = !0, t;
|
|
205
|
+
}
|
|
206
|
+
var xt = u.momentProperties = [], $e = !1;
|
|
207
|
+
function ot(e, t) {
|
|
208
|
+
var s, r, i, n = xt.length;
|
|
209
|
+
if (x(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject), x(t._i) || (e._i = t._i), x(t._f) || (e._f = t._f), x(t._l) || (e._l = t._l), x(t._strict) || (e._strict = t._strict), x(t._tzm) || (e._tzm = t._tzm), x(t._isUTC) || (e._isUTC = t._isUTC), x(t._offset) || (e._offset = t._offset), x(t._pf) || (e._pf = c(t)), x(t._locale) || (e._locale = t._locale), n > 0)
|
|
210
|
+
for (s = 0; s < n; s++)
|
|
211
|
+
r = xt[s], i = t[r], x(i) || (e[r] = i);
|
|
212
|
+
return e;
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
|
|
214
|
+
function Me(e) {
|
|
215
|
+
ot(this, e), this._d = new Date(e._d != null ? e._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), $e === !1 && ($e = !0, u.updateOffset(this), $e = !1);
|
|
216
216
|
}
|
|
217
|
-
function
|
|
218
|
-
return
|
|
217
|
+
function F(e) {
|
|
218
|
+
return e instanceof Me || e != null && e._isAMomentObject != null;
|
|
219
219
|
}
|
|
220
|
-
function
|
|
221
|
-
|
|
220
|
+
function Ut(e) {
|
|
221
|
+
u.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + e);
|
|
222
222
|
}
|
|
223
|
-
function N(
|
|
224
|
-
var
|
|
223
|
+
function N(e, t) {
|
|
224
|
+
var s = !0;
|
|
225
225
|
return Q(function() {
|
|
226
|
-
if (
|
|
227
|
-
var
|
|
228
|
-
for (
|
|
229
|
-
if (i = "", typeof arguments[
|
|
226
|
+
if (u.deprecationHandler != null && u.deprecationHandler(null, e), s) {
|
|
227
|
+
var r = [], i, n, a, l = arguments.length;
|
|
228
|
+
for (n = 0; n < l; n++) {
|
|
229
|
+
if (i = "", typeof arguments[n] == "object") {
|
|
230
230
|
i += `
|
|
231
|
-
[` +
|
|
231
|
+
[` + n + "] ";
|
|
232
232
|
for (a in arguments[0])
|
|
233
|
-
|
|
233
|
+
w(arguments[0], a) && (i += a + ": " + arguments[0][a] + ", ");
|
|
234
234
|
i = i.slice(0, -2);
|
|
235
235
|
} else
|
|
236
|
-
i = arguments[
|
|
237
|
-
|
|
236
|
+
i = arguments[n];
|
|
237
|
+
r.push(i);
|
|
238
238
|
}
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
Arguments: ` + Array.prototype.slice.call(
|
|
239
|
+
Ut(
|
|
240
|
+
e + `
|
|
241
|
+
Arguments: ` + Array.prototype.slice.call(r).join("") + `
|
|
242
242
|
` + new Error().stack
|
|
243
|
-
),
|
|
243
|
+
), s = !1;
|
|
244
244
|
}
|
|
245
|
-
return
|
|
246
|
-
},
|
|
247
|
-
}
|
|
248
|
-
var
|
|
249
|
-
function
|
|
250
|
-
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
function U(
|
|
255
|
-
return typeof Function < "u" &&
|
|
256
|
-
}
|
|
257
|
-
function
|
|
258
|
-
var
|
|
259
|
-
for (
|
|
260
|
-
|
|
261
|
-
this._config =
|
|
245
|
+
return t.apply(this, arguments);
|
|
246
|
+
}, t);
|
|
247
|
+
}
|
|
248
|
+
var Tt = {};
|
|
249
|
+
function Ht(e, t) {
|
|
250
|
+
u.deprecationHandler != null && u.deprecationHandler(e, t), Tt[e] || (Ut(t), Tt[e] = !0);
|
|
251
|
+
}
|
|
252
|
+
u.suppressDeprecationWarnings = !1;
|
|
253
|
+
u.deprecationHandler = null;
|
|
254
|
+
function U(e) {
|
|
255
|
+
return typeof Function < "u" && e instanceof Function || Object.prototype.toString.call(e) === "[object Function]";
|
|
256
|
+
}
|
|
257
|
+
function Ls(e) {
|
|
258
|
+
var t, s;
|
|
259
|
+
for (s in e)
|
|
260
|
+
w(e, s) && (t = e[s], U(t) ? this[s] = t : this["_" + s] = t);
|
|
261
|
+
this._config = e, this._dayOfMonthOrdinalParseLenient = new RegExp(
|
|
262
262
|
(this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source
|
|
263
263
|
);
|
|
264
264
|
}
|
|
265
|
-
function
|
|
266
|
-
var
|
|
267
|
-
for (
|
|
268
|
-
|
|
269
|
-
for (
|
|
270
|
-
|
|
271
|
-
return
|
|
265
|
+
function Xe(e, t) {
|
|
266
|
+
var s = Q({}, e), r;
|
|
267
|
+
for (r in t)
|
|
268
|
+
w(t, r) && (se(e[r]) && se(t[r]) ? (s[r] = {}, Q(s[r], e[r]), Q(s[r], t[r])) : t[r] != null ? s[r] = t[r] : delete s[r]);
|
|
269
|
+
for (r in e)
|
|
270
|
+
w(e, r) && !w(t, r) && se(e[r]) && (s[r] = Q({}, s[r]));
|
|
271
|
+
return s;
|
|
272
272
|
}
|
|
273
|
-
function
|
|
274
|
-
|
|
273
|
+
function lt(e) {
|
|
274
|
+
e != null && this.set(e);
|
|
275
275
|
}
|
|
276
|
-
var
|
|
277
|
-
Object.keys ?
|
|
278
|
-
var
|
|
279
|
-
for (
|
|
280
|
-
|
|
281
|
-
return
|
|
276
|
+
var Ke;
|
|
277
|
+
Object.keys ? Ke = Object.keys : Ke = function(e) {
|
|
278
|
+
var t, s = [];
|
|
279
|
+
for (t in e)
|
|
280
|
+
w(e, t) && s.push(t);
|
|
281
|
+
return s;
|
|
282
282
|
};
|
|
283
|
-
var
|
|
283
|
+
var Es = {
|
|
284
284
|
sameDay: "[Today at] LT",
|
|
285
285
|
nextDay: "[Tomorrow at] LT",
|
|
286
286
|
nextWeek: "dddd [at] LT",
|
|
@@ -288,58 +288,58 @@ var En = {
|
|
|
288
288
|
lastWeek: "[Last] dddd [at] LT",
|
|
289
289
|
sameElse: "L"
|
|
290
290
|
};
|
|
291
|
-
function
|
|
292
|
-
var
|
|
293
|
-
return U(
|
|
294
|
-
}
|
|
295
|
-
function
|
|
296
|
-
var
|
|
297
|
-
return (
|
|
298
|
-
}
|
|
299
|
-
var
|
|
300
|
-
function
|
|
301
|
-
var i =
|
|
302
|
-
typeof
|
|
303
|
-
return this[
|
|
304
|
-
}),
|
|
305
|
-
return
|
|
306
|
-
}),
|
|
291
|
+
function Is(e, t, s) {
|
|
292
|
+
var r = this._calendar[e] || this._calendar.sameElse;
|
|
293
|
+
return U(r) ? r.call(t, s) : r;
|
|
294
|
+
}
|
|
295
|
+
function E(e, t, s) {
|
|
296
|
+
var r = "" + Math.abs(e), i = t - r.length, n = e >= 0;
|
|
297
|
+
return (n ? s ? "+" : "" : "-") + Math.pow(10, Math.max(0, i)).toString().substr(1) + r;
|
|
298
|
+
}
|
|
299
|
+
var ut = /(\[[^\[]*\])|(\\)?([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, ve = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, Ze = {}, oe = {};
|
|
300
|
+
function h(e, t, s, r) {
|
|
301
|
+
var i = r;
|
|
302
|
+
typeof r == "string" && (i = function() {
|
|
303
|
+
return this[r]();
|
|
304
|
+
}), e && (oe[e] = i), t && (oe[t[0]] = function() {
|
|
305
|
+
return E(i.apply(this, arguments), t[1], t[2]);
|
|
306
|
+
}), s && (oe[s] = function() {
|
|
307
307
|
return this.localeData().ordinal(
|
|
308
308
|
i.apply(this, arguments),
|
|
309
|
-
|
|
309
|
+
e
|
|
310
310
|
);
|
|
311
311
|
});
|
|
312
312
|
}
|
|
313
|
-
function
|
|
314
|
-
return
|
|
313
|
+
function Us(e) {
|
|
314
|
+
return e.match(/\[[\s\S]/) ? e.replace(/^\[|\]$/g, "") : e.replace(/\\/g, "");
|
|
315
315
|
}
|
|
316
|
-
function
|
|
317
|
-
var
|
|
318
|
-
for (
|
|
319
|
-
|
|
316
|
+
function Hs(e) {
|
|
317
|
+
var t = e.match(ut), s, r;
|
|
318
|
+
for (s = 0, r = t.length; s < r; s++)
|
|
319
|
+
oe[t[s]] ? t[s] = oe[t[s]] : t[s] = Us(t[s]);
|
|
320
320
|
return function(i) {
|
|
321
|
-
var
|
|
322
|
-
for (a = 0; a <
|
|
323
|
-
|
|
324
|
-
return
|
|
321
|
+
var n = "", a;
|
|
322
|
+
for (a = 0; a < r; a++)
|
|
323
|
+
n += U(t[a]) ? t[a].call(i, e) : t[a];
|
|
324
|
+
return n;
|
|
325
325
|
};
|
|
326
326
|
}
|
|
327
|
-
function
|
|
328
|
-
return
|
|
327
|
+
function Oe(e, t) {
|
|
328
|
+
return e.isValid() ? (t = At(t, e.localeData()), Ze[t] = Ze[t] || Hs(t), Ze[t](e)) : e.localeData().invalidDate();
|
|
329
329
|
}
|
|
330
|
-
function
|
|
331
|
-
var
|
|
332
|
-
function
|
|
333
|
-
return
|
|
330
|
+
function At(e, t) {
|
|
331
|
+
var s = 5;
|
|
332
|
+
function r(i) {
|
|
333
|
+
return t.longDateFormat(i) || i;
|
|
334
334
|
}
|
|
335
|
-
for (
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
),
|
|
340
|
-
return
|
|
335
|
+
for (ve.lastIndex = 0; s >= 0 && ve.test(e); )
|
|
336
|
+
e = e.replace(
|
|
337
|
+
ve,
|
|
338
|
+
r
|
|
339
|
+
), ve.lastIndex = 0, s -= 1;
|
|
340
|
+
return e;
|
|
341
341
|
}
|
|
342
|
-
var
|
|
342
|
+
var As = {
|
|
343
343
|
LTS: "h:mm:ss A",
|
|
344
344
|
LT: "h:mm A",
|
|
345
345
|
L: "MM/DD/YYYY",
|
|
@@ -347,21 +347,21 @@ var An = {
|
|
|
347
347
|
LLL: "MMMM D, YYYY h:mm A",
|
|
348
348
|
LLLL: "dddd, MMMM D, YYYY h:mm A"
|
|
349
349
|
};
|
|
350
|
-
function
|
|
351
|
-
var
|
|
352
|
-
return
|
|
353
|
-
return
|
|
354
|
-
}).join(""), this._longDateFormat[
|
|
355
|
-
}
|
|
356
|
-
var
|
|
357
|
-
function
|
|
350
|
+
function js(e) {
|
|
351
|
+
var t = this._longDateFormat[e], s = this._longDateFormat[e.toUpperCase()];
|
|
352
|
+
return t || !s ? t : (this._longDateFormat[e] = s.match(ut).map(function(r) {
|
|
353
|
+
return r === "MMMM" || r === "MM" || r === "DD" || r === "dddd" ? r.slice(1) : r;
|
|
354
|
+
}).join(""), this._longDateFormat[e]);
|
|
355
|
+
}
|
|
356
|
+
var Gs = "Invalid date";
|
|
357
|
+
function Vs() {
|
|
358
358
|
return this._invalidDate;
|
|
359
359
|
}
|
|
360
|
-
var
|
|
361
|
-
function
|
|
362
|
-
return this._ordinal.replace("%d",
|
|
360
|
+
var zs = "%d", $s = /\d{1,2}/;
|
|
361
|
+
function Zs(e) {
|
|
362
|
+
return this._ordinal.replace("%d", e);
|
|
363
363
|
}
|
|
364
|
-
var
|
|
364
|
+
var Bs = {
|
|
365
365
|
future: "in %s",
|
|
366
366
|
past: "%s ago",
|
|
367
367
|
s: "a few seconds",
|
|
@@ -379,15 +379,15 @@ var qn = {
|
|
|
379
379
|
y: "a year",
|
|
380
380
|
yy: "%d years"
|
|
381
381
|
};
|
|
382
|
-
function
|
|
383
|
-
var i = this._relativeTime[
|
|
384
|
-
return U(i) ? i(
|
|
382
|
+
function qs(e, t, s, r) {
|
|
383
|
+
var i = this._relativeTime[s];
|
|
384
|
+
return U(i) ? i(e, t, s, r) : i.replace(/%d/i, e);
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
var
|
|
388
|
-
return U(
|
|
386
|
+
function Js(e, t) {
|
|
387
|
+
var s = this._relativeTime[e > 0 ? "future" : "past"];
|
|
388
|
+
return U(s) ? s(t) : s.replace(/%s/i, t);
|
|
389
389
|
}
|
|
390
|
-
var
|
|
390
|
+
var bt = {
|
|
391
391
|
D: "date",
|
|
392
392
|
dates: "date",
|
|
393
393
|
date: "date",
|
|
@@ -437,16 +437,16 @@ var Ne = {
|
|
|
437
437
|
years: "year",
|
|
438
438
|
year: "year"
|
|
439
439
|
};
|
|
440
|
-
function P(
|
|
441
|
-
return typeof
|
|
440
|
+
function P(e) {
|
|
441
|
+
return typeof e == "string" ? bt[e] || bt[e.toLowerCase()] : void 0;
|
|
442
442
|
}
|
|
443
|
-
function
|
|
444
|
-
var
|
|
445
|
-
for (
|
|
446
|
-
|
|
447
|
-
return
|
|
443
|
+
function dt(e) {
|
|
444
|
+
var t = {}, s, r;
|
|
445
|
+
for (r in e)
|
|
446
|
+
w(e, r) && (s = P(r), s && (t[s] = e[r]));
|
|
447
|
+
return t;
|
|
448
448
|
}
|
|
449
|
-
var
|
|
449
|
+
var Qs = {
|
|
450
450
|
date: 9,
|
|
451
451
|
day: 11,
|
|
452
452
|
weekday: 11,
|
|
@@ -464,660 +464,672 @@ var Xn = {
|
|
|
464
464
|
isoWeek: 5,
|
|
465
465
|
year: 1
|
|
466
466
|
};
|
|
467
|
-
function
|
|
468
|
-
var
|
|
469
|
-
for (
|
|
470
|
-
|
|
471
|
-
return
|
|
472
|
-
return
|
|
473
|
-
}),
|
|
474
|
-
}
|
|
475
|
-
var
|
|
476
|
-
|
|
477
|
-
function
|
|
478
|
-
|
|
479
|
-
return
|
|
467
|
+
function Xs(e) {
|
|
468
|
+
var t = [], s;
|
|
469
|
+
for (s in e)
|
|
470
|
+
w(e, s) && t.push({ unit: s, priority: Qs[s] });
|
|
471
|
+
return t.sort(function(r, i) {
|
|
472
|
+
return r.priority - i.priority;
|
|
473
|
+
}), t;
|
|
474
|
+
}
|
|
475
|
+
var jt = /\d/, T = /\d\d/, Gt = /\d{3}/, ht = /\d{4}/, Le = /[+-]?\d{6}/, M = /\d\d?/, Vt = /\d\d\d\d?/, zt = /\d\d\d\d\d\d?/, Ee = /\d{1,3}/, ft = /\d{1,4}/, Ie = /[+-]?\d{1,6}/, de = /\d+/, Ue = /[+-]?\d+/, Ks = /Z|[+-]\d\d:?\d\d/gi, He = /Z|[+-]\d\d(?::?\d\d)?/gi, er = /[+-]?\d+(\.\d{1,3})?/, Se = /[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, he = /^[1-9]\d?/, ct = /^([1-9]\d|\d)/, be;
|
|
476
|
+
be = {};
|
|
477
|
+
function d(e, t, s) {
|
|
478
|
+
be[e] = U(t) ? t : function(r, i) {
|
|
479
|
+
return r && s ? s : t;
|
|
480
480
|
};
|
|
481
481
|
}
|
|
482
|
-
function
|
|
483
|
-
return
|
|
482
|
+
function tr(e, t) {
|
|
483
|
+
return w(be, e) ? be[e](t._strict, t._locale) : new RegExp(sr(e));
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function sr(e) {
|
|
486
486
|
return z(
|
|
487
|
-
|
|
487
|
+
e.replace("\\", "").replace(
|
|
488
488
|
/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
|
|
489
|
-
function(
|
|
490
|
-
return
|
|
489
|
+
function(t, s, r, i, n) {
|
|
490
|
+
return s || r || i || n;
|
|
491
491
|
}
|
|
492
492
|
)
|
|
493
493
|
);
|
|
494
494
|
}
|
|
495
|
-
function z(
|
|
496
|
-
return
|
|
495
|
+
function z(e) {
|
|
496
|
+
return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
497
497
|
}
|
|
498
|
-
function b(
|
|
499
|
-
return
|
|
498
|
+
function b(e) {
|
|
499
|
+
return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
|
|
500
500
|
}
|
|
501
|
-
function m(
|
|
502
|
-
var
|
|
503
|
-
return
|
|
501
|
+
function m(e) {
|
|
502
|
+
var t = +e, s = 0;
|
|
503
|
+
return t !== 0 && isFinite(t) && (s = b(t)), s;
|
|
504
504
|
}
|
|
505
|
-
var
|
|
506
|
-
function
|
|
507
|
-
var
|
|
508
|
-
for (typeof
|
|
509
|
-
a[
|
|
510
|
-
}), i =
|
|
511
|
-
|
|
505
|
+
var et = {};
|
|
506
|
+
function g(e, t) {
|
|
507
|
+
var s, r = t, i;
|
|
508
|
+
for (typeof e == "string" && (e = [e]), Z(t) && (r = function(n, a) {
|
|
509
|
+
a[t] = m(n);
|
|
510
|
+
}), i = e.length, s = 0; s < i; s++)
|
|
511
|
+
et[e[s]] = r;
|
|
512
512
|
}
|
|
513
|
-
function
|
|
514
|
-
|
|
515
|
-
i._w = i._w || {},
|
|
513
|
+
function De(e, t) {
|
|
514
|
+
g(e, function(s, r, i, n) {
|
|
515
|
+
i._w = i._w || {}, t(s, i._w, i, n);
|
|
516
516
|
});
|
|
517
517
|
}
|
|
518
|
-
function
|
|
519
|
-
|
|
518
|
+
function rr(e, t, s) {
|
|
519
|
+
t != null && w(et, e) && et[e](t, s._a, s, e);
|
|
520
520
|
}
|
|
521
|
-
function
|
|
522
|
-
return
|
|
521
|
+
function Ae(e) {
|
|
522
|
+
return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0;
|
|
523
523
|
}
|
|
524
|
-
var Y = 0,
|
|
525
|
-
|
|
526
|
-
var
|
|
527
|
-
return
|
|
524
|
+
var Y = 0, G = 1, L = 2, v = 3, W = 4, V = 5, te = 6, ir = 7, nr = 8;
|
|
525
|
+
h("Y", 0, 0, function() {
|
|
526
|
+
var e = this.year();
|
|
527
|
+
return e <= 9999 ? E(e, 4) : "+" + e;
|
|
528
528
|
});
|
|
529
|
-
|
|
529
|
+
h(0, ["YY", 2], 0, function() {
|
|
530
530
|
return this.year() % 100;
|
|
531
531
|
});
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
532
|
+
h(0, ["YYYY", 4], 0, "year");
|
|
533
|
+
h(0, ["YYYYY", 5], 0, "year");
|
|
534
|
+
h(0, ["YYYYYY", 6, !0], 0, "year");
|
|
535
|
+
d("Y", Ue);
|
|
536
|
+
d("YY", M, T);
|
|
537
|
+
d("YYYY", ft, ht);
|
|
538
|
+
d("YYYYY", Ie, Le);
|
|
539
|
+
d("YYYYYY", Ie, Le);
|
|
540
|
+
g(["YYYYY", "YYYYYY"], Y);
|
|
541
|
+
g("YYYY", function(e, t) {
|
|
542
|
+
t[Y] = e.length === 2 ? u.parseTwoDigitYear(e) : m(e);
|
|
543
543
|
});
|
|
544
|
-
|
|
545
|
-
|
|
544
|
+
g("YY", function(e, t) {
|
|
545
|
+
t[Y] = u.parseTwoDigitYear(e);
|
|
546
546
|
});
|
|
547
|
-
|
|
548
|
-
|
|
547
|
+
g("Y", function(e, t) {
|
|
548
|
+
t[Y] = parseInt(e, 10);
|
|
549
549
|
});
|
|
550
|
-
function
|
|
551
|
-
return
|
|
550
|
+
function _e(e) {
|
|
551
|
+
return Ae(e) ? 366 : 365;
|
|
552
552
|
}
|
|
553
|
-
|
|
554
|
-
return m(
|
|
553
|
+
u.parseTwoDigitYear = function(e) {
|
|
554
|
+
return m(e) + (m(e) > 68 ? 1900 : 2e3);
|
|
555
555
|
};
|
|
556
|
-
var
|
|
557
|
-
function
|
|
558
|
-
return
|
|
556
|
+
var $t = fe("FullYear", !0);
|
|
557
|
+
function ar() {
|
|
558
|
+
return Ae(this.year());
|
|
559
559
|
}
|
|
560
|
-
function
|
|
561
|
-
return function(
|
|
562
|
-
return
|
|
560
|
+
function fe(e, t) {
|
|
561
|
+
return function(s) {
|
|
562
|
+
return s != null ? (Zt(this, e, s), u.updateOffset(this, t), this) : ye(this, e);
|
|
563
563
|
};
|
|
564
564
|
}
|
|
565
|
-
function
|
|
566
|
-
if (!
|
|
565
|
+
function ye(e, t) {
|
|
566
|
+
if (!e.isValid())
|
|
567
567
|
return NaN;
|
|
568
|
-
var
|
|
569
|
-
switch (
|
|
568
|
+
var s = e._d, r = e._isUTC;
|
|
569
|
+
switch (t) {
|
|
570
570
|
case "Milliseconds":
|
|
571
|
-
return
|
|
571
|
+
return r ? s.getUTCMilliseconds() : s.getMilliseconds();
|
|
572
572
|
case "Seconds":
|
|
573
|
-
return
|
|
573
|
+
return r ? s.getUTCSeconds() : s.getSeconds();
|
|
574
574
|
case "Minutes":
|
|
575
|
-
return
|
|
575
|
+
return r ? s.getUTCMinutes() : s.getMinutes();
|
|
576
576
|
case "Hours":
|
|
577
|
-
return
|
|
577
|
+
return r ? s.getUTCHours() : s.getHours();
|
|
578
578
|
case "Date":
|
|
579
|
-
return
|
|
579
|
+
return r ? s.getUTCDate() : s.getDate();
|
|
580
580
|
case "Day":
|
|
581
|
-
return
|
|
581
|
+
return r ? s.getUTCDay() : s.getDay();
|
|
582
582
|
case "Month":
|
|
583
|
-
return
|
|
583
|
+
return r ? s.getUTCMonth() : s.getMonth();
|
|
584
584
|
case "FullYear":
|
|
585
|
-
return
|
|
585
|
+
return r ? s.getUTCFullYear() : s.getFullYear();
|
|
586
586
|
default:
|
|
587
587
|
return NaN;
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
|
-
function
|
|
591
|
-
var
|
|
592
|
-
if (!(!
|
|
593
|
-
switch (
|
|
590
|
+
function Zt(e, t, s) {
|
|
591
|
+
var r, i, n, a, l;
|
|
592
|
+
if (!(!e.isValid() || isNaN(s))) {
|
|
593
|
+
switch (r = e._d, i = e._isUTC, t) {
|
|
594
594
|
case "Milliseconds":
|
|
595
|
-
return void (i ?
|
|
595
|
+
return void (i ? r.setUTCMilliseconds(s) : r.setMilliseconds(s));
|
|
596
596
|
case "Seconds":
|
|
597
|
-
return void (i ?
|
|
597
|
+
return void (i ? r.setUTCSeconds(s) : r.setSeconds(s));
|
|
598
598
|
case "Minutes":
|
|
599
|
-
return void (i ?
|
|
599
|
+
return void (i ? r.setUTCMinutes(s) : r.setMinutes(s));
|
|
600
600
|
case "Hours":
|
|
601
|
-
return void (i ?
|
|
601
|
+
return void (i ? r.setUTCHours(s) : r.setHours(s));
|
|
602
602
|
case "Date":
|
|
603
|
-
return void (i ?
|
|
603
|
+
return void (i ? r.setUTCDate(s) : r.setDate(s));
|
|
604
604
|
case "FullYear":
|
|
605
605
|
break;
|
|
606
606
|
default:
|
|
607
607
|
return;
|
|
608
608
|
}
|
|
609
|
-
|
|
609
|
+
n = s, a = e.month(), l = e.date(), l = l === 29 && a === 1 && !Ae(n) ? 28 : l, i ? r.setUTCFullYear(n, a, l) : r.setFullYear(n, a, l);
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
|
-
function
|
|
613
|
-
return
|
|
614
|
-
}
|
|
615
|
-
function
|
|
616
|
-
if (typeof
|
|
617
|
-
|
|
618
|
-
var
|
|
619
|
-
for (
|
|
620
|
-
this[
|
|
621
|
-
} else if (
|
|
622
|
-
return this[
|
|
612
|
+
function or(e) {
|
|
613
|
+
return e = P(e), U(this[e]) ? this[e]() : this;
|
|
614
|
+
}
|
|
615
|
+
function lr(e, t) {
|
|
616
|
+
if (typeof e == "object") {
|
|
617
|
+
e = dt(e);
|
|
618
|
+
var s = Xs(e), r, i = s.length;
|
|
619
|
+
for (r = 0; r < i; r++)
|
|
620
|
+
this[s[r].unit](e[s[r].unit]);
|
|
621
|
+
} else if (e = P(e), U(this[e]))
|
|
622
|
+
return this[e](t);
|
|
623
623
|
return this;
|
|
624
624
|
}
|
|
625
|
-
function
|
|
626
|
-
return (
|
|
625
|
+
function ur(e, t) {
|
|
626
|
+
return (e % t + t) % t;
|
|
627
627
|
}
|
|
628
|
-
var
|
|
629
|
-
Array.prototype.indexOf ?
|
|
630
|
-
var
|
|
631
|
-
for (
|
|
632
|
-
if (this[
|
|
633
|
-
return
|
|
628
|
+
var D;
|
|
629
|
+
Array.prototype.indexOf ? D = Array.prototype.indexOf : D = function(e) {
|
|
630
|
+
var t;
|
|
631
|
+
for (t = 0; t < this.length; ++t)
|
|
632
|
+
if (this[t] === e)
|
|
633
|
+
return t;
|
|
634
634
|
return -1;
|
|
635
635
|
};
|
|
636
|
-
function
|
|
637
|
-
if (isNaN(
|
|
636
|
+
function mt(e, t) {
|
|
637
|
+
if (isNaN(e) || isNaN(t))
|
|
638
638
|
return NaN;
|
|
639
|
-
var
|
|
640
|
-
return
|
|
639
|
+
var s = ur(t, 12);
|
|
640
|
+
return e += (t - s) / 12, s === 1 ? Ae(e) ? 29 : 28 : 31 - s % 7 % 2;
|
|
641
641
|
}
|
|
642
|
-
|
|
642
|
+
h("M", ["MM", 2], "Mo", function() {
|
|
643
643
|
return this.month() + 1;
|
|
644
644
|
});
|
|
645
|
-
|
|
646
|
-
return this.localeData().monthsShort(this,
|
|
645
|
+
h("MMM", 0, 0, function(e) {
|
|
646
|
+
return this.localeData().monthsShort(this, e);
|
|
647
647
|
});
|
|
648
|
-
|
|
649
|
-
return this.localeData().months(this,
|
|
648
|
+
h("MMMM", 0, 0, function(e) {
|
|
649
|
+
return this.localeData().months(this, e);
|
|
650
650
|
});
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
return
|
|
651
|
+
d("M", M, he);
|
|
652
|
+
d("MM", M, T);
|
|
653
|
+
d("MMM", function(e, t) {
|
|
654
|
+
return t.monthsShortRegex(e);
|
|
655
655
|
});
|
|
656
|
-
|
|
657
|
-
return
|
|
656
|
+
d("MMMM", function(e, t) {
|
|
657
|
+
return t.monthsRegex(e);
|
|
658
658
|
});
|
|
659
|
-
|
|
660
|
-
|
|
659
|
+
g(["M", "MM"], function(e, t) {
|
|
660
|
+
t[G] = m(e) - 1;
|
|
661
661
|
});
|
|
662
|
-
|
|
663
|
-
var i =
|
|
664
|
-
i != null ?
|
|
662
|
+
g(["MMM", "MMMM"], function(e, t, s, r) {
|
|
663
|
+
var i = s._locale.monthsParse(e, r, s._strict);
|
|
664
|
+
i != null ? t[G] = i : c(s).invalidMonth = e;
|
|
665
665
|
});
|
|
666
|
-
var
|
|
666
|
+
var dr = "January_February_March_April_May_June_July_August_September_October_November_December".split(
|
|
667
667
|
"_"
|
|
668
|
-
),
|
|
669
|
-
function
|
|
670
|
-
return
|
|
668
|
+
), Bt = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), qt = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, hr = Se, fr = Se;
|
|
669
|
+
function cr(e, t) {
|
|
670
|
+
return e ? R(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || qt).test(t) ? "format" : "standalone"][e.month()] : R(this._months) ? this._months : this._months.standalone;
|
|
671
671
|
}
|
|
672
|
-
function
|
|
673
|
-
return
|
|
672
|
+
function mr(e, t) {
|
|
673
|
+
return e ? R(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[qt.test(t) ? "format" : "standalone"][e.month()] : R(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone;
|
|
674
674
|
}
|
|
675
|
-
function
|
|
676
|
-
var
|
|
675
|
+
function _r(e, t, s) {
|
|
676
|
+
var r, i, n, a = e.toLocaleLowerCase();
|
|
677
677
|
if (!this._monthsParse)
|
|
678
|
-
for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [],
|
|
679
|
-
|
|
680
|
-
|
|
678
|
+
for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], r = 0; r < 12; ++r)
|
|
679
|
+
n = I([2e3, r]), this._shortMonthsParse[r] = this.monthsShort(
|
|
680
|
+
n,
|
|
681
681
|
""
|
|
682
|
-
).toLocaleLowerCase(), this._longMonthsParse[
|
|
683
|
-
return
|
|
682
|
+
).toLocaleLowerCase(), this._longMonthsParse[r] = this.months(n, "").toLocaleLowerCase();
|
|
683
|
+
return s ? t === "MMM" ? (i = D.call(this._shortMonthsParse, a), i !== -1 ? i : null) : (i = D.call(this._longMonthsParse, a), i !== -1 ? i : null) : t === "MMM" ? (i = D.call(this._shortMonthsParse, a), i !== -1 ? i : (i = D.call(this._longMonthsParse, a), i !== -1 ? i : null)) : (i = D.call(this._longMonthsParse, a), i !== -1 ? i : (i = D.call(this._shortMonthsParse, a), i !== -1 ? i : null));
|
|
684
684
|
}
|
|
685
|
-
function
|
|
686
|
-
var
|
|
685
|
+
function yr(e, t, s) {
|
|
686
|
+
var r, i, n;
|
|
687
687
|
if (this._monthsParseExact)
|
|
688
|
-
return
|
|
689
|
-
for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []),
|
|
690
|
-
if (i =
|
|
688
|
+
return _r.call(this, e, t, s);
|
|
689
|
+
for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), r = 0; r < 12; r++) {
|
|
690
|
+
if (i = I([2e3, r]), s && !this._longMonthsParse[r] && (this._longMonthsParse[r] = new RegExp(
|
|
691
691
|
"^" + this.months(i, "").replace(".", "") + "$",
|
|
692
692
|
"i"
|
|
693
|
-
), this._shortMonthsParse[
|
|
693
|
+
), this._shortMonthsParse[r] = new RegExp(
|
|
694
694
|
"^" + this.monthsShort(i, "").replace(".", "") + "$",
|
|
695
695
|
"i"
|
|
696
|
-
)), !
|
|
697
|
-
return
|
|
696
|
+
)), !s && !this._monthsParse[r] && (n = "^" + this.months(i, "") + "|^" + this.monthsShort(i, ""), this._monthsParse[r] = new RegExp(n.replace(".", ""), "i")), s && t === "MMMM" && this._longMonthsParse[r].test(e))
|
|
697
|
+
return r;
|
|
698
|
+
if (s && t === "MMM" && this._shortMonthsParse[r].test(e))
|
|
699
|
+
return r;
|
|
700
|
+
if (!s && this._monthsParse[r].test(e))
|
|
701
|
+
return r;
|
|
702
|
+
}
|
|
698
703
|
}
|
|
699
|
-
function
|
|
700
|
-
if (!
|
|
701
|
-
return
|
|
702
|
-
if (typeof
|
|
703
|
-
if (/^\d+$/.test(
|
|
704
|
-
|
|
705
|
-
else if (
|
|
706
|
-
return
|
|
704
|
+
function Jt(e, t) {
|
|
705
|
+
if (!e.isValid())
|
|
706
|
+
return e;
|
|
707
|
+
if (typeof t == "string") {
|
|
708
|
+
if (/^\d+$/.test(t))
|
|
709
|
+
t = m(t);
|
|
710
|
+
else if (t = e.localeData().monthsParse(t), !Z(t))
|
|
711
|
+
return e;
|
|
707
712
|
}
|
|
708
|
-
var
|
|
709
|
-
return
|
|
713
|
+
var s = t, r = e.date();
|
|
714
|
+
return r = r < 29 ? r : Math.min(r, mt(e.year(), s)), e._isUTC ? e._d.setUTCMonth(s, r) : e._d.setMonth(s, r), e;
|
|
710
715
|
}
|
|
711
|
-
function
|
|
712
|
-
return
|
|
716
|
+
function Qt(e) {
|
|
717
|
+
return e != null ? (Jt(this, e), u.updateOffset(this, !0), this) : ye(this, "Month");
|
|
713
718
|
}
|
|
714
|
-
function
|
|
715
|
-
return
|
|
719
|
+
function wr() {
|
|
720
|
+
return mt(this.year(), this.month());
|
|
716
721
|
}
|
|
717
|
-
function
|
|
718
|
-
return this._monthsParseExact ? (
|
|
722
|
+
function pr(e) {
|
|
723
|
+
return this._monthsParseExact ? (w(this, "_monthsRegex") || Xt.call(this), e ? this._monthsShortStrictRegex : this._monthsShortRegex) : (w(this, "_monthsShortRegex") || (this._monthsShortRegex = hr), this._monthsShortStrictRegex && e ? this._monthsShortStrictRegex : this._monthsShortRegex);
|
|
719
724
|
}
|
|
720
|
-
function
|
|
721
|
-
return this._monthsParseExact ? (
|
|
725
|
+
function gr(e) {
|
|
726
|
+
return this._monthsParseExact ? (w(this, "_monthsRegex") || Xt.call(this), e ? this._monthsStrictRegex : this._monthsRegex) : (w(this, "_monthsRegex") || (this._monthsRegex = fr), this._monthsStrictRegex && e ? this._monthsStrictRegex : this._monthsRegex);
|
|
722
727
|
}
|
|
723
|
-
function
|
|
724
|
-
function
|
|
725
|
-
return _.length -
|
|
728
|
+
function Xt() {
|
|
729
|
+
function e(f, _) {
|
|
730
|
+
return _.length - f.length;
|
|
726
731
|
}
|
|
727
|
-
var
|
|
732
|
+
var t = [], s = [], r = [], i, n, a, l;
|
|
728
733
|
for (i = 0; i < 12; i++)
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
"^(" +
|
|
734
|
+
n = I([2e3, i]), a = z(this.monthsShort(n, "")), l = z(this.months(n, "")), t.push(a), s.push(l), r.push(l), r.push(a);
|
|
735
|
+
t.sort(e), s.sort(e), r.sort(e), this._monthsRegex = new RegExp("^(" + r.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp(
|
|
736
|
+
"^(" + s.join("|") + ")",
|
|
732
737
|
"i"
|
|
733
738
|
), this._monthsShortStrictRegex = new RegExp(
|
|
734
|
-
"^(" +
|
|
739
|
+
"^(" + t.join("|") + ")",
|
|
735
740
|
"i"
|
|
736
741
|
);
|
|
737
742
|
}
|
|
738
|
-
function
|
|
739
|
-
var
|
|
740
|
-
return
|
|
743
|
+
function kr(e, t, s, r, i, n, a) {
|
|
744
|
+
var l;
|
|
745
|
+
return e < 100 && e >= 0 ? (l = new Date(e + 400, t, s, r, i, n, a), isFinite(l.getFullYear()) && l.setFullYear(e)) : l = new Date(e, t, s, r, i, n, a), l;
|
|
741
746
|
}
|
|
742
|
-
function
|
|
743
|
-
var
|
|
744
|
-
return
|
|
747
|
+
function we(e) {
|
|
748
|
+
var t, s;
|
|
749
|
+
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;
|
|
745
750
|
}
|
|
746
|
-
function
|
|
747
|
-
var
|
|
748
|
-
return -i +
|
|
751
|
+
function Ne(e, t, s) {
|
|
752
|
+
var r = 7 + t - s, i = (7 + we(e, 0, r).getUTCDay() - t) % 7;
|
|
753
|
+
return -i + r - 1;
|
|
749
754
|
}
|
|
750
|
-
function
|
|
751
|
-
var
|
|
752
|
-
return
|
|
753
|
-
year:
|
|
755
|
+
function Kt(e, t, s, r, i) {
|
|
756
|
+
var n = (7 + s - r) % 7, a = Ne(e, r, i), l = 1 + 7 * (t - 1) + n + a, f, _;
|
|
757
|
+
return l <= 0 ? (f = e - 1, _ = _e(f) + l) : l > _e(e) ? (f = e + 1, _ = l - _e(e)) : (f = e, _ = l), {
|
|
758
|
+
year: f,
|
|
754
759
|
dayOfYear: _
|
|
755
760
|
};
|
|
756
761
|
}
|
|
757
|
-
function
|
|
758
|
-
var
|
|
759
|
-
return i < 1 ? (a =
|
|
760
|
-
week:
|
|
762
|
+
function pe(e, t, s) {
|
|
763
|
+
var r = Ne(e.year(), t, s), i = Math.floor((e.dayOfYear() - r - 1) / 7) + 1, n, a;
|
|
764
|
+
return i < 1 ? (a = e.year() - 1, n = i + $(a, t, s)) : i > $(e.year(), t, s) ? (n = i - $(e.year(), t, s), a = e.year() + 1) : (a = e.year(), n = i), {
|
|
765
|
+
week: n,
|
|
761
766
|
year: a
|
|
762
767
|
};
|
|
763
768
|
}
|
|
764
|
-
function
|
|
765
|
-
var
|
|
766
|
-
return (
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
769
|
+
function $(e, t, s) {
|
|
770
|
+
var r = Ne(e, t, s), i = Ne(e + 1, t, s);
|
|
771
|
+
return (_e(e) - r + i) / 7;
|
|
772
|
+
}
|
|
773
|
+
h("w", ["ww", 2], "wo", "week");
|
|
774
|
+
h("W", ["WW", 2], "Wo", "isoWeek");
|
|
775
|
+
d("w", M, he);
|
|
776
|
+
d("ww", M, T);
|
|
777
|
+
d("W", M, he);
|
|
778
|
+
d("WW", M, T);
|
|
779
|
+
De(
|
|
775
780
|
["w", "ww", "W", "WW"],
|
|
776
|
-
function(
|
|
777
|
-
|
|
781
|
+
function(e, t, s, r) {
|
|
782
|
+
t[r.substr(0, 1)] = m(e);
|
|
778
783
|
}
|
|
779
784
|
);
|
|
780
|
-
function
|
|
781
|
-
return
|
|
785
|
+
function Mr(e) {
|
|
786
|
+
return pe(e, this._week.dow, this._week.doy).week;
|
|
782
787
|
}
|
|
783
|
-
var
|
|
788
|
+
var Sr = {
|
|
784
789
|
dow: 0,
|
|
785
790
|
// Sunday is the first day of the week.
|
|
786
791
|
doy: 6
|
|
787
792
|
// The week that contains Jan 6th is the first week of the year.
|
|
788
793
|
};
|
|
789
|
-
function
|
|
794
|
+
function Dr() {
|
|
790
795
|
return this._week.dow;
|
|
791
796
|
}
|
|
792
|
-
function
|
|
797
|
+
function vr() {
|
|
793
798
|
return this._week.doy;
|
|
794
799
|
}
|
|
795
|
-
function
|
|
796
|
-
var
|
|
797
|
-
return
|
|
800
|
+
function Yr(e) {
|
|
801
|
+
var t = this.localeData().week(this);
|
|
802
|
+
return e == null ? t : this.add((e - t) * 7, "d");
|
|
798
803
|
}
|
|
799
|
-
function
|
|
800
|
-
var
|
|
801
|
-
return
|
|
804
|
+
function Or(e) {
|
|
805
|
+
var t = pe(this, 1, 4).week;
|
|
806
|
+
return e == null ? t : this.add((e - t) * 7, "d");
|
|
802
807
|
}
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
return this.localeData().weekdaysMin(this,
|
|
808
|
+
h("d", 0, "do", "day");
|
|
809
|
+
h("dd", 0, 0, function(e) {
|
|
810
|
+
return this.localeData().weekdaysMin(this, e);
|
|
806
811
|
});
|
|
807
|
-
|
|
808
|
-
return this.localeData().weekdaysShort(this,
|
|
812
|
+
h("ddd", 0, 0, function(e) {
|
|
813
|
+
return this.localeData().weekdaysShort(this, e);
|
|
809
814
|
});
|
|
810
|
-
|
|
811
|
-
return this.localeData().weekdays(this,
|
|
815
|
+
h("dddd", 0, 0, function(e) {
|
|
816
|
+
return this.localeData().weekdays(this, e);
|
|
812
817
|
});
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
return
|
|
818
|
+
h("e", 0, 0, "weekday");
|
|
819
|
+
h("E", 0, 0, "isoWeekday");
|
|
820
|
+
d("d", M);
|
|
821
|
+
d("e", M);
|
|
822
|
+
d("E", M);
|
|
823
|
+
d("dd", function(e, t) {
|
|
824
|
+
return t.weekdaysMinRegex(e);
|
|
820
825
|
});
|
|
821
|
-
|
|
822
|
-
return
|
|
826
|
+
d("ddd", function(e, t) {
|
|
827
|
+
return t.weekdaysShortRegex(e);
|
|
823
828
|
});
|
|
824
|
-
|
|
825
|
-
return
|
|
829
|
+
d("dddd", function(e, t) {
|
|
830
|
+
return t.weekdaysRegex(e);
|
|
826
831
|
});
|
|
827
|
-
|
|
828
|
-
var i =
|
|
829
|
-
i != null ?
|
|
832
|
+
De(["dd", "ddd", "dddd"], function(e, t, s, r) {
|
|
833
|
+
var i = s._locale.weekdaysParse(e, r, s._strict);
|
|
834
|
+
i != null ? t.d = i : c(s).invalidWeekday = e;
|
|
830
835
|
});
|
|
831
|
-
|
|
832
|
-
|
|
836
|
+
De(["d", "e", "E"], function(e, t, s, r) {
|
|
837
|
+
t[r] = m(e);
|
|
833
838
|
});
|
|
834
|
-
function
|
|
835
|
-
return typeof
|
|
839
|
+
function xr(e, t) {
|
|
840
|
+
return typeof e != "string" ? e : isNaN(e) ? (e = t.weekdaysParse(e), typeof e == "number" ? e : null) : parseInt(e, 10);
|
|
836
841
|
}
|
|
837
|
-
function
|
|
838
|
-
return typeof
|
|
842
|
+
function Tr(e, t) {
|
|
843
|
+
return typeof e == "string" ? t.weekdaysParse(e) % 7 || 7 : isNaN(e) ? null : e;
|
|
839
844
|
}
|
|
840
|
-
function
|
|
841
|
-
return
|
|
845
|
+
function _t(e, t) {
|
|
846
|
+
return e.slice(t, 7).concat(e.slice(0, t));
|
|
842
847
|
}
|
|
843
|
-
var
|
|
844
|
-
function
|
|
845
|
-
var
|
|
846
|
-
return
|
|
848
|
+
var br = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), es = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), Nr = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), Pr = Se, Wr = Se, Rr = Se;
|
|
849
|
+
function Fr(e, t) {
|
|
850
|
+
var s = R(this._weekdays) ? this._weekdays : this._weekdays[e && e !== !0 && this._weekdays.isFormat.test(t) ? "format" : "standalone"];
|
|
851
|
+
return e === !0 ? _t(s, this._week.dow) : e ? s[e.day()] : s;
|
|
847
852
|
}
|
|
848
|
-
function
|
|
849
|
-
return
|
|
853
|
+
function Cr(e) {
|
|
854
|
+
return e === !0 ? _t(this._weekdaysShort, this._week.dow) : e ? this._weekdaysShort[e.day()] : this._weekdaysShort;
|
|
850
855
|
}
|
|
851
|
-
function
|
|
852
|
-
return
|
|
856
|
+
function Lr(e) {
|
|
857
|
+
return e === !0 ? _t(this._weekdaysMin, this._week.dow) : e ? this._weekdaysMin[e.day()] : this._weekdaysMin;
|
|
853
858
|
}
|
|
854
|
-
function
|
|
855
|
-
var
|
|
859
|
+
function Er(e, t, s) {
|
|
860
|
+
var r, i, n, a = e.toLocaleLowerCase();
|
|
856
861
|
if (!this._weekdaysParse)
|
|
857
|
-
for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [],
|
|
858
|
-
|
|
859
|
-
|
|
862
|
+
for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], r = 0; r < 7; ++r)
|
|
863
|
+
n = I([2e3, 1]).day(r), this._minWeekdaysParse[r] = this.weekdaysMin(
|
|
864
|
+
n,
|
|
860
865
|
""
|
|
861
|
-
).toLocaleLowerCase(), this._shortWeekdaysParse[
|
|
862
|
-
|
|
866
|
+
).toLocaleLowerCase(), this._shortWeekdaysParse[r] = this.weekdaysShort(
|
|
867
|
+
n,
|
|
863
868
|
""
|
|
864
|
-
).toLocaleLowerCase(), this._weekdaysParse[
|
|
865
|
-
return
|
|
869
|
+
).toLocaleLowerCase(), this._weekdaysParse[r] = this.weekdays(n, "").toLocaleLowerCase();
|
|
870
|
+
return s ? t === "dddd" ? (i = D.call(this._weekdaysParse, a), i !== -1 ? i : null) : t === "ddd" ? (i = D.call(this._shortWeekdaysParse, a), i !== -1 ? i : null) : (i = D.call(this._minWeekdaysParse, a), i !== -1 ? i : null) : t === "dddd" ? (i = D.call(this._weekdaysParse, a), i !== -1 || (i = D.call(this._shortWeekdaysParse, a), i !== -1) ? i : (i = D.call(this._minWeekdaysParse, a), i !== -1 ? i : null)) : t === "ddd" ? (i = D.call(this._shortWeekdaysParse, a), i !== -1 || (i = D.call(this._weekdaysParse, a), i !== -1) ? i : (i = D.call(this._minWeekdaysParse, a), i !== -1 ? i : null)) : (i = D.call(this._minWeekdaysParse, a), i !== -1 || (i = D.call(this._weekdaysParse, a), i !== -1) ? i : (i = D.call(this._shortWeekdaysParse, a), i !== -1 ? i : null));
|
|
866
871
|
}
|
|
867
|
-
function
|
|
868
|
-
var
|
|
872
|
+
function Ir(e, t, s) {
|
|
873
|
+
var r, i, n;
|
|
869
874
|
if (this._weekdaysParseExact)
|
|
870
|
-
return
|
|
871
|
-
for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []),
|
|
872
|
-
if (i =
|
|
875
|
+
return Er.call(this, e, t, s);
|
|
876
|
+
for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), r = 0; r < 7; r++) {
|
|
877
|
+
if (i = I([2e3, 1]).day(r), s && !this._fullWeekdaysParse[r] && (this._fullWeekdaysParse[r] = new RegExp(
|
|
873
878
|
"^" + this.weekdays(i, "").replace(".", "\\.?") + "$",
|
|
874
879
|
"i"
|
|
875
|
-
), this._shortWeekdaysParse[
|
|
880
|
+
), this._shortWeekdaysParse[r] = new RegExp(
|
|
876
881
|
"^" + this.weekdaysShort(i, "").replace(".", "\\.?") + "$",
|
|
877
882
|
"i"
|
|
878
|
-
), this._minWeekdaysParse[
|
|
883
|
+
), this._minWeekdaysParse[r] = new RegExp(
|
|
879
884
|
"^" + this.weekdaysMin(i, "").replace(".", "\\.?") + "$",
|
|
880
885
|
"i"
|
|
881
|
-
)), this._weekdaysParse[
|
|
882
|
-
return
|
|
886
|
+
)), this._weekdaysParse[r] || (n = "^" + this.weekdays(i, "") + "|^" + this.weekdaysShort(i, "") + "|^" + this.weekdaysMin(i, ""), this._weekdaysParse[r] = new RegExp(n.replace(".", ""), "i")), s && t === "dddd" && this._fullWeekdaysParse[r].test(e))
|
|
887
|
+
return r;
|
|
888
|
+
if (s && t === "ddd" && this._shortWeekdaysParse[r].test(e))
|
|
889
|
+
return r;
|
|
890
|
+
if (s && t === "dd" && this._minWeekdaysParse[r].test(e))
|
|
891
|
+
return r;
|
|
892
|
+
if (!s && this._weekdaysParse[r].test(e))
|
|
893
|
+
return r;
|
|
894
|
+
}
|
|
883
895
|
}
|
|
884
|
-
function
|
|
896
|
+
function Ur(e) {
|
|
885
897
|
if (!this.isValid())
|
|
886
|
-
return
|
|
887
|
-
var
|
|
888
|
-
return
|
|
898
|
+
return e != null ? this : NaN;
|
|
899
|
+
var t = ye(this, "Day");
|
|
900
|
+
return e != null ? (e = xr(e, this.localeData()), this.add(e - t, "d")) : t;
|
|
889
901
|
}
|
|
890
|
-
function
|
|
902
|
+
function Hr(e) {
|
|
891
903
|
if (!this.isValid())
|
|
892
|
-
return
|
|
893
|
-
var
|
|
894
|
-
return
|
|
904
|
+
return e != null ? this : NaN;
|
|
905
|
+
var t = (this.day() + 7 - this.localeData()._week.dow) % 7;
|
|
906
|
+
return e == null ? t : this.add(e - t, "d");
|
|
895
907
|
}
|
|
896
|
-
function
|
|
908
|
+
function Ar(e) {
|
|
897
909
|
if (!this.isValid())
|
|
898
|
-
return
|
|
899
|
-
if (
|
|
900
|
-
var
|
|
901
|
-
return this.day(this.day() % 7 ?
|
|
910
|
+
return e != null ? this : NaN;
|
|
911
|
+
if (e != null) {
|
|
912
|
+
var t = Tr(e, this.localeData());
|
|
913
|
+
return this.day(this.day() % 7 ? t : t - 7);
|
|
902
914
|
} else
|
|
903
915
|
return this.day() || 7;
|
|
904
916
|
}
|
|
905
|
-
function
|
|
906
|
-
return this._weekdaysParseExact ? (
|
|
917
|
+
function jr(e) {
|
|
918
|
+
return this._weekdaysParseExact ? (w(this, "_weekdaysRegex") || yt.call(this), e ? this._weekdaysStrictRegex : this._weekdaysRegex) : (w(this, "_weekdaysRegex") || (this._weekdaysRegex = Pr), this._weekdaysStrictRegex && e ? this._weekdaysStrictRegex : this._weekdaysRegex);
|
|
907
919
|
}
|
|
908
|
-
function
|
|
909
|
-
return this._weekdaysParseExact ? (
|
|
920
|
+
function Gr(e) {
|
|
921
|
+
return this._weekdaysParseExact ? (w(this, "_weekdaysRegex") || yt.call(this), e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : (w(this, "_weekdaysShortRegex") || (this._weekdaysShortRegex = Wr), this._weekdaysShortStrictRegex && e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex);
|
|
910
922
|
}
|
|
911
|
-
function
|
|
912
|
-
return this._weekdaysParseExact ? (
|
|
923
|
+
function Vr(e) {
|
|
924
|
+
return this._weekdaysParseExact ? (w(this, "_weekdaysRegex") || yt.call(this), e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (w(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = Rr), this._weekdaysMinStrictRegex && e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex);
|
|
913
925
|
}
|
|
914
|
-
function
|
|
915
|
-
function
|
|
916
|
-
return
|
|
926
|
+
function yt() {
|
|
927
|
+
function e(O, H) {
|
|
928
|
+
return H.length - O.length;
|
|
917
929
|
}
|
|
918
|
-
var
|
|
919
|
-
for (
|
|
920
|
-
a =
|
|
921
|
-
|
|
922
|
-
"^(" +
|
|
930
|
+
var t = [], s = [], r = [], i = [], n, a, l, f, _;
|
|
931
|
+
for (n = 0; n < 7; n++)
|
|
932
|
+
a = I([2e3, 1]).day(n), l = z(this.weekdaysMin(a, "")), f = z(this.weekdaysShort(a, "")), _ = z(this.weekdays(a, "")), t.push(l), s.push(f), r.push(_), i.push(l), i.push(f), i.push(_);
|
|
933
|
+
t.sort(e), s.sort(e), r.sort(e), i.sort(e), this._weekdaysRegex = new RegExp("^(" + i.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp(
|
|
934
|
+
"^(" + r.join("|") + ")",
|
|
923
935
|
"i"
|
|
924
936
|
), this._weekdaysShortStrictRegex = new RegExp(
|
|
925
|
-
"^(" +
|
|
937
|
+
"^(" + s.join("|") + ")",
|
|
926
938
|
"i"
|
|
927
939
|
), this._weekdaysMinStrictRegex = new RegExp(
|
|
928
|
-
"^(" +
|
|
940
|
+
"^(" + t.join("|") + ")",
|
|
929
941
|
"i"
|
|
930
942
|
);
|
|
931
943
|
}
|
|
932
|
-
function
|
|
944
|
+
function wt() {
|
|
933
945
|
return this.hours() % 12 || 12;
|
|
934
946
|
}
|
|
935
|
-
function
|
|
947
|
+
function zr() {
|
|
936
948
|
return this.hours() || 24;
|
|
937
949
|
}
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
return "" +
|
|
950
|
+
h("H", ["HH", 2], 0, "hour");
|
|
951
|
+
h("h", ["hh", 2], 0, wt);
|
|
952
|
+
h("k", ["kk", 2], 0, zr);
|
|
953
|
+
h("hmm", 0, 0, function() {
|
|
954
|
+
return "" + wt.apply(this) + E(this.minutes(), 2);
|
|
943
955
|
});
|
|
944
|
-
|
|
945
|
-
return "" +
|
|
956
|
+
h("hmmss", 0, 0, function() {
|
|
957
|
+
return "" + wt.apply(this) + E(this.minutes(), 2) + E(this.seconds(), 2);
|
|
946
958
|
});
|
|
947
|
-
|
|
948
|
-
return "" + this.hours() +
|
|
959
|
+
h("Hmm", 0, 0, function() {
|
|
960
|
+
return "" + this.hours() + E(this.minutes(), 2);
|
|
949
961
|
});
|
|
950
|
-
|
|
951
|
-
return "" + this.hours() +
|
|
962
|
+
h("Hmmss", 0, 0, function() {
|
|
963
|
+
return "" + this.hours() + E(this.minutes(), 2) + E(this.seconds(), 2);
|
|
952
964
|
});
|
|
953
|
-
function
|
|
954
|
-
|
|
965
|
+
function ts(e, t) {
|
|
966
|
+
h(e, 0, 0, function() {
|
|
955
967
|
return this.localeData().meridiem(
|
|
956
968
|
this.hours(),
|
|
957
969
|
this.minutes(),
|
|
958
|
-
|
|
970
|
+
t
|
|
959
971
|
);
|
|
960
972
|
});
|
|
961
973
|
}
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
function
|
|
965
|
-
return
|
|
966
|
-
}
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
var
|
|
982
|
-
|
|
974
|
+
ts("a", !0);
|
|
975
|
+
ts("A", !1);
|
|
976
|
+
function ss(e, t) {
|
|
977
|
+
return t._meridiemParse;
|
|
978
|
+
}
|
|
979
|
+
d("a", ss);
|
|
980
|
+
d("A", ss);
|
|
981
|
+
d("H", M, ct);
|
|
982
|
+
d("h", M, he);
|
|
983
|
+
d("k", M, he);
|
|
984
|
+
d("HH", M, T);
|
|
985
|
+
d("hh", M, T);
|
|
986
|
+
d("kk", M, T);
|
|
987
|
+
d("hmm", Vt);
|
|
988
|
+
d("hmmss", zt);
|
|
989
|
+
d("Hmm", Vt);
|
|
990
|
+
d("Hmmss", zt);
|
|
991
|
+
g(["H", "HH"], v);
|
|
992
|
+
g(["k", "kk"], function(e, t, s) {
|
|
993
|
+
var r = m(e);
|
|
994
|
+
t[v] = r === 24 ? 0 : r;
|
|
983
995
|
});
|
|
984
|
-
|
|
985
|
-
|
|
996
|
+
g(["a", "A"], function(e, t, s) {
|
|
997
|
+
s._isPm = s._locale.isPM(e), s._meridiem = e;
|
|
986
998
|
});
|
|
987
|
-
|
|
988
|
-
|
|
999
|
+
g(["h", "hh"], function(e, t, s) {
|
|
1000
|
+
t[v] = m(e), c(s).bigHour = !0;
|
|
989
1001
|
});
|
|
990
|
-
|
|
991
|
-
var
|
|
992
|
-
|
|
1002
|
+
g("hmm", function(e, t, s) {
|
|
1003
|
+
var r = e.length - 2;
|
|
1004
|
+
t[v] = m(e.substr(0, r)), t[W] = m(e.substr(r)), c(s).bigHour = !0;
|
|
993
1005
|
});
|
|
994
|
-
|
|
995
|
-
var
|
|
996
|
-
|
|
1006
|
+
g("hmmss", function(e, t, s) {
|
|
1007
|
+
var r = e.length - 4, i = e.length - 2;
|
|
1008
|
+
t[v] = m(e.substr(0, r)), t[W] = m(e.substr(r, 2)), t[V] = m(e.substr(i)), c(s).bigHour = !0;
|
|
997
1009
|
});
|
|
998
|
-
|
|
999
|
-
var
|
|
1000
|
-
|
|
1010
|
+
g("Hmm", function(e, t, s) {
|
|
1011
|
+
var r = e.length - 2;
|
|
1012
|
+
t[v] = m(e.substr(0, r)), t[W] = m(e.substr(r));
|
|
1001
1013
|
});
|
|
1002
|
-
|
|
1003
|
-
var
|
|
1004
|
-
|
|
1014
|
+
g("Hmmss", function(e, t, s) {
|
|
1015
|
+
var r = e.length - 4, i = e.length - 2;
|
|
1016
|
+
t[v] = m(e.substr(0, r)), t[W] = m(e.substr(r, 2)), t[V] = m(e.substr(i));
|
|
1005
1017
|
});
|
|
1006
|
-
function
|
|
1007
|
-
return (
|
|
1008
|
-
}
|
|
1009
|
-
var
|
|
1010
|
-
function
|
|
1011
|
-
return
|
|
1012
|
-
}
|
|
1013
|
-
var
|
|
1014
|
-
calendar:
|
|
1015
|
-
longDateFormat:
|
|
1016
|
-
invalidDate:
|
|
1017
|
-
ordinal:
|
|
1018
|
-
dayOfMonthOrdinalParse:
|
|
1019
|
-
relativeTime:
|
|
1020
|
-
months:
|
|
1021
|
-
monthsShort:
|
|
1022
|
-
week:
|
|
1023
|
-
weekdays:
|
|
1024
|
-
weekdaysMin:
|
|
1025
|
-
weekdaysShort:
|
|
1026
|
-
meridiemParse:
|
|
1027
|
-
},
|
|
1028
|
-
function
|
|
1029
|
-
var
|
|
1030
|
-
for (
|
|
1031
|
-
if (
|
|
1032
|
-
return
|
|
1033
|
-
return
|
|
1018
|
+
function $r(e) {
|
|
1019
|
+
return (e + "").toLowerCase().charAt(0) === "p";
|
|
1020
|
+
}
|
|
1021
|
+
var Zr = /[ap]\.?m?\.?/i, Br = fe("Hours", !0);
|
|
1022
|
+
function qr(e, t, s) {
|
|
1023
|
+
return e > 11 ? s ? "pm" : "PM" : s ? "am" : "AM";
|
|
1024
|
+
}
|
|
1025
|
+
var rs = {
|
|
1026
|
+
calendar: Es,
|
|
1027
|
+
longDateFormat: As,
|
|
1028
|
+
invalidDate: Gs,
|
|
1029
|
+
ordinal: zs,
|
|
1030
|
+
dayOfMonthOrdinalParse: $s,
|
|
1031
|
+
relativeTime: Bs,
|
|
1032
|
+
months: dr,
|
|
1033
|
+
monthsShort: Bt,
|
|
1034
|
+
week: Sr,
|
|
1035
|
+
weekdays: br,
|
|
1036
|
+
weekdaysMin: Nr,
|
|
1037
|
+
weekdaysShort: es,
|
|
1038
|
+
meridiemParse: Zr
|
|
1039
|
+
}, S = {}, ce = {}, ge;
|
|
1040
|
+
function Jr(e, t) {
|
|
1041
|
+
var s, r = Math.min(e.length, t.length);
|
|
1042
|
+
for (s = 0; s < r; s += 1)
|
|
1043
|
+
if (e[s] !== t[s])
|
|
1044
|
+
return s;
|
|
1045
|
+
return r;
|
|
1034
1046
|
}
|
|
1035
|
-
function
|
|
1036
|
-
return
|
|
1047
|
+
function Nt(e) {
|
|
1048
|
+
return e && e.toLowerCase().replace("_", "-");
|
|
1037
1049
|
}
|
|
1038
|
-
function
|
|
1039
|
-
for (var
|
|
1040
|
-
for (
|
|
1041
|
-
if (i =
|
|
1050
|
+
function Qr(e) {
|
|
1051
|
+
for (var t = 0, s, r, i, n; t < e.length; ) {
|
|
1052
|
+
for (n = Nt(e[t]).split("-"), s = n.length, r = Nt(e[t + 1]), r = r ? r.split("-") : null; s > 0; ) {
|
|
1053
|
+
if (i = je(n.slice(0, s).join("-")), i)
|
|
1042
1054
|
return i;
|
|
1043
|
-
if (
|
|
1055
|
+
if (r && r.length >= s && Jr(n, r) >= s - 1)
|
|
1044
1056
|
break;
|
|
1045
|
-
|
|
1057
|
+
s--;
|
|
1046
1058
|
}
|
|
1047
|
-
|
|
1059
|
+
t++;
|
|
1048
1060
|
}
|
|
1049
|
-
return
|
|
1061
|
+
return ge;
|
|
1050
1062
|
}
|
|
1051
|
-
function
|
|
1052
|
-
return !!(
|
|
1063
|
+
function Xr(e) {
|
|
1064
|
+
return !!(e && e.match("^[^/\\\\]*$"));
|
|
1053
1065
|
}
|
|
1054
|
-
function
|
|
1055
|
-
var
|
|
1056
|
-
if (
|
|
1066
|
+
function je(e) {
|
|
1067
|
+
var t = null, s;
|
|
1068
|
+
if (S[e] === void 0 && typeof module < "u" && module && module.exports && Xr(e))
|
|
1057
1069
|
try {
|
|
1058
|
-
|
|
1070
|
+
t = ge._abbr, s = require, s("./locale/" + e), K(t);
|
|
1059
1071
|
} catch {
|
|
1060
|
-
|
|
1072
|
+
S[e] = null;
|
|
1061
1073
|
}
|
|
1062
|
-
return
|
|
1074
|
+
return S[e];
|
|
1063
1075
|
}
|
|
1064
|
-
function K(
|
|
1065
|
-
var
|
|
1066
|
-
return
|
|
1067
|
-
"Locale " +
|
|
1068
|
-
)),
|
|
1069
|
-
}
|
|
1070
|
-
function
|
|
1071
|
-
if (
|
|
1072
|
-
var
|
|
1073
|
-
if (
|
|
1074
|
-
|
|
1076
|
+
function K(e, t) {
|
|
1077
|
+
var s;
|
|
1078
|
+
return e && (x(t) ? s = B(e) : s = pt(e, t), s ? ge = s : typeof console < "u" && console.warn && console.warn(
|
|
1079
|
+
"Locale " + e + " not found. Did you forget to load it?"
|
|
1080
|
+
)), ge._abbr;
|
|
1081
|
+
}
|
|
1082
|
+
function pt(e, t) {
|
|
1083
|
+
if (t !== null) {
|
|
1084
|
+
var s, r = rs;
|
|
1085
|
+
if (t.abbr = e, S[e] != null)
|
|
1086
|
+
Ht(
|
|
1075
1087
|
"defineLocaleOverride",
|
|
1076
1088
|
"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."
|
|
1077
|
-
),
|
|
1078
|
-
else if (
|
|
1079
|
-
if (
|
|
1080
|
-
|
|
1081
|
-
else if (
|
|
1082
|
-
|
|
1089
|
+
), r = S[e]._config;
|
|
1090
|
+
else if (t.parentLocale != null)
|
|
1091
|
+
if (S[t.parentLocale] != null)
|
|
1092
|
+
r = S[t.parentLocale]._config;
|
|
1093
|
+
else if (s = je(t.parentLocale), s != null)
|
|
1094
|
+
r = s._config;
|
|
1083
1095
|
else
|
|
1084
|
-
return
|
|
1085
|
-
name:
|
|
1086
|
-
config:
|
|
1096
|
+
return ce[t.parentLocale] || (ce[t.parentLocale] = []), ce[t.parentLocale].push({
|
|
1097
|
+
name: e,
|
|
1098
|
+
config: t
|
|
1087
1099
|
}), null;
|
|
1088
|
-
return
|
|
1089
|
-
|
|
1090
|
-
}), K(
|
|
1100
|
+
return S[e] = new lt(Xe(r, t)), ce[e] && ce[e].forEach(function(i) {
|
|
1101
|
+
pt(i.name, i.config);
|
|
1102
|
+
}), K(e), S[e];
|
|
1091
1103
|
} else
|
|
1092
|
-
return delete
|
|
1104
|
+
return delete S[e], null;
|
|
1093
1105
|
}
|
|
1094
|
-
function
|
|
1095
|
-
if (
|
|
1096
|
-
var
|
|
1097
|
-
|
|
1106
|
+
function Kr(e, t) {
|
|
1107
|
+
if (t != null) {
|
|
1108
|
+
var s, r, i = rs;
|
|
1109
|
+
S[e] != null && S[e].parentLocale != null ? S[e].set(Xe(S[e]._config, t)) : (r = je(e), r != null && (i = r._config), t = Xe(i, t), r == null && (t.abbr = e), s = new lt(t), s.parentLocale = S[e], S[e] = s), K(e);
|
|
1098
1110
|
} else
|
|
1099
|
-
|
|
1100
|
-
return
|
|
1101
|
-
}
|
|
1102
|
-
function
|
|
1103
|
-
var
|
|
1104
|
-
if (
|
|
1105
|
-
return
|
|
1106
|
-
if (!R(
|
|
1107
|
-
if (
|
|
1108
|
-
return
|
|
1109
|
-
|
|
1111
|
+
S[e] != null && (S[e].parentLocale != null ? (S[e] = S[e].parentLocale, e === K() && K(e)) : S[e] != null && delete S[e]);
|
|
1112
|
+
return S[e];
|
|
1113
|
+
}
|
|
1114
|
+
function B(e) {
|
|
1115
|
+
var t;
|
|
1116
|
+
if (e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e)
|
|
1117
|
+
return ge;
|
|
1118
|
+
if (!R(e)) {
|
|
1119
|
+
if (t = je(e), t)
|
|
1120
|
+
return t;
|
|
1121
|
+
e = [e];
|
|
1110
1122
|
}
|
|
1111
|
-
return
|
|
1123
|
+
return Qr(e);
|
|
1112
1124
|
}
|
|
1113
1125
|
function ei() {
|
|
1114
|
-
return
|
|
1126
|
+
return Ke(S);
|
|
1115
1127
|
}
|
|
1116
|
-
function
|
|
1117
|
-
var
|
|
1118
|
-
return
|
|
1128
|
+
function gt(e) {
|
|
1129
|
+
var t, s = e._a;
|
|
1130
|
+
return s && c(e).overflow === -2 && (t = s[G] < 0 || s[G] > 11 ? G : s[L] < 1 || s[L] > mt(s[Y], s[G]) ? L : s[v] < 0 || s[v] > 24 || s[v] === 24 && (s[W] !== 0 || s[V] !== 0 || s[te] !== 0) ? v : s[W] < 0 || s[W] > 59 ? W : s[V] < 0 || s[V] > 59 ? V : s[te] < 0 || s[te] > 999 ? te : -1, c(e)._overflowDayOfYear && (t < Y || t > L) && (t = L), c(e)._overflowWeeks && t === -1 && (t = ir), c(e)._overflowWeekday && t === -1 && (t = nr), c(e).overflow = t), e;
|
|
1119
1131
|
}
|
|
1120
|
-
var
|
|
1132
|
+
var ti = /^\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)?)?$/, si = /^\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)?)?$/, ri = /Z|[+-]\d\d(?::?\d\d)?/, Ye = [
|
|
1121
1133
|
["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
|
|
1122
1134
|
["YYYY-MM-DD", /\d{4}-\d\d-\d\d/],
|
|
1123
1135
|
["GGGG-[W]WW-E", /\d{4}-W\d\d-\d/],
|
|
@@ -1131,7 +1143,7 @@ var ni = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
|
|
|
1131
1143
|
["YYYYDDD", /\d{7}/],
|
|
1132
1144
|
["YYYYMM", /\d{6}/, !1],
|
|
1133
1145
|
["YYYY", /\d{4}/, !1]
|
|
1134
|
-
],
|
|
1146
|
+
], Be = [
|
|
1135
1147
|
["HH:mm:ss.SSSS", /\d\d:\d\d:\d\d\.\d+/],
|
|
1136
1148
|
["HH:mm:ss,SSSS", /\d\d:\d\d:\d\d,\d+/],
|
|
1137
1149
|
["HH:mm:ss", /\d\d:\d\d:\d\d/],
|
|
@@ -1141,7 +1153,7 @@ var ni = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
|
|
|
1141
1153
|
["HHmmss", /\d\d\d\d\d\d/],
|
|
1142
1154
|
["HHmm", /\d\d\d\d/],
|
|
1143
1155
|
["HH", /\d\d/]
|
|
1144
|
-
],
|
|
1156
|
+
], ii = /^\/?Date\((-?\d+)/i, ni = /^(?:(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}))$/, ai = {
|
|
1145
1157
|
UT: 0,
|
|
1146
1158
|
GMT: 0,
|
|
1147
1159
|
EDT: -4 * 60,
|
|
@@ -1153,254 +1165,254 @@ var ni = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
|
|
|
1153
1165
|
PDT: -7 * 60,
|
|
1154
1166
|
PST: -8 * 60
|
|
1155
1167
|
};
|
|
1156
|
-
function
|
|
1157
|
-
var
|
|
1168
|
+
function is(e) {
|
|
1169
|
+
var t, s, r = e._i, i = ti.exec(r) || si.exec(r), n, a, l, f, _ = Ye.length, O = Be.length;
|
|
1158
1170
|
if (i) {
|
|
1159
|
-
for (
|
|
1160
|
-
if (
|
|
1161
|
-
a =
|
|
1171
|
+
for (c(e).iso = !0, t = 0, s = _; t < s; t++)
|
|
1172
|
+
if (Ye[t][1].exec(i[1])) {
|
|
1173
|
+
a = Ye[t][0], n = Ye[t][2] !== !1;
|
|
1162
1174
|
break;
|
|
1163
1175
|
}
|
|
1164
1176
|
if (a == null) {
|
|
1165
|
-
|
|
1177
|
+
e._isValid = !1;
|
|
1166
1178
|
return;
|
|
1167
1179
|
}
|
|
1168
1180
|
if (i[3]) {
|
|
1169
|
-
for (
|
|
1170
|
-
if (
|
|
1171
|
-
|
|
1181
|
+
for (t = 0, s = O; t < s; t++)
|
|
1182
|
+
if (Be[t][1].exec(i[3])) {
|
|
1183
|
+
l = (i[2] || " ") + Be[t][0];
|
|
1172
1184
|
break;
|
|
1173
1185
|
}
|
|
1174
|
-
if (
|
|
1175
|
-
|
|
1186
|
+
if (l == null) {
|
|
1187
|
+
e._isValid = !1;
|
|
1176
1188
|
return;
|
|
1177
1189
|
}
|
|
1178
1190
|
}
|
|
1179
|
-
if (!
|
|
1180
|
-
|
|
1191
|
+
if (!n && l != null) {
|
|
1192
|
+
e._isValid = !1;
|
|
1181
1193
|
return;
|
|
1182
1194
|
}
|
|
1183
1195
|
if (i[4])
|
|
1184
|
-
if (
|
|
1185
|
-
|
|
1196
|
+
if (ri.exec(i[4]))
|
|
1197
|
+
f = "Z";
|
|
1186
1198
|
else {
|
|
1187
|
-
|
|
1199
|
+
e._isValid = !1;
|
|
1188
1200
|
return;
|
|
1189
1201
|
}
|
|
1190
|
-
|
|
1202
|
+
e._f = a + (l || "") + (f || ""), Mt(e);
|
|
1191
1203
|
} else
|
|
1192
|
-
|
|
1204
|
+
e._isValid = !1;
|
|
1193
1205
|
}
|
|
1194
|
-
function
|
|
1206
|
+
function oi(e, t, s, r, i, n) {
|
|
1195
1207
|
var a = [
|
|
1196
|
-
li(
|
|
1197
|
-
|
|
1198
|
-
parseInt(n, 10),
|
|
1208
|
+
li(e),
|
|
1209
|
+
Bt.indexOf(t),
|
|
1199
1210
|
parseInt(s, 10),
|
|
1211
|
+
parseInt(r, 10),
|
|
1200
1212
|
parseInt(i, 10)
|
|
1201
1213
|
];
|
|
1202
|
-
return
|
|
1214
|
+
return n && a.push(parseInt(n, 10)), a;
|
|
1203
1215
|
}
|
|
1204
|
-
function li(
|
|
1205
|
-
var
|
|
1206
|
-
return
|
|
1216
|
+
function li(e) {
|
|
1217
|
+
var t = parseInt(e, 10);
|
|
1218
|
+
return t <= 49 ? 2e3 + t : t <= 999 ? 1900 + t : t;
|
|
1207
1219
|
}
|
|
1208
|
-
function
|
|
1209
|
-
return
|
|
1220
|
+
function ui(e) {
|
|
1221
|
+
return e.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, "");
|
|
1210
1222
|
}
|
|
1211
|
-
function di(
|
|
1212
|
-
if (
|
|
1213
|
-
var
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1223
|
+
function di(e, t, s) {
|
|
1224
|
+
if (e) {
|
|
1225
|
+
var r = es.indexOf(e), i = new Date(
|
|
1226
|
+
t[0],
|
|
1227
|
+
t[1],
|
|
1228
|
+
t[2]
|
|
1217
1229
|
).getDay();
|
|
1218
|
-
if (
|
|
1219
|
-
return
|
|
1230
|
+
if (r !== i)
|
|
1231
|
+
return c(s).weekdayMismatch = !0, s._isValid = !1, !1;
|
|
1220
1232
|
}
|
|
1221
1233
|
return !0;
|
|
1222
1234
|
}
|
|
1223
|
-
function
|
|
1224
|
-
if (t)
|
|
1225
|
-
return oi[t];
|
|
1235
|
+
function hi(e, t, s) {
|
|
1226
1236
|
if (e)
|
|
1237
|
+
return ai[e];
|
|
1238
|
+
if (t)
|
|
1227
1239
|
return 0;
|
|
1228
|
-
var
|
|
1229
|
-
return
|
|
1240
|
+
var r = parseInt(s, 10), i = r % 100, n = (r - i) / 100;
|
|
1241
|
+
return n * 60 + i;
|
|
1230
1242
|
}
|
|
1231
|
-
function
|
|
1232
|
-
var
|
|
1233
|
-
if (
|
|
1234
|
-
if (
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
), !di(
|
|
1243
|
+
function ns(e) {
|
|
1244
|
+
var t = ni.exec(ui(e._i)), s;
|
|
1245
|
+
if (t) {
|
|
1246
|
+
if (s = oi(
|
|
1247
|
+
t[4],
|
|
1248
|
+
t[3],
|
|
1249
|
+
t[2],
|
|
1250
|
+
t[5],
|
|
1251
|
+
t[6],
|
|
1252
|
+
t[7]
|
|
1253
|
+
), !di(t[1], s, e))
|
|
1242
1254
|
return;
|
|
1243
|
-
|
|
1255
|
+
e._a = s, e._tzm = hi(t[8], t[9], t[10]), e._d = we.apply(null, e._a), e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), c(e).rfc2822 = !0;
|
|
1244
1256
|
} else
|
|
1245
|
-
|
|
1257
|
+
e._isValid = !1;
|
|
1246
1258
|
}
|
|
1247
|
-
function fi(
|
|
1248
|
-
var
|
|
1249
|
-
if (
|
|
1250
|
-
|
|
1259
|
+
function fi(e) {
|
|
1260
|
+
var t = ii.exec(e._i);
|
|
1261
|
+
if (t !== null) {
|
|
1262
|
+
e._d = /* @__PURE__ */ new Date(+t[1]);
|
|
1251
1263
|
return;
|
|
1252
1264
|
}
|
|
1253
|
-
if (
|
|
1254
|
-
delete
|
|
1265
|
+
if (is(e), e._isValid === !1)
|
|
1266
|
+
delete e._isValid;
|
|
1255
1267
|
else
|
|
1256
1268
|
return;
|
|
1257
|
-
if (
|
|
1258
|
-
delete
|
|
1269
|
+
if (ns(e), e._isValid === !1)
|
|
1270
|
+
delete e._isValid;
|
|
1259
1271
|
else
|
|
1260
1272
|
return;
|
|
1261
|
-
|
|
1273
|
+
e._strict ? e._isValid = !1 : u.createFromInputFallback(e);
|
|
1262
1274
|
}
|
|
1263
|
-
|
|
1275
|
+
u.createFromInputFallback = N(
|
|
1264
1276
|
"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.",
|
|
1265
|
-
function(
|
|
1266
|
-
|
|
1277
|
+
function(e) {
|
|
1278
|
+
e._d = /* @__PURE__ */ new Date(e._i + (e._useUTC ? " UTC" : ""));
|
|
1267
1279
|
}
|
|
1268
1280
|
);
|
|
1269
|
-
function
|
|
1270
|
-
return
|
|
1271
|
-
}
|
|
1272
|
-
function
|
|
1273
|
-
var
|
|
1274
|
-
return
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
] : [
|
|
1279
|
-
}
|
|
1280
|
-
function
|
|
1281
|
-
var
|
|
1282
|
-
if (!
|
|
1283
|
-
for (i =
|
|
1284
|
-
|
|
1285
|
-
for (;
|
|
1286
|
-
|
|
1287
|
-
|
|
1281
|
+
function ne(e, t, s) {
|
|
1282
|
+
return e ?? t ?? s;
|
|
1283
|
+
}
|
|
1284
|
+
function ci(e) {
|
|
1285
|
+
var t = new Date(u.now());
|
|
1286
|
+
return e._useUTC ? [
|
|
1287
|
+
t.getUTCFullYear(),
|
|
1288
|
+
t.getUTCMonth(),
|
|
1289
|
+
t.getUTCDate()
|
|
1290
|
+
] : [t.getFullYear(), t.getMonth(), t.getDate()];
|
|
1291
|
+
}
|
|
1292
|
+
function kt(e) {
|
|
1293
|
+
var t, s, r = [], i, n, a;
|
|
1294
|
+
if (!e._d) {
|
|
1295
|
+
for (i = ci(e), e._w && e._a[L] == null && e._a[G] == null && mi(e), e._dayOfYear != null && (a = ne(e._a[Y], i[Y]), (e._dayOfYear > _e(a) || e._dayOfYear === 0) && (c(e)._overflowDayOfYear = !0), s = we(a, 0, e._dayOfYear), e._a[G] = s.getUTCMonth(), e._a[L] = s.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
|
|
1296
|
+
e._a[t] = r[t] = i[t];
|
|
1297
|
+
for (; t < 7; t++)
|
|
1298
|
+
e._a[t] = r[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
|
|
1299
|
+
e._a[v] === 24 && e._a[W] === 0 && e._a[V] === 0 && e._a[te] === 0 && (e._nextDay = !0, e._a[v] = 0), e._d = (e._useUTC ? we : kr).apply(
|
|
1288
1300
|
null,
|
|
1289
|
-
|
|
1290
|
-
),
|
|
1301
|
+
r
|
|
1302
|
+
), n = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), e._tzm != null && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[v] = 24), e._w && typeof e._w.d < "u" && e._w.d !== n && (c(e).weekdayMismatch = !0);
|
|
1291
1303
|
}
|
|
1292
1304
|
}
|
|
1293
|
-
function
|
|
1294
|
-
var
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
),
|
|
1305
|
+
function mi(e) {
|
|
1306
|
+
var t, s, r, i, n, a, l, f, _;
|
|
1307
|
+
t = e._w, t.GG != null || t.W != null || t.E != null ? (n = 1, a = 4, s = ne(
|
|
1308
|
+
t.GG,
|
|
1309
|
+
e._a[Y],
|
|
1310
|
+
pe(k(), 1, 4).year
|
|
1311
|
+
), r = ne(t.W, 1), i = ne(t.E, 1), (i < 1 || i > 7) && (f = !0)) : (n = e._locale._week.dow, a = e._locale._week.doy, _ = pe(k(), n, a), s = ne(t.gg, e._a[Y], _.year), r = ne(t.w, _.week), t.d != null ? (i = t.d, (i < 0 || i > 6) && (f = !0)) : t.e != null ? (i = t.e + n, (t.e < 0 || t.e > 6) && (f = !0)) : i = n), r < 1 || r > $(s, n, a) ? c(e)._overflowWeeks = !0 : f != null ? c(e)._overflowWeekday = !0 : (l = Kt(s, r, i, n, a), e._a[Y] = l.year, e._dayOfYear = l.dayOfYear);
|
|
1300
1312
|
}
|
|
1301
|
-
|
|
1313
|
+
u.ISO_8601 = function() {
|
|
1302
1314
|
};
|
|
1303
|
-
|
|
1315
|
+
u.RFC_2822 = function() {
|
|
1304
1316
|
};
|
|
1305
|
-
function
|
|
1306
|
-
if (
|
|
1307
|
-
|
|
1317
|
+
function Mt(e) {
|
|
1318
|
+
if (e._f === u.ISO_8601) {
|
|
1319
|
+
is(e);
|
|
1308
1320
|
return;
|
|
1309
1321
|
}
|
|
1310
|
-
if (
|
|
1311
|
-
|
|
1322
|
+
if (e._f === u.RFC_2822) {
|
|
1323
|
+
ns(e);
|
|
1312
1324
|
return;
|
|
1313
1325
|
}
|
|
1314
|
-
|
|
1315
|
-
var
|
|
1316
|
-
for (i =
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
),
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
), _ =
|
|
1325
|
-
}
|
|
1326
|
-
function
|
|
1327
|
-
var
|
|
1328
|
-
return
|
|
1326
|
+
e._a = [], c(e).empty = !0;
|
|
1327
|
+
var t = "" + e._i, s, r, i, n, a, l = t.length, f = 0, _, O;
|
|
1328
|
+
for (i = At(e._f, e._locale).match(ut) || [], O = i.length, s = 0; s < O; s++)
|
|
1329
|
+
n = i[s], r = (t.match(tr(n, e)) || [])[0], r && (a = t.substr(0, t.indexOf(r)), a.length > 0 && c(e).unusedInput.push(a), t = t.slice(
|
|
1330
|
+
t.indexOf(r) + r.length
|
|
1331
|
+
), f += r.length), oe[n] ? (r ? c(e).empty = !1 : c(e).unusedTokens.push(n), rr(n, r, e)) : e._strict && !r && c(e).unusedTokens.push(n);
|
|
1332
|
+
c(e).charsLeftOver = l - f, t.length > 0 && c(e).unusedInput.push(t), e._a[v] <= 12 && c(e).bigHour === !0 && e._a[v] > 0 && (c(e).bigHour = void 0), c(e).parsedDateParts = e._a.slice(0), c(e).meridiem = e._meridiem, e._a[v] = _i(
|
|
1333
|
+
e._locale,
|
|
1334
|
+
e._a[v],
|
|
1335
|
+
e._meridiem
|
|
1336
|
+
), _ = c(e).era, _ !== null && (e._a[Y] = e._locale.erasConvertYear(_, e._a[Y])), kt(e), gt(e);
|
|
1337
|
+
}
|
|
1338
|
+
function _i(e, t, s) {
|
|
1339
|
+
var r;
|
|
1340
|
+
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);
|
|
1329
1341
|
}
|
|
1330
|
-
function
|
|
1331
|
-
var
|
|
1332
|
-
if (
|
|
1333
|
-
|
|
1342
|
+
function yi(e) {
|
|
1343
|
+
var t, s, r, i, n, a, l = !1, f = e._f.length;
|
|
1344
|
+
if (f === 0) {
|
|
1345
|
+
c(e).invalidFormat = !0, e._d = /* @__PURE__ */ new Date(NaN);
|
|
1334
1346
|
return;
|
|
1335
1347
|
}
|
|
1336
|
-
for (i = 0; i <
|
|
1337
|
-
|
|
1338
|
-
Q(
|
|
1339
|
-
}
|
|
1340
|
-
function
|
|
1341
|
-
if (!
|
|
1342
|
-
var
|
|
1343
|
-
|
|
1344
|
-
[
|
|
1345
|
-
function(
|
|
1346
|
-
return
|
|
1348
|
+
for (i = 0; i < f; i++)
|
|
1349
|
+
n = 0, a = !1, t = ot({}, e), e._useUTC != null && (t._useUTC = e._useUTC), t._f = e._f[i], Mt(t), at(t) && (a = !0), n += c(t).charsLeftOver, n += c(t).unusedTokens.length * 10, c(t).score = n, l ? n < r && (r = n, s = t) : (r == null || n < r || a) && (r = n, s = t, a && (l = !0));
|
|
1350
|
+
Q(e, s || t);
|
|
1351
|
+
}
|
|
1352
|
+
function wi(e) {
|
|
1353
|
+
if (!e._d) {
|
|
1354
|
+
var t = dt(e._i), s = t.day === void 0 ? t.date : t.day;
|
|
1355
|
+
e._a = It(
|
|
1356
|
+
[t.year, t.month, s, t.hour, t.minute, t.second, t.millisecond],
|
|
1357
|
+
function(r) {
|
|
1358
|
+
return r && parseInt(r, 10);
|
|
1347
1359
|
}
|
|
1348
|
-
),
|
|
1360
|
+
), kt(e);
|
|
1349
1361
|
}
|
|
1350
1362
|
}
|
|
1351
|
-
function
|
|
1352
|
-
var
|
|
1353
|
-
return
|
|
1363
|
+
function pi(e) {
|
|
1364
|
+
var t = new Me(gt(as(e)));
|
|
1365
|
+
return t._nextDay && (t.add(1, "d"), t._nextDay = void 0), t;
|
|
1354
1366
|
}
|
|
1355
|
-
function
|
|
1356
|
-
var
|
|
1357
|
-
return
|
|
1367
|
+
function as(e) {
|
|
1368
|
+
var t = e._i, s = e._f;
|
|
1369
|
+
return e._locale = e._locale || B(e._l), t === null || s === void 0 && t === "" ? Ce({ nullInput: !0 }) : (typeof t == "string" && (e._i = t = e._locale.preparse(t)), F(t) ? new Me(gt(t)) : (ke(t) ? e._d = t : R(s) ? yi(e) : s ? Mt(e) : gi(e), at(e) || (e._d = null), e));
|
|
1358
1370
|
}
|
|
1359
|
-
function
|
|
1360
|
-
var
|
|
1361
|
-
|
|
1362
|
-
return parseInt(
|
|
1363
|
-
}),
|
|
1371
|
+
function gi(e) {
|
|
1372
|
+
var t = e._i;
|
|
1373
|
+
x(t) ? e._d = new Date(u.now()) : ke(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? fi(e) : R(t) ? (e._a = It(t.slice(0), function(s) {
|
|
1374
|
+
return parseInt(s, 10);
|
|
1375
|
+
}), kt(e)) : se(t) ? wi(e) : Z(t) ? e._d = new Date(t) : u.createFromInputFallback(e);
|
|
1364
1376
|
}
|
|
1365
|
-
function
|
|
1366
|
-
var
|
|
1367
|
-
return (
|
|
1377
|
+
function os(e, t, s, r, i) {
|
|
1378
|
+
var n = {};
|
|
1379
|
+
return (t === !0 || t === !1) && (r = t, t = void 0), (s === !0 || s === !1) && (r = s, s = void 0), (se(e) && nt(e) || R(e) && e.length === 0) && (e = void 0), n._isAMomentObject = !0, n._useUTC = n._isUTC = i, n._l = s, n._i = e, n._f = t, n._strict = r, pi(n);
|
|
1368
1380
|
}
|
|
1369
|
-
function
|
|
1370
|
-
return
|
|
1381
|
+
function k(e, t, s, r) {
|
|
1382
|
+
return os(e, t, s, r, !1);
|
|
1371
1383
|
}
|
|
1372
1384
|
var ki = N(
|
|
1373
1385
|
"moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
|
|
1374
1386
|
function() {
|
|
1375
|
-
var
|
|
1376
|
-
return this.isValid() &&
|
|
1387
|
+
var e = k.apply(null, arguments);
|
|
1388
|
+
return this.isValid() && e.isValid() ? e < this ? this : e : Ce();
|
|
1377
1389
|
}
|
|
1378
1390
|
), Mi = N(
|
|
1379
1391
|
"moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",
|
|
1380
1392
|
function() {
|
|
1381
|
-
var
|
|
1382
|
-
return this.isValid() &&
|
|
1393
|
+
var e = k.apply(null, arguments);
|
|
1394
|
+
return this.isValid() && e.isValid() ? e > this ? this : e : Ce();
|
|
1383
1395
|
}
|
|
1384
1396
|
);
|
|
1385
|
-
function
|
|
1386
|
-
var
|
|
1387
|
-
if (
|
|
1388
|
-
return
|
|
1389
|
-
for (
|
|
1390
|
-
(!
|
|
1391
|
-
return
|
|
1397
|
+
function ls(e, t) {
|
|
1398
|
+
var s, r;
|
|
1399
|
+
if (t.length === 1 && R(t[0]) && (t = t[0]), !t.length)
|
|
1400
|
+
return k();
|
|
1401
|
+
for (s = t[0], r = 1; r < t.length; ++r)
|
|
1402
|
+
(!t[r].isValid() || t[r][e](s)) && (s = t[r]);
|
|
1403
|
+
return s;
|
|
1392
1404
|
}
|
|
1393
1405
|
function Si() {
|
|
1394
|
-
var
|
|
1395
|
-
return
|
|
1406
|
+
var e = [].slice.call(arguments, 0);
|
|
1407
|
+
return ls("isBefore", e);
|
|
1396
1408
|
}
|
|
1397
1409
|
function Di() {
|
|
1398
|
-
var
|
|
1399
|
-
return
|
|
1410
|
+
var e = [].slice.call(arguments, 0);
|
|
1411
|
+
return ls("isAfter", e);
|
|
1400
1412
|
}
|
|
1401
|
-
var
|
|
1413
|
+
var vi = function() {
|
|
1402
1414
|
return Date.now ? Date.now() : +/* @__PURE__ */ new Date();
|
|
1403
|
-
},
|
|
1415
|
+
}, me = [
|
|
1404
1416
|
"year",
|
|
1405
1417
|
"quarter",
|
|
1406
1418
|
"month",
|
|
@@ -1411,191 +1423,191 @@ var Yi = function() {
|
|
|
1411
1423
|
"second",
|
|
1412
1424
|
"millisecond"
|
|
1413
1425
|
];
|
|
1414
|
-
function
|
|
1415
|
-
var
|
|
1416
|
-
for (
|
|
1417
|
-
if (
|
|
1426
|
+
function Yi(e) {
|
|
1427
|
+
var t, s = !1, r, i = me.length;
|
|
1428
|
+
for (t in e)
|
|
1429
|
+
if (w(e, t) && !(D.call(me, t) !== -1 && (e[t] == null || !isNaN(e[t]))))
|
|
1418
1430
|
return !1;
|
|
1419
|
-
for (
|
|
1420
|
-
if (
|
|
1421
|
-
if (
|
|
1431
|
+
for (r = 0; r < i; ++r)
|
|
1432
|
+
if (e[me[r]]) {
|
|
1433
|
+
if (s)
|
|
1422
1434
|
return !1;
|
|
1423
|
-
parseFloat(
|
|
1435
|
+
parseFloat(e[me[r]]) !== m(e[me[r]]) && (s = !0);
|
|
1424
1436
|
}
|
|
1425
1437
|
return !0;
|
|
1426
1438
|
}
|
|
1427
1439
|
function Oi() {
|
|
1428
1440
|
return this._isValid;
|
|
1429
1441
|
}
|
|
1430
|
-
function
|
|
1431
|
-
return
|
|
1442
|
+
function xi() {
|
|
1443
|
+
return C(NaN);
|
|
1432
1444
|
}
|
|
1433
|
-
function
|
|
1434
|
-
var
|
|
1435
|
-
this._isValid =
|
|
1436
|
-
|
|
1437
|
-
|
|
1445
|
+
function Ge(e) {
|
|
1446
|
+
var t = dt(e), s = t.year || 0, r = t.quarter || 0, i = t.month || 0, n = t.week || t.isoWeek || 0, a = t.day || 0, l = t.hour || 0, f = t.minute || 0, _ = t.second || 0, O = t.millisecond || 0;
|
|
1447
|
+
this._isValid = Yi(t), this._milliseconds = +O + _ * 1e3 + // 1000
|
|
1448
|
+
f * 6e4 + // 1000 * 60
|
|
1449
|
+
l * 1e3 * 60 * 60, this._days = +a + n * 7, this._months = +i + r * 3 + s * 12, this._data = {}, this._locale = B(), this._bubble();
|
|
1438
1450
|
}
|
|
1439
|
-
function
|
|
1440
|
-
return
|
|
1451
|
+
function xe(e) {
|
|
1452
|
+
return e instanceof Ge;
|
|
1441
1453
|
}
|
|
1442
|
-
function
|
|
1443
|
-
return
|
|
1454
|
+
function tt(e) {
|
|
1455
|
+
return e < 0 ? Math.round(-1 * e) * -1 : Math.round(e);
|
|
1444
1456
|
}
|
|
1445
|
-
function
|
|
1446
|
-
var
|
|
1447
|
-
for (a = 0; a <
|
|
1448
|
-
m(
|
|
1449
|
-
return
|
|
1457
|
+
function Ti(e, t, s) {
|
|
1458
|
+
var r = Math.min(e.length, t.length), i = Math.abs(e.length - t.length), n = 0, a;
|
|
1459
|
+
for (a = 0; a < r; a++)
|
|
1460
|
+
m(e[a]) !== m(t[a]) && n++;
|
|
1461
|
+
return n + i;
|
|
1450
1462
|
}
|
|
1451
|
-
function
|
|
1452
|
-
|
|
1453
|
-
var
|
|
1454
|
-
return
|
|
1463
|
+
function us(e, t) {
|
|
1464
|
+
h(e, 0, 0, function() {
|
|
1465
|
+
var s = this.utcOffset(), r = "+";
|
|
1466
|
+
return s < 0 && (s = -s, r = "-"), r + E(~~(s / 60), 2) + t + E(~~s % 60, 2);
|
|
1455
1467
|
});
|
|
1456
1468
|
}
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1469
|
+
us("Z", ":");
|
|
1470
|
+
us("ZZ", "");
|
|
1471
|
+
d("Z", He);
|
|
1472
|
+
d("ZZ", He);
|
|
1473
|
+
g(["Z", "ZZ"], function(e, t, s) {
|
|
1474
|
+
s._useUTC = !0, s._tzm = St(He, e);
|
|
1463
1475
|
});
|
|
1464
|
-
var
|
|
1465
|
-
function
|
|
1466
|
-
var
|
|
1467
|
-
return
|
|
1476
|
+
var bi = /([\+\-]|\d\d)/gi;
|
|
1477
|
+
function St(e, t) {
|
|
1478
|
+
var s = (t || "").match(e), r, i, n;
|
|
1479
|
+
return s === null ? null : (r = s[s.length - 1] || [], i = (r + "").match(bi) || ["-", 0, 0], n = +(i[1] * 60) + m(i[2]), n === 0 ? 0 : i[0] === "+" ? n : -n);
|
|
1468
1480
|
}
|
|
1469
|
-
function
|
|
1470
|
-
var
|
|
1471
|
-
return
|
|
1481
|
+
function Dt(e, t) {
|
|
1482
|
+
var s, r;
|
|
1483
|
+
return t._isUTC ? (s = t.clone(), r = (F(e) || ke(e) ? e.valueOf() : k(e).valueOf()) - s.valueOf(), s._d.setTime(s._d.valueOf() + r), u.updateOffset(s, !1), s) : k(e).local();
|
|
1472
1484
|
}
|
|
1473
|
-
function
|
|
1474
|
-
return -Math.round(
|
|
1485
|
+
function st(e) {
|
|
1486
|
+
return -Math.round(e._d.getTimezoneOffset());
|
|
1475
1487
|
}
|
|
1476
|
-
|
|
1488
|
+
u.updateOffset = function() {
|
|
1477
1489
|
};
|
|
1478
|
-
function
|
|
1479
|
-
var
|
|
1490
|
+
function Ni(e, t, s) {
|
|
1491
|
+
var r = this._offset || 0, i;
|
|
1480
1492
|
if (!this.isValid())
|
|
1481
|
-
return
|
|
1482
|
-
if (
|
|
1483
|
-
if (typeof
|
|
1484
|
-
if (
|
|
1493
|
+
return e != null ? this : NaN;
|
|
1494
|
+
if (e != null) {
|
|
1495
|
+
if (typeof e == "string") {
|
|
1496
|
+
if (e = St(He, e), e === null)
|
|
1485
1497
|
return this;
|
|
1486
|
-
} else Math.abs(
|
|
1487
|
-
return !this._isUTC &&
|
|
1498
|
+
} else Math.abs(e) < 16 && !s && (e = e * 60);
|
|
1499
|
+
return !this._isUTC && t && (i = st(this)), this._offset = e, this._isUTC = !0, i != null && this.add(i, "m"), r !== e && (!t || this._changeInProgress ? fs(
|
|
1488
1500
|
this,
|
|
1489
|
-
|
|
1501
|
+
C(e - r, "m"),
|
|
1490
1502
|
1,
|
|
1491
1503
|
!1
|
|
1492
|
-
) : this._changeInProgress || (this._changeInProgress = !0,
|
|
1504
|
+
) : this._changeInProgress || (this._changeInProgress = !0, u.updateOffset(this, !0), this._changeInProgress = null)), this;
|
|
1493
1505
|
} else
|
|
1494
|
-
return this._isUTC ?
|
|
1506
|
+
return this._isUTC ? r : st(this);
|
|
1495
1507
|
}
|
|
1496
|
-
function
|
|
1497
|
-
return
|
|
1508
|
+
function Pi(e, t) {
|
|
1509
|
+
return e != null ? (typeof e != "string" && (e = -e), this.utcOffset(e, t), this) : -this.utcOffset();
|
|
1498
1510
|
}
|
|
1499
|
-
function
|
|
1500
|
-
return this.utcOffset(0,
|
|
1511
|
+
function Wi(e) {
|
|
1512
|
+
return this.utcOffset(0, e);
|
|
1501
1513
|
}
|
|
1502
|
-
function
|
|
1503
|
-
return this._isUTC && (this.utcOffset(0,
|
|
1514
|
+
function Ri(e) {
|
|
1515
|
+
return this._isUTC && (this.utcOffset(0, e), this._isUTC = !1, e && this.subtract(st(this), "m")), this;
|
|
1504
1516
|
}
|
|
1505
|
-
function
|
|
1517
|
+
function Fi() {
|
|
1506
1518
|
if (this._tzm != null)
|
|
1507
1519
|
this.utcOffset(this._tzm, !1, !0);
|
|
1508
1520
|
else if (typeof this._i == "string") {
|
|
1509
|
-
var
|
|
1510
|
-
|
|
1521
|
+
var e = St(Ks, this._i);
|
|
1522
|
+
e != null ? this.utcOffset(e) : this.utcOffset(0, !0);
|
|
1511
1523
|
}
|
|
1512
1524
|
return this;
|
|
1513
1525
|
}
|
|
1514
|
-
function
|
|
1515
|
-
return this.isValid() ? (
|
|
1526
|
+
function Ci(e) {
|
|
1527
|
+
return this.isValid() ? (e = e ? k(e).utcOffset() : 0, (this.utcOffset() - e) % 60 === 0) : !1;
|
|
1516
1528
|
}
|
|
1517
|
-
function
|
|
1529
|
+
function Li() {
|
|
1518
1530
|
return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();
|
|
1519
1531
|
}
|
|
1520
1532
|
function Ei() {
|
|
1521
|
-
if (!
|
|
1533
|
+
if (!x(this._isDSTShifted))
|
|
1522
1534
|
return this._isDSTShifted;
|
|
1523
|
-
var
|
|
1524
|
-
return
|
|
1535
|
+
var e = {}, t;
|
|
1536
|
+
return ot(e, this), e = as(e), e._a ? (t = e._isUTC ? I(e._a) : k(e._a), this._isDSTShifted = this.isValid() && Ti(e._a, t.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
|
|
1525
1537
|
}
|
|
1526
|
-
function
|
|
1538
|
+
function Ii() {
|
|
1527
1539
|
return this.isValid() ? !this._isUTC : !1;
|
|
1528
1540
|
}
|
|
1529
|
-
function
|
|
1541
|
+
function Ui() {
|
|
1530
1542
|
return this.isValid() ? this._isUTC : !1;
|
|
1531
1543
|
}
|
|
1532
|
-
function
|
|
1544
|
+
function ds() {
|
|
1533
1545
|
return this.isValid() ? this._isUTC && this._offset === 0 : !1;
|
|
1534
1546
|
}
|
|
1535
|
-
var
|
|
1536
|
-
function
|
|
1537
|
-
var
|
|
1538
|
-
return
|
|
1539
|
-
ms:
|
|
1540
|
-
d:
|
|
1541
|
-
M:
|
|
1542
|
-
} :
|
|
1547
|
+
var Hi = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, Ai = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
|
|
1548
|
+
function C(e, t) {
|
|
1549
|
+
var s = e, r = null, i, n, a;
|
|
1550
|
+
return xe(e) ? s = {
|
|
1551
|
+
ms: e._milliseconds,
|
|
1552
|
+
d: e._days,
|
|
1553
|
+
M: e._months
|
|
1554
|
+
} : Z(e) || !isNaN(+e) ? (s = {}, t ? s[t] = +e : s.milliseconds = +e) : (r = Hi.exec(e)) ? (i = r[1] === "-" ? -1 : 1, s = {
|
|
1543
1555
|
y: 0,
|
|
1544
|
-
d: m(
|
|
1545
|
-
h: m(
|
|
1546
|
-
m: m(
|
|
1547
|
-
s: m(
|
|
1548
|
-
ms: m(
|
|
1556
|
+
d: m(r[L]) * i,
|
|
1557
|
+
h: m(r[v]) * i,
|
|
1558
|
+
m: m(r[W]) * i,
|
|
1559
|
+
s: m(r[V]) * i,
|
|
1560
|
+
ms: m(tt(r[te] * 1e3)) * i
|
|
1549
1561
|
// the millisecond decimal point is included in the match
|
|
1550
|
-
}) : (
|
|
1551
|
-
y:
|
|
1552
|
-
M:
|
|
1553
|
-
w:
|
|
1554
|
-
d:
|
|
1555
|
-
h:
|
|
1556
|
-
m:
|
|
1557
|
-
s:
|
|
1558
|
-
}) :
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
),
|
|
1562
|
-
}
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
function
|
|
1566
|
-
var
|
|
1567
|
-
return (isNaN(
|
|
1568
|
-
}
|
|
1569
|
-
function
|
|
1570
|
-
var
|
|
1571
|
-
return
|
|
1572
|
-
}
|
|
1573
|
-
function
|
|
1574
|
-
var
|
|
1575
|
-
return
|
|
1562
|
+
}) : (r = Ai.exec(e)) ? (i = r[1] === "-" ? -1 : 1, s = {
|
|
1563
|
+
y: ee(r[2], i),
|
|
1564
|
+
M: ee(r[3], i),
|
|
1565
|
+
w: ee(r[4], i),
|
|
1566
|
+
d: ee(r[5], i),
|
|
1567
|
+
h: ee(r[6], i),
|
|
1568
|
+
m: ee(r[7], i),
|
|
1569
|
+
s: ee(r[8], i)
|
|
1570
|
+
}) : s == null ? s = {} : typeof s == "object" && ("from" in s || "to" in s) && (a = ji(
|
|
1571
|
+
k(s.from),
|
|
1572
|
+
k(s.to)
|
|
1573
|
+
), s = {}, s.ms = a.milliseconds, s.M = a.months), n = new Ge(s), xe(e) && w(e, "_locale") && (n._locale = e._locale), xe(e) && w(e, "_isValid") && (n._isValid = e._isValid), n;
|
|
1574
|
+
}
|
|
1575
|
+
C.fn = Ge.prototype;
|
|
1576
|
+
C.invalid = xi;
|
|
1577
|
+
function ee(e, t) {
|
|
1578
|
+
var s = e && parseFloat(e.replace(",", "."));
|
|
1579
|
+
return (isNaN(s) ? 0 : s) * t;
|
|
1580
|
+
}
|
|
1581
|
+
function Pt(e, t) {
|
|
1582
|
+
var s = {};
|
|
1583
|
+
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;
|
|
1584
|
+
}
|
|
1585
|
+
function ji(e, t) {
|
|
1586
|
+
var s;
|
|
1587
|
+
return e.isValid() && t.isValid() ? (t = Dt(t, e), e.isBefore(t) ? s = Pt(e, t) : (s = Pt(t, e), s.milliseconds = -s.milliseconds, s.months = -s.months), s) : { milliseconds: 0, months: 0 };
|
|
1576
1588
|
}
|
|
1577
|
-
function
|
|
1578
|
-
return function(
|
|
1579
|
-
var i,
|
|
1580
|
-
return
|
|
1581
|
-
|
|
1582
|
-
"moment()." +
|
|
1583
|
-
),
|
|
1589
|
+
function hs(e, t) {
|
|
1590
|
+
return function(s, r) {
|
|
1591
|
+
var i, n;
|
|
1592
|
+
return r !== null && !isNaN(+r) && (Ht(
|
|
1593
|
+
t,
|
|
1594
|
+
"moment()." + t + "(period, number) is deprecated. Please use moment()." + t + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
|
|
1595
|
+
), n = s, s = r, r = n), i = C(s, r), fs(this, i, e), this;
|
|
1584
1596
|
};
|
|
1585
1597
|
}
|
|
1586
|
-
function
|
|
1587
|
-
var i =
|
|
1588
|
-
|
|
1598
|
+
function fs(e, t, s, r) {
|
|
1599
|
+
var i = t._milliseconds, n = tt(t._days), a = tt(t._months);
|
|
1600
|
+
e.isValid() && (r = r ?? !0, a && Jt(e, ye(e, "Month") + a * s), n && Zt(e, "Date", ye(e, "Date") + n * s), i && e._d.setTime(e._d.valueOf() + i * s), r && u.updateOffset(e, n || a));
|
|
1589
1601
|
}
|
|
1590
|
-
var
|
|
1591
|
-
function
|
|
1592
|
-
return typeof
|
|
1602
|
+
var Gi = hs(1, "add"), Vi = hs(-1, "subtract");
|
|
1603
|
+
function cs(e) {
|
|
1604
|
+
return typeof e == "string" || e instanceof String;
|
|
1593
1605
|
}
|
|
1594
|
-
function
|
|
1595
|
-
return
|
|
1606
|
+
function zi(e) {
|
|
1607
|
+
return F(e) || ke(e) || cs(e) || Z(e) || Zi(e) || $i(e) || e === null || e === void 0;
|
|
1596
1608
|
}
|
|
1597
|
-
function
|
|
1598
|
-
var
|
|
1609
|
+
function $i(e) {
|
|
1610
|
+
var t = se(e) && !nt(e), s = !1, r = [
|
|
1599
1611
|
"years",
|
|
1600
1612
|
"year",
|
|
1601
1613
|
"y",
|
|
@@ -1620,198 +1632,198 @@ function Bi(t) {
|
|
|
1620
1632
|
"milliseconds",
|
|
1621
1633
|
"millisecond",
|
|
1622
1634
|
"ms"
|
|
1623
|
-
], i,
|
|
1635
|
+
], i, n, a = r.length;
|
|
1624
1636
|
for (i = 0; i < a; i += 1)
|
|
1625
|
-
|
|
1626
|
-
return
|
|
1637
|
+
n = r[i], s = s || w(e, n);
|
|
1638
|
+
return t && s;
|
|
1627
1639
|
}
|
|
1628
|
-
function
|
|
1629
|
-
var
|
|
1630
|
-
return
|
|
1631
|
-
return !
|
|
1632
|
-
}).length === 0),
|
|
1640
|
+
function Zi(e) {
|
|
1641
|
+
var t = R(e), s = !1;
|
|
1642
|
+
return t && (s = e.filter(function(r) {
|
|
1643
|
+
return !Z(r) && cs(e);
|
|
1644
|
+
}).length === 0), t && s;
|
|
1633
1645
|
}
|
|
1634
|
-
function
|
|
1635
|
-
var
|
|
1646
|
+
function Bi(e) {
|
|
1647
|
+
var t = se(e) && !nt(e), s = !1, r = [
|
|
1636
1648
|
"sameDay",
|
|
1637
1649
|
"nextDay",
|
|
1638
1650
|
"lastDay",
|
|
1639
1651
|
"nextWeek",
|
|
1640
1652
|
"lastWeek",
|
|
1641
1653
|
"sameElse"
|
|
1642
|
-
], i,
|
|
1643
|
-
for (i = 0; i <
|
|
1644
|
-
|
|
1645
|
-
return
|
|
1646
|
-
}
|
|
1647
|
-
function
|
|
1648
|
-
var
|
|
1649
|
-
return
|
|
1650
|
-
}
|
|
1651
|
-
function
|
|
1652
|
-
arguments.length === 1 && (arguments[0] ?
|
|
1653
|
-
var
|
|
1654
|
+
], i, n;
|
|
1655
|
+
for (i = 0; i < r.length; i += 1)
|
|
1656
|
+
n = r[i], s = s || w(e, n);
|
|
1657
|
+
return t && s;
|
|
1658
|
+
}
|
|
1659
|
+
function qi(e, t) {
|
|
1660
|
+
var s = e.diff(t, "days", !0);
|
|
1661
|
+
return s < -6 ? "sameElse" : s < -1 ? "lastWeek" : s < 0 ? "lastDay" : s < 1 ? "sameDay" : s < 2 ? "nextDay" : s < 7 ? "nextWeek" : "sameElse";
|
|
1662
|
+
}
|
|
1663
|
+
function Ji(e, t) {
|
|
1664
|
+
arguments.length === 1 && (arguments[0] ? zi(arguments[0]) ? (e = arguments[0], t = void 0) : Bi(arguments[0]) && (t = arguments[0], e = void 0) : (e = void 0, t = void 0));
|
|
1665
|
+
var s = e || k(), r = Dt(s, this).startOf("day"), i = u.calendarFormat(this, r) || "sameElse", n = t && (U(t[i]) ? t[i].call(this, s) : t[i]);
|
|
1654
1666
|
return this.format(
|
|
1655
|
-
|
|
1667
|
+
n || this.localeData().calendar(i, this, k(s))
|
|
1656
1668
|
);
|
|
1657
1669
|
}
|
|
1658
|
-
function
|
|
1659
|
-
return new
|
|
1670
|
+
function Qi() {
|
|
1671
|
+
return new Me(this);
|
|
1660
1672
|
}
|
|
1661
|
-
function
|
|
1662
|
-
var
|
|
1663
|
-
return this.isValid() &&
|
|
1673
|
+
function Xi(e, t) {
|
|
1674
|
+
var s = F(e) ? e : k(e);
|
|
1675
|
+
return this.isValid() && s.isValid() ? (t = P(t) || "millisecond", t === "millisecond" ? this.valueOf() > s.valueOf() : s.valueOf() < this.clone().startOf(t).valueOf()) : !1;
|
|
1664
1676
|
}
|
|
1665
|
-
function
|
|
1666
|
-
var
|
|
1667
|
-
return this.isValid() &&
|
|
1677
|
+
function Ki(e, t) {
|
|
1678
|
+
var s = F(e) ? e : k(e);
|
|
1679
|
+
return this.isValid() && s.isValid() ? (t = P(t) || "millisecond", t === "millisecond" ? this.valueOf() < s.valueOf() : this.clone().endOf(t).valueOf() < s.valueOf()) : !1;
|
|
1668
1680
|
}
|
|
1669
|
-
function
|
|
1670
|
-
var i =
|
|
1671
|
-
return this.isValid() && i.isValid() &&
|
|
1681
|
+
function en(e, t, s, r) {
|
|
1682
|
+
var i = F(e) ? e : k(e), n = F(t) ? t : k(t);
|
|
1683
|
+
return this.isValid() && i.isValid() && n.isValid() ? (r = r || "()", (r[0] === "(" ? this.isAfter(i, s) : !this.isBefore(i, s)) && (r[1] === ")" ? this.isBefore(n, s) : !this.isAfter(n, s))) : !1;
|
|
1672
1684
|
}
|
|
1673
|
-
function
|
|
1674
|
-
var
|
|
1675
|
-
return this.isValid() &&
|
|
1685
|
+
function tn(e, t) {
|
|
1686
|
+
var s = F(e) ? e : k(e), r;
|
|
1687
|
+
return this.isValid() && s.isValid() ? (t = P(t) || "millisecond", t === "millisecond" ? this.valueOf() === s.valueOf() : (r = s.valueOf(), this.clone().startOf(t).valueOf() <= r && r <= this.clone().endOf(t).valueOf())) : !1;
|
|
1676
1688
|
}
|
|
1677
|
-
function
|
|
1678
|
-
return this.isSame(
|
|
1689
|
+
function sn(e, t) {
|
|
1690
|
+
return this.isSame(e, t) || this.isAfter(e, t);
|
|
1679
1691
|
}
|
|
1680
|
-
function
|
|
1681
|
-
return this.isSame(
|
|
1692
|
+
function rn(e, t) {
|
|
1693
|
+
return this.isSame(e, t) || this.isBefore(e, t);
|
|
1682
1694
|
}
|
|
1683
|
-
function
|
|
1684
|
-
var
|
|
1695
|
+
function nn(e, t, s) {
|
|
1696
|
+
var r, i, n;
|
|
1685
1697
|
if (!this.isValid())
|
|
1686
1698
|
return NaN;
|
|
1687
|
-
if (
|
|
1699
|
+
if (r = Dt(e, this), !r.isValid())
|
|
1688
1700
|
return NaN;
|
|
1689
|
-
switch (i = (
|
|
1701
|
+
switch (i = (r.utcOffset() - this.utcOffset()) * 6e4, t = P(t), t) {
|
|
1690
1702
|
case "year":
|
|
1691
|
-
|
|
1703
|
+
n = Te(this, r) / 12;
|
|
1692
1704
|
break;
|
|
1693
1705
|
case "month":
|
|
1694
|
-
|
|
1706
|
+
n = Te(this, r);
|
|
1695
1707
|
break;
|
|
1696
1708
|
case "quarter":
|
|
1697
|
-
|
|
1709
|
+
n = Te(this, r) / 3;
|
|
1698
1710
|
break;
|
|
1699
1711
|
case "second":
|
|
1700
|
-
|
|
1712
|
+
n = (this - r) / 1e3;
|
|
1701
1713
|
break;
|
|
1702
1714
|
case "minute":
|
|
1703
|
-
|
|
1715
|
+
n = (this - r) / 6e4;
|
|
1704
1716
|
break;
|
|
1705
1717
|
case "hour":
|
|
1706
|
-
|
|
1718
|
+
n = (this - r) / 36e5;
|
|
1707
1719
|
break;
|
|
1708
1720
|
case "day":
|
|
1709
|
-
|
|
1721
|
+
n = (this - r - i) / 864e5;
|
|
1710
1722
|
break;
|
|
1711
1723
|
case "week":
|
|
1712
|
-
|
|
1724
|
+
n = (this - r - i) / 6048e5;
|
|
1713
1725
|
break;
|
|
1714
1726
|
default:
|
|
1715
|
-
|
|
1727
|
+
n = this - r;
|
|
1716
1728
|
}
|
|
1717
|
-
return
|
|
1729
|
+
return s ? n : b(n);
|
|
1718
1730
|
}
|
|
1719
|
-
function
|
|
1720
|
-
if (
|
|
1721
|
-
return -
|
|
1722
|
-
var
|
|
1723
|
-
return
|
|
1731
|
+
function Te(e, t) {
|
|
1732
|
+
if (e.date() < t.date())
|
|
1733
|
+
return -Te(t, e);
|
|
1734
|
+
var s = (t.year() - e.year()) * 12 + (t.month() - e.month()), r = e.clone().add(s, "months"), i, n;
|
|
1735
|
+
return t - r < 0 ? (i = e.clone().add(s - 1, "months"), n = (t - r) / (r - i)) : (i = e.clone().add(s + 1, "months"), n = (t - r) / (i - r)), -(s + n) || 0;
|
|
1724
1736
|
}
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
function
|
|
1737
|
+
u.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
|
|
1738
|
+
u.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
|
|
1739
|
+
function an() {
|
|
1728
1740
|
return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
|
|
1729
1741
|
}
|
|
1730
|
-
function
|
|
1742
|
+
function on(e) {
|
|
1731
1743
|
if (!this.isValid())
|
|
1732
1744
|
return null;
|
|
1733
|
-
var
|
|
1734
|
-
return
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
) : U(Date.prototype.toISOString) ?
|
|
1738
|
-
|
|
1739
|
-
|
|
1745
|
+
var t = e !== !0, s = t ? this.clone().utc() : this;
|
|
1746
|
+
return s.year() < 0 || s.year() > 9999 ? Oe(
|
|
1747
|
+
s,
|
|
1748
|
+
t ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"
|
|
1749
|
+
) : U(Date.prototype.toISOString) ? t ? this.toDate().toISOString() : new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString().replace("Z", Oe(s, "Z")) : Oe(
|
|
1750
|
+
s,
|
|
1751
|
+
t ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ"
|
|
1740
1752
|
);
|
|
1741
1753
|
}
|
|
1742
|
-
function
|
|
1754
|
+
function ln() {
|
|
1743
1755
|
if (!this.isValid())
|
|
1744
1756
|
return "moment.invalid(/* " + this._i + " */)";
|
|
1745
|
-
var
|
|
1746
|
-
return this.isLocal() || (
|
|
1757
|
+
var e = "moment", t = "", s, r, i, n;
|
|
1758
|
+
return this.isLocal() || (e = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone", t = "Z"), s = "[" + e + '("]', r = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY", i = "-MM-DD[T]HH:mm:ss.SSS", n = t + '[")]', this.format(s + r + i + n);
|
|
1747
1759
|
}
|
|
1748
|
-
function
|
|
1749
|
-
|
|
1750
|
-
var
|
|
1751
|
-
return this.localeData().postformat(
|
|
1760
|
+
function un(e) {
|
|
1761
|
+
e || (e = this.isUtc() ? u.defaultFormatUtc : u.defaultFormat);
|
|
1762
|
+
var t = Oe(this, e);
|
|
1763
|
+
return this.localeData().postformat(t);
|
|
1752
1764
|
}
|
|
1753
|
-
function
|
|
1754
|
-
return this.isValid() && (
|
|
1765
|
+
function dn(e, t) {
|
|
1766
|
+
return this.isValid() && (F(e) && e.isValid() || k(e).isValid()) ? C({ to: this, from: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
|
|
1755
1767
|
}
|
|
1756
|
-
function
|
|
1757
|
-
return this.from(
|
|
1768
|
+
function hn(e) {
|
|
1769
|
+
return this.from(k(), e);
|
|
1758
1770
|
}
|
|
1759
|
-
function
|
|
1760
|
-
return this.isValid() && (
|
|
1771
|
+
function fn(e, t) {
|
|
1772
|
+
return this.isValid() && (F(e) && e.isValid() || k(e).isValid()) ? C({ from: this, to: e }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate();
|
|
1761
1773
|
}
|
|
1762
|
-
function
|
|
1763
|
-
return this.to(
|
|
1774
|
+
function cn(e) {
|
|
1775
|
+
return this.to(k(), e);
|
|
1764
1776
|
}
|
|
1765
|
-
function
|
|
1766
|
-
var
|
|
1767
|
-
return
|
|
1777
|
+
function ms(e) {
|
|
1778
|
+
var t;
|
|
1779
|
+
return e === void 0 ? this._locale._abbr : (t = B(e), t != null && (this._locale = t), this);
|
|
1768
1780
|
}
|
|
1769
|
-
var
|
|
1781
|
+
var _s = N(
|
|
1770
1782
|
"moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",
|
|
1771
|
-
function(
|
|
1772
|
-
return
|
|
1783
|
+
function(e) {
|
|
1784
|
+
return e === void 0 ? this.localeData() : this.locale(e);
|
|
1773
1785
|
}
|
|
1774
1786
|
);
|
|
1775
|
-
function
|
|
1787
|
+
function ys() {
|
|
1776
1788
|
return this._locale;
|
|
1777
1789
|
}
|
|
1778
|
-
var
|
|
1779
|
-
function
|
|
1780
|
-
return (
|
|
1790
|
+
var Pe = 1e3, le = 60 * Pe, We = 60 * le, ws = (365 * 400 + 97) * 24 * We;
|
|
1791
|
+
function ue(e, t) {
|
|
1792
|
+
return (e % t + t) % t;
|
|
1781
1793
|
}
|
|
1782
|
-
function
|
|
1783
|
-
return
|
|
1794
|
+
function ps(e, t, s) {
|
|
1795
|
+
return e < 100 && e >= 0 ? new Date(e + 400, t, s) - ws : new Date(e, t, s).valueOf();
|
|
1784
1796
|
}
|
|
1785
|
-
function
|
|
1786
|
-
return
|
|
1797
|
+
function gs(e, t, s) {
|
|
1798
|
+
return e < 100 && e >= 0 ? Date.UTC(e + 400, t, s) - ws : Date.UTC(e, t, s);
|
|
1787
1799
|
}
|
|
1788
|
-
function
|
|
1789
|
-
var
|
|
1790
|
-
if (
|
|
1800
|
+
function mn(e) {
|
|
1801
|
+
var t, s;
|
|
1802
|
+
if (e = P(e), e === void 0 || e === "millisecond" || !this.isValid())
|
|
1791
1803
|
return this;
|
|
1792
|
-
switch (
|
|
1804
|
+
switch (s = this._isUTC ? gs : ps, e) {
|
|
1793
1805
|
case "year":
|
|
1794
|
-
|
|
1806
|
+
t = s(this.year(), 0, 1);
|
|
1795
1807
|
break;
|
|
1796
1808
|
case "quarter":
|
|
1797
|
-
|
|
1809
|
+
t = s(
|
|
1798
1810
|
this.year(),
|
|
1799
1811
|
this.month() - this.month() % 3,
|
|
1800
1812
|
1
|
|
1801
1813
|
);
|
|
1802
1814
|
break;
|
|
1803
1815
|
case "month":
|
|
1804
|
-
|
|
1816
|
+
t = s(this.year(), this.month(), 1);
|
|
1805
1817
|
break;
|
|
1806
1818
|
case "week":
|
|
1807
|
-
|
|
1819
|
+
t = s(
|
|
1808
1820
|
this.year(),
|
|
1809
1821
|
this.month(),
|
|
1810
1822
|
this.date() - this.weekday()
|
|
1811
1823
|
);
|
|
1812
1824
|
break;
|
|
1813
1825
|
case "isoWeek":
|
|
1814
|
-
|
|
1826
|
+
t = s(
|
|
1815
1827
|
this.year(),
|
|
1816
1828
|
this.month(),
|
|
1817
1829
|
this.date() - (this.isoWeekday() - 1)
|
|
@@ -1819,50 +1831,50 @@ function mr(t) {
|
|
|
1819
1831
|
break;
|
|
1820
1832
|
case "day":
|
|
1821
1833
|
case "date":
|
|
1822
|
-
|
|
1834
|
+
t = s(this.year(), this.month(), this.date());
|
|
1823
1835
|
break;
|
|
1824
1836
|
case "hour":
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1837
|
+
t = this._d.valueOf(), t -= ue(
|
|
1838
|
+
t + (this._isUTC ? 0 : this.utcOffset() * le),
|
|
1839
|
+
We
|
|
1828
1840
|
);
|
|
1829
1841
|
break;
|
|
1830
1842
|
case "minute":
|
|
1831
|
-
|
|
1843
|
+
t = this._d.valueOf(), t -= ue(t, le);
|
|
1832
1844
|
break;
|
|
1833
1845
|
case "second":
|
|
1834
|
-
|
|
1846
|
+
t = this._d.valueOf(), t -= ue(t, Pe);
|
|
1835
1847
|
break;
|
|
1836
1848
|
}
|
|
1837
|
-
return this._d.setTime(
|
|
1849
|
+
return this._d.setTime(t), u.updateOffset(this, !0), this;
|
|
1838
1850
|
}
|
|
1839
|
-
function
|
|
1840
|
-
var
|
|
1841
|
-
if (
|
|
1851
|
+
function _n(e) {
|
|
1852
|
+
var t, s;
|
|
1853
|
+
if (e = P(e), e === void 0 || e === "millisecond" || !this.isValid())
|
|
1842
1854
|
return this;
|
|
1843
|
-
switch (
|
|
1855
|
+
switch (s = this._isUTC ? gs : ps, e) {
|
|
1844
1856
|
case "year":
|
|
1845
|
-
|
|
1857
|
+
t = s(this.year() + 1, 0, 1) - 1;
|
|
1846
1858
|
break;
|
|
1847
1859
|
case "quarter":
|
|
1848
|
-
|
|
1860
|
+
t = s(
|
|
1849
1861
|
this.year(),
|
|
1850
1862
|
this.month() - this.month() % 3 + 3,
|
|
1851
1863
|
1
|
|
1852
1864
|
) - 1;
|
|
1853
1865
|
break;
|
|
1854
1866
|
case "month":
|
|
1855
|
-
|
|
1867
|
+
t = s(this.year(), this.month() + 1, 1) - 1;
|
|
1856
1868
|
break;
|
|
1857
1869
|
case "week":
|
|
1858
|
-
|
|
1870
|
+
t = s(
|
|
1859
1871
|
this.year(),
|
|
1860
1872
|
this.month(),
|
|
1861
1873
|
this.date() - this.weekday() + 7
|
|
1862
1874
|
) - 1;
|
|
1863
1875
|
break;
|
|
1864
1876
|
case "isoWeek":
|
|
1865
|
-
|
|
1877
|
+
t = s(
|
|
1866
1878
|
this.year(),
|
|
1867
1879
|
this.month(),
|
|
1868
1880
|
this.date() - (this.isoWeekday() - 1) + 7
|
|
@@ -1870,69 +1882,69 @@ function _r(t) {
|
|
|
1870
1882
|
break;
|
|
1871
1883
|
case "day":
|
|
1872
1884
|
case "date":
|
|
1873
|
-
|
|
1885
|
+
t = s(this.year(), this.month(), this.date() + 1) - 1;
|
|
1874
1886
|
break;
|
|
1875
1887
|
case "hour":
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1888
|
+
t = this._d.valueOf(), t += We - ue(
|
|
1889
|
+
t + (this._isUTC ? 0 : this.utcOffset() * le),
|
|
1890
|
+
We
|
|
1879
1891
|
) - 1;
|
|
1880
1892
|
break;
|
|
1881
1893
|
case "minute":
|
|
1882
|
-
|
|
1894
|
+
t = this._d.valueOf(), t += le - ue(t, le) - 1;
|
|
1883
1895
|
break;
|
|
1884
1896
|
case "second":
|
|
1885
|
-
|
|
1897
|
+
t = this._d.valueOf(), t += Pe - ue(t, Pe) - 1;
|
|
1886
1898
|
break;
|
|
1887
1899
|
}
|
|
1888
|
-
return this._d.setTime(
|
|
1900
|
+
return this._d.setTime(t), u.updateOffset(this, !0), this;
|
|
1889
1901
|
}
|
|
1890
|
-
function
|
|
1902
|
+
function yn() {
|
|
1891
1903
|
return this._d.valueOf() - (this._offset || 0) * 6e4;
|
|
1892
1904
|
}
|
|
1893
|
-
function
|
|
1905
|
+
function wn() {
|
|
1894
1906
|
return Math.floor(this.valueOf() / 1e3);
|
|
1895
1907
|
}
|
|
1896
|
-
function
|
|
1908
|
+
function pn() {
|
|
1897
1909
|
return new Date(this.valueOf());
|
|
1898
1910
|
}
|
|
1899
|
-
function
|
|
1900
|
-
var
|
|
1911
|
+
function gn() {
|
|
1912
|
+
var e = this;
|
|
1901
1913
|
return [
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1914
|
+
e.year(),
|
|
1915
|
+
e.month(),
|
|
1916
|
+
e.date(),
|
|
1917
|
+
e.hour(),
|
|
1918
|
+
e.minute(),
|
|
1919
|
+
e.second(),
|
|
1920
|
+
e.millisecond()
|
|
1909
1921
|
];
|
|
1910
1922
|
}
|
|
1911
|
-
function
|
|
1912
|
-
var
|
|
1923
|
+
function kn() {
|
|
1924
|
+
var e = this;
|
|
1913
1925
|
return {
|
|
1914
|
-
years:
|
|
1915
|
-
months:
|
|
1916
|
-
date:
|
|
1917
|
-
hours:
|
|
1918
|
-
minutes:
|
|
1919
|
-
seconds:
|
|
1920
|
-
milliseconds:
|
|
1926
|
+
years: e.year(),
|
|
1927
|
+
months: e.month(),
|
|
1928
|
+
date: e.date(),
|
|
1929
|
+
hours: e.hours(),
|
|
1930
|
+
minutes: e.minutes(),
|
|
1931
|
+
seconds: e.seconds(),
|
|
1932
|
+
milliseconds: e.milliseconds()
|
|
1921
1933
|
};
|
|
1922
1934
|
}
|
|
1923
|
-
function
|
|
1935
|
+
function Mn() {
|
|
1924
1936
|
return this.isValid() ? this.toISOString() : null;
|
|
1925
1937
|
}
|
|
1926
|
-
function
|
|
1927
|
-
return
|
|
1938
|
+
function Sn() {
|
|
1939
|
+
return at(this);
|
|
1928
1940
|
}
|
|
1929
|
-
function
|
|
1930
|
-
return Q({},
|
|
1941
|
+
function Dn() {
|
|
1942
|
+
return Q({}, c(this));
|
|
1931
1943
|
}
|
|
1932
|
-
function
|
|
1933
|
-
return
|
|
1944
|
+
function vn() {
|
|
1945
|
+
return c(this).overflow;
|
|
1934
1946
|
}
|
|
1935
|
-
function
|
|
1947
|
+
function Yn() {
|
|
1936
1948
|
return {
|
|
1937
1949
|
input: this._i,
|
|
1938
1950
|
format: this._f,
|
|
@@ -1941,476 +1953,476 @@ function Yr() {
|
|
|
1941
1953
|
strict: this._strict
|
|
1942
1954
|
};
|
|
1943
1955
|
}
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1956
|
+
h("N", 0, 0, "eraAbbr");
|
|
1957
|
+
h("NN", 0, 0, "eraAbbr");
|
|
1958
|
+
h("NNN", 0, 0, "eraAbbr");
|
|
1959
|
+
h("NNNN", 0, 0, "eraName");
|
|
1960
|
+
h("NNNNN", 0, 0, "eraNarrow");
|
|
1961
|
+
h("y", ["y", 1], "yo", "eraYear");
|
|
1962
|
+
h("y", ["yy", 2], 0, "eraYear");
|
|
1963
|
+
h("y", ["yyy", 3], 0, "eraYear");
|
|
1964
|
+
h("y", ["yyyy", 4], 0, "eraYear");
|
|
1965
|
+
d("N", vt);
|
|
1966
|
+
d("NN", vt);
|
|
1967
|
+
d("NNN", vt);
|
|
1968
|
+
d("NNNN", Ln);
|
|
1969
|
+
d("NNNNN", En);
|
|
1970
|
+
g(
|
|
1959
1971
|
["N", "NN", "NNN", "NNNN", "NNNNN"],
|
|
1960
|
-
function(
|
|
1961
|
-
var i =
|
|
1962
|
-
i ?
|
|
1972
|
+
function(e, t, s, r) {
|
|
1973
|
+
var i = s._locale.erasParse(e, r, s._strict);
|
|
1974
|
+
i ? c(s).era = i : c(s).invalidEra = e;
|
|
1963
1975
|
}
|
|
1964
1976
|
);
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1977
|
+
d("y", de);
|
|
1978
|
+
d("yy", de);
|
|
1979
|
+
d("yyy", de);
|
|
1980
|
+
d("yyyy", de);
|
|
1981
|
+
d("yo", In);
|
|
1982
|
+
g(["y", "yy", "yyy", "yyyy"], Y);
|
|
1983
|
+
g(["yo"], function(e, t, s, r) {
|
|
1972
1984
|
var i;
|
|
1973
|
-
|
|
1985
|
+
s._locale._eraYearOrdinalRegex && (i = e.match(s._locale._eraYearOrdinalRegex)), s._locale.eraYearOrdinalParse ? t[Y] = s._locale.eraYearOrdinalParse(e, i) : t[Y] = parseInt(e, 10);
|
|
1974
1986
|
});
|
|
1975
|
-
function
|
|
1976
|
-
var
|
|
1977
|
-
for (
|
|
1978
|
-
switch (typeof
|
|
1987
|
+
function On(e, t) {
|
|
1988
|
+
var s, r, i, n = this._eras || B("en")._eras;
|
|
1989
|
+
for (s = 0, r = n.length; s < r; ++s) {
|
|
1990
|
+
switch (typeof n[s].since) {
|
|
1979
1991
|
case "string":
|
|
1980
|
-
i =
|
|
1992
|
+
i = u(n[s].since).startOf("day"), n[s].since = i.valueOf();
|
|
1981
1993
|
break;
|
|
1982
1994
|
}
|
|
1983
|
-
switch (typeof
|
|
1995
|
+
switch (typeof n[s].until) {
|
|
1984
1996
|
case "undefined":
|
|
1985
|
-
|
|
1997
|
+
n[s].until = 1 / 0;
|
|
1986
1998
|
break;
|
|
1987
1999
|
case "string":
|
|
1988
|
-
i =
|
|
2000
|
+
i = u(n[s].until).startOf("day").valueOf(), n[s].until = i.valueOf();
|
|
1989
2001
|
break;
|
|
1990
2002
|
}
|
|
1991
2003
|
}
|
|
1992
|
-
return
|
|
2004
|
+
return n;
|
|
1993
2005
|
}
|
|
1994
|
-
function
|
|
1995
|
-
var
|
|
1996
|
-
for (
|
|
1997
|
-
if (a = r
|
|
1998
|
-
switch (
|
|
2006
|
+
function xn(e, t, s) {
|
|
2007
|
+
var r, i, n = this.eras(), a, l, f;
|
|
2008
|
+
for (e = e.toUpperCase(), r = 0, i = n.length; r < i; ++r)
|
|
2009
|
+
if (a = n[r].name.toUpperCase(), l = n[r].abbr.toUpperCase(), f = n[r].narrow.toUpperCase(), s)
|
|
2010
|
+
switch (t) {
|
|
1999
2011
|
case "N":
|
|
2000
2012
|
case "NN":
|
|
2001
2013
|
case "NNN":
|
|
2002
|
-
if (
|
|
2003
|
-
return r
|
|
2014
|
+
if (l === e)
|
|
2015
|
+
return n[r];
|
|
2004
2016
|
break;
|
|
2005
2017
|
case "NNNN":
|
|
2006
|
-
if (a ===
|
|
2007
|
-
return r
|
|
2018
|
+
if (a === e)
|
|
2019
|
+
return n[r];
|
|
2008
2020
|
break;
|
|
2009
2021
|
case "NNNNN":
|
|
2010
|
-
if (
|
|
2011
|
-
return r
|
|
2022
|
+
if (f === e)
|
|
2023
|
+
return n[r];
|
|
2012
2024
|
break;
|
|
2013
2025
|
}
|
|
2014
|
-
else if ([a,
|
|
2015
|
-
return r
|
|
2016
|
-
}
|
|
2017
|
-
function
|
|
2018
|
-
var
|
|
2019
|
-
return
|
|
2020
|
-
}
|
|
2021
|
-
function
|
|
2022
|
-
var
|
|
2023
|
-
for (
|
|
2024
|
-
if (
|
|
2025
|
-
return
|
|
2026
|
+
else if ([a, l, f].indexOf(e) >= 0)
|
|
2027
|
+
return n[r];
|
|
2028
|
+
}
|
|
2029
|
+
function Tn(e, t) {
|
|
2030
|
+
var s = e.since <= e.until ? 1 : -1;
|
|
2031
|
+
return t === void 0 ? u(e.since).year() : u(e.since).year() + (t - e.offset) * s;
|
|
2032
|
+
}
|
|
2033
|
+
function bn() {
|
|
2034
|
+
var e, t, s, r = this.localeData().eras();
|
|
2035
|
+
for (e = 0, t = r.length; e < t; ++e)
|
|
2036
|
+
if (s = this.clone().startOf("day").valueOf(), r[e].since <= s && s <= r[e].until || r[e].until <= s && s <= r[e].since)
|
|
2037
|
+
return r[e].name;
|
|
2026
2038
|
return "";
|
|
2027
2039
|
}
|
|
2028
|
-
function
|
|
2029
|
-
var
|
|
2030
|
-
for (
|
|
2031
|
-
if (
|
|
2032
|
-
return
|
|
2040
|
+
function Nn() {
|
|
2041
|
+
var e, t, s, r = this.localeData().eras();
|
|
2042
|
+
for (e = 0, t = r.length; e < t; ++e)
|
|
2043
|
+
if (s = this.clone().startOf("day").valueOf(), r[e].since <= s && s <= r[e].until || r[e].until <= s && s <= r[e].since)
|
|
2044
|
+
return r[e].narrow;
|
|
2033
2045
|
return "";
|
|
2034
2046
|
}
|
|
2035
|
-
function
|
|
2036
|
-
var
|
|
2037
|
-
for (
|
|
2038
|
-
if (
|
|
2039
|
-
return
|
|
2047
|
+
function Pn() {
|
|
2048
|
+
var e, t, s, r = this.localeData().eras();
|
|
2049
|
+
for (e = 0, t = r.length; e < t; ++e)
|
|
2050
|
+
if (s = this.clone().startOf("day").valueOf(), r[e].since <= s && s <= r[e].until || r[e].until <= s && s <= r[e].since)
|
|
2051
|
+
return r[e].abbr;
|
|
2040
2052
|
return "";
|
|
2041
2053
|
}
|
|
2042
|
-
function
|
|
2043
|
-
var
|
|
2044
|
-
for (
|
|
2045
|
-
if (
|
|
2046
|
-
return (this.year() -
|
|
2054
|
+
function Wn() {
|
|
2055
|
+
var e, t, s, r, i = this.localeData().eras();
|
|
2056
|
+
for (e = 0, t = i.length; e < t; ++e)
|
|
2057
|
+
if (s = i[e].since <= i[e].until ? 1 : -1, r = this.clone().startOf("day").valueOf(), i[e].since <= r && r <= i[e].until || i[e].until <= r && r <= i[e].since)
|
|
2058
|
+
return (this.year() - u(i[e].since).year()) * s + i[e].offset;
|
|
2047
2059
|
return this.year();
|
|
2048
2060
|
}
|
|
2049
|
-
function
|
|
2050
|
-
return
|
|
2061
|
+
function Rn(e) {
|
|
2062
|
+
return w(this, "_erasNameRegex") || Yt.call(this), e ? this._erasNameRegex : this._erasRegex;
|
|
2051
2063
|
}
|
|
2052
|
-
function
|
|
2053
|
-
return
|
|
2064
|
+
function Fn(e) {
|
|
2065
|
+
return w(this, "_erasAbbrRegex") || Yt.call(this), e ? this._erasAbbrRegex : this._erasRegex;
|
|
2054
2066
|
}
|
|
2055
|
-
function
|
|
2056
|
-
return
|
|
2067
|
+
function Cn(e) {
|
|
2068
|
+
return w(this, "_erasNarrowRegex") || Yt.call(this), e ? this._erasNarrowRegex : this._erasRegex;
|
|
2057
2069
|
}
|
|
2058
|
-
function
|
|
2059
|
-
return
|
|
2070
|
+
function vt(e, t) {
|
|
2071
|
+
return t.erasAbbrRegex(e);
|
|
2060
2072
|
}
|
|
2061
|
-
function
|
|
2062
|
-
return
|
|
2073
|
+
function Ln(e, t) {
|
|
2074
|
+
return t.erasNameRegex(e);
|
|
2063
2075
|
}
|
|
2064
|
-
function
|
|
2065
|
-
return
|
|
2076
|
+
function En(e, t) {
|
|
2077
|
+
return t.erasNarrowRegex(e);
|
|
2066
2078
|
}
|
|
2067
|
-
function
|
|
2068
|
-
return
|
|
2079
|
+
function In(e, t) {
|
|
2080
|
+
return t._eraYearOrdinalRegex || de;
|
|
2069
2081
|
}
|
|
2070
|
-
function
|
|
2071
|
-
var
|
|
2072
|
-
for (i = 0,
|
|
2073
|
-
a = z(_[i].name),
|
|
2074
|
-
this._erasRegex = new RegExp("^(" +
|
|
2075
|
-
"^(" +
|
|
2082
|
+
function Yt() {
|
|
2083
|
+
var e = [], t = [], s = [], r = [], i, n, a, l, f, _ = this.eras();
|
|
2084
|
+
for (i = 0, n = _.length; i < n; ++i)
|
|
2085
|
+
a = z(_[i].name), l = z(_[i].abbr), f = z(_[i].narrow), t.push(a), e.push(l), s.push(f), r.push(a), r.push(l), r.push(f);
|
|
2086
|
+
this._erasRegex = new RegExp("^(" + r.join("|") + ")", "i"), this._erasNameRegex = new RegExp("^(" + t.join("|") + ")", "i"), this._erasAbbrRegex = new RegExp("^(" + e.join("|") + ")", "i"), this._erasNarrowRegex = new RegExp(
|
|
2087
|
+
"^(" + s.join("|") + ")",
|
|
2076
2088
|
"i"
|
|
2077
2089
|
);
|
|
2078
2090
|
}
|
|
2079
|
-
|
|
2091
|
+
h(0, ["gg", 2], 0, function() {
|
|
2080
2092
|
return this.weekYear() % 100;
|
|
2081
2093
|
});
|
|
2082
|
-
|
|
2094
|
+
h(0, ["GG", 2], 0, function() {
|
|
2083
2095
|
return this.isoWeekYear() % 100;
|
|
2084
2096
|
});
|
|
2085
|
-
function
|
|
2086
|
-
|
|
2087
|
-
}
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2097
|
+
function Ve(e, t) {
|
|
2098
|
+
h(0, [e, e.length], 0, t);
|
|
2099
|
+
}
|
|
2100
|
+
Ve("gggg", "weekYear");
|
|
2101
|
+
Ve("ggggg", "weekYear");
|
|
2102
|
+
Ve("GGGG", "isoWeekYear");
|
|
2103
|
+
Ve("GGGGG", "isoWeekYear");
|
|
2104
|
+
d("G", Ue);
|
|
2105
|
+
d("g", Ue);
|
|
2106
|
+
d("GG", M, T);
|
|
2107
|
+
d("gg", M, T);
|
|
2108
|
+
d("GGGG", ft, ht);
|
|
2109
|
+
d("gggg", ft, ht);
|
|
2110
|
+
d("GGGGG", Ie, Le);
|
|
2111
|
+
d("ggggg", Ie, Le);
|
|
2112
|
+
De(
|
|
2101
2113
|
["gggg", "ggggg", "GGGG", "GGGGG"],
|
|
2102
|
-
function(
|
|
2103
|
-
|
|
2114
|
+
function(e, t, s, r) {
|
|
2115
|
+
t[r.substr(0, 2)] = m(e);
|
|
2104
2116
|
}
|
|
2105
2117
|
);
|
|
2106
|
-
|
|
2107
|
-
|
|
2118
|
+
De(["gg", "GG"], function(e, t, s, r) {
|
|
2119
|
+
t[r] = u.parseTwoDigitYear(e);
|
|
2108
2120
|
});
|
|
2109
|
-
function
|
|
2110
|
-
return
|
|
2121
|
+
function Un(e) {
|
|
2122
|
+
return ks.call(
|
|
2111
2123
|
this,
|
|
2112
|
-
|
|
2124
|
+
e,
|
|
2113
2125
|
this.week(),
|
|
2114
2126
|
this.weekday() + this.localeData()._week.dow,
|
|
2115
2127
|
this.localeData()._week.dow,
|
|
2116
2128
|
this.localeData()._week.doy
|
|
2117
2129
|
);
|
|
2118
2130
|
}
|
|
2119
|
-
function
|
|
2120
|
-
return
|
|
2131
|
+
function Hn(e) {
|
|
2132
|
+
return ks.call(
|
|
2121
2133
|
this,
|
|
2122
|
-
|
|
2134
|
+
e,
|
|
2123
2135
|
this.isoWeek(),
|
|
2124
2136
|
this.isoWeekday(),
|
|
2125
2137
|
1,
|
|
2126
2138
|
4
|
|
2127
2139
|
);
|
|
2128
2140
|
}
|
|
2129
|
-
function
|
|
2130
|
-
return
|
|
2141
|
+
function An() {
|
|
2142
|
+
return $(this.year(), 1, 4);
|
|
2131
2143
|
}
|
|
2132
|
-
function
|
|
2133
|
-
return
|
|
2144
|
+
function jn() {
|
|
2145
|
+
return $(this.isoWeekYear(), 1, 4);
|
|
2134
2146
|
}
|
|
2135
|
-
function
|
|
2136
|
-
var
|
|
2137
|
-
return
|
|
2147
|
+
function Gn() {
|
|
2148
|
+
var e = this.localeData()._week;
|
|
2149
|
+
return $(this.year(), e.dow, e.doy);
|
|
2138
2150
|
}
|
|
2139
|
-
function
|
|
2140
|
-
var
|
|
2141
|
-
return
|
|
2151
|
+
function Vn() {
|
|
2152
|
+
var e = this.localeData()._week;
|
|
2153
|
+
return $(this.weekYear(), e.dow, e.doy);
|
|
2142
2154
|
}
|
|
2143
|
-
function
|
|
2144
|
-
var
|
|
2145
|
-
return
|
|
2155
|
+
function ks(e, t, s, r, i) {
|
|
2156
|
+
var n;
|
|
2157
|
+
return e == null ? pe(this, r, i).year : (n = $(e, r, i), t > n && (t = n), zn.call(this, e, t, s, r, i));
|
|
2146
2158
|
}
|
|
2147
|
-
function
|
|
2148
|
-
var
|
|
2159
|
+
function zn(e, t, s, r, i) {
|
|
2160
|
+
var n = Kt(e, t, s, r, i), a = we(n.year, 0, n.dayOfYear);
|
|
2149
2161
|
return this.year(a.getUTCFullYear()), this.month(a.getUTCMonth()), this.date(a.getUTCDate()), this;
|
|
2150
2162
|
}
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2163
|
+
h("Q", 0, "Qo", "quarter");
|
|
2164
|
+
d("Q", jt);
|
|
2165
|
+
g("Q", function(e, t) {
|
|
2166
|
+
t[G] = (m(e) - 1) * 3;
|
|
2155
2167
|
});
|
|
2156
|
-
function
|
|
2157
|
-
return
|
|
2158
|
-
}
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
return
|
|
2168
|
+
function $n(e) {
|
|
2169
|
+
return e == null ? Math.ceil((this.month() + 1) / 3) : this.month((e - 1) * 3 + this.month() % 3);
|
|
2170
|
+
}
|
|
2171
|
+
h("D", ["DD", 2], "Do", "date");
|
|
2172
|
+
d("D", M, he);
|
|
2173
|
+
d("DD", M, T);
|
|
2174
|
+
d("Do", function(e, t) {
|
|
2175
|
+
return e ? t._dayOfMonthOrdinalParse || t._ordinalParse : t._dayOfMonthOrdinalParseLenient;
|
|
2164
2176
|
});
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2177
|
+
g(["D", "DD"], L);
|
|
2178
|
+
g("Do", function(e, t) {
|
|
2179
|
+
t[L] = m(e.match(M)[0]);
|
|
2168
2180
|
});
|
|
2169
|
-
var
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2181
|
+
var Ms = fe("Date", !0);
|
|
2182
|
+
h("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
|
|
2183
|
+
d("DDD", Ee);
|
|
2184
|
+
d("DDDD", Gt);
|
|
2185
|
+
g(["DDD", "DDDD"], function(e, t, s) {
|
|
2186
|
+
s._dayOfYear = m(e);
|
|
2175
2187
|
});
|
|
2176
|
-
function
|
|
2177
|
-
var
|
|
2188
|
+
function Zn(e) {
|
|
2189
|
+
var t = Math.round(
|
|
2178
2190
|
(this.clone().startOf("day") - this.clone().startOf("year")) / 864e5
|
|
2179
2191
|
) + 1;
|
|
2180
|
-
return
|
|
2181
|
-
}
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
var
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
var
|
|
2192
|
-
|
|
2192
|
+
return e == null ? t : this.add(e - t, "d");
|
|
2193
|
+
}
|
|
2194
|
+
h("m", ["mm", 2], 0, "minute");
|
|
2195
|
+
d("m", M, ct);
|
|
2196
|
+
d("mm", M, T);
|
|
2197
|
+
g(["m", "mm"], W);
|
|
2198
|
+
var Bn = fe("Minutes", !1);
|
|
2199
|
+
h("s", ["ss", 2], 0, "second");
|
|
2200
|
+
d("s", M, ct);
|
|
2201
|
+
d("ss", M, T);
|
|
2202
|
+
g(["s", "ss"], V);
|
|
2203
|
+
var qn = fe("Seconds", !1);
|
|
2204
|
+
h("S", 0, 0, function() {
|
|
2193
2205
|
return ~~(this.millisecond() / 100);
|
|
2194
2206
|
});
|
|
2195
|
-
|
|
2207
|
+
h(0, ["SS", 2], 0, function() {
|
|
2196
2208
|
return ~~(this.millisecond() / 10);
|
|
2197
2209
|
});
|
|
2198
|
-
|
|
2199
|
-
|
|
2210
|
+
h(0, ["SSS", 3], 0, "millisecond");
|
|
2211
|
+
h(0, ["SSSS", 4], 0, function() {
|
|
2200
2212
|
return this.millisecond() * 10;
|
|
2201
2213
|
});
|
|
2202
|
-
|
|
2214
|
+
h(0, ["SSSSS", 5], 0, function() {
|
|
2203
2215
|
return this.millisecond() * 100;
|
|
2204
2216
|
});
|
|
2205
|
-
|
|
2217
|
+
h(0, ["SSSSSS", 6], 0, function() {
|
|
2206
2218
|
return this.millisecond() * 1e3;
|
|
2207
2219
|
});
|
|
2208
|
-
|
|
2220
|
+
h(0, ["SSSSSSS", 7], 0, function() {
|
|
2209
2221
|
return this.millisecond() * 1e4;
|
|
2210
2222
|
});
|
|
2211
|
-
|
|
2223
|
+
h(0, ["SSSSSSSS", 8], 0, function() {
|
|
2212
2224
|
return this.millisecond() * 1e5;
|
|
2213
2225
|
});
|
|
2214
|
-
|
|
2226
|
+
h(0, ["SSSSSSSSS", 9], 0, function() {
|
|
2215
2227
|
return this.millisecond() * 1e6;
|
|
2216
2228
|
});
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
var X,
|
|
2229
|
+
d("S", Ee, jt);
|
|
2230
|
+
d("SS", Ee, T);
|
|
2231
|
+
d("SSS", Ee, Gt);
|
|
2232
|
+
var X, Ss;
|
|
2221
2233
|
for (X = "SSSS"; X.length <= 9; X += "S")
|
|
2222
|
-
|
|
2223
|
-
function
|
|
2224
|
-
|
|
2234
|
+
d(X, de);
|
|
2235
|
+
function Jn(e, t) {
|
|
2236
|
+
t[te] = m(("0." + e) * 1e3);
|
|
2225
2237
|
}
|
|
2226
2238
|
for (X = "S"; X.length <= 9; X += "S")
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
function
|
|
2239
|
+
g(X, Jn);
|
|
2240
|
+
Ss = fe("Milliseconds", !1);
|
|
2241
|
+
h("z", 0, 0, "zoneAbbr");
|
|
2242
|
+
h("zz", 0, 0, "zoneName");
|
|
2243
|
+
function Qn() {
|
|
2232
2244
|
return this._isUTC ? "UTC" : "";
|
|
2233
2245
|
}
|
|
2234
|
-
function
|
|
2246
|
+
function Xn() {
|
|
2235
2247
|
return this._isUTC ? "Coordinated Universal Time" : "";
|
|
2236
2248
|
}
|
|
2237
|
-
var o =
|
|
2238
|
-
o.add =
|
|
2239
|
-
o.calendar =
|
|
2240
|
-
o.clone =
|
|
2241
|
-
o.diff =
|
|
2242
|
-
o.endOf =
|
|
2243
|
-
o.format =
|
|
2244
|
-
o.from =
|
|
2245
|
-
o.fromNow =
|
|
2246
|
-
o.to =
|
|
2247
|
-
o.toNow =
|
|
2248
|
-
o.get =
|
|
2249
|
-
o.invalidAt =
|
|
2250
|
-
o.isAfter =
|
|
2251
|
-
o.isBefore =
|
|
2252
|
-
o.isBetween =
|
|
2253
|
-
o.isSame =
|
|
2254
|
-
o.isSameOrAfter =
|
|
2255
|
-
o.isSameOrBefore =
|
|
2256
|
-
o.isValid =
|
|
2257
|
-
o.lang =
|
|
2258
|
-
o.locale =
|
|
2259
|
-
o.localeData =
|
|
2249
|
+
var o = Me.prototype;
|
|
2250
|
+
o.add = Gi;
|
|
2251
|
+
o.calendar = Ji;
|
|
2252
|
+
o.clone = Qi;
|
|
2253
|
+
o.diff = nn;
|
|
2254
|
+
o.endOf = _n;
|
|
2255
|
+
o.format = un;
|
|
2256
|
+
o.from = dn;
|
|
2257
|
+
o.fromNow = hn;
|
|
2258
|
+
o.to = fn;
|
|
2259
|
+
o.toNow = cn;
|
|
2260
|
+
o.get = or;
|
|
2261
|
+
o.invalidAt = vn;
|
|
2262
|
+
o.isAfter = Xi;
|
|
2263
|
+
o.isBefore = Ki;
|
|
2264
|
+
o.isBetween = en;
|
|
2265
|
+
o.isSame = tn;
|
|
2266
|
+
o.isSameOrAfter = sn;
|
|
2267
|
+
o.isSameOrBefore = rn;
|
|
2268
|
+
o.isValid = Sn;
|
|
2269
|
+
o.lang = _s;
|
|
2270
|
+
o.locale = ms;
|
|
2271
|
+
o.localeData = ys;
|
|
2260
2272
|
o.max = Mi;
|
|
2261
2273
|
o.min = ki;
|
|
2262
|
-
o.parsingFlags =
|
|
2263
|
-
o.set =
|
|
2264
|
-
o.startOf =
|
|
2265
|
-
o.subtract =
|
|
2266
|
-
o.toArray =
|
|
2267
|
-
o.toObject =
|
|
2268
|
-
o.toDate =
|
|
2269
|
-
o.toISOString =
|
|
2270
|
-
o.inspect =
|
|
2274
|
+
o.parsingFlags = Dn;
|
|
2275
|
+
o.set = lr;
|
|
2276
|
+
o.startOf = mn;
|
|
2277
|
+
o.subtract = Vi;
|
|
2278
|
+
o.toArray = gn;
|
|
2279
|
+
o.toObject = kn;
|
|
2280
|
+
o.toDate = pn;
|
|
2281
|
+
o.toISOString = on;
|
|
2282
|
+
o.inspect = ln;
|
|
2271
2283
|
typeof Symbol < "u" && Symbol.for != null && (o[Symbol.for("nodejs.util.inspect.custom")] = function() {
|
|
2272
2284
|
return "Moment<" + this.format() + ">";
|
|
2273
2285
|
});
|
|
2274
|
-
o.toJSON =
|
|
2275
|
-
o.toString =
|
|
2276
|
-
o.unix =
|
|
2277
|
-
o.valueOf =
|
|
2278
|
-
o.creationData =
|
|
2279
|
-
o.eraName =
|
|
2280
|
-
o.eraNarrow =
|
|
2281
|
-
o.eraAbbr =
|
|
2282
|
-
o.eraYear =
|
|
2283
|
-
o.year =
|
|
2284
|
-
o.isLeapYear =
|
|
2285
|
-
o.weekYear =
|
|
2286
|
-
o.isoWeekYear =
|
|
2287
|
-
o.quarter = o.quarters =
|
|
2288
|
-
o.month =
|
|
2289
|
-
o.daysInMonth =
|
|
2290
|
-
o.week = o.weeks =
|
|
2291
|
-
o.isoWeek = o.isoWeeks =
|
|
2292
|
-
o.weeksInYear =
|
|
2293
|
-
o.weeksInWeekYear =
|
|
2294
|
-
o.isoWeeksInYear =
|
|
2295
|
-
o.isoWeeksInISOWeekYear =
|
|
2296
|
-
o.date =
|
|
2297
|
-
o.day = o.days =
|
|
2298
|
-
o.weekday =
|
|
2299
|
-
o.isoWeekday =
|
|
2300
|
-
o.dayOfYear =
|
|
2301
|
-
o.hour = o.hours =
|
|
2302
|
-
o.minute = o.minutes =
|
|
2303
|
-
o.second = o.seconds =
|
|
2304
|
-
o.millisecond = o.milliseconds =
|
|
2305
|
-
o.utcOffset =
|
|
2306
|
-
o.utc =
|
|
2307
|
-
o.local =
|
|
2308
|
-
o.parseZone =
|
|
2309
|
-
o.hasAlignedHourOffset =
|
|
2310
|
-
o.isDST =
|
|
2311
|
-
o.isLocal =
|
|
2312
|
-
o.isUtcOffset =
|
|
2313
|
-
o.isUtc =
|
|
2314
|
-
o.isUTC =
|
|
2315
|
-
o.zoneAbbr =
|
|
2316
|
-
o.zoneName =
|
|
2286
|
+
o.toJSON = Mn;
|
|
2287
|
+
o.toString = an;
|
|
2288
|
+
o.unix = wn;
|
|
2289
|
+
o.valueOf = yn;
|
|
2290
|
+
o.creationData = Yn;
|
|
2291
|
+
o.eraName = bn;
|
|
2292
|
+
o.eraNarrow = Nn;
|
|
2293
|
+
o.eraAbbr = Pn;
|
|
2294
|
+
o.eraYear = Wn;
|
|
2295
|
+
o.year = $t;
|
|
2296
|
+
o.isLeapYear = ar;
|
|
2297
|
+
o.weekYear = Un;
|
|
2298
|
+
o.isoWeekYear = Hn;
|
|
2299
|
+
o.quarter = o.quarters = $n;
|
|
2300
|
+
o.month = Qt;
|
|
2301
|
+
o.daysInMonth = wr;
|
|
2302
|
+
o.week = o.weeks = Yr;
|
|
2303
|
+
o.isoWeek = o.isoWeeks = Or;
|
|
2304
|
+
o.weeksInYear = Gn;
|
|
2305
|
+
o.weeksInWeekYear = Vn;
|
|
2306
|
+
o.isoWeeksInYear = An;
|
|
2307
|
+
o.isoWeeksInISOWeekYear = jn;
|
|
2308
|
+
o.date = Ms;
|
|
2309
|
+
o.day = o.days = Ur;
|
|
2310
|
+
o.weekday = Hr;
|
|
2311
|
+
o.isoWeekday = Ar;
|
|
2312
|
+
o.dayOfYear = Zn;
|
|
2313
|
+
o.hour = o.hours = Br;
|
|
2314
|
+
o.minute = o.minutes = Bn;
|
|
2315
|
+
o.second = o.seconds = qn;
|
|
2316
|
+
o.millisecond = o.milliseconds = Ss;
|
|
2317
|
+
o.utcOffset = Ni;
|
|
2318
|
+
o.utc = Wi;
|
|
2319
|
+
o.local = Ri;
|
|
2320
|
+
o.parseZone = Fi;
|
|
2321
|
+
o.hasAlignedHourOffset = Ci;
|
|
2322
|
+
o.isDST = Li;
|
|
2323
|
+
o.isLocal = Ii;
|
|
2324
|
+
o.isUtcOffset = Ui;
|
|
2325
|
+
o.isUtc = ds;
|
|
2326
|
+
o.isUTC = ds;
|
|
2327
|
+
o.zoneAbbr = Qn;
|
|
2328
|
+
o.zoneName = Xn;
|
|
2317
2329
|
o.dates = N(
|
|
2318
2330
|
"dates accessor is deprecated. Use date instead.",
|
|
2319
|
-
|
|
2331
|
+
Ms
|
|
2320
2332
|
);
|
|
2321
2333
|
o.months = N(
|
|
2322
2334
|
"months accessor is deprecated. Use month instead",
|
|
2323
|
-
|
|
2335
|
+
Qt
|
|
2324
2336
|
);
|
|
2325
2337
|
o.years = N(
|
|
2326
2338
|
"years accessor is deprecated. Use year instead",
|
|
2327
|
-
|
|
2339
|
+
$t
|
|
2328
2340
|
);
|
|
2329
2341
|
o.zone = N(
|
|
2330
2342
|
"moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
|
|
2331
|
-
|
|
2343
|
+
Pi
|
|
2332
2344
|
);
|
|
2333
2345
|
o.isDSTShifted = N(
|
|
2334
2346
|
"isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",
|
|
2335
2347
|
Ei
|
|
2336
2348
|
);
|
|
2337
|
-
function
|
|
2338
|
-
return
|
|
2349
|
+
function Kn(e) {
|
|
2350
|
+
return k(e * 1e3);
|
|
2339
2351
|
}
|
|
2340
|
-
function
|
|
2341
|
-
return
|
|
2352
|
+
function ea() {
|
|
2353
|
+
return k.apply(null, arguments).parseZone();
|
|
2342
2354
|
}
|
|
2343
|
-
function
|
|
2344
|
-
return
|
|
2355
|
+
function Ds(e) {
|
|
2356
|
+
return e;
|
|
2345
2357
|
}
|
|
2346
|
-
var p =
|
|
2347
|
-
p.calendar =
|
|
2348
|
-
p.longDateFormat =
|
|
2349
|
-
p.invalidDate =
|
|
2350
|
-
p.ordinal =
|
|
2351
|
-
p.preparse =
|
|
2352
|
-
p.postformat =
|
|
2353
|
-
p.relativeTime =
|
|
2354
|
-
p.pastFuture =
|
|
2355
|
-
p.set =
|
|
2356
|
-
p.eras =
|
|
2357
|
-
p.erasParse =
|
|
2358
|
-
p.erasConvertYear =
|
|
2359
|
-
p.erasAbbrRegex =
|
|
2360
|
-
p.erasNameRegex =
|
|
2361
|
-
p.erasNarrowRegex =
|
|
2362
|
-
p.months =
|
|
2363
|
-
p.monthsShort =
|
|
2364
|
-
p.monthsParse =
|
|
2365
|
-
p.monthsRegex =
|
|
2366
|
-
p.monthsShortRegex =
|
|
2367
|
-
p.week =
|
|
2368
|
-
p.firstDayOfYear =
|
|
2369
|
-
p.firstDayOfWeek =
|
|
2370
|
-
p.weekdays =
|
|
2371
|
-
p.weekdaysMin =
|
|
2372
|
-
p.weekdaysShort =
|
|
2373
|
-
p.weekdaysParse =
|
|
2374
|
-
p.weekdaysRegex =
|
|
2375
|
-
p.weekdaysShortRegex =
|
|
2376
|
-
p.weekdaysMinRegex =
|
|
2377
|
-
p.isPM =
|
|
2378
|
-
p.meridiem =
|
|
2379
|
-
function
|
|
2380
|
-
var i =
|
|
2381
|
-
return i[
|
|
2382
|
-
}
|
|
2383
|
-
function
|
|
2384
|
-
if (
|
|
2385
|
-
return
|
|
2386
|
-
var
|
|
2387
|
-
for (
|
|
2388
|
-
i[
|
|
2358
|
+
var p = lt.prototype;
|
|
2359
|
+
p.calendar = Is;
|
|
2360
|
+
p.longDateFormat = js;
|
|
2361
|
+
p.invalidDate = Vs;
|
|
2362
|
+
p.ordinal = Zs;
|
|
2363
|
+
p.preparse = Ds;
|
|
2364
|
+
p.postformat = Ds;
|
|
2365
|
+
p.relativeTime = qs;
|
|
2366
|
+
p.pastFuture = Js;
|
|
2367
|
+
p.set = Ls;
|
|
2368
|
+
p.eras = On;
|
|
2369
|
+
p.erasParse = xn;
|
|
2370
|
+
p.erasConvertYear = Tn;
|
|
2371
|
+
p.erasAbbrRegex = Fn;
|
|
2372
|
+
p.erasNameRegex = Rn;
|
|
2373
|
+
p.erasNarrowRegex = Cn;
|
|
2374
|
+
p.months = cr;
|
|
2375
|
+
p.monthsShort = mr;
|
|
2376
|
+
p.monthsParse = yr;
|
|
2377
|
+
p.monthsRegex = gr;
|
|
2378
|
+
p.monthsShortRegex = pr;
|
|
2379
|
+
p.week = Mr;
|
|
2380
|
+
p.firstDayOfYear = vr;
|
|
2381
|
+
p.firstDayOfWeek = Dr;
|
|
2382
|
+
p.weekdays = Fr;
|
|
2383
|
+
p.weekdaysMin = Lr;
|
|
2384
|
+
p.weekdaysShort = Cr;
|
|
2385
|
+
p.weekdaysParse = Ir;
|
|
2386
|
+
p.weekdaysRegex = jr;
|
|
2387
|
+
p.weekdaysShortRegex = Gr;
|
|
2388
|
+
p.weekdaysMinRegex = Vr;
|
|
2389
|
+
p.isPM = $r;
|
|
2390
|
+
p.meridiem = qr;
|
|
2391
|
+
function Re(e, t, s, r) {
|
|
2392
|
+
var i = B(), n = I().set(r, t);
|
|
2393
|
+
return i[s](n, e);
|
|
2394
|
+
}
|
|
2395
|
+
function vs(e, t, s) {
|
|
2396
|
+
if (Z(e) && (t = e, e = void 0), e = e || "", t != null)
|
|
2397
|
+
return Re(e, t, s, "month");
|
|
2398
|
+
var r, i = [];
|
|
2399
|
+
for (r = 0; r < 12; r++)
|
|
2400
|
+
i[r] = Re(e, r, s, "month");
|
|
2389
2401
|
return i;
|
|
2390
2402
|
}
|
|
2391
|
-
function
|
|
2392
|
-
typeof
|
|
2393
|
-
var i =
|
|
2394
|
-
if (
|
|
2395
|
-
return
|
|
2403
|
+
function Ot(e, t, s, r) {
|
|
2404
|
+
typeof e == "boolean" ? (Z(t) && (s = t, t = void 0), t = t || "") : (t = e, s = t, e = !1, Z(t) && (s = t, t = void 0), t = t || "");
|
|
2405
|
+
var i = B(), n = e ? i._week.dow : 0, a, l = [];
|
|
2406
|
+
if (s != null)
|
|
2407
|
+
return Re(t, (s + n) % 7, r, "day");
|
|
2396
2408
|
for (a = 0; a < 7; a++)
|
|
2397
|
-
|
|
2398
|
-
return
|
|
2409
|
+
l[a] = Re(t, (a + n) % 7, r, "day");
|
|
2410
|
+
return l;
|
|
2399
2411
|
}
|
|
2400
|
-
function
|
|
2401
|
-
return
|
|
2412
|
+
function ta(e, t) {
|
|
2413
|
+
return vs(e, t, "months");
|
|
2402
2414
|
}
|
|
2403
|
-
function
|
|
2404
|
-
return
|
|
2415
|
+
function sa(e, t) {
|
|
2416
|
+
return vs(e, t, "monthsShort");
|
|
2405
2417
|
}
|
|
2406
|
-
function
|
|
2407
|
-
return
|
|
2418
|
+
function ra(e, t, s) {
|
|
2419
|
+
return Ot(e, t, s, "weekdays");
|
|
2408
2420
|
}
|
|
2409
|
-
function ia(
|
|
2410
|
-
return
|
|
2421
|
+
function ia(e, t, s) {
|
|
2422
|
+
return Ot(e, t, s, "weekdaysShort");
|
|
2411
2423
|
}
|
|
2412
|
-
function
|
|
2413
|
-
return
|
|
2424
|
+
function na(e, t, s) {
|
|
2425
|
+
return Ot(e, t, s, "weekdaysMin");
|
|
2414
2426
|
}
|
|
2415
2427
|
K("en", {
|
|
2416
2428
|
eras: [
|
|
@@ -2432,100 +2444,100 @@ K("en", {
|
|
|
2432
2444
|
}
|
|
2433
2445
|
],
|
|
2434
2446
|
dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
|
|
2435
|
-
ordinal: function(
|
|
2436
|
-
var
|
|
2437
|
-
return
|
|
2447
|
+
ordinal: function(e) {
|
|
2448
|
+
var t = e % 10, s = m(e % 100 / 10) === 1 ? "th" : t === 1 ? "st" : t === 2 ? "nd" : t === 3 ? "rd" : "th";
|
|
2449
|
+
return e + s;
|
|
2438
2450
|
}
|
|
2439
2451
|
});
|
|
2440
|
-
|
|
2452
|
+
u.lang = N(
|
|
2441
2453
|
"moment.lang is deprecated. Use moment.locale instead.",
|
|
2442
2454
|
K
|
|
2443
2455
|
);
|
|
2444
|
-
|
|
2456
|
+
u.langData = N(
|
|
2445
2457
|
"moment.langData is deprecated. Use moment.localeData instead.",
|
|
2446
|
-
|
|
2458
|
+
B
|
|
2447
2459
|
);
|
|
2448
|
-
var
|
|
2460
|
+
var A = Math.abs;
|
|
2449
2461
|
function aa() {
|
|
2450
|
-
var
|
|
2451
|
-
return this._milliseconds =
|
|
2462
|
+
var e = this._data;
|
|
2463
|
+
return this._milliseconds = A(this._milliseconds), this._days = A(this._days), this._months = A(this._months), e.milliseconds = A(e.milliseconds), e.seconds = A(e.seconds), e.minutes = A(e.minutes), e.hours = A(e.hours), e.months = A(e.months), e.years = A(e.years), this;
|
|
2452
2464
|
}
|
|
2453
|
-
function
|
|
2454
|
-
var i =
|
|
2455
|
-
return
|
|
2465
|
+
function Ys(e, t, s, r) {
|
|
2466
|
+
var i = C(t, s);
|
|
2467
|
+
return e._milliseconds += r * i._milliseconds, e._days += r * i._days, e._months += r * i._months, e._bubble();
|
|
2456
2468
|
}
|
|
2457
|
-
function oa(
|
|
2458
|
-
return
|
|
2469
|
+
function oa(e, t) {
|
|
2470
|
+
return Ys(this, e, t, 1);
|
|
2459
2471
|
}
|
|
2460
|
-
function
|
|
2461
|
-
return
|
|
2472
|
+
function la(e, t) {
|
|
2473
|
+
return Ys(this, e, t, -1);
|
|
2462
2474
|
}
|
|
2463
|
-
function
|
|
2464
|
-
return
|
|
2475
|
+
function Wt(e) {
|
|
2476
|
+
return e < 0 ? Math.floor(e) : Math.ceil(e);
|
|
2465
2477
|
}
|
|
2466
|
-
function
|
|
2467
|
-
var
|
|
2468
|
-
return
|
|
2478
|
+
function ua() {
|
|
2479
|
+
var e = this._milliseconds, t = this._days, s = this._months, r = this._data, i, n, a, l, f;
|
|
2480
|
+
return e >= 0 && t >= 0 && s >= 0 || e <= 0 && t <= 0 && s <= 0 || (e += Wt(rt(s) + t) * 864e5, t = 0, s = 0), r.milliseconds = e % 1e3, i = b(e / 1e3), r.seconds = i % 60, n = b(i / 60), r.minutes = n % 60, a = b(n / 60), r.hours = a % 24, t += b(a / 24), f = b(Os(t)), s += f, t -= Wt(rt(f)), l = b(s / 12), s %= 12, r.days = t, r.months = s, r.years = l, this;
|
|
2469
2481
|
}
|
|
2470
|
-
function
|
|
2471
|
-
return
|
|
2482
|
+
function Os(e) {
|
|
2483
|
+
return e * 4800 / 146097;
|
|
2472
2484
|
}
|
|
2473
|
-
function
|
|
2474
|
-
return
|
|
2485
|
+
function rt(e) {
|
|
2486
|
+
return e * 146097 / 4800;
|
|
2475
2487
|
}
|
|
2476
|
-
function
|
|
2488
|
+
function da(e) {
|
|
2477
2489
|
if (!this.isValid())
|
|
2478
2490
|
return NaN;
|
|
2479
|
-
var
|
|
2480
|
-
if (
|
|
2481
|
-
switch (
|
|
2491
|
+
var t, s, r = this._milliseconds;
|
|
2492
|
+
if (e = P(e), e === "month" || e === "quarter" || e === "year")
|
|
2493
|
+
switch (t = this._days + r / 864e5, s = this._months + Os(t), e) {
|
|
2482
2494
|
case "month":
|
|
2483
|
-
return
|
|
2495
|
+
return s;
|
|
2484
2496
|
case "quarter":
|
|
2485
|
-
return
|
|
2497
|
+
return s / 3;
|
|
2486
2498
|
case "year":
|
|
2487
|
-
return
|
|
2499
|
+
return s / 12;
|
|
2488
2500
|
}
|
|
2489
2501
|
else
|
|
2490
|
-
switch (
|
|
2502
|
+
switch (t = this._days + Math.round(rt(this._months)), e) {
|
|
2491
2503
|
case "week":
|
|
2492
|
-
return
|
|
2504
|
+
return t / 7 + r / 6048e5;
|
|
2493
2505
|
case "day":
|
|
2494
|
-
return
|
|
2506
|
+
return t + r / 864e5;
|
|
2495
2507
|
case "hour":
|
|
2496
|
-
return
|
|
2508
|
+
return t * 24 + r / 36e5;
|
|
2497
2509
|
case "minute":
|
|
2498
|
-
return
|
|
2510
|
+
return t * 1440 + r / 6e4;
|
|
2499
2511
|
case "second":
|
|
2500
|
-
return
|
|
2512
|
+
return t * 86400 + r / 1e3;
|
|
2501
2513
|
case "millisecond":
|
|
2502
|
-
return Math.floor(
|
|
2514
|
+
return Math.floor(t * 864e5) + r;
|
|
2503
2515
|
default:
|
|
2504
|
-
throw new Error("Unknown unit " +
|
|
2516
|
+
throw new Error("Unknown unit " + e);
|
|
2505
2517
|
}
|
|
2506
2518
|
}
|
|
2507
|
-
function q(
|
|
2519
|
+
function q(e) {
|
|
2508
2520
|
return function() {
|
|
2509
|
-
return this.as(
|
|
2521
|
+
return this.as(e);
|
|
2510
2522
|
};
|
|
2511
2523
|
}
|
|
2512
|
-
var
|
|
2513
|
-
function
|
|
2514
|
-
return
|
|
2524
|
+
var xs = q("ms"), ha = q("s"), fa = q("m"), ca = q("h"), ma = q("d"), _a = q("w"), ya = q("M"), wa = q("Q"), pa = q("y"), ga = xs;
|
|
2525
|
+
function ka() {
|
|
2526
|
+
return C(this);
|
|
2515
2527
|
}
|
|
2516
|
-
function
|
|
2517
|
-
return
|
|
2528
|
+
function Ma(e) {
|
|
2529
|
+
return e = P(e), this.isValid() ? this[e + "s"]() : NaN;
|
|
2518
2530
|
}
|
|
2519
|
-
function
|
|
2531
|
+
function re(e) {
|
|
2520
2532
|
return function() {
|
|
2521
|
-
return this.isValid() ? this._data[
|
|
2533
|
+
return this.isValid() ? this._data[e] : NaN;
|
|
2522
2534
|
};
|
|
2523
2535
|
}
|
|
2524
|
-
var
|
|
2536
|
+
var Sa = re("milliseconds"), Da = re("seconds"), va = re("minutes"), Ya = re("hours"), Oa = re("days"), xa = re("months"), Ta = re("years");
|
|
2525
2537
|
function ba() {
|
|
2526
2538
|
return b(this.days() / 7);
|
|
2527
2539
|
}
|
|
2528
|
-
var
|
|
2540
|
+
var j = Math.round, ae = {
|
|
2529
2541
|
ss: 44,
|
|
2530
2542
|
// a few seconds to seconds
|
|
2531
2543
|
s: 45,
|
|
@@ -2541,114 +2553,114 @@ var A = Math.round, at = {
|
|
|
2541
2553
|
M: 11
|
|
2542
2554
|
// months to year
|
|
2543
2555
|
};
|
|
2544
|
-
function Na(
|
|
2545
|
-
return i.relativeTime(
|
|
2556
|
+
function Na(e, t, s, r, i) {
|
|
2557
|
+
return i.relativeTime(t || 1, !!s, e, r);
|
|
2546
2558
|
}
|
|
2547
|
-
function Pa(
|
|
2548
|
-
var i =
|
|
2549
|
-
return
|
|
2559
|
+
function Pa(e, t, s, r) {
|
|
2560
|
+
var i = C(e).abs(), n = j(i.as("s")), a = j(i.as("m")), l = j(i.as("h")), f = j(i.as("d")), _ = j(i.as("M")), O = j(i.as("w")), H = j(i.as("y")), J = n <= s.ss && ["s", n] || n < s.s && ["ss", n] || a <= 1 && ["m"] || a < s.m && ["mm", a] || l <= 1 && ["h"] || l < s.h && ["hh", l] || f <= 1 && ["d"] || f < s.d && ["dd", f];
|
|
2561
|
+
return s.w != null && (J = J || O <= 1 && ["w"] || O < s.w && ["ww", O]), J = J || _ <= 1 && ["M"] || _ < s.M && ["MM", _] || H <= 1 && ["y"] || ["yy", H], J[2] = t, J[3] = +e > 0, J[4] = r, Na.apply(null, J);
|
|
2550
2562
|
}
|
|
2551
|
-
function
|
|
2552
|
-
return
|
|
2563
|
+
function Wa(e) {
|
|
2564
|
+
return e === void 0 ? j : typeof e == "function" ? (j = e, !0) : !1;
|
|
2553
2565
|
}
|
|
2554
|
-
function Ra(
|
|
2555
|
-
return
|
|
2566
|
+
function Ra(e, t) {
|
|
2567
|
+
return ae[e] === void 0 ? !1 : t === void 0 ? ae[e] : (ae[e] = t, e === "s" && (ae.ss = t - 1), !0);
|
|
2556
2568
|
}
|
|
2557
|
-
function
|
|
2569
|
+
function Fa(e, t) {
|
|
2558
2570
|
if (!this.isValid())
|
|
2559
2571
|
return this.localeData().invalidDate();
|
|
2560
|
-
var
|
|
2561
|
-
return typeof
|
|
2572
|
+
var s = !1, r = ae, i, n;
|
|
2573
|
+
return typeof e == "object" && (t = e, e = !1), typeof e == "boolean" && (s = e), typeof t == "object" && (r = Object.assign({}, ae, t), t.s != null && t.ss == null && (r.ss = t.s - 1)), i = this.localeData(), n = Pa(this, !s, r, i), s && (n = i.pastFuture(+this, n)), i.postformat(n);
|
|
2562
2574
|
}
|
|
2563
|
-
var
|
|
2564
|
-
function
|
|
2565
|
-
return (
|
|
2575
|
+
var qe = Math.abs;
|
|
2576
|
+
function ie(e) {
|
|
2577
|
+
return (e > 0) - (e < 0) || +e;
|
|
2566
2578
|
}
|
|
2567
|
-
function
|
|
2579
|
+
function ze() {
|
|
2568
2580
|
if (!this.isValid())
|
|
2569
2581
|
return this.localeData().invalidDate();
|
|
2570
|
-
var
|
|
2571
|
-
return
|
|
2582
|
+
var e = qe(this._milliseconds) / 1e3, t = qe(this._days), s = qe(this._months), r, i, n, a, l = this.asSeconds(), f, _, O, H;
|
|
2583
|
+
return l ? (r = b(e / 60), i = b(r / 60), e %= 60, r %= 60, n = b(s / 12), s %= 12, a = e ? e.toFixed(3).replace(/\.?0+$/, "") : "", f = l < 0 ? "-" : "", _ = ie(this._months) !== ie(l) ? "-" : "", O = ie(this._days) !== ie(l) ? "-" : "", H = ie(this._milliseconds) !== ie(l) ? "-" : "", f + "P" + (n ? _ + n + "Y" : "") + (s ? _ + s + "M" : "") + (t ? O + t + "D" : "") + (i || r || e ? "T" : "") + (i ? H + i + "H" : "") + (r ? H + r + "M" : "") + (e ? H + a + "S" : "")) : "P0D";
|
|
2572
2584
|
}
|
|
2573
|
-
var y =
|
|
2585
|
+
var y = Ge.prototype;
|
|
2574
2586
|
y.isValid = Oi;
|
|
2575
2587
|
y.abs = aa;
|
|
2576
2588
|
y.add = oa;
|
|
2577
|
-
y.subtract =
|
|
2578
|
-
y.as =
|
|
2579
|
-
y.asMilliseconds =
|
|
2580
|
-
y.asSeconds =
|
|
2581
|
-
y.asMinutes =
|
|
2582
|
-
y.asHours =
|
|
2589
|
+
y.subtract = la;
|
|
2590
|
+
y.as = da;
|
|
2591
|
+
y.asMilliseconds = xs;
|
|
2592
|
+
y.asSeconds = ha;
|
|
2593
|
+
y.asMinutes = fa;
|
|
2594
|
+
y.asHours = ca;
|
|
2583
2595
|
y.asDays = ma;
|
|
2584
2596
|
y.asWeeks = _a;
|
|
2585
2597
|
y.asMonths = ya;
|
|
2586
|
-
y.asQuarters =
|
|
2598
|
+
y.asQuarters = wa;
|
|
2587
2599
|
y.asYears = pa;
|
|
2588
|
-
y.valueOf =
|
|
2589
|
-
y._bubble =
|
|
2590
|
-
y.clone =
|
|
2591
|
-
y.get =
|
|
2592
|
-
y.milliseconds =
|
|
2593
|
-
y.seconds =
|
|
2594
|
-
y.minutes =
|
|
2600
|
+
y.valueOf = ga;
|
|
2601
|
+
y._bubble = ua;
|
|
2602
|
+
y.clone = ka;
|
|
2603
|
+
y.get = Ma;
|
|
2604
|
+
y.milliseconds = Sa;
|
|
2605
|
+
y.seconds = Da;
|
|
2606
|
+
y.minutes = va;
|
|
2595
2607
|
y.hours = Ya;
|
|
2596
|
-
y.days =
|
|
2608
|
+
y.days = Oa;
|
|
2597
2609
|
y.weeks = ba;
|
|
2598
|
-
y.months =
|
|
2610
|
+
y.months = xa;
|
|
2599
2611
|
y.years = Ta;
|
|
2600
|
-
y.humanize =
|
|
2601
|
-
y.toISOString =
|
|
2602
|
-
y.toString =
|
|
2603
|
-
y.toJSON =
|
|
2604
|
-
y.locale =
|
|
2605
|
-
y.localeData =
|
|
2612
|
+
y.humanize = Fa;
|
|
2613
|
+
y.toISOString = ze;
|
|
2614
|
+
y.toString = ze;
|
|
2615
|
+
y.toJSON = ze;
|
|
2616
|
+
y.locale = ms;
|
|
2617
|
+
y.localeData = ys;
|
|
2606
2618
|
y.toIsoString = N(
|
|
2607
2619
|
"toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",
|
|
2608
|
-
|
|
2620
|
+
ze
|
|
2609
2621
|
);
|
|
2610
|
-
y.lang =
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2622
|
+
y.lang = _s;
|
|
2623
|
+
h("X", 0, 0, "unix");
|
|
2624
|
+
h("x", 0, 0, "valueOf");
|
|
2625
|
+
d("x", Ue);
|
|
2626
|
+
d("X", er);
|
|
2627
|
+
g("X", function(e, t, s) {
|
|
2628
|
+
s._d = new Date(parseFloat(e) * 1e3);
|
|
2617
2629
|
});
|
|
2618
|
-
|
|
2619
|
-
|
|
2630
|
+
g("x", function(e, t, s) {
|
|
2631
|
+
s._d = new Date(m(e));
|
|
2620
2632
|
});
|
|
2621
2633
|
//! moment.js
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2634
|
+
u.version = "2.30.1";
|
|
2635
|
+
Fs(k);
|
|
2636
|
+
u.fn = o;
|
|
2637
|
+
u.min = Si;
|
|
2638
|
+
u.max = Di;
|
|
2639
|
+
u.now = vi;
|
|
2640
|
+
u.utc = I;
|
|
2641
|
+
u.unix = Kn;
|
|
2642
|
+
u.months = ta;
|
|
2643
|
+
u.isDate = ke;
|
|
2644
|
+
u.locale = K;
|
|
2645
|
+
u.invalid = Ce;
|
|
2646
|
+
u.duration = C;
|
|
2647
|
+
u.isMoment = F;
|
|
2648
|
+
u.weekdays = ra;
|
|
2649
|
+
u.parseZone = ea;
|
|
2650
|
+
u.localeData = B;
|
|
2651
|
+
u.isDuration = xe;
|
|
2652
|
+
u.monthsShort = sa;
|
|
2653
|
+
u.weekdaysMin = na;
|
|
2654
|
+
u.defineLocale = pt;
|
|
2655
|
+
u.updateLocale = Kr;
|
|
2656
|
+
u.locales = ei;
|
|
2657
|
+
u.weekdaysShort = ia;
|
|
2658
|
+
u.normalizeUnits = P;
|
|
2659
|
+
u.relativeTimeRounding = Wa;
|
|
2660
|
+
u.relativeTimeThreshold = Ra;
|
|
2661
|
+
u.calendarFormat = qi;
|
|
2662
|
+
u.prototype = o;
|
|
2663
|
+
u.HTML5_FMT = {
|
|
2652
2664
|
DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
|
|
2653
2665
|
// <input type="datetime-local" />
|
|
2654
2666
|
DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss",
|
|
@@ -2668,7 +2680,7 @@ l.HTML5_FMT = {
|
|
|
2668
2680
|
MONTH: "YYYY-MM"
|
|
2669
2681
|
// <input type="month" />
|
|
2670
2682
|
};
|
|
2671
|
-
const
|
|
2683
|
+
const Rt = (e) => typeof e == "number", Ca = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i, La = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i, Ft = /(janv\.?|févr\.?|avr\.?|juil\.?|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i, Je = [
|
|
2672
2684
|
/^janv/i,
|
|
2673
2685
|
/^févr/i,
|
|
2674
2686
|
/^mars/i,
|
|
@@ -2681,18 +2693,18 @@ const La = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octob
|
|
|
2681
2693
|
/^oct/i,
|
|
2682
2694
|
/^nov/i,
|
|
2683
2695
|
/^déc/i
|
|
2684
|
-
],
|
|
2696
|
+
], Ea = {
|
|
2685
2697
|
months: "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split(
|
|
2686
2698
|
"_"
|
|
2687
2699
|
),
|
|
2688
2700
|
monthsShort: "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),
|
|
2689
|
-
monthsRegex:
|
|
2690
|
-
monthsShortRegex:
|
|
2691
|
-
monthsStrictRegex:
|
|
2692
|
-
monthsShortStrictRegex:
|
|
2693
|
-
monthsParse:
|
|
2694
|
-
longMonthsParse:
|
|
2695
|
-
shortMonthsParse:
|
|
2701
|
+
monthsRegex: Ft,
|
|
2702
|
+
monthsShortRegex: Ft,
|
|
2703
|
+
monthsStrictRegex: Ca,
|
|
2704
|
+
monthsShortStrictRegex: La,
|
|
2705
|
+
monthsParse: Je,
|
|
2706
|
+
longMonthsParse: Je,
|
|
2707
|
+
shortMonthsParse: Je,
|
|
2696
2708
|
weekdays: "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),
|
|
2697
2709
|
weekdaysShort: "dim._lun._mar._mer._jeu._ven._sam.".split("_"),
|
|
2698
2710
|
weekdaysMin: "di_lu_ma_me_je_ve_sa".split("_"),
|
|
@@ -2732,19 +2744,19 @@ const La = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octob
|
|
|
2732
2744
|
yy: "%d ans"
|
|
2733
2745
|
},
|
|
2734
2746
|
dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
|
|
2735
|
-
ordinal: (
|
|
2736
|
-
switch (
|
|
2747
|
+
ordinal: (e, t) => {
|
|
2748
|
+
switch (t) {
|
|
2737
2749
|
case "D":
|
|
2738
|
-
return
|
|
2750
|
+
return e + (e === 1 ? "er" : "");
|
|
2739
2751
|
default:
|
|
2740
2752
|
case "M":
|
|
2741
2753
|
case "Q":
|
|
2742
2754
|
case "DDD":
|
|
2743
2755
|
case "d":
|
|
2744
|
-
return
|
|
2756
|
+
return e + (e === 1 ? "er" : "e");
|
|
2745
2757
|
case "w":
|
|
2746
2758
|
case "W":
|
|
2747
|
-
return
|
|
2759
|
+
return e + (e === 1 ? "re" : "e");
|
|
2748
2760
|
}
|
|
2749
2761
|
},
|
|
2750
2762
|
week: {
|
|
@@ -2752,10 +2764,10 @@ const La = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octob
|
|
|
2752
2764
|
doy: 4
|
|
2753
2765
|
}
|
|
2754
2766
|
};
|
|
2755
|
-
|
|
2756
|
-
const
|
|
2757
|
-
x:
|
|
2758
|
-
y:
|
|
2767
|
+
u.locale("fr", Ea);
|
|
2768
|
+
const Ia = (e) => ({
|
|
2769
|
+
x: Rt(e) ? e : e.x || 0,
|
|
2770
|
+
y: Rt(e) ? e : e.y || 0
|
|
2759
2771
|
}), Ua = {
|
|
2760
2772
|
x: 0,
|
|
2761
2773
|
y: 0,
|
|
@@ -2763,57 +2775,57 @@ const Ea = (t) => ({
|
|
|
2763
2775
|
height: 0,
|
|
2764
2776
|
color: "white",
|
|
2765
2777
|
padding: 0,
|
|
2766
|
-
origin:
|
|
2778
|
+
origin: Fe.TOP_LEFT,
|
|
2767
2779
|
composite: "source-over"
|
|
2768
|
-
},
|
|
2769
|
-
context:
|
|
2780
|
+
}, Ha = (e) => ({
|
|
2781
|
+
context: e.context,
|
|
2770
2782
|
options: { ...Ua },
|
|
2771
|
-
setPosition(
|
|
2772
|
-
return this.options.x =
|
|
2783
|
+
setPosition(t, s) {
|
|
2784
|
+
return this.options.x = t, this.options.y = s, this;
|
|
2773
2785
|
},
|
|
2774
|
-
setDimensions(
|
|
2775
|
-
return this.options.width =
|
|
2786
|
+
setDimensions(t, s) {
|
|
2787
|
+
return this.options.width = t, this.options.height = s, this;
|
|
2776
2788
|
},
|
|
2777
|
-
setColor(
|
|
2778
|
-
return this.options.color =
|
|
2789
|
+
setColor(t) {
|
|
2790
|
+
return this.options.color = t, this;
|
|
2779
2791
|
},
|
|
2780
|
-
setPadding(
|
|
2781
|
-
return this.options.padding =
|
|
2792
|
+
setPadding(t) {
|
|
2793
|
+
return this.options.padding = t, this;
|
|
2782
2794
|
},
|
|
2783
|
-
setOrigin(
|
|
2784
|
-
return this.options.origin =
|
|
2795
|
+
setOrigin(t) {
|
|
2796
|
+
return this.options.origin = t, this;
|
|
2785
2797
|
},
|
|
2786
|
-
setComposite(
|
|
2787
|
-
return this.options.composite =
|
|
2798
|
+
setComposite(t) {
|
|
2799
|
+
return this.options.composite = t, this;
|
|
2788
2800
|
},
|
|
2789
2801
|
draw() {
|
|
2790
2802
|
this.context.save(), this.context.globalCompositeOperation = this.options.composite;
|
|
2791
|
-
const { x:
|
|
2803
|
+
const { x: t, y: s } = it[this.options.origin](
|
|
2792
2804
|
this.options.x,
|
|
2793
2805
|
this.options.y,
|
|
2794
2806
|
this.options.width,
|
|
2795
2807
|
this.options.height
|
|
2796
|
-
),
|
|
2797
|
-
return this.context.fillStyle =
|
|
2808
|
+
), r = Ia(this.options.padding);
|
|
2809
|
+
return this.context.fillStyle = Rs(
|
|
2798
2810
|
this.options.color,
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2811
|
+
e,
|
|
2812
|
+
t - r.x,
|
|
2813
|
+
s - r.y,
|
|
2814
|
+
t + this.options.width + r.x * 2,
|
|
2815
|
+
s + this.options.height + r.y * 2
|
|
2804
2816
|
), this.context.fillRect(
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
this.options.width +
|
|
2808
|
-
this.options.height +
|
|
2817
|
+
t - r.x,
|
|
2818
|
+
s - r.y,
|
|
2819
|
+
this.options.width + r.x * 2,
|
|
2820
|
+
this.options.height + r.y * 2
|
|
2809
2821
|
), this.context.restore(), {
|
|
2810
|
-
width: this.options.width +
|
|
2811
|
-
next: (i) => i(
|
|
2822
|
+
width: this.options.width + r.x * 2,
|
|
2823
|
+
next: (i) => i(e, { ...this.options, enable: !0 })
|
|
2812
2824
|
};
|
|
2813
2825
|
}
|
|
2814
|
-
}),
|
|
2826
|
+
}), Aa = (e, t) => ({
|
|
2815
2827
|
options: {
|
|
2816
|
-
text:
|
|
2828
|
+
text: t.toString(),
|
|
2817
2829
|
x: 0,
|
|
2818
2830
|
y: 0,
|
|
2819
2831
|
width: 0,
|
|
@@ -2822,84 +2834,84 @@ const Ea = (t) => ({
|
|
|
2822
2834
|
font: null,
|
|
2823
2835
|
fontSize: 20,
|
|
2824
2836
|
padding: 0,
|
|
2825
|
-
origin:
|
|
2837
|
+
origin: Fe.TOP_LEFT
|
|
2826
2838
|
},
|
|
2827
|
-
context:
|
|
2828
|
-
setText(
|
|
2829
|
-
return this.options.text =
|
|
2839
|
+
context: e.context,
|
|
2840
|
+
setText(r) {
|
|
2841
|
+
return this.options.text = r, this;
|
|
2830
2842
|
},
|
|
2831
|
-
setPosition(
|
|
2832
|
-
return this.options.x =
|
|
2843
|
+
setPosition(r, i) {
|
|
2844
|
+
return this.options.x = r, this.options.y = i, this;
|
|
2833
2845
|
},
|
|
2834
|
-
addPosition(
|
|
2835
|
-
return this.options.x +=
|
|
2846
|
+
addPosition(r, i) {
|
|
2847
|
+
return this.options.x += r, this.options.y += i, this;
|
|
2836
2848
|
},
|
|
2837
|
-
setFont(
|
|
2838
|
-
return this.options.font =
|
|
2849
|
+
setFont(r, i) {
|
|
2850
|
+
return this.options.font = r, this.options.fontSize = i, this;
|
|
2839
2851
|
},
|
|
2840
|
-
setColor(
|
|
2841
|
-
return this.options.color =
|
|
2852
|
+
setColor(r) {
|
|
2853
|
+
return this.options.color = r, this;
|
|
2842
2854
|
},
|
|
2843
|
-
setBackgroundColor(
|
|
2844
|
-
return this.options.backgroundColor =
|
|
2855
|
+
setBackgroundColor(r) {
|
|
2856
|
+
return this.options.backgroundColor = r, this;
|
|
2845
2857
|
},
|
|
2846
|
-
setPadding(
|
|
2847
|
-
return this.options.padding =
|
|
2858
|
+
setPadding(r) {
|
|
2859
|
+
return this.options.padding = r, this;
|
|
2848
2860
|
},
|
|
2849
|
-
setOrigin(
|
|
2850
|
-
return this.options.origin =
|
|
2861
|
+
setOrigin(r) {
|
|
2862
|
+
return this.options.origin = r, this;
|
|
2851
2863
|
},
|
|
2852
|
-
setStroke(
|
|
2853
|
-
return this.options.stroke =
|
|
2864
|
+
setStroke(r) {
|
|
2865
|
+
return this.options.stroke = r, this;
|
|
2854
2866
|
},
|
|
2855
|
-
draw(
|
|
2867
|
+
draw(r = !0) {
|
|
2856
2868
|
if (!this.options.font)
|
|
2857
2869
|
throw new Error("No font chose");
|
|
2858
2870
|
this.context.save(), this.context.font = `${this.options.fontSize}px ${this.options.font}`, this.context.textBaseline = "top";
|
|
2859
2871
|
const { width: i } = this.context.measureText(this.options.text.toString());
|
|
2860
2872
|
this.options.width = i;
|
|
2861
|
-
const { x:
|
|
2873
|
+
const { x: n, y: a } = it[this.options.origin](
|
|
2862
2874
|
this.options.x,
|
|
2863
2875
|
this.options.y,
|
|
2864
2876
|
i,
|
|
2865
2877
|
this.options.fontSize
|
|
2866
2878
|
);
|
|
2867
|
-
return this.options.backgroundColor !== "transparent" &&
|
|
2879
|
+
return this.options.backgroundColor !== "transparent" && r && e.Rectangle().setPadding(this.options.padding).setPosition(this.options.x, this.options.y).setDimensions(i, this.options.fontSize).setColor(this.options.backgroundColor).setOrigin(this.options.origin).draw(), this.context.fillStyle = this.options.color, r && this.context.fillText(this.options.text.toString(), n, a), this.options.stroke && r && (this.context.strokeStyle = this.options.stroke.color, this.context.lineWidth = this.options.stroke.width, this.context.strokeText(this.options.text.toString(), n, a)), this.context.restore(), {
|
|
2868
2880
|
width: i,
|
|
2869
|
-
next: (
|
|
2881
|
+
next: (l) => l(e, {
|
|
2870
2882
|
...this.options,
|
|
2871
|
-
enable:
|
|
2883
|
+
enable: r
|
|
2872
2884
|
})
|
|
2873
2885
|
};
|
|
2874
2886
|
}
|
|
2875
|
-
}),
|
|
2876
|
-
const
|
|
2887
|
+
}), Za = (e, t) => {
|
|
2888
|
+
const s = bs(e, t);
|
|
2877
2889
|
return {
|
|
2878
|
-
context:
|
|
2879
|
-
width:
|
|
2880
|
-
height:
|
|
2881
|
-
Text(
|
|
2882
|
-
return
|
|
2890
|
+
context: s.getContext("2d"),
|
|
2891
|
+
width: e,
|
|
2892
|
+
height: t,
|
|
2893
|
+
Text(r) {
|
|
2894
|
+
return Aa(this, r);
|
|
2883
2895
|
},
|
|
2884
2896
|
Rectangle() {
|
|
2885
|
-
return
|
|
2897
|
+
return Ha(this);
|
|
2886
2898
|
},
|
|
2887
2899
|
Image() {
|
|
2888
|
-
return
|
|
2900
|
+
return Ps(this);
|
|
2889
2901
|
},
|
|
2890
2902
|
blur() {
|
|
2891
2903
|
this.context.filter = "blur(4px)";
|
|
2892
2904
|
},
|
|
2893
|
-
encode(
|
|
2894
|
-
return
|
|
2905
|
+
encode(r) {
|
|
2906
|
+
return s.encode(r);
|
|
2895
2907
|
}
|
|
2896
2908
|
};
|
|
2897
2909
|
};
|
|
2898
2910
|
export {
|
|
2899
|
-
|
|
2911
|
+
Fe as CanvasOrigin,
|
|
2900
2912
|
za as GOLDEN_GRADIENT,
|
|
2901
|
-
|
|
2902
|
-
|
|
2913
|
+
Za as createCanvas,
|
|
2914
|
+
Ga as loadImage,
|
|
2903
2915
|
Va as nextAllToXAxis,
|
|
2904
|
-
|
|
2916
|
+
$a as registerFont
|
|
2905
2917
|
};
|