@everymatrix/cashier-session-expiration-modal 1.86.2 → 1.86.4
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
|
@@ -2,15 +2,15 @@ var Zi = Object.defineProperty, qi = Object.defineProperties;
|
|
|
2
2
|
var Ji = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var sr = Object.getOwnPropertySymbols;
|
|
4
4
|
var Qi = Object.prototype.hasOwnProperty, Ki = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var an = (e, t, n) => t in e ? Zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ar = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
Qi.call(t, n) &&
|
|
7
|
+
Qi.call(t, n) && an(e, n, t[n]);
|
|
8
8
|
if (sr)
|
|
9
9
|
for (var n of sr(t))
|
|
10
|
-
Ki.call(t, n) &&
|
|
10
|
+
Ki.call(t, n) && an(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
12
|
}, lr = (e, t) => qi(e, Ji(t));
|
|
13
|
-
var ve = (e, t, n) => (
|
|
13
|
+
var ve = (e, t, n) => (an(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
14
14
|
var ur = (e, t, n) => new Promise((r, i) => {
|
|
15
15
|
var o = (c) => {
|
|
16
16
|
try {
|
|
@@ -44,18 +44,18 @@ function Jr(e) {
|
|
|
44
44
|
function cr() {
|
|
45
45
|
return /* @__PURE__ */ Object.create(null);
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function $e(e) {
|
|
48
48
|
e.forEach(Jr);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Jt(e) {
|
|
51
51
|
return typeof e == "function";
|
|
52
52
|
}
|
|
53
53
|
function Qr(e, t) {
|
|
54
54
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
55
55
|
}
|
|
56
|
-
let
|
|
56
|
+
let Ht;
|
|
57
57
|
function fr(e, t) {
|
|
58
|
-
return e === t ? !0 : (
|
|
58
|
+
return e === t ? !0 : (Ht || (Ht = document.createElement("a")), Ht.href = t, e === Ht.href);
|
|
59
59
|
}
|
|
60
60
|
function to(e) {
|
|
61
61
|
return Object.keys(e).length === 0;
|
|
@@ -72,7 +72,7 @@ function Kr(e, ...t) {
|
|
|
72
72
|
function hr(e, t, n) {
|
|
73
73
|
e.$$.on_destroy.push(Kr(t, n));
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Dt(e, t, n, r) {
|
|
76
76
|
if (e) {
|
|
77
77
|
const i = ei(e, t, n, r);
|
|
78
78
|
return e[0](i);
|
|
@@ -81,7 +81,7 @@ function Bt(e, t, n, r) {
|
|
|
81
81
|
function ei(e, t, n, r) {
|
|
82
82
|
return e[1] && r ? eo(n.ctx.slice(), e[1](r(t))) : n.ctx;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function Bt(e, t, n, r) {
|
|
85
85
|
if (e[2] && r) {
|
|
86
86
|
const i = e[2](r(n));
|
|
87
87
|
if (t.dirty === void 0)
|
|
@@ -96,13 +96,13 @@ function $t(e, t, n, r) {
|
|
|
96
96
|
}
|
|
97
97
|
return t.dirty;
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function $t(e, t, n, r, i, o) {
|
|
100
100
|
if (i) {
|
|
101
101
|
const l = ei(t, n, r, o);
|
|
102
102
|
e.p(l, i);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function Ut(e) {
|
|
106
106
|
if (e.ctx.length > 32) {
|
|
107
107
|
const t = [], n = e.ctx.length / 32;
|
|
108
108
|
for (let r = 0; r < n; r++)
|
|
@@ -112,21 +112,21 @@ function kt(e) {
|
|
|
112
112
|
return -1;
|
|
113
113
|
}
|
|
114
114
|
const ti = typeof window != "undefined";
|
|
115
|
-
let no = ti ? () => window.performance.now() : () => Date.now(),
|
|
116
|
-
const
|
|
115
|
+
let no = ti ? () => window.performance.now() : () => Date.now(), Nn = ti ? (e) => requestAnimationFrame(e) : ye;
|
|
116
|
+
const Qe = /* @__PURE__ */ new Set();
|
|
117
117
|
function ni(e) {
|
|
118
|
-
|
|
119
|
-
t.c(e) || (
|
|
120
|
-
}),
|
|
118
|
+
Qe.forEach((t) => {
|
|
119
|
+
t.c(e) || (Qe.delete(t), t.f());
|
|
120
|
+
}), Qe.size !== 0 && Nn(ni);
|
|
121
121
|
}
|
|
122
122
|
function ro(e) {
|
|
123
123
|
let t;
|
|
124
|
-
return
|
|
124
|
+
return Qe.size === 0 && Nn(ni), {
|
|
125
125
|
promise: new Promise((n) => {
|
|
126
|
-
|
|
126
|
+
Qe.add(t = { c: e, f: n });
|
|
127
127
|
}),
|
|
128
128
|
abort() {
|
|
129
|
-
|
|
129
|
+
Qe.delete(t);
|
|
130
130
|
}
|
|
131
131
|
};
|
|
132
132
|
}
|
|
@@ -134,13 +134,13 @@ function B(e, t) {
|
|
|
134
134
|
e.appendChild(t);
|
|
135
135
|
}
|
|
136
136
|
function io(e, t, n) {
|
|
137
|
-
const r =
|
|
137
|
+
const r = In(e);
|
|
138
138
|
if (!r.getElementById(t)) {
|
|
139
|
-
const i =
|
|
139
|
+
const i = ne("style");
|
|
140
140
|
i.id = t, i.textContent = n, ri(r, i);
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function In(e) {
|
|
144
144
|
if (!e)
|
|
145
145
|
return document;
|
|
146
146
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -151,8 +151,8 @@ function Rn(e) {
|
|
|
151
151
|
) : e.ownerDocument;
|
|
152
152
|
}
|
|
153
153
|
function oo(e) {
|
|
154
|
-
const t =
|
|
155
|
-
return t.textContent = "/* empty */", ri(
|
|
154
|
+
const t = ne("style");
|
|
155
|
+
return t.textContent = "/* empty */", ri(In(e), t), t.sheet;
|
|
156
156
|
}
|
|
157
157
|
function ri(e, t) {
|
|
158
158
|
return B(
|
|
@@ -161,28 +161,28 @@ function ri(e, t) {
|
|
|
161
161
|
t
|
|
162
162
|
), t.sheet;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function Ue(e, t, n) {
|
|
165
165
|
e.insertBefore(t, n || null);
|
|
166
166
|
}
|
|
167
167
|
function Ae(e) {
|
|
168
168
|
e.parentNode && e.parentNode.removeChild(e);
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function ne(e) {
|
|
171
171
|
return document.createElement(e);
|
|
172
172
|
}
|
|
173
173
|
function Se(e) {
|
|
174
174
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function Ge(e) {
|
|
177
177
|
return document.createTextNode(e);
|
|
178
178
|
}
|
|
179
|
-
function
|
|
180
|
-
return
|
|
179
|
+
function Pe() {
|
|
180
|
+
return Ge(" ");
|
|
181
181
|
}
|
|
182
182
|
function so() {
|
|
183
|
-
return
|
|
183
|
+
return Ge("");
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function Je(e, t, n, r) {
|
|
186
186
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
187
187
|
}
|
|
188
188
|
function w(e, t, n) {
|
|
@@ -191,32 +191,32 @@ function w(e, t, n) {
|
|
|
191
191
|
function ao(e) {
|
|
192
192
|
return Array.from(e.childNodes);
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function Et(e, t) {
|
|
195
195
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
196
196
|
t);
|
|
197
197
|
}
|
|
198
|
-
let
|
|
198
|
+
let Nt;
|
|
199
199
|
function lo() {
|
|
200
|
-
if (
|
|
201
|
-
|
|
200
|
+
if (Nt === void 0) {
|
|
201
|
+
Nt = !1;
|
|
202
202
|
try {
|
|
203
203
|
typeof window != "undefined" && window.parent && window.parent.document;
|
|
204
204
|
} catch (e) {
|
|
205
|
-
|
|
205
|
+
Nt = !0;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
return
|
|
208
|
+
return Nt;
|
|
209
209
|
}
|
|
210
210
|
function uo(e, t) {
|
|
211
211
|
getComputedStyle(e).position === "static" && (e.style.position = "relative");
|
|
212
|
-
const r =
|
|
212
|
+
const r = ne("iframe");
|
|
213
213
|
r.setAttribute(
|
|
214
214
|
"style",
|
|
215
215
|
"display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
|
|
216
216
|
), r.setAttribute("aria-hidden", "true"), r.tabIndex = -1;
|
|
217
217
|
const i = lo();
|
|
218
218
|
let o;
|
|
219
|
-
return i ? (r.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o =
|
|
219
|
+
return i ? (r.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o = Je(
|
|
220
220
|
window,
|
|
221
221
|
"message",
|
|
222
222
|
/** @param {MessageEvent} event */
|
|
@@ -224,7 +224,7 @@ function uo(e, t) {
|
|
|
224
224
|
l.source === r.contentWindow && t();
|
|
225
225
|
}
|
|
226
226
|
)) : (r.src = "about:blank", r.onload = () => {
|
|
227
|
-
o =
|
|
227
|
+
o = Je(r.contentWindow, "resize", t), t();
|
|
228
228
|
}), B(e, r), () => {
|
|
229
229
|
(i || o && r.contentWindow) && o(), Ae(r);
|
|
230
230
|
};
|
|
@@ -241,8 +241,8 @@ function fo(e) {
|
|
|
241
241
|
}
|
|
242
242
|
), t;
|
|
243
243
|
}
|
|
244
|
-
const
|
|
245
|
-
let
|
|
244
|
+
const Wt = /* @__PURE__ */ new Map();
|
|
245
|
+
let Vt = 0;
|
|
246
246
|
function ho(e) {
|
|
247
247
|
let t = 5381, n = e.length;
|
|
248
248
|
for (; n--; )
|
|
@@ -251,7 +251,7 @@ function ho(e) {
|
|
|
251
251
|
}
|
|
252
252
|
function mo(e, t) {
|
|
253
253
|
const n = { stylesheet: oo(t), rules: {} };
|
|
254
|
-
return
|
|
254
|
+
return Wt.set(e, n), n;
|
|
255
255
|
}
|
|
256
256
|
function mr(e, t, n, r, i, o, l, a = 0) {
|
|
257
257
|
const c = 16.666 / r;
|
|
@@ -263,34 +263,34 @@ function mr(e, t, n, r, i, o, l, a = 0) {
|
|
|
263
263
|
`;
|
|
264
264
|
}
|
|
265
265
|
const f = u + `100% {${l(n, 1 - n)}}
|
|
266
|
-
}`, m = `__svelte_${ho(f)}_${a}`, y =
|
|
266
|
+
}`, m = `__svelte_${ho(f)}_${a}`, y = In(e), { stylesheet: A, rules: x } = Wt.get(y) || mo(y, e);
|
|
267
267
|
x[m] || (x[m] = !0, A.insertRule(`@keyframes ${m} ${f}`, A.cssRules.length));
|
|
268
268
|
const g = e.style.animation || "";
|
|
269
|
-
return e.style.animation = `${g ? `${g}, ` : ""}${m} ${r}ms linear ${i}ms 1 both`,
|
|
269
|
+
return e.style.animation = `${g ? `${g}, ` : ""}${m} ${r}ms linear ${i}ms 1 both`, Vt += 1, m;
|
|
270
270
|
}
|
|
271
271
|
function po(e, t) {
|
|
272
272
|
const n = (e.style.animation || "").split(", "), r = n.filter(
|
|
273
273
|
t ? (o) => o.indexOf(t) < 0 : (o) => o.indexOf("__svelte") === -1
|
|
274
274
|
// remove all Svelte animations
|
|
275
275
|
), i = n.length - r.length;
|
|
276
|
-
i && (e.style.animation = r.join(", "),
|
|
276
|
+
i && (e.style.animation = r.join(", "), Vt -= i, Vt || go());
|
|
277
277
|
}
|
|
278
278
|
function go() {
|
|
279
|
-
|
|
280
|
-
|
|
279
|
+
Nn(() => {
|
|
280
|
+
Vt || (Wt.forEach((e) => {
|
|
281
281
|
const { ownerNode: t } = e.stylesheet;
|
|
282
282
|
t && Ae(t);
|
|
283
|
-
}),
|
|
283
|
+
}), Wt.clear());
|
|
284
284
|
});
|
|
285
285
|
}
|
|
286
|
-
let
|
|
287
|
-
function
|
|
288
|
-
|
|
286
|
+
let yt;
|
|
287
|
+
function bt(e) {
|
|
288
|
+
yt = e;
|
|
289
289
|
}
|
|
290
290
|
function ii() {
|
|
291
|
-
if (!
|
|
291
|
+
if (!yt)
|
|
292
292
|
throw new Error("Function called outside component initialization");
|
|
293
|
-
return
|
|
293
|
+
return yt;
|
|
294
294
|
}
|
|
295
295
|
function _o(e) {
|
|
296
296
|
ii().$$.on_mount.push(e);
|
|
@@ -298,91 +298,91 @@ function _o(e) {
|
|
|
298
298
|
function bo(e) {
|
|
299
299
|
ii().$$.on_destroy.push(e);
|
|
300
300
|
}
|
|
301
|
-
const
|
|
302
|
-
let
|
|
303
|
-
const
|
|
304
|
-
let
|
|
301
|
+
const qe = [], Xt = [];
|
|
302
|
+
let Ke = [];
|
|
303
|
+
const dr = [], Eo = /* @__PURE__ */ Promise.resolve();
|
|
304
|
+
let xn = !1;
|
|
305
305
|
function yo() {
|
|
306
|
-
|
|
306
|
+
xn || (xn = !0, Eo.then(pe));
|
|
307
307
|
}
|
|
308
|
-
function
|
|
309
|
-
|
|
308
|
+
function et(e) {
|
|
309
|
+
Ke.push(e);
|
|
310
310
|
}
|
|
311
|
-
const
|
|
312
|
-
let
|
|
313
|
-
function
|
|
314
|
-
if (
|
|
311
|
+
const ln = /* @__PURE__ */ new Set();
|
|
312
|
+
let Ye = 0;
|
|
313
|
+
function pe() {
|
|
314
|
+
if (Ye !== 0)
|
|
315
315
|
return;
|
|
316
|
-
const e =
|
|
316
|
+
const e = yt;
|
|
317
317
|
do {
|
|
318
318
|
try {
|
|
319
|
-
for (;
|
|
320
|
-
const t =
|
|
321
|
-
|
|
319
|
+
for (; Ye < qe.length; ) {
|
|
320
|
+
const t = qe[Ye];
|
|
321
|
+
Ye++, bt(t), xo(t.$$);
|
|
322
322
|
}
|
|
323
323
|
} catch (t) {
|
|
324
|
-
throw
|
|
324
|
+
throw qe.length = 0, Ye = 0, t;
|
|
325
325
|
}
|
|
326
|
-
for (
|
|
327
|
-
|
|
328
|
-
for (let t = 0; t <
|
|
329
|
-
const n =
|
|
330
|
-
|
|
326
|
+
for (bt(null), qe.length = 0, Ye = 0; Xt.length; )
|
|
327
|
+
Xt.pop()();
|
|
328
|
+
for (let t = 0; t < Ke.length; t += 1) {
|
|
329
|
+
const n = Ke[t];
|
|
330
|
+
ln.has(n) || (ln.add(n), n());
|
|
331
331
|
}
|
|
332
|
-
|
|
333
|
-
} while (
|
|
334
|
-
for (;
|
|
335
|
-
|
|
336
|
-
|
|
332
|
+
Ke.length = 0;
|
|
333
|
+
} while (qe.length);
|
|
334
|
+
for (; dr.length; )
|
|
335
|
+
dr.pop()();
|
|
336
|
+
xn = !1, ln.clear(), bt(e);
|
|
337
337
|
}
|
|
338
338
|
function xo(e) {
|
|
339
339
|
if (e.fragment !== null) {
|
|
340
|
-
e.update(),
|
|
340
|
+
e.update(), $e(e.before_update);
|
|
341
341
|
const t = e.dirty;
|
|
342
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
342
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(et);
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
345
|
function vo(e) {
|
|
346
346
|
const t = [], n = [];
|
|
347
|
-
|
|
347
|
+
Ke.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Ke = t;
|
|
348
348
|
}
|
|
349
|
-
let
|
|
349
|
+
let ct;
|
|
350
350
|
function To() {
|
|
351
|
-
return
|
|
352
|
-
|
|
353
|
-
})),
|
|
351
|
+
return ct || (ct = Promise.resolve(), ct.then(() => {
|
|
352
|
+
ct = null;
|
|
353
|
+
})), ct;
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function un(e, t, n) {
|
|
356
356
|
e.dispatchEvent(co(`${t ? "intro" : "outro"}${n}`));
|
|
357
357
|
}
|
|
358
|
-
const
|
|
359
|
-
let
|
|
358
|
+
const kt = /* @__PURE__ */ new Set();
|
|
359
|
+
let Re;
|
|
360
360
|
function oi() {
|
|
361
|
-
|
|
361
|
+
Re = {
|
|
362
362
|
r: 0,
|
|
363
363
|
c: [],
|
|
364
|
-
p:
|
|
364
|
+
p: Re
|
|
365
365
|
// parent group
|
|
366
366
|
};
|
|
367
367
|
}
|
|
368
368
|
function si() {
|
|
369
|
-
|
|
369
|
+
Re.r || $e(Re.c), Re = Re.p;
|
|
370
370
|
}
|
|
371
371
|
function He(e, t) {
|
|
372
|
-
e && e.i && (
|
|
372
|
+
e && e.i && (kt.delete(e), e.i(t));
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function De(e, t, n, r) {
|
|
375
375
|
if (e && e.o) {
|
|
376
|
-
if (
|
|
376
|
+
if (kt.has(e))
|
|
377
377
|
return;
|
|
378
|
-
|
|
379
|
-
|
|
378
|
+
kt.add(e), Re.c.push(() => {
|
|
379
|
+
kt.delete(e), r && (n && e.d(1), r());
|
|
380
380
|
}), e.o(t);
|
|
381
381
|
} else
|
|
382
382
|
r && r();
|
|
383
383
|
}
|
|
384
384
|
const So = { duration: 0 };
|
|
385
|
-
function
|
|
385
|
+
function pr(e, t, n, r) {
|
|
386
386
|
let o = t(e, n, { direction: "both" }), l = r ? 0 : 1, a = null, c = null, u = null, f;
|
|
387
387
|
function m() {
|
|
388
388
|
u && po(e, u);
|
|
@@ -407,15 +407,15 @@ function dr(e, t, n, r) {
|
|
|
407
407
|
delay: g = 0,
|
|
408
408
|
duration: N = 300,
|
|
409
409
|
easing: U = qr,
|
|
410
|
-
tick:
|
|
410
|
+
tick: X = ye,
|
|
411
411
|
css: R
|
|
412
412
|
} = o || So, H = {
|
|
413
413
|
start: no() + g,
|
|
414
414
|
b: x
|
|
415
415
|
};
|
|
416
|
-
x || (H.group =
|
|
417
|
-
e.inert, e.inert = !0)), a || c ? c = H : (R && (m(), u = mr(e, l, x, N, g, U, R)), x &&
|
|
418
|
-
if (c && I > c.start && (a = y(c, N), c = null,
|
|
416
|
+
x || (H.group = Re, Re.r += 1), "inert" in e && (x ? f !== void 0 && (e.inert = f) : (f = /** @type {HTMLElement} */
|
|
417
|
+
e.inert, e.inert = !0)), a || c ? c = H : (R && (m(), u = mr(e, l, x, N, g, U, R)), x && X(0, 1), a = y(H, N), et(() => un(e, x, "start")), ro((I) => {
|
|
418
|
+
if (c && I > c.start && (a = y(c, N), c = null, un(e, a.b, "start"), R && (m(), u = mr(
|
|
419
419
|
e,
|
|
420
420
|
l,
|
|
421
421
|
a.b,
|
|
@@ -425,10 +425,10 @@ function dr(e, t, n, r) {
|
|
|
425
425
|
o.css
|
|
426
426
|
))), a) {
|
|
427
427
|
if (I >= a.end)
|
|
428
|
-
|
|
428
|
+
X(l = a.b, 1 - l), un(e, a.b, "end"), c || (a.b ? m() : --a.group.r || $e(a.group.c)), a = null;
|
|
429
429
|
else if (I >= a.start) {
|
|
430
|
-
const
|
|
431
|
-
l = a.a + a.d * U(
|
|
430
|
+
const V = I - a.start;
|
|
431
|
+
l = a.a + a.d * U(V / a.duration), X(l, 1 - l);
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
434
|
return !!(a || c);
|
|
@@ -436,7 +436,7 @@ function dr(e, t, n, r) {
|
|
|
436
436
|
}
|
|
437
437
|
return {
|
|
438
438
|
run(x) {
|
|
439
|
-
|
|
439
|
+
Jt(o) ? To().then(() => {
|
|
440
440
|
o = o({ direction: x ? "in" : "out" }), A(x);
|
|
441
441
|
}) : A(x);
|
|
442
442
|
},
|
|
@@ -447,21 +447,21 @@ function dr(e, t, n, r) {
|
|
|
447
447
|
}
|
|
448
448
|
function wo(e, t, n) {
|
|
449
449
|
const { fragment: r, after_update: i } = e.$$;
|
|
450
|
-
r && r.m(t, n),
|
|
451
|
-
const o = e.$$.on_mount.map(Jr).filter(
|
|
452
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
453
|
-
}), i.forEach(
|
|
450
|
+
r && r.m(t, n), et(() => {
|
|
451
|
+
const o = e.$$.on_mount.map(Jr).filter(Jt);
|
|
452
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : $e(o), e.$$.on_mount = [];
|
|
453
|
+
}), i.forEach(et);
|
|
454
454
|
}
|
|
455
455
|
function Ao(e, t) {
|
|
456
456
|
const n = e.$$;
|
|
457
|
-
n.fragment !== null && (vo(n.after_update),
|
|
457
|
+
n.fragment !== null && (vo(n.after_update), $e(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
458
458
|
}
|
|
459
|
-
function
|
|
460
|
-
e.$$.dirty[0] === -1 && (
|
|
459
|
+
function Mo(e, t) {
|
|
460
|
+
e.$$.dirty[0] === -1 && (qe.push(e), yo(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
461
461
|
}
|
|
462
|
-
function
|
|
463
|
-
const c =
|
|
464
|
-
|
|
462
|
+
function Co(e, t, n, r, i, o, l = null, a = [-1]) {
|
|
463
|
+
const c = yt;
|
|
464
|
+
bt(e);
|
|
465
465
|
const u = e.$$ = {
|
|
466
466
|
fragment: null,
|
|
467
467
|
ctx: [],
|
|
@@ -487,16 +487,16 @@ function Mo(e, t, n, r, i, o, l = null, a = [-1]) {
|
|
|
487
487
|
let f = !1;
|
|
488
488
|
if (u.ctx = n ? n(e, t.props || {}, (m, y, ...A) => {
|
|
489
489
|
const x = A.length ? A[0] : y;
|
|
490
|
-
return u.ctx && i(u.ctx[m], u.ctx[m] = x) && (!u.skip_bound && u.bound[m] && u.bound[m](x), f &&
|
|
491
|
-
}) : [], u.update(), f = !0,
|
|
490
|
+
return u.ctx && i(u.ctx[m], u.ctx[m] = x) && (!u.skip_bound && u.bound[m] && u.bound[m](x), f && Mo(e, m)), y;
|
|
491
|
+
}) : [], u.update(), f = !0, $e(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
492
492
|
if (t.hydrate) {
|
|
493
493
|
const m = ao(t.target);
|
|
494
494
|
u.fragment && u.fragment.l(m), m.forEach(Ae);
|
|
495
495
|
} else
|
|
496
496
|
u.fragment && u.fragment.c();
|
|
497
|
-
t.intro && He(e.$$.fragment), wo(e, t.target, t.anchor),
|
|
497
|
+
t.intro && He(e.$$.fragment), wo(e, t.target, t.anchor), pe();
|
|
498
498
|
}
|
|
499
|
-
|
|
499
|
+
bt(c);
|
|
500
500
|
}
|
|
501
501
|
let ai;
|
|
502
502
|
typeof HTMLElement == "function" && (ai = class extends HTMLElement {
|
|
@@ -543,14 +543,14 @@ typeof HTMLElement == "function" && (ai = class extends HTMLElement {
|
|
|
543
543
|
let l;
|
|
544
544
|
return {
|
|
545
545
|
c: function() {
|
|
546
|
-
l =
|
|
546
|
+
l = ne("slot"), o !== "default" && w(l, "name", o);
|
|
547
547
|
},
|
|
548
548
|
/**
|
|
549
549
|
* @param {HTMLElement} target
|
|
550
550
|
* @param {HTMLElement} [anchor]
|
|
551
551
|
*/
|
|
552
552
|
m: function(u, f) {
|
|
553
|
-
|
|
553
|
+
Ue(u, l, f);
|
|
554
554
|
},
|
|
555
555
|
d: function(u) {
|
|
556
556
|
u && Ae(l);
|
|
@@ -565,7 +565,7 @@ typeof HTMLElement == "function" && (ai = class extends HTMLElement {
|
|
|
565
565
|
o in r && (n[o] = [t(o)]);
|
|
566
566
|
for (const o of this.attributes) {
|
|
567
567
|
const l = this.$$g_p(o.name);
|
|
568
|
-
l in this.$$d || (this.$$d[l] =
|
|
568
|
+
l in this.$$d || (this.$$d[l] = Ft(l, o.value, this.$$p_d, "toProp"));
|
|
569
569
|
}
|
|
570
570
|
for (const o in this.$$p_d)
|
|
571
571
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
@@ -582,7 +582,7 @@ typeof HTMLElement == "function" && (ai = class extends HTMLElement {
|
|
|
582
582
|
this.$$r = !0;
|
|
583
583
|
for (const o in this.$$p_d)
|
|
584
584
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
585
|
-
const l =
|
|
585
|
+
const l = Ft(
|
|
586
586
|
o,
|
|
587
587
|
this.$$d[o],
|
|
588
588
|
this.$$p_d,
|
|
@@ -606,7 +606,7 @@ typeof HTMLElement == "function" && (ai = class extends HTMLElement {
|
|
|
606
606
|
// and setting attributes through setAttribute etc, this is helpful
|
|
607
607
|
attributeChangedCallback(t, n, r) {
|
|
608
608
|
var i;
|
|
609
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
609
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = Ft(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
610
610
|
}
|
|
611
611
|
disconnectedCallback() {
|
|
612
612
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -619,7 +619,7 @@ typeof HTMLElement == "function" && (ai = class extends HTMLElement {
|
|
|
619
619
|
) || t;
|
|
620
620
|
}
|
|
621
621
|
});
|
|
622
|
-
function
|
|
622
|
+
function Ft(e, t, n, r) {
|
|
623
623
|
var o;
|
|
624
624
|
const i = (o = n[e]) == null ? void 0 : o.type;
|
|
625
625
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
@@ -649,7 +649,7 @@ function Gt(e, t, n, r) {
|
|
|
649
649
|
return t;
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
|
-
function
|
|
652
|
+
function Oo(e, t, n, r, i, o) {
|
|
653
653
|
let l = class extends ai {
|
|
654
654
|
constructor() {
|
|
655
655
|
super(e, n, i), this.$$p_d = t;
|
|
@@ -667,7 +667,7 @@ function Co(e, t, n, r, i, o) {
|
|
|
667
667
|
},
|
|
668
668
|
set(c) {
|
|
669
669
|
var u;
|
|
670
|
-
c =
|
|
670
|
+
c = Ft(a, c, t), this.$$d[a] = c, (u = this.$$c) == null || u.$set({ [a]: c });
|
|
671
671
|
}
|
|
672
672
|
});
|
|
673
673
|
}), r.forEach((a) => {
|
|
@@ -710,7 +710,7 @@ class Lo {
|
|
|
710
710
|
* @returns {() => void}
|
|
711
711
|
*/
|
|
712
712
|
$on(t, n) {
|
|
713
|
-
if (!
|
|
713
|
+
if (!Jt(n))
|
|
714
714
|
return ye;
|
|
715
715
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
716
716
|
return r.push(n), () => {
|
|
@@ -737,24 +737,24 @@ function gr(e, { delay: t = 0, duration: n = 400, easing: r = qr } = {}) {
|
|
|
737
737
|
css: (o) => `opacity: ${o * i}`
|
|
738
738
|
};
|
|
739
739
|
}
|
|
740
|
-
const
|
|
740
|
+
const Ze = [];
|
|
741
741
|
function No(e, t) {
|
|
742
742
|
return {
|
|
743
|
-
subscribe:
|
|
743
|
+
subscribe: Tt(e, t).subscribe
|
|
744
744
|
};
|
|
745
745
|
}
|
|
746
|
-
function
|
|
746
|
+
function Tt(e, t = ye) {
|
|
747
747
|
let n;
|
|
748
748
|
const r = /* @__PURE__ */ new Set();
|
|
749
749
|
function i(a) {
|
|
750
750
|
if (Qr(e, a) && (e = a, n)) {
|
|
751
|
-
const c = !
|
|
751
|
+
const c = !Ze.length;
|
|
752
752
|
for (const u of r)
|
|
753
|
-
u[1](),
|
|
753
|
+
u[1](), Ze.push(u, e);
|
|
754
754
|
if (c) {
|
|
755
|
-
for (let u = 0; u <
|
|
756
|
-
|
|
757
|
-
|
|
755
|
+
for (let u = 0; u < Ze.length; u += 2)
|
|
756
|
+
Ze[u][0](Ze[u + 1]);
|
|
757
|
+
Ze.length = 0;
|
|
758
758
|
}
|
|
759
759
|
}
|
|
760
760
|
}
|
|
@@ -769,7 +769,7 @@ function St(e, t = ye) {
|
|
|
769
769
|
}
|
|
770
770
|
return { set: i, update: o, subscribe: l };
|
|
771
771
|
}
|
|
772
|
-
function
|
|
772
|
+
function ot(e, t, n) {
|
|
773
773
|
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
774
774
|
if (!i.every(Boolean))
|
|
775
775
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -783,7 +783,7 @@ function st(e, t, n) {
|
|
|
783
783
|
return;
|
|
784
784
|
m();
|
|
785
785
|
const x = t(r ? u[0] : u, l, a);
|
|
786
|
-
o ? l(x) : m =
|
|
786
|
+
o ? l(x) : m = Jt(x) ? x : ye;
|
|
787
787
|
}, A = i.map(
|
|
788
788
|
(x, g) => Kr(
|
|
789
789
|
x,
|
|
@@ -796,12 +796,12 @@ function st(e, t, n) {
|
|
|
796
796
|
)
|
|
797
797
|
);
|
|
798
798
|
return c = !0, y(), function() {
|
|
799
|
-
|
|
799
|
+
$e(A), m(), c = !1;
|
|
800
800
|
};
|
|
801
801
|
});
|
|
802
802
|
}
|
|
803
803
|
var li = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
804
|
-
function
|
|
804
|
+
function Pn(e) {
|
|
805
805
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
806
806
|
}
|
|
807
807
|
var Io = function(t) {
|
|
@@ -821,19 +821,19 @@ function $o(e) {
|
|
|
821
821
|
function Uo(e) {
|
|
822
822
|
return Array.isArray(e) ? [] : {};
|
|
823
823
|
}
|
|
824
|
-
function
|
|
825
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
824
|
+
function xt(e, t) {
|
|
825
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? tt(Uo(e), e, t) : e;
|
|
826
826
|
}
|
|
827
827
|
function ko(e, t, n) {
|
|
828
828
|
return e.concat(t).map(function(r) {
|
|
829
|
-
return
|
|
829
|
+
return xt(r, n);
|
|
830
830
|
});
|
|
831
831
|
}
|
|
832
832
|
function Fo(e, t) {
|
|
833
833
|
if (!t.customMerge)
|
|
834
|
-
return
|
|
834
|
+
return tt;
|
|
835
835
|
var n = t.customMerge(e);
|
|
836
|
-
return typeof n == "function" ? n :
|
|
836
|
+
return typeof n == "function" ? n : tt;
|
|
837
837
|
}
|
|
838
838
|
function Go(e) {
|
|
839
839
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -856,51 +856,65 @@ function jo(e, t) {
|
|
|
856
856
|
function zo(e, t, n) {
|
|
857
857
|
var r = {};
|
|
858
858
|
return n.isMergeableObject(e) && _r(e).forEach(function(i) {
|
|
859
|
-
r[i] =
|
|
859
|
+
r[i] = xt(e[i], n);
|
|
860
860
|
}), _r(t).forEach(function(i) {
|
|
861
|
-
jo(e, i) || (ui(e, i) && n.isMergeableObject(t[i]) ? r[i] = Fo(i, n)(e[i], t[i], n) : r[i] =
|
|
861
|
+
jo(e, i) || (ui(e, i) && n.isMergeableObject(t[i]) ? r[i] = Fo(i, n)(e[i], t[i], n) : r[i] = xt(t[i], n));
|
|
862
862
|
}), r;
|
|
863
863
|
}
|
|
864
|
-
function
|
|
865
|
-
n = n || {}, n.arrayMerge = n.arrayMerge || ko, n.isMergeableObject = n.isMergeableObject || Io, n.cloneUnlessOtherwiseSpecified =
|
|
864
|
+
function tt(e, t, n) {
|
|
865
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || ko, n.isMergeableObject = n.isMergeableObject || Io, n.cloneUnlessOtherwiseSpecified = xt;
|
|
866
866
|
var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
|
|
867
|
-
return o ? r ? n.arrayMerge(e, t, n) : zo(e, t, n) :
|
|
867
|
+
return o ? r ? n.arrayMerge(e, t, n) : zo(e, t, n) : xt(t, n);
|
|
868
868
|
}
|
|
869
|
-
|
|
869
|
+
tt.all = function(t, n) {
|
|
870
870
|
if (!Array.isArray(t))
|
|
871
871
|
throw new Error("first argument should be an array");
|
|
872
872
|
return t.reduce(function(r, i) {
|
|
873
|
-
return
|
|
873
|
+
return tt(r, i, n);
|
|
874
874
|
}, {});
|
|
875
875
|
};
|
|
876
|
-
var Wo =
|
|
877
|
-
const Xo = /* @__PURE__ */
|
|
878
|
-
|
|
879
|
-
|
|
876
|
+
var Wo = tt, Vo = Wo;
|
|
877
|
+
const Xo = /* @__PURE__ */ Pn(Vo);
|
|
878
|
+
/*! *****************************************************************************
|
|
879
|
+
Copyright (c) Microsoft Corporation.
|
|
880
|
+
|
|
881
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
882
|
+
purpose with or without fee is hereby granted.
|
|
883
|
+
|
|
884
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
885
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
886
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
887
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
888
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
889
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
890
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
891
|
+
***************************************************************************** */
|
|
892
|
+
var vn = function(e, t) {
|
|
893
|
+
return vn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
880
894
|
n.__proto__ = r;
|
|
881
895
|
} || function(n, r) {
|
|
882
896
|
for (var i in r)
|
|
883
897
|
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
884
|
-
},
|
|
898
|
+
}, vn(e, t);
|
|
885
899
|
};
|
|
886
|
-
function
|
|
900
|
+
function Qt(e, t) {
|
|
887
901
|
if (typeof t != "function" && t !== null)
|
|
888
902
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
889
|
-
|
|
903
|
+
vn(e, t);
|
|
890
904
|
function n() {
|
|
891
905
|
this.constructor = e;
|
|
892
906
|
}
|
|
893
907
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
894
908
|
}
|
|
895
|
-
var
|
|
896
|
-
return
|
|
909
|
+
var j = function() {
|
|
910
|
+
return j = Object.assign || function(t) {
|
|
897
911
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
898
912
|
n = arguments[r];
|
|
899
913
|
for (var o in n)
|
|
900
914
|
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
901
915
|
}
|
|
902
916
|
return t;
|
|
903
|
-
},
|
|
917
|
+
}, j.apply(this, arguments);
|
|
904
918
|
};
|
|
905
919
|
function Yo(e, t) {
|
|
906
920
|
var n = {};
|
|
@@ -911,14 +925,14 @@ function Yo(e, t) {
|
|
|
911
925
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
912
926
|
return n;
|
|
913
927
|
}
|
|
914
|
-
function
|
|
915
|
-
if (
|
|
928
|
+
function cn(e, t, n) {
|
|
929
|
+
if (arguments.length === 2)
|
|
916
930
|
for (var r = 0, i = t.length, o; r < i; r++)
|
|
917
931
|
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
918
|
-
return e.concat(o ||
|
|
932
|
+
return e.concat(o || t);
|
|
919
933
|
}
|
|
920
|
-
function
|
|
921
|
-
var n = t && t.cache ? t.cache :
|
|
934
|
+
function fn(e, t) {
|
|
935
|
+
var n = t && t.cache ? t.cache : es, r = t && t.serializer ? t.serializer : Ko, i = t && t.strategy ? t.strategy : qo;
|
|
922
936
|
return i(e, {
|
|
923
937
|
cache: n,
|
|
924
938
|
serializer: r
|
|
@@ -927,103 +941,95 @@ function mn(e, t) {
|
|
|
927
941
|
function Zo(e) {
|
|
928
942
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
929
943
|
}
|
|
930
|
-
function
|
|
944
|
+
function ci(e, t, n, r) {
|
|
931
945
|
var i = Zo(r) ? r : n(r), o = t.get(i);
|
|
932
946
|
return typeof o == "undefined" && (o = e.call(this, r), t.set(i, o)), o;
|
|
933
947
|
}
|
|
934
|
-
function
|
|
948
|
+
function fi(e, t, n) {
|
|
935
949
|
var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
|
|
936
950
|
return typeof o == "undefined" && (o = e.apply(this, r), t.set(i, o)), o;
|
|
937
951
|
}
|
|
938
|
-
function
|
|
952
|
+
function Rn(e, t, n, r, i) {
|
|
939
953
|
return n.bind(t, e, r, i);
|
|
940
954
|
}
|
|
955
|
+
function qo(e, t) {
|
|
956
|
+
var n = e.length === 1 ? ci : fi;
|
|
957
|
+
return Rn(e, this, n, t.cache.create(), t.serializer);
|
|
958
|
+
}
|
|
941
959
|
function Jo(e, t) {
|
|
942
|
-
|
|
943
|
-
return fi(e, this, n, t.cache.create(), t.serializer);
|
|
960
|
+
return Rn(e, this, fi, t.cache.create(), t.serializer);
|
|
944
961
|
}
|
|
945
962
|
function Qo(e, t) {
|
|
946
|
-
return
|
|
963
|
+
return Rn(e, this, ci, t.cache.create(), t.serializer);
|
|
947
964
|
}
|
|
948
965
|
var Ko = function() {
|
|
949
966
|
return JSON.stringify(arguments);
|
|
950
|
-
}
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
}()
|
|
962
|
-
), ts = {
|
|
967
|
+
};
|
|
968
|
+
function Dn() {
|
|
969
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
970
|
+
}
|
|
971
|
+
Dn.prototype.get = function(e) {
|
|
972
|
+
return this.cache[e];
|
|
973
|
+
};
|
|
974
|
+
Dn.prototype.set = function(e, t) {
|
|
975
|
+
this.cache[e] = t;
|
|
976
|
+
};
|
|
977
|
+
var es = {
|
|
963
978
|
create: function() {
|
|
964
|
-
return new
|
|
979
|
+
return new Dn();
|
|
965
980
|
}
|
|
966
|
-
},
|
|
967
|
-
variadic:
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
971
|
-
n = arguments[r];
|
|
972
|
-
for (var o in n)
|
|
973
|
-
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
974
|
-
}
|
|
975
|
-
return t;
|
|
976
|
-
}, Zt.apply(this, arguments);
|
|
977
|
-
};
|
|
978
|
-
var F;
|
|
981
|
+
}, hn = {
|
|
982
|
+
variadic: Jo,
|
|
983
|
+
monadic: Qo
|
|
984
|
+
}, F;
|
|
979
985
|
(function(e) {
|
|
980
986
|
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";
|
|
981
987
|
})(F || (F = {}));
|
|
982
|
-
var
|
|
988
|
+
var K;
|
|
983
989
|
(function(e) {
|
|
984
990
|
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";
|
|
985
|
-
})(
|
|
986
|
-
var
|
|
991
|
+
})(K || (K = {}));
|
|
992
|
+
var nt;
|
|
987
993
|
(function(e) {
|
|
988
994
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
989
|
-
})(
|
|
995
|
+
})(nt || (nt = {}));
|
|
990
996
|
function br(e) {
|
|
991
|
-
return e.type ===
|
|
997
|
+
return e.type === K.literal;
|
|
992
998
|
}
|
|
993
|
-
function
|
|
994
|
-
return e.type ===
|
|
999
|
+
function ts(e) {
|
|
1000
|
+
return e.type === K.argument;
|
|
995
1001
|
}
|
|
996
1002
|
function hi(e) {
|
|
997
|
-
return e.type ===
|
|
1003
|
+
return e.type === K.number;
|
|
998
1004
|
}
|
|
999
1005
|
function mi(e) {
|
|
1000
|
-
return e.type ===
|
|
1001
|
-
}
|
|
1002
|
-
function pi(e) {
|
|
1003
|
-
return e.type === Q.time;
|
|
1006
|
+
return e.type === K.date;
|
|
1004
1007
|
}
|
|
1005
1008
|
function di(e) {
|
|
1006
|
-
return e.type ===
|
|
1009
|
+
return e.type === K.time;
|
|
1010
|
+
}
|
|
1011
|
+
function pi(e) {
|
|
1012
|
+
return e.type === K.select;
|
|
1007
1013
|
}
|
|
1008
1014
|
function gi(e) {
|
|
1009
|
-
return e.type ===
|
|
1015
|
+
return e.type === K.plural;
|
|
1010
1016
|
}
|
|
1011
|
-
function
|
|
1012
|
-
return e.type ===
|
|
1017
|
+
function ns(e) {
|
|
1018
|
+
return e.type === K.pound;
|
|
1013
1019
|
}
|
|
1014
1020
|
function _i(e) {
|
|
1015
|
-
return e.type ===
|
|
1021
|
+
return e.type === K.tag;
|
|
1016
1022
|
}
|
|
1017
1023
|
function bi(e) {
|
|
1018
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1024
|
+
return !!(e && typeof e == "object" && e.type === nt.number);
|
|
1019
1025
|
}
|
|
1020
|
-
function
|
|
1021
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1026
|
+
function Tn(e) {
|
|
1027
|
+
return !!(e && typeof e == "object" && e.type === nt.dateTime);
|
|
1022
1028
|
}
|
|
1023
|
-
var Ei = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
1024
|
-
function
|
|
1029
|
+
var Ei = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, rs = /(?:[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;
|
|
1030
|
+
function is(e) {
|
|
1025
1031
|
var t = {};
|
|
1026
|
-
return e.replace(
|
|
1032
|
+
return e.replace(rs, function(n) {
|
|
1027
1033
|
var r = n.length;
|
|
1028
1034
|
switch (n[0]) {
|
|
1029
1035
|
case "G":
|
|
@@ -1112,21 +1118,11 @@ function os(e) {
|
|
|
1112
1118
|
return "";
|
|
1113
1119
|
}), t;
|
|
1114
1120
|
}
|
|
1115
|
-
var
|
|
1116
|
-
|
|
1117
|
-
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
1118
|
-
n = arguments[r];
|
|
1119
|
-
for (var o in n)
|
|
1120
|
-
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
1121
|
-
}
|
|
1122
|
-
return t;
|
|
1123
|
-
}, ie.apply(this, arguments);
|
|
1124
|
-
};
|
|
1125
|
-
var ss = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1126
|
-
function as(e) {
|
|
1121
|
+
var os = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1122
|
+
function ss(e) {
|
|
1127
1123
|
if (e.length === 0)
|
|
1128
1124
|
throw new Error("Number skeleton cannot be empty");
|
|
1129
|
-
for (var t = e.split(
|
|
1125
|
+
for (var t = e.split(os).filter(function(y) {
|
|
1130
1126
|
return y.length > 0;
|
|
1131
1127
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
1132
1128
|
var o = i[r], l = o.split("/");
|
|
@@ -1141,10 +1137,10 @@ function as(e) {
|
|
|
1141
1137
|
}
|
|
1142
1138
|
return n;
|
|
1143
1139
|
}
|
|
1144
|
-
function
|
|
1140
|
+
function as(e) {
|
|
1145
1141
|
return e.replace(/^(.*?)-/, "");
|
|
1146
1142
|
}
|
|
1147
|
-
var Er = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, yi = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
1143
|
+
var Er = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, yi = /^(@+)?(\+|#+)?[rs]?$/g, ls = /(\*)(0+)|(#+)(0+)|(0+)/g, xi = /^(0+)$/;
|
|
1148
1144
|
function yr(e) {
|
|
1149
1145
|
var t = {};
|
|
1150
1146
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(yi, function(n, r, i) {
|
|
@@ -1191,7 +1187,7 @@ function vi(e) {
|
|
|
1191
1187
|
};
|
|
1192
1188
|
}
|
|
1193
1189
|
}
|
|
1194
|
-
function
|
|
1190
|
+
function us(e) {
|
|
1195
1191
|
var t;
|
|
1196
1192
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1197
1193
|
notation: "engineering"
|
|
@@ -1209,7 +1205,7 @@ function xr(e) {
|
|
|
1209
1205
|
var t = {}, n = vi(e);
|
|
1210
1206
|
return n || t;
|
|
1211
1207
|
}
|
|
1212
|
-
function
|
|
1208
|
+
function cs(e) {
|
|
1213
1209
|
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
1214
1210
|
var i = r[n];
|
|
1215
1211
|
switch (i.stem) {
|
|
@@ -1233,7 +1229,7 @@ function fs(e) {
|
|
|
1233
1229
|
continue;
|
|
1234
1230
|
case "measure-unit":
|
|
1235
1231
|
case "unit":
|
|
1236
|
-
t.style = "unit", t.unit =
|
|
1232
|
+
t.style = "unit", t.unit = as(i.options[0]);
|
|
1237
1233
|
continue;
|
|
1238
1234
|
case "compact-short":
|
|
1239
1235
|
case "K":
|
|
@@ -1244,13 +1240,13 @@ function fs(e) {
|
|
|
1244
1240
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1245
1241
|
continue;
|
|
1246
1242
|
case "scientific":
|
|
1247
|
-
t =
|
|
1248
|
-
return
|
|
1243
|
+
t = j(j(j({}, t), { notation: "scientific" }), i.options.reduce(function(c, u) {
|
|
1244
|
+
return j(j({}, c), xr(u));
|
|
1249
1245
|
}, {}));
|
|
1250
1246
|
continue;
|
|
1251
1247
|
case "engineering":
|
|
1252
|
-
t =
|
|
1253
|
-
return
|
|
1248
|
+
t = j(j(j({}, t), { notation: "engineering" }), i.options.reduce(function(c, u) {
|
|
1249
|
+
return j(j({}, c), xr(u));
|
|
1254
1250
|
}, {}));
|
|
1255
1251
|
continue;
|
|
1256
1252
|
case "notation-simple":
|
|
@@ -1295,7 +1291,7 @@ function fs(e) {
|
|
|
1295
1291
|
case "integer-width":
|
|
1296
1292
|
if (i.options.length > 1)
|
|
1297
1293
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1298
|
-
i.options[0].replace(
|
|
1294
|
+
i.options[0].replace(ls, function(c, u, f, m, y, A) {
|
|
1299
1295
|
if (u)
|
|
1300
1296
|
t.minimumIntegerDigits = f.length;
|
|
1301
1297
|
else {
|
|
@@ -1319,21 +1315,21 @@ function fs(e) {
|
|
|
1319
1315
|
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), "";
|
|
1320
1316
|
});
|
|
1321
1317
|
var o = i.options[0];
|
|
1322
|
-
o === "w" ? t =
|
|
1318
|
+
o === "w" ? t = j(j({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = j(j({}, t), yr(o)));
|
|
1323
1319
|
continue;
|
|
1324
1320
|
}
|
|
1325
1321
|
if (yi.test(i.stem)) {
|
|
1326
|
-
t =
|
|
1322
|
+
t = j(j({}, t), yr(i.stem));
|
|
1327
1323
|
continue;
|
|
1328
1324
|
}
|
|
1329
1325
|
var l = vi(i.stem);
|
|
1330
|
-
l && (t =
|
|
1331
|
-
var a =
|
|
1332
|
-
a && (t =
|
|
1326
|
+
l && (t = j(j({}, t), l));
|
|
1327
|
+
var a = us(i.stem);
|
|
1328
|
+
a && (t = j(j({}, t), a));
|
|
1333
1329
|
}
|
|
1334
1330
|
return t;
|
|
1335
1331
|
}
|
|
1336
|
-
var
|
|
1332
|
+
var It = {
|
|
1337
1333
|
"001": [
|
|
1338
1334
|
"H",
|
|
1339
1335
|
"h"
|
|
@@ -2748,13 +2744,13 @@ var Pt = {
|
|
|
2748
2744
|
"h"
|
|
2749
2745
|
]
|
|
2750
2746
|
};
|
|
2751
|
-
function
|
|
2747
|
+
function fs(e, t) {
|
|
2752
2748
|
for (var n = "", r = 0; r < e.length; r++) {
|
|
2753
2749
|
var i = e.charAt(r);
|
|
2754
2750
|
if (i === "j") {
|
|
2755
2751
|
for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2756
2752
|
o++, r++;
|
|
2757
|
-
var l = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), c = "a", u =
|
|
2753
|
+
var l = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), c = "a", u = hs(t);
|
|
2758
2754
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2759
2755
|
n += c;
|
|
2760
2756
|
for (; l-- > 0; )
|
|
@@ -2764,7 +2760,7 @@ function hs(e, t) {
|
|
|
2764
2760
|
}
|
|
2765
2761
|
return n;
|
|
2766
2762
|
}
|
|
2767
|
-
function
|
|
2763
|
+
function hs(e) {
|
|
2768
2764
|
var t = e.hourCycle;
|
|
2769
2765
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2770
2766
|
e.hourCycles && // @ts-ignore
|
|
@@ -2783,23 +2779,23 @@ function ms(e) {
|
|
|
2783
2779
|
}
|
|
2784
2780
|
var n = e.language, r;
|
|
2785
2781
|
n !== "root" && (r = e.maximize().region);
|
|
2786
|
-
var i =
|
|
2782
|
+
var i = It[r || ""] || It[n || ""] || It["".concat(n, "-001")] || It["001"];
|
|
2787
2783
|
return i[0];
|
|
2788
2784
|
}
|
|
2789
|
-
var
|
|
2785
|
+
var mn, ms = new RegExp("^".concat(Ei.source, "*")), ds = new RegExp("".concat(Ei.source, "*$"));
|
|
2790
2786
|
function G(e, t) {
|
|
2791
2787
|
return { start: e, end: t };
|
|
2792
2788
|
}
|
|
2793
|
-
var
|
|
2789
|
+
var ps = !!String.prototype.startsWith && "_a".startsWith("a", 1), gs = !!String.fromCodePoint, _s = !!Object.fromEntries, bs = !!String.prototype.codePointAt, Es = !!String.prototype.trimStart, ys = !!String.prototype.trimEnd, xs = !!Number.isSafeInteger, vs = xs ? Number.isSafeInteger : function(e) {
|
|
2794
2790
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2795
|
-
},
|
|
2791
|
+
}, Sn = !0;
|
|
2796
2792
|
try {
|
|
2797
|
-
var
|
|
2798
|
-
|
|
2793
|
+
var Ts = Si("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2794
|
+
Sn = ((mn = Ts.exec("a")) === null || mn === void 0 ? void 0 : mn[0]) === "a";
|
|
2799
2795
|
} catch (e) {
|
|
2800
|
-
|
|
2796
|
+
Sn = !1;
|
|
2801
2797
|
}
|
|
2802
|
-
var vr =
|
|
2798
|
+
var vr = ps ? (
|
|
2803
2799
|
// Native
|
|
2804
2800
|
function(t, n, r) {
|
|
2805
2801
|
return t.startsWith(n, r);
|
|
@@ -2809,7 +2805,7 @@ var vr = gs ? (
|
|
|
2809
2805
|
function(t, n, r) {
|
|
2810
2806
|
return t.slice(r, r + n.length) === n;
|
|
2811
2807
|
}
|
|
2812
|
-
),
|
|
2808
|
+
), wn = gs ? String.fromCodePoint : (
|
|
2813
2809
|
// IE11
|
|
2814
2810
|
function() {
|
|
2815
2811
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
@@ -2823,7 +2819,7 @@ var vr = gs ? (
|
|
|
2823
2819
|
}
|
|
2824
2820
|
), Tr = (
|
|
2825
2821
|
// native
|
|
2826
|
-
|
|
2822
|
+
_s ? Object.fromEntries : (
|
|
2827
2823
|
// Ponyfill
|
|
2828
2824
|
function(t) {
|
|
2829
2825
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
@@ -2833,7 +2829,7 @@ var vr = gs ? (
|
|
|
2833
2829
|
return n;
|
|
2834
2830
|
}
|
|
2835
2831
|
)
|
|
2836
|
-
), Ti =
|
|
2832
|
+
), Ti = bs ? (
|
|
2837
2833
|
// Native
|
|
2838
2834
|
function(t, n) {
|
|
2839
2835
|
return t.codePointAt(n);
|
|
@@ -2847,7 +2843,7 @@ var vr = gs ? (
|
|
|
2847
2843
|
return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2848
2844
|
}
|
|
2849
2845
|
}
|
|
2850
|
-
),
|
|
2846
|
+
), Ss = Es ? (
|
|
2851
2847
|
// Native
|
|
2852
2848
|
function(t) {
|
|
2853
2849
|
return t.trimStart();
|
|
@@ -2855,9 +2851,9 @@ var vr = gs ? (
|
|
|
2855
2851
|
) : (
|
|
2856
2852
|
// Ponyfill
|
|
2857
2853
|
function(t) {
|
|
2858
|
-
return t.replace(
|
|
2854
|
+
return t.replace(ms, "");
|
|
2859
2855
|
}
|
|
2860
|
-
),
|
|
2856
|
+
), ws = ys ? (
|
|
2861
2857
|
// Native
|
|
2862
2858
|
function(t) {
|
|
2863
2859
|
return t.trimEnd();
|
|
@@ -2871,26 +2867,26 @@ var vr = gs ? (
|
|
|
2871
2867
|
function Si(e, t) {
|
|
2872
2868
|
return new RegExp(e, t);
|
|
2873
2869
|
}
|
|
2874
|
-
var
|
|
2875
|
-
if (
|
|
2870
|
+
var An;
|
|
2871
|
+
if (Sn) {
|
|
2876
2872
|
var Sr = Si("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2877
|
-
|
|
2873
|
+
An = function(t, n) {
|
|
2878
2874
|
var r;
|
|
2879
2875
|
Sr.lastIndex = n;
|
|
2880
2876
|
var i = Sr.exec(t);
|
|
2881
2877
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2882
2878
|
};
|
|
2883
2879
|
} else
|
|
2884
|
-
|
|
2880
|
+
An = function(t, n) {
|
|
2885
2881
|
for (var r = []; ; ) {
|
|
2886
2882
|
var i = Ti(t, n);
|
|
2887
|
-
if (i === void 0 || wi(i) ||
|
|
2883
|
+
if (i === void 0 || wi(i) || Os(i))
|
|
2888
2884
|
break;
|
|
2889
2885
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2890
2886
|
}
|
|
2891
|
-
return
|
|
2887
|
+
return wn.apply(void 0, r);
|
|
2892
2888
|
};
|
|
2893
|
-
var
|
|
2889
|
+
var As = (
|
|
2894
2890
|
/** @class */
|
|
2895
2891
|
function() {
|
|
2896
2892
|
function e(t, n) {
|
|
@@ -2914,14 +2910,14 @@ var Os = (
|
|
|
2914
2910
|
if (o === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2915
2911
|
var a = this.clonePosition();
|
|
2916
2912
|
this.bump(), i.push({
|
|
2917
|
-
type:
|
|
2913
|
+
type: K.pound,
|
|
2918
2914
|
location: G(a, this.clonePosition())
|
|
2919
2915
|
});
|
|
2920
2916
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2921
2917
|
if (r)
|
|
2922
2918
|
break;
|
|
2923
2919
|
return this.error(F.UNMATCHED_CLOSING_TAG, G(this.clonePosition(), this.clonePosition()));
|
|
2924
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2920
|
+
} else if (o === 60 && !this.ignoreTag && Mn(this.peek() || 0)) {
|
|
2925
2921
|
var l = this.parseTag(t, n);
|
|
2926
2922
|
if (l.err)
|
|
2927
2923
|
return l;
|
|
@@ -2942,7 +2938,7 @@ var Os = (
|
|
|
2942
2938
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2943
2939
|
return {
|
|
2944
2940
|
val: {
|
|
2945
|
-
type:
|
|
2941
|
+
type: K.literal,
|
|
2946
2942
|
value: "<".concat(i, "/>"),
|
|
2947
2943
|
location: G(r, this.clonePosition())
|
|
2948
2944
|
},
|
|
@@ -2954,12 +2950,12 @@ var Os = (
|
|
|
2954
2950
|
return o;
|
|
2955
2951
|
var l = o.val, a = this.clonePosition();
|
|
2956
2952
|
if (this.bumpIf("</")) {
|
|
2957
|
-
if (this.isEOF() || !
|
|
2953
|
+
if (this.isEOF() || !Mn(this.char()))
|
|
2958
2954
|
return this.error(F.INVALID_TAG, G(a, this.clonePosition()));
|
|
2959
2955
|
var c = this.clonePosition(), u = this.parseTagName();
|
|
2960
2956
|
return i !== u ? this.error(F.UNMATCHED_CLOSING_TAG, G(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2961
2957
|
val: {
|
|
2962
|
-
type:
|
|
2958
|
+
type: K.tag,
|
|
2963
2959
|
value: i,
|
|
2964
2960
|
children: l,
|
|
2965
2961
|
location: G(r, this.clonePosition())
|
|
@@ -2996,7 +2992,7 @@ var Os = (
|
|
|
2996
2992
|
}
|
|
2997
2993
|
var c = G(r, this.clonePosition());
|
|
2998
2994
|
return {
|
|
2999
|
-
val: { type:
|
|
2995
|
+
val: { type: K.literal, value: i, location: c },
|
|
3000
2996
|
err: null
|
|
3001
2997
|
};
|
|
3002
2998
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -3035,12 +3031,12 @@ var Os = (
|
|
|
3035
3031
|
n.push(r);
|
|
3036
3032
|
this.bump();
|
|
3037
3033
|
}
|
|
3038
|
-
return
|
|
3034
|
+
return wn.apply(void 0, n);
|
|
3039
3035
|
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
3040
3036
|
if (this.isEOF())
|
|
3041
3037
|
return null;
|
|
3042
3038
|
var r = this.char();
|
|
3043
|
-
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
3039
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), wn(r));
|
|
3044
3040
|
}, e.prototype.parseArgument = function(t, n) {
|
|
3045
3041
|
var r = this.clonePosition();
|
|
3046
3042
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3056,7 +3052,7 @@ var Os = (
|
|
|
3056
3052
|
case 125:
|
|
3057
3053
|
return this.bump(), {
|
|
3058
3054
|
val: {
|
|
3059
|
-
type:
|
|
3055
|
+
type: K.argument,
|
|
3060
3056
|
// value does not include the opening and closing braces.
|
|
3061
3057
|
value: i,
|
|
3062
3058
|
location: G(r, this.clonePosition())
|
|
@@ -3069,7 +3065,7 @@ var Os = (
|
|
|
3069
3065
|
return this.error(F.MALFORMED_ARGUMENT, G(r, this.clonePosition()));
|
|
3070
3066
|
}
|
|
3071
3067
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3072
|
-
var t = this.clonePosition(), n = this.offset(), r =
|
|
3068
|
+
var t = this.clonePosition(), n = this.offset(), r = An(this.message, n), i = n + r.length;
|
|
3073
3069
|
this.bumpTo(i);
|
|
3074
3070
|
var o = this.clonePosition(), l = G(t, o);
|
|
3075
3071
|
return { value: r, location: l };
|
|
@@ -3088,7 +3084,7 @@ var Os = (
|
|
|
3088
3084
|
var f = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
|
|
3089
3085
|
if (m.err)
|
|
3090
3086
|
return m;
|
|
3091
|
-
var y =
|
|
3087
|
+
var y = ws(m.val);
|
|
3092
3088
|
if (y.length === 0)
|
|
3093
3089
|
return this.error(F.EXPECT_ARGUMENT_STYLE, G(this.clonePosition(), this.clonePosition()));
|
|
3094
3090
|
var A = G(f, this.clonePosition());
|
|
@@ -3099,33 +3095,33 @@ var Os = (
|
|
|
3099
3095
|
return x;
|
|
3100
3096
|
var g = G(i, this.clonePosition());
|
|
3101
3097
|
if (u && vr(u == null ? void 0 : u.style, "::", 0)) {
|
|
3102
|
-
var N =
|
|
3098
|
+
var N = Ss(u.style.slice(2));
|
|
3103
3099
|
if (a === "number") {
|
|
3104
3100
|
var m = this.parseNumberSkeletonFromString(N, u.styleLocation);
|
|
3105
3101
|
return m.err ? m : {
|
|
3106
|
-
val: { type:
|
|
3102
|
+
val: { type: K.number, value: r, location: g, style: m.val },
|
|
3107
3103
|
err: null
|
|
3108
3104
|
};
|
|
3109
3105
|
} else {
|
|
3110
3106
|
if (N.length === 0)
|
|
3111
3107
|
return this.error(F.EXPECT_DATE_TIME_SKELETON, g);
|
|
3112
3108
|
var U = N;
|
|
3113
|
-
this.locale && (U =
|
|
3109
|
+
this.locale && (U = fs(N, this.locale));
|
|
3114
3110
|
var y = {
|
|
3115
|
-
type:
|
|
3111
|
+
type: nt.dateTime,
|
|
3116
3112
|
pattern: U,
|
|
3117
3113
|
location: u.styleLocation,
|
|
3118
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3119
|
-
},
|
|
3114
|
+
parsedOptions: this.shouldParseSkeletons ? is(U) : {}
|
|
3115
|
+
}, X = a === "date" ? K.date : K.time;
|
|
3120
3116
|
return {
|
|
3121
|
-
val: { type:
|
|
3117
|
+
val: { type: X, value: r, location: g, style: y },
|
|
3122
3118
|
err: null
|
|
3123
3119
|
};
|
|
3124
3120
|
}
|
|
3125
3121
|
}
|
|
3126
3122
|
return {
|
|
3127
3123
|
val: {
|
|
3128
|
-
type: a === "number" ?
|
|
3124
|
+
type: a === "number" ? K.number : a === "date" ? K.date : K.time,
|
|
3129
3125
|
value: r,
|
|
3130
3126
|
location: g,
|
|
3131
3127
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
@@ -3138,7 +3134,7 @@ var Os = (
|
|
|
3138
3134
|
case "select": {
|
|
3139
3135
|
var R = this.clonePosition();
|
|
3140
3136
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3141
|
-
return this.error(F.EXPECT_SELECT_ARGUMENT_OPTIONS, G(R,
|
|
3137
|
+
return this.error(F.EXPECT_SELECT_ARGUMENT_OPTIONS, G(R, j({}, R)));
|
|
3142
3138
|
this.bumpSpace();
|
|
3143
3139
|
var H = this.parseIdentifierIfPossible(), I = 0;
|
|
3144
3140
|
if (a !== "select" && H.value === "offset") {
|
|
@@ -3150,26 +3146,26 @@ var Os = (
|
|
|
3150
3146
|
return m;
|
|
3151
3147
|
this.bumpSpace(), H = this.parseIdentifierIfPossible(), I = m.val;
|
|
3152
3148
|
}
|
|
3153
|
-
var
|
|
3154
|
-
if (
|
|
3155
|
-
return
|
|
3149
|
+
var V = this.tryParsePluralOrSelectOptions(t, a, n, H);
|
|
3150
|
+
if (V.err)
|
|
3151
|
+
return V;
|
|
3156
3152
|
var x = this.tryParseArgumentClose(i);
|
|
3157
3153
|
if (x.err)
|
|
3158
3154
|
return x;
|
|
3159
3155
|
var oe = G(i, this.clonePosition());
|
|
3160
3156
|
return a === "select" ? {
|
|
3161
3157
|
val: {
|
|
3162
|
-
type:
|
|
3158
|
+
type: K.select,
|
|
3163
3159
|
value: r,
|
|
3164
|
-
options: Tr(
|
|
3160
|
+
options: Tr(V.val),
|
|
3165
3161
|
location: oe
|
|
3166
3162
|
},
|
|
3167
3163
|
err: null
|
|
3168
3164
|
} : {
|
|
3169
3165
|
val: {
|
|
3170
|
-
type:
|
|
3166
|
+
type: K.plural,
|
|
3171
3167
|
value: r,
|
|
3172
|
-
options: Tr(
|
|
3168
|
+
options: Tr(V.val),
|
|
3173
3169
|
offset: I,
|
|
3174
3170
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3175
3171
|
location: oe
|
|
@@ -3220,16 +3216,16 @@ var Os = (
|
|
|
3220
3216
|
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
3221
3217
|
var r = [];
|
|
3222
3218
|
try {
|
|
3223
|
-
r =
|
|
3219
|
+
r = ss(t);
|
|
3224
3220
|
} catch (i) {
|
|
3225
3221
|
return this.error(F.INVALID_NUMBER_SKELETON, n);
|
|
3226
3222
|
}
|
|
3227
3223
|
return {
|
|
3228
3224
|
val: {
|
|
3229
|
-
type:
|
|
3225
|
+
type: nt.number,
|
|
3230
3226
|
tokens: r,
|
|
3231
3227
|
location: n,
|
|
3232
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3228
|
+
parsedOptions: this.shouldParseSkeletons ? cs(r) : {}
|
|
3233
3229
|
},
|
|
3234
3230
|
err: null
|
|
3235
3231
|
};
|
|
@@ -3277,7 +3273,7 @@ var Os = (
|
|
|
3277
3273
|
break;
|
|
3278
3274
|
}
|
|
3279
3275
|
var c = G(i, this.clonePosition());
|
|
3280
|
-
return o ? (l *= r,
|
|
3276
|
+
return o ? (l *= r, vs(l) ? { val: l, err: null } : this.error(n, c)) : this.error(t, c);
|
|
3281
3277
|
}, e.prototype.offset = function() {
|
|
3282
3278
|
return this.position.offset;
|
|
3283
3279
|
}, e.prototype.isEOF = function() {
|
|
@@ -3343,11 +3339,11 @@ var Os = (
|
|
|
3343
3339
|
}, e;
|
|
3344
3340
|
}()
|
|
3345
3341
|
);
|
|
3346
|
-
function
|
|
3342
|
+
function Mn(e) {
|
|
3347
3343
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3348
3344
|
}
|
|
3349
3345
|
function Ms(e) {
|
|
3350
|
-
return
|
|
3346
|
+
return Mn(e) || e === 47;
|
|
3351
3347
|
}
|
|
3352
3348
|
function Cs(e) {
|
|
3353
3349
|
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;
|
|
@@ -3355,35 +3351,35 @@ function Cs(e) {
|
|
|
3355
3351
|
function wi(e) {
|
|
3356
3352
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3357
3353
|
}
|
|
3358
|
-
function
|
|
3354
|
+
function Os(e) {
|
|
3359
3355
|
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;
|
|
3360
3356
|
}
|
|
3361
|
-
function
|
|
3357
|
+
function Cn(e) {
|
|
3362
3358
|
e.forEach(function(t) {
|
|
3363
|
-
if (delete t.location,
|
|
3359
|
+
if (delete t.location, pi(t) || gi(t))
|
|
3364
3360
|
for (var n in t.options)
|
|
3365
|
-
delete t.options[n].location,
|
|
3361
|
+
delete t.options[n].location, Cn(t.options[n].value);
|
|
3366
3362
|
else
|
|
3367
|
-
hi(t) && bi(t.style) || (mi(t) ||
|
|
3363
|
+
hi(t) && bi(t.style) || (mi(t) || di(t)) && Tn(t.style) ? delete t.style.location : _i(t) && Cn(t.children);
|
|
3368
3364
|
});
|
|
3369
3365
|
}
|
|
3370
|
-
function
|
|
3371
|
-
t === void 0 && (t = {}), t =
|
|
3372
|
-
var n = new
|
|
3366
|
+
function Ls(e, t) {
|
|
3367
|
+
t === void 0 && (t = {}), t = j({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3368
|
+
var n = new As(e, t).parse();
|
|
3373
3369
|
if (n.err) {
|
|
3374
3370
|
var r = SyntaxError(F[n.err.kind]);
|
|
3375
3371
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3376
3372
|
}
|
|
3377
|
-
return t != null && t.captureLocation ||
|
|
3373
|
+
return t != null && t.captureLocation || Cn(n.val), n.val;
|
|
3378
3374
|
}
|
|
3379
|
-
var
|
|
3375
|
+
var rt;
|
|
3380
3376
|
(function(e) {
|
|
3381
3377
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3382
|
-
})(
|
|
3383
|
-
var
|
|
3378
|
+
})(rt || (rt = {}));
|
|
3379
|
+
var Kt = (
|
|
3384
3380
|
/** @class */
|
|
3385
3381
|
function(e) {
|
|
3386
|
-
|
|
3382
|
+
Qt(t, e);
|
|
3387
3383
|
function t(n, r, i) {
|
|
3388
3384
|
var o = e.call(this, n) || this;
|
|
3389
3385
|
return o.code = r, o.originalMessage = i, o;
|
|
@@ -3395,44 +3391,44 @@ var tn = (
|
|
|
3395
3391
|
), wr = (
|
|
3396
3392
|
/** @class */
|
|
3397
3393
|
function(e) {
|
|
3398
|
-
|
|
3394
|
+
Qt(t, e);
|
|
3399
3395
|
function t(n, r, i, o) {
|
|
3400
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3396
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), rt.INVALID_VALUE, o) || this;
|
|
3401
3397
|
}
|
|
3402
3398
|
return t;
|
|
3403
|
-
}(
|
|
3404
|
-
),
|
|
3399
|
+
}(Kt)
|
|
3400
|
+
), Hs = (
|
|
3405
3401
|
/** @class */
|
|
3406
3402
|
function(e) {
|
|
3407
|
-
|
|
3403
|
+
Qt(t, e);
|
|
3408
3404
|
function t(n, r, i) {
|
|
3409
|
-
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r),
|
|
3405
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), rt.INVALID_VALUE, i) || this;
|
|
3410
3406
|
}
|
|
3411
3407
|
return t;
|
|
3412
|
-
}(
|
|
3413
|
-
),
|
|
3408
|
+
}(Kt)
|
|
3409
|
+
), Ns = (
|
|
3414
3410
|
/** @class */
|
|
3415
3411
|
function(e) {
|
|
3416
|
-
|
|
3412
|
+
Qt(t, e);
|
|
3417
3413
|
function t(n, r) {
|
|
3418
|
-
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'),
|
|
3414
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), rt.MISSING_VALUE, r) || this;
|
|
3419
3415
|
}
|
|
3420
3416
|
return t;
|
|
3421
|
-
}(
|
|
3417
|
+
}(Kt)
|
|
3422
3418
|
), ge;
|
|
3423
3419
|
(function(e) {
|
|
3424
3420
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3425
3421
|
})(ge || (ge = {}));
|
|
3426
|
-
function
|
|
3422
|
+
function Is(e) {
|
|
3427
3423
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3428
3424
|
var r = t[t.length - 1];
|
|
3429
3425
|
return !r || r.type !== ge.literal || n.type !== ge.literal ? t.push(n) : r.value += n.value, t;
|
|
3430
3426
|
}, []);
|
|
3431
3427
|
}
|
|
3432
|
-
function
|
|
3428
|
+
function Ps(e) {
|
|
3433
3429
|
return typeof e == "function";
|
|
3434
3430
|
}
|
|
3435
|
-
function
|
|
3431
|
+
function Gt(e, t, n, r, i, o, l) {
|
|
3436
3432
|
if (e.length === 1 && br(e[0]))
|
|
3437
3433
|
return [
|
|
3438
3434
|
{
|
|
@@ -3449,7 +3445,7 @@ function jt(e, t, n, r, i, o, l) {
|
|
|
3449
3445
|
});
|
|
3450
3446
|
continue;
|
|
3451
3447
|
}
|
|
3452
|
-
if (
|
|
3448
|
+
if (ns(f)) {
|
|
3453
3449
|
typeof o == "number" && a.push({
|
|
3454
3450
|
type: ge.literal,
|
|
3455
3451
|
value: n.getNumberFormat(t).format(o)
|
|
@@ -3458,9 +3454,9 @@ function jt(e, t, n, r, i, o, l) {
|
|
|
3458
3454
|
}
|
|
3459
3455
|
var m = f.value;
|
|
3460
3456
|
if (!(i && m in i))
|
|
3461
|
-
throw new
|
|
3457
|
+
throw new Ns(m, l);
|
|
3462
3458
|
var y = i[m];
|
|
3463
|
-
if (
|
|
3459
|
+
if (ts(f)) {
|
|
3464
3460
|
(!y || typeof y == "string" || typeof y == "number") && (y = typeof y == "string" || typeof y == "number" ? String(y) : ""), a.push({
|
|
3465
3461
|
type: typeof y == "string" ? ge.literal : ge.object,
|
|
3466
3462
|
value: y
|
|
@@ -3468,15 +3464,15 @@ function jt(e, t, n, r, i, o, l) {
|
|
|
3468
3464
|
continue;
|
|
3469
3465
|
}
|
|
3470
3466
|
if (mi(f)) {
|
|
3471
|
-
var A = typeof f.style == "string" ? r.date[f.style] :
|
|
3467
|
+
var A = typeof f.style == "string" ? r.date[f.style] : Tn(f.style) ? f.style.parsedOptions : void 0;
|
|
3472
3468
|
a.push({
|
|
3473
3469
|
type: ge.literal,
|
|
3474
3470
|
value: n.getDateTimeFormat(t, A).format(y)
|
|
3475
3471
|
});
|
|
3476
3472
|
continue;
|
|
3477
3473
|
}
|
|
3478
|
-
if (
|
|
3479
|
-
var A = typeof f.style == "string" ? r.time[f.style] :
|
|
3474
|
+
if (di(f)) {
|
|
3475
|
+
var A = typeof f.style == "string" ? r.time[f.style] : Tn(f.style) ? f.style.parsedOptions : r.time.medium;
|
|
3480
3476
|
a.push({
|
|
3481
3477
|
type: ge.literal,
|
|
3482
3478
|
value: n.getDateTimeFormat(t, A).format(y)
|
|
@@ -3493,54 +3489,54 @@ function jt(e, t, n, r, i, o, l) {
|
|
|
3493
3489
|
}
|
|
3494
3490
|
if (_i(f)) {
|
|
3495
3491
|
var x = f.children, g = f.value, N = i[g];
|
|
3496
|
-
if (!
|
|
3497
|
-
throw new
|
|
3498
|
-
var U =
|
|
3492
|
+
if (!Ps(N))
|
|
3493
|
+
throw new Hs(g, "function", l);
|
|
3494
|
+
var U = Gt(x, t, n, r, i, o), X = N(U.map(function(I) {
|
|
3499
3495
|
return I.value;
|
|
3500
3496
|
}));
|
|
3501
|
-
Array.isArray(
|
|
3497
|
+
Array.isArray(X) || (X = [X]), a.push.apply(a, X.map(function(I) {
|
|
3502
3498
|
return {
|
|
3503
3499
|
type: typeof I == "string" ? ge.literal : ge.object,
|
|
3504
3500
|
value: I
|
|
3505
3501
|
};
|
|
3506
3502
|
}));
|
|
3507
3503
|
}
|
|
3508
|
-
if (
|
|
3504
|
+
if (pi(f)) {
|
|
3509
3505
|
var R = f.options[y] || f.options.other;
|
|
3510
3506
|
if (!R)
|
|
3511
3507
|
throw new wr(f.value, y, Object.keys(f.options), l);
|
|
3512
|
-
a.push.apply(a,
|
|
3508
|
+
a.push.apply(a, Gt(R.value, t, n, r, i));
|
|
3513
3509
|
continue;
|
|
3514
3510
|
}
|
|
3515
3511
|
if (gi(f)) {
|
|
3516
3512
|
var R = f.options["=".concat(y)];
|
|
3517
3513
|
if (!R) {
|
|
3518
3514
|
if (!Intl.PluralRules)
|
|
3519
|
-
throw new
|
|
3515
|
+
throw new Kt(`Intl.PluralRules is not available in this environment.
|
|
3520
3516
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3521
|
-
`,
|
|
3517
|
+
`, rt.MISSING_INTL_API, l);
|
|
3522
3518
|
var H = n.getPluralRules(t, { type: f.pluralType }).select(y - (f.offset || 0));
|
|
3523
3519
|
R = f.options[H] || f.options.other;
|
|
3524
3520
|
}
|
|
3525
3521
|
if (!R)
|
|
3526
3522
|
throw new wr(f.value, y, Object.keys(f.options), l);
|
|
3527
|
-
a.push.apply(a,
|
|
3523
|
+
a.push.apply(a, Gt(R.value, t, n, r, i, y - (f.offset || 0)));
|
|
3528
3524
|
continue;
|
|
3529
3525
|
}
|
|
3530
3526
|
}
|
|
3531
|
-
return
|
|
3527
|
+
return Is(a);
|
|
3532
3528
|
}
|
|
3533
|
-
function
|
|
3534
|
-
return t ?
|
|
3535
|
-
return n[r] =
|
|
3529
|
+
function Rs(e, t) {
|
|
3530
|
+
return t ? j(j(j({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3531
|
+
return n[r] = j(j({}, e[r]), t[r] || {}), n;
|
|
3536
3532
|
}, {})) : e;
|
|
3537
3533
|
}
|
|
3538
|
-
function
|
|
3534
|
+
function Ds(e, t) {
|
|
3539
3535
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3540
|
-
return n[r] =
|
|
3541
|
-
},
|
|
3536
|
+
return n[r] = Rs(e[r], t[r]), n;
|
|
3537
|
+
}, j({}, e)) : e;
|
|
3542
3538
|
}
|
|
3543
|
-
function
|
|
3539
|
+
function dn(e) {
|
|
3544
3540
|
return {
|
|
3545
3541
|
create: function() {
|
|
3546
3542
|
return {
|
|
@@ -3554,35 +3550,35 @@ function gn(e) {
|
|
|
3554
3550
|
}
|
|
3555
3551
|
};
|
|
3556
3552
|
}
|
|
3557
|
-
function
|
|
3553
|
+
function Bs(e) {
|
|
3558
3554
|
return e === void 0 && (e = {
|
|
3559
3555
|
number: {},
|
|
3560
3556
|
dateTime: {},
|
|
3561
3557
|
pluralRules: {}
|
|
3562
3558
|
}), {
|
|
3563
|
-
getNumberFormat:
|
|
3559
|
+
getNumberFormat: fn(function() {
|
|
3564
3560
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3565
3561
|
n[r] = arguments[r];
|
|
3566
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3562
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, cn([void 0], n, !1)))();
|
|
3567
3563
|
}, {
|
|
3568
|
-
cache:
|
|
3569
|
-
strategy:
|
|
3564
|
+
cache: dn(e.number),
|
|
3565
|
+
strategy: hn.variadic
|
|
3570
3566
|
}),
|
|
3571
|
-
getDateTimeFormat:
|
|
3567
|
+
getDateTimeFormat: fn(function() {
|
|
3572
3568
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3573
3569
|
n[r] = arguments[r];
|
|
3574
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3570
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, cn([void 0], n, !1)))();
|
|
3575
3571
|
}, {
|
|
3576
|
-
cache:
|
|
3577
|
-
strategy:
|
|
3572
|
+
cache: dn(e.dateTime),
|
|
3573
|
+
strategy: hn.variadic
|
|
3578
3574
|
}),
|
|
3579
|
-
getPluralRules:
|
|
3575
|
+
getPluralRules: fn(function() {
|
|
3580
3576
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3581
3577
|
n[r] = arguments[r];
|
|
3582
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3578
|
+
return new ((t = Intl.PluralRules).bind.apply(t, cn([void 0], n, !1)))();
|
|
3583
3579
|
}, {
|
|
3584
|
-
cache:
|
|
3585
|
-
strategy:
|
|
3580
|
+
cache: dn(e.pluralRules),
|
|
3581
|
+
strategy: hn.variadic
|
|
3586
3582
|
})
|
|
3587
3583
|
};
|
|
3588
3584
|
}
|
|
@@ -3605,7 +3601,7 @@ var Ai = (
|
|
|
3605
3601
|
}, []);
|
|
3606
3602
|
return f.length <= 1 ? f[0] || "" : f;
|
|
3607
3603
|
}, this.formatToParts = function(c) {
|
|
3608
|
-
return
|
|
3604
|
+
return Gt(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
|
|
3609
3605
|
}, this.resolvedOptions = function() {
|
|
3610
3606
|
var c;
|
|
3611
3607
|
return {
|
|
@@ -3619,12 +3615,12 @@ var Ai = (
|
|
|
3619
3615
|
var l = i || {};
|
|
3620
3616
|
l.formatters;
|
|
3621
3617
|
var a = Yo(l, ["formatters"]);
|
|
3622
|
-
this.ast = e.__parse(t,
|
|
3618
|
+
this.ast = e.__parse(t, j(j({}, a), { locale: this.resolvedLocale }));
|
|
3623
3619
|
} else
|
|
3624
3620
|
this.ast = t;
|
|
3625
3621
|
if (!Array.isArray(this.ast))
|
|
3626
3622
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3627
|
-
this.formats =
|
|
3623
|
+
this.formats = Ds(e.formats, r), this.formatters = i && i.formatters || Bs(this.formatterCache);
|
|
3628
3624
|
}
|
|
3629
3625
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3630
3626
|
get: function() {
|
|
@@ -3637,7 +3633,7 @@ var Ai = (
|
|
|
3637
3633
|
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3638
3634
|
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3639
3635
|
}
|
|
3640
|
-
}, e.__parse =
|
|
3636
|
+
}, e.__parse = Ls, e.formats = {
|
|
3641
3637
|
number: {
|
|
3642
3638
|
integer: {
|
|
3643
3639
|
maximumFractionDigits: 0
|
|
@@ -3698,7 +3694,7 @@ var Ai = (
|
|
|
3698
3694
|
}, e;
|
|
3699
3695
|
}()
|
|
3700
3696
|
);
|
|
3701
|
-
function
|
|
3697
|
+
function $s(e, t) {
|
|
3702
3698
|
if (t == null)
|
|
3703
3699
|
return;
|
|
3704
3700
|
if (t in e)
|
|
@@ -3719,101 +3715,101 @@ function Us(e, t) {
|
|
|
3719
3715
|
r = void 0;
|
|
3720
3716
|
return r;
|
|
3721
3717
|
}
|
|
3722
|
-
const
|
|
3718
|
+
const Be = {}, Us = (e, t, n) => n && (t in Be || (Be[t] = {}), e in Be[t] || (Be[t][e] = n), n), Mi = (e, t) => {
|
|
3723
3719
|
if (t == null)
|
|
3724
3720
|
return;
|
|
3725
|
-
if (t in
|
|
3726
|
-
return
|
|
3727
|
-
const n =
|
|
3721
|
+
if (t in Be && e in Be[t])
|
|
3722
|
+
return Be[t][e];
|
|
3723
|
+
const n = wt(t);
|
|
3728
3724
|
for (let r = 0; r < n.length; r++) {
|
|
3729
|
-
const i = n[r], o =
|
|
3725
|
+
const i = n[r], o = Fs(i, e);
|
|
3730
3726
|
if (o)
|
|
3731
|
-
return
|
|
3727
|
+
return Us(e, t, o);
|
|
3732
3728
|
}
|
|
3733
3729
|
};
|
|
3734
3730
|
let Bn;
|
|
3735
|
-
const
|
|
3736
|
-
function
|
|
3731
|
+
const St = Tt({});
|
|
3732
|
+
function ks(e) {
|
|
3737
3733
|
return Bn[e] || null;
|
|
3738
3734
|
}
|
|
3739
|
-
function
|
|
3735
|
+
function Ci(e) {
|
|
3740
3736
|
return e in Bn;
|
|
3741
3737
|
}
|
|
3742
|
-
function
|
|
3743
|
-
if (!
|
|
3738
|
+
function Fs(e, t) {
|
|
3739
|
+
if (!Ci(e))
|
|
3744
3740
|
return null;
|
|
3745
|
-
const n =
|
|
3746
|
-
return
|
|
3741
|
+
const n = ks(e);
|
|
3742
|
+
return $s(n, t);
|
|
3747
3743
|
}
|
|
3748
|
-
function
|
|
3744
|
+
function Gs(e) {
|
|
3749
3745
|
if (e == null)
|
|
3750
3746
|
return;
|
|
3751
|
-
const t =
|
|
3747
|
+
const t = wt(e);
|
|
3752
3748
|
for (let n = 0; n < t.length; n++) {
|
|
3753
3749
|
const r = t[n];
|
|
3754
|
-
if (
|
|
3750
|
+
if (Ci(r))
|
|
3755
3751
|
return r;
|
|
3756
3752
|
}
|
|
3757
3753
|
}
|
|
3758
|
-
function
|
|
3759
|
-
delete
|
|
3754
|
+
function Oi(e, ...t) {
|
|
3755
|
+
delete Be[e], St.update((n) => (n[e] = Xo.all([n[e] || {}, ...t]), n));
|
|
3760
3756
|
}
|
|
3761
|
-
|
|
3762
|
-
[
|
|
3757
|
+
ot(
|
|
3758
|
+
[St],
|
|
3763
3759
|
([e]) => Object.keys(e)
|
|
3764
3760
|
);
|
|
3765
|
-
|
|
3766
|
-
const
|
|
3767
|
-
function
|
|
3768
|
-
|
|
3761
|
+
St.subscribe((e) => Bn = e);
|
|
3762
|
+
const jt = {};
|
|
3763
|
+
function js(e, t) {
|
|
3764
|
+
jt[e].delete(t), jt[e].size === 0 && delete jt[e];
|
|
3769
3765
|
}
|
|
3770
3766
|
function Li(e) {
|
|
3771
|
-
return
|
|
3767
|
+
return jt[e];
|
|
3772
3768
|
}
|
|
3773
|
-
function
|
|
3774
|
-
return
|
|
3769
|
+
function zs(e) {
|
|
3770
|
+
return wt(e).map((t) => {
|
|
3775
3771
|
const n = Li(t);
|
|
3776
3772
|
return [t, n ? [...n] : []];
|
|
3777
3773
|
}).filter(([, t]) => t.length > 0);
|
|
3778
3774
|
}
|
|
3779
|
-
function
|
|
3780
|
-
return e == null ? !1 :
|
|
3775
|
+
function Yt(e) {
|
|
3776
|
+
return e == null ? !1 : wt(e).some(
|
|
3781
3777
|
(t) => {
|
|
3782
3778
|
var n;
|
|
3783
3779
|
return (n = Li(t)) == null ? void 0 : n.size;
|
|
3784
3780
|
}
|
|
3785
3781
|
);
|
|
3786
3782
|
}
|
|
3787
|
-
function
|
|
3783
|
+
function Ws(e, t) {
|
|
3788
3784
|
return Promise.all(
|
|
3789
|
-
t.map((r) => (
|
|
3790
|
-
).then((r) =>
|
|
3785
|
+
t.map((r) => (js(e, r), r().then((i) => i.default || i)))
|
|
3786
|
+
).then((r) => Oi(e, ...r));
|
|
3791
3787
|
}
|
|
3792
|
-
const
|
|
3788
|
+
const ft = {};
|
|
3793
3789
|
function Hi(e) {
|
|
3794
|
-
if (!
|
|
3795
|
-
return e in
|
|
3796
|
-
const t =
|
|
3797
|
-
return
|
|
3790
|
+
if (!Yt(e))
|
|
3791
|
+
return e in ft ? ft[e] : Promise.resolve();
|
|
3792
|
+
const t = zs(e);
|
|
3793
|
+
return ft[e] = Promise.all(
|
|
3798
3794
|
t.map(
|
|
3799
|
-
([n, r]) =>
|
|
3795
|
+
([n, r]) => Ws(n, r)
|
|
3800
3796
|
)
|
|
3801
3797
|
).then(() => {
|
|
3802
|
-
if (
|
|
3798
|
+
if (Yt(e))
|
|
3803
3799
|
return Hi(e);
|
|
3804
|
-
delete
|
|
3805
|
-
}),
|
|
3800
|
+
delete ft[e];
|
|
3801
|
+
}), ft[e];
|
|
3806
3802
|
}
|
|
3807
|
-
var Ar = Object.getOwnPropertySymbols,
|
|
3803
|
+
var Ar = Object.getOwnPropertySymbols, Vs = Object.prototype.hasOwnProperty, Xs = Object.prototype.propertyIsEnumerable, Ys = (e, t) => {
|
|
3808
3804
|
var n = {};
|
|
3809
3805
|
for (var r in e)
|
|
3810
|
-
|
|
3806
|
+
Vs.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3811
3807
|
if (e != null && Ar)
|
|
3812
3808
|
for (var r of Ar(e))
|
|
3813
|
-
t.indexOf(r) < 0 &&
|
|
3809
|
+
t.indexOf(r) < 0 && Xs.call(e, r) && (n[r] = e[r]);
|
|
3814
3810
|
return n;
|
|
3815
3811
|
};
|
|
3816
|
-
const
|
|
3812
|
+
const Zs = {
|
|
3817
3813
|
number: {
|
|
3818
3814
|
scientific: { notation: "scientific" },
|
|
3819
3815
|
engineering: { notation: "engineering" },
|
|
@@ -3843,28 +3839,28 @@ const qs = {
|
|
|
3843
3839
|
}
|
|
3844
3840
|
}
|
|
3845
3841
|
};
|
|
3846
|
-
function
|
|
3842
|
+
function qs({ locale: e, id: t }) {
|
|
3847
3843
|
console.warn(
|
|
3848
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3844
|
+
`[svelte-i18n] The message "${t}" was not found in "${wt(
|
|
3849
3845
|
e
|
|
3850
|
-
).join('", "')}".${
|
|
3846
|
+
).join('", "')}".${Yt(ke()) ? `
|
|
3851
3847
|
|
|
3852
3848
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3853
3849
|
);
|
|
3854
3850
|
}
|
|
3855
|
-
const
|
|
3851
|
+
const Js = {
|
|
3856
3852
|
fallbackLocale: null,
|
|
3857
3853
|
loadingDelay: 200,
|
|
3858
|
-
formats:
|
|
3854
|
+
formats: Zs,
|
|
3859
3855
|
warnOnMissingMessages: !0,
|
|
3860
3856
|
handleMissingMessage: void 0,
|
|
3861
3857
|
ignoreTag: !0
|
|
3862
|
-
},
|
|
3863
|
-
function
|
|
3864
|
-
return
|
|
3858
|
+
}, _t = Js;
|
|
3859
|
+
function it() {
|
|
3860
|
+
return _t;
|
|
3865
3861
|
}
|
|
3866
|
-
function
|
|
3867
|
-
const t = e, { formats: n } = t, r =
|
|
3862
|
+
function Qs(e) {
|
|
3863
|
+
const t = e, { formats: n } = t, r = Ys(t, ["formats"]);
|
|
3868
3864
|
let i = e.fallbackLocale;
|
|
3869
3865
|
if (e.initialLocale)
|
|
3870
3866
|
try {
|
|
@@ -3874,143 +3870,143 @@ function Ks(e) {
|
|
|
3874
3870
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3875
3871
|
);
|
|
3876
3872
|
}
|
|
3877
|
-
return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage =
|
|
3873
|
+
return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage = qs : console.warn(
|
|
3878
3874
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3879
|
-
)), Object.assign(
|
|
3875
|
+
)), Object.assign(_t, r, { initialLocale: i }), n && ("number" in n && Object.assign(_t.formats.number, n.number), "date" in n && Object.assign(_t.formats.date, n.date), "time" in n && Object.assign(_t.formats.time, n.time)), je.set(i);
|
|
3880
3876
|
}
|
|
3881
|
-
const
|
|
3882
|
-
var
|
|
3877
|
+
const pn = Tt(!1);
|
|
3878
|
+
var Ks = Object.defineProperty, ea = Object.defineProperties, ta = Object.getOwnPropertyDescriptors, Mr = Object.getOwnPropertySymbols, na = Object.prototype.hasOwnProperty, ra = Object.prototype.propertyIsEnumerable, Cr = (e, t, n) => t in e ? Ks(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ia = (e, t) => {
|
|
3883
3879
|
for (var n in t || (t = {}))
|
|
3884
|
-
|
|
3885
|
-
if (
|
|
3886
|
-
for (var n of
|
|
3887
|
-
|
|
3880
|
+
na.call(t, n) && Cr(e, n, t[n]);
|
|
3881
|
+
if (Mr)
|
|
3882
|
+
for (var n of Mr(t))
|
|
3883
|
+
ra.call(t, n) && Cr(e, n, t[n]);
|
|
3888
3884
|
return e;
|
|
3889
|
-
},
|
|
3890
|
-
let
|
|
3891
|
-
const
|
|
3892
|
-
function
|
|
3885
|
+
}, oa = (e, t) => ea(e, ta(t));
|
|
3886
|
+
let On;
|
|
3887
|
+
const Zt = Tt(null);
|
|
3888
|
+
function Or(e) {
|
|
3893
3889
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3894
3890
|
}
|
|
3895
|
-
function
|
|
3896
|
-
const n =
|
|
3897
|
-
return t ? [.../* @__PURE__ */ new Set([...n, ...
|
|
3891
|
+
function wt(e, t = it().fallbackLocale) {
|
|
3892
|
+
const n = Or(e);
|
|
3893
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...Or(t)])] : n;
|
|
3898
3894
|
}
|
|
3899
|
-
function
|
|
3900
|
-
return
|
|
3895
|
+
function ke() {
|
|
3896
|
+
return On != null ? On : void 0;
|
|
3901
3897
|
}
|
|
3902
|
-
|
|
3903
|
-
|
|
3898
|
+
Zt.subscribe((e) => {
|
|
3899
|
+
On = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3904
3900
|
});
|
|
3905
|
-
const
|
|
3906
|
-
if (e &&
|
|
3907
|
-
const { loadingDelay: t } =
|
|
3901
|
+
const sa = (e) => {
|
|
3902
|
+
if (e && Gs(e) && Yt(e)) {
|
|
3903
|
+
const { loadingDelay: t } = it();
|
|
3908
3904
|
let n;
|
|
3909
|
-
return typeof window != "undefined" &&
|
|
3910
|
-
() =>
|
|
3905
|
+
return typeof window != "undefined" && ke() != null && t ? n = window.setTimeout(
|
|
3906
|
+
() => pn.set(!0),
|
|
3911
3907
|
t
|
|
3912
|
-
) :
|
|
3913
|
-
|
|
3908
|
+
) : pn.set(!0), Hi(e).then(() => {
|
|
3909
|
+
Zt.set(e);
|
|
3914
3910
|
}).finally(() => {
|
|
3915
|
-
clearTimeout(n),
|
|
3911
|
+
clearTimeout(n), pn.set(!1);
|
|
3916
3912
|
});
|
|
3917
3913
|
}
|
|
3918
|
-
return
|
|
3919
|
-
},
|
|
3920
|
-
set:
|
|
3921
|
-
}),
|
|
3914
|
+
return Zt.set(e);
|
|
3915
|
+
}, je = oa(ia({}, Zt), {
|
|
3916
|
+
set: sa
|
|
3917
|
+
}), en = (e) => {
|
|
3922
3918
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3923
3919
|
return (r) => {
|
|
3924
3920
|
const i = JSON.stringify(r);
|
|
3925
3921
|
return i in t ? t[i] : t[i] = e(r);
|
|
3926
3922
|
};
|
|
3927
3923
|
};
|
|
3928
|
-
var
|
|
3924
|
+
var aa = Object.defineProperty, qt = Object.getOwnPropertySymbols, Ni = Object.prototype.hasOwnProperty, Ii = Object.prototype.propertyIsEnumerable, Lr = (e, t, n) => t in e ? aa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, $n = (e, t) => {
|
|
3929
3925
|
for (var n in t || (t = {}))
|
|
3930
3926
|
Ni.call(t, n) && Lr(e, n, t[n]);
|
|
3931
|
-
if (
|
|
3932
|
-
for (var n of
|
|
3927
|
+
if (qt)
|
|
3928
|
+
for (var n of qt(t))
|
|
3933
3929
|
Ii.call(t, n) && Lr(e, n, t[n]);
|
|
3934
3930
|
return e;
|
|
3935
|
-
},
|
|
3931
|
+
}, st = (e, t) => {
|
|
3936
3932
|
var n = {};
|
|
3937
3933
|
for (var r in e)
|
|
3938
3934
|
Ni.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3939
|
-
if (e != null &&
|
|
3940
|
-
for (var r of
|
|
3935
|
+
if (e != null && qt)
|
|
3936
|
+
for (var r of qt(e))
|
|
3941
3937
|
t.indexOf(r) < 0 && Ii.call(e, r) && (n[r] = e[r]);
|
|
3942
3938
|
return n;
|
|
3943
3939
|
};
|
|
3944
|
-
const
|
|
3945
|
-
const { formats: n } =
|
|
3940
|
+
const vt = (e, t) => {
|
|
3941
|
+
const { formats: n } = it();
|
|
3946
3942
|
if (e in n && t in n[e])
|
|
3947
3943
|
return n[e][t];
|
|
3948
3944
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3949
|
-
},
|
|
3945
|
+
}, la = en(
|
|
3950
3946
|
(e) => {
|
|
3951
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3947
|
+
var t = e, { locale: n, format: r } = t, i = st(t, ["locale", "format"]);
|
|
3952
3948
|
if (n == null)
|
|
3953
3949
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3954
|
-
return r && (i =
|
|
3950
|
+
return r && (i = vt("number", r)), new Intl.NumberFormat(n, i);
|
|
3955
3951
|
}
|
|
3956
|
-
),
|
|
3952
|
+
), ua = en(
|
|
3957
3953
|
(e) => {
|
|
3958
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3954
|
+
var t = e, { locale: n, format: r } = t, i = st(t, ["locale", "format"]);
|
|
3959
3955
|
if (n == null)
|
|
3960
3956
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3961
|
-
return r ? i =
|
|
3957
|
+
return r ? i = vt("date", r) : Object.keys(i).length === 0 && (i = vt("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3962
3958
|
}
|
|
3963
|
-
),
|
|
3959
|
+
), ca = en(
|
|
3964
3960
|
(e) => {
|
|
3965
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3961
|
+
var t = e, { locale: n, format: r } = t, i = st(t, ["locale", "format"]);
|
|
3966
3962
|
if (n == null)
|
|
3967
3963
|
throw new Error(
|
|
3968
3964
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3969
3965
|
);
|
|
3970
|
-
return r ? i =
|
|
3966
|
+
return r ? i = vt("time", r) : Object.keys(i).length === 0 && (i = vt("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3971
3967
|
}
|
|
3972
|
-
),
|
|
3968
|
+
), fa = (e = {}) => {
|
|
3973
3969
|
var t = e, {
|
|
3974
|
-
locale: n =
|
|
3975
|
-
} = t, r =
|
|
3970
|
+
locale: n = ke()
|
|
3971
|
+
} = t, r = st(t, [
|
|
3976
3972
|
"locale"
|
|
3977
3973
|
]);
|
|
3978
|
-
return
|
|
3979
|
-
},
|
|
3974
|
+
return la($n({ locale: n }, r));
|
|
3975
|
+
}, ha = (e = {}) => {
|
|
3980
3976
|
var t = e, {
|
|
3981
|
-
locale: n =
|
|
3982
|
-
} = t, r =
|
|
3977
|
+
locale: n = ke()
|
|
3978
|
+
} = t, r = st(t, [
|
|
3983
3979
|
"locale"
|
|
3984
3980
|
]);
|
|
3985
|
-
return
|
|
3986
|
-
},
|
|
3981
|
+
return ua($n({ locale: n }, r));
|
|
3982
|
+
}, ma = (e = {}) => {
|
|
3987
3983
|
var t = e, {
|
|
3988
|
-
locale: n =
|
|
3989
|
-
} = t, r =
|
|
3984
|
+
locale: n = ke()
|
|
3985
|
+
} = t, r = st(t, [
|
|
3990
3986
|
"locale"
|
|
3991
3987
|
]);
|
|
3992
|
-
return
|
|
3993
|
-
}, da =
|
|
3988
|
+
return ca($n({ locale: n }, r));
|
|
3989
|
+
}, da = en(
|
|
3994
3990
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3995
|
-
(e, t =
|
|
3996
|
-
ignoreTag:
|
|
3991
|
+
(e, t = ke()) => new Ai(e, t, it().formats, {
|
|
3992
|
+
ignoreTag: it().ignoreTag
|
|
3997
3993
|
})
|
|
3998
|
-
),
|
|
3994
|
+
), pa = (e, t = {}) => {
|
|
3999
3995
|
var n, r, i, o;
|
|
4000
3996
|
let l = t;
|
|
4001
3997
|
typeof e == "object" && (l = e, e = l.id);
|
|
4002
3998
|
const {
|
|
4003
3999
|
values: a,
|
|
4004
|
-
locale: c =
|
|
4000
|
+
locale: c = ke(),
|
|
4005
4001
|
default: u
|
|
4006
4002
|
} = l;
|
|
4007
4003
|
if (c == null)
|
|
4008
4004
|
throw new Error(
|
|
4009
4005
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4010
4006
|
);
|
|
4011
|
-
let f =
|
|
4007
|
+
let f = Mi(e, c);
|
|
4012
4008
|
if (!f)
|
|
4013
|
-
f = (o = (i = (r = (n =
|
|
4009
|
+
f = (o = (i = (r = (n = it()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4014
4010
|
else if (typeof f != "string")
|
|
4015
4011
|
return console.warn(
|
|
4016
4012
|
`[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.`
|
|
@@ -4027,18 +4023,18 @@ const Tt = (e, t) => {
|
|
|
4027
4023
|
);
|
|
4028
4024
|
}
|
|
4029
4025
|
return m;
|
|
4030
|
-
},
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4026
|
+
}, ga = (e, t) => ma(t).format(e), _a = (e, t) => ha(t).format(e), ba = (e, t) => fa(t).format(e), Ea = (e, t = ke()) => Mi(e, t), ya = ot([je, St], () => pa);
|
|
4027
|
+
ot([je], () => ga);
|
|
4028
|
+
ot([je], () => _a);
|
|
4029
|
+
ot([je], () => ba);
|
|
4030
|
+
ot([je, St], () => Ea);
|
|
4035
4031
|
function Hr(e, t) {
|
|
4036
|
-
|
|
4032
|
+
Oi(e, t);
|
|
4037
4033
|
}
|
|
4038
|
-
function
|
|
4039
|
-
|
|
4034
|
+
function xa(e) {
|
|
4035
|
+
Qs({
|
|
4040
4036
|
fallbackLocale: "en"
|
|
4041
|
-
}),
|
|
4037
|
+
}), je.set(e);
|
|
4042
4038
|
}
|
|
4043
4039
|
const Nr = {
|
|
4044
4040
|
en: {
|
|
@@ -4062,17 +4058,17 @@ const Nr = {
|
|
|
4062
4058
|
const {
|
|
4063
4059
|
entries: Pi,
|
|
4064
4060
|
setPrototypeOf: Ir,
|
|
4065
|
-
isFrozen:
|
|
4066
|
-
getPrototypeOf:
|
|
4067
|
-
getOwnPropertyDescriptor:
|
|
4061
|
+
isFrozen: va,
|
|
4062
|
+
getPrototypeOf: Ta,
|
|
4063
|
+
getOwnPropertyDescriptor: Sa
|
|
4068
4064
|
} = Object;
|
|
4069
4065
|
let {
|
|
4070
4066
|
freeze: _e,
|
|
4071
4067
|
seal: Te,
|
|
4072
4068
|
create: Ri
|
|
4073
4069
|
} = Object, {
|
|
4074
|
-
apply:
|
|
4075
|
-
construct:
|
|
4070
|
+
apply: Ln,
|
|
4071
|
+
construct: Hn
|
|
4076
4072
|
} = typeof Reflect != "undefined" && Reflect;
|
|
4077
4073
|
_e || (_e = function(t) {
|
|
4078
4074
|
return t;
|
|
@@ -4080,36 +4076,36 @@ _e || (_e = function(t) {
|
|
|
4080
4076
|
Te || (Te = function(t) {
|
|
4081
4077
|
return t;
|
|
4082
4078
|
});
|
|
4083
|
-
|
|
4079
|
+
Ln || (Ln = function(t, n, r) {
|
|
4084
4080
|
return t.apply(n, r);
|
|
4085
4081
|
});
|
|
4086
|
-
|
|
4082
|
+
Hn || (Hn = function(t, n) {
|
|
4087
4083
|
return new t(...n);
|
|
4088
4084
|
});
|
|
4089
|
-
const
|
|
4085
|
+
const Pt = xe(Array.prototype.forEach), Pr = xe(Array.prototype.pop), ht = xe(Array.prototype.push), zt = xe(String.prototype.toLowerCase), gn = xe(String.prototype.toString), Rr = xe(String.prototype.match), mt = xe(String.prototype.replace), wa = xe(String.prototype.indexOf), Aa = xe(String.prototype.trim), we = xe(Object.prototype.hasOwnProperty), de = xe(RegExp.prototype.test), dt = Ma(TypeError);
|
|
4090
4086
|
function xe(e) {
|
|
4091
4087
|
return function(t) {
|
|
4092
4088
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
|
|
4093
4089
|
r[i - 1] = arguments[i];
|
|
4094
|
-
return
|
|
4090
|
+
return Ln(e, t, r);
|
|
4095
4091
|
};
|
|
4096
4092
|
}
|
|
4097
4093
|
function Ma(e) {
|
|
4098
4094
|
return function() {
|
|
4099
4095
|
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
4100
4096
|
n[r] = arguments[r];
|
|
4101
|
-
return
|
|
4097
|
+
return Hn(e, n);
|
|
4102
4098
|
};
|
|
4103
4099
|
}
|
|
4104
4100
|
function $(e, t) {
|
|
4105
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
4101
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : zt;
|
|
4106
4102
|
Ir && Ir(e, null);
|
|
4107
4103
|
let r = t.length;
|
|
4108
4104
|
for (; r--; ) {
|
|
4109
4105
|
let i = t[r];
|
|
4110
4106
|
if (typeof i == "string") {
|
|
4111
4107
|
const o = n(i);
|
|
4112
|
-
o !== i && (
|
|
4108
|
+
o !== i && (va(t) || (t[r] = o), i = o);
|
|
4113
4109
|
}
|
|
4114
4110
|
e[i] = !0;
|
|
4115
4111
|
}
|
|
@@ -4120,58 +4116,67 @@ function Ca(e) {
|
|
|
4120
4116
|
we(e, t) || (e[t] = null);
|
|
4121
4117
|
return e;
|
|
4122
4118
|
}
|
|
4123
|
-
function
|
|
4119
|
+
function Fe(e) {
|
|
4124
4120
|
const t = Ri(null);
|
|
4125
4121
|
for (const [n, r] of Pi(e))
|
|
4126
|
-
we(e, n) && (Array.isArray(r) ? t[n] = Ca(r) : r && typeof r == "object" && r.constructor === Object ? t[n] =
|
|
4122
|
+
we(e, n) && (Array.isArray(r) ? t[n] = Ca(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = Fe(r) : t[n] = r);
|
|
4127
4123
|
return t;
|
|
4128
4124
|
}
|
|
4129
|
-
function
|
|
4125
|
+
function pt(e, t) {
|
|
4130
4126
|
for (; e !== null; ) {
|
|
4131
|
-
const r =
|
|
4127
|
+
const r = Sa(e, t);
|
|
4132
4128
|
if (r) {
|
|
4133
4129
|
if (r.get)
|
|
4134
4130
|
return xe(r.get);
|
|
4135
4131
|
if (typeof r.value == "function")
|
|
4136
4132
|
return xe(r.value);
|
|
4137
4133
|
}
|
|
4138
|
-
e =
|
|
4134
|
+
e = Ta(e);
|
|
4139
4135
|
}
|
|
4140
4136
|
function n() {
|
|
4141
4137
|
return null;
|
|
4142
4138
|
}
|
|
4143
4139
|
return n;
|
|
4144
4140
|
}
|
|
4145
|
-
const Dr = _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"]),
|
|
4141
|
+
const Dr = _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"]), _n = _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"]), bn = _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"]), Oa = _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"]), En = _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"]), La = _e(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Br = _e(["#text"]), $r = _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"]), yn = _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"]), Ur = _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"]), Rt = _e(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Ha = Te(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Na = Te(/<%[\w\W]*|[\w\W]*%>/gm), Ia = Te(/\${[\w\W]*}/gm), Pa = Te(/^data-[\-\w.\u00B7-\uFFFF]/), Ra = Te(/^aria-[\-\w]+$/), Di = Te(
|
|
4146
4142
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
4147
4143
|
// eslint-disable-line no-useless-escape
|
|
4148
|
-
),
|
|
4144
|
+
), Da = Te(/^(?:\w+script|data):/i), Ba = Te(
|
|
4149
4145
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
4150
4146
|
// eslint-disable-line no-control-regex
|
|
4151
|
-
), Bi = Te(/^html$/i),
|
|
4147
|
+
), Bi = Te(/^html$/i), $a = Te(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
4152
4148
|
var kr = /* @__PURE__ */ Object.freeze({
|
|
4153
4149
|
__proto__: null,
|
|
4154
|
-
MUSTACHE_EXPR:
|
|
4155
|
-
ERB_EXPR:
|
|
4156
|
-
TMPLIT_EXPR:
|
|
4157
|
-
DATA_ATTR:
|
|
4158
|
-
ARIA_ATTR:
|
|
4150
|
+
MUSTACHE_EXPR: Ha,
|
|
4151
|
+
ERB_EXPR: Na,
|
|
4152
|
+
TMPLIT_EXPR: Ia,
|
|
4153
|
+
DATA_ATTR: Pa,
|
|
4154
|
+
ARIA_ATTR: Ra,
|
|
4159
4155
|
IS_ALLOWED_URI: Di,
|
|
4160
|
-
IS_SCRIPT_OR_DATA:
|
|
4161
|
-
ATTR_WHITESPACE:
|
|
4156
|
+
IS_SCRIPT_OR_DATA: Da,
|
|
4157
|
+
ATTR_WHITESPACE: Ba,
|
|
4162
4158
|
DOCTYPE_NAME: Bi,
|
|
4163
|
-
CUSTOM_ELEMENT:
|
|
4159
|
+
CUSTOM_ELEMENT: $a
|
|
4164
4160
|
});
|
|
4165
|
-
const
|
|
4161
|
+
const gt = {
|
|
4166
4162
|
element: 1,
|
|
4163
|
+
attribute: 2,
|
|
4167
4164
|
text: 3,
|
|
4165
|
+
cdataSection: 4,
|
|
4166
|
+
entityReference: 5,
|
|
4167
|
+
// Deprecated
|
|
4168
|
+
entityNode: 6,
|
|
4168
4169
|
// Deprecated
|
|
4169
4170
|
progressingInstruction: 7,
|
|
4170
4171
|
comment: 8,
|
|
4171
|
-
document: 9
|
|
4172
|
-
|
|
4172
|
+
document: 9,
|
|
4173
|
+
documentType: 10,
|
|
4174
|
+
documentFragment: 11,
|
|
4175
|
+
notation: 12
|
|
4176
|
+
// Deprecated
|
|
4177
|
+
}, Ua = function() {
|
|
4173
4178
|
return typeof window == "undefined" ? null : window;
|
|
4174
|
-
},
|
|
4179
|
+
}, ka = function(t, n) {
|
|
4175
4180
|
if (typeof t != "object" || typeof t.createPolicy != "function")
|
|
4176
4181
|
return null;
|
|
4177
4182
|
let r = null;
|
|
@@ -4192,9 +4197,9 @@ const _t = {
|
|
|
4192
4197
|
}
|
|
4193
4198
|
};
|
|
4194
4199
|
function $i() {
|
|
4195
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
4200
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ua();
|
|
4196
4201
|
const t = (S) => $i(S);
|
|
4197
|
-
if (t.version = "3.1.6", t.removed = [], !e || !e.document || e.document.nodeType !==
|
|
4202
|
+
if (t.version = "3.1.6", t.removed = [], !e || !e.document || e.document.nodeType !== gt.document)
|
|
4198
4203
|
return t.isSupported = !1, t;
|
|
4199
4204
|
let {
|
|
4200
4205
|
document: n
|
|
@@ -4209,26 +4214,26 @@ function $i() {
|
|
|
4209
4214
|
HTMLFormElement: m,
|
|
4210
4215
|
DOMParser: y,
|
|
4211
4216
|
trustedTypes: A
|
|
4212
|
-
} = e, x = c.prototype, g =
|
|
4217
|
+
} = e, x = c.prototype, g = pt(x, "cloneNode"), N = pt(x, "remove"), U = pt(x, "nextSibling"), X = pt(x, "childNodes"), R = pt(x, "parentNode");
|
|
4213
4218
|
if (typeof l == "function") {
|
|
4214
4219
|
const S = n.createElement("template");
|
|
4215
4220
|
S.content && S.content.ownerDocument && (n = S.content.ownerDocument);
|
|
4216
4221
|
}
|
|
4217
4222
|
let H, I = "";
|
|
4218
4223
|
const {
|
|
4219
|
-
implementation:
|
|
4224
|
+
implementation: V,
|
|
4220
4225
|
createNodeIterator: oe,
|
|
4221
4226
|
createDocumentFragment: fe,
|
|
4222
|
-
getElementsByTagName:
|
|
4227
|
+
getElementsByTagName: ee
|
|
4223
4228
|
} = n, {
|
|
4224
|
-
importNode:
|
|
4229
|
+
importNode: z
|
|
4225
4230
|
} = r;
|
|
4226
|
-
let
|
|
4227
|
-
t.isSupported = typeof Pi == "function" && typeof R == "function" &&
|
|
4231
|
+
let O = {};
|
|
4232
|
+
t.isSupported = typeof Pi == "function" && typeof R == "function" && V && V.createHTMLDocument !== void 0;
|
|
4228
4233
|
const {
|
|
4229
4234
|
MUSTACHE_EXPR: se,
|
|
4230
4235
|
ERB_EXPR: Ee,
|
|
4231
|
-
TMPLIT_EXPR:
|
|
4236
|
+
TMPLIT_EXPR: C,
|
|
4232
4237
|
DATA_ATTR: _,
|
|
4233
4238
|
ARIA_ATTR: h,
|
|
4234
4239
|
IS_SCRIPT_OR_DATA: E,
|
|
@@ -4236,11 +4241,11 @@ function $i() {
|
|
|
4236
4241
|
CUSTOM_ELEMENT: L
|
|
4237
4242
|
} = kr;
|
|
4238
4243
|
let {
|
|
4239
|
-
IS_ALLOWED_URI:
|
|
4244
|
+
IS_ALLOWED_URI: M
|
|
4240
4245
|
} = kr, v = null;
|
|
4241
|
-
const
|
|
4246
|
+
const W = $({}, [...Dr, ..._n, ...bn, ...En, ...Br]);
|
|
4242
4247
|
let P = null;
|
|
4243
|
-
const
|
|
4248
|
+
const J = $({}, [...$r, ...yn, ...Ur, ...Rt]);
|
|
4244
4249
|
let D = Object.seal(Ri(null, {
|
|
4245
4250
|
tagNameCheck: {
|
|
4246
4251
|
writable: !0,
|
|
@@ -4260,113 +4265,113 @@ function $i() {
|
|
|
4260
4265
|
enumerable: !0,
|
|
4261
4266
|
value: !1
|
|
4262
4267
|
}
|
|
4263
|
-
})),
|
|
4268
|
+
})), p = null, k = null, Y = !0, Z = !0, re = !1, te = !0, he = !1, le = !0, Me = !1, Q = !1, ie = !1, Ce = !1, At = !1, Mt = !1, Un = !0, kn = !1;
|
|
4264
4269
|
const Fi = "user-content-";
|
|
4265
|
-
let
|
|
4270
|
+
let tn = !0, at = !1, ze = {}, We = null;
|
|
4266
4271
|
const Fn = $({}, ["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"]);
|
|
4267
4272
|
let Gn = null;
|
|
4268
4273
|
const jn = $({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
4269
|
-
let
|
|
4270
|
-
const zn = $({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Ct = "http://www.w3.org/1998/Math/MathML",
|
|
4271
|
-
let
|
|
4272
|
-
const Gi = $({}, [Ct,
|
|
4273
|
-
let
|
|
4274
|
+
let nn = null;
|
|
4275
|
+
const zn = $({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Ct = "http://www.w3.org/1998/Math/MathML", Ot = "http://www.w3.org/2000/svg", Ne = "http://www.w3.org/1999/xhtml";
|
|
4276
|
+
let Ve = Ne, rn = !1, on = null;
|
|
4277
|
+
const Gi = $({}, [Ct, Ot, Ne], gn);
|
|
4278
|
+
let lt = null;
|
|
4274
4279
|
const ji = ["application/xhtml+xml", "text/html"], zi = "text/html";
|
|
4275
|
-
let ae = null,
|
|
4280
|
+
let ae = null, Xe = null;
|
|
4276
4281
|
const Wi = n.createElement("form"), Wn = function(s) {
|
|
4277
4282
|
return s instanceof RegExp || s instanceof Function;
|
|
4278
|
-
},
|
|
4283
|
+
}, sn = function() {
|
|
4279
4284
|
let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4280
|
-
if (!(
|
|
4281
|
-
if ((!s || typeof s != "object") && (s = {}), s =
|
|
4282
|
-
ji.indexOf(s.PARSER_MEDIA_TYPE) === -1 ? zi : s.PARSER_MEDIA_TYPE, ae =
|
|
4283
|
-
|
|
4285
|
+
if (!(Xe && Xe === s)) {
|
|
4286
|
+
if ((!s || typeof s != "object") && (s = {}), s = Fe(s), lt = // eslint-disable-next-line unicorn/prefer-includes
|
|
4287
|
+
ji.indexOf(s.PARSER_MEDIA_TYPE) === -1 ? zi : s.PARSER_MEDIA_TYPE, ae = lt === "application/xhtml+xml" ? gn : zt, v = we(s, "ALLOWED_TAGS") ? $({}, s.ALLOWED_TAGS, ae) : W, P = we(s, "ALLOWED_ATTR") ? $({}, s.ALLOWED_ATTR, ae) : J, on = we(s, "ALLOWED_NAMESPACES") ? $({}, s.ALLOWED_NAMESPACES, gn) : Gi, nn = we(s, "ADD_URI_SAFE_ATTR") ? $(
|
|
4288
|
+
Fe(zn),
|
|
4284
4289
|
// eslint-disable-line indent
|
|
4285
4290
|
s.ADD_URI_SAFE_ATTR,
|
|
4286
4291
|
// eslint-disable-line indent
|
|
4287
4292
|
ae
|
|
4288
4293
|
// eslint-disable-line indent
|
|
4289
4294
|
) : zn, Gn = we(s, "ADD_DATA_URI_TAGS") ? $(
|
|
4290
|
-
|
|
4295
|
+
Fe(jn),
|
|
4291
4296
|
// eslint-disable-line indent
|
|
4292
4297
|
s.ADD_DATA_URI_TAGS,
|
|
4293
4298
|
// eslint-disable-line indent
|
|
4294
4299
|
ae
|
|
4295
4300
|
// eslint-disable-line indent
|
|
4296
|
-
) : jn,
|
|
4301
|
+
) : jn, We = we(s, "FORBID_CONTENTS") ? $({}, s.FORBID_CONTENTS, ae) : Fn, p = we(s, "FORBID_TAGS") ? $({}, s.FORBID_TAGS, ae) : {}, k = we(s, "FORBID_ATTR") ? $({}, s.FORBID_ATTR, ae) : {}, ze = we(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, Me = s.WHOLE_DOCUMENT || !1, Ce = s.RETURN_DOM || !1, At = s.RETURN_DOM_FRAGMENT || !1, Mt = s.RETURN_TRUSTED_TYPE || !1, ie = s.FORCE_BODY || !1, Un = s.SANITIZE_DOM !== !1, kn = s.SANITIZE_NAMED_PROPS || !1, tn = s.KEEP_CONTENT !== !1, at = s.IN_PLACE || !1, M = s.ALLOWED_URI_REGEXP || Di, Ve = s.NAMESPACE || Ne, D = s.CUSTOM_ELEMENT_HANDLING || {}, s.CUSTOM_ELEMENT_HANDLING && Wn(s.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (D.tagNameCheck = s.CUSTOM_ELEMENT_HANDLING.tagNameCheck), s.CUSTOM_ELEMENT_HANDLING && Wn(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), At && (Ce = !0), ze && (v = $({}, Br), P = [], ze.html === !0 && ($(v, Dr), $(P, $r)), ze.svg === !0 && ($(v, _n), $(P, yn), $(P, Rt)), ze.svgFilters === !0 && ($(v, bn), $(P, yn), $(P, Rt)), ze.mathMl === !0 && ($(v, En), $(P, Ur), $(P, Rt))), s.ADD_TAGS && (v === W && (v = Fe(v)), $(v, s.ADD_TAGS, ae)), s.ADD_ATTR && (P === J && (P = Fe(P)), $(P, s.ADD_ATTR, ae)), s.ADD_URI_SAFE_ATTR && $(nn, s.ADD_URI_SAFE_ATTR, ae), s.FORBID_CONTENTS && (We === Fn && (We = Fe(We)), $(We, s.FORBID_CONTENTS, ae)), tn && (v["#text"] = !0), Me && $(v, ["html", "head", "body"]), v.table && ($(v, ["tbody"]), delete p.tbody), s.TRUSTED_TYPES_POLICY) {
|
|
4297
4302
|
if (typeof s.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
4298
4303
|
throw dt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
4299
4304
|
if (typeof s.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
4300
4305
|
throw dt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
4301
4306
|
H = s.TRUSTED_TYPES_POLICY, I = H.createHTML("");
|
|
4302
4307
|
} else
|
|
4303
|
-
H === void 0 && (H =
|
|
4304
|
-
_e && _e(s),
|
|
4308
|
+
H === void 0 && (H = ka(A, i)), H !== null && typeof I == "string" && (I = H.createHTML(""));
|
|
4309
|
+
_e && _e(s), Xe = s;
|
|
4305
4310
|
}
|
|
4306
|
-
}, Vn = $({}, ["mi", "mo", "mn", "ms", "mtext"]), Xn = $({}, ["foreignobject", "annotation-xml"]), Vi = $({}, ["title", "style", "font", "a", "script"]), Yn = $({}, [...
|
|
4307
|
-
let
|
|
4308
|
-
(!
|
|
4309
|
-
namespaceURI:
|
|
4311
|
+
}, Vn = $({}, ["mi", "mo", "mn", "ms", "mtext"]), Xn = $({}, ["foreignobject", "annotation-xml"]), Vi = $({}, ["title", "style", "font", "a", "script"]), Yn = $({}, [..._n, ...bn, ...Oa]), Zn = $({}, [...En, ...La]), Xi = function(s) {
|
|
4312
|
+
let d = R(s);
|
|
4313
|
+
(!d || !d.tagName) && (d = {
|
|
4314
|
+
namespaceURI: Ve,
|
|
4310
4315
|
tagName: "template"
|
|
4311
4316
|
});
|
|
4312
|
-
const T =
|
|
4313
|
-
return
|
|
4314
|
-
},
|
|
4315
|
-
|
|
4317
|
+
const T = zt(s.tagName), q = zt(d.tagName);
|
|
4318
|
+
return on[s.namespaceURI] ? s.namespaceURI === Ot ? d.namespaceURI === Ne ? T === "svg" : d.namespaceURI === Ct ? T === "svg" && (q === "annotation-xml" || Vn[q]) : !!Yn[T] : s.namespaceURI === Ct ? d.namespaceURI === Ne ? T === "math" : d.namespaceURI === Ot ? T === "math" && Xn[q] : !!Zn[T] : s.namespaceURI === Ne ? d.namespaceURI === Ot && !Xn[q] || d.namespaceURI === Ct && !Vn[q] ? !1 : !Zn[T] && (Vi[T] || !Yn[T]) : !!(lt === "application/xhtml+xml" && on[s.namespaceURI]) : !1;
|
|
4319
|
+
}, Oe = function(s) {
|
|
4320
|
+
ht(t.removed, {
|
|
4316
4321
|
element: s
|
|
4317
4322
|
});
|
|
4318
4323
|
try {
|
|
4319
4324
|
R(s).removeChild(s);
|
|
4320
|
-
} catch (
|
|
4325
|
+
} catch (d) {
|
|
4321
4326
|
N(s);
|
|
4322
4327
|
}
|
|
4323
|
-
},
|
|
4328
|
+
}, Lt = function(s, d) {
|
|
4324
4329
|
try {
|
|
4325
|
-
|
|
4326
|
-
attribute:
|
|
4327
|
-
from:
|
|
4330
|
+
ht(t.removed, {
|
|
4331
|
+
attribute: d.getAttributeNode(s),
|
|
4332
|
+
from: d
|
|
4328
4333
|
});
|
|
4329
4334
|
} catch (T) {
|
|
4330
|
-
|
|
4335
|
+
ht(t.removed, {
|
|
4331
4336
|
attribute: null,
|
|
4332
|
-
from:
|
|
4337
|
+
from: d
|
|
4333
4338
|
});
|
|
4334
4339
|
}
|
|
4335
|
-
if (
|
|
4336
|
-
if (
|
|
4340
|
+
if (d.removeAttribute(s), s === "is" && !P[s])
|
|
4341
|
+
if (Ce || At)
|
|
4337
4342
|
try {
|
|
4338
|
-
|
|
4343
|
+
Oe(d);
|
|
4339
4344
|
} catch (T) {
|
|
4340
4345
|
}
|
|
4341
4346
|
else
|
|
4342
4347
|
try {
|
|
4343
|
-
|
|
4348
|
+
d.setAttribute(s, "");
|
|
4344
4349
|
} catch (T) {
|
|
4345
4350
|
}
|
|
4346
4351
|
}, qn = function(s) {
|
|
4347
|
-
let
|
|
4348
|
-
if (
|
|
4352
|
+
let d = null, T = null;
|
|
4353
|
+
if (ie)
|
|
4349
4354
|
s = "<remove></remove>" + s;
|
|
4350
4355
|
else {
|
|
4351
4356
|
const ue = Rr(s, /^[\r\n\t ]+/);
|
|
4352
4357
|
T = ue && ue[0];
|
|
4353
4358
|
}
|
|
4354
|
-
|
|
4355
|
-
const
|
|
4356
|
-
if (
|
|
4359
|
+
lt === "application/xhtml+xml" && Ve === Ne && (s = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + s + "</body></html>");
|
|
4360
|
+
const q = H ? H.createHTML(s) : s;
|
|
4361
|
+
if (Ve === Ne)
|
|
4357
4362
|
try {
|
|
4358
|
-
|
|
4363
|
+
d = new y().parseFromString(q, lt);
|
|
4359
4364
|
} catch (ue) {
|
|
4360
4365
|
}
|
|
4361
|
-
if (!
|
|
4362
|
-
|
|
4366
|
+
if (!d || !d.documentElement) {
|
|
4367
|
+
d = V.createDocument(Ve, "template", null);
|
|
4363
4368
|
try {
|
|
4364
|
-
|
|
4369
|
+
d.documentElement.innerHTML = rn ? I : q;
|
|
4365
4370
|
} catch (ue) {
|
|
4366
4371
|
}
|
|
4367
4372
|
}
|
|
4368
|
-
const ce =
|
|
4369
|
-
return s && T && ce.insertBefore(n.createTextNode(T), ce.childNodes[0] || null),
|
|
4373
|
+
const ce = d.body || d.documentElement;
|
|
4374
|
+
return s && T && ce.insertBefore(n.createTextNode(T), ce.childNodes[0] || null), Ve === Ne ? ee.call(d, Me ? "html" : "body")[0] : Me ? d.documentElement : ce;
|
|
4370
4375
|
}, Jn = function(s) {
|
|
4371
4376
|
return oe.call(
|
|
4372
4377
|
s.ownerDocument || s,
|
|
@@ -4379,59 +4384,59 @@ function $i() {
|
|
|
4379
4384
|
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");
|
|
4380
4385
|
}, Kn = function(s) {
|
|
4381
4386
|
return typeof a == "function" && s instanceof a;
|
|
4382
|
-
},
|
|
4383
|
-
|
|
4384
|
-
|
|
4387
|
+
}, Ie = function(s, d, T) {
|
|
4388
|
+
O[s] && Pt(O[s], (q) => {
|
|
4389
|
+
q.call(t, d, T, Xe);
|
|
4385
4390
|
});
|
|
4386
4391
|
}, er = function(s) {
|
|
4387
|
-
let
|
|
4388
|
-
if (
|
|
4389
|
-
return
|
|
4392
|
+
let d = null;
|
|
4393
|
+
if (Ie("beforeSanitizeElements", s, null), Qn(s))
|
|
4394
|
+
return Oe(s), !0;
|
|
4390
4395
|
const T = ae(s.nodeName);
|
|
4391
|
-
if (
|
|
4396
|
+
if (Ie("uponSanitizeElement", s, {
|
|
4392
4397
|
tagName: T,
|
|
4393
4398
|
allowedTags: v
|
|
4394
|
-
}), s.hasChildNodes() && !Kn(s.firstElementChild) &&
|
|
4395
|
-
return
|
|
4396
|
-
if (!v[T] ||
|
|
4397
|
-
if (!
|
|
4399
|
+
}), s.hasChildNodes() && !Kn(s.firstElementChild) && de(/<[/\w]/g, s.innerHTML) && de(/<[/\w]/g, s.textContent) || s.nodeType === gt.progressingInstruction || le && s.nodeType === gt.comment && de(/<[/\w]/g, s.data))
|
|
4400
|
+
return Oe(s), !0;
|
|
4401
|
+
if (!v[T] || p[T]) {
|
|
4402
|
+
if (!p[T] && nr(T) && (D.tagNameCheck instanceof RegExp && de(D.tagNameCheck, T) || D.tagNameCheck instanceof Function && D.tagNameCheck(T)))
|
|
4398
4403
|
return !1;
|
|
4399
|
-
if (
|
|
4400
|
-
const
|
|
4401
|
-
if (ce &&
|
|
4404
|
+
if (tn && !We[T]) {
|
|
4405
|
+
const q = R(s) || s.parentNode, ce = X(s) || s.childNodes;
|
|
4406
|
+
if (ce && q) {
|
|
4402
4407
|
const ue = ce.length;
|
|
4403
4408
|
for (let be = ue - 1; be >= 0; --be) {
|
|
4404
4409
|
const Le = g(ce[be], !0);
|
|
4405
|
-
Le.__removalCount = (s.__removalCount || 0) + 1,
|
|
4410
|
+
Le.__removalCount = (s.__removalCount || 0) + 1, q.insertBefore(Le, U(s));
|
|
4406
4411
|
}
|
|
4407
4412
|
}
|
|
4408
4413
|
}
|
|
4409
|
-
return
|
|
4414
|
+
return Oe(s), !0;
|
|
4410
4415
|
}
|
|
4411
|
-
return s instanceof c && !Xi(s) || (T === "noscript" || T === "noembed" || T === "noframes") &&
|
|
4412
|
-
|
|
4413
|
-
}), s.textContent !==
|
|
4416
|
+
return s instanceof c && !Xi(s) || (T === "noscript" || T === "noembed" || T === "noframes") && de(/<\/no(script|embed|frames)/i, s.innerHTML) ? (Oe(s), !0) : (he && s.nodeType === gt.text && (d = s.textContent, Pt([se, Ee, C], (q) => {
|
|
4417
|
+
d = mt(d, q, " ");
|
|
4418
|
+
}), s.textContent !== d && (ht(t.removed, {
|
|
4414
4419
|
element: s.cloneNode()
|
|
4415
|
-
}), s.textContent =
|
|
4416
|
-
}, tr = function(s,
|
|
4417
|
-
if (Un && (
|
|
4420
|
+
}), s.textContent = d)), Ie("afterSanitizeElements", s, null), !1);
|
|
4421
|
+
}, tr = function(s, d, T) {
|
|
4422
|
+
if (Un && (d === "id" || d === "name") && (T in n || T in Wi))
|
|
4418
4423
|
return !1;
|
|
4419
|
-
if (!(
|
|
4420
|
-
if (!(
|
|
4421
|
-
if (!P[
|
|
4424
|
+
if (!(Z && !k[d] && de(_, d))) {
|
|
4425
|
+
if (!(Y && de(h, d))) {
|
|
4426
|
+
if (!P[d] || k[d]) {
|
|
4422
4427
|
if (
|
|
4423
4428
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
4424
4429
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4425
4430
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
4426
|
-
!(nr(s) && (D.tagNameCheck instanceof RegExp &&
|
|
4431
|
+
!(nr(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
|
|
4427
4432
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4428
|
-
|
|
4433
|
+
d === "is" && D.allowCustomizedBuiltInElements && (D.tagNameCheck instanceof RegExp && de(D.tagNameCheck, T) || D.tagNameCheck instanceof Function && D.tagNameCheck(T)))
|
|
4429
4434
|
)
|
|
4430
4435
|
return !1;
|
|
4431
|
-
} else if (!
|
|
4432
|
-
if (!
|
|
4433
|
-
if (!((
|
|
4434
|
-
if (!(
|
|
4436
|
+
} else if (!nn[d]) {
|
|
4437
|
+
if (!de(M, mt(T, b, ""))) {
|
|
4438
|
+
if (!((d === "src" || d === "xlink:href" || d === "href") && s !== "script" && wa(T, "data:") === 0 && Gn[s])) {
|
|
4439
|
+
if (!(re && !de(E, mt(T, b, "")))) {
|
|
4435
4440
|
if (T)
|
|
4436
4441
|
return !1;
|
|
4437
4442
|
}
|
|
@@ -4444,11 +4449,11 @@ function $i() {
|
|
|
4444
4449
|
}, nr = function(s) {
|
|
4445
4450
|
return s !== "annotation-xml" && Rr(s, L);
|
|
4446
4451
|
}, rr = function(s) {
|
|
4447
|
-
|
|
4452
|
+
Ie("beforeSanitizeAttributes", s, null);
|
|
4448
4453
|
const {
|
|
4449
|
-
attributes:
|
|
4454
|
+
attributes: d
|
|
4450
4455
|
} = s;
|
|
4451
|
-
if (!
|
|
4456
|
+
if (!d)
|
|
4452
4457
|
return;
|
|
4453
4458
|
const T = {
|
|
4454
4459
|
attrName: "",
|
|
@@ -4456,31 +4461,31 @@ function $i() {
|
|
|
4456
4461
|
keepAttr: !0,
|
|
4457
4462
|
allowedAttributes: P
|
|
4458
4463
|
};
|
|
4459
|
-
let
|
|
4460
|
-
for (;
|
|
4461
|
-
const ce =
|
|
4464
|
+
let q = d.length;
|
|
4465
|
+
for (; q--; ) {
|
|
4466
|
+
const ce = d[q], {
|
|
4462
4467
|
name: ue,
|
|
4463
4468
|
namespaceURI: be,
|
|
4464
4469
|
value: Le
|
|
4465
|
-
} = ce,
|
|
4466
|
-
let me = ue === "value" ? Le :
|
|
4467
|
-
if (T.attrName =
|
|
4468
|
-
|
|
4470
|
+
} = ce, ut = ae(ue);
|
|
4471
|
+
let me = ue === "value" ? Le : Aa(Le);
|
|
4472
|
+
if (T.attrName = ut, T.attrValue = me, T.keepAttr = !0, T.forceKeepAttr = void 0, Ie("uponSanitizeAttribute", s, T), me = T.attrValue, le && de(/((--!?|])>)|<\/(style|title)/i, me)) {
|
|
4473
|
+
Lt(ue, s);
|
|
4469
4474
|
continue;
|
|
4470
4475
|
}
|
|
4471
|
-
if (T.forceKeepAttr || (
|
|
4476
|
+
if (T.forceKeepAttr || (Lt(ue, s), !T.keepAttr))
|
|
4472
4477
|
continue;
|
|
4473
|
-
if (!
|
|
4474
|
-
|
|
4478
|
+
if (!te && de(/\/>/i, me)) {
|
|
4479
|
+
Lt(ue, s);
|
|
4475
4480
|
continue;
|
|
4476
4481
|
}
|
|
4477
|
-
he &&
|
|
4478
|
-
me =
|
|
4482
|
+
he && Pt([se, Ee, C], (or) => {
|
|
4483
|
+
me = mt(me, or, " ");
|
|
4479
4484
|
});
|
|
4480
4485
|
const ir = ae(s.nodeName);
|
|
4481
|
-
if (tr(ir,
|
|
4482
|
-
if (kn && (
|
|
4483
|
-
switch (A.getAttributeType(ir,
|
|
4486
|
+
if (tr(ir, ut, me)) {
|
|
4487
|
+
if (kn && (ut === "id" || ut === "name") && (Lt(ue, s), me = Fi + me), H && typeof A == "object" && typeof A.getAttributeType == "function" && !be)
|
|
4488
|
+
switch (A.getAttributeType(ir, ut)) {
|
|
4484
4489
|
case "TrustedHTML": {
|
|
4485
4490
|
me = H.createHTML(me);
|
|
4486
4491
|
break;
|
|
@@ -4491,22 +4496,22 @@ function $i() {
|
|
|
4491
4496
|
}
|
|
4492
4497
|
}
|
|
4493
4498
|
try {
|
|
4494
|
-
be ? s.setAttributeNS(be, ue, me) : s.setAttribute(ue, me), Qn(s) ?
|
|
4499
|
+
be ? s.setAttributeNS(be, ue, me) : s.setAttribute(ue, me), Qn(s) ? Oe(s) : Pr(t.removed);
|
|
4495
4500
|
} catch (or) {
|
|
4496
4501
|
}
|
|
4497
4502
|
}
|
|
4498
4503
|
}
|
|
4499
|
-
|
|
4504
|
+
Ie("afterSanitizeAttributes", s, null);
|
|
4500
4505
|
}, Yi = function S(s) {
|
|
4501
|
-
let
|
|
4506
|
+
let d = null;
|
|
4502
4507
|
const T = Jn(s);
|
|
4503
|
-
for (
|
|
4504
|
-
|
|
4505
|
-
|
|
4508
|
+
for (Ie("beforeSanitizeShadowDOM", s, null); d = T.nextNode(); )
|
|
4509
|
+
Ie("uponSanitizeShadowNode", d, null), !er(d) && (d.content instanceof o && S(d.content), rr(d));
|
|
4510
|
+
Ie("afterSanitizeShadowDOM", s, null);
|
|
4506
4511
|
};
|
|
4507
4512
|
return t.sanitize = function(S) {
|
|
4508
|
-
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
|
|
4509
|
-
if (
|
|
4513
|
+
let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, d = null, T = null, q = null, ce = null;
|
|
4514
|
+
if (rn = !S, rn && (S = "<!-->"), typeof S != "string" && !Kn(S))
|
|
4510
4515
|
if (typeof S.toString == "function") {
|
|
4511
4516
|
if (S = S.toString(), typeof S != "string")
|
|
4512
4517
|
throw dt("dirty is not a string, aborting");
|
|
@@ -4514,58 +4519,58 @@ function $i() {
|
|
|
4514
4519
|
throw dt("toString is not a function");
|
|
4515
4520
|
if (!t.isSupported)
|
|
4516
4521
|
return S;
|
|
4517
|
-
if (
|
|
4522
|
+
if (Q || sn(s), t.removed = [], typeof S == "string" && (at = !1), at) {
|
|
4518
4523
|
if (S.nodeName) {
|
|
4519
4524
|
const Le = ae(S.nodeName);
|
|
4520
|
-
if (!v[Le] ||
|
|
4525
|
+
if (!v[Le] || p[Le])
|
|
4521
4526
|
throw dt("root node is forbidden and cannot be sanitized in-place");
|
|
4522
4527
|
}
|
|
4523
4528
|
} else if (S instanceof a)
|
|
4524
|
-
|
|
4529
|
+
d = qn("<!---->"), T = d.ownerDocument.importNode(S, !0), T.nodeType === gt.element && T.nodeName === "BODY" || T.nodeName === "HTML" ? d = T : d.appendChild(T);
|
|
4525
4530
|
else {
|
|
4526
|
-
if (!
|
|
4531
|
+
if (!Ce && !he && !Me && // eslint-disable-next-line unicorn/prefer-includes
|
|
4527
4532
|
S.indexOf("<") === -1)
|
|
4528
4533
|
return H && Mt ? H.createHTML(S) : S;
|
|
4529
|
-
if (
|
|
4530
|
-
return
|
|
4534
|
+
if (d = qn(S), !d)
|
|
4535
|
+
return Ce ? null : Mt ? I : "";
|
|
4531
4536
|
}
|
|
4532
|
-
|
|
4533
|
-
const ue = Jn(
|
|
4534
|
-
for (;
|
|
4535
|
-
er(
|
|
4536
|
-
if (
|
|
4537
|
+
d && ie && Oe(d.firstChild);
|
|
4538
|
+
const ue = Jn(at ? S : d);
|
|
4539
|
+
for (; q = ue.nextNode(); )
|
|
4540
|
+
er(q) || (q.content instanceof o && Yi(q.content), rr(q));
|
|
4541
|
+
if (at)
|
|
4537
4542
|
return S;
|
|
4538
|
-
if (
|
|
4539
|
-
if (
|
|
4540
|
-
for (ce = fe.call(
|
|
4541
|
-
ce.appendChild(
|
|
4543
|
+
if (Ce) {
|
|
4544
|
+
if (At)
|
|
4545
|
+
for (ce = fe.call(d.ownerDocument); d.firstChild; )
|
|
4546
|
+
ce.appendChild(d.firstChild);
|
|
4542
4547
|
else
|
|
4543
|
-
ce =
|
|
4544
|
-
return (P.shadowroot || P.shadowrootmode) && (ce =
|
|
4548
|
+
ce = d;
|
|
4549
|
+
return (P.shadowroot || P.shadowrootmode) && (ce = z.call(r, ce, !0)), ce;
|
|
4545
4550
|
}
|
|
4546
|
-
let be =
|
|
4547
|
-
return
|
|
4548
|
-
` + be), he &&
|
|
4549
|
-
be =
|
|
4551
|
+
let be = Me ? d.outerHTML : d.innerHTML;
|
|
4552
|
+
return Me && v["!doctype"] && d.ownerDocument && d.ownerDocument.doctype && d.ownerDocument.doctype.name && de(Bi, d.ownerDocument.doctype.name) && (be = "<!DOCTYPE " + d.ownerDocument.doctype.name + `>
|
|
4553
|
+
` + be), he && Pt([se, Ee, C], (Le) => {
|
|
4554
|
+
be = mt(be, Le, " ");
|
|
4550
4555
|
}), H && Mt ? H.createHTML(be) : be;
|
|
4551
4556
|
}, t.setConfig = function() {
|
|
4552
4557
|
let S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4553
|
-
|
|
4558
|
+
sn(S), Q = !0;
|
|
4554
4559
|
}, t.clearConfig = function() {
|
|
4555
|
-
|
|
4556
|
-
}, t.isValidAttribute = function(S, s,
|
|
4557
|
-
|
|
4558
|
-
const T = ae(S),
|
|
4559
|
-
return tr(T,
|
|
4560
|
+
Xe = null, Q = !1;
|
|
4561
|
+
}, t.isValidAttribute = function(S, s, d) {
|
|
4562
|
+
Xe || sn({});
|
|
4563
|
+
const T = ae(S), q = ae(s);
|
|
4564
|
+
return tr(T, q, d);
|
|
4560
4565
|
}, t.addHook = function(S, s) {
|
|
4561
|
-
typeof s == "function" && (
|
|
4566
|
+
typeof s == "function" && (O[S] = O[S] || [], ht(O[S], s));
|
|
4562
4567
|
}, t.removeHook = function(S) {
|
|
4563
|
-
if (
|
|
4564
|
-
return Pr(
|
|
4568
|
+
if (O[S])
|
|
4569
|
+
return Pr(O[S]);
|
|
4565
4570
|
}, t.removeHooks = function(S) {
|
|
4566
|
-
|
|
4571
|
+
O[S] && (O[S] = []);
|
|
4567
4572
|
}, t.removeAllHooks = function() {
|
|
4568
|
-
|
|
4573
|
+
O = {};
|
|
4569
4574
|
}, t;
|
|
4570
4575
|
}
|
|
4571
4576
|
var Fr = $i(), Ui = { exports: {} };
|
|
@@ -4573,73 +4578,73 @@ var Fr = $i(), Ui = { exports: {} };
|
|
|
4573
4578
|
(function(n, r) {
|
|
4574
4579
|
e.exports = r();
|
|
4575
4580
|
})(li, function() {
|
|
4576
|
-
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,
|
|
4577
|
-
var _ = ["th", "st", "nd", "rd"], h =
|
|
4578
|
-
return "[" +
|
|
4579
|
-
} }, R = function(
|
|
4580
|
-
var E = String(
|
|
4581
|
-
return !E || E.length >= _ ?
|
|
4582
|
-
}, H = { s: R, z: function(
|
|
4583
|
-
var _ = -
|
|
4581
|
+
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) {
|
|
4582
|
+
var _ = ["th", "st", "nd", "rd"], h = C % 100;
|
|
4583
|
+
return "[" + C + (_[(h - 20) % 10] || _[h] || _[0]) + "]";
|
|
4584
|
+
} }, R = function(C, _, h) {
|
|
4585
|
+
var E = String(C);
|
|
4586
|
+
return !E || E.length >= _ ? C : "" + Array(_ + 1 - E.length).join(h) + C;
|
|
4587
|
+
}, H = { s: R, z: function(C) {
|
|
4588
|
+
var _ = -C.utcOffset(), h = Math.abs(_), E = Math.floor(h / 60), b = h % 60;
|
|
4584
4589
|
return (_ <= 0 ? "+" : "-") + R(E, 2, "0") + ":" + R(b, 2, "0");
|
|
4585
|
-
}, m: function
|
|
4590
|
+
}, m: function C(_, h) {
|
|
4586
4591
|
if (_.date() < h.date())
|
|
4587
|
-
return -
|
|
4588
|
-
var E = 12 * (h.year() - _.year()) + (h.month() - _.month()), b = _.clone().add(E, m), L = h - b < 0,
|
|
4589
|
-
return +(-(E + (h - b) / (L ? b -
|
|
4590
|
-
}, a: function(
|
|
4591
|
-
return
|
|
4592
|
-
}, p: function(
|
|
4593
|
-
return { M: m, y: A, w: f, d: u, D: x, h: c, m: a, s: l, ms: o, Q: y }[
|
|
4594
|
-
}, u: function(
|
|
4595
|
-
return
|
|
4596
|
-
} }, I = "en",
|
|
4597
|
-
|
|
4598
|
-
var oe = "$isDayjsObject", fe = function(
|
|
4599
|
-
return
|
|
4600
|
-
},
|
|
4592
|
+
return -C(h, _);
|
|
4593
|
+
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);
|
|
4594
|
+
return +(-(E + (h - b) / (L ? b - M : M - b)) || 0);
|
|
4595
|
+
}, a: function(C) {
|
|
4596
|
+
return C < 0 ? Math.ceil(C) || 0 : Math.floor(C);
|
|
4597
|
+
}, p: function(C) {
|
|
4598
|
+
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$/, "");
|
|
4599
|
+
}, u: function(C) {
|
|
4600
|
+
return C === void 0;
|
|
4601
|
+
} }, I = "en", V = {};
|
|
4602
|
+
V[I] = X;
|
|
4603
|
+
var oe = "$isDayjsObject", fe = function(C) {
|
|
4604
|
+
return C instanceof se || !(!C || !C[oe]);
|
|
4605
|
+
}, ee = function C(_, h, E) {
|
|
4601
4606
|
var b;
|
|
4602
4607
|
if (!_)
|
|
4603
4608
|
return I;
|
|
4604
4609
|
if (typeof _ == "string") {
|
|
4605
4610
|
var L = _.toLowerCase();
|
|
4606
|
-
|
|
4607
|
-
var
|
|
4608
|
-
if (!b &&
|
|
4609
|
-
return M
|
|
4611
|
+
V[L] && (b = L), h && (V[L] = h, b = L);
|
|
4612
|
+
var M = _.split("-");
|
|
4613
|
+
if (!b && M.length > 1)
|
|
4614
|
+
return C(M[0]);
|
|
4610
4615
|
} else {
|
|
4611
4616
|
var v = _.name;
|
|
4612
|
-
|
|
4617
|
+
V[v] = _, b = v;
|
|
4613
4618
|
}
|
|
4614
4619
|
return !E && b && (I = b), b || !E && I;
|
|
4615
|
-
},
|
|
4616
|
-
if (fe(
|
|
4617
|
-
return
|
|
4620
|
+
}, z = function(C, _) {
|
|
4621
|
+
if (fe(C))
|
|
4622
|
+
return C.clone();
|
|
4618
4623
|
var h = typeof _ == "object" ? _ : {};
|
|
4619
|
-
return h.date =
|
|
4620
|
-
},
|
|
4621
|
-
|
|
4622
|
-
return
|
|
4624
|
+
return h.date = C, h.args = arguments, new se(h);
|
|
4625
|
+
}, O = H;
|
|
4626
|
+
O.l = ee, O.i = fe, O.w = function(C, _) {
|
|
4627
|
+
return z(C, { locale: _.$L, utc: _.$u, x: _.$x, $offset: _.$offset });
|
|
4623
4628
|
};
|
|
4624
4629
|
var se = function() {
|
|
4625
|
-
function
|
|
4626
|
-
this.$L =
|
|
4630
|
+
function C(h) {
|
|
4631
|
+
this.$L = ee(h.locale, null, !0), this.parse(h), this.$x = this.$x || h.x || {}, this[oe] = !0;
|
|
4627
4632
|
}
|
|
4628
|
-
var _ =
|
|
4633
|
+
var _ = C.prototype;
|
|
4629
4634
|
return _.parse = function(h) {
|
|
4630
4635
|
this.$d = function(E) {
|
|
4631
4636
|
var b = E.date, L = E.utc;
|
|
4632
4637
|
if (b === null)
|
|
4633
4638
|
return /* @__PURE__ */ new Date(NaN);
|
|
4634
|
-
if (
|
|
4639
|
+
if (O.u(b))
|
|
4635
4640
|
return /* @__PURE__ */ new Date();
|
|
4636
4641
|
if (b instanceof Date)
|
|
4637
4642
|
return new Date(b);
|
|
4638
4643
|
if (typeof b == "string" && !/Z$/i.test(b)) {
|
|
4639
|
-
var
|
|
4640
|
-
if (
|
|
4641
|
-
var v =
|
|
4642
|
-
return L ? new Date(Date.UTC(
|
|
4644
|
+
var M = b.match(N);
|
|
4645
|
+
if (M) {
|
|
4646
|
+
var v = M[2] - 1 || 0, W = (M[7] || "0").substring(0, 3);
|
|
4647
|
+
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);
|
|
4643
4648
|
}
|
|
4644
4649
|
}
|
|
4645
4650
|
return new Date(b);
|
|
@@ -4648,105 +4653,105 @@ var Fr = $i(), Ui = { exports: {} };
|
|
|
4648
4653
|
var h = this.$d;
|
|
4649
4654
|
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();
|
|
4650
4655
|
}, _.$utils = function() {
|
|
4651
|
-
return
|
|
4656
|
+
return O;
|
|
4652
4657
|
}, _.isValid = function() {
|
|
4653
4658
|
return this.$d.toString() !== g;
|
|
4654
4659
|
}, _.isSame = function(h, E) {
|
|
4655
|
-
var b =
|
|
4660
|
+
var b = z(h);
|
|
4656
4661
|
return this.startOf(E) <= b && b <= this.endOf(E);
|
|
4657
4662
|
}, _.isAfter = function(h, E) {
|
|
4658
|
-
return
|
|
4663
|
+
return z(h) < this.startOf(E);
|
|
4659
4664
|
}, _.isBefore = function(h, E) {
|
|
4660
|
-
return this.endOf(E) <
|
|
4665
|
+
return this.endOf(E) < z(h);
|
|
4661
4666
|
}, _.$g = function(h, E, b) {
|
|
4662
|
-
return
|
|
4667
|
+
return O.u(h) ? this[E] : this.set(b, h);
|
|
4663
4668
|
}, _.unix = function() {
|
|
4664
4669
|
return Math.floor(this.valueOf() / 1e3);
|
|
4665
4670
|
}, _.valueOf = function() {
|
|
4666
4671
|
return this.$d.getTime();
|
|
4667
4672
|
}, _.startOf = function(h, E) {
|
|
4668
|
-
var b = this, L = !!
|
|
4669
|
-
var
|
|
4670
|
-
return L ?
|
|
4671
|
-
},
|
|
4672
|
-
return
|
|
4673
|
-
}, P = this.$W,
|
|
4674
|
-
switch (
|
|
4673
|
+
var b = this, L = !!O.u(E) || E, M = O.p(h), v = function(Z, re) {
|
|
4674
|
+
var te = O.w(b.$u ? Date.UTC(b.$y, re, Z) : new Date(b.$y, re, Z), b);
|
|
4675
|
+
return L ? te : te.endOf(u);
|
|
4676
|
+
}, W = function(Z, re) {
|
|
4677
|
+
return O.w(b.toDate()[Z].apply(b.toDate("s"), (L ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(re)), b);
|
|
4678
|
+
}, P = this.$W, J = this.$M, D = this.$D, p = "set" + (this.$u ? "UTC" : "");
|
|
4679
|
+
switch (M) {
|
|
4675
4680
|
case A:
|
|
4676
4681
|
return L ? v(1, 0) : v(31, 11);
|
|
4677
4682
|
case m:
|
|
4678
|
-
return L ? v(1,
|
|
4683
|
+
return L ? v(1, J) : v(0, J + 1);
|
|
4679
4684
|
case f:
|
|
4680
|
-
var k = this.$locale().weekStart || 0,
|
|
4681
|
-
return v(L ? D -
|
|
4685
|
+
var k = this.$locale().weekStart || 0, Y = (P < k ? P + 7 : P) - k;
|
|
4686
|
+
return v(L ? D - Y : D + (6 - Y), J);
|
|
4682
4687
|
case u:
|
|
4683
4688
|
case x:
|
|
4684
|
-
return
|
|
4689
|
+
return W(p + "Hours", 0);
|
|
4685
4690
|
case c:
|
|
4686
|
-
return
|
|
4691
|
+
return W(p + "Minutes", 1);
|
|
4687
4692
|
case a:
|
|
4688
|
-
return
|
|
4693
|
+
return W(p + "Seconds", 2);
|
|
4689
4694
|
case l:
|
|
4690
|
-
return
|
|
4695
|
+
return W(p + "Milliseconds", 3);
|
|
4691
4696
|
default:
|
|
4692
4697
|
return this.clone();
|
|
4693
4698
|
}
|
|
4694
4699
|
}, _.endOf = function(h) {
|
|
4695
4700
|
return this.startOf(h, !1);
|
|
4696
4701
|
}, _.$set = function(h, E) {
|
|
4697
|
-
var b, L =
|
|
4702
|
+
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;
|
|
4698
4703
|
if (L === m || L === A) {
|
|
4699
4704
|
var P = this.clone().set(x, 1);
|
|
4700
|
-
P.$d[v](
|
|
4705
|
+
P.$d[v](W), P.init(), this.$d = P.set(x, Math.min(this.$D, P.daysInMonth())).$d;
|
|
4701
4706
|
} else
|
|
4702
|
-
v && this.$d[v](
|
|
4707
|
+
v && this.$d[v](W);
|
|
4703
4708
|
return this.init(), this;
|
|
4704
4709
|
}, _.set = function(h, E) {
|
|
4705
4710
|
return this.clone().$set(h, E);
|
|
4706
4711
|
}, _.get = function(h) {
|
|
4707
|
-
return this[
|
|
4712
|
+
return this[O.p(h)]();
|
|
4708
4713
|
}, _.add = function(h, E) {
|
|
4709
4714
|
var b, L = this;
|
|
4710
4715
|
h = Number(h);
|
|
4711
|
-
var
|
|
4712
|
-
var D =
|
|
4713
|
-
return
|
|
4716
|
+
var M = O.p(E), v = function(J) {
|
|
4717
|
+
var D = z(L);
|
|
4718
|
+
return O.w(D.date(D.date() + Math.round(J * h)), L);
|
|
4714
4719
|
};
|
|
4715
|
-
if (
|
|
4720
|
+
if (M === m)
|
|
4716
4721
|
return this.set(m, this.$M + h);
|
|
4717
|
-
if (
|
|
4722
|
+
if (M === A)
|
|
4718
4723
|
return this.set(A, this.$y + h);
|
|
4719
|
-
if (
|
|
4724
|
+
if (M === u)
|
|
4720
4725
|
return v(1);
|
|
4721
|
-
if (
|
|
4726
|
+
if (M === f)
|
|
4722
4727
|
return v(7);
|
|
4723
|
-
var
|
|
4724
|
-
return
|
|
4728
|
+
var W = (b = {}, b[a] = r, b[c] = i, b[l] = n, b)[M] || 1, P = this.$d.getTime() + h * W;
|
|
4729
|
+
return O.w(P, this);
|
|
4725
4730
|
}, _.subtract = function(h, E) {
|
|
4726
4731
|
return this.add(-1 * h, E);
|
|
4727
4732
|
}, _.format = function(h) {
|
|
4728
4733
|
var E = this, b = this.$locale();
|
|
4729
4734
|
if (!this.isValid())
|
|
4730
4735
|
return b.invalidDate || g;
|
|
4731
|
-
var L = h || "YYYY-MM-DDTHH:mm:ssZ",
|
|
4732
|
-
return
|
|
4733
|
-
},
|
|
4734
|
-
return
|
|
4735
|
-
},
|
|
4736
|
-
var le =
|
|
4736
|
+
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, k = function(re, te, he, le) {
|
|
4737
|
+
return re && (re[te] || re(E, L)) || he[te].slice(0, le);
|
|
4738
|
+
}, Y = function(re) {
|
|
4739
|
+
return O.s(v % 12 || 12, re, "0");
|
|
4740
|
+
}, Z = p || function(re, te, he) {
|
|
4741
|
+
var le = re < 12 ? "AM" : "PM";
|
|
4737
4742
|
return he ? le.toLowerCase() : le;
|
|
4738
4743
|
};
|
|
4739
|
-
return L.replace(U, function(
|
|
4740
|
-
return
|
|
4744
|
+
return L.replace(U, function(re, te) {
|
|
4745
|
+
return te || function(he) {
|
|
4741
4746
|
switch (he) {
|
|
4742
4747
|
case "YY":
|
|
4743
4748
|
return String(E.$y).slice(-2);
|
|
4744
4749
|
case "YYYY":
|
|
4745
|
-
return
|
|
4750
|
+
return O.s(E.$y, 4, "0");
|
|
4746
4751
|
case "M":
|
|
4747
4752
|
return P + 1;
|
|
4748
4753
|
case "MM":
|
|
4749
|
-
return
|
|
4754
|
+
return O.s(P + 1, 2, "0");
|
|
4750
4755
|
case "MMM":
|
|
4751
4756
|
return k(b.monthsShort, P, D, 3);
|
|
4752
4757
|
case "MMMM":
|
|
@@ -4754,48 +4759,48 @@ var Fr = $i(), Ui = { exports: {} };
|
|
|
4754
4759
|
case "D":
|
|
4755
4760
|
return E.$D;
|
|
4756
4761
|
case "DD":
|
|
4757
|
-
return
|
|
4762
|
+
return O.s(E.$D, 2, "0");
|
|
4758
4763
|
case "d":
|
|
4759
4764
|
return String(E.$W);
|
|
4760
4765
|
case "dd":
|
|
4761
|
-
return k(b.weekdaysMin, E.$W,
|
|
4766
|
+
return k(b.weekdaysMin, E.$W, J, 2);
|
|
4762
4767
|
case "ddd":
|
|
4763
|
-
return k(b.weekdaysShort, E.$W,
|
|
4768
|
+
return k(b.weekdaysShort, E.$W, J, 3);
|
|
4764
4769
|
case "dddd":
|
|
4765
|
-
return
|
|
4770
|
+
return J[E.$W];
|
|
4766
4771
|
case "H":
|
|
4767
4772
|
return String(v);
|
|
4768
4773
|
case "HH":
|
|
4769
|
-
return
|
|
4774
|
+
return O.s(v, 2, "0");
|
|
4770
4775
|
case "h":
|
|
4771
|
-
return
|
|
4776
|
+
return Y(1);
|
|
4772
4777
|
case "hh":
|
|
4773
|
-
return
|
|
4778
|
+
return Y(2);
|
|
4774
4779
|
case "a":
|
|
4775
|
-
return
|
|
4780
|
+
return Z(v, W, !0);
|
|
4776
4781
|
case "A":
|
|
4777
|
-
return
|
|
4782
|
+
return Z(v, W, !1);
|
|
4778
4783
|
case "m":
|
|
4779
|
-
return String(
|
|
4784
|
+
return String(W);
|
|
4780
4785
|
case "mm":
|
|
4781
|
-
return
|
|
4786
|
+
return O.s(W, 2, "0");
|
|
4782
4787
|
case "s":
|
|
4783
4788
|
return String(E.$s);
|
|
4784
4789
|
case "ss":
|
|
4785
|
-
return
|
|
4790
|
+
return O.s(E.$s, 2, "0");
|
|
4786
4791
|
case "SSS":
|
|
4787
|
-
return
|
|
4792
|
+
return O.s(E.$ms, 3, "0");
|
|
4788
4793
|
case "Z":
|
|
4789
|
-
return
|
|
4794
|
+
return M;
|
|
4790
4795
|
}
|
|
4791
4796
|
return null;
|
|
4792
|
-
}(
|
|
4797
|
+
}(re) || M.replace(":", "");
|
|
4793
4798
|
});
|
|
4794
4799
|
}, _.utcOffset = function() {
|
|
4795
4800
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4796
4801
|
}, _.diff = function(h, E, b) {
|
|
4797
|
-
var L,
|
|
4798
|
-
return
|
|
4802
|
+
var L, M = this, v = O.p(E), W = z(h), P = (W.utcOffset() - this.utcOffset()) * r, J = this - W, D = function() {
|
|
4803
|
+
return O.m(M, W);
|
|
4799
4804
|
};
|
|
4800
4805
|
switch (v) {
|
|
4801
4806
|
case A:
|
|
@@ -4808,35 +4813,35 @@ var Fr = $i(), Ui = { exports: {} };
|
|
|
4808
4813
|
L = D() / 3;
|
|
4809
4814
|
break;
|
|
4810
4815
|
case f:
|
|
4811
|
-
L = (
|
|
4816
|
+
L = (J - P) / 6048e5;
|
|
4812
4817
|
break;
|
|
4813
4818
|
case u:
|
|
4814
|
-
L = (
|
|
4819
|
+
L = (J - P) / 864e5;
|
|
4815
4820
|
break;
|
|
4816
4821
|
case c:
|
|
4817
|
-
L =
|
|
4822
|
+
L = J / i;
|
|
4818
4823
|
break;
|
|
4819
4824
|
case a:
|
|
4820
|
-
L =
|
|
4825
|
+
L = J / r;
|
|
4821
4826
|
break;
|
|
4822
4827
|
case l:
|
|
4823
|
-
L =
|
|
4828
|
+
L = J / n;
|
|
4824
4829
|
break;
|
|
4825
4830
|
default:
|
|
4826
|
-
L =
|
|
4831
|
+
L = J;
|
|
4827
4832
|
}
|
|
4828
|
-
return b ? L :
|
|
4833
|
+
return b ? L : O.a(L);
|
|
4829
4834
|
}, _.daysInMonth = function() {
|
|
4830
4835
|
return this.endOf(m).$D;
|
|
4831
4836
|
}, _.$locale = function() {
|
|
4832
|
-
return
|
|
4837
|
+
return V[this.$L];
|
|
4833
4838
|
}, _.locale = function(h, E) {
|
|
4834
4839
|
if (!h)
|
|
4835
4840
|
return this.$L;
|
|
4836
|
-
var b = this.clone(), L =
|
|
4841
|
+
var b = this.clone(), L = ee(h, E, !0);
|
|
4837
4842
|
return L && (b.$L = L), b;
|
|
4838
4843
|
}, _.clone = function() {
|
|
4839
|
-
return
|
|
4844
|
+
return O.w(this.$d, this);
|
|
4840
4845
|
}, _.toDate = function() {
|
|
4841
4846
|
return new Date(this.valueOf());
|
|
4842
4847
|
}, _.toJSON = function() {
|
|
@@ -4845,21 +4850,21 @@ var Fr = $i(), Ui = { exports: {} };
|
|
|
4845
4850
|
return this.$d.toISOString();
|
|
4846
4851
|
}, _.toString = function() {
|
|
4847
4852
|
return this.$d.toUTCString();
|
|
4848
|
-
},
|
|
4853
|
+
}, C;
|
|
4849
4854
|
}(), Ee = se.prototype;
|
|
4850
|
-
return
|
|
4851
|
-
Ee[
|
|
4852
|
-
return this.$g(_,
|
|
4855
|
+
return z.prototype = Ee, [["$ms", o], ["$s", l], ["$m", a], ["$H", c], ["$W", u], ["$M", m], ["$y", A], ["$D", x]].forEach(function(C) {
|
|
4856
|
+
Ee[C[1]] = function(_) {
|
|
4857
|
+
return this.$g(_, C[0], C[1]);
|
|
4853
4858
|
};
|
|
4854
|
-
}),
|
|
4855
|
-
return
|
|
4856
|
-
},
|
|
4857
|
-
return
|
|
4858
|
-
},
|
|
4859
|
+
}), z.extend = function(C, _) {
|
|
4860
|
+
return C.$i || (C(_, se, z), C.$i = !0), z;
|
|
4861
|
+
}, z.locale = ee, z.isDayjs = fe, z.unix = function(C) {
|
|
4862
|
+
return z(1e3 * C);
|
|
4863
|
+
}, z.en = V[I], z.Ls = V, z.p = {}, z;
|
|
4859
4864
|
});
|
|
4860
4865
|
})(Ui);
|
|
4861
|
-
var
|
|
4862
|
-
const Gr = /* @__PURE__ */
|
|
4866
|
+
var Fa = Ui.exports;
|
|
4867
|
+
const Gr = /* @__PURE__ */ Pn(Fa);
|
|
4863
4868
|
var ki = { exports: {} };
|
|
4864
4869
|
(function(e, t) {
|
|
4865
4870
|
(function(n, r) {
|
|
@@ -4896,19 +4901,19 @@ var ki = { exports: {} };
|
|
|
4896
4901
|
return this.$u ? 0 : U(this.$offset) ? m.call(this) : this.$offset;
|
|
4897
4902
|
if (typeof g == "string" && (g = function(I) {
|
|
4898
4903
|
I === void 0 && (I = "");
|
|
4899
|
-
var
|
|
4900
|
-
if (!
|
|
4904
|
+
var V = I.match(r);
|
|
4905
|
+
if (!V)
|
|
4901
4906
|
return null;
|
|
4902
|
-
var oe = ("" +
|
|
4903
|
-
return
|
|
4907
|
+
var oe = ("" + V[0]).match(i) || ["-", 0, 0], fe = oe[0], ee = 60 * +oe[1] + +oe[2];
|
|
4908
|
+
return ee === 0 ? 0 : fe === "+" ? ee : -ee;
|
|
4904
4909
|
}(g), g === null))
|
|
4905
4910
|
return this;
|
|
4906
|
-
var
|
|
4911
|
+
var X = Math.abs(g) <= 16 ? 60 * g : g, R = this;
|
|
4907
4912
|
if (N)
|
|
4908
|
-
return R.$offset =
|
|
4913
|
+
return R.$offset = X, R.$u = g === 0, R;
|
|
4909
4914
|
if (g !== 0) {
|
|
4910
4915
|
var H = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
4911
|
-
(R = this.local().add(
|
|
4916
|
+
(R = this.local().add(X + H, n)).$offset = X, R.$x.$localOffset = H;
|
|
4912
4917
|
} else
|
|
4913
4918
|
R = this.utc();
|
|
4914
4919
|
return R;
|
|
@@ -4935,22 +4940,22 @@ var ki = { exports: {} };
|
|
|
4935
4940
|
c.diff = function(g, N, U) {
|
|
4936
4941
|
if (g && this.$u === g.$u)
|
|
4937
4942
|
return x.call(this, g, N, U);
|
|
4938
|
-
var
|
|
4939
|
-
return x.call(
|
|
4943
|
+
var X = this.local(), R = a(g).local();
|
|
4944
|
+
return x.call(X, R, N, U);
|
|
4940
4945
|
};
|
|
4941
4946
|
};
|
|
4942
4947
|
});
|
|
4943
4948
|
})(ki);
|
|
4944
|
-
var
|
|
4945
|
-
const
|
|
4946
|
-
let jr =
|
|
4947
|
-
function
|
|
4949
|
+
var Ga = ki.exports;
|
|
4950
|
+
const ja = /* @__PURE__ */ Pn(Ga);
|
|
4951
|
+
let jr = Tt(null);
|
|
4952
|
+
function za(e, t) {
|
|
4948
4953
|
if (e) {
|
|
4949
4954
|
const n = document.createElement("style");
|
|
4950
4955
|
n.innerHTML = t, e.appendChild(n);
|
|
4951
4956
|
}
|
|
4952
4957
|
}
|
|
4953
|
-
function
|
|
4958
|
+
function Wa(e, t) {
|
|
4954
4959
|
if (!e || !t)
|
|
4955
4960
|
return;
|
|
4956
4961
|
const n = new URL(t);
|
|
@@ -4961,7 +4966,7 @@ function Va(e, t) {
|
|
|
4961
4966
|
console.error("There was an error while trying to load client styling from URL", r);
|
|
4962
4967
|
});
|
|
4963
4968
|
}
|
|
4964
|
-
function
|
|
4969
|
+
function Va(e, t, n) {
|
|
4965
4970
|
if (window.emMessageBus) {
|
|
4966
4971
|
const r = document.createElement("style");
|
|
4967
4972
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4969,177 +4974,177 @@ function Xa(e, t, n) {
|
|
|
4969
4974
|
});
|
|
4970
4975
|
}
|
|
4971
4976
|
}
|
|
4972
|
-
function
|
|
4977
|
+
function Xa(e) {
|
|
4973
4978
|
io(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}');
|
|
4974
4979
|
}
|
|
4975
|
-
const
|
|
4980
|
+
const Ya = (e) => ({}), zr = (e) => ({}), Za = (e) => ({}), Wr = (e) => ({}), qa = (e) => ({}), Vr = (e) => ({}), Ja = (e) => ({}), Xr = (e) => ({ class: "CashierSessionExpirationIcon" });
|
|
4976
4981
|
function Yr(e) {
|
|
4977
4982
|
let t, n, r, i, o, l, a, c, u, f, m, y, A = (
|
|
4978
4983
|
/*$_*/
|
|
4979
4984
|
e[8]("sessionExpirationHeader") + ""
|
|
4980
|
-
), x, g, N, U,
|
|
4985
|
+
), x, g, N, U, X, R, H, I, V, oe, fe, ee, z, O, se = (
|
|
4981
4986
|
/*$_*/
|
|
4982
4987
|
e[8]("sessionExpirationEnd") + ""
|
|
4983
|
-
), Ee,
|
|
4984
|
-
const
|
|
4988
|
+
), Ee, C, _, h, E, b, L, M, v, W, P;
|
|
4989
|
+
const J = (
|
|
4985
4990
|
/*#slots*/
|
|
4986
4991
|
e[23].icon
|
|
4987
|
-
), D =
|
|
4988
|
-
|
|
4992
|
+
), D = Dt(
|
|
4993
|
+
J,
|
|
4989
4994
|
e,
|
|
4990
4995
|
/*$$scope*/
|
|
4991
4996
|
e[22],
|
|
4992
4997
|
Xr
|
|
4993
|
-
),
|
|
4998
|
+
), p = D || Qa(e), k = (
|
|
4994
4999
|
/*#slots*/
|
|
4995
5000
|
e[23].title
|
|
4996
|
-
),
|
|
5001
|
+
), Y = Dt(
|
|
4997
5002
|
k,
|
|
4998
5003
|
e,
|
|
4999
5004
|
/*$$scope*/
|
|
5000
5005
|
e[22],
|
|
5001
5006
|
Vr
|
|
5002
|
-
),
|
|
5007
|
+
), Z = (
|
|
5003
5008
|
/*#slots*/
|
|
5004
5009
|
e[23].text
|
|
5005
|
-
),
|
|
5006
|
-
|
|
5010
|
+
), re = Dt(
|
|
5011
|
+
Z,
|
|
5007
5012
|
e,
|
|
5008
5013
|
/*$$scope*/
|
|
5009
5014
|
e[22],
|
|
5010
5015
|
Wr
|
|
5011
|
-
),
|
|
5012
|
-
function
|
|
5016
|
+
), te = re || Ka(e), he = [tl, el], le = [];
|
|
5017
|
+
function Me(Q, ie) {
|
|
5013
5018
|
return (
|
|
5014
5019
|
/*showLoaderButton*/
|
|
5015
|
-
|
|
5020
|
+
Q[6] ? 0 : 1
|
|
5016
5021
|
);
|
|
5017
5022
|
}
|
|
5018
|
-
return h =
|
|
5023
|
+
return h = Me(e), E = le[h] = he[h](e), {
|
|
5019
5024
|
c() {
|
|
5020
|
-
t =
|
|
5021
|
-
(e[6] ? "Disabled" : "")), w(
|
|
5025
|
+
t = ne("div"), n = ne("div"), r = ne("div"), i = ne("div"), o = Se("svg"), l = Se("defs"), a = Se("mask"), c = Se("circle"), u = Se("rect"), f = Se("circle"), m = Se("circle"), y = Pe(), x = Ge(A), g = Pe(), N = ne("div"), U = Se("svg"), X = Se("path"), R = Pe(), H = ne("div"), I = ne("div"), p && p.c(), V = Pe(), Y && Y.c(), oe = Pe(), te && te.c(), fe = Pe(), ee = ne("div"), z = ne("button"), O = ne("span"), Ee = Ge(se), C = Pe(), _ = 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*/
|
|
5026
|
+
(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"), et(() => (
|
|
5022
5027
|
/*div7_elementresize_handler*/
|
|
5023
5028
|
e[25].call(t)
|
|
5024
5029
|
));
|
|
5025
5030
|
},
|
|
5026
|
-
m(
|
|
5027
|
-
|
|
5031
|
+
m(Q, ie) {
|
|
5032
|
+
Ue(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 = uo(
|
|
5028
5033
|
t,
|
|
5029
5034
|
/*div7_elementresize_handler*/
|
|
5030
5035
|
e[25].bind(t)
|
|
5031
|
-
), v = !0,
|
|
5032
|
-
|
|
5036
|
+
), v = !0, W || (P = [
|
|
5037
|
+
Je(
|
|
5033
5038
|
U,
|
|
5034
5039
|
"click",
|
|
5035
5040
|
/*goToHome*/
|
|
5036
5041
|
e[11]
|
|
5037
5042
|
),
|
|
5038
|
-
|
|
5039
|
-
|
|
5043
|
+
Je(
|
|
5044
|
+
z,
|
|
5040
5045
|
"click",
|
|
5041
5046
|
/*goToHome*/
|
|
5042
5047
|
e[11]
|
|
5043
5048
|
),
|
|
5044
|
-
|
|
5049
|
+
Je(
|
|
5045
5050
|
_,
|
|
5046
5051
|
"click",
|
|
5047
5052
|
/*renewSession*/
|
|
5048
5053
|
e[9]
|
|
5049
5054
|
),
|
|
5050
|
-
|
|
5055
|
+
Je(
|
|
5051
5056
|
t,
|
|
5052
5057
|
"click",
|
|
5053
5058
|
/*outOfModalClick*/
|
|
5054
5059
|
e[10]
|
|
5055
5060
|
)
|
|
5056
|
-
],
|
|
5061
|
+
], W = !0);
|
|
5057
5062
|
},
|
|
5058
|
-
p(
|
|
5059
|
-
e =
|
|
5063
|
+
p(Q, ie) {
|
|
5064
|
+
e = Q, (!v || ie[0] & /*$_*/
|
|
5060
5065
|
256) && A !== (A = /*$_*/
|
|
5061
|
-
e[8]("sessionExpirationHeader") + "") &&
|
|
5062
|
-
4194304) &&
|
|
5066
|
+
e[8]("sessionExpirationHeader") + "") && Et(x, A), D ? D.p && (!v || ie[0] & /*$$scope*/
|
|
5067
|
+
4194304) && $t(
|
|
5063
5068
|
D,
|
|
5064
|
-
|
|
5069
|
+
J,
|
|
5065
5070
|
e,
|
|
5066
5071
|
/*$$scope*/
|
|
5067
5072
|
e[22],
|
|
5068
|
-
v ?
|
|
5069
|
-
|
|
5073
|
+
v ? Bt(
|
|
5074
|
+
J,
|
|
5070
5075
|
/*$$scope*/
|
|
5071
5076
|
e[22],
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
) :
|
|
5077
|
+
ie,
|
|
5078
|
+
Ja
|
|
5079
|
+
) : Ut(
|
|
5075
5080
|
/*$$scope*/
|
|
5076
5081
|
e[22]
|
|
5077
5082
|
),
|
|
5078
5083
|
Xr
|
|
5079
|
-
) :
|
|
5080
|
-
8) &&
|
|
5081
|
-
4194304) &&
|
|
5082
|
-
|
|
5084
|
+
) : p && p.p && (!v || ie[0] & /*assetsurl*/
|
|
5085
|
+
8) && p.p(e, v ? ie : [-1, -1]), Y && Y.p && (!v || ie[0] & /*$$scope*/
|
|
5086
|
+
4194304) && $t(
|
|
5087
|
+
Y,
|
|
5083
5088
|
k,
|
|
5084
5089
|
e,
|
|
5085
5090
|
/*$$scope*/
|
|
5086
5091
|
e[22],
|
|
5087
|
-
v ?
|
|
5092
|
+
v ? Bt(
|
|
5088
5093
|
k,
|
|
5089
5094
|
/*$$scope*/
|
|
5090
5095
|
e[22],
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
) :
|
|
5096
|
+
ie,
|
|
5097
|
+
qa
|
|
5098
|
+
) : Ut(
|
|
5094
5099
|
/*$$scope*/
|
|
5095
5100
|
e[22]
|
|
5096
5101
|
),
|
|
5097
5102
|
Vr
|
|
5098
|
-
),
|
|
5099
|
-
4194304) &&
|
|
5100
|
-
|
|
5101
|
-
|
|
5103
|
+
), re ? re.p && (!v || ie[0] & /*$$scope*/
|
|
5104
|
+
4194304) && $t(
|
|
5105
|
+
re,
|
|
5106
|
+
Z,
|
|
5102
5107
|
e,
|
|
5103
5108
|
/*$$scope*/
|
|
5104
5109
|
e[22],
|
|
5105
|
-
v ?
|
|
5106
|
-
|
|
5110
|
+
v ? Bt(
|
|
5111
|
+
Z,
|
|
5107
5112
|
/*$$scope*/
|
|
5108
5113
|
e[22],
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
) :
|
|
5114
|
+
ie,
|
|
5115
|
+
Za
|
|
5116
|
+
) : Ut(
|
|
5112
5117
|
/*$$scope*/
|
|
5113
5118
|
e[22]
|
|
5114
5119
|
),
|
|
5115
5120
|
Wr
|
|
5116
|
-
) :
|
|
5117
|
-
384) &&
|
|
5121
|
+
) : te && te.p && (!v || ie[0] & /*$_, timeLeft*/
|
|
5122
|
+
384) && te.p(e, v ? ie : [-1, -1]), (!v || ie[0] & /*$_*/
|
|
5118
5123
|
256) && se !== (se = /*$_*/
|
|
5119
|
-
e[8]("sessionExpirationEnd") + "") &&
|
|
5120
|
-
let
|
|
5121
|
-
h =
|
|
5122
|
-
le[
|
|
5123
|
-
}), si(), E = le[h], E ? E.p(e,
|
|
5124
|
+
e[8]("sessionExpirationEnd") + "") && Et(Ee, se);
|
|
5125
|
+
let Ce = h;
|
|
5126
|
+
h = Me(e), h === Ce ? le[h].p(e, ie) : (oi(), De(le[Ce], 1, 1, () => {
|
|
5127
|
+
le[Ce] = null;
|
|
5128
|
+
}), si(), E = le[h], E ? E.p(e, ie) : (E = le[h] = he[h](e), E.c()), He(E, 1), E.m(_, null)), (!v || ie[0] & /*showLoaderButton*/
|
|
5124
5129
|
64 && b !== (b = "ModalButton Primary " + /*showLoaderButton*/
|
|
5125
5130
|
(e[6] ? "Disabled" : ""))) && w(_, "class", b);
|
|
5126
5131
|
},
|
|
5127
|
-
i(
|
|
5128
|
-
v || (He(
|
|
5129
|
-
v && (
|
|
5132
|
+
i(Q) {
|
|
5133
|
+
v || (He(p, Q), He(Y, Q), He(te, Q), He(E), Q && et(() => {
|
|
5134
|
+
v && (M || (M = pr(t, gr, { duration: (
|
|
5130
5135
|
/*duration*/
|
|
5131
5136
|
e[2]
|
|
5132
|
-
) }, !0)),
|
|
5137
|
+
) }, !0)), M.run(1));
|
|
5133
5138
|
}), v = !0);
|
|
5134
5139
|
},
|
|
5135
|
-
o(
|
|
5136
|
-
|
|
5140
|
+
o(Q) {
|
|
5141
|
+
De(p, Q), De(Y, Q), De(te, Q), De(E), Q && (M || (M = pr(t, gr, { duration: (
|
|
5137
5142
|
/*duration*/
|
|
5138
5143
|
e[2]
|
|
5139
|
-
) }, !1)),
|
|
5144
|
+
) }, !1)), M.run(0)), v = !1;
|
|
5140
5145
|
},
|
|
5141
|
-
d(
|
|
5142
|
-
|
|
5146
|
+
d(Q) {
|
|
5147
|
+
Q && Ae(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, $e(P);
|
|
5143
5148
|
}
|
|
5144
5149
|
};
|
|
5145
5150
|
}
|
|
@@ -5147,11 +5152,11 @@ function Zr(e) {
|
|
|
5147
5152
|
let t, n;
|
|
5148
5153
|
return {
|
|
5149
5154
|
c() {
|
|
5150
|
-
t =
|
|
5155
|
+
t = ne("img"), fr(t.src, n = `${/*assetsurl*/
|
|
5151
5156
|
e[3]}/set-timeout-icon.png`) || w(t, "src", n), w(t, "width", "300px"), w(t, "alt", "error");
|
|
5152
5157
|
},
|
|
5153
5158
|
m(r, i) {
|
|
5154
|
-
|
|
5159
|
+
Ue(r, t, i);
|
|
5155
5160
|
},
|
|
5156
5161
|
p(r, i) {
|
|
5157
5162
|
i[0] & /*assetsurl*/
|
|
@@ -5163,7 +5168,7 @@ function Zr(e) {
|
|
|
5163
5168
|
}
|
|
5164
5169
|
};
|
|
5165
5170
|
}
|
|
5166
|
-
function
|
|
5171
|
+
function Qa(e) {
|
|
5167
5172
|
let t, n = (
|
|
5168
5173
|
/*assetsurl*/
|
|
5169
5174
|
e[3] && Zr(e)
|
|
@@ -5173,7 +5178,7 @@ function Ka(e) {
|
|
|
5173
5178
|
n && n.c(), t = so();
|
|
5174
5179
|
},
|
|
5175
5180
|
m(r, i) {
|
|
5176
|
-
n && n.m(r, i),
|
|
5181
|
+
n && n.m(r, i), Ue(r, t, i);
|
|
5177
5182
|
},
|
|
5178
5183
|
p(r, i) {
|
|
5179
5184
|
/*assetsurl*/
|
|
@@ -5184,7 +5189,7 @@ function Ka(e) {
|
|
|
5184
5189
|
}
|
|
5185
5190
|
};
|
|
5186
5191
|
}
|
|
5187
|
-
function
|
|
5192
|
+
function Ka(e) {
|
|
5188
5193
|
let t, n, r = (
|
|
5189
5194
|
/*$_*/
|
|
5190
5195
|
e[8]("sessionExpirationTitle") + ""
|
|
@@ -5197,15 +5202,15 @@ function el(e) {
|
|
|
5197
5202
|
) + "";
|
|
5198
5203
|
return {
|
|
5199
5204
|
c() {
|
|
5200
|
-
t =
|
|
5205
|
+
t = ne("span"), n = ne("p"), i = Ge(r), o = Pe(), l = ne("p"), w(t, "class", "CashierSessionExpirationText");
|
|
5201
5206
|
},
|
|
5202
5207
|
m(c, u) {
|
|
5203
|
-
|
|
5208
|
+
Ue(c, t, u), B(t, n), B(n, i), B(t, o), B(t, l), l.innerHTML = a;
|
|
5204
5209
|
},
|
|
5205
5210
|
p(c, u) {
|
|
5206
5211
|
u[0] & /*$_*/
|
|
5207
5212
|
256 && r !== (r = /*$_*/
|
|
5208
|
-
c[8]("sessionExpirationTitle") + "") &&
|
|
5213
|
+
c[8]("sessionExpirationTitle") + "") && Et(i, r), u[0] & /*$_, timeLeft*/
|
|
5209
5214
|
384 && a !== (a = Fr.sanitize(
|
|
5210
5215
|
/*$_*/
|
|
5211
5216
|
c[8]("sessionExpirationGeneralText", { values: { second: (
|
|
@@ -5219,18 +5224,18 @@ function el(e) {
|
|
|
5219
5224
|
}
|
|
5220
5225
|
};
|
|
5221
5226
|
}
|
|
5222
|
-
function
|
|
5227
|
+
function el(e) {
|
|
5223
5228
|
let t;
|
|
5224
5229
|
const n = (
|
|
5225
5230
|
/*#slots*/
|
|
5226
5231
|
e[23].button
|
|
5227
|
-
), r =
|
|
5232
|
+
), r = Dt(
|
|
5228
5233
|
n,
|
|
5229
5234
|
e,
|
|
5230
5235
|
/*$$scope*/
|
|
5231
5236
|
e[22],
|
|
5232
5237
|
zr
|
|
5233
|
-
), i = r ||
|
|
5238
|
+
), i = r || nl(e);
|
|
5234
5239
|
return {
|
|
5235
5240
|
c() {
|
|
5236
5241
|
i && i.c();
|
|
@@ -5240,19 +5245,19 @@ function tl(e) {
|
|
|
5240
5245
|
},
|
|
5241
5246
|
p(o, l) {
|
|
5242
5247
|
r ? r.p && (!t || l[0] & /*$$scope*/
|
|
5243
|
-
4194304) &&
|
|
5248
|
+
4194304) && $t(
|
|
5244
5249
|
r,
|
|
5245
5250
|
n,
|
|
5246
5251
|
o,
|
|
5247
5252
|
/*$$scope*/
|
|
5248
5253
|
o[22],
|
|
5249
|
-
t ?
|
|
5254
|
+
t ? Bt(
|
|
5250
5255
|
n,
|
|
5251
5256
|
/*$$scope*/
|
|
5252
5257
|
o[22],
|
|
5253
5258
|
l,
|
|
5254
|
-
|
|
5255
|
-
) :
|
|
5259
|
+
Ya
|
|
5260
|
+
) : Ut(
|
|
5256
5261
|
/*$$scope*/
|
|
5257
5262
|
o[22]
|
|
5258
5263
|
),
|
|
@@ -5264,29 +5269,29 @@ function tl(e) {
|
|
|
5264
5269
|
t || (He(i, o), t = !0);
|
|
5265
5270
|
},
|
|
5266
5271
|
o(o) {
|
|
5267
|
-
|
|
5272
|
+
De(i, o), t = !1;
|
|
5268
5273
|
},
|
|
5269
5274
|
d(o) {
|
|
5270
5275
|
i && i.d(o);
|
|
5271
5276
|
}
|
|
5272
5277
|
};
|
|
5273
5278
|
}
|
|
5274
|
-
function
|
|
5279
|
+
function tl(e) {
|
|
5275
5280
|
let t, n, r, i, o, l = (
|
|
5276
5281
|
/*$_*/
|
|
5277
5282
|
e[8]("sessionExpirationLoadingButton") + ""
|
|
5278
5283
|
), a;
|
|
5279
5284
|
return {
|
|
5280
5285
|
c() {
|
|
5281
|
-
t =
|
|
5286
|
+
t = ne("div"), n = Se("svg"), r = Se("path"), i = Pe(), o = ne("span"), a = Ge(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");
|
|
5282
5287
|
},
|
|
5283
5288
|
m(c, u) {
|
|
5284
|
-
|
|
5289
|
+
Ue(c, t, u), B(t, n), B(n, r), B(t, i), B(t, o), B(o, a);
|
|
5285
5290
|
},
|
|
5286
5291
|
p(c, u) {
|
|
5287
5292
|
u[0] & /*$_*/
|
|
5288
5293
|
256 && l !== (l = /*$_*/
|
|
5289
|
-
c[8]("sessionExpirationLoadingButton") + "") &&
|
|
5294
|
+
c[8]("sessionExpirationLoadingButton") + "") && Et(a, l);
|
|
5290
5295
|
},
|
|
5291
5296
|
i: ye,
|
|
5292
5297
|
o: ye,
|
|
@@ -5295,44 +5300,44 @@ function nl(e) {
|
|
|
5295
5300
|
}
|
|
5296
5301
|
};
|
|
5297
5302
|
}
|
|
5298
|
-
function
|
|
5303
|
+
function nl(e) {
|
|
5299
5304
|
let t, n = (
|
|
5300
5305
|
/*$_*/
|
|
5301
5306
|
e[8]("sessionExpirationGeneralButton") + ""
|
|
5302
5307
|
), r;
|
|
5303
5308
|
return {
|
|
5304
5309
|
c() {
|
|
5305
|
-
t =
|
|
5310
|
+
t = ne("span"), r = Ge(n), w(t, "class", "CashierSessionExpirationButtonText");
|
|
5306
5311
|
},
|
|
5307
5312
|
m(i, o) {
|
|
5308
|
-
|
|
5313
|
+
Ue(i, t, o), B(t, r);
|
|
5309
5314
|
},
|
|
5310
5315
|
p(i, o) {
|
|
5311
5316
|
o[0] & /*$_*/
|
|
5312
5317
|
256 && n !== (n = /*$_*/
|
|
5313
|
-
i[8]("sessionExpirationGeneralButton") + "") &&
|
|
5318
|
+
i[8]("sessionExpirationGeneralButton") + "") && Et(r, n);
|
|
5314
5319
|
},
|
|
5315
5320
|
d(i) {
|
|
5316
5321
|
i && Ae(t);
|
|
5317
5322
|
}
|
|
5318
5323
|
};
|
|
5319
5324
|
}
|
|
5320
|
-
function
|
|
5325
|
+
function rl(e) {
|
|
5321
5326
|
let t, n, r = (
|
|
5322
5327
|
/*show*/
|
|
5323
5328
|
e[5] && Yr(e)
|
|
5324
5329
|
);
|
|
5325
5330
|
return {
|
|
5326
5331
|
c() {
|
|
5327
|
-
t =
|
|
5332
|
+
t = ne("div"), r && r.c();
|
|
5328
5333
|
},
|
|
5329
5334
|
m(i, o) {
|
|
5330
|
-
|
|
5335
|
+
Ue(i, t, o), r && r.m(t, null), e[26](t), n = !0;
|
|
5331
5336
|
},
|
|
5332
5337
|
p(i, o) {
|
|
5333
5338
|
/*show*/
|
|
5334
5339
|
i[5] ? r ? (r.p(i, o), o[0] & /*show*/
|
|
5335
|
-
32 && He(r, 1)) : (r = Yr(i), r.c(), He(r, 1), r.m(t, null)) : r && (oi(),
|
|
5340
|
+
32 && He(r, 1)) : (r = Yr(i), r.c(), He(r, 1), r.m(t, null)) : r && (oi(), De(r, 1, 1, () => {
|
|
5336
5341
|
r = null;
|
|
5337
5342
|
}), si());
|
|
5338
5343
|
},
|
|
@@ -5340,29 +5345,29 @@ function il(e) {
|
|
|
5340
5345
|
n || (He(r), n = !0);
|
|
5341
5346
|
},
|
|
5342
5347
|
o(i) {
|
|
5343
|
-
|
|
5348
|
+
De(r), n = !1;
|
|
5344
5349
|
},
|
|
5345
5350
|
d(i) {
|
|
5346
5351
|
i && Ae(t), r && r.d(), e[26](null);
|
|
5347
5352
|
}
|
|
5348
5353
|
};
|
|
5349
5354
|
}
|
|
5350
|
-
const
|
|
5351
|
-
function
|
|
5355
|
+
const il = 90;
|
|
5356
|
+
function ol(e, t, n) {
|
|
5352
5357
|
let r, i;
|
|
5353
|
-
hr(e, jr, (
|
|
5358
|
+
hr(e, jr, (p) => n(21, r = p)), hr(e, ya, (p) => n(8, i = p));
|
|
5354
5359
|
let { $$slots: o = {}, $$scope: l } = t;
|
|
5355
|
-
Gr.extend(
|
|
5356
|
-
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:
|
|
5360
|
+
Gr.extend(ja);
|
|
5361
|
+
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;
|
|
5357
5362
|
var se;
|
|
5358
|
-
(function(
|
|
5359
|
-
|
|
5363
|
+
(function(p) {
|
|
5364
|
+
p.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", p.Success = "Success", p.JwtTokenError = "JwtTokenError";
|
|
5360
5365
|
})(se || (se = {}));
|
|
5361
|
-
const Ee = (
|
|
5362
|
-
|
|
5363
|
-
},
|
|
5366
|
+
const Ee = (p) => {
|
|
5367
|
+
p.data.type === "StartSessionCountdown" && (z = p.data.paymentMethodName);
|
|
5368
|
+
}, C = (p) => {
|
|
5364
5369
|
try {
|
|
5365
|
-
return JSON.parse(atob(
|
|
5370
|
+
return JSON.parse(atob(p.split(".")[1]));
|
|
5366
5371
|
} catch (k) {
|
|
5367
5372
|
return null;
|
|
5368
5373
|
}
|
|
@@ -5370,65 +5375,65 @@ function sl(e, t, n) {
|
|
|
5370
5375
|
window.postMessage(
|
|
5371
5376
|
{
|
|
5372
5377
|
type: "ErrorResponseCode",
|
|
5373
|
-
errorResponseCode:
|
|
5378
|
+
errorResponseCode: O
|
|
5374
5379
|
},
|
|
5375
5380
|
window.location.href
|
|
5376
5381
|
);
|
|
5377
|
-
}, h = (
|
|
5382
|
+
}, h = (p) => {
|
|
5378
5383
|
n(5, I = !1);
|
|
5379
|
-
const k =
|
|
5380
|
-
k && (fe = k == null ? void 0 : k.exp, n(7, oe = fe),
|
|
5384
|
+
const k = C(p);
|
|
5385
|
+
k && (fe = k == null ? void 0 : k.exp, n(7, oe = fe), ee && clearInterval(ee), ee = setInterval(
|
|
5381
5386
|
() => {
|
|
5382
|
-
const
|
|
5383
|
-
n(7, oe = fe -
|
|
5387
|
+
const Y = Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3);
|
|
5388
|
+
n(7, oe = fe - Y), oe <= il && n(5, I = !0), Y >= fe && (E(), window.postMessage({ type: "SessionExpired" }, window.location.href));
|
|
5384
5389
|
},
|
|
5385
5390
|
1e3
|
|
5386
5391
|
));
|
|
5387
5392
|
}, E = () => {
|
|
5388
|
-
n(7, oe = 0), n(5, I = !1), clearInterval(
|
|
5393
|
+
n(7, oe = 0), n(5, I = !1), clearInterval(ee);
|
|
5389
5394
|
}, b = () => {
|
|
5390
|
-
if (
|
|
5395
|
+
if (V)
|
|
5391
5396
|
return;
|
|
5392
|
-
const
|
|
5393
|
-
n(6,
|
|
5394
|
-
const
|
|
5397
|
+
const p = new URL(`${g}/v1/player/${U}/payment/GetPaymentMethod`), k = new Headers();
|
|
5398
|
+
n(6, V = !0), k.append("accept", "application/json"), k.append("Content-Type", "application/json"), k.append("X-Client-Request-Timestamp", Gr.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
5399
|
+
const Y = {
|
|
5395
5400
|
method: "POST",
|
|
5396
5401
|
mode: "cors",
|
|
5397
5402
|
headers: k,
|
|
5398
5403
|
body: JSON.stringify({
|
|
5399
|
-
PaymentMethodName:
|
|
5404
|
+
PaymentMethodName: z || X,
|
|
5400
5405
|
Currency: N,
|
|
5401
5406
|
XPaymentSessionToken: r
|
|
5402
5407
|
})
|
|
5403
5408
|
};
|
|
5404
|
-
fetch(
|
|
5405
|
-
if (
|
|
5409
|
+
fetch(p, Y).then((Z) => Z.json()).then((Z) => {
|
|
5410
|
+
if (Z.error) {
|
|
5406
5411
|
window.postMessage(
|
|
5407
5412
|
{
|
|
5408
5413
|
type: "ShowSessionError",
|
|
5409
|
-
error:
|
|
5414
|
+
error: Z.error
|
|
5410
5415
|
},
|
|
5411
5416
|
window.location.href
|
|
5412
5417
|
), E();
|
|
5413
5418
|
return;
|
|
5414
5419
|
}
|
|
5415
|
-
if (
|
|
5416
|
-
|
|
5420
|
+
if (Z.ResponseCode === se.PlayerSessionIsNotValid || Z.ResponseCode === se.JwtTokenError) {
|
|
5421
|
+
O = Z.ResponseCode, E(), _();
|
|
5417
5422
|
return;
|
|
5418
5423
|
}
|
|
5419
|
-
if (
|
|
5420
|
-
|
|
5424
|
+
if (Z.ResponseCode !== se.Success) {
|
|
5425
|
+
O = Z.ResponseCode, E();
|
|
5421
5426
|
return;
|
|
5422
5427
|
}
|
|
5423
|
-
|
|
5424
|
-
}).finally(() => n(6,
|
|
5425
|
-
}, L = (
|
|
5426
|
-
const k =
|
|
5427
|
-
|
|
5428
|
-
},
|
|
5428
|
+
Z.XPaymentSessionToken && jr.set(Z.XPaymentSessionToken);
|
|
5429
|
+
}).finally(() => n(6, V = !1));
|
|
5430
|
+
}, L = (p) => {
|
|
5431
|
+
const k = p.currentTarget;
|
|
5432
|
+
p.target === k && b();
|
|
5433
|
+
}, M = () => {
|
|
5429
5434
|
fetch(x).then((k) => k.json()).then((k) => {
|
|
5430
|
-
Object.keys(k).forEach((
|
|
5431
|
-
Hr(
|
|
5435
|
+
Object.keys(k).forEach((Y) => {
|
|
5436
|
+
Hr(Y, k[Y]);
|
|
5432
5437
|
});
|
|
5433
5438
|
}).catch((k) => {
|
|
5434
5439
|
console.log(k);
|
|
@@ -5436,40 +5441,40 @@ function sl(e, t, n) {
|
|
|
5436
5441
|
}, v = () => {
|
|
5437
5442
|
window.postMessage({ type: "Cashier:goToHome" }, window.location.href), n(5, I = !1);
|
|
5438
5443
|
};
|
|
5439
|
-
Object.keys(Nr).forEach((
|
|
5440
|
-
Hr(
|
|
5444
|
+
Object.keys(Nr).forEach((p) => {
|
|
5445
|
+
Hr(p, Nr[p]);
|
|
5441
5446
|
});
|
|
5442
|
-
const
|
|
5443
|
-
|
|
5447
|
+
const W = () => {
|
|
5448
|
+
xa(A);
|
|
5444
5449
|
};
|
|
5445
5450
|
_o(() => (window.addEventListener("message", Ee, !1), () => {
|
|
5446
5451
|
window.removeEventListener("message", Ee);
|
|
5447
5452
|
})), bo(() => {
|
|
5448
|
-
clearInterval(
|
|
5453
|
+
clearInterval(ee);
|
|
5449
5454
|
});
|
|
5450
|
-
function P(
|
|
5451
|
-
|
|
5452
|
-
H =
|
|
5455
|
+
function P(p) {
|
|
5456
|
+
Xt[p ? "unshift" : "push"](() => {
|
|
5457
|
+
H = p, n(4, H);
|
|
5453
5458
|
});
|
|
5454
5459
|
}
|
|
5455
|
-
function
|
|
5460
|
+
function J() {
|
|
5456
5461
|
u = this.clientWidth, f = this.clientHeight, n(0, u), n(1, f);
|
|
5457
5462
|
}
|
|
5458
|
-
function D(
|
|
5459
|
-
|
|
5460
|
-
H =
|
|
5463
|
+
function D(p) {
|
|
5464
|
+
Xt[p ? "unshift" : "push"](() => {
|
|
5465
|
+
H = p, n(4, H);
|
|
5461
5466
|
});
|
|
5462
5467
|
}
|
|
5463
|
-
return e.$$set = (
|
|
5464
|
-
"clientstyling" in
|
|
5468
|
+
return e.$$set = (p) => {
|
|
5469
|
+
"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);
|
|
5465
5470
|
}, e.$$.update = () => {
|
|
5466
5471
|
e.$$.dirty[0] & /*$xPaymentSessionToken*/
|
|
5467
5472
|
2097152 && h(r), e.$$.dirty[0] & /*lang*/
|
|
5468
|
-
16384 && A &&
|
|
5469
|
-
4112 && a && H &&
|
|
5470
|
-
8208 && c && H &&
|
|
5471
|
-
1048592 && R && H &&
|
|
5472
|
-
32768 && x &&
|
|
5473
|
+
16384 && A && W(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5474
|
+
4112 && a && H && za(H, a), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5475
|
+
8208 && c && H && Wa(H, c), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5476
|
+
1048592 && R && H && Va(H, `${R}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
5477
|
+
32768 && x && M();
|
|
5473
5478
|
}, [
|
|
5474
5479
|
u,
|
|
5475
5480
|
f,
|
|
@@ -5477,7 +5482,7 @@ function sl(e, t, n) {
|
|
|
5477
5482
|
y,
|
|
5478
5483
|
H,
|
|
5479
5484
|
I,
|
|
5480
|
-
|
|
5485
|
+
V,
|
|
5481
5486
|
oe,
|
|
5482
5487
|
i,
|
|
5483
5488
|
b,
|
|
@@ -5490,23 +5495,23 @@ function sl(e, t, n) {
|
|
|
5490
5495
|
g,
|
|
5491
5496
|
N,
|
|
5492
5497
|
U,
|
|
5493
|
-
|
|
5498
|
+
X,
|
|
5494
5499
|
R,
|
|
5495
5500
|
r,
|
|
5496
5501
|
l,
|
|
5497
5502
|
o,
|
|
5498
5503
|
P,
|
|
5499
|
-
|
|
5504
|
+
J,
|
|
5500
5505
|
D
|
|
5501
5506
|
];
|
|
5502
5507
|
}
|
|
5503
|
-
class
|
|
5508
|
+
class sl extends Lo {
|
|
5504
5509
|
constructor(t) {
|
|
5505
|
-
super(),
|
|
5510
|
+
super(), Co(
|
|
5506
5511
|
this,
|
|
5507
5512
|
t,
|
|
5508
|
-
|
|
5509
|
-
|
|
5513
|
+
ol,
|
|
5514
|
+
rl,
|
|
5510
5515
|
Qr,
|
|
5511
5516
|
{
|
|
5512
5517
|
clientstyling: 12,
|
|
@@ -5523,7 +5528,7 @@ class al extends Lo {
|
|
|
5523
5528
|
selectedpaymentmethodname: 19,
|
|
5524
5529
|
mbsource: 20
|
|
5525
5530
|
},
|
|
5526
|
-
|
|
5531
|
+
Xa,
|
|
5527
5532
|
[-1, -1]
|
|
5528
5533
|
);
|
|
5529
5534
|
}
|
|
@@ -5531,82 +5536,82 @@ class al extends Lo {
|
|
|
5531
5536
|
return this.$$.ctx[12];
|
|
5532
5537
|
}
|
|
5533
5538
|
set clientstyling(t) {
|
|
5534
|
-
this.$$set({ clientstyling: t }),
|
|
5539
|
+
this.$$set({ clientstyling: t }), pe();
|
|
5535
5540
|
}
|
|
5536
5541
|
get clientstylingurl() {
|
|
5537
5542
|
return this.$$.ctx[13];
|
|
5538
5543
|
}
|
|
5539
5544
|
set clientstylingurl(t) {
|
|
5540
|
-
this.$$set({ clientstylingurl: t }),
|
|
5545
|
+
this.$$set({ clientstylingurl: t }), pe();
|
|
5541
5546
|
}
|
|
5542
5547
|
get width() {
|
|
5543
5548
|
return this.$$.ctx[0];
|
|
5544
5549
|
}
|
|
5545
5550
|
set width(t) {
|
|
5546
|
-
this.$$set({ width: t }),
|
|
5551
|
+
this.$$set({ width: t }), pe();
|
|
5547
5552
|
}
|
|
5548
5553
|
get height() {
|
|
5549
5554
|
return this.$$.ctx[1];
|
|
5550
5555
|
}
|
|
5551
5556
|
set height(t) {
|
|
5552
|
-
this.$$set({ height: t }),
|
|
5557
|
+
this.$$set({ height: t }), pe();
|
|
5553
5558
|
}
|
|
5554
5559
|
get duration() {
|
|
5555
5560
|
return this.$$.ctx[2];
|
|
5556
5561
|
}
|
|
5557
5562
|
set duration(t) {
|
|
5558
|
-
this.$$set({ duration: t }),
|
|
5563
|
+
this.$$set({ duration: t }), pe();
|
|
5559
5564
|
}
|
|
5560
5565
|
get assetsurl() {
|
|
5561
5566
|
return this.$$.ctx[3];
|
|
5562
5567
|
}
|
|
5563
5568
|
set assetsurl(t) {
|
|
5564
|
-
this.$$set({ assetsurl: t }),
|
|
5569
|
+
this.$$set({ assetsurl: t }), pe();
|
|
5565
5570
|
}
|
|
5566
5571
|
get lang() {
|
|
5567
5572
|
return this.$$.ctx[14];
|
|
5568
5573
|
}
|
|
5569
5574
|
set lang(t) {
|
|
5570
|
-
this.$$set({ lang: t }),
|
|
5575
|
+
this.$$set({ lang: t }), pe();
|
|
5571
5576
|
}
|
|
5572
5577
|
get translationurl() {
|
|
5573
5578
|
return this.$$.ctx[15];
|
|
5574
5579
|
}
|
|
5575
5580
|
set translationurl(t) {
|
|
5576
|
-
this.$$set({ translationurl: t }),
|
|
5581
|
+
this.$$set({ translationurl: t }), pe();
|
|
5577
5582
|
}
|
|
5578
5583
|
get endpoint() {
|
|
5579
5584
|
return this.$$.ctx[16];
|
|
5580
5585
|
}
|
|
5581
5586
|
set endpoint(t) {
|
|
5582
|
-
this.$$set({ endpoint: t }),
|
|
5587
|
+
this.$$set({ endpoint: t }), pe();
|
|
5583
5588
|
}
|
|
5584
5589
|
get currency() {
|
|
5585
5590
|
return this.$$.ctx[17];
|
|
5586
5591
|
}
|
|
5587
5592
|
set currency(t) {
|
|
5588
|
-
this.$$set({ currency: t }),
|
|
5593
|
+
this.$$set({ currency: t }), pe();
|
|
5589
5594
|
}
|
|
5590
5595
|
get customerid() {
|
|
5591
5596
|
return this.$$.ctx[18];
|
|
5592
5597
|
}
|
|
5593
5598
|
set customerid(t) {
|
|
5594
|
-
this.$$set({ customerid: t }),
|
|
5599
|
+
this.$$set({ customerid: t }), pe();
|
|
5595
5600
|
}
|
|
5596
5601
|
get selectedpaymentmethodname() {
|
|
5597
5602
|
return this.$$.ctx[19];
|
|
5598
5603
|
}
|
|
5599
5604
|
set selectedpaymentmethodname(t) {
|
|
5600
|
-
this.$$set({ selectedpaymentmethodname: t }),
|
|
5605
|
+
this.$$set({ selectedpaymentmethodname: t }), pe();
|
|
5601
5606
|
}
|
|
5602
5607
|
get mbsource() {
|
|
5603
5608
|
return this.$$.ctx[20];
|
|
5604
5609
|
}
|
|
5605
5610
|
set mbsource(t) {
|
|
5606
|
-
this.$$set({ mbsource: t }),
|
|
5611
|
+
this.$$set({ mbsource: t }), pe();
|
|
5607
5612
|
}
|
|
5608
5613
|
}
|
|
5609
|
-
|
|
5614
|
+
Oo(sl, { clientstyling: {}, clientstylingurl: {}, width: {}, height: {}, duration: {}, assetsurl: {}, lang: {}, translationurl: {}, endpoint: {}, currency: {}, customerid: {}, selectedpaymentmethodname: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
5610
5615
|
export {
|
|
5611
|
-
|
|
5616
|
+
sl as default
|
|
5612
5617
|
};
|