60p82u21t54k 0.1.83 → 0.1.84
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/60p82u21t54k.es.js +1062 -1056
- package/dist/60p82u21t54k.umd.js +1 -1
- package/dist/model/applyWeekCard/getApplyWeekCardResponse.d.ts.map +1 -1
- package/dist/model/applyWeekCard/type.d.ts +1 -1
- package/dist/model/applyWeekCard/type.d.ts.map +1 -1
- package/dist/model/getWeekCardClaim/getGetWeekCardClaimResponse.d.ts.map +1 -1
- package/dist/model/getWeekCardClaim/type.d.ts +1 -1
- package/dist/model/getWeekCardClaim/type.d.ts.map +1 -1
- package/dist/model/getWeekCardData/getGetWeekCardDataResponse.d.ts +18 -14
- package/dist/model/getWeekCardData/getGetWeekCardDataResponse.d.ts.map +1 -1
- package/dist/model/getWeekCardData/type.d.ts +22 -15
- package/dist/model/getWeekCardData/type.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/60p82u21t54k.es.js
CHANGED
|
@@ -2,7 +2,7 @@ var hn = Object.defineProperty;
|
|
|
2
2
|
var _n = (e, n, t) => n in e ? hn(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
3
3
|
var h = (e, n, t) => _n(e, typeof n != "symbol" ? n + "" : n, t);
|
|
4
4
|
import Jt from "axios";
|
|
5
|
-
const
|
|
5
|
+
const ae = Jt.create({
|
|
6
6
|
baseURL: "",
|
|
7
7
|
timeout: 15e3,
|
|
8
8
|
// Request timeout
|
|
@@ -48,11 +48,11 @@ const re = Jt.create({
|
|
|
48
48
|
// },
|
|
49
49
|
// },
|
|
50
50
|
});
|
|
51
|
-
|
|
51
|
+
ae.interceptors.request.use(
|
|
52
52
|
(e) => e,
|
|
53
53
|
(e) => (console.error("Error request:", e.response), Promise.reject(e))
|
|
54
54
|
);
|
|
55
|
-
|
|
55
|
+
ae.interceptors.response.use(
|
|
56
56
|
(e) => e,
|
|
57
57
|
(e) => {
|
|
58
58
|
const n = {
|
|
@@ -81,8 +81,8 @@ function W(e, n) {
|
|
|
81
81
|
return Y(n || e, e);
|
|
82
82
|
}
|
|
83
83
|
function en(e, n, t) {
|
|
84
|
-
const
|
|
85
|
-
return isNaN(n) ? Y((t == null ? void 0 : t.in) || e, NaN) : (n &&
|
|
84
|
+
const r = W(e, t == null ? void 0 : t.in);
|
|
85
|
+
return isNaN(n) ? Y((t == null ? void 0 : t.in) || e, NaN) : (n && r.setDate(r.getDate() + n), r);
|
|
86
86
|
}
|
|
87
87
|
let Rn = {};
|
|
88
88
|
function Oe() {
|
|
@@ -90,19 +90,19 @@ function Oe() {
|
|
|
90
90
|
}
|
|
91
91
|
function fe(e, n) {
|
|
92
92
|
var d, g, f, b;
|
|
93
|
-
const t = Oe(),
|
|
94
|
-
return
|
|
93
|
+
const t = Oe(), r = (n == null ? void 0 : n.weekStartsOn) ?? ((g = (d = n == null ? void 0 : n.locale) == null ? void 0 : d.options) == null ? void 0 : g.weekStartsOn) ?? t.weekStartsOn ?? ((b = (f = t.locale) == null ? void 0 : f.options) == null ? void 0 : b.weekStartsOn) ?? 0, a = W(e, n == null ? void 0 : n.in), s = a.getDay(), o = (s < r ? 7 : 0) + s - r;
|
|
94
|
+
return a.setDate(a.getDate() - o), a.setHours(0, 0, 0, 0), a;
|
|
95
95
|
}
|
|
96
96
|
function Re(e, n) {
|
|
97
97
|
return fe(e, { ...n, weekStartsOn: 1 });
|
|
98
98
|
}
|
|
99
99
|
function tn(e, n) {
|
|
100
|
-
const t = W(e, n == null ? void 0 : n.in),
|
|
101
|
-
|
|
102
|
-
const s = Re(
|
|
103
|
-
o.setFullYear(
|
|
100
|
+
const t = W(e, n == null ? void 0 : n.in), r = t.getFullYear(), a = Y(t, 0);
|
|
101
|
+
a.setFullYear(r + 1, 0, 4), a.setHours(0, 0, 0, 0);
|
|
102
|
+
const s = Re(a), o = Y(t, 0);
|
|
103
|
+
o.setFullYear(r, 0, 4), o.setHours(0, 0, 0, 0);
|
|
104
104
|
const d = Re(o);
|
|
105
|
-
return t.getTime() >= s.getTime() ?
|
|
105
|
+
return t.getTime() >= s.getTime() ? r + 1 : t.getTime() >= d.getTime() ? r : r - 1;
|
|
106
106
|
}
|
|
107
107
|
function Ye(e) {
|
|
108
108
|
const n = W(e), t = new Date(
|
|
@@ -121,7 +121,7 @@ function Ye(e) {
|
|
|
121
121
|
function On(e, ...n) {
|
|
122
122
|
const t = Y.bind(
|
|
123
123
|
null,
|
|
124
|
-
n.find((
|
|
124
|
+
n.find((r) => typeof r == "object")
|
|
125
125
|
);
|
|
126
126
|
return n.map(t);
|
|
127
127
|
}
|
|
@@ -130,16 +130,16 @@ function Rt(e, n) {
|
|
|
130
130
|
return t.setHours(0, 0, 0, 0), t;
|
|
131
131
|
}
|
|
132
132
|
function Mn(e, n, t) {
|
|
133
|
-
const [
|
|
133
|
+
const [r, a] = On(
|
|
134
134
|
t == null ? void 0 : t.in,
|
|
135
135
|
e,
|
|
136
136
|
n
|
|
137
|
-
), s = Rt(
|
|
137
|
+
), s = Rt(r), o = Rt(a), d = +s - Ye(s), g = +o - Ye(o);
|
|
138
138
|
return Math.round((d - g) / wn);
|
|
139
139
|
}
|
|
140
140
|
function kn(e, n) {
|
|
141
|
-
const t = tn(e, n),
|
|
142
|
-
return
|
|
141
|
+
const t = tn(e, n), r = Y(e, 0);
|
|
142
|
+
return r.setFullYear(t, 0, 4), r.setHours(0, 0, 0, 0), Re(r);
|
|
143
143
|
}
|
|
144
144
|
function Sn(e) {
|
|
145
145
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
@@ -214,9 +214,9 @@ const jn = {
|
|
|
214
214
|
other: "almost {{count}} years"
|
|
215
215
|
}
|
|
216
216
|
}, Nn = (e, n, t) => {
|
|
217
|
-
let
|
|
218
|
-
const
|
|
219
|
-
return typeof
|
|
217
|
+
let r;
|
|
218
|
+
const a = jn[e];
|
|
219
|
+
return typeof a == "string" ? r = a : n === 1 ? r = a.one : r = a.other.replace("{{count}}", n.toString()), t != null && t.addSuffix ? t.comparison && t.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
220
220
|
};
|
|
221
221
|
function tt(e) {
|
|
222
222
|
return (n = {}) => {
|
|
@@ -259,20 +259,20 @@ const Ln = {
|
|
|
259
259
|
tomorrow: "'tomorrow at' p",
|
|
260
260
|
nextWeek: "eeee 'at' p",
|
|
261
261
|
other: "P"
|
|
262
|
-
}, Yn = (e, n, t,
|
|
262
|
+
}, Yn = (e, n, t, r) => Wn[e];
|
|
263
263
|
function je(e) {
|
|
264
264
|
return (n, t) => {
|
|
265
|
-
const
|
|
266
|
-
let
|
|
267
|
-
if (
|
|
265
|
+
const r = t != null && t.context ? String(t.context) : "standalone";
|
|
266
|
+
let a;
|
|
267
|
+
if (r === "formatting" && e.formattingValues) {
|
|
268
268
|
const o = e.defaultFormattingWidth || e.defaultWidth, d = t != null && t.width ? String(t.width) : o;
|
|
269
|
-
|
|
269
|
+
a = e.formattingValues[d] || e.formattingValues[o];
|
|
270
270
|
} else {
|
|
271
271
|
const o = e.defaultWidth, d = t != null && t.width ? String(t.width) : e.defaultWidth;
|
|
272
|
-
|
|
272
|
+
a = e.values[d] || e.values[o];
|
|
273
273
|
}
|
|
274
274
|
const s = e.argumentCallback ? e.argumentCallback(n) : n;
|
|
275
|
-
return
|
|
275
|
+
return a[s];
|
|
276
276
|
};
|
|
277
277
|
}
|
|
278
278
|
const qn = {
|
|
@@ -389,9 +389,9 @@ const qn = {
|
|
|
389
389
|
night: "at night"
|
|
390
390
|
}
|
|
391
391
|
}, Vn = (e, n) => {
|
|
392
|
-
const t = Number(e),
|
|
393
|
-
if (
|
|
394
|
-
switch (
|
|
392
|
+
const t = Number(e), r = t % 100;
|
|
393
|
+
if (r > 20 || r < 10)
|
|
394
|
+
switch (r % 10) {
|
|
395
395
|
case 1:
|
|
396
396
|
return t + "st";
|
|
397
397
|
case 2:
|
|
@@ -428,10 +428,10 @@ const qn = {
|
|
|
428
428
|
};
|
|
429
429
|
function Ne(e) {
|
|
430
430
|
return (n, t = {}) => {
|
|
431
|
-
const
|
|
431
|
+
const r = t.width, a = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], s = n.match(a);
|
|
432
432
|
if (!s)
|
|
433
433
|
return null;
|
|
434
|
-
const o = s[0], d =
|
|
434
|
+
const o = s[0], d = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], g = Array.isArray(d) ? Xn(d, (D) => D.test(o)) : (
|
|
435
435
|
// [TODO] -- I challenge you to fix the type
|
|
436
436
|
Qn(d, (D) => D.test(o))
|
|
437
437
|
);
|
|
@@ -456,33 +456,33 @@ function Xn(e, n) {
|
|
|
456
456
|
}
|
|
457
457
|
function Zn(e) {
|
|
458
458
|
return (n, t = {}) => {
|
|
459
|
-
const
|
|
460
|
-
if (!
|
|
461
|
-
const
|
|
459
|
+
const r = n.match(e.matchPattern);
|
|
460
|
+
if (!r) return null;
|
|
461
|
+
const a = r[0], s = n.match(e.parsePattern);
|
|
462
462
|
if (!s) return null;
|
|
463
463
|
let o = e.valueCallback ? e.valueCallback(s[0]) : s[0];
|
|
464
464
|
o = t.valueCallback ? t.valueCallback(o) : o;
|
|
465
|
-
const d = n.slice(
|
|
465
|
+
const d = n.slice(a.length);
|
|
466
466
|
return { value: o, rest: d };
|
|
467
467
|
};
|
|
468
468
|
}
|
|
469
|
-
const Jn = /^(\d+)(th|st|nd|rd)?/i, Kn = /\d+/i,
|
|
469
|
+
const Jn = /^(\d+)(th|st|nd|rd)?/i, Kn = /\d+/i, er = {
|
|
470
470
|
narrow: /^(b|a)/i,
|
|
471
471
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
472
472
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
473
|
-
},
|
|
473
|
+
}, tr = {
|
|
474
474
|
any: [/^b/i, /^(a|c)/i]
|
|
475
|
-
},
|
|
475
|
+
}, nr = {
|
|
476
476
|
narrow: /^[1234]/i,
|
|
477
477
|
abbreviated: /^q[1234]/i,
|
|
478
478
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
479
|
-
},
|
|
479
|
+
}, rr = {
|
|
480
480
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
481
|
-
},
|
|
481
|
+
}, ar = {
|
|
482
482
|
narrow: /^[jfmasond]/i,
|
|
483
483
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
484
484
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
485
|
-
},
|
|
485
|
+
}, sr = {
|
|
486
486
|
narrow: [
|
|
487
487
|
/^j/i,
|
|
488
488
|
/^f/i,
|
|
@@ -511,18 +511,18 @@ const Jn = /^(\d+)(th|st|nd|rd)?/i, Kn = /\d+/i, ea = {
|
|
|
511
511
|
/^n/i,
|
|
512
512
|
/^d/i
|
|
513
513
|
]
|
|
514
|
-
},
|
|
514
|
+
}, or = {
|
|
515
515
|
narrow: /^[smtwf]/i,
|
|
516
516
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
517
517
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
518
518
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
519
|
-
},
|
|
519
|
+
}, ir = {
|
|
520
520
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
521
521
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
522
|
-
},
|
|
522
|
+
}, ur = {
|
|
523
523
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
524
524
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
525
|
-
},
|
|
525
|
+
}, lr = {
|
|
526
526
|
any: {
|
|
527
527
|
am: /^a/i,
|
|
528
528
|
pm: /^p/i,
|
|
@@ -533,41 +533,41 @@ const Jn = /^(\d+)(th|st|nd|rd)?/i, Kn = /\d+/i, ea = {
|
|
|
533
533
|
evening: /evening/i,
|
|
534
534
|
night: /night/i
|
|
535
535
|
}
|
|
536
|
-
},
|
|
536
|
+
}, cr = {
|
|
537
537
|
ordinalNumber: Zn({
|
|
538
538
|
matchPattern: Jn,
|
|
539
539
|
parsePattern: Kn,
|
|
540
540
|
valueCallback: (e) => parseInt(e, 10)
|
|
541
541
|
}),
|
|
542
542
|
era: Ne({
|
|
543
|
-
matchPatterns:
|
|
543
|
+
matchPatterns: er,
|
|
544
544
|
defaultMatchWidth: "wide",
|
|
545
|
-
parsePatterns:
|
|
545
|
+
parsePatterns: tr,
|
|
546
546
|
defaultParseWidth: "any"
|
|
547
547
|
}),
|
|
548
548
|
quarter: Ne({
|
|
549
|
-
matchPatterns:
|
|
549
|
+
matchPatterns: nr,
|
|
550
550
|
defaultMatchWidth: "wide",
|
|
551
|
-
parsePatterns:
|
|
551
|
+
parsePatterns: rr,
|
|
552
552
|
defaultParseWidth: "any",
|
|
553
553
|
valueCallback: (e) => e + 1
|
|
554
554
|
}),
|
|
555
555
|
month: Ne({
|
|
556
|
-
matchPatterns:
|
|
556
|
+
matchPatterns: ar,
|
|
557
557
|
defaultMatchWidth: "wide",
|
|
558
|
-
parsePatterns:
|
|
558
|
+
parsePatterns: sr,
|
|
559
559
|
defaultParseWidth: "any"
|
|
560
560
|
}),
|
|
561
561
|
day: Ne({
|
|
562
|
-
matchPatterns:
|
|
562
|
+
matchPatterns: or,
|
|
563
563
|
defaultMatchWidth: "wide",
|
|
564
|
-
parsePatterns:
|
|
564
|
+
parsePatterns: ir,
|
|
565
565
|
defaultParseWidth: "any"
|
|
566
566
|
}),
|
|
567
567
|
dayPeriod: Ne({
|
|
568
|
-
matchPatterns:
|
|
568
|
+
matchPatterns: ur,
|
|
569
569
|
defaultMatchWidth: "any",
|
|
570
|
-
parsePatterns:
|
|
570
|
+
parsePatterns: lr,
|
|
571
571
|
defaultParseWidth: "any"
|
|
572
572
|
})
|
|
573
573
|
}, nn = {
|
|
@@ -576,47 +576,47 @@ const Jn = /^(\d+)(th|st|nd|rd)?/i, Kn = /\d+/i, ea = {
|
|
|
576
576
|
formatLong: Gn,
|
|
577
577
|
formatRelative: Yn,
|
|
578
578
|
localize: An,
|
|
579
|
-
match:
|
|
579
|
+
match: cr,
|
|
580
580
|
options: {
|
|
581
581
|
weekStartsOn: 0,
|
|
582
582
|
firstWeekContainsDate: 1
|
|
583
583
|
}
|
|
584
584
|
};
|
|
585
|
-
function
|
|
585
|
+
function dr(e, n) {
|
|
586
586
|
const t = W(e, n == null ? void 0 : n.in);
|
|
587
587
|
return Mn(t, Cn(t)) + 1;
|
|
588
588
|
}
|
|
589
|
-
function
|
|
590
|
-
const t = W(e, n == null ? void 0 : n.in),
|
|
591
|
-
return Math.round(
|
|
589
|
+
function rn(e, n) {
|
|
590
|
+
const t = W(e, n == null ? void 0 : n.in), r = +Re(t) - +kn(t);
|
|
591
|
+
return Math.round(r / Kt) + 1;
|
|
592
592
|
}
|
|
593
593
|
function gt(e, n) {
|
|
594
594
|
var b, D, _, p;
|
|
595
|
-
const t = W(e, n == null ? void 0 : n.in),
|
|
596
|
-
o.setFullYear(
|
|
595
|
+
const t = W(e, n == null ? void 0 : n.in), r = t.getFullYear(), a = Oe(), s = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((D = (b = n == null ? void 0 : n.locale) == null ? void 0 : b.options) == null ? void 0 : D.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((p = (_ = a.locale) == null ? void 0 : _.options) == null ? void 0 : p.firstWeekContainsDate) ?? 1, o = Y((n == null ? void 0 : n.in) || e, 0);
|
|
596
|
+
o.setFullYear(r + 1, 0, s), o.setHours(0, 0, 0, 0);
|
|
597
597
|
const d = fe(o, n), g = Y((n == null ? void 0 : n.in) || e, 0);
|
|
598
|
-
g.setFullYear(
|
|
598
|
+
g.setFullYear(r, 0, s), g.setHours(0, 0, 0, 0);
|
|
599
599
|
const f = fe(g, n);
|
|
600
|
-
return +t >= +d ?
|
|
600
|
+
return +t >= +d ? r + 1 : +t >= +f ? r : r - 1;
|
|
601
601
|
}
|
|
602
|
-
function
|
|
602
|
+
function mr(e, n) {
|
|
603
603
|
var d, g, f, b;
|
|
604
|
-
const t = Oe(),
|
|
605
|
-
return s.setFullYear(
|
|
604
|
+
const t = Oe(), r = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((g = (d = n == null ? void 0 : n.locale) == null ? void 0 : d.options) == null ? void 0 : g.firstWeekContainsDate) ?? t.firstWeekContainsDate ?? ((b = (f = t.locale) == null ? void 0 : f.options) == null ? void 0 : b.firstWeekContainsDate) ?? 1, a = gt(e, n), s = Y((n == null ? void 0 : n.in) || e, 0);
|
|
605
|
+
return s.setFullYear(a, 0, r), s.setHours(0, 0, 0, 0), fe(s, n);
|
|
606
606
|
}
|
|
607
|
-
function
|
|
608
|
-
const t = W(e, n == null ? void 0 : n.in),
|
|
609
|
-
return Math.round(
|
|
607
|
+
function an(e, n) {
|
|
608
|
+
const t = W(e, n == null ? void 0 : n.in), r = +fe(t, n) - +mr(t, n);
|
|
609
|
+
return Math.round(r / Kt) + 1;
|
|
610
610
|
}
|
|
611
611
|
function S(e, n) {
|
|
612
|
-
const t = e < 0 ? "-" : "",
|
|
613
|
-
return t +
|
|
612
|
+
const t = e < 0 ? "-" : "", r = Math.abs(e).toString().padStart(n, "0");
|
|
613
|
+
return t + r;
|
|
614
614
|
}
|
|
615
615
|
const me = {
|
|
616
616
|
// Year
|
|
617
617
|
y(e, n) {
|
|
618
|
-
const t = e.getFullYear(),
|
|
619
|
-
return S(n === "yy" ?
|
|
618
|
+
const t = e.getFullYear(), r = t > 0 ? t : 1 - t;
|
|
619
|
+
return S(n === "yy" ? r % 100 : r, n.length);
|
|
620
620
|
},
|
|
621
621
|
// Month
|
|
622
622
|
M(e, n) {
|
|
@@ -661,10 +661,10 @@ const me = {
|
|
|
661
661
|
},
|
|
662
662
|
// Fraction of second
|
|
663
663
|
S(e, n) {
|
|
664
|
-
const t = n.length,
|
|
665
|
-
|
|
664
|
+
const t = n.length, r = e.getMilliseconds(), a = Math.trunc(
|
|
665
|
+
r * Math.pow(10, t - 3)
|
|
666
666
|
);
|
|
667
|
-
return S(
|
|
667
|
+
return S(a, n.length);
|
|
668
668
|
}
|
|
669
669
|
}, Pe = {
|
|
670
670
|
am: "am",
|
|
@@ -678,30 +678,30 @@ const me = {
|
|
|
678
678
|
}, Ot = {
|
|
679
679
|
// Era
|
|
680
680
|
G: function(e, n, t) {
|
|
681
|
-
const
|
|
681
|
+
const r = e.getFullYear() > 0 ? 1 : 0;
|
|
682
682
|
switch (n) {
|
|
683
683
|
case "G":
|
|
684
684
|
case "GG":
|
|
685
685
|
case "GGG":
|
|
686
|
-
return t.era(
|
|
686
|
+
return t.era(r, { width: "abbreviated" });
|
|
687
687
|
case "GGGGG":
|
|
688
|
-
return t.era(
|
|
688
|
+
return t.era(r, { width: "narrow" });
|
|
689
689
|
case "GGGG":
|
|
690
690
|
default:
|
|
691
|
-
return t.era(
|
|
691
|
+
return t.era(r, { width: "wide" });
|
|
692
692
|
}
|
|
693
693
|
},
|
|
694
694
|
// Year
|
|
695
695
|
y: function(e, n, t) {
|
|
696
696
|
if (n === "yo") {
|
|
697
|
-
const
|
|
698
|
-
return t.ordinalNumber(
|
|
697
|
+
const r = e.getFullYear(), a = r > 0 ? r : 1 - r;
|
|
698
|
+
return t.ordinalNumber(a, { unit: "year" });
|
|
699
699
|
}
|
|
700
700
|
return me.y(e, n);
|
|
701
701
|
},
|
|
702
702
|
// Local week-numbering year
|
|
703
|
-
Y: function(e, n, t,
|
|
704
|
-
const
|
|
703
|
+
Y: function(e, n, t, r) {
|
|
704
|
+
const a = gt(e, r), s = a > 0 ? a : 1 - a;
|
|
705
705
|
if (n === "YY") {
|
|
706
706
|
const o = s % 100;
|
|
707
707
|
return S(o, 2);
|
|
@@ -728,27 +728,27 @@ const me = {
|
|
|
728
728
|
},
|
|
729
729
|
// Quarter
|
|
730
730
|
Q: function(e, n, t) {
|
|
731
|
-
const
|
|
731
|
+
const r = Math.ceil((e.getMonth() + 1) / 3);
|
|
732
732
|
switch (n) {
|
|
733
733
|
case "Q":
|
|
734
|
-
return String(
|
|
734
|
+
return String(r);
|
|
735
735
|
case "QQ":
|
|
736
|
-
return S(
|
|
736
|
+
return S(r, 2);
|
|
737
737
|
case "Qo":
|
|
738
|
-
return t.ordinalNumber(
|
|
738
|
+
return t.ordinalNumber(r, { unit: "quarter" });
|
|
739
739
|
case "QQQ":
|
|
740
|
-
return t.quarter(
|
|
740
|
+
return t.quarter(r, {
|
|
741
741
|
width: "abbreviated",
|
|
742
742
|
context: "formatting"
|
|
743
743
|
});
|
|
744
744
|
case "QQQQQ":
|
|
745
|
-
return t.quarter(
|
|
745
|
+
return t.quarter(r, {
|
|
746
746
|
width: "narrow",
|
|
747
747
|
context: "formatting"
|
|
748
748
|
});
|
|
749
749
|
case "QQQQ":
|
|
750
750
|
default:
|
|
751
|
-
return t.quarter(
|
|
751
|
+
return t.quarter(r, {
|
|
752
752
|
width: "wide",
|
|
753
753
|
context: "formatting"
|
|
754
754
|
});
|
|
@@ -756,27 +756,27 @@ const me = {
|
|
|
756
756
|
},
|
|
757
757
|
// Stand-alone quarter
|
|
758
758
|
q: function(e, n, t) {
|
|
759
|
-
const
|
|
759
|
+
const r = Math.ceil((e.getMonth() + 1) / 3);
|
|
760
760
|
switch (n) {
|
|
761
761
|
case "q":
|
|
762
|
-
return String(
|
|
762
|
+
return String(r);
|
|
763
763
|
case "qq":
|
|
764
|
-
return S(
|
|
764
|
+
return S(r, 2);
|
|
765
765
|
case "qo":
|
|
766
|
-
return t.ordinalNumber(
|
|
766
|
+
return t.ordinalNumber(r, { unit: "quarter" });
|
|
767
767
|
case "qqq":
|
|
768
|
-
return t.quarter(
|
|
768
|
+
return t.quarter(r, {
|
|
769
769
|
width: "abbreviated",
|
|
770
770
|
context: "standalone"
|
|
771
771
|
});
|
|
772
772
|
case "qqqqq":
|
|
773
|
-
return t.quarter(
|
|
773
|
+
return t.quarter(r, {
|
|
774
774
|
width: "narrow",
|
|
775
775
|
context: "standalone"
|
|
776
776
|
});
|
|
777
777
|
case "qqqq":
|
|
778
778
|
default:
|
|
779
|
-
return t.quarter(
|
|
779
|
+
return t.quarter(r, {
|
|
780
780
|
width: "wide",
|
|
781
781
|
context: "standalone"
|
|
782
782
|
});
|
|
@@ -784,62 +784,62 @@ const me = {
|
|
|
784
784
|
},
|
|
785
785
|
// Month
|
|
786
786
|
M: function(e, n, t) {
|
|
787
|
-
const
|
|
787
|
+
const r = e.getMonth();
|
|
788
788
|
switch (n) {
|
|
789
789
|
case "M":
|
|
790
790
|
case "MM":
|
|
791
791
|
return me.M(e, n);
|
|
792
792
|
case "Mo":
|
|
793
|
-
return t.ordinalNumber(
|
|
793
|
+
return t.ordinalNumber(r + 1, { unit: "month" });
|
|
794
794
|
case "MMM":
|
|
795
|
-
return t.month(
|
|
795
|
+
return t.month(r, {
|
|
796
796
|
width: "abbreviated",
|
|
797
797
|
context: "formatting"
|
|
798
798
|
});
|
|
799
799
|
case "MMMMM":
|
|
800
|
-
return t.month(
|
|
800
|
+
return t.month(r, {
|
|
801
801
|
width: "narrow",
|
|
802
802
|
context: "formatting"
|
|
803
803
|
});
|
|
804
804
|
case "MMMM":
|
|
805
805
|
default:
|
|
806
|
-
return t.month(
|
|
806
|
+
return t.month(r, { width: "wide", context: "formatting" });
|
|
807
807
|
}
|
|
808
808
|
},
|
|
809
809
|
// Stand-alone month
|
|
810
810
|
L: function(e, n, t) {
|
|
811
|
-
const
|
|
811
|
+
const r = e.getMonth();
|
|
812
812
|
switch (n) {
|
|
813
813
|
case "L":
|
|
814
|
-
return String(
|
|
814
|
+
return String(r + 1);
|
|
815
815
|
case "LL":
|
|
816
|
-
return S(
|
|
816
|
+
return S(r + 1, 2);
|
|
817
817
|
case "Lo":
|
|
818
|
-
return t.ordinalNumber(
|
|
818
|
+
return t.ordinalNumber(r + 1, { unit: "month" });
|
|
819
819
|
case "LLL":
|
|
820
|
-
return t.month(
|
|
820
|
+
return t.month(r, {
|
|
821
821
|
width: "abbreviated",
|
|
822
822
|
context: "standalone"
|
|
823
823
|
});
|
|
824
824
|
case "LLLLL":
|
|
825
|
-
return t.month(
|
|
825
|
+
return t.month(r, {
|
|
826
826
|
width: "narrow",
|
|
827
827
|
context: "standalone"
|
|
828
828
|
});
|
|
829
829
|
case "LLLL":
|
|
830
830
|
default:
|
|
831
|
-
return t.month(
|
|
831
|
+
return t.month(r, { width: "wide", context: "standalone" });
|
|
832
832
|
}
|
|
833
833
|
},
|
|
834
834
|
// Local week of year
|
|
835
|
-
w: function(e, n, t,
|
|
836
|
-
const
|
|
837
|
-
return n === "wo" ? t.ordinalNumber(
|
|
835
|
+
w: function(e, n, t, r) {
|
|
836
|
+
const a = an(e, r);
|
|
837
|
+
return n === "wo" ? t.ordinalNumber(a, { unit: "week" }) : S(a, n.length);
|
|
838
838
|
},
|
|
839
839
|
// ISO week of year
|
|
840
840
|
I: function(e, n, t) {
|
|
841
|
-
const
|
|
842
|
-
return n === "Io" ? t.ordinalNumber(
|
|
841
|
+
const r = rn(e);
|
|
842
|
+
return n === "Io" ? t.ordinalNumber(r, { unit: "week" }) : S(r, n.length);
|
|
843
843
|
},
|
|
844
844
|
// Day of the month
|
|
845
845
|
d: function(e, n, t) {
|
|
@@ -847,41 +847,41 @@ const me = {
|
|
|
847
847
|
},
|
|
848
848
|
// Day of year
|
|
849
849
|
D: function(e, n, t) {
|
|
850
|
-
const
|
|
851
|
-
return n === "Do" ? t.ordinalNumber(
|
|
850
|
+
const r = dr(e);
|
|
851
|
+
return n === "Do" ? t.ordinalNumber(r, { unit: "dayOfYear" }) : S(r, n.length);
|
|
852
852
|
},
|
|
853
853
|
// Day of week
|
|
854
854
|
E: function(e, n, t) {
|
|
855
|
-
const
|
|
855
|
+
const r = e.getDay();
|
|
856
856
|
switch (n) {
|
|
857
857
|
case "E":
|
|
858
858
|
case "EE":
|
|
859
859
|
case "EEE":
|
|
860
|
-
return t.day(
|
|
860
|
+
return t.day(r, {
|
|
861
861
|
width: "abbreviated",
|
|
862
862
|
context: "formatting"
|
|
863
863
|
});
|
|
864
864
|
case "EEEEE":
|
|
865
|
-
return t.day(
|
|
865
|
+
return t.day(r, {
|
|
866
866
|
width: "narrow",
|
|
867
867
|
context: "formatting"
|
|
868
868
|
});
|
|
869
869
|
case "EEEEEE":
|
|
870
|
-
return t.day(
|
|
870
|
+
return t.day(r, {
|
|
871
871
|
width: "short",
|
|
872
872
|
context: "formatting"
|
|
873
873
|
});
|
|
874
874
|
case "EEEE":
|
|
875
875
|
default:
|
|
876
|
-
return t.day(
|
|
876
|
+
return t.day(r, {
|
|
877
877
|
width: "wide",
|
|
878
878
|
context: "formatting"
|
|
879
879
|
});
|
|
880
880
|
}
|
|
881
881
|
},
|
|
882
882
|
// Local day of week
|
|
883
|
-
e: function(e, n, t,
|
|
884
|
-
const
|
|
883
|
+
e: function(e, n, t, r) {
|
|
884
|
+
const a = e.getDay(), s = (a - r.weekStartsOn + 8) % 7 || 7;
|
|
885
885
|
switch (n) {
|
|
886
886
|
case "e":
|
|
887
887
|
return String(s);
|
|
@@ -890,31 +890,31 @@ const me = {
|
|
|
890
890
|
case "eo":
|
|
891
891
|
return t.ordinalNumber(s, { unit: "day" });
|
|
892
892
|
case "eee":
|
|
893
|
-
return t.day(
|
|
893
|
+
return t.day(a, {
|
|
894
894
|
width: "abbreviated",
|
|
895
895
|
context: "formatting"
|
|
896
896
|
});
|
|
897
897
|
case "eeeee":
|
|
898
|
-
return t.day(
|
|
898
|
+
return t.day(a, {
|
|
899
899
|
width: "narrow",
|
|
900
900
|
context: "formatting"
|
|
901
901
|
});
|
|
902
902
|
case "eeeeee":
|
|
903
|
-
return t.day(
|
|
903
|
+
return t.day(a, {
|
|
904
904
|
width: "short",
|
|
905
905
|
context: "formatting"
|
|
906
906
|
});
|
|
907
907
|
case "eeee":
|
|
908
908
|
default:
|
|
909
|
-
return t.day(
|
|
909
|
+
return t.day(a, {
|
|
910
910
|
width: "wide",
|
|
911
911
|
context: "formatting"
|
|
912
912
|
});
|
|
913
913
|
}
|
|
914
914
|
},
|
|
915
915
|
// Stand-alone local day of week
|
|
916
|
-
c: function(e, n, t,
|
|
917
|
-
const
|
|
916
|
+
c: function(e, n, t, r) {
|
|
917
|
+
const a = e.getDay(), s = (a - r.weekStartsOn + 8) % 7 || 7;
|
|
918
918
|
switch (n) {
|
|
919
919
|
case "c":
|
|
920
920
|
return String(s);
|
|
@@ -923,23 +923,23 @@ const me = {
|
|
|
923
923
|
case "co":
|
|
924
924
|
return t.ordinalNumber(s, { unit: "day" });
|
|
925
925
|
case "ccc":
|
|
926
|
-
return t.day(
|
|
926
|
+
return t.day(a, {
|
|
927
927
|
width: "abbreviated",
|
|
928
928
|
context: "standalone"
|
|
929
929
|
});
|
|
930
930
|
case "ccccc":
|
|
931
|
-
return t.day(
|
|
931
|
+
return t.day(a, {
|
|
932
932
|
width: "narrow",
|
|
933
933
|
context: "standalone"
|
|
934
934
|
});
|
|
935
935
|
case "cccccc":
|
|
936
|
-
return t.day(
|
|
936
|
+
return t.day(a, {
|
|
937
937
|
width: "short",
|
|
938
938
|
context: "standalone"
|
|
939
939
|
});
|
|
940
940
|
case "cccc":
|
|
941
941
|
default:
|
|
942
|
-
return t.day(
|
|
942
|
+
return t.day(a, {
|
|
943
943
|
width: "wide",
|
|
944
944
|
context: "standalone"
|
|
945
945
|
});
|
|
@@ -947,32 +947,32 @@ const me = {
|
|
|
947
947
|
},
|
|
948
948
|
// ISO day of week
|
|
949
949
|
i: function(e, n, t) {
|
|
950
|
-
const
|
|
950
|
+
const r = e.getDay(), a = r === 0 ? 7 : r;
|
|
951
951
|
switch (n) {
|
|
952
952
|
case "i":
|
|
953
|
-
return String(
|
|
953
|
+
return String(a);
|
|
954
954
|
case "ii":
|
|
955
|
-
return S(
|
|
955
|
+
return S(a, n.length);
|
|
956
956
|
case "io":
|
|
957
|
-
return t.ordinalNumber(
|
|
957
|
+
return t.ordinalNumber(a, { unit: "day" });
|
|
958
958
|
case "iii":
|
|
959
|
-
return t.day(
|
|
959
|
+
return t.day(r, {
|
|
960
960
|
width: "abbreviated",
|
|
961
961
|
context: "formatting"
|
|
962
962
|
});
|
|
963
963
|
case "iiiii":
|
|
964
|
-
return t.day(
|
|
964
|
+
return t.day(r, {
|
|
965
965
|
width: "narrow",
|
|
966
966
|
context: "formatting"
|
|
967
967
|
});
|
|
968
968
|
case "iiiiii":
|
|
969
|
-
return t.day(
|
|
969
|
+
return t.day(r, {
|
|
970
970
|
width: "short",
|
|
971
971
|
context: "formatting"
|
|
972
972
|
});
|
|
973
973
|
case "iiii":
|
|
974
974
|
default:
|
|
975
|
-
return t.day(
|
|
975
|
+
return t.day(r, {
|
|
976
976
|
width: "wide",
|
|
977
977
|
context: "formatting"
|
|
978
978
|
});
|
|
@@ -980,27 +980,27 @@ const me = {
|
|
|
980
980
|
},
|
|
981
981
|
// AM or PM
|
|
982
982
|
a: function(e, n, t) {
|
|
983
|
-
const
|
|
983
|
+
const a = e.getHours() / 12 >= 1 ? "pm" : "am";
|
|
984
984
|
switch (n) {
|
|
985
985
|
case "a":
|
|
986
986
|
case "aa":
|
|
987
|
-
return t.dayPeriod(
|
|
987
|
+
return t.dayPeriod(a, {
|
|
988
988
|
width: "abbreviated",
|
|
989
989
|
context: "formatting"
|
|
990
990
|
});
|
|
991
991
|
case "aaa":
|
|
992
|
-
return t.dayPeriod(
|
|
992
|
+
return t.dayPeriod(a, {
|
|
993
993
|
width: "abbreviated",
|
|
994
994
|
context: "formatting"
|
|
995
995
|
}).toLowerCase();
|
|
996
996
|
case "aaaaa":
|
|
997
|
-
return t.dayPeriod(
|
|
997
|
+
return t.dayPeriod(a, {
|
|
998
998
|
width: "narrow",
|
|
999
999
|
context: "formatting"
|
|
1000
1000
|
});
|
|
1001
1001
|
case "aaaa":
|
|
1002
1002
|
default:
|
|
1003
|
-
return t.dayPeriod(
|
|
1003
|
+
return t.dayPeriod(a, {
|
|
1004
1004
|
width: "wide",
|
|
1005
1005
|
context: "formatting"
|
|
1006
1006
|
});
|
|
@@ -1008,28 +1008,28 @@ const me = {
|
|
|
1008
1008
|
},
|
|
1009
1009
|
// AM, PM, midnight, noon
|
|
1010
1010
|
b: function(e, n, t) {
|
|
1011
|
-
const
|
|
1012
|
-
let
|
|
1013
|
-
switch (
|
|
1011
|
+
const r = e.getHours();
|
|
1012
|
+
let a;
|
|
1013
|
+
switch (r === 12 ? a = Pe.noon : r === 0 ? a = Pe.midnight : a = r / 12 >= 1 ? "pm" : "am", n) {
|
|
1014
1014
|
case "b":
|
|
1015
1015
|
case "bb":
|
|
1016
|
-
return t.dayPeriod(
|
|
1016
|
+
return t.dayPeriod(a, {
|
|
1017
1017
|
width: "abbreviated",
|
|
1018
1018
|
context: "formatting"
|
|
1019
1019
|
});
|
|
1020
1020
|
case "bbb":
|
|
1021
|
-
return t.dayPeriod(
|
|
1021
|
+
return t.dayPeriod(a, {
|
|
1022
1022
|
width: "abbreviated",
|
|
1023
1023
|
context: "formatting"
|
|
1024
1024
|
}).toLowerCase();
|
|
1025
1025
|
case "bbbbb":
|
|
1026
|
-
return t.dayPeriod(
|
|
1026
|
+
return t.dayPeriod(a, {
|
|
1027
1027
|
width: "narrow",
|
|
1028
1028
|
context: "formatting"
|
|
1029
1029
|
});
|
|
1030
1030
|
case "bbbb":
|
|
1031
1031
|
default:
|
|
1032
|
-
return t.dayPeriod(
|
|
1032
|
+
return t.dayPeriod(a, {
|
|
1033
1033
|
width: "wide",
|
|
1034
1034
|
context: "formatting"
|
|
1035
1035
|
});
|
|
@@ -1037,24 +1037,24 @@ const me = {
|
|
|
1037
1037
|
},
|
|
1038
1038
|
// in the morning, in the afternoon, in the evening, at night
|
|
1039
1039
|
B: function(e, n, t) {
|
|
1040
|
-
const
|
|
1041
|
-
let
|
|
1042
|
-
switch (
|
|
1040
|
+
const r = e.getHours();
|
|
1041
|
+
let a;
|
|
1042
|
+
switch (r >= 17 ? a = Pe.evening : r >= 12 ? a = Pe.afternoon : r >= 4 ? a = Pe.morning : a = Pe.night, n) {
|
|
1043
1043
|
case "B":
|
|
1044
1044
|
case "BB":
|
|
1045
1045
|
case "BBB":
|
|
1046
|
-
return t.dayPeriod(
|
|
1046
|
+
return t.dayPeriod(a, {
|
|
1047
1047
|
width: "abbreviated",
|
|
1048
1048
|
context: "formatting"
|
|
1049
1049
|
});
|
|
1050
1050
|
case "BBBBB":
|
|
1051
|
-
return t.dayPeriod(
|
|
1051
|
+
return t.dayPeriod(a, {
|
|
1052
1052
|
width: "narrow",
|
|
1053
1053
|
context: "formatting"
|
|
1054
1054
|
});
|
|
1055
1055
|
case "BBBB":
|
|
1056
1056
|
default:
|
|
1057
|
-
return t.dayPeriod(
|
|
1057
|
+
return t.dayPeriod(a, {
|
|
1058
1058
|
width: "wide",
|
|
1059
1059
|
context: "formatting"
|
|
1060
1060
|
});
|
|
@@ -1063,8 +1063,8 @@ const me = {
|
|
|
1063
1063
|
// Hour [1-12]
|
|
1064
1064
|
h: function(e, n, t) {
|
|
1065
1065
|
if (n === "ho") {
|
|
1066
|
-
let
|
|
1067
|
-
return
|
|
1066
|
+
let r = e.getHours() % 12;
|
|
1067
|
+
return r === 0 && (r = 12), t.ordinalNumber(r, { unit: "hour" });
|
|
1068
1068
|
}
|
|
1069
1069
|
return me.h(e, n);
|
|
1070
1070
|
},
|
|
@@ -1074,13 +1074,13 @@ const me = {
|
|
|
1074
1074
|
},
|
|
1075
1075
|
// Hour [0-11]
|
|
1076
1076
|
K: function(e, n, t) {
|
|
1077
|
-
const
|
|
1078
|
-
return n === "Ko" ? t.ordinalNumber(
|
|
1077
|
+
const r = e.getHours() % 12;
|
|
1078
|
+
return n === "Ko" ? t.ordinalNumber(r, { unit: "hour" }) : S(r, n.length);
|
|
1079
1079
|
},
|
|
1080
1080
|
// Hour [1-24]
|
|
1081
1081
|
k: function(e, n, t) {
|
|
1082
|
-
let
|
|
1083
|
-
return
|
|
1082
|
+
let r = e.getHours();
|
|
1083
|
+
return r === 0 && (r = 24), n === "ko" ? t.ordinalNumber(r, { unit: "hour" }) : S(r, n.length);
|
|
1084
1084
|
},
|
|
1085
1085
|
// Minute
|
|
1086
1086
|
m: function(e, n, t) {
|
|
@@ -1096,66 +1096,66 @@ const me = {
|
|
|
1096
1096
|
},
|
|
1097
1097
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
1098
1098
|
X: function(e, n, t) {
|
|
1099
|
-
const
|
|
1100
|
-
if (
|
|
1099
|
+
const r = e.getTimezoneOffset();
|
|
1100
|
+
if (r === 0)
|
|
1101
1101
|
return "Z";
|
|
1102
1102
|
switch (n) {
|
|
1103
1103
|
case "X":
|
|
1104
|
-
return kt(
|
|
1104
|
+
return kt(r);
|
|
1105
1105
|
case "XXXX":
|
|
1106
1106
|
case "XX":
|
|
1107
|
-
return ye(
|
|
1107
|
+
return ye(r);
|
|
1108
1108
|
case "XXXXX":
|
|
1109
1109
|
case "XXX":
|
|
1110
1110
|
default:
|
|
1111
|
-
return ye(
|
|
1111
|
+
return ye(r, ":");
|
|
1112
1112
|
}
|
|
1113
1113
|
},
|
|
1114
1114
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
1115
1115
|
x: function(e, n, t) {
|
|
1116
|
-
const
|
|
1116
|
+
const r = e.getTimezoneOffset();
|
|
1117
1117
|
switch (n) {
|
|
1118
1118
|
case "x":
|
|
1119
|
-
return kt(
|
|
1119
|
+
return kt(r);
|
|
1120
1120
|
case "xxxx":
|
|
1121
1121
|
case "xx":
|
|
1122
|
-
return ye(
|
|
1122
|
+
return ye(r);
|
|
1123
1123
|
case "xxxxx":
|
|
1124
1124
|
case "xxx":
|
|
1125
1125
|
default:
|
|
1126
|
-
return ye(
|
|
1126
|
+
return ye(r, ":");
|
|
1127
1127
|
}
|
|
1128
1128
|
},
|
|
1129
1129
|
// Timezone (GMT)
|
|
1130
1130
|
O: function(e, n, t) {
|
|
1131
|
-
const
|
|
1131
|
+
const r = e.getTimezoneOffset();
|
|
1132
1132
|
switch (n) {
|
|
1133
1133
|
case "O":
|
|
1134
1134
|
case "OO":
|
|
1135
1135
|
case "OOO":
|
|
1136
|
-
return "GMT" + Mt(
|
|
1136
|
+
return "GMT" + Mt(r, ":");
|
|
1137
1137
|
case "OOOO":
|
|
1138
1138
|
default:
|
|
1139
|
-
return "GMT" + ye(
|
|
1139
|
+
return "GMT" + ye(r, ":");
|
|
1140
1140
|
}
|
|
1141
1141
|
},
|
|
1142
1142
|
// Timezone (specific non-location)
|
|
1143
1143
|
z: function(e, n, t) {
|
|
1144
|
-
const
|
|
1144
|
+
const r = e.getTimezoneOffset();
|
|
1145
1145
|
switch (n) {
|
|
1146
1146
|
case "z":
|
|
1147
1147
|
case "zz":
|
|
1148
1148
|
case "zzz":
|
|
1149
|
-
return "GMT" + Mt(
|
|
1149
|
+
return "GMT" + Mt(r, ":");
|
|
1150
1150
|
case "zzzz":
|
|
1151
1151
|
default:
|
|
1152
|
-
return "GMT" + ye(
|
|
1152
|
+
return "GMT" + ye(r, ":");
|
|
1153
1153
|
}
|
|
1154
1154
|
},
|
|
1155
1155
|
// Seconds timestamp
|
|
1156
1156
|
t: function(e, n, t) {
|
|
1157
|
-
const
|
|
1158
|
-
return S(
|
|
1157
|
+
const r = Math.trunc(+e / 1e3);
|
|
1158
|
+
return S(r, n.length);
|
|
1159
1159
|
},
|
|
1160
1160
|
// Milliseconds timestamp
|
|
1161
1161
|
T: function(e, n, t) {
|
|
@@ -1163,15 +1163,15 @@ const me = {
|
|
|
1163
1163
|
}
|
|
1164
1164
|
};
|
|
1165
1165
|
function Mt(e, n = "") {
|
|
1166
|
-
const t = e > 0 ? "-" : "+",
|
|
1167
|
-
return s === 0 ? t + String(
|
|
1166
|
+
const t = e > 0 ? "-" : "+", r = Math.abs(e), a = Math.trunc(r / 60), s = r % 60;
|
|
1167
|
+
return s === 0 ? t + String(a) : t + String(a) + n + S(s, 2);
|
|
1168
1168
|
}
|
|
1169
1169
|
function kt(e, n) {
|
|
1170
1170
|
return e % 60 === 0 ? (e > 0 ? "-" : "+") + S(Math.abs(e) / 60, 2) : ye(e, n);
|
|
1171
1171
|
}
|
|
1172
1172
|
function ye(e, n = "") {
|
|
1173
|
-
const t = e > 0 ? "-" : "+",
|
|
1174
|
-
return t +
|
|
1173
|
+
const t = e > 0 ? "-" : "+", r = Math.abs(e), a = S(Math.trunc(r / 60), 2), s = S(r % 60, 2);
|
|
1174
|
+
return t + a + n + s;
|
|
1175
1175
|
}
|
|
1176
1176
|
const St = (e, n) => {
|
|
1177
1177
|
switch (e) {
|
|
@@ -1197,12 +1197,12 @@ const St = (e, n) => {
|
|
|
1197
1197
|
default:
|
|
1198
1198
|
return n.time({ width: "full" });
|
|
1199
1199
|
}
|
|
1200
|
-
},
|
|
1201
|
-
const t = e.match(/(P+)(p+)?/) || [],
|
|
1202
|
-
if (!
|
|
1200
|
+
}, fr = (e, n) => {
|
|
1201
|
+
const t = e.match(/(P+)(p+)?/) || [], r = t[1], a = t[2];
|
|
1202
|
+
if (!a)
|
|
1203
1203
|
return St(e, n);
|
|
1204
1204
|
let s;
|
|
1205
|
-
switch (
|
|
1205
|
+
switch (r) {
|
|
1206
1206
|
case "P":
|
|
1207
1207
|
s = n.dateTime({ width: "short" });
|
|
1208
1208
|
break;
|
|
@@ -1217,79 +1217,79 @@ const St = (e, n) => {
|
|
|
1217
1217
|
s = n.dateTime({ width: "full" });
|
|
1218
1218
|
break;
|
|
1219
1219
|
}
|
|
1220
|
-
return s.replace("{{date}}", St(
|
|
1220
|
+
return s.replace("{{date}}", St(r, n)).replace("{{time}}", sn(a, n));
|
|
1221
1221
|
}, ct = {
|
|
1222
1222
|
p: sn,
|
|
1223
|
-
P:
|
|
1224
|
-
},
|
|
1223
|
+
P: fr
|
|
1224
|
+
}, gr = /^D+$/, pr = /^Y+$/, br = ["D", "DD", "YY", "YYYY"];
|
|
1225
1225
|
function on(e) {
|
|
1226
|
-
return
|
|
1226
|
+
return gr.test(e);
|
|
1227
1227
|
}
|
|
1228
1228
|
function un(e) {
|
|
1229
|
-
return
|
|
1229
|
+
return pr.test(e);
|
|
1230
1230
|
}
|
|
1231
1231
|
function dt(e, n, t) {
|
|
1232
|
-
const
|
|
1233
|
-
if (console.warn(
|
|
1232
|
+
const r = yr(e, n, t);
|
|
1233
|
+
if (console.warn(r), br.includes(e)) throw new RangeError(r);
|
|
1234
1234
|
}
|
|
1235
|
-
function
|
|
1236
|
-
const
|
|
1237
|
-
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${n}\`) for formatting ${
|
|
1235
|
+
function yr(e, n, t) {
|
|
1236
|
+
const r = e[0] === "Y" ? "years" : "days of the month";
|
|
1237
|
+
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${n}\`) for formatting ${r} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
1238
1238
|
}
|
|
1239
|
-
const
|
|
1240
|
-
function
|
|
1239
|
+
const hr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, _r = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Tr = /^'([^]*?)'?$/, vr = /''/g, wr = /[a-zA-Z]/;
|
|
1240
|
+
function Dr(e, n, t) {
|
|
1241
1241
|
var b, D, _, p, M, O, H, B;
|
|
1242
|
-
const
|
|
1242
|
+
const r = Oe(), a = (t == null ? void 0 : t.locale) ?? r.locale ?? nn, s = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((D = (b = t == null ? void 0 : t.locale) == null ? void 0 : b.options) == null ? void 0 : D.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((p = (_ = r.locale) == null ? void 0 : _.options) == null ? void 0 : p.firstWeekContainsDate) ?? 1, o = (t == null ? void 0 : t.weekStartsOn) ?? ((O = (M = t == null ? void 0 : t.locale) == null ? void 0 : M.options) == null ? void 0 : O.weekStartsOn) ?? r.weekStartsOn ?? ((B = (H = r.locale) == null ? void 0 : H.options) == null ? void 0 : B.weekStartsOn) ?? 0, d = W(e, t == null ? void 0 : t.in);
|
|
1243
1243
|
if (!In(d))
|
|
1244
1244
|
throw new RangeError("Invalid time value");
|
|
1245
|
-
let g = n.match(
|
|
1245
|
+
let g = n.match(_r).map((w) => {
|
|
1246
1246
|
const I = w[0];
|
|
1247
1247
|
if (I === "p" || I === "P") {
|
|
1248
1248
|
const T = ct[I];
|
|
1249
|
-
return T(w,
|
|
1249
|
+
return T(w, a.formatLong);
|
|
1250
1250
|
}
|
|
1251
1251
|
return w;
|
|
1252
|
-
}).join("").match(
|
|
1252
|
+
}).join("").match(hr).map((w) => {
|
|
1253
1253
|
if (w === "''")
|
|
1254
1254
|
return { isToken: !1, value: "'" };
|
|
1255
1255
|
const I = w[0];
|
|
1256
1256
|
if (I === "'")
|
|
1257
|
-
return { isToken: !1, value:
|
|
1257
|
+
return { isToken: !1, value: Pr(w) };
|
|
1258
1258
|
if (Ot[I])
|
|
1259
1259
|
return { isToken: !0, value: w };
|
|
1260
|
-
if (I.match(
|
|
1260
|
+
if (I.match(wr))
|
|
1261
1261
|
throw new RangeError(
|
|
1262
1262
|
"Format string contains an unescaped latin alphabet character `" + I + "`"
|
|
1263
1263
|
);
|
|
1264
1264
|
return { isToken: !1, value: w };
|
|
1265
1265
|
});
|
|
1266
|
-
|
|
1266
|
+
a.localize.preprocessor && (g = a.localize.preprocessor(d, g));
|
|
1267
1267
|
const f = {
|
|
1268
1268
|
firstWeekContainsDate: s,
|
|
1269
1269
|
weekStartsOn: o,
|
|
1270
|
-
locale:
|
|
1270
|
+
locale: a
|
|
1271
1271
|
};
|
|
1272
1272
|
return g.map((w) => {
|
|
1273
1273
|
if (!w.isToken) return w.value;
|
|
1274
1274
|
const I = w.value;
|
|
1275
1275
|
(!(t != null && t.useAdditionalWeekYearTokens) && un(I) || !(t != null && t.useAdditionalDayOfYearTokens) && on(I)) && dt(I, n, String(e));
|
|
1276
1276
|
const T = Ot[I[0]];
|
|
1277
|
-
return T(d, I,
|
|
1277
|
+
return T(d, I, a.localize, f);
|
|
1278
1278
|
}).join("");
|
|
1279
1279
|
}
|
|
1280
|
-
function
|
|
1281
|
-
const n = e.match(
|
|
1282
|
-
return n ? n[1].replace(
|
|
1280
|
+
function Pr(e) {
|
|
1281
|
+
const n = e.match(Tr);
|
|
1282
|
+
return n ? n[1].replace(vr, "'") : e;
|
|
1283
1283
|
}
|
|
1284
1284
|
function ln() {
|
|
1285
1285
|
return Object.assign({}, Oe());
|
|
1286
1286
|
}
|
|
1287
|
-
function
|
|
1287
|
+
function xr(e, n) {
|
|
1288
1288
|
const t = W(e, n == null ? void 0 : n.in).getDay();
|
|
1289
1289
|
return t === 0 ? 7 : t;
|
|
1290
1290
|
}
|
|
1291
|
-
function
|
|
1292
|
-
const t =
|
|
1291
|
+
function Rr(e, n) {
|
|
1292
|
+
const t = Or(n) ? new n(0) : Y(n, 0);
|
|
1293
1293
|
return t.setFullYear(e.getFullYear(), e.getMonth(), e.getDate()), t.setHours(
|
|
1294
1294
|
e.getHours(),
|
|
1295
1295
|
e.getMinutes(),
|
|
@@ -1297,11 +1297,11 @@ function Ra(e, n) {
|
|
|
1297
1297
|
e.getMilliseconds()
|
|
1298
1298
|
), t;
|
|
1299
1299
|
}
|
|
1300
|
-
function
|
|
1300
|
+
function Or(e) {
|
|
1301
1301
|
var n;
|
|
1302
1302
|
return typeof e == "function" && ((n = e.prototype) == null ? void 0 : n.constructor) === e;
|
|
1303
1303
|
}
|
|
1304
|
-
const
|
|
1304
|
+
const Mr = 10;
|
|
1305
1305
|
class cn {
|
|
1306
1306
|
constructor() {
|
|
1307
1307
|
h(this, "subPriority", 0);
|
|
@@ -1310,33 +1310,33 @@ class cn {
|
|
|
1310
1310
|
return !0;
|
|
1311
1311
|
}
|
|
1312
1312
|
}
|
|
1313
|
-
class
|
|
1314
|
-
constructor(n, t,
|
|
1315
|
-
super(), this.value = n, this.validateValue = t, this.setValue =
|
|
1313
|
+
class kr extends cn {
|
|
1314
|
+
constructor(n, t, r, a, s) {
|
|
1315
|
+
super(), this.value = n, this.validateValue = t, this.setValue = r, this.priority = a, s && (this.subPriority = s);
|
|
1316
1316
|
}
|
|
1317
1317
|
validate(n, t) {
|
|
1318
1318
|
return this.validateValue(n, this.value, t);
|
|
1319
1319
|
}
|
|
1320
|
-
set(n, t,
|
|
1321
|
-
return this.setValue(n, t, this.value,
|
|
1320
|
+
set(n, t, r) {
|
|
1321
|
+
return this.setValue(n, t, this.value, r);
|
|
1322
1322
|
}
|
|
1323
1323
|
}
|
|
1324
|
-
class
|
|
1325
|
-
constructor(t,
|
|
1324
|
+
class Sr extends cn {
|
|
1325
|
+
constructor(t, r) {
|
|
1326
1326
|
super();
|
|
1327
|
-
h(this, "priority",
|
|
1327
|
+
h(this, "priority", Mr);
|
|
1328
1328
|
h(this, "subPriority", -1);
|
|
1329
|
-
this.context = t || ((
|
|
1329
|
+
this.context = t || ((a) => Y(r, a));
|
|
1330
1330
|
}
|
|
1331
|
-
set(t,
|
|
1332
|
-
return
|
|
1331
|
+
set(t, r) {
|
|
1332
|
+
return r.timestampIsSet ? t : Y(t, Rr(t, this.context));
|
|
1333
1333
|
}
|
|
1334
1334
|
}
|
|
1335
1335
|
class R {
|
|
1336
|
-
run(n, t,
|
|
1337
|
-
const s = this.parse(n, t,
|
|
1336
|
+
run(n, t, r, a) {
|
|
1337
|
+
const s = this.parse(n, t, r, a);
|
|
1338
1338
|
return s ? {
|
|
1339
|
-
setter: new
|
|
1339
|
+
setter: new kr(
|
|
1340
1340
|
s.value,
|
|
1341
1341
|
this.validate,
|
|
1342
1342
|
this.set,
|
|
@@ -1346,31 +1346,31 @@ class R {
|
|
|
1346
1346
|
rest: s.rest
|
|
1347
1347
|
} : null;
|
|
1348
1348
|
}
|
|
1349
|
-
validate(n, t,
|
|
1349
|
+
validate(n, t, r) {
|
|
1350
1350
|
return !0;
|
|
1351
1351
|
}
|
|
1352
1352
|
}
|
|
1353
|
-
class
|
|
1353
|
+
class Ir extends R {
|
|
1354
1354
|
constructor() {
|
|
1355
1355
|
super(...arguments);
|
|
1356
1356
|
h(this, "priority", 140);
|
|
1357
1357
|
h(this, "incompatibleTokens", ["R", "u", "t", "T"]);
|
|
1358
1358
|
}
|
|
1359
|
-
parse(t,
|
|
1360
|
-
switch (
|
|
1359
|
+
parse(t, r, a) {
|
|
1360
|
+
switch (r) {
|
|
1361
1361
|
case "G":
|
|
1362
1362
|
case "GG":
|
|
1363
1363
|
case "GGG":
|
|
1364
|
-
return
|
|
1364
|
+
return a.era(t, { width: "abbreviated" }) || a.era(t, { width: "narrow" });
|
|
1365
1365
|
case "GGGGG":
|
|
1366
|
-
return
|
|
1366
|
+
return a.era(t, { width: "narrow" });
|
|
1367
1367
|
case "GGGG":
|
|
1368
1368
|
default:
|
|
1369
|
-
return
|
|
1369
|
+
return a.era(t, { width: "wide" }) || a.era(t, { width: "abbreviated" }) || a.era(t, { width: "narrow" });
|
|
1370
1370
|
}
|
|
1371
1371
|
}
|
|
1372
|
-
set(t,
|
|
1373
|
-
return
|
|
1372
|
+
set(t, r, a) {
|
|
1373
|
+
return r.era = a, t.setFullYear(a, 0, 1), t.setHours(0, 0, 0, 0), t;
|
|
1374
1374
|
}
|
|
1375
1375
|
}
|
|
1376
1376
|
const F = {
|
|
@@ -1440,9 +1440,9 @@ function ne(e, n) {
|
|
|
1440
1440
|
value: 0,
|
|
1441
1441
|
rest: n.slice(1)
|
|
1442
1442
|
};
|
|
1443
|
-
const
|
|
1443
|
+
const r = t[1] === "+" ? 1 : -1, a = t[2] ? parseInt(t[2], 10) : 0, s = t[3] ? parseInt(t[3], 10) : 0, o = t[5] ? parseInt(t[5], 10) : 0;
|
|
1444
1444
|
return {
|
|
1445
|
-
value:
|
|
1445
|
+
value: r * (a * Pn + s * Dn + o * xn),
|
|
1446
1446
|
rest: n.slice(t[0].length)
|
|
1447
1447
|
};
|
|
1448
1448
|
}
|
|
@@ -1495,61 +1495,61 @@ function pt(e) {
|
|
|
1495
1495
|
}
|
|
1496
1496
|
}
|
|
1497
1497
|
function mn(e, n) {
|
|
1498
|
-
const t = n > 0,
|
|
1499
|
-
let
|
|
1500
|
-
if (
|
|
1501
|
-
|
|
1498
|
+
const t = n > 0, r = t ? n : 1 - n;
|
|
1499
|
+
let a;
|
|
1500
|
+
if (r <= 50)
|
|
1501
|
+
a = e || 100;
|
|
1502
1502
|
else {
|
|
1503
|
-
const s =
|
|
1504
|
-
|
|
1503
|
+
const s = r + 50, o = Math.trunc(s / 100) * 100, d = e >= s % 100;
|
|
1504
|
+
a = e + o - (d ? 100 : 0);
|
|
1505
1505
|
}
|
|
1506
|
-
return t ?
|
|
1506
|
+
return t ? a : 1 - a;
|
|
1507
1507
|
}
|
|
1508
1508
|
function fn(e) {
|
|
1509
1509
|
return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
|
|
1510
1510
|
}
|
|
1511
|
-
class
|
|
1511
|
+
class Cr extends R {
|
|
1512
1512
|
constructor() {
|
|
1513
1513
|
super(...arguments);
|
|
1514
1514
|
h(this, "priority", 130);
|
|
1515
1515
|
h(this, "incompatibleTokens", ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"]);
|
|
1516
1516
|
}
|
|
1517
|
-
parse(t,
|
|
1517
|
+
parse(t, r, a) {
|
|
1518
1518
|
const s = (o) => ({
|
|
1519
1519
|
year: o,
|
|
1520
|
-
isTwoDigitYear:
|
|
1520
|
+
isTwoDigitYear: r === "yy"
|
|
1521
1521
|
});
|
|
1522
|
-
switch (
|
|
1522
|
+
switch (r) {
|
|
1523
1523
|
case "y":
|
|
1524
1524
|
return z(N(4, t), s);
|
|
1525
1525
|
case "yo":
|
|
1526
1526
|
return z(
|
|
1527
|
-
|
|
1527
|
+
a.ordinalNumber(t, {
|
|
1528
1528
|
unit: "year"
|
|
1529
1529
|
}),
|
|
1530
1530
|
s
|
|
1531
1531
|
);
|
|
1532
1532
|
default:
|
|
1533
|
-
return z(N(
|
|
1533
|
+
return z(N(r.length, t), s);
|
|
1534
1534
|
}
|
|
1535
1535
|
}
|
|
1536
|
-
validate(t,
|
|
1537
|
-
return
|
|
1536
|
+
validate(t, r) {
|
|
1537
|
+
return r.isTwoDigitYear || r.year > 0;
|
|
1538
1538
|
}
|
|
1539
|
-
set(t,
|
|
1539
|
+
set(t, r, a) {
|
|
1540
1540
|
const s = t.getFullYear();
|
|
1541
|
-
if (
|
|
1541
|
+
if (a.isTwoDigitYear) {
|
|
1542
1542
|
const d = mn(
|
|
1543
|
-
|
|
1543
|
+
a.year,
|
|
1544
1544
|
s
|
|
1545
1545
|
);
|
|
1546
1546
|
return t.setFullYear(d, 0, 1), t.setHours(0, 0, 0, 0), t;
|
|
1547
1547
|
}
|
|
1548
|
-
const o = !("era" in
|
|
1548
|
+
const o = !("era" in r) || r.era === 1 ? a.year : 1 - a.year;
|
|
1549
1549
|
return t.setFullYear(o, 0, 1), t.setHours(0, 0, 0, 0), t;
|
|
1550
1550
|
}
|
|
1551
1551
|
}
|
|
1552
|
-
class
|
|
1552
|
+
class jr extends R {
|
|
1553
1553
|
constructor() {
|
|
1554
1554
|
super(...arguments);
|
|
1555
1555
|
h(this, "priority", 130);
|
|
@@ -1569,33 +1569,33 @@ class ja extends R {
|
|
|
1569
1569
|
"T"
|
|
1570
1570
|
]);
|
|
1571
1571
|
}
|
|
1572
|
-
parse(t,
|
|
1572
|
+
parse(t, r, a) {
|
|
1573
1573
|
const s = (o) => ({
|
|
1574
1574
|
year: o,
|
|
1575
|
-
isTwoDigitYear:
|
|
1575
|
+
isTwoDigitYear: r === "YY"
|
|
1576
1576
|
});
|
|
1577
|
-
switch (
|
|
1577
|
+
switch (r) {
|
|
1578
1578
|
case "Y":
|
|
1579
1579
|
return z(N(4, t), s);
|
|
1580
1580
|
case "Yo":
|
|
1581
1581
|
return z(
|
|
1582
|
-
|
|
1582
|
+
a.ordinalNumber(t, {
|
|
1583
1583
|
unit: "year"
|
|
1584
1584
|
}),
|
|
1585
1585
|
s
|
|
1586
1586
|
);
|
|
1587
1587
|
default:
|
|
1588
|
-
return z(N(
|
|
1588
|
+
return z(N(r.length, t), s);
|
|
1589
1589
|
}
|
|
1590
1590
|
}
|
|
1591
|
-
validate(t,
|
|
1592
|
-
return
|
|
1591
|
+
validate(t, r) {
|
|
1592
|
+
return r.isTwoDigitYear || r.year > 0;
|
|
1593
1593
|
}
|
|
1594
|
-
set(t,
|
|
1594
|
+
set(t, r, a, s) {
|
|
1595
1595
|
const o = gt(t, s);
|
|
1596
|
-
if (
|
|
1596
|
+
if (a.isTwoDigitYear) {
|
|
1597
1597
|
const g = mn(
|
|
1598
|
-
|
|
1598
|
+
a.year,
|
|
1599
1599
|
o
|
|
1600
1600
|
);
|
|
1601
1601
|
return t.setFullYear(
|
|
@@ -1604,11 +1604,11 @@ class ja extends R {
|
|
|
1604
1604
|
s.firstWeekContainsDate
|
|
1605
1605
|
), t.setHours(0, 0, 0, 0), fe(t, s);
|
|
1606
1606
|
}
|
|
1607
|
-
const d = !("era" in
|
|
1607
|
+
const d = !("era" in r) || r.era === 1 ? a.year : 1 - a.year;
|
|
1608
1608
|
return t.setFullYear(d, 0, s.firstWeekContainsDate), t.setHours(0, 0, 0, 0), fe(t, s);
|
|
1609
1609
|
}
|
|
1610
1610
|
}
|
|
1611
|
-
class
|
|
1611
|
+
class Nr extends R {
|
|
1612
1612
|
constructor() {
|
|
1613
1613
|
super(...arguments);
|
|
1614
1614
|
h(this, "priority", 130);
|
|
@@ -1630,28 +1630,28 @@ class Na extends R {
|
|
|
1630
1630
|
"T"
|
|
1631
1631
|
]);
|
|
1632
1632
|
}
|
|
1633
|
-
parse(t,
|
|
1634
|
-
return qe(
|
|
1633
|
+
parse(t, r) {
|
|
1634
|
+
return qe(r === "R" ? 4 : r.length, t);
|
|
1635
1635
|
}
|
|
1636
|
-
set(t,
|
|
1636
|
+
set(t, r, a) {
|
|
1637
1637
|
const s = Y(t, 0);
|
|
1638
|
-
return s.setFullYear(
|
|
1638
|
+
return s.setFullYear(a, 0, 4), s.setHours(0, 0, 0, 0), Re(s);
|
|
1639
1639
|
}
|
|
1640
1640
|
}
|
|
1641
|
-
class
|
|
1641
|
+
class Lr extends R {
|
|
1642
1642
|
constructor() {
|
|
1643
1643
|
super(...arguments);
|
|
1644
1644
|
h(this, "priority", 130);
|
|
1645
1645
|
h(this, "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]);
|
|
1646
1646
|
}
|
|
1647
|
-
parse(t,
|
|
1648
|
-
return qe(
|
|
1647
|
+
parse(t, r) {
|
|
1648
|
+
return qe(r === "u" ? 4 : r.length, t);
|
|
1649
1649
|
}
|
|
1650
|
-
set(t,
|
|
1651
|
-
return t.setFullYear(
|
|
1650
|
+
set(t, r, a) {
|
|
1651
|
+
return t.setFullYear(a, 0, 1), t.setHours(0, 0, 0, 0), t;
|
|
1652
1652
|
}
|
|
1653
1653
|
}
|
|
1654
|
-
class
|
|
1654
|
+
class Fr extends R {
|
|
1655
1655
|
constructor() {
|
|
1656
1656
|
super(...arguments);
|
|
1657
1657
|
h(this, "priority", 120);
|
|
@@ -1672,48 +1672,48 @@ class Fa extends R {
|
|
|
1672
1672
|
"T"
|
|
1673
1673
|
]);
|
|
1674
1674
|
}
|
|
1675
|
-
parse(t,
|
|
1676
|
-
switch (
|
|
1675
|
+
parse(t, r, a) {
|
|
1676
|
+
switch (r) {
|
|
1677
1677
|
case "Q":
|
|
1678
1678
|
case "QQ":
|
|
1679
|
-
return N(
|
|
1679
|
+
return N(r.length, t);
|
|
1680
1680
|
case "Qo":
|
|
1681
|
-
return
|
|
1681
|
+
return a.ordinalNumber(t, { unit: "quarter" });
|
|
1682
1682
|
case "QQQ":
|
|
1683
|
-
return
|
|
1683
|
+
return a.quarter(t, {
|
|
1684
1684
|
width: "abbreviated",
|
|
1685
1685
|
context: "formatting"
|
|
1686
|
-
}) ||
|
|
1686
|
+
}) || a.quarter(t, {
|
|
1687
1687
|
width: "narrow",
|
|
1688
1688
|
context: "formatting"
|
|
1689
1689
|
});
|
|
1690
1690
|
case "QQQQQ":
|
|
1691
|
-
return
|
|
1691
|
+
return a.quarter(t, {
|
|
1692
1692
|
width: "narrow",
|
|
1693
1693
|
context: "formatting"
|
|
1694
1694
|
});
|
|
1695
1695
|
case "QQQQ":
|
|
1696
1696
|
default:
|
|
1697
|
-
return
|
|
1697
|
+
return a.quarter(t, {
|
|
1698
1698
|
width: "wide",
|
|
1699
1699
|
context: "formatting"
|
|
1700
|
-
}) ||
|
|
1700
|
+
}) || a.quarter(t, {
|
|
1701
1701
|
width: "abbreviated",
|
|
1702
1702
|
context: "formatting"
|
|
1703
|
-
}) ||
|
|
1703
|
+
}) || a.quarter(t, {
|
|
1704
1704
|
width: "narrow",
|
|
1705
1705
|
context: "formatting"
|
|
1706
1706
|
});
|
|
1707
1707
|
}
|
|
1708
1708
|
}
|
|
1709
|
-
validate(t,
|
|
1710
|
-
return
|
|
1709
|
+
validate(t, r) {
|
|
1710
|
+
return r >= 1 && r <= 4;
|
|
1711
1711
|
}
|
|
1712
|
-
set(t,
|
|
1713
|
-
return t.setMonth((
|
|
1712
|
+
set(t, r, a) {
|
|
1713
|
+
return t.setMonth((a - 1) * 3, 1), t.setHours(0, 0, 0, 0), t;
|
|
1714
1714
|
}
|
|
1715
1715
|
}
|
|
1716
|
-
class
|
|
1716
|
+
class zr extends R {
|
|
1717
1717
|
constructor() {
|
|
1718
1718
|
super(...arguments);
|
|
1719
1719
|
h(this, "priority", 120);
|
|
@@ -1734,48 +1734,48 @@ class za extends R {
|
|
|
1734
1734
|
"T"
|
|
1735
1735
|
]);
|
|
1736
1736
|
}
|
|
1737
|
-
parse(t,
|
|
1738
|
-
switch (
|
|
1737
|
+
parse(t, r, a) {
|
|
1738
|
+
switch (r) {
|
|
1739
1739
|
case "q":
|
|
1740
1740
|
case "qq":
|
|
1741
|
-
return N(
|
|
1741
|
+
return N(r.length, t);
|
|
1742
1742
|
case "qo":
|
|
1743
|
-
return
|
|
1743
|
+
return a.ordinalNumber(t, { unit: "quarter" });
|
|
1744
1744
|
case "qqq":
|
|
1745
|
-
return
|
|
1745
|
+
return a.quarter(t, {
|
|
1746
1746
|
width: "abbreviated",
|
|
1747
1747
|
context: "standalone"
|
|
1748
|
-
}) ||
|
|
1748
|
+
}) || a.quarter(t, {
|
|
1749
1749
|
width: "narrow",
|
|
1750
1750
|
context: "standalone"
|
|
1751
1751
|
});
|
|
1752
1752
|
case "qqqqq":
|
|
1753
|
-
return
|
|
1753
|
+
return a.quarter(t, {
|
|
1754
1754
|
width: "narrow",
|
|
1755
1755
|
context: "standalone"
|
|
1756
1756
|
});
|
|
1757
1757
|
case "qqqq":
|
|
1758
1758
|
default:
|
|
1759
|
-
return
|
|
1759
|
+
return a.quarter(t, {
|
|
1760
1760
|
width: "wide",
|
|
1761
1761
|
context: "standalone"
|
|
1762
|
-
}) ||
|
|
1762
|
+
}) || a.quarter(t, {
|
|
1763
1763
|
width: "abbreviated",
|
|
1764
1764
|
context: "standalone"
|
|
1765
|
-
}) ||
|
|
1765
|
+
}) || a.quarter(t, {
|
|
1766
1766
|
width: "narrow",
|
|
1767
1767
|
context: "standalone"
|
|
1768
1768
|
});
|
|
1769
1769
|
}
|
|
1770
1770
|
}
|
|
1771
|
-
validate(t,
|
|
1772
|
-
return
|
|
1771
|
+
validate(t, r) {
|
|
1772
|
+
return r >= 1 && r <= 4;
|
|
1773
1773
|
}
|
|
1774
|
-
set(t,
|
|
1775
|
-
return t.setMonth((
|
|
1774
|
+
set(t, r, a) {
|
|
1775
|
+
return t.setMonth((a - 1) * 3, 1), t.setHours(0, 0, 0, 0), t;
|
|
1776
1776
|
}
|
|
1777
1777
|
}
|
|
1778
|
-
class
|
|
1778
|
+
class Gr extends R {
|
|
1779
1779
|
constructor() {
|
|
1780
1780
|
super(...arguments);
|
|
1781
1781
|
h(this, "incompatibleTokens", [
|
|
@@ -1795,9 +1795,9 @@ class Ga extends R {
|
|
|
1795
1795
|
]);
|
|
1796
1796
|
h(this, "priority", 110);
|
|
1797
1797
|
}
|
|
1798
|
-
parse(t,
|
|
1798
|
+
parse(t, r, a) {
|
|
1799
1799
|
const s = (o) => o - 1;
|
|
1800
|
-
switch (
|
|
1800
|
+
switch (r) {
|
|
1801
1801
|
case "M":
|
|
1802
1802
|
return z(
|
|
1803
1803
|
j(F.month, t),
|
|
@@ -1807,37 +1807,37 @@ class Ga extends R {
|
|
|
1807
1807
|
return z(N(2, t), s);
|
|
1808
1808
|
case "Mo":
|
|
1809
1809
|
return z(
|
|
1810
|
-
|
|
1810
|
+
a.ordinalNumber(t, {
|
|
1811
1811
|
unit: "month"
|
|
1812
1812
|
}),
|
|
1813
1813
|
s
|
|
1814
1814
|
);
|
|
1815
1815
|
case "MMM":
|
|
1816
|
-
return
|
|
1816
|
+
return a.month(t, {
|
|
1817
1817
|
width: "abbreviated",
|
|
1818
1818
|
context: "formatting"
|
|
1819
|
-
}) ||
|
|
1819
|
+
}) || a.month(t, { width: "narrow", context: "formatting" });
|
|
1820
1820
|
case "MMMMM":
|
|
1821
|
-
return
|
|
1821
|
+
return a.month(t, {
|
|
1822
1822
|
width: "narrow",
|
|
1823
1823
|
context: "formatting"
|
|
1824
1824
|
});
|
|
1825
1825
|
case "MMMM":
|
|
1826
1826
|
default:
|
|
1827
|
-
return
|
|
1827
|
+
return a.month(t, { width: "wide", context: "formatting" }) || a.month(t, {
|
|
1828
1828
|
width: "abbreviated",
|
|
1829
1829
|
context: "formatting"
|
|
1830
|
-
}) ||
|
|
1830
|
+
}) || a.month(t, { width: "narrow", context: "formatting" });
|
|
1831
1831
|
}
|
|
1832
1832
|
}
|
|
1833
|
-
validate(t,
|
|
1834
|
-
return
|
|
1833
|
+
validate(t, r) {
|
|
1834
|
+
return r >= 0 && r <= 11;
|
|
1835
1835
|
}
|
|
1836
|
-
set(t,
|
|
1837
|
-
return t.setMonth(
|
|
1836
|
+
set(t, r, a) {
|
|
1837
|
+
return t.setMonth(a, 1), t.setHours(0, 0, 0, 0), t;
|
|
1838
1838
|
}
|
|
1839
1839
|
}
|
|
1840
|
-
class
|
|
1840
|
+
class Wr extends R {
|
|
1841
1841
|
constructor() {
|
|
1842
1842
|
super(...arguments);
|
|
1843
1843
|
h(this, "priority", 110);
|
|
@@ -1857,9 +1857,9 @@ class Wa extends R {
|
|
|
1857
1857
|
"T"
|
|
1858
1858
|
]);
|
|
1859
1859
|
}
|
|
1860
|
-
parse(t,
|
|
1860
|
+
parse(t, r, a) {
|
|
1861
1861
|
const s = (o) => o - 1;
|
|
1862
|
-
switch (
|
|
1862
|
+
switch (r) {
|
|
1863
1863
|
case "L":
|
|
1864
1864
|
return z(
|
|
1865
1865
|
j(F.month, t),
|
|
@@ -1869,41 +1869,41 @@ class Wa extends R {
|
|
|
1869
1869
|
return z(N(2, t), s);
|
|
1870
1870
|
case "Lo":
|
|
1871
1871
|
return z(
|
|
1872
|
-
|
|
1872
|
+
a.ordinalNumber(t, {
|
|
1873
1873
|
unit: "month"
|
|
1874
1874
|
}),
|
|
1875
1875
|
s
|
|
1876
1876
|
);
|
|
1877
1877
|
case "LLL":
|
|
1878
|
-
return
|
|
1878
|
+
return a.month(t, {
|
|
1879
1879
|
width: "abbreviated",
|
|
1880
1880
|
context: "standalone"
|
|
1881
|
-
}) ||
|
|
1881
|
+
}) || a.month(t, { width: "narrow", context: "standalone" });
|
|
1882
1882
|
case "LLLLL":
|
|
1883
|
-
return
|
|
1883
|
+
return a.month(t, {
|
|
1884
1884
|
width: "narrow",
|
|
1885
1885
|
context: "standalone"
|
|
1886
1886
|
});
|
|
1887
1887
|
case "LLLL":
|
|
1888
1888
|
default:
|
|
1889
|
-
return
|
|
1889
|
+
return a.month(t, { width: "wide", context: "standalone" }) || a.month(t, {
|
|
1890
1890
|
width: "abbreviated",
|
|
1891
1891
|
context: "standalone"
|
|
1892
|
-
}) ||
|
|
1892
|
+
}) || a.month(t, { width: "narrow", context: "standalone" });
|
|
1893
1893
|
}
|
|
1894
1894
|
}
|
|
1895
|
-
validate(t,
|
|
1896
|
-
return
|
|
1895
|
+
validate(t, r) {
|
|
1896
|
+
return r >= 0 && r <= 11;
|
|
1897
1897
|
}
|
|
1898
|
-
set(t,
|
|
1899
|
-
return t.setMonth(
|
|
1898
|
+
set(t, r, a) {
|
|
1899
|
+
return t.setMonth(a, 1), t.setHours(0, 0, 0, 0), t;
|
|
1900
1900
|
}
|
|
1901
1901
|
}
|
|
1902
|
-
function
|
|
1903
|
-
const
|
|
1904
|
-
return
|
|
1902
|
+
function Yr(e, n, t) {
|
|
1903
|
+
const r = W(e, t == null ? void 0 : t.in), a = an(r, t) - n;
|
|
1904
|
+
return r.setDate(r.getDate() - a * 7), W(r, t == null ? void 0 : t.in);
|
|
1905
1905
|
}
|
|
1906
|
-
class
|
|
1906
|
+
class qr extends R {
|
|
1907
1907
|
constructor() {
|
|
1908
1908
|
super(...arguments);
|
|
1909
1909
|
h(this, "priority", 100);
|
|
@@ -1923,28 +1923,28 @@ class qa extends R {
|
|
|
1923
1923
|
"T"
|
|
1924
1924
|
]);
|
|
1925
1925
|
}
|
|
1926
|
-
parse(t,
|
|
1927
|
-
switch (
|
|
1926
|
+
parse(t, r, a) {
|
|
1927
|
+
switch (r) {
|
|
1928
1928
|
case "w":
|
|
1929
1929
|
return j(F.week, t);
|
|
1930
1930
|
case "wo":
|
|
1931
|
-
return
|
|
1931
|
+
return a.ordinalNumber(t, { unit: "week" });
|
|
1932
1932
|
default:
|
|
1933
|
-
return N(
|
|
1933
|
+
return N(r.length, t);
|
|
1934
1934
|
}
|
|
1935
1935
|
}
|
|
1936
|
-
validate(t,
|
|
1937
|
-
return
|
|
1936
|
+
validate(t, r) {
|
|
1937
|
+
return r >= 1 && r <= 53;
|
|
1938
1938
|
}
|
|
1939
|
-
set(t,
|
|
1940
|
-
return fe(
|
|
1939
|
+
set(t, r, a, s) {
|
|
1940
|
+
return fe(Yr(t, a, s), s);
|
|
1941
1941
|
}
|
|
1942
1942
|
}
|
|
1943
|
-
function
|
|
1944
|
-
const
|
|
1945
|
-
return
|
|
1943
|
+
function Er(e, n, t) {
|
|
1944
|
+
const r = W(e, t == null ? void 0 : t.in), a = rn(r, t) - n;
|
|
1945
|
+
return r.setDate(r.getDate() - a * 7), r;
|
|
1946
1946
|
}
|
|
1947
|
-
class
|
|
1947
|
+
class Hr extends R {
|
|
1948
1948
|
constructor() {
|
|
1949
1949
|
super(...arguments);
|
|
1950
1950
|
h(this, "priority", 100);
|
|
@@ -1965,24 +1965,24 @@ class Ha extends R {
|
|
|
1965
1965
|
"T"
|
|
1966
1966
|
]);
|
|
1967
1967
|
}
|
|
1968
|
-
parse(t,
|
|
1969
|
-
switch (
|
|
1968
|
+
parse(t, r, a) {
|
|
1969
|
+
switch (r) {
|
|
1970
1970
|
case "I":
|
|
1971
1971
|
return j(F.week, t);
|
|
1972
1972
|
case "Io":
|
|
1973
|
-
return
|
|
1973
|
+
return a.ordinalNumber(t, { unit: "week" });
|
|
1974
1974
|
default:
|
|
1975
|
-
return N(
|
|
1975
|
+
return N(r.length, t);
|
|
1976
1976
|
}
|
|
1977
1977
|
}
|
|
1978
|
-
validate(t,
|
|
1979
|
-
return
|
|
1978
|
+
validate(t, r) {
|
|
1979
|
+
return r >= 1 && r <= 53;
|
|
1980
1980
|
}
|
|
1981
|
-
set(t,
|
|
1982
|
-
return Re(
|
|
1981
|
+
set(t, r, a) {
|
|
1982
|
+
return Re(Er(t, a));
|
|
1983
1983
|
}
|
|
1984
1984
|
}
|
|
1985
|
-
const
|
|
1985
|
+
const Br = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Ur = [
|
|
1986
1986
|
31,
|
|
1987
1987
|
29,
|
|
1988
1988
|
31,
|
|
@@ -1996,7 +1996,7 @@ const Ba = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Ua = [
|
|
|
1996
1996
|
30,
|
|
1997
1997
|
31
|
|
1998
1998
|
];
|
|
1999
|
-
class $
|
|
1999
|
+
class $r extends R {
|
|
2000
2000
|
constructor() {
|
|
2001
2001
|
super(...arguments);
|
|
2002
2002
|
h(this, "priority", 90);
|
|
@@ -2016,25 +2016,25 @@ class $a extends R {
|
|
|
2016
2016
|
"T"
|
|
2017
2017
|
]);
|
|
2018
2018
|
}
|
|
2019
|
-
parse(t,
|
|
2020
|
-
switch (
|
|
2019
|
+
parse(t, r, a) {
|
|
2020
|
+
switch (r) {
|
|
2021
2021
|
case "d":
|
|
2022
2022
|
return j(F.date, t);
|
|
2023
2023
|
case "do":
|
|
2024
|
-
return
|
|
2024
|
+
return a.ordinalNumber(t, { unit: "date" });
|
|
2025
2025
|
default:
|
|
2026
|
-
return N(
|
|
2026
|
+
return N(r.length, t);
|
|
2027
2027
|
}
|
|
2028
2028
|
}
|
|
2029
|
-
validate(t,
|
|
2030
|
-
const
|
|
2031
|
-
return s ?
|
|
2029
|
+
validate(t, r) {
|
|
2030
|
+
const a = t.getFullYear(), s = fn(a), o = t.getMonth();
|
|
2031
|
+
return s ? r >= 1 && r <= Ur[o] : r >= 1 && r <= Br[o];
|
|
2032
2032
|
}
|
|
2033
|
-
set(t,
|
|
2034
|
-
return t.setDate(
|
|
2033
|
+
set(t, r, a) {
|
|
2034
|
+
return t.setDate(a), t.setHours(0, 0, 0, 0), t;
|
|
2035
2035
|
}
|
|
2036
2036
|
}
|
|
2037
|
-
class
|
|
2037
|
+
class Vr extends R {
|
|
2038
2038
|
constructor() {
|
|
2039
2039
|
super(...arguments);
|
|
2040
2040
|
h(this, "priority", 90);
|
|
@@ -2057,68 +2057,68 @@ class Va extends R {
|
|
|
2057
2057
|
"T"
|
|
2058
2058
|
]);
|
|
2059
2059
|
}
|
|
2060
|
-
parse(t,
|
|
2061
|
-
switch (
|
|
2060
|
+
parse(t, r, a) {
|
|
2061
|
+
switch (r) {
|
|
2062
2062
|
case "D":
|
|
2063
2063
|
case "DD":
|
|
2064
2064
|
return j(F.dayOfYear, t);
|
|
2065
2065
|
case "Do":
|
|
2066
|
-
return
|
|
2066
|
+
return a.ordinalNumber(t, { unit: "date" });
|
|
2067
2067
|
default:
|
|
2068
|
-
return N(
|
|
2068
|
+
return N(r.length, t);
|
|
2069
2069
|
}
|
|
2070
2070
|
}
|
|
2071
|
-
validate(t,
|
|
2072
|
-
const
|
|
2073
|
-
return fn(
|
|
2071
|
+
validate(t, r) {
|
|
2072
|
+
const a = t.getFullYear();
|
|
2073
|
+
return fn(a) ? r >= 1 && r <= 366 : r >= 1 && r <= 365;
|
|
2074
2074
|
}
|
|
2075
|
-
set(t,
|
|
2076
|
-
return t.setMonth(0,
|
|
2075
|
+
set(t, r, a) {
|
|
2076
|
+
return t.setMonth(0, a), t.setHours(0, 0, 0, 0), t;
|
|
2077
2077
|
}
|
|
2078
2078
|
}
|
|
2079
2079
|
function bt(e, n, t) {
|
|
2080
2080
|
var D, _, p, M;
|
|
2081
|
-
const
|
|
2081
|
+
const r = Oe(), a = (t == null ? void 0 : t.weekStartsOn) ?? ((_ = (D = t == null ? void 0 : t.locale) == null ? void 0 : D.options) == null ? void 0 : _.weekStartsOn) ?? r.weekStartsOn ?? ((M = (p = r.locale) == null ? void 0 : p.options) == null ? void 0 : M.weekStartsOn) ?? 0, s = W(e, t == null ? void 0 : t.in), o = s.getDay(), g = (n % 7 + 7) % 7, f = 7 - a, b = n < 0 || n > 6 ? n - (o + f) % 7 : (g + f) % 7 - (o + f) % 7;
|
|
2082
2082
|
return en(s, b, t);
|
|
2083
2083
|
}
|
|
2084
|
-
class
|
|
2084
|
+
class Ar extends R {
|
|
2085
2085
|
constructor() {
|
|
2086
2086
|
super(...arguments);
|
|
2087
2087
|
h(this, "priority", 90);
|
|
2088
2088
|
h(this, "incompatibleTokens", ["D", "i", "e", "c", "t", "T"]);
|
|
2089
2089
|
}
|
|
2090
|
-
parse(t,
|
|
2091
|
-
switch (
|
|
2090
|
+
parse(t, r, a) {
|
|
2091
|
+
switch (r) {
|
|
2092
2092
|
case "E":
|
|
2093
2093
|
case "EE":
|
|
2094
2094
|
case "EEE":
|
|
2095
|
-
return
|
|
2095
|
+
return a.day(t, {
|
|
2096
2096
|
width: "abbreviated",
|
|
2097
2097
|
context: "formatting"
|
|
2098
|
-
}) ||
|
|
2098
|
+
}) || a.day(t, { width: "short", context: "formatting" }) || a.day(t, { width: "narrow", context: "formatting" });
|
|
2099
2099
|
case "EEEEE":
|
|
2100
|
-
return
|
|
2100
|
+
return a.day(t, {
|
|
2101
2101
|
width: "narrow",
|
|
2102
2102
|
context: "formatting"
|
|
2103
2103
|
});
|
|
2104
2104
|
case "EEEEEE":
|
|
2105
|
-
return
|
|
2105
|
+
return a.day(t, { width: "short", context: "formatting" }) || a.day(t, { width: "narrow", context: "formatting" });
|
|
2106
2106
|
case "EEEE":
|
|
2107
2107
|
default:
|
|
2108
|
-
return
|
|
2108
|
+
return a.day(t, { width: "wide", context: "formatting" }) || a.day(t, {
|
|
2109
2109
|
width: "abbreviated",
|
|
2110
2110
|
context: "formatting"
|
|
2111
|
-
}) ||
|
|
2111
|
+
}) || a.day(t, { width: "short", context: "formatting" }) || a.day(t, { width: "narrow", context: "formatting" });
|
|
2112
2112
|
}
|
|
2113
2113
|
}
|
|
2114
|
-
validate(t,
|
|
2115
|
-
return
|
|
2114
|
+
validate(t, r) {
|
|
2115
|
+
return r >= 0 && r <= 6;
|
|
2116
2116
|
}
|
|
2117
|
-
set(t,
|
|
2118
|
-
return t = bt(t,
|
|
2117
|
+
set(t, r, a, s) {
|
|
2118
|
+
return t = bt(t, a, s), t.setHours(0, 0, 0, 0), t;
|
|
2119
2119
|
}
|
|
2120
2120
|
}
|
|
2121
|
-
class
|
|
2121
|
+
class Qr extends R {
|
|
2122
2122
|
constructor() {
|
|
2123
2123
|
super(...arguments);
|
|
2124
2124
|
h(this, "priority", 90);
|
|
@@ -2140,50 +2140,50 @@ class Qa extends R {
|
|
|
2140
2140
|
"T"
|
|
2141
2141
|
]);
|
|
2142
2142
|
}
|
|
2143
|
-
parse(t,
|
|
2143
|
+
parse(t, r, a, s) {
|
|
2144
2144
|
const o = (d) => {
|
|
2145
2145
|
const g = Math.floor((d - 1) / 7) * 7;
|
|
2146
2146
|
return (d + s.weekStartsOn + 6) % 7 + g;
|
|
2147
2147
|
};
|
|
2148
|
-
switch (
|
|
2148
|
+
switch (r) {
|
|
2149
2149
|
case "e":
|
|
2150
2150
|
case "ee":
|
|
2151
|
-
return z(N(
|
|
2151
|
+
return z(N(r.length, t), o);
|
|
2152
2152
|
case "eo":
|
|
2153
2153
|
return z(
|
|
2154
|
-
|
|
2154
|
+
a.ordinalNumber(t, {
|
|
2155
2155
|
unit: "day"
|
|
2156
2156
|
}),
|
|
2157
2157
|
o
|
|
2158
2158
|
);
|
|
2159
2159
|
case "eee":
|
|
2160
|
-
return
|
|
2160
|
+
return a.day(t, {
|
|
2161
2161
|
width: "abbreviated",
|
|
2162
2162
|
context: "formatting"
|
|
2163
|
-
}) ||
|
|
2163
|
+
}) || a.day(t, { width: "short", context: "formatting" }) || a.day(t, { width: "narrow", context: "formatting" });
|
|
2164
2164
|
case "eeeee":
|
|
2165
|
-
return
|
|
2165
|
+
return a.day(t, {
|
|
2166
2166
|
width: "narrow",
|
|
2167
2167
|
context: "formatting"
|
|
2168
2168
|
});
|
|
2169
2169
|
case "eeeeee":
|
|
2170
|
-
return
|
|
2170
|
+
return a.day(t, { width: "short", context: "formatting" }) || a.day(t, { width: "narrow", context: "formatting" });
|
|
2171
2171
|
case "eeee":
|
|
2172
2172
|
default:
|
|
2173
|
-
return
|
|
2173
|
+
return a.day(t, { width: "wide", context: "formatting" }) || a.day(t, {
|
|
2174
2174
|
width: "abbreviated",
|
|
2175
2175
|
context: "formatting"
|
|
2176
|
-
}) ||
|
|
2176
|
+
}) || a.day(t, { width: "short", context: "formatting" }) || a.day(t, { width: "narrow", context: "formatting" });
|
|
2177
2177
|
}
|
|
2178
2178
|
}
|
|
2179
|
-
validate(t,
|
|
2180
|
-
return
|
|
2179
|
+
validate(t, r) {
|
|
2180
|
+
return r >= 0 && r <= 6;
|
|
2181
2181
|
}
|
|
2182
|
-
set(t,
|
|
2183
|
-
return t = bt(t,
|
|
2182
|
+
set(t, r, a, s) {
|
|
2183
|
+
return t = bt(t, a, s), t.setHours(0, 0, 0, 0), t;
|
|
2184
2184
|
}
|
|
2185
2185
|
}
|
|
2186
|
-
class
|
|
2186
|
+
class Xr extends R {
|
|
2187
2187
|
constructor() {
|
|
2188
2188
|
super(...arguments);
|
|
2189
2189
|
h(this, "priority", 90);
|
|
@@ -2205,54 +2205,54 @@ class Xa extends R {
|
|
|
2205
2205
|
"T"
|
|
2206
2206
|
]);
|
|
2207
2207
|
}
|
|
2208
|
-
parse(t,
|
|
2208
|
+
parse(t, r, a, s) {
|
|
2209
2209
|
const o = (d) => {
|
|
2210
2210
|
const g = Math.floor((d - 1) / 7) * 7;
|
|
2211
2211
|
return (d + s.weekStartsOn + 6) % 7 + g;
|
|
2212
2212
|
};
|
|
2213
|
-
switch (
|
|
2213
|
+
switch (r) {
|
|
2214
2214
|
case "c":
|
|
2215
2215
|
case "cc":
|
|
2216
|
-
return z(N(
|
|
2216
|
+
return z(N(r.length, t), o);
|
|
2217
2217
|
case "co":
|
|
2218
2218
|
return z(
|
|
2219
|
-
|
|
2219
|
+
a.ordinalNumber(t, {
|
|
2220
2220
|
unit: "day"
|
|
2221
2221
|
}),
|
|
2222
2222
|
o
|
|
2223
2223
|
);
|
|
2224
2224
|
case "ccc":
|
|
2225
|
-
return
|
|
2225
|
+
return a.day(t, {
|
|
2226
2226
|
width: "abbreviated",
|
|
2227
2227
|
context: "standalone"
|
|
2228
|
-
}) ||
|
|
2228
|
+
}) || a.day(t, { width: "short", context: "standalone" }) || a.day(t, { width: "narrow", context: "standalone" });
|
|
2229
2229
|
case "ccccc":
|
|
2230
|
-
return
|
|
2230
|
+
return a.day(t, {
|
|
2231
2231
|
width: "narrow",
|
|
2232
2232
|
context: "standalone"
|
|
2233
2233
|
});
|
|
2234
2234
|
case "cccccc":
|
|
2235
|
-
return
|
|
2235
|
+
return a.day(t, { width: "short", context: "standalone" }) || a.day(t, { width: "narrow", context: "standalone" });
|
|
2236
2236
|
case "cccc":
|
|
2237
2237
|
default:
|
|
2238
|
-
return
|
|
2238
|
+
return a.day(t, { width: "wide", context: "standalone" }) || a.day(t, {
|
|
2239
2239
|
width: "abbreviated",
|
|
2240
2240
|
context: "standalone"
|
|
2241
|
-
}) ||
|
|
2241
|
+
}) || a.day(t, { width: "short", context: "standalone" }) || a.day(t, { width: "narrow", context: "standalone" });
|
|
2242
2242
|
}
|
|
2243
2243
|
}
|
|
2244
|
-
validate(t,
|
|
2245
|
-
return
|
|
2244
|
+
validate(t, r) {
|
|
2245
|
+
return r >= 0 && r <= 6;
|
|
2246
2246
|
}
|
|
2247
|
-
set(t,
|
|
2248
|
-
return t = bt(t,
|
|
2247
|
+
set(t, r, a, s) {
|
|
2248
|
+
return t = bt(t, a, s), t.setHours(0, 0, 0, 0), t;
|
|
2249
2249
|
}
|
|
2250
2250
|
}
|
|
2251
|
-
function
|
|
2252
|
-
const
|
|
2253
|
-
return en(
|
|
2251
|
+
function Zr(e, n, t) {
|
|
2252
|
+
const r = W(e, t == null ? void 0 : t.in), a = xr(r, t), s = n - a;
|
|
2253
|
+
return en(r, s, t);
|
|
2254
2254
|
}
|
|
2255
|
-
class
|
|
2255
|
+
class Jr extends R {
|
|
2256
2256
|
constructor() {
|
|
2257
2257
|
super(...arguments);
|
|
2258
2258
|
h(this, "priority", 90);
|
|
@@ -2274,23 +2274,23 @@ class Ja extends R {
|
|
|
2274
2274
|
"T"
|
|
2275
2275
|
]);
|
|
2276
2276
|
}
|
|
2277
|
-
parse(t,
|
|
2277
|
+
parse(t, r, a) {
|
|
2278
2278
|
const s = (o) => o === 0 ? 7 : o;
|
|
2279
|
-
switch (
|
|
2279
|
+
switch (r) {
|
|
2280
2280
|
case "i":
|
|
2281
2281
|
case "ii":
|
|
2282
|
-
return N(
|
|
2282
|
+
return N(r.length, t);
|
|
2283
2283
|
case "io":
|
|
2284
|
-
return
|
|
2284
|
+
return a.ordinalNumber(t, { unit: "day" });
|
|
2285
2285
|
case "iii":
|
|
2286
2286
|
return z(
|
|
2287
|
-
|
|
2287
|
+
a.day(t, {
|
|
2288
2288
|
width: "abbreviated",
|
|
2289
2289
|
context: "formatting"
|
|
2290
|
-
}) ||
|
|
2290
|
+
}) || a.day(t, {
|
|
2291
2291
|
width: "short",
|
|
2292
2292
|
context: "formatting"
|
|
2293
|
-
}) ||
|
|
2293
|
+
}) || a.day(t, {
|
|
2294
2294
|
width: "narrow",
|
|
2295
2295
|
context: "formatting"
|
|
2296
2296
|
}),
|
|
@@ -2298,7 +2298,7 @@ class Ja extends R {
|
|
|
2298
2298
|
);
|
|
2299
2299
|
case "iiiii":
|
|
2300
2300
|
return z(
|
|
2301
|
-
|
|
2301
|
+
a.day(t, {
|
|
2302
2302
|
width: "narrow",
|
|
2303
2303
|
context: "formatting"
|
|
2304
2304
|
}),
|
|
@@ -2306,10 +2306,10 @@ class Ja extends R {
|
|
|
2306
2306
|
);
|
|
2307
2307
|
case "iiiiii":
|
|
2308
2308
|
return z(
|
|
2309
|
-
|
|
2309
|
+
a.day(t, {
|
|
2310
2310
|
width: "short",
|
|
2311
2311
|
context: "formatting"
|
|
2312
|
-
}) ||
|
|
2312
|
+
}) || a.day(t, {
|
|
2313
2313
|
width: "narrow",
|
|
2314
2314
|
context: "formatting"
|
|
2315
2315
|
}),
|
|
@@ -2318,16 +2318,16 @@ class Ja extends R {
|
|
|
2318
2318
|
case "iiii":
|
|
2319
2319
|
default:
|
|
2320
2320
|
return z(
|
|
2321
|
-
|
|
2321
|
+
a.day(t, {
|
|
2322
2322
|
width: "wide",
|
|
2323
2323
|
context: "formatting"
|
|
2324
|
-
}) ||
|
|
2324
|
+
}) || a.day(t, {
|
|
2325
2325
|
width: "abbreviated",
|
|
2326
2326
|
context: "formatting"
|
|
2327
|
-
}) ||
|
|
2327
|
+
}) || a.day(t, {
|
|
2328
2328
|
width: "short",
|
|
2329
2329
|
context: "formatting"
|
|
2330
|
-
}) ||
|
|
2330
|
+
}) || a.day(t, {
|
|
2331
2331
|
width: "narrow",
|
|
2332
2332
|
context: "formatting"
|
|
2333
2333
|
}),
|
|
@@ -2335,298 +2335,298 @@ class Ja extends R {
|
|
|
2335
2335
|
);
|
|
2336
2336
|
}
|
|
2337
2337
|
}
|
|
2338
|
-
validate(t,
|
|
2339
|
-
return
|
|
2338
|
+
validate(t, r) {
|
|
2339
|
+
return r >= 1 && r <= 7;
|
|
2340
2340
|
}
|
|
2341
|
-
set(t,
|
|
2342
|
-
return t =
|
|
2341
|
+
set(t, r, a) {
|
|
2342
|
+
return t = Zr(t, a), t.setHours(0, 0, 0, 0), t;
|
|
2343
2343
|
}
|
|
2344
2344
|
}
|
|
2345
|
-
class
|
|
2345
|
+
class Kr extends R {
|
|
2346
2346
|
constructor() {
|
|
2347
2347
|
super(...arguments);
|
|
2348
2348
|
h(this, "priority", 80);
|
|
2349
2349
|
h(this, "incompatibleTokens", ["b", "B", "H", "k", "t", "T"]);
|
|
2350
2350
|
}
|
|
2351
|
-
parse(t,
|
|
2352
|
-
switch (
|
|
2351
|
+
parse(t, r, a) {
|
|
2352
|
+
switch (r) {
|
|
2353
2353
|
case "a":
|
|
2354
2354
|
case "aa":
|
|
2355
2355
|
case "aaa":
|
|
2356
|
-
return
|
|
2356
|
+
return a.dayPeriod(t, {
|
|
2357
2357
|
width: "abbreviated",
|
|
2358
2358
|
context: "formatting"
|
|
2359
|
-
}) ||
|
|
2359
|
+
}) || a.dayPeriod(t, {
|
|
2360
2360
|
width: "narrow",
|
|
2361
2361
|
context: "formatting"
|
|
2362
2362
|
});
|
|
2363
2363
|
case "aaaaa":
|
|
2364
|
-
return
|
|
2364
|
+
return a.dayPeriod(t, {
|
|
2365
2365
|
width: "narrow",
|
|
2366
2366
|
context: "formatting"
|
|
2367
2367
|
});
|
|
2368
2368
|
case "aaaa":
|
|
2369
2369
|
default:
|
|
2370
|
-
return
|
|
2370
|
+
return a.dayPeriod(t, {
|
|
2371
2371
|
width: "wide",
|
|
2372
2372
|
context: "formatting"
|
|
2373
|
-
}) ||
|
|
2373
|
+
}) || a.dayPeriod(t, {
|
|
2374
2374
|
width: "abbreviated",
|
|
2375
2375
|
context: "formatting"
|
|
2376
|
-
}) ||
|
|
2376
|
+
}) || a.dayPeriod(t, {
|
|
2377
2377
|
width: "narrow",
|
|
2378
2378
|
context: "formatting"
|
|
2379
2379
|
});
|
|
2380
2380
|
}
|
|
2381
2381
|
}
|
|
2382
|
-
set(t,
|
|
2383
|
-
return t.setHours(pt(
|
|
2382
|
+
set(t, r, a) {
|
|
2383
|
+
return t.setHours(pt(a), 0, 0, 0), t;
|
|
2384
2384
|
}
|
|
2385
2385
|
}
|
|
2386
|
-
class
|
|
2386
|
+
class ea extends R {
|
|
2387
2387
|
constructor() {
|
|
2388
2388
|
super(...arguments);
|
|
2389
2389
|
h(this, "priority", 80);
|
|
2390
2390
|
h(this, "incompatibleTokens", ["a", "B", "H", "k", "t", "T"]);
|
|
2391
2391
|
}
|
|
2392
|
-
parse(t,
|
|
2393
|
-
switch (
|
|
2392
|
+
parse(t, r, a) {
|
|
2393
|
+
switch (r) {
|
|
2394
2394
|
case "b":
|
|
2395
2395
|
case "bb":
|
|
2396
2396
|
case "bbb":
|
|
2397
|
-
return
|
|
2397
|
+
return a.dayPeriod(t, {
|
|
2398
2398
|
width: "abbreviated",
|
|
2399
2399
|
context: "formatting"
|
|
2400
|
-
}) ||
|
|
2400
|
+
}) || a.dayPeriod(t, {
|
|
2401
2401
|
width: "narrow",
|
|
2402
2402
|
context: "formatting"
|
|
2403
2403
|
});
|
|
2404
2404
|
case "bbbbb":
|
|
2405
|
-
return
|
|
2405
|
+
return a.dayPeriod(t, {
|
|
2406
2406
|
width: "narrow",
|
|
2407
2407
|
context: "formatting"
|
|
2408
2408
|
});
|
|
2409
2409
|
case "bbbb":
|
|
2410
2410
|
default:
|
|
2411
|
-
return
|
|
2411
|
+
return a.dayPeriod(t, {
|
|
2412
2412
|
width: "wide",
|
|
2413
2413
|
context: "formatting"
|
|
2414
|
-
}) ||
|
|
2414
|
+
}) || a.dayPeriod(t, {
|
|
2415
2415
|
width: "abbreviated",
|
|
2416
2416
|
context: "formatting"
|
|
2417
|
-
}) ||
|
|
2417
|
+
}) || a.dayPeriod(t, {
|
|
2418
2418
|
width: "narrow",
|
|
2419
2419
|
context: "formatting"
|
|
2420
2420
|
});
|
|
2421
2421
|
}
|
|
2422
2422
|
}
|
|
2423
|
-
set(t,
|
|
2424
|
-
return t.setHours(pt(
|
|
2423
|
+
set(t, r, a) {
|
|
2424
|
+
return t.setHours(pt(a), 0, 0, 0), t;
|
|
2425
2425
|
}
|
|
2426
2426
|
}
|
|
2427
|
-
class
|
|
2427
|
+
class ta extends R {
|
|
2428
2428
|
constructor() {
|
|
2429
2429
|
super(...arguments);
|
|
2430
2430
|
h(this, "priority", 80);
|
|
2431
2431
|
h(this, "incompatibleTokens", ["a", "b", "t", "T"]);
|
|
2432
2432
|
}
|
|
2433
|
-
parse(t,
|
|
2434
|
-
switch (
|
|
2433
|
+
parse(t, r, a) {
|
|
2434
|
+
switch (r) {
|
|
2435
2435
|
case "B":
|
|
2436
2436
|
case "BB":
|
|
2437
2437
|
case "BBB":
|
|
2438
|
-
return
|
|
2438
|
+
return a.dayPeriod(t, {
|
|
2439
2439
|
width: "abbreviated",
|
|
2440
2440
|
context: "formatting"
|
|
2441
|
-
}) ||
|
|
2441
|
+
}) || a.dayPeriod(t, {
|
|
2442
2442
|
width: "narrow",
|
|
2443
2443
|
context: "formatting"
|
|
2444
2444
|
});
|
|
2445
2445
|
case "BBBBB":
|
|
2446
|
-
return
|
|
2446
|
+
return a.dayPeriod(t, {
|
|
2447
2447
|
width: "narrow",
|
|
2448
2448
|
context: "formatting"
|
|
2449
2449
|
});
|
|
2450
2450
|
case "BBBB":
|
|
2451
2451
|
default:
|
|
2452
|
-
return
|
|
2452
|
+
return a.dayPeriod(t, {
|
|
2453
2453
|
width: "wide",
|
|
2454
2454
|
context: "formatting"
|
|
2455
|
-
}) ||
|
|
2455
|
+
}) || a.dayPeriod(t, {
|
|
2456
2456
|
width: "abbreviated",
|
|
2457
2457
|
context: "formatting"
|
|
2458
|
-
}) ||
|
|
2458
|
+
}) || a.dayPeriod(t, {
|
|
2459
2459
|
width: "narrow",
|
|
2460
2460
|
context: "formatting"
|
|
2461
2461
|
});
|
|
2462
2462
|
}
|
|
2463
2463
|
}
|
|
2464
|
-
set(t,
|
|
2465
|
-
return t.setHours(pt(
|
|
2464
|
+
set(t, r, a) {
|
|
2465
|
+
return t.setHours(pt(a), 0, 0, 0), t;
|
|
2466
2466
|
}
|
|
2467
2467
|
}
|
|
2468
|
-
class
|
|
2468
|
+
class na extends R {
|
|
2469
2469
|
constructor() {
|
|
2470
2470
|
super(...arguments);
|
|
2471
2471
|
h(this, "priority", 70);
|
|
2472
2472
|
h(this, "incompatibleTokens", ["H", "K", "k", "t", "T"]);
|
|
2473
2473
|
}
|
|
2474
|
-
parse(t,
|
|
2475
|
-
switch (
|
|
2474
|
+
parse(t, r, a) {
|
|
2475
|
+
switch (r) {
|
|
2476
2476
|
case "h":
|
|
2477
2477
|
return j(F.hour12h, t);
|
|
2478
2478
|
case "ho":
|
|
2479
|
-
return
|
|
2479
|
+
return a.ordinalNumber(t, { unit: "hour" });
|
|
2480
2480
|
default:
|
|
2481
|
-
return N(
|
|
2481
|
+
return N(r.length, t);
|
|
2482
2482
|
}
|
|
2483
2483
|
}
|
|
2484
|
-
validate(t,
|
|
2485
|
-
return
|
|
2484
|
+
validate(t, r) {
|
|
2485
|
+
return r >= 1 && r <= 12;
|
|
2486
2486
|
}
|
|
2487
|
-
set(t,
|
|
2487
|
+
set(t, r, a) {
|
|
2488
2488
|
const s = t.getHours() >= 12;
|
|
2489
|
-
return s &&
|
|
2489
|
+
return s && a < 12 ? t.setHours(a + 12, 0, 0, 0) : !s && a === 12 ? t.setHours(0, 0, 0, 0) : t.setHours(a, 0, 0, 0), t;
|
|
2490
2490
|
}
|
|
2491
2491
|
}
|
|
2492
|
-
class
|
|
2492
|
+
class ra extends R {
|
|
2493
2493
|
constructor() {
|
|
2494
2494
|
super(...arguments);
|
|
2495
2495
|
h(this, "priority", 70);
|
|
2496
2496
|
h(this, "incompatibleTokens", ["a", "b", "h", "K", "k", "t", "T"]);
|
|
2497
2497
|
}
|
|
2498
|
-
parse(t,
|
|
2499
|
-
switch (
|
|
2498
|
+
parse(t, r, a) {
|
|
2499
|
+
switch (r) {
|
|
2500
2500
|
case "H":
|
|
2501
2501
|
return j(F.hour23h, t);
|
|
2502
2502
|
case "Ho":
|
|
2503
|
-
return
|
|
2503
|
+
return a.ordinalNumber(t, { unit: "hour" });
|
|
2504
2504
|
default:
|
|
2505
|
-
return N(
|
|
2505
|
+
return N(r.length, t);
|
|
2506
2506
|
}
|
|
2507
2507
|
}
|
|
2508
|
-
validate(t,
|
|
2509
|
-
return
|
|
2508
|
+
validate(t, r) {
|
|
2509
|
+
return r >= 0 && r <= 23;
|
|
2510
2510
|
}
|
|
2511
|
-
set(t,
|
|
2512
|
-
return t.setHours(
|
|
2511
|
+
set(t, r, a) {
|
|
2512
|
+
return t.setHours(a, 0, 0, 0), t;
|
|
2513
2513
|
}
|
|
2514
2514
|
}
|
|
2515
|
-
class
|
|
2515
|
+
class aa extends R {
|
|
2516
2516
|
constructor() {
|
|
2517
2517
|
super(...arguments);
|
|
2518
2518
|
h(this, "priority", 70);
|
|
2519
2519
|
h(this, "incompatibleTokens", ["h", "H", "k", "t", "T"]);
|
|
2520
2520
|
}
|
|
2521
|
-
parse(t,
|
|
2522
|
-
switch (
|
|
2521
|
+
parse(t, r, a) {
|
|
2522
|
+
switch (r) {
|
|
2523
2523
|
case "K":
|
|
2524
2524
|
return j(F.hour11h, t);
|
|
2525
2525
|
case "Ko":
|
|
2526
|
-
return
|
|
2526
|
+
return a.ordinalNumber(t, { unit: "hour" });
|
|
2527
2527
|
default:
|
|
2528
|
-
return N(
|
|
2528
|
+
return N(r.length, t);
|
|
2529
2529
|
}
|
|
2530
2530
|
}
|
|
2531
|
-
validate(t,
|
|
2532
|
-
return
|
|
2531
|
+
validate(t, r) {
|
|
2532
|
+
return r >= 0 && r <= 11;
|
|
2533
2533
|
}
|
|
2534
|
-
set(t,
|
|
2535
|
-
return t.getHours() >= 12 &&
|
|
2534
|
+
set(t, r, a) {
|
|
2535
|
+
return t.getHours() >= 12 && a < 12 ? t.setHours(a + 12, 0, 0, 0) : t.setHours(a, 0, 0, 0), t;
|
|
2536
2536
|
}
|
|
2537
2537
|
}
|
|
2538
|
-
class
|
|
2538
|
+
class sa extends R {
|
|
2539
2539
|
constructor() {
|
|
2540
2540
|
super(...arguments);
|
|
2541
2541
|
h(this, "priority", 70);
|
|
2542
2542
|
h(this, "incompatibleTokens", ["a", "b", "h", "H", "K", "t", "T"]);
|
|
2543
2543
|
}
|
|
2544
|
-
parse(t,
|
|
2545
|
-
switch (
|
|
2544
|
+
parse(t, r, a) {
|
|
2545
|
+
switch (r) {
|
|
2546
2546
|
case "k":
|
|
2547
2547
|
return j(F.hour24h, t);
|
|
2548
2548
|
case "ko":
|
|
2549
|
-
return
|
|
2549
|
+
return a.ordinalNumber(t, { unit: "hour" });
|
|
2550
2550
|
default:
|
|
2551
|
-
return N(
|
|
2551
|
+
return N(r.length, t);
|
|
2552
2552
|
}
|
|
2553
2553
|
}
|
|
2554
|
-
validate(t,
|
|
2555
|
-
return
|
|
2554
|
+
validate(t, r) {
|
|
2555
|
+
return r >= 1 && r <= 24;
|
|
2556
2556
|
}
|
|
2557
|
-
set(t,
|
|
2558
|
-
const s =
|
|
2557
|
+
set(t, r, a) {
|
|
2558
|
+
const s = a <= 24 ? a % 24 : a;
|
|
2559
2559
|
return t.setHours(s, 0, 0, 0), t;
|
|
2560
2560
|
}
|
|
2561
2561
|
}
|
|
2562
|
-
class
|
|
2562
|
+
class oa extends R {
|
|
2563
2563
|
constructor() {
|
|
2564
2564
|
super(...arguments);
|
|
2565
2565
|
h(this, "priority", 60);
|
|
2566
2566
|
h(this, "incompatibleTokens", ["t", "T"]);
|
|
2567
2567
|
}
|
|
2568
|
-
parse(t,
|
|
2569
|
-
switch (
|
|
2568
|
+
parse(t, r, a) {
|
|
2569
|
+
switch (r) {
|
|
2570
2570
|
case "m":
|
|
2571
2571
|
return j(F.minute, t);
|
|
2572
2572
|
case "mo":
|
|
2573
|
-
return
|
|
2573
|
+
return a.ordinalNumber(t, { unit: "minute" });
|
|
2574
2574
|
default:
|
|
2575
|
-
return N(
|
|
2575
|
+
return N(r.length, t);
|
|
2576
2576
|
}
|
|
2577
2577
|
}
|
|
2578
|
-
validate(t,
|
|
2579
|
-
return
|
|
2578
|
+
validate(t, r) {
|
|
2579
|
+
return r >= 0 && r <= 59;
|
|
2580
2580
|
}
|
|
2581
|
-
set(t,
|
|
2582
|
-
return t.setMinutes(
|
|
2581
|
+
set(t, r, a) {
|
|
2582
|
+
return t.setMinutes(a, 0, 0), t;
|
|
2583
2583
|
}
|
|
2584
2584
|
}
|
|
2585
|
-
class
|
|
2585
|
+
class ia extends R {
|
|
2586
2586
|
constructor() {
|
|
2587
2587
|
super(...arguments);
|
|
2588
2588
|
h(this, "priority", 50);
|
|
2589
2589
|
h(this, "incompatibleTokens", ["t", "T"]);
|
|
2590
2590
|
}
|
|
2591
|
-
parse(t,
|
|
2592
|
-
switch (
|
|
2591
|
+
parse(t, r, a) {
|
|
2592
|
+
switch (r) {
|
|
2593
2593
|
case "s":
|
|
2594
2594
|
return j(F.second, t);
|
|
2595
2595
|
case "so":
|
|
2596
|
-
return
|
|
2596
|
+
return a.ordinalNumber(t, { unit: "second" });
|
|
2597
2597
|
default:
|
|
2598
|
-
return N(
|
|
2598
|
+
return N(r.length, t);
|
|
2599
2599
|
}
|
|
2600
2600
|
}
|
|
2601
|
-
validate(t,
|
|
2602
|
-
return
|
|
2601
|
+
validate(t, r) {
|
|
2602
|
+
return r >= 0 && r <= 59;
|
|
2603
2603
|
}
|
|
2604
|
-
set(t,
|
|
2605
|
-
return t.setSeconds(
|
|
2604
|
+
set(t, r, a) {
|
|
2605
|
+
return t.setSeconds(a, 0), t;
|
|
2606
2606
|
}
|
|
2607
2607
|
}
|
|
2608
|
-
class
|
|
2608
|
+
class ua extends R {
|
|
2609
2609
|
constructor() {
|
|
2610
2610
|
super(...arguments);
|
|
2611
2611
|
h(this, "priority", 30);
|
|
2612
2612
|
h(this, "incompatibleTokens", ["t", "T"]);
|
|
2613
2613
|
}
|
|
2614
|
-
parse(t,
|
|
2615
|
-
const
|
|
2616
|
-
return z(N(
|
|
2614
|
+
parse(t, r) {
|
|
2615
|
+
const a = (s) => Math.trunc(s * Math.pow(10, -r.length + 3));
|
|
2616
|
+
return z(N(r.length, t), a);
|
|
2617
2617
|
}
|
|
2618
|
-
set(t,
|
|
2619
|
-
return t.setMilliseconds(
|
|
2618
|
+
set(t, r, a) {
|
|
2619
|
+
return t.setMilliseconds(a), t;
|
|
2620
2620
|
}
|
|
2621
2621
|
}
|
|
2622
|
-
class
|
|
2622
|
+
class la extends R {
|
|
2623
2623
|
constructor() {
|
|
2624
2624
|
super(...arguments);
|
|
2625
2625
|
h(this, "priority", 10);
|
|
2626
2626
|
h(this, "incompatibleTokens", ["t", "T", "x"]);
|
|
2627
2627
|
}
|
|
2628
|
-
parse(t,
|
|
2629
|
-
switch (
|
|
2628
|
+
parse(t, r) {
|
|
2629
|
+
switch (r) {
|
|
2630
2630
|
case "X":
|
|
2631
2631
|
return ne(
|
|
2632
2632
|
te.basicOptionalMinutes,
|
|
@@ -2649,21 +2649,21 @@ class lr extends R {
|
|
|
2649
2649
|
return ne(te.extended, t);
|
|
2650
2650
|
}
|
|
2651
2651
|
}
|
|
2652
|
-
set(t,
|
|
2653
|
-
return
|
|
2652
|
+
set(t, r, a) {
|
|
2653
|
+
return r.timestampIsSet ? t : Y(
|
|
2654
2654
|
t,
|
|
2655
|
-
t.getTime() - Ye(t) -
|
|
2655
|
+
t.getTime() - Ye(t) - a
|
|
2656
2656
|
);
|
|
2657
2657
|
}
|
|
2658
2658
|
}
|
|
2659
|
-
class
|
|
2659
|
+
class ca extends R {
|
|
2660
2660
|
constructor() {
|
|
2661
2661
|
super(...arguments);
|
|
2662
2662
|
h(this, "priority", 10);
|
|
2663
2663
|
h(this, "incompatibleTokens", ["t", "T", "X"]);
|
|
2664
2664
|
}
|
|
2665
|
-
parse(t,
|
|
2666
|
-
switch (
|
|
2665
|
+
parse(t, r) {
|
|
2666
|
+
switch (r) {
|
|
2667
2667
|
case "x":
|
|
2668
2668
|
return ne(
|
|
2669
2669
|
te.basicOptionalMinutes,
|
|
@@ -2686,14 +2686,14 @@ class cr extends R {
|
|
|
2686
2686
|
return ne(te.extended, t);
|
|
2687
2687
|
}
|
|
2688
2688
|
}
|
|
2689
|
-
set(t,
|
|
2690
|
-
return
|
|
2689
|
+
set(t, r, a) {
|
|
2690
|
+
return r.timestampIsSet ? t : Y(
|
|
2691
2691
|
t,
|
|
2692
|
-
t.getTime() - Ye(t) -
|
|
2692
|
+
t.getTime() - Ye(t) - a
|
|
2693
2693
|
);
|
|
2694
2694
|
}
|
|
2695
2695
|
}
|
|
2696
|
-
class
|
|
2696
|
+
class da extends R {
|
|
2697
2697
|
constructor() {
|
|
2698
2698
|
super(...arguments);
|
|
2699
2699
|
h(this, "priority", 40);
|
|
@@ -2702,11 +2702,11 @@ class dr extends R {
|
|
|
2702
2702
|
parse(t) {
|
|
2703
2703
|
return dn(t);
|
|
2704
2704
|
}
|
|
2705
|
-
set(t,
|
|
2706
|
-
return [Y(t,
|
|
2705
|
+
set(t, r, a) {
|
|
2706
|
+
return [Y(t, a * 1e3), { timestampIsSet: !0 }];
|
|
2707
2707
|
}
|
|
2708
2708
|
}
|
|
2709
|
-
class
|
|
2709
|
+
class ma extends R {
|
|
2710
2710
|
constructor() {
|
|
2711
2711
|
super(...arguments);
|
|
2712
2712
|
h(this, "priority", 20);
|
|
@@ -2715,60 +2715,60 @@ class mr extends R {
|
|
|
2715
2715
|
parse(t) {
|
|
2716
2716
|
return dn(t);
|
|
2717
2717
|
}
|
|
2718
|
-
set(t,
|
|
2719
|
-
return [Y(t,
|
|
2720
|
-
}
|
|
2721
|
-
}
|
|
2722
|
-
const
|
|
2723
|
-
G: new
|
|
2724
|
-
y: new
|
|
2725
|
-
Y: new
|
|
2726
|
-
R: new
|
|
2727
|
-
u: new
|
|
2728
|
-
Q: new
|
|
2729
|
-
q: new
|
|
2730
|
-
M: new
|
|
2731
|
-
L: new
|
|
2732
|
-
w: new
|
|
2733
|
-
I: new
|
|
2734
|
-
d: new $
|
|
2735
|
-
D: new
|
|
2736
|
-
E: new
|
|
2737
|
-
e: new
|
|
2738
|
-
c: new
|
|
2739
|
-
i: new
|
|
2740
|
-
a: new
|
|
2741
|
-
b: new
|
|
2742
|
-
B: new
|
|
2743
|
-
h: new
|
|
2744
|
-
H: new
|
|
2745
|
-
K: new
|
|
2746
|
-
k: new
|
|
2747
|
-
m: new
|
|
2748
|
-
s: new
|
|
2749
|
-
S: new
|
|
2750
|
-
X: new
|
|
2751
|
-
x: new
|
|
2752
|
-
t: new
|
|
2753
|
-
T: new
|
|
2754
|
-
},
|
|
2755
|
-
function
|
|
2718
|
+
set(t, r, a) {
|
|
2719
|
+
return [Y(t, a), { timestampIsSet: !0 }];
|
|
2720
|
+
}
|
|
2721
|
+
}
|
|
2722
|
+
const fa = {
|
|
2723
|
+
G: new Ir(),
|
|
2724
|
+
y: new Cr(),
|
|
2725
|
+
Y: new jr(),
|
|
2726
|
+
R: new Nr(),
|
|
2727
|
+
u: new Lr(),
|
|
2728
|
+
Q: new Fr(),
|
|
2729
|
+
q: new zr(),
|
|
2730
|
+
M: new Gr(),
|
|
2731
|
+
L: new Wr(),
|
|
2732
|
+
w: new qr(),
|
|
2733
|
+
I: new Hr(),
|
|
2734
|
+
d: new $r(),
|
|
2735
|
+
D: new Vr(),
|
|
2736
|
+
E: new Ar(),
|
|
2737
|
+
e: new Qr(),
|
|
2738
|
+
c: new Xr(),
|
|
2739
|
+
i: new Jr(),
|
|
2740
|
+
a: new Kr(),
|
|
2741
|
+
b: new ea(),
|
|
2742
|
+
B: new ta(),
|
|
2743
|
+
h: new na(),
|
|
2744
|
+
H: new ra(),
|
|
2745
|
+
K: new aa(),
|
|
2746
|
+
k: new sa(),
|
|
2747
|
+
m: new oa(),
|
|
2748
|
+
s: new ia(),
|
|
2749
|
+
S: new ua(),
|
|
2750
|
+
X: new la(),
|
|
2751
|
+
x: new ca(),
|
|
2752
|
+
t: new da(),
|
|
2753
|
+
T: new ma()
|
|
2754
|
+
}, ga = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, pa = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ba = /^'([^]*?)'?$/, ya = /''/g, ha = /\S/, _a = /[a-zA-Z]/;
|
|
2755
|
+
function Ta(e, n, t, r) {
|
|
2756
2756
|
var H, B, w, I;
|
|
2757
|
-
const
|
|
2757
|
+
const a = () => Y(t, NaN), s = ln(), o = s.locale ?? nn, d = s.firstWeekContainsDate ?? ((B = (H = s.locale) == null ? void 0 : H.options) == null ? void 0 : B.firstWeekContainsDate) ?? 1, g = s.weekStartsOn ?? ((I = (w = s.locale) == null ? void 0 : w.options) == null ? void 0 : I.weekStartsOn) ?? 0, f = {
|
|
2758
2758
|
firstWeekContainsDate: d,
|
|
2759
2759
|
weekStartsOn: g,
|
|
2760
2760
|
locale: o
|
|
2761
|
-
}, b = [new
|
|
2761
|
+
}, b = [new Sr(r == null ? void 0 : r.in, t)], D = n.match(pa).map((T) => {
|
|
2762
2762
|
const k = T[0];
|
|
2763
2763
|
if (k in ct) {
|
|
2764
2764
|
const q = ct[k];
|
|
2765
2765
|
return q(T, o.formatLong);
|
|
2766
2766
|
}
|
|
2767
2767
|
return T;
|
|
2768
|
-
}).join("").match(
|
|
2768
|
+
}).join("").match(ga), _ = [];
|
|
2769
2769
|
for (let T of D) {
|
|
2770
2770
|
un(T) && dt(T, n, e), on(T) && dt(T, n, e);
|
|
2771
|
-
const k = T[0], q =
|
|
2771
|
+
const k = T[0], q = fa[k];
|
|
2772
2772
|
if (q) {
|
|
2773
2773
|
const { incompatibleTokens: le } = q;
|
|
2774
2774
|
if (Array.isArray(le)) {
|
|
@@ -2791,63 +2791,63 @@ function Tr(e, n, t, a) {
|
|
|
2791
2791
|
f
|
|
2792
2792
|
);
|
|
2793
2793
|
if (!se)
|
|
2794
|
-
return
|
|
2794
|
+
return a();
|
|
2795
2795
|
b.push(se.setter), e = se.rest;
|
|
2796
2796
|
} else {
|
|
2797
|
-
if (k.match(
|
|
2797
|
+
if (k.match(_a))
|
|
2798
2798
|
throw new RangeError(
|
|
2799
2799
|
"Format string contains an unescaped latin alphabet character `" + k + "`"
|
|
2800
2800
|
);
|
|
2801
|
-
if (T === "''" ? T = "'" : k === "'" && (T =
|
|
2801
|
+
if (T === "''" ? T = "'" : k === "'" && (T = va(T)), e.indexOf(T) === 0)
|
|
2802
2802
|
e = e.slice(T.length);
|
|
2803
2803
|
else
|
|
2804
|
-
return
|
|
2804
|
+
return a();
|
|
2805
2805
|
}
|
|
2806
2806
|
}
|
|
2807
|
-
if (e.length > 0 &&
|
|
2808
|
-
return
|
|
2807
|
+
if (e.length > 0 && ha.test(e))
|
|
2808
|
+
return a();
|
|
2809
2809
|
const p = b.map((T) => T.priority).sort((T, k) => k - T).filter((T, k, q) => q.indexOf(T) === k).map(
|
|
2810
2810
|
(T) => b.filter((k) => k.priority === T).sort((k, q) => q.subPriority - k.subPriority)
|
|
2811
2811
|
).map((T) => T[0]);
|
|
2812
|
-
let M = W(t,
|
|
2813
|
-
if (isNaN(+M)) return
|
|
2812
|
+
let M = W(t, r == null ? void 0 : r.in);
|
|
2813
|
+
if (isNaN(+M)) return a();
|
|
2814
2814
|
const O = {};
|
|
2815
2815
|
for (const T of p) {
|
|
2816
2816
|
if (!T.validate(M, f))
|
|
2817
|
-
return
|
|
2817
|
+
return a();
|
|
2818
2818
|
const k = T.set(M, O, f);
|
|
2819
2819
|
Array.isArray(k) ? (M = k[0], Object.assign(O, k[1])) : M = k;
|
|
2820
2820
|
}
|
|
2821
2821
|
return M;
|
|
2822
2822
|
}
|
|
2823
|
-
function
|
|
2824
|
-
return e.match(
|
|
2823
|
+
function va(e) {
|
|
2824
|
+
return e.match(ba)[1].replace(ya, "'");
|
|
2825
2825
|
}
|
|
2826
2826
|
function It(e, n, t) {
|
|
2827
|
-
const
|
|
2828
|
-
return "formatToParts" in
|
|
2827
|
+
const r = ln(), a = Pa(e, t.timeZone, t.locale ?? r.locale);
|
|
2828
|
+
return "formatToParts" in a ? wa(a, n) : Da(a, n);
|
|
2829
2829
|
}
|
|
2830
|
-
function
|
|
2830
|
+
function wa(e, n) {
|
|
2831
2831
|
const t = e.formatToParts(n);
|
|
2832
|
-
for (let
|
|
2833
|
-
if (t[
|
|
2834
|
-
return t[
|
|
2832
|
+
for (let r = t.length - 1; r >= 0; --r)
|
|
2833
|
+
if (t[r].type === "timeZoneName")
|
|
2834
|
+
return t[r].value;
|
|
2835
2835
|
}
|
|
2836
|
-
function
|
|
2837
|
-
const t = e.format(n).replace(/\u200E/g, ""),
|
|
2838
|
-
return
|
|
2836
|
+
function Da(e, n) {
|
|
2837
|
+
const t = e.format(n).replace(/\u200E/g, ""), r = / [\w-+ ]+$/.exec(t);
|
|
2838
|
+
return r ? r[0].substr(1) : "";
|
|
2839
2839
|
}
|
|
2840
|
-
function
|
|
2840
|
+
function Pa(e, n, t) {
|
|
2841
2841
|
return new Intl.DateTimeFormat(t ? [t.code, "en-US"] : void 0, {
|
|
2842
2842
|
timeZone: n,
|
|
2843
2843
|
timeZoneName: e
|
|
2844
2844
|
});
|
|
2845
2845
|
}
|
|
2846
|
-
function
|
|
2847
|
-
const t =
|
|
2848
|
-
return "formatToParts" in t ?
|
|
2846
|
+
function xa(e, n) {
|
|
2847
|
+
const t = Sa(n);
|
|
2848
|
+
return "formatToParts" in t ? Oa(t, e) : Ma(t, e);
|
|
2849
2849
|
}
|
|
2850
|
-
const
|
|
2850
|
+
const Ra = {
|
|
2851
2851
|
year: 0,
|
|
2852
2852
|
month: 1,
|
|
2853
2853
|
day: 2,
|
|
@@ -2855,29 +2855,29 @@ const Rr = {
|
|
|
2855
2855
|
minute: 4,
|
|
2856
2856
|
second: 5
|
|
2857
2857
|
};
|
|
2858
|
-
function
|
|
2858
|
+
function Oa(e, n) {
|
|
2859
2859
|
try {
|
|
2860
|
-
const t = e.formatToParts(n),
|
|
2861
|
-
for (let
|
|
2862
|
-
const s =
|
|
2863
|
-
s !== void 0 && (
|
|
2860
|
+
const t = e.formatToParts(n), r = [];
|
|
2861
|
+
for (let a = 0; a < t.length; a++) {
|
|
2862
|
+
const s = Ra[t[a].type];
|
|
2863
|
+
s !== void 0 && (r[s] = parseInt(t[a].value, 10));
|
|
2864
2864
|
}
|
|
2865
|
-
return
|
|
2865
|
+
return r;
|
|
2866
2866
|
} catch (t) {
|
|
2867
2867
|
if (t instanceof RangeError)
|
|
2868
2868
|
return [NaN];
|
|
2869
2869
|
throw t;
|
|
2870
2870
|
}
|
|
2871
2871
|
}
|
|
2872
|
-
function
|
|
2873
|
-
const t = e.format(n),
|
|
2872
|
+
function Ma(e, n) {
|
|
2873
|
+
const t = e.format(n), r = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(t);
|
|
2874
2874
|
return [
|
|
2875
|
-
parseInt(
|
|
2876
|
-
parseInt(
|
|
2877
|
-
parseInt(
|
|
2878
|
-
parseInt(
|
|
2879
|
-
parseInt(
|
|
2880
|
-
parseInt(
|
|
2875
|
+
parseInt(r[3], 10),
|
|
2876
|
+
parseInt(r[1], 10),
|
|
2877
|
+
parseInt(r[2], 10),
|
|
2878
|
+
parseInt(r[4], 10),
|
|
2879
|
+
parseInt(r[5], 10),
|
|
2880
|
+
parseInt(r[6], 10)
|
|
2881
2881
|
];
|
|
2882
2882
|
}
|
|
2883
2883
|
const nt = {}, Ct = new Intl.DateTimeFormat("en-US", {
|
|
@@ -2889,9 +2889,9 @@ const nt = {}, Ct = new Intl.DateTimeFormat("en-US", {
|
|
|
2889
2889
|
hour: "2-digit",
|
|
2890
2890
|
minute: "2-digit",
|
|
2891
2891
|
second: "2-digit"
|
|
2892
|
-
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")),
|
|
2893
|
-
function
|
|
2894
|
-
return nt[e] || (nt[e] =
|
|
2892
|
+
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), ka = Ct === "06/25/2014, 00:00:00" || Ct === "06/25/2014 00:00:00";
|
|
2893
|
+
function Sa(e) {
|
|
2894
|
+
return nt[e] || (nt[e] = ka ? new Intl.DateTimeFormat("en-US", {
|
|
2895
2895
|
hourCycle: "h23",
|
|
2896
2896
|
timeZone: e,
|
|
2897
2897
|
year: "numeric",
|
|
@@ -2911,11 +2911,11 @@ function Sr(e) {
|
|
|
2911
2911
|
second: "2-digit"
|
|
2912
2912
|
})), nt[e];
|
|
2913
2913
|
}
|
|
2914
|
-
function yt(e, n, t,
|
|
2914
|
+
function yt(e, n, t, r, a, s, o) {
|
|
2915
2915
|
const d = /* @__PURE__ */ new Date(0);
|
|
2916
|
-
return d.setUTCFullYear(e, n, t), d.setUTCHours(
|
|
2916
|
+
return d.setUTCFullYear(e, n, t), d.setUTCHours(r, a, s, o), d;
|
|
2917
2917
|
}
|
|
2918
|
-
const jt = 36e5,
|
|
2918
|
+
const jt = 36e5, Ia = 6e4, rt = {
|
|
2919
2919
|
timezone: /([Z+-].*)$/,
|
|
2920
2920
|
timezoneZ: /^(Z)$/,
|
|
2921
2921
|
timezoneHH: /^([+-]\d{2})$/,
|
|
@@ -2924,47 +2924,47 @@ const jt = 36e5, Ir = 6e4, at = {
|
|
|
2924
2924
|
function $e(e, n, t) {
|
|
2925
2925
|
if (!e)
|
|
2926
2926
|
return 0;
|
|
2927
|
-
let
|
|
2928
|
-
if (
|
|
2927
|
+
let r = rt.timezoneZ.exec(e);
|
|
2928
|
+
if (r)
|
|
2929
2929
|
return 0;
|
|
2930
|
-
let
|
|
2931
|
-
if (
|
|
2932
|
-
return
|
|
2933
|
-
if (
|
|
2934
|
-
|
|
2935
|
-
const o = parseInt(
|
|
2936
|
-
return Nt(
|
|
2937
|
-
}
|
|
2938
|
-
if (
|
|
2930
|
+
let a, s;
|
|
2931
|
+
if (r = rt.timezoneHH.exec(e), r)
|
|
2932
|
+
return a = parseInt(r[1], 10), Nt(a) ? -(a * jt) : NaN;
|
|
2933
|
+
if (r = rt.timezoneHHMM.exec(e), r) {
|
|
2934
|
+
a = parseInt(r[2], 10);
|
|
2935
|
+
const o = parseInt(r[3], 10);
|
|
2936
|
+
return Nt(a, o) ? (s = Math.abs(a) * jt + o * Ia, r[1] === "+" ? -s : s) : NaN;
|
|
2937
|
+
}
|
|
2938
|
+
if (Na(e)) {
|
|
2939
2939
|
n = new Date(n || Date.now());
|
|
2940
|
-
const o = t ? n :
|
|
2941
|
-
return -(t ? d :
|
|
2940
|
+
const o = t ? n : Ca(n), d = mt(o, e);
|
|
2941
|
+
return -(t ? d : ja(n, d, e));
|
|
2942
2942
|
}
|
|
2943
2943
|
return NaN;
|
|
2944
2944
|
}
|
|
2945
|
-
function
|
|
2945
|
+
function Ca(e) {
|
|
2946
2946
|
return yt(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
|
|
2947
2947
|
}
|
|
2948
2948
|
function mt(e, n) {
|
|
2949
|
-
const t =
|
|
2950
|
-
let
|
|
2951
|
-
const s =
|
|
2952
|
-
return
|
|
2953
|
-
}
|
|
2954
|
-
function
|
|
2955
|
-
let
|
|
2956
|
-
const s = mt(new Date(
|
|
2949
|
+
const t = xa(e, n), r = yt(t[0], t[1] - 1, t[2], t[3] % 24, t[4], t[5], 0).getTime();
|
|
2950
|
+
let a = e.getTime();
|
|
2951
|
+
const s = a % 1e3;
|
|
2952
|
+
return a -= s >= 0 ? s : 1e3 + s, r - a;
|
|
2953
|
+
}
|
|
2954
|
+
function ja(e, n, t) {
|
|
2955
|
+
let a = e.getTime() - n;
|
|
2956
|
+
const s = mt(new Date(a), t);
|
|
2957
2957
|
if (n === s)
|
|
2958
2958
|
return n;
|
|
2959
|
-
|
|
2960
|
-
const o = mt(new Date(
|
|
2959
|
+
a -= s - n;
|
|
2960
|
+
const o = mt(new Date(a), t);
|
|
2961
2961
|
return s === o ? s : Math.max(s, o);
|
|
2962
2962
|
}
|
|
2963
2963
|
function Nt(e, n) {
|
|
2964
2964
|
return -23 <= e && e <= 23 && (n == null || 0 <= n && n <= 59);
|
|
2965
2965
|
}
|
|
2966
2966
|
const Lt = {};
|
|
2967
|
-
function
|
|
2967
|
+
function Na(e) {
|
|
2968
2968
|
if (Lt[e])
|
|
2969
2969
|
return !0;
|
|
2970
2970
|
try {
|
|
@@ -2973,50 +2973,50 @@ function Nr(e) {
|
|
|
2973
2973
|
return !1;
|
|
2974
2974
|
}
|
|
2975
2975
|
}
|
|
2976
|
-
const
|
|
2976
|
+
const La = 60 * 1e3, Fa = {
|
|
2977
2977
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
2978
2978
|
X: function(e, n, t) {
|
|
2979
|
-
const
|
|
2980
|
-
if (
|
|
2979
|
+
const r = at(t.timeZone, e);
|
|
2980
|
+
if (r === 0)
|
|
2981
2981
|
return "Z";
|
|
2982
2982
|
switch (n) {
|
|
2983
2983
|
case "X":
|
|
2984
|
-
return Ft(
|
|
2984
|
+
return Ft(r);
|
|
2985
2985
|
case "XXXX":
|
|
2986
2986
|
case "XX":
|
|
2987
|
-
return xe(
|
|
2987
|
+
return xe(r);
|
|
2988
2988
|
case "XXXXX":
|
|
2989
2989
|
case "XXX":
|
|
2990
2990
|
default:
|
|
2991
|
-
return xe(
|
|
2991
|
+
return xe(r, ":");
|
|
2992
2992
|
}
|
|
2993
2993
|
},
|
|
2994
2994
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
2995
2995
|
x: function(e, n, t) {
|
|
2996
|
-
const
|
|
2996
|
+
const r = at(t.timeZone, e);
|
|
2997
2997
|
switch (n) {
|
|
2998
2998
|
case "x":
|
|
2999
|
-
return Ft(
|
|
2999
|
+
return Ft(r);
|
|
3000
3000
|
case "xxxx":
|
|
3001
3001
|
case "xx":
|
|
3002
|
-
return xe(
|
|
3002
|
+
return xe(r);
|
|
3003
3003
|
case "xxxxx":
|
|
3004
3004
|
case "xxx":
|
|
3005
3005
|
default:
|
|
3006
|
-
return xe(
|
|
3006
|
+
return xe(r, ":");
|
|
3007
3007
|
}
|
|
3008
3008
|
},
|
|
3009
3009
|
// Timezone (GMT)
|
|
3010
3010
|
O: function(e, n, t) {
|
|
3011
|
-
const
|
|
3011
|
+
const r = at(t.timeZone, e);
|
|
3012
3012
|
switch (n) {
|
|
3013
3013
|
case "O":
|
|
3014
3014
|
case "OO":
|
|
3015
3015
|
case "OOO":
|
|
3016
|
-
return "GMT" +
|
|
3016
|
+
return "GMT" + za(r, ":");
|
|
3017
3017
|
case "OOOO":
|
|
3018
3018
|
default:
|
|
3019
|
-
return "GMT" + xe(
|
|
3019
|
+
return "GMT" + xe(r, ":");
|
|
3020
3020
|
}
|
|
3021
3021
|
},
|
|
3022
3022
|
// Timezone (specific non-location)
|
|
@@ -3032,35 +3032,35 @@ const Lr = 60 * 1e3, Fr = {
|
|
|
3032
3032
|
}
|
|
3033
3033
|
}
|
|
3034
3034
|
};
|
|
3035
|
-
function
|
|
3036
|
-
const t = e ? $e(e, n, !0) /
|
|
3035
|
+
function at(e, n) {
|
|
3036
|
+
const t = e ? $e(e, n, !0) / La : (n == null ? void 0 : n.getTimezoneOffset()) ?? 0;
|
|
3037
3037
|
if (Number.isNaN(t))
|
|
3038
3038
|
throw new RangeError("Invalid time zone specified: " + e);
|
|
3039
3039
|
return t;
|
|
3040
3040
|
}
|
|
3041
3041
|
function Ee(e, n) {
|
|
3042
3042
|
const t = e < 0 ? "-" : "";
|
|
3043
|
-
let
|
|
3044
|
-
for (;
|
|
3045
|
-
|
|
3046
|
-
return t +
|
|
3043
|
+
let r = Math.abs(e).toString();
|
|
3044
|
+
for (; r.length < n; )
|
|
3045
|
+
r = "0" + r;
|
|
3046
|
+
return t + r;
|
|
3047
3047
|
}
|
|
3048
3048
|
function xe(e, n = "") {
|
|
3049
|
-
const t = e > 0 ? "-" : "+",
|
|
3050
|
-
return t +
|
|
3049
|
+
const t = e > 0 ? "-" : "+", r = Math.abs(e), a = Ee(Math.floor(r / 60), 2), s = Ee(Math.floor(r % 60), 2);
|
|
3050
|
+
return t + a + n + s;
|
|
3051
3051
|
}
|
|
3052
3052
|
function Ft(e, n) {
|
|
3053
3053
|
return e % 60 === 0 ? (e > 0 ? "-" : "+") + Ee(Math.abs(e) / 60, 2) : xe(e, n);
|
|
3054
3054
|
}
|
|
3055
|
-
function
|
|
3056
|
-
const t = e > 0 ? "-" : "+",
|
|
3057
|
-
return s === 0 ? t + String(
|
|
3055
|
+
function za(e, n = "") {
|
|
3056
|
+
const t = e > 0 ? "-" : "+", r = Math.abs(e), a = Math.floor(r / 60), s = r % 60;
|
|
3057
|
+
return s === 0 ? t + String(a) : t + String(a) + n + Ee(s, 2);
|
|
3058
3058
|
}
|
|
3059
3059
|
function zt(e) {
|
|
3060
3060
|
const n = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
|
|
3061
3061
|
return n.setUTCFullYear(e.getFullYear()), +e - +n;
|
|
3062
3062
|
}
|
|
3063
|
-
const gn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, st = 36e5, Gt = 6e4,
|
|
3063
|
+
const gn = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, st = 36e5, Gt = 6e4, Ga = 2, E = {
|
|
3064
3064
|
dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
|
|
3065
3065
|
datePattern: /^([0-9W+-]+)(.*)/,
|
|
3066
3066
|
plainTime: /:/,
|
|
@@ -3100,7 +3100,7 @@ function He(e, n = {}) {
|
|
|
3100
3100
|
throw new TypeError("1 argument required, but only " + arguments.length + " present");
|
|
3101
3101
|
if (e === null)
|
|
3102
3102
|
return /* @__PURE__ */ new Date(NaN);
|
|
3103
|
-
const t = n.additionalDigits == null ?
|
|
3103
|
+
const t = n.additionalDigits == null ? Ga : Number(n.additionalDigits);
|
|
3104
3104
|
if (t !== 2 && t !== 1 && t !== 0)
|
|
3105
3105
|
throw new RangeError("additionalDigits must be 0, 1 or 2");
|
|
3106
3106
|
if (e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]")
|
|
@@ -3109,16 +3109,16 @@ function He(e, n = {}) {
|
|
|
3109
3109
|
return new Date(e);
|
|
3110
3110
|
if (Object.prototype.toString.call(e) !== "[object String]")
|
|
3111
3111
|
return /* @__PURE__ */ new Date(NaN);
|
|
3112
|
-
const
|
|
3112
|
+
const r = Wa(e), { year: a, restDateString: s } = Ya(r.date, t), o = qa(s, a);
|
|
3113
3113
|
if (o === null || isNaN(o.getTime()))
|
|
3114
3114
|
return /* @__PURE__ */ new Date(NaN);
|
|
3115
3115
|
if (o) {
|
|
3116
3116
|
const d = o.getTime();
|
|
3117
3117
|
let g = 0, f;
|
|
3118
|
-
if (
|
|
3118
|
+
if (r.time && (g = Ea(r.time), g === null || isNaN(g)))
|
|
3119
3119
|
return /* @__PURE__ */ new Date(NaN);
|
|
3120
|
-
if (
|
|
3121
|
-
if (f = $e(
|
|
3120
|
+
if (r.timeZone || n.timeZone) {
|
|
3121
|
+
if (f = $e(r.timeZone || n.timeZone, new Date(d + g)), isNaN(f))
|
|
3122
3122
|
return /* @__PURE__ */ new Date(NaN);
|
|
3123
3123
|
} else
|
|
3124
3124
|
f = zt(new Date(d + g)), f = zt(new Date(d + g + f));
|
|
@@ -3126,28 +3126,28 @@ function He(e, n = {}) {
|
|
|
3126
3126
|
} else
|
|
3127
3127
|
return /* @__PURE__ */ new Date(NaN);
|
|
3128
3128
|
}
|
|
3129
|
-
function
|
|
3129
|
+
function Wa(e) {
|
|
3130
3130
|
const n = {};
|
|
3131
|
-
let t = E.dateTimePattern.exec(e),
|
|
3132
|
-
if (t ? (n.date = t[1],
|
|
3133
|
-
const
|
|
3134
|
-
|
|
3131
|
+
let t = E.dateTimePattern.exec(e), r;
|
|
3132
|
+
if (t ? (n.date = t[1], r = t[3]) : (t = E.datePattern.exec(e), t ? (n.date = t[1], r = t[2]) : (n.date = null, r = e)), r) {
|
|
3133
|
+
const a = E.timeZone.exec(r);
|
|
3134
|
+
a ? (n.time = r.replace(a[1], ""), n.timeZone = a[1].trim()) : n.time = r;
|
|
3135
3135
|
}
|
|
3136
3136
|
return n;
|
|
3137
3137
|
}
|
|
3138
|
-
function
|
|
3138
|
+
function Ya(e, n) {
|
|
3139
3139
|
if (e) {
|
|
3140
|
-
const t = E.YYY[n],
|
|
3141
|
-
let
|
|
3142
|
-
if (
|
|
3143
|
-
const s =
|
|
3140
|
+
const t = E.YYY[n], r = E.YYYYY[n];
|
|
3141
|
+
let a = E.YYYY.exec(e) || r.exec(e);
|
|
3142
|
+
if (a) {
|
|
3143
|
+
const s = a[1];
|
|
3144
3144
|
return {
|
|
3145
3145
|
year: parseInt(s, 10),
|
|
3146
3146
|
restDateString: e.slice(s.length)
|
|
3147
3147
|
};
|
|
3148
3148
|
}
|
|
3149
|
-
if (
|
|
3150
|
-
const s =
|
|
3149
|
+
if (a = E.YY.exec(e) || t.exec(e), a) {
|
|
3150
|
+
const s = a[1];
|
|
3151
3151
|
return {
|
|
3152
3152
|
year: parseInt(s, 10) * 100,
|
|
3153
3153
|
restDateString: e.slice(s.length)
|
|
@@ -3158,55 +3158,55 @@ function Yr(e, n) {
|
|
|
3158
3158
|
year: null
|
|
3159
3159
|
};
|
|
3160
3160
|
}
|
|
3161
|
-
function
|
|
3161
|
+
function qa(e, n) {
|
|
3162
3162
|
if (n === null)
|
|
3163
3163
|
return null;
|
|
3164
|
-
let t,
|
|
3164
|
+
let t, r, a;
|
|
3165
3165
|
if (!e || !e.length)
|
|
3166
3166
|
return t = /* @__PURE__ */ new Date(0), t.setUTCFullYear(n), t;
|
|
3167
3167
|
let s = E.MM.exec(e);
|
|
3168
3168
|
if (s)
|
|
3169
|
-
return t = /* @__PURE__ */ new Date(0),
|
|
3169
|
+
return t = /* @__PURE__ */ new Date(0), r = parseInt(s[1], 10) - 1, Yt(n, r) ? (t.setUTCFullYear(n, r), t) : /* @__PURE__ */ new Date(NaN);
|
|
3170
3170
|
if (s = E.DDD.exec(e), s) {
|
|
3171
3171
|
t = /* @__PURE__ */ new Date(0);
|
|
3172
3172
|
const o = parseInt(s[1], 10);
|
|
3173
|
-
return
|
|
3173
|
+
return Ua(n, o) ? (t.setUTCFullYear(n, 0, o), t) : /* @__PURE__ */ new Date(NaN);
|
|
3174
3174
|
}
|
|
3175
3175
|
if (s = E.MMDD.exec(e), s) {
|
|
3176
|
-
t = /* @__PURE__ */ new Date(0),
|
|
3176
|
+
t = /* @__PURE__ */ new Date(0), r = parseInt(s[1], 10) - 1;
|
|
3177
3177
|
const o = parseInt(s[2], 10);
|
|
3178
|
-
return Yt(n,
|
|
3178
|
+
return Yt(n, r, o) ? (t.setUTCFullYear(n, r, o), t) : /* @__PURE__ */ new Date(NaN);
|
|
3179
3179
|
}
|
|
3180
3180
|
if (s = E.Www.exec(e), s)
|
|
3181
|
-
return
|
|
3181
|
+
return a = parseInt(s[1], 10) - 1, qt(a) ? Wt(n, a) : /* @__PURE__ */ new Date(NaN);
|
|
3182
3182
|
if (s = E.WwwD.exec(e), s) {
|
|
3183
|
-
|
|
3183
|
+
a = parseInt(s[1], 10) - 1;
|
|
3184
3184
|
const o = parseInt(s[2], 10) - 1;
|
|
3185
|
-
return qt(
|
|
3185
|
+
return qt(a, o) ? Wt(n, a, o) : /* @__PURE__ */ new Date(NaN);
|
|
3186
3186
|
}
|
|
3187
3187
|
return null;
|
|
3188
3188
|
}
|
|
3189
|
-
function
|
|
3190
|
-
let n, t,
|
|
3191
|
-
if (
|
|
3192
|
-
return n = parseFloat(
|
|
3193
|
-
if (
|
|
3194
|
-
return n = parseInt(
|
|
3195
|
-
if (
|
|
3196
|
-
n = parseInt(
|
|
3197
|
-
const
|
|
3198
|
-
return ot(n, t,
|
|
3189
|
+
function Ea(e) {
|
|
3190
|
+
let n, t, r = E.HH.exec(e);
|
|
3191
|
+
if (r)
|
|
3192
|
+
return n = parseFloat(r[1].replace(",", ".")), ot(n) ? n % 24 * st : NaN;
|
|
3193
|
+
if (r = E.HHMM.exec(e), r)
|
|
3194
|
+
return n = parseInt(r[1], 10), t = parseFloat(r[2].replace(",", ".")), ot(n, t) ? n % 24 * st + t * Gt : NaN;
|
|
3195
|
+
if (r = E.HHMMSS.exec(e), r) {
|
|
3196
|
+
n = parseInt(r[1], 10), t = parseInt(r[2], 10);
|
|
3197
|
+
const a = parseFloat(r[3].replace(",", "."));
|
|
3198
|
+
return ot(n, t, a) ? n % 24 * st + t * Gt + a * 1e3 : NaN;
|
|
3199
3199
|
}
|
|
3200
3200
|
return null;
|
|
3201
3201
|
}
|
|
3202
3202
|
function Wt(e, n, t) {
|
|
3203
3203
|
n = n || 0, t = t || 0;
|
|
3204
|
-
const
|
|
3205
|
-
|
|
3206
|
-
const
|
|
3207
|
-
return
|
|
3204
|
+
const r = /* @__PURE__ */ new Date(0);
|
|
3205
|
+
r.setUTCFullYear(e, 0, 4);
|
|
3206
|
+
const a = r.getUTCDay() || 7, s = n * 7 + t + 1 - a;
|
|
3207
|
+
return r.setUTCDate(r.getUTCDate() + s), r;
|
|
3208
3208
|
}
|
|
3209
|
-
const
|
|
3209
|
+
const Ha = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Ba = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
3210
3210
|
function pn(e) {
|
|
3211
3211
|
return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
|
|
3212
3212
|
}
|
|
@@ -3216,13 +3216,13 @@ function Yt(e, n, t) {
|
|
|
3216
3216
|
if (t != null) {
|
|
3217
3217
|
if (t < 1)
|
|
3218
3218
|
return !1;
|
|
3219
|
-
const
|
|
3220
|
-
if (
|
|
3219
|
+
const r = pn(e);
|
|
3220
|
+
if (r && t > Ba[n] || !r && t > Ha[n])
|
|
3221
3221
|
return !1;
|
|
3222
3222
|
}
|
|
3223
3223
|
return !0;
|
|
3224
3224
|
}
|
|
3225
|
-
function
|
|
3225
|
+
function Ua(e, n) {
|
|
3226
3226
|
if (n < 1)
|
|
3227
3227
|
return !1;
|
|
3228
3228
|
const t = pn(e);
|
|
@@ -3234,34 +3234,34 @@ function qt(e, n) {
|
|
|
3234
3234
|
function ot(e, n, t) {
|
|
3235
3235
|
return !(e < 0 || e >= 25 || n != null && (n < 0 || n >= 60) || t != null && (t < 0 || t >= 60));
|
|
3236
3236
|
}
|
|
3237
|
-
const $
|
|
3238
|
-
function
|
|
3237
|
+
const $a = /([xXOz]+)|''|'(''|[^'])+('|$)/g;
|
|
3238
|
+
function Va(e, n, t = {}) {
|
|
3239
3239
|
n = String(n);
|
|
3240
|
-
const
|
|
3241
|
-
if (
|
|
3242
|
-
const
|
|
3243
|
-
n =
|
|
3240
|
+
const r = n.match($a);
|
|
3241
|
+
if (r) {
|
|
3242
|
+
const a = He(t.originalDate || e, t);
|
|
3243
|
+
n = r.reduce(function(s, o) {
|
|
3244
3244
|
if (o[0] === "'")
|
|
3245
3245
|
return s;
|
|
3246
|
-
const d = s.indexOf(o), g = s[d - 1] === "'", f = s.replace(o, "'" +
|
|
3246
|
+
const d = s.indexOf(o), g = s[d - 1] === "'", f = s.replace(o, "'" + Fa[o[0]](a, o, t) + "'");
|
|
3247
3247
|
return g ? f.substring(0, d - 1) + f.substring(d + 1) : f;
|
|
3248
3248
|
}, n);
|
|
3249
3249
|
}
|
|
3250
|
-
return
|
|
3250
|
+
return Dr(e, n, t);
|
|
3251
3251
|
}
|
|
3252
|
-
function
|
|
3252
|
+
function Aa(e, n, t) {
|
|
3253
3253
|
e = He(e, t);
|
|
3254
|
-
const
|
|
3255
|
-
return s.setFullYear(
|
|
3254
|
+
const r = $e(n, e, !0), a = new Date(e.getTime() - r), s = /* @__PURE__ */ new Date(0);
|
|
3255
|
+
return s.setFullYear(a.getUTCFullYear(), a.getUTCMonth(), a.getUTCDate()), s.setHours(a.getUTCHours(), a.getUTCMinutes(), a.getUTCSeconds(), a.getUTCMilliseconds()), s;
|
|
3256
3256
|
}
|
|
3257
|
-
function
|
|
3257
|
+
function Qa(e, n, t) {
|
|
3258
3258
|
if (typeof e == "string" && !e.match(gn))
|
|
3259
3259
|
return He(e, { ...t, timeZone: n });
|
|
3260
3260
|
e = He(e, t);
|
|
3261
|
-
const
|
|
3262
|
-
return new Date(
|
|
3261
|
+
const r = yt(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), a = $e(n, new Date(r));
|
|
3262
|
+
return new Date(r + a);
|
|
3263
3263
|
}
|
|
3264
|
-
const
|
|
3264
|
+
const Xa = (e) => new TextEncoder().encode(e), Za = (e) => {
|
|
3265
3265
|
try {
|
|
3266
3266
|
return atob(e);
|
|
3267
3267
|
} catch (n) {
|
|
@@ -3271,22 +3271,22 @@ const Xr = (e) => new TextEncoder().encode(e), Zr = (e) => {
|
|
|
3271
3271
|
const { timezone: n } = ft(), t = 12 - n;
|
|
3272
3272
|
return e.setHours(t - (/* @__PURE__ */ new Date()).getTimezoneOffset() / 60), e;
|
|
3273
3273
|
}, Ve = (e) => {
|
|
3274
|
-
const n = /* @__PURE__ */ new Date(), t = n.getFullYear(),
|
|
3274
|
+
const n = /* @__PURE__ */ new Date(), t = n.getFullYear(), r = n.getMonth();
|
|
3275
3275
|
return ue(
|
|
3276
|
-
new Date(
|
|
3276
|
+
new Date(r - 1 < 0 ? t - 1 : t, r - 1 < 0 ? 12 : r - 1, e)
|
|
3277
3277
|
);
|
|
3278
3278
|
}, Ae = (e) => {
|
|
3279
|
-
const n = /* @__PURE__ */ new Date(), t = n.getFullYear(),
|
|
3280
|
-
return ue(new Date(t,
|
|
3279
|
+
const n = /* @__PURE__ */ new Date(), t = n.getFullYear(), r = n.getMonth();
|
|
3280
|
+
return ue(new Date(t, r, e));
|
|
3281
3281
|
}, Qe = (e) => {
|
|
3282
|
-
const n = /* @__PURE__ */ new Date(), t = n.getFullYear(),
|
|
3282
|
+
const n = /* @__PURE__ */ new Date(), t = n.getFullYear(), r = n.getMonth();
|
|
3283
3283
|
return ue(
|
|
3284
|
-
new Date(
|
|
3284
|
+
new Date(r + 1 > 12 ? t + 1 : t, r + 1 > 12 ? 1 : r + 1, e)
|
|
3285
3285
|
);
|
|
3286
|
-
},
|
|
3286
|
+
}, Ja = () => {
|
|
3287
3287
|
const e = /* @__PURE__ */ new Date(), n = e.getDay(), t = n === 0 ? 13 : n - 1 + 7;
|
|
3288
3288
|
return e.setDate(e.getDate() - t), ue(e);
|
|
3289
|
-
},
|
|
3289
|
+
}, Ka = () => {
|
|
3290
3290
|
const e = /* @__PURE__ */ new Date(), n = e.getDay(), t = n === 0 ? 6 : n - 1;
|
|
3291
3291
|
return e.setDate(e.getDate() - t), ue(e);
|
|
3292
3292
|
}, es = () => {
|
|
@@ -3298,23 +3298,23 @@ const Xr = (e) => new TextEncoder().encode(e), Zr = (e) => {
|
|
|
3298
3298
|
}, ns = () => {
|
|
3299
3299
|
const e = /* @__PURE__ */ new Date();
|
|
3300
3300
|
return e.setHours(12, 0, 0, 0), ue(e);
|
|
3301
|
-
},
|
|
3301
|
+
}, rs = () => {
|
|
3302
3302
|
const e = /* @__PURE__ */ new Date();
|
|
3303
3303
|
return e.setDate(e.getDate() + 1), e.setHours(12, 0, 0, 0), ue(e);
|
|
3304
3304
|
}, Me = (e, n, t) => {
|
|
3305
|
-
const
|
|
3305
|
+
const r = /* @__PURE__ */ new Date(), a = e.getTime() - n.getTime(), s = t.getTime() - e.getTime();
|
|
3306
3306
|
let o = 0, d = 0, g = 0;
|
|
3307
|
-
return
|
|
3307
|
+
return r.getTime() > e.getTime() ? (o = t.getTime() - r.getTime(), d = r.getTime() - e.getTime(), g = Math.min(
|
|
3308
3308
|
Math.round(d / s * 100),
|
|
3309
3309
|
100
|
|
3310
|
-
)) : (o = e.getTime() -
|
|
3311
|
-
Math.round(d /
|
|
3310
|
+
)) : (o = e.getTime() - r.getTime(), d = r.getTime() - n.getTime(), g = Math.min(
|
|
3311
|
+
Math.round(d / a * 100),
|
|
3312
3312
|
100
|
|
3313
3313
|
)), {
|
|
3314
3314
|
remainingTime: o,
|
|
3315
3315
|
percentage: g
|
|
3316
3316
|
};
|
|
3317
|
-
},
|
|
3317
|
+
}, as = () => {
|
|
3318
3318
|
const { remainingTime: e, percentage: n } = Me(
|
|
3319
3319
|
Ae(1),
|
|
3320
3320
|
Ve(1),
|
|
@@ -3326,8 +3326,8 @@ const Xr = (e) => new TextEncoder().encode(e), Zr = (e) => {
|
|
|
3326
3326
|
};
|
|
3327
3327
|
}, ss = () => {
|
|
3328
3328
|
const { remainingTime: e, percentage: n } = Me(
|
|
3329
|
-
|
|
3330
|
-
|
|
3329
|
+
Ka(),
|
|
3330
|
+
Ja(),
|
|
3331
3331
|
es()
|
|
3332
3332
|
);
|
|
3333
3333
|
return {
|
|
@@ -3338,7 +3338,7 @@ const Xr = (e) => new TextEncoder().encode(e), Zr = (e) => {
|
|
|
3338
3338
|
const { remainingTime: e, percentage: n } = Me(
|
|
3339
3339
|
ns(),
|
|
3340
3340
|
ts(),
|
|
3341
|
-
|
|
3341
|
+
rs()
|
|
3342
3342
|
);
|
|
3343
3343
|
return {
|
|
3344
3344
|
dayRemainingTime: e,
|
|
@@ -3376,31 +3376,31 @@ const Xr = (e) => new TextEncoder().encode(e), Zr = (e) => {
|
|
|
3376
3376
|
};
|
|
3377
3377
|
}, cs = () => Intl.DateTimeFormat().resolvedOptions().timeZone, Be = (e) => {
|
|
3378
3378
|
try {
|
|
3379
|
-
const { timezone: n } = ft(), t = `Etc/GMT${n > 0 ? `-${n}` : `+${Math.abs(n)}`}`,
|
|
3380
|
-
if (isNaN(
|
|
3379
|
+
const { timezone: n } = ft(), t = `Etc/GMT${n > 0 ? `-${n}` : `+${Math.abs(n)}`}`, r = Ta(e, "yyyy-MM-dd HH:mm:ss", /* @__PURE__ */ new Date());
|
|
3380
|
+
if (isNaN(r.getTime()))
|
|
3381
3381
|
throw new Error("Invalid date format");
|
|
3382
|
-
const
|
|
3383
|
-
return
|
|
3382
|
+
const a = Qa(r, t), s = cs(), o = Aa(a, s);
|
|
3383
|
+
return Va(o, "yyyy-MM-dd HH:mm:ss", { timeZone: s });
|
|
3384
3384
|
} catch (n) {
|
|
3385
3385
|
throw console.error("Error converting to user timezone:", n), n;
|
|
3386
3386
|
}
|
|
3387
3387
|
}, bn = (e) => {
|
|
3388
|
-
const t = e.replace(" at ", " ").replace(/GMT([+-]\d+)/, (D, _) => `${_.padStart(3, "0")}:00`),
|
|
3389
|
-
return `${
|
|
3388
|
+
const t = e.replace(" at ", " ").replace(/GMT([+-]\d+)/, (D, _) => `${_.padStart(3, "0")}:00`), r = new Date(t.replace(/0([+-]\d{1,2}:\d{2})/, "$1")), a = r.getFullYear(), s = String(r.getMonth() + 1).padStart(2, "0"), o = String(r.getDate()).padStart(2, "0"), d = String(r.getHours()).padStart(2, "0"), g = String(r.getMinutes()).padStart(2, "0"), f = String(r.getSeconds()).padStart(2, "0");
|
|
3389
|
+
return `${a}-${s}-${o} ${d}:${g}:${f}`;
|
|
3390
3390
|
}, ds = () => Date.now(), ms = (e) => new Date(e).getTime(), Et = (e, n = 0) => {
|
|
3391
|
-
const t = ds(),
|
|
3391
|
+
const t = ds(), r = ms(
|
|
3392
3392
|
bn(Be(e))
|
|
3393
3393
|
);
|
|
3394
|
-
if (t >
|
|
3395
|
-
const
|
|
3396
|
-
return !(t <=
|
|
3394
|
+
if (t > r) {
|
|
3395
|
+
const a = r + n * 60 * 1e3;
|
|
3396
|
+
return !(t <= a);
|
|
3397
3397
|
}
|
|
3398
3398
|
return !1;
|
|
3399
3399
|
}, We = (e) => parseFloat(e.replace(/[^0-9.-]/g, "")), x = (e, n = 2) => {
|
|
3400
3400
|
if (Number(e) !== 0 && !Number(e))
|
|
3401
3401
|
return `${e || ""}`;
|
|
3402
|
-
const t = `0${n ? "." + "0".repeat(n) : ""}`,
|
|
3403
|
-
return isNaN(
|
|
3402
|
+
const t = `0${n ? "." + "0".repeat(n) : ""}`, r = parseFloat(e);
|
|
3403
|
+
return isNaN(r) || typeof e == "string" && /[^\d.,]/.test(e) ? `${t}` : `${r.toFixed(n).replace(/\B(?=(\d{3})+(?!\d))/g, ",")}`;
|
|
3404
3404
|
};
|
|
3405
3405
|
var c = /* @__PURE__ */ ((e) => (e.announcement = "announcement", e.gameList = "gameList", e.fishGameList = "fishGameList", e.cmsList = "cmsList", e.paymentsProvider = "paymentsProvider", e.getUserProfile = "getUserProfile", e.vipList = "vipList", e.vipStatus = "vipStatus", e.vipBonus = "vipBonus", e.vipFieldStatus = "vipFieldStatus", e.promotion = "promotion", e.getSetting = "getSetting", e.getCountryMobile = "getCountryMobile", e.getPlatformTurnoverRate = "getPlatformTurnoverRate", e.mainWallet = "mainWallet", e.getLanguageSetting = "getLanguageSetting", e.getFourDimensionData = "getfourDimensionData", e.getCompany = "getCompany", e.searchResultDate = "searchResultDate", e.searchHot = "searchHot", e.searchByDate = "searchByDate", e.upcomingMatches = "upcomingMatches", e.deposit = "deposit", e.applyVipBonus = "applyVipBonus", e.getBankCardData = "getBankCardData", e.withdrawalGet = "withdrawalGet", e.withdraw = "withdraw", e.addBankCard = "addBankCard", e.transactionReport = "transactionReport", e.changePassword = "changePassword", e.wallet = "wallet", e.getEventList = "getEventlist", e.getEventToken = "getEventToken", e.getExtraGame = "getExtraGame", e.mailBox = "mailBox", e.slotGameList = "slotGameList", e.getTurnOverRewardData = "getTurnOverRewardData", e.getTurnOverRewardReport = "getTurnOverRewardReport", e.getInviteRewardData = "getInviteRewardData", e.getInviteRewardReport = "getInviteRewardReport", e.getTopupRewardData = "getTopupRewardData", e.getTopupRewardReport = "getTopupRewardReport", e.getRewardReferral = "getRewardReferral", e.submitWithdrawValidate = "submitWithdrawValidate", e.getDepositPromotion = "getDepositPromotion", e.getInviteRewardClaim = "getInviteRewardClaim", e.getTopUpRewardClaim = "getTopupRewardClaim", e.getTurnOverRewardClaim = "getTurnOverRewardClaim", e.getInviteRewardSetting = "getInviteRewardSetting", e.getTopUpRewardSetting = "getTopupRewardSetting", e.getTurnOverRewardSetting = "getTurnOverRewardSetting", e.requestForgetPassword = "requestForgetPassword", e.submitForgetPassword = "submitForgetPassword", e.getImage = "getImage", e.getDepositValidate = "getDepositValidate", e.getTransferCreditValidate = "getTransferCreditValidate", e.getWithdrawValidate = "getWithdrawValidate", e.updateProfilePicture = "updateProfilePicture", e.readMail = "readMail", e.checkRedPacketValidate = "checkRedpacketValidate", e.requestTacCode = "requestTacCode", e.getUsernameByRefer = "getUsernameByRefer", e.applyPromo = "applyPromo", e.applyRedPacket = "applyRedpacket", e.applySignIn = "applySignIn", e.getCountry = "getCountry", e.submitGiftCode = "submitGiftCode", e.playGame = "playGame", e.transferToMain = "transferToMain", e.transferProcess = "transferProcess", e.submitDepositValidate = "submitDepositValidate", e.submitTransferCreditValidate = "submitTransferCreditValidate", e.checkTransferCredit = "checkTransferCredit", e.friendList = "friendList", e.friendListEdit = "friendListEdit", e.getActivePP = "getActivePP", e.getActiveProduct = "getActiveProduct", e.requestWithdrawTac = "requestWithdrawTac", e.requestWithdrawalCode = "requestWithdrawalCode", e.commissionWithdraw = "commissionWithdraw", e.submitWithdrawalCode = "submitWithdrawalCode", e.submitCryptoAccount = "submitCryptoAccount", e.requestTransferMoney = "requestTransferMoney", e.submitTransferMoney = "submitTransferMoney", e.getVerifyPromo = "getVerifyPromo", e.requestUpdateMobileTacCode = "requestUpdateMobileTacCode", e.submitUpdateMobileTacCode = "submitUpdateMobileTacCode", e.signInViewInfo = "signInViewInfo", e.signInRecord = "signInRecord", e.referralProfile = "referralProfile", e.referralMemberProfile = "referralMemberProfile", e.registerAction = "registerAction", e.transferReport = "transferReport", e.agTransferCreditReport = "agTransferCreditReport", e.betReport = "betReport", e.getTwoFactorAuthenticate = "getTwoFactorAuthenticate", e.getUserDeviceList = "getUserDeviceList", e.submitTwoFactorAuthenticate = "submitTwoFactorAuthenticate", e.unbindUserDevice = "unbindUserDevice", e.searchNumberHistory = "searchNumberHistory", e.changeWithdrawalCode = "changeWithdrawalCode", e.checkRedPacketToken = "checkRedPacketToken", e.submitWithdrawalAlipay = "submitWithdrawalAlipay", e.applyReliefFund = "applyReliefFund", e.getReliefFundData = "getReliefFundData", e.getReliefFundReport = "getReliefFundReport", e.getWeekCardData = "getWeekCardData", e.applyWeekCard = "applyWeekCard", e.getWeekCardClaim = "getWeekCardClaim", e.transferSetting = "transfersetting", e.transfer = "transfer", e.getIncentiveData = "getIncentiveData", e.getIncentiveRebate = "getIncentiveRebate", e.claimIncentiveRebate = "claimIncentiveRebate", e.getMissionData = "getMissionData", e.getMissionClaim = "getMissionClaim", e.registerForm = "registerForm", e.getFavouriteGame = "getFavouriteGame", e.updateFavouriteGame = "updateFavouriteGame", e.requestForgetUsername = "requestForgetUsername", e.submitForgetUsername = "submitForgetUsername", e.getAccumulateDepositData = "getAccumulateDepositData", e.getAccumulateDepositClaim = "getAccumulateDepositClaim", e.rebateRefundSetting = "rebateRefundSetting", e.getASCMatchCount = "getASCMatchCount", e.updateDeviceToken = "updateDeviceToken", e.getCryptoList = "getCryptoList", e.getCryptoAddress = "getCryptoAddress", e.getPopoutItem = "getPopoutItem", e.getTurnOverRewardSettingMult = "getTurnOverRewardSettingMult", e.interestIndex = "interestIndex", e.interestWalletInfo = "interestWalletInfo", e.interestTransactionList = "interestTransactionList", e.interestTransferIn = "interestTransferIn", e.interestTransferOut = "interestTransferOut", e.getWheelData = "getWheelData", e.getWheelTicket = "getWheelTicket", e.spinWheel = "spinWheel", e))(c || {});
|
|
3406
3406
|
const fs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -3430,18 +3430,18 @@ const gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3430
3430
|
}, ps = (e) => {
|
|
3431
3431
|
var n;
|
|
3432
3432
|
return ((n = e.mdPaymentChannels) == null ? void 0 : n.map((t) => {
|
|
3433
|
-
const
|
|
3433
|
+
const r = [];
|
|
3434
3434
|
switch (t.name) {
|
|
3435
3435
|
case ie.default:
|
|
3436
|
-
|
|
3436
|
+
r.push(Ht(t.name, t.paymentmethod.manual, e));
|
|
3437
3437
|
break;
|
|
3438
3438
|
case ie.pay:
|
|
3439
|
-
|
|
3439
|
+
r.push(
|
|
3440
3440
|
bs(t.name, t.paymentmethod.onlinebanking, e)
|
|
3441
3441
|
);
|
|
3442
3442
|
break;
|
|
3443
3443
|
default:
|
|
3444
|
-
if (t.paymentmethod.auto.bank.length > 0 &&
|
|
3444
|
+
if (t.paymentmethod.auto.bank.length > 0 && r.push(
|
|
3445
3445
|
ys(
|
|
3446
3446
|
t.name,
|
|
3447
3447
|
t.bankid ?? 0,
|
|
@@ -3449,19 +3449,19 @@ const gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3449
3449
|
e
|
|
3450
3450
|
)
|
|
3451
3451
|
), t.paymentmethod.manual.bank.length > 0) {
|
|
3452
|
-
let
|
|
3452
|
+
let a = !1;
|
|
3453
3453
|
for (let s = 0; s < t.paymentmethod.manual.bank.length; s++) {
|
|
3454
3454
|
const o = t.paymentmethod.manual.bank[s];
|
|
3455
3455
|
if (o.list && o.list.length > 0) {
|
|
3456
|
-
|
|
3456
|
+
a = !0;
|
|
3457
3457
|
break;
|
|
3458
3458
|
}
|
|
3459
3459
|
}
|
|
3460
|
-
|
|
3460
|
+
a && r.push(
|
|
3461
3461
|
Ht(t.name, t.paymentmethod.manual, e)
|
|
3462
3462
|
);
|
|
3463
3463
|
}
|
|
3464
|
-
t.paymentmethod.fixamount.bank.length > 0 &&
|
|
3464
|
+
t.paymentmethod.fixamount.bank.length > 0 && r.push(
|
|
3465
3465
|
hs(
|
|
3466
3466
|
t.name,
|
|
3467
3467
|
t.bankid ?? 0,
|
|
@@ -3472,7 +3472,7 @@ const gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3472
3472
|
return {
|
|
3473
3473
|
name: t.label,
|
|
3474
3474
|
imageUrl: `/image/game/native/deposit/sidemenu/${t.name}.png?${e.systemtime}`,
|
|
3475
|
-
paymentList:
|
|
3475
|
+
paymentList: r
|
|
3476
3476
|
};
|
|
3477
3477
|
})) ?? [];
|
|
3478
3478
|
}, Ze = (e) => {
|
|
@@ -3482,17 +3482,17 @@ const gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3482
3482
|
disabled: !0,
|
|
3483
3483
|
welcomeBonus: !1,
|
|
3484
3484
|
dailyBonus: !1
|
|
3485
|
-
}, t = e.map((
|
|
3486
|
-
id:
|
|
3487
|
-
name:
|
|
3485
|
+
}, t = e.map((r) => ({
|
|
3486
|
+
id: r.promoindex,
|
|
3487
|
+
name: r.promodesc,
|
|
3488
3488
|
disabled: !1,
|
|
3489
|
-
welcomeBonus:
|
|
3490
|
-
dailyBonus:
|
|
3489
|
+
welcomeBonus: r.dtype === "5" && r.type === "F",
|
|
3490
|
+
dailyBonus: r.dtype === "5" && r.type === "D"
|
|
3491
3491
|
}));
|
|
3492
3492
|
return [n, ...t];
|
|
3493
|
-
}, Le = (e, n, t,
|
|
3494
|
-
let
|
|
3495
|
-
t > 0 ?
|
|
3493
|
+
}, Le = (e, n, t, r) => {
|
|
3494
|
+
let a, s;
|
|
3495
|
+
t > 0 ? a = e > 0 ? Math.max(t, e) : t : a = Math.max(e, 0), r > 0 ? s = n > 0 ? Math.min(r, n) : r : s = Math.max(n, 0);
|
|
3496
3496
|
const o = 100;
|
|
3497
3497
|
let d = 1e3;
|
|
3498
3498
|
s < d && (d = Math.round(s));
|
|
@@ -3516,15 +3516,15 @@ const gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3516
3516
|
f,
|
|
3517
3517
|
b,
|
|
3518
3518
|
d.toString()
|
|
3519
|
-
], minAmount:
|
|
3519
|
+
], minAmount: a, maxAmount: s };
|
|
3520
3520
|
}, Ht = (e, n, t) => {
|
|
3521
3521
|
if (!t) return ht;
|
|
3522
|
-
const
|
|
3522
|
+
const r = ie.manual;
|
|
3523
3523
|
return {
|
|
3524
3524
|
id: 0,
|
|
3525
3525
|
name: "manualMethod",
|
|
3526
3526
|
pathName: e,
|
|
3527
|
-
type:
|
|
3527
|
+
type: r,
|
|
3528
3528
|
promo: Ze(n.promo),
|
|
3529
3529
|
bank: n.bank.map((s) => {
|
|
3530
3530
|
const o = s.list && s.list.length > 0 ? s.list[0].mintransaction ?? "0.00" : "0.00", d = s.list && s.list.length > 0 ? s.list[0].maxtransaction ?? "0.00" : "0.00", { amountList: g, minAmount: f, maxAmount: b } = Le(
|
|
@@ -3557,12 +3557,12 @@ const gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3557
3557
|
};
|
|
3558
3558
|
}, bs = (e, n, t) => {
|
|
3559
3559
|
if (!t) return ht;
|
|
3560
|
-
const
|
|
3560
|
+
const r = ie.pay;
|
|
3561
3561
|
return {
|
|
3562
3562
|
id: 0,
|
|
3563
3563
|
name: "onlineBankingMethod",
|
|
3564
3564
|
pathName: e,
|
|
3565
|
-
type:
|
|
3565
|
+
type: r,
|
|
3566
3566
|
promo: Ze(n.promo),
|
|
3567
3567
|
bank: n.banklist.map((s) => {
|
|
3568
3568
|
let o = "0.00", d = "0.00";
|
|
@@ -3607,18 +3607,18 @@ const gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3607
3607
|
requiredField: Xe,
|
|
3608
3608
|
hintMsg: ""
|
|
3609
3609
|
};
|
|
3610
|
-
}, ys = (e, n, t,
|
|
3611
|
-
if (!
|
|
3612
|
-
const
|
|
3610
|
+
}, ys = (e, n, t, r) => {
|
|
3611
|
+
if (!r) return ht;
|
|
3612
|
+
const a = ie.auto;
|
|
3613
3613
|
let s = [];
|
|
3614
|
-
const o =
|
|
3615
|
-
if (t.bank.length > 0 &&
|
|
3614
|
+
const o = r.mdGatewayMinMax ?? [];
|
|
3615
|
+
if (t.bank.length > 0 && r.mdPGSelection === "1")
|
|
3616
3616
|
s = t.bank.map((g) => {
|
|
3617
3617
|
const { amountList: f, minAmount: b, maxAmount: D } = Le(
|
|
3618
3618
|
g.mintransaction ?? 0,
|
|
3619
3619
|
g.maxtransaction ?? 0,
|
|
3620
|
-
|
|
3621
|
-
|
|
3620
|
+
r.mdBankLevelDetail.onlinepayment_min,
|
|
3621
|
+
r.mdBankLevelDetail.onlinepayment_max
|
|
3622
3622
|
);
|
|
3623
3623
|
return {
|
|
3624
3624
|
id: g.pgindex ?? 0,
|
|
@@ -3635,8 +3635,8 @@ const gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3635
3635
|
const { amountList: b, minAmount: D, maxAmount: _ } = Le(
|
|
3636
3636
|
Number(g),
|
|
3637
3637
|
Number(f),
|
|
3638
|
-
|
|
3639
|
-
|
|
3638
|
+
r.mdBankLevelDetail.onlinepayment_min,
|
|
3639
|
+
r.mdBankLevelDetail.onlinepayment_max
|
|
3640
3640
|
), p = {
|
|
3641
3641
|
id: 0,
|
|
3642
3642
|
name: "autoChannel",
|
|
@@ -3650,19 +3650,19 @@ const gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3650
3650
|
id: n,
|
|
3651
3651
|
name: "autoMethod",
|
|
3652
3652
|
pathName: e,
|
|
3653
|
-
type:
|
|
3653
|
+
type: a,
|
|
3654
3654
|
promo: Ze(t.promo),
|
|
3655
3655
|
bank: s,
|
|
3656
3656
|
requiredField: Xe,
|
|
3657
3657
|
hintMsg: ""
|
|
3658
3658
|
};
|
|
3659
3659
|
}, hs = (e, n, t) => {
|
|
3660
|
-
const
|
|
3660
|
+
const r = ie.fix;
|
|
3661
3661
|
return {
|
|
3662
3662
|
id: n,
|
|
3663
3663
|
name: "fixAmountMethod",
|
|
3664
3664
|
pathName: e,
|
|
3665
|
-
type:
|
|
3665
|
+
type: r,
|
|
3666
3666
|
promo: Ze(t.promo),
|
|
3667
3667
|
bank: t.bank.map((s) => {
|
|
3668
3668
|
const o = s.amtlist.map(Number).sort((g, f) => g - f);
|
|
@@ -3689,7 +3689,7 @@ const gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3689
3689
|
phoneNumber: e.mdUserDetail.mobileno ?? "",
|
|
3690
3690
|
profilePicUrl: e.mdUserDetail.profile_pic
|
|
3691
3691
|
}), vs = (e) => {
|
|
3692
|
-
var n, t,
|
|
3692
|
+
var n, t, r, a, s, o, d, g, f;
|
|
3693
3693
|
return {
|
|
3694
3694
|
platformGame: ((n = e.mdGameListResult) == null ? void 0 : n.map((b) => {
|
|
3695
3695
|
var D, _;
|
|
@@ -3718,8 +3718,8 @@ const gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3718
3718
|
})) ?? [],
|
|
3719
3719
|
hotGameList: ws(e.mdGameLists.data) ? {
|
|
3720
3720
|
currentPage: ((t = e.mdGameLists) == null ? void 0 : t.current_page) ?? 1,
|
|
3721
|
-
lastPage: ((
|
|
3722
|
-
data: ((s = (
|
|
3721
|
+
lastPage: ((r = e.mdGameLists) == null ? void 0 : r.last_page) ?? 1,
|
|
3722
|
+
data: ((s = (a = e.mdGameLists) == null ? void 0 : a.data) == null ? void 0 : s.map((b) => ({
|
|
3723
3723
|
gameId: Number(b.id),
|
|
3724
3724
|
platformId: Number(b.id_PlatformProduct),
|
|
3725
3725
|
platformCode: b.code_PlatformProduct,
|
|
@@ -3769,7 +3769,7 @@ function Ds(e) {
|
|
|
3769
3769
|
}
|
|
3770
3770
|
const Ps = (e) => ({
|
|
3771
3771
|
list: e.mdGrade.map((n) => {
|
|
3772
|
-
var t,
|
|
3772
|
+
var t, r, a, s, o, d, g, f, b, D, _, p, M, O, H, B, w, I, T, k, q, le, se, ce, de, K, Fe, Je, _e, Te, ve, ke, we, Ke, De, et, ze, Ge, i, m, v, u, l, P, L, V, Z, G, J, Q, X, U, A, ee, Se, ge, Ie, pe, Ce, y, vt, wt, Dt, Pt;
|
|
3773
3773
|
return {
|
|
3774
3774
|
id: n.gradeindex,
|
|
3775
3775
|
is_current_level: !1,
|
|
@@ -3796,8 +3796,8 @@ const Ps = (e) => ({
|
|
|
3796
3796
|
benefit_list: {
|
|
3797
3797
|
daily: {
|
|
3798
3798
|
isShow: !0,
|
|
3799
|
-
bonus: x(((
|
|
3800
|
-
bonus_name: ((s = (
|
|
3799
|
+
bonus: x(((r = (t = n.benefit) == null ? void 0 : t.daily) == null ? void 0 : r.bonus) ?? "0"),
|
|
3800
|
+
bonus_name: ((s = (a = n.benefit) == null ? void 0 : a.daily) == null ? void 0 : s.bonus_name) ?? "",
|
|
3801
3801
|
turnover: x(((d = (o = n.benefit) == null ? void 0 : o.daily) == null ? void 0 : d.turnover) ?? "0"),
|
|
3802
3802
|
turnover_name: ((f = (g = n.benefit) == null ? void 0 : g.daily) == null ? void 0 : f.turnover_name) ?? ""
|
|
3803
3803
|
},
|
|
@@ -3953,7 +3953,7 @@ const Ps = (e) => ({
|
|
|
3953
3953
|
name: n.name
|
|
3954
3954
|
})),
|
|
3955
3955
|
list: e.list.map((n) => {
|
|
3956
|
-
var
|
|
3956
|
+
var r, a;
|
|
3957
3957
|
let t = "";
|
|
3958
3958
|
return n.stime !== "" && n.etime !== "" && (t = `${n.stime} - ${n.etime}`), n.stime !== "" && n.etime === "" && (t = n.stime), n.stime === "" && n.etime !== "" && (t = n.etime), {
|
|
3959
3959
|
promoId: n.promoid,
|
|
@@ -3962,8 +3962,8 @@ const Ps = (e) => ({
|
|
|
3962
3962
|
content: n.content,
|
|
3963
3963
|
time: t,
|
|
3964
3964
|
name: n.title,
|
|
3965
|
-
claimable: ((
|
|
3966
|
-
amountDisplay: ((
|
|
3965
|
+
claimable: ((r = n.promo_cash) == null ? void 0 : r.claimable) ?? !1,
|
|
3966
|
+
amountDisplay: ((a = n.promo_cash) == null ? void 0 : a.display) ?? ""
|
|
3967
3967
|
};
|
|
3968
3968
|
}).sort((n, t) => n.claimable && !t.claimable ? -1 : !n.claimable && t.claimable ? 1 : 0)
|
|
3969
3969
|
}), Rs = (e) => ({
|
|
@@ -4002,7 +4002,7 @@ const Ps = (e) => ({
|
|
|
4002
4002
|
next_grade_id: e.mdNextGrade.gradeindex,
|
|
4003
4003
|
percentage: Number(e.percentage) * 100 > 100 ? 100 : Number(e.percentage) * 100
|
|
4004
4004
|
}), ks = (e) => {
|
|
4005
|
-
var
|
|
4005
|
+
var r, a;
|
|
4006
4006
|
let n = 4;
|
|
4007
4007
|
e.vipcalculation && (n = Number(e.vipcalculation));
|
|
4008
4008
|
let t = [];
|
|
@@ -4029,8 +4029,8 @@ const Ps = (e) => ({
|
|
|
4029
4029
|
withdrawAlipay: e.withdrawalipay === "1",
|
|
4030
4030
|
crypto: e.crypto === "1",
|
|
4031
4031
|
forgetUser: {
|
|
4032
|
-
email: ((
|
|
4033
|
-
sms: ((
|
|
4032
|
+
email: ((r = e.forgetuser) == null ? void 0 : r.email) ?? !1,
|
|
4033
|
+
sms: ((a = e.forgetuser) == null ? void 0 : a.sms) ?? !1
|
|
4034
4034
|
},
|
|
4035
4035
|
loginCaptcha: e.logincaptcha ? e.logincaptcha === "1" : !1,
|
|
4036
4036
|
registerCaptcha: e.registercaptcha ? e.registercaptcha === "1" : !1,
|
|
@@ -4039,16 +4039,16 @@ const Ps = (e) => ({
|
|
|
4039
4039
|
whatsappRegister: e.registerwa ?? ""
|
|
4040
4040
|
};
|
|
4041
4041
|
}, Ss = (e) => {
|
|
4042
|
-
var n, t,
|
|
4042
|
+
var n, t, r, a, s, o;
|
|
4043
4043
|
return {
|
|
4044
4044
|
banner: ((n = e.mobileBanner) == null ? void 0 : n.map((d) => `${d.imagepath}?ts=${d.filemtime}`)) ?? [],
|
|
4045
4045
|
ad: ((t = e.mobileAd) == null ? void 0 : t.map((d) => `${d.imagepath}?ts=${d.filemtime}`)) ?? [],
|
|
4046
|
-
about: ((
|
|
4046
|
+
about: ((r = e.about) == null ? void 0 : r.map((d) => ({
|
|
4047
4047
|
name: d.name,
|
|
4048
4048
|
content: d.content,
|
|
4049
4049
|
link: d.link
|
|
4050
4050
|
}))) ?? [],
|
|
4051
|
-
mobileAbout: ((
|
|
4051
|
+
mobileAbout: ((a = e.mobileAbout) == null ? void 0 : a.map((d) => ({
|
|
4052
4052
|
name: d.name,
|
|
4053
4053
|
content: d.content,
|
|
4054
4054
|
link: d.link
|
|
@@ -4091,27 +4091,27 @@ const Ps = (e) => ({
|
|
|
4091
4091
|
}, zs = (e) => {
|
|
4092
4092
|
var n;
|
|
4093
4093
|
return ((n = e.data) == null ? void 0 : n.map((t) => {
|
|
4094
|
-
var
|
|
4094
|
+
var r;
|
|
4095
4095
|
return {
|
|
4096
4096
|
id: t.key,
|
|
4097
|
-
date: ((
|
|
4097
|
+
date: ((r = t.draw_date) == null ? void 0 : r.map((a) => Gs(a.draw_tmactive))) ?? []
|
|
4098
4098
|
};
|
|
4099
4099
|
})) ?? [];
|
|
4100
4100
|
};
|
|
4101
4101
|
function Gs(e) {
|
|
4102
|
-
const n = new Date(e * 1e3), t = n.getFullYear(),
|
|
4103
|
-
return `${t}-${
|
|
4102
|
+
const n = new Date(e * 1e3), t = n.getFullYear(), r = ("0" + (n.getMonth() + 1)).slice(-2), a = ("0" + n.getDate()).slice(-2);
|
|
4103
|
+
return `${t}-${r}-${a}`;
|
|
4104
4104
|
}
|
|
4105
4105
|
const Ws = (e) => {
|
|
4106
4106
|
var n;
|
|
4107
4107
|
return ((n = e.data) == null ? void 0 : n.map((t) => {
|
|
4108
|
-
var
|
|
4108
|
+
var r;
|
|
4109
4109
|
return {
|
|
4110
4110
|
id: t.company_id,
|
|
4111
4111
|
name: t.company_name,
|
|
4112
|
-
list: ((
|
|
4113
|
-
combination:
|
|
4114
|
-
total:
|
|
4112
|
+
list: ((r = t.drawCount) == null ? void 0 : r.map((a) => ({
|
|
4113
|
+
combination: a.combination_combination,
|
|
4114
|
+
total: a.total
|
|
4115
4115
|
}))) ?? []
|
|
4116
4116
|
};
|
|
4117
4117
|
})) ?? [];
|
|
@@ -4119,7 +4119,7 @@ const Ws = (e) => {
|
|
|
4119
4119
|
companyId: n.company_id,
|
|
4120
4120
|
companyName: n.company_name,
|
|
4121
4121
|
resultByDateList: n.draws.map((t) => {
|
|
4122
|
-
const
|
|
4122
|
+
const r = t.results.filter((p) => p.combination_dimension == 3).map((p) => p.combination_combination), a = t.results.filter(
|
|
4123
4123
|
(p) => p.combination_dimension == 4 && p.combination_position === 1
|
|
4124
4124
|
).map((p) => p.combination_combination), s = t.results.filter(
|
|
4125
4125
|
(p) => p.combination_dimension === 4 && p.combination_position === 2
|
|
@@ -4136,9 +4136,9 @@ const Ws = (e) => {
|
|
|
4136
4136
|
).map((p) => p.combination_combination), _ = t.results.filter((p) => p.combination_dimension === 6).map((p) => p.combination_combination);
|
|
4137
4137
|
return {
|
|
4138
4138
|
date: t.date,
|
|
4139
|
-
dimension_3:
|
|
4139
|
+
dimension_3: r,
|
|
4140
4140
|
dimension_4: {
|
|
4141
|
-
prize_1:
|
|
4141
|
+
prize_1: a,
|
|
4142
4142
|
prize_2: s,
|
|
4143
4143
|
prize_3: o,
|
|
4144
4144
|
prize_4: d,
|
|
@@ -4190,7 +4190,7 @@ const Ws = (e) => {
|
|
|
4190
4190
|
status: e.status == 1,
|
|
4191
4191
|
message: e.status == 1 ? e.message ?? "" : e.errormessage ?? ""
|
|
4192
4192
|
}), Bs = (e) => C(e), Us = (e) => {
|
|
4193
|
-
var n, t,
|
|
4193
|
+
var n, t, r, a, s;
|
|
4194
4194
|
return {
|
|
4195
4195
|
bankCard: ((n = e.bankCard) == null ? void 0 : n.map((o) => {
|
|
4196
4196
|
var d, g;
|
|
@@ -4219,12 +4219,12 @@ const Ws = (e) => {
|
|
|
4219
4219
|
showDeposit: o.show_deposit === "1",
|
|
4220
4220
|
countryIndex: o.countryindex
|
|
4221
4221
|
}))) ?? [],
|
|
4222
|
-
province: ((
|
|
4222
|
+
province: ((r = e.province) == null ? void 0 : r.map((o) => ({
|
|
4223
4223
|
index: o.provinceindex,
|
|
4224
4224
|
label: o.label,
|
|
4225
4225
|
countryIndex: o.countryindex
|
|
4226
4226
|
}))) ?? [],
|
|
4227
|
-
cryptoAccount: ((
|
|
4227
|
+
cryptoAccount: ((a = e.mdAccountCrypto) == null ? void 0 : a.map((o) => ({
|
|
4228
4228
|
id: o.crypto_id,
|
|
4229
4229
|
type: o.type,
|
|
4230
4230
|
name: o.crypto_name,
|
|
@@ -4260,7 +4260,7 @@ const As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4260
4260
|
__proto__: null,
|
|
4261
4261
|
TransactionMethod: $
|
|
4262
4262
|
}, Symbol.toStringTag, { value: "Module" })), Qs = (e) => {
|
|
4263
|
-
var n, t,
|
|
4263
|
+
var n, t, r, a, s, o;
|
|
4264
4264
|
return {
|
|
4265
4265
|
statusMode: ((n = e.subStatusModes) == null ? void 0 : n.map((d) => ({
|
|
4266
4266
|
key: d.key,
|
|
@@ -4271,8 +4271,8 @@ const As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4271
4271
|
value: d.value
|
|
4272
4272
|
}))) ?? [],
|
|
4273
4273
|
data: {
|
|
4274
|
-
currentPage: ((
|
|
4275
|
-
lastPage: ((
|
|
4274
|
+
currentPage: ((r = e.mdCashLedgers) == null ? void 0 : r.current_page) ?? 0,
|
|
4275
|
+
lastPage: ((a = e.mdCashLedgers) == null ? void 0 : a.last_page) ?? 0,
|
|
4276
4276
|
data: ((o = (s = e.mdCashLedgers) == null ? void 0 : s.data) == null ? void 0 : o.map((d) => {
|
|
4277
4277
|
var g, f;
|
|
4278
4278
|
return {
|
|
@@ -4330,11 +4330,11 @@ const As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4330
4330
|
}), Js = (e) => (e == null ? void 0 : e.map((n) => {
|
|
4331
4331
|
var t;
|
|
4332
4332
|
return {
|
|
4333
|
-
activeCom: ((t = n.active_com) == null ? void 0 : t.map((
|
|
4334
|
-
code:
|
|
4335
|
-
name:
|
|
4336
|
-
categoryId:
|
|
4337
|
-
maintenance:
|
|
4333
|
+
activeCom: ((t = n.active_com) == null ? void 0 : t.map((r) => ({
|
|
4334
|
+
code: r.code,
|
|
4335
|
+
name: r.name,
|
|
4336
|
+
categoryId: r.category_id,
|
|
4337
|
+
maintenance: r.maintenance === 1
|
|
4338
4338
|
}))) ?? [],
|
|
4339
4339
|
platformWallet: x(n.platformwallet),
|
|
4340
4340
|
com: n.com ?? "",
|
|
@@ -4368,32 +4368,32 @@ const As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4368
4368
|
downloadUrl: e.download_link ?? ""
|
|
4369
4369
|
}), no = (e) => ({
|
|
4370
4370
|
mail: (e == null ? void 0 : e.filter((n) => n.type == "1").map((n) => {
|
|
4371
|
-
var t,
|
|
4371
|
+
var t, r;
|
|
4372
4372
|
return {
|
|
4373
4373
|
messageId: n.msgindex,
|
|
4374
4374
|
unread: n.status == "0",
|
|
4375
4375
|
date: Be(n.cdate),
|
|
4376
4376
|
title: ((t = n.account_message_content) == null ? void 0 : t.subject) ?? "",
|
|
4377
|
-
content: ((
|
|
4377
|
+
content: ((r = n.account_message_content) == null ? void 0 : r.content) ?? ""
|
|
4378
4378
|
};
|
|
4379
4379
|
})) ?? [],
|
|
4380
4380
|
prize: (e == null ? void 0 : e.filter((n) => n.type == "2").map((n) => {
|
|
4381
|
-
var t,
|
|
4381
|
+
var t, r;
|
|
4382
4382
|
return {
|
|
4383
4383
|
messageId: n.msgindex,
|
|
4384
4384
|
unread: n.status == "0",
|
|
4385
4385
|
date: Be(n.cdate),
|
|
4386
4386
|
title: ((t = n.account_message_content) == null ? void 0 : t.subject) ?? "",
|
|
4387
|
-
content: ((
|
|
4387
|
+
content: ((r = n.account_message_content) == null ? void 0 : r.content) ?? "",
|
|
4388
4388
|
amount: parseFloat(n.amount ?? "0")
|
|
4389
4389
|
};
|
|
4390
4390
|
})) ?? []
|
|
4391
|
-
}),
|
|
4392
|
-
var n, t,
|
|
4391
|
+
}), ro = (e) => {
|
|
4392
|
+
var n, t, r, a;
|
|
4393
4393
|
return {
|
|
4394
4394
|
currentPage: ((n = e.mdGameLists) == null ? void 0 : n.current_page) ?? 1,
|
|
4395
4395
|
lastPage: ((t = e.mdGameLists) == null ? void 0 : t.last_page) ?? 1,
|
|
4396
|
-
data: ((
|
|
4396
|
+
data: ((a = (r = e.mdGameLists) == null ? void 0 : r.data) == null ? void 0 : a.map((s) => ({
|
|
4397
4397
|
gameId: s.id,
|
|
4398
4398
|
platformId: s.id_PlatformProduct,
|
|
4399
4399
|
platformCode: s.code_PlatformMaster,
|
|
@@ -4409,11 +4409,11 @@ const As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4409
4409
|
rate: "0.00"
|
|
4410
4410
|
}))) ?? []
|
|
4411
4411
|
};
|
|
4412
|
-
},
|
|
4412
|
+
}, ao = (e) => e.mdGameLists.map((n) => ({
|
|
4413
4413
|
id: n.id,
|
|
4414
4414
|
name: n.name,
|
|
4415
4415
|
list: n.gameList.map((t) => {
|
|
4416
|
-
const
|
|
4416
|
+
const r = e.mdDomains, s = `${r.length >= t.mdDomains_id ? r[t.mdDomains_id] : ""}${t.img}?${t.filemtime}`;
|
|
4417
4417
|
return {
|
|
4418
4418
|
id: t.id,
|
|
4419
4419
|
name: t.name,
|
|
@@ -4421,19 +4421,19 @@ const As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4421
4421
|
};
|
|
4422
4422
|
})
|
|
4423
4423
|
})), so = (e) => {
|
|
4424
|
-
let n = "0", t = "0",
|
|
4424
|
+
let n = "0", t = "0", r = "0", a = "0", s = "0", o = "0";
|
|
4425
4425
|
return e.status == 0 ? {
|
|
4426
4426
|
claimedReward: n,
|
|
4427
4427
|
currentDirectDownline: t,
|
|
4428
|
-
currentOtherDownline:
|
|
4429
|
-
currentReward:
|
|
4428
|
+
currentOtherDownline: r,
|
|
4429
|
+
currentReward: a,
|
|
4430
4430
|
totalReward: s,
|
|
4431
4431
|
unclaimReward: o
|
|
4432
|
-
} : (e.data.collected_reward && (n = e.data.collected_reward.toString()), e.data.current_direct_downline && (t = e.data.current_direct_downline.toString()), e.data.current_others_downline && (
|
|
4432
|
+
} : (e.data.collected_reward && (n = e.data.collected_reward.toString()), e.data.current_direct_downline && (t = e.data.current_direct_downline.toString()), e.data.current_others_downline && (r = e.data.current_others_downline.toString()), e.data.current_reward && (a = e.data.current_reward.toString()), e.data.total_reward && (s = e.data.total_reward.toString()), e.data.unclaim_reward && (o = e.data.unclaim_reward.toString()), {
|
|
4433
4433
|
claimedReward: n,
|
|
4434
4434
|
currentDirectDownline: t,
|
|
4435
|
-
currentOtherDownline:
|
|
4436
|
-
currentReward:
|
|
4435
|
+
currentOtherDownline: r,
|
|
4436
|
+
currentReward: a,
|
|
4437
4437
|
totalReward: s,
|
|
4438
4438
|
unclaimReward: o
|
|
4439
4439
|
});
|
|
@@ -4444,26 +4444,26 @@ const As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4444
4444
|
dateCreated: s.created,
|
|
4445
4445
|
cashback: s.turnover,
|
|
4446
4446
|
commission: s.income
|
|
4447
|
-
})),
|
|
4447
|
+
})), r = e.data.reduce((s, o) => s + parseFloat(o.income), 0), a = n.size;
|
|
4448
4448
|
return {
|
|
4449
|
-
totalReward:
|
|
4450
|
-
totalCount:
|
|
4449
|
+
totalReward: r,
|
|
4450
|
+
totalCount: a,
|
|
4451
4451
|
list: t
|
|
4452
4452
|
};
|
|
4453
4453
|
}, io = (e) => {
|
|
4454
|
-
let n = "0", t = "0",
|
|
4454
|
+
let n = "0", t = "0", r = "0", a = "0", s = "0", o = "0";
|
|
4455
4455
|
return e.status == 0 ? {
|
|
4456
4456
|
claimedReward: n,
|
|
4457
4457
|
currentInvite: t,
|
|
4458
|
-
currentReward:
|
|
4459
|
-
totalInvite:
|
|
4458
|
+
currentReward: r,
|
|
4459
|
+
totalInvite: a,
|
|
4460
4460
|
totalReward: s,
|
|
4461
4461
|
unclaimReward: o
|
|
4462
|
-
} : (e.data.collected_reward && (n = e.data.collected_reward.toString()), e.data.current_invite && (t = e.data.current_invite), e.data.current_reward && (
|
|
4462
|
+
} : (e.data.collected_reward && (n = e.data.collected_reward.toString()), e.data.current_invite && (t = e.data.current_invite), e.data.current_reward && (r = e.data.current_reward), e.data.total_invite && (a = e.data.total_invite), e.data.total_reward && (s = e.data.total_reward), e.data.unclaim_reward && (o = e.data.unclaim_reward.toString()), {
|
|
4463
4463
|
claimedReward: n,
|
|
4464
4464
|
currentInvite: t,
|
|
4465
|
-
currentReward:
|
|
4466
|
-
totalInvite:
|
|
4465
|
+
currentReward: r,
|
|
4466
|
+
totalInvite: a,
|
|
4467
4467
|
totalReward: s,
|
|
4468
4468
|
unclaimReward: o
|
|
4469
4469
|
});
|
|
@@ -4475,26 +4475,26 @@ const As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4475
4475
|
deposit: s.deposit,
|
|
4476
4476
|
activeBet: s.activebet,
|
|
4477
4477
|
commission: s.reward
|
|
4478
|
-
})),
|
|
4478
|
+
})), r = e.data.reduce((s, o) => s + parseFloat(o.reward), 0), a = n.size;
|
|
4479
4479
|
return {
|
|
4480
|
-
totalReward:
|
|
4481
|
-
totalCount:
|
|
4480
|
+
totalReward: r,
|
|
4481
|
+
totalCount: a,
|
|
4482
4482
|
list: t
|
|
4483
4483
|
};
|
|
4484
4484
|
}, lo = (e) => {
|
|
4485
|
-
let n = "0", t = "0",
|
|
4485
|
+
let n = "0", t = "0", r = "0", a = "0", s = "0", o = "0";
|
|
4486
4486
|
return e.status == 0 ? {
|
|
4487
4487
|
claimedReward: n,
|
|
4488
4488
|
currentDirectDownline: t,
|
|
4489
|
-
currentOtherDownline:
|
|
4490
|
-
currentReward:
|
|
4489
|
+
currentOtherDownline: r,
|
|
4490
|
+
currentReward: a,
|
|
4491
4491
|
totalReward: s,
|
|
4492
4492
|
unclaimReward: o
|
|
4493
|
-
} : (e.data.collected_reward && (n = e.data.collected_reward.toString()), e.data.current_direct_downline && (t = e.data.current_direct_downline.toString()), e.data.current_others_downline && (
|
|
4493
|
+
} : (e.data.collected_reward && (n = e.data.collected_reward.toString()), e.data.current_direct_downline && (t = e.data.current_direct_downline.toString()), e.data.current_others_downline && (r = e.data.current_others_downline.toString()), e.data.current_reward && (a = e.data.current_reward.toString()), e.data.total_reward && (s = e.data.total_reward.toString()), e.data.unclaim_reward && (o = e.data.unclaim_reward.toString()), {
|
|
4494
4494
|
claimedReward: n,
|
|
4495
4495
|
currentDirectDownline: t,
|
|
4496
|
-
currentOtherDownline:
|
|
4497
|
-
currentReward:
|
|
4496
|
+
currentOtherDownline: r,
|
|
4497
|
+
currentReward: a,
|
|
4498
4498
|
totalReward: s,
|
|
4499
4499
|
unclaimReward: o
|
|
4500
4500
|
});
|
|
@@ -4505,10 +4505,10 @@ const As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4505
4505
|
dateCreated: s.created,
|
|
4506
4506
|
total: s.deposit,
|
|
4507
4507
|
commission: s.reward
|
|
4508
|
-
})),
|
|
4508
|
+
})), r = e.data.reduce((s, o) => s + parseFloat(o.reward), 0), a = n.size;
|
|
4509
4509
|
return {
|
|
4510
|
-
totalReward:
|
|
4511
|
-
totalCount:
|
|
4510
|
+
totalReward: r,
|
|
4511
|
+
totalCount: a,
|
|
4512
4512
|
list: t
|
|
4513
4513
|
};
|
|
4514
4514
|
}, mo = (e) => {
|
|
@@ -4526,7 +4526,7 @@ const As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4526
4526
|
currentReward: "0",
|
|
4527
4527
|
totalReward: "0",
|
|
4528
4528
|
unclaimReward: "0"
|
|
4529
|
-
},
|
|
4529
|
+
}, r = {
|
|
4530
4530
|
claimedReward: "0",
|
|
4531
4531
|
currentDirectDownline: "0",
|
|
4532
4532
|
currentOtherDownline: "0",
|
|
@@ -4545,7 +4545,7 @@ const As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4545
4545
|
},
|
|
4546
4546
|
inviteRewardData: n,
|
|
4547
4547
|
turnOverRewardData: t,
|
|
4548
|
-
topupRewardData:
|
|
4548
|
+
topupRewardData: r
|
|
4549
4549
|
} : {
|
|
4550
4550
|
referralRewardData: {
|
|
4551
4551
|
directDownline: e.data.direct_downline_count.toString(),
|
|
@@ -4557,14 +4557,14 @@ const As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4557
4557
|
},
|
|
4558
4558
|
inviteRewardData: n,
|
|
4559
4559
|
turnOverRewardData: t,
|
|
4560
|
-
topupRewardData:
|
|
4560
|
+
topupRewardData: r
|
|
4561
4561
|
};
|
|
4562
4562
|
}, fo = (e) => {
|
|
4563
4563
|
var g;
|
|
4564
4564
|
let n = null, t = null;
|
|
4565
4565
|
if (e.status == 0)
|
|
4566
4566
|
return { welcomeBonus: null, dailyBonus: null };
|
|
4567
|
-
const
|
|
4567
|
+
const r = e.data.filter((f) => f.dtype == "5" && f.type == "F").map((f) => {
|
|
4568
4568
|
const b = Math.min(
|
|
4569
4569
|
Number(f.min_deposit) * Number(f.percentage) / 100,
|
|
4570
4570
|
Number(f.max_promo_amt)
|
|
@@ -4577,8 +4577,8 @@ const As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4577
4577
|
expiryTime: f.etime
|
|
4578
4578
|
};
|
|
4579
4579
|
});
|
|
4580
|
-
|
|
4581
|
-
const
|
|
4580
|
+
r.length > 0 && (n = r[0]);
|
|
4581
|
+
const a = e.data.filter((f) => f.dtype == "5" && f.type == "D").map((f) => {
|
|
4582
4582
|
const b = Math.min(
|
|
4583
4583
|
Number(f.min_deposit) * Number(f.percentage) / 100,
|
|
4584
4584
|
Number(f.max_promo_amt)
|
|
@@ -4591,8 +4591,8 @@ const As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4591
4591
|
expiryTime: f.etime
|
|
4592
4592
|
};
|
|
4593
4593
|
});
|
|
4594
|
-
let s = 0, o = ((g =
|
|
4595
|
-
const d =
|
|
4594
|
+
let s = 0, o = ((g = a[0]) == null ? void 0 : g.expiryTime) || "";
|
|
4595
|
+
const d = a.map((f) => (s = Math.max(s, f.percentage), new Date(f.expiryTime) < new Date(o) && (o = f.expiryTime), {
|
|
4596
4596
|
name: f.name,
|
|
4597
4597
|
depositAmount: f.depositAmount,
|
|
4598
4598
|
promoAmount: f.promoAmount
|
|
@@ -4627,12 +4627,12 @@ const As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4627
4627
|
const n = {};
|
|
4628
4628
|
for (const t in e.data)
|
|
4629
4629
|
if (Object.prototype.hasOwnProperty.call(e.data, t)) {
|
|
4630
|
-
const
|
|
4630
|
+
const r = e.data[t];
|
|
4631
4631
|
n[t] = [];
|
|
4632
|
-
for (let
|
|
4633
|
-
const s = a
|
|
4632
|
+
for (let a = 0; a < r.length; a++) {
|
|
4633
|
+
const s = r[a];
|
|
4634
4634
|
let o = "";
|
|
4635
|
-
|
|
4635
|
+
r.length > a + 1 && (o = (Number(r[a + 1].achievement) - 1).toString()), n[t].push({
|
|
4636
4636
|
rate: s.rate,
|
|
4637
4637
|
minValue: s.achievement.toString(),
|
|
4638
4638
|
maxValue: o,
|
|
@@ -4647,12 +4647,12 @@ const As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4647
4647
|
const n = {};
|
|
4648
4648
|
for (const t in e.data)
|
|
4649
4649
|
if (Object.prototype.hasOwnProperty.call(e.data, t)) {
|
|
4650
|
-
const
|
|
4650
|
+
const r = e.data[t];
|
|
4651
4651
|
n[t] = [];
|
|
4652
|
-
for (let
|
|
4653
|
-
const s = a
|
|
4652
|
+
for (let a = 0; a < r.length; a++) {
|
|
4653
|
+
const s = r[a];
|
|
4654
4654
|
let o = "";
|
|
4655
|
-
|
|
4655
|
+
r.length > a + 1 && (o = (Number(r[a + 1].achievement) - 1).toString()), n[t].push({
|
|
4656
4656
|
rate: s.rate,
|
|
4657
4657
|
minValue: s.achievement,
|
|
4658
4658
|
maxValue: o,
|
|
@@ -4662,14 +4662,14 @@ const As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4662
4662
|
}
|
|
4663
4663
|
return n;
|
|
4664
4664
|
}, To = (e) => C(e), vo = (e) => C(e), wo = (e) => {
|
|
4665
|
-
var n, t,
|
|
4665
|
+
var n, t, r, a, s;
|
|
4666
4666
|
return {
|
|
4667
4667
|
status: e.status == 1,
|
|
4668
4668
|
message: e.status == 1 ? e.message ?? "" : e.errormessage ?? "",
|
|
4669
4669
|
default: ((n = e.data) == null ? void 0 : n.default) ?? [],
|
|
4670
4670
|
online: ((t = e.data) == null ? void 0 : t.online) ?? [],
|
|
4671
|
-
mycard: ((
|
|
4672
|
-
qrcode: ((
|
|
4671
|
+
mycard: ((r = e.data) == null ? void 0 : r.mycard) ?? [],
|
|
4672
|
+
qrcode: ((a = e.data) == null ? void 0 : a.qrcode) ?? [],
|
|
4673
4673
|
personal: ((s = e.data) == null ? void 0 : s.personal) ?? []
|
|
4674
4674
|
};
|
|
4675
4675
|
}, it = (e) => ({
|
|
@@ -4724,14 +4724,14 @@ const As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4724
4724
|
status: e.status == 1,
|
|
4725
4725
|
message: e.status == 1 ? e.message ?? "" : e.errormessage ?? "",
|
|
4726
4726
|
countryList: ((n = e.data) == null ? void 0 : n.map((t) => {
|
|
4727
|
-
var
|
|
4727
|
+
var r, a;
|
|
4728
4728
|
return {
|
|
4729
4729
|
countryIndex: t.countryindex,
|
|
4730
4730
|
currencyName: t.currency_name ?? "",
|
|
4731
4731
|
label: t.label,
|
|
4732
4732
|
currencyRate: {
|
|
4733
|
-
depositCurrencyRate: ((
|
|
4734
|
-
withdrawCurrencyRate: ((
|
|
4733
|
+
depositCurrencyRate: ((r = t.currency_rate) == null ? void 0 : r.currency_rate_deposit) ?? "",
|
|
4734
|
+
withdrawCurrencyRate: ((a = t.currency_rate) == null ? void 0 : a.currency_rate_withdraw) ?? ""
|
|
4735
4735
|
}
|
|
4736
4736
|
};
|
|
4737
4737
|
})) ?? []
|
|
@@ -4760,15 +4760,15 @@ const As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4760
4760
|
}, qo = (e) => {
|
|
4761
4761
|
var n;
|
|
4762
4762
|
return ((n = e.mdProductMaster) == null ? void 0 : n.map((t) => {
|
|
4763
|
-
var
|
|
4763
|
+
var r;
|
|
4764
4764
|
return {
|
|
4765
4765
|
id: t.id,
|
|
4766
4766
|
name: t.name,
|
|
4767
|
-
product: ((
|
|
4768
|
-
id:
|
|
4769
|
-
name:
|
|
4770
|
-
platformId:
|
|
4771
|
-
com:
|
|
4767
|
+
product: ((r = t.platformproduct) == null ? void 0 : r.map((a) => ({
|
|
4768
|
+
id: a.id,
|
|
4769
|
+
name: a.name,
|
|
4770
|
+
platformId: a.id_PlatformMaster,
|
|
4771
|
+
com: a.com
|
|
4772
4772
|
}))) ?? []
|
|
4773
4773
|
};
|
|
4774
4774
|
})) ?? [];
|
|
@@ -4855,10 +4855,10 @@ const As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4855
4855
|
password: e.password
|
|
4856
4856
|
});
|
|
4857
4857
|
var Ue = /* @__PURE__ */ ((e) => (e.toPlatform = "transferIn", e.toWallet = "transferOut", e))(Ue || {});
|
|
4858
|
-
const
|
|
4858
|
+
const ri = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4859
4859
|
__proto__: null,
|
|
4860
4860
|
TransferMethod: Ue
|
|
4861
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4861
|
+
}, Symbol.toStringTag, { value: "Module" })), ai = (e) => {
|
|
4862
4862
|
var n;
|
|
4863
4863
|
return {
|
|
4864
4864
|
currentPage: e.mdGameCreditLimitTransfers.current_page,
|
|
@@ -4885,15 +4885,15 @@ const ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4885
4885
|
}))) ?? []
|
|
4886
4886
|
};
|
|
4887
4887
|
}, oi = (e) => {
|
|
4888
|
-
var n, t,
|
|
4888
|
+
var n, t, r, a, s, o, d, g, f, b, D;
|
|
4889
4889
|
return {
|
|
4890
4890
|
status: e.status == 1,
|
|
4891
4891
|
message: e.status == 1 ? e.message ?? "" : e.errormessage ?? "",
|
|
4892
4892
|
data: {
|
|
4893
4893
|
total: (n = e.data) != null && n.total ? {
|
|
4894
4894
|
bet: x(((t = e.data) == null ? void 0 : t.total.bet) ?? 0),
|
|
4895
|
-
activeBet: x(((
|
|
4896
|
-
validBet: x(((
|
|
4895
|
+
activeBet: x(((r = e.data) == null ? void 0 : r.total.activebet) ?? 0),
|
|
4896
|
+
validBet: x(((a = e.data) == null ? void 0 : a.total.validbet) ?? 0),
|
|
4897
4897
|
payout: x(((s = e.data) == null ? void 0 : s.total.payout) ?? 0)
|
|
4898
4898
|
} : {
|
|
4899
4899
|
bet: "0.00",
|
|
@@ -4924,14 +4924,14 @@ const ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4924
4924
|
}
|
|
4925
4925
|
};
|
|
4926
4926
|
}, ii = (e) => {
|
|
4927
|
-
var n, t,
|
|
4927
|
+
var n, t, r;
|
|
4928
4928
|
return {
|
|
4929
4929
|
status: e.status == 1,
|
|
4930
4930
|
message: e.status == 1 ? e.message ?? "" : e.errormessage ?? "",
|
|
4931
4931
|
data: {
|
|
4932
4932
|
key: ((n = e.data) == null ? void 0 : n.key) ?? "",
|
|
4933
4933
|
qrcode: ((t = e.data) == null ? void 0 : t.qrcode) ?? "",
|
|
4934
|
-
binded: ((
|
|
4934
|
+
binded: ((r = e.data) == null ? void 0 : r.binded) ?? !1
|
|
4935
4935
|
}
|
|
4936
4936
|
};
|
|
4937
4937
|
}, ui = (e) => C(e), li = (e) => {
|
|
@@ -4945,27 +4945,27 @@ const ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4945
4945
|
}))) ?? []
|
|
4946
4946
|
};
|
|
4947
4947
|
}, ci = (e) => C(e), di = (e) => {
|
|
4948
|
-
var n, t,
|
|
4948
|
+
var n, t, r;
|
|
4949
4949
|
return {
|
|
4950
4950
|
status: e.status == 1,
|
|
4951
4951
|
message: e.status == 1 ? e.message ?? "" : e.errormessage ?? "",
|
|
4952
4952
|
data: {
|
|
4953
|
-
companyCount: ((n = e.data.companyRCount) == null ? void 0 : n.map((
|
|
4954
|
-
key:
|
|
4955
|
-
count:
|
|
4953
|
+
companyCount: ((n = e.data.companyRCount) == null ? void 0 : n.map((a) => ({
|
|
4954
|
+
key: a.key,
|
|
4955
|
+
count: a.count
|
|
4956
4956
|
}))) ?? [],
|
|
4957
|
-
prizeCount: ((t = e.data.prizeRCount) == null ? void 0 : t.map((
|
|
4958
|
-
key:
|
|
4959
|
-
count:
|
|
4957
|
+
prizeCount: ((t = e.data.prizeRCount) == null ? void 0 : t.map((a) => ({
|
|
4958
|
+
key: a.key,
|
|
4959
|
+
count: a.count
|
|
4960
4960
|
}))) ?? [],
|
|
4961
|
-
list: ((
|
|
4962
|
-
dimension:
|
|
4963
|
-
combination:
|
|
4964
|
-
prizePosition:
|
|
4965
|
-
drawIdentifier:
|
|
4966
|
-
drawTimestamp:
|
|
4967
|
-
companyId:
|
|
4968
|
-
companyName:
|
|
4961
|
+
list: ((r = e.data.list) == null ? void 0 : r.map((a) => ({
|
|
4962
|
+
dimension: a.combination_dimension,
|
|
4963
|
+
combination: a.combination_combination,
|
|
4964
|
+
prizePosition: a.combination_position,
|
|
4965
|
+
drawIdentifier: a.draw.draw_identifier,
|
|
4966
|
+
drawTimestamp: a.draw.draw_tmactive,
|
|
4967
|
+
companyId: a.company.company_id,
|
|
4968
|
+
companyName: a.company.company_name
|
|
4969
4969
|
}))) ?? []
|
|
4970
4970
|
}
|
|
4971
4971
|
};
|
|
@@ -5021,32 +5021,38 @@ const pi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5021
5021
|
deposit: n.deposit,
|
|
5022
5022
|
payout: n.payout
|
|
5023
5023
|
})), _i = (e) => ({
|
|
5024
|
-
status: e.status,
|
|
5024
|
+
status: e.status == 1,
|
|
5025
5025
|
message: e.msg ?? ""
|
|
5026
|
-
}), Ti = (e) =>
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5026
|
+
}), Ti = (e) => {
|
|
5027
|
+
var n, t, r, a;
|
|
5028
|
+
return {
|
|
5029
|
+
status: e.status == 1,
|
|
5030
|
+
message: "",
|
|
5031
|
+
data: {
|
|
5032
|
+
reward: {
|
|
5033
|
+
purchasable: ((n = e.data) == null ? void 0 : n.purchasable) ?? !1,
|
|
5034
|
+
collectable: ((t = e.data) == null ? void 0 : t.collectable) ?? !1,
|
|
5035
|
+
remainingDay: ((r = e.data) == null ? void 0 : r.remaining) ?? "0"
|
|
5036
|
+
},
|
|
5037
|
+
cardList: ((a = e.data) == null ? void 0 : a.settings.map((s) => ({
|
|
5038
|
+
name: s.settingname ?? "",
|
|
5039
|
+
code: s.code ?? "",
|
|
5040
|
+
price: s.price ?? "",
|
|
5041
|
+
period: s.period ?? "",
|
|
5042
|
+
profileId: s.profileid ?? "",
|
|
5043
|
+
dailyReward: {
|
|
5044
|
+
amount: s.daily_reward,
|
|
5045
|
+
percentage: (Number(s.daily_reward ?? "") / Number(s.price ?? "") * 100).toFixed(0)
|
|
5046
|
+
},
|
|
5047
|
+
instantReward: {
|
|
5048
|
+
amount: s.instant_reward,
|
|
5049
|
+
percentage: (Number(s.instant_reward ?? "") / Number(s.price ?? "") * 100).toFixed(0)
|
|
5050
|
+
}
|
|
5051
|
+
}))) ?? []
|
|
5052
|
+
}
|
|
5053
|
+
};
|
|
5048
5054
|
}, vi = (e) => ({
|
|
5049
|
-
status: e.status,
|
|
5055
|
+
status: e.status == 1,
|
|
5050
5056
|
message: e.msg ?? ""
|
|
5051
5057
|
}), wi = (e) => {
|
|
5052
5058
|
var n, t;
|
|
@@ -5077,10 +5083,10 @@ const pi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5077
5083
|
amount: n
|
|
5078
5084
|
};
|
|
5079
5085
|
};
|
|
5080
|
-
var
|
|
5086
|
+
var re = /* @__PURE__ */ ((e) => (e.inProgress = "inProgress", e.collectable = "collectable", e.collected = "collected", e))(re || {});
|
|
5081
5087
|
const Oi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5082
5088
|
__proto__: null,
|
|
5083
|
-
MissionStatus:
|
|
5089
|
+
MissionStatus: re
|
|
5084
5090
|
}, Symbol.toStringTag, { value: "Module" })), Mi = (e) => {
|
|
5085
5091
|
if (e.status === 0)
|
|
5086
5092
|
return {
|
|
@@ -5094,18 +5100,18 @@ const Oi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5094
5100
|
period: `${Ut(e.data.datefrom)} ~ ${Ut(e.data.dateto)}`,
|
|
5095
5101
|
gift: {
|
|
5096
5102
|
deposit: {
|
|
5097
|
-
current: n.filter((
|
|
5103
|
+
current: n.filter((r) => r.status == re.collected).length,
|
|
5098
5104
|
total: n.length,
|
|
5099
5105
|
percentage: $t(n)
|
|
5100
5106
|
},
|
|
5101
5107
|
activeBet: {
|
|
5102
|
-
current: t.filter((
|
|
5108
|
+
current: t.filter((r) => r.status == re.collected).length,
|
|
5103
5109
|
total: t.length,
|
|
5104
5110
|
percentage: $t(t)
|
|
5105
5111
|
},
|
|
5106
5112
|
grandPrize: {
|
|
5107
5113
|
countDownTimestamp: ki(e.data.dateto),
|
|
5108
|
-
status: e.data.final_claimable ? e.data.final_collected === "1" ?
|
|
5114
|
+
status: e.data.final_claimable ? e.data.final_collected === "1" ? re.collected : re.collectable : re.inProgress,
|
|
5109
5115
|
prize: e.data.reward
|
|
5110
5116
|
}
|
|
5111
5117
|
},
|
|
@@ -5114,22 +5120,22 @@ const Oi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5114
5120
|
}
|
|
5115
5121
|
};
|
|
5116
5122
|
}, Bt = (e, n) => e.data.tier.filter((t) => t.type == n).map((t) => {
|
|
5117
|
-
const
|
|
5123
|
+
const r = Math.min(t.achieve ?? 0, t.requirement);
|
|
5118
5124
|
return {
|
|
5119
5125
|
id: t.transid,
|
|
5120
5126
|
reward: t.reward,
|
|
5121
|
-
status: t.claimable !== "1" ?
|
|
5127
|
+
status: t.claimable !== "1" ? re.inProgress : t.collected === "1" ? re.collected : re.collectable,
|
|
5122
5128
|
progress: {
|
|
5123
|
-
current:
|
|
5129
|
+
current: r,
|
|
5124
5130
|
total: t.requirement,
|
|
5125
|
-
currentPercentage: (
|
|
5131
|
+
currentPercentage: (r / t.requirement * 100).toFixed(0)
|
|
5126
5132
|
}
|
|
5127
5133
|
};
|
|
5128
5134
|
}), Ut = (e) => {
|
|
5129
|
-
const n = new Date(e), t = n.getDate().toString().padStart(2, "0"),
|
|
5130
|
-
return `${t}/${
|
|
5135
|
+
const n = new Date(e), t = n.getDate().toString().padStart(2, "0"), r = (n.getMonth() + 1).toString().padStart(2, "0"), a = n.getHours().toString().padStart(2, "0"), s = n.getMinutes().toString().padStart(2, "0");
|
|
5136
|
+
return `${t}/${r} ${a}:${s}`;
|
|
5131
5137
|
}, $t = (e) => {
|
|
5132
|
-
const n = e.reduce((
|
|
5138
|
+
const n = e.reduce((r, a) => r + parseFloat(a.reward), 0), t = e.reduce((r, a) => r + a.progress.total, 0);
|
|
5133
5139
|
return t > 0 ? (n / t * 100).toFixed(2) : "0";
|
|
5134
5140
|
}, ki = (e) => {
|
|
5135
5141
|
const n = (/* @__PURE__ */ new Date()).getTime(), t = new Date(e).getTime();
|
|
@@ -5181,7 +5187,7 @@ const Li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5181
5187
|
};
|
|
5182
5188
|
let n = null;
|
|
5183
5189
|
if (e.data != null) {
|
|
5184
|
-
const t = e.data.achieve ?? 0,
|
|
5190
|
+
const t = e.data.achieve ?? 0, r = e.data.achieve ?? 0, a = t / r * 100;
|
|
5185
5191
|
n = {
|
|
5186
5192
|
buttonStatus: e.data.tier.filter(
|
|
5187
5193
|
(o) => o.claimable == "1" && o.collected != "1"
|
|
@@ -5190,8 +5196,8 @@ const Li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5190
5196
|
dateTo: e.data.dateto,
|
|
5191
5197
|
progress: {
|
|
5192
5198
|
current: t,
|
|
5193
|
-
total:
|
|
5194
|
-
currentPercentage:
|
|
5199
|
+
total: r,
|
|
5200
|
+
currentPercentage: a
|
|
5195
5201
|
},
|
|
5196
5202
|
list: e.data.tier.map((o) => ({
|
|
5197
5203
|
total: o.requirement,
|
|
@@ -5221,17 +5227,17 @@ const Li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5221
5227
|
status: e.status == 1,
|
|
5222
5228
|
message: e.msg ?? "",
|
|
5223
5229
|
data: ((n = e.data) == null ? void 0 : n.map((t) => {
|
|
5224
|
-
var
|
|
5230
|
+
var r;
|
|
5225
5231
|
return {
|
|
5226
5232
|
name: t.name,
|
|
5227
|
-
groups: ((
|
|
5233
|
+
groups: ((r = t.groups) == null ? void 0 : r.map((a) => {
|
|
5228
5234
|
var s;
|
|
5229
5235
|
return {
|
|
5230
|
-
min:
|
|
5231
|
-
max:
|
|
5232
|
-
multiplier:
|
|
5233
|
-
name:
|
|
5234
|
-
vipSetting: ((s =
|
|
5236
|
+
min: a.min,
|
|
5237
|
+
max: a.max,
|
|
5238
|
+
multiplier: a.multiply,
|
|
5239
|
+
name: a.displayName,
|
|
5240
|
+
vipSetting: ((s = a.settings) == null ? void 0 : s.map((o) => {
|
|
5235
5241
|
var d;
|
|
5236
5242
|
return {
|
|
5237
5243
|
name: o.displayName,
|
|
@@ -5280,9 +5286,9 @@ const Li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5280
5286
|
message: e.msg ?? "",
|
|
5281
5287
|
data: null
|
|
5282
5288
|
};
|
|
5283
|
-
const n = e.data.filter((
|
|
5284
|
-
code:
|
|
5285
|
-
times:
|
|
5289
|
+
const n = e.data.filter((r) => r.status == 1).sort((r, a) => Number(a.seq) - Number(r.seq)).map((r) => r.code), t = e.data.filter((r) => r.popout_status == 1).sort((r, a) => Number(r.popout_seq) - Number(a.popout_seq)).map((r) => ({
|
|
5290
|
+
code: r.code,
|
|
5291
|
+
times: r.times
|
|
5286
5292
|
}));
|
|
5287
5293
|
return {
|
|
5288
5294
|
status: e.status,
|
|
@@ -5299,13 +5305,13 @@ const Li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5299
5305
|
data: $i(t)
|
|
5300
5306
|
}))) ?? [];
|
|
5301
5307
|
}, $i = (e) => {
|
|
5302
|
-
const n = [], t = Object.entries(e).filter(([
|
|
5303
|
-
for (const [,
|
|
5304
|
-
const
|
|
5305
|
-
for (let o = 0; o <
|
|
5306
|
-
const d =
|
|
5308
|
+
const n = [], t = Object.entries(e).filter(([r]) => r !== "name");
|
|
5309
|
+
for (const [, r] of t) {
|
|
5310
|
+
const a = r, s = [];
|
|
5311
|
+
for (let o = 0; o < a.length; o++) {
|
|
5312
|
+
const d = a[o];
|
|
5307
5313
|
let g = "";
|
|
5308
|
-
o + 1 <
|
|
5314
|
+
o + 1 < a.length && (g = (Number(a[o + 1].achievement) - 1).toString()), s.push({
|
|
5309
5315
|
minValue: d.achievement.toString(),
|
|
5310
5316
|
maxValue: g,
|
|
5311
5317
|
rate: d.rate,
|
|
@@ -5393,7 +5399,7 @@ const tu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5393
5399
|
__proto__: null,
|
|
5394
5400
|
CmsCategory: Tt
|
|
5395
5401
|
}, Symbol.toStringTag, { value: "Module" })), nu = async (e) => {
|
|
5396
|
-
var n, t,
|
|
5402
|
+
var n, t, r, a, s, o, d, g, f, b, D, _, p, M, O, H, B, w, I, T, k, q, le, se, ce, de;
|
|
5397
5403
|
try {
|
|
5398
5404
|
e.findIndex((m) => m.name === c.vipList) !== -1 && e.push(
|
|
5399
5405
|
{
|
|
@@ -5501,9 +5507,9 @@ const tu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5501
5507
|
name: m.name,
|
|
5502
5508
|
query: btoa(m.query)
|
|
5503
5509
|
}))
|
|
5504
|
-
}, Ge = await
|
|
5510
|
+
}, Ge = await ae.post(
|
|
5505
5511
|
"/graph/jwt",
|
|
5506
|
-
|
|
5512
|
+
Xa(JSON.stringify(ze))
|
|
5507
5513
|
), i = {
|
|
5508
5514
|
status: 200,
|
|
5509
5515
|
message: "",
|
|
@@ -5511,7 +5517,7 @@ const tu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5511
5517
|
};
|
|
5512
5518
|
for (const m of Ge.data.responses) {
|
|
5513
5519
|
m.error != null && m.error.code != 200 && (i.status = m.error.code, i.message = m.error.message);
|
|
5514
|
-
const v = m.attributes !== null && m.attributes !== void 0 ?
|
|
5520
|
+
const v = m.attributes !== null && m.attributes !== void 0 ? Za(m.attributes) : null, u = m.name, l = v ? JSON.parse(v) : null;
|
|
5515
5521
|
if (!l)
|
|
5516
5522
|
i.result[u] = null;
|
|
5517
5523
|
else
|
|
@@ -5637,10 +5643,10 @@ const tu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5637
5643
|
i.result[u] = no(l);
|
|
5638
5644
|
break;
|
|
5639
5645
|
case c.fishGameList:
|
|
5640
|
-
i.result[u] =
|
|
5646
|
+
i.result[u] = ro(l);
|
|
5641
5647
|
break;
|
|
5642
5648
|
case c.slotGameList:
|
|
5643
|
-
i.result[u] =
|
|
5649
|
+
i.result[u] = ao(l);
|
|
5644
5650
|
break;
|
|
5645
5651
|
case c.getTurnOverRewardData:
|
|
5646
5652
|
i.result[u] = so(
|
|
@@ -5877,7 +5883,7 @@ const tu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5877
5883
|
i.result[u] = ni(l);
|
|
5878
5884
|
break;
|
|
5879
5885
|
case c.transferReport:
|
|
5880
|
-
i.result[u] =
|
|
5886
|
+
i.result[u] = ai(l);
|
|
5881
5887
|
break;
|
|
5882
5888
|
case c.agTransferCreditReport:
|
|
5883
5889
|
i.result[u] = si(
|
|
@@ -6095,10 +6101,10 @@ const tu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6095
6101
|
}
|
|
6096
6102
|
i.result.getIncentiveData = m;
|
|
6097
6103
|
}
|
|
6098
|
-
if (c.vipList in i.result && ((
|
|
6104
|
+
if (c.vipList in i.result && ((r = i.result) != null && r.vipList)) {
|
|
6099
6105
|
const m = i.result.vipList;
|
|
6100
6106
|
let v = 4;
|
|
6101
|
-
if (c.getSetting in i.result && ((
|
|
6107
|
+
if (c.getSetting in i.result && ((a = i.result) != null && a.getSetting && (v = i.result.getSetting.vipCalculation), delete i.result.getSetting), c.vipStatus in i.result) {
|
|
6102
6108
|
if ((s = i.result) != null && s.vipStatus) {
|
|
6103
6109
|
const u = i.result.vipStatus, {
|
|
6104
6110
|
current_grade_id: l,
|
|
@@ -6142,7 +6148,7 @@ const tu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6142
6148
|
current: L,
|
|
6143
6149
|
percentage: V > 100 ? 100 : V
|
|
6144
6150
|
}, m.bonus.month.status = u.month.status;
|
|
6145
|
-
const { monthRemainingTime: Z, monthProgressPercentage: G } =
|
|
6151
|
+
const { monthRemainingTime: Z, monthProgressPercentage: G } = as();
|
|
6146
6152
|
m.bonus.month.timestamp = {
|
|
6147
6153
|
current: Z,
|
|
6148
6154
|
percentage: G > 100 ? 100 : G
|
|
@@ -6448,16 +6454,16 @@ const tu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6448
6454
|
result: {}
|
|
6449
6455
|
});
|
|
6450
6456
|
}
|
|
6451
|
-
},
|
|
6457
|
+
}, ru = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6452
6458
|
__proto__: null,
|
|
6453
6459
|
post: nu
|
|
6454
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6460
|
+
}, Symbol.toStringTag, { value: "Module" })), au = async (e) => {
|
|
6455
6461
|
let n = {
|
|
6456
6462
|
status: 200,
|
|
6457
6463
|
message: ""
|
|
6458
6464
|
};
|
|
6459
6465
|
try {
|
|
6460
|
-
await
|
|
6466
|
+
await ae.post("/loginVia/telegram", e), n = {
|
|
6461
6467
|
status: 200,
|
|
6462
6468
|
message: ""
|
|
6463
6469
|
};
|
|
@@ -6470,24 +6476,24 @@ const tu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6470
6476
|
return n;
|
|
6471
6477
|
}, su = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6472
6478
|
__proto__: null,
|
|
6473
|
-
call:
|
|
6479
|
+
call: au
|
|
6474
6480
|
}, Symbol.toStringTag, { value: "Module" })), ou = async (e, n) => {
|
|
6475
6481
|
let t = {
|
|
6476
6482
|
status: 200,
|
|
6477
6483
|
message: ""
|
|
6478
6484
|
};
|
|
6479
6485
|
try {
|
|
6480
|
-
await
|
|
6486
|
+
await ae.post("/graph/auth/sesh", {
|
|
6481
6487
|
usr: e,
|
|
6482
6488
|
pwd: n
|
|
6483
6489
|
}), t = {
|
|
6484
6490
|
status: 200,
|
|
6485
6491
|
message: ""
|
|
6486
6492
|
};
|
|
6487
|
-
} catch (
|
|
6493
|
+
} catch (r) {
|
|
6488
6494
|
t = {
|
|
6489
|
-
status:
|
|
6490
|
-
message:
|
|
6495
|
+
status: r.status || 500,
|
|
6496
|
+
message: r.message
|
|
6491
6497
|
};
|
|
6492
6498
|
}
|
|
6493
6499
|
return t;
|
|
@@ -6500,7 +6506,7 @@ const tu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6500
6506
|
message: ""
|
|
6501
6507
|
};
|
|
6502
6508
|
try {
|
|
6503
|
-
await
|
|
6509
|
+
await ae.post("/graph/auth/sesh/logout");
|
|
6504
6510
|
} catch (n) {
|
|
6505
6511
|
e = {
|
|
6506
6512
|
status: n.status || 500,
|
|
@@ -6528,7 +6534,7 @@ const tu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6528
6534
|
...Vt
|
|
6529
6535
|
};
|
|
6530
6536
|
try {
|
|
6531
|
-
const t = (await
|
|
6537
|
+
const t = (await ae.get("/graph/autoregister")).data;
|
|
6532
6538
|
e.data = {
|
|
6533
6539
|
status: t.status == 1,
|
|
6534
6540
|
message: t.message ?? "",
|
|
@@ -6561,20 +6567,20 @@ const tu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6561
6567
|
...At
|
|
6562
6568
|
};
|
|
6563
6569
|
try {
|
|
6564
|
-
const
|
|
6570
|
+
const r = await ae.post("/graph/setlocale", {
|
|
6565
6571
|
language: e,
|
|
6566
6572
|
udid: n ?? ""
|
|
6567
|
-
}),
|
|
6568
|
-
atob(
|
|
6573
|
+
}), a = JSON.parse(
|
|
6574
|
+
atob(r.data.responses[0].attributes)
|
|
6569
6575
|
);
|
|
6570
6576
|
t.data = {
|
|
6571
|
-
status:
|
|
6572
|
-
message:
|
|
6577
|
+
status: a.status == 1,
|
|
6578
|
+
message: a.message ?? ""
|
|
6573
6579
|
};
|
|
6574
|
-
} catch (
|
|
6580
|
+
} catch (r) {
|
|
6575
6581
|
t = {
|
|
6576
|
-
status:
|
|
6577
|
-
message:
|
|
6582
|
+
status: r.status || 500,
|
|
6583
|
+
message: r.message,
|
|
6578
6584
|
...At
|
|
6579
6585
|
};
|
|
6580
6586
|
}
|
|
@@ -6582,7 +6588,7 @@ const tu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6582
6588
|
}, fu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6583
6589
|
__proto__: null,
|
|
6584
6590
|
call: mu
|
|
6585
|
-
}, Symbol.toStringTag, { value: "Module" })), gu = async (e, n, t,
|
|
6591
|
+
}, Symbol.toStringTag, { value: "Module" })), gu = async (e, n, t, r, a) => {
|
|
6586
6592
|
let s = {
|
|
6587
6593
|
status: 200,
|
|
6588
6594
|
message: "",
|
|
@@ -6592,13 +6598,13 @@ const tu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6592
6598
|
}
|
|
6593
6599
|
};
|
|
6594
6600
|
try {
|
|
6595
|
-
const d = (await
|
|
6601
|
+
const d = (await ae.post(`/loadgame/${e}`, {
|
|
6596
6602
|
wanturl: 1,
|
|
6597
6603
|
extra: {
|
|
6598
6604
|
Stage: n,
|
|
6599
6605
|
SportId: t,
|
|
6600
|
-
tagid:
|
|
6601
|
-
MatchId:
|
|
6606
|
+
tagid: r,
|
|
6607
|
+
MatchId: a
|
|
6602
6608
|
}
|
|
6603
6609
|
})).data;
|
|
6604
6610
|
s = {
|
|
@@ -6634,27 +6640,27 @@ const tu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6634
6640
|
}
|
|
6635
6641
|
}
|
|
6636
6642
|
}, bu = async () => {
|
|
6637
|
-
var n, t,
|
|
6643
|
+
var n, t, r;
|
|
6638
6644
|
let e = {
|
|
6639
6645
|
status: 200,
|
|
6640
6646
|
message: "",
|
|
6641
6647
|
...Qt
|
|
6642
6648
|
};
|
|
6643
6649
|
try {
|
|
6644
|
-
const s = (await
|
|
6650
|
+
const s = (await ae.get("/graph/getMaintenanceMode")).data;
|
|
6645
6651
|
e.data = {
|
|
6646
6652
|
status: s.status == 1,
|
|
6647
6653
|
message: s.msg ?? "",
|
|
6648
6654
|
data: {
|
|
6649
6655
|
isMaintenance: ((n = s.data) == null ? void 0 : n.maintenanceMode) == "1",
|
|
6650
6656
|
startTime: ((t = s.data) == null ? void 0 : t.startTime) ?? "",
|
|
6651
|
-
endTime: ((
|
|
6657
|
+
endTime: ((r = s.data) == null ? void 0 : r.endTime) ?? ""
|
|
6652
6658
|
}
|
|
6653
6659
|
};
|
|
6654
|
-
} catch (
|
|
6660
|
+
} catch (a) {
|
|
6655
6661
|
e = {
|
|
6656
|
-
status:
|
|
6657
|
-
message:
|
|
6662
|
+
status: a.status || 500,
|
|
6663
|
+
message: a.message,
|
|
6658
6664
|
...Qt
|
|
6659
6665
|
};
|
|
6660
6666
|
}
|
|
@@ -6744,11 +6750,11 @@ const tu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6744
6750
|
__proto__: null
|
|
6745
6751
|
}, Symbol.toStringTag, { value: "Module" })), nl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6746
6752
|
__proto__: null
|
|
6747
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6753
|
+
}, Symbol.toStringTag, { value: "Module" })), rl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6748
6754
|
__proto__: null
|
|
6749
6755
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6750
6756
|
var yn = /* @__PURE__ */ ((e) => (e.default = "default", e.online = "online", e.mycard = "mycard", e.qrcode = "qrcode", e.personal = "personal", e))(yn || {});
|
|
6751
|
-
const
|
|
6757
|
+
const al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6752
6758
|
__proto__: null,
|
|
6753
6759
|
ImageCategory: yn
|
|
6754
6760
|
}, Symbol.toStringTag, { value: "Module" })), sl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -6855,10 +6861,10 @@ const rl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6855
6861
|
__proto__: null
|
|
6856
6862
|
}, Symbol.toStringTag, { value: "Module" })), nc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6857
6863
|
__proto__: null
|
|
6858
|
-
}, Symbol.toStringTag, { value: "Module" })), ac = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6859
|
-
__proto__: null
|
|
6860
6864
|
}, Symbol.toStringTag, { value: "Module" })), rc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6861
6865
|
__proto__: null
|
|
6866
|
+
}, Symbol.toStringTag, { value: "Module" })), ac = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6867
|
+
__proto__: null
|
|
6862
6868
|
}, Symbol.toStringTag, { value: "Module" })), sc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6863
6869
|
__proto__: null
|
|
6864
6870
|
}, Symbol.toStringTag, { value: "Module" })), oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -6900,7 +6906,7 @@ const rl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6900
6906
|
}, Symbol.toStringTag, { value: "Module" })), Pc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6901
6907
|
__proto__: null
|
|
6902
6908
|
}, Symbol.toStringTag, { value: "Module" })), Oc = {
|
|
6903
|
-
api:
|
|
6909
|
+
api: ru,
|
|
6904
6910
|
config: vn,
|
|
6905
6911
|
telegramLoginApi: su,
|
|
6906
6912
|
loginApi: iu,
|
|
@@ -6955,8 +6961,8 @@ const rl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6955
6961
|
playGame: Zt,
|
|
6956
6962
|
requestUpdateMobileTacCode: tl,
|
|
6957
6963
|
submitUpdateMobileTacCode: nl,
|
|
6958
|
-
getVerifyPromo:
|
|
6959
|
-
getImageType:
|
|
6964
|
+
getVerifyPromo: rl,
|
|
6965
|
+
getImageType: al,
|
|
6960
6966
|
getValidateType: sl,
|
|
6961
6967
|
updateProfilePictureType: ol,
|
|
6962
6968
|
readMailType: il,
|
|
@@ -6990,7 +6996,7 @@ const rl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6990
6996
|
referralProfileType: jl,
|
|
6991
6997
|
referralMemberProfileType: Nl,
|
|
6992
6998
|
registerActionType: Ll,
|
|
6993
|
-
transferReportType:
|
|
6999
|
+
transferReportType: ri,
|
|
6994
7000
|
agTransferCreditReportType: Fl,
|
|
6995
7001
|
betReportType: zl,
|
|
6996
7002
|
getTwoFactorAuthenticateType: Gl,
|
|
@@ -7013,8 +7019,8 @@ const rl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7013
7019
|
getIncentiveData: tc,
|
|
7014
7020
|
getIncentiveRebate: nc,
|
|
7015
7021
|
getMissionData: Oi,
|
|
7016
|
-
getMissionClaim:
|
|
7017
|
-
registerFormType:
|
|
7022
|
+
getMissionClaim: rc,
|
|
7023
|
+
registerFormType: ac,
|
|
7018
7024
|
getFavouriteGameType: sc,
|
|
7019
7025
|
updateFavouriteGameType: oc,
|
|
7020
7026
|
requestForgetUsernameType: ic,
|
|
@@ -7042,7 +7048,7 @@ export {
|
|
|
7042
7048
|
ku as addBankCardType,
|
|
7043
7049
|
Fl as agTransferCreditReportType,
|
|
7044
7050
|
Tu as announcementType,
|
|
7045
|
-
|
|
7051
|
+
ru as api,
|
|
7046
7052
|
fs as apiType,
|
|
7047
7053
|
ml as applyPromoType,
|
|
7048
7054
|
gl as applyRedPacketType,
|
|
@@ -7079,7 +7085,7 @@ export {
|
|
|
7079
7085
|
Nu as getEventTokenType,
|
|
7080
7086
|
Lu as getExtraGameType,
|
|
7081
7087
|
sc as getFavouriteGameType,
|
|
7082
|
-
|
|
7088
|
+
al as getImageType,
|
|
7083
7089
|
tc as getIncentiveData,
|
|
7084
7090
|
nc as getIncentiveRebate,
|
|
7085
7091
|
Vu as getInviteRewardClaimType,
|
|
@@ -7087,7 +7093,7 @@ export {
|
|
|
7087
7093
|
Eu as getInviteRewardReportType,
|
|
7088
7094
|
Xu as getInviteRewardSettingType,
|
|
7089
7095
|
yu as getMaintenanceModeApi,
|
|
7090
|
-
|
|
7096
|
+
rc as getMissionClaim,
|
|
7091
7097
|
Oi as getMissionData,
|
|
7092
7098
|
pc as getPopoutItemType,
|
|
7093
7099
|
Vl as getReliefFundData,
|
|
@@ -7108,7 +7114,7 @@ export {
|
|
|
7108
7114
|
ll as getUserProfileType,
|
|
7109
7115
|
dl as getUsernameByReferType,
|
|
7110
7116
|
sl as getValidateType,
|
|
7111
|
-
|
|
7117
|
+
rl as getVerifyPromo,
|
|
7112
7118
|
Ql as getWeekCardClaim,
|
|
7113
7119
|
Xl as getWeekCardData,
|
|
7114
7120
|
Dc as getWheelDataType,
|
|
@@ -7134,7 +7140,7 @@ export {
|
|
|
7134
7140
|
Nl as referralMemberProfileType,
|
|
7135
7141
|
jl as referralProfileType,
|
|
7136
7142
|
Ll as registerActionType,
|
|
7137
|
-
|
|
7143
|
+
ac as registerFormType,
|
|
7138
7144
|
Ku as requestForgetPasswordType,
|
|
7139
7145
|
ic as requestForgetUsernameType,
|
|
7140
7146
|
cl as requestTacCodeType,
|
|
@@ -7162,7 +7168,7 @@ export {
|
|
|
7162
7168
|
su as telegramLoginApi,
|
|
7163
7169
|
As as transactionReportType,
|
|
7164
7170
|
yl as transferProcessType,
|
|
7165
|
-
|
|
7171
|
+
ri as transferReportType,
|
|
7166
7172
|
Jl as transferSettingType,
|
|
7167
7173
|
bl as transferToMainType,
|
|
7168
7174
|
Kl as transferType,
|