@everymatrix/casino-404 1.56.3 → 1.58.0
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/Casino404-Ciq-EoiM.cjs +16 -0
- package/components/{Casino404-BAwtFpIN.js → Casino404-CjwDqoe2.js} +410 -412
- package/components/{Casino404-CDo-vfq7.js → Casino404-zsu7m4wc.js} +420 -422
- package/es2015/casino-404.cjs +1 -1
- package/es2015/casino-404.js +1 -1
- package/esnext/casino-404.js +1 -1
- package/package.json +1 -1
- package/components/Casino404-DilLgg_z.cjs +0 -16
@@ -1,24 +1,24 @@
|
|
1
1
|
function S() {
|
2
2
|
}
|
3
|
-
function
|
3
|
+
function it(e) {
|
4
4
|
return e();
|
5
5
|
}
|
6
|
-
function
|
6
|
+
function Ue() {
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
8
8
|
}
|
9
9
|
function te(e) {
|
10
|
-
e.forEach(
|
10
|
+
e.forEach(it);
|
11
11
|
}
|
12
12
|
function $e(e) {
|
13
13
|
return typeof e == "function";
|
14
14
|
}
|
15
|
-
function
|
15
|
+
function ot(e, t) {
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
17
17
|
}
|
18
|
-
function
|
18
|
+
function Mt(e) {
|
19
19
|
return Object.keys(e).length === 0;
|
20
20
|
}
|
21
|
-
function
|
21
|
+
function at(e, ...t) {
|
22
22
|
if (e == null) {
|
23
23
|
for (const n of t)
|
24
24
|
n(void 0);
|
@@ -27,20 +27,20 @@ function ut(e, ...t) {
|
|
27
27
|
const r = e.subscribe(...t);
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
29
29
|
}
|
30
|
-
function
|
31
|
-
e.$$.on_destroy.push(
|
30
|
+
function Lt(e, t, r) {
|
31
|
+
e.$$.on_destroy.push(at(t, r));
|
32
32
|
}
|
33
33
|
function _(e, t) {
|
34
34
|
e.appendChild(t);
|
35
35
|
}
|
36
|
-
function
|
37
|
-
const n =
|
36
|
+
function Ct(e, t, r) {
|
37
|
+
const n = $t(e);
|
38
38
|
if (!n.getElementById(t)) {
|
39
39
|
const i = L("style");
|
40
|
-
i.id = t, i.textContent = r,
|
40
|
+
i.id = t, i.textContent = r, Rt(n, i);
|
41
41
|
}
|
42
42
|
}
|
43
|
-
function
|
43
|
+
function $t(e) {
|
44
44
|
if (!e)
|
45
45
|
return document;
|
46
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
@@ -50,14 +50,14 @@ function Ft(e) {
|
|
50
50
|
t
|
51
51
|
) : e.ownerDocument;
|
52
52
|
}
|
53
|
-
function
|
53
|
+
function Rt(e, t) {
|
54
54
|
return _(
|
55
55
|
/** @type {Document} */
|
56
56
|
e.head || e,
|
57
57
|
t
|
58
58
|
), t.sheet;
|
59
59
|
}
|
60
|
-
function
|
60
|
+
function st(e, t, r) {
|
61
61
|
e.insertBefore(t, r || null);
|
62
62
|
}
|
63
63
|
function Re(e) {
|
@@ -75,20 +75,20 @@ function ie(e) {
|
|
75
75
|
function ge() {
|
76
76
|
return ie(" ");
|
77
77
|
}
|
78
|
-
function
|
78
|
+
function Ft(e, t, r, n) {
|
79
79
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
80
80
|
}
|
81
81
|
function x(e, t, r) {
|
82
82
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
83
83
|
}
|
84
|
-
function
|
84
|
+
function Gt(e) {
|
85
85
|
return Array.from(e.childNodes);
|
86
86
|
}
|
87
87
|
function de(e, t) {
|
88
88
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
89
89
|
t);
|
90
90
|
}
|
91
|
-
function
|
91
|
+
function Dt(e) {
|
92
92
|
const t = {};
|
93
93
|
return e.childNodes.forEach(
|
94
94
|
/** @param {Element} node */
|
@@ -101,20 +101,20 @@ let Y;
|
|
101
101
|
function J(e) {
|
102
102
|
Y = e;
|
103
103
|
}
|
104
|
-
function
|
104
|
+
function Ut() {
|
105
105
|
if (!Y)
|
106
106
|
throw new Error("Function called outside component initialization");
|
107
107
|
return Y;
|
108
108
|
}
|
109
|
-
function
|
110
|
-
|
109
|
+
function kt(e) {
|
110
|
+
Ut().$$.on_mount.push(e);
|
111
111
|
}
|
112
112
|
const D = [], Te = [];
|
113
113
|
let U = [];
|
114
|
-
const
|
114
|
+
const ke = [], jt = /* @__PURE__ */ Promise.resolve();
|
115
115
|
let Pe = !1;
|
116
|
-
function
|
117
|
-
Pe || (Pe = !0,
|
116
|
+
function Vt() {
|
117
|
+
Pe || (Pe = !0, jt.then(C));
|
118
118
|
}
|
119
119
|
function Ne(e) {
|
120
120
|
U.push(e);
|
@@ -129,7 +129,7 @@ function C() {
|
|
129
129
|
try {
|
130
130
|
for (; F < D.length; ) {
|
131
131
|
const t = D[F];
|
132
|
-
F++, J(t),
|
132
|
+
F++, J(t), Xt(t.$$);
|
133
133
|
}
|
134
134
|
} catch (t) {
|
135
135
|
throw D.length = 0, F = 0, t;
|
@@ -142,40 +142,40 @@ function C() {
|
|
142
142
|
}
|
143
143
|
U.length = 0;
|
144
144
|
} while (D.length);
|
145
|
-
for (;
|
146
|
-
|
145
|
+
for (; ke.length; )
|
146
|
+
ke.pop()();
|
147
147
|
Pe = !1, be.clear(), J(e);
|
148
148
|
}
|
149
|
-
function
|
149
|
+
function Xt(e) {
|
150
150
|
if (e.fragment !== null) {
|
151
151
|
e.update(), te(e.before_update);
|
152
152
|
const t = e.dirty;
|
153
153
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ne);
|
154
154
|
}
|
155
155
|
}
|
156
|
-
function
|
156
|
+
function zt(e) {
|
157
157
|
const t = [], r = [];
|
158
158
|
U.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), U = t;
|
159
159
|
}
|
160
|
-
const
|
161
|
-
function
|
162
|
-
e && e.i && (
|
160
|
+
const Zt = /* @__PURE__ */ new Set();
|
161
|
+
function Wt(e, t) {
|
162
|
+
e && e.i && (Zt.delete(e), e.i(t));
|
163
163
|
}
|
164
|
-
function
|
164
|
+
function Qt(e, t, r) {
|
165
165
|
const { fragment: n, after_update: i } = e.$$;
|
166
166
|
n && n.m(t, r), Ne(() => {
|
167
|
-
const o = e.$$.on_mount.map(
|
167
|
+
const o = e.$$.on_mount.map(it).filter($e);
|
168
168
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : te(o), e.$$.on_mount = [];
|
169
169
|
}), i.forEach(Ne);
|
170
170
|
}
|
171
|
-
function
|
171
|
+
function qt(e, t) {
|
172
172
|
const r = e.$$;
|
173
|
-
r.fragment !== null && (
|
173
|
+
r.fragment !== null && (zt(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
174
174
|
}
|
175
|
-
function
|
176
|
-
e.$$.dirty[0] === -1 && (D.push(e),
|
175
|
+
function Jt(e, t) {
|
176
|
+
e.$$.dirty[0] === -1 && (D.push(e), Vt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
177
177
|
}
|
178
|
-
function
|
178
|
+
function Yt(e, t, r, n, i, o, u = null, s = [-1]) {
|
179
179
|
const l = Y;
|
180
180
|
J(e);
|
181
181
|
const a = e.$$ = {
|
@@ -185,7 +185,7 @@ function er(e, t, r, n, i, o, u = null, s = [-1]) {
|
|
185
185
|
props: o,
|
186
186
|
update: S,
|
187
187
|
not_equal: i,
|
188
|
-
bound:
|
188
|
+
bound: Ue(),
|
189
189
|
// lifecycle
|
190
190
|
on_mount: [],
|
191
191
|
on_destroy: [],
|
@@ -194,28 +194,28 @@ function er(e, t, r, n, i, o, u = null, s = [-1]) {
|
|
194
194
|
after_update: [],
|
195
195
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
196
196
|
// everything else
|
197
|
-
callbacks:
|
197
|
+
callbacks: Ue(),
|
198
198
|
dirty: s,
|
199
199
|
skip_bound: !1,
|
200
200
|
root: t.target || l.$$.root
|
201
201
|
};
|
202
202
|
u && u(a.root);
|
203
203
|
let h = !1;
|
204
|
-
if (a.ctx = r ? r(e, t.props || {}, (
|
205
|
-
const y = b.length ? b[0] :
|
206
|
-
return a.ctx && i(a.ctx[
|
204
|
+
if (a.ctx = r ? r(e, t.props || {}, (f, c, ...b) => {
|
205
|
+
const y = b.length ? b[0] : c;
|
206
|
+
return a.ctx && i(a.ctx[f], a.ctx[f] = y) && (!a.skip_bound && a.bound[f] && a.bound[f](y), h && Jt(e, f)), c;
|
207
207
|
}) : [], a.update(), h = !0, te(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
208
208
|
if (t.hydrate) {
|
209
|
-
const
|
210
|
-
a.fragment && a.fragment.l(
|
209
|
+
const f = Gt(t.target);
|
210
|
+
a.fragment && a.fragment.l(f), f.forEach(Re);
|
211
211
|
} else
|
212
212
|
a.fragment && a.fragment.c();
|
213
|
-
t.intro &&
|
213
|
+
t.intro && Wt(e.$$.fragment), Qt(e, t.target, t.anchor), C();
|
214
214
|
}
|
215
215
|
J(l);
|
216
216
|
}
|
217
|
-
let
|
218
|
-
typeof HTMLElement == "function" && (
|
217
|
+
let ut;
|
218
|
+
typeof HTMLElement == "function" && (ut = class extends HTMLElement {
|
219
219
|
/** The Svelte component constructor */
|
220
220
|
$$ctor;
|
221
221
|
/** Slots */
|
@@ -264,7 +264,7 @@ typeof HTMLElement == "function" && (lt = class extends HTMLElement {
|
|
264
264
|
* @param {HTMLElement} [anchor]
|
265
265
|
*/
|
266
266
|
m: function(l, a) {
|
267
|
-
|
267
|
+
st(l, o, a);
|
268
268
|
},
|
269
269
|
d: function(l) {
|
270
270
|
l && Re(o);
|
@@ -274,7 +274,7 @@ typeof HTMLElement == "function" && (lt = class extends HTMLElement {
|
|
274
274
|
};
|
275
275
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
276
276
|
return;
|
277
|
-
const t = {}, r =
|
277
|
+
const t = {}, r = Dt(this);
|
278
278
|
for (const i of this.$$s)
|
279
279
|
i in r && (t[i] = [e(i)]);
|
280
280
|
for (const i of this.attributes) {
|
@@ -361,8 +361,8 @@ function oe(e, t, r, n) {
|
|
361
361
|
return t;
|
362
362
|
}
|
363
363
|
}
|
364
|
-
function
|
365
|
-
let u = class extends
|
364
|
+
function Kt(e, t, r, n, i, o) {
|
365
|
+
let u = class extends ut {
|
366
366
|
constructor() {
|
367
367
|
super(e, r, i), this.$$p_d = t;
|
368
368
|
}
|
@@ -390,7 +390,7 @@ function tr(e, t, r, n, i, o) {
|
|
390
390
|
}), e.element = /** @type {any} */
|
391
391
|
u, u;
|
392
392
|
}
|
393
|
-
class
|
393
|
+
class er {
|
394
394
|
/**
|
395
395
|
* ### PRIVATE API
|
396
396
|
*
|
@@ -409,7 +409,7 @@ class rr {
|
|
409
409
|
$$set = void 0;
|
410
410
|
/** @returns {void} */
|
411
411
|
$destroy() {
|
412
|
-
|
412
|
+
qt(this, 1), this.$destroy = S;
|
413
413
|
}
|
414
414
|
/**
|
415
415
|
* @template {Extract<keyof Events, string>} K
|
@@ -431,13 +431,13 @@ class rr {
|
|
431
431
|
* @returns {void}
|
432
432
|
*/
|
433
433
|
$set(t) {
|
434
|
-
this.$$set && !
|
434
|
+
this.$$set && !Mt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
435
435
|
}
|
436
436
|
}
|
437
|
-
const
|
438
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
437
|
+
const tr = "4";
|
438
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(tr);
|
439
439
|
const G = [];
|
440
|
-
function
|
440
|
+
function rr(e, t) {
|
441
441
|
return {
|
442
442
|
subscribe: le(e, t).subscribe
|
443
443
|
};
|
@@ -446,7 +446,7 @@ function le(e, t = S) {
|
|
446
446
|
let r;
|
447
447
|
const n = /* @__PURE__ */ new Set();
|
448
448
|
function i(s) {
|
449
|
-
if (
|
449
|
+
if (ot(e, s) && (e = s, r)) {
|
450
450
|
const l = !G.length;
|
451
451
|
for (const a of n)
|
452
452
|
a[1](), G.push(a, e);
|
@@ -473,96 +473,96 @@ function z(e, t, r) {
|
|
473
473
|
if (!i.every(Boolean))
|
474
474
|
throw new Error("derived() expects stores as input, got a falsy value");
|
475
475
|
const o = t.length < 2;
|
476
|
-
return
|
476
|
+
return rr(r, (u, s) => {
|
477
477
|
let l = !1;
|
478
478
|
const a = [];
|
479
|
-
let h = 0,
|
480
|
-
const
|
479
|
+
let h = 0, f = S;
|
480
|
+
const c = () => {
|
481
481
|
if (h)
|
482
482
|
return;
|
483
|
-
|
483
|
+
f();
|
484
484
|
const y = t(n ? a[0] : a, u, s);
|
485
|
-
o ? u(y) :
|
485
|
+
o ? u(y) : f = $e(y) ? y : S;
|
486
486
|
}, b = i.map(
|
487
|
-
(y, m) =>
|
487
|
+
(y, m) => at(
|
488
488
|
y,
|
489
489
|
(E) => {
|
490
|
-
a[m] = E, h &= ~(1 << m), l &&
|
490
|
+
a[m] = E, h &= ~(1 << m), l && c();
|
491
491
|
},
|
492
492
|
() => {
|
493
493
|
h |= 1 << m;
|
494
494
|
}
|
495
495
|
)
|
496
496
|
);
|
497
|
-
return l = !0,
|
498
|
-
te(b),
|
497
|
+
return l = !0, c(), function() {
|
498
|
+
te(b), f(), l = !1;
|
499
499
|
};
|
500
500
|
});
|
501
501
|
}
|
502
|
-
function
|
502
|
+
function nr(e) {
|
503
503
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
504
504
|
}
|
505
|
-
var
|
506
|
-
return
|
505
|
+
var ir = function(t) {
|
506
|
+
return or(t) && !ar(t);
|
507
507
|
};
|
508
|
-
function
|
508
|
+
function or(e) {
|
509
509
|
return !!e && typeof e == "object";
|
510
510
|
}
|
511
|
-
function
|
511
|
+
function ar(e) {
|
512
512
|
var t = Object.prototype.toString.call(e);
|
513
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
513
|
+
return t === "[object RegExp]" || t === "[object Date]" || hr(e);
|
514
514
|
}
|
515
|
-
var
|
516
|
-
function
|
517
|
-
return e.$$typeof ===
|
515
|
+
var sr = typeof Symbol == "function" && Symbol.for, ur = sr ? Symbol.for("react.element") : 60103;
|
516
|
+
function hr(e) {
|
517
|
+
return e.$$typeof === ur;
|
518
518
|
}
|
519
|
-
function
|
519
|
+
function lr(e) {
|
520
520
|
return Array.isArray(e) ? [] : {};
|
521
521
|
}
|
522
522
|
function K(e, t) {
|
523
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? k(
|
523
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? k(lr(e), e, t) : e;
|
524
524
|
}
|
525
|
-
function
|
525
|
+
function fr(e, t, r) {
|
526
526
|
return e.concat(t).map(function(n) {
|
527
527
|
return K(n, r);
|
528
528
|
});
|
529
529
|
}
|
530
|
-
function
|
530
|
+
function cr(e, t) {
|
531
531
|
if (!t.customMerge)
|
532
532
|
return k;
|
533
533
|
var r = t.customMerge(e);
|
534
534
|
return typeof r == "function" ? r : k;
|
535
535
|
}
|
536
|
-
function
|
536
|
+
function mr(e) {
|
537
537
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
538
538
|
return Object.propertyIsEnumerable.call(e, t);
|
539
539
|
}) : [];
|
540
540
|
}
|
541
|
-
function
|
542
|
-
return Object.keys(e).concat(
|
541
|
+
function je(e) {
|
542
|
+
return Object.keys(e).concat(mr(e));
|
543
543
|
}
|
544
|
-
function
|
544
|
+
function ht(e, t) {
|
545
545
|
try {
|
546
546
|
return t in e;
|
547
547
|
} catch {
|
548
548
|
return !1;
|
549
549
|
}
|
550
550
|
}
|
551
|
-
function
|
552
|
-
return
|
551
|
+
function pr(e, t) {
|
552
|
+
return ht(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
553
553
|
}
|
554
|
-
function
|
554
|
+
function gr(e, t, r) {
|
555
555
|
var n = {};
|
556
|
-
return r.isMergeableObject(e) &&
|
556
|
+
return r.isMergeableObject(e) && je(e).forEach(function(i) {
|
557
557
|
n[i] = K(e[i], r);
|
558
|
-
}),
|
559
|
-
|
558
|
+
}), je(t).forEach(function(i) {
|
559
|
+
pr(e, i) || (ht(e, i) && r.isMergeableObject(t[i]) ? n[i] = cr(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
|
560
560
|
}), n;
|
561
561
|
}
|
562
562
|
function k(e, t, r) {
|
563
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
563
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || fr, r.isMergeableObject = r.isMergeableObject || ir, r.cloneUnlessOtherwiseSpecified = K;
|
564
564
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
565
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
565
|
+
return o ? n ? r.arrayMerge(e, t, r) : gr(e, t, r) : K(t, r);
|
566
566
|
}
|
567
567
|
k.all = function(t, r) {
|
568
568
|
if (!Array.isArray(t))
|
@@ -571,8 +571,8 @@ k.all = function(t, r) {
|
|
571
571
|
return k(n, i, r);
|
572
572
|
}, {});
|
573
573
|
};
|
574
|
-
var
|
575
|
-
const
|
574
|
+
var dr = k, br = dr;
|
575
|
+
const xr = /* @__PURE__ */ nr(br);
|
576
576
|
/*! *****************************************************************************
|
577
577
|
Copyright (c) Microsoft Corporation.
|
578
578
|
|
@@ -595,7 +595,7 @@ var Be = function(e, t) {
|
|
595
595
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
596
596
|
}, Be(e, t);
|
597
597
|
};
|
598
|
-
function
|
598
|
+
function fe(e, t) {
|
599
599
|
if (typeof t != "function" && t !== null)
|
600
600
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
601
601
|
Be(e, t);
|
@@ -614,7 +614,7 @@ var d = function() {
|
|
614
614
|
return t;
|
615
615
|
}, d.apply(this, arguments);
|
616
616
|
};
|
617
|
-
function
|
617
|
+
function yr(e, t) {
|
618
618
|
var r = {};
|
619
619
|
for (var n in e)
|
620
620
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
@@ -630,55 +630,53 @@ function xe(e, t, r) {
|
|
630
630
|
return e.concat(o || t);
|
631
631
|
}
|
632
632
|
function ye(e, t) {
|
633
|
-
var r = t && t.cache ? t.cache :
|
633
|
+
var r = t && t.cache ? t.cache : Nr, n = t && t.serializer ? t.serializer : Tr, i = t && t.strategy ? t.strategy : _r;
|
634
634
|
return i(e, {
|
635
635
|
cache: r,
|
636
636
|
serializer: n
|
637
637
|
});
|
638
638
|
}
|
639
|
-
function
|
639
|
+
function vr(e) {
|
640
640
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
641
641
|
}
|
642
|
-
function
|
643
|
-
var i =
|
642
|
+
function Er(e, t, r, n) {
|
643
|
+
var i = vr(n) ? n : r(n), o = t.get(i);
|
644
644
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
645
645
|
}
|
646
|
-
function
|
646
|
+
function lt(e, t, r) {
|
647
647
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
648
648
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
649
649
|
}
|
650
|
-
function
|
650
|
+
function ft(e, t, r, n, i) {
|
651
651
|
return r.bind(t, e, n, i);
|
652
652
|
}
|
653
|
-
function
|
654
|
-
var r = e.length === 1 ?
|
655
|
-
return
|
656
|
-
}
|
657
|
-
function Tr(e, t) {
|
658
|
-
return Fe(e, this, mt, t.cache.create(), t.serializer);
|
653
|
+
function _r(e, t) {
|
654
|
+
var r = e.length === 1 ? Er : lt;
|
655
|
+
return ft(e, this, r, t.cache.create(), t.serializer);
|
659
656
|
}
|
660
|
-
function
|
661
|
-
return
|
657
|
+
function Hr(e, t) {
|
658
|
+
return ft(e, this, lt, t.cache.create(), t.serializer);
|
662
659
|
}
|
663
|
-
var
|
660
|
+
var Tr = function() {
|
664
661
|
return JSON.stringify(arguments);
|
665
|
-
}
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
662
|
+
}, Pr = (
|
663
|
+
/** @class */
|
664
|
+
function() {
|
665
|
+
function e() {
|
666
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
667
|
+
}
|
668
|
+
return e.prototype.get = function(t) {
|
669
|
+
return this.cache[t];
|
670
|
+
}, e.prototype.set = function(t, r) {
|
671
|
+
this.cache[t] = r;
|
672
|
+
}, e;
|
673
|
+
}()
|
674
|
+
), Nr = {
|
676
675
|
create: function() {
|
677
|
-
return new
|
676
|
+
return new Pr();
|
678
677
|
}
|
679
678
|
}, ve = {
|
680
|
-
variadic:
|
681
|
-
monadic: Pr
|
679
|
+
variadic: Hr
|
682
680
|
}, p;
|
683
681
|
(function(e) {
|
684
682
|
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";
|
@@ -691,43 +689,43 @@ var j;
|
|
691
689
|
(function(e) {
|
692
690
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
693
691
|
})(j || (j = {}));
|
694
|
-
function
|
692
|
+
function Ve(e) {
|
695
693
|
return e.type === v.literal;
|
696
694
|
}
|
697
|
-
function
|
695
|
+
function Br(e) {
|
698
696
|
return e.type === v.argument;
|
699
697
|
}
|
700
|
-
function
|
698
|
+
function ct(e) {
|
701
699
|
return e.type === v.number;
|
702
700
|
}
|
703
|
-
function
|
701
|
+
function mt(e) {
|
704
702
|
return e.type === v.date;
|
705
703
|
}
|
706
|
-
function
|
704
|
+
function pt(e) {
|
707
705
|
return e.type === v.time;
|
708
706
|
}
|
709
|
-
function
|
707
|
+
function gt(e) {
|
710
708
|
return e.type === v.select;
|
711
709
|
}
|
712
|
-
function
|
710
|
+
function dt(e) {
|
713
711
|
return e.type === v.plural;
|
714
712
|
}
|
715
|
-
function
|
713
|
+
function Sr(e) {
|
716
714
|
return e.type === v.pound;
|
717
715
|
}
|
718
|
-
function
|
716
|
+
function bt(e) {
|
719
717
|
return e.type === v.tag;
|
720
718
|
}
|
721
|
-
function
|
719
|
+
function xt(e) {
|
722
720
|
return !!(e && typeof e == "object" && e.type === j.number);
|
723
721
|
}
|
724
722
|
function Se(e) {
|
725
723
|
return !!(e && typeof e == "object" && e.type === j.dateTime);
|
726
724
|
}
|
727
|
-
var
|
728
|
-
function
|
725
|
+
var yt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ar = /(?:[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;
|
726
|
+
function wr(e) {
|
729
727
|
var t = {};
|
730
|
-
return e.replace(
|
728
|
+
return e.replace(Ar, function(r) {
|
731
729
|
var n = r.length;
|
732
730
|
switch (r[0]) {
|
733
731
|
case "G":
|
@@ -816,36 +814,36 @@ function Or(e) {
|
|
816
814
|
return "";
|
817
815
|
}), t;
|
818
816
|
}
|
819
|
-
var
|
817
|
+
var Or = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
820
818
|
function Ir(e) {
|
821
819
|
if (e.length === 0)
|
822
820
|
throw new Error("Number skeleton cannot be empty");
|
823
|
-
for (var t = e.split(
|
824
|
-
return
|
821
|
+
for (var t = e.split(Or).filter(function(c) {
|
822
|
+
return c.length > 0;
|
825
823
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
826
824
|
var o = i[n], u = o.split("/");
|
827
825
|
if (u.length === 0)
|
828
826
|
throw new Error("Invalid number skeleton");
|
829
827
|
for (var s = u[0], l = u.slice(1), a = 0, h = l; a < h.length; a++) {
|
830
|
-
var
|
831
|
-
if (
|
828
|
+
var f = h[a];
|
829
|
+
if (f.length === 0)
|
832
830
|
throw new Error("Invalid number skeleton");
|
833
831
|
}
|
834
832
|
r.push({ stem: s, options: l });
|
835
833
|
}
|
836
834
|
return r;
|
837
835
|
}
|
838
|
-
function
|
836
|
+
function Mr(e) {
|
839
837
|
return e.replace(/^(.*?)-/, "");
|
840
838
|
}
|
841
|
-
var
|
842
|
-
function
|
839
|
+
var Xe = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, vt = /^(@+)?(\+|#+)?[rs]?$/g, Lr = /(\*)(0+)|(#+)(0+)|(0+)/g, Et = /^(0+)$/;
|
840
|
+
function ze(e) {
|
843
841
|
var t = {};
|
844
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
842
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(vt, function(r, n, i) {
|
845
843
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
846
844
|
}), t;
|
847
845
|
}
|
848
|
-
function
|
846
|
+
function _t(e) {
|
849
847
|
switch (e) {
|
850
848
|
case "sign-auto":
|
851
849
|
return {
|
@@ -885,7 +883,7 @@ function Tt(e) {
|
|
885
883
|
};
|
886
884
|
}
|
887
885
|
}
|
888
|
-
function
|
886
|
+
function Cr(e) {
|
889
887
|
var t;
|
890
888
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
891
889
|
notation: "engineering"
|
@@ -893,17 +891,17 @@ function $r(e) {
|
|
893
891
|
notation: "scientific"
|
894
892
|
}, e = e.slice(1)), t) {
|
895
893
|
var r = e.slice(0, 2);
|
896
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
894
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Et.test(e))
|
897
895
|
throw new Error("Malformed concise eng/scientific notation");
|
898
896
|
t.minimumIntegerDigits = e.length;
|
899
897
|
}
|
900
898
|
return t;
|
901
899
|
}
|
902
|
-
function
|
903
|
-
var t = {}, r =
|
900
|
+
function Ze(e) {
|
901
|
+
var t = {}, r = _t(e);
|
904
902
|
return r || t;
|
905
903
|
}
|
906
|
-
function
|
904
|
+
function $r(e) {
|
907
905
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
908
906
|
var i = n[r];
|
909
907
|
switch (i.stem) {
|
@@ -927,7 +925,7 @@ function Rr(e) {
|
|
927
925
|
continue;
|
928
926
|
case "measure-unit":
|
929
927
|
case "unit":
|
930
|
-
t.style = "unit", t.unit =
|
928
|
+
t.style = "unit", t.unit = Mr(i.options[0]);
|
931
929
|
continue;
|
932
930
|
case "compact-short":
|
933
931
|
case "K":
|
@@ -939,12 +937,12 @@ function Rr(e) {
|
|
939
937
|
continue;
|
940
938
|
case "scientific":
|
941
939
|
t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(l, a) {
|
942
|
-
return d(d({}, l),
|
940
|
+
return d(d({}, l), Ze(a));
|
943
941
|
}, {}));
|
944
942
|
continue;
|
945
943
|
case "engineering":
|
946
944
|
t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(l, a) {
|
947
|
-
return d(d({}, l),
|
945
|
+
return d(d({}, l), Ze(a));
|
948
946
|
}, {}));
|
949
947
|
continue;
|
950
948
|
case "notation-simple":
|
@@ -989,11 +987,11 @@ function Rr(e) {
|
|
989
987
|
case "integer-width":
|
990
988
|
if (i.options.length > 1)
|
991
989
|
throw new RangeError("integer-width stems only accept a single optional option");
|
992
|
-
i.options[0].replace(
|
990
|
+
i.options[0].replace(Lr, function(l, a, h, f, c, b) {
|
993
991
|
if (a)
|
994
992
|
t.minimumIntegerDigits = h.length;
|
995
993
|
else {
|
996
|
-
if (
|
994
|
+
if (f && c)
|
997
995
|
throw new Error("We currently do not support maximum integer digits");
|
998
996
|
if (b)
|
999
997
|
throw new Error("We currently do not support exact integer digits");
|
@@ -1002,27 +1000,27 @@ function Rr(e) {
|
|
1002
1000
|
});
|
1003
1001
|
continue;
|
1004
1002
|
}
|
1005
|
-
if (
|
1003
|
+
if (Et.test(i.stem)) {
|
1006
1004
|
t.minimumIntegerDigits = i.stem.length;
|
1007
1005
|
continue;
|
1008
1006
|
}
|
1009
|
-
if (
|
1007
|
+
if (Xe.test(i.stem)) {
|
1010
1008
|
if (i.options.length > 1)
|
1011
1009
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1012
|
-
i.stem.replace(
|
1013
|
-
return h === "*" ? t.minimumFractionDigits = a.length :
|
1010
|
+
i.stem.replace(Xe, function(l, a, h, f, c, b) {
|
1011
|
+
return h === "*" ? t.minimumFractionDigits = a.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && b ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + b.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
1014
1012
|
});
|
1015
1013
|
var o = i.options[0];
|
1016
|
-
o === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = d(d({}, t),
|
1014
|
+
o === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = d(d({}, t), ze(o)));
|
1017
1015
|
continue;
|
1018
1016
|
}
|
1019
|
-
if (
|
1020
|
-
t = d(d({}, t),
|
1017
|
+
if (vt.test(i.stem)) {
|
1018
|
+
t = d(d({}, t), ze(i.stem));
|
1021
1019
|
continue;
|
1022
1020
|
}
|
1023
|
-
var u =
|
1021
|
+
var u = _t(i.stem);
|
1024
1022
|
u && (t = d(d({}, t), u));
|
1025
|
-
var s =
|
1023
|
+
var s = Cr(i.stem);
|
1026
1024
|
s && (t = d(d({}, t), s));
|
1027
1025
|
}
|
1028
1026
|
return t;
|
@@ -2442,13 +2440,13 @@ var ne = {
|
|
2442
2440
|
"h"
|
2443
2441
|
]
|
2444
2442
|
};
|
2445
|
-
function
|
2443
|
+
function Rr(e, t) {
|
2446
2444
|
for (var r = "", n = 0; n < e.length; n++) {
|
2447
2445
|
var i = e.charAt(n);
|
2448
2446
|
if (i === "j") {
|
2449
2447
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2450
2448
|
o++, n++;
|
2451
|
-
var u = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", a =
|
2449
|
+
var u = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", a = Fr(t);
|
2452
2450
|
for ((a == "H" || a == "k") && (s = 0); s-- > 0; )
|
2453
2451
|
r += l;
|
2454
2452
|
for (; u-- > 0; )
|
@@ -2458,7 +2456,7 @@ function Fr(e, t) {
|
|
2458
2456
|
}
|
2459
2457
|
return r;
|
2460
2458
|
}
|
2461
|
-
function
|
2459
|
+
function Fr(e) {
|
2462
2460
|
var t = e.hourCycle;
|
2463
2461
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
2464
2462
|
e.hourCycles && // @ts-ignore
|
@@ -2480,20 +2478,20 @@ function Gr(e) {
|
|
2480
2478
|
var i = ne[n || ""] || ne[r || ""] || ne["".concat(r, "-001")] || ne["001"];
|
2481
2479
|
return i[0];
|
2482
2480
|
}
|
2483
|
-
var Ee,
|
2481
|
+
var Ee, Gr = new RegExp("^".concat(yt.source, "*")), Dr = new RegExp("".concat(yt.source, "*$"));
|
2484
2482
|
function g(e, t) {
|
2485
2483
|
return { start: e, end: t };
|
2486
2484
|
}
|
2487
|
-
var
|
2485
|
+
var Ur = !!String.prototype.startsWith && "_a".startsWith("a", 1), kr = !!String.fromCodePoint, jr = !!Object.fromEntries, Vr = !!String.prototype.codePointAt, Xr = !!String.prototype.trimStart, zr = !!String.prototype.trimEnd, Zr = !!Number.isSafeInteger, Wr = Zr ? Number.isSafeInteger : function(e) {
|
2488
2486
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
2489
2487
|
}, Ae = !0;
|
2490
2488
|
try {
|
2491
|
-
var
|
2492
|
-
Ae = ((Ee =
|
2489
|
+
var Qr = Tt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2490
|
+
Ae = ((Ee = Qr.exec("a")) === null || Ee === void 0 ? void 0 : Ee[0]) === "a";
|
2493
2491
|
} catch {
|
2494
2492
|
Ae = !1;
|
2495
2493
|
}
|
2496
|
-
var
|
2494
|
+
var We = Ur ? (
|
2497
2495
|
// Native
|
2498
2496
|
function(t, r, n) {
|
2499
2497
|
return t.startsWith(r, n);
|
@@ -2503,7 +2501,7 @@ var qe = kr ? (
|
|
2503
2501
|
function(t, r, n) {
|
2504
2502
|
return t.slice(n, n + r.length) === r;
|
2505
2503
|
}
|
2506
|
-
), we =
|
2504
|
+
), we = kr ? String.fromCodePoint : (
|
2507
2505
|
// IE11
|
2508
2506
|
function() {
|
2509
2507
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -2515,9 +2513,9 @@ var qe = kr ? (
|
|
2515
2513
|
}
|
2516
2514
|
return n;
|
2517
2515
|
}
|
2518
|
-
),
|
2516
|
+
), Qe = (
|
2519
2517
|
// native
|
2520
|
-
|
2518
|
+
jr ? Object.fromEntries : (
|
2521
2519
|
// Ponyfill
|
2522
2520
|
function(t) {
|
2523
2521
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
@@ -2527,7 +2525,7 @@ var qe = kr ? (
|
|
2527
2525
|
return r;
|
2528
2526
|
}
|
2529
2527
|
)
|
2530
|
-
),
|
2528
|
+
), Ht = Vr ? (
|
2531
2529
|
// Native
|
2532
2530
|
function(t, r) {
|
2533
2531
|
return t.codePointAt(r);
|
@@ -2541,7 +2539,7 @@ var qe = kr ? (
|
|
2541
2539
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
2542
2540
|
}
|
2543
2541
|
}
|
2544
|
-
),
|
2542
|
+
), qr = Xr ? (
|
2545
2543
|
// Native
|
2546
2544
|
function(t) {
|
2547
2545
|
return t.trimStart();
|
@@ -2549,9 +2547,9 @@ var qe = kr ? (
|
|
2549
2547
|
) : (
|
2550
2548
|
// Ponyfill
|
2551
2549
|
function(t) {
|
2552
|
-
return t.replace(
|
2550
|
+
return t.replace(Gr, "");
|
2553
2551
|
}
|
2554
|
-
),
|
2552
|
+
), Jr = zr ? (
|
2555
2553
|
// Native
|
2556
2554
|
function(t) {
|
2557
2555
|
return t.trimEnd();
|
@@ -2559,32 +2557,32 @@ var qe = kr ? (
|
|
2559
2557
|
) : (
|
2560
2558
|
// Ponyfill
|
2561
2559
|
function(t) {
|
2562
|
-
return t.replace(
|
2560
|
+
return t.replace(Dr, "");
|
2563
2561
|
}
|
2564
2562
|
);
|
2565
|
-
function
|
2563
|
+
function Tt(e, t) {
|
2566
2564
|
return new RegExp(e, t);
|
2567
2565
|
}
|
2568
2566
|
var Oe;
|
2569
2567
|
if (Ae) {
|
2570
|
-
var
|
2568
|
+
var qe = Tt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
2571
2569
|
Oe = function(t, r) {
|
2572
2570
|
var n;
|
2573
|
-
|
2574
|
-
var i =
|
2571
|
+
qe.lastIndex = r;
|
2572
|
+
var i = qe.exec(t);
|
2575
2573
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
2576
2574
|
};
|
2577
2575
|
} else
|
2578
2576
|
Oe = function(t, r) {
|
2579
2577
|
for (var n = []; ; ) {
|
2580
|
-
var i =
|
2581
|
-
if (i === void 0 ||
|
2578
|
+
var i = Ht(t, r);
|
2579
|
+
if (i === void 0 || Pt(i) || tn(i))
|
2582
2580
|
break;
|
2583
2581
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
2584
2582
|
}
|
2585
2583
|
return we.apply(void 0, n);
|
2586
2584
|
};
|
2587
|
-
var
|
2585
|
+
var Yr = (
|
2588
2586
|
/** @class */
|
2589
2587
|
function() {
|
2590
2588
|
function e(t, r) {
|
@@ -2615,7 +2613,7 @@ var Kr = (
|
|
2615
2613
|
if (n)
|
2616
2614
|
break;
|
2617
2615
|
return this.error(p.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
2618
|
-
} else if (o === 60 && !this.ignoreTag &&
|
2616
|
+
} else if (o === 60 && !this.ignoreTag && Ie(this.peek() || 0)) {
|
2619
2617
|
var u = this.parseTag(t, r);
|
2620
2618
|
if (u.err)
|
2621
2619
|
return u;
|
@@ -2648,7 +2646,7 @@ var Kr = (
|
|
2648
2646
|
return o;
|
2649
2647
|
var u = o.val, s = this.clonePosition();
|
2650
2648
|
if (this.bumpIf("</")) {
|
2651
|
-
if (this.isEOF() || !
|
2649
|
+
if (this.isEOF() || !Ie(this.char()))
|
2652
2650
|
return this.error(p.INVALID_TAG, g(s, this.clonePosition()));
|
2653
2651
|
var l = this.clonePosition(), a = this.parseTagName();
|
2654
2652
|
return i !== a ? this.error(p.UNMATCHED_CLOSING_TAG, g(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
@@ -2666,7 +2664,7 @@ var Kr = (
|
|
2666
2664
|
return this.error(p.INVALID_TAG, g(n, this.clonePosition()));
|
2667
2665
|
}, e.prototype.parseTagName = function() {
|
2668
2666
|
var t = this.offset();
|
2669
|
-
for (this.bump(); !this.isEOF() &&
|
2667
|
+
for (this.bump(); !this.isEOF() && en(this.char()); )
|
2670
2668
|
this.bump();
|
2671
2669
|
return this.message.slice(t, this.offset());
|
2672
2670
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -2695,7 +2693,7 @@ var Kr = (
|
|
2695
2693
|
};
|
2696
2694
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
2697
2695
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
2698
|
-
!
|
2696
|
+
!Kr(this.peek() || 0)) ? (this.bump(), "<") : null;
|
2699
2697
|
}, e.prototype.tryParseQuote = function(t) {
|
2700
2698
|
if (this.isEOF() || this.char() !== 39)
|
2701
2699
|
return null;
|
@@ -2779,40 +2777,40 @@ var Kr = (
|
|
2779
2777
|
var a = null;
|
2780
2778
|
if (this.bumpIf(",")) {
|
2781
2779
|
this.bumpSpace();
|
2782
|
-
var h = this.clonePosition(),
|
2783
|
-
if (
|
2784
|
-
return
|
2785
|
-
var
|
2786
|
-
if (
|
2780
|
+
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
2781
|
+
if (f.err)
|
2782
|
+
return f;
|
2783
|
+
var c = Jr(f.val);
|
2784
|
+
if (c.length === 0)
|
2787
2785
|
return this.error(p.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
2788
2786
|
var b = g(h, this.clonePosition());
|
2789
|
-
a = { style:
|
2787
|
+
a = { style: c, styleLocation: b };
|
2790
2788
|
}
|
2791
2789
|
var y = this.tryParseArgumentClose(i);
|
2792
2790
|
if (y.err)
|
2793
2791
|
return y;
|
2794
2792
|
var m = g(i, this.clonePosition());
|
2795
|
-
if (a &&
|
2796
|
-
var E =
|
2793
|
+
if (a && We(a?.style, "::", 0)) {
|
2794
|
+
var E = qr(a.style.slice(2));
|
2797
2795
|
if (s === "number") {
|
2798
|
-
var
|
2799
|
-
return
|
2800
|
-
val: { type: v.number, value: n, location: m, style:
|
2796
|
+
var f = this.parseNumberSkeletonFromString(E, a.styleLocation);
|
2797
|
+
return f.err ? f : {
|
2798
|
+
val: { type: v.number, value: n, location: m, style: f.val },
|
2801
2799
|
err: null
|
2802
2800
|
};
|
2803
2801
|
} else {
|
2804
2802
|
if (E.length === 0)
|
2805
2803
|
return this.error(p.EXPECT_DATE_TIME_SKELETON, m);
|
2806
2804
|
var T = E;
|
2807
|
-
this.locale && (T =
|
2808
|
-
var
|
2805
|
+
this.locale && (T = Rr(E, this.locale));
|
2806
|
+
var c = {
|
2809
2807
|
type: j.dateTime,
|
2810
2808
|
pattern: T,
|
2811
2809
|
location: a.styleLocation,
|
2812
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2810
|
+
parsedOptions: this.shouldParseSkeletons ? wr(T) : {}
|
2813
2811
|
}, A = s === "date" ? v.date : v.time;
|
2814
2812
|
return {
|
2815
|
-
val: { type: A, value: n, location: m, style:
|
2813
|
+
val: { type: A, value: n, location: m, style: c },
|
2816
2814
|
err: null
|
2817
2815
|
};
|
2818
2816
|
}
|
@@ -2839,10 +2837,10 @@ var Kr = (
|
|
2839
2837
|
if (!this.bumpIf(":"))
|
2840
2838
|
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
|
2841
2839
|
this.bumpSpace();
|
2842
|
-
var
|
2843
|
-
if (
|
2844
|
-
return
|
2845
|
-
this.bumpSpace(), B = this.parseIdentifierIfPossible(), N =
|
2840
|
+
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
2841
|
+
if (f.err)
|
2842
|
+
return f;
|
2843
|
+
this.bumpSpace(), B = this.parseIdentifierIfPossible(), N = f.val;
|
2846
2844
|
}
|
2847
2845
|
var w = this.tryParsePluralOrSelectOptions(t, s, r, B);
|
2848
2846
|
if (w.err)
|
@@ -2855,7 +2853,7 @@ var Kr = (
|
|
2855
2853
|
val: {
|
2856
2854
|
type: v.select,
|
2857
2855
|
value: n,
|
2858
|
-
options:
|
2856
|
+
options: Qe(w.val),
|
2859
2857
|
location: R
|
2860
2858
|
},
|
2861
2859
|
err: null
|
@@ -2863,7 +2861,7 @@ var Kr = (
|
|
2863
2861
|
val: {
|
2864
2862
|
type: v.plural,
|
2865
2863
|
value: n,
|
2866
|
-
options:
|
2864
|
+
options: Qe(w.val),
|
2867
2865
|
offset: N,
|
2868
2866
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
2869
2867
|
location: R
|
@@ -2923,19 +2921,19 @@ var Kr = (
|
|
2923
2921
|
type: j.number,
|
2924
2922
|
tokens: n,
|
2925
2923
|
location: r,
|
2926
|
-
parsedOptions: this.shouldParseSkeletons ?
|
2924
|
+
parsedOptions: this.shouldParseSkeletons ? $r(n) : {}
|
2927
2925
|
},
|
2928
2926
|
err: null
|
2929
2927
|
};
|
2930
2928
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
2931
2929
|
for (var o, u = !1, s = [], l = /* @__PURE__ */ new Set(), a = i.value, h = i.location; ; ) {
|
2932
2930
|
if (a.length === 0) {
|
2933
|
-
var
|
2931
|
+
var f = this.clonePosition();
|
2934
2932
|
if (r !== "select" && this.bumpIf("=")) {
|
2935
|
-
var
|
2936
|
-
if (
|
2937
|
-
return
|
2938
|
-
h = g(
|
2933
|
+
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
2934
|
+
if (c.err)
|
2935
|
+
return c;
|
2936
|
+
h = g(f, this.clonePosition()), a = this.message.slice(f.offset, this.offset());
|
2939
2937
|
} else
|
2940
2938
|
break;
|
2941
2939
|
}
|
@@ -2971,7 +2969,7 @@ var Kr = (
|
|
2971
2969
|
break;
|
2972
2970
|
}
|
2973
2971
|
var l = g(i, this.clonePosition());
|
2974
|
-
return o ? (u *= n,
|
2972
|
+
return o ? (u *= n, Wr(u) ? { val: u, err: null } : this.error(r, l)) : this.error(t, l);
|
2975
2973
|
}, e.prototype.offset = function() {
|
2976
2974
|
return this.position.offset;
|
2977
2975
|
}, e.prototype.isEOF = function() {
|
@@ -2986,7 +2984,7 @@ var Kr = (
|
|
2986
2984
|
var t = this.position.offset;
|
2987
2985
|
if (t >= this.message.length)
|
2988
2986
|
throw Error("out of bound");
|
2989
|
-
var r =
|
2987
|
+
var r = Ht(this.message, t);
|
2990
2988
|
if (r === void 0)
|
2991
2989
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
2992
2990
|
return r;
|
@@ -3005,7 +3003,7 @@ var Kr = (
|
|
3005
3003
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
3006
3004
|
}
|
3007
3005
|
}, e.prototype.bumpIf = function(t) {
|
3008
|
-
if (
|
3006
|
+
if (We(this.message, t, this.offset())) {
|
3009
3007
|
for (var r = 0; r < t.length; r++)
|
3010
3008
|
this.bump();
|
3011
3009
|
return !0;
|
@@ -3027,7 +3025,7 @@ var Kr = (
|
|
3027
3025
|
break;
|
3028
3026
|
}
|
3029
3027
|
}, e.prototype.bumpSpace = function() {
|
3030
|
-
for (; !this.isEOF() &&
|
3028
|
+
for (; !this.isEOF() && Pt(this.char()); )
|
3031
3029
|
this.bump();
|
3032
3030
|
}, e.prototype.peek = function() {
|
3033
3031
|
if (this.isEOF())
|
@@ -3037,47 +3035,47 @@ var Kr = (
|
|
3037
3035
|
}, e;
|
3038
3036
|
}()
|
3039
3037
|
);
|
3040
|
-
function
|
3038
|
+
function Ie(e) {
|
3041
3039
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3042
3040
|
}
|
3043
|
-
function
|
3044
|
-
return
|
3041
|
+
function Kr(e) {
|
3042
|
+
return Ie(e) || e === 47;
|
3045
3043
|
}
|
3046
|
-
function
|
3044
|
+
function en(e) {
|
3047
3045
|
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;
|
3048
3046
|
}
|
3049
|
-
function
|
3047
|
+
function Pt(e) {
|
3050
3048
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3051
3049
|
}
|
3052
|
-
function
|
3050
|
+
function tn(e) {
|
3053
3051
|
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;
|
3054
3052
|
}
|
3055
|
-
function
|
3053
|
+
function Me(e) {
|
3056
3054
|
e.forEach(function(t) {
|
3057
|
-
if (delete t.location,
|
3055
|
+
if (delete t.location, gt(t) || dt(t))
|
3058
3056
|
for (var r in t.options)
|
3059
|
-
delete t.options[r].location,
|
3057
|
+
delete t.options[r].location, Me(t.options[r].value);
|
3060
3058
|
else
|
3061
|
-
|
3059
|
+
ct(t) && xt(t.style) || (mt(t) || pt(t)) && Se(t.style) ? delete t.style.location : bt(t) && Me(t.children);
|
3062
3060
|
});
|
3063
3061
|
}
|
3064
|
-
function
|
3062
|
+
function rn(e, t) {
|
3065
3063
|
t === void 0 && (t = {}), t = d({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3066
|
-
var r = new
|
3064
|
+
var r = new Yr(e, t).parse();
|
3067
3065
|
if (r.err) {
|
3068
3066
|
var n = SyntaxError(p[r.err.kind]);
|
3069
3067
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3070
3068
|
}
|
3071
|
-
return t?.captureLocation ||
|
3069
|
+
return t?.captureLocation || Me(r.val), r.val;
|
3072
3070
|
}
|
3073
3071
|
var V;
|
3074
3072
|
(function(e) {
|
3075
3073
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
3076
3074
|
})(V || (V = {}));
|
3077
|
-
var
|
3075
|
+
var ce = (
|
3078
3076
|
/** @class */
|
3079
3077
|
function(e) {
|
3080
|
-
|
3078
|
+
fe(t, e);
|
3081
3079
|
function t(r, n, i) {
|
3082
3080
|
var o = e.call(this, r) || this;
|
3083
3081
|
return o.code = n, o.originalMessage = i, o;
|
@@ -3086,48 +3084,48 @@ var fe = (
|
|
3086
3084
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3087
3085
|
}, t;
|
3088
3086
|
}(Error)
|
3089
|
-
),
|
3087
|
+
), Je = (
|
3090
3088
|
/** @class */
|
3091
3089
|
function(e) {
|
3092
|
-
|
3090
|
+
fe(t, e);
|
3093
3091
|
function t(r, n, i, o) {
|
3094
3092
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), V.INVALID_VALUE, o) || this;
|
3095
3093
|
}
|
3096
3094
|
return t;
|
3097
|
-
}(
|
3098
|
-
),
|
3095
|
+
}(ce)
|
3096
|
+
), nn = (
|
3099
3097
|
/** @class */
|
3100
3098
|
function(e) {
|
3101
|
-
|
3099
|
+
fe(t, e);
|
3102
3100
|
function t(r, n, i) {
|
3103
3101
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), V.INVALID_VALUE, i) || this;
|
3104
3102
|
}
|
3105
3103
|
return t;
|
3106
|
-
}(
|
3107
|
-
),
|
3104
|
+
}(ce)
|
3105
|
+
), on = (
|
3108
3106
|
/** @class */
|
3109
3107
|
function(e) {
|
3110
|
-
|
3108
|
+
fe(t, e);
|
3111
3109
|
function t(r, n) {
|
3112
3110
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), V.MISSING_VALUE, n) || this;
|
3113
3111
|
}
|
3114
3112
|
return t;
|
3115
|
-
}(
|
3113
|
+
}(ce)
|
3116
3114
|
), H;
|
3117
3115
|
(function(e) {
|
3118
3116
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3119
3117
|
})(H || (H = {}));
|
3120
|
-
function
|
3118
|
+
function an(e) {
|
3121
3119
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3122
3120
|
var n = t[t.length - 1];
|
3123
3121
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
3124
3122
|
}, []);
|
3125
3123
|
}
|
3126
|
-
function
|
3124
|
+
function sn(e) {
|
3127
3125
|
return typeof e == "function";
|
3128
3126
|
}
|
3129
3127
|
function ae(e, t, r, n, i, o, u) {
|
3130
|
-
if (e.length === 1 &&
|
3128
|
+
if (e.length === 1 && Ve(e[0]))
|
3131
3129
|
return [
|
3132
3130
|
{
|
3133
3131
|
type: H.literal,
|
@@ -3136,59 +3134,59 @@ function ae(e, t, r, n, i, o, u) {
|
|
3136
3134
|
];
|
3137
3135
|
for (var s = [], l = 0, a = e; l < a.length; l++) {
|
3138
3136
|
var h = a[l];
|
3139
|
-
if (
|
3137
|
+
if (Ve(h)) {
|
3140
3138
|
s.push({
|
3141
3139
|
type: H.literal,
|
3142
3140
|
value: h.value
|
3143
3141
|
});
|
3144
3142
|
continue;
|
3145
3143
|
}
|
3146
|
-
if (
|
3144
|
+
if (Sr(h)) {
|
3147
3145
|
typeof o == "number" && s.push({
|
3148
3146
|
type: H.literal,
|
3149
3147
|
value: r.getNumberFormat(t).format(o)
|
3150
3148
|
});
|
3151
3149
|
continue;
|
3152
3150
|
}
|
3153
|
-
var
|
3154
|
-
if (!(i &&
|
3155
|
-
throw new
|
3156
|
-
var
|
3157
|
-
if (
|
3158
|
-
(!
|
3159
|
-
type: typeof
|
3160
|
-
value:
|
3151
|
+
var f = h.value;
|
3152
|
+
if (!(i && f in i))
|
3153
|
+
throw new on(f, u);
|
3154
|
+
var c = i[f];
|
3155
|
+
if (Br(h)) {
|
3156
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
|
3157
|
+
type: typeof c == "string" ? H.literal : H.object,
|
3158
|
+
value: c
|
3161
3159
|
});
|
3162
3160
|
continue;
|
3163
3161
|
}
|
3164
|
-
if (
|
3162
|
+
if (mt(h)) {
|
3165
3163
|
var b = typeof h.style == "string" ? n.date[h.style] : Se(h.style) ? h.style.parsedOptions : void 0;
|
3166
3164
|
s.push({
|
3167
3165
|
type: H.literal,
|
3168
|
-
value: r.getDateTimeFormat(t, b).format(
|
3166
|
+
value: r.getDateTimeFormat(t, b).format(c)
|
3169
3167
|
});
|
3170
3168
|
continue;
|
3171
3169
|
}
|
3172
|
-
if (
|
3170
|
+
if (pt(h)) {
|
3173
3171
|
var b = typeof h.style == "string" ? n.time[h.style] : Se(h.style) ? h.style.parsedOptions : n.time.medium;
|
3174
3172
|
s.push({
|
3175
3173
|
type: H.literal,
|
3176
|
-
value: r.getDateTimeFormat(t, b).format(
|
3174
|
+
value: r.getDateTimeFormat(t, b).format(c)
|
3177
3175
|
});
|
3178
3176
|
continue;
|
3179
3177
|
}
|
3180
|
-
if (
|
3181
|
-
var b = typeof h.style == "string" ? n.number[h.style] :
|
3182
|
-
b && b.scale && (
|
3178
|
+
if (ct(h)) {
|
3179
|
+
var b = typeof h.style == "string" ? n.number[h.style] : xt(h.style) ? h.style.parsedOptions : void 0;
|
3180
|
+
b && b.scale && (c = c * (b.scale || 1)), s.push({
|
3183
3181
|
type: H.literal,
|
3184
|
-
value: r.getNumberFormat(t, b).format(
|
3182
|
+
value: r.getNumberFormat(t, b).format(c)
|
3185
3183
|
});
|
3186
3184
|
continue;
|
3187
3185
|
}
|
3188
|
-
if (
|
3186
|
+
if (bt(h)) {
|
3189
3187
|
var y = h.children, m = h.value, E = i[m];
|
3190
|
-
if (!
|
3191
|
-
throw new
|
3188
|
+
if (!sn(E))
|
3189
|
+
throw new nn(m, "function", u);
|
3192
3190
|
var T = ae(y, t, r, n, i, o), A = E(T.map(function(N) {
|
3193
3191
|
return N.value;
|
3194
3192
|
}));
|
@@ -3199,39 +3197,39 @@ function ae(e, t, r, n, i, o, u) {
|
|
3199
3197
|
};
|
3200
3198
|
}));
|
3201
3199
|
}
|
3202
|
-
if (
|
3203
|
-
var P = h.options[
|
3200
|
+
if (gt(h)) {
|
3201
|
+
var P = h.options[c] || h.options.other;
|
3204
3202
|
if (!P)
|
3205
|
-
throw new
|
3203
|
+
throw new Je(h.value, c, Object.keys(h.options), u);
|
3206
3204
|
s.push.apply(s, ae(P.value, t, r, n, i));
|
3207
3205
|
continue;
|
3208
3206
|
}
|
3209
|
-
if (
|
3210
|
-
var P = h.options["=".concat(
|
3207
|
+
if (dt(h)) {
|
3208
|
+
var P = h.options["=".concat(c)];
|
3211
3209
|
if (!P) {
|
3212
3210
|
if (!Intl.PluralRules)
|
3213
|
-
throw new
|
3211
|
+
throw new ce(`Intl.PluralRules is not available in this environment.
|
3214
3212
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3215
3213
|
`, V.MISSING_INTL_API, u);
|
3216
|
-
var B = r.getPluralRules(t, { type: h.pluralType }).select(
|
3214
|
+
var B = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
3217
3215
|
P = h.options[B] || h.options.other;
|
3218
3216
|
}
|
3219
3217
|
if (!P)
|
3220
|
-
throw new
|
3221
|
-
s.push.apply(s, ae(P.value, t, r, n, i,
|
3218
|
+
throw new Je(h.value, c, Object.keys(h.options), u);
|
3219
|
+
s.push.apply(s, ae(P.value, t, r, n, i, c - (h.offset || 0)));
|
3222
3220
|
continue;
|
3223
3221
|
}
|
3224
3222
|
}
|
3225
|
-
return
|
3223
|
+
return an(s);
|
3226
3224
|
}
|
3227
|
-
function
|
3225
|
+
function un(e, t) {
|
3228
3226
|
return t ? d(d(d({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3229
3227
|
return r[n] = d(d({}, e[n]), t[n] || {}), r;
|
3230
3228
|
}, {})) : e;
|
3231
3229
|
}
|
3232
|
-
function
|
3230
|
+
function hn(e, t) {
|
3233
3231
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3234
|
-
return r[n] =
|
3232
|
+
return r[n] = un(e[n], t[n]), r;
|
3235
3233
|
}, d({}, e)) : e;
|
3236
3234
|
}
|
3237
3235
|
function _e(e) {
|
@@ -3248,7 +3246,7 @@ function _e(e) {
|
|
3248
3246
|
}
|
3249
3247
|
};
|
3250
3248
|
}
|
3251
|
-
function
|
3249
|
+
function ln(e) {
|
3252
3250
|
return e === void 0 && (e = {
|
3253
3251
|
number: {},
|
3254
3252
|
dateTime: {},
|
@@ -3294,8 +3292,8 @@ var fn = (
|
|
3294
3292
|
var a = o.formatToParts(l);
|
3295
3293
|
if (a.length === 1)
|
3296
3294
|
return a[0].value;
|
3297
|
-
var h = a.reduce(function(
|
3298
|
-
return !
|
3295
|
+
var h = a.reduce(function(f, c) {
|
3296
|
+
return !f.length || c.type !== H.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
3299
3297
|
}, []);
|
3300
3298
|
return h.length <= 1 ? h[0] || "" : h;
|
3301
3299
|
}, this.formatToParts = function(l) {
|
@@ -3312,13 +3310,13 @@ var fn = (
|
|
3312
3310
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3313
3311
|
var u = i || {};
|
3314
3312
|
u.formatters;
|
3315
|
-
var s =
|
3313
|
+
var s = yr(u, ["formatters"]);
|
3316
3314
|
this.ast = e.__parse(t, d(d({}, s), { locale: this.resolvedLocale }));
|
3317
3315
|
} else
|
3318
3316
|
this.ast = t;
|
3319
3317
|
if (!Array.isArray(this.ast))
|
3320
3318
|
throw new TypeError("A message must be provided as a String or AST.");
|
3321
|
-
this.formats =
|
3319
|
+
this.formats = hn(e.formats, n), this.formatters = i && i.formatters || ln(this.formatterCache);
|
3322
3320
|
}
|
3323
3321
|
return Object.defineProperty(e, "defaultLocale", {
|
3324
3322
|
get: function() {
|
@@ -3331,7 +3329,7 @@ var fn = (
|
|
3331
3329
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3332
3330
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3333
3331
|
}
|
3334
|
-
}, e.__parse =
|
3332
|
+
}, e.__parse = rn, e.formats = {
|
3335
3333
|
number: {
|
3336
3334
|
integer: {
|
3337
3335
|
maximumFractionDigits: 0
|
@@ -3392,7 +3390,7 @@ var fn = (
|
|
3392
3390
|
}, e;
|
3393
3391
|
}()
|
3394
3392
|
);
|
3395
|
-
function
|
3393
|
+
function cn(e, t) {
|
3396
3394
|
if (t == null)
|
3397
3395
|
return;
|
3398
3396
|
if (t in e)
|
@@ -3413,60 +3411,60 @@ function mn(e, t) {
|
|
3413
3411
|
n = void 0;
|
3414
3412
|
return n;
|
3415
3413
|
}
|
3416
|
-
const
|
3414
|
+
const I = {}, mn = (e, t, r) => r && (t in I || (I[t] = {}), e in I[t] || (I[t][e] = r), r), Nt = (e, t) => {
|
3417
3415
|
if (t == null)
|
3418
3416
|
return;
|
3419
|
-
if (t in
|
3420
|
-
return
|
3417
|
+
if (t in I && e in I[t])
|
3418
|
+
return I[t][e];
|
3421
3419
|
const r = me(t);
|
3422
3420
|
for (let n = 0; n < r.length; n++) {
|
3423
|
-
const i = r[n], o =
|
3421
|
+
const i = r[n], o = gn(i, e);
|
3424
3422
|
if (o)
|
3425
|
-
return
|
3423
|
+
return mn(e, t, o);
|
3426
3424
|
}
|
3427
3425
|
};
|
3428
|
-
let
|
3426
|
+
let Fe;
|
3429
3427
|
const re = le({});
|
3430
|
-
function
|
3431
|
-
return
|
3428
|
+
function pn(e) {
|
3429
|
+
return Fe[e] || null;
|
3432
3430
|
}
|
3433
|
-
function
|
3434
|
-
return e in
|
3431
|
+
function Bt(e) {
|
3432
|
+
return e in Fe;
|
3435
3433
|
}
|
3436
|
-
function
|
3437
|
-
if (!
|
3434
|
+
function gn(e, t) {
|
3435
|
+
if (!Bt(e))
|
3438
3436
|
return null;
|
3439
|
-
const r =
|
3440
|
-
return
|
3437
|
+
const r = pn(e);
|
3438
|
+
return cn(r, t);
|
3441
3439
|
}
|
3442
|
-
function
|
3440
|
+
function dn(e) {
|
3443
3441
|
if (e == null)
|
3444
3442
|
return;
|
3445
3443
|
const t = me(e);
|
3446
3444
|
for (let r = 0; r < t.length; r++) {
|
3447
3445
|
const n = t[r];
|
3448
|
-
if (
|
3446
|
+
if (Bt(n))
|
3449
3447
|
return n;
|
3450
3448
|
}
|
3451
3449
|
}
|
3452
|
-
function
|
3453
|
-
delete
|
3450
|
+
function St(e, ...t) {
|
3451
|
+
delete I[e], re.update((r) => (r[e] = xr.all([r[e] || {}, ...t]), r));
|
3454
3452
|
}
|
3455
3453
|
z(
|
3456
3454
|
[re],
|
3457
3455
|
([e]) => Object.keys(e)
|
3458
3456
|
);
|
3459
|
-
re.subscribe((e) =>
|
3457
|
+
re.subscribe((e) => Fe = e);
|
3460
3458
|
const se = {};
|
3461
|
-
function
|
3459
|
+
function bn(e, t) {
|
3462
3460
|
se[e].delete(t), se[e].size === 0 && delete se[e];
|
3463
3461
|
}
|
3464
|
-
function
|
3462
|
+
function At(e) {
|
3465
3463
|
return se[e];
|
3466
3464
|
}
|
3467
|
-
function
|
3465
|
+
function xn(e) {
|
3468
3466
|
return me(e).map((t) => {
|
3469
|
-
const r =
|
3467
|
+
const r = At(t);
|
3470
3468
|
return [t, r ? [...r] : []];
|
3471
3469
|
}).filter(([, t]) => t.length > 0);
|
3472
3470
|
}
|
@@ -3474,31 +3472,31 @@ function Le(e) {
|
|
3474
3472
|
return e == null ? !1 : me(e).some(
|
3475
3473
|
(t) => {
|
3476
3474
|
var r;
|
3477
|
-
return (r =
|
3475
|
+
return (r = At(t)) == null ? void 0 : r.size;
|
3478
3476
|
}
|
3479
3477
|
);
|
3480
3478
|
}
|
3481
|
-
function
|
3479
|
+
function yn(e, t) {
|
3482
3480
|
return Promise.all(
|
3483
|
-
t.map((n) => (
|
3484
|
-
).then((n) =>
|
3481
|
+
t.map((n) => (bn(e, n), n().then((i) => i.default || i)))
|
3482
|
+
).then((n) => St(e, ...n));
|
3485
3483
|
}
|
3486
3484
|
const q = {};
|
3487
|
-
function
|
3485
|
+
function wt(e) {
|
3488
3486
|
if (!Le(e))
|
3489
3487
|
return e in q ? q[e] : Promise.resolve();
|
3490
|
-
const t =
|
3488
|
+
const t = xn(e);
|
3491
3489
|
return q[e] = Promise.all(
|
3492
3490
|
t.map(
|
3493
|
-
([r, n]) =>
|
3491
|
+
([r, n]) => yn(r, n)
|
3494
3492
|
)
|
3495
3493
|
).then(() => {
|
3496
3494
|
if (Le(e))
|
3497
|
-
return
|
3495
|
+
return wt(e);
|
3498
3496
|
delete q[e];
|
3499
3497
|
}), q[e];
|
3500
3498
|
}
|
3501
|
-
const
|
3499
|
+
const vn = {
|
3502
3500
|
number: {
|
3503
3501
|
scientific: { notation: "scientific" },
|
3504
3502
|
engineering: { notation: "engineering" },
|
@@ -3527,34 +3525,34 @@ const En = {
|
|
3527
3525
|
timeZoneName: "short"
|
3528
3526
|
}
|
3529
3527
|
}
|
3530
|
-
},
|
3528
|
+
}, En = {
|
3531
3529
|
fallbackLocale: null,
|
3532
3530
|
loadingDelay: 200,
|
3533
|
-
formats:
|
3531
|
+
formats: vn,
|
3534
3532
|
warnOnMissingMessages: !0,
|
3535
3533
|
handleMissingMessage: void 0,
|
3536
3534
|
ignoreTag: !0
|
3537
|
-
},
|
3535
|
+
}, _n = En;
|
3538
3536
|
function X() {
|
3539
|
-
return
|
3537
|
+
return _n;
|
3540
3538
|
}
|
3541
3539
|
const He = le(!1);
|
3542
|
-
var
|
3540
|
+
var Hn = Object.defineProperty, Tn = Object.defineProperties, Pn = Object.getOwnPropertyDescriptors, Ye = Object.getOwnPropertySymbols, Nn = Object.prototype.hasOwnProperty, Bn = Object.prototype.propertyIsEnumerable, Ke = (e, t, r) => t in e ? Hn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Sn = (e, t) => {
|
3543
3541
|
for (var r in t || (t = {}))
|
3544
|
-
|
3545
|
-
if (
|
3546
|
-
for (var r of
|
3547
|
-
|
3542
|
+
Nn.call(t, r) && Ke(e, r, t[r]);
|
3543
|
+
if (Ye)
|
3544
|
+
for (var r of Ye(t))
|
3545
|
+
Bn.call(t, r) && Ke(e, r, t[r]);
|
3548
3546
|
return e;
|
3549
|
-
},
|
3547
|
+
}, An = (e, t) => Tn(e, Pn(t));
|
3550
3548
|
let Ce;
|
3551
3549
|
const ue = le(null);
|
3552
|
-
function
|
3550
|
+
function et(e) {
|
3553
3551
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
3554
3552
|
}
|
3555
3553
|
function me(e, t = X().fallbackLocale) {
|
3556
|
-
const r =
|
3557
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
3554
|
+
const r = et(e);
|
3555
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...et(t)])] : r;
|
3558
3556
|
}
|
3559
3557
|
function $() {
|
3560
3558
|
return Ce ?? void 0;
|
@@ -3562,22 +3560,22 @@ function $() {
|
|
3562
3560
|
ue.subscribe((e) => {
|
3563
3561
|
Ce = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
3564
3562
|
});
|
3565
|
-
const
|
3566
|
-
if (e &&
|
3563
|
+
const wn = (e) => {
|
3564
|
+
if (e && dn(e) && Le(e)) {
|
3567
3565
|
const { loadingDelay: t } = X();
|
3568
3566
|
let r;
|
3569
3567
|
return typeof window < "u" && $() != null && t ? r = window.setTimeout(
|
3570
3568
|
() => He.set(!0),
|
3571
3569
|
t
|
3572
|
-
) : He.set(!0),
|
3570
|
+
) : He.set(!0), wt(e).then(() => {
|
3573
3571
|
ue.set(e);
|
3574
3572
|
}).finally(() => {
|
3575
3573
|
clearTimeout(r), He.set(!1);
|
3576
3574
|
});
|
3577
3575
|
}
|
3578
3576
|
return ue.set(e);
|
3579
|
-
}, Z =
|
3580
|
-
set:
|
3577
|
+
}, Z = An(Sn({}, ue), {
|
3578
|
+
set: wn
|
3581
3579
|
}), pe = (e) => {
|
3582
3580
|
const t = /* @__PURE__ */ Object.create(null);
|
3583
3581
|
return (n) => {
|
@@ -3585,20 +3583,20 @@ const On = (e) => {
|
|
3585
3583
|
return i in t ? t[i] : t[i] = e(n);
|
3586
3584
|
};
|
3587
3585
|
};
|
3588
|
-
var
|
3586
|
+
var On = Object.defineProperty, he = Object.getOwnPropertySymbols, Ot = Object.prototype.hasOwnProperty, It = Object.prototype.propertyIsEnumerable, tt = (e, t, r) => t in e ? On(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ge = (e, t) => {
|
3589
3587
|
for (var r in t || (t = {}))
|
3590
|
-
|
3588
|
+
Ot.call(t, r) && tt(e, r, t[r]);
|
3591
3589
|
if (he)
|
3592
3590
|
for (var r of he(t))
|
3593
|
-
|
3591
|
+
It.call(t, r) && tt(e, r, t[r]);
|
3594
3592
|
return e;
|
3595
3593
|
}, W = (e, t) => {
|
3596
3594
|
var r = {};
|
3597
3595
|
for (var n in e)
|
3598
|
-
|
3596
|
+
Ot.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
3599
3597
|
if (e != null && he)
|
3600
3598
|
for (var n of he(e))
|
3601
|
-
t.indexOf(n) < 0 &&
|
3599
|
+
t.indexOf(n) < 0 && It.call(e, n) && (r[n] = e[n]);
|
3602
3600
|
return r;
|
3603
3601
|
};
|
3604
3602
|
const ee = (e, t) => {
|
@@ -3613,14 +3611,14 @@ const ee = (e, t) => {
|
|
3613
3611
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
3614
3612
|
return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
|
3615
3613
|
}
|
3616
|
-
),
|
3614
|
+
), Mn = pe(
|
3617
3615
|
(e) => {
|
3618
3616
|
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
3619
3617
|
if (r == null)
|
3620
3618
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
3621
3619
|
return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
|
3622
3620
|
}
|
3623
|
-
),
|
3621
|
+
), Ln = pe(
|
3624
3622
|
(e) => {
|
3625
3623
|
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
3626
3624
|
if (r == null)
|
@@ -3629,33 +3627,33 @@ const ee = (e, t) => {
|
|
3629
3627
|
);
|
3630
3628
|
return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
|
3631
3629
|
}
|
3632
|
-
),
|
3630
|
+
), Cn = (e = {}) => {
|
3633
3631
|
var t = e, {
|
3634
3632
|
locale: r = $()
|
3635
3633
|
} = t, n = W(t, [
|
3636
3634
|
"locale"
|
3637
3635
|
]);
|
3638
|
-
return In(
|
3639
|
-
},
|
3636
|
+
return In(Ge({ locale: r }, n));
|
3637
|
+
}, $n = (e = {}) => {
|
3640
3638
|
var t = e, {
|
3641
3639
|
locale: r = $()
|
3642
3640
|
} = t, n = W(t, [
|
3643
3641
|
"locale"
|
3644
3642
|
]);
|
3645
|
-
return
|
3646
|
-
},
|
3643
|
+
return Mn(Ge({ locale: r }, n));
|
3644
|
+
}, Rn = (e = {}) => {
|
3647
3645
|
var t = e, {
|
3648
3646
|
locale: r = $()
|
3649
3647
|
} = t, n = W(t, [
|
3650
3648
|
"locale"
|
3651
3649
|
]);
|
3652
|
-
return
|
3653
|
-
},
|
3650
|
+
return Ln(Ge({ locale: r }, n));
|
3651
|
+
}, Fn = pe(
|
3654
3652
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
3655
3653
|
(e, t = $()) => new fn(e, t, X().formats, {
|
3656
3654
|
ignoreTag: X().ignoreTag
|
3657
3655
|
})
|
3658
|
-
),
|
3656
|
+
), Gn = (e, t = {}) => {
|
3659
3657
|
var r, n, i, o;
|
3660
3658
|
let u = t;
|
3661
3659
|
typeof e == "object" && (u = e, e = u.id);
|
@@ -3668,7 +3666,7 @@ const ee = (e, t) => {
|
|
3668
3666
|
throw new Error(
|
3669
3667
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
3670
3668
|
);
|
3671
|
-
let h =
|
3669
|
+
let h = Nt(e, l);
|
3672
3670
|
if (!h)
|
3673
3671
|
h = (o = (i = (n = (r = X()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? o : e;
|
3674
3672
|
else if (typeof h != "string")
|
@@ -3677,28 +3675,28 @@ const ee = (e, t) => {
|
|
3677
3675
|
), h;
|
3678
3676
|
if (!s)
|
3679
3677
|
return h;
|
3680
|
-
let
|
3678
|
+
let f = h;
|
3681
3679
|
try {
|
3682
|
-
|
3683
|
-
} catch (
|
3684
|
-
|
3680
|
+
f = Fn(h, l).format(s);
|
3681
|
+
} catch (c) {
|
3682
|
+
c instanceof Error && console.warn(
|
3685
3683
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
3686
|
-
|
3684
|
+
c.message
|
3687
3685
|
);
|
3688
3686
|
}
|
3689
|
-
return
|
3690
|
-
},
|
3687
|
+
return f;
|
3688
|
+
}, Dn = (e, t) => Rn(t).format(e), Un = (e, t) => $n(t).format(e), kn = (e, t) => Cn(t).format(e), jn = (e, t = $()) => Nt(e, t), Vn = z([Z, re], () => Gn);
|
3689
|
+
z([Z], () => Dn);
|
3691
3690
|
z([Z], () => Un);
|
3692
3691
|
z([Z], () => kn);
|
3693
|
-
z([Z], () => jn);
|
3694
|
-
|
3695
|
-
|
3696
|
-
wt(e, t);
|
3692
|
+
z([Z, re], () => jn);
|
3693
|
+
function rt(e, t) {
|
3694
|
+
St(e, t);
|
3697
3695
|
}
|
3698
|
-
function
|
3696
|
+
function Xn(e) {
|
3699
3697
|
Z.set(e);
|
3700
3698
|
}
|
3701
|
-
const
|
3699
|
+
const nt = {
|
3702
3700
|
en: {
|
3703
3701
|
pageNotFound: "Page not found",
|
3704
3702
|
pageNotFoundMessage: "The page you were looking for could not be found. Please go back to our Homepage.",
|
@@ -3790,13 +3788,13 @@ const ot = {
|
|
3790
3788
|
home: "Go to homepage"
|
3791
3789
|
}
|
3792
3790
|
};
|
3793
|
-
function
|
3791
|
+
function zn(e, t) {
|
3794
3792
|
if (e) {
|
3795
3793
|
const r = document.createElement("style");
|
3796
3794
|
r.innerHTML = t, e.appendChild(r);
|
3797
3795
|
}
|
3798
3796
|
}
|
3799
|
-
function
|
3797
|
+
function Zn(e, t) {
|
3800
3798
|
const r = new URL(t);
|
3801
3799
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
3802
3800
|
const i = document.createElement("style");
|
@@ -3805,7 +3803,7 @@ function Wn(e, t) {
|
|
3805
3803
|
console.error("There was an error while trying to load client styling from URL", n);
|
3806
3804
|
});
|
3807
3805
|
}
|
3808
|
-
function
|
3806
|
+
function Wn(e, t, r) {
|
3809
3807
|
if (window.emMessageBus) {
|
3810
3808
|
const n = document.createElement("style");
|
3811
3809
|
window.emMessageBus.subscribe(t, (i) => {
|
@@ -3813,11 +3811,11 @@ function Qn(e, t, r) {
|
|
3813
3811
|
});
|
3814
3812
|
}
|
3815
3813
|
}
|
3816
|
-
function
|
3817
|
-
|
3814
|
+
function Qn(e) {
|
3815
|
+
Ct(e, "svelte-fokx9n", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.PageWrapper{color:var(--emw--misc-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--misc-color-bg, var(--emw--color-background, #07072A));padding:50px 0;width:100%;text-align:center}.NotFoundPage{display:flex;flex-direction:column;margin:auto;gap:40px;align-items:center;max-width:800px;padding:50px}.NotFoundPage svg{fill:var(--emw--misc-color-primary, var(--emw--color-primary, #D0046C))}.PageTitle{color:var(--emw--misc-color-primary, var(--emw--color-primary, #D0046C));font-weight:500;font-size:28px}.PageContent{color:#D1D1D1;font-size:18px;line-height:24px}.ErrorPageTitle{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-weight:500;font-size:28px}.ErrorPageContent{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:18px;line-height:24px}.ButtonDefaultSmall{background:var(--emw--misc-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--misc-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border-radius:5px;width:30%;height:60px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;cursor:pointer}@media only screen and (max-width: 475px){.PageWrapper{color:var(--emw--misc-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--misc-color-bg, var(--emw--color-background, #07072A));padding:20px 0;width:100%;text-align:center}.NotFoundPage{text-align:center;width:100%}.PageTitle{font-size:22px}.ButtonDefaultSmall{width:80%;height:50px;font-size:14px;grid-template-columns:1fr}.ErrorPageContent{font-size:16px;line-height:18px}.ErrorPageTitle{font-size:18px}.PageContent{font-size:16px;line-height:18px}}");
|
3818
3816
|
}
|
3819
|
-
function
|
3820
|
-
let t, r, n, i, o, u, s, l, a, h,
|
3817
|
+
function qn(e) {
|
3818
|
+
let t, r, n, i, o, u, s, l, a, h, f, c, b = (
|
3821
3819
|
/*$_*/
|
3822
3820
|
e[1]("pageNotFound") + ""
|
3823
3821
|
), y, m, E, T = (
|
@@ -3826,59 +3824,59 @@ function Jn(e) {
|
|
3826
3824
|
), A, P, B, N = (
|
3827
3825
|
/*$_*/
|
3828
3826
|
e[1]("home") + ""
|
3829
|
-
), w, R,
|
3827
|
+
), w, R, De;
|
3830
3828
|
return {
|
3831
3829
|
c() {
|
3832
|
-
t = L("div"), r = L("div"), n = O("svg"), i = O("g"), o = O("path"), u = O("path"), s = O("path"), l = O("path"), a = O("path"), h = O("path"),
|
3830
|
+
t = L("div"), r = L("div"), n = O("svg"), i = O("g"), o = O("path"), u = O("path"), s = O("path"), l = O("path"), a = O("path"), h = O("path"), f = ge(), c = L("p"), y = ie(b), m = ge(), E = L("p"), A = ie(T), P = ge(), B = L("button"), w = ie(N), x(o, "class", "a"), x(o, "d", "M753.094,548.381h11.379v4.138a3.1,3.1,0,1,0,6.207,0v-4.138a3.1,3.1,0,0,0,0-6.207v-27.93a3,3,0,0,0-2.379-3,3.262,3.262,0,0,0-3.517,1.552l-14.483,26.9a3.305,3.305,0,0,0-.31,1.448v4.138a3.048,3.048,0,0,0,3.1,3.1Zm3.1-6.414,8.276-15.414v15.62H756.2Z"), x(o, "transform", "translate(-658.898 -446.452)"), x(u, "class", "a"), x(u, "d", "M508.259,555.422a11.346,11.346,0,0,0,11.379-11.379V522.319a11.379,11.379,0,1,0-22.757,0v21.725A11.346,11.346,0,0,0,508.259,555.422Zm-5.172-33.1a5.172,5.172,0,1,1,10.345,0v21.725a5.172,5.172,0,0,1-10.345,0Z"), x(u, "transform", "translate(-433.716 -446.252)"), x(s, "class", "a"), x(s, "d", "M237.474,548.381h11.379v4.138a3.1,3.1,0,1,0,6.207,0v-4.138a3.1,3.1,0,1,0,0-6.207v-27.93a3,3,0,0,0-2.379-3,3.2,3.2,0,0,0-3.517,1.552l-14.483,26.9a3.3,3.3,0,0,0-.31,1.448v4.138a3.048,3.048,0,0,0,3.1,3.1Zm3.1-6.414,8.276-15.414v15.62h-8.276Z"), x(s, "transform", "translate(-200.173 -446.452)"), x(l, "class", "a"), x(l, "d", "M22.819,139.685H126.266a13.422,13.422,0,0,0,13.449-13.449V22.789A13.422,13.422,0,0,0,126.266,9.34H22.819A13.422,13.422,0,0,0,9.37,22.789V126.236A13.422,13.422,0,0,0,22.819,139.685Zm-7.241-116.9a7.2,7.2,0,0,1,7.241-7.241H126.266a7.2,7.2,0,0,1,7.241,7.241V38.3H15.572Zm0,21.725H133.513v81.723a7.2,7.2,0,0,1-7.241,7.241H22.824a7.2,7.2,0,0,1-7.241-7.241Z"), x(a, "class", "a"), x(a, "d", "M147.866,140.62h-4.138a3.1,3.1,0,0,0,0,6.207h4.138a3.1,3.1,0,0,0,0-6.207Z"), x(a, "transform", "translate(-116.772 -116.794)"), x(h, "class", "a"), x(h, "d", "M297.866,140.62h-4.138a3.1,3.1,0,1,0,0,6.207h4.138a3.1,3.1,0,0,0,0-6.207Z"), x(h, "transform", "translate(-250.22 -116.794)"), x(i, "transform", "translate(-9.37 -9.34)"), x(n, "class", "svgColor"), x(n, "xmlns", "http://www.w3.org/2000/svg"), x(n, "width", "130.345"), x(n, "height", "130.345"), x(n, "viewBox", "0 0 130.345 130.345"), x(c, "class", "PageTitle"), x(E, "class", "PageContent"), x(B, "class", "ButtonDefaultSmall"), x(r, "class", "NotFoundPage"), x(t, "class", "PageWrapper");
|
3833
3831
|
},
|
3834
|
-
m(
|
3835
|
-
|
3832
|
+
m(M, Q) {
|
3833
|
+
st(M, t, Q), _(t, r), _(r, n), _(n, i), _(i, o), _(i, u), _(i, s), _(i, l), _(i, a), _(i, h), _(r, f), _(r, c), _(c, y), _(r, m), _(r, E), _(E, A), _(r, P), _(r, B), _(B, w), e[9](t), R || (De = Ft(
|
3836
3834
|
B,
|
3837
3835
|
"click",
|
3838
3836
|
/*click_handler*/
|
3839
3837
|
e[8]
|
3840
3838
|
), R = !0);
|
3841
3839
|
},
|
3842
|
-
p(
|
3840
|
+
p(M, [Q]) {
|
3843
3841
|
Q & /*$_*/
|
3844
3842
|
2 && b !== (b = /*$_*/
|
3845
|
-
|
3843
|
+
M[1]("pageNotFound") + "") && de(y, b), Q & /*$_*/
|
3846
3844
|
2 && T !== (T = /*$_*/
|
3847
|
-
|
3845
|
+
M[1]("pageNotFoundMessage") + "") && de(A, T), Q & /*$_*/
|
3848
3846
|
2 && N !== (N = /*$_*/
|
3849
|
-
|
3847
|
+
M[1]("home") + "") && de(w, N);
|
3850
3848
|
},
|
3851
3849
|
i: S,
|
3852
3850
|
o: S,
|
3853
|
-
d(
|
3854
|
-
|
3851
|
+
d(M) {
|
3852
|
+
M && Re(t), e[9](null), R = !1, De();
|
3855
3853
|
}
|
3856
3854
|
};
|
3857
3855
|
}
|
3858
|
-
function
|
3856
|
+
function Jn(e, t, r) {
|
3859
3857
|
let n;
|
3860
|
-
|
3858
|
+
Lt(e, Vn, (m) => r(1, n = m));
|
3861
3859
|
let { lang: i = "en" } = t, { clientstyling: o = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: s = "" } = t, { mbsource: l } = t, a;
|
3862
3860
|
const h = () => {
|
3863
3861
|
fetch(s).then((E) => E.json()).then((E) => {
|
3864
3862
|
Object.keys(E).forEach((T) => {
|
3865
|
-
|
3863
|
+
rt(T, E[T]);
|
3866
3864
|
});
|
3867
3865
|
}).catch((E) => {
|
3868
3866
|
console.log(E);
|
3869
3867
|
});
|
3870
3868
|
};
|
3871
|
-
Object.keys(
|
3872
|
-
|
3869
|
+
Object.keys(nt).forEach((m) => {
|
3870
|
+
rt(m, nt[m]);
|
3873
3871
|
});
|
3874
|
-
const
|
3872
|
+
const f = () => {
|
3875
3873
|
window.postMessage({ type: "GoToHomepage" }, window.location.href);
|
3876
|
-
},
|
3877
|
-
|
3874
|
+
}, c = () => {
|
3875
|
+
Xn(i);
|
3878
3876
|
};
|
3879
|
-
|
3877
|
+
kt(() => () => {
|
3880
3878
|
});
|
3881
|
-
const b = () =>
|
3879
|
+
const b = () => f();
|
3882
3880
|
function y(m) {
|
3883
3881
|
Te[m ? "unshift" : "push"](() => {
|
3884
3882
|
a = m, r(0, a);
|
@@ -3888,15 +3886,15 @@ function Yn(e, t, r) {
|
|
3888
3886
|
"lang" in m && r(3, i = m.lang), "clientstyling" in m && r(4, o = m.clientstyling), "clientstylingurl" in m && r(5, u = m.clientstylingurl), "translationurl" in m && r(6, s = m.translationurl), "mbsource" in m && r(7, l = m.mbsource);
|
3889
3887
|
}, e.$$.update = () => {
|
3890
3888
|
e.$$.dirty & /*lang*/
|
3891
|
-
8 && i &&
|
3889
|
+
8 && i && c(), e.$$.dirty & /*translationurl*/
|
3892
3890
|
64 && s && h(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
3893
|
-
17 && o && a &&
|
3894
|
-
33 && u && a &&
|
3895
|
-
129 && l && a &&
|
3891
|
+
17 && o && a && zn(a, o), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
3892
|
+
33 && u && a && Zn(a, u), e.$$.dirty & /*mbsource, customStylingContainer*/
|
3893
|
+
129 && l && a && Wn(a, `${l}.Style`);
|
3896
3894
|
}, [
|
3897
3895
|
a,
|
3898
3896
|
n,
|
3899
|
-
|
3897
|
+
f,
|
3900
3898
|
i,
|
3901
3899
|
o,
|
3902
3900
|
u,
|
@@ -3906,14 +3904,14 @@ function Yn(e, t, r) {
|
|
3906
3904
|
y
|
3907
3905
|
];
|
3908
3906
|
}
|
3909
|
-
class
|
3907
|
+
class Yn extends er {
|
3910
3908
|
constructor(t) {
|
3911
|
-
super(),
|
3909
|
+
super(), Yt(
|
3912
3910
|
this,
|
3913
3911
|
t,
|
3914
|
-
Yn,
|
3915
3912
|
Jn,
|
3916
|
-
|
3913
|
+
qn,
|
3914
|
+
ot,
|
3917
3915
|
{
|
3918
3916
|
lang: 3,
|
3919
3917
|
clientstyling: 4,
|
@@ -3921,7 +3919,7 @@ class Kn extends rr {
|
|
3921
3919
|
translationurl: 6,
|
3922
3920
|
mbsource: 7
|
3923
3921
|
},
|
3924
|
-
|
3922
|
+
Qn
|
3925
3923
|
);
|
3926
3924
|
}
|
3927
3925
|
get lang() {
|
@@ -3955,7 +3953,7 @@ class Kn extends rr {
|
|
3955
3953
|
this.$$set({ mbsource: t }), C();
|
3956
3954
|
}
|
3957
3955
|
}
|
3958
|
-
|
3956
|
+
Kt(Yn, { lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
3959
3957
|
export {
|
3960
|
-
|
3958
|
+
Yn as C
|
3961
3959
|
};
|