@opfr/utils-type 0.18.4 → 0.18.7

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