@everymatrix/player-account-controller 1.75.0 → 1.76.1

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.
Files changed (47) hide show
  1. package/components/{PlayerAccountController-4zAuIhXb.js → PlayerAccountController-ByH1pKyb.js} +4 -4
  2. package/components/{PlayerAccountController-B53eiCm2.cjs → PlayerAccountController-CB0hWHF5.cjs} +1 -1
  3. package/components/{PlayerAccountController-BNFenXlV.js → PlayerAccountController-CEWDE65T.js} +4 -4
  4. package/components/{PlayerAccountGamingLimitsPage2Gm16-BWA71CAl.js → PlayerAccountGamingLimitsPage2Gm16-BhxxIBRB.js} +119 -119
  5. package/components/{PlayerAccountGamingLimitsPage2Gm16--rQhVE1q.cjs → PlayerAccountGamingLimitsPage2Gm16-BzYDfg-O.cjs} +6 -6
  6. package/components/{PlayerAccountGamingLimitsPage2Gm16-CwwjENW0.js → PlayerAccountGamingLimitsPage2Gm16-ON7JEHkh.js} +536 -539
  7. package/components/{PlayerAccountGamingLimitsWrapper2-D0KtfHqJ.js → PlayerAccountGamingLimitsWrapper2-B-IU7btg.js} +1 -1
  8. package/components/{PlayerAccountGamingLimitsWrapper2-BsvByvpk.js → PlayerAccountGamingLimitsWrapper2-GKUv6Mnn.js} +1 -1
  9. package/components/{PlayerAccountGamingLimitsWrapper2-BIcWUcMl.cjs → PlayerAccountGamingLimitsWrapper2-xh6AqJmt.cjs} +1 -1
  10. package/components/PlayerAccountTransactionsHistory-BvHq23Ih.cjs +4 -0
  11. package/components/PlayerAccountTransactionsHistory-ChuZGnz_.js +1925 -0
  12. package/components/PlayerAccountTransactionsHistory-K9dyemhE.js +1956 -0
  13. package/es2015/player-account-controller.cjs +1 -1
  14. package/es2015/player-account-controller.js +1 -1
  15. package/esnext/player-account-controller.js +1 -1
  16. package/package.json +1 -1
  17. package/stencil/{checkbox-group-input_15-B47EbzkJ.js → checkbox-group-input_15-BYhnrwip.js} +1747 -1731
  18. package/stencil/{checkbox-group-input_15-BBaHCJ8m.js → checkbox-group-input_15-HwHjvct_.js} +1748 -1732
  19. package/stencil/{checkbox-group-input_15-BPXIBJ9O.cjs → checkbox-group-input_15-Mcop3LHQ.cjs} +4 -4
  20. package/stencil/{index-7c5e707a-BZ26MA7_.js → index-6e523641-078VKWzv.js} +134 -123
  21. package/stencil/index-6e523641-BzXfsijo.cjs +1 -0
  22. package/stencil/{index-7c5e707a-CVVnpkZ1.js → index-6e523641-Q8F9VHK2.js} +137 -126
  23. package/stencil/{index-13661b98-D93Apl47.js → index-c666b6e6-BVlUm5XF.js} +32 -32
  24. package/stencil/{index-13661b98-BzYpZXJ-.js → index-c666b6e6-Dg6tFb_k.js} +28 -28
  25. package/stencil/{index-13661b98-DBuU9Lk0.cjs → index-c666b6e6-rZoDoKh2.cjs} +1 -1
  26. package/stencil/{pam-change-password-af5033a0-CPFagM2l.cjs → pam-change-password-9aef79f2-C-qbI9bv.cjs} +2 -2
  27. package/stencil/{pam-change-password-af5033a0-CXI6y6VZ.js → pam-change-password-9aef79f2-D_ez_GX8.js} +2 -2
  28. package/stencil/{pam-change-password-af5033a0-BdPXYjRb.js → pam-change-password-9aef79f2-DiWK4wfJ.js} +2 -2
  29. package/stencil/pam-change-password-CzOysbF5.js +7 -0
  30. package/stencil/pam-change-password-DpPAvGik.cjs +1 -0
  31. package/stencil/pam-change-password-GW3U-yIN.js +25 -0
  32. package/stencil/user-transaction-history-8J3-J0I0.js +7 -0
  33. package/stencil/user-transaction-history-Ch7DwPng.cjs +1 -0
  34. package/stencil/user-transaction-history-DeLTrl8E.js +25 -0
  35. package/stencil/user-transaction-history_2-B4YDWP13.js +3535 -0
  36. package/stencil/user-transaction-history_2-BxjAG99A.cjs +2 -0
  37. package/stencil/user-transaction-history_2-MG1TmhMo.js +3557 -0
  38. package/components/PlayerAccountTransactionsHistory-B61bTygv.js +0 -1950
  39. package/components/PlayerAccountTransactionsHistory-D_Rh7xzG.js +0 -1919
  40. package/components/PlayerAccountTransactionsHistory-J6QX4Mo6.cjs +0 -4
  41. package/stencil/index-7c5e707a-d0LYIjGl.cjs +0 -1
  42. package/stencil/pam-change-password-9bMd9dOQ.js +0 -7
  43. package/stencil/pam-change-password-D9deCtek.cjs +0 -1
  44. package/stencil/pam-change-password-h1ivBSP6.js +0 -25
  45. package/stencil/user-transaction-history-D86WcqZY.js +0 -1627
  46. package/stencil/user-transaction-history-o1zvVNkt.js +0 -1651
  47. package/stencil/user-transaction-history-xgpDQYWU.cjs +0 -1
