@everymatrix/cashier-session-expiration-modal 1.86.1 → 1.86.3
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-CK3ySuQl.js → CashierSessionExpirationModal-DDVIqM4F.js} +1013 -1008
- package/components/CashierSessionExpirationModal-D_XYcHGT.cjs +22 -0
- package/components/{CashierSessionExpirationModal-Cc1S2bE-.js → CashierSessionExpirationModal-KbvrKm7-.js} +1011 -1006
- 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-Vubylti9.cjs +0 -9
|
@@ -15,18 +15,18 @@ function Wr(e) {
|
|
|
15
15
|
function ir() {
|
|
16
16
|
return /* @__PURE__ */ Object.create(null);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Be(e) {
|
|
19
19
|
e.forEach(Wr);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function qt(e) {
|
|
22
22
|
return typeof e == "function";
|
|
23
23
|
}
|
|
24
24
|
function Vr(e, t) {
|
|
25
25
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
26
26
|
}
|
|
27
|
-
let
|
|
27
|
+
let Lt;
|
|
28
28
|
function or(e, t) {
|
|
29
|
-
return e === t ? !0 : (
|
|
29
|
+
return e === t ? !0 : (Lt || (Lt = document.createElement("a")), Lt.href = t, e === Lt.href);
|
|
30
30
|
}
|
|
31
31
|
function zi(e) {
|
|
32
32
|
return Object.keys(e).length === 0;
|
|
@@ -43,7 +43,7 @@ function Xr(e, ...t) {
|
|
|
43
43
|
function sr(e, t, n) {
|
|
44
44
|
e.$$.on_destroy.push(Xr(t, n));
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function Rt(e, t, n, r) {
|
|
47
47
|
if (e) {
|
|
48
48
|
const i = Yr(e, t, n, r);
|
|
49
49
|
return e[0](i);
|
|
@@ -52,7 +52,7 @@ function Dt(e, t, n, r) {
|
|
|
52
52
|
function Yr(e, t, n, r) {
|
|
53
53
|
return e[1] && r ? ji(n.ctx.slice(), e[1](r(t))) : n.ctx;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function Dt(e, t, n, r) {
|
|
56
56
|
if (e[2] && r) {
|
|
57
57
|
const i = e[2](r(n));
|
|
58
58
|
if (t.dirty === void 0)
|
|
@@ -67,13 +67,13 @@ function Bt(e, t, n, r) {
|
|
|
67
67
|
}
|
|
68
68
|
return t.dirty;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function Bt(e, t, n, r, i, o) {
|
|
71
71
|
if (i) {
|
|
72
72
|
const l = Yr(t, n, r, o);
|
|
73
73
|
e.p(l, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function $t(e) {
|
|
77
77
|
if (e.ctx.length > 32) {
|
|
78
78
|
const t = [], n = e.ctx.length / 32;
|
|
79
79
|
for (let r = 0; r < n; r++)
|
|
@@ -83,21 +83,21 @@ function Ut(e) {
|
|
|
83
83
|
return -1;
|
|
84
84
|
}
|
|
85
85
|
const Zr = typeof window < "u";
|
|
86
|
-
let Wi = Zr ? () => window.performance.now() : () => Date.now(),
|
|
87
|
-
const
|
|
86
|
+
let Wi = Zr ? () => window.performance.now() : () => Date.now(), Ln = Zr ? (e) => requestAnimationFrame(e) : ye;
|
|
87
|
+
const Je = /* @__PURE__ */ new Set();
|
|
88
88
|
function qr(e) {
|
|
89
|
-
|
|
90
|
-
t.c(e) || (
|
|
91
|
-
}),
|
|
89
|
+
Je.forEach((t) => {
|
|
90
|
+
t.c(e) || (Je.delete(t), t.f());
|
|
91
|
+
}), Je.size !== 0 && Ln(qr);
|
|
92
92
|
}
|
|
93
93
|
function Vi(e) {
|
|
94
94
|
let t;
|
|
95
|
-
return
|
|
95
|
+
return Je.size === 0 && Ln(qr), {
|
|
96
96
|
promise: new Promise((n) => {
|
|
97
|
-
|
|
97
|
+
Je.add(t = { c: e, f: n });
|
|
98
98
|
}),
|
|
99
99
|
abort() {
|
|
100
|
-
|
|
100
|
+
Je.delete(t);
|
|
101
101
|
}
|
|
102
102
|
};
|
|
103
103
|
}
|
|
@@ -105,13 +105,13 @@ function B(e, t) {
|
|
|
105
105
|
e.appendChild(t);
|
|
106
106
|
}
|
|
107
107
|
function Xi(e, t, n) {
|
|
108
|
-
const r =
|
|
108
|
+
const r = Hn(e);
|
|
109
109
|
if (!r.getElementById(t)) {
|
|
110
|
-
const i =
|
|
110
|
+
const i = ne("style");
|
|
111
111
|
i.id = t, i.textContent = n, Jr(r, i);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Hn(e) {
|
|
115
115
|
if (!e)
|
|
116
116
|
return document;
|
|
117
117
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -122,8 +122,8 @@ function In(e) {
|
|
|
122
122
|
) : e.ownerDocument;
|
|
123
123
|
}
|
|
124
124
|
function Yi(e) {
|
|
125
|
-
const t =
|
|
126
|
-
return t.textContent = "/* empty */", Jr(
|
|
125
|
+
const t = ne("style");
|
|
126
|
+
return t.textContent = "/* empty */", Jr(Hn(e), t), t.sheet;
|
|
127
127
|
}
|
|
128
128
|
function Jr(e, t) {
|
|
129
129
|
return B(
|
|
@@ -132,28 +132,28 @@ function Jr(e, t) {
|
|
|
132
132
|
t
|
|
133
133
|
), t.sheet;
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function $e(e, t, n) {
|
|
136
136
|
e.insertBefore(t, n || null);
|
|
137
137
|
}
|
|
138
138
|
function we(e) {
|
|
139
139
|
e.parentNode && e.parentNode.removeChild(e);
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function ne(e) {
|
|
142
142
|
return document.createElement(e);
|
|
143
143
|
}
|
|
144
144
|
function Te(e) {
|
|
145
145
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function Fe(e) {
|
|
148
148
|
return document.createTextNode(e);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
151
|
-
return
|
|
150
|
+
function Ie() {
|
|
151
|
+
return Fe(" ");
|
|
152
152
|
}
|
|
153
153
|
function Zi() {
|
|
154
|
-
return
|
|
154
|
+
return Fe("");
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function qe(e, t, n, r) {
|
|
157
157
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
158
158
|
}
|
|
159
159
|
function w(e, t, n) {
|
|
@@ -162,32 +162,32 @@ function w(e, t, n) {
|
|
|
162
162
|
function qi(e) {
|
|
163
163
|
return Array.from(e.childNodes);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function bt(e, t) {
|
|
166
166
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
167
167
|
t);
|
|
168
168
|
}
|
|
169
|
-
let
|
|
169
|
+
let Ht;
|
|
170
170
|
function Ji() {
|
|
171
|
-
if (
|
|
172
|
-
|
|
171
|
+
if (Ht === void 0) {
|
|
172
|
+
Ht = !1;
|
|
173
173
|
try {
|
|
174
174
|
typeof window < "u" && window.parent && window.parent.document;
|
|
175
175
|
} catch {
|
|
176
|
-
|
|
176
|
+
Ht = !0;
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
return
|
|
179
|
+
return Ht;
|
|
180
180
|
}
|
|
181
181
|
function Qi(e, t) {
|
|
182
182
|
getComputedStyle(e).position === "static" && (e.style.position = "relative");
|
|
183
|
-
const r =
|
|
183
|
+
const r = ne("iframe");
|
|
184
184
|
r.setAttribute(
|
|
185
185
|
"style",
|
|
186
186
|
"display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
|
|
187
187
|
), r.setAttribute("aria-hidden", "true"), r.tabIndex = -1;
|
|
188
188
|
const i = Ji();
|
|
189
189
|
let o;
|
|
190
|
-
return i ? (r.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o =
|
|
190
|
+
return i ? (r.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o = qe(
|
|
191
191
|
window,
|
|
192
192
|
"message",
|
|
193
193
|
/** @param {MessageEvent} event */
|
|
@@ -195,7 +195,7 @@ function Qi(e, t) {
|
|
|
195
195
|
l.source === r.contentWindow && t();
|
|
196
196
|
}
|
|
197
197
|
)) : (r.src = "about:blank", r.onload = () => {
|
|
198
|
-
o =
|
|
198
|
+
o = qe(r.contentWindow, "resize", t), t();
|
|
199
199
|
}), B(e, r), () => {
|
|
200
200
|
(i || o && r.contentWindow) && o(), we(r);
|
|
201
201
|
};
|
|
@@ -212,8 +212,8 @@ function eo(e) {
|
|
|
212
212
|
}
|
|
213
213
|
), t;
|
|
214
214
|
}
|
|
215
|
-
const
|
|
216
|
-
let
|
|
215
|
+
const zt = /* @__PURE__ */ new Map();
|
|
216
|
+
let Wt = 0;
|
|
217
217
|
function to(e) {
|
|
218
218
|
let t = 5381, n = e.length;
|
|
219
219
|
for (; n--; )
|
|
@@ -222,7 +222,7 @@ function to(e) {
|
|
|
222
222
|
}
|
|
223
223
|
function no(e, t) {
|
|
224
224
|
const n = { stylesheet: Yi(t), rules: {} };
|
|
225
|
-
return
|
|
225
|
+
return zt.set(e, n), n;
|
|
226
226
|
}
|
|
227
227
|
function ar(e, t, n, r, i, o, l, a = 0) {
|
|
228
228
|
const c = 16.666 / r;
|
|
@@ -234,34 +234,34 @@ function ar(e, t, n, r, i, o, l, a = 0) {
|
|
|
234
234
|
`;
|
|
235
235
|
}
|
|
236
236
|
const f = u + `100% {${l(n, 1 - n)}}
|
|
237
|
-
}`, m = `__svelte_${to(f)}_${a}`, y =
|
|
237
|
+
}`, m = `__svelte_${to(f)}_${a}`, y = Hn(e), { stylesheet: A, rules: x } = zt.get(y) || no(y, e);
|
|
238
238
|
x[m] || (x[m] = !0, A.insertRule(`@keyframes ${m} ${f}`, A.cssRules.length));
|
|
239
239
|
const g = e.style.animation || "";
|
|
240
|
-
return e.style.animation = `${g ? `${g}, ` : ""}${m} ${r}ms linear ${i}ms 1 both`,
|
|
240
|
+
return e.style.animation = `${g ? `${g}, ` : ""}${m} ${r}ms linear ${i}ms 1 both`, Wt += 1, m;
|
|
241
241
|
}
|
|
242
242
|
function ro(e, t) {
|
|
243
243
|
const n = (e.style.animation || "").split(", "), r = n.filter(
|
|
244
244
|
t ? (o) => o.indexOf(t) < 0 : (o) => o.indexOf("__svelte") === -1
|
|
245
245
|
// remove all Svelte animations
|
|
246
246
|
), i = n.length - r.length;
|
|
247
|
-
i && (e.style.animation = r.join(", "),
|
|
247
|
+
i && (e.style.animation = r.join(", "), Wt -= i, Wt || io());
|
|
248
248
|
}
|
|
249
249
|
function io() {
|
|
250
|
-
|
|
251
|
-
|
|
250
|
+
Ln(() => {
|
|
251
|
+
Wt || (zt.forEach((e) => {
|
|
252
252
|
const { ownerNode: t } = e.stylesheet;
|
|
253
253
|
t && we(t);
|
|
254
|
-
}),
|
|
254
|
+
}), zt.clear());
|
|
255
255
|
});
|
|
256
256
|
}
|
|
257
|
-
let
|
|
258
|
-
function
|
|
259
|
-
|
|
257
|
+
let Et;
|
|
258
|
+
function _t(e) {
|
|
259
|
+
Et = e;
|
|
260
260
|
}
|
|
261
261
|
function Qr() {
|
|
262
|
-
if (!
|
|
262
|
+
if (!Et)
|
|
263
263
|
throw new Error("Function called outside component initialization");
|
|
264
|
-
return
|
|
264
|
+
return Et;
|
|
265
265
|
}
|
|
266
266
|
function oo(e) {
|
|
267
267
|
Qr().$$.on_mount.push(e);
|
|
@@ -269,85 +269,85 @@ function oo(e) {
|
|
|
269
269
|
function so(e) {
|
|
270
270
|
Qr().$$.on_destroy.push(e);
|
|
271
271
|
}
|
|
272
|
-
const
|
|
273
|
-
let
|
|
272
|
+
const Ze = [], Vt = [];
|
|
273
|
+
let Qe = [];
|
|
274
274
|
const lr = [], ao = /* @__PURE__ */ Promise.resolve();
|
|
275
|
-
let
|
|
275
|
+
let En = !1;
|
|
276
276
|
function lo() {
|
|
277
|
-
|
|
277
|
+
En || (En = !0, ao.then(pe));
|
|
278
278
|
}
|
|
279
|
-
function
|
|
280
|
-
|
|
279
|
+
function Ke(e) {
|
|
280
|
+
Qe.push(e);
|
|
281
281
|
}
|
|
282
|
-
const
|
|
283
|
-
let
|
|
284
|
-
function
|
|
285
|
-
if (
|
|
282
|
+
const sn = /* @__PURE__ */ new Set();
|
|
283
|
+
let Xe = 0;
|
|
284
|
+
function pe() {
|
|
285
|
+
if (Xe !== 0)
|
|
286
286
|
return;
|
|
287
|
-
const e =
|
|
287
|
+
const e = Et;
|
|
288
288
|
do {
|
|
289
289
|
try {
|
|
290
|
-
for (;
|
|
291
|
-
const t =
|
|
292
|
-
|
|
290
|
+
for (; Xe < Ze.length; ) {
|
|
291
|
+
const t = Ze[Xe];
|
|
292
|
+
Xe++, _t(t), uo(t.$$);
|
|
293
293
|
}
|
|
294
294
|
} catch (t) {
|
|
295
|
-
throw
|
|
295
|
+
throw Ze.length = 0, Xe = 0, t;
|
|
296
296
|
}
|
|
297
|
-
for (
|
|
298
|
-
|
|
299
|
-
for (let t = 0; t <
|
|
300
|
-
const n =
|
|
301
|
-
|
|
297
|
+
for (_t(null), Ze.length = 0, Xe = 0; Vt.length; )
|
|
298
|
+
Vt.pop()();
|
|
299
|
+
for (let t = 0; t < Qe.length; t += 1) {
|
|
300
|
+
const n = Qe[t];
|
|
301
|
+
sn.has(n) || (sn.add(n), n());
|
|
302
302
|
}
|
|
303
|
-
|
|
304
|
-
} while (
|
|
303
|
+
Qe.length = 0;
|
|
304
|
+
} while (Ze.length);
|
|
305
305
|
for (; lr.length; )
|
|
306
306
|
lr.pop()();
|
|
307
|
-
|
|
307
|
+
En = !1, sn.clear(), _t(e);
|
|
308
308
|
}
|
|
309
309
|
function uo(e) {
|
|
310
310
|
if (e.fragment !== null) {
|
|
311
|
-
e.update(),
|
|
311
|
+
e.update(), Be(e.before_update);
|
|
312
312
|
const t = e.dirty;
|
|
313
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
313
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ke);
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
function co(e) {
|
|
317
317
|
const t = [], n = [];
|
|
318
|
-
|
|
318
|
+
Qe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Qe = t;
|
|
319
319
|
}
|
|
320
|
-
let
|
|
320
|
+
let ut;
|
|
321
321
|
function fo() {
|
|
322
|
-
return
|
|
323
|
-
|
|
324
|
-
})),
|
|
322
|
+
return ut || (ut = Promise.resolve(), ut.then(() => {
|
|
323
|
+
ut = null;
|
|
324
|
+
})), ut;
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function an(e, t, n) {
|
|
327
327
|
e.dispatchEvent(Ki(`${t ? "intro" : "outro"}${n}`));
|
|
328
328
|
}
|
|
329
|
-
const
|
|
330
|
-
let
|
|
329
|
+
const Ut = /* @__PURE__ */ new Set();
|
|
330
|
+
let Pe;
|
|
331
331
|
function Kr() {
|
|
332
|
-
|
|
332
|
+
Pe = {
|
|
333
333
|
r: 0,
|
|
334
334
|
c: [],
|
|
335
|
-
p:
|
|
335
|
+
p: Pe
|
|
336
336
|
// parent group
|
|
337
337
|
};
|
|
338
338
|
}
|
|
339
339
|
function ei() {
|
|
340
|
-
|
|
340
|
+
Pe.r || Be(Pe.c), Pe = Pe.p;
|
|
341
341
|
}
|
|
342
342
|
function Le(e, t) {
|
|
343
|
-
e && e.i && (
|
|
343
|
+
e && e.i && (Ut.delete(e), e.i(t));
|
|
344
344
|
}
|
|
345
|
-
function
|
|
345
|
+
function Re(e, t, n, r) {
|
|
346
346
|
if (e && e.o) {
|
|
347
|
-
if (
|
|
347
|
+
if (Ut.has(e))
|
|
348
348
|
return;
|
|
349
|
-
|
|
350
|
-
|
|
349
|
+
Ut.add(e), Pe.c.push(() => {
|
|
350
|
+
Ut.delete(e), r && (n && e.d(1), r());
|
|
351
351
|
}), e.o(t);
|
|
352
352
|
} else
|
|
353
353
|
r && r();
|
|
@@ -378,15 +378,15 @@ function ur(e, t, n, r) {
|
|
|
378
378
|
delay: g = 0,
|
|
379
379
|
duration: N = 300,
|
|
380
380
|
easing: U = zr,
|
|
381
|
-
tick:
|
|
381
|
+
tick: X = ye,
|
|
382
382
|
css: R
|
|
383
383
|
} = o || ho, H = {
|
|
384
384
|
start: Wi() + g,
|
|
385
385
|
b: x
|
|
386
386
|
};
|
|
387
|
-
x || (H.group =
|
|
388
|
-
e.inert, e.inert = !0)), a || c ? c = H : (R && (m(), u = ar(e, l, x, N, g, U, R)), x &&
|
|
389
|
-
if (c && I > c.start && (a = y(c, N), c = null,
|
|
387
|
+
x || (H.group = Pe, Pe.r += 1), "inert" in e && (x ? f !== void 0 && (e.inert = f) : (f = /** @type {HTMLElement} */
|
|
388
|
+
e.inert, e.inert = !0)), a || c ? c = H : (R && (m(), u = ar(e, l, x, N, g, U, R)), x && X(0, 1), a = y(H, N), Ke(() => an(e, x, "start")), Vi((I) => {
|
|
389
|
+
if (c && I > c.start && (a = y(c, N), c = null, an(e, a.b, "start"), R && (m(), u = ar(
|
|
390
390
|
e,
|
|
391
391
|
l,
|
|
392
392
|
a.b,
|
|
@@ -396,10 +396,10 @@ function ur(e, t, n, r) {
|
|
|
396
396
|
o.css
|
|
397
397
|
))), a) {
|
|
398
398
|
if (I >= a.end)
|
|
399
|
-
|
|
399
|
+
X(l = a.b, 1 - l), an(e, a.b, "end"), c || (a.b ? m() : --a.group.r || Be(a.group.c)), a = null;
|
|
400
400
|
else if (I >= a.start) {
|
|
401
|
-
const
|
|
402
|
-
l = a.a + a.d * U(
|
|
401
|
+
const V = I - a.start;
|
|
402
|
+
l = a.a + a.d * U(V / a.duration), X(l, 1 - l);
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
return !!(a || c);
|
|
@@ -407,7 +407,7 @@ function ur(e, t, n, r) {
|
|
|
407
407
|
}
|
|
408
408
|
return {
|
|
409
409
|
run(x) {
|
|
410
|
-
|
|
410
|
+
qt(o) ? fo().then(() => {
|
|
411
411
|
o = o({ direction: x ? "in" : "out" }), A(x);
|
|
412
412
|
}) : A(x);
|
|
413
413
|
},
|
|
@@ -418,21 +418,21 @@ function ur(e, t, n, r) {
|
|
|
418
418
|
}
|
|
419
419
|
function mo(e, t, n) {
|
|
420
420
|
const { fragment: r, after_update: i } = e.$$;
|
|
421
|
-
r && r.m(t, n),
|
|
422
|
-
const o = e.$$.on_mount.map(Wr).filter(
|
|
423
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
424
|
-
}), i.forEach(
|
|
421
|
+
r && r.m(t, n), Ke(() => {
|
|
422
|
+
const o = e.$$.on_mount.map(Wr).filter(qt);
|
|
423
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Be(o), e.$$.on_mount = [];
|
|
424
|
+
}), i.forEach(Ke);
|
|
425
425
|
}
|
|
426
426
|
function po(e, t) {
|
|
427
427
|
const n = e.$$;
|
|
428
|
-
n.fragment !== null && (co(n.after_update),
|
|
428
|
+
n.fragment !== null && (co(n.after_update), Be(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
429
429
|
}
|
|
430
430
|
function go(e, t) {
|
|
431
|
-
e.$$.dirty[0] === -1 && (
|
|
431
|
+
e.$$.dirty[0] === -1 && (Ze.push(e), lo(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
432
432
|
}
|
|
433
433
|
function _o(e, t, n, r, i, o, l = null, a = [-1]) {
|
|
434
|
-
const c =
|
|
435
|
-
|
|
434
|
+
const c = Et;
|
|
435
|
+
_t(e);
|
|
436
436
|
const u = e.$$ = {
|
|
437
437
|
fragment: null,
|
|
438
438
|
ctx: [],
|
|
@@ -459,15 +459,15 @@ function _o(e, t, n, r, i, o, l = null, a = [-1]) {
|
|
|
459
459
|
if (u.ctx = n ? n(e, t.props || {}, (m, y, ...A) => {
|
|
460
460
|
const x = A.length ? A[0] : y;
|
|
461
461
|
return u.ctx && i(u.ctx[m], u.ctx[m] = x) && (!u.skip_bound && u.bound[m] && u.bound[m](x), f && go(e, m)), y;
|
|
462
|
-
}) : [], u.update(), f = !0,
|
|
462
|
+
}) : [], u.update(), f = !0, Be(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
463
463
|
if (t.hydrate) {
|
|
464
464
|
const m = qi(t.target);
|
|
465
465
|
u.fragment && u.fragment.l(m), m.forEach(we);
|
|
466
466
|
} else
|
|
467
467
|
u.fragment && u.fragment.c();
|
|
468
|
-
t.intro && Le(e.$$.fragment), mo(e, t.target, t.anchor),
|
|
468
|
+
t.intro && Le(e.$$.fragment), mo(e, t.target, t.anchor), pe();
|
|
469
469
|
}
|
|
470
|
-
|
|
470
|
+
_t(c);
|
|
471
471
|
}
|
|
472
472
|
let ti;
|
|
473
473
|
typeof HTMLElement == "function" && (ti = class extends HTMLElement {
|
|
@@ -512,14 +512,14 @@ typeof HTMLElement == "function" && (ti = class extends HTMLElement {
|
|
|
512
512
|
let o;
|
|
513
513
|
return {
|
|
514
514
|
c: function() {
|
|
515
|
-
o =
|
|
515
|
+
o = ne("slot"), i !== "default" && w(o, "name", i);
|
|
516
516
|
},
|
|
517
517
|
/**
|
|
518
518
|
* @param {HTMLElement} target
|
|
519
519
|
* @param {HTMLElement} [anchor]
|
|
520
520
|
*/
|
|
521
521
|
m: function(c, u) {
|
|
522
|
-
|
|
522
|
+
$e(c, o, u);
|
|
523
523
|
},
|
|
524
524
|
d: function(c) {
|
|
525
525
|
c && we(o);
|
|
@@ -534,7 +534,7 @@ typeof HTMLElement == "function" && (ti = class extends HTMLElement {
|
|
|
534
534
|
i in n && (t[i] = [e(i)]);
|
|
535
535
|
for (const i of this.attributes) {
|
|
536
536
|
const o = this.$$g_p(i.name);
|
|
537
|
-
o in this.$$d || (this.$$d[o] =
|
|
537
|
+
o in this.$$d || (this.$$d[o] = kt(o, i.value, this.$$p_d, "toProp"));
|
|
538
538
|
}
|
|
539
539
|
for (const i in this.$$p_d)
|
|
540
540
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -552,7 +552,7 @@ typeof HTMLElement == "function" && (ti = class extends HTMLElement {
|
|
|
552
552
|
this.$$r = !0;
|
|
553
553
|
for (const i in this.$$p_d)
|
|
554
554
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
555
|
-
const o =
|
|
555
|
+
const o = kt(
|
|
556
556
|
i,
|
|
557
557
|
this.$$d[i],
|
|
558
558
|
this.$$p_d,
|
|
@@ -574,7 +574,7 @@ typeof HTMLElement == "function" && (ti = class extends HTMLElement {
|
|
|
574
574
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
575
575
|
// and setting attributes through setAttribute etc, this is helpful
|
|
576
576
|
attributeChangedCallback(e, t, n) {
|
|
577
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
577
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = kt(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
578
578
|
}
|
|
579
579
|
disconnectedCallback() {
|
|
580
580
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -587,7 +587,7 @@ typeof HTMLElement == "function" && (ti = class extends HTMLElement {
|
|
|
587
587
|
) || e;
|
|
588
588
|
}
|
|
589
589
|
});
|
|
590
|
-
function
|
|
590
|
+
function kt(e, t, n, r) {
|
|
591
591
|
const i = n[e]?.type;
|
|
592
592
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
593
593
|
return t;
|
|
@@ -633,7 +633,7 @@ function bo(e, t, n, r, i, o) {
|
|
|
633
633
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
634
634
|
},
|
|
635
635
|
set(c) {
|
|
636
|
-
c =
|
|
636
|
+
c = kt(a, c, t), this.$$d[a] = c, this.$$c?.$set({ [a]: c });
|
|
637
637
|
}
|
|
638
638
|
});
|
|
639
639
|
}), r.forEach((a) => {
|
|
@@ -673,7 +673,7 @@ class Eo {
|
|
|
673
673
|
* @returns {() => void}
|
|
674
674
|
*/
|
|
675
675
|
$on(t, n) {
|
|
676
|
-
if (!
|
|
676
|
+
if (!qt(n))
|
|
677
677
|
return ye;
|
|
678
678
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
679
679
|
return r.push(n), () => {
|
|
@@ -700,24 +700,24 @@ function cr(e, { delay: t = 0, duration: n = 400, easing: r = zr } = {}) {
|
|
|
700
700
|
css: (o) => `opacity: ${o * i}`
|
|
701
701
|
};
|
|
702
702
|
}
|
|
703
|
-
const
|
|
703
|
+
const Ye = [];
|
|
704
704
|
function xo(e, t) {
|
|
705
705
|
return {
|
|
706
|
-
subscribe:
|
|
706
|
+
subscribe: vt(e, t).subscribe
|
|
707
707
|
};
|
|
708
708
|
}
|
|
709
|
-
function
|
|
709
|
+
function vt(e, t = ye) {
|
|
710
710
|
let n;
|
|
711
711
|
const r = /* @__PURE__ */ new Set();
|
|
712
712
|
function i(a) {
|
|
713
713
|
if (Vr(e, a) && (e = a, n)) {
|
|
714
|
-
const c = !
|
|
714
|
+
const c = !Ye.length;
|
|
715
715
|
for (const u of r)
|
|
716
|
-
u[1](),
|
|
716
|
+
u[1](), Ye.push(u, e);
|
|
717
717
|
if (c) {
|
|
718
|
-
for (let u = 0; u <
|
|
719
|
-
|
|
720
|
-
|
|
718
|
+
for (let u = 0; u < Ye.length; u += 2)
|
|
719
|
+
Ye[u][0](Ye[u + 1]);
|
|
720
|
+
Ye.length = 0;
|
|
721
721
|
}
|
|
722
722
|
}
|
|
723
723
|
}
|
|
@@ -732,7 +732,7 @@ function Tt(e, t = ye) {
|
|
|
732
732
|
}
|
|
733
733
|
return { set: i, update: o, subscribe: l };
|
|
734
734
|
}
|
|
735
|
-
function
|
|
735
|
+
function it(e, t, n) {
|
|
736
736
|
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
737
737
|
if (!i.every(Boolean))
|
|
738
738
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -746,7 +746,7 @@ function ot(e, t, n) {
|
|
|
746
746
|
return;
|
|
747
747
|
m();
|
|
748
748
|
const x = t(r ? u[0] : u, l, a);
|
|
749
|
-
o ? l(x) : m =
|
|
749
|
+
o ? l(x) : m = qt(x) ? x : ye;
|
|
750
750
|
}, A = i.map(
|
|
751
751
|
(x, g) => Xr(
|
|
752
752
|
x,
|
|
@@ -759,12 +759,12 @@ function ot(e, t, n) {
|
|
|
759
759
|
)
|
|
760
760
|
);
|
|
761
761
|
return c = !0, y(), function() {
|
|
762
|
-
|
|
762
|
+
Be(A), m(), c = !1;
|
|
763
763
|
};
|
|
764
764
|
});
|
|
765
765
|
}
|
|
766
766
|
var ni = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
767
|
-
function
|
|
767
|
+
function Nn(e) {
|
|
768
768
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
769
769
|
}
|
|
770
770
|
var vo = function(t) {
|
|
@@ -775,28 +775,28 @@ function To(e) {
|
|
|
775
775
|
}
|
|
776
776
|
function So(e) {
|
|
777
777
|
var t = Object.prototype.toString.call(e);
|
|
778
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
778
|
+
return t === "[object RegExp]" || t === "[object Date]" || Mo(e);
|
|
779
779
|
}
|
|
780
780
|
var wo = typeof Symbol == "function" && Symbol.for, Ao = wo ? Symbol.for("react.element") : 60103;
|
|
781
|
-
function
|
|
781
|
+
function Mo(e) {
|
|
782
782
|
return e.$$typeof === Ao;
|
|
783
783
|
}
|
|
784
|
-
function
|
|
784
|
+
function Co(e) {
|
|
785
785
|
return Array.isArray(e) ? [] : {};
|
|
786
786
|
}
|
|
787
|
-
function
|
|
788
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
787
|
+
function yt(e, t) {
|
|
788
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? et(Co(e), e, t) : e;
|
|
789
789
|
}
|
|
790
|
-
function
|
|
790
|
+
function Oo(e, t, n) {
|
|
791
791
|
return e.concat(t).map(function(r) {
|
|
792
|
-
return
|
|
792
|
+
return yt(r, n);
|
|
793
793
|
});
|
|
794
794
|
}
|
|
795
795
|
function Lo(e, t) {
|
|
796
796
|
if (!t.customMerge)
|
|
797
|
-
return
|
|
797
|
+
return et;
|
|
798
798
|
var n = t.customMerge(e);
|
|
799
|
-
return typeof n == "function" ? n :
|
|
799
|
+
return typeof n == "function" ? n : et;
|
|
800
800
|
}
|
|
801
801
|
function Ho(e) {
|
|
802
802
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -819,51 +819,65 @@ function No(e, t) {
|
|
|
819
819
|
function Io(e, t, n) {
|
|
820
820
|
var r = {};
|
|
821
821
|
return n.isMergeableObject(e) && fr(e).forEach(function(i) {
|
|
822
|
-
r[i] =
|
|
822
|
+
r[i] = yt(e[i], n);
|
|
823
823
|
}), fr(t).forEach(function(i) {
|
|
824
|
-
No(e, i) || (ri(e, i) && n.isMergeableObject(t[i]) ? r[i] = Lo(i, n)(e[i], t[i], n) : r[i] =
|
|
824
|
+
No(e, i) || (ri(e, i) && n.isMergeableObject(t[i]) ? r[i] = Lo(i, n)(e[i], t[i], n) : r[i] = yt(t[i], n));
|
|
825
825
|
}), r;
|
|
826
826
|
}
|
|
827
|
-
function
|
|
828
|
-
n = n || {}, n.arrayMerge = n.arrayMerge ||
|
|
827
|
+
function et(e, t, n) {
|
|
828
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || Oo, n.isMergeableObject = n.isMergeableObject || vo, n.cloneUnlessOtherwiseSpecified = yt;
|
|
829
829
|
var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
|
|
830
|
-
return o ? r ? n.arrayMerge(e, t, n) : Io(e, t, n) :
|
|
830
|
+
return o ? r ? n.arrayMerge(e, t, n) : Io(e, t, n) : yt(t, n);
|
|
831
831
|
}
|
|
832
|
-
|
|
832
|
+
et.all = function(t, n) {
|
|
833
833
|
if (!Array.isArray(t))
|
|
834
834
|
throw new Error("first argument should be an array");
|
|
835
835
|
return t.reduce(function(r, i) {
|
|
836
|
-
return
|
|
836
|
+
return et(r, i, n);
|
|
837
837
|
}, {});
|
|
838
838
|
};
|
|
839
|
-
var Po =
|
|
840
|
-
const Do = /* @__PURE__ */
|
|
841
|
-
|
|
842
|
-
|
|
839
|
+
var Po = et, Ro = Po;
|
|
840
|
+
const Do = /* @__PURE__ */ Nn(Ro);
|
|
841
|
+
/*! *****************************************************************************
|
|
842
|
+
Copyright (c) Microsoft Corporation.
|
|
843
|
+
|
|
844
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
845
|
+
purpose with or without fee is hereby granted.
|
|
846
|
+
|
|
847
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
848
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
849
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
850
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
851
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
852
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
853
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
854
|
+
***************************************************************************** */
|
|
855
|
+
var yn = function(e, t) {
|
|
856
|
+
return yn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
843
857
|
n.__proto__ = r;
|
|
844
858
|
} || function(n, r) {
|
|
845
859
|
for (var i in r)
|
|
846
860
|
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
847
|
-
},
|
|
861
|
+
}, yn(e, t);
|
|
848
862
|
};
|
|
849
|
-
function
|
|
863
|
+
function Jt(e, t) {
|
|
850
864
|
if (typeof t != "function" && t !== null)
|
|
851
865
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
852
|
-
|
|
866
|
+
yn(e, t);
|
|
853
867
|
function n() {
|
|
854
868
|
this.constructor = e;
|
|
855
869
|
}
|
|
856
870
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
857
871
|
}
|
|
858
|
-
var
|
|
859
|
-
return
|
|
872
|
+
var j = function() {
|
|
873
|
+
return j = Object.assign || function(t) {
|
|
860
874
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
861
875
|
n = arguments[r];
|
|
862
876
|
for (var o in n)
|
|
863
877
|
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
864
878
|
}
|
|
865
879
|
return t;
|
|
866
|
-
},
|
|
880
|
+
}, j.apply(this, arguments);
|
|
867
881
|
};
|
|
868
882
|
function Bo(e, t) {
|
|
869
883
|
var n = {};
|
|
@@ -874,14 +888,14 @@ function Bo(e, t) {
|
|
|
874
888
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
875
889
|
return n;
|
|
876
890
|
}
|
|
877
|
-
function
|
|
878
|
-
if (
|
|
891
|
+
function ln(e, t, n) {
|
|
892
|
+
if (arguments.length === 2)
|
|
879
893
|
for (var r = 0, i = t.length, o; r < i; r++)
|
|
880
894
|
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
881
|
-
return e.concat(o ||
|
|
895
|
+
return e.concat(o || t);
|
|
882
896
|
}
|
|
883
|
-
function
|
|
884
|
-
var n = t && t.cache ? t.cache :
|
|
897
|
+
function un(e, t) {
|
|
898
|
+
var n = t && t.cache ? t.cache : jo, r = t && t.serializer ? t.serializer : Go, i = t && t.strategy ? t.strategy : Uo;
|
|
885
899
|
return i(e, {
|
|
886
900
|
cache: n,
|
|
887
901
|
serializer: r
|
|
@@ -890,103 +904,95 @@ function fn(e, t) {
|
|
|
890
904
|
function $o(e) {
|
|
891
905
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
892
906
|
}
|
|
893
|
-
function
|
|
907
|
+
function ii(e, t, n, r) {
|
|
894
908
|
var i = $o(r) ? r : n(r), o = t.get(i);
|
|
895
909
|
return typeof o > "u" && (o = e.call(this, r), t.set(i, o)), o;
|
|
896
910
|
}
|
|
897
|
-
function
|
|
911
|
+
function oi(e, t, n) {
|
|
898
912
|
var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
|
|
899
913
|
return typeof o > "u" && (o = e.apply(this, r), t.set(i, o)), o;
|
|
900
914
|
}
|
|
901
|
-
function
|
|
915
|
+
function In(e, t, n, r, i) {
|
|
902
916
|
return n.bind(t, e, r, i);
|
|
903
917
|
}
|
|
918
|
+
function Uo(e, t) {
|
|
919
|
+
var n = e.length === 1 ? ii : oi;
|
|
920
|
+
return In(e, this, n, t.cache.create(), t.serializer);
|
|
921
|
+
}
|
|
904
922
|
function ko(e, t) {
|
|
905
|
-
|
|
906
|
-
return oi(e, this, n, t.cache.create(), t.serializer);
|
|
923
|
+
return In(e, this, oi, t.cache.create(), t.serializer);
|
|
907
924
|
}
|
|
908
925
|
function Fo(e, t) {
|
|
909
|
-
return
|
|
926
|
+
return In(e, this, ii, t.cache.create(), t.serializer);
|
|
910
927
|
}
|
|
911
928
|
var Go = function() {
|
|
912
929
|
return JSON.stringify(arguments);
|
|
913
|
-
}
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
}()
|
|
925
|
-
), zo = {
|
|
930
|
+
};
|
|
931
|
+
function Pn() {
|
|
932
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
933
|
+
}
|
|
934
|
+
Pn.prototype.get = function(e) {
|
|
935
|
+
return this.cache[e];
|
|
936
|
+
};
|
|
937
|
+
Pn.prototype.set = function(e, t) {
|
|
938
|
+
this.cache[e] = t;
|
|
939
|
+
};
|
|
940
|
+
var jo = {
|
|
926
941
|
create: function() {
|
|
927
|
-
return new
|
|
942
|
+
return new Pn();
|
|
928
943
|
}
|
|
929
|
-
},
|
|
930
|
-
variadic:
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
934
|
-
n = arguments[r];
|
|
935
|
-
for (var o in n)
|
|
936
|
-
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
937
|
-
}
|
|
938
|
-
return t;
|
|
939
|
-
}, Yt.apply(this, arguments);
|
|
940
|
-
};
|
|
941
|
-
var k;
|
|
944
|
+
}, cn = {
|
|
945
|
+
variadic: ko,
|
|
946
|
+
monadic: Fo
|
|
947
|
+
}, k;
|
|
942
948
|
(function(e) {
|
|
943
949
|
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";
|
|
944
950
|
})(k || (k = {}));
|
|
945
|
-
var
|
|
951
|
+
var K;
|
|
946
952
|
(function(e) {
|
|
947
953
|
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";
|
|
948
|
-
})(
|
|
949
|
-
var
|
|
954
|
+
})(K || (K = {}));
|
|
955
|
+
var tt;
|
|
950
956
|
(function(e) {
|
|
951
957
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
952
|
-
})(
|
|
958
|
+
})(tt || (tt = {}));
|
|
953
959
|
function hr(e) {
|
|
954
|
-
return e.type ===
|
|
960
|
+
return e.type === K.literal;
|
|
955
961
|
}
|
|
956
|
-
function
|
|
957
|
-
return e.type ===
|
|
962
|
+
function zo(e) {
|
|
963
|
+
return e.type === K.argument;
|
|
958
964
|
}
|
|
959
965
|
function si(e) {
|
|
960
|
-
return e.type ===
|
|
966
|
+
return e.type === K.number;
|
|
961
967
|
}
|
|
962
968
|
function ai(e) {
|
|
963
|
-
return e.type ===
|
|
969
|
+
return e.type === K.date;
|
|
964
970
|
}
|
|
965
971
|
function li(e) {
|
|
966
|
-
return e.type ===
|
|
972
|
+
return e.type === K.time;
|
|
967
973
|
}
|
|
968
974
|
function ui(e) {
|
|
969
|
-
return e.type ===
|
|
975
|
+
return e.type === K.select;
|
|
970
976
|
}
|
|
971
977
|
function ci(e) {
|
|
972
|
-
return e.type ===
|
|
978
|
+
return e.type === K.plural;
|
|
973
979
|
}
|
|
974
|
-
function
|
|
975
|
-
return e.type ===
|
|
980
|
+
function Wo(e) {
|
|
981
|
+
return e.type === K.pound;
|
|
976
982
|
}
|
|
977
983
|
function fi(e) {
|
|
978
|
-
return e.type ===
|
|
984
|
+
return e.type === K.tag;
|
|
979
985
|
}
|
|
980
986
|
function hi(e) {
|
|
981
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
987
|
+
return !!(e && typeof e == "object" && e.type === tt.number);
|
|
982
988
|
}
|
|
983
|
-
function
|
|
984
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
989
|
+
function xn(e) {
|
|
990
|
+
return !!(e && typeof e == "object" && e.type === tt.dateTime);
|
|
985
991
|
}
|
|
986
|
-
var mi = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
987
|
-
function
|
|
992
|
+
var mi = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Vo = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
993
|
+
function Xo(e) {
|
|
988
994
|
var t = {};
|
|
989
|
-
return e.replace(
|
|
995
|
+
return e.replace(Vo, function(n) {
|
|
990
996
|
var r = n.length;
|
|
991
997
|
switch (n[0]) {
|
|
992
998
|
case "G":
|
|
@@ -1075,21 +1081,11 @@ function Yo(e) {
|
|
|
1075
1081
|
return "";
|
|
1076
1082
|
}), t;
|
|
1077
1083
|
}
|
|
1078
|
-
var
|
|
1079
|
-
|
|
1080
|
-
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
1081
|
-
n = arguments[r];
|
|
1082
|
-
for (var o in n)
|
|
1083
|
-
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
1084
|
-
}
|
|
1085
|
-
return t;
|
|
1086
|
-
}, ie.apply(this, arguments);
|
|
1087
|
-
};
|
|
1088
|
-
var Zo = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1089
|
-
function qo(e) {
|
|
1084
|
+
var Yo = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1085
|
+
function Zo(e) {
|
|
1090
1086
|
if (e.length === 0)
|
|
1091
1087
|
throw new Error("Number skeleton cannot be empty");
|
|
1092
|
-
for (var t = e.split(
|
|
1088
|
+
for (var t = e.split(Yo).filter(function(y) {
|
|
1093
1089
|
return y.length > 0;
|
|
1094
1090
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
1095
1091
|
var o = i[r], l = o.split("/");
|
|
@@ -1104,13 +1100,13 @@ function qo(e) {
|
|
|
1104
1100
|
}
|
|
1105
1101
|
return n;
|
|
1106
1102
|
}
|
|
1107
|
-
function
|
|
1103
|
+
function qo(e) {
|
|
1108
1104
|
return e.replace(/^(.*?)-/, "");
|
|
1109
1105
|
}
|
|
1110
|
-
var mr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,
|
|
1111
|
-
function
|
|
1106
|
+
var mr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, di = /^(@+)?(\+|#+)?[rs]?$/g, Jo = /(\*)(0+)|(#+)(0+)|(0+)/g, pi = /^(0+)$/;
|
|
1107
|
+
function dr(e) {
|
|
1112
1108
|
var t = {};
|
|
1113
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1109
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(di, function(n, r, i) {
|
|
1114
1110
|
return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1115
1111
|
}), t;
|
|
1116
1112
|
}
|
|
@@ -1154,7 +1150,7 @@ function gi(e) {
|
|
|
1154
1150
|
};
|
|
1155
1151
|
}
|
|
1156
1152
|
}
|
|
1157
|
-
function
|
|
1153
|
+
function Qo(e) {
|
|
1158
1154
|
var t;
|
|
1159
1155
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1160
1156
|
notation: "engineering"
|
|
@@ -1162,17 +1158,17 @@ function Ko(e) {
|
|
|
1162
1158
|
notation: "scientific"
|
|
1163
1159
|
}, e = e.slice(1)), t) {
|
|
1164
1160
|
var n = e.slice(0, 2);
|
|
1165
|
-
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1161
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !pi.test(e))
|
|
1166
1162
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1167
1163
|
t.minimumIntegerDigits = e.length;
|
|
1168
1164
|
}
|
|
1169
1165
|
return t;
|
|
1170
1166
|
}
|
|
1171
|
-
function
|
|
1167
|
+
function pr(e) {
|
|
1172
1168
|
var t = {}, n = gi(e);
|
|
1173
1169
|
return n || t;
|
|
1174
1170
|
}
|
|
1175
|
-
function
|
|
1171
|
+
function Ko(e) {
|
|
1176
1172
|
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
1177
1173
|
var i = r[n];
|
|
1178
1174
|
switch (i.stem) {
|
|
@@ -1196,7 +1192,7 @@ function es(e) {
|
|
|
1196
1192
|
continue;
|
|
1197
1193
|
case "measure-unit":
|
|
1198
1194
|
case "unit":
|
|
1199
|
-
t.style = "unit", t.unit =
|
|
1195
|
+
t.style = "unit", t.unit = qo(i.options[0]);
|
|
1200
1196
|
continue;
|
|
1201
1197
|
case "compact-short":
|
|
1202
1198
|
case "K":
|
|
@@ -1207,13 +1203,13 @@ function es(e) {
|
|
|
1207
1203
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1208
1204
|
continue;
|
|
1209
1205
|
case "scientific":
|
|
1210
|
-
t =
|
|
1211
|
-
return
|
|
1206
|
+
t = j(j(j({}, t), { notation: "scientific" }), i.options.reduce(function(c, u) {
|
|
1207
|
+
return j(j({}, c), pr(u));
|
|
1212
1208
|
}, {}));
|
|
1213
1209
|
continue;
|
|
1214
1210
|
case "engineering":
|
|
1215
|
-
t =
|
|
1216
|
-
return
|
|
1211
|
+
t = j(j(j({}, t), { notation: "engineering" }), i.options.reduce(function(c, u) {
|
|
1212
|
+
return j(j({}, c), pr(u));
|
|
1217
1213
|
}, {}));
|
|
1218
1214
|
continue;
|
|
1219
1215
|
case "notation-simple":
|
|
@@ -1258,7 +1254,7 @@ function es(e) {
|
|
|
1258
1254
|
case "integer-width":
|
|
1259
1255
|
if (i.options.length > 1)
|
|
1260
1256
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1261
|
-
i.options[0].replace(
|
|
1257
|
+
i.options[0].replace(Jo, function(c, u, f, m, y, A) {
|
|
1262
1258
|
if (u)
|
|
1263
1259
|
t.minimumIntegerDigits = f.length;
|
|
1264
1260
|
else {
|
|
@@ -1271,7 +1267,7 @@ function es(e) {
|
|
|
1271
1267
|
});
|
|
1272
1268
|
continue;
|
|
1273
1269
|
}
|
|
1274
|
-
if (
|
|
1270
|
+
if (pi.test(i.stem)) {
|
|
1275
1271
|
t.minimumIntegerDigits = i.stem.length;
|
|
1276
1272
|
continue;
|
|
1277
1273
|
}
|
|
@@ -1282,21 +1278,21 @@ function es(e) {
|
|
|
1282
1278
|
return f === "*" ? t.minimumFractionDigits = u.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : y && A ? (t.minimumFractionDigits = y.length, t.maximumFractionDigits = y.length + A.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1283
1279
|
});
|
|
1284
1280
|
var o = i.options[0];
|
|
1285
|
-
o === "w" ? t =
|
|
1281
|
+
o === "w" ? t = j(j({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = j(j({}, t), dr(o)));
|
|
1286
1282
|
continue;
|
|
1287
1283
|
}
|
|
1288
|
-
if (
|
|
1289
|
-
t =
|
|
1284
|
+
if (di.test(i.stem)) {
|
|
1285
|
+
t = j(j({}, t), dr(i.stem));
|
|
1290
1286
|
continue;
|
|
1291
1287
|
}
|
|
1292
1288
|
var l = gi(i.stem);
|
|
1293
|
-
l && (t =
|
|
1294
|
-
var a =
|
|
1295
|
-
a && (t =
|
|
1289
|
+
l && (t = j(j({}, t), l));
|
|
1290
|
+
var a = Qo(i.stem);
|
|
1291
|
+
a && (t = j(j({}, t), a));
|
|
1296
1292
|
}
|
|
1297
1293
|
return t;
|
|
1298
1294
|
}
|
|
1299
|
-
var
|
|
1295
|
+
var Nt = {
|
|
1300
1296
|
"001": [
|
|
1301
1297
|
"H",
|
|
1302
1298
|
"h"
|
|
@@ -2711,13 +2707,13 @@ var It = {
|
|
|
2711
2707
|
"h"
|
|
2712
2708
|
]
|
|
2713
2709
|
};
|
|
2714
|
-
function
|
|
2710
|
+
function es(e, t) {
|
|
2715
2711
|
for (var n = "", r = 0; r < e.length; r++) {
|
|
2716
2712
|
var i = e.charAt(r);
|
|
2717
2713
|
if (i === "j") {
|
|
2718
2714
|
for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2719
2715
|
o++, r++;
|
|
2720
|
-
var l = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), c = "a", u =
|
|
2716
|
+
var l = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), c = "a", u = ts(t);
|
|
2721
2717
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2722
2718
|
n += c;
|
|
2723
2719
|
for (; l-- > 0; )
|
|
@@ -2727,7 +2723,7 @@ function ts(e, t) {
|
|
|
2727
2723
|
}
|
|
2728
2724
|
return n;
|
|
2729
2725
|
}
|
|
2730
|
-
function
|
|
2726
|
+
function ts(e) {
|
|
2731
2727
|
var t = e.hourCycle;
|
|
2732
2728
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2733
2729
|
e.hourCycles && // @ts-ignore
|
|
@@ -2746,23 +2742,23 @@ function ns(e) {
|
|
|
2746
2742
|
}
|
|
2747
2743
|
var n = e.language, r;
|
|
2748
2744
|
n !== "root" && (r = e.maximize().region);
|
|
2749
|
-
var i =
|
|
2745
|
+
var i = Nt[r || ""] || Nt[n || ""] || Nt["".concat(n, "-001")] || Nt["001"];
|
|
2750
2746
|
return i[0];
|
|
2751
2747
|
}
|
|
2752
|
-
var
|
|
2748
|
+
var fn, ns = new RegExp("^".concat(mi.source, "*")), rs = new RegExp("".concat(mi.source, "*$"));
|
|
2753
2749
|
function F(e, t) {
|
|
2754
2750
|
return { start: e, end: t };
|
|
2755
2751
|
}
|
|
2756
|
-
var
|
|
2752
|
+
var is = !!String.prototype.startsWith && "_a".startsWith("a", 1), os = !!String.fromCodePoint, ss = !!Object.fromEntries, as = !!String.prototype.codePointAt, ls = !!String.prototype.trimStart, us = !!String.prototype.trimEnd, cs = !!Number.isSafeInteger, fs = cs ? Number.isSafeInteger : function(e) {
|
|
2757
2753
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2758
|
-
},
|
|
2754
|
+
}, vn = !0;
|
|
2759
2755
|
try {
|
|
2760
|
-
var
|
|
2761
|
-
|
|
2756
|
+
var hs = bi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2757
|
+
vn = ((fn = hs.exec("a")) === null || fn === void 0 ? void 0 : fn[0]) === "a";
|
|
2762
2758
|
} catch {
|
|
2763
|
-
|
|
2759
|
+
vn = !1;
|
|
2764
2760
|
}
|
|
2765
|
-
var gr =
|
|
2761
|
+
var gr = is ? (
|
|
2766
2762
|
// Native
|
|
2767
2763
|
function(t, n, r) {
|
|
2768
2764
|
return t.startsWith(n, r);
|
|
@@ -2772,7 +2768,7 @@ var gr = os ? (
|
|
|
2772
2768
|
function(t, n, r) {
|
|
2773
2769
|
return t.slice(r, r + n.length) === n;
|
|
2774
2770
|
}
|
|
2775
|
-
),
|
|
2771
|
+
), Tn = os ? String.fromCodePoint : (
|
|
2776
2772
|
// IE11
|
|
2777
2773
|
function() {
|
|
2778
2774
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
@@ -2786,7 +2782,7 @@ var gr = os ? (
|
|
|
2786
2782
|
}
|
|
2787
2783
|
), _r = (
|
|
2788
2784
|
// native
|
|
2789
|
-
|
|
2785
|
+
ss ? Object.fromEntries : (
|
|
2790
2786
|
// Ponyfill
|
|
2791
2787
|
function(t) {
|
|
2792
2788
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
@@ -2796,7 +2792,7 @@ var gr = os ? (
|
|
|
2796
2792
|
return n;
|
|
2797
2793
|
}
|
|
2798
2794
|
)
|
|
2799
|
-
), _i =
|
|
2795
|
+
), _i = as ? (
|
|
2800
2796
|
// Native
|
|
2801
2797
|
function(t, n) {
|
|
2802
2798
|
return t.codePointAt(n);
|
|
@@ -2810,7 +2806,7 @@ var gr = os ? (
|
|
|
2810
2806
|
return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2811
2807
|
}
|
|
2812
2808
|
}
|
|
2813
|
-
),
|
|
2809
|
+
), ms = ls ? (
|
|
2814
2810
|
// Native
|
|
2815
2811
|
function(t) {
|
|
2816
2812
|
return t.trimStart();
|
|
@@ -2818,9 +2814,9 @@ var gr = os ? (
|
|
|
2818
2814
|
) : (
|
|
2819
2815
|
// Ponyfill
|
|
2820
2816
|
function(t) {
|
|
2821
|
-
return t.replace(
|
|
2817
|
+
return t.replace(ns, "");
|
|
2822
2818
|
}
|
|
2823
|
-
), ds =
|
|
2819
|
+
), ds = us ? (
|
|
2824
2820
|
// Native
|
|
2825
2821
|
function(t) {
|
|
2826
2822
|
return t.trimEnd();
|
|
@@ -2828,32 +2824,32 @@ var gr = os ? (
|
|
|
2828
2824
|
) : (
|
|
2829
2825
|
// Ponyfill
|
|
2830
2826
|
function(t) {
|
|
2831
|
-
return t.replace(
|
|
2827
|
+
return t.replace(rs, "");
|
|
2832
2828
|
}
|
|
2833
2829
|
);
|
|
2834
2830
|
function bi(e, t) {
|
|
2835
2831
|
return new RegExp(e, t);
|
|
2836
2832
|
}
|
|
2837
|
-
var
|
|
2838
|
-
if (
|
|
2833
|
+
var Sn;
|
|
2834
|
+
if (vn) {
|
|
2839
2835
|
var br = bi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2840
|
-
|
|
2836
|
+
Sn = function(t, n) {
|
|
2841
2837
|
var r;
|
|
2842
2838
|
br.lastIndex = n;
|
|
2843
2839
|
var i = br.exec(t);
|
|
2844
2840
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2845
2841
|
};
|
|
2846
2842
|
} else
|
|
2847
|
-
|
|
2843
|
+
Sn = function(t, n) {
|
|
2848
2844
|
for (var r = []; ; ) {
|
|
2849
2845
|
var i = _i(t, n);
|
|
2850
|
-
if (i === void 0 || Ei(i) ||
|
|
2846
|
+
if (i === void 0 || Ei(i) || bs(i))
|
|
2851
2847
|
break;
|
|
2852
2848
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2853
2849
|
}
|
|
2854
|
-
return
|
|
2850
|
+
return Tn.apply(void 0, r);
|
|
2855
2851
|
};
|
|
2856
|
-
var
|
|
2852
|
+
var ps = (
|
|
2857
2853
|
/** @class */
|
|
2858
2854
|
function() {
|
|
2859
2855
|
function e(t, n) {
|
|
@@ -2877,14 +2873,14 @@ var gs = (
|
|
|
2877
2873
|
if (o === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2878
2874
|
var a = this.clonePosition();
|
|
2879
2875
|
this.bump(), i.push({
|
|
2880
|
-
type:
|
|
2876
|
+
type: K.pound,
|
|
2881
2877
|
location: F(a, this.clonePosition())
|
|
2882
2878
|
});
|
|
2883
2879
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2884
2880
|
if (r)
|
|
2885
2881
|
break;
|
|
2886
2882
|
return this.error(k.UNMATCHED_CLOSING_TAG, F(this.clonePosition(), this.clonePosition()));
|
|
2887
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2883
|
+
} else if (o === 60 && !this.ignoreTag && wn(this.peek() || 0)) {
|
|
2888
2884
|
var l = this.parseTag(t, n);
|
|
2889
2885
|
if (l.err)
|
|
2890
2886
|
return l;
|
|
@@ -2905,7 +2901,7 @@ var gs = (
|
|
|
2905
2901
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2906
2902
|
return {
|
|
2907
2903
|
val: {
|
|
2908
|
-
type:
|
|
2904
|
+
type: K.literal,
|
|
2909
2905
|
value: "<".concat(i, "/>"),
|
|
2910
2906
|
location: F(r, this.clonePosition())
|
|
2911
2907
|
},
|
|
@@ -2917,12 +2913,12 @@ var gs = (
|
|
|
2917
2913
|
return o;
|
|
2918
2914
|
var l = o.val, a = this.clonePosition();
|
|
2919
2915
|
if (this.bumpIf("</")) {
|
|
2920
|
-
if (this.isEOF() || !
|
|
2916
|
+
if (this.isEOF() || !wn(this.char()))
|
|
2921
2917
|
return this.error(k.INVALID_TAG, F(a, this.clonePosition()));
|
|
2922
2918
|
var c = this.clonePosition(), u = this.parseTagName();
|
|
2923
2919
|
return i !== u ? this.error(k.UNMATCHED_CLOSING_TAG, F(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2924
2920
|
val: {
|
|
2925
|
-
type:
|
|
2921
|
+
type: K.tag,
|
|
2926
2922
|
value: i,
|
|
2927
2923
|
children: l,
|
|
2928
2924
|
location: F(r, this.clonePosition())
|
|
@@ -2935,7 +2931,7 @@ var gs = (
|
|
|
2935
2931
|
return this.error(k.INVALID_TAG, F(r, this.clonePosition()));
|
|
2936
2932
|
}, e.prototype.parseTagName = function() {
|
|
2937
2933
|
var t = this.offset();
|
|
2938
|
-
for (this.bump(); !this.isEOF() &&
|
|
2934
|
+
for (this.bump(); !this.isEOF() && _s(this.char()); )
|
|
2939
2935
|
this.bump();
|
|
2940
2936
|
return this.message.slice(t, this.offset());
|
|
2941
2937
|
}, e.prototype.parseLiteral = function(t, n) {
|
|
@@ -2959,12 +2955,12 @@ var gs = (
|
|
|
2959
2955
|
}
|
|
2960
2956
|
var c = F(r, this.clonePosition());
|
|
2961
2957
|
return {
|
|
2962
|
-
val: { type:
|
|
2958
|
+
val: { type: K.literal, value: i, location: c },
|
|
2963
2959
|
err: null
|
|
2964
2960
|
};
|
|
2965
2961
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2966
2962
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2967
|
-
!
|
|
2963
|
+
!gs(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2968
2964
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2969
2965
|
if (this.isEOF() || this.char() !== 39)
|
|
2970
2966
|
return null;
|
|
@@ -2998,12 +2994,12 @@ var gs = (
|
|
|
2998
2994
|
n.push(r);
|
|
2999
2995
|
this.bump();
|
|
3000
2996
|
}
|
|
3001
|
-
return
|
|
2997
|
+
return Tn.apply(void 0, n);
|
|
3002
2998
|
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
3003
2999
|
if (this.isEOF())
|
|
3004
3000
|
return null;
|
|
3005
3001
|
var r = this.char();
|
|
3006
|
-
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
3002
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Tn(r));
|
|
3007
3003
|
}, e.prototype.parseArgument = function(t, n) {
|
|
3008
3004
|
var r = this.clonePosition();
|
|
3009
3005
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3019,7 +3015,7 @@ var gs = (
|
|
|
3019
3015
|
case 125:
|
|
3020
3016
|
return this.bump(), {
|
|
3021
3017
|
val: {
|
|
3022
|
-
type:
|
|
3018
|
+
type: K.argument,
|
|
3023
3019
|
// value does not include the opening and closing braces.
|
|
3024
3020
|
value: i,
|
|
3025
3021
|
location: F(r, this.clonePosition())
|
|
@@ -3032,7 +3028,7 @@ var gs = (
|
|
|
3032
3028
|
return this.error(k.MALFORMED_ARGUMENT, F(r, this.clonePosition()));
|
|
3033
3029
|
}
|
|
3034
3030
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3035
|
-
var t = this.clonePosition(), n = this.offset(), r =
|
|
3031
|
+
var t = this.clonePosition(), n = this.offset(), r = Sn(this.message, n), i = n + r.length;
|
|
3036
3032
|
this.bumpTo(i);
|
|
3037
3033
|
var o = this.clonePosition(), l = F(t, o);
|
|
3038
3034
|
return { value: r, location: l };
|
|
@@ -3062,33 +3058,33 @@ var gs = (
|
|
|
3062
3058
|
return x;
|
|
3063
3059
|
var g = F(i, this.clonePosition());
|
|
3064
3060
|
if (u && gr(u?.style, "::", 0)) {
|
|
3065
|
-
var N =
|
|
3061
|
+
var N = ms(u.style.slice(2));
|
|
3066
3062
|
if (a === "number") {
|
|
3067
3063
|
var m = this.parseNumberSkeletonFromString(N, u.styleLocation);
|
|
3068
3064
|
return m.err ? m : {
|
|
3069
|
-
val: { type:
|
|
3065
|
+
val: { type: K.number, value: r, location: g, style: m.val },
|
|
3070
3066
|
err: null
|
|
3071
3067
|
};
|
|
3072
3068
|
} else {
|
|
3073
3069
|
if (N.length === 0)
|
|
3074
3070
|
return this.error(k.EXPECT_DATE_TIME_SKELETON, g);
|
|
3075
3071
|
var U = N;
|
|
3076
|
-
this.locale && (U =
|
|
3072
|
+
this.locale && (U = es(N, this.locale));
|
|
3077
3073
|
var y = {
|
|
3078
|
-
type:
|
|
3074
|
+
type: tt.dateTime,
|
|
3079
3075
|
pattern: U,
|
|
3080
3076
|
location: u.styleLocation,
|
|
3081
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3082
|
-
},
|
|
3077
|
+
parsedOptions: this.shouldParseSkeletons ? Xo(U) : {}
|
|
3078
|
+
}, X = a === "date" ? K.date : K.time;
|
|
3083
3079
|
return {
|
|
3084
|
-
val: { type:
|
|
3080
|
+
val: { type: X, value: r, location: g, style: y },
|
|
3085
3081
|
err: null
|
|
3086
3082
|
};
|
|
3087
3083
|
}
|
|
3088
3084
|
}
|
|
3089
3085
|
return {
|
|
3090
3086
|
val: {
|
|
3091
|
-
type: a === "number" ?
|
|
3087
|
+
type: a === "number" ? K.number : a === "date" ? K.date : K.time,
|
|
3092
3088
|
value: r,
|
|
3093
3089
|
location: g,
|
|
3094
3090
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
@@ -3101,7 +3097,7 @@ var gs = (
|
|
|
3101
3097
|
case "select": {
|
|
3102
3098
|
var R = this.clonePosition();
|
|
3103
3099
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3104
|
-
return this.error(k.EXPECT_SELECT_ARGUMENT_OPTIONS, F(R,
|
|
3100
|
+
return this.error(k.EXPECT_SELECT_ARGUMENT_OPTIONS, F(R, j({}, R)));
|
|
3105
3101
|
this.bumpSpace();
|
|
3106
3102
|
var H = this.parseIdentifierIfPossible(), I = 0;
|
|
3107
3103
|
if (a !== "select" && H.value === "offset") {
|
|
@@ -3113,26 +3109,26 @@ var gs = (
|
|
|
3113
3109
|
return m;
|
|
3114
3110
|
this.bumpSpace(), H = this.parseIdentifierIfPossible(), I = m.val;
|
|
3115
3111
|
}
|
|
3116
|
-
var
|
|
3117
|
-
if (
|
|
3118
|
-
return
|
|
3112
|
+
var V = this.tryParsePluralOrSelectOptions(t, a, n, H);
|
|
3113
|
+
if (V.err)
|
|
3114
|
+
return V;
|
|
3119
3115
|
var x = this.tryParseArgumentClose(i);
|
|
3120
3116
|
if (x.err)
|
|
3121
3117
|
return x;
|
|
3122
3118
|
var oe = F(i, this.clonePosition());
|
|
3123
3119
|
return a === "select" ? {
|
|
3124
3120
|
val: {
|
|
3125
|
-
type:
|
|
3121
|
+
type: K.select,
|
|
3126
3122
|
value: r,
|
|
3127
|
-
options: _r(
|
|
3123
|
+
options: _r(V.val),
|
|
3128
3124
|
location: oe
|
|
3129
3125
|
},
|
|
3130
3126
|
err: null
|
|
3131
3127
|
} : {
|
|
3132
3128
|
val: {
|
|
3133
|
-
type:
|
|
3129
|
+
type: K.plural,
|
|
3134
3130
|
value: r,
|
|
3135
|
-
options: _r(
|
|
3131
|
+
options: _r(V.val),
|
|
3136
3132
|
offset: I,
|
|
3137
3133
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3138
3134
|
location: oe
|
|
@@ -3183,16 +3179,16 @@ var gs = (
|
|
|
3183
3179
|
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
3184
3180
|
var r = [];
|
|
3185
3181
|
try {
|
|
3186
|
-
r =
|
|
3182
|
+
r = Zo(t);
|
|
3187
3183
|
} catch {
|
|
3188
3184
|
return this.error(k.INVALID_NUMBER_SKELETON, n);
|
|
3189
3185
|
}
|
|
3190
3186
|
return {
|
|
3191
3187
|
val: {
|
|
3192
|
-
type:
|
|
3188
|
+
type: tt.number,
|
|
3193
3189
|
tokens: r,
|
|
3194
3190
|
location: n,
|
|
3195
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3191
|
+
parsedOptions: this.shouldParseSkeletons ? Ko(r) : {}
|
|
3196
3192
|
},
|
|
3197
3193
|
err: null
|
|
3198
3194
|
};
|
|
@@ -3240,7 +3236,7 @@ var gs = (
|
|
|
3240
3236
|
break;
|
|
3241
3237
|
}
|
|
3242
3238
|
var c = F(i, this.clonePosition());
|
|
3243
|
-
return o ? (l *= r,
|
|
3239
|
+
return o ? (l *= r, fs(l) ? { val: l, err: null } : this.error(n, c)) : this.error(t, c);
|
|
3244
3240
|
}, e.prototype.offset = function() {
|
|
3245
3241
|
return this.position.offset;
|
|
3246
3242
|
}, e.prototype.isEOF = function() {
|
|
@@ -3306,47 +3302,47 @@ var gs = (
|
|
|
3306
3302
|
}, e;
|
|
3307
3303
|
}()
|
|
3308
3304
|
);
|
|
3309
|
-
function
|
|
3305
|
+
function wn(e) {
|
|
3310
3306
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3311
3307
|
}
|
|
3312
|
-
function
|
|
3313
|
-
return
|
|
3308
|
+
function gs(e) {
|
|
3309
|
+
return wn(e) || e === 47;
|
|
3314
3310
|
}
|
|
3315
|
-
function
|
|
3311
|
+
function _s(e) {
|
|
3316
3312
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
3317
3313
|
}
|
|
3318
3314
|
function Ei(e) {
|
|
3319
3315
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3320
3316
|
}
|
|
3321
|
-
function
|
|
3317
|
+
function bs(e) {
|
|
3322
3318
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3323
3319
|
}
|
|
3324
|
-
function
|
|
3320
|
+
function An(e) {
|
|
3325
3321
|
e.forEach(function(t) {
|
|
3326
3322
|
if (delete t.location, ui(t) || ci(t))
|
|
3327
3323
|
for (var n in t.options)
|
|
3328
|
-
delete t.options[n].location,
|
|
3324
|
+
delete t.options[n].location, An(t.options[n].value);
|
|
3329
3325
|
else
|
|
3330
|
-
si(t) && hi(t.style) || (ai(t) || li(t)) &&
|
|
3326
|
+
si(t) && hi(t.style) || (ai(t) || li(t)) && xn(t.style) ? delete t.style.location : fi(t) && An(t.children);
|
|
3331
3327
|
});
|
|
3332
3328
|
}
|
|
3333
|
-
function
|
|
3334
|
-
t === void 0 && (t = {}), t =
|
|
3335
|
-
var n = new
|
|
3329
|
+
function Es(e, t) {
|
|
3330
|
+
t === void 0 && (t = {}), t = j({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3331
|
+
var n = new ps(e, t).parse();
|
|
3336
3332
|
if (n.err) {
|
|
3337
3333
|
var r = SyntaxError(k[n.err.kind]);
|
|
3338
3334
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3339
3335
|
}
|
|
3340
|
-
return t?.captureLocation ||
|
|
3336
|
+
return t?.captureLocation || An(n.val), n.val;
|
|
3341
3337
|
}
|
|
3342
|
-
var
|
|
3338
|
+
var nt;
|
|
3343
3339
|
(function(e) {
|
|
3344
3340
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3345
|
-
})(
|
|
3346
|
-
var
|
|
3341
|
+
})(nt || (nt = {}));
|
|
3342
|
+
var Qt = (
|
|
3347
3343
|
/** @class */
|
|
3348
3344
|
function(e) {
|
|
3349
|
-
|
|
3345
|
+
Jt(t, e);
|
|
3350
3346
|
function t(n, r, i) {
|
|
3351
3347
|
var o = e.call(this, n) || this;
|
|
3352
3348
|
return o.code = r, o.originalMessage = i, o;
|
|
@@ -3358,44 +3354,44 @@ var en = (
|
|
|
3358
3354
|
), Er = (
|
|
3359
3355
|
/** @class */
|
|
3360
3356
|
function(e) {
|
|
3361
|
-
|
|
3357
|
+
Jt(t, e);
|
|
3362
3358
|
function t(n, r, i, o) {
|
|
3363
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3359
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), nt.INVALID_VALUE, o) || this;
|
|
3364
3360
|
}
|
|
3365
3361
|
return t;
|
|
3366
|
-
}(
|
|
3367
|
-
),
|
|
3362
|
+
}(Qt)
|
|
3363
|
+
), ys = (
|
|
3368
3364
|
/** @class */
|
|
3369
3365
|
function(e) {
|
|
3370
|
-
|
|
3366
|
+
Jt(t, e);
|
|
3371
3367
|
function t(n, r, i) {
|
|
3372
|
-
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r),
|
|
3368
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), nt.INVALID_VALUE, i) || this;
|
|
3373
3369
|
}
|
|
3374
3370
|
return t;
|
|
3375
|
-
}(
|
|
3376
|
-
),
|
|
3371
|
+
}(Qt)
|
|
3372
|
+
), xs = (
|
|
3377
3373
|
/** @class */
|
|
3378
3374
|
function(e) {
|
|
3379
|
-
|
|
3375
|
+
Jt(t, e);
|
|
3380
3376
|
function t(n, r) {
|
|
3381
|
-
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'),
|
|
3377
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), nt.MISSING_VALUE, r) || this;
|
|
3382
3378
|
}
|
|
3383
3379
|
return t;
|
|
3384
|
-
}(
|
|
3380
|
+
}(Qt)
|
|
3385
3381
|
), ge;
|
|
3386
3382
|
(function(e) {
|
|
3387
3383
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3388
3384
|
})(ge || (ge = {}));
|
|
3389
|
-
function
|
|
3385
|
+
function vs(e) {
|
|
3390
3386
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3391
3387
|
var r = t[t.length - 1];
|
|
3392
3388
|
return !r || r.type !== ge.literal || n.type !== ge.literal ? t.push(n) : r.value += n.value, t;
|
|
3393
3389
|
}, []);
|
|
3394
3390
|
}
|
|
3395
|
-
function
|
|
3391
|
+
function Ts(e) {
|
|
3396
3392
|
return typeof e == "function";
|
|
3397
3393
|
}
|
|
3398
|
-
function
|
|
3394
|
+
function Ft(e, t, n, r, i, o, l) {
|
|
3399
3395
|
if (e.length === 1 && hr(e[0]))
|
|
3400
3396
|
return [
|
|
3401
3397
|
{
|
|
@@ -3412,7 +3408,7 @@ function Gt(e, t, n, r, i, o, l) {
|
|
|
3412
3408
|
});
|
|
3413
3409
|
continue;
|
|
3414
3410
|
}
|
|
3415
|
-
if (
|
|
3411
|
+
if (Wo(f)) {
|
|
3416
3412
|
typeof o == "number" && a.push({
|
|
3417
3413
|
type: ge.literal,
|
|
3418
3414
|
value: n.getNumberFormat(t).format(o)
|
|
@@ -3421,9 +3417,9 @@ function Gt(e, t, n, r, i, o, l) {
|
|
|
3421
3417
|
}
|
|
3422
3418
|
var m = f.value;
|
|
3423
3419
|
if (!(i && m in i))
|
|
3424
|
-
throw new
|
|
3420
|
+
throw new xs(m, l);
|
|
3425
3421
|
var y = i[m];
|
|
3426
|
-
if (
|
|
3422
|
+
if (zo(f)) {
|
|
3427
3423
|
(!y || typeof y == "string" || typeof y == "number") && (y = typeof y == "string" || typeof y == "number" ? String(y) : ""), a.push({
|
|
3428
3424
|
type: typeof y == "string" ? ge.literal : ge.object,
|
|
3429
3425
|
value: y
|
|
@@ -3431,7 +3427,7 @@ function Gt(e, t, n, r, i, o, l) {
|
|
|
3431
3427
|
continue;
|
|
3432
3428
|
}
|
|
3433
3429
|
if (ai(f)) {
|
|
3434
|
-
var A = typeof f.style == "string" ? r.date[f.style] :
|
|
3430
|
+
var A = typeof f.style == "string" ? r.date[f.style] : xn(f.style) ? f.style.parsedOptions : void 0;
|
|
3435
3431
|
a.push({
|
|
3436
3432
|
type: ge.literal,
|
|
3437
3433
|
value: n.getDateTimeFormat(t, A).format(y)
|
|
@@ -3439,7 +3435,7 @@ function Gt(e, t, n, r, i, o, l) {
|
|
|
3439
3435
|
continue;
|
|
3440
3436
|
}
|
|
3441
3437
|
if (li(f)) {
|
|
3442
|
-
var A = typeof f.style == "string" ? r.time[f.style] :
|
|
3438
|
+
var A = typeof f.style == "string" ? r.time[f.style] : xn(f.style) ? f.style.parsedOptions : r.time.medium;
|
|
3443
3439
|
a.push({
|
|
3444
3440
|
type: ge.literal,
|
|
3445
3441
|
value: n.getDateTimeFormat(t, A).format(y)
|
|
@@ -3456,12 +3452,12 @@ function Gt(e, t, n, r, i, o, l) {
|
|
|
3456
3452
|
}
|
|
3457
3453
|
if (fi(f)) {
|
|
3458
3454
|
var x = f.children, g = f.value, N = i[g];
|
|
3459
|
-
if (!
|
|
3460
|
-
throw new
|
|
3461
|
-
var U =
|
|
3455
|
+
if (!Ts(N))
|
|
3456
|
+
throw new ys(g, "function", l);
|
|
3457
|
+
var U = Ft(x, t, n, r, i, o), X = N(U.map(function(I) {
|
|
3462
3458
|
return I.value;
|
|
3463
3459
|
}));
|
|
3464
|
-
Array.isArray(
|
|
3460
|
+
Array.isArray(X) || (X = [X]), a.push.apply(a, X.map(function(I) {
|
|
3465
3461
|
return {
|
|
3466
3462
|
type: typeof I == "string" ? ge.literal : ge.object,
|
|
3467
3463
|
value: I
|
|
@@ -3472,38 +3468,38 @@ function Gt(e, t, n, r, i, o, l) {
|
|
|
3472
3468
|
var R = f.options[y] || f.options.other;
|
|
3473
3469
|
if (!R)
|
|
3474
3470
|
throw new Er(f.value, y, Object.keys(f.options), l);
|
|
3475
|
-
a.push.apply(a,
|
|
3471
|
+
a.push.apply(a, Ft(R.value, t, n, r, i));
|
|
3476
3472
|
continue;
|
|
3477
3473
|
}
|
|
3478
3474
|
if (ci(f)) {
|
|
3479
3475
|
var R = f.options["=".concat(y)];
|
|
3480
3476
|
if (!R) {
|
|
3481
3477
|
if (!Intl.PluralRules)
|
|
3482
|
-
throw new
|
|
3478
|
+
throw new Qt(`Intl.PluralRules is not available in this environment.
|
|
3483
3479
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3484
|
-
`,
|
|
3480
|
+
`, nt.MISSING_INTL_API, l);
|
|
3485
3481
|
var H = n.getPluralRules(t, { type: f.pluralType }).select(y - (f.offset || 0));
|
|
3486
3482
|
R = f.options[H] || f.options.other;
|
|
3487
3483
|
}
|
|
3488
3484
|
if (!R)
|
|
3489
3485
|
throw new Er(f.value, y, Object.keys(f.options), l);
|
|
3490
|
-
a.push.apply(a,
|
|
3486
|
+
a.push.apply(a, Ft(R.value, t, n, r, i, y - (f.offset || 0)));
|
|
3491
3487
|
continue;
|
|
3492
3488
|
}
|
|
3493
3489
|
}
|
|
3494
|
-
return
|
|
3490
|
+
return vs(a);
|
|
3495
3491
|
}
|
|
3496
|
-
function
|
|
3497
|
-
return t ?
|
|
3498
|
-
return n[r] =
|
|
3492
|
+
function Ss(e, t) {
|
|
3493
|
+
return t ? j(j(j({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3494
|
+
return n[r] = j(j({}, e[r]), t[r] || {}), n;
|
|
3499
3495
|
}, {})) : e;
|
|
3500
3496
|
}
|
|
3501
|
-
function
|
|
3497
|
+
function ws(e, t) {
|
|
3502
3498
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3503
|
-
return n[r] =
|
|
3504
|
-
},
|
|
3499
|
+
return n[r] = Ss(e[r], t[r]), n;
|
|
3500
|
+
}, j({}, e)) : e;
|
|
3505
3501
|
}
|
|
3506
|
-
function
|
|
3502
|
+
function hn(e) {
|
|
3507
3503
|
return {
|
|
3508
3504
|
create: function() {
|
|
3509
3505
|
return {
|
|
@@ -3517,35 +3513,35 @@ function pn(e) {
|
|
|
3517
3513
|
}
|
|
3518
3514
|
};
|
|
3519
3515
|
}
|
|
3520
|
-
function
|
|
3516
|
+
function As(e) {
|
|
3521
3517
|
return e === void 0 && (e = {
|
|
3522
3518
|
number: {},
|
|
3523
3519
|
dateTime: {},
|
|
3524
3520
|
pluralRules: {}
|
|
3525
3521
|
}), {
|
|
3526
|
-
getNumberFormat:
|
|
3522
|
+
getNumberFormat: un(function() {
|
|
3527
3523
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3528
3524
|
n[r] = arguments[r];
|
|
3529
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3525
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, ln([void 0], n, !1)))();
|
|
3530
3526
|
}, {
|
|
3531
|
-
cache:
|
|
3532
|
-
strategy:
|
|
3527
|
+
cache: hn(e.number),
|
|
3528
|
+
strategy: cn.variadic
|
|
3533
3529
|
}),
|
|
3534
|
-
getDateTimeFormat:
|
|
3530
|
+
getDateTimeFormat: un(function() {
|
|
3535
3531
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3536
3532
|
n[r] = arguments[r];
|
|
3537
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3533
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, ln([void 0], n, !1)))();
|
|
3538
3534
|
}, {
|
|
3539
|
-
cache:
|
|
3540
|
-
strategy:
|
|
3535
|
+
cache: hn(e.dateTime),
|
|
3536
|
+
strategy: cn.variadic
|
|
3541
3537
|
}),
|
|
3542
|
-
getPluralRules:
|
|
3538
|
+
getPluralRules: un(function() {
|
|
3543
3539
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3544
3540
|
n[r] = arguments[r];
|
|
3545
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3541
|
+
return new ((t = Intl.PluralRules).bind.apply(t, ln([void 0], n, !1)))();
|
|
3546
3542
|
}, {
|
|
3547
|
-
cache:
|
|
3548
|
-
strategy:
|
|
3543
|
+
cache: hn(e.pluralRules),
|
|
3544
|
+
strategy: cn.variadic
|
|
3549
3545
|
})
|
|
3550
3546
|
};
|
|
3551
3547
|
}
|
|
@@ -3568,7 +3564,7 @@ var yi = (
|
|
|
3568
3564
|
}, []);
|
|
3569
3565
|
return f.length <= 1 ? f[0] || "" : f;
|
|
3570
3566
|
}, this.formatToParts = function(c) {
|
|
3571
|
-
return
|
|
3567
|
+
return Ft(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
|
|
3572
3568
|
}, this.resolvedOptions = function() {
|
|
3573
3569
|
var c;
|
|
3574
3570
|
return {
|
|
@@ -3582,12 +3578,12 @@ var yi = (
|
|
|
3582
3578
|
var l = i || {};
|
|
3583
3579
|
l.formatters;
|
|
3584
3580
|
var a = Bo(l, ["formatters"]);
|
|
3585
|
-
this.ast = e.__parse(t,
|
|
3581
|
+
this.ast = e.__parse(t, j(j({}, a), { locale: this.resolvedLocale }));
|
|
3586
3582
|
} else
|
|
3587
3583
|
this.ast = t;
|
|
3588
3584
|
if (!Array.isArray(this.ast))
|
|
3589
3585
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3590
|
-
this.formats =
|
|
3586
|
+
this.formats = ws(e.formats, r), this.formatters = i && i.formatters || As(this.formatterCache);
|
|
3591
3587
|
}
|
|
3592
3588
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3593
3589
|
get: function() {
|
|
@@ -3600,7 +3596,7 @@ var yi = (
|
|
|
3600
3596
|
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3601
3597
|
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3602
3598
|
}
|
|
3603
|
-
}, e.__parse =
|
|
3599
|
+
}, e.__parse = Es, e.formats = {
|
|
3604
3600
|
number: {
|
|
3605
3601
|
integer: {
|
|
3606
3602
|
maximumFractionDigits: 0
|
|
@@ -3682,36 +3678,36 @@ function Ms(e, t) {
|
|
|
3682
3678
|
r = void 0;
|
|
3683
3679
|
return r;
|
|
3684
3680
|
}
|
|
3685
|
-
const
|
|
3681
|
+
const De = {}, Cs = (e, t, n) => n && (t in De || (De[t] = {}), e in De[t] || (De[t][e] = n), n), xi = (e, t) => {
|
|
3686
3682
|
if (t == null)
|
|
3687
3683
|
return;
|
|
3688
|
-
if (t in
|
|
3689
|
-
return
|
|
3690
|
-
const n =
|
|
3684
|
+
if (t in De && e in De[t])
|
|
3685
|
+
return De[t][e];
|
|
3686
|
+
const n = St(t);
|
|
3691
3687
|
for (let r = 0; r < n.length; r++) {
|
|
3692
|
-
const i = n[r], o =
|
|
3688
|
+
const i = n[r], o = Ls(i, e);
|
|
3693
3689
|
if (o)
|
|
3694
3690
|
return Cs(e, t, o);
|
|
3695
3691
|
}
|
|
3696
3692
|
};
|
|
3697
3693
|
let Rn;
|
|
3698
|
-
const
|
|
3699
|
-
function
|
|
3694
|
+
const Tt = vt({});
|
|
3695
|
+
function Os(e) {
|
|
3700
3696
|
return Rn[e] || null;
|
|
3701
3697
|
}
|
|
3702
3698
|
function vi(e) {
|
|
3703
3699
|
return e in Rn;
|
|
3704
3700
|
}
|
|
3705
|
-
function
|
|
3701
|
+
function Ls(e, t) {
|
|
3706
3702
|
if (!vi(e))
|
|
3707
3703
|
return null;
|
|
3708
|
-
const n =
|
|
3704
|
+
const n = Os(e);
|
|
3709
3705
|
return Ms(n, t);
|
|
3710
3706
|
}
|
|
3711
|
-
function
|
|
3707
|
+
function Hs(e) {
|
|
3712
3708
|
if (e == null)
|
|
3713
3709
|
return;
|
|
3714
|
-
const t =
|
|
3710
|
+
const t = St(e);
|
|
3715
3711
|
for (let n = 0; n < t.length; n++) {
|
|
3716
3712
|
const r = t[n];
|
|
3717
3713
|
if (vi(r))
|
|
@@ -3719,64 +3715,64 @@ function Ns(e) {
|
|
|
3719
3715
|
}
|
|
3720
3716
|
}
|
|
3721
3717
|
function Ti(e, ...t) {
|
|
3722
|
-
delete
|
|
3718
|
+
delete De[e], Tt.update((n) => (n[e] = Do.all([n[e] || {}, ...t]), n));
|
|
3723
3719
|
}
|
|
3724
|
-
|
|
3725
|
-
[
|
|
3720
|
+
it(
|
|
3721
|
+
[Tt],
|
|
3726
3722
|
([e]) => Object.keys(e)
|
|
3727
3723
|
);
|
|
3728
|
-
|
|
3729
|
-
const
|
|
3730
|
-
function
|
|
3731
|
-
|
|
3724
|
+
Tt.subscribe((e) => Rn = e);
|
|
3725
|
+
const Gt = {};
|
|
3726
|
+
function Ns(e, t) {
|
|
3727
|
+
Gt[e].delete(t), Gt[e].size === 0 && delete Gt[e];
|
|
3732
3728
|
}
|
|
3733
3729
|
function Si(e) {
|
|
3734
|
-
return
|
|
3730
|
+
return Gt[e];
|
|
3735
3731
|
}
|
|
3736
|
-
function
|
|
3737
|
-
return
|
|
3732
|
+
function Is(e) {
|
|
3733
|
+
return St(e).map((t) => {
|
|
3738
3734
|
const n = Si(t);
|
|
3739
3735
|
return [t, n ? [...n] : []];
|
|
3740
3736
|
}).filter(([, t]) => t.length > 0);
|
|
3741
3737
|
}
|
|
3742
|
-
function
|
|
3743
|
-
return e == null ? !1 :
|
|
3738
|
+
function Xt(e) {
|
|
3739
|
+
return e == null ? !1 : St(e).some(
|
|
3744
3740
|
(t) => {
|
|
3745
3741
|
var n;
|
|
3746
3742
|
return (n = Si(t)) == null ? void 0 : n.size;
|
|
3747
3743
|
}
|
|
3748
3744
|
);
|
|
3749
3745
|
}
|
|
3750
|
-
function
|
|
3746
|
+
function Ps(e, t) {
|
|
3751
3747
|
return Promise.all(
|
|
3752
|
-
t.map((r) => (
|
|
3748
|
+
t.map((r) => (Ns(e, r), r().then((i) => i.default || i)))
|
|
3753
3749
|
).then((r) => Ti(e, ...r));
|
|
3754
3750
|
}
|
|
3755
|
-
const
|
|
3751
|
+
const ct = {};
|
|
3756
3752
|
function wi(e) {
|
|
3757
|
-
if (!
|
|
3758
|
-
return e in
|
|
3759
|
-
const t =
|
|
3760
|
-
return
|
|
3753
|
+
if (!Xt(e))
|
|
3754
|
+
return e in ct ? ct[e] : Promise.resolve();
|
|
3755
|
+
const t = Is(e);
|
|
3756
|
+
return ct[e] = Promise.all(
|
|
3761
3757
|
t.map(
|
|
3762
|
-
([n, r]) =>
|
|
3758
|
+
([n, r]) => Ps(n, r)
|
|
3763
3759
|
)
|
|
3764
3760
|
).then(() => {
|
|
3765
|
-
if (
|
|
3761
|
+
if (Xt(e))
|
|
3766
3762
|
return wi(e);
|
|
3767
|
-
delete
|
|
3768
|
-
}),
|
|
3763
|
+
delete ct[e];
|
|
3764
|
+
}), ct[e];
|
|
3769
3765
|
}
|
|
3770
|
-
var yr = Object.getOwnPropertySymbols,
|
|
3766
|
+
var yr = Object.getOwnPropertySymbols, Rs = Object.prototype.hasOwnProperty, Ds = Object.prototype.propertyIsEnumerable, Bs = (e, t) => {
|
|
3771
3767
|
var n = {};
|
|
3772
3768
|
for (var r in e)
|
|
3773
|
-
|
|
3769
|
+
Rs.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3774
3770
|
if (e != null && yr)
|
|
3775
3771
|
for (var r of yr(e))
|
|
3776
|
-
t.indexOf(r) < 0 &&
|
|
3772
|
+
t.indexOf(r) < 0 && Ds.call(e, r) && (n[r] = e[r]);
|
|
3777
3773
|
return n;
|
|
3778
3774
|
};
|
|
3779
|
-
const
|
|
3775
|
+
const $s = {
|
|
3780
3776
|
number: {
|
|
3781
3777
|
scientific: { notation: "scientific" },
|
|
3782
3778
|
engineering: { notation: "engineering" },
|
|
@@ -3806,28 +3802,28 @@ const Us = {
|
|
|
3806
3802
|
}
|
|
3807
3803
|
}
|
|
3808
3804
|
};
|
|
3809
|
-
function
|
|
3805
|
+
function Us({ locale: e, id: t }) {
|
|
3810
3806
|
console.warn(
|
|
3811
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3807
|
+
`[svelte-i18n] The message "${t}" was not found in "${St(
|
|
3812
3808
|
e
|
|
3813
|
-
).join('", "')}".${
|
|
3809
|
+
).join('", "')}".${Xt(Ue()) ? `
|
|
3814
3810
|
|
|
3815
3811
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3816
3812
|
);
|
|
3817
3813
|
}
|
|
3818
|
-
const
|
|
3814
|
+
const ks = {
|
|
3819
3815
|
fallbackLocale: null,
|
|
3820
3816
|
loadingDelay: 200,
|
|
3821
|
-
formats:
|
|
3817
|
+
formats: $s,
|
|
3822
3818
|
warnOnMissingMessages: !0,
|
|
3823
3819
|
handleMissingMessage: void 0,
|
|
3824
3820
|
ignoreTag: !0
|
|
3825
|
-
},
|
|
3826
|
-
function
|
|
3827
|
-
return
|
|
3821
|
+
}, gt = ks;
|
|
3822
|
+
function rt() {
|
|
3823
|
+
return gt;
|
|
3828
3824
|
}
|
|
3829
|
-
function
|
|
3830
|
-
const t = e, { formats: n } = t, r =
|
|
3825
|
+
function Fs(e) {
|
|
3826
|
+
const t = e, { formats: n } = t, r = Bs(t, ["formats"]);
|
|
3831
3827
|
let i = e.fallbackLocale;
|
|
3832
3828
|
if (e.initialLocale)
|
|
3833
3829
|
try {
|
|
@@ -3837,134 +3833,134 @@ function Gs(e) {
|
|
|
3837
3833
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3838
3834
|
);
|
|
3839
3835
|
}
|
|
3840
|
-
return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage =
|
|
3836
|
+
return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage = Us : console.warn(
|
|
3841
3837
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3842
|
-
)), Object.assign(
|
|
3838
|
+
)), Object.assign(gt, r, { initialLocale: i }), n && ("number" in n && Object.assign(gt.formats.number, n.number), "date" in n && Object.assign(gt.formats.date, n.date), "time" in n && Object.assign(gt.formats.time, n.time)), Ge.set(i);
|
|
3843
3839
|
}
|
|
3844
|
-
const
|
|
3845
|
-
var
|
|
3840
|
+
const mn = vt(!1);
|
|
3841
|
+
var Gs = Object.defineProperty, js = Object.defineProperties, zs = Object.getOwnPropertyDescriptors, xr = Object.getOwnPropertySymbols, Ws = Object.prototype.hasOwnProperty, Vs = Object.prototype.propertyIsEnumerable, vr = (e, t, n) => t in e ? Gs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Xs = (e, t) => {
|
|
3846
3842
|
for (var n in t || (t = {}))
|
|
3847
|
-
|
|
3843
|
+
Ws.call(t, n) && vr(e, n, t[n]);
|
|
3848
3844
|
if (xr)
|
|
3849
3845
|
for (var n of xr(t))
|
|
3850
|
-
|
|
3846
|
+
Vs.call(t, n) && vr(e, n, t[n]);
|
|
3851
3847
|
return e;
|
|
3852
|
-
},
|
|
3853
|
-
let
|
|
3854
|
-
const
|
|
3848
|
+
}, Ys = (e, t) => js(e, zs(t));
|
|
3849
|
+
let Mn;
|
|
3850
|
+
const Yt = vt(null);
|
|
3855
3851
|
function Tr(e) {
|
|
3856
3852
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3857
3853
|
}
|
|
3858
|
-
function
|
|
3854
|
+
function St(e, t = rt().fallbackLocale) {
|
|
3859
3855
|
const n = Tr(e);
|
|
3860
3856
|
return t ? [.../* @__PURE__ */ new Set([...n, ...Tr(t)])] : n;
|
|
3861
3857
|
}
|
|
3862
|
-
function
|
|
3863
|
-
return
|
|
3858
|
+
function Ue() {
|
|
3859
|
+
return Mn ?? void 0;
|
|
3864
3860
|
}
|
|
3865
|
-
|
|
3866
|
-
|
|
3861
|
+
Yt.subscribe((e) => {
|
|
3862
|
+
Mn = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3867
3863
|
});
|
|
3868
|
-
const
|
|
3869
|
-
if (e &&
|
|
3870
|
-
const { loadingDelay: t } =
|
|
3864
|
+
const Zs = (e) => {
|
|
3865
|
+
if (e && Hs(e) && Xt(e)) {
|
|
3866
|
+
const { loadingDelay: t } = rt();
|
|
3871
3867
|
let n;
|
|
3872
|
-
return typeof window < "u" &&
|
|
3873
|
-
() =>
|
|
3868
|
+
return typeof window < "u" && Ue() != null && t ? n = window.setTimeout(
|
|
3869
|
+
() => mn.set(!0),
|
|
3874
3870
|
t
|
|
3875
|
-
) :
|
|
3876
|
-
|
|
3871
|
+
) : mn.set(!0), wi(e).then(() => {
|
|
3872
|
+
Yt.set(e);
|
|
3877
3873
|
}).finally(() => {
|
|
3878
|
-
clearTimeout(n),
|
|
3874
|
+
clearTimeout(n), mn.set(!1);
|
|
3879
3875
|
});
|
|
3880
3876
|
}
|
|
3881
|
-
return
|
|
3882
|
-
},
|
|
3883
|
-
set:
|
|
3884
|
-
}),
|
|
3877
|
+
return Yt.set(e);
|
|
3878
|
+
}, Ge = Ys(Xs({}, Yt), {
|
|
3879
|
+
set: Zs
|
|
3880
|
+
}), Kt = (e) => {
|
|
3885
3881
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3886
3882
|
return (r) => {
|
|
3887
3883
|
const i = JSON.stringify(r);
|
|
3888
3884
|
return i in t ? t[i] : t[i] = e(r);
|
|
3889
3885
|
};
|
|
3890
3886
|
};
|
|
3891
|
-
var
|
|
3887
|
+
var qs = Object.defineProperty, Zt = Object.getOwnPropertySymbols, Ai = Object.prototype.hasOwnProperty, Mi = Object.prototype.propertyIsEnumerable, Sr = (e, t, n) => t in e ? qs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Dn = (e, t) => {
|
|
3892
3888
|
for (var n in t || (t = {}))
|
|
3893
3889
|
Ai.call(t, n) && Sr(e, n, t[n]);
|
|
3894
|
-
if (
|
|
3895
|
-
for (var n of
|
|
3896
|
-
|
|
3890
|
+
if (Zt)
|
|
3891
|
+
for (var n of Zt(t))
|
|
3892
|
+
Mi.call(t, n) && Sr(e, n, t[n]);
|
|
3897
3893
|
return e;
|
|
3898
|
-
},
|
|
3894
|
+
}, ot = (e, t) => {
|
|
3899
3895
|
var n = {};
|
|
3900
3896
|
for (var r in e)
|
|
3901
3897
|
Ai.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3902
|
-
if (e != null &&
|
|
3903
|
-
for (var r of
|
|
3904
|
-
t.indexOf(r) < 0 &&
|
|
3898
|
+
if (e != null && Zt)
|
|
3899
|
+
for (var r of Zt(e))
|
|
3900
|
+
t.indexOf(r) < 0 && Mi.call(e, r) && (n[r] = e[r]);
|
|
3905
3901
|
return n;
|
|
3906
3902
|
};
|
|
3907
|
-
const
|
|
3908
|
-
const { formats: n } =
|
|
3903
|
+
const xt = (e, t) => {
|
|
3904
|
+
const { formats: n } = rt();
|
|
3909
3905
|
if (e in n && t in n[e])
|
|
3910
3906
|
return n[e][t];
|
|
3911
3907
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3912
|
-
},
|
|
3908
|
+
}, Js = Kt(
|
|
3913
3909
|
(e) => {
|
|
3914
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3910
|
+
var t = e, { locale: n, format: r } = t, i = ot(t, ["locale", "format"]);
|
|
3915
3911
|
if (n == null)
|
|
3916
3912
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3917
|
-
return r && (i =
|
|
3913
|
+
return r && (i = xt("number", r)), new Intl.NumberFormat(n, i);
|
|
3918
3914
|
}
|
|
3919
|
-
),
|
|
3915
|
+
), Qs = Kt(
|
|
3920
3916
|
(e) => {
|
|
3921
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3917
|
+
var t = e, { locale: n, format: r } = t, i = ot(t, ["locale", "format"]);
|
|
3922
3918
|
if (n == null)
|
|
3923
3919
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3924
|
-
return r ? i =
|
|
3920
|
+
return r ? i = xt("date", r) : Object.keys(i).length === 0 && (i = xt("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3925
3921
|
}
|
|
3926
|
-
),
|
|
3922
|
+
), Ks = Kt(
|
|
3927
3923
|
(e) => {
|
|
3928
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3924
|
+
var t = e, { locale: n, format: r } = t, i = ot(t, ["locale", "format"]);
|
|
3929
3925
|
if (n == null)
|
|
3930
3926
|
throw new Error(
|
|
3931
3927
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3932
3928
|
);
|
|
3933
|
-
return r ? i =
|
|
3929
|
+
return r ? i = xt("time", r) : Object.keys(i).length === 0 && (i = xt("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3934
3930
|
}
|
|
3935
|
-
),
|
|
3931
|
+
), ea = (e = {}) => {
|
|
3936
3932
|
var t = e, {
|
|
3937
|
-
locale: n =
|
|
3938
|
-
} = t, r =
|
|
3933
|
+
locale: n = Ue()
|
|
3934
|
+
} = t, r = ot(t, [
|
|
3939
3935
|
"locale"
|
|
3940
3936
|
]);
|
|
3941
|
-
return
|
|
3942
|
-
},
|
|
3937
|
+
return Js(Dn({ locale: n }, r));
|
|
3938
|
+
}, ta = (e = {}) => {
|
|
3943
3939
|
var t = e, {
|
|
3944
|
-
locale: n =
|
|
3945
|
-
} = t, r =
|
|
3940
|
+
locale: n = Ue()
|
|
3941
|
+
} = t, r = ot(t, [
|
|
3946
3942
|
"locale"
|
|
3947
3943
|
]);
|
|
3948
|
-
return
|
|
3949
|
-
},
|
|
3944
|
+
return Qs(Dn({ locale: n }, r));
|
|
3945
|
+
}, na = (e = {}) => {
|
|
3950
3946
|
var t = e, {
|
|
3951
|
-
locale: n =
|
|
3952
|
-
} = t, r =
|
|
3947
|
+
locale: n = Ue()
|
|
3948
|
+
} = t, r = ot(t, [
|
|
3953
3949
|
"locale"
|
|
3954
3950
|
]);
|
|
3955
|
-
return
|
|
3956
|
-
},
|
|
3951
|
+
return Ks(Dn({ locale: n }, r));
|
|
3952
|
+
}, ra = Kt(
|
|
3957
3953
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3958
|
-
(e, t =
|
|
3959
|
-
ignoreTag:
|
|
3954
|
+
(e, t = Ue()) => new yi(e, t, rt().formats, {
|
|
3955
|
+
ignoreTag: rt().ignoreTag
|
|
3960
3956
|
})
|
|
3961
|
-
),
|
|
3957
|
+
), ia = (e, t = {}) => {
|
|
3962
3958
|
var n, r, i, o;
|
|
3963
3959
|
let l = t;
|
|
3964
3960
|
typeof e == "object" && (l = e, e = l.id);
|
|
3965
3961
|
const {
|
|
3966
3962
|
values: a,
|
|
3967
|
-
locale: c =
|
|
3963
|
+
locale: c = Ue(),
|
|
3968
3964
|
default: u
|
|
3969
3965
|
} = l;
|
|
3970
3966
|
if (c == null)
|
|
@@ -3973,7 +3969,7 @@ const vt = (e, t) => {
|
|
|
3973
3969
|
);
|
|
3974
3970
|
let f = xi(e, c);
|
|
3975
3971
|
if (!f)
|
|
3976
|
-
f = (o = (i = (r = (n =
|
|
3972
|
+
f = (o = (i = (r = (n = rt()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3977
3973
|
else if (typeof f != "string")
|
|
3978
3974
|
return console.warn(
|
|
3979
3975
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3982,7 +3978,7 @@ const vt = (e, t) => {
|
|
|
3982
3978
|
return f;
|
|
3983
3979
|
let m = f;
|
|
3984
3980
|
try {
|
|
3985
|
-
m =
|
|
3981
|
+
m = ra(f, c).format(a);
|
|
3986
3982
|
} catch (y) {
|
|
3987
3983
|
y instanceof Error && console.warn(
|
|
3988
3984
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3990,18 +3986,18 @@ const vt = (e, t) => {
|
|
|
3990
3986
|
);
|
|
3991
3987
|
}
|
|
3992
3988
|
return m;
|
|
3993
|
-
},
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3989
|
+
}, oa = (e, t) => na(t).format(e), sa = (e, t) => ta(t).format(e), aa = (e, t) => ea(t).format(e), la = (e, t = Ue()) => xi(e, t), ua = it([Ge, Tt], () => ia);
|
|
3990
|
+
it([Ge], () => oa);
|
|
3991
|
+
it([Ge], () => sa);
|
|
3992
|
+
it([Ge], () => aa);
|
|
3993
|
+
it([Ge, Tt], () => la);
|
|
3998
3994
|
function wr(e, t) {
|
|
3999
3995
|
Ti(e, t);
|
|
4000
3996
|
}
|
|
4001
|
-
function
|
|
4002
|
-
|
|
3997
|
+
function ca(e) {
|
|
3998
|
+
Fs({
|
|
4003
3999
|
fallbackLocale: "en"
|
|
4004
|
-
}),
|
|
4000
|
+
}), Ge.set(e);
|
|
4005
4001
|
}
|
|
4006
4002
|
const Ar = {
|
|
4007
4003
|
en: {
|
|
@@ -4023,19 +4019,19 @@ const Ar = {
|
|
|
4023
4019
|
};
|
|
4024
4020
|
/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */
|
|
4025
4021
|
const {
|
|
4026
|
-
entries:
|
|
4027
|
-
setPrototypeOf:
|
|
4028
|
-
isFrozen:
|
|
4029
|
-
getPrototypeOf:
|
|
4030
|
-
getOwnPropertyDescriptor:
|
|
4022
|
+
entries: Ci,
|
|
4023
|
+
setPrototypeOf: Mr,
|
|
4024
|
+
isFrozen: fa,
|
|
4025
|
+
getPrototypeOf: ha,
|
|
4026
|
+
getOwnPropertyDescriptor: ma
|
|
4031
4027
|
} = Object;
|
|
4032
4028
|
let {
|
|
4033
4029
|
freeze: _e,
|
|
4034
4030
|
seal: ve,
|
|
4035
|
-
create:
|
|
4031
|
+
create: Oi
|
|
4036
4032
|
} = Object, {
|
|
4037
|
-
apply:
|
|
4038
|
-
construct:
|
|
4033
|
+
apply: Cn,
|
|
4034
|
+
construct: On
|
|
4039
4035
|
} = typeof Reflect < "u" && Reflect;
|
|
4040
4036
|
_e || (_e = function(t) {
|
|
4041
4037
|
return t;
|
|
@@ -4043,98 +4039,107 @@ _e || (_e = function(t) {
|
|
|
4043
4039
|
ve || (ve = function(t) {
|
|
4044
4040
|
return t;
|
|
4045
4041
|
});
|
|
4046
|
-
|
|
4042
|
+
Cn || (Cn = function(t, n, r) {
|
|
4047
4043
|
return t.apply(n, r);
|
|
4048
4044
|
});
|
|
4049
|
-
|
|
4045
|
+
On || (On = function(t, n) {
|
|
4050
4046
|
return new t(...n);
|
|
4051
4047
|
});
|
|
4052
|
-
const
|
|
4048
|
+
const It = xe(Array.prototype.forEach), Cr = xe(Array.prototype.pop), ft = xe(Array.prototype.push), jt = xe(String.prototype.toLowerCase), dn = xe(String.prototype.toString), Or = xe(String.prototype.match), ht = xe(String.prototype.replace), da = xe(String.prototype.indexOf), pa = xe(String.prototype.trim), Se = xe(Object.prototype.hasOwnProperty), de = xe(RegExp.prototype.test), mt = ga(TypeError);
|
|
4053
4049
|
function xe(e) {
|
|
4054
4050
|
return function(t) {
|
|
4055
4051
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
|
|
4056
4052
|
r[i - 1] = arguments[i];
|
|
4057
|
-
return
|
|
4053
|
+
return Cn(e, t, r);
|
|
4058
4054
|
};
|
|
4059
4055
|
}
|
|
4060
|
-
function
|
|
4056
|
+
function ga(e) {
|
|
4061
4057
|
return function() {
|
|
4062
4058
|
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
4063
4059
|
n[r] = arguments[r];
|
|
4064
|
-
return
|
|
4060
|
+
return On(e, n);
|
|
4065
4061
|
};
|
|
4066
4062
|
}
|
|
4067
4063
|
function $(e, t) {
|
|
4068
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
4069
|
-
|
|
4064
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : jt;
|
|
4065
|
+
Mr && Mr(e, null);
|
|
4070
4066
|
let r = t.length;
|
|
4071
4067
|
for (; r--; ) {
|
|
4072
4068
|
let i = t[r];
|
|
4073
4069
|
if (typeof i == "string") {
|
|
4074
4070
|
const o = n(i);
|
|
4075
|
-
o !== i && (
|
|
4071
|
+
o !== i && (fa(t) || (t[r] = o), i = o);
|
|
4076
4072
|
}
|
|
4077
4073
|
e[i] = !0;
|
|
4078
4074
|
}
|
|
4079
4075
|
return e;
|
|
4080
4076
|
}
|
|
4081
|
-
function
|
|
4077
|
+
function _a(e) {
|
|
4082
4078
|
for (let t = 0; t < e.length; t++)
|
|
4083
4079
|
Se(e, t) || (e[t] = null);
|
|
4084
4080
|
return e;
|
|
4085
4081
|
}
|
|
4086
|
-
function
|
|
4087
|
-
const t =
|
|
4088
|
-
for (const [n, r] of
|
|
4089
|
-
Se(e, n) && (Array.isArray(r) ? t[n] =
|
|
4082
|
+
function ke(e) {
|
|
4083
|
+
const t = Oi(null);
|
|
4084
|
+
for (const [n, r] of Ci(e))
|
|
4085
|
+
Se(e, n) && (Array.isArray(r) ? t[n] = _a(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = ke(r) : t[n] = r);
|
|
4090
4086
|
return t;
|
|
4091
4087
|
}
|
|
4092
4088
|
function dt(e, t) {
|
|
4093
4089
|
for (; e !== null; ) {
|
|
4094
|
-
const r =
|
|
4090
|
+
const r = ma(e, t);
|
|
4095
4091
|
if (r) {
|
|
4096
4092
|
if (r.get)
|
|
4097
4093
|
return xe(r.get);
|
|
4098
4094
|
if (typeof r.value == "function")
|
|
4099
4095
|
return xe(r.value);
|
|
4100
4096
|
}
|
|
4101
|
-
e =
|
|
4097
|
+
e = ha(e);
|
|
4102
4098
|
}
|
|
4103
4099
|
function n() {
|
|
4104
4100
|
return null;
|
|
4105
4101
|
}
|
|
4106
4102
|
return n;
|
|
4107
4103
|
}
|
|
4108
|
-
const Lr = _e(["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"]),
|
|
4104
|
+
const Lr = _e(["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 = _e(["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"]), gn = _e(["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"]), ba = _e(["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"]), _n = _e(["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"]), Ea = _e(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Hr = _e(["#text"]), Nr = _e(["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 = _e(["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"]), Ir = _e(["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"]), Pt = _e(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), ya = ve(/\{\{[\w\W]*|[\w\W]*\}\}/gm), xa = ve(/<%[\w\W]*|[\w\W]*%>/gm), va = ve(/\${[\w\W]*}/gm), Ta = ve(/^data-[\-\w.\u00B7-\uFFFF]/), Sa = ve(/^aria-[\-\w]+$/), Li = ve(
|
|
4109
4105
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
4110
4106
|
// eslint-disable-line no-useless-escape
|
|
4111
|
-
),
|
|
4107
|
+
), wa = ve(/^(?:\w+script|data):/i), Aa = ve(
|
|
4112
4108
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
4113
4109
|
// eslint-disable-line no-control-regex
|
|
4114
4110
|
), Hi = ve(/^html$/i), Ma = ve(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
4115
4111
|
var Pr = /* @__PURE__ */ Object.freeze({
|
|
4116
4112
|
__proto__: null,
|
|
4117
|
-
MUSTACHE_EXPR:
|
|
4118
|
-
ERB_EXPR:
|
|
4119
|
-
TMPLIT_EXPR:
|
|
4120
|
-
DATA_ATTR:
|
|
4121
|
-
ARIA_ATTR:
|
|
4113
|
+
MUSTACHE_EXPR: ya,
|
|
4114
|
+
ERB_EXPR: xa,
|
|
4115
|
+
TMPLIT_EXPR: va,
|
|
4116
|
+
DATA_ATTR: Ta,
|
|
4117
|
+
ARIA_ATTR: Sa,
|
|
4122
4118
|
IS_ALLOWED_URI: Li,
|
|
4123
|
-
IS_SCRIPT_OR_DATA:
|
|
4124
|
-
ATTR_WHITESPACE:
|
|
4119
|
+
IS_SCRIPT_OR_DATA: wa,
|
|
4120
|
+
ATTR_WHITESPACE: Aa,
|
|
4125
4121
|
DOCTYPE_NAME: Hi,
|
|
4126
4122
|
CUSTOM_ELEMENT: Ma
|
|
4127
4123
|
});
|
|
4128
|
-
const
|
|
4124
|
+
const pt = {
|
|
4129
4125
|
element: 1,
|
|
4126
|
+
attribute: 2,
|
|
4130
4127
|
text: 3,
|
|
4128
|
+
cdataSection: 4,
|
|
4129
|
+
entityReference: 5,
|
|
4130
|
+
// Deprecated
|
|
4131
|
+
entityNode: 6,
|
|
4131
4132
|
// Deprecated
|
|
4132
4133
|
progressingInstruction: 7,
|
|
4133
4134
|
comment: 8,
|
|
4134
|
-
document: 9
|
|
4135
|
+
document: 9,
|
|
4136
|
+
documentType: 10,
|
|
4137
|
+
documentFragment: 11,
|
|
4138
|
+
notation: 12
|
|
4139
|
+
// Deprecated
|
|
4135
4140
|
}, Ca = function() {
|
|
4136
4141
|
return typeof window > "u" ? null : window;
|
|
4137
|
-
},
|
|
4142
|
+
}, Oa = function(t, n) {
|
|
4138
4143
|
if (typeof t != "object" || typeof t.createPolicy != "function")
|
|
4139
4144
|
return null;
|
|
4140
4145
|
let r = null;
|
|
@@ -4157,7 +4162,7 @@ const gt = {
|
|
|
4157
4162
|
function Ni() {
|
|
4158
4163
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ca();
|
|
4159
4164
|
const t = (S) => Ni(S);
|
|
4160
|
-
if (t.version = "3.1.6", t.removed = [], !e || !e.document || e.document.nodeType !==
|
|
4165
|
+
if (t.version = "3.1.6", t.removed = [], !e || !e.document || e.document.nodeType !== pt.document)
|
|
4161
4166
|
return t.isSupported = !1, t;
|
|
4162
4167
|
let {
|
|
4163
4168
|
document: n
|
|
@@ -4172,26 +4177,26 @@ function Ni() {
|
|
|
4172
4177
|
HTMLFormElement: m,
|
|
4173
4178
|
DOMParser: y,
|
|
4174
4179
|
trustedTypes: A
|
|
4175
|
-
} = e, x = c.prototype, g = dt(x, "cloneNode"), N = dt(x, "remove"), U = dt(x, "nextSibling"),
|
|
4180
|
+
} = e, x = c.prototype, g = dt(x, "cloneNode"), N = dt(x, "remove"), U = dt(x, "nextSibling"), X = dt(x, "childNodes"), R = dt(x, "parentNode");
|
|
4176
4181
|
if (typeof l == "function") {
|
|
4177
4182
|
const S = n.createElement("template");
|
|
4178
4183
|
S.content && S.content.ownerDocument && (n = S.content.ownerDocument);
|
|
4179
4184
|
}
|
|
4180
4185
|
let H, I = "";
|
|
4181
4186
|
const {
|
|
4182
|
-
implementation:
|
|
4187
|
+
implementation: V,
|
|
4183
4188
|
createNodeIterator: oe,
|
|
4184
4189
|
createDocumentFragment: fe,
|
|
4185
|
-
getElementsByTagName:
|
|
4190
|
+
getElementsByTagName: ee
|
|
4186
4191
|
} = n, {
|
|
4187
|
-
importNode:
|
|
4192
|
+
importNode: z
|
|
4188
4193
|
} = r;
|
|
4189
|
-
let
|
|
4190
|
-
t.isSupported = typeof
|
|
4194
|
+
let O = {};
|
|
4195
|
+
t.isSupported = typeof Ci == "function" && typeof R == "function" && V && V.createHTMLDocument !== void 0;
|
|
4191
4196
|
const {
|
|
4192
4197
|
MUSTACHE_EXPR: se,
|
|
4193
4198
|
ERB_EXPR: Ee,
|
|
4194
|
-
TMPLIT_EXPR:
|
|
4199
|
+
TMPLIT_EXPR: C,
|
|
4195
4200
|
DATA_ATTR: _,
|
|
4196
4201
|
ARIA_ATTR: h,
|
|
4197
4202
|
IS_SCRIPT_OR_DATA: E,
|
|
@@ -4199,12 +4204,12 @@ function Ni() {
|
|
|
4199
4204
|
CUSTOM_ELEMENT: L
|
|
4200
4205
|
} = Pr;
|
|
4201
4206
|
let {
|
|
4202
|
-
IS_ALLOWED_URI:
|
|
4207
|
+
IS_ALLOWED_URI: M
|
|
4203
4208
|
} = Pr, v = null;
|
|
4204
|
-
const
|
|
4209
|
+
const W = $({}, [...Lr, ...pn, ...gn, ..._n, ...Hr]);
|
|
4205
4210
|
let P = null;
|
|
4206
|
-
const
|
|
4207
|
-
let D = Object.seal(
|
|
4211
|
+
const J = $({}, [...Nr, ...bn, ...Ir, ...Pt]);
|
|
4212
|
+
let D = Object.seal(Oi(null, {
|
|
4208
4213
|
tagNameCheck: {
|
|
4209
4214
|
writable: !0,
|
|
4210
4215
|
configurable: !1,
|
|
@@ -4223,59 +4228,59 @@ function Ni() {
|
|
|
4223
4228
|
enumerable: !0,
|
|
4224
4229
|
value: !1
|
|
4225
4230
|
}
|
|
4226
|
-
})),
|
|
4231
|
+
})), p = null, G = null, Y = !0, Z = !0, re = !1, te = !0, he = !1, le = !0, Ae = !1, Q = !1, ie = !1, Me = !1, wt = !1, At = !1, Bn = !0, $n = !1;
|
|
4227
4232
|
const Ri = "user-content-";
|
|
4228
|
-
let
|
|
4233
|
+
let en = !0, st = !1, je = {}, ze = null;
|
|
4229
4234
|
const Un = $({}, ["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"]);
|
|
4230
4235
|
let kn = null;
|
|
4231
4236
|
const Fn = $({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
4232
|
-
let
|
|
4233
|
-
const Gn = $({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Mt = "http://www.w3.org/1998/Math/MathML", Ct = "http://www.w3.org/2000/svg",
|
|
4234
|
-
let
|
|
4235
|
-
const Di = $({}, [Mt, Ct,
|
|
4236
|
-
let
|
|
4237
|
+
let tn = null;
|
|
4238
|
+
const Gn = $({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Mt = "http://www.w3.org/1998/Math/MathML", Ct = "http://www.w3.org/2000/svg", He = "http://www.w3.org/1999/xhtml";
|
|
4239
|
+
let We = He, nn = !1, rn = null;
|
|
4240
|
+
const Di = $({}, [Mt, Ct, He], dn);
|
|
4241
|
+
let at = null;
|
|
4237
4242
|
const Bi = ["application/xhtml+xml", "text/html"], $i = "text/html";
|
|
4238
|
-
let ae = null,
|
|
4243
|
+
let ae = null, Ve = null;
|
|
4239
4244
|
const Ui = n.createElement("form"), jn = function(s) {
|
|
4240
4245
|
return s instanceof RegExp || s instanceof Function;
|
|
4241
|
-
},
|
|
4246
|
+
}, on = function() {
|
|
4242
4247
|
let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4243
|
-
if (!(
|
|
4244
|
-
if ((!s || typeof s != "object") && (s = {}), s =
|
|
4245
|
-
Bi.indexOf(s.PARSER_MEDIA_TYPE) === -1 ? $i : s.PARSER_MEDIA_TYPE, ae =
|
|
4246
|
-
|
|
4248
|
+
if (!(Ve && Ve === s)) {
|
|
4249
|
+
if ((!s || typeof s != "object") && (s = {}), s = ke(s), at = // eslint-disable-next-line unicorn/prefer-includes
|
|
4250
|
+
Bi.indexOf(s.PARSER_MEDIA_TYPE) === -1 ? $i : s.PARSER_MEDIA_TYPE, ae = at === "application/xhtml+xml" ? dn : jt, v = Se(s, "ALLOWED_TAGS") ? $({}, s.ALLOWED_TAGS, ae) : W, P = Se(s, "ALLOWED_ATTR") ? $({}, s.ALLOWED_ATTR, ae) : J, rn = Se(s, "ALLOWED_NAMESPACES") ? $({}, s.ALLOWED_NAMESPACES, dn) : Di, tn = Se(s, "ADD_URI_SAFE_ATTR") ? $(
|
|
4251
|
+
ke(Gn),
|
|
4247
4252
|
// eslint-disable-line indent
|
|
4248
4253
|
s.ADD_URI_SAFE_ATTR,
|
|
4249
4254
|
// eslint-disable-line indent
|
|
4250
4255
|
ae
|
|
4251
4256
|
// eslint-disable-line indent
|
|
4252
4257
|
) : Gn, kn = Se(s, "ADD_DATA_URI_TAGS") ? $(
|
|
4253
|
-
|
|
4258
|
+
ke(Fn),
|
|
4254
4259
|
// eslint-disable-line indent
|
|
4255
4260
|
s.ADD_DATA_URI_TAGS,
|
|
4256
4261
|
// eslint-disable-line indent
|
|
4257
4262
|
ae
|
|
4258
4263
|
// eslint-disable-line indent
|
|
4259
|
-
) : Fn,
|
|
4264
|
+
) : Fn, ze = Se(s, "FORBID_CONTENTS") ? $({}, s.FORBID_CONTENTS, ae) : Un, p = Se(s, "FORBID_TAGS") ? $({}, s.FORBID_TAGS, ae) : {}, G = Se(s, "FORBID_ATTR") ? $({}, s.FORBID_ATTR, ae) : {}, je = Se(s, "USE_PROFILES") ? s.USE_PROFILES : !1, Y = s.ALLOW_ARIA_ATTR !== !1, Z = s.ALLOW_DATA_ATTR !== !1, re = s.ALLOW_UNKNOWN_PROTOCOLS || !1, te = s.ALLOW_SELF_CLOSE_IN_ATTR !== !1, he = s.SAFE_FOR_TEMPLATES || !1, le = s.SAFE_FOR_XML !== !1, Ae = s.WHOLE_DOCUMENT || !1, Me = s.RETURN_DOM || !1, wt = s.RETURN_DOM_FRAGMENT || !1, At = s.RETURN_TRUSTED_TYPE || !1, ie = s.FORCE_BODY || !1, Bn = s.SANITIZE_DOM !== !1, $n = s.SANITIZE_NAMED_PROPS || !1, en = s.KEEP_CONTENT !== !1, st = s.IN_PLACE || !1, M = s.ALLOWED_URI_REGEXP || Li, We = s.NAMESPACE || He, D = s.CUSTOM_ELEMENT_HANDLING || {}, s.CUSTOM_ELEMENT_HANDLING && jn(s.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (D.tagNameCheck = s.CUSTOM_ELEMENT_HANDLING.tagNameCheck), s.CUSTOM_ELEMENT_HANDLING && jn(s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (D.attributeNameCheck = s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), s.CUSTOM_ELEMENT_HANDLING && typeof s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (D.allowCustomizedBuiltInElements = s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), he && (Z = !1), wt && (Me = !0), je && (v = $({}, Hr), P = [], je.html === !0 && ($(v, Lr), $(P, Nr)), je.svg === !0 && ($(v, pn), $(P, bn), $(P, Pt)), je.svgFilters === !0 && ($(v, gn), $(P, bn), $(P, Pt)), je.mathMl === !0 && ($(v, _n), $(P, Ir), $(P, Pt))), s.ADD_TAGS && (v === W && (v = ke(v)), $(v, s.ADD_TAGS, ae)), s.ADD_ATTR && (P === J && (P = ke(P)), $(P, s.ADD_ATTR, ae)), s.ADD_URI_SAFE_ATTR && $(tn, s.ADD_URI_SAFE_ATTR, ae), s.FORBID_CONTENTS && (ze === Un && (ze = ke(ze)), $(ze, s.FORBID_CONTENTS, ae)), en && (v["#text"] = !0), Ae && $(v, ["html", "head", "body"]), v.table && ($(v, ["tbody"]), delete p.tbody), s.TRUSTED_TYPES_POLICY) {
|
|
4260
4265
|
if (typeof s.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
4261
|
-
throw
|
|
4266
|
+
throw mt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
4262
4267
|
if (typeof s.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
4263
|
-
throw
|
|
4268
|
+
throw mt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
4264
4269
|
H = s.TRUSTED_TYPES_POLICY, I = H.createHTML("");
|
|
4265
4270
|
} else
|
|
4266
|
-
H === void 0 && (H =
|
|
4267
|
-
_e && _e(s),
|
|
4271
|
+
H === void 0 && (H = Oa(A, i)), H !== null && typeof I == "string" && (I = H.createHTML(""));
|
|
4272
|
+
_e && _e(s), Ve = s;
|
|
4268
4273
|
}
|
|
4269
|
-
}, zn = $({}, ["mi", "mo", "mn", "ms", "mtext"]), Wn = $({}, ["foreignobject", "annotation-xml"]), ki = $({}, ["title", "style", "font", "a", "script"]), Vn = $({}, [...
|
|
4270
|
-
let
|
|
4271
|
-
(!
|
|
4272
|
-
namespaceURI:
|
|
4274
|
+
}, zn = $({}, ["mi", "mo", "mn", "ms", "mtext"]), Wn = $({}, ["foreignobject", "annotation-xml"]), ki = $({}, ["title", "style", "font", "a", "script"]), Vn = $({}, [...pn, ...gn, ...ba]), Xn = $({}, [..._n, ...Ea]), Fi = function(s) {
|
|
4275
|
+
let d = R(s);
|
|
4276
|
+
(!d || !d.tagName) && (d = {
|
|
4277
|
+
namespaceURI: We,
|
|
4273
4278
|
tagName: "template"
|
|
4274
4279
|
});
|
|
4275
|
-
const T =
|
|
4276
|
-
return
|
|
4277
|
-
},
|
|
4278
|
-
|
|
4280
|
+
const T = jt(s.tagName), q = jt(d.tagName);
|
|
4281
|
+
return rn[s.namespaceURI] ? s.namespaceURI === Ct ? d.namespaceURI === He ? T === "svg" : d.namespaceURI === Mt ? T === "svg" && (q === "annotation-xml" || zn[q]) : !!Vn[T] : s.namespaceURI === Mt ? d.namespaceURI === He ? T === "math" : d.namespaceURI === Ct ? T === "math" && Wn[q] : !!Xn[T] : s.namespaceURI === He ? d.namespaceURI === Ct && !Wn[q] || d.namespaceURI === Mt && !zn[q] ? !1 : !Xn[T] && (ki[T] || !Vn[T]) : !!(at === "application/xhtml+xml" && rn[s.namespaceURI]) : !1;
|
|
4282
|
+
}, Ce = function(s) {
|
|
4283
|
+
ft(t.removed, {
|
|
4279
4284
|
element: s
|
|
4280
4285
|
});
|
|
4281
4286
|
try {
|
|
@@ -4283,53 +4288,53 @@ function Ni() {
|
|
|
4283
4288
|
} catch {
|
|
4284
4289
|
N(s);
|
|
4285
4290
|
}
|
|
4286
|
-
},
|
|
4291
|
+
}, Ot = function(s, d) {
|
|
4287
4292
|
try {
|
|
4288
|
-
|
|
4289
|
-
attribute:
|
|
4290
|
-
from:
|
|
4293
|
+
ft(t.removed, {
|
|
4294
|
+
attribute: d.getAttributeNode(s),
|
|
4295
|
+
from: d
|
|
4291
4296
|
});
|
|
4292
4297
|
} catch {
|
|
4293
|
-
|
|
4298
|
+
ft(t.removed, {
|
|
4294
4299
|
attribute: null,
|
|
4295
|
-
from:
|
|
4300
|
+
from: d
|
|
4296
4301
|
});
|
|
4297
4302
|
}
|
|
4298
|
-
if (
|
|
4299
|
-
if (
|
|
4303
|
+
if (d.removeAttribute(s), s === "is" && !P[s])
|
|
4304
|
+
if (Me || wt)
|
|
4300
4305
|
try {
|
|
4301
|
-
|
|
4306
|
+
Ce(d);
|
|
4302
4307
|
} catch {
|
|
4303
4308
|
}
|
|
4304
4309
|
else
|
|
4305
4310
|
try {
|
|
4306
|
-
|
|
4311
|
+
d.setAttribute(s, "");
|
|
4307
4312
|
} catch {
|
|
4308
4313
|
}
|
|
4309
4314
|
}, Yn = function(s) {
|
|
4310
|
-
let
|
|
4311
|
-
if (
|
|
4315
|
+
let d = null, T = null;
|
|
4316
|
+
if (ie)
|
|
4312
4317
|
s = "<remove></remove>" + s;
|
|
4313
4318
|
else {
|
|
4314
|
-
const ue =
|
|
4319
|
+
const ue = Or(s, /^[\r\n\t ]+/);
|
|
4315
4320
|
T = ue && ue[0];
|
|
4316
4321
|
}
|
|
4317
|
-
|
|
4318
|
-
const
|
|
4319
|
-
if (
|
|
4322
|
+
at === "application/xhtml+xml" && We === He && (s = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + s + "</body></html>");
|
|
4323
|
+
const q = H ? H.createHTML(s) : s;
|
|
4324
|
+
if (We === He)
|
|
4320
4325
|
try {
|
|
4321
|
-
|
|
4326
|
+
d = new y().parseFromString(q, at);
|
|
4322
4327
|
} catch {
|
|
4323
4328
|
}
|
|
4324
|
-
if (!
|
|
4325
|
-
|
|
4329
|
+
if (!d || !d.documentElement) {
|
|
4330
|
+
d = V.createDocument(We, "template", null);
|
|
4326
4331
|
try {
|
|
4327
|
-
|
|
4332
|
+
d.documentElement.innerHTML = nn ? I : q;
|
|
4328
4333
|
} catch {
|
|
4329
4334
|
}
|
|
4330
4335
|
}
|
|
4331
|
-
const ce =
|
|
4332
|
-
return s && T && ce.insertBefore(n.createTextNode(T), ce.childNodes[0] || null),
|
|
4336
|
+
const ce = d.body || d.documentElement;
|
|
4337
|
+
return s && T && ce.insertBefore(n.createTextNode(T), ce.childNodes[0] || null), We === He ? ee.call(d, Ae ? "html" : "body")[0] : Ae ? d.documentElement : ce;
|
|
4333
4338
|
}, Zn = function(s) {
|
|
4334
4339
|
return oe.call(
|
|
4335
4340
|
s.ownerDocument || s,
|
|
@@ -4342,59 +4347,59 @@ function Ni() {
|
|
|
4342
4347
|
return s instanceof m && (typeof s.nodeName != "string" || typeof s.textContent != "string" || typeof s.removeChild != "function" || !(s.attributes instanceof f) || typeof s.removeAttribute != "function" || typeof s.setAttribute != "function" || typeof s.namespaceURI != "string" || typeof s.insertBefore != "function" || typeof s.hasChildNodes != "function");
|
|
4343
4348
|
}, Jn = function(s) {
|
|
4344
4349
|
return typeof a == "function" && s instanceof a;
|
|
4345
|
-
},
|
|
4346
|
-
|
|
4347
|
-
|
|
4350
|
+
}, Ne = function(s, d, T) {
|
|
4351
|
+
O[s] && It(O[s], (q) => {
|
|
4352
|
+
q.call(t, d, T, Ve);
|
|
4348
4353
|
});
|
|
4349
4354
|
}, Qn = function(s) {
|
|
4350
|
-
let
|
|
4351
|
-
if (
|
|
4352
|
-
return
|
|
4355
|
+
let d = null;
|
|
4356
|
+
if (Ne("beforeSanitizeElements", s, null), qn(s))
|
|
4357
|
+
return Ce(s), !0;
|
|
4353
4358
|
const T = ae(s.nodeName);
|
|
4354
|
-
if (
|
|
4359
|
+
if (Ne("uponSanitizeElement", s, {
|
|
4355
4360
|
tagName: T,
|
|
4356
4361
|
allowedTags: v
|
|
4357
|
-
}), s.hasChildNodes() && !Jn(s.firstElementChild) &&
|
|
4358
|
-
return
|
|
4359
|
-
if (!v[T] ||
|
|
4360
|
-
if (!
|
|
4362
|
+
}), s.hasChildNodes() && !Jn(s.firstElementChild) && de(/<[/\w]/g, s.innerHTML) && de(/<[/\w]/g, s.textContent) || s.nodeType === pt.progressingInstruction || le && s.nodeType === pt.comment && de(/<[/\w]/g, s.data))
|
|
4363
|
+
return Ce(s), !0;
|
|
4364
|
+
if (!v[T] || p[T]) {
|
|
4365
|
+
if (!p[T] && er(T) && (D.tagNameCheck instanceof RegExp && de(D.tagNameCheck, T) || D.tagNameCheck instanceof Function && D.tagNameCheck(T)))
|
|
4361
4366
|
return !1;
|
|
4362
|
-
if (
|
|
4363
|
-
const
|
|
4364
|
-
if (ce &&
|
|
4367
|
+
if (en && !ze[T]) {
|
|
4368
|
+
const q = R(s) || s.parentNode, ce = X(s) || s.childNodes;
|
|
4369
|
+
if (ce && q) {
|
|
4365
4370
|
const ue = ce.length;
|
|
4366
4371
|
for (let be = ue - 1; be >= 0; --be) {
|
|
4367
|
-
const
|
|
4368
|
-
|
|
4372
|
+
const Oe = g(ce[be], !0);
|
|
4373
|
+
Oe.__removalCount = (s.__removalCount || 0) + 1, q.insertBefore(Oe, U(s));
|
|
4369
4374
|
}
|
|
4370
4375
|
}
|
|
4371
4376
|
}
|
|
4372
|
-
return
|
|
4377
|
+
return Ce(s), !0;
|
|
4373
4378
|
}
|
|
4374
|
-
return s instanceof c && !Fi(s) || (T === "noscript" || T === "noembed" || T === "noframes") &&
|
|
4375
|
-
|
|
4376
|
-
}), s.textContent !==
|
|
4379
|
+
return s instanceof c && !Fi(s) || (T === "noscript" || T === "noembed" || T === "noframes") && de(/<\/no(script|embed|frames)/i, s.innerHTML) ? (Ce(s), !0) : (he && s.nodeType === pt.text && (d = s.textContent, It([se, Ee, C], (q) => {
|
|
4380
|
+
d = ht(d, q, " ");
|
|
4381
|
+
}), s.textContent !== d && (ft(t.removed, {
|
|
4377
4382
|
element: s.cloneNode()
|
|
4378
|
-
}), s.textContent =
|
|
4379
|
-
}, Kn = function(s,
|
|
4380
|
-
if (Bn && (
|
|
4383
|
+
}), s.textContent = d)), Ne("afterSanitizeElements", s, null), !1);
|
|
4384
|
+
}, Kn = function(s, d, T) {
|
|
4385
|
+
if (Bn && (d === "id" || d === "name") && (T in n || T in Ui))
|
|
4381
4386
|
return !1;
|
|
4382
|
-
if (!(
|
|
4383
|
-
if (!(
|
|
4384
|
-
if (!P[
|
|
4387
|
+
if (!(Z && !G[d] && de(_, d))) {
|
|
4388
|
+
if (!(Y && de(h, d))) {
|
|
4389
|
+
if (!P[d] || G[d]) {
|
|
4385
4390
|
if (
|
|
4386
4391
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
4387
4392
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4388
4393
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
4389
|
-
!(er(s) && (D.tagNameCheck instanceof RegExp &&
|
|
4394
|
+
!(er(s) && (D.tagNameCheck instanceof RegExp && de(D.tagNameCheck, s) || D.tagNameCheck instanceof Function && D.tagNameCheck(s)) && (D.attributeNameCheck instanceof RegExp && de(D.attributeNameCheck, d) || D.attributeNameCheck instanceof Function && D.attributeNameCheck(d)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
4390
4395
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4391
|
-
|
|
4396
|
+
d === "is" && D.allowCustomizedBuiltInElements && (D.tagNameCheck instanceof RegExp && de(D.tagNameCheck, T) || D.tagNameCheck instanceof Function && D.tagNameCheck(T)))
|
|
4392
4397
|
)
|
|
4393
4398
|
return !1;
|
|
4394
|
-
} else if (!
|
|
4395
|
-
if (!
|
|
4396
|
-
if (!((
|
|
4397
|
-
if (!(
|
|
4399
|
+
} else if (!tn[d]) {
|
|
4400
|
+
if (!de(M, ht(T, b, ""))) {
|
|
4401
|
+
if (!((d === "src" || d === "xlink:href" || d === "href") && s !== "script" && da(T, "data:") === 0 && kn[s])) {
|
|
4402
|
+
if (!(re && !de(E, ht(T, b, "")))) {
|
|
4398
4403
|
if (T)
|
|
4399
4404
|
return !1;
|
|
4400
4405
|
}
|
|
@@ -4405,13 +4410,13 @@ function Ni() {
|
|
|
4405
4410
|
}
|
|
4406
4411
|
return !0;
|
|
4407
4412
|
}, er = function(s) {
|
|
4408
|
-
return s !== "annotation-xml" &&
|
|
4413
|
+
return s !== "annotation-xml" && Or(s, L);
|
|
4409
4414
|
}, tr = function(s) {
|
|
4410
|
-
|
|
4415
|
+
Ne("beforeSanitizeAttributes", s, null);
|
|
4411
4416
|
const {
|
|
4412
|
-
attributes:
|
|
4417
|
+
attributes: d
|
|
4413
4418
|
} = s;
|
|
4414
|
-
if (!
|
|
4419
|
+
if (!d)
|
|
4415
4420
|
return;
|
|
4416
4421
|
const T = {
|
|
4417
4422
|
attrName: "",
|
|
@@ -4419,31 +4424,31 @@ function Ni() {
|
|
|
4419
4424
|
keepAttr: !0,
|
|
4420
4425
|
allowedAttributes: P
|
|
4421
4426
|
};
|
|
4422
|
-
let
|
|
4423
|
-
for (;
|
|
4424
|
-
const ce =
|
|
4427
|
+
let q = d.length;
|
|
4428
|
+
for (; q--; ) {
|
|
4429
|
+
const ce = d[q], {
|
|
4425
4430
|
name: ue,
|
|
4426
4431
|
namespaceURI: be,
|
|
4427
|
-
value:
|
|
4428
|
-
} = ce,
|
|
4429
|
-
let me = ue === "value" ?
|
|
4430
|
-
if (T.attrName =
|
|
4431
|
-
|
|
4432
|
+
value: Oe
|
|
4433
|
+
} = ce, lt = ae(ue);
|
|
4434
|
+
let me = ue === "value" ? Oe : pa(Oe);
|
|
4435
|
+
if (T.attrName = lt, T.attrValue = me, T.keepAttr = !0, T.forceKeepAttr = void 0, Ne("uponSanitizeAttribute", s, T), me = T.attrValue, le && de(/((--!?|])>)|<\/(style|title)/i, me)) {
|
|
4436
|
+
Ot(ue, s);
|
|
4432
4437
|
continue;
|
|
4433
4438
|
}
|
|
4434
|
-
if (T.forceKeepAttr || (
|
|
4439
|
+
if (T.forceKeepAttr || (Ot(ue, s), !T.keepAttr))
|
|
4435
4440
|
continue;
|
|
4436
|
-
if (!
|
|
4437
|
-
|
|
4441
|
+
if (!te && de(/\/>/i, me)) {
|
|
4442
|
+
Ot(ue, s);
|
|
4438
4443
|
continue;
|
|
4439
4444
|
}
|
|
4440
|
-
he &&
|
|
4441
|
-
me =
|
|
4445
|
+
he && It([se, Ee, C], (rr) => {
|
|
4446
|
+
me = ht(me, rr, " ");
|
|
4442
4447
|
});
|
|
4443
4448
|
const nr = ae(s.nodeName);
|
|
4444
|
-
if (Kn(nr,
|
|
4445
|
-
if ($n && (
|
|
4446
|
-
switch (A.getAttributeType(nr,
|
|
4449
|
+
if (Kn(nr, lt, me)) {
|
|
4450
|
+
if ($n && (lt === "id" || lt === "name") && (Ot(ue, s), me = Ri + me), H && typeof A == "object" && typeof A.getAttributeType == "function" && !be)
|
|
4451
|
+
switch (A.getAttributeType(nr, lt)) {
|
|
4447
4452
|
case "TrustedHTML": {
|
|
4448
4453
|
me = H.createHTML(me);
|
|
4449
4454
|
break;
|
|
@@ -4454,81 +4459,81 @@ function Ni() {
|
|
|
4454
4459
|
}
|
|
4455
4460
|
}
|
|
4456
4461
|
try {
|
|
4457
|
-
be ? s.setAttributeNS(be, ue, me) : s.setAttribute(ue, me), qn(s) ?
|
|
4462
|
+
be ? s.setAttributeNS(be, ue, me) : s.setAttribute(ue, me), qn(s) ? Ce(s) : Cr(t.removed);
|
|
4458
4463
|
} catch {
|
|
4459
4464
|
}
|
|
4460
4465
|
}
|
|
4461
4466
|
}
|
|
4462
|
-
|
|
4467
|
+
Ne("afterSanitizeAttributes", s, null);
|
|
4463
4468
|
}, Gi = function S(s) {
|
|
4464
|
-
let
|
|
4469
|
+
let d = null;
|
|
4465
4470
|
const T = Zn(s);
|
|
4466
|
-
for (
|
|
4467
|
-
|
|
4468
|
-
|
|
4471
|
+
for (Ne("beforeSanitizeShadowDOM", s, null); d = T.nextNode(); )
|
|
4472
|
+
Ne("uponSanitizeShadowNode", d, null), !Qn(d) && (d.content instanceof o && S(d.content), tr(d));
|
|
4473
|
+
Ne("afterSanitizeShadowDOM", s, null);
|
|
4469
4474
|
};
|
|
4470
4475
|
return t.sanitize = function(S) {
|
|
4471
|
-
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
|
|
4472
|
-
if (
|
|
4476
|
+
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, d = null, T = null, q = null, ce = null;
|
|
4477
|
+
if (nn = !S, nn && (S = "<!-->"), typeof S != "string" && !Jn(S))
|
|
4473
4478
|
if (typeof S.toString == "function") {
|
|
4474
4479
|
if (S = S.toString(), typeof S != "string")
|
|
4475
|
-
throw
|
|
4480
|
+
throw mt("dirty is not a string, aborting");
|
|
4476
4481
|
} else
|
|
4477
|
-
throw
|
|
4482
|
+
throw mt("toString is not a function");
|
|
4478
4483
|
if (!t.isSupported)
|
|
4479
4484
|
return S;
|
|
4480
|
-
if (
|
|
4485
|
+
if (Q || on(s), t.removed = [], typeof S == "string" && (st = !1), st) {
|
|
4481
4486
|
if (S.nodeName) {
|
|
4482
|
-
const
|
|
4483
|
-
if (!v[
|
|
4484
|
-
throw
|
|
4487
|
+
const Oe = ae(S.nodeName);
|
|
4488
|
+
if (!v[Oe] || p[Oe])
|
|
4489
|
+
throw mt("root node is forbidden and cannot be sanitized in-place");
|
|
4485
4490
|
}
|
|
4486
4491
|
} else if (S instanceof a)
|
|
4487
|
-
|
|
4492
|
+
d = Yn("<!---->"), T = d.ownerDocument.importNode(S, !0), T.nodeType === pt.element && T.nodeName === "BODY" || T.nodeName === "HTML" ? d = T : d.appendChild(T);
|
|
4488
4493
|
else {
|
|
4489
|
-
if (!
|
|
4494
|
+
if (!Me && !he && !Ae && // eslint-disable-next-line unicorn/prefer-includes
|
|
4490
4495
|
S.indexOf("<") === -1)
|
|
4491
|
-
return H &&
|
|
4492
|
-
if (
|
|
4493
|
-
return
|
|
4496
|
+
return H && At ? H.createHTML(S) : S;
|
|
4497
|
+
if (d = Yn(S), !d)
|
|
4498
|
+
return Me ? null : At ? I : "";
|
|
4494
4499
|
}
|
|
4495
|
-
|
|
4496
|
-
const ue = Zn(
|
|
4497
|
-
for (;
|
|
4498
|
-
Qn(
|
|
4499
|
-
if (
|
|
4500
|
+
d && ie && Ce(d.firstChild);
|
|
4501
|
+
const ue = Zn(st ? S : d);
|
|
4502
|
+
for (; q = ue.nextNode(); )
|
|
4503
|
+
Qn(q) || (q.content instanceof o && Gi(q.content), tr(q));
|
|
4504
|
+
if (st)
|
|
4500
4505
|
return S;
|
|
4501
|
-
if (
|
|
4502
|
-
if (
|
|
4503
|
-
for (ce = fe.call(
|
|
4504
|
-
ce.appendChild(
|
|
4506
|
+
if (Me) {
|
|
4507
|
+
if (wt)
|
|
4508
|
+
for (ce = fe.call(d.ownerDocument); d.firstChild; )
|
|
4509
|
+
ce.appendChild(d.firstChild);
|
|
4505
4510
|
else
|
|
4506
|
-
ce =
|
|
4507
|
-
return (P.shadowroot || P.shadowrootmode) && (ce =
|
|
4511
|
+
ce = d;
|
|
4512
|
+
return (P.shadowroot || P.shadowrootmode) && (ce = z.call(r, ce, !0)), ce;
|
|
4508
4513
|
}
|
|
4509
|
-
let be = Ae ?
|
|
4510
|
-
return Ae && v["!doctype"] &&
|
|
4511
|
-
` + be), he &&
|
|
4512
|
-
be =
|
|
4513
|
-
}), H &&
|
|
4514
|
+
let be = Ae ? d.outerHTML : d.innerHTML;
|
|
4515
|
+
return Ae && v["!doctype"] && d.ownerDocument && d.ownerDocument.doctype && d.ownerDocument.doctype.name && de(Hi, d.ownerDocument.doctype.name) && (be = "<!DOCTYPE " + d.ownerDocument.doctype.name + `>
|
|
4516
|
+
` + be), he && It([se, Ee, C], (Oe) => {
|
|
4517
|
+
be = ht(be, Oe, " ");
|
|
4518
|
+
}), H && At ? H.createHTML(be) : be;
|
|
4514
4519
|
}, t.setConfig = function() {
|
|
4515
4520
|
let S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4516
|
-
|
|
4521
|
+
on(S), Q = !0;
|
|
4517
4522
|
}, t.clearConfig = function() {
|
|
4518
|
-
|
|
4519
|
-
}, t.isValidAttribute = function(S, s,
|
|
4520
|
-
|
|
4521
|
-
const T = ae(S),
|
|
4522
|
-
return Kn(T,
|
|
4523
|
+
Ve = null, Q = !1;
|
|
4524
|
+
}, t.isValidAttribute = function(S, s, d) {
|
|
4525
|
+
Ve || on({});
|
|
4526
|
+
const T = ae(S), q = ae(s);
|
|
4527
|
+
return Kn(T, q, d);
|
|
4523
4528
|
}, t.addHook = function(S, s) {
|
|
4524
|
-
typeof s == "function" && (
|
|
4529
|
+
typeof s == "function" && (O[S] = O[S] || [], ft(O[S], s));
|
|
4525
4530
|
}, t.removeHook = function(S) {
|
|
4526
|
-
if (
|
|
4527
|
-
return
|
|
4531
|
+
if (O[S])
|
|
4532
|
+
return Cr(O[S]);
|
|
4528
4533
|
}, t.removeHooks = function(S) {
|
|
4529
|
-
|
|
4534
|
+
O[S] && (O[S] = []);
|
|
4530
4535
|
}, t.removeAllHooks = function() {
|
|
4531
|
-
|
|
4536
|
+
O = {};
|
|
4532
4537
|
}, t;
|
|
4533
4538
|
}
|
|
4534
4539
|
var Rr = Ni(), Ii = { exports: {} };
|
|
@@ -4536,73 +4541,73 @@ var Rr = Ni(), Ii = { exports: {} };
|
|
|
4536
4541
|
(function(n, r) {
|
|
4537
4542
|
e.exports = r();
|
|
4538
4543
|
})(ni, function() {
|
|
4539
|
-
var n = 1e3, r = 6e4, i = 36e5, o = "millisecond", l = "second", a = "minute", c = "hour", u = "day", f = "week", m = "month", y = "quarter", A = "year", x = "date", g = "Invalid Date", N = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, U = /\[([^\]]+)]|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,
|
|
4540
|
-
var _ = ["th", "st", "nd", "rd"], h =
|
|
4541
|
-
return "[" +
|
|
4542
|
-
} }, R = function(
|
|
4543
|
-
var E = String(
|
|
4544
|
-
return !E || E.length >= _ ?
|
|
4545
|
-
}, H = { s: R, z: function(
|
|
4546
|
-
var _ = -
|
|
4544
|
+
var n = 1e3, r = 6e4, i = 36e5, o = "millisecond", l = "second", a = "minute", c = "hour", u = "day", f = "week", m = "month", y = "quarter", A = "year", x = "date", g = "Invalid Date", N = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, U = /\[([^\]]+)]|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, X = { 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(C) {
|
|
4545
|
+
var _ = ["th", "st", "nd", "rd"], h = C % 100;
|
|
4546
|
+
return "[" + C + (_[(h - 20) % 10] || _[h] || _[0]) + "]";
|
|
4547
|
+
} }, R = function(C, _, h) {
|
|
4548
|
+
var E = String(C);
|
|
4549
|
+
return !E || E.length >= _ ? C : "" + Array(_ + 1 - E.length).join(h) + C;
|
|
4550
|
+
}, H = { s: R, z: function(C) {
|
|
4551
|
+
var _ = -C.utcOffset(), h = Math.abs(_), E = Math.floor(h / 60), b = h % 60;
|
|
4547
4552
|
return (_ <= 0 ? "+" : "-") + R(E, 2, "0") + ":" + R(b, 2, "0");
|
|
4548
|
-
}, m: function
|
|
4553
|
+
}, m: function C(_, h) {
|
|
4549
4554
|
if (_.date() < h.date())
|
|
4550
|
-
return -
|
|
4551
|
-
var E = 12 * (h.year() - _.year()) + (h.month() - _.month()), b = _.clone().add(E, m), L = h - b < 0,
|
|
4552
|
-
return +(-(E + (h - b) / (L ? b -
|
|
4553
|
-
}, a: function(
|
|
4554
|
-
return
|
|
4555
|
-
}, p: function(
|
|
4556
|
-
return { M: m, y: A, w: f, d: u, D: x, h: c, m: a, s: l, ms: o, Q: y }[
|
|
4557
|
-
}, u: function(
|
|
4558
|
-
return
|
|
4559
|
-
} }, I = "en",
|
|
4560
|
-
|
|
4561
|
-
var oe = "$isDayjsObject", fe = function(
|
|
4562
|
-
return
|
|
4563
|
-
},
|
|
4555
|
+
return -C(h, _);
|
|
4556
|
+
var E = 12 * (h.year() - _.year()) + (h.month() - _.month()), b = _.clone().add(E, m), L = h - b < 0, M = _.clone().add(E + (L ? -1 : 1), m);
|
|
4557
|
+
return +(-(E + (h - b) / (L ? b - M : M - b)) || 0);
|
|
4558
|
+
}, a: function(C) {
|
|
4559
|
+
return C < 0 ? Math.ceil(C) || 0 : Math.floor(C);
|
|
4560
|
+
}, p: function(C) {
|
|
4561
|
+
return { M: m, y: A, w: f, d: u, D: x, h: c, m: a, s: l, ms: o, Q: y }[C] || String(C || "").toLowerCase().replace(/s$/, "");
|
|
4562
|
+
}, u: function(C) {
|
|
4563
|
+
return C === void 0;
|
|
4564
|
+
} }, I = "en", V = {};
|
|
4565
|
+
V[I] = X;
|
|
4566
|
+
var oe = "$isDayjsObject", fe = function(C) {
|
|
4567
|
+
return C instanceof se || !(!C || !C[oe]);
|
|
4568
|
+
}, ee = function C(_, h, E) {
|
|
4564
4569
|
var b;
|
|
4565
4570
|
if (!_)
|
|
4566
4571
|
return I;
|
|
4567
4572
|
if (typeof _ == "string") {
|
|
4568
4573
|
var L = _.toLowerCase();
|
|
4569
|
-
|
|
4570
|
-
var
|
|
4571
|
-
if (!b &&
|
|
4572
|
-
return M
|
|
4574
|
+
V[L] && (b = L), h && (V[L] = h, b = L);
|
|
4575
|
+
var M = _.split("-");
|
|
4576
|
+
if (!b && M.length > 1)
|
|
4577
|
+
return C(M[0]);
|
|
4573
4578
|
} else {
|
|
4574
4579
|
var v = _.name;
|
|
4575
|
-
|
|
4580
|
+
V[v] = _, b = v;
|
|
4576
4581
|
}
|
|
4577
4582
|
return !E && b && (I = b), b || !E && I;
|
|
4578
|
-
},
|
|
4579
|
-
if (fe(
|
|
4580
|
-
return
|
|
4583
|
+
}, z = function(C, _) {
|
|
4584
|
+
if (fe(C))
|
|
4585
|
+
return C.clone();
|
|
4581
4586
|
var h = typeof _ == "object" ? _ : {};
|
|
4582
|
-
return h.date =
|
|
4583
|
-
},
|
|
4584
|
-
|
|
4585
|
-
return
|
|
4587
|
+
return h.date = C, h.args = arguments, new se(h);
|
|
4588
|
+
}, O = H;
|
|
4589
|
+
O.l = ee, O.i = fe, O.w = function(C, _) {
|
|
4590
|
+
return z(C, { locale: _.$L, utc: _.$u, x: _.$x, $offset: _.$offset });
|
|
4586
4591
|
};
|
|
4587
4592
|
var se = function() {
|
|
4588
|
-
function
|
|
4589
|
-
this.$L =
|
|
4593
|
+
function C(h) {
|
|
4594
|
+
this.$L = ee(h.locale, null, !0), this.parse(h), this.$x = this.$x || h.x || {}, this[oe] = !0;
|
|
4590
4595
|
}
|
|
4591
|
-
var _ =
|
|
4596
|
+
var _ = C.prototype;
|
|
4592
4597
|
return _.parse = function(h) {
|
|
4593
4598
|
this.$d = function(E) {
|
|
4594
4599
|
var b = E.date, L = E.utc;
|
|
4595
4600
|
if (b === null)
|
|
4596
4601
|
return /* @__PURE__ */ new Date(NaN);
|
|
4597
|
-
if (
|
|
4602
|
+
if (O.u(b))
|
|
4598
4603
|
return /* @__PURE__ */ new Date();
|
|
4599
4604
|
if (b instanceof Date)
|
|
4600
4605
|
return new Date(b);
|
|
4601
4606
|
if (typeof b == "string" && !/Z$/i.test(b)) {
|
|
4602
|
-
var
|
|
4603
|
-
if (
|
|
4604
|
-
var v =
|
|
4605
|
-
return L ? new Date(Date.UTC(
|
|
4607
|
+
var M = b.match(N);
|
|
4608
|
+
if (M) {
|
|
4609
|
+
var v = M[2] - 1 || 0, W = (M[7] || "0").substring(0, 3);
|
|
4610
|
+
return L ? new Date(Date.UTC(M[1], v, M[3] || 1, M[4] || 0, M[5] || 0, M[6] || 0, W)) : new Date(M[1], v, M[3] || 1, M[4] || 0, M[5] || 0, M[6] || 0, W);
|
|
4606
4611
|
}
|
|
4607
4612
|
}
|
|
4608
4613
|
return new Date(b);
|
|
@@ -4611,105 +4616,105 @@ var Rr = Ni(), Ii = { exports: {} };
|
|
|
4611
4616
|
var h = this.$d;
|
|
4612
4617
|
this.$y = h.getFullYear(), this.$M = h.getMonth(), this.$D = h.getDate(), this.$W = h.getDay(), this.$H = h.getHours(), this.$m = h.getMinutes(), this.$s = h.getSeconds(), this.$ms = h.getMilliseconds();
|
|
4613
4618
|
}, _.$utils = function() {
|
|
4614
|
-
return
|
|
4619
|
+
return O;
|
|
4615
4620
|
}, _.isValid = function() {
|
|
4616
4621
|
return this.$d.toString() !== g;
|
|
4617
4622
|
}, _.isSame = function(h, E) {
|
|
4618
|
-
var b =
|
|
4623
|
+
var b = z(h);
|
|
4619
4624
|
return this.startOf(E) <= b && b <= this.endOf(E);
|
|
4620
4625
|
}, _.isAfter = function(h, E) {
|
|
4621
|
-
return
|
|
4626
|
+
return z(h) < this.startOf(E);
|
|
4622
4627
|
}, _.isBefore = function(h, E) {
|
|
4623
|
-
return this.endOf(E) <
|
|
4628
|
+
return this.endOf(E) < z(h);
|
|
4624
4629
|
}, _.$g = function(h, E, b) {
|
|
4625
|
-
return
|
|
4630
|
+
return O.u(h) ? this[E] : this.set(b, h);
|
|
4626
4631
|
}, _.unix = function() {
|
|
4627
4632
|
return Math.floor(this.valueOf() / 1e3);
|
|
4628
4633
|
}, _.valueOf = function() {
|
|
4629
4634
|
return this.$d.getTime();
|
|
4630
4635
|
}, _.startOf = function(h, E) {
|
|
4631
|
-
var b = this, L = !!
|
|
4632
|
-
var
|
|
4633
|
-
return L ?
|
|
4634
|
-
},
|
|
4635
|
-
return
|
|
4636
|
-
}, P = this.$W,
|
|
4637
|
-
switch (
|
|
4636
|
+
var b = this, L = !!O.u(E) || E, M = O.p(h), v = function(Z, re) {
|
|
4637
|
+
var te = O.w(b.$u ? Date.UTC(b.$y, re, Z) : new Date(b.$y, re, Z), b);
|
|
4638
|
+
return L ? te : te.endOf(u);
|
|
4639
|
+
}, W = function(Z, re) {
|
|
4640
|
+
return O.w(b.toDate()[Z].apply(b.toDate("s"), (L ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(re)), b);
|
|
4641
|
+
}, P = this.$W, J = this.$M, D = this.$D, p = "set" + (this.$u ? "UTC" : "");
|
|
4642
|
+
switch (M) {
|
|
4638
4643
|
case A:
|
|
4639
4644
|
return L ? v(1, 0) : v(31, 11);
|
|
4640
4645
|
case m:
|
|
4641
|
-
return L ? v(1,
|
|
4646
|
+
return L ? v(1, J) : v(0, J + 1);
|
|
4642
4647
|
case f:
|
|
4643
|
-
var G = this.$locale().weekStart || 0,
|
|
4644
|
-
return v(L ? D -
|
|
4648
|
+
var G = this.$locale().weekStart || 0, Y = (P < G ? P + 7 : P) - G;
|
|
4649
|
+
return v(L ? D - Y : D + (6 - Y), J);
|
|
4645
4650
|
case u:
|
|
4646
4651
|
case x:
|
|
4647
|
-
return
|
|
4652
|
+
return W(p + "Hours", 0);
|
|
4648
4653
|
case c:
|
|
4649
|
-
return
|
|
4654
|
+
return W(p + "Minutes", 1);
|
|
4650
4655
|
case a:
|
|
4651
|
-
return
|
|
4656
|
+
return W(p + "Seconds", 2);
|
|
4652
4657
|
case l:
|
|
4653
|
-
return
|
|
4658
|
+
return W(p + "Milliseconds", 3);
|
|
4654
4659
|
default:
|
|
4655
4660
|
return this.clone();
|
|
4656
4661
|
}
|
|
4657
4662
|
}, _.endOf = function(h) {
|
|
4658
4663
|
return this.startOf(h, !1);
|
|
4659
4664
|
}, _.$set = function(h, E) {
|
|
4660
|
-
var b, L =
|
|
4665
|
+
var b, L = O.p(h), M = "set" + (this.$u ? "UTC" : ""), v = (b = {}, b[u] = M + "Date", b[x] = M + "Date", b[m] = M + "Month", b[A] = M + "FullYear", b[c] = M + "Hours", b[a] = M + "Minutes", b[l] = M + "Seconds", b[o] = M + "Milliseconds", b)[L], W = L === u ? this.$D + (E - this.$W) : E;
|
|
4661
4666
|
if (L === m || L === A) {
|
|
4662
4667
|
var P = this.clone().set(x, 1);
|
|
4663
|
-
P.$d[v](
|
|
4668
|
+
P.$d[v](W), P.init(), this.$d = P.set(x, Math.min(this.$D, P.daysInMonth())).$d;
|
|
4664
4669
|
} else
|
|
4665
|
-
v && this.$d[v](
|
|
4670
|
+
v && this.$d[v](W);
|
|
4666
4671
|
return this.init(), this;
|
|
4667
4672
|
}, _.set = function(h, E) {
|
|
4668
4673
|
return this.clone().$set(h, E);
|
|
4669
4674
|
}, _.get = function(h) {
|
|
4670
|
-
return this[
|
|
4675
|
+
return this[O.p(h)]();
|
|
4671
4676
|
}, _.add = function(h, E) {
|
|
4672
4677
|
var b, L = this;
|
|
4673
4678
|
h = Number(h);
|
|
4674
|
-
var
|
|
4675
|
-
var D =
|
|
4676
|
-
return
|
|
4679
|
+
var M = O.p(E), v = function(J) {
|
|
4680
|
+
var D = z(L);
|
|
4681
|
+
return O.w(D.date(D.date() + Math.round(J * h)), L);
|
|
4677
4682
|
};
|
|
4678
|
-
if (
|
|
4683
|
+
if (M === m)
|
|
4679
4684
|
return this.set(m, this.$M + h);
|
|
4680
|
-
if (
|
|
4685
|
+
if (M === A)
|
|
4681
4686
|
return this.set(A, this.$y + h);
|
|
4682
|
-
if (
|
|
4687
|
+
if (M === u)
|
|
4683
4688
|
return v(1);
|
|
4684
|
-
if (
|
|
4689
|
+
if (M === f)
|
|
4685
4690
|
return v(7);
|
|
4686
|
-
var
|
|
4687
|
-
return
|
|
4691
|
+
var W = (b = {}, b[a] = r, b[c] = i, b[l] = n, b)[M] || 1, P = this.$d.getTime() + h * W;
|
|
4692
|
+
return O.w(P, this);
|
|
4688
4693
|
}, _.subtract = function(h, E) {
|
|
4689
4694
|
return this.add(-1 * h, E);
|
|
4690
4695
|
}, _.format = function(h) {
|
|
4691
4696
|
var E = this, b = this.$locale();
|
|
4692
4697
|
if (!this.isValid())
|
|
4693
4698
|
return b.invalidDate || g;
|
|
4694
|
-
var L = h || "YYYY-MM-DDTHH:mm:ssZ",
|
|
4695
|
-
return
|
|
4696
|
-
},
|
|
4697
|
-
return
|
|
4698
|
-
},
|
|
4699
|
-
var le =
|
|
4699
|
+
var L = h || "YYYY-MM-DDTHH:mm:ssZ", M = O.z(this), v = this.$H, W = this.$m, P = this.$M, J = b.weekdays, D = b.months, p = b.meridiem, G = function(re, te, he, le) {
|
|
4700
|
+
return re && (re[te] || re(E, L)) || he[te].slice(0, le);
|
|
4701
|
+
}, Y = function(re) {
|
|
4702
|
+
return O.s(v % 12 || 12, re, "0");
|
|
4703
|
+
}, Z = p || function(re, te, he) {
|
|
4704
|
+
var le = re < 12 ? "AM" : "PM";
|
|
4700
4705
|
return he ? le.toLowerCase() : le;
|
|
4701
4706
|
};
|
|
4702
|
-
return L.replace(U, function(
|
|
4703
|
-
return
|
|
4707
|
+
return L.replace(U, function(re, te) {
|
|
4708
|
+
return te || function(he) {
|
|
4704
4709
|
switch (he) {
|
|
4705
4710
|
case "YY":
|
|
4706
4711
|
return String(E.$y).slice(-2);
|
|
4707
4712
|
case "YYYY":
|
|
4708
|
-
return
|
|
4713
|
+
return O.s(E.$y, 4, "0");
|
|
4709
4714
|
case "M":
|
|
4710
4715
|
return P + 1;
|
|
4711
4716
|
case "MM":
|
|
4712
|
-
return
|
|
4717
|
+
return O.s(P + 1, 2, "0");
|
|
4713
4718
|
case "MMM":
|
|
4714
4719
|
return G(b.monthsShort, P, D, 3);
|
|
4715
4720
|
case "MMMM":
|
|
@@ -4717,48 +4722,48 @@ var Rr = Ni(), Ii = { exports: {} };
|
|
|
4717
4722
|
case "D":
|
|
4718
4723
|
return E.$D;
|
|
4719
4724
|
case "DD":
|
|
4720
|
-
return
|
|
4725
|
+
return O.s(E.$D, 2, "0");
|
|
4721
4726
|
case "d":
|
|
4722
4727
|
return String(E.$W);
|
|
4723
4728
|
case "dd":
|
|
4724
|
-
return G(b.weekdaysMin, E.$W,
|
|
4729
|
+
return G(b.weekdaysMin, E.$W, J, 2);
|
|
4725
4730
|
case "ddd":
|
|
4726
|
-
return G(b.weekdaysShort, E.$W,
|
|
4731
|
+
return G(b.weekdaysShort, E.$W, J, 3);
|
|
4727
4732
|
case "dddd":
|
|
4728
|
-
return
|
|
4733
|
+
return J[E.$W];
|
|
4729
4734
|
case "H":
|
|
4730
4735
|
return String(v);
|
|
4731
4736
|
case "HH":
|
|
4732
|
-
return
|
|
4737
|
+
return O.s(v, 2, "0");
|
|
4733
4738
|
case "h":
|
|
4734
|
-
return
|
|
4739
|
+
return Y(1);
|
|
4735
4740
|
case "hh":
|
|
4736
|
-
return
|
|
4741
|
+
return Y(2);
|
|
4737
4742
|
case "a":
|
|
4738
|
-
return
|
|
4743
|
+
return Z(v, W, !0);
|
|
4739
4744
|
case "A":
|
|
4740
|
-
return
|
|
4745
|
+
return Z(v, W, !1);
|
|
4741
4746
|
case "m":
|
|
4742
|
-
return String(
|
|
4747
|
+
return String(W);
|
|
4743
4748
|
case "mm":
|
|
4744
|
-
return
|
|
4749
|
+
return O.s(W, 2, "0");
|
|
4745
4750
|
case "s":
|
|
4746
4751
|
return String(E.$s);
|
|
4747
4752
|
case "ss":
|
|
4748
|
-
return
|
|
4753
|
+
return O.s(E.$s, 2, "0");
|
|
4749
4754
|
case "SSS":
|
|
4750
|
-
return
|
|
4755
|
+
return O.s(E.$ms, 3, "0");
|
|
4751
4756
|
case "Z":
|
|
4752
|
-
return
|
|
4757
|
+
return M;
|
|
4753
4758
|
}
|
|
4754
4759
|
return null;
|
|
4755
|
-
}(
|
|
4760
|
+
}(re) || M.replace(":", "");
|
|
4756
4761
|
});
|
|
4757
4762
|
}, _.utcOffset = function() {
|
|
4758
4763
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4759
4764
|
}, _.diff = function(h, E, b) {
|
|
4760
|
-
var L,
|
|
4761
|
-
return
|
|
4765
|
+
var L, M = this, v = O.p(E), W = z(h), P = (W.utcOffset() - this.utcOffset()) * r, J = this - W, D = function() {
|
|
4766
|
+
return O.m(M, W);
|
|
4762
4767
|
};
|
|
4763
4768
|
switch (v) {
|
|
4764
4769
|
case A:
|
|
@@ -4771,35 +4776,35 @@ var Rr = Ni(), Ii = { exports: {} };
|
|
|
4771
4776
|
L = D() / 3;
|
|
4772
4777
|
break;
|
|
4773
4778
|
case f:
|
|
4774
|
-
L = (
|
|
4779
|
+
L = (J - P) / 6048e5;
|
|
4775
4780
|
break;
|
|
4776
4781
|
case u:
|
|
4777
|
-
L = (
|
|
4782
|
+
L = (J - P) / 864e5;
|
|
4778
4783
|
break;
|
|
4779
4784
|
case c:
|
|
4780
|
-
L =
|
|
4785
|
+
L = J / i;
|
|
4781
4786
|
break;
|
|
4782
4787
|
case a:
|
|
4783
|
-
L =
|
|
4788
|
+
L = J / r;
|
|
4784
4789
|
break;
|
|
4785
4790
|
case l:
|
|
4786
|
-
L =
|
|
4791
|
+
L = J / n;
|
|
4787
4792
|
break;
|
|
4788
4793
|
default:
|
|
4789
|
-
L =
|
|
4794
|
+
L = J;
|
|
4790
4795
|
}
|
|
4791
|
-
return b ? L :
|
|
4796
|
+
return b ? L : O.a(L);
|
|
4792
4797
|
}, _.daysInMonth = function() {
|
|
4793
4798
|
return this.endOf(m).$D;
|
|
4794
4799
|
}, _.$locale = function() {
|
|
4795
|
-
return
|
|
4800
|
+
return V[this.$L];
|
|
4796
4801
|
}, _.locale = function(h, E) {
|
|
4797
4802
|
if (!h)
|
|
4798
4803
|
return this.$L;
|
|
4799
|
-
var b = this.clone(), L =
|
|
4804
|
+
var b = this.clone(), L = ee(h, E, !0);
|
|
4800
4805
|
return L && (b.$L = L), b;
|
|
4801
4806
|
}, _.clone = function() {
|
|
4802
|
-
return
|
|
4807
|
+
return O.w(this.$d, this);
|
|
4803
4808
|
}, _.toDate = function() {
|
|
4804
4809
|
return new Date(this.valueOf());
|
|
4805
4810
|
}, _.toJSON = function() {
|
|
@@ -4808,21 +4813,21 @@ var Rr = Ni(), Ii = { exports: {} };
|
|
|
4808
4813
|
return this.$d.toISOString();
|
|
4809
4814
|
}, _.toString = function() {
|
|
4810
4815
|
return this.$d.toUTCString();
|
|
4811
|
-
},
|
|
4816
|
+
}, C;
|
|
4812
4817
|
}(), Ee = se.prototype;
|
|
4813
|
-
return
|
|
4814
|
-
Ee[
|
|
4815
|
-
return this.$g(_,
|
|
4818
|
+
return z.prototype = Ee, [["$ms", o], ["$s", l], ["$m", a], ["$H", c], ["$W", u], ["$M", m], ["$y", A], ["$D", x]].forEach(function(C) {
|
|
4819
|
+
Ee[C[1]] = function(_) {
|
|
4820
|
+
return this.$g(_, C[0], C[1]);
|
|
4816
4821
|
};
|
|
4817
|
-
}),
|
|
4818
|
-
return
|
|
4819
|
-
},
|
|
4820
|
-
return
|
|
4821
|
-
},
|
|
4822
|
+
}), z.extend = function(C, _) {
|
|
4823
|
+
return C.$i || (C(_, se, z), C.$i = !0), z;
|
|
4824
|
+
}, z.locale = ee, z.isDayjs = fe, z.unix = function(C) {
|
|
4825
|
+
return z(1e3 * C);
|
|
4826
|
+
}, z.en = V[I], z.Ls = V, z.p = {}, z;
|
|
4822
4827
|
});
|
|
4823
4828
|
})(Ii);
|
|
4824
|
-
var
|
|
4825
|
-
const Dr = /* @__PURE__ */
|
|
4829
|
+
var La = Ii.exports;
|
|
4830
|
+
const Dr = /* @__PURE__ */ Nn(La);
|
|
4826
4831
|
var Pi = { exports: {} };
|
|
4827
4832
|
(function(e, t) {
|
|
4828
4833
|
(function(n, r) {
|
|
@@ -4859,19 +4864,19 @@ var Pi = { exports: {} };
|
|
|
4859
4864
|
return this.$u ? 0 : U(this.$offset) ? m.call(this) : this.$offset;
|
|
4860
4865
|
if (typeof g == "string" && (g = function(I) {
|
|
4861
4866
|
I === void 0 && (I = "");
|
|
4862
|
-
var
|
|
4863
|
-
if (!
|
|
4867
|
+
var V = I.match(r);
|
|
4868
|
+
if (!V)
|
|
4864
4869
|
return null;
|
|
4865
|
-
var oe = ("" +
|
|
4866
|
-
return
|
|
4870
|
+
var oe = ("" + V[0]).match(i) || ["-", 0, 0], fe = oe[0], ee = 60 * +oe[1] + +oe[2];
|
|
4871
|
+
return ee === 0 ? 0 : fe === "+" ? ee : -ee;
|
|
4867
4872
|
}(g), g === null))
|
|
4868
4873
|
return this;
|
|
4869
|
-
var
|
|
4874
|
+
var X = Math.abs(g) <= 16 ? 60 * g : g, R = this;
|
|
4870
4875
|
if (N)
|
|
4871
|
-
return R.$offset =
|
|
4876
|
+
return R.$offset = X, R.$u = g === 0, R;
|
|
4872
4877
|
if (g !== 0) {
|
|
4873
4878
|
var H = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
4874
|
-
(R = this.local().add(
|
|
4879
|
+
(R = this.local().add(X + H, n)).$offset = X, R.$x.$localOffset = H;
|
|
4875
4880
|
} else
|
|
4876
4881
|
R = this.utc();
|
|
4877
4882
|
return R;
|
|
@@ -4898,22 +4903,22 @@ var Pi = { exports: {} };
|
|
|
4898
4903
|
c.diff = function(g, N, U) {
|
|
4899
4904
|
if (g && this.$u === g.$u)
|
|
4900
4905
|
return x.call(this, g, N, U);
|
|
4901
|
-
var
|
|
4902
|
-
return x.call(
|
|
4906
|
+
var X = this.local(), R = a(g).local();
|
|
4907
|
+
return x.call(X, R, N, U);
|
|
4903
4908
|
};
|
|
4904
4909
|
};
|
|
4905
4910
|
});
|
|
4906
4911
|
})(Pi);
|
|
4907
|
-
var
|
|
4908
|
-
const
|
|
4909
|
-
let Br =
|
|
4910
|
-
function
|
|
4912
|
+
var Ha = Pi.exports;
|
|
4913
|
+
const Na = /* @__PURE__ */ Nn(Ha);
|
|
4914
|
+
let Br = vt(null);
|
|
4915
|
+
function Ia(e, t) {
|
|
4911
4916
|
if (e) {
|
|
4912
4917
|
const n = document.createElement("style");
|
|
4913
4918
|
n.innerHTML = t, e.appendChild(n);
|
|
4914
4919
|
}
|
|
4915
4920
|
}
|
|
4916
|
-
function
|
|
4921
|
+
function Pa(e, t) {
|
|
4917
4922
|
if (!e || !t)
|
|
4918
4923
|
return;
|
|
4919
4924
|
const n = new URL(t);
|
|
@@ -4924,7 +4929,7 @@ function Ra(e, t) {
|
|
|
4924
4929
|
console.error("There was an error while trying to load client styling from URL", r);
|
|
4925
4930
|
});
|
|
4926
4931
|
}
|
|
4927
|
-
function
|
|
4932
|
+
function Ra(e, t, n) {
|
|
4928
4933
|
if (window.emMessageBus) {
|
|
4929
4934
|
const r = document.createElement("style");
|
|
4930
4935
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4932,177 +4937,177 @@ function Da(e, t, n) {
|
|
|
4932
4937
|
});
|
|
4933
4938
|
}
|
|
4934
4939
|
}
|
|
4935
|
-
function
|
|
4940
|
+
function Da(e) {
|
|
4936
4941
|
Xi(e, "svelte-1kjup2o", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes loading-spinner{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.CashierSessionExpirationModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:115;top:0;left:0;background-color:var(--emw--color-black-transparency-20, rgba(0, 0, 0, 0.3));container-type:inline-size;container-name:session-expiration-modal-window}.CashierSessionExpirationModalWrapper{background:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));border-radius:var(--emw--border-radius-medium, 10px);display:flex;flex-direction:column;min-width:400px;position:relative;z-index:1;box-shadow:inset 0px 0px 0px 2px rgba(255, 255, 255, 0.3);padding:20px}.CashierSessionExpirationModalWrapper::before{content:"";position:absolute;inset:0;opacity:0.15;z-index:-1;pointer-events:none;border-radius:16px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 40%, var(--emw--color-black, #000000) 60%)}.ButtonsContainer{display:flex;flex-direction:row;gap:10px}.CashierSessionExpirationModalHeader{display:flex;align-items:center;position:relative;background-color:var(--emw--color-gray-10, rgba(17, 17, 17, 0.0666666667));width:100%;border-radius:var(--emw--border-radius-medium, 4px) var(--emw--border-radius-medium, 4px) 0 0;justify-content:space-between}.CashierSessionExpirationModalHeaderTitle{display:flex;align-items:center;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-semibold, 500);gap:8px}.CashierSessionExpirationModalHeaderTitle svg{width:24px;height:24px;fill:var(--emw--color-typography, #fff)}.CashierSessionExpirationModalCloseBtn{position:absolute;display:flex;justify-content:center;top:10px;right:10px;border-radius:50%;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));background:var(--emw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.CashierSessionExpirationModalCloseBtn svg{width:32px;height:32px}.CashierSessionExpirationModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}.CashierSessionExpiration{width:100%;display:flex;flex-direction:column;margin-top:20px;gap:25px}.CashierSessionExpiration .CashierSessionExpirationButton{width:100%;height:36px;color:var(--emw-color-font-typography, #fff);text-align:center;cursor:pointer;font-size:var(--emw--font-size-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:125%;border:none;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #f9c405)}.CashierSessionExpirationTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);line-height:120%}.CashierSessionExpirationText{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 12px);opacity:0.6}.CashierSessionExpirationText p{padding:3px}.CashierSessionExpirationButtonText{font-size:var(--emw--font-size-small, 12px);font-family:inherit}.CashierSessionExpirationButtonSpinner{animation:loading-spinner 1s linear infinite}@container session-expiration-modal-window (max-width:750px){.CashierSessionExpirationModalWindow .CashierSessionExpirationModalWrapper{width:90%;max-width:400px}}.ModalCloseIcon{z-index:20;transition:all 0.2s ease}.ModalCloseIcon svg{fill:var(--emw--color-typography, #fff);width:11px;height:11px}.ModalCloseIcon:hover{transform:rotate(90deg)}.ModalButton{color:var(--emw--color-secondary, #000);text-align:center;font-size:var(--emw--font-size-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 600);font-family:inherit;height:46px;line-height:normal;border:none;background:var(--emw--color-primary, #f9c408);border-radius:10px;width:100%;margin:var(--emw--spacing-small, 12px) 0;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-2x-small-plus, 5px);transition:all 0.2s linear;box-shadow:inset 0px 0px 0px 1px var(--emw--color-primary)}.ModalButton:hover{background-color:var(--emw--color-hover, #dbac03)}.ModalButton.Secondary{background:transparent;color:var(--emw-color-white, #fff)}.ModalButton.Secondary:hover{background-color:var(--emw--color-hover, #dbac03);color:var(--emw-color-black, #000)}.ModalButton.Primary.Disabled{cursor:default;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);opacity:0.5}.ModalButton.Primary.Disabled:hover{background:var(--emw--color-primary, #f9c408);cursor:not-allowed}');
|
|
4937
4942
|
}
|
|
4938
|
-
const
|
|
4943
|
+
const Ba = (e) => ({}), $r = (e) => ({}), $a = (e) => ({}), Ur = (e) => ({}), Ua = (e) => ({}), kr = (e) => ({}), ka = (e) => ({}), Fr = (e) => ({ class: "CashierSessionExpirationIcon" });
|
|
4939
4944
|
function Gr(e) {
|
|
4940
4945
|
let t, n, r, i, o, l, a, c, u, f, m, y, A = (
|
|
4941
4946
|
/*$_*/
|
|
4942
4947
|
e[8]("sessionExpirationHeader") + ""
|
|
4943
|
-
), x, g, N, U,
|
|
4948
|
+
), x, g, N, U, X, R, H, I, V, oe, fe, ee, z, O, se = (
|
|
4944
4949
|
/*$_*/
|
|
4945
4950
|
e[8]("sessionExpirationEnd") + ""
|
|
4946
|
-
), Ee,
|
|
4947
|
-
const
|
|
4951
|
+
), Ee, C, _, h, E, b, L, M, v, W, P;
|
|
4952
|
+
const J = (
|
|
4948
4953
|
/*#slots*/
|
|
4949
4954
|
e[23].icon
|
|
4950
|
-
), D =
|
|
4951
|
-
|
|
4955
|
+
), D = Rt(
|
|
4956
|
+
J,
|
|
4952
4957
|
e,
|
|
4953
4958
|
/*$$scope*/
|
|
4954
4959
|
e[22],
|
|
4955
4960
|
Fr
|
|
4956
|
-
),
|
|
4961
|
+
), p = D || Fa(e), G = (
|
|
4957
4962
|
/*#slots*/
|
|
4958
4963
|
e[23].title
|
|
4959
|
-
),
|
|
4964
|
+
), Y = Rt(
|
|
4960
4965
|
G,
|
|
4961
4966
|
e,
|
|
4962
4967
|
/*$$scope*/
|
|
4963
4968
|
e[22],
|
|
4964
4969
|
kr
|
|
4965
|
-
),
|
|
4970
|
+
), Z = (
|
|
4966
4971
|
/*#slots*/
|
|
4967
4972
|
e[23].text
|
|
4968
|
-
),
|
|
4969
|
-
|
|
4973
|
+
), re = Rt(
|
|
4974
|
+
Z,
|
|
4970
4975
|
e,
|
|
4971
4976
|
/*$$scope*/
|
|
4972
4977
|
e[22],
|
|
4973
4978
|
Ur
|
|
4974
|
-
),
|
|
4975
|
-
function Ae(
|
|
4979
|
+
), te = re || Ga(e), he = [za, ja], le = [];
|
|
4980
|
+
function Ae(Q, ie) {
|
|
4976
4981
|
return (
|
|
4977
4982
|
/*showLoaderButton*/
|
|
4978
|
-
|
|
4983
|
+
Q[6] ? 0 : 1
|
|
4979
4984
|
);
|
|
4980
4985
|
}
|
|
4981
4986
|
return h = Ae(e), E = le[h] = he[h](e), {
|
|
4982
4987
|
c() {
|
|
4983
|
-
t =
|
|
4984
|
-
(e[6] ? "Disabled" : "")), w(
|
|
4988
|
+
t = ne("div"), n = ne("div"), r = ne("div"), i = ne("div"), o = Te("svg"), l = Te("defs"), a = Te("mask"), c = Te("circle"), u = Te("rect"), f = Te("circle"), m = Te("circle"), y = Ie(), x = Fe(A), g = Ie(), N = ne("div"), U = Te("svg"), X = Te("path"), R = Ie(), H = ne("div"), I = ne("div"), p && p.c(), V = Ie(), Y && Y.c(), oe = Ie(), te && te.c(), fe = Ie(), ee = ne("div"), z = ne("button"), O = ne("span"), Ee = Fe(se), C = Ie(), _ = ne("button"), E.c(), w(c, "cx", "100"), w(c, "cy", "100"), w(c, "r", "90"), w(u, "x", "88"), w(u, "y", "40"), w(u, "width", "24"), w(u, "height", "80"), w(u, "rx", "12"), w(u, "fill", "black"), w(f, "cx", "100"), w(f, "cy", "150"), w(f, "r", "14"), w(f, "fill", "black"), w(a, "id", "exclamation-mask"), w(m, "cx", "100"), w(m, "cy", "100"), w(m, "r", "90"), w(m, "mask", "url(#exclamation-mask)"), w(o, "viewBox", "0 0 200 200"), w(o, "xmlns", "http://www.w3.org/2000/svg"), w(i, "class", "CashierSessionExpirationModalHeaderTitle"), w(X, "d", "M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"), w(U, "xmlns", "http://www.w3.org/2000/svg"), w(U, "viewBox", "0 0 13 13"), w(U, "fill", "none"), w(U, "class", "CloseButton"), w(N, "class", "ModalCloseIcon"), w(r, "class", "CashierSessionExpirationModalHeader"), w(O, "class", "CashierSessionExpirationButtonText"), w(z, "type", "button"), w(z, "class", "ModalButton Secondary"), w(_, "type", "button"), w(_, "class", b = "ModalButton Primary " + /*showLoaderButton*/
|
|
4989
|
+
(e[6] ? "Disabled" : "")), w(ee, "class", "ButtonsContainer"), w(I, "class", "CashierSessionExpiration"), w(H, "class", "CashierSessionExpirationModalContainer"), w(n, "class", "CashierSessionExpirationModalWrapper"), w(t, "class", "CashierSessionExpirationModalWindow"), w(t, "id", "CashierSessionExpirationModal"), Ke(() => (
|
|
4985
4990
|
/*div7_elementresize_handler*/
|
|
4986
4991
|
e[25].call(t)
|
|
4987
4992
|
));
|
|
4988
4993
|
},
|
|
4989
|
-
m(
|
|
4990
|
-
|
|
4994
|
+
m(Q, ie) {
|
|
4995
|
+
$e(Q, t, ie), B(t, n), B(n, r), B(r, i), B(i, o), B(o, l), B(l, a), B(a, c), B(a, u), B(a, f), B(o, m), B(i, y), B(i, x), B(r, g), B(r, N), B(N, U), B(U, X), B(n, R), B(n, H), B(H, I), p && p.m(I, null), B(I, V), Y && Y.m(I, null), B(I, oe), te && te.m(I, null), B(I, fe), B(I, ee), B(ee, z), B(z, O), B(O, Ee), B(ee, C), B(ee, _), le[h].m(_, null), e[24](I), L = Qi(
|
|
4991
4996
|
t,
|
|
4992
4997
|
/*div7_elementresize_handler*/
|
|
4993
4998
|
e[25].bind(t)
|
|
4994
|
-
), v = !0,
|
|
4995
|
-
|
|
4999
|
+
), v = !0, W || (P = [
|
|
5000
|
+
qe(
|
|
4996
5001
|
U,
|
|
4997
5002
|
"click",
|
|
4998
5003
|
/*goToHome*/
|
|
4999
5004
|
e[11]
|
|
5000
5005
|
),
|
|
5001
|
-
|
|
5002
|
-
|
|
5006
|
+
qe(
|
|
5007
|
+
z,
|
|
5003
5008
|
"click",
|
|
5004
5009
|
/*goToHome*/
|
|
5005
5010
|
e[11]
|
|
5006
5011
|
),
|
|
5007
|
-
|
|
5012
|
+
qe(
|
|
5008
5013
|
_,
|
|
5009
5014
|
"click",
|
|
5010
5015
|
/*renewSession*/
|
|
5011
5016
|
e[9]
|
|
5012
5017
|
),
|
|
5013
|
-
|
|
5018
|
+
qe(
|
|
5014
5019
|
t,
|
|
5015
5020
|
"click",
|
|
5016
5021
|
/*outOfModalClick*/
|
|
5017
5022
|
e[10]
|
|
5018
5023
|
)
|
|
5019
|
-
],
|
|
5024
|
+
], W = !0);
|
|
5020
5025
|
},
|
|
5021
|
-
p(
|
|
5022
|
-
e =
|
|
5026
|
+
p(Q, ie) {
|
|
5027
|
+
e = Q, (!v || ie[0] & /*$_*/
|
|
5023
5028
|
256) && A !== (A = /*$_*/
|
|
5024
|
-
e[8]("sessionExpirationHeader") + "") &&
|
|
5025
|
-
4194304) &&
|
|
5029
|
+
e[8]("sessionExpirationHeader") + "") && bt(x, A), D ? D.p && (!v || ie[0] & /*$$scope*/
|
|
5030
|
+
4194304) && Bt(
|
|
5026
5031
|
D,
|
|
5027
|
-
|
|
5032
|
+
J,
|
|
5028
5033
|
e,
|
|
5029
5034
|
/*$$scope*/
|
|
5030
5035
|
e[22],
|
|
5031
|
-
v ?
|
|
5032
|
-
|
|
5036
|
+
v ? Dt(
|
|
5037
|
+
J,
|
|
5033
5038
|
/*$$scope*/
|
|
5034
5039
|
e[22],
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
) :
|
|
5040
|
+
ie,
|
|
5041
|
+
ka
|
|
5042
|
+
) : $t(
|
|
5038
5043
|
/*$$scope*/
|
|
5039
5044
|
e[22]
|
|
5040
5045
|
),
|
|
5041
5046
|
Fr
|
|
5042
|
-
) :
|
|
5043
|
-
8) &&
|
|
5044
|
-
4194304) &&
|
|
5045
|
-
|
|
5047
|
+
) : p && p.p && (!v || ie[0] & /*assetsurl*/
|
|
5048
|
+
8) && p.p(e, v ? ie : [-1, -1]), Y && Y.p && (!v || ie[0] & /*$$scope*/
|
|
5049
|
+
4194304) && Bt(
|
|
5050
|
+
Y,
|
|
5046
5051
|
G,
|
|
5047
5052
|
e,
|
|
5048
5053
|
/*$$scope*/
|
|
5049
5054
|
e[22],
|
|
5050
|
-
v ?
|
|
5055
|
+
v ? Dt(
|
|
5051
5056
|
G,
|
|
5052
5057
|
/*$$scope*/
|
|
5053
5058
|
e[22],
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
) :
|
|
5059
|
+
ie,
|
|
5060
|
+
Ua
|
|
5061
|
+
) : $t(
|
|
5057
5062
|
/*$$scope*/
|
|
5058
5063
|
e[22]
|
|
5059
5064
|
),
|
|
5060
5065
|
kr
|
|
5061
|
-
),
|
|
5062
|
-
4194304) &&
|
|
5063
|
-
|
|
5064
|
-
|
|
5066
|
+
), re ? re.p && (!v || ie[0] & /*$$scope*/
|
|
5067
|
+
4194304) && Bt(
|
|
5068
|
+
re,
|
|
5069
|
+
Z,
|
|
5065
5070
|
e,
|
|
5066
5071
|
/*$$scope*/
|
|
5067
5072
|
e[22],
|
|
5068
|
-
v ?
|
|
5069
|
-
|
|
5073
|
+
v ? Dt(
|
|
5074
|
+
Z,
|
|
5070
5075
|
/*$$scope*/
|
|
5071
5076
|
e[22],
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
) :
|
|
5077
|
+
ie,
|
|
5078
|
+
$a
|
|
5079
|
+
) : $t(
|
|
5075
5080
|
/*$$scope*/
|
|
5076
5081
|
e[22]
|
|
5077
5082
|
),
|
|
5078
5083
|
Ur
|
|
5079
|
-
) :
|
|
5080
|
-
384) &&
|
|
5084
|
+
) : te && te.p && (!v || ie[0] & /*$_, timeLeft*/
|
|
5085
|
+
384) && te.p(e, v ? ie : [-1, -1]), (!v || ie[0] & /*$_*/
|
|
5081
5086
|
256) && se !== (se = /*$_*/
|
|
5082
|
-
e[8]("sessionExpirationEnd") + "") &&
|
|
5083
|
-
let
|
|
5084
|
-
h = Ae(e), h ===
|
|
5085
|
-
le[
|
|
5086
|
-
}), ei(), E = le[h], E ? E.p(e,
|
|
5087
|
+
e[8]("sessionExpirationEnd") + "") && bt(Ee, se);
|
|
5088
|
+
let Me = h;
|
|
5089
|
+
h = Ae(e), h === Me ? le[h].p(e, ie) : (Kr(), Re(le[Me], 1, 1, () => {
|
|
5090
|
+
le[Me] = null;
|
|
5091
|
+
}), ei(), E = le[h], E ? E.p(e, ie) : (E = le[h] = he[h](e), E.c()), Le(E, 1), E.m(_, null)), (!v || ie[0] & /*showLoaderButton*/
|
|
5087
5092
|
64 && b !== (b = "ModalButton Primary " + /*showLoaderButton*/
|
|
5088
5093
|
(e[6] ? "Disabled" : ""))) && w(_, "class", b);
|
|
5089
5094
|
},
|
|
5090
|
-
i(
|
|
5091
|
-
v || (Le(
|
|
5092
|
-
v && (
|
|
5095
|
+
i(Q) {
|
|
5096
|
+
v || (Le(p, Q), Le(Y, Q), Le(te, Q), Le(E), Q && Ke(() => {
|
|
5097
|
+
v && (M || (M = ur(t, cr, { duration: (
|
|
5093
5098
|
/*duration*/
|
|
5094
5099
|
e[2]
|
|
5095
|
-
) }, !0)),
|
|
5100
|
+
) }, !0)), M.run(1));
|
|
5096
5101
|
}), v = !0);
|
|
5097
5102
|
},
|
|
5098
|
-
o(
|
|
5099
|
-
|
|
5103
|
+
o(Q) {
|
|
5104
|
+
Re(p, Q), Re(Y, Q), Re(te, Q), Re(E), Q && (M || (M = ur(t, cr, { duration: (
|
|
5100
5105
|
/*duration*/
|
|
5101
5106
|
e[2]
|
|
5102
|
-
) }, !1)),
|
|
5107
|
+
) }, !1)), M.run(0)), v = !1;
|
|
5103
5108
|
},
|
|
5104
|
-
d(
|
|
5105
|
-
|
|
5109
|
+
d(Q) {
|
|
5110
|
+
Q && we(t), p && p.d(Q), Y && Y.d(Q), te && te.d(Q), le[h].d(), e[24](null), L(), Q && M && M.end(), W = !1, Be(P);
|
|
5106
5111
|
}
|
|
5107
5112
|
};
|
|
5108
5113
|
}
|
|
@@ -5110,11 +5115,11 @@ function jr(e) {
|
|
|
5110
5115
|
let t, n;
|
|
5111
5116
|
return {
|
|
5112
5117
|
c() {
|
|
5113
|
-
t =
|
|
5118
|
+
t = ne("img"), or(t.src, n = `${/*assetsurl*/
|
|
5114
5119
|
e[3]}/set-timeout-icon.png`) || w(t, "src", n), w(t, "width", "300px"), w(t, "alt", "error");
|
|
5115
5120
|
},
|
|
5116
5121
|
m(r, i) {
|
|
5117
|
-
|
|
5122
|
+
$e(r, t, i);
|
|
5118
5123
|
},
|
|
5119
5124
|
p(r, i) {
|
|
5120
5125
|
i[0] & /*assetsurl*/
|
|
@@ -5126,7 +5131,7 @@ function jr(e) {
|
|
|
5126
5131
|
}
|
|
5127
5132
|
};
|
|
5128
5133
|
}
|
|
5129
|
-
function
|
|
5134
|
+
function Fa(e) {
|
|
5130
5135
|
let t, n = (
|
|
5131
5136
|
/*assetsurl*/
|
|
5132
5137
|
e[3] && jr(e)
|
|
@@ -5136,7 +5141,7 @@ function Ga(e) {
|
|
|
5136
5141
|
n && n.c(), t = Zi();
|
|
5137
5142
|
},
|
|
5138
5143
|
m(r, i) {
|
|
5139
|
-
n && n.m(r, i),
|
|
5144
|
+
n && n.m(r, i), $e(r, t, i);
|
|
5140
5145
|
},
|
|
5141
5146
|
p(r, i) {
|
|
5142
5147
|
/*assetsurl*/
|
|
@@ -5147,7 +5152,7 @@ function Ga(e) {
|
|
|
5147
5152
|
}
|
|
5148
5153
|
};
|
|
5149
5154
|
}
|
|
5150
|
-
function
|
|
5155
|
+
function Ga(e) {
|
|
5151
5156
|
let t, n, r = (
|
|
5152
5157
|
/*$_*/
|
|
5153
5158
|
e[8]("sessionExpirationTitle") + ""
|
|
@@ -5160,15 +5165,15 @@ function ja(e) {
|
|
|
5160
5165
|
) + "";
|
|
5161
5166
|
return {
|
|
5162
5167
|
c() {
|
|
5163
|
-
t =
|
|
5168
|
+
t = ne("span"), n = ne("p"), i = Fe(r), o = Ie(), l = ne("p"), w(t, "class", "CashierSessionExpirationText");
|
|
5164
5169
|
},
|
|
5165
5170
|
m(c, u) {
|
|
5166
|
-
|
|
5171
|
+
$e(c, t, u), B(t, n), B(n, i), B(t, o), B(t, l), l.innerHTML = a;
|
|
5167
5172
|
},
|
|
5168
5173
|
p(c, u) {
|
|
5169
5174
|
u[0] & /*$_*/
|
|
5170
5175
|
256 && r !== (r = /*$_*/
|
|
5171
|
-
c[8]("sessionExpirationTitle") + "") &&
|
|
5176
|
+
c[8]("sessionExpirationTitle") + "") && bt(i, r), u[0] & /*$_, timeLeft*/
|
|
5172
5177
|
384 && a !== (a = Rr.sanitize(
|
|
5173
5178
|
/*$_*/
|
|
5174
5179
|
c[8]("sessionExpirationGeneralText", { values: { second: (
|
|
@@ -5182,18 +5187,18 @@ function ja(e) {
|
|
|
5182
5187
|
}
|
|
5183
5188
|
};
|
|
5184
5189
|
}
|
|
5185
|
-
function
|
|
5190
|
+
function ja(e) {
|
|
5186
5191
|
let t;
|
|
5187
5192
|
const n = (
|
|
5188
5193
|
/*#slots*/
|
|
5189
5194
|
e[23].button
|
|
5190
|
-
), r =
|
|
5195
|
+
), r = Rt(
|
|
5191
5196
|
n,
|
|
5192
5197
|
e,
|
|
5193
5198
|
/*$$scope*/
|
|
5194
5199
|
e[22],
|
|
5195
5200
|
$r
|
|
5196
|
-
), i = r ||
|
|
5201
|
+
), i = r || Wa(e);
|
|
5197
5202
|
return {
|
|
5198
5203
|
c() {
|
|
5199
5204
|
i && i.c();
|
|
@@ -5203,19 +5208,19 @@ function za(e) {
|
|
|
5203
5208
|
},
|
|
5204
5209
|
p(o, l) {
|
|
5205
5210
|
r ? r.p && (!t || l[0] & /*$$scope*/
|
|
5206
|
-
4194304) &&
|
|
5211
|
+
4194304) && Bt(
|
|
5207
5212
|
r,
|
|
5208
5213
|
n,
|
|
5209
5214
|
o,
|
|
5210
5215
|
/*$$scope*/
|
|
5211
5216
|
o[22],
|
|
5212
|
-
t ?
|
|
5217
|
+
t ? Dt(
|
|
5213
5218
|
n,
|
|
5214
5219
|
/*$$scope*/
|
|
5215
5220
|
o[22],
|
|
5216
5221
|
l,
|
|
5217
|
-
|
|
5218
|
-
) :
|
|
5222
|
+
Ba
|
|
5223
|
+
) : $t(
|
|
5219
5224
|
/*$$scope*/
|
|
5220
5225
|
o[22]
|
|
5221
5226
|
),
|
|
@@ -5227,29 +5232,29 @@ function za(e) {
|
|
|
5227
5232
|
t || (Le(i, o), t = !0);
|
|
5228
5233
|
},
|
|
5229
5234
|
o(o) {
|
|
5230
|
-
|
|
5235
|
+
Re(i, o), t = !1;
|
|
5231
5236
|
},
|
|
5232
5237
|
d(o) {
|
|
5233
5238
|
i && i.d(o);
|
|
5234
5239
|
}
|
|
5235
5240
|
};
|
|
5236
5241
|
}
|
|
5237
|
-
function
|
|
5242
|
+
function za(e) {
|
|
5238
5243
|
let t, n, r, i, o, l = (
|
|
5239
5244
|
/*$_*/
|
|
5240
5245
|
e[8]("sessionExpirationLoadingButton") + ""
|
|
5241
5246
|
), a;
|
|
5242
5247
|
return {
|
|
5243
5248
|
c() {
|
|
5244
|
-
t =
|
|
5249
|
+
t = ne("div"), n = Te("svg"), r = Te("path"), i = Ie(), o = ne("span"), a = Fe(l), w(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"), w(r, "fill", "white"), w(n, "class", "CashierSessionExpirationButtonSpinner"), w(n, "xmlns", "http://www.w3.org/2000/svg"), w(n, "width", "15"), w(n, "height", "14"), w(n, "viewBox", "0 0 15 14"), w(n, "fill", "none"), w(o, "class", "CashierSessionExpirationButtonText");
|
|
5245
5250
|
},
|
|
5246
5251
|
m(c, u) {
|
|
5247
|
-
|
|
5252
|
+
$e(c, t, u), B(t, n), B(n, r), B(t, i), B(t, o), B(o, a);
|
|
5248
5253
|
},
|
|
5249
5254
|
p(c, u) {
|
|
5250
5255
|
u[0] & /*$_*/
|
|
5251
5256
|
256 && l !== (l = /*$_*/
|
|
5252
|
-
c[8]("sessionExpirationLoadingButton") + "") &&
|
|
5257
|
+
c[8]("sessionExpirationLoadingButton") + "") && bt(a, l);
|
|
5253
5258
|
},
|
|
5254
5259
|
i: ye,
|
|
5255
5260
|
o: ye,
|
|
@@ -5258,44 +5263,44 @@ function Wa(e) {
|
|
|
5258
5263
|
}
|
|
5259
5264
|
};
|
|
5260
5265
|
}
|
|
5261
|
-
function
|
|
5266
|
+
function Wa(e) {
|
|
5262
5267
|
let t, n = (
|
|
5263
5268
|
/*$_*/
|
|
5264
5269
|
e[8]("sessionExpirationGeneralButton") + ""
|
|
5265
5270
|
), r;
|
|
5266
5271
|
return {
|
|
5267
5272
|
c() {
|
|
5268
|
-
t =
|
|
5273
|
+
t = ne("span"), r = Fe(n), w(t, "class", "CashierSessionExpirationButtonText");
|
|
5269
5274
|
},
|
|
5270
5275
|
m(i, o) {
|
|
5271
|
-
|
|
5276
|
+
$e(i, t, o), B(t, r);
|
|
5272
5277
|
},
|
|
5273
5278
|
p(i, o) {
|
|
5274
5279
|
o[0] & /*$_*/
|
|
5275
5280
|
256 && n !== (n = /*$_*/
|
|
5276
|
-
i[8]("sessionExpirationGeneralButton") + "") &&
|
|
5281
|
+
i[8]("sessionExpirationGeneralButton") + "") && bt(r, n);
|
|
5277
5282
|
},
|
|
5278
5283
|
d(i) {
|
|
5279
5284
|
i && we(t);
|
|
5280
5285
|
}
|
|
5281
5286
|
};
|
|
5282
5287
|
}
|
|
5283
|
-
function
|
|
5288
|
+
function Va(e) {
|
|
5284
5289
|
let t, n, r = (
|
|
5285
5290
|
/*show*/
|
|
5286
5291
|
e[5] && Gr(e)
|
|
5287
5292
|
);
|
|
5288
5293
|
return {
|
|
5289
5294
|
c() {
|
|
5290
|
-
t =
|
|
5295
|
+
t = ne("div"), r && r.c();
|
|
5291
5296
|
},
|
|
5292
5297
|
m(i, o) {
|
|
5293
|
-
|
|
5298
|
+
$e(i, t, o), r && r.m(t, null), e[26](t), n = !0;
|
|
5294
5299
|
},
|
|
5295
5300
|
p(i, o) {
|
|
5296
5301
|
/*show*/
|
|
5297
5302
|
i[5] ? r ? (r.p(i, o), o[0] & /*show*/
|
|
5298
|
-
32 && Le(r, 1)) : (r = Gr(i), r.c(), Le(r, 1), r.m(t, null)) : r && (Kr(),
|
|
5303
|
+
32 && Le(r, 1)) : (r = Gr(i), r.c(), Le(r, 1), r.m(t, null)) : r && (Kr(), Re(r, 1, 1, () => {
|
|
5299
5304
|
r = null;
|
|
5300
5305
|
}), ei());
|
|
5301
5306
|
},
|
|
@@ -5303,29 +5308,29 @@ function Xa(e) {
|
|
|
5303
5308
|
n || (Le(r), n = !0);
|
|
5304
5309
|
},
|
|
5305
5310
|
o(i) {
|
|
5306
|
-
|
|
5311
|
+
Re(r), n = !1;
|
|
5307
5312
|
},
|
|
5308
5313
|
d(i) {
|
|
5309
5314
|
i && we(t), r && r.d(), e[26](null);
|
|
5310
5315
|
}
|
|
5311
5316
|
};
|
|
5312
5317
|
}
|
|
5313
|
-
const
|
|
5314
|
-
function
|
|
5318
|
+
const Xa = 90;
|
|
5319
|
+
function Ya(e, t, n) {
|
|
5315
5320
|
let r, i;
|
|
5316
|
-
sr(e, Br, (
|
|
5321
|
+
sr(e, Br, (p) => n(21, r = p)), sr(e, ua, (p) => n(8, i = p));
|
|
5317
5322
|
let { $$slots: o = {}, $$scope: l } = t;
|
|
5318
|
-
Dr.extend(
|
|
5319
|
-
let { clientstyling: a = "" } = t, { clientstylingurl: c = "" } = t, { width: u } = t, { height: f } = t, { duration: m = 200 } = t, { assetsurl: y = "" } = t, { lang: A = "en" } = t, { translationurl: x = "" } = t, { endpoint: g } = t, { currency: N } = t, { customerid: U } = t, { selectedpaymentmethodname:
|
|
5323
|
+
Dr.extend(Na);
|
|
5324
|
+
let { clientstyling: a = "" } = t, { clientstylingurl: c = "" } = t, { width: u } = t, { height: f } = t, { duration: m = 200 } = t, { assetsurl: y = "" } = t, { lang: A = "en" } = t, { translationurl: x = "" } = t, { endpoint: g } = t, { currency: N } = t, { customerid: U } = t, { selectedpaymentmethodname: X } = t, { mbsource: R = "" } = t, H, I = !1, V = !1, oe, fe, ee, z, O;
|
|
5320
5325
|
var se;
|
|
5321
|
-
(function(
|
|
5322
|
-
|
|
5326
|
+
(function(p) {
|
|
5327
|
+
p.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", p.Success = "Success", p.JwtTokenError = "JwtTokenError";
|
|
5323
5328
|
})(se || (se = {}));
|
|
5324
|
-
const Ee = (
|
|
5325
|
-
|
|
5326
|
-
},
|
|
5329
|
+
const Ee = (p) => {
|
|
5330
|
+
p.data.type === "StartSessionCountdown" && (z = p.data.paymentMethodName);
|
|
5331
|
+
}, C = (p) => {
|
|
5327
5332
|
try {
|
|
5328
|
-
return JSON.parse(atob(
|
|
5333
|
+
return JSON.parse(atob(p.split(".")[1]));
|
|
5329
5334
|
} catch {
|
|
5330
5335
|
return null;
|
|
5331
5336
|
}
|
|
@@ -5333,65 +5338,65 @@ function Za(e, t, n) {
|
|
|
5333
5338
|
window.postMessage(
|
|
5334
5339
|
{
|
|
5335
5340
|
type: "ErrorResponseCode",
|
|
5336
|
-
errorResponseCode:
|
|
5341
|
+
errorResponseCode: O
|
|
5337
5342
|
},
|
|
5338
5343
|
window.location.href
|
|
5339
5344
|
);
|
|
5340
|
-
}, h = (
|
|
5345
|
+
}, h = (p) => {
|
|
5341
5346
|
n(5, I = !1);
|
|
5342
|
-
const G =
|
|
5343
|
-
G && (fe = G?.exp, n(7, oe = fe),
|
|
5347
|
+
const G = C(p);
|
|
5348
|
+
G && (fe = G?.exp, n(7, oe = fe), ee && clearInterval(ee), ee = setInterval(
|
|
5344
5349
|
() => {
|
|
5345
|
-
const
|
|
5346
|
-
n(7, oe = fe -
|
|
5350
|
+
const Y = Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3);
|
|
5351
|
+
n(7, oe = fe - Y), oe <= Xa && n(5, I = !0), Y >= fe && (E(), window.postMessage({ type: "SessionExpired" }, window.location.href));
|
|
5347
5352
|
},
|
|
5348
5353
|
1e3
|
|
5349
5354
|
));
|
|
5350
5355
|
}, E = () => {
|
|
5351
|
-
n(7, oe = 0), n(5, I = !1), clearInterval(
|
|
5356
|
+
n(7, oe = 0), n(5, I = !1), clearInterval(ee);
|
|
5352
5357
|
}, b = () => {
|
|
5353
|
-
if (
|
|
5358
|
+
if (V)
|
|
5354
5359
|
return;
|
|
5355
|
-
const
|
|
5356
|
-
n(6,
|
|
5357
|
-
const
|
|
5360
|
+
const p = new URL(`${g}/v1/player/${U}/payment/GetPaymentMethod`), G = new Headers();
|
|
5361
|
+
n(6, V = !0), G.append("accept", "application/json"), G.append("Content-Type", "application/json"), G.append("X-Client-Request-Timestamp", Dr.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
5362
|
+
const Y = {
|
|
5358
5363
|
method: "POST",
|
|
5359
5364
|
mode: "cors",
|
|
5360
5365
|
headers: G,
|
|
5361
5366
|
body: JSON.stringify({
|
|
5362
|
-
PaymentMethodName:
|
|
5367
|
+
PaymentMethodName: z || X,
|
|
5363
5368
|
Currency: N,
|
|
5364
5369
|
XPaymentSessionToken: r
|
|
5365
5370
|
})
|
|
5366
5371
|
};
|
|
5367
|
-
fetch(
|
|
5368
|
-
if (
|
|
5372
|
+
fetch(p, Y).then((Z) => Z.json()).then((Z) => {
|
|
5373
|
+
if (Z.error) {
|
|
5369
5374
|
window.postMessage(
|
|
5370
5375
|
{
|
|
5371
5376
|
type: "ShowSessionError",
|
|
5372
|
-
error:
|
|
5377
|
+
error: Z.error
|
|
5373
5378
|
},
|
|
5374
5379
|
window.location.href
|
|
5375
5380
|
), E();
|
|
5376
5381
|
return;
|
|
5377
5382
|
}
|
|
5378
|
-
if (
|
|
5379
|
-
|
|
5383
|
+
if (Z.ResponseCode === se.PlayerSessionIsNotValid || Z.ResponseCode === se.JwtTokenError) {
|
|
5384
|
+
O = Z.ResponseCode, E(), _();
|
|
5380
5385
|
return;
|
|
5381
5386
|
}
|
|
5382
|
-
if (
|
|
5383
|
-
|
|
5387
|
+
if (Z.ResponseCode !== se.Success) {
|
|
5388
|
+
O = Z.ResponseCode, E();
|
|
5384
5389
|
return;
|
|
5385
5390
|
}
|
|
5386
|
-
|
|
5387
|
-
}).finally(() => n(6,
|
|
5388
|
-
}, L = (
|
|
5389
|
-
const G =
|
|
5390
|
-
|
|
5391
|
-
},
|
|
5391
|
+
Z.XPaymentSessionToken && Br.set(Z.XPaymentSessionToken);
|
|
5392
|
+
}).finally(() => n(6, V = !1));
|
|
5393
|
+
}, L = (p) => {
|
|
5394
|
+
const G = p.currentTarget;
|
|
5395
|
+
p.target === G && b();
|
|
5396
|
+
}, M = () => {
|
|
5392
5397
|
fetch(x).then((G) => G.json()).then((G) => {
|
|
5393
|
-
Object.keys(G).forEach((
|
|
5394
|
-
wr(
|
|
5398
|
+
Object.keys(G).forEach((Y) => {
|
|
5399
|
+
wr(Y, G[Y]);
|
|
5395
5400
|
});
|
|
5396
5401
|
}).catch((G) => {
|
|
5397
5402
|
console.log(G);
|
|
@@ -5399,40 +5404,40 @@ function Za(e, t, n) {
|
|
|
5399
5404
|
}, v = () => {
|
|
5400
5405
|
window.postMessage({ type: "Cashier:goToHome" }, window.location.href), n(5, I = !1);
|
|
5401
5406
|
};
|
|
5402
|
-
Object.keys(Ar).forEach((
|
|
5403
|
-
wr(
|
|
5407
|
+
Object.keys(Ar).forEach((p) => {
|
|
5408
|
+
wr(p, Ar[p]);
|
|
5404
5409
|
});
|
|
5405
|
-
const
|
|
5406
|
-
|
|
5410
|
+
const W = () => {
|
|
5411
|
+
ca(A);
|
|
5407
5412
|
};
|
|
5408
5413
|
oo(() => (window.addEventListener("message", Ee, !1), () => {
|
|
5409
5414
|
window.removeEventListener("message", Ee);
|
|
5410
5415
|
})), so(() => {
|
|
5411
|
-
clearInterval(
|
|
5416
|
+
clearInterval(ee);
|
|
5412
5417
|
});
|
|
5413
|
-
function P(
|
|
5414
|
-
|
|
5415
|
-
H =
|
|
5418
|
+
function P(p) {
|
|
5419
|
+
Vt[p ? "unshift" : "push"](() => {
|
|
5420
|
+
H = p, n(4, H);
|
|
5416
5421
|
});
|
|
5417
5422
|
}
|
|
5418
|
-
function
|
|
5423
|
+
function J() {
|
|
5419
5424
|
u = this.clientWidth, f = this.clientHeight, n(0, u), n(1, f);
|
|
5420
5425
|
}
|
|
5421
|
-
function D(
|
|
5422
|
-
|
|
5423
|
-
H =
|
|
5426
|
+
function D(p) {
|
|
5427
|
+
Vt[p ? "unshift" : "push"](() => {
|
|
5428
|
+
H = p, n(4, H);
|
|
5424
5429
|
});
|
|
5425
5430
|
}
|
|
5426
|
-
return e.$$set = (
|
|
5427
|
-
"clientstyling" in
|
|
5431
|
+
return e.$$set = (p) => {
|
|
5432
|
+
"clientstyling" in p && n(12, a = p.clientstyling), "clientstylingurl" in p && n(13, c = p.clientstylingurl), "width" in p && n(0, u = p.width), "height" in p && n(1, f = p.height), "duration" in p && n(2, m = p.duration), "assetsurl" in p && n(3, y = p.assetsurl), "lang" in p && n(14, A = p.lang), "translationurl" in p && n(15, x = p.translationurl), "endpoint" in p && n(16, g = p.endpoint), "currency" in p && n(17, N = p.currency), "customerid" in p && n(18, U = p.customerid), "selectedpaymentmethodname" in p && n(19, X = p.selectedpaymentmethodname), "mbsource" in p && n(20, R = p.mbsource), "$$scope" in p && n(22, l = p.$$scope);
|
|
5428
5433
|
}, e.$$.update = () => {
|
|
5429
5434
|
e.$$.dirty[0] & /*$xPaymentSessionToken*/
|
|
5430
5435
|
2097152 && h(r), e.$$.dirty[0] & /*lang*/
|
|
5431
|
-
16384 && A &&
|
|
5432
|
-
4112 && a && H &&
|
|
5433
|
-
8208 && c && H &&
|
|
5434
|
-
1048592 && R && H &&
|
|
5435
|
-
32768 && x &&
|
|
5436
|
+
16384 && A && W(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5437
|
+
4112 && a && H && Ia(H, a), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5438
|
+
8208 && c && H && Pa(H, c), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5439
|
+
1048592 && R && H && Ra(H, `${R}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
5440
|
+
32768 && x && M();
|
|
5436
5441
|
}, [
|
|
5437
5442
|
u,
|
|
5438
5443
|
f,
|
|
@@ -5440,7 +5445,7 @@ function Za(e, t, n) {
|
|
|
5440
5445
|
y,
|
|
5441
5446
|
H,
|
|
5442
5447
|
I,
|
|
5443
|
-
|
|
5448
|
+
V,
|
|
5444
5449
|
oe,
|
|
5445
5450
|
i,
|
|
5446
5451
|
b,
|
|
@@ -5453,23 +5458,23 @@ function Za(e, t, n) {
|
|
|
5453
5458
|
g,
|
|
5454
5459
|
N,
|
|
5455
5460
|
U,
|
|
5456
|
-
|
|
5461
|
+
X,
|
|
5457
5462
|
R,
|
|
5458
5463
|
r,
|
|
5459
5464
|
l,
|
|
5460
5465
|
o,
|
|
5461
5466
|
P,
|
|
5462
|
-
|
|
5467
|
+
J,
|
|
5463
5468
|
D
|
|
5464
5469
|
];
|
|
5465
5470
|
}
|
|
5466
|
-
class
|
|
5471
|
+
class Za extends Eo {
|
|
5467
5472
|
constructor(t) {
|
|
5468
5473
|
super(), _o(
|
|
5469
5474
|
this,
|
|
5470
5475
|
t,
|
|
5471
|
-
|
|
5472
|
-
|
|
5476
|
+
Ya,
|
|
5477
|
+
Va,
|
|
5473
5478
|
Vr,
|
|
5474
5479
|
{
|
|
5475
5480
|
clientstyling: 12,
|
|
@@ -5486,7 +5491,7 @@ class qa extends Eo {
|
|
|
5486
5491
|
selectedpaymentmethodname: 19,
|
|
5487
5492
|
mbsource: 20
|
|
5488
5493
|
},
|
|
5489
|
-
|
|
5494
|
+
Da,
|
|
5490
5495
|
[-1, -1]
|
|
5491
5496
|
);
|
|
5492
5497
|
}
|
|
@@ -5494,82 +5499,82 @@ class qa extends Eo {
|
|
|
5494
5499
|
return this.$$.ctx[12];
|
|
5495
5500
|
}
|
|
5496
5501
|
set clientstyling(t) {
|
|
5497
|
-
this.$$set({ clientstyling: t }),
|
|
5502
|
+
this.$$set({ clientstyling: t }), pe();
|
|
5498
5503
|
}
|
|
5499
5504
|
get clientstylingurl() {
|
|
5500
5505
|
return this.$$.ctx[13];
|
|
5501
5506
|
}
|
|
5502
5507
|
set clientstylingurl(t) {
|
|
5503
|
-
this.$$set({ clientstylingurl: t }),
|
|
5508
|
+
this.$$set({ clientstylingurl: t }), pe();
|
|
5504
5509
|
}
|
|
5505
5510
|
get width() {
|
|
5506
5511
|
return this.$$.ctx[0];
|
|
5507
5512
|
}
|
|
5508
5513
|
set width(t) {
|
|
5509
|
-
this.$$set({ width: t }),
|
|
5514
|
+
this.$$set({ width: t }), pe();
|
|
5510
5515
|
}
|
|
5511
5516
|
get height() {
|
|
5512
5517
|
return this.$$.ctx[1];
|
|
5513
5518
|
}
|
|
5514
5519
|
set height(t) {
|
|
5515
|
-
this.$$set({ height: t }),
|
|
5520
|
+
this.$$set({ height: t }), pe();
|
|
5516
5521
|
}
|
|
5517
5522
|
get duration() {
|
|
5518
5523
|
return this.$$.ctx[2];
|
|
5519
5524
|
}
|
|
5520
5525
|
set duration(t) {
|
|
5521
|
-
this.$$set({ duration: t }),
|
|
5526
|
+
this.$$set({ duration: t }), pe();
|
|
5522
5527
|
}
|
|
5523
5528
|
get assetsurl() {
|
|
5524
5529
|
return this.$$.ctx[3];
|
|
5525
5530
|
}
|
|
5526
5531
|
set assetsurl(t) {
|
|
5527
|
-
this.$$set({ assetsurl: t }),
|
|
5532
|
+
this.$$set({ assetsurl: t }), pe();
|
|
5528
5533
|
}
|
|
5529
5534
|
get lang() {
|
|
5530
5535
|
return this.$$.ctx[14];
|
|
5531
5536
|
}
|
|
5532
5537
|
set lang(t) {
|
|
5533
|
-
this.$$set({ lang: t }),
|
|
5538
|
+
this.$$set({ lang: t }), pe();
|
|
5534
5539
|
}
|
|
5535
5540
|
get translationurl() {
|
|
5536
5541
|
return this.$$.ctx[15];
|
|
5537
5542
|
}
|
|
5538
5543
|
set translationurl(t) {
|
|
5539
|
-
this.$$set({ translationurl: t }),
|
|
5544
|
+
this.$$set({ translationurl: t }), pe();
|
|
5540
5545
|
}
|
|
5541
5546
|
get endpoint() {
|
|
5542
5547
|
return this.$$.ctx[16];
|
|
5543
5548
|
}
|
|
5544
5549
|
set endpoint(t) {
|
|
5545
|
-
this.$$set({ endpoint: t }),
|
|
5550
|
+
this.$$set({ endpoint: t }), pe();
|
|
5546
5551
|
}
|
|
5547
5552
|
get currency() {
|
|
5548
5553
|
return this.$$.ctx[17];
|
|
5549
5554
|
}
|
|
5550
5555
|
set currency(t) {
|
|
5551
|
-
this.$$set({ currency: t }),
|
|
5556
|
+
this.$$set({ currency: t }), pe();
|
|
5552
5557
|
}
|
|
5553
5558
|
get customerid() {
|
|
5554
5559
|
return this.$$.ctx[18];
|
|
5555
5560
|
}
|
|
5556
5561
|
set customerid(t) {
|
|
5557
|
-
this.$$set({ customerid: t }),
|
|
5562
|
+
this.$$set({ customerid: t }), pe();
|
|
5558
5563
|
}
|
|
5559
5564
|
get selectedpaymentmethodname() {
|
|
5560
5565
|
return this.$$.ctx[19];
|
|
5561
5566
|
}
|
|
5562
5567
|
set selectedpaymentmethodname(t) {
|
|
5563
|
-
this.$$set({ selectedpaymentmethodname: t }),
|
|
5568
|
+
this.$$set({ selectedpaymentmethodname: t }), pe();
|
|
5564
5569
|
}
|
|
5565
5570
|
get mbsource() {
|
|
5566
5571
|
return this.$$.ctx[20];
|
|
5567
5572
|
}
|
|
5568
5573
|
set mbsource(t) {
|
|
5569
|
-
this.$$set({ mbsource: t }),
|
|
5574
|
+
this.$$set({ mbsource: t }), pe();
|
|
5570
5575
|
}
|
|
5571
5576
|
}
|
|
5572
|
-
bo(
|
|
5577
|
+
bo(Za, { clientstyling: {}, clientstylingurl: {}, width: {}, height: {}, duration: {}, assetsurl: {}, lang: {}, translationurl: {}, endpoint: {}, currency: {}, customerid: {}, selectedpaymentmethodname: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
5573
5578
|
export {
|
|
5574
|
-
|
|
5579
|
+
Za as C
|
|
5575
5580
|
};
|