@creopse/vue 0.0.8 → 0.0.10

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