@everymatrix/casino-categories-slider-nd 1.76.0 → 1.76.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoCategoriesSliderNd-D3zybUWG.js → CasinoCategoriesSliderNd-CCtYmex9.js} +798 -833
- package/components/{CasinoCategoriesSliderNd-DqNyoVHH.js → CasinoCategoriesSliderNd-DDU2i8eq.js} +829 -864
- package/components/CasinoCategoriesSliderNd-fkz4JcNa.cjs +18 -0
- package/components/{CasinoSliderNd-BK3I3J_T.cjs → CasinoSliderNd-BHSQD9cH.cjs} +1 -1
- package/components/{CasinoSliderNd-yN3cc7MK.js → CasinoSliderNd-BvDipE-Q.js} +58 -58
- package/components/{CasinoSliderNd-Byj5IZ7t.js → CasinoSliderNd-CHo6EY-Z.js} +58 -58
- package/es2015/casino-categories-slider-nd.cjs +1 -1
- package/es2015/casino-categories-slider-nd.js +1 -1
- package/esnext/casino-categories-slider-nd.js +1 -1
- package/package.json +1 -1
- package/components/CasinoCategoriesSliderNd-COjasb52.cjs +0 -18
package/components/{CasinoCategoriesSliderNd-D3zybUWG.js → CasinoCategoriesSliderNd-CCtYmex9.js}
RENAMED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function I() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Mt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function ct() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function re(e) {
|
|
10
|
+
e.forEach(Mt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function rt(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Rt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
let pe;
|
|
19
|
-
function
|
|
19
|
+
function cs(e, t) {
|
|
20
20
|
return e === t ? !0 : (pe || (pe = document.createElement("a")), pe.href = t, e === pe.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Pr(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Gt(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
@@ -31,20 +31,20 @@ function Ft(e, ...t) {
|
|
|
31
31
|
const r = e.subscribe(...t);
|
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function Nr(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(Gt(t, r));
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function Ut(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const n =
|
|
40
|
+
function Or(e, t, r) {
|
|
41
|
+
const n = Lr(e);
|
|
42
42
|
if (!n.getElementById(t)) {
|
|
43
43
|
const i = k("style");
|
|
44
|
-
i.id = t, i.textContent = r,
|
|
44
|
+
i.id = t, i.textContent = r, Ir(n, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Lr(e) {
|
|
48
48
|
if (!e)
|
|
49
49
|
return document;
|
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -54,56 +54,56 @@ function Rr(e) {
|
|
|
54
54
|
t
|
|
55
55
|
) : e.ownerDocument;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
return
|
|
57
|
+
function Ir(e, t) {
|
|
58
|
+
return Ut(
|
|
59
59
|
/** @type {Document} */
|
|
60
60
|
e.head || e,
|
|
61
61
|
t
|
|
62
62
|
), t.sheet;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function fe(e, t, r) {
|
|
65
65
|
e.insertBefore(t, r || null);
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function ne(e) {
|
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function fs(e, t) {
|
|
71
71
|
for (let r = 0; r < e.length; r += 1)
|
|
72
72
|
e[r] && e[r].d(t);
|
|
73
73
|
}
|
|
74
74
|
function k(e) {
|
|
75
75
|
return document.createElement(e);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function ms(e) {
|
|
78
78
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function Dt(e) {
|
|
81
81
|
return document.createTextNode(e);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
return
|
|
83
|
+
function ds() {
|
|
84
|
+
return Dt(" ");
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
return
|
|
86
|
+
function bs() {
|
|
87
|
+
return Dt("");
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function ps(e, t, r, n) {
|
|
90
90
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function ie(e, t, r) {
|
|
93
93
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function _(e, t, r) {
|
|
96
96
|
const n = t.toLowerCase();
|
|
97
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
97
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : ie(e, t, r);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Cr(e) {
|
|
100
100
|
return Array.from(e.childNodes);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function gs(e, t) {
|
|
103
103
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
104
104
|
t);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function Mr(e) {
|
|
107
107
|
const t = {};
|
|
108
108
|
return e.childNodes.forEach(
|
|
109
109
|
/** @param {Element} node */
|
|
@@ -112,123 +112,123 @@ function Dr(e) {
|
|
|
112
112
|
}
|
|
113
113
|
), t;
|
|
114
114
|
}
|
|
115
|
-
let
|
|
116
|
-
function
|
|
117
|
-
|
|
115
|
+
let he;
|
|
116
|
+
function ue(e) {
|
|
117
|
+
he = e;
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
if (!
|
|
119
|
+
function Rr() {
|
|
120
|
+
if (!he)
|
|
121
121
|
throw new Error("Function called outside component initialization");
|
|
122
|
-
return
|
|
122
|
+
return he;
|
|
123
123
|
}
|
|
124
|
-
function
|
|
125
|
-
|
|
124
|
+
function Gr(e) {
|
|
125
|
+
Rr().$$.on_mount.push(e);
|
|
126
126
|
}
|
|
127
|
-
const q = [],
|
|
127
|
+
const q = [], De = [];
|
|
128
128
|
let Q = [];
|
|
129
|
-
const
|
|
130
|
-
let
|
|
131
|
-
function
|
|
132
|
-
|
|
129
|
+
const ft = [], Ft = /* @__PURE__ */ Promise.resolve();
|
|
130
|
+
let Fe = !1;
|
|
131
|
+
function $t() {
|
|
132
|
+
Fe || (Fe = !0, Ft.then(S));
|
|
133
133
|
}
|
|
134
|
-
function
|
|
135
|
-
return
|
|
134
|
+
function Ur() {
|
|
135
|
+
return $t(), Ft;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function $e(e) {
|
|
138
138
|
Q.push(e);
|
|
139
139
|
}
|
|
140
|
-
const
|
|
140
|
+
const Le = /* @__PURE__ */ new Set();
|
|
141
141
|
let z = 0;
|
|
142
|
-
function
|
|
142
|
+
function S() {
|
|
143
143
|
if (z !== 0)
|
|
144
144
|
return;
|
|
145
|
-
const e =
|
|
145
|
+
const e = he;
|
|
146
146
|
do {
|
|
147
147
|
try {
|
|
148
148
|
for (; z < q.length; ) {
|
|
149
149
|
const t = q[z];
|
|
150
|
-
z++,
|
|
150
|
+
z++, ue(t), Dr(t.$$);
|
|
151
151
|
}
|
|
152
152
|
} catch (t) {
|
|
153
153
|
throw q.length = 0, z = 0, t;
|
|
154
154
|
}
|
|
155
|
-
for (
|
|
156
|
-
|
|
155
|
+
for (ue(null), q.length = 0, z = 0; De.length; )
|
|
156
|
+
De.pop()();
|
|
157
157
|
for (let t = 0; t < Q.length; t += 1) {
|
|
158
158
|
const r = Q[t];
|
|
159
|
-
|
|
159
|
+
Le.has(r) || (Le.add(r), r());
|
|
160
160
|
}
|
|
161
161
|
Q.length = 0;
|
|
162
162
|
} while (q.length);
|
|
163
|
-
for (;
|
|
164
|
-
|
|
165
|
-
|
|
163
|
+
for (; ft.length; )
|
|
164
|
+
ft.pop()();
|
|
165
|
+
Fe = !1, Le.clear(), ue(e);
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function Dr(e) {
|
|
168
168
|
if (e.fragment !== null) {
|
|
169
|
-
e.update(),
|
|
169
|
+
e.update(), re(e.before_update);
|
|
170
170
|
const t = e.dirty;
|
|
171
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
171
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function Fr(e) {
|
|
175
175
|
const t = [], r = [];
|
|
176
176
|
Q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Q = t;
|
|
177
177
|
}
|
|
178
|
-
const
|
|
179
|
-
function
|
|
180
|
-
e && e.i && (
|
|
178
|
+
const $r = /* @__PURE__ */ new Set();
|
|
179
|
+
function jt(e, t) {
|
|
180
|
+
e && e.i && ($r.delete(e), e.i(t));
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function ys(e) {
|
|
183
183
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function vs(e, t) {
|
|
186
186
|
e.d(1), t.delete(e.key);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function _s(e, t, r, n, i, s, o, a, h, u, l, m) {
|
|
189
189
|
let c = e.length, d = s.length, p = c;
|
|
190
190
|
const b = {};
|
|
191
191
|
for (; p--; )
|
|
192
192
|
b[e[p].key] = p;
|
|
193
193
|
const w = [], C = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map(), T = [];
|
|
194
194
|
for (p = d; p--; ) {
|
|
195
|
-
const
|
|
196
|
-
let L = o.get(
|
|
197
|
-
L ? T.push(() => L.p(
|
|
195
|
+
const E = m(i, s, p), O = r(E);
|
|
196
|
+
let L = o.get(O);
|
|
197
|
+
L ? T.push(() => L.p(E, t)) : (L = u(O, E), L.c()), C.set(O, w[p] = L), O in b && P.set(O, Math.abs(p - b[O]));
|
|
198
198
|
}
|
|
199
|
-
const
|
|
200
|
-
function M(
|
|
201
|
-
|
|
199
|
+
const N = /* @__PURE__ */ new Set(), H = /* @__PURE__ */ new Set();
|
|
200
|
+
function M(E) {
|
|
201
|
+
jt(E, 1), E.m(a, l), o.set(E.key, E), l = E.first, d--;
|
|
202
202
|
}
|
|
203
203
|
for (; c && d; ) {
|
|
204
|
-
const
|
|
205
|
-
|
|
204
|
+
const E = w[d - 1], O = e[c - 1], L = E.key, F = O.key;
|
|
205
|
+
E === O ? (l = E.first, c--, d--) : C.has(F) ? !o.has(L) || N.has(L) ? M(E) : H.has(F) ? c-- : P.get(L) > P.get(F) ? (H.add(L), M(E)) : (N.add(F), c--) : (h(O, o), c--);
|
|
206
206
|
}
|
|
207
207
|
for (; c--; ) {
|
|
208
|
-
const
|
|
209
|
-
C.has(
|
|
208
|
+
const E = e[c];
|
|
209
|
+
C.has(E.key) || h(E, o);
|
|
210
210
|
}
|
|
211
211
|
for (; d; )
|
|
212
212
|
M(w[d - 1]);
|
|
213
|
-
return
|
|
213
|
+
return re(T), w;
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function jr(e, t, r) {
|
|
216
216
|
const { fragment: n, after_update: i } = e.$$;
|
|
217
|
-
n && n.m(t, r),
|
|
218
|
-
const s = e.$$.on_mount.map(
|
|
219
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
220
|
-
}), i.forEach(
|
|
217
|
+
n && n.m(t, r), $e(() => {
|
|
218
|
+
const s = e.$$.on_mount.map(Mt).filter(rt);
|
|
219
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : re(s), e.$$.on_mount = [];
|
|
220
|
+
}), i.forEach($e);
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function kr(e, t) {
|
|
223
223
|
const r = e.$$;
|
|
224
|
-
r.fragment !== null && (
|
|
224
|
+
r.fragment !== null && (Fr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
225
225
|
}
|
|
226
|
-
function
|
|
227
|
-
e.$$.dirty[0] === -1 && (q.push(e),
|
|
226
|
+
function Vr(e, t) {
|
|
227
|
+
e.$$.dirty[0] === -1 && (q.push(e), $t(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
228
228
|
}
|
|
229
|
-
function
|
|
230
|
-
const h =
|
|
231
|
-
|
|
229
|
+
function Xr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
230
|
+
const h = he;
|
|
231
|
+
ue(e);
|
|
232
232
|
const u = e.$$ = {
|
|
233
233
|
fragment: null,
|
|
234
234
|
ctx: [],
|
|
@@ -236,7 +236,7 @@ function qr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
236
236
|
props: s,
|
|
237
237
|
update: I,
|
|
238
238
|
not_equal: i,
|
|
239
|
-
bound:
|
|
239
|
+
bound: ct(),
|
|
240
240
|
// lifecycle
|
|
241
241
|
on_mount: [],
|
|
242
242
|
on_destroy: [],
|
|
@@ -245,7 +245,7 @@ function qr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
245
245
|
after_update: [],
|
|
246
246
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
247
247
|
// everything else
|
|
248
|
-
callbacks:
|
|
248
|
+
callbacks: ct(),
|
|
249
249
|
dirty: a,
|
|
250
250
|
skip_bound: !1,
|
|
251
251
|
root: t.target || h.$$.root
|
|
@@ -254,19 +254,19 @@ function qr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
254
254
|
let l = !1;
|
|
255
255
|
if (u.ctx = r ? r(e, t.props || {}, (m, c, ...d) => {
|
|
256
256
|
const p = d.length ? d[0] : c;
|
|
257
|
-
return u.ctx && i(u.ctx[m], u.ctx[m] = p) && (!u.skip_bound && u.bound[m] && u.bound[m](p), l &&
|
|
258
|
-
}) : [], u.update(), l = !0,
|
|
257
|
+
return u.ctx && i(u.ctx[m], u.ctx[m] = p) && (!u.skip_bound && u.bound[m] && u.bound[m](p), l && Vr(e, m)), c;
|
|
258
|
+
}) : [], u.update(), l = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
259
259
|
if (t.hydrate) {
|
|
260
|
-
const m =
|
|
261
|
-
u.fragment && u.fragment.l(m), m.forEach(
|
|
260
|
+
const m = Cr(t.target);
|
|
261
|
+
u.fragment && u.fragment.l(m), m.forEach(ne);
|
|
262
262
|
} else
|
|
263
263
|
u.fragment && u.fragment.c();
|
|
264
|
-
t.intro &&
|
|
264
|
+
t.intro && jt(e.$$.fragment), jr(e, t.target, t.anchor), S();
|
|
265
265
|
}
|
|
266
|
-
|
|
266
|
+
ue(h);
|
|
267
267
|
}
|
|
268
|
-
let
|
|
269
|
-
typeof HTMLElement == "function" && (
|
|
268
|
+
let kt;
|
|
269
|
+
typeof HTMLElement == "function" && (kt = class extends HTMLElement {
|
|
270
270
|
/** The Svelte component constructor */
|
|
271
271
|
$$ctor;
|
|
272
272
|
/** Slots */
|
|
@@ -308,24 +308,24 @@ typeof HTMLElement == "function" && (zt = class extends HTMLElement {
|
|
|
308
308
|
let s;
|
|
309
309
|
return {
|
|
310
310
|
c: function() {
|
|
311
|
-
s = k("slot"), i !== "default" &&
|
|
311
|
+
s = k("slot"), i !== "default" && ie(s, "name", i);
|
|
312
312
|
},
|
|
313
313
|
/**
|
|
314
314
|
* @param {HTMLElement} target
|
|
315
315
|
* @param {HTMLElement} [anchor]
|
|
316
316
|
*/
|
|
317
317
|
m: function(h, u) {
|
|
318
|
-
|
|
318
|
+
fe(h, s, u);
|
|
319
319
|
},
|
|
320
320
|
d: function(h) {
|
|
321
|
-
h &&
|
|
321
|
+
h && ne(s);
|
|
322
322
|
}
|
|
323
323
|
};
|
|
324
324
|
};
|
|
325
325
|
};
|
|
326
326
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
327
327
|
return;
|
|
328
|
-
const t = {}, r =
|
|
328
|
+
const t = {}, r = Mr(this);
|
|
329
329
|
for (const i of this.$$s)
|
|
330
330
|
i in r && (t[i] = [e(i)]);
|
|
331
331
|
for (const i of this.attributes) {
|
|
@@ -412,8 +412,8 @@ function ve(e, t, r, n) {
|
|
|
412
412
|
return t;
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
function
|
|
416
|
-
let o = class extends
|
|
415
|
+
function Wr(e, t, r, n, i, s) {
|
|
416
|
+
let o = class extends kt {
|
|
417
417
|
constructor() {
|
|
418
418
|
super(e, r, i), this.$$p_d = t;
|
|
419
419
|
}
|
|
@@ -441,7 +441,7 @@ function Qr(e, t, r, n, i, s) {
|
|
|
441
441
|
}), e.element = /** @type {any} */
|
|
442
442
|
o, o;
|
|
443
443
|
}
|
|
444
|
-
class
|
|
444
|
+
class zr {
|
|
445
445
|
/**
|
|
446
446
|
* ### PRIVATE API
|
|
447
447
|
*
|
|
@@ -460,7 +460,7 @@ class Yr {
|
|
|
460
460
|
$$set = void 0;
|
|
461
461
|
/** @returns {void} */
|
|
462
462
|
$destroy() {
|
|
463
|
-
|
|
463
|
+
kr(this, 1), this.$destroy = I;
|
|
464
464
|
}
|
|
465
465
|
/**
|
|
466
466
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -469,7 +469,7 @@ class Yr {
|
|
|
469
469
|
* @returns {() => void}
|
|
470
470
|
*/
|
|
471
471
|
$on(t, r) {
|
|
472
|
-
if (!
|
|
472
|
+
if (!rt(r))
|
|
473
473
|
return I;
|
|
474
474
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
475
475
|
return n.push(r), () => {
|
|
@@ -482,11 +482,11 @@ class Yr {
|
|
|
482
482
|
* @returns {void}
|
|
483
483
|
*/
|
|
484
484
|
$set(t) {
|
|
485
|
-
this.$$set && !
|
|
485
|
+
this.$$set && !Pr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
|
-
const
|
|
489
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
488
|
+
const Zr = "4";
|
|
489
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Zr);
|
|
490
490
|
/*! *****************************************************************************
|
|
491
491
|
Copyright (c) Microsoft Corporation.
|
|
492
492
|
|
|
@@ -501,24 +501,43 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
501
501
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
502
502
|
PERFORMANCE OF THIS SOFTWARE.
|
|
503
503
|
***************************************************************************** */
|
|
504
|
-
var
|
|
505
|
-
return
|
|
504
|
+
var je = function(e, t) {
|
|
505
|
+
return je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
506
506
|
r.__proto__ = n;
|
|
507
507
|
} || function(r, n) {
|
|
508
508
|
for (var i in n)
|
|
509
509
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
510
|
-
},
|
|
510
|
+
}, je(e, t);
|
|
511
511
|
};
|
|
512
|
-
function
|
|
512
|
+
function U(e, t) {
|
|
513
513
|
if (typeof t != "function" && t !== null)
|
|
514
514
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
515
|
-
|
|
515
|
+
je(e, t);
|
|
516
516
|
function r() {
|
|
517
517
|
this.constructor = e;
|
|
518
518
|
}
|
|
519
519
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
var v = function() {
|
|
522
|
+
return v = Object.assign || function(t) {
|
|
523
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
524
|
+
r = arguments[n];
|
|
525
|
+
for (var s in r)
|
|
526
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
527
|
+
}
|
|
528
|
+
return t;
|
|
529
|
+
}, v.apply(this, arguments);
|
|
530
|
+
};
|
|
531
|
+
function qr(e, t) {
|
|
532
|
+
var r = {};
|
|
533
|
+
for (var n in e)
|
|
534
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
535
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
536
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
537
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
538
|
+
return r;
|
|
539
|
+
}
|
|
540
|
+
function ke(e) {
|
|
522
541
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
523
542
|
if (r)
|
|
524
543
|
return r.call(e);
|
|
@@ -530,7 +549,7 @@ function We(e) {
|
|
|
530
549
|
};
|
|
531
550
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
532
551
|
}
|
|
533
|
-
function
|
|
552
|
+
function Ve(e, t) {
|
|
534
553
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
535
554
|
if (!r)
|
|
536
555
|
return e;
|
|
@@ -550,22 +569,22 @@ function ze(e, t) {
|
|
|
550
569
|
}
|
|
551
570
|
return s;
|
|
552
571
|
}
|
|
553
|
-
function
|
|
554
|
-
if (arguments.length === 2)
|
|
572
|
+
function Y(e, t, r) {
|
|
573
|
+
if (r || arguments.length === 2)
|
|
555
574
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
556
575
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
557
576
|
return e.concat(s || t);
|
|
558
577
|
}
|
|
559
|
-
function
|
|
578
|
+
function G(e) {
|
|
560
579
|
return typeof e == "function";
|
|
561
580
|
}
|
|
562
|
-
function
|
|
581
|
+
function Vt(e) {
|
|
563
582
|
var t = function(n) {
|
|
564
583
|
Error.call(n), n.stack = new Error().stack;
|
|
565
584
|
}, r = e(t);
|
|
566
585
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
567
586
|
}
|
|
568
|
-
var
|
|
587
|
+
var Ie = Vt(function(e) {
|
|
569
588
|
return function(r) {
|
|
570
589
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
571
590
|
` + r.map(function(n, i) {
|
|
@@ -574,13 +593,13 @@ var Me = Zt(function(e) {
|
|
|
574
593
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
575
594
|
};
|
|
576
595
|
});
|
|
577
|
-
function
|
|
596
|
+
function Xe(e, t) {
|
|
578
597
|
if (e) {
|
|
579
598
|
var r = e.indexOf(t);
|
|
580
599
|
0 <= r && e.splice(r, 1);
|
|
581
600
|
}
|
|
582
601
|
}
|
|
583
|
-
var
|
|
602
|
+
var Te = function() {
|
|
584
603
|
function e(t) {
|
|
585
604
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
586
605
|
}
|
|
@@ -592,7 +611,7 @@ var He = function() {
|
|
|
592
611
|
if (o)
|
|
593
612
|
if (this._parentage = null, Array.isArray(o))
|
|
594
613
|
try {
|
|
595
|
-
for (var a =
|
|
614
|
+
for (var a = ke(o), h = a.next(); !h.done; h = a.next()) {
|
|
596
615
|
var u = h.value;
|
|
597
616
|
u.remove(this);
|
|
598
617
|
}
|
|
@@ -609,22 +628,22 @@ var He = function() {
|
|
|
609
628
|
else
|
|
610
629
|
o.remove(this);
|
|
611
630
|
var l = this.initialTeardown;
|
|
612
|
-
if (
|
|
631
|
+
if (G(l))
|
|
613
632
|
try {
|
|
614
633
|
l();
|
|
615
634
|
} catch (b) {
|
|
616
|
-
s = b instanceof
|
|
635
|
+
s = b instanceof Ie ? b.errors : [b];
|
|
617
636
|
}
|
|
618
637
|
var m = this._finalizers;
|
|
619
638
|
if (m) {
|
|
620
639
|
this._finalizers = null;
|
|
621
640
|
try {
|
|
622
|
-
for (var c =
|
|
641
|
+
for (var c = ke(m), d = c.next(); !d.done; d = c.next()) {
|
|
623
642
|
var p = d.value;
|
|
624
643
|
try {
|
|
625
|
-
|
|
644
|
+
mt(p);
|
|
626
645
|
} catch (b) {
|
|
627
|
-
s = s ?? [], b instanceof
|
|
646
|
+
s = s ?? [], b instanceof Ie ? s = Y(Y([], Ve(s)), Ve(b.errors)) : s.push(b);
|
|
628
647
|
}
|
|
629
648
|
}
|
|
630
649
|
} catch (b) {
|
|
@@ -639,13 +658,13 @@ var He = function() {
|
|
|
639
658
|
}
|
|
640
659
|
}
|
|
641
660
|
if (s)
|
|
642
|
-
throw new
|
|
661
|
+
throw new Ie(s);
|
|
643
662
|
}
|
|
644
663
|
}, e.prototype.add = function(t) {
|
|
645
664
|
var r;
|
|
646
665
|
if (t && t !== this)
|
|
647
666
|
if (this.closed)
|
|
648
|
-
|
|
667
|
+
mt(t);
|
|
649
668
|
else {
|
|
650
669
|
if (t instanceof e) {
|
|
651
670
|
if (t.closed || t._hasParent(this))
|
|
@@ -662,52 +681,56 @@ var He = function() {
|
|
|
662
681
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
663
682
|
}, e.prototype._removeParent = function(t) {
|
|
664
683
|
var r = this._parentage;
|
|
665
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
684
|
+
r === t ? this._parentage = null : Array.isArray(r) && Xe(r, t);
|
|
666
685
|
}, e.prototype.remove = function(t) {
|
|
667
686
|
var r = this._finalizers;
|
|
668
|
-
r &&
|
|
687
|
+
r && Xe(r, t), t instanceof e && t._removeParent(this);
|
|
669
688
|
}, e.EMPTY = function() {
|
|
670
689
|
var t = new e();
|
|
671
690
|
return t.closed = !0, t;
|
|
672
691
|
}(), e;
|
|
673
|
-
}(),
|
|
674
|
-
function
|
|
675
|
-
return e instanceof
|
|
676
|
-
}
|
|
677
|
-
function
|
|
678
|
-
|
|
679
|
-
}
|
|
680
|
-
var
|
|
681
|
-
|
|
682
|
-
|
|
692
|
+
}(), Xt = Te.EMPTY;
|
|
693
|
+
function Wt(e) {
|
|
694
|
+
return e instanceof Te || e && "closed" in e && G(e.remove) && G(e.add) && G(e.unsubscribe);
|
|
695
|
+
}
|
|
696
|
+
function mt(e) {
|
|
697
|
+
G(e) ? e() : e.unsubscribe();
|
|
698
|
+
}
|
|
699
|
+
var Qr = {
|
|
700
|
+
onUnhandledError: null,
|
|
701
|
+
onStoppedNotification: null,
|
|
702
|
+
Promise: void 0,
|
|
703
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
704
|
+
useDeprecatedNextContext: !1
|
|
705
|
+
}, Yr = {
|
|
683
706
|
setTimeout: function(e, t) {
|
|
684
707
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
685
708
|
r[n - 2] = arguments[n];
|
|
686
|
-
return setTimeout.apply(void 0,
|
|
709
|
+
return setTimeout.apply(void 0, Y([e, t], Ve(r)));
|
|
687
710
|
},
|
|
688
711
|
clearTimeout: function(e) {
|
|
689
712
|
return clearTimeout(e);
|
|
690
713
|
},
|
|
691
714
|
delegate: void 0
|
|
692
715
|
};
|
|
693
|
-
function
|
|
694
|
-
|
|
716
|
+
function Jr(e) {
|
|
717
|
+
Yr.setTimeout(function() {
|
|
695
718
|
throw e;
|
|
696
719
|
});
|
|
697
720
|
}
|
|
698
|
-
function
|
|
721
|
+
function dt() {
|
|
699
722
|
}
|
|
700
723
|
function _e(e) {
|
|
701
724
|
e();
|
|
702
725
|
}
|
|
703
|
-
var
|
|
704
|
-
|
|
726
|
+
var zt = function(e) {
|
|
727
|
+
U(t, e);
|
|
705
728
|
function t(r) {
|
|
706
729
|
var n = e.call(this) || this;
|
|
707
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
730
|
+
return n.isStopped = !1, r ? (n.destination = r, Wt(r) && r.add(n)) : n.destination = tn, n;
|
|
708
731
|
}
|
|
709
732
|
return t.create = function(r, n, i) {
|
|
710
|
-
return new
|
|
733
|
+
return new We(r, n, i);
|
|
711
734
|
}, t.prototype.next = function(r) {
|
|
712
735
|
this.isStopped || this._next(r);
|
|
713
736
|
}, t.prototype.error = function(r) {
|
|
@@ -731,7 +754,7 @@ var Yt = function(e) {
|
|
|
731
754
|
this.unsubscribe();
|
|
732
755
|
}
|
|
733
756
|
}, t;
|
|
734
|
-
}(
|
|
757
|
+
}(Te), Kr = function() {
|
|
735
758
|
function e(t) {
|
|
736
759
|
this.partialObserver = t;
|
|
737
760
|
}
|
|
@@ -762,43 +785,43 @@ var Yt = function(e) {
|
|
|
762
785
|
ge(r);
|
|
763
786
|
}
|
|
764
787
|
}, e;
|
|
765
|
-
}(),
|
|
766
|
-
|
|
788
|
+
}(), We = function(e) {
|
|
789
|
+
U(t, e);
|
|
767
790
|
function t(r, n, i) {
|
|
768
791
|
var s = e.call(this) || this, o;
|
|
769
|
-
return
|
|
792
|
+
return G(r) || !r ? o = {
|
|
770
793
|
next: r ?? void 0,
|
|
771
794
|
error: n ?? void 0,
|
|
772
795
|
complete: i ?? void 0
|
|
773
|
-
} : o = r, s.destination = new
|
|
796
|
+
} : o = r, s.destination = new Kr(o), s;
|
|
774
797
|
}
|
|
775
798
|
return t;
|
|
776
|
-
}(
|
|
799
|
+
}(zt);
|
|
777
800
|
function ge(e) {
|
|
778
|
-
|
|
801
|
+
Jr(e);
|
|
779
802
|
}
|
|
780
|
-
function
|
|
803
|
+
function en(e) {
|
|
781
804
|
throw e;
|
|
782
805
|
}
|
|
783
|
-
var
|
|
806
|
+
var tn = {
|
|
784
807
|
closed: !0,
|
|
785
|
-
next:
|
|
786
|
-
error:
|
|
787
|
-
complete:
|
|
788
|
-
},
|
|
808
|
+
next: dt,
|
|
809
|
+
error: en,
|
|
810
|
+
complete: dt
|
|
811
|
+
}, rn = function() {
|
|
789
812
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
790
813
|
}();
|
|
791
|
-
function
|
|
814
|
+
function nn(e) {
|
|
792
815
|
return e;
|
|
793
816
|
}
|
|
794
|
-
function
|
|
795
|
-
return e.length === 0 ?
|
|
817
|
+
function sn(e) {
|
|
818
|
+
return e.length === 0 ? nn : e.length === 1 ? e[0] : function(r) {
|
|
796
819
|
return e.reduce(function(n, i) {
|
|
797
820
|
return i(n);
|
|
798
821
|
}, r);
|
|
799
822
|
};
|
|
800
823
|
}
|
|
801
|
-
var
|
|
824
|
+
var bt = function() {
|
|
802
825
|
function e(t) {
|
|
803
826
|
t && (this._subscribe = t);
|
|
804
827
|
}
|
|
@@ -806,7 +829,7 @@ var vt = function() {
|
|
|
806
829
|
var r = new e();
|
|
807
830
|
return r.source = this, r.operator = t, r;
|
|
808
831
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
809
|
-
var i = this, s =
|
|
832
|
+
var i = this, s = an(t) ? t : new We(t, r, n);
|
|
810
833
|
return _e(function() {
|
|
811
834
|
var o = i, a = o.operator, h = o.source;
|
|
812
835
|
s.add(a ? a.call(s, h) : h ? i._subscribe(s) : i._trySubscribe(s));
|
|
@@ -819,8 +842,8 @@ var vt = function() {
|
|
|
819
842
|
}
|
|
820
843
|
}, e.prototype.forEach = function(t, r) {
|
|
821
844
|
var n = this;
|
|
822
|
-
return r =
|
|
823
|
-
var o = new
|
|
845
|
+
return r = pt(r), new r(function(i, s) {
|
|
846
|
+
var o = new We({
|
|
824
847
|
next: function(a) {
|
|
825
848
|
try {
|
|
826
849
|
t(a);
|
|
@@ -836,15 +859,15 @@ var vt = function() {
|
|
|
836
859
|
}, e.prototype._subscribe = function(t) {
|
|
837
860
|
var r;
|
|
838
861
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
839
|
-
}, e.prototype[
|
|
862
|
+
}, e.prototype[rn] = function() {
|
|
840
863
|
return this;
|
|
841
864
|
}, e.prototype.pipe = function() {
|
|
842
865
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
843
866
|
t[r] = arguments[r];
|
|
844
|
-
return
|
|
867
|
+
return sn(t)(this);
|
|
845
868
|
}, e.prototype.toPromise = function(t) {
|
|
846
869
|
var r = this;
|
|
847
|
-
return t =
|
|
870
|
+
return t = pt(t), new t(function(n, i) {
|
|
848
871
|
var s;
|
|
849
872
|
r.subscribe(function(o) {
|
|
850
873
|
return s = o;
|
|
@@ -858,32 +881,32 @@ var vt = function() {
|
|
|
858
881
|
return new e(t);
|
|
859
882
|
}, e;
|
|
860
883
|
}();
|
|
861
|
-
function
|
|
884
|
+
function pt(e) {
|
|
862
885
|
var t;
|
|
863
|
-
return (t = e ??
|
|
886
|
+
return (t = e ?? Qr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
864
887
|
}
|
|
865
|
-
function
|
|
866
|
-
return e &&
|
|
888
|
+
function on(e) {
|
|
889
|
+
return e && G(e.next) && G(e.error) && G(e.complete);
|
|
867
890
|
}
|
|
868
|
-
function
|
|
869
|
-
return e && e instanceof
|
|
891
|
+
function an(e) {
|
|
892
|
+
return e && e instanceof zt || on(e) && Wt(e);
|
|
870
893
|
}
|
|
871
|
-
var
|
|
894
|
+
var un = Vt(function(e) {
|
|
872
895
|
return function() {
|
|
873
896
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
874
897
|
};
|
|
875
|
-
}),
|
|
876
|
-
|
|
898
|
+
}), Zt = function(e) {
|
|
899
|
+
U(t, e);
|
|
877
900
|
function t() {
|
|
878
901
|
var r = e.call(this) || this;
|
|
879
902
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
880
903
|
}
|
|
881
904
|
return t.prototype.lift = function(r) {
|
|
882
|
-
var n = new
|
|
905
|
+
var n = new gt(this, this);
|
|
883
906
|
return n.operator = r, n;
|
|
884
907
|
}, t.prototype._throwIfClosed = function() {
|
|
885
908
|
if (this.closed)
|
|
886
|
-
throw new
|
|
909
|
+
throw new un();
|
|
887
910
|
}, t.prototype.next = function(r) {
|
|
888
911
|
var n = this;
|
|
889
912
|
_e(function() {
|
|
@@ -891,7 +914,7 @@ var cn = Zt(function(e) {
|
|
|
891
914
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
892
915
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
893
916
|
try {
|
|
894
|
-
for (var o =
|
|
917
|
+
for (var o = ke(n.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
|
895
918
|
var h = a.value;
|
|
896
919
|
h.next(r);
|
|
897
920
|
}
|
|
@@ -940,20 +963,20 @@ var cn = Zt(function(e) {
|
|
|
940
963
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
941
964
|
}, t.prototype._innerSubscribe = function(r) {
|
|
942
965
|
var n = this, i = this, s = i.hasError, o = i.isStopped, a = i.observers;
|
|
943
|
-
return s || o ?
|
|
944
|
-
n.currentObservers = null,
|
|
966
|
+
return s || o ? Xt : (this.currentObservers = null, a.push(r), new Te(function() {
|
|
967
|
+
n.currentObservers = null, Xe(a, r);
|
|
945
968
|
}));
|
|
946
969
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
947
970
|
var n = this, i = n.hasError, s = n.thrownError, o = n.isStopped;
|
|
948
971
|
i ? r.error(s) : o && r.complete();
|
|
949
972
|
}, t.prototype.asObservable = function() {
|
|
950
|
-
var r = new
|
|
973
|
+
var r = new bt();
|
|
951
974
|
return r.source = this, r;
|
|
952
975
|
}, t.create = function(r, n) {
|
|
953
|
-
return new
|
|
976
|
+
return new gt(r, n);
|
|
954
977
|
}, t;
|
|
955
|
-
}(
|
|
956
|
-
|
|
978
|
+
}(bt), gt = function(e) {
|
|
979
|
+
U(t, e);
|
|
957
980
|
function t(r, n) {
|
|
958
981
|
var i = e.call(this) || this;
|
|
959
982
|
return i.destination = r, i.source = n, i;
|
|
@@ -969,17 +992,17 @@ var cn = Zt(function(e) {
|
|
|
969
992
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
970
993
|
}, t.prototype._subscribe = function(r) {
|
|
971
994
|
var n, i;
|
|
972
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
995
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Xt;
|
|
973
996
|
}, t;
|
|
974
|
-
}(
|
|
997
|
+
}(Zt), qt = {
|
|
975
998
|
now: function() {
|
|
976
|
-
return (
|
|
999
|
+
return (qt.delegate || Date).now();
|
|
977
1000
|
},
|
|
978
1001
|
delegate: void 0
|
|
979
|
-
},
|
|
980
|
-
|
|
1002
|
+
}, hn = function(e) {
|
|
1003
|
+
U(t, e);
|
|
981
1004
|
function t(r, n, i) {
|
|
982
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1005
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = qt);
|
|
983
1006
|
var s = e.call(this) || this;
|
|
984
1007
|
return s._bufferSize = r, s._windowTime = n, s._timestampProvider = i, s._buffer = [], s._infiniteTimeWindow = !0, s._infiniteTimeWindow = n === 1 / 0, s._bufferSize = Math.max(1, r), s._windowTime = Math.max(1, n), s;
|
|
985
1008
|
}
|
|
@@ -999,24 +1022,24 @@ var cn = Zt(function(e) {
|
|
|
999
1022
|
u && s.splice(0, u + 1);
|
|
1000
1023
|
}
|
|
1001
1024
|
}, t;
|
|
1002
|
-
}(
|
|
1003
|
-
const
|
|
1004
|
-
if (
|
|
1005
|
-
const r = new
|
|
1006
|
-
|
|
1025
|
+
}(Zt);
|
|
1026
|
+
const yt = [], vt = {}, ln = (e, t = 0) => {
|
|
1027
|
+
if (yt.indexOf(e) == -1) {
|
|
1028
|
+
const r = new hn(t);
|
|
1029
|
+
vt[e] = r, yt.push(e);
|
|
1007
1030
|
}
|
|
1008
|
-
return
|
|
1031
|
+
return vt[e];
|
|
1009
1032
|
}, Z = [];
|
|
1010
|
-
function
|
|
1033
|
+
function cn(e, t) {
|
|
1011
1034
|
return {
|
|
1012
|
-
subscribe:
|
|
1035
|
+
subscribe: He(e, t).subscribe
|
|
1013
1036
|
};
|
|
1014
1037
|
}
|
|
1015
|
-
function
|
|
1038
|
+
function He(e, t = I) {
|
|
1016
1039
|
let r;
|
|
1017
1040
|
const n = /* @__PURE__ */ new Set();
|
|
1018
1041
|
function i(a) {
|
|
1019
|
-
if (
|
|
1042
|
+
if (Rt(e, a) && (e = a, r)) {
|
|
1020
1043
|
const h = !Z.length;
|
|
1021
1044
|
for (const u of n)
|
|
1022
1045
|
u[1](), Z.push(u, e);
|
|
@@ -1038,12 +1061,12 @@ function Ae(e, t = I) {
|
|
|
1038
1061
|
}
|
|
1039
1062
|
return { set: i, update: s, subscribe: o };
|
|
1040
1063
|
}
|
|
1041
|
-
function
|
|
1064
|
+
function se(e, t, r) {
|
|
1042
1065
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1043
1066
|
if (!i.every(Boolean))
|
|
1044
1067
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1045
1068
|
const s = t.length < 2;
|
|
1046
|
-
return
|
|
1069
|
+
return cn(r, (o, a) => {
|
|
1047
1070
|
let h = !1;
|
|
1048
1071
|
const u = [];
|
|
1049
1072
|
let l = 0, m = I;
|
|
@@ -1052,9 +1075,9 @@ function ie(e, t, r) {
|
|
|
1052
1075
|
return;
|
|
1053
1076
|
m();
|
|
1054
1077
|
const p = t(n ? u[0] : u, o, a);
|
|
1055
|
-
s ? o(p) : m =
|
|
1078
|
+
s ? o(p) : m = rt(p) ? p : I;
|
|
1056
1079
|
}, d = i.map(
|
|
1057
|
-
(p, b) =>
|
|
1080
|
+
(p, b) => Gt(
|
|
1058
1081
|
p,
|
|
1059
1082
|
(w) => {
|
|
1060
1083
|
u[b] = w, l &= ~(1 << b), h && c();
|
|
@@ -1065,157 +1088,118 @@ function ie(e, t, r) {
|
|
|
1065
1088
|
)
|
|
1066
1089
|
);
|
|
1067
1090
|
return h = !0, c(), function() {
|
|
1068
|
-
|
|
1091
|
+
re(d), m(), h = !1;
|
|
1069
1092
|
};
|
|
1070
1093
|
});
|
|
1071
1094
|
}
|
|
1072
|
-
function
|
|
1073
|
-
return e
|
|
1095
|
+
function fn(e) {
|
|
1096
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1074
1097
|
}
|
|
1075
|
-
var
|
|
1076
|
-
return
|
|
1098
|
+
var mn = function(t) {
|
|
1099
|
+
return dn(t) && !bn(t);
|
|
1077
1100
|
};
|
|
1078
|
-
function
|
|
1101
|
+
function dn(e) {
|
|
1079
1102
|
return !!e && typeof e == "object";
|
|
1080
1103
|
}
|
|
1081
|
-
function
|
|
1104
|
+
function bn(e) {
|
|
1082
1105
|
var t = Object.prototype.toString.call(e);
|
|
1083
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1106
|
+
return t === "[object RegExp]" || t === "[object Date]" || yn(e);
|
|
1084
1107
|
}
|
|
1085
|
-
var
|
|
1086
|
-
function
|
|
1087
|
-
return e.$$typeof ===
|
|
1108
|
+
var pn = typeof Symbol == "function" && Symbol.for, gn = pn ? Symbol.for("react.element") : 60103;
|
|
1109
|
+
function yn(e) {
|
|
1110
|
+
return e.$$typeof === gn;
|
|
1088
1111
|
}
|
|
1089
|
-
function
|
|
1112
|
+
function vn(e) {
|
|
1090
1113
|
return Array.isArray(e) ? [] : {};
|
|
1091
1114
|
}
|
|
1092
|
-
function
|
|
1093
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1115
|
+
function le(e, t) {
|
|
1116
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? J(vn(e), e, t) : e;
|
|
1094
1117
|
}
|
|
1095
|
-
function
|
|
1118
|
+
function _n(e, t, r) {
|
|
1096
1119
|
return e.concat(t).map(function(n) {
|
|
1097
|
-
return
|
|
1120
|
+
return le(n, r);
|
|
1098
1121
|
});
|
|
1099
1122
|
}
|
|
1100
|
-
function
|
|
1123
|
+
function En(e, t) {
|
|
1101
1124
|
if (!t.customMerge)
|
|
1102
|
-
return
|
|
1125
|
+
return J;
|
|
1103
1126
|
var r = t.customMerge(e);
|
|
1104
|
-
return typeof r == "function" ? r :
|
|
1127
|
+
return typeof r == "function" ? r : J;
|
|
1105
1128
|
}
|
|
1106
|
-
function
|
|
1129
|
+
function xn(e) {
|
|
1107
1130
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1108
1131
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1109
1132
|
}) : [];
|
|
1110
1133
|
}
|
|
1111
|
-
function
|
|
1112
|
-
return Object.keys(e).concat(
|
|
1134
|
+
function _t(e) {
|
|
1135
|
+
return Object.keys(e).concat(xn(e));
|
|
1113
1136
|
}
|
|
1114
|
-
function
|
|
1137
|
+
function Qt(e, t) {
|
|
1115
1138
|
try {
|
|
1116
1139
|
return t in e;
|
|
1117
1140
|
} catch {
|
|
1118
1141
|
return !1;
|
|
1119
1142
|
}
|
|
1120
1143
|
}
|
|
1121
|
-
function
|
|
1122
|
-
return
|
|
1144
|
+
function Sn(e, t) {
|
|
1145
|
+
return Qt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1123
1146
|
}
|
|
1124
|
-
function
|
|
1147
|
+
function wn(e, t, r) {
|
|
1125
1148
|
var n = {};
|
|
1126
|
-
return r.isMergeableObject(e) &&
|
|
1127
|
-
n[i] =
|
|
1128
|
-
}),
|
|
1129
|
-
|
|
1149
|
+
return r.isMergeableObject(e) && _t(e).forEach(function(i) {
|
|
1150
|
+
n[i] = le(e[i], r);
|
|
1151
|
+
}), _t(t).forEach(function(i) {
|
|
1152
|
+
Sn(e, i) || (Qt(e, i) && r.isMergeableObject(t[i]) ? n[i] = En(i, r)(e[i], t[i], r) : n[i] = le(t[i], r));
|
|
1130
1153
|
}), n;
|
|
1131
1154
|
}
|
|
1132
|
-
function
|
|
1133
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1155
|
+
function J(e, t, r) {
|
|
1156
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || _n, r.isMergeableObject = r.isMergeableObject || mn, r.cloneUnlessOtherwiseSpecified = le;
|
|
1134
1157
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
1135
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
1158
|
+
return s ? n ? r.arrayMerge(e, t, r) : wn(e, t, r) : le(t, r);
|
|
1136
1159
|
}
|
|
1137
|
-
|
|
1160
|
+
J.all = function(t, r) {
|
|
1138
1161
|
if (!Array.isArray(t))
|
|
1139
1162
|
throw new Error("first argument should be an array");
|
|
1140
1163
|
return t.reduce(function(n, i) {
|
|
1141
|
-
return
|
|
1164
|
+
return J(n, i, r);
|
|
1142
1165
|
}, {});
|
|
1143
1166
|
};
|
|
1144
|
-
var
|
|
1145
|
-
const
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
r.__proto__ = n;
|
|
1149
|
-
} || function(r, n) {
|
|
1150
|
-
for (var i in n)
|
|
1151
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1152
|
-
}, Ye(e, t);
|
|
1153
|
-
};
|
|
1154
|
-
function Be(e, t) {
|
|
1155
|
-
if (typeof t != "function" && t !== null)
|
|
1156
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1157
|
-
Ye(e, t);
|
|
1158
|
-
function r() {
|
|
1159
|
-
this.constructor = e;
|
|
1160
|
-
}
|
|
1161
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1162
|
-
}
|
|
1163
|
-
var R = function() {
|
|
1164
|
-
return R = Object.assign || function(t) {
|
|
1165
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1166
|
-
r = arguments[n];
|
|
1167
|
-
for (var s in r)
|
|
1168
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
1169
|
-
}
|
|
1170
|
-
return t;
|
|
1171
|
-
}, R.apply(this, arguments);
|
|
1172
|
-
};
|
|
1173
|
-
function Nn(e, t) {
|
|
1174
|
-
var r = {};
|
|
1175
|
-
for (var n in e)
|
|
1176
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1177
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1178
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1179
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1180
|
-
return r;
|
|
1181
|
-
}
|
|
1182
|
-
function Re(e, t, r) {
|
|
1183
|
-
if (r || arguments.length === 2)
|
|
1184
|
-
for (var n = 0, i = t.length, s; n < i; n++)
|
|
1185
|
-
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
1186
|
-
return e.concat(s || Array.prototype.slice.call(t));
|
|
1187
|
-
}
|
|
1188
|
-
function Ge(e, t) {
|
|
1189
|
-
var r = t && t.cache ? t.cache : Un, n = t && t.serializer ? t.serializer : Rn, i = t && t.strategy ? t.strategy : Cn;
|
|
1167
|
+
var Tn = J, Hn = Tn;
|
|
1168
|
+
const An = /* @__PURE__ */ fn(Hn);
|
|
1169
|
+
function Ce(e, t) {
|
|
1170
|
+
var r = t && t.cache ? t.cache : Cn, n = t && t.serializer ? t.serializer : Ln, i = t && t.strategy ? t.strategy : Pn;
|
|
1190
1171
|
return i(e, {
|
|
1191
1172
|
cache: r,
|
|
1192
1173
|
serializer: n
|
|
1193
1174
|
});
|
|
1194
1175
|
}
|
|
1195
|
-
function
|
|
1176
|
+
function Bn(e) {
|
|
1196
1177
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1197
1178
|
}
|
|
1198
|
-
function
|
|
1199
|
-
var i =
|
|
1179
|
+
function Yt(e, t, r, n) {
|
|
1180
|
+
var i = Bn(n) ? n : r(n), s = t.get(i);
|
|
1200
1181
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
1201
1182
|
}
|
|
1202
|
-
function
|
|
1183
|
+
function Jt(e, t, r) {
|
|
1203
1184
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
1204
1185
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
1205
1186
|
}
|
|
1206
|
-
function
|
|
1187
|
+
function nt(e, t, r, n, i) {
|
|
1207
1188
|
return r.bind(t, e, n, i);
|
|
1208
1189
|
}
|
|
1209
|
-
function
|
|
1210
|
-
var r = e.length === 1 ?
|
|
1211
|
-
return
|
|
1190
|
+
function Pn(e, t) {
|
|
1191
|
+
var r = e.length === 1 ? Yt : Jt;
|
|
1192
|
+
return nt(e, this, r, t.cache.create(), t.serializer);
|
|
1212
1193
|
}
|
|
1213
|
-
function
|
|
1214
|
-
return
|
|
1194
|
+
function Nn(e, t) {
|
|
1195
|
+
return nt(e, this, Jt, t.cache.create(), t.serializer);
|
|
1215
1196
|
}
|
|
1216
|
-
|
|
1197
|
+
function On(e, t) {
|
|
1198
|
+
return nt(e, this, Yt, t.cache.create(), t.serializer);
|
|
1199
|
+
}
|
|
1200
|
+
var Ln = function() {
|
|
1217
1201
|
return JSON.stringify(arguments);
|
|
1218
|
-
},
|
|
1202
|
+
}, In = (
|
|
1219
1203
|
/** @class */
|
|
1220
1204
|
function() {
|
|
1221
1205
|
function e() {
|
|
@@ -1227,71 +1211,62 @@ var Rn = function() {
|
|
|
1227
1211
|
this.cache[t] = r;
|
|
1228
1212
|
}, e;
|
|
1229
1213
|
}()
|
|
1230
|
-
),
|
|
1214
|
+
), Cn = {
|
|
1231
1215
|
create: function() {
|
|
1232
|
-
return new
|
|
1216
|
+
return new In();
|
|
1233
1217
|
}
|
|
1234
|
-
},
|
|
1235
|
-
variadic:
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1239
|
-
r = arguments[n];
|
|
1240
|
-
for (var s in r)
|
|
1241
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
1242
|
-
}
|
|
1243
|
-
return t;
|
|
1244
|
-
}, Se.apply(this, arguments);
|
|
1245
|
-
};
|
|
1246
|
-
var g;
|
|
1218
|
+
}, Me = {
|
|
1219
|
+
variadic: Nn,
|
|
1220
|
+
monadic: On
|
|
1221
|
+
}, g;
|
|
1247
1222
|
(function(e) {
|
|
1248
1223
|
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";
|
|
1249
1224
|
})(g || (g = {}));
|
|
1250
|
-
var
|
|
1225
|
+
var x;
|
|
1251
1226
|
(function(e) {
|
|
1252
1227
|
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";
|
|
1253
|
-
})(
|
|
1254
|
-
var
|
|
1228
|
+
})(x || (x = {}));
|
|
1229
|
+
var K;
|
|
1255
1230
|
(function(e) {
|
|
1256
1231
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1257
|
-
})(
|
|
1258
|
-
function
|
|
1259
|
-
return e.type ===
|
|
1232
|
+
})(K || (K = {}));
|
|
1233
|
+
function Et(e) {
|
|
1234
|
+
return e.type === x.literal;
|
|
1260
1235
|
}
|
|
1261
|
-
function
|
|
1262
|
-
return e.type ===
|
|
1236
|
+
function Mn(e) {
|
|
1237
|
+
return e.type === x.argument;
|
|
1263
1238
|
}
|
|
1264
|
-
function
|
|
1265
|
-
return e.type ===
|
|
1239
|
+
function Kt(e) {
|
|
1240
|
+
return e.type === x.number;
|
|
1266
1241
|
}
|
|
1267
|
-
function
|
|
1268
|
-
return e.type ===
|
|
1242
|
+
function er(e) {
|
|
1243
|
+
return e.type === x.date;
|
|
1269
1244
|
}
|
|
1270
|
-
function
|
|
1271
|
-
return e.type ===
|
|
1245
|
+
function tr(e) {
|
|
1246
|
+
return e.type === x.time;
|
|
1272
1247
|
}
|
|
1273
|
-
function
|
|
1274
|
-
return e.type ===
|
|
1248
|
+
function rr(e) {
|
|
1249
|
+
return e.type === x.select;
|
|
1275
1250
|
}
|
|
1276
|
-
function
|
|
1277
|
-
return e.type ===
|
|
1251
|
+
function nr(e) {
|
|
1252
|
+
return e.type === x.plural;
|
|
1278
1253
|
}
|
|
1279
|
-
function
|
|
1280
|
-
return e.type ===
|
|
1254
|
+
function Rn(e) {
|
|
1255
|
+
return e.type === x.pound;
|
|
1281
1256
|
}
|
|
1282
|
-
function
|
|
1283
|
-
return e.type ===
|
|
1257
|
+
function ir(e) {
|
|
1258
|
+
return e.type === x.tag;
|
|
1284
1259
|
}
|
|
1285
|
-
function
|
|
1286
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1260
|
+
function sr(e) {
|
|
1261
|
+
return !!(e && typeof e == "object" && e.type === K.number);
|
|
1287
1262
|
}
|
|
1288
|
-
function
|
|
1289
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1263
|
+
function ze(e) {
|
|
1264
|
+
return !!(e && typeof e == "object" && e.type === K.dateTime);
|
|
1290
1265
|
}
|
|
1291
|
-
var
|
|
1292
|
-
function
|
|
1266
|
+
var or = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Gn = /(?:[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;
|
|
1267
|
+
function Un(e) {
|
|
1293
1268
|
var t = {};
|
|
1294
|
-
return e.replace(
|
|
1269
|
+
return e.replace(Gn, function(r) {
|
|
1295
1270
|
var n = r.length;
|
|
1296
1271
|
switch (r[0]) {
|
|
1297
1272
|
case "G":
|
|
@@ -1380,21 +1355,11 @@ function jn(e) {
|
|
|
1380
1355
|
return "";
|
|
1381
1356
|
}), t;
|
|
1382
1357
|
}
|
|
1383
|
-
var
|
|
1384
|
-
|
|
1385
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1386
|
-
r = arguments[n];
|
|
1387
|
-
for (var s in r)
|
|
1388
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
1389
|
-
}
|
|
1390
|
-
return t;
|
|
1391
|
-
}, S.apply(this, arguments);
|
|
1392
|
-
};
|
|
1393
|
-
var kn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1394
|
-
function Vn(e) {
|
|
1358
|
+
var Dn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1359
|
+
function Fn(e) {
|
|
1395
1360
|
if (e.length === 0)
|
|
1396
1361
|
throw new Error("Number skeleton cannot be empty");
|
|
1397
|
-
for (var t = e.split(
|
|
1362
|
+
for (var t = e.split(Dn).filter(function(c) {
|
|
1398
1363
|
return c.length > 0;
|
|
1399
1364
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1400
1365
|
var s = i[n], o = s.split("/");
|
|
@@ -1409,17 +1374,17 @@ function Vn(e) {
|
|
|
1409
1374
|
}
|
|
1410
1375
|
return r;
|
|
1411
1376
|
}
|
|
1412
|
-
function
|
|
1377
|
+
function $n(e) {
|
|
1413
1378
|
return e.replace(/^(.*?)-/, "");
|
|
1414
1379
|
}
|
|
1415
|
-
var
|
|
1416
|
-
function
|
|
1380
|
+
var xt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ar = /^(@+)?(\+|#+)?[rs]?$/g, jn = /(\*)(0+)|(#+)(0+)|(0+)/g, ur = /^(0+)$/;
|
|
1381
|
+
function St(e) {
|
|
1417
1382
|
var t = {};
|
|
1418
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1383
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ar, function(r, n, i) {
|
|
1419
1384
|
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)), "";
|
|
1420
1385
|
}), t;
|
|
1421
1386
|
}
|
|
1422
|
-
function
|
|
1387
|
+
function hr(e) {
|
|
1423
1388
|
switch (e) {
|
|
1424
1389
|
case "sign-auto":
|
|
1425
1390
|
return {
|
|
@@ -1459,7 +1424,7 @@ function mr(e) {
|
|
|
1459
1424
|
};
|
|
1460
1425
|
}
|
|
1461
1426
|
}
|
|
1462
|
-
function
|
|
1427
|
+
function kn(e) {
|
|
1463
1428
|
var t;
|
|
1464
1429
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1465
1430
|
notation: "engineering"
|
|
@@ -1467,17 +1432,17 @@ function zn(e) {
|
|
|
1467
1432
|
notation: "scientific"
|
|
1468
1433
|
}, e = e.slice(1)), t) {
|
|
1469
1434
|
var r = e.slice(0, 2);
|
|
1470
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1435
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !ur.test(e))
|
|
1471
1436
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1472
1437
|
t.minimumIntegerDigits = e.length;
|
|
1473
1438
|
}
|
|
1474
1439
|
return t;
|
|
1475
1440
|
}
|
|
1476
|
-
function
|
|
1477
|
-
var t = {}, r =
|
|
1441
|
+
function wt(e) {
|
|
1442
|
+
var t = {}, r = hr(e);
|
|
1478
1443
|
return r || t;
|
|
1479
1444
|
}
|
|
1480
|
-
function
|
|
1445
|
+
function Vn(e) {
|
|
1481
1446
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1482
1447
|
var i = n[r];
|
|
1483
1448
|
switch (i.stem) {
|
|
@@ -1501,7 +1466,7 @@ function Zn(e) {
|
|
|
1501
1466
|
continue;
|
|
1502
1467
|
case "measure-unit":
|
|
1503
1468
|
case "unit":
|
|
1504
|
-
t.style = "unit", t.unit =
|
|
1469
|
+
t.style = "unit", t.unit = $n(i.options[0]);
|
|
1505
1470
|
continue;
|
|
1506
1471
|
case "compact-short":
|
|
1507
1472
|
case "K":
|
|
@@ -1512,13 +1477,13 @@ function Zn(e) {
|
|
|
1512
1477
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1513
1478
|
continue;
|
|
1514
1479
|
case "scientific":
|
|
1515
|
-
t =
|
|
1516
|
-
return
|
|
1480
|
+
t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1481
|
+
return v(v({}, h), wt(u));
|
|
1517
1482
|
}, {}));
|
|
1518
1483
|
continue;
|
|
1519
1484
|
case "engineering":
|
|
1520
|
-
t =
|
|
1521
|
-
return
|
|
1485
|
+
t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1486
|
+
return v(v({}, h), wt(u));
|
|
1522
1487
|
}, {}));
|
|
1523
1488
|
continue;
|
|
1524
1489
|
case "notation-simple":
|
|
@@ -1563,7 +1528,7 @@ function Zn(e) {
|
|
|
1563
1528
|
case "integer-width":
|
|
1564
1529
|
if (i.options.length > 1)
|
|
1565
1530
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1566
|
-
i.options[0].replace(
|
|
1531
|
+
i.options[0].replace(jn, function(h, u, l, m, c, d) {
|
|
1567
1532
|
if (u)
|
|
1568
1533
|
t.minimumIntegerDigits = l.length;
|
|
1569
1534
|
else {
|
|
@@ -1576,28 +1541,28 @@ function Zn(e) {
|
|
|
1576
1541
|
});
|
|
1577
1542
|
continue;
|
|
1578
1543
|
}
|
|
1579
|
-
if (
|
|
1544
|
+
if (ur.test(i.stem)) {
|
|
1580
1545
|
t.minimumIntegerDigits = i.stem.length;
|
|
1581
1546
|
continue;
|
|
1582
1547
|
}
|
|
1583
|
-
if (
|
|
1548
|
+
if (xt.test(i.stem)) {
|
|
1584
1549
|
if (i.options.length > 1)
|
|
1585
1550
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1586
|
-
i.stem.replace(
|
|
1551
|
+
i.stem.replace(xt, function(h, u, l, m, c, d) {
|
|
1587
1552
|
return l === "*" ? t.minimumFractionDigits = u.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1588
1553
|
});
|
|
1589
1554
|
var s = i.options[0];
|
|
1590
|
-
s === "w" ? t =
|
|
1555
|
+
s === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = v(v({}, t), St(s)));
|
|
1591
1556
|
continue;
|
|
1592
1557
|
}
|
|
1593
|
-
if (
|
|
1594
|
-
t =
|
|
1558
|
+
if (ar.test(i.stem)) {
|
|
1559
|
+
t = v(v({}, t), St(i.stem));
|
|
1595
1560
|
continue;
|
|
1596
1561
|
}
|
|
1597
|
-
var o =
|
|
1598
|
-
o && (t =
|
|
1599
|
-
var a =
|
|
1600
|
-
a && (t =
|
|
1562
|
+
var o = hr(i.stem);
|
|
1563
|
+
o && (t = v(v({}, t), o));
|
|
1564
|
+
var a = kn(i.stem);
|
|
1565
|
+
a && (t = v(v({}, t), a));
|
|
1601
1566
|
}
|
|
1602
1567
|
return t;
|
|
1603
1568
|
}
|
|
@@ -3016,13 +2981,13 @@ var ye = {
|
|
|
3016
2981
|
"h"
|
|
3017
2982
|
]
|
|
3018
2983
|
};
|
|
3019
|
-
function
|
|
2984
|
+
function Xn(e, t) {
|
|
3020
2985
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3021
2986
|
var i = e.charAt(n);
|
|
3022
2987
|
if (i === "j") {
|
|
3023
2988
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3024
2989
|
s++, n++;
|
|
3025
|
-
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u =
|
|
2990
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), h = "a", u = Wn(t);
|
|
3026
2991
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3027
2992
|
r += h;
|
|
3028
2993
|
for (; o-- > 0; )
|
|
@@ -3032,7 +2997,7 @@ function qn(e, t) {
|
|
|
3032
2997
|
}
|
|
3033
2998
|
return r;
|
|
3034
2999
|
}
|
|
3035
|
-
function
|
|
3000
|
+
function Wn(e) {
|
|
3036
3001
|
var t = e.hourCycle;
|
|
3037
3002
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3038
3003
|
e.hourCycles && // @ts-ignore
|
|
@@ -3054,20 +3019,20 @@ function Qn(e) {
|
|
|
3054
3019
|
var i = ye[n || ""] || ye[r || ""] || ye["".concat(r, "-001")] || ye["001"];
|
|
3055
3020
|
return i[0];
|
|
3056
3021
|
}
|
|
3057
|
-
var
|
|
3022
|
+
var Re, zn = new RegExp("^".concat(or.source, "*")), Zn = new RegExp("".concat(or.source, "*$"));
|
|
3058
3023
|
function y(e, t) {
|
|
3059
3024
|
return { start: e, end: t };
|
|
3060
3025
|
}
|
|
3061
|
-
var
|
|
3026
|
+
var qn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Qn = !!String.fromCodePoint, Yn = !!Object.fromEntries, Jn = !!String.prototype.codePointAt, Kn = !!String.prototype.trimStart, ei = !!String.prototype.trimEnd, ti = !!Number.isSafeInteger, ri = ti ? Number.isSafeInteger : function(e) {
|
|
3062
3027
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3063
|
-
},
|
|
3028
|
+
}, Ze = !0;
|
|
3064
3029
|
try {
|
|
3065
|
-
var
|
|
3066
|
-
|
|
3030
|
+
var ni = cr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3031
|
+
Ze = ((Re = ni.exec("a")) === null || Re === void 0 ? void 0 : Re[0]) === "a";
|
|
3067
3032
|
} catch {
|
|
3068
|
-
|
|
3033
|
+
Ze = !1;
|
|
3069
3034
|
}
|
|
3070
|
-
var
|
|
3035
|
+
var Tt = qn ? (
|
|
3071
3036
|
// Native
|
|
3072
3037
|
function(t, r, n) {
|
|
3073
3038
|
return t.startsWith(r, n);
|
|
@@ -3077,7 +3042,7 @@ var Pt = Kn ? (
|
|
|
3077
3042
|
function(t, r, n) {
|
|
3078
3043
|
return t.slice(n, n + r.length) === r;
|
|
3079
3044
|
}
|
|
3080
|
-
),
|
|
3045
|
+
), qe = Qn ? String.fromCodePoint : (
|
|
3081
3046
|
// IE11
|
|
3082
3047
|
function() {
|
|
3083
3048
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3089,9 +3054,9 @@ var Pt = Kn ? (
|
|
|
3089
3054
|
}
|
|
3090
3055
|
return n;
|
|
3091
3056
|
}
|
|
3092
|
-
),
|
|
3057
|
+
), Ht = (
|
|
3093
3058
|
// native
|
|
3094
|
-
|
|
3059
|
+
Yn ? Object.fromEntries : (
|
|
3095
3060
|
// Ponyfill
|
|
3096
3061
|
function(t) {
|
|
3097
3062
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3101,7 +3066,7 @@ var Pt = Kn ? (
|
|
|
3101
3066
|
return r;
|
|
3102
3067
|
}
|
|
3103
3068
|
)
|
|
3104
|
-
),
|
|
3069
|
+
), lr = Jn ? (
|
|
3105
3070
|
// Native
|
|
3106
3071
|
function(t, r) {
|
|
3107
3072
|
return t.codePointAt(r);
|
|
@@ -3115,7 +3080,7 @@ var Pt = Kn ? (
|
|
|
3115
3080
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
3116
3081
|
}
|
|
3117
3082
|
}
|
|
3118
|
-
),
|
|
3083
|
+
), ii = Kn ? (
|
|
3119
3084
|
// Native
|
|
3120
3085
|
function(t) {
|
|
3121
3086
|
return t.trimStart();
|
|
@@ -3123,9 +3088,9 @@ var Pt = Kn ? (
|
|
|
3123
3088
|
) : (
|
|
3124
3089
|
// Ponyfill
|
|
3125
3090
|
function(t) {
|
|
3126
|
-
return t.replace(
|
|
3091
|
+
return t.replace(zn, "");
|
|
3127
3092
|
}
|
|
3128
|
-
),
|
|
3093
|
+
), si = ei ? (
|
|
3129
3094
|
// Native
|
|
3130
3095
|
function(t) {
|
|
3131
3096
|
return t.trimEnd();
|
|
@@ -3133,32 +3098,32 @@ var Pt = Kn ? (
|
|
|
3133
3098
|
) : (
|
|
3134
3099
|
// Ponyfill
|
|
3135
3100
|
function(t) {
|
|
3136
|
-
return t.replace(
|
|
3101
|
+
return t.replace(Zn, "");
|
|
3137
3102
|
}
|
|
3138
3103
|
);
|
|
3139
|
-
function
|
|
3104
|
+
function cr(e, t) {
|
|
3140
3105
|
return new RegExp(e, t);
|
|
3141
3106
|
}
|
|
3142
|
-
var
|
|
3143
|
-
if (
|
|
3144
|
-
var
|
|
3145
|
-
|
|
3107
|
+
var Qe;
|
|
3108
|
+
if (Ze) {
|
|
3109
|
+
var At = cr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3110
|
+
Qe = function(t, r) {
|
|
3146
3111
|
var n;
|
|
3147
|
-
|
|
3148
|
-
var i =
|
|
3112
|
+
At.lastIndex = r;
|
|
3113
|
+
var i = At.exec(t);
|
|
3149
3114
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3150
3115
|
};
|
|
3151
3116
|
} else
|
|
3152
|
-
|
|
3117
|
+
Qe = function(t, r) {
|
|
3153
3118
|
for (var n = []; ; ) {
|
|
3154
|
-
var i =
|
|
3155
|
-
if (i === void 0 ||
|
|
3119
|
+
var i = lr(t, r);
|
|
3120
|
+
if (i === void 0 || fr(i) || hi(i))
|
|
3156
3121
|
break;
|
|
3157
3122
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3158
3123
|
}
|
|
3159
|
-
return
|
|
3124
|
+
return qe.apply(void 0, n);
|
|
3160
3125
|
};
|
|
3161
|
-
var
|
|
3126
|
+
var oi = (
|
|
3162
3127
|
/** @class */
|
|
3163
3128
|
function() {
|
|
3164
3129
|
function e(t, r) {
|
|
@@ -3182,14 +3147,14 @@ var li = (
|
|
|
3182
3147
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3183
3148
|
var a = this.clonePosition();
|
|
3184
3149
|
this.bump(), i.push({
|
|
3185
|
-
type:
|
|
3150
|
+
type: x.pound,
|
|
3186
3151
|
location: y(a, this.clonePosition())
|
|
3187
3152
|
});
|
|
3188
3153
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3189
3154
|
if (n)
|
|
3190
3155
|
break;
|
|
3191
3156
|
return this.error(g.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
3192
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
3157
|
+
} else if (s === 60 && !this.ignoreTag && Ye(this.peek() || 0)) {
|
|
3193
3158
|
var o = this.parseTag(t, r);
|
|
3194
3159
|
if (o.err)
|
|
3195
3160
|
return o;
|
|
@@ -3210,7 +3175,7 @@ var li = (
|
|
|
3210
3175
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3211
3176
|
return {
|
|
3212
3177
|
val: {
|
|
3213
|
-
type:
|
|
3178
|
+
type: x.literal,
|
|
3214
3179
|
value: "<".concat(i, "/>"),
|
|
3215
3180
|
location: y(n, this.clonePosition())
|
|
3216
3181
|
},
|
|
@@ -3222,12 +3187,12 @@ var li = (
|
|
|
3222
3187
|
return s;
|
|
3223
3188
|
var o = s.val, a = this.clonePosition();
|
|
3224
3189
|
if (this.bumpIf("</")) {
|
|
3225
|
-
if (this.isEOF() || !
|
|
3190
|
+
if (this.isEOF() || !Ye(this.char()))
|
|
3226
3191
|
return this.error(g.INVALID_TAG, y(a, this.clonePosition()));
|
|
3227
3192
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3228
3193
|
return i !== u ? this.error(g.UNMATCHED_CLOSING_TAG, y(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3229
3194
|
val: {
|
|
3230
|
-
type:
|
|
3195
|
+
type: x.tag,
|
|
3231
3196
|
value: i,
|
|
3232
3197
|
children: o,
|
|
3233
3198
|
location: y(n, this.clonePosition())
|
|
@@ -3240,7 +3205,7 @@ var li = (
|
|
|
3240
3205
|
return this.error(g.INVALID_TAG, y(n, this.clonePosition()));
|
|
3241
3206
|
}, e.prototype.parseTagName = function() {
|
|
3242
3207
|
var t = this.offset();
|
|
3243
|
-
for (this.bump(); !this.isEOF() &&
|
|
3208
|
+
for (this.bump(); !this.isEOF() && ui(this.char()); )
|
|
3244
3209
|
this.bump();
|
|
3245
3210
|
return this.message.slice(t, this.offset());
|
|
3246
3211
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3264,12 +3229,12 @@ var li = (
|
|
|
3264
3229
|
}
|
|
3265
3230
|
var h = y(n, this.clonePosition());
|
|
3266
3231
|
return {
|
|
3267
|
-
val: { type:
|
|
3232
|
+
val: { type: x.literal, value: i, location: h },
|
|
3268
3233
|
err: null
|
|
3269
3234
|
};
|
|
3270
3235
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3271
3236
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3272
|
-
!
|
|
3237
|
+
!ai(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3273
3238
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3274
3239
|
if (this.isEOF() || this.char() !== 39)
|
|
3275
3240
|
return null;
|
|
@@ -3303,12 +3268,12 @@ var li = (
|
|
|
3303
3268
|
r.push(n);
|
|
3304
3269
|
this.bump();
|
|
3305
3270
|
}
|
|
3306
|
-
return
|
|
3271
|
+
return qe.apply(void 0, r);
|
|
3307
3272
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3308
3273
|
if (this.isEOF())
|
|
3309
3274
|
return null;
|
|
3310
3275
|
var n = this.char();
|
|
3311
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3276
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), qe(n));
|
|
3312
3277
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3313
3278
|
var n = this.clonePosition();
|
|
3314
3279
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3324,7 +3289,7 @@ var li = (
|
|
|
3324
3289
|
case 125:
|
|
3325
3290
|
return this.bump(), {
|
|
3326
3291
|
val: {
|
|
3327
|
-
type:
|
|
3292
|
+
type: x.argument,
|
|
3328
3293
|
// value does not include the opening and closing braces.
|
|
3329
3294
|
value: i,
|
|
3330
3295
|
location: y(n, this.clonePosition())
|
|
@@ -3337,7 +3302,7 @@ var li = (
|
|
|
3337
3302
|
return this.error(g.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
3338
3303
|
}
|
|
3339
3304
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3340
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3305
|
+
var t = this.clonePosition(), r = this.offset(), n = Qe(this.message, r), i = r + n.length;
|
|
3341
3306
|
this.bumpTo(i);
|
|
3342
3307
|
var s = this.clonePosition(), o = y(t, s);
|
|
3343
3308
|
return { value: n, location: o };
|
|
@@ -3356,7 +3321,7 @@ var li = (
|
|
|
3356
3321
|
var l = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
|
|
3357
3322
|
if (m.err)
|
|
3358
3323
|
return m;
|
|
3359
|
-
var c =
|
|
3324
|
+
var c = si(m.val);
|
|
3360
3325
|
if (c.length === 0)
|
|
3361
3326
|
return this.error(g.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
3362
3327
|
var d = y(l, this.clonePosition());
|
|
@@ -3366,25 +3331,25 @@ var li = (
|
|
|
3366
3331
|
if (p.err)
|
|
3367
3332
|
return p;
|
|
3368
3333
|
var b = y(i, this.clonePosition());
|
|
3369
|
-
if (u &&
|
|
3370
|
-
var w =
|
|
3334
|
+
if (u && Tt(u?.style, "::", 0)) {
|
|
3335
|
+
var w = ii(u.style.slice(2));
|
|
3371
3336
|
if (a === "number") {
|
|
3372
3337
|
var m = this.parseNumberSkeletonFromString(w, u.styleLocation);
|
|
3373
3338
|
return m.err ? m : {
|
|
3374
|
-
val: { type:
|
|
3339
|
+
val: { type: x.number, value: n, location: b, style: m.val },
|
|
3375
3340
|
err: null
|
|
3376
3341
|
};
|
|
3377
3342
|
} else {
|
|
3378
3343
|
if (w.length === 0)
|
|
3379
3344
|
return this.error(g.EXPECT_DATE_TIME_SKELETON, b);
|
|
3380
3345
|
var C = w;
|
|
3381
|
-
this.locale && (C =
|
|
3346
|
+
this.locale && (C = Xn(w, this.locale));
|
|
3382
3347
|
var c = {
|
|
3383
|
-
type:
|
|
3348
|
+
type: K.dateTime,
|
|
3384
3349
|
pattern: C,
|
|
3385
3350
|
location: u.styleLocation,
|
|
3386
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3387
|
-
}, P = a === "date" ?
|
|
3351
|
+
parsedOptions: this.shouldParseSkeletons ? Un(C) : {}
|
|
3352
|
+
}, P = a === "date" ? x.date : x.time;
|
|
3388
3353
|
return {
|
|
3389
3354
|
val: { type: P, value: n, location: b, style: c },
|
|
3390
3355
|
err: null
|
|
@@ -3393,7 +3358,7 @@ var li = (
|
|
|
3393
3358
|
}
|
|
3394
3359
|
return {
|
|
3395
3360
|
val: {
|
|
3396
|
-
type: a === "number" ?
|
|
3361
|
+
type: a === "number" ? x.number : a === "date" ? x.date : x.time,
|
|
3397
3362
|
value: n,
|
|
3398
3363
|
location: b,
|
|
3399
3364
|
style: (s = u?.style) !== null && s !== void 0 ? s : null
|
|
@@ -3406,41 +3371,41 @@ var li = (
|
|
|
3406
3371
|
case "select": {
|
|
3407
3372
|
var T = this.clonePosition();
|
|
3408
3373
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3409
|
-
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, y(T,
|
|
3374
|
+
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, y(T, v({}, T)));
|
|
3410
3375
|
this.bumpSpace();
|
|
3411
|
-
var
|
|
3412
|
-
if (a !== "select" &&
|
|
3376
|
+
var N = this.parseIdentifierIfPossible(), H = 0;
|
|
3377
|
+
if (a !== "select" && N.value === "offset") {
|
|
3413
3378
|
if (!this.bumpIf(":"))
|
|
3414
3379
|
return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
|
3415
3380
|
this.bumpSpace();
|
|
3416
3381
|
var m = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3417
3382
|
if (m.err)
|
|
3418
3383
|
return m;
|
|
3419
|
-
this.bumpSpace(),
|
|
3384
|
+
this.bumpSpace(), N = this.parseIdentifierIfPossible(), H = m.val;
|
|
3420
3385
|
}
|
|
3421
|
-
var M = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3386
|
+
var M = this.tryParsePluralOrSelectOptions(t, a, r, N);
|
|
3422
3387
|
if (M.err)
|
|
3423
3388
|
return M;
|
|
3424
3389
|
var p = this.tryParseArgumentClose(i);
|
|
3425
3390
|
if (p.err)
|
|
3426
3391
|
return p;
|
|
3427
|
-
var
|
|
3392
|
+
var E = y(i, this.clonePosition());
|
|
3428
3393
|
return a === "select" ? {
|
|
3429
3394
|
val: {
|
|
3430
|
-
type:
|
|
3395
|
+
type: x.select,
|
|
3431
3396
|
value: n,
|
|
3432
|
-
options:
|
|
3433
|
-
location:
|
|
3397
|
+
options: Ht(M.val),
|
|
3398
|
+
location: E
|
|
3434
3399
|
},
|
|
3435
3400
|
err: null
|
|
3436
3401
|
} : {
|
|
3437
3402
|
val: {
|
|
3438
|
-
type:
|
|
3403
|
+
type: x.plural,
|
|
3439
3404
|
value: n,
|
|
3440
|
-
options:
|
|
3405
|
+
options: Ht(M.val),
|
|
3441
3406
|
offset: H,
|
|
3442
3407
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3443
|
-
location:
|
|
3408
|
+
location: E
|
|
3444
3409
|
},
|
|
3445
3410
|
err: null
|
|
3446
3411
|
};
|
|
@@ -3488,16 +3453,16 @@ var li = (
|
|
|
3488
3453
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3489
3454
|
var n = [];
|
|
3490
3455
|
try {
|
|
3491
|
-
n =
|
|
3456
|
+
n = Fn(t);
|
|
3492
3457
|
} catch {
|
|
3493
3458
|
return this.error(g.INVALID_NUMBER_SKELETON, r);
|
|
3494
3459
|
}
|
|
3495
3460
|
return {
|
|
3496
3461
|
val: {
|
|
3497
|
-
type:
|
|
3462
|
+
type: K.number,
|
|
3498
3463
|
tokens: n,
|
|
3499
3464
|
location: r,
|
|
3500
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3465
|
+
parsedOptions: this.shouldParseSkeletons ? Vn(n) : {}
|
|
3501
3466
|
},
|
|
3502
3467
|
err: null
|
|
3503
3468
|
};
|
|
@@ -3545,7 +3510,7 @@ var li = (
|
|
|
3545
3510
|
break;
|
|
3546
3511
|
}
|
|
3547
3512
|
var h = y(i, this.clonePosition());
|
|
3548
|
-
return s ? (o *= n,
|
|
3513
|
+
return s ? (o *= n, ri(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3549
3514
|
}, e.prototype.offset = function() {
|
|
3550
3515
|
return this.position.offset;
|
|
3551
3516
|
}, e.prototype.isEOF = function() {
|
|
@@ -3560,7 +3525,7 @@ var li = (
|
|
|
3560
3525
|
var t = this.position.offset;
|
|
3561
3526
|
if (t >= this.message.length)
|
|
3562
3527
|
throw Error("out of bound");
|
|
3563
|
-
var r =
|
|
3528
|
+
var r = lr(this.message, t);
|
|
3564
3529
|
if (r === void 0)
|
|
3565
3530
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3566
3531
|
return r;
|
|
@@ -3579,7 +3544,7 @@ var li = (
|
|
|
3579
3544
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3580
3545
|
}
|
|
3581
3546
|
}, e.prototype.bumpIf = function(t) {
|
|
3582
|
-
if (
|
|
3547
|
+
if (Tt(this.message, t, this.offset())) {
|
|
3583
3548
|
for (var r = 0; r < t.length; r++)
|
|
3584
3549
|
this.bump();
|
|
3585
3550
|
return !0;
|
|
@@ -3601,7 +3566,7 @@ var li = (
|
|
|
3601
3566
|
break;
|
|
3602
3567
|
}
|
|
3603
3568
|
}, e.prototype.bumpSpace = function() {
|
|
3604
|
-
for (; !this.isEOF() &&
|
|
3569
|
+
for (; !this.isEOF() && fr(this.char()); )
|
|
3605
3570
|
this.bump();
|
|
3606
3571
|
}, e.prototype.peek = function() {
|
|
3607
3572
|
if (this.isEOF())
|
|
@@ -3611,47 +3576,47 @@ var li = (
|
|
|
3611
3576
|
}, e;
|
|
3612
3577
|
}()
|
|
3613
3578
|
);
|
|
3614
|
-
function
|
|
3579
|
+
function Ye(e) {
|
|
3615
3580
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3616
3581
|
}
|
|
3617
|
-
function
|
|
3618
|
-
return
|
|
3582
|
+
function ai(e) {
|
|
3583
|
+
return Ye(e) || e === 47;
|
|
3619
3584
|
}
|
|
3620
|
-
function
|
|
3585
|
+
function ui(e) {
|
|
3621
3586
|
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;
|
|
3622
3587
|
}
|
|
3623
|
-
function
|
|
3588
|
+
function fr(e) {
|
|
3624
3589
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3625
3590
|
}
|
|
3626
|
-
function
|
|
3591
|
+
function hi(e) {
|
|
3627
3592
|
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;
|
|
3628
3593
|
}
|
|
3629
|
-
function
|
|
3594
|
+
function Je(e) {
|
|
3630
3595
|
e.forEach(function(t) {
|
|
3631
|
-
if (delete t.location,
|
|
3596
|
+
if (delete t.location, rr(t) || nr(t))
|
|
3632
3597
|
for (var r in t.options)
|
|
3633
|
-
delete t.options[r].location,
|
|
3598
|
+
delete t.options[r].location, Je(t.options[r].value);
|
|
3634
3599
|
else
|
|
3635
|
-
|
|
3600
|
+
Kt(t) && sr(t.style) || (er(t) || tr(t)) && ze(t.style) ? delete t.style.location : ir(t) && Je(t.children);
|
|
3636
3601
|
});
|
|
3637
3602
|
}
|
|
3638
|
-
function
|
|
3639
|
-
t === void 0 && (t = {}), t =
|
|
3640
|
-
var r = new
|
|
3603
|
+
function li(e, t) {
|
|
3604
|
+
t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3605
|
+
var r = new oi(e, t).parse();
|
|
3641
3606
|
if (r.err) {
|
|
3642
3607
|
var n = SyntaxError(g[r.err.kind]);
|
|
3643
3608
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3644
3609
|
}
|
|
3645
|
-
return t?.captureLocation ||
|
|
3610
|
+
return t?.captureLocation || Je(r.val), r.val;
|
|
3646
3611
|
}
|
|
3647
|
-
var
|
|
3612
|
+
var ee;
|
|
3648
3613
|
(function(e) {
|
|
3649
3614
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3650
|
-
})(
|
|
3651
|
-
var
|
|
3615
|
+
})(ee || (ee = {}));
|
|
3616
|
+
var Ae = (
|
|
3652
3617
|
/** @class */
|
|
3653
3618
|
function(e) {
|
|
3654
|
-
|
|
3619
|
+
U(t, e);
|
|
3655
3620
|
function t(r, n, i) {
|
|
3656
3621
|
var s = e.call(this, r) || this;
|
|
3657
3622
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3660,48 +3625,48 @@ var Pe = (
|
|
|
3660
3625
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3661
3626
|
}, t;
|
|
3662
3627
|
}(Error)
|
|
3663
|
-
),
|
|
3628
|
+
), Bt = (
|
|
3664
3629
|
/** @class */
|
|
3665
3630
|
function(e) {
|
|
3666
|
-
|
|
3631
|
+
U(t, e);
|
|
3667
3632
|
function t(r, n, i, s) {
|
|
3668
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3633
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ee.INVALID_VALUE, s) || this;
|
|
3669
3634
|
}
|
|
3670
3635
|
return t;
|
|
3671
|
-
}(
|
|
3672
|
-
),
|
|
3636
|
+
}(Ae)
|
|
3637
|
+
), ci = (
|
|
3673
3638
|
/** @class */
|
|
3674
3639
|
function(e) {
|
|
3675
|
-
|
|
3640
|
+
U(t, e);
|
|
3676
3641
|
function t(r, n, i) {
|
|
3677
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3642
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ee.INVALID_VALUE, i) || this;
|
|
3678
3643
|
}
|
|
3679
3644
|
return t;
|
|
3680
|
-
}(
|
|
3681
|
-
),
|
|
3645
|
+
}(Ae)
|
|
3646
|
+
), fi = (
|
|
3682
3647
|
/** @class */
|
|
3683
3648
|
function(e) {
|
|
3684
|
-
|
|
3649
|
+
U(t, e);
|
|
3685
3650
|
function t(r, n) {
|
|
3686
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3651
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ee.MISSING_VALUE, n) || this;
|
|
3687
3652
|
}
|
|
3688
3653
|
return t;
|
|
3689
|
-
}(
|
|
3654
|
+
}(Ae)
|
|
3690
3655
|
), A;
|
|
3691
3656
|
(function(e) {
|
|
3692
3657
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3693
3658
|
})(A || (A = {}));
|
|
3694
|
-
function
|
|
3659
|
+
function mi(e) {
|
|
3695
3660
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3696
3661
|
var n = t[t.length - 1];
|
|
3697
3662
|
return !n || n.type !== A.literal || r.type !== A.literal ? t.push(r) : n.value += r.value, t;
|
|
3698
3663
|
}, []);
|
|
3699
3664
|
}
|
|
3700
|
-
function
|
|
3665
|
+
function di(e) {
|
|
3701
3666
|
return typeof e == "function";
|
|
3702
3667
|
}
|
|
3703
3668
|
function Ee(e, t, r, n, i, s, o) {
|
|
3704
|
-
if (e.length === 1 &&
|
|
3669
|
+
if (e.length === 1 && Et(e[0]))
|
|
3705
3670
|
return [
|
|
3706
3671
|
{
|
|
3707
3672
|
type: A.literal,
|
|
@@ -3710,14 +3675,14 @@ function Ee(e, t, r, n, i, s, o) {
|
|
|
3710
3675
|
];
|
|
3711
3676
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3712
3677
|
var l = u[h];
|
|
3713
|
-
if (
|
|
3678
|
+
if (Et(l)) {
|
|
3714
3679
|
a.push({
|
|
3715
3680
|
type: A.literal,
|
|
3716
3681
|
value: l.value
|
|
3717
3682
|
});
|
|
3718
3683
|
continue;
|
|
3719
3684
|
}
|
|
3720
|
-
if (
|
|
3685
|
+
if (Rn(l)) {
|
|
3721
3686
|
typeof s == "number" && a.push({
|
|
3722
3687
|
type: A.literal,
|
|
3723
3688
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3726,43 +3691,43 @@ function Ee(e, t, r, n, i, s, o) {
|
|
|
3726
3691
|
}
|
|
3727
3692
|
var m = l.value;
|
|
3728
3693
|
if (!(i && m in i))
|
|
3729
|
-
throw new
|
|
3694
|
+
throw new fi(m, o);
|
|
3730
3695
|
var c = i[m];
|
|
3731
|
-
if (
|
|
3696
|
+
if (Mn(l)) {
|
|
3732
3697
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3733
3698
|
type: typeof c == "string" ? A.literal : A.object,
|
|
3734
3699
|
value: c
|
|
3735
3700
|
});
|
|
3736
3701
|
continue;
|
|
3737
3702
|
}
|
|
3738
|
-
if (
|
|
3739
|
-
var d = typeof l.style == "string" ? n.date[l.style] :
|
|
3703
|
+
if (er(l)) {
|
|
3704
|
+
var d = typeof l.style == "string" ? n.date[l.style] : ze(l.style) ? l.style.parsedOptions : void 0;
|
|
3740
3705
|
a.push({
|
|
3741
3706
|
type: A.literal,
|
|
3742
3707
|
value: r.getDateTimeFormat(t, d).format(c)
|
|
3743
3708
|
});
|
|
3744
3709
|
continue;
|
|
3745
3710
|
}
|
|
3746
|
-
if (
|
|
3747
|
-
var d = typeof l.style == "string" ? n.time[l.style] :
|
|
3711
|
+
if (tr(l)) {
|
|
3712
|
+
var d = typeof l.style == "string" ? n.time[l.style] : ze(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3748
3713
|
a.push({
|
|
3749
3714
|
type: A.literal,
|
|
3750
3715
|
value: r.getDateTimeFormat(t, d).format(c)
|
|
3751
3716
|
});
|
|
3752
3717
|
continue;
|
|
3753
3718
|
}
|
|
3754
|
-
if (
|
|
3755
|
-
var d = typeof l.style == "string" ? n.number[l.style] :
|
|
3719
|
+
if (Kt(l)) {
|
|
3720
|
+
var d = typeof l.style == "string" ? n.number[l.style] : sr(l.style) ? l.style.parsedOptions : void 0;
|
|
3756
3721
|
d && d.scale && (c = c * (d.scale || 1)), a.push({
|
|
3757
3722
|
type: A.literal,
|
|
3758
3723
|
value: r.getNumberFormat(t, d).format(c)
|
|
3759
3724
|
});
|
|
3760
3725
|
continue;
|
|
3761
3726
|
}
|
|
3762
|
-
if (
|
|
3727
|
+
if (ir(l)) {
|
|
3763
3728
|
var p = l.children, b = l.value, w = i[b];
|
|
3764
|
-
if (!
|
|
3765
|
-
throw new
|
|
3729
|
+
if (!di(w))
|
|
3730
|
+
throw new ci(b, "function", o);
|
|
3766
3731
|
var C = Ee(p, t, r, n, i, s), P = w(C.map(function(H) {
|
|
3767
3732
|
return H.value;
|
|
3768
3733
|
}));
|
|
@@ -3773,42 +3738,42 @@ function Ee(e, t, r, n, i, s, o) {
|
|
|
3773
3738
|
};
|
|
3774
3739
|
}));
|
|
3775
3740
|
}
|
|
3776
|
-
if (
|
|
3741
|
+
if (rr(l)) {
|
|
3777
3742
|
var T = l.options[c] || l.options.other;
|
|
3778
3743
|
if (!T)
|
|
3779
|
-
throw new
|
|
3744
|
+
throw new Bt(l.value, c, Object.keys(l.options), o);
|
|
3780
3745
|
a.push.apply(a, Ee(T.value, t, r, n, i));
|
|
3781
3746
|
continue;
|
|
3782
3747
|
}
|
|
3783
|
-
if (
|
|
3748
|
+
if (nr(l)) {
|
|
3784
3749
|
var T = l.options["=".concat(c)];
|
|
3785
3750
|
if (!T) {
|
|
3786
3751
|
if (!Intl.PluralRules)
|
|
3787
|
-
throw new
|
|
3752
|
+
throw new Ae(`Intl.PluralRules is not available in this environment.
|
|
3788
3753
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3789
|
-
`,
|
|
3790
|
-
var
|
|
3791
|
-
T = l.options[
|
|
3754
|
+
`, ee.MISSING_INTL_API, o);
|
|
3755
|
+
var N = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3756
|
+
T = l.options[N] || l.options.other;
|
|
3792
3757
|
}
|
|
3793
3758
|
if (!T)
|
|
3794
|
-
throw new
|
|
3759
|
+
throw new Bt(l.value, c, Object.keys(l.options), o);
|
|
3795
3760
|
a.push.apply(a, Ee(T.value, t, r, n, i, c - (l.offset || 0)));
|
|
3796
3761
|
continue;
|
|
3797
3762
|
}
|
|
3798
3763
|
}
|
|
3799
|
-
return
|
|
3764
|
+
return mi(a);
|
|
3800
3765
|
}
|
|
3801
|
-
function
|
|
3802
|
-
return t ?
|
|
3803
|
-
return r[n] =
|
|
3766
|
+
function bi(e, t) {
|
|
3767
|
+
return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3768
|
+
return r[n] = v(v({}, e[n]), t[n] || {}), r;
|
|
3804
3769
|
}, {})) : e;
|
|
3805
3770
|
}
|
|
3806
|
-
function
|
|
3771
|
+
function pi(e, t) {
|
|
3807
3772
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3808
|
-
return r[n] =
|
|
3809
|
-
},
|
|
3773
|
+
return r[n] = bi(e[n], t[n]), r;
|
|
3774
|
+
}, v({}, e)) : e;
|
|
3810
3775
|
}
|
|
3811
|
-
function
|
|
3776
|
+
function Ge(e) {
|
|
3812
3777
|
return {
|
|
3813
3778
|
create: function() {
|
|
3814
3779
|
return {
|
|
@@ -3822,39 +3787,39 @@ function $e(e) {
|
|
|
3822
3787
|
}
|
|
3823
3788
|
};
|
|
3824
3789
|
}
|
|
3825
|
-
function
|
|
3790
|
+
function gi(e) {
|
|
3826
3791
|
return e === void 0 && (e = {
|
|
3827
3792
|
number: {},
|
|
3828
3793
|
dateTime: {},
|
|
3829
3794
|
pluralRules: {}
|
|
3830
3795
|
}), {
|
|
3831
|
-
getNumberFormat:
|
|
3796
|
+
getNumberFormat: Ce(function() {
|
|
3832
3797
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3833
3798
|
r[n] = arguments[n];
|
|
3834
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3799
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Y([void 0], r, !1)))();
|
|
3835
3800
|
}, {
|
|
3836
|
-
cache:
|
|
3837
|
-
strategy:
|
|
3801
|
+
cache: Ge(e.number),
|
|
3802
|
+
strategy: Me.variadic
|
|
3838
3803
|
}),
|
|
3839
|
-
getDateTimeFormat:
|
|
3804
|
+
getDateTimeFormat: Ce(function() {
|
|
3840
3805
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3841
3806
|
r[n] = arguments[n];
|
|
3842
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3807
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Y([void 0], r, !1)))();
|
|
3843
3808
|
}, {
|
|
3844
|
-
cache:
|
|
3845
|
-
strategy:
|
|
3809
|
+
cache: Ge(e.dateTime),
|
|
3810
|
+
strategy: Me.variadic
|
|
3846
3811
|
}),
|
|
3847
|
-
getPluralRules:
|
|
3812
|
+
getPluralRules: Ce(function() {
|
|
3848
3813
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3849
3814
|
r[n] = arguments[n];
|
|
3850
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3815
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Y([void 0], r, !1)))();
|
|
3851
3816
|
}, {
|
|
3852
|
-
cache:
|
|
3853
|
-
strategy:
|
|
3817
|
+
cache: Ge(e.pluralRules),
|
|
3818
|
+
strategy: Me.variadic
|
|
3854
3819
|
})
|
|
3855
3820
|
};
|
|
3856
3821
|
}
|
|
3857
|
-
var
|
|
3822
|
+
var yi = (
|
|
3858
3823
|
/** @class */
|
|
3859
3824
|
function() {
|
|
3860
3825
|
function e(t, r, n, i) {
|
|
@@ -3886,13 +3851,13 @@ var xi = (
|
|
|
3886
3851
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3887
3852
|
var o = i || {};
|
|
3888
3853
|
o.formatters;
|
|
3889
|
-
var a =
|
|
3890
|
-
this.ast = e.__parse(t,
|
|
3854
|
+
var a = qr(o, ["formatters"]);
|
|
3855
|
+
this.ast = e.__parse(t, v(v({}, a), { locale: this.resolvedLocale }));
|
|
3891
3856
|
} else
|
|
3892
3857
|
this.ast = t;
|
|
3893
3858
|
if (!Array.isArray(this.ast))
|
|
3894
3859
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3895
|
-
this.formats =
|
|
3860
|
+
this.formats = pi(e.formats, n), this.formatters = i && i.formatters || gi(this.formatterCache);
|
|
3896
3861
|
}
|
|
3897
3862
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3898
3863
|
get: function() {
|
|
@@ -3905,7 +3870,7 @@ var xi = (
|
|
|
3905
3870
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3906
3871
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3907
3872
|
}
|
|
3908
|
-
}, e.__parse =
|
|
3873
|
+
}, e.__parse = li, e.formats = {
|
|
3909
3874
|
number: {
|
|
3910
3875
|
integer: {
|
|
3911
3876
|
maximumFractionDigits: 0
|
|
@@ -3966,7 +3931,7 @@ var xi = (
|
|
|
3966
3931
|
}, e;
|
|
3967
3932
|
}()
|
|
3968
3933
|
);
|
|
3969
|
-
function
|
|
3934
|
+
function vi(e, t) {
|
|
3970
3935
|
if (t == null)
|
|
3971
3936
|
return;
|
|
3972
3937
|
if (t in e)
|
|
@@ -3987,92 +3952,92 @@ function Si(e, t) {
|
|
|
3987
3952
|
n = void 0;
|
|
3988
3953
|
return n;
|
|
3989
3954
|
}
|
|
3990
|
-
const D = {},
|
|
3955
|
+
const D = {}, _i = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), mr = (e, t) => {
|
|
3991
3956
|
if (t == null)
|
|
3992
3957
|
return;
|
|
3993
3958
|
if (t in D && e in D[t])
|
|
3994
3959
|
return D[t][e];
|
|
3995
|
-
const r =
|
|
3960
|
+
const r = Be(t);
|
|
3996
3961
|
for (let n = 0; n < r.length; n++) {
|
|
3997
|
-
const i = r[n], s =
|
|
3962
|
+
const i = r[n], s = xi(i, e);
|
|
3998
3963
|
if (s)
|
|
3999
|
-
return
|
|
3964
|
+
return _i(e, t, s);
|
|
4000
3965
|
}
|
|
4001
3966
|
};
|
|
4002
|
-
let
|
|
4003
|
-
const me =
|
|
4004
|
-
function
|
|
4005
|
-
return
|
|
3967
|
+
let it;
|
|
3968
|
+
const me = He({});
|
|
3969
|
+
function Ei(e) {
|
|
3970
|
+
return it[e] || null;
|
|
4006
3971
|
}
|
|
4007
|
-
function
|
|
4008
|
-
return e in
|
|
3972
|
+
function dr(e) {
|
|
3973
|
+
return e in it;
|
|
4009
3974
|
}
|
|
4010
|
-
function
|
|
4011
|
-
if (!
|
|
3975
|
+
function xi(e, t) {
|
|
3976
|
+
if (!dr(e))
|
|
4012
3977
|
return null;
|
|
4013
|
-
const r =
|
|
4014
|
-
return
|
|
3978
|
+
const r = Ei(e);
|
|
3979
|
+
return vi(r, t);
|
|
4015
3980
|
}
|
|
4016
|
-
function
|
|
3981
|
+
function Si(e) {
|
|
4017
3982
|
if (e == null)
|
|
4018
3983
|
return;
|
|
4019
|
-
const t =
|
|
3984
|
+
const t = Be(e);
|
|
4020
3985
|
for (let r = 0; r < t.length; r++) {
|
|
4021
3986
|
const n = t[r];
|
|
4022
|
-
if (
|
|
3987
|
+
if (dr(n))
|
|
4023
3988
|
return n;
|
|
4024
3989
|
}
|
|
4025
3990
|
}
|
|
4026
|
-
function
|
|
4027
|
-
delete D[e], me.update((r) => (r[e] =
|
|
3991
|
+
function br(e, ...t) {
|
|
3992
|
+
delete D[e], me.update((r) => (r[e] = An.all([r[e] || {}, ...t]), r));
|
|
4028
3993
|
}
|
|
4029
|
-
|
|
3994
|
+
se(
|
|
4030
3995
|
[me],
|
|
4031
3996
|
([e]) => Object.keys(e)
|
|
4032
3997
|
);
|
|
4033
|
-
me.subscribe((e) =>
|
|
3998
|
+
me.subscribe((e) => it = e);
|
|
4034
3999
|
const xe = {};
|
|
4035
|
-
function
|
|
4000
|
+
function wi(e, t) {
|
|
4036
4001
|
xe[e].delete(t), xe[e].size === 0 && delete xe[e];
|
|
4037
4002
|
}
|
|
4038
|
-
function
|
|
4003
|
+
function pr(e) {
|
|
4039
4004
|
return xe[e];
|
|
4040
4005
|
}
|
|
4041
|
-
function
|
|
4042
|
-
return
|
|
4043
|
-
const r =
|
|
4006
|
+
function Ti(e) {
|
|
4007
|
+
return Be(e).map((t) => {
|
|
4008
|
+
const r = pr(t);
|
|
4044
4009
|
return [t, r ? [...r] : []];
|
|
4045
4010
|
}).filter(([, t]) => t.length > 0);
|
|
4046
4011
|
}
|
|
4047
|
-
function
|
|
4048
|
-
return e == null ? !1 :
|
|
4012
|
+
function Ke(e) {
|
|
4013
|
+
return e == null ? !1 : Be(e).some(
|
|
4049
4014
|
(t) => {
|
|
4050
4015
|
var r;
|
|
4051
|
-
return (r =
|
|
4016
|
+
return (r = pr(t)) == null ? void 0 : r.size;
|
|
4052
4017
|
}
|
|
4053
4018
|
);
|
|
4054
4019
|
}
|
|
4055
|
-
function
|
|
4020
|
+
function Hi(e, t) {
|
|
4056
4021
|
return Promise.all(
|
|
4057
|
-
t.map((n) => (
|
|
4058
|
-
).then((n) =>
|
|
4059
|
-
}
|
|
4060
|
-
const
|
|
4061
|
-
function
|
|
4062
|
-
if (!
|
|
4063
|
-
return e in
|
|
4064
|
-
const t =
|
|
4065
|
-
return
|
|
4022
|
+
t.map((n) => (wi(e, n), n().then((i) => i.default || i)))
|
|
4023
|
+
).then((n) => br(e, ...n));
|
|
4024
|
+
}
|
|
4025
|
+
const ae = {};
|
|
4026
|
+
function gr(e) {
|
|
4027
|
+
if (!Ke(e))
|
|
4028
|
+
return e in ae ? ae[e] : Promise.resolve();
|
|
4029
|
+
const t = Ti(e);
|
|
4030
|
+
return ae[e] = Promise.all(
|
|
4066
4031
|
t.map(
|
|
4067
|
-
([r, n]) =>
|
|
4032
|
+
([r, n]) => Hi(r, n)
|
|
4068
4033
|
)
|
|
4069
4034
|
).then(() => {
|
|
4070
|
-
if (
|
|
4071
|
-
return
|
|
4072
|
-
delete
|
|
4073
|
-
}),
|
|
4035
|
+
if (Ke(e))
|
|
4036
|
+
return gr(e);
|
|
4037
|
+
delete ae[e];
|
|
4038
|
+
}), ae[e];
|
|
4074
4039
|
}
|
|
4075
|
-
const
|
|
4040
|
+
const Ai = {
|
|
4076
4041
|
number: {
|
|
4077
4042
|
scientific: { notation: "scientific" },
|
|
4078
4043
|
engineering: { notation: "engineering" },
|
|
@@ -4101,135 +4066,135 @@ const Ni = {
|
|
|
4101
4066
|
timeZoneName: "short"
|
|
4102
4067
|
}
|
|
4103
4068
|
}
|
|
4104
|
-
},
|
|
4069
|
+
}, Bi = {
|
|
4105
4070
|
fallbackLocale: null,
|
|
4106
4071
|
loadingDelay: 200,
|
|
4107
|
-
formats:
|
|
4072
|
+
formats: Ai,
|
|
4108
4073
|
warnOnMissingMessages: !0,
|
|
4109
4074
|
handleMissingMessage: void 0,
|
|
4110
4075
|
ignoreTag: !0
|
|
4111
|
-
},
|
|
4112
|
-
function
|
|
4113
|
-
return
|
|
4114
|
-
}
|
|
4115
|
-
const
|
|
4116
|
-
var
|
|
4117
|
-
for (var r in t
|
|
4118
|
-
|
|
4119
|
-
if (
|
|
4120
|
-
for (var r of
|
|
4121
|
-
|
|
4076
|
+
}, Pi = Bi;
|
|
4077
|
+
function te() {
|
|
4078
|
+
return Pi;
|
|
4079
|
+
}
|
|
4080
|
+
const Ue = He(!1);
|
|
4081
|
+
var Ni = Object.defineProperty, Oi = Object.defineProperties, Li = Object.getOwnPropertyDescriptors, Pt = Object.getOwnPropertySymbols, Ii = Object.prototype.hasOwnProperty, Ci = Object.prototype.propertyIsEnumerable, Nt = (e, t, r) => t in e ? Ni(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Mi = (e, t) => {
|
|
4082
|
+
for (var r in t)
|
|
4083
|
+
Ii.call(t, r) && Nt(e, r, t[r]);
|
|
4084
|
+
if (Pt)
|
|
4085
|
+
for (var r of Pt(t))
|
|
4086
|
+
Ci.call(t, r) && Nt(e, r, t[r]);
|
|
4122
4087
|
return e;
|
|
4123
|
-
},
|
|
4124
|
-
let
|
|
4125
|
-
const
|
|
4126
|
-
function
|
|
4088
|
+
}, Ri = (e, t) => Oi(e, Li(t));
|
|
4089
|
+
let et;
|
|
4090
|
+
const Se = He(null);
|
|
4091
|
+
function Ot(e) {
|
|
4127
4092
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4128
4093
|
}
|
|
4129
|
-
function
|
|
4130
|
-
const r =
|
|
4131
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4094
|
+
function Be(e, t = te().fallbackLocale) {
|
|
4095
|
+
const r = Ot(e);
|
|
4096
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Ot(t)])] : r;
|
|
4132
4097
|
}
|
|
4133
4098
|
function V() {
|
|
4134
|
-
return
|
|
4099
|
+
return et ?? void 0;
|
|
4135
4100
|
}
|
|
4136
|
-
|
|
4137
|
-
|
|
4101
|
+
Se.subscribe((e) => {
|
|
4102
|
+
et = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4138
4103
|
});
|
|
4139
|
-
const
|
|
4140
|
-
if (e &&
|
|
4141
|
-
const { loadingDelay: t } =
|
|
4104
|
+
const Gi = (e) => {
|
|
4105
|
+
if (e && Si(e) && Ke(e)) {
|
|
4106
|
+
const { loadingDelay: t } = te();
|
|
4142
4107
|
let r;
|
|
4143
4108
|
return typeof window < "u" && V() != null && t ? r = window.setTimeout(
|
|
4144
|
-
() =>
|
|
4109
|
+
() => Ue.set(!0),
|
|
4145
4110
|
t
|
|
4146
|
-
) :
|
|
4147
|
-
|
|
4111
|
+
) : Ue.set(!0), gr(e).then(() => {
|
|
4112
|
+
Se.set(e);
|
|
4148
4113
|
}).finally(() => {
|
|
4149
|
-
clearTimeout(r),
|
|
4114
|
+
clearTimeout(r), Ue.set(!1);
|
|
4150
4115
|
});
|
|
4151
4116
|
}
|
|
4152
|
-
return
|
|
4153
|
-
}, de =
|
|
4154
|
-
set:
|
|
4155
|
-
}),
|
|
4117
|
+
return Se.set(e);
|
|
4118
|
+
}, de = Ri(Mi({}, Se), {
|
|
4119
|
+
set: Gi
|
|
4120
|
+
}), Pe = (e) => {
|
|
4156
4121
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4157
4122
|
return (n) => {
|
|
4158
4123
|
const i = JSON.stringify(n);
|
|
4159
4124
|
return i in t ? t[i] : t[i] = e(n);
|
|
4160
4125
|
};
|
|
4161
4126
|
};
|
|
4162
|
-
var
|
|
4127
|
+
var Ui = Object.defineProperty, we = Object.getOwnPropertySymbols, yr = Object.prototype.hasOwnProperty, vr = Object.prototype.propertyIsEnumerable, Lt = (e, t, r) => t in e ? Ui(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, st = (e, t) => {
|
|
4163
4128
|
for (var r in t || (t = {}))
|
|
4164
|
-
|
|
4165
|
-
if (
|
|
4166
|
-
for (var r of
|
|
4167
|
-
|
|
4129
|
+
yr.call(t, r) && Lt(e, r, t[r]);
|
|
4130
|
+
if (we)
|
|
4131
|
+
for (var r of we(t))
|
|
4132
|
+
vr.call(t, r) && Lt(e, r, t[r]);
|
|
4168
4133
|
return e;
|
|
4169
|
-
},
|
|
4134
|
+
}, oe = (e, t) => {
|
|
4170
4135
|
var r = {};
|
|
4171
4136
|
for (var n in e)
|
|
4172
|
-
|
|
4173
|
-
if (e != null &&
|
|
4174
|
-
for (var n of
|
|
4175
|
-
t.indexOf(n) < 0 &&
|
|
4137
|
+
yr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4138
|
+
if (e != null && we)
|
|
4139
|
+
for (var n of we(e))
|
|
4140
|
+
t.indexOf(n) < 0 && vr.call(e, n) && (r[n] = e[n]);
|
|
4176
4141
|
return r;
|
|
4177
4142
|
};
|
|
4178
|
-
const
|
|
4179
|
-
const { formats: r } =
|
|
4143
|
+
const ce = (e, t) => {
|
|
4144
|
+
const { formats: r } = te();
|
|
4180
4145
|
if (e in r && t in r[e])
|
|
4181
4146
|
return r[e][t];
|
|
4182
4147
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4183
|
-
},
|
|
4148
|
+
}, Di = Pe(
|
|
4184
4149
|
(e) => {
|
|
4185
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4150
|
+
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
4186
4151
|
if (r == null)
|
|
4187
4152
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4188
|
-
return n && (i =
|
|
4153
|
+
return n && (i = ce("number", n)), new Intl.NumberFormat(r, i);
|
|
4189
4154
|
}
|
|
4190
|
-
),
|
|
4155
|
+
), Fi = Pe(
|
|
4191
4156
|
(e) => {
|
|
4192
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4157
|
+
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
4193
4158
|
if (r == null)
|
|
4194
4159
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4195
|
-
return n ? i =
|
|
4160
|
+
return n ? i = ce("date", n) : Object.keys(i).length === 0 && (i = ce("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4196
4161
|
}
|
|
4197
|
-
),
|
|
4162
|
+
), $i = Pe(
|
|
4198
4163
|
(e) => {
|
|
4199
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4164
|
+
var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
|
|
4200
4165
|
if (r == null)
|
|
4201
4166
|
throw new Error(
|
|
4202
4167
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4203
4168
|
);
|
|
4204
|
-
return n ? i =
|
|
4169
|
+
return n ? i = ce("time", n) : Object.keys(i).length === 0 && (i = ce("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4205
4170
|
}
|
|
4206
|
-
),
|
|
4171
|
+
), ji = (e = {}) => {
|
|
4207
4172
|
var t = e, {
|
|
4208
4173
|
locale: r = V()
|
|
4209
|
-
} = t, n =
|
|
4174
|
+
} = t, n = oe(t, [
|
|
4210
4175
|
"locale"
|
|
4211
4176
|
]);
|
|
4212
|
-
return
|
|
4213
|
-
},
|
|
4177
|
+
return Di(st({ locale: r }, n));
|
|
4178
|
+
}, ki = (e = {}) => {
|
|
4214
4179
|
var t = e, {
|
|
4215
4180
|
locale: r = V()
|
|
4216
|
-
} = t, n =
|
|
4181
|
+
} = t, n = oe(t, [
|
|
4217
4182
|
"locale"
|
|
4218
4183
|
]);
|
|
4219
|
-
return
|
|
4220
|
-
},
|
|
4184
|
+
return Fi(st({ locale: r }, n));
|
|
4185
|
+
}, Vi = (e = {}) => {
|
|
4221
4186
|
var t = e, {
|
|
4222
4187
|
locale: r = V()
|
|
4223
|
-
} = t, n =
|
|
4188
|
+
} = t, n = oe(t, [
|
|
4224
4189
|
"locale"
|
|
4225
4190
|
]);
|
|
4226
|
-
return
|
|
4227
|
-
},
|
|
4191
|
+
return $i(st({ locale: r }, n));
|
|
4192
|
+
}, Xi = Pe(
|
|
4228
4193
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4229
|
-
(e, t = V()) => new
|
|
4230
|
-
ignoreTag:
|
|
4194
|
+
(e, t = V()) => new yi(e, t, te().formats, {
|
|
4195
|
+
ignoreTag: te().ignoreTag
|
|
4231
4196
|
})
|
|
4232
|
-
),
|
|
4197
|
+
), Wi = (e, t = {}) => {
|
|
4233
4198
|
var r, n, i, s;
|
|
4234
4199
|
let o = t;
|
|
4235
4200
|
typeof e == "object" && (o = e, e = o.id);
|
|
@@ -4242,9 +4207,9 @@ const le = (e, t) => {
|
|
|
4242
4207
|
throw new Error(
|
|
4243
4208
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4244
4209
|
);
|
|
4245
|
-
let l =
|
|
4210
|
+
let l = mr(e, h);
|
|
4246
4211
|
if (!l)
|
|
4247
|
-
l = (s = (i = (n = (r =
|
|
4212
|
+
l = (s = (i = (n = (r = te()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
4248
4213
|
else if (typeof l != "string")
|
|
4249
4214
|
return console.warn(
|
|
4250
4215
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4253,7 +4218,7 @@ const le = (e, t) => {
|
|
|
4253
4218
|
return l;
|
|
4254
4219
|
let m = l;
|
|
4255
4220
|
try {
|
|
4256
|
-
m =
|
|
4221
|
+
m = Xi(l, h).format(a);
|
|
4257
4222
|
} catch (c) {
|
|
4258
4223
|
c instanceof Error && console.warn(
|
|
4259
4224
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4261,17 +4226,17 @@ const le = (e, t) => {
|
|
|
4261
4226
|
);
|
|
4262
4227
|
}
|
|
4263
4228
|
return m;
|
|
4264
|
-
},
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
window.emWidgets = { topic:
|
|
4270
|
-
const
|
|
4271
|
-
function
|
|
4272
|
-
|
|
4273
|
-
}
|
|
4274
|
-
const
|
|
4229
|
+
}, zi = (e, t) => Vi(t).format(e), Zi = (e, t) => ki(t).format(e), qi = (e, t) => ji(t).format(e), Qi = (e, t = V()) => mr(e, t), Yi = se([de, me], () => Wi);
|
|
4230
|
+
se([de], () => zi);
|
|
4231
|
+
se([de], () => Zi);
|
|
4232
|
+
se([de], () => qi);
|
|
4233
|
+
se([de, me], () => Qi);
|
|
4234
|
+
window.emWidgets = { topic: ln };
|
|
4235
|
+
const Ji = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4236
|
+
function It(e, t) {
|
|
4237
|
+
br(e, t);
|
|
4238
|
+
}
|
|
4239
|
+
const Ct = {
|
|
4275
4240
|
en: {
|
|
4276
4241
|
lobbyName: "Lobby",
|
|
4277
4242
|
myGamesName: "My games"
|
|
@@ -4345,13 +4310,13 @@ const Ut = {
|
|
|
4345
4310
|
myGamesName: "My games"
|
|
4346
4311
|
}
|
|
4347
4312
|
};
|
|
4348
|
-
function
|
|
4313
|
+
function Ki(e, t) {
|
|
4349
4314
|
if (e) {
|
|
4350
4315
|
const r = document.createElement("style");
|
|
4351
4316
|
r.innerHTML = t, e.appendChild(r);
|
|
4352
4317
|
}
|
|
4353
4318
|
}
|
|
4354
|
-
function
|
|
4319
|
+
function es(e, t) {
|
|
4355
4320
|
const r = new URL(t);
|
|
4356
4321
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4357
4322
|
const i = document.createElement("style");
|
|
@@ -4360,7 +4325,7 @@ function is(e, t) {
|
|
|
4360
4325
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4361
4326
|
});
|
|
4362
4327
|
}
|
|
4363
|
-
function
|
|
4328
|
+
function ts(e, t, r) {
|
|
4364
4329
|
if (window.emMessageBus) {
|
|
4365
4330
|
const n = document.createElement("style");
|
|
4366
4331
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4380,173 +4345,173 @@ if (typeof window < "u") {
|
|
|
4380
4345
|
}
|
|
4381
4346
|
};
|
|
4382
4347
|
};
|
|
4383
|
-
customElements.define = e(customElements.define), import("./CasinoSliderNd-
|
|
4348
|
+
customElements.define = e(customElements.define), import("./CasinoSliderNd-CHo6EY-Z.js").then(({ default: t }) => {
|
|
4384
4349
|
!customElements.get("casino-slider-nd") && customElements.define("casino-slider-nd", t.element);
|
|
4385
4350
|
});
|
|
4386
4351
|
}
|
|
4387
|
-
function
|
|
4388
|
-
|
|
4352
|
+
function rs(e) {
|
|
4353
|
+
Or(e, "svelte-ciaihq", ".svelte-ciaihq{font-family:inherit}.CasinoCategoriesLoading.svelte-ciaihq{height:52px}p.svelte-ciaihq{color:var( --emw--categories-typography, var(--emw--color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-ciaihq{background:transparent;border-radius:var(--emw--border-radius-medium, 10px);padding-top:20px}");
|
|
4389
4354
|
}
|
|
4390
|
-
function
|
|
4355
|
+
function ns(e) {
|
|
4391
4356
|
let t, r;
|
|
4392
4357
|
return {
|
|
4393
4358
|
c() {
|
|
4394
|
-
t = k("div"), r = k("casino-slider-nd"),
|
|
4359
|
+
t = k("div"), r = k("casino-slider-nd"), _(
|
|
4395
4360
|
r,
|
|
4396
4361
|
"lang",
|
|
4397
4362
|
/*lang*/
|
|
4398
4363
|
e[3]
|
|
4399
|
-
),
|
|
4364
|
+
), _(
|
|
4400
4365
|
r,
|
|
4401
4366
|
"datasource",
|
|
4402
4367
|
/*datasource*/
|
|
4403
4368
|
e[2]
|
|
4404
|
-
),
|
|
4369
|
+
), _(
|
|
4405
4370
|
r,
|
|
4406
4371
|
"endpoint",
|
|
4407
4372
|
/*endpoint*/
|
|
4408
4373
|
e[1]
|
|
4409
|
-
),
|
|
4374
|
+
), _(r, "identity", tt), _(
|
|
4410
4375
|
r,
|
|
4411
4376
|
"favoritesnumber",
|
|
4412
4377
|
/*numberOfFavoredGames*/
|
|
4413
4378
|
e[16]
|
|
4414
|
-
),
|
|
4379
|
+
), _(
|
|
4415
4380
|
r,
|
|
4416
4381
|
"showsubgroups",
|
|
4417
4382
|
/*showsubgroups*/
|
|
4418
4383
|
e[9]
|
|
4419
|
-
),
|
|
4384
|
+
), _(
|
|
4420
4385
|
r,
|
|
4421
4386
|
"clientstyling",
|
|
4422
4387
|
/*clientstyling*/
|
|
4423
4388
|
e[5]
|
|
4424
|
-
),
|
|
4389
|
+
), _(
|
|
4425
4390
|
r,
|
|
4426
4391
|
"clientstylingurl",
|
|
4427
4392
|
/*clientstylingurl*/
|
|
4428
4393
|
e[6]
|
|
4429
|
-
),
|
|
4394
|
+
), _(
|
|
4430
4395
|
r,
|
|
4431
4396
|
"activeindex",
|
|
4432
4397
|
/*activecategory*/
|
|
4433
4398
|
e[0]
|
|
4434
|
-
),
|
|
4399
|
+
), _(
|
|
4435
4400
|
r,
|
|
4436
4401
|
"actionevent",
|
|
4437
4402
|
/*actionevent*/
|
|
4438
4403
|
e[7]
|
|
4439
|
-
),
|
|
4404
|
+
), _(
|
|
4440
4405
|
r,
|
|
4441
4406
|
"location",
|
|
4442
4407
|
/*location*/
|
|
4443
4408
|
e[8]
|
|
4444
|
-
),
|
|
4409
|
+
), _(
|
|
4445
4410
|
r,
|
|
4446
4411
|
"categoriesicon",
|
|
4447
4412
|
/*categoriesicon*/
|
|
4448
4413
|
e[10]
|
|
4449
|
-
),
|
|
4414
|
+
), _(
|
|
4450
4415
|
r,
|
|
4451
4416
|
"lobbyiconimage",
|
|
4452
4417
|
/*lobbyiconimage*/
|
|
4453
4418
|
e[11]
|
|
4454
|
-
),
|
|
4419
|
+
), _(
|
|
4455
4420
|
r,
|
|
4456
4421
|
"mygamesiconimage",
|
|
4457
4422
|
/*mygamesiconimage*/
|
|
4458
4423
|
e[12]
|
|
4459
|
-
),
|
|
4424
|
+
), _(
|
|
4460
4425
|
r,
|
|
4461
4426
|
"mbsource",
|
|
4462
4427
|
/*mbsource*/
|
|
4463
4428
|
e[4]
|
|
4464
|
-
),
|
|
4429
|
+
), _(r, "class", "svelte-ciaihq"), ie(t, "class", "CasinoCategoriesContainer svelte-ciaihq");
|
|
4465
4430
|
},
|
|
4466
4431
|
m(n, i) {
|
|
4467
|
-
|
|
4432
|
+
fe(n, t, i), Ut(t, r);
|
|
4468
4433
|
},
|
|
4469
4434
|
p(n, i) {
|
|
4470
4435
|
i[0] & /*lang*/
|
|
4471
|
-
8 &&
|
|
4436
|
+
8 && _(
|
|
4472
4437
|
r,
|
|
4473
4438
|
"lang",
|
|
4474
4439
|
/*lang*/
|
|
4475
4440
|
n[3]
|
|
4476
4441
|
), i[0] & /*datasource*/
|
|
4477
|
-
4 &&
|
|
4442
|
+
4 && _(
|
|
4478
4443
|
r,
|
|
4479
4444
|
"datasource",
|
|
4480
4445
|
/*datasource*/
|
|
4481
4446
|
n[2]
|
|
4482
4447
|
), i[0] & /*endpoint*/
|
|
4483
|
-
2 &&
|
|
4448
|
+
2 && _(
|
|
4484
4449
|
r,
|
|
4485
4450
|
"endpoint",
|
|
4486
4451
|
/*endpoint*/
|
|
4487
4452
|
n[1]
|
|
4488
4453
|
), i[0] & /*numberOfFavoredGames*/
|
|
4489
|
-
65536 &&
|
|
4454
|
+
65536 && _(
|
|
4490
4455
|
r,
|
|
4491
4456
|
"favoritesnumber",
|
|
4492
4457
|
/*numberOfFavoredGames*/
|
|
4493
4458
|
n[16]
|
|
4494
4459
|
), i[0] & /*showsubgroups*/
|
|
4495
|
-
512 &&
|
|
4460
|
+
512 && _(
|
|
4496
4461
|
r,
|
|
4497
4462
|
"showsubgroups",
|
|
4498
4463
|
/*showsubgroups*/
|
|
4499
4464
|
n[9]
|
|
4500
4465
|
), i[0] & /*clientstyling*/
|
|
4501
|
-
32 &&
|
|
4466
|
+
32 && _(
|
|
4502
4467
|
r,
|
|
4503
4468
|
"clientstyling",
|
|
4504
4469
|
/*clientstyling*/
|
|
4505
4470
|
n[5]
|
|
4506
4471
|
), i[0] & /*clientstylingurl*/
|
|
4507
|
-
64 &&
|
|
4472
|
+
64 && _(
|
|
4508
4473
|
r,
|
|
4509
4474
|
"clientstylingurl",
|
|
4510
4475
|
/*clientstylingurl*/
|
|
4511
4476
|
n[6]
|
|
4512
4477
|
), i[0] & /*activecategory*/
|
|
4513
|
-
1 &&
|
|
4478
|
+
1 && _(
|
|
4514
4479
|
r,
|
|
4515
4480
|
"activeindex",
|
|
4516
4481
|
/*activecategory*/
|
|
4517
4482
|
n[0]
|
|
4518
4483
|
), i[0] & /*actionevent*/
|
|
4519
|
-
128 &&
|
|
4484
|
+
128 && _(
|
|
4520
4485
|
r,
|
|
4521
4486
|
"actionevent",
|
|
4522
4487
|
/*actionevent*/
|
|
4523
4488
|
n[7]
|
|
4524
4489
|
), i[0] & /*location*/
|
|
4525
|
-
256 &&
|
|
4490
|
+
256 && _(
|
|
4526
4491
|
r,
|
|
4527
4492
|
"location",
|
|
4528
4493
|
/*location*/
|
|
4529
4494
|
n[8]
|
|
4530
4495
|
), i[0] & /*categoriesicon*/
|
|
4531
|
-
1024 &&
|
|
4496
|
+
1024 && _(
|
|
4532
4497
|
r,
|
|
4533
4498
|
"categoriesicon",
|
|
4534
4499
|
/*categoriesicon*/
|
|
4535
4500
|
n[10]
|
|
4536
4501
|
), i[0] & /*lobbyiconimage*/
|
|
4537
|
-
2048 &&
|
|
4502
|
+
2048 && _(
|
|
4538
4503
|
r,
|
|
4539
4504
|
"lobbyiconimage",
|
|
4540
4505
|
/*lobbyiconimage*/
|
|
4541
4506
|
n[11]
|
|
4542
4507
|
), i[0] & /*mygamesiconimage*/
|
|
4543
|
-
4096 &&
|
|
4508
|
+
4096 && _(
|
|
4544
4509
|
r,
|
|
4545
4510
|
"mygamesiconimage",
|
|
4546
4511
|
/*mygamesiconimage*/
|
|
4547
4512
|
n[12]
|
|
4548
4513
|
), i[0] & /*mbsource*/
|
|
4549
|
-
16 &&
|
|
4514
|
+
16 && _(
|
|
4550
4515
|
r,
|
|
4551
4516
|
"mbsource",
|
|
4552
4517
|
/*mbsource*/
|
|
@@ -4554,58 +4519,58 @@ function as(e) {
|
|
|
4554
4519
|
);
|
|
4555
4520
|
},
|
|
4556
4521
|
d(n) {
|
|
4557
|
-
n &&
|
|
4522
|
+
n && ne(t);
|
|
4558
4523
|
}
|
|
4559
4524
|
};
|
|
4560
4525
|
}
|
|
4561
|
-
function
|
|
4526
|
+
function is(e) {
|
|
4562
4527
|
let t;
|
|
4563
4528
|
return {
|
|
4564
4529
|
c() {
|
|
4565
|
-
t = k("p"), t.textContent = "500 Error - Internal Server Error.",
|
|
4530
|
+
t = k("p"), t.textContent = "500 Error - Internal Server Error.", ie(t, "class", "SearchLoading svelte-ciaihq");
|
|
4566
4531
|
},
|
|
4567
4532
|
m(r, n) {
|
|
4568
|
-
|
|
4533
|
+
fe(r, t, n);
|
|
4569
4534
|
},
|
|
4570
4535
|
p: I,
|
|
4571
4536
|
d(r) {
|
|
4572
|
-
r &&
|
|
4537
|
+
r && ne(t);
|
|
4573
4538
|
}
|
|
4574
4539
|
};
|
|
4575
4540
|
}
|
|
4576
|
-
function
|
|
4541
|
+
function ss(e) {
|
|
4577
4542
|
let t;
|
|
4578
4543
|
return {
|
|
4579
4544
|
c() {
|
|
4580
|
-
t = k("div"),
|
|
4545
|
+
t = k("div"), ie(t, "class", "CasinoCategoriesLoading svelte-ciaihq");
|
|
4581
4546
|
},
|
|
4582
4547
|
m(r, n) {
|
|
4583
|
-
|
|
4548
|
+
fe(r, t, n);
|
|
4584
4549
|
},
|
|
4585
4550
|
p: I,
|
|
4586
4551
|
d(r) {
|
|
4587
|
-
r &&
|
|
4552
|
+
r && ne(t);
|
|
4588
4553
|
}
|
|
4589
4554
|
};
|
|
4590
4555
|
}
|
|
4591
|
-
function
|
|
4556
|
+
function os(e) {
|
|
4592
4557
|
let t;
|
|
4593
4558
|
function r(s, o) {
|
|
4594
4559
|
return (
|
|
4595
4560
|
/*isLoading*/
|
|
4596
|
-
s[13] ||
|
|
4561
|
+
s[13] || as || us ? ss : (
|
|
4597
4562
|
/*hasErrors*/
|
|
4598
|
-
s[15] ?
|
|
4563
|
+
s[15] ? is : ns
|
|
4599
4564
|
)
|
|
4600
4565
|
);
|
|
4601
4566
|
}
|
|
4602
4567
|
let n = r(e), i = n(e);
|
|
4603
4568
|
return {
|
|
4604
4569
|
c() {
|
|
4605
|
-
t = k("div"), i.c(),
|
|
4570
|
+
t = k("div"), i.c(), ie(t, "class", "svelte-ciaihq");
|
|
4606
4571
|
},
|
|
4607
4572
|
m(s, o) {
|
|
4608
|
-
|
|
4573
|
+
fe(s, t, o), i.m(t, null), e[26](t);
|
|
4609
4574
|
},
|
|
4610
4575
|
p(s, o) {
|
|
4611
4576
|
n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t, null)));
|
|
@@ -4613,54 +4578,54 @@ function ls(e) {
|
|
|
4613
4578
|
i: I,
|
|
4614
4579
|
o: I,
|
|
4615
4580
|
d(s) {
|
|
4616
|
-
s &&
|
|
4581
|
+
s && ne(t), i.d(), e[26](null);
|
|
4617
4582
|
}
|
|
4618
4583
|
};
|
|
4619
4584
|
}
|
|
4620
|
-
let
|
|
4621
|
-
function
|
|
4585
|
+
let tt = "CasinoSliderData", as = !1, us = !1;
|
|
4586
|
+
function hs(e, t, r) {
|
|
4622
4587
|
let n;
|
|
4623
|
-
|
|
4624
|
-
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "" } = t, { userid: a = "" } = t, { session: h = "" } = t, { mostplayed: u = "" } = t, { lastplayed: l = "false" } = t, { favorites: m = "" } = t, { mbsource: c } = t, { clientstyling: d = "" } = t, { clientstylingurl: p = "" } = t, { activecategory: b = "" } = t, { actionevent: w = "" } = t, { sessioncheck: C = "" } = t, { location: P = "secondaryMenu" } = t, { showsubgroups: T = "false" } = t, { filteredcategories:
|
|
4625
|
-
const
|
|
4588
|
+
Nr(e, Yi, (f) => r(32, n = f));
|
|
4589
|
+
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "" } = t, { userid: a = "" } = t, { session: h = "" } = t, { mostplayed: u = "" } = t, { lastplayed: l = "false" } = t, { favorites: m = "" } = t, { mbsource: c } = t, { clientstyling: d = "" } = t, { clientstylingurl: p = "" } = t, { activecategory: b = "" } = t, { actionevent: w = "" } = t, { sessioncheck: C = "" } = t, { location: P = "secondaryMenu" } = t, { showsubgroups: T = "false" } = t, { filteredcategories: N = "" } = t, { translationurl: H = "" } = t, { categoriesicon: M = "" } = t, { lobbyiconimage: E = "" } = t, { mygamesiconimage: O = "" } = t, L, F, $ = !0, X, W = [], j = !1, _r = window.navigator.userAgent, R, ot, at = !1, Ne = !1;
|
|
4590
|
+
const Er = () => {
|
|
4626
4591
|
fetch(H).then((B) => B.json()).then((B) => {
|
|
4627
4592
|
Object.keys(B).forEach((be) => {
|
|
4628
|
-
|
|
4593
|
+
It(be, B[be]);
|
|
4629
4594
|
});
|
|
4630
4595
|
}).catch((B) => {
|
|
4631
4596
|
console.log(B);
|
|
4632
4597
|
});
|
|
4633
4598
|
};
|
|
4634
|
-
Object.keys(
|
|
4635
|
-
|
|
4599
|
+
Object.keys(Ct).forEach((f) => {
|
|
4600
|
+
It(f, Ct[f]);
|
|
4636
4601
|
});
|
|
4637
|
-
const
|
|
4638
|
-
|
|
4602
|
+
const xr = () => {
|
|
4603
|
+
at == !1 && (m == "true" || u == "true" || l == "true") && W.splice(1, 0, {
|
|
4639
4604
|
// @ts-ignore
|
|
4640
4605
|
id: "MYGAMES",
|
|
4641
4606
|
name: L,
|
|
4642
4607
|
href: "",
|
|
4643
4608
|
games: []
|
|
4644
|
-
}),
|
|
4645
|
-
},
|
|
4646
|
-
if (L = n("myGamesName"),
|
|
4609
|
+
}), Ur(), at = !0, r(25, Ne = !0), ut();
|
|
4610
|
+
}, Sr = () => (i || (X = "Endpoint is missing! Please provide a valid endpointURL.", r(15, j = !0), r(13, $ = !1), console.error(X)), s || (X = "Datasource is missing! Please provide a valid datasource.", r(15, j = !0), r(13, $ = !1), console.error(X)), (!o || o.length < 2) && (X = "Language is missing! Please provide a valid language (alpha2code)", r(15, j = !0), r(13, $ = !1), console.error(X)), j), wr = () => {
|
|
4611
|
+
if (L = n("myGamesName"), F = n("lobbyName"), !Sr()) {
|
|
4647
4612
|
let f = new URL(`${i}/v2/casino/groups/${s}`);
|
|
4648
|
-
f.searchParams.append("language", o), f.searchParams.append("platform",
|
|
4613
|
+
f.searchParams.append("language", o), f.searchParams.append("platform", Ji(_r)), f.searchParams.append("fields", "id,name,games(href)"), fetch(f).then((B) => B.json()).then(
|
|
4649
4614
|
(B) => {
|
|
4650
|
-
let be =
|
|
4651
|
-
let
|
|
4652
|
-
if (
|
|
4653
|
-
for (let
|
|
4654
|
-
|
|
4655
|
-
return
|
|
4615
|
+
let be = N.split(","), Ar = B.items.filter((lt) => {
|
|
4616
|
+
let Oe = !1;
|
|
4617
|
+
if (lt.games.total > 0 && (Oe = !0, N))
|
|
4618
|
+
for (let Br of be)
|
|
4619
|
+
lt.flags == Br && (Oe = !1);
|
|
4620
|
+
return Oe;
|
|
4656
4621
|
});
|
|
4657
|
-
W = [], W = W.concat(
|
|
4622
|
+
W = [], W = W.concat(Ar), W.unshift({
|
|
4658
4623
|
// @ts-ignore
|
|
4659
4624
|
id: "LOBBY",
|
|
4660
|
-
name:
|
|
4625
|
+
name: F,
|
|
4661
4626
|
href: "",
|
|
4662
4627
|
games: []
|
|
4663
|
-
}), r(13,
|
|
4628
|
+
}), r(13, $ = !1);
|
|
4664
4629
|
},
|
|
4665
4630
|
(B) => {
|
|
4666
4631
|
r(15, j = !0), console.error("There was an error while fetching the categories", B);
|
|
@@ -4669,41 +4634,41 @@ function ms(e, t, r) {
|
|
|
4669
4634
|
r(15, j = !0), console.error("There was an error while fetching the categories", B);
|
|
4670
4635
|
});
|
|
4671
4636
|
}
|
|
4672
|
-
},
|
|
4637
|
+
}, Tr = () => {
|
|
4673
4638
|
let f = b.split("$");
|
|
4674
4639
|
r(0, b = f.length > 2 ? b.split("$").slice(0, 2).join("$") : b);
|
|
4675
|
-
},
|
|
4640
|
+
}, ut = () => {
|
|
4676
4641
|
window.postMessage(
|
|
4677
4642
|
{
|
|
4678
4643
|
type: "SliderData",
|
|
4679
|
-
identity:
|
|
4644
|
+
identity: tt,
|
|
4680
4645
|
data: W
|
|
4681
4646
|
},
|
|
4682
4647
|
window.location.href
|
|
4683
4648
|
);
|
|
4684
|
-
},
|
|
4685
|
-
f.data && f.data.type == "SliderMounted" && f.data.identity ==
|
|
4649
|
+
}, ht = (f) => {
|
|
4650
|
+
f.data && f.data.type == "SliderMounted" && f.data.identity == tt && ut();
|
|
4686
4651
|
};
|
|
4687
|
-
|
|
4688
|
-
window.removeEventListener("message",
|
|
4652
|
+
Gr(() => (window.addEventListener("message", ht), () => {
|
|
4653
|
+
window.removeEventListener("message", ht);
|
|
4689
4654
|
}));
|
|
4690
|
-
function
|
|
4691
|
-
|
|
4692
|
-
|
|
4655
|
+
function Hr(f) {
|
|
4656
|
+
De[f ? "unshift" : "push"](() => {
|
|
4657
|
+
R = f, r(14, R);
|
|
4693
4658
|
});
|
|
4694
4659
|
}
|
|
4695
4660
|
return e.$$set = (f) => {
|
|
4696
|
-
"endpoint" in f && r(1, i = f.endpoint), "datasource" in f && r(2, s = f.datasource), "lang" in f && r(3, o = f.lang), "userid" in f && r(17, a = f.userid), "session" in f && r(18, h = f.session), "mostplayed" in f && r(19, u = f.mostplayed), "lastplayed" in f && r(20, l = f.lastplayed), "favorites" in f && r(21, m = f.favorites), "mbsource" in f && r(4, c = f.mbsource), "clientstyling" in f && r(5, d = f.clientstyling), "clientstylingurl" in f && r(6, p = f.clientstylingurl), "activecategory" in f && r(0, b = f.activecategory), "actionevent" in f && r(7, w = f.actionevent), "sessioncheck" in f && r(22, C = f.sessioncheck), "location" in f && r(8, P = f.location), "showsubgroups" in f && r(9, T = f.showsubgroups), "filteredcategories" in f && r(23,
|
|
4661
|
+
"endpoint" in f && r(1, i = f.endpoint), "datasource" in f && r(2, s = f.datasource), "lang" in f && r(3, o = f.lang), "userid" in f && r(17, a = f.userid), "session" in f && r(18, h = f.session), "mostplayed" in f && r(19, u = f.mostplayed), "lastplayed" in f && r(20, l = f.lastplayed), "favorites" in f && r(21, m = f.favorites), "mbsource" in f && r(4, c = f.mbsource), "clientstyling" in f && r(5, d = f.clientstyling), "clientstylingurl" in f && r(6, p = f.clientstylingurl), "activecategory" in f && r(0, b = f.activecategory), "actionevent" in f && r(7, w = f.actionevent), "sessioncheck" in f && r(22, C = f.sessioncheck), "location" in f && r(8, P = f.location), "showsubgroups" in f && r(9, T = f.showsubgroups), "filteredcategories" in f && r(23, N = f.filteredcategories), "translationurl" in f && r(24, H = f.translationurl), "categoriesicon" in f && r(10, M = f.categoriesicon), "lobbyiconimage" in f && r(11, E = f.lobbyiconimage), "mygamesiconimage" in f && r(12, O = f.mygamesiconimage);
|
|
4697
4662
|
}, e.$$.update = () => {
|
|
4698
4663
|
e.$$.dirty[0] & /*endpoint, datasource, lang*/
|
|
4699
|
-
14 && i && s && o &&
|
|
4700
|
-
3940354 && i && h && (u || l || m) &&
|
|
4701
|
-
33824769 &&
|
|
4702
|
-
16777216 && H &&
|
|
4703
|
-
16416 && d &&
|
|
4704
|
-
16448 && p &&
|
|
4705
|
-
16400 && c &&
|
|
4706
|
-
}, r(16,
|
|
4664
|
+
14 && i && s && o && wr(), e.$$.dirty[0] & /*endpoint, session, mostplayed, lastplayed, favorites, isLoading*/
|
|
4665
|
+
3940354 && i && h && (u || l || m) && !$ && xr(), e.$$.dirty[0] & /*isLoading, activecategory, session, confirmCategoryParse*/
|
|
4666
|
+
33824769 && !$ && b && (!h || Ne) && Tr(), e.$$.dirty[0] & /*translationurl*/
|
|
4667
|
+
16777216 && H && Er(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4668
|
+
16416 && d && R && Ki(R, d), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4669
|
+
16448 && p && R && es(R, p), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
4670
|
+
16400 && c && R && ts(R, `${c}.Style`);
|
|
4671
|
+
}, r(16, ot = 0), [
|
|
4707
4672
|
b,
|
|
4708
4673
|
i,
|
|
4709
4674
|
s,
|
|
@@ -4715,32 +4680,32 @@ function ms(e, t, r) {
|
|
|
4715
4680
|
P,
|
|
4716
4681
|
T,
|
|
4717
4682
|
M,
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4683
|
+
E,
|
|
4684
|
+
O,
|
|
4685
|
+
$,
|
|
4686
|
+
R,
|
|
4722
4687
|
j,
|
|
4723
|
-
|
|
4688
|
+
ot,
|
|
4724
4689
|
a,
|
|
4725
4690
|
h,
|
|
4726
4691
|
u,
|
|
4727
4692
|
l,
|
|
4728
4693
|
m,
|
|
4729
4694
|
C,
|
|
4730
|
-
|
|
4695
|
+
N,
|
|
4731
4696
|
H,
|
|
4732
|
-
|
|
4733
|
-
|
|
4697
|
+
Ne,
|
|
4698
|
+
Hr
|
|
4734
4699
|
];
|
|
4735
4700
|
}
|
|
4736
|
-
class
|
|
4701
|
+
class ls extends zr {
|
|
4737
4702
|
constructor(t) {
|
|
4738
|
-
super(),
|
|
4703
|
+
super(), Xr(
|
|
4739
4704
|
this,
|
|
4740
4705
|
t,
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4706
|
+
hs,
|
|
4707
|
+
os,
|
|
4708
|
+
Rt,
|
|
4744
4709
|
{
|
|
4745
4710
|
endpoint: 1,
|
|
4746
4711
|
datasource: 2,
|
|
@@ -4764,7 +4729,7 @@ class ds extends Yr {
|
|
|
4764
4729
|
lobbyiconimage: 11,
|
|
4765
4730
|
mygamesiconimage: 12
|
|
4766
4731
|
},
|
|
4767
|
-
|
|
4732
|
+
rs,
|
|
4768
4733
|
[-1, -1]
|
|
4769
4734
|
);
|
|
4770
4735
|
}
|
|
@@ -4772,163 +4737,163 @@ class ds extends Yr {
|
|
|
4772
4737
|
return this.$$.ctx[1];
|
|
4773
4738
|
}
|
|
4774
4739
|
set endpoint(t) {
|
|
4775
|
-
this.$$set({ endpoint: t }),
|
|
4740
|
+
this.$$set({ endpoint: t }), S();
|
|
4776
4741
|
}
|
|
4777
4742
|
get datasource() {
|
|
4778
4743
|
return this.$$.ctx[2];
|
|
4779
4744
|
}
|
|
4780
4745
|
set datasource(t) {
|
|
4781
|
-
this.$$set({ datasource: t }),
|
|
4746
|
+
this.$$set({ datasource: t }), S();
|
|
4782
4747
|
}
|
|
4783
4748
|
get lang() {
|
|
4784
4749
|
return this.$$.ctx[3];
|
|
4785
4750
|
}
|
|
4786
4751
|
set lang(t) {
|
|
4787
|
-
this.$$set({ lang: t }),
|
|
4752
|
+
this.$$set({ lang: t }), S();
|
|
4788
4753
|
}
|
|
4789
4754
|
get userid() {
|
|
4790
4755
|
return this.$$.ctx[17];
|
|
4791
4756
|
}
|
|
4792
4757
|
set userid(t) {
|
|
4793
|
-
this.$$set({ userid: t }),
|
|
4758
|
+
this.$$set({ userid: t }), S();
|
|
4794
4759
|
}
|
|
4795
4760
|
get session() {
|
|
4796
4761
|
return this.$$.ctx[18];
|
|
4797
4762
|
}
|
|
4798
4763
|
set session(t) {
|
|
4799
|
-
this.$$set({ session: t }),
|
|
4764
|
+
this.$$set({ session: t }), S();
|
|
4800
4765
|
}
|
|
4801
4766
|
get mostplayed() {
|
|
4802
4767
|
return this.$$.ctx[19];
|
|
4803
4768
|
}
|
|
4804
4769
|
set mostplayed(t) {
|
|
4805
|
-
this.$$set({ mostplayed: t }),
|
|
4770
|
+
this.$$set({ mostplayed: t }), S();
|
|
4806
4771
|
}
|
|
4807
4772
|
get lastplayed() {
|
|
4808
4773
|
return this.$$.ctx[20];
|
|
4809
4774
|
}
|
|
4810
4775
|
set lastplayed(t) {
|
|
4811
|
-
this.$$set({ lastplayed: t }),
|
|
4776
|
+
this.$$set({ lastplayed: t }), S();
|
|
4812
4777
|
}
|
|
4813
4778
|
get favorites() {
|
|
4814
4779
|
return this.$$.ctx[21];
|
|
4815
4780
|
}
|
|
4816
4781
|
set favorites(t) {
|
|
4817
|
-
this.$$set({ favorites: t }),
|
|
4782
|
+
this.$$set({ favorites: t }), S();
|
|
4818
4783
|
}
|
|
4819
4784
|
get mbsource() {
|
|
4820
4785
|
return this.$$.ctx[4];
|
|
4821
4786
|
}
|
|
4822
4787
|
set mbsource(t) {
|
|
4823
|
-
this.$$set({ mbsource: t }),
|
|
4788
|
+
this.$$set({ mbsource: t }), S();
|
|
4824
4789
|
}
|
|
4825
4790
|
get clientstyling() {
|
|
4826
4791
|
return this.$$.ctx[5];
|
|
4827
4792
|
}
|
|
4828
4793
|
set clientstyling(t) {
|
|
4829
|
-
this.$$set({ clientstyling: t }),
|
|
4794
|
+
this.$$set({ clientstyling: t }), S();
|
|
4830
4795
|
}
|
|
4831
4796
|
get clientstylingurl() {
|
|
4832
4797
|
return this.$$.ctx[6];
|
|
4833
4798
|
}
|
|
4834
4799
|
set clientstylingurl(t) {
|
|
4835
|
-
this.$$set({ clientstylingurl: t }),
|
|
4800
|
+
this.$$set({ clientstylingurl: t }), S();
|
|
4836
4801
|
}
|
|
4837
4802
|
get activecategory() {
|
|
4838
4803
|
return this.$$.ctx[0];
|
|
4839
4804
|
}
|
|
4840
4805
|
set activecategory(t) {
|
|
4841
|
-
this.$$set({ activecategory: t }),
|
|
4806
|
+
this.$$set({ activecategory: t }), S();
|
|
4842
4807
|
}
|
|
4843
4808
|
get actionevent() {
|
|
4844
4809
|
return this.$$.ctx[7];
|
|
4845
4810
|
}
|
|
4846
4811
|
set actionevent(t) {
|
|
4847
|
-
this.$$set({ actionevent: t }),
|
|
4812
|
+
this.$$set({ actionevent: t }), S();
|
|
4848
4813
|
}
|
|
4849
4814
|
get sessioncheck() {
|
|
4850
4815
|
return this.$$.ctx[22];
|
|
4851
4816
|
}
|
|
4852
4817
|
set sessioncheck(t) {
|
|
4853
|
-
this.$$set({ sessioncheck: t }),
|
|
4818
|
+
this.$$set({ sessioncheck: t }), S();
|
|
4854
4819
|
}
|
|
4855
4820
|
get location() {
|
|
4856
4821
|
return this.$$.ctx[8];
|
|
4857
4822
|
}
|
|
4858
4823
|
set location(t) {
|
|
4859
|
-
this.$$set({ location: t }),
|
|
4824
|
+
this.$$set({ location: t }), S();
|
|
4860
4825
|
}
|
|
4861
4826
|
get showsubgroups() {
|
|
4862
4827
|
return this.$$.ctx[9];
|
|
4863
4828
|
}
|
|
4864
4829
|
set showsubgroups(t) {
|
|
4865
|
-
this.$$set({ showsubgroups: t }),
|
|
4830
|
+
this.$$set({ showsubgroups: t }), S();
|
|
4866
4831
|
}
|
|
4867
4832
|
get filteredcategories() {
|
|
4868
4833
|
return this.$$.ctx[23];
|
|
4869
4834
|
}
|
|
4870
4835
|
set filteredcategories(t) {
|
|
4871
|
-
this.$$set({ filteredcategories: t }),
|
|
4836
|
+
this.$$set({ filteredcategories: t }), S();
|
|
4872
4837
|
}
|
|
4873
4838
|
get translationurl() {
|
|
4874
4839
|
return this.$$.ctx[24];
|
|
4875
4840
|
}
|
|
4876
4841
|
set translationurl(t) {
|
|
4877
|
-
this.$$set({ translationurl: t }),
|
|
4842
|
+
this.$$set({ translationurl: t }), S();
|
|
4878
4843
|
}
|
|
4879
4844
|
get categoriesicon() {
|
|
4880
4845
|
return this.$$.ctx[10];
|
|
4881
4846
|
}
|
|
4882
4847
|
set categoriesicon(t) {
|
|
4883
|
-
this.$$set({ categoriesicon: t }),
|
|
4848
|
+
this.$$set({ categoriesicon: t }), S();
|
|
4884
4849
|
}
|
|
4885
4850
|
get lobbyiconimage() {
|
|
4886
4851
|
return this.$$.ctx[11];
|
|
4887
4852
|
}
|
|
4888
4853
|
set lobbyiconimage(t) {
|
|
4889
|
-
this.$$set({ lobbyiconimage: t }),
|
|
4854
|
+
this.$$set({ lobbyiconimage: t }), S();
|
|
4890
4855
|
}
|
|
4891
4856
|
get mygamesiconimage() {
|
|
4892
4857
|
return this.$$.ctx[12];
|
|
4893
4858
|
}
|
|
4894
4859
|
set mygamesiconimage(t) {
|
|
4895
|
-
this.$$set({ mygamesiconimage: t }),
|
|
4860
|
+
this.$$set({ mygamesiconimage: t }), S();
|
|
4896
4861
|
}
|
|
4897
4862
|
}
|
|
4898
|
-
|
|
4863
|
+
Wr(ls, { endpoint: {}, datasource: {}, lang: {}, userid: {}, session: {}, mostplayed: {}, lastplayed: {}, favorites: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, activecategory: {}, actionevent: {}, sessioncheck: {}, location: {}, showsubgroups: {}, filteredcategories: {}, translationurl: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {} }, [], [], !0);
|
|
4899
4864
|
export {
|
|
4900
4865
|
de as $,
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4866
|
+
fs as A,
|
|
4867
|
+
Dt as B,
|
|
4868
|
+
gs as C,
|
|
4869
|
+
ms as D,
|
|
4870
|
+
cs as E,
|
|
4871
|
+
ls as F,
|
|
4872
|
+
zr as S,
|
|
4908
4873
|
me as a,
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
k,
|
|
4919
|
-
|
|
4920
|
-
|
|
4874
|
+
br as b,
|
|
4875
|
+
Wr as c,
|
|
4876
|
+
Or as d,
|
|
4877
|
+
k as e,
|
|
4878
|
+
S as f,
|
|
4879
|
+
ds as g,
|
|
4880
|
+
ie as h,
|
|
4881
|
+
Xr as i,
|
|
4882
|
+
fe as j,
|
|
4883
|
+
Ut as k,
|
|
4884
|
+
ps as l,
|
|
4885
|
+
ne as m,
|
|
4921
4886
|
I as n,
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4887
|
+
Ji as o,
|
|
4888
|
+
Gr as p,
|
|
4889
|
+
ys as q,
|
|
4890
|
+
re as r,
|
|
4891
|
+
Rt as s,
|
|
4892
|
+
bs as t,
|
|
4893
|
+
_s as u,
|
|
4894
|
+
De as v,
|
|
4895
|
+
Ki as w,
|
|
4896
|
+
es as x,
|
|
4897
|
+
ts as y,
|
|
4898
|
+
vs as z
|
|
4934
4899
|
};
|