@everymatrix/casino-most-played-section 1.62.0 → 1.62.2
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/{CasinoFilter-4haQXmN1.js → CasinoFilter-BaHdkFc-.js} +937 -921
- package/components/CasinoFilter-BmGWsU7J.cjs +18 -0
- package/components/{CasinoFilter-BUe-x-2X.js → CasinoFilter-zzTGuKnt.js} +912 -896
- package/components/CasinoGameThumbnail-BD69M-tU.js +4359 -0
- package/components/CasinoGameThumbnail-L09ReSI7.js +4375 -0
- package/components/CasinoGameThumbnail-oK2MgYq9.cjs +47 -0
- package/components/{CasinoGamesCategorySection-omF6FUNy.cjs → CasinoGamesCategorySection-BfjWDfwh.cjs} +1 -1
- package/components/{CasinoGamesCategorySection-WMdAKy-_.js → CasinoGamesCategorySection-BmUgm7yY.js} +344 -344
- package/components/{CasinoGamesCategorySection-DK_xX1de.js → CasinoGamesCategorySection-Dht9__gB.js} +452 -452
- package/components/{CasinoMostPlayedSection-CrPQFPPC.cjs → CasinoMostPlayedSection-B97slleK.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-yy4MMeQ-.js → CasinoMostPlayedSection-B_2N5aNo.js} +43 -43
- package/components/{CasinoMostPlayedSection-DIiqRZjq.js → CasinoMostPlayedSection-D1cdxdH3.js} +29 -29
- package/components/{CasinoSort-CfnhZRah.js → CasinoSort-BTwDwT8n.js} +110 -111
- package/components/{CasinoSort-CHu5emCn.js → CasinoSort-BqED6YEv.js} +104 -103
- package/components/{CasinoSort-C2cjUMXH.cjs → CasinoSort-Ci8TaT8M.cjs} +1 -1
- package/es2015/casino-most-played-section.cjs +1 -1
- package/es2015/casino-most-played-section.js +1 -1
- package/esnext/casino-most-played-section.js +1 -1
- package/package.json +1 -1
- package/stencil/app-globals-0f993ce5-D-kw1sls.js +5 -0
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
- package/stencil/index-97d17652-B8yQdy7J.js +542 -0
- package/stencil/index-97d17652-C616IYj2.js +558 -0
- package/stencil/index-97d17652-C9Ph2JiE.cjs +1 -0
- package/stencil/ui-image-7da92f1f-26DzsVFt.js +39 -0
- package/stencil/ui-image-7da92f1f-BAghvEDf.js +39 -0
- package/stencil/ui-image-7da92f1f-BiVBd_OW.cjs +1 -0
- package/stencil/ui-image-Bz0nQwNJ.cjs +1 -0
- package/stencil/ui-image-DX8NqsyA.js +25 -0
- package/stencil/ui-image-o9dMcntc.js +7 -0
- package/stencil/{ui-skeleton-6d1c12ae-koE69yYD.js → ui-image_2-BXgptLvl.js} +7 -5
- package/stencil/ui-image_2-Cctik3aF.cjs +73 -0
- package/stencil/{ui-skeleton-6d1c12ae-BpEpsLuu.js → ui-image_2-Cyqb4u7k.js} +7 -5
- package/components/CasinoFilter-BWxK-kth.cjs +0 -18
- package/components/CasinoGameThumbnail-B6XGNttS.js +0 -4390
- package/components/CasinoGameThumbnail-Cn0iV9XZ.js +0 -4406
- package/components/CasinoGameThumbnail-D86LuKmv.cjs +0 -47
- package/stencil/app-globals-0f993ce5-BD-Q0C8R.cjs +0 -1
- package/stencil/app-globals-0f993ce5-Cgk0KVAu.js +0 -7
- package/stencil/index-b2193545-CbGN-1Xz.cjs +0 -1
- package/stencil/index-b2193545-CbUHNmek.js +0 -503
- package/stencil/index-b2193545-DFFkPUVU.js +0 -519
- package/stencil/index-b7bbd57e-5H13jtcn.cjs +0 -1
- package/stencil/index-b7bbd57e-D2mZ7-kv.js +0 -534
- package/stencil/index-b7bbd57e-VSGyGiy1.js +0 -550
- package/stencil/ui-image-38c3c15f-3U8WBsCg.cjs +0 -1
- package/stencil/ui-image-38c3c15f-Cix0ZMEZ.js +0 -39
- package/stencil/ui-image-38c3c15f-jaErZeBj.js +0 -39
- package/stencil/ui-image-6OX7DHzp.js +0 -11
- package/stencil/ui-image-DvmqpXjR.js +0 -29
- package/stencil/ui-image-sdP0Y0JV.cjs +0 -1
- package/stencil/ui-skeleton-6d1c12ae-CZrIANSq.cjs +0 -73
- package/stencil/ui-skeleton-BOseIl79.js +0 -29
- package/stencil/ui-skeleton-BVyEf4P7.js +0 -11
- package/stencil/ui-skeleton-C2O4H76Q.cjs +0 -1
@@ -1,16 +1,16 @@
|
|
1
|
-
var
|
2
|
-
var
|
1
|
+
var Vr = Object.defineProperty, Xr = Object.defineProperties;
|
2
|
+
var Wr = Object.getOwnPropertyDescriptors;
|
3
3
|
var Tt = Object.getOwnPropertySymbols;
|
4
|
-
var
|
5
|
-
var Ze = (e, t, r) => t in e ?
|
4
|
+
var zr = Object.prototype.hasOwnProperty, Zr = Object.prototype.propertyIsEnumerable;
|
5
|
+
var Ze = (e, t, r) => t in e ? Vr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ht = (e, t) => {
|
6
6
|
for (var r in t || (t = {}))
|
7
|
-
|
7
|
+
zr.call(t, r) && Ze(e, r, t[r]);
|
8
8
|
if (Tt)
|
9
9
|
for (var r of Tt(t))
|
10
|
-
|
10
|
+
Zr.call(t, r) && Ze(e, r, t[r]);
|
11
11
|
return e;
|
12
|
-
}, At = (e, t) =>
|
13
|
-
var
|
12
|
+
}, At = (e, t) => Xr(e, Wr(t));
|
13
|
+
var M = (e, t, r) => (Ze(e, typeof t != "symbol" ? t + "" : t, r), r);
|
14
14
|
var Pt = (e, t, r) => new Promise((n, i) => {
|
15
15
|
var o = (u) => {
|
16
16
|
try {
|
@@ -27,8 +27,7 @@ var Pt = (e, t, r) => new Promise((n, i) => {
|
|
27
27
|
}, a = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(o, s);
|
28
28
|
a((r = r.apply(e, t)).next());
|
29
29
|
});
|
30
|
-
|
31
|
-
function j() {
|
30
|
+
function k() {
|
32
31
|
}
|
33
32
|
function ir(e) {
|
34
33
|
return e();
|
@@ -36,10 +35,10 @@ function ir(e) {
|
|
36
35
|
function Ct() {
|
37
36
|
return /* @__PURE__ */ Object.create(null);
|
38
37
|
}
|
39
|
-
function
|
38
|
+
function K(e) {
|
40
39
|
e.forEach(ir);
|
41
40
|
}
|
42
|
-
function
|
41
|
+
function xt(e) {
|
43
42
|
return typeof e == "function";
|
44
43
|
}
|
45
44
|
function or(e, t) {
|
@@ -49,35 +48,32 @@ let Be;
|
|
49
48
|
function Ft(e, t) {
|
50
49
|
return e === t ? !0 : (Be || (Be = document.createElement("a")), Be.href = t, e === Be.href);
|
51
50
|
}
|
52
|
-
function
|
51
|
+
function Jr(e) {
|
53
52
|
return Object.keys(e).length === 0;
|
54
53
|
}
|
55
54
|
function sr(e, ...t) {
|
56
55
|
if (e == null) {
|
57
56
|
for (const n of t)
|
58
57
|
n(void 0);
|
59
|
-
return
|
58
|
+
return k;
|
60
59
|
}
|
61
60
|
const r = e.subscribe(...t);
|
62
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
63
62
|
}
|
64
|
-
function
|
63
|
+
function Qr(e, t, r) {
|
65
64
|
e.$$.on_destroy.push(sr(t, r));
|
66
65
|
}
|
67
|
-
function
|
68
|
-
return e && Ge(e.destroy) ? e.destroy : j;
|
69
|
-
}
|
70
|
-
function v(e, t) {
|
66
|
+
function _(e, t) {
|
71
67
|
e.appendChild(t);
|
72
68
|
}
|
73
|
-
function
|
74
|
-
const n =
|
69
|
+
function qr(e, t, r) {
|
70
|
+
const n = Yr(e);
|
75
71
|
if (!n.getElementById(t)) {
|
76
72
|
const i = C("style");
|
77
|
-
i.id = t, i.textContent = r,
|
73
|
+
i.id = t, i.textContent = r, Kr(n, i);
|
78
74
|
}
|
79
75
|
}
|
80
|
-
function
|
76
|
+
function Yr(e) {
|
81
77
|
if (!e)
|
82
78
|
return document;
|
83
79
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
@@ -87,8 +83,8 @@ function Kr(e) {
|
|
87
83
|
t
|
88
84
|
) : e.ownerDocument;
|
89
85
|
}
|
90
|
-
function
|
91
|
-
return
|
86
|
+
function Kr(e, t) {
|
87
|
+
return _(
|
92
88
|
/** @type {Document} */
|
93
89
|
e.head || e,
|
94
90
|
t
|
@@ -97,66 +93,66 @@ function en(e, t) {
|
|
97
93
|
function z(e, t, r) {
|
98
94
|
e.insertBefore(t, r || null);
|
99
95
|
}
|
100
|
-
function
|
96
|
+
function j(e) {
|
101
97
|
e.parentNode && e.parentNode.removeChild(e);
|
102
98
|
}
|
103
|
-
function
|
99
|
+
function en(e, t) {
|
104
100
|
for (let r = 0; r < e.length; r += 1)
|
105
101
|
e[r] && e[r].d(t);
|
106
102
|
}
|
107
103
|
function C(e) {
|
108
104
|
return document.createElement(e);
|
109
105
|
}
|
110
|
-
function
|
106
|
+
function Ee(e) {
|
111
107
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
112
108
|
}
|
113
|
-
function
|
109
|
+
function G(e) {
|
114
110
|
return document.createTextNode(e);
|
115
111
|
}
|
116
|
-
function
|
117
|
-
return
|
112
|
+
function X() {
|
113
|
+
return G(" ");
|
118
114
|
}
|
119
|
-
function
|
120
|
-
return
|
115
|
+
function Lo() {
|
116
|
+
return G("");
|
121
117
|
}
|
122
118
|
function De(e, t, r, n) {
|
123
119
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
124
120
|
}
|
125
|
-
function
|
121
|
+
function g(e, t, r) {
|
126
122
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
127
123
|
}
|
128
|
-
function
|
124
|
+
function No(e, t, r) {
|
129
125
|
const n = t.toLowerCase();
|
130
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
126
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : g(e, t, r);
|
131
127
|
}
|
132
|
-
function
|
128
|
+
function tn(e) {
|
133
129
|
return Array.from(e.childNodes);
|
134
130
|
}
|
135
|
-
function
|
131
|
+
function Y(e, t) {
|
136
132
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
137
133
|
t);
|
138
134
|
}
|
139
135
|
function Bt(e, t) {
|
140
136
|
e.value = t == null ? "" : t;
|
141
137
|
}
|
142
|
-
function
|
138
|
+
function Mo(e, t, r) {
|
143
139
|
e.classList.toggle(t, !!r);
|
144
140
|
}
|
145
|
-
class
|
141
|
+
class Ro {
|
146
142
|
constructor(t = !1) {
|
147
143
|
/**
|
148
144
|
* @private
|
149
145
|
* @default false
|
150
146
|
*/
|
151
|
-
|
147
|
+
M(this, "is_svg", !1);
|
152
148
|
/** parent for creating node */
|
153
|
-
|
149
|
+
M(this, "e");
|
154
150
|
/** html tag nodes */
|
155
|
-
|
151
|
+
M(this, "n");
|
156
152
|
/** target */
|
157
|
-
|
153
|
+
M(this, "t");
|
158
154
|
/** anchor */
|
159
|
-
|
155
|
+
M(this, "a");
|
160
156
|
this.is_svg = t, this.e = this.n = null;
|
161
157
|
}
|
162
158
|
/**
|
@@ -173,7 +169,7 @@ class Do {
|
|
173
169
|
* @returns {void}
|
174
170
|
*/
|
175
171
|
m(t, r, n = null) {
|
176
|
-
this.e || (this.is_svg ? this.e =
|
172
|
+
this.e || (this.is_svg ? this.e = Ee(
|
177
173
|
/** @type {keyof SVGElementTagNameMap} */
|
178
174
|
r.nodeName
|
179
175
|
) : this.e = C(
|
@@ -209,10 +205,10 @@ class Do {
|
|
209
205
|
/**
|
210
206
|
* @returns {void} */
|
211
207
|
d() {
|
212
|
-
this.n.forEach(
|
208
|
+
this.n.forEach(j);
|
213
209
|
}
|
214
210
|
}
|
215
|
-
function
|
211
|
+
function rn(e) {
|
216
212
|
const t = {};
|
217
213
|
return e.childNodes.forEach(
|
218
214
|
/** @param {Element} node */
|
@@ -221,132 +217,132 @@ function nn(e) {
|
|
221
217
|
}
|
222
218
|
), t;
|
223
219
|
}
|
224
|
-
let
|
225
|
-
function
|
226
|
-
|
220
|
+
let Se;
|
221
|
+
function we(e) {
|
222
|
+
Se = e;
|
227
223
|
}
|
228
224
|
function ar() {
|
229
|
-
if (!
|
225
|
+
if (!Se)
|
230
226
|
throw new Error("Function called outside component initialization");
|
231
|
-
return
|
227
|
+
return Se;
|
232
228
|
}
|
233
|
-
function
|
229
|
+
function nn(e) {
|
234
230
|
ar().$$.on_mount.push(e);
|
235
231
|
}
|
236
|
-
function
|
232
|
+
function Do(e) {
|
237
233
|
ar().$$.on_destroy.push(e);
|
238
234
|
}
|
239
|
-
const fe = [],
|
240
|
-
let
|
241
|
-
const
|
242
|
-
let
|
235
|
+
const fe = [], nt = [];
|
236
|
+
let pe = [];
|
237
|
+
const Ot = [], lr = /* @__PURE__ */ Promise.resolve();
|
238
|
+
let it = !1;
|
243
239
|
function ur() {
|
244
|
-
|
240
|
+
it || (it = !0, lr.then($));
|
245
241
|
}
|
246
242
|
function $o() {
|
247
243
|
return ur(), lr;
|
248
244
|
}
|
249
|
-
function
|
250
|
-
|
245
|
+
function ot(e) {
|
246
|
+
pe.push(e);
|
251
247
|
}
|
252
|
-
const
|
248
|
+
const Je = /* @__PURE__ */ new Set();
|
253
249
|
let he = 0;
|
254
250
|
function $() {
|
255
251
|
if (he !== 0)
|
256
252
|
return;
|
257
|
-
const e =
|
253
|
+
const e = Se;
|
258
254
|
do {
|
259
255
|
try {
|
260
256
|
for (; he < fe.length; ) {
|
261
257
|
const t = fe[he];
|
262
|
-
he++,
|
258
|
+
he++, we(t), on(t.$$);
|
263
259
|
}
|
264
260
|
} catch (t) {
|
265
261
|
throw fe.length = 0, he = 0, t;
|
266
262
|
}
|
267
|
-
for (
|
268
|
-
|
269
|
-
for (let t = 0; t <
|
270
|
-
const r =
|
271
|
-
|
263
|
+
for (we(null), fe.length = 0, he = 0; nt.length; )
|
264
|
+
nt.pop()();
|
265
|
+
for (let t = 0; t < pe.length; t += 1) {
|
266
|
+
const r = pe[t];
|
267
|
+
Je.has(r) || (Je.add(r), r());
|
272
268
|
}
|
273
|
-
|
269
|
+
pe.length = 0;
|
274
270
|
} while (fe.length);
|
275
|
-
for (;
|
276
|
-
|
277
|
-
|
271
|
+
for (; Ot.length; )
|
272
|
+
Ot.pop()();
|
273
|
+
it = !1, Je.clear(), we(e);
|
278
274
|
}
|
279
|
-
function
|
275
|
+
function on(e) {
|
280
276
|
if (e.fragment !== null) {
|
281
|
-
e.update(),
|
277
|
+
e.update(), K(e.before_update);
|
282
278
|
const t = e.dirty;
|
283
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
279
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(ot);
|
284
280
|
}
|
285
281
|
}
|
286
|
-
function
|
282
|
+
function sn(e) {
|
287
283
|
const t = [], r = [];
|
288
|
-
|
284
|
+
pe.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), pe = t;
|
289
285
|
}
|
290
|
-
const
|
286
|
+
const an = /* @__PURE__ */ new Set();
|
291
287
|
function hr(e, t) {
|
292
|
-
e && e.i && (
|
288
|
+
e && e.i && (an.delete(e), e.i(t));
|
293
289
|
}
|
294
|
-
function
|
290
|
+
function It(e) {
|
295
291
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
296
292
|
}
|
297
|
-
function
|
293
|
+
function Uo(e, t) {
|
298
294
|
e.d(1), t.delete(e.key);
|
299
295
|
}
|
300
|
-
function
|
301
|
-
let
|
302
|
-
const
|
303
|
-
for (;
|
304
|
-
|
305
|
-
const
|
306
|
-
for (
|
307
|
-
const A =
|
296
|
+
function Go(e, t, r, n, i, o, s, a, u, l, h, p) {
|
297
|
+
let c = e.length, m = o.length, v = c;
|
298
|
+
const y = {};
|
299
|
+
for (; v--; )
|
300
|
+
y[e[v].key] = v;
|
301
|
+
const T = [], H = /* @__PURE__ */ new Map(), S = /* @__PURE__ */ new Map(), b = [];
|
302
|
+
for (v = m; v--; ) {
|
303
|
+
const A = p(i, o, v), P = r(A);
|
308
304
|
let N = s.get(P);
|
309
|
-
N ?
|
305
|
+
N ? b.push(() => N.p(A, t)) : (N = l(P, A), N.c()), H.set(P, T[v] = N), P in y && S.set(P, Math.abs(v - y[P]));
|
310
306
|
}
|
311
|
-
const
|
312
|
-
function
|
313
|
-
hr(A, 1), A.m(a, h), s.set(A.key, A), h = A.first,
|
307
|
+
const I = /* @__PURE__ */ new Set(), L = /* @__PURE__ */ new Set();
|
308
|
+
function R(A) {
|
309
|
+
hr(A, 1), A.m(a, h), s.set(A.key, A), h = A.first, m--;
|
314
310
|
}
|
315
|
-
for (;
|
316
|
-
const A =
|
317
|
-
A === P ? (h = A.first,
|
311
|
+
for (; c && m; ) {
|
312
|
+
const A = T[m - 1], P = e[c - 1], N = A.key, Z = P.key;
|
313
|
+
A === P ? (h = A.first, c--, m--) : H.has(Z) ? !s.has(N) || I.has(N) ? R(A) : L.has(Z) ? c-- : S.get(N) > S.get(Z) ? (L.add(N), R(A)) : (I.add(Z), c--) : (u(P, s), c--);
|
318
314
|
}
|
319
|
-
for (;
|
320
|
-
const A = e[
|
315
|
+
for (; c--; ) {
|
316
|
+
const A = e[c];
|
321
317
|
H.has(A.key) || u(A, s);
|
322
318
|
}
|
323
|
-
for (;
|
324
|
-
|
325
|
-
return
|
319
|
+
for (; m; )
|
320
|
+
R(T[m - 1]);
|
321
|
+
return K(b), T;
|
326
322
|
}
|
327
|
-
function
|
323
|
+
function ln(e, t, r) {
|
328
324
|
const { fragment: n, after_update: i } = e.$$;
|
329
|
-
n && n.m(t, r),
|
330
|
-
const o = e.$$.on_mount.map(ir).filter(
|
331
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
332
|
-
}), i.forEach(
|
325
|
+
n && n.m(t, r), ot(() => {
|
326
|
+
const o = e.$$.on_mount.map(ir).filter(xt);
|
327
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : K(o), e.$$.on_mount = [];
|
328
|
+
}), i.forEach(ot);
|
333
329
|
}
|
334
|
-
function
|
330
|
+
function un(e, t) {
|
335
331
|
const r = e.$$;
|
336
|
-
r.fragment !== null && (
|
332
|
+
r.fragment !== null && (sn(r.after_update), K(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
337
333
|
}
|
338
|
-
function
|
334
|
+
function hn(e, t) {
|
339
335
|
e.$$.dirty[0] === -1 && (fe.push(e), ur(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
340
336
|
}
|
341
|
-
function
|
342
|
-
const u =
|
343
|
-
|
337
|
+
function cn(e, t, r, n, i, o, s = null, a = [-1]) {
|
338
|
+
const u = Se;
|
339
|
+
we(e);
|
344
340
|
const l = e.$$ = {
|
345
341
|
fragment: null,
|
346
342
|
ctx: [],
|
347
343
|
// state
|
348
344
|
props: o,
|
349
|
-
update:
|
345
|
+
update: k,
|
350
346
|
not_equal: i,
|
351
347
|
bound: Ct(),
|
352
348
|
// lifecycle
|
@@ -364,41 +360,41 @@ function fn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
364
360
|
};
|
365
361
|
s && s(l.root);
|
366
362
|
let h = !1;
|
367
|
-
if (l.ctx = r ? r(e, t.props || {}, (
|
368
|
-
const
|
369
|
-
return l.ctx && i(l.ctx[
|
370
|
-
}) : [], l.update(), h = !0,
|
363
|
+
if (l.ctx = r ? r(e, t.props || {}, (p, c, ...m) => {
|
364
|
+
const v = m.length ? m[0] : c;
|
365
|
+
return l.ctx && i(l.ctx[p], l.ctx[p] = v) && (!l.skip_bound && l.bound[p] && l.bound[p](v), h && hn(e, p)), c;
|
366
|
+
}) : [], l.update(), h = !0, K(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
371
367
|
if (t.hydrate) {
|
372
|
-
const
|
373
|
-
l.fragment && l.fragment.l(
|
368
|
+
const p = tn(t.target);
|
369
|
+
l.fragment && l.fragment.l(p), p.forEach(j);
|
374
370
|
} else
|
375
371
|
l.fragment && l.fragment.c();
|
376
|
-
t.intro && hr(e.$$.fragment),
|
372
|
+
t.intro && hr(e.$$.fragment), ln(e, t.target, t.anchor), $();
|
377
373
|
}
|
378
|
-
|
374
|
+
we(u);
|
379
375
|
}
|
380
376
|
let cr;
|
381
377
|
typeof HTMLElement == "function" && (cr = class extends HTMLElement {
|
382
378
|
constructor(t, r, n) {
|
383
379
|
super();
|
384
380
|
/** The Svelte component constructor */
|
385
|
-
|
381
|
+
M(this, "$$ctor");
|
386
382
|
/** Slots */
|
387
|
-
|
383
|
+
M(this, "$$s");
|
388
384
|
/** The Svelte component instance */
|
389
|
-
|
385
|
+
M(this, "$$c");
|
390
386
|
/** Whether or not the custom element is connected */
|
391
|
-
|
387
|
+
M(this, "$$cn", !1);
|
392
388
|
/** Component props data */
|
393
|
-
|
389
|
+
M(this, "$$d", {});
|
394
390
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
395
|
-
|
391
|
+
M(this, "$$r", !1);
|
396
392
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
397
|
-
|
393
|
+
M(this, "$$p_d", {});
|
398
394
|
/** @type {Record<string, Function[]>} Event listeners */
|
399
|
-
|
395
|
+
M(this, "$$l", {});
|
400
396
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
401
|
-
|
397
|
+
M(this, "$$l_u", /* @__PURE__ */ new Map());
|
402
398
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
403
399
|
}
|
404
400
|
addEventListener(t, r, n) {
|
@@ -422,7 +418,7 @@ typeof HTMLElement == "function" && (cr = class extends HTMLElement {
|
|
422
418
|
let s;
|
423
419
|
return {
|
424
420
|
c: function() {
|
425
|
-
s = C("slot"), o !== "default" &&
|
421
|
+
s = C("slot"), o !== "default" && g(s, "name", o);
|
426
422
|
},
|
427
423
|
/**
|
428
424
|
* @param {HTMLElement} target
|
@@ -432,14 +428,14 @@ typeof HTMLElement == "function" && (cr = class extends HTMLElement {
|
|
432
428
|
z(l, s, h);
|
433
429
|
},
|
434
430
|
d: function(l) {
|
435
|
-
l &&
|
431
|
+
l && j(s);
|
436
432
|
}
|
437
433
|
};
|
438
434
|
};
|
439
435
|
};
|
440
436
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
441
437
|
return;
|
442
|
-
const r = {}, n =
|
438
|
+
const r = {}, n = rn(this);
|
443
439
|
for (const o of this.$$s)
|
444
440
|
o in n && (r[o] = [t(o)]);
|
445
441
|
for (const o of this.attributes) {
|
@@ -528,7 +524,7 @@ function Le(e, t, r, n) {
|
|
528
524
|
return t;
|
529
525
|
}
|
530
526
|
}
|
531
|
-
function
|
527
|
+
function fn(e, t, r, n, i, o) {
|
532
528
|
let s = class extends cr {
|
533
529
|
constructor() {
|
534
530
|
super(e, r, i), this.$$p_d = t;
|
@@ -568,7 +564,7 @@ class pn {
|
|
568
564
|
*
|
569
565
|
* @type {any}
|
570
566
|
*/
|
571
|
-
|
567
|
+
M(this, "$$");
|
572
568
|
/**
|
573
569
|
* ### PRIVATE API
|
574
570
|
*
|
@@ -576,11 +572,11 @@ class pn {
|
|
576
572
|
*
|
577
573
|
* @type {any}
|
578
574
|
*/
|
579
|
-
|
575
|
+
M(this, "$$set");
|
580
576
|
}
|
581
577
|
/** @returns {void} */
|
582
578
|
$destroy() {
|
583
|
-
|
579
|
+
un(this, 1), this.$destroy = k;
|
584
580
|
}
|
585
581
|
/**
|
586
582
|
* @template {Extract<keyof Events, string>} K
|
@@ -589,8 +585,8 @@ class pn {
|
|
589
585
|
* @returns {() => void}
|
590
586
|
*/
|
591
587
|
$on(t, r) {
|
592
|
-
if (!
|
593
|
-
return
|
588
|
+
if (!xt(r))
|
589
|
+
return k;
|
594
590
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
595
591
|
return n.push(r), () => {
|
596
592
|
const i = n.indexOf(r);
|
@@ -602,11 +598,11 @@ class pn {
|
|
602
598
|
* @returns {void}
|
603
599
|
*/
|
604
600
|
$set(t) {
|
605
|
-
this.$$set && !
|
601
|
+
this.$$set && !Jr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
606
602
|
}
|
607
603
|
}
|
608
|
-
const
|
609
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
604
|
+
const dn = "4";
|
605
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(dn);
|
610
606
|
/*! *****************************************************************************
|
611
607
|
Copyright (c) Microsoft Corporation.
|
612
608
|
|
@@ -621,43 +617,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
621
617
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
622
618
|
PERFORMANCE OF THIS SOFTWARE.
|
623
619
|
***************************************************************************** */
|
624
|
-
var
|
625
|
-
return
|
620
|
+
var st = function(e, t) {
|
621
|
+
return st = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
626
622
|
r.__proto__ = n;
|
627
623
|
} || function(r, n) {
|
628
624
|
for (var i in n)
|
629
625
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
630
|
-
},
|
626
|
+
}, st(e, t);
|
631
627
|
};
|
632
|
-
function
|
628
|
+
function Ae(e, t) {
|
633
629
|
if (typeof t != "function" && t !== null)
|
634
630
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
635
|
-
|
631
|
+
st(e, t);
|
636
632
|
function r() {
|
637
633
|
this.constructor = e;
|
638
634
|
}
|
639
635
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
640
636
|
}
|
641
|
-
|
642
|
-
return w = Object.assign || function(t) {
|
643
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
644
|
-
r = arguments[n];
|
645
|
-
for (var o in r)
|
646
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
647
|
-
}
|
648
|
-
return t;
|
649
|
-
}, w.apply(this, arguments);
|
650
|
-
};
|
651
|
-
function bn(e, t) {
|
652
|
-
var r = {};
|
653
|
-
for (var n in e)
|
654
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
655
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
656
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
657
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
658
|
-
return r;
|
659
|
-
}
|
660
|
-
function lt(e) {
|
637
|
+
function at(e) {
|
661
638
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
662
639
|
if (r)
|
663
640
|
return r.call(e);
|
@@ -669,7 +646,7 @@ function lt(e) {
|
|
669
646
|
};
|
670
647
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
671
648
|
}
|
672
|
-
function
|
649
|
+
function lt(e, t) {
|
673
650
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
674
651
|
if (!r)
|
675
652
|
return e;
|
@@ -689,8 +666,8 @@ function ut(e, t) {
|
|
689
666
|
}
|
690
667
|
return o;
|
691
668
|
}
|
692
|
-
function
|
693
|
-
if (
|
669
|
+
function ut(e, t, r) {
|
670
|
+
if (arguments.length === 2)
|
694
671
|
for (var n = 0, i = t.length, o; n < i; n++)
|
695
672
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
696
673
|
return e.concat(o || t);
|
@@ -704,7 +681,7 @@ function fr(e) {
|
|
704
681
|
}, r = e(t);
|
705
682
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
706
683
|
}
|
707
|
-
var
|
684
|
+
var Qe = fr(function(e) {
|
708
685
|
return function(r) {
|
709
686
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
710
687
|
` + r.map(function(n, i) {
|
@@ -731,12 +708,12 @@ var ke = function() {
|
|
731
708
|
if (s)
|
732
709
|
if (this._parentage = null, Array.isArray(s))
|
733
710
|
try {
|
734
|
-
for (var a =
|
711
|
+
for (var a = at(s), u = a.next(); !u.done; u = a.next()) {
|
735
712
|
var l = u.value;
|
736
713
|
l.remove(this);
|
737
714
|
}
|
738
|
-
} catch (
|
739
|
-
t = { error:
|
715
|
+
} catch (y) {
|
716
|
+
t = { error: y };
|
740
717
|
} finally {
|
741
718
|
try {
|
742
719
|
u && !u.done && (r = a.return) && r.call(a);
|
@@ -751,26 +728,26 @@ var ke = function() {
|
|
751
728
|
if (J(h))
|
752
729
|
try {
|
753
730
|
h();
|
754
|
-
} catch (
|
755
|
-
o =
|
731
|
+
} catch (y) {
|
732
|
+
o = y instanceof Qe ? y.errors : [y];
|
756
733
|
}
|
757
|
-
var
|
758
|
-
if (
|
734
|
+
var p = this._finalizers;
|
735
|
+
if (p) {
|
759
736
|
this._finalizers = null;
|
760
737
|
try {
|
761
|
-
for (var
|
762
|
-
var
|
738
|
+
for (var c = at(p), m = c.next(); !m.done; m = c.next()) {
|
739
|
+
var v = m.value;
|
763
740
|
try {
|
764
|
-
Lt(
|
765
|
-
} catch (
|
766
|
-
o = o != null ? o : [],
|
741
|
+
Lt(v);
|
742
|
+
} catch (y) {
|
743
|
+
o = o != null ? o : [], y instanceof Qe ? o = ut(ut([], lt(o)), lt(y.errors)) : o.push(y);
|
767
744
|
}
|
768
745
|
}
|
769
|
-
} catch (
|
770
|
-
n = { error:
|
746
|
+
} catch (y) {
|
747
|
+
n = { error: y };
|
771
748
|
} finally {
|
772
749
|
try {
|
773
|
-
|
750
|
+
m && !m.done && (i = c.return) && i.call(c);
|
774
751
|
} finally {
|
775
752
|
if (n)
|
776
753
|
throw n.error;
|
@@ -778,7 +755,7 @@ var ke = function() {
|
|
778
755
|
}
|
779
756
|
}
|
780
757
|
if (o)
|
781
|
-
throw new
|
758
|
+
throw new Qe(o);
|
782
759
|
}
|
783
760
|
}, e.prototype.add = function(t) {
|
784
761
|
var r;
|
@@ -809,32 +786,28 @@ var ke = function() {
|
|
809
786
|
var t = new e();
|
810
787
|
return t.closed = !0, t;
|
811
788
|
}(), e;
|
812
|
-
}(),
|
813
|
-
function
|
789
|
+
}(), pr = ke.EMPTY;
|
790
|
+
function dr(e) {
|
814
791
|
return e instanceof ke || e && "closed" in e && J(e.remove) && J(e.add) && J(e.unsubscribe);
|
815
792
|
}
|
816
793
|
function Lt(e) {
|
817
794
|
J(e) ? e() : e.unsubscribe();
|
818
795
|
}
|
819
|
-
var
|
820
|
-
|
821
|
-
|
822
|
-
Promise: void 0,
|
823
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
824
|
-
useDeprecatedNextContext: !1
|
825
|
-
}, gn = {
|
796
|
+
var mn = {
|
797
|
+
Promise: void 0
|
798
|
+
}, bn = {
|
826
799
|
setTimeout: function(e, t) {
|
827
800
|
for (var r = [], n = 2; n < arguments.length; n++)
|
828
801
|
r[n - 2] = arguments[n];
|
829
|
-
return setTimeout.apply(void 0,
|
802
|
+
return setTimeout.apply(void 0, ut([e, t], lt(r)));
|
830
803
|
},
|
831
804
|
clearTimeout: function(e) {
|
832
805
|
return clearTimeout(e);
|
833
806
|
},
|
834
807
|
delegate: void 0
|
835
808
|
};
|
836
|
-
function
|
837
|
-
|
809
|
+
function gn(e) {
|
810
|
+
bn.setTimeout(function() {
|
838
811
|
throw e;
|
839
812
|
});
|
840
813
|
}
|
@@ -843,11 +816,11 @@ function Nt() {
|
|
843
816
|
function Ne(e) {
|
844
817
|
e();
|
845
818
|
}
|
846
|
-
var
|
847
|
-
|
819
|
+
var mr = function(e) {
|
820
|
+
Ae(t, e);
|
848
821
|
function t(r) {
|
849
822
|
var n = e.call(this) || this;
|
850
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
823
|
+
return n.isStopped = !1, r ? (n.destination = r, dr(r) && r.add(n)) : n.destination = _n, n;
|
851
824
|
}
|
852
825
|
return t.create = function(r, n, i) {
|
853
826
|
return new ct(r, n, i);
|
@@ -874,11 +847,7 @@ var br = function(e) {
|
|
874
847
|
this.unsubscribe();
|
875
848
|
}
|
876
849
|
}, t;
|
877
|
-
}(ke),
|
878
|
-
function Ye(e, t) {
|
879
|
-
return vn.call(e, t);
|
880
|
-
}
|
881
|
-
var _n = function() {
|
850
|
+
}(ke), yn = function() {
|
882
851
|
function e(t) {
|
883
852
|
this.partialObserver = t;
|
884
853
|
}
|
@@ -888,7 +857,7 @@ var _n = function() {
|
|
888
857
|
try {
|
889
858
|
r.next(t);
|
890
859
|
} catch (n) {
|
891
|
-
|
860
|
+
Oe(n);
|
892
861
|
}
|
893
862
|
}, e.prototype.error = function(t) {
|
894
863
|
var r = this.partialObserver;
|
@@ -896,62 +865,50 @@ var _n = function() {
|
|
896
865
|
try {
|
897
866
|
r.error(t);
|
898
867
|
} catch (n) {
|
899
|
-
|
868
|
+
Oe(n);
|
900
869
|
}
|
901
870
|
else
|
902
|
-
|
871
|
+
Oe(t);
|
903
872
|
}, e.prototype.complete = function() {
|
904
873
|
var t = this.partialObserver;
|
905
874
|
if (t.complete)
|
906
875
|
try {
|
907
876
|
t.complete();
|
908
877
|
} catch (r) {
|
909
|
-
|
878
|
+
Oe(r);
|
910
879
|
}
|
911
880
|
}, e;
|
912
881
|
}(), ct = function(e) {
|
913
|
-
|
882
|
+
Ae(t, e);
|
914
883
|
function t(r, n, i) {
|
915
884
|
var o = e.call(this) || this, s;
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
};
|
922
|
-
else {
|
923
|
-
var a;
|
924
|
-
o && mr.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
925
|
-
return o.unsubscribe();
|
926
|
-
}, s = {
|
927
|
-
next: r.next && Ye(r.next, a),
|
928
|
-
error: r.error && Ye(r.error, a),
|
929
|
-
complete: r.complete && Ye(r.complete, a)
|
930
|
-
}) : s = r;
|
931
|
-
}
|
932
|
-
return o.destination = new _n(s), o;
|
885
|
+
return J(r) || !r ? s = {
|
886
|
+
next: r != null ? r : void 0,
|
887
|
+
error: n != null ? n : void 0,
|
888
|
+
complete: i != null ? i : void 0
|
889
|
+
} : s = r, o.destination = new yn(s), o;
|
933
890
|
}
|
934
891
|
return t;
|
935
|
-
}(
|
936
|
-
function
|
937
|
-
|
892
|
+
}(mr);
|
893
|
+
function Oe(e) {
|
894
|
+
gn(e);
|
938
895
|
}
|
939
|
-
function
|
896
|
+
function vn(e) {
|
940
897
|
throw e;
|
941
898
|
}
|
942
|
-
var
|
899
|
+
var _n = {
|
943
900
|
closed: !0,
|
944
901
|
next: Nt,
|
945
|
-
error:
|
902
|
+
error: vn,
|
946
903
|
complete: Nt
|
947
|
-
},
|
904
|
+
}, xn = function() {
|
948
905
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
949
906
|
}();
|
950
|
-
function
|
907
|
+
function En(e) {
|
951
908
|
return e;
|
952
909
|
}
|
953
|
-
function
|
954
|
-
return e.length === 0 ?
|
910
|
+
function wn(e) {
|
911
|
+
return e.length === 0 ? En : e.length === 1 ? e[0] : function(r) {
|
955
912
|
return e.reduce(function(n, i) {
|
956
913
|
return i(n);
|
957
914
|
}, r);
|
@@ -965,7 +922,7 @@ var Mt = function() {
|
|
965
922
|
var r = new e();
|
966
923
|
return r.source = this, r.operator = t, r;
|
967
924
|
}, e.prototype.subscribe = function(t, r, n) {
|
968
|
-
var i = this, o =
|
925
|
+
var i = this, o = Tn(t) ? t : new ct(t, r, n);
|
969
926
|
return Ne(function() {
|
970
927
|
var s = i, a = s.operator, u = s.source;
|
971
928
|
o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
|
@@ -995,12 +952,12 @@ var Mt = function() {
|
|
995
952
|
}, e.prototype._subscribe = function(t) {
|
996
953
|
var r;
|
997
954
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
998
|
-
}, e.prototype[
|
955
|
+
}, e.prototype[xn] = function() {
|
999
956
|
return this;
|
1000
957
|
}, e.prototype.pipe = function() {
|
1001
958
|
for (var t = [], r = 0; r < arguments.length; r++)
|
1002
959
|
t[r] = arguments[r];
|
1003
|
-
return
|
960
|
+
return wn(t)(this);
|
1004
961
|
}, e.prototype.toPromise = function(t) {
|
1005
962
|
var r = this;
|
1006
963
|
return t = Rt(t), new t(function(n, i) {
|
@@ -1019,20 +976,20 @@ var Mt = function() {
|
|
1019
976
|
}();
|
1020
977
|
function Rt(e) {
|
1021
978
|
var t;
|
1022
|
-
return (t = e != null ? e :
|
979
|
+
return (t = e != null ? e : mn.Promise) !== null && t !== void 0 ? t : Promise;
|
1023
980
|
}
|
1024
|
-
function
|
981
|
+
function Sn(e) {
|
1025
982
|
return e && J(e.next) && J(e.error) && J(e.complete);
|
1026
983
|
}
|
1027
|
-
function
|
1028
|
-
return e && e instanceof
|
984
|
+
function Tn(e) {
|
985
|
+
return e && e instanceof mr || Sn(e) && dr(e);
|
1029
986
|
}
|
1030
|
-
var
|
987
|
+
var Hn = fr(function(e) {
|
1031
988
|
return function() {
|
1032
989
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
1033
990
|
};
|
1034
|
-
}),
|
1035
|
-
|
991
|
+
}), br = function(e) {
|
992
|
+
Ae(t, e);
|
1036
993
|
function t() {
|
1037
994
|
var r = e.call(this) || this;
|
1038
995
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
@@ -1042,7 +999,7 @@ var Pn = fr(function(e) {
|
|
1042
999
|
return n.operator = r, n;
|
1043
1000
|
}, t.prototype._throwIfClosed = function() {
|
1044
1001
|
if (this.closed)
|
1045
|
-
throw new
|
1002
|
+
throw new Hn();
|
1046
1003
|
}, t.prototype.next = function(r) {
|
1047
1004
|
var n = this;
|
1048
1005
|
Ne(function() {
|
@@ -1050,7 +1007,7 @@ var Pn = fr(function(e) {
|
|
1050
1007
|
if (n._throwIfClosed(), !n.isStopped) {
|
1051
1008
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
1052
1009
|
try {
|
1053
|
-
for (var s =
|
1010
|
+
for (var s = at(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
1054
1011
|
var u = a.value;
|
1055
1012
|
u.next(r);
|
1056
1013
|
}
|
@@ -1099,7 +1056,7 @@ var Pn = fr(function(e) {
|
|
1099
1056
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
1100
1057
|
}, t.prototype._innerSubscribe = function(r) {
|
1101
1058
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
1102
|
-
return o || s ?
|
1059
|
+
return o || s ? pr : (this.currentObservers = null, a.push(r), new ke(function() {
|
1103
1060
|
n.currentObservers = null, ht(a, r);
|
1104
1061
|
}));
|
1105
1062
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
@@ -1112,7 +1069,7 @@ var Pn = fr(function(e) {
|
|
1112
1069
|
return new Dt(r, n);
|
1113
1070
|
}, t;
|
1114
1071
|
}(Mt), Dt = function(e) {
|
1115
|
-
|
1072
|
+
Ae(t, e);
|
1116
1073
|
function t(r, n) {
|
1117
1074
|
var i = e.call(this) || this;
|
1118
1075
|
return i.destination = r, i.source = n, i;
|
@@ -1128,17 +1085,17 @@ var Pn = fr(function(e) {
|
|
1128
1085
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
1129
1086
|
}, t.prototype._subscribe = function(r) {
|
1130
1087
|
var n, i;
|
1131
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
1088
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : pr;
|
1132
1089
|
}, t;
|
1133
|
-
}(
|
1090
|
+
}(br), gr = {
|
1134
1091
|
now: function() {
|
1135
|
-
return (
|
1092
|
+
return (gr.delegate || Date).now();
|
1136
1093
|
},
|
1137
1094
|
delegate: void 0
|
1138
|
-
},
|
1139
|
-
|
1095
|
+
}, An = function(e) {
|
1096
|
+
Ae(t, e);
|
1140
1097
|
function t(r, n, i) {
|
1141
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
1098
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = gr);
|
1142
1099
|
var o = e.call(this) || this;
|
1143
1100
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
1144
1101
|
}
|
@@ -1158,20 +1115,20 @@ var Pn = fr(function(e) {
|
|
1158
1115
|
l && o.splice(0, l + 1);
|
1159
1116
|
}
|
1160
1117
|
}, t;
|
1161
|
-
}(
|
1162
|
-
const
|
1163
|
-
if (
|
1164
|
-
const r = new
|
1165
|
-
|
1118
|
+
}(br);
|
1119
|
+
const $t = [], Ut = {}, Pn = (e, t = 0) => {
|
1120
|
+
if ($t.indexOf(e) == -1) {
|
1121
|
+
const r = new An(t);
|
1122
|
+
Ut[e] = r, $t.push(e);
|
1166
1123
|
}
|
1167
|
-
return
|
1124
|
+
return Ut[e];
|
1168
1125
|
}, ce = [];
|
1169
|
-
function
|
1126
|
+
function Cn(e, t) {
|
1170
1127
|
return {
|
1171
1128
|
subscribe: je(e, t).subscribe
|
1172
1129
|
};
|
1173
1130
|
}
|
1174
|
-
function je(e, t =
|
1131
|
+
function je(e, t = k) {
|
1175
1132
|
let r;
|
1176
1133
|
const n = /* @__PURE__ */ new Set();
|
1177
1134
|
function i(a) {
|
@@ -1189,215 +1146,265 @@ function je(e, t = j) {
|
|
1189
1146
|
function o(a) {
|
1190
1147
|
i(a(e));
|
1191
1148
|
}
|
1192
|
-
function s(a, u =
|
1149
|
+
function s(a, u = k) {
|
1193
1150
|
const l = [a, u];
|
1194
|
-
return n.add(l), n.size === 1 && (r = t(i, o) ||
|
1151
|
+
return n.add(l), n.size === 1 && (r = t(i, o) || k), a(e), () => {
|
1195
1152
|
n.delete(l), n.size === 0 && r && (r(), r = null);
|
1196
1153
|
};
|
1197
1154
|
}
|
1198
1155
|
return { set: i, update: o, subscribe: s };
|
1199
1156
|
}
|
1200
|
-
function
|
1157
|
+
function ye(e, t, r) {
|
1201
1158
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
1202
1159
|
if (!i.every(Boolean))
|
1203
1160
|
throw new Error("derived() expects stores as input, got a falsy value");
|
1204
1161
|
const o = t.length < 2;
|
1205
|
-
return
|
1162
|
+
return Cn(r, (s, a) => {
|
1206
1163
|
let u = !1;
|
1207
1164
|
const l = [];
|
1208
|
-
let h = 0,
|
1209
|
-
const
|
1165
|
+
let h = 0, p = k;
|
1166
|
+
const c = () => {
|
1210
1167
|
if (h)
|
1211
1168
|
return;
|
1212
|
-
|
1213
|
-
const
|
1214
|
-
o ? s(
|
1215
|
-
},
|
1216
|
-
(
|
1217
|
-
|
1218
|
-
(
|
1219
|
-
l[
|
1169
|
+
p();
|
1170
|
+
const v = t(n ? l[0] : l, s, a);
|
1171
|
+
o ? s(v) : p = xt(v) ? v : k;
|
1172
|
+
}, m = i.map(
|
1173
|
+
(v, y) => sr(
|
1174
|
+
v,
|
1175
|
+
(T) => {
|
1176
|
+
l[y] = T, h &= ~(1 << y), u && c();
|
1220
1177
|
},
|
1221
1178
|
() => {
|
1222
|
-
h |= 1 <<
|
1179
|
+
h |= 1 << y;
|
1223
1180
|
}
|
1224
1181
|
)
|
1225
1182
|
);
|
1226
|
-
return u = !0,
|
1227
|
-
|
1183
|
+
return u = !0, c(), function() {
|
1184
|
+
K(m), p(), u = !1;
|
1228
1185
|
};
|
1229
1186
|
});
|
1230
1187
|
}
|
1231
|
-
function
|
1188
|
+
function Fn(e) {
|
1232
1189
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
1233
1190
|
}
|
1234
|
-
var
|
1235
|
-
return
|
1191
|
+
var Bn = function(t) {
|
1192
|
+
return On(t) && !In(t);
|
1236
1193
|
};
|
1237
|
-
function
|
1194
|
+
function On(e) {
|
1238
1195
|
return !!e && typeof e == "object";
|
1239
1196
|
}
|
1240
|
-
function
|
1197
|
+
function In(e) {
|
1241
1198
|
var t = Object.prototype.toString.call(e);
|
1242
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
1199
|
+
return t === "[object RegExp]" || t === "[object Date]" || Mn(e);
|
1243
1200
|
}
|
1244
|
-
var
|
1245
|
-
function
|
1246
|
-
return e.$$typeof ===
|
1201
|
+
var Ln = typeof Symbol == "function" && Symbol.for, Nn = Ln ? Symbol.for("react.element") : 60103;
|
1202
|
+
function Mn(e) {
|
1203
|
+
return e.$$typeof === Nn;
|
1247
1204
|
}
|
1248
|
-
function
|
1205
|
+
function Rn(e) {
|
1249
1206
|
return Array.isArray(e) ? [] : {};
|
1250
1207
|
}
|
1251
|
-
function
|
1252
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
1208
|
+
function Te(e, t) {
|
1209
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? de(Rn(e), e, t) : e;
|
1253
1210
|
}
|
1254
|
-
function
|
1211
|
+
function Dn(e, t, r) {
|
1255
1212
|
return e.concat(t).map(function(n) {
|
1256
|
-
return
|
1213
|
+
return Te(n, r);
|
1257
1214
|
});
|
1258
1215
|
}
|
1259
|
-
function
|
1216
|
+
function $n(e, t) {
|
1260
1217
|
if (!t.customMerge)
|
1261
|
-
return
|
1218
|
+
return de;
|
1262
1219
|
var r = t.customMerge(e);
|
1263
|
-
return typeof r == "function" ? r :
|
1220
|
+
return typeof r == "function" ? r : de;
|
1264
1221
|
}
|
1265
|
-
function
|
1222
|
+
function Un(e) {
|
1266
1223
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
1267
1224
|
return Object.propertyIsEnumerable.call(e, t);
|
1268
1225
|
}) : [];
|
1269
1226
|
}
|
1270
1227
|
function Gt(e) {
|
1271
|
-
return Object.keys(e).concat(
|
1228
|
+
return Object.keys(e).concat(Un(e));
|
1272
1229
|
}
|
1273
|
-
function
|
1230
|
+
function yr(e, t) {
|
1274
1231
|
try {
|
1275
1232
|
return t in e;
|
1276
1233
|
} catch (r) {
|
1277
1234
|
return !1;
|
1278
1235
|
}
|
1279
1236
|
}
|
1280
|
-
function
|
1281
|
-
return
|
1237
|
+
function Gn(e, t) {
|
1238
|
+
return yr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
1282
1239
|
}
|
1283
|
-
function
|
1240
|
+
function kn(e, t, r) {
|
1284
1241
|
var n = {};
|
1285
1242
|
return r.isMergeableObject(e) && Gt(e).forEach(function(i) {
|
1286
|
-
n[i] =
|
1243
|
+
n[i] = Te(e[i], r);
|
1287
1244
|
}), Gt(t).forEach(function(i) {
|
1288
|
-
|
1245
|
+
Gn(e, i) || (yr(e, i) && r.isMergeableObject(t[i]) ? n[i] = $n(i, r)(e[i], t[i], r) : n[i] = Te(t[i], r));
|
1289
1246
|
}), n;
|
1290
1247
|
}
|
1291
|
-
function
|
1292
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
1248
|
+
function de(e, t, r) {
|
1249
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Dn, r.isMergeableObject = r.isMergeableObject || Bn, r.cloneUnlessOtherwiseSpecified = Te;
|
1293
1250
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
1294
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
1251
|
+
return o ? n ? r.arrayMerge(e, t, r) : kn(e, t, r) : Te(t, r);
|
1295
1252
|
}
|
1296
|
-
|
1253
|
+
de.all = function(t, r) {
|
1297
1254
|
if (!Array.isArray(t))
|
1298
1255
|
throw new Error("first argument should be an array");
|
1299
1256
|
return t.reduce(function(n, i) {
|
1300
|
-
return
|
1257
|
+
return de(n, i, r);
|
1301
1258
|
}, {});
|
1302
1259
|
};
|
1303
|
-
var
|
1304
|
-
const
|
1305
|
-
function
|
1306
|
-
|
1260
|
+
var jn = de, Vn = jn;
|
1261
|
+
const Xn = /* @__PURE__ */ Fn(Vn);
|
1262
|
+
var ft = function(e, t) {
|
1263
|
+
return ft = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
1264
|
+
r.__proto__ = n;
|
1265
|
+
} || function(r, n) {
|
1266
|
+
for (var i in n)
|
1267
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
1268
|
+
}, ft(e, t);
|
1269
|
+
};
|
1270
|
+
function Ve(e, t) {
|
1271
|
+
if (typeof t != "function" && t !== null)
|
1272
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
1273
|
+
ft(e, t);
|
1274
|
+
function r() {
|
1275
|
+
this.constructor = e;
|
1276
|
+
}
|
1277
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
1278
|
+
}
|
1279
|
+
var W = function() {
|
1280
|
+
return W = Object.assign || function(t) {
|
1281
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
1282
|
+
r = arguments[n];
|
1283
|
+
for (var o in r)
|
1284
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
1285
|
+
}
|
1286
|
+
return t;
|
1287
|
+
}, W.apply(this, arguments);
|
1288
|
+
};
|
1289
|
+
function Wn(e, t) {
|
1290
|
+
var r = {};
|
1291
|
+
for (var n in e)
|
1292
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
1293
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
1294
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
1295
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
1296
|
+
return r;
|
1297
|
+
}
|
1298
|
+
function qe(e, t, r) {
|
1299
|
+
if (r || arguments.length === 2)
|
1300
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
1301
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
1302
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
1303
|
+
}
|
1304
|
+
function Ye(e, t) {
|
1305
|
+
var r = t && t.cache ? t.cache : Kn, n = t && t.serializer ? t.serializer : qn, i = t && t.strategy ? t.strategy : Jn;
|
1307
1306
|
return i(e, {
|
1308
1307
|
cache: r,
|
1309
1308
|
serializer: n
|
1310
1309
|
});
|
1311
1310
|
}
|
1312
|
-
function
|
1311
|
+
function zn(e) {
|
1313
1312
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
1314
1313
|
}
|
1315
|
-
function
|
1316
|
-
var i =
|
1314
|
+
function Zn(e, t, r, n) {
|
1315
|
+
var i = zn(n) ? n : r(n), o = t.get(i);
|
1317
1316
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
1318
1317
|
}
|
1319
|
-
function
|
1318
|
+
function vr(e, t, r) {
|
1320
1319
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
1321
1320
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
1322
1321
|
}
|
1323
|
-
function
|
1322
|
+
function _r(e, t, r, n, i) {
|
1324
1323
|
return r.bind(t, e, n, i);
|
1325
1324
|
}
|
1326
1325
|
function Jn(e, t) {
|
1327
|
-
var r = e.length === 1 ?
|
1328
|
-
return
|
1326
|
+
var r = e.length === 1 ? Zn : vr;
|
1327
|
+
return _r(e, this, r, t.cache.create(), t.serializer);
|
1329
1328
|
}
|
1330
1329
|
function Qn(e, t) {
|
1331
|
-
return
|
1330
|
+
return _r(e, this, vr, t.cache.create(), t.serializer);
|
1332
1331
|
}
|
1333
|
-
|
1334
|
-
return _t(e, this, _r, t.cache.create(), t.serializer);
|
1335
|
-
}
|
1336
|
-
var Yn = function() {
|
1332
|
+
var qn = function() {
|
1337
1333
|
return JSON.stringify(arguments);
|
1338
|
-
}
|
1339
|
-
|
1340
|
-
|
1341
|
-
|
1342
|
-
|
1343
|
-
|
1344
|
-
|
1345
|
-
|
1346
|
-
|
1347
|
-
|
1348
|
-
|
1334
|
+
}, Yn = (
|
1335
|
+
/** @class */
|
1336
|
+
function() {
|
1337
|
+
function e() {
|
1338
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
1339
|
+
}
|
1340
|
+
return e.prototype.get = function(t) {
|
1341
|
+
return this.cache[t];
|
1342
|
+
}, e.prototype.set = function(t, r) {
|
1343
|
+
this.cache[t] = r;
|
1344
|
+
}, e;
|
1345
|
+
}()
|
1346
|
+
), Kn = {
|
1349
1347
|
create: function() {
|
1350
|
-
return new
|
1348
|
+
return new Yn();
|
1351
1349
|
}
|
1352
|
-
},
|
1353
|
-
variadic: Qn
|
1354
|
-
|
1355
|
-
|
1350
|
+
}, Ke = {
|
1351
|
+
variadic: Qn
|
1352
|
+
}, $e = function() {
|
1353
|
+
return $e = Object.assign || function(t) {
|
1354
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
1355
|
+
r = arguments[n];
|
1356
|
+
for (var o in r)
|
1357
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
1358
|
+
}
|
1359
|
+
return t;
|
1360
|
+
}, $e.apply(this, arguments);
|
1361
|
+
};
|
1362
|
+
var E;
|
1356
1363
|
(function(e) {
|
1357
1364
|
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";
|
1358
|
-
})(
|
1359
|
-
var
|
1365
|
+
})(E || (E = {}));
|
1366
|
+
var F;
|
1360
1367
|
(function(e) {
|
1361
1368
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
1362
|
-
})(
|
1363
|
-
var
|
1369
|
+
})(F || (F = {}));
|
1370
|
+
var me;
|
1364
1371
|
(function(e) {
|
1365
1372
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
1366
|
-
})(
|
1373
|
+
})(me || (me = {}));
|
1367
1374
|
function kt(e) {
|
1368
|
-
return e.type ===
|
1375
|
+
return e.type === F.literal;
|
1369
1376
|
}
|
1370
1377
|
function ei(e) {
|
1371
|
-
return e.type ===
|
1378
|
+
return e.type === F.argument;
|
1379
|
+
}
|
1380
|
+
function xr(e) {
|
1381
|
+
return e.type === F.number;
|
1372
1382
|
}
|
1373
1383
|
function Er(e) {
|
1374
|
-
return e.type ===
|
1384
|
+
return e.type === F.date;
|
1375
1385
|
}
|
1376
1386
|
function wr(e) {
|
1377
|
-
return e.type ===
|
1387
|
+
return e.type === F.time;
|
1378
1388
|
}
|
1379
1389
|
function Sr(e) {
|
1380
|
-
return e.type ===
|
1390
|
+
return e.type === F.select;
|
1381
1391
|
}
|
1382
1392
|
function Tr(e) {
|
1383
|
-
return e.type ===
|
1384
|
-
}
|
1385
|
-
function Hr(e) {
|
1386
|
-
return e.type === B.plural;
|
1393
|
+
return e.type === F.plural;
|
1387
1394
|
}
|
1388
1395
|
function ti(e) {
|
1389
|
-
return e.type ===
|
1396
|
+
return e.type === F.pound;
|
1390
1397
|
}
|
1391
|
-
function
|
1392
|
-
return e.type ===
|
1398
|
+
function Hr(e) {
|
1399
|
+
return e.type === F.tag;
|
1393
1400
|
}
|
1394
|
-
function
|
1395
|
-
return !!(e && typeof e == "object" && e.type ===
|
1401
|
+
function Ar(e) {
|
1402
|
+
return !!(e && typeof e == "object" && e.type === me.number);
|
1396
1403
|
}
|
1397
|
-
function
|
1398
|
-
return !!(e && typeof e == "object" && e.type ===
|
1404
|
+
function pt(e) {
|
1405
|
+
return !!(e && typeof e == "object" && e.type === me.dateTime);
|
1399
1406
|
}
|
1400
|
-
var
|
1407
|
+
var Pr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ri = /(?:[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;
|
1401
1408
|
function ni(e) {
|
1402
1409
|
var t = {};
|
1403
1410
|
return e.replace(ri, function(r) {
|
@@ -1489,19 +1496,29 @@ function ni(e) {
|
|
1489
1496
|
return "";
|
1490
1497
|
}), t;
|
1491
1498
|
}
|
1499
|
+
var O = function() {
|
1500
|
+
return O = Object.assign || function(t) {
|
1501
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
1502
|
+
r = arguments[n];
|
1503
|
+
for (var o in r)
|
1504
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
1505
|
+
}
|
1506
|
+
return t;
|
1507
|
+
}, O.apply(this, arguments);
|
1508
|
+
};
|
1492
1509
|
var ii = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
1493
1510
|
function oi(e) {
|
1494
1511
|
if (e.length === 0)
|
1495
1512
|
throw new Error("Number skeleton cannot be empty");
|
1496
|
-
for (var t = e.split(ii).filter(function(
|
1497
|
-
return
|
1513
|
+
for (var t = e.split(ii).filter(function(c) {
|
1514
|
+
return c.length > 0;
|
1498
1515
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
1499
1516
|
var o = i[n], s = o.split("/");
|
1500
1517
|
if (s.length === 0)
|
1501
1518
|
throw new Error("Invalid number skeleton");
|
1502
1519
|
for (var a = s[0], u = s.slice(1), l = 0, h = u; l < h.length; l++) {
|
1503
|
-
var
|
1504
|
-
if (
|
1520
|
+
var p = h[l];
|
1521
|
+
if (p.length === 0)
|
1505
1522
|
throw new Error("Invalid number skeleton");
|
1506
1523
|
}
|
1507
1524
|
r.push({ stem: a, options: u });
|
@@ -1511,14 +1528,14 @@ function oi(e) {
|
|
1511
1528
|
function si(e) {
|
1512
1529
|
return e.replace(/^(.*?)-/, "");
|
1513
1530
|
}
|
1514
|
-
var jt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,
|
1531
|
+
var jt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Cr = /^(@+)?(\+|#+)?[rs]?$/g, ai = /(\*)(0+)|(#+)(0+)|(0+)/g, Fr = /^(0+)$/;
|
1515
1532
|
function Vt(e) {
|
1516
1533
|
var t = {};
|
1517
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
1534
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Cr, function(r, n, i) {
|
1518
1535
|
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)), "";
|
1519
1536
|
}), t;
|
1520
1537
|
}
|
1521
|
-
function
|
1538
|
+
function Br(e) {
|
1522
1539
|
switch (e) {
|
1523
1540
|
case "sign-auto":
|
1524
1541
|
return {
|
@@ -1566,14 +1583,14 @@ function li(e) {
|
|
1566
1583
|
notation: "scientific"
|
1567
1584
|
}, e = e.slice(1)), t) {
|
1568
1585
|
var r = e.slice(0, 2);
|
1569
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
1586
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Fr.test(e))
|
1570
1587
|
throw new Error("Malformed concise eng/scientific notation");
|
1571
1588
|
t.minimumIntegerDigits = e.length;
|
1572
1589
|
}
|
1573
1590
|
return t;
|
1574
1591
|
}
|
1575
1592
|
function Xt(e) {
|
1576
|
-
var t = {}, r =
|
1593
|
+
var t = {}, r = Br(e);
|
1577
1594
|
return r || t;
|
1578
1595
|
}
|
1579
1596
|
function ui(e) {
|
@@ -1611,13 +1628,13 @@ function ui(e) {
|
|
1611
1628
|
t.notation = "compact", t.compactDisplay = "long";
|
1612
1629
|
continue;
|
1613
1630
|
case "scientific":
|
1614
|
-
t =
|
1615
|
-
return
|
1631
|
+
t = O(O(O({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
1632
|
+
return O(O({}, u), Xt(l));
|
1616
1633
|
}, {}));
|
1617
1634
|
continue;
|
1618
1635
|
case "engineering":
|
1619
|
-
t =
|
1620
|
-
return
|
1636
|
+
t = O(O(O({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
1637
|
+
return O(O({}, u), Xt(l));
|
1621
1638
|
}, {}));
|
1622
1639
|
continue;
|
1623
1640
|
case "notation-simple":
|
@@ -1662,45 +1679,45 @@ function ui(e) {
|
|
1662
1679
|
case "integer-width":
|
1663
1680
|
if (i.options.length > 1)
|
1664
1681
|
throw new RangeError("integer-width stems only accept a single optional option");
|
1665
|
-
i.options[0].replace(ai, function(u, l, h,
|
1682
|
+
i.options[0].replace(ai, function(u, l, h, p, c, m) {
|
1666
1683
|
if (l)
|
1667
1684
|
t.minimumIntegerDigits = h.length;
|
1668
1685
|
else {
|
1669
|
-
if (
|
1686
|
+
if (p && c)
|
1670
1687
|
throw new Error("We currently do not support maximum integer digits");
|
1671
|
-
if (
|
1688
|
+
if (m)
|
1672
1689
|
throw new Error("We currently do not support exact integer digits");
|
1673
1690
|
}
|
1674
1691
|
return "";
|
1675
1692
|
});
|
1676
1693
|
continue;
|
1677
1694
|
}
|
1678
|
-
if (
|
1695
|
+
if (Fr.test(i.stem)) {
|
1679
1696
|
t.minimumIntegerDigits = i.stem.length;
|
1680
1697
|
continue;
|
1681
1698
|
}
|
1682
1699
|
if (jt.test(i.stem)) {
|
1683
1700
|
if (i.options.length > 1)
|
1684
1701
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
1685
|
-
i.stem.replace(jt, function(u, l, h,
|
1686
|
-
return h === "*" ? t.minimumFractionDigits = l.length :
|
1702
|
+
i.stem.replace(jt, function(u, l, h, p, c, m) {
|
1703
|
+
return h === "*" ? t.minimumFractionDigits = l.length : p && p[0] === "#" ? t.maximumFractionDigits = p.length : c && m ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + m.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
1687
1704
|
});
|
1688
1705
|
var o = i.options[0];
|
1689
|
-
o === "w" ? t =
|
1706
|
+
o === "w" ? t = O(O({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = O(O({}, t), Vt(o)));
|
1690
1707
|
continue;
|
1691
1708
|
}
|
1692
|
-
if (
|
1693
|
-
t =
|
1709
|
+
if (Cr.test(i.stem)) {
|
1710
|
+
t = O(O({}, t), Vt(i.stem));
|
1694
1711
|
continue;
|
1695
1712
|
}
|
1696
|
-
var s =
|
1697
|
-
s && (t =
|
1713
|
+
var s = Br(i.stem);
|
1714
|
+
s && (t = O(O({}, t), s));
|
1698
1715
|
var a = li(i.stem);
|
1699
|
-
a && (t =
|
1716
|
+
a && (t = O(O({}, t), a));
|
1700
1717
|
}
|
1701
1718
|
return t;
|
1702
1719
|
}
|
1703
|
-
var
|
1720
|
+
var Ie = {
|
1704
1721
|
"001": [
|
1705
1722
|
"H",
|
1706
1723
|
"h"
|
@@ -3150,23 +3167,23 @@ function ci(e) {
|
|
3150
3167
|
}
|
3151
3168
|
var r = e.language, n;
|
3152
3169
|
r !== "root" && (n = e.maximize().region);
|
3153
|
-
var i =
|
3170
|
+
var i = Ie[n || ""] || Ie[r || ""] || Ie["".concat(r, "-001")] || Ie["001"];
|
3154
3171
|
return i[0];
|
3155
3172
|
}
|
3156
|
-
var
|
3157
|
-
function
|
3173
|
+
var et, fi = new RegExp("^".concat(Pr.source, "*")), pi = new RegExp("".concat(Pr.source, "*$"));
|
3174
|
+
function w(e, t) {
|
3158
3175
|
return { start: e, end: t };
|
3159
3176
|
}
|
3160
|
-
var
|
3177
|
+
var di = !!String.prototype.startsWith && "_a".startsWith("a", 1), mi = !!String.fromCodePoint, bi = !!Object.fromEntries, gi = !!String.prototype.codePointAt, yi = !!String.prototype.trimStart, vi = !!String.prototype.trimEnd, _i = !!Number.isSafeInteger, xi = _i ? Number.isSafeInteger : function(e) {
|
3161
3178
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
3162
3179
|
}, dt = !0;
|
3163
3180
|
try {
|
3164
|
-
var Ei =
|
3165
|
-
dt = ((
|
3181
|
+
var Ei = Ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
3182
|
+
dt = ((et = Ei.exec("a")) === null || et === void 0 ? void 0 : et[0]) === "a";
|
3166
3183
|
} catch (e) {
|
3167
3184
|
dt = !1;
|
3168
3185
|
}
|
3169
|
-
var Wt =
|
3186
|
+
var Wt = di ? (
|
3170
3187
|
// Native
|
3171
3188
|
function(t, r, n) {
|
3172
3189
|
return t.startsWith(r, n);
|
@@ -3176,7 +3193,7 @@ var Wt = pi ? (
|
|
3176
3193
|
function(t, r, n) {
|
3177
3194
|
return t.slice(n, n + r.length) === r;
|
3178
3195
|
}
|
3179
|
-
),
|
3196
|
+
), mt = mi ? String.fromCodePoint : (
|
3180
3197
|
// IE11
|
3181
3198
|
function() {
|
3182
3199
|
for (var t = [], r = 0; r < arguments.length; r++)
|
@@ -3232,30 +3249,30 @@ var Wt = pi ? (
|
|
3232
3249
|
) : (
|
3233
3250
|
// Ponyfill
|
3234
3251
|
function(t) {
|
3235
|
-
return t.replace(
|
3252
|
+
return t.replace(pi, "");
|
3236
3253
|
}
|
3237
3254
|
);
|
3238
|
-
function
|
3255
|
+
function Ir(e, t) {
|
3239
3256
|
return new RegExp(e, t);
|
3240
3257
|
}
|
3241
|
-
var
|
3258
|
+
var bt;
|
3242
3259
|
if (dt) {
|
3243
|
-
var Zt =
|
3244
|
-
|
3260
|
+
var Zt = Ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
3261
|
+
bt = function(t, r) {
|
3245
3262
|
var n;
|
3246
3263
|
Zt.lastIndex = r;
|
3247
3264
|
var i = Zt.exec(t);
|
3248
3265
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
3249
3266
|
};
|
3250
3267
|
} else
|
3251
|
-
|
3268
|
+
bt = function(t, r) {
|
3252
3269
|
for (var n = []; ; ) {
|
3253
3270
|
var i = Or(t, r);
|
3254
|
-
if (i === void 0 ||
|
3271
|
+
if (i === void 0 || Lr(i) || Pi(i))
|
3255
3272
|
break;
|
3256
3273
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
3257
3274
|
}
|
3258
|
-
return
|
3275
|
+
return mt.apply(void 0, n);
|
3259
3276
|
};
|
3260
3277
|
var Ti = (
|
3261
3278
|
/** @class */
|
@@ -3281,14 +3298,14 @@ var Ti = (
|
|
3281
3298
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
3282
3299
|
var a = this.clonePosition();
|
3283
3300
|
this.bump(), i.push({
|
3284
|
-
type:
|
3285
|
-
location:
|
3301
|
+
type: F.pound,
|
3302
|
+
location: w(a, this.clonePosition())
|
3286
3303
|
});
|
3287
3304
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
3288
3305
|
if (n)
|
3289
3306
|
break;
|
3290
|
-
return this.error(
|
3291
|
-
} else if (o === 60 && !this.ignoreTag &&
|
3307
|
+
return this.error(E.UNMATCHED_CLOSING_TAG, w(this.clonePosition(), this.clonePosition()));
|
3308
|
+
} else if (o === 60 && !this.ignoreTag && gt(this.peek() || 0)) {
|
3292
3309
|
var s = this.parseTag(t, r);
|
3293
3310
|
if (s.err)
|
3294
3311
|
return s;
|
@@ -3309,9 +3326,9 @@ var Ti = (
|
|
3309
3326
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
3310
3327
|
return {
|
3311
3328
|
val: {
|
3312
|
-
type:
|
3329
|
+
type: F.literal,
|
3313
3330
|
value: "<".concat(i, "/>"),
|
3314
|
-
location:
|
3331
|
+
location: w(n, this.clonePosition())
|
3315
3332
|
},
|
3316
3333
|
err: null
|
3317
3334
|
};
|
@@ -3321,22 +3338,22 @@ var Ti = (
|
|
3321
3338
|
return o;
|
3322
3339
|
var s = o.val, a = this.clonePosition();
|
3323
3340
|
if (this.bumpIf("</")) {
|
3324
|
-
if (this.isEOF() || !
|
3325
|
-
return this.error(
|
3341
|
+
if (this.isEOF() || !gt(this.char()))
|
3342
|
+
return this.error(E.INVALID_TAG, w(a, this.clonePosition()));
|
3326
3343
|
var u = this.clonePosition(), l = this.parseTagName();
|
3327
|
-
return i !== l ? this.error(
|
3344
|
+
return i !== l ? this.error(E.UNMATCHED_CLOSING_TAG, w(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
3328
3345
|
val: {
|
3329
|
-
type:
|
3346
|
+
type: F.tag,
|
3330
3347
|
value: i,
|
3331
3348
|
children: s,
|
3332
|
-
location:
|
3349
|
+
location: w(n, this.clonePosition())
|
3333
3350
|
},
|
3334
3351
|
err: null
|
3335
|
-
} : this.error(
|
3352
|
+
} : this.error(E.INVALID_TAG, w(a, this.clonePosition())));
|
3336
3353
|
} else
|
3337
|
-
return this.error(
|
3354
|
+
return this.error(E.UNCLOSED_TAG, w(n, this.clonePosition()));
|
3338
3355
|
} else
|
3339
|
-
return this.error(
|
3356
|
+
return this.error(E.INVALID_TAG, w(n, this.clonePosition()));
|
3340
3357
|
}, e.prototype.parseTagName = function() {
|
3341
3358
|
var t = this.offset();
|
3342
3359
|
for (this.bump(); !this.isEOF() && Ai(this.char()); )
|
@@ -3361,9 +3378,9 @@ var Ti = (
|
|
3361
3378
|
}
|
3362
3379
|
break;
|
3363
3380
|
}
|
3364
|
-
var u =
|
3381
|
+
var u = w(n, this.clonePosition());
|
3365
3382
|
return {
|
3366
|
-
val: { type:
|
3383
|
+
val: { type: F.literal, value: i, location: u },
|
3367
3384
|
err: null
|
3368
3385
|
};
|
3369
3386
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
@@ -3402,49 +3419,49 @@ var Ti = (
|
|
3402
3419
|
r.push(n);
|
3403
3420
|
this.bump();
|
3404
3421
|
}
|
3405
|
-
return
|
3422
|
+
return mt.apply(void 0, r);
|
3406
3423
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
3407
3424
|
if (this.isEOF())
|
3408
3425
|
return null;
|
3409
3426
|
var n = this.char();
|
3410
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
3427
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), mt(n));
|
3411
3428
|
}, e.prototype.parseArgument = function(t, r) {
|
3412
3429
|
var n = this.clonePosition();
|
3413
3430
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
3414
|
-
return this.error(
|
3431
|
+
return this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition()));
|
3415
3432
|
if (this.char() === 125)
|
3416
|
-
return this.bump(), this.error(
|
3433
|
+
return this.bump(), this.error(E.EMPTY_ARGUMENT, w(n, this.clonePosition()));
|
3417
3434
|
var i = this.parseIdentifierIfPossible().value;
|
3418
3435
|
if (!i)
|
3419
|
-
return this.error(
|
3436
|
+
return this.error(E.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
|
3420
3437
|
if (this.bumpSpace(), this.isEOF())
|
3421
|
-
return this.error(
|
3438
|
+
return this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition()));
|
3422
3439
|
switch (this.char()) {
|
3423
3440
|
case 125:
|
3424
3441
|
return this.bump(), {
|
3425
3442
|
val: {
|
3426
|
-
type:
|
3443
|
+
type: F.argument,
|
3427
3444
|
// value does not include the opening and closing braces.
|
3428
3445
|
value: i,
|
3429
|
-
location:
|
3446
|
+
location: w(n, this.clonePosition())
|
3430
3447
|
},
|
3431
3448
|
err: null
|
3432
3449
|
};
|
3433
3450
|
case 44:
|
3434
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
3451
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
3435
3452
|
default:
|
3436
|
-
return this.error(
|
3453
|
+
return this.error(E.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
|
3437
3454
|
}
|
3438
3455
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
3439
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
3456
|
+
var t = this.clonePosition(), r = this.offset(), n = bt(this.message, r), i = r + n.length;
|
3440
3457
|
this.bumpTo(i);
|
3441
|
-
var o = this.clonePosition(), s =
|
3458
|
+
var o = this.clonePosition(), s = w(t, o);
|
3442
3459
|
return { value: n, location: s };
|
3443
3460
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
3444
3461
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
3445
3462
|
switch (a) {
|
3446
3463
|
case "":
|
3447
|
-
return this.error(
|
3464
|
+
return this.error(E.EXPECT_ARGUMENT_TYPE, w(s, u));
|
3448
3465
|
case "number":
|
3449
3466
|
case "date":
|
3450
3467
|
case "time": {
|
@@ -3452,49 +3469,49 @@ var Ti = (
|
|
3452
3469
|
var l = null;
|
3453
3470
|
if (this.bumpIf(",")) {
|
3454
3471
|
this.bumpSpace();
|
3455
|
-
var h = this.clonePosition(),
|
3456
|
-
if (
|
3457
|
-
return
|
3458
|
-
var
|
3459
|
-
if (
|
3460
|
-
return this.error(
|
3461
|
-
var
|
3462
|
-
l = { style:
|
3472
|
+
var h = this.clonePosition(), p = this.parseSimpleArgStyleIfPossible();
|
3473
|
+
if (p.err)
|
3474
|
+
return p;
|
3475
|
+
var c = Si(p.val);
|
3476
|
+
if (c.length === 0)
|
3477
|
+
return this.error(E.EXPECT_ARGUMENT_STYLE, w(this.clonePosition(), this.clonePosition()));
|
3478
|
+
var m = w(h, this.clonePosition());
|
3479
|
+
l = { style: c, styleLocation: m };
|
3463
3480
|
}
|
3464
|
-
var
|
3465
|
-
if (
|
3466
|
-
return
|
3467
|
-
var
|
3481
|
+
var v = this.tryParseArgumentClose(i);
|
3482
|
+
if (v.err)
|
3483
|
+
return v;
|
3484
|
+
var y = w(i, this.clonePosition());
|
3468
3485
|
if (l && Wt(l == null ? void 0 : l.style, "::", 0)) {
|
3469
|
-
var
|
3486
|
+
var T = wi(l.style.slice(2));
|
3470
3487
|
if (a === "number") {
|
3471
|
-
var
|
3472
|
-
return
|
3473
|
-
val: { type:
|
3488
|
+
var p = this.parseNumberSkeletonFromString(T, l.styleLocation);
|
3489
|
+
return p.err ? p : {
|
3490
|
+
val: { type: F.number, value: n, location: y, style: p.val },
|
3474
3491
|
err: null
|
3475
3492
|
};
|
3476
3493
|
} else {
|
3477
|
-
if (
|
3478
|
-
return this.error(
|
3479
|
-
var H =
|
3480
|
-
this.locale && (H = hi(
|
3481
|
-
var
|
3482
|
-
type:
|
3494
|
+
if (T.length === 0)
|
3495
|
+
return this.error(E.EXPECT_DATE_TIME_SKELETON, y);
|
3496
|
+
var H = T;
|
3497
|
+
this.locale && (H = hi(T, this.locale));
|
3498
|
+
var c = {
|
3499
|
+
type: me.dateTime,
|
3483
3500
|
pattern: H,
|
3484
3501
|
location: l.styleLocation,
|
3485
3502
|
parsedOptions: this.shouldParseSkeletons ? ni(H) : {}
|
3486
|
-
},
|
3503
|
+
}, S = a === "date" ? F.date : F.time;
|
3487
3504
|
return {
|
3488
|
-
val: { type:
|
3505
|
+
val: { type: S, value: n, location: y, style: c },
|
3489
3506
|
err: null
|
3490
3507
|
};
|
3491
3508
|
}
|
3492
3509
|
}
|
3493
3510
|
return {
|
3494
3511
|
val: {
|
3495
|
-
type: a === "number" ?
|
3512
|
+
type: a === "number" ? F.number : a === "date" ? F.date : F.time,
|
3496
3513
|
value: n,
|
3497
|
-
location:
|
3514
|
+
location: y,
|
3498
3515
|
style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
|
3499
3516
|
},
|
3500
3517
|
err: null
|
@@ -3503,40 +3520,40 @@ var Ti = (
|
|
3503
3520
|
case "plural":
|
3504
3521
|
case "selectordinal":
|
3505
3522
|
case "select": {
|
3506
|
-
var
|
3523
|
+
var b = this.clonePosition();
|
3507
3524
|
if (this.bumpSpace(), !this.bumpIf(","))
|
3508
|
-
return this.error(
|
3525
|
+
return this.error(E.EXPECT_SELECT_ARGUMENT_OPTIONS, w(b, $e({}, b)));
|
3509
3526
|
this.bumpSpace();
|
3510
|
-
var
|
3511
|
-
if (a !== "select" &&
|
3527
|
+
var I = this.parseIdentifierIfPossible(), L = 0;
|
3528
|
+
if (a !== "select" && I.value === "offset") {
|
3512
3529
|
if (!this.bumpIf(":"))
|
3513
|
-
return this.error(
|
3530
|
+
return this.error(E.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w(this.clonePosition(), this.clonePosition()));
|
3514
3531
|
this.bumpSpace();
|
3515
|
-
var
|
3516
|
-
if (
|
3517
|
-
return
|
3518
|
-
this.bumpSpace(),
|
3532
|
+
var p = this.tryParseDecimalInteger(E.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
3533
|
+
if (p.err)
|
3534
|
+
return p;
|
3535
|
+
this.bumpSpace(), I = this.parseIdentifierIfPossible(), L = p.val;
|
3519
3536
|
}
|
3520
|
-
var
|
3521
|
-
if (
|
3522
|
-
return
|
3523
|
-
var
|
3524
|
-
if (
|
3525
|
-
return
|
3526
|
-
var A =
|
3537
|
+
var R = this.tryParsePluralOrSelectOptions(t, a, r, I);
|
3538
|
+
if (R.err)
|
3539
|
+
return R;
|
3540
|
+
var v = this.tryParseArgumentClose(i);
|
3541
|
+
if (v.err)
|
3542
|
+
return v;
|
3543
|
+
var A = w(i, this.clonePosition());
|
3527
3544
|
return a === "select" ? {
|
3528
3545
|
val: {
|
3529
|
-
type:
|
3546
|
+
type: F.select,
|
3530
3547
|
value: n,
|
3531
|
-
options: zt(
|
3548
|
+
options: zt(R.val),
|
3532
3549
|
location: A
|
3533
3550
|
},
|
3534
3551
|
err: null
|
3535
3552
|
} : {
|
3536
3553
|
val: {
|
3537
|
-
type:
|
3554
|
+
type: F.plural,
|
3538
3555
|
value: n,
|
3539
|
-
options: zt(
|
3556
|
+
options: zt(R.val),
|
3540
3557
|
offset: L,
|
3541
3558
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
3542
3559
|
location: A
|
@@ -3545,10 +3562,10 @@ var Ti = (
|
|
3545
3562
|
};
|
3546
3563
|
}
|
3547
3564
|
default:
|
3548
|
-
return this.error(
|
3565
|
+
return this.error(E.INVALID_ARGUMENT_TYPE, w(s, u));
|
3549
3566
|
}
|
3550
3567
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
3551
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
3568
|
+
return this.isEOF() || this.char() !== 125 ? this.error(E.EXPECT_ARGUMENT_CLOSING_BRACE, w(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
3552
3569
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
3553
3570
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
3554
3571
|
var n = this.char();
|
@@ -3557,7 +3574,7 @@ var Ti = (
|
|
3557
3574
|
this.bump();
|
3558
3575
|
var i = this.clonePosition();
|
3559
3576
|
if (!this.bumpUntil("'"))
|
3560
|
-
return this.error(
|
3577
|
+
return this.error(E.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, w(i, this.clonePosition()));
|
3561
3578
|
this.bump();
|
3562
3579
|
break;
|
3563
3580
|
}
|
@@ -3589,11 +3606,11 @@ var Ti = (
|
|
3589
3606
|
try {
|
3590
3607
|
n = oi(t);
|
3591
3608
|
} catch (i) {
|
3592
|
-
return this.error(
|
3609
|
+
return this.error(E.INVALID_NUMBER_SKELETON, r);
|
3593
3610
|
}
|
3594
3611
|
return {
|
3595
3612
|
val: {
|
3596
|
-
type:
|
3613
|
+
type: me.number,
|
3597
3614
|
tokens: n,
|
3598
3615
|
location: r,
|
3599
3616
|
parsedOptions: this.shouldParseSkeletons ? ui(n) : {}
|
@@ -3603,36 +3620,36 @@ var Ti = (
|
|
3603
3620
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
3604
3621
|
for (var o, s = !1, a = [], u = /* @__PURE__ */ new Set(), l = i.value, h = i.location; ; ) {
|
3605
3622
|
if (l.length === 0) {
|
3606
|
-
var
|
3623
|
+
var p = this.clonePosition();
|
3607
3624
|
if (r !== "select" && this.bumpIf("=")) {
|
3608
|
-
var
|
3609
|
-
if (
|
3610
|
-
return
|
3611
|
-
h =
|
3625
|
+
var c = this.tryParseDecimalInteger(E.EXPECT_PLURAL_ARGUMENT_SELECTOR, E.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
3626
|
+
if (c.err)
|
3627
|
+
return c;
|
3628
|
+
h = w(p, this.clonePosition()), l = this.message.slice(p.offset, this.offset());
|
3612
3629
|
} else
|
3613
3630
|
break;
|
3614
3631
|
}
|
3615
3632
|
if (u.has(l))
|
3616
|
-
return this.error(r === "select" ?
|
3633
|
+
return this.error(r === "select" ? E.DUPLICATE_SELECT_ARGUMENT_SELECTOR : E.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
3617
3634
|
l === "other" && (s = !0), this.bumpSpace();
|
3618
|
-
var
|
3635
|
+
var m = this.clonePosition();
|
3619
3636
|
if (!this.bumpIf("{"))
|
3620
|
-
return this.error(r === "select" ?
|
3621
|
-
var
|
3622
|
-
if (
|
3623
|
-
return
|
3624
|
-
var
|
3625
|
-
if (
|
3626
|
-
return
|
3637
|
+
return this.error(r === "select" ? E.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : E.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, w(this.clonePosition(), this.clonePosition()));
|
3638
|
+
var v = this.parseMessage(t + 1, r, n);
|
3639
|
+
if (v.err)
|
3640
|
+
return v;
|
3641
|
+
var y = this.tryParseArgumentClose(m);
|
3642
|
+
if (y.err)
|
3643
|
+
return y;
|
3627
3644
|
a.push([
|
3628
3645
|
l,
|
3629
3646
|
{
|
3630
|
-
value:
|
3631
|
-
location:
|
3647
|
+
value: v.val,
|
3648
|
+
location: w(m, this.clonePosition())
|
3632
3649
|
}
|
3633
3650
|
]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, h = o.location;
|
3634
3651
|
}
|
3635
|
-
return a.length === 0 ? this.error(r === "select" ?
|
3652
|
+
return a.length === 0 ? this.error(r === "select" ? E.EXPECT_SELECT_ARGUMENT_SELECTOR : E.EXPECT_PLURAL_ARGUMENT_SELECTOR, w(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(E.MISSING_OTHER_CLAUSE, w(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
3636
3653
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
3637
3654
|
var n = 1, i = this.clonePosition();
|
3638
3655
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
@@ -3643,7 +3660,7 @@ var Ti = (
|
|
3643
3660
|
else
|
3644
3661
|
break;
|
3645
3662
|
}
|
3646
|
-
var u =
|
3663
|
+
var u = w(i, this.clonePosition());
|
3647
3664
|
return o ? (s *= n, xi(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
|
3648
3665
|
}, e.prototype.offset = function() {
|
3649
3666
|
return this.position.offset;
|
@@ -3700,7 +3717,7 @@ var Ti = (
|
|
3700
3717
|
break;
|
3701
3718
|
}
|
3702
3719
|
}, e.prototype.bumpSpace = function() {
|
3703
|
-
for (; !this.isEOF() &&
|
3720
|
+
for (; !this.isEOF() && Lr(this.char()); )
|
3704
3721
|
this.bump();
|
3705
3722
|
}, e.prototype.peek = function() {
|
3706
3723
|
if (this.isEOF())
|
@@ -3710,47 +3727,47 @@ var Ti = (
|
|
3710
3727
|
}, e;
|
3711
3728
|
}()
|
3712
3729
|
);
|
3713
|
-
function
|
3730
|
+
function gt(e) {
|
3714
3731
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
3715
3732
|
}
|
3716
3733
|
function Hi(e) {
|
3717
|
-
return
|
3734
|
+
return gt(e) || e === 47;
|
3718
3735
|
}
|
3719
3736
|
function Ai(e) {
|
3720
3737
|
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;
|
3721
3738
|
}
|
3722
|
-
function
|
3739
|
+
function Lr(e) {
|
3723
3740
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
3724
3741
|
}
|
3725
3742
|
function Pi(e) {
|
3726
3743
|
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;
|
3727
3744
|
}
|
3728
|
-
function
|
3745
|
+
function yt(e) {
|
3729
3746
|
e.forEach(function(t) {
|
3730
|
-
if (delete t.location,
|
3747
|
+
if (delete t.location, Sr(t) || Tr(t))
|
3731
3748
|
for (var r in t.options)
|
3732
|
-
delete t.options[r].location,
|
3749
|
+
delete t.options[r].location, yt(t.options[r].value);
|
3733
3750
|
else
|
3734
|
-
|
3751
|
+
xr(t) && Ar(t.style) || (Er(t) || wr(t)) && pt(t.style) ? delete t.style.location : Hr(t) && yt(t.children);
|
3735
3752
|
});
|
3736
3753
|
}
|
3737
3754
|
function Ci(e, t) {
|
3738
|
-
t === void 0 && (t = {}), t =
|
3755
|
+
t === void 0 && (t = {}), t = $e({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
3739
3756
|
var r = new Ti(e, t).parse();
|
3740
3757
|
if (r.err) {
|
3741
|
-
var n = SyntaxError(
|
3758
|
+
var n = SyntaxError(E[r.err.kind]);
|
3742
3759
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
3743
3760
|
}
|
3744
|
-
return t != null && t.captureLocation ||
|
3761
|
+
return t != null && t.captureLocation || yt(r.val), r.val;
|
3745
3762
|
}
|
3746
|
-
var
|
3763
|
+
var be;
|
3747
3764
|
(function(e) {
|
3748
3765
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
3749
|
-
})(
|
3750
|
-
var
|
3766
|
+
})(be || (be = {}));
|
3767
|
+
var Xe = (
|
3751
3768
|
/** @class */
|
3752
3769
|
function(e) {
|
3753
|
-
|
3770
|
+
Ve(t, e);
|
3754
3771
|
function t(r, n, i) {
|
3755
3772
|
var o = e.call(this, r) || this;
|
3756
3773
|
return o.code = n, o.originalMessage = i, o;
|
@@ -3762,48 +3779,48 @@ var Ve = (
|
|
3762
3779
|
), Jt = (
|
3763
3780
|
/** @class */
|
3764
3781
|
function(e) {
|
3765
|
-
|
3782
|
+
Ve(t, e);
|
3766
3783
|
function t(r, n, i, o) {
|
3767
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
3784
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), be.INVALID_VALUE, o) || this;
|
3768
3785
|
}
|
3769
3786
|
return t;
|
3770
|
-
}(
|
3787
|
+
}(Xe)
|
3771
3788
|
), Fi = (
|
3772
3789
|
/** @class */
|
3773
3790
|
function(e) {
|
3774
|
-
|
3791
|
+
Ve(t, e);
|
3775
3792
|
function t(r, n, i) {
|
3776
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
3793
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), be.INVALID_VALUE, i) || this;
|
3777
3794
|
}
|
3778
3795
|
return t;
|
3779
|
-
}(
|
3796
|
+
}(Xe)
|
3780
3797
|
), Bi = (
|
3781
3798
|
/** @class */
|
3782
3799
|
function(e) {
|
3783
|
-
|
3800
|
+
Ve(t, e);
|
3784
3801
|
function t(r, n) {
|
3785
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
3802
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), be.MISSING_VALUE, n) || this;
|
3786
3803
|
}
|
3787
3804
|
return t;
|
3788
|
-
}(
|
3789
|
-
),
|
3805
|
+
}(Xe)
|
3806
|
+
), D;
|
3790
3807
|
(function(e) {
|
3791
3808
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
3792
|
-
})(
|
3793
|
-
function
|
3809
|
+
})(D || (D = {}));
|
3810
|
+
function Oi(e) {
|
3794
3811
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
3795
3812
|
var n = t[t.length - 1];
|
3796
|
-
return !n || n.type !==
|
3813
|
+
return !n || n.type !== D.literal || r.type !== D.literal ? t.push(r) : n.value += r.value, t;
|
3797
3814
|
}, []);
|
3798
3815
|
}
|
3799
|
-
function
|
3816
|
+
function Ii(e) {
|
3800
3817
|
return typeof e == "function";
|
3801
3818
|
}
|
3802
3819
|
function Me(e, t, r, n, i, o, s) {
|
3803
3820
|
if (e.length === 1 && kt(e[0]))
|
3804
3821
|
return [
|
3805
3822
|
{
|
3806
|
-
type:
|
3823
|
+
type: D.literal,
|
3807
3824
|
value: e[0].value
|
3808
3825
|
}
|
3809
3826
|
];
|
@@ -3811,103 +3828,103 @@ function Me(e, t, r, n, i, o, s) {
|
|
3811
3828
|
var h = l[u];
|
3812
3829
|
if (kt(h)) {
|
3813
3830
|
a.push({
|
3814
|
-
type:
|
3831
|
+
type: D.literal,
|
3815
3832
|
value: h.value
|
3816
3833
|
});
|
3817
3834
|
continue;
|
3818
3835
|
}
|
3819
3836
|
if (ti(h)) {
|
3820
3837
|
typeof o == "number" && a.push({
|
3821
|
-
type:
|
3838
|
+
type: D.literal,
|
3822
3839
|
value: r.getNumberFormat(t).format(o)
|
3823
3840
|
});
|
3824
3841
|
continue;
|
3825
3842
|
}
|
3826
|
-
var
|
3827
|
-
if (!(i &&
|
3828
|
-
throw new Bi(
|
3829
|
-
var
|
3843
|
+
var p = h.value;
|
3844
|
+
if (!(i && p in i))
|
3845
|
+
throw new Bi(p, s);
|
3846
|
+
var c = i[p];
|
3830
3847
|
if (ei(h)) {
|
3831
|
-
(!
|
3832
|
-
type: typeof
|
3833
|
-
value:
|
3848
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
3849
|
+
type: typeof c == "string" ? D.literal : D.object,
|
3850
|
+
value: c
|
3834
3851
|
});
|
3835
3852
|
continue;
|
3836
3853
|
}
|
3837
|
-
if (
|
3838
|
-
var
|
3854
|
+
if (Er(h)) {
|
3855
|
+
var m = typeof h.style == "string" ? n.date[h.style] : pt(h.style) ? h.style.parsedOptions : void 0;
|
3839
3856
|
a.push({
|
3840
|
-
type:
|
3841
|
-
value: r.getDateTimeFormat(t,
|
3857
|
+
type: D.literal,
|
3858
|
+
value: r.getDateTimeFormat(t, m).format(c)
|
3842
3859
|
});
|
3843
3860
|
continue;
|
3844
3861
|
}
|
3845
|
-
if (
|
3846
|
-
var
|
3862
|
+
if (wr(h)) {
|
3863
|
+
var m = typeof h.style == "string" ? n.time[h.style] : pt(h.style) ? h.style.parsedOptions : n.time.medium;
|
3847
3864
|
a.push({
|
3848
|
-
type:
|
3849
|
-
value: r.getDateTimeFormat(t,
|
3865
|
+
type: D.literal,
|
3866
|
+
value: r.getDateTimeFormat(t, m).format(c)
|
3850
3867
|
});
|
3851
3868
|
continue;
|
3852
3869
|
}
|
3853
|
-
if (
|
3854
|
-
var
|
3855
|
-
|
3856
|
-
type:
|
3857
|
-
value: r.getNumberFormat(t,
|
3870
|
+
if (xr(h)) {
|
3871
|
+
var m = typeof h.style == "string" ? n.number[h.style] : Ar(h.style) ? h.style.parsedOptions : void 0;
|
3872
|
+
m && m.scale && (c = c * (m.scale || 1)), a.push({
|
3873
|
+
type: D.literal,
|
3874
|
+
value: r.getNumberFormat(t, m).format(c)
|
3858
3875
|
});
|
3859
3876
|
continue;
|
3860
3877
|
}
|
3861
|
-
if (
|
3862
|
-
var
|
3863
|
-
if (!
|
3864
|
-
throw new Fi(
|
3865
|
-
var H = Me(
|
3878
|
+
if (Hr(h)) {
|
3879
|
+
var v = h.children, y = h.value, T = i[y];
|
3880
|
+
if (!Ii(T))
|
3881
|
+
throw new Fi(y, "function", s);
|
3882
|
+
var H = Me(v, t, r, n, i, o), S = T(H.map(function(L) {
|
3866
3883
|
return L.value;
|
3867
3884
|
}));
|
3868
|
-
Array.isArray(
|
3885
|
+
Array.isArray(S) || (S = [S]), a.push.apply(a, S.map(function(L) {
|
3869
3886
|
return {
|
3870
|
-
type: typeof L == "string" ?
|
3887
|
+
type: typeof L == "string" ? D.literal : D.object,
|
3871
3888
|
value: L
|
3872
3889
|
};
|
3873
3890
|
}));
|
3874
3891
|
}
|
3875
|
-
if (
|
3876
|
-
var
|
3877
|
-
if (!
|
3878
|
-
throw new Jt(h.value,
|
3879
|
-
a.push.apply(a, Me(
|
3892
|
+
if (Sr(h)) {
|
3893
|
+
var b = h.options[c] || h.options.other;
|
3894
|
+
if (!b)
|
3895
|
+
throw new Jt(h.value, c, Object.keys(h.options), s);
|
3896
|
+
a.push.apply(a, Me(b.value, t, r, n, i));
|
3880
3897
|
continue;
|
3881
3898
|
}
|
3882
|
-
if (
|
3883
|
-
var
|
3884
|
-
if (!
|
3899
|
+
if (Tr(h)) {
|
3900
|
+
var b = h.options["=".concat(c)];
|
3901
|
+
if (!b) {
|
3885
3902
|
if (!Intl.PluralRules)
|
3886
|
-
throw new
|
3903
|
+
throw new Xe(`Intl.PluralRules is not available in this environment.
|
3887
3904
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
3888
|
-
`,
|
3889
|
-
var
|
3890
|
-
|
3905
|
+
`, be.MISSING_INTL_API, s);
|
3906
|
+
var I = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
3907
|
+
b = h.options[I] || h.options.other;
|
3891
3908
|
}
|
3892
|
-
if (!
|
3893
|
-
throw new Jt(h.value,
|
3894
|
-
a.push.apply(a, Me(
|
3909
|
+
if (!b)
|
3910
|
+
throw new Jt(h.value, c, Object.keys(h.options), s);
|
3911
|
+
a.push.apply(a, Me(b.value, t, r, n, i, c - (h.offset || 0)));
|
3895
3912
|
continue;
|
3896
3913
|
}
|
3897
3914
|
}
|
3898
|
-
return
|
3915
|
+
return Oi(a);
|
3899
3916
|
}
|
3900
3917
|
function Li(e, t) {
|
3901
|
-
return t ?
|
3902
|
-
return r[n] =
|
3918
|
+
return t ? W(W(W({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
3919
|
+
return r[n] = W(W({}, e[n]), t[n] || {}), r;
|
3903
3920
|
}, {})) : e;
|
3904
3921
|
}
|
3905
3922
|
function Ni(e, t) {
|
3906
3923
|
return t ? Object.keys(e).reduce(function(r, n) {
|
3907
3924
|
return r[n] = Li(e[n], t[n]), r;
|
3908
|
-
},
|
3925
|
+
}, W({}, e)) : e;
|
3909
3926
|
}
|
3910
|
-
function
|
3927
|
+
function tt(e) {
|
3911
3928
|
return {
|
3912
3929
|
create: function() {
|
3913
3930
|
return {
|
@@ -3927,29 +3944,29 @@ function Mi(e) {
|
|
3927
3944
|
dateTime: {},
|
3928
3945
|
pluralRules: {}
|
3929
3946
|
}), {
|
3930
|
-
getNumberFormat:
|
3947
|
+
getNumberFormat: Ye(function() {
|
3931
3948
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3932
3949
|
r[n] = arguments[n];
|
3933
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
3950
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, qe([void 0], r, !1)))();
|
3934
3951
|
}, {
|
3935
|
-
cache:
|
3936
|
-
strategy:
|
3952
|
+
cache: tt(e.number),
|
3953
|
+
strategy: Ke.variadic
|
3937
3954
|
}),
|
3938
|
-
getDateTimeFormat:
|
3955
|
+
getDateTimeFormat: Ye(function() {
|
3939
3956
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3940
3957
|
r[n] = arguments[n];
|
3941
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
3958
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, qe([void 0], r, !1)))();
|
3942
3959
|
}, {
|
3943
|
-
cache:
|
3944
|
-
strategy:
|
3960
|
+
cache: tt(e.dateTime),
|
3961
|
+
strategy: Ke.variadic
|
3945
3962
|
}),
|
3946
|
-
getPluralRules:
|
3963
|
+
getPluralRules: Ye(function() {
|
3947
3964
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
3948
3965
|
r[n] = arguments[n];
|
3949
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
3966
|
+
return new ((t = Intl.PluralRules).bind.apply(t, qe([void 0], r, !1)))();
|
3950
3967
|
}, {
|
3951
|
-
cache:
|
3952
|
-
strategy:
|
3968
|
+
cache: tt(e.pluralRules),
|
3969
|
+
strategy: Ke.variadic
|
3953
3970
|
})
|
3954
3971
|
};
|
3955
3972
|
}
|
@@ -3967,8 +3984,8 @@ var Ri = (
|
|
3967
3984
|
var l = o.formatToParts(u);
|
3968
3985
|
if (l.length === 1)
|
3969
3986
|
return l[0].value;
|
3970
|
-
var h = l.reduce(function(
|
3971
|
-
return !
|
3987
|
+
var h = l.reduce(function(p, c) {
|
3988
|
+
return !p.length || c.type !== D.literal || typeof p[p.length - 1] != "string" ? p.push(c.value) : p[p.length - 1] += c.value, p;
|
3972
3989
|
}, []);
|
3973
3990
|
return h.length <= 1 ? h[0] || "" : h;
|
3974
3991
|
}, this.formatToParts = function(u) {
|
@@ -3985,8 +4002,8 @@ var Ri = (
|
|
3985
4002
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
3986
4003
|
var s = i || {};
|
3987
4004
|
s.formatters;
|
3988
|
-
var a =
|
3989
|
-
this.ast = e.__parse(t,
|
4005
|
+
var a = Wn(s, ["formatters"]);
|
4006
|
+
this.ast = e.__parse(t, W(W({}, a), { locale: this.resolvedLocale }));
|
3990
4007
|
} else
|
3991
4008
|
this.ast = t;
|
3992
4009
|
if (!Array.isArray(this.ast))
|
@@ -4086,90 +4103,90 @@ function Di(e, t) {
|
|
4086
4103
|
n = void 0;
|
4087
4104
|
return n;
|
4088
4105
|
}
|
4089
|
-
const
|
4106
|
+
const q = {}, $i = (e, t, r) => r && (t in q || (q[t] = {}), e in q[t] || (q[t][e] = r), r), Nr = (e, t) => {
|
4090
4107
|
if (t == null)
|
4091
4108
|
return;
|
4092
|
-
if (t in
|
4093
|
-
return
|
4094
|
-
const r =
|
4109
|
+
if (t in q && e in q[t])
|
4110
|
+
return q[t][e];
|
4111
|
+
const r = We(t);
|
4095
4112
|
for (let n = 0; n < r.length; n++) {
|
4096
4113
|
const i = r[n], o = Gi(i, e);
|
4097
4114
|
if (o)
|
4098
|
-
return
|
4115
|
+
return $i(e, t, o);
|
4099
4116
|
}
|
4100
4117
|
};
|
4101
4118
|
let Et;
|
4102
|
-
const
|
4103
|
-
function
|
4119
|
+
const ve = je({});
|
4120
|
+
function Ui(e) {
|
4104
4121
|
return Et[e] || null;
|
4105
4122
|
}
|
4106
|
-
function
|
4123
|
+
function Mr(e) {
|
4107
4124
|
return e in Et;
|
4108
4125
|
}
|
4109
4126
|
function Gi(e, t) {
|
4110
|
-
if (!
|
4127
|
+
if (!Mr(e))
|
4111
4128
|
return null;
|
4112
|
-
const r =
|
4129
|
+
const r = Ui(e);
|
4113
4130
|
return Di(r, t);
|
4114
4131
|
}
|
4115
4132
|
function ki(e) {
|
4116
4133
|
if (e == null)
|
4117
4134
|
return;
|
4118
|
-
const t =
|
4135
|
+
const t = We(e);
|
4119
4136
|
for (let r = 0; r < t.length; r++) {
|
4120
4137
|
const n = t[r];
|
4121
|
-
if (
|
4138
|
+
if (Mr(n))
|
4122
4139
|
return n;
|
4123
4140
|
}
|
4124
4141
|
}
|
4125
|
-
function
|
4126
|
-
delete
|
4142
|
+
function Rr(e, ...t) {
|
4143
|
+
delete q[e], ve.update((r) => (r[e] = Xn.all([r[e] || {}, ...t]), r));
|
4127
4144
|
}
|
4128
|
-
|
4129
|
-
[
|
4145
|
+
ye(
|
4146
|
+
[ve],
|
4130
4147
|
([e]) => Object.keys(e)
|
4131
4148
|
);
|
4132
|
-
|
4149
|
+
ve.subscribe((e) => Et = e);
|
4133
4150
|
const Re = {};
|
4134
4151
|
function ji(e, t) {
|
4135
4152
|
Re[e].delete(t), Re[e].size === 0 && delete Re[e];
|
4136
4153
|
}
|
4137
|
-
function
|
4154
|
+
function Dr(e) {
|
4138
4155
|
return Re[e];
|
4139
4156
|
}
|
4140
4157
|
function Vi(e) {
|
4141
|
-
return
|
4142
|
-
const r =
|
4158
|
+
return We(e).map((t) => {
|
4159
|
+
const r = Dr(t);
|
4143
4160
|
return [t, r ? [...r] : []];
|
4144
4161
|
}).filter(([, t]) => t.length > 0);
|
4145
4162
|
}
|
4146
|
-
function
|
4147
|
-
return e == null ? !1 :
|
4163
|
+
function vt(e) {
|
4164
|
+
return e == null ? !1 : We(e).some(
|
4148
4165
|
(t) => {
|
4149
4166
|
var r;
|
4150
|
-
return (r =
|
4167
|
+
return (r = Dr(t)) == null ? void 0 : r.size;
|
4151
4168
|
}
|
4152
4169
|
);
|
4153
4170
|
}
|
4154
4171
|
function Xi(e, t) {
|
4155
4172
|
return Promise.all(
|
4156
4173
|
t.map((n) => (ji(e, n), n().then((i) => i.default || i)))
|
4157
|
-
).then((n) =>
|
4174
|
+
).then((n) => Rr(e, ...n));
|
4158
4175
|
}
|
4159
|
-
const
|
4176
|
+
const xe = {};
|
4160
4177
|
function $r(e) {
|
4161
|
-
if (!
|
4162
|
-
return e in
|
4178
|
+
if (!vt(e))
|
4179
|
+
return e in xe ? xe[e] : Promise.resolve();
|
4163
4180
|
const t = Vi(e);
|
4164
|
-
return
|
4181
|
+
return xe[e] = Promise.all(
|
4165
4182
|
t.map(
|
4166
4183
|
([r, n]) => Xi(r, n)
|
4167
4184
|
)
|
4168
4185
|
).then(() => {
|
4169
|
-
if (
|
4186
|
+
if (vt(e))
|
4170
4187
|
return $r(e);
|
4171
|
-
delete
|
4172
|
-
}),
|
4188
|
+
delete xe[e];
|
4189
|
+
}), xe[e];
|
4173
4190
|
}
|
4174
4191
|
const Wi = {
|
4175
4192
|
number: {
|
@@ -4208,10 +4225,10 @@ const Wi = {
|
|
4208
4225
|
handleMissingMessage: void 0,
|
4209
4226
|
ignoreTag: !0
|
4210
4227
|
}, Zi = zi;
|
4211
|
-
function
|
4228
|
+
function ge() {
|
4212
4229
|
return Zi;
|
4213
4230
|
}
|
4214
|
-
const
|
4231
|
+
const rt = je(!1);
|
4215
4232
|
var Ji = Object.defineProperty, Qi = Object.defineProperties, qi = Object.getOwnPropertyDescriptors, Qt = Object.getOwnPropertySymbols, Yi = Object.prototype.hasOwnProperty, Ki = Object.prototype.propertyIsEnumerable, qt = (e, t, r) => t in e ? Ji(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, eo = (e, t) => {
|
4216
4233
|
for (var r in t || (t = {}))
|
4217
4234
|
Yi.call(t, r) && qt(e, r, t[r]);
|
@@ -4220,113 +4237,113 @@ var Ji = Object.defineProperty, Qi = Object.defineProperties, qi = Object.getOwn
|
|
4220
4237
|
Ki.call(t, r) && qt(e, r, t[r]);
|
4221
4238
|
return e;
|
4222
4239
|
}, to = (e, t) => Qi(e, qi(t));
|
4223
|
-
let
|
4240
|
+
let _t;
|
4224
4241
|
const Ue = je(null);
|
4225
4242
|
function Yt(e) {
|
4226
4243
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
4227
4244
|
}
|
4228
|
-
function
|
4245
|
+
function We(e, t = ge().fallbackLocale) {
|
4229
4246
|
const r = Yt(e);
|
4230
4247
|
return t ? [.../* @__PURE__ */ new Set([...r, ...Yt(t)])] : r;
|
4231
4248
|
}
|
4232
|
-
function
|
4233
|
-
return
|
4249
|
+
function ie() {
|
4250
|
+
return _t != null ? _t : void 0;
|
4234
4251
|
}
|
4235
4252
|
Ue.subscribe((e) => {
|
4236
|
-
|
4253
|
+
_t = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
4237
4254
|
});
|
4238
4255
|
const ro = (e) => {
|
4239
|
-
if (e && ki(e) &&
|
4240
|
-
const { loadingDelay: t } =
|
4256
|
+
if (e && ki(e) && vt(e)) {
|
4257
|
+
const { loadingDelay: t } = ge();
|
4241
4258
|
let r;
|
4242
|
-
return typeof window != "undefined" &&
|
4243
|
-
() =>
|
4259
|
+
return typeof window != "undefined" && ie() != null && t ? r = window.setTimeout(
|
4260
|
+
() => rt.set(!0),
|
4244
4261
|
t
|
4245
|
-
) :
|
4262
|
+
) : rt.set(!0), $r(e).then(() => {
|
4246
4263
|
Ue.set(e);
|
4247
4264
|
}).finally(() => {
|
4248
|
-
clearTimeout(r),
|
4265
|
+
clearTimeout(r), rt.set(!1);
|
4249
4266
|
});
|
4250
4267
|
}
|
4251
4268
|
return Ue.set(e);
|
4252
|
-
},
|
4269
|
+
}, ne = to(eo({}, Ue), {
|
4253
4270
|
set: ro
|
4254
|
-
}),
|
4271
|
+
}), ze = (e) => {
|
4255
4272
|
const t = /* @__PURE__ */ Object.create(null);
|
4256
4273
|
return (n) => {
|
4257
4274
|
const i = JSON.stringify(n);
|
4258
4275
|
return i in t ? t[i] : t[i] = e(n);
|
4259
4276
|
};
|
4260
4277
|
};
|
4261
|
-
var no = Object.defineProperty,
|
4278
|
+
var no = Object.defineProperty, Ge = Object.getOwnPropertySymbols, Ur = Object.prototype.hasOwnProperty, Gr = Object.prototype.propertyIsEnumerable, Kt = (e, t, r) => t in e ? no(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, wt = (e, t) => {
|
4262
4279
|
for (var r in t || (t = {}))
|
4263
|
-
|
4264
|
-
if (
|
4265
|
-
for (var r of
|
4266
|
-
|
4280
|
+
Ur.call(t, r) && Kt(e, r, t[r]);
|
4281
|
+
if (Ge)
|
4282
|
+
for (var r of Ge(t))
|
4283
|
+
Gr.call(t, r) && Kt(e, r, t[r]);
|
4267
4284
|
return e;
|
4268
|
-
},
|
4285
|
+
}, _e = (e, t) => {
|
4269
4286
|
var r = {};
|
4270
4287
|
for (var n in e)
|
4271
|
-
|
4272
|
-
if (e != null &&
|
4273
|
-
for (var n of
|
4274
|
-
t.indexOf(n) < 0 &&
|
4288
|
+
Ur.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
4289
|
+
if (e != null && Ge)
|
4290
|
+
for (var n of Ge(e))
|
4291
|
+
t.indexOf(n) < 0 && Gr.call(e, n) && (r[n] = e[n]);
|
4275
4292
|
return r;
|
4276
4293
|
};
|
4277
|
-
const
|
4278
|
-
const { formats: r } =
|
4294
|
+
const He = (e, t) => {
|
4295
|
+
const { formats: r } = ge();
|
4279
4296
|
if (e in r && t in r[e])
|
4280
4297
|
return r[e][t];
|
4281
4298
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
4282
|
-
}, io =
|
4299
|
+
}, io = ze(
|
4283
4300
|
(e) => {
|
4284
|
-
var t = e, { locale: r, format: n } = t, i =
|
4301
|
+
var t = e, { locale: r, format: n } = t, i = _e(t, ["locale", "format"]);
|
4285
4302
|
if (r == null)
|
4286
4303
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
4287
|
-
return n && (i =
|
4304
|
+
return n && (i = He("number", n)), new Intl.NumberFormat(r, i);
|
4288
4305
|
}
|
4289
|
-
), oo =
|
4306
|
+
), oo = ze(
|
4290
4307
|
(e) => {
|
4291
|
-
var t = e, { locale: r, format: n } = t, i =
|
4308
|
+
var t = e, { locale: r, format: n } = t, i = _e(t, ["locale", "format"]);
|
4292
4309
|
if (r == null)
|
4293
4310
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
4294
|
-
return n ? i =
|
4311
|
+
return n ? i = He("date", n) : Object.keys(i).length === 0 && (i = He("date", "short")), new Intl.DateTimeFormat(r, i);
|
4295
4312
|
}
|
4296
|
-
), so =
|
4313
|
+
), so = ze(
|
4297
4314
|
(e) => {
|
4298
|
-
var t = e, { locale: r, format: n } = t, i =
|
4315
|
+
var t = e, { locale: r, format: n } = t, i = _e(t, ["locale", "format"]);
|
4299
4316
|
if (r == null)
|
4300
4317
|
throw new Error(
|
4301
4318
|
'[svelte-i18n] A "locale" must be set to format time values'
|
4302
4319
|
);
|
4303
|
-
return n ? i =
|
4320
|
+
return n ? i = He("time", n) : Object.keys(i).length === 0 && (i = He("time", "short")), new Intl.DateTimeFormat(r, i);
|
4304
4321
|
}
|
4305
4322
|
), ao = (e = {}) => {
|
4306
4323
|
var t = e, {
|
4307
|
-
locale: r =
|
4308
|
-
} = t, n =
|
4324
|
+
locale: r = ie()
|
4325
|
+
} = t, n = _e(t, [
|
4309
4326
|
"locale"
|
4310
4327
|
]);
|
4311
4328
|
return io(wt({ locale: r }, n));
|
4312
4329
|
}, lo = (e = {}) => {
|
4313
4330
|
var t = e, {
|
4314
|
-
locale: r =
|
4315
|
-
} = t, n =
|
4331
|
+
locale: r = ie()
|
4332
|
+
} = t, n = _e(t, [
|
4316
4333
|
"locale"
|
4317
4334
|
]);
|
4318
4335
|
return oo(wt({ locale: r }, n));
|
4319
4336
|
}, uo = (e = {}) => {
|
4320
4337
|
var t = e, {
|
4321
|
-
locale: r =
|
4322
|
-
} = t, n =
|
4338
|
+
locale: r = ie()
|
4339
|
+
} = t, n = _e(t, [
|
4323
4340
|
"locale"
|
4324
4341
|
]);
|
4325
4342
|
return so(wt({ locale: r }, n));
|
4326
|
-
}, ho =
|
4343
|
+
}, ho = ze(
|
4327
4344
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
4328
|
-
(e, t =
|
4329
|
-
ignoreTag:
|
4345
|
+
(e, t = ie()) => new Ri(e, t, ge().formats, {
|
4346
|
+
ignoreTag: ge().ignoreTag
|
4330
4347
|
})
|
4331
4348
|
), co = (e, t = {}) => {
|
4332
4349
|
var r, n, i, o;
|
@@ -4334,40 +4351,40 @@ const Pe = (e, t) => {
|
|
4334
4351
|
typeof e == "object" && (s = e, e = s.id);
|
4335
4352
|
const {
|
4336
4353
|
values: a,
|
4337
|
-
locale: u =
|
4354
|
+
locale: u = ie(),
|
4338
4355
|
default: l
|
4339
4356
|
} = s;
|
4340
4357
|
if (u == null)
|
4341
4358
|
throw new Error(
|
4342
4359
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
4343
4360
|
);
|
4344
|
-
let h =
|
4361
|
+
let h = Nr(e, u);
|
4345
4362
|
if (!h)
|
4346
|
-
h = (o = (i = (n = (r =
|
4363
|
+
h = (o = (i = (n = (r = ge()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
4347
4364
|
else if (typeof h != "string")
|
4348
4365
|
return console.warn(
|
4349
4366
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
4350
4367
|
), h;
|
4351
4368
|
if (!a)
|
4352
4369
|
return h;
|
4353
|
-
let
|
4370
|
+
let p = h;
|
4354
4371
|
try {
|
4355
|
-
|
4356
|
-
} catch (
|
4357
|
-
|
4372
|
+
p = ho(h, u).format(a);
|
4373
|
+
} catch (c) {
|
4374
|
+
c instanceof Error && console.warn(
|
4358
4375
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
4359
|
-
|
4376
|
+
c.message
|
4360
4377
|
);
|
4361
4378
|
}
|
4362
|
-
return
|
4363
|
-
}, fo = (e, t) => uo(t).format(e), po = (e, t) => lo(t).format(e), mo = (e, t) => ao(t).format(e), bo = (e, t =
|
4364
|
-
|
4365
|
-
|
4366
|
-
|
4367
|
-
|
4368
|
-
window.emWidgets = { topic:
|
4379
|
+
return p;
|
4380
|
+
}, fo = (e, t) => uo(t).format(e), po = (e, t) => lo(t).format(e), mo = (e, t) => ao(t).format(e), bo = (e, t = ie()) => Nr(e, t), go = ye([ne, ve], () => co);
|
4381
|
+
ye([ne], () => fo);
|
4382
|
+
ye([ne], () => po);
|
4383
|
+
ye([ne], () => mo);
|
4384
|
+
ye([ne, ve], () => bo);
|
4385
|
+
window.emWidgets = { topic: Pn };
|
4369
4386
|
const yo = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)), vo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
4370
|
-
function
|
4387
|
+
function ko(e, t) {
|
4371
4388
|
const r = window.navigator.userAgent;
|
4372
4389
|
return yo(r) ? t = e.filter((n) => {
|
4373
4390
|
if (n.gameModel && (n.gameModel.platform.includes("iPad") || n.gameModel.platform.includes("iPhone") || n.gameModel.platform.includes("Android")))
|
@@ -4401,12 +4418,12 @@ function Eo(e, t, r) {
|
|
4401
4418
|
}
|
4402
4419
|
}
|
4403
4420
|
function wo({ withLocale: e, translations: t }) {
|
4404
|
-
|
4405
|
-
r == null && (
|
4421
|
+
ne.subscribe((r) => {
|
4422
|
+
r == null && (ve.set(t), ne.set(e));
|
4406
4423
|
});
|
4407
4424
|
}
|
4408
4425
|
function er(e, t) {
|
4409
|
-
|
4426
|
+
Rr(e, t);
|
4410
4427
|
}
|
4411
4428
|
const tr = {
|
4412
4429
|
en: {
|
@@ -4519,7 +4536,7 @@ const tr = {
|
|
4519
4536
|
}
|
4520
4537
|
};
|
4521
4538
|
function So(e) {
|
4522
|
-
|
4539
|
+
qr(e, "svelte-15yj9h0", ':root{--min-height:50px}.SearchLoading{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.FilterContainer{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));position:relative;z-index:17}.FilterSelector{background-color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;max-width:fit-content;cursor:pointer}.FilterSelector.FilterSelectorOpen{border-radius:5px 5px 0 0}.FilterMainArea{display:flex;align-items:center}.FilterMainArea svg{margin-right:16px}.FilterName{font-size:11px;line-height:12px;color:var(--emw--color-gray-100, #E6E6E6);text-transform:uppercase}.FilterTextContainer{display:flex;flex-direction:column}.FilterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.FilterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:48px;margin-bottom:40px;overflow:hidden;margin:0}.FilterDropdownContainer.FilterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:20px}.FilterDropdown{width:100%;max-height:300px;display:flex;flex-direction:column;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none}.FilterDropdown::-webkit-scrollbar{display:none}.FilterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;padding:0 15px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.FilterItem input{cursor:pointer;margin-right:10px}.FilterItem:hover input~.FiltersCheckmark{background-color:transparent;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.FilterItem input:checked~.FiltersCheckmark{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.FilterItem .FiltersCheckmark{transition:all 0.05s ease-in;margin-right:15px}.FilterItem .FiltersCheckmark:after{content:"";position:absolute;left:9px;display:none}.FilterItem input:checked~.FiltersCheckmark:after{display:block}.FilterItem .FiltersCheckmark:after{left:8px;top:4px;width:5px;height:10px;border:1px solid solid var(--emw--color-white, #FFFFFF);border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0}.FilterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.FilterLabel .FiltersCheckmark{border-radius:8px;position:relative;height:22px;width:22px;min-width:22px;background-color:transparent;border:1px solid var(--emw--color-white, #FFFFFF)}.FilterLabel .FilterItemLabel{width:100%;display:flex;justify-content:space-between;overflow:hidden}.FilterLabel .FilterItemLabel span.VendorName{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.FilterItemWithLogos label{height:70px;display:flex;justify-content:space-evenly;align-items:center}.FilterItemWithLogos label img{width:70px}.FilterLabel input:checked+span{font-weight:600}.FilterCounter{display:inline-flex;margin-left:10px;min-width:17px}.ClearFilters{margin:20px auto;border:0;color:#fff;background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:18px;padding:10px 50px;border-radius:5px;cursor:pointer;transition:all 0.1s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ClearFilters:disabled{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.FilterSelector{max-width:initial}.FilterDropdownContainer{width:100%;margin-bottom:20px}.FilterDropdown{margin-block-start:0;gap:14px}.FilterItemWithLogos label{justify-content:center}.FilerContainerSplit .FilterSelector{padding:7px}.FilerContainerSplit .FilterSelector .FilterCounter{margin-left:0}.FilerContainerSplit .FilterMainArea svg{margin:0 10px}.FilerContainerSplit .FilterDropdown{padding:0 5px;box-sizing:border-box}.FilerContainerSplit .FilterDropdownContainer{top:42px}.FilerContainerSplit .ClearFilters{padding:8px 20px;font-size:15px}.FilterLabel .FiltersCheckmark{margin-right:15px}.FilterItem.FilterItemWithLogos{display:flex;align-items:center;justify-content:center}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0 20px 0 0}.FilerContainerSplit .FilterItem label{padding:0;width:calc(100% - 10px);font-size:12px}.FilterItem label>*{pointer-events:none}}@media(max-width: 480px){.FilerContainerSplit .FilterSelector{min-height:var(--min-height)}.FilerContainerSplit .FilterDropdownContainer{top:var(--min-height)}.FilterName,.FilterValueContainer{overflow:hidden;max-width:100%;font-size:12px;text-overflow:ellipsis;width:fit-content}.FilterLabel .FiltersCheckmark{margin-right:5px}.FilterItem label{padding:0;font-size:11px;overflow:hidden;text-overflow:ellipsis;width:unset}.FilterItemLabel span:first-child{display:inline-block;overflow:hidden;text-overflow:ellipsis;max-width:60%}}');
|
4523
4540
|
}
|
4524
4541
|
function rr(e, t, r) {
|
4525
4542
|
const n = e.slice();
|
@@ -4529,45 +4546,45 @@ function To(e) {
|
|
4529
4546
|
let t, r, n, i, o, s, a, u, l = (
|
4530
4547
|
/*$_*/
|
4531
4548
|
e[11]("filterby") + ""
|
4532
|
-
), h,
|
4549
|
+
), h, p, c, m, v = (
|
4533
4550
|
/*$_*/
|
4534
4551
|
e[11]("providers") + ""
|
4535
|
-
),
|
4552
|
+
), y, T, H, S, b, I, L, R, A, P, N, Z, V, ee = (
|
4536
4553
|
/*$_*/
|
4537
4554
|
e[11]("clear") + ""
|
4538
|
-
),
|
4539
|
-
function Ce(
|
4555
|
+
), oe, te, se, re, ae, Pe;
|
4556
|
+
function Ce(d, B) {
|
4540
4557
|
return (
|
4541
4558
|
/*fullSelection*/
|
4542
|
-
|
4559
|
+
d[7] ? Po : Ao
|
4543
4560
|
);
|
4544
4561
|
}
|
4545
|
-
let
|
4562
|
+
let le = Ce(e), U = le(e), Q = It(
|
4546
4563
|
/*vendorArray*/
|
4547
4564
|
e[5]
|
4548
|
-
),
|
4549
|
-
for (let
|
4550
|
-
|
4565
|
+
), f = [];
|
4566
|
+
for (let d = 0; d < Q.length; d += 1)
|
4567
|
+
f[d] = nr(rr(e, Q, d));
|
4551
4568
|
return {
|
4552
4569
|
c() {
|
4553
|
-
t = C("div"), r = C("div"), n = C("div"), i =
|
4554
|
-
for (let
|
4555
|
-
|
4556
|
-
|
4557
|
-
(e[4] ? "TriangleActive" : "")),
|
4558
|
-
(e[4] ? "FilterSelectorOpen" : "")),
|
4570
|
+
t = C("div"), r = C("div"), n = C("div"), i = Ee("svg"), o = Ee("path"), s = X(), a = C("div"), u = C("span"), h = G(l), p = X(), c = C("div"), m = C("span"), y = G(v), T = X(), U.c(), H = X(), S = C("span"), b = Ee("svg"), I = Ee("path"), A = X(), P = C("div"), N = C("ul");
|
4571
|
+
for (let d = 0; d < f.length; d += 1)
|
4572
|
+
f[d].c();
|
4573
|
+
Z = X(), V = C("button"), oe = G(ee), g(o, "id", "noun_filter_736223"), g(o, "d", "M12.2,22.2a1.018,1.018,0,0,1-.391-.091.939.939,0,0,1-.533-.857v-6.2L5.267,8.9A.95.95,0,0,1,5,8.225V7.149A.93.93,0,0,1,5.924,6.2H20.076A.93.93,0,0,1,21,7.149V8.225a.95.95,0,0,1-.267.675l-6.009,6.148V19.81a.981.981,0,0,1-.32.712l-1.6,1.423A.9.9,0,0,1,12.2,22.2ZM6,8.189,12,14.355a.95.95,0,0,1,.267.675v6.039l1.44-1.277v-4.78a.95.95,0,0,1,.267-.675L19.987,8.17V7.2H6Z"), g(o, "transform", "translate(-5 -6.2)"), g(o, "fill", "#fff"), g(i, "xmlns", "http://www.w3.org/2000/svg"), g(i, "width", "16"), g(i, "height", "16"), g(i, "viewBox", "0 0 16 16"), g(u, "class", "FilterName"), g(c, "class", "FilterValueContainer"), g(a, "class", "FilterTextContainer"), g(n, "class", "FilterMainArea"), g(I, "id", "arrow"), g(I, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), g(I, "transform", "translate(-274.511 -441.088)"), g(I, "fill", "#d1d1d1"), g(b, "xmlns", "http://www.w3.org/2000/svg"), g(b, "width", "14"), g(b, "height", "6.835"), g(b, "viewBox", "0 0 14 6.835"), g(S, "class", L = "TriangleInactive " + /*isFilterActive*/
|
4574
|
+
(e[4] ? "TriangleActive" : "")), g(r, "class", R = "FilterSelector " + /*isFilterActive*/
|
4575
|
+
(e[4] ? "FilterSelectorOpen" : "")), g(N, "class", "FilterDropdown"), g(V, "class", "ClearFilters"), V.disabled = te = /*fullSelection*/
|
4559
4576
|
e[7] && /*selectedVendorArray*/
|
4560
4577
|
e[6].length != /*vendorArray*/
|
4561
|
-
e[5].length,
|
4562
|
-
(e[4] ? "FilterOpen" : "")),
|
4578
|
+
e[5].length, g(P, "class", se = "FilterDropdownContainer " + /*isFilterActive*/
|
4579
|
+
(e[4] ? "FilterOpen" : "")), g(t, "class", re = "FilterContainer " + /*addfilterselector*/
|
4563
4580
|
(e[0] == "true" && /*addsortingselector*/
|
4564
4581
|
e[1] == "true" ? "FilerContainerSplit" : ""));
|
4565
4582
|
},
|
4566
|
-
m(
|
4567
|
-
z(
|
4568
|
-
for (let
|
4569
|
-
|
4570
|
-
|
4583
|
+
m(d, B) {
|
4584
|
+
z(d, t, B), _(t, r), _(r, n), _(n, i), _(i, o), _(n, s), _(n, a), _(a, u), _(u, h), _(a, p), _(a, c), _(c, m), _(m, y), _(c, T), U.m(c, null), _(r, H), _(r, S), _(S, b), _(b, I), _(t, A), _(t, P), _(P, N);
|
4585
|
+
for (let x = 0; x < f.length; x += 1)
|
4586
|
+
f[x] && f[x].m(N, null);
|
4587
|
+
_(P, Z), _(P, V), _(V, oe), ae || (Pe = [
|
4571
4588
|
De(
|
4572
4589
|
r,
|
4573
4590
|
"click",
|
@@ -4575,52 +4592,52 @@ function To(e) {
|
|
4575
4592
|
e[24]
|
4576
4593
|
),
|
4577
4594
|
De(
|
4578
|
-
|
4595
|
+
V,
|
4579
4596
|
"click",
|
4580
4597
|
/*click_handler_2*/
|
4581
4598
|
e[27]
|
4582
4599
|
)
|
4583
|
-
],
|
4600
|
+
], ae = !0);
|
4584
4601
|
},
|
4585
|
-
p(
|
4586
|
-
if (
|
4602
|
+
p(d, B) {
|
4603
|
+
if (B[0] & /*$_*/
|
4587
4604
|
2048 && l !== (l = /*$_*/
|
4588
|
-
|
4589
|
-
2048 &&
|
4590
|
-
|
4605
|
+
d[11]("filterby") + "") && Y(h, l), B[0] & /*$_*/
|
4606
|
+
2048 && v !== (v = /*$_*/
|
4607
|
+
d[11]("providers") + "") && Y(y, v), le === (le = Ce(d)) && U ? U.p(d, B) : (U.d(1), U = le(d), U && (U.c(), U.m(c, null))), B[0] & /*isFilterActive*/
|
4591
4608
|
16 && L !== (L = "TriangleInactive " + /*isFilterActive*/
|
4592
|
-
(
|
4593
|
-
16 &&
|
4594
|
-
(
|
4609
|
+
(d[4] ? "TriangleActive" : "")) && g(S, "class", L), B[0] & /*isFilterActive*/
|
4610
|
+
16 && R !== (R = "FilterSelector " + /*isFilterActive*/
|
4611
|
+
(d[4] ? "FilterSelectorOpen" : "")) && g(r, "class", R), B[0] & /*filterbylogo, vendorArray, filterByVendors*/
|
4595
4612
|
8228) {
|
4596
|
-
|
4613
|
+
Q = It(
|
4597
4614
|
/*vendorArray*/
|
4598
|
-
|
4615
|
+
d[5]
|
4599
4616
|
);
|
4600
|
-
let
|
4601
|
-
for (
|
4602
|
-
const
|
4603
|
-
|
4617
|
+
let x;
|
4618
|
+
for (x = 0; x < Q.length; x += 1) {
|
4619
|
+
const ue = rr(d, Q, x);
|
4620
|
+
f[x] ? f[x].p(ue, B) : (f[x] = nr(ue), f[x].c(), f[x].m(N, null));
|
4604
4621
|
}
|
4605
|
-
for (;
|
4606
|
-
|
4607
|
-
|
4622
|
+
for (; x < f.length; x += 1)
|
4623
|
+
f[x].d(1);
|
4624
|
+
f.length = Q.length;
|
4608
4625
|
}
|
4609
|
-
|
4610
|
-
2048 &&
|
4611
|
-
|
4612
|
-
224 &&
|
4613
|
-
|
4614
|
-
|
4615
|
-
|
4616
|
-
16 &&
|
4617
|
-
(
|
4618
|
-
3 &&
|
4619
|
-
(
|
4620
|
-
|
4626
|
+
B[0] & /*$_*/
|
4627
|
+
2048 && ee !== (ee = /*$_*/
|
4628
|
+
d[11]("clear") + "") && Y(oe, ee), B[0] & /*fullSelection, selectedVendorArray, vendorArray*/
|
4629
|
+
224 && te !== (te = /*fullSelection*/
|
4630
|
+
d[7] && /*selectedVendorArray*/
|
4631
|
+
d[6].length != /*vendorArray*/
|
4632
|
+
d[5].length) && (V.disabled = te), B[0] & /*isFilterActive*/
|
4633
|
+
16 && se !== (se = "FilterDropdownContainer " + /*isFilterActive*/
|
4634
|
+
(d[4] ? "FilterOpen" : "")) && g(P, "class", se), B[0] & /*addfilterselector, addsortingselector*/
|
4635
|
+
3 && re !== (re = "FilterContainer " + /*addfilterselector*/
|
4636
|
+
(d[0] == "true" && /*addsortingselector*/
|
4637
|
+
d[1] == "true" ? "FilerContainerSplit" : "")) && g(t, "class", re);
|
4621
4638
|
},
|
4622
|
-
d(
|
4623
|
-
|
4639
|
+
d(d) {
|
4640
|
+
d && j(t), U.d(), en(f, d), ae = !1, K(Pe);
|
4624
4641
|
}
|
4625
4642
|
};
|
4626
4643
|
}
|
@@ -4631,18 +4648,18 @@ function Ho(e) {
|
|
4631
4648
|
), n;
|
4632
4649
|
return {
|
4633
4650
|
c() {
|
4634
|
-
t = C("p"), n =
|
4651
|
+
t = C("p"), n = G(r), g(t, "class", "SearchLoading");
|
4635
4652
|
},
|
4636
4653
|
m(i, o) {
|
4637
|
-
z(i, t, o),
|
4654
|
+
z(i, t, o), _(t, n);
|
4638
4655
|
},
|
4639
4656
|
p(i, o) {
|
4640
4657
|
o[0] & /*$_*/
|
4641
4658
|
2048 && r !== (r = /*$_*/
|
4642
|
-
i[11]("500") + "") &&
|
4659
|
+
i[11]("500") + "") && Y(n, r);
|
4643
4660
|
},
|
4644
4661
|
d(i) {
|
4645
|
-
i &&
|
4662
|
+
i && j(t);
|
4646
4663
|
}
|
4647
4664
|
};
|
4648
4665
|
}
|
@@ -4650,24 +4667,24 @@ function Ao(e) {
|
|
4650
4667
|
let t, r;
|
4651
4668
|
return {
|
4652
4669
|
c() {
|
4653
|
-
t = C("span"), r =
|
4670
|
+
t = C("span"), r = G(
|
4654
4671
|
/*selectionNumber*/
|
4655
4672
|
e[8]
|
4656
|
-
),
|
4673
|
+
), g(t, "class", "FilterCounter");
|
4657
4674
|
},
|
4658
4675
|
m(n, i) {
|
4659
|
-
z(n, t, i),
|
4676
|
+
z(n, t, i), _(t, r);
|
4660
4677
|
},
|
4661
4678
|
p(n, i) {
|
4662
4679
|
i[0] & /*selectionNumber*/
|
4663
|
-
256 &&
|
4680
|
+
256 && Y(
|
4664
4681
|
r,
|
4665
4682
|
/*selectionNumber*/
|
4666
4683
|
n[8]
|
4667
4684
|
);
|
4668
4685
|
},
|
4669
4686
|
d(n) {
|
4670
|
-
n &&
|
4687
|
+
n && j(t);
|
4671
4688
|
}
|
4672
4689
|
};
|
4673
4690
|
}
|
@@ -4678,18 +4695,18 @@ function Po(e) {
|
|
4678
4695
|
), n;
|
4679
4696
|
return {
|
4680
4697
|
c() {
|
4681
|
-
t = C("span"), n =
|
4698
|
+
t = C("span"), n = G(r), g(t, "class", "FilterCounter");
|
4682
4699
|
},
|
4683
4700
|
m(i, o) {
|
4684
|
-
z(i, t, o),
|
4701
|
+
z(i, t, o), _(t, n);
|
4685
4702
|
},
|
4686
4703
|
p(i, o) {
|
4687
4704
|
o[0] & /*$_*/
|
4688
4705
|
2048 && r !== (r = /*$_*/
|
4689
|
-
i[11]("all") + "") &&
|
4706
|
+
i[11]("all") + "") && Y(n, r);
|
4690
4707
|
},
|
4691
4708
|
d(i) {
|
4692
|
-
i &&
|
4709
|
+
i && j(t);
|
4693
4710
|
}
|
4694
4711
|
};
|
4695
4712
|
}
|
@@ -4697,8 +4714,8 @@ function Co(e) {
|
|
4697
4714
|
let t, r;
|
4698
4715
|
return {
|
4699
4716
|
c() {
|
4700
|
-
t = C("
|
4701
|
-
e[37].logo) ||
|
4717
|
+
t = C("img"), Ft(t.src, r = /*vendor*/
|
4718
|
+
e[37].logo) || g(t, "src", r), g(t, "alt", "vendor logo");
|
4702
4719
|
},
|
4703
4720
|
m(n, i) {
|
4704
4721
|
z(n, t, i);
|
@@ -4706,10 +4723,10 @@ function Co(e) {
|
|
4706
4723
|
p(n, i) {
|
4707
4724
|
i[0] & /*vendorArray*/
|
4708
4725
|
32 && !Ft(t.src, r = /*vendor*/
|
4709
|
-
n[37].logo) &&
|
4726
|
+
n[37].logo) && g(t, "src", r);
|
4710
4727
|
},
|
4711
4728
|
d(n) {
|
4712
|
-
n &&
|
4729
|
+
n && j(t);
|
4713
4730
|
}
|
4714
4731
|
};
|
4715
4732
|
}
|
@@ -4723,26 +4740,26 @@ function Fo(e) {
|
|
4723
4740
|
), l, h;
|
4724
4741
|
return {
|
4725
4742
|
c() {
|
4726
|
-
t = C("div"), r = C("span"), i =
|
4743
|
+
t = C("div"), r = C("span"), i = G(n), o = X(), s = C("span"), a = G("("), l = G(u), h = G(")"), g(r, "class", "VendorName"), g(t, "class", "FilterItemLabel");
|
4727
4744
|
},
|
4728
|
-
m(
|
4729
|
-
z(
|
4745
|
+
m(p, c) {
|
4746
|
+
z(p, t, c), _(t, r), _(r, i), _(t, o), _(t, s), _(s, a), _(s, l), _(s, h);
|
4730
4747
|
},
|
4731
|
-
p(
|
4732
|
-
|
4748
|
+
p(p, c) {
|
4749
|
+
c[0] & /*vendorArray*/
|
4733
4750
|
32 && n !== (n = /*vendor*/
|
4734
|
-
|
4751
|
+
p[37].name + "") && Y(i, n), c[0] & /*vendorArray*/
|
4735
4752
|
32 && u !== (u = /*vendor*/
|
4736
|
-
|
4753
|
+
p[37].games.total + "") && Y(l, u);
|
4737
4754
|
},
|
4738
|
-
d(
|
4739
|
-
|
4755
|
+
d(p) {
|
4756
|
+
p && j(t);
|
4740
4757
|
}
|
4741
4758
|
};
|
4742
4759
|
}
|
4743
4760
|
function nr(e) {
|
4744
|
-
let t, r, n, i, o, s, a, u, l, h,
|
4745
|
-
function
|
4761
|
+
let t, r, n, i, o, s, a, u, l, h, p, c;
|
4762
|
+
function m() {
|
4746
4763
|
e[25].call(
|
4747
4764
|
n,
|
4748
4765
|
/*each_value*/
|
@@ -4751,7 +4768,7 @@ function nr(e) {
|
|
4751
4768
|
e[39]
|
4752
4769
|
);
|
4753
4770
|
}
|
4754
|
-
function
|
4771
|
+
function v() {
|
4755
4772
|
return (
|
4756
4773
|
/*click_handler_1*/
|
4757
4774
|
e[26](
|
@@ -4760,46 +4777,46 @@ function nr(e) {
|
|
4760
4777
|
)
|
4761
4778
|
);
|
4762
4779
|
}
|
4763
|
-
function
|
4780
|
+
function y(S, b) {
|
4764
4781
|
if (
|
4765
4782
|
/*filterbylogo*/
|
4766
|
-
|
4783
|
+
S[2] === "false"
|
4767
4784
|
)
|
4768
4785
|
return Fo;
|
4769
4786
|
if (
|
4770
4787
|
/*filterbylogo*/
|
4771
|
-
|
4788
|
+
S[2] === "true"
|
4772
4789
|
)
|
4773
4790
|
return Co;
|
4774
4791
|
}
|
4775
|
-
let
|
4792
|
+
let T = y(e), H = T && T(e);
|
4776
4793
|
return {
|
4777
4794
|
c() {
|
4778
|
-
t = C("li"), r = C("label"), n = C("input"), o =
|
4779
|
-
e[37].name, Bt(n, n.__value),
|
4795
|
+
t = C("li"), r = C("label"), n = C("input"), o = X(), s = C("span"), a = X(), H && H.c(), u = X(), g(n, "type", "checkbox"), g(n, "name", "checkbox"), n.__value = i = /*vendor*/
|
4796
|
+
e[37].name, Bt(n, n.__value), g(s, "class", "FiltersCheckmark"), g(r, "class", "FilterLabel"), g(t, "class", l = "FilterItem " + /*filterbylogo*/
|
4780
4797
|
(e[2] === "true" ? "FilterItemWithLogos" : "")), t.value = h = /*vendor*/
|
4781
4798
|
e[37].name;
|
4782
4799
|
},
|
4783
|
-
m(
|
4784
|
-
z(
|
4785
|
-
e[37].isFilterSelected,
|
4786
|
-
De(n, "change",
|
4787
|
-
De(n, "click",
|
4788
|
-
],
|
4800
|
+
m(S, b) {
|
4801
|
+
z(S, t, b), _(t, r), _(r, n), n.checked = /*vendor*/
|
4802
|
+
e[37].isFilterSelected, _(r, o), _(r, s), _(r, a), H && H.m(r, null), _(t, u), p || (c = [
|
4803
|
+
De(n, "change", m),
|
4804
|
+
De(n, "click", v)
|
4805
|
+
], p = !0);
|
4789
4806
|
},
|
4790
|
-
p(
|
4791
|
-
e =
|
4807
|
+
p(S, b) {
|
4808
|
+
e = S, b[0] & /*vendorArray*/
|
4792
4809
|
32 && i !== (i = /*vendor*/
|
4793
|
-
e[37].name) && (n.__value = i, Bt(n, n.__value)),
|
4810
|
+
e[37].name) && (n.__value = i, Bt(n, n.__value)), b[0] & /*vendorArray*/
|
4794
4811
|
32 && (n.checked = /*vendor*/
|
4795
|
-
e[37].isFilterSelected),
|
4812
|
+
e[37].isFilterSelected), T === (T = y(e)) && H ? H.p(e, b) : (H && H.d(1), H = T && T(e), H && (H.c(), H.m(r, null))), b[0] & /*filterbylogo*/
|
4796
4813
|
4 && l !== (l = "FilterItem " + /*filterbylogo*/
|
4797
|
-
(e[2] === "true" ? "FilterItemWithLogos" : "")) &&
|
4814
|
+
(e[2] === "true" ? "FilterItemWithLogos" : "")) && g(t, "class", l), b[0] & /*vendorArray*/
|
4798
4815
|
32 && h !== (h = /*vendor*/
|
4799
4816
|
e[37].name) && (t.value = h);
|
4800
4817
|
},
|
4801
|
-
d(
|
4802
|
-
|
4818
|
+
d(S) {
|
4819
|
+
S && j(t), H && H.d(), p = !1, K(c);
|
4803
4820
|
}
|
4804
4821
|
};
|
4805
4822
|
}
|
@@ -4826,105 +4843,105 @@ function Bo(e) {
|
|
4826
4843
|
p(o, s) {
|
4827
4844
|
n === (n = r(o)) && i ? i.p(o, s) : (i && i.d(1), i = n && n(o), i && (i.c(), i.m(t, null)));
|
4828
4845
|
},
|
4829
|
-
i:
|
4830
|
-
o:
|
4846
|
+
i: k,
|
4847
|
+
o: k,
|
4831
4848
|
d(o) {
|
4832
|
-
o &&
|
4849
|
+
o && j(t), i && i.d(), e[28](null);
|
4833
4850
|
}
|
4834
4851
|
};
|
4835
4852
|
}
|
4836
|
-
function
|
4853
|
+
function Oo(e, t, r) {
|
4837
4854
|
let n;
|
4838
|
-
|
4839
|
-
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "" } = t, { translationurl: a = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { categoryid: h = "" } = t, { addfilterselector:
|
4855
|
+
Qr(e, go, (f) => r(11, n = f));
|
4856
|
+
let { endpoint: i = "" } = t, { datasource: o = "" } = t, { lang: s = "" } = t, { translationurl: a = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { categoryid: h = "" } = t, { addfilterselector: p = "false" } = t, { addsortingselector: c = "false" } = t, { filterbylogo: m = "false" } = t, { mbsource: v } = t, { usesinglevendorfilter: y = "false" } = t, T = !1, H = window.navigator.userAgent, S = [], b = [], I = {}, L = !1, R = 0, A = !0, P, N = !1;
|
4840
4857
|
wo({ withLocale: "en", translations: {} });
|
4841
4858
|
const Z = () => {
|
4842
|
-
fetch(a).then((
|
4843
|
-
Object.keys(
|
4844
|
-
er(
|
4859
|
+
fetch(a).then((d) => d.json()).then((d) => {
|
4860
|
+
Object.keys(d).forEach((B) => {
|
4861
|
+
er(B, d[B]);
|
4845
4862
|
});
|
4846
|
-
}).catch((
|
4847
|
-
console.log(
|
4863
|
+
}).catch((d) => {
|
4864
|
+
console.log(d);
|
4848
4865
|
});
|
4849
4866
|
};
|
4850
|
-
Object.keys(tr).forEach((
|
4851
|
-
er(
|
4852
|
-
}),
|
4853
|
-
const
|
4854
|
-
r(4,
|
4855
|
-
},
|
4856
|
-
fetch(
|
4857
|
-
|
4858
|
-
let
|
4859
|
-
const
|
4860
|
-
|
4867
|
+
Object.keys(tr).forEach((f) => {
|
4868
|
+
er(f, tr[f]);
|
4869
|
+
}), I[h] && (I = { [h]: [] });
|
4870
|
+
const V = () => {
|
4871
|
+
r(4, T = !T), window.postMessage({ type: "FilterOpened" }, window.location.href);
|
4872
|
+
}, ee = (f) => (r(9, A = !0), new Promise((d, B) => {
|
4873
|
+
fetch(f).then((x) => x.json()).then((x) => {
|
4874
|
+
x = x.items, d(x.items), r(6, b = []);
|
4875
|
+
let ue = JSON.parse(localStorage.getItem("vendorFiltersByCategory"));
|
4876
|
+
const jr = y === "true" ? "*" : h;
|
4877
|
+
x.forEach((Fe) => {
|
4861
4878
|
var St;
|
4862
|
-
|
4863
|
-
}), r(5,
|
4864
|
-
}).catch((
|
4865
|
-
console.error(
|
4879
|
+
ue || (ue = { currentCategoryId: [] }), ((St = ue[jr]) == null ? void 0 : St.indexOf(Fe.id)) >= 0 ? (Fe.isFilterSelected = !0, b.push(Fe)) : Fe.isFilterSelected = !1;
|
4880
|
+
}), r(5, S = x), te();
|
4881
|
+
}).catch((x) => {
|
4882
|
+
console.error(x), r(10, N = !0), B(x);
|
4866
4883
|
}).finally(() => {
|
4867
4884
|
r(9, A = !1);
|
4868
4885
|
});
|
4869
|
-
})),
|
4870
|
-
let
|
4871
|
-
|
4872
|
-
const
|
4873
|
-
|
4874
|
-
[
|
4875
|
-
})) : (
|
4876
|
-
},
|
4877
|
-
r(7, L =
|
4878
|
-
},
|
4879
|
-
if (
|
4886
|
+
})), oe = (f) => {
|
4887
|
+
let d = localStorage.getItem("vendorFiltersByCategory");
|
4888
|
+
f.isFilterSelected = !f.isFilterSelected, !b.length || b.filter((x) => x.name === f.name).length == 0 ? b.push(f) : r(6, b = b.filter((x) => x.name !== f.name));
|
4889
|
+
const B = y === "true" ? "*" : h;
|
4890
|
+
d == null ? localStorage.setItem("vendorFiltersByCategory", JSON.stringify(I = {
|
4891
|
+
[B]: b.map((x) => x.id)
|
4892
|
+
})) : (d = JSON.parse(d), d[B] = b.map((x) => x.id), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(d))), window.postMessage({ type: "ApplyFilters", origin: "filters" }, window.location.href), te();
|
4893
|
+
}, te = () => {
|
4894
|
+
r(7, L = b.length === S.length || b.length == 0), r(8, R = b.length);
|
4895
|
+
}, se = () => {
|
4896
|
+
if (S.length && y === "true")
|
4880
4897
|
return;
|
4881
|
-
const
|
4882
|
-
r(4,
|
4883
|
-
},
|
4884
|
-
r(6,
|
4885
|
-
[
|
4886
|
-
})),
|
4887
|
-
},
|
4888
|
-
|
4898
|
+
const f = new URL(`${i}/v1/casino/vendors`);
|
4899
|
+
r(4, T = !1), f.searchParams.append("fields", "id,name,logo,subVendors,games"), f.searchParams.append("language", s), f.searchParams.append("datasource", o), f.searchParams.append("platform", vo(H)), y === "true" || ((h.match(/\$/g) || []).length > 1 ? (f.searchParams.append("filter", `games(subGroups=${h})`), f.searchParams.append("subVendors", `games(subGroups=${h})`)) : f.searchParams.append("filter", `games(groups=${h})`)), ee(f);
|
4900
|
+
}, re = () => {
|
4901
|
+
r(6, b = []), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(I = {
|
4902
|
+
[y === "true" ? "*" : h]: b.map((f) => f.id)
|
4903
|
+
})), S.forEach((f) => f.isFilterSelected = !1), r(5, S), window.postMessage({ type: "ApplyFilters" }, window.location.href), r(7, L = !0), r(4, T = !1);
|
4904
|
+
}, ae = (f) => {
|
4905
|
+
f.data.type == "SortingOpened" && r(4, T = !1);
|
4889
4906
|
};
|
4890
|
-
|
4891
|
-
window.
|
4907
|
+
nn(() => (window.addEventListener("message", ae, !1), () => {
|
4908
|
+
window.removeEventListener("message", ae);
|
4892
4909
|
}));
|
4893
|
-
const
|
4894
|
-
function
|
4895
|
-
|
4910
|
+
const Pe = () => V();
|
4911
|
+
function Ce(f, d) {
|
4912
|
+
f[d].isFilterSelected = this.checked, r(5, S);
|
4896
4913
|
}
|
4897
|
-
const
|
4898
|
-
function
|
4899
|
-
|
4900
|
-
P =
|
4914
|
+
const le = (f) => oe(f), U = () => re();
|
4915
|
+
function Q(f) {
|
4916
|
+
nt[f ? "unshift" : "push"](() => {
|
4917
|
+
P = f, r(3, P);
|
4901
4918
|
});
|
4902
4919
|
}
|
4903
|
-
return e.$$set = (
|
4904
|
-
"endpoint" in
|
4920
|
+
return e.$$set = (f) => {
|
4921
|
+
"endpoint" in f && r(15, i = f.endpoint), "datasource" in f && r(16, o = f.datasource), "lang" in f && r(17, s = f.lang), "translationurl" in f && r(18, a = f.translationurl), "clientstyling" in f && r(19, u = f.clientstyling), "clientstylingurl" in f && r(20, l = f.clientstylingurl), "categoryid" in f && r(21, h = f.categoryid), "addfilterselector" in f && r(0, p = f.addfilterselector), "addsortingselector" in f && r(1, c = f.addsortingselector), "filterbylogo" in f && r(2, m = f.filterbylogo), "mbsource" in f && r(22, v = f.mbsource), "usesinglevendorfilter" in f && r(23, y = f.usesinglevendorfilter);
|
4905
4922
|
}, e.$$.update = () => {
|
4906
4923
|
e.$$.dirty[0] & /*endpoint, datasource, categoryid, filterbylogo*/
|
4907
|
-
2195460 && i && o && h &&
|
4924
|
+
2195460 && i && o && h && m && se(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
4908
4925
|
524296 && u && P && _o(P, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
4909
4926
|
1048584 && l && P && xo(P, l), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
4910
|
-
4194312 && P && Eo(P, `${
|
4927
|
+
4194312 && P && Eo(P, `${v}.Style`), e.$$.dirty[0] & /*translationurl*/
|
4911
4928
|
262144 && a && Z();
|
4912
4929
|
}, [
|
4913
|
-
d,
|
4914
|
-
f,
|
4915
4930
|
p,
|
4931
|
+
c,
|
4932
|
+
m,
|
4916
4933
|
P,
|
4934
|
+
T,
|
4917
4935
|
S,
|
4918
|
-
|
4919
|
-
m,
|
4936
|
+
b,
|
4920
4937
|
L,
|
4921
|
-
|
4938
|
+
R,
|
4922
4939
|
A,
|
4923
4940
|
N,
|
4924
4941
|
n,
|
4925
|
-
|
4942
|
+
V,
|
4943
|
+
oe,
|
4926
4944
|
re,
|
4927
|
-
le,
|
4928
4945
|
i,
|
4929
4946
|
o,
|
4930
4947
|
s,
|
@@ -4932,21 +4949,21 @@ function Io(e, t, r) {
|
|
4932
4949
|
u,
|
4933
4950
|
l,
|
4934
4951
|
h,
|
4935
|
-
|
4936
|
-
|
4952
|
+
v,
|
4953
|
+
y,
|
4954
|
+
Pe,
|
4937
4955
|
Ce,
|
4938
|
-
|
4939
|
-
|
4940
|
-
|
4941
|
-
M
|
4956
|
+
le,
|
4957
|
+
U,
|
4958
|
+
Q
|
4942
4959
|
];
|
4943
4960
|
}
|
4944
|
-
class
|
4961
|
+
class kr extends pn {
|
4945
4962
|
constructor(t) {
|
4946
|
-
super(),
|
4963
|
+
super(), cn(
|
4947
4964
|
this,
|
4948
4965
|
t,
|
4949
|
-
|
4966
|
+
Oo,
|
4950
4967
|
Bo,
|
4951
4968
|
or,
|
4952
4969
|
{
|
@@ -5040,53 +5057,52 @@ class jr extends pn {
|
|
5040
5057
|
this.$$set({ usesinglevendorfilter: t }), $();
|
5041
5058
|
}
|
5042
5059
|
}
|
5043
|
-
|
5044
|
-
const
|
5060
|
+
fn(kr, { endpoint: {}, datasource: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, categoryid: {}, addfilterselector: {}, addsortingselector: {}, filterbylogo: {}, mbsource: {}, usesinglevendorfilter: {} }, [], [], !0);
|
5061
|
+
const jo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
5045
5062
|
__proto__: null,
|
5046
|
-
default:
|
5063
|
+
default: kr
|
5047
5064
|
}, Symbol.toStringTag, { value: "Module" }));
|
5048
5065
|
export {
|
5049
|
-
|
5050
|
-
|
5051
|
-
|
5052
|
-
|
5053
|
-
|
5054
|
-
|
5055
|
-
|
5056
|
-
|
5057
|
-
|
5058
|
-
|
5059
|
-
|
5060
|
-
|
5061
|
-
|
5062
|
-
|
5063
|
-
|
5064
|
-
Vo as O,
|
5066
|
+
ne as $,
|
5067
|
+
$o as A,
|
5068
|
+
Ee as B,
|
5069
|
+
_o as C,
|
5070
|
+
xo as D,
|
5071
|
+
Eo as E,
|
5072
|
+
fn as F,
|
5073
|
+
go as G,
|
5074
|
+
Ro as H,
|
5075
|
+
Do as I,
|
5076
|
+
ko as J,
|
5077
|
+
Go as K,
|
5078
|
+
Uo as L,
|
5079
|
+
ve as M,
|
5080
|
+
jo as N,
|
5065
5081
|
pn as S,
|
5066
|
-
|
5067
|
-
|
5068
|
-
|
5069
|
-
|
5070
|
-
|
5082
|
+
Rr as a,
|
5083
|
+
qr as b,
|
5084
|
+
Ft as c,
|
5085
|
+
j as d,
|
5086
|
+
No as e,
|
5071
5087
|
$ as f,
|
5072
|
-
|
5073
|
-
|
5074
|
-
|
5075
|
-
|
5076
|
-
|
5077
|
-
|
5078
|
-
|
5079
|
-
|
5080
|
-
|
5081
|
-
|
5082
|
-
|
5083
|
-
|
5088
|
+
Y as g,
|
5089
|
+
g as h,
|
5090
|
+
cn as i,
|
5091
|
+
z as j,
|
5092
|
+
_ as k,
|
5093
|
+
C as l,
|
5094
|
+
X as m,
|
5095
|
+
k as n,
|
5096
|
+
G as o,
|
5097
|
+
Qr as p,
|
5098
|
+
nn as q,
|
5099
|
+
De as r,
|
5084
5100
|
or as s,
|
5085
|
-
|
5086
|
-
|
5087
|
-
|
5088
|
-
|
5089
|
-
|
5090
|
-
|
5091
|
-
|
5101
|
+
Mo as t,
|
5102
|
+
Lo as u,
|
5103
|
+
yo as v,
|
5104
|
+
vo as w,
|
5105
|
+
nt as x,
|
5106
|
+
It as y,
|
5107
|
+
en as z
|
5092
5108
|
};
|