@@ -0,0 +1,3535 @@
1
+ import { r as Ae, g as Ee, h as u, H as it, a as ot, c as st } from "./index-6e523641-078VKWzv.js";
2
+ const ut = {
3
+ en: {
4
+ deposit: "Deposit",
5
+ withdrawals: "Withdrawals",
6
+ show: "Show",
7
+ from: "From",
8
+ to: "To",
9
+ filter: "Filter",
10
+ transactionId: "Transaction ID",
11
+ date: "Date",
12
+ amount: "Amount",
13
+ productType: "Product Type",
14
+ status: "Status",
15
+ noData: "There are no account activities",
16
+ transactionTitle: "Transaction History"
17
+ },
18
+ hr: {
19
+ deposit: "Uplate",
20
+ withdrawals: "Isplate",
21
+ show: "Prikaži",
22
+ from: "Od",
23
+ to: "Do",
24
+ filter: "Filter",
25
+ transactionId: "ID transakcije",
26
+ date: "Datum",
27
+ amount: "Iznos",
28
+ productType: "Vrsta proizvoda",
29
+ status: "Status",
30
+ noData: "Nema aktivnosti na računu",
31
+ transactionTitle: "Povijest transakcija"
32
+ }
33
+ };
34
+ class g {
35
+ constructor() {
36
+ }
37
+ static async loadCustomTranslations(a) {
38
+ try {
39
+ const t = await fetch(a, {
40
+ headers: {
41
+ "Content-Type": "application/json"
42
+ }
43
+ });
44
+ if (!t.ok) {
45
+ const e = await t.text();
46
+ throw new Error(e);
47
+ }
48
+ const r = await t.json();
49
+ g.updateTranslations(r);
50
+ } catch (t) {
51
+ console.error(`Failed to load translations ${a}. ${t.message}`);
52
+ }
53
+ }
54
+ static translate(a, t) {
55
+ var r, e;
56
+ const o = g.getAvaliableLanguages(t);
57
+ return ((e = (r = g.customTranslation) === null || r === void 0 ? void 0 : r[o.customLanguage]) === null || e === void 0 ? void 0 : e[a]) || g.defaultTranslation[o.predefinedLanguage][a];
58
+ }
59
+ static getAvaliableLanguages(a) {
60
+ var t;
61
+ const r = !((t = g.customLanguages) === null || t === void 0) && t.includes(a) ? a : g.defaultLanguage;
62
+ return { predefinedLanguage: g.supportedLanguages.includes(a) ? a : g.defaultLanguage, customLanguage: r };
63
+ }
64
+ static updateTranslations(a) {
65
+ g.customLanguages = Array.from(/* @__PURE__ */ new Set([...g.supportedLanguages, ...Object.keys(a).map((t) => t.toLowerCase())])), g.customTranslation = a;
66
+ }
67
+ }
68
+ g.defaultLanguage = "en";
69
+ g.supportedLanguages = ["en"];
70
+ g.defaultTranslation = ut;
71
+ const lt = () => u(
72
+ "div",
73
+ { class: "loader" },
74
+ u("div", null),
75
+ u("div", null),
76
+ u("div", null),
77
+ u("div", null),
78
+ u("div", null),
79
+ u("div", null),
80
+ u("div", null),
81
+ u("div", null),
82
+ u("div", null),
83
+ u("div", null),
84
+ u("div", null),
85
+ u("div", null)
86
+ );
87
+ function Q(i) {
88
+ "@babel/helpers - typeof";
89
+ return Q = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(a) {
90
+ return typeof a;
91
+ } : function(a) {
92
+ return a && typeof Symbol == "function" && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a;
93
+ }, Q(i);
94
+ }
95
+ function M(i, a) {
96
+ if (a.length < i)
97
+ throw new TypeError(i + " argument" + (i > 1 ? "s" : "") + " required, but only " + a.length + " present");
98
+ }
99
+ function ct(i) {
100
+ return M(1, arguments), i instanceof Date || Q(i) === "object" && Object.prototype.toString.call(i) === "[object Date]";
101
+ }
102
+ function W(i) {
103
+ M(1, arguments);
104
+ var a = Object.prototype.toString.call(i);
105
+ return i instanceof Date || Q(i) === "object" && a === "[object Date]" ? new Date(i.getTime()) : typeof i == "number" || a === "[object Number]" ? new Date(i) : ((typeof i == "string" || a === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
106
+ }
107
+ function dt(i) {
108
+ if (M(1, arguments), !ct(i) && typeof i != "number")
109
+ return !1;
110
+ var a = W(i);
111
+ return !isNaN(Number(a));
112
+ }
113
+ function S(i) {
114
+ if (i === null || i === !0 || i === !1)
115
+ return NaN;
116
+ var a = Number(i);
117
+ return isNaN(a) ? a : a < 0 ? Math.ceil(a) : Math.floor(a);
118
+ }
119
+ function ft(i, a) {
120
+ M(2, arguments);
121
+ var t = W(i).getTime(), r = S(a);
122
+ return new Date(t + r);
123
+ }
124
+ function Fe(i, a) {
125
+ M(2, arguments);
126
+ var t = S(a);
127
+ return ft(i, -t);
128
+ }
129
+ var ht = 864e5;
130
+ function vt(i) {
131
+ M(1, arguments);
132
+ var a = W(i), t = a.getTime();
133
+ a.setUTCMonth(0, 1), a.setUTCHours(0, 0, 0, 0);
134
+ var r = a.getTime(), e = t - r;
135
+ return Math.floor(e / ht) + 1;
136
+ }
137
+ function ee(i) {
138
+ M(1, arguments);
139
+ var a = 1, t = W(i), r = t.getUTCDay(), e = (r < a ? 7 : 0) + r - a;
140
+ return t.setUTCDate(t.getUTCDate() - e), t.setUTCHours(0, 0, 0, 0), t;
141
+ }
142
+ function Ie(i) {
143
+ M(1, arguments);
144
+ var a = W(i), t = a.getUTCFullYear(), r = /* @__PURE__ */ new Date(0);
145
+ r.setUTCFullYear(t + 1, 0, 4), r.setUTCHours(0, 0, 0, 0);
146
+ var e = ee(r), o = /* @__PURE__ */ new Date(0);
147
+ o.setUTCFullYear(t, 0, 4), o.setUTCHours(0, 0, 0, 0);
148
+ var n = ee(o);
149
+ return a.getTime() >= e.getTime() ? t + 1 : a.getTime() >= n.getTime() ? t : t - 1;
150
+ }
151
+ function mt(i) {
152
+ M(1, arguments);
153
+ var a = Ie(i), t = /* @__PURE__ */ new Date(0);
154
+ t.setUTCFullYear(a, 0, 4), t.setUTCHours(0, 0, 0, 0);
155
+ var r = ee(t);
156
+ return r;
157
+ }
158
+ var pt = 6048e5;
159
+ function qe(i) {
160
+ M(1, arguments);
161
+ var a = W(i), t = ee(a).getTime() - mt(a).getTime();
162
+ return Math.round(t / pt) + 1;
163
+ }
164
+ var gt = {};
165
+ function te() {
166
+ return gt;
167
+ }
168
+ function Z(i, a) {
169
+ var t, r, e, o, n, s, d, f;
170
+ M(1, arguments);
171
+ var w = te(), y = S((t = (r = (e = (o = a?.weekStartsOn) !== null && o !== void 0 ? o : a == null || (n = a.locale) === null || n === void 0 || (s = n.options) === null || s === void 0 ? void 0 : s.weekStartsOn) !== null && e !== void 0 ? e : w.weekStartsOn) !== null && r !== void 0 ? r : (d = w.locale) === null || d === void 0 || (f = d.options) === null || f === void 0 ? void 0 : f.weekStartsOn) !== null && t !== void 0 ? t : 0);
172
+ if (!(y >= 0 && y <= 6))
173
+ throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
174
+ var k = W(i), C = k.getUTCDay(), E = (C < y ? 7 : 0) + C - y;
175
+ return k.setUTCDate(k.getUTCDate() - E), k.setUTCHours(0, 0, 0, 0), k;
176
+ }
177
+ function be(i, a) {
178
+ var t, r, e, o, n, s, d, f;
179
+ M(1, arguments);
180
+ var w = W(i), y = w.getUTCFullYear(), k = te(), C = S((t = (r = (e = (o = a?.firstWeekContainsDate) !== null && o !== void 0 ? o : a == null || (n = a.locale) === null || n === void 0 || (s = n.options) === null || s === void 0 ? void 0 : s.firstWeekContainsDate) !== null && e !== void 0 ? e : k.firstWeekContainsDate) !== null && r !== void 0 ? r : (d = k.locale) === null || d === void 0 || (f = d.options) === null || f === void 0 ? void 0 : f.firstWeekContainsDate) !== null && t !== void 0 ? t : 1);
181
+ if (!(C >= 1 && C <= 7))
182
+ throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
183
+ var E = /* @__PURE__ */ new Date(0);
184
+ E.setUTCFullYear(y + 1, 0, C), E.setUTCHours(0, 0, 0, 0);
185
+ var F = Z(E, a), H = /* @__PURE__ */ new Date(0);
186
+ H.setUTCFullYear(y, 0, C), H.setUTCHours(0, 0, 0, 0);
187
+ var $ = Z(H, a);
188
+ return w.getTime() >= F.getTime() ? y + 1 : w.getTime() >= $.getTime() ? y : y - 1;
189
+ }
190
+ function wt(i, a) {
191
+ var t, r, e, o, n, s, d, f;
192
+ M(1, arguments);
193
+ var w = te(), y = S((t = (r = (e = (o = a?.firstWeekContainsDate) !== null && o !== void 0 ? o : a == null || (n = a.locale) === null || n === void 0 || (s = n.options) === null || s === void 0 ? void 0 : s.firstWeekContainsDate) !== null && e !== void 0 ? e : w.firstWeekContainsDate) !== null && r !== void 0 ? r : (d = w.locale) === null || d === void 0 || (f = d.options) === null || f === void 0 ? void 0 : f.firstWeekContainsDate) !== null && t !== void 0 ? t : 1), k = be(i, a), C = /* @__PURE__ */ new Date(0);
194
+ C.setUTCFullYear(k, 0, y), C.setUTCHours(0, 0, 0, 0);
195
+ var E = Z(C, a);
196
+ return E;
197
+ }
198
+ var yt = 6048e5;
199
+ function Be(i, a) {
200
+ M(1, arguments);
201
+ var t = W(i), r = Z(t, a).getTime() - wt(t, a).getTime();
202
+ return Math.round(r / yt) + 1;
203
+ }
204
+ function T(i, a) {
205
+ for (var t = i < 0 ? "-" : "", r = Math.abs(i).toString(); r.length < a; )
206
+ r = "0" + r;
207
+ return t + r;
208
+ }
209
+ var bt = {
210
+ // Year
211
+ y: function(a, t) {
212
+ var r = a.getUTCFullYear(), e = r > 0 ? r : 1 - r;
213
+ return T(t === "yy" ? e % 100 : e, t.length);
214
+ },
215
+ // Month
216
+ M: function(a, t) {
217
+ var r = a.getUTCMonth();
218
+ return t === "M" ? String(r + 1) : T(r + 1, 2);
219
+ },
220
+ // Day of the month
221
+ d: function(a, t) {
222
+ return T(a.getUTCDate(), t.length);
223
+ },
224
+ // AM or PM
225
+ a: function(a, t) {
226
+ var r = a.getUTCHours() / 12 >= 1 ? "pm" : "am";
227
+ switch (t) {
228
+ case "a":
229
+ case "aa":
230
+ return r.toUpperCase();
231
+ case "aaa":
232
+ return r;
233
+ case "aaaaa":
234
+ return r[0];
235
+ case "aaaa":
236
+ default:
237
+ return r === "am" ? "a.m." : "p.m.";
238
+ }
239
+ },
240
+ // Hour [1-12]
241
+ h: function(a, t) {
242
+ return T(a.getUTCHours() % 12 || 12, t.length);
243
+ },
244
+ // Hour [0-23]
245
+ H: function(a, t) {
246
+ return T(a.getUTCHours(), t.length);
247
+ },
248
+ // Minute
249
+ m: function(a, t) {
250
+ return T(a.getUTCMinutes(), t.length);
251
+ },
252
+ // Second
253
+ s: function(a, t) {
254
+ return T(a.getUTCSeconds(), t.length);
255
+ },
256
+ // Fraction of second
257
+ S: function(a, t) {
258
+ var r = t.length, e = a.getUTCMilliseconds(), o = Math.floor(e * Math.pow(10, r - 3));
259
+ return T(o, t.length);
260
+ }
261
+ };
262
+ const G = bt;
263
+ var J = {
264
+ am: "am",
265
+ pm: "pm",
266
+ midnight: "midnight",
267
+ noon: "noon",
268
+ morning: "morning",
269
+ afternoon: "afternoon",
270
+ evening: "evening",
271
+ night: "night"
272
+ }, Tt = {
273
+ // Era
274
+ G: function(a, t, r) {
275
+ var e = a.getUTCFullYear() > 0 ? 1 : 0;
276
+ switch (t) {
277
+ case "G":
278
+ case "GG":
279
+ case "GGG":
280
+ return r.era(e, {
281
+ width: "abbreviated"
282
+ });
283
+ case "GGGGG":
284
+ return r.era(e, {
285
+ width: "narrow"
286
+ });
287
+ case "GGGG":
288
+ default:
289
+ return r.era(e, {
290
+ width: "wide"
291
+ });
292
+ }
293
+ },
294
+ // Year
295
+ y: function(a, t, r) {
296
+ if (t === "yo") {
297
+ var e = a.getUTCFullYear(), o = e > 0 ? e : 1 - e;
298
+ return r.ordinalNumber(o, {
299
+ unit: "year"
300
+ });
301
+ }
302
+ return G.y(a, t);
303
+ },
304
+ // Local week-numbering year
305
+ Y: function(a, t, r, e) {
306
+ var o = be(a, e), n = o > 0 ? o : 1 - o;
307
+ if (t === "YY") {
308
+ var s = n % 100;
309
+ return T(s, 2);
310
+ }
311
+ return t === "Yo" ? r.ordinalNumber(n, {
312
+ unit: "year"
313
+ }) : T(n, t.length);
314
+ },
315
+ // ISO week-numbering year
316
+ R: function(a, t) {
317
+ var r = Ie(a);
318
+ return T(r, t.length);
319
+ },
320
+ // Extended year. This is a single number designating the year of this calendar system.
321
+ // The main difference between `y` and `u` localizers are B.C. years:
322
+ // | Year | `y` | `u` |
323
+ // |------|-----|-----|
324
+ // | AC 1 | 1 | 1 |
325
+ // | BC 1 | 1 | 0 |
326
+ // | BC 2 | 2 | -1 |
327
+ // Also `yy` always returns the last two digits of a year,
328
+ // while `uu` pads single digit years to 2 characters and returns other years unchanged.
329
+ u: function(a, t) {
330
+ var r = a.getUTCFullYear();
331
+ return T(r, t.length);
332
+ },
333
+ // Quarter
334
+ Q: function(a, t, r) {
335
+ var e = Math.ceil((a.getUTCMonth() + 1) / 3);
336
+ switch (t) {
337
+ case "Q":
338
+ return String(e);
339
+ case "QQ":
340
+ return T(e, 2);
341
+ case "Qo":
342
+ return r.ordinalNumber(e, {
343
+ unit: "quarter"
344
+ });
345
+ case "QQQ":
346
+ return r.quarter(e, {
347
+ width: "abbreviated",
348
+ context: "formatting"
349
+ });
350
+ case "QQQQQ":
351
+ return r.quarter(e, {
352
+ width: "narrow",
353
+ context: "formatting"
354
+ });
355
+ case "QQQQ":
356
+ default:
357
+ return r.quarter(e, {
358
+ width: "wide",
359
+ context: "formatting"
360
+ });
361
+ }
362
+ },
363
+ // Stand-alone quarter
364
+ q: function(a, t, r) {
365
+ var e = Math.ceil((a.getUTCMonth() + 1) / 3);
366
+ switch (t) {
367
+ case "q":
368
+ return String(e);
369
+ case "qq":
370
+ return T(e, 2);
371
+ case "qo":
372
+ return r.ordinalNumber(e, {
373
+ unit: "quarter"
374
+ });
375
+ case "qqq":
376
+ return r.quarter(e, {
377
+ width: "abbreviated",
378
+ context: "standalone"
379
+ });
380
+ case "qqqqq":
381
+ return r.quarter(e, {
382
+ width: "narrow",
383
+ context: "standalone"
384
+ });
385
+ case "qqqq":
386
+ default:
387
+ return r.quarter(e, {
388
+ width: "wide",
389
+ context: "standalone"
390
+ });
391
+ }
392
+ },
393
+ // Month
394
+ M: function(a, t, r) {
395
+ var e = a.getUTCMonth();
396
+ switch (t) {
397
+ case "M":
398
+ case "MM":
399
+ return G.M(a, t);
400
+ case "Mo":
401
+ return r.ordinalNumber(e + 1, {
402
+ unit: "month"
403
+ });
404
+ case "MMM":
405
+ return r.month(e, {
406
+ width: "abbreviated",
407
+ context: "formatting"
408
+ });
409
+ case "MMMMM":
410
+ return r.month(e, {
411
+ width: "narrow",
412
+ context: "formatting"
413
+ });
414
+ case "MMMM":
415
+ default:
416
+ return r.month(e, {
417
+ width: "wide",
418
+ context: "formatting"
419
+ });
420
+ }
421
+ },
422
+ // Stand-alone month
423
+ L: function(a, t, r) {
424
+ var e = a.getUTCMonth();
425
+ switch (t) {
426
+ case "L":
427
+ return String(e + 1);
428
+ case "LL":
429
+ return T(e + 1, 2);
430
+ case "Lo":
431
+ return r.ordinalNumber(e + 1, {
432
+ unit: "month"
433
+ });
434
+ case "LLL":
435
+ return r.month(e, {
436
+ width: "abbreviated",
437
+ context: "standalone"
438
+ });
439
+ case "LLLLL":
440
+ return r.month(e, {
441
+ width: "narrow",
442
+ context: "standalone"
443
+ });
444
+ case "LLLL":
445
+ default:
446
+ return r.month(e, {
447
+ width: "wide",
448
+ context: "standalone"
449
+ });
450
+ }
451
+ },
452
+ // Local week of year
453
+ w: function(a, t, r, e) {
454
+ var o = Be(a, e);
455
+ return t === "wo" ? r.ordinalNumber(o, {
456
+ unit: "week"
457
+ }) : T(o, t.length);
458
+ },
459
+ // ISO week of year
460
+ I: function(a, t, r) {
461
+ var e = qe(a);
462
+ return t === "Io" ? r.ordinalNumber(e, {
463
+ unit: "week"
464
+ }) : T(e, t.length);
465
+ },
466
+ // Day of the month
467
+ d: function(a, t, r) {
468
+ return t === "do" ? r.ordinalNumber(a.getUTCDate(), {
469
+ unit: "date"
470
+ }) : G.d(a, t);
471
+ },
472
+ // Day of year
473
+ D: function(a, t, r) {
474
+ var e = vt(a);
475
+ return t === "Do" ? r.ordinalNumber(e, {
476
+ unit: "dayOfYear"
477
+ }) : T(e, t.length);
478
+ },
479
+ // Day of week
480
+ E: function(a, t, r) {
481
+ var e = a.getUTCDay();
482
+ switch (t) {
483
+ case "E":
484
+ case "EE":
485
+ case "EEE":
486
+ return r.day(e, {
487
+ width: "abbreviated",
488
+ context: "formatting"
489
+ });
490
+ case "EEEEE":
491
+ return r.day(e, {
492
+ width: "narrow",
493
+ context: "formatting"
494
+ });
495
+ case "EEEEEE":
496
+ return r.day(e, {
497
+ width: "short",
498
+ context: "formatting"
499
+ });
500
+ case "EEEE":
501
+ default:
502
+ return r.day(e, {
503
+ width: "wide",
504
+ context: "formatting"
505
+ });
506
+ }
507
+ },
508
+ // Local day of week
509
+ e: function(a, t, r, e) {
510
+ var o = a.getUTCDay(), n = (o - e.weekStartsOn + 8) % 7 || 7;
511
+ switch (t) {
512
+ case "e":
513
+ return String(n);
514
+ case "ee":
515
+ return T(n, 2);
516
+ case "eo":
517
+ return r.ordinalNumber(n, {
518
+ unit: "day"
519
+ });
520
+ case "eee":
521
+ return r.day(o, {
522
+ width: "abbreviated",
523
+ context: "formatting"
524
+ });
525
+ case "eeeee":
526
+ return r.day(o, {
527
+ width: "narrow",
528
+ context: "formatting"
529
+ });
530
+ case "eeeeee":
531
+ return r.day(o, {
532
+ width: "short",
533
+ context: "formatting"
534
+ });
535
+ case "eeee":
536
+ default:
537
+ return r.day(o, {
538
+ width: "wide",
539
+ context: "formatting"
540
+ });
541
+ }
542
+ },
543
+ // Stand-alone local day of week
544
+ c: function(a, t, r, e) {
545
+ var o = a.getUTCDay(), n = (o - e.weekStartsOn + 8) % 7 || 7;
546
+ switch (t) {
547
+ case "c":
548
+ return String(n);
549
+ case "cc":
550
+ return T(n, t.length);
551
+ case "co":
552
+ return r.ordinalNumber(n, {
553
+ unit: "day"
554
+ });
555
+ case "ccc":
556
+ return r.day(o, {
557
+ width: "abbreviated",
558
+ context: "standalone"
559
+ });
560
+ case "ccccc":
561
+ return r.day(o, {
562
+ width: "narrow",
563
+ context: "standalone"
564
+ });
565
+ case "cccccc":
566
+ return r.day(o, {
567
+ width: "short",
568
+ context: "standalone"
569
+ });
570
+ case "cccc":
571
+ default:
572
+ return r.day(o, {
573
+ width: "wide",
574
+ context: "standalone"
575
+ });
576
+ }
577
+ },
578
+ // ISO day of week
579
+ i: function(a, t, r) {
580
+ var e = a.getUTCDay(), o = e === 0 ? 7 : e;
581
+ switch (t) {
582
+ case "i":
583
+ return String(o);
584
+ case "ii":
585
+ return T(o, t.length);
586
+ case "io":
587
+ return r.ordinalNumber(o, {
588
+ unit: "day"
589
+ });
590
+ case "iii":
591
+ return r.day(e, {
592
+ width: "abbreviated",
593
+ context: "formatting"
594
+ });
595
+ case "iiiii":
596
+ return r.day(e, {
597
+ width: "narrow",
598
+ context: "formatting"
599
+ });
600
+ case "iiiiii":
601
+ return r.day(e, {
602
+ width: "short",
603
+ context: "formatting"
604
+ });
605
+ case "iiii":
606
+ default:
607
+ return r.day(e, {
608
+ width: "wide",
609
+ context: "formatting"
610
+ });
611
+ }
612
+ },
613
+ // AM or PM
614
+ a: function(a, t, r) {
615
+ var e = a.getUTCHours(), o = e / 12 >= 1 ? "pm" : "am";
616
+ switch (t) {
617
+ case "a":
618
+ case "aa":
619
+ return r.dayPeriod(o, {
620
+ width: "abbreviated",
621
+ context: "formatting"
622
+ });
623
+ case "aaa":
624
+ return r.dayPeriod(o, {
625
+ width: "abbreviated",
626
+ context: "formatting"
627
+ }).toLowerCase();
628
+ case "aaaaa":
629
+ return r.dayPeriod(o, {
630
+ width: "narrow",
631
+ context: "formatting"
632
+ });
633
+ case "aaaa":
634
+ default:
635
+ return r.dayPeriod(o, {
636
+ width: "wide",
637
+ context: "formatting"
638
+ });
639
+ }
640
+ },
641
+ // AM, PM, midnight, noon
642
+ b: function(a, t, r) {
643
+ var e = a.getUTCHours(), o;
644
+ switch (e === 12 ? o = J.noon : e === 0 ? o = J.midnight : o = e / 12 >= 1 ? "pm" : "am", t) {
645
+ case "b":
646
+ case "bb":
647
+ return r.dayPeriod(o, {
648
+ width: "abbreviated",
649
+ context: "formatting"
650
+ });
651
+ case "bbb":
652
+ return r.dayPeriod(o, {
653
+ width: "abbreviated",
654
+ context: "formatting"
655
+ }).toLowerCase();
656
+ case "bbbbb":
657
+ return r.dayPeriod(o, {
658
+ width: "narrow",
659
+ context: "formatting"
660
+ });
661
+ case "bbbb":
662
+ default:
663
+ return r.dayPeriod(o, {
664
+ width: "wide",
665
+ context: "formatting"
666
+ });
667
+ }
668
+ },
669
+ // in the morning, in the afternoon, in the evening, at night
670
+ B: function(a, t, r) {
671
+ var e = a.getUTCHours(), o;
672
+ switch (e >= 17 ? o = J.evening : e >= 12 ? o = J.afternoon : e >= 4 ? o = J.morning : o = J.night, t) {
673
+ case "B":
674
+ case "BB":
675
+ case "BBB":
676
+ return r.dayPeriod(o, {
677
+ width: "abbreviated",
678
+ context: "formatting"
679
+ });
680
+ case "BBBBB":
681
+ return r.dayPeriod(o, {
682
+ width: "narrow",
683
+ context: "formatting"
684
+ });
685
+ case "BBBB":
686
+ default:
687
+ return r.dayPeriod(o, {
688
+ width: "wide",
689
+ context: "formatting"
690
+ });
691
+ }
692
+ },
693
+ // Hour [1-12]
694
+ h: function(a, t, r) {
695
+ if (t === "ho") {
696
+ var e = a.getUTCHours() % 12;
697
+ return e === 0 && (e = 12), r.ordinalNumber(e, {
698
+ unit: "hour"
699
+ });
700
+ }
701
+ return G.h(a, t);
702
+ },
703
+ // Hour [0-23]
704
+ H: function(a, t, r) {
705
+ return t === "Ho" ? r.ordinalNumber(a.getUTCHours(), {
706
+ unit: "hour"
707
+ }) : G.H(a, t);
708
+ },
709
+ // Hour [0-11]
710
+ K: function(a, t, r) {
711
+ var e = a.getUTCHours() % 12;
712
+ return t === "Ko" ? r.ordinalNumber(e, {
713
+ unit: "hour"
714
+ }) : T(e, t.length);
715
+ },
716
+ // Hour [1-24]
717
+ k: function(a, t, r) {
718
+ var e = a.getUTCHours();
719
+ return e === 0 && (e = 24), t === "ko" ? r.ordinalNumber(e, {
720
+ unit: "hour"
721
+ }) : T(e, t.length);
722
+ },
723
+ // Minute
724
+ m: function(a, t, r) {
725
+ return t === "mo" ? r.ordinalNumber(a.getUTCMinutes(), {
726
+ unit: "minute"
727
+ }) : G.m(a, t);
728
+ },
729
+ // Second
730
+ s: function(a, t, r) {
731
+ return t === "so" ? r.ordinalNumber(a.getUTCSeconds(), {
732
+ unit: "second"
733
+ }) : G.s(a, t);
734
+ },
735
+ // Fraction of second
736
+ S: function(a, t) {
737
+ return G.S(a, t);
738
+ },
739
+ // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
740
+ X: function(a, t, r, e) {
741
+ var o = e._originalDate || a, n = o.getTimezoneOffset();
742
+ if (n === 0)
743
+ return "Z";
744
+ switch (t) {
745
+ case "X":
746
+ return _e(n);
747
+ case "XXXX":
748
+ case "XX":
749
+ return V(n);
750
+ case "XXXXX":
751
+ case "XXX":
752
+ default:
753
+ return V(n, ":");
754
+ }
755
+ },
756
+ // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
757
+ x: function(a, t, r, e) {
758
+ var o = e._originalDate || a, n = o.getTimezoneOffset();
759
+ switch (t) {
760
+ case "x":
761
+ return _e(n);
762
+ case "xxxx":
763
+ case "xx":
764
+ return V(n);
765
+ case "xxxxx":
766
+ case "xxx":
767
+ default:
768
+ return V(n, ":");
769
+ }
770
+ },
771
+ // Timezone (GMT)
772
+ O: function(a, t, r, e) {
773
+ var o = e._originalDate || a, n = o.getTimezoneOffset();
774
+ switch (t) {
775
+ case "O":
776
+ case "OO":
777
+ case "OOO":
778
+ return "GMT" + Ye(n, ":");
779
+ case "OOOO":
780
+ default:
781
+ return "GMT" + V(n, ":");
782
+ }
783
+ },
784
+ // Timezone (specific non-location)
785
+ z: function(a, t, r, e) {
786
+ var o = e._originalDate || a, n = o.getTimezoneOffset();
787
+ switch (t) {
788
+ case "z":
789
+ case "zz":
790
+ case "zzz":
791
+ return "GMT" + Ye(n, ":");
792
+ case "zzzz":
793
+ default:
794
+ return "GMT" + V(n, ":");
795
+ }
796
+ },
797
+ // Seconds timestamp
798
+ t: function(a, t, r, e) {
799
+ var o = e._originalDate || a, n = Math.floor(o.getTime() / 1e3);
800
+ return T(n, t.length);
801
+ },
802
+ // Milliseconds timestamp
803
+ T: function(a, t, r, e) {
804
+ var o = e._originalDate || a, n = o.getTime();
805
+ return T(n, t.length);
806
+ }
807
+ };
808
+ function Ye(i, a) {
809
+ var t = i > 0 ? "-" : "+", r = Math.abs(i), e = Math.floor(r / 60), o = r % 60;
810
+ if (o === 0)
811
+ return t + String(e);
812
+ var n = a;
813
+ return t + String(e) + n + T(o, 2);
814
+ }
815
+ function _e(i, a) {
816
+ if (i % 60 === 0) {
817
+ var t = i > 0 ? "-" : "+";
818
+ return t + T(Math.abs(i) / 60, 2);
819
+ }
820
+ return V(i, a);
821
+ }
822
+ function V(i, a) {
823
+ var t = a || "", r = i > 0 ? "-" : "+", e = Math.abs(i), o = T(Math.floor(e / 60), 2), n = T(e % 60, 2);
824
+ return r + o + t + n;
825
+ }
826
+ const xt = Tt;
827
+ var We = function(a, t) {
828
+ switch (a) {
829
+ case "P":
830
+ return t.date({
831
+ width: "short"
832
+ });
833
+ case "PP":
834
+ return t.date({
835
+ width: "medium"
836
+ });
837
+ case "PPP":
838
+ return t.date({
839
+ width: "long"
840
+ });
841
+ case "PPPP":
842
+ default:
843
+ return t.date({
844
+ width: "full"
845
+ });
846
+ }
847
+ }, $e = function(a, t) {
848
+ switch (a) {
849
+ case "p":
850
+ return t.time({
851
+ width: "short"
852
+ });
853
+ case "pp":
854
+ return t.time({
855
+ width: "medium"
856
+ });
857
+ case "ppp":
858
+ return t.time({
859
+ width: "long"
860
+ });
861
+ case "pppp":
862
+ default:
863
+ return t.time({
864
+ width: "full"
865
+ });
866
+ }
867
+ }, Ct = function(a, t) {
868
+ var r = a.match(/(P+)(p+)?/) || [], e = r[1], o = r[2];
869
+ if (!o)
870
+ return We(a, t);
871
+ var n;
872
+ switch (e) {
873
+ case "P":
874
+ n = t.dateTime({
875
+ width: "short"
876
+ });
877
+ break;
878
+ case "PP":
879
+ n = t.dateTime({
880
+ width: "medium"
881
+ });
882
+ break;
883
+ case "PPP":
884
+ n = t.dateTime({
885
+ width: "long"
886
+ });
887
+ break;
888
+ case "PPPP":
889
+ default:
890
+ n = t.dateTime({
891
+ width: "full"
892
+ });
893
+ break;
894
+ }
895
+ return n.replace("{{date}}", We(e, t)).replace("{{time}}", $e(o, t));
896
+ }, Dt = {
897
+ p: $e,
898
+ P: Ct
899
+ };
900
+ const we = Dt;
901
+ function Re(i) {
902
+ var a = new Date(Date.UTC(i.getFullYear(), i.getMonth(), i.getDate(), i.getHours(), i.getMinutes(), i.getSeconds(), i.getMilliseconds()));
903
+ return a.setUTCFullYear(i.getFullYear()), i.getTime() - a.getTime();
904
+ }
905
+ var kt = ["D", "DD"], Pt = ["YY", "YYYY"];
906
+ function Qe(i) {
907
+ return kt.indexOf(i) !== -1;
908
+ }
909
+ function je(i) {
910
+ return Pt.indexOf(i) !== -1;
911
+ }
912
+ function de(i, a, t) {
913
+ if (i === "YYYY")
914
+ throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(a, "`) for formatting years to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
915
+ if (i === "YY")
916
+ throw new RangeError("Use `yy` instead of `YY` (in `".concat(a, "`) for formatting years to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
917
+ if (i === "D")
918
+ throw new RangeError("Use `d` instead of `D` (in `".concat(a, "`) for formatting days of the month to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
919
+ if (i === "DD")
920
+ throw new RangeError("Use `dd` instead of `DD` (in `".concat(a, "`) for formatting days of the month to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
921
+ }
922
+ var Mt = {
923
+ lessThanXSeconds: {
924
+ one: "less than a second",
925
+ other: "less than {{count}} seconds"
926
+ },
927
+ xSeconds: {
928
+ one: "1 second",
929
+ other: "{{count}} seconds"
930
+ },
931
+ halfAMinute: "half a minute",
932
+ lessThanXMinutes: {
933
+ one: "less than a minute",
934
+ other: "less than {{count}} minutes"
935
+ },
936
+ xMinutes: {
937
+ one: "1 minute",
938
+ other: "{{count}} minutes"
939
+ },
940
+ aboutXHours: {
941
+ one: "about 1 hour",
942
+ other: "about {{count}} hours"
943
+ },
944
+ xHours: {
945
+ one: "1 hour",
946
+ other: "{{count}} hours"
947
+ },
948
+ xDays: {
949
+ one: "1 day",
950
+ other: "{{count}} days"
951
+ },
952
+ aboutXWeeks: {
953
+ one: "about 1 week",
954
+ other: "about {{count}} weeks"
955
+ },
956
+ xWeeks: {
957
+ one: "1 week",
958
+ other: "{{count}} weeks"
959
+ },
960
+ aboutXMonths: {
961
+ one: "about 1 month",
962
+ other: "about {{count}} months"
963
+ },
964
+ xMonths: {
965
+ one: "1 month",
966
+ other: "{{count}} months"
967
+ },
968
+ aboutXYears: {
969
+ one: "about 1 year",
970
+ other: "about {{count}} years"
971
+ },
972
+ xYears: {
973
+ one: "1 year",
974
+ other: "{{count}} years"
975
+ },
976
+ overXYears: {
977
+ one: "over 1 year",
978
+ other: "over {{count}} years"
979
+ },
980
+ almostXYears: {
981
+ one: "almost 1 year",
982
+ other: "almost {{count}} years"
983
+ }
984
+ }, Ot = function(a, t, r) {
985
+ var e, o = Mt[a];
986
+ return typeof o == "string" ? e = o : t === 1 ? e = o.one : e = o.other.replace("{{count}}", t.toString()), r != null && r.addSuffix ? r.comparison && r.comparison > 0 ? "in " + e : e + " ago" : e;
987
+ };
988
+ const Ut = Ot;
989
+ function ge(i) {
990
+ return function() {
991
+ var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = a.width ? String(a.width) : i.defaultWidth, r = i.formats[t] || i.formats[i.defaultWidth];
992
+ return r;
993
+ };
994
+ }
995
+ var Et = {
996
+ full: "EEEE, MMMM do, y",
997
+ long: "MMMM do, y",
998
+ medium: "MMM d, y",
999
+ short: "MM/dd/yyyy"
1000
+ }, Yt = {
1001
+ full: "h:mm:ss a zzzz",
1002
+ long: "h:mm:ss a z",
1003
+ medium: "h:mm:ss a",
1004
+ short: "h:mm a"
1005
+ }, _t = {
1006
+ full: "{{date}} 'at' {{time}}",
1007
+ long: "{{date}} 'at' {{time}}",
1008
+ medium: "{{date}}, {{time}}",
1009
+ short: "{{date}}, {{time}}"
1010
+ }, Wt = {
1011
+ date: ge({
1012
+ formats: Et,
1013
+ defaultWidth: "full"
1014
+ }),
1015
+ time: ge({
1016
+ formats: Yt,
1017
+ defaultWidth: "full"
1018
+ }),
1019
+ dateTime: ge({
1020
+ formats: _t,
1021
+ defaultWidth: "full"
1022
+ })
1023
+ };
1024
+ const Lt = Wt;
1025
+ var St = {
1026
+ lastWeek: "'last' eeee 'at' p",
1027
+ yesterday: "'yesterday at' p",
1028
+ today: "'today at' p",
1029
+ tomorrow: "'tomorrow at' p",
1030
+ nextWeek: "eeee 'at' p",
1031
+ other: "P"
1032
+ }, Ht = function(a, t, r, e) {
1033
+ return St[a];
1034
+ };
1035
+ const Nt = Ht;
1036
+ function oe(i) {
1037
+ return function(a, t) {
1038
+ var r = t != null && t.context ? String(t.context) : "standalone", e;
1039
+ if (r === "formatting" && i.formattingValues) {
1040
+ var o = i.defaultFormattingWidth || i.defaultWidth, n = t != null && t.width ? String(t.width) : o;
1041
+ e = i.formattingValues[n] || i.formattingValues[o];
1042
+ } else {
1043
+ var s = i.defaultWidth, d = t != null && t.width ? String(t.width) : i.defaultWidth;
1044
+ e = i.values[d] || i.values[s];
1045
+ }
1046
+ var f = i.argumentCallback ? i.argumentCallback(a) : a;
1047
+ return e[f];
1048
+ };
1049
+ }
1050
+ var At = {
1051
+ narrow: ["B", "A"],
1052
+ abbreviated: ["BC", "AD"],
1053
+ wide: ["Before Christ", "Anno Domini"]
1054
+ }, Ft = {
1055
+ narrow: ["1", "2", "3", "4"],
1056
+ abbreviated: ["Q1", "Q2", "Q3", "Q4"],
1057
+ wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
1058
+ }, It = {
1059
+ narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
1060
+ abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
1061
+ wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
1062
+ }, qt = {
1063
+ narrow: ["S", "M", "T", "W", "T", "F", "S"],
1064
+ short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
1065
+ abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
1066
+ wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
1067
+ }, Bt = {
1068
+ narrow: {
1069
+ am: "a",
1070
+ pm: "p",
1071
+ midnight: "mi",
1072
+ noon: "n",
1073
+ morning: "morning",
1074
+ afternoon: "afternoon",
1075
+ evening: "evening",
1076
+ night: "night"
1077
+ },
1078
+ abbreviated: {
1079
+ am: "AM",
1080
+ pm: "PM",
1081
+ midnight: "midnight",
1082
+ noon: "noon",
1083
+ morning: "morning",
1084
+ afternoon: "afternoon",
1085
+ evening: "evening",
1086
+ night: "night"
1087
+ },
1088
+ wide: {
1089
+ am: "a.m.",
1090
+ pm: "p.m.",
1091
+ midnight: "midnight",
1092
+ noon: "noon",
1093
+ morning: "morning",
1094
+ afternoon: "afternoon",
1095
+ evening: "evening",
1096
+ night: "night"
1097
+ }
1098
+ }, $t = {
1099
+ narrow: {
1100
+ am: "a",
1101
+ pm: "p",
1102
+ midnight: "mi",
1103
+ noon: "n",
1104
+ morning: "in the morning",
1105
+ afternoon: "in the afternoon",
1106
+ evening: "in the evening",
1107
+ night: "at night"
1108
+ },
1109
+ abbreviated: {
1110
+ am: "AM",
1111
+ pm: "PM",
1112
+ midnight: "midnight",
1113
+ noon: "noon",
1114
+ morning: "in the morning",
1115
+ afternoon: "in the afternoon",
1116
+ evening: "in the evening",
1117
+ night: "at night"
1118
+ },
1119
+ wide: {
1120
+ am: "a.m.",
1121
+ pm: "p.m.",
1122
+ midnight: "midnight",
1123
+ noon: "noon",
1124
+ morning: "in the morning",
1125
+ afternoon: "in the afternoon",
1126
+ evening: "in the evening",
1127
+ night: "at night"
1128
+ }
1129
+ }, Rt = function(a, t) {
1130
+ var r = Number(a), e = r % 100;
1131
+ if (e > 20 || e < 10)
1132
+ switch (e % 10) {
1133
+ case 1:
1134
+ return r + "st";
1135
+ case 2:
1136
+ return r + "nd";
1137
+ case 3:
1138
+ return r + "rd";
1139
+ }
1140
+ return r + "th";
1141
+ }, Qt = {
1142
+ ordinalNumber: Rt,
1143
+ era: oe({
1144
+ values: At,
1145
+ defaultWidth: "wide"
1146
+ }),
1147
+ quarter: oe({
1148
+ values: Ft,
1149
+ defaultWidth: "wide",
1150
+ argumentCallback: function(a) {
1151
+ return a - 1;
1152
+ }
1153
+ }),
1154
+ month: oe({
1155
+ values: It,
1156
+ defaultWidth: "wide"
1157
+ }),
1158
+ day: oe({
1159
+ values: qt,
1160
+ defaultWidth: "wide"
1161
+ }),
1162
+ dayPeriod: oe({
1163
+ values: Bt,
1164
+ defaultWidth: "wide",
1165
+ formattingValues: $t,
1166
+ defaultFormattingWidth: "wide"
1167
+ })
1168
+ };
1169
+ const jt = Qt;
1170
+ function se(i) {
1171
+ return function(a) {
1172
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = t.width, e = r && i.matchPatterns[r] || i.matchPatterns[i.defaultMatchWidth], o = a.match(e);
1173
+ if (!o)
1174
+ return null;
1175
+ var n = o[0], s = r && i.parsePatterns[r] || i.parsePatterns[i.defaultParseWidth], d = Array.isArray(s) ? Gt(s, function(y) {
1176
+ return y.test(n);
1177
+ }) : Xt(s, function(y) {
1178
+ return y.test(n);
1179
+ }), f;
1180
+ f = i.valueCallback ? i.valueCallback(d) : d, f = t.valueCallback ? t.valueCallback(f) : f;
1181
+ var w = a.slice(n.length);
1182
+ return {
1183
+ value: f,
1184
+ rest: w
1185
+ };
1186
+ };
1187
+ }
1188
+ function Xt(i, a) {
1189
+ for (var t in i)
1190
+ if (i.hasOwnProperty(t) && a(i[t]))
1191
+ return t;
1192
+ }
1193
+ function Gt(i, a) {
1194
+ for (var t = 0; t < i.length; t++)
1195
+ if (a(i[t]))
1196
+ return t;
1197
+ }
1198
+ function zt(i) {
1199
+ return function(a) {
1200
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = a.match(i.matchPattern);
1201
+ if (!r)
1202
+ return null;
1203
+ var e = r[0], o = a.match(i.parsePattern);
1204
+ if (!o)
1205
+ return null;
1206
+ var n = i.valueCallback ? i.valueCallback(o[0]) : o[0];
1207
+ n = t.valueCallback ? t.valueCallback(n) : n;
1208
+ var s = a.slice(e.length);
1209
+ return {
1210
+ value: n,
1211
+ rest: s
1212
+ };
1213
+ };
1214
+ }
1215
+ var Vt = /^(\d+)(th|st|nd|rd)?/i, Kt = /\d+/i, Zt = {
1216
+ narrow: /^(b|a)/i,
1217
+ abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
1218
+ wide: /^(before christ|before common era|anno domini|common era)/i
1219
+ }, Jt = {
1220
+ any: [/^b/i, /^(a|c)/i]
1221
+ }, er = {
1222
+ narrow: /^[1234]/i,
1223
+ abbreviated: /^q[1234]/i,
1224
+ wide: /^[1234](th|st|nd|rd)? quarter/i
1225
+ }, tr = {
1226
+ any: [/1/i, /2/i, /3/i, /4/i]
1227
+ }, rr = {
1228
+ narrow: /^[jfmasond]/i,
1229
+ abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
1230
+ wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
1231
+ }, ar = {
1232
+ narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
1233
+ any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
1234
+ }, nr = {
1235
+ narrow: /^[smtwf]/i,
1236
+ short: /^(su|mo|tu|we|th|fr|sa)/i,
1237
+ abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
1238
+ wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
1239
+ }, ir = {
1240
+ narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
1241
+ any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
1242
+ }, or = {
1243
+ narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
1244
+ any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
1245
+ }, sr = {
1246
+ any: {
1247
+ am: /^a/i,
1248
+ pm: /^p/i,
1249
+ midnight: /^mi/i,
1250
+ noon: /^no/i,
1251
+ morning: /morning/i,
1252
+ afternoon: /afternoon/i,
1253
+ evening: /evening/i,
1254
+ night: /night/i
1255
+ }
1256
+ }, ur = {
1257
+ ordinalNumber: zt({
1258
+ matchPattern: Vt,
1259
+ parsePattern: Kt,
1260
+ valueCallback: function(a) {
1261
+ return parseInt(a, 10);
1262
+ }
1263
+ }),
1264
+ era: se({
1265
+ matchPatterns: Zt,
1266
+ defaultMatchWidth: "wide",
1267
+ parsePatterns: Jt,
1268
+ defaultParseWidth: "any"
1269
+ }),
1270
+ quarter: se({
1271
+ matchPatterns: er,
1272
+ defaultMatchWidth: "wide",
1273
+ parsePatterns: tr,
1274
+ defaultParseWidth: "any",
1275
+ valueCallback: function(a) {
1276
+ return a + 1;
1277
+ }
1278
+ }),
1279
+ month: se({
1280
+ matchPatterns: rr,
1281
+ defaultMatchWidth: "wide",
1282
+ parsePatterns: ar,
1283
+ defaultParseWidth: "any"
1284
+ }),
1285
+ day: se({
1286
+ matchPatterns: nr,
1287
+ defaultMatchWidth: "wide",
1288
+ parsePatterns: ir,
1289
+ defaultParseWidth: "any"
1290
+ }),
1291
+ dayPeriod: se({
1292
+ matchPatterns: or,
1293
+ defaultMatchWidth: "any",
1294
+ parsePatterns: sr,
1295
+ defaultParseWidth: "any"
1296
+ })
1297
+ };
1298
+ const lr = ur;
1299
+ var cr = {
1300
+ code: "en-US",
1301
+ formatDistance: Ut,
1302
+ formatLong: Lt,
1303
+ formatRelative: Nt,
1304
+ localize: jt,
1305
+ match: lr,
1306
+ options: {
1307
+ weekStartsOn: 0,
1308
+ firstWeekContainsDate: 1
1309
+ }
1310
+ };
1311
+ const Xe = cr;
1312
+ var dr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, fr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, hr = /^'([^]*?)'?$/, vr = /''/g, mr = /[a-zA-Z]/;
1313
+ function K(i, a, t) {
1314
+ var r, e, o, n, s, d, f, w, y, k, C, E, F, H;
1315
+ M(2, arguments);
1316
+ var $ = String(a), L = te(), I = (r = (e = void 0) !== null && e !== void 0 ? e : L.locale) !== null && r !== void 0 ? r : Xe, R = S((o = (n = (s = (d = void 0) !== null && d !== void 0 ? d : void 0) !== null && s !== void 0 ? s : L.firstWeekContainsDate) !== null && n !== void 0 ? n : (f = L.locale) === null || f === void 0 || (w = f.options) === null || w === void 0 ? void 0 : w.firstWeekContainsDate) !== null && o !== void 0 ? o : 1);
1317
+ if (!(R >= 1 && R <= 7))
1318
+ throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
1319
+ var j = S((y = (k = (C = (E = void 0) !== null && E !== void 0 ? E : void 0) !== null && C !== void 0 ? C : L.weekStartsOn) !== null && k !== void 0 ? k : (F = L.locale) === null || F === void 0 || (H = F.options) === null || H === void 0 ? void 0 : H.weekStartsOn) !== null && y !== void 0 ? y : 0);
1320
+ if (!(j >= 0 && j <= 6))
1321
+ throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
1322
+ if (!I.localize)
1323
+ throw new RangeError("locale must contain localize property");
1324
+ if (!I.formatLong)
1325
+ throw new RangeError("locale must contain formatLong property");
1326
+ var X = W(i);
1327
+ if (!dt(X))
1328
+ throw new RangeError("Invalid time value");
1329
+ var re = Re(X), ae = Fe(X, re), ne = {
1330
+ firstWeekContainsDate: R,
1331
+ weekStartsOn: j,
1332
+ locale: I,
1333
+ _originalDate: X
1334
+ }, ve = $.match(fr).map(function(_) {
1335
+ var N = _[0];
1336
+ if (N === "p" || N === "P") {
1337
+ var z = we[N];
1338
+ return z(_, I.formatLong);
1339
+ }
1340
+ return _;
1341
+ }).join("").match(dr).map(function(_) {
1342
+ if (_ === "''")
1343
+ return "'";
1344
+ var N = _[0];
1345
+ if (N === "'")
1346
+ return pr(_);
1347
+ var z = xt[N];
1348
+ if (z)
1349
+ return je(_) && de(_, a, String(i)), Qe(_) && de(_, a, String(i)), z(ae, _, I.localize, ne);
1350
+ if (N.match(mr))
1351
+ throw new RangeError("Format string contains an unescaped latin alphabet character `" + N + "`");
1352
+ return _;
1353
+ }).join("");
1354
+ return ve;
1355
+ }
1356
+ function pr(i) {
1357
+ var a = i.match(hr);
1358
+ return a ? a[1].replace(vr, "'") : i;
1359
+ }
1360
+ class Ge {
1361
+ constructor() {
1362
+ }
1363
+ static dateToFormatedString(a, t) {
1364
+ const r = t ? K(a, t) : a.toLocaleDateString("en-gb"), e = a.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", hour12: !1 });
1365
+ return `${r}, ${e}`;
1366
+ }
1367
+ }
1368
+ class ze {
1369
+ constructor() {
1370
+ }
1371
+ static format(a, t) {
1372
+ let r = `${t} ${a}`;
1373
+ try {
1374
+ r = new Intl.NumberFormat("en-US", {
1375
+ style: "currency",
1376
+ currency: a
1377
+ }).format(t);
1378
+ } catch {
1379
+ }
1380
+ return r;
1381
+ }
1382
+ }
1383
+ const gr = (i) => u(
1384
+ "div",
1385
+ { class: "data-transaction" },
1386
+ u("p", null, i.productType),
1387
+ u(
1388
+ "p",
1389
+ { class: "text-style text-style-status" },
1390
+ u("span", { class: i.status.toLowerCase() }, i.status)
1391
+ ),
1392
+ u(
1393
+ "p",
1394
+ { class: "date" },
1395
+ i.transId,
1396
+ " | ",
1397
+ Ge.dateToFormatedString(new Date(i.created), i.dateformat)
1398
+ ),
1399
+ u(
1400
+ "p",
1401
+ { class: "text-style" },
1402
+ ze.format(i.currency, i.realAmount),
1403
+ " "
1404
+ )
1405
+ ), wr = (i) => u(
1406
+ "div",
1407
+ { class: "page-size" },
1408
+ u("span", null, g.translate("show", i.language)),
1409
+ i.pageSizes.map((a) => u("button", { class: i.currentPageSize === a ? "active" : "", onClick: () => i.changePageSize(a) }, a))
1410
+ ), yr = ({ source: i, language: a, dateformat: t }) => {
1411
+ const r = [
1412
+ { name: g.translate("transactionId", a) },
1413
+ {
1414
+ name: g.translate("date", a)
1415
+ },
1416
+ {
1417
+ name: g.translate("amount", a)
1418
+ },
1419
+ { name: g.translate("productType", a) },
1420
+ {
1421
+ name: g.translate("status", a)
1422
+ }
1423
+ ];
1424
+ return u(
1425
+ "table",
1426
+ null,
1427
+ u(
1428
+ "thead",
1429
+ null,
1430
+ u("tr", null, r.map((e) => u("th", null, e.name)))
1431
+ ),
1432
+ u("tbody", null, i.map((e) => u(
1433
+ "tr",
1434
+ null,
1435
+ u("td", null, e.transId),
1436
+ u("td", null, Ge.dateToFormatedString(new Date(e.created), t)),
1437
+ u(
1438
+ "td",
1439
+ null,
1440
+ ze.format(e.currency, e.realAmount),
1441
+ " "
1442
+ ),
1443
+ u("td", null, e.productType),
1444
+ u(
1445
+ "td",
1446
+ null,
1447
+ u("span", { class: e.status.toLowerCase() }, e.status)
1448
+ )
1449
+ )))
1450
+ );
1451
+ };
1452
+ function Le(i, a) {
1453
+ if (i) {
1454
+ const t = document.createElement("style");
1455
+ t.innerHTML = a, i.appendChild(t);
1456
+ }
1457
+ }
1458
+ function Se(i, a) {
1459
+ const t = new URL(a);
1460
+ fetch(t.href).then((r) => r.text()).then((r) => {
1461
+ const e = document.createElement("style");
1462
+ e.innerHTML = r, i && i.appendChild(e);
1463
+ }).catch((r) => {
1464
+ console.error("There was an error while trying to load client styling from URL", r);
1465
+ });
1466
+ }
1467
+ function br(i, a, t) {
1468
+ if (window.emMessageBus) {
1469
+ const r = document.createElement("style");
1470
+ window.emMessageBus.subscribe(a, (e) => {
1471
+ r.innerHTML = e, i && i.appendChild(r);
1472
+ });
1473
+ }
1474
+ }
1475
+ function He(i, a) {
1476
+ (a == null || a > i.length) && (a = i.length);
1477
+ for (var t = 0, r = Array(a); t < a; t++)
1478
+ r[t] = i[t];
1479
+ return r;
1480
+ }
1481
+ function Tr(i, a) {
1482
+ if (i) {
1483
+ if (typeof i == "string")
1484
+ return He(i, a);
1485
+ var t = {}.toString.call(i).slice(8, -1);
1486
+ return t === "Object" && i.constructor && (t = i.constructor.name), t === "Map" || t === "Set" ? Array.from(i) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? He(i, a) : void 0;
1487
+ }
1488
+ }
1489
+ function Ne(i, a) {
1490
+ var t = typeof Symbol < "u" && i[Symbol.iterator] || i["@@iterator"];
1491
+ if (!t) {
1492
+ if (Array.isArray(i) || (t = Tr(i)) || a) {
1493
+ t && (i = t);
1494
+ var r = 0, e = function() {
1495
+ };
1496
+ return {
1497
+ s: e,
1498
+ n: function() {
1499
+ return r >= i.length ? {
1500
+ done: !0
1501
+ } : {
1502
+ done: !1,
1503
+ value: i[r++]
1504
+ };
1505
+ },
1506
+ e: function(f) {
1507
+ throw f;
1508
+ },
1509
+ f: e
1510
+ };
1511
+ }
1512
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1513
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1514
+ }
1515
+ var o, n = !0, s = !1;
1516
+ return {
1517
+ s: function() {
1518
+ t = t.call(i);
1519
+ },
1520
+ n: function() {
1521
+ var f = t.next();
1522
+ return n = f.done, f;
1523
+ },
1524
+ e: function(f) {
1525
+ s = !0, o = f;
1526
+ },
1527
+ f: function() {
1528
+ try {
1529
+ n || t.return == null || t.return();
1530
+ } finally {
1531
+ if (s)
1532
+ throw o;
1533
+ }
1534
+ }
1535
+ };
1536
+ }
1537
+ function xr(i, a) {
1538
+ if (i == null)
1539
+ throw new TypeError("assign requires that input parameter not be null or undefined");
1540
+ for (var t in a)
1541
+ Object.prototype.hasOwnProperty.call(a, t) && (i[t] = a[t]);
1542
+ return i;
1543
+ }
1544
+ function c(i) {
1545
+ if (i === void 0)
1546
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1547
+ return i;
1548
+ }
1549
+ function ye(i, a) {
1550
+ return ye = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, r) {
1551
+ return t.__proto__ = r, t;
1552
+ }, ye(i, a);
1553
+ }
1554
+ function m(i, a) {
1555
+ if (typeof a != "function" && a !== null)
1556
+ throw new TypeError("Super expression must either be null or a function");
1557
+ i.prototype = Object.create(a && a.prototype, {
1558
+ constructor: {
1559
+ value: i,
1560
+ writable: !0,
1561
+ configurable: !0
1562
+ }
1563
+ }), Object.defineProperty(i, "prototype", {
1564
+ writable: !1
1565
+ }), a && ye(i, a);
1566
+ }
1567
+ function fe(i) {
1568
+ return fe = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(a) {
1569
+ return a.__proto__ || Object.getPrototypeOf(a);
1570
+ }, fe(i);
1571
+ }
1572
+ function Ve() {
1573
+ try {
1574
+ var i = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1575
+ }));
1576
+ } catch {
1577
+ }
1578
+ return (Ve = function() {
1579
+ return !!i;
1580
+ })();
1581
+ }
1582
+ function Cr(i, a) {
1583
+ if (a && (Q(a) == "object" || typeof a == "function"))
1584
+ return a;
1585
+ if (a !== void 0)
1586
+ throw new TypeError("Derived constructors may only return object or undefined");
1587
+ return c(i);
1588
+ }
1589
+ function p(i) {
1590
+ var a = Ve();
1591
+ return function() {
1592
+ var t, r = fe(i);
1593
+ if (a) {
1594
+ var e = fe(this).constructor;
1595
+ t = Reflect.construct(r, arguments, e);
1596
+ } else
1597
+ t = r.apply(this, arguments);
1598
+ return Cr(this, t);
1599
+ };
1600
+ }
1601
+ function h(i, a) {
1602
+ if (!(i instanceof a))
1603
+ throw new TypeError("Cannot call a class as a function");
1604
+ }
1605
+ function Dr(i, a) {
1606
+ if (Q(i) != "object" || !i)
1607
+ return i;
1608
+ var t = i[Symbol.toPrimitive];
1609
+ if (t !== void 0) {
1610
+ var r = t.call(i, a || "default");
1611
+ if (Q(r) != "object")
1612
+ return r;
1613
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1614
+ }
1615
+ return (a === "string" ? String : Number)(i);
1616
+ }
1617
+ function Ke(i) {
1618
+ var a = Dr(i, "string");
1619
+ return Q(a) == "symbol" ? a : a + "";
1620
+ }
1621
+ function kr(i, a) {
1622
+ for (var t = 0; t < a.length; t++) {
1623
+ var r = a[t];
1624
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(i, Ke(r.key), r);
1625
+ }
1626
+ }
1627
+ function v(i, a, t) {
1628
+ return a && kr(i.prototype, a), Object.defineProperty(i, "prototype", {
1629
+ writable: !1
1630
+ }), i;
1631
+ }
1632
+ function l(i, a, t) {
1633
+ return (a = Ke(a)) in i ? Object.defineProperty(i, a, {
1634
+ value: t,
1635
+ enumerable: !0,
1636
+ configurable: !0,
1637
+ writable: !0
1638
+ }) : i[a] = t, i;
1639
+ }
1640
+ var Pr = 10, Ze = /* @__PURE__ */ function() {
1641
+ function i() {
1642
+ h(this, i), l(this, "priority", void 0), l(this, "subPriority", 0);
1643
+ }
1644
+ return v(i, [{
1645
+ key: "validate",
1646
+ value: function(t, r) {
1647
+ return !0;
1648
+ }
1649
+ }]), i;
1650
+ }(), Mr = /* @__PURE__ */ function(i) {
1651
+ m(t, i);
1652
+ var a = p(t);
1653
+ function t(r, e, o, n, s) {
1654
+ var d;
1655
+ return h(this, t), d = a.call(this), d.value = r, d.validateValue = e, d.setValue = o, d.priority = n, s && (d.subPriority = s), d;
1656
+ }
1657
+ return v(t, [{
1658
+ key: "validate",
1659
+ value: function(e, o) {
1660
+ return this.validateValue(e, this.value, o);
1661
+ }
1662
+ }, {
1663
+ key: "set",
1664
+ value: function(e, o, n) {
1665
+ return this.setValue(e, o, this.value, n);
1666
+ }
1667
+ }]), t;
1668
+ }(Ze), Or = /* @__PURE__ */ function(i) {
1669
+ m(t, i);
1670
+ var a = p(t);
1671
+ function t() {
1672
+ var r;
1673
+ h(this, t);
1674
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
1675
+ o[n] = arguments[n];
1676
+ return r = a.call.apply(a, [this].concat(o)), l(c(r), "priority", Pr), l(c(r), "subPriority", -1), r;
1677
+ }
1678
+ return v(t, [{
1679
+ key: "set",
1680
+ value: function(e, o) {
1681
+ if (o.timestampIsSet)
1682
+ return e;
1683
+ var n = /* @__PURE__ */ new Date(0);
1684
+ return n.setFullYear(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate()), n.setHours(e.getUTCHours(), e.getUTCMinutes(), e.getUTCSeconds(), e.getUTCMilliseconds()), n;
1685
+ }
1686
+ }]), t;
1687
+ }(Ze), b = /* @__PURE__ */ function() {
1688
+ function i() {
1689
+ h(this, i), l(this, "incompatibleTokens", void 0), l(this, "priority", void 0), l(this, "subPriority", void 0);
1690
+ }
1691
+ return v(i, [{
1692
+ key: "run",
1693
+ value: function(t, r, e, o) {
1694
+ var n = this.parse(t, r, e, o);
1695
+ return n ? {
1696
+ setter: new Mr(n.value, this.validate, this.set, this.priority, this.subPriority),
1697
+ rest: n.rest
1698
+ } : null;
1699
+ }
1700
+ }, {
1701
+ key: "validate",
1702
+ value: function(t, r, e) {
1703
+ return !0;
1704
+ }
1705
+ }]), i;
1706
+ }(), Ur = /* @__PURE__ */ function(i) {
1707
+ m(t, i);
1708
+ var a = p(t);
1709
+ function t() {
1710
+ var r;
1711
+ h(this, t);
1712
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
1713
+ o[n] = arguments[n];
1714
+ return r = a.call.apply(a, [this].concat(o)), l(c(r), "priority", 140), l(c(r), "incompatibleTokens", ["R", "u", "t", "T"]), r;
1715
+ }
1716
+ return v(t, [{
1717
+ key: "parse",
1718
+ value: function(e, o, n) {
1719
+ switch (o) {
1720
+ case "G":
1721
+ case "GG":
1722
+ case "GGG":
1723
+ return n.era(e, {
1724
+ width: "abbreviated"
1725
+ }) || n.era(e, {
1726
+ width: "narrow"
1727
+ });
1728
+ case "GGGGG":
1729
+ return n.era(e, {
1730
+ width: "narrow"
1731
+ });
1732
+ case "GGGG":
1733
+ default:
1734
+ return n.era(e, {
1735
+ width: "wide"
1736
+ }) || n.era(e, {
1737
+ width: "abbreviated"
1738
+ }) || n.era(e, {
1739
+ width: "narrow"
1740
+ });
1741
+ }
1742
+ }
1743
+ }, {
1744
+ key: "set",
1745
+ value: function(e, o, n) {
1746
+ return o.era = n, e.setUTCFullYear(n, 0, 1), e.setUTCHours(0, 0, 0, 0), e;
1747
+ }
1748
+ }]), t;
1749
+ }(b), Er = 6e4, Yr = 36e5, _r = 1e3, O = {
1750
+ month: /^(1[0-2]|0?\d)/,
1751
+ // 0 to 12
1752
+ date: /^(3[0-1]|[0-2]?\d)/,
1753
+ // 0 to 31
1754
+ dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,
1755
+ // 0 to 366
1756
+ week: /^(5[0-3]|[0-4]?\d)/,
1757
+ // 0 to 53
1758
+ hour23h: /^(2[0-3]|[0-1]?\d)/,
1759
+ // 0 to 23
1760
+ hour24h: /^(2[0-4]|[0-1]?\d)/,
1761
+ // 0 to 24
1762
+ hour11h: /^(1[0-1]|0?\d)/,
1763
+ // 0 to 11
1764
+ hour12h: /^(1[0-2]|0?\d)/,
1765
+ // 0 to 12
1766
+ minute: /^[0-5]?\d/,
1767
+ // 0 to 59
1768
+ second: /^[0-5]?\d/,
1769
+ // 0 to 59
1770
+ singleDigit: /^\d/,
1771
+ // 0 to 9
1772
+ twoDigits: /^\d{1,2}/,
1773
+ // 0 to 99
1774
+ threeDigits: /^\d{1,3}/,
1775
+ // 0 to 999
1776
+ fourDigits: /^\d{1,4}/,
1777
+ // 0 to 9999
1778
+ anyDigitsSigned: /^-?\d+/,
1779
+ singleDigitSigned: /^-?\d/,
1780
+ // 0 to 9, -0 to -9
1781
+ twoDigitsSigned: /^-?\d{1,2}/,
1782
+ // 0 to 99, -0 to -99
1783
+ threeDigitsSigned: /^-?\d{1,3}/,
1784
+ // 0 to 999, -0 to -999
1785
+ fourDigitsSigned: /^-?\d{1,4}/
1786
+ // 0 to 9999, -0 to -9999
1787
+ }, q = {
1788
+ basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
1789
+ basic: /^([+-])(\d{2})(\d{2})|Z/,
1790
+ basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
1791
+ extended: /^([+-])(\d{2}):(\d{2})|Z/,
1792
+ extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/
1793
+ };
1794
+ function U(i, a) {
1795
+ return i && {
1796
+ value: a(i.value),
1797
+ rest: i.rest
1798
+ };
1799
+ }
1800
+ function D(i, a) {
1801
+ var t = a.match(i);
1802
+ return t ? {
1803
+ value: parseInt(t[0], 10),
1804
+ rest: a.slice(t[0].length)
1805
+ } : null;
1806
+ }
1807
+ function B(i, a) {
1808
+ var t = a.match(i);
1809
+ if (!t)
1810
+ return null;
1811
+ if (t[0] === "Z")
1812
+ return {
1813
+ value: 0,
1814
+ rest: a.slice(1)
1815
+ };
1816
+ var r = t[1] === "+" ? 1 : -1, e = t[2] ? parseInt(t[2], 10) : 0, o = t[3] ? parseInt(t[3], 10) : 0, n = t[5] ? parseInt(t[5], 10) : 0;
1817
+ return {
1818
+ value: r * (e * Yr + o * Er + n * _r),
1819
+ rest: a.slice(t[0].length)
1820
+ };
1821
+ }
1822
+ function Je(i) {
1823
+ return D(O.anyDigitsSigned, i);
1824
+ }
1825
+ function P(i, a) {
1826
+ switch (i) {
1827
+ case 1:
1828
+ return D(O.singleDigit, a);
1829
+ case 2:
1830
+ return D(O.twoDigits, a);
1831
+ case 3:
1832
+ return D(O.threeDigits, a);
1833
+ case 4:
1834
+ return D(O.fourDigits, a);
1835
+ default:
1836
+ return D(new RegExp("^\\d{1," + i + "}"), a);
1837
+ }
1838
+ }
1839
+ function he(i, a) {
1840
+ switch (i) {
1841
+ case 1:
1842
+ return D(O.singleDigitSigned, a);
1843
+ case 2:
1844
+ return D(O.twoDigitsSigned, a);
1845
+ case 3:
1846
+ return D(O.threeDigitsSigned, a);
1847
+ case 4:
1848
+ return D(O.fourDigitsSigned, a);
1849
+ default:
1850
+ return D(new RegExp("^-?\\d{1," + i + "}"), a);
1851
+ }
1852
+ }
1853
+ function Te(i) {
1854
+ switch (i) {
1855
+ case "morning":
1856
+ return 4;
1857
+ case "evening":
1858
+ return 17;
1859
+ case "pm":
1860
+ case "noon":
1861
+ case "afternoon":
1862
+ return 12;
1863
+ case "am":
1864
+ case "midnight":
1865
+ case "night":
1866
+ default:
1867
+ return 0;
1868
+ }
1869
+ }
1870
+ function et(i, a) {
1871
+ var t = a > 0, r = t ? a : 1 - a, e;
1872
+ if (r <= 50)
1873
+ e = i || 100;
1874
+ else {
1875
+ var o = r + 50, n = Math.floor(o / 100) * 100, s = i >= o % 100;
1876
+ e = i + n - (s ? 100 : 0);
1877
+ }
1878
+ return t ? e : 1 - e;
1879
+ }
1880
+ function tt(i) {
1881
+ return i % 400 === 0 || i % 4 === 0 && i % 100 !== 0;
1882
+ }
1883
+ var Wr = /* @__PURE__ */ function(i) {
1884
+ m(t, i);
1885
+ var a = p(t);
1886
+ function t() {
1887
+ var r;
1888
+ h(this, t);
1889
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
1890
+ o[n] = arguments[n];
1891
+ return r = a.call.apply(a, [this].concat(o)), l(c(r), "priority", 130), l(c(r), "incompatibleTokens", ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"]), r;
1892
+ }
1893
+ return v(t, [{
1894
+ key: "parse",
1895
+ value: function(e, o, n) {
1896
+ var s = function(f) {
1897
+ return {
1898
+ year: f,
1899
+ isTwoDigitYear: o === "yy"
1900
+ };
1901
+ };
1902
+ switch (o) {
1903
+ case "y":
1904
+ return U(P(4, e), s);
1905
+ case "yo":
1906
+ return U(n.ordinalNumber(e, {
1907
+ unit: "year"
1908
+ }), s);
1909
+ default:
1910
+ return U(P(o.length, e), s);
1911
+ }
1912
+ }
1913
+ }, {
1914
+ key: "validate",
1915
+ value: function(e, o) {
1916
+ return o.isTwoDigitYear || o.year > 0;
1917
+ }
1918
+ }, {
1919
+ key: "set",
1920
+ value: function(e, o, n) {
1921
+ var s = e.getUTCFullYear();
1922
+ if (n.isTwoDigitYear) {
1923
+ var d = et(n.year, s);
1924
+ return e.setUTCFullYear(d, 0, 1), e.setUTCHours(0, 0, 0, 0), e;
1925
+ }
1926
+ var f = !("era" in o) || o.era === 1 ? n.year : 1 - n.year;
1927
+ return e.setUTCFullYear(f, 0, 1), e.setUTCHours(0, 0, 0, 0), e;
1928
+ }
1929
+ }]), t;
1930
+ }(b), Lr = /* @__PURE__ */ function(i) {
1931
+ m(t, i);
1932
+ var a = p(t);
1933
+ function t() {
1934
+ var r;
1935
+ h(this, t);
1936
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
1937
+ o[n] = arguments[n];
1938
+ return r = a.call.apply(a, [this].concat(o)), l(c(r), "priority", 130), l(c(r), "incompatibleTokens", ["y", "R", "u", "Q", "q", "M", "L", "I", "d", "D", "i", "t", "T"]), r;
1939
+ }
1940
+ return v(t, [{
1941
+ key: "parse",
1942
+ value: function(e, o, n) {
1943
+ var s = function(f) {
1944
+ return {
1945
+ year: f,
1946
+ isTwoDigitYear: o === "YY"
1947
+ };
1948
+ };
1949
+ switch (o) {
1950
+ case "Y":
1951
+ return U(P(4, e), s);
1952
+ case "Yo":
1953
+ return U(n.ordinalNumber(e, {
1954
+ unit: "year"
1955
+ }), s);
1956
+ default:
1957
+ return U(P(o.length, e), s);
1958
+ }
1959
+ }
1960
+ }, {
1961
+ key: "validate",
1962
+ value: function(e, o) {
1963
+ return o.isTwoDigitYear || o.year > 0;
1964
+ }
1965
+ }, {
1966
+ key: "set",
1967
+ value: function(e, o, n, s) {
1968
+ var d = be(e, s);
1969
+ if (n.isTwoDigitYear) {
1970
+ var f = et(n.year, d);
1971
+ return e.setUTCFullYear(f, 0, s.firstWeekContainsDate), e.setUTCHours(0, 0, 0, 0), Z(e, s);
1972
+ }
1973
+ var w = !("era" in o) || o.era === 1 ? n.year : 1 - n.year;
1974
+ return e.setUTCFullYear(w, 0, s.firstWeekContainsDate), e.setUTCHours(0, 0, 0, 0), Z(e, s);
1975
+ }
1976
+ }]), t;
1977
+ }(b), Sr = /* @__PURE__ */ function(i) {
1978
+ m(t, i);
1979
+ var a = p(t);
1980
+ function t() {
1981
+ var r;
1982
+ h(this, t);
1983
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
1984
+ o[n] = arguments[n];
1985
+ return r = a.call.apply(a, [this].concat(o)), l(c(r), "priority", 130), l(c(r), "incompatibleTokens", ["G", "y", "Y", "u", "Q", "q", "M", "L", "w", "d", "D", "e", "c", "t", "T"]), r;
1986
+ }
1987
+ return v(t, [{
1988
+ key: "parse",
1989
+ value: function(e, o) {
1990
+ return he(o === "R" ? 4 : o.length, e);
1991
+ }
1992
+ }, {
1993
+ key: "set",
1994
+ value: function(e, o, n) {
1995
+ var s = /* @__PURE__ */ new Date(0);
1996
+ return s.setUTCFullYear(n, 0, 4), s.setUTCHours(0, 0, 0, 0), ee(s);
1997
+ }
1998
+ }]), t;
1999
+ }(b), Hr = /* @__PURE__ */ function(i) {
2000
+ m(t, i);
2001
+ var a = p(t);
2002
+ function t() {
2003
+ var r;
2004
+ h(this, t);
2005
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2006
+ o[n] = arguments[n];
2007
+ return r = a.call.apply(a, [this].concat(o)), l(c(r), "priority", 130), l(c(r), "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]), r;
2008
+ }
2009
+ return v(t, [{
2010
+ key: "parse",
2011
+ value: function(e, o) {
2012
+ return he(o === "u" ? 4 : o.length, e);
2013
+ }
2014
+ }, {
2015
+ key: "set",
2016
+ value: function(e, o, n) {
2017
+ return e.setUTCFullYear(n, 0, 1), e.setUTCHours(0, 0, 0, 0), e;
2018
+ }
2019
+ }]), t;
2020
+ }(b), Nr = /* @__PURE__ */ function(i) {
2021
+ m(t, i);
2022
+ var a = p(t);
2023
+ function t() {
2024
+ var r;
2025
+ h(this, t);
2026
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2027
+ o[n] = arguments[n];
2028
+ return r = a.call.apply(a, [this].concat(o)), l(c(r), "priority", 120), l(c(r), "incompatibleTokens", ["Y", "R", "q", "M", "L", "w", "I", "d", "D", "i", "e", "c", "t", "T"]), r;
2029
+ }
2030
+ return v(t, [{
2031
+ key: "parse",
2032
+ value: function(e, o, n) {
2033
+ switch (o) {
2034
+ case "Q":
2035
+ case "QQ":
2036
+ return P(o.length, e);
2037
+ case "Qo":
2038
+ return n.ordinalNumber(e, {
2039
+ unit: "quarter"
2040
+ });
2041
+ case "QQQ":
2042
+ return n.quarter(e, {
2043
+ width: "abbreviated",
2044
+ context: "formatting"
2045
+ }) || n.quarter(e, {
2046
+ width: "narrow",
2047
+ context: "formatting"
2048
+ });
2049
+ case "QQQQQ":
2050
+ return n.quarter(e, {
2051
+ width: "narrow",
2052
+ context: "formatting"
2053
+ });
2054
+ case "QQQQ":
2055
+ default:
2056
+ return n.quarter(e, {
2057
+ width: "wide",
2058
+ context: "formatting"
2059
+ }) || n.quarter(e, {
2060
+ width: "abbreviated",
2061
+ context: "formatting"
2062
+ }) || n.quarter(e, {
2063
+ width: "narrow",
2064
+ context: "formatting"
2065
+ });
2066
+ }
2067
+ }
2068
+ }, {
2069
+ key: "validate",
2070
+ value: function(e, o) {
2071
+ return o >= 1 && o <= 4;
2072
+ }
2073
+ }, {
2074
+ key: "set",
2075
+ value: function(e, o, n) {
2076
+ return e.setUTCMonth((n - 1) * 3, 1), e.setUTCHours(0, 0, 0, 0), e;
2077
+ }
2078
+ }]), t;
2079
+ }(b), Ar = /* @__PURE__ */ function(i) {
2080
+ m(t, i);
2081
+ var a = p(t);
2082
+ function t() {
2083
+ var r;
2084
+ h(this, t);
2085
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2086
+ o[n] = arguments[n];
2087
+ return r = a.call.apply(a, [this].concat(o)), l(c(r), "priority", 120), l(c(r), "incompatibleTokens", ["Y", "R", "Q", "M", "L", "w", "I", "d", "D", "i", "e", "c", "t", "T"]), r;
2088
+ }
2089
+ return v(t, [{
2090
+ key: "parse",
2091
+ value: function(e, o, n) {
2092
+ switch (o) {
2093
+ case "q":
2094
+ case "qq":
2095
+ return P(o.length, e);
2096
+ case "qo":
2097
+ return n.ordinalNumber(e, {
2098
+ unit: "quarter"
2099
+ });
2100
+ case "qqq":
2101
+ return n.quarter(e, {
2102
+ width: "abbreviated",
2103
+ context: "standalone"
2104
+ }) || n.quarter(e, {
2105
+ width: "narrow",
2106
+ context: "standalone"
2107
+ });
2108
+ case "qqqqq":
2109
+ return n.quarter(e, {
2110
+ width: "narrow",
2111
+ context: "standalone"
2112
+ });
2113
+ case "qqqq":
2114
+ default:
2115
+ return n.quarter(e, {
2116
+ width: "wide",
2117
+ context: "standalone"
2118
+ }) || n.quarter(e, {
2119
+ width: "abbreviated",
2120
+ context: "standalone"
2121
+ }) || n.quarter(e, {
2122
+ width: "narrow",
2123
+ context: "standalone"
2124
+ });
2125
+ }
2126
+ }
2127
+ }, {
2128
+ key: "validate",
2129
+ value: function(e, o) {
2130
+ return o >= 1 && o <= 4;
2131
+ }
2132
+ }, {
2133
+ key: "set",
2134
+ value: function(e, o, n) {
2135
+ return e.setUTCMonth((n - 1) * 3, 1), e.setUTCHours(0, 0, 0, 0), e;
2136
+ }
2137
+ }]), t;
2138
+ }(b), Fr = /* @__PURE__ */ function(i) {
2139
+ m(t, i);
2140
+ var a = p(t);
2141
+ function t() {
2142
+ var r;
2143
+ h(this, t);
2144
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2145
+ o[n] = arguments[n];
2146
+ return r = a.call.apply(a, [this].concat(o)), l(c(r), "incompatibleTokens", ["Y", "R", "q", "Q", "L", "w", "I", "D", "i", "e", "c", "t", "T"]), l(c(r), "priority", 110), r;
2147
+ }
2148
+ return v(t, [{
2149
+ key: "parse",
2150
+ value: function(e, o, n) {
2151
+ var s = function(f) {
2152
+ return f - 1;
2153
+ };
2154
+ switch (o) {
2155
+ case "M":
2156
+ return U(D(O.month, e), s);
2157
+ case "MM":
2158
+ return U(P(2, e), s);
2159
+ case "Mo":
2160
+ return U(n.ordinalNumber(e, {
2161
+ unit: "month"
2162
+ }), s);
2163
+ case "MMM":
2164
+ return n.month(e, {
2165
+ width: "abbreviated",
2166
+ context: "formatting"
2167
+ }) || n.month(e, {
2168
+ width: "narrow",
2169
+ context: "formatting"
2170
+ });
2171
+ case "MMMMM":
2172
+ return n.month(e, {
2173
+ width: "narrow",
2174
+ context: "formatting"
2175
+ });
2176
+ case "MMMM":
2177
+ default:
2178
+ return n.month(e, {
2179
+ width: "wide",
2180
+ context: "formatting"
2181
+ }) || n.month(e, {
2182
+ width: "abbreviated",
2183
+ context: "formatting"
2184
+ }) || n.month(e, {
2185
+ width: "narrow",
2186
+ context: "formatting"
2187
+ });
2188
+ }
2189
+ }
2190
+ }, {
2191
+ key: "validate",
2192
+ value: function(e, o) {
2193
+ return o >= 0 && o <= 11;
2194
+ }
2195
+ }, {
2196
+ key: "set",
2197
+ value: function(e, o, n) {
2198
+ return e.setUTCMonth(n, 1), e.setUTCHours(0, 0, 0, 0), e;
2199
+ }
2200
+ }]), t;
2201
+ }(b), Ir = /* @__PURE__ */ function(i) {
2202
+ m(t, i);
2203
+ var a = p(t);
2204
+ function t() {
2205
+ var r;
2206
+ h(this, t);
2207
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2208
+ o[n] = arguments[n];
2209
+ return r = a.call.apply(a, [this].concat(o)), l(c(r), "priority", 110), l(c(r), "incompatibleTokens", ["Y", "R", "q", "Q", "M", "w", "I", "D", "i", "e", "c", "t", "T"]), r;
2210
+ }
2211
+ return v(t, [{
2212
+ key: "parse",
2213
+ value: function(e, o, n) {
2214
+ var s = function(f) {
2215
+ return f - 1;
2216
+ };
2217
+ switch (o) {
2218
+ case "L":
2219
+ return U(D(O.month, e), s);
2220
+ case "LL":
2221
+ return U(P(2, e), s);
2222
+ case "Lo":
2223
+ return U(n.ordinalNumber(e, {
2224
+ unit: "month"
2225
+ }), s);
2226
+ case "LLL":
2227
+ return n.month(e, {
2228
+ width: "abbreviated",
2229
+ context: "standalone"
2230
+ }) || n.month(e, {
2231
+ width: "narrow",
2232
+ context: "standalone"
2233
+ });
2234
+ case "LLLLL":
2235
+ return n.month(e, {
2236
+ width: "narrow",
2237
+ context: "standalone"
2238
+ });
2239
+ case "LLLL":
2240
+ default:
2241
+ return n.month(e, {
2242
+ width: "wide",
2243
+ context: "standalone"
2244
+ }) || n.month(e, {
2245
+ width: "abbreviated",
2246
+ context: "standalone"
2247
+ }) || n.month(e, {
2248
+ width: "narrow",
2249
+ context: "standalone"
2250
+ });
2251
+ }
2252
+ }
2253
+ }, {
2254
+ key: "validate",
2255
+ value: function(e, o) {
2256
+ return o >= 0 && o <= 11;
2257
+ }
2258
+ }, {
2259
+ key: "set",
2260
+ value: function(e, o, n) {
2261
+ return e.setUTCMonth(n, 1), e.setUTCHours(0, 0, 0, 0), e;
2262
+ }
2263
+ }]), t;
2264
+ }(b);
2265
+ function qr(i, a, t) {
2266
+ M(2, arguments);
2267
+ var r = W(i), e = S(a), o = Be(r, t) - e;
2268
+ return r.setUTCDate(r.getUTCDate() - o * 7), r;
2269
+ }
2270
+ var Br = /* @__PURE__ */ function(i) {
2271
+ m(t, i);
2272
+ var a = p(t);
2273
+ function t() {
2274
+ var r;
2275
+ h(this, t);
2276
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2277
+ o[n] = arguments[n];
2278
+ return r = a.call.apply(a, [this].concat(o)), l(c(r), "priority", 100), l(c(r), "incompatibleTokens", ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "i", "t", "T"]), r;
2279
+ }
2280
+ return v(t, [{
2281
+ key: "parse",
2282
+ value: function(e, o, n) {
2283
+ switch (o) {
2284
+ case "w":
2285
+ return D(O.week, e);
2286
+ case "wo":
2287
+ return n.ordinalNumber(e, {
2288
+ unit: "week"
2289
+ });
2290
+ default:
2291
+ return P(o.length, e);
2292
+ }
2293
+ }
2294
+ }, {
2295
+ key: "validate",
2296
+ value: function(e, o) {
2297
+ return o >= 1 && o <= 53;
2298
+ }
2299
+ }, {
2300
+ key: "set",
2301
+ value: function(e, o, n, s) {
2302
+ return Z(qr(e, n, s), s);
2303
+ }
2304
+ }]), t;
2305
+ }(b);
2306
+ function $r(i, a) {
2307
+ M(2, arguments);
2308
+ var t = W(i), r = S(a), e = qe(t) - r;
2309
+ return t.setUTCDate(t.getUTCDate() - e * 7), t;
2310
+ }
2311
+ var Rr = /* @__PURE__ */ function(i) {
2312
+ m(t, i);
2313
+ var a = p(t);
2314
+ function t() {
2315
+ var r;
2316
+ h(this, t);
2317
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2318
+ o[n] = arguments[n];
2319
+ return r = a.call.apply(a, [this].concat(o)), l(c(r), "priority", 100), l(c(r), "incompatibleTokens", ["y", "Y", "u", "q", "Q", "M", "L", "w", "d", "D", "e", "c", "t", "T"]), r;
2320
+ }
2321
+ return v(t, [{
2322
+ key: "parse",
2323
+ value: function(e, o, n) {
2324
+ switch (o) {
2325
+ case "I":
2326
+ return D(O.week, e);
2327
+ case "Io":
2328
+ return n.ordinalNumber(e, {
2329
+ unit: "week"
2330
+ });
2331
+ default:
2332
+ return P(o.length, e);
2333
+ }
2334
+ }
2335
+ }, {
2336
+ key: "validate",
2337
+ value: function(e, o) {
2338
+ return o >= 1 && o <= 53;
2339
+ }
2340
+ }, {
2341
+ key: "set",
2342
+ value: function(e, o, n) {
2343
+ return ee($r(e, n));
2344
+ }
2345
+ }]), t;
2346
+ }(b), Qr = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], jr = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Xr = /* @__PURE__ */ function(i) {
2347
+ m(t, i);
2348
+ var a = p(t);
2349
+ function t() {
2350
+ var r;
2351
+ h(this, t);
2352
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2353
+ o[n] = arguments[n];
2354
+ return r = a.call.apply(a, [this].concat(o)), l(c(r), "priority", 90), l(c(r), "subPriority", 1), l(c(r), "incompatibleTokens", ["Y", "R", "q", "Q", "w", "I", "D", "i", "e", "c", "t", "T"]), r;
2355
+ }
2356
+ return v(t, [{
2357
+ key: "parse",
2358
+ value: function(e, o, n) {
2359
+ switch (o) {
2360
+ case "d":
2361
+ return D(O.date, e);
2362
+ case "do":
2363
+ return n.ordinalNumber(e, {
2364
+ unit: "date"
2365
+ });
2366
+ default:
2367
+ return P(o.length, e);
2368
+ }
2369
+ }
2370
+ }, {
2371
+ key: "validate",
2372
+ value: function(e, o) {
2373
+ var n = e.getUTCFullYear(), s = tt(n), d = e.getUTCMonth();
2374
+ return s ? o >= 1 && o <= jr[d] : o >= 1 && o <= Qr[d];
2375
+ }
2376
+ }, {
2377
+ key: "set",
2378
+ value: function(e, o, n) {
2379
+ return e.setUTCDate(n), e.setUTCHours(0, 0, 0, 0), e;
2380
+ }
2381
+ }]), t;
2382
+ }(b), Gr = /* @__PURE__ */ function(i) {
2383
+ m(t, i);
2384
+ var a = p(t);
2385
+ function t() {
2386
+ var r;
2387
+ h(this, t);
2388
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2389
+ o[n] = arguments[n];
2390
+ return r = a.call.apply(a, [this].concat(o)), l(c(r), "priority", 90), l(c(r), "subpriority", 1), l(c(r), "incompatibleTokens", ["Y", "R", "q", "Q", "M", "L", "w", "I", "d", "E", "i", "e", "c", "t", "T"]), r;
2391
+ }
2392
+ return v(t, [{
2393
+ key: "parse",
2394
+ value: function(e, o, n) {
2395
+ switch (o) {
2396
+ case "D":
2397
+ case "DD":
2398
+ return D(O.dayOfYear, e);
2399
+ case "Do":
2400
+ return n.ordinalNumber(e, {
2401
+ unit: "date"
2402
+ });
2403
+ default:
2404
+ return P(o.length, e);
2405
+ }
2406
+ }
2407
+ }, {
2408
+ key: "validate",
2409
+ value: function(e, o) {
2410
+ var n = e.getUTCFullYear(), s = tt(n);
2411
+ return s ? o >= 1 && o <= 366 : o >= 1 && o <= 365;
2412
+ }
2413
+ }, {
2414
+ key: "set",
2415
+ value: function(e, o, n) {
2416
+ return e.setUTCMonth(0, n), e.setUTCHours(0, 0, 0, 0), e;
2417
+ }
2418
+ }]), t;
2419
+ }(b);
2420
+ function xe(i, a, t) {
2421
+ var r, e, o, n, s, d, f, w;
2422
+ M(2, arguments);
2423
+ var y = te(), k = S((r = (e = (o = (n = t?.weekStartsOn) !== null && n !== void 0 ? n : t == null || (s = t.locale) === null || s === void 0 || (d = s.options) === null || d === void 0 ? void 0 : d.weekStartsOn) !== null && o !== void 0 ? o : y.weekStartsOn) !== null && e !== void 0 ? e : (f = y.locale) === null || f === void 0 || (w = f.options) === null || w === void 0 ? void 0 : w.weekStartsOn) !== null && r !== void 0 ? r : 0);
2424
+ if (!(k >= 0 && k <= 6))
2425
+ throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
2426
+ var C = W(i), E = S(a), F = C.getUTCDay(), H = E % 7, $ = (H + 7) % 7, L = ($ < k ? 7 : 0) + E - F;
2427
+ return C.setUTCDate(C.getUTCDate() + L), C;
2428
+ }
2429
+ var zr = /* @__PURE__ */ function(i) {
2430
+ m(t, i);
2431
+ var a = p(t);
2432
+ function t() {
2433
+ var r;
2434
+ h(this, t);
2435
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2436
+ o[n] = arguments[n];
2437
+ return r = a.call.apply(a, [this].concat(o)), l(c(r), "priority", 90), l(c(r), "incompatibleTokens", ["D", "i", "e", "c", "t", "T"]), r;
2438
+ }
2439
+ return v(t, [{
2440
+ key: "parse",
2441
+ value: function(e, o, n) {
2442
+ switch (o) {
2443
+ case "E":
2444
+ case "EE":
2445
+ case "EEE":
2446
+ return n.day(e, {
2447
+ width: "abbreviated",
2448
+ context: "formatting"
2449
+ }) || n.day(e, {
2450
+ width: "short",
2451
+ context: "formatting"
2452
+ }) || n.day(e, {
2453
+ width: "narrow",
2454
+ context: "formatting"
2455
+ });
2456
+ case "EEEEE":
2457
+ return n.day(e, {
2458
+ width: "narrow",
2459
+ context: "formatting"
2460
+ });
2461
+ case "EEEEEE":
2462
+ return n.day(e, {
2463
+ width: "short",
2464
+ context: "formatting"
2465
+ }) || n.day(e, {
2466
+ width: "narrow",
2467
+ context: "formatting"
2468
+ });
2469
+ case "EEEE":
2470
+ default:
2471
+ return n.day(e, {
2472
+ width: "wide",
2473
+ context: "formatting"
2474
+ }) || n.day(e, {
2475
+ width: "abbreviated",
2476
+ context: "formatting"
2477
+ }) || n.day(e, {
2478
+ width: "short",
2479
+ context: "formatting"
2480
+ }) || n.day(e, {
2481
+ width: "narrow",
2482
+ context: "formatting"
2483
+ });
2484
+ }
2485
+ }
2486
+ }, {
2487
+ key: "validate",
2488
+ value: function(e, o) {
2489
+ return o >= 0 && o <= 6;
2490
+ }
2491
+ }, {
2492
+ key: "set",
2493
+ value: function(e, o, n, s) {
2494
+ return e = xe(e, n, s), e.setUTCHours(0, 0, 0, 0), e;
2495
+ }
2496
+ }]), t;
2497
+ }(b), Vr = /* @__PURE__ */ function(i) {
2498
+ m(t, i);
2499
+ var a = p(t);
2500
+ function t() {
2501
+ var r;
2502
+ h(this, t);
2503
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2504
+ o[n] = arguments[n];
2505
+ return r = a.call.apply(a, [this].concat(o)), l(c(r), "priority", 90), l(c(r), "incompatibleTokens", ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "E", "i", "c", "t", "T"]), r;
2506
+ }
2507
+ return v(t, [{
2508
+ key: "parse",
2509
+ value: function(e, o, n, s) {
2510
+ var d = function(w) {
2511
+ var y = Math.floor((w - 1) / 7) * 7;
2512
+ return (w + s.weekStartsOn + 6) % 7 + y;
2513
+ };
2514
+ switch (o) {
2515
+ case "e":
2516
+ case "ee":
2517
+ return U(P(o.length, e), d);
2518
+ case "eo":
2519
+ return U(n.ordinalNumber(e, {
2520
+ unit: "day"
2521
+ }), d);
2522
+ case "eee":
2523
+ return n.day(e, {
2524
+ width: "abbreviated",
2525
+ context: "formatting"
2526
+ }) || n.day(e, {
2527
+ width: "short",
2528
+ context: "formatting"
2529
+ }) || n.day(e, {
2530
+ width: "narrow",
2531
+ context: "formatting"
2532
+ });
2533
+ case "eeeee":
2534
+ return n.day(e, {
2535
+ width: "narrow",
2536
+ context: "formatting"
2537
+ });
2538
+ case "eeeeee":
2539
+ return n.day(e, {
2540
+ width: "short",
2541
+ context: "formatting"
2542
+ }) || n.day(e, {
2543
+ width: "narrow",
2544
+ context: "formatting"
2545
+ });
2546
+ case "eeee":
2547
+ default:
2548
+ return n.day(e, {
2549
+ width: "wide",
2550
+ context: "formatting"
2551
+ }) || n.day(e, {
2552
+ width: "abbreviated",
2553
+ context: "formatting"
2554
+ }) || n.day(e, {
2555
+ width: "short",
2556
+ context: "formatting"
2557
+ }) || n.day(e, {
2558
+ width: "narrow",
2559
+ context: "formatting"
2560
+ });
2561
+ }
2562
+ }
2563
+ }, {
2564
+ key: "validate",
2565
+ value: function(e, o) {
2566
+ return o >= 0 && o <= 6;
2567
+ }
2568
+ }, {
2569
+ key: "set",
2570
+ value: function(e, o, n, s) {
2571
+ return e = xe(e, n, s), e.setUTCHours(0, 0, 0, 0), e;
2572
+ }
2573
+ }]), t;
2574
+ }(b), Kr = /* @__PURE__ */ function(i) {
2575
+ m(t, i);
2576
+ var a = p(t);
2577
+ function t() {
2578
+ var r;
2579
+ h(this, t);
2580
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2581
+ o[n] = arguments[n];
2582
+ return r = a.call.apply(a, [this].concat(o)), l(c(r), "priority", 90), l(c(r), "incompatibleTokens", ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "E", "i", "e", "t", "T"]), r;
2583
+ }
2584
+ return v(t, [{
2585
+ key: "parse",
2586
+ value: function(e, o, n, s) {
2587
+ var d = function(w) {
2588
+ var y = Math.floor((w - 1) / 7) * 7;
2589
+ return (w + s.weekStartsOn + 6) % 7 + y;
2590
+ };
2591
+ switch (o) {
2592
+ case "c":
2593
+ case "cc":
2594
+ return U(P(o.length, e), d);
2595
+ case "co":
2596
+ return U(n.ordinalNumber(e, {
2597
+ unit: "day"
2598
+ }), d);
2599
+ case "ccc":
2600
+ return n.day(e, {
2601
+ width: "abbreviated",
2602
+ context: "standalone"
2603
+ }) || n.day(e, {
2604
+ width: "short",
2605
+ context: "standalone"
2606
+ }) || n.day(e, {
2607
+ width: "narrow",
2608
+ context: "standalone"
2609
+ });
2610
+ case "ccccc":
2611
+ return n.day(e, {
2612
+ width: "narrow",
2613
+ context: "standalone"
2614
+ });
2615
+ case "cccccc":
2616
+ return n.day(e, {
2617
+ width: "short",
2618
+ context: "standalone"
2619
+ }) || n.day(e, {
2620
+ width: "narrow",
2621
+ context: "standalone"
2622
+ });
2623
+ case "cccc":
2624
+ default:
2625
+ return n.day(e, {
2626
+ width: "wide",
2627
+ context: "standalone"
2628
+ }) || n.day(e, {
2629
+ width: "abbreviated",
2630
+ context: "standalone"
2631
+ }) || n.day(e, {
2632
+ width: "short",
2633
+ context: "standalone"
2634
+ }) || n.day(e, {
2635
+ width: "narrow",
2636
+ context: "standalone"
2637
+ });
2638
+ }
2639
+ }
2640
+ }, {
2641
+ key: "validate",
2642
+ value: function(e, o) {
2643
+ return o >= 0 && o <= 6;
2644
+ }
2645
+ }, {
2646
+ key: "set",
2647
+ value: function(e, o, n, s) {
2648
+ return e = xe(e, n, s), e.setUTCHours(0, 0, 0, 0), e;
2649
+ }
2650
+ }]), t;
2651
+ }(b);
2652
+ function Zr(i, a) {
2653
+ M(2, arguments);
2654
+ var t = S(a);
2655
+ t % 7 === 0 && (t = t - 7);
2656
+ var r = 1, e = W(i), o = e.getUTCDay(), n = t % 7, s = (n + 7) % 7, d = (s < r ? 7 : 0) + t - o;
2657
+ return e.setUTCDate(e.getUTCDate() + d), e;
2658
+ }
2659
+ var Jr = /* @__PURE__ */ function(i) {
2660
+ m(t, i);
2661
+ var a = p(t);
2662
+ function t() {
2663
+ var r;
2664
+ h(this, t);
2665
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2666
+ o[n] = arguments[n];
2667
+ return r = a.call.apply(a, [this].concat(o)), l(c(r), "priority", 90), l(c(r), "incompatibleTokens", ["y", "Y", "u", "q", "Q", "M", "L", "w", "d", "D", "E", "e", "c", "t", "T"]), r;
2668
+ }
2669
+ return v(t, [{
2670
+ key: "parse",
2671
+ value: function(e, o, n) {
2672
+ var s = function(f) {
2673
+ return f === 0 ? 7 : f;
2674
+ };
2675
+ switch (o) {
2676
+ case "i":
2677
+ case "ii":
2678
+ return P(o.length, e);
2679
+ case "io":
2680
+ return n.ordinalNumber(e, {
2681
+ unit: "day"
2682
+ });
2683
+ case "iii":
2684
+ return U(n.day(e, {
2685
+ width: "abbreviated",
2686
+ context: "formatting"
2687
+ }) || n.day(e, {
2688
+ width: "short",
2689
+ context: "formatting"
2690
+ }) || n.day(e, {
2691
+ width: "narrow",
2692
+ context: "formatting"
2693
+ }), s);
2694
+ case "iiiii":
2695
+ return U(n.day(e, {
2696
+ width: "narrow",
2697
+ context: "formatting"
2698
+ }), s);
2699
+ case "iiiiii":
2700
+ return U(n.day(e, {
2701
+ width: "short",
2702
+ context: "formatting"
2703
+ }) || n.day(e, {
2704
+ width: "narrow",
2705
+ context: "formatting"
2706
+ }), s);
2707
+ case "iiii":
2708
+ default:
2709
+ return U(n.day(e, {
2710
+ width: "wide",
2711
+ context: "formatting"
2712
+ }) || n.day(e, {
2713
+ width: "abbreviated",
2714
+ context: "formatting"
2715
+ }) || n.day(e, {
2716
+ width: "short",
2717
+ context: "formatting"
2718
+ }) || n.day(e, {
2719
+ width: "narrow",
2720
+ context: "formatting"
2721
+ }), s);
2722
+ }
2723
+ }
2724
+ }, {
2725
+ key: "validate",
2726
+ value: function(e, o) {
2727
+ return o >= 1 && o <= 7;
2728
+ }
2729
+ }, {
2730
+ key: "set",
2731
+ value: function(e, o, n) {
2732
+ return e = Zr(e, n), e.setUTCHours(0, 0, 0, 0), e;
2733
+ }
2734
+ }]), t;
2735
+ }(b), ea = /* @__PURE__ */ function(i) {
2736
+ m(t, i);
2737
+ var a = p(t);
2738
+ function t() {
2739
+ var r;
2740
+ h(this, t);
2741
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2742
+ o[n] = arguments[n];
2743
+ return r = a.call.apply(a, [this].concat(o)), l(c(r), "priority", 80), l(c(r), "incompatibleTokens", ["b", "B", "H", "k", "t", "T"]), r;
2744
+ }
2745
+ return v(t, [{
2746
+ key: "parse",
2747
+ value: function(e, o, n) {
2748
+ switch (o) {
2749
+ case "a":
2750
+ case "aa":
2751
+ case "aaa":
2752
+ return n.dayPeriod(e, {
2753
+ width: "abbreviated",
2754
+ context: "formatting"
2755
+ }) || n.dayPeriod(e, {
2756
+ width: "narrow",
2757
+ context: "formatting"
2758
+ });
2759
+ case "aaaaa":
2760
+ return n.dayPeriod(e, {
2761
+ width: "narrow",
2762
+ context: "formatting"
2763
+ });
2764
+ case "aaaa":
2765
+ default:
2766
+ return n.dayPeriod(e, {
2767
+ width: "wide",
2768
+ context: "formatting"
2769
+ }) || n.dayPeriod(e, {
2770
+ width: "abbreviated",
2771
+ context: "formatting"
2772
+ }) || n.dayPeriod(e, {
2773
+ width: "narrow",
2774
+ context: "formatting"
2775
+ });
2776
+ }
2777
+ }
2778
+ }, {
2779
+ key: "set",
2780
+ value: function(e, o, n) {
2781
+ return e.setUTCHours(Te(n), 0, 0, 0), e;
2782
+ }
2783
+ }]), t;
2784
+ }(b), ta = /* @__PURE__ */ function(i) {
2785
+ m(t, i);
2786
+ var a = p(t);
2787
+ function t() {
2788
+ var r;
2789
+ h(this, t);
2790
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2791
+ o[n] = arguments[n];
2792
+ return r = a.call.apply(a, [this].concat(o)), l(c(r), "priority", 80), l(c(r), "incompatibleTokens", ["a", "B", "H", "k", "t", "T"]), r;
2793
+ }
2794
+ return v(t, [{
2795
+ key: "parse",
2796
+ value: function(e, o, n) {
2797
+ switch (o) {
2798
+ case "b":
2799
+ case "bb":
2800
+ case "bbb":
2801
+ return n.dayPeriod(e, {
2802
+ width: "abbreviated",
2803
+ context: "formatting"
2804
+ }) || n.dayPeriod(e, {
2805
+ width: "narrow",
2806
+ context: "formatting"
2807
+ });
2808
+ case "bbbbb":
2809
+ return n.dayPeriod(e, {
2810
+ width: "narrow",
2811
+ context: "formatting"
2812
+ });
2813
+ case "bbbb":
2814
+ default:
2815
+ return n.dayPeriod(e, {
2816
+ width: "wide",
2817
+ context: "formatting"
2818
+ }) || n.dayPeriod(e, {
2819
+ width: "abbreviated",
2820
+ context: "formatting"
2821
+ }) || n.dayPeriod(e, {
2822
+ width: "narrow",
2823
+ context: "formatting"
2824
+ });
2825
+ }
2826
+ }
2827
+ }, {
2828
+ key: "set",
2829
+ value: function(e, o, n) {
2830
+ return e.setUTCHours(Te(n), 0, 0, 0), e;
2831
+ }
2832
+ }]), t;
2833
+ }(b), ra = /* @__PURE__ */ function(i) {
2834
+ m(t, i);
2835
+ var a = p(t);
2836
+ function t() {
2837
+ var r;
2838
+ h(this, t);
2839
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2840
+ o[n] = arguments[n];
2841
+ return r = a.call.apply(a, [this].concat(o)), l(c(r), "priority", 80), l(c(r), "incompatibleTokens", ["a", "b", "t", "T"]), r;
2842
+ }
2843
+ return v(t, [{
2844
+ key: "parse",
2845
+ value: function(e, o, n) {
2846
+ switch (o) {
2847
+ case "B":
2848
+ case "BB":
2849
+ case "BBB":
2850
+ return n.dayPeriod(e, {
2851
+ width: "abbreviated",
2852
+ context: "formatting"
2853
+ }) || n.dayPeriod(e, {
2854
+ width: "narrow",
2855
+ context: "formatting"
2856
+ });
2857
+ case "BBBBB":
2858
+ return n.dayPeriod(e, {
2859
+ width: "narrow",
2860
+ context: "formatting"
2861
+ });
2862
+ case "BBBB":
2863
+ default:
2864
+ return n.dayPeriod(e, {
2865
+ width: "wide",
2866
+ context: "formatting"
2867
+ }) || n.dayPeriod(e, {
2868
+ width: "abbreviated",
2869
+ context: "formatting"
2870
+ }) || n.dayPeriod(e, {
2871
+ width: "narrow",
2872
+ context: "formatting"
2873
+ });
2874
+ }
2875
+ }
2876
+ }, {
2877
+ key: "set",
2878
+ value: function(e, o, n) {
2879
+ return e.setUTCHours(Te(n), 0, 0, 0), e;
2880
+ }
2881
+ }]), t;
2882
+ }(b), aa = /* @__PURE__ */ function(i) {
2883
+ m(t, i);
2884
+ var a = p(t);
2885
+ function t() {
2886
+ var r;
2887
+ h(this, t);
2888
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2889
+ o[n] = arguments[n];
2890
+ return r = a.call.apply(a, [this].concat(o)), l(c(r), "priority", 70), l(c(r), "incompatibleTokens", ["H", "K", "k", "t", "T"]), r;
2891
+ }
2892
+ return v(t, [{
2893
+ key: "parse",
2894
+ value: function(e, o, n) {
2895
+ switch (o) {
2896
+ case "h":
2897
+ return D(O.hour12h, e);
2898
+ case "ho":
2899
+ return n.ordinalNumber(e, {
2900
+ unit: "hour"
2901
+ });
2902
+ default:
2903
+ return P(o.length, e);
2904
+ }
2905
+ }
2906
+ }, {
2907
+ key: "validate",
2908
+ value: function(e, o) {
2909
+ return o >= 1 && o <= 12;
2910
+ }
2911
+ }, {
2912
+ key: "set",
2913
+ value: function(e, o, n) {
2914
+ var s = e.getUTCHours() >= 12;
2915
+ return s && n < 12 ? e.setUTCHours(n + 12, 0, 0, 0) : !s && n === 12 ? e.setUTCHours(0, 0, 0, 0) : e.setUTCHours(n, 0, 0, 0), e;
2916
+ }
2917
+ }]), t;
2918
+ }(b), na = /* @__PURE__ */ function(i) {
2919
+ m(t, i);
2920
+ var a = p(t);
2921
+ function t() {
2922
+ var r;
2923
+ h(this, t);
2924
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2925
+ o[n] = arguments[n];
2926
+ return r = a.call.apply(a, [this].concat(o)), l(c(r), "priority", 70), l(c(r), "incompatibleTokens", ["a", "b", "h", "K", "k", "t", "T"]), r;
2927
+ }
2928
+ return v(t, [{
2929
+ key: "parse",
2930
+ value: function(e, o, n) {
2931
+ switch (o) {
2932
+ case "H":
2933
+ return D(O.hour23h, e);
2934
+ case "Ho":
2935
+ return n.ordinalNumber(e, {
2936
+ unit: "hour"
2937
+ });
2938
+ default:
2939
+ return P(o.length, e);
2940
+ }
2941
+ }
2942
+ }, {
2943
+ key: "validate",
2944
+ value: function(e, o) {
2945
+ return o >= 0 && o <= 23;
2946
+ }
2947
+ }, {
2948
+ key: "set",
2949
+ value: function(e, o, n) {
2950
+ return e.setUTCHours(n, 0, 0, 0), e;
2951
+ }
2952
+ }]), t;
2953
+ }(b), ia = /* @__PURE__ */ function(i) {
2954
+ m(t, i);
2955
+ var a = p(t);
2956
+ function t() {
2957
+ var r;
2958
+ h(this, t);
2959
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2960
+ o[n] = arguments[n];
2961
+ return r = a.call.apply(a, [this].concat(o)), l(c(r), "priority", 70), l(c(r), "incompatibleTokens", ["h", "H", "k", "t", "T"]), r;
2962
+ }
2963
+ return v(t, [{
2964
+ key: "parse",
2965
+ value: function(e, o, n) {
2966
+ switch (o) {
2967
+ case "K":
2968
+ return D(O.hour11h, e);
2969
+ case "Ko":
2970
+ return n.ordinalNumber(e, {
2971
+ unit: "hour"
2972
+ });
2973
+ default:
2974
+ return P(o.length, e);
2975
+ }
2976
+ }
2977
+ }, {
2978
+ key: "validate",
2979
+ value: function(e, o) {
2980
+ return o >= 0 && o <= 11;
2981
+ }
2982
+ }, {
2983
+ key: "set",
2984
+ value: function(e, o, n) {
2985
+ var s = e.getUTCHours() >= 12;
2986
+ return s && n < 12 ? e.setUTCHours(n + 12, 0, 0, 0) : e.setUTCHours(n, 0, 0, 0), e;
2987
+ }
2988
+ }]), t;
2989
+ }(b), oa = /* @__PURE__ */ function(i) {
2990
+ m(t, i);
2991
+ var a = p(t);
2992
+ function t() {
2993
+ var r;
2994
+ h(this, t);
2995
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2996
+ o[n] = arguments[n];
2997
+ return r = a.call.apply(a, [this].concat(o)), l(c(r), "priority", 70), l(c(r), "incompatibleTokens", ["a", "b", "h", "H", "K", "t", "T"]), r;
2998
+ }
2999
+ return v(t, [{
3000
+ key: "parse",
3001
+ value: function(e, o, n) {
3002
+ switch (o) {
3003
+ case "k":
3004
+ return D(O.hour24h, e);
3005
+ case "ko":
3006
+ return n.ordinalNumber(e, {
3007
+ unit: "hour"
3008
+ });
3009
+ default:
3010
+ return P(o.length, e);
3011
+ }
3012
+ }
3013
+ }, {
3014
+ key: "validate",
3015
+ value: function(e, o) {
3016
+ return o >= 1 && o <= 24;
3017
+ }
3018
+ }, {
3019
+ key: "set",
3020
+ value: function(e, o, n) {
3021
+ var s = n <= 24 ? n % 24 : n;
3022
+ return e.setUTCHours(s, 0, 0, 0), e;
3023
+ }
3024
+ }]), t;
3025
+ }(b), sa = /* @__PURE__ */ function(i) {
3026
+ m(t, i);
3027
+ var a = p(t);
3028
+ function t() {
3029
+ var r;
3030
+ h(this, t);
3031
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
3032
+ o[n] = arguments[n];
3033
+ return r = a.call.apply(a, [this].concat(o)), l(c(r), "priority", 60), l(c(r), "incompatibleTokens", ["t", "T"]), r;
3034
+ }
3035
+ return v(t, [{
3036
+ key: "parse",
3037
+ value: function(e, o, n) {
3038
+ switch (o) {
3039
+ case "m":
3040
+ return D(O.minute, e);
3041
+ case "mo":
3042
+ return n.ordinalNumber(e, {
3043
+ unit: "minute"
3044
+ });
3045
+ default:
3046
+ return P(o.length, e);
3047
+ }
3048
+ }
3049
+ }, {
3050
+ key: "validate",
3051
+ value: function(e, o) {
3052
+ return o >= 0 && o <= 59;
3053
+ }
3054
+ }, {
3055
+ key: "set",
3056
+ value: function(e, o, n) {
3057
+ return e.setUTCMinutes(n, 0, 0), e;
3058
+ }
3059
+ }]), t;
3060
+ }(b), ua = /* @__PURE__ */ function(i) {
3061
+ m(t, i);
3062
+ var a = p(t);
3063
+ function t() {
3064
+ var r;
3065
+ h(this, t);
3066
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
3067
+ o[n] = arguments[n];
3068
+ return r = a.call.apply(a, [this].concat(o)), l(c(r), "priority", 50), l(c(r), "incompatibleTokens", ["t", "T"]), r;
3069
+ }
3070
+ return v(t, [{
3071
+ key: "parse",
3072
+ value: function(e, o, n) {
3073
+ switch (o) {
3074
+ case "s":
3075
+ return D(O.second, e);
3076
+ case "so":
3077
+ return n.ordinalNumber(e, {
3078
+ unit: "second"
3079
+ });
3080
+ default:
3081
+ return P(o.length, e);
3082
+ }
3083
+ }
3084
+ }, {
3085
+ key: "validate",
3086
+ value: function(e, o) {
3087
+ return o >= 0 && o <= 59;
3088
+ }
3089
+ }, {
3090
+ key: "set",
3091
+ value: function(e, o, n) {
3092
+ return e.setUTCSeconds(n, 0), e;
3093
+ }
3094
+ }]), t;
3095
+ }(b), la = /* @__PURE__ */ function(i) {
3096
+ m(t, i);
3097
+ var a = p(t);
3098
+ function t() {
3099
+ var r;
3100
+ h(this, t);
3101
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
3102
+ o[n] = arguments[n];
3103
+ return r = a.call.apply(a, [this].concat(o)), l(c(r), "priority", 30), l(c(r), "incompatibleTokens", ["t", "T"]), r;
3104
+ }
3105
+ return v(t, [{
3106
+ key: "parse",
3107
+ value: function(e, o) {
3108
+ var n = function(d) {
3109
+ return Math.floor(d * Math.pow(10, -o.length + 3));
3110
+ };
3111
+ return U(P(o.length, e), n);
3112
+ }
3113
+ }, {
3114
+ key: "set",
3115
+ value: function(e, o, n) {
3116
+ return e.setUTCMilliseconds(n), e;
3117
+ }
3118
+ }]), t;
3119
+ }(b), ca = /* @__PURE__ */ function(i) {
3120
+ m(t, i);
3121
+ var a = p(t);
3122
+ function t() {
3123
+ var r;
3124
+ h(this, t);
3125
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
3126
+ o[n] = arguments[n];
3127
+ return r = a.call.apply(a, [this].concat(o)), l(c(r), "priority", 10), l(c(r), "incompatibleTokens", ["t", "T", "x"]), r;
3128
+ }
3129
+ return v(t, [{
3130
+ key: "parse",
3131
+ value: function(e, o) {
3132
+ switch (o) {
3133
+ case "X":
3134
+ return B(q.basicOptionalMinutes, e);
3135
+ case "XX":
3136
+ return B(q.basic, e);
3137
+ case "XXXX":
3138
+ return B(q.basicOptionalSeconds, e);
3139
+ case "XXXXX":
3140
+ return B(q.extendedOptionalSeconds, e);
3141
+ case "XXX":
3142
+ default:
3143
+ return B(q.extended, e);
3144
+ }
3145
+ }
3146
+ }, {
3147
+ key: "set",
3148
+ value: function(e, o, n) {
3149
+ return o.timestampIsSet ? e : new Date(e.getTime() - n);
3150
+ }
3151
+ }]), t;
3152
+ }(b), da = /* @__PURE__ */ function(i) {
3153
+ m(t, i);
3154
+ var a = p(t);
3155
+ function t() {
3156
+ var r;
3157
+ h(this, t);
3158
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
3159
+ o[n] = arguments[n];
3160
+ return r = a.call.apply(a, [this].concat(o)), l(c(r), "priority", 10), l(c(r), "incompatibleTokens", ["t", "T", "X"]), r;
3161
+ }
3162
+ return v(t, [{
3163
+ key: "parse",
3164
+ value: function(e, o) {
3165
+ switch (o) {
3166
+ case "x":
3167
+ return B(q.basicOptionalMinutes, e);
3168
+ case "xx":
3169
+ return B(q.basic, e);
3170
+ case "xxxx":
3171
+ return B(q.basicOptionalSeconds, e);
3172
+ case "xxxxx":
3173
+ return B(q.extendedOptionalSeconds, e);
3174
+ case "xxx":
3175
+ default:
3176
+ return B(q.extended, e);
3177
+ }
3178
+ }
3179
+ }, {
3180
+ key: "set",
3181
+ value: function(e, o, n) {
3182
+ return o.timestampIsSet ? e : new Date(e.getTime() - n);
3183
+ }
3184
+ }]), t;
3185
+ }(b), fa = /* @__PURE__ */ function(i) {
3186
+ m(t, i);
3187
+ var a = p(t);
3188
+ function t() {
3189
+ var r;
3190
+ h(this, t);
3191
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
3192
+ o[n] = arguments[n];
3193
+ return r = a.call.apply(a, [this].concat(o)), l(c(r), "priority", 40), l(c(r), "incompatibleTokens", "*"), r;
3194
+ }
3195
+ return v(t, [{
3196
+ key: "parse",
3197
+ value: function(e) {
3198
+ return Je(e);
3199
+ }
3200
+ }, {
3201
+ key: "set",
3202
+ value: function(e, o, n) {
3203
+ return [new Date(n * 1e3), {
3204
+ timestampIsSet: !0
3205
+ }];
3206
+ }
3207
+ }]), t;
3208
+ }(b), ha = /* @__PURE__ */ function(i) {
3209
+ m(t, i);
3210
+ var a = p(t);
3211
+ function t() {
3212
+ var r;
3213
+ h(this, t);
3214
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
3215
+ o[n] = arguments[n];
3216
+ return r = a.call.apply(a, [this].concat(o)), l(c(r), "priority", 20), l(c(r), "incompatibleTokens", "*"), r;
3217
+ }
3218
+ return v(t, [{
3219
+ key: "parse",
3220
+ value: function(e) {
3221
+ return Je(e);
3222
+ }
3223
+ }, {
3224
+ key: "set",
3225
+ value: function(e, o, n) {
3226
+ return [new Date(n), {
3227
+ timestampIsSet: !0
3228
+ }];
3229
+ }
3230
+ }]), t;
3231
+ }(b), va = {
3232
+ G: new Ur(),
3233
+ y: new Wr(),
3234
+ Y: new Lr(),
3235
+ R: new Sr(),
3236
+ u: new Hr(),
3237
+ Q: new Nr(),
3238
+ q: new Ar(),
3239
+ M: new Fr(),
3240
+ L: new Ir(),
3241
+ w: new Br(),
3242
+ I: new Rr(),
3243
+ d: new Xr(),
3244
+ D: new Gr(),
3245
+ E: new zr(),
3246
+ e: new Vr(),
3247
+ c: new Kr(),
3248
+ i: new Jr(),
3249
+ a: new ea(),
3250
+ b: new ta(),
3251
+ B: new ra(),
3252
+ h: new aa(),
3253
+ H: new na(),
3254
+ K: new ia(),
3255
+ k: new oa(),
3256
+ m: new sa(),
3257
+ s: new ua(),
3258
+ S: new la(),
3259
+ X: new ca(),
3260
+ x: new da(),
3261
+ t: new fa(),
3262
+ T: new ha()
3263
+ }, ma = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, pa = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ga = /^'([^]*?)'?$/, wa = /''/g, ya = /\S/, ba = /[a-zA-Z]/;
3264
+ function rt(i, a, t, r) {
3265
+ var e, o, n, s, d, f, w, y, k, C, E, F, H, $;
3266
+ M(3, arguments);
3267
+ var L = String(i), I = String(a), R = te(), j = (e = (o = void 0) !== null && o !== void 0 ? o : R.locale) !== null && e !== void 0 ? e : Xe;
3268
+ if (!j.match)
3269
+ throw new RangeError("locale must contain match property");
3270
+ var X = S((n = (s = (d = (f = void 0) !== null && f !== void 0 ? f : void 0) !== null && d !== void 0 ? d : R.firstWeekContainsDate) !== null && s !== void 0 ? s : (w = R.locale) === null || w === void 0 || (y = w.options) === null || y === void 0 ? void 0 : y.firstWeekContainsDate) !== null && n !== void 0 ? n : 1);
3271
+ if (!(X >= 1 && X <= 7))
3272
+ throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
3273
+ var re = S((k = (C = (E = (F = void 0) !== null && F !== void 0 ? F : void 0) !== null && E !== void 0 ? E : R.weekStartsOn) !== null && C !== void 0 ? C : (H = R.locale) === null || H === void 0 || ($ = H.options) === null || $ === void 0 ? void 0 : $.weekStartsOn) !== null && k !== void 0 ? k : 0);
3274
+ if (!(re >= 0 && re <= 6))
3275
+ throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
3276
+ if (I === "")
3277
+ return L === "" ? W(t) : /* @__PURE__ */ new Date(NaN);
3278
+ var ae = {
3279
+ firstWeekContainsDate: X,
3280
+ weekStartsOn: re,
3281
+ locale: j
3282
+ }, ne = [new Or()], ve = I.match(pa).map(function(Y) {
3283
+ var x = Y[0];
3284
+ if (x in we) {
3285
+ var A = we[x];
3286
+ return A(Y, j.formatLong);
3287
+ }
3288
+ return Y;
3289
+ }).join("").match(ma), _ = [], N = Ne(ve), z;
3290
+ try {
3291
+ var at = function() {
3292
+ var x = z.value;
3293
+ !(r != null && r.useAdditionalWeekYearTokens) && je(x) && de(x, I, i), !(r != null && r.useAdditionalDayOfYearTokens) && Qe(x) && de(x, I, i);
3294
+ var A = x[0], ce = va[A];
3295
+ if (ce) {
3296
+ var Me = ce.incompatibleTokens;
3297
+ if (Array.isArray(Me)) {
3298
+ var Oe = _.find(function(Ue) {
3299
+ return Me.includes(Ue.token) || Ue.token === A;
3300
+ });
3301
+ if (Oe)
3302
+ throw new RangeError("The format string mustn't contain `".concat(Oe.fullToken, "` and `").concat(x, "` at the same time"));
3303
+ } else if (ce.incompatibleTokens === "*" && _.length > 0)
3304
+ throw new RangeError("The format string mustn't contain `".concat(x, "` and any other token at the same time"));
3305
+ _.push({
3306
+ token: A,
3307
+ fullToken: x
3308
+ });
3309
+ var pe = ce.run(L, x, j.match, ae);
3310
+ if (!pe)
3311
+ return {
3312
+ v: /* @__PURE__ */ new Date(NaN)
3313
+ };
3314
+ ne.push(pe.setter), L = pe.rest;
3315
+ } else {
3316
+ if (A.match(ba))
3317
+ throw new RangeError("Format string contains an unescaped latin alphabet character `" + A + "`");
3318
+ if (x === "''" ? x = "'" : A === "'" && (x = Ta(x)), L.indexOf(x) === 0)
3319
+ L = L.slice(x.length);
3320
+ else
3321
+ return {
3322
+ v: /* @__PURE__ */ new Date(NaN)
3323
+ };
3324
+ }
3325
+ };
3326
+ for (N.s(); !(z = N.n()).done; ) {
3327
+ var Ce = at();
3328
+ if (Q(Ce) === "object")
3329
+ return Ce.v;
3330
+ }
3331
+ } catch (Y) {
3332
+ N.e(Y);
3333
+ } finally {
3334
+ N.f();
3335
+ }
3336
+ if (L.length > 0 && ya.test(L))
3337
+ return /* @__PURE__ */ new Date(NaN);
3338
+ var nt = ne.map(function(Y) {
3339
+ return Y.priority;
3340
+ }).sort(function(Y, x) {
3341
+ return x - Y;
3342
+ }).filter(function(Y, x, A) {
3343
+ return A.indexOf(Y) === x;
3344
+ }).map(function(Y) {
3345
+ return ne.filter(function(x) {
3346
+ return x.priority === Y;
3347
+ }).sort(function(x, A) {
3348
+ return A.subPriority - x.subPriority;
3349
+ });
3350
+ }).map(function(Y) {
3351
+ return Y[0];
3352
+ }), me = W(t);
3353
+ if (isNaN(me.getTime()))
3354
+ return /* @__PURE__ */ new Date(NaN);
3355
+ var ie = Fe(me, Re(me)), De = {}, ue = Ne(nt), ke;
3356
+ try {
3357
+ for (ue.s(); !(ke = ue.n()).done; ) {
3358
+ var Pe = ke.value;
3359
+ if (!Pe.validate(ie, ae))
3360
+ return /* @__PURE__ */ new Date(NaN);
3361
+ var le = Pe.set(ie, De, ae);
3362
+ Array.isArray(le) ? (ie = le[0], xr(De, le[1])) : ie = le;
3363
+ }
3364
+ } catch (Y) {
3365
+ ue.e(Y);
3366
+ } finally {
3367
+ ue.f();
3368
+ }
3369
+ return ie;
3370
+ }
3371
+ function Ta(i) {
3372
+ return i.match(ga)[1].replace(wa, "'");
3373
+ }
3374
+ function xa(i, a) {
3375
+ M(2, arguments);
3376
+ var t = W(i), r = S(a);
3377
+ if (isNaN(r))
3378
+ return /* @__PURE__ */ new Date(NaN);
3379
+ if (!r)
3380
+ return t;
3381
+ var e = t.getDate(), o = new Date(t.getTime());
3382
+ o.setMonth(t.getMonth() + r + 1, 0);
3383
+ var n = o.getDate();
3384
+ return e >= n ? o : (t.setFullYear(o.getFullYear(), o.getMonth(), e), t);
3385
+ }
3386
+ function Ca(i, a) {
3387
+ M(2, arguments);
3388
+ var t = S(a);
3389
+ return xa(i, -t);
3390
+ }
3391
+ const Da = ':host{--activeButtonBackground:#7ec51e;--activeButtonFont:#002149;--hoverBackground:#ffffff;--background:#e4e6e8;--success:#7ac345;--heightScrollableContainer:400px;--borderColor:#d3d3d3;--borderColorButton:#c4c4c4;--textColor:#002554;--textColorHover:#7ac345;--errorColor:#c23b21;--loaderColor:#7ac345;--headerTableBackground:#cdcdcd;--borderTable:#dedede;--shadowBorderTable:#f1f1f1;--backgroundTable:#ffffff;font-family:Roboto, Arial, sans-serif;font-size:14px;color:var(--textColor);display:block;background-color:var(--background)}:host .wrapper{height:100%;padding:1rem}:host .types{display:flex;width:100%;gap:5px}:host .transaction-type{background:inherit;font-weight:600;padding:0.6rem 1.6rem;border:1px solid #6c757d;cursor:pointer}:host .transaction-type:hover{color:var(--activeButtonBackground);border-color:var(--activeButtonBackground);background:var(--hoverBackground)}:host .clicked{background-color:var(--activeButtonBackground);border-color:var(--activeButtonBackground)}:host .types-mobile{justify-content:center;margin-bottom:15px}:host .types-desktop{justify-content:flex-end;margin-bottom:3rem}:host .page-size{display:flex;width:100%;justify-content:flex-end;align-items:center}:host .page-size button{background:transparent;border:none;cursor:pointer;margin:0.4rem;width:2rem;height:2rem}:host .page-size button:hover{color:var(--textColorHover)}:host .page-size button.active{background:var(--activeButtonBackground);color:var(--textColor);font-weight:600;border-radius:0.4rem}:host .period{display:flex;width:100%;align-items:flex-end;justify-content:center;gap:10px;background:#f0f0f0;border-bottom:2px solid #e9e9e9;padding:1.6rem 0 0;margin-bottom:4rem}@media (max-width: 801px){:host .period{margin-bottom:0;flex-direction:column;align-items:stretch;width:auto;padding:1.4rem 2.8rem;box-shadow:0 4px 5px 0 rgba(90, 90, 90, 0.24)}}:host .period .range{color:var(--errorColor)}:host .period .filter-btn{height:40px;background:transparent;border:0.1rem solid var(--borderColorButton);min-width:12rem;max-width:17rem;cursor:pointer}@media (max-width: 801px){:host .period .filter-btn{max-width:none;min-width:none;margin-top:1rem}}:host .period .filter-btn:hover{border:none;background:var(--hoverBackground)}:host .period .duet-date__input{padding:7px 60px 7px 7px}:host .period+button{padding:9px 15px}:host .period-content{display:flex;flex-direction:row;width:100%;justify-content:center;align-items:flex-end;margin:0 auto 1.6rem}@media (max-width: 801px){:host .period-content{flex-direction:column;align-items:stretch}}:host .period-content span{height:40px;display:flex;align-items:center;justify-content:center}@media (max-width: 801px){:host .period-content span{display:none}}:host .period-content .filter-btn{margin-left:60px}@media (max-width: 801px){:host .period-content .filter-btn{margin-left:0}}:host .period-content .date-input{padding:0 4px}@media (max-width: 801px){:host .period-content .date-input{width:auto}:host .period-content .date-input:first-child{margin-bottom:0.5rem}}:host .period-content .date-input label{display:inline-block;margin-bottom:0.9rem}:host .period-content .date-input input{border:0.1rem solid var(--borderColor);box-sizing:border-box;border-radius:0.2rem}:host .pagination{display:flex;width:100%;justify-content:center;margin-top:1.5rem}:host .pagination button{cursor:pointer;border:none;background-color:var(--activeButtonBackground);color:#fff;opacity:0.5;padding:7px 12px}:host .pagination button:hover{opacity:1}:host .pagination button:focus{opacity:1}:host button.active{color:var(--activeButtonFont);background-color:var(--activeButtonBackground)}.mobile-filter-button{display:flex;justify-content:center;align-items:center;width:100%;height:2.8rem;background:inherit;border:1px solid var(--borderColorButton)}.mobile-filter-button img{height:50%;margin-right:0.5rem}.noData{display:flex;align-items:center;box-shadow:0 0.4rem 0.4rem rgba(0, 0, 0, 0.25);padding:1.1rem;border-radius:0.6rem}.noData span{margin-left:0.5rem}.table{height:var(--heightScrollableContainer);overflow-y:auto}.table .mobile-table{height:100%}.data-transaction{border-bottom:1px solid var(--borderColor);background-color:var(--hoverBackground);padding:0 20px;display:grid;grid-template-columns:repeat(2, 1fr)}.data-transaction .text-style-status{font-weight:600}.data-transaction .text-style-status .success{color:var(--success)}.data-transaction .text-style-status .error{color:var(--errorColor)}.data-transaction .text-style{text-align:end}.data-transaction .date{font-size:12px;display:flex;align-items:center}.loader{display:inline-block;position:absolute;width:80px;height:80px;top:calc(50% - 40px);left:calc(50% - 40px);z-index:100}.loader::before{content:"";position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(255, 255, 255, 0.6)}.loader div{position:absolute;width:6px;height:6px;background:var(--loaderColor);border-radius:50%;animation:loader 1.2s linear infinite}.loader div:nth-child(1){animation-delay:0s;top:37px;left:66px}.loader div:nth-child(2){animation-delay:-0.1s;top:22px;left:62px}.loader div:nth-child(3){animation-delay:-0.2s;top:11px;left:52px}.loader div:nth-child(4){animation-delay:-0.3s;top:7px;left:37px}.loader div:nth-child(5){animation-delay:-0.4s;top:11px;left:22px}.loader div:nth-child(6){animation-delay:-0.5s;top:22px;left:11px}.loader div:nth-child(7){animation-delay:-0.6s;top:37px;left:7px}.loader div:nth-child(8){animation-delay:-0.7s;top:52px;left:11px}.loader div:nth-child(9){animation-delay:-0.8s;top:62px;left:22px}.loader div:nth-child(10){animation-delay:-0.9s;top:66px;left:37px}.loader div:nth-child(11){animation-delay:-1s;top:62px;left:52px}.loader div:nth-child(12){animation-delay:-1.1s;top:52px;left:62px}@keyframes loader{0%,20%,80%,100%{transform:scale(1)}50%{transform:scale(1.5)}}.table thead th{position:sticky;top:0}table{border-collapse:collapse;width:100%}table th{padding:14px 24px;text-align:left;font-weight:600;color:var(--textColor);background:var(--headerTableBackground)}table td{padding:1rem 1.7rem;box-shadow:0 -1px 0 0 var(--shadowBorderTable) inset;border-bottom:0.1rem solid var(--borderTable);text-align:left;color:var(--textColor)}table tbody{background:var(--backgroundTable)}table .success{color:var(--success)}table .error{color:var(--errorColor)}vaadin-date-picker{min-width:320px}@media (max-width: 1261px){vaadin-date-picker{width:auto;min-width:auto}}@media (max-width: 801px){vaadin-date-picker{width:100%}}.MenuReturnButton{font:inherit;color:var(--emw--color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.MenuReturnButton h2.TransactionTitleMobile{font-size:16px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}', ka = Da, Pa = class {
3392
+ constructor(i) {
3393
+ Ae(this, i), this.pageSizes = [10, 25, 50], this.pagination = null, this.toggleScreen = () => {
3394
+ window.postMessage({ type: "PlayerAccountMenuActive", isMobile: this.mobile }, window.location.href);
3395
+ }, this.endpoint = void 0, this.session = void 0, this.language = g.defaultLanguage, this.userId = void 0, this.translationUrl = void 0, this.mobile = !1, this.clientStyling = null, this.clientStylingUrl = null, this.mbSource = void 0, this.dateFormat = "", this.page = 0, this.pageSize = this.pageSizes[0], this.showMobileFilter = !1, this.to = void 0, this.from = void 0, this.type = "0", this.transactions = void 0, this.showLoader = !0;
3396
+ }
3397
+ watchMultiple() {
3398
+ this.loadTransactions();
3399
+ }
3400
+ handleClientStylingChange(i, a) {
3401
+ i != a && Le(this.stylingContainer, this.clientStyling);
3402
+ }
3403
+ handleClientStylingUrlChange(i, a) {
3404
+ i != a && this.clientStylingUrl && Se(this.stylingContainer, this.clientStylingUrl);
3405
+ }
3406
+ async componentWillLoad() {
3407
+ this.translationUrl && await g.loadCustomTranslations(this.translationUrl), this.to = K(/* @__PURE__ */ new Date(), `${this.dateFormat || "yyyy-MM-dd"}`), this.from = K(Ca(/* @__PURE__ */ new Date(), 1), `${this.dateFormat || "yyyy-MM-dd"}`), this.loadTransactions();
3408
+ }
3409
+ componentDidLoad() {
3410
+ this.stylingContainer && (window.emMessageBus != null ? br(this.stylingContainer, `${this.mbSource}.Style`) : (this.clientStyling && Le(this.stylingContainer, this.clientStyling), this.clientStylingUrl && Se(this.stylingContainer, this.clientStylingUrl)));
3411
+ }
3412
+ componentDidRender() {
3413
+ this.getComponentHeight();
3414
+ }
3415
+ getComponentHeight() {
3416
+ var i;
3417
+ if (this.mobile) {
3418
+ let a = this.el.getBoundingClientRect().height - ((i = this.el.shadowRoot.querySelector(".table")) === null || i === void 0 ? void 0 : i.getBoundingClientRect().y);
3419
+ this.el.style.setProperty("--heightScrollableContainer", a + "px");
3420
+ }
3421
+ }
3422
+ setHeightTableProperty() {
3423
+ let i = this.getComponentHeight();
3424
+ this.el.style.setProperty("--heightScrollableContainer", i + "px");
3425
+ }
3426
+ changeTransactionsType(i) {
3427
+ this.type = i;
3428
+ }
3429
+ changePageSize(i) {
3430
+ this.pageSize = i;
3431
+ }
3432
+ prev() {
3433
+ var i;
3434
+ !((i = this.pagination) === null || i === void 0) && i.previous && this.page--;
3435
+ }
3436
+ next() {
3437
+ var i;
3438
+ !((i = this.pagination) === null || i === void 0) && i.next && this.page++;
3439
+ }
3440
+ applyFilters(i, a) {
3441
+ this.from = i, this.to = a, this.loadTransactions();
3442
+ }
3443
+ showFilter() {
3444
+ this.showMobileFilter = !this.showMobileFilter;
3445
+ }
3446
+ disconnectedCallback() {
3447
+ this.stylingSubscription && this.stylingSubscription.unsubscribe();
3448
+ }
3449
+ render() {
3450
+ var i;
3451
+ const a = Ee("../assets/filter.svg"), t = Ee("../assets/warning.svg");
3452
+ return u(it, { key: "395328866f9fbae0a79d1dcf9dc5e9fd6e321406" }, this.showLoader ? u(lt, null) : "", u("div", { key: "fcb0efc2b0c9f2daa3df8c6c1d541dabe76c8126", class: "wrapper", ref: (r) => this.stylingContainer = r }, this.mobile ? u("div", { class: "MenuReturnButton", onClick: this.toggleScreen }, u("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" }, u("defs", null), u("g", { transform: "translate(-20 -158)" }, u("g", { transform: "translate(20 158)" }, u("path", { class: "aaa", d: "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z", transform: "translate(15 15) rotate(180)" })))), u("h2", { class: "TransactionTitleMobile" }, g.translate("transactionTitle", this.language))) : u("h2", { class: "TransactionTitle" }, g.translate("transactionTitle", this.language)), u("div", { key: "3fcb0ac0f3bc81ce2c3e298e53649a7050a53cb2", class: { "types types-mobile": this.mobile, "types types-desktop": !this.mobile } }, u("button", { key: "1fcfd5dbf9857488bd0594f5b908e845a66f0d05", class: "transaction-type " + (this.type === "0" ? "clicked" : ""), onClick: () => this.changeTransactionsType("0") }, g.translate("deposit", this.language)), u("button", { key: "58c6707975e3854e8a4afcf270a11dacd3c15947", class: "transaction-type " + (this.type === "1" ? "clicked" : ""), onClick: () => this.changeTransactionsType("1") }, g.translate("withdrawals", this.language))), this.mobile ? "" : u(wr, { language: this.language, pageSizes: this.pageSizes, currentPageSize: this.pageSize, changePageSize: (r) => this.changePageSize(r) }), this.mobile ? u("button", { class: "mobile-filter-button", onClick: () => this.showFilter() }, u("img", { src: a, alt: "Filter" }), g.translate("filter", this.language)) : "", !this.mobile || this.showMobileFilter && this.mobile ? u("user-transaction-history-filter", { language: this.language, onApplyFilters: ({ detail: { from: r, to: e } }) => this.applyFilters(r, e), from: this.from, to: this.to, dateformat: this.dateFormat }) : "", ((i = this.transactions) === null || i === void 0 ? void 0 : i.length) > 0 ? u("div", { class: "table" }, this.mobile ? u("div", { class: "mobile-table" }, this.transactions.map((r) => u(gr, Object.assign({}, r, { dateformat: this.dateFormat })))) : u(yr, { source: this.transactions, language: this.language, dateformat: this.dateFormat })) : u("div", { class: "noData" }, u("img", { src: t, alt: "Warning" }), u("span", null, g.translate("noData", this.language))), u("div", { key: "a58ec540ecc0d4162bb32eae5bd453e37cf7fed1", class: "pagination" }, u("button", { key: "f21b01b72d7a4470e1cbbefdec50169e6e5bc222", onClick: () => this.prev() }, "<"), u("button", { key: "d14d057b3620a30ae3c11a5f22640913c0a1d32e", onClick: () => this.next() }, ">"))));
3453
+ }
3454
+ async loadTransactions() {
3455
+ this.showLoader = !0;
3456
+ try {
3457
+ const i = `${this.endpoint}/v1/player/${this.userId}/transactions/banking?${this.getParams()}`, a = await fetch(i, {
3458
+ headers: {
3459
+ "X-Sessionid": this.session,
3460
+ "Content-Type": "application/json"
3461
+ }
3462
+ });
3463
+ if (!a.ok) {
3464
+ const r = await a.text();
3465
+ throw new Error(r);
3466
+ }
3467
+ const t = await a.json();
3468
+ this.pagination = t.pagination, this.transactions = t.transactions;
3469
+ } catch (i) {
3470
+ console.error(i);
3471
+ } finally {
3472
+ this.showLoader = !1;
3473
+ }
3474
+ }
3475
+ formatDateForApi(i) {
3476
+ const a = rt(i, `${this.dateFormat || "yyyy-MM-dd"}`, /* @__PURE__ */ new Date());
3477
+ return K(a, "yyyy-MM-dd");
3478
+ }
3479
+ getParams() {
3480
+ const i = (this.page * this.pageSize).toString(), a = this.formatDateForApi(this.from), t = this.formatDateForApi(this.to);
3481
+ return `offset=${i}&endDate=${t}&startDate=${a}&type=${this.type}&limit=${this.pageSize}`;
3482
+ }
3483
+ static get assetsDirs() {
3484
+ return ["../assets"];
3485
+ }
3486
+ get el() {
3487
+ return ot(this);
3488
+ }
3489
+ static get watchers() {
3490
+ return {
3491
+ page: ["watchMultiple"],
3492
+ type: ["watchMultiple"],
3493
+ session: ["watchMultiple"],
3494
+ userId: ["watchMultiple"],
3495
+ pageSize: ["watchMultiple"],
3496
+ clientStyling: ["handleClientStylingChange"],
3497
+ clientStylingUrl: ["handleClientStylingUrlChange"],
3498
+ showMobileFilter: ["getComponentHeight"]
3499
+ };
3500
+ }
3501
+ };
3502
+ Pa.style = ka;
3503
+ const Oa = class {
3504
+ constructor(i) {
3505
+ Ae(this, i), this.applyFilters = st(this, "applyFilters", 7), this.startDateChange = () => {
3506
+ this.startDate = K(new Date(this.startDatePicker.value), `${this.dateformat || "yyyy-MM-dd"}`);
3507
+ }, this.endDateChange = () => {
3508
+ this.endDate = K(new Date(this.endDatePicker.value), `${this.dateformat || "yyyy-MM-dd"}`);
3509
+ }, this.from = void 0, this.to = void 0, this.language = void 0, this.dateformat = void 0, this.startDate = void 0, this.endDate = void 0;
3510
+ }
3511
+ componentWillLoad() {
3512
+ this.startDate = this.from, this.endDate = this.to;
3513
+ }
3514
+ componentDidLoad() {
3515
+ this.startDatePicker.i18n = Object.assign(Object.assign({}, this.startDatePicker.i18n), { formatDate: this.formatVaadinDate.bind(this), parseDate: this.parseDate.bind(this) }), this.endDatePicker.i18n = Object.assign(Object.assign({}, this.endDatePicker.i18n), { formatDate: this.formatVaadinDate.bind(this), parseDate: this.parseDate.bind(this) });
3516
+ }
3517
+ formatVaadinDate(i) {
3518
+ const { year: a, month: t, day: r } = i, e = new Date(a, t, r);
3519
+ return K(e, this.dateformat || "yyyy-MM-dd");
3520
+ }
3521
+ parseDate(i) {
3522
+ const a = rt(i, this.dateformat || "yyyy-MM-dd", /* @__PURE__ */ new Date());
3523
+ return { year: a.getFullYear(), month: a.getMonth(), day: a.getDate() };
3524
+ }
3525
+ handleApplyFilters() {
3526
+ this.applyFilters.emit({ from: this.startDate, to: this.endDate });
3527
+ }
3528
+ render() {
3529
+ return u("div", { key: "e25ee310b522ecfcc8dda8b6294e30f5e66c4edd", class: "period" }, u("div", { key: "a6ec37aafe30774077bae55366d6357c1b0a8c60", class: "period-content" }, u("div", { key: "d9796d6972931e14190fcd8ab558162af64d8d62", class: "date-input" }, u("vaadin-date-picker", { key: "3df25b815c7b2a7f3bf72ece4c430f595446122e", value: this.startDate, placeholder: this.startDate, ref: (i) => this.startDatePicker = i, label: g.translate("from", this.language), onChange: this.startDateChange })), u("span", { key: "f251410540f18bb86946c2e08915edbf73765fbc" }, u("svg", { key: "7c5d28705c152fbc73c3709b5e3b6bee5b14c0c7", width: "24px", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, u("path", { key: "3ebc124be61de20e9f946ae5f9116a5f9bf043ff", d: "m21 11.75c0-.414-.336-.75-.75-.75h-16.5c-.414 0-.75.336-.75.75s.336.75.75.75h16.5c.414 0 .75-.336.75-.75z", "fill-rule": "nonzero", fill: "5d687b" }))), u("div", { key: "84aa35e5d8598c713904bfd4baf109a422b83e2c", class: "date-input" }, u("vaadin-date-picker", { key: "3ef7bd62bc9ed6034fb55fff38013425b627d1c9", value: this.endDate, placeholder: this.endDate, ref: (i) => this.endDatePicker = i, label: g.translate("to", this.language), onChange: this.endDateChange })), u("button", { key: "6f3be9bf3a0c2de87d7661691e3b72b16018e460", class: "filter-btn", onClick: this.handleApplyFilters.bind(this) }, g.translate("filter", this.language))));
3530
+ }
3531
+ };
3532
+ export {
3533
+ Pa as user_transaction_history,
3534
+ Oa as user_transaction_history_filter
3535
+ };