@everymatrix/casino-categories-slider 1.74.3 → 1.74.5
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/{CasinoCategoriesSlider-BWerxhh-.js → CasinoCategoriesSlider-BRY6E3Y6.js} +650 -625
- package/components/{CasinoCategoriesSlider-lUQbmZn9.js → CasinoCategoriesSlider-C0w1Umr-.js} +599 -574
- package/components/CasinoCategoriesSlider-DBfAg0XM.cjs +18 -0
- package/components/{CasinoSlider-C2dsDPpR.js → CasinoSlider-C-cgIoQZ.js} +418 -362
- package/components/CasinoSlider-CVoXWyzE.cjs +1 -0
- package/components/{CasinoSlider-DoAKa6rO.js → CasinoSlider-DJ15xmwN.js} +348 -305
- package/es2015/casino-categories-slider.cjs +1 -1
- package/es2015/casino-categories-slider.js +1 -1
- package/esnext/casino-categories-slider.js +1 -1
- package/package.json +1 -1
- package/components/CasinoCategoriesSlider-3NEy5qU2.cjs +0 -18
- package/components/CasinoSlider-CrbzADcf.cjs +0 -1
package/components/{CasinoCategoriesSlider-lUQbmZn9.js → CasinoCategoriesSlider-C0w1Umr-.js}
RENAMED
@@ -1,28 +1,28 @@
|
|
1
1
|
function I() {
|
2
2
|
}
|
3
|
-
function
|
3
|
+
function Ut(e) {
|
4
4
|
return e();
|
5
5
|
}
|
6
|
-
function
|
6
|
+
function dt() {
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
8
8
|
}
|
9
9
|
function re(e) {
|
10
|
-
e.forEach(
|
10
|
+
e.forEach(Ut);
|
11
11
|
}
|
12
|
-
function
|
12
|
+
function nt(e) {
|
13
13
|
return typeof e == "function";
|
14
14
|
}
|
15
|
-
function
|
15
|
+
function Dt(e, t) {
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
17
17
|
}
|
18
18
|
let pe;
|
19
|
-
function
|
19
|
+
function ds(e, t) {
|
20
20
|
return e === t ? !0 : (pe || (pe = document.createElement("a")), pe.href = t, e === pe.href);
|
21
21
|
}
|
22
|
-
function
|
22
|
+
function Ir(e) {
|
23
23
|
return Object.keys(e).length === 0;
|
24
24
|
}
|
25
|
-
function
|
25
|
+
function Ft(e, ...t) {
|
26
26
|
if (e == null) {
|
27
27
|
for (const n of t)
|
28
28
|
n(void 0);
|
@@ -31,20 +31,20 @@ function Gt(e, ...t) {
|
|
31
31
|
const r = e.subscribe(...t);
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
33
33
|
}
|
34
|
-
function
|
35
|
-
e.$$.on_destroy.push(
|
34
|
+
function Mr(e, t, r) {
|
35
|
+
e.$$.on_destroy.push(Ft(t, r));
|
36
36
|
}
|
37
|
-
function
|
37
|
+
function $t(e, t) {
|
38
38
|
e.appendChild(t);
|
39
39
|
}
|
40
|
-
function
|
41
|
-
const n =
|
40
|
+
function Cr(e, t, r) {
|
41
|
+
const n = Rr(e);
|
42
42
|
if (!n.getElementById(t)) {
|
43
43
|
const i = k("style");
|
44
|
-
i.id = t, i.textContent = r,
|
44
|
+
i.id = t, i.textContent = r, Gr(n, i);
|
45
45
|
}
|
46
46
|
}
|
47
|
-
function
|
47
|
+
function Rr(e) {
|
48
48
|
if (!e)
|
49
49
|
return document;
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
@@ -54,8 +54,8 @@ function Lr(e) {
|
|
54
54
|
t
|
55
55
|
) : e.ownerDocument;
|
56
56
|
}
|
57
|
-
function
|
58
|
-
return
|
57
|
+
function Gr(e, t) {
|
58
|
+
return $t(
|
59
59
|
/** @type {Document} */
|
60
60
|
e.head || e,
|
61
61
|
t
|
@@ -67,25 +67,30 @@ function ce(e, t, r) {
|
|
67
67
|
function ne(e) {
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
69
69
|
}
|
70
|
-
function
|
70
|
+
function bs(e, t) {
|
71
71
|
for (let r = 0; r < e.length; r += 1)
|
72
72
|
e[r] && e[r].d(t);
|
73
73
|
}
|
74
74
|
function k(e) {
|
75
75
|
return document.createElement(e);
|
76
76
|
}
|
77
|
-
function
|
77
|
+
function jt(e) {
|
78
78
|
return document.createTextNode(e);
|
79
79
|
}
|
80
|
-
function
|
81
|
-
return
|
80
|
+
function ps() {
|
81
|
+
return jt(" ");
|
82
82
|
}
|
83
|
-
function
|
84
|
-
return
|
83
|
+
function gs() {
|
84
|
+
return jt("");
|
85
85
|
}
|
86
|
-
function
|
86
|
+
function ys(e, t, r, n) {
|
87
87
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
88
88
|
}
|
89
|
+
function vs(e) {
|
90
|
+
return function(t) {
|
91
|
+
return t.preventDefault(), e.call(this, t);
|
92
|
+
};
|
93
|
+
}
|
89
94
|
function fe(e, t, r) {
|
90
95
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
91
96
|
}
|
@@ -93,14 +98,14 @@ function _(e, t, r) {
|
|
93
98
|
const n = t.toLowerCase();
|
94
99
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : fe(e, t, r);
|
95
100
|
}
|
96
|
-
function
|
101
|
+
function Ur(e) {
|
97
102
|
return Array.from(e.childNodes);
|
98
103
|
}
|
99
|
-
function
|
104
|
+
function _s(e, t) {
|
100
105
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
101
106
|
t);
|
102
107
|
}
|
103
|
-
function
|
108
|
+
function Dr(e) {
|
104
109
|
const t = {};
|
105
110
|
return e.childNodes.forEach(
|
106
111
|
/** @param {Element} node */
|
@@ -113,25 +118,29 @@ let ue;
|
|
113
118
|
function ae(e) {
|
114
119
|
ue = e;
|
115
120
|
}
|
116
|
-
function
|
121
|
+
function Fr() {
|
117
122
|
if (!ue)
|
118
123
|
throw new Error("Function called outside component initialization");
|
119
124
|
return ue;
|
120
125
|
}
|
121
|
-
function
|
122
|
-
|
126
|
+
function $r(e) {
|
127
|
+
Fr().$$.on_mount.push(e);
|
123
128
|
}
|
124
|
-
|
129
|
+
function Es(e, t) {
|
130
|
+
const r = e.$$.callbacks[t.type];
|
131
|
+
r && r.slice().forEach((n) => n.call(this, t));
|
132
|
+
}
|
133
|
+
const Q = [], Fe = [];
|
125
134
|
let Y = [];
|
126
|
-
const
|
127
|
-
let
|
128
|
-
function
|
129
|
-
|
135
|
+
const bt = [], kt = /* @__PURE__ */ Promise.resolve();
|
136
|
+
let $e = !1;
|
137
|
+
function Vt() {
|
138
|
+
$e || ($e = !0, kt.then(S));
|
130
139
|
}
|
131
|
-
function
|
132
|
-
return
|
140
|
+
function jr() {
|
141
|
+
return Vt(), kt;
|
133
142
|
}
|
134
|
-
function
|
143
|
+
function je(e) {
|
135
144
|
Y.push(e);
|
136
145
|
}
|
137
146
|
const Le = /* @__PURE__ */ new Set();
|
@@ -144,86 +153,86 @@ function S() {
|
|
144
153
|
try {
|
145
154
|
for (; z < Q.length; ) {
|
146
155
|
const t = Q[z];
|
147
|
-
z++, ae(t),
|
156
|
+
z++, ae(t), kr(t.$$);
|
148
157
|
}
|
149
158
|
} catch (t) {
|
150
159
|
throw Q.length = 0, z = 0, t;
|
151
160
|
}
|
152
|
-
for (ae(null), Q.length = 0, z = 0;
|
153
|
-
|
161
|
+
for (ae(null), Q.length = 0, z = 0; Fe.length; )
|
162
|
+
Fe.pop()();
|
154
163
|
for (let t = 0; t < Y.length; t += 1) {
|
155
164
|
const r = Y[t];
|
156
165
|
Le.has(r) || (Le.add(r), r());
|
157
166
|
}
|
158
167
|
Y.length = 0;
|
159
168
|
} while (Q.length);
|
160
|
-
for (;
|
161
|
-
|
162
|
-
|
169
|
+
for (; bt.length; )
|
170
|
+
bt.pop()();
|
171
|
+
$e = !1, Le.clear(), ae(e);
|
163
172
|
}
|
164
|
-
function
|
173
|
+
function kr(e) {
|
165
174
|
if (e.fragment !== null) {
|
166
175
|
e.update(), re(e.before_update);
|
167
176
|
const t = e.dirty;
|
168
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
177
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(je);
|
169
178
|
}
|
170
179
|
}
|
171
|
-
function
|
180
|
+
function Vr(e) {
|
172
181
|
const t = [], r = [];
|
173
182
|
Y.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Y = t;
|
174
183
|
}
|
175
|
-
const
|
176
|
-
function
|
177
|
-
e && e.i && (
|
184
|
+
const Xr = /* @__PURE__ */ new Set();
|
185
|
+
function Xt(e, t) {
|
186
|
+
e && e.i && (Xr.delete(e), e.i(t));
|
178
187
|
}
|
179
|
-
function
|
188
|
+
function xs(e) {
|
180
189
|
return e?.length !== void 0 ? e : Array.from(e);
|
181
190
|
}
|
182
|
-
function
|
191
|
+
function Ss(e, t) {
|
183
192
|
e.d(1), t.delete(e.key);
|
184
193
|
}
|
185
|
-
function
|
194
|
+
function ws(e, t, r, n, i, s, o, a, h, u, l, m) {
|
186
195
|
let c = e.length, d = s.length, b = c;
|
187
196
|
const y = {};
|
188
197
|
for (; b--; )
|
189
198
|
y[e[b].key] = b;
|
190
|
-
const T = [],
|
199
|
+
const T = [], M = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map(), w = [];
|
191
200
|
for (b = d; b--; ) {
|
192
|
-
const E = m(i, s, b),
|
193
|
-
let L = o.get(
|
194
|
-
L ? w.push(() => L.p(E, t)) : (L = u(
|
201
|
+
const E = m(i, s, b), B = r(E);
|
202
|
+
let L = o.get(B);
|
203
|
+
L ? w.push(() => L.p(E, t)) : (L = u(B, E), L.c()), M.set(B, T[b] = L), B in y && P.set(B, Math.abs(b - y[B]));
|
195
204
|
}
|
196
205
|
const N = /* @__PURE__ */ new Set(), O = /* @__PURE__ */ new Set();
|
197
|
-
function
|
198
|
-
|
206
|
+
function C(E) {
|
207
|
+
Xt(E, 1), E.m(a, l), o.set(E.key, E), l = E.first, d--;
|
199
208
|
}
|
200
209
|
for (; c && d; ) {
|
201
|
-
const E = T[d - 1],
|
202
|
-
E ===
|
210
|
+
const E = T[d - 1], B = e[c - 1], L = E.key, F = B.key;
|
211
|
+
E === B ? (l = E.first, c--, d--) : M.has(F) ? !o.has(L) || N.has(L) ? C(E) : O.has(F) ? c-- : P.get(L) > P.get(F) ? (O.add(L), C(E)) : (N.add(F), c--) : (h(B, o), c--);
|
203
212
|
}
|
204
213
|
for (; c--; ) {
|
205
214
|
const E = e[c];
|
206
|
-
|
215
|
+
M.has(E.key) || h(E, o);
|
207
216
|
}
|
208
217
|
for (; d; )
|
209
|
-
|
218
|
+
C(T[d - 1]);
|
210
219
|
return re(w), T;
|
211
220
|
}
|
212
|
-
function
|
221
|
+
function Wr(e, t, r) {
|
213
222
|
const { fragment: n, after_update: i } = e.$$;
|
214
|
-
n && n.m(t, r),
|
215
|
-
const s = e.$$.on_mount.map(
|
223
|
+
n && n.m(t, r), je(() => {
|
224
|
+
const s = e.$$.on_mount.map(Ut).filter(nt);
|
216
225
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : re(s), e.$$.on_mount = [];
|
217
|
-
}), i.forEach(
|
226
|
+
}), i.forEach(je);
|
218
227
|
}
|
219
|
-
function
|
228
|
+
function zr(e, t) {
|
220
229
|
const r = e.$$;
|
221
|
-
r.fragment !== null && (
|
230
|
+
r.fragment !== null && (Vr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
222
231
|
}
|
223
|
-
function
|
224
|
-
e.$$.dirty[0] === -1 && (Q.push(e),
|
232
|
+
function Zr(e, t) {
|
233
|
+
e.$$.dirty[0] === -1 && (Q.push(e), Vt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
225
234
|
}
|
226
|
-
function
|
235
|
+
function Qr(e, t, r, n, i, s, o = null, a = [-1]) {
|
227
236
|
const h = ue;
|
228
237
|
ae(e);
|
229
238
|
const u = e.$$ = {
|
@@ -233,7 +242,7 @@ function Xr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
233
242
|
props: s,
|
234
243
|
update: I,
|
235
244
|
not_equal: i,
|
236
|
-
bound:
|
245
|
+
bound: dt(),
|
237
246
|
// lifecycle
|
238
247
|
on_mount: [],
|
239
248
|
on_destroy: [],
|
@@ -242,7 +251,7 @@ function Xr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
242
251
|
after_update: [],
|
243
252
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
244
253
|
// everything else
|
245
|
-
callbacks:
|
254
|
+
callbacks: dt(),
|
246
255
|
dirty: a,
|
247
256
|
skip_bound: !1,
|
248
257
|
root: t.target || h.$$.root
|
@@ -251,19 +260,19 @@ function Xr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
251
260
|
let l = !1;
|
252
261
|
if (u.ctx = r ? r(e, t.props || {}, (m, c, ...d) => {
|
253
262
|
const b = d.length ? d[0] : c;
|
254
|
-
return u.ctx && i(u.ctx[m], u.ctx[m] = b) && (!u.skip_bound && u.bound[m] && u.bound[m](b), l &&
|
263
|
+
return u.ctx && i(u.ctx[m], u.ctx[m] = b) && (!u.skip_bound && u.bound[m] && u.bound[m](b), l && Zr(e, m)), c;
|
255
264
|
}) : [], u.update(), l = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
256
265
|
if (t.hydrate) {
|
257
|
-
const m =
|
266
|
+
const m = Ur(t.target);
|
258
267
|
u.fragment && u.fragment.l(m), m.forEach(ne);
|
259
268
|
} else
|
260
269
|
u.fragment && u.fragment.c();
|
261
|
-
t.intro &&
|
270
|
+
t.intro && Xt(e.$$.fragment), Wr(e, t.target, t.anchor), S();
|
262
271
|
}
|
263
272
|
ae(h);
|
264
273
|
}
|
265
|
-
let
|
266
|
-
typeof HTMLElement == "function" && (
|
274
|
+
let Wt;
|
275
|
+
typeof HTMLElement == "function" && (Wt = class extends HTMLElement {
|
267
276
|
/** The Svelte component constructor */
|
268
277
|
$$ctor;
|
269
278
|
/** Slots */
|
@@ -322,7 +331,7 @@ typeof HTMLElement == "function" && (kt = class extends HTMLElement {
|
|
322
331
|
};
|
323
332
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
324
333
|
return;
|
325
|
-
const t = {}, r =
|
334
|
+
const t = {}, r = Dr(this);
|
326
335
|
for (const i of this.$$s)
|
327
336
|
i in r && (t[i] = [e(i)]);
|
328
337
|
for (const i of this.attributes) {
|
@@ -409,8 +418,8 @@ function ve(e, t, r, n) {
|
|
409
418
|
return t;
|
410
419
|
}
|
411
420
|
}
|
412
|
-
function
|
413
|
-
let o = class extends
|
421
|
+
function Yr(e, t, r, n, i, s) {
|
422
|
+
let o = class extends Wt {
|
414
423
|
constructor() {
|
415
424
|
super(e, r, i), this.$$p_d = t;
|
416
425
|
}
|
@@ -438,7 +447,7 @@ function Wr(e, t, r, n, i, s) {
|
|
438
447
|
}), e.element = /** @type {any} */
|
439
448
|
o, o;
|
440
449
|
}
|
441
|
-
class
|
450
|
+
class qr {
|
442
451
|
/**
|
443
452
|
* ### PRIVATE API
|
444
453
|
*
|
@@ -457,7 +466,7 @@ class zr {
|
|
457
466
|
$$set = void 0;
|
458
467
|
/** @returns {void} */
|
459
468
|
$destroy() {
|
460
|
-
|
469
|
+
zr(this, 1), this.$destroy = I;
|
461
470
|
}
|
462
471
|
/**
|
463
472
|
* @template {Extract<keyof Events, string>} K
|
@@ -466,7 +475,7 @@ class zr {
|
|
466
475
|
* @returns {() => void}
|
467
476
|
*/
|
468
477
|
$on(t, r) {
|
469
|
-
if (!
|
478
|
+
if (!nt(r))
|
470
479
|
return I;
|
471
480
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
472
481
|
return n.push(r), () => {
|
@@ -479,11 +488,11 @@ class zr {
|
|
479
488
|
* @returns {void}
|
480
489
|
*/
|
481
490
|
$set(t) {
|
482
|
-
this.$$set && !
|
491
|
+
this.$$set && !Ir(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
483
492
|
}
|
484
493
|
}
|
485
|
-
const
|
486
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
494
|
+
const Jr = "4";
|
495
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Jr);
|
487
496
|
/*! *****************************************************************************
|
488
497
|
Copyright (c) Microsoft Corporation.
|
489
498
|
|
@@ -498,18 +507,18 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
498
507
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
499
508
|
PERFORMANCE OF THIS SOFTWARE.
|
500
509
|
***************************************************************************** */
|
501
|
-
var
|
502
|
-
return
|
510
|
+
var ke = function(e, t) {
|
511
|
+
return ke = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
503
512
|
r.__proto__ = n;
|
504
513
|
} || function(r, n) {
|
505
514
|
for (var i in n)
|
506
515
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
507
|
-
},
|
516
|
+
}, ke(e, t);
|
508
517
|
};
|
509
518
|
function U(e, t) {
|
510
519
|
if (typeof t != "function" && t !== null)
|
511
520
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
512
|
-
|
521
|
+
ke(e, t);
|
513
522
|
function r() {
|
514
523
|
this.constructor = e;
|
515
524
|
}
|
@@ -525,7 +534,7 @@ var v = function() {
|
|
525
534
|
return t;
|
526
535
|
}, v.apply(this, arguments);
|
527
536
|
};
|
528
|
-
function
|
537
|
+
function Kr(e, t) {
|
529
538
|
var r = {};
|
530
539
|
for (var n in e)
|
531
540
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
@@ -534,7 +543,7 @@ function Qr(e, t) {
|
|
534
543
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
535
544
|
return r;
|
536
545
|
}
|
537
|
-
function
|
546
|
+
function Ve(e) {
|
538
547
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
539
548
|
if (r)
|
540
549
|
return r.call(e);
|
@@ -546,7 +555,7 @@ function ke(e) {
|
|
546
555
|
};
|
547
556
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
548
557
|
}
|
549
|
-
function
|
558
|
+
function Xe(e, t) {
|
550
559
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
551
560
|
if (!r)
|
552
561
|
return e;
|
@@ -575,13 +584,13 @@ function q(e, t, r) {
|
|
575
584
|
function G(e) {
|
576
585
|
return typeof e == "function";
|
577
586
|
}
|
578
|
-
function
|
587
|
+
function zt(e) {
|
579
588
|
var t = function(n) {
|
580
589
|
Error.call(n), n.stack = new Error().stack;
|
581
590
|
}, r = e(t);
|
582
591
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
583
592
|
}
|
584
|
-
var Ie =
|
593
|
+
var Ie = zt(function(e) {
|
585
594
|
return function(r) {
|
586
595
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
587
596
|
` + r.map(function(n, i) {
|
@@ -590,7 +599,7 @@ var Ie = Vt(function(e) {
|
|
590
599
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
591
600
|
};
|
592
601
|
});
|
593
|
-
function
|
602
|
+
function We(e, t) {
|
594
603
|
if (e) {
|
595
604
|
var r = e.indexOf(t);
|
596
605
|
0 <= r && e.splice(r, 1);
|
@@ -608,7 +617,7 @@ var Te = function() {
|
|
608
617
|
if (o)
|
609
618
|
if (this._parentage = null, Array.isArray(o))
|
610
619
|
try {
|
611
|
-
for (var a =
|
620
|
+
for (var a = Ve(o), h = a.next(); !h.done; h = a.next()) {
|
612
621
|
var u = h.value;
|
613
622
|
u.remove(this);
|
614
623
|
}
|
@@ -635,12 +644,12 @@ var Te = function() {
|
|
635
644
|
if (m) {
|
636
645
|
this._finalizers = null;
|
637
646
|
try {
|
638
|
-
for (var c =
|
647
|
+
for (var c = Ve(m), d = c.next(); !d.done; d = c.next()) {
|
639
648
|
var b = d.value;
|
640
649
|
try {
|
641
|
-
|
650
|
+
pt(b);
|
642
651
|
} catch (y) {
|
643
|
-
s = s ?? [], y instanceof Ie ? s = q(q([],
|
652
|
+
s = s ?? [], y instanceof Ie ? s = q(q([], Xe(s)), Xe(y.errors)) : s.push(y);
|
644
653
|
}
|
645
654
|
}
|
646
655
|
} catch (y) {
|
@@ -661,7 +670,7 @@ var Te = function() {
|
|
661
670
|
var r;
|
662
671
|
if (t && t !== this)
|
663
672
|
if (this.closed)
|
664
|
-
|
673
|
+
pt(t);
|
665
674
|
else {
|
666
675
|
if (t instanceof e) {
|
667
676
|
if (t.closed || t._hasParent(this))
|
@@ -678,56 +687,56 @@ var Te = function() {
|
|
678
687
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
679
688
|
}, e.prototype._removeParent = function(t) {
|
680
689
|
var r = this._parentage;
|
681
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
690
|
+
r === t ? this._parentage = null : Array.isArray(r) && We(r, t);
|
682
691
|
}, e.prototype.remove = function(t) {
|
683
692
|
var r = this._finalizers;
|
684
|
-
r &&
|
693
|
+
r && We(r, t), t instanceof e && t._removeParent(this);
|
685
694
|
}, e.EMPTY = function() {
|
686
695
|
var t = new e();
|
687
696
|
return t.closed = !0, t;
|
688
697
|
}(), e;
|
689
|
-
}(),
|
690
|
-
function
|
698
|
+
}(), Zt = Te.EMPTY;
|
699
|
+
function Qt(e) {
|
691
700
|
return e instanceof Te || e && "closed" in e && G(e.remove) && G(e.add) && G(e.unsubscribe);
|
692
701
|
}
|
693
|
-
function
|
702
|
+
function pt(e) {
|
694
703
|
G(e) ? e() : e.unsubscribe();
|
695
704
|
}
|
696
|
-
var
|
705
|
+
var Yt = {
|
697
706
|
onUnhandledError: null,
|
698
707
|
onStoppedNotification: null,
|
699
708
|
Promise: void 0,
|
700
709
|
useDeprecatedSynchronousErrorHandling: !1,
|
701
710
|
useDeprecatedNextContext: !1
|
702
|
-
},
|
711
|
+
}, en = {
|
703
712
|
setTimeout: function(e, t) {
|
704
713
|
for (var r = [], n = 2; n < arguments.length; n++)
|
705
714
|
r[n - 2] = arguments[n];
|
706
|
-
return setTimeout.apply(void 0, q([e, t],
|
715
|
+
return setTimeout.apply(void 0, q([e, t], Xe(r)));
|
707
716
|
},
|
708
717
|
clearTimeout: function(e) {
|
709
718
|
return clearTimeout(e);
|
710
719
|
},
|
711
720
|
delegate: void 0
|
712
721
|
};
|
713
|
-
function
|
714
|
-
|
722
|
+
function tn(e) {
|
723
|
+
en.setTimeout(function() {
|
715
724
|
throw e;
|
716
725
|
});
|
717
726
|
}
|
718
|
-
function
|
727
|
+
function gt() {
|
719
728
|
}
|
720
729
|
function _e(e) {
|
721
730
|
e();
|
722
731
|
}
|
723
|
-
var
|
732
|
+
var qt = function(e) {
|
724
733
|
U(t, e);
|
725
734
|
function t(r) {
|
726
735
|
var n = e.call(this) || this;
|
727
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
736
|
+
return n.isStopped = !1, r ? (n.destination = r, Qt(r) && r.add(n)) : n.destination = on, n;
|
728
737
|
}
|
729
738
|
return t.create = function(r, n, i) {
|
730
|
-
return new
|
739
|
+
return new ze(r, n, i);
|
731
740
|
}, t.prototype.next = function(r) {
|
732
741
|
this.isStopped || this._next(r);
|
733
742
|
}, t.prototype.error = function(r) {
|
@@ -751,7 +760,11 @@ var zt = function(e) {
|
|
751
760
|
this.unsubscribe();
|
752
761
|
}
|
753
762
|
}, t;
|
754
|
-
}(Te),
|
763
|
+
}(Te), rn = Function.prototype.bind;
|
764
|
+
function Me(e, t) {
|
765
|
+
return rn.call(e, t);
|
766
|
+
}
|
767
|
+
var nn = function() {
|
755
768
|
function e(t) {
|
756
769
|
this.partialObserver = t;
|
757
770
|
}
|
@@ -782,43 +795,55 @@ var zt = function(e) {
|
|
782
795
|
ge(r);
|
783
796
|
}
|
784
797
|
}, e;
|
785
|
-
}(),
|
798
|
+
}(), ze = function(e) {
|
786
799
|
U(t, e);
|
787
800
|
function t(r, n, i) {
|
788
801
|
var s = e.call(this) || this, o;
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
802
|
+
if (G(r) || !r)
|
803
|
+
o = {
|
804
|
+
next: r ?? void 0,
|
805
|
+
error: n ?? void 0,
|
806
|
+
complete: i ?? void 0
|
807
|
+
};
|
808
|
+
else {
|
809
|
+
var a;
|
810
|
+
s && Yt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
811
|
+
return s.unsubscribe();
|
812
|
+
}, o = {
|
813
|
+
next: r.next && Me(r.next, a),
|
814
|
+
error: r.error && Me(r.error, a),
|
815
|
+
complete: r.complete && Me(r.complete, a)
|
816
|
+
}) : o = r;
|
817
|
+
}
|
818
|
+
return s.destination = new nn(o), s;
|
794
819
|
}
|
795
820
|
return t;
|
796
|
-
}(
|
821
|
+
}(qt);
|
797
822
|
function ge(e) {
|
798
|
-
|
823
|
+
tn(e);
|
799
824
|
}
|
800
|
-
function
|
825
|
+
function sn(e) {
|
801
826
|
throw e;
|
802
827
|
}
|
803
|
-
var
|
828
|
+
var on = {
|
804
829
|
closed: !0,
|
805
|
-
next:
|
806
|
-
error:
|
807
|
-
complete:
|
808
|
-
},
|
830
|
+
next: gt,
|
831
|
+
error: sn,
|
832
|
+
complete: gt
|
833
|
+
}, an = function() {
|
809
834
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
810
835
|
}();
|
811
|
-
function
|
836
|
+
function un(e) {
|
812
837
|
return e;
|
813
838
|
}
|
814
|
-
function
|
815
|
-
return e.length === 0 ?
|
839
|
+
function hn(e) {
|
840
|
+
return e.length === 0 ? un : e.length === 1 ? e[0] : function(r) {
|
816
841
|
return e.reduce(function(n, i) {
|
817
842
|
return i(n);
|
818
843
|
}, r);
|
819
844
|
};
|
820
845
|
}
|
821
|
-
var
|
846
|
+
var yt = function() {
|
822
847
|
function e(t) {
|
823
848
|
t && (this._subscribe = t);
|
824
849
|
}
|
@@ -826,7 +851,7 @@ var bt = function() {
|
|
826
851
|
var r = new e();
|
827
852
|
return r.source = this, r.operator = t, r;
|
828
853
|
}, e.prototype.subscribe = function(t, r, n) {
|
829
|
-
var i = this, s =
|
854
|
+
var i = this, s = cn(t) ? t : new ze(t, r, n);
|
830
855
|
return _e(function() {
|
831
856
|
var o = i, a = o.operator, h = o.source;
|
832
857
|
s.add(a ? a.call(s, h) : h ? i._subscribe(s) : i._trySubscribe(s));
|
@@ -839,8 +864,8 @@ var bt = function() {
|
|
839
864
|
}
|
840
865
|
}, e.prototype.forEach = function(t, r) {
|
841
866
|
var n = this;
|
842
|
-
return r =
|
843
|
-
var o = new
|
867
|
+
return r = vt(r), new r(function(i, s) {
|
868
|
+
var o = new ze({
|
844
869
|
next: function(a) {
|
845
870
|
try {
|
846
871
|
t(a);
|
@@ -856,15 +881,15 @@ var bt = function() {
|
|
856
881
|
}, e.prototype._subscribe = function(t) {
|
857
882
|
var r;
|
858
883
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
859
|
-
}, e.prototype[
|
884
|
+
}, e.prototype[an] = function() {
|
860
885
|
return this;
|
861
886
|
}, e.prototype.pipe = function() {
|
862
887
|
for (var t = [], r = 0; r < arguments.length; r++)
|
863
888
|
t[r] = arguments[r];
|
864
|
-
return
|
889
|
+
return hn(t)(this);
|
865
890
|
}, e.prototype.toPromise = function(t) {
|
866
891
|
var r = this;
|
867
|
-
return t =
|
892
|
+
return t = vt(t), new t(function(n, i) {
|
868
893
|
var s;
|
869
894
|
r.subscribe(function(o) {
|
870
895
|
return s = o;
|
@@ -878,32 +903,32 @@ var bt = function() {
|
|
878
903
|
return new e(t);
|
879
904
|
}, e;
|
880
905
|
}();
|
881
|
-
function
|
906
|
+
function vt(e) {
|
882
907
|
var t;
|
883
|
-
return (t = e ??
|
908
|
+
return (t = e ?? Yt.Promise) !== null && t !== void 0 ? t : Promise;
|
884
909
|
}
|
885
|
-
function
|
910
|
+
function ln(e) {
|
886
911
|
return e && G(e.next) && G(e.error) && G(e.complete);
|
887
912
|
}
|
888
|
-
function
|
889
|
-
return e && e instanceof
|
913
|
+
function cn(e) {
|
914
|
+
return e && e instanceof qt || ln(e) && Qt(e);
|
890
915
|
}
|
891
|
-
var
|
916
|
+
var fn = zt(function(e) {
|
892
917
|
return function() {
|
893
918
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
894
919
|
};
|
895
|
-
}),
|
920
|
+
}), Jt = function(e) {
|
896
921
|
U(t, e);
|
897
922
|
function t() {
|
898
923
|
var r = e.call(this) || this;
|
899
924
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
900
925
|
}
|
901
926
|
return t.prototype.lift = function(r) {
|
902
|
-
var n = new
|
927
|
+
var n = new _t(this, this);
|
903
928
|
return n.operator = r, n;
|
904
929
|
}, t.prototype._throwIfClosed = function() {
|
905
930
|
if (this.closed)
|
906
|
-
throw new
|
931
|
+
throw new fn();
|
907
932
|
}, t.prototype.next = function(r) {
|
908
933
|
var n = this;
|
909
934
|
_e(function() {
|
@@ -911,7 +936,7 @@ var un = Vt(function(e) {
|
|
911
936
|
if (n._throwIfClosed(), !n.isStopped) {
|
912
937
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
913
938
|
try {
|
914
|
-
for (var o =
|
939
|
+
for (var o = Ve(n.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
915
940
|
var h = a.value;
|
916
941
|
h.next(r);
|
917
942
|
}
|
@@ -960,19 +985,19 @@ var un = Vt(function(e) {
|
|
960
985
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
961
986
|
}, t.prototype._innerSubscribe = function(r) {
|
962
987
|
var n = this, i = this, s = i.hasError, o = i.isStopped, a = i.observers;
|
963
|
-
return s || o ?
|
964
|
-
n.currentObservers = null,
|
988
|
+
return s || o ? Zt : (this.currentObservers = null, a.push(r), new Te(function() {
|
989
|
+
n.currentObservers = null, We(a, r);
|
965
990
|
}));
|
966
991
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
967
992
|
var n = this, i = n.hasError, s = n.thrownError, o = n.isStopped;
|
968
993
|
i ? r.error(s) : o && r.complete();
|
969
994
|
}, t.prototype.asObservable = function() {
|
970
|
-
var r = new
|
995
|
+
var r = new yt();
|
971
996
|
return r.source = this, r;
|
972
997
|
}, t.create = function(r, n) {
|
973
|
-
return new
|
998
|
+
return new _t(r, n);
|
974
999
|
}, t;
|
975
|
-
}(
|
1000
|
+
}(yt), _t = function(e) {
|
976
1001
|
U(t, e);
|
977
1002
|
function t(r, n) {
|
978
1003
|
var i = e.call(this) || this;
|
@@ -989,17 +1014,17 @@ var un = Vt(function(e) {
|
|
989
1014
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
990
1015
|
}, t.prototype._subscribe = function(r) {
|
991
1016
|
var n, i;
|
992
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
1017
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Zt;
|
993
1018
|
}, t;
|
994
|
-
}(
|
1019
|
+
}(Jt), Kt = {
|
995
1020
|
now: function() {
|
996
|
-
return (
|
1021
|
+
return (Kt.delegate || Date).now();
|
997
1022
|
},
|
998
1023
|
delegate: void 0
|
999
|
-
},
|
1024
|
+
}, mn = function(e) {
|
1000
1025
|
U(t, e);
|
1001
1026
|
function t(r, n, i) {
|
1002
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
1027
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Kt);
|
1003
1028
|
var s = e.call(this) || this;
|
1004
1029
|
return s._bufferSize = r, s._windowTime = n, s._timestampProvider = i, s._buffer = [], s._infiniteTimeWindow = !0, s._infiniteTimeWindow = n === 1 / 0, s._bufferSize = Math.max(1, r), s._windowTime = Math.max(1, n), s;
|
1005
1030
|
}
|
@@ -1019,15 +1044,15 @@ var un = Vt(function(e) {
|
|
1019
1044
|
u && s.splice(0, u + 1);
|
1020
1045
|
}
|
1021
1046
|
}, t;
|
1022
|
-
}(
|
1023
|
-
const
|
1024
|
-
if (
|
1025
|
-
const r = new
|
1026
|
-
|
1047
|
+
}(Jt);
|
1048
|
+
const Et = [], xt = {}, dn = (e, t = 0) => {
|
1049
|
+
if (Et.indexOf(e) == -1) {
|
1050
|
+
const r = new mn(t);
|
1051
|
+
xt[e] = r, Et.push(e);
|
1027
1052
|
}
|
1028
|
-
return
|
1053
|
+
return xt[e];
|
1029
1054
|
}, Z = [];
|
1030
|
-
function
|
1055
|
+
function bn(e, t) {
|
1031
1056
|
return {
|
1032
1057
|
subscribe: He(e, t).subscribe
|
1033
1058
|
};
|
@@ -1036,7 +1061,7 @@ function He(e, t = I) {
|
|
1036
1061
|
let r;
|
1037
1062
|
const n = /* @__PURE__ */ new Set();
|
1038
1063
|
function i(a) {
|
1039
|
-
if (
|
1064
|
+
if (Dt(e, a) && (e = a, r)) {
|
1040
1065
|
const h = !Z.length;
|
1041
1066
|
for (const u of n)
|
1042
1067
|
u[1](), Z.push(u, e);
|
@@ -1063,7 +1088,7 @@ function ie(e, t, r) {
|
|
1063
1088
|
if (!i.every(Boolean))
|
1064
1089
|
throw new Error("derived() expects stores as input, got a falsy value");
|
1065
1090
|
const s = t.length < 2;
|
1066
|
-
return
|
1091
|
+
return bn(r, (o, a) => {
|
1067
1092
|
let h = !1;
|
1068
1093
|
const u = [];
|
1069
1094
|
let l = 0, m = I;
|
@@ -1072,9 +1097,9 @@ function ie(e, t, r) {
|
|
1072
1097
|
return;
|
1073
1098
|
m();
|
1074
1099
|
const b = t(n ? u[0] : u, o, a);
|
1075
|
-
s ? o(b) : m =
|
1100
|
+
s ? o(b) : m = nt(b) ? b : I;
|
1076
1101
|
}, d = i.map(
|
1077
|
-
(b, y) =>
|
1102
|
+
(b, y) => Ft(
|
1078
1103
|
b,
|
1079
1104
|
(T) => {
|
1080
1105
|
u[y] = T, l &= ~(1 << y), h && c();
|
@@ -1089,70 +1114,70 @@ function ie(e, t, r) {
|
|
1089
1114
|
};
|
1090
1115
|
});
|
1091
1116
|
}
|
1092
|
-
function
|
1093
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
1117
|
+
function pn(e) {
|
1118
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
1094
1119
|
}
|
1095
|
-
var
|
1096
|
-
return
|
1120
|
+
var gn = function(t) {
|
1121
|
+
return yn(t) && !vn(t);
|
1097
1122
|
};
|
1098
|
-
function
|
1123
|
+
function yn(e) {
|
1099
1124
|
return !!e && typeof e == "object";
|
1100
1125
|
}
|
1101
|
-
function
|
1126
|
+
function vn(e) {
|
1102
1127
|
var t = Object.prototype.toString.call(e);
|
1103
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
1128
|
+
return t === "[object RegExp]" || t === "[object Date]" || xn(e);
|
1104
1129
|
}
|
1105
|
-
var
|
1106
|
-
function
|
1107
|
-
return e.$$typeof ===
|
1130
|
+
var _n = typeof Symbol == "function" && Symbol.for, En = _n ? Symbol.for("react.element") : 60103;
|
1131
|
+
function xn(e) {
|
1132
|
+
return e.$$typeof === En;
|
1108
1133
|
}
|
1109
|
-
function
|
1134
|
+
function Sn(e) {
|
1110
1135
|
return Array.isArray(e) ? [] : {};
|
1111
1136
|
}
|
1112
1137
|
function he(e, t) {
|
1113
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? J(
|
1138
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? J(Sn(e), e, t) : e;
|
1114
1139
|
}
|
1115
|
-
function
|
1140
|
+
function wn(e, t, r) {
|
1116
1141
|
return e.concat(t).map(function(n) {
|
1117
1142
|
return he(n, r);
|
1118
1143
|
});
|
1119
1144
|
}
|
1120
|
-
function
|
1145
|
+
function Tn(e, t) {
|
1121
1146
|
if (!t.customMerge)
|
1122
1147
|
return J;
|
1123
1148
|
var r = t.customMerge(e);
|
1124
1149
|
return typeof r == "function" ? r : J;
|
1125
1150
|
}
|
1126
|
-
function
|
1151
|
+
function Hn(e) {
|
1127
1152
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
1128
1153
|
return Object.propertyIsEnumerable.call(e, t);
|
1129
1154
|
}) : [];
|
1130
1155
|
}
|
1131
|
-
function
|
1132
|
-
return Object.keys(e).concat(
|
1156
|
+
function St(e) {
|
1157
|
+
return Object.keys(e).concat(Hn(e));
|
1133
1158
|
}
|
1134
|
-
function
|
1159
|
+
function er(e, t) {
|
1135
1160
|
try {
|
1136
1161
|
return t in e;
|
1137
1162
|
} catch {
|
1138
1163
|
return !1;
|
1139
1164
|
}
|
1140
1165
|
}
|
1141
|
-
function
|
1142
|
-
return
|
1166
|
+
function Bn(e, t) {
|
1167
|
+
return er(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
1143
1168
|
}
|
1144
|
-
function
|
1169
|
+
function An(e, t, r) {
|
1145
1170
|
var n = {};
|
1146
|
-
return r.isMergeableObject(e) &&
|
1171
|
+
return r.isMergeableObject(e) && St(e).forEach(function(i) {
|
1147
1172
|
n[i] = he(e[i], r);
|
1148
|
-
}),
|
1149
|
-
|
1173
|
+
}), St(t).forEach(function(i) {
|
1174
|
+
Bn(e, i) || (er(e, i) && r.isMergeableObject(t[i]) ? n[i] = Tn(i, r)(e[i], t[i], r) : n[i] = he(t[i], r));
|
1150
1175
|
}), n;
|
1151
1176
|
}
|
1152
1177
|
function J(e, t, r) {
|
1153
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
1178
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || wn, r.isMergeableObject = r.isMergeableObject || gn, r.cloneUnlessOtherwiseSpecified = he;
|
1154
1179
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
1155
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
1180
|
+
return s ? n ? r.arrayMerge(e, t, r) : An(e, t, r) : he(t, r);
|
1156
1181
|
}
|
1157
1182
|
J.all = function(t, r) {
|
1158
1183
|
if (!Array.isArray(t))
|
@@ -1161,60 +1186,58 @@ J.all = function(t, r) {
|
|
1161
1186
|
return J(n, i, r);
|
1162
1187
|
}, {});
|
1163
1188
|
};
|
1164
|
-
var
|
1165
|
-
const
|
1189
|
+
var Pn = J, Nn = Pn;
|
1190
|
+
const On = /* @__PURE__ */ pn(Nn);
|
1166
1191
|
function Ce(e, t) {
|
1167
|
-
var r = t && t.cache ? t.cache :
|
1192
|
+
var r = t && t.cache ? t.cache : Gn, n = t && t.serializer ? t.serializer : Rn, i = t && t.strategy ? t.strategy : In;
|
1168
1193
|
return i(e, {
|
1169
1194
|
cache: r,
|
1170
1195
|
serializer: n
|
1171
1196
|
});
|
1172
1197
|
}
|
1173
|
-
function
|
1198
|
+
function Ln(e) {
|
1174
1199
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
1175
1200
|
}
|
1176
|
-
function
|
1177
|
-
var i =
|
1201
|
+
function tr(e, t, r, n) {
|
1202
|
+
var i = Ln(n) ? n : r(n), s = t.get(i);
|
1178
1203
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
1179
1204
|
}
|
1180
|
-
function
|
1205
|
+
function rr(e, t, r) {
|
1181
1206
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
1182
1207
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
1183
1208
|
}
|
1184
|
-
function
|
1209
|
+
function it(e, t, r, n, i) {
|
1185
1210
|
return r.bind(t, e, n, i);
|
1186
1211
|
}
|
1187
|
-
function
|
1188
|
-
var r = e.length === 1 ?
|
1189
|
-
return
|
1212
|
+
function In(e, t) {
|
1213
|
+
var r = e.length === 1 ? tr : rr;
|
1214
|
+
return it(e, this, r, t.cache.create(), t.serializer);
|
1190
1215
|
}
|
1191
|
-
function
|
1192
|
-
return
|
1216
|
+
function Mn(e, t) {
|
1217
|
+
return it(e, this, rr, t.cache.create(), t.serializer);
|
1193
1218
|
}
|
1194
|
-
function
|
1195
|
-
return
|
1219
|
+
function Cn(e, t) {
|
1220
|
+
return it(e, this, tr, t.cache.create(), t.serializer);
|
1196
1221
|
}
|
1197
|
-
var
|
1222
|
+
var Rn = function() {
|
1198
1223
|
return JSON.stringify(arguments);
|
1199
|
-
}
|
1200
|
-
|
1201
|
-
|
1202
|
-
|
1203
|
-
|
1204
|
-
|
1205
|
-
|
1206
|
-
|
1207
|
-
|
1208
|
-
|
1209
|
-
|
1210
|
-
}()
|
1211
|
-
), Cn = {
|
1224
|
+
};
|
1225
|
+
function st() {
|
1226
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
1227
|
+
}
|
1228
|
+
st.prototype.get = function(e) {
|
1229
|
+
return this.cache[e];
|
1230
|
+
};
|
1231
|
+
st.prototype.set = function(e, t) {
|
1232
|
+
this.cache[e] = t;
|
1233
|
+
};
|
1234
|
+
var Gn = {
|
1212
1235
|
create: function() {
|
1213
|
-
return new
|
1236
|
+
return new st();
|
1214
1237
|
}
|
1215
|
-
},
|
1216
|
-
variadic:
|
1217
|
-
monadic:
|
1238
|
+
}, Re = {
|
1239
|
+
variadic: Mn,
|
1240
|
+
monadic: Cn
|
1218
1241
|
}, p;
|
1219
1242
|
(function(e) {
|
1220
1243
|
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";
|
@@ -1227,43 +1250,43 @@ var K;
|
|
1227
1250
|
(function(e) {
|
1228
1251
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
1229
1252
|
})(K || (K = {}));
|
1230
|
-
function
|
1253
|
+
function wt(e) {
|
1231
1254
|
return e.type === x.literal;
|
1232
1255
|
}
|
1233
|
-
function
|
1256
|
+
function Un(e) {
|
1234
1257
|
return e.type === x.argument;
|
1235
1258
|
}
|
1236
|
-
function
|
1259
|
+
function nr(e) {
|
1237
1260
|
return e.type === x.number;
|
1238
1261
|
}
|
1239
|
-
function
|
1262
|
+
function ir(e) {
|
1240
1263
|
return e.type === x.date;
|
1241
1264
|
}
|
1242
|
-
function
|
1265
|
+
function sr(e) {
|
1243
1266
|
return e.type === x.time;
|
1244
1267
|
}
|
1245
|
-
function
|
1268
|
+
function or(e) {
|
1246
1269
|
return e.type === x.select;
|
1247
1270
|
}
|
1248
|
-
function
|
1271
|
+
function ar(e) {
|
1249
1272
|
return e.type === x.plural;
|
1250
1273
|
}
|
1251
|
-
function
|
1274
|
+
function Dn(e) {
|
1252
1275
|
return e.type === x.pound;
|
1253
1276
|
}
|
1254
|
-
function
|
1277
|
+
function ur(e) {
|
1255
1278
|
return e.type === x.tag;
|
1256
1279
|
}
|
1257
|
-
function
|
1280
|
+
function hr(e) {
|
1258
1281
|
return !!(e && typeof e == "object" && e.type === K.number);
|
1259
1282
|
}
|
1260
|
-
function
|
1283
|
+
function Ze(e) {
|
1261
1284
|
return !!(e && typeof e == "object" && e.type === K.dateTime);
|
1262
1285
|
}
|
1263
|
-
var
|
1264
|
-
function
|
1286
|
+
var lr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Fn = /(?:[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;
|
1287
|
+
function $n(e) {
|
1265
1288
|
var t = {};
|
1266
|
-
return e.replace(
|
1289
|
+
return e.replace(Fn, function(r) {
|
1267
1290
|
var n = r.length;
|
1268
1291
|
switch (r[0]) {
|
1269
1292
|
case "G":
|
@@ -1352,11 +1375,11 @@ function Un(e) {
|
|
1352
1375
|
return "";
|
1353
1376
|
}), t;
|
1354
1377
|
}
|
1355
|
-
var
|
1356
|
-
function
|
1378
|
+
var jn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
1379
|
+
function kn(e) {
|
1357
1380
|
if (e.length === 0)
|
1358
1381
|
throw new Error("Number skeleton cannot be empty");
|
1359
|
-
for (var t = e.split(
|
1382
|
+
for (var t = e.split(jn).filter(function(c) {
|
1360
1383
|
return c.length > 0;
|
1361
1384
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
1362
1385
|
var s = i[n], o = s.split("/");
|
@@ -1371,17 +1394,17 @@ function Fn(e) {
|
|
1371
1394
|
}
|
1372
1395
|
return r;
|
1373
1396
|
}
|
1374
|
-
function
|
1397
|
+
function Vn(e) {
|
1375
1398
|
return e.replace(/^(.*?)-/, "");
|
1376
1399
|
}
|
1377
|
-
var
|
1378
|
-
function
|
1400
|
+
var Tt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, cr = /^(@+)?(\+|#+)?[rs]?$/g, Xn = /(\*)(0+)|(#+)(0+)|(0+)/g, fr = /^(0+)$/;
|
1401
|
+
function Ht(e) {
|
1379
1402
|
var t = {};
|
1380
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
1403
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(cr, function(r, n, i) {
|
1381
1404
|
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)), "";
|
1382
1405
|
}), t;
|
1383
1406
|
}
|
1384
|
-
function
|
1407
|
+
function mr(e) {
|
1385
1408
|
switch (e) {
|
1386
1409
|
case "sign-auto":
|
1387
1410
|
return {
|
@@ -1421,7 +1444,7 @@ function hr(e) {
|
|
1421
1444
|
};
|
1422
1445
|
}
|
1423
1446
|
}
|
1424
|
-
function
|
1447
|
+
function Wn(e) {
|
1425
1448
|
var t;
|
1426
1449
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
1427
1450
|
notation: "engineering"
|
@@ -1429,17 +1452,17 @@ function kn(e) {
|
|
1429
1452
|
notation: "scientific"
|
1430
1453
|
}, e = e.slice(1)), t) {
|
1431
1454
|
var r = e.slice(0, 2);
|
1432
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
1455
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !fr.test(e))
|
1433
1456
|
throw new Error("Malformed concise eng/scientific notation");
|
1434
1457
|
t.minimumIntegerDigits = e.length;
|
1435
1458
|
}
|
1436
1459
|
return t;
|
1437
1460
|
}
|
1438
|
-
function
|
1439
|
-
var t = {}, r =
|
1461
|
+
function Bt(e) {
|
1462
|
+
var t = {}, r = mr(e);
|
1440
1463
|
return r || t;
|
1441
1464
|
}
|
1442
|
-
function
|
1465
|
+
function zn(e) {
|
1443
1466
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
1444
1467
|
var i = n[r];
|
1445
1468
|
switch (i.stem) {
|
@@ -1463,7 +1486,7 @@ function Vn(e) {
|
|
1463
1486
|
continue;
|
1464
1487
|
case "measure-unit":
|
1465
1488
|
case "unit":
|
1466
|
-
t.style = "unit", t.unit =
|
1489
|
+
t.style = "unit", t.unit = Vn(i.options[0]);
|
1467
1490
|
continue;
|
1468
1491
|
case "compact-short":
|
1469
1492
|
case "K":
|
@@ -1475,12 +1498,12 @@ function Vn(e) {
|
|
1475
1498
|
continue;
|
1476
1499
|
case "scientific":
|
1477
1500
|
t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
1478
|
-
return v(v({}, h),
|
1501
|
+
return v(v({}, h), Bt(u));
|
1479
1502
|
}, {}));
|
1480
1503
|
continue;
|
1481
1504
|
case "engineering":
|
1482
1505
|
t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
1483
|
-
return v(v({}, h),
|
1506
|
+
return v(v({}, h), Bt(u));
|
1484
1507
|
}, {}));
|
1485
1508
|
continue;
|
1486
1509
|
case "notation-simple":
|
@@ -1525,7 +1548,7 @@ function Vn(e) {
|
|
1525
1548
|
case "integer-width":
|
1526
1549
|
if (i.options.length > 1)
|
1527
1550
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1528
|
-
i.options[0].replace(
|
1551
|
+
i.options[0].replace(Xn, function(h, u, l, m, c, d) {
|
1529
1552
|
if (u)
|
1530
1553
|
t.minimumIntegerDigits = l.length;
|
1531
1554
|
else {
|
@@ -1538,27 +1561,27 @@ function Vn(e) {
|
|
1538
1561
|
});
|
1539
1562
|
continue;
|
1540
1563
|
}
|
1541
|
-
if (
|
1564
|
+
if (fr.test(i.stem)) {
|
1542
1565
|
t.minimumIntegerDigits = i.stem.length;
|
1543
1566
|
continue;
|
1544
1567
|
}
|
1545
|
-
if (
|
1568
|
+
if (Tt.test(i.stem)) {
|
1546
1569
|
if (i.options.length > 1)
|
1547
1570
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1548
|
-
i.stem.replace(
|
1571
|
+
i.stem.replace(Tt, function(h, u, l, m, c, d) {
|
1549
1572
|
return l === "*" ? t.minimumFractionDigits = u.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
1550
1573
|
});
|
1551
1574
|
var s = i.options[0];
|
1552
|
-
s === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = v(v({}, t),
|
1575
|
+
s === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = v(v({}, t), Ht(s)));
|
1553
1576
|
continue;
|
1554
1577
|
}
|
1555
|
-
if (
|
1556
|
-
t = v(v({}, t),
|
1578
|
+
if (cr.test(i.stem)) {
|
1579
|
+
t = v(v({}, t), Ht(i.stem));
|
1557
1580
|
continue;
|
1558
1581
|
}
|
1559
|
-
var o =
|
1582
|
+
var o = mr(i.stem);
|
1560
1583
|
o && (t = v(v({}, t), o));
|
1561
|
-
var a =
|
1584
|
+
var a = Wn(i.stem);
|
1562
1585
|
a && (t = v(v({}, t), a));
|
1563
1586
|
}
|
1564
1587
|
return t;
|
@@ -2978,13 +3001,13 @@ var ye = {
|
|
2978
3001
|
"h"
|
2979
3002
|
]
|
2980
3003
|
};
|
2981
|
-
function
|
3004
|
+
function Zn(e, t) {
|
2982
3005
|
for (var r = "", n = 0; n < e.length; n++) {
|
2983
3006
|
var i = e.charAt(n);
|
2984
3007
|
if (i === "j") {
|
2985
3008
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
2986
3009
|
s++, n++;
|
2987
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u =
|
3010
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u = Qn(t);
|
2988
3011
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
2989
3012
|
r += h;
|
2990
3013
|
for (; o-- > 0; )
|
@@ -2994,7 +3017,7 @@ function Xn(e, t) {
|
|
2994
3017
|
}
|
2995
3018
|
return r;
|
2996
3019
|
}
|
2997
|
-
function
|
3020
|
+
function Qn(e) {
|
2998
3021
|
var t = e.hourCycle;
|
2999
3022
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
3000
3023
|
e.hourCycles && // @ts-ignore
|
@@ -3016,20 +3039,20 @@ function Wn(e) {
|
|
3016
3039
|
var i = ye[n || ""] || ye[r || ""] || ye["".concat(r, "-001")] || ye["001"];
|
3017
3040
|
return i[0];
|
3018
3041
|
}
|
3019
|
-
var
|
3042
|
+
var Ge, Yn = new RegExp("^".concat(lr.source, "*")), qn = new RegExp("".concat(lr.source, "*$"));
|
3020
3043
|
function g(e, t) {
|
3021
3044
|
return { start: e, end: t };
|
3022
3045
|
}
|
3023
|
-
var
|
3046
|
+
var Jn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Kn = !!String.fromCodePoint, ei = !!Object.fromEntries, ti = !!String.prototype.codePointAt, ri = !!String.prototype.trimStart, ni = !!String.prototype.trimEnd, ii = !!Number.isSafeInteger, si = ii ? Number.isSafeInteger : function(e) {
|
3024
3047
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
3025
|
-
},
|
3048
|
+
}, Qe = !0;
|
3026
3049
|
try {
|
3027
|
-
var
|
3028
|
-
|
3050
|
+
var oi = br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
3051
|
+
Qe = ((Ge = oi.exec("a")) === null || Ge === void 0 ? void 0 : Ge[0]) === "a";
|
3029
3052
|
} catch {
|
3030
|
-
|
3053
|
+
Qe = !1;
|
3031
3054
|
}
|
3032
|
-
var
|
3055
|
+
var At = Jn ? (
|
3033
3056
|
// Native
|
3034
3057
|
function(t, r, n) {
|
3035
3058
|
return t.startsWith(r, n);
|
@@ -3039,7 +3062,7 @@ var Tt = Qn ? (
|
|
3039
3062
|
function(t, r, n) {
|
3040
3063
|
return t.slice(n, n + r.length) === r;
|
3041
3064
|
}
|
3042
|
-
),
|
3065
|
+
), Ye = Kn ? String.fromCodePoint : (
|
3043
3066
|
// IE11
|
3044
3067
|
function() {
|
3045
3068
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -3051,9 +3074,9 @@ var Tt = Qn ? (
|
|
3051
3074
|
}
|
3052
3075
|
return n;
|
3053
3076
|
}
|
3054
|
-
),
|
3077
|
+
), Pt = (
|
3055
3078
|
// native
|
3056
|
-
|
3079
|
+
ei ? Object.fromEntries : (
|
3057
3080
|
// Ponyfill
|
3058
3081
|
function(t) {
|
3059
3082
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
@@ -3063,7 +3086,7 @@ var Tt = Qn ? (
|
|
3063
3086
|
return r;
|
3064
3087
|
}
|
3065
3088
|
)
|
3066
|
-
),
|
3089
|
+
), dr = ti ? (
|
3067
3090
|
// Native
|
3068
3091
|
function(t, r) {
|
3069
3092
|
return t.codePointAt(r);
|
@@ -3077,7 +3100,7 @@ var Tt = Qn ? (
|
|
3077
3100
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
3078
3101
|
}
|
3079
3102
|
}
|
3080
|
-
),
|
3103
|
+
), ai = ri ? (
|
3081
3104
|
// Native
|
3082
3105
|
function(t) {
|
3083
3106
|
return t.trimStart();
|
@@ -3085,9 +3108,9 @@ var Tt = Qn ? (
|
|
3085
3108
|
) : (
|
3086
3109
|
// Ponyfill
|
3087
3110
|
function(t) {
|
3088
|
-
return t.replace(
|
3111
|
+
return t.replace(Yn, "");
|
3089
3112
|
}
|
3090
|
-
),
|
3113
|
+
), ui = ni ? (
|
3091
3114
|
// Native
|
3092
3115
|
function(t) {
|
3093
3116
|
return t.trimEnd();
|
@@ -3095,32 +3118,32 @@ var Tt = Qn ? (
|
|
3095
3118
|
) : (
|
3096
3119
|
// Ponyfill
|
3097
3120
|
function(t) {
|
3098
|
-
return t.replace(
|
3121
|
+
return t.replace(qn, "");
|
3099
3122
|
}
|
3100
3123
|
);
|
3101
|
-
function
|
3124
|
+
function br(e, t) {
|
3102
3125
|
return new RegExp(e, t);
|
3103
3126
|
}
|
3104
|
-
var
|
3105
|
-
if (
|
3106
|
-
var
|
3107
|
-
|
3127
|
+
var qe;
|
3128
|
+
if (Qe) {
|
3129
|
+
var Nt = br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
3130
|
+
qe = function(t, r) {
|
3108
3131
|
var n;
|
3109
|
-
|
3110
|
-
var i =
|
3132
|
+
Nt.lastIndex = r;
|
3133
|
+
var i = Nt.exec(t);
|
3111
3134
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
3112
3135
|
};
|
3113
3136
|
} else
|
3114
|
-
|
3137
|
+
qe = function(t, r) {
|
3115
3138
|
for (var n = []; ; ) {
|
3116
|
-
var i =
|
3117
|
-
if (i === void 0 ||
|
3139
|
+
var i = dr(t, r);
|
3140
|
+
if (i === void 0 || pr(i) || fi(i))
|
3118
3141
|
break;
|
3119
3142
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
3120
3143
|
}
|
3121
|
-
return
|
3144
|
+
return Ye.apply(void 0, n);
|
3122
3145
|
};
|
3123
|
-
var
|
3146
|
+
var hi = (
|
3124
3147
|
/** @class */
|
3125
3148
|
function() {
|
3126
3149
|
function e(t, r) {
|
@@ -3151,7 +3174,7 @@ var oi = (
|
|
3151
3174
|
if (n)
|
3152
3175
|
break;
|
3153
3176
|
return this.error(p.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
3154
|
-
} else if (s === 60 && !this.ignoreTag &&
|
3177
|
+
} else if (s === 60 && !this.ignoreTag && Je(this.peek() || 0)) {
|
3155
3178
|
var o = this.parseTag(t, r);
|
3156
3179
|
if (o.err)
|
3157
3180
|
return o;
|
@@ -3184,7 +3207,7 @@ var oi = (
|
|
3184
3207
|
return s;
|
3185
3208
|
var o = s.val, a = this.clonePosition();
|
3186
3209
|
if (this.bumpIf("</")) {
|
3187
|
-
if (this.isEOF() || !
|
3210
|
+
if (this.isEOF() || !Je(this.char()))
|
3188
3211
|
return this.error(p.INVALID_TAG, g(a, this.clonePosition()));
|
3189
3212
|
var h = this.clonePosition(), u = this.parseTagName();
|
3190
3213
|
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, g(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
@@ -3202,7 +3225,7 @@ var oi = (
|
|
3202
3225
|
return this.error(p.INVALID_TAG, g(n, this.clonePosition()));
|
3203
3226
|
}, e.prototype.parseTagName = function() {
|
3204
3227
|
var t = this.offset();
|
3205
|
-
for (this.bump(); !this.isEOF() &&
|
3228
|
+
for (this.bump(); !this.isEOF() && ci(this.char()); )
|
3206
3229
|
this.bump();
|
3207
3230
|
return this.message.slice(t, this.offset());
|
3208
3231
|
}, e.prototype.parseLiteral = function(t, r) {
|
@@ -3231,7 +3254,7 @@ var oi = (
|
|
3231
3254
|
};
|
3232
3255
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
3233
3256
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
3234
|
-
!
|
3257
|
+
!li(this.peek() || 0)) ? (this.bump(), "<") : null;
|
3235
3258
|
}, e.prototype.tryParseQuote = function(t) {
|
3236
3259
|
if (this.isEOF() || this.char() !== 39)
|
3237
3260
|
return null;
|
@@ -3265,12 +3288,12 @@ var oi = (
|
|
3265
3288
|
r.push(n);
|
3266
3289
|
this.bump();
|
3267
3290
|
}
|
3268
|
-
return
|
3291
|
+
return Ye.apply(void 0, r);
|
3269
3292
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
3270
3293
|
if (this.isEOF())
|
3271
3294
|
return null;
|
3272
3295
|
var n = this.char();
|
3273
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
3296
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ye(n));
|
3274
3297
|
}, e.prototype.parseArgument = function(t, r) {
|
3275
3298
|
var n = this.clonePosition();
|
3276
3299
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
@@ -3299,7 +3322,7 @@ var oi = (
|
|
3299
3322
|
return this.error(p.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
3300
3323
|
}
|
3301
3324
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
3302
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
3325
|
+
var t = this.clonePosition(), r = this.offset(), n = qe(this.message, r), i = r + n.length;
|
3303
3326
|
this.bumpTo(i);
|
3304
3327
|
var s = this.clonePosition(), o = g(t, s);
|
3305
3328
|
return { value: n, location: o };
|
@@ -3318,7 +3341,7 @@ var oi = (
|
|
3318
3341
|
var l = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
|
3319
3342
|
if (m.err)
|
3320
3343
|
return m;
|
3321
|
-
var c =
|
3344
|
+
var c = ui(m.val);
|
3322
3345
|
if (c.length === 0)
|
3323
3346
|
return this.error(p.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
3324
3347
|
var d = g(l, this.clonePosition());
|
@@ -3328,8 +3351,8 @@ var oi = (
|
|
3328
3351
|
if (b.err)
|
3329
3352
|
return b;
|
3330
3353
|
var y = g(i, this.clonePosition());
|
3331
|
-
if (u &&
|
3332
|
-
var T =
|
3354
|
+
if (u && At(u?.style, "::", 0)) {
|
3355
|
+
var T = ai(u.style.slice(2));
|
3333
3356
|
if (a === "number") {
|
3334
3357
|
var m = this.parseNumberSkeletonFromString(T, u.styleLocation);
|
3335
3358
|
return m.err ? m : {
|
@@ -3339,13 +3362,13 @@ var oi = (
|
|
3339
3362
|
} else {
|
3340
3363
|
if (T.length === 0)
|
3341
3364
|
return this.error(p.EXPECT_DATE_TIME_SKELETON, y);
|
3342
|
-
var
|
3343
|
-
this.locale && (
|
3365
|
+
var M = T;
|
3366
|
+
this.locale && (M = Zn(T, this.locale));
|
3344
3367
|
var c = {
|
3345
3368
|
type: K.dateTime,
|
3346
|
-
pattern:
|
3369
|
+
pattern: M,
|
3347
3370
|
location: u.styleLocation,
|
3348
|
-
parsedOptions: this.shouldParseSkeletons ?
|
3371
|
+
parsedOptions: this.shouldParseSkeletons ? $n(M) : {}
|
3349
3372
|
}, P = a === "date" ? x.date : x.time;
|
3350
3373
|
return {
|
3351
3374
|
val: { type: P, value: n, location: y, style: c },
|
@@ -3380,9 +3403,9 @@ var oi = (
|
|
3380
3403
|
return m;
|
3381
3404
|
this.bumpSpace(), N = this.parseIdentifierIfPossible(), O = m.val;
|
3382
3405
|
}
|
3383
|
-
var
|
3384
|
-
if (
|
3385
|
-
return
|
3406
|
+
var C = this.tryParsePluralOrSelectOptions(t, a, r, N);
|
3407
|
+
if (C.err)
|
3408
|
+
return C;
|
3386
3409
|
var b = this.tryParseArgumentClose(i);
|
3387
3410
|
if (b.err)
|
3388
3411
|
return b;
|
@@ -3391,7 +3414,7 @@ var oi = (
|
|
3391
3414
|
val: {
|
3392
3415
|
type: x.select,
|
3393
3416
|
value: n,
|
3394
|
-
options:
|
3417
|
+
options: Pt(C.val),
|
3395
3418
|
location: E
|
3396
3419
|
},
|
3397
3420
|
err: null
|
@@ -3399,7 +3422,7 @@ var oi = (
|
|
3399
3422
|
val: {
|
3400
3423
|
type: x.plural,
|
3401
3424
|
value: n,
|
3402
|
-
options:
|
3425
|
+
options: Pt(C.val),
|
3403
3426
|
offset: O,
|
3404
3427
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
3405
3428
|
location: E
|
@@ -3450,7 +3473,7 @@ var oi = (
|
|
3450
3473
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
3451
3474
|
var n = [];
|
3452
3475
|
try {
|
3453
|
-
n =
|
3476
|
+
n = kn(t);
|
3454
3477
|
} catch {
|
3455
3478
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
3456
3479
|
}
|
@@ -3459,7 +3482,7 @@ var oi = (
|
|
3459
3482
|
type: K.number,
|
3460
3483
|
tokens: n,
|
3461
3484
|
location: r,
|
3462
|
-
parsedOptions: this.shouldParseSkeletons ?
|
3485
|
+
parsedOptions: this.shouldParseSkeletons ? zn(n) : {}
|
3463
3486
|
},
|
3464
3487
|
err: null
|
3465
3488
|
};
|
@@ -3507,7 +3530,7 @@ var oi = (
|
|
3507
3530
|
break;
|
3508
3531
|
}
|
3509
3532
|
var h = g(i, this.clonePosition());
|
3510
|
-
return s ? (o *= n,
|
3533
|
+
return s ? (o *= n, si(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
3511
3534
|
}, e.prototype.offset = function() {
|
3512
3535
|
return this.position.offset;
|
3513
3536
|
}, e.prototype.isEOF = function() {
|
@@ -3522,7 +3545,7 @@ var oi = (
|
|
3522
3545
|
var t = this.position.offset;
|
3523
3546
|
if (t >= this.message.length)
|
3524
3547
|
throw Error("out of bound");
|
3525
|
-
var r =
|
3548
|
+
var r = dr(this.message, t);
|
3526
3549
|
if (r === void 0)
|
3527
3550
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
3528
3551
|
return r;
|
@@ -3541,7 +3564,7 @@ var oi = (
|
|
3541
3564
|
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);
|
3542
3565
|
}
|
3543
3566
|
}, e.prototype.bumpIf = function(t) {
|
3544
|
-
if (
|
3567
|
+
if (At(this.message, t, this.offset())) {
|
3545
3568
|
for (var r = 0; r < t.length; r++)
|
3546
3569
|
this.bump();
|
3547
3570
|
return !0;
|
@@ -3563,7 +3586,7 @@ var oi = (
|
|
3563
3586
|
break;
|
3564
3587
|
}
|
3565
3588
|
}, e.prototype.bumpSpace = function() {
|
3566
|
-
for (; !this.isEOF() &&
|
3589
|
+
for (; !this.isEOF() && pr(this.char()); )
|
3567
3590
|
this.bump();
|
3568
3591
|
}, e.prototype.peek = function() {
|
3569
3592
|
if (this.isEOF())
|
@@ -3573,44 +3596,44 @@ var oi = (
|
|
3573
3596
|
}, e;
|
3574
3597
|
}()
|
3575
3598
|
);
|
3576
|
-
function
|
3599
|
+
function Je(e) {
|
3577
3600
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3578
3601
|
}
|
3579
|
-
function
|
3580
|
-
return
|
3602
|
+
function li(e) {
|
3603
|
+
return Je(e) || e === 47;
|
3581
3604
|
}
|
3582
|
-
function
|
3605
|
+
function ci(e) {
|
3583
3606
|
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;
|
3584
3607
|
}
|
3585
|
-
function
|
3608
|
+
function pr(e) {
|
3586
3609
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3587
3610
|
}
|
3588
|
-
function
|
3611
|
+
function fi(e) {
|
3589
3612
|
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;
|
3590
3613
|
}
|
3591
|
-
function
|
3614
|
+
function Ke(e) {
|
3592
3615
|
e.forEach(function(t) {
|
3593
|
-
if (delete t.location,
|
3616
|
+
if (delete t.location, or(t) || ar(t))
|
3594
3617
|
for (var r in t.options)
|
3595
|
-
delete t.options[r].location,
|
3618
|
+
delete t.options[r].location, Ke(t.options[r].value);
|
3596
3619
|
else
|
3597
|
-
|
3620
|
+
nr(t) && hr(t.style) || (ir(t) || sr(t)) && Ze(t.style) ? delete t.style.location : ur(t) && Ke(t.children);
|
3598
3621
|
});
|
3599
3622
|
}
|
3600
|
-
function
|
3623
|
+
function mi(e, t) {
|
3601
3624
|
t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3602
|
-
var r = new
|
3625
|
+
var r = new hi(e, t).parse();
|
3603
3626
|
if (r.err) {
|
3604
3627
|
var n = SyntaxError(p[r.err.kind]);
|
3605
3628
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3606
3629
|
}
|
3607
|
-
return t?.captureLocation ||
|
3630
|
+
return t?.captureLocation || Ke(r.val), r.val;
|
3608
3631
|
}
|
3609
3632
|
var ee;
|
3610
3633
|
(function(e) {
|
3611
3634
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
3612
3635
|
})(ee || (ee = {}));
|
3613
|
-
var
|
3636
|
+
var Be = (
|
3614
3637
|
/** @class */
|
3615
3638
|
function(e) {
|
3616
3639
|
U(t, e);
|
@@ -3622,7 +3645,7 @@ var Ae = (
|
|
3622
3645
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
3623
3646
|
}, t;
|
3624
3647
|
}(Error)
|
3625
|
-
),
|
3648
|
+
), Ot = (
|
3626
3649
|
/** @class */
|
3627
3650
|
function(e) {
|
3628
3651
|
U(t, e);
|
@@ -3630,8 +3653,8 @@ var Ae = (
|
|
3630
3653
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ee.INVALID_VALUE, s) || this;
|
3631
3654
|
}
|
3632
3655
|
return t;
|
3633
|
-
}(
|
3634
|
-
),
|
3656
|
+
}(Be)
|
3657
|
+
), di = (
|
3635
3658
|
/** @class */
|
3636
3659
|
function(e) {
|
3637
3660
|
U(t, e);
|
@@ -3639,8 +3662,8 @@ var Ae = (
|
|
3639
3662
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ee.INVALID_VALUE, i) || this;
|
3640
3663
|
}
|
3641
3664
|
return t;
|
3642
|
-
}(
|
3643
|
-
),
|
3665
|
+
}(Be)
|
3666
|
+
), bi = (
|
3644
3667
|
/** @class */
|
3645
3668
|
function(e) {
|
3646
3669
|
U(t, e);
|
@@ -3648,22 +3671,22 @@ var Ae = (
|
|
3648
3671
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ee.MISSING_VALUE, n) || this;
|
3649
3672
|
}
|
3650
3673
|
return t;
|
3651
|
-
}(
|
3674
|
+
}(Be)
|
3652
3675
|
), H;
|
3653
3676
|
(function(e) {
|
3654
3677
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3655
3678
|
})(H || (H = {}));
|
3656
|
-
function
|
3679
|
+
function pi(e) {
|
3657
3680
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3658
3681
|
var n = t[t.length - 1];
|
3659
3682
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
3660
3683
|
}, []);
|
3661
3684
|
}
|
3662
|
-
function
|
3685
|
+
function gi(e) {
|
3663
3686
|
return typeof e == "function";
|
3664
3687
|
}
|
3665
3688
|
function Ee(e, t, r, n, i, s, o) {
|
3666
|
-
if (e.length === 1 &&
|
3689
|
+
if (e.length === 1 && wt(e[0]))
|
3667
3690
|
return [
|
3668
3691
|
{
|
3669
3692
|
type: H.literal,
|
@@ -3672,14 +3695,14 @@ function Ee(e, t, r, n, i, s, o) {
|
|
3672
3695
|
];
|
3673
3696
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
3674
3697
|
var l = u[h];
|
3675
|
-
if (
|
3698
|
+
if (wt(l)) {
|
3676
3699
|
a.push({
|
3677
3700
|
type: H.literal,
|
3678
3701
|
value: l.value
|
3679
3702
|
});
|
3680
3703
|
continue;
|
3681
3704
|
}
|
3682
|
-
if (
|
3705
|
+
if (Dn(l)) {
|
3683
3706
|
typeof s == "number" && a.push({
|
3684
3707
|
type: H.literal,
|
3685
3708
|
value: r.getNumberFormat(t).format(s)
|
@@ -3688,44 +3711,44 @@ function Ee(e, t, r, n, i, s, o) {
|
|
3688
3711
|
}
|
3689
3712
|
var m = l.value;
|
3690
3713
|
if (!(i && m in i))
|
3691
|
-
throw new
|
3714
|
+
throw new bi(m, o);
|
3692
3715
|
var c = i[m];
|
3693
|
-
if (
|
3716
|
+
if (Un(l)) {
|
3694
3717
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
3695
3718
|
type: typeof c == "string" ? H.literal : H.object,
|
3696
3719
|
value: c
|
3697
3720
|
});
|
3698
3721
|
continue;
|
3699
3722
|
}
|
3700
|
-
if (
|
3701
|
-
var d = typeof l.style == "string" ? n.date[l.style] :
|
3723
|
+
if (ir(l)) {
|
3724
|
+
var d = typeof l.style == "string" ? n.date[l.style] : Ze(l.style) ? l.style.parsedOptions : void 0;
|
3702
3725
|
a.push({
|
3703
3726
|
type: H.literal,
|
3704
3727
|
value: r.getDateTimeFormat(t, d).format(c)
|
3705
3728
|
});
|
3706
3729
|
continue;
|
3707
3730
|
}
|
3708
|
-
if (
|
3709
|
-
var d = typeof l.style == "string" ? n.time[l.style] :
|
3731
|
+
if (sr(l)) {
|
3732
|
+
var d = typeof l.style == "string" ? n.time[l.style] : Ze(l.style) ? l.style.parsedOptions : n.time.medium;
|
3710
3733
|
a.push({
|
3711
3734
|
type: H.literal,
|
3712
3735
|
value: r.getDateTimeFormat(t, d).format(c)
|
3713
3736
|
});
|
3714
3737
|
continue;
|
3715
3738
|
}
|
3716
|
-
if (
|
3717
|
-
var d = typeof l.style == "string" ? n.number[l.style] :
|
3739
|
+
if (nr(l)) {
|
3740
|
+
var d = typeof l.style == "string" ? n.number[l.style] : hr(l.style) ? l.style.parsedOptions : void 0;
|
3718
3741
|
d && d.scale && (c = c * (d.scale || 1)), a.push({
|
3719
3742
|
type: H.literal,
|
3720
3743
|
value: r.getNumberFormat(t, d).format(c)
|
3721
3744
|
});
|
3722
3745
|
continue;
|
3723
3746
|
}
|
3724
|
-
if (
|
3747
|
+
if (ur(l)) {
|
3725
3748
|
var b = l.children, y = l.value, T = i[y];
|
3726
|
-
if (!
|
3727
|
-
throw new
|
3728
|
-
var
|
3749
|
+
if (!gi(T))
|
3750
|
+
throw new di(y, "function", o);
|
3751
|
+
var M = Ee(b, t, r, n, i, s), P = T(M.map(function(O) {
|
3729
3752
|
return O.value;
|
3730
3753
|
}));
|
3731
3754
|
Array.isArray(P) || (P = [P]), a.push.apply(a, P.map(function(O) {
|
@@ -3735,42 +3758,42 @@ function Ee(e, t, r, n, i, s, o) {
|
|
3735
3758
|
};
|
3736
3759
|
}));
|
3737
3760
|
}
|
3738
|
-
if (
|
3761
|
+
if (or(l)) {
|
3739
3762
|
var w = l.options[c] || l.options.other;
|
3740
3763
|
if (!w)
|
3741
|
-
throw new
|
3764
|
+
throw new Ot(l.value, c, Object.keys(l.options), o);
|
3742
3765
|
a.push.apply(a, Ee(w.value, t, r, n, i));
|
3743
3766
|
continue;
|
3744
3767
|
}
|
3745
|
-
if (
|
3768
|
+
if (ar(l)) {
|
3746
3769
|
var w = l.options["=".concat(c)];
|
3747
3770
|
if (!w) {
|
3748
3771
|
if (!Intl.PluralRules)
|
3749
|
-
throw new
|
3772
|
+
throw new Be(`Intl.PluralRules is not available in this environment.
|
3750
3773
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3751
3774
|
`, ee.MISSING_INTL_API, o);
|
3752
3775
|
var N = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
3753
3776
|
w = l.options[N] || l.options.other;
|
3754
3777
|
}
|
3755
3778
|
if (!w)
|
3756
|
-
throw new
|
3779
|
+
throw new Ot(l.value, c, Object.keys(l.options), o);
|
3757
3780
|
a.push.apply(a, Ee(w.value, t, r, n, i, c - (l.offset || 0)));
|
3758
3781
|
continue;
|
3759
3782
|
}
|
3760
3783
|
}
|
3761
|
-
return
|
3784
|
+
return pi(a);
|
3762
3785
|
}
|
3763
|
-
function
|
3786
|
+
function yi(e, t) {
|
3764
3787
|
return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3765
3788
|
return r[n] = v(v({}, e[n]), t[n] || {}), r;
|
3766
3789
|
}, {})) : e;
|
3767
3790
|
}
|
3768
|
-
function
|
3791
|
+
function vi(e, t) {
|
3769
3792
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3770
|
-
return r[n] =
|
3793
|
+
return r[n] = yi(e[n], t[n]), r;
|
3771
3794
|
}, v({}, e)) : e;
|
3772
3795
|
}
|
3773
|
-
function
|
3796
|
+
function Ue(e) {
|
3774
3797
|
return {
|
3775
3798
|
create: function() {
|
3776
3799
|
return {
|
@@ -3784,7 +3807,7 @@ function Ge(e) {
|
|
3784
3807
|
}
|
3785
3808
|
};
|
3786
3809
|
}
|
3787
|
-
function
|
3810
|
+
function _i(e) {
|
3788
3811
|
return e === void 0 && (e = {
|
3789
3812
|
number: {},
|
3790
3813
|
dateTime: {},
|
@@ -3795,28 +3818,28 @@ function gi(e) {
|
|
3795
3818
|
r[n] = arguments[n];
|
3796
3819
|
return new ((t = Intl.NumberFormat).bind.apply(t, q([void 0], r, !1)))();
|
3797
3820
|
}, {
|
3798
|
-
cache:
|
3799
|
-
strategy:
|
3821
|
+
cache: Ue(e.number),
|
3822
|
+
strategy: Re.variadic
|
3800
3823
|
}),
|
3801
3824
|
getDateTimeFormat: Ce(function() {
|
3802
3825
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3803
3826
|
r[n] = arguments[n];
|
3804
3827
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, q([void 0], r, !1)))();
|
3805
3828
|
}, {
|
3806
|
-
cache:
|
3807
|
-
strategy:
|
3829
|
+
cache: Ue(e.dateTime),
|
3830
|
+
strategy: Re.variadic
|
3808
3831
|
}),
|
3809
3832
|
getPluralRules: Ce(function() {
|
3810
3833
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3811
3834
|
r[n] = arguments[n];
|
3812
3835
|
return new ((t = Intl.PluralRules).bind.apply(t, q([void 0], r, !1)))();
|
3813
3836
|
}, {
|
3814
|
-
cache:
|
3815
|
-
strategy:
|
3837
|
+
cache: Ue(e.pluralRules),
|
3838
|
+
strategy: Re.variadic
|
3816
3839
|
})
|
3817
3840
|
};
|
3818
3841
|
}
|
3819
|
-
var
|
3842
|
+
var Ei = (
|
3820
3843
|
/** @class */
|
3821
3844
|
function() {
|
3822
3845
|
function e(t, r, n, i) {
|
@@ -3848,13 +3871,13 @@ var yi = (
|
|
3848
3871
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3849
3872
|
var o = i || {};
|
3850
3873
|
o.formatters;
|
3851
|
-
var a =
|
3874
|
+
var a = Kr(o, ["formatters"]);
|
3852
3875
|
this.ast = e.__parse(t, v(v({}, a), { locale: this.resolvedLocale }));
|
3853
3876
|
} else
|
3854
3877
|
this.ast = t;
|
3855
3878
|
if (!Array.isArray(this.ast))
|
3856
3879
|
throw new TypeError("A message must be provided as a String or AST.");
|
3857
|
-
this.formats =
|
3880
|
+
this.formats = vi(e.formats, n), this.formatters = i && i.formatters || _i(this.formatterCache);
|
3858
3881
|
}
|
3859
3882
|
return Object.defineProperty(e, "defaultLocale", {
|
3860
3883
|
get: function() {
|
@@ -3867,7 +3890,7 @@ var yi = (
|
|
3867
3890
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
3868
3891
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
3869
3892
|
}
|
3870
|
-
}, e.__parse =
|
3893
|
+
}, e.__parse = mi, e.formats = {
|
3871
3894
|
number: {
|
3872
3895
|
integer: {
|
3873
3896
|
maximumFractionDigits: 0
|
@@ -3928,7 +3951,7 @@ var yi = (
|
|
3928
3951
|
}, e;
|
3929
3952
|
}()
|
3930
3953
|
);
|
3931
|
-
function
|
3954
|
+
function xi(e, t) {
|
3932
3955
|
if (t == null)
|
3933
3956
|
return;
|
3934
3957
|
if (t in e)
|
@@ -3949,92 +3972,92 @@ function vi(e, t) {
|
|
3949
3972
|
n = void 0;
|
3950
3973
|
return n;
|
3951
3974
|
}
|
3952
|
-
const D = {},
|
3975
|
+
const D = {}, Si = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), gr = (e, t) => {
|
3953
3976
|
if (t == null)
|
3954
3977
|
return;
|
3955
3978
|
if (t in D && e in D[t])
|
3956
3979
|
return D[t][e];
|
3957
|
-
const r =
|
3980
|
+
const r = Ae(t);
|
3958
3981
|
for (let n = 0; n < r.length; n++) {
|
3959
|
-
const i = r[n], s =
|
3982
|
+
const i = r[n], s = Ti(i, e);
|
3960
3983
|
if (s)
|
3961
|
-
return
|
3984
|
+
return Si(e, t, s);
|
3962
3985
|
}
|
3963
3986
|
};
|
3964
|
-
let
|
3987
|
+
let ot;
|
3965
3988
|
const me = He({});
|
3966
|
-
function
|
3967
|
-
return
|
3989
|
+
function wi(e) {
|
3990
|
+
return ot[e] || null;
|
3968
3991
|
}
|
3969
|
-
function
|
3970
|
-
return e in
|
3992
|
+
function yr(e) {
|
3993
|
+
return e in ot;
|
3971
3994
|
}
|
3972
|
-
function
|
3973
|
-
if (!
|
3995
|
+
function Ti(e, t) {
|
3996
|
+
if (!yr(e))
|
3974
3997
|
return null;
|
3975
|
-
const r =
|
3976
|
-
return
|
3998
|
+
const r = wi(e);
|
3999
|
+
return xi(r, t);
|
3977
4000
|
}
|
3978
|
-
function
|
4001
|
+
function Hi(e) {
|
3979
4002
|
if (e == null)
|
3980
4003
|
return;
|
3981
|
-
const t =
|
4004
|
+
const t = Ae(e);
|
3982
4005
|
for (let r = 0; r < t.length; r++) {
|
3983
4006
|
const n = t[r];
|
3984
|
-
if (
|
4007
|
+
if (yr(n))
|
3985
4008
|
return n;
|
3986
4009
|
}
|
3987
4010
|
}
|
3988
|
-
function
|
3989
|
-
delete D[e], me.update((r) => (r[e] =
|
4011
|
+
function vr(e, ...t) {
|
4012
|
+
delete D[e], me.update((r) => (r[e] = On.all([r[e] || {}, ...t]), r));
|
3990
4013
|
}
|
3991
4014
|
ie(
|
3992
4015
|
[me],
|
3993
4016
|
([e]) => Object.keys(e)
|
3994
4017
|
);
|
3995
|
-
me.subscribe((e) =>
|
4018
|
+
me.subscribe((e) => ot = e);
|
3996
4019
|
const xe = {};
|
3997
|
-
function
|
4020
|
+
function Bi(e, t) {
|
3998
4021
|
xe[e].delete(t), xe[e].size === 0 && delete xe[e];
|
3999
4022
|
}
|
4000
|
-
function
|
4023
|
+
function _r(e) {
|
4001
4024
|
return xe[e];
|
4002
4025
|
}
|
4003
|
-
function
|
4004
|
-
return
|
4005
|
-
const r =
|
4026
|
+
function Ai(e) {
|
4027
|
+
return Ae(e).map((t) => {
|
4028
|
+
const r = _r(t);
|
4006
4029
|
return [t, r ? [...r] : []];
|
4007
4030
|
}).filter(([, t]) => t.length > 0);
|
4008
4031
|
}
|
4009
|
-
function
|
4010
|
-
return e == null ? !1 :
|
4032
|
+
function et(e) {
|
4033
|
+
return e == null ? !1 : Ae(e).some(
|
4011
4034
|
(t) => {
|
4012
4035
|
var r;
|
4013
|
-
return (r =
|
4036
|
+
return (r = _r(t)) == null ? void 0 : r.size;
|
4014
4037
|
}
|
4015
4038
|
);
|
4016
4039
|
}
|
4017
|
-
function
|
4040
|
+
function Pi(e, t) {
|
4018
4041
|
return Promise.all(
|
4019
|
-
t.map((n) => (
|
4020
|
-
).then((n) =>
|
4042
|
+
t.map((n) => (Bi(e, n), n().then((i) => i.default || i)))
|
4043
|
+
).then((n) => vr(e, ...n));
|
4021
4044
|
}
|
4022
4045
|
const oe = {};
|
4023
|
-
function
|
4024
|
-
if (!
|
4046
|
+
function Er(e) {
|
4047
|
+
if (!et(e))
|
4025
4048
|
return e in oe ? oe[e] : Promise.resolve();
|
4026
|
-
const t =
|
4049
|
+
const t = Ai(e);
|
4027
4050
|
return oe[e] = Promise.all(
|
4028
4051
|
t.map(
|
4029
|
-
([r, n]) =>
|
4052
|
+
([r, n]) => Pi(r, n)
|
4030
4053
|
)
|
4031
4054
|
).then(() => {
|
4032
|
-
if (
|
4033
|
-
return
|
4055
|
+
if (et(e))
|
4056
|
+
return Er(e);
|
4034
4057
|
delete oe[e];
|
4035
4058
|
}), oe[e];
|
4036
4059
|
}
|
4037
|
-
const
|
4060
|
+
const Ni = {
|
4038
4061
|
number: {
|
4039
4062
|
scientific: { notation: "scientific" },
|
4040
4063
|
engineering: { notation: "engineering" },
|
@@ -4063,57 +4086,57 @@ const Ai = {
|
|
4063
4086
|
timeZoneName: "short"
|
4064
4087
|
}
|
4065
4088
|
}
|
4066
|
-
},
|
4089
|
+
}, Oi = {
|
4067
4090
|
fallbackLocale: null,
|
4068
4091
|
loadingDelay: 200,
|
4069
|
-
formats:
|
4092
|
+
formats: Ni,
|
4070
4093
|
warnOnMissingMessages: !0,
|
4071
4094
|
handleMissingMessage: void 0,
|
4072
4095
|
ignoreTag: !0
|
4073
|
-
},
|
4096
|
+
}, Li = Oi;
|
4074
4097
|
function te() {
|
4075
|
-
return
|
4076
|
-
}
|
4077
|
-
const
|
4078
|
-
var
|
4079
|
-
for (var r in t)
|
4080
|
-
|
4081
|
-
if (
|
4082
|
-
for (var r of
|
4083
|
-
|
4098
|
+
return Li;
|
4099
|
+
}
|
4100
|
+
const De = He(!1);
|
4101
|
+
var Ii = Object.defineProperty, Mi = Object.defineProperties, Ci = Object.getOwnPropertyDescriptors, Lt = Object.getOwnPropertySymbols, Ri = Object.prototype.hasOwnProperty, Gi = Object.prototype.propertyIsEnumerable, It = (e, t, r) => t in e ? Ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ui = (e, t) => {
|
4102
|
+
for (var r in t || (t = {}))
|
4103
|
+
Ri.call(t, r) && It(e, r, t[r]);
|
4104
|
+
if (Lt)
|
4105
|
+
for (var r of Lt(t))
|
4106
|
+
Gi.call(t, r) && It(e, r, t[r]);
|
4084
4107
|
return e;
|
4085
|
-
},
|
4086
|
-
let
|
4108
|
+
}, Di = (e, t) => Mi(e, Ci(t));
|
4109
|
+
let tt;
|
4087
4110
|
const Se = He(null);
|
4088
|
-
function
|
4111
|
+
function Mt(e) {
|
4089
4112
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
4090
4113
|
}
|
4091
|
-
function
|
4092
|
-
const r =
|
4093
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
4114
|
+
function Ae(e, t = te().fallbackLocale) {
|
4115
|
+
const r = Mt(e);
|
4116
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Mt(t)])] : r;
|
4094
4117
|
}
|
4095
4118
|
function V() {
|
4096
|
-
return
|
4119
|
+
return tt ?? void 0;
|
4097
4120
|
}
|
4098
4121
|
Se.subscribe((e) => {
|
4099
|
-
|
4122
|
+
tt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
4100
4123
|
});
|
4101
|
-
const
|
4102
|
-
if (e &&
|
4124
|
+
const Fi = (e) => {
|
4125
|
+
if (e && Hi(e) && et(e)) {
|
4103
4126
|
const { loadingDelay: t } = te();
|
4104
4127
|
let r;
|
4105
4128
|
return typeof window < "u" && V() != null && t ? r = window.setTimeout(
|
4106
|
-
() =>
|
4129
|
+
() => De.set(!0),
|
4107
4130
|
t
|
4108
|
-
) :
|
4131
|
+
) : De.set(!0), Er(e).then(() => {
|
4109
4132
|
Se.set(e);
|
4110
4133
|
}).finally(() => {
|
4111
|
-
clearTimeout(r),
|
4134
|
+
clearTimeout(r), De.set(!1);
|
4112
4135
|
});
|
4113
4136
|
}
|
4114
4137
|
return Se.set(e);
|
4115
|
-
}, de =
|
4116
|
-
set:
|
4138
|
+
}, de = Di(Ui({}, Se), {
|
4139
|
+
set: Fi
|
4117
4140
|
}), Pe = (e) => {
|
4118
4141
|
const t = /* @__PURE__ */ Object.create(null);
|
4119
4142
|
return (n) => {
|
@@ -4121,20 +4144,20 @@ const Gi = (e) => {
|
|
4121
4144
|
return i in t ? t[i] : t[i] = e(n);
|
4122
4145
|
};
|
4123
4146
|
};
|
4124
|
-
var
|
4147
|
+
var $i = Object.defineProperty, we = Object.getOwnPropertySymbols, xr = Object.prototype.hasOwnProperty, Sr = Object.prototype.propertyIsEnumerable, Ct = (e, t, r) => t in e ? $i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, at = (e, t) => {
|
4125
4148
|
for (var r in t || (t = {}))
|
4126
|
-
|
4149
|
+
xr.call(t, r) && Ct(e, r, t[r]);
|
4127
4150
|
if (we)
|
4128
4151
|
for (var r of we(t))
|
4129
|
-
|
4152
|
+
Sr.call(t, r) && Ct(e, r, t[r]);
|
4130
4153
|
return e;
|
4131
4154
|
}, se = (e, t) => {
|
4132
4155
|
var r = {};
|
4133
4156
|
for (var n in e)
|
4134
|
-
|
4157
|
+
xr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
4135
4158
|
if (e != null && we)
|
4136
4159
|
for (var n of we(e))
|
4137
|
-
t.indexOf(n) < 0 &&
|
4160
|
+
t.indexOf(n) < 0 && Sr.call(e, n) && (r[n] = e[n]);
|
4138
4161
|
return r;
|
4139
4162
|
};
|
4140
4163
|
const le = (e, t) => {
|
@@ -4142,21 +4165,21 @@ const le = (e, t) => {
|
|
4142
4165
|
if (e in r && t in r[e])
|
4143
4166
|
return r[e][t];
|
4144
4167
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
4145
|
-
},
|
4168
|
+
}, ji = Pe(
|
4146
4169
|
(e) => {
|
4147
4170
|
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
4148
4171
|
if (r == null)
|
4149
4172
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
4150
4173
|
return n && (i = le("number", n)), new Intl.NumberFormat(r, i);
|
4151
4174
|
}
|
4152
|
-
),
|
4175
|
+
), ki = Pe(
|
4153
4176
|
(e) => {
|
4154
4177
|
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
4155
4178
|
if (r == null)
|
4156
4179
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
4157
4180
|
return n ? i = le("date", n) : Object.keys(i).length === 0 && (i = le("date", "short")), new Intl.DateTimeFormat(r, i);
|
4158
4181
|
}
|
4159
|
-
),
|
4182
|
+
), Vi = Pe(
|
4160
4183
|
(e) => {
|
4161
4184
|
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
4162
4185
|
if (r == null)
|
@@ -4165,33 +4188,33 @@ const le = (e, t) => {
|
|
4165
4188
|
);
|
4166
4189
|
return n ? i = le("time", n) : Object.keys(i).length === 0 && (i = le("time", "short")), new Intl.DateTimeFormat(r, i);
|
4167
4190
|
}
|
4168
|
-
),
|
4191
|
+
), Xi = (e = {}) => {
|
4169
4192
|
var t = e, {
|
4170
4193
|
locale: r = V()
|
4171
4194
|
} = t, n = se(t, [
|
4172
4195
|
"locale"
|
4173
4196
|
]);
|
4174
|
-
return
|
4175
|
-
},
|
4197
|
+
return ji(at({ locale: r }, n));
|
4198
|
+
}, Wi = (e = {}) => {
|
4176
4199
|
var t = e, {
|
4177
4200
|
locale: r = V()
|
4178
4201
|
} = t, n = se(t, [
|
4179
4202
|
"locale"
|
4180
4203
|
]);
|
4181
|
-
return
|
4182
|
-
},
|
4204
|
+
return ki(at({ locale: r }, n));
|
4205
|
+
}, zi = (e = {}) => {
|
4183
4206
|
var t = e, {
|
4184
4207
|
locale: r = V()
|
4185
4208
|
} = t, n = se(t, [
|
4186
4209
|
"locale"
|
4187
4210
|
]);
|
4188
|
-
return
|
4189
|
-
},
|
4211
|
+
return Vi(at({ locale: r }, n));
|
4212
|
+
}, Zi = Pe(
|
4190
4213
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
4191
|
-
(e, t = V()) => new
|
4214
|
+
(e, t = V()) => new Ei(e, t, te().formats, {
|
4192
4215
|
ignoreTag: te().ignoreTag
|
4193
4216
|
})
|
4194
|
-
),
|
4217
|
+
), Qi = (e, t = {}) => {
|
4195
4218
|
var r, n, i, s;
|
4196
4219
|
let o = t;
|
4197
4220
|
typeof e == "object" && (o = e, e = o.id);
|
@@ -4204,7 +4227,7 @@ const le = (e, t) => {
|
|
4204
4227
|
throw new Error(
|
4205
4228
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
4206
4229
|
);
|
4207
|
-
let l =
|
4230
|
+
let l = gr(e, h);
|
4208
4231
|
if (!l)
|
4209
4232
|
l = (s = (i = (n = (r = te()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
4210
4233
|
else if (typeof l != "string")
|
@@ -4215,7 +4238,7 @@ const le = (e, t) => {
|
|
4215
4238
|
return l;
|
4216
4239
|
let m = l;
|
4217
4240
|
try {
|
4218
|
-
m =
|
4241
|
+
m = Zi(l, h).format(a);
|
4219
4242
|
} catch (c) {
|
4220
4243
|
c instanceof Error && console.warn(
|
4221
4244
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
@@ -4223,20 +4246,20 @@ const le = (e, t) => {
|
|
4223
4246
|
);
|
4224
4247
|
}
|
4225
4248
|
return m;
|
4226
|
-
},
|
4227
|
-
ie([de], () =>
|
4228
|
-
ie([de], () =>
|
4229
|
-
ie([de], () =>
|
4230
|
-
ie([de, me], () =>
|
4231
|
-
window.emWidgets = { topic:
|
4232
|
-
const
|
4233
|
-
function
|
4249
|
+
}, Yi = (e, t) => zi(t).format(e), qi = (e, t) => Wi(t).format(e), Ji = (e, t) => Xi(t).format(e), Ki = (e, t = V()) => gr(e, t), es = ie([de, me], () => Qi);
|
4250
|
+
ie([de], () => Yi);
|
4251
|
+
ie([de], () => qi);
|
4252
|
+
ie([de], () => Ji);
|
4253
|
+
ie([de, me], () => Ki);
|
4254
|
+
window.emWidgets = { topic: dn };
|
4255
|
+
const ts = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
4256
|
+
function rs(e, t) {
|
4234
4257
|
if (e) {
|
4235
4258
|
const r = document.createElement("style");
|
4236
4259
|
r.innerHTML = t, e.appendChild(r);
|
4237
4260
|
}
|
4238
4261
|
}
|
4239
|
-
function
|
4262
|
+
function ns(e, t) {
|
4240
4263
|
const r = new URL(t);
|
4241
4264
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
4242
4265
|
const i = document.createElement("style");
|
@@ -4245,7 +4268,7 @@ function es(e, t) {
|
|
4245
4268
|
console.error("There was an error while trying to load client styling from URL", n);
|
4246
4269
|
});
|
4247
4270
|
}
|
4248
|
-
function
|
4271
|
+
function is(e, t, r) {
|
4249
4272
|
if (window.emMessageBus) {
|
4250
4273
|
const n = document.createElement("style");
|
4251
4274
|
window.emMessageBus.subscribe(t, (i) => {
|
@@ -4253,10 +4276,10 @@ function ts(e, t, r) {
|
|
4253
4276
|
});
|
4254
4277
|
}
|
4255
4278
|
}
|
4256
|
-
function
|
4257
|
-
|
4279
|
+
function Rt(e, t) {
|
4280
|
+
vr(e, t);
|
4258
4281
|
}
|
4259
|
-
const
|
4282
|
+
const Gt = {
|
4260
4283
|
en: {
|
4261
4284
|
lobbyName: "Lobby",
|
4262
4285
|
myGamesName: "My games"
|
@@ -4342,14 +4365,14 @@ if (typeof window < "u") {
|
|
4342
4365
|
}
|
4343
4366
|
};
|
4344
4367
|
};
|
4345
|
-
customElements.define = e(customElements.define), import("./CasinoSlider-
|
4368
|
+
customElements.define = e(customElements.define), import("./CasinoSlider-DJ15xmwN.js").then(({ default: t }) => {
|
4346
4369
|
!customElements.get("casino-slider") && customElements.define("casino-slider", t.element);
|
4347
4370
|
});
|
4348
4371
|
}
|
4349
|
-
function
|
4350
|
-
|
4372
|
+
function ss(e) {
|
4373
|
+
Cr(e, "svelte-1my2wow", ".CasinoCategoriesLoading.svelte-1my2wow{height:52px}p.svelte-1my2wow{color:var( --emw--categories-typography, var(--emw--color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-1my2wow{padding-top:20px;background:var( --emw--categories-color-primary, var(--emw--color-primary, #22B04E))}");
|
4351
4374
|
}
|
4352
|
-
function
|
4375
|
+
function os(e) {
|
4353
4376
|
let t, r;
|
4354
4377
|
return {
|
4355
4378
|
c() {
|
@@ -4368,7 +4391,7 @@ function ns(e) {
|
|
4368
4391
|
"endpoint",
|
4369
4392
|
/*endpoint*/
|
4370
4393
|
e[1]
|
4371
|
-
), _(r, "identity",
|
4394
|
+
), _(r, "identity", rt), _(
|
4372
4395
|
r,
|
4373
4396
|
"favoritesnumber",
|
4374
4397
|
/*numberOfFavoredGames*/
|
@@ -4426,7 +4449,7 @@ function ns(e) {
|
|
4426
4449
|
), fe(t, "class", "CasinoCategoriesContainer svelte-1my2wow");
|
4427
4450
|
},
|
4428
4451
|
m(n, i) {
|
4429
|
-
ce(n, t, i),
|
4452
|
+
ce(n, t, i), $t(t, r);
|
4430
4453
|
},
|
4431
4454
|
p(n, i) {
|
4432
4455
|
i[0] & /*lang*/
|
@@ -4520,7 +4543,7 @@ function ns(e) {
|
|
4520
4543
|
}
|
4521
4544
|
};
|
4522
4545
|
}
|
4523
|
-
function
|
4546
|
+
function as(e) {
|
4524
4547
|
let t;
|
4525
4548
|
return {
|
4526
4549
|
c() {
|
@@ -4535,7 +4558,7 @@ function is(e) {
|
|
4535
4558
|
}
|
4536
4559
|
};
|
4537
4560
|
}
|
4538
|
-
function
|
4561
|
+
function us(e) {
|
4539
4562
|
let t;
|
4540
4563
|
return {
|
4541
4564
|
c() {
|
@@ -4550,14 +4573,14 @@ function ss(e) {
|
|
4550
4573
|
}
|
4551
4574
|
};
|
4552
4575
|
}
|
4553
|
-
function
|
4576
|
+
function hs(e) {
|
4554
4577
|
let t;
|
4555
4578
|
function r(s, o) {
|
4556
4579
|
return (
|
4557
4580
|
/*isLoading*/
|
4558
|
-
s[13] ||
|
4581
|
+
s[13] || ls || cs ? us : (
|
4559
4582
|
/*hasErrors*/
|
4560
|
-
s[15] ?
|
4583
|
+
s[15] ? as : os
|
4561
4584
|
)
|
4562
4585
|
);
|
4563
4586
|
}
|
@@ -4579,93 +4602,93 @@ function os(e) {
|
|
4579
4602
|
}
|
4580
4603
|
};
|
4581
4604
|
}
|
4582
|
-
let
|
4583
|
-
function
|
4605
|
+
let rt = "CasinoSliderData", ls = !1, cs = !1;
|
4606
|
+
function fs(e, t, r) {
|
4584
4607
|
let n;
|
4585
|
-
|
4586
|
-
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "" } = t, { userid: a = "" } = t, { session: h = "" } = t, { mostplayed: u = "" } = t, { lastplayed: l = "false" } = t, { favorites: m = "" } = t, { clientstyling: c = "" } = t, { clientstylingurl: d = "" } = t, { activecategory: b = "" } = t, { actionevent: y = "" } = t, { sessioncheck: T = "" } = t, { location:
|
4587
|
-
const
|
4588
|
-
fetch(N).then((
|
4589
|
-
Object.keys(
|
4590
|
-
|
4608
|
+
Mr(e, es, (f) => r(32, n = f));
|
4609
|
+
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "" } = t, { userid: a = "" } = t, { session: h = "" } = t, { mostplayed: u = "" } = t, { lastplayed: l = "false" } = t, { favorites: m = "" } = t, { clientstyling: c = "" } = t, { clientstylingurl: d = "" } = t, { activecategory: b = "" } = t, { actionevent: y = "" } = t, { sessioncheck: T = "" } = t, { location: M = "secondaryMenu" } = t, { showsubgroups: P = "false" } = t, { filteredcategories: w = "" } = t, { translationurl: N = "" } = t, { categoriesicon: O = "" } = t, { lobbyiconimage: C = "" } = t, { mygamesiconimage: E = "" } = t, { mbsource: B } = t, L, F, ut, $ = !0, X, W = [], j = !1, wr = window.navigator.userAgent, R, ht, lt = !1, Ne = !1;
|
4610
|
+
const Tr = () => {
|
4611
|
+
fetch(N).then((A) => A.json()).then((A) => {
|
4612
|
+
Object.keys(A).forEach((be) => {
|
4613
|
+
Rt(be, A[be]);
|
4591
4614
|
});
|
4592
|
-
}).catch((
|
4593
|
-
console.log(
|
4615
|
+
}).catch((A) => {
|
4616
|
+
console.log(A);
|
4594
4617
|
});
|
4595
4618
|
};
|
4596
|
-
Object.keys(
|
4597
|
-
|
4619
|
+
Object.keys(Gt).forEach((f) => {
|
4620
|
+
Rt(f, Gt[f]);
|
4598
4621
|
});
|
4599
|
-
const
|
4600
|
-
|
4622
|
+
const Hr = () => {
|
4623
|
+
lt == !1 && (m == "true" || u == "true" || l == "true") && W.splice(1, 0, {
|
4601
4624
|
// @ts-ignore
|
4602
4625
|
id: "MYGAMES",
|
4603
|
-
name:
|
4626
|
+
name: F,
|
4604
4627
|
href: "",
|
4605
4628
|
games: []
|
4606
|
-
}),
|
4607
|
-
},
|
4608
|
-
if (
|
4629
|
+
}), jr(), lt = !0, r(25, Ne = !0), ct();
|
4630
|
+
}, Br = () => (i || (X = "Endpoint is missing! Please provide a valid endpointURL.", r(15, j = !0), r(13, $ = !1), console.error(X)), s || (X = "Datasource is missing! Please provide a valid datasource.", r(15, j = !0), r(13, $ = !1), console.error(X)), (!o || o.length < 2) && (X = "Language is missing! Please provide a valid language (alpha2code)", r(15, j = !0), r(13, $ = !1), console.error(X)), j), Ar = () => {
|
4631
|
+
if (F = n("myGamesName"), ut = n("lobbyName"), !Br()) {
|
4609
4632
|
let f = new URL(`${i}/v2/casino/groups/${s}`);
|
4610
|
-
f.searchParams.append("language", o), f.searchParams.append("platform",
|
4611
|
-
(
|
4612
|
-
let be = w.split(","),
|
4633
|
+
f.searchParams.append("language", o), f.searchParams.append("platform", ts(wr)), f.searchParams.append("fields", "id,name,games(href)"), fetch(f).then((A) => A.json()).then(
|
4634
|
+
(A) => {
|
4635
|
+
let be = w.split(","), Or = A.items.filter((mt) => {
|
4613
4636
|
let Oe = !1;
|
4614
|
-
if (
|
4615
|
-
for (let
|
4616
|
-
|
4637
|
+
if (mt.games.total > 0 && (Oe = !0, w))
|
4638
|
+
for (let Lr of be)
|
4639
|
+
mt.flags == Lr && (Oe = !1);
|
4617
4640
|
return Oe;
|
4618
4641
|
});
|
4619
|
-
W = [], W = W.concat(
|
4642
|
+
W = [], W = W.concat(Or), W.unshift({
|
4620
4643
|
// @ts-ignore
|
4621
4644
|
id: "LOBBY",
|
4622
|
-
name:
|
4645
|
+
name: ut,
|
4623
4646
|
href: "",
|
4624
4647
|
games: []
|
4625
4648
|
}), r(13, $ = !1);
|
4626
4649
|
},
|
4627
|
-
(
|
4628
|
-
r(15, j = !0), console.error("There was an error while fetching the categories",
|
4650
|
+
(A) => {
|
4651
|
+
r(15, j = !0), console.error("There was an error while fetching the categories", A);
|
4629
4652
|
}
|
4630
|
-
).catch((
|
4631
|
-
r(15, j = !0), console.error("There was an error while fetching the categories",
|
4653
|
+
).catch((A) => {
|
4654
|
+
r(15, j = !0), console.error("There was an error while fetching the categories", A);
|
4632
4655
|
});
|
4633
4656
|
}
|
4634
|
-
},
|
4657
|
+
}, Pr = () => {
|
4635
4658
|
let f = b.split("$");
|
4636
4659
|
r(0, b = f.length > 2 ? b.split("$").slice(0, 2).join("$") : b);
|
4637
|
-
},
|
4660
|
+
}, ct = () => {
|
4638
4661
|
window.postMessage(
|
4639
4662
|
{
|
4640
4663
|
type: "SliderData",
|
4641
|
-
identity:
|
4664
|
+
identity: rt,
|
4642
4665
|
data: W
|
4643
4666
|
},
|
4644
4667
|
window.location.href
|
4645
4668
|
);
|
4646
|
-
},
|
4647
|
-
f.data && f.data.type == "SliderLoaded" &&
|
4669
|
+
}, ft = (f) => {
|
4670
|
+
f.data && f.data.type == "SliderLoaded" && rt == f.data.identity && ct();
|
4648
4671
|
};
|
4649
|
-
|
4650
|
-
window.removeEventListener("message",
|
4672
|
+
$r(() => (window.addEventListener("message", ft, !1), () => {
|
4673
|
+
window.emMessageBus && L && L.unsubscribe(), window.removeEventListener("message", ft);
|
4651
4674
|
}));
|
4652
|
-
function
|
4653
|
-
|
4675
|
+
function Nr(f) {
|
4676
|
+
Fe[f ? "unshift" : "push"](() => {
|
4654
4677
|
R = f, r(14, R);
|
4655
4678
|
});
|
4656
4679
|
}
|
4657
4680
|
return e.$$set = (f) => {
|
4658
|
-
"endpoint" in f && r(1, i = f.endpoint), "datasource" in f && r(2, s = f.datasource), "lang" in f && r(3, o = f.lang), "userid" in f && r(17, a = f.userid), "session" in f && r(18, h = f.session), "mostplayed" in f && r(19, u = f.mostplayed), "lastplayed" in f && r(20, l = f.lastplayed), "favorites" in f && r(21, m = f.favorites), "clientstyling" in f && r(4, c = f.clientstyling), "clientstylingurl" in f && r(5, d = f.clientstylingurl), "activecategory" in f && r(0, b = f.activecategory), "actionevent" in f && r(6, y = f.actionevent), "sessioncheck" in f && r(22, T = f.sessioncheck), "location" in f && r(7,
|
4681
|
+
"endpoint" in f && r(1, i = f.endpoint), "datasource" in f && r(2, s = f.datasource), "lang" in f && r(3, o = f.lang), "userid" in f && r(17, a = f.userid), "session" in f && r(18, h = f.session), "mostplayed" in f && r(19, u = f.mostplayed), "lastplayed" in f && r(20, l = f.lastplayed), "favorites" in f && r(21, m = f.favorites), "clientstyling" in f && r(4, c = f.clientstyling), "clientstylingurl" in f && r(5, d = f.clientstylingurl), "activecategory" in f && r(0, b = f.activecategory), "actionevent" in f && r(6, y = f.actionevent), "sessioncheck" in f && r(22, T = f.sessioncheck), "location" in f && r(7, M = f.location), "showsubgroups" in f && r(8, P = f.showsubgroups), "filteredcategories" in f && r(23, w = f.filteredcategories), "translationurl" in f && r(24, N = f.translationurl), "categoriesicon" in f && r(9, O = f.categoriesicon), "lobbyiconimage" in f && r(10, C = f.lobbyiconimage), "mygamesiconimage" in f && r(11, E = f.mygamesiconimage), "mbsource" in f && r(12, B = f.mbsource);
|
4659
4682
|
}, e.$$.update = () => {
|
4660
4683
|
e.$$.dirty[0] & /*endpoint, datasource, lang*/
|
4661
|
-
14 && i && s && o &&
|
4662
|
-
3940354 && i && h && (u || l || m) && !$ &&
|
4663
|
-
33824769 && !$ && b && (!h || Ne) &&
|
4664
|
-
16777216 && N &&
|
4665
|
-
16400 && c && R &&
|
4666
|
-
16416 && d && R &&
|
4667
|
-
20480 && R &&
|
4668
|
-
}, r(16,
|
4684
|
+
14 && i && s && o && Ar(), e.$$.dirty[0] & /*endpoint, session, mostplayed, lastplayed, favorites, isLoading*/
|
4685
|
+
3940354 && i && h && (u || l || m) && !$ && Hr(), e.$$.dirty[0] & /*isLoading, activecategory, session, confirmCategoryParse*/
|
4686
|
+
33824769 && !$ && b && (!h || Ne) && Pr(), e.$$.dirty[0] & /*translationurl*/
|
4687
|
+
16777216 && N && Tr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
4688
|
+
16400 && c && R && rs(R, c), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
4689
|
+
16416 && d && R && ns(R, d), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
4690
|
+
20480 && R && is(R, `${B}.Style`);
|
4691
|
+
}, r(16, ht = 0), [
|
4669
4692
|
b,
|
4670
4693
|
i,
|
4671
4694
|
s,
|
@@ -4673,16 +4696,16 @@ function hs(e, t, r) {
|
|
4673
4696
|
c,
|
4674
4697
|
d,
|
4675
4698
|
y,
|
4676
|
-
|
4699
|
+
M,
|
4677
4700
|
P,
|
4678
4701
|
O,
|
4679
|
-
|
4702
|
+
C,
|
4680
4703
|
E,
|
4681
|
-
|
4704
|
+
B,
|
4682
4705
|
$,
|
4683
4706
|
R,
|
4684
4707
|
j,
|
4685
|
-
|
4708
|
+
ht,
|
4686
4709
|
a,
|
4687
4710
|
h,
|
4688
4711
|
u,
|
@@ -4692,17 +4715,17 @@ function hs(e, t, r) {
|
|
4692
4715
|
w,
|
4693
4716
|
N,
|
4694
4717
|
Ne,
|
4695
|
-
|
4718
|
+
Nr
|
4696
4719
|
];
|
4697
4720
|
}
|
4698
|
-
class
|
4721
|
+
class ms extends qr {
|
4699
4722
|
constructor(t) {
|
4700
|
-
super(),
|
4723
|
+
super(), Qr(
|
4701
4724
|
this,
|
4702
4725
|
t,
|
4726
|
+
fs,
|
4703
4727
|
hs,
|
4704
|
-
|
4705
|
-
Rt,
|
4728
|
+
Dt,
|
4706
4729
|
{
|
4707
4730
|
endpoint: 1,
|
4708
4731
|
datasource: 2,
|
@@ -4726,7 +4749,7 @@ class ls extends zr {
|
|
4726
4749
|
mygamesiconimage: 11,
|
4727
4750
|
mbsource: 12
|
4728
4751
|
},
|
4729
|
-
|
4752
|
+
ss,
|
4730
4753
|
[-1, -1]
|
4731
4754
|
);
|
4732
4755
|
}
|
@@ -4857,38 +4880,40 @@ class ls extends zr {
|
|
4857
4880
|
this.$$set({ mbsource: t }), S();
|
4858
4881
|
}
|
4859
4882
|
}
|
4860
|
-
|
4883
|
+
Yr(ms, { endpoint: {}, datasource: {}, lang: {}, userid: {}, session: {}, mostplayed: {}, lastplayed: {}, favorites: {}, clientstyling: {}, clientstylingurl: {}, activecategory: {}, actionevent: {}, sessioncheck: {}, location: {}, showsubgroups: {}, filteredcategories: {}, translationurl: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {}, mbsource: {} }, [], [], !0);
|
4861
4884
|
export {
|
4862
4885
|
de as $,
|
4863
|
-
|
4864
|
-
|
4865
|
-
|
4866
|
-
|
4867
|
-
|
4886
|
+
rs as A,
|
4887
|
+
Ss as B,
|
4888
|
+
bs as C,
|
4889
|
+
jt as D,
|
4890
|
+
_s as E,
|
4891
|
+
ms as F,
|
4892
|
+
qr as S,
|
4868
4893
|
me as a,
|
4869
|
-
|
4870
|
-
|
4871
|
-
|
4894
|
+
vr as b,
|
4895
|
+
Yr as c,
|
4896
|
+
Cr as d,
|
4872
4897
|
k as e,
|
4873
4898
|
S as f,
|
4874
|
-
|
4899
|
+
ps as g,
|
4875
4900
|
fe as h,
|
4876
|
-
|
4901
|
+
Qr as i,
|
4877
4902
|
ce as j,
|
4878
|
-
|
4879
|
-
|
4903
|
+
$t as k,
|
4904
|
+
ys as l,
|
4880
4905
|
ne as m,
|
4881
4906
|
I as n,
|
4882
|
-
|
4883
|
-
|
4884
|
-
|
4907
|
+
$r as o,
|
4908
|
+
vs as p,
|
4909
|
+
ns as q,
|
4885
4910
|
re as r,
|
4886
|
-
|
4887
|
-
|
4888
|
-
|
4889
|
-
|
4890
|
-
|
4891
|
-
|
4892
|
-
|
4893
|
-
|
4911
|
+
Dt as s,
|
4912
|
+
is as t,
|
4913
|
+
xs as u,
|
4914
|
+
gs as v,
|
4915
|
+
ws as w,
|
4916
|
+
ds as x,
|
4917
|
+
Es as y,
|
4918
|
+
Fe as z
|
4894
4919
|
};
|