@everymatrix/cashier-session-expiration-modal 1.54.10 → 1.54.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CashierSessionExpirationModal-DsxGwhjW.js → CashierSessionExpirationModal-DsBf27UA.js} +681 -649
- package/components/CashierSessionExpirationModal-jxvWboFU.cjs +9 -0
- package/components/{CashierSessionExpirationModal-C-jqeLlS.js → CashierSessionExpirationModal-tpvQuase.js} +745 -713
- package/es2015/cashier-session-expiration-modal.cjs +1 -1
- package/es2015/cashier-session-expiration-modal.js +1 -1
- package/esnext/cashier-session-expiration-modal.js +1 -1
- package/package.json +1 -1
- package/components/CashierSessionExpirationModal-Czs4Kb3v.cjs +0 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function pe() {
|
|
2
2
|
}
|
|
3
3
|
const kr = (e) => e;
|
|
4
4
|
function ki(e, t) {
|
|
@@ -34,7 +34,7 @@ function zr(e, ...t) {
|
|
|
34
34
|
if (e == null) {
|
|
35
35
|
for (const r of t)
|
|
36
36
|
r(void 0);
|
|
37
|
-
return
|
|
37
|
+
return pe;
|
|
38
38
|
}
|
|
39
39
|
const n = e.subscribe(...t);
|
|
40
40
|
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
@@ -82,7 +82,7 @@ function Pt(e) {
|
|
|
82
82
|
return -1;
|
|
83
83
|
}
|
|
84
84
|
const Wr = typeof window < "u";
|
|
85
|
-
let zi = Wr ? () => window.performance.now() : () => Date.now(), Hn = Wr ? (e) => requestAnimationFrame(e) :
|
|
85
|
+
let zi = Wr ? () => window.performance.now() : () => Date.now(), Hn = Wr ? (e) => requestAnimationFrame(e) : pe;
|
|
86
86
|
const Ze = /* @__PURE__ */ new Set();
|
|
87
87
|
function Zr(e) {
|
|
88
88
|
Ze.forEach((t) => {
|
|
@@ -100,13 +100,13 @@ function ji(e) {
|
|
|
100
100
|
}
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function $(e, t) {
|
|
104
104
|
e.appendChild(t);
|
|
105
105
|
}
|
|
106
106
|
function Wi(e, t, n) {
|
|
107
107
|
const r = Nn(e);
|
|
108
108
|
if (!r.getElementById(t)) {
|
|
109
|
-
const i =
|
|
109
|
+
const i = te("style");
|
|
110
110
|
i.id = t, i.textContent = n, Vr(r, i);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
@@ -120,23 +120,23 @@ function Nn(e) {
|
|
|
120
120
|
) : e.ownerDocument;
|
|
121
121
|
}
|
|
122
122
|
function Zi(e) {
|
|
123
|
-
const t =
|
|
123
|
+
const t = te("style");
|
|
124
124
|
return t.textContent = "/* empty */", Vr(Nn(e), t), t.sheet;
|
|
125
125
|
}
|
|
126
126
|
function Vr(e, t) {
|
|
127
|
-
return
|
|
127
|
+
return $(
|
|
128
128
|
/** @type {Document} */
|
|
129
129
|
e.head || e,
|
|
130
130
|
t
|
|
131
131
|
), t.sheet;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function Ae(e, t, n) {
|
|
134
134
|
e.insertBefore(t, n || null);
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function be(e) {
|
|
137
137
|
e.parentNode && e.parentNode.removeChild(e);
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function te(e) {
|
|
140
140
|
return document.createElement(e);
|
|
141
141
|
}
|
|
142
142
|
function rr(e) {
|
|
@@ -178,7 +178,7 @@ function Xi() {
|
|
|
178
178
|
}
|
|
179
179
|
function Ji(e, t) {
|
|
180
180
|
getComputedStyle(e).position === "static" && (e.style.position = "relative");
|
|
181
|
-
const r =
|
|
181
|
+
const r = te("iframe");
|
|
182
182
|
r.setAttribute(
|
|
183
183
|
"style",
|
|
184
184
|
"display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
|
|
@@ -194,8 +194,8 @@ function Ji(e, t) {
|
|
|
194
194
|
}
|
|
195
195
|
)) : (r.src = "about:blank", r.onload = () => {
|
|
196
196
|
s = Ut(r.contentWindow, "resize", t), t();
|
|
197
|
-
}),
|
|
198
|
-
(i || s && r.contentWindow) && s(),
|
|
197
|
+
}), $(e, r), () => {
|
|
198
|
+
(i || s && r.contentWindow) && s(), be(r);
|
|
199
199
|
};
|
|
200
200
|
}
|
|
201
201
|
function Yi(e, t, { bubbles: n = !1, cancelable: r = !1 } = {}) {
|
|
@@ -226,13 +226,13 @@ function ir(e, t, n, r, i, s, l, a = 0) {
|
|
|
226
226
|
let u = `{
|
|
227
227
|
`;
|
|
228
228
|
for (let M = 0; M <= 1; M += c) {
|
|
229
|
-
const
|
|
230
|
-
u += M * 100 + `%{${l(
|
|
229
|
+
const W = t + (n - t) * s(M);
|
|
230
|
+
u += M * 100 + `%{${l(W, 1 - W)}}
|
|
231
231
|
`;
|
|
232
232
|
}
|
|
233
233
|
const h = u + `100% {${l(n, 1 - n)}}
|
|
234
|
-
}`, g = `__svelte_${Qi(h)}_${a}`, T = Nn(e), { stylesheet: C, rules:
|
|
235
|
-
|
|
234
|
+
}`, g = `__svelte_${Qi(h)}_${a}`, T = Nn(e), { stylesheet: C, rules: y } = kt.get(T) || Ki(T, e);
|
|
235
|
+
y[g] || (y[g] = !0, C.insertRule(`@keyframes ${g} ${h}`, C.cssRules.length));
|
|
236
236
|
const m = e.style.animation || "";
|
|
237
237
|
return e.style.animation = `${m ? `${m}, ` : ""}${g} ${r}ms linear ${i}ms 1 both`, Gt += 1, g;
|
|
238
238
|
}
|
|
@@ -247,7 +247,7 @@ function es() {
|
|
|
247
247
|
Hn(() => {
|
|
248
248
|
Gt || (kt.forEach((e) => {
|
|
249
249
|
const { ownerNode: t } = e.stylesheet;
|
|
250
|
-
t &&
|
|
250
|
+
t && be(t);
|
|
251
251
|
}), kt.clear());
|
|
252
252
|
});
|
|
253
253
|
}
|
|
@@ -270,14 +270,14 @@ let Ve = [];
|
|
|
270
270
|
const sr = [], rs = /* @__PURE__ */ Promise.resolve();
|
|
271
271
|
let yn = !1;
|
|
272
272
|
function is() {
|
|
273
|
-
yn || (yn = !0, rs.then(
|
|
273
|
+
yn || (yn = !0, rs.then(me));
|
|
274
274
|
}
|
|
275
275
|
function Xe(e) {
|
|
276
276
|
Ve.push(e);
|
|
277
277
|
}
|
|
278
278
|
const sn = /* @__PURE__ */ new Set();
|
|
279
279
|
let ze = 0;
|
|
280
|
-
function
|
|
280
|
+
function me() {
|
|
281
281
|
if (ze !== 0)
|
|
282
282
|
return;
|
|
283
283
|
const e = pt;
|
|
@@ -322,25 +322,25 @@ function on(e, t, n) {
|
|
|
322
322
|
e.dispatchEvent(Yi(`${t ? "intro" : "outro"}${n}`));
|
|
323
323
|
}
|
|
324
324
|
const Rt = /* @__PURE__ */ new Set();
|
|
325
|
-
let
|
|
325
|
+
let Ce;
|
|
326
326
|
function Yr() {
|
|
327
|
-
|
|
327
|
+
Ce = {
|
|
328
328
|
r: 0,
|
|
329
329
|
c: [],
|
|
330
|
-
p:
|
|
330
|
+
p: Ce
|
|
331
331
|
// parent group
|
|
332
332
|
};
|
|
333
333
|
}
|
|
334
334
|
function qr() {
|
|
335
|
-
|
|
335
|
+
Ce.r || Pe(Ce.c), Ce = Ce.p;
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function we(e, t) {
|
|
338
338
|
e && e.i && (Rt.delete(e), e.i(t));
|
|
339
339
|
}
|
|
340
340
|
function He(e, t, n, r) {
|
|
341
341
|
if (e && e.o) {
|
|
342
342
|
if (Rt.has(e)) return;
|
|
343
|
-
Rt.add(e),
|
|
343
|
+
Rt.add(e), Ce.c.push(() => {
|
|
344
344
|
Rt.delete(e), r && (n && e.d(1), r());
|
|
345
345
|
}), e.o(t);
|
|
346
346
|
} else r && r();
|
|
@@ -351,58 +351,58 @@ function or(e, t, n, r) {
|
|
|
351
351
|
function g() {
|
|
352
352
|
u && $i(e, u);
|
|
353
353
|
}
|
|
354
|
-
function T(
|
|
354
|
+
function T(y, m) {
|
|
355
355
|
const M = (
|
|
356
356
|
/** @type {Program['d']} */
|
|
357
|
-
|
|
357
|
+
y.b - l
|
|
358
358
|
);
|
|
359
359
|
return m *= Math.abs(M), {
|
|
360
360
|
a: l,
|
|
361
|
-
b:
|
|
361
|
+
b: y.b,
|
|
362
362
|
d: M,
|
|
363
363
|
duration: m,
|
|
364
|
-
start:
|
|
365
|
-
end:
|
|
366
|
-
group:
|
|
364
|
+
start: y.start,
|
|
365
|
+
end: y.start + m,
|
|
366
|
+
group: y.group
|
|
367
367
|
};
|
|
368
368
|
}
|
|
369
|
-
function C(
|
|
369
|
+
function C(y) {
|
|
370
370
|
const {
|
|
371
371
|
delay: m = 0,
|
|
372
372
|
duration: M = 300,
|
|
373
|
-
easing:
|
|
374
|
-
tick:
|
|
373
|
+
easing: W = kr,
|
|
374
|
+
tick: P = pe,
|
|
375
375
|
css: A
|
|
376
|
-
} = s || ls,
|
|
376
|
+
} = s || ls, R = {
|
|
377
377
|
start: zi() + m,
|
|
378
|
-
b:
|
|
378
|
+
b: y
|
|
379
379
|
};
|
|
380
|
-
|
|
381
|
-
e.inert, e.inert = !0)), a || c ? c =
|
|
382
|
-
if (c &&
|
|
380
|
+
y || (R.group = Ce, Ce.r += 1), "inert" in e && (y ? h !== void 0 && (e.inert = h) : (h = /** @type {HTMLElement} */
|
|
381
|
+
e.inert, e.inert = !0)), a || c ? c = R : (A && (g(), u = ir(e, l, y, M, m, W, A)), y && P(0, 1), a = T(R, M), Xe(() => on(e, y, "start")), ji((I) => {
|
|
382
|
+
if (c && I > c.start && (a = T(c, M), c = null, on(e, a.b, "start"), A && (g(), u = ir(
|
|
383
383
|
e,
|
|
384
384
|
l,
|
|
385
385
|
a.b,
|
|
386
386
|
a.duration,
|
|
387
387
|
0,
|
|
388
|
-
|
|
388
|
+
W,
|
|
389
389
|
s.css
|
|
390
390
|
))), a) {
|
|
391
|
-
if (
|
|
392
|
-
|
|
393
|
-
else if (
|
|
394
|
-
const
|
|
395
|
-
l = a.a + a.d * j
|
|
391
|
+
if (I >= a.end)
|
|
392
|
+
P(l = a.b, 1 - l), on(e, a.b, "end"), c || (a.b ? g() : --a.group.r || Pe(a.group.c)), a = null;
|
|
393
|
+
else if (I >= a.start) {
|
|
394
|
+
const j = I - a.start;
|
|
395
|
+
l = a.a + a.d * W(j / a.duration), P(l, 1 - l);
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
398
|
return !!(a || c);
|
|
399
399
|
}));
|
|
400
400
|
}
|
|
401
401
|
return {
|
|
402
|
-
run(
|
|
402
|
+
run(y) {
|
|
403
403
|
Zt(s) ? as().then(() => {
|
|
404
|
-
s = s({ direction:
|
|
405
|
-
}) : C(
|
|
404
|
+
s = s({ direction: y ? "in" : "out" }), C(y);
|
|
405
|
+
}) : C(y);
|
|
406
406
|
},
|
|
407
407
|
end() {
|
|
408
408
|
g(), a = c = null;
|
|
@@ -431,7 +431,7 @@ function fs(e, t, n, r, i, s, l = null, a = [-1]) {
|
|
|
431
431
|
ctx: [],
|
|
432
432
|
// state
|
|
433
433
|
props: s,
|
|
434
|
-
update:
|
|
434
|
+
update: pe,
|
|
435
435
|
not_equal: i,
|
|
436
436
|
bound: nr(),
|
|
437
437
|
// lifecycle
|
|
@@ -450,15 +450,15 @@ function fs(e, t, n, r, i, s, l = null, a = [-1]) {
|
|
|
450
450
|
l && l(u.root);
|
|
451
451
|
let h = !1;
|
|
452
452
|
if (u.ctx = n ? n(e, t.props || {}, (g, T, ...C) => {
|
|
453
|
-
const
|
|
454
|
-
return u.ctx && i(u.ctx[g], u.ctx[g] =
|
|
453
|
+
const y = C.length ? C[0] : T;
|
|
454
|
+
return u.ctx && i(u.ctx[g], u.ctx[g] = y) && (!u.skip_bound && u.bound[g] && u.bound[g](y), h && hs(e, g)), T;
|
|
455
455
|
}) : [], u.update(), h = !0, Pe(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
456
456
|
if (t.hydrate) {
|
|
457
457
|
const g = Vi(t.target);
|
|
458
|
-
u.fragment && u.fragment.l(g), g.forEach(
|
|
458
|
+
u.fragment && u.fragment.l(g), g.forEach(be);
|
|
459
459
|
} else
|
|
460
460
|
u.fragment && u.fragment.c();
|
|
461
|
-
t.intro &&
|
|
461
|
+
t.intro && we(e.$$.fragment), us(e, t.target, t.anchor), me();
|
|
462
462
|
}
|
|
463
463
|
mt(c);
|
|
464
464
|
}
|
|
@@ -505,17 +505,17 @@ typeof HTMLElement == "function" && (Qr = class extends HTMLElement {
|
|
|
505
505
|
let s;
|
|
506
506
|
return {
|
|
507
507
|
c: function() {
|
|
508
|
-
s =
|
|
508
|
+
s = te("slot"), i !== "default" && G(s, "name", i);
|
|
509
509
|
},
|
|
510
510
|
/**
|
|
511
511
|
* @param {HTMLElement} target
|
|
512
512
|
* @param {HTMLElement} [anchor]
|
|
513
513
|
*/
|
|
514
514
|
m: function(c, u) {
|
|
515
|
-
|
|
515
|
+
Ae(c, s, u);
|
|
516
516
|
},
|
|
517
517
|
d: function(c) {
|
|
518
|
-
c &&
|
|
518
|
+
c && be(s);
|
|
519
519
|
}
|
|
520
520
|
};
|
|
521
521
|
};
|
|
@@ -657,7 +657,7 @@ class ps {
|
|
|
657
657
|
$$set = void 0;
|
|
658
658
|
/** @returns {void} */
|
|
659
659
|
$destroy() {
|
|
660
|
-
cs(this, 1), this.$destroy =
|
|
660
|
+
cs(this, 1), this.$destroy = pe;
|
|
661
661
|
}
|
|
662
662
|
/**
|
|
663
663
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -667,7 +667,7 @@ class ps {
|
|
|
667
667
|
*/
|
|
668
668
|
$on(t, n) {
|
|
669
669
|
if (!Zt(n))
|
|
670
|
-
return
|
|
670
|
+
return pe;
|
|
671
671
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
672
672
|
return r.push(n), () => {
|
|
673
673
|
const i = r.indexOf(n);
|
|
@@ -699,7 +699,7 @@ function gs(e, t) {
|
|
|
699
699
|
subscribe: Xt(e, t).subscribe
|
|
700
700
|
};
|
|
701
701
|
}
|
|
702
|
-
function Xt(e, t =
|
|
702
|
+
function Xt(e, t = pe) {
|
|
703
703
|
let n;
|
|
704
704
|
const r = /* @__PURE__ */ new Set();
|
|
705
705
|
function i(a) {
|
|
@@ -717,9 +717,9 @@ function Xt(e, t = he) {
|
|
|
717
717
|
function s(a) {
|
|
718
718
|
i(a(e));
|
|
719
719
|
}
|
|
720
|
-
function l(a, c =
|
|
720
|
+
function l(a, c = pe) {
|
|
721
721
|
const u = [a, c];
|
|
722
|
-
return r.add(u), r.size === 1 && (n = t(i, s) ||
|
|
722
|
+
return r.add(u), r.size === 1 && (n = t(i, s) || pe), a(e), () => {
|
|
723
723
|
r.delete(u), r.size === 0 && n && (n(), n = null);
|
|
724
724
|
};
|
|
725
725
|
}
|
|
@@ -733,16 +733,16 @@ function $e(e, t, n) {
|
|
|
733
733
|
return gs(n, (l, a) => {
|
|
734
734
|
let c = !1;
|
|
735
735
|
const u = [];
|
|
736
|
-
let h = 0, g =
|
|
736
|
+
let h = 0, g = pe;
|
|
737
737
|
const T = () => {
|
|
738
738
|
if (h)
|
|
739
739
|
return;
|
|
740
740
|
g();
|
|
741
|
-
const
|
|
742
|
-
s ? l(
|
|
741
|
+
const y = t(r ? u[0] : u, l, a);
|
|
742
|
+
s ? l(y) : g = Zt(y) ? y : pe;
|
|
743
743
|
}, C = i.map(
|
|
744
|
-
(
|
|
745
|
-
|
|
744
|
+
(y, m) => zr(
|
|
745
|
+
y,
|
|
746
746
|
(M) => {
|
|
747
747
|
u[m] = M, h &= ~(1 << m), c && T();
|
|
748
748
|
},
|
|
@@ -847,14 +847,14 @@ function Jt(e, t) {
|
|
|
847
847
|
}
|
|
848
848
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
849
849
|
}
|
|
850
|
-
var
|
|
851
|
-
return
|
|
850
|
+
var z = function() {
|
|
851
|
+
return z = Object.assign || function(t) {
|
|
852
852
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
853
853
|
n = arguments[r];
|
|
854
854
|
for (var s in n) Object.prototype.hasOwnProperty.call(n, s) && (t[s] = n[s]);
|
|
855
855
|
}
|
|
856
856
|
return t;
|
|
857
|
-
},
|
|
857
|
+
}, z.apply(this, arguments);
|
|
858
858
|
};
|
|
859
859
|
function Ps(e, t) {
|
|
860
860
|
var n = {};
|
|
@@ -921,40 +921,40 @@ var Bs = function() {
|
|
|
921
921
|
(function(e) {
|
|
922
922
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
923
923
|
})(U || (U = {}));
|
|
924
|
-
var
|
|
924
|
+
var J;
|
|
925
925
|
(function(e) {
|
|
926
926
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
927
|
-
})(
|
|
927
|
+
})(J || (J = {}));
|
|
928
928
|
var Ye;
|
|
929
929
|
(function(e) {
|
|
930
930
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
931
931
|
})(Ye || (Ye = {}));
|
|
932
932
|
function ur(e) {
|
|
933
|
-
return e.type ===
|
|
933
|
+
return e.type === J.literal;
|
|
934
934
|
}
|
|
935
935
|
function Gs(e) {
|
|
936
|
-
return e.type ===
|
|
936
|
+
return e.type === J.argument;
|
|
937
937
|
}
|
|
938
938
|
function ni(e) {
|
|
939
|
-
return e.type ===
|
|
939
|
+
return e.type === J.number;
|
|
940
940
|
}
|
|
941
941
|
function ri(e) {
|
|
942
|
-
return e.type ===
|
|
942
|
+
return e.type === J.date;
|
|
943
943
|
}
|
|
944
944
|
function ii(e) {
|
|
945
|
-
return e.type ===
|
|
945
|
+
return e.type === J.time;
|
|
946
946
|
}
|
|
947
947
|
function si(e) {
|
|
948
|
-
return e.type ===
|
|
948
|
+
return e.type === J.select;
|
|
949
949
|
}
|
|
950
950
|
function oi(e) {
|
|
951
|
-
return e.type ===
|
|
951
|
+
return e.type === J.plural;
|
|
952
952
|
}
|
|
953
953
|
function Fs(e) {
|
|
954
|
-
return e.type ===
|
|
954
|
+
return e.type === J.pound;
|
|
955
955
|
}
|
|
956
956
|
function ai(e) {
|
|
957
|
-
return e.type ===
|
|
957
|
+
return e.type === J.tag;
|
|
958
958
|
}
|
|
959
959
|
function li(e) {
|
|
960
960
|
return !!(e && typeof e == "object" && e.type === Ye.number);
|
|
@@ -1176,13 +1176,13 @@ function Ys(e) {
|
|
|
1176
1176
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1177
1177
|
continue;
|
|
1178
1178
|
case "scientific":
|
|
1179
|
-
t =
|
|
1180
|
-
return
|
|
1179
|
+
t = z(z(z({}, t), { notation: "scientific" }), i.options.reduce(function(c, u) {
|
|
1180
|
+
return z(z({}, c), fr(u));
|
|
1181
1181
|
}, {}));
|
|
1182
1182
|
continue;
|
|
1183
1183
|
case "engineering":
|
|
1184
|
-
t =
|
|
1185
|
-
return
|
|
1184
|
+
t = z(z(z({}, t), { notation: "engineering" }), i.options.reduce(function(c, u) {
|
|
1185
|
+
return z(z({}, c), fr(u));
|
|
1186
1186
|
}, {}));
|
|
1187
1187
|
continue;
|
|
1188
1188
|
case "notation-simple":
|
|
@@ -1251,17 +1251,17 @@ function Ys(e) {
|
|
|
1251
1251
|
return h === "*" ? t.minimumFractionDigits = u.length : g && g[0] === "#" ? t.maximumFractionDigits = g.length : T && C ? (t.minimumFractionDigits = T.length, t.maximumFractionDigits = T.length + C.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1252
1252
|
});
|
|
1253
1253
|
var s = i.options[0];
|
|
1254
|
-
s === "w" ? t =
|
|
1254
|
+
s === "w" ? t = z(z({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = z(z({}, t), hr(s)));
|
|
1255
1255
|
continue;
|
|
1256
1256
|
}
|
|
1257
1257
|
if (ci.test(i.stem)) {
|
|
1258
|
-
t =
|
|
1258
|
+
t = z(z({}, t), hr(i.stem));
|
|
1259
1259
|
continue;
|
|
1260
1260
|
}
|
|
1261
1261
|
var l = fi(i.stem);
|
|
1262
|
-
l && (t =
|
|
1262
|
+
l && (t = z(z({}, t), l));
|
|
1263
1263
|
var a = Js(i.stem);
|
|
1264
|
-
a && (t =
|
|
1264
|
+
a && (t = z(z({}, t), a));
|
|
1265
1265
|
}
|
|
1266
1266
|
return t;
|
|
1267
1267
|
}
|
|
@@ -2845,7 +2845,7 @@ var ho = (
|
|
|
2845
2845
|
if (s === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2846
2846
|
var a = this.clonePosition();
|
|
2847
2847
|
this.bump(), i.push({
|
|
2848
|
-
type:
|
|
2848
|
+
type: J.pound,
|
|
2849
2849
|
location: k(a, this.clonePosition())
|
|
2850
2850
|
});
|
|
2851
2851
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
@@ -2873,7 +2873,7 @@ var ho = (
|
|
|
2873
2873
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2874
2874
|
return {
|
|
2875
2875
|
val: {
|
|
2876
|
-
type:
|
|
2876
|
+
type: J.literal,
|
|
2877
2877
|
value: "<".concat(i, "/>"),
|
|
2878
2878
|
location: k(r, this.clonePosition())
|
|
2879
2879
|
},
|
|
@@ -2890,7 +2890,7 @@ var ho = (
|
|
|
2890
2890
|
var c = this.clonePosition(), u = this.parseTagName();
|
|
2891
2891
|
return i !== u ? this.error(U.UNMATCHED_CLOSING_TAG, k(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2892
2892
|
val: {
|
|
2893
|
-
type:
|
|
2893
|
+
type: J.tag,
|
|
2894
2894
|
value: i,
|
|
2895
2895
|
children: l,
|
|
2896
2896
|
location: k(r, this.clonePosition())
|
|
@@ -2927,7 +2927,7 @@ var ho = (
|
|
|
2927
2927
|
}
|
|
2928
2928
|
var c = k(r, this.clonePosition());
|
|
2929
2929
|
return {
|
|
2930
|
-
val: { type:
|
|
2930
|
+
val: { type: J.literal, value: i, location: c },
|
|
2931
2931
|
err: null
|
|
2932
2932
|
};
|
|
2933
2933
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -2987,7 +2987,7 @@ var ho = (
|
|
|
2987
2987
|
case 125:
|
|
2988
2988
|
return this.bump(), {
|
|
2989
2989
|
val: {
|
|
2990
|
-
type:
|
|
2990
|
+
type: J.argument,
|
|
2991
2991
|
// value does not include the opening and closing braces.
|
|
2992
2992
|
value: i,
|
|
2993
2993
|
location: k(r, this.clonePosition())
|
|
@@ -3025,38 +3025,38 @@ var ho = (
|
|
|
3025
3025
|
var C = k(h, this.clonePosition());
|
|
3026
3026
|
u = { style: T, styleLocation: C };
|
|
3027
3027
|
}
|
|
3028
|
-
var
|
|
3029
|
-
if (
|
|
3030
|
-
return
|
|
3028
|
+
var y = this.tryParseArgumentClose(i);
|
|
3029
|
+
if (y.err)
|
|
3030
|
+
return y;
|
|
3031
3031
|
var m = k(i, this.clonePosition());
|
|
3032
3032
|
if (u && mr(u?.style, "::", 0)) {
|
|
3033
3033
|
var M = uo(u.style.slice(2));
|
|
3034
3034
|
if (a === "number") {
|
|
3035
3035
|
var g = this.parseNumberSkeletonFromString(M, u.styleLocation);
|
|
3036
3036
|
return g.err ? g : {
|
|
3037
|
-
val: { type:
|
|
3037
|
+
val: { type: J.number, value: r, location: m, style: g.val },
|
|
3038
3038
|
err: null
|
|
3039
3039
|
};
|
|
3040
3040
|
} else {
|
|
3041
3041
|
if (M.length === 0)
|
|
3042
3042
|
return this.error(U.EXPECT_DATE_TIME_SKELETON, m);
|
|
3043
|
-
var
|
|
3044
|
-
this.locale && (
|
|
3043
|
+
var W = M;
|
|
3044
|
+
this.locale && (W = qs(M, this.locale));
|
|
3045
3045
|
var T = {
|
|
3046
3046
|
type: Ye.dateTime,
|
|
3047
|
-
pattern:
|
|
3047
|
+
pattern: W,
|
|
3048
3048
|
location: u.styleLocation,
|
|
3049
|
-
parsedOptions: this.shouldParseSkeletons ? js(
|
|
3050
|
-
},
|
|
3049
|
+
parsedOptions: this.shouldParseSkeletons ? js(W) : {}
|
|
3050
|
+
}, P = a === "date" ? J.date : J.time;
|
|
3051
3051
|
return {
|
|
3052
|
-
val: { type:
|
|
3052
|
+
val: { type: P, value: r, location: m, style: T },
|
|
3053
3053
|
err: null
|
|
3054
3054
|
};
|
|
3055
3055
|
}
|
|
3056
3056
|
}
|
|
3057
3057
|
return {
|
|
3058
3058
|
val: {
|
|
3059
|
-
type: a === "number" ?
|
|
3059
|
+
type: a === "number" ? J.number : a === "date" ? J.date : J.time,
|
|
3060
3060
|
value: r,
|
|
3061
3061
|
location: m,
|
|
3062
3062
|
style: (s = u?.style) !== null && s !== void 0 ? s : null
|
|
@@ -3069,41 +3069,41 @@ var ho = (
|
|
|
3069
3069
|
case "select": {
|
|
3070
3070
|
var A = this.clonePosition();
|
|
3071
3071
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3072
|
-
return this.error(U.EXPECT_SELECT_ARGUMENT_OPTIONS, k(A,
|
|
3072
|
+
return this.error(U.EXPECT_SELECT_ARGUMENT_OPTIONS, k(A, z({}, A)));
|
|
3073
3073
|
this.bumpSpace();
|
|
3074
|
-
var
|
|
3075
|
-
if (a !== "select" &&
|
|
3074
|
+
var R = this.parseIdentifierIfPossible(), I = 0;
|
|
3075
|
+
if (a !== "select" && R.value === "offset") {
|
|
3076
3076
|
if (!this.bumpIf(":"))
|
|
3077
3077
|
return this.error(U.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, k(this.clonePosition(), this.clonePosition()));
|
|
3078
3078
|
this.bumpSpace();
|
|
3079
3079
|
var g = this.tryParseDecimalInteger(U.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, U.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3080
3080
|
if (g.err)
|
|
3081
3081
|
return g;
|
|
3082
|
-
this.bumpSpace(),
|
|
3082
|
+
this.bumpSpace(), R = this.parseIdentifierIfPossible(), I = g.val;
|
|
3083
3083
|
}
|
|
3084
|
-
var
|
|
3085
|
-
if (
|
|
3086
|
-
return
|
|
3087
|
-
var
|
|
3088
|
-
if (
|
|
3089
|
-
return
|
|
3090
|
-
var
|
|
3084
|
+
var j = this.tryParsePluralOrSelectOptions(t, a, n, R);
|
|
3085
|
+
if (j.err)
|
|
3086
|
+
return j;
|
|
3087
|
+
var y = this.tryParseArgumentClose(i);
|
|
3088
|
+
if (y.err)
|
|
3089
|
+
return y;
|
|
3090
|
+
var Y = k(i, this.clonePosition());
|
|
3091
3091
|
return a === "select" ? {
|
|
3092
3092
|
val: {
|
|
3093
|
-
type:
|
|
3093
|
+
type: J.select,
|
|
3094
3094
|
value: r,
|
|
3095
|
-
options: pr(
|
|
3096
|
-
location:
|
|
3095
|
+
options: pr(j.val),
|
|
3096
|
+
location: Y
|
|
3097
3097
|
},
|
|
3098
3098
|
err: null
|
|
3099
3099
|
} : {
|
|
3100
3100
|
val: {
|
|
3101
|
-
type:
|
|
3101
|
+
type: J.plural,
|
|
3102
3102
|
value: r,
|
|
3103
|
-
options: pr(
|
|
3104
|
-
offset:
|
|
3103
|
+
options: pr(j.val),
|
|
3104
|
+
offset: I,
|
|
3105
3105
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3106
|
-
location:
|
|
3106
|
+
location: Y
|
|
3107
3107
|
},
|
|
3108
3108
|
err: null
|
|
3109
3109
|
};
|
|
@@ -3182,16 +3182,16 @@ var ho = (
|
|
|
3182
3182
|
var C = this.clonePosition();
|
|
3183
3183
|
if (!this.bumpIf("{"))
|
|
3184
3184
|
return this.error(n === "select" ? U.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : U.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, k(this.clonePosition(), this.clonePosition()));
|
|
3185
|
-
var
|
|
3186
|
-
if (
|
|
3187
|
-
return
|
|
3185
|
+
var y = this.parseMessage(t + 1, n, r);
|
|
3186
|
+
if (y.err)
|
|
3187
|
+
return y;
|
|
3188
3188
|
var m = this.tryParseArgumentClose(C);
|
|
3189
3189
|
if (m.err)
|
|
3190
3190
|
return m;
|
|
3191
3191
|
a.push([
|
|
3192
3192
|
u,
|
|
3193
3193
|
{
|
|
3194
|
-
value:
|
|
3194
|
+
value: y.val,
|
|
3195
3195
|
location: k(C, this.clonePosition())
|
|
3196
3196
|
}
|
|
3197
3197
|
]), c.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
@@ -3298,7 +3298,7 @@ function _n(e) {
|
|
|
3298
3298
|
});
|
|
3299
3299
|
}
|
|
3300
3300
|
function go(e, t) {
|
|
3301
|
-
t === void 0 && (t = {}), t =
|
|
3301
|
+
t === void 0 && (t = {}), t = z({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3302
3302
|
var n = new ho(e, t).parse();
|
|
3303
3303
|
if (n.err) {
|
|
3304
3304
|
var r = SyntaxError(U[n.err.kind]);
|
|
@@ -3349,14 +3349,14 @@ var Yt = (
|
|
|
3349
3349
|
}
|
|
3350
3350
|
return t;
|
|
3351
3351
|
}(Yt)
|
|
3352
|
-
),
|
|
3352
|
+
), ce;
|
|
3353
3353
|
(function(e) {
|
|
3354
3354
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3355
|
-
})(
|
|
3355
|
+
})(ce || (ce = {}));
|
|
3356
3356
|
function yo(e) {
|
|
3357
3357
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3358
3358
|
var r = t[t.length - 1];
|
|
3359
|
-
return !r || r.type !==
|
|
3359
|
+
return !r || r.type !== ce.literal || n.type !== ce.literal ? t.push(n) : r.value += n.value, t;
|
|
3360
3360
|
}, []);
|
|
3361
3361
|
}
|
|
3362
3362
|
function To(e) {
|
|
@@ -3366,7 +3366,7 @@ function It(e, t, n, r, i, s, l) {
|
|
|
3366
3366
|
if (e.length === 1 && ur(e[0]))
|
|
3367
3367
|
return [
|
|
3368
3368
|
{
|
|
3369
|
-
type:
|
|
3369
|
+
type: ce.literal,
|
|
3370
3370
|
value: e[0].value
|
|
3371
3371
|
}
|
|
3372
3372
|
];
|
|
@@ -3374,14 +3374,14 @@ function It(e, t, n, r, i, s, l) {
|
|
|
3374
3374
|
var h = u[c];
|
|
3375
3375
|
if (ur(h)) {
|
|
3376
3376
|
a.push({
|
|
3377
|
-
type:
|
|
3377
|
+
type: ce.literal,
|
|
3378
3378
|
value: h.value
|
|
3379
3379
|
});
|
|
3380
3380
|
continue;
|
|
3381
3381
|
}
|
|
3382
3382
|
if (Fs(h)) {
|
|
3383
3383
|
typeof s == "number" && a.push({
|
|
3384
|
-
type:
|
|
3384
|
+
type: ce.literal,
|
|
3385
3385
|
value: n.getNumberFormat(t).format(s)
|
|
3386
3386
|
});
|
|
3387
3387
|
continue;
|
|
@@ -3392,7 +3392,7 @@ function It(e, t, n, r, i, s, l) {
|
|
|
3392
3392
|
var T = i[g];
|
|
3393
3393
|
if (Gs(h)) {
|
|
3394
3394
|
(!T || typeof T == "string" || typeof T == "number") && (T = typeof T == "string" || typeof T == "number" ? String(T) : ""), a.push({
|
|
3395
|
-
type: typeof T == "string" ?
|
|
3395
|
+
type: typeof T == "string" ? ce.literal : ce.object,
|
|
3396
3396
|
value: T
|
|
3397
3397
|
});
|
|
3398
3398
|
continue;
|
|
@@ -3400,7 +3400,7 @@ function It(e, t, n, r, i, s, l) {
|
|
|
3400
3400
|
if (ri(h)) {
|
|
3401
3401
|
var C = typeof h.style == "string" ? r.date[h.style] : xn(h.style) ? h.style.parsedOptions : void 0;
|
|
3402
3402
|
a.push({
|
|
3403
|
-
type:
|
|
3403
|
+
type: ce.literal,
|
|
3404
3404
|
value: n.getDateTimeFormat(t, C).format(T)
|
|
3405
3405
|
});
|
|
3406
3406
|
continue;
|
|
@@ -3408,7 +3408,7 @@ function It(e, t, n, r, i, s, l) {
|
|
|
3408
3408
|
if (ii(h)) {
|
|
3409
3409
|
var C = typeof h.style == "string" ? r.time[h.style] : xn(h.style) ? h.style.parsedOptions : r.time.medium;
|
|
3410
3410
|
a.push({
|
|
3411
|
-
type:
|
|
3411
|
+
type: ce.literal,
|
|
3412
3412
|
value: n.getDateTimeFormat(t, C).format(T)
|
|
3413
3413
|
});
|
|
3414
3414
|
continue;
|
|
@@ -3416,22 +3416,22 @@ function It(e, t, n, r, i, s, l) {
|
|
|
3416
3416
|
if (ni(h)) {
|
|
3417
3417
|
var C = typeof h.style == "string" ? r.number[h.style] : li(h.style) ? h.style.parsedOptions : void 0;
|
|
3418
3418
|
C && C.scale && (T = T * (C.scale || 1)), a.push({
|
|
3419
|
-
type:
|
|
3419
|
+
type: ce.literal,
|
|
3420
3420
|
value: n.getNumberFormat(t, C).format(T)
|
|
3421
3421
|
});
|
|
3422
3422
|
continue;
|
|
3423
3423
|
}
|
|
3424
3424
|
if (ai(h)) {
|
|
3425
|
-
var
|
|
3425
|
+
var y = h.children, m = h.value, M = i[m];
|
|
3426
3426
|
if (!To(M))
|
|
3427
3427
|
throw new bo(m, "function", l);
|
|
3428
|
-
var
|
|
3429
|
-
return
|
|
3428
|
+
var W = It(y, t, n, r, i, s), P = M(W.map(function(I) {
|
|
3429
|
+
return I.value;
|
|
3430
3430
|
}));
|
|
3431
|
-
Array.isArray(
|
|
3431
|
+
Array.isArray(P) || (P = [P]), a.push.apply(a, P.map(function(I) {
|
|
3432
3432
|
return {
|
|
3433
|
-
type: typeof
|
|
3434
|
-
value:
|
|
3433
|
+
type: typeof I == "string" ? ce.literal : ce.object,
|
|
3434
|
+
value: I
|
|
3435
3435
|
};
|
|
3436
3436
|
}));
|
|
3437
3437
|
}
|
|
@@ -3449,8 +3449,8 @@ function It(e, t, n, r, i, s, l) {
|
|
|
3449
3449
|
throw new Yt(`Intl.PluralRules is not available in this environment.
|
|
3450
3450
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3451
3451
|
`, qe.MISSING_INTL_API, l);
|
|
3452
|
-
var
|
|
3453
|
-
A = h.options[
|
|
3452
|
+
var R = n.getPluralRules(t, { type: h.pluralType }).select(T - (h.offset || 0));
|
|
3453
|
+
A = h.options[R] || h.options.other;
|
|
3454
3454
|
}
|
|
3455
3455
|
if (!A)
|
|
3456
3456
|
throw new gr(h.value, T, Object.keys(h.options), l);
|
|
@@ -3461,14 +3461,14 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3461
3461
|
return yo(a);
|
|
3462
3462
|
}
|
|
3463
3463
|
function xo(e, t) {
|
|
3464
|
-
return t ?
|
|
3465
|
-
return n[r] =
|
|
3464
|
+
return t ? z(z(z({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3465
|
+
return n[r] = z(z({}, e[r]), t[r] || {}), n;
|
|
3466
3466
|
}, {})) : e;
|
|
3467
3467
|
}
|
|
3468
3468
|
function vo(e, t) {
|
|
3469
3469
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3470
3470
|
return n[r] = xo(e[r], t[r]), n;
|
|
3471
|
-
},
|
|
3471
|
+
}, z({}, e)) : e;
|
|
3472
3472
|
}
|
|
3473
3473
|
function hn(e) {
|
|
3474
3474
|
return {
|
|
@@ -3531,7 +3531,7 @@ var gi = (
|
|
|
3531
3531
|
if (u.length === 1)
|
|
3532
3532
|
return u[0].value;
|
|
3533
3533
|
var h = u.reduce(function(g, T) {
|
|
3534
|
-
return !g.length || T.type !==
|
|
3534
|
+
return !g.length || T.type !== ce.literal || typeof g[g.length - 1] != "string" ? g.push(T.value) : g[g.length - 1] += T.value, g;
|
|
3535
3535
|
}, []);
|
|
3536
3536
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3537
3537
|
}, this.formatToParts = function(c) {
|
|
@@ -3549,7 +3549,7 @@ var gi = (
|
|
|
3549
3549
|
var l = i || {};
|
|
3550
3550
|
l.formatters;
|
|
3551
3551
|
var a = Ps(l, ["formatters"]);
|
|
3552
|
-
this.ast = e.__parse(t,
|
|
3552
|
+
this.ast = e.__parse(t, z(z({}, a), { locale: this.resolvedLocale }));
|
|
3553
3553
|
} else
|
|
3554
3554
|
this.ast = t;
|
|
3555
3555
|
if (!Array.isArray(this.ast))
|
|
@@ -4002,17 +4002,17 @@ const {
|
|
|
4002
4002
|
getOwnPropertyDescriptor: ca
|
|
4003
4003
|
} = Object;
|
|
4004
4004
|
let {
|
|
4005
|
-
freeze:
|
|
4006
|
-
seal:
|
|
4005
|
+
freeze: he,
|
|
4006
|
+
seal: ye,
|
|
4007
4007
|
create: Ai
|
|
4008
4008
|
} = Object, {
|
|
4009
4009
|
apply: Cn,
|
|
4010
4010
|
construct: Mn
|
|
4011
4011
|
} = typeof Reflect < "u" && Reflect;
|
|
4012
|
-
|
|
4012
|
+
he || (he = function(t) {
|
|
4013
4013
|
return t;
|
|
4014
4014
|
});
|
|
4015
|
-
|
|
4015
|
+
ye || (ye = function(t) {
|
|
4016
4016
|
return t;
|
|
4017
4017
|
});
|
|
4018
4018
|
Cn || (Cn = function(t, n, r) {
|
|
@@ -4021,8 +4021,8 @@ Cn || (Cn = function(t, n, r) {
|
|
|
4021
4021
|
Mn || (Mn = function(t, n) {
|
|
4022
4022
|
return new t(...n);
|
|
4023
4023
|
});
|
|
4024
|
-
const Ot =
|
|
4025
|
-
function
|
|
4024
|
+
const Ot = ge(Array.prototype.forEach), Ar = ge(Array.prototype.pop), ot = ge(Array.prototype.push), Bt = ge(String.prototype.toLowerCase), mn = ge(String.prototype.toString), _r = ge(String.prototype.match), at = ge(String.prototype.replace), ha = ge(String.prototype.indexOf), fa = ge(String.prototype.trim), xe = ge(Object.prototype.hasOwnProperty), ue = ge(RegExp.prototype.test), lt = ma(TypeError);
|
|
4025
|
+
function ge(e) {
|
|
4026
4026
|
return function(t) {
|
|
4027
4027
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
|
|
4028
4028
|
r[i - 1] = arguments[i];
|
|
@@ -4036,7 +4036,7 @@ function ma(e) {
|
|
|
4036
4036
|
return Mn(e, n);
|
|
4037
4037
|
};
|
|
4038
4038
|
}
|
|
4039
|
-
function
|
|
4039
|
+
function D(e, t) {
|
|
4040
4040
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Bt;
|
|
4041
4041
|
wr && wr(e, null);
|
|
4042
4042
|
let r = t.length;
|
|
@@ -4052,13 +4052,13 @@ function B(e, t) {
|
|
|
4052
4052
|
}
|
|
4053
4053
|
function pa(e) {
|
|
4054
4054
|
for (let t = 0; t < e.length; t++)
|
|
4055
|
-
|
|
4055
|
+
xe(e, t) || (e[t] = null);
|
|
4056
4056
|
return e;
|
|
4057
4057
|
}
|
|
4058
4058
|
function Ie(e) {
|
|
4059
4059
|
const t = Ai(null);
|
|
4060
4060
|
for (const [n, r] of wi(e))
|
|
4061
|
-
|
|
4061
|
+
xe(e, n) && (Array.isArray(r) ? t[n] = pa(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = Ie(r) : t[n] = r);
|
|
4062
4062
|
return t;
|
|
4063
4063
|
}
|
|
4064
4064
|
function ut(e, t) {
|
|
@@ -4066,9 +4066,9 @@ function ut(e, t) {
|
|
|
4066
4066
|
const r = ca(e, t);
|
|
4067
4067
|
if (r) {
|
|
4068
4068
|
if (r.get)
|
|
4069
|
-
return
|
|
4069
|
+
return ge(r.get);
|
|
4070
4070
|
if (typeof r.value == "function")
|
|
4071
|
-
return
|
|
4071
|
+
return ge(r.value);
|
|
4072
4072
|
}
|
|
4073
4073
|
e = ua(e);
|
|
4074
4074
|
}
|
|
@@ -4077,13 +4077,13 @@ function ut(e, t) {
|
|
|
4077
4077
|
}
|
|
4078
4078
|
return n;
|
|
4079
4079
|
}
|
|
4080
|
-
const Or =
|
|
4080
|
+
const Or = he(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), pn = he(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), dn = he(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), da = he(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), gn = he(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), ga = he(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Cr = he(["#text"]), Mr = he(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), bn = he(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Hr = he(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Ct = he(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), ba = ye(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Ea = ye(/<%[\w\W]*|[\w\W]*%>/gm), ya = ye(/\${[\w\W]*}/gm), Ta = ye(/^data-[\-\w.\u00B7-\uFFFF]/), xa = ye(/^aria-[\-\w]+$/), _i = ye(
|
|
4081
4081
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
4082
4082
|
// eslint-disable-line no-useless-escape
|
|
4083
|
-
), va =
|
|
4083
|
+
), va = ye(/^(?:\w+script|data):/i), Sa = ye(
|
|
4084
4084
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
4085
4085
|
// eslint-disable-line no-control-regex
|
|
4086
|
-
), Oi =
|
|
4086
|
+
), Oi = ye(/^html$/i), wa = ye(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
4087
4087
|
var Nr = /* @__PURE__ */ Object.freeze({
|
|
4088
4088
|
__proto__: null,
|
|
4089
4089
|
MUSTACHE_EXPR: ba,
|
|
@@ -4144,39 +4144,39 @@ function Ci() {
|
|
|
4144
4144
|
HTMLFormElement: g,
|
|
4145
4145
|
DOMParser: T,
|
|
4146
4146
|
trustedTypes: C
|
|
4147
|
-
} = e,
|
|
4147
|
+
} = e, y = c.prototype, m = ut(y, "cloneNode"), M = ut(y, "remove"), W = ut(y, "nextSibling"), P = ut(y, "childNodes"), A = ut(y, "parentNode");
|
|
4148
4148
|
if (typeof l == "function") {
|
|
4149
4149
|
const O = n.createElement("template");
|
|
4150
4150
|
O.content && O.content.ownerDocument && (n = O.content.ownerDocument);
|
|
4151
4151
|
}
|
|
4152
|
-
let
|
|
4152
|
+
let R, I = "";
|
|
4153
4153
|
const {
|
|
4154
|
-
implementation:
|
|
4155
|
-
createNodeIterator:
|
|
4156
|
-
createDocumentFragment:
|
|
4157
|
-
getElementsByTagName:
|
|
4154
|
+
implementation: j,
|
|
4155
|
+
createNodeIterator: Y,
|
|
4156
|
+
createDocumentFragment: q,
|
|
4157
|
+
getElementsByTagName: ee
|
|
4158
4158
|
} = n, {
|
|
4159
|
-
importNode:
|
|
4159
|
+
importNode: Z
|
|
4160
4160
|
} = r;
|
|
4161
|
-
let
|
|
4162
|
-
t.isSupported = typeof wi == "function" && typeof A == "function" &&
|
|
4161
|
+
let _ = {};
|
|
4162
|
+
t.isSupported = typeof wi == "function" && typeof A == "function" && j && j.createHTMLDocument !== void 0;
|
|
4163
4163
|
const {
|
|
4164
|
-
MUSTACHE_EXPR:
|
|
4165
|
-
ERB_EXPR:
|
|
4164
|
+
MUSTACHE_EXPR: ae,
|
|
4165
|
+
ERB_EXPR: de,
|
|
4166
4166
|
TMPLIT_EXPR: v,
|
|
4167
|
-
DATA_ATTR:
|
|
4168
|
-
ARIA_ATTR:
|
|
4167
|
+
DATA_ATTR: E,
|
|
4168
|
+
ARIA_ATTR: p,
|
|
4169
4169
|
IS_SCRIPT_OR_DATA: S,
|
|
4170
4170
|
ATTR_WHITESPACE: f,
|
|
4171
4171
|
CUSTOM_ELEMENT: x
|
|
4172
4172
|
} = Nr;
|
|
4173
4173
|
let {
|
|
4174
|
-
IS_ALLOWED_URI:
|
|
4175
|
-
} = Nr,
|
|
4176
|
-
const
|
|
4177
|
-
let
|
|
4178
|
-
const
|
|
4179
|
-
let
|
|
4174
|
+
IS_ALLOWED_URI: H
|
|
4175
|
+
} = Nr, N = null;
|
|
4176
|
+
const V = D({}, [...Or, ...pn, ...dn, ...gn, ...Cr]);
|
|
4177
|
+
let L = null;
|
|
4178
|
+
const K = D({}, [...Mr, ...bn, ...Hr, ...Ct]);
|
|
4179
|
+
let B = Object.seal(Ai(null, {
|
|
4180
4180
|
tagNameCheck: {
|
|
4181
4181
|
writable: !0,
|
|
4182
4182
|
configurable: !1,
|
|
@@ -4195,58 +4195,58 @@ function Ci() {
|
|
|
4195
4195
|
enumerable: !0,
|
|
4196
4196
|
value: !1
|
|
4197
4197
|
}
|
|
4198
|
-
})),
|
|
4198
|
+
})), b = null, F = null, re = !0, Q = !0, ie = !1, Te = !0, Ee = !1, Me = !0, Le = !1, Qt = !1, Kt = !1, Be = !1, yt = !1, Tt = !1, In = !0, Dn = !1;
|
|
4199
4199
|
const Ni = "user-content-";
|
|
4200
4200
|
let $t = !0, tt = !1, Ue = {}, ke = null;
|
|
4201
|
-
const Bn =
|
|
4201
|
+
const Bn = D({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
4202
4202
|
let Un = null;
|
|
4203
|
-
const kn =
|
|
4203
|
+
const kn = D({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
4204
4204
|
let en = null;
|
|
4205
|
-
const Gn =
|
|
4206
|
-
let Ge =
|
|
4207
|
-
const Pi =
|
|
4205
|
+
const Gn = D({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), xt = "http://www.w3.org/1998/Math/MathML", vt = "http://www.w3.org/2000/svg", _e = "http://www.w3.org/1999/xhtml";
|
|
4206
|
+
let Ge = _e, tn = !1, nn = null;
|
|
4207
|
+
const Pi = D({}, [xt, vt, _e], mn);
|
|
4208
4208
|
let nt = null;
|
|
4209
4209
|
const Ri = ["application/xhtml+xml", "text/html"], Li = "text/html";
|
|
4210
|
-
let
|
|
4210
|
+
let ne = null, Fe = null;
|
|
4211
4211
|
const Ii = n.createElement("form"), Fn = function(o) {
|
|
4212
4212
|
return o instanceof RegExp || o instanceof Function;
|
|
4213
4213
|
}, rn = function() {
|
|
4214
4214
|
let o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4215
4215
|
if (!(Fe && Fe === o)) {
|
|
4216
4216
|
if ((!o || typeof o != "object") && (o = {}), o = Ie(o), nt = // eslint-disable-next-line unicorn/prefer-includes
|
|
4217
|
-
Ri.indexOf(o.PARSER_MEDIA_TYPE) === -1 ? Li : o.PARSER_MEDIA_TYPE,
|
|
4217
|
+
Ri.indexOf(o.PARSER_MEDIA_TYPE) === -1 ? Li : o.PARSER_MEDIA_TYPE, ne = nt === "application/xhtml+xml" ? mn : Bt, N = xe(o, "ALLOWED_TAGS") ? D({}, o.ALLOWED_TAGS, ne) : V, L = xe(o, "ALLOWED_ATTR") ? D({}, o.ALLOWED_ATTR, ne) : K, nn = xe(o, "ALLOWED_NAMESPACES") ? D({}, o.ALLOWED_NAMESPACES, mn) : Pi, en = xe(o, "ADD_URI_SAFE_ATTR") ? D(
|
|
4218
4218
|
Ie(Gn),
|
|
4219
4219
|
// eslint-disable-line indent
|
|
4220
4220
|
o.ADD_URI_SAFE_ATTR,
|
|
4221
4221
|
// eslint-disable-line indent
|
|
4222
|
-
|
|
4222
|
+
ne
|
|
4223
4223
|
// eslint-disable-line indent
|
|
4224
|
-
) : Gn, Un =
|
|
4224
|
+
) : Gn, Un = xe(o, "ADD_DATA_URI_TAGS") ? D(
|
|
4225
4225
|
Ie(kn),
|
|
4226
4226
|
// eslint-disable-line indent
|
|
4227
4227
|
o.ADD_DATA_URI_TAGS,
|
|
4228
4228
|
// eslint-disable-line indent
|
|
4229
|
-
|
|
4229
|
+
ne
|
|
4230
4230
|
// eslint-disable-line indent
|
|
4231
|
-
) : kn, ke =
|
|
4231
|
+
) : kn, ke = xe(o, "FORBID_CONTENTS") ? D({}, o.FORBID_CONTENTS, ne) : Bn, b = xe(o, "FORBID_TAGS") ? D({}, o.FORBID_TAGS, ne) : {}, F = xe(o, "FORBID_ATTR") ? D({}, o.FORBID_ATTR, ne) : {}, Ue = xe(o, "USE_PROFILES") ? o.USE_PROFILES : !1, re = o.ALLOW_ARIA_ATTR !== !1, Q = o.ALLOW_DATA_ATTR !== !1, ie = o.ALLOW_UNKNOWN_PROTOCOLS || !1, Te = o.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ee = o.SAFE_FOR_TEMPLATES || !1, Me = o.SAFE_FOR_XML !== !1, Le = o.WHOLE_DOCUMENT || !1, Be = o.RETURN_DOM || !1, yt = o.RETURN_DOM_FRAGMENT || !1, Tt = o.RETURN_TRUSTED_TYPE || !1, Kt = o.FORCE_BODY || !1, In = o.SANITIZE_DOM !== !1, Dn = o.SANITIZE_NAMED_PROPS || !1, $t = o.KEEP_CONTENT !== !1, tt = o.IN_PLACE || !1, H = o.ALLOWED_URI_REGEXP || _i, Ge = o.NAMESPACE || _e, B = o.CUSTOM_ELEMENT_HANDLING || {}, o.CUSTOM_ELEMENT_HANDLING && Fn(o.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (B.tagNameCheck = o.CUSTOM_ELEMENT_HANDLING.tagNameCheck), o.CUSTOM_ELEMENT_HANDLING && Fn(o.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (B.attributeNameCheck = o.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), o.CUSTOM_ELEMENT_HANDLING && typeof o.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (B.allowCustomizedBuiltInElements = o.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ee && (Q = !1), yt && (Be = !0), Ue && (N = D({}, Cr), L = [], Ue.html === !0 && (D(N, Or), D(L, Mr)), Ue.svg === !0 && (D(N, pn), D(L, bn), D(L, Ct)), Ue.svgFilters === !0 && (D(N, dn), D(L, bn), D(L, Ct)), Ue.mathMl === !0 && (D(N, gn), D(L, Hr), D(L, Ct))), o.ADD_TAGS && (N === V && (N = Ie(N)), D(N, o.ADD_TAGS, ne)), o.ADD_ATTR && (L === K && (L = Ie(L)), D(L, o.ADD_ATTR, ne)), o.ADD_URI_SAFE_ATTR && D(en, o.ADD_URI_SAFE_ATTR, ne), o.FORBID_CONTENTS && (ke === Bn && (ke = Ie(ke)), D(ke, o.FORBID_CONTENTS, ne)), $t && (N["#text"] = !0), Le && D(N, ["html", "head", "body"]), N.table && (D(N, ["tbody"]), delete b.tbody), o.TRUSTED_TYPES_POLICY) {
|
|
4232
4232
|
if (typeof o.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
4233
4233
|
throw lt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
4234
4234
|
if (typeof o.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
4235
4235
|
throw lt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
4236
|
-
|
|
4236
|
+
R = o.TRUSTED_TYPES_POLICY, I = R.createHTML("");
|
|
4237
4237
|
} else
|
|
4238
|
-
|
|
4239
|
-
|
|
4238
|
+
R === void 0 && (R = _a(C, i)), R !== null && typeof I == "string" && (I = R.createHTML(""));
|
|
4239
|
+
he && he(o), Fe = o;
|
|
4240
4240
|
}
|
|
4241
|
-
}, zn =
|
|
4242
|
-
let
|
|
4243
|
-
(!
|
|
4241
|
+
}, zn = D({}, ["mi", "mo", "mn", "ms", "mtext"]), jn = D({}, ["foreignobject", "annotation-xml"]), Di = D({}, ["title", "style", "font", "a", "script"]), Wn = D({}, [...pn, ...dn, ...da]), Zn = D({}, [...gn, ...ga]), Bi = function(o) {
|
|
4242
|
+
let d = A(o);
|
|
4243
|
+
(!d || !d.tagName) && (d = {
|
|
4244
4244
|
namespaceURI: Ge,
|
|
4245
4245
|
tagName: "template"
|
|
4246
4246
|
});
|
|
4247
|
-
const w = Bt(o.tagName),
|
|
4248
|
-
return nn[o.namespaceURI] ? o.namespaceURI === vt ?
|
|
4249
|
-
},
|
|
4247
|
+
const w = Bt(o.tagName), X = Bt(d.tagName);
|
|
4248
|
+
return nn[o.namespaceURI] ? o.namespaceURI === vt ? d.namespaceURI === _e ? w === "svg" : d.namespaceURI === xt ? w === "svg" && (X === "annotation-xml" || zn[X]) : !!Wn[w] : o.namespaceURI === xt ? d.namespaceURI === _e ? w === "math" : d.namespaceURI === vt ? w === "math" && jn[X] : !!Zn[w] : o.namespaceURI === _e ? d.namespaceURI === vt && !jn[X] || d.namespaceURI === xt && !zn[X] ? !1 : !Zn[w] && (Di[w] || !Wn[w]) : !!(nt === "application/xhtml+xml" && nn[o.namespaceURI]) : !1;
|
|
4249
|
+
}, ve = function(o) {
|
|
4250
4250
|
ot(t.removed, {
|
|
4251
4251
|
element: o
|
|
4252
4252
|
});
|
|
@@ -4255,55 +4255,55 @@ function Ci() {
|
|
|
4255
4255
|
} catch {
|
|
4256
4256
|
M(o);
|
|
4257
4257
|
}
|
|
4258
|
-
}, St = function(o,
|
|
4258
|
+
}, St = function(o, d) {
|
|
4259
4259
|
try {
|
|
4260
4260
|
ot(t.removed, {
|
|
4261
|
-
attribute:
|
|
4262
|
-
from:
|
|
4261
|
+
attribute: d.getAttributeNode(o),
|
|
4262
|
+
from: d
|
|
4263
4263
|
});
|
|
4264
4264
|
} catch {
|
|
4265
4265
|
ot(t.removed, {
|
|
4266
4266
|
attribute: null,
|
|
4267
|
-
from:
|
|
4267
|
+
from: d
|
|
4268
4268
|
});
|
|
4269
4269
|
}
|
|
4270
|
-
if (
|
|
4270
|
+
if (d.removeAttribute(o), o === "is" && !L[o])
|
|
4271
4271
|
if (Be || yt)
|
|
4272
4272
|
try {
|
|
4273
|
-
|
|
4273
|
+
ve(d);
|
|
4274
4274
|
} catch {
|
|
4275
4275
|
}
|
|
4276
4276
|
else
|
|
4277
4277
|
try {
|
|
4278
|
-
|
|
4278
|
+
d.setAttribute(o, "");
|
|
4279
4279
|
} catch {
|
|
4280
4280
|
}
|
|
4281
4281
|
}, Vn = function(o) {
|
|
4282
|
-
let
|
|
4282
|
+
let d = null, w = null;
|
|
4283
4283
|
if (Kt)
|
|
4284
4284
|
o = "<remove></remove>" + o;
|
|
4285
4285
|
else {
|
|
4286
|
-
const
|
|
4287
|
-
w =
|
|
4286
|
+
const se = _r(o, /^[\r\n\t ]+/);
|
|
4287
|
+
w = se && se[0];
|
|
4288
4288
|
}
|
|
4289
|
-
nt === "application/xhtml+xml" && Ge ===
|
|
4290
|
-
const
|
|
4291
|
-
if (Ge ===
|
|
4289
|
+
nt === "application/xhtml+xml" && Ge === _e && (o = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + o + "</body></html>");
|
|
4290
|
+
const X = R ? R.createHTML(o) : o;
|
|
4291
|
+
if (Ge === _e)
|
|
4292
4292
|
try {
|
|
4293
|
-
|
|
4293
|
+
d = new T().parseFromString(X, nt);
|
|
4294
4294
|
} catch {
|
|
4295
4295
|
}
|
|
4296
|
-
if (!
|
|
4297
|
-
|
|
4296
|
+
if (!d || !d.documentElement) {
|
|
4297
|
+
d = j.createDocument(Ge, "template", null);
|
|
4298
4298
|
try {
|
|
4299
|
-
|
|
4299
|
+
d.documentElement.innerHTML = tn ? I : X;
|
|
4300
4300
|
} catch {
|
|
4301
4301
|
}
|
|
4302
4302
|
}
|
|
4303
|
-
const
|
|
4304
|
-
return o && w &&
|
|
4303
|
+
const oe = d.body || d.documentElement;
|
|
4304
|
+
return o && w && oe.insertBefore(n.createTextNode(w), oe.childNodes[0] || null), Ge === _e ? ee.call(d, Le ? "html" : "body")[0] : Le ? d.documentElement : oe;
|
|
4305
4305
|
}, Xn = function(o) {
|
|
4306
|
-
return
|
|
4306
|
+
return Y.call(
|
|
4307
4307
|
o.ownerDocument || o,
|
|
4308
4308
|
o,
|
|
4309
4309
|
// eslint-disable-next-line no-bitwise
|
|
@@ -4314,58 +4314,58 @@ function Ci() {
|
|
|
4314
4314
|
return o instanceof g && (typeof o.nodeName != "string" || typeof o.textContent != "string" || typeof o.removeChild != "function" || !(o.attributes instanceof h) || typeof o.removeAttribute != "function" || typeof o.setAttribute != "function" || typeof o.namespaceURI != "string" || typeof o.insertBefore != "function" || typeof o.hasChildNodes != "function");
|
|
4315
4315
|
}, Yn = function(o) {
|
|
4316
4316
|
return typeof a == "function" && o instanceof a;
|
|
4317
|
-
},
|
|
4318
|
-
|
|
4319
|
-
|
|
4317
|
+
}, Oe = function(o, d, w) {
|
|
4318
|
+
_[o] && Ot(_[o], (X) => {
|
|
4319
|
+
X.call(t, d, w, Fe);
|
|
4320
4320
|
});
|
|
4321
4321
|
}, qn = function(o) {
|
|
4322
|
-
let
|
|
4323
|
-
if (
|
|
4324
|
-
return
|
|
4325
|
-
const w =
|
|
4326
|
-
if (
|
|
4322
|
+
let d = null;
|
|
4323
|
+
if (Oe("beforeSanitizeElements", o, null), Jn(o))
|
|
4324
|
+
return ve(o), !0;
|
|
4325
|
+
const w = ne(o.nodeName);
|
|
4326
|
+
if (Oe("uponSanitizeElement", o, {
|
|
4327
4327
|
tagName: w,
|
|
4328
|
-
allowedTags:
|
|
4329
|
-
}), o.hasChildNodes() && !Yn(o.firstElementChild) &&
|
|
4330
|
-
return
|
|
4331
|
-
if (!
|
|
4332
|
-
if (!
|
|
4328
|
+
allowedTags: N
|
|
4329
|
+
}), o.hasChildNodes() && !Yn(o.firstElementChild) && ue(/<[/\w]/g, o.innerHTML) && ue(/<[/\w]/g, o.textContent) || o.nodeType === ct.progressingInstruction || Me && o.nodeType === ct.comment && ue(/<[/\w]/g, o.data))
|
|
4330
|
+
return ve(o), !0;
|
|
4331
|
+
if (!N[w] || b[w]) {
|
|
4332
|
+
if (!b[w] && Kn(w) && (B.tagNameCheck instanceof RegExp && ue(B.tagNameCheck, w) || B.tagNameCheck instanceof Function && B.tagNameCheck(w)))
|
|
4333
4333
|
return !1;
|
|
4334
4334
|
if ($t && !ke[w]) {
|
|
4335
|
-
const
|
|
4336
|
-
if (
|
|
4337
|
-
const
|
|
4338
|
-
for (let
|
|
4339
|
-
const
|
|
4340
|
-
|
|
4335
|
+
const X = A(o) || o.parentNode, oe = P(o) || o.childNodes;
|
|
4336
|
+
if (oe && X) {
|
|
4337
|
+
const se = oe.length;
|
|
4338
|
+
for (let fe = se - 1; fe >= 0; --fe) {
|
|
4339
|
+
const Se = m(oe[fe], !0);
|
|
4340
|
+
Se.__removalCount = (o.__removalCount || 0) + 1, X.insertBefore(Se, W(o));
|
|
4341
4341
|
}
|
|
4342
4342
|
}
|
|
4343
4343
|
}
|
|
4344
|
-
return
|
|
4344
|
+
return ve(o), !0;
|
|
4345
4345
|
}
|
|
4346
|
-
return o instanceof c && !Bi(o) || (w === "noscript" || w === "noembed" || w === "noframes") &&
|
|
4347
|
-
|
|
4348
|
-
}), o.textContent !==
|
|
4346
|
+
return o instanceof c && !Bi(o) || (w === "noscript" || w === "noembed" || w === "noframes") && ue(/<\/no(script|embed|frames)/i, o.innerHTML) ? (ve(o), !0) : (Ee && o.nodeType === ct.text && (d = o.textContent, Ot([ae, de, v], (X) => {
|
|
4347
|
+
d = at(d, X, " ");
|
|
4348
|
+
}), o.textContent !== d && (ot(t.removed, {
|
|
4349
4349
|
element: o.cloneNode()
|
|
4350
|
-
}), o.textContent =
|
|
4351
|
-
}, Qn = function(o,
|
|
4352
|
-
if (In && (
|
|
4350
|
+
}), o.textContent = d)), Oe("afterSanitizeElements", o, null), !1);
|
|
4351
|
+
}, Qn = function(o, d, w) {
|
|
4352
|
+
if (In && (d === "id" || d === "name") && (w in n || w in Ii))
|
|
4353
4353
|
return !1;
|
|
4354
|
-
if (!(
|
|
4355
|
-
if (!(
|
|
4356
|
-
if (!
|
|
4354
|
+
if (!(Q && !F[d] && ue(E, d))) {
|
|
4355
|
+
if (!(re && ue(p, d))) {
|
|
4356
|
+
if (!L[d] || F[d]) {
|
|
4357
4357
|
if (
|
|
4358
4358
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
4359
4359
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4360
4360
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
4361
|
-
!(Kn(o) && (
|
|
4361
|
+
!(Kn(o) && (B.tagNameCheck instanceof RegExp && ue(B.tagNameCheck, o) || B.tagNameCheck instanceof Function && B.tagNameCheck(o)) && (B.attributeNameCheck instanceof RegExp && ue(B.attributeNameCheck, d) || B.attributeNameCheck instanceof Function && B.attributeNameCheck(d)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
4362
4362
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4363
|
-
|
|
4363
|
+
d === "is" && B.allowCustomizedBuiltInElements && (B.tagNameCheck instanceof RegExp && ue(B.tagNameCheck, w) || B.tagNameCheck instanceof Function && B.tagNameCheck(w)))
|
|
4364
4364
|
) return !1;
|
|
4365
|
-
} else if (!en[
|
|
4366
|
-
if (!
|
|
4367
|
-
if (!((
|
|
4368
|
-
if (!(
|
|
4365
|
+
} else if (!en[d]) {
|
|
4366
|
+
if (!ue(H, at(w, f, ""))) {
|
|
4367
|
+
if (!((d === "src" || d === "xlink:href" || d === "href") && o !== "script" && ha(w, "data:") === 0 && Un[o])) {
|
|
4368
|
+
if (!(ie && !ue(S, at(w, f, "")))) {
|
|
4369
4369
|
if (w)
|
|
4370
4370
|
return !1;
|
|
4371
4371
|
}
|
|
@@ -4378,68 +4378,68 @@ function Ci() {
|
|
|
4378
4378
|
}, Kn = function(o) {
|
|
4379
4379
|
return o !== "annotation-xml" && _r(o, x);
|
|
4380
4380
|
}, $n = function(o) {
|
|
4381
|
-
|
|
4381
|
+
Oe("beforeSanitizeAttributes", o, null);
|
|
4382
4382
|
const {
|
|
4383
|
-
attributes:
|
|
4383
|
+
attributes: d
|
|
4384
4384
|
} = o;
|
|
4385
|
-
if (!
|
|
4385
|
+
if (!d)
|
|
4386
4386
|
return;
|
|
4387
4387
|
const w = {
|
|
4388
4388
|
attrName: "",
|
|
4389
4389
|
attrValue: "",
|
|
4390
4390
|
keepAttr: !0,
|
|
4391
|
-
allowedAttributes:
|
|
4391
|
+
allowedAttributes: L
|
|
4392
4392
|
};
|
|
4393
|
-
let
|
|
4394
|
-
for (;
|
|
4395
|
-
const
|
|
4396
|
-
name:
|
|
4397
|
-
namespaceURI:
|
|
4398
|
-
value:
|
|
4399
|
-
} =
|
|
4400
|
-
let
|
|
4401
|
-
if (w.attrName = rt, w.attrValue =
|
|
4402
|
-
St(
|
|
4393
|
+
let X = d.length;
|
|
4394
|
+
for (; X--; ) {
|
|
4395
|
+
const oe = d[X], {
|
|
4396
|
+
name: se,
|
|
4397
|
+
namespaceURI: fe,
|
|
4398
|
+
value: Se
|
|
4399
|
+
} = oe, rt = ne(se);
|
|
4400
|
+
let le = se === "value" ? Se : fa(Se);
|
|
4401
|
+
if (w.attrName = rt, w.attrValue = le, w.keepAttr = !0, w.forceKeepAttr = void 0, Oe("uponSanitizeAttribute", o, w), le = w.attrValue, Me && ue(/((--!?|])>)|<\/(style|title)/i, le)) {
|
|
4402
|
+
St(se, o);
|
|
4403
4403
|
continue;
|
|
4404
4404
|
}
|
|
4405
|
-
if (w.forceKeepAttr || (St(
|
|
4405
|
+
if (w.forceKeepAttr || (St(se, o), !w.keepAttr))
|
|
4406
4406
|
continue;
|
|
4407
|
-
if (!
|
|
4408
|
-
St(
|
|
4407
|
+
if (!Te && ue(/\/>/i, le)) {
|
|
4408
|
+
St(se, o);
|
|
4409
4409
|
continue;
|
|
4410
4410
|
}
|
|
4411
|
-
|
|
4412
|
-
|
|
4411
|
+
Ee && Ot([ae, de, v], (tr) => {
|
|
4412
|
+
le = at(le, tr, " ");
|
|
4413
4413
|
});
|
|
4414
|
-
const er =
|
|
4415
|
-
if (Qn(er, rt,
|
|
4416
|
-
if (Dn && (rt === "id" || rt === "name") && (St(
|
|
4414
|
+
const er = ne(o.nodeName);
|
|
4415
|
+
if (Qn(er, rt, le)) {
|
|
4416
|
+
if (Dn && (rt === "id" || rt === "name") && (St(se, o), le = Ni + le), R && typeof C == "object" && typeof C.getAttributeType == "function" && !fe)
|
|
4417
4417
|
switch (C.getAttributeType(er, rt)) {
|
|
4418
4418
|
case "TrustedHTML": {
|
|
4419
|
-
|
|
4419
|
+
le = R.createHTML(le);
|
|
4420
4420
|
break;
|
|
4421
4421
|
}
|
|
4422
4422
|
case "TrustedScriptURL": {
|
|
4423
|
-
|
|
4423
|
+
le = R.createScriptURL(le);
|
|
4424
4424
|
break;
|
|
4425
4425
|
}
|
|
4426
4426
|
}
|
|
4427
4427
|
try {
|
|
4428
|
-
|
|
4428
|
+
fe ? o.setAttributeNS(fe, se, le) : o.setAttribute(se, le), Jn(o) ? ve(o) : Ar(t.removed);
|
|
4429
4429
|
} catch {
|
|
4430
4430
|
}
|
|
4431
4431
|
}
|
|
4432
4432
|
}
|
|
4433
|
-
|
|
4433
|
+
Oe("afterSanitizeAttributes", o, null);
|
|
4434
4434
|
}, Ui = function O(o) {
|
|
4435
|
-
let
|
|
4435
|
+
let d = null;
|
|
4436
4436
|
const w = Xn(o);
|
|
4437
|
-
for (
|
|
4438
|
-
|
|
4439
|
-
|
|
4437
|
+
for (Oe("beforeSanitizeShadowDOM", o, null); d = w.nextNode(); )
|
|
4438
|
+
Oe("uponSanitizeShadowNode", d, null), !qn(d) && (d.content instanceof s && O(d.content), $n(d));
|
|
4439
|
+
Oe("afterSanitizeShadowDOM", o, null);
|
|
4440
4440
|
};
|
|
4441
4441
|
return t.sanitize = function(O) {
|
|
4442
|
-
let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
|
|
4442
|
+
let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, d = null, w = null, X = null, oe = null;
|
|
4443
4443
|
if (tn = !O, tn && (O = "<!-->"), typeof O != "string" && !Yn(O))
|
|
4444
4444
|
if (typeof O.toString == "function") {
|
|
4445
4445
|
if (O = O.toString(), typeof O != "string")
|
|
@@ -4450,56 +4450,56 @@ function Ci() {
|
|
|
4450
4450
|
return O;
|
|
4451
4451
|
if (Qt || rn(o), t.removed = [], typeof O == "string" && (tt = !1), tt) {
|
|
4452
4452
|
if (O.nodeName) {
|
|
4453
|
-
const
|
|
4454
|
-
if (!
|
|
4453
|
+
const Se = ne(O.nodeName);
|
|
4454
|
+
if (!N[Se] || b[Se])
|
|
4455
4455
|
throw lt("root node is forbidden and cannot be sanitized in-place");
|
|
4456
4456
|
}
|
|
4457
4457
|
} else if (O instanceof a)
|
|
4458
|
-
|
|
4458
|
+
d = Vn("<!---->"), w = d.ownerDocument.importNode(O, !0), w.nodeType === ct.element && w.nodeName === "BODY" || w.nodeName === "HTML" ? d = w : d.appendChild(w);
|
|
4459
4459
|
else {
|
|
4460
|
-
if (!Be && !
|
|
4460
|
+
if (!Be && !Ee && !Le && // eslint-disable-next-line unicorn/prefer-includes
|
|
4461
4461
|
O.indexOf("<") === -1)
|
|
4462
|
-
return
|
|
4463
|
-
if (
|
|
4464
|
-
return Be ? null : Tt ?
|
|
4462
|
+
return R && Tt ? R.createHTML(O) : O;
|
|
4463
|
+
if (d = Vn(O), !d)
|
|
4464
|
+
return Be ? null : Tt ? I : "";
|
|
4465
4465
|
}
|
|
4466
|
-
|
|
4467
|
-
const
|
|
4468
|
-
for (;
|
|
4469
|
-
qn(
|
|
4466
|
+
d && Kt && ve(d.firstChild);
|
|
4467
|
+
const se = Xn(tt ? O : d);
|
|
4468
|
+
for (; X = se.nextNode(); )
|
|
4469
|
+
qn(X) || (X.content instanceof s && Ui(X.content), $n(X));
|
|
4470
4470
|
if (tt)
|
|
4471
4471
|
return O;
|
|
4472
4472
|
if (Be) {
|
|
4473
4473
|
if (yt)
|
|
4474
|
-
for (
|
|
4475
|
-
|
|
4474
|
+
for (oe = q.call(d.ownerDocument); d.firstChild; )
|
|
4475
|
+
oe.appendChild(d.firstChild);
|
|
4476
4476
|
else
|
|
4477
|
-
|
|
4478
|
-
return (
|
|
4477
|
+
oe = d;
|
|
4478
|
+
return (L.shadowroot || L.shadowrootmode) && (oe = Z.call(r, oe, !0)), oe;
|
|
4479
4479
|
}
|
|
4480
|
-
let
|
|
4481
|
-
return Le &&
|
|
4482
|
-
` +
|
|
4483
|
-
|
|
4484
|
-
}),
|
|
4480
|
+
let fe = Le ? d.outerHTML : d.innerHTML;
|
|
4481
|
+
return Le && N["!doctype"] && d.ownerDocument && d.ownerDocument.doctype && d.ownerDocument.doctype.name && ue(Oi, d.ownerDocument.doctype.name) && (fe = "<!DOCTYPE " + d.ownerDocument.doctype.name + `>
|
|
4482
|
+
` + fe), Ee && Ot([ae, de, v], (Se) => {
|
|
4483
|
+
fe = at(fe, Se, " ");
|
|
4484
|
+
}), R && Tt ? R.createHTML(fe) : fe;
|
|
4485
4485
|
}, t.setConfig = function() {
|
|
4486
4486
|
let O = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4487
4487
|
rn(O), Qt = !0;
|
|
4488
4488
|
}, t.clearConfig = function() {
|
|
4489
4489
|
Fe = null, Qt = !1;
|
|
4490
|
-
}, t.isValidAttribute = function(O, o,
|
|
4490
|
+
}, t.isValidAttribute = function(O, o, d) {
|
|
4491
4491
|
Fe || rn({});
|
|
4492
|
-
const w =
|
|
4493
|
-
return Qn(w,
|
|
4492
|
+
const w = ne(O), X = ne(o);
|
|
4493
|
+
return Qn(w, X, d);
|
|
4494
4494
|
}, t.addHook = function(O, o) {
|
|
4495
|
-
typeof o == "function" && (
|
|
4495
|
+
typeof o == "function" && (_[O] = _[O] || [], ot(_[O], o));
|
|
4496
4496
|
}, t.removeHook = function(O) {
|
|
4497
|
-
if (
|
|
4498
|
-
return Ar(
|
|
4497
|
+
if (_[O])
|
|
4498
|
+
return Ar(_[O]);
|
|
4499
4499
|
}, t.removeHooks = function(O) {
|
|
4500
|
-
|
|
4500
|
+
_[O] && (_[O] = []);
|
|
4501
4501
|
}, t.removeAllHooks = function() {
|
|
4502
|
-
|
|
4502
|
+
_ = {};
|
|
4503
4503
|
}, t;
|
|
4504
4504
|
}
|
|
4505
4505
|
var Pr = Ci();
|
|
@@ -4509,275 +4509,275 @@ var Mi = { exports: {} };
|
|
|
4509
4509
|
(function(n, r) {
|
|
4510
4510
|
e.exports = r();
|
|
4511
4511
|
})(Kr, function() {
|
|
4512
|
-
var n = 1e3, r = 6e4, i = 36e5, s = "millisecond", l = "second", a = "minute", c = "hour", u = "day", h = "week", g = "month", T = "quarter", C = "year",
|
|
4513
|
-
var
|
|
4514
|
-
return "[" + v + (
|
|
4515
|
-
} }, A = function(v,
|
|
4512
|
+
var n = 1e3, r = 6e4, i = 36e5, s = "millisecond", l = "second", a = "minute", c = "hour", u = "day", h = "week", g = "month", T = "quarter", C = "year", y = "date", m = "Invalid Date", M = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, W = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, P = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(v) {
|
|
4513
|
+
var E = ["th", "st", "nd", "rd"], p = v % 100;
|
|
4514
|
+
return "[" + v + (E[(p - 20) % 10] || E[p] || E[0]) + "]";
|
|
4515
|
+
} }, A = function(v, E, p) {
|
|
4516
4516
|
var S = String(v);
|
|
4517
|
-
return !S || S.length >=
|
|
4518
|
-
},
|
|
4519
|
-
var
|
|
4520
|
-
return (
|
|
4521
|
-
}, m: function v(
|
|
4522
|
-
if (
|
|
4523
|
-
var S = 12 * (
|
|
4524
|
-
return +(-(S + (
|
|
4517
|
+
return !S || S.length >= E ? v : "" + Array(E + 1 - S.length).join(p) + v;
|
|
4518
|
+
}, R = { s: A, z: function(v) {
|
|
4519
|
+
var E = -v.utcOffset(), p = Math.abs(E), S = Math.floor(p / 60), f = p % 60;
|
|
4520
|
+
return (E <= 0 ? "+" : "-") + A(S, 2, "0") + ":" + A(f, 2, "0");
|
|
4521
|
+
}, m: function v(E, p) {
|
|
4522
|
+
if (E.date() < p.date()) return -v(p, E);
|
|
4523
|
+
var S = 12 * (p.year() - E.year()) + (p.month() - E.month()), f = E.clone().add(S, g), x = p - f < 0, H = E.clone().add(S + (x ? -1 : 1), g);
|
|
4524
|
+
return +(-(S + (p - f) / (x ? f - H : H - f)) || 0);
|
|
4525
4525
|
}, a: function(v) {
|
|
4526
4526
|
return v < 0 ? Math.ceil(v) || 0 : Math.floor(v);
|
|
4527
4527
|
}, p: function(v) {
|
|
4528
|
-
return { M: g, y: C, w: h, d: u, D:
|
|
4528
|
+
return { M: g, y: C, w: h, d: u, D: y, h: c, m: a, s: l, ms: s, Q: T }[v] || String(v || "").toLowerCase().replace(/s$/, "");
|
|
4529
4529
|
}, u: function(v) {
|
|
4530
4530
|
return v === void 0;
|
|
4531
|
-
} },
|
|
4532
|
-
|
|
4533
|
-
var
|
|
4534
|
-
return v instanceof
|
|
4535
|
-
},
|
|
4531
|
+
} }, I = "en", j = {};
|
|
4532
|
+
j[I] = P;
|
|
4533
|
+
var Y = "$isDayjsObject", q = function(v) {
|
|
4534
|
+
return v instanceof ae || !(!v || !v[Y]);
|
|
4535
|
+
}, ee = function v(E, p, S) {
|
|
4536
4536
|
var f;
|
|
4537
|
-
if (!
|
|
4538
|
-
if (typeof
|
|
4539
|
-
var x =
|
|
4540
|
-
|
|
4541
|
-
var
|
|
4542
|
-
if (!f &&
|
|
4537
|
+
if (!E) return I;
|
|
4538
|
+
if (typeof E == "string") {
|
|
4539
|
+
var x = E.toLowerCase();
|
|
4540
|
+
j[x] && (f = x), p && (j[x] = p, f = x);
|
|
4541
|
+
var H = E.split("-");
|
|
4542
|
+
if (!f && H.length > 1) return v(H[0]);
|
|
4543
4543
|
} else {
|
|
4544
|
-
var
|
|
4545
|
-
|
|
4544
|
+
var N = E.name;
|
|
4545
|
+
j[N] = E, f = N;
|
|
4546
4546
|
}
|
|
4547
|
-
return !S && f && (
|
|
4548
|
-
},
|
|
4549
|
-
if (
|
|
4550
|
-
var
|
|
4551
|
-
return
|
|
4552
|
-
},
|
|
4553
|
-
|
|
4554
|
-
return
|
|
4547
|
+
return !S && f && (I = f), f || !S && I;
|
|
4548
|
+
}, Z = function(v, E) {
|
|
4549
|
+
if (q(v)) return v.clone();
|
|
4550
|
+
var p = typeof E == "object" ? E : {};
|
|
4551
|
+
return p.date = v, p.args = arguments, new ae(p);
|
|
4552
|
+
}, _ = R;
|
|
4553
|
+
_.l = ee, _.i = q, _.w = function(v, E) {
|
|
4554
|
+
return Z(v, { locale: E.$L, utc: E.$u, x: E.$x, $offset: E.$offset });
|
|
4555
4555
|
};
|
|
4556
|
-
var
|
|
4557
|
-
function v(
|
|
4558
|
-
this.$L =
|
|
4556
|
+
var ae = function() {
|
|
4557
|
+
function v(p) {
|
|
4558
|
+
this.$L = ee(p.locale, null, !0), this.parse(p), this.$x = this.$x || p.x || {}, this[Y] = !0;
|
|
4559
4559
|
}
|
|
4560
|
-
var
|
|
4561
|
-
return
|
|
4560
|
+
var E = v.prototype;
|
|
4561
|
+
return E.parse = function(p) {
|
|
4562
4562
|
this.$d = function(S) {
|
|
4563
4563
|
var f = S.date, x = S.utc;
|
|
4564
4564
|
if (f === null) return /* @__PURE__ */ new Date(NaN);
|
|
4565
|
-
if (
|
|
4565
|
+
if (_.u(f)) return /* @__PURE__ */ new Date();
|
|
4566
4566
|
if (f instanceof Date) return new Date(f);
|
|
4567
4567
|
if (typeof f == "string" && !/Z$/i.test(f)) {
|
|
4568
|
-
var
|
|
4569
|
-
if (
|
|
4570
|
-
var
|
|
4571
|
-
return x ? new Date(Date.UTC(
|
|
4568
|
+
var H = f.match(M);
|
|
4569
|
+
if (H) {
|
|
4570
|
+
var N = H[2] - 1 || 0, V = (H[7] || "0").substring(0, 3);
|
|
4571
|
+
return x ? new Date(Date.UTC(H[1], N, H[3] || 1, H[4] || 0, H[5] || 0, H[6] || 0, V)) : new Date(H[1], N, H[3] || 1, H[4] || 0, H[5] || 0, H[6] || 0, V);
|
|
4572
4572
|
}
|
|
4573
4573
|
}
|
|
4574
4574
|
return new Date(f);
|
|
4575
|
-
}(
|
|
4576
|
-
},
|
|
4577
|
-
var
|
|
4578
|
-
this.$y =
|
|
4579
|
-
},
|
|
4580
|
-
return
|
|
4581
|
-
},
|
|
4575
|
+
}(p), this.init();
|
|
4576
|
+
}, E.init = function() {
|
|
4577
|
+
var p = this.$d;
|
|
4578
|
+
this.$y = p.getFullYear(), this.$M = p.getMonth(), this.$D = p.getDate(), this.$W = p.getDay(), this.$H = p.getHours(), this.$m = p.getMinutes(), this.$s = p.getSeconds(), this.$ms = p.getMilliseconds();
|
|
4579
|
+
}, E.$utils = function() {
|
|
4580
|
+
return _;
|
|
4581
|
+
}, E.isValid = function() {
|
|
4582
4582
|
return this.$d.toString() !== m;
|
|
4583
|
-
},
|
|
4584
|
-
var f =
|
|
4583
|
+
}, E.isSame = function(p, S) {
|
|
4584
|
+
var f = Z(p);
|
|
4585
4585
|
return this.startOf(S) <= f && f <= this.endOf(S);
|
|
4586
|
-
},
|
|
4587
|
-
return
|
|
4588
|
-
},
|
|
4589
|
-
return this.endOf(S) <
|
|
4590
|
-
},
|
|
4591
|
-
return
|
|
4592
|
-
},
|
|
4586
|
+
}, E.isAfter = function(p, S) {
|
|
4587
|
+
return Z(p) < this.startOf(S);
|
|
4588
|
+
}, E.isBefore = function(p, S) {
|
|
4589
|
+
return this.endOf(S) < Z(p);
|
|
4590
|
+
}, E.$g = function(p, S, f) {
|
|
4591
|
+
return _.u(p) ? this[S] : this.set(f, p);
|
|
4592
|
+
}, E.unix = function() {
|
|
4593
4593
|
return Math.floor(this.valueOf() / 1e3);
|
|
4594
|
-
},
|
|
4594
|
+
}, E.valueOf = function() {
|
|
4595
4595
|
return this.$d.getTime();
|
|
4596
|
-
},
|
|
4597
|
-
var f = this, x = !!
|
|
4598
|
-
var
|
|
4599
|
-
return x ?
|
|
4600
|
-
},
|
|
4601
|
-
return
|
|
4602
|
-
},
|
|
4603
|
-
switch (
|
|
4596
|
+
}, E.startOf = function(p, S) {
|
|
4597
|
+
var f = this, x = !!_.u(S) || S, H = _.p(p), N = function(Q, ie) {
|
|
4598
|
+
var Te = _.w(f.$u ? Date.UTC(f.$y, ie, Q) : new Date(f.$y, ie, Q), f);
|
|
4599
|
+
return x ? Te : Te.endOf(u);
|
|
4600
|
+
}, V = function(Q, ie) {
|
|
4601
|
+
return _.w(f.toDate()[Q].apply(f.toDate("s"), (x ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ie)), f);
|
|
4602
|
+
}, L = this.$W, K = this.$M, B = this.$D, b = "set" + (this.$u ? "UTC" : "");
|
|
4603
|
+
switch (H) {
|
|
4604
4604
|
case C:
|
|
4605
|
-
return x ?
|
|
4605
|
+
return x ? N(1, 0) : N(31, 11);
|
|
4606
4606
|
case g:
|
|
4607
|
-
return x ?
|
|
4607
|
+
return x ? N(1, K) : N(0, K + 1);
|
|
4608
4608
|
case h:
|
|
4609
|
-
var
|
|
4610
|
-
return
|
|
4609
|
+
var F = this.$locale().weekStart || 0, re = (L < F ? L + 7 : L) - F;
|
|
4610
|
+
return N(x ? B - re : B + (6 - re), K);
|
|
4611
4611
|
case u:
|
|
4612
|
-
case
|
|
4613
|
-
return b
|
|
4612
|
+
case y:
|
|
4613
|
+
return V(b + "Hours", 0);
|
|
4614
4614
|
case c:
|
|
4615
|
-
return b
|
|
4615
|
+
return V(b + "Minutes", 1);
|
|
4616
4616
|
case a:
|
|
4617
|
-
return b
|
|
4617
|
+
return V(b + "Seconds", 2);
|
|
4618
4618
|
case l:
|
|
4619
|
-
return b
|
|
4619
|
+
return V(b + "Milliseconds", 3);
|
|
4620
4620
|
default:
|
|
4621
4621
|
return this.clone();
|
|
4622
4622
|
}
|
|
4623
|
-
},
|
|
4624
|
-
return this.startOf(
|
|
4625
|
-
},
|
|
4626
|
-
var f, x =
|
|
4623
|
+
}, E.endOf = function(p) {
|
|
4624
|
+
return this.startOf(p, !1);
|
|
4625
|
+
}, E.$set = function(p, S) {
|
|
4626
|
+
var f, x = _.p(p), H = "set" + (this.$u ? "UTC" : ""), N = (f = {}, f[u] = H + "Date", f[y] = H + "Date", f[g] = H + "Month", f[C] = H + "FullYear", f[c] = H + "Hours", f[a] = H + "Minutes", f[l] = H + "Seconds", f[s] = H + "Milliseconds", f)[x], V = x === u ? this.$D + (S - this.$W) : S;
|
|
4627
4627
|
if (x === g || x === C) {
|
|
4628
|
-
var
|
|
4629
|
-
|
|
4630
|
-
} else
|
|
4628
|
+
var L = this.clone().set(y, 1);
|
|
4629
|
+
L.$d[N](V), L.init(), this.$d = L.set(y, Math.min(this.$D, L.daysInMonth())).$d;
|
|
4630
|
+
} else N && this.$d[N](V);
|
|
4631
4631
|
return this.init(), this;
|
|
4632
|
-
},
|
|
4633
|
-
return this.clone().$set(
|
|
4634
|
-
},
|
|
4635
|
-
return this[
|
|
4636
|
-
},
|
|
4632
|
+
}, E.set = function(p, S) {
|
|
4633
|
+
return this.clone().$set(p, S);
|
|
4634
|
+
}, E.get = function(p) {
|
|
4635
|
+
return this[_.p(p)]();
|
|
4636
|
+
}, E.add = function(p, S) {
|
|
4637
4637
|
var f, x = this;
|
|
4638
|
-
|
|
4639
|
-
var
|
|
4640
|
-
var
|
|
4641
|
-
return
|
|
4638
|
+
p = Number(p);
|
|
4639
|
+
var H = _.p(S), N = function(K) {
|
|
4640
|
+
var B = Z(x);
|
|
4641
|
+
return _.w(B.date(B.date() + Math.round(K * p)), x);
|
|
4642
4642
|
};
|
|
4643
|
-
if (
|
|
4644
|
-
if (
|
|
4645
|
-
if (
|
|
4646
|
-
if (
|
|
4647
|
-
var
|
|
4648
|
-
return
|
|
4649
|
-
},
|
|
4650
|
-
return this.add(-1 *
|
|
4651
|
-
},
|
|
4643
|
+
if (H === g) return this.set(g, this.$M + p);
|
|
4644
|
+
if (H === C) return this.set(C, this.$y + p);
|
|
4645
|
+
if (H === u) return N(1);
|
|
4646
|
+
if (H === h) return N(7);
|
|
4647
|
+
var V = (f = {}, f[a] = r, f[c] = i, f[l] = n, f)[H] || 1, L = this.$d.getTime() + p * V;
|
|
4648
|
+
return _.w(L, this);
|
|
4649
|
+
}, E.subtract = function(p, S) {
|
|
4650
|
+
return this.add(-1 * p, S);
|
|
4651
|
+
}, E.format = function(p) {
|
|
4652
4652
|
var S = this, f = this.$locale();
|
|
4653
4653
|
if (!this.isValid()) return f.invalidDate || m;
|
|
4654
|
-
var x =
|
|
4655
|
-
return
|
|
4656
|
-
},
|
|
4657
|
-
return
|
|
4658
|
-
},
|
|
4659
|
-
var Me =
|
|
4660
|
-
return
|
|
4654
|
+
var x = p || "YYYY-MM-DDTHH:mm:ssZ", H = _.z(this), N = this.$H, V = this.$m, L = this.$M, K = f.weekdays, B = f.months, b = f.meridiem, F = function(ie, Te, Ee, Me) {
|
|
4655
|
+
return ie && (ie[Te] || ie(S, x)) || Ee[Te].slice(0, Me);
|
|
4656
|
+
}, re = function(ie) {
|
|
4657
|
+
return _.s(N % 12 || 12, ie, "0");
|
|
4658
|
+
}, Q = b || function(ie, Te, Ee) {
|
|
4659
|
+
var Me = ie < 12 ? "AM" : "PM";
|
|
4660
|
+
return Ee ? Me.toLowerCase() : Me;
|
|
4661
4661
|
};
|
|
4662
|
-
return x.replace(
|
|
4663
|
-
return
|
|
4664
|
-
switch (
|
|
4662
|
+
return x.replace(W, function(ie, Te) {
|
|
4663
|
+
return Te || function(Ee) {
|
|
4664
|
+
switch (Ee) {
|
|
4665
4665
|
case "YY":
|
|
4666
4666
|
return String(S.$y).slice(-2);
|
|
4667
4667
|
case "YYYY":
|
|
4668
|
-
return
|
|
4668
|
+
return _.s(S.$y, 4, "0");
|
|
4669
4669
|
case "M":
|
|
4670
|
-
return
|
|
4670
|
+
return L + 1;
|
|
4671
4671
|
case "MM":
|
|
4672
|
-
return
|
|
4672
|
+
return _.s(L + 1, 2, "0");
|
|
4673
4673
|
case "MMM":
|
|
4674
|
-
return
|
|
4674
|
+
return F(f.monthsShort, L, B, 3);
|
|
4675
4675
|
case "MMMM":
|
|
4676
|
-
return
|
|
4676
|
+
return F(B, L);
|
|
4677
4677
|
case "D":
|
|
4678
4678
|
return S.$D;
|
|
4679
4679
|
case "DD":
|
|
4680
|
-
return
|
|
4680
|
+
return _.s(S.$D, 2, "0");
|
|
4681
4681
|
case "d":
|
|
4682
4682
|
return String(S.$W);
|
|
4683
4683
|
case "dd":
|
|
4684
|
-
return
|
|
4684
|
+
return F(f.weekdaysMin, S.$W, K, 2);
|
|
4685
4685
|
case "ddd":
|
|
4686
|
-
return
|
|
4686
|
+
return F(f.weekdaysShort, S.$W, K, 3);
|
|
4687
4687
|
case "dddd":
|
|
4688
|
-
return
|
|
4688
|
+
return K[S.$W];
|
|
4689
4689
|
case "H":
|
|
4690
|
-
return String(
|
|
4690
|
+
return String(N);
|
|
4691
4691
|
case "HH":
|
|
4692
|
-
return
|
|
4692
|
+
return _.s(N, 2, "0");
|
|
4693
4693
|
case "h":
|
|
4694
|
-
return
|
|
4694
|
+
return re(1);
|
|
4695
4695
|
case "hh":
|
|
4696
|
-
return
|
|
4696
|
+
return re(2);
|
|
4697
4697
|
case "a":
|
|
4698
|
-
return
|
|
4698
|
+
return Q(N, V, !0);
|
|
4699
4699
|
case "A":
|
|
4700
|
-
return
|
|
4700
|
+
return Q(N, V, !1);
|
|
4701
4701
|
case "m":
|
|
4702
|
-
return String(
|
|
4702
|
+
return String(V);
|
|
4703
4703
|
case "mm":
|
|
4704
|
-
return
|
|
4704
|
+
return _.s(V, 2, "0");
|
|
4705
4705
|
case "s":
|
|
4706
4706
|
return String(S.$s);
|
|
4707
4707
|
case "ss":
|
|
4708
|
-
return
|
|
4708
|
+
return _.s(S.$s, 2, "0");
|
|
4709
4709
|
case "SSS":
|
|
4710
|
-
return
|
|
4710
|
+
return _.s(S.$ms, 3, "0");
|
|
4711
4711
|
case "Z":
|
|
4712
|
-
return
|
|
4712
|
+
return H;
|
|
4713
4713
|
}
|
|
4714
4714
|
return null;
|
|
4715
|
-
}(
|
|
4715
|
+
}(ie) || H.replace(":", "");
|
|
4716
4716
|
});
|
|
4717
|
-
},
|
|
4717
|
+
}, E.utcOffset = function() {
|
|
4718
4718
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4719
|
-
},
|
|
4720
|
-
var x,
|
|
4721
|
-
return
|
|
4719
|
+
}, E.diff = function(p, S, f) {
|
|
4720
|
+
var x, H = this, N = _.p(S), V = Z(p), L = (V.utcOffset() - this.utcOffset()) * r, K = this - V, B = function() {
|
|
4721
|
+
return _.m(H, V);
|
|
4722
4722
|
};
|
|
4723
|
-
switch (
|
|
4723
|
+
switch (N) {
|
|
4724
4724
|
case C:
|
|
4725
|
-
x =
|
|
4725
|
+
x = B() / 12;
|
|
4726
4726
|
break;
|
|
4727
4727
|
case g:
|
|
4728
|
-
x =
|
|
4728
|
+
x = B();
|
|
4729
4729
|
break;
|
|
4730
4730
|
case T:
|
|
4731
|
-
x =
|
|
4731
|
+
x = B() / 3;
|
|
4732
4732
|
break;
|
|
4733
4733
|
case h:
|
|
4734
|
-
x = (
|
|
4734
|
+
x = (K - L) / 6048e5;
|
|
4735
4735
|
break;
|
|
4736
4736
|
case u:
|
|
4737
|
-
x = (
|
|
4737
|
+
x = (K - L) / 864e5;
|
|
4738
4738
|
break;
|
|
4739
4739
|
case c:
|
|
4740
|
-
x =
|
|
4740
|
+
x = K / i;
|
|
4741
4741
|
break;
|
|
4742
4742
|
case a:
|
|
4743
|
-
x =
|
|
4743
|
+
x = K / r;
|
|
4744
4744
|
break;
|
|
4745
4745
|
case l:
|
|
4746
|
-
x =
|
|
4746
|
+
x = K / n;
|
|
4747
4747
|
break;
|
|
4748
4748
|
default:
|
|
4749
|
-
x =
|
|
4749
|
+
x = K;
|
|
4750
4750
|
}
|
|
4751
|
-
return f ? x :
|
|
4752
|
-
},
|
|
4751
|
+
return f ? x : _.a(x);
|
|
4752
|
+
}, E.daysInMonth = function() {
|
|
4753
4753
|
return this.endOf(g).$D;
|
|
4754
|
-
},
|
|
4755
|
-
return
|
|
4756
|
-
},
|
|
4757
|
-
if (!
|
|
4758
|
-
var f = this.clone(), x =
|
|
4754
|
+
}, E.$locale = function() {
|
|
4755
|
+
return j[this.$L];
|
|
4756
|
+
}, E.locale = function(p, S) {
|
|
4757
|
+
if (!p) return this.$L;
|
|
4758
|
+
var f = this.clone(), x = ee(p, S, !0);
|
|
4759
4759
|
return x && (f.$L = x), f;
|
|
4760
|
-
},
|
|
4761
|
-
return
|
|
4762
|
-
},
|
|
4760
|
+
}, E.clone = function() {
|
|
4761
|
+
return _.w(this.$d, this);
|
|
4762
|
+
}, E.toDate = function() {
|
|
4763
4763
|
return new Date(this.valueOf());
|
|
4764
|
-
},
|
|
4764
|
+
}, E.toJSON = function() {
|
|
4765
4765
|
return this.isValid() ? this.toISOString() : null;
|
|
4766
|
-
},
|
|
4766
|
+
}, E.toISOString = function() {
|
|
4767
4767
|
return this.$d.toISOString();
|
|
4768
|
-
},
|
|
4768
|
+
}, E.toString = function() {
|
|
4769
4769
|
return this.$d.toUTCString();
|
|
4770
4770
|
}, v;
|
|
4771
|
-
}(),
|
|
4772
|
-
return
|
|
4773
|
-
|
|
4774
|
-
return this.$g(
|
|
4771
|
+
}(), de = ae.prototype;
|
|
4772
|
+
return Z.prototype = de, [["$ms", s], ["$s", l], ["$m", a], ["$H", c], ["$W", u], ["$M", g], ["$y", C], ["$D", y]].forEach(function(v) {
|
|
4773
|
+
de[v[1]] = function(E) {
|
|
4774
|
+
return this.$g(E, v[0], v[1]);
|
|
4775
4775
|
};
|
|
4776
|
-
}),
|
|
4777
|
-
return v.$i || (v(
|
|
4778
|
-
},
|
|
4779
|
-
return
|
|
4780
|
-
},
|
|
4776
|
+
}), Z.extend = function(v, E) {
|
|
4777
|
+
return v.$i || (v(E, ae, Z), v.$i = !0), Z;
|
|
4778
|
+
}, Z.locale = ee, Z.isDayjs = q, Z.unix = function(v) {
|
|
4779
|
+
return Z(1e3 * v);
|
|
4780
|
+
}, Z.en = j[I], Z.Ls = j, Z.p = {}, Z;
|
|
4781
4781
|
});
|
|
4782
4782
|
})(Mi);
|
|
4783
4783
|
var Ca = Mi.exports;
|
|
@@ -4812,20 +4812,20 @@ var Hi = { exports: {} };
|
|
|
4812
4812
|
};
|
|
4813
4813
|
var g = c.utcOffset;
|
|
4814
4814
|
c.utcOffset = function(m, M) {
|
|
4815
|
-
var
|
|
4816
|
-
if (
|
|
4817
|
-
if (typeof m == "string" && (m = function(
|
|
4818
|
-
|
|
4819
|
-
var
|
|
4820
|
-
if (!
|
|
4821
|
-
var
|
|
4822
|
-
return
|
|
4815
|
+
var W = this.$utils().u;
|
|
4816
|
+
if (W(m)) return this.$u ? 0 : W(this.$offset) ? g.call(this) : this.$offset;
|
|
4817
|
+
if (typeof m == "string" && (m = function(I) {
|
|
4818
|
+
I === void 0 && (I = "");
|
|
4819
|
+
var j = I.match(r);
|
|
4820
|
+
if (!j) return null;
|
|
4821
|
+
var Y = ("" + j[0]).match(i) || ["-", 0, 0], q = Y[0], ee = 60 * +Y[1] + +Y[2];
|
|
4822
|
+
return ee === 0 ? 0 : q === "+" ? ee : -ee;
|
|
4823
4823
|
}(m), m === null)) return this;
|
|
4824
|
-
var
|
|
4825
|
-
if (M) return A.$offset =
|
|
4824
|
+
var P = Math.abs(m) <= 16 ? 60 * m : m, A = this;
|
|
4825
|
+
if (M) return A.$offset = P, A.$u = m === 0, A;
|
|
4826
4826
|
if (m !== 0) {
|
|
4827
|
-
var
|
|
4828
|
-
(A = this.local().add(
|
|
4827
|
+
var R = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
4828
|
+
(A = this.local().add(P + R, n)).$offset = P, A.$x.$localOffset = R;
|
|
4829
4829
|
} else A = this.utc();
|
|
4830
4830
|
return A;
|
|
4831
4831
|
};
|
|
@@ -4847,11 +4847,11 @@ var Hi = { exports: {} };
|
|
|
4847
4847
|
c.toDate = function(m) {
|
|
4848
4848
|
return m === "s" && this.$offset ? a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : C.call(this);
|
|
4849
4849
|
};
|
|
4850
|
-
var
|
|
4851
|
-
c.diff = function(m, M,
|
|
4852
|
-
if (m && this.$u === m.$u) return
|
|
4853
|
-
var
|
|
4854
|
-
return
|
|
4850
|
+
var y = c.diff;
|
|
4851
|
+
c.diff = function(m, M, W) {
|
|
4852
|
+
if (m && this.$u === m.$u) return y.call(this, m, M, W);
|
|
4853
|
+
var P = this.local(), A = a(m).local();
|
|
4854
|
+
return y.call(P, A, M, W);
|
|
4855
4855
|
};
|
|
4856
4856
|
};
|
|
4857
4857
|
});
|
|
@@ -4866,57 +4866,57 @@ function Ur(e) {
|
|
|
4866
4866
|
let t, n, r, i, s, l = (
|
|
4867
4867
|
/*$_*/
|
|
4868
4868
|
e[8]("sessionExpirationHeader") + ""
|
|
4869
|
-
), a, c, u, h, g, T, C,
|
|
4870
|
-
const
|
|
4869
|
+
), a, c, u, h, g, T, C, y, m, M, W, P, A, R, I;
|
|
4870
|
+
const j = (
|
|
4871
4871
|
/*#slots*/
|
|
4872
4872
|
e[20].icon
|
|
4873
|
-
),
|
|
4874
|
-
|
|
4873
|
+
), Y = Mt(
|
|
4874
|
+
j,
|
|
4875
4875
|
e,
|
|
4876
4876
|
/*$$scope*/
|
|
4877
4877
|
e[19],
|
|
4878
4878
|
Br
|
|
4879
|
-
),
|
|
4879
|
+
), q = Y || Ua(e), ee = (
|
|
4880
4880
|
/*#slots*/
|
|
4881
4881
|
e[20].title
|
|
4882
|
-
),
|
|
4883
|
-
|
|
4882
|
+
), Z = Mt(
|
|
4883
|
+
ee,
|
|
4884
4884
|
e,
|
|
4885
4885
|
/*$$scope*/
|
|
4886
4886
|
e[19],
|
|
4887
4887
|
Dr
|
|
4888
|
-
),
|
|
4888
|
+
), _ = Z || ka(e), ae = (
|
|
4889
4889
|
/*#slots*/
|
|
4890
4890
|
e[20].text
|
|
4891
|
-
),
|
|
4892
|
-
|
|
4891
|
+
), de = Mt(
|
|
4892
|
+
ae,
|
|
4893
4893
|
e,
|
|
4894
4894
|
/*$$scope*/
|
|
4895
4895
|
e[19],
|
|
4896
4896
|
Ir
|
|
4897
|
-
), v =
|
|
4897
|
+
), v = de || Ga(e), E = [za, Fa], p = [];
|
|
4898
4898
|
function S(f, x) {
|
|
4899
4899
|
return (
|
|
4900
4900
|
/*showLoaderButton*/
|
|
4901
4901
|
f[6] ? 0 : 1
|
|
4902
4902
|
);
|
|
4903
4903
|
}
|
|
4904
|
-
return m = S(e), M =
|
|
4904
|
+
return m = S(e), M = p[m] = E[m](e), {
|
|
4905
4905
|
c() {
|
|
4906
|
-
t =
|
|
4907
|
-
e[6], G(
|
|
4906
|
+
t = te("div"), n = te("div"), r = te("div"), i = te("div"), s = te("div"), a = Ke(l), c = ht(), u = te("div"), h = te("div"), q && q.c(), g = ht(), _ && _.c(), T = ht(), v && v.c(), C = ht(), y = te("button"), M.c(), G(s, "class", "CashierSessionExpirationModalHeaderTitle"), G(i, "class", "CashierSessionExpirationModalHeader"), G(y, "type", "button"), y.disabled = /*showLoaderButton*/
|
|
4907
|
+
e[6], G(y, "class", "CashierSessionExpirationButton"), G(h, "class", "CashierSessionExpiration"), G(u, "class", "CashierSessionExpirationModalContainer"), G(u, "part", "CashierSessionExpirationModalContainer"), G(r, "class", "CashierSessionExpirationModalWrapper"), G(r, "part", "CashierSessionExpirationModalWrapper"), G(n, "class", "CashierSessionExpirationModalWindow"), G(n, "part", "CashierSessionExpirationModalWindow"), G(n, "id", "CashierSessionExpirationModal"), Xe(() => (
|
|
4908
4908
|
/*div5_elementresize_handler*/
|
|
4909
4909
|
e[22].call(n)
|
|
4910
4910
|
)), G(t, "part", "CustomStylingContainer");
|
|
4911
4911
|
},
|
|
4912
4912
|
m(f, x) {
|
|
4913
|
-
|
|
4913
|
+
Ae(f, t, x), $(t, n), $(n, r), $(r, i), $(i, s), $(s, a), $(r, c), $(r, u), $(u, h), q && q.m(h, null), $(h, g), _ && _.m(h, null), $(h, T), v && v.m(h, null), $(h, C), $(h, y), p[m].m(y, null), e[21](h), W = Ji(
|
|
4914
4914
|
n,
|
|
4915
4915
|
/*div5_elementresize_handler*/
|
|
4916
4916
|
e[22].bind(n)
|
|
4917
|
-
), e[23](t), A = !0,
|
|
4917
|
+
), e[23](t), A = !0, R || (I = [
|
|
4918
4918
|
Ut(
|
|
4919
|
-
|
|
4919
|
+
y,
|
|
4920
4920
|
"click",
|
|
4921
4921
|
/*renewSession*/
|
|
4922
4922
|
e[9]
|
|
@@ -4927,20 +4927,20 @@ function Ur(e) {
|
|
|
4927
4927
|
/*outOfModalClick*/
|
|
4928
4928
|
e[10]
|
|
4929
4929
|
)
|
|
4930
|
-
],
|
|
4930
|
+
], R = !0);
|
|
4931
4931
|
},
|
|
4932
4932
|
p(f, x) {
|
|
4933
4933
|
e = f, (!A || x[0] & /*$_*/
|
|
4934
4934
|
256) && l !== (l = /*$_*/
|
|
4935
|
-
e[8]("sessionExpirationHeader") + "") && Vt(a, l),
|
|
4935
|
+
e[8]("sessionExpirationHeader") + "") && Vt(a, l), Y ? Y.p && (!A || x[0] & /*$$scope*/
|
|
4936
4936
|
524288) && Nt(
|
|
4937
|
-
|
|
4938
|
-
|
|
4937
|
+
Y,
|
|
4938
|
+
j,
|
|
4939
4939
|
e,
|
|
4940
4940
|
/*$$scope*/
|
|
4941
4941
|
e[19],
|
|
4942
4942
|
A ? Ht(
|
|
4943
|
-
|
|
4943
|
+
j,
|
|
4944
4944
|
/*$$scope*/
|
|
4945
4945
|
e[19],
|
|
4946
4946
|
x,
|
|
@@ -4950,16 +4950,16 @@ function Ur(e) {
|
|
|
4950
4950
|
e[19]
|
|
4951
4951
|
),
|
|
4952
4952
|
Br
|
|
4953
|
-
) :
|
|
4954
|
-
8) &&
|
|
4953
|
+
) : q && q.p && (!A || x[0] & /*assetsurl*/
|
|
4954
|
+
8) && q.p(e, A ? x : [-1, -1]), Z ? Z.p && (!A || x[0] & /*$$scope*/
|
|
4955
4955
|
524288) && Nt(
|
|
4956
|
-
|
|
4957
|
-
|
|
4956
|
+
Z,
|
|
4957
|
+
ee,
|
|
4958
4958
|
e,
|
|
4959
4959
|
/*$$scope*/
|
|
4960
4960
|
e[19],
|
|
4961
4961
|
A ? Ht(
|
|
4962
|
-
|
|
4962
|
+
ee,
|
|
4963
4963
|
/*$$scope*/
|
|
4964
4964
|
e[19],
|
|
4965
4965
|
x,
|
|
@@ -4969,16 +4969,16 @@ function Ur(e) {
|
|
|
4969
4969
|
e[19]
|
|
4970
4970
|
),
|
|
4971
4971
|
Dr
|
|
4972
|
-
) :
|
|
4973
|
-
256) &&
|
|
4972
|
+
) : _ && _.p && (!A || x[0] & /*$_*/
|
|
4973
|
+
256) && _.p(e, A ? x : [-1, -1]), de ? de.p && (!A || x[0] & /*$$scope*/
|
|
4974
4974
|
524288) && Nt(
|
|
4975
|
-
|
|
4976
|
-
|
|
4975
|
+
de,
|
|
4976
|
+
ae,
|
|
4977
4977
|
e,
|
|
4978
4978
|
/*$$scope*/
|
|
4979
4979
|
e[19],
|
|
4980
4980
|
A ? Ht(
|
|
4981
|
-
|
|
4981
|
+
ae,
|
|
4982
4982
|
/*$$scope*/
|
|
4983
4983
|
e[19],
|
|
4984
4984
|
x,
|
|
@@ -4990,29 +4990,29 @@ function Ur(e) {
|
|
|
4990
4990
|
Ir
|
|
4991
4991
|
) : v && v.p && (!A || x[0] & /*$_, timeLeft*/
|
|
4992
4992
|
384) && v.p(e, A ? x : [-1, -1]);
|
|
4993
|
-
let
|
|
4994
|
-
m = S(e), m ===
|
|
4995
|
-
|
|
4996
|
-
}), qr(), M =
|
|
4997
|
-
64) && (
|
|
4993
|
+
let H = m;
|
|
4994
|
+
m = S(e), m === H ? p[m].p(e, x) : (Yr(), He(p[H], 1, 1, () => {
|
|
4995
|
+
p[H] = null;
|
|
4996
|
+
}), qr(), M = p[m], M ? M.p(e, x) : (M = p[m] = E[m](e), M.c()), we(M, 1), M.m(y, null)), (!A || x[0] & /*showLoaderButton*/
|
|
4997
|
+
64) && (y.disabled = /*showLoaderButton*/
|
|
4998
4998
|
e[6]);
|
|
4999
4999
|
},
|
|
5000
5000
|
i(f) {
|
|
5001
|
-
A || (
|
|
5002
|
-
A && (
|
|
5001
|
+
A || (we(q, f), we(_, f), we(v, f), we(M), f && Xe(() => {
|
|
5002
|
+
A && (P || (P = or(n, ar, { duration: (
|
|
5003
5003
|
/*duration*/
|
|
5004
5004
|
e[2]
|
|
5005
|
-
) }, !0)),
|
|
5005
|
+
) }, !0)), P.run(1));
|
|
5006
5006
|
}), A = !0);
|
|
5007
5007
|
},
|
|
5008
5008
|
o(f) {
|
|
5009
|
-
He(
|
|
5009
|
+
He(q, f), He(_, f), He(v, f), He(M), f && (P || (P = or(n, ar, { duration: (
|
|
5010
5010
|
/*duration*/
|
|
5011
5011
|
e[2]
|
|
5012
|
-
) }, !1)),
|
|
5012
|
+
) }, !1)), P.run(0)), A = !1;
|
|
5013
5013
|
},
|
|
5014
5014
|
d(f) {
|
|
5015
|
-
f &&
|
|
5015
|
+
f && be(t), q && q.d(f), _ && _.d(f), v && v.d(f), p[m].d(), e[21](null), W(), f && P && P.end(), e[23](null), R = !1, Pe(I);
|
|
5016
5016
|
}
|
|
5017
5017
|
};
|
|
5018
5018
|
}
|
|
@@ -5020,14 +5020,14 @@ function Da(e) {
|
|
|
5020
5020
|
let t, n;
|
|
5021
5021
|
return {
|
|
5022
5022
|
c() {
|
|
5023
|
-
t =
|
|
5023
|
+
t = te("img"), En(t.src, n = Oa) || G(t, "src", n), G(t, "width", "300px"), G(t, "alt", "error");
|
|
5024
5024
|
},
|
|
5025
5025
|
m(r, i) {
|
|
5026
|
-
|
|
5026
|
+
Ae(r, t, i);
|
|
5027
5027
|
},
|
|
5028
|
-
p:
|
|
5028
|
+
p: pe,
|
|
5029
5029
|
d(r) {
|
|
5030
|
-
r &&
|
|
5030
|
+
r && be(t);
|
|
5031
5031
|
}
|
|
5032
5032
|
};
|
|
5033
5033
|
}
|
|
@@ -5035,11 +5035,11 @@ function Ba(e) {
|
|
|
5035
5035
|
let t, n;
|
|
5036
5036
|
return {
|
|
5037
5037
|
c() {
|
|
5038
|
-
t =
|
|
5038
|
+
t = te("img"), En(t.src, n = `${/*assetsurl*/
|
|
5039
5039
|
e[3]}/set-timeout-icon.png`) || G(t, "src", n), G(t, "width", "300px"), G(t, "alt", "error");
|
|
5040
5040
|
},
|
|
5041
5041
|
m(r, i) {
|
|
5042
|
-
|
|
5042
|
+
Ae(r, t, i);
|
|
5043
5043
|
},
|
|
5044
5044
|
p(r, i) {
|
|
5045
5045
|
i[0] & /*assetsurl*/
|
|
@@ -5047,7 +5047,7 @@ function Ba(e) {
|
|
|
5047
5047
|
r[3]}/set-timeout-icon.png`) && G(t, "src", n);
|
|
5048
5048
|
},
|
|
5049
5049
|
d(r) {
|
|
5050
|
-
r &&
|
|
5050
|
+
r && be(t);
|
|
5051
5051
|
}
|
|
5052
5052
|
};
|
|
5053
5053
|
}
|
|
@@ -5065,13 +5065,13 @@ function Ua(e) {
|
|
|
5065
5065
|
i.c(), t = Xr();
|
|
5066
5066
|
},
|
|
5067
5067
|
m(s, l) {
|
|
5068
|
-
i.m(s, l),
|
|
5068
|
+
i.m(s, l), Ae(s, t, l);
|
|
5069
5069
|
},
|
|
5070
5070
|
p(s, l) {
|
|
5071
5071
|
r === (r = n(s)) && i ? i.p(s, l) : (i.d(1), i = r(s), i && (i.c(), i.m(t.parentNode, t)));
|
|
5072
5072
|
},
|
|
5073
5073
|
d(s) {
|
|
5074
|
-
s &&
|
|
5074
|
+
s && be(t), i.d(s);
|
|
5075
5075
|
}
|
|
5076
5076
|
};
|
|
5077
5077
|
}
|
|
@@ -5082,10 +5082,10 @@ function ka(e) {
|
|
|
5082
5082
|
), r;
|
|
5083
5083
|
return {
|
|
5084
5084
|
c() {
|
|
5085
|
-
t =
|
|
5085
|
+
t = te("span"), r = Ke(n), G(t, "class", "CashierSessionExpirationTitle");
|
|
5086
5086
|
},
|
|
5087
5087
|
m(i, s) {
|
|
5088
|
-
|
|
5088
|
+
Ae(i, t, s), $(t, r);
|
|
5089
5089
|
},
|
|
5090
5090
|
p(i, s) {
|
|
5091
5091
|
s[0] & /*$_*/
|
|
@@ -5093,7 +5093,7 @@ function ka(e) {
|
|
|
5093
5093
|
i[8]("sessionExpirationTitle") + "") && Vt(r, n);
|
|
5094
5094
|
},
|
|
5095
5095
|
d(i) {
|
|
5096
|
-
i &&
|
|
5096
|
+
i && be(t);
|
|
5097
5097
|
}
|
|
5098
5098
|
};
|
|
5099
5099
|
}
|
|
@@ -5107,10 +5107,10 @@ function Ga(e) {
|
|
|
5107
5107
|
) + "";
|
|
5108
5108
|
return {
|
|
5109
5109
|
c() {
|
|
5110
|
-
t =
|
|
5110
|
+
t = te("span"), G(t, "class", "CashierSessionExpirationText");
|
|
5111
5111
|
},
|
|
5112
5112
|
m(r, i) {
|
|
5113
|
-
|
|
5113
|
+
Ae(r, t, i), t.innerHTML = n;
|
|
5114
5114
|
},
|
|
5115
5115
|
p(r, i) {
|
|
5116
5116
|
i[0] & /*$_, timeLeft*/
|
|
@@ -5123,7 +5123,7 @@ function Ga(e) {
|
|
|
5123
5123
|
) + "") && (t.innerHTML = n);
|
|
5124
5124
|
},
|
|
5125
5125
|
d(r) {
|
|
5126
|
-
r &&
|
|
5126
|
+
r && be(t);
|
|
5127
5127
|
}
|
|
5128
5128
|
};
|
|
5129
5129
|
}
|
|
@@ -5169,7 +5169,7 @@ function Fa(e) {
|
|
|
5169
5169
|
256) && i.p(s, t ? l : [-1, -1]);
|
|
5170
5170
|
},
|
|
5171
5171
|
i(s) {
|
|
5172
|
-
t || (
|
|
5172
|
+
t || (we(i, s), t = !0);
|
|
5173
5173
|
},
|
|
5174
5174
|
o(s) {
|
|
5175
5175
|
He(i, s), t = !1;
|
|
@@ -5186,20 +5186,20 @@ function za(e) {
|
|
|
5186
5186
|
), a;
|
|
5187
5187
|
return {
|
|
5188
5188
|
c() {
|
|
5189
|
-
t =
|
|
5189
|
+
t = te("div"), n = rr("svg"), r = rr("path"), i = ht(), s = te("span"), a = Ke(l), G(r, "d", "M14.0282 6.58425C13.9037 4.05374 12.3688 1.68916 10.0872 0.61058C7.59818 -0.509483 4.56986 -0.0531603 2.49567 1.68916C0.504443 3.34851 -0.408201 6.04496 0.172573 8.57547C0.711862 11.0645 2.6616 13.0972 5.10915 13.7609C8.0545 14.5906 10.7509 13.1802 12.4103 10.7741C10.9169 12.7653 8.63527 14.0928 6.10476 13.6365C3.57424 13.1802 1.50005 11.2719 0.919281 8.78289C0.297024 6.12793 1.54154 3.34851 3.90612 1.97955C6.35366 0.569097 9.79682 1.10839 11.4147 3.51445C11.8295 4.09522 12.1199 4.80045 12.2444 5.50567C12.3688 6.08644 12.3273 6.7087 12.4103 7.28947C12.4933 7.82876 12.9496 8.53399 13.5718 8.16063C14.1111 7.82876 14.0696 7.12354 14.0282 6.58425C14.0696 6.87464 14.0282 6.41831 14.0282 6.58425Z"), G(r, "fill", "white"), G(n, "class", "CashierSessionExpirationButtonSpinner"), G(n, "xmlns", "http://www.w3.org/2000/svg"), G(n, "width", "15"), G(n, "height", "14"), G(n, "viewBox", "0 0 15 14"), G(n, "fill", "none"), G(s, "class", "CashierSessionExpirationButtonText");
|
|
5190
5190
|
},
|
|
5191
5191
|
m(c, u) {
|
|
5192
|
-
|
|
5192
|
+
Ae(c, t, u), $(t, n), $(n, r), $(t, i), $(t, s), $(s, a);
|
|
5193
5193
|
},
|
|
5194
5194
|
p(c, u) {
|
|
5195
5195
|
u[0] & /*$_*/
|
|
5196
5196
|
256 && l !== (l = /*$_*/
|
|
5197
5197
|
c[8]("sessionExpirationLoadingButton") + "") && Vt(a, l);
|
|
5198
5198
|
},
|
|
5199
|
-
i:
|
|
5200
|
-
o:
|
|
5199
|
+
i: pe,
|
|
5200
|
+
o: pe,
|
|
5201
5201
|
d(c) {
|
|
5202
|
-
c &&
|
|
5202
|
+
c && be(t);
|
|
5203
5203
|
}
|
|
5204
5204
|
};
|
|
5205
5205
|
}
|
|
@@ -5210,10 +5210,10 @@ function ja(e) {
|
|
|
5210
5210
|
), r;
|
|
5211
5211
|
return {
|
|
5212
5212
|
c() {
|
|
5213
|
-
t =
|
|
5213
|
+
t = te("span"), r = Ke(n), G(t, "class", "CashierSessionExpirationButtonText");
|
|
5214
5214
|
},
|
|
5215
5215
|
m(i, s) {
|
|
5216
|
-
|
|
5216
|
+
Ae(i, t, s), $(t, r);
|
|
5217
5217
|
},
|
|
5218
5218
|
p(i, s) {
|
|
5219
5219
|
s[0] & /*$_*/
|
|
@@ -5221,7 +5221,7 @@ function ja(e) {
|
|
|
5221
5221
|
i[8]("sessionExpirationGeneralButton") + "") && Vt(r, n);
|
|
5222
5222
|
},
|
|
5223
5223
|
d(i) {
|
|
5224
|
-
i &&
|
|
5224
|
+
i && be(t);
|
|
5225
5225
|
}
|
|
5226
5226
|
};
|
|
5227
5227
|
}
|
|
@@ -5235,23 +5235,23 @@ function Wa(e) {
|
|
|
5235
5235
|
r && r.c(), t = Xr();
|
|
5236
5236
|
},
|
|
5237
5237
|
m(i, s) {
|
|
5238
|
-
r && r.m(i, s),
|
|
5238
|
+
r && r.m(i, s), Ae(i, t, s), n = !0;
|
|
5239
5239
|
},
|
|
5240
5240
|
p(i, s) {
|
|
5241
5241
|
/*show*/
|
|
5242
5242
|
i[5] ? r ? (r.p(i, s), s[0] & /*show*/
|
|
5243
|
-
32 &&
|
|
5243
|
+
32 && we(r, 1)) : (r = Ur(i), r.c(), we(r, 1), r.m(t.parentNode, t)) : r && (Yr(), He(r, 1, 1, () => {
|
|
5244
5244
|
r = null;
|
|
5245
5245
|
}), qr());
|
|
5246
5246
|
},
|
|
5247
5247
|
i(i) {
|
|
5248
|
-
n || (
|
|
5248
|
+
n || (we(r), n = !0);
|
|
5249
5249
|
},
|
|
5250
5250
|
o(i) {
|
|
5251
5251
|
He(r), n = !1;
|
|
5252
5252
|
},
|
|
5253
5253
|
d(i) {
|
|
5254
|
-
i &&
|
|
5254
|
+
i && be(t), r && r.d(i);
|
|
5255
5255
|
}
|
|
5256
5256
|
};
|
|
5257
5257
|
}
|
|
@@ -5261,124 +5261,156 @@ function Va(e, t, n) {
|
|
|
5261
5261
|
Fi(e, oa, (b) => n(8, r = b));
|
|
5262
5262
|
let { $$slots: i = {}, $$scope: s } = t;
|
|
5263
5263
|
Rr.extend(Ha);
|
|
5264
|
-
let { clientstyling: l = "" } = t, { clientstylingurl: a = "" } = t, { width: c } = t, { height: u } = t, { duration: h = 200 } = t, { assetsurl: g = "" } = t, { lang: T = "en" } = t, { translationurl: C = "" } = t, { endpoint:
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5264
|
+
let { clientstyling: l = "" } = t, { clientstylingurl: a = "" } = t, { width: c } = t, { height: u } = t, { duration: h = 200 } = t, { assetsurl: g = "" } = t, { lang: T = "en" } = t, { translationurl: C = "" } = t, { endpoint: y } = t, { currency: m } = t, { customerid: M } = t, { selectedpaymentmethodname: W } = t, P, A = !1, R = !1, I, j, Y, q, ee, Z;
|
|
5265
|
+
var _;
|
|
5266
|
+
(function(b) {
|
|
5267
|
+
b.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", b.Success = "Success", b.JwtTokenError = "JwtTokenError";
|
|
5268
|
+
})(_ || (_ = {}));
|
|
5269
|
+
const ae = (b) => {
|
|
5270
|
+
b.data.type === "StartSessionCountdown" && (ee = b.data.xPaymentSessionToken, q = b.data.paymentMethodName, E());
|
|
5271
|
+
}, de = (b) => {
|
|
5268
5272
|
try {
|
|
5269
5273
|
return JSON.parse(atob(b.split(".")[1]));
|
|
5270
5274
|
} catch {
|
|
5271
5275
|
return null;
|
|
5272
5276
|
}
|
|
5273
|
-
},
|
|
5277
|
+
}, v = () => {
|
|
5278
|
+
window.postMessage(
|
|
5279
|
+
{
|
|
5280
|
+
type: "ErrorResponseCode",
|
|
5281
|
+
errorResponseCode: Z
|
|
5282
|
+
},
|
|
5283
|
+
window.location.href
|
|
5284
|
+
);
|
|
5285
|
+
}, E = () => {
|
|
5274
5286
|
n(5, A = !1);
|
|
5275
|
-
const b =
|
|
5276
|
-
b && (
|
|
5287
|
+
const b = de(ee);
|
|
5288
|
+
b && (j = b?.exp, n(7, I = j), Y && clearInterval(Y), Y = setInterval(
|
|
5277
5289
|
() => {
|
|
5278
|
-
const
|
|
5279
|
-
n(7,
|
|
5290
|
+
const F = Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3);
|
|
5291
|
+
n(7, I = j - F), I <= Za && n(5, A = !0), F >= j && (p(), window.postMessage({ type: "SessionExpired" }, window.location.href));
|
|
5280
5292
|
},
|
|
5281
5293
|
1e3
|
|
5282
5294
|
));
|
|
5283
|
-
},
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
const
|
|
5295
|
+
}, p = () => {
|
|
5296
|
+
n(7, I = 0), n(5, A = !1), clearInterval(Y);
|
|
5297
|
+
}, S = () => {
|
|
5298
|
+
if (R) return;
|
|
5299
|
+
const b = new URL(`${y}/v1/player/${M}/payment/GetPaymentMethod`), F = new Headers();
|
|
5300
|
+
n(6, R = !0), F.append("accept", "application/json"), F.append("Content-Type", "application/json"), F.append("X-Client-Request-Timestamp", Rr.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
5301
|
+
const re = {
|
|
5288
5302
|
method: "POST",
|
|
5289
5303
|
mode: "cors",
|
|
5290
|
-
headers:
|
|
5304
|
+
headers: F,
|
|
5291
5305
|
body: JSON.stringify({
|
|
5292
|
-
PaymentMethodName:
|
|
5306
|
+
PaymentMethodName: q || W,
|
|
5293
5307
|
Currency: m,
|
|
5294
|
-
XPaymentSessionToken:
|
|
5308
|
+
XPaymentSessionToken: ee
|
|
5295
5309
|
})
|
|
5296
5310
|
};
|
|
5297
|
-
fetch(b,
|
|
5298
|
-
Q
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5311
|
+
fetch(b, re).then((Q) => Q.json()).then((Q) => {
|
|
5312
|
+
if (Q.error) {
|
|
5313
|
+
window.postMessage(
|
|
5314
|
+
{
|
|
5315
|
+
type: "ShowSessionError",
|
|
5316
|
+
error: Q.error
|
|
5317
|
+
},
|
|
5318
|
+
window.location.href
|
|
5319
|
+
), p();
|
|
5320
|
+
return;
|
|
5321
|
+
}
|
|
5322
|
+
if (Q.ResponseCode === _.PlayerSessionIsNotValid || Q.ResponseCode === _.JwtTokenError) {
|
|
5323
|
+
Z = Q.ResponseCode, p(), v();
|
|
5324
|
+
return;
|
|
5325
|
+
}
|
|
5326
|
+
if (Q.ResponseCode !== _.Success) {
|
|
5327
|
+
Z = Q.ResponseCode, p();
|
|
5328
|
+
return;
|
|
5329
|
+
}
|
|
5330
|
+
ee = Q.XPaymentSessionToken, E();
|
|
5331
|
+
}).finally(() => n(6, R = !1));
|
|
5332
|
+
}, f = (b) => {
|
|
5333
|
+
const F = b.currentTarget;
|
|
5334
|
+
b.target === F && S();
|
|
5335
|
+
}, x = () => {
|
|
5336
|
+
fetch(C).then((F) => F.json()).then((F) => {
|
|
5337
|
+
Object.keys(F).forEach((re) => {
|
|
5338
|
+
vr(re, F[re]);
|
|
5307
5339
|
});
|
|
5308
|
-
}).catch((
|
|
5309
|
-
console.log(
|
|
5340
|
+
}).catch((F) => {
|
|
5341
|
+
console.log(F);
|
|
5310
5342
|
});
|
|
5311
5343
|
};
|
|
5312
5344
|
Object.keys(Sr).forEach((b) => {
|
|
5313
5345
|
vr(b, Sr[b]);
|
|
5314
5346
|
});
|
|
5315
|
-
const
|
|
5347
|
+
const H = () => {
|
|
5316
5348
|
aa(T);
|
|
5317
|
-
},
|
|
5349
|
+
}, N = () => {
|
|
5318
5350
|
let b = document.createElement("style");
|
|
5319
|
-
b.innerHTML = l,
|
|
5320
|
-
},
|
|
5321
|
-
let b = new URL(a),
|
|
5322
|
-
fetch(b.href).then((
|
|
5323
|
-
|
|
5351
|
+
b.innerHTML = l, P.appendChild(b);
|
|
5352
|
+
}, V = () => {
|
|
5353
|
+
let b = new URL(a), F = document.createElement("style");
|
|
5354
|
+
fetch(b.href).then((re) => re.text()).then((re) => {
|
|
5355
|
+
F.innerHTML = re, setTimeout(
|
|
5324
5356
|
() => {
|
|
5325
|
-
|
|
5357
|
+
P.appendChild(F);
|
|
5326
5358
|
},
|
|
5327
5359
|
1
|
|
5328
5360
|
);
|
|
5329
5361
|
});
|
|
5330
5362
|
};
|
|
5331
|
-
ts(() => (window.addEventListener("message",
|
|
5332
|
-
window.removeEventListener("message",
|
|
5363
|
+
ts(() => (window.addEventListener("message", ae, !1), () => {
|
|
5364
|
+
window.removeEventListener("message", ae);
|
|
5333
5365
|
})), ns(() => {
|
|
5334
|
-
clearInterval(
|
|
5366
|
+
clearInterval(Y);
|
|
5335
5367
|
});
|
|
5336
|
-
function
|
|
5368
|
+
function L(b) {
|
|
5337
5369
|
Ft[b ? "unshift" : "push"](() => {
|
|
5338
|
-
|
|
5370
|
+
P = b, n(4, P);
|
|
5339
5371
|
});
|
|
5340
5372
|
}
|
|
5341
|
-
function
|
|
5373
|
+
function K() {
|
|
5342
5374
|
c = this.clientWidth, u = this.clientHeight, n(0, c), n(1, u);
|
|
5343
5375
|
}
|
|
5344
|
-
function
|
|
5376
|
+
function B(b) {
|
|
5345
5377
|
Ft[b ? "unshift" : "push"](() => {
|
|
5346
|
-
|
|
5378
|
+
P = b, n(4, P);
|
|
5347
5379
|
});
|
|
5348
5380
|
}
|
|
5349
5381
|
return e.$$set = (b) => {
|
|
5350
|
-
"clientstyling" in b && n(11, l = b.clientstyling), "clientstylingurl" in b && n(12, a = b.clientstylingurl), "width" in b && n(0, c = b.width), "height" in b && n(1, u = b.height), "duration" in b && n(2, h = b.duration), "assetsurl" in b && n(3, g = b.assetsurl), "lang" in b && n(13, T = b.lang), "translationurl" in b && n(14, C = b.translationurl), "endpoint" in b && n(15,
|
|
5382
|
+
"clientstyling" in b && n(11, l = b.clientstyling), "clientstylingurl" in b && n(12, a = b.clientstylingurl), "width" in b && n(0, c = b.width), "height" in b && n(1, u = b.height), "duration" in b && n(2, h = b.duration), "assetsurl" in b && n(3, g = b.assetsurl), "lang" in b && n(13, T = b.lang), "translationurl" in b && n(14, C = b.translationurl), "endpoint" in b && n(15, y = b.endpoint), "currency" in b && n(16, m = b.currency), "customerid" in b && n(17, M = b.customerid), "selectedpaymentmethodname" in b && n(18, W = b.selectedpaymentmethodname), "$$scope" in b && n(19, s = b.$$scope);
|
|
5351
5383
|
}, e.$$.update = () => {
|
|
5352
5384
|
e.$$.dirty[0] & /*lang*/
|
|
5353
|
-
8192 && T &&
|
|
5354
|
-
2064 && l &&
|
|
5355
|
-
4112 && a &&
|
|
5356
|
-
16384 && C &&
|
|
5385
|
+
8192 && T && H(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5386
|
+
2064 && l && P && N(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5387
|
+
4112 && a && P && V(), e.$$.dirty[0] & /*translationurl*/
|
|
5388
|
+
16384 && C && x();
|
|
5357
5389
|
}, [
|
|
5358
5390
|
c,
|
|
5359
5391
|
u,
|
|
5360
5392
|
h,
|
|
5361
5393
|
g,
|
|
5362
|
-
|
|
5394
|
+
P,
|
|
5363
5395
|
A,
|
|
5364
|
-
|
|
5365
|
-
|
|
5396
|
+
R,
|
|
5397
|
+
I,
|
|
5366
5398
|
r,
|
|
5367
|
-
|
|
5368
|
-
|
|
5399
|
+
S,
|
|
5400
|
+
f,
|
|
5369
5401
|
l,
|
|
5370
5402
|
a,
|
|
5371
5403
|
T,
|
|
5372
5404
|
C,
|
|
5373
|
-
|
|
5405
|
+
y,
|
|
5374
5406
|
m,
|
|
5375
5407
|
M,
|
|
5376
|
-
|
|
5408
|
+
W,
|
|
5377
5409
|
s,
|
|
5378
5410
|
i,
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5411
|
+
L,
|
|
5412
|
+
K,
|
|
5413
|
+
B
|
|
5382
5414
|
];
|
|
5383
5415
|
}
|
|
5384
5416
|
class Xa extends ps {
|
|
@@ -5411,73 +5443,73 @@ class Xa extends ps {
|
|
|
5411
5443
|
return this.$$.ctx[11];
|
|
5412
5444
|
}
|
|
5413
5445
|
set clientstyling(t) {
|
|
5414
|
-
this.$$set({ clientstyling: t }),
|
|
5446
|
+
this.$$set({ clientstyling: t }), me();
|
|
5415
5447
|
}
|
|
5416
5448
|
get clientstylingurl() {
|
|
5417
5449
|
return this.$$.ctx[12];
|
|
5418
5450
|
}
|
|
5419
5451
|
set clientstylingurl(t) {
|
|
5420
|
-
this.$$set({ clientstylingurl: t }),
|
|
5452
|
+
this.$$set({ clientstylingurl: t }), me();
|
|
5421
5453
|
}
|
|
5422
5454
|
get width() {
|
|
5423
5455
|
return this.$$.ctx[0];
|
|
5424
5456
|
}
|
|
5425
5457
|
set width(t) {
|
|
5426
|
-
this.$$set({ width: t }),
|
|
5458
|
+
this.$$set({ width: t }), me();
|
|
5427
5459
|
}
|
|
5428
5460
|
get height() {
|
|
5429
5461
|
return this.$$.ctx[1];
|
|
5430
5462
|
}
|
|
5431
5463
|
set height(t) {
|
|
5432
|
-
this.$$set({ height: t }),
|
|
5464
|
+
this.$$set({ height: t }), me();
|
|
5433
5465
|
}
|
|
5434
5466
|
get duration() {
|
|
5435
5467
|
return this.$$.ctx[2];
|
|
5436
5468
|
}
|
|
5437
5469
|
set duration(t) {
|
|
5438
|
-
this.$$set({ duration: t }),
|
|
5470
|
+
this.$$set({ duration: t }), me();
|
|
5439
5471
|
}
|
|
5440
5472
|
get assetsurl() {
|
|
5441
5473
|
return this.$$.ctx[3];
|
|
5442
5474
|
}
|
|
5443
5475
|
set assetsurl(t) {
|
|
5444
|
-
this.$$set({ assetsurl: t }),
|
|
5476
|
+
this.$$set({ assetsurl: t }), me();
|
|
5445
5477
|
}
|
|
5446
5478
|
get lang() {
|
|
5447
5479
|
return this.$$.ctx[13];
|
|
5448
5480
|
}
|
|
5449
5481
|
set lang(t) {
|
|
5450
|
-
this.$$set({ lang: t }),
|
|
5482
|
+
this.$$set({ lang: t }), me();
|
|
5451
5483
|
}
|
|
5452
5484
|
get translationurl() {
|
|
5453
5485
|
return this.$$.ctx[14];
|
|
5454
5486
|
}
|
|
5455
5487
|
set translationurl(t) {
|
|
5456
|
-
this.$$set({ translationurl: t }),
|
|
5488
|
+
this.$$set({ translationurl: t }), me();
|
|
5457
5489
|
}
|
|
5458
5490
|
get endpoint() {
|
|
5459
5491
|
return this.$$.ctx[15];
|
|
5460
5492
|
}
|
|
5461
5493
|
set endpoint(t) {
|
|
5462
|
-
this.$$set({ endpoint: t }),
|
|
5494
|
+
this.$$set({ endpoint: t }), me();
|
|
5463
5495
|
}
|
|
5464
5496
|
get currency() {
|
|
5465
5497
|
return this.$$.ctx[16];
|
|
5466
5498
|
}
|
|
5467
5499
|
set currency(t) {
|
|
5468
|
-
this.$$set({ currency: t }),
|
|
5500
|
+
this.$$set({ currency: t }), me();
|
|
5469
5501
|
}
|
|
5470
5502
|
get customerid() {
|
|
5471
5503
|
return this.$$.ctx[17];
|
|
5472
5504
|
}
|
|
5473
5505
|
set customerid(t) {
|
|
5474
|
-
this.$$set({ customerid: t }),
|
|
5506
|
+
this.$$set({ customerid: t }), me();
|
|
5475
5507
|
}
|
|
5476
5508
|
get selectedpaymentmethodname() {
|
|
5477
5509
|
return this.$$.ctx[18];
|
|
5478
5510
|
}
|
|
5479
5511
|
set selectedpaymentmethodname(t) {
|
|
5480
|
-
this.$$set({ selectedpaymentmethodname: t }),
|
|
5512
|
+
this.$$set({ selectedpaymentmethodname: t }), me();
|
|
5481
5513
|
}
|
|
5482
5514
|
}
|
|
5483
5515
|
ms(Xa, { clientstyling: {}, clientstylingurl: {}, width: {}, height: {}, duration: {}, assetsurl: {}, lang: {}, translationurl: {}, endpoint: {}, currency: {}, customerid: {}, selectedpaymentmethodname: {} }, ["icon", "title", "text", "button"], [], !0);
|