@everymatrix/casino-random-game 1.62.0 → 1.62.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoRandomGame-B-Oro-Qy.js → CasinoRandomGame-BJdVVGMg.js} +788 -772
- package/components/CasinoRandomGame-CKTvUc9J.cjs +19 -0
- package/components/{CasinoRandomGame-Fy7y3ChE.js → CasinoRandomGame-CWc4CPuZ.js} +837 -821
- package/es2015/casino-random-game.cjs +1 -1
- package/es2015/casino-random-game.js +1 -1
- package/esnext/casino-random-game.js +1 -1
- package/package.json +1 -1
- package/components/CasinoRandomGame-DJ9hXMGz.cjs +0 -19
- package/stencil/app-globals-0f993ce5-D-kw1sls.js +0 -5
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +0 -1
- package/stencil/index-b7bbd57e-6KaMTlNN.js +0 -534
- package/stencil/index-b7bbd57e-BSagye0B.js +0 -550
- package/stencil/index-b7bbd57e-DIQXXTTR.cjs +0 -1
- package/stencil/ui-image-38c3c15f-CumwWbNu.js +0 -39
- package/stencil/ui-image-38c3c15f-Dxl-aZb-.js +0 -39
- package/stencil/ui-image-38c3c15f-y5t5ZLG0.cjs +0 -1
- package/stencil/ui-image-BQa5UbqU.js +0 -11
- package/stencil/ui-image-Bi4jDe3D.js +0 -29
- package/stencil/ui-image-z441BZiX.cjs +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
var Zr = Object.defineProperty, Qr = Object.defineProperties;
|
|
2
2
|
var Yr = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var yt = Object.getOwnPropertySymbols;
|
|
4
4
|
var qr = Object.prototype.hasOwnProperty, Kr = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var $e = (e, t, r) => t in e ? Zr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, vt = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
qr.call(t, r) &&
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
Kr.call(t, r) &&
|
|
7
|
+
qr.call(t, r) && $e(e, r, t[r]);
|
|
8
|
+
if (yt)
|
|
9
|
+
for (var r of yt(t))
|
|
10
|
+
Kr.call(t, r) && $e(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, _t = (e, t) => Qr(e, Yr(t));
|
|
13
|
+
var N = (e, t, r) => ($e(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var ye = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (h) => {
|
|
16
16
|
try {
|
|
17
17
|
s(r.next(h));
|
|
@@ -27,8 +27,7 @@ var ve = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, s = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o, a);
|
|
28
28
|
s((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
|
|
31
|
-
function N() {
|
|
30
|
+
function G() {
|
|
32
31
|
}
|
|
33
32
|
function en(e, t) {
|
|
34
33
|
for (const r in t)
|
|
@@ -38,47 +37,47 @@ function en(e, t) {
|
|
|
38
37
|
e
|
|
39
38
|
);
|
|
40
39
|
}
|
|
41
|
-
function
|
|
40
|
+
function qt(e) {
|
|
42
41
|
return e();
|
|
43
42
|
}
|
|
44
|
-
function
|
|
43
|
+
function xt() {
|
|
45
44
|
return /* @__PURE__ */ Object.create(null);
|
|
46
45
|
}
|
|
47
|
-
function
|
|
48
|
-
e.forEach(
|
|
46
|
+
function J(e) {
|
|
47
|
+
e.forEach(qt);
|
|
49
48
|
}
|
|
50
|
-
function
|
|
49
|
+
function ft(e) {
|
|
51
50
|
return typeof e == "function";
|
|
52
51
|
}
|
|
53
|
-
function
|
|
52
|
+
function Kt(e, t) {
|
|
54
53
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
55
54
|
}
|
|
56
|
-
let
|
|
57
|
-
function
|
|
58
|
-
return e === t ? !0 : (
|
|
55
|
+
let ve;
|
|
56
|
+
function Et(e, t) {
|
|
57
|
+
return e === t ? !0 : (ve || (ve = document.createElement("a")), ve.href = t, e === ve.href);
|
|
59
58
|
}
|
|
60
59
|
function tn(e) {
|
|
61
60
|
return Object.keys(e).length === 0;
|
|
62
61
|
}
|
|
63
|
-
function
|
|
62
|
+
function er(e, ...t) {
|
|
64
63
|
if (e == null) {
|
|
65
64
|
for (const n of t)
|
|
66
65
|
n(void 0);
|
|
67
|
-
return
|
|
66
|
+
return G;
|
|
68
67
|
}
|
|
69
68
|
const r = e.subscribe(...t);
|
|
70
69
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
71
70
|
}
|
|
72
71
|
function rn(e, t, r) {
|
|
73
|
-
e.$$.on_destroy.push(
|
|
72
|
+
e.$$.on_destroy.push(er(t, r));
|
|
74
73
|
}
|
|
75
74
|
function nn(e, t, r, n) {
|
|
76
75
|
if (e) {
|
|
77
|
-
const i =
|
|
76
|
+
const i = tr(e, t, r, n);
|
|
78
77
|
return e[0](i);
|
|
79
78
|
}
|
|
80
79
|
}
|
|
81
|
-
function
|
|
80
|
+
function tr(e, t, r, n) {
|
|
82
81
|
return e[1] && n ? en(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
83
82
|
}
|
|
84
83
|
function on(e, t, r, n) {
|
|
@@ -98,7 +97,7 @@ function on(e, t, r, n) {
|
|
|
98
97
|
}
|
|
99
98
|
function an(e, t, r, n, i, o) {
|
|
100
99
|
if (i) {
|
|
101
|
-
const a =
|
|
100
|
+
const a = tr(t, r, n, o);
|
|
102
101
|
e.p(a, i);
|
|
103
102
|
}
|
|
104
103
|
}
|
|
@@ -111,13 +110,13 @@ function sn(e) {
|
|
|
111
110
|
}
|
|
112
111
|
return -1;
|
|
113
112
|
}
|
|
114
|
-
function
|
|
113
|
+
function _(e, t) {
|
|
115
114
|
e.appendChild(t);
|
|
116
115
|
}
|
|
117
116
|
function un(e, t, r) {
|
|
118
117
|
const n = ln(e);
|
|
119
118
|
if (!n.getElementById(t)) {
|
|
120
|
-
const i =
|
|
119
|
+
const i = w("style");
|
|
121
120
|
i.id = t, i.textContent = r, hn(n, i);
|
|
122
121
|
}
|
|
123
122
|
}
|
|
@@ -132,26 +131,26 @@ function ln(e) {
|
|
|
132
131
|
) : e.ownerDocument;
|
|
133
132
|
}
|
|
134
133
|
function hn(e, t) {
|
|
135
|
-
return
|
|
134
|
+
return _(
|
|
136
135
|
/** @type {Document} */
|
|
137
136
|
e.head || e,
|
|
138
137
|
t
|
|
139
138
|
), t.sheet;
|
|
140
139
|
}
|
|
141
|
-
function
|
|
140
|
+
function I(e, t, r) {
|
|
142
141
|
e.insertBefore(t, r || null);
|
|
143
142
|
}
|
|
144
|
-
function
|
|
143
|
+
function O(e) {
|
|
145
144
|
e.parentNode && e.parentNode.removeChild(e);
|
|
146
145
|
}
|
|
147
146
|
function cn(e, t) {
|
|
148
147
|
for (let r = 0; r < e.length; r += 1)
|
|
149
148
|
e[r] && e[r].d(t);
|
|
150
149
|
}
|
|
151
|
-
function
|
|
150
|
+
function w(e) {
|
|
152
151
|
return document.createElement(e);
|
|
153
152
|
}
|
|
154
|
-
function
|
|
153
|
+
function wt(e) {
|
|
155
154
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
156
155
|
}
|
|
157
156
|
function k(e) {
|
|
@@ -160,20 +159,16 @@ function k(e) {
|
|
|
160
159
|
function V() {
|
|
161
160
|
return k(" ");
|
|
162
161
|
}
|
|
163
|
-
function
|
|
162
|
+
function Be(e, t, r, n) {
|
|
164
163
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
165
164
|
}
|
|
166
|
-
function
|
|
165
|
+
function g(e, t, r) {
|
|
167
166
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
168
167
|
}
|
|
169
|
-
function X(e, t, r) {
|
|
170
|
-
const n = t.toLowerCase();
|
|
171
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : _(e, t, r);
|
|
172
|
-
}
|
|
173
168
|
function fn(e) {
|
|
174
169
|
return Array.from(e.childNodes);
|
|
175
170
|
}
|
|
176
|
-
function
|
|
171
|
+
function z(e, t) {
|
|
177
172
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
178
173
|
t);
|
|
179
174
|
}
|
|
@@ -186,123 +181,123 @@ function mn(e) {
|
|
|
186
181
|
}
|
|
187
182
|
), t;
|
|
188
183
|
}
|
|
189
|
-
let
|
|
190
|
-
function
|
|
191
|
-
|
|
184
|
+
let fe;
|
|
185
|
+
function he(e) {
|
|
186
|
+
fe = e;
|
|
192
187
|
}
|
|
193
188
|
function dn() {
|
|
194
|
-
if (!
|
|
189
|
+
if (!fe)
|
|
195
190
|
throw new Error("Function called outside component initialization");
|
|
196
|
-
return
|
|
191
|
+
return fe;
|
|
197
192
|
}
|
|
198
193
|
function pn(e) {
|
|
199
194
|
dn().$$.on_mount.push(e);
|
|
200
195
|
}
|
|
201
|
-
const
|
|
202
|
-
let
|
|
203
|
-
const
|
|
204
|
-
let
|
|
205
|
-
function
|
|
206
|
-
|
|
196
|
+
const K = [], Ae = [];
|
|
197
|
+
let ee = [];
|
|
198
|
+
const St = [], rr = /* @__PURE__ */ Promise.resolve();
|
|
199
|
+
let Je = !1;
|
|
200
|
+
function nr() {
|
|
201
|
+
Je || (Je = !0, rr.then(R));
|
|
207
202
|
}
|
|
208
203
|
function bn() {
|
|
209
|
-
return
|
|
204
|
+
return nr(), rr;
|
|
210
205
|
}
|
|
211
|
-
function
|
|
212
|
-
|
|
206
|
+
function Ze(e) {
|
|
207
|
+
ee.push(e);
|
|
213
208
|
}
|
|
214
209
|
const De = /* @__PURE__ */ new Set();
|
|
215
|
-
let
|
|
216
|
-
function
|
|
217
|
-
if (
|
|
210
|
+
let Y = 0;
|
|
211
|
+
function R() {
|
|
212
|
+
if (Y !== 0)
|
|
218
213
|
return;
|
|
219
|
-
const e =
|
|
214
|
+
const e = fe;
|
|
220
215
|
do {
|
|
221
216
|
try {
|
|
222
|
-
for (;
|
|
223
|
-
const t =
|
|
224
|
-
|
|
217
|
+
for (; Y < K.length; ) {
|
|
218
|
+
const t = K[Y];
|
|
219
|
+
Y++, he(t), gn(t.$$);
|
|
225
220
|
}
|
|
226
221
|
} catch (t) {
|
|
227
|
-
throw
|
|
222
|
+
throw K.length = 0, Y = 0, t;
|
|
228
223
|
}
|
|
229
|
-
for (
|
|
230
|
-
|
|
231
|
-
for (let t = 0; t <
|
|
232
|
-
const r =
|
|
224
|
+
for (he(null), K.length = 0, Y = 0; Ae.length; )
|
|
225
|
+
Ae.pop()();
|
|
226
|
+
for (let t = 0; t < ee.length; t += 1) {
|
|
227
|
+
const r = ee[t];
|
|
233
228
|
De.has(r) || (De.add(r), r());
|
|
234
229
|
}
|
|
235
|
-
|
|
236
|
-
} while (
|
|
237
|
-
for (;
|
|
238
|
-
|
|
239
|
-
|
|
230
|
+
ee.length = 0;
|
|
231
|
+
} while (K.length);
|
|
232
|
+
for (; St.length; )
|
|
233
|
+
St.pop()();
|
|
234
|
+
Je = !1, De.clear(), he(e);
|
|
240
235
|
}
|
|
241
236
|
function gn(e) {
|
|
242
237
|
if (e.fragment !== null) {
|
|
243
|
-
e.update(),
|
|
238
|
+
e.update(), J(e.before_update);
|
|
244
239
|
const t = e.dirty;
|
|
245
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
240
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ze);
|
|
246
241
|
}
|
|
247
242
|
}
|
|
248
243
|
function yn(e) {
|
|
249
244
|
const t = [], r = [];
|
|
250
|
-
|
|
245
|
+
ee.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ee = t;
|
|
251
246
|
}
|
|
252
|
-
const
|
|
253
|
-
let
|
|
247
|
+
const Ee = /* @__PURE__ */ new Set();
|
|
248
|
+
let X;
|
|
254
249
|
function vn() {
|
|
255
|
-
|
|
250
|
+
X = {
|
|
256
251
|
r: 0,
|
|
257
252
|
c: [],
|
|
258
|
-
p:
|
|
253
|
+
p: X
|
|
259
254
|
// parent group
|
|
260
255
|
};
|
|
261
256
|
}
|
|
262
257
|
function _n() {
|
|
263
|
-
|
|
258
|
+
X.r || J(X.c), X = X.p;
|
|
264
259
|
}
|
|
265
|
-
function
|
|
266
|
-
e && e.i && (
|
|
260
|
+
function ce(e, t) {
|
|
261
|
+
e && e.i && (Ee.delete(e), e.i(t));
|
|
267
262
|
}
|
|
268
|
-
function
|
|
263
|
+
function Qe(e, t, r, n) {
|
|
269
264
|
if (e && e.o) {
|
|
270
|
-
if (
|
|
265
|
+
if (Ee.has(e))
|
|
271
266
|
return;
|
|
272
|
-
|
|
273
|
-
|
|
267
|
+
Ee.add(e), X.c.push(() => {
|
|
268
|
+
Ee.delete(e), n && (r && e.d(1), n());
|
|
274
269
|
}), e.o(t);
|
|
275
270
|
} else
|
|
276
271
|
n && n();
|
|
277
272
|
}
|
|
278
|
-
function
|
|
273
|
+
function Tt(e) {
|
|
279
274
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
280
275
|
}
|
|
281
276
|
function xn(e, t, r) {
|
|
282
277
|
const { fragment: n, after_update: i } = e.$$;
|
|
283
|
-
n && n.m(t, r),
|
|
284
|
-
const o = e.$$.on_mount.map(
|
|
285
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
286
|
-
}), i.forEach(
|
|
278
|
+
n && n.m(t, r), Ze(() => {
|
|
279
|
+
const o = e.$$.on_mount.map(qt).filter(ft);
|
|
280
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : J(o), e.$$.on_mount = [];
|
|
281
|
+
}), i.forEach(Ze);
|
|
287
282
|
}
|
|
288
283
|
function En(e, t) {
|
|
289
284
|
const r = e.$$;
|
|
290
|
-
r.fragment !== null && (yn(r.after_update),
|
|
285
|
+
r.fragment !== null && (yn(r.after_update), J(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
291
286
|
}
|
|
292
287
|
function wn(e, t) {
|
|
293
|
-
e.$$.dirty[0] === -1 && (
|
|
288
|
+
e.$$.dirty[0] === -1 && (K.push(e), nr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
294
289
|
}
|
|
295
290
|
function Sn(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
296
|
-
const h =
|
|
297
|
-
|
|
291
|
+
const h = fe;
|
|
292
|
+
he(e);
|
|
298
293
|
const l = e.$$ = {
|
|
299
294
|
fragment: null,
|
|
300
295
|
ctx: [],
|
|
301
296
|
// state
|
|
302
297
|
props: o,
|
|
303
|
-
update:
|
|
298
|
+
update: G,
|
|
304
299
|
not_equal: i,
|
|
305
|
-
bound:
|
|
300
|
+
bound: xt(),
|
|
306
301
|
// lifecycle
|
|
307
302
|
on_mount: [],
|
|
308
303
|
on_destroy: [],
|
|
@@ -311,7 +306,7 @@ function Sn(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
311
306
|
after_update: [],
|
|
312
307
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
313
308
|
// everything else
|
|
314
|
-
callbacks:
|
|
309
|
+
callbacks: xt(),
|
|
315
310
|
dirty: s,
|
|
316
311
|
skip_bound: !1,
|
|
317
312
|
root: t.target || h.$$.root
|
|
@@ -321,38 +316,38 @@ function Sn(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
321
316
|
if (l.ctx = r ? r(e, t.props || {}, (f, c, ...m) => {
|
|
322
317
|
const d = m.length ? m[0] : c;
|
|
323
318
|
return l.ctx && i(l.ctx[f], l.ctx[f] = d) && (!l.skip_bound && l.bound[f] && l.bound[f](d), u && wn(e, f)), c;
|
|
324
|
-
}) : [], l.update(), u = !0,
|
|
319
|
+
}) : [], l.update(), u = !0, J(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
325
320
|
if (t.hydrate) {
|
|
326
321
|
const f = fn(t.target);
|
|
327
|
-
l.fragment && l.fragment.l(f), f.forEach(
|
|
322
|
+
l.fragment && l.fragment.l(f), f.forEach(O);
|
|
328
323
|
} else
|
|
329
324
|
l.fragment && l.fragment.c();
|
|
330
|
-
t.intro &&
|
|
325
|
+
t.intro && ce(e.$$.fragment), xn(e, t.target, t.anchor), R();
|
|
331
326
|
}
|
|
332
|
-
|
|
327
|
+
he(h);
|
|
333
328
|
}
|
|
334
|
-
let
|
|
335
|
-
typeof HTMLElement == "function" && (
|
|
329
|
+
let ir;
|
|
330
|
+
typeof HTMLElement == "function" && (ir = class extends HTMLElement {
|
|
336
331
|
constructor(t, r, n) {
|
|
337
332
|
super();
|
|
338
333
|
/** The Svelte component constructor */
|
|
339
|
-
|
|
334
|
+
N(this, "$$ctor");
|
|
340
335
|
/** Slots */
|
|
341
|
-
|
|
336
|
+
N(this, "$$s");
|
|
342
337
|
/** The Svelte component instance */
|
|
343
|
-
|
|
338
|
+
N(this, "$$c");
|
|
344
339
|
/** Whether or not the custom element is connected */
|
|
345
|
-
|
|
340
|
+
N(this, "$$cn", !1);
|
|
346
341
|
/** Component props data */
|
|
347
|
-
|
|
342
|
+
N(this, "$$d", {});
|
|
348
343
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
349
|
-
|
|
344
|
+
N(this, "$$r", !1);
|
|
350
345
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
351
|
-
|
|
346
|
+
N(this, "$$p_d", {});
|
|
352
347
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
353
|
-
|
|
348
|
+
N(this, "$$l", {});
|
|
354
349
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
355
|
-
|
|
350
|
+
N(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
356
351
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
357
352
|
}
|
|
358
353
|
addEventListener(t, r, n) {
|
|
@@ -369,24 +364,24 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
|
|
|
369
364
|
}
|
|
370
365
|
}
|
|
371
366
|
connectedCallback() {
|
|
372
|
-
return
|
|
367
|
+
return ye(this, null, function* () {
|
|
373
368
|
if (this.$$cn = !0, !this.$$c) {
|
|
374
369
|
let t = function(o) {
|
|
375
370
|
return () => {
|
|
376
371
|
let a;
|
|
377
372
|
return {
|
|
378
373
|
c: function() {
|
|
379
|
-
a =
|
|
374
|
+
a = w("slot"), o !== "default" && g(a, "name", o);
|
|
380
375
|
},
|
|
381
376
|
/**
|
|
382
377
|
* @param {HTMLElement} target
|
|
383
378
|
* @param {HTMLElement} [anchor]
|
|
384
379
|
*/
|
|
385
380
|
m: function(l, u) {
|
|
386
|
-
|
|
381
|
+
I(l, a, u);
|
|
387
382
|
},
|
|
388
383
|
d: function(l) {
|
|
389
|
-
l &&
|
|
384
|
+
l && O(a);
|
|
390
385
|
}
|
|
391
386
|
};
|
|
392
387
|
};
|
|
@@ -398,13 +393,13 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
|
|
|
398
393
|
o in n && (r[o] = [t(o)]);
|
|
399
394
|
for (const o of this.attributes) {
|
|
400
395
|
const a = this.$$g_p(o.name);
|
|
401
|
-
a in this.$$d || (this.$$d[a] =
|
|
396
|
+
a in this.$$d || (this.$$d[a] = we(a, o.value, this.$$p_d, "toProp"));
|
|
402
397
|
}
|
|
403
398
|
for (const o in this.$$p_d)
|
|
404
399
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
405
400
|
this.$$c = new this.$$ctor({
|
|
406
401
|
target: this.shadowRoot || this,
|
|
407
|
-
props: vt(
|
|
402
|
+
props: _t(vt({}, this.$$d), {
|
|
408
403
|
$$slots: r,
|
|
409
404
|
$$scope: {
|
|
410
405
|
ctx: []
|
|
@@ -415,7 +410,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
|
|
|
415
410
|
this.$$r = !0;
|
|
416
411
|
for (const o in this.$$p_d)
|
|
417
412
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
418
|
-
const a =
|
|
413
|
+
const a = we(
|
|
419
414
|
o,
|
|
420
415
|
this.$$d[o],
|
|
421
416
|
this.$$p_d,
|
|
@@ -439,7 +434,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
|
|
|
439
434
|
// and setting attributes through setAttribute etc, this is helpful
|
|
440
435
|
attributeChangedCallback(t, r, n) {
|
|
441
436
|
var i;
|
|
442
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
437
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = we(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
443
438
|
}
|
|
444
439
|
disconnectedCallback() {
|
|
445
440
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -452,7 +447,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
|
|
|
452
447
|
) || t;
|
|
453
448
|
}
|
|
454
449
|
});
|
|
455
|
-
function
|
|
450
|
+
function we(e, t, r, n) {
|
|
456
451
|
var o;
|
|
457
452
|
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
458
453
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -483,7 +478,7 @@ function Se(e, t, r, n) {
|
|
|
483
478
|
}
|
|
484
479
|
}
|
|
485
480
|
function Tn(e, t, r, n, i, o) {
|
|
486
|
-
let a = class extends
|
|
481
|
+
let a = class extends ir {
|
|
487
482
|
constructor() {
|
|
488
483
|
super(e, r, i), this.$$p_d = t;
|
|
489
484
|
}
|
|
@@ -500,7 +495,7 @@ function Tn(e, t, r, n, i, o) {
|
|
|
500
495
|
},
|
|
501
496
|
set(h) {
|
|
502
497
|
var l;
|
|
503
|
-
h =
|
|
498
|
+
h = we(s, h, t), this.$$d[s] = h, (l = this.$$c) == null || l.$set({ [s]: h });
|
|
504
499
|
}
|
|
505
500
|
});
|
|
506
501
|
}), n.forEach((s) => {
|
|
@@ -522,7 +517,7 @@ class Hn {
|
|
|
522
517
|
*
|
|
523
518
|
* @type {any}
|
|
524
519
|
*/
|
|
525
|
-
|
|
520
|
+
N(this, "$$");
|
|
526
521
|
/**
|
|
527
522
|
* ### PRIVATE API
|
|
528
523
|
*
|
|
@@ -530,11 +525,11 @@ class Hn {
|
|
|
530
525
|
*
|
|
531
526
|
* @type {any}
|
|
532
527
|
*/
|
|
533
|
-
|
|
528
|
+
N(this, "$$set");
|
|
534
529
|
}
|
|
535
530
|
/** @returns {void} */
|
|
536
531
|
$destroy() {
|
|
537
|
-
En(this, 1), this.$destroy =
|
|
532
|
+
En(this, 1), this.$destroy = G;
|
|
538
533
|
}
|
|
539
534
|
/**
|
|
540
535
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -543,8 +538,8 @@ class Hn {
|
|
|
543
538
|
* @returns {() => void}
|
|
544
539
|
*/
|
|
545
540
|
$on(t, r) {
|
|
546
|
-
if (!
|
|
547
|
-
return
|
|
541
|
+
if (!ft(r))
|
|
542
|
+
return G;
|
|
548
543
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
549
544
|
return n.push(r), () => {
|
|
550
545
|
const i = n.indexOf(r);
|
|
@@ -575,43 +570,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
575
570
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
576
571
|
PERFORMANCE OF THIS SOFTWARE.
|
|
577
572
|
***************************************************************************** */
|
|
578
|
-
var
|
|
579
|
-
return
|
|
573
|
+
var Ye = function(e, t) {
|
|
574
|
+
return Ye = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
580
575
|
r.__proto__ = n;
|
|
581
576
|
} || function(r, n) {
|
|
582
577
|
for (var i in n)
|
|
583
578
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
584
|
-
},
|
|
579
|
+
}, Ye(e, t);
|
|
585
580
|
};
|
|
586
|
-
function
|
|
581
|
+
function pe(e, t) {
|
|
587
582
|
if (typeof t != "function" && t !== null)
|
|
588
583
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
589
|
-
|
|
584
|
+
Ye(e, t);
|
|
590
585
|
function r() {
|
|
591
586
|
this.constructor = e;
|
|
592
587
|
}
|
|
593
588
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
594
589
|
}
|
|
595
|
-
|
|
596
|
-
return v = Object.assign || function(t) {
|
|
597
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
598
|
-
r = arguments[n];
|
|
599
|
-
for (var o in r)
|
|
600
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
601
|
-
}
|
|
602
|
-
return t;
|
|
603
|
-
}, v.apply(this, arguments);
|
|
604
|
-
};
|
|
605
|
-
function An(e, t) {
|
|
606
|
-
var r = {};
|
|
607
|
-
for (var n in e)
|
|
608
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
609
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
610
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
611
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
612
|
-
return r;
|
|
613
|
-
}
|
|
614
|
-
function Ye(e) {
|
|
590
|
+
function qe(e) {
|
|
615
591
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
616
592
|
if (r)
|
|
617
593
|
return r.call(e);
|
|
@@ -623,7 +599,7 @@ function Ye(e) {
|
|
|
623
599
|
};
|
|
624
600
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
625
601
|
}
|
|
626
|
-
function
|
|
602
|
+
function Ke(e, t) {
|
|
627
603
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
628
604
|
if (!r)
|
|
629
605
|
return e;
|
|
@@ -643,8 +619,8 @@ function qe(e, t) {
|
|
|
643
619
|
}
|
|
644
620
|
return o;
|
|
645
621
|
}
|
|
646
|
-
function
|
|
647
|
-
if (
|
|
622
|
+
function et(e, t, r) {
|
|
623
|
+
if (arguments.length === 2)
|
|
648
624
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
649
625
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
650
626
|
return e.concat(o || t);
|
|
@@ -652,13 +628,13 @@ function re(e, t, r) {
|
|
|
652
628
|
function F(e) {
|
|
653
629
|
return typeof e == "function";
|
|
654
630
|
}
|
|
655
|
-
function
|
|
631
|
+
function or(e) {
|
|
656
632
|
var t = function(n) {
|
|
657
633
|
Error.call(n), n.stack = new Error().stack;
|
|
658
634
|
}, r = e(t);
|
|
659
635
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
660
636
|
}
|
|
661
|
-
var Fe =
|
|
637
|
+
var Fe = or(function(e) {
|
|
662
638
|
return function(r) {
|
|
663
639
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
664
640
|
` + r.map(function(n, i) {
|
|
@@ -667,13 +643,13 @@ var Fe = ir(function(e) {
|
|
|
667
643
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
668
644
|
};
|
|
669
645
|
});
|
|
670
|
-
function
|
|
646
|
+
function tt(e, t) {
|
|
671
647
|
if (e) {
|
|
672
648
|
var r = e.indexOf(t);
|
|
673
649
|
0 <= r && e.splice(r, 1);
|
|
674
650
|
}
|
|
675
651
|
}
|
|
676
|
-
var
|
|
652
|
+
var Ie = function() {
|
|
677
653
|
function e(t) {
|
|
678
654
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
679
655
|
}
|
|
@@ -685,7 +661,7 @@ var Oe = function() {
|
|
|
685
661
|
if (a)
|
|
686
662
|
if (this._parentage = null, Array.isArray(a))
|
|
687
663
|
try {
|
|
688
|
-
for (var s =
|
|
664
|
+
for (var s = qe(a), h = s.next(); !h.done; h = s.next()) {
|
|
689
665
|
var l = h.value;
|
|
690
666
|
l.remove(this);
|
|
691
667
|
}
|
|
@@ -712,12 +688,12 @@ var Oe = function() {
|
|
|
712
688
|
if (f) {
|
|
713
689
|
this._finalizers = null;
|
|
714
690
|
try {
|
|
715
|
-
for (var c =
|
|
691
|
+
for (var c = qe(f), m = c.next(); !m.done; m = c.next()) {
|
|
716
692
|
var d = m.value;
|
|
717
693
|
try {
|
|
718
|
-
|
|
694
|
+
Ht(d);
|
|
719
695
|
} catch (p) {
|
|
720
|
-
o = o != null ? o : [], p instanceof Fe ? o =
|
|
696
|
+
o = o != null ? o : [], p instanceof Fe ? o = et(et([], Ke(o)), Ke(p.errors)) : o.push(p);
|
|
721
697
|
}
|
|
722
698
|
}
|
|
723
699
|
} catch (p) {
|
|
@@ -738,7 +714,7 @@ var Oe = function() {
|
|
|
738
714
|
var r;
|
|
739
715
|
if (t && t !== this)
|
|
740
716
|
if (this.closed)
|
|
741
|
-
|
|
717
|
+
Ht(t);
|
|
742
718
|
else {
|
|
743
719
|
if (t instanceof e) {
|
|
744
720
|
if (t.closed || t._hasParent(this))
|
|
@@ -755,56 +731,52 @@ var Oe = function() {
|
|
|
755
731
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
756
732
|
}, e.prototype._removeParent = function(t) {
|
|
757
733
|
var r = this._parentage;
|
|
758
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
734
|
+
r === t ? this._parentage = null : Array.isArray(r) && tt(r, t);
|
|
759
735
|
}, e.prototype.remove = function(t) {
|
|
760
736
|
var r = this._finalizers;
|
|
761
|
-
r &&
|
|
737
|
+
r && tt(r, t), t instanceof e && t._removeParent(this);
|
|
762
738
|
}, e.EMPTY = function() {
|
|
763
739
|
var t = new e();
|
|
764
740
|
return t.closed = !0, t;
|
|
765
741
|
}(), e;
|
|
766
|
-
}(),
|
|
767
|
-
function
|
|
768
|
-
return e instanceof
|
|
742
|
+
}(), ar = Ie.EMPTY;
|
|
743
|
+
function sr(e) {
|
|
744
|
+
return e instanceof Ie || e && "closed" in e && F(e.remove) && F(e.add) && F(e.unsubscribe);
|
|
769
745
|
}
|
|
770
|
-
function
|
|
746
|
+
function Ht(e) {
|
|
771
747
|
F(e) ? e() : e.unsubscribe();
|
|
772
748
|
}
|
|
773
|
-
var
|
|
774
|
-
|
|
775
|
-
onStoppedNotification: null,
|
|
776
|
-
Promise: void 0,
|
|
777
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
778
|
-
useDeprecatedNextContext: !1
|
|
749
|
+
var An = {
|
|
750
|
+
Promise: void 0
|
|
779
751
|
}, Pn = {
|
|
780
752
|
setTimeout: function(e, t) {
|
|
781
753
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
782
754
|
r[n - 2] = arguments[n];
|
|
783
|
-
return setTimeout.apply(void 0,
|
|
755
|
+
return setTimeout.apply(void 0, et([e, t], Ke(r)));
|
|
784
756
|
},
|
|
785
757
|
clearTimeout: function(e) {
|
|
786
758
|
return clearTimeout(e);
|
|
787
759
|
},
|
|
788
760
|
delegate: void 0
|
|
789
761
|
};
|
|
790
|
-
function
|
|
762
|
+
function On(e) {
|
|
791
763
|
Pn.setTimeout(function() {
|
|
792
764
|
throw e;
|
|
793
765
|
});
|
|
794
766
|
}
|
|
795
|
-
function
|
|
767
|
+
function Bt() {
|
|
796
768
|
}
|
|
797
|
-
function
|
|
769
|
+
function Se(e) {
|
|
798
770
|
e();
|
|
799
771
|
}
|
|
800
772
|
var ur = function(e) {
|
|
801
|
-
|
|
773
|
+
pe(t, e);
|
|
802
774
|
function t(r) {
|
|
803
775
|
var n = e.call(this) || this;
|
|
804
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
776
|
+
return n.isStopped = !1, r ? (n.destination = r, sr(r) && r.add(n)) : n.destination = Nn, n;
|
|
805
777
|
}
|
|
806
778
|
return t.create = function(r, n, i) {
|
|
807
|
-
return new
|
|
779
|
+
return new rt(r, n, i);
|
|
808
780
|
}, t.prototype.next = function(r) {
|
|
809
781
|
this.isStopped || this._next(r);
|
|
810
782
|
}, t.prototype.error = function(r) {
|
|
@@ -828,11 +800,7 @@ var ur = function(e) {
|
|
|
828
800
|
this.unsubscribe();
|
|
829
801
|
}
|
|
830
802
|
}, t;
|
|
831
|
-
}(
|
|
832
|
-
function $e(e, t) {
|
|
833
|
-
return In.call(e, t);
|
|
834
|
-
}
|
|
835
|
-
var On = function() {
|
|
803
|
+
}(Ie), Rn = function() {
|
|
836
804
|
function e(t) {
|
|
837
805
|
this.partialObserver = t;
|
|
838
806
|
}
|
|
@@ -842,7 +810,7 @@ var On = function() {
|
|
|
842
810
|
try {
|
|
843
811
|
r.next(t);
|
|
844
812
|
} catch (n) {
|
|
845
|
-
|
|
813
|
+
_e(n);
|
|
846
814
|
}
|
|
847
815
|
}, e.prototype.error = function(t) {
|
|
848
816
|
var r = this.partialObserver;
|
|
@@ -850,68 +818,56 @@ var On = function() {
|
|
|
850
818
|
try {
|
|
851
819
|
r.error(t);
|
|
852
820
|
} catch (n) {
|
|
853
|
-
|
|
821
|
+
_e(n);
|
|
854
822
|
}
|
|
855
823
|
else
|
|
856
|
-
|
|
824
|
+
_e(t);
|
|
857
825
|
}, e.prototype.complete = function() {
|
|
858
826
|
var t = this.partialObserver;
|
|
859
827
|
if (t.complete)
|
|
860
828
|
try {
|
|
861
829
|
t.complete();
|
|
862
830
|
} catch (r) {
|
|
863
|
-
|
|
831
|
+
_e(r);
|
|
864
832
|
}
|
|
865
833
|
}, e;
|
|
866
|
-
}(),
|
|
867
|
-
|
|
834
|
+
}(), rt = function(e) {
|
|
835
|
+
pe(t, e);
|
|
868
836
|
function t(r, n, i) {
|
|
869
837
|
var o = e.call(this) || this, a;
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
};
|
|
876
|
-
else {
|
|
877
|
-
var s;
|
|
878
|
-
o && sr.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
|
|
879
|
-
return o.unsubscribe();
|
|
880
|
-
}, a = {
|
|
881
|
-
next: r.next && $e(r.next, s),
|
|
882
|
-
error: r.error && $e(r.error, s),
|
|
883
|
-
complete: r.complete && $e(r.complete, s)
|
|
884
|
-
}) : a = r;
|
|
885
|
-
}
|
|
886
|
-
return o.destination = new On(a), o;
|
|
838
|
+
return F(r) || !r ? a = {
|
|
839
|
+
next: r != null ? r : void 0,
|
|
840
|
+
error: n != null ? n : void 0,
|
|
841
|
+
complete: i != null ? i : void 0
|
|
842
|
+
} : a = r, o.destination = new Rn(a), o;
|
|
887
843
|
}
|
|
888
844
|
return t;
|
|
889
845
|
}(ur);
|
|
890
|
-
function
|
|
891
|
-
|
|
846
|
+
function _e(e) {
|
|
847
|
+
On(e);
|
|
892
848
|
}
|
|
893
|
-
function
|
|
849
|
+
function In(e) {
|
|
894
850
|
throw e;
|
|
895
851
|
}
|
|
896
|
-
var
|
|
852
|
+
var Nn = {
|
|
897
853
|
closed: !0,
|
|
898
|
-
next:
|
|
899
|
-
error:
|
|
900
|
-
complete:
|
|
901
|
-
},
|
|
854
|
+
next: Bt,
|
|
855
|
+
error: In,
|
|
856
|
+
complete: Bt
|
|
857
|
+
}, Ln = function() {
|
|
902
858
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
903
859
|
}();
|
|
904
|
-
function
|
|
860
|
+
function Mn(e) {
|
|
905
861
|
return e;
|
|
906
862
|
}
|
|
907
|
-
function
|
|
908
|
-
return e.length === 0 ?
|
|
863
|
+
function Cn(e) {
|
|
864
|
+
return e.length === 0 ? Mn : e.length === 1 ? e[0] : function(r) {
|
|
909
865
|
return e.reduce(function(n, i) {
|
|
910
866
|
return i(n);
|
|
911
867
|
}, r);
|
|
912
868
|
};
|
|
913
869
|
}
|
|
914
|
-
var
|
|
870
|
+
var At = function() {
|
|
915
871
|
function e(t) {
|
|
916
872
|
t && (this._subscribe = t);
|
|
917
873
|
}
|
|
@@ -919,8 +875,8 @@ var Bt = function() {
|
|
|
919
875
|
var r = new e();
|
|
920
876
|
return r.source = this, r.operator = t, r;
|
|
921
877
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
922
|
-
var i = this, o =
|
|
923
|
-
return
|
|
878
|
+
var i = this, o = Un(t) ? t : new rt(t, r, n);
|
|
879
|
+
return Se(function() {
|
|
924
880
|
var a = i, s = a.operator, h = a.source;
|
|
925
881
|
o.add(s ? s.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
926
882
|
}), o;
|
|
@@ -932,8 +888,8 @@ var Bt = function() {
|
|
|
932
888
|
}
|
|
933
889
|
}, e.prototype.forEach = function(t, r) {
|
|
934
890
|
var n = this;
|
|
935
|
-
return r =
|
|
936
|
-
var a = new
|
|
891
|
+
return r = Pt(r), new r(function(i, o) {
|
|
892
|
+
var a = new rt({
|
|
937
893
|
next: function(s) {
|
|
938
894
|
try {
|
|
939
895
|
t(s);
|
|
@@ -949,15 +905,15 @@ var Bt = function() {
|
|
|
949
905
|
}, e.prototype._subscribe = function(t) {
|
|
950
906
|
var r;
|
|
951
907
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
952
|
-
}, e.prototype[
|
|
908
|
+
}, e.prototype[Ln] = function() {
|
|
953
909
|
return this;
|
|
954
910
|
}, e.prototype.pipe = function() {
|
|
955
911
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
956
912
|
t[r] = arguments[r];
|
|
957
|
-
return
|
|
913
|
+
return Cn(t)(this);
|
|
958
914
|
}, e.prototype.toPromise = function(t) {
|
|
959
915
|
var r = this;
|
|
960
|
-
return t =
|
|
916
|
+
return t = Pt(t), new t(function(n, i) {
|
|
961
917
|
var o;
|
|
962
918
|
r.subscribe(function(a) {
|
|
963
919
|
return o = a;
|
|
@@ -971,40 +927,40 @@ var Bt = function() {
|
|
|
971
927
|
return new e(t);
|
|
972
928
|
}, e;
|
|
973
929
|
}();
|
|
974
|
-
function
|
|
930
|
+
function Pt(e) {
|
|
975
931
|
var t;
|
|
976
|
-
return (t = e != null ? e :
|
|
932
|
+
return (t = e != null ? e : An.Promise) !== null && t !== void 0 ? t : Promise;
|
|
977
933
|
}
|
|
978
|
-
function
|
|
934
|
+
function Gn(e) {
|
|
979
935
|
return e && F(e.next) && F(e.error) && F(e.complete);
|
|
980
936
|
}
|
|
981
|
-
function
|
|
982
|
-
return e && e instanceof ur ||
|
|
937
|
+
function Un(e) {
|
|
938
|
+
return e && e instanceof ur || Gn(e) && sr(e);
|
|
983
939
|
}
|
|
984
|
-
var
|
|
940
|
+
var $n = or(function(e) {
|
|
985
941
|
return function() {
|
|
986
942
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
987
943
|
};
|
|
988
944
|
}), lr = function(e) {
|
|
989
|
-
|
|
945
|
+
pe(t, e);
|
|
990
946
|
function t() {
|
|
991
947
|
var r = e.call(this) || this;
|
|
992
948
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
993
949
|
}
|
|
994
950
|
return t.prototype.lift = function(r) {
|
|
995
|
-
var n = new
|
|
951
|
+
var n = new Ot(this, this);
|
|
996
952
|
return n.operator = r, n;
|
|
997
953
|
}, t.prototype._throwIfClosed = function() {
|
|
998
954
|
if (this.closed)
|
|
999
|
-
throw new
|
|
955
|
+
throw new $n();
|
|
1000
956
|
}, t.prototype.next = function(r) {
|
|
1001
957
|
var n = this;
|
|
1002
|
-
|
|
958
|
+
Se(function() {
|
|
1003
959
|
var i, o;
|
|
1004
960
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
1005
961
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
1006
962
|
try {
|
|
1007
|
-
for (var a =
|
|
963
|
+
for (var a = qe(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
1008
964
|
var h = s.value;
|
|
1009
965
|
h.next(r);
|
|
1010
966
|
}
|
|
@@ -1022,7 +978,7 @@ var Fn = ir(function(e) {
|
|
|
1022
978
|
});
|
|
1023
979
|
}, t.prototype.error = function(r) {
|
|
1024
980
|
var n = this;
|
|
1025
|
-
|
|
981
|
+
Se(function() {
|
|
1026
982
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
1027
983
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
1028
984
|
for (var i = n.observers; i.length; )
|
|
@@ -1031,7 +987,7 @@ var Fn = ir(function(e) {
|
|
|
1031
987
|
});
|
|
1032
988
|
}, t.prototype.complete = function() {
|
|
1033
989
|
var r = this;
|
|
1034
|
-
|
|
990
|
+
Se(function() {
|
|
1035
991
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
1036
992
|
r.isStopped = !0;
|
|
1037
993
|
for (var n = r.observers; n.length; )
|
|
@@ -1053,20 +1009,20 @@ var Fn = ir(function(e) {
|
|
|
1053
1009
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
1054
1010
|
}, t.prototype._innerSubscribe = function(r) {
|
|
1055
1011
|
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
1056
|
-
return o || a ?
|
|
1057
|
-
n.currentObservers = null,
|
|
1012
|
+
return o || a ? ar : (this.currentObservers = null, s.push(r), new Ie(function() {
|
|
1013
|
+
n.currentObservers = null, tt(s, r);
|
|
1058
1014
|
}));
|
|
1059
1015
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
1060
1016
|
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
1061
1017
|
i ? r.error(o) : a && r.complete();
|
|
1062
1018
|
}, t.prototype.asObservable = function() {
|
|
1063
|
-
var r = new
|
|
1019
|
+
var r = new At();
|
|
1064
1020
|
return r.source = this, r;
|
|
1065
1021
|
}, t.create = function(r, n) {
|
|
1066
|
-
return new
|
|
1022
|
+
return new Ot(r, n);
|
|
1067
1023
|
}, t;
|
|
1068
|
-
}(
|
|
1069
|
-
|
|
1024
|
+
}(At), Ot = function(e) {
|
|
1025
|
+
pe(t, e);
|
|
1070
1026
|
function t(r, n) {
|
|
1071
1027
|
var i = e.call(this) || this;
|
|
1072
1028
|
return i.destination = r, i.source = n, i;
|
|
@@ -1082,15 +1038,15 @@ var Fn = ir(function(e) {
|
|
|
1082
1038
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1083
1039
|
}, t.prototype._subscribe = function(r) {
|
|
1084
1040
|
var n, i;
|
|
1085
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1041
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : ar;
|
|
1086
1042
|
}, t;
|
|
1087
1043
|
}(lr), hr = {
|
|
1088
1044
|
now: function() {
|
|
1089
1045
|
return (hr.delegate || Date).now();
|
|
1090
1046
|
},
|
|
1091
1047
|
delegate: void 0
|
|
1092
|
-
},
|
|
1093
|
-
|
|
1048
|
+
}, Dn = function(e) {
|
|
1049
|
+
pe(t, e);
|
|
1094
1050
|
function t(r, n, i) {
|
|
1095
1051
|
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = hr);
|
|
1096
1052
|
var o = e.call(this) || this;
|
|
@@ -1113,61 +1069,61 @@ var Fn = ir(function(e) {
|
|
|
1113
1069
|
}
|
|
1114
1070
|
}, t;
|
|
1115
1071
|
}(lr);
|
|
1116
|
-
const Rt = [], It = {},
|
|
1072
|
+
const Rt = [], It = {}, Fn = (e, t = 0) => {
|
|
1117
1073
|
if (Rt.indexOf(e) == -1) {
|
|
1118
|
-
const r = new
|
|
1074
|
+
const r = new Dn(t);
|
|
1119
1075
|
It[e] = r, Rt.push(e);
|
|
1120
1076
|
}
|
|
1121
1077
|
return It[e];
|
|
1122
|
-
},
|
|
1123
|
-
function
|
|
1078
|
+
}, q = [];
|
|
1079
|
+
function jn(e, t) {
|
|
1124
1080
|
return {
|
|
1125
|
-
subscribe:
|
|
1081
|
+
subscribe: Ne(e, t).subscribe
|
|
1126
1082
|
};
|
|
1127
1083
|
}
|
|
1128
|
-
function
|
|
1084
|
+
function Ne(e, t = G) {
|
|
1129
1085
|
let r;
|
|
1130
1086
|
const n = /* @__PURE__ */ new Set();
|
|
1131
1087
|
function i(s) {
|
|
1132
|
-
if (
|
|
1133
|
-
const h = !
|
|
1088
|
+
if (Kt(e, s) && (e = s, r)) {
|
|
1089
|
+
const h = !q.length;
|
|
1134
1090
|
for (const l of n)
|
|
1135
|
-
l[1](),
|
|
1091
|
+
l[1](), q.push(l, e);
|
|
1136
1092
|
if (h) {
|
|
1137
|
-
for (let l = 0; l <
|
|
1138
|
-
|
|
1139
|
-
|
|
1093
|
+
for (let l = 0; l < q.length; l += 2)
|
|
1094
|
+
q[l][0](q[l + 1]);
|
|
1095
|
+
q.length = 0;
|
|
1140
1096
|
}
|
|
1141
1097
|
}
|
|
1142
1098
|
}
|
|
1143
1099
|
function o(s) {
|
|
1144
1100
|
i(s(e));
|
|
1145
1101
|
}
|
|
1146
|
-
function a(s, h =
|
|
1102
|
+
function a(s, h = G) {
|
|
1147
1103
|
const l = [s, h];
|
|
1148
|
-
return n.add(l), n.size === 1 && (r = t(i, o) ||
|
|
1104
|
+
return n.add(l), n.size === 1 && (r = t(i, o) || G), s(e), () => {
|
|
1149
1105
|
n.delete(l), n.size === 0 && r && (r(), r = null);
|
|
1150
1106
|
};
|
|
1151
1107
|
}
|
|
1152
1108
|
return { set: i, update: o, subscribe: a };
|
|
1153
1109
|
}
|
|
1154
|
-
function
|
|
1110
|
+
function oe(e, t, r) {
|
|
1155
1111
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1156
1112
|
if (!i.every(Boolean))
|
|
1157
1113
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1158
1114
|
const o = t.length < 2;
|
|
1159
|
-
return
|
|
1115
|
+
return jn(r, (a, s) => {
|
|
1160
1116
|
let h = !1;
|
|
1161
1117
|
const l = [];
|
|
1162
|
-
let u = 0, f =
|
|
1118
|
+
let u = 0, f = G;
|
|
1163
1119
|
const c = () => {
|
|
1164
1120
|
if (u)
|
|
1165
1121
|
return;
|
|
1166
1122
|
f();
|
|
1167
1123
|
const d = t(n ? l[0] : l, a, s);
|
|
1168
|
-
o ? a(d) : f =
|
|
1124
|
+
o ? a(d) : f = ft(d) ? d : G;
|
|
1169
1125
|
}, m = i.map(
|
|
1170
|
-
(d, p) =>
|
|
1126
|
+
(d, p) => er(
|
|
1171
1127
|
d,
|
|
1172
1128
|
(A) => {
|
|
1173
1129
|
l[p] = A, u &= ~(1 << p), h && c();
|
|
@@ -1178,51 +1134,51 @@ function se(e, t, r) {
|
|
|
1178
1134
|
)
|
|
1179
1135
|
);
|
|
1180
1136
|
return h = !0, c(), function() {
|
|
1181
|
-
|
|
1137
|
+
J(m), f(), h = !1;
|
|
1182
1138
|
};
|
|
1183
1139
|
});
|
|
1184
1140
|
}
|
|
1185
|
-
function
|
|
1141
|
+
function kn(e) {
|
|
1186
1142
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1187
1143
|
}
|
|
1188
|
-
var
|
|
1189
|
-
return
|
|
1144
|
+
var Vn = function(t) {
|
|
1145
|
+
return Wn(t) && !Xn(t);
|
|
1190
1146
|
};
|
|
1191
|
-
function
|
|
1147
|
+
function Wn(e) {
|
|
1192
1148
|
return !!e && typeof e == "object";
|
|
1193
1149
|
}
|
|
1194
|
-
function
|
|
1150
|
+
function Xn(e) {
|
|
1195
1151
|
var t = Object.prototype.toString.call(e);
|
|
1196
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1152
|
+
return t === "[object RegExp]" || t === "[object Date]" || Zn(e);
|
|
1197
1153
|
}
|
|
1198
|
-
var
|
|
1199
|
-
function
|
|
1200
|
-
return e.$$typeof ===
|
|
1154
|
+
var zn = typeof Symbol == "function" && Symbol.for, Jn = zn ? Symbol.for("react.element") : 60103;
|
|
1155
|
+
function Zn(e) {
|
|
1156
|
+
return e.$$typeof === Jn;
|
|
1201
1157
|
}
|
|
1202
|
-
function
|
|
1158
|
+
function Qn(e) {
|
|
1203
1159
|
return Array.isArray(e) ? [] : {};
|
|
1204
1160
|
}
|
|
1205
|
-
function
|
|
1206
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1161
|
+
function me(e, t) {
|
|
1162
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? te(Qn(e), e, t) : e;
|
|
1207
1163
|
}
|
|
1208
|
-
function
|
|
1164
|
+
function Yn(e, t, r) {
|
|
1209
1165
|
return e.concat(t).map(function(n) {
|
|
1210
|
-
return
|
|
1166
|
+
return me(n, r);
|
|
1211
1167
|
});
|
|
1212
1168
|
}
|
|
1213
|
-
function
|
|
1169
|
+
function qn(e, t) {
|
|
1214
1170
|
if (!t.customMerge)
|
|
1215
|
-
return
|
|
1171
|
+
return te;
|
|
1216
1172
|
var r = t.customMerge(e);
|
|
1217
|
-
return typeof r == "function" ? r :
|
|
1173
|
+
return typeof r == "function" ? r : te;
|
|
1218
1174
|
}
|
|
1219
|
-
function
|
|
1175
|
+
function Kn(e) {
|
|
1220
1176
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1221
1177
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1222
1178
|
}) : [];
|
|
1223
1179
|
}
|
|
1224
|
-
function
|
|
1225
|
-
return Object.keys(e).concat(
|
|
1180
|
+
function Nt(e) {
|
|
1181
|
+
return Object.keys(e).concat(Kn(e));
|
|
1226
1182
|
}
|
|
1227
1183
|
function cr(e, t) {
|
|
1228
1184
|
try {
|
|
@@ -1231,33 +1187,75 @@ function cr(e, t) {
|
|
|
1231
1187
|
return !1;
|
|
1232
1188
|
}
|
|
1233
1189
|
}
|
|
1234
|
-
function
|
|
1190
|
+
function ei(e, t) {
|
|
1235
1191
|
return cr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1236
1192
|
}
|
|
1237
|
-
function
|
|
1193
|
+
function ti(e, t, r) {
|
|
1238
1194
|
var n = {};
|
|
1239
|
-
return r.isMergeableObject(e) &&
|
|
1240
|
-
n[i] =
|
|
1241
|
-
}),
|
|
1242
|
-
|
|
1195
|
+
return r.isMergeableObject(e) && Nt(e).forEach(function(i) {
|
|
1196
|
+
n[i] = me(e[i], r);
|
|
1197
|
+
}), Nt(t).forEach(function(i) {
|
|
1198
|
+
ei(e, i) || (cr(e, i) && r.isMergeableObject(t[i]) ? n[i] = qn(i, r)(e[i], t[i], r) : n[i] = me(t[i], r));
|
|
1243
1199
|
}), n;
|
|
1244
1200
|
}
|
|
1245
|
-
function
|
|
1246
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1201
|
+
function te(e, t, r) {
|
|
1202
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Yn, r.isMergeableObject = r.isMergeableObject || Vn, r.cloneUnlessOtherwiseSpecified = me;
|
|
1247
1203
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1248
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1204
|
+
return o ? n ? r.arrayMerge(e, t, r) : ti(e, t, r) : me(t, r);
|
|
1249
1205
|
}
|
|
1250
|
-
|
|
1206
|
+
te.all = function(t, r) {
|
|
1251
1207
|
if (!Array.isArray(t))
|
|
1252
1208
|
throw new Error("first argument should be an array");
|
|
1253
1209
|
return t.reduce(function(n, i) {
|
|
1254
|
-
return
|
|
1210
|
+
return te(n, i, r);
|
|
1255
1211
|
}, {});
|
|
1256
1212
|
};
|
|
1257
|
-
var
|
|
1258
|
-
const
|
|
1259
|
-
function
|
|
1260
|
-
|
|
1213
|
+
var ri = te, ni = ri;
|
|
1214
|
+
const ii = /* @__PURE__ */ kn(ni);
|
|
1215
|
+
var nt = function(e, t) {
|
|
1216
|
+
return nt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1217
|
+
r.__proto__ = n;
|
|
1218
|
+
} || function(r, n) {
|
|
1219
|
+
for (var i in n)
|
|
1220
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1221
|
+
}, nt(e, t);
|
|
1222
|
+
};
|
|
1223
|
+
function Le(e, t) {
|
|
1224
|
+
if (typeof t != "function" && t !== null)
|
|
1225
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1226
|
+
nt(e, t);
|
|
1227
|
+
function r() {
|
|
1228
|
+
this.constructor = e;
|
|
1229
|
+
}
|
|
1230
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1231
|
+
}
|
|
1232
|
+
var C = function() {
|
|
1233
|
+
return C = Object.assign || function(t) {
|
|
1234
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1235
|
+
r = arguments[n];
|
|
1236
|
+
for (var o in r)
|
|
1237
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1238
|
+
}
|
|
1239
|
+
return t;
|
|
1240
|
+
}, C.apply(this, arguments);
|
|
1241
|
+
};
|
|
1242
|
+
function oi(e, t) {
|
|
1243
|
+
var r = {};
|
|
1244
|
+
for (var n in e)
|
|
1245
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1246
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1247
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1248
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1249
|
+
return r;
|
|
1250
|
+
}
|
|
1251
|
+
function je(e, t, r) {
|
|
1252
|
+
if (r || arguments.length === 2)
|
|
1253
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1254
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1255
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1256
|
+
}
|
|
1257
|
+
function ke(e, t) {
|
|
1258
|
+
var r = t && t.cache ? t.cache : fi, n = t && t.serializer ? t.serializer : hi, i = t && t.strategy ? t.strategy : ui;
|
|
1261
1259
|
return i(e, {
|
|
1262
1260
|
cache: r,
|
|
1263
1261
|
serializer: n
|
|
@@ -1266,95 +1264,103 @@ function je(e, t) {
|
|
|
1266
1264
|
function ai(e) {
|
|
1267
1265
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1268
1266
|
}
|
|
1269
|
-
function
|
|
1267
|
+
function si(e, t, r, n) {
|
|
1270
1268
|
var i = ai(n) ? n : r(n), o = t.get(i);
|
|
1271
1269
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1272
1270
|
}
|
|
1273
|
-
function
|
|
1271
|
+
function fr(e, t, r) {
|
|
1274
1272
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1275
1273
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1276
1274
|
}
|
|
1277
|
-
function
|
|
1275
|
+
function mr(e, t, r, n, i) {
|
|
1278
1276
|
return r.bind(t, e, n, i);
|
|
1279
1277
|
}
|
|
1280
|
-
function si(e, t) {
|
|
1281
|
-
var r = e.length === 1 ? fr : mr;
|
|
1282
|
-
return ht(e, this, r, t.cache.create(), t.serializer);
|
|
1283
|
-
}
|
|
1284
1278
|
function ui(e, t) {
|
|
1285
|
-
|
|
1279
|
+
var r = e.length === 1 ? si : fr;
|
|
1280
|
+
return mr(e, this, r, t.cache.create(), t.serializer);
|
|
1286
1281
|
}
|
|
1287
1282
|
function li(e, t) {
|
|
1288
|
-
return
|
|
1283
|
+
return mr(e, this, fr, t.cache.create(), t.serializer);
|
|
1289
1284
|
}
|
|
1290
1285
|
var hi = function() {
|
|
1291
1286
|
return JSON.stringify(arguments);
|
|
1292
|
-
}
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1287
|
+
}, ci = (
|
|
1288
|
+
/** @class */
|
|
1289
|
+
function() {
|
|
1290
|
+
function e() {
|
|
1291
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1292
|
+
}
|
|
1293
|
+
return e.prototype.get = function(t) {
|
|
1294
|
+
return this.cache[t];
|
|
1295
|
+
}, e.prototype.set = function(t, r) {
|
|
1296
|
+
this.cache[t] = r;
|
|
1297
|
+
}, e;
|
|
1298
|
+
}()
|
|
1299
|
+
), fi = {
|
|
1303
1300
|
create: function() {
|
|
1304
|
-
return new
|
|
1301
|
+
return new ci();
|
|
1305
1302
|
}
|
|
1306
|
-
},
|
|
1307
|
-
variadic:
|
|
1308
|
-
|
|
1309
|
-
|
|
1303
|
+
}, Ve = {
|
|
1304
|
+
variadic: li
|
|
1305
|
+
}, Pe = function() {
|
|
1306
|
+
return Pe = Object.assign || function(t) {
|
|
1307
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1308
|
+
r = arguments[n];
|
|
1309
|
+
for (var o in r)
|
|
1310
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1311
|
+
}
|
|
1312
|
+
return t;
|
|
1313
|
+
}, Pe.apply(this, arguments);
|
|
1314
|
+
};
|
|
1315
|
+
var y;
|
|
1310
1316
|
(function(e) {
|
|
1311
1317
|
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";
|
|
1312
|
-
})(
|
|
1313
|
-
var
|
|
1318
|
+
})(y || (y = {}));
|
|
1319
|
+
var E;
|
|
1314
1320
|
(function(e) {
|
|
1315
1321
|
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";
|
|
1316
|
-
})(
|
|
1317
|
-
var
|
|
1322
|
+
})(E || (E = {}));
|
|
1323
|
+
var re;
|
|
1318
1324
|
(function(e) {
|
|
1319
1325
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1320
|
-
})(
|
|
1326
|
+
})(re || (re = {}));
|
|
1321
1327
|
function Lt(e) {
|
|
1322
|
-
return e.type ===
|
|
1328
|
+
return e.type === E.literal;
|
|
1323
1329
|
}
|
|
1324
|
-
function
|
|
1325
|
-
return e.type ===
|
|
1330
|
+
function mi(e) {
|
|
1331
|
+
return e.type === E.argument;
|
|
1326
1332
|
}
|
|
1327
1333
|
function dr(e) {
|
|
1328
|
-
return e.type ===
|
|
1334
|
+
return e.type === E.number;
|
|
1329
1335
|
}
|
|
1330
1336
|
function pr(e) {
|
|
1331
|
-
return e.type ===
|
|
1337
|
+
return e.type === E.date;
|
|
1332
1338
|
}
|
|
1333
1339
|
function br(e) {
|
|
1334
|
-
return e.type ===
|
|
1340
|
+
return e.type === E.time;
|
|
1335
1341
|
}
|
|
1336
1342
|
function gr(e) {
|
|
1337
|
-
return e.type ===
|
|
1343
|
+
return e.type === E.select;
|
|
1338
1344
|
}
|
|
1339
1345
|
function yr(e) {
|
|
1340
|
-
return e.type ===
|
|
1346
|
+
return e.type === E.plural;
|
|
1341
1347
|
}
|
|
1342
|
-
function
|
|
1343
|
-
return e.type ===
|
|
1348
|
+
function di(e) {
|
|
1349
|
+
return e.type === E.pound;
|
|
1344
1350
|
}
|
|
1345
1351
|
function vr(e) {
|
|
1346
|
-
return e.type ===
|
|
1352
|
+
return e.type === E.tag;
|
|
1347
1353
|
}
|
|
1348
1354
|
function _r(e) {
|
|
1349
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1355
|
+
return !!(e && typeof e == "object" && e.type === re.number);
|
|
1350
1356
|
}
|
|
1351
|
-
function
|
|
1352
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1357
|
+
function it(e) {
|
|
1358
|
+
return !!(e && typeof e == "object" && e.type === re.dateTime);
|
|
1353
1359
|
}
|
|
1354
|
-
var xr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
1355
|
-
function
|
|
1360
|
+
var xr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, pi = /(?:[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;
|
|
1361
|
+
function bi(e) {
|
|
1356
1362
|
var t = {};
|
|
1357
|
-
return e.replace(
|
|
1363
|
+
return e.replace(pi, function(r) {
|
|
1358
1364
|
var n = r.length;
|
|
1359
1365
|
switch (r[0]) {
|
|
1360
1366
|
case "G":
|
|
@@ -1443,11 +1449,21 @@ function pi(e) {
|
|
|
1443
1449
|
return "";
|
|
1444
1450
|
}), t;
|
|
1445
1451
|
}
|
|
1446
|
-
var
|
|
1447
|
-
function
|
|
1452
|
+
var S = function() {
|
|
1453
|
+
return S = Object.assign || function(t) {
|
|
1454
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1455
|
+
r = arguments[n];
|
|
1456
|
+
for (var o in r)
|
|
1457
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1458
|
+
}
|
|
1459
|
+
return t;
|
|
1460
|
+
}, S.apply(this, arguments);
|
|
1461
|
+
};
|
|
1462
|
+
var gi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1463
|
+
function yi(e) {
|
|
1448
1464
|
if (e.length === 0)
|
|
1449
1465
|
throw new Error("Number skeleton cannot be empty");
|
|
1450
|
-
for (var t = e.split(
|
|
1466
|
+
for (var t = e.split(gi).filter(function(c) {
|
|
1451
1467
|
return c.length > 0;
|
|
1452
1468
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1453
1469
|
var o = i[n], a = o.split("/");
|
|
@@ -1462,10 +1478,10 @@ function gi(e) {
|
|
|
1462
1478
|
}
|
|
1463
1479
|
return r;
|
|
1464
1480
|
}
|
|
1465
|
-
function
|
|
1481
|
+
function vi(e) {
|
|
1466
1482
|
return e.replace(/^(.*?)-/, "");
|
|
1467
1483
|
}
|
|
1468
|
-
var Mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Er = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
1484
|
+
var Mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Er = /^(@+)?(\+|#+)?[rs]?$/g, _i = /(\*)(0+)|(#+)(0+)|(0+)/g, wr = /^(0+)$/;
|
|
1469
1485
|
function Ct(e) {
|
|
1470
1486
|
var t = {};
|
|
1471
1487
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Er, function(r, n, i) {
|
|
@@ -1512,7 +1528,7 @@ function Sr(e) {
|
|
|
1512
1528
|
};
|
|
1513
1529
|
}
|
|
1514
1530
|
}
|
|
1515
|
-
function
|
|
1531
|
+
function xi(e) {
|
|
1516
1532
|
var t;
|
|
1517
1533
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1518
1534
|
notation: "engineering"
|
|
@@ -1526,11 +1542,11 @@ function _i(e) {
|
|
|
1526
1542
|
}
|
|
1527
1543
|
return t;
|
|
1528
1544
|
}
|
|
1529
|
-
function
|
|
1545
|
+
function Gt(e) {
|
|
1530
1546
|
var t = {}, r = Sr(e);
|
|
1531
1547
|
return r || t;
|
|
1532
1548
|
}
|
|
1533
|
-
function
|
|
1549
|
+
function Ei(e) {
|
|
1534
1550
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1535
1551
|
var i = n[r];
|
|
1536
1552
|
switch (i.stem) {
|
|
@@ -1554,7 +1570,7 @@ function xi(e) {
|
|
|
1554
1570
|
continue;
|
|
1555
1571
|
case "measure-unit":
|
|
1556
1572
|
case "unit":
|
|
1557
|
-
t.style = "unit", t.unit =
|
|
1573
|
+
t.style = "unit", t.unit = vi(i.options[0]);
|
|
1558
1574
|
continue;
|
|
1559
1575
|
case "compact-short":
|
|
1560
1576
|
case "K":
|
|
@@ -1565,13 +1581,13 @@ function xi(e) {
|
|
|
1565
1581
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1566
1582
|
continue;
|
|
1567
1583
|
case "scientific":
|
|
1568
|
-
t =
|
|
1569
|
-
return
|
|
1584
|
+
t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(h, l) {
|
|
1585
|
+
return S(S({}, h), Gt(l));
|
|
1570
1586
|
}, {}));
|
|
1571
1587
|
continue;
|
|
1572
1588
|
case "engineering":
|
|
1573
|
-
t =
|
|
1574
|
-
return
|
|
1589
|
+
t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(h, l) {
|
|
1590
|
+
return S(S({}, h), Gt(l));
|
|
1575
1591
|
}, {}));
|
|
1576
1592
|
continue;
|
|
1577
1593
|
case "notation-simple":
|
|
@@ -1616,7 +1632,7 @@ function xi(e) {
|
|
|
1616
1632
|
case "integer-width":
|
|
1617
1633
|
if (i.options.length > 1)
|
|
1618
1634
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1619
|
-
i.options[0].replace(
|
|
1635
|
+
i.options[0].replace(_i, function(h, l, u, f, c, m) {
|
|
1620
1636
|
if (l)
|
|
1621
1637
|
t.minimumIntegerDigits = u.length;
|
|
1622
1638
|
else {
|
|
@@ -1640,21 +1656,21 @@ function xi(e) {
|
|
|
1640
1656
|
return u === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && m ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + m.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1641
1657
|
});
|
|
1642
1658
|
var o = i.options[0];
|
|
1643
|
-
o === "w" ? t =
|
|
1659
|
+
o === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = S(S({}, t), Ct(o)));
|
|
1644
1660
|
continue;
|
|
1645
1661
|
}
|
|
1646
1662
|
if (Er.test(i.stem)) {
|
|
1647
|
-
t =
|
|
1663
|
+
t = S(S({}, t), Ct(i.stem));
|
|
1648
1664
|
continue;
|
|
1649
1665
|
}
|
|
1650
1666
|
var a = Sr(i.stem);
|
|
1651
|
-
a && (t =
|
|
1652
|
-
var s =
|
|
1653
|
-
s && (t =
|
|
1667
|
+
a && (t = S(S({}, t), a));
|
|
1668
|
+
var s = xi(i.stem);
|
|
1669
|
+
s && (t = S(S({}, t), s));
|
|
1654
1670
|
}
|
|
1655
1671
|
return t;
|
|
1656
1672
|
}
|
|
1657
|
-
var
|
|
1673
|
+
var xe = {
|
|
1658
1674
|
"001": [
|
|
1659
1675
|
"H",
|
|
1660
1676
|
"h"
|
|
@@ -3069,13 +3085,13 @@ var Ee = {
|
|
|
3069
3085
|
"h"
|
|
3070
3086
|
]
|
|
3071
3087
|
};
|
|
3072
|
-
function
|
|
3088
|
+
function wi(e, t) {
|
|
3073
3089
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3074
3090
|
var i = e.charAt(n);
|
|
3075
3091
|
if (i === "j") {
|
|
3076
3092
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3077
3093
|
o++, n++;
|
|
3078
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", l =
|
|
3094
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", l = Si(t);
|
|
3079
3095
|
for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
|
|
3080
3096
|
r += h;
|
|
3081
3097
|
for (; a-- > 0; )
|
|
@@ -3085,7 +3101,7 @@ function Ei(e, t) {
|
|
|
3085
3101
|
}
|
|
3086
3102
|
return r;
|
|
3087
3103
|
}
|
|
3088
|
-
function
|
|
3104
|
+
function Si(e) {
|
|
3089
3105
|
var t = e.hourCycle;
|
|
3090
3106
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3091
3107
|
e.hourCycles && // @ts-ignore
|
|
@@ -3104,23 +3120,23 @@ function wi(e) {
|
|
|
3104
3120
|
}
|
|
3105
3121
|
var r = e.language, n;
|
|
3106
3122
|
r !== "root" && (n = e.maximize().region);
|
|
3107
|
-
var i =
|
|
3123
|
+
var i = xe[n || ""] || xe[r || ""] || xe["".concat(r, "-001")] || xe["001"];
|
|
3108
3124
|
return i[0];
|
|
3109
3125
|
}
|
|
3110
|
-
var
|
|
3111
|
-
function
|
|
3126
|
+
var We, Ti = new RegExp("^".concat(xr.source, "*")), Hi = new RegExp("".concat(xr.source, "*$"));
|
|
3127
|
+
function v(e, t) {
|
|
3112
3128
|
return { start: e, end: t };
|
|
3113
3129
|
}
|
|
3114
|
-
var
|
|
3130
|
+
var Bi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ai = !!String.fromCodePoint, Pi = !!Object.fromEntries, Oi = !!String.prototype.codePointAt, Ri = !!String.prototype.trimStart, Ii = !!String.prototype.trimEnd, Ni = !!Number.isSafeInteger, Li = Ni ? Number.isSafeInteger : function(e) {
|
|
3115
3131
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3116
|
-
},
|
|
3132
|
+
}, ot = !0;
|
|
3117
3133
|
try {
|
|
3118
3134
|
var Mi = Hr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3119
|
-
|
|
3135
|
+
ot = ((We = Mi.exec("a")) === null || We === void 0 ? void 0 : We[0]) === "a";
|
|
3120
3136
|
} catch (e) {
|
|
3121
|
-
|
|
3137
|
+
ot = !1;
|
|
3122
3138
|
}
|
|
3123
|
-
var
|
|
3139
|
+
var Ut = Bi ? (
|
|
3124
3140
|
// Native
|
|
3125
3141
|
function(t, r, n) {
|
|
3126
3142
|
return t.startsWith(r, n);
|
|
@@ -3130,7 +3146,7 @@ var Gt = Hi ? (
|
|
|
3130
3146
|
function(t, r, n) {
|
|
3131
3147
|
return t.slice(n, n + r.length) === r;
|
|
3132
3148
|
}
|
|
3133
|
-
),
|
|
3149
|
+
), at = Ai ? String.fromCodePoint : (
|
|
3134
3150
|
// IE11
|
|
3135
3151
|
function() {
|
|
3136
3152
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3142,9 +3158,9 @@ var Gt = Hi ? (
|
|
|
3142
3158
|
}
|
|
3143
3159
|
return n;
|
|
3144
3160
|
}
|
|
3145
|
-
),
|
|
3161
|
+
), $t = (
|
|
3146
3162
|
// native
|
|
3147
|
-
|
|
3163
|
+
Pi ? Object.fromEntries : (
|
|
3148
3164
|
// Ponyfill
|
|
3149
3165
|
function(t) {
|
|
3150
3166
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3154,7 +3170,7 @@ var Gt = Hi ? (
|
|
|
3154
3170
|
return r;
|
|
3155
3171
|
}
|
|
3156
3172
|
)
|
|
3157
|
-
), Tr =
|
|
3173
|
+
), Tr = Oi ? (
|
|
3158
3174
|
// Native
|
|
3159
3175
|
function(t, r) {
|
|
3160
3176
|
return t.codePointAt(r);
|
|
@@ -3176,9 +3192,9 @@ var Gt = Hi ? (
|
|
|
3176
3192
|
) : (
|
|
3177
3193
|
// Ponyfill
|
|
3178
3194
|
function(t) {
|
|
3179
|
-
return t.replace(
|
|
3195
|
+
return t.replace(Ti, "");
|
|
3180
3196
|
}
|
|
3181
|
-
),
|
|
3197
|
+
), Gi = Ii ? (
|
|
3182
3198
|
// Native
|
|
3183
3199
|
function(t) {
|
|
3184
3200
|
return t.trimEnd();
|
|
@@ -3186,32 +3202,32 @@ var Gt = Hi ? (
|
|
|
3186
3202
|
) : (
|
|
3187
3203
|
// Ponyfill
|
|
3188
3204
|
function(t) {
|
|
3189
|
-
return t.replace(
|
|
3205
|
+
return t.replace(Hi, "");
|
|
3190
3206
|
}
|
|
3191
3207
|
);
|
|
3192
3208
|
function Hr(e, t) {
|
|
3193
3209
|
return new RegExp(e, t);
|
|
3194
3210
|
}
|
|
3195
|
-
var
|
|
3196
|
-
if (
|
|
3211
|
+
var st;
|
|
3212
|
+
if (ot) {
|
|
3197
3213
|
var Dt = Hr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3198
|
-
|
|
3214
|
+
st = function(t, r) {
|
|
3199
3215
|
var n;
|
|
3200
3216
|
Dt.lastIndex = r;
|
|
3201
3217
|
var i = Dt.exec(t);
|
|
3202
3218
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3203
3219
|
};
|
|
3204
3220
|
} else
|
|
3205
|
-
|
|
3221
|
+
st = function(t, r) {
|
|
3206
3222
|
for (var n = []; ; ) {
|
|
3207
3223
|
var i = Tr(t, r);
|
|
3208
3224
|
if (i === void 0 || Br(i) || Fi(i))
|
|
3209
3225
|
break;
|
|
3210
3226
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3211
3227
|
}
|
|
3212
|
-
return
|
|
3228
|
+
return at.apply(void 0, n);
|
|
3213
3229
|
};
|
|
3214
|
-
var
|
|
3230
|
+
var Ui = (
|
|
3215
3231
|
/** @class */
|
|
3216
3232
|
function() {
|
|
3217
3233
|
function e(t, r) {
|
|
@@ -3235,14 +3251,14 @@ var Gi = (
|
|
|
3235
3251
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3236
3252
|
var s = this.clonePosition();
|
|
3237
3253
|
this.bump(), i.push({
|
|
3238
|
-
type:
|
|
3239
|
-
location:
|
|
3254
|
+
type: E.pound,
|
|
3255
|
+
location: v(s, this.clonePosition())
|
|
3240
3256
|
});
|
|
3241
3257
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3242
3258
|
if (n)
|
|
3243
3259
|
break;
|
|
3244
|
-
return this.error(
|
|
3245
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3260
|
+
return this.error(y.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
|
|
3261
|
+
} else if (o === 60 && !this.ignoreTag && ut(this.peek() || 0)) {
|
|
3246
3262
|
var a = this.parseTag(t, r);
|
|
3247
3263
|
if (a.err)
|
|
3248
3264
|
return a;
|
|
@@ -3263,9 +3279,9 @@ var Gi = (
|
|
|
3263
3279
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3264
3280
|
return {
|
|
3265
3281
|
val: {
|
|
3266
|
-
type:
|
|
3282
|
+
type: E.literal,
|
|
3267
3283
|
value: "<".concat(i, "/>"),
|
|
3268
|
-
location:
|
|
3284
|
+
location: v(n, this.clonePosition())
|
|
3269
3285
|
},
|
|
3270
3286
|
err: null
|
|
3271
3287
|
};
|
|
@@ -3275,22 +3291,22 @@ var Gi = (
|
|
|
3275
3291
|
return o;
|
|
3276
3292
|
var a = o.val, s = this.clonePosition();
|
|
3277
3293
|
if (this.bumpIf("</")) {
|
|
3278
|
-
if (this.isEOF() || !
|
|
3279
|
-
return this.error(
|
|
3294
|
+
if (this.isEOF() || !ut(this.char()))
|
|
3295
|
+
return this.error(y.INVALID_TAG, v(s, this.clonePosition()));
|
|
3280
3296
|
var h = this.clonePosition(), l = this.parseTagName();
|
|
3281
|
-
return i !== l ? this.error(
|
|
3297
|
+
return i !== l ? this.error(y.UNMATCHED_CLOSING_TAG, v(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3282
3298
|
val: {
|
|
3283
|
-
type:
|
|
3299
|
+
type: E.tag,
|
|
3284
3300
|
value: i,
|
|
3285
3301
|
children: a,
|
|
3286
|
-
location:
|
|
3302
|
+
location: v(n, this.clonePosition())
|
|
3287
3303
|
},
|
|
3288
3304
|
err: null
|
|
3289
|
-
} : this.error(
|
|
3305
|
+
} : this.error(y.INVALID_TAG, v(s, this.clonePosition())));
|
|
3290
3306
|
} else
|
|
3291
|
-
return this.error(
|
|
3307
|
+
return this.error(y.UNCLOSED_TAG, v(n, this.clonePosition()));
|
|
3292
3308
|
} else
|
|
3293
|
-
return this.error(
|
|
3309
|
+
return this.error(y.INVALID_TAG, v(n, this.clonePosition()));
|
|
3294
3310
|
}, e.prototype.parseTagName = function() {
|
|
3295
3311
|
var t = this.offset();
|
|
3296
3312
|
for (this.bump(); !this.isEOF() && Di(this.char()); )
|
|
@@ -3315,14 +3331,14 @@ var Gi = (
|
|
|
3315
3331
|
}
|
|
3316
3332
|
break;
|
|
3317
3333
|
}
|
|
3318
|
-
var h =
|
|
3334
|
+
var h = v(n, this.clonePosition());
|
|
3319
3335
|
return {
|
|
3320
|
-
val: { type:
|
|
3336
|
+
val: { type: E.literal, value: i, location: h },
|
|
3321
3337
|
err: null
|
|
3322
3338
|
};
|
|
3323
3339
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3324
3340
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3325
|
-
|
|
3341
|
+
!$i(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3326
3342
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3327
3343
|
if (this.isEOF() || this.char() !== 39)
|
|
3328
3344
|
return null;
|
|
@@ -3356,49 +3372,49 @@ var Gi = (
|
|
|
3356
3372
|
r.push(n);
|
|
3357
3373
|
this.bump();
|
|
3358
3374
|
}
|
|
3359
|
-
return
|
|
3375
|
+
return at.apply(void 0, r);
|
|
3360
3376
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3361
3377
|
if (this.isEOF())
|
|
3362
3378
|
return null;
|
|
3363
3379
|
var n = this.char();
|
|
3364
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3380
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), at(n));
|
|
3365
3381
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3366
3382
|
var n = this.clonePosition();
|
|
3367
3383
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3368
|
-
return this.error(
|
|
3384
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3369
3385
|
if (this.char() === 125)
|
|
3370
|
-
return this.bump(), this.error(
|
|
3386
|
+
return this.bump(), this.error(y.EMPTY_ARGUMENT, v(n, this.clonePosition()));
|
|
3371
3387
|
var i = this.parseIdentifierIfPossible().value;
|
|
3372
3388
|
if (!i)
|
|
3373
|
-
return this.error(
|
|
3389
|
+
return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3374
3390
|
if (this.bumpSpace(), this.isEOF())
|
|
3375
|
-
return this.error(
|
|
3391
|
+
return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
|
|
3376
3392
|
switch (this.char()) {
|
|
3377
3393
|
case 125:
|
|
3378
3394
|
return this.bump(), {
|
|
3379
3395
|
val: {
|
|
3380
|
-
type:
|
|
3396
|
+
type: E.argument,
|
|
3381
3397
|
// value does not include the opening and closing braces.
|
|
3382
3398
|
value: i,
|
|
3383
|
-
location:
|
|
3399
|
+
location: v(n, this.clonePosition())
|
|
3384
3400
|
},
|
|
3385
3401
|
err: null
|
|
3386
3402
|
};
|
|
3387
3403
|
case 44:
|
|
3388
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3404
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3389
3405
|
default:
|
|
3390
|
-
return this.error(
|
|
3406
|
+
return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
|
|
3391
3407
|
}
|
|
3392
3408
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3393
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3409
|
+
var t = this.clonePosition(), r = this.offset(), n = st(this.message, r), i = r + n.length;
|
|
3394
3410
|
this.bumpTo(i);
|
|
3395
|
-
var o = this.clonePosition(), a =
|
|
3411
|
+
var o = this.clonePosition(), a = v(t, o);
|
|
3396
3412
|
return { value: n, location: a };
|
|
3397
3413
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3398
3414
|
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3399
3415
|
switch (s) {
|
|
3400
3416
|
case "":
|
|
3401
|
-
return this.error(
|
|
3417
|
+
return this.error(y.EXPECT_ARGUMENT_TYPE, v(a, h));
|
|
3402
3418
|
case "number":
|
|
3403
3419
|
case "date":
|
|
3404
3420
|
case "time": {
|
|
@@ -3409,35 +3425,35 @@ var Gi = (
|
|
|
3409
3425
|
var u = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3410
3426
|
if (f.err)
|
|
3411
3427
|
return f;
|
|
3412
|
-
var c =
|
|
3428
|
+
var c = Gi(f.val);
|
|
3413
3429
|
if (c.length === 0)
|
|
3414
|
-
return this.error(
|
|
3415
|
-
var m =
|
|
3430
|
+
return this.error(y.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
|
|
3431
|
+
var m = v(u, this.clonePosition());
|
|
3416
3432
|
l = { style: c, styleLocation: m };
|
|
3417
3433
|
}
|
|
3418
3434
|
var d = this.tryParseArgumentClose(i);
|
|
3419
3435
|
if (d.err)
|
|
3420
3436
|
return d;
|
|
3421
|
-
var p =
|
|
3422
|
-
if (l &&
|
|
3437
|
+
var p = v(i, this.clonePosition());
|
|
3438
|
+
if (l && Ut(l == null ? void 0 : l.style, "::", 0)) {
|
|
3423
3439
|
var A = Ci(l.style.slice(2));
|
|
3424
3440
|
if (s === "number") {
|
|
3425
3441
|
var f = this.parseNumberSkeletonFromString(A, l.styleLocation);
|
|
3426
3442
|
return f.err ? f : {
|
|
3427
|
-
val: { type:
|
|
3443
|
+
val: { type: E.number, value: n, location: p, style: f.val },
|
|
3428
3444
|
err: null
|
|
3429
3445
|
};
|
|
3430
3446
|
} else {
|
|
3431
3447
|
if (A.length === 0)
|
|
3432
|
-
return this.error(
|
|
3448
|
+
return this.error(y.EXPECT_DATE_TIME_SKELETON, p);
|
|
3433
3449
|
var H = A;
|
|
3434
|
-
this.locale && (H =
|
|
3450
|
+
this.locale && (H = wi(A, this.locale));
|
|
3435
3451
|
var c = {
|
|
3436
|
-
type:
|
|
3452
|
+
type: re.dateTime,
|
|
3437
3453
|
pattern: H,
|
|
3438
3454
|
location: l.styleLocation,
|
|
3439
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3440
|
-
}, T = s === "date" ?
|
|
3455
|
+
parsedOptions: this.shouldParseSkeletons ? bi(H) : {}
|
|
3456
|
+
}, T = s === "date" ? E.date : E.time;
|
|
3441
3457
|
return {
|
|
3442
3458
|
val: { type: T, value: n, location: p, style: c },
|
|
3443
3459
|
err: null
|
|
@@ -3446,7 +3462,7 @@ var Gi = (
|
|
|
3446
3462
|
}
|
|
3447
3463
|
return {
|
|
3448
3464
|
val: {
|
|
3449
|
-
type: s === "number" ?
|
|
3465
|
+
type: s === "number" ? E.number : s === "date" ? E.date : E.time,
|
|
3450
3466
|
value: n,
|
|
3451
3467
|
location: p,
|
|
3452
3468
|
style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
|
|
@@ -3459,50 +3475,50 @@ var Gi = (
|
|
|
3459
3475
|
case "select": {
|
|
3460
3476
|
var B = this.clonePosition();
|
|
3461
3477
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3462
|
-
return this.error(
|
|
3478
|
+
return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(B, Pe({}, B)));
|
|
3463
3479
|
this.bumpSpace();
|
|
3464
|
-
var
|
|
3465
|
-
if (s !== "select" &&
|
|
3480
|
+
var L = this.parseIdentifierIfPossible(), M = 0;
|
|
3481
|
+
if (s !== "select" && L.value === "offset") {
|
|
3466
3482
|
if (!this.bumpIf(":"))
|
|
3467
|
-
return this.error(
|
|
3483
|
+
return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
|
|
3468
3484
|
this.bumpSpace();
|
|
3469
|
-
var f = this.tryParseDecimalInteger(
|
|
3485
|
+
var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3470
3486
|
if (f.err)
|
|
3471
3487
|
return f;
|
|
3472
|
-
this.bumpSpace(),
|
|
3488
|
+
this.bumpSpace(), L = this.parseIdentifierIfPossible(), M = f.val;
|
|
3473
3489
|
}
|
|
3474
|
-
var
|
|
3475
|
-
if (
|
|
3476
|
-
return
|
|
3490
|
+
var U = this.tryParsePluralOrSelectOptions(t, s, r, L);
|
|
3491
|
+
if (U.err)
|
|
3492
|
+
return U;
|
|
3477
3493
|
var d = this.tryParseArgumentClose(i);
|
|
3478
3494
|
if (d.err)
|
|
3479
3495
|
return d;
|
|
3480
|
-
var
|
|
3496
|
+
var be = v(i, this.clonePosition());
|
|
3481
3497
|
return s === "select" ? {
|
|
3482
3498
|
val: {
|
|
3483
|
-
type:
|
|
3499
|
+
type: E.select,
|
|
3484
3500
|
value: n,
|
|
3485
|
-
options:
|
|
3486
|
-
location:
|
|
3501
|
+
options: $t(U.val),
|
|
3502
|
+
location: be
|
|
3487
3503
|
},
|
|
3488
3504
|
err: null
|
|
3489
3505
|
} : {
|
|
3490
3506
|
val: {
|
|
3491
|
-
type:
|
|
3507
|
+
type: E.plural,
|
|
3492
3508
|
value: n,
|
|
3493
|
-
options:
|
|
3494
|
-
offset:
|
|
3509
|
+
options: $t(U.val),
|
|
3510
|
+
offset: M,
|
|
3495
3511
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3496
|
-
location:
|
|
3512
|
+
location: be
|
|
3497
3513
|
},
|
|
3498
3514
|
err: null
|
|
3499
3515
|
};
|
|
3500
3516
|
}
|
|
3501
3517
|
default:
|
|
3502
|
-
return this.error(
|
|
3518
|
+
return this.error(y.INVALID_ARGUMENT_TYPE, v(a, h));
|
|
3503
3519
|
}
|
|
3504
3520
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3505
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3521
|
+
return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3506
3522
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3507
3523
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3508
3524
|
var n = this.char();
|
|
@@ -3511,7 +3527,7 @@ var Gi = (
|
|
|
3511
3527
|
this.bump();
|
|
3512
3528
|
var i = this.clonePosition();
|
|
3513
3529
|
if (!this.bumpUntil("'"))
|
|
3514
|
-
return this.error(
|
|
3530
|
+
return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
|
|
3515
3531
|
this.bump();
|
|
3516
3532
|
break;
|
|
3517
3533
|
}
|
|
@@ -3541,16 +3557,16 @@ var Gi = (
|
|
|
3541
3557
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3542
3558
|
var n = [];
|
|
3543
3559
|
try {
|
|
3544
|
-
n =
|
|
3560
|
+
n = yi(t);
|
|
3545
3561
|
} catch (i) {
|
|
3546
|
-
return this.error(
|
|
3562
|
+
return this.error(y.INVALID_NUMBER_SKELETON, r);
|
|
3547
3563
|
}
|
|
3548
3564
|
return {
|
|
3549
3565
|
val: {
|
|
3550
|
-
type:
|
|
3566
|
+
type: re.number,
|
|
3551
3567
|
tokens: n,
|
|
3552
3568
|
location: r,
|
|
3553
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3569
|
+
parsedOptions: this.shouldParseSkeletons ? Ei(n) : {}
|
|
3554
3570
|
},
|
|
3555
3571
|
err: null
|
|
3556
3572
|
};
|
|
@@ -3559,19 +3575,19 @@ var Gi = (
|
|
|
3559
3575
|
if (l.length === 0) {
|
|
3560
3576
|
var f = this.clonePosition();
|
|
3561
3577
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3562
|
-
var c = this.tryParseDecimalInteger(
|
|
3578
|
+
var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3563
3579
|
if (c.err)
|
|
3564
3580
|
return c;
|
|
3565
|
-
u =
|
|
3581
|
+
u = v(f, this.clonePosition()), l = this.message.slice(f.offset, this.offset());
|
|
3566
3582
|
} else
|
|
3567
3583
|
break;
|
|
3568
3584
|
}
|
|
3569
3585
|
if (h.has(l))
|
|
3570
|
-
return this.error(r === "select" ?
|
|
3586
|
+
return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
|
|
3571
3587
|
l === "other" && (a = !0), this.bumpSpace();
|
|
3572
3588
|
var m = this.clonePosition();
|
|
3573
3589
|
if (!this.bumpIf("{"))
|
|
3574
|
-
return this.error(r === "select" ?
|
|
3590
|
+
return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
|
|
3575
3591
|
var d = this.parseMessage(t + 1, r, n);
|
|
3576
3592
|
if (d.err)
|
|
3577
3593
|
return d;
|
|
@@ -3582,11 +3598,11 @@ var Gi = (
|
|
|
3582
3598
|
l,
|
|
3583
3599
|
{
|
|
3584
3600
|
value: d.val,
|
|
3585
|
-
location:
|
|
3601
|
+
location: v(m, this.clonePosition())
|
|
3586
3602
|
}
|
|
3587
3603
|
]), h.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, u = o.location;
|
|
3588
3604
|
}
|
|
3589
|
-
return s.length === 0 ? this.error(r === "select" ?
|
|
3605
|
+
return s.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(y.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3590
3606
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3591
3607
|
var n = 1, i = this.clonePosition();
|
|
3592
3608
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3597,7 +3613,7 @@ var Gi = (
|
|
|
3597
3613
|
else
|
|
3598
3614
|
break;
|
|
3599
3615
|
}
|
|
3600
|
-
var h =
|
|
3616
|
+
var h = v(i, this.clonePosition());
|
|
3601
3617
|
return o ? (a *= n, Li(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3602
3618
|
}, e.prototype.offset = function() {
|
|
3603
3619
|
return this.position.offset;
|
|
@@ -3632,7 +3648,7 @@ var Gi = (
|
|
|
3632
3648
|
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);
|
|
3633
3649
|
}
|
|
3634
3650
|
}, e.prototype.bumpIf = function(t) {
|
|
3635
|
-
if (
|
|
3651
|
+
if (Ut(this.message, t, this.offset())) {
|
|
3636
3652
|
for (var r = 0; r < t.length; r++)
|
|
3637
3653
|
this.bump();
|
|
3638
3654
|
return !0;
|
|
@@ -3664,11 +3680,11 @@ var Gi = (
|
|
|
3664
3680
|
}, e;
|
|
3665
3681
|
}()
|
|
3666
3682
|
);
|
|
3667
|
-
function
|
|
3683
|
+
function ut(e) {
|
|
3668
3684
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3669
3685
|
}
|
|
3670
|
-
function
|
|
3671
|
-
return
|
|
3686
|
+
function $i(e) {
|
|
3687
|
+
return ut(e) || e === 47;
|
|
3672
3688
|
}
|
|
3673
3689
|
function Di(e) {
|
|
3674
3690
|
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;
|
|
@@ -3679,32 +3695,32 @@ function Br(e) {
|
|
|
3679
3695
|
function Fi(e) {
|
|
3680
3696
|
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;
|
|
3681
3697
|
}
|
|
3682
|
-
function
|
|
3698
|
+
function lt(e) {
|
|
3683
3699
|
e.forEach(function(t) {
|
|
3684
3700
|
if (delete t.location, gr(t) || yr(t))
|
|
3685
3701
|
for (var r in t.options)
|
|
3686
|
-
delete t.options[r].location,
|
|
3702
|
+
delete t.options[r].location, lt(t.options[r].value);
|
|
3687
3703
|
else
|
|
3688
|
-
dr(t) && _r(t.style) || (pr(t) || br(t)) &&
|
|
3704
|
+
dr(t) && _r(t.style) || (pr(t) || br(t)) && it(t.style) ? delete t.style.location : vr(t) && lt(t.children);
|
|
3689
3705
|
});
|
|
3690
3706
|
}
|
|
3691
|
-
function
|
|
3692
|
-
t === void 0 && (t = {}), t =
|
|
3693
|
-
var r = new
|
|
3707
|
+
function ji(e, t) {
|
|
3708
|
+
t === void 0 && (t = {}), t = Pe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3709
|
+
var r = new Ui(e, t).parse();
|
|
3694
3710
|
if (r.err) {
|
|
3695
|
-
var n = SyntaxError(
|
|
3711
|
+
var n = SyntaxError(y[r.err.kind]);
|
|
3696
3712
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3697
3713
|
}
|
|
3698
|
-
return t != null && t.captureLocation ||
|
|
3714
|
+
return t != null && t.captureLocation || lt(r.val), r.val;
|
|
3699
3715
|
}
|
|
3700
|
-
var
|
|
3716
|
+
var ne;
|
|
3701
3717
|
(function(e) {
|
|
3702
3718
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3703
|
-
})(
|
|
3719
|
+
})(ne || (ne = {}));
|
|
3704
3720
|
var Me = (
|
|
3705
3721
|
/** @class */
|
|
3706
3722
|
function(e) {
|
|
3707
|
-
|
|
3723
|
+
Le(t, e);
|
|
3708
3724
|
function t(r, n, i) {
|
|
3709
3725
|
var o = e.call(this, r) || this;
|
|
3710
3726
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3716,27 +3732,27 @@ var Me = (
|
|
|
3716
3732
|
), Ft = (
|
|
3717
3733
|
/** @class */
|
|
3718
3734
|
function(e) {
|
|
3719
|
-
|
|
3735
|
+
Le(t, e);
|
|
3720
3736
|
function t(r, n, i, o) {
|
|
3721
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3737
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ne.INVALID_VALUE, o) || this;
|
|
3722
3738
|
}
|
|
3723
3739
|
return t;
|
|
3724
3740
|
}(Me)
|
|
3725
|
-
),
|
|
3741
|
+
), ki = (
|
|
3726
3742
|
/** @class */
|
|
3727
3743
|
function(e) {
|
|
3728
|
-
|
|
3744
|
+
Le(t, e);
|
|
3729
3745
|
function t(r, n, i) {
|
|
3730
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3746
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ne.INVALID_VALUE, i) || this;
|
|
3731
3747
|
}
|
|
3732
3748
|
return t;
|
|
3733
3749
|
}(Me)
|
|
3734
|
-
),
|
|
3750
|
+
), Vi = (
|
|
3735
3751
|
/** @class */
|
|
3736
3752
|
function(e) {
|
|
3737
|
-
|
|
3753
|
+
Le(t, e);
|
|
3738
3754
|
function t(r, n) {
|
|
3739
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3755
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ne.MISSING_VALUE, n) || this;
|
|
3740
3756
|
}
|
|
3741
3757
|
return t;
|
|
3742
3758
|
}(Me)
|
|
@@ -3744,16 +3760,16 @@ var Me = (
|
|
|
3744
3760
|
(function(e) {
|
|
3745
3761
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3746
3762
|
})(P || (P = {}));
|
|
3747
|
-
function
|
|
3763
|
+
function Wi(e) {
|
|
3748
3764
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3749
3765
|
var n = t[t.length - 1];
|
|
3750
3766
|
return !n || n.type !== P.literal || r.type !== P.literal ? t.push(r) : n.value += r.value, t;
|
|
3751
3767
|
}, []);
|
|
3752
3768
|
}
|
|
3753
|
-
function
|
|
3769
|
+
function Xi(e) {
|
|
3754
3770
|
return typeof e == "function";
|
|
3755
3771
|
}
|
|
3756
|
-
function
|
|
3772
|
+
function Te(e, t, r, n, i, o, a) {
|
|
3757
3773
|
if (e.length === 1 && Lt(e[0]))
|
|
3758
3774
|
return [
|
|
3759
3775
|
{
|
|
@@ -3770,7 +3786,7 @@ function He(e, t, r, n, i, o, a) {
|
|
|
3770
3786
|
});
|
|
3771
3787
|
continue;
|
|
3772
3788
|
}
|
|
3773
|
-
if (
|
|
3789
|
+
if (di(u)) {
|
|
3774
3790
|
typeof o == "number" && s.push({
|
|
3775
3791
|
type: P.literal,
|
|
3776
3792
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3779,9 +3795,9 @@ function He(e, t, r, n, i, o, a) {
|
|
|
3779
3795
|
}
|
|
3780
3796
|
var f = u.value;
|
|
3781
3797
|
if (!(i && f in i))
|
|
3782
|
-
throw new
|
|
3798
|
+
throw new Vi(f, a);
|
|
3783
3799
|
var c = i[f];
|
|
3784
|
-
if (
|
|
3800
|
+
if (mi(u)) {
|
|
3785
3801
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
|
|
3786
3802
|
type: typeof c == "string" ? P.literal : P.object,
|
|
3787
3803
|
value: c
|
|
@@ -3789,7 +3805,7 @@ function He(e, t, r, n, i, o, a) {
|
|
|
3789
3805
|
continue;
|
|
3790
3806
|
}
|
|
3791
3807
|
if (pr(u)) {
|
|
3792
|
-
var m = typeof u.style == "string" ? n.date[u.style] :
|
|
3808
|
+
var m = typeof u.style == "string" ? n.date[u.style] : it(u.style) ? u.style.parsedOptions : void 0;
|
|
3793
3809
|
s.push({
|
|
3794
3810
|
type: P.literal,
|
|
3795
3811
|
value: r.getDateTimeFormat(t, m).format(c)
|
|
@@ -3797,7 +3813,7 @@ function He(e, t, r, n, i, o, a) {
|
|
|
3797
3813
|
continue;
|
|
3798
3814
|
}
|
|
3799
3815
|
if (br(u)) {
|
|
3800
|
-
var m = typeof u.style == "string" ? n.time[u.style] :
|
|
3816
|
+
var m = typeof u.style == "string" ? n.time[u.style] : it(u.style) ? u.style.parsedOptions : n.time.medium;
|
|
3801
3817
|
s.push({
|
|
3802
3818
|
type: P.literal,
|
|
3803
3819
|
value: r.getDateTimeFormat(t, m).format(c)
|
|
@@ -3814,15 +3830,15 @@ function He(e, t, r, n, i, o, a) {
|
|
|
3814
3830
|
}
|
|
3815
3831
|
if (vr(u)) {
|
|
3816
3832
|
var d = u.children, p = u.value, A = i[p];
|
|
3817
|
-
if (!
|
|
3818
|
-
throw new
|
|
3819
|
-
var H =
|
|
3820
|
-
return
|
|
3833
|
+
if (!Xi(A))
|
|
3834
|
+
throw new ki(p, "function", a);
|
|
3835
|
+
var H = Te(d, t, r, n, i, o), T = A(H.map(function(M) {
|
|
3836
|
+
return M.value;
|
|
3821
3837
|
}));
|
|
3822
|
-
Array.isArray(T) || (T = [T]), s.push.apply(s, T.map(function(
|
|
3838
|
+
Array.isArray(T) || (T = [T]), s.push.apply(s, T.map(function(M) {
|
|
3823
3839
|
return {
|
|
3824
|
-
type: typeof
|
|
3825
|
-
value:
|
|
3840
|
+
type: typeof M == "string" ? P.literal : P.object,
|
|
3841
|
+
value: M
|
|
3826
3842
|
};
|
|
3827
3843
|
}));
|
|
3828
3844
|
}
|
|
@@ -3830,7 +3846,7 @@ function He(e, t, r, n, i, o, a) {
|
|
|
3830
3846
|
var B = u.options[c] || u.options.other;
|
|
3831
3847
|
if (!B)
|
|
3832
3848
|
throw new Ft(u.value, c, Object.keys(u.options), a);
|
|
3833
|
-
s.push.apply(s,
|
|
3849
|
+
s.push.apply(s, Te(B.value, t, r, n, i));
|
|
3834
3850
|
continue;
|
|
3835
3851
|
}
|
|
3836
3852
|
if (yr(u)) {
|
|
@@ -3839,29 +3855,29 @@ function He(e, t, r, n, i, o, a) {
|
|
|
3839
3855
|
if (!Intl.PluralRules)
|
|
3840
3856
|
throw new Me(`Intl.PluralRules is not available in this environment.
|
|
3841
3857
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3842
|
-
`,
|
|
3843
|
-
var
|
|
3844
|
-
B = u.options[
|
|
3858
|
+
`, ne.MISSING_INTL_API, a);
|
|
3859
|
+
var L = r.getPluralRules(t, { type: u.pluralType }).select(c - (u.offset || 0));
|
|
3860
|
+
B = u.options[L] || u.options.other;
|
|
3845
3861
|
}
|
|
3846
3862
|
if (!B)
|
|
3847
3863
|
throw new Ft(u.value, c, Object.keys(u.options), a);
|
|
3848
|
-
s.push.apply(s,
|
|
3864
|
+
s.push.apply(s, Te(B.value, t, r, n, i, c - (u.offset || 0)));
|
|
3849
3865
|
continue;
|
|
3850
3866
|
}
|
|
3851
3867
|
}
|
|
3852
|
-
return
|
|
3868
|
+
return Wi(s);
|
|
3853
3869
|
}
|
|
3854
|
-
function
|
|
3855
|
-
return t ?
|
|
3856
|
-
return r[n] =
|
|
3870
|
+
function zi(e, t) {
|
|
3871
|
+
return t ? C(C(C({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3872
|
+
return r[n] = C(C({}, e[n]), t[n] || {}), r;
|
|
3857
3873
|
}, {})) : e;
|
|
3858
3874
|
}
|
|
3859
|
-
function
|
|
3875
|
+
function Ji(e, t) {
|
|
3860
3876
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3861
|
-
return r[n] =
|
|
3862
|
-
},
|
|
3877
|
+
return r[n] = zi(e[n], t[n]), r;
|
|
3878
|
+
}, C({}, e)) : e;
|
|
3863
3879
|
}
|
|
3864
|
-
function
|
|
3880
|
+
function Xe(e) {
|
|
3865
3881
|
return {
|
|
3866
3882
|
create: function() {
|
|
3867
3883
|
return {
|
|
@@ -3875,39 +3891,39 @@ function We(e) {
|
|
|
3875
3891
|
}
|
|
3876
3892
|
};
|
|
3877
3893
|
}
|
|
3878
|
-
function
|
|
3894
|
+
function Zi(e) {
|
|
3879
3895
|
return e === void 0 && (e = {
|
|
3880
3896
|
number: {},
|
|
3881
3897
|
dateTime: {},
|
|
3882
3898
|
pluralRules: {}
|
|
3883
3899
|
}), {
|
|
3884
|
-
getNumberFormat:
|
|
3900
|
+
getNumberFormat: ke(function() {
|
|
3885
3901
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3886
3902
|
r[n] = arguments[n];
|
|
3887
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3903
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, je([void 0], r, !1)))();
|
|
3888
3904
|
}, {
|
|
3889
|
-
cache:
|
|
3890
|
-
strategy:
|
|
3905
|
+
cache: Xe(e.number),
|
|
3906
|
+
strategy: Ve.variadic
|
|
3891
3907
|
}),
|
|
3892
|
-
getDateTimeFormat:
|
|
3908
|
+
getDateTimeFormat: ke(function() {
|
|
3893
3909
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3894
3910
|
r[n] = arguments[n];
|
|
3895
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3911
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, je([void 0], r, !1)))();
|
|
3896
3912
|
}, {
|
|
3897
|
-
cache:
|
|
3898
|
-
strategy:
|
|
3913
|
+
cache: Xe(e.dateTime),
|
|
3914
|
+
strategy: Ve.variadic
|
|
3899
3915
|
}),
|
|
3900
|
-
getPluralRules:
|
|
3916
|
+
getPluralRules: ke(function() {
|
|
3901
3917
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3902
3918
|
r[n] = arguments[n];
|
|
3903
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3919
|
+
return new ((t = Intl.PluralRules).bind.apply(t, je([void 0], r, !1)))();
|
|
3904
3920
|
}, {
|
|
3905
|
-
cache:
|
|
3906
|
-
strategy:
|
|
3921
|
+
cache: Xe(e.pluralRules),
|
|
3922
|
+
strategy: Ve.variadic
|
|
3907
3923
|
})
|
|
3908
3924
|
};
|
|
3909
3925
|
}
|
|
3910
|
-
var
|
|
3926
|
+
var Qi = (
|
|
3911
3927
|
/** @class */
|
|
3912
3928
|
function() {
|
|
3913
3929
|
function e(t, r, n, i) {
|
|
@@ -3926,7 +3942,7 @@ var Zi = (
|
|
|
3926
3942
|
}, []);
|
|
3927
3943
|
return u.length <= 1 ? u[0] || "" : u;
|
|
3928
3944
|
}, this.formatToParts = function(h) {
|
|
3929
|
-
return
|
|
3945
|
+
return Te(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3930
3946
|
}, this.resolvedOptions = function() {
|
|
3931
3947
|
var h;
|
|
3932
3948
|
return {
|
|
@@ -3939,13 +3955,13 @@ var Zi = (
|
|
|
3939
3955
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3940
3956
|
var a = i || {};
|
|
3941
3957
|
a.formatters;
|
|
3942
|
-
var s =
|
|
3943
|
-
this.ast = e.__parse(t,
|
|
3958
|
+
var s = oi(a, ["formatters"]);
|
|
3959
|
+
this.ast = e.__parse(t, C(C({}, s), { locale: this.resolvedLocale }));
|
|
3944
3960
|
} else
|
|
3945
3961
|
this.ast = t;
|
|
3946
3962
|
if (!Array.isArray(this.ast))
|
|
3947
3963
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3948
|
-
this.formats =
|
|
3964
|
+
this.formats = Ji(e.formats, n), this.formatters = i && i.formatters || Zi(this.formatterCache);
|
|
3949
3965
|
}
|
|
3950
3966
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3951
3967
|
get: function() {
|
|
@@ -3958,7 +3974,7 @@ var Zi = (
|
|
|
3958
3974
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3959
3975
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3960
3976
|
}
|
|
3961
|
-
}, e.__parse =
|
|
3977
|
+
}, e.__parse = ji, e.formats = {
|
|
3962
3978
|
number: {
|
|
3963
3979
|
integer: {
|
|
3964
3980
|
maximumFractionDigits: 0
|
|
@@ -4019,7 +4035,7 @@ var Zi = (
|
|
|
4019
4035
|
}, e;
|
|
4020
4036
|
}()
|
|
4021
4037
|
);
|
|
4022
|
-
function
|
|
4038
|
+
function Yi(e, t) {
|
|
4023
4039
|
if (t == null)
|
|
4024
4040
|
return;
|
|
4025
4041
|
if (t in e)
|
|
@@ -4040,33 +4056,33 @@ function Qi(e, t) {
|
|
|
4040
4056
|
n = void 0;
|
|
4041
4057
|
return n;
|
|
4042
4058
|
}
|
|
4043
|
-
const j = {},
|
|
4059
|
+
const j = {}, qi = (e, t, r) => r && (t in j || (j[t] = {}), e in j[t] || (j[t][e] = r), r), Ar = (e, t) => {
|
|
4044
4060
|
if (t == null)
|
|
4045
4061
|
return;
|
|
4046
4062
|
if (t in j && e in j[t])
|
|
4047
4063
|
return j[t][e];
|
|
4048
4064
|
const r = Ce(t);
|
|
4049
4065
|
for (let n = 0; n < r.length; n++) {
|
|
4050
|
-
const i = r[n], o =
|
|
4066
|
+
const i = r[n], o = eo(i, e);
|
|
4051
4067
|
if (o)
|
|
4052
|
-
return
|
|
4068
|
+
return qi(e, t, o);
|
|
4053
4069
|
}
|
|
4054
4070
|
};
|
|
4055
|
-
let
|
|
4056
|
-
const
|
|
4057
|
-
function
|
|
4058
|
-
return
|
|
4071
|
+
let mt;
|
|
4072
|
+
const ae = Ne({});
|
|
4073
|
+
function Ki(e) {
|
|
4074
|
+
return mt[e] || null;
|
|
4059
4075
|
}
|
|
4060
4076
|
function Pr(e) {
|
|
4061
|
-
return e in
|
|
4077
|
+
return e in mt;
|
|
4062
4078
|
}
|
|
4063
|
-
function
|
|
4079
|
+
function eo(e, t) {
|
|
4064
4080
|
if (!Pr(e))
|
|
4065
4081
|
return null;
|
|
4066
|
-
const r =
|
|
4067
|
-
return
|
|
4082
|
+
const r = Ki(e);
|
|
4083
|
+
return Yi(r, t);
|
|
4068
4084
|
}
|
|
4069
|
-
function
|
|
4085
|
+
function to(e) {
|
|
4070
4086
|
if (e == null)
|
|
4071
4087
|
return;
|
|
4072
4088
|
const t = Ce(e);
|
|
@@ -4076,56 +4092,56 @@ function eo(e) {
|
|
|
4076
4092
|
return n;
|
|
4077
4093
|
}
|
|
4078
4094
|
}
|
|
4079
|
-
function
|
|
4080
|
-
delete j[e],
|
|
4095
|
+
function Or(e, ...t) {
|
|
4096
|
+
delete j[e], ae.update((r) => (r[e] = ii.all([r[e] || {}, ...t]), r));
|
|
4081
4097
|
}
|
|
4082
|
-
|
|
4083
|
-
[
|
|
4098
|
+
oe(
|
|
4099
|
+
[ae],
|
|
4084
4100
|
([e]) => Object.keys(e)
|
|
4085
4101
|
);
|
|
4086
|
-
|
|
4087
|
-
const
|
|
4088
|
-
function
|
|
4089
|
-
|
|
4102
|
+
ae.subscribe((e) => mt = e);
|
|
4103
|
+
const He = {};
|
|
4104
|
+
function ro(e, t) {
|
|
4105
|
+
He[e].delete(t), He[e].size === 0 && delete He[e];
|
|
4090
4106
|
}
|
|
4091
|
-
function
|
|
4092
|
-
return
|
|
4107
|
+
function Rr(e) {
|
|
4108
|
+
return He[e];
|
|
4093
4109
|
}
|
|
4094
|
-
function
|
|
4110
|
+
function no(e) {
|
|
4095
4111
|
return Ce(e).map((t) => {
|
|
4096
|
-
const r =
|
|
4112
|
+
const r = Rr(t);
|
|
4097
4113
|
return [t, r ? [...r] : []];
|
|
4098
4114
|
}).filter(([, t]) => t.length > 0);
|
|
4099
4115
|
}
|
|
4100
|
-
function
|
|
4116
|
+
function ht(e) {
|
|
4101
4117
|
return e == null ? !1 : Ce(e).some(
|
|
4102
4118
|
(t) => {
|
|
4103
4119
|
var r;
|
|
4104
|
-
return (r =
|
|
4120
|
+
return (r = Rr(t)) == null ? void 0 : r.size;
|
|
4105
4121
|
}
|
|
4106
4122
|
);
|
|
4107
4123
|
}
|
|
4108
|
-
function
|
|
4124
|
+
function io(e, t) {
|
|
4109
4125
|
return Promise.all(
|
|
4110
|
-
t.map((n) => (
|
|
4111
|
-
).then((n) =>
|
|
4112
|
-
}
|
|
4113
|
-
const
|
|
4114
|
-
function
|
|
4115
|
-
if (!
|
|
4116
|
-
return e in
|
|
4117
|
-
const t =
|
|
4118
|
-
return
|
|
4126
|
+
t.map((n) => (ro(e, n), n().then((i) => i.default || i)))
|
|
4127
|
+
).then((n) => Or(e, ...n));
|
|
4128
|
+
}
|
|
4129
|
+
const le = {};
|
|
4130
|
+
function Ir(e) {
|
|
4131
|
+
if (!ht(e))
|
|
4132
|
+
return e in le ? le[e] : Promise.resolve();
|
|
4133
|
+
const t = no(e);
|
|
4134
|
+
return le[e] = Promise.all(
|
|
4119
4135
|
t.map(
|
|
4120
|
-
([r, n]) =>
|
|
4136
|
+
([r, n]) => io(r, n)
|
|
4121
4137
|
)
|
|
4122
4138
|
).then(() => {
|
|
4123
|
-
if (
|
|
4124
|
-
return
|
|
4125
|
-
delete
|
|
4126
|
-
}),
|
|
4139
|
+
if (ht(e))
|
|
4140
|
+
return Ir(e);
|
|
4141
|
+
delete le[e];
|
|
4142
|
+
}), le[e];
|
|
4127
4143
|
}
|
|
4128
|
-
const
|
|
4144
|
+
const oo = {
|
|
4129
4145
|
number: {
|
|
4130
4146
|
scientific: { notation: "scientific" },
|
|
4131
4147
|
engineering: { notation: "engineering" },
|
|
@@ -4154,141 +4170,141 @@ const io = {
|
|
|
4154
4170
|
timeZoneName: "short"
|
|
4155
4171
|
}
|
|
4156
4172
|
}
|
|
4157
|
-
},
|
|
4173
|
+
}, ao = {
|
|
4158
4174
|
fallbackLocale: null,
|
|
4159
4175
|
loadingDelay: 200,
|
|
4160
|
-
formats:
|
|
4176
|
+
formats: oo,
|
|
4161
4177
|
warnOnMissingMessages: !0,
|
|
4162
4178
|
handleMissingMessage: void 0,
|
|
4163
4179
|
ignoreTag: !0
|
|
4164
|
-
},
|
|
4165
|
-
function
|
|
4166
|
-
return
|
|
4180
|
+
}, so = ao;
|
|
4181
|
+
function ie() {
|
|
4182
|
+
return so;
|
|
4167
4183
|
}
|
|
4168
|
-
const
|
|
4169
|
-
var
|
|
4184
|
+
const ze = Ne(!1);
|
|
4185
|
+
var uo = Object.defineProperty, lo = Object.defineProperties, ho = Object.getOwnPropertyDescriptors, jt = Object.getOwnPropertySymbols, co = Object.prototype.hasOwnProperty, fo = Object.prototype.propertyIsEnumerable, kt = (e, t, r) => t in e ? uo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, mo = (e, t) => {
|
|
4170
4186
|
for (var r in t || (t = {}))
|
|
4171
|
-
|
|
4172
|
-
if (
|
|
4173
|
-
for (var r of
|
|
4174
|
-
|
|
4187
|
+
co.call(t, r) && kt(e, r, t[r]);
|
|
4188
|
+
if (jt)
|
|
4189
|
+
for (var r of jt(t))
|
|
4190
|
+
fo.call(t, r) && kt(e, r, t[r]);
|
|
4175
4191
|
return e;
|
|
4176
|
-
},
|
|
4177
|
-
let
|
|
4178
|
-
const
|
|
4179
|
-
function
|
|
4192
|
+
}, po = (e, t) => lo(e, ho(t));
|
|
4193
|
+
let ct;
|
|
4194
|
+
const Oe = Ne(null);
|
|
4195
|
+
function Vt(e) {
|
|
4180
4196
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4181
4197
|
}
|
|
4182
|
-
function Ce(e, t =
|
|
4183
|
-
const r =
|
|
4184
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4198
|
+
function Ce(e, t = ie().fallbackLocale) {
|
|
4199
|
+
const r = Vt(e);
|
|
4200
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Vt(t)])] : r;
|
|
4185
4201
|
}
|
|
4186
|
-
function
|
|
4187
|
-
return
|
|
4202
|
+
function Z() {
|
|
4203
|
+
return ct != null ? ct : void 0;
|
|
4188
4204
|
}
|
|
4189
|
-
|
|
4190
|
-
|
|
4205
|
+
Oe.subscribe((e) => {
|
|
4206
|
+
ct = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4191
4207
|
});
|
|
4192
|
-
const
|
|
4193
|
-
if (e &&
|
|
4194
|
-
const { loadingDelay: t } =
|
|
4208
|
+
const bo = (e) => {
|
|
4209
|
+
if (e && to(e) && ht(e)) {
|
|
4210
|
+
const { loadingDelay: t } = ie();
|
|
4195
4211
|
let r;
|
|
4196
|
-
return typeof window != "undefined" &&
|
|
4197
|
-
() =>
|
|
4212
|
+
return typeof window != "undefined" && Z() != null && t ? r = window.setTimeout(
|
|
4213
|
+
() => ze.set(!0),
|
|
4198
4214
|
t
|
|
4199
|
-
) :
|
|
4200
|
-
|
|
4215
|
+
) : ze.set(!0), Ir(e).then(() => {
|
|
4216
|
+
Oe.set(e);
|
|
4201
4217
|
}).finally(() => {
|
|
4202
|
-
clearTimeout(r),
|
|
4218
|
+
clearTimeout(r), ze.set(!1);
|
|
4203
4219
|
});
|
|
4204
4220
|
}
|
|
4205
|
-
return
|
|
4206
|
-
}, W = mo(
|
|
4207
|
-
set:
|
|
4208
|
-
}),
|
|
4221
|
+
return Oe.set(e);
|
|
4222
|
+
}, W = po(mo({}, Oe), {
|
|
4223
|
+
set: bo
|
|
4224
|
+
}), Ge = (e) => {
|
|
4209
4225
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4210
4226
|
return (n) => {
|
|
4211
4227
|
const i = JSON.stringify(n);
|
|
4212
4228
|
return i in t ? t[i] : t[i] = e(n);
|
|
4213
4229
|
};
|
|
4214
4230
|
};
|
|
4215
|
-
var
|
|
4231
|
+
var go = Object.defineProperty, Re = Object.getOwnPropertySymbols, Nr = Object.prototype.hasOwnProperty, Lr = Object.prototype.propertyIsEnumerable, Wt = (e, t, r) => t in e ? go(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, dt = (e, t) => {
|
|
4216
4232
|
for (var r in t || (t = {}))
|
|
4217
|
-
|
|
4218
|
-
if (
|
|
4219
|
-
for (var r of
|
|
4220
|
-
|
|
4233
|
+
Nr.call(t, r) && Wt(e, r, t[r]);
|
|
4234
|
+
if (Re)
|
|
4235
|
+
for (var r of Re(t))
|
|
4236
|
+
Lr.call(t, r) && Wt(e, r, t[r]);
|
|
4221
4237
|
return e;
|
|
4222
|
-
},
|
|
4238
|
+
}, se = (e, t) => {
|
|
4223
4239
|
var r = {};
|
|
4224
4240
|
for (var n in e)
|
|
4225
|
-
|
|
4226
|
-
if (e != null &&
|
|
4227
|
-
for (var n of
|
|
4228
|
-
t.indexOf(n) < 0 &&
|
|
4241
|
+
Nr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4242
|
+
if (e != null && Re)
|
|
4243
|
+
for (var n of Re(e))
|
|
4244
|
+
t.indexOf(n) < 0 && Lr.call(e, n) && (r[n] = e[n]);
|
|
4229
4245
|
return r;
|
|
4230
4246
|
};
|
|
4231
|
-
const
|
|
4232
|
-
const { formats: r } =
|
|
4247
|
+
const de = (e, t) => {
|
|
4248
|
+
const { formats: r } = ie();
|
|
4233
4249
|
if (e in r && t in r[e])
|
|
4234
4250
|
return r[e][t];
|
|
4235
4251
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4236
|
-
},
|
|
4252
|
+
}, yo = Ge(
|
|
4237
4253
|
(e) => {
|
|
4238
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4254
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
4239
4255
|
if (r == null)
|
|
4240
4256
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4241
|
-
return n && (i =
|
|
4257
|
+
return n && (i = de("number", n)), new Intl.NumberFormat(r, i);
|
|
4242
4258
|
}
|
|
4243
|
-
),
|
|
4259
|
+
), vo = Ge(
|
|
4244
4260
|
(e) => {
|
|
4245
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4261
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
4246
4262
|
if (r == null)
|
|
4247
4263
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4248
|
-
return n ? i =
|
|
4264
|
+
return n ? i = de("date", n) : Object.keys(i).length === 0 && (i = de("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4249
4265
|
}
|
|
4250
|
-
),
|
|
4266
|
+
), _o = Ge(
|
|
4251
4267
|
(e) => {
|
|
4252
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4268
|
+
var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
|
|
4253
4269
|
if (r == null)
|
|
4254
4270
|
throw new Error(
|
|
4255
4271
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4256
4272
|
);
|
|
4257
|
-
return n ? i =
|
|
4273
|
+
return n ? i = de("time", n) : Object.keys(i).length === 0 && (i = de("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4258
4274
|
}
|
|
4259
|
-
),
|
|
4275
|
+
), xo = (e = {}) => {
|
|
4260
4276
|
var t = e, {
|
|
4261
|
-
locale: r =
|
|
4262
|
-
} = t, n =
|
|
4277
|
+
locale: r = Z()
|
|
4278
|
+
} = t, n = se(t, [
|
|
4263
4279
|
"locale"
|
|
4264
4280
|
]);
|
|
4265
|
-
return
|
|
4266
|
-
},
|
|
4281
|
+
return yo(dt({ locale: r }, n));
|
|
4282
|
+
}, Eo = (e = {}) => {
|
|
4267
4283
|
var t = e, {
|
|
4268
|
-
locale: r =
|
|
4269
|
-
} = t, n =
|
|
4284
|
+
locale: r = Z()
|
|
4285
|
+
} = t, n = se(t, [
|
|
4270
4286
|
"locale"
|
|
4271
4287
|
]);
|
|
4272
|
-
return
|
|
4273
|
-
},
|
|
4288
|
+
return vo(dt({ locale: r }, n));
|
|
4289
|
+
}, wo = (e = {}) => {
|
|
4274
4290
|
var t = e, {
|
|
4275
|
-
locale: r =
|
|
4276
|
-
} = t, n =
|
|
4291
|
+
locale: r = Z()
|
|
4292
|
+
} = t, n = se(t, [
|
|
4277
4293
|
"locale"
|
|
4278
4294
|
]);
|
|
4279
|
-
return
|
|
4280
|
-
},
|
|
4295
|
+
return _o(dt({ locale: r }, n));
|
|
4296
|
+
}, So = Ge(
|
|
4281
4297
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4282
|
-
(e, t =
|
|
4283
|
-
ignoreTag:
|
|
4298
|
+
(e, t = Z()) => new Qi(e, t, ie().formats, {
|
|
4299
|
+
ignoreTag: ie().ignoreTag
|
|
4284
4300
|
})
|
|
4285
|
-
),
|
|
4301
|
+
), To = (e, t = {}) => {
|
|
4286
4302
|
var r, n, i, o;
|
|
4287
4303
|
let a = t;
|
|
4288
4304
|
typeof e == "object" && (a = e, e = a.id);
|
|
4289
4305
|
const {
|
|
4290
4306
|
values: s,
|
|
4291
|
-
locale: h =
|
|
4307
|
+
locale: h = Z(),
|
|
4292
4308
|
default: l
|
|
4293
4309
|
} = a;
|
|
4294
4310
|
if (h == null)
|
|
@@ -4297,7 +4313,7 @@ const be = (e, t) => {
|
|
|
4297
4313
|
);
|
|
4298
4314
|
let u = Ar(e, h);
|
|
4299
4315
|
if (!u)
|
|
4300
|
-
u = (o = (i = (n = (r =
|
|
4316
|
+
u = (o = (i = (n = (r = ie()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
4301
4317
|
else if (typeof u != "string")
|
|
4302
4318
|
return console.warn(
|
|
4303
4319
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4306,7 +4322,7 @@ const be = (e, t) => {
|
|
|
4306
4322
|
return u;
|
|
4307
4323
|
let f = u;
|
|
4308
4324
|
try {
|
|
4309
|
-
f =
|
|
4325
|
+
f = So(u, h).format(s);
|
|
4310
4326
|
} catch (c) {
|
|
4311
4327
|
c instanceof Error && console.warn(
|
|
4312
4328
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4314,12 +4330,12 @@ const be = (e, t) => {
|
|
|
4314
4330
|
);
|
|
4315
4331
|
}
|
|
4316
4332
|
return f;
|
|
4317
|
-
},
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
window.emWidgets = { topic:
|
|
4333
|
+
}, Ho = (e, t) => wo(t).format(e), Bo = (e, t) => Eo(t).format(e), Ao = (e, t) => xo(t).format(e), Po = (e, t = Z()) => Ar(e, t), Oo = oe([W, ae], () => To);
|
|
4334
|
+
oe([W], () => Ho);
|
|
4335
|
+
oe([W], () => Bo);
|
|
4336
|
+
oe([W], () => Ao);
|
|
4337
|
+
oe([W, ae], () => Po);
|
|
4338
|
+
window.emWidgets = { topic: Fn };
|
|
4323
4339
|
const Ro = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4324
4340
|
function Io(e, t) {
|
|
4325
4341
|
if (e) {
|
|
@@ -4327,7 +4343,7 @@ function Io(e, t) {
|
|
|
4327
4343
|
r.innerHTML = t, e.appendChild(r);
|
|
4328
4344
|
}
|
|
4329
4345
|
}
|
|
4330
|
-
function
|
|
4346
|
+
function No(e, t) {
|
|
4331
4347
|
const r = new URL(t);
|
|
4332
4348
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4333
4349
|
const i = document.createElement("style");
|
|
@@ -4346,16 +4362,16 @@ function Lo(e, t, r) {
|
|
|
4346
4362
|
}
|
|
4347
4363
|
function Mo({ withLocale: e, translations: t }) {
|
|
4348
4364
|
W.subscribe((r) => {
|
|
4349
|
-
r == null && (
|
|
4365
|
+
r == null && (ae.set(t), W.set(e));
|
|
4350
4366
|
});
|
|
4351
4367
|
}
|
|
4352
|
-
function
|
|
4353
|
-
|
|
4368
|
+
function Xt(e, t) {
|
|
4369
|
+
Or(e, t);
|
|
4354
4370
|
}
|
|
4355
4371
|
function Co(e) {
|
|
4356
4372
|
W.set(e);
|
|
4357
4373
|
}
|
|
4358
|
-
const
|
|
4374
|
+
const zt = {
|
|
4359
4375
|
en: {
|
|
4360
4376
|
playRandomGame: "Play a random game",
|
|
4361
4377
|
randomGameLoading: "Selecting ...",
|
|
@@ -4429,15 +4445,15 @@ const Xt = {
|
|
|
4429
4445
|
noGames: "There are no random games to play"
|
|
4430
4446
|
}
|
|
4431
4447
|
};
|
|
4432
|
-
function
|
|
4448
|
+
function Go(e) {
|
|
4433
4449
|
un(e, "svelte-fd0a5p", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}.ModalWindow .ModalContainer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;width:90vw;min-height:380px;max-width:500px;padding:50px;border-top:3px solid var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));border-radius:5px;background:var(--emw--color-white, #FFFFFF)}.ModalWindow .ModalCloseBtn{position:absolute;top:10px;right:10px;border-radius:50%;color:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out;width:28px;height:28px}.ModalWindow .ModalCloseBtn svg{width:28px;height:28px}.ModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.ModalWindow .ModalMobileContainer{padding:10px;border-top:none}.ModalWindow .ModalMobileContainer .ModalCloseBtn{margin:10px}.ModalWindow .ModalMobileContainer .ModalCloseBtn svg{width:24px;height:24px}.RandomGameWrapper{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;position:relative;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.RandomGameWrapper .RandomGamesSliderWrapper{overflow:hidden;height:170px}.RandomGameWrapper .GamesContainer{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;height:100%}.RandomGameWrapper .RandomGameLoading{padding:30px 0}.RandomGameWrapper .RandomGameImage{width:256px;height:170px;border-radius:5px;-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomTryAgain{position:absolute;bottom:85px;right:-10px;background:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--color-white, #FFFFFF);display:flex;align-items:center;padding:6px;border:none;border-radius:50%;cursor:pointer}.RandomTryAgain svg{width:22px;height:22px}.item{position:relative;-webkit-backface-visibility:hidden;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.RandomGameDetails{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}.RandomGameDetails .RandomGameTitle{font-size:16px;line-height:18px;text-align:center}.RandomGameDetails .RandomGameVendor{font-size:10px;margin-bottom:10px}.RandomGameDetails .RandomGamePlay{background:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border:none;border-radius:5px;width:200px;height:40px;font-size:14px;cursor:pointer}.RandomButtonWrapper{display:flex;justify-content:center;margin-top:30px;width:100%}.RandomButtonWrapper .RandomButton{display:flex;align-items:center;gap:5px;background:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));border:none;border-radius:5px;padding:0 30px;height:50px;font-size:16px;cursor:pointer}");
|
|
4434
4450
|
}
|
|
4435
|
-
function
|
|
4451
|
+
function Jt(e, t, r) {
|
|
4436
4452
|
const n = e.slice();
|
|
4437
4453
|
return n[41] = t[r], n;
|
|
4438
4454
|
}
|
|
4439
|
-
const
|
|
4440
|
-
function
|
|
4455
|
+
const Uo = (e) => ({}), Zt = (e) => ({});
|
|
4456
|
+
function Qt(e) {
|
|
4441
4457
|
let t, r, n, i, o, a, s;
|
|
4442
4458
|
const h = (
|
|
4443
4459
|
/*#slots*/
|
|
@@ -4447,8 +4463,8 @@ function Zt(e) {
|
|
|
4447
4463
|
e,
|
|
4448
4464
|
/*$$scope*/
|
|
4449
4465
|
e[22],
|
|
4450
|
-
|
|
4451
|
-
), u = l ||
|
|
4466
|
+
Zt
|
|
4467
|
+
), u = l || $o();
|
|
4452
4468
|
function f(d, p) {
|
|
4453
4469
|
return (
|
|
4454
4470
|
/*hasRandomGames*/
|
|
@@ -4458,10 +4474,10 @@ function Zt(e) {
|
|
|
4458
4474
|
let c = f(e), m = c(e);
|
|
4459
4475
|
return {
|
|
4460
4476
|
c() {
|
|
4461
|
-
t =
|
|
4477
|
+
t = w("div"), r = w("div"), n = w("span"), u && u.c(), i = V(), m.c(), g(n, "class", "ModalCloseBtn"), g(n, "role", "button"), g(r, "class", "ModalContainer"), g(t, "class", "ModalWindow");
|
|
4462
4478
|
},
|
|
4463
4479
|
m(d, p) {
|
|
4464
|
-
|
|
4480
|
+
I(d, t, p), _(t, r), _(r, n), u && u.m(n, null), _(r, i), m.m(r, null), o = !0, a || (s = Be(
|
|
4465
4481
|
n,
|
|
4466
4482
|
"click",
|
|
4467
4483
|
/*closeModal*/
|
|
@@ -4481,37 +4497,37 @@ function Zt(e) {
|
|
|
4481
4497
|
/*$$scope*/
|
|
4482
4498
|
d[22],
|
|
4483
4499
|
p,
|
|
4484
|
-
|
|
4500
|
+
Uo
|
|
4485
4501
|
) : sn(
|
|
4486
4502
|
/*$$scope*/
|
|
4487
4503
|
d[22]
|
|
4488
4504
|
),
|
|
4489
|
-
|
|
4505
|
+
Zt
|
|
4490
4506
|
), c === (c = f(d)) && m ? m.p(d, p) : (m.d(1), m = c(d), m && (m.c(), m.m(r, null)));
|
|
4491
4507
|
},
|
|
4492
4508
|
i(d) {
|
|
4493
|
-
o || (
|
|
4509
|
+
o || (ce(u, d), o = !0);
|
|
4494
4510
|
},
|
|
4495
4511
|
o(d) {
|
|
4496
|
-
|
|
4512
|
+
Qe(u, d), o = !1;
|
|
4497
4513
|
},
|
|
4498
4514
|
d(d) {
|
|
4499
|
-
d &&
|
|
4515
|
+
d && O(t), u && u.d(d), m.d(), a = !1, s();
|
|
4500
4516
|
}
|
|
4501
4517
|
};
|
|
4502
4518
|
}
|
|
4503
|
-
function
|
|
4519
|
+
function $o(e) {
|
|
4504
4520
|
let t, r;
|
|
4505
4521
|
return {
|
|
4506
4522
|
c() {
|
|
4507
|
-
t =
|
|
4523
|
+
t = wt("svg"), r = wt("path"), g(r, "stroke-linecap", "round"), g(r, "stroke-linejoin", "round"), g(r, "stroke-width", "2"), g(r, "d", "M6 18L18 6M6 6l12 12"), g(t, "class", "w-6 h-6"), g(t, "fill", "none"), g(t, "stroke", "currentColor"), g(t, "viewBox", "0 0 24 24"), g(t, "xmlns", "http://www.w3.org/2000/svg");
|
|
4508
4524
|
},
|
|
4509
4525
|
m(n, i) {
|
|
4510
|
-
|
|
4526
|
+
I(n, t, i), _(t, r);
|
|
4511
4527
|
},
|
|
4512
|
-
p:
|
|
4528
|
+
p: G,
|
|
4513
4529
|
d(n) {
|
|
4514
|
-
n &&
|
|
4530
|
+
n && O(t);
|
|
4515
4531
|
}
|
|
4516
4532
|
};
|
|
4517
4533
|
}
|
|
@@ -4522,59 +4538,59 @@ function Do(e) {
|
|
|
4522
4538
|
), n;
|
|
4523
4539
|
return {
|
|
4524
4540
|
c() {
|
|
4525
|
-
t =
|
|
4541
|
+
t = w("p"), n = k(r), g(t, "class", "RandomGameLoading");
|
|
4526
4542
|
},
|
|
4527
4543
|
m(i, o) {
|
|
4528
|
-
|
|
4544
|
+
I(i, t, o), _(t, n);
|
|
4529
4545
|
},
|
|
4530
4546
|
p(i, o) {
|
|
4531
4547
|
o[0] & /*$_*/
|
|
4532
4548
|
512 && r !== (r = /*$_*/
|
|
4533
|
-
i[9]("noGames") + "") &&
|
|
4549
|
+
i[9]("noGames") + "") && z(n, r);
|
|
4534
4550
|
},
|
|
4535
4551
|
d(i) {
|
|
4536
|
-
i &&
|
|
4552
|
+
i && O(t);
|
|
4537
4553
|
}
|
|
4538
4554
|
};
|
|
4539
4555
|
}
|
|
4540
4556
|
function Fo(e) {
|
|
4541
|
-
let t, r, n, i, o =
|
|
4557
|
+
let t, r, n, i, o = Tt(
|
|
4542
4558
|
/*gamesToShow*/
|
|
4543
4559
|
e[4]
|
|
4544
4560
|
), a = [];
|
|
4545
4561
|
for (let u = 0; u < o.length; u += 1)
|
|
4546
|
-
a[u] =
|
|
4562
|
+
a[u] = Yt(Jt(e, o, u));
|
|
4547
4563
|
function s(u, f) {
|
|
4548
4564
|
return (
|
|
4549
4565
|
/*animationDone*/
|
|
4550
|
-
u[6] ?
|
|
4566
|
+
u[6] ? ko : jo
|
|
4551
4567
|
);
|
|
4552
4568
|
}
|
|
4553
4569
|
let h = s(e), l = h(e);
|
|
4554
4570
|
return {
|
|
4555
4571
|
c() {
|
|
4556
|
-
t =
|
|
4572
|
+
t = w("div"), r = w("main"), n = w("div");
|
|
4557
4573
|
for (let u = 0; u < a.length; u += 1)
|
|
4558
4574
|
a[u].c();
|
|
4559
|
-
i = V(), l.c(),
|
|
4575
|
+
i = V(), l.c(), g(n, "class", "GamesContainer"), g(r, "class", "RandomGamesSliderWrapper"), g(t, "class", "RandomGameWrapper");
|
|
4560
4576
|
},
|
|
4561
4577
|
m(u, f) {
|
|
4562
|
-
|
|
4578
|
+
I(u, t, f), _(t, r), _(r, n);
|
|
4563
4579
|
for (let c = 0; c < a.length; c += 1)
|
|
4564
4580
|
a[c] && a[c].m(n, null);
|
|
4565
|
-
e[24](n),
|
|
4581
|
+
e[24](n), _(t, i), l.m(t, null);
|
|
4566
4582
|
},
|
|
4567
4583
|
p(u, f) {
|
|
4568
4584
|
if (f[0] & /*gamesToShow*/
|
|
4569
4585
|
16) {
|
|
4570
|
-
o =
|
|
4586
|
+
o = Tt(
|
|
4571
4587
|
/*gamesToShow*/
|
|
4572
4588
|
u[4]
|
|
4573
4589
|
);
|
|
4574
4590
|
let c;
|
|
4575
4591
|
for (c = 0; c < o.length; c += 1) {
|
|
4576
|
-
const m =
|
|
4577
|
-
a[c] ? a[c].p(m, f) : (a[c] =
|
|
4592
|
+
const m = Jt(u, o, c);
|
|
4593
|
+
a[c] ? a[c].p(m, f) : (a[c] = Yt(m), a[c].c(), a[c].m(n, null));
|
|
4578
4594
|
}
|
|
4579
4595
|
for (; c < a.length; c += 1)
|
|
4580
4596
|
a[c].d(1);
|
|
@@ -4583,59 +4599,59 @@ function Fo(e) {
|
|
|
4583
4599
|
h === (h = s(u)) && l ? l.p(u, f) : (l.d(1), l = h(u), l && (l.c(), l.m(t, null)));
|
|
4584
4600
|
},
|
|
4585
4601
|
d(u) {
|
|
4586
|
-
u &&
|
|
4602
|
+
u && O(t), cn(a, u), e[24](null), l.d();
|
|
4587
4603
|
}
|
|
4588
4604
|
};
|
|
4589
4605
|
}
|
|
4590
|
-
function
|
|
4606
|
+
function Yt(e) {
|
|
4591
4607
|
let t, r, n, i, o, a;
|
|
4592
4608
|
return {
|
|
4593
4609
|
c() {
|
|
4594
|
-
t =
|
|
4595
|
-
e[41].thumbnail) ||
|
|
4596
|
-
e[41].name),
|
|
4597
|
-
e[41].name),
|
|
4610
|
+
t = w("div"), r = w("img"), a = V(), g(r, "class", "RandomGameImage"), Et(r.src, n = /*game*/
|
|
4611
|
+
e[41].thumbnail) || g(r, "src", n), g(r, "alt", i = /*game*/
|
|
4612
|
+
e[41].name), g(r, "title", o = /*game*/
|
|
4613
|
+
e[41].name), g(t, "class", "item");
|
|
4598
4614
|
},
|
|
4599
4615
|
m(s, h) {
|
|
4600
|
-
|
|
4616
|
+
I(s, t, h), _(t, r), _(t, a);
|
|
4601
4617
|
},
|
|
4602
4618
|
p(s, h) {
|
|
4603
4619
|
h[0] & /*gamesToShow*/
|
|
4604
|
-
16 && !
|
|
4605
|
-
s[41].thumbnail) &&
|
|
4620
|
+
16 && !Et(r.src, n = /*game*/
|
|
4621
|
+
s[41].thumbnail) && g(r, "src", n), h[0] & /*gamesToShow*/
|
|
4606
4622
|
16 && i !== (i = /*game*/
|
|
4607
|
-
s[41].name) &&
|
|
4623
|
+
s[41].name) && g(r, "alt", i), h[0] & /*gamesToShow*/
|
|
4608
4624
|
16 && o !== (o = /*game*/
|
|
4609
|
-
s[41].name) &&
|
|
4625
|
+
s[41].name) && g(r, "title", o);
|
|
4610
4626
|
},
|
|
4611
4627
|
d(s) {
|
|
4612
|
-
s &&
|
|
4628
|
+
s && O(t);
|
|
4613
4629
|
}
|
|
4614
4630
|
};
|
|
4615
4631
|
}
|
|
4616
|
-
function
|
|
4632
|
+
function jo(e) {
|
|
4617
4633
|
let t, r = (
|
|
4618
4634
|
/*$_*/
|
|
4619
4635
|
e[9]("randomGameLoading") + ""
|
|
4620
4636
|
), n;
|
|
4621
4637
|
return {
|
|
4622
4638
|
c() {
|
|
4623
|
-
t =
|
|
4639
|
+
t = w("p"), n = k(r), g(t, "class", "RandomGameLoading");
|
|
4624
4640
|
},
|
|
4625
4641
|
m(i, o) {
|
|
4626
|
-
|
|
4642
|
+
I(i, t, o), _(t, n);
|
|
4627
4643
|
},
|
|
4628
4644
|
p(i, o) {
|
|
4629
4645
|
o[0] & /*$_*/
|
|
4630
4646
|
512 && r !== (r = /*$_*/
|
|
4631
|
-
i[9]("randomGameLoading") + "") &&
|
|
4647
|
+
i[9]("randomGameLoading") + "") && z(n, r);
|
|
4632
4648
|
},
|
|
4633
4649
|
d(i) {
|
|
4634
|
-
i &&
|
|
4650
|
+
i && O(t);
|
|
4635
4651
|
}
|
|
4636
4652
|
};
|
|
4637
4653
|
}
|
|
4638
|
-
function
|
|
4654
|
+
function ko(e) {
|
|
4639
4655
|
let t, r, n, i, o = (
|
|
4640
4656
|
/*randomGame*/
|
|
4641
4657
|
e[3].name + ""
|
|
@@ -4648,18 +4664,18 @@ function jo(e) {
|
|
|
4648
4664
|
), d, p, A;
|
|
4649
4665
|
return {
|
|
4650
4666
|
c() {
|
|
4651
|
-
t =
|
|
4652
|
-
</style><path class="st0" d="M162.4,161.2C145.3,178.5,122.7,187,100,187c-19.1,0-38.2-6.2-54-18.4l2.2,24c0.4,3.6-2.4,6.9-6,7.3h-0.7 c-3.3,0-6.2-2.7-6.7-6l-3.8-41.1c-0.4-3.6,2.4-6.9,6-7.3l40.9-3.8c3.6-0.4,6.9,2.4,7.3,6c0.4,3.6-2.4,6.9-6,7.3l-26,2.4 c29.3,23.3,72.4,21.6,99.5-5.6c19.8-19.8,26.9-48.7,18.4-75.3c-1.1-3.6,0.9-7.3,4.4-8.4c3.6-1.1,7.3,0.9,8.4,4.4 C194,103.9,185.8,137.9,162.4,161.2L162.4,161.2z M47.1,47.9c27.1-27.1,70.2-29.1,99.5-5.6l-26,2.4c-3.6,0.4-6.4,3.6-6,7.3 c0.2,3.6,3.3,6,6.7,6h0.7l40.9-3.8c3.6-0.4,6.4-3.6,6-7.3l-4-41.1c-0.4-3.6-3.6-6.4-7.3-6c-3.6,0.4-6.4,3.6-6,7.3l2.2,24 C119.3,4.4,69.3,6.8,37.6,38.6C14.2,61.9,6,95.9,15.8,127.2c0.9,2.9,3.6,4.7,6.4,4.7c0.7,0,1.3,0,2-0.2c3.6-1.1,5.6-4.9,4.4-8.4 C20.2,96.6,27.4,67.7,47.1,47.9L47.1,47.9z"></path></svg>`, r = V(), n =
|
|
4667
|
+
t = w("button"), t.innerHTML = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 200 200" style="enable-background:new 0 0 200 200;" xml:space="preserve"><style type="text/css">.st0{fill:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));}
|
|
4668
|
+
</style><path class="st0" d="M162.4,161.2C145.3,178.5,122.7,187,100,187c-19.1,0-38.2-6.2-54-18.4l2.2,24c0.4,3.6-2.4,6.9-6,7.3h-0.7 c-3.3,0-6.2-2.7-6.7-6l-3.8-41.1c-0.4-3.6,2.4-6.9,6-7.3l40.9-3.8c3.6-0.4,6.9,2.4,7.3,6c0.4,3.6-2.4,6.9-6,7.3l-26,2.4 c29.3,23.3,72.4,21.6,99.5-5.6c19.8-19.8,26.9-48.7,18.4-75.3c-1.1-3.6,0.9-7.3,4.4-8.4c3.6-1.1,7.3,0.9,8.4,4.4 C194,103.9,185.8,137.9,162.4,161.2L162.4,161.2z M47.1,47.9c27.1-27.1,70.2-29.1,99.5-5.6l-26,2.4c-3.6,0.4-6.4,3.6-6,7.3 c0.2,3.6,3.3,6,6.7,6h0.7l40.9-3.8c3.6-0.4,6.4-3.6,6-7.3l-4-41.1c-0.4-3.6-3.6-6.4-7.3-6c-3.6,0.4-6.4,3.6-6,7.3l2.2,24 C119.3,4.4,69.3,6.8,37.6,38.6C14.2,61.9,6,95.9,15.8,127.2c0.9,2.9,3.6,4.7,6.4,4.7c0.7,0,1.3,0,2-0.2c3.6-1.1,5.6-4.9,4.4-8.4 C20.2,96.6,27.4,67.7,47.1,47.9L47.1,47.9z"></path></svg>`, r = V(), n = w("div"), i = w("p"), a = k(o), s = V(), h = w("p"), u = k(l), f = V(), c = w("button"), d = k(m), g(t, "class", "RandomTryAgain"), g(i, "class", "RandomGameTitle"), g(h, "class", "RandomGameVendor"), g(c, "class", "RandomGamePlay"), g(n, "class", "RandomGameDetails");
|
|
4653
4669
|
},
|
|
4654
4670
|
m(H, T) {
|
|
4655
|
-
|
|
4656
|
-
|
|
4671
|
+
I(H, t, T), I(H, r, T), I(H, n, T), _(n, i), _(i, a), _(n, s), _(n, h), _(h, u), _(n, f), _(n, c), _(c, d), p || (A = [
|
|
4672
|
+
Be(
|
|
4657
4673
|
t,
|
|
4658
4674
|
"click",
|
|
4659
4675
|
/*click_handler*/
|
|
4660
4676
|
e[25]
|
|
4661
4677
|
),
|
|
4662
|
-
|
|
4678
|
+
Be(
|
|
4663
4679
|
c,
|
|
4664
4680
|
"click",
|
|
4665
4681
|
/*click_handler_1*/
|
|
@@ -4670,87 +4686,87 @@ function jo(e) {
|
|
|
4670
4686
|
p(H, T) {
|
|
4671
4687
|
T[0] & /*randomGame*/
|
|
4672
4688
|
8 && o !== (o = /*randomGame*/
|
|
4673
|
-
H[3].name + "") &&
|
|
4689
|
+
H[3].name + "") && z(a, o), T[0] & /*randomGame*/
|
|
4674
4690
|
8 && l !== (l = /*randomGame*/
|
|
4675
|
-
H[3].vendor.name + "") &&
|
|
4691
|
+
H[3].vendor.name + "") && z(u, l), T[0] & /*$_*/
|
|
4676
4692
|
512 && m !== (m = /*$_*/
|
|
4677
|
-
H[9]("playNowRandomGame") + "") &&
|
|
4693
|
+
H[9]("playNowRandomGame") + "") && z(d, m);
|
|
4678
4694
|
},
|
|
4679
4695
|
d(H) {
|
|
4680
|
-
H && (
|
|
4696
|
+
H && (O(t), O(r), O(n)), p = !1, J(A);
|
|
4681
4697
|
}
|
|
4682
4698
|
};
|
|
4683
4699
|
}
|
|
4684
|
-
function
|
|
4700
|
+
function Vo(e) {
|
|
4685
4701
|
let t, r = (
|
|
4686
4702
|
/*$_*/
|
|
4687
4703
|
e[9]("playRandomGame") + ""
|
|
4688
4704
|
), n;
|
|
4689
4705
|
return {
|
|
4690
4706
|
c() {
|
|
4691
|
-
t =
|
|
4707
|
+
t = w("span"), n = k(r), g(t, "class", "RandomButtonText");
|
|
4692
4708
|
},
|
|
4693
4709
|
m(i, o) {
|
|
4694
|
-
|
|
4710
|
+
I(i, t, o), _(t, n);
|
|
4695
4711
|
},
|
|
4696
4712
|
p(i, o) {
|
|
4697
4713
|
o[0] & /*$_*/
|
|
4698
4714
|
512 && r !== (r = /*$_*/
|
|
4699
|
-
i[9]("playRandomGame") + "") &&
|
|
4715
|
+
i[9]("playRandomGame") + "") && z(n, r);
|
|
4700
4716
|
},
|
|
4701
4717
|
d(i) {
|
|
4702
|
-
i &&
|
|
4718
|
+
i && O(t);
|
|
4703
4719
|
}
|
|
4704
4720
|
};
|
|
4705
4721
|
}
|
|
4706
|
-
function
|
|
4722
|
+
function Wo(e) {
|
|
4707
4723
|
let t, r;
|
|
4708
4724
|
return {
|
|
4709
4725
|
c() {
|
|
4710
|
-
t =
|
|
4726
|
+
t = w("span"), r = k(
|
|
4711
4727
|
/*buttontext*/
|
|
4712
4728
|
e[1]
|
|
4713
|
-
),
|
|
4729
|
+
), g(t, "class", "RandomButtonText");
|
|
4714
4730
|
},
|
|
4715
4731
|
m(n, i) {
|
|
4716
|
-
|
|
4732
|
+
I(n, t, i), _(t, r);
|
|
4717
4733
|
},
|
|
4718
4734
|
p(n, i) {
|
|
4719
4735
|
i[0] & /*buttontext*/
|
|
4720
|
-
2 &&
|
|
4736
|
+
2 && z(
|
|
4721
4737
|
r,
|
|
4722
4738
|
/*buttontext*/
|
|
4723
4739
|
n[1]
|
|
4724
4740
|
);
|
|
4725
4741
|
},
|
|
4726
4742
|
d(n) {
|
|
4727
|
-
n &&
|
|
4743
|
+
n && O(t);
|
|
4728
4744
|
}
|
|
4729
4745
|
};
|
|
4730
4746
|
}
|
|
4731
|
-
function
|
|
4747
|
+
function Xo(e) {
|
|
4732
4748
|
let t, r, n, i, o, a, s, h, l, u = (
|
|
4733
4749
|
/*show*/
|
|
4734
|
-
e[5] &&
|
|
4750
|
+
e[5] && Qt(e)
|
|
4735
4751
|
);
|
|
4736
4752
|
function f(d, p) {
|
|
4737
4753
|
if (
|
|
4738
4754
|
/*buttontext*/
|
|
4739
4755
|
d[1]
|
|
4740
4756
|
)
|
|
4741
|
-
return
|
|
4757
|
+
return Wo;
|
|
4742
4758
|
if (!/*buttontext*/
|
|
4743
4759
|
d[1])
|
|
4744
|
-
return
|
|
4760
|
+
return Vo;
|
|
4745
4761
|
}
|
|
4746
4762
|
let c = f(e), m = c && c(e);
|
|
4747
4763
|
return {
|
|
4748
4764
|
c() {
|
|
4749
|
-
t =
|
|
4765
|
+
t = w("div"), u && u.c(), r = V(), n = w("div"), i = w("button"), m && m.c(), o = V(), a = w("span"), g(a, "class", "RandomButtonIcon"), g(i, "class", "RandomButton"), g(n, "class", "RandomButtonWrapper");
|
|
4750
4766
|
},
|
|
4751
4767
|
m(d, p) {
|
|
4752
|
-
|
|
4753
|
-
e[0], e[28](t), s = !0, h || (l =
|
|
4768
|
+
I(d, t, p), u && u.m(t, null), _(t, r), _(t, n), _(n, i), m && m.m(i, null), _(i, o), _(i, a), a.innerHTML = /*randombuttonicon*/
|
|
4769
|
+
e[0], e[28](t), s = !0, h || (l = Be(
|
|
4754
4770
|
i,
|
|
4755
4771
|
"click",
|
|
4756
4772
|
/*click_handler_2*/
|
|
@@ -4760,127 +4776,127 @@ function Wo(e) {
|
|
|
4760
4776
|
p(d, p) {
|
|
4761
4777
|
/*show*/
|
|
4762
4778
|
d[5] ? u ? (u.p(d, p), p[0] & /*show*/
|
|
4763
|
-
32 &&
|
|
4779
|
+
32 && ce(u, 1)) : (u = Qt(d), u.c(), ce(u, 1), u.m(t, r)) : u && (vn(), Qe(u, 1, 1, () => {
|
|
4764
4780
|
u = null;
|
|
4765
4781
|
}), _n()), c === (c = f(d)) && m ? m.p(d, p) : (m && m.d(1), m = c && c(d), m && (m.c(), m.m(i, o))), (!s || p[0] & /*randombuttonicon*/
|
|
4766
4782
|
1) && (a.innerHTML = /*randombuttonicon*/
|
|
4767
4783
|
d[0]);
|
|
4768
4784
|
},
|
|
4769
4785
|
i(d) {
|
|
4770
|
-
s || (
|
|
4786
|
+
s || (ce(u), s = !0);
|
|
4771
4787
|
},
|
|
4772
4788
|
o(d) {
|
|
4773
|
-
|
|
4789
|
+
Qe(u), s = !1;
|
|
4774
4790
|
},
|
|
4775
4791
|
d(d) {
|
|
4776
|
-
d &&
|
|
4792
|
+
d && O(t), u && u.d(), m && m.d(), e[28](null), h = !1, l();
|
|
4777
4793
|
}
|
|
4778
4794
|
};
|
|
4779
4795
|
}
|
|
4780
|
-
function
|
|
4796
|
+
function zo(e, t, r) {
|
|
4781
4797
|
let n;
|
|
4782
|
-
rn(e,
|
|
4783
|
-
let { $$slots: i = {}, $$scope: o } = t, { endpoint: a = "" } = t, { datasource: s = "" } = t, { gameevent: h = "" } = t, { lang: l = "" } = t, { randombuttonicon: u = "" } = t, { buttontext: f = "" } = t, { translationurl: c = "" } = t, { clientstyling: m = "" } = t, { clientstylingurl: d = "" } = t, { filteredrandomgamecategories: p = "" } = t, { mbsource: A } = t, H = [], T = "", B,
|
|
4798
|
+
rn(e, Oo, (b) => r(9, n = b));
|
|
4799
|
+
let { $$slots: i = {}, $$scope: o } = t, { endpoint: a = "" } = t, { datasource: s = "" } = t, { gameevent: h = "" } = t, { lang: l = "" } = t, { randombuttonicon: u = "" } = t, { buttontext: f = "" } = t, { translationurl: c = "" } = t, { clientstyling: m = "" } = t, { clientstylingurl: d = "" } = t, { filteredrandomgamecategories: p = "" } = t, { mbsource: A } = t, H = [], T = "", B, L = !1, M = !1, U = !1, be = window.navigator.userAgent, $, Q, pt, ge, bt = null;
|
|
4784
4800
|
Mo({ withLocale: "en", translations: {} });
|
|
4785
|
-
const
|
|
4786
|
-
fetch(c).then((
|
|
4787
|
-
Object.keys(
|
|
4788
|
-
|
|
4801
|
+
const Mr = () => {
|
|
4802
|
+
fetch(c).then((x) => x.json()).then((x) => {
|
|
4803
|
+
Object.keys(x).forEach((D) => {
|
|
4804
|
+
Xt(D, x[D]);
|
|
4789
4805
|
});
|
|
4790
|
-
}).catch((
|
|
4791
|
-
console.log(
|
|
4806
|
+
}).catch((x) => {
|
|
4807
|
+
console.log(x);
|
|
4792
4808
|
});
|
|
4793
4809
|
};
|
|
4794
|
-
Object.keys(
|
|
4795
|
-
|
|
4810
|
+
Object.keys(zt).forEach((b) => {
|
|
4811
|
+
Xt(b, zt[b]);
|
|
4796
4812
|
});
|
|
4797
|
-
const
|
|
4813
|
+
const Cr = () => {
|
|
4798
4814
|
let b = new URL(`${a}/v1/casino/games`);
|
|
4799
|
-
b.searchParams.append("platform", Ro(
|
|
4800
|
-
H =
|
|
4801
|
-
}).catch((
|
|
4802
|
-
console.log(
|
|
4815
|
+
b.searchParams.append("platform", Ro(be)), b.searchParams.append("datasource", s), b.searchParams.append("fields", "gId,id,href,thumbnail,name,vendor,categories"), p && b.searchParams.append("filter", `groups=${p}`), b.searchParams.append("expand", "categories,vendor"), b.searchParams.append("pagination", "offset=0,limit=1000"), fetch(b.href).then((x) => x.json()).then((x) => {
|
|
4816
|
+
H = x.items, H.length ? (r(4, B = Gr(H.slice(0, 19))), r(7, U = !0)) : (r(4, B = []), r(7, U = !1));
|
|
4817
|
+
}).catch((x) => {
|
|
4818
|
+
console.log(x), r(7, U = !1);
|
|
4803
4819
|
});
|
|
4804
4820
|
}, Gr = (b) => {
|
|
4805
|
-
const
|
|
4806
|
-
return
|
|
4807
|
-
}, Ur = () =>
|
|
4808
|
-
yield bn(),
|
|
4809
|
-
}),
|
|
4810
|
-
r(6,
|
|
4811
|
-
const b = window.getComputedStyle(
|
|
4821
|
+
const x = $r(b);
|
|
4822
|
+
return x.concat(x);
|
|
4823
|
+
}, Ur = () => ye(this, null, function* () {
|
|
4824
|
+
yield bn(), ge = Math.floor(Math.random() * (B.length / 2)) + B.length / 2, r(3, T = B[ge]), pt = Q.children[ge];
|
|
4825
|
+
}), Ue = () => ye(this, null, function* () {
|
|
4826
|
+
r(6, M = !1), r(5, L = !0), window.postMessage({ type: "RandomWidgetState", state: !0 }, window.location.href), yield Ur();
|
|
4827
|
+
const b = window.getComputedStyle(Q).getPropertyValue("gap"), x = parseInt(b, 10) || 0, ue = (pt.offsetHeight + x) * ge, zr = [
|
|
4812
4828
|
{ transform: "translateX(0px)" },
|
|
4813
4829
|
{ filter: "blur(5px)" },
|
|
4814
4830
|
{
|
|
4815
|
-
transform: `translateY(-${
|
|
4831
|
+
transform: `translateY(-${ue}px)`
|
|
4816
4832
|
}
|
|
4817
4833
|
], Jr = {
|
|
4818
4834
|
duration: 2e3,
|
|
4819
4835
|
easing: "cubic-bezier(0.5, 0, 0.5, 1.2)",
|
|
4820
4836
|
fill: "forwards"
|
|
4821
4837
|
};
|
|
4822
|
-
|
|
4823
|
-
r(6,
|
|
4838
|
+
bt = Q.animate(zr, Jr), bt.onfinish = () => {
|
|
4839
|
+
r(6, M = !0);
|
|
4824
4840
|
};
|
|
4825
|
-
}),
|
|
4826
|
-
const
|
|
4827
|
-
let D =
|
|
4841
|
+
}), $r = (b) => {
|
|
4842
|
+
const x = structuredClone(b);
|
|
4843
|
+
let D = x.length, ue;
|
|
4828
4844
|
for (; D != 0; )
|
|
4829
|
-
|
|
4830
|
-
return
|
|
4831
|
-
},
|
|
4845
|
+
ue = Math.floor(Math.random() * D), D--, [x[D], x[ue]] = [x[ue], x[D]];
|
|
4846
|
+
return x;
|
|
4847
|
+
}, gt = () => {
|
|
4832
4848
|
window.postMessage(
|
|
4833
4849
|
{
|
|
4834
4850
|
type: h,
|
|
4835
4851
|
gameId: T.gId || T.id
|
|
4836
4852
|
},
|
|
4837
4853
|
window.location.href
|
|
4838
|
-
), r(5,
|
|
4854
|
+
), r(5, L = !1), window.postMessage({ type: "RandomWidgetState", state: !1 }, window.location.href), typeof gtag == "function" && gtag("event", "OpenGame", {
|
|
4839
4855
|
context: "RandomGameWidget",
|
|
4840
4856
|
gameId: `${T.gId || T.id}`
|
|
4841
4857
|
});
|
|
4858
|
+
}, Dr = () => {
|
|
4859
|
+
r(5, L = !1), window.postMessage({ type: "RandomWidgetState", state: L }, window.location.href);
|
|
4842
4860
|
}, Fr = () => {
|
|
4843
|
-
r(5, M = !1), window.postMessage({ type: "RandomWidgetState", state: M }, window.location.href);
|
|
4844
|
-
}, $r = () => {
|
|
4845
4861
|
Co(l);
|
|
4846
4862
|
};
|
|
4847
4863
|
pn(() => () => {
|
|
4848
4864
|
});
|
|
4849
4865
|
function jr(b) {
|
|
4850
|
-
|
|
4851
|
-
|
|
4866
|
+
Ae[b ? "unshift" : "push"](() => {
|
|
4867
|
+
Q = b, r(8, Q);
|
|
4852
4868
|
});
|
|
4853
4869
|
}
|
|
4854
|
-
const kr = () =>
|
|
4870
|
+
const kr = () => Ue(), Vr = () => gt(), Wr = () => Ue();
|
|
4855
4871
|
function Xr(b) {
|
|
4856
|
-
|
|
4857
|
-
|
|
4872
|
+
Ae[b ? "unshift" : "push"](() => {
|
|
4873
|
+
$ = b, r(2, $);
|
|
4858
4874
|
});
|
|
4859
4875
|
}
|
|
4860
4876
|
return e.$$set = (b) => {
|
|
4861
4877
|
"endpoint" in b && r(13, a = b.endpoint), "datasource" in b && r(14, s = b.datasource), "gameevent" in b && r(15, h = b.gameevent), "lang" in b && r(16, l = b.lang), "randombuttonicon" in b && r(0, u = b.randombuttonicon), "buttontext" in b && r(1, f = b.buttontext), "translationurl" in b && r(17, c = b.translationurl), "clientstyling" in b && r(18, m = b.clientstyling), "clientstylingurl" in b && r(19, d = b.clientstylingurl), "filteredrandomgamecategories" in b && r(20, p = b.filteredrandomgamecategories), "mbsource" in b && r(21, A = b.mbsource), "$$scope" in b && r(22, o = b.$$scope);
|
|
4862
4878
|
}, e.$$.update = () => {
|
|
4863
4879
|
e.$$.dirty[0] & /*lang*/
|
|
4864
|
-
65536 && l &&
|
|
4865
|
-
131072 && c &&
|
|
4866
|
-
24576 && a && s &&
|
|
4867
|
-
262148 && m &&
|
|
4868
|
-
524292 && d &&
|
|
4869
|
-
2097156 &&
|
|
4880
|
+
65536 && l && Fr(), e.$$.dirty[0] & /*translationurl*/
|
|
4881
|
+
131072 && c && Mr(), e.$$.dirty[0] & /*endpoint, datasource*/
|
|
4882
|
+
24576 && a && s && Cr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4883
|
+
262148 && m && $ && Io($, m), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4884
|
+
524292 && d && $ && No($, d), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
4885
|
+
2097156 && $ && Lo($, `${A}.Style`);
|
|
4870
4886
|
}, [
|
|
4871
4887
|
u,
|
|
4872
4888
|
f,
|
|
4873
|
-
|
|
4889
|
+
$,
|
|
4874
4890
|
T,
|
|
4875
4891
|
B,
|
|
4892
|
+
L,
|
|
4876
4893
|
M,
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
Y,
|
|
4894
|
+
U,
|
|
4895
|
+
Q,
|
|
4880
4896
|
n,
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4897
|
+
Ue,
|
|
4898
|
+
gt,
|
|
4899
|
+
Dr,
|
|
4884
4900
|
a,
|
|
4885
4901
|
s,
|
|
4886
4902
|
h,
|
|
@@ -4899,14 +4915,14 @@ function Xo(e, t, r) {
|
|
|
4899
4915
|
Xr
|
|
4900
4916
|
];
|
|
4901
4917
|
}
|
|
4902
|
-
class
|
|
4918
|
+
class Jo extends Hn {
|
|
4903
4919
|
constructor(t) {
|
|
4904
4920
|
super(), Sn(
|
|
4905
4921
|
this,
|
|
4906
4922
|
t,
|
|
4923
|
+
zo,
|
|
4907
4924
|
Xo,
|
|
4908
|
-
|
|
4909
|
-
qt,
|
|
4925
|
+
Kt,
|
|
4910
4926
|
{
|
|
4911
4927
|
endpoint: 13,
|
|
4912
4928
|
datasource: 14,
|
|
@@ -4920,7 +4936,7 @@ class zo extends Hn {
|
|
|
4920
4936
|
filteredrandomgamecategories: 20,
|
|
4921
4937
|
mbsource: 21
|
|
4922
4938
|
},
|
|
4923
|
-
|
|
4939
|
+
Go,
|
|
4924
4940
|
[-1, -1]
|
|
4925
4941
|
);
|
|
4926
4942
|
}
|
|
@@ -4928,70 +4944,70 @@ class zo extends Hn {
|
|
|
4928
4944
|
return this.$$.ctx[13];
|
|
4929
4945
|
}
|
|
4930
4946
|
set endpoint(t) {
|
|
4931
|
-
this.$$set({ endpoint: t }),
|
|
4947
|
+
this.$$set({ endpoint: t }), R();
|
|
4932
4948
|
}
|
|
4933
4949
|
get datasource() {
|
|
4934
4950
|
return this.$$.ctx[14];
|
|
4935
4951
|
}
|
|
4936
4952
|
set datasource(t) {
|
|
4937
|
-
this.$$set({ datasource: t }),
|
|
4953
|
+
this.$$set({ datasource: t }), R();
|
|
4938
4954
|
}
|
|
4939
4955
|
get gameevent() {
|
|
4940
4956
|
return this.$$.ctx[15];
|
|
4941
4957
|
}
|
|
4942
4958
|
set gameevent(t) {
|
|
4943
|
-
this.$$set({ gameevent: t }),
|
|
4959
|
+
this.$$set({ gameevent: t }), R();
|
|
4944
4960
|
}
|
|
4945
4961
|
get lang() {
|
|
4946
4962
|
return this.$$.ctx[16];
|
|
4947
4963
|
}
|
|
4948
4964
|
set lang(t) {
|
|
4949
|
-
this.$$set({ lang: t }),
|
|
4965
|
+
this.$$set({ lang: t }), R();
|
|
4950
4966
|
}
|
|
4951
4967
|
get randombuttonicon() {
|
|
4952
4968
|
return this.$$.ctx[0];
|
|
4953
4969
|
}
|
|
4954
4970
|
set randombuttonicon(t) {
|
|
4955
|
-
this.$$set({ randombuttonicon: t }),
|
|
4971
|
+
this.$$set({ randombuttonicon: t }), R();
|
|
4956
4972
|
}
|
|
4957
4973
|
get buttontext() {
|
|
4958
4974
|
return this.$$.ctx[1];
|
|
4959
4975
|
}
|
|
4960
4976
|
set buttontext(t) {
|
|
4961
|
-
this.$$set({ buttontext: t }),
|
|
4977
|
+
this.$$set({ buttontext: t }), R();
|
|
4962
4978
|
}
|
|
4963
4979
|
get translationurl() {
|
|
4964
4980
|
return this.$$.ctx[17];
|
|
4965
4981
|
}
|
|
4966
4982
|
set translationurl(t) {
|
|
4967
|
-
this.$$set({ translationurl: t }),
|
|
4983
|
+
this.$$set({ translationurl: t }), R();
|
|
4968
4984
|
}
|
|
4969
4985
|
get clientstyling() {
|
|
4970
4986
|
return this.$$.ctx[18];
|
|
4971
4987
|
}
|
|
4972
4988
|
set clientstyling(t) {
|
|
4973
|
-
this.$$set({ clientstyling: t }),
|
|
4989
|
+
this.$$set({ clientstyling: t }), R();
|
|
4974
4990
|
}
|
|
4975
4991
|
get clientstylingurl() {
|
|
4976
4992
|
return this.$$.ctx[19];
|
|
4977
4993
|
}
|
|
4978
4994
|
set clientstylingurl(t) {
|
|
4979
|
-
this.$$set({ clientstylingurl: t }),
|
|
4995
|
+
this.$$set({ clientstylingurl: t }), R();
|
|
4980
4996
|
}
|
|
4981
4997
|
get filteredrandomgamecategories() {
|
|
4982
4998
|
return this.$$.ctx[20];
|
|
4983
4999
|
}
|
|
4984
5000
|
set filteredrandomgamecategories(t) {
|
|
4985
|
-
this.$$set({ filteredrandomgamecategories: t }),
|
|
5001
|
+
this.$$set({ filteredrandomgamecategories: t }), R();
|
|
4986
5002
|
}
|
|
4987
5003
|
get mbsource() {
|
|
4988
5004
|
return this.$$.ctx[21];
|
|
4989
5005
|
}
|
|
4990
5006
|
set mbsource(t) {
|
|
4991
|
-
this.$$set({ mbsource: t }),
|
|
5007
|
+
this.$$set({ mbsource: t }), R();
|
|
4992
5008
|
}
|
|
4993
5009
|
}
|
|
4994
|
-
Tn(
|
|
5010
|
+
Tn(Jo, { endpoint: {}, datasource: {}, gameevent: {}, lang: {}, randombuttonicon: {}, buttontext: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, filteredrandomgamecategories: {}, mbsource: {} }, ["close"], [], !0);
|
|
4995
5011
|
export {
|
|
4996
|
-
|
|
5012
|
+
Jo as default
|
|
4997
5013
|
};
